| 2 |
(()=>{var e,t,n={1973(e,t,n){e=n.nmd(e),function(){var e=function(){return this}();e||"undefined"==typeof window||(e=window);var t=function(e,n,r){"string"==typeof e?(2==arguments.length&&(r=n),t.modules[e]||(t.payloads[e]=r,t.modules[e]=null)):t.original?t.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};t.modules={},t.payloads={};var n,r,i=function(e,t,n){if("string"==typeof t){var r=a(e,t);if(null!=r)return n&&n(),r}else if("[object Array]"===Object.prototype.toString.call(t)){for(var i=[],s=0,l=t.length;s<l;++s){var c=a(e,t[s]);if(null==c&&o.original)return;i.push(c)}return n&&n.apply(null,i)||!0}},o=function(e,t){var n=i("",e,t);return null==n&&o.original?o.original.apply(this,arguments):n},s=function(e,t){if(-1!==t.indexOf("!")){var n=t.split("!");return s(e,n[0])+"!"+s(e,n[1])}if("."==t.charAt(0))for(t=e.split("/").slice(0,-1).join("/")+"/"+t;-1!==t.indexOf(".")&&r!=t;){var r=t;t=t.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return t},a=function(e,n){n=s(e,n);var r=t.modules[n];if(!r){if("function"==typeof(r=t.payloads[n])){var o={},a={id:n,uri:"",exports:o,packaged:!0};o=r((function(e,t){return i(n,e,t)}),o,a)||a.exports,t.modules[n]=o,delete t.payloads[n]}r=t.modules[n]=o||r}return r};r=e,(n="ace")&&(e[n]||(e[n]={}),r=e[n]),r.define&&r.define.packaged||(t.original=r.define,r.define=t,r.define.packaged=!0),r.require&&r.require.packaged||(o.original=r.require,r.require=o,r.require.packaged=!0)}(),ace.define("ace/lib/es6-shim",["require","exports","module"],(function(e,t,n){function r(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||r(String.prototype,"startsWith",(function(e,t){return t=t||0,this.lastIndexOf(e,t)===t})),String.prototype.endsWith||r(String.prototype,"endsWith",(function(e,t){var n=this;(void 0===t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t})),String.prototype.repeat||r(String.prototype,"repeat",(function(e){for(var t="",n=this;e>0;)1&e&&(t+=n),(e>>=1)&&(n+=n);return t})),String.prototype.includes||r(String.prototype,"includes",(function(e,t){return-1!=this.indexOf(e,t)})),Object.assign||(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];null!=r&&Object.keys(r).forEach((function(e){t[e]=r[e]}))}return t}),Object.values||(Object.values=function(e){return Object.keys(e).map((function(t){return e[t]}))}),Array.prototype.find||r(Array.prototype,"find",(function(e){for(var t=this.length,n=arguments[1],r=0;r<t;r++){var i=this[r];if(e.call(n,i,r,this))return i}})),Array.prototype.findIndex||r(Array.prototype,"findIndex",(function(e){for(var t=this.length,n=arguments[1],r=0;r<t;r++){var i=this[r];if(e.call(n,i,r,this))return r}})),Array.prototype.includes||r(Array.prototype,"includes",(function(e,t){return-1!=this.indexOf(e,t)})),Array.prototype.fill||r(Array.prototype,"fill",(function(e){for(var t=this,n=t.length>>>0,r=0|arguments[1],i=r<0?Math.max(n+r,0):Math.min(r,n),o=arguments[2],s=void 0===o?n:0|o,a=s<0?Math.max(n+s,0):Math.min(s,n);i<a;)t[i]=e,i++;return t})),Array.of||r(Array,"of",(function(){return Array.prototype.slice.call(arguments)}))})),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],(function(e,t,n){"use strict";e("./es6-shim")})),ace.define("ace/lib/deep_copy",["require","exports","module"],(function(e,t,n){t.deepCopy=function e(t){if("object"!=typeof t||!t)return t;var n;if(Array.isArray(t)){n=[];for(var r=0;r<t.length;r++)n[r]=e(t[r]);return n}if("[object Object]"!==Object.prototype.toString.call(t))return t;for(var r in n={},t)n[r]=e(t[r]);return n}})),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],(function(e,t,n){"use strict";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){for(var n="";t>0;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var r=/^\s\s*/,i=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(r,"")},t.stringTrimRight=function(e){return e.replace(i,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,r=e.length;n<r;n++)e[n]&&"object"==typeof e[n]?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=e("./deep_copy").deepCopy,t.arrayToMap=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return(""+e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,(function(e){n.push({offset:arguments[arguments.length-2],length:e.length})})),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},r=function(e){return r.cancel(),t=setTimeout(n,e||0),r};return r.schedule=r,r.call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},t.delayedCall=function(e,t){var n=null,r=function(){n=null,e()},i=function(e){null==n&&(n=setTimeout(r,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i},t.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch(e){return!1}return!0},t.skipEmptyMatch=function(e,t,n){return n&&e.codePointAt(t)>65535?2:1}})),ace.define("ace/lib/useragent",["require","exports","module"],(function(e,t,n){"use strict";t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS};var r="object"==typeof navigator?navigator:{},i=(/mac|win|linux/i.exec(r.platform)||["other"])[0].toLowerCase(),o=r.userAgent||"",s=r.appName||"";t.isWin="win"==i,t.isMac="mac"==i,t.isLinux="linux"==i,t.isIE="Microsoft Internet Explorer"==s||s.indexOf("MSAppHost")>=0?parseFloat((o.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((o.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=o.match(/ Gecko\/\d+/),t.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(o.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(o.split(" Chrome/")[1])||void 0,t.isSafari=parseFloat(o.split(" Safari/")[1])&&!t.isChrome||void 0,t.isEdge=parseFloat(o.split(" Edge/")[1])||void 0,t.isAIR=o.indexOf("AdobeAIR")>=0,t.isAndroid=o.indexOf("Android")>=0,t.isChromeOS=o.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(o)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIOS||t.isAndroid})),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],(function(e,t,n){"use strict";var r,i=e("./useragent");t.buildDom=function e(t,n,r){if("string"==typeof t&&t){var i=document.createTextNode(t);return n&&n.appendChild(i),i}if(!Array.isArray(t))return t&&t.appendChild&&n&&n.appendChild(t),t;if("string"!=typeof t[0]||!t[0]){for(var o=[],s=0;s<t.length;s++){var a=e(t[s],n,r);a&&o.push(a)}return o}var l=document.createElement(t[0]),c=t[1],d=1;for(c&&"object"==typeof c&&!Array.isArray(c)&&(d=2),s=d;s<t.length;s++)e(t[s],l,r);return 2==d&&Object.keys(c).forEach((function(e){var t=c[e];"class"===e?l.className=Array.isArray(t)?t.join(" "):t:"function"==typeof t||"value"==e||"$"==e[0]?l[e]=t:"ref"===e?r&&(r[t]=l):"style"===e?"string"==typeof t&&(l.style.cssText=t):null!=t&&l.setAttribute(e,t)})),n&&n.appendChild(l),l},t.getDocumentHead=function(e){return e||(e=document),e.head||e.getElementsByTagName("head")[0]||e.documentElement},t.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||"http://www.w3.org/1999/xhtml",e):document.createElement(e)},t.removeChildren=function(e){e.innerHTML=""},t.createTextNode=function(e,t){return(t?t.ownerDocument:document).createTextNode(e)},t.createFragment=function(e){return(e?e.ownerDocument:document).createDocumentFragment()},t.hasCssClass=function(e,t){return-1!==(e.className+"").split(/\s+/g).indexOf(t)},t.addCssClass=function(e,n){t.hasCssClass(e,n)||(e.className+=" "+n)},t.removeCssClass=function(e,t){for(var n=e.className.split(/\s+/g);;){var r=n.indexOf(t);if(-1==r)break;n.splice(r,1)}e.className=n.join(" ")},t.toggleCssClass=function(e,t){for(var n=e.className.split(/\s+/g),r=!0;;){var i=n.indexOf(t);if(-1==i)break;r=!1,n.splice(i,1)}return r&&n.push(t),e.className=n.join(" "),r},t.setCssClass=function(e,n,r){r?t.addCssClass(e,n):t.removeCssClass(e,n)},t.hasCssString=function(e,t){var n,r=0;if(n=(t=t||document).querySelectorAll("style"))for(;r<n.length;)if(n[r++].id===e)return!0},t.removeElementById=function(e,t){(t=t||document).getElementById(e)&&t.getElementById(e).remove()};var o=[];function s(){var e=o;o=null,e&&e.forEach((function(e){a(e[0],e[1])}))}function a(e,n,i){if("undefined"!=typeof document){if(o)if(i)s();else if(!1===i)return o.push([e,n]);if(!r){var a=i;i&&i.getRootNode&&(a=i.getRootNode())&&a!=i||(a=document);var l=a.ownerDocument||a;if(n&&t.hasCssString(n,a))return null;n&&(e+="\n/*# sourceURL=ace/css/"+n+" */");var c=t.createElement("style");c.appendChild(l.createTextNode(e)),n&&(c.id=n),a==l&&(a=t.getDocumentHead(l)),a.insertBefore(c,a.firstChild)}}}if(t.useStrictCSP=function(e){r=e,0==e?s():o||(o=[])},t.importCssString=a,t.importCssStylsheet=function(e,n){t.buildDom(["link",{rel:"stylesheet",href:e}],t.getDocumentHead(n))},t.scrollbarWidth=function(e){var n=t.createElement("ace_inner");n.style.width="100%",n.style.minWidth="0px",n.style.height="200px",n.style.display="block";var r=t.createElement("ace_outer"),i=r.style;i.position="absolute",i.left="-10000px",i.overflow="hidden",i.width="200px",i.minWidth="0px",i.height="150px",i.display="block",r.appendChild(n);var o=e&&e.documentElement||document&&document.documentElement;if(!o)return 0;o.appendChild(r);var s=n.offsetWidth;i.overflow="scroll";var a=n.offsetWidth;return s===a&&(a=r.clientWidth),o.removeChild(r),s-a},t.computedStyle=function(e,t){return window.getComputedStyle(e,"")||{}},t.setStyle=function(e,t,n){e[t]!==n&&(e[t]=n)},t.HAS_CSS_ANIMATION=!1,t.HAS_CSS_TRANSFORMS=!1,t.HI_DPI=!i.isWin||"undefined"!=typeof window&&window.devicePixelRatio>=1.5,i.isChromeOS&&(t.HI_DPI=!1),"undefined"!=typeof document){var l=document.createElement("div");t.HI_DPI&&void 0!==l.style.transform&&(t.HAS_CSS_TRANSFORMS=!0),i.isEdge||void 0===l.style.animationName||(t.HAS_CSS_ANIMATION=!0),l=null}t.HAS_CSS_TRANSFORMS?t.translate=function(e,t,n){e.style.transform="translate("+Math.round(t)+"px, "+Math.round(n)+"px)"}:t.translate=function(e,t,n){e.style.top=Math.round(n)+"px",e.style.left=Math.round(t)+"px"}})),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("./dom");t.get=function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText)},n.send(null)},t.loadScript=function(e,t){var n=r.getDocumentHead(),i=document.createElement("script");i.src=e,n.appendChild(i),i.onload=i.onreadystatechange=function(e,n){!n&&i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(i=i.onload=i.onreadystatechange=null,n||t())}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}})),ace.define("ace/lib/oop",["require","exports","module"],(function(e,t,n){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}})),ace.define("ace/lib/event_emitter",["require","exports","module"],(function(e,t,n){"use strict";var r={},i=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(n.length||r){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=o),n=n.slice();for(var s=0;s<n.length&&(n[s](t,this),!t.propagationStopped);s++);return r&&!t.defaultPrevented?r(t,this):void 0}},r._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(n){n=n.slice();for(var r=0;r<n.length;r++)n[r](t,this)}},r.once=function(e,t){var n=this;if(this.on(e,(function r(){n.off(e,r),t.apply(null,arguments)})),!t)return new Promise((function(e){t=e}))},r.setDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n||(n=this._defaultHandlers={_disabled_:{}}),n[e]){var r=n[e],i=n._disabled_[e];i||(n._disabled_[e]=i=[]),i.push(r);var o=i.indexOf(t);-1!=o&&i.splice(o,1)}n[e]=t},r.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n){var r=n._disabled_[e];if(n[e]==t)r&&this.setDefaultHandler(e,r.pop());else if(r){var i=r.indexOf(t);-1!=i&&r.splice(i,1)}}},r.on=r.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[e];return r||(r=this._eventRegistry[e]=[]),-1==r.indexOf(t)&&r[n?"unshift":"push"](t),t},r.off=r.removeListener=r.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(n){var r=n.indexOf(t);-1!==r&&n.splice(r,1)}},r.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[e]=void 0),this._defaultHandlers&&(this._defaultHandlers[e]=void 0)},t.EventEmitter=r})),ace.define("ace/lib/report_error",["require","exports","module"],(function(e,t,n){t.reportError=function(e,t){var n=new Error(e);n.data=t,"object"==typeof console&&console.error&&console.error(n),setTimeout((function(){throw n}))}})),ace.define("ace/lib/default_english_messages",["require","exports","module"],(function(e,t,n){t.defaultEnglishMessages={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor gutter","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages","gutter.annotation.aria-label.security":"Security finding, read annotations row $0","gutter.annotation.aria-label.hint":"Suggestion, read annotations row $0","gutter-tooltip.aria-label.security.singular":"security finding","gutter-tooltip.aria-label.security.plural":"security findings","gutter-tooltip.aria-label.hint.singular":"suggestion","gutter-tooltip.aria-label.hint.plural":"suggestions","editor.tooltip.disable-editing":"Editing is disabled"}})),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],(function(e,t,n){var r,i,o=e("./oop"),s=e("./event_emitter").EventEmitter,a=e("./report_error").reportError,l=e("./default_english_messages").defaultEnglishMessages,c={setOptions:function(e){Object.keys(e).forEach((function(t){this.setOption(t,e[t])}),this)},getOptions:function(e){var t={};if(e)Array.isArray(e)||(t=e,e=Object.keys(t));else{var n=this.$options;e=Object.keys(n).filter((function(e){return!n[e].hidden}))}return e.forEach((function(e){t[e]=this.getOption(e)}),this),t},setOption:function(e,t){if(this["$"+e]!==t){var n=this.$options[e];if(!n)return d('misspelled option "'+e+'"');if(n.forwardTo)return this[n.forwardTo]&&this[n.forwardTo].setOption(e,t);n.handlesSet||(this["$"+e]=t),n&&n.set&&n.set.call(this,t)}},getOption:function(e){var t=this.$options[e];return t?t.forwardTo?this[t.forwardTo]&&this[t.forwardTo].getOption(e):t&&t.get?t.get.call(this):this["$"+e]:d('misspelled option "'+e+'"')}};function d(e){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}var u=function(){function e(){this.$defaultOptions={},r=l,i="dollarSigns"}return e.prototype.defineOptions=function(e,t,n){return e.$options||(this.$defaultOptions[t]=e.$options={}),Object.keys(n).forEach((function(t){var r=n[t];"string"==typeof r&&(r={forwardTo:r}),r.name||(r.name=t),e.$options[r.name]=r,"initialValue"in r&&(e["$"+r.name]=r.initialValue)})),o.implement(e,c),this},e.prototype.resetOptions=function(e){Object.keys(e.$options).forEach((function(t){var n=e.$options[t];"value"in n&&e.setOption(t,n.value)}))},e.prototype.setDefaultValue=function(e,t,n){if(!e){for(e in this.$defaultOptions)if(this.$defaultOptions[e][t])break;if(!this.$defaultOptions[e][t])return!1}var r=this.$defaultOptions[e]||(this.$defaultOptions[e]={});r[t]&&(r.forwardTo?this.setDefaultValue(r.forwardTo,t,n):r[t].value=n)},e.prototype.setDefaultValues=function(e,t){Object.keys(t).forEach((function(n){this.setDefaultValue(e,n,t[n])}),this)},e.prototype.setMessages=function(e,t){r=e,t&&t.placeholders&&(i=t.placeholders)},e.prototype.nls=function(e,t,n){r[e]||(d("No message found for the key '"+e+"' in messages with id "+r.$id+", trying to find a translation for the default string '"+t+"'."),r[t]||d("No message found for the default string '"+t+"' in the provided messages. Falling back to the default English message."));var o=r[e]||r[t]||t;return n&&("dollarSigns"===i&&(o=o.replace(/\$(\$|[\d]+)/g,(function(e,t){return"$"==t?"$":n[t]}))),"curlyBrackets"===i&&(o=o.replace(/\{([^\}]+)\}/g,(function(e,t){return n[t]})))),o},e}();u.prototype.warn=d,u.prototype.reportError=a,o.implement(u.prototype,s),t.AppConfig=u})),ace.define("ace/theme/textmate-css",["require","exports","module"],(function(e,t,n){n.exports='.ace-tm .ace_gutter {\n background: #f0f0f0;\n color: #333;\n}\n\n.ace-tm .ace_print-margin {\n width: 1px;\n background: #e8e8e8;\n}\n\n.ace-tm .ace_fold {\n background-color: #6B72E6;\n}\n\n.ace-tm {\n background-color: #FFFFFF;\n color: black;\n}\n\n.ace-tm .ace_cursor {\n color: black;\n}\n \n.ace-tm .ace_invisible {\n color: rgb(191, 191, 191);\n}\n\n.ace-tm .ace_storage,\n.ace-tm .ace_keyword {\n color: blue;\n}\n\n.ace-tm .ace_constant {\n color: rgb(197, 6, 11);\n}\n\n.ace-tm .ace_constant.ace_buildin {\n color: rgb(88, 72, 246);\n}\n\n.ace-tm .ace_constant.ace_language {\n color: rgb(88, 92, 246);\n}\n\n.ace-tm .ace_constant.ace_library {\n color: rgb(6, 150, 14);\n}\n\n.ace-tm .ace_invalid {\n background-color: rgba(255, 0, 0, 0.1);\n color: red;\n}\n\n.ace-tm .ace_support.ace_function {\n color: rgb(60, 76, 114);\n}\n\n.ace-tm .ace_support.ace_constant {\n color: rgb(6, 150, 14);\n}\n\n.ace-tm .ace_support.ace_type,\n.ace-tm .ace_support.ace_class {\n color: rgb(109, 121, 222);\n}\n\n.ace-tm .ace_keyword.ace_operator {\n color: rgb(104, 118, 135);\n}\n\n.ace-tm .ace_string {\n color: rgb(3, 106, 7);\n}\n\n.ace-tm .ace_comment {\n color: rgb(76, 136, 107);\n}\n\n.ace-tm .ace_comment.ace_doc {\n color: rgb(0, 102, 255);\n}\n\n.ace-tm .ace_comment.ace_doc.ace_tag {\n color: rgb(128, 159, 191);\n}\n\n.ace-tm .ace_constant.ace_numeric {\n color: rgb(0, 0, 205);\n}\n\n.ace-tm .ace_variable {\n color: rgb(49, 132, 149);\n}\n\n.ace-tm .ace_xml-pe {\n color: rgb(104, 104, 91);\n}\n\n.ace-tm .ace_entity.ace_name.ace_function {\n color: #0000A2;\n}\n\n\n.ace-tm .ace_heading {\n color: rgb(12, 7, 255);\n}\n\n.ace-tm .ace_list {\n color:rgb(185, 6, 144);\n}\n\n.ace-tm .ace_meta.ace_tag {\n color:rgb(0, 22, 142);\n}\n\n.ace-tm .ace_string.ace_regex {\n color: rgb(255, 0, 0)\n}\n\n.ace-tm .ace_marker-layer .ace_selection {\n background: rgb(181, 213, 255);\n}\n.ace-tm.ace_multiselect .ace_selection.ace_start {\n box-shadow: 0 0 3px 0px white;\n}\n.ace-tm .ace_marker-layer .ace_step {\n background: rgb(252, 255, 0);\n}\n\n.ace-tm .ace_marker-layer .ace_stack {\n background: rgb(164, 229, 101);\n}\n\n.ace-tm .ace_marker-layer .ace_bracket {\n margin: -1px 0 0 -1px;\n border: 1px solid rgb(192, 192, 192);\n}\n\n.ace-tm .ace_marker-layer .ace_active-line {\n background: rgba(0, 0, 0, 0.07);\n}\n\n.ace-tm .ace_gutter-active-line {\n background-color : #dcdcdc;\n}\n\n.ace-tm .ace_marker-layer .ace_selected-word {\n background: rgb(250, 250, 255);\n border: 1px solid rgb(200, 200, 250);\n}\n\n.ace-tm .ace_indent-guide {\n background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;\n}\n\n.ace-tm .ace_indent-guide-active {\n background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;\n}\n'})),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],(function(e,t,n){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText=e("./textmate-css"),t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass,!1)})),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],(function(e,t,n){var r=e("./lib/lang"),i=e("./lib/net"),o=e("./lib/dom"),s=e("./lib/app_config").AppConfig;n.exports=t=new s;var a,l={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};t.get=function(e){if(!l.hasOwnProperty(e))throw new Error("Unknown config key: "+e);return l[e]},t.set=function(e,t){if(l.hasOwnProperty(e))l[e]=t;else if(0==this.setDefaultValue("",e,t))throw new Error("Unknown config key: "+e);"useStrictCSP"==e&&o.useStrictCSP(t)},t.all=function(){return r.copyObject(l)},t.$modes={},t.moduleUrl=function(e,t){if(l.$moduleUrls[e])return l.$moduleUrls[e];var n=e.split("/"),r="snippets"==(t=t||n[n.length-2]||"")?"/":"-",i=n[n.length-1];if("worker"==t&&"-"==r){var o=new RegExp("^"+t+"[\\-_]|[\\-_]"+t+"$","g");i=i.replace(o,"")}(!i||i==t)&&n.length>1&&(i=n[n.length-2]);var s=l[t+"Path"];return null==s?s=l.basePath:"/"==r&&(t=r=""),s&&"/"!=s.slice(-1)&&(s+="/"),s+t+r+i+this.get("suffix")},t.setModuleUrl=function(e,t){return l.$moduleUrls[e]=t},t.setLoader=function(e){a=e},t.dynamicModules=Object.create(null),t.$loading={},t.$loaded={},t.loadModule=function(n,r){var o;if(Array.isArray(n))var s=n[0],l=n[1];else"string"==typeof n&&(l=n);var d=function(n){if(n&&!t.$loading[l])return r&&r(n);if(t.$loading[l]||(t.$loading[l]=[]),t.$loading[l].push(r),!(t.$loading[l].length>1)){var o=function(){!function(t,n){"ace/theme/textmate"===t||"./theme/textmate"===t?n(0,e("./theme/textmate")):a?a(t,n):console.error("loader is not configured")}(l,(function(e,n){n&&(t.$loaded[l]=n),t._emit("load.module",{name:l,module:n});var r=t.$loading[l];t.$loading[l]=null,r.forEach((function(e){e&&e(n)}))}))};if(!t.get("packaged"))return o();i.loadScript(t.moduleUrl(l,s),o),c()}};if(t.dynamicModules[l])t.dynamicModules[l]().then((function(e){e.default?d(e.default):d(e)}));else{try{o=this.$require(l)}catch(e){}d(o||t.$loaded[l])}},t.$require=function(e){if("function"==typeof n.require)return n.require(e)},t.setModuleLoader=function(e,n){t.dynamicModules[e]=n};var c=function(){l.basePath||l.workerPath||l.modePath||l.themePath||Object.keys(l.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),c=function(){})};t.version="1.39.1"})),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],(function(e,t,r){"use strict";e("./lib/fixoldbrowsers");var i=e("./config");i.setLoader((function(t,n){e([t],(function(e){n(null,e)}))}));var o=function(){return this||"undefined"!=typeof window&&window}();function s(t){if(o&&o.document){i.set("packaged",t||e.packaged||r.packaged||o.define&&n.amdD.packaged);var s={},a="",l=document.currentScript||document._currentScript,c=l&&l.ownerDocument||document;l&&l.src&&(a=l.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var d,u=c.getElementsByTagName("script"),h=0;h<u.length;h++){var p=u[h],f=p.src||p.getAttribute("src");if(f){for(var g=p.attributes,m=0,b=g.length;m<b;m++){var v=g[m];0===v.name.indexOf("data-ace-")&&(s[(d=v.name.replace(/^data-ace-/,""),d.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=v.value)}var y=f.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);y&&(a=y[1])}}for(var w in a&&(s.base=s.base||a,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base,s)void 0!==s[w]&&i.set(w,s[w])}}r.exports=function(t){i.init=s,i.$require=e,t.require=e,t.define=n.amdD},s(!0)})),ace.define("ace/range",["require","exports","module"],(function(e,t,n){"use strict";var r=function(){function e(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}}return e.prototype.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},e.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},e.prototype.contains=function(e,t){return 0==this.compare(e,t)},e.prototype.compareRange=function(e){var t,n=e.end,r=e.start;return 1==(t=this.compare(n.row,n.column))?1==(t=this.compare(r.row,r.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(r.row,r.column))?-1:1==t?42:0},e.prototype.comparePoint=function(e){return this.compare(e.row,e.column)},e.prototype.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},e.prototype.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},e.prototype.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},e.prototype.isStart=function(e,t){return this.start.row==e&&this.start.column==t},e.prototype.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},e.prototype.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},e.prototype.inside=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)&&!this.isStart(e,t)},e.prototype.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},e.prototype.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},e.prototype.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:t<this.start.column?-1:t>this.end.column?1:0},e.prototype.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},e.prototype.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},e.prototype.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},e.prototype.clipRows=function(t,n){if(this.end.row>n)var r={row:n+1,column:0};else this.end.row<t&&(r={row:t,column:0});if(this.start.row>n)var i={row:n+1,column:0};else this.start.row<t&&(i={row:t,column:0});return e.fromPoints(i||this.start,r||this.end)},e.prototype.extend=function(t,n){var r=this.compare(t,n);if(0==r)return this;if(-1==r)var i={row:t,column:n};else var o={row:t,column:n};return e.fromPoints(i||this.start,o||this.end)},e.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},e.prototype.isMultiLine=function(){return this.start.row!==this.end.row},e.prototype.clone=function(){return e.fromPoints(this.start,this.end)},e.prototype.collapseRows=function(){return 0==this.end.column?new e(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new e(this.start.row,0,this.end.row,0)},e.prototype.toScreenRange=function(t){var n=t.documentToScreenPosition(this.start),r=t.documentToScreenPosition(this.end);return new e(n.row,n.column,r.row,r.column)},e.prototype.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t},e}();r.fromPoints=function(e,t){return new r(e.row,e.column,t.row,t.column)},r.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=r})),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],(function(e,t,n){"use strict";for(var r=e("./oop"),i={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},o={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},s=0;s<10;s++)o["Digit"+s]=48+s,o["Numpad"+s]=96+s,i.PRINTABLE_KEYS[48+s]=""+s,i.FUNCTION_KEYS[96+s]="Numpad"+s;for(s=65;s<91;s++){var a=String.fromCharCode(s+32);o["Key"+a.toUpperCase()]=s,i.PRINTABLE_KEYS[s]=a}for(s=1;s<13;s++)o["F"+s]=111+s,i.FUNCTION_KEYS[111+s]="F"+s;var l={Shift:16,Control:17,Alt:18,Meta:224};for(var c in l)o[c]=o[c+"Left"]=o[c+"Right"]=l[c];for(var d in t.$codeToKeyCode=o,i.PRINTABLE_KEYS[173]="-",i.FUNCTION_KEYS){var u=i.FUNCTION_KEYS[d].toLowerCase();i[u]=parseInt(d,10)}for(var d in i.PRINTABLE_KEYS)u=i.PRINTABLE_KEYS[d].toLowerCase(),i[u]=parseInt(d,10);r.mixin(i,i.MODIFIER_KEYS),r.mixin(i,i.PRINTABLE_KEYS),r.mixin(i,i.FUNCTION_KEYS),i.enter=i.return,i.escape=i.esc,i.del=i.delete,function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)i.KEY_MODS[t]=e.filter((function(e){return t&i.KEY_MODS[e]})).join("-")+"-"}(),i.KEY_MODS[0]="",i.KEY_MODS[-1]="input-",r.mixin(t,i),t.default=t,t.keyCodeToString=function(e){var t=i[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var r,i=e("./keys"),o=e("./useragent"),s=null,a=0;function l(){return null==r&&function(){r=!1;try{document.createComment("").addEventListener("test",(function(){}),{get passive(){return r={passive:!1},!0}})}catch(e){}}(),r}function c(e,t,n){this.elem=e,this.type=t,this.callback=n}c.prototype.destroy=function(){u(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var d=t.addListener=function(e,t,n,r){e.addEventListener(t,n,l()),r&&r.$toDestroy.push(new c(e,t,n))},u=t.removeListener=function(e,t,n){e.removeEventListener(t,n,l())};function h(e){return(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)}function p(){s=Object.create(null)}if(t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation&&e.stopPropagation()},t.preventDefault=function(e){e.preventDefault&&e.preventDefault()},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||o.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.button},t.capture=function(e,t,n){var r=e&&e.ownerDocument||document;function i(e){t&&t(e),n&&n(e),u(r,"mousemove",t),u(r,"mouseup",i),u(r,"dragstart",i)}return d(r,"mousemove",t),d(r,"mouseup",i),d(r,"dragstart",i),i},t.addMouseWheelListener=function(e,t,n){d(e,"wheel",(function(e){var n=e.deltaX||0,r=e.deltaY||0;switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=.15*n,e.wheelY=.15*r;break;case e.DOM_DELTA_LINE:e.wheelX=15*n,e.wheelY=15*r;break;case e.DOM_DELTA_PAGE:e.wheelX=150*n,e.wheelY=150*r}t(e)}),n)},t.addMultiMouseDownListener=function(e,n,r,i,s){var a,l,c,u=0,h={2:"dblclick",3:"tripleclick",4:"quadclick"};function p(e){if(0!==t.getButton(e)?u=0:e.detail>1?++u>4&&(u=1):u=1,o.isIE){var s=Math.abs(e.clientX-a)>5||Math.abs(e.clientY-l)>5;c&&!s||(u=1),c&&clearTimeout(c),c=setTimeout((function(){c=null}),n[u-1]||600),1==u&&(a=e.clientX,l=e.clientY)}if(e._clicks=u,r[i]("mousedown",e),u>4)u=0;else if(u>1)return r[i](h[u],e)}Array.isArray(e)||(e=[e]),e.forEach((function(e){d(e,"mousedown",p,s)}))},t.getModifierString=function(e){return i.KEY_MODS[h(e)]},t.addCommandKeyListener=function(e,n,r){var l=null;d(e,"keydown",(function(e){s[e.keyCode]=(s[e.keyCode]||0)+1;var t=function(e,t,n){var r=h(t);if(!n&&t.code&&(n=i.$codeToKeyCode[t.code]||n),!o.isMac&&s){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(r|=8),s.altGr){if(!(3&~r))return;s.altGr=0}if(18===n||17===n){var l=t.location;17===n&&1===l?1==s[n]&&(a=t.timeStamp):18===n&&3===r&&2===l&&t.timeStamp-a<50&&(s.altGr=!0)}}if(n in i.MODIFIER_KEYS&&(n=-1),r||13!==n||3!==t.location||(e(t,r,-n),!t.defaultPrevented)){if(o.isChromeOS&&8&r){if(e(t,r,n),t.defaultPrevented)return;r&=-9}return!!(r||n in i.FUNCTION_KEYS||n in i.PRINTABLE_KEYS)&&e(t,r,n)}}(n,e,e.keyCode);return l=e.defaultPrevented,t}),r),d(e,"keypress",(function(e){l&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),l=null)}),r),d(e,"keyup",(function(e){s[e.keyCode]=null}),r),s||(p(),d(window,"focus",p))},"object"==typeof window&&window.postMessage&&!o.isOldIE){var f=1;t.nextTick=function(e,n){n=n||window;var r="zero-timeout-message-"+f++,i=function(o){o.data==r&&(t.stopPropagation(o),u(n,"message",i),e())};d(n,"message",i),n.postMessage(r,"*")}}t.$idleBlocked=!1,t.onIdle=function(e,n){return setTimeout((function n(){t.$idleBlocked?setTimeout(n,100):e()}),n)},t.$idleBlockId=null,t.blockIdle=function(e){t.$idleBlockId&&clearTimeout(t.$idleBlockId),t.$idleBlocked=!0,t.$idleBlockId=setTimeout((function(){t.$idleBlocked=!1}),e||100)},t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}})),ace.define("ace/clipboard",["require","exports","module"],(function(e,t,n){"use strict";var r;n.exports={lineMode:!1,pasteCancelled:function(){return!!(r&&r>Date.now()-50)||(r=!1)},cancel:function(){r=Date.now()}}})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],(function(e,t,n){"use strict";var r,i=e("../lib/event"),o=e("../config").nls,s=e("../lib/useragent"),a=e("../lib/dom"),l=e("../lib/lang"),c=e("../clipboard"),d=s.isChrome<18,u=s.isIE,h=s.isChrome>63,p=400,f=e("../lib/keys"),g=f.KEY_MODS,m=s.isIOS,b=m?/\s/:/\n/,v=s.isMobile;r=function(e,t){var n=a.createElement("textarea");n.className="ace_text-input",n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck","false"),n.style.opacity="0",e.insertBefore(n,e.firstChild);var r=!1,y=!1,w=!1,x=!1,k="";v||(n.style.fontSize="1px");var _=!1,C=!1,T="",S=0,E=0,$=0,M=Number.MAX_SAFE_INTEGER,L=Number.MIN_SAFE_INTEGER,A=0;try{var R=document.activeElement===n}catch(e){}this.setNumberOfExtraLines=function(e){M=Number.MAX_SAFE_INTEGER,L=Number.MIN_SAFE_INTEGER,A=e<0?0:e},this.setAriaLabel=function(){var e="";if(t.$textInputAriaLabel&&(e+="".concat(t.$textInputAriaLabel,", ")),t.session){var r=t.session.selection.cursor.row;e+=o("text-input.aria-label","Cursor at row $0",[r+1])}n.setAttribute("aria-label",e)},this.setAriaOptions=function(e){e.activeDescendant?(n.setAttribute("aria-haspopup","true"),n.setAttribute("aria-autocomplete",e.inline?"both":"list"),n.setAttribute("aria-activedescendant",e.activeDescendant)):(n.setAttribute("aria-haspopup","false"),n.setAttribute("aria-autocomplete","both"),n.removeAttribute("aria-activedescendant")),e.role&&n.setAttribute("role",e.role),e.setLabel&&(n.setAttribute("aria-roledescription",o("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),i.addListener(n,"blur",(function(e){C||(t.onBlur(e),R=!1)}),t),i.addListener(n,"focus",(function(e){if(!C){if(R=!0,s.isEdge)try{if(!document.hasFocus())return}catch(e){}t.onFocus(e),s.isEdge?setTimeout(j):j()}}),t),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:t.renderer.enableKeyboardAccessibility}),k||h||"browser"==this.$focusScroll)return n.focus({preventScroll:!0});var e=n.style.top;n.style.position="fixed",n.style.top="0px";try{var r=0!=n.getBoundingClientRect().top}catch(e){return}var i=[];if(r)for(var o=n.parentElement;o&&1==o.nodeType;)i.push(o),o.setAttribute("ace_nocontext","true"),o=!o.parentElement&&o.getRootNode?o.getRootNode().host:o.parentElement;n.focus({preventScroll:!0}),r&&i.forEach((function(e){e.removeAttribute("ace_nocontext")})),setTimeout((function(){n.style.position="","0px"==n.style.top&&(n.style.top=e)}),0)},this.blur=function(){n.blur()},this.isFocused=function(){return R},t.on("beforeEndOperation",(function(){var e=t.curOp,r=e&&e.command&&e.command.name;if("insertstring"!=r){var i=r&&(e.docChanged||e.selectionChanged);w&&i&&(T=n.value="",V()),j()}})),t.on("changeSelection",this.setAriaLabel);var N=function(e,n){for(var r=n,i=1;i<=e-M&&i<2*A+1;i++)r+=t.session.getLine(e-i).length+1;return r},j=m?function(e){if(R&&(!r||e)&&!x){e||(e="");var i="\n ab"+e+"cde fg\n";i!=n.value&&(n.value=T=i);var o=4+(e.length||(t.selection.isEmpty()?0:1));4==S&&E==o||n.setSelectionRange(4,o),S=4,E=o}}:function(){if(!w&&!x&&(R||O)){w=!0;var e=0,r=0,i="";if(t.session){var o=t.selection,s=o.getRange(),a=o.cursor.row;a===L+1?L=(M=L+1)+2*A:a===M-1?M=(L=M-1)-2*A:(a<M-1||a>L+1)&&(M=a>A?a-A:0,L=a>A?a+A:2*A);for(var l=[],c=M;c<=L;c++)l.push(t.session.getLine(c));if(i=l.join("\n"),e=N(s.start.row,s.start.column),r=N(s.end.row,s.end.column),s.start.row<M){var d=t.session.getLine(M-1);e=s.start.row<M-1?0:e,r+=d.length+1,i=d+"\n"+i}else if(s.end.row>L){var u=t.session.getLine(L+1);r=s.end.row>L+1?u.length:s.end.column,r+=i.length+1,i=i+"\n"+u}else v&&a>0&&(i="\n"+i,r+=1,e+=1);i.length>p&&(e<p&&r<p?i=i.slice(0,p):(i="\n",e==r?e=r=0:(e=0,r=1)));var h=i+"\n\n";h!=T&&(n.value=T=h,S=E=h.length)}if(O&&(S=n.selectionStart,E=n.selectionEnd),E!=r||S!=e||n.selectionEnd!=E)try{n.setSelectionRange(e,r),S=e,E=r}catch(e){}w=!1}};this.resetSelection=j,R&&t.onFocus();var I=null;this.setInputHandler=function(e){I=e},this.getInputHandler=function(){return I};var O=!1,D=function(e,r){if(O&&(O=!1),y)return j(),e&&t.onPaste(e),y=!1,"";for(var i=n.selectionStart,o=n.selectionEnd,a=S,l=T.length-E,c=e,d=e.length-i,u=e.length-o,h=0;a>0&&T[h]==e[h];)h++,a--;for(c=c.slice(h),h=1;l>0&&T.length-h>S-1&&T[T.length-h]==e[e.length-h];)h++,l--;d-=h-1,u-=h-1;var p=c.length-h+1;if(p<0&&(a=-p,p=0),c=c.slice(0,p),!(r||c||d||a||l||u))return"";x=!0;var f=!1;return s.isAndroid&&". "==c&&(c=" ",f=!0),c&&!a&&!l&&!d&&!u||_?t.onTextInput(c):t.onTextInput(c,{extendLeft:a,extendRight:l,restoreStart:d,restoreEnd:u}),x=!1,T=e,S=i,E=o,$=u,f?"\n":c},P=function(e){if(w)return U();if(e&&e.inputType){if("historyUndo"==e.inputType)return t.execCommand("undo");if("historyRedo"==e.inputType)return t.execCommand("redo")}var r=n.value,i=D(r,!0);(r.length>500||b.test(i)||v&&S<1&&S==E)&&j()},F=function(e,t,n){var r=e.clipboardData||window.clipboardData;if(r&&!d){var i=u||n?"Text":"text/plain";try{return t?!1!==r.setData(i,t):r.getData(i)}catch(e){if(!n)return F(e,t,!0)}}},z=function(e,o){var s=t.getCopyText();if(!s)return i.preventDefault(e);F(e,s)?(m&&(j(s),r=s,setTimeout((function(){r=!1}),10)),o?t.onCut():t.onCopy(),i.preventDefault(e)):(r=!0,n.value=s,n.select(),setTimeout((function(){r=!1,j(),o?t.onCut():t.onCopy()})))},B=function(e){z(e,!0)},H=function(e){z(e,!1)},W=function(e){var r=F(e);c.pasteCancelled()||("string"==typeof r?(r&&t.onPaste(r,e),s.isIE&&setTimeout(j),i.preventDefault(e)):(n.value="",y=!0))};i.addCommandKeyListener(n,(function(e,n,r){if(!w)return t.onCommandKey(e,n,r)}),t),i.addListener(n,"select",(function(e){w||(r?r=!1:function(e){return 0===e.selectionStart&&e.selectionEnd>=T.length&&e.value===T&&T&&e.selectionEnd!==E}(n)?(t.selectAll(),j()):v&&n.selectionStart!=S&&j())}),t),i.addListener(n,"input",P,t),i.addListener(n,"cut",B,t),i.addListener(n,"copy",H,t),i.addListener(n,"paste",W,t),"oncut"in n&&"oncopy"in n&&"onpaste"in n||i.addListener(e,"keydown",(function(e){if((!s.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:H(e);break;case 86:W(e);break;case 88:B(e)}}),t);var U=function(){if(w&&t.onCompositionUpdate&&!t.$readOnly){if(_)return q();if(w.useTextareaForIME)t.onCompositionUpdate(n.value);else{var e=n.value;D(e),w.markerRange&&(w.context&&(w.markerRange.start.column=w.selectionStart=w.context.compositionStartOffset),w.markerRange.end.column=w.markerRange.start.column+E-w.selectionStart+$)}}},V=function(e){t.onCompositionEnd&&!t.$readOnly&&(w=!1,t.onCompositionEnd(),t.off("mousedown",q),e&&P())};function q(){C=!0,n.blur(),n.focus(),C=!1}var G,Y=l.delayedCall(U,50).schedule.bind(null,null);function K(){clearTimeout(G),G=setTimeout((function(){k&&(n.style.cssText=k,k=""),t.renderer.$isMousePressed=!1,t.renderer.$keepTextAreaAtCursor&&t.renderer.$moveTextAreaToCursor()}),0)}i.addListener(n,"compositionstart",(function(e){if(!w&&t.onCompositionStart&&!t.$readOnly&&(w={},!_)){e.data&&(w.useTextareaForIME=!1),setTimeout(U,0),t._signal("compositionStart"),t.on("mousedown",q);var r=t.getSelectionRange();r.end.row=r.start.row,r.end.column=r.start.column,w.markerRange=r,w.selectionStart=S,t.onCompositionStart(w),w.useTextareaForIME?(T=n.value="",S=0,E=0):(n.msGetInputContext&&(w.context=n.msGetInputContext()),n.getInputContext&&(w.context=n.getInputContext()))}}),t),i.addListener(n,"compositionupdate",U,t),i.addListener(n,"keyup",(function(e){27==e.keyCode&&n.value.length<n.selectionStart&&(w||(T=n.value),S=E=-1,j()),Y()}),t),i.addListener(n,"keydown",Y,t),i.addListener(n,"compositionend",V,t),this.getElement=function(){return n},this.setCommandMode=function(e){_=e,n.readOnly=!1},this.setReadOnly=function(e){_||(n.readOnly=e)},this.setCopyWithEmptySelection=function(e){},this.onContextMenu=function(e){O=!0,j(),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,r){k||(k=n.style.cssText),n.style.cssText=(r?"z-index:100000;":"")+(s.isIE?"opacity:0.1;":"")+"text-indent: -"+(S+E)*t.renderer.characterWidth*.5+"px;";var o=t.container.getBoundingClientRect(),l=a.computedStyle(t.container),c=o.top+(parseInt(l.borderTopWidth)||0),d=o.left+(parseInt(l.borderLeftWidth)||0),u=o.bottom-c-n.clientHeight-2,h=function(e){a.translate(n,e.clientX-d-2,Math.min(e.clientY-c-2,u))};h(e),"mousedown"==e.type&&(t.renderer.$isMousePressed=!0,clearTimeout(G),s.isWin&&i.capture(t.container,h,K))},this.onContextMenuClose=K;var X=function(e){t.textInput.onContextMenu(e),K()};i.addListener(n,"mouseup",X,t),i.addListener(n,"mousedown",(function(e){e.preventDefault(),K()}),t),i.addListener(t.renderer.scroller,"contextmenu",X,t),i.addListener(n,"contextmenu",X,t),m&&function(e,t,n){var i=null,o=!1;n.addEventListener("keydown",(function(e){i&&clearTimeout(i),o=!0}),!0),n.addEventListener("keyup",(function(e){i=setTimeout((function(){o=!1}),100)}),!0);var s=function(e){if(document.activeElement===n&&!(o||w||t.$mouseHandler.isMousePressed||r)){var i=n.selectionStart,s=n.selectionEnd,a=null,l=0;if(0==i?a=f.up:1==i?a=f.home:s>E&&"\n"==T[s]?a=f.end:i<S&&" "==T[i-1]?(a=f.left,l=g.option):i<S||i==S&&E!=S&&i==s?a=f.left:s>E&&T.slice(0,s).split("\n").length>2?a=f.down:s>E&&" "==T[s-1]?(a=f.right,l=g.option):(s>E||s==E&&E!=S&&i==s)&&(a=f.right),i!==s&&(l|=g.shift),a){if(!t.onCommandKey({},l,a)&&t.commands){a=f.keyCodeToString(a);var c=t.commands.findKeyCommand(l,a);c&&t.execCommand(c)}S=i,E=s,j("")}}};document.addEventListener("selectionchange",s),t.on("destroy",(function(){document.removeEventListener("selectionchange",s)}))}(0,t,n),this.destroy=function(){n.parentElement&&n.parentElement.removeChild(n)}},t.TextInput=r,t.$setUserAgentForTests=function(e,t){v=e,m=t}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/useragent"),i=function(){function e(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e)),["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach((function(t){e[t]=this[t]}),this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}return e.prototype.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var i=this.editor,o=e.getButton();return 0!==o?((i.getSelectionRange().isEmpty()||1==o)&&i.selection.moveToPosition(n),void(2==o&&(i.textInput.onContextMenu(e.domEvent),r.isMozilla||e.preventDefault()))):(this.mousedownEvent.time=Date.now(),!t||i.isFocused()||(i.focus(),!this.$focusTimeout||this.$clickSelection||i.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e)))},e.prototype.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.setStyle("ace_selecting"),this.setState("select"))},e.prototype.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var r=this.$clickSelection.comparePoint(n);if(-1==r)e=this.$clickSelection.end;else if(1==r)e=this.$clickSelection.start;else{var i=o(this.$clickSelection,n);n=i.cursor,e=i.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.renderer.scrollCursorIntoView()},e.prototype.extendSelectionBy=function(e){var t,n=this.editor,r=n.renderer.screenToTextCoordinates(this.x,this.y),i=n.selection[e](r.row,r.column);if(this.$clickSelection){var s=this.$clickSelection.comparePoint(i.start),a=this.$clickSelection.comparePoint(i.end);if(-1==s&&a<=0)t=this.$clickSelection.end,i.end.row==r.row&&i.end.column==r.column||(r=i.start);else if(1==a&&s>=0)t=this.$clickSelection.start,i.start.row==r.row&&i.start.column==r.column||(r=i.end);else if(-1==s&&1==a)r=i.end,t=i.start;else{var l=o(this.$clickSelection,r);r=l.cursor,t=l.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(r),n.renderer.scrollCursorIntoView()},e.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},e.prototype.focusWait=function(){var e,t,n,r,i=(e=this.mousedownEvent.x,t=this.mousedownEvent.y,n=this.x,r=this.y,Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))),o=Date.now();(i>0||o-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},e.prototype.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,r=n.session.getBracketRange(t);r?(r.isEmpty()&&(r.start.column--,r.end.column++),this.setState("select")):(r=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=r,this.select()},e.prototype.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var r=n.getSelectionRange();r.isMultiLine()&&r.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(r.start.row),this.$clickSelection.end=n.selection.getLineRange(r.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},e.prototype.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},e.prototype.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,r=e.domEvent.timeStamp,i=r-n.t,o=i?e.wheelX/i:n.vx,s=i?e.wheelY/i:n.vy;i<550&&(o=(o+n.vx)/2,s=(s+n.vy)/2);var a=Math.abs(o/s),l=!1;return a>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(l=!0),a<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(l=!0),l?n.allowed=r:r-n.allowed<550&&(Math.abs(o)<=1.5*Math.abs(n.vx)&&Math.abs(s)<=1.5*Math.abs(n.vy)?(l=!0,n.allowed=r):n.allowed=0),n.t=r,n.vx=o,n.vy=s,l?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}},e}();function o(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}i.prototype.selectEnd=i.prototype.selectByLinesEnd,i.prototype.selectAllEnd=i.prototype.selectByLinesEnd,i.prototype.selectByWordsEnd=i.prototype.selectByLinesEnd,t.DefaultHandlers=i})),ace.define("ace/lib/scroll",["require","exports","module"],(function(e,t,n){t.preventParentScroll=function(e){e.stopPropagation();var t=e.currentTarget;t.scrollHeight>t.clientHeight||e.preventDefault()}})),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],(function(e,t,n){"use strict";var r,i=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=e("./lib/dom"),a=(e("./lib/event"),e("./range").Range),l=e("./lib/scroll").preventParentScroll,c="ace_tooltip",d=function(){function e(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}return e.prototype.$init=function(){return this.$element=s.createElement("div"),this.$element.className=c,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},e.prototype.getElement=function(){return this.$element||this.$init()},e.prototype.setText=function(e){this.getElement().textContent=e},e.prototype.setHtml=function(e){this.getElement().innerHTML=e},e.prototype.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},e.prototype.setClassName=function(e){s.addCssClass(this.getElement(),e)},e.prototype.setTheme=function(e){this.$element.className=c+" "+(e.isDark?"ace_dark ":"")+(e.cssClass||"")},e.prototype.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},e.prototype.hide=function(e){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=c,this.isOpen=!1)},e.prototype.getHeight=function(){return this.getElement().offsetHeight},e.prototype.getWidth=function(){return this.getElement().offsetWidth},e.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},e}(),u=new(function(){function e(){this.popups=[]}return e.prototype.addPopup=function(e){this.popups.push(e),this.updatePopups()},e.prototype.removePopup=function(e){var t=this.popups.indexOf(e);-1!==t&&(this.popups.splice(t,1),this.updatePopups())},e.prototype.updatePopups=function(){var e,t,n,r;this.popups.sort((function(e,t){return t.priority-e.priority}));var i=[];try{for(var s=o(this.popups),a=s.next();!a.done;a=s.next()){var l=a.value,c=!0;try{for(var d=(n=void 0,o(i)),u=d.next();!u.done;u=d.next()){var h=u.value;if(this.doPopupsOverlap(h,l)){c=!1;break}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}c?i.push(l):l.hide()}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}},e.prototype.doPopupsOverlap=function(e,t){var n=e.getElement().getBoundingClientRect(),r=t.getElement().getBoundingClientRect();return n.left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top},e}());t.popupManager=u,t.Tooltip=d;var h=function(e){function t(t){void 0===t&&(t=document.body);var n=e.call(this,t)||this;n.timeout=void 0,n.lastT=0,n.idleTime=350,n.lastEvent=void 0,n.onMouseOut=n.onMouseOut.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.waitForHover=n.waitForHover.bind(n),n.hide=n.hide.bind(n);var r=n.getElement();return r.style.whiteSpace="pre-wrap",r.style.pointerEvents="auto",r.addEventListener("mouseout",n.onMouseOut),r.tabIndex=-1,r.addEventListener("blur",function(){r.contains(document.activeElement)||this.hide()}.bind(n)),r.addEventListener("wheel",l),n}return i(t,e),t.prototype.addToEditor=function(e){e.on("mousemove",this.onMouseMove),e.on("mousedown",this.hide),e.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},t.prototype.removeFromEditor=function(e){e.off("mousemove",this.onMouseMove),e.off("mousedown",this.hide),e.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},t.prototype.onMouseMove=function(e,t){this.lastEvent=e,this.lastT=Date.now();var n=t.$mouseHandler.isMousePressed;if(this.isOpen){var r=this.lastEvent&&this.lastEvent.getDocumentPosition();this.range&&this.range.contains(r.row,r.column)&&!n&&!this.isOutsideOfText(this.lastEvent)||this.hide()}this.timeout||n||(this.lastEvent=e,this.timeout=setTimeout(this.waitForHover,this.idleTime))},t.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var e=Date.now()-this.lastT;this.idleTime-e>10?this.timeout=setTimeout(this.waitForHover,this.idleTime-e):(this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor))},t.prototype.isOutsideOfText=function(e){var t=e.editor,n=e.getDocumentPosition(),r=t.session.getLine(n.row);if(n.column==r.length){var i=t.renderer.pixelToScreenCoordinates(e.clientX,e.clientY),o=t.session.documentToScreenPosition(n.row,n.column);if(o.column!=i.column||o.row!=i.row)return!0}return!1},t.prototype.setDataProvider=function(e){this.$gatherData=e},t.prototype.showForRange=function(e,t,n,r){if(!(r&&r!=this.lastEvent||this.isOpen&&document.activeElement==this.getElement())){var i=e.renderer;this.isOpen||(u.addPopup(this),this.$registerCloseEvents(),this.setTheme(i.theme)),this.isOpen=!0,this.addMarker(t,e.session),this.range=a.fromPoints(t.start,t.end);var o=i.textToScreenCoordinates(t.start.row,t.start.column),s=i.scroller.getBoundingClientRect();o.pageX<s.left&&(o.pageX=s.left);var l=this.getElement();l.innerHTML="",l.appendChild(n),l.style.maxHeight="",l.style.display="block";var c=l.clientHeight,d=l.clientWidth,h=window.innerHeight-o.pageY-i.lineHeight,p=!0;o.pageY-c<0&&o.pageY<h&&(p=!1),l.style.maxHeight=(p?o.pageY:h)-10+"px",l.style.top=p?"":o.pageY+i.lineHeight+"px",l.style.bottom=p?window.innerHeight-o.pageY+"px":"",l.style.left=Math.min(o.pageX,window.innerWidth-d-10)+"px"}},t.prototype.addMarker=function(e,t){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=t,this.marker=t&&t.addMarker(e,"ace_highlight-marker","text")},t.prototype.hide=function(e){(e||document.activeElement!=this.getElement())&&(e&&e.target&&("keydown"!=e.type||e.ctrlKey||e.metaKey)&&this.$element.contains(e.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,u.removePopup(this))))},t.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},t.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},t.prototype.onMouseOut=function(e){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&e.relatedTarget&&!this.getElement().contains(e.relatedTarget)&&(e&&e.currentTarget.contains(e.relatedTarget)||e.relatedTarget.classList.contains("ace_content")||this.hide())},t}(d);t.HoverTooltip=h})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],(function(e,t,n){"use strict";var r,i=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=e("../lib/dom"),a=e("../lib/event"),l=e("../tooltip").Tooltip,c=e("../config").nls;t.GUTTER_TOOLTIP_LEFT_OFFSET=5,t.GUTTER_TOOLTIP_TOP_OFFSET=3,t.GutterHandler=function(e){var t,n,r=e.editor,i=r.renderer.$gutterLayer,o=new d(r,!0);function l(e){e&&"keydown"===e.type&&(e.ctrlKey||e.metaKey)||(!e||"mouseout"!==e.type||e.relatedTarget&&!o.getElement().contains(e.relatedTarget))&&(t&&(t=clearTimeout(t)),o.isOpen&&(o.hideTooltip(),r.off("mousewheel",l),r.off("changeSession",l),window.removeEventListener("keydown",l,!0)))}function c(e){o.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",(function(t){if(r.isFocused()&&0==t.getButton()&&"foldWidgets"!=i.getRegion(t)){var n=t.getDocumentPosition().row,o=r.session.selection;if(t.getShiftKey())o.selectTo(n,0);else{if(2==t.domEvent.detail)return r.selectAll(),t.preventDefault();e.$clickSelection=r.selection.getLineRange(n)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}})),e.editor.setDefaultHandler("guttermousemove",(function(a){var d=a.domEvent.target||a.domEvent.srcElement;if(s.hasCssClass(d,"ace_fold-widget"))return l();o.isOpen&&e.$tooltipFollowsMouse&&c(a),n=a,t||(t=setTimeout((function(){t=null,n&&!e.isMousePressed&&function(){var t=n.getDocumentPosition().row;if(t==r.session.getLength()){var s=r.renderer.pixelToScreenCoordinates(0,n.y).row,a=n.$pos;if(s>r.session.documentToScreenRow(a.row,a.column))return l()}if(o.showTooltip(t),o.isOpen)if(r.on("mousewheel",l),r.on("changeSession",l),window.addEventListener("keydown",l,!0),e.$tooltipFollowsMouse)c(n);else{var d=n.getGutterRow(),u=i.$lines.get(d);if(u){var h=u.element.querySelector(".ace_gutter_annotation").getBoundingClientRect(),p=o.getElement().style;p.left=h.right-5+"px",p.top=h.bottom-3+"px"}else c(n)}}()}),50))})),a.addListener(r.renderer.$gutter,"mouseout",(function(e){n=null,o.isOpen&&(t=setTimeout((function(){t=null,l(e)}),50))}),r)};var d=function(e){function t(t,n){void 0===n&&(n=!1);var r=e.call(this,t.container)||this;r.editor=t,r.visibleTooltipRow;var i=r.getElement();return i.setAttribute("role","tooltip"),i.style.pointerEvents="auto",n&&(r.onMouseOut=r.onMouseOut.bind(r),i.addEventListener("mouseout",r.onMouseOut)),r}return i(t,e),t.prototype.onMouseOut=function(e){this.isOpen&&e.relatedTarget&&!this.getElement().contains(e.relatedTarget)&&(e&&e.currentTarget.contains(e.relatedTarget)||this.hideTooltip())},t.prototype.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,i=this.getWidth(),o=this.getHeight();(e+=15)+i>n&&(e-=e+i-n),(t+=15)+o>r&&(t-=20+o),l.prototype.setPosition.call(this,e,t)},Object.defineProperty(t,"annotationLabels",{get:function(){return{error:{singular:c("gutter-tooltip.aria-label.error.singular","error"),plural:c("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:c("gutter-tooltip.aria-label.security.singular","security finding"),plural:c("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:c("gutter-tooltip.aria-label.warning.singular","warning"),plural:c("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:c("gutter-tooltip.aria-label.info.singular","information message"),plural:c("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:c("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:c("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),t.prototype.showTooltip=function(e){var n,r,i=this.editor.renderer.$gutterLayer,o=i.$annotations[e];r=o?{displayText:Array.from(o.displayText),type:Array.from(o.type)}:{displayText:[],type:[]};var a=i.session.getFoldLine(e);if(a&&i.$showFoldedAnnotations){for(var l,c={error:[],security:[],warning:[],info:[],hint:[]},d={error:1,security:2,warning:3,info:4,hint:5},u=e+1;u<=a.end.row;u++)if(i.$annotations[u])for(var h=0;h<i.$annotations[u].text.length;h++){var p=i.$annotations[u].type[h];c[p].push(i.$annotations[u].text[h]),(!l||d[p]<d[l])&&(l=p)}if(["error","security","warning"].includes(l)){var f="".concat(t.annotationsToSummaryString(c)," in folded code.");r.displayText.push(f),r.type.push(l+"_fold")}}if(0===r.displayText.length)return this.hideTooltip();var g={error:[],security:[],warning:[],info:[],hint:[]},m=i.$useSvgGutterIcons?"ace_icon_svg":"ace_icon";for(u=0;u<r.displayText.length;u++){var b=s.createElement("span"),v=s.createElement("span");(n=v.classList).add.apply(n,["ace_".concat(r.type[u]),m]),v.setAttribute("aria-label","".concat(t.annotationLabels[r.type[u].replace("_fold","")].singular)),v.setAttribute("role","img"),v.appendChild(s.createTextNode(" ")),b.appendChild(v),b.appendChild(s.createTextNode(r.displayText[u])),b.appendChild(s.createElement("br")),g[r.type[u].replace("_fold","")].push(b)}var y=this.getElement();s.removeChildren(y),g.error.forEach((function(e){return y.appendChild(e)})),g.security.forEach((function(e){return y.appendChild(e)})),g.warning.forEach((function(e){return y.appendChild(e)})),g.info.forEach((function(e){return y.appendChild(e)})),g.hint.forEach((function(e){return y.appendChild(e)})),y.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.visibleTooltipRow=e,this.editor._signal("showGutterTooltip",this)},t.prototype.hideTooltip=function(){this.isOpen&&(this.$element.removeAttribute("aria-live"),this.hide(),this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this))},t.annotationsToSummaryString=function(e){var n,r,i=[];try{for(var s=o(["error","security","warning","info","hint"]),a=s.next();!a.done;a=s.next()){var l=a.value;if(e[l].length){var c=1===e[l].length?t.annotationLabels[l].singular:t.annotationLabels[l].plural;i.push("".concat(e[l].length," ").concat(c))}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return i.join(", ")},t}(l);t.GutterTooltip=d})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=function(){function e(e,t){this.speed,this.wheelX,this.wheelY,this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return e.prototype.stopPropagation=function(){r.stopPropagation(this.domEvent),this.propagationStopped=!0},e.prototype.preventDefault=function(){r.preventDefault(this.domEvent),this.defaultPrevented=!0},e.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},e.prototype.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},e.prototype.getGutterRow=function(){var e=this.getDocumentPosition().row;return this.editor.session.documentToScreenRow(e,0)-this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0)},e.prototype.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},e.prototype.getButton=function(){return r.getButton(this.domEvent)},e.prototype.getShiftKey=function(){return this.domEvent.shiftKey},e.prototype.getAccelKey=function(){return i.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},e}();t.MouseEvent=o})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/event"),o=e("../lib/useragent");function s(e){var t=e.editor,n=r.createElement("div");n.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",n.textContent=" ",["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach((function(t){e[t]=this[t]}),this),t.on("mousedown",this.onMouseDown.bind(e));var s,l,c,d,u,h,p,f,g,m,b,v=t.container,y=0;function w(){var e=h;(function(e,n){var r=Date.now(),i=!n||e.row!=n.row,o=!n||e.column!=n.column;!m||i||o?(t.moveCursorToPosition(e),m=r,b={x:l,y:c}):a(b.x,b.y,l,c)>5?m=null:r-m>=200&&(t.renderer.scrollCursorIntoView(),m=null)})(h=t.renderer.screenToTextCoordinates(l,c),e),function(e,n){var r=Date.now(),i=t.renderer.layerConfig.lineHeight,o=t.renderer.layerConfig.characterWidth,s=t.renderer.scroller.getBoundingClientRect(),a={x:{left:l-s.left,right:s.right-l},y:{top:c-s.top,bottom:s.bottom-c}},d=Math.min(a.x.left,a.x.right),u=Math.min(a.y.top,a.y.bottom),h={row:e.row,column:e.column};d/o<=2&&(h.column+=a.x.left<a.x.right?-3:2),u/i<=1&&(h.row+=a.y.top<a.y.bottom?-1:1);var p=e.row!=h.row,f=e.column!=h.column,m=!n||e.row!=n.row;p||f&&!m?g?r-g>=200&&t.renderer.scrollCursorIntoView(h):g=r:g=null}(h,e)}function x(){u=t.selection.toOrientedRange(),s=t.session.addMarker(u,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(d),w(),d=setInterval(w,20),y=0,i.addListener(document,"mousemove",C)}function k(){clearInterval(d),t.session.removeMarker(s),s=null,t.selection.fromOrientedRange(u),t.isFocused()&&!f&&t.$resetCursorStyle(),u=null,h=null,y=0,g=null,m=null,i.removeListener(document,"mousemove",C)}this.onDragStart=function(e){if(this.cancelDrag||!v.draggable){var r=this;return setTimeout((function(){r.startSelect(),r.captureMouse(e)}),0),e.preventDefault()}u=t.getSelectionRange();var i=e.dataTransfer;i.effectAllowed=t.getReadOnly()?"copy":"copyMove",t.container.appendChild(n),i.setDragImage&&i.setDragImage(n,0,0),setTimeout((function(){t.container.removeChild(n)})),i.clearData(),i.setData("Text",t.session.getTextRange()),f=!0,this.setState("drag")},this.onDragEnd=function(e){if(v.draggable=!1,f=!1,this.setState(null),!t.getReadOnly()){var n=e.dataTransfer.dropEffect;p||"move"!=n||t.session.remove(t.getSelectionRange()),t.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!t.getReadOnly()&&T(e.dataTransfer))return l=e.clientX,c=e.clientY,s||x(),y++,e.dataTransfer.dropEffect=p=S(e),i.preventDefault(e)},this.onDragOver=function(e){if(!t.getReadOnly()&&T(e.dataTransfer))return l=e.clientX,c=e.clientY,s||(x(),y++),null!==_&&(_=null),e.dataTransfer.dropEffect=p=S(e),i.preventDefault(e)},this.onDragLeave=function(e){if(--y<=0&&s)return k(),p=null,i.preventDefault(e)},this.onDrop=function(e){if(h){var n=e.dataTransfer;if(f)switch(p){case"move":u=u.contains(h.row,h.column)?{start:h,end:h}:t.moveText(u,h);break;case"copy":u=t.moveText(u,h,!0)}else{var r=n.getData("Text");u={start:h,end:t.session.insert(h,r)},t.focus(),p=null}return k(),i.preventDefault(e)}},i.addListener(v,"dragstart",this.onDragStart.bind(e),t),i.addListener(v,"dragend",this.onDragEnd.bind(e),t),i.addListener(v,"dragenter",this.onDragEnter.bind(e),t),i.addListener(v,"dragover",this.onDragOver.bind(e),t),i.addListener(v,"dragleave",this.onDragLeave.bind(e),t),i.addListener(v,"drop",this.onDrop.bind(e),t);var _=null;function C(){null==_&&(_=setTimeout((function(){null!=_&&s&&k()}),20))}function T(e){var t=e.types;return!t||Array.prototype.some.call(t,(function(e){return"text/plain"==e||"Text"==e}))}function S(e){var t=["copy","copymove","all","uninitialized"],n=o.isMac?e.altKey:e.ctrlKey,r="uninitialized";try{r=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var i="none";return n&&t.indexOf(r)>=0?i="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(r)>=0?i="move":t.indexOf(r)>=0&&(i="copy"),i}}function a(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor;e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var t=o.isWin?"default":"move";e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;o.isIE&&"dragReady"==this.state&&a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&t.dragDrop(),"dragWait"===this.state&&a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),r=e.getButton();if(1===(e.domEvent.detail||1)&&0===r&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var i=e.domEvent.target||e.domEvent.srcElement;"unselectable"in i&&(i.unselectable="on"),t.getDragDelay()?(o.isWebKit&&(this.cancelDrag=!0,t.container.draggable=!0),this.setState("dragWait")):this.startDrag(),this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(s.prototype),t.DragdropHandler=s})),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("./mouse_event").MouseEvent,i=e("../lib/event"),o=e("../lib/dom");t.addTouchListeners=function(e,t){var n,s,a,l,c,d,u,h,p,f="scroll",g=0,m=0,b=0,v=0;function y(){if(t.getOption("enableMobileMenu")){p||(a=window.navigator&&window.navigator.clipboard,l=!1,c=function(e){return t.commands.canExecute(e,t)},d=function(e){var n,r,i=e.target.getAttribute("action");if("more"==i||!l)return l=!l,n=t.getCopyText(),r=t.session.getUndoManager().hasUndo(),void p.replaceChild(o.buildDom(l?["span",!n&&c("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],n&&c("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],n&&c("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],a&&c("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],r&&c("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],c("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],c("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),p.firstChild);"paste"==i?a.readText().then((function(e){t.execCommand(i,e)})):i&&("cut"!=i&&"copy"!=i||(a?a.writeText(t.getCopyText()):document.execCommand("copy")),t.execCommand(i)),p.firstChild.style.display="none",l=!1,"openCommandPalette"!=i&&t.focus()},p=o.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(e){f="menu",e.stopPropagation(),e.preventDefault(),t.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),d(e)},onclick:d},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],t.container));var e=t.selection.cursor,n=t.renderer.textToScreenCoordinates(e.row,e.column),r=t.renderer.textToScreenCoordinates(0,0).pageX,i=t.renderer.scrollLeft,s=t.container.getBoundingClientRect();p.style.top=n.pageY-s.top-3+"px",n.pageX-s.left<s.width-70?(p.style.left="",p.style.right="10px"):(p.style.right="",p.style.left=r+i-s.left+"px"),p.style.display="",p.firstChild.style.display="none",t.on("input",w)}else p&&w();var a,l,c,d}function w(e){p&&(p.style.display="none"),t.off("input",w)}function x(){c=null,clearTimeout(c);var e=t.selection.getRange(),n=e.contains(u.row,u.column);!e.isEmpty()&&n||(t.selection.moveToPosition(u),t.selection.selectWord()),f="wait",y()}i.addListener(e,"contextmenu",(function(e){h&&t.textInput.getElement().focus()}),t),i.addListener(e,"touchstart",(function(e){var i=e.touches;if(c||i.length>1)return clearTimeout(c),c=null,a=-1,void(f="zoom");h=t.$mouseHandler.isMousePressed=!0;var o=t.renderer.layerConfig.lineHeight,d=t.renderer.layerConfig.lineHeight,p=e.timeStamp;l=p;var y=i[0],w=y.clientX,k=y.clientY;Math.abs(n-w)+Math.abs(s-k)>o&&(a=-1),n=e.clientX=w,s=e.clientY=k,b=v=0;var _=new r(e,t);if(u=_.getDocumentPosition(),p-a<500&&1==i.length&&!g)m++,e.preventDefault(),e.button=0,function(){c=null,clearTimeout(c),t.selection.moveToPosition(u);var e=m>=2?t.selection.getLineRange(u.row):t.session.getBracketRange(u);e&&!e.isEmpty()?t.selection.setRange(e):t.selection.selectWord(),f="wait"}();else{m=0;var C=t.selection.cursor,T=t.selection.isEmpty()?C:t.selection.anchor,S=t.renderer.$cursorLayer.getPixelPosition(C,!0),E=t.renderer.$cursorLayer.getPixelPosition(T,!0),$=t.renderer.scroller.getBoundingClientRect(),M=t.renderer.layerConfig.offset,L=t.renderer.scrollLeft,A=function(e,t){return(e/=d)*e+(t=t/o-.75)*t};if(e.clientX<$.left)return void(f="zoom");var R=A(e.clientX-$.left-S.left+L,e.clientY-$.top-S.top+M),N=A(e.clientX-$.left-E.left+L,e.clientY-$.top-E.top+M);R<3.5&&N<3.5&&(f=R>N?"cursor":"anchor"),f=N<3.5?"anchor":R<3.5?"cursor":"scroll",c=setTimeout(x,450)}a=p}),t),i.addListener(e,"touchend",(function(e){h=t.$mouseHandler.isMousePressed=!1,d&&clearInterval(d),"zoom"==f?(f="",g=0):c?(t.selection.moveToPosition(u),g=0,y()):"scroll"==f?(g+=60,d=setInterval((function(){g--<=0&&(clearInterval(d),d=null),Math.abs(b)<.01&&(b=0),Math.abs(v)<.01&&(v=0),g<20&&(b*=.9),g<20&&(v*=.9);var e=t.session.getScrollTop();t.renderer.scrollBy(10*b,10*v),e==t.session.getScrollTop()&&(g=0)}),10),w()):y(),clearTimeout(c),c=null}),t),i.addListener(e,"touchmove",(function(e){c&&(clearTimeout(c),c=null);var i=e.touches;if(!(i.length>1||"zoom"==f)){var o=i[0],a=n-o.clientX,d=s-o.clientY;if("wait"==f){if(!(a*a+d*d>4))return e.preventDefault();f="cursor"}n=o.clientX,s=o.clientY,e.clientX=o.clientX,e.clientY=o.clientY;var u=e.timeStamp,h=u-l;if(l=u,"scroll"==f){var p=new r(e,t);p.speed=1,p.wheelX=a,p.wheelY=d,10*Math.abs(a)<Math.abs(d)&&(a=0),10*Math.abs(d)<Math.abs(a)&&(d=0),0!=h&&(b=a/h,v=d/h),t._emit("mousewheel",p),p.propagationStopped||(b=v=0)}else{var g=new r(e,t).getDocumentPosition();"cursor"==f?t.selection.moveCursorToPosition(g):"anchor"==f&&t.selection.setSelectionAnchor(g.row,g.column),t.renderer.scrollCursorIntoView(g),e.preventDefault()}}}),t)}})),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],(function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=e("./default_handlers").DefaultHandlers,s=e("./default_gutter_handler").GutterHandler,a=e("./mouse_event").MouseEvent,l=e("./dragdrop_handler").DragdropHandler,c=e("./touch_handler").addTouchListeners,d=e("../config"),u=function(){function e(e){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var t=this;this.editor=e,new o(this),new s(this),new l(this);var n=function(t){(!document.hasFocus||!document.hasFocus()||!e.isFocused()&&document.activeElement==(e.textInput&&e.textInput.getElement()))&&window.focus(),e.focus(),setTimeout((function(){e.isFocused()||e.focus()}))},a=e.renderer.getMouseEventTarget();r.addListener(a,"click",this.onMouseEvent.bind(this,"click"),e),r.addListener(a,"mousemove",this.onMouseMove.bind(this,"mousemove"),e),r.addMultiMouseDownListener([a,e.renderer.scrollBarV&&e.renderer.scrollBarV.inner,e.renderer.scrollBarH&&e.renderer.scrollBarH.inner,e.textInput&&e.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",e),r.addMouseWheelListener(e.container,this.onMouseWheel.bind(this,"mousewheel"),e),c(e.container,e);var d=e.renderer.$gutter;r.addListener(d,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),e),r.addListener(d,"click",this.onMouseEvent.bind(this,"gutterclick"),e),r.addListener(d,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),e),r.addListener(d,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),e),r.addListener(a,"mousedown",n,e),r.addListener(d,"mousedown",n,e),i.isIE&&e.renderer.scrollBarV&&(r.addListener(e.renderer.scrollBarV.element,"mousedown",n,e),r.addListener(e.renderer.scrollBarH.element,"mousedown",n,e)),e.on("mousemove",(function(n){if(!t.state&&!t.$dragDelay&&t.$dragEnabled){var r=e.renderer.screenToTextCoordinates(n.x,n.y),i=e.session.selection.getRange(),o=e.renderer;!i.isEmpty()&&i.insideStart(r.row,r.column)?o.setCursorStyle("default"):o.setCursorStyle("")}}),e)}return e.prototype.onMouseEvent=function(e,t){this.editor.session&&this.editor._emit(e,new a(t,this.editor))},e.prototype.onMouseMove=function(e,t){var n=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;n&&n.length&&this.editor._emit(e,new a(t,this.editor))},e.prototype.onMouseWheel=function(e,t){var n=new a(t,this.editor);n.speed=2*this.$scrollSpeed,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},e.prototype.setState=function(e){this.state=e},e.prototype.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;var n=this.editor,o=this.editor.renderer;o.$isMousePressed=!0;var s=this,l=function(e){if(e){if(i.isWebKit&&!e.which&&s.releaseMouse)return s.releaseMouse();s.x=e.clientX,s.y=e.clientY,t&&t(e),s.mouseEvent=new a(e,s.editor),s.$mouseMoved=!0}},c=function(e){n.off("beforeEndOperation",u),clearInterval(h),n.session&&d(),s[s.state+"End"]&&s[s.state+"End"](e),s.state="",s.isMousePressed=o.$isMousePressed=!1,o.$keepTextAreaAtCursor&&o.$moveTextAreaToCursor(),s.$onCaptureMouseMove=s.releaseMouse=null,e&&s.onMouseEvent("mouseup",e),n.endOperation()},d=function(){s[s.state]&&s[s.state](),s.$mouseMoved=!1};if(i.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout((function(){c(e)}));var u=function(e){s.releaseMouse&&n.curOp.command.name&&n.curOp.selectionChanged&&(s[s.state+"End"]&&s[s.state+"End"](),s.state="",s.releaseMouse())};n.on("beforeEndOperation",u),n.startOperation({command:{name:"mouse"}}),s.$onCaptureMouseMove=l,s.releaseMouse=r.capture(this.editor.container,l,c);var h=setInterval(d,20)},e.prototype.cancelContextMenu=function(){var e=function(t){t&&t.domEvent&&"contextmenu"!=t.domEvent.type||(this.editor.off("nativecontextmenu",e),t&&t.domEvent&&r.stopEvent(t.domEvent))}.bind(this);setTimeout(e,10),this.editor.on("nativecontextmenu",e)},e.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},e}();u.prototype.releaseMouse=null,d.defineOptions(u.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:i.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=u})),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../lib/dom");t.FoldHandler=function(e){e.on("click",(function(t){var n=t.getDocumentPosition(),i=e.session,o=i.getFoldAt(n.row,n.column,1);o&&(t.getAccelKey()?i.removeFold(o):i.expandFold(o),t.stop());var s=t.domEvent&&t.domEvent.target;s&&r.hasCssClass(s,"ace_inline_button")&&r.hasCssClass(s,"ace_toggle_wrap")&&(i.setOption("wrap",!i.getUseWrapMode()),e.renderer.scrollCursorIntoView())})),e.on("gutterclick",(function(t){if("foldWidgets"==e.renderer.$gutterLayer.getRegion(t)){var n=t.getDocumentPosition().row,r=e.session;r.foldWidgets&&r.foldWidgets[n]&&e.session.onFoldWidgetClick(n,t),e.isFocused()||e.focus(),t.stop()}})),e.on("gutterdblclick",(function(t){if("foldWidgets"==e.renderer.$gutterLayer.getRegion(t)){var n=t.getDocumentPosition().row,r=e.session,i=r.getParentFoldRangeData(n,!0),o=i.range||i.firstRange;if(o){n=o.start.row;var s=r.getFoldAt(n,r.getLine(n).length,1);s?r.removeFold(s):(r.addFold("...",o),e.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}t.stop()}}))}})),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],(function(e,t,n){"use strict";var r=e("../lib/keys"),i=e("../lib/event"),o=function(){function e(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)}return e.prototype.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},e.prototype.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){for(;t[t.length-1]&&t[t.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},e.prototype.addKeyboardHandler=function(e,t){if(e){"function"!=typeof e||e.handleKeyboard||(e.handleKeyboard=e);var n=this.$handlers.indexOf(e);-1!=n&&this.$handlers.splice(n,1),null==t?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==n&&e.attach&&e.attach(this.$editor)}},e.prototype.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},e.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},e.prototype.getStatusText=function(){var e=this.$data,t=e.editor;return this.$handlers.map((function(n){return n.getStatusText&&n.getStatusText(t,e)||""})).filter(Boolean).join(" ")},e.prototype.$callKeyboardHandlers=function(e,t,n,r){for(var o,s=!1,a=this.$editor.commands,l=this.$handlers.length;l--&&!((o=this.$handlers[l].handleKeyboard(this.$data,e,t,n,r))&&o.command&&((s="null"==o.command||a.exec(o.command,this.$editor,o.args,r))&&r&&-1!=e&&1!=o.passEvent&&1!=o.command.passEvent&&i.stopEvent(r),s)););return s||-1!=e||(o={command:"insertstring"},s=a.exec("insertstring",this.$editor,t)),s&&this.$editor._signal&&this.$editor._signal("keyboardActivity",o),s},e.prototype.onCommandKey=function(e,t,n){var i=r.keyCodeToString(n);return this.$callKeyboardHandlers(t,i,n,e)},e.prototype.onTextInput=function(e){return this.$callKeyboardHandlers(-1,e)},e}();t.KeyBinding=o})),ace.define("ace/lib/bidiutil",["require","exports","module"],(function(e,t,n){"use strict";var r=0,i=0,o=!1,s=!1,a=!1,l=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],c=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],d=11,u=18,h=[u,u,u,u,u,u,u,u,u,6,5,6,8,5,u,u,u,u,u,u,u,u,u,u,u,u,u,u,5,5,5,6,8,4,4,d,d,d,4,4,4,4,4,10,9,10,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,u,u,u,u,u,u,5,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,9,4,d,d,d,d,4,4,4,4,0,4,4,u,4,4,d,d,2,2,4,0,4,4,4,2,0,4,4,4,4,4],p=[8,8,8,8,8,8,8,8,8,8,8,u,u,u,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,d,d,d,d,d,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8];function f(e,t,n){if(!(i<e))if(1!=e||1!=r||s)for(var o,a,l,c,d=n.length,u=0;u<d;){if(t[u]>=e){for(o=u+1;o<d&&t[o]>=e;)o++;for(a=u,l=o-1;a<l;a++,l--)c=n[a],n[a]=n[l],n[l]=c;u=o}u++}else n.reverse()}function g(e,t,n,i){var l,c,h,p,f=t[i];switch(f){case 0:case 1:o=!1;case 4:case 3:return f;case 2:return o?3:2;case 7:return o=!0,1;case 8:return 4;case 9:return i<1||i+1>=t.length||2!=(l=n[i-1])&&3!=l||2!=(c=t[i+1])&&3!=c?4:(o&&(c=3),c==l?c:4);case 10:return 2==(l=i>0?n[i-1]:5)&&i+1<t.length&&2==t[i+1]?2:4;case d:if(i>0&&2==n[i-1])return 2;if(o)return 4;for(p=i+1,h=t.length;p<h&&t[p]==d;)p++;return p<h&&2==t[p]?2:4;case 12:for(h=t.length,p=i+1;p<h&&12==t[p];)p++;if(p<h){var g=e[i],m=g>=1425&&g<=2303||64286==g;if(l=t[p],m&&(1==l||7==l))return 1}return i<1||5==(l=t[i-1])?4:n[i-1];case 5:return o=!1,s=!0,r;case 6:return a=!0,4;case 13:case 14:case 16:case 17:case 15:o=!1;case u:return 4}}function m(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?t>191?0:h[t]:5==n?/[\u0591-\u05f4]/.test(e)?1:0:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?12:/[\u0660-\u0669\u066b-\u066c]/.test(e)?3:1642==t?d:/[\u06f0-\u06f9]/.test(e)?2:7:32==n&&t<=8287?p[255&t]:254==n&&t>=65136?7:4}t.L=0,t.R=1,t.EN=2,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.RLE=7,t.DOT="·",t.doBidiReorder=function(e,n,d){if(e.length<2)return{};var h=e.split(""),p=new Array(h.length),b=new Array(h.length),v=[];r=d?1:0,function(e,t,n,d){var u=r?c:l,h=null,p=null,f=null,b=0,v=null,y=-1,w=null,x=null,k=[];if(!d)for(w=0,d=[];w<n;w++)d[w]=m(e[w]);for(i=r,o=!1,s=!1,a=!1,x=0;x<n;x++){if(h=b,k[x]=p=g(e,d,k,x),v=240&(b=u[h][p]),b&=15,t[x]=f=u[b][5],v>0)if(16==v){for(w=y;w<x;w++)t[w]=1;y=-1}else y=-1;if(u[b][6])-1==y&&(y=x);else if(y>-1){for(w=y;w<x;w++)t[w]=f;y=-1}5==d[x]&&(t[x]=0),i|=f}if(a)for(w=0;w<n;w++)if(6==d[w]){t[w]=r;for(var _=w-1;_>=0&&8==d[_];_--)t[_]=r}}(h,v,h.length,n);for(var y=0;y<p.length;p[y]=y,y++);for(f(2,v,p),f(1,v,p),y=0;y<p.length-1;y++)3===n[y]?v[y]=t.AN:1===v[y]&&(n[y]>7&&n[y]<13||4===n[y]||n[y]===u)?v[y]=t.ON_R:y>0&&"ل"===h[y-1]&&/\u0622|\u0623|\u0625|\u0627/.test(h[y])&&(v[y-1]=v[y]=t.R_H,y++);for(h[h.length-1]===t.DOT&&(v[h.length-1]=t.B),""===h[0]&&(v[0]=t.RLE),y=0;y<p.length;y++)b[y]=v[p[y]];return{logicalFromVisual:p,bidiLevels:b}},t.hasBidiCharacters=function(e,t){for(var n=!1,r=0;r<e.length;r++)t[r]=m(e.charAt(r)),n||1!=t[r]&&7!=t[r]&&3!=t[r]||(n=!0);return n},t.getVisualFromLogicalIdx=function(e,t){for(var n=0;n<t.logicalFromVisual.length;n++)if(t.logicalFromVisual[n]==e)return n;return 0}})),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],(function(e,t,n){"use strict";var r=e("./lib/bidiutil"),i=e("./lib/lang"),o=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,s=function(){function e(e){this.session=e,this.bidiMap={},this.currentRow=null,this.bidiUtil=r,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=o.test(e.getValue())}return e.prototype.isBidiRow=function(e,t,n){return!!this.seenBidi&&(e!==this.currentRow&&(this.currentRow=e,this.updateRowLine(t,n),this.updateBidiMap()),this.bidiMap.bidiLevels)},e.prototype.onChange=function(e){this.seenBidi?this.currentRow=null:"insert"==e.action&&o.test(e.lines.join("\n"))&&(this.seenBidi=!0,this.currentRow=null)},e.prototype.getDocumentRow=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n=this.session.$getRowCacheIndex(t,this.currentRow);n>=0&&(e=this.session.$docRowCache[n])}return e},e.prototype.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var n,r=this.session.$getRowCacheIndex(t,this.currentRow);this.currentRow-e>0&&(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===r;)r=n,e++;else e=this.currentRow;return e},e.prototype.updateRowLine=function(e,t){void 0===e&&(e=this.getDocumentRow());var n=e===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var o=this.session.$wrapData[e];o&&(void 0===t&&(t=this.getSplitIndex()),t>0&&o.length?(this.wrapIndent=o.indent,this.wrapOffset=this.wrapIndent*this.charWidths[r.L],this.line=t<o.length?this.line.substring(o[t-1],o[t]):this.line.substring(o[o.length-1])):this.line=this.line.substring(0,o[t]),t==o.length&&(this.line+=this.showInvisibles?n:r.DOT))}else this.line+=this.showInvisibles?n:r.DOT;var s,a=this.session,l=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,(function(e,t){return"\t"===e||a.isFullWidth(e.charCodeAt(0))?(s="\t"===e?a.getScreenTabSize(t+l):2,l+=s-1,i.stringRepeat(r.DOT,s)):e})),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==r.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},e.prototype.updateBidiMap=function(){var e=[];r.hasBidiCharacters(this.line,e)||this.isRtlDir?this.bidiMap=r.doBidiReorder(this.line,e,this.isRtlDir):this.bidiMap={}},e.prototype.markAsDirty=function(){this.currentRow=null},e.prototype.updateCharacterWidths=function(e){if(this.characterWidth!==e.$characterSize.width){this.fontMetrics=e;var t=this.characterWidth=e.$characterSize.width,n=e.$measureCharWidth("ה");this.charWidths[r.L]=this.charWidths[r.EN]=this.charWidths[r.ON_R]=t,this.charWidths[r.R]=this.charWidths[r.AN]=n,this.charWidths[r.R_H]=.45*n,this.charWidths[r.B]=this.charWidths[r.RLE]=0,this.currentRow=null}},e.prototype.setShowInvisibles=function(e){this.showInvisibles=e,this.currentRow=null},e.prototype.setEolChar=function(e){this.EOL=e},e.prototype.setContentWidth=function(e){this.contentWidth=e},e.prototype.isRtlLine=function(e){return!!this.$isRtl||(null!=e?this.session.getLine(e).charAt(0)==this.RLE:this.isRtlDir)},e.prototype.setRtlDirection=function(e,t){for(var n=e.getCursorPosition(),r=e.selection.getSelectionAnchor().row;r<=n.row;r++)t||e.session.getLine(r).charAt(0)!==e.session.$bidiHandler.RLE?t&&e.session.getLine(r).charAt(0)!==e.session.$bidiHandler.RLE&&e.session.doc.insert({column:0,row:r},e.session.$bidiHandler.RLE):e.session.doc.removeInLine(r,0,1)},e.prototype.getPosLeft=function(e){e-=this.wrapIndent;var t=this.line.charAt(0)===this.RLE?1:0,n=e>t?this.session.getOverwrite()?e:e-1:t,i=r.getVisualFromLogicalIdx(n,this.bidiMap),o=this.bidiMap.bidiLevels,s=0;!this.session.getOverwrite()&&e<=t&&o[i]%2!=0&&i++;for(var a=0;a<i;a++)s+=this.charWidths[o[a]];return!this.session.getOverwrite()&&e>t&&o[i]%2==0&&(s+=this.charWidths[o[i]]),this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(s+=this.rtlLineOffset),s},e.prototype.getSelections=function(e,t){var n,r=this.bidiMap,i=r.bidiLevels,o=[],s=0,a=Math.min(e,t)-this.wrapIndent,l=Math.max(e,t)-this.wrapIndent,c=!1,d=!1,u=0;this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var h,p=0;p<i.length;p++)h=r.logicalFromVisual[p],n=i[p],(c=h>=a&&h<l)&&!d?u=s:!c&&d&&o.push({left:u,width:s-u}),s+=this.charWidths[n],d=c;if(c&&p===i.length&&o.push({left:u,width:s-u}),this.isRtlDir)for(var f=0;f<o.length;f++)o[f].left+=this.rtlLineOffset;return o},e.prototype.offsetToCol=function(e){this.isRtlDir&&(e-=this.rtlLineOffset);var t=0,n=(e=Math.max(e,0),0),r=0,i=this.bidiMap.bidiLevels,o=this.charWidths[i[r]];for(this.wrapIndent&&(e-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);e>n+o/2;){if(n+=o,r===i.length-1){o=0;break}o=this.charWidths[i[++r]]}return r>0&&i[r-1]%2!=0&&i[r]%2==0?(e<n&&r--,t=this.bidiMap.logicalFromVisual[r]):r>0&&i[r-1]%2==0&&i[r]%2!=0?t=1+(e>n?this.bidiMap.logicalFromVisual[r]:this.bidiMap.logicalFromVisual[r-1]):this.isRtlDir&&r===i.length-1&&0===o&&i[r-1]%2==0||!this.isRtlDir&&0===r&&i[r]%2!=0?t=1+this.bidiMap.logicalFromVisual[r]:(r>0&&i[r-1]%2!=0&&0!==o&&r--,t=this.bidiMap.logicalFromVisual[r]),0===t&&this.isRtlDir&&t++,t+this.wrapIndent},e}();t.BidiHandler=s})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/lang"),o=e("./lib/event_emitter").EventEmitter,s=e("./range").Range,a=function(){function e(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",(function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),t.$isEmpty||t.$silent||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)})),this.anchor.on("change",(function(){t.$anchorChanged=!0,t.$isEmpty||t.$silent||t._emit("changeSelection")}))}return e.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},e.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},e.prototype.getCursor=function(){return this.lead.getPosition()},e.prototype.setAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},e.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},e.prototype.getSelectionLead=function(){return this.lead.getPosition()},e.prototype.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},e.prototype.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?s.fromPoints(t,t):this.isBackwards()?s.fromPoints(t,e):s.fromPoints(e,t)},e.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},e.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},e.prototype.setRange=function(e,t){var n=t?e.end:e.start,r=t?e.start:e.end;this.$setSelection(n.row,n.column,r.row,r.column)},e.prototype.$setSelection=function(e,t,n,r){if(!this.$silent){var i=this.$isEmpty,o=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(n,r),this.$isEmpty=!s.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||i!=this.$isEmpty||o)&&this._emit("changeSelection")}},e.prototype.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},e.prototype.selectTo=function(e,t){this.$moveSelection((function(){this.moveCursorTo(e,t)}))},e.prototype.selectToPosition=function(e){this.$moveSelection((function(){this.moveCursorToPosition(e)}))},e.prototype.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},e.prototype.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},e.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},e.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},e.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},e.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},e.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},e.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},e.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},e.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},e.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},e.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},e.prototype.getWordRange=function(e,t){if(void 0===t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},e.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},e.prototype.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},e.prototype.getLineRange=function(e,t){var n,r="number"==typeof e?e:this.lead.row,i=this.session.getFoldLine(r);return i?(r=i.start.row,n=i.end.row):n=r,!0===t?new s(r,0,n,this.session.getLine(n).length):new s(r,0,n+1,0)},e.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},e.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},e.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},e.prototype.wouldMoveIntoSoftTab=function(e,t,n){var r=e.column,i=e.column+t;return n<0&&(r=e.column-t,i=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(r,i).split(" ").length-1==t},e.prototype.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},e.prototype.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var n=this.session.getTabSize();t=this.lead,this.wouldMoveIntoSoftTab(t,n,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,n):this.moveCursorBy(0,1)}},e.prototype.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,n=this.session.documentToScreenRow(e,t),r=this.session.screenToDocumentPosition(n,0),i=this.session.getDisplayLine(e,null,r.row,r.column).match(/^\s*/);i[0].length==t||this.session.$useEmacsStyleLineStart||(r.column+=i[0].length),this.moveCursorToPosition(r)},e.prototype.moveCursorLineEnd=function(){var e=this.lead,t=this.session.getDocumentLastRowColumnPosition(e.row,e.column);if(this.lead.column==t.column){var n=this.session.getLine(t.row);if(t.column==n.length){var r=n.search(/\s+$/);r>0&&(t.column=r)}}this.moveCursorTo(t.row,t.column)},e.prototype.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},e.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},e.prototype.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var i=this.session.getFoldAt(e,t,1);if(i)this.moveCursorTo(i.end.row,i.end.column);else{if(this.session.nonTokenRe.exec(r)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,r=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(r)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)}},e.prototype.moveCursorLongWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))this.moveCursorTo(e.start.row,e.start.column);else{var r=this.session.getFoldStringAt(t,n,-1);null==r&&(r=this.doc.getLine(t).substring(0,n));var o=i.stringReverse(r);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(o)&&(n-=this.session.nonTokenRe.lastIndex,o=o.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),n<=0)return this.moveCursorTo(t,0),this.moveCursorLeft(),void(t>0&&this.moveCursorWordLeft());this.session.tokenRe.exec(o)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},e.prototype.$shortWordEndIndex=function(e){var t,n=0,r=/\s/,i=this.session.tokenRe;if(i.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{for(;(t=e[n])&&r.test(t);)n++;if(n<1)for(i.lastIndex=0;(t=e[n])&&!i.test(t);)if(i.lastIndex=0,n++,r.test(t)){if(n>2){n--;break}for(;(t=e[n])&&r.test(t);)n++;if(n>2)break}}return i.lastIndex=0,n},e.prototype.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t),i=this.session.getFoldAt(e,t,1);if(i)return this.moveCursorTo(i.end.row,i.end.column);if(t==n.length){var o=this.doc.getLength();do{e++,r=this.doc.getLine(e)}while(e<o&&/^\s*$/.test(r));/^\s+/.test(r)||(r=""),t=0}var s=this.$shortWordEndIndex(r);this.moveCursorTo(e,t+s)},e.prototype.moveCursorShortWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))return this.moveCursorTo(e.start.row,e.start.column);var r=this.session.getLine(t).substring(0,n);if(0===n){do{t--,r=this.doc.getLine(t)}while(t>0&&/^\s*$/.test(r));n=r.length,/\s+$/.test(r)||(r="")}var o=i.stringReverse(r),s=this.$shortWordEndIndex(o);return this.moveCursorTo(t,n-s)},e.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},e.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},e.prototype.moveCursorBy=function(e,t){var n,r=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(r.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(r.column),r.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=r.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?r.column=this.$desiredColumn:this.$desiredColumn=r.column),0!=e&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var i=this.session.lineWidgets[this.lead.row];e<0?e-=i.rowsAbove||0:e>0&&(e+=i.rowCount-(i.rowsAbove||0))}var o=this.session.screenToDocumentPosition(r.row+e,r.column,n);0!==e&&0===t&&o.row===this.lead.row&&(o.column,this.lead.column),this.moveCursorTo(o.row,o.column+t,0===t)},e.prototype.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},e.prototype.moveCursorTo=function(e,t,n){var r=this.session.getFoldAt(e,t,1);r&&(e=r.start.row,t=r.start.column),this.$keepDesiredColumnOnChange=!0;var i=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(i.charAt(t))&&i.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},e.prototype.moveCursorToScreen=function(e,t,n){var r=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(r.row,r.column,n)},e.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},e.prototype.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},e.prototype.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},e.prototype.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return s.fromPoints(t,n)}catch(e){return s.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},e.prototype.toJSON=function(){if(this.rangeCount)var e=this.ranges.map((function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t}));else(e=this.getRange()).isBackwards=this.isBackwards();return e},e.prototype.fromJSON=function(e){if(null==e.start){if(this.rangeList&&e.length>1){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=s.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},e.prototype.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0},e}();a.prototype.setSelectionAnchor=a.prototype.setAnchor,a.prototype.getSelectionAnchor=a.prototype.getAnchor,a.prototype.setSelectionRange=a.prototype.setRange,r.implement(a.prototype,o),t.Selection=a})),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],(function(e,t,n){"use strict";var r=e("./lib/report_error").reportError,i=2e3,o=function(){function e(e){for(var t in this.splitRegex,this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],r=[],i=0,o=this.matchMappings[t]={defaultToken:"text"},s="g",a=[],l=0;l<n.length;l++){var c=n[l];if(c.defaultToken&&(o.defaultToken=c.defaultToken),c.caseInsensitive&&-1===s.indexOf("i")&&(s+="i"),c.unicode&&-1===s.indexOf("u")&&(s+="u"),null!=c.regex){c.regex instanceof RegExp&&(c.regex=c.regex.toString().slice(1,-1));var d=c.regex,u=new RegExp("(?:("+d+")|(.))").exec("a").length-2;Array.isArray(c.token)?1==c.token.length||1==u?c.token=c.token[0]:u-1!=c.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:c,groupCount:u-1}),c.token=c.token[0]):(c.tokenArray=c.token,c.token=null,c.onMatch=this.$arrayTokens):"function"!=typeof c.token||c.onMatch||(c.onMatch=u>1?this.$applyToken:c.token),u>1&&(/\\\d/.test(c.regex)?d=c.regex.replace(/\\([0-9]+)/g,(function(e,t){return"\\"+(parseInt(t,10)+i+1)})):(u=1,d=this.removeCapturingGroups(c.regex)),c.splitRegex||"string"==typeof c.token||a.push(c)),o[i]=l,i+=u,r.push(d),c.onMatch||(c.onMatch=null)}}r.length||(o[0]=0,r.push("$")),a.forEach((function(e){e.splitRegex=this.createSplitterRegexp(e.regex,s)}),this),this.regExps[t]=new RegExp("("+r.join(")|(")+")|($)",s)}}return e.prototype.$setMaxTokenCount=function(e){i=0|e},e.prototype.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var r=[],i=0,o=n.length;i<o;i++)t[i]&&(r[r.length]={type:n[i],value:t[i]});return r},e.prototype.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var n=[],r=this.tokenArray,i=0,o=r.length;i<o;i++)t[i+1]&&(n[n.length]={type:r[i],value:t[i+1]});return n},e.prototype.removeCapturingGroups=function(e){return e.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,(function(e,t){return t?"(?:":e}))},e.prototype.createSplitterRegexp=function(e,t){if(-1!=e.indexOf("(?=")){var n=0,r=!1,i={};e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,(function(e,t,o,s,a,l){return r?r="]"!=a:a?r=!0:s?(n==i.stack&&(i.end=l+1,i.stack=-1),n--):o&&(n++,1!=o.length&&(i.stack=n,i.start=l)),e})),null!=i.end&&/^\)*$/.test(e.substr(i.end))&&(e=e.substring(0,i.start)+e.substr(i.end))}return"^"!=e.charAt(0)&&(e="^"+e),"$"!=e.charAt(e.length-1)&&(e+="$"),new RegExp(e,(t||"").replace("g",""))},e.prototype.getLineTokens=function(e,t){if(t&&"string"!=typeof t){var n=t.slice(0);"#tmp"===(t=n[0])&&(n.shift(),t=n.shift())}else n=[];var r=t||"start",o=this.states[r];o||(r="start",o=this.states[r]);var s=this.matchMappings[r],a=this.regExps[r];a.lastIndex=0;for(var l,c=[],d=0,u=0,h={type:null,value:""};l=a.exec(e);){var p=s.defaultToken,f=null,g=l[0],m=a.lastIndex;if(m-g.length>d){var b=e.substring(d,m-g.length);h.type==p?h.value+=b:(h.type&&c.push(h),h={type:p,value:b})}for(var v=0;v<l.length-2;v++)if(void 0!==l[v+1]){p=(f=o[s[v]]).onMatch?f.onMatch(g,r,n,e):f.token,f.next&&(r="string"==typeof f.next?f.next:f.next(r,n),(o=this.states[r])||(this.reportError("state doesn't exist",r),r="start",o=this.states[r]),s=this.matchMappings[r],d=m,(a=this.regExps[r]).lastIndex=m),f.consumeLineEnd&&(d=m);break}if(g)if("string"==typeof p)f&&!1===f.merge||h.type!==p?(h.type&&c.push(h),h={type:p,value:g}):h.value+=g;else if(p)for(h.type&&c.push(h),h={type:null,value:""},v=0;v<p.length;v++)c.push(p[v]);if(d==e.length)break;if(d=m,u++>i){for(u>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});d<e.length;)h.type&&c.push(h),h={value:e.substring(d,d+=500),type:"overflow"};r="start",n=[];break}}return h.type&&c.push(h),n.length>1&&n[0]!==r&&n.unshift("#tmp",r),{tokens:c,state:n.length?n:r}},e}();o.prototype.reportError=r,t.Tokenizer=o})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],(function(e,t,n){"use strict";var r,i=e("../lib/deep_copy").deepCopy;(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var r=e[n],i=0;i<r.length;i++){var o=r[i];(o.next||o.onMatch)&&("string"==typeof o.next&&0!==o.next.indexOf(t)&&(o.next=t+o.next),o.nextState&&0!==o.nextState.indexOf(t)&&(o.nextState=t+o.nextState))}this.$rules[t+n]=r}else for(var n in e)this.$rules[n]=e[n]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,n,r,o){var s="function"==typeof e?(new e).getRules():e;if(r)for(var a=0;a<r.length;a++)r[a]=t+r[a];else for(var l in r=[],s)r.push(t+l);if(this.addRules(s,t),n){var c=Array.prototype[o?"push":"unshift"];for(a=0;a<r.length;a++)c.apply(this.$rules[r[a]],i(n))}this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};var e=function(e,t){return("start"!=e||t.length)&&t.unshift(this.nextState,e),this.nextState},t=function(e,t){return t.shift(),t.shift()||"start"};this.normalizeRules=function(){var n=0,r=this.$rules;Object.keys(r).forEach((function i(o){var s=r[o];s.processed=!0;for(var a=0;a<s.length;a++){var l=s[a],c=null;Array.isArray(l)&&(c=l,l={}),!l.regex&&l.start&&(l.regex=l.start,l.next||(l.next=[]),l.next.push({defaultToken:l.token},{token:l.token+".end",regex:l.end||l.start,next:"pop"}),l.token=l.token+".start",l.push=!0);var d=l.next||l.push;if(d&&Array.isArray(d)){var u=l.stateName;u||("string"!=typeof(u=l.token)&&(u=u[0]||""),r[u]&&(u+=n++)),r[u]=d,l.next=u,i(u)}else"pop"==d&&(l.next=t);if(l.push&&(l.nextState=l.next||l.push,l.next=e,delete l.push),l.rules)for(var h in l.rules)r[h]?r[h].push&&r[h].push.apply(r[h],l.rules[h]):r[h]=l.rules[h];var p="string"==typeof l?l:l.include;if(p&&("$self"===p&&(p="start"),c=Array.isArray(p)?p.map((function(e){return r[e]})):r[p]),c){var f=[a,1].concat(c);l.noEscape&&(f=f.filter((function(e){return!e.next}))),s.splice.apply(s,f),a--}l.keywordMap&&(l.token=this.createKeywordMapper(l.keywordMap,l.defaultToken||"text",l.caseInsensitive),delete l.defaultToken)}}),this)},this.createKeywordMapper=function(e,t,n,r){var i=Object.create(null);return this.$keywordList=[],Object.keys(e).forEach((function(t){for(var o=e[t].split(r||"|"),s=o.length;s--;){var a=o[s];this.$keywordList.push(a),n&&(a=a.toLowerCase()),i[a]=t}}),this),e=null,n?function(e){return i[e.toLowerCase()]||t}:function(e){return i[e]||t}},this.getKeywords=function(){return this.$keywords}}).call((r=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}}).prototype),t.TextHighlightRules=r})),ace.define("ace/mode/behaviour",["require","exports","module"],(function(e,t,n){"use strict";var r;(function(){this.add=function(e,t,n){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=n},this.addBehaviours=function(e){for(var t in e)for(var n in e[t])this.add(t,n,e[t][n])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){if("function"==typeof e)var n=(new e).getBehaviours(t);else n=e.getBehaviours(t);this.addBehaviours(n)},this.getBehaviours=function(e){if(e){for(var t={},n=0;n<e.length;n++)this.$behaviours[e[n]]&&(t[e[n]]=this.$behaviours[e[n]]);return t}return this.$behaviours}}).call((r=function(){this.$behaviours={}}).prototype),t.Behaviour=r})),ace.define("ace/token_iterator",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("./range").Range,i=function(){function e(e,t,n){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t);var r=e.getTokenAt(t,n);this.$tokenIndex=r?r.index:-1}return e.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},e.prototype.stepForward=function(){var e;for(this.$tokenIndex+=1;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},e.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},e.prototype.getCurrentTokenRow=function(){return this.$row},e.prototype.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0!==n)return n;for(n=0;t>0;)n+=e[t-=1].value.length;return n},e.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},e.prototype.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new r(this.$row,t,this.$row,t+e.value.length)},e}();t.TokenIterator=i})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){"use strict";var r,i,o=e("../../lib/oop"),s=e("../behaviour").Behaviour,a=e("../../token_iterator").TokenIterator,l=e("../../lib/lang"),c=["text","paren.rparen","rparen","paren","punctuation.operator"],d=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],u={},h={'"':'"',"'":"'"},p=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,u.rangeCount!=e.multiSelect.rangeCount&&(u={rangeCount:e.multiSelect.rangeCount})),u[t])return r=u[t];r=u[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(e,t,n,r){var i=e.end.row-e.start.row;return{text:n+t+r,selection:[0,e.start.column+1,i,e.end.column+(i?0:1)]}};(i=function(e){e=e||{},this.add("braces","insertion",(function(t,n,o,s,a){var c=o.getCursorPosition(),d=s.doc.getLine(c.row);if("{"==a){p(o);var u=o.getSelectionRange(),h=s.doc.getTextRange(u),g=s.getTokenAt(c.row,c.column);if(""!==h&&"{"!==h&&o.getWrapBehavioursEnabled())return f(u,h,"{","}");if(g&&/(?:string)\.quasi|\.xml/.test(g.type)){if([/tag\-(?:open|name)/,/attribute\-name/].some((function(e){return e.test(g.type)}))||/(string)\.quasi/.test(g.type)&&"$"!==g.value[c.column-g.start-1])return;return i.recordAutoInsert(o,s,"}"),{text:"{}",selection:[1,1]}}if(i.isSaneInsertion(o,s))return/[\]\}\)]/.test(d[c.column])||o.inMultiSelectMode||e.braces?(i.recordAutoInsert(o,s,"}"),{text:"{}",selection:[1,1]}):(i.recordMaybeInsert(o,s,"{"),{text:"{",selection:[1,1]})}else if("}"==a){if(p(o),"}"==d.substring(c.column,c.column+1)&&null!==s.$findOpeningBracket("}",{column:c.column+1,row:c.row})&&i.isAutoInsertedClosing(c,d,a))return i.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==a||"\r\n"==a){p(o);var m="";if(i.isMaybeInsertedClosing(c,d)&&(m=l.stringRepeat("}",r.maybeInsertedBrackets),i.clearMaybeInsertedClosing()),"}"===d.substring(c.column,c.column+1)){var b=s.findMatchingBracket({row:c.row,column:c.column+1},"}");if(!b)return null;var v=this.$getIndent(s.getLine(b.row))}else{if(!m)return void i.clearMaybeInsertedClosing();v=this.$getIndent(d)}var y=v+s.getTabString();return{text:"\n"+y+"\n"+v+m,selection:[1,y.length,1,y.length]}}i.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(e,t,n,i,o){var s=i.doc.getTextRange(o);if(!o.isMultiLine()&&"{"==s){if(p(n),"}"==i.doc.getLine(o.start.row).substring(o.end.column,o.end.column+1))return o.end.column++,o;r.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(e,t,n,r,o){if("("==o){p(n);var s=n.getSelectionRange(),a=r.doc.getTextRange(s);if(""!==a&&n.getWrapBehavioursEnabled())return f(s,a,"(",")");if(i.isSaneInsertion(n,r))return i.recordAutoInsert(n,r,")"),{text:"()",selection:[1,1]}}else if(")"==o){p(n);var l=n.getCursorPosition(),c=r.doc.getLine(l.row);if(")"==c.substring(l.column,l.column+1)&&null!==r.$findOpeningBracket(")",{column:l.column+1,row:l.row})&&i.isAutoInsertedClosing(l,c,o))return i.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("parens","deletion",(function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&"("==o&&(p(n),")"==r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)))return i.end.column++,i})),this.add("brackets","insertion",(function(e,t,n,r,o){if("["==o){p(n);var s=n.getSelectionRange(),a=r.doc.getTextRange(s);if(""!==a&&n.getWrapBehavioursEnabled())return f(s,a,"[","]");if(i.isSaneInsertion(n,r))return i.recordAutoInsert(n,r,"]"),{text:"[]",selection:[1,1]}}else if("]"==o){p(n);var l=n.getCursorPosition(),c=r.doc.getLine(l.row);if("]"==c.substring(l.column,l.column+1)&&null!==r.$findOpeningBracket("]",{column:l.column+1,row:l.row})&&i.isAutoInsertedClosing(l,c,o))return i.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("brackets","deletion",(function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&"["==o&&(p(n),"]"==r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)))return i.end.column++,i})),this.add("string_dquotes","insertion",(function(e,t,n,r,i){var o=r.$mode.$quotes||h;if(1==i.length&&o[i]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(i))return;p(n);var s=i,a=n.getSelectionRange(),l=r.doc.getTextRange(a);if(!(""===l||1==l.length&&o[l])&&n.getWrapBehavioursEnabled())return f(a,l,s,s);if(!l){var c=n.getCursorPosition(),d=r.doc.getLine(c.row),u=d.substring(c.column-1,c.column),g=d.substring(c.column,c.column+1),m=r.getTokenAt(c.row,c.column),b=r.getTokenAt(c.row,c.column+1);if("\\"==u&&m&&/escape/.test(m.type))return null;var v,y=m&&/string|escape/.test(m.type),w=!b||/string|escape/.test(b.type);if(g==s)(v=y!==w)&&/string\.end/.test(b.type)&&(v=!1);else{if(y&&!w)return null;if(y&&w)return null;var x=r.$mode.tokenRe;x.lastIndex=0;var k=x.test(u);x.lastIndex=0;var _=x.test(g),C=r.$mode.$pairQuotesAfter;if(!(C&&C[s]&&C[s].test(u))&&k||_)return null;if(g&&!/[\s;,.})\]\\]/.test(g))return null;var T=d[c.column-2];if(u==s&&(T==s||x.test(T)))return null;v=!0}return{text:v?s+s:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(e,t,n,r,i){var o=r.$mode.$quotes||h,s=r.doc.getTextRange(i);if(!i.isMultiLine()&&o.hasOwnProperty(s)&&(p(n),r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)==s))return i.end.column++,i})),!1!==e.closeDocComment&&this.add("doc comment end","insertion",(function(e,t,n,r,i){if("doc-start"===e&&("\n"===i||"\r\n"===i)&&n.selection.isEmpty()){var o=n.getCursorPosition();if(0===o.column)return;for(var s=r.doc.getLine(o.row),a=r.doc.getLine(o.row+1),l=r.getTokens(o.row),c=0,d=0;d<l.length;d++){c+=l[d].value.length;var u=l[d];if(c>=o.column){if(c===o.column){if(!/\.doc/.test(u.type))return;if(/\*\//.test(u.value)){var h=l[d+1];if(!h||!/\.doc/.test(h.type))return}}var p=o.column-(c-u.value.length),f=u.value.indexOf("*/"),g=u.value.indexOf("/**",f>-1?f+2:0);if(-1!==g&&p>g&&p<g+3)return;if(-1!==f&&-1!==g&&p>=f&&p<=g||!/\.doc/.test(u.type))return;break}}var m=this.$getIndent(s);if(/\s*\*/.test(a))return/^\s*\*/.test(s)?{text:i+m+"* ",selection:[1,2+m.length,1,2+m.length]}:{text:i+m+" * ",selection:[1,3+m.length,1,3+m.length]};if(/\/\*\*/.test(s.substring(0,o.column)))return{text:i+m+" * "+i+" "+m+"*/",selection:[1,4+m.length,1,4+m.length]}}}))}).isSaneInsertion=function(e,t){var n=e.getCursorPosition(),r=new a(t,n.row,n.column);if(!this.$matchTokenType(r.getCurrentToken()||"text",c)){if(/[)}\]]/.test(e.session.getLine(n.row)[n.column]))return!0;var i=new a(t,n.row,n.column+1);if(!this.$matchTokenType(i.getCurrentToken()||"text",c))return!1}return r.stepForward(),r.getCurrentTokenRow()!==n.row||this.$matchTokenType(r.getCurrentToken()||"text",d)},i.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},i.recordAutoInsert=function(e,t,n){var i=e.getCursorPosition(),o=t.doc.getLine(i.row);this.isAutoInsertedClosing(i,o,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=i.row,r.autoInsertedLineEnd=n+o.substr(i.column),r.autoInsertedBrackets++},i.recordMaybeInsert=function(e,t,n){var i=e.getCursorPosition(),o=t.doc.getLine(i.row);this.isMaybeInsertedClosing(i,o)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=i.row,r.maybeInsertedLineStart=o.substr(0,i.column)+n,r.maybeInsertedLineEnd=o.substr(i.column),r.maybeInsertedBrackets++},i.isAutoInsertedClosing=function(e,t,n){return r.autoInsertedBrackets>0&&e.row===r.autoInsertedRow&&n===r.autoInsertedLineEnd[0]&&t.substr(e.column)===r.autoInsertedLineEnd},i.isMaybeInsertedClosing=function(e,t){return r.maybeInsertedBrackets>0&&e.row===r.maybeInsertedRow&&t.substr(e.column)===r.maybeInsertedLineEnd&&t.substr(0,e.column)==r.maybeInsertedLineStart},i.popAutoInsertedClosing=function(){r.autoInsertedLineEnd=r.autoInsertedLineEnd.substr(1),r.autoInsertedBrackets--},i.clearMaybeInsertedClosing=function(){r&&(r.maybeInsertedBrackets=0,r.maybeInsertedRow=-1)},o.inherits(i,s),t.CstyleBehaviour=i})),ace.define("ace/unicode",["require","exports","module"],(function(e,t,n){"use strict";for(var r=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],i=0,o=[],s=0;s<r.length;s+=2)o.push(i+=r[s]),r[s+1]&&o.push(45,i+=r[s+1]);t.wordChars=String.fromCharCode.apply(null,o)})),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var r,i=e("../config"),o=e("../tokenizer").Tokenizer,s=e("./text_highlight_rules").TextHighlightRules,a=e("./behaviour/cstyle").CstyleBehaviour,l=e("../unicode"),c=e("../lib/lang"),d=e("../token_iterator").TokenIterator,u=e("../range").Range;(function(){this.$defaultBehaviour=new a,this.tokenRe=new RegExp("^["+l.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+l.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new o(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,t,n,r){var i=t.doc,o=!0,s=!0,a=1/0,l=t.getTabSize(),d=!1;if(this.lineCommentStart){Array.isArray(this.lineCommentStart)?(g=this.lineCommentStart.map(c.escapeRegExp).join("|"),p=this.lineCommentStart[0]):(g=c.escapeRegExp(this.lineCommentStart),p=this.lineCommentStart),g=new RegExp("^(\\s*)(?:"+g+") ?"),d=t.getUseSoftTabs(),v=function(e,t){var n=e.match(g);if(n){var r=n[1].length,o=n[0].length;h(e,r,o)||" "!=n[0][o-1]||o--,i.removeInLine(t,r,o)}};var u=p+" ",h=(b=function(e,t){o&&!/\S/.test(e)||(h(e,a,a)?i.insertInLine({row:t,column:a},u):i.insertInLine({row:t,column:a},p))},y=function(e,t){return g.test(e)},function(e,t,n){for(var r=0;t--&&" "==e.charAt(t);)r++;if(r%l!=0)return!1;for(r=0;" "==e.charAt(n++);)r++;return l>2?r%l!=l-1:r%l==0})}else{if(!this.blockComment)return!1;var p=this.blockComment.start,f=this.blockComment.end,g=new RegExp("^(\\s*)(?:"+c.escapeRegExp(p)+")"),m=new RegExp("(?:"+c.escapeRegExp(f)+")\\s*$"),b=function(e,t){y(e,t)||o&&!/\S/.test(e)||(i.insertInLine({row:t,column:e.length},f),i.insertInLine({row:t,column:a},p))},v=function(e,t){var n;(n=e.match(m))&&i.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(g))&&i.removeInLine(t,n[1].length,n[0].length)},y=function(e,n){if(g.test(e))return!0;for(var r=t.getTokens(n),i=0;i<r.length;i++)if("comment"===r[i].type)return!0}}function w(e){for(var t=n;t<=r;t++)e(i.getLine(t),t)}var x=1/0;w((function(e,t){var n=e.search(/\S/);-1!==n?(n<a&&(a=n),s&&!y(e,t)&&(s=!1)):x>e.length&&(x=e.length)})),a==1/0&&(a=x,o=!1,s=!1),d&&a%l!=0&&(a=Math.floor(a/l)*l),w(s?v:b)},this.toggleBlockComment=function(e,t,n,r){var i=this.blockComment;if(i){!i.start&&i[0]&&(i=i[0]);var o,s,a=(g=new d(t,r.row,r.column)).getCurrentToken(),l=(t.selection,t.selection.toOrientedRange());if(a&&/comment/.test(a.type)){for(var c,h;a&&/comment/.test(a.type);){if(-1!=(m=a.value.indexOf(i.start))){var p=g.getCurrentTokenRow(),f=g.getCurrentTokenColumn()+m;c=new u(p,f,p,f+i.start.length);break}a=g.stepBackward()}var g;for(a=(g=new d(t,r.row,r.column)).getCurrentToken();a&&/comment/.test(a.type);){var m;if(-1!=(m=a.value.indexOf(i.end))){p=g.getCurrentTokenRow(),f=g.getCurrentTokenColumn()+m,h=new u(p,f,p,f+i.end.length);break}a=g.stepForward()}h&&t.remove(h),c&&(t.remove(c),o=c.start.row,s=-i.start.length)}else s=i.start.length,o=n.start.row,t.insert(n.end,i.end),t.insert(n.start,i.start);l.start.row==o&&(l.start.column+=s),l.end.row==o&&(l.end.column+=s),t.selection.fromOrientedRange(l)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)if(e[t]){var n=e[t],r=n.prototype.$id,o=i.$modes[r];o||(i.$modes[r]=o=new n),i.$modes[t]||(i.$modes[t]=o),this.$embeds.push(t),this.$modes[t]=o}var s=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],a=function(e){var t,n,r;r=(t=l)[n=s[e]],t[s[e]]=function(){return this.$delegator(n,arguments,r)}},l=this;for(t=0;t<s.length;t++)a(t)},this.$delegator=function(e,t,n){var r=t[0]||"start";if("string"!=typeof r){if(Array.isArray(r[2])){var i=r[2][r[2].length-1];if(s=this.$modes[i])return s[e].apply(s,[r[1]].concat([].slice.call(t,1)))}r=r[0]||"start"}for(var o=0;o<this.$embeds.length;o++)if(this.$modes[this.$embeds[o]]){var s,a=r.split(this.$embeds[o]);if(!a[0]&&a[1])return t[0]=a[1],(s=this.$modes[this.$embeds[o]])[e].apply(s,t)}var l=n.apply(this,t);return n?l:void 0},this.transformAction=function(e,t,n,r,i){if(this.$behaviour){var o=this.$behaviour.getBehaviours();for(var s in o)if(o[s][t]){var a=o[s][t].apply(this,arguments);if(a)return a}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,n=[];for(var r in t)for(var i=t[r],o=0,s=i.length;o<s;o++)if("string"==typeof i[o].token)/keyword|support|storage/.test(i[o].token)&&n.push(i[o].regex);else if("object"==typeof i[o].token)for(var a=0,l=i[o].token.length;a<l;a++)/keyword|support|storage/.test(i[o].token[a])&&(r=i[o].regex.match(/\(.+?\)/g)[a],n.push(r.substr(1,r.length-2)));this.completionKeywords=n}return e?n.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{name:e,value:e,score:0,meta:"keyword"}}))},this.$id="ace/mode/text"}).call((r=function(){this.HighlightRules=s}).prototype),t.Mode=r})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("./lib/dom"),i=function(){function e(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return e.prototype.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},e.prototype.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach((function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)})),e},e.prototype.$onChangeEditor=function(e){this.attach(e.editor)},e.prototype.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},e.prototype.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach((function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))}))}},e.prototype.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var r=e.data,i=r.start.row,o=r.end.row,s="add"==e.action,a=i+1;a<o;a++)n[a]&&(n[a].hidden=s);n[o]&&(s?n[i]?n[o].hidden=s:n[i]=n[o]:(n[i]==n[o]&&(n[i]=void 0),n[o].hidden=s))}},e.prototype.updateOnChange=function(e){var t=this.session.lineWidgets;if(t){var n=e.start.row,r=e.end.row-n;if(0===r);else if("remove"==e.action){var i=t.splice(n+1,r);!t[n]&&i[i.length-1]&&(t[n]=i.pop()),i.forEach((function(e){e&&this.removeLineWidget(e)}),this),this.$updateRows()}else{var o=new Array(r);t[n]&&null!=t[n].column&&e.start.column>t[n].column&&n++,o.unshift(n,0),t.splice.apply(t,o),this.$updateRows()}}},e.prototype.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach((function(e,n){if(e)for(t=!1,e.row=n;e.$oldWidget;)e.$oldWidget.row=n,e=e.$oldWidget})),t&&(this.session.lineWidgets=null)}},e.prototype.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e},e.prototype.addLineWidget=function(e){if(this.$registerLineWidget(e),e.session=this.session,!this.editor)return e;var t=this.editor.renderer;e.html&&!e.el&&(e.el=r.createElement("div"),e.el.innerHTML=e.html),e.text&&!e.el&&(e.el=r.createElement("div"),e.el.textContent=e.text),e.el&&(r.addCssClass(e.el,"ace_lineWidgetContainer"),e.className&&r.addCssClass(e.el,e.className),e.el.style.position="absolute",e.el.style.zIndex="5",t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex="3"),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight)),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight);var n=this.session.getFoldAt(e.row,0);if(e.$fold=n,n){var i=this.session.lineWidgets;e.row!=n.end.row||i[n.start.row]?e.hidden=!0:i[n.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e),e},e.prototype.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},e.prototype.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,n=t&&t[e],r=[];n;)r.push(n),n=n.$oldWidget;return r},e.prototype.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},e.prototype.measureWidgets=function(e,t){var n=this.session._changedWidgets,r=t.layerConfig;if(n&&n.length){for(var i=1/0,o=0;o<n.length;o++){var s=n[o];if(s&&s.el&&s.session==this.session){if(!s._inDocument){if(this.session.lineWidgets[s.row]!=s)continue;s._inDocument=!0,t.container.appendChild(s.el)}s.h=s.el.offsetHeight,s.fixedWidth||(s.w=s.el.offsetWidth,s.screenWidth=Math.ceil(s.w/r.characterWidth));var a=s.h/r.lineHeight;s.coverLine&&(a-=this.session.getRowLineCount(s.row))<0&&(a=0),s.rowCount!=a&&(s.rowCount=a,s.row<i&&(i=s.row))}}i!=1/0&&(this.session._emit("changeFold",{data:{start:{row:i}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},e.prototype.renderWidgets=function(e,t){var n=t.layerConfig,r=this.session.lineWidgets;if(r){for(var i=Math.min(this.firstRow,n.firstRow),o=Math.max(this.lastRow,n.lastRow,r.length);i>0&&!r[i];)i--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var s=i;s<=o;s++){var a=r[s];if(a&&a.el)if(a.hidden)a.el.style.top=-100-(a.pixelHeight||0)+"px";else{a._inDocument||(a._inDocument=!0,t.container.appendChild(a.el));var l=t.$cursorLayer.getPixelPosition({row:s,column:0},!0).top;a.coverLine||(l+=n.lineHeight*this.session.getRowLineCount(a.row)),a.el.style.top=l-n.offset+"px";var c=a.coverGutter?0:t.gutterWidth;a.fixedWidth||(c-=t.scrollLeft),a.el.style.left=c+"px",a.fullWidth&&a.screenWidth&&(a.el.style.minWidth=n.width+2*n.padding+"px"),a.fixedWidth?a.el.style.right=t.scrollBar.getWidth()+"px":a.el.style.right=""}}}},e}();t.LineWidgets=i})),ace.define("ace/apply_delta",["require","exports","module"],(function(e,t,n){"use strict";t.applyDelta=function(e,t,n){var r=t.start.row,i=t.start.column,o=e[r]||"";switch(t.action){case"insert":if(1===t.lines.length)e[r]=o.substring(0,i)+t.lines[0]+o.substring(i);else{var s=[r,1].concat(t.lines);e.splice.apply(e,s),e[r]=o.substring(0,i)+e[r],e[r+t.lines.length-1]+=o.substring(i)}break;case"remove":var a=t.end.column,l=t.end.row;r===l?e[r]=o.substring(0,i)+o.substring(a):e.splice(r,l-r+1,o.substring(0,i)+e[l].substring(a))}}})),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,o=function(){function e(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),"number"!=typeof t?this.setPosition(t.row,t.column):this.setPosition(t,n)}return e.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},e.prototype.getDocument=function(){return this.document},e.prototype.onChange=function(e){if(!(e.start.row==e.end.row&&e.start.row!=this.row||e.start.row>this.row)){var t=function(e,t,n){var r="insert"==e.action,i=(r?1:-1)*(e.end.row-e.start.row),o=(r?1:-1)*(e.end.column-e.start.column),a=e.start,l=r?a:e.end;return s(t,a,n)?{row:t.row,column:t.column}:s(l,t,!n)?{row:t.row+i,column:t.column+(t.row==l.row?o:0)}:{row:a.row,column:a.column}}(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(t.row,t.column,!0)}},e.prototype.setPosition=function(e,t,n){var r;if(r=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=r.row||this.column!=r.column){var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:i,value:r})}},e.prototype.detach=function(){this.document.off("change",this.$onChange)},e.prototype.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},e.prototype.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n},e}();function s(e,t,n){var r=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&r}o.prototype.$insertRight=!1,r.implement(o.prototype,i),t.Anchor=o})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,s=e("./range").Range,a=e("./anchor").Anchor,l=function(){function e(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)}return e.prototype.setValue=function(e){var t=this.getLength()-1;this.remove(new s(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e||"")},e.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},e.prototype.createAnchor=function(e,t){return new a(this,e,t)},e.prototype.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},e.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},e.prototype.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},e.prototype.getNewLineMode=function(){return this.$newLineMode},e.prototype.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},e.prototype.getLine=function(e){return this.$lines[e]||""},e.prototype.getLines=function(e,t){return this.$lines.slice(e,t+1)},e.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},e.prototype.getLength=function(){return this.$lines.length},e.prototype.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},e.prototype.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},e.prototype.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},e.prototype.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},e.prototype.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},e.prototype.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},e.prototype.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[t]},!0),this.clonePos(r)},e.prototype.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var r=this.getLine(e);return null==t&&(t=r.length),{row:e,column:t=Math.min(Math.max(t,0),r.length)}},e.prototype.clonePos=function(e){return{row:e.row,column:e.column}},e.prototype.pos=function(e,t){return{row:e,column:t}},e.prototype.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},e.prototype.insertFullLines=function(e,t){var n=0;(e=Math.min(Math.max(e,0),this.getLength()))<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},e.prototype.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(1==t.length?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:r,action:"insert",lines:t}),this.clonePos(r)},e.prototype.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:"remove",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},e.prototype.removeInLine=function(e,t,n){var r=this.clippedPos(e,t),i=this.clippedPos(e,n);return this.applyDelta({start:r,end:i,action:"remove",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},e.prototype.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1);var n=(t=Math.min(Math.max(0,t),this.getLength()-1))==this.getLength()-1&&e>0,r=t<this.getLength()-1,i=n?e-1:e,o=n?this.getLine(i).length:0,a=r?t+1:t,l=r?0:this.getLine(a).length,c=new s(i,o,a,l),d=this.$lines.slice(e,t+1);return this.applyDelta({start:c.start,end:c.end,action:"remove",lines:this.getLinesForRange(c)}),d},e.prototype.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},e.prototype.replace=function(e,t){return e instanceof s||(e=s.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},e.prototype.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},e.prototype.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},e.prototype.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!s.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal("change",e)))},e.prototype.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row<t&&e.end.row<t||"insert"==e.action&&e.start.row<=t)&&this.applyDelta(e)},e.prototype.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,r=n.length-t+1,i=e.start.row,o=e.start.column,s=0,a=0;s<r;s=a){a+=t-1;var l=n.slice(s,a);l.push(""),this.applyDelta({start:this.pos(i+s,o),end:this.pos(i+a,o=0),action:e.action,lines:l},!0)}e.lines=n.slice(s),e.start.row=i+s,e.start.column=o,this.applyDelta(e,!0)},e.prototype.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},e.prototype.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=t||0,o=n.length;i<o;i++)if((e-=n[i].length+r)<0)return{row:i,column:e+n[i].length+r};return{row:o-1,column:e+n[o-1].length+r}},e.prototype.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,o=Math.min(e.row,n.length),s=t||0;s<o;++s)i+=n[s].length+r;return i+e.column},e.prototype.$split=function(e){return e.split(/\r\n|\r|\n/)},e}();l.prototype.$autoNewLine="",l.prototype.$newLineMode="auto",r.implement(l.prototype,o),t.Document=l})),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,o=function(){function e(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var n=this;this.$worker=function(){if(n.running){for(var e=new Date,t=n.currentLine,r=-1,i=n.doc,o=t;n.lines[t];)t++;var s=i.getLength(),a=0;for(n.running=!1;t<s;){n.$tokenizeRow(t),r=t;do{t++}while(n.lines[t]);if(++a%5==0&&new Date-e>20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,-1==r&&(r=t),o<=r&&n.fireUpdateEvent(o,r)}}}return e.prototype.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},e.prototype.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},e.prototype.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},e.prototype.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},e.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},e.prototype.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.lines.splice.apply(this.lines,r),this.states.splice.apply(this.states,r)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},e.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},e.prototype.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},e.prototype.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},e.prototype.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],r=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!=r.state+""?(this.states[e]=r.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=r.tokens},e.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},e}();r.implement(o.prototype,i),t.BackgroundTokenizer=o})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/lang"),i=e("./range").Range,o=function(){function e(e,t,n){void 0===n&&(n="text"),this.setRegexp(e),this.clazz=t,this.type=n,this.docLen=0}return e.prototype.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},e.prototype.update=function(e,t,n,o){if(this.regExp){for(var s=o.firstRow,a=o.lastRow,l={},c=n.$editor.$search,d=c.$isMultilineSearch(n.$editor.getLastSearchOptions()),u=s;u<=a;u++){var h=this.cache[u];if(null==h||n.getValue().length!=this.docLen){if(d){h=[];var p=c.$multiLineForward(n,this.regExp,u,a);if(p){var f=p.endRow<=a?p.endRow-1:a;f>u&&(u=f),h.push(new i(p.startRow,p.startCol,p.endRow,p.endCol))}h.length>this.MAX_RANGES&&(h=h.slice(0,this.MAX_RANGES))}else(h=r.getMatchOffsets(n.getLine(u),this.regExp)).length>this.MAX_RANGES&&(h=h.slice(0,this.MAX_RANGES)),h=h.map((function(e){return new i(u,e.offset,u,e.offset+e.length)}));this.cache[u]=h.length?h:""}if(0!==h.length)for(var g=h.length;g--;){var m=h[g].toScreenRange(n),b=m.toString();l[b]||(l[b]=!0,t.drawSingleLineMarker(e,m,this.clazz,o))}}this.docLen=n.getValue().length}},e}();o.prototype.MAX_RANGES=500,t.SearchHighlight=o})),ace.define("ace/undomanager",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=function(){function e(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return e.prototype.addSession=function(e){this.$session=e},e.prototype.add=function(e,t,n){if(!this.$fromUndo&&e!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),!1===t||!this.lastDeltas){this.lastDeltas=[];var r=this.$undoStack.length;r>this.$undoDepth-1&&this.$undoStack.splice(0,r-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),e.id=this.$rev=++this.$maxRev}"remove"!=e.action&&"insert"!=e.action||(this.$lastDelta=e),this.lastDeltas.push(e)}},e.prototype.addSelection=function(e,t){this.selections.push({value:e,rev:t||this.$rev})},e.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},e.prototype.markIgnored=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,r=n.length;r--;){var i=n[r][0];if(i.id<=e)break;i.id<t&&(i.ignore=!0)}this.lastDeltas=null},e.prototype.getSelection=function(e,t){for(var n=this.selections,r=n.length;r--;){var i=n[r];if(i.rev<e)return t&&(i=n[r+1]),i}},e.prototype.getRevision=function(){return this.$rev},e.prototype.getDeltas=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,r=null,i=0,o=n.length;o--;){var s=n[o][0];if(s.id<t&&!r&&(r=o+1),s.id<=e){i=o+1;break}}return n.slice(i,r)},e.prototype.getChangedRanges=function(e,t){null==t&&(t=this.$rev+1)},e.prototype.getChangedLines=function(e,t){null==t&&(t=this.$rev+1)},e.prototype.undo=function(e,t){this.lastDeltas=null;var n=this.$undoStack;if(function(e,t){for(var n=t;n--;){var r=e[n];if(r&&!r[0].ignore){for(;n<t-1;){var i=d(e[n],e[n+1]);e[n]=i[0],e[n+1]=i[1],n++}return!0}}}(n,n.length)){e||(e=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var r=n.pop(),i=null;return r&&(i=e.undoChanges(r,t),this.$redoStack.push(r),this.$syncRev()),this.$fromUndo=!1,i}},e.prototype.redo=function(e,t){if(this.lastDeltas=null,e||(e=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var n=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);!function(e,t){for(var n=0;n<t.length;n++)for(var r=t[n],i=0;i<r.length;i++)g(e,r[i])}(this.$redoStack,n),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach((function(e){e[0].id=++this.$maxRev}),this)}var r=this.$redoStack.pop(),i=null;return r&&(i=e.redoChanges(r,t),this.$undoStack.push(r),this.$syncRev()),this.$fromUndo=!1,i},e.prototype.$syncRev=function(){var e=this.$undoStack,t=e[e.length-1],n=t&&t[0].id||0;this.$redoStackBaseRev=n,this.$rev=n},e.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},e.prototype.canUndo=function(){return this.$undoStack.length>0},e.prototype.canRedo=function(){return this.$redoStack.length>0},e.prototype.bookmark=function(e){null==e&&(e=this.$rev),this.mark=e},e.prototype.isAtBookmark=function(){return this.$rev===this.mark},e.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},e.prototype.fromJSON=function(e){this.reset(),this.$undoStack=e.$undoStack,this.$redoStack=e.$redoStack},e.prototype.$prettyPrint=function(e){return e?a(e):a(this.$undoStack)+"\n---\n"+a(this.$redoStack)},e}();r.prototype.hasUndo=r.prototype.canUndo,r.prototype.hasRedo=r.prototype.canRedo,r.prototype.isClean=r.prototype.isAtBookmark,r.prototype.markClean=r.prototype.bookmark;var i=e("./range").Range,o=i.comparePoints;function s(e){return{row:e.row,column:e.column}}function a(e){if(e=e||this,Array.isArray(e))return e.map(a).join("\n");var t="";return e.action?(t="insert"==e.action?"+":"-",t+="["+e.lines+"]"):e.value&&(t=Array.isArray(e.value)?e.value.map(l).join("\n"):l(e.value)),e.start&&(t+=l(e)),(e.id||e.rev)&&(t+="\t("+(e.id||e.rev)+")"),t}function l(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function c(e,t){var n="insert"==e.action,r="insert"==t.action;if(n&&r)if(o(t.start,e.end)>=0)h(t,e,-1);else{if(!(o(t.start,e.start)<=0))return null;h(e,t,1)}else if(n&&!r)if(o(t.start,e.end)>=0)h(t,e,-1);else{if(!(o(t.end,e.start)<=0))return null;h(e,t,-1)}else if(!n&&r)if(o(t.start,e.start)>=0)h(t,e,1);else{if(!(o(t.start,e.start)<=0))return null;h(e,t,1)}else if(!n&&!r)if(o(t.start,e.start)>=0)h(t,e,1);else{if(!(o(t.end,e.start)<=0))return null;h(e,t,-1)}return[t,e]}function d(e,t){for(var n=e.length;n--;)for(var r=0;r<t.length;r++)if(!c(e[n],t[r])){for(;n<e.length;){for(;r--;)c(t[r],e[n]);r=t.length,n++}return[e,t]}return e.selectionBefore=t.selectionBefore=e.selectionAfter=t.selectionAfter=null,[t,e]}function u(e,t){var n="insert"==e.action,r="insert"==t.action;if(n&&r)o(e.start,t.start)<0?h(t,e,1):h(e,t,1);else if(n&&!r)o(e.start,t.end)>=0?h(e,t,-1):(o(e.start,t.start)<=0||h(e,i.fromPoints(t.start,e.start),-1),h(t,e,1));else if(!n&&r)o(t.start,e.end)>=0?h(t,e,-1):(o(t.start,e.start)<=0||h(t,i.fromPoints(e.start,t.start),-1),h(e,t,1));else if(!n&&!r)if(o(t.start,e.end)>=0)h(t,e,-1);else{var s,a;if(!(o(t.end,e.start)<=0))return o(e.start,t.start)<0&&(s=e,e=f(e,t.start)),o(e.end,t.end)>0&&(a=f(e,t.end)),p(t.end,e.start,e.end,-1),a&&!s&&(e.lines=a.lines,e.start=a.start,e.end=a.end,a=e),[t,s,a].filter(Boolean);h(e,t,-1)}return[t,e]}function h(e,t,n){p(e.start,t.start,t.end,n),p(e.end,t.start,t.end,n)}function p(e,t,n,r){e.row==(1==r?t:n).row&&(e.column+=r*(n.column-t.column)),e.row+=r*(n.row-t.row)}function f(e,t){var n=e.lines,r=e.end;e.end=s(t);var i=e.end.row-e.start.row,o=n.splice(i,n.length),a=i?t.column:t.column-e.start.column;return n.push(o[0].substring(0,a)),o[0]=o[0].substr(a),{start:s(t),end:r,lines:o,action:e.action}}function g(e,t){t=function(e){return{start:s(e.start),end:s(e.end),action:e.action,lines:e.lines.slice()}}(t);for(var n=e.length;n--;){for(var r=e[n],i=0;i<r.length;i++){var o=u(r[i],t);t=o[0],2!=o.length&&(o[2]?(r.splice(i+1,1,o[1],o[2]),i++):o[1]||(r.splice(i,1),i--))}r.length||e.splice(n,1)}return e}i.comparePoints,t.UndoManager=r})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../range").Range,i=function(){function e(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new r(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(e){e.setFoldLine(this)}),this)}return e.prototype.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach((function(t){t.start.row+=e,t.end.row+=e}))},e.prototype.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort((function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)})),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},e.prototype.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},e.prototype.walk=function(e,t,n){var r,i,o=0,s=this.folds,a=!0;null==t&&(t=this.end.row,n=this.end.column);for(var l=0;l<s.length;l++){if(-1==(i=(r=s[l]).range.compareStart(t,n)))return void e(null,t,n,o,a);if(!e(null,r.start.row,r.start.column,o,a)&&e(r.placeholder,r.start.row,r.start.column,o)||0===i)return;a=!r.sameRow,o=r.end.column}e(null,t,n,o,a)},e.prototype.getNextFoldTo=function(e,t){for(var n,r,i=0;i<this.folds.length;i++){if(-1==(r=(n=this.folds[i]).range.compareEnd(e,t)))return{fold:n,kind:"after"};if(0===r)return{fold:n,kind:"inside"}}return null},e.prototype.addRemoveChars=function(e,t,n){var r,i,o=this.getNextFoldTo(e,t);if(o)if(r=o.fold,"inside"==o.kind&&r.start.column!=t&&r.start.row!=e)window.console&&window.console.log(e,t,r);else if(r.start.row==e){var s=(i=this.folds).indexOf(r);for(0===s&&(this.start.column+=n);s<i.length;s++){if((r=i[s]).start.column+=n,!r.sameRow)return;r.end.column+=n}this.end.column+=n}},e.prototype.split=function(t,n){var r=this.getNextFoldTo(t,n);if(!r||"inside"==r.kind)return null;var i=r.fold,o=this.folds,s=this.foldData,a=o.indexOf(i),l=o[a-1];this.end.row=l.end.row,this.end.column=l.end.column;var c=new e(s,o=o.splice(a,o.length-a));return s.splice(s.indexOf(this)+1,0,c),c},e.prototype.merge=function(e){for(var t=e.folds,n=0;n<t.length;n++)this.addFold(t[n]);var r=this.foldData;r.splice(r.indexOf(e),1)},e.prototype.toString=function(){var e=[this.range.toString()+": ["];return this.folds.forEach((function(t){e.push(" "+t.toString())})),e.push("]"),e.join("\n")},e.prototype.idxToPosition=function(e){for(var t=0,n=0;n<this.folds.length;n++){var r=this.folds[n];if((e-=r.start.column-t)<0)return{row:r.start.row,column:r.start.column+e};if((e-=r.placeholder.length)<0)return r.start;t=r.end.column}return{row:this.end.row,column:this.end.column+e}},e}();t.FoldLine=i})),ace.define("ace/range_list",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("./range").Range.comparePoints,i=function(){function e(){this.ranges=[],this.$bias=1}return e.prototype.pointIndex=function(e,t,n){for(var i=this.ranges,o=n||0;o<i.length;o++){var s=i[o],a=r(e,s.end);if(!(a>0)){var l=r(e,s.start);return 0===a?t&&0!==l?-o-2:o:l>0||0===l&&!t?o:-o-1}}return-o-1},e.prototype.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var r=this.pointIndex(e.end,t,n);return r<0?r=-r-1:r++,this.ranges.splice(n,r-n,e)},e.prototype.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},e.prototype.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},e.prototype.merge=function(){for(var e,t=[],n=this.ranges,i=(n=n.sort((function(e,t){return r(e.start,t.start)})))[0],o=1;o<n.length;o++){e=i,i=n[o];var s=r(e.end,i.start);s<0||(0!=s||e.isEmpty()||i.isEmpty())&&(r(e.end,i.end)<0&&(e.end.row=i.end.row,e.end.column=i.end.column),n.splice(o,1),t.push(i),i=e,o--)}return this.ranges=n,t},e.prototype.contains=function(e,t){return this.pointIndex({row:e,column:t})>=0},e.prototype.containsPoint=function(e){return this.pointIndex(e)>=0},e.prototype.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},e.prototype.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row<e)return[];var r=this.pointIndex({row:e,column:0});r<0&&(r=-r-1);var i=this.pointIndex({row:t,column:0},r);i<0&&(i=-i-1);for(var o=[],s=r;s<i;s++)o.push(n[s]);return o},e.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},e.prototype.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},e.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},e.prototype.$onChange=function(e){for(var t=e.start,n=e.end,r=t.row,i=n.row,o=this.ranges,s=0,a=o.length;s<a&&!((d=o[s]).end.row>=r);s++);if("insert"==e.action){for(var l=i-r,c=-t.column+n.column;s<a&&!((d=o[s]).start.row>r);s++)if(d.start.row==r&&d.start.column>=t.column&&(d.start.column==t.column&&this.$bias<=0||(d.start.column+=c,d.start.row+=l)),d.end.row==r&&d.end.column>=t.column){if(d.end.column==t.column&&this.$bias<0)continue;d.end.column==t.column&&c>0&&s<a-1&&d.end.column>d.start.column&&d.end.column==o[s+1].start.column&&(d.end.column-=c),d.end.column+=c,d.end.row+=l}}else for(l=r-i,c=t.column-n.column;s<a&&!((d=o[s]).start.row>i);s++)d.end.row<i&&(r<d.end.row||r==d.end.row&&t.column<d.end.column)?(d.end.row=r,d.end.column=t.column):d.end.row==i?d.end.column<=n.column?(l||d.end.column>t.column)&&(d.end.column=t.column,d.end.row=t.row):(d.end.column+=c,d.end.row+=l):d.end.row>i&&(d.end.row+=l),d.start.row<i&&(r<d.start.row||r==d.start.row&&t.column<d.start.column)?(d.start.row=r,d.start.column=t.column):d.start.row==i?d.start.column<=n.column?(l||d.start.column>t.column)&&(d.start.column=t.column,d.start.row=t.row):(d.start.column+=c,d.start.row+=l):d.start.row>i&&(d.start.row+=l);if(0!=l&&s<a)for(;s<a;s++){var d;(d=o[s]).start.row+=l,d.end.row+=l}},e}();i.prototype.comparePoints=r,t.RangeList=i})),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],(function(e,t,n){"use strict";var r,i=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=function(e){function t(t,n){var r=e.call(this)||this;return r.foldLine=null,r.placeholder=n,r.range=t,r.start=t.start,r.end=t.end,r.sameRow=t.start.row==t.end.row,r.subFolds=r.ranges=[],r}return i(t,e),t.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},t.prototype.setFoldLine=function(e){this.foldLine=e,this.subFolds.forEach((function(t){t.setFoldLine(e)}))},t.prototype.clone=function(){var e=new t(this.range.clone(),this.placeholder);return this.subFolds.forEach((function(t){e.subFolds.push(t.clone())})),e.collapseChildren=this.collapseChildren,e},t.prototype.addSubFold=function(e){if(!this.range.isEqual(e)){var t,n;t=e,n=this.start,s(t.start,n),s(t.end,n);for(var r=e.start.row,i=e.start.column,o=0,a=-1;o<this.subFolds.length&&1==(a=this.subFolds[o].range.compare(r,i));o++);var l=this.subFolds[o],c=0;if(0==a){if(l.range.containsRange(e))return l.addSubFold(e);c=1}r=e.range.end.row,i=e.range.end.column;var d=o;for(a=-1;d<this.subFolds.length&&1==(a=this.subFolds[d].range.compare(r,i));d++);0==a&&d++;for(var u=this.subFolds.splice(o,d-o,e),h=0==a?u.length-1:u.length,p=c;p<h;p++)e.addSubFold(u[p]);return e.setFoldLine(this.foldLine),e}},t.prototype.restoreRange=function(e){return function(e,t){a(e.start,t),a(e.end,t)}(e,this.start)},t}(e("../range_list").RangeList);function s(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function a(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}t.Fold=o})),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],(function(e,t,n){"use strict";var r=e("../range").Range,i=e("./fold_line").FoldLine,o=e("./fold").Fold,s=e("../token_iterator").TokenIterator,a=e("../mouse/mouse_event").MouseEvent;t.Folding=function(){this.getFoldAt=function(e,t,n){var r=this.getFoldLine(e);if(!r)return null;for(var i=r.folds,o=0;o<i.length;o++){var s=i[o].range;if(s.contains(e,t)){if(1==n&&s.isEnd(e,t)&&!s.isEmpty())continue;if(-1==n&&s.isStart(e,t)&&!s.isEmpty())continue;return i[o]}}},this.getFoldsInRange=function(e){var t=e.start,n=e.end,r=this.$foldData,i=[];t.column+=1,n.column-=1;for(var o=0;o<r.length;o++){var s=r[o].range.compareRange(e);if(2!=s){if(-2==s)break;for(var a=r[o].folds,l=0;l<a.length;l++){var c=a[l];if(-2==(s=c.range.compareRange(e)))break;if(2!=s){if(42==s)break;i.push(c)}}}}return t.column-=1,n.column+=1,i},this.getFoldsInRangeList=function(e){if(Array.isArray(e)){var t=[];e.forEach((function(e){t=t.concat(this.getFoldsInRange(e))}),this)}else t=this.getFoldsInRange(e);return t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,n=0;n<t.length;n++)for(var r=0;r<t[n].folds.length;r++)e.push(t[n].folds[r]);return e},this.getFoldStringAt=function(e,t,n,r){if(!(r=r||this.getFoldLine(e)))return null;for(var i,o,s={end:{column:0}},a=0;a<r.folds.length;a++){var l=(o=r.folds[a]).range.compareEnd(e,t);if(-1==l){i=this.getLine(o.start.row).substring(s.end.column,o.start.column);break}if(0===l)return null;s=o}return i||(i=this.getLine(o.start.row).substring(s.end.column)),-1==n?i.substring(0,t-s.end.column):1==n?i.substring(t-s.end.column):i},this.getFoldLine=function(e,t){var n=this.$foldData,r=0;for(t&&(r=n.indexOf(t)),-1==r&&(r=0);r<n.length;r++){var i=n[r];if(i.start.row<=e&&i.end.row>=e)return i;if(i.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,r=0;for(t&&(r=n.indexOf(t)),-1==r&&(r=0);r<n.length;r++){var i=n[r];if(i.end.row>=e)return i}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,r=t-e+1,i=0;i<n.length;i++){var o=n[i],s=o.end.row,a=o.start.row;if(s>=t){a<t&&(a>=e?r-=t-a:r=0);break}s>=e&&(r-=a>=e?s-a:s-e+1)}return r},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort((function(e,t){return e.start.row-t.start.row})),e},this.addFold=function(e,t){var n,r=this.$foldData,s=!1;e instanceof o?n=e:(n=new o(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(n.range);var a=n.start.row,l=n.start.column,c=n.end.row,d=n.end.column,u=this.getFoldAt(a,l,1),h=this.getFoldAt(c,d,-1);if(u&&h==u)return u.addSubFold(n);u&&!u.range.isStart(a,l)&&this.removeFold(u),h&&!h.range.isEnd(c,d)&&this.removeFold(h);var p=this.getFoldsInRange(n.range);p.length>0&&(this.removeFolds(p),n.collapseChildren||p.forEach((function(e){n.addSubFold(e)})));for(var f=0;f<r.length;f++){var g=r[f];if(c==g.start.row){g.addFold(n),s=!0;break}if(a==g.end.row){if(g.addFold(n),s=!0,!n.sameRow){var m=r[f+1];if(m&&m.start.row==c){g.merge(m);break}}break}if(c<=g.start.row)break}return s||(g=this.$addFoldLine(new i(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(g.start.row,g.start.row):this.$updateRowLengthCache(g.start.row,g.start.row),this.$modified=!0,this._signal("changeFold",{data:n,action:"add"}),n},this.addFolds=function(e){e.forEach((function(e){this.addFold(e)}),this)},this.removeFold=function(e){var t=e.foldLine,n=t.start.row,r=t.end.row,i=this.$foldData,o=t.folds;if(1==o.length)i.splice(i.indexOf(t),1);else if(t.range.isEnd(e.end.row,e.end.column))o.pop(),t.end.row=o[o.length-1].end.row,t.end.column=o[o.length-1].end.column;else if(t.range.isStart(e.start.row,e.start.column))o.shift(),t.start.row=o[0].start.row,t.start.column=o[0].start.column;else if(e.sameRow)o.splice(o.indexOf(e),1);else{var s=t.split(e.start.row,e.start.column);(o=s.folds).shift(),s.start.row=o[0].start.row,s.start.column=o[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(n,r):this.$updateRowLengthCache(n,r)),this.$modified=!0,this._signal("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);t.forEach((function(e){this.removeFold(e)}),this),this.$modified=!0},this.expandFold=function(e){this.removeFold(e),e.subFolds.forEach((function(t){e.restoreRange(t),this.addFold(t)}),this),e.collapseChildren>0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach((function(e){this.expandFold(e)}),this)},this.unfold=function(e,t){var n,i;if(null==e)n=new r(0,0,this.getLength(),0),null==t&&(t=!0);else if("number"==typeof e)n=new r(e,0,e,this.getLine(e).length);else if("row"in e)n=r.fromPoints(e,e);else{if(Array.isArray(e))return i=[],e.forEach((function(e){i=i.concat(this.unfold(e))}),this),i;n=e}for(var o=i=this.getFoldsInRangeList(n);1==i.length&&r.comparePoints(i[0].start,n.start)<0&&r.comparePoints(i[0].end,n.end)>0;)this.expandFolds(i),i=this.getFoldsInRangeList(n);if(0!=t?this.removeFolds(i):this.expandFolds(i),o.length)return o},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,r,i){null==r&&(r=e.start.row),null==i&&(i=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var o=this.doc,s="";return e.walk((function(e,t,n,a){if(!(t<r)){if(t==r){if(n<i)return;a=Math.max(i,a)}s+=null!=e?e:o.getLine(t).substring(a,n)}}),t,n),s},this.getDisplayLine=function(e,t,n,r){var i,o=this.getFoldLine(e);return o?this.getFoldDisplayLine(o,e,t,n,r):(i=this.doc.getLine(e)).substring(r||0,t||i.length)},this.$cloneFoldData=function(){var e=[];return e=this.$foldData.map((function(t){var n=t.folds.map((function(e){return e.clone()}));return new i(e,n)}))},this.toggleFold=function(e){var t,n,r=this.selection.getRange();if(r.isEmpty()){var i=r.start;if(t=this.getFoldAt(i.row,i.column))return void this.expandFold(t);(n=this.findMatchingBracket(i))?1==r.comparePoint(n)?r.end=n:(r.start=n,r.start.column++,r.end.column--):(n=this.findMatchingBracket({row:i.row,column:i.column+1}))?(1==r.comparePoint(n)?r.end=n:r.start=n,r.start.column++):r=this.getCommentFoldRange(i.row,i.column)||r}else{var o=this.getFoldsInRange(r);if(e&&o.length)return void this.expandFolds(o);1==o.length&&(t=o[0])}if(t||(t=this.getFoldAt(r.start.row,r.start.column)),t&&t.range.toString()==r.toString())this.expandFold(t);else{var s="...";if(!r.isMultiLine()){if((s=this.getTextRange(r)).length<4)return;s=s.trim().substring(0,2)+".."}this.addFold(s,r)}},this.getCommentFoldRange=function(e,t,n){var i=new s(this,e,t),o=i.getCurrentToken(),a=o&&o.type;if(o&&/^comment|string/.test(a)){"comment"==(a=a.match(/comment|string/)[0])&&(a+="|doc-start|\\.doc");var l=new RegExp(a),c=new r;if(1!=n){do{o=i.stepBackward()}while(o&&l.test(o.type));o=i.stepForward()}c.start.row=i.getCurrentTokenRow(),c.start.column=i.getCurrentTokenColumn()+o.value.length,i=new s(this,e,t);var d=this.getState(i.$row);if(-1!=n){var u=-1;do{if(o=i.stepForward(),-1==u){var h=this.getState(i.$row);d.toString()!==h.toString()&&(u=i.$row)}else if(i.$row>u)break}while(o&&l.test(o.type));o=i.stepBackward()}else o=i.getCurrentToken();return c.end.row=i.getCurrentTokenRow(),c.end.column=i.getCurrentTokenColumn(),c}},this.foldAll=function(e,t,n,r){null==n&&(n=1e5);var i=this.foldWidgets;if(i){t=t||this.getLength();for(var o=e=e||0;o<t;o++)if(null==i[o]&&(i[o]=this.getFoldWidget(o)),"start"==i[o]&&(!r||r(o))){var s=this.getFoldWidgetRange(o);s&&s.isMultiLine()&&s.end.row<=t&&s.start.row>=e&&(o=s.end.row,s.collapseChildren=n,this.addFold("...",s))}}},this.foldToLevel=function(e){for(this.foldAll();e-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var e=this;this.foldAll(null,null,null,(function(t){for(var n=e.getTokens(t),r=0;r<n.length;r++){var i=n[r];if("text"!=i.type||!/^\s+$/.test(i.value))return!!/comment/.test(i.type)}}))},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){this.$foldStyle=e,"manual"==e&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};for(var r,i=e-1;i>=0;){var o=n[i];if(null==o&&(o=n[i]=this.getFoldWidget(i)),"start"==o){var s=this.getFoldWidgetRange(i);if(r||(r=s),s&&s.end.row>=e)break}i--}return{range:-1!==i&&s,firstRange:r}},this.onFoldWidgetClick=function(e,t){t instanceof a&&(t=t.domEvent);var n={children:t.shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};if(!this.$toggleFoldWidget(e,n)){var r=t.target||t.srcElement;r&&/ace_fold-widget/.test(r.className)&&(r.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),r=this.getLine(e),i="end"===n?-1:1,o=this.getFoldAt(e,-1===i?0:r.length,i);if(o)return t.children||t.all?this.removeFold(o):this.expandFold(o),o;var s=this.getFoldWidgetRange(e,!0);if(s&&!s.isMultiLine()&&(o=this.getFoldAt(s.start.row,s.start.column,1))&&s.isEqual(o.range))return this.removeFold(o),o;if(t.siblings){var a=this.getParentFoldRangeData(e);if(a.range)var l=a.range.start.row+1,c=a.range.end.row;this.foldAll(l,c,t.all?1e4:0)}else t.children?(c=s?s.end.row:this.getLength(),this.foldAll(e+1,c,t.all?1e4:0)):s&&(t.all&&(s.collapseChildren=1e4),this.addFold("...",s));return s}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(!n){var r=this.getParentFoldRangeData(t,!0);if(n=r.range||r.firstRange){t=n.start.row;var i=this.getFoldAt(t,this.getLine(t).length,1);i?this.removeFold(i):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,r)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var r=e("../token_iterator").TokenIterator,i=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var r=n.match(/([\(\[\{])|([\)\]\}])/);return r?r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),r=!0,o=n.charAt(e.column-1),s=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(s||(o=n.charAt(e.column),e={row:e.row,column:e.column+1},s=o&&o.match(/([\(\[\{])|([\)\]\}])/),r=!1),!s)return null;if(s[1]){if(!(a=this.$findClosingBracket(s[1],e)))return null;t=i.fromPoints(e,a),r||(t.end.column++,t.start.column--),t.cursor=t.end}else{var a;if(!(a=this.$findOpeningBracket(s[2],e)))return null;t=i.fromPoints(a,e),r||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e,t){var n=this.getLine(e.row),r=/([\(\[\{])|([\)\]\}])/,o=!t&&n.charAt(e.column-1),s=o&&o.match(r);if(s||(o=(void 0===t||t)&&n.charAt(e.column),e={row:e.row,column:e.column+1},s=o&&o.match(r)),!s)return null;var a=new i(e.row,e.column-1,e.row,e.column),l=s[1]?this.$findClosingBracket(s[1],e):this.$findOpeningBracket(s[2],e);return l?[a,new i(l.row,l.column,l.row,l.column+1)]:[a]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,n){var i=this.$brackets[e],o=1,s=new r(this,t.row,t.column),a=s.getCurrentToken();if(a||(a=s.stepForward()),a){n||(n=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var l=t.column-s.getCurrentTokenColumn()-2,c=a.value;;){for(;l>=0;){var d=c.charAt(l);if(d==i){if(0==(o-=1))return{row:s.getCurrentTokenRow(),column:l+s.getCurrentTokenColumn()}}else d==e&&(o+=1);l-=1}do{a=s.stepBackward()}while(a&&!n.test(a.type));if(null==a)break;l=(c=a.value).length-1}return null}},this.$findClosingBracket=function(e,t,n){var i=this.$brackets[e],o=1,s=new r(this,t.row,t.column),a=s.getCurrentToken();if(a||(a=s.stepForward()),a){n||(n=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var l=t.column-s.getCurrentTokenColumn();;){for(var c=a.value,d=c.length;l<d;){var u=c.charAt(l);if(u==i){if(0==(o-=1))return{row:s.getCurrentTokenRow(),column:l+s.getCurrentTokenColumn()}}else u==e&&(o+=1);l+=1}do{a=s.stepForward()}while(a&&!n.test(a.type));if(null==a)break;l=0}return null}},this.getMatchingTags=function(e){var t=new r(this,e.row,e.column),n=this.$findTagName(t);if(n)return"<"===t.stepBackward().value?this.$findClosingTag(t,n):this.$findOpeningTag(t,n)},this.$findTagName=function(e){var t=e.getCurrentToken(),n=!1,r=!1;if(t&&-1===t.type.indexOf("tag-name"))do{(t=r?e.stepBackward():e.stepForward())&&("/>"===t.value?r=!0:-1!==t.type.indexOf("tag-name")&&(n=!0))}while(t&&!n);return t},this.$findClosingTag=function(e,t){var n,r=t.value,o=t.value,s=0,a=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);t=e.stepForward();var l=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length),c=!1;do{if(-1!==(n=t).type.indexOf("tag-close")&&!c){var d=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);c=!0}if(t=e.stepForward())if(">"!==t.value||c||(d=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1),c=!0),-1!==t.type.indexOf("tag-name")){if(o===(r=t.value))if("<"===n.value)s++;else if("</"===n.value&&--s<0){e.stepBackward();var u=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+2);t=e.stepForward();var h=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length);if(-1===t.type.indexOf("tag-close")&&(t=e.stepForward()),!t||">"!==t.value)return;var p=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1)}}else o===r&&"/>"===t.value&&--s<0&&(p=h=u=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+2),d=new i(l.end.row,l.end.column,l.end.row,l.end.column+1))}while(t&&s>=0);if(a&&d&&u&&p&&l&&h)return{openTag:new i(a.start.row,a.start.column,d.end.row,d.end.column),closeTag:new i(u.start.row,u.start.column,p.end.row,p.end.column),openTagName:l,closeTagName:h}},this.$findOpeningTag=function(e,t){var n=e.getCurrentToken(),r=t.value,o=0,s=e.getCurrentTokenRow(),a=e.getCurrentTokenColumn(),l=a+2,c=new i(s,a,s,l);e.stepForward();var d=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length);if(-1===t.type.indexOf("tag-close")&&(t=e.stepForward()),t&&">"===t.value){var u=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);e.stepBackward(),e.stepBackward();do{if(t=n,s=e.getCurrentTokenRow(),l=(a=e.getCurrentTokenColumn())+t.value.length,n=e.stepBackward(),t)if(-1!==t.type.indexOf("tag-name")){if(r===t.value)if("<"===n.value){if(++o>0){var h=new i(s,a,s,l),p=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);do{t=e.stepForward()}while(t&&">"!==t.value);var f=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1)}}else"</"===n.value&&o--}else if("/>"===t.value){for(var g=0,m=n;m;){if(-1!==m.type.indexOf("tag-name")&&m.value===r){o--;break}if("<"===m.value)break;m=e.stepBackward(),g++}for(var b=0;b<g;b++)e.stepForward()}}while(n&&o<=0);return p&&f&&c&&u&&h&&d?{openTag:new i(p.start.row,p.start.column,f.end.row,f.end.column),closeTag:new i(c.start.row,c.start.column,u.end.row,u.end.column),openTagName:h,closeTagName:d}:void 0}}}})),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/line_widgets","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/lang"),o=e("./bidihandler").BidiHandler,s=e("./config"),a=e("./lib/event_emitter").EventEmitter,l=e("./selection").Selection,c=e("./mode/text").Mode,d=e("./range").Range,u=e("./line_widgets").LineWidgets,h=e("./document").Document,p=e("./background_tokenizer").BackgroundTokenizer,f=e("./search_highlight").SearchHighlight,g=e("./undomanager").UndoManager,m=function(){function e(t,n){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$editor=null,this.prevOp={},this.$foldData=[],this.id="session"+ ++e.$uid,this.$foldData.toString=function(){return this.join("\n")},this.bgTokenizer=new p((new c).getTokenizer(),this);var r=this;this.bgTokenizer.on("update",(function(e){r._signal("tokenizerUpdate",e)})),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof t&&t.getLine||(t=new h(t)),this.setDocument(t),this.selection=new l(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new o(this),s.resetOptions(this),this.setMode(n),s._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return e.prototype.$initOperationListeners=function(){var e=this;this.curOp=null,this.on("change",(function(){e.curOp||(e.startOperation(),e.curOp.selectionBefore=e.$lastSel),e.curOp.docChanged=!0}),!0),this.on("changeSelection",(function(){e.curOp||(e.startOperation(),e.curOp.selectionBefore=e.$lastSel),e.curOp.selectionChanged=!0}),!0),this.$operationResetTimer=i.delayedCall(this.endOperation.bind(this,!0))},e.prototype.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(e={}),this.$operationResetTimer.schedule(),this.curOp={command:e.command||{},args:e.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",e)},e.prototype.endOperation=function(e){if(this.curOp){if(e&&!1===e.returnValue)return this.curOp=null,void this._signal("endOperation",e);if(1==e&&this.curOp.command&&"mouse"==this.curOp.command.name)return;var t=this.selection.toJSON();this.curOp.selectionAfter=t,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection(t),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",e)}},e.prototype.setDocument=function(e){this.doc&&this.doc.off("change",this.$onChange),this.doc=e,e.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},e.prototype.getDocument=function(){return this.doc},Object.defineProperty(e.prototype,"widgetManager",{get:function(){var e=new u(this);return this.widgetManager=e,this.$editor&&e.attach(this.$editor),e},set:function(e){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:e})},enumerable:!1,configurable:!0}),e.prototype.$resetRowCache=function(e){if(!e)return this.$docRowCache=[],void(this.$screenRowCache=[]);var t=this.$docRowCache.length,n=this.$getRowCacheIndex(this.$docRowCache,e)+1;t>n&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},e.prototype.$getRowCacheIndex=function(e,t){for(var n=0,r=e.length-1;n<=r;){var i=n+r>>1,o=e[i];if(t>o)n=i+1;else{if(!(t<o))return i;r=i-1}}return n-1},e.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},e.prototype.onChangeFold=function(e){var t=e.data;this.$resetRowCache(t.start.row)},e.prototype.onChange=function(e){this.$modified=!0,this.$bidiHandler.onChange(e),this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);!this.$fromUndo&&this.$undoManager&&(t&&t.length&&(this.$undoManager.add({action:"removeFolds",folds:t},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(e,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},e.prototype.onSelectionChange=function(){this._signal("changeSelection")},e.prototype.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},e.fromJSON=function(t){"string"==typeof t&&(t=JSON.parse(t));var n=new g;n.$undoStack=t.history.undo,n.$redoStack=t.history.redo,n.mark=t.history.mark,n.$rev=t.history.rev;var r=new e(t.value);return t.folds.forEach((function(e){r.addFold("...",d.fromPoints(e.start,e.end))})),r.setAnnotations(t.annotations),r.setBreakpoints(t.breakpoints),r.setMode(t.mode),r.setScrollLeft(t.scrollLeft),r.setScrollTop(t.scrollTop),r.setUndoManager(n),r.selection.fromJSON(t.selection),r},e.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map((function(e){return e.range})),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},e.prototype.toString=function(){return this.doc.getValue()},e.prototype.getSelection=function(){return this.selection},e.prototype.getState=function(e){return this.bgTokenizer.getState(e)},e.prototype.getTokens=function(e){return this.bgTokenizer.getTokens(e)},e.prototype.getTokenAt=function(e,t){var n,r=this.bgTokenizer.getTokens(e),i=0;if(null==t){var o=r.length-1;i=this.getLine(e).length}else for(o=0;o<r.length&&!((i+=r[o].value.length)>=t);o++);return(n=r[o])?(n.index=o,n.start=i-n.value.length,n):null},e.prototype.setUndoManager=function(e){if(this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;e.addSession(this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=i.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},e.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},e.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},e.prototype.getTabString=function(){return this.getUseSoftTabs()?i.stringRepeat(" ",this.getTabSize()):"\t"},e.prototype.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},e.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},e.prototype.setTabSize=function(e){this.setOption("tabSize",e)},e.prototype.getTabSize=function(){return this.$tabSize},e.prototype.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},e.prototype.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},e.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},e.prototype.setOverwrite=function(e){this.setOption("overwrite",e)},e.prototype.getOverwrite=function(){return this.$overwrite},e.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},e.prototype.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},e.prototype.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},e.prototype.getBreakpoints=function(){return this.$breakpoints},e.prototype.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},e.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},e.prototype.setBreakpoint=function(e,t){void 0===t&&(t="ace_breakpoint"),t?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},e.prototype.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},e.prototype.addMarker=function(e,t,n,r){var i=this.$markerId++,o={range:e,type:n||"line",renderer:"function"==typeof n?n:null,clazz:t,inFront:!!r,id:i};return r?(this.$frontMarkers[i]=o,this._signal("changeFrontMarker")):(this.$backMarkers[i]=o,this._signal("changeBackMarker")),i},e.prototype.addDynamicMarker=function(e,t){if(e.update){var n=this.$markerId++;return e.id=n,e.inFront=!!t,t?(this.$frontMarkers[n]=e,this._signal("changeFrontMarker")):(this.$backMarkers[n]=e,this._signal("changeBackMarker")),e}},e.prototype.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];t&&(delete(t.inFront?this.$frontMarkers:this.$backMarkers)[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker"))},e.prototype.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},e.prototype.highlight=function(e){if(!this.$searchHighlight){var t=new f(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(t)}this.$searchHighlight.setRegexp(e)},e.prototype.highlightLines=function(e,t,n,r){"number"!=typeof t&&(n=t,t=e),n||(n="ace_step");var i=new d(e,0,t,1/0);return i.id=this.addMarker(i,n,"fullLine",r),i},e.prototype.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},e.prototype.getAnnotations=function(){return this.$annotations||[]},e.prototype.clearAnnotations=function(){this.setAnnotations([])},e.prototype.$detectNewLine=function(e){var t=e.match(/^.*?(\r?\n)/m);this.$autoNewLine=t?t[1]:"\n"},e.prototype.getWordRange=function(e,t){var n=this.getLine(e),r=!1;if(t>0&&(r=!!n.charAt(t-1).match(this.tokenRe)),r||(r=!!n.charAt(t).match(this.tokenRe)),r)var i=this.tokenRe;else i=/^\s+$/.test(n.slice(t-1,t+1))?/\s/:this.nonTokenRe;var o=t;if(o>0){do{o--}while(o>=0&&n.charAt(o).match(i));o++}for(var s=t;s<n.length&&n.charAt(s).match(i);)s++;return new d(e,o,e,s)},e.prototype.getAWordRange=function(e,t){for(var n=this.getWordRange(e,t),r=this.getLine(n.end.row);r.charAt(n.end.column).match(/[ \t]/);)n.end.column+=1;return n},e.prototype.setNewLineMode=function(e){this.doc.setNewLineMode(e)},e.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},e.prototype.setUseWorker=function(e){this.setOption("useWorker",e)},e.prototype.getUseWorker=function(){return this.$useWorker},e.prototype.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},e.prototype.setMode=function(e,t){if(e&&"object"==typeof e){if(e.getTokenizer)return this.$onChangeMode(e);var n=e,r=n.path}else r=e||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new c),this.$modes[r]&&!n)return this.$onChangeMode(this.$modes[r]),void(t&&t());this.$modeId=r,s.loadModule(["mode",r],function(e){if(!this.destroyed){if(this.$modeId!==r)return t&&t();this.$modes[r]&&!n?this.$onChangeMode(this.$modes[r]):e&&e.Mode&&(e=new e.Mode(n),n||(this.$modes[r]=e,e.$id=r),this.$onChangeMode(e)),t&&t()}}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},e.prototype.$onChangeMode=function(e,t){if(t||(this.$modeId=e.$id),this.$mode!==e){var n=this.$mode;this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();var r=e.getTokenizer();if(void 0!==r.on){var i=this.onReloadTokenizer.bind(this);r.on("update",i)}this.bgTokenizer.setTokenizer(r),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:n,mode:e}))}},e.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},e.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){s.warn("Could not load worker",e),this.$worker=null}},e.prototype.getMode=function(){return this.$mode},e.prototype.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},e.prototype.getScrollTop=function(){return this.$scrollTop},e.prototype.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},e.prototype.getScrollLeft=function(){return this.$scrollLeft},e.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},e.prototype.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var e=0;return this.lineWidgets.forEach((function(t){t&&t.screenWidth>e&&(e=t.screenWidth)})),this.lineWidgetWidth=e},e.prototype.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,r=0,i=0,o=this.$foldData[i],s=o?o.start.row:1/0,a=t.length,l=0;l<a;l++){if(l>s){if((l=o.end.row+1)>=a)break;s=(o=this.$foldData[i++])?o.start.row:1/0}null==n[l]&&(n[l]=this.$getStringScreenWidth(t[l])[0]),n[l]>r&&(r=n[l])}this.screenWidth=r}},e.prototype.getLine=function(e){return this.doc.getLine(e)},e.prototype.getLines=function(e,t){return this.doc.getLines(e,t)},e.prototype.getLength=function(){return this.doc.getLength()},e.prototype.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},e.prototype.insert=function(e,t){return this.doc.insert(e,t)},e.prototype.remove=function(e){return this.doc.remove(e)},e.prototype.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},e.prototype.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=e.length-1;-1!=n;n--){var r=e[n];"insert"==r.action||"remove"==r.action?this.doc.revertDelta(r):r.folds&&this.addFolds(r.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},e.prototype.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=0;n<e.length;n++){var r=e[n];"insert"!=r.action&&"remove"!=r.action||this.doc.$safeApplyDelta(r)}!t&&this.$undoSelect&&(e.selectionAfter?this.selection.fromJSON(e.selectionAfter):this.selection.setRange(this.$getUndoSelection(e,!1))),this.$fromUndo=!1}},e.prototype.setUndoSelect=function(e){this.$undoSelect=e},e.prototype.$getUndoSelection=function(e,t){function n(e){return t?"insert"!==e.action:"insert"===e.action}for(var r,i,o=0;o<e.length;o++){var s=e[o];s.start&&(r?n(s)?(i=s.start,-1==r.compare(i.row,i.column)&&r.setStart(i),i=s.end,1==r.compare(i.row,i.column)&&r.setEnd(i)):(i=s.start,-1==r.compare(i.row,i.column)&&(r=d.fromPoints(s.start,s.start))):r=n(s)?d.fromPoints(s.start,s.end):d.fromPoints(s.start,s.start))}return r},e.prototype.replace=function(e,t){return this.doc.replace(e,t)},e.prototype.moveText=function(e,t,n){var r=this.getTextRange(e),i=this.getFoldsInRange(e),o=d.fromPoints(t,t);if(!n){this.remove(e);var s=e.start.row-e.end.row;(c=s?-e.end.column:e.start.column-e.end.column)&&(o.start.row==e.end.row&&o.start.column>e.end.column&&(o.start.column+=c),o.end.row==e.end.row&&o.end.column>e.end.column&&(o.end.column+=c)),s&&o.start.row>=e.end.row&&(o.start.row+=s,o.end.row+=s)}if(o.end=this.insert(o.start,r),i.length){var a=e.start,l=o.start,c=(s=l.row-a.row,l.column-a.column);this.addFolds(i.map((function(e){return(e=e.clone()).start.row==a.row&&(e.start.column+=c),e.end.row==a.row&&(e.end.column+=c),e.start.row+=s,e.end.row+=s,e})))}return o},e.prototype.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var r=e;r<=t;r++)this.doc.insertInLine({row:r,column:0},n)},e.prototype.outdentRows=function(e){for(var t=e.collapseRows(),n=new d(0,0,0,0),r=this.getTabSize(),i=t.start.row;i<=t.end.row;++i){var o=this.getLine(i);n.start.row=i,n.end.row=i;for(var s=0;s<r&&" "==o.charAt(s);++s);s<r&&"\t"==o.charAt(s)?(n.start.column=s,n.end.column=s+1):(n.start.column=0,n.end.column=s),this.remove(n)}},e.prototype.$moveLines=function(e,t,n){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),n<0){if((i=this.getRowFoldStart(e+n))<0)return 0;var r=i-e}else if(n>0){var i;if((i=this.getRowFoldEnd(t+n))>this.doc.getLength()-1)return 0;r=i-t}else e=this.$clipRowToDocument(e),r=(t=this.$clipRowToDocument(t))-e+1;var o=new d(e,0,t,Number.MAX_VALUE),s=this.getFoldsInRange(o).map((function(e){return(e=e.clone()).start.row+=r,e.end.row+=r,e})),a=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+r,a),s.length&&this.addFolds(s),r},e.prototype.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},e.prototype.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},e.prototype.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},e.prototype.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},e.prototype.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},e.prototype.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},e.prototype.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},e.prototype.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},e.prototype.getUseWrapMode=function(){return this.$useWrapMode},e.prototype.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},e.prototype.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var r=this.$constrainWrapLimit(e,n.min,n.max);return r!=this.$wrapLimit&&r>1&&(this.$wrapLimit=r,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},e.prototype.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},e.prototype.getWrapLimit=function(){return this.$wrapLimit},e.prototype.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},e.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},e.prototype.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,r=e.start,i=e.end,o=r.row,s=i.row,a=s-o,l=null;if(this.$updating=!0,0!=a)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(o,a);var c=this.$foldData;l=this.getFoldsInRange(e),this.removeFolds(l);var d=0;if(g=this.getFoldLine(i.row)){g.addRemoveChars(i.row,i.column,r.column-i.column),g.shiftRow(-a);var u=this.getFoldLine(o);u&&u!==g&&(u.merge(g),g=u),d=c.indexOf(g)+1}for(;d<c.length;d++)(g=c[d]).start.row>=i.row&&g.shiftRow(-a);s=o}else{var h=Array(a);h.unshift(o,0);var p=t?this.$wrapData:this.$rowLengthCache;if(p.splice.apply(p,h),c=this.$foldData,d=0,g=this.getFoldLine(o)){var f=g.range.compareInside(r.row,r.column);0==f?(g=g.split(r.row,r.column))&&(g.shiftRow(a),g.addRemoveChars(s,0,i.column-r.column)):-1==f&&(g.addRemoveChars(o,0,i.column-r.column),g.shiftRow(a)),d=c.indexOf(g)+1}for(;d<c.length;d++){var g;(g=c[d]).start.row>=o&&g.shiftRow(a)}}else a=Math.abs(e.start.column-e.end.column),"remove"===n&&(l=this.getFoldsInRange(e),this.removeFolds(l),a=-a),(g=this.getFoldLine(o))&&g.addRemoveChars(o,r.column,a);return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(o,s):this.$updateRowLengthCache(o,s),l},e.prototype.$updateRowLengthCache=function(e,t){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},e.prototype.$updateWrapData=function(e,t){var n,r,i=this.doc.getAllLines(),o=this.getTabSize(),s=this.$wrapData,a=this.$wrapLimit,l=e;for(t=Math.min(t,i.length-1);l<=t;)(r=this.getFoldLine(l,r))?(n=[],r.walk(function(e,t,r,o){var s;if(null!=e){(s=this.$getDisplayTokens(e,n.length))[0]=y;for(var a=1;a<s.length;a++)s[a]=w}else s=this.$getDisplayTokens(i[t].substring(o,r),n.length);n=n.concat(s)}.bind(this),r.end.row,i[r.end.row].length+1),s[r.start.row]=this.$computeWrapSplits(n,a,o),l=r.end.row+1):(n=this.$getDisplayTokens(i[l]),s[l]=this.$computeWrapSplits(n,a,o),l++)},e.prototype.$computeWrapSplits=function(e,t,n){if(0==e.length)return[];var r=[],i=e.length,o=0,s=0,a=this.$wrapAsCode,l=this.$indentedSoftWrap,c=t<=Math.max(2*n,8)||!1===l?0:Math.floor(t/2);function d(t){for(var i=t-o,d=o;d<t;d++){var h=e[d];12!==h&&2!==h||(i-=1)}r.length||(u=function(){var t=0;if(0===c)return t;if(l)for(var r=0;r<e.length;r++){var i=e[r];if(i==k)t+=1;else{if(i!=_){if(i==C)continue;break}t+=n}}return a&&!1!==l&&(t+=n),Math.min(t,c)}(),r.indent=u),s+=i,r.push(s),o=t}for(var u=0;i-o>t-u;){var h=o+t-u;if(e[h-1]>=k&&e[h]>=k)d(h);else if(e[h]!=y&&e[h]!=w){for(var p=Math.max(h-(t-(t>>2)),o-1);h>p&&e[h]<y;)h--;if(a){for(;h>p&&e[h]<y;)h--;for(;h>p&&e[h]==x;)h--}else for(;h>p&&e[h]<k;)h--;h>p?d(++h):(e[h=o+t]==v&&h--,d(h-u))}else{for(;h!=o-1&&e[h]!=y;h--);if(h>o){d(h);continue}for(h=o+t;h<e.length&&e[h]==w;h++);if(h==e.length)break;d(h)}}return r},e.prototype.$getDisplayTokens=function(e,t){var n,r=[];t=t||0;for(var i=0;i<e.length;i++){var o=e.charCodeAt(i);if(9==o){n=this.getScreenTabSize(r.length+t),r.push(_);for(var s=1;s<n;s++)r.push(C)}else 32==o?r.push(k):o>39&&o<48||o>57&&o<64?r.push(x):o>=4352&&T(o)?r.push(b,v):r.push(b)}return r},e.prototype.$getStringScreenWidth=function(e,t,n){if(0==t)return[0,0];var r,i;for(null==t&&(t=1/0),n=n||0,i=0;i<e.length&&(9==(r=e.charCodeAt(i))?n+=this.getScreenTabSize(n):r>=4352&&T(r)?n+=2:n+=1,!(n>t));i++);return[n,i]},e.prototype.getRowLength=function(e){var t=1;return this.lineWidgets&&(t+=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0),this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+t:t},e.prototype.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},e.prototype.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]<t.column?n.indent:0}return 0},e.prototype.getScreenLastRowColumn=function(e){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(t.row,t.column)},e.prototype.getDocumentLastRowColumn=function(e,t){var n=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(n)},e.prototype.getDocumentLastRowColumnPosition=function(e,t){var n=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(n,Number.MAX_VALUE/10)},e.prototype.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData[e]:void 0},e.prototype.getScreenTabSize=function(e){return this.$tabSize-(e%this.$tabSize|0)},e.prototype.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},e.prototype.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},e.prototype.screenToDocumentPosition=function(e,t,n){if(e<0)return{row:0,column:0};var r,i,o=0,s=0,a=0,l=0,c=this.$screenRowCache,d=this.$getRowCacheIndex(c,e),u=c.length;if(u&&d>=0){a=c[d],o=this.$docRowCache[d];var h=e>c[u-1]}else h=!u;for(var p=this.getLength()-1,f=this.getNextFoldLine(o),g=f?f.start.row:1/0;a<=e&&!(a+(l=this.getRowLength(o))>e||o>=p);)a+=l,++o>g&&(o=f.end.row+1,g=(f=this.getNextFoldLine(o,f))?f.start.row:1/0),h&&(this.$docRowCache.push(o),this.$screenRowCache.push(a));if(f&&f.start.row<=o)r=this.getFoldDisplayLine(f),o=f.start.row;else{if(a+l<=e||o>p)return{row:p,column:this.getLine(p).length};r=this.getLine(o),f=null}var m=0,b=Math.floor(e-a);if(this.$useWrapMode){var v=this.$wrapData[o];v&&(i=v[b],b>0&&v.length&&(m=v.indent,s=v[b-1]||v[v.length-1],r=r.substring(s)))}return void 0!==n&&this.$bidiHandler.isBidiRow(a+b,o,b)&&(t=this.$bidiHandler.offsetToCol(n)),s+=this.$getStringScreenWidth(r,t-m)[1],this.$useWrapMode&&s>=i&&(s=i-1),f?f.idxToPosition(s):{row:o,column:s}},e.prototype.documentToScreenPosition=function(e,t){if(void 0===t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var r,i=0,o=null;(r=this.getFoldAt(e,t,1))&&(e=r.start.row,t=r.start.column);var s,a=0,l=this.$docRowCache,c=this.$getRowCacheIndex(l,e),d=l.length;if(d&&c>=0){a=l[c],i=this.$screenRowCache[c];var u=e>l[d-1]}else u=!d;for(var h=this.getNextFoldLine(a),p=h?h.start.row:1/0;a<e;){if(a>=p){if((s=h.end.row+1)>e)break;p=(h=this.getNextFoldLine(s,h))?h.start.row:1/0}else s=a+1;i+=this.getRowLength(a),a=s,u&&(this.$docRowCache.push(a),this.$screenRowCache.push(i))}var f="";h&&a>=p?(f=this.getFoldDisplayLine(h,e,t),o=h.start.row):(f=this.getLine(e).substring(0,t),o=e);var g=0;if(this.$useWrapMode){var m=this.$wrapData[o];if(m){for(var b=0;f.length>=m[b];)i++,b++;f=f.substring(m[b-1]||0,f.length),g=b>0?m.indent:0}}return this.lineWidgets&&this.lineWidgets[a]&&this.lineWidgets[a].rowsAbove&&(i+=this.lineWidgets[a].rowsAbove),{row:i,column:g+this.$getStringScreenWidth(f)[0]}},e.prototype.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},e.prototype.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},e.prototype.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var n=this.$wrapData.length,r=0,i=(a=0,(t=this.$foldData[a++])?t.start.row:1/0);r<n;){var o=this.$wrapData[r];e+=o?o.length+1:1,++r>i&&(r=t.end.row+1,i=(t=this.$foldData[a++])?t.start.row:1/0)}else{e=this.getLength();for(var s=this.$foldData,a=0;a<s.length;a++)e-=(t=s[a]).end.row-t.start.row}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},e.prototype.$setFontMetrics=function(e){this.$enableVarChar&&(this.$getStringScreenWidth=function(t,n,r){if(0===n)return[0,0];var i,o;for(n||(n=1/0),r=r||0,o=0;o<t.length&&!((r+="\t"===(i=t.charAt(o))?this.getScreenTabSize(r):e.getCharacterWidth(i))>n);o++);return[r,o]})},e.prototype.getPrecedingCharacter=function(){var e=this.selection.getCursor();return 0===e.column?0===e.row?"":this.doc.getNewLineCharacter():this.getLine(e.row)[e.column-1]},e.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.endOperation(),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection&&(this.selection.off("changeCursor",this.$onSelectionChange),this.selection.off("changeSelection",this.$onSelectionChange)),this.selection.detach()},e}();m.$uid=0,m.prototype.$modes=s.$modes,m.prototype.getValue=m.prototype.toString,m.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},m.prototype.$overwrite=!1,m.prototype.$mode=null,m.prototype.$modeId=null,m.prototype.$scrollTop=0,m.prototype.$scrollLeft=0,m.prototype.$wrapLimit=80,m.prototype.$useWrapMode=!1,m.prototype.$wrapLimitRange={min:null,max:null},m.prototype.lineWidgets=null,m.prototype.isFullWidth=T,r.implement(m.prototype,a);var b=1,v=2,y=3,w=4,x=9,k=10,_=11,C=12;function T(e){return!(e<4352)&&(e>=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}e("./edit_session/folding").Folding.call(m.prototype),e("./edit_session/bracket_match").BracketMatch.call(m.prototype),s.defineOptions(m.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){(e=parseInt(e))>0&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=m})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/lang"),i=e("./lib/oop"),o=e("./range").Range,s=function(){function e(){this.$options={}}return e.prototype.set=function(e){return i.mixin(this.$options,e),this},e.prototype.getOptions=function(){return r.copyObject(this.$options)},e.prototype.setOptions=function(e){this.$options=e},e.prototype.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var r=null;return n.forEach((function(e,n,i,s){return r=new o(e,n,i,s),!(n==s&&t.start&&t.start.start&&0!=t.skipCurrent&&r.isEqual(t.start)&&(r=null,1))})),r},e.prototype.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,i=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),s=[],a=t.re;if(t.$isMultiLine){var l,c=a.length,d=i.length-c;e:for(var u=a.offset||0;u<=d;u++){for(var h=0;h<c;h++)if(-1==i[u+h].search(a[h]))continue e;var p=i[u],f=i[u+c-1],g=p.length-p.match(a[0])[0].length,m=f.match(a[c-1])[0].length;l&&l.end.row===u&&l.end.column>g||(s.push(l=new o(u,g,u+c-1,m)),c>2&&(u=u+c-2))}}else for(var b,v=0;v<i.length;v++)if(this.$isMultilineSearch(t)){var y=i.length-1;if(b=this.$multiLineForward(e,a,v,y)){var w=b.endRow<=y?b.endRow-1:y;w>v&&(v=w),s.push(new o(b.startRow,b.startCol,b.endRow,b.endCol))}}else for(b=r.getMatchOffsets(i[v],a),h=0;h<b.length;h++){var x=b[h];s.push(new o(v,x.offset,v,x.offset+x.length))}if(n){var k=n.start.column,_=n.end.column;for(v=0,h=s.length-1;v<h&&s[v].start.column<k&&0==s[v].start.row;)v++;for(var C=n.end.row-n.start.row;v<h&&s[h].end.column>_&&s[h].end.row==C;)h--;for(s=s.slice(v,h+1),v=0,h=s.length;v<h;v++)s[v].start.row+=n.start.row,s[v].end.row+=n.start.row}return s},e.prototype.parseReplaceString=function(e){for(var t="",n=0,r=e.length;n<r;n++){var i=e.charCodeAt(n);if(92!==i){if(36===i){if(++n>=r){t+="$";break}var o=e.charCodeAt(n);if(36===o){t+="$$";continue}if(48===o||38===o){t+="$&";continue}if(49<=o&&o<=57){t+="$"+e[n];continue}}t+=e[n]}else{if(++n>=r){t+="\\";break}switch(e.charCodeAt(n)){case 92:t+="\\";break;case 110:t+="\n";break;case 116:t+="\t"}}}return t||e},e.prototype.replace=function(e,t){var n=this.$options,r=this.$assembleRegExp(n);if(n.$isMultiLine)return t;if(r){var i=this.$isMultilineSearch(n);i&&(e=e.replace(/\r\n|\r|\n/g,"\n"));var o=r.exec(e);if(!o||!i&&o[0].length!=e.length)return null;if(t=n.regExp?this.parseReplaceString(t):t.replace(/\$/g,"$$$$"),t=e.replace(r,t),n.preserveCase){t=t.split("");for(var s=Math.min(e.length,e.length);s--;){var a=e[s];a&&a.toLowerCase()!=a?t[s]=t[s].toUpperCase():t[s]=t[s].toLowerCase()}t=t.join("")}return t}},e.prototype.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var n=e.needle;if(!e.needle)return e.re=!1;e.regExp||(n=r.escapeRegExp(n));var i=e.caseSensitive?"gm":"gmi";try{new RegExp(n,"u"),e.$supportsUnicodeFlag=!0,i+="u"}catch(t){e.$supportsUnicodeFlag=!1}if(e.wholeWord&&(n=function(e,t){var n=r.supportsLookbehind();function i(e,r){return void 0===r&&(r=!0),(n&&t.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w")).test(e)||t.regExp?n&&t.$supportsUnicodeFlag?r?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var o=Array.from(e),s=o[0],a=o[o.length-1];return i(s)+e+i(a,!1)}(n,e)),e.$isMultiLine=!t&&/[\n\r]/.test(n),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(n,i);try{var o=new RegExp(n,i)}catch(e){o=!1}return e.re=o},e.prototype.$assembleMultilineRegExp=function(e,t){for(var n=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),r=[],i=0;i<n.length;i++)try{r.push(new RegExp(n[i],t))}catch(e){return!1}return r},e.prototype.$isMultilineSearch=function(e){return e.re&&/\\r\\n|\\r|\\n/.test(e.re.source)&&e.regExp&&!e.$isMultiLine},e.prototype.$multiLineForward=function(e,t,n,r){for(var i,o=l(e,n),s=n;s<=r;){for(var a=0;a<o&&!(s>r);a++){var c=e.getLine(s++);i=null==i?c:i+"\n"+c}var d=t.exec(i);if(t.lastIndex=0,d){var u=i.slice(0,d.index).split("\n"),h=d[0].split("\n"),p=n+u.length-1,f=u[u.length-1].length;return{startRow:p,startCol:f,endRow:p+h.length-1,endCol:1==h.length?f+h[0].length:h[h.length-1].length}}}return null},e.prototype.$multiLineBackward=function(e,t,n,r,i){for(var o,s=l(e,r),c=e.getLine(r).length-n,d=r;d>=i;){for(var u=0;u<s&&d>=i;u++){var h=e.getLine(d--);o=null==o?h:h+"\n"+o}var p=a(o,t,c);if(p){var f=o.slice(0,p.index).split("\n"),g=p[0].split("\n"),m=d+f.length,b=f[f.length-1].length;return{startRow:m,startCol:b,endRow:m+g.length-1,endCol:1==g.length?b+g[0].length:g[g.length-1].length}}}return null},e.prototype.$matchIterator=function(e,t){var n=this.$assembleRegExp(t);if(!n)return!1;var i=this.$isMultilineSearch(t),o=this.$multiLineForward,s=this.$multiLineBackward,a=1==t.backwards,l=0!=t.skipCurrent,c=n.unicode,d=t.range,u=t.start;u||(u=d?d[a?"end":"start"]:e.selection.getRange()),u.start&&(u=u[l!=a?"end":"start"]);var h=d?d.start.row:0,p=d?d.end.row:e.getLength()-1;if(a)var f=function(e){var n=u.row;if(!m(n,u.column,e)){for(n--;n>=h;n--)if(m(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=p,h=u.row;n>=h;n--)if(m(n,Number.MAX_VALUE,e))return}};else f=function(e){var n=u.row;if(!m(n,u.column,e)){for(n+=1;n<=p;n++)if(m(n,0,e))return;if(0!=t.wrap)for(n=h,p=u.row;n<=p;n++)if(m(n,0,e))return}};if(t.$isMultiLine)var g=n.length,m=function(t,r,i){var o=a?t-g+1:t;if(!(o<0||o+g>e.getLength())){var s=e.getLine(o),l=s.search(n[0]);if(!(!a&&l<r||-1===l)){for(var c=1;c<g;c++)if(-1==(s=e.getLine(o+c)).search(n[c]))return;var d=s.match(n[g-1])[0].length;if(!(a&&d>r))return!!i(o,l,o+g-1,d)||void 0}}};else m=a?function(t,o,a){if(i){var l=s(e,n,o,t,h);if(!l)return!1;if(a(l.startRow,l.startCol,l.endRow,l.endCol))return!0}else{var d,u=e.getLine(t),p=[],f=0;for(n.lastIndex=0;d=n.exec(u);){var g=d[0].length;if(f=d.index,!g){if(f>=u.length)break;n.lastIndex=f+=r.skipEmptyMatch(u,f,c)}if(d.index+g>o)break;p.push(d.index,g)}for(var m=p.length-1;m>=0;m-=2){var b=p[m-1];if(a(t,b,t,b+(g=p[m])))return!0}}}:function(t,s,a){if(n.lastIndex=s,i){var l=o(e,n,t,p);if(l){var d=l.endRow<=p?l.endRow-1:p;d>t&&(t=d)}if(!l)return!1;if(a(l.startRow,l.startCol,l.endRow,l.endCol))return!0}else for(var u,h,f=e.getLine(t);h=n.exec(f);){var g=h[0].length;if(a(t,u=h.index,t,u+g))return!0;if(!g&&(n.lastIndex=u+=r.skipEmptyMatch(f,u,c),u>=f.length))return!1}};return{forEach:f}},e}();function a(e,t,n){for(var r=null,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var s=o.index+o[0].length;if(s>e.length-n)break;(!r||s>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function l(e,t){var n={row:t,column:0},r=e.doc.positionToIndex(n)+5e3;return e.doc.indexToPosition(r).row+1}t.Search=s})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var r,i=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=e("../lib/keys"),s=e("../lib/useragent"),a=o.KEY_MODS,l=function(){function e(e,t){this.$init(e,t,!1)}return e.prototype.$init=function(e,t,n){this.platform=t||(s.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=n},e.prototype.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},e.prototype.removeCommand=function(e,t){var n=e&&("string"==typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var r=this.commandKeyBinding;for(var i in r){var o=r[i];if(o==e)delete r[i];else if(Array.isArray(o)){var s=o.indexOf(e);-1!=s&&(o.splice(s,1),1==o.length&&(r[i]=o[0]))}}},e.prototype.bindKey=function(e,t,n){if("object"==typeof e&&e&&(null==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach((function(e){var r="";if(-1!=e.indexOf(" ")){var i=e.split(/\s+/);e=i.pop(),i.forEach((function(e){var t=this.parseKeys(e),n=a[t.hashId]+t.key;r+=(r?" ":"")+n,this._addCommandToBinding(r,"chainKeys")}),this),r+=" "}var o=this.parseKeys(e),s=a[o.hashId]+o.key;this._addCommandToBinding(r+s,t,n)}),this)},e.prototype._addCommandToBinding=function(e,t,n){var r,i=this.commandKeyBinding;if(t)if(!i[e]||this.$singleCommand)i[e]=t;else{Array.isArray(i[e])?-1!=(r=i[e].indexOf(t))&&i[e].splice(r,1):i[e]=[i[e]],"number"!=typeof n&&(n=c(t));var o=i[e];for(r=0;r<o.length&&!(c(o[r])>n);r++);o.splice(r,0,t)}else delete i[e]},e.prototype.addCommands=function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];if(n){if("string"==typeof n)return this.bindKey(n,t);"function"==typeof n&&(n={exec:n}),"object"==typeof n&&(n.name||(n.name=t),this.addCommand(n))}}),this)},e.prototype.removeCommands=function(e){Object.keys(e).forEach((function(t){this.removeCommand(e[t])}),this)},e.prototype.bindKeys=function(e){Object.keys(e).forEach((function(t){this.bindKey(t,e[t])}),this)},e.prototype._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},e.prototype.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(e){return e})),n=t.pop(),r=o[n];if(o.FUNCTION_KEYS[r])n=o.FUNCTION_KEYS[r].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var i=0,s=t.length;s--;){var a=o.KEY_MODS[t[s]];if(null==a)return"undefined"!=typeof console&&console.error("invalid modifier "+t[s]+" in "+e),!1;i|=a}return{key:n,hashId:i}},e.prototype.findKeyCommand=function(e,t){var n=a[e]+t;return this.commandKeyBinding[n]},e.prototype.handleKeyboard=function(e,t,n,r){if(!(r<0)){var i=a[t]+n,o=this.commandKeyBinding[i];return e.$keyChain&&(e.$keyChain+=" "+i,o=this.commandKeyBinding[e.$keyChain]||o),!o||"chainKeys"!=o&&"chainKeys"!=o[o.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||r>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-i.length-1)),{command:o}):(e.$keyChain=e.$keyChain||i,{command:"null"})}},e.prototype.getStatusText=function(e,t){return t.$keyChain||""},e}();function c(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}var d=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.$singleCommand=!0,r}return i(t,e),t}(l);d.call=function(e,t,n){l.prototype.$init.call(e,t,n,!0)},l.call=function(e,t,n){l.prototype.$init.call(e,t,n,!1)},t.HashHandler=d,t.MultiHashHandler=l})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r,i=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=e("../lib/oop"),s=e("../keyboard/hash_handler").MultiHashHandler,a=e("../lib/event_emitter").EventEmitter,l=function(e){function t(t,n){var r=e.call(this,n,t)||this;return r.byName=r.commands,r.setDefaultHandler("exec",(function(e){return e.args?e.command.exec(e.editor,e.args,e.event,!1):e.command.exec(e.editor,{},e.event,!0)})),r}return i(t,e),t.prototype.exec=function(e,t,n){if(Array.isArray(e)){for(var r=e.length;r--;)if(this.exec(e[r],t,n))return!0;return!1}"string"==typeof e&&(e=this.commands[e]);var i={editor:t,command:e,args:n};return this.canExecute(e,t)?(i.returnValue=this._emit("exec",i),this._signal("afterExec",i),!1!==i.returnValue):(this._signal("commandUnavailable",i),!1)},t.prototype.canExecute=function(e,t){return"string"==typeof e&&(e=this.commands[e]),!(!e||t&&t.$readOnly&&!e.readOnly||0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))},t.prototype.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},t.prototype.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach((function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])}),this)}finally{this.$inReplay=!1}}},t.prototype.trimMacro=function(e){return e.map((function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e}))},t}(s);o.implement(l.prototype,a),t.CommandManager=l})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(e,t,n){"use strict";var r=e("../lib/lang"),i=e("../config"),o=e("../range").Range;function s(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:s("Ctrl-,","Command-,"),exec:function(e){i.loadModule("ace/ext/settings_menu",(function(t){t.init(e),e.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:s("Alt-E","F4"),exec:function(e){i.loadModule("ace/ext/error_marker",(function(t){t.showErrorMarker(e,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:s("Alt-Shift-E","Shift-F4"),exec:function(e){i.loadModule("ace/ext/error_marker",(function(t){t.showErrorMarker(e,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:s("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:s(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:s("Ctrl-L","Command-L"),exec:function(e,t){"number"!=typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:s("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:s("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:s("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:s("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:s("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:s("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:s("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:s("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:s("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:s("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:s("Ctrl-F","Command-F"),exec:function(e){i.loadModule("ace/ext/searchbox",(function(t){t.Search(e)}))},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:s("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:s("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:s("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:s("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:s("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:s("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:s("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:s("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:s("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:s("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:s("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:s("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:s("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:s("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:s("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:s("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:s("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:s("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:s("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:s("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:s(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:s("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:s(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:s("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:s("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:s("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:s("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:s("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:s("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:s("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:s(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty()?e.selection.getLineRange():e.selection.getRange();e._emit("cut",t),t.isEmpty()||e.session.remove(t),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:s("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:s("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:s("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:s("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:s("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:s("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:s("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:s("Ctrl-H","Command-Option-F"),exec:function(e){i.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"undo",description:"Undo",bindKey:s("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:s("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:s("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:s("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:s("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:s("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:s("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:s("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:s("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:s("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:s("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:s("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:s("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:s("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:s("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:s("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:s("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:s("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:s("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(r.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:s(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:s("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:s("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:s("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:s(null,null),exec:function(e){e.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:s("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:s("Ctrl+F3","F3"),exec:function(e){e.openLink()}},{name:"joinlines",description:"Join lines",bindKey:s(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),i=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),s=e.session.doc.getLine(n.row).length,a=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,l=e.session.doc.getLine(n.row),c=n.row+1;c<=i.row+1;c++){var d=r.stringTrimLeft(r.stringTrimRight(e.session.doc.getLine(c)));0!==d.length&&(d=" "+d),l+=d}i.row+1<e.session.doc.getLength()-1&&(l+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new o(n.row,0,i.row+2,0),l),a>0?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+a)):(s=e.session.doc.getLine(n.row).length>s?s+1:s,e.selection.moveCursorTo(n.row,s))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,r=e.selection.rangeList.ranges,i=[];r.length<1&&(r=[e.selection.getRange()]);for(var s=0;s<r.length;s++)s==r.length-1&&(r[s].end.row===t&&r[s].end.column===n||i.push(new o(r[s].end.row,r[s].end.column,t,n))),0===s?0===r[s].start.row&&0===r[s].start.column||i.push(new o(0,0,r[s].start.row,r[s].start.column)):i.push(new o(r[s-1].end.row,r[s-1].end.column,r[s].start.row,r[s].start.column));for(e.exitMultiSelectMode(),e.clearSelection(),s=0;s<i.length;s++)e.selection.addRange(i[s],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(e){e.selection.clearSelection(),e.navigateLineEnd(),e.insert("\n")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(e){e.selection.clearSelection();var t=e.getCursorPosition();e.selection.moveTo(t.row-1,Number.MAX_VALUE),e.insert("\n"),0===t.row&&e.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(e){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),e.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:s("F1","F1"),exec:function(e){e.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:s(null,null),exec:function(e){e.prompt({$type:"modes"})},readOnly:!0}];for(var a=1;a<9;a++)t.commands.push({name:"foldToLevel"+a,description:"Fold To Level "+a,level:a,exec:function(e){e.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})})),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],(function(e,t,n){"use strict";var r=e("../lib/keys"),i=e("../mouse/default_gutter_handler").GutterTooltip,o=function(){function e(e){this.editor=e,this.gutterLayer=e.renderer.$gutterLayer,this.element=e.renderer.$gutter,this.lines=e.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new i(this.editor)}return e.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},e.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},e.prototype.$onGutterKeyDown=function(e){if(this.annotationTooltip.isOpen)return e.preventDefault(),void(e.keyCode===r.escape&&this.annotationTooltip.hideTooltip());if(e.target===this.element){if(e.keyCode!=r.enter)return;e.preventDefault();var t=this.editor.getCursorPosition().row;return this.editor.isRowVisible(t)||this.editor.scrollToLine(t,!0,!0),void setTimeout(function(){var e=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),t=this.$findNearestFoldWidget(e),n=this.$findNearestAnnotation(e);if(null!==t||null!==n)return null===t&&null!==n?(this.activeRowIndex=n,this.activeLane="annotation",void this.$focusAnnotation(this.activeRowIndex)):null!==t&&null===n?(this.activeRowIndex=t,this.activeLane="fold",void this.$focusFoldWidget(this.activeRowIndex)):Math.abs(n-e)<Math.abs(t-e)?(this.activeRowIndex=n,this.activeLane="annotation",void this.$focusAnnotation(this.activeRowIndex)):(this.activeRowIndex=t,this.activeLane="fold",void this.$focusFoldWidget(this.activeRowIndex))}.bind(this),10)}this.$handleGutterKeyboardInteraction(e),setTimeout(function(){this.editor._signal("gutterkeydown",new s(e,this))}.bind(this),10)},e.prototype.$handleGutterKeyboardInteraction=function(e){if(e.keyCode!==r.tab){if(e.keyCode===r.escape)return e.preventDefault(),this.$blurGutter(),this.element.focus(),void(this.lane=null);if(e.keyCode!==r.up)if(e.keyCode!==r.down){if(e.keyCode===r.left)return e.preventDefault(),void this.$switchLane("annotation");if(e.keyCode===r.right)return e.preventDefault(),void this.$switchLane("fold");if(e.keyCode!==r.enter&&e.keyCode!==r.space);else switch(e.preventDefault(),this.activeLane){case"fold":if("start"===this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]){var t=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),e),setTimeout(function(){this.$rowIndexToRow(this.activeRowIndex)!==t&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(t),this.$focusFoldWidget(this.activeRowIndex))}.bind(this),10);break}if("end"===this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)])break;return;case"annotation":var n=this.lines.cells[this.activeRowIndex].element.childNodes[2].getBoundingClientRect(),i=this.annotationTooltip.getElement().style;i.left=n.right+"px",i.top=n.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex))}}else switch(e.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown()}else switch(e.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp()}}else e.preventDefault()},e.prototype.$blurGutter=function(){if(null!==this.activeRowIndex)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex)}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},e.prototype.$isFoldWidgetVisible=function(e){var t=this.editor.isRowFullyVisible(this.$rowIndexToRow(e)),n="none"!==this.$getFoldWidget(e).style.display;return t&&n},e.prototype.$isAnnotationVisible=function(e){var t=this.editor.isRowFullyVisible(this.$rowIndexToRow(e)),n="none"!==this.$getAnnotation(e).style.display;return t&&n},e.prototype.$getFoldWidget=function(e){return this.lines.get(e).element.childNodes[1]},e.prototype.$getAnnotation=function(e){return this.lines.get(e).element.childNodes[2]},e.prototype.$findNearestFoldWidget=function(e){if(this.$isFoldWidgetVisible(e))return e;for(var t=0;e-t>0||e+t<this.lines.getLength()-1;){if(e-++t>=0&&this.$isFoldWidgetVisible(e-t))return e-t;if(e+t<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(e+t))return e+t}return null},e.prototype.$findNearestAnnotation=function(e){if(this.$isAnnotationVisible(e))return e;for(var t=0;e-t>0||e+t<this.lines.getLength()-1;){if(e-++t>=0&&this.$isAnnotationVisible(e-t))return e-t;if(e+t<=this.lines.getLength()-1&&this.$isAnnotationVisible(e+t))return e+t}return null},e.prototype.$focusFoldWidget=function(e){if(null!=e){var t=this.$getFoldWidget(e);t.classList.add(this.editor.renderer.keyboardFocusClassName),t.focus()}},e.prototype.$focusAnnotation=function(e){if(null!=e){var t=this.$getAnnotation(e);t.classList.add(this.editor.renderer.keyboardFocusClassName),t.focus()}},e.prototype.$blurFoldWidget=function(e){var t=this.$getFoldWidget(e);t.classList.remove(this.editor.renderer.keyboardFocusClassName),t.blur()},e.prototype.$blurAnnotation=function(e){var t=this.$getAnnotation(e);t.classList.remove(this.editor.renderer.keyboardFocusClassName),t.blur()},e.prototype.$moveFoldWidgetUp=function(){for(var e=this.activeRowIndex;e>0;)if(e--,this.$isFoldWidgetVisible(e))return this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=e,void this.$focusFoldWidget(this.activeRowIndex)},e.prototype.$moveFoldWidgetDown=function(){for(var e=this.activeRowIndex;e<this.lines.getLength()-1;)if(e++,this.$isFoldWidgetVisible(e))return this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=e,void this.$focusFoldWidget(this.activeRowIndex)},e.prototype.$moveAnnotationUp=function(){for(var e=this.activeRowIndex;e>0;)if(e--,this.$isAnnotationVisible(e))return this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=e,void this.$focusAnnotation(this.activeRowIndex)},e.prototype.$moveAnnotationDown=function(){for(var e=this.activeRowIndex;e<this.lines.getLength()-1;)if(e++,this.$isAnnotationVisible(e))return this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=e,void this.$focusAnnotation(this.activeRowIndex)},e.prototype.$switchLane=function(e){switch(e){case"annotation":if("annotation"===this.activeLane)break;var t=this.$findNearestAnnotation(this.activeRowIndex);if(null==t)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=t,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if("fold"===this.activeLane)break;var n=this.$findNearestFoldWidget(this.activeRowIndex);if(null==n)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=n,this.$focusFoldWidget(this.activeRowIndex)}},e.prototype.$rowIndexToRow=function(e){var t=this.lines.get(e);return t?t.row:null},e.prototype.$rowToRowIndex=function(e){for(var t=0;t<this.lines.getLength();t++)if(this.lines.get(t).row==e)return t;return null},e}();t.GutterKeyboardHandler=o;var s=function(){function e(e,t){this.gutterKeyboardHandler=t,this.domEvent=e}return e.prototype.getKey=function(){return r.keyCodeToString(this.domEvent.keyCode)},e.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},e.prototype.isInAnnotationLane=function(){return"annotation"===this.gutterKeyboardHandler.activeLane},e.prototype.isInFoldLane=function(){return"fold"===this.gutterKeyboardHandler.activeLane},e}();t.GutterKeyboardEvent=s})),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys","ace/lib/event","ace/tooltip"],(function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=e("./lib/oop"),o=e("./lib/dom"),s=e("./lib/lang"),a=e("./lib/useragent"),l=e("./keyboard/textinput").TextInput,c=e("./mouse/mouse_handler").MouseHandler,d=e("./mouse/fold_handler").FoldHandler,u=e("./keyboard/keybinding").KeyBinding,h=e("./edit_session").EditSession,p=e("./search").Search,f=e("./range").Range,g=e("./lib/event_emitter").EventEmitter,m=e("./commands/command_manager").CommandManager,b=e("./commands/default_commands").commands,v=e("./config"),y=e("./token_iterator").TokenIterator,w=e("./keyboard/gutter_handler").GutterKeyboardHandler,x=e("./config").nls,k=e("./clipboard"),_=e("./lib/keys"),C=e("./lib/event"),T=e("./tooltip").HoverTooltip,S=function(){function e(t,n,r){this.session,this.$toDestroy=[];var i=t.getContainerElement();this.container=i,this.renderer=t,this.id="editor"+ ++e.$uid,this.commands=new m(a.isMac?"mac":"win",b),"object"==typeof document&&(this.textInput=new l(t.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new c(this),new d(this)),this.keyBinding=new u(this),this.$search=(new p).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=s.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",(function(e,t){t._$emitInputEvent.schedule(31)})),this.setSession(n||r&&r.session||new h("")),v.resetOptions(this),r&&this.setOptions(r),v._signal("editor",this)}return e.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},e.prototype.startOperation=function(e){this.session.startOperation(e)},e.prototype.endOperation=function(e){this.session.endOperation(e)},e.prototype.onStartOperation=function(e){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,e||(this.previousCommand=null)},e.prototype.onEndOperation=function(e){if(this.curOp&&this.session){if(e&&!1===e.returnValue)return void(this.curOp=null);if(this._signal("beforeEndOperation"),!this.curOp)return;var t=this.curOp.command,n=t&&t.scrollIntoView;if(n){switch(n){case"center-animate":n="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var r=this.selection.getRange(),i=this.renderer.layerConfig;(r.start.row>=i.lastRow||r.end.row<=i.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},e.prototype.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,r=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var i=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),r=r&&this.mergeNextCommand&&(!/\s/.test(i)||/\s/.test(t.args)),this.mergeNextCommand=!0}else r=r&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(r=!1),r?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},e.prototype.setKeyboardHandler=function(e,t){if(e&&"string"==typeof e&&"ace"!=e){this.$keybindingId=e;var n=this;v.loadModule(["keybinding",e],(function(r){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(r&&r.handler),t&&t()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},e.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},e.prototype.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),this.session.off("startOperation",this.$onStartOperation),this.session.off("endOperation",this.$onEndOperation);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),t&&(t.$editor=null),e&&e._signal("changeEditor",{editor:this}),e&&(e.$editor=this),e&&!e.destroyed&&e.bgTokenizer.scheduleStart()}},e.prototype.getSession=function(){return this.session},e.prototype.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},e.prototype.getValue=function(){return this.session.getValue()},e.prototype.getSelection=function(){return this.selection},e.prototype.resize=function(e){this.renderer.onResize(e)},e.prototype.setTheme=function(e,t){this.renderer.setTheme(e,t)},e.prototype.getTheme=function(){return this.renderer.getTheme()},e.prototype.setStyle=function(e){this.renderer.setStyle(e)},e.prototype.unsetStyle=function(e){this.renderer.unsetStyle(e)},e.prototype.getFontSize=function(){return this.getOption("fontSize")||o.computedStyle(this.container).fontSize},e.prototype.setFontSize=function(e){this.setOption("fontSize",e)},e.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout((function(){e.$highlightPending=!1;var t=e.session;if(t&&!t.destroyed){t.$bracketHighlight&&(t.$bracketHighlight.markerIds.forEach((function(e){t.removeMarker(e)})),t.$bracketHighlight=null);var n=e.getCursorPosition(),r=e.getKeyboardHandler(),i=r&&r.$getDirectionForHighlight&&r.$getDirectionForHighlight(e),o=t.getMatchingBracketRanges(n,i);if(!o){var s=new y(t,n.row,n.column).getCurrentToken();if(s&&/\b(?:tag-open|tag-name)/.test(s.type)){var a=t.getMatchingTags(n);a&&(o=[a.openTagName.isEmpty()?a.openTag:a.openTagName,a.closeTagName.isEmpty()?a.closeTag:a.closeTagName])}}if(!o&&t.$mode.getMatching&&(o=t.$mode.getMatching(e.session)),o){var l="ace_bracket";Array.isArray(o)?1==o.length&&(l="ace_error_bracket"):o=[o],2==o.length&&(0==f.comparePoints(o[0].end,o[1].start)?o=[f.fromPoints(o[0].start,o[1].end)]:0==f.comparePoints(o[0].start,o[1].end)&&(o=[f.fromPoints(o[1].start,o[0].end)])),t.$bracketHighlight={ranges:o,markerIds:o.map((function(e){return t.addMarker(e,l,"text")}))},e.getHighlightIndentGuides()&&e.renderer.$textLayer.$highlightIndentGuide()}else e.getHighlightIndentGuides()&&e.renderer.$textLayer.$highlightIndentGuide()}}),50)}},e.prototype.focus=function(){this.textInput.focus()},e.prototype.isFocused=function(){return this.textInput.isFocused()},e.prototype.blur=function(){this.textInput.blur()},e.prototype.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},e.prototype.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},e.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},e.prototype.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,n,t),this._signal("change",e),this.$cursorChange()},e.prototype.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},e.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},e.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},e.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},e.prototype.$updateHighlightActiveLine=function(){var e,t=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(e=!1),!this.renderer.$maxLines||1!==this.session.getLength()||this.renderer.$minLines>1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new f(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},e.prototype.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),r=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",r)}var i=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(i),this._signal("changeSelection")},e.prototype.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column,r=t.end.column,i=e.getLine(t.start.row),o=i.substring(n,r);if(!(o.length>5e3)&&/[\w\d]/.test(o)){var s=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:o}),a=i.substring(n-1,r+1);if(s.test(a))return s}}},e.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},e.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},e.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},e.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},e.prototype.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},e.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},e.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},e.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},e.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},e.prototype.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),n=!1;if(!e&&this.$copyWithEmptySelection){n=!0;for(var r=this.selection.getAllRanges(),i=0;i<r.length;i++){var o=r[i];i&&r[i-1].start.row==o.start.row||(e+=this.session.getLine(o.start.row)+t)}}var s={text:e};return this._signal("copy",s),k.lineMode=!!n&&s.text,s.text},e.prototype.onCopy=function(){this.commands.exec("copy",this)},e.prototype.onCut=function(){this.commands.exec("cut",this)},e.prototype.onPaste=function(e,t){var n={text:e,event:t};this.commands.exec("paste",this,n)},e.prototype.$handlePaste=function(e){"string"==typeof e&&(e={text:e}),this._signal("paste",e);var t=e.text,n=t===k.lineMode,r=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)n?r.insert({row:this.selection.lead.row,column:0},t):this.insert(t);else if(n)this.selection.rangeList.ranges.forEach((function(e){r.insert({row:e.start.row,column:0},t)}));else{var i=t.split(/\r\n|\r|\n/),o=this.selection.rangeList.ranges,s=!(2!=i.length||i[0]&&i[1]);if(i.length!=o.length||s)return this.commands.exec("insertstring",this,t);for(var a=o.length;a--;){var l=o[a];l.isEmpty()||r.remove(l),r.insert(l.start,i[a])}}},e.prototype.execCommand=function(e,t){return this.commands.exec(e,this,t)},e.prototype.insert=function(e,t){var n=this.session,r=n.getMode(),i=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var o=r.transformAction(n.getState(i.row),"insertion",this,n,e);o&&(e!==o.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),e=o.text)}if("\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty())this.session.getOverwrite()&&-1==e.indexOf("\n")&&((s=f.fromPoints(i,i)).end.column+=e.length,this.session.remove(s));else{var s=this.getSelectionRange();i=this.session.remove(s),this.clearSelection()}if("\n"==e||"\r\n"==e){var a=n.getLine(i.row);if(i.column>a.search(/\S|$/)){var l=a.substr(i.column).search(/\S|$/);n.doc.removeInLine(i.row,i.column,i.column+l)}}this.clearSelection();var c=i.column,d=n.getState(i.row),u=(a=n.getLine(i.row),r.checkOutdent(d,a,e));if(n.insert(i,e),o&&o.selection&&(2==o.selection.length?this.selection.setSelectionRange(new f(i.row,c+o.selection[0],i.row,c+o.selection[1])):this.selection.setSelectionRange(new f(i.row+o.selection[0],o.selection[1],i.row+o.selection[2],o.selection[3]))),this.$enableAutoIndent){if(n.getDocument().isNewLine(e)){var h=r.getNextLineIndent(d,a.slice(0,i.column),n.getTabString());n.insert({row:i.row+1,column:0},h)}u&&r.autoOutdent(d,n,i.row)}},e.prototype.autoIndent=function(){for(var e=this.session,t=e.getMode(),n=this.selection.isEmpty()?[new f(0,0,e.doc.getLength()-1,0)]:this.selection.getAllRanges(),r="",i="",o="",s=e.getTabString(),a=0;a<n.length;a++)for(var l=n[a].start.row,c=n[a].end.row,d=l;d<=c;d++){d>0&&(r=e.getState(d-1),i=e.getLine(d-1),o=t.getNextLineIndent(r,i,s));var u=e.getLine(d),h=t.$getIndent(u);if(o!==h){if(h.length>0){var p=new f(d,0,d,h.length);e.remove(p)}o.length>0&&e.insert({row:d,column:0},o)}t.autoOutdent(r,e,d)}},e.prototype.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}});var n=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(n):n(),this.endOperation()},e.prototype.applyComposition=function(e,t){var n;(t.extendLeft||t.extendRight)&&((n=this.selection.getRange()).start.column-=t.extendLeft,n.end.column+=t.extendRight,n.start.column<0&&(n.start.row--,n.start.column+=this.session.getLine(n.start.row).length+1),this.selection.setRange(n),e||n.isEmpty()||this.remove()),!e&&this.selection.isEmpty()||this.insert(e,!0),(t.restoreStart||t.restoreEnd)&&((n=this.selection.getRange()).start.column-=t.restoreStart,n.end.column-=t.restoreEnd,this.selection.setRange(n))},e.prototype.onCommandKey=function(e,t,n){return this.keyBinding.onCommandKey(e,t,n)},e.prototype.setOverwrite=function(e){this.session.setOverwrite(e)},e.prototype.getOverwrite=function(){return this.session.getOverwrite()},e.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},e.prototype.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},e.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},e.prototype.setDragDelay=function(e){this.setOption("dragDelay",e)},e.prototype.getDragDelay=function(){return this.getOption("dragDelay")},e.prototype.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},e.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},e.prototype.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},e.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},e.prototype.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},e.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},e.prototype.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},e.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},e.prototype.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},e.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},e.prototype.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},e.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},e.prototype.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},e.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},e.prototype.setHighlightIndentGuides=function(e){this.renderer.setHighlightIndentGuides(e)},e.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},e.prototype.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},e.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},e.prototype.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},e.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},e.prototype.setReadOnly=function(e){this.setOption("readOnly",e)},e.prototype.getReadOnly=function(){return this.getOption("readOnly")},e.prototype.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},e.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},e.prototype.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},e.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},e.prototype.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},e.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},e.prototype.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},e.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},e.prototype.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,r=n.getState(t.start.row),i=n.getMode().transformAction(r,"deletion",this,n,t);if(0===t.end.column){var o=n.getTextRange(t);if("\n"==o[o.length-1]){var s=n.getLine(t.end.row);/^\s+$/.test(s)&&(t.end.column=s.length)}}i&&(t=i)}this.session.remove(t),this.clearSelection()},e.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},e.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},e.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},e.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},e.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},e.prototype.setGhostText=function(e,t){this.renderer.setGhostText(e,t)},e.prototype.removeGhostText=function(){this.renderer.removeGhostText()},e.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,r,i=this.session.getLine(e.row);t<i.length?(n=i.charAt(t)+i.charAt(t-1),r=new f(e.row,t-1,e.row,t+1)):(n=i.charAt(t-1)+i.charAt(t-2),r=new f(e.row,t-2,e.row,t)),this.session.replace(r,n),this.session.selection.moveToPosition(r.end)}}},e.prototype.toLowerCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toLowerCase()),this.selection.setSelectionRange(e)},e.prototype.toUpperCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toUpperCase()),this.selection.setSelectionRange(e)},e.prototype.indent=function(){var e=this.session,t=this.getSelectionRange();if(!(t.start.row<t.end.row)){if(t.start.column<t.end.column){var n=e.getTextRange(t);if(!/^\s+$/.test(n))return d=this.$getSelectedRows(),void e.indentRows(d.first,d.last,"\t")}var r=e.getLine(t.start.row),i=t.start,o=e.getTabSize(),a=e.documentToScreenColumn(i.row,i.column);if(this.session.getUseSoftTabs())var l=o-a%o,c=s.stringRepeat(" ",l);else{for(l=a%o;" "==r[t.start.column-1]&&l;)t.start.column--,l--;this.selection.setSelectionRange(t),c="\t"}return this.insert(c)}var d=this.$getSelectedRows();e.indentRows(d.first,d.last,"\t")},e.prototype.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},e.prototype.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},e.prototype.sortLines=function(){for(var e=this.$getSelectedRows(),t=this.session,n=[],r=e.first;r<=e.last;r++)n.push(t.getLine(r));n.sort((function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0}));var i=new f(0,0,0,0);for(r=e.first;r<=e.last;r++){var o=t.getLine(r);i.start.row=r,i.end.row=r,i.end.column=o.length,t.replace(i,n[r-e.first])}},e.prototype.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},e.prototype.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},e.prototype.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;for(var r=this.session.getLine(e);n.lastIndex<t;){var i=n.exec(r);if(i.index<=t&&i.index+i[0].length>=t)return{value:i[0],start:i.index,end:i.index+i[0].length}}return null},e.prototype.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,r=new f(t,n-1,t,n),i=this.session.getTextRange(r);if(!isNaN(parseFloat(i))&&isFinite(i)){var o=this.getNumberAt(t,n);if(o){var s=o.value.indexOf(".")>=0?o.start+o.value.indexOf(".")+1:o.end,a=o.start+o.value.length-s,l=parseFloat(o.value);l*=Math.pow(10,a),s!==o.end&&n<s?e*=Math.pow(10,o.end-n-1):e*=Math.pow(10,o.end-n),l+=e;var c=(l/=Math.pow(10,a)).toFixed(a),d=new f(t,o.start,t,o.end);this.session.replace(d,c),this.moveCursorTo(t,Math.max(o.start+1,n+c.length-o.value.length))}}else this.toggleWord()},e.prototype.toggleWord=function(){var e=this.selection.getCursor().row,t=this.selection.getCursor().column;this.selection.selectWord();var n=this.getSelectedText(),r=this.selection.getWordRange().start.column,i=n.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),o=t-r-1;o<0&&(o=0);var a=0,l=0,c=this;n.match(/[A-Za-z0-9_]+/)&&i.forEach((function(t,i){l=a+t.length,o>=a&&o<=l&&(n=t,c.selection.clearSelection(),c.moveCursorTo(e,a+r),c.selection.selectTo(e,l+r)),a=l}));for(var d,u=this.$toggleWordPairs,h=0;h<u.length;h++)for(var p=u[h],f=0;f<=1;f++){var g=+!f,m=n.match(new RegExp("^\\s?_?("+s.escapeRegExp(p[f])+")\\s?$","i"));m&&n.match(new RegExp("([_]|^|\\s)("+s.escapeRegExp(m[1])+")($|\\s)","g"))&&(d=n.replace(new RegExp(s.escapeRegExp(p[f]),"i"),(function(e){var t=p[g];return e.toUpperCase()==e?t=t.toUpperCase():e.charAt(0).toUpperCase()==e.charAt(0)&&(t=t.substr(0,0)+p[g].charAt(0).toUpperCase()+t.substr(1)),t})),this.insert(d),d="")}},e.prototype.findLinkAt=function(e,t){var n,i,o=this.session.getLine(e).split(/((?:https?|ftp):\/\/[\S]+)/),s=t;s<0&&(s=0);var a,l=0,c=0;try{for(var d=r(o),u=d.next();!u.done;u=d.next()){var h=u.value;if(c=l+h.length,s>=l&&s<=c&&h.match(/((?:https?|ftp):\/\/[\S]+)/)){a=h.replace(/[\s:.,'";}\]]+$/,"");break}l=c}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}return a},e.prototype.openLink=function(){var e=this.selection.getCursor(),t=this.findLinkAt(e.row,e.column);return t&&window.open(t,"_blank"),null!=t},e.prototype.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},e.prototype.duplicateSelection=function(){var e=this.selection,t=this.session,n=e.getRange(),r=e.isBackwards();if(n.isEmpty()){var i=n.start.row;t.duplicateLines(i,i)}else{var o=r?n.start:n.end,s=t.insert(o,t.getTextRange(n));n.start=o,n.end=s,e.setSelectionRange(n,r)}},e.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},e.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},e.prototype.moveText=function(e,t,n){return this.session.moveText(e,t,n)},e.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},e.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},e.prototype.$moveLines=function(e,t){var n,r,i=this.selection;if(!i.inMultiSelectMode||this.inVirtualSelectionMode){var o=i.toOrientedRange();n=this.$getSelectedRows(o),r=this.session.$moveLines(n.first,n.last,t?0:e),t&&-1==e&&(r=0),o.moveBy(r,0),i.fromOrientedRange(o)}else{var s=i.rangeList.ranges;i.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var a=0,l=0,c=s.length,d=0;d<c;d++){var u=d;s[d].moveBy(a,0);for(var h=(n=this.$getSelectedRows(s[d])).first,p=n.last;++d<c;){l&&s[d].moveBy(l,0);var f=this.$getSelectedRows(s[d]);if(t&&f.first!=p)break;if(!t&&f.first>p+1)break;p=f.last}for(d--,a=this.session.$moveLines(h,p,t?0:e),t&&-1==e&&(u=d+1);u<=d;)s[u].moveBy(a,0),u++;t||(a=0),l+=a}i.fromOrientedRange(i.ranges[0]),i.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},e.prototype.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},e.prototype.onCompositionStart=function(e){this.renderer.showComposition(e)},e.prototype.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},e.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},e.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},e.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},e.prototype.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},e.prototype.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},e.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},e.prototype.$moveByPage=function(e,t){var n=this.renderer,r=this.renderer.layerConfig,i=e*Math.floor(r.height/r.lineHeight);!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(i,0)})):!1===t&&(this.selection.moveCursorBy(i,0),this.selection.clearSelection());var o=n.scrollTop;n.scrollBy(0,i*r.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(o)},e.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},e.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},e.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},e.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},e.prototype.scrollPageDown=function(){this.$moveByPage(1)},e.prototype.scrollPageUp=function(){this.$moveByPage(-1)},e.prototype.scrollToRow=function(e){this.renderer.scrollToRow(e)},e.prototype.scrollToLine=function(e,t,n,r){this.renderer.scrollToLine(e,t,n,r)},e.prototype.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},e.prototype.getCursorPosition=function(){return this.selection.getCursor()},e.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},e.prototype.getSelectionRange=function(){return this.selection.getRange()},e.prototype.selectAll=function(){this.selection.selectAll()},e.prototype.clearSelection=function(){this.selection.clearSelection()},e.prototype.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},e.prototype.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},e.prototype.jumpToMatching=function(e,t){var n=this.getCursorPosition(),r=new y(this.session,n.row,n.column),i=r.getCurrentToken(),o=0;i&&-1!==i.type.indexOf("tag-name")&&(i=r.stepBackward());var s=i||r.stepForward();if(s){var a,l,c=!1,d={},u=n.column-s.start,h={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(s.value.match(/[{}()\[\]]/g)){for(;u<s.value.length&&!c;u++)if(h[s.value[u]])switch(l=h[s.value[u]]+"."+s.type.replace("rparen","lparen"),isNaN(d[l])&&(d[l]=0),s.value[u]){case"(":case"[":case"{":d[l]++;break;case")":case"]":case"}":d[l]--,-1===d[l]&&(a="bracket",c=!0)}}else-1!==s.type.indexOf("tag-name")&&(isNaN(d[s.value])&&(d[s.value]=0),"<"===i.value&&o>1?d[s.value]++:"</"===i.value&&d[s.value]--,-1===d[s.value]&&(a="tag",c=!0));c||(i=s,o++,s=r.stepForward(),u=0)}while(s&&!c);if(a){var p,g;if("bracket"===a)(p=this.session.getBracketRange(n))||(g=(p=new f(r.getCurrentTokenRow(),r.getCurrentTokenColumn()+u-1,r.getCurrentTokenRow(),r.getCurrentTokenColumn()+u-1)).start,(t||g.row===n.row&&Math.abs(g.column-n.column)<2)&&(p=this.session.getBracketRange(g)));else if("tag"===a){if(!s||-1===s.type.indexOf("tag-name"))return;if(0===(p=new f(r.getCurrentTokenRow(),r.getCurrentTokenColumn()-2,r.getCurrentTokenRow(),r.getCurrentTokenColumn()-2)).compare(n.row,n.column)){var m=this.session.getMatchingTags(n);m&&(m.openTag.contains(n.row,n.column)?g=(p=m.closeTag).start:(p=m.openTag,g=m.closeTag.start.row===n.row&&m.closeTag.start.column===n.column?p.end:p.start))}g=g||p.start}(g=p&&p.cursor||g)&&(e?p&&t?this.selection.setRange(p):p&&p.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(g.row,g.column):this.selection.moveTo(g.row,g.column))}}},e.prototype.gotoLine=function(e,t,n){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,n)},e.prototype.navigateTo=function(e,t){this.selection.moveTo(e,t)},e.prototype.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},e.prototype.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},e.prototype.navigateLeft=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorLeft();else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},e.prototype.navigateRight=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorRight();else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},e.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},e.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},e.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},e.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},e.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},e.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},e.prototype.replace=function(e,t){t&&this.$search.set(t);var n=this.$search.find(this.session),r=0;return n?(this.$tryReplace(n,e)&&(r=1),this.selection.setSelectionRange(n),this.renderer.scrollSelectionIntoView(n.start,n.end),r):r},e.prototype.replaceAll=function(e,t){t&&this.$search.set(t);var n=this.$search.findAll(this.session),r=0;if(!n.length)return r;var i=this.getSelectionRange();this.selection.moveTo(0,0);for(var o=n.length-1;o>=0;--o)this.$tryReplace(n[o],e)&&r++;return this.selection.setSelectionRange(i),r},e.prototype.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return null!==(t=this.$search.replace(n,t))?(e.end=this.session.replace(e,t),e):null},e.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},e.prototype.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&i.mixin(t,e);var r=this.selection.getRange();null==t.needle&&((e=this.session.getTextRange(r)||this.$search.$options.needle)||(r=this.session.getWordRange(r.start.row,r.start.column),e=this.session.getTextRange(r)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:r});var o=this.$search.find(this.session);return t.preventScroll?o:o?(this.revealRange(o,n),o):(t.backwards?r.start=r.end:r.end=r.start,void this.selection.setRange(r))},e.prototype.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},e.prototype.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},e.prototype.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},e.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},e.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},e.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach((function(e){e.destroy()})),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},e.prototype.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,r=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var i=this.$scrollAnchor;i.style.cssText="position:absolute",this.container.insertBefore(i,this.container.firstChild);var o=this.on("changeSelection",(function(){r=!0})),s=this.renderer.on("beforeRender",(function(){r&&(t=n.renderer.container.getBoundingClientRect())})),a=this.renderer.on("afterRender",(function(){if(r&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,o=e.$cursorLayer.$pixelPos,s=e.layerConfig,a=o.top-s.offset;null!=(r=o.top>=0&&a+t.top<0||!(o.top<s.height&&o.top+t.top+s.lineHeight>window.innerHeight)&&null)&&(i.style.top=a+"px",i.style.left=o.left+"px",i.style.height=s.lineHeight+"px",i.scrollIntoView(r)),r=t=null}}));this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",o),this.renderer.off("afterRender",a),this.renderer.off("beforeRender",s))}}},e.prototype.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,o.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},e.prototype.prompt=function(e,t,n){var r=this;v.loadModule("ace/ext/prompt",(function(i){i.prompt(r,e,t,n)}))},e}();S.$uid=0,S.prototype.curOp=null,S.prototype.prevOp={},S.prototype.$mergeableCommands=["backspace","del","insertstring"],S.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],i.implement(S.prototype,g),v.defineOptions(S.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){var t=this;this.textInput.setReadOnly(e),this.$resetCursorStyle(),this.$readOnlyCallback||(this.$readOnlyCallback=function(e){var n=!1;if(e&&"keydown"==e.type){if(!(n=e&&e.key&&1==e.key.length&&!e.ctrlKey&&!e.metaKey))return}else e&&"exec"!==e.type&&(n=!0);if(n){t.hoverTooltip||(t.hoverTooltip=new T);var r=o.createElement("div");r.textContent=x("editor.tooltip.disable-editing","Editing is disabled"),t.hoverTooltip.isOpen||t.hoverTooltip.showForRange(t,t.getSelectionRange(),r)}else t.hoverTooltip&&t.hoverTooltip.isOpen&&t.hoverTooltip.hide()});var n=this.textInput.getElement();e?(C.addListener(n,"keydown",this.$readOnlyCallback,this),this.commands.on("exec",this.$readOnlyCallback),this.commands.on("commandUnavailable",this.$readOnlyCallback)):(C.removeListener(n,"keydown",this.$readOnlyCallback),this.commands.off("exec",this.$readOnlyCallback),this.commands.off("commandUnavailable",this.$readOnlyCallback),this.hoverTooltip&&(this.hoverTooltip.destroy(),this.hoverTooltip=null))},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?E.attach(this):E.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?E.attach(this):E.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(e&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),o.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(e||this.renderer.placeholderNode)!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),o.addCssClass(this.container,"ace_hasPlaceholder");var t=o.createElement("div");t.className="ace_placeholder",t.textContent=this.$placeholder||"",this.renderer.placeholderNode=t,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(e){var t,n={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(e){e.blur(),e.renderer.scroller.focus()},readOnly:!0},r=function(e){if(e.target==this.renderer.scroller&&e.keyCode===_.enter){e.preventDefault();var t=this.getCursorPosition().row;this.isRowVisible(t)||this.scrollToLine(t,!0,!0),this.focus()}};e?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(a.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",x("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",x("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",r.bind(this)),this.commands.addCommand(n),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",x("editor.gutter.aria-roledescription","editor gutter")),this.renderer.$gutter.setAttribute("aria-label",x("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),t||(t=new w(this)),t.addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",r.bind(this)),this.commands.removeCommand(n),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),t&&t.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(e){this.$textInputAriaLabel=e},initialValue:""},enableMobileMenu:{set:function(e){this.$enableMobileMenu=e},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var E={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,n){return Math.max(t.toString().length,(n.lastRow+1).toString().length,2)*n.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}};t.Editor=S})),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=function(){function e(e,t){this.element=e,this.canvasHeight=t||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return e.prototype.moveContainer=function(e){r.translate(this.element,0,-e.firstRowScreen*e.lineHeight%this.canvasHeight-e.offset*this.$offsetCoefficient)},e.prototype.pageChanged=function(e,t){return Math.floor(e.firstRowScreen*e.lineHeight/this.canvasHeight)!==Math.floor(t.firstRowScreen*t.lineHeight/this.canvasHeight)},e.prototype.computeLineTop=function(e,t,n){var r=t.firstRowScreen*t.lineHeight,i=Math.floor(r/this.canvasHeight);return n.documentToScreenRow(e,0)*t.lineHeight-i*this.canvasHeight},e.prototype.computeLineHeight=function(e,t,n){return t.lineHeight*n.getRowLineCount(e)},e.prototype.getLength=function(){return this.cells.length},e.prototype.get=function(e){return this.cells[e]},e.prototype.shift=function(){this.$cacheCell(this.cells.shift())},e.prototype.pop=function(){this.$cacheCell(this.cells.pop())},e.prototype.push=function(e){if(Array.isArray(e)){this.cells.push.apply(this.cells,e);for(var t=r.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.appendChild(t)}else this.cells.push(e),this.element.appendChild(e.element)},e.prototype.unshift=function(e){if(Array.isArray(e)){this.cells.unshift.apply(this.cells,e);for(var t=r.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.firstChild?this.element.insertBefore(t,this.element.firstChild):this.element.appendChild(t)}else this.cells.unshift(e),this.element.insertAdjacentElement("afterbegin",e.element)},e.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},e.prototype.$cacheCell=function(e){e&&(e.element.remove(),this.cellCache.push(e))},e.prototype.createCell=function(e,t,n,i){var o=this.cellCache.pop();if(!o){var s=r.createElement("div");i&&i(s),this.element.appendChild(s),o={element:s,text:"",row:e}}return o.row=e,o},e}();t.Lines=i})),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/oop"),o=e("../lib/lang"),s=e("../lib/event_emitter").EventEmitter,a=e("./lines").Lines,l=e("../config").nls,c=function(){function e(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new a(this.element),this.$lines.$offsetCoefficient=1}return e.prototype.setSession=function(e){this.session&&this.session.off("change",this.$updateAnnotations),this.session=e,e&&e.on("change",this.$updateAnnotations)},e.prototype.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},e.prototype.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},e.prototype.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var n=e[t],r=n.row,i=this.$annotations[r];i||(i=this.$annotations[r]={text:[],type:[],displayText:[]});var s=n.text,a=n.text,l=n.type;s=s?o.escapeHTML(s):n.html||"",a=a||n.html||"",-1===i.text.indexOf(s)&&(i.text.push(s),i.type.push(l),i.displayText.push(a));var c=n.className;c?i.className=c:"error"===l?i.className=" ace_error":"security"!==l||/\bace_error\b/.test(i.className)?"warning"!==l||/\bace_(error|security)\b/.test(i.className)?"info"!==l||i.className?"hint"!==l||i.className||(i.className=" ace_hint"):i.className=" ace_info":i.className=" ace_warning":i.className=" ace_security"}},e.prototype.$updateAnnotations=function(e){if(this.$annotations.length){var t=e.start.row,n=e.end.row-t;if(0===n);else if("remove"==e.action)this.$annotations.splice(t,n+1,null);else{var r=new Array(n+1);r.unshift(t,1),this.$annotations.splice.apply(this.$annotations,r)}}},e.prototype.update=function(e){this.config=e;var t=this.session,n=e.firstRow,r=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1);this.oldLastRow=r,this.config=e,this.$lines.moveContainer(e),this.$updateCursorRow();for(var i=t.getNextFoldLine(n),o=i?i.start.row:1/0,s=null,a=-1,l=n;;){if(l>o&&(l=i.end.row+1,o=(i=t.getNextFoldLine(l,i))?i.start.row:1/0),l>r){for(;this.$lines.getLength()>a+1;)this.$lines.pop();break}(s=this.$lines.get(++a))?s.row=l:(s=this.$lines.createCell(l,e,this.session,d),this.$lines.push(s)),this.$renderCell(s,e,i,l),l++}this._signal("afterRender"),this.$updateGutterWidth(e)},e.prototype.$updateGutterWidth=function(e){var t=this.session,n=t.gutterRenderer||this.$renderer,r=t.$firstLineNumber,i=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||t.$useWrapMode)&&(i=t.getLength()+r-1);var o=n?n.getWidth(t,i,e):i.toString().length*e.characterWidth,s=this.$padding||this.$computePadding();(o+=s.left+s.right)===this.gutterWidth||isNaN(o)||(this.gutterWidth=o,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",o))},e.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var e=this.session.selection.getCursor();this.$cursorRow!==e.row&&(this.$cursorRow=e.row)}},e.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var n=0;n<t.length;n++){var r=t[n];if(r.row>=this.$cursorRow){if(r.row>this.$cursorRow){var i=this.session.getFoldLine(this.$cursorRow);if(!(n>0&&i&&i.start.row==t[n-1].row))break;r=t[n-1]}r.element.className="ace_gutter-active-line "+r.element.className,this.$cursorCell=r;break}}}}},e.prototype.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),r=this.oldLastRow;if(this.oldLastRow=n,!t||r<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var i=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);i>0;i--)this.$lines.shift();if(r>n)for(i=this.session.getFoldedRowCount(n+1,r);i>0;i--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLines(e,e.firstRow,t.firstRow-1)),n>r&&this.$lines.push(this.$renderLines(e,r+1,n)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},e.prototype.$renderLines=function(e,t,n){for(var r=[],i=t,o=this.session.getNextFoldLine(i),s=o?o.start.row:1/0;i>s&&(i=o.end.row+1,s=(o=this.session.getNextFoldLine(i,o))?o.start.row:1/0),!(i>n);){var a=this.$lines.createCell(i,e,this.session,d);this.$renderCell(a,e,o,i),r.push(a),i++}return r},e.prototype.$renderCell=function(e,t,n,i){var o=e.element,s=this.session,a=o.childNodes[0],c=o.childNodes[1],d=o.childNodes[2],u=d.firstChild,h=s.$firstLineNumber,p=s.$breakpoints,f=s.$decorations,g=s.gutterRenderer||this.$renderer,m=this.$showFoldWidgets&&s.foldWidgets,b=n?n.start.row:Number.MAX_VALUE,v=t.lineHeight+"px",y=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",w=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",x=(g?g.getText(s,i):i+h).toString();if(this.$highlightGutterLine&&(i==this.$cursorRow||n&&i<this.$cursorRow&&i>=b&&this.$cursorRow<=n.end.row)&&(y+="ace_gutter-active-line ",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e)),p[i]&&(y+=p[i]),f[i]&&(y+=f[i]),this.$annotations[i]&&i!==b&&(y+=this.$annotations[i].className),m){var k=m[i];null==k&&(k=m[i]=s.getFoldWidget(i))}if(k){var _="ace_fold-widget ace_"+k,C="start"==k&&i==b&&i<n.end.row;if(C){_+=" ace_closed";for(var T="",S=!1,E=i+1;E<=n.end.row;E++)if(this.$annotations[E]){if(" ace_error"===this.$annotations[E].className){S=!0,T=" ace_error_fold";break}" ace_security"===this.$annotations[E].className?(S=!0,T=" ace_security_fold"):" ace_warning"===this.$annotations[E].className&&" ace_security_fold"!==T&&(S=!0,T=" ace_warning_fold")}y+=T}else _+=" ace_open";c.className!=_&&(c.className=_),r.setStyle(c.style,"height",v),r.setStyle(c.style,"display","inline-block"),c.setAttribute("role","button"),c.setAttribute("tabindex","-1");var $=s.getFoldWidgetRange(i);$?c.setAttribute("aria-label",l("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[$.start.row+1,$.end.row+1])):n?c.setAttribute("aria-label",l("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[n.start.row+1,n.end.row+1])):c.setAttribute("aria-label",l("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[i+1])),C?(c.setAttribute("aria-expanded","false"),c.setAttribute("title",l("gutter.code-folding.closed.title","Unfold code"))):(c.setAttribute("aria-expanded","true"),c.setAttribute("title",l("gutter.code-folding.open.title","Fold code")))}else c&&(r.setStyle(c.style,"display","none"),c.setAttribute("tabindex","0"),c.removeAttribute("role"),c.removeAttribute("aria-label"));if(S&&this.$showFoldedAnnotations){switch(d.className="ace_gutter_annotation",u.className=w,u.className+=T,r.setStyle(u.style,"height",v),r.setStyle(d.style,"display","block"),r.setStyle(d.style,"height",v),T){case" ace_error_fold":M=l("gutter.annotation.aria-label.error","Error, read annotations row $0",[x]);break;case" ace_security_fold":M=l("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[x]);break;case" ace_warning_fold":M=l("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[x])}d.setAttribute("aria-label",M),d.setAttribute("tabindex","-1"),d.setAttribute("role","button")}else if(this.$annotations[i]){var M;switch(d.className="ace_gutter_annotation",u.className=w,this.$useSvgGutterIcons?u.className+=this.$annotations[i].className:o.classList.add(this.$annotations[i].className.replace(" ","")),r.setStyle(u.style,"height",v),r.setStyle(d.style,"display","block"),r.setStyle(d.style,"height",v),this.$annotations[i].className){case" ace_error":M=l("gutter.annotation.aria-label.error","Error, read annotations row $0",[x]);break;case" ace_security":M=l("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[x]);break;case" ace_warning":M=l("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[x]);break;case" ace_info":M=l("gutter.annotation.aria-label.info","Info, read annotations row $0",[x]);break;case" ace_hint":M=l("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[x])}d.setAttribute("aria-label",M),d.setAttribute("tabindex","-1"),d.setAttribute("role","button")}else r.setStyle(d.style,"display","none"),d.removeAttribute("aria-label"),d.removeAttribute("role"),d.setAttribute("tabindex","0");return x!==a.data&&(a.data=x),o.className!=y&&(o.className=y),r.setStyle(e.element.style,"height",this.$lines.computeLineHeight(i,t,s)+"px"),r.setStyle(e.element.style,"top",this.$lines.computeLineTop(i,t,s)+"px"),e.text=x,"none"===d.style.display&&"none"===c.style.display?e.element.setAttribute("aria-hidden",!0):e.element.setAttribute("aria-hidden",!1),e},e.prototype.setHighlightGutterLine=function(e){this.$highlightGutterLine=e},e.prototype.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return 0},getText:function(){return""}}},e.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},e.prototype.setShowFoldWidgets=function(e){e?r.addCssClass(this.element,"ace_folding-enabled"):r.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},e.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},e.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=r.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(e.borderLeftWidth)||0)+(parseInt(e.paddingLeft)||0)+1,this.$padding.right=(parseInt(e.borderRightWidth)||0)+(parseInt(e.paddingRight)||0),this.$padding},e.prototype.getRegion=function(e){var t=this.$padding||this.$computePadding(),n=this.element.getBoundingClientRect();return e.x<t.left+n.left?"markers":this.$showFoldWidgets&&e.x>n.right-t.right?"foldWidgets":void 0},e}();function d(e){var t=document.createTextNode("");e.appendChild(t);var n=r.createElement("span");e.appendChild(n);var i=r.createElement("span");e.appendChild(i);var o=r.createElement("span");return i.appendChild(o),e}c.prototype.$fixedWidth=!1,c.prototype.$highlightGutterLine=!0,c.prototype.$renderer="",c.prototype.$showLineNumbers=!0,c.prototype.$showFoldWidgets=!0,i.implement(c.prototype,s),t.Gutter=c})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../range").Range,i=e("../lib/dom"),o=function(){function e(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)}return e.prototype.setPadding=function(e){this.$padding=e},e.prototype.setSession=function(e){this.session=e},e.prototype.setMarkers=function(e){this.markers=e},e.prototype.elt=function(e,t){var n=-1!=this.i&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement("div"),this.element.appendChild(n),this.i=-1),n.style.cssText=t,n.className=e},e.prototype.update=function(e){if(e){var t;for(var n in this.config=e,this.i=0,this.markers){var r=this.markers[n];if(r.range){var i=r.range.clipRows(e.firstRow,e.lastRow);if(!i.isEmpty())if(i=i.toScreenRange(this.session),r.renderer){var o=this.$getTop(i.start.row,e),s=this.$padding+i.start.column*e.characterWidth;r.renderer(t,i,s,o,e)}else"fullLine"==r.type?this.drawFullLineMarker(t,i,r.clazz,e):"screenLine"==r.type?this.drawScreenLineMarker(t,i,r.clazz,e):i.isMultiLine()?"text"==r.type?this.drawTextMarker(t,i,r.clazz,e):this.drawMultiLineMarker(t,i,r.clazz,e):this.drawSingleLineMarker(t,i,r.clazz+" ace_start ace_br15",e)}else r.update(t,this,this.session,e)}if(-1!=this.i)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},e.prototype.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},e.prototype.drawTextMarker=function(e,t,n,i,o){for(var s=this.session,a=t.start.row,l=t.end.row,c=a,d=0,u=0,h=s.getScreenLastRowColumn(c),p=new r(c,t.start.column,c,u);c<=l;c++)p.start.row=p.end.row=c,p.start.column=c==a?t.start.column:s.getRowWrapIndent(c),p.end.column=h,d=u,u=h,h=c+1<l?s.getScreenLastRowColumn(c+1):c==l?0:t.end.column,this.drawSingleLineMarker(e,p,n+(c==a?" ace_start":"")+" ace_br"+((c==a||c==a+1&&t.start.column?1:0)|(d<u?2:0)|(u>h?4:0)|(c==l?8:0)),i,c==l?0:1,o)},e.prototype.drawMultiLineMarker=function(e,t,n,r,i){var o=this.$padding,s=r.lineHeight,a=this.$getTop(t.start.row,r),l=o+t.start.column*r.characterWidth;if(i=i||"",this.session.$bidiHandler.isBidiRow(t.start.row)?((c=t.clone()).end.row=c.start.row,c.end.column=this.session.getLine(c.start.row).length,this.drawBidiSingleLineMarker(e,c,n+" ace_br1 ace_start",r,null,i)):this.elt(n+" ace_br1 ace_start","height:"+s+"px;right:"+o+"px;top:"+a+"px;left:"+l+"px;"+(i||"")),this.session.$bidiHandler.isBidiRow(t.end.row)){var c;(c=t.clone()).start.row=c.end.row,c.start.column=0,this.drawBidiSingleLineMarker(e,c,n+" ace_br12",r,null,i)}else{a=this.$getTop(t.end.row,r);var d=t.end.column*r.characterWidth;this.elt(n+" ace_br12","height:"+s+"px;width:"+d+"px;top:"+a+"px;left:"+o+"px;"+(i||""))}if(!((s=(t.end.row-t.start.row-1)*r.lineHeight)<=0)){a=this.$getTop(t.start.row+1,r);var u=(t.start.column?1:0)|(t.end.column?0:8);this.elt(n+(u?" ace_br"+u:""),"height:"+s+"px;right:"+o+"px;top:"+a+"px;left:"+o+"px;"+(i||""))}},e.prototype.drawSingleLineMarker=function(e,t,n,r,i,o){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,n,r,i,o);var s=r.lineHeight,a=(t.end.column+(i||0)-t.start.column)*r.characterWidth,l=this.$getTop(t.start.row,r),c=this.$padding+t.start.column*r.characterWidth;this.elt(n,"height:"+s+"px;width:"+a+"px;top:"+l+"px;left:"+c+"px;"+(o||""))},e.prototype.drawBidiSingleLineMarker=function(e,t,n,r,i,o){var s=r.lineHeight,a=this.$getTop(t.start.row,r),l=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach((function(e){this.elt(n,"height:"+s+"px;width:"+(e.width+(i||0))+"px;top:"+a+"px;left:"+(l+e.left)+"px;"+(o||""))}),this)},e.prototype.drawFullLineMarker=function(e,t,n,r,i){var o=this.$getTop(t.start.row,r),s=r.lineHeight;t.start.row!=t.end.row&&(s+=this.$getTop(t.end.row,r)-o),this.elt(n,"height:"+s+"px;top:"+o+"px;left:0;right:0;"+(i||""))},e.prototype.drawScreenLineMarker=function(e,t,n,r,i){var o=this.$getTop(t.start.row,r),s=r.lineHeight;this.elt(n,"height:"+s+"px;top:"+o+"px;left:0;right:0;"+(i||""))},e}();o.prototype.$padding=0,t.Marker=o})),ace.define("ace/layer/text_util",["require","exports","module"],(function(e,t,n){var r=new Set(["text","rparen","lparen"]);t.isTextToken=function(e){return r.has(e)}})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/dom"),o=e("../lib/lang"),s=e("./lines").Lines,a=e("../lib/event_emitter").EventEmitter,l=e("../config").nls,c=e("./text_util").isTextToken,d=function(){function e(e){this.dom=i,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)}return e.prototype.$updateEolChar=function(){var e=this.session.doc,t="\n"==e.getNewLineCharacter()&&"windows"!=e.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=t)return this.EOL_CHAR=t,!0},e.prototype.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},e.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},e.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},e.prototype.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},e.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},e.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},e.prototype.setSession=function(e){this.session=e,e&&this.$computeTabString()},e.prototype.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,"string"==typeof e?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},e.prototype.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},e.prototype.setHighlightIndentGuides=function(e){return this.$highlightIndentGuides!==e&&(this.$highlightIndentGuides=e,e)},e.prototype.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;n<e+1;n++)this.showTabs?((r=this.dom.createElement("span")).className="ace_invisible ace_invisible_tab",r.textContent=o.stringRepeat(this.TAB_CHAR,n),t.push(r)):t.push(this.dom.createTextNode(o.stringRepeat(" ",n),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var r,i="ace_indent-guide",s=this.showSpaces?" ace_invisible ace_invisible_space":"",a=this.showSpaces?o.stringRepeat(this.SPACE_CHAR,this.tabSize):o.stringRepeat(" ",this.tabSize),l=this.showTabs?" ace_invisible ace_invisible_tab":"",c=this.showTabs?o.stringRepeat(this.TAB_CHAR,this.tabSize):a;(r=this.dom.createElement("span")).className=i+s,r.textContent=a,this.$tabStrings[" "]=r,(r=this.dom.createElement("span")).className=i+l,r.textContent=c,this.$tabStrings["\t"]=r}},e.prototype.updateLines=function(e,t,n){if(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)return this.update(e);this.config=e;for(var r=Math.max(t,e.firstRow),i=Math.min(n,e.lastRow),o=this.element.childNodes,s=0,a=e.firstRow;a<r;a++){if(l=this.session.getFoldLine(a)){if(l.containsRow(r)){r=l.start.row;break}a=l.end.row}s++}for(var l,c=!1,d=(a=r,(l=this.session.getNextFoldLine(a))?l.start.row:1/0);a>d&&(a=l.end.row+1,d=(l=this.session.getNextFoldLine(a,l))?l.start.row:1/0),!(a>i);){var u=o[s++];if(u){this.dom.removeChildren(u),this.$renderLine(u,a,a==d&&l),c&&(u.style.top=this.$lines.computeLineTop(a,e,this.session)+"px");var h=e.lineHeight*this.session.getRowLength(a)+"px";u.style.height!=h&&(c=!0,u.style.height=h)}a++}if(c)for(;s<this.$lines.cells.length;){var p=this.$lines.cells[s++];p.element.style.top=this.$lines.computeLineTop(p.row,e,this.session)+"px"}},e.prototype.scrollLines=function(e){var t=this.config;if(this.config=e,this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=e.lastRow,r=t?t.lastRow:-1;if(!t||r<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var i=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);i>0;i--)this.$lines.shift();if(t.lastRow>e.lastRow)for(i=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);i>0;i--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLinesFragment(e,e.firstRow,t.firstRow-1)),e.lastRow>t.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow)),this.$highlightIndentGuide()},e.prototype.$renderLinesFragment=function(e,t,n){for(var r=[],o=t,s=this.session.getNextFoldLine(o),a=s?s.start.row:1/0;o>a&&(o=s.end.row+1,a=(s=this.session.getNextFoldLine(o,s))?s.start.row:1/0),!(o>n);){var l=this.$lines.createCell(o,e,this.session),c=l.element;this.dom.removeChildren(c),i.setStyle(c.style,"height",this.$lines.computeLineHeight(o,e,this.session)+"px"),i.setStyle(c.style,"top",this.$lines.computeLineTop(o,e,this.session)+"px"),this.$renderLine(c,o,o==a&&s),this.$useLineGroups()?c.className="ace_line_group":c.className="ace_line",r.push(l),o++}return r},e.prototype.update=function(e){this.$lines.moveContainer(e),this.config=e;for(var t=e.firstRow,n=e.lastRow,r=this.$lines;r.getLength();)r.pop();r.push(this.$renderLinesFragment(e,t,n))},e.prototype.$renderToken=function(e,t,n,r){for(var i,s=this,a=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069\u2060\u2061\u2062\u2063\u2064\u206A\u206B\u206B\u206C\u206D\u206E\u206F]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,d=this.dom.createFragment(this.element),u=0;i=a.exec(r);){var h=i[1],p=i[2],f=i[3],g=i[4],m=i[5];if(s.showSpaces||!p){var b=u!=i.index?r.slice(u,i.index):"";if(u=i.index+i[0].length,b&&d.appendChild(this.dom.createTextNode(b,this.element)),h){var v=s.session.getScreenTabSize(t+i.index);d.appendChild(s.$tabStrings[v].cloneNode(!0)),t+=v-1}else p?s.showSpaces?((w=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",w.textContent=o.stringRepeat(s.SPACE_CHAR,p.length),d.appendChild(w)):d.appendChild(this.dom.createTextNode(p,this.element)):f?((w=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",w.textContent=o.stringRepeat(s.SPACE_CHAR,f.length),d.appendChild(w)):g?(t+=1,(w=this.dom.createElement("span")).style.width=2*s.config.characterWidth+"px",w.className=s.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",w.textContent=s.showSpaces?s.SPACE_CHAR:g,d.appendChild(w)):m&&(t+=1,(w=this.dom.createElement("span")).style.width=2*s.config.characterWidth+"px",w.className="ace_cjk",w.textContent=m,d.appendChild(w))}}if(d.appendChild(this.dom.createTextNode(u?r.slice(u):r,this.element)),c(n.type))e.appendChild(d);else{var y="ace_"+n.type.replace(/\./g," ace_"),w=this.dom.createElement("span");"fold"==n.type&&(w.style.width=n.value.length*this.config.characterWidth+"px",w.setAttribute("title",l("inline-fold.closed.title","Unfold code"))),w.className=y,w.appendChild(d),e.appendChild(w)}return t+r.length},e.prototype.renderIndentGuide=function(e,t,n){var r=t.search(this.$indentGuideRe);if(r<=0||r>=n)return t;if(" "==t[0]){for(var i=(r-=r%this.tabSize)/this.tabSize,o=0;o<i;o++)e.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),t.substr(r)}if("\t"==t[0]){for(o=0;o<r;o++)e.appendChild(this.$tabStrings["\t"].cloneNode(!0));return this.$highlightIndentGuide(),t.substr(r)}return this.$highlightIndentGuide(),t},e.prototype.$highlightIndentGuide=function(){if(this.$highlightIndentGuides&&this.displayIndentGuides){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var e=this.session.doc.$lines;if(e){var t=this.session.selection.getCursor(),n=/^\s*/.exec(this.session.doc.getLine(t.row))[0].length,r=Math.floor(n/this.tabSize);if(this.$highlightIndentGuideMarker={indentLevel:r,start:t.row},this.session.$bracketHighlight)for(var i=this.session.$bracketHighlight.ranges,o=0;o<i.length;o++)if(t.row!==i[o].start.row){this.$highlightIndentGuideMarker.end=i[o].start.row+1,t.row>i[o].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}if(!this.$highlightIndentGuideMarker.end&&""!==e[t.row]&&t.column===e[t.row].length)for(this.$highlightIndentGuideMarker.dir=1,o=t.row+1;o<e.length;o++){var s=e[o],a=/^\s*/.exec(s)[0].length;if(""!==s&&(this.$highlightIndentGuideMarker.end=o,a<=n))break}this.$renderHighlightIndentGuide()}}},e.prototype.$clearActiveIndentGuide=function(){for(var e=this.element.querySelectorAll(".ace_indent-guide-active"),t=0;t<e.length;t++)e[t].classList.remove("ace_indent-guide-active")},e.prototype.$setIndentGuideActive=function(e,t){if(""!==this.session.doc.getLine(e.row)){var n=e.element;if(e.element.classList&&e.element.classList.contains("ace_line_group")){if(!(e.element.childNodes.length>0))return;n=e.element.childNodes[0]}var r=n.childNodes;if(r){var i=r[t-1];i&&i.classList&&i.classList.contains("ace_indent-guide")&&i.classList.add("ace_indent-guide-active")}}},e.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var e=this.$lines.cells;this.$clearActiveIndentGuide();var t=this.$highlightIndentGuideMarker.indentLevel;if(0!==t)if(1===this.$highlightIndentGuideMarker.dir)for(var n=0;n<e.length;n++){var r=e[n];if(this.$highlightIndentGuideMarker.end&&r.row>=this.$highlightIndentGuideMarker.start+1){if(r.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(r,t)}}else for(n=e.length-1;n>=0;n--)if(r=e[n],this.$highlightIndentGuideMarker.end&&r.row<this.$highlightIndentGuideMarker.start){if(r.row<this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(r,t)}}},e.prototype.$createLineElement=function(e){var t=this.dom.createElement("div");return t.className="ace_line",t.style.height=this.config.lineHeight+"px",t},e.prototype.$renderWrappedLine=function(e,t,n){var r=0,i=0,s=n[0],a=0,l=this.$createLineElement();e.appendChild(l);for(var c=0;c<t.length;c++){var d=t[c],u=d.value;if(0==c&&this.displayIndentGuides){if(r=u.length,!(u=this.renderIndentGuide(l,u,s)))continue;r-=u.length}if(r+u.length<s)a=this.$renderToken(l,a,d,u),r+=u.length;else{for(;r+u.length>=s;)a=this.$renderToken(l,a,d,u.substring(0,s-r)),u=u.substring(s-r),r=s,l=this.$createLineElement(),e.appendChild(l),l.appendChild(this.dom.createTextNode(o.stringRepeat(" ",n.indent),this.element)),a=0,s=n[++i]||Number.MAX_VALUE;0!=u.length&&(r+=u.length,a=this.$renderToken(l,a,d,u))}}n[n.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(l,a,null,"",!0)},e.prototype.$renderSimpleLine=function(e,t){for(var n=0,r=0;r<t.length;r++){var i=t[r],o=i.value;if(0!=r||!this.displayIndentGuides||(o=this.renderIndentGuide(e,o))){if(n+o.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,n,i,o);n=this.$renderToken(e,n,i,o)}}},e.prototype.$renderOverflowMessage=function(e,t,n,r,i){n&&this.$renderToken(e,t,n,r.slice(0,this.MAX_LINE_LENGTH-t));var o=this.dom.createElement("span");o.className="ace_inline_button ace_keyword ace_toggle_wrap",o.textContent=i?"<hide>":"<click to see more...>",e.appendChild(o)},e.prototype.$renderLine=function(e,t,n){if(n||0==n||(n=this.session.getFoldLine(t)),n)var r=this.$getFoldLineTokens(t,n);else r=this.session.getTokens(t);var i=e;if(r.length){var o=this.session.getRowSplitData(t);o&&o.length?(this.$renderWrappedLine(e,r,o),i=e.lastChild):(i=e,this.$useLineGroups()&&(i=this.$createLineElement(),e.appendChild(i)),this.$renderSimpleLine(i,r))}else this.$useLineGroups()&&(i=this.$createLineElement(),e.appendChild(i));if(this.showEOL&&i){n&&(t=n.end.row);var s=this.dom.createElement("span");s.className="ace_invisible ace_invisible_eol",s.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,i.appendChild(s)}},e.prototype.$getFoldLineTokens=function(e,t){var n=this.session,r=[],i=n.getTokens(e);return t.walk((function(e,t,o,s,a){null!=e?r.push({type:"fold",value:e}):(a&&(i=n.getTokens(t)),i.length&&function(e,t,n){for(var i=0,o=0;o+e[i].value.length<t;)if(o+=e[i].value.length,++i==e.length)return;for(o!=t&&((s=e[i].value.substring(t-o)).length>n-t&&(s=s.substring(0,n-t)),r.push({type:e[i].type,value:s}),o=t+s.length,i+=1);o<n&&i<e.length;){var s;(s=e[i].value).length+o>n?r.push({type:e[i].type,value:s.substring(0,n-o)}):r.push(e[i]),o+=s.length,i+=1}}(i,s,o))}),t.end.row,this.session.getLine(t.end.row).length),r},e.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},e}();d.prototype.EOF_CHAR="¶",d.prototype.EOL_CHAR_LF="¬",d.prototype.EOL_CHAR_CRLF="¤",d.prototype.EOL_CHAR=d.prototype.EOL_CHAR_LF,d.prototype.TAB_CHAR="—",d.prototype.SPACE_CHAR="·",d.prototype.$padding=0,d.prototype.MAX_LINE_LENGTH=1e4,d.prototype.showInvisibles=!1,d.prototype.showSpaces=!1,d.prototype.showTabs=!1,d.prototype.showEOL=!1,d.prototype.displayIndentGuides=!0,d.prototype.$highlightIndentGuides=!0,d.prototype.$tabStrings=[],d.prototype.destroy={},d.prototype.onChangeTabSize=d.prototype.$computeTabString,r.implement(d.prototype,a),t.Text=d})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=function(){function e(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),r.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return e.prototype.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)r.setStyle(t[n].style,"opacity",e?"":"0")},e.prototype.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&r.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},e.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,r.removeCssClass(this.element,"ace_animate-blinking")},e.prototype.setPadding=function(e){this.$padding=e},e.prototype.setSession=function(e){this.session=e},e.prototype.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},e.prototype.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},e.prototype.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,r.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},e.prototype.addCursor=function(){var e=r.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},e.prototype.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},e.prototype.hideCursor=function(){this.isVisible=!1,r.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},e.prototype.showCursor=function(){this.isVisible=!0,r.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},e.prototype.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,r.removeCssClass(this.element,"ace_smooth-blinking")),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&r.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),r.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t()}else this.$stopCssAnimation()},e.prototype.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),top:(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},e.prototype.isCursorInView=function(e,t){return e.top>=0&&e.top<t.maxHeight},e.prototype.update=function(e){this.config=e;var t=this.session.$selectionMarkers,n=0,i=0;void 0!==t&&0!==t.length||(t=[{cursor:null}]),n=0;for(var o=t.length;n<o;n++){var s=this.getPixelPosition(t[n].cursor,!0);if(!((s.top>e.height+e.offset||s.top<0)&&n>1)){var a=this.cursors[i++]||this.addCursor(),l=a.style;this.drawCursor?this.drawCursor(a,s,e,t[n],this.session):this.isCursorInView(s,e)?(r.setStyle(l,"display","block"),r.translate(a,s.left,s.top),r.setStyle(l,"width",Math.round(e.characterWidth)+"px"),r.setStyle(l,"height",e.lineHeight+"px")):r.setStyle(l,"display","none")}}for(;this.cursors.length>i;)this.removeCursor();var c=this.session.getOverwrite();this.$setOverwrite(c),this.$pixelPos=s,this.restartTimer()},e.prototype.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?r.addCssClass(this.element,"ace_overwrite-cursors"):r.removeCssClass(this.element,"ace_overwrite-cursors"))},e.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},e}();i.prototype.$padding=0,i.prototype.drawCursor=null,t.Cursor=i})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r,i=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=e("./lib/oop"),s=e("./lib/dom"),a=e("./lib/event"),l=e("./lib/event_emitter").EventEmitter,c=32768,d=function(){function e(e,t){this.element=s.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+t,this.inner=s.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,a.addListener(this.element,"scroll",this.onScroll.bind(this)),a.addListener(this.element,"mousedown",a.preventDefault)}return e.prototype.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1},e}();o.implement(d.prototype,l);var u=function(e){function t(t,n){var r=e.call(this,t,"-v")||this;return r.scrollTop=0,r.scrollHeight=0,n.$scrollbarWidth=r.width=s.scrollbarWidth(t.ownerDocument),r.inner.style.width=r.element.style.width=(r.width||15)+5+"px",r.$minWidth=0,r}return i(t,e),t.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},t.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},t.prototype.setHeight=function(e){this.element.style.height=e+"px"},t.prototype.setScrollHeight=function(e){this.scrollHeight=e,e>c?(this.coeff=c/e,e=c):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},t.prototype.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)},t}(d);u.prototype.setInnerHeight=u.prototype.setScrollHeight;var h=function(e){function t(t,n){var r=e.call(this,t,"-h")||this;return r.scrollLeft=0,r.height=n.$scrollbarWidth,r.inner.style.height=r.element.style.height=(r.height||15)+5+"px",r}return i(t,e),t.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},t.prototype.getHeight=function(){return this.isVisible?this.height:0},t.prototype.setWidth=function(e){this.element.style.width=e+"px"},t.prototype.setInnerWidth=function(e){this.inner.style.width=e+"px"},t.prototype.setScrollWidth=function(e){this.inner.style.width=e+"px"},t.prototype.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)},t}(d);t.ScrollBar=u,t.ScrollBarV=u,t.ScrollBarH=h,t.VScrollBar=u,t.HScrollBar=h})),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r,i=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=e("./lib/oop"),s=e("./lib/dom"),a=e("./lib/event"),l=e("./lib/event_emitter").EventEmitter;s.importCssString(".ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{\n position: absolute;\n background: rgba(128, 128, 128, 0.6);\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n border: 1px solid #bbb;\n border-radius: 2px;\n z-index: 8;\n}\n.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {\n position: absolute;\n z-index: 6;\n background: none;\n overflow: hidden!important;\n}\n.ace_editor>.ace_sb-v {\n z-index: 6;\n right: 0;\n top: 0;\n width: 12px;\n}\n.ace_editor>.ace_sb-v div {\n z-index: 8;\n right: 0;\n width: 100%;\n}\n.ace_editor>.ace_sb-h {\n bottom: 0;\n left: 0;\n height: 12px;\n}\n.ace_editor>.ace_sb-h div {\n bottom: 0;\n height: 100%;\n}\n.ace_editor>.ace_sb_grabbed {\n z-index: 8;\n background: #000;\n}","ace_scrollbar.css",!1);var c=function(){function e(e,t){this.element=s.createElement("div"),this.element.className="ace_sb"+t,this.inner=s.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,a.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return e.prototype.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1},e}();o.implement(c.prototype,l);var d=function(e){function t(t,n){var r=e.call(this,t,"-v")||this;return r.scrollTop=0,r.scrollHeight=0,r.parent=t,r.width=r.VScrollWidth,r.renderer=n,r.inner.style.width=r.element.style.width=(r.width||15)+"px",r.$minWidth=0,r}return i(t,e),t.prototype.onMouseDown=function(e,t){if("mousedown"===e&&0===a.getButton(t)&&2!==t.detail){if(t.target===this.inner){var n=this,r=t.clientY,i=t.clientY,o=this.thumbTop;a.capture(this.inner,(function(e){r=e.clientY}),(function(){clearInterval(s)}));var s=setInterval((function(){if(void 0!==r){var e=n.scrollTopFromThumbTop(o+r-i);e!==n.scrollTop&&n._emit("scroll",{data:e})}}),20);return a.preventDefault(t)}var l=t.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(l)}),a.preventDefault(t)}},t.prototype.getHeight=function(){return this.height},t.prototype.scrollTopFromThumbTop=function(e){var t=e*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return(t|=0)<0?t=0:t>this.pageHeight-this.viewHeight&&(t=this.pageHeight-this.viewHeight),t},t.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},t.prototype.setHeight=function(e){this.height=Math.max(0,e),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},t.prototype.setScrollHeight=function(e,t){(this.pageHeight!==e||t)&&(this.pageHeight=e,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},t.prototype.setScrollTop=function(e){this.scrollTop=e,e<0&&(e=0),this.thumbTop=e*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},t}(c);d.prototype.setInnerHeight=d.prototype.setScrollHeight;var u=function(e){function t(t,n){var r=e.call(this,t,"-h")||this;return r.scrollLeft=0,r.scrollWidth=0,r.height=r.HScrollHeight,r.inner.style.height=r.element.style.height=(r.height||12)+"px",r.renderer=n,r}return i(t,e),t.prototype.onMouseDown=function(e,t){if("mousedown"===e&&0===a.getButton(t)&&2!==t.detail){if(t.target===this.inner){var n=this,r=t.clientX,i=t.clientX,o=this.thumbLeft;a.capture(this.inner,(function(e){r=e.clientX}),(function(){clearInterval(s)}));var s=setInterval((function(){if(void 0!==r){var e=n.scrollLeftFromThumbLeft(o+r-i);e!==n.scrollLeft&&n._emit("scroll",{data:e})}}),20);return a.preventDefault(t)}var l=t.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(l)}),a.preventDefault(t)}},t.prototype.getHeight=function(){return this.isVisible?this.height:0},t.prototype.scrollLeftFromThumbLeft=function(e){var t=e*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return(t|=0)<0?t=0:t>this.pageWidth-this.viewWidth&&(t=this.pageWidth-this.viewWidth),t},t.prototype.setWidth=function(e){this.width=Math.max(0,e),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},t.prototype.setScrollWidth=function(e,t){(this.pageWidth!==e||t)&&(this.pageWidth=e,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},t.prototype.setScrollLeft=function(e){this.scrollLeft=e,e<0&&(e=0),this.thumbLeft=e*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},t}(c);u.prototype.setInnerWidth=u.prototype.setScrollWidth,t.ScrollBar=d,t.ScrollBarV=d,t.ScrollBarH=u,t.VScrollBar=d,t.HScrollBar=u})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(e,t,n){"use strict";var r=e("./lib/event"),i=function(){function e(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var n=this;this._flush=function(e){n.pending=!1;var t=n.changes;if(t&&(r.blockIdle(100),n.changes=0,n.onRender(t)),n.changes){if(n.$recursionLimit--<0)return;n.schedule()}else n.$recursionLimit=2}}return e.prototype.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(r.nextFrame(this._flush),this.pending=!0)},e.prototype.clear=function(e){var t=this.changes;return this.changes=0,t},e}();t.RenderLoop=i})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){var r=e("../lib/oop"),i=e("../lib/dom"),o=e("../lib/lang"),s=e("../lib/event"),a=e("../lib/useragent"),l=e("../lib/event_emitter").EventEmitter,c=512,d="function"==typeof ResizeObserver,u=200,h=function(){function e(e){this.el=i.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=i.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=i.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=o.stringRepeat("X",c),this.$characterSize={width:0,height:0},d?this.$addObserver():this.checkForSizeChanges()}return e.prototype.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",a.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},e.prototype.checkForSizeChanges=function(e){if(void 0===e&&(e=this.$measureSizes()),e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},e.prototype.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver((function(t){e.checkForSizeChanges()})),this.$observer.observe(this.$measureNode)},e.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=s.onIdle((function t(){e.checkForSizeChanges(),s.onIdle(t,500)}),500)},e.prototype.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},e.prototype.$measureSizes=function(e){var t={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/c};return 0===t.width||0===t.height?null:t},e.prototype.$measureCharWidth=function(e){return this.$main.textContent=o.stringRepeat(e,c),this.$main.getBoundingClientRect().width/c},e.prototype.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},e.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},e.prototype.$getZoom=function(e){return e&&e.parentElement?(Number(window.getComputedStyle(e).zoom)||1)*this.$getZoom(e.parentElement):1},e.prototype.$initTransformMeasureNodes=function(){var e=function(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]};this.els=i.buildDom([e(0,0),e(u,0),e(0,u),e(u,u)],this.el)},e.prototype.transformCoordinates=function(e,t){function n(e,t,n){var r=e[1]*t[0]-e[0]*t[1];return[(-t[1]*n[0]+t[0]*n[1])/r,(+e[1]*n[0]-e[0]*n[1])/r]}function r(e,t){return[e[0]-t[0],e[1]-t[1]]}function i(e,t){return[e[0]+t[0],e[1]+t[1]]}function o(e,t){return[e*t[0],e*t[1]]}function s(e){var t=e.getBoundingClientRect();return[t.left,t.top]}e&&(e=o(1/this.$getZoom(this.el),e)),this.els||this.$initTransformMeasureNodes();var a=s(this.els[0]),l=s(this.els[1]),c=s(this.els[2]),d=s(this.els[3]),h=n(r(d,l),r(d,c),r(i(l,c),i(d,a))),p=o(1+h[0],r(l,a)),f=o(1+h[1],r(c,a));if(t){var g=t,m=h[0]*g[0]/u+h[1]*g[1]/u+1,b=i(o(g[0],p),o(g[1],f));return i(o(1/m/u,b),a)}var v=r(e,a),y=n(r(p,o(h[0],v)),r(f,o(h[1],v)),v);return o(u,y)},e}();h.prototype.$characterSize={width:0,height:0},r.implement(h.prototype,l),t.FontMetrics=h})),ace.define("ace/css/editor-css",["require","exports","module"],(function(e,t,n){n.exports='\n.ace_br1 {border-top-left-radius : 3px;}\n.ace_br2 {border-top-right-radius : 3px;}\n.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}\n.ace_br4 {border-bottom-right-radius: 3px;}\n.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}\n.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}\n.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}\n.ace_br8 {border-bottom-left-radius : 3px;}\n.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}\n.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}\n.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n\n\n.ace_editor {\n position: relative;\n overflow: hidden;\n padding: 0;\n font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'Source Code Pro\', \'source-code-pro\', monospace;\n direction: ltr;\n text-align: left;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n forced-color-adjust: none;\n}\n\n.ace_scroller {\n position: absolute;\n overflow: hidden;\n top: 0;\n bottom: 0;\n background-color: inherit;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n cursor: text;\n}\n\n.ace_content {\n position: absolute;\n box-sizing: border-box;\n min-width: 100%;\n contain: style size layout;\n font-variant-ligatures: no-common-ligatures;\n}\n.ace_invisible {\n font-variant-ligatures: none;\n}\n\n.ace_keyboard-focus:focus {\n box-shadow: inset 0 0 0 2px #5E9ED6;\n outline: none;\n}\n\n.ace_dragging .ace_scroller:before{\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n content: \'\';\n background: rgba(250, 250, 250, 0.01);\n z-index: 1000;\n}\n.ace_dragging.ace_dark .ace_scroller:before{\n background: rgba(0, 0, 0, 0.01);\n}\n\n.ace_gutter {\n position: absolute;\n overflow : hidden;\n width: auto;\n top: 0;\n bottom: 0;\n left: 0;\n cursor: default;\n z-index: 4;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n contain: style size layout;\n}\n\n.ace_gutter-active-line {\n position: absolute;\n left: 0;\n right: 0;\n}\n\n.ace_scroller.ace_scroll-left:after {\n content: "";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;\n pointer-events: none;\n}\n\n.ace_gutter-cell, .ace_gutter-cell_svg-icons {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n padding-left: 19px;\n padding-right: 6px;\n background-repeat: no-repeat;\n}\n\n.ace_gutter-cell_svg-icons .ace_gutter_annotation {\n margin-left: -14px;\n float: left;\n}\n\n.ace_gutter-cell .ace_gutter_annotation {\n margin-left: -19px;\n float: left;\n}\n\n.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold, .ace_gutter-cell.ace_security, .ace_icon.ace_security, .ace_icon.ace_security_fold {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n\n.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info, .ace_dark .ace_gutter-cell.ace_hint, .ace_dark .ace_icon.ace_hint {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");\n}\n\n.ace_icon_svg.ace_error {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");\n background-color: crimson;\n}\n.ace_icon_svg.ace_security {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");\n background-color: crimson;\n}\n.ace_icon_svg.ace_warning {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");\n background-color: darkorange;\n}\n.ace_icon_svg.ace_info {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");\n background-color: royalblue;\n}\n.ace_icon_svg.ace_hint {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");\n background-color: silver;\n}\n\n.ace_icon_svg.ace_error_fold {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");\n background-color: crimson;\n}\n.ace_icon_svg.ace_security_fold {\n -webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");\n background-color: crimson;\n}\n.ace_icon_svg.ace_warning_fold {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");\n background-color: darkorange;\n}\n\n.ace_scrollbar {\n contain: strict;\n position: absolute;\n right: 0;\n bottom: 0;\n z-index: 6;\n}\n\n.ace_scrollbar-inner {\n position: absolute;\n cursor: text;\n left: 0;\n top: 0;\n}\n\n.ace_scrollbar-v{\n overflow-x: hidden;\n overflow-y: scroll;\n top: 0;\n}\n\n.ace_scrollbar-h {\n overflow-x: scroll;\n overflow-y: hidden;\n left: 0;\n}\n\n.ace_print-margin {\n position: absolute;\n height: 100%;\n}\n\n.ace_text-input {\n position: absolute;\n z-index: 0;\n width: 0.5em;\n height: 1em;\n opacity: 0;\n background: transparent;\n -moz-appearance: none;\n appearance: none;\n border: none;\n resize: none;\n outline: none;\n overflow: hidden;\n font: inherit;\n padding: 0 1px;\n margin: 0 -1px;\n contain: strict;\n -ms-user-select: text;\n -moz-user-select: text;\n -webkit-user-select: text;\n user-select: text;\n /*with `pre-line` chrome inserts instead of space*/\n white-space: pre!important;\n}\n.ace_text-input.ace_composition {\n background: transparent;\n color: inherit;\n z-index: 1000;\n opacity: 1;\n}\n.ace_composition_placeholder { color: transparent }\n.ace_composition_marker { \n border-bottom: 1px solid;\n position: absolute;\n border-radius: 0;\n margin-top: 1px;\n}\n\n[ace_nocontext=true] {\n transform: none!important;\n filter: none!important;\n clip-path: none!important;\n mask : none!important;\n contain: none!important;\n perspective: none!important;\n mix-blend-mode: initial!important;\n z-index: auto;\n}\n\n.ace_layer {\n z-index: 1;\n position: absolute;\n overflow: hidden;\n /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/\n word-wrap: normal;\n white-space: pre;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n /* setting pointer-events: auto; on node under the mouse, which changes\n during scroll, will break mouse wheel scrolling in Safari */\n pointer-events: none;\n}\n\n.ace_gutter-layer {\n position: relative;\n width: auto;\n text-align: right;\n pointer-events: auto;\n height: 1000000px;\n contain: style size layout;\n}\n\n.ace_text-layer {\n font: inherit !important;\n position: absolute;\n height: 1000000px;\n width: 1000000px;\n contain: style size layout;\n}\n\n.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {\n contain: style size layout;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n}\n\n.ace_hidpi .ace_text-layer,\n.ace_hidpi .ace_gutter-layer,\n.ace_hidpi .ace_content,\n.ace_hidpi .ace_gutter {\n contain: strict;\n}\n.ace_hidpi .ace_text-layer > .ace_line, \n.ace_hidpi .ace_text-layer > .ace_line_group {\n contain: strict;\n}\n\n.ace_cjk {\n display: inline-block;\n text-align: center;\n}\n\n.ace_cursor-layer {\n z-index: 4;\n}\n\n.ace_cursor {\n z-index: 4;\n position: absolute;\n box-sizing: border-box;\n border-left: 2px solid;\n /* workaround for smooth cursor repaintng whole screen in chrome */\n transform: translatez(0);\n}\n\n.ace_multiselect .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_slim-cursors .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_overwrite-cursors .ace_cursor {\n border-left-width: 0;\n border-bottom: 1px solid;\n}\n\n.ace_hidden-cursors .ace_cursor {\n opacity: 0.2;\n}\n\n.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {\n opacity: 0;\n}\n\n.ace_smooth-blinking .ace_cursor {\n transition: opacity 0.18s;\n}\n\n.ace_animate-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: step-end;\n animation-name: blink-ace-animate;\n animation-iteration-count: infinite;\n}\n\n.ace_animate-blinking.ace_smooth-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: ease-in-out;\n animation-name: blink-ace-animate-smooth;\n}\n \n@keyframes blink-ace-animate {\n from, to { opacity: 1; }\n 60% { opacity: 0; }\n}\n\n@keyframes blink-ace-animate-smooth {\n from, to { opacity: 1; }\n 45% { opacity: 1; }\n 60% { opacity: 0; }\n 85% { opacity: 0; }\n}\n\n.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {\n position: absolute;\n z-index: 3;\n}\n\n.ace_marker-layer .ace_selection {\n position: absolute;\n z-index: 5;\n}\n\n.ace_marker-layer .ace_bracket {\n position: absolute;\n z-index: 6;\n}\n\n.ace_marker-layer .ace_error_bracket {\n position: absolute;\n border-bottom: 1px solid #DE5555;\n border-radius: 0;\n}\n\n.ace_marker-layer .ace_active-line {\n position: absolute;\n z-index: 2;\n}\n\n.ace_marker-layer .ace_selected-word {\n position: absolute;\n z-index: 4;\n box-sizing: border-box;\n}\n\n.ace_line .ace_fold {\n box-sizing: border-box;\n\n display: inline-block;\n height: 11px;\n margin-top: -2px;\n vertical-align: middle;\n\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");\n background-repeat: no-repeat, repeat-x;\n background-position: center center, top left;\n color: transparent;\n\n border: 1px solid black;\n border-radius: 2px;\n\n cursor: pointer;\n pointer-events: auto;\n}\n\n.ace_dark .ace_fold {\n}\n\n.ace_fold:hover{\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");\n}\n\n.ace_tooltip {\n background-color: #f5f5f5;\n border: 1px solid gray;\n border-radius: 1px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\n color: black;\n padding: 3px 4px;\n position: fixed;\n z-index: 999999;\n box-sizing: border-box;\n cursor: default;\n white-space: pre-wrap;\n word-wrap: break-word;\n line-height: normal;\n font-style: normal;\n font-weight: normal;\n letter-spacing: normal;\n pointer-events: none;\n overflow: auto;\n max-width: min(33em, 66vw);\n overscroll-behavior: contain;\n}\n.ace_tooltip pre {\n white-space: pre-wrap;\n}\n\n.ace_tooltip.ace_dark {\n background-color: #636363;\n color: #fff;\n}\n\n.ace_tooltip:focus {\n outline: 1px solid #5E9ED6;\n}\n\n.ace_icon {\n display: inline-block;\n width: 18px;\n vertical-align: top;\n}\n\n.ace_icon_svg {\n display: inline-block;\n width: 12px;\n vertical-align: top;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-size: 12px;\n -webkit-mask-position: center;\n}\n\n.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {\n padding-right: 13px;\n}\n\n.ace_fold-widget {\n box-sizing: border-box;\n\n margin: 0 -12px 0 1px;\n display: none;\n width: 11px;\n vertical-align: top;\n\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: center;\n\n border-radius: 3px;\n \n border: 1px solid transparent;\n cursor: pointer;\n}\n\n.ace_folding-enabled .ace_fold-widget {\n display: inline-block; \n}\n\n.ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");\n}\n\n.ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");\n}\n\n.ace_fold-widget:hover {\n border: 1px solid rgba(0, 0, 0, 0.3);\n background-color: rgba(255, 255, 255, 0.2);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);\n}\n\n.ace_fold-widget:active {\n border: 1px solid rgba(0, 0, 0, 0.4);\n background-color: rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);\n}\n/**\n * Dark version for fold widgets\n */\n.ace_dark .ace_fold-widget {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");\n}\n.ace_dark .ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget:hover {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n background-color: rgba(255, 255, 255, 0.1);\n}\n.ace_dark .ace_fold-widget:active {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n}\n\n.ace_inline_button {\n border: 1px solid lightgray;\n display: inline-block;\n margin: -1px 8px;\n padding: 0 5px;\n pointer-events: auto;\n cursor: pointer;\n}\n.ace_inline_button:hover {\n border-color: gray;\n background: rgba(200,200,200,0.2);\n display: inline-block;\n pointer-events: auto;\n}\n\n.ace_fold-widget.ace_invalid {\n background-color: #FFB4B4;\n border-color: #DE5555;\n}\n\n.ace_fade-fold-widgets .ace_fold-widget {\n transition: opacity 0.4s ease 0.05s;\n opacity: 0;\n}\n\n.ace_fade-fold-widgets:hover .ace_fold-widget {\n transition: opacity 0.05s ease 0.05s;\n opacity:1;\n}\n\n.ace_underline {\n text-decoration: underline;\n}\n\n.ace_bold {\n font-weight: bold;\n}\n\n.ace_nobold .ace_bold {\n font-weight: normal;\n}\n\n.ace_italic {\n font-style: italic;\n}\n\n\n.ace_error-marker {\n background-color: rgba(255, 0, 0,0.2);\n position: absolute;\n z-index: 9;\n}\n\n.ace_highlight-marker {\n background-color: rgba(255, 255, 0,0.2);\n position: absolute;\n z-index: 8;\n}\n\n.ace_mobile-menu {\n position: absolute;\n line-height: 1.5;\n border-radius: 4px;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n background: white;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #dcdcdc;\n color: black;\n}\n.ace_dark > .ace_mobile-menu {\n background: #333;\n color: #ccc;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #444;\n\n}\n.ace_mobile-button {\n padding: 2px;\n cursor: pointer;\n overflow: hidden;\n}\n.ace_mobile-button:hover {\n background-color: #eee;\n opacity:1;\n}\n.ace_mobile-button:active {\n background-color: #ddd;\n}\n\n.ace_placeholder {\n position: relative;\n font-family: arial;\n transform: scale(0.9);\n transform-origin: left;\n white-space: pre;\n opacity: 0.7;\n margin: 0 10px;\n z-index: 1;\n}\n\n.ace_ghost_text {\n opacity: 0.5;\n font-style: italic;\n}\n\n.ace_ghost_text_container > div {\n white-space: pre;\n}\n\n.ghost_text_line_wrapped::after {\n content: "↩";\n position: absolute;\n}\n\n.ace_lineWidgetContainer.ace_ghost_text {\n margin: 0px 4px\n}\n\n.ace_screenreader-only {\n position:absolute;\n left:-10000px;\n top:auto;\n width:1px;\n height:1px;\n overflow:hidden;\n}\n\n.ace_hidden_token {\n display: none;\n}'})),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/oop"),o=e("../lib/event_emitter").EventEmitter,s=function(){function e(e,t){this.canvas=r.createElement("canvas"),this.renderer=t,this.pixelRatio=1,this.maxHeight=t.layerConfig.maxHeight,this.lineHeight=t.layerConfig.lineHeight,this.canvasHeight=e.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=e.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},e.element.appendChild(this.canvas)}return e.prototype.$updateDecorators=function(e){var t=!0===this.renderer.theme.isDark?this.colors.dark:this.colors.light;e&&(this.maxHeight=e.maxHeight,this.lineHeight=e.lineHeight,this.canvasHeight=e.height,(e.lastRow+1)*this.lineHeight<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight);var n=this.canvas.getContext("2d"),r=this.renderer.session.$annotations;if(n.clearRect(0,0,this.canvas.width,this.canvas.height),r){var i={info:1,warning:2,error:3};r.forEach((function(e){e.priority=i[e.type]||null})),r=r.sort((function(e,t){return e.priority<t.priority?-1:e.priority>t.priority?1:0}));for(var o=this.renderer.session.$foldData,s=0;s<r.length;s++){var a=r[s].row,l=this.compensateFoldRows(a,o),c=Math.round((a-l)*this.lineHeight*this.heightRatio),d=Math.round((a-l)*this.lineHeight*this.heightRatio),u=Math.round(((a-l)*this.lineHeight+this.lineHeight)*this.heightRatio);if(u-d<this.minDecorationHeight){var h=(d+u)/2|0;h<this.halfMinDecorationHeight?h=this.halfMinDecorationHeight:h+this.halfMinDecorationHeight>this.canvasHeight&&(h=this.canvasHeight-this.halfMinDecorationHeight),d=Math.round(h-this.halfMinDecorationHeight),u=Math.round(h+this.halfMinDecorationHeight)}n.fillStyle=t[r[s].type]||null,n.fillRect(0,c,this.canvasWidth,u-d)}}var p=this.renderer.session.selection.getCursor();p&&(l=this.compensateFoldRows(p.row,o),c=Math.round((p.row-l)*this.lineHeight*this.heightRatio),n.fillStyle="rgba(0, 0, 0, 0.5)",n.fillRect(0,c,this.canvasWidth,2))},e.prototype.compensateFoldRows=function(e,t){var n=0;if(t&&t.length>0)for(var r=0;r<t.length;r++)e>t[r].start.row&&e<t[r].end.row?n+=e-t[r].start.row:e>=t[r].end.row&&(n+=t[r].end.row-t[r].start.row);return n},e}();i.implement(s.prototype,o),t.Decorator=s})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent","ace/layer/text_util"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/dom"),o=e("./lib/lang"),s=e("./config"),a=e("./layer/gutter").Gutter,l=e("./layer/marker").Marker,c=e("./layer/text").Text,d=e("./layer/cursor").Cursor,u=e("./scrollbar").HScrollBar,h=e("./scrollbar").VScrollBar,p=e("./scrollbar_custom").HScrollBar,f=e("./scrollbar_custom").VScrollBar,g=e("./renderloop").RenderLoop,m=e("./layer/font_metrics").FontMetrics,b=e("./lib/event_emitter").EventEmitter,v=e("./css/editor-css"),y=e("./layer/decorators").Decorator,w=e("./lib/useragent"),x=e("./layer/text_util").isTextToken;i.importCssString(v,"ace_editor.css",!1);var k=function(){function e(e,t){var n=this;this.container=e||i.createElement("div"),i.addCssClass(this.container,"ace_editor"),i.HI_DPI&&i.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),null==s.get("useStrictCSP")&&s.set("useStrictCSP",!1),this.$gutter=i.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=i.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=i.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new l(this.content);var r=this.$textLayer=new c(this.content);this.canvas=r.element,this.$markerFront=new l(this.content),this.$cursorLayer=new d(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new h(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.on("scroll",(function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)})),this.scrollBarH.on("scroll",(function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new m(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",(function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!w.isIOS,this.$loop=new g(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),s.resetOptions(this),s._signal("renderer",this)}return e.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),i.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},e.prototype.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},e.prototype.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!n)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},e.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},e.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},e.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},e.prototype.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},e.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},e.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},e.prototype.onResize=function(e,t,n,r){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var i=this.container;r||(r=i.clientHeight||i.scrollHeight),!r&&this.$maxLines&&this.lineHeight>1&&(i.style.height&&"0px"!=i.style.height||(i.style.height="1px",r=i.clientHeight||i.scrollHeight)),n||(n=i.clientWidth||i.scrollWidth);var o=this.$updateCachedSize(e,t,n,r);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!n&&!r)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(o|this.$changes,!0):this.$loop.schedule(o|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},e.prototype.$updateCachedSize=function(e,t,n,r){r-=this.$extraHeight||0;var o=0,s=this.$size,a={width:s.width,height:s.height,scrollerHeight:s.scrollerHeight,scrollerWidth:s.scrollerWidth};if(r&&(e||s.height!=r)&&(s.height=r,o|=this.CHANGE_SIZE,s.scrollerHeight=s.height,this.$horizScroll&&(s.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(s.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",o|=this.CHANGE_SCROLL),n&&(e||s.width!=n)){o|=this.CHANGE_SIZE,s.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,i.setStyle(this.scrollBarH.element.style,"left",t+"px"),i.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),s.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()-this.margin.h),i.setStyle(this.$gutter.style,"left",this.margin.left+"px");var l=this.scrollBarV.getWidth()+"px";i.setStyle(this.scrollBarH.element.style,"right",l),i.setStyle(this.scroller.style,"right",l),i.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(s.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(o|=this.CHANGE_FULL)}return s.$dirty=!n||!r,o&&this._signal("resize",a),o},e.prototype.onGutterResize=function(e){var t=this.$showGutter?e:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},e.prototype.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},e.prototype.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},e.prototype.getAnimatedScroll=function(){return this.$animatedScroll},e.prototype.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},e.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},e.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},e.prototype.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},e.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},e.prototype.setHighlightIndentGuides=function(e){this.setOption("highlightIndentGuides",e)},e.prototype.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},e.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},e.prototype.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},e.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},e.prototype.getShowGutter=function(){return this.getOption("showGutter")},e.prototype.setShowGutter=function(e){return this.setOption("showGutter",e)},e.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},e.prototype.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},e.prototype.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},e.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},e.prototype.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=i.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=i.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},e.prototype.getContainerElement=function(){return this.container},e.prototype.getMouseEventTarget=function(){return this.scroller},e.prototype.getTextAreaContainer=function(){return this.container},e.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var e=this.textarea.style,t=this.$composition;if(this.$keepTextAreaAtCursor||t){var n=this.$cursorLayer.$pixelPos;if(n){t&&t.markerRange&&(n=this.$cursorLayer.getPixelPosition(t.markerRange.start,!0));var r=this.layerConfig,o=n.top,s=n.left;o-=r.offset;var a=t&&t.useTextareaForIME||w.isMobile?this.lineHeight:1;if(o<0||o>r.height-a)i.translate(this.textarea,0,0);else{var l=1,c=this.$size.height-a;if(t)if(t.useTextareaForIME){var d=this.textarea.value;l=this.characterWidth*this.session.$getStringScreenWidth(d)[0]}else o+=this.lineHeight+2;else o+=this.lineHeight;(s-=this.scrollLeft)>this.$size.scrollerWidth-l&&(s=this.$size.scrollerWidth-l),s+=this.gutterWidth+this.margin.left,i.setStyle(e,"height",a+"px"),i.setStyle(e,"width",l+"px"),i.translate(this.textarea,Math.min(s,this.$size.scrollerWidth-l),Math.min(o,c))}}}else i.translate(this.textarea,-100,0)}},e.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},e.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},e.prototype.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},e.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},e.prototype.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},e.prototype.setScrollMargin=function(e,t,n,r){var i=this.scrollMargin;i.top=0|e,i.bottom=0|t,i.right=0|r,i.left=0|n,i.v=i.top+i.bottom,i.h=i.left+i.right,i.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-i.top),this.updateFull()},e.prototype.setMargin=function(e,t,n,r){var i=this.margin;i.top=0|e,i.bottom=0|t,i.right=0|r,i.left=0|n,i.v=i.top+i.bottom,i.h=i.left+i.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},e.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},e.prototype.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},e.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},e.prototype.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},e.prototype.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},e.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},e.prototype.freeze=function(){this.$frozen=!0},e.prototype.unfreeze=function(){this.$frozen=!1},e.prototype.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig()|this.$loop.clear(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var r=this.scrollTop+(n.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;r>0&&(this.scrollTop=r,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig()|this.$loop.clear())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),i.translate(this.content,-this.scrollLeft,-n.offset);var o=n.width+2*this.$padding+"px",s=n.minHeight+"px";i.setStyle(this.content.style,"width",o),i.setStyle(this.content.style,"height",s)}if(e&this.CHANGE_H_SCROLL&&(i.translate(this.content,-this.scrollLeft,-n.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),e&this.CHANGE_FULL)return this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);if(e&this.CHANGE_SCROLL)return this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(n):this.$gutterLayer.scrollLines(n)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_LINES?((this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender",e)}else this.$changes|=e},e.prototype.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var r=!(n<=2*this.lineHeight)&&e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||r!=this.$vScroll){r!=this.$vScroll&&(this.$vScroll=r,this.scrollBarV.setVisible(r));var i=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,i,n),this.desiredHeight=n,this._signal("autosize")}},e.prototype.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,r=this.session.getScreenLength()*this.lineHeight,i=this.$getLongestLine(),o=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-i-2*this.$padding<0),s=this.$horizScroll!==o;s&&(this.$horizScroll=o,this.scrollBarH.setVisible(o));var a=this.$vScroll;this.$maxLines&&this.lineHeight>1&&(this.$autosize(),n=t.height<=2*this.lineHeight);var l=t.scrollerHeight+this.lineHeight,c=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;r+=c;var d=this.scrollMargin;this.session.setScrollTop(Math.max(-d.top,Math.min(this.scrollTop,r-t.scrollerHeight+d.bottom))),this.session.setScrollLeft(Math.max(-d.left,Math.min(this.scrollLeft,i+2*this.$padding-t.scrollerWidth+d.right)));var u=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-r+c<0||this.scrollTop>d.top),h=a!==u;h&&(this.$vScroll=u,this.scrollBarV.setVisible(u));var p,f,g=this.scrollTop%this.lineHeight,m=Math.ceil(l/this.lineHeight)-1,b=Math.max(0,Math.round((this.scrollTop-g)/this.lineHeight)),v=b+m,y=this.lineHeight;b=e.screenToDocumentRow(b,0);var w=e.getFoldLine(b);w&&(b=w.start.row),p=e.documentToScreenRow(b,0),f=e.getRowLength(b)*y,v=Math.min(e.screenToDocumentRow(v,0),e.getLength()-1),l=t.scrollerHeight+e.getRowLength(v)*y+f,g=this.scrollTop-p*y;var x=0;return(this.layerConfig.width!=i||s)&&(x=this.CHANGE_H_SCROLL),(s||h)&&(x|=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),h&&(i=this.$getLongestLine())),this.layerConfig={width:i,padding:this.$padding,firstRow:b,firstRowScreen:p,lastRow:v,lineHeight:y,characterWidth:this.characterWidth,minHeight:l,maxHeight:r,offset:g,gutterOffset:y?Math.max(0,Math.ceil((g+t.height-t.scrollerHeight)/y)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(i-this.$padding),x},e.prototype.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1||t<n.firstRow))return t===1/0?(this.$showGutter&&this.$gutterLayer.update(n),void this.$textLayer.update(n)):(this.$textLayer.updateLines(n,e,t),!0)}},e.prototype.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),this.$textLayer&&e>this.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},e.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},e.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},e.prototype.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},e.prototype.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},e.prototype.updateBreakpoints=function(e){this._rows=e,this.$loop.schedule(this.CHANGE_GUTTER)},e.prototype.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},e.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},e.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},e.prototype.showCursor=function(){this.$cursorLayer.showCursor()},e.prototype.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},e.prototype.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var r=this.$cursorLayer.getPixelPosition(e),i=r.left,o=r.top,s=n&&n.top||0,a=n&&n.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;l+s>o?(t&&l+s>o+this.lineHeight&&(o-=t*this.$size.scrollerHeight),0===o&&(o=-this.scrollMargin.top),this.session.setScrollTop(o)):l+this.$size.scrollerHeight-a<o+this.lineHeight&&(t&&l+this.$size.scrollerHeight-a<o-this.lineHeight&&(o+=t*this.$size.scrollerHeight),this.session.setScrollTop(o+this.lineHeight+a-this.$size.scrollerHeight));var c=this.scrollLeft,d=2*this.layerConfig.characterWidth;i-d<c?((i-=d)<this.$padding+d&&(i=-this.scrollMargin.left),this.session.setScrollLeft(i)):(i+=d,c+this.$size.scrollerWidth<i+this.characterWidth?this.session.setScrollLeft(Math.round(i+this.characterWidth-this.$size.scrollerWidth)):c<=this.$padding&&i-c<this.characterWidth&&this.session.setScrollLeft(0))}},e.prototype.getScrollTop=function(){return this.session.getScrollTop()},e.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},e.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},e.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},e.prototype.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},e.prototype.alignCursor=function(e,t){"number"==typeof e&&(e={row:e,column:0});var n=this.$cursorLayer.getPixelPosition(e),r=this.$size.scrollerHeight-this.lineHeight,i=n.top-r*(t||0);return this.session.setScrollTop(i),i},e.prototype.$calcSteps=function(e,t){var n,r,i=0,o=this.STEPS,s=[];for(i=0;i<o;++i)s.push((n=i/this.STEPS,r=e,(t-e)*(Math.pow(n-1,3)+1)+r));return s},e.prototype.scrollToLine=function(e,t,n,r){var i=this.$cursorLayer.getPixelPosition({row:e,column:0}).top;t&&(i-=this.$size.scrollerHeight/2);var o=this.scrollTop;this.session.setScrollTop(i),!1!==n&&this.animateScrolling(o,r)},e.prototype.animateScrolling=function(e,t){var n=this.scrollTop;if(this.$animatedScroll){var r=this;if(e!=n){if(this.$scrollAnimation){var i=this.$scrollAnimation.steps;if(i.length&&(e=i[0])==n)return}var o=r.$calcSteps(e,n);this.$scrollAnimation={from:e,to:n,steps:o},clearInterval(this.$timer),r.session.setScrollTop(o.shift()),r.session.$scrollTop=n,this.$timer=setInterval((function(){if(!r.$stopAnimation)return r.session?void(o.length?(r.session.setScrollTop(o.shift()),r.session.$scrollTop=n):null!=n?(r.session.$scrollTop=-1,r.session.setScrollTop(n),n=null):s()):clearInterval(r.$timer);s()}),10)}}function s(){r.$timer=clearInterval(r.$timer),r.$scrollAnimation=null,r.$stopAnimation=!1,t&&t()}},e.prototype.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},e.prototype.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},e.prototype.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(e)},e.prototype.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},e.prototype.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0},e.prototype.pixelToScreenCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([e,t]);e=r[1]-this.gutterWidth-this.margin.left,t=r[0]}else n=this.scroller.getBoundingClientRect();var i=e+this.scrollLeft-n.left-this.$padding,o=i/this.characterWidth,s=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),a=this.$blockCursor?Math.floor(o):Math.round(o);return{row:s,column:a,side:o-a>0?1:-1,offsetX:i}},e.prototype.screenToTextCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([e,t]);e=r[1]-this.gutterWidth-this.margin.left,t=r[0]}else n=this.scroller.getBoundingClientRect();var i=e+this.scrollLeft-n.left-this.$padding,o=i/this.characterWidth,s=this.$blockCursor?Math.floor(o):Math.round(o),a=Math.floor((t+this.scrollTop-n.top)/this.lineHeight);return this.session.screenToDocumentPosition(a,Math.max(s,0),i)},e.prototype.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),r=this.session.documentToScreenPosition(e,t),i=this.$padding+(this.session.$bidiHandler.isBidiRow(r.row,e)?this.session.$bidiHandler.getPosLeft(r.column):Math.round(r.column*this.characterWidth)),o=r.row*this.lineHeight;return{pageX:n.left+i-this.scrollLeft,pageY:n.top+o-this.scrollTop}},e.prototype.visualizeFocus=function(){i.addCssClass(this.container,"ace_focus")},e.prototype.visualizeBlur=function(){i.removeCssClass(this.container,"ace_focus")},e.prototype.showComposition=function(e){this.$composition=e,e.cssText||(e.cssText=this.textarea.style.cssText),null==e.useTextareaForIME&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(i.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},e.prototype.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},e.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),i.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var e=this.session.selection.cursor;this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},e.prototype.setGhostText=function(e,t){var n=this.session.selection.cursor,r=t||{row:n.row,column:n.column};this.removeGhostText();var o=this.$calculateWrappedTextChunks(e,r);this.addToken(o[0].text,"ghost_text",r.row,r.column),this.$ghostText={text:e,position:{row:r.row,column:r.column}};var s=i.createElement("div");if(o.length>1){var a,l=this.hideTokensAfterPosition(r.row,r.column);o.slice(1).forEach((function(e){var t=i.createElement("div"),n=i.createElement("span");n.className="ace_ghost_text",e.wrapped&&(t.className="ghost_text_line_wrapped"),0===e.text.length&&(e.text=" "),n.appendChild(i.createTextNode(e.text)),t.appendChild(n),s.appendChild(t),a=t})),l.forEach((function(e){var t=i.createElement("span");x(e.type)||(t.className="ace_"+e.type.replace(/\./g," ace_")),t.appendChild(i.createTextNode(e.value)),a.appendChild(t)})),this.$ghostTextWidget={el:s,row:r.row,column:r.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var c=this.$cursorLayer.getPixelPosition(r,!0),d=this.container.getBoundingClientRect().height,u=o.length*this.lineHeight;if(u<d-c.top)return;u<d?this.scrollBy(0,(o.length-1)*this.lineHeight):this.scrollToRow(r.row)}},e.prototype.$calculateWrappedTextChunks=function(e,t){var n=this.$size.scrollerWidth-2*this.$padding,r=Math.floor(n/this.characterWidth)-2;r=r<=0?60:r;for(var i=e.split(/\r?\n/),o=[],s=0;s<i.length;s++){var a=this.session.$getDisplayTokens(i[s],t.column),l=this.session.$computeWrapSplits(a,r,this.session.$tabSize);if(l.length>0){var c=0;l.push(i[s].length);for(var d=0;d<l.length;d++){var u=i[s].slice(c,l[d]);o.push({text:u,wrapped:!0}),c=l[d]}}else o.push({text:i[s],wrapped:!1})}return o},e.prototype.removeGhostText=function(){if(this.$ghostText){var e=this.$ghostText.position;this.removeExtraToken(e.row,e.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},e.prototype.addToken=function(e,t,n,r){var i=this.session;i.bgTokenizer.lines[n]=null;var o={type:t,value:e},s=i.getTokens(n);if(null!=r&&s.length)for(var a=0,l=0;l<s.length;l++){var c=s[l];if(r<=(a+=c.value.length)){var d=c.value.length-(a-r),u=c.value.slice(0,d),h=c.value.slice(d);s.splice(l,1,{type:c.type,value:u},o,{type:c.type,value:h});break}}else s.push(o);this.updateLines(n,n)},e.prototype.hideTokensAfterPosition=function(e,t){for(var n=this.session.getTokens(e),r=0,i=!1,o=[],s=0;s<n.length;s++){var a=n[s];r+=a.value.length,"ghost_text"!==a.type&&(i?(o.push({type:a.type,value:a.value}),a.type="hidden_token"):r===t&&(i=!0))}return this.updateLines(e,e),o},e.prototype.removeExtraToken=function(e,t){this.session.bgTokenizer.lines[e]=null,this.updateLines(e,e)},e.prototype.setTheme=function(e,t){var n=this;if(this.$themeId=e,n._dispatchEvent("themeChange",{theme:e}),e&&"string"!=typeof e)o(e);else{var r=e||this.$options.theme.initialValue;s.loadModule(["theme",r],o)}function o(r){if(n.$themeId!=e)return t&&t();if(!r||!r.cssClass)throw new Error("couldn't load module "+e+" or it didn't call define");r.$id&&(n.$themeId=r.$id),i.importCssString(r.cssText,r.cssClass,n.container),n.theme&&i.removeCssClass(n.container,n.theme.cssClass);var o="padding"in r?r.padding:"padding"in(n.theme||{})?4:n.$padding;n.$padding&&o!=n.$padding&&n.setPadding(o),n.$theme=r.cssClass,n.theme=r,i.addCssClass(n.container,r.cssClass),i.setCssClass(n.container,"ace_dark",r.isDark),n.$size&&(n.$size.width=0,n.$updateSizeAsync()),n._dispatchEvent("themeLoaded",{theme:r}),t&&t(),w.isSafari&&n.scroller&&(n.scroller.style.background="red",n.scroller.style.background="")}},e.prototype.getTheme=function(){return this.$themeId},e.prototype.setStyle=function(e,t){i.setCssClass(this.container,e,!1!==t)},e.prototype.unsetStyle=function(e){i.removeCssClass(this.container,e)},e.prototype.setCursorStyle=function(e){i.setStyle(this.scroller.style,"cursor",e)},e.prototype.setMouseCursor=function(e){i.setStyle(this.scroller.style,"cursor",e)},e.prototype.attachToShadowRoot=function(){i.importCssString(v,"ace_editor.css",this.container)},e.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},e.prototype.$updateCustomScrollbar=function(e){var t=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,!0===e?(this.scrollBarV=new f(this.container,this),this.scrollBarH=new p(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",(function(e){t.$scrollAnimation||t.session.setScrollTop(e.data-t.scrollMargin.top)})),this.scrollBarH.addEventListener("scroll",(function(e){t.$scrollAnimation||t.session.setScrollLeft(e.data-t.scrollMargin.left)})),this.$scrollDecorator=new y(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new h(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.addEventListener("scroll",(function(e){t.$scrollAnimation||t.session.setScrollTop(e.data-t.scrollMargin.top)})),this.scrollBarH.addEventListener("scroll",(function(e){t.$scrollAnimation||t.session.setScrollLeft(e.data-t.scrollMargin.left)})))},e.prototype.$addResizeObserver=function(){if(window.ResizeObserver&&!this.$resizeObserver){var e=this;this.$resizeTimer=o.delayedCall((function(){e.destroyed||e.onResize()}),50),this.$resizeObserver=new window.ResizeObserver((function(t){var n=t[0].contentRect.width,r=t[0].contentRect.height;Math.abs(e.$size.width-n)>1||Math.abs(e.$size.height-r)>1?e.$resizeTimer.delay():e.$resizeTimer.cancel()})),this.$resizeObserver.observe(this.container)}},e}();k.prototype.CHANGE_CURSOR=1,k.prototype.CHANGE_MARKER=2,k.prototype.CHANGE_GUTTER=4,k.prototype.CHANGE_SCROLL=8,k.prototype.CHANGE_LINES=16,k.prototype.CHANGE_TEXT=32,k.prototype.CHANGE_SIZE=64,k.prototype.CHANGE_MARKER_BACK=128,k.prototype.CHANGE_MARKER_FRONT=256,k.prototype.CHANGE_FULL=512,k.prototype.CHANGE_H_SCROLL=1024,k.prototype.$changes=0,k.prototype.$padding=null,k.prototype.$frozen=!1,k.prototype.STEPS=8,r.implement(k.prototype,b),s.defineOptions(k.prototype,"renderer",{useResizeObserver:{set:function(e){!e&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):e&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(e){this.$gutterLayer.$useSvgGutterIcons=e},initialValue:!1},showFoldedAnnotations:{set:function(e){this.$gutterLayer.$showFoldedAnnotations=e},initialValue:!1},fadeFoldWidgets:{set:function(e){i.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(e){1==this.$textLayer.setHighlightIndentGuides(e)?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(e){this.$gutterLayer.setHighlightGutterLine(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(e){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){e=+e||0,this.$scrollPastEnd!=e&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(e){this.$updateCustomScrollbar(e)},initialValue:!1},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!w.isMobile&&!w.isIE}}),t.VirtualRenderer=k})),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/net"),o=e("../lib/event_emitter").EventEmitter,s=e("../config");function a(e){if("undefined"==typeof Worker)return{postMessage:function(){},terminate:function(){}};if(s.get("loadWorkerFromBlob")){var t=function(e){var t="importScripts('"+i.qualifyURL(e)+"');";try{return new Blob([t],{type:"application/javascript"})}catch(e){var n=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return n.append(t),n.getBlob("application/javascript")}}(e),n=(window.URL||window.webkitURL).createObjectURL(t);return new Worker(n)}return new Worker(e)}var l=function(e){e.postMessage||(e=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=e,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){r.implement(this,o),this.$createWorkerFromOldConfig=function(t,n,r,i,o){if(e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),s.get("packaged")||!e.toUrl)i=i||s.moduleUrl(n,"worker");else{var l=this.$normalizePath;i=i||l(e.toUrl("ace/worker/worker.js",null,"_"));var c={};t.forEach((function(t){c[t]=l(e.toUrl(t,null,"_").replace(/(\.js)?(\?.*)?$/,""))}))}return this.$worker=a(i),o&&this.send("importScripts",o),this.$worker.postMessage({init:!0,tlns:c,module:n,classname:r}),this.$worker},this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data)}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return i.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(e){e.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){if(n){var r=this.callbackId++;this.callbacks[r]=n,t.push(r)}this.send(e,t)},this.emit=function(e,t){try{t.data&&t.data.err&&(t.data.err={message:t.data.err.message,stack:t.data.err.stack,code:t.data.err.code}),this.$worker&&this.$worker.postMessage({event:e,data:{data:t.data}})}catch(e){console.error(e.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener,!0)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,e.length>50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(l.prototype),t.UIWorkerClient=function(e,t,n){var r=null,i=!1,a=Object.create(o),c=[],d=new l({messageBuffer:c,terminate:function(){},postMessage:function(e){c.push(e),r&&(i?setTimeout(u):u())}});d.setEmitSync=function(e){i=e};var u=function(){var e=c.shift();e.command?r[e.command].apply(r,e.args):e.event&&a._signal(e.event,e.data)};return a.postMessage=function(e){d.onMessage({data:e})},a.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},a.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},s.loadModule(["worker",t],(function(e){for(r=new e[n](a);c.length;)u()})),d},t.WorkerClient=l,t.createWorker=a})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(e,t,n){"use strict";var r=e("./range").Range,i=e("./lib/event_emitter").EventEmitter,o=e("./lib/oop"),s=function(){function e(e,t,n,r,i,o){var s=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=i,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=r,this.$onCursorChange=function(){setTimeout((function(){s.onCursorChange()}))},this.$pos=n;var a=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=a.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)}return e.prototype.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var i=this.pos;i.$insertRight=!0,i.detach(),i.markerId=n.addMarker(new r(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(n){var r=t.createAnchor(n.row,n.column);r.$insertRight=!0,r.detach(),e.others.push(r)})),n.setUndoSelect(!1)},e.prototype.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach((function(n){n.markerId=e.addMarker(new r(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)}))}},e.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},e.prototype.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row===t.end.row&&t.start.row===this.pos.row){this.$updating=!0;var n="insert"===e.action?t.end.column-t.start.column:t.start.column-t.end.column,i=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,o=t.start.column-this.pos.column;if(this.updateAnchors(e),i&&(this.length+=n),i&&!this.session.$fromUndo)if("insert"===e.action)for(var s=this.others.length-1;s>=0;s--){var a={row:(l=this.others[s]).row,column:l.column+o};this.doc.insertMergedLines(a,e.lines)}else if("remove"===e.action)for(s=this.others.length-1;s>=0;s--){var l;a={row:(l=this.others[s]).row,column:l.column+o},this.doc.remove(new r(a.row,a.column,a.row,a.column-n))}this.$updating=!1,this.updateMarkers()}},e.prototype.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},e.prototype.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,i){t.removeMarker(n.markerId),n.markerId=t.addMarker(new r(n.row,n.column,n.row,n.column+e.length),i,null,!1)};n(this.pos,this.mainClass);for(var i=this.others.length;i--;)n(this.others[i],this.othersClass)}},e.prototype.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},e.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},e.prototype.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n<t;n++)e.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},e}();o.implement(s.prototype,i),t.PlaceHolder=s})),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){var r=e("../lib/event"),i=e("../lib/useragent");function o(e,t){return e.row==t.row&&e.column==t.column}t.onMouseDown=function(e){var t=e.domEvent,n=t.altKey,s=t.shiftKey,a=t.ctrlKey,l=e.getAccelKey(),c=e.getButton();if(a&&i.isMac&&(c=t.button),e.editor.inMultiSelectMode&&2==c)e.editor.textInput.onContextMenu(e.domEvent);else if(a||n||l){if(0===c){var d,u=e.editor,h=u.selection,p=u.inMultiSelectMode,f=e.getDocumentPosition(),g=h.getCursor(),m=e.inSelection()||h.isEmpty()&&o(f,g),b=e.x,v=e.y,y=u.session,w=u.renderer.pixelToScreenCoordinates(b,v),x=w;if(u.$mouseHandler.$enableJumpToDef)a&&n||l&&n?d=s?"block":"add":n&&u.$blockSelectEnabled&&(d="block");else if(l&&!n){if(d="add",!p&&s)return}else n&&u.$blockSelectEnabled&&(d="block");if(d&&i.isMac&&t.ctrlKey&&u.$mouseHandler.cancelContextMenu(),"add"==d){if(!p&&m)return;if(!p){var k=h.toOrientedRange();u.addSelectionMarker(k)}var _=h.rangeList.rangeAtPoint(f);u.inVirtualSelectionMode=!0,s&&(_=null,k=h.ranges[0]||k,u.removeSelectionMarker(k)),u.once("mouseup",(function(){var e=h.toOrientedRange();_&&e.isEmpty()&&o(_.cursor,e.cursor)?h.substractPoint(e.cursor):(s?h.substractPoint(k.cursor):k&&(u.removeSelectionMarker(k),h.addRange(k)),h.addRange(e)),u.inVirtualSelectionMode=!1}))}else if("block"==d){var C;e.stop(),u.inVirtualSelectionMode=!0;var T=[],S=function(){var e=u.renderer.pixelToScreenCoordinates(b,v),t=y.screenToDocumentPosition(e.row,e.column,e.offsetX);o(x,e)&&o(t,h.lead)||(x=e,u.selection.moveToPosition(t),u.renderer.scrollCursorIntoView(),u.removeSelectionMarkers(T),T=h.rectangularRangeBlock(x,w),u.$mouseHandler.$clickSelection&&1==T.length&&T[0].isEmpty()&&(T[0]=u.$mouseHandler.$clickSelection.clone()),T.forEach(u.addSelectionMarker,u),u.updateSelectionMarkers())};p&&!l?h.toSingleRange():!p&&l&&(C=h.toOrientedRange(),u.addSelectionMarker(C)),s?w=y.documentToScreenPosition(h.lead):h.moveToPosition(f),x={row:-1,column:-1};var E=S;r.capture(u.container,(function(e){b=e.clientX,v=e.clientY}),(function(e){S(),clearInterval($),u.removeSelectionMarkers(T),T.length||(T=[h.toOrientedRange()]),C&&(u.removeSelectionMarker(C),h.toSingleRange(C));for(var t=0;t<T.length;t++)h.addRange(T[t]);u.inVirtualSelectionMode=!1,u.$mouseHandler.$clickSelection=null}));var $=setInterval((function(){E()}),20);return e.preventDefault()}}}else 0===c&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}})),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],(function(e,t,n){t.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(e){e.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(e){e.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(e){e.multiSelect.rangeCount>1?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var r=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new r(t.multiSelectCommands)})),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],(function(e,t,n){var r=e("./range_list").RangeList,i=e("./range").Range,o=e("./selection").Selection,s=e("./mouse/multi_select_handler").onMouseDown,a=e("./lib/event"),l=e("./lib/lang"),c=e("./commands/multi_select_commands");t.commands=c.defaultCommands.concat(c.multiSelectCommands);var d=new(0,e("./search").Search),u=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(u.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var r=this.rangeList.add(e);return this.$onAddRange(e),r.length&&this.$onRemoveRange(r),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var r=this.ranges.indexOf(e[n]);this.ranges.splice(r,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new r,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var e=this.ranges.length?this.ranges:[this.getRange()],t=[],n=0;n<e.length;n++){var r=e[n],o=r.start.row,s=r.end.row;if(o===s)t.push(r.clone());else{for(t.push(new i(o,r.start.column,o,this.session.getLine(o).length));++o<s;)t.push(this.getLineRange(o,!0));t.push(new i(s,0,s,r.end.column))}0!=n||this.isBackwards()||(t=t.reverse())}for(this.toSingleRange(),n=t.length;n--;)this.addRange(t[n])},this.joinSelections=function(){var e=this.rangeList.ranges,t=e[e.length-1],n=i.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=i.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var r=this.session.documentToScreenPosition(this.cursor),o=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(r,o).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var r=[],o=e.column<t.column;if(o)var s=e.column,a=t.column,l=e.offsetX,c=t.offsetX;else s=t.column,a=e.column,l=t.offsetX,c=e.offsetX;var d,u,h,p=e.row<t.row;if(p)var f=e.row,g=t.row;else f=t.row,g=e.row;s<0&&(s=0),f<0&&(f=0),f==g&&(n=!0);for(var m=f;m<=g;m++){var b=i.fromPoints(this.session.screenToDocumentPosition(m,s,l),this.session.screenToDocumentPosition(m,a,c));if(b.isEmpty()){if(d&&(h=d,(u=b.end).row==h.row&&u.column==h.column))break;d=b.end}b.cursor=o?b.start:b.end,r.push(b)}if(p&&r.reverse(),!n){for(var v=r.length-1;r[v].isEmpty()&&v>0;)v--;if(v>0)for(var y=0;r[y].isEmpty();)y++;for(var w=v;w>=y;w--)r[w].isEmpty()&&r.splice(w,1)}return r}}.call(o.prototype);var h=e("./editor").Editor;function p(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",s),e.commands.addCommands(c.defaultCommands),function(e){if(e.textInput){var t=e.textInput.getElement(),n=!1;a.addListener(t,"keydown",(function(t){var i=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&i?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&r()}),e),a.addListener(t,"keyup",r,e),a.addListener(t,"blur",r,e)}function r(t){n&&(e.renderer.setMouseCursor(""),n=!1)}}(e))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var r=e[n];if(r.marker){this.session.removeMarker(r.marker);var i=t.indexOf(r);-1!=i&&t.splice(i,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(c.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(c.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?r=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?r=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),r=t.exec(n,e.args||{})):r=t.multiSelectAction(n,e.args||{});else{var r=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return r}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var r,i=n&&n.keepOrder,s=1==n||n&&n.$byLines,a=this.session,l=this.selection,c=l.rangeList,d=(i?l:c).ranges;if(!d.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var u=l._eventRegistry;l._eventRegistry={};var h=new o(a);this.inVirtualSelectionMode=!0;for(var p=d.length;p--;){if(s)for(;p>0&&d[p].start.row==d[p-1].end.row;)p--;h.fromOrientedRange(d[p]),h.index=p,this.selection=a.selection=h;var f=e.exec?e.exec(this,t||{}):e(this,t||{});r||void 0===f||(r=f),h.toOrientedRange(d[p])}h.detach(),this.selection=a.selection=l,this.inVirtualSelectionMode=!1,l._eventRegistry=u,l.mergeOverlappingRanges(),l.ranges[0]&&l.fromOrientedRange(l.ranges[0]);var g=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),g&&g.from==g.to&&this.renderer.animateScrolling(g.from),r}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],r=0;r<t.length;r++)n.push(this.session.getTextRange(t[r]));var i=this.session.getDocument().getNewLineCharacter();(e=n.join(i)).length==(n.length-1)*i.length&&(e="")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var n=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&t==this.multiSelect.anchor)return;var r=t==this.multiSelect.anchor?n.cursor==n.start?n.end:n.start:n.cursor;r.row!=t.row||this.session.$clipPositionToDocument(r.row,r.column).column!=t.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(e,t,n){if((t=t||{}).needle=e||t.needle,null==t.needle){var r=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();t.needle=this.session.getTextRange(r)}this.$search.set(t);var i=this.$search.findAll(this.session);if(!i.length)return 0;var o=this.multiSelect;n||o.toSingleRange(i[0]);for(var s=i.length;s--;)o.addRange(i[s],!0);return r&&o.rangeList.rangeAtPoint(r.start)&&o.addRange(r,!0),i.length},this.selectMoreLines=function(e,t){var n=this.selection.toOrientedRange(),r=n.cursor==n.end,o=this.session.documentToScreenPosition(n.cursor);this.selection.$desiredColumn&&(o.column=this.selection.$desiredColumn);var s,a=this.session.screenToDocumentPosition(o.row+e,o.column);if(n.isEmpty())c=a;else var l=this.session.documentToScreenPosition(r?n.end:n.start),c=this.session.screenToDocumentPosition(l.row+e,l.column);if(r?(s=i.fromPoints(a,c)).cursor=s.start:(s=i.fromPoints(c,a)).cursor=s.end,s.desiredColumn=o.column,this.selection.inMultiSelectMode){if(t)var d=n.cursor}else this.selection.addRange(n);this.selection.addRange(s),d&&this.selection.substractPoint(d)},this.transposeSelections=function(e){for(var t=this.session,n=t.multiSelect,r=n.ranges,i=r.length;i--;)if((a=r[i]).isEmpty()){var o=t.getWordRange(a.start.row,a.start.column);a.start.row=o.start.row,a.start.column=o.start.column,a.end.row=o.end.row,a.end.column=o.end.column}n.mergeOverlappingRanges();var s=[];for(i=r.length;i--;){var a=r[i];s.unshift(t.getTextRange(a))}for(e<0?s.unshift(s.pop()):s.push(s.shift()),i=r.length;i--;){var l=(a=r[i]).clone();t.replace(a,s[i]),a.start.row=l.start.row,a.start.column=l.start.column}n.fromOrientedRange(n.ranges[0])},this.selectMore=function(e,t,n){var r=this.session,i=r.multiSelect.toOrientedRange();if(!i.isEmpty()||((i=r.getWordRange(i.start.row,i.start.column)).cursor=-1==e?i.start:i.end,this.multiSelect.addRange(i),!n)){var o=r.getTextRange(i),s=function(e,t,n){return d.$options.wrap=!0,d.$options.needle=t,d.$options.backwards=-1==n,d.find(e)}(r,o,e);s&&(s.cursor=-1==e?s.start:s.end,this.session.unfold(s),this.multiSelect.addRange(s),this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(i.cursor)}},this.alignCursors=function(){var e=this.session,t=e.multiSelect,n=t.ranges,r=-1,o=n.filter((function(e){if(e.cursor.row==r)return!0;r=e.cursor.row}));if(n.length&&o.length!=n.length-1){o.forEach((function(e){t.substractPoint(e.cursor)}));var s=0,a=1/0,c=n.map((function(t){var n=t.cursor,r=e.getLine(n.row).substr(n.column).search(/\S/g);return-1==r&&(r=0),n.column>s&&(s=n.column),r<a&&(a=r),r}));n.forEach((function(t,n){var r=t.cursor,o=s-r.column,d=c[n]-a;o>d?e.insert(r,l.stringRepeat(" ",o-d)):e.remove(new i(r.row,r.column,r.row,r.column-o+d)),t.start.column=t.end.column=s,t.start.row=t.end.row=r.row,t.cursor=t.end})),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var d=this.selection.getRange(),u=d.start.row,h=d.end.row,p=u==h;if(p){var f,g=this.session.getLength();do{f=this.session.getLine(h)}while(/[=:]/.test(f)&&++h<g);do{f=this.session.getLine(u)}while(/[=:]/.test(f)&&--u>0);u<0&&(u=0),h>=g&&(h=g-1)}var m=this.session.removeFullLines(u,h);m=this.$reAlignText(m,p),this.session.insert({row:u,column:0},m.join("\n")+"\n"),p||(d.start.column=0,d.end.column=m[m.length-1].length),this.selection.setRange(d)}},this.$reAlignText=function(e,t){var n,r,i,o=!0,s=!0;return e.map((function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,r=t[2].length,i=t[3].length,t):(n+r+i!=t[1].length+t[2].length+t[3].length&&(s=!1),n!=t[1].length&&(o=!1),n>t[1].length&&(n=t[1].length),r<t[2].length&&(r=t[2].length),i>t[3].length&&(i=t[3].length),t):[e]})).map(t?c:o?s?function(e){return e[2]?a(n+r-e[2].length)+e[2]+a(i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:c:function(e){return e[2]?a(n)+e[2]+a(i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]});function a(e){return l.stringRepeat(" ",e)}function c(e){return e[2]?a(n)+e[2]+a(r-e[2].length+i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(h.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=p,e("./config").defineOptions(h.prototype,"editor",{enableMultiselect:{set:function(e){p(this),e?this.on("mousedown",s):this.off("mousedown",s)},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../../range").Range,i=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);return this.foldingStartMarker.test(r)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(r)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var i=/\S/,o=e.getLine(t),s=o.search(i);if(-1!=s){for(var a=n||o.length,l=e.getLength(),c=t,d=t;++t<l;){var u=e.getLine(t).search(i);if(-1!=u){if(u<=s){var h=e.getTokenAt(t,0);if(!h||"string"!==h.type)break}d=t}}if(d>c){var p=e.getLine(d).length;return new r(c,a,d,p)}}},this.openingBracketBlock=function(e,t,n,i,o){var s={row:n,column:i+1},a=e.$findClosingBracket(t,s,o);if(a){var l=e.foldWidgets[a.row];return null==l&&(l=e.getFoldWidget(a.row)),"start"==l&&a.row>s.row&&(a.row--,a.column=e.getLine(a.row).length),r.fromPoints(s,a)}},this.closingBracketBlock=function(e,t,n,i,o){var s={row:n,column:i},a=e.$findOpeningBracket(t,s);if(a)return a.column++,s.column--,r.fromPoints(a,s)}}).call(i.prototype)})),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../range").Range,o=e("../config").nls;t.showErrorMarker=function(e,t){var n=e.session,s=e.getCursorPosition(),a=s.row,l=n.widgetManager.getWidgetsAtRow(a).filter((function(e){return"errorMarker"==e.type}))[0];l?l.destroy():a-=t;var c,d=function(e,t,n){var r=e.getAnnotations().sort(i.comparePoints);if(r.length){var o=function(e,t,n){for(var r=0,i=e.length-1;r<=i;){var o=r+i>>1,s=n(t,e[o]);if(s>0)r=o+1;else{if(!(s<0))return o;i=o-1}}return-(r+1)}(r,{row:t,column:-1},i.comparePoints);o<0&&(o=-o-1),o>=r.length?o=n>0?0:r.length-1:0===o&&n<0&&(o=r.length-1);var s=r[o];if(s&&n){if(s.row===t){do{s=r[o+=n]}while(s&&s.row===t);if(!s)return r.slice()}var a=[];t=s.row;do{a[n<0?"unshift":"push"](s),s=r[o+=n]}while(s&&s.row==t);return a.length&&a}}}(n,a,t);if(d){var u=d[0];s.column=(u.pos&&"number"!=typeof u.column?u.pos.sc:u.column)||0,s.row=u.row,c=e.renderer.$gutterLayer.$annotations[s.row]}else{if(l)return;c={displayText:[o("error-marker.good-state","Looks good!")],className:"ace_ok"}}e.session.unfold(s.row),e.selection.moveToPosition(s);var h={row:s.row,fixedWidth:!0,coverGutter:!0,el:r.createElement("div"),type:"errorMarker"},p=h.el.appendChild(r.createElement("div")),f=h.el.appendChild(r.createElement("div"));f.className="error_widget_arrow "+c.className;var g=e.renderer.$cursorLayer.getPixelPosition(s).left;f.style.left=g+e.renderer.gutterWidth-5+"px",h.el.className="error_widget_wrapper",p.className="error_widget "+c.className,c.displayText.forEach((function(e,t){p.appendChild(r.createTextNode(e)),t<c.displayText.length-1&&p.appendChild(r.createElement("br"))})),p.appendChild(r.createElement("div"));var m=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return h.destroy(),{command:"null"}};h.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(m),n.widgetManager.removeLineWidget(h),e.off("changeSelection",h.destroy),e.off("changeSession",h.destroy),e.off("mouseup",h.destroy),e.off("change",h.destroy))},e.keyBinding.addKeyboardHandler(m),e.on("changeSelection",h.destroy),e.on("changeSession",h.destroy),e.on("mouseup",h.destroy),e.on("change",h.destroy),e.session.widgetManager.addLineWidget(h),h.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:h.el.offsetHeight})},r.importCssString("\n .error_widget_wrapper {\n background: inherit;\n color: inherit;\n border:none\n }\n .error_widget {\n border-top: solid 2px;\n border-bottom: solid 2px;\n margin: 5px 0;\n padding: 10px 40px;\n white-space: pre-wrap;\n }\n .error_widget.ace_error, .error_widget_arrow.ace_error{\n border-color: #ff5a5a\n }\n .error_widget.ace_warning, .error_widget_arrow.ace_warning{\n border-color: #F1D817\n }\n .error_widget.ace_info, .error_widget_arrow.ace_info{\n border-color: #5a5a5a\n }\n .error_widget.ace_ok, .error_widget_arrow.ace_ok{\n border-color: #5aaa5a\n }\n .error_widget_arrow {\n position: absolute;\n border: solid 5px;\n border-top-color: transparent!important;\n border-right-color: transparent!important;\n border-left-color: transparent!important;\n top: -5px;\n }\n","error_marker.css",!1)})),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],(function(e,t,n){"use strict";e("./loader_build")(t);var r=e("./lib/dom"),i=e("./range").Range,o=e("./editor").Editor,s=e("./edit_session").EditSession,a=e("./undomanager").UndoManager,l=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.edit=function(e,n){if("string"==typeof e){var i=e;if(!(e=document.getElementById(i)))throw new Error("ace.edit can't find div #"+i)}if(e&&e.env&&e.env.editor instanceof o)return e.env.editor;var s="";if(e&&/input|textarea/i.test(e.tagName)){var a=e;s=a.value,e=r.createElement("pre"),a.parentNode.replaceChild(e,a)}else e&&(s=e.textContent,e.innerHTML="");var c=t.createEditSession(s),d=new o(new l(e),c,n),u={document:c,editor:d,onResize:d.resize.bind(d,null)};return a&&(u.textarea=a),d.on("destroy",(function(){u.editor.container.env=null})),d.container.env=d.env=u,d},t.createEditSession=function(e,t){var n=new s(e,t);return n.setUndoManager(new a),n},t.Range=i,t.Editor=o,t.EditSession=s,t.UndoManager=a,t.VirtualRenderer=l;var c=t.config.version;t.version=c})),ace.require(["ace/ace"],(function(t){t&&(t.config.init(!0),t.define=ace.define);var n=function(){return this}();for(var r in n||"undefined"==typeof window||(n=window),n||"undefined"==typeof self||(n=self),n.ace||(n.ace=t),t)t.hasOwnProperty(r)&&(n.ace[r]=t[r]);n.ace.default=n.ace,e&&(e.exports=n.ace)}))},44(e,t,n){e=n.nmd(e),ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],(function(e,t,n){"use strict";var r=e("./lib/dom"),i=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,s=e("./lib/lang"),a=e("./range").Range,l=e("./range_list").RangeList,c=e("./keyboard/hash_handler").HashHandler,d=e("./tokenizer").Tokenizer,u=e("./clipboard"),h={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,n){var r=e.session.getTextRange();return n?r.replace(/\n\r?([ \t]*\S)/g,"\n"+n+"$1"):r},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(e){return u.getText&&u.getText()},FILENAME:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^/\\]*$/,"")},FILEPATH:function(e){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.start||""},BLOCK_COMMENT_END:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.end||""},LINE_COMMENT:function(e){return(e.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:p.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:p.bind(null,{year:"2-digit"}),CURRENT_MONTH:p.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:p.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:p.bind(null,{month:"short"}),CURRENT_DATE:p.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:p.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:p.bind(null,{weekday:"short"}),CURRENT_HOUR:p.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:p.bind(null,{minute:"2-digit"}),CURRENT_SECOND:p.bind(null,{second:"2-digit"})};function p(e){var t=(new Date).toLocaleString("en-us",e);return 1==t.length?"0"+t:t}h.SELECTED_TEXT=h.SELECTION;var f=function(){function e(){this.snippetMap={},this.snippetNameMap={},this.variables=h}return e.prototype.getTokenizer=function(){return e.$tokenizer||this.createTokenizer()},e.prototype.createTokenizer=function(){function t(e){return e=e.substr(1),/^\d+$/.test(e)?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function n(e){return"(?:[^\\\\"+e+"]|\\\\.)"}var r={regex:"/("+n("/")+"+)/",onMatch:function(e,t,n){var r=n[0];return r.fmtString=!0,r.guard=e.slice(1,-1),r.flag="",""},next:"formatString"};return e.$tokenizer=new d({start:[{regex:/\\./,onMatch:function(e,t,n){var r=e[1];return("}"==r&&n.length||-1!="`$\\".indexOf(r))&&(e=r),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:t},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(e,n,r){var i=t(e.substr(1));return r.unshift(i[0]),i},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+n("\\|")+"*\\|",onMatch:function(e,t,n){var r=e.slice(1,-1).replace(/\\[,|\\]|,/g,(function(e){return 2==e.length?e[1]:"\0"})).split("\0").map((function(e){return{value:e}}));return n[0].choices=r,[r[0]]},next:"start"},r,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectElse?(n[0].expectElse=!1,n[0].ifEnd={elseEnd:n[0]},[n[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(e,t,n){var r=e[1];return"}"==r&&n.length||-1!="`$\\".indexOf(r)?e=r:"n"==r?e="\n":"t"==r?e="\t":-1!="ulULE".indexOf(r)&&(e={changeCase:r,local:r>"a"}),[e]}},{regex:"/\\w*}",onMatch:function(e,t,n){var r=n.shift();return r&&(r.flag=e.slice(1,-1)),this.next=r&&r.tabstopId?"start":"",[r||e]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(e,t,n){return[{text:e.slice(1)}]}},{regex:/\${\w+/,onMatch:function(e,t,n){var r={text:e.slice(2)};return n.unshift(r),[r]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(e,t,n){var r=n.shift();return this.next=r&&r.tabstopId?"start":"",[r||e]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(e,t,n){return n[0].formatFunction=e.slice(2,-1),[n.shift()]},next:"formatString"},r,{regex:/:[\?\-+]?/,onMatch:function(e,t,n){"+"==e[1]&&(n[0].ifEnd=n[0]),"?"==e[1]&&(n[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),e.$tokenizer},e.prototype.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map((function(e){return e.value||e}))},e.prototype.getVariableValue=function(e,t,n){if(/^\d+$/.test(t))return(this.variables.__||{})[t]||"";if(/^[A-Z]\d+$/.test(t))return(this.variables[t[0]+"__"]||{})[t.substr(1)]||"";if(t=t.replace(/^TM_/,""),!this.variables.hasOwnProperty(t))return"";var r=this.variables[t];return"function"==typeof r&&(r=this.variables[t](e,t,n)),r??""},e.prototype.tmStrFormat=function(e,t,n){if(!t.fmt)return e;var r=t.flag||"",i=t.guard;i=new RegExp(i,r.replace(/[^gim]/g,""));var o="string"==typeof t.fmt?this.tokenizeTmSnippet(t.fmt,"formatString"):t.fmt,s=this,a=e.replace(i,(function(){var e=s.variables.__;s.variables.__=[].slice.call(arguments);for(var t=s.resolveVariables(o,n),r="E",i=0;i<t.length;i++){var a=t[i];if("object"==typeof a)if(t[i]="",a.changeCase&&a.local){var l=t[i+1];l&&"string"==typeof l&&("u"==a.changeCase?t[i]=l[0].toUpperCase():t[i]=l[0].toLowerCase(),t[i+1]=l.substr(1))}else a.changeCase&&(r=a.changeCase);else"U"==r?t[i]=a.toUpperCase():"L"==r&&(t[i]=a.toLowerCase())}return s.variables.__=e,t.join("")}));return a},e.prototype.tmFormatFunction=function(e,t,n){return"upcase"==t.formatFunction?e.toUpperCase():"downcase"==t.formatFunction?e.toLowerCase():e},e.prototype.resolveVariables=function(e,t){for(var n=[],r="",i=!0,o=0;o<e.length;o++){var s=e[o];if("string"!=typeof s){if(s){if(i=!1,s.fmtString){var a=e.indexOf(s,o+1);-1==a&&(a=e.length),s.fmt=e.slice(o+1,a),o=a}if(s.text){var l=this.getVariableValue(t,s.text,r)+"";s.fmtString&&(l=this.tmStrFormat(l,s,t)),s.formatFunction&&(l=this.tmFormatFunction(l,s,t)),l&&!s.ifEnd?(n.push(l),c(s)):!l&&s.ifEnd&&c(s.ifEnd)}else s.elseEnd?c(s.elseEnd):(null!=s.tabstopId||null!=s.changeCase)&&n.push(s)}}else n.push(s),"\n"==s?(i=!0,r=""):i&&(r=/^\t*/.exec(s)[0],i=/\S/.test(s))}function c(t){var n=e.indexOf(t,o+1);-1!=n&&(o=n)}return n},e.prototype.getDisplayTextForSnippet=function(e,t){return g.call(this,e,t).text},e.prototype.insertSnippetForSelection=function(e,t,n){void 0===n&&(n={});var r=g.call(this,e,t,n),i=e.getSelectionRange(),o=e.session.replace(i,r.text),s=new m(e),a=e.inVirtualSelectionMode&&e.selection.index;s.addTabstops(r.tabstops,i.start,o,a)},e.prototype.insertSnippet=function(e,t,n){void 0===n&&(n={});var r=this;if(e.inVirtualSelectionMode)return r.insertSnippetForSelection(e,t,n);e.forEachSelection((function(){r.insertSnippetForSelection(e,t,n)}),null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},e.prototype.$getScope=function(e){var t=e.session.$mode.$id||"";if("html"===(t=t.split("/").pop())||"php"===t){"php"!==t||e.session.$mode.inlinePhp||(t="html");var n=e.getCursorPosition(),r=e.session.getState(n.row);"object"==typeof r&&(r=r[0]),r.substring&&("js-"==r.substring(0,3)?t="javascript":"css-"==r.substring(0,4)?t="css":"php-"==r.substring(0,4)&&(t="php"))}return t},e.prototype.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],r=this.snippetMap;return r[t]&&r[t].includeScopes&&n.push.apply(n,r[t].includeScopes),n.push("_"),n},e.prototype.expandWithTab=function(e,t){var n=this,r=e.forEachSelection((function(){return n.expandSnippetForSelection(e,t)}),null,{keepOrder:!0});return r&&e.tabstopManager&&e.tabstopManager.tabNext(),r},e.prototype.expandSnippetForSelection=function(e,t){var n,r=e.getCursorPosition(),i=e.session.getLine(r.row),o=i.substring(0,r.column),s=i.substr(r.column),a=this.snippetMap;return this.getActiveScopes(e).some((function(e){var t=a[e];return t&&(n=this.findMatchingSnippet(t,o,s)),!!n}),this),!!n&&(t&&t.dryRun||(e.session.doc.removeInLine(r.row,r.column-n.replaceBefore.length,r.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null),!0)},e.prototype.findMatchingSnippet=function(e,t,n){for(var r=e.length;r--;){var i=e[r];if((!i.startRe||i.startRe.test(t))&&(!i.endRe||i.endRe.test(n))&&(i.startRe||i.endRe))return i.matchBefore=i.startRe?i.startRe.exec(t):[""],i.matchAfter=i.endRe?i.endRe.exec(n):[""],i.replaceBefore=i.triggerRe?i.triggerRe.exec(t)[0]:"",i.replaceAfter=i.endTriggerRe?i.endTriggerRe.exec(n)[0]:"",i}},e.prototype.register=function(e,t){var n=this.snippetMap,r=this.snippetNameMap,i=this;function o(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function a(e,t,n){return e=o(e),t=o(t),n?(e=t+e)&&"$"!=e[e.length-1]&&(e+="$"):(e+=t)&&"^"!=e[0]&&(e="^"+e),new RegExp(e)}function l(e){e.scope||(e.scope=t||"_"),t=e.scope,n[t]||(n[t]=[],r[t]={});var o=r[t];if(e.name){var l=o[e.name];l&&i.unregister(l),o[e.name]=e}n[t].push(e),e.prefix&&(e.tabTrigger=e.prefix),!e.content&&e.body&&(e.content=Array.isArray(e.body)?e.body.join("\n"):e.body),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=s.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=a(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger),e.endRe=a(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger))}e||(e=[]),Array.isArray(e)?e.forEach(l):Object.keys(e).forEach((function(t){l(e[t])})),this._signal("registerSnippets",{scope:t})},e.prototype.unregister=function(e,t){var n=this.snippetMap,r=this.snippetNameMap;function i(e){var i=r[e.scope||t];if(i&&i[e.name]){delete i[e.name];var o=n[e.scope||t],s=o&&o.indexOf(e);s>=0&&o.splice(s,1)}}e.content?i(e):Array.isArray(e)&&e.forEach(i)},e.prototype.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var t,n=[],r={},i=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;t=i.exec(e);){if(t[1])try{r=JSON.parse(t[1]),n.push(r)}catch(e){}if(t[4])r.content=t[4].replace(/^\t/gm,""),n.push(r),r={};else{var o=t[2],s=t[3];if("regex"==o){var a=/\/((?:[^\/\\]|\\.)*)|$/g;r.guard=a.exec(s)[1],r.trigger=a.exec(s)[1],r.endTrigger=a.exec(s)[1],r.endGuard=a.exec(s)[1]}else"snippet"==o?(r.tabTrigger=s.match(/^\S*/)[0],r.name||(r.name=s)):o&&(r[o]=s)}}return n},e.prototype.getSnippetByName=function(e,t){var n,r=this.snippetNameMap;return this.getActiveScopes(t).some((function(t){var i=r[t];return i&&(n=i[e]),!!n}),this),n},e}();i.implement(f.prototype,o);var g=function(e,t,n){void 0===n&&(n={});var r=e.getCursorPosition(),i=e.session.getLine(r.row),o=e.session.getTabString(),s=i.match(/^\s*/)[0];r.column<s.length&&(s=s.slice(0,r.column)),t=t.replace(/\r/g,"");var a=this.tokenizeTmSnippet(t);a=(a=this.resolveVariables(a,e)).map((function(e){return"\n"!=e||n.excludeExtraIndent?"string"==typeof e?e.replace(/\t/g,o):e:e+s}));var l=[];a.forEach((function(e,t){if("object"==typeof e){var n=e.tabstopId,r=l[n];if(r||((r=l[n]=[]).index=n,r.value="",r.parents={}),-1===r.indexOf(e)){e.choices&&!r.choices&&(r.choices=e.choices),r.push(e);var i=a.indexOf(e,t+1);if(-1!==i){var o=a.slice(t+1,i);o.some((function(e){return"object"==typeof e}))&&!r.value?r.value=o:!o.length||r.value&&"string"==typeof r.value||(r.value=o.join(""))}}}})),l.forEach((function(e){e.length=0}));var c={};function d(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if("object"==typeof r){if(c[r.tabstopId])continue;r=t[e.lastIndexOf(r,n-1)]||{tabstopId:r.tabstopId}}t[n]=r}return t}for(var u=0;u<a.length;u++){var h=a[u];if("object"==typeof h){var p=h.tabstopId,f=l[p],g=a.indexOf(h,u+1);if(c[p])c[p]===h&&(delete c[p],Object.keys(c).forEach((function(e){f.parents[e]=!0})));else{c[p]=h;var m=f.value;"string"!=typeof m?m=d(m):h.fmt&&(m=this.tmStrFormat(m,h,e)),a.splice.apply(a,[u+1,Math.max(0,g-u)].concat(m,h)),-1===f.indexOf(h)&&f.push(h)}}}var b=0,v=0,y="";return a.forEach((function(e){if("string"==typeof e){var t=e.split("\n");t.length>1?(v=t[t.length-1].length,b+=t.length-1):v+=e.length,y+=e}else e&&(e.start?e.end={row:b,column:v}:e.start={row:b,column:v})})),{text:y,tabstops:l,tokens:a}},m=function(){function e(e){if(this.index=0,this.ranges=[],this.tabstops=[],e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=s.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)}return e.prototype.attach=function(e){this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.session=e.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},e.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},e.prototype.onChange=function(e){for(var t="r"==e.action[0],n=this.selectedTabstop||{},r=n.parents||{},i=this.tabstops.slice(),o=0;o<i.length;o++){var s=i[o],a=s==n||r[s.index];if(s.rangeList.$bias=a?0:1,"remove"==e.action&&s!==n){var l=s.parents&&s.parents[n.index],c=s.rangeList.pointIndex(e.start,l);c=c<0?-c-1:c+1;var d=s.rangeList.pointIndex(e.end,l);d=d<0?-d-1:d-1;for(var u=s.rangeList.ranges.slice(c,d),h=0;h<u.length;h++)this.removeRange(u[h])}s.rangeList.$onChange(e)}var p=this.session;this.$inChange||!t||1!=p.getLength()||p.getValue()||this.detach()},e.prototype.updateLinkedFields=function(){var e=this.selectedTabstop;if(e&&e.hasLinkedRanges&&e.firstNonLinked){this.$inChange=!0;for(var n=this.session,r=n.getTextRange(e.firstNonLinked),i=0;i<e.length;i++){var o=e[i];if(o.linked){var s=o.original,a=t.snippetManager.tmStrFormat(r,s,this.editor);n.replace(o,a)}}this.$inChange=!1}},e.prototype.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},e.prototype.onChangeSelection=function(){if(this.editor){for(var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty(),r=0;r<this.ranges.length;r++)if(!this.ranges[r].linked){var i=this.ranges[r].contains(e.row,e.column),o=n||this.ranges[r].contains(t.row,t.column);if(i&&o)return}this.detach()}},e.prototype.onChangeSession=function(){this.detach()},e.prototype.tabNext=function(e){var t=this.tabstops.length,n=this.index+(e||1);(n=Math.min(Math.max(n,1),t))==t&&(n=0),this.selectTabstop(n),this.updateTabstopMarkers(),0===n&&this.detach()},e.prototype.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];if(t&&this.addTabstopMarkers(t),this.index=e,(t=this.tabstops[this.index])&&t.length){this.selectedTabstop=t;var n=t.firstNonLinked||t;if(t.choices&&(n.cursor=n.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(n);else{var r=this.editor.multiSelect;r.toSingleRange(n);for(var i=0;i<t.length;i++)t.hasLinkedRanges&&t[i].linked||r.addRange(t[i].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},e.prototype.addTabstops=function(e,t,n){var r=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!e[0]){var i=a.fromPoints(n,n);v(i.start,t),v(i.end,t),e[0]=[i],e[0].index=0}var o=[this.index+1,0],s=this.ranges,c=this.snippetId=(this.snippetId||0)+1;e.forEach((function(e,n){var i=this.$openTabstops[n]||e;i.snippetId=c;for(var d=0;d<e.length;d++){var u=e[d],h=a.fromPoints(u.start,u.end||u.start);b(h.start,t),b(h.end,t),h.original=u,h.tabstop=i,s.push(h),i!=e?i.unshift(h):i[d]=h,u.fmtString||i.firstNonLinked&&r?(h.linked=!0,i.hasLinkedRanges=!0):i.firstNonLinked||(i.firstNonLinked=h)}i.firstNonLinked||(i.hasLinkedRanges=!1),i===e&&(o.push(i),this.$openTabstops[n]=i),this.addTabstopMarkers(i),i.rangeList=i.rangeList||new l,i.rangeList.$bias=0,i.rangeList.addList(i)}),this),o.length>2&&(this.tabstops.length&&o.push(o.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,o))},e.prototype.addTabstopMarkers=function(e){var t=this.session;e.forEach((function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))}))},e.prototype.removeTabstopMarkers=function(e){var t=this.session;e.forEach((function(e){t.removeMarker(e.markerId),e.markerId=null}))},e.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var e=this.selectedTabstop.snippetId;0===this.selectedTabstop.index&&e--,this.tabstops.forEach((function(t){t.snippetId===e?this.addTabstopMarkers(t):this.removeTabstopMarkers(t)}),this)}},e.prototype.removeRange=function(e){var t=e.tabstop.indexOf(e);-1!=t&&e.tabstop.splice(t,1),-1!=(t=this.ranges.indexOf(e))&&this.ranges.splice(t,1),-1!=(t=e.tabstop.rangeList.ranges.indexOf(e))&&e.tabstop.splice(t,1),this.session.removeMarker(e.markerId),e.tabstop.length||(-1!=(t=this.tabstops.indexOf(e.tabstop))&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},e}();m.prototype.keyboardHandler=new c,m.prototype.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||(e.tabstopManager.tabNext(1),e.renderer.scrollCursorIntoView())},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1),e.renderer.scrollCursorIntoView()},Esc:function(e){e.tabstopManager.detach()}});var b=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},v=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};r.importCssString("\n.ace_snippet-marker {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n background: rgba(194, 193, 208, 0.09);\n border: 1px dotted rgba(211, 208, 235, 0.62);\n position: absolute;\n}","snippets.css",!1),t.snippetManager=new f;var y=e("./editor").Editor;(function(){this.insertSnippet=function(e,n){return t.snippetManager.insertSnippet(this,e,n)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(y.prototype)})),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../virtual_renderer").VirtualRenderer,i=e("../editor").Editor,o=e("../range").Range,s=e("../lib/event"),a=e("../lib/lang"),l=e("../lib/dom"),c=e("../config").nls,d=e("./../lib/useragent"),u=function(e){return"suggest-aria-id:".concat(e)},h=d.isSafari?"menu":"listbox",p=d.isSafari?"menuitem":"option",f=d.isSafari?"aria-current":"aria-selected",g=function(e){var t=new r(e);t.$maxLines=4;var n=new i(t);return n.setHighlightActiveLine(!1),n.setShowPrintMargin(!1),n.renderer.setShowGutter(!1),n.renderer.setHighlightGutterLine(!1),n.$mouseHandler.$focusTimeout=0,n.$highlightTagPending=!0,n};l.importCssString('\n.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background-color: #CAD6FA;\n z-index: 1;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background-color: #3a674e;\n}\n.ace_editor.ace_autocomplete .ace_line-hover {\n border: 1px solid #abbffe;\n margin-top: -1px;\n background: rgba(233,233,253,0.4);\n position: absolute;\n z-index: 2;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {\n border: 1px solid rgba(109, 150, 13, 0.8);\n background: rgba(58, 103, 78, 0.62);\n}\n.ace_completion-meta {\n opacity: 0.5;\n margin-left: 0.9em;\n}\n.ace_completion-message {\n margin-left: 0.9em;\n color: blue;\n}\n.ace_editor.ace_autocomplete .ace_completion-highlight{\n color: #2d69c7;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{\n color: #93ca12;\n}\n.ace_editor.ace_autocomplete {\n width: 300px;\n z-index: 200000;\n border: 1px lightgray solid;\n position: fixed;\n box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n line-height: 1.4;\n background: #fefefe;\n color: #111;\n}\n.ace_dark.ace_editor.ace_autocomplete {\n border: 1px #484747 solid;\n box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);\n line-height: 1.4;\n background: #25282c;\n color: #c1c1c1;\n}\n.ace_autocomplete .ace_text-layer {\n width: calc(100% - 8px);\n}\n.ace_autocomplete .ace_line {\n display: flex;\n align-items: center;\n}\n.ace_autocomplete .ace_line > * {\n min-width: 0;\n flex: 0 0 auto;\n}\n.ace_autocomplete .ace_line .ace_ {\n flex: 0 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.ace_autocomplete .ace_completion-spacer {\n flex: 1;\n}\n.ace_autocomplete.ace_loading:after {\n content: "";\n position: absolute;\n top: 0px;\n height: 2px;\n width: 8%;\n background: blue;\n z-index: 100;\n animation: ace_progress 3s infinite linear;\n animation-delay: 300ms;\n transform: translateX(-100%) scaleX(1);\n}\n@keyframes ace_progress {\n 0% { transform: translateX(-100%) scaleX(1) }\n 50% { transform: translateX(625%) scaleX(2) } \n 100% { transform: translateX(1500%) scaleX(3) } \n}\n@media (prefers-reduced-motion) {\n .ace_autocomplete.ace_loading:after {\n transform: translateX(625%) scaleX(2);\n animation: none;\n }\n}\n',"autocompletion.css",!1),t.AcePopup=function(e){var t=l.createElement("div"),n=g(t);e&&e.appendChild(t),t.style.display="none",n.renderer.content.style.cursor="default",n.renderer.setStyle("ace_autocomplete"),n.renderer.$textLayer.element.setAttribute("role",h),n.renderer.$textLayer.element.setAttribute("aria-roledescription",c("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),n.renderer.$textLayer.element.setAttribute("aria-label",c("autocomplete.popup.aria-label","Autocomplete suggestions")),n.renderer.textarea.setAttribute("aria-hidden","true"),n.setOption("displayIndentGuides",!1),n.setOption("dragDelay",150);var r,i=function(){};n.focus=i,n.$isFocused=!0,n.renderer.$cursorLayer.restartTimer=i,n.renderer.$cursorLayer.element.style.opacity="0",n.renderer.$maxLines=8,n.renderer.$keepTextAreaAtCursor=!1,n.setHighlightActiveLine(!1),n.session.highlight(""),n.session.$searchHighlight.clazz="ace_highlight-marker",n.on("mousedown",(function(e){var t=e.getDocumentPosition();n.selection.moveToPosition(t),m.start.row=m.end.row=t.row,e.stop()}));var d=new o(-1,0,-1,1/0),m=new o(-1,0,-1,1/0);m.id=n.session.addMarker(m,"ace_active-line","fullLine"),n.setSelectOnHover=function(e){e?d.id&&(n.session.removeMarker(d.id),d.id=null):d.id=n.session.addMarker(d,"ace_line-hover","fullLine")},n.setSelectOnHover(!1),n.on("mousemove",(function(e){if(r){if(r.x!=e.x||r.y!=e.y){(r=e).scrollTop=n.renderer.scrollTop,n.isMouseOver=!0;var t=r.getDocumentPosition().row;d.start.row!=t&&(d.id||n.setRow(t),v(t))}}else r=e})),n.renderer.on("beforeRender",(function(){if(r&&-1!=d.start.row){r.$pos=null;var e=r.getDocumentPosition().row;d.id||n.setRow(e),v(e,!0)}})),n.renderer.on("afterRender",(function(){for(var e=n.renderer.$textLayer,t=e.config.firstRow,r=e.config.lastRow;t<=r;t++){var i=e.element.childNodes[t-e.config.firstRow];i.setAttribute("role",p),i.setAttribute("aria-roledescription",c("autocomplete.popup.item.aria-roledescription","item")),i.setAttribute("aria-setsize",n.data.length),i.setAttribute("aria-describedby","doc-tooltip"),i.setAttribute("aria-posinset",t+1);var o=n.getData(t);if(o){var s="".concat(o.caption||o.value).concat(o.meta?", ".concat(o.meta):"");i.setAttribute("aria-label",s)}i.querySelectorAll(".ace_completion-highlight").forEach((function(e){e.setAttribute("role","mark")}))}})),n.renderer.on("afterRender",(function(){var e=n.getRow(),t=n.renderer.$textLayer,r=t.element.childNodes[e-t.config.firstRow],i=document.activeElement;if(r!==n.selectedNode&&n.selectedNode&&(l.removeCssClass(n.selectedNode,"ace_selected"),n.selectedNode.removeAttribute(f),n.selectedNode.removeAttribute("id")),i.removeAttribute("aria-activedescendant"),n.selectedNode=r,r){var o=u(e);l.addCssClass(r,"ace_selected"),r.id=o,t.element.setAttribute("aria-activedescendant",o),i.setAttribute("aria-activedescendant",o),r.setAttribute(f,"true")}}));var b=function(){v(-1)},v=function(e,t){e!==d.start.row&&(d.start.row=d.end.row=e,t||n.session._emit("changeBackMarker"),n._emit("changeHoverMarker"))};n.getHoveredRow=function(){return d.start.row},s.addListener(n.container,"mouseout",(function(){n.isMouseOver=!1,b()})),n.on("hide",b),n.on("changeSelection",b),n.session.doc.getLength=function(){return n.data.length},n.session.doc.getLine=function(e){var t=n.data[e];return"string"==typeof t?t:t&&t.value||""};var y=n.session.bgTokenizer;return y.$tokenizeRow=function(e){var t=n.data[e],r=[];if(!t)return r;"string"==typeof t&&(t={value:t});var i=t.caption||t.value||t.name;function o(e,n){e&&r.push({type:(t.className||"")+(n||""),value:e})}for(var s=i.toLowerCase(),a=(n.filterText||"").toLowerCase(),l=0,c=0,d=0;d<=a.length;d++)if(d!=c&&(t.matchMask&1<<d||d==a.length)){var u=a.slice(c,d);c=d;var h=s.indexOf(u,l);if(-1==h)continue;o(i.slice(l,h),""),l=h+u.length,o(i.slice(h,l),"completion-highlight")}return o(i.slice(l,i.length),""),r.push({type:"completion-spacer",value:" "}),t.meta&&r.push({type:"completion-meta",value:t.meta}),t.message&&r.push({type:"completion-message",value:t.message}),r},y.$updateOnChange=i,y.start=i,n.session.$computeWidth=function(){return this.screenWidth=0},n.isOpen=!1,n.isTopdown=!1,n.autoSelect=!0,n.filterText="",n.isMouseOver=!1,n.data=[],n.setData=function(e,t){n.filterText=t||"",n.setValue(a.stringRepeat("\n",e.length),-1),n.data=e||[],n.setRow(0)},n.getData=function(e){return n.data[e]},n.getRow=function(){return m.start.row},n.setRow=function(e){e=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,e)),m.start.row!=e&&(n.selection.clearSelection(),m.start.row=m.end.row=e||0,n.session._emit("changeBackMarker"),n.moveCursorTo(e||0,0),n.isOpen&&n._signal("select"))},n.on("changeSelection",(function(){n.isOpen&&n.setRow(n.selection.lead.row),n.renderer.scrollCursorIntoView()})),n.hide=function(){this.container.style.display="none",n.anchorPos=null,n.anchor=null,n.isOpen&&(n.isOpen=!1,this._signal("hide"))},n.tryShow=function(e,t,i,o){if(!o&&n.isOpen&&n.anchorPos&&n.anchor&&n.anchorPos.top===e.top&&n.anchorPos.left===e.left&&n.anchor===i)return!0;var s=this.container,a=this.renderer.scrollBar.width||10,l=window.innerHeight-a,c=window.innerWidth-a,d=this.renderer,u=d.$maxLines*t*1.4,h={top:0,bottom:0,left:0},p=l-e.top-3*this.$borderSize-t,f=e.top-3*this.$borderSize;i||(i=f<=p||p>=u?"bottom":"top"),"top"===i?(h.bottom=e.top-this.$borderSize,h.top=h.bottom-u):"bottom"===i&&(h.top=e.top+t+this.$borderSize,h.bottom=h.top+u);var g=h.top>=0&&h.bottom<=l;if(!o&&!g)return!1;d.$maxPixelHeight=g?null:"top"===i?f:p,"top"===i?(s.style.top="",s.style.bottom=l+a-h.bottom+"px",n.isTopdown=!1):(s.style.top=h.top+"px",s.style.bottom="",n.isTopdown=!0),s.style.display="";var m=e.left;return m+s.offsetWidth>c&&(m=c-s.offsetWidth),s.style.left=m+"px",s.style.right="",n.isOpen||(n.isOpen=!0,this._signal("show"),r=null),n.anchorPos=e,n.anchor=i,!0},n.show=function(e,t,n){this.tryShow(e,t,n?"bottom":void 0,!0)},n.goTo=function(e){var t=this.getRow(),n=this.session.getLength()-1;switch(e){case"up":t=t<=0?n:t-1;break;case"down":t=t>=n?-1:t+1;break;case"start":t=0;break;case"end":t=n}this.setRow(t)},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n},t.$singleLineEditor=g,t.getAriaId=u})),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],(function(e,t,n){"use strict";var r=function(){function e(e){this.editor=e,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return e.prototype.setScreenReaderContent=function(e){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",function(){var e=this.popup.getRow(),t=this.popup.renderer.$textLayer,n=t.element.childNodes[e-t.config.firstRow];if(n){for(var r="doc-tooltip ",i=0;i<this._lines.length;i++)r+="ace-inline-screenreader-line-".concat(i," ");n.setAttribute("aria-describedby",r)}}.bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=e.split(/\r\n|\r|\n/);var t=this.createCodeBlock();this.screenReaderDiv.appendChild(t)},e.prototype.destroy=function(){this.screenReaderDiv.remove()},e.prototype.createCodeBlock=function(){var e=document.createElement("pre");e.setAttribute("id","ace-inline-screenreader");for(var t=0;t<this._lines.length;t++){var n=document.createElement("code");n.setAttribute("id","ace-inline-screenreader-line-".concat(t));var r=document.createTextNode(this._lines[t]);n.appendChild(r),e.appendChild(n)}return e},e}();t.AceInlineScreenReader=r})),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],(function(e,t,n){"use strict";var r=e("../snippets").snippetManager,i=e("./inline_screenreader").AceInlineScreenReader,o=function(){function e(){this.editor=null}return e.prototype.show=function(e,t,n){if(n=n||"",e&&this.editor&&this.editor!==e&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!e||!t)return!1;this.inlineScreenReader||(this.inlineScreenReader=new i(e));var o=t.snippet?r.getDisplayTextForSnippet(e,t.snippet):t.value;return!(t.hideInlinePreview||!o||!o.startsWith(n)||(this.editor=e,this.inlineScreenReader.setScreenReaderContent(o),""===(o=o.slice(n.length))?e.removeGhostText():e.setGhostText(o),0))},e.prototype.isOpen=function(){return!!this.editor&&!!this.editor.renderer.$ghostText},e.prototype.hide=function(){return!!this.editor&&(this.editor.removeGhostText(),!0)},e.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},e}();t.AceInline=o})),ace.define("ace/autocomplete/util",["require","exports","module"],(function(e,t,n){"use strict";t.parForEach=function(e,t,n){var r=0,i=e.length;0===i&&n();for(var o=0;o<i;o++)t(e[o],(function(e,t){++r===i&&n(e,t)}))};var r=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;t.retrievePrecedingIdentifier=function(e,t,n){n=n||r;for(var i=[],o=t-1;o>=0&&n.test(e[o]);o--)i.push(e[o]);return i.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,n){n=n||r;for(var i=[],o=t;o<e.length&&n.test(e[o]);o++)i.push(e[o]);return i},t.getCompletionPrefix=function(e){var t,n=e.getCursorPosition(),r=e.session.getLine(n.row);return e.completers.forEach(function(e){e.identifierRegexps&&e.identifierRegexps.forEach(function(e){!t&&e&&(t=this.retrievePrecedingIdentifier(r,n.column,e))}.bind(this))}.bind(this)),t||this.retrievePrecedingIdentifier(r,n.column)},t.triggerAutocomplete=function(e,t){return t=t??e.session.getPrecedingCharacter(),e.completers.some((function(e){if(e.triggerCharacters&&Array.isArray(e.triggerCharacters))return e.triggerCharacters.includes(t)}))}})),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],(function(e,t,n){"use strict";var r=e("./keyboard/hash_handler").HashHandler,i=e("./autocomplete/popup").AcePopup,o=e("./autocomplete/inline").AceInline,s=e("./autocomplete/popup").getAriaId,a=e("./autocomplete/util"),l=e("./lib/lang"),c=e("./lib/dom"),d=e("./snippets").snippetManager,u=e("./config"),h=e("./lib/event"),p=e("./lib/scroll").preventParentScroll,f=function(e,t){t.completer&&t.completer.destroy()},g=function(){function e(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new r,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=l.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=l.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=l.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=l.delayedCall(function(){this.stickySelection=!0}.bind(this),this.stickySelectionDelay),this.$firstOpenTimer=l.delayedCall(function(){var t=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!t||0===this.editor.completers.length||(this.completions=new b(e.completionsForLoading),this.openPopup(this.editor,t.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}.bind(this),this.stickySelectionDelay)}return Object.defineProperty(e,"completionsForLoading",{get:function(){return[{caption:u.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),e.prototype.$init=function(){return this.popup=new i(this.parentNode||document.body||document.documentElement),this.popup.on("click",function(e){this.insertMatch(),e.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),h.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},e.prototype.$initInline=function(){if(this.inlineEnabled&&!this.inlineRenderer)return this.inlineRenderer=new o,this.inlineRenderer},e.prototype.getPopup=function(){return this.popup||this.$init()},e.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},e.prototype.$seen=function(e){!this.hasSeen.has(e)&&e&&e.completer&&e.completer.onSeen&&"function"==typeof e.completer.onSeen&&(e.completer.onSeen(this.editor,e),this.hasSeen.add(e))},e.prototype.$onPopupChange=function(e){if(this.inlineRenderer&&this.inlineEnabled){var t=e?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(t),this.popup.isMouseOver&&this.setSelectOnHover)return void this.tooltipTimer.call(null,null);this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},e.prototype.$updateGhostText=function(e){var t=this.base.row,n=this.base.column,r=this.editor.getCursorPosition().column,i=this.editor.session.getLine(t).slice(n,r);this.inlineRenderer.show(this.editor,e,i)?this.$seen(e):this.inlineRenderer.hide()},e.prototype.$onPopupRender=function(){var e=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var t=this.popup.getFirstVisibleRow();t<=this.popup.getLastVisibleRow();t++){var n=this.popup.getData(t);!n||e&&!n.hideInlinePreview||this.$seen(n)}},e.prototype.$onPopupShow=function(e){this.$onPopupChange(e),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},e.prototype.observeLayoutChanges=function(){if(!this.$elements&&this.editor){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var e=this.editor.container.parentNode,t=[];e;)t.push(e),e.addEventListener("scroll",this.onLayoutChange,{passive:!0}),e=e.parentNode;this.$elements=t}},e.prototype.unObserveLayoutChanges=function(){var e=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach((function(t){t.removeEventListener("scroll",e.onLayoutChange,{passive:!0})})),this.$elements=null},e.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},e.prototype.$updatePopupPosition=function(){var e=this.editor,t=e.renderer,n=t.layerConfig.lineHeight,r=t.$cursorLayer.getPixelPosition(this.base,!0);r.left-=this.popup.getTextLeftOffset();var i=e.container.getBoundingClientRect();r.top+=i.top-t.layerConfig.offset,r.left+=i.left-e.renderer.scrollLeft,r.left+=t.gutterWidth;var o={top:r.top,left:r.left};t.$ghostText&&t.$ghostTextWidget&&this.base.row===t.$ghostText.position.row&&(o.top+=t.$ghostTextWidget.el.offsetHeight);var s=e.container.getBoundingClientRect().bottom-n,a=s<o.top?{top:s,left:o.left}:o;this.popup.tryShow(a,n,"bottom")||this.popup.tryShow(r,n,"top")||this.popup.show(r,n)},e.prototype.openPopup=function(e,t,n){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var r,i=this.popup.getRow(),o=this.popup.data[i];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:s(this.popup.getRow()),inline:this.inlineEnabled}),e.keyBinding.addKeyboardHandler(this.keyboardHandler),this.stickySelection&&(r=this.popup.data.indexOf(o)),r&&-1!==r||(r=0),this.popup.setRow(this.autoSelect?r:-1),r===i&&o!==this.completions.filtered[r]&&this.$onPopupChange();var a=this.inlineRenderer&&this.inlineEnabled;if(r===i&&a){var l=this.popup.getData(this.popup.getRow());this.$updateGhostText(l)}n||(this.popup.setTheme(e.getTheme()),this.popup.setFontSize(e.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},e.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},e.prototype.changeListener=function(e){var t=this.editor.selection.lead;(t.row!=this.base.row||t.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},e.prototype.blurListener=function(e){var t=document.activeElement,n=this.editor.textInput.getElement(),r=e.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(e.relatedTarget),i=this.popup&&this.popup.container;t==n||t.parentNode==i||r||t==this.tooltipNode||e.relatedTarget==n||this.detach()},e.prototype.mousedownListener=function(e){this.detach()},e.prototype.mousewheelListener=function(e){this.popup&&!this.popup.isMouseOver&&this.detach()},e.prototype.mouseOutListener=function(e){this.popup.isOpen&&this.$updatePopupPosition()},e.prototype.goTo=function(e){this.popup.goTo(e)},e.prototype.insertMatch=function(e,t){if(e||(e=this.popup.getData(this.popup.getRow())),!e)return!1;if(""===e.value)return this.detach();var n=this.completions,r=this.getCompletionProvider().insertMatch(this.editor,e,n.filterText,t);return this.completions==n&&this.detach(),r},e.prototype.showPopup=function(e,t){this.editor&&this.detach(),this.activated=!0,this.editor=e,e.completer!=this&&(e.completer&&e.completer.detach(),e.completer=this),e.on("changeSelection",this.changeListener),e.on("blur",this.blurListener),e.on("mousedown",this.mousedownListener),e.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,t)},e.prototype.getCompletionProvider=function(e){return this.completionProvider||(this.completionProvider=new m(e)),this.completionProvider},e.prototype.gatherCompletions=function(e,t){return this.getCompletionProvider().gatherCompletions(e,t)},e.prototype.updateCompletions=function(t,n){if(t&&this.base&&this.completions){var r=this.editor.getCursorPosition();if((o=this.editor.session.getTextRange({start:this.base,end:r}))==this.completions.filterText)return;return this.completions.setFilter(o),this.completions.filtered.length&&(1!=this.completions.filtered.length||this.completions.filtered[0].value!=o||this.completions.filtered[0].snippet)?void this.openPopup(this.editor,o,t):this.detach()}if(n&&n.matches)return r=this.editor.getSelectionRange().start,this.base=this.editor.session.doc.createAnchor(r.row,r.column),this.base.$insertRight=!0,this.completions=new b(n.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",t);var i=this.editor.getSession(),o=(r=this.editor.getCursorPosition(),a.getCompletionPrefix(this.editor));this.base=i.doc.createAnchor(r.row,r.column-o.length),this.base.$insertRight=!0;var s={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:o,pos:r}).provideCompletions(this.editor,s,function(n,r,i){var o=r.filtered,s=a.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),i){if(!o.length){var l=!this.autoShown&&this.emptyMessage;if("function"==typeof l&&(l=this.emptyMessage(s)),l){var c=[{caption:l,value:""}];return this.completions=new b(c),this.openPopup(this.editor,s,t),this.popup.renderer.setStyle("ace_loading",!1),void this.popup.renderer.setStyle("ace_empty-message",!0)}return this.detach()}if(1==o.length&&o[0].value==s&&!o[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&1==o.length)return this.insertMatch(o[0])}this.completions=!i&&this.showLoadingState?new b(e.completionsForLoading.concat(o),r.filterText):r,this.openPopup(this.editor,s,t),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!i)}.bind(this)),!this.showLoadingState||this.autoShown||this.popup&&this.popup.isOpen||this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},e.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},e.prototype.updateDocTooltip=function(){var e=this.popup,t=this.completions&&this.completions.filtered,n=t&&(t[e.getHoveredRow()]||t[e.getRow()]),r=null;if(!n||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var i=this.editor.completers.length,o=0;o<i;o++){var s=this.editor.completers[o];if(s.getDocTooltip&&n.completerId===s.id){r=s.getDocTooltip(n);break}}if(r||"string"==typeof n||(r=n),"string"==typeof r&&(r={docText:r}),!r||!r.docHTML&&!r.docText)return this.hideDocTooltip();this.showDocTooltip(r)},e.prototype.showDocTooltip=function(e){this.tooltipNode||(this.tooltipNode=c.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",p));var t=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(t.isDark?"ace_dark ":"")+(t.cssClass||"");var n=this.tooltipNode;e.docHTML?n.innerHTML=e.docHTML:e.docText&&(n.textContent=e.docText),n.parentNode||this.popup.container.appendChild(this.tooltipNode);var r=this.popup,i=r.container.getBoundingClientRect(),o=400,s=300,a=r.renderer.scrollBar.width||10,l=i.left,d=window.innerWidth-i.right-a,u=r.isTopdown?i.top:window.innerHeight-a-i.bottom,h=[Math.min(d/o,1),Math.min(l/o,1),Math.min(u/s*.9)],f=Math.max.apply(Math,h),g=n.style;g.display="block",f==h[0]?(g.left=i.right+1+"px",g.right="",g.maxWidth=o*f+"px",g.top=i.top+"px",g.bottom="",g.maxHeight=Math.min(window.innerHeight-a-i.top,s)+"px"):f==h[1]?(g.right=window.innerWidth-i.left+"px",g.left="",g.maxWidth=o*f+"px",g.top=i.top+"px",g.bottom="",g.maxHeight=Math.min(window.innerHeight-a-i.top,s)+"px"):f==h[2]&&(g.left=window.innerWidth-i.left+"px",g.maxWidth=Math.min(o,window.innerWidth)+"px",r.isTopdown?(g.top=i.bottom+"px",g.left=i.left+"px",g.right="",g.bottom="",g.maxHeight=Math.min(window.innerHeight-a-i.bottom,s)+"px"):(g.top=r.container.offsetTop-n.offsetHeight+"px",g.left=i.left+"px",g.right="",g.bottom="",g.maxHeight=Math.min(r.container.offsetTop,s)+"px"))},e.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),this.tooltipNode){var e=this.tooltipNode;this.editor.isFocused()||document.activeElement!=e||this.editor.focus(),this.tooltipNode=null,e.parentNode&&e.parentNode.removeChild(e)}},e.prototype.onTooltipClick=function(e){for(var t=e.target;t&&t!=this.tooltipNode;){if("A"==t.nodeName&&t.href){t.rel="noreferrer",t.target="_blank";break}t=t.parentNode}},e.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var e=this.popup.container;e&&e.parentNode&&e.parentNode.removeChild(e)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",f),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},e.for=function(t){return t.completer instanceof e||(t.completer&&(t.completer.destroy(),t.completer=null),u.get("sharedPopups")?(e.$sharedInstance||(e.$sharedInstance=new e),t.completer=e.$sharedInstance):(t.completer=new e,t.once("destroy",f))),t.completer},e}();g.prototype.commands={Up:function(e){e.completer.goTo("up")},Down:function(e){e.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(e){e.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(e){e.completer.goTo("end")},Esc:function(e){e.completer.detach()},Return:function(e){return e.completer.insertMatch()},"Shift-Return":function(e){e.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(e){var t=e.completer.insertMatch();if(t||e.tabstopManager)return t;e.completer.goTo("down")},Backspace:function(e){e.execCommand("backspace"),!a.getCompletionPrefix(e)&&e.completer&&e.completer.detach()},PageUp:function(e){e.completer.popup.gotoPageUp()},PageDown:function(e){e.completer.popup.gotoPageDown()}},g.startCommand={name:"startAutocomplete",exec:function(e,t){var n=g.for(e);n.autoInsert=!1,n.autoSelect=!0,n.autoShown=!1,n.showPopup(e,t),n.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var m=function(){function e(e){this.initialPosition=e,this.active=!0}return e.prototype.insertByIndex=function(e,t,n){return!(!this.completions||!this.completions.filtered)&&this.insertMatch(e,this.completions.filtered[t],n)},e.prototype.insertMatch=function(e,t,n){if(!t)return!1;if(e.startOperation({command:{name:"insertMatch"}}),t.completer&&t.completer.insertMatch)t.completer.insertMatch(e,t);else{if(!this.completions)return!1;var r=this.completions.filterText.length,i=0;if(t.range&&t.range.start.row===t.range.end.row&&(r-=this.initialPosition.prefix.length,r+=this.initialPosition.pos.column-t.range.start.column,i+=t.range.end.column-this.initialPosition.pos.column),r||i){var o;o=e.selection.getAllRanges?e.selection.getAllRanges():[e.getSelectionRange()];for(var s,a=0;s=o[a];a++)s.start.column-=r,s.end.column+=i,e.session.remove(s)}t.snippet?d.insertSnippet(e,t.snippet):this.$insertString(e,t),t.completer&&t.completer.onInsert&&"function"==typeof t.completer.onInsert&&t.completer.onInsert(e,t),t.command&&"startAutocomplete"===t.command&&e.execCommand(t.command)}return e.endOperation(),!0},e.prototype.$insertString=function(e,t){var n=t.value||t;e.execCommand("insertstring",n)},e.prototype.gatherCompletions=function(e,t){var n=e.getSession(),r=e.getCursorPosition(),i=a.getCompletionPrefix(e),o=[];this.completers=e.completers;var s=e.completers.length;return e.completers.forEach((function(l,c){l.getCompletions(e,n,r,i,(function(n,r){l.hideInlinePreview&&(r=r.map((function(e){return Object.assign(e,{hideInlinePreview:l.hideInlinePreview})}))),!n&&r&&(o=o.concat(r)),t(null,{prefix:a.getCompletionPrefix(e),matches:o,finished:0==--s})}))})),!0},e.prototype.provideCompletions=function(e,t,n){var r=function(e){var r=e.prefix,i=e.matches;this.completions=new b(i),t.exactMatch&&(this.completions.exactMatch=!0),t.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(r),(e.finished||this.completions.filtered.length)&&n(null,this.completions,e.finished)}.bind(this),i=!0,o=null;if(this.gatherCompletions(e,function(e,t){this.active&&(e&&(n(e,[],!0),this.detach()),0===t.prefix.indexOf(t.prefix)&&(i?o=t:r(t)))}.bind(this)),i=!1,o){var s=o;o=null,r(s)}},e.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach((function(e){"function"==typeof e.cancel&&e.cancel()}))},e}(),b=function(){function e(e,t){this.all=e,this.filtered=e,this.filterText=t||"",this.exactMatch=!1,this.ignoreCaption=!1}return e.prototype.setFilter=function(e){if(e.length>this.filterText&&0===e.lastIndexOf(this.filterText,0))var t=this.filtered;else t=this.all;this.filterText=e,t=(t=this.filterCompletions(t,this.filterText)).sort((function(e,t){return t.exactMatch-e.exactMatch||t.$score-e.$score||(e.caption||e.value).localeCompare(t.caption||t.value)}));var n=null;t=t.filter((function(e){var t=e.snippet||e.caption||e.value;return t!==n&&(n=t,!0)})),this.filtered=t},e.prototype.filterCompletions=function(e,t){var n=[],r=t.toUpperCase(),i=t.toLowerCase();e:for(var o,s=0;o=e[s];s++)if(o.skipFilter)o.$score=o.score,n.push(o);else{var a=!this.ignoreCaption&&o.caption||o.value||o.snippet;if(a){var l,c,d=-1,u=0,h=0;if(this.exactMatch){if(t!==a.substr(0,t.length))continue e}else{var p=a.toLowerCase().indexOf(i);if(p>-1)h=p;else for(var f=0;f<t.length;f++){var g=a.indexOf(i[f],d+1),m=a.indexOf(r[f],d+1);if((l=g>=0&&(m<0||g<m)?g:m)<0)continue e;(c=l-d-1)>0&&(-1===d&&(h+=10),h+=c,u|=1<<f),d=l}}o.matchMask=u,o.exactMatch=h?0:1,o.$score=(o.score||0)-h,n.push(o)}}return n},e}();t.Autocomplete=g,t.CompletionProvider=m,t.FilteredList=b})),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],(function(e,t,n){var r=e("../range").Range,i=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;t.getCompletions=function(e,t,n,o,s){var a=function(e,t){var n=function(e,t){return e.getTextRange(r.fromPoints({row:0,column:0},t)).split(i).length-1}(e,t),o=e.getValue().split(i),s=Object.create(null),a=o[n];return o.forEach((function(e,t){if(e&&e!==a){var r=Math.abs(n-t),i=o.length-r;s[e]?s[e]=Math.max(i,s[e]):s[e]=i}})),s}(t,n);s(null,Object.keys(a).map((function(e){return{caption:e,value:e,score:a[e],meta:"local"}})))}})),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],(function(e,t,n){"use strict";var r=e("../snippets").snippetManager,i=e("../autocomplete").Autocomplete,o=e("../config"),s=e("../lib/lang"),a=e("../autocomplete/util"),l=e("../autocomplete/text_completer"),c={getCompletions:function(e,t,n,r,i){if(t.$mode.completer)return t.$mode.completer.getCompletions(e,t,n,r,i);var o=e.session.getState(n.row),s=t.$mode.getCompletions(o,t,n,r);i(null,s=s.map((function(e){return e.completerId=c.id,e})))},id:"keywordCompleter"},d={getCompletions:function(e,t,n,i,o){var s=[],a=t.getTokenAt(n.row,n.column);a&&a.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?s.push("html-tag"):s=r.getActiveScopes(e);var l=r.snippetMap,c=[];s.forEach((function(e){for(var t=l[e]||[],n=t.length;n--;){var r=t[n],i=r.name||r.tabTrigger;i&&c.push({caption:i,snippet:r.content,meta:r.tabTrigger&&!r.name?r.tabTrigger+"⇥ ":"snippet",completerId:d.id})}}),this),o(null,c)},getDocTooltip:function(e){var t,n;e.snippet&&!e.docHTML&&(e.docHTML=["<b>",s.escapeHTML(e.caption),"</b>","<hr></hr>",s.escapeHTML((t=e.snippet,n={},t.replace(/\${(\d+)(:(.*?))?}/g,(function(e,t,r,i){return n[t]=i||""})).replace(/\$(\d+?)/g,(function(e,t){return n[t]}))))].join(""))},id:"snippetCompleter"},u=[d,l,c];t.setCompleters=function(e){u.length=0,e&&u.push.apply(u,e)},t.addCompleter=function(e){u.push(e)},t.textCompleter=l,t.keyWordCompleter=c,t.snippetCompleter=d;var h,p={name:"expandSnippet",exec:function(e){return r.expandWithTab(e)},bindKey:"Tab"},f=function(e,t){g(t.session.$mode)},g=function(e){"string"==typeof e&&(e=o.$modes[e]),e&&(r.files||(r.files={}),m(e.$id,e.snippetFileId),e.modes&&e.modes.forEach(g))},m=function(e,t){t&&e&&!r.files[e]&&(r.files[e]={},o.loadModule(t,(function(t){t&&(r.files[e]=t,!t.snippets&&t.snippetText&&(t.snippets=r.parseSnippetFile(t.snippetText)),r.register(t.snippets||[],t.scope),t.includeScopes&&(r.snippetMap[t.scope].includeScopes=t.includeScopes,t.includeScopes.forEach((function(e){g("ace/mode/"+e)}))))})))},b=function(e){var t=e.editor,n=t.completer&&t.completer.activated;if("backspace"===e.command.name)n&&!a.getCompletionPrefix(t)&&t.completer.detach();else if("insertstring"===e.command.name&&!n){h=e;var r=e.editor.$liveAutocompletionDelay;r?v.delay(r):y(e)}},v=s.delayedCall((function(){y(h)}),0),y=function(e){var t=e.editor,n=a.getCompletionPrefix(t),r=e.args,o=a.triggerAutocomplete(t,r);if(n&&n.length>=t.$liveAutocompletionThreshold||o){var s=i.for(t);s.autoShown=!0,s.showPopup(t)}},w=e("../editor").Editor;e("../config").defineOptions(w.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:u),this.commands.addCommand(i.startCommand)):this.commands.removeCommand(i.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:u),this.commands.on("afterExec",b)):this.commands.off("afterExec",b)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(e){e?(this.commands.addCommand(p),this.on("changeMode",f),f(0,this)):(this.commands.removeCommand(p),this.off("changeMode",f))},value:!1}})})),ace.require(["ace/ext/language_tools"],(function(t){e&&(e.exports=t)}))},5336(e,t,n){e=n.nmd(e),ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],(function(e,t,n){"use strict";var r,i=e("./lib/oop"),o=(e("./lib/lang"),e("./lib/event_emitter").EventEmitter),s=e("./editor").Editor,a=e("./virtual_renderer").VirtualRenderer,l=e("./edit_session").EditSession;(function(){i.implement(this,o),this.$createEditor=function(){var e=document.createElement("div");e.className=this.$editorCSS,e.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(e);var t=new s(new a(e,this.$theme));return t.on("focus",function(){this._emit("focus",t)}.bind(this)),this.$editors.push(t),t.setFontSize(this.$fontSize),t},this.setSplits=function(e){var t;if(e<1)throw"The number of splits have to be > 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splits<this.$editors.length&&this.$splits<e;)t=this.$editors[this.$splits],this.$container.appendChild(t.container),t.setFontSize(this.$fontSize),this.$splits++;for(;this.$splits<e;)this.$createEditor(),this.$splits++}else for(;this.$splits>e;)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach((function(t){t.setTheme(e)}))},this.setKeyboardHandler=function(e){this.$editors.forEach((function(t){t.setKeyboardHandler(e)}))},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach((function(t){t.setFontSize(e)}))},this.$cloneSession=function(e){var t=new l(e.getDocument(),e.getMode()),n=e.getUndoManager();return t.setUndoManager(n),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var n;n=null==t?this.$cEditor:this.$editors[t];var r=this.$editors.some((function(t){return t.session===e}));return r&&(e=this.$cloneSession(e)),n.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,n=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var r=t/this.$splits,i=0;i<this.$splits;i++)(e=this.$editors[i]).container.style.width=r+"px",e.container.style.top="0px",e.container.style.left=i*r+"px",e.container.style.height=n+"px",e.resize();else{var o=n/this.$splits;for(i=0;i<this.$splits;i++)(e=this.$editors[i]).container.style.width=t+"px",e.container.style.top=i*o+"px",e.container.style.left="0px",e.container.style.height=o+"px",e.resize()}}}).call((r=function(e,t,n){this.BELOW=1,this.BESIDE=0,this.$container=e,this.$theme=t,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(n||1),this.$cEditor=this.$editors[0],this.on("focus",function(e){this.$cEditor=e}.bind(this))}).prototype),t.Split=r})),ace.define("ace/ext/split",["require","exports","module","ace/split"],(function(e,t,n){"use strict";n.exports=e("../split")})),ace.require(["ace/ext/split"],(function(t){e&&(e.exports=t)}))},997(e,t,n){e=n.nmd(e),ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),o=t.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",s=t.supportFunction="rgb|rgba|url|attr|counter|counters",a=t.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",l=t.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",c=t.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",d=t.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",u=t.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",h=t.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",p=function(){var e=this.createKeywordMapper({"support.function":s,"support.constant":a,"support.type":o,"support.constant.color":l,"support.constant.fonts":c},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:d},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+d+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:d},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:u},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:h},{include:"url"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{token:"paren.lparen",regex:"\\{"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};r.inherits(p,i),t.CssHighlightRules=p})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var i=n[1].length,o=e.findMatchingBracket({row:t,column:i});if(!o||o.row==t)return 0;var s=this.$getIndent(e.getLine(o.row));e.replace(new r(t,0,t,i-1),s)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i})),ace.define("ace/mode/css_completions",["require","exports","module"],(function(e,t,n){"use strict";var r={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},i=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var e=document.createElement("c").style;for(var t in e)if("string"==typeof e[t]){var n=t.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}));r.hasOwnProperty(n)||(r[n]=1)}}this.completionsDefined=!0},this.getCompletions=function(e,t,n,r){if(this.completionsDefined||this.defineCompletions(),"ruleset"===e||"ace/mode/scss"==t.$mode.$id){var i=t.getLine(n.row).substr(0,n.column),o=/\([^)]*$/.test(i);return o&&(i=i.substr(i.lastIndexOf("(")+1)),/:[^;]+$/.test(i)?(/([\w\-]+):[^:]*$/.test(i),this.getPropertyValueCompletions(e,t,n,r)):this.getPropertyCompletions(e,t,n,r,o)}return[]},this.getPropertyCompletions=function(e,t,n,i,o){return o=o||!1,Object.keys(r).map((function(e){return{caption:e,snippet:e+": $0"+(o?"":";"),meta:"property",score:1e6}}))},this.getPropertyValueCompletions=function(e,t,n,i){var o=t.getLine(n.row).substr(0,n.column),s=(/([\w\-]+):[^:]*$/.exec(o)||{})[1];if(!s)return[];var a=[];return s in r&&"object"==typeof r[s]&&(a=Object.keys(r[s])),a.map((function(e){return{caption:e,snippet:e,meta:"property value",score:1e6}}))}}).call(i.prototype),t.CssCompletions=i})),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=(e("../behaviour").Behaviour,e("./cstyle").CstyleBehaviour),o=e("../../token_iterator").TokenIterator,s=function(){this.inherit(i),this.add("colon","insertion",(function(e,t,n,r,i){if(":"===i&&n.selection.isEmpty()){var s=n.getCursorPosition(),a=new o(r,s.row,s.column),l=a.getCurrentToken();if(l&&l.value.match(/\s+/)&&(l=a.stepBackward()),l&&"support.type"===l.type){var c=r.doc.getLine(s.row);if(":"===c.substring(s.column,s.column+1))return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(c.substring(s.column)))return{text:":;",selection:[1,1]}}}})),this.add("colon","deletion",(function(e,t,n,r,i){var s=r.doc.getTextRange(i);if(!i.isMultiLine()&&":"===s){var a=n.getCursorPosition(),l=new o(r,a.row,a.column),c=l.getCurrentToken();if(c&&c.value.match(/\s+/)&&(c=l.stepBackward()),c&&"support.type"===c.type&&";"===r.doc.getLine(i.start.row).substring(i.end.column,i.end.column+1))return i.end.column++,i}})),this.add("semicolon","insertion",(function(e,t,n,r,i){if(";"===i&&n.selection.isEmpty()){var o=n.getCursorPosition();if(";"===r.doc.getLine(o.row).substring(o.column,o.column+1))return{text:"",selection:[1,1]}}})),this.add("!important","insertion",(function(e,t,n,r,i){if("!"===i&&n.selection.isEmpty()){var o=n.getCursorPosition(),s=r.doc.getLine(o.row);if(/^\s*(;|}|$)/.test(s.substring(o.column)))return{text:"!important",selection:[10,10]}}}))};r.inherits(s,i),t.CssBehaviour=s})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(s,o),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var s=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,s);var a=e.getCommentFoldRange(n,s+i[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(s=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,s=n.length,a=t+=1,l=e.getLength();++t<l;){var c=(n=e.getLine(t)).search(/\S/);if(-1!==c){if(r>c)break;var d=this.getFoldWidgetRange(e,"all",t);if(d){if(d.start.row<=o)break;if(d.isMultiLine())t=d.end.row;else if(r==c)break}a=t}}return new i(o,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++n<o;){t=e.getLine(n);var c=a.exec(t);if(c&&(c[1]?l--:l++,!l))break}if(n>s)return new i(s,r,n,t.length)}}.call(s.prototype)})),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./css_highlight_rules").CssHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,l=e("./css_completions").CssCompletions,c=e("./behaviour/css").CssBehaviour,d=e("./folding/cstyle").FoldMode,u=function(){this.HighlightRules=o,this.$outdent=new s,this.$behaviour=new c,this.$completer=new l,this.foldingRules=new d};r.inherits(u,i),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),i=this.getTokenizer().getLineTokens(t,e).tokens;return i.length&&"comment"==i[i.length-1].type||t.match(/^.*\{\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.getCompletions=function(e,t,n,r){return this.$completer.getCompletions(e,t,n,r)},this.createWorker=function(e){var t=new a(["ace"],"ace/mode/css_worker","Worker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}.call(u.prototype),t.Mode=u})),ace.require(["ace/mode/css"],(function(t){e&&(e.exports=t)}))},3222(e,t,n){e=n.nmd(e),ace.define("ace/snippets/css.snippets",["require","exports","module"],(function(e,t,n){n.exports="snippet .\n\t${1} {\n\t\t${2}\n\t}\nsnippet !\n\t !important\nsnippet bdi:m+\n\t-moz-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};\nsnippet bdi:m\n\t-moz-border-image: ${1};\nsnippet bdrz:m\n\t-moz-border-radius: ${1};\nsnippet bxsh:m+\n\t-moz-box-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet bxsh:m\n\t-moz-box-shadow: ${1};\nsnippet bdi:w+\n\t-webkit-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};\nsnippet bdi:w\n\t-webkit-border-image: ${1};\nsnippet bdrz:w\n\t-webkit-border-radius: ${1};\nsnippet bxsh:w+\n\t-webkit-box-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet bxsh:w\n\t-webkit-box-shadow: ${1};\nsnippet @f\n\t@font-face {\n\t\tfont-family: ${1};\n\t\tsrc: url(${2});\n\t}\nsnippet @i\n\t@import url(${1});\nsnippet @m\n\t@media ${1:print} {\n\t\t${2}\n\t}\nsnippet bg+\n\tbackground: #${1:FFF} url(${2}) ${3:0} ${4:0} ${5:no-repeat};\nsnippet bga\n\tbackground-attachment: ${1};\nsnippet bga:f\n\tbackground-attachment: fixed;\nsnippet bga:s\n\tbackground-attachment: scroll;\nsnippet bgbk\n\tbackground-break: ${1};\nsnippet bgbk:bb\n\tbackground-break: bounding-box;\nsnippet bgbk:c\n\tbackground-break: continuous;\nsnippet bgbk:eb\n\tbackground-break: each-box;\nsnippet bgcp\n\tbackground-clip: ${1};\nsnippet bgcp:bb\n\tbackground-clip: border-box;\nsnippet bgcp:cb\n\tbackground-clip: content-box;\nsnippet bgcp:nc\n\tbackground-clip: no-clip;\nsnippet bgcp:pb\n\tbackground-clip: padding-box;\nsnippet bgc\n\tbackground-color: #${1:FFF};\nsnippet bgc:t\n\tbackground-color: transparent;\nsnippet bgi\n\tbackground-image: url(${1});\nsnippet bgi:n\n\tbackground-image: none;\nsnippet bgo\n\tbackground-origin: ${1};\nsnippet bgo:bb\n\tbackground-origin: border-box;\nsnippet bgo:cb\n\tbackground-origin: content-box;\nsnippet bgo:pb\n\tbackground-origin: padding-box;\nsnippet bgpx\n\tbackground-position-x: ${1};\nsnippet bgpy\n\tbackground-position-y: ${1};\nsnippet bgp\n\tbackground-position: ${1:0} ${2:0};\nsnippet bgr\n\tbackground-repeat: ${1};\nsnippet bgr:n\n\tbackground-repeat: no-repeat;\nsnippet bgr:x\n\tbackground-repeat: repeat-x;\nsnippet bgr:y\n\tbackground-repeat: repeat-y;\nsnippet bgr:r\n\tbackground-repeat: repeat;\nsnippet bgz\n\tbackground-size: ${1};\nsnippet bgz:a\n\tbackground-size: auto;\nsnippet bgz:ct\n\tbackground-size: contain;\nsnippet bgz:cv\n\tbackground-size: cover;\nsnippet bg\n\tbackground: ${1};\nsnippet bg:ie\n\tfilter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='${1}',sizingMethod='${2:crop}');\nsnippet bg:n\n\tbackground: none;\nsnippet bd+\n\tborder: ${1:1px} ${2:solid} #${3:000};\nsnippet bdb+\n\tborder-bottom: ${1:1px} ${2:solid} #${3:000};\nsnippet bdbc\n\tborder-bottom-color: #${1:000};\nsnippet bdbi\n\tborder-bottom-image: url(${1});\nsnippet bdbi:n\n\tborder-bottom-image: none;\nsnippet bdbli\n\tborder-bottom-left-image: url(${1});\nsnippet bdbli:c\n\tborder-bottom-left-image: continue;\nsnippet bdbli:n\n\tborder-bottom-left-image: none;\nsnippet bdblrz\n\tborder-bottom-left-radius: ${1};\nsnippet bdbri\n\tborder-bottom-right-image: url(${1});\nsnippet bdbri:c\n\tborder-bottom-right-image: continue;\nsnippet bdbri:n\n\tborder-bottom-right-image: none;\nsnippet bdbrrz\n\tborder-bottom-right-radius: ${1};\nsnippet bdbs\n\tborder-bottom-style: ${1};\nsnippet bdbs:n\n\tborder-bottom-style: none;\nsnippet bdbw\n\tborder-bottom-width: ${1};\nsnippet bdb\n\tborder-bottom: ${1};\nsnippet bdb:n\n\tborder-bottom: none;\nsnippet bdbk\n\tborder-break: ${1};\nsnippet bdbk:c\n\tborder-break: close;\nsnippet bdcl\n\tborder-collapse: ${1};\nsnippet bdcl:c\n\tborder-collapse: collapse;\nsnippet bdcl:s\n\tborder-collapse: separate;\nsnippet bdc\n\tborder-color: #${1:000};\nsnippet bdci\n\tborder-corner-image: url(${1});\nsnippet bdci:c\n\tborder-corner-image: continue;\nsnippet bdci:n\n\tborder-corner-image: none;\nsnippet bdf\n\tborder-fit: ${1};\nsnippet bdf:c\n\tborder-fit: clip;\nsnippet bdf:of\n\tborder-fit: overwrite;\nsnippet bdf:ow\n\tborder-fit: overwrite;\nsnippet bdf:r\n\tborder-fit: repeat;\nsnippet bdf:sc\n\tborder-fit: scale;\nsnippet bdf:sp\n\tborder-fit: space;\nsnippet bdf:st\n\tborder-fit: stretch;\nsnippet bdi\n\tborder-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};\nsnippet bdi:n\n\tborder-image: none;\nsnippet bdl+\n\tborder-left: ${1:1px} ${2:solid} #${3:000};\nsnippet bdlc\n\tborder-left-color: #${1:000};\nsnippet bdli\n\tborder-left-image: url(${1});\nsnippet bdli:n\n\tborder-left-image: none;\nsnippet bdls\n\tborder-left-style: ${1};\nsnippet bdls:n\n\tborder-left-style: none;\nsnippet bdlw\n\tborder-left-width: ${1};\nsnippet bdl\n\tborder-left: ${1};\nsnippet bdl:n\n\tborder-left: none;\nsnippet bdlt\n\tborder-length: ${1};\nsnippet bdlt:a\n\tborder-length: auto;\nsnippet bdrz\n\tborder-radius: ${1};\nsnippet bdr+\n\tborder-right: ${1:1px} ${2:solid} #${3:000};\nsnippet bdrc\n\tborder-right-color: #${1:000};\nsnippet bdri\n\tborder-right-image: url(${1});\nsnippet bdri:n\n\tborder-right-image: none;\nsnippet bdrs\n\tborder-right-style: ${1};\nsnippet bdrs:n\n\tborder-right-style: none;\nsnippet bdrw\n\tborder-right-width: ${1};\nsnippet bdr\n\tborder-right: ${1};\nsnippet bdr:n\n\tborder-right: none;\nsnippet bdsp\n\tborder-spacing: ${1};\nsnippet bds\n\tborder-style: ${1};\nsnippet bds:ds\n\tborder-style: dashed;\nsnippet bds:dtds\n\tborder-style: dot-dash;\nsnippet bds:dtdtds\n\tborder-style: dot-dot-dash;\nsnippet bds:dt\n\tborder-style: dotted;\nsnippet bds:db\n\tborder-style: double;\nsnippet bds:g\n\tborder-style: groove;\nsnippet bds:h\n\tborder-style: hidden;\nsnippet bds:i\n\tborder-style: inset;\nsnippet bds:n\n\tborder-style: none;\nsnippet bds:o\n\tborder-style: outset;\nsnippet bds:r\n\tborder-style: ridge;\nsnippet bds:s\n\tborder-style: solid;\nsnippet bds:w\n\tborder-style: wave;\nsnippet bdt+\n\tborder-top: ${1:1px} ${2:solid} #${3:000};\nsnippet bdtc\n\tborder-top-color: #${1:000};\nsnippet bdti\n\tborder-top-image: url(${1});\nsnippet bdti:n\n\tborder-top-image: none;\nsnippet bdtli\n\tborder-top-left-image: url(${1});\nsnippet bdtli:c\n\tborder-corner-image: continue;\nsnippet bdtli:n\n\tborder-corner-image: none;\nsnippet bdtlrz\n\tborder-top-left-radius: ${1};\nsnippet bdtri\n\tborder-top-right-image: url(${1});\nsnippet bdtri:c\n\tborder-top-right-image: continue;\nsnippet bdtri:n\n\tborder-top-right-image: none;\nsnippet bdtrrz\n\tborder-top-right-radius: ${1};\nsnippet bdts\n\tborder-top-style: ${1};\nsnippet bdts:n\n\tborder-top-style: none;\nsnippet bdtw\n\tborder-top-width: ${1};\nsnippet bdt\n\tborder-top: ${1};\nsnippet bdt:n\n\tborder-top: none;\nsnippet bdw\n\tborder-width: ${1};\nsnippet bd\n\tborder: ${1};\nsnippet bd:n\n\tborder: none;\nsnippet b\n\tbottom: ${1};\nsnippet b:a\n\tbottom: auto;\nsnippet bxsh+\n\tbox-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet bxsh\n\tbox-shadow: ${1};\nsnippet bxsh:n\n\tbox-shadow: none;\nsnippet bxz\n\tbox-sizing: ${1};\nsnippet bxz:bb\n\tbox-sizing: border-box;\nsnippet bxz:cb\n\tbox-sizing: content-box;\nsnippet cps\n\tcaption-side: ${1};\nsnippet cps:b\n\tcaption-side: bottom;\nsnippet cps:t\n\tcaption-side: top;\nsnippet cl\n\tclear: ${1};\nsnippet cl:b\n\tclear: both;\nsnippet cl:l\n\tclear: left;\nsnippet cl:n\n\tclear: none;\nsnippet cl:r\n\tclear: right;\nsnippet cp\n\tclip: ${1};\nsnippet cp:a\n\tclip: auto;\nsnippet cp:r\n\tclip: rect(${1:0} ${2:0} ${3:0} ${4:0});\nsnippet c\n\tcolor: #${1:000};\nsnippet ct\n\tcontent: ${1};\nsnippet ct:a\n\tcontent: attr(${1});\nsnippet ct:cq\n\tcontent: close-quote;\nsnippet ct:c\n\tcontent: counter(${1});\nsnippet ct:cs\n\tcontent: counters(${1});\nsnippet ct:ncq\n\tcontent: no-close-quote;\nsnippet ct:noq\n\tcontent: no-open-quote;\nsnippet ct:n\n\tcontent: normal;\nsnippet ct:oq\n\tcontent: open-quote;\nsnippet coi\n\tcounter-increment: ${1};\nsnippet cor\n\tcounter-reset: ${1};\nsnippet cur\n\tcursor: ${1};\nsnippet cur:a\n\tcursor: auto;\nsnippet cur:c\n\tcursor: crosshair;\nsnippet cur:d\n\tcursor: default;\nsnippet cur:ha\n\tcursor: hand;\nsnippet cur:he\n\tcursor: help;\nsnippet cur:m\n\tcursor: move;\nsnippet cur:p\n\tcursor: pointer;\nsnippet cur:t\n\tcursor: text;\nsnippet d\n\tdisplay: ${1};\nsnippet d:mib\n\tdisplay: -moz-inline-box;\nsnippet d:mis\n\tdisplay: -moz-inline-stack;\nsnippet d:b\n\tdisplay: block;\nsnippet d:cp\n\tdisplay: compact;\nsnippet d:ib\n\tdisplay: inline-block;\nsnippet d:itb\n\tdisplay: inline-table;\nsnippet d:i\n\tdisplay: inline;\nsnippet d:li\n\tdisplay: list-item;\nsnippet d:n\n\tdisplay: none;\nsnippet d:ri\n\tdisplay: run-in;\nsnippet d:tbcp\n\tdisplay: table-caption;\nsnippet d:tbc\n\tdisplay: table-cell;\nsnippet d:tbclg\n\tdisplay: table-column-group;\nsnippet d:tbcl\n\tdisplay: table-column;\nsnippet d:tbfg\n\tdisplay: table-footer-group;\nsnippet d:tbhg\n\tdisplay: table-header-group;\nsnippet d:tbrg\n\tdisplay: table-row-group;\nsnippet d:tbr\n\tdisplay: table-row;\nsnippet d:tb\n\tdisplay: table;\nsnippet ec\n\tempty-cells: ${1};\nsnippet ec:h\n\tempty-cells: hide;\nsnippet ec:s\n\tempty-cells: show;\nsnippet exp\n\texpression()\nsnippet fl\n\tfloat: ${1};\nsnippet fl:l\n\tfloat: left;\nsnippet fl:n\n\tfloat: none;\nsnippet fl:r\n\tfloat: right;\nsnippet f+\n\tfont: ${1:1em} ${2:Arial},${3:sans-serif};\nsnippet fef\n\tfont-effect: ${1};\nsnippet fef:eb\n\tfont-effect: emboss;\nsnippet fef:eg\n\tfont-effect: engrave;\nsnippet fef:n\n\tfont-effect: none;\nsnippet fef:o\n\tfont-effect: outline;\nsnippet femp\n\tfont-emphasize-position: ${1};\nsnippet femp:a\n\tfont-emphasize-position: after;\nsnippet femp:b\n\tfont-emphasize-position: before;\nsnippet fems\n\tfont-emphasize-style: ${1};\nsnippet fems:ac\n\tfont-emphasize-style: accent;\nsnippet fems:c\n\tfont-emphasize-style: circle;\nsnippet fems:ds\n\tfont-emphasize-style: disc;\nsnippet fems:dt\n\tfont-emphasize-style: dot;\nsnippet fems:n\n\tfont-emphasize-style: none;\nsnippet fem\n\tfont-emphasize: ${1};\nsnippet ff\n\tfont-family: ${1};\nsnippet ff:c\n\tfont-family: ${1:'Monotype Corsiva','Comic Sans MS'},cursive;\nsnippet ff:f\n\tfont-family: ${1:Capitals,Impact},fantasy;\nsnippet ff:m\n\tfont-family: ${1:Monaco,'Courier New'},monospace;\nsnippet ff:ss\n\tfont-family: ${1:Helvetica,Arial},sans-serif;\nsnippet ff:s\n\tfont-family: ${1:Georgia,'Times New Roman'},serif;\nsnippet fza\n\tfont-size-adjust: ${1};\nsnippet fza:n\n\tfont-size-adjust: none;\nsnippet fz\n\tfont-size: ${1};\nsnippet fsm\n\tfont-smooth: ${1};\nsnippet fsm:aw\n\tfont-smooth: always;\nsnippet fsm:a\n\tfont-smooth: auto;\nsnippet fsm:n\n\tfont-smooth: never;\nsnippet fst\n\tfont-stretch: ${1};\nsnippet fst:c\n\tfont-stretch: condensed;\nsnippet fst:e\n\tfont-stretch: expanded;\nsnippet fst:ec\n\tfont-stretch: extra-condensed;\nsnippet fst:ee\n\tfont-stretch: extra-expanded;\nsnippet fst:n\n\tfont-stretch: normal;\nsnippet fst:sc\n\tfont-stretch: semi-condensed;\nsnippet fst:se\n\tfont-stretch: semi-expanded;\nsnippet fst:uc\n\tfont-stretch: ultra-condensed;\nsnippet fst:ue\n\tfont-stretch: ultra-expanded;\nsnippet fs\n\tfont-style: ${1};\nsnippet fs:i\n\tfont-style: italic;\nsnippet fs:n\n\tfont-style: normal;\nsnippet fs:o\n\tfont-style: oblique;\nsnippet fv\n\tfont-variant: ${1};\nsnippet fv:n\n\tfont-variant: normal;\nsnippet fv:sc\n\tfont-variant: small-caps;\nsnippet fw\n\tfont-weight: ${1};\nsnippet fw:b\n\tfont-weight: bold;\nsnippet fw:br\n\tfont-weight: bolder;\nsnippet fw:lr\n\tfont-weight: lighter;\nsnippet fw:n\n\tfont-weight: normal;\nsnippet f\n\tfont: ${1};\nsnippet h\n\theight: ${1};\nsnippet h:a\n\theight: auto;\nsnippet l\n\tleft: ${1};\nsnippet l:a\n\tleft: auto;\nsnippet lts\n\tletter-spacing: ${1};\nsnippet lh\n\tline-height: ${1};\nsnippet lisi\n\tlist-style-image: url(${1});\nsnippet lisi:n\n\tlist-style-image: none;\nsnippet lisp\n\tlist-style-position: ${1};\nsnippet lisp:i\n\tlist-style-position: inside;\nsnippet lisp:o\n\tlist-style-position: outside;\nsnippet list\n\tlist-style-type: ${1};\nsnippet list:c\n\tlist-style-type: circle;\nsnippet list:dclz\n\tlist-style-type: decimal-leading-zero;\nsnippet list:dc\n\tlist-style-type: decimal;\nsnippet list:d\n\tlist-style-type: disc;\nsnippet list:lr\n\tlist-style-type: lower-roman;\nsnippet list:n\n\tlist-style-type: none;\nsnippet list:s\n\tlist-style-type: square;\nsnippet list:ur\n\tlist-style-type: upper-roman;\nsnippet lis\n\tlist-style: ${1};\nsnippet lis:n\n\tlist-style: none;\nsnippet mb\n\tmargin-bottom: ${1};\nsnippet mb:a\n\tmargin-bottom: auto;\nsnippet ml\n\tmargin-left: ${1};\nsnippet ml:a\n\tmargin-left: auto;\nsnippet mr\n\tmargin-right: ${1};\nsnippet mr:a\n\tmargin-right: auto;\nsnippet mt\n\tmargin-top: ${1};\nsnippet mt:a\n\tmargin-top: auto;\nsnippet m\n\tmargin: ${1};\nsnippet m:4\n\tmargin: ${1:0} ${2:0} ${3:0} ${4:0};\nsnippet m:3\n\tmargin: ${1:0} ${2:0} ${3:0};\nsnippet m:2\n\tmargin: ${1:0} ${2:0};\nsnippet m:0\n\tmargin: 0;\nsnippet m:a\n\tmargin: auto;\nsnippet mah\n\tmax-height: ${1};\nsnippet mah:n\n\tmax-height: none;\nsnippet maw\n\tmax-width: ${1};\nsnippet maw:n\n\tmax-width: none;\nsnippet mih\n\tmin-height: ${1};\nsnippet miw\n\tmin-width: ${1};\nsnippet op\n\topacity: ${1};\nsnippet op:ie\n\tfilter: progid:DXImageTransform.Microsoft.Alpha(Opacity=${1:100});\nsnippet op:ms\n\t-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=${1:100})';\nsnippet orp\n\torphans: ${1};\nsnippet o+\n\toutline: ${1:1px} ${2:solid} #${3:000};\nsnippet oc\n\toutline-color: ${1:#000};\nsnippet oc:i\n\toutline-color: invert;\nsnippet oo\n\toutline-offset: ${1};\nsnippet os\n\toutline-style: ${1};\nsnippet ow\n\toutline-width: ${1};\nsnippet o\n\toutline: ${1};\nsnippet o:n\n\toutline: none;\nsnippet ovs\n\toverflow-style: ${1};\nsnippet ovs:a\n\toverflow-style: auto;\nsnippet ovs:mq\n\toverflow-style: marquee;\nsnippet ovs:mv\n\toverflow-style: move;\nsnippet ovs:p\n\toverflow-style: panner;\nsnippet ovs:s\n\toverflow-style: scrollbar;\nsnippet ovx\n\toverflow-x: ${1};\nsnippet ovx:a\n\toverflow-x: auto;\nsnippet ovx:h\n\toverflow-x: hidden;\nsnippet ovx:s\n\toverflow-x: scroll;\nsnippet ovx:v\n\toverflow-x: visible;\nsnippet ovy\n\toverflow-y: ${1};\nsnippet ovy:a\n\toverflow-y: auto;\nsnippet ovy:h\n\toverflow-y: hidden;\nsnippet ovy:s\n\toverflow-y: scroll;\nsnippet ovy:v\n\toverflow-y: visible;\nsnippet ov\n\toverflow: ${1};\nsnippet ov:a\n\toverflow: auto;\nsnippet ov:h\n\toverflow: hidden;\nsnippet ov:s\n\toverflow: scroll;\nsnippet ov:v\n\toverflow: visible;\nsnippet pb\n\tpadding-bottom: ${1};\nsnippet pl\n\tpadding-left: ${1};\nsnippet pr\n\tpadding-right: ${1};\nsnippet pt\n\tpadding-top: ${1};\nsnippet p\n\tpadding: ${1};\nsnippet p:4\n\tpadding: ${1:0} ${2:0} ${3:0} ${4:0};\nsnippet p:3\n\tpadding: ${1:0} ${2:0} ${3:0};\nsnippet p:2\n\tpadding: ${1:0} ${2:0};\nsnippet p:0\n\tpadding: 0;\nsnippet pgba\n\tpage-break-after: ${1};\nsnippet pgba:aw\n\tpage-break-after: always;\nsnippet pgba:a\n\tpage-break-after: auto;\nsnippet pgba:l\n\tpage-break-after: left;\nsnippet pgba:r\n\tpage-break-after: right;\nsnippet pgbb\n\tpage-break-before: ${1};\nsnippet pgbb:aw\n\tpage-break-before: always;\nsnippet pgbb:a\n\tpage-break-before: auto;\nsnippet pgbb:l\n\tpage-break-before: left;\nsnippet pgbb:r\n\tpage-break-before: right;\nsnippet pgbi\n\tpage-break-inside: ${1};\nsnippet pgbi:a\n\tpage-break-inside: auto;\nsnippet pgbi:av\n\tpage-break-inside: avoid;\nsnippet pos\n\tposition: ${1};\nsnippet pos:a\n\tposition: absolute;\nsnippet pos:f\n\tposition: fixed;\nsnippet pos:r\n\tposition: relative;\nsnippet pos:s\n\tposition: static;\nsnippet q\n\tquotes: ${1};\nsnippet q:en\n\tquotes: '\\201C' '\\201D' '\\2018' '\\2019';\nsnippet q:n\n\tquotes: none;\nsnippet q:ru\n\tquotes: '\\00AB' '\\00BB' '\\201E' '\\201C';\nsnippet rz\n\tresize: ${1};\nsnippet rz:b\n\tresize: both;\nsnippet rz:h\n\tresize: horizontal;\nsnippet rz:n\n\tresize: none;\nsnippet rz:v\n\tresize: vertical;\nsnippet r\n\tright: ${1};\nsnippet r:a\n\tright: auto;\nsnippet tbl\n\ttable-layout: ${1};\nsnippet tbl:a\n\ttable-layout: auto;\nsnippet tbl:f\n\ttable-layout: fixed;\nsnippet tal\n\ttext-align-last: ${1};\nsnippet tal:a\n\ttext-align-last: auto;\nsnippet tal:c\n\ttext-align-last: center;\nsnippet tal:l\n\ttext-align-last: left;\nsnippet tal:r\n\ttext-align-last: right;\nsnippet ta\n\ttext-align: ${1};\nsnippet ta:c\n\ttext-align: center;\nsnippet ta:l\n\ttext-align: left;\nsnippet ta:r\n\ttext-align: right;\nsnippet td\n\ttext-decoration: ${1};\nsnippet td:l\n\ttext-decoration: line-through;\nsnippet td:n\n\ttext-decoration: none;\nsnippet td:o\n\ttext-decoration: overline;\nsnippet td:u\n\ttext-decoration: underline;\nsnippet te\n\ttext-emphasis: ${1};\nsnippet te:ac\n\ttext-emphasis: accent;\nsnippet te:a\n\ttext-emphasis: after;\nsnippet te:b\n\ttext-emphasis: before;\nsnippet te:c\n\ttext-emphasis: circle;\nsnippet te:ds\n\ttext-emphasis: disc;\nsnippet te:dt\n\ttext-emphasis: dot;\nsnippet te:n\n\ttext-emphasis: none;\nsnippet th\n\ttext-height: ${1};\nsnippet th:a\n\ttext-height: auto;\nsnippet th:f\n\ttext-height: font-size;\nsnippet th:m\n\ttext-height: max-size;\nsnippet th:t\n\ttext-height: text-size;\nsnippet ti\n\ttext-indent: ${1};\nsnippet ti:-\n\ttext-indent: -9999px;\nsnippet tj\n\ttext-justify: ${1};\nsnippet tj:a\n\ttext-justify: auto;\nsnippet tj:d\n\ttext-justify: distribute;\nsnippet tj:ic\n\ttext-justify: inter-cluster;\nsnippet tj:ii\n\ttext-justify: inter-ideograph;\nsnippet tj:iw\n\ttext-justify: inter-word;\nsnippet tj:k\n\ttext-justify: kashida;\nsnippet tj:t\n\ttext-justify: tibetan;\nsnippet to+\n\ttext-outline: ${1:0} ${2:0} #${3:000};\nsnippet to\n\ttext-outline: ${1};\nsnippet to:n\n\ttext-outline: none;\nsnippet tr\n\ttext-replace: ${1};\nsnippet tr:n\n\ttext-replace: none;\nsnippet tsh+\n\ttext-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet tsh\n\ttext-shadow: ${1};\nsnippet tsh:n\n\ttext-shadow: none;\nsnippet tt\n\ttext-transform: ${1};\nsnippet tt:c\n\ttext-transform: capitalize;\nsnippet tt:l\n\ttext-transform: lowercase;\nsnippet tt:n\n\ttext-transform: none;\nsnippet tt:u\n\ttext-transform: uppercase;\nsnippet tw\n\ttext-wrap: ${1};\nsnippet tw:no\n\ttext-wrap: none;\nsnippet tw:n\n\ttext-wrap: normal;\nsnippet tw:s\n\ttext-wrap: suppress;\nsnippet tw:u\n\ttext-wrap: unrestricted;\nsnippet t\n\ttop: ${1};\nsnippet t:a\n\ttop: auto;\nsnippet va\n\tvertical-align: ${1};\nsnippet va:bl\n\tvertical-align: baseline;\nsnippet va:b\n\tvertical-align: bottom;\nsnippet va:m\n\tvertical-align: middle;\nsnippet va:sub\n\tvertical-align: sub;\nsnippet va:sup\n\tvertical-align: super;\nsnippet va:tb\n\tvertical-align: text-bottom;\nsnippet va:tt\n\tvertical-align: text-top;\nsnippet va:t\n\tvertical-align: top;\nsnippet v\n\tvisibility: ${1};\nsnippet v:c\n\tvisibility: collapse;\nsnippet v:h\n\tvisibility: hidden;\nsnippet v:v\n\tvisibility: visible;\nsnippet whsc\n\twhite-space-collapse: ${1};\nsnippet whsc:ba\n\twhite-space-collapse: break-all;\nsnippet whsc:bs\n\twhite-space-collapse: break-strict;\nsnippet whsc:k\n\twhite-space-collapse: keep-all;\nsnippet whsc:l\n\twhite-space-collapse: loose;\nsnippet whsc:n\n\twhite-space-collapse: normal;\nsnippet whs\n\twhite-space: ${1};\nsnippet whs:n\n\twhite-space: normal;\nsnippet whs:nw\n\twhite-space: nowrap;\nsnippet whs:pl\n\twhite-space: pre-line;\nsnippet whs:pw\n\twhite-space: pre-wrap;\nsnippet whs:p\n\twhite-space: pre;\nsnippet wid\n\twidows: ${1};\nsnippet w\n\twidth: ${1};\nsnippet w:a\n\twidth: auto;\nsnippet wob\n\tword-break: ${1};\nsnippet wob:ba\n\tword-break: break-all;\nsnippet wob:bs\n\tword-break: break-strict;\nsnippet wob:k\n\tword-break: keep-all;\nsnippet wob:l\n\tword-break: loose;\nsnippet wob:n\n\tword-break: normal;\nsnippet wos\n\tword-spacing: ${1};\nsnippet wow\n\tword-wrap: ${1};\nsnippet wow:no\n\tword-wrap: none;\nsnippet wow:n\n\tword-wrap: normal;\nsnippet wow:s\n\tword-wrap: suppress;\nsnippet wow:u\n\tword-wrap: unrestricted;\nsnippet z\n\tz-index: ${1};\nsnippet z:a\n\tz-index: auto;\nsnippet zoo\n\tzoom: 1;\n"})),ace.define("ace/snippets/css",["require","exports","module","ace/snippets/css.snippets"],(function(e,t,n){"use strict";t.snippetText=e("./css.snippets"),t.scope="css"})),ace.require(["ace/snippets/css"],(function(t){e&&(e.exports=t)}))},6704(e,t,n){e=n.nmd(e),ace.define("ace/snippets/html.snippets",["require","exports","module"],(function(e,t,n){n.exports='# Some useful Unicode entities\n# Non-Breaking Space\nsnippet nbs\n\t \n# ←\nsnippet left\n\t←\n# →\nsnippet right\n\t→\n# ↑\nsnippet up\n\t↑\n# ↓\nsnippet down\n\t↓\n# ↩\nsnippet return\n\t↩\n# ⇤\nsnippet backtab\n\t⇤\n# ⇥\nsnippet tab\n\t⇥\n# ⇧\nsnippet shift\n\t⇧\n# ⌃\nsnippet ctrl\n\t⌃\n# ⌅\nsnippet enter\n\t⌅\n# ⌘\nsnippet cmd\n\t⌘\n# ⌥\nsnippet option\n\t⌥\n# ⌦\nsnippet delete\n\t⌦\n# ⌫\nsnippet backspace\n\t⌫\n# ⎋\nsnippet esc\n\t⎋\n# Generic Doctype\nsnippet doctype HTML 4.01 Strict\n\t<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"\n\t"http://www.w3.org/TR/html4/strict.dtd">\nsnippet doctype HTML 4.01 Transitional\n\t<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"\n\t"http://www.w3.org/TR/html4/loose.dtd">\nsnippet doctype HTML 5\n\t<!DOCTYPE HTML>\nsnippet doctype XHTML 1.0 Frameset\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\nsnippet doctype XHTML 1.0 Strict\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\nsnippet doctype XHTML 1.0 Transitional\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\nsnippet doctype XHTML 1.1\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"\n\t"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\n# HTML Doctype 4.01 Strict\nsnippet docts\n\t<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"\n\t"http://www.w3.org/TR/html4/strict.dtd">\n# HTML Doctype 4.01 Transitional\nsnippet doct\n\t<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"\n\t"http://www.w3.org/TR/html4/loose.dtd">\n# HTML Doctype 5\nsnippet doct5\n\t<!DOCTYPE html>\n# XHTML Doctype 1.0 Frameset\nsnippet docxf\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">\n# XHTML Doctype 1.0 Strict\nsnippet docxs\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n# XHTML Doctype 1.0 Transitional\nsnippet docxt\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n# XHTML Doctype 1.1\nsnippet docx\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"\n\t"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\n# html5shiv\nsnippet html5shiv\n\t\x3c!--[if lte IE 8]>\n\t\t<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"><\/script>\n\t<![endif]--\x3e\nsnippet html5printshiv\n\t\x3c!--[if lte IE 8]>\n\t\t<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"><\/script>\n\t<![endif]--\x3e\n# Attributes\nsnippet attr\n\t${1:attribute}="${2:property}"\nsnippet attr+\n\t${1:attribute}="${2:property}" attr+${3}\nsnippet .\n\tclass="${1}"${2}\nsnippet #\n\tid="${1}"${2}\nsnippet alt\n\talt="${1}"${2}\nsnippet charset\n\tcharset="${1:utf-8}"${2}\nsnippet data\n\tdata-${1}="${2:$1}"${3}\nsnippet for\n\tfor="${1}"${2}\nsnippet height\n\theight="${1}"${2}\nsnippet href\n\thref="${1:#}"${2}\nsnippet lang\n\tlang="${1:en}"${2}\nsnippet media\n\tmedia="${1}"${2}\nsnippet name\n\tname="${1}"${2}\nsnippet rel\n\trel="${1}"${2}\nsnippet scope\n\tscope="${1:row}"${2}\nsnippet src\n\tsrc="${1}"${2}\nsnippet title=\n\ttitle="${1}"${2}\nsnippet type\n\ttype="${1}"${2}\nsnippet value\n\tvalue="${1}"${2}\nsnippet width\n\twidth="${1}"${2}\n# Elements\nsnippet a\n\t<a href="${1:#}">${2:$1}</a>\nsnippet a.\n\t<a class="${1}" href="${2:#}">${3:$1}</a>\nsnippet a#\n\t<a id="${1}" href="${2:#}">${3:$1}</a>\nsnippet a:ext\n\t<a href="http://${1:example.com}">${2:$1}</a>\nsnippet a:mail\n\t<a href="mailto:${1:joe@example.com}?subject=${2:feedback}">${3:email me}</a>\nsnippet abbr\n\t<abbr title="${1}">${2}</abbr>\nsnippet address\n\t<address>\n\t\t${1}\n\t</address>\nsnippet area\n\t<area shape="${1:rect}" coords="${2}" href="${3}" alt="${4}" />\nsnippet area+\n\t<area shape="${1:rect}" coords="${2}" href="${3}" alt="${4}" />\n\tarea+${5}\nsnippet area:c\n\t<area shape="circle" coords="${1}" href="${2}" alt="${3}" />\nsnippet area:d\n\t<area shape="default" coords="${1}" href="${2}" alt="${3}" />\nsnippet area:p\n\t<area shape="poly" coords="${1}" href="${2}" alt="${3}" />\nsnippet area:r\n\t<area shape="rect" coords="${1}" href="${2}" alt="${3}" />\nsnippet article\n\t<article>\n\t\t${1}\n\t</article>\nsnippet article.\n\t<article class="${1}">\n\t\t${2}\n\t</article>\nsnippet article#\n\t<article id="${1}">\n\t\t${2}\n\t</article>\nsnippet aside\n\t<aside>\n\t\t${1}\n\t</aside>\nsnippet aside.\n\t<aside class="${1}">\n\t\t${2}\n\t</aside>\nsnippet aside#\n\t<aside id="${1}">\n\t\t${2}\n\t</aside>\nsnippet audio\n\t<audio src="${1}>${2}</audio>\nsnippet b\n\t<b>${1}</b>\nsnippet base\n\t<base href="${1}" target="${2}" />\nsnippet bdi\n\t<bdi>${1}</bdo>\nsnippet bdo\n\t<bdo dir="${1}">${2}</bdo>\nsnippet bdo:l\n\t<bdo dir="ltr">${1}</bdo>\nsnippet bdo:r\n\t<bdo dir="rtl">${1}</bdo>\nsnippet blockquote\n\t<blockquote>\n\t\t${1}\n\t</blockquote>\nsnippet body\n\t<body>\n\t\t${1}\n\t</body>\nsnippet br\n\t<br />${1}\nsnippet button\n\t<button type="${1:submit}">${2}</button>\nsnippet button.\n\t<button class="${1:button}" type="${2:submit}">${3}</button>\nsnippet button#\n\t<button id="${1}" type="${2:submit}">${3}</button>\nsnippet button:s\n\t<button type="submit">${1}</button>\nsnippet button:r\n\t<button type="reset">${1}</button>\nsnippet canvas\n\t<canvas id="${1:canvas}"></canvas>\nsnippet caption\n\t<caption>${1}</caption>\nsnippet cite\n\t<cite>${1}</cite>\nsnippet code\n\t<code>${1}</code>\nsnippet col\n\t<col />${1}\nsnippet col+\n\t<col />\n\tcol+${1}\nsnippet colgroup\n\t<colgroup>\n\t\t${1}\n\t</colgroup>\nsnippet colgroup+\n\t<colgroup>\n\t\t<col />\n\t\tcol+${1}\n\t</colgroup>\nsnippet command\n\t<command type="command" label="${1}" icon="${2}" />\nsnippet command:c\n\t<command type="checkbox" label="${1}" icon="${2}" />\nsnippet command:r\n\t<command type="radio" radiogroup="${1}" label="${2}" icon="${3}" />\nsnippet datagrid\n\t<datagrid>\n\t\t${1}\n\t</datagrid>\nsnippet datalist\n\t<datalist>\n\t\t${1}\n\t</datalist>\nsnippet datatemplate\n\t<datatemplate>\n\t\t${1}\n\t</datatemplate>\nsnippet dd\n\t<dd>${1}</dd>\nsnippet dd.\n\t<dd class="${1}">${2}</dd>\nsnippet dd#\n\t<dd id="${1}">${2}</dd>\nsnippet del\n\t<del>${1}</del>\nsnippet details\n\t<details>${1}</details>\nsnippet dfn\n\t<dfn>${1}</dfn>\nsnippet dialog\n\t<dialog>\n\t\t${1}\n\t</dialog>\nsnippet div\n\t<div>\n\t\t${1}\n\t</div>\nsnippet div.\n\t<div class="${1}">\n\t\t${2}\n\t</div>\nsnippet div#\n\t<div id="${1}">\n\t\t${2}\n\t</div>\nsnippet dl\n\t<dl>\n\t\t${1}\n\t</dl>\nsnippet dl.\n\t<dl class="${1}">\n\t\t${2}\n\t</dl>\nsnippet dl#\n\t<dl id="${1}">\n\t\t${2}\n\t</dl>\nsnippet dl+\n\t<dl>\n\t\t<dt>${1}</dt>\n\t\t<dd>${2}</dd>\n\t\tdt+${3}\n\t</dl>\nsnippet dt\n\t<dt>${1}</dt>\nsnippet dt.\n\t<dt class="${1}">${2}</dt>\nsnippet dt#\n\t<dt id="${1}">${2}</dt>\nsnippet dt+\n\t<dt>${1}</dt>\n\t<dd>${2}</dd>\n\tdt+${3}\nsnippet em\n\t<em>${1}</em>\nsnippet embed\n\t<embed src=${1} type="${2} />\nsnippet fieldset\n\t<fieldset>\n\t\t${1}\n\t</fieldset>\nsnippet fieldset.\n\t<fieldset class="${1}">\n\t\t${2}\n\t</fieldset>\nsnippet fieldset#\n\t<fieldset id="${1}">\n\t\t${2}\n\t</fieldset>\nsnippet fieldset+\n\t<fieldset>\n\t\t<legend><span>${1}</span></legend>\n\t\t${2}\n\t</fieldset>\n\tfieldset+${3}\nsnippet figcaption\n\t<figcaption>${1}</figcaption>\nsnippet figure\n\t<figure>${1}</figure>\nsnippet footer\n\t<footer>\n\t\t${1}\n\t</footer>\nsnippet footer.\n\t<footer class="${1}">\n\t\t${2}\n\t</footer>\nsnippet footer#\n\t<footer id="${1}">\n\t\t${2}\n\t</footer>\nsnippet form\n\t<form action="${1}" method="${2:get}" accept-charset="utf-8">\n\t\t${3}\n\t</form>\nsnippet form.\n\t<form class="${1}" action="${2}" method="${3:get}" accept-charset="utf-8">\n\t\t${4}\n\t</form>\nsnippet form#\n\t<form id="${1}" action="${2}" method="${3:get}" accept-charset="utf-8">\n\t\t${4}\n\t</form>\nsnippet h1\n\t<h1>${1}</h1>\nsnippet h1.\n\t<h1 class="${1}">${2}</h1>\nsnippet h1#\n\t<h1 id="${1}">${2}</h1>\nsnippet h2\n\t<h2>${1}</h2>\nsnippet h2.\n\t<h2 class="${1}">${2}</h2>\nsnippet h2#\n\t<h2 id="${1}">${2}</h2>\nsnippet h3\n\t<h3>${1}</h3>\nsnippet h3.\n\t<h3 class="${1}">${2}</h3>\nsnippet h3#\n\t<h3 id="${1}">${2}</h3>\nsnippet h4\n\t<h4>${1}</h4>\nsnippet h4.\n\t<h4 class="${1}">${2}</h4>\nsnippet h4#\n\t<h4 id="${1}">${2}</h4>\nsnippet h5\n\t<h5>${1}</h5>\nsnippet h5.\n\t<h5 class="${1}">${2}</h5>\nsnippet h5#\n\t<h5 id="${1}">${2}</h5>\nsnippet h6\n\t<h6>${1}</h6>\nsnippet h6.\n\t<h6 class="${1}">${2}</h6>\nsnippet h6#\n\t<h6 id="${1}">${2}</h6>\nsnippet head\n\t<head>\n\t\t<meta http-equiv="content-type" content="text/html; charset=utf-8" />\n\n\t\t<title>${1:`substitute(Filename(\'\', \'Page Title\'), \'^.\', \'\\u&\', \'\')`}</title>\n\t\t${2}\n\t</head>\nsnippet header\n\t<header>\n\t\t${1}\n\t</header>\nsnippet header.\n\t<header class="${1}">\n\t\t${2}\n\t</header>\nsnippet header#\n\t<header id="${1}">\n\t\t${2}\n\t</header>\nsnippet hgroup\n\t<hgroup>\n\t\t${1}\n\t</hgroup>\nsnippet hgroup.\n\t<hgroup class="${1}>\n\t\t${2}\n\t</hgroup>\nsnippet hr\n\t<hr />${1}\nsnippet html\n\t<html>\n\t${1}\n\t</html>\nsnippet xhtml\n\t<html xmlns="http://www.w3.org/1999/xhtml">\n\t${1}\n\t</html>\nsnippet html5\n\t<!DOCTYPE html>\n\t<html>\n\t\t<head>\n\t\t\t<meta http-equiv="content-type" content="text/html; charset=utf-8" />\n\t\t\t<title>${1:`substitute(Filename(\'\', \'Page Title\'), \'^.\', \'\\u&\', \'\')`}</title>\n\t\t\t${2:meta}\n\t\t</head>\n\t\t<body>\n\t\t\t${3:body}\n\t\t</body>\n\t</html>\nsnippet xhtml5\n\t<!DOCTYPE html>\n\t<html xmlns="http://www.w3.org/1999/xhtml">\n\t\t<head>\n\t\t\t<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />\n\t\t\t<title>${1:`substitute(Filename(\'\', \'Page Title\'), \'^.\', \'\\u&\', \'\')`}</title>\n\t\t\t${2:meta}\n\t\t</head>\n\t\t<body>\n\t\t\t${3:body}\n\t\t</body>\n\t</html>\nsnippet i\n\t<i>${1}</i>\nsnippet iframe\n\t<iframe src="${1}" frameborder="0"></iframe>${2}\nsnippet iframe.\n\t<iframe class="${1}" src="${2}" frameborder="0"></iframe>${3}\nsnippet iframe#\n\t<iframe id="${1}" src="${2}" frameborder="0"></iframe>${3}\nsnippet img\n\t<img src="${1}" alt="${2}" />${3}\nsnippet img.\n\t<img class="${1}" src="${2}" alt="${3}" />${4}\nsnippet img#\n\t<img id="${1}" src="${2}" alt="${3}" />${4}\nsnippet input\n\t<input type="${1:text/submit/hidden/button/image}" name="${2}" id="${3:$2}" value="${4}" />${5}\nsnippet input.\n\t<input class="${1}" type="${2:text/submit/hidden/button/image}" name="${3}" id="${4:$3}" value="${5}" />${6}\nsnippet input:text\n\t<input type="text" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:submit\n\t<input type="submit" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:hidden\n\t<input type="hidden" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:button\n\t<input type="button" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:image\n\t<input type="image" name="${1}" id="${2:$1}" src="${3}" alt="${4}" />${5}\nsnippet input:checkbox\n\t<input type="checkbox" name="${1}" id="${2:$1}" />${3}\nsnippet input:radio\n\t<input type="radio" name="${1}" id="${2:$1}" />${3}\nsnippet input:color\n\t<input type="color" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:date\n\t<input type="date" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:datetime\n\t<input type="datetime" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:datetime-local\n\t<input type="datetime-local" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:email\n\t<input type="email" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:file\n\t<input type="file" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:month\n\t<input type="month" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:number\n\t<input type="number" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:password\n\t<input type="password" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:range\n\t<input type="range" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:reset\n\t<input type="reset" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:search\n\t<input type="search" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:time\n\t<input type="time" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:url\n\t<input type="url" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:week\n\t<input type="week" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet ins\n\t<ins>${1}</ins>\nsnippet kbd\n\t<kbd>${1}</kbd>\nsnippet keygen\n\t<keygen>${1}</keygen>\nsnippet label\n\t<label for="${2:$1}">${1}</label>\nsnippet label:i\n\t<label for="${2:$1}">${1}</label>\n\t<input type="${3:text/submit/hidden/button}" name="${4:$2}" id="${5:$2}" value="${6}" />${7}\nsnippet label:s\n\t<label for="${2:$1}">${1}</label>\n\t<select name="${3:$2}" id="${4:$2}">\n\t\t<option value="${5}">${6:$5}</option>\n\t</select>\nsnippet legend\n\t<legend>${1}</legend>\nsnippet legend+\n\t<legend><span>${1}</span></legend>\nsnippet li\n\t<li>${1}</li>\nsnippet li.\n\t<li class="${1}">${2}</li>\nsnippet li+\n\t<li>${1}</li>\n\tli+${2}\nsnippet lia\n\t<li><a href="${2:#}">${1}</a></li>\nsnippet lia+\n\t<li><a href="${2:#}">${1}</a></li>\n\tlia+${3}\nsnippet link\n\t<link rel="${1}" href="${2}" title="${3}" type="${4}" />${5}\nsnippet link:atom\n\t<link rel="alternate" href="${1:atom.xml}" title="Atom" type="application/atom+xml" />${2}\nsnippet link:css\n\t<link rel="stylesheet" href="${2:style.css}" type="text/css" media="${3:all}" />${4}\nsnippet link:favicon\n\t<link rel="shortcut icon" href="${1:favicon.ico}" type="image/x-icon" />${2}\nsnippet link:rss\n\t<link rel="alternate" href="${1:rss.xml}" title="RSS" type="application/atom+xml" />${2}\nsnippet link:touch\n\t<link rel="apple-touch-icon" href="${1:favicon.png}" />${2}\nsnippet map\n\t<map name="${1}">\n\t\t${2}\n\t</map>\nsnippet map.\n\t<map class="${1}" name="${2}">\n\t\t${3}\n\t</map>\nsnippet map#\n\t<map name="${1}" id="${2:$1}>\n\t\t${3}\n\t</map>\nsnippet map+\n\t<map name="${1}">\n\t\t<area shape="${2}" coords="${3}" href="${4}" alt="${5}" />${6}\n\t</map>${7}\nsnippet mark\n\t<mark>${1}</mark>\nsnippet menu\n\t<menu>\n\t\t${1}\n\t</menu>\nsnippet menu:c\n\t<menu type="context">\n\t\t${1}\n\t</menu>\nsnippet menu:t\n\t<menu type="toolbar">\n\t\t${1}\n\t</menu>\nsnippet meta\n\t<meta http-equiv="${1}" content="${2}" />${3}\nsnippet meta:compat\n\t<meta http-equiv="X-UA-Compatible" content="IE=${1:7,8,edge}" />${3}\nsnippet meta:refresh\n\t<meta http-equiv="refresh" content="text/html;charset=UTF-8" />${3}\nsnippet meta:utf\n\t<meta http-equiv="content-type" content="text/html;charset=UTF-8" />${3}\nsnippet meter\n\t<meter>${1}</meter>\nsnippet nav\n\t<nav>\n\t\t${1}\n\t</nav>\nsnippet nav.\n\t<nav class="${1}">\n\t\t${2}\n\t</nav>\nsnippet nav#\n\t<nav id="${1}">\n\t\t${2}\n\t</nav>\nsnippet noscript\n\t<noscript>\n\t\t${1}\n\t</noscript>\nsnippet object\n\t<object data="${1}" type="${2}">\n\t\t${3}\n\t</object>${4}\n# Embed QT Movie\nsnippet movie\n\t<object width="$2" height="$3" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"\n\t codebase="http://www.apple.com/qtactivex/qtplugin.cab">\n\t\t<param name="src" value="$1" />\n\t\t<param name="controller" value="$4" />\n\t\t<param name="autoplay" value="$5" />\n\t\t<embed src="${1:movie.mov}"\n\t\t\twidth="${2:320}" height="${3:240}"\n\t\t\tcontroller="${4:true}" autoplay="${5:true}"\n\t\t\tscale="tofit" cache="true"\n\t\t\tpluginspage="http://www.apple.com/quicktime/download/" />\n\t</object>${6}\nsnippet ol\n\t<ol>\n\t\t${1}\n\t</ol>\nsnippet ol.\n\t<ol class="${1}>\n\t\t${2}\n\t</ol>\nsnippet ol#\n\t<ol id="${1}>\n\t\t${2}\n\t</ol>\nsnippet ol+\n\t<ol>\n\t\t<li>${1}</li>\n\t\tli+${2}\n\t</ol>\nsnippet opt\n\t<option value="${1}">${2:$1}</option>\nsnippet opt+\n\t<option value="${1}">${2:$1}</option>\n\topt+${3}\nsnippet optt\n\t<option>${1}</option>\nsnippet optgroup\n\t<optgroup>\n\t\t<option value="${1}">${2:$1}</option>\n\t\topt+${3}\n\t</optgroup>\nsnippet output\n\t<output>${1}</output>\nsnippet p\n\t<p>${1}</p>\nsnippet param\n\t<param name="${1}" value="${2}" />${3}\nsnippet pre\n\t<pre>\n\t\t${1}\n\t</pre>\nsnippet progress\n\t<progress>${1}</progress>\nsnippet q\n\t<q>${1}</q>\nsnippet rp\n\t<rp>${1}</rp>\nsnippet rt\n\t<rt>${1}</rt>\nsnippet ruby\n\t<ruby>\n\t\t<rp><rt>${1}</rt></rp>\n\t</ruby>\nsnippet s\n\t<s>${1}</s>\nsnippet samp\n\t<samp>\n\t\t${1}\n\t</samp>\nsnippet script\n\t<script type="text/javascript" charset="utf-8">\n\t\t${1}\n\t<\/script>\nsnippet scriptsrc\n\t<script src="${1}.js" type="text/javascript" charset="utf-8"><\/script>\nsnippet newscript\n\t<script type="application/javascript" charset="utf-8">\n\t\t${1}\n\t<\/script>\nsnippet newscriptsrc\n\t<script src="${1}.js" type="application/javascript" charset="utf-8"><\/script>\nsnippet section\n\t<section>\n\t\t${1}\n\t</section>\nsnippet section.\n\t<section class="${1}">\n\t\t${2}\n\t</section>\nsnippet section#\n\t<section id="${1}">\n\t\t${2}\n\t</section>\nsnippet select\n\t<select name="${1}" id="${2:$1}">\n\t\t${3}\n\t</select>\nsnippet select.\n\t<select name="${1}" id="${2:$1}" class="${3}>\n\t\t${4}\n\t</select>\nsnippet select+\n\t<select name="${1}" id="${2:$1}">\n\t\t<option value="${3}">${4:$3}</option>\n\t\topt+${5}\n\t</select>\nsnippet small\n\t<small>${1}</small>\nsnippet source\n\t<source src="${1}" type="${2}" media="${3}" />\nsnippet span\n\t<span>${1}</span>\nsnippet strong\n\t<strong>${1}</strong>\nsnippet style\n\t<style type="text/css" media="${1:all}">\n\t\t${2}\n\t</style>\nsnippet sub\n\t<sub>${1}</sub>\nsnippet summary\n\t<summary>\n\t\t${1}\n\t</summary>\nsnippet sup\n\t<sup>${1}</sup>\nsnippet table\n\t<table border="${1:0}">\n\t\t${2}\n\t</table>\nsnippet table.\n\t<table class="${1}" border="${2:0}">\n\t\t${3}\n\t</table>\nsnippet table#\n\t<table id="${1}" border="${2:0}">\n\t\t${3}\n\t</table>\nsnippet tbody\n\t<tbody>\n\t\t${1}\n\t</tbody>\nsnippet td\n\t<td>${1}</td>\nsnippet td.\n\t<td class="${1}">${2}</td>\nsnippet td#\n\t<td id="${1}">${2}</td>\nsnippet td+\n\t<td>${1}</td>\n\ttd+${2}\nsnippet textarea\n\t<textarea name="${1}" id=${2:$1} rows="${3:8}" cols="${4:40}">${5}</textarea>${6}\nsnippet tfoot\n\t<tfoot>\n\t\t${1}\n\t</tfoot>\nsnippet th\n\t<th>${1}</th>\nsnippet th.\n\t<th class="${1}">${2}</th>\nsnippet th#\n\t<th id="${1}">${2}</th>\nsnippet th+\n\t<th>${1}</th>\n\tth+${2}\nsnippet thead\n\t<thead>\n\t\t${1}\n\t</thead>\nsnippet time\n\t<time datetime="${1}" pubdate="${2:$1}>${3:$1}</time>\nsnippet title\n\t<title>${1:`substitute(Filename(\'\', \'Page Title\'), \'^.\', \'\\u&\', \'\')`}</title>\nsnippet tr\n\t<tr>\n\t\t${1}\n\t</tr>\nsnippet tr+\n\t<tr>\n\t\t<td>${1}</td>\n\t\ttd+${2}\n\t</tr>\nsnippet track\n\t<track src="${1}" srclang="${2}" label="${3}" default="${4:default}>${5}</track>${6}\nsnippet ul\n\t<ul>\n\t\t${1}\n\t</ul>\nsnippet ul.\n\t<ul class="${1}">\n\t\t${2}\n\t</ul>\nsnippet ul#\n\t<ul id="${1}">\n\t\t${2}\n\t</ul>\nsnippet ul+\n\t<ul>\n\t\t<li>${1}</li>\n\t\tli+${2}\n\t</ul>\nsnippet var\n\t<var>${1}</var>\nsnippet video\n\t<video src="${1}" height="${2}" width="${3}" preload="${5:none}" autoplay="${6:autoplay}">${7}</video>${8}\nsnippet wbr\n\t<wbr />${1}\n'})),ace.define("ace/snippets/html",["require","exports","module","ace/snippets/html.snippets"],(function(e,t,n){"use strict";t.snippetText=e("./html.snippets"),t.scope="html"})),ace.require(["ace/snippets/html"],(function(t){e&&(e.exports=t)}))},4144(e,t,n){e=n.nmd(e),ace.define("ace/theme/monokai-css",["require","exports","module"],(function(e,t,n){n.exports=".ace-monokai .ace_gutter {\n background: #2F3129;\n color: #8F908A\n}\n\n.ace-monokai .ace_print-margin {\n width: 1px;\n background: #555651\n}\n\n.ace-monokai {\n background-color: #272822;\n color: #F8F8F2\n}\n\n.ace-monokai .ace_cursor {\n color: #F8F8F0\n}\n\n.ace-monokai .ace_marker-layer .ace_selection {\n background: #49483E\n}\n\n.ace-monokai.ace_multiselect .ace_selection.ace_start {\n box-shadow: 0 0 3px 0px #272822;\n}\n\n.ace-monokai .ace_marker-layer .ace_step {\n background: rgb(102, 82, 0)\n}\n\n.ace-monokai .ace_marker-layer .ace_bracket {\n margin: -1px 0 0 -1px;\n border: 1px solid #49483E\n}\n\n.ace-monokai .ace_marker-layer .ace_active-line {\n background: #202020\n}\n\n.ace-monokai .ace_gutter-active-line {\n background-color: #272727\n}\n\n.ace-monokai .ace_marker-layer .ace_selected-word {\n border: 1px solid #49483E\n}\n\n.ace-monokai .ace_invisible {\n color: #52524d\n}\n\n.ace-monokai .ace_entity.ace_name.ace_tag,\n.ace-monokai .ace_keyword,\n.ace-monokai .ace_meta.ace_tag,\n.ace-monokai .ace_storage {\n color: #F92672\n}\n\n.ace-monokai .ace_punctuation,\n.ace-monokai .ace_punctuation.ace_tag {\n color: #fff\n}\n\n.ace-monokai .ace_constant.ace_character,\n.ace-monokai .ace_constant.ace_language,\n.ace-monokai .ace_constant.ace_numeric,\n.ace-monokai .ace_constant.ace_other {\n color: #AE81FF\n}\n\n.ace-monokai .ace_invalid {\n color: #F8F8F0;\n background-color: #F92672\n}\n\n.ace-monokai .ace_invalid.ace_deprecated {\n color: #F8F8F0;\n background-color: #AE81FF\n}\n\n.ace-monokai .ace_support.ace_constant,\n.ace-monokai .ace_support.ace_function {\n color: #66D9EF\n}\n\n.ace-monokai .ace_fold {\n background-color: #A6E22E;\n border-color: #F8F8F2\n}\n\n.ace-monokai .ace_storage.ace_type,\n.ace-monokai .ace_support.ace_class,\n.ace-monokai .ace_support.ace_type {\n font-style: italic;\n color: #66D9EF\n}\n\n.ace-monokai .ace_entity.ace_name.ace_function,\n.ace-monokai .ace_entity.ace_other,\n.ace-monokai .ace_entity.ace_other.ace_attribute-name,\n.ace-monokai .ace_variable {\n color: #A6E22E\n}\n\n.ace-monokai .ace_variable.ace_parameter {\n font-style: italic;\n color: #FD971F\n}\n\n.ace-monokai .ace_string {\n color: #E6DB74\n}\n\n.ace-monokai .ace_comment {\n color: #75715E\n}\n\n.ace-monokai .ace_indent-guide {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y\n}\n\n.ace-monokai .ace_indent-guide-active {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;\n}\n"})),ace.define("ace/theme/monokai",["require","exports","module","ace/theme/monokai-css","ace/lib/dom"],(function(e,t,n){t.isDark=!0,t.cssClass="ace-monokai",t.cssText=e("./monokai-css"),e("../lib/dom").importCssString(t.cssText,t.cssClass,!1)})),ace.require(["ace/theme/monokai"],(function(t){e&&(e.exports=t)}))},2972(){!function(e){if(!(void 0!==e.window&&e.document||e.require&&e.define)){e.console||(e.console=function(){var e=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:e})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(e,t,n,r,i){postMessage({type:"error",data:{message:e,data:i&&i.data,file:t,line:n,col:r,stack:i&&i.stack}})},e.normalizeModule=function(t,n){if(-1!==n.indexOf("!")){var r=n.split("!");return e.normalizeModule(t,r[0])+"!"+e.normalizeModule(t,r[1])}if("."==n.charAt(0)){var i=t.split("/").slice(0,-1).join("/");for(n=(i?i+"/":"")+n;-1!==n.indexOf(".")&&o!=n;){var o=n;n=n.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return n},e.require=function(t,n){if(n||(n=t,t=null),!n.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");n=e.normalizeModule(t,n);var r=e.require.modules[n];if(r)return r.initialized||(r.initialized=!0,r.exports=r.factory().exports),r.exports;if(!e.require.tlns)return console.log("unable to load "+n);var i=function(e,t){for(var n=e,r="";n;){var i=t[n];if("string"==typeof i)return i+r;if(i)return i.location.replace(/\/*$/,"/")+(r||i.main||i.name);if(!1===i)return"";var o=n.lastIndexOf("/");if(-1===o)break;r=n.substr(o)+r,n=n.slice(0,o)}return e}(n,e.require.tlns);return".js"!=i.slice(-3)&&(i+=".js"),e.require.id=n,e.require.modules[n]={},importScripts(i),e.require(t,n)},e.require.modules={},e.require.tlns={},e.define=function(t,n,r){if(2==arguments.length?(r=n,"string"!=typeof t&&(n=t,t=e.require.id)):1==arguments.length&&(r=t,n=[],t=e.require.id),"function"==typeof r){n.length||(n=["require","exports","module"]);var i=function(n){return e.require(t,n)};e.require.modules[t]={exports:{},factory:function(){var e=this,t=r.apply(this,n.slice(0,r.length).map((function(t){switch(t){case"require":return i;case"exports":return e.exports;case"module":return e;default:return i(t)}})));return t&&(e.exports=t),e}}}else e.require.modules[t]={exports:r,initialized:!0}},e.define.amd={},e.require.tlns={},e.initBaseUrls=function(e){for(var t in e)this.require.tlns[t]=e[t]},e.initSender=function(){var t=e.require("ace/lib/event_emitter").EventEmitter,n=e.require("ace/lib/oop"),r=function(){};return function(){n.implement(this,t),this.callback=function(e,t){postMessage({type:"call",id:t,data:e})},this.emit=function(e,t){postMessage({type:"event",name:e,data:t})}}.call(r.prototype),new r};var t=e.main=null,n=e.sender=null;e.onmessage=function(r){var i=r.data;if(i.event&&n)n._signal(i.event,i.data);else if(i.command)if(t[i.command])t[i.command].apply(t,i.args);else{if(!e[i.command])throw new Error("Unknown command:"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),n=e.sender=e.initSender();var o=this.require(i.module)[i.classname];t=e.main=new o(n)}}}}(this),ace.define("ace/lib/oop",[],(function(e,t,n){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}})),ace.define("ace/lib/deep_copy",[],(function(e,t,n){t.deepCopy=function e(t){if("object"!=typeof t||!t)return t;var n;if(Array.isArray(t)){n=[];for(var r=0;r<t.length;r++)n[r]=e(t[r]);return n}if("[object Object]"!==Object.prototype.toString.call(t))return t;for(var r in n={},t)n[r]=e(t[r]);return n}})),ace.define("ace/lib/lang",[],(function(e,t,n){"use strict";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){for(var n="";t>0;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var r=/^\s\s*/,i=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(r,"")},t.stringTrimRight=function(e){return e.replace(i,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,r=e.length;n<r;n++)e[n]&&"object"==typeof e[n]?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=e("./deep_copy").deepCopy,t.arrayToMap=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return(""+e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,(function(e){n.push({offset:arguments[arguments.length-2],length:e.length})})),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},r=function(e){return r.cancel(),t=setTimeout(n,e||0),r};return r.schedule=r,r.call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},t.delayedCall=function(e,t){var n=null,r=function(){n=null,e()},i=function(e){null==n&&(n=setTimeout(r,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i},t.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch(e){return!1}return!0},t.skipEmptyMatch=function(e,t,n){return n&&e.codePointAt(t)>65535?2:1}})),ace.define("ace/apply_delta",[],(function(e,t,n){"use strict";t.applyDelta=function(e,t,n){var r=t.start.row,i=t.start.column,o=e[r]||"";switch(t.action){case"insert":if(1===t.lines.length)e[r]=o.substring(0,i)+t.lines[0]+o.substring(i);else{var s=[r,1].concat(t.lines);e.splice.apply(e,s),e[r]=o.substring(0,i)+e[r],e[r+t.lines.length-1]+=o.substring(i)}break;case"remove":var a=t.end.column,l=t.end.row;r===l?e[r]=o.substring(0,i)+o.substring(a):e.splice(r,l-r+1,o.substring(0,i)+e[l].substring(a))}}})),ace.define("ace/lib/event_emitter",[],(function(e,t,n){"use strict";var r={},i=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(n.length||r){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=o),n=n.slice();for(var s=0;s<n.length&&(n[s](t,this),!t.propagationStopped);s++);return r&&!t.defaultPrevented?r(t,this):void 0}},r._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(n){n=n.slice();for(var r=0;r<n.length;r++)n[r](t,this)}},r.once=function(e,t){var n=this;if(this.on(e,(function r(){n.off(e,r),t.apply(null,arguments)})),!t)return new Promise((function(e){t=e}))},r.setDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n||(n=this._defaultHandlers={_disabled_:{}}),n[e]){var r=n[e],i=n._disabled_[e];i||(n._disabled_[e]=i=[]),i.push(r);var o=i.indexOf(t);-1!=o&&i.splice(o,1)}n[e]=t},r.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n){var r=n._disabled_[e];if(n[e]==t)r&&this.setDefaultHandler(e,r.pop());else if(r){var i=r.indexOf(t);-1!=i&&r.splice(i,1)}}},r.on=r.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[e];return r||(r=this._eventRegistry[e]=[]),-1==r.indexOf(t)&&r[n?"unshift":"push"](t),t},r.off=r.removeListener=r.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(n){var r=n.indexOf(t);-1!==r&&n.splice(r,1)}},r.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[e]=void 0),this._defaultHandlers&&(this._defaultHandlers[e]=void 0)},t.EventEmitter=r})),ace.define("ace/range",[],(function(e,t,n){"use strict";var r=function(){function e(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}}return e.prototype.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},e.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},e.prototype.contains=function(e,t){return 0==this.compare(e,t)},e.prototype.compareRange=function(e){var t,n=e.end,r=e.start;return 1==(t=this.compare(n.row,n.column))?1==(t=this.compare(r.row,r.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(r.row,r.column))?-1:1==t?42:0},e.prototype.comparePoint=function(e){return this.compare(e.row,e.column)},e.prototype.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},e.prototype.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},e.prototype.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},e.prototype.isStart=function(e,t){return this.start.row==e&&this.start.column==t},e.prototype.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},e.prototype.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},e.prototype.inside=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)&&!this.isStart(e,t)},e.prototype.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},e.prototype.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},e.prototype.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:t<this.start.column?-1:t>this.end.column?1:0},e.prototype.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},e.prototype.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},e.prototype.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},e.prototype.clipRows=function(t,n){if(this.end.row>n)var r={row:n+1,column:0};else this.end.row<t&&(r={row:t,column:0});if(this.start.row>n)var i={row:n+1,column:0};else this.start.row<t&&(i={row:t,column:0});return e.fromPoints(i||this.start,r||this.end)},e.prototype.extend=function(t,n){var r=this.compare(t,n);if(0==r)return this;if(-1==r)var i={row:t,column:n};else var o={row:t,column:n};return e.fromPoints(i||this.start,o||this.end)},e.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},e.prototype.isMultiLine=function(){return this.start.row!==this.end.row},e.prototype.clone=function(){return e.fromPoints(this.start,this.end)},e.prototype.collapseRows=function(){return 0==this.end.column?new e(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new e(this.start.row,0,this.end.row,0)},e.prototype.toScreenRange=function(t){var n=t.documentToScreenPosition(this.start),r=t.documentToScreenPosition(this.end);return new e(n.row,n.column,r.row,r.column)},e.prototype.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t},e}();r.fromPoints=function(e,t){return new r(e.row,e.column,t.row,t.column)},r.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=r})),ace.define("ace/anchor",[],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,o=function(){function e(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),"number"!=typeof t?this.setPosition(t.row,t.column):this.setPosition(t,n)}return e.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},e.prototype.getDocument=function(){return this.document},e.prototype.onChange=function(e){if(!(e.start.row==e.end.row&&e.start.row!=this.row||e.start.row>this.row)){var t=function(e,t,n){var r="insert"==e.action,i=(r?1:-1)*(e.end.row-e.start.row),o=(r?1:-1)*(e.end.column-e.start.column),a=e.start,l=r?a:e.end;return s(t,a,n)?{row:t.row,column:t.column}:s(l,t,!n)?{row:t.row+i,column:t.column+(t.row==l.row?o:0)}:{row:a.row,column:a.column}}(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(t.row,t.column,!0)}},e.prototype.setPosition=function(e,t,n){var r;if(r=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=r.row||this.column!=r.column){var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:i,value:r})}},e.prototype.detach=function(){this.document.off("change",this.$onChange)},e.prototype.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},e.prototype.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n},e}();function s(e,t,n){var r=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&r}o.prototype.$insertRight=!1,r.implement(o.prototype,i),t.Anchor=o})),ace.define("ace/document",[],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,s=e("./range").Range,a=e("./anchor").Anchor,l=function(){function e(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)}return e.prototype.setValue=function(e){var t=this.getLength()-1;this.remove(new s(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e||"")},e.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},e.prototype.createAnchor=function(e,t){return new a(this,e,t)},e.prototype.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},e.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},e.prototype.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},e.prototype.getNewLineMode=function(){return this.$newLineMode},e.prototype.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},e.prototype.getLine=function(e){return this.$lines[e]||""},e.prototype.getLines=function(e,t){return this.$lines.slice(e,t+1)},e.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},e.prototype.getLength=function(){return this.$lines.length},e.prototype.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},e.prototype.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},e.prototype.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},e.prototype.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},e.prototype.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},e.prototype.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},e.prototype.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[t]},!0),this.clonePos(r)},e.prototype.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var r=this.getLine(e);return null==t&&(t=r.length),{row:e,column:t=Math.min(Math.max(t,0),r.length)}},e.prototype.clonePos=function(e){return{row:e.row,column:e.column}},e.prototype.pos=function(e,t){return{row:e,column:t}},e.prototype.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},e.prototype.insertFullLines=function(e,t){var n=0;(e=Math.min(Math.max(e,0),this.getLength()))<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},e.prototype.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(1==t.length?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:r,action:"insert",lines:t}),this.clonePos(r)},e.prototype.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:"remove",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},e.prototype.removeInLine=function(e,t,n){var r=this.clippedPos(e,t),i=this.clippedPos(e,n);return this.applyDelta({start:r,end:i,action:"remove",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},e.prototype.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1);var n=(t=Math.min(Math.max(0,t),this.getLength()-1))==this.getLength()-1&&e>0,r=t<this.getLength()-1,i=n?e-1:e,o=n?this.getLine(i).length:0,a=r?t+1:t,l=r?0:this.getLine(a).length,c=new s(i,o,a,l),d=this.$lines.slice(e,t+1);return this.applyDelta({start:c.start,end:c.end,action:"remove",lines:this.getLinesForRange(c)}),d},e.prototype.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},e.prototype.replace=function(e,t){return e instanceof s||(e=s.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},e.prototype.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},e.prototype.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},e.prototype.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!s.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal("change",e)))},e.prototype.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row<t&&e.end.row<t||"insert"==e.action&&e.start.row<=t)&&this.applyDelta(e)},e.prototype.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,r=n.length-t+1,i=e.start.row,o=e.start.column,s=0,a=0;s<r;s=a){a+=t-1;var l=n.slice(s,a);l.push(""),this.applyDelta({start:this.pos(i+s,o),end:this.pos(i+a,o=0),action:e.action,lines:l},!0)}e.lines=n.slice(s),e.start.row=i+s,e.start.column=o,this.applyDelta(e,!0)},e.prototype.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},e.prototype.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=t||0,o=n.length;i<o;i++)if((e-=n[i].length+r)<0)return{row:i,column:e+n[i].length+r};return{row:o-1,column:e+n[o-1].length+r}},e.prototype.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,o=Math.min(e.row,n.length),s=t||0;s<o;++s)i+=n[s].length+r;return i+e.column},e.prototype.$split=function(e){return e.split(/\r\n|\r|\n/)},e}();l.prototype.$autoNewLine="",l.prototype.$newLineMode="auto",r.implement(l.prototype,o),t.Document=l})),ace.define("ace/worker/mirror",[],(function(e,t,n){"use strict";var r=e("../document").Document,i=e("../lib/lang"),o=t.Mirror=function(e){this.sender=e;var t=this.doc=new r(""),n=this.deferredUpdate=i.delayedCall(this.onUpdate.bind(this)),o=this;e.on("change",(function(e){var r=e.data;if(r[0].start)t.applyDeltas(r);else for(var i=0;i<r.length;i+=2){var s,a;if(("insert"==(s=Array.isArray(r[i+1])?{action:"insert",start:r[i],lines:r[i+1]}:{action:"remove",start:r[i],end:r[i+1]}).action?s.start:s.end).row>=t.$lines.length)throw(a=new Error("Invalid delta")).data={path:o.$path,linesLength:t.$lines.length,start:s.start,end:s.end},a;t.applyDelta(s,!0)}if(o.$timeout)return n.schedule(o.$timeout);o.onUpdate()}))};(function(){this.$timeout=500,this.setTimeout=function(e){this.$timeout=e},this.setValue=function(e){this.doc.setValue(e),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(e){this.sender.callback(this.doc.getValue(),e)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)})),ace.define("ace/mode/css/csslint",[],(function(e,t,n){var r=function(){var e=e||{},t=function(){var e;return e=function t(n,r,i){function o(a,l){if(!r[a]){if(!n[a]){var c="function"==typeof e&&e;if(!l&&c)return c(a,!0);if(s)return s(a,!0);var d=new Error("Cannot find module '"+a+"'");throw d.code="MODULE_NOT_FOUND",d}var u=r[a]={exports:{}};n[a][0].call(u.exports,(function(e){return o(n[a][1][e]||e)}),u,u.exports,t,n,r,i)}return r[a].exports}for(var s="function"==typeof e&&e,a=0;a<i.length;a++)o(i[a]);return o}({1:[function(e,t,n){"use strict";t.exports={__proto__:null,aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",currentColor:"The value of the 'color' property.",activeborder:"Active window border.",activecaption:"Active window caption.",appworkspace:"Background color of multiple document interface.",background:"Desktop background.",buttonface:"The face background color for 3-D elements that appear 3-D due to one layer of surrounding border.",buttonhighlight:"The color of the border facing the light source for 3-D elements that appear 3-D due to one layer of surrounding border.",buttonshadow:"The color of the border away from the light source for 3-D elements that appear 3-D due to one layer of surrounding border.",buttontext:"Text on push buttons.",captiontext:"Text in caption, size box, and scrollbar arrow box.",graytext:"Grayed (disabled) text. This color is set to #000 if the current display driver does not support a solid gray color.",greytext:"Greyed (disabled) text. This color is set to #000 if the current display driver does not support a solid grey color.",highlight:"Item(s) selected in a control.",highlighttext:"Text of item(s) selected in a control.",inactiveborder:"Inactive window border.",inactivecaption:"Inactive window caption.",inactivecaptiontext:"Color of text in an inactive caption.",infobackground:"Background color for tooltip controls.",infotext:"Text color for tooltip controls.",menu:"Menu background.",menutext:"Text in menus.",scrollbar:"Scroll bar gray area.",threeddarkshadow:"The color of the darker (generally outer) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedface:"The face background color for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedhighlight:"The color of the lighter (generally outer) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedlightshadow:"The color of the darker (generally inner) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedshadow:"The color of the lighter (generally inner) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",window:"Window background.",windowframe:"Window frame.",windowtext:"Text in windows."}},{}],2:[function(e,t,n){"use strict";t.exports=o;var r=e("../util/SyntaxUnit"),i=e("./Parser");function o(e,t,n){r.call(this,e,t,n,i.COMBINATOR_TYPE),this.type="unknown",/^\s+$/.test(e)?this.type="descendant":">"===e?this.type="child":"+"===e?this.type="adjacent-sibling":"~"===e&&(this.type="sibling")}o.prototype=new r,o.prototype.constructor=o},{"../util/SyntaxUnit":26,"./Parser":6}],3:[function(e,t,n){"use strict";t.exports=o;var r=e("../util/StringReader"),i=e("../util/SyntaxError");function o(e,t){this.match=function(t){var n;return t.mark(),(n=e(t))?t.drop():t.restore(),n},this.toString="function"==typeof t?t:function(){return t}}o.prec={MOD:5,SEQ:4,ANDAND:3,OROR:2,ALT:1},o.parse=function(e){var t,n,s,a,l,c,d,u,h;if(t=new r(e),n=function(e){var n=t.readMatch(e);if(null===n)throw new i("Expected "+e,t.getLine(),t.getCol());return n},s=function(){for(var e=[a()];null!==t.readMatch(" | ");)e.push(a());return 1===e.length?e[0]:o.alt.apply(o,e)},a=function(){for(var e=[l()];null!==t.readMatch(" || ");)e.push(l());return 1===e.length?e[0]:o.oror.apply(o,e)},l=function(){for(var e=[c()];null!==t.readMatch(" && ");)e.push(c());return 1===e.length?e[0]:o.andand.apply(o,e)},c=function(){for(var e=[d()];null!==t.readMatch(/^ (?![&|\]])/);)e.push(d());return 1===e.length?e[0]:o.seq.apply(o,e)},d=function(){var e=u();if(null!==t.readMatch("?"))return e.question();if(null!==t.readMatch("*"))return e.star();if(null!==t.readMatch("+"))return e.plus();if(null!==t.readMatch("#"))return e.hash();if(null!==t.readMatch(/^\{\s*/)){var r=n(/^\d+/);n(/^\s*,\s*/);var i=n(/^\d+/);return n(/^\s*\}/),e.braces(Number(r),Number(i))}return e},u=function(){if(null!==t.readMatch("[ ")){var e=s();return n(" ]"),e}return o.fromType(n(/^[^ ?*+#{]+/))},h=s(),!t.eof())throw new i("Expected end of string",t.getLine(),t.getCol());return h},o.cast=function(e){return e instanceof o?e:o.parse(e)},o.fromType=function(t){var n=e("./ValidationTypes");return new o((function(e){return e.hasNext()&&n.isType(e,t)}),t)},o.seq=function(){var e=Array.prototype.slice.call(arguments).map(o.cast);return 1===e.length?e[0]:new o((function(t){var n,r=!0;for(n=0;r&&n<e.length;n++)r=e[n].match(t);return r}),(function(t){var n=o.prec.SEQ,r=e.map((function(e){return e.toString(n)})).join(" ");return t>n&&(r="[ "+r+" ]"),r}))},o.alt=function(){var e=Array.prototype.slice.call(arguments).map(o.cast);return 1===e.length?e[0]:new o((function(t){var n,r=!1;for(n=0;!r&&n<e.length;n++)r=e[n].match(t);return r}),(function(t){var n=o.prec.ALT,r=e.map((function(e){return e.toString(n)})).join(" | ");return t>n&&(r="[ "+r+" ]"),r}))},o.many=function(t){var n=Array.prototype.slice.call(arguments,1).reduce((function(t,n){if(n.expand){var r=e("./ValidationTypes");t.push.apply(t,r.complex[n.expand].options)}else t.push(o.cast(n));return t}),[]);!0===t&&(t=n.map((function(){return!0})));var r=new o((function(e){var r=[],i=0,o=0,s=function(a){for(var l=0;l<n.length;l++)if(!r[l])if(e.mark(),n[l].match(e)){if(r[l]=!0,s(a+(!1===t||t[l]?1:0)))return e.drop(),!0;e.restore(),r[l]=!1}else e.drop();return function(e){return 0===o?(i=Math.max(e,i),e===n.length):e===i}(a)};if(s(0)||(o++,s(0)),!1===t)return i>0;for(var a=0;a<n.length;a++)if(t[a]&&!r[a])return!1;return!0}),(function(e){var r=!1===t?o.prec.OROR:o.prec.ANDAND,i=n.map((function(e,n){return!1===t||t[n]?e.toString(r):e.toString(o.prec.MOD)+"?"})).join(!1===t?" || ":" && ");return e>r&&(i="[ "+i+" ]"),i}));return r.options=n,r},o.andand=function(){var e=Array.prototype.slice.call(arguments);return e.unshift(!0),o.many.apply(o,e)},o.oror=function(){var e=Array.prototype.slice.call(arguments);return e.unshift(!1),o.many.apply(o,e)},o.prototype={constructor:o,match:function(){throw new Error("unimplemented")},toString:function(){throw new Error("unimplemented")},func:function(){return this.match.bind(this)},then:function(e){return o.seq(this,e)},or:function(e){return o.alt(this,e)},andand:function(e){return o.many(!0,this,e)},oror:function(e){return o.many(!1,this,e)},star:function(){return this.braces(0,1/0,"*")},plus:function(){return this.braces(1,1/0,"+")},question:function(){return this.braces(0,1,"?")},hash:function(){return this.braces(1,1/0,"#",o.cast(","))},braces:function(e,t,n,r){var i=this,s=r?r.then(this):this;return n||(n="{"+e+","+t+"}"),new o((function(n){var o;for(o=0;o<t&&(o>0&&r?s.match(n):i.match(n));o++);return o>=e}),(function(){return i.toString(o.prec.MOD)+n}))}}},{"../util/StringReader":24,"../util/SyntaxError":25,"./ValidationTypes":21}],4:[function(e,t,n){"use strict";t.exports=o;var r=e("../util/SyntaxUnit"),i=e("./Parser");function o(e,t){r.call(this,"("+e+(null!==t?":"+t:"")+")",e.startLine,e.startCol,i.MEDIA_FEATURE_TYPE),this.name=e,this.value=t}o.prototype=new r,o.prototype.constructor=o},{"../util/SyntaxUnit":26,"./Parser":6}],5:[function(e,t,n){"use strict";t.exports=o;var r=e("../util/SyntaxUnit"),i=e("./Parser");function o(e,t,n,o,s){r.call(this,(e?e+" ":"")+(t||"")+(t&&n.length>0?" and ":"")+n.join(" and "),o,s,i.MEDIA_QUERY_TYPE),this.modifier=e,this.mediaType=t,this.features=n}o.prototype=new r,o.prototype.constructor=o},{"../util/SyntaxUnit":26,"./Parser":6}],6:[function(e,t,n){"use strict";t.exports=v;var r=e("../util/EventTarget"),i=e("../util/SyntaxError"),o=e("../util/SyntaxUnit"),s=e("./Combinator"),a=e("./MediaFeature"),l=e("./MediaQuery"),c=e("./PropertyName"),d=e("./PropertyValue"),u=e("./PropertyValuePart"),h=e("./Selector"),p=e("./SelectorPart"),f=e("./SelectorSubPart"),g=e("./TokenStream"),m=e("./Tokens"),b=e("./Validation");function v(e){r.call(this),this.options=e||{},this._tokenStream=null}v.DEFAULT_TYPE=0,v.COMBINATOR_TYPE=1,v.MEDIA_FEATURE_TYPE=2,v.MEDIA_QUERY_TYPE=3,v.PROPERTY_NAME_TYPE=4,v.PROPERTY_VALUE_TYPE=5,v.PROPERTY_VALUE_PART_TYPE=6,v.SELECTOR_TYPE=7,v.SELECTOR_PART_TYPE=8,v.SELECTOR_SUB_PART_TYPE=9,v.prototype=function(){var e,t=new r,n={__proto__:null,constructor:v,DEFAULT_TYPE:0,COMBINATOR_TYPE:1,MEDIA_FEATURE_TYPE:2,MEDIA_QUERY_TYPE:3,PROPERTY_NAME_TYPE:4,PROPERTY_VALUE_TYPE:5,PROPERTY_VALUE_PART_TYPE:6,SELECTOR_TYPE:7,SELECTOR_PART_TYPE:8,SELECTOR_SUB_PART_TYPE:9,_stylesheet:function(){var e,t,n,r=this._tokenStream;for(this.fire("startstylesheet"),this._charset(),this._skipCruft();r.peek()===m.IMPORT_SYM;)this._import(),this._skipCruft();for(;r.peek()===m.NAMESPACE_SYM;)this._namespace(),this._skipCruft();for(n=r.peek();n>m.EOF;){try{switch(n){case m.MEDIA_SYM:this._media(),this._skipCruft();break;case m.PAGE_SYM:this._page(),this._skipCruft();break;case m.FONT_FACE_SYM:this._font_face(),this._skipCruft();break;case m.KEYFRAMES_SYM:this._keyframes(),this._skipCruft();break;case m.VIEWPORT_SYM:this._viewport(),this._skipCruft();break;case m.DOCUMENT_SYM:this._document(),this._skipCruft();break;case m.SUPPORTS_SYM:this._supports(),this._skipCruft();break;case m.UNKNOWN_SYM:if(r.get(),this.options.strict)throw new i("Unknown @ rule.",r.LT(0).startLine,r.LT(0).startCol);for(this.fire({type:"error",error:null,message:"Unknown @ rule: "+r.LT(0).value+".",line:r.LT(0).startLine,col:r.LT(0).startCol}),e=0;r.advance([m.LBRACE,m.RBRACE])===m.LBRACE;)e++;for(;e;)r.advance([m.RBRACE]),e--;break;case m.S:this._readWhitespace();break;default:if(!this._ruleset())switch(n){case m.CHARSET_SYM:throw t=r.LT(1),this._charset(!1),new i("@charset not allowed here.",t.startLine,t.startCol);case m.IMPORT_SYM:throw t=r.LT(1),this._import(!1),new i("@import not allowed here.",t.startLine,t.startCol);case m.NAMESPACE_SYM:throw t=r.LT(1),this._namespace(!1),new i("@namespace not allowed here.",t.startLine,t.startCol);default:r.get(),this._unexpectedToken(r.token())}}}catch(e){if(!(e instanceof i)||this.options.strict)throw e;this.fire({type:"error",error:e,message:e.message,line:e.line,col:e.col})}n=r.peek()}n!==m.EOF&&this._unexpectedToken(r.token()),this.fire("endstylesheet")},_charset:function(e){var t,n,r,i=this._tokenStream;i.match(m.CHARSET_SYM)&&(n=i.token().startLine,r=i.token().startCol,this._readWhitespace(),i.mustMatch(m.STRING),t=i.token().value,this._readWhitespace(),i.mustMatch(m.SEMICOLON),!1!==e&&this.fire({type:"charset",charset:t,line:n,col:r}))},_import:function(e){var t,n,r,i=this._tokenStream;i.mustMatch(m.IMPORT_SYM),n=i.token(),this._readWhitespace(),i.mustMatch([m.STRING,m.URI]),t=i.token().value.replace(/^(?:url\()?["']?([^"']+?)["']?\)?$/,"$1"),this._readWhitespace(),r=this._media_query_list(),i.mustMatch(m.SEMICOLON),this._readWhitespace(),!1!==e&&this.fire({type:"import",uri:t,media:r,line:n.startLine,col:n.startCol})},_namespace:function(e){var t,n,r,i,o=this._tokenStream;o.mustMatch(m.NAMESPACE_SYM),t=o.token().startLine,n=o.token().startCol,this._readWhitespace(),o.match(m.IDENT)&&(r=o.token().value,this._readWhitespace()),o.mustMatch([m.STRING,m.URI]),i=o.token().value.replace(/(?:url\()?["']([^"']+)["']\)?/,"$1"),this._readWhitespace(),o.mustMatch(m.SEMICOLON),this._readWhitespace(),!1!==e&&this.fire({type:"namespace",prefix:r,uri:i,line:t,col:n})},_supports:function(e){var t,n,r=this._tokenStream;if(r.match(m.SUPPORTS_SYM)){for(t=r.token().startLine,n=r.token().startCol,this._readWhitespace(),this._supports_condition(),this._readWhitespace(),r.mustMatch(m.LBRACE),this._readWhitespace(),!1!==e&&this.fire({type:"startsupports",line:t,col:n});this._ruleset(););r.mustMatch(m.RBRACE),this._readWhitespace(),this.fire({type:"endsupports",line:t,col:n})}},_supports_condition:function(){var e,t=this._tokenStream;if(t.match(m.IDENT))"not"===(e=t.token().value.toLowerCase())?(t.mustMatch(m.S),this._supports_condition_in_parens()):t.unget();else for(this._supports_condition_in_parens(),this._readWhitespace();t.peek()===m.IDENT;)"and"!==(e=t.LT(1).value.toLowerCase())&&"or"!==e||(t.mustMatch(m.IDENT),this._readWhitespace(),this._supports_condition_in_parens(),this._readWhitespace())},_supports_condition_in_parens:function(){var e=this._tokenStream;e.match(m.LPAREN)?(this._readWhitespace(),e.match(m.IDENT)?"not"===e.token().value.toLowerCase()?(this._readWhitespace(),this._supports_condition(),this._readWhitespace(),e.mustMatch(m.RPAREN)):(e.unget(),this._supports_declaration_condition(!1)):(this._supports_condition(),this._readWhitespace(),e.mustMatch(m.RPAREN))):this._supports_declaration_condition()},_supports_declaration_condition:function(e){var t=this._tokenStream;!1!==e&&t.mustMatch(m.LPAREN),this._readWhitespace(),this._declaration(),t.mustMatch(m.RPAREN)},_media:function(){var e,t,n,r=this._tokenStream;for(r.mustMatch(m.MEDIA_SYM),e=r.token().startLine,t=r.token().startCol,this._readWhitespace(),n=this._media_query_list(),r.mustMatch(m.LBRACE),this._readWhitespace(),this.fire({type:"startmedia",media:n,line:e,col:t});;)if(r.peek()===m.PAGE_SYM)this._page();else if(r.peek()===m.FONT_FACE_SYM)this._font_face();else if(r.peek()===m.VIEWPORT_SYM)this._viewport();else if(r.peek()===m.DOCUMENT_SYM)this._document();else if(r.peek()===m.SUPPORTS_SYM)this._supports();else if(r.peek()===m.MEDIA_SYM)this._media();else if(!this._ruleset())break;r.mustMatch(m.RBRACE),this._readWhitespace(),this.fire({type:"endmedia",media:n,line:e,col:t})},_media_query_list:function(){var e=this._tokenStream,t=[];for(this._readWhitespace(),e.peek()!==m.IDENT&&e.peek()!==m.LPAREN||t.push(this._media_query());e.match(m.COMMA);)this._readWhitespace(),t.push(this._media_query());return t},_media_query:function(){var e=this._tokenStream,t=null,n=null,r=null,i=[];if(e.match(m.IDENT)&&("only"!==(n=e.token().value.toLowerCase())&&"not"!==n?(e.unget(),n=null):r=e.token()),this._readWhitespace(),e.peek()===m.IDENT?(t=this._media_type(),null===r&&(r=e.token())):e.peek()===m.LPAREN&&(null===r&&(r=e.LT(1)),i.push(this._media_expression())),null===t&&0===i.length)return null;for(this._readWhitespace();e.match(m.IDENT);)"and"!==e.token().value.toLowerCase()&&this._unexpectedToken(e.token()),this._readWhitespace(),i.push(this._media_expression());return new l(n,t,i,r.startLine,r.startCol)},_media_type:function(){return this._media_feature()},_media_expression:function(){var e,t,n=this._tokenStream,r=null;return n.mustMatch(m.LPAREN),this._readWhitespace(),e=this._media_feature(),this._readWhitespace(),n.match(m.COLON)&&(this._readWhitespace(),t=n.LT(1),r=this._expression()),n.mustMatch(m.RPAREN),this._readWhitespace(),new a(e,r?new o(r,t.startLine,t.startCol):null)},_media_feature:function(){var e=this._tokenStream;return this._readWhitespace(),e.mustMatch(m.IDENT),o.fromToken(e.token())},_page:function(){var e,t,n=this._tokenStream,r=null,i=null;n.mustMatch(m.PAGE_SYM),e=n.token().startLine,t=n.token().startCol,this._readWhitespace(),n.match(m.IDENT)&&"auto"===(r=n.token().value).toLowerCase()&&this._unexpectedToken(n.token()),n.peek()===m.COLON&&(i=this._pseudo_page()),this._readWhitespace(),this.fire({type:"startpage",id:r,pseudo:i,line:e,col:t}),this._readDeclarations(!0,!0),this.fire({type:"endpage",id:r,pseudo:i,line:e,col:t})},_margin:function(){var e,t,n=this._tokenStream,r=this._margin_sym();return!!r&&(e=n.token().startLine,t=n.token().startCol,this.fire({type:"startpagemargin",margin:r,line:e,col:t}),this._readDeclarations(!0),this.fire({type:"endpagemargin",margin:r,line:e,col:t}),!0)},_margin_sym:function(){var e=this._tokenStream;return e.match([m.TOPLEFTCORNER_SYM,m.TOPLEFT_SYM,m.TOPCENTER_SYM,m.TOPRIGHT_SYM,m.TOPRIGHTCORNER_SYM,m.BOTTOMLEFTCORNER_SYM,m.BOTTOMLEFT_SYM,m.BOTTOMCENTER_SYM,m.BOTTOMRIGHT_SYM,m.BOTTOMRIGHTCORNER_SYM,m.LEFTTOP_SYM,m.LEFTMIDDLE_SYM,m.LEFTBOTTOM_SYM,m.RIGHTTOP_SYM,m.RIGHTMIDDLE_SYM,m.RIGHTBOTTOM_SYM])?o.fromToken(e.token()):null},_pseudo_page:function(){var e=this._tokenStream;return e.mustMatch(m.COLON),e.mustMatch(m.IDENT),e.token().value},_font_face:function(){var e,t,n=this._tokenStream;n.mustMatch(m.FONT_FACE_SYM),e=n.token().startLine,t=n.token().startCol,this._readWhitespace(),this.fire({type:"startfontface",line:e,col:t}),this._readDeclarations(!0),this.fire({type:"endfontface",line:e,col:t})},_viewport:function(){var e,t,n=this._tokenStream;n.mustMatch(m.VIEWPORT_SYM),e=n.token().startLine,t=n.token().startCol,this._readWhitespace(),this.fire({type:"startviewport",line:e,col:t}),this._readDeclarations(!0),this.fire({type:"endviewport",line:e,col:t})},_document:function(){var e,t=this._tokenStream,n=[],r="";for(t.mustMatch(m.DOCUMENT_SYM),e=t.token(),/^@-([^-]+)-/.test(e.value)&&(r=RegExp.$1),this._readWhitespace(),n.push(this._document_function());t.match(m.COMMA);)this._readWhitespace(),n.push(this._document_function());t.mustMatch(m.LBRACE),this._readWhitespace(),this.fire({type:"startdocument",functions:n,prefix:r,line:e.startLine,col:e.startCol});for(var i=!0;i;)switch(t.peek()){case m.PAGE_SYM:this._page();break;case m.FONT_FACE_SYM:this._font_face();break;case m.VIEWPORT_SYM:this._viewport();break;case m.MEDIA_SYM:this._media();break;case m.KEYFRAMES_SYM:this._keyframes();break;case m.DOCUMENT_SYM:this._document();break;default:i=Boolean(this._ruleset())}t.mustMatch(m.RBRACE),e=t.token(),this._readWhitespace(),this.fire({type:"enddocument",functions:n,prefix:r,line:e.startLine,col:e.startCol})},_document_function:function(){var e,t=this._tokenStream;return t.match(m.URI)?(e=t.token().value,this._readWhitespace()):e=this._function(),e},_operator:function(e){var t=this._tokenStream,n=null;return(t.match([m.SLASH,m.COMMA])||e&&t.match([m.PLUS,m.STAR,m.MINUS]))&&(n=t.token(),this._readWhitespace()),n?u.fromToken(n):null},_combinator:function(){var e,t=this._tokenStream,n=null;return t.match([m.PLUS,m.GREATER,m.TILDE])&&(e=t.token(),n=new s(e.value,e.startLine,e.startCol),this._readWhitespace()),n},_unary_operator:function(){var e=this._tokenStream;return e.match([m.MINUS,m.PLUS])?e.token().value:null},_property:function(){var e,t,n,r=this._tokenStream,i=null,o=null,s="";if(r.peek()===m.STAR&&this.options.starHack&&(r.get(),o=(e=r.token()).value,t=e.startLine,n=e.startCol),r.peek()===m.MINUS&&(r.get(),s=(e=r.token()).value,t=e.startLine,n=e.startCol),r.match(m.IDENT))"_"===(s+=(e=r.token()).value).charAt(0)&&this.options.underscoreHack&&(o="_",s=s.substring(1)),i=new c(s,o,t||e.startLine,n||e.startCol),this._readWhitespace();else{var a=r.peek();a!==m.EOF&&a!==m.RBRACE&&this._unexpectedToken(r.LT(1))}return i},_ruleset:function(){var e,t=this._tokenStream;try{e=this._selectors_group()}catch(e){if(!(e instanceof i)||this.options.strict)throw e;if(this.fire({type:"error",error:e,message:e.message,line:e.line,col:e.col}),t.advance([m.RBRACE])!==m.RBRACE)throw e;return!0}return e&&(this.fire({type:"startrule",selectors:e,line:e[0].line,col:e[0].col}),this._readDeclarations(!0),this.fire({type:"endrule",selectors:e,line:e[0].line,col:e[0].col})),e},_selectors_group:function(){var e,t=this._tokenStream,n=[];if(null!==(e=this._selector()))for(n.push(e);t.match(m.COMMA);)this._readWhitespace(),null!==(e=this._selector())?n.push(e):this._unexpectedToken(t.LT(1));return n.length?n:null},_selector:function(){var e=this._tokenStream,t=[],n=null,r=null,i=null;if(null===(n=this._simple_selector_sequence()))return null;for(t.push(n);;)if(null!==(r=this._combinator()))t.push(r),null===(n=this._simple_selector_sequence())?this._unexpectedToken(e.LT(1)):t.push(n);else{if(!this._readWhitespace())break;i=new s(e.token().value,e.token().startLine,e.token().startCol),r=this._combinator(),null===(n=this._simple_selector_sequence())?null!==r&&this._unexpectedToken(e.LT(1)):(null!==r?t.push(r):t.push(i),t.push(n))}return new h(t,t[0].line,t[0].col)},_simple_selector_sequence:function(){var e,t,n=this._tokenStream,r=null,i=[],o="",s=[function(){return n.match(m.HASH)?new f(n.token().value,"id",n.token().startLine,n.token().startCol):null},this._class,this._attrib,this._pseudo,this._negation],a=0,l=s.length,c=null;for(e=n.LT(1).startLine,t=n.LT(1).startCol,(r=this._type_selector())||(r=this._universal()),null!==r&&(o+=r);n.peek()!==m.S;){for(;a<l&&null===c;)c=s[a++].call(this);if(null===c){if(""===o)return null;break}a=0,i.push(c),o+=c.toString(),c=null}return""!==o?new p(r,i,o,e,t):null},_type_selector:function(){var e=this._tokenStream,t=this._namespace_prefix(),n=this._element_name();return n?(t&&(n.text=t+n.text,n.col-=t.length),n):(t&&(e.unget(),t.length>1&&e.unget()),null)},_class:function(){var e,t=this._tokenStream;return t.match(m.DOT)?(t.mustMatch(m.IDENT),e=t.token(),new f("."+e.value,"class",e.startLine,e.startCol-1)):null},_element_name:function(){var e,t=this._tokenStream;return t.match(m.IDENT)?(e=t.token(),new f(e.value,"elementName",e.startLine,e.startCol)):null},_namespace_prefix:function(){var e=this._tokenStream,t="";return e.LA(1)!==m.PIPE&&e.LA(2)!==m.PIPE||(e.match([m.IDENT,m.STAR])&&(t+=e.token().value),e.mustMatch(m.PIPE),t+="|"),t.length?t:null},_universal:function(){var e,t=this._tokenStream,n="";return(e=this._namespace_prefix())&&(n+=e),t.match(m.STAR)&&(n+="*"),n.length?n:null},_attrib:function(){var e,t,n=this._tokenStream,r=null;return n.match(m.LBRACKET)?(r=(t=n.token()).value,r+=this._readWhitespace(),(e=this._namespace_prefix())&&(r+=e),n.mustMatch(m.IDENT),r+=n.token().value,r+=this._readWhitespace(),n.match([m.PREFIXMATCH,m.SUFFIXMATCH,m.SUBSTRINGMATCH,m.EQUALS,m.INCLUDES,m.DASHMATCH])&&(r+=n.token().value,r+=this._readWhitespace(),n.mustMatch([m.IDENT,m.STRING]),r+=n.token().value,r+=this._readWhitespace()),n.mustMatch(m.RBRACKET),new f(r+"]","attribute",t.startLine,t.startCol)):null},_pseudo:function(){var e,t,n=this._tokenStream,r=null,o=":";if(n.match(m.COLON)){if(n.match(m.COLON)&&(o+=":"),n.match(m.IDENT)?(r=n.token().value,e=n.token().startLine,t=n.token().startCol-o.length):n.peek()===m.FUNCTION&&(e=n.LT(1).startLine,t=n.LT(1).startCol-o.length,r=this._functional_pseudo()),!r){var s=n.LT(1).startLine,a=n.LT(0).startCol;throw new i("Expected a `FUNCTION` or `IDENT` after colon at line "+s+", col "+a+".",s,a)}r=new f(o+r,"pseudo",e,t)}return r},_functional_pseudo:function(){var e=this._tokenStream,t=null;return e.match(m.FUNCTION)&&(t=e.token().value,t+=this._readWhitespace(),t+=this._expression(),e.mustMatch(m.RPAREN),t+=")"),t},_expression:function(){for(var e=this._tokenStream,t="";e.match([m.PLUS,m.MINUS,m.DIMENSION,m.NUMBER,m.STRING,m.IDENT,m.LENGTH,m.FREQ,m.ANGLE,m.TIME,m.RESOLUTION,m.SLASH]);)t+=e.token().value,t+=this._readWhitespace();return t.length?t:null},_negation:function(){var e,t,n,r=this._tokenStream,i="",o=null;return r.match(m.NOT)&&(i=r.token().value,e=r.token().startLine,t=r.token().startCol,i+=this._readWhitespace(),i+=n=this._negation_arg(),i+=this._readWhitespace(),r.match(m.RPAREN),i+=r.token().value,(o=new f(i,"not",e,t)).args.push(n)),o},_negation_arg:function(){var e,t,n=this._tokenStream,r=[this._type_selector,this._universal,function(){return n.match(m.HASH)?new f(n.token().value,"id",n.token().startLine,n.token().startCol):null},this._class,this._attrib,this._pseudo],i=null,o=0,s=r.length;for(e=n.LT(1).startLine,t=n.LT(1).startCol;o<s&&null===i;)i=r[o].call(this),o++;return null===i&&this._unexpectedToken(n.LT(1)),"elementName"===i.type?new p(i,[],i.toString(),e,t):new p(null,[i],i.toString(),e,t)},_declaration:function(){var e=this._tokenStream,t=null,n=null,r=null,i=null,o="";if(null!==(t=this._property())){e.mustMatch(m.COLON),this._readWhitespace(),(n=this._expr())&&0!==n.length||this._unexpectedToken(e.LT(1)),r=this._prio(),o=t.toString(),(this.options.starHack&&"*"===t.hack||this.options.underscoreHack&&"_"===t.hack)&&(o=t.text);try{this._validateProperty(o,n)}catch(e){i=e}return this.fire({type:"property",property:t,value:n,important:r,line:t.line,col:t.col,invalid:i}),!0}return!1},_prio:function(){var e=this._tokenStream.match(m.IMPORTANT_SYM);return this._readWhitespace(),e},_expr:function(e){var t=[],n=null,r=null;if(null!==(n=this._term(e)))for(t.push(n);(r=this._operator(e))&&t.push(r),null!==(n=this._term(e));)t.push(n);return t.length>0?new d(t,t[0].line,t[0].col):null},_term:function(e){var t,n,r,i,o=this._tokenStream,s=null,a=null,l=null;return null!==(t=this._unary_operator())&&(r=o.token().startLine,i=o.token().startCol),o.peek()===m.IE_FUNCTION&&this.options.ieFilters?(s=this._ie_function(),null===t&&(r=o.token().startLine,i=o.token().startCol)):e&&o.match([m.LPAREN,m.LBRACE,m.LBRACKET])?(a=(n=o.token()).endChar,s=n.value+this._expr(e).text,null===t&&(r=o.token().startLine,i=o.token().startCol),o.mustMatch(m.type(a)),s+=a,this._readWhitespace()):o.match([m.NUMBER,m.PERCENTAGE,m.LENGTH,m.ANGLE,m.TIME,m.FREQ,m.STRING,m.IDENT,m.URI,m.UNICODE_RANGE])?(s=o.token().value,null===t&&(r=o.token().startLine,i=o.token().startCol,l=u.fromToken(o.token())),this._readWhitespace()):null===(n=this._hexcolor())?(null===t&&(r=o.LT(1).startLine,i=o.LT(1).startCol),null===s&&(s=o.LA(3)===m.EQUALS&&this.options.ieFilters?this._ie_function():this._function())):(s=n.value,null===t&&(r=n.startLine,i=n.startCol)),null!==l?l:null!==s?new u(null!==t?t+s:s,r,i):null},_function:function(){var e,t=this._tokenStream,n=null;if(t.match(m.FUNCTION)){if(n=t.token().value,this._readWhitespace(),n+=this._expr(!0),this.options.ieFilters&&t.peek()===m.EQUALS)do{for(this._readWhitespace()&&(n+=t.token().value),t.LA(0)===m.COMMA&&(n+=t.token().value),t.match(m.IDENT),n+=t.token().value,t.match(m.EQUALS),n+=t.token().value,e=t.peek();e!==m.COMMA&&e!==m.S&&e!==m.RPAREN;)t.get(),n+=t.token().value,e=t.peek()}while(t.match([m.COMMA,m.S]));t.match(m.RPAREN),n+=")",this._readWhitespace()}return n},_ie_function:function(){var e,t=this._tokenStream,n=null;if(t.match([m.IE_FUNCTION,m.FUNCTION])){n=t.token().value;do{for(this._readWhitespace()&&(n+=t.token().value),t.LA(0)===m.COMMA&&(n+=t.token().value),t.match(m.IDENT),n+=t.token().value,t.match(m.EQUALS),n+=t.token().value,e=t.peek();e!==m.COMMA&&e!==m.S&&e!==m.RPAREN;)t.get(),n+=t.token().value,e=t.peek()}while(t.match([m.COMMA,m.S]));t.match(m.RPAREN),n+=")",this._readWhitespace()}return n},_hexcolor:function(){var e,t=this._tokenStream,n=null;if(t.match(m.HASH)){if(e=(n=t.token()).value,!/#[a-f0-9]{3,6}/i.test(e))throw new i("Expected a hex color but found '"+e+"' at line "+n.startLine+", col "+n.startCol+".",n.startLine,n.startCol);this._readWhitespace()}return n},_keyframes:function(){var e,t,n,r=this._tokenStream,i="";for(r.mustMatch(m.KEYFRAMES_SYM),e=r.token(),/^@-([^-]+)-/.test(e.value)&&(i=RegExp.$1),this._readWhitespace(),n=this._keyframe_name(),this._readWhitespace(),r.mustMatch(m.LBRACE),this.fire({type:"startkeyframes",name:n,prefix:i,line:e.startLine,col:e.startCol}),this._readWhitespace(),t=r.peek();t===m.IDENT||t===m.PERCENTAGE;)this._keyframe_rule(),this._readWhitespace(),t=r.peek();this.fire({type:"endkeyframes",name:n,prefix:i,line:e.startLine,col:e.startCol}),this._readWhitespace(),r.mustMatch(m.RBRACE),this._readWhitespace()},_keyframe_name:function(){var e=this._tokenStream;return e.mustMatch([m.IDENT,m.STRING]),o.fromToken(e.token())},_keyframe_rule:function(){var e=this._key_list();this.fire({type:"startkeyframerule",keys:e,line:e[0].line,col:e[0].col}),this._readDeclarations(!0),this.fire({type:"endkeyframerule",keys:e,line:e[0].line,col:e[0].col})},_key_list:function(){var e=this._tokenStream,t=[];for(t.push(this._key()),this._readWhitespace();e.match(m.COMMA);)this._readWhitespace(),t.push(this._key()),this._readWhitespace();return t},_key:function(){var e,t=this._tokenStream;if(t.match(m.PERCENTAGE))return o.fromToken(t.token());if(t.match(m.IDENT)){if(e=t.token(),/from|to/i.test(e.value))return o.fromToken(e);t.unget()}this._unexpectedToken(t.LT(1))},_skipCruft:function(){for(;this._tokenStream.match([m.S,m.CDO,m.CDC]););},_readDeclarations:function(e,t){var n,r=this._tokenStream;this._readWhitespace(),e&&r.mustMatch(m.LBRACE),this._readWhitespace();try{for(;;){if(r.match(m.SEMICOLON)||t&&this._margin());else{if(!this._declaration())break;if(!r.match(m.SEMICOLON))break}this._readWhitespace()}r.mustMatch(m.RBRACE),this._readWhitespace()}catch(e){if(!(e instanceof i)||this.options.strict)throw e;if(this.fire({type:"error",error:e,message:e.message,line:e.line,col:e.col}),(n=r.advance([m.SEMICOLON,m.RBRACE]))===m.SEMICOLON)this._readDeclarations(!1,t);else if(n!==m.EOF&&n!==m.RBRACE)throw e}},_readWhitespace:function(){for(var e=this._tokenStream,t="";e.match(m.S);)t+=e.token().value;return t},_unexpectedToken:function(e){throw new i("Unexpected token '"+e.value+"' at line "+e.startLine+", col "+e.startCol+".",e.startLine,e.startCol)},_verifyEnd:function(){this._tokenStream.LA(1)!==m.EOF&&this._unexpectedToken(this._tokenStream.LT(1))},_validateProperty:function(e,t){b.validate(e,t)},parse:function(e){this._tokenStream=new g(e,m),this._stylesheet()},parseStyleSheet:function(e){return this.parse(e)},parseMediaQuery:function(e){this._tokenStream=new g(e,m);var t=this._media_query();return this._verifyEnd(),t},parsePropertyValue:function(e){this._tokenStream=new g(e,m),this._readWhitespace();var t=this._expr();return this._readWhitespace(),this._verifyEnd(),t},parseRule:function(e){this._tokenStream=new g(e,m),this._readWhitespace();var t=this._ruleset();return this._readWhitespace(),this._verifyEnd(),t},parseSelector:function(e){this._tokenStream=new g(e,m),this._readWhitespace();var t=this._selector();return this._readWhitespace(),this._verifyEnd(),t},parseStyleAttribute:function(e){e+="}",this._tokenStream=new g(e,m),this._readDeclarations()}};for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}()},{"../util/EventTarget":23,"../util/SyntaxError":25,"../util/SyntaxUnit":26,"./Combinator":2,"./MediaFeature":4,"./MediaQuery":5,"./PropertyName":8,"./PropertyValue":9,"./PropertyValuePart":11,"./Selector":13,"./SelectorPart":14,"./SelectorSubPart":15,"./TokenStream":17,"./Tokens":18,"./Validation":19}],7:[function(e,t,n){"use strict";t.exports={__proto__:null,"align-items":"flex-start | flex-end | center | baseline | stretch","align-content":"flex-start | flex-end | center | space-between | space-around | stretch","align-self":"auto | flex-start | flex-end | center | baseline | stretch",all:"initial | inherit | unset","-webkit-align-items":"flex-start | flex-end | center | baseline | stretch","-webkit-align-content":"flex-start | flex-end | center | space-between | space-around | stretch","-webkit-align-self":"auto | flex-start | flex-end | center | baseline | stretch","alignment-adjust":"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical | <percentage> | <length>","alignment-baseline":"auto | baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical",animation:1,"animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"[ none | forwards | backwards | both ]#","animation-iteration-count":"[ <number> | infinite ]#","animation-name":"[ none | <single-animation-name> ]#","animation-play-state":"[ running | paused ]#","animation-timing-function":1,"-moz-animation-delay":"<time>#","-moz-animation-direction":"[ normal | alternate ]#","-moz-animation-duration":"<time>#","-moz-animation-iteration-count":"[ <number> | infinite ]#","-moz-animation-name":"[ none | <single-animation-name> ]#","-moz-animation-play-state":"[ running | paused ]#","-ms-animation-delay":"<time>#","-ms-animation-direction":"[ normal | alternate ]#","-ms-animation-duration":"<time>#","-ms-animation-iteration-count":"[ <number> | infinite ]#","-ms-animation-name":"[ none | <single-animation-name> ]#","-ms-animation-play-state":"[ running | paused ]#","-webkit-animation-delay":"<time>#","-webkit-animation-direction":"[ normal | alternate ]#","-webkit-animation-duration":"<time>#","-webkit-animation-fill-mode":"[ none | forwards | backwards | both ]#","-webkit-animation-iteration-count":"[ <number> | infinite ]#","-webkit-animation-name":"[ none | <single-animation-name> ]#","-webkit-animation-play-state":"[ running | paused ]#","-o-animation-delay":"<time>#","-o-animation-direction":"[ normal | alternate ]#","-o-animation-duration":"<time>#","-o-animation-iteration-count":"[ <number> | infinite ]#","-o-animation-name":"[ none | <single-animation-name> ]#","-o-animation-play-state":"[ running | paused ]#",appearance:"none | auto","-moz-appearance":"none | button | button-arrow-down | button-arrow-next | button-arrow-previous | button-arrow-up | button-bevel | button-focus | caret | checkbox | checkbox-container | checkbox-label | checkmenuitem | dualbutton | groupbox | listbox | listitem | menuarrow | menubar | menucheckbox | menuimage | menuitem | menuitemtext | menulist | menulist-button | menulist-text | menulist-textfield | menupopup | menuradio | menuseparator | meterbar | meterchunk | progressbar | progressbar-vertical | progresschunk | progresschunk-vertical | radio | radio-container | radio-label | radiomenuitem | range | range-thumb | resizer | resizerpanel | scale-horizontal | scalethumbend | scalethumb-horizontal | scalethumbstart | scalethumbtick | scalethumb-vertical | scale-vertical | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | separator | sheet | spinner | spinner-downbutton | spinner-textfield | spinner-upbutton | splitter | statusbar | statusbarpanel | tab | tabpanel | tabpanels | tab-scroll-arrow-back | tab-scroll-arrow-forward | textfield | textfield-multiline | toolbar | toolbarbutton | toolbarbutton-dropdown | toolbargripper | toolbox | tooltip | treeheader | treeheadercell | treeheadersortarrow | treeitem | treeline | treetwisty | treetwistyopen | treeview | -moz-mac-unified-toolbar | -moz-win-borderless-glass | -moz-win-browsertabbar-toolbox | -moz-win-communicationstext | -moz-win-communications-toolbox | -moz-win-exclude-glass | -moz-win-glass | -moz-win-mediatext | -moz-win-media-toolbox | -moz-window-button-box | -moz-window-button-box-maximized | -moz-window-button-close | -moz-window-button-maximize | -moz-window-button-minimize | -moz-window-button-restore | -moz-window-frame-bottom | -moz-window-frame-left | -moz-window-frame-right | -moz-window-titlebar | -moz-window-titlebar-maximized","-ms-appearance":"none | icon | window | desktop | workspace | document | tooltip | dialog | button | push-button | hyperlink | radio | radio-button | checkbox | menu-item | tab | menu | menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | outline-tree | range | field | combo-box | signature | password | normal","-webkit-appearance":"none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | listbox | listitem | media-fullscreen-button | media-mute-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | push-button | radio | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical","-o-appearance":"none | window | desktop | workspace | document | tooltip | dialog | button | push-button | hyperlink | radio | radio-button | checkbox | menu-item | tab | menu | menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | outline-tree | range | field | combo-box | signature | password | normal",azimuth:"<azimuth>","backface-visibility":"visible | hidden",background:1,"background-attachment":"<attachment>#","background-clip":"<box>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","baseline-shift":"baseline | sub | super | <percentage> | <length>",behavior:1,binding:1,bleed:"<length>","bookmark-label":"<content> | <attr> | <string>","bookmark-level":"none | <integer>","bookmark-state":"open | closed","bookmark-target":"none | <uri> | <attr>",border:"<border-width> || <border-style> || <color>","border-bottom":"<border-width> || <border-style> || <color>","border-bottom-color":"<color>","border-bottom-left-radius":"<x-one-radius>","border-bottom-right-radius":"<x-one-radius>","border-bottom-style":"<border-style>","border-bottom-width":"<border-width>","border-collapse":"collapse | separate","border-color":"<color>{1,4}","border-image":1,"border-image-outset":"[ <length> | <number> ]{1,4}","border-image-repeat":"[ stretch | repeat | round | space ]{1,2}","border-image-slice":"<border-image-slice>","border-image-source":"<image> | none","border-image-width":"[ <length> | <percentage> | <number> | auto ]{1,4}","border-left":"<border-width> || <border-style> || <color>","border-left-color":"<color>","border-left-style":"<border-style>","border-left-width":"<border-width>","border-radius":"<border-radius>","border-right":"<border-width> || <border-style> || <color>","border-right-color":"<color>","border-right-style":"<border-style>","border-right-width":"<border-width>","border-spacing":"<length>{1,2}","border-style":"<border-style>{1,4}","border-top":"<border-width> || <border-style> || <color>","border-top-color":"<color>","border-top-left-radius":"<x-one-radius>","border-top-right-radius":"<x-one-radius>","border-top-style":"<border-style>","border-top-width":"<border-width>","border-width":"<border-width>{1,4}",bottom:"<margin-width>","-moz-box-align":"start | end | center | baseline | stretch","-moz-box-decoration-break":"slice | clone","-moz-box-direction":"normal | reverse","-moz-box-flex":"<number>","-moz-box-flex-group":"<integer>","-moz-box-lines":"single | multiple","-moz-box-ordinal-group":"<integer>","-moz-box-orient":"horizontal | vertical | inline-axis | block-axis","-moz-box-pack":"start | end | center | justify","-o-box-decoration-break":"slice | clone","-webkit-box-align":"start | end | center | baseline | stretch","-webkit-box-decoration-break":"slice | clone","-webkit-box-direction":"normal | reverse","-webkit-box-flex":"<number>","-webkit-box-flex-group":"<integer>","-webkit-box-lines":"single | multiple","-webkit-box-ordinal-group":"<integer>","-webkit-box-orient":"horizontal | vertical | inline-axis | block-axis","-webkit-box-pack":"start | end | center | justify","box-decoration-break":"slice | clone","box-shadow":"<box-shadow>","box-sizing":"content-box | border-box","break-after":"auto | always | avoid | left | right | page | column | avoid-page | avoid-column","break-before":"auto | always | avoid | left | right | page | column | avoid-page | avoid-column","break-inside":"auto | avoid | avoid-page | avoid-column","caption-side":"top | bottom",clear:"none | right | left | both",clip:"<shape> | auto","-webkit-clip-path":"<clip-source> | <clip-path> | none","clip-path":"<clip-source> | <clip-path> | none","clip-rule":"nonzero | evenodd",color:"<color>","color-interpolation":"auto | sRGB | linearRGB","color-interpolation-filters":"auto | sRGB | linearRGB","color-profile":1,"color-rendering":"auto | optimizeSpeed | optimizeQuality","column-count":"<integer> | auto","column-fill":"auto | balance","column-gap":"<length> | normal","column-rule":"<border-width> || <border-style> || <color>","column-rule-color":"<color>","column-rule-style":"<border-style>","column-rule-width":"<border-width>","column-span":"none | all","column-width":"<length> | auto",columns:1,content:1,"counter-increment":1,"counter-reset":1,crop:"<shape> | auto",cue:"cue-after | cue-before","cue-after":1,"cue-before":1,cursor:1,direction:"ltr | rtl",display:"inline | block | list-item | inline-block | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | grid | inline-grid | run-in | ruby | ruby-base | ruby-text | ruby-base-container | ruby-text-container | contents | none | -moz-box | -moz-inline-block | -moz-inline-box | -moz-inline-grid | -moz-inline-stack | -moz-inline-table | -moz-grid | -moz-grid-group | -moz-grid-line | -moz-groupbox | -moz-deck | -moz-popup | -moz-stack | -moz-marker | -webkit-box | -webkit-inline-box | -ms-flexbox | -ms-inline-flexbox | flex | -webkit-flex | inline-flex | -webkit-inline-flex","dominant-baseline":"auto | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge","drop-initial-after-adjust":"central | middle | after-edge | text-after-edge | ideographic | alphabetic | mathematical | <percentage> | <length>","drop-initial-after-align":"baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical","drop-initial-before-adjust":"before-edge | text-before-edge | central | middle | hanging | mathematical | <percentage> | <length>","drop-initial-before-align":"caps-height | baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical","drop-initial-size":"auto | line | <length> | <percentage>","drop-initial-value":"<integer>",elevation:"<angle> | below | level | above | higher | lower","empty-cells":"show | hide","enable-background":1,fill:"<paint>","fill-opacity":"<opacity-value>","fill-rule":"nonzero | evenodd",filter:"<filter-function-list> | none",fit:"fill | hidden | meet | slice","fit-position":1,flex:"<flex>","flex-basis":"<width>","flex-direction":"row | row-reverse | column | column-reverse","flex-flow":"<flex-direction> || <flex-wrap>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap | wrap | wrap-reverse","-webkit-flex":"<flex>","-webkit-flex-basis":"<width>","-webkit-flex-direction":"row | row-reverse | column | column-reverse","-webkit-flex-flow":"<flex-direction> || <flex-wrap>","-webkit-flex-grow":"<number>","-webkit-flex-shrink":"<number>","-webkit-flex-wrap":"nowrap | wrap | wrap-reverse","-ms-flex":"<flex>","-ms-flex-align":"start | end | center | stretch | baseline","-ms-flex-direction":"row | row-reverse | column | column-reverse","-ms-flex-order":"<number>","-ms-flex-pack":"start | end | center | justify | distribute","-ms-flex-wrap":"nowrap | wrap | wrap-reverse",float:"left | right | none","float-offset":1,"flood-color":1,"flood-opacity":"<opacity-value>",font:"<font-shorthand> | caption | icon | menu | message-box | small-caption | status-bar","font-family":"<font-family>","font-feature-settings":"<feature-tag-value> | normal","font-kerning":"auto | normal | none","font-size":"<font-size>","font-size-adjust":"<number> | none","font-stretch":"<font-stretch>","font-style":"<font-style>","font-variant":"<font-variant> | normal | none","font-variant-alternates":"<font-variant-alternates> | normal","font-variant-caps":"<font-variant-caps> | normal","font-variant-east-asian":"<font-variant-east-asian> | normal","font-variant-ligatures":"<font-variant-ligatures> | normal | none","font-variant-numeric":"<font-variant-numeric> | normal","font-variant-position":"normal | sub | super","font-weight":"<font-weight>",gap:"[ <length> | <percentage> ]{1,2}","glyph-orientation-horizontal":"<glyph-angle>","glyph-orientation-vertical":"auto | <glyph-angle>",grid:1,"grid-area":1,"grid-auto-columns":1,"grid-auto-flow":1,"grid-auto-position":1,"grid-auto-rows":1,"grid-cell-stacking":"columns | rows | layer","grid-column":1,"grid-columns":1,"grid-column-align":"start | end | center | stretch","grid-column-sizing":1,"grid-column-start":1,"grid-column-end":1,"grid-column-span":"<integer>","grid-flow":"none | rows | columns","grid-gap":"[ <length> | <percentage> ]{1,2}","grid-layer":"<integer>","grid-row":1,"grid-rows":1,"grid-row-align":"start | end | center | stretch","grid-row-gap":1,"grid-row-start":1,"grid-row-end":1,"grid-row-span":"<integer>","grid-row-sizing":1,"grid-template":1,"grid-template-areas":1,"grid-template-columns":1,"grid-template-rows":1,"hanging-punctuation":1,height:"<margin-width> | <content-sizing>","hyphenate-after":"<integer> | auto","hyphenate-before":"<integer> | auto","hyphenate-character":"<string> | auto","hyphenate-lines":"no-limit | <integer>","hyphenate-resource":1,hyphens:"none | manual | auto",icon:1,"image-orientation":"angle | auto","image-rendering":"auto | optimizeSpeed | optimizeQuality","image-resolution":1,"ime-mode":"auto | normal | active | inactive | disabled","inline-box-align":"last | <integer>","justify-content":"flex-start | flex-end | center | space-between | space-around | space-evenly | stretch","-webkit-justify-content":"flex-start | flex-end | center | space-between | space-around | space-evenly | stretch",kerning:"auto | <length>",left:"<margin-width>","letter-spacing":"<length> | normal","line-height":"<line-height>","line-break":"auto | loose | normal | strict","line-stacking":1,"line-stacking-ruby":"exclude-ruby | include-ruby","line-stacking-shift":"consider-shifts | disregard-shifts","line-stacking-strategy":"inline-line-height | block-line-height | max-height | grid-height","list-style":1,"list-style-image":"<uri> | none","list-style-position":"inside | outside","list-style-type":"disc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-latin | upper-latin | armenian | georgian | lower-alpha | upper-alpha | none",margin:"<margin-width>{1,4}","margin-bottom":"<margin-width>","margin-left":"<margin-width>","margin-right":"<margin-width>","margin-top":"<margin-width>",mark:1,"mark-after":1,"mark-before":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,marks:1,"marquee-direction":1,"marquee-play-count":1,"marquee-speed":1,"marquee-style":1,mask:1,"max-height":"<length> | <percentage> | <content-sizing> | none","max-width":"<length> | <percentage> | <content-sizing> | none","min-height":"<length> | <percentage> | <content-sizing> | contain-floats | -moz-contain-floats | -webkit-contain-floats","min-width":"<length> | <percentage> | <content-sizing> | contain-floats | -moz-contain-floats | -webkit-contain-floats","mix-blend-mode":"<blend-mode>","move-to":1,"nav-down":1,"nav-index":1,"nav-left":1,"nav-right":1,"nav-up":1,"object-fit":"fill | contain | cover | none | scale-down","object-position":"<position>",opacity:"<opacity-value>",order:"<integer>","-webkit-order":"<integer>",orphans:"<integer>",outline:1,"outline-color":"<color> | invert","outline-offset":1,"outline-style":"<border-style>","outline-width":"<border-width>",overflow:"visible | hidden | scroll | auto","overflow-style":1,"overflow-wrap":"normal | break-word","overflow-x":1,"overflow-y":1,padding:"<padding-width>{1,4}","padding-bottom":"<padding-width>","padding-left":"<padding-width>","padding-right":"<padding-width>","padding-top":"<padding-width>",page:1,"page-break-after":"auto | always | avoid | left | right","page-break-before":"auto | always | avoid | left | right","page-break-inside":"auto | avoid","page-policy":1,pause:1,"pause-after":1,"pause-before":1,perspective:1,"perspective-origin":1,phonemes:1,pitch:1,"pitch-range":1,"play-during":1,"pointer-events":"auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all",position:"static | relative | absolute | fixed | sticky | -webkit-sticky","presentation-level":1,"punctuation-trim":1,quotes:1,"rendering-intent":1,resize:1,rest:1,"rest-after":1,"rest-before":1,richness:1,right:"<margin-width>",rotation:1,"rotation-point":1,"ruby-align":1,"ruby-overhang":1,"ruby-position":1,"ruby-span":1,"shape-rendering":"auto | optimizeSpeed | crispEdges | geometricPrecision",size:1,speak:"normal | none | spell-out","speak-header":"once | always","speak-numeral":"digits | continuous","speak-punctuation":"code | none","speech-rate":1,src:1,"stop-color":1,"stop-opacity":"<opacity-value>",stress:1,"string-set":1,stroke:"<paint>","stroke-dasharray":"none | <dasharray>","stroke-dashoffset":"<percentage> | <length>","stroke-linecap":"butt | round | square","stroke-linejoin":"miter | round | bevel","stroke-miterlimit":"<miterlimit>","stroke-opacity":"<opacity-value>","stroke-width":"<percentage> | <length>","table-layout":"auto | fixed","tab-size":"<integer> | <length>",target:1,"target-name":1,"target-new":1,"target-position":1,"text-align":"left | right | center | justify | match-parent | start | end","text-align-last":1,"text-anchor":"start | middle | end","text-decoration":"<text-decoration-line> || <text-decoration-style> || <text-decoration-color>","text-decoration-color":"<text-decoration-color>","text-decoration-line":"<text-decoration-line>","text-decoration-style":"<text-decoration-style>","text-decoration-skip":"none | [ objects || spaces || ink || edges || box-decoration ]","-webkit-text-decoration-skip":"none | [ objects || spaces || ink || edges || box-decoration ]","text-underline-position":"auto | [ under || [ left | right ] ]","text-emphasis":1,"text-height":1,"text-indent":"<length> | <percentage>","text-justify":"auto | none | inter-word | inter-ideograph | inter-cluster | distribute | kashida","text-outline":1,"text-overflow":1,"text-rendering":"auto | optimizeSpeed | optimizeLegibility | geometricPrecision","text-shadow":1,"text-transform":"capitalize | uppercase | lowercase | none","text-wrap":"normal | none | avoid",top:"<margin-width>","-ms-touch-action":"auto | none | pan-x | pan-y | pan-left | pan-right | pan-up | pan-down | manipulation","touch-action":"auto | none | pan-x | pan-y | pan-left | pan-right | pan-up | pan-down | manipulation",transform:1,"transform-origin":1,"transform-style":1,transition:1,"transition-delay":1,"transition-duration":1,"transition-property":1,"transition-timing-function":1,"unicode-bidi":"normal | embed | isolate | bidi-override | isolate-override | plaintext","user-modify":"read-only | read-write | write-only","user-select":"auto | text | none | contain | all","vertical-align":"auto | use-script | baseline | sub | super | top | text-top | central | middle | bottom | text-bottom | <percentage> | <length>",visibility:"visible | hidden | collapse","voice-balance":1,"voice-duration":1,"voice-family":1,"voice-pitch":1,"voice-pitch-range":1,"voice-rate":1,"voice-stress":1,"voice-volume":1,volume:1,"white-space":"normal | pre | nowrap | pre-wrap | pre-line | -pre-wrap | -o-pre-wrap | -moz-pre-wrap | -hp-pre-wrap","white-space-collapse":1,widows:"<integer>",width:"<length> | <percentage> | <content-sizing> | auto","will-change":"<will-change>","word-break":"normal | keep-all | break-all | break-word","word-spacing":"<length> | normal","word-wrap":"normal | break-word","writing-mode":"horizontal-tb | vertical-rl | vertical-lr | lr-tb | rl-tb | tb-rl | bt-rl | tb-lr | bt-lr | lr-bt | rl-bt | lr | rl | tb","z-index":"<integer> | auto",zoom:"<number> | <percentage> | normal"}},{}],8:[function(e,t,n){"use strict";t.exports=o;var r=e("../util/SyntaxUnit"),i=e("./Parser");function o(e,t,n,o){r.call(this,e,n,o,i.PROPERTY_NAME_TYPE),this.hack=t}o.prototype=new r,o.prototype.constructor=o,o.prototype.toString=function(){return(this.hack?this.hack:"")+this.text}},{"../util/SyntaxUnit":26,"./Parser":6}],9:[function(e,t,n){"use strict";t.exports=o;var r=e("../util/SyntaxUnit"),i=e("./Parser");function o(e,t,n){r.call(this,e.join(" "),t,n,i.PROPERTY_VALUE_TYPE),this.parts=e}o.prototype=new r,o.prototype.constructor=o},{"../util/SyntaxUnit":26,"./Parser":6}],10:[function(e,t,n){"use strict";function r(e){this._i=0,this._parts=e.parts,this._marks=[],this.value=e}t.exports=r,r.prototype.count=function(){return this._parts.length},r.prototype.isFirst=function(){return 0===this._i},r.prototype.hasNext=function(){return this._i<this._parts.length},r.prototype.mark=function(){this._marks.push(this._i)},r.prototype.peek=function(e){return this.hasNext()?this._parts[this._i+(e||0)]:null},r.prototype.next=function(){return this.hasNext()?this._parts[this._i++]:null},r.prototype.previous=function(){return this._i>0?this._parts[--this._i]:null},r.prototype.restore=function(){this._marks.length&&(this._i=this._marks.pop())},r.prototype.drop=function(){this._marks.pop()}},{}],11:[function(e,t,n){"use strict";t.exports=a;var r=e("../util/SyntaxUnit"),i=e("./Colors"),o=e("./Parser"),s=e("./Tokens");function a(e,t,n,s){var l,c=s||{};if(r.call(this,e,t,n,o.PROPERTY_VALUE_PART_TYPE),this.type="unknown",/^([+-]?[\d.]+)([a-z]+)$/i.test(e))switch(this.type="dimension",this.value=Number(RegExp.$1),this.units=RegExp.$2,this.units.toLowerCase()){case"em":case"rem":case"ex":case"px":case"cm":case"mm":case"in":case"pt":case"pc":case"ch":case"vh":case"vw":case"vmax":case"vmin":this.type="length";break;case"fr":this.type="grid";break;case"deg":case"rad":case"grad":case"turn":this.type="angle";break;case"ms":case"s":this.type="time";break;case"hz":case"khz":this.type="frequency";break;case"dpi":case"dpcm":this.type="resolution"}else/^([+-]?[\d.]+)%$/i.test(e)?(this.type="percentage",this.value=Number(RegExp.$1)):/^([+-]?\d+)$/i.test(e)?(this.type="integer",this.value=Number(RegExp.$1)):/^([+-]?[\d.]+)$/i.test(e)?(this.type="number",this.value=Number(RegExp.$1)):/^#([a-f0-9]{3,6})/i.test(e)?(this.type="color",3===(l=RegExp.$1).length?(this.red=parseInt(l.charAt(0)+l.charAt(0),16),this.green=parseInt(l.charAt(1)+l.charAt(1),16),this.blue=parseInt(l.charAt(2)+l.charAt(2),16)):(this.red=parseInt(l.substring(0,2),16),this.green=parseInt(l.substring(2,4),16),this.blue=parseInt(l.substring(4,6),16))):/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i.test(e)?(this.type="color",this.red=Number(RegExp.$1),this.green=Number(RegExp.$2),this.blue=Number(RegExp.$3)):/^rgb\(\s*(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)/i.test(e)?(this.type="color",this.red=255*Number(RegExp.$1)/100,this.green=255*Number(RegExp.$2)/100,this.blue=255*Number(RegExp.$3)/100):/^rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/i.test(e)?(this.type="color",this.red=Number(RegExp.$1),this.green=Number(RegExp.$2),this.blue=Number(RegExp.$3),this.alpha=Number(RegExp.$4)):/^rgba\(\s*(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*,\s*([\d.]+)\s*\)/i.test(e)?(this.type="color",this.red=255*Number(RegExp.$1)/100,this.green=255*Number(RegExp.$2)/100,this.blue=255*Number(RegExp.$3)/100,this.alpha=Number(RegExp.$4)):/^hsl\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)/i.test(e)?(this.type="color",this.hue=Number(RegExp.$1),this.saturation=Number(RegExp.$2)/100,this.lightness=Number(RegExp.$3)/100):/^hsla\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*,\s*([\d.]+)\s*\)/i.test(e)?(this.type="color",this.hue=Number(RegExp.$1),this.saturation=Number(RegExp.$2)/100,this.lightness=Number(RegExp.$3)/100,this.alpha=Number(RegExp.$4)):/^url\(("([^\\"]|\.)*")\)/i.test(e)?(this.type="uri",this.uri=a.parseString(RegExp.$1)):/^([^(]+)\(/i.test(e)?(this.type="function",this.name=RegExp.$1,this.value=e):/^"([^\n\r\f\\"]|\\\r\n|\\[^\r0-9a-f]|\\[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?)*"/i.test(e)||/^'([^\n\r\f\\']|\\\r\n|\\[^\r0-9a-f]|\\[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?)*'/i.test(e)?(this.type="string",this.value=a.parseString(e)):i[e.toLowerCase()]?(this.type="color",l=i[e.toLowerCase()].substring(1),this.red=parseInt(l.substring(0,2),16),this.green=parseInt(l.substring(2,4),16),this.blue=parseInt(l.substring(4,6),16)):/^[,/]$/.test(e)?(this.type="operator",this.value=e):/^-?[a-z_\u00A0-\uFFFF][a-z0-9\-_\u00A0-\uFFFF]*$/i.test(e)&&(this.type="identifier",this.value=e);this.wasIdent=Boolean(c.ident)}a.prototype=new r,a.prototype.constructor=a,a.parseString=function(e){return(e=e.slice(1,-1)).replace(/\\(\r\n|[^\r0-9a-f]|[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?)/gi,(function(e,t){if(/^(\n|\r\n|\r|\f)$/.test(t))return"";var n=/^[0-9a-f]{1,6}/i.exec(t);if(n){var r=parseInt(n[0],16);return String.fromCodePoint?String.fromCodePoint(r):String.fromCharCode(r)}return t}))},a.serializeString=function(e){return'"'+e.replace(/["\r\n\f]/g,(function(e,t){return'"'===t?"\\"+t:"\\"+(String.codePointAt?String.codePointAt(0):String.charCodeAt(0)).toString(16)+" "}))+'"'},a.fromToken=function(e){return new a(e.value,e.startLine,e.startCol,{ident:e.type===s.IDENT})}},{"../util/SyntaxUnit":26,"./Colors":1,"./Parser":6,"./Tokens":18}],12:[function(e,t,n){"use strict";var r=t.exports={__proto__:null,":first-letter":1,":first-line":1,":before":1,":after":1};r.ELEMENT=1,r.CLASS=2,r.isElement=function(e){return 0===e.indexOf("::")||r[e.toLowerCase()]===r.ELEMENT}},{}],13:[function(e,t,n){"use strict";t.exports=s;var r=e("../util/SyntaxUnit"),i=e("./Parser"),o=e("./Specificity");function s(e,t,n){r.call(this,e.join(" "),t,n,i.SELECTOR_TYPE),this.parts=e,this.specificity=o.calculate(this)}s.prototype=new r,s.prototype.constructor=s},{"../util/SyntaxUnit":26,"./Parser":6,"./Specificity":16}],14:[function(e,t,n){"use strict";t.exports=o;var r=e("../util/SyntaxUnit"),i=e("./Parser");function o(e,t,n,o,s){r.call(this,n,o,s,i.SELECTOR_PART_TYPE),this.elementName=e,this.modifiers=t}o.prototype=new r,o.prototype.constructor=o},{"../util/SyntaxUnit":26,"./Parser":6}],15:[function(e,t,n){"use strict";t.exports=o;var r=e("../util/SyntaxUnit"),i=e("./Parser");function o(e,t,n,o){r.call(this,e,n,o,i.SELECTOR_SUB_PART_TYPE),this.type=t,this.args=[]}o.prototype=new r,o.prototype.constructor=o},{"../util/SyntaxUnit":26,"./Parser":6}],16:[function(e,t,n){"use strict";t.exports=o;var r=e("./Pseudos"),i=e("./SelectorPart");function o(e,t,n,r){this.a=e,this.b=t,this.c=n,this.d=r}o.prototype={constructor:o,compare:function(e){var t,n,r=["a","b","c","d"];for(t=0,n=r.length;t<n;t++){if(this[r[t]]<e[r[t]])return-1;if(this[r[t]]>e[r[t]])return 1}return 0},valueOf:function(){return 1e3*this.a+100*this.b+10*this.c+this.d},toString:function(){return this.a+","+this.b+","+this.c+","+this.d}},o.calculate=function(e){var t,n,s,a=0,l=0,c=0;function d(e){var t,n,i,o,s,u=e.elementName?e.elementName.text:"";for(u&&"*"!==u.charAt(u.length-1)&&c++,t=0,i=e.modifiers.length;t<i;t++)switch((s=e.modifiers[t]).type){case"class":case"attribute":l++;break;case"id":a++;break;case"pseudo":r.isElement(s.text)?c++:l++;break;case"not":for(n=0,o=s.args.length;n<o;n++)d(s.args[n])}}for(t=0,n=e.parts.length;t<n;t++)(s=e.parts[t])instanceof i&&d(s);return new o(0,a,l,c)}},{"./Pseudos":12,"./SelectorPart":14}],17:[function(e,t,n){"use strict";t.exports=b;var r=e("../util/TokenStreamBase"),i=e("./PropertyValuePart"),o=e("./Tokens"),s=/^[0-9a-fA-F]$/,a=/^[\u00A0-\uFFFF]$/,l=/\n|\r\n|\r|\f/,c=/\u0009|\u000a|\u000c|\u000d|\u0020/;function d(e){return null!=e&&s.test(e)}function u(e){return null!=e&&/\d/.test(e)}function h(e){return null!=e&&c.test(e)}function p(e){return null!=e&&l.test(e)}function f(e){return null!=e&&/[a-z_\u00A0-\uFFFF\\]/i.test(e)}function g(e){return null!=e&&(f(e)||/[0-9\-\\]/.test(e))}function m(e){return"string"==typeof e&&(u(e[0])||"."===e[0]&&u(e[1]))}function b(e){r.call(this,e,o)}b.prototype=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}(new r,{_getToken:function(){var e,t=this._reader,n=null,r=t.getLine(),i=t.getCol();for(e=t.read();e;){switch(e){case"/":n="*"===t.peek()?this.commentToken(e,r,i):this.charToken(e,r,i);break;case"|":case"~":case"^":case"$":case"*":n="="===t.peek()?this.comparisonToken(e,r,i):this.charToken(e,r,i);break;case'"':case"'":n=this.stringToken(e,r,i);break;case"#":n=g(t.peek())?this.hashToken(e,r,i):this.charToken(e,r,i);break;case".":n=u(t.peek())?this.numberToken(e,r,i):this.charToken(e,r,i);break;case"-":if(m(t.peekCount(2))){n=this.numberToken(e,r,i);break}n="->"===t.peekCount(2)?this.htmlCommentEndToken(e,r,i):this._getDefaultToken(e,r,i);break;case"+":n=m(t.peekCount(2))?this.numberToken(e,r,i):this.charToken(e,r,i);break;case"!":n=this.importantToken(e,r,i);break;case"@":n=this.atRuleToken(e,r,i);break;case":":n=this.notToken(e,r,i);break;case"<":n=this.htmlCommentStartToken(e,r,i);break;case"\\":n=/[^\r\n\f]/.test(t.peek())?this.identOrFunctionToken(this.readEscape(e,!0),r,i):this.charToken(e,r,i);break;case"U":case"u":n="+"===t.peek()?this.unicodeRangeToken(e,r,i):this._getDefaultToken(e,r,i);break;default:n=this._getDefaultToken(e,r,i)}break}return n||null!==e||(n=this.createToken(o.EOF,null,r,i)),n},_getDefaultToken:function(e,t,n){var r,i=this._reader;return u(e)?this.numberToken(e,t,n):h(e)?this.whitespaceToken(e,t,n):"string"==typeof(r=e+i.peekCount(1))&&("-"===r[0]&&f(r[1])||f(r[0]))?this.identOrFunctionToken(e,t,n):this.charToken(e,t,n)},createToken:function(e,t,n,r,i){var o=this._reader;return{value:t,type:e,channel:(i=i||{}).channel,endChar:i.endChar,hide:i.hide||!1,startLine:n,startCol:r,endLine:o.getLine(),endCol:o.getCol()}},atRuleToken:function(e,t,n){var r=e,i=this._reader,s=o.CHAR;return i.mark(),r=e+this.readName(),(s=o.type(r.toLowerCase()))!==o.CHAR&&s!==o.UNKNOWN||(r.length>1?s=o.UNKNOWN_SYM:(s=o.CHAR,r=e,i.reset())),this.createToken(s,r,t,n)},charToken:function(e,t,n){var r=o.type(e),i={};return-1===r?r=o.CHAR:i.endChar=o[r].endChar,this.createToken(r,e,t,n,i)},commentToken:function(e,t,n){var r=this.readComment(e);return this.createToken(o.COMMENT,r,t,n)},comparisonToken:function(e,t,n){var r=e+this._reader.read(),i=o.type(r)||o.CHAR;return this.createToken(i,r,t,n)},hashToken:function(e,t,n){var r=this.readName(e);return this.createToken(o.HASH,r,t,n)},htmlCommentStartToken:function(e,t,n){var r=this._reader,i=e;return r.mark(),"\x3c!--"===(i+=r.readCount(3))?this.createToken(o.CDO,i,t,n):(r.reset(),this.charToken(e,t,n))},htmlCommentEndToken:function(e,t,n){var r=this._reader,i=e;return r.mark(),"--\x3e"===(i+=r.readCount(2))?this.createToken(o.CDC,i,t,n):(r.reset(),this.charToken(e,t,n))},identOrFunctionToken:function(e,t,n){var r,i=this._reader,s=this.readName(e),a=o.IDENT;return"("===i.peek()?(s+=i.read(),["url(","url-prefix(","domain("].indexOf(s.toLowerCase())>-1?(i.mark(),null===(r=this.readURI(s))?(i.reset(),a=o.FUNCTION):(a=o.URI,s=r)):a=o.FUNCTION):":"===i.peek()&&"progid"===s.toLowerCase()&&(s+=i.readTo("("),a=o.IE_FUNCTION),this.createToken(a,s,t,n)},importantToken:function(e,t,n){var r,i,s=this._reader,a=e,l=o.CHAR;for(s.mark(),i=s.read();i;){if("/"===i){if("*"!==s.peek())break;if(""===(r=this.readComment(i)))break}else{if(!h(i)){if(/i/i.test(i)){r=s.readCount(8),/mportant/i.test(r)&&(a+=i+r,l=o.IMPORTANT_SYM);break}break}a+=i+this.readWhitespace()}i=s.read()}return l===o.CHAR?(s.reset(),this.charToken(e,t,n)):this.createToken(l,a,t,n)},notToken:function(e,t,n){var r=this._reader,i=e;return r.mark(),":not("===(i+=r.readCount(4)).toLowerCase()?this.createToken(o.NOT,i,t,n):(r.reset(),this.charToken(e,t,n))},numberToken:function(e,t,n){var r,i=this._reader,s=this.readNumber(e),a=o.NUMBER,l=i.peek();return function(e){return null!=e&&(f(e)||/-\\/.test(e))}(l)?(s+=r=this.readName(i.read()),a=/^em$|^ex$|^px$|^gd$|^rem$|^vw$|^vh$|^fr$|^vmax$|^vmin$|^ch$|^cm$|^mm$|^in$|^pt$|^pc$/i.test(r)?o.LENGTH:/^deg|^rad$|^grad$|^turn$/i.test(r)?o.ANGLE:/^ms$|^s$/i.test(r)?o.TIME:/^hz$|^khz$/i.test(r)?o.FREQ:/^dpi$|^dpcm$/i.test(r)?o.RESOLUTION:o.DIMENSION):"%"===l&&(s+=i.read(),a=o.PERCENTAGE),this.createToken(a,s,t,n)},stringToken:function(e,t,n){for(var r,i=e,s=e,a=this._reader,l=o.STRING,c=a.read();c;){if(s+=c,"\\"===c){if(null===(c=a.read()))break;if(/[^\r\n\f0-9a-f]/i.test(c))s+=c;else{for(r=0;d(c)&&r<6;r++)s+=c,c=a.read();if("\r"===c&&"\n"===a.peek()&&(s+=c,c=a.read()),!h(c))continue;s+=c}}else{if(c===i)break;if(p(a.peek())){l=o.INVALID;break}}c=a.read()}return null===c&&(l=o.INVALID),this.createToken(l,s,t,n)},unicodeRangeToken:function(e,t,n){var r,i=this._reader,s=e,a=o.CHAR;return"+"===i.peek()&&(i.mark(),s+=i.read(),2===(s+=this.readUnicodeRangePart(!0)).length?i.reset():(a=o.UNICODE_RANGE,-1===s.indexOf("?")&&"-"===i.peek()&&(i.mark(),r=i.read(),1===(r+=this.readUnicodeRangePart(!1)).length?i.reset():s+=r))),this.createToken(a,s,t,n)},whitespaceToken:function(e,t,n){var r=e+this.readWhitespace();return this.createToken(o.S,r,t,n)},readUnicodeRangePart:function(e){for(var t=this._reader,n="",r=t.peek();d(r)&&n.length<6;)t.read(),n+=r,r=t.peek();if(e)for(;"?"===r&&n.length<6;)t.read(),n+=r,r=t.peek();return n},readWhitespace:function(){for(var e=this._reader,t="",n=e.peek();h(n);)e.read(),t+=n,n=e.peek();return t},readNumber:function(e){for(var t=this._reader,n=e,r="."===e,i=t.peek();i;){if(u(i))n+=t.read();else{if("."!==i)break;if(r)break;r=!0,n+=t.read()}i=t.peek()}return n},readString:function(){var e=this.stringToken(this._reader.read(),0,0);return e.type===o.INVALID?null:e.value},readURI:function(e){for(var t=this._reader,n=e,r="",o=t.peek();o&&h(o);)t.read(),o=t.peek();for("'"===o||'"'===o?null!==(r=this.readString())&&(r=i.parseString(r)):r=this.readUnquotedURL(),o=t.peek();o&&h(o);)t.read(),o=t.peek();return null===r||")"!==o?n=null:n+=i.serializeString(r)+t.read(),n},readUnquotedURL:function(e){var t,n=this._reader,r=e||"";for(t=n.peek();t;t=n.peek())if(a.test(t)||/^[-!#$%&*-[\]-~]$/.test(t))r+=t,n.read();else{if("\\"!==t)break;if(!/^[^\r\n\f]$/.test(n.peek(2)))break;r+=this.readEscape(n.read(),!0)}return r},readName:function(e){var t,n=this._reader,r=e||"";for(t=n.peek();t;t=n.peek())if("\\"===t){if(!/^[^\r\n\f]$/.test(n.peek(2)))break;r+=this.readEscape(n.read(),!0)}else{if(!g(t))break;r+=n.read()}return r},readEscape:function(e,t){var n=this._reader,r=e||"",i=0,o=n.peek();if(d(o))do{r+=n.read(),o=n.peek()}while(o&&d(o)&&++i<6);if(1===r.length){if(!/^[^\r\n\f0-9a-f]$/.test(o))throw new Error("Bad escape sequence.");if(n.read(),t)return o}else"\r"===o?(n.read(),"\n"===n.peek()&&(o+=n.read())):/^[ \t\n\f]$/.test(o)?n.read():o="";if(t){var s=parseInt(r.slice(e.length),16);return String.fromCodePoint?String.fromCodePoint(s):String.fromCharCode(s)}return r+o},readComment:function(e){var t=this._reader,n=e||"",r=t.read();if("*"===r){for(;r;){if((n+=r).length>2&&"*"===r&&"/"===t.peek()){n+=t.read();break}r=t.read()}return n}return""}})},{"../util/TokenStreamBase":27,"./PropertyValuePart":11,"./Tokens":18}],18:[function(e,t,n){"use strict";var r=t.exports=[{name:"CDO"},{name:"CDC"},{name:"S",whitespace:!0},{name:"COMMENT",comment:!0,hide:!0,channel:"comment"},{name:"INCLUDES",text:"~="},{name:"DASHMATCH",text:"|="},{name:"PREFIXMATCH",text:"^="},{name:"SUFFIXMATCH",text:"$="},{name:"SUBSTRINGMATCH",text:"*="},{name:"STRING"},{name:"IDENT"},{name:"HASH"},{name:"IMPORT_SYM",text:"@import"},{name:"PAGE_SYM",text:"@page"},{name:"MEDIA_SYM",text:"@media"},{name:"FONT_FACE_SYM",text:"@font-face"},{name:"CHARSET_SYM",text:"@charset"},{name:"NAMESPACE_SYM",text:"@namespace"},{name:"SUPPORTS_SYM",text:"@supports"},{name:"VIEWPORT_SYM",text:["@viewport","@-ms-viewport","@-o-viewport"]},{name:"DOCUMENT_SYM",text:["@document","@-moz-document"]},{name:"UNKNOWN_SYM"},{name:"KEYFRAMES_SYM",text:["@keyframes","@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"]},{name:"IMPORTANT_SYM"},{name:"LENGTH"},{name:"ANGLE"},{name:"TIME"},{name:"FREQ"},{name:"DIMENSION"},{name:"PERCENTAGE"},{name:"NUMBER"},{name:"URI"},{name:"FUNCTION"},{name:"UNICODE_RANGE"},{name:"INVALID"},{name:"PLUS",text:"+"},{name:"GREATER",text:">"},{name:"COMMA",text:","},{name:"TILDE",text:"~"},{name:"NOT"},{name:"TOPLEFTCORNER_SYM",text:"@top-left-corner"},{name:"TOPLEFT_SYM",text:"@top-left"},{name:"TOPCENTER_SYM",text:"@top-center"},{name:"TOPRIGHT_SYM",text:"@top-right"},{name:"TOPRIGHTCORNER_SYM",text:"@top-right-corner"},{name:"BOTTOMLEFTCORNER_SYM",text:"@bottom-left-corner"},{name:"BOTTOMLEFT_SYM",text:"@bottom-left"},{name:"BOTTOMCENTER_SYM",text:"@bottom-center"},{name:"BOTTOMRIGHT_SYM",text:"@bottom-right"},{name:"BOTTOMRIGHTCORNER_SYM",text:"@bottom-right-corner"},{name:"LEFTTOP_SYM",text:"@left-top"},{name:"LEFTMIDDLE_SYM",text:"@left-middle"},{name:"LEFTBOTTOM_SYM",text:"@left-bottom"},{name:"RIGHTTOP_SYM",text:"@right-top"},{name:"RIGHTMIDDLE_SYM",text:"@right-middle"},{name:"RIGHTBOTTOM_SYM",text:"@right-bottom"},{name:"RESOLUTION",state:"media"},{name:"IE_FUNCTION"},{name:"CHAR"},{name:"PIPE",text:"|"},{name:"SLASH",text:"/"},{name:"MINUS",text:"-"},{name:"STAR",text:"*"},{name:"LBRACE",endChar:"}",text:"{"},{name:"RBRACE",text:"}"},{name:"LBRACKET",endChar:"]",text:"["},{name:"RBRACKET",text:"]"},{name:"EQUALS",text:"="},{name:"COLON",text:":"},{name:"SEMICOLON",text:";"},{name:"LPAREN",endChar:")",text:"("},{name:"RPAREN",text:")"},{name:"DOT",text:"."}];!function(){var e=[],t=Object.create(null);r.UNKNOWN=-1,r.unshift({name:"EOF"});for(var n=0,i=r.length;n<i;n++)if(e.push(r[n].name),r[r[n].name]=n,r[n].text)if(r[n].text instanceof Array)for(var o=0;o<r[n].text.length;o++)t[r[n].text[o]]=n;else t[r[n].text]=n;r.name=function(t){return e[t]},r.type=function(e){return t[e]||-1}}()},{}],19:[function(e,t,n){"use strict";var r=e("./Matcher"),i=e("./Properties"),o=e("./ValidationTypes"),s=e("./ValidationError"),a=e("./PropertyValueIterator");t.exports={validate:function(e,t){var n,r=e.toString().toLowerCase(),l=new a(t),c=i[r];if(c){if("number"!=typeof c){if(o.isAny(l,"inherit | initial | unset")){if(l.hasNext())throw n=l.next(),new s("Expected end of value but found '"+n+"'.",n.line,n.col);return}this.singleProperty(c,l)}}else if(0!==r.indexOf("-"))throw new s("Unknown property '"+e+"'.",e.line,e.col)},singleProperty:function(e,t){var n,i=t.value;if(!r.parse(e).match(t))throw t.hasNext()&&!t.isFirst()?(n=t.peek(),new s("Expected end of value but found '"+n+"'.",n.line,n.col)):new s("Expected ("+o.describe(e)+") but found '"+i+"'.",i.line,i.col);if(t.hasNext())throw n=t.next(),new s("Expected end of value but found '"+n+"'.",n.line,n.col)}}},{"./Matcher":3,"./Properties":7,"./PropertyValueIterator":10,"./ValidationError":20,"./ValidationTypes":21}],20:[function(e,t,n){"use strict";function r(e,t,n){this.col=n,this.line=t,this.message=e}t.exports=r,r.prototype=new Error},{}],21:[function(e,t,n){"use strict";var r,i,o=t.exports,s=e("./Matcher");r=o,i={isLiteral:function(e,t){var n,r,i=e.text.toString().toLowerCase(),o=t.split(" | "),s=!1;for(n=0,r=o.length;n<r&&!s;n++)"<"===o[n].charAt(0)?s=this.simple[o[n]](e):"()"===o[n].slice(-2)?s="function"===e.type&&e.name===o[n].slice(0,-2):i===o[n].toLowerCase()&&(s=!0);return s},isSimple:function(e){return Boolean(this.simple[e])},isComplex:function(e){return Boolean(this.complex[e])},describe:function(e){return this.complex[e]instanceof s?this.complex[e].toString(0):e},isAny:function(e,t){var n,r,i=t.split(" | "),o=!1;for(n=0,r=i.length;n<r&&!o&&e.hasNext();n++)o=this.isType(e,i[n]);return o},isAnyOfGroup:function(e,t){var n,r,i=t.split(" || "),o=!1;for(n=0,r=i.length;n<r&&!o;n++)o=this.isType(e,i[n]);return!!o&&i[n-1]},isType:function(e,t){var n=e.peek(),r=!1;return"<"!==t.charAt(0)?(r=this.isLiteral(n,t))&&e.next():this.simple[t]?(r=this.simple[t](n))&&e.next():r=this.complex[t]instanceof s?this.complex[t].match(e):this.complex[t](e),r},simple:{__proto__:null,"<absolute-size>":"xx-small | x-small | small | medium | large | x-large | xx-large","<animateable-feature>":"scroll-position | contents | <animateable-feature-name>","<animateable-feature-name>":function(e){return this["<ident>"](e)&&!/^(unset|initial|inherit|will-change|auto|scroll-position|contents)$/i.test(e)},"<angle>":function(e){return"angle"===e.type},"<attachment>":"scroll | fixed | local","<attr>":"attr()","<basic-shape>":"inset() | circle() | ellipse() | polygon()","<bg-image>":"<image> | <gradient> | none","<border-style>":"none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset","<border-width>":"<length> | thin | medium | thick","<box>":"padding-box | border-box | content-box","<clip-source>":"<uri>","<color>":function(e){return"color"===e.type||"transparent"===String(e)||"currentColor"===String(e)},"<color-svg>":function(e){return"color"===e.type},"<content>":"content()","<content-sizing>":"fill-available | -moz-available | -webkit-fill-available | max-content | -moz-max-content | -webkit-max-content | min-content | -moz-min-content | -webkit-min-content | fit-content | -moz-fit-content | -webkit-fit-content","<feature-tag-value>":function(e){return"function"===e.type&&/^[A-Z0-9]{4}$/i.test(e)},"<filter-function>":"blur() | brightness() | contrast() | custom() | drop-shadow() | grayscale() | hue-rotate() | invert() | opacity() | saturate() | sepia()","<flex-basis>":"<width>","<flex-direction>":"row | row-reverse | column | column-reverse","<flex-grow>":"<number>","<flex-shrink>":"<number>","<flex-wrap>":"nowrap | wrap | wrap-reverse","<font-size>":"<absolute-size> | <relative-size> | <length> | <percentage>","<font-stretch>":"normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded","<font-style>":"normal | italic | oblique","<font-variant-caps>":"small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps","<font-variant-css21>":"normal | small-caps","<font-weight>":"normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900","<generic-family>":"serif | sans-serif | cursive | fantasy | monospace","<geometry-box>":"<shape-box> | fill-box | stroke-box | view-box","<glyph-angle>":function(e){return"angle"===e.type&&"deg"===e.units},"<gradient>":function(e){return"function"===e.type&&/^(?:-(?:ms|moz|o|webkit)-)?(?:repeating-)?(?:radial-|linear-)?gradient/i.test(e)},"<icccolor>":"cielab() | cielch() | cielchab() | icc-color() | icc-named-color()","<ident>":function(e){return"identifier"===e.type||e.wasIdent},"<ident-not-generic-family>":function(e){return this["<ident>"](e)&&!this["<generic-family>"](e)},"<image>":"<uri>","<integer>":function(e){return"integer"===e.type},"<length>":function(e){return!("function"!==e.type||!/^(?:-(?:ms|moz|o|webkit)-)?calc/i.test(e))||"length"===e.type||"number"===e.type||"integer"===e.type||"0"===String(e)},"<line>":function(e){return"integer"===e.type},"<line-height>":"<number> | <length> | <percentage> | normal","<margin-width>":"<length> | <percentage> | auto","<miterlimit>":function(e){return this["<number>"](e)&&e.value>=1},"<nonnegative-length-or-percentage>":function(e){return(this["<length>"](e)||this["<percentage>"](e))&&("0"===String(e)||"function"===e.type||e.value>=0)},"<nonnegative-number-or-percentage>":function(e){return(this["<number>"](e)||this["<percentage>"](e))&&("0"===String(e)||"function"===e.type||e.value>=0)},"<number>":function(e){return"number"===e.type||this["<integer>"](e)},"<opacity-value>":function(e){return this["<number>"](e)&&e.value>=0&&e.value<=1},"<padding-width>":"<nonnegative-length-or-percentage>","<percentage>":function(e){return"percentage"===e.type||"0"===String(e)},"<relative-size>":"smaller | larger","<shape>":"rect() | inset-rect()","<shape-box>":"<box> | margin-box","<single-animation-direction>":"normal | reverse | alternate | alternate-reverse","<single-animation-name>":function(e){return this["<ident>"](e)&&/^-?[a-z_][-a-z0-9_]+$/i.test(e)&&!/^(none|unset|initial|inherit)$/i.test(e)},"<string>":function(e){return"string"===e.type},"<time>":function(e){return"time"===e.type},"<uri>":function(e){return"uri"===e.type},"<width>":"<margin-width>"},complex:{__proto__:null,"<azimuth>":"<angle> | [ [ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards","<bg-position>":"<position>#","<bg-size>":"[ <length> | <percentage> | auto ]{1,2} | cover | contain","<blend-mode>":"normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity","<border-image-slice>":s.many([!0],s.cast("<nonnegative-number-or-percentage>"),s.cast("<nonnegative-number-or-percentage>"),s.cast("<nonnegative-number-or-percentage>"),s.cast("<nonnegative-number-or-percentage>"),"fill"),"<border-radius>":"<nonnegative-length-or-percentage>{1,4} [ / <nonnegative-length-or-percentage>{1,4} ]?","<box-shadow>":"none | <shadow>#","<clip-path>":"<basic-shape> || <geometry-box>","<dasharray>":s.cast("<nonnegative-length-or-percentage>").braces(1,1/0,"#",s.cast(",").question()),"<family-name>":"<string> | <ident-not-generic-family> <ident>*","<filter-function-list>":"[ <filter-function> | <uri> ]+","<flex>":"none | [ <flex-grow> <flex-shrink>? || <flex-basis> ]","<font-family>":"[ <generic-family> | <family-name> ]#","<font-shorthand>":"[ <font-style> || <font-variant-css21> || <font-weight> || <font-stretch> ]? <font-size> [ / <line-height> ]? <font-family>","<font-variant-alternates>":"stylistic() || historical-forms || styleset() || character-variant() || swash() || ornaments() || annotation()","<font-variant-ligatures>":"[ common-ligatures | no-common-ligatures ] || [ discretionary-ligatures | no-discretionary-ligatures ] || [ historical-ligatures | no-historical-ligatures ] || [ contextual | no-contextual ]","<font-variant-numeric>":"[ lining-nums | oldstyle-nums ] || [ proportional-nums | tabular-nums ] || [ diagonal-fractions | stacked-fractions ] || ordinal || slashed-zero","<font-variant-east-asian>":"[ jis78 | jis83 | jis90 | jis04 | simplified | traditional ] || [ full-width | proportional-width ] || ruby","<paint>":"<paint-basic> | <uri> <paint-basic>?","<paint-basic>":"none | currentColor | <color-svg> <icccolor>?","<position>":"[ center | [ left | right ] [ <percentage> | <length> ]? ] && [ center | [ top | bottom ] [ <percentage> | <length> ]? ] | [ left | center | right | <percentage> | <length> ] [ top | center | bottom | <percentage> | <length> ] | [ left | center | right | top | bottom | <percentage> | <length> ]","<repeat-style>":"repeat-x | repeat-y | [ repeat | space | round | no-repeat ]{1,2}","<shadow>":s.many([!0],s.cast("<length>").braces(2,4),"inset","<color>"),"<text-decoration-color>":"<color>","<text-decoration-line>":"none | [ underline || overline || line-through || blink ]","<text-decoration-style>":"solid | double | dotted | dashed | wavy","<will-change>":"auto | <animateable-feature>#","<x-one-radius>":"[ <length> | <percentage> ]{1,2}"}},Object.keys(i).forEach((function(e){r[e]=i[e]})),Object.keys(o.simple).forEach((function(e){var t=o.simple[e];"string"==typeof t&&(o.simple[e]=function(e){return o.isLiteral(e,t)})})),Object.keys(o.complex).forEach((function(e){var t=o.complex[e];"string"==typeof t&&(o.complex[e]=s.parse(t))})),o.complex["<font-variant>"]=s.oror({expand:"<font-variant-ligatures>"},{expand:"<font-variant-alternates>"},"<font-variant-caps>",{expand:"<font-variant-numeric>"},{expand:"<font-variant-east-asian>"})},{"./Matcher":3}],22:[function(e,t,n){"use strict";t.exports={Colors:e("./Colors"),Combinator:e("./Combinator"),Parser:e("./Parser"),PropertyName:e("./PropertyName"),PropertyValue:e("./PropertyValue"),PropertyValuePart:e("./PropertyValuePart"),Matcher:e("./Matcher"),MediaFeature:e("./MediaFeature"),MediaQuery:e("./MediaQuery"),Selector:e("./Selector"),SelectorPart:e("./SelectorPart"),SelectorSubPart:e("./SelectorSubPart"),Specificity:e("./Specificity"),TokenStream:e("./TokenStream"),Tokens:e("./Tokens"),ValidationError:e("./ValidationError")}},{"./Colors":1,"./Combinator":2,"./Matcher":3,"./MediaFeature":4,"./MediaQuery":5,"./Parser":6,"./PropertyName":8,"./PropertyValue":9,"./PropertyValuePart":11,"./Selector":13,"./SelectorPart":14,"./SelectorSubPart":15,"./Specificity":16,"./TokenStream":17,"./Tokens":18,"./ValidationError":20}],23:[function(e,t,n){"use strict";function r(){this._listeners=Object.create(null)}t.exports=r,r.prototype={constructor:r,addListener:function(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)},fire:function(e){if("string"==typeof e&&(e={type:e}),void 0!==e.target&&(e.target=this),void 0===e.type)throw new Error("Event object missing 'type' property.");if(this._listeners[e.type])for(var t=this._listeners[e.type].concat(),n=0,r=t.length;n<r;n++)t[n].call(this,e)},removeListener:function(e,t){if(this._listeners[e])for(var n=this._listeners[e],r=0,i=n.length;r<i;r++)if(n[r]===t){n.splice(r,1);break}}}},{}],24:[function(e,t,n){"use strict";function r(e){this._input=e.replace(/(\r\n?|\n)/g,"\n"),this._line=1,this._col=1,this._cursor=0}t.exports=r,r.prototype={constructor:r,getCol:function(){return this._col},getLine:function(){return this._line},eof:function(){return this._cursor===this._input.length},peek:function(e){var t=null;return e=void 0===e?1:e,this._cursor<this._input.length&&(t=this._input.charAt(this._cursor+e-1)),t},read:function(){var e=null;return this._cursor<this._input.length&&("\n"===this._input.charAt(this._cursor)?(this._line++,this._col=1):this._col++,e=this._input.charAt(this._cursor++)),e},mark:function(){this._bookmark={cursor:this._cursor,line:this._line,col:this._col}},reset:function(){this._bookmark&&(this._cursor=this._bookmark.cursor,this._line=this._bookmark.line,this._col=this._bookmark.col,delete this._bookmark)},peekCount:function(e){return e=void 0===e?1:Math.max(e,0),this._input.substring(this._cursor,this._cursor+e)},readTo:function(e){for(var t,n="";n.length<e.length||n.lastIndexOf(e)!==n.length-e.length;){if(!(t=this.read()))throw new Error('Expected "'+e+'" at line '+this._line+", col "+this._col+".");n+=t}return n},readWhile:function(e){for(var t="",n=this.peek();null!==n&&e(n);)t+=this.read(),n=this.peek();return t},readMatch:function(e){var t=this._input.substring(this._cursor),n=null;return"string"==typeof e?t.slice(0,e.length)===e&&(n=this.readCount(e.length)):e instanceof RegExp&&e.test(t)&&(n=this.readCount(RegExp.lastMatch.length)),n},readCount:function(e){for(var t="";e--;)t+=this.read();return t}}},{}],25:[function(e,t,n){"use strict";function r(e,t,n){Error.call(this),this.name=this.constructor.name,this.col=n,this.line=t,this.message=e}t.exports=r,r.prototype=Object.create(Error.prototype),r.prototype.constructor=r},{}],26:[function(e,t,n){"use strict";function r(e,t,n,r){this.col=n,this.line=t,this.text=e,this.type=r}t.exports=r,r.fromToken=function(e){return new r(e.value,e.startLine,e.startCol)},r.prototype={constructor:r,valueOf:function(){return this.toString()},toString:function(){return this.text}}},{}],27:[function(e,t,n){"use strict";t.exports=o;var r=e("./StringReader"),i=e("./SyntaxError");function o(e,t){this._reader=new r(e?e.toString():""),this._token=null,this._tokenData=t,this._lt=[],this._ltIndex=0,this._ltIndexCache=[]}o.createTokenData=function(e){var t=[],n=Object.create(null),r=e.concat([]),i=0,o=r.length+1;for(r.UNKNOWN=-1,r.unshift({name:"EOF"});i<o;i++)t.push(r[i].name),r[r[i].name]=i,r[i].text&&(n[r[i].text]=i);return r.name=function(e){return t[e]},r.type=function(e){return n[e]},r},o.prototype={constructor:o,match:function(e,t){e instanceof Array||(e=[e]);for(var n=this.get(t),r=0,i=e.length;r<i;)if(n===e[r++])return!0;return this.unget(),!1},mustMatch:function(e){var t;if(e instanceof Array||(e=[e]),!this.match.apply(this,arguments))throw t=this.LT(1),new i("Expected "+this._tokenData[e[0]].name+" at line "+t.startLine+", col "+t.startCol+".",t.startLine,t.startCol)},advance:function(e,t){for(;0!==this.LA(0)&&!this.match(e,t);)this.get();return this.LA(0)},get:function(e){var t,n,r=this._tokenData,i=0;if(this._lt.length&&this._ltIndex>=0&&this._ltIndex<this._lt.length){for(i++,this._token=this._lt[this._ltIndex++],n=r[this._token.type];void 0!==n.channel&&e!==n.channel&&this._ltIndex<this._lt.length;)this._token=this._lt[this._ltIndex++],n=r[this._token.type],i++;if((void 0===n.channel||e===n.channel)&&this._ltIndex<=this._lt.length)return this._ltIndexCache.push(i),this._token.type}return(t=this._getToken()).type>-1&&!r[t.type].hide&&(t.channel=r[t.type].channel,this._token=t,this._lt.push(t),this._ltIndexCache.push(this._lt.length-this._ltIndex+i),this._lt.length>5&&this._lt.shift(),this._ltIndexCache.length>5&&this._ltIndexCache.shift(),this._ltIndex=this._lt.length),(n=r[t.type])&&(n.hide||void 0!==n.channel&&e!==n.channel)?this.get(e):t.type},LA:function(e){var t,n=e;if(e>0){if(e>5)throw new Error("Too much lookahead.");for(;n;)t=this.get(),n--;for(;n<e;)this.unget(),n++}else if(e<0){if(!this._lt[this._ltIndex+e])throw new Error("Too much lookbehind.");t=this._lt[this._ltIndex+e].type}else t=this._token.type;return t},LT:function(e){return this.LA(e),this._lt[this._ltIndex+e-1]},peek:function(){return this.LA(1)},token:function(){return this._token},tokenName:function(e){return e<0||e>this._tokenData.length?"UNKNOWN_TOKEN":this._tokenData[e].name},tokenType:function(e){return this._tokenData[e]||-1},unget:function(){if(!this._ltIndexCache.length)throw new Error("Too much lookahead.");this._ltIndex-=this._ltIndexCache.pop(),this._token=this._lt[this._ltIndex-1]}}},{"./StringReader":24,"./SyntaxError":25}],28:[function(e,t,n){"use strict";t.exports={StringReader:e("./StringReader"),SyntaxError:e("./SyntaxError"),SyntaxUnit:e("./SyntaxUnit"),EventTarget:e("./EventTarget"),TokenStreamBase:e("./TokenStreamBase")}},{"./EventTarget":23,"./StringReader":24,"./SyntaxError":25,"./SyntaxUnit":26,"./TokenStreamBase":27}],parserlib:[function(e,t,n){"use strict";t.exports={css:e("./css"),util:e("./util")}},{"./css":22,"./util":28}]},{},[]),e("parserlib")}(),n=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(e){t=function(){}}try{n=Set}catch(e){n=function(){}}try{r=Promise}catch(e){r=function(){}}function i(o,a,l,c,d){"object"==typeof a&&(l=a.depth,c=a.prototype,d=a.includeNonEnumerable,a=a.circular);var u=[],h=[],p="undefined"!=typeof Buffer;return void 0===a&&(a=!0),void 0===l&&(l=1/0),function o(l,f){if(null===l)return null;if(0===f)return l;var g,m;if("object"!=typeof l)return l;if(e(l,t))g=new t;else if(e(l,n))g=new n;else if(e(l,r))g=new r((function(e,t){l.then((function(t){e(o(t,f-1))}),(function(e){t(o(e,f-1))}))}));else if(i.__isArray(l))g=[];else if(i.__isRegExp(l))g=new RegExp(l.source,s(l)),l.lastIndex&&(g.lastIndex=l.lastIndex);else if(i.__isDate(l))g=new Date(l.getTime());else{if(p&&Buffer.isBuffer(l))return g=Buffer.allocUnsafe?Buffer.allocUnsafe(l.length):new Buffer(l.length),l.copy(g),g;e(l,Error)?g=Object.create(l):void 0===c?(m=Object.getPrototypeOf(l),g=Object.create(m)):(g=Object.create(c),m=c)}if(a){var b=u.indexOf(l);if(-1!=b)return h[b];u.push(l),h.push(g)}for(var v in e(l,t)&&l.forEach((function(e,t){var n=o(t,f-1),r=o(e,f-1);g.set(n,r)})),e(l,n)&&l.forEach((function(e){var t=o(e,f-1);g.add(t)})),l){var y;m&&(y=Object.getOwnPropertyDescriptor(m,v)),y&&null==y.set||(g[v]=o(l[v],f-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(l);for(v=0;v<w.length;v++){var x=w[v];(!(_=Object.getOwnPropertyDescriptor(l,x))||_.enumerable||d)&&(g[x]=o(l[x],f-1),_.enumerable||Object.defineProperty(g,x,{enumerable:!1}))}}if(d){var k=Object.getOwnPropertyNames(l);for(v=0;v<k.length;v++){var _,C=k[v];(_=Object.getOwnPropertyDescriptor(l,C))&&_.enumerable||(g[C]=o(l[C],f-1),Object.defineProperty(g,C,{enumerable:!1}))}}return g}(o,l)}function o(e){return Object.prototype.toString.call(e)}function s(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return i.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},i.__objToStr=o,i.__isDate=function(e){return"object"==typeof e&&"[object Date]"===o(e)},i.__isArray=function(e){return"object"==typeof e&&"[object Array]"===o(e)},i.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===o(e)},i.__getRegExpFlags=s,i}();"object"==typeof e&&e.exports&&(e.exports=n);var r=function(){"use strict";var e=[],o=[],s=/\/\*\s*csslint([^\*]*)\*\//,a=new t.util.EventTarget;return a.version="1.0.5",a.addRule=function(t){e.push(t),e[t.id]=t},a.clearRules=function(){e=[]},a.getRules=function(){return[].concat(e).sort((function(e,t){return e.id>t.id?1:0}))},a.getRuleset=function(){for(var t={},n=0,r=e.length;n<r;)t[e[n++].id]=1;return t},a.addFormatter=function(e){o[e.id]=e},a.getFormatter=function(e){return o[e]},a.format=function(e,t,n,r){var i=a.getFormatter(n),o=null;return i&&(o=i.startFormat(),o+=i.formatResults(e,t,r||{}),o+=i.endFormat()),o},a.hasFormat=function(e){return o.hasOwnProperty(e)},a.verify=function(o,l){var c,d,u,h=0,p={},f=[],g=new t.css.Parser({starHack:!0,ieFilters:!0,underscoreHack:!0,strict:!1});d=o.replace(/\n\r?/g,"$split$").split("$split$"),r.Util.forEach(d,(function(e,t){var n=e&&e.match(/\/\*[ \t]*csslint[ \t]+allow:[ \t]*([^\*]*)\*\//i),r=n&&n[1],i={};r&&(r.toLowerCase().split(",").forEach((function(e){i[e.trim()]=!0})),Object.keys(i).length>0&&(p[t+1]=i))}));var m=null,b=null;for(h in r.Util.forEach(d,(function(e,t){null===m&&e.match(/\/\*[ \t]*csslint[ \t]+ignore:start[ \t]*\*\//i)&&(m=t),e.match(/\/\*[ \t]*csslint[ \t]+ignore:end[ \t]*\*\//i)&&(b=t),null!==m&&null!==b&&(f.push([m,b]),m=b=null)})),null!==m&&f.push([m,d.length]),l||(l=a.getRuleset()),s.test(o)&&(l=function(e,t){var n,r=e&&e.match(s),i=r&&r[1];return i&&(n={true:2,"":1,false:0,2:2,1:1,0:0},i.toLowerCase().split(",").forEach((function(e){var r=e.split(":"),i=r[0]||"",o=r[1]||"";t[i.trim()]=n[o.trim()]}))),t}(o,l=n(l))),c=new i(d,l,p,f),l.errors=2,l)l.hasOwnProperty(h)&&l[h]&&e[h]&&e[h].init(g,c);try{g.parse(o)}catch(e){c.error("Fatal error, cannot continue: "+e.message,e.line,e.col,{})}return(u={messages:c.messages,stats:c.stats,ruleset:c.ruleset,allow:c.allow,ignore:c.ignore}).messages.sort((function(e,t){return e.rollup&&!t.rollup?1:!e.rollup&&t.rollup?-1:e.line-t.line})),u},a}();function i(e,t,n,r){"use strict";this.messages=[],this.stats=[],this.lines=e,this.ruleset=t,this.allow=n,this.allow||(this.allow={}),this.ignore=r,this.ignore||(this.ignore=[])}return i.prototype={constructor:i,error:function(e,t,n,r){"use strict";this.messages.push({type:"error",line:t,col:n,message:e,evidence:this.lines[t-1],rule:r||{}})},warn:function(e,t,n,r){"use strict";this.report(e,t,n,r)},report:function(e,t,n,r){"use strict";this.allow.hasOwnProperty(t)&&this.allow[t].hasOwnProperty(r.id)||this.isIgnored(t)||this.messages.push({type:2===this.ruleset[r.id]?"error":"warning",line:t,col:n,message:e,evidence:this.lines[t-1],rule:r})},info:function(e,t,n,r){"use strict";this.messages.push({type:"info",line:t,col:n,message:e,evidence:this.lines[t-1],rule:r})},rollupError:function(e,t){"use strict";this.messages.push({type:"error",rollup:!0,message:e,rule:t})},rollupWarn:function(e,t){"use strict";this.messages.push({type:"warning",rollup:!0,message:e,rule:t})},stat:function(e,t){"use strict";this.stats[e]=t},isIgnored:function(e){"use strict";var t=!1;return r.Util.forEach(this.ignore,(function(n){n[0]<=e&&e<=n[1]&&(t=!0)})),t}},r._Reporter=i,r.Util={mix:function(e,t){"use strict";var n;for(n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return n},indexOf:function(e,t){"use strict";if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t){"use strict";if(e.forEach)return e.forEach(t);for(var n=0,r=e.length;n<r;n++)t(e[n],n,e)}},r.addRule({id:"box-model",name:"Beware of broken box size",desc:"Don't use width or height when using padding or border.",url:"https://github.com/CSSLint/csslint/wiki/Beware-of-box-model-size",browsers:"All",init:function(e,t){"use strict";var n,r=this,i={border:1,"border-left":1,"border-right":1,padding:1,"padding-left":1,"padding-right":1},o={border:1,"border-bottom":1,"border-top":1,padding:1,"padding-bottom":1,"padding-top":1},s=!1;function a(){n={},s=!1}function l(){var e,a;if(!s){if(n.height)for(e in o)o.hasOwnProperty(e)&&n[e]&&(a=n[e].value,"padding"===e&&2===a.parts.length&&0===a.parts[0].value||t.report("Using height with "+e+" can sometimes make elements larger than you expect.",n[e].line,n[e].col,r));if(n.width)for(e in i)i.hasOwnProperty(e)&&n[e]&&(a=n[e].value,"padding"===e&&2===a.parts.length&&0===a.parts[1].value||t.report("Using width with "+e+" can sometimes make elements larger than you expect.",n[e].line,n[e].col,r))}}e.addListener("startrule",a),e.addListener("startfontface",a),e.addListener("startpage",a),e.addListener("startpagemargin",a),e.addListener("startkeyframerule",a),e.addListener("startviewport",a),e.addListener("property",(function(e){var t=e.property.text.toLowerCase();o[t]||i[t]?/^0\S*$/.test(e.value)||"border"===t&&"none"===e.value.toString()||(n[t]={line:e.property.line,col:e.property.col,value:e.value}):/^(width|height)/i.test(t)&&/^(length|percentage)/.test(e.value.parts[0].type)?n[t]=1:"box-sizing"===t&&(s=!0)})),e.addListener("endrule",l),e.addListener("endfontface",l),e.addListener("endpage",l),e.addListener("endpagemargin",l),e.addListener("endkeyframerule",l),e.addListener("endviewport",l)}}),r.addRule({id:"bulletproof-font-face",name:"Use the bulletproof @font-face syntax",desc:"Use the bulletproof @font-face syntax to avoid 404's in old IE (http://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax).",url:"https://github.com/CSSLint/csslint/wiki/Bulletproof-font-face",browsers:"All",init:function(e,t){"use strict";var n,r,i=this,o=!1,s=!0,a=!1;e.addListener("startfontface",(function(){o=!0})),e.addListener("property",(function(e){if(o){var t=e.property.toString().toLowerCase(),i=e.value.toString();if(n=e.line,r=e.col,"src"===t){var l=/^\s?url\(['"].+\.eot\?.*['"]\)\s*format\(['"]embedded-opentype['"]\).*$/i;!i.match(l)&&s?(a=!0,s=!1):i.match(l)&&!s&&(a=!1)}}})),e.addListener("endfontface",(function(){o=!1,a&&t.report("@font-face declaration doesn't follow the fontspring bulletproof syntax.",n,r,i)}))}}),r.addRule({id:"compatible-vendor-prefixes",name:"Require compatible vendor prefixes",desc:"Include all compatible vendor prefixes to reach a wider range of users.",url:"https://github.com/CSSLint/csslint/wiki/Require-compatible-vendor-prefixes",browsers:"All",init:function(e,t){"use strict";var n,i,o,s,a,l,c,d=this,u=!1,h=Array.prototype.push,p=[];for(o in n={animation:"webkit","animation-delay":"webkit","animation-direction":"webkit","animation-duration":"webkit","animation-fill-mode":"webkit","animation-iteration-count":"webkit","animation-name":"webkit","animation-play-state":"webkit","animation-timing-function":"webkit",appearance:"webkit moz","border-end":"webkit moz","border-end-color":"webkit moz","border-end-style":"webkit moz","border-end-width":"webkit moz","border-image":"webkit moz o","border-radius":"webkit","border-start":"webkit moz","border-start-color":"webkit moz","border-start-style":"webkit moz","border-start-width":"webkit moz","box-align":"webkit moz","box-direction":"webkit moz","box-flex":"webkit moz","box-lines":"webkit","box-ordinal-group":"webkit moz","box-orient":"webkit moz","box-pack":"webkit moz","box-sizing":"","box-shadow":"","column-count":"webkit moz ms","column-gap":"webkit moz ms","column-rule":"webkit moz ms","column-rule-color":"webkit moz ms","column-rule-style":"webkit moz ms","column-rule-width":"webkit moz ms","column-width":"webkit moz ms",flex:"webkit ms","flex-basis":"webkit","flex-direction":"webkit ms","flex-flow":"webkit","flex-grow":"webkit","flex-shrink":"webkit",hyphens:"epub moz","line-break":"webkit ms","margin-end":"webkit moz","margin-start":"webkit moz","marquee-speed":"webkit wap","marquee-style":"webkit wap","padding-end":"webkit moz","padding-start":"webkit moz","tab-size":"moz o","text-size-adjust":"webkit ms",transform:"webkit ms","transform-origin":"webkit ms",transition:"","transition-delay":"","transition-duration":"","transition-property":"","transition-timing-function":"","user-modify":"webkit moz","user-select":"webkit moz ms","word-break":"epub ms","writing-mode":"epub ms"})if(n.hasOwnProperty(o)){for(s=[],l=0,c=(a=n[o].split(" ")).length;l<c;l++)s.push("-"+a[l]+"-"+o);n[o]=s,h.apply(p,s)}e.addListener("startrule",(function(){i=[]})),e.addListener("startkeyframes",(function(e){u=e.prefix||!0})),e.addListener("endkeyframes",(function(){u=!1})),e.addListener("property",(function(e){var t=e.property;r.Util.indexOf(p,t.text)>-1&&(u&&"string"==typeof u&&0===t.text.indexOf("-"+u+"-")||i.push(t))})),e.addListener("endrule",(function(){if(i.length){var e,o,s,a,l,c,u,h,p,f,g={};for(e=0,o=i.length;e<o;e++)for(a in s=i[e],n)n.hasOwnProperty(a)&&(l=n[a],r.Util.indexOf(l,s.text)>-1&&(g[a]||(g[a]={full:l.slice(0),actual:[],actualNodes:[]}),-1===r.Util.indexOf(g[a].actual,s.text)&&(g[a].actual.push(s.text),g[a].actualNodes.push(s))));for(a in g)if(g.hasOwnProperty(a)&&(u=(c=g[a]).full,h=c.actual,u.length>h.length))for(e=0,o=u.length;e<o;e++)p=u[e],-1===r.Util.indexOf(h,p)&&(f=1===h.length?h[0]:2===h.length?h.join(" and "):h.join(", "),t.report("The property "+p+" is compatible with "+f+" and should be included as well.",c.actualNodes[0].line,c.actualNodes[0].col,d))}}))}}),r.addRule({id:"display-property-grouping",name:"Require properties appropriate for display",desc:"Certain properties shouldn't be used with certain display property values.",url:"https://github.com/CSSLint/csslint/wiki/Require-properties-appropriate-for-display",browsers:"All",init:function(e,t){"use strict";var n,r=this,i={display:1,float:"none",height:1,width:1,margin:1,"margin-left":1,"margin-right":1,"margin-bottom":1,"margin-top":1,padding:1,"padding-left":1,"padding-right":1,"padding-bottom":1,"padding-top":1,"vertical-align":1};function o(e,o,s){n[e]&&("string"==typeof i[e]&&n[e].value.toLowerCase()===i[e]||t.report(s||e+" can't be used with display: "+o+".",n[e].line,n[e].col,r))}function s(){n={}}function a(){var e=n.display?n.display.value:null;if(e)switch(e){case"inline":o("height",e),o("width",e),o("margin",e),o("margin-top",e),o("margin-bottom",e),o("float",e,"display:inline has no effect on floated elements (but may be used to fix the IE6 double-margin bug).");break;case"block":o("vertical-align",e);break;case"inline-block":o("float",e);break;default:0===e.indexOf("table-")&&(o("margin",e),o("margin-left",e),o("margin-right",e),o("margin-top",e),o("margin-bottom",e),o("float",e))}}e.addListener("startrule",s),e.addListener("startfontface",s),e.addListener("startkeyframerule",s),e.addListener("startpagemargin",s),e.addListener("startpage",s),e.addListener("startviewport",s),e.addListener("property",(function(e){var t=e.property.text.toLowerCase();i[t]&&(n[t]={value:e.value.text,line:e.property.line,col:e.property.col})})),e.addListener("endrule",a),e.addListener("endfontface",a),e.addListener("endkeyframerule",a),e.addListener("endpagemargin",a),e.addListener("endpage",a),e.addListener("endviewport",a)}}),r.addRule({id:"duplicate-background-images",name:"Disallow duplicate background images",desc:"Every background-image should be unique. Use a common class for e.g. sprites.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-duplicate-background-images",browsers:"All",init:function(e,t){"use strict";var n=this,r={};e.addListener("property",(function(e){var i,o,s=e.property.text,a=e.value;if(s.match(/background/i))for(i=0,o=a.parts.length;i<o;i++)"uri"===a.parts[i].type&&(void 0===r[a.parts[i].uri]?r[a.parts[i].uri]=e:t.report("Background image '"+a.parts[i].uri+"' was used multiple times, first declared at line "+r[a.parts[i].uri].line+", col "+r[a.parts[i].uri].col+".",e.line,e.col,n))}))}}),r.addRule({id:"duplicate-properties",name:"Disallow duplicate properties",desc:"Duplicate properties must appear one after the other.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-duplicate-properties",browsers:"All",init:function(e,t){"use strict";var n,r,i=this;function o(){n={}}e.addListener("startrule",o),e.addListener("startfontface",o),e.addListener("startpage",o),e.addListener("startpagemargin",o),e.addListener("startkeyframerule",o),e.addListener("startviewport",o),e.addListener("property",(function(e){var o=e.property.text.toLowerCase();!n[o]||r===o&&n[o]!==e.value.text||t.report("Duplicate property '"+e.property+"' found.",e.line,e.col,i),n[o]=e.value.text,r=o}))}}),r.addRule({id:"empty-rules",name:"Disallow empty rules",desc:"Rules without any properties specified should be removed.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-empty-rules",browsers:"All",init:function(e,t){"use strict";var n=this,r=0;e.addListener("startrule",(function(){r=0})),e.addListener("property",(function(){r++})),e.addListener("endrule",(function(e){var i=e.selectors;0===r&&t.report("Rule is empty.",i[0].line,i[0].col,n)}))}}),r.addRule({id:"errors",name:"Parsing Errors",desc:"This rule looks for recoverable syntax errors.",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("error",(function(e){t.error(e.message,e.line,e.col,n)}))}}),r.addRule({id:"floats",name:"Disallow too many floats",desc:"This rule tests if the float property is used too many times",url:"https://github.com/CSSLint/csslint/wiki/Disallow-too-many-floats",browsers:"All",init:function(e,t){"use strict";var n=this,r=0;e.addListener("property",(function(e){t.isIgnored(e.property.line)||"float"===e.property.text.toLowerCase()&&"none"!==e.value.text.toLowerCase()&&r++})),e.addListener("endstylesheet",(function(){t.stat("floats",r),r>=10&&t.rollupWarn("Too many floats ("+r+"), you're probably using them for layout. Consider using a grid system instead.",n)}))}}),r.addRule({id:"font-faces",name:"Don't use too many web fonts",desc:"Too many different web fonts in the same stylesheet.",url:"https://github.com/CSSLint/csslint/wiki/Don%27t-use-too-many-web-fonts",browsers:"All",init:function(e,t){"use strict";var n=this,r=0;e.addListener("startfontface",(function(e){t.isIgnored(e.line)||r++})),e.addListener("endstylesheet",(function(){r>5&&t.rollupWarn("Too many @font-face declarations ("+r+").",n)}))}}),r.addRule({id:"font-sizes",name:"Disallow too many font sizes",desc:"Checks the number of font-size declarations.",url:"https://github.com/CSSLint/csslint/wiki/Don%27t-use-too-many-font-size-declarations",browsers:"All",init:function(e,t){"use strict";var n=this,r=0;e.addListener("property",(function(e){t.isIgnored(e.property.line)||"font-size"===e.property.toString()&&r++})),e.addListener("endstylesheet",(function(){t.stat("font-sizes",r),r>=10&&t.rollupWarn("Too many font-size declarations ("+r+"), abstraction needed.",n)}))}}),r.addRule({id:"gradients",name:"Require all gradient definitions",desc:"When using a vendor-prefixed gradient, make sure to use them all.",url:"https://github.com/CSSLint/csslint/wiki/Require-all-gradient-definitions",browsers:"All",init:function(e,t){"use strict";var n,r=this;e.addListener("startrule",(function(){n={moz:0,webkit:0,oldWebkit:0,o:0}})),e.addListener("property",(function(e){/\-(moz|o|webkit)(?:\-(?:linear|radial))\-gradient/i.test(e.value)?n[RegExp.$1]=1:/\-webkit\-gradient/i.test(e.value)&&(n.oldWebkit=1)})),e.addListener("endrule",(function(e){var i=[];n.moz||i.push("Firefox 3.6+"),n.webkit||i.push("Webkit (Safari 5+, Chrome)"),n.oldWebkit||i.push("Old Webkit (Safari 4+, Chrome)"),n.o||i.push("Opera 11.1+"),i.length&&i.length<4&&t.report("Missing vendor-prefixed CSS gradients for "+i.join(", ")+".",e.selectors[0].line,e.selectors[0].col,r)}))}}),r.addRule({id:"ids",name:"Disallow IDs in selectors",desc:"Selectors should not contain IDs.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-IDs-in-selectors",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("startrule",(function(r){var i,o,s,a,l,c,d=r.selectors;for(a=0;a<d.length;a++){for(i=d[a],s=0,l=0;l<i.parts.length;l++)if((o=i.parts[l]).type===e.SELECTOR_PART_TYPE)for(c=0;c<o.modifiers.length;c++)"id"===o.modifiers[c].type&&s++;1===s?t.report("Don't use IDs in selectors.",i.line,i.col,n):s>1&&t.report(s+" IDs in the selector, really?",i.line,i.col,n)}}))}}),r.addRule({id:"import-ie-limit",name:"@import limit on IE6-IE9",desc:"IE6-9 supports up to 31 @import per stylesheet",browsers:"IE6, IE7, IE8, IE9",init:function(e,t){"use strict";var n=this,r=0;e.addListener("startpage",(function(){r=0})),e.addListener("import",(function(){r++})),e.addListener("endstylesheet",(function(){r>31&&t.rollupError("Too many @import rules ("+r+"). IE6-9 supports up to 31 import per stylesheet.",n)}))}}),r.addRule({id:"import",name:"Disallow @import",desc:"Don't use @import, use <link> instead.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-%40import",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("import",(function(e){t.report("@import prevents parallel downloads, use <link> instead.",e.line,e.col,n)}))}}),r.addRule({id:"important",name:"Disallow !important",desc:"Be careful when using !important declaration",url:"https://github.com/CSSLint/csslint/wiki/Disallow-%21important",browsers:"All",init:function(e,t){"use strict";var n=this,r=0;e.addListener("property",(function(e){t.isIgnored(e.line)||!0===e.important&&(r++,t.report("Use of !important",e.line,e.col,n))})),e.addListener("endstylesheet",(function(){t.stat("important",r),r>=10&&t.rollupWarn("Too many !important declarations ("+r+"), try to use less than 10 to avoid specificity issues.",n)}))}}),r.addRule({id:"known-properties",name:"Require use of known properties",desc:"Properties should be known (listed in CSS3 specification) or be a vendor-prefixed property.",url:"https://github.com/CSSLint/csslint/wiki/Require-use-of-known-properties",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("property",(function(e){e.invalid&&t.report(e.invalid.message,e.line,e.col,n)}))}}),r.addRule({id:"order-alphabetical",name:"Alphabetical order",desc:"Assure properties are in alphabetical order",browsers:"All",init:function(e,t){"use strict";var n,r=this,i=function(){n=[]},o=function(e){n.join(",")!==n.sort().join(",")&&t.report("Rule doesn't have all its properties in alphabetical order.",e.line,e.col,r)};e.addListener("startrule",i),e.addListener("startfontface",i),e.addListener("startpage",i),e.addListener("startpagemargin",i),e.addListener("startkeyframerule",i),e.addListener("startviewport",i),e.addListener("property",(function(e){var t=e.property.text.toLowerCase().replace(/^-.*?-/,"");n.push(t)})),e.addListener("endrule",o),e.addListener("endfontface",o),e.addListener("endpage",o),e.addListener("endpagemargin",o),e.addListener("endkeyframerule",o),e.addListener("endviewport",o)}}),r.addRule({id:"outline-none",name:"Disallow outline: none",desc:"Use of outline: none or outline: 0 should be limited to :focus rules.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-outline%3Anone",browsers:"All",tags:["Accessibility"],init:function(e,t){"use strict";var n,r=this;function i(e){n=e.selectors?{line:e.line,col:e.col,selectors:e.selectors,propCount:0,outline:!1}:null}function o(){n&&n.outline&&(-1===n.selectors.toString().toLowerCase().indexOf(":focus")?t.report("Outlines should only be modified using :focus.",n.line,n.col,r):1===n.propCount&&t.report("Outlines shouldn't be hidden unless other visual changes are made.",n.line,n.col,r))}e.addListener("startrule",i),e.addListener("startfontface",i),e.addListener("startpage",i),e.addListener("startpagemargin",i),e.addListener("startkeyframerule",i),e.addListener("startviewport",i),e.addListener("property",(function(e){var t=e.property.text.toLowerCase(),r=e.value;n&&(n.propCount++,"outline"!==t||"none"!==r.toString()&&"0"!==r.toString()||(n.outline=!0))})),e.addListener("endrule",o),e.addListener("endfontface",o),e.addListener("endpage",o),e.addListener("endpagemargin",o),e.addListener("endkeyframerule",o),e.addListener("endviewport",o)}}),r.addRule({id:"overqualified-elements",name:"Disallow overqualified elements",desc:"Don't use classes or IDs with elements (a.foo or a#foo).",url:"https://github.com/CSSLint/csslint/wiki/Disallow-overqualified-elements",browsers:"All",init:function(e,t){"use strict";var n=this,r={};e.addListener("startrule",(function(i){var o,s,a,l,c,d,u=i.selectors;for(l=0;l<u.length;l++)for(o=u[l],c=0;c<o.parts.length;c++)if((s=o.parts[c]).type===e.SELECTOR_PART_TYPE)for(d=0;d<s.modifiers.length;d++)a=s.modifiers[d],s.elementName&&"id"===a.type?t.report("Element ("+s+") is overqualified, just use "+a+" without element name.",s.line,s.col,n):"class"===a.type&&(r[a]||(r[a]=[]),r[a].push({modifier:a,part:s}))})),e.addListener("endstylesheet",(function(){var e;for(e in r)r.hasOwnProperty(e)&&1===r[e].length&&r[e][0].part.elementName&&t.report("Element ("+r[e][0].part+") is overqualified, just use "+r[e][0].modifier+" without element name.",r[e][0].part.line,r[e][0].part.col,n)}))}}),r.addRule({id:"regex-selectors",name:"Disallow selectors that look like regexs",desc:"Selectors that look like regular expressions are slow and should be avoided.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-selectors-that-look-like-regular-expressions",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("startrule",(function(r){var i,o,s,a,l,c,d=r.selectors;for(a=0;a<d.length;a++)for(i=d[a],l=0;l<i.parts.length;l++)if((o=i.parts[l]).type===e.SELECTOR_PART_TYPE)for(c=0;c<o.modifiers.length;c++)"attribute"===(s=o.modifiers[c]).type&&/([~\|\^\$\*]=)/.test(s)&&t.report("Attribute selectors with "+RegExp.$1+" are slow!",s.line,s.col,n)}))}}),r.addRule({id:"rules-count",name:"Rules Count",desc:"Track how many rules there are.",browsers:"All",init:function(e,t){"use strict";var n=0;e.addListener("startrule",(function(){n++})),e.addListener("endstylesheet",(function(){t.stat("rule-count",n)}))}}),r.addRule({id:"selector-max-approaching",name:"Warn when approaching the 4095 selector limit for IE",desc:"Will warn when selector count is >= 3800 selectors.",browsers:"IE",init:function(e,t){"use strict";var n=this,r=0;e.addListener("startrule",(function(e){r+=e.selectors.length})),e.addListener("endstylesheet",(function(){r>=3800&&t.report("You have "+r+" selectors. Internet Explorer supports a maximum of 4095 selectors per stylesheet. Consider refactoring.",0,0,n)}))}}),r.addRule({id:"selector-max",name:"Error when past the 4095 selector limit for IE",desc:"Will error when selector count is > 4095.",browsers:"IE",init:function(e,t){"use strict";var n=this,r=0;e.addListener("startrule",(function(e){r+=e.selectors.length})),e.addListener("endstylesheet",(function(){r>4095&&t.report("You have "+r+" selectors. Internet Explorer supports a maximum of 4095 selectors per stylesheet. Consider refactoring.",0,0,n)}))}}),r.addRule({id:"selector-newline",name:"Disallow new-line characters in selectors",desc:"New-line characters in selectors are usually a forgotten comma and not a descendant combinator.",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("startrule",(function(e){var r,i,o,s,a,l,c,d,u,h,p,f=e.selectors;for(r=0,i=f.length;r<i;r++)for(s=0,l=(o=f[r]).parts.length;s<l;s++)for(a=s+1;a<l;a++)c=o.parts[s],d=o.parts[a],u=c.type,h=c.line,p=d.line,"descendant"===u&&p>h&&t.report("newline character found in selector (forgot a comma?)",h,f[r].parts[0].col,n)}))}}),r.addRule({id:"shorthand",name:"Require shorthand properties",desc:"Use shorthand properties where possible.",url:"https://github.com/CSSLint/csslint/wiki/Require-shorthand-properties",browsers:"All",init:function(e,t){"use strict";var n,r,i,o,s=this,a={},l={margin:["margin-top","margin-bottom","margin-left","margin-right"],padding:["padding-top","padding-bottom","padding-left","padding-right"]};for(n in l)if(l.hasOwnProperty(n))for(r=0,i=l[n].length;r<i;r++)a[l[n][r]]=n;function c(){o={}}function d(e){var n,r,i,a;for(n in l)if(l.hasOwnProperty(n)){for(a=0,r=0,i=l[n].length;r<i;r++)a+=o[l[n][r]]?1:0;a===l[n].length&&t.report("The properties "+l[n].join(", ")+" can be replaced by "+n+".",e.line,e.col,s)}}e.addListener("startrule",c),e.addListener("startfontface",c),e.addListener("property",(function(e){var t=e.property.toString().toLowerCase();a[t]&&(o[t]=1)})),e.addListener("endrule",d),e.addListener("endfontface",d)}}),r.addRule({id:"star-property-hack",name:"Disallow properties with a star prefix",desc:"Checks for the star property hack (targets IE6/7)",url:"https://github.com/CSSLint/csslint/wiki/Disallow-star-hack",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("property",(function(e){"*"===e.property.hack&&t.report("Property with star prefix found.",e.property.line,e.property.col,n)}))}}),r.addRule({id:"text-indent",name:"Disallow negative text-indent",desc:"Checks for text indent less than -99px",url:"https://github.com/CSSLint/csslint/wiki/Disallow-negative-text-indent",browsers:"All",init:function(e,t){"use strict";var n,r,i=this;function o(){n=!1,r="inherit"}function s(){n&&"ltr"!==r&&t.report("Negative text-indent doesn't work well with RTL. If you use text-indent for image replacement explicitly set direction for that item to ltr.",n.line,n.col,i)}e.addListener("startrule",o),e.addListener("startfontface",o),e.addListener("property",(function(e){var t=e.property.toString().toLowerCase(),i=e.value;"text-indent"===t&&i.parts[0].value<-99?n=e.property:"direction"===t&&"ltr"===i.toString()&&(r="ltr")})),e.addListener("endrule",s),e.addListener("endfontface",s)}}),r.addRule({id:"underscore-property-hack",name:"Disallow properties with an underscore prefix",desc:"Checks for the underscore property hack (targets IE6)",url:"https://github.com/CSSLint/csslint/wiki/Disallow-underscore-hack",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("property",(function(e){"_"===e.property.hack&&t.report("Property with underscore prefix found.",e.property.line,e.property.col,n)}))}}),r.addRule({id:"universal-selector",name:"Disallow universal selector",desc:"The universal selector (*) is known to be slow.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-universal-selector",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("startrule",(function(e){var r,i,o,s=e.selectors;for(o=0;o<s.length;o++)"*"===(i=(r=s[o]).parts[r.parts.length-1]).elementName&&t.report(n.desc,i.line,i.col,n)}))}}),r.addRule({id:"unqualified-attributes",name:"Disallow unqualified attribute selectors",desc:"Unqualified attribute selectors are known to be slow.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-unqualified-attribute-selectors",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("startrule",(function(r){var i,o,s,a,l,c=r.selectors,d=!1;for(a=0;a<c.length;a++)if((o=(i=c[a]).parts[i.parts.length-1]).type===e.SELECTOR_PART_TYPE){for(l=0;l<o.modifiers.length;l++)if("class"===(s=o.modifiers[l]).type||"id"===s.type){d=!0;break}if(!d)for(l=0;l<o.modifiers.length;l++)"attribute"!==(s=o.modifiers[l]).type||o.elementName&&"*"!==o.elementName||t.report(n.desc,o.line,o.col,n)}}))}}),r.addRule({id:"vendor-prefix",name:"Require standard property with vendor prefix",desc:"When using a vendor-prefixed property, make sure to include the standard one.",url:"https://github.com/CSSLint/csslint/wiki/Require-standard-property-with-vendor-prefix",browsers:"All",init:function(e,t){"use strict";var n,r,i=this,o={"-webkit-border-radius":"border-radius","-webkit-border-top-left-radius":"border-top-left-radius","-webkit-border-top-right-radius":"border-top-right-radius","-webkit-border-bottom-left-radius":"border-bottom-left-radius","-webkit-border-bottom-right-radius":"border-bottom-right-radius","-o-border-radius":"border-radius","-o-border-top-left-radius":"border-top-left-radius","-o-border-top-right-radius":"border-top-right-radius","-o-border-bottom-left-radius":"border-bottom-left-radius","-o-border-bottom-right-radius":"border-bottom-right-radius","-moz-border-radius":"border-radius","-moz-border-radius-topleft":"border-top-left-radius","-moz-border-radius-topright":"border-top-right-radius","-moz-border-radius-bottomleft":"border-bottom-left-radius","-moz-border-radius-bottomright":"border-bottom-right-radius","-moz-column-count":"column-count","-webkit-column-count":"column-count","-moz-column-gap":"column-gap","-webkit-column-gap":"column-gap","-moz-column-rule":"column-rule","-webkit-column-rule":"column-rule","-moz-column-rule-style":"column-rule-style","-webkit-column-rule-style":"column-rule-style","-moz-column-rule-color":"column-rule-color","-webkit-column-rule-color":"column-rule-color","-moz-column-rule-width":"column-rule-width","-webkit-column-rule-width":"column-rule-width","-moz-column-width":"column-width","-webkit-column-width":"column-width","-webkit-column-span":"column-span","-webkit-columns":"columns","-moz-box-shadow":"box-shadow","-webkit-box-shadow":"box-shadow","-moz-transform":"transform","-webkit-transform":"transform","-o-transform":"transform","-ms-transform":"transform","-moz-transform-origin":"transform-origin","-webkit-transform-origin":"transform-origin","-o-transform-origin":"transform-origin","-ms-transform-origin":"transform-origin","-moz-box-sizing":"box-sizing","-webkit-box-sizing":"box-sizing"};function s(){n={},r=1}function a(){var e,r,s,a,l,c=[];for(e in n)o[e]&&c.push({actual:e,needed:o[e]});for(r=0,s=c.length;r<s;r++)a=c[r].needed,l=c[r].actual,n[a]?n[a][0].pos<n[l][0].pos&&t.report("Standard property '"+a+"' should come after vendor-prefixed property '"+l+"'.",n[l][0].name.line,n[l][0].name.col,i):t.report("Missing standard property '"+a+"' to go along with '"+l+"'.",n[l][0].name.line,n[l][0].name.col,i)}e.addListener("startrule",s),e.addListener("startfontface",s),e.addListener("startpage",s),e.addListener("startpagemargin",s),e.addListener("startkeyframerule",s),e.addListener("startviewport",s),e.addListener("property",(function(e){var t=e.property.text.toLowerCase();n[t]||(n[t]=[]),n[t].push({name:e.property,value:e.value,pos:r++})})),e.addListener("endrule",a),e.addListener("endfontface",a),e.addListener("endpage",a),e.addListener("endpagemargin",a),e.addListener("endkeyframerule",a),e.addListener("endviewport",a)}}),r.addRule({id:"zero-units",name:"Disallow units for 0 values",desc:"You don't need to specify units when a value is 0.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-units-for-zero-values",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("property",(function(e){for(var r=e.value.parts,i=0,o=r.length;i<o;)!r[i].units&&"percentage"!==r[i].type||0!==r[i].value||"time"===r[i].type||t.report("Values of 0 shouldn't have units specified.",r[i].line,r[i].col,n),i++}))}}),function(){"use strict";var e=function(e){return e&&e.constructor===String?e.replace(/["&><]/g,(function(e){switch(e){case'"':return""";case"&":return"&";case"<":return"<";case">":return">"}})):""};r.addFormatter({id:"checkstyle-xml",name:"Checkstyle XML format",startFormat:function(){return'<?xml version="1.0" encoding="utf-8"?><checkstyle>'},endFormat:function(){return"</checkstyle>"},readError:function(t,n){return'<file name="'+e(t)+'"><error line="0" column="0" severty="error" message="'+e(n)+'"></error></file>'},formatResults:function(t,n){var i=t.messages,o=[];return i.length>0&&(o.push('<file name="'+n+'">'),r.Util.forEach(i,(function(t){var n;t.rollup||o.push('<error line="'+t.line+'" column="'+t.col+'" severity="'+t.type+'" message="'+e(t.message)+'" source="'+((n=t.rule)&&"name"in n?"net.csslint."+n.name.replace(/\s/g,""):"")+'"/>')})),o.push("</file>")),o.join("")}})}(),r.addFormatter({id:"compact",name:"Compact, 'porcelain' format",startFormat:function(){"use strict";return""},endFormat:function(){"use strict";return""},formatResults:function(e,t,n){"use strict";var i=e.messages,o="";n=n||{};var s=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};return 0===i.length?n.quiet?"":t+": Lint Free!":(r.Util.forEach(i,(function(e){e.rollup?o+=t+": "+s(e.type)+" - "+e.message+" ("+e.rule.id+")\n":o+=t+": line "+e.line+", col "+e.col+", "+s(e.type)+" - "+e.message+" ("+e.rule.id+")\n"})),o)}}),r.addFormatter({id:"csslint-xml",name:"CSSLint XML format",startFormat:function(){"use strict";return'<?xml version="1.0" encoding="utf-8"?><csslint>'},endFormat:function(){"use strict";return"</csslint>"},formatResults:function(e,t){"use strict";var n=e.messages,i=[],o=function(e){return e&&e.constructor===String?e.replace(/"/g,"'").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"):""};return n.length>0&&(i.push('<file name="'+t+'">'),r.Util.forEach(n,(function(e){e.rollup?i.push('<issue severity="'+e.type+'" reason="'+o(e.message)+'" evidence="'+o(e.evidence)+'"/>'):i.push('<issue line="'+e.line+'" char="'+e.col+'" severity="'+e.type+'" reason="'+o(e.message)+'" evidence="'+o(e.evidence)+'"/>')})),i.push("</file>")),i.join("")}}),r.addFormatter({id:"json",name:"JSON",startFormat:function(){"use strict";return this.json=[],""},endFormat:function(){"use strict";var e="";return this.json.length>0&&(e=1===this.json.length?JSON.stringify(this.json[0]):JSON.stringify(this.json)),e},formatResults:function(e,t,n){"use strict";return(e.messages.length>0||!n.quiet)&&this.json.push({filename:t,messages:e.messages,stats:e.stats}),""}}),r.addFormatter({id:"junit-xml",name:"JUNIT XML format",startFormat:function(){"use strict";return'<?xml version="1.0" encoding="utf-8"?><testsuites>'},endFormat:function(){"use strict";return"</testsuites>"},formatResults:function(e,t){"use strict";var n=e.messages,r=[],i={error:0,failure:0},o=function(e){return e&&e.constructor===String?e.replace(/"/g,"'").replace(/</g,"<").replace(/>/g,">"):""};return n.length>0&&(n.forEach((function(e){var t,n="warning"===e.type?"error":e.type;e.rollup||(r.push('<testcase time="0" name="'+((t=e.rule)&&"name"in t?"net.csslint."+t.name.replace(/\s/g,""):"")+'">'),r.push("<"+n+' message="'+o(e.message)+'"><![CDATA['+e.line+":"+e.col+":"+o(e.evidence)+"]]></"+n+">"),r.push("</testcase>"),i[n]+=1)})),r.unshift('<testsuite time="0" tests="'+n.length+'" skipped="0" errors="'+i.error+'" failures="'+i.failure+'" package="net.csslint" name="'+t+'">'),r.push("</testsuite>")),r.join("")}}),r.addFormatter({id:"lint-xml",name:"Lint XML format",startFormat:function(){"use strict";return'<?xml version="1.0" encoding="utf-8"?><lint>'},endFormat:function(){"use strict";return"</lint>"},formatResults:function(e,t){"use strict";var n=e.messages,i=[],o=function(e){return e&&e.constructor===String?e.replace(/"/g,"'").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"):""};return n.length>0&&(i.push('<file name="'+t+'">'),r.Util.forEach(n,(function(e){if(e.rollup)i.push('<issue severity="'+e.type+'" reason="'+o(e.message)+'" evidence="'+o(e.evidence)+'"/>');else{var t="";e.rule&&e.rule.id&&(t='rule="'+o(e.rule.id)+'" '),i.push("<issue "+t+'line="'+e.line+'" char="'+e.col+'" severity="'+e.type+'" reason="'+o(e.message)+'" evidence="'+o(e.evidence)+'"/>')}})),i.push("</file>")),i.join("")}}),r.addFormatter({id:"text",name:"Plain Text",startFormat:function(){"use strict";return""},endFormat:function(){"use strict";return""},formatResults:function(e,t,n){"use strict";var i=e.messages,o="";if(n=n||{},0===i.length)return n.quiet?"":"\n\ncsslint: No errors in "+t+".";o="\n\ncsslint: There ",1===i.length?o+="is 1 problem":o+="are "+i.length+" problems",o+=" in "+t+".";var s=t.lastIndexOf("/"),a=t;return-1===s&&(s=t.lastIndexOf("\\")),s>-1&&(a=t.substring(s+1)),r.Util.forEach(i,(function(e,t){o=o+"\n\n"+a,e.rollup?(o+="\n"+(t+1)+": "+e.type,o+="\n"+e.message):(o+="\n"+(t+1)+": "+e.type+" at line "+e.line+", col "+e.col,o+="\n"+e.message,o+="\n"+e.evidence)})),o}}),r}();n.exports.CSSLint=r})),ace.define("ace/mode/css_worker",[],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/lang"),o=e("../worker/mirror").Mirror,s=e("./css/csslint").CSSLint,a=t.Worker=function(e){o.call(this,e),this.setTimeout(400),this.ruleset=null,this.setDisabledRules("ids|order-alphabetical"),this.setInfoRules("adjoining-classes|zero-units|gradients|box-model|import|outline-none|vendor-prefix")};r.inherits(a,o),function(){this.setInfoRules=function(e){"string"==typeof e&&(e=e.split("|")),this.infoRules=i.arrayToMap(e),this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.setDisabledRules=function(e){if(e){"string"==typeof e&&(e=e.split("|"));var t={};s.getRules().forEach((function(e){t[e.id]=!0})),e.forEach((function(e){delete t[e]})),this.ruleset=t}else this.ruleset=null;this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.onUpdate=function(){var e=this.doc.getValue();if(!e)return this.sender.emit("annotate",[]);var t=this.infoRules,n=s.verify(e,this.ruleset);this.sender.emit("annotate",n.messages.map((function(e){return{row:e.line-1,column:e.col-1,text:e.message,type:t[e.rule.id]?"info":e.type,rule:e.rule.name}})))}}.call(a.prototype)}))},9326(){!function(e){if(!(void 0!==e.window&&e.document||e.require&&e.define)){e.console||(e.console=function(){var e=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:e})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(e,t,n,r,i){postMessage({type:"error",data:{message:e,data:i&&i.data,file:t,line:n,col:r,stack:i&&i.stack}})},e.normalizeModule=function(t,n){if(-1!==n.indexOf("!")){var r=n.split("!");return e.normalizeModule(t,r[0])+"!"+e.normalizeModule(t,r[1])}if("."==n.charAt(0)){var i=t.split("/").slice(0,-1).join("/");for(n=(i?i+"/":"")+n;-1!==n.indexOf(".")&&o!=n;){var o=n;n=n.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return n},e.require=function(t,n){if(n||(n=t,t=null),!n.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");n=e.normalizeModule(t,n);var r=e.require.modules[n];if(r)return r.initialized||(r.initialized=!0,r.exports=r.factory().exports),r.exports;if(!e.require.tlns)return console.log("unable to load "+n);var i=function(e,t){for(var n=e,r="";n;){var i=t[n];if("string"==typeof i)return i+r;if(i)return i.location.replace(/\/*$/,"/")+(r||i.main||i.name);if(!1===i)return"";var o=n.lastIndexOf("/");if(-1===o)break;r=n.substr(o)+r,n=n.slice(0,o)}return e}(n,e.require.tlns);return".js"!=i.slice(-3)&&(i+=".js"),e.require.id=n,e.require.modules[n]={},importScripts(i),e.require(t,n)},e.require.modules={},e.require.tlns={},e.define=function(t,n,r){if(2==arguments.length?(r=n,"string"!=typeof t&&(n=t,t=e.require.id)):1==arguments.length&&(r=t,n=[],t=e.require.id),"function"==typeof r){n.length||(n=["require","exports","module"]);var i=function(n){return e.require(t,n)};e.require.modules[t]={exports:{},factory:function(){var e=this,t=r.apply(this,n.slice(0,r.length).map((function(t){switch(t){case"require":return i;case"exports":return e.exports;case"module":return e;default:return i(t)}})));return t&&(e.exports=t),e}}}else e.require.modules[t]={exports:r,initialized:!0}},e.define.amd={},e.require.tlns={},e.initBaseUrls=function(e){for(var t in e)this.require.tlns[t]=e[t]},e.initSender=function(){var t=e.require("ace/lib/event_emitter").EventEmitter,n=e.require("ace/lib/oop"),r=function(){};return function(){n.implement(this,t),this.callback=function(e,t){postMessage({type:"call",id:t,data:e})},this.emit=function(e,t){postMessage({type:"event",name:e,data:t})}}.call(r.prototype),new r};var t=e.main=null,n=e.sender=null;e.onmessage=function(r){var i=r.data;if(i.event&&n)n._signal(i.event,i.data);else if(i.command)if(t[i.command])t[i.command].apply(t,i.args);else{if(!e[i.command])throw new Error("Unknown command:"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),n=e.sender=e.initSender();var o=this.require(i.module)[i.classname];t=e.main=new o(n)}}}}(this),ace.define("ace/lib/oop",[],(function(e,t,n){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}})),ace.define("ace/lib/deep_copy",[],(function(e,t,n){t.deepCopy=function e(t){if("object"!=typeof t||!t)return t;var n;if(Array.isArray(t)){n=[];for(var r=0;r<t.length;r++)n[r]=e(t[r]);return n}if("[object Object]"!==Object.prototype.toString.call(t))return t;for(var r in n={},t)n[r]=e(t[r]);return n}})),ace.define("ace/lib/lang",[],(function(e,t,n){"use strict";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){for(var n="";t>0;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var r=/^\s\s*/,i=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(r,"")},t.stringTrimRight=function(e){return e.replace(i,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,r=e.length;n<r;n++)e[n]&&"object"==typeof e[n]?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=e("./deep_copy").deepCopy,t.arrayToMap=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return(""+e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,(function(e){n.push({offset:arguments[arguments.length-2],length:e.length})})),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},r=function(e){return r.cancel(),t=setTimeout(n,e||0),r};return r.schedule=r,r.call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},t.delayedCall=function(e,t){var n=null,r=function(){n=null,e()},i=function(e){null==n&&(n=setTimeout(r,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i},t.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch(e){return!1}return!0},t.skipEmptyMatch=function(e,t,n){return n&&e.codePointAt(t)>65535?2:1}})),ace.define("ace/apply_delta",[],(function(e,t,n){"use strict";t.applyDelta=function(e,t,n){var r=t.start.row,i=t.start.column,o=e[r]||"";switch(t.action){case"insert":if(1===t.lines.length)e[r]=o.substring(0,i)+t.lines[0]+o.substring(i);else{var s=[r,1].concat(t.lines);e.splice.apply(e,s),e[r]=o.substring(0,i)+e[r],e[r+t.lines.length-1]+=o.substring(i)}break;case"remove":var a=t.end.column,l=t.end.row;r===l?e[r]=o.substring(0,i)+o.substring(a):e.splice(r,l-r+1,o.substring(0,i)+e[l].substring(a))}}})),ace.define("ace/lib/event_emitter",[],(function(e,t,n){"use strict";var r={},i=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(n.length||r){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=o),n=n.slice();for(var s=0;s<n.length&&(n[s](t,this),!t.propagationStopped);s++);return r&&!t.defaultPrevented?r(t,this):void 0}},r._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(n){n=n.slice();for(var r=0;r<n.length;r++)n[r](t,this)}},r.once=function(e,t){var n=this;if(this.on(e,(function r(){n.off(e,r),t.apply(null,arguments)})),!t)return new Promise((function(e){t=e}))},r.setDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n||(n=this._defaultHandlers={_disabled_:{}}),n[e]){var r=n[e],i=n._disabled_[e];i||(n._disabled_[e]=i=[]),i.push(r);var o=i.indexOf(t);-1!=o&&i.splice(o,1)}n[e]=t},r.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n){var r=n._disabled_[e];if(n[e]==t)r&&this.setDefaultHandler(e,r.pop());else if(r){var i=r.indexOf(t);-1!=i&&r.splice(i,1)}}},r.on=r.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[e];return r||(r=this._eventRegistry[e]=[]),-1==r.indexOf(t)&&r[n?"unshift":"push"](t),t},r.off=r.removeListener=r.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(n){var r=n.indexOf(t);-1!==r&&n.splice(r,1)}},r.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[e]=void 0),this._defaultHandlers&&(this._defaultHandlers[e]=void 0)},t.EventEmitter=r})),ace.define("ace/range",[],(function(e,t,n){"use strict";var r=function(){function e(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}}return e.prototype.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},e.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},e.prototype.contains=function(e,t){return 0==this.compare(e,t)},e.prototype.compareRange=function(e){var t,n=e.end,r=e.start;return 1==(t=this.compare(n.row,n.column))?1==(t=this.compare(r.row,r.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(r.row,r.column))?-1:1==t?42:0},e.prototype.comparePoint=function(e){return this.compare(e.row,e.column)},e.prototype.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},e.prototype.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},e.prototype.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},e.prototype.isStart=function(e,t){return this.start.row==e&&this.start.column==t},e.prototype.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},e.prototype.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},e.prototype.inside=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)&&!this.isStart(e,t)},e.prototype.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},e.prototype.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},e.prototype.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:t<this.start.column?-1:t>this.end.column?1:0},e.prototype.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},e.prototype.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},e.prototype.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},e.prototype.clipRows=function(t,n){if(this.end.row>n)var r={row:n+1,column:0};else this.end.row<t&&(r={row:t,column:0});if(this.start.row>n)var i={row:n+1,column:0};else this.start.row<t&&(i={row:t,column:0});return e.fromPoints(i||this.start,r||this.end)},e.prototype.extend=function(t,n){var r=this.compare(t,n);if(0==r)return this;if(-1==r)var i={row:t,column:n};else var o={row:t,column:n};return e.fromPoints(i||this.start,o||this.end)},e.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},e.prototype.isMultiLine=function(){return this.start.row!==this.end.row},e.prototype.clone=function(){return e.fromPoints(this.start,this.end)},e.prototype.collapseRows=function(){return 0==this.end.column?new e(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new e(this.start.row,0,this.end.row,0)},e.prototype.toScreenRange=function(t){var n=t.documentToScreenPosition(this.start),r=t.documentToScreenPosition(this.end);return new e(n.row,n.column,r.row,r.column)},e.prototype.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t},e}();r.fromPoints=function(e,t){return new r(e.row,e.column,t.row,t.column)},r.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=r})),ace.define("ace/anchor",[],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,o=function(){function e(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),"number"!=typeof t?this.setPosition(t.row,t.column):this.setPosition(t,n)}return e.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},e.prototype.getDocument=function(){return this.document},e.prototype.onChange=function(e){if(!(e.start.row==e.end.row&&e.start.row!=this.row||e.start.row>this.row)){var t=function(e,t,n){var r="insert"==e.action,i=(r?1:-1)*(e.end.row-e.start.row),o=(r?1:-1)*(e.end.column-e.start.column),a=e.start,l=r?a:e.end;return s(t,a,n)?{row:t.row,column:t.column}:s(l,t,!n)?{row:t.row+i,column:t.column+(t.row==l.row?o:0)}:{row:a.row,column:a.column}}(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(t.row,t.column,!0)}},e.prototype.setPosition=function(e,t,n){var r;if(r=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=r.row||this.column!=r.column){var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:i,value:r})}},e.prototype.detach=function(){this.document.off("change",this.$onChange)},e.prototype.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},e.prototype.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n},e}();function s(e,t,n){var r=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&r}o.prototype.$insertRight=!1,r.implement(o.prototype,i),t.Anchor=o})),ace.define("ace/document",[],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,s=e("./range").Range,a=e("./anchor").Anchor,l=function(){function e(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)}return e.prototype.setValue=function(e){var t=this.getLength()-1;this.remove(new s(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e||"")},e.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},e.prototype.createAnchor=function(e,t){return new a(this,e,t)},e.prototype.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},e.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},e.prototype.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},e.prototype.getNewLineMode=function(){return this.$newLineMode},e.prototype.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},e.prototype.getLine=function(e){return this.$lines[e]||""},e.prototype.getLines=function(e,t){return this.$lines.slice(e,t+1)},e.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},e.prototype.getLength=function(){return this.$lines.length},e.prototype.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},e.prototype.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},e.prototype.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},e.prototype.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},e.prototype.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},e.prototype.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},e.prototype.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[t]},!0),this.clonePos(r)},e.prototype.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var r=this.getLine(e);return null==t&&(t=r.length),{row:e,column:t=Math.min(Math.max(t,0),r.length)}},e.prototype.clonePos=function(e){return{row:e.row,column:e.column}},e.prototype.pos=function(e,t){return{row:e,column:t}},e.prototype.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},e.prototype.insertFullLines=function(e,t){var n=0;(e=Math.min(Math.max(e,0),this.getLength()))<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},e.prototype.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(1==t.length?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:r,action:"insert",lines:t}),this.clonePos(r)},e.prototype.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:"remove",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},e.prototype.removeInLine=function(e,t,n){var r=this.clippedPos(e,t),i=this.clippedPos(e,n);return this.applyDelta({start:r,end:i,action:"remove",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},e.prototype.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1);var n=(t=Math.min(Math.max(0,t),this.getLength()-1))==this.getLength()-1&&e>0,r=t<this.getLength()-1,i=n?e-1:e,o=n?this.getLine(i).length:0,a=r?t+1:t,l=r?0:this.getLine(a).length,c=new s(i,o,a,l),d=this.$lines.slice(e,t+1);return this.applyDelta({start:c.start,end:c.end,action:"remove",lines:this.getLinesForRange(c)}),d},e.prototype.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},e.prototype.replace=function(e,t){return e instanceof s||(e=s.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},e.prototype.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},e.prototype.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},e.prototype.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!s.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal("change",e)))},e.prototype.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row<t&&e.end.row<t||"insert"==e.action&&e.start.row<=t)&&this.applyDelta(e)},e.prototype.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,r=n.length-t+1,i=e.start.row,o=e.start.column,s=0,a=0;s<r;s=a){a+=t-1;var l=n.slice(s,a);l.push(""),this.applyDelta({start:this.pos(i+s,o),end:this.pos(i+a,o=0),action:e.action,lines:l},!0)}e.lines=n.slice(s),e.start.row=i+s,e.start.column=o,this.applyDelta(e,!0)},e.prototype.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},e.prototype.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=t||0,o=n.length;i<o;i++)if((e-=n[i].length+r)<0)return{row:i,column:e+n[i].length+r};return{row:o-1,column:e+n[o-1].length+r}},e.prototype.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,o=Math.min(e.row,n.length),s=t||0;s<o;++s)i+=n[s].length+r;return i+e.column},e.prototype.$split=function(e){return e.split(/\r\n|\r|\n/)},e}();l.prototype.$autoNewLine="",l.prototype.$newLineMode="auto",r.implement(l.prototype,o),t.Document=l})),ace.define("ace/worker/mirror",[],(function(e,t,n){"use strict";var r=e("../document").Document,i=e("../lib/lang"),o=t.Mirror=function(e){this.sender=e;var t=this.doc=new r(""),n=this.deferredUpdate=i.delayedCall(this.onUpdate.bind(this)),o=this;e.on("change",(function(e){var r=e.data;if(r[0].start)t.applyDeltas(r);else for(var i=0;i<r.length;i+=2){var s,a;if(("insert"==(s=Array.isArray(r[i+1])?{action:"insert",start:r[i],lines:r[i+1]}:{action:"remove",start:r[i],end:r[i+1]}).action?s.start:s.end).row>=t.$lines.length)throw(a=new Error("Invalid delta")).data={path:o.$path,linesLength:t.$lines.length,start:s.start,end:s.end},a;t.applyDelta(s,!0)}if(o.$timeout)return n.schedule(o.$timeout);o.onUpdate()}))};(function(){this.$timeout=500,this.setTimeout=function(e){this.$timeout=e},this.setValue=function(e){this.doc.setValue(e),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(e){this.sender.callback(this.doc.getValue(),e)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)})),ace.define("ace/mode/html/saxparser",[],(function(e,t,n){n.exports=function t(n,r,i){function o(a,l){if(!r[a]){if(!n[a]){var c="function"==typeof e&&e;if(!l&&c)return c(a,!0);if(s)return s(a,!0);throw new Error("Cannot find module '"+a+"'")}var d=r[a]={exports:{}};n[a][0].call(d.exports,(function(e){return o(n[a][1][e]||e)}),d,d.exports,t,n,r,i)}return r[a].exports}for(var s="function"==typeof e&&e,a=0;a<i.length;a++)o(i[a]);return o}({1:[function(e,t,n){function r(e){return"http://www.w3.org/1999/xhtml"===e.namespaceURI?"applet"===e.localName||"caption"===e.localName||"marquee"===e.localName||"object"===e.localName||"table"===e.localName||"td"===e.localName||"th"===e.localName:"http://www.w3.org/1998/Math/MathML"===e.namespaceURI?"mi"===e.localName||"mo"===e.localName||"mn"===e.localName||"ms"===e.localName||"mtext"===e.localName||"annotation-xml"===e.localName:"http://www.w3.org/2000/svg"===e.namespaceURI?"foreignObject"===e.localName||"desc"===e.localName||"title"===e.localName:void 0}function i(e){return r(e)||"http://www.w3.org/1999/xhtml"===e.namespaceURI&&"ol"===e.localName||"http://www.w3.org/1999/xhtml"===e.namespaceURI&&"ul"===e.localName}function o(e){return"http://www.w3.org/1999/xhtml"===e.namespaceURI&&"table"===e.localName||"http://www.w3.org/1999/xhtml"===e.namespaceURI&&"html"===e.localName}function s(e){return r(e)||"http://www.w3.org/1999/xhtml"===e.namespaceURI&&"button"===e.localName}function a(e){return!("http://www.w3.org/1999/xhtml"===e.namespaceURI&&"optgroup"===e.localName||"http://www.w3.org/1999/xhtml"===e.namespaceURI&&"option"===e.localName)}function l(){this.elements=[],this.rootNode=null,this.headElement=null,this.bodyElement=null}l.prototype._inScope=function(e,t){for(var n=this.elements.length-1;n>=0;n--){var r=this.elements[n];if(r.localName===e)return!0;if(t(r))return!1}},l.prototype.push=function(e){this.elements.push(e)},l.prototype.pushHtmlElement=function(e){this.rootNode=e.node,this.push(e)},l.prototype.pushHeadElement=function(e){this.headElement=e.node,this.push(e)},l.prototype.pushBodyElement=function(e){this.bodyElement=e.node,this.push(e)},l.prototype.pop=function(){return this.elements.pop()},l.prototype.remove=function(e){this.elements.splice(this.elements.indexOf(e),1)},l.prototype.popUntilPopped=function(e){var t;do{t=this.pop()}while(t.localName!=e)},l.prototype.popUntilTableScopeMarker=function(){for(;!o(this.top);)this.pop()},l.prototype.popUntilTableBodyScopeMarker=function(){for(;!("http://www.w3.org/1999/xhtml"===(e=this.top).namespaceURI&&"tbody"===e.localName||"http://www.w3.org/1999/xhtml"===e.namespaceURI&&"tfoot"===e.localName||"http://www.w3.org/1999/xhtml"===e.namespaceURI&&"thead"===e.localName||"http://www.w3.org/1999/xhtml"===e.namespaceURI&&"html"===e.localName);)this.pop();var e},l.prototype.popUntilTableRowScopeMarker=function(){for(;!("http://www.w3.org/1999/xhtml"===(e=this.top).namespaceURI&&"tr"===e.localName||"http://www.w3.org/1999/xhtml"===e.namespaceURI&&"html"===e.localName);)this.pop();var e},l.prototype.item=function(e){return this.elements[e]},l.prototype.contains=function(e){return-1!==this.elements.indexOf(e)},l.prototype.inScope=function(e){return this._inScope(e,r)},l.prototype.inListItemScope=function(e){return this._inScope(e,i)},l.prototype.inTableScope=function(e){return this._inScope(e,o)},l.prototype.inButtonScope=function(e){return this._inScope(e,s)},l.prototype.inSelectScope=function(e){return this._inScope(e,a)},l.prototype.hasNumberedHeaderElementInScope=function(){for(var e=this.elements.length-1;e>=0;e--){var t=this.elements[e];if(t.isNumberedHeader())return!0;if(r(t))return!1}},l.prototype.furthestBlockForFormattingElement=function(e){for(var t=null,n=this.elements.length-1;n>=0;n--){var r=this.elements[n];if(r.node===e)break;r.isSpecial()&&(t=r)}return t},l.prototype.findIndex=function(e){for(var t=this.elements.length-1;t>=0;t--)if(this.elements[t].localName==e)return t;return-1},l.prototype.remove_openElements_until=function(e){for(var t,n=!1;!n;)n=e(t=this.elements.pop());return t},Object.defineProperty(l.prototype,"top",{get:function(){return this.elements[this.elements.length-1]}}),Object.defineProperty(l.prototype,"length",{get:function(){return this.elements.length}}),n.ElementStack=l},{}],2:[function(e,t,n){var r=e("html5-entities"),i=e("./InputStream").InputStream,o={};function s(e){return e>="0"&&e<="9"||e>="a"&&e<="f"||e>="A"&&e<="F"}function a(e){return e>="0"&&e<="9"}Object.keys(r).forEach((function(e){for(var t=0;t<e.length;t++)o[e.substring(0,t+1)]=!0}));var l={consumeEntity:function(e,t,n){var l,c="",d="",u=e.char();if(u===i.EOF)return!1;if(d+=u,"\t"==u||"\n"==u||"\v"==u||" "==u||"<"==u||"&"==u)return e.unget(d),!1;if(n===u)return e.unget(d),!1;if("#"==u){if((u=e.shift(1))===i.EOF)return t._parseError("expected-numeric-entity-but-got-eof"),e.unget(d),!1;d+=u;var h=10,p=a;if("x"==u||"X"==u){if(h=16,p=s,(u=e.shift(1))===i.EOF)return t._parseError("expected-numeric-entity-but-got-eof"),e.unget(d),!1;d+=u}if(p(u)){for(var f="";u!==i.EOF&&p(u);)f+=u,u=e.char();f=parseInt(f,h);var g=this.replaceEntityNumbers(f);if(g&&(t._parseError("invalid-numeric-entity-replaced"),f=g),f>65535&&f<=1114111){var m=55296+((1047552&(f-=65536))>>10),b=56320+(1023&f);c=String.fromCharCode(m,b)}else c=String.fromCharCode(f);return";"!==u&&(t._parseError("numeric-entity-without-semicolon"),e.unget(u)),c}return e.unget(d),t._parseError("expected-numeric-entity"),!1}if(u>="a"&&u<="z"||u>="A"&&u<="Z"){for(var v="";o[d]&&(r[d]&&(v=d),";"!=u)&&(u=e.char())!==i.EOF;)d+=u;return v?(c=r[v],";"!==u&&n&&((l=u)>="0"&&l<="9"||l>="a"&&l<="z"||l>="A"&&l<="Z"||"="===u)?(e.unget(d),!1):(d.length>v.length&&e.unget(d.substring(v.length)),";"!==u&&t._parseError("named-entity-without-semicolon"),c)):(t._parseError("expected-named-entity"),e.unget(d),!1)}},replaceEntityNumbers:function(e){switch(e){case 0:return 65533;case 19:return 16;case 128:return 8364;case 129:return 129;case 130:return 8218;case 131:return 402;case 132:return 8222;case 133:return 8230;case 134:return 8224;case 135:return 8225;case 136:return 710;case 137:return 8240;case 138:return 352;case 139:return 8249;case 140:return 338;case 141:return 141;case 142:return 381;case 143:return 143;case 144:return 144;case 145:return 8216;case 146:return 8217;case 147:return 8220;case 148:return 8221;case 149:return 8226;case 150:return 8211;case 151:return 8212;case 152:return 732;case 153:return 8482;case 154:return 353;case 155:return 8250;case 156:return 339;case 157:return 157;case 158:return 382;case 159:return 376;default:if(e>=55296&&e<=57343||e>1114111)return 65533;if(e>=1&&e<=8||e>=14&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||11==e||65534==e||131070==e||3145726==e||196607==e||262142==e||262143==e||327678==e||327679==e||393214==e||393215==e||458750==e||458751==e||524286==e||524287==e||589822==e||589823==e||655358==e||655359==e||720894==e||720895==e||786430==e||786431==e||851966==e||851967==e||917502==e||917503==e||983038==e||983039==e||1048574==e||1048575==e||1114110==e||1114111==e)return e}}};n.EntityParser=l},{"./InputStream":3,"html5-entities":12}],3:[function(e,t,n){function r(){this.data="",this.start=0,this.committed=0,this.eof=!1,this.lastLocation={line:0,column:0}}r.EOF=-1,r.DRAIN=-2,r.prototype={slice:function(){if(this.start>=this.data.length){if(!this.eof)throw r.DRAIN;return r.EOF}return this.data.slice(this.start,this.data.length)},char:function(){if(!this.eof&&this.start>=this.data.length-1)throw r.DRAIN;if(this.start>=this.data.length)return r.EOF;var e=this.data[this.start++];return"\r"===e&&(e="\n"),e},advance:function(e){if(this.start+=e,this.start>=this.data.length){if(!this.eof)throw r.DRAIN;return r.EOF}this.committed>this.data.length/2&&(this.lastLocation=this.location(),this.data=this.data.slice(this.committed),this.start=this.start-this.committed,this.committed=0)},matchWhile:function(e){if(this.eof&&this.start>=this.data.length)return"";var t=new RegExp("^"+e+"+").exec(this.slice());if(t){if(!this.eof&&t[0].length==this.data.length-this.start)throw r.DRAIN;return this.advance(t[0].length),t[0]}return""},matchUntil:function(e){var t,n;if((n=this.slice())===r.EOF)return"";if(t=new RegExp(e+(this.eof?"|$":"")).exec(n)){var i=this.data.slice(this.start,this.start+t.index);return this.advance(t.index),i.replace(/\r/g,"\n").replace(/\n{2,}/g,"\n")}throw r.DRAIN},append:function(e){this.data+=e},shift:function(e){if(!this.eof&&this.start+e>=this.data.length)throw r.DRAIN;if(this.eof&&this.start>=this.data.length)return r.EOF;var t=this.data.slice(this.start,this.start+e).toString();return this.advance(Math.min(e,this.data.length-this.start)),t},peek:function(e){if(!this.eof&&this.start+e>=this.data.length)throw r.DRAIN;return this.eof&&this.start>=this.data.length?r.EOF:this.data.slice(this.start,Math.min(this.start+e,this.data.length)).toString()},length:function(){return this.data.length-this.start-1},unget:function(e){e!==r.EOF&&(this.start-=e.length)},undo:function(){this.start=this.committed},commit:function(){this.committed=this.start},location:function(){var e=this.lastLocation.line,t=this.lastLocation.column,n=this.data.slice(0,this.committed),r=n.match(/\n/g);return{line:r?e+r.length:e,column:r?n.length-n.lastIndexOf("\n")-1:t+n.length}}},n.InputStream=r},{}],4:[function(e,t,n){var r={"http://www.w3.org/1999/xhtml":["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],"http://www.w3.org/1998/Math/MathML":["mi","mo","mn","ms","mtext","annotation-xml"],"http://www.w3.org/2000/svg":["foreignObject","desc","title"]};function i(e,t,n,r){this.localName=t,this.namespaceURI=e,this.attributes=n,this.node=r}i.prototype.isSpecial=function(){return this.namespaceURI in r&&r[this.namespaceURI].indexOf(this.localName)>-1},i.prototype.isFosterParenting=function(){return"http://www.w3.org/1999/xhtml"===this.namespaceURI&&("table"===this.localName||"tbody"===this.localName||"tfoot"===this.localName||"thead"===this.localName||"tr"===this.localName)},i.prototype.isNumberedHeader=function(){return"http://www.w3.org/1999/xhtml"===this.namespaceURI&&("h1"===this.localName||"h2"===this.localName||"h3"===this.localName||"h4"===this.localName||"h5"===this.localName||"h6"===this.localName)},i.prototype.isForeign=function(){return"http://www.w3.org/1999/xhtml"!=this.namespaceURI},i.prototype.isHtmlIntegrationPoint=function(){if("http://www.w3.org/1998/Math/MathML"===this.namespaceURI){if("annotation-xml"!==this.localName)return!1;var e=function(e){for(var t=0;t<e.attributes.length;t++)if("encoding"==e.attributes[t].nodeName)return e.attributes[t].nodeValue;return null}(this);return!!e&&("text/html"===(e=e.toLowerCase())||"application/xhtml+xml"===e)}return"http://www.w3.org/2000/svg"===this.namespaceURI&&("foreignObject"===this.localName||"desc"===this.localName||"title"===this.localName)},i.prototype.isMathMLTextIntegrationPoint=function(){return"http://www.w3.org/1998/Math/MathML"===this.namespaceURI&&("mi"===this.localName||"mo"===this.localName||"mn"===this.localName||"ms"===this.localName||"mtext"===this.localName)},n.StackItem=i},{}],5:[function(e,t,n){var r=e("./InputStream").InputStream,i=e("./EntityParser").EntityParser;function o(e){return" "===e||"\n"===e||"\t"===e||"\r"===e||"\f"===e}function s(e){return e>="A"&&e<="Z"||e>="a"&&e<="z"}function a(e){this._tokenHandler=e,this._state=a.DATA,this._inputStream=new r,this._currentToken=null,this._temporaryBuffer="",this._additionalAllowedCharacter=""}a.prototype._parseError=function(e,t){this._tokenHandler.parseError(e,t)},a.prototype._emitToken=function(e){if("StartTag"===e.type)for(var t=1;t<e.data.length;t++)e.data[t].nodeName||e.data.splice(t--,1);else"EndTag"===e.type&&(e.selfClosing&&this._parseError("self-closing-flag-on-end-tag"),0!==e.data.length&&this._parseError("attributes-in-end-tag"));this._tokenHandler.processToken(e),"StartTag"===e.type&&e.selfClosing&&!this._tokenHandler.isSelfClosingFlagAcknowledged()&&this._parseError("non-void-element-with-trailing-solidus",{name:e.name})},a.prototype._emitCurrentToken=function(){this._state=a.DATA,this._emitToken(this._currentToken)},a.prototype._currentAttribute=function(){return this._currentToken.data[this._currentToken.data.length-1]},a.prototype.setState=function(e){this._state=e},a.prototype.tokenize=function(e){a.DATA=n,a.RCDATA=c,a.RAWTEXT=u,a.SCRIPT_DATA=h,a.PLAINTEXT=function(e){var n=e.char();if(n===r.EOF)return t._emitToken({type:"EOF",data:null}),!1;if("\0"===n)t._parseError("invalid-codepoint"),t._emitToken({type:"Characters",data:"�"}),e.commit();else{var i=e.matchUntil("\0");t._emitToken({type:"Characters",data:n+i})}return!0},this._state=a.DATA,this._inputStream.append(e),this._tokenHandler.startTokenization(this),this._inputStream.eof=!0;for(var t=this;this._state.call(this,this._inputStream););function n(e){var n=e.char();if(n===r.EOF)return t._emitToken({type:"EOF",data:null}),!1;if("&"===n)t.setState(l);else if("<"===n)t.setState(O);else if("\0"===n)t._emitToken({type:"Characters",data:n}),e.commit();else{var i=e.matchUntil("&|<|\0");t._emitToken({type:"Characters",data:n+i}),e.commit()}return!0}function l(e){var r=i.consumeEntity(e,t);return t.setState(n),t._emitToken({type:"Characters",data:r||"&"}),!0}function c(e){var n=e.char();if(n===r.EOF)return t._emitToken({type:"EOF",data:null}),!1;if("&"===n)t.setState(d);else if("<"===n)t.setState(p);else if("\0"===n)t._parseError("invalid-codepoint"),t._emitToken({type:"Characters",data:"�"}),e.commit();else{var i=e.matchUntil("&|<|\0");t._emitToken({type:"Characters",data:n+i}),e.commit()}return!0}function d(e){var n=i.consumeEntity(e,t);return t.setState(c),t._emitToken({type:"Characters",data:n||"&"}),!0}function u(e){var n=e.char();if(n===r.EOF)return t._emitToken({type:"EOF",data:null}),!1;if("<"===n)t.setState(m);else if("\0"===n)t._parseError("invalid-codepoint"),t._emitToken({type:"Characters",data:"�"}),e.commit();else{var i=e.matchUntil("<|\0");t._emitToken({type:"Characters",data:n+i})}return!0}function h(e){var n=e.char();if(n===r.EOF)return t._emitToken({type:"EOF",data:null}),!1;if("<"===n)t.setState(y);else if("\0"===n)t._parseError("invalid-codepoint"),t._emitToken({type:"Characters",data:"�"}),e.commit();else{var i=e.matchUntil("<|\0");t._emitToken({type:"Characters",data:n+i})}return!0}function p(e){var n=e.char();return"/"===n?(this._temporaryBuffer="",t.setState(f)):(t._emitToken({type:"Characters",data:"<"}),e.unget(n),t.setState(c)),!0}function f(e){var n=e.char();return s(n)?(this._temporaryBuffer+=n,t.setState(g)):(t._emitToken({type:"Characters",data:"</"}),e.unget(n),t.setState(c)),!0}function g(e){var r=t._currentToken&&t._currentToken.name===this._temporaryBuffer.toLowerCase(),i=e.char();return o(i)&&r?(t._currentToken={type:"EndTag",name:this._temporaryBuffer,data:[],selfClosing:!1},t.setState(F)):"/"===i&&r?(t._currentToken={type:"EndTag",name:this._temporaryBuffer,data:[],selfClosing:!1},t.setState(Y)):">"===i&&r?(t._currentToken={type:"EndTag",name:this._temporaryBuffer,data:[],selfClosing:!1},t._emitCurrentToken(),t.setState(n)):s(i)?(this._temporaryBuffer+=i,e.commit()):(t._emitToken({type:"Characters",data:"</"+this._temporaryBuffer}),e.unget(i),t.setState(c)),!0}function m(e){var n=e.char();return"/"===n?(this._temporaryBuffer="",t.setState(b)):(t._emitToken({type:"Characters",data:"<"}),e.unget(n),t.setState(u)),!0}function b(e){var n=e.char();return s(n)?(this._temporaryBuffer+=n,t.setState(v)):(t._emitToken({type:"Characters",data:"</"}),e.unget(n),t.setState(u)),!0}function v(e){var r=t._currentToken&&t._currentToken.name===this._temporaryBuffer.toLowerCase(),i=e.char();return o(i)&&r?(t._currentToken={type:"EndTag",name:this._temporaryBuffer,data:[],selfClosing:!1},t.setState(F)):"/"===i&&r?(t._currentToken={type:"EndTag",name:this._temporaryBuffer,data:[],selfClosing:!1},t.setState(Y)):">"===i&&r?(t._currentToken={type:"EndTag",name:this._temporaryBuffer,data:[],selfClosing:!1},t._emitCurrentToken(),t.setState(n)):s(i)?(this._temporaryBuffer+=i,e.commit()):(t._emitToken({type:"Characters",data:"</"+this._temporaryBuffer}),e.unget(i),t.setState(u)),!0}function y(e){var n=e.char();return"/"===n?(this._temporaryBuffer="",t.setState(w)):"!"===n?(t._emitToken({type:"Characters",data:"<!"}),t.setState(k)):(t._emitToken({type:"Characters",data:"<"}),e.unget(n),t.setState(h)),!0}function w(e){var n=e.char();return s(n)?(this._temporaryBuffer+=n,t.setState(x)):(t._emitToken({type:"Characters",data:"</"}),e.unget(n),t.setState(h)),!0}function x(e){var n=t._currentToken&&t._currentToken.name===this._temporaryBuffer.toLowerCase(),r=e.char();return o(r)&&n?(t._currentToken={type:"EndTag",name:"script",data:[],selfClosing:!1},t.setState(F)):"/"===r&&n?(t._currentToken={type:"EndTag",name:"script",data:[],selfClosing:!1},t.setState(Y)):">"===r&&n?(t._currentToken={type:"EndTag",name:"script",data:[],selfClosing:!1},t._emitCurrentToken()):s(r)?(this._temporaryBuffer+=r,e.commit()):(t._emitToken({type:"Characters",data:"</"+this._temporaryBuffer}),e.unget(r),t.setState(h)),!0}function k(e){var n=e.char();return"-"===n?(t._emitToken({type:"Characters",data:"-"}),t.setState(_)):(e.unget(n),t.setState(h)),!0}function _(e){var n=e.char();return"-"===n?(t._emitToken({type:"Characters",data:"-"}),t.setState(S)):(e.unget(n),t.setState(h)),!0}function C(e){var i=e.char();if(i===r.EOF)e.unget(i),t.setState(n);else if("-"===i)t._emitToken({type:"Characters",data:"-"}),t.setState(T);else if("<"===i)t.setState(E);else if("\0"===i)t._parseError("invalid-codepoint"),t._emitToken({type:"Characters",data:"�"}),e.commit();else{var o=e.matchUntil("<|-|\0");t._emitToken({type:"Characters",data:i+o})}return!0}function T(e){var i=e.char();return i===r.EOF?(e.unget(i),t.setState(n)):"-"===i?(t._emitToken({type:"Characters",data:"-"}),t.setState(S)):"<"===i?t.setState(E):"\0"===i?(t._parseError("invalid-codepoint"),t._emitToken({type:"Characters",data:"�"}),t.setState(C)):(t._emitToken({type:"Characters",data:i}),t.setState(C)),!0}function S(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-script"),e.unget(i),t.setState(n)):"<"===i?t.setState(E):">"===i?(t._emitToken({type:"Characters",data:">"}),t.setState(h)):"\0"===i?(t._parseError("invalid-codepoint"),t._emitToken({type:"Characters",data:"�"}),t.setState(C)):(t._emitToken({type:"Characters",data:i}),t.setState(C)),!0}function E(e){var n=e.char();return"/"===n?(this._temporaryBuffer="",t.setState($)):s(n)?(t._emitToken({type:"Characters",data:"<"+n}),this._temporaryBuffer=n,t.setState(L)):(t._emitToken({type:"Characters",data:"<"}),e.unget(n),t.setState(C)),!0}function $(e){var n=e.char();return s(n)?(this._temporaryBuffer=n,t.setState(M)):(t._emitToken({type:"Characters",data:"</"}),e.unget(n),t.setState(C)),!0}function M(e){var r=t._currentToken&&t._currentToken.name===this._temporaryBuffer.toLowerCase(),i=e.char();return o(i)&&r?(t._currentToken={type:"EndTag",name:"script",data:[],selfClosing:!1},t.setState(F)):"/"===i&&r?(t._currentToken={type:"EndTag",name:"script",data:[],selfClosing:!1},t.setState(Y)):">"===i&&r?(t._currentToken={type:"EndTag",name:"script",data:[],selfClosing:!1},t.setState(n),t._emitCurrentToken()):s(i)?(this._temporaryBuffer+=i,e.commit()):(t._emitToken({type:"Characters",data:"</"+this._temporaryBuffer}),e.unget(i),t.setState(C)),!0}function L(e){var n=e.char();return o(n)||"/"===n||">"===n?(t._emitToken({type:"Characters",data:n}),"script"===this._temporaryBuffer.toLowerCase()?t.setState(A):t.setState(C)):s(n)?(t._emitToken({type:"Characters",data:n}),this._temporaryBuffer+=n,e.commit()):(e.unget(n),t.setState(C)),!0}function A(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-script"),e.unget(i),t.setState(n)):"-"===i?(t._emitToken({type:"Characters",data:"-"}),t.setState(R)):"<"===i?(t._emitToken({type:"Characters",data:"<"}),t.setState(j)):"\0"===i?(t._parseError("invalid-codepoint"),t._emitToken({type:"Characters",data:"�"}),e.commit()):(t._emitToken({type:"Characters",data:i}),e.commit()),!0}function R(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-script"),e.unget(i),t.setState(n)):"-"===i?(t._emitToken({type:"Characters",data:"-"}),t.setState(N)):"<"===i?(t._emitToken({type:"Characters",data:"<"}),t.setState(j)):"\0"===i?(t._parseError("invalid-codepoint"),t._emitToken({type:"Characters",data:"�"}),t.setState(A)):(t._emitToken({type:"Characters",data:i}),t.setState(A)),!0}function N(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-script"),e.unget(i),t.setState(n)):"-"===i?(t._emitToken({type:"Characters",data:"-"}),e.commit()):"<"===i?(t._emitToken({type:"Characters",data:"<"}),t.setState(j)):">"===i?(t._emitToken({type:"Characters",data:">"}),t.setState(h)):"\0"===i?(t._parseError("invalid-codepoint"),t._emitToken({type:"Characters",data:"�"}),t.setState(A)):(t._emitToken({type:"Characters",data:i}),t.setState(A)),!0}function j(e){var n=e.char();return"/"===n?(t._emitToken({type:"Characters",data:"/"}),this._temporaryBuffer="",t.setState(I)):(e.unget(n),t.setState(A)),!0}function I(e){var n=e.char();return o(n)||"/"===n||">"===n?(t._emitToken({type:"Characters",data:n}),"script"===this._temporaryBuffer.toLowerCase()?t.setState(C):t.setState(A)):s(n)?(t._emitToken({type:"Characters",data:n}),this._temporaryBuffer+=n,e.commit()):(e.unget(n),t.setState(A)),!0}function O(e){var i=e.char();return i===r.EOF?(t._parseError("bare-less-than-sign-at-eof"),t._emitToken({type:"Characters",data:"<"}),e.unget(i),t.setState(n)):s(i)?(t._currentToken={type:"StartTag",name:i.toLowerCase(),data:[]},t.setState(P)):"!"===i?t.setState(X):"/"===i?t.setState(D):">"===i?(t._parseError("expected-tag-name-but-got-right-bracket"),t._emitToken({type:"Characters",data:"<>"}),t.setState(n)):"?"===i?(t._parseError("expected-tag-name-but-got-question-mark"),e.unget(i),t.setState(K)):(t._parseError("expected-tag-name"),t._emitToken({type:"Characters",data:"<"}),e.unget(i),t.setState(n)),!0}function D(e){var i=e.char();return i===r.EOF?(t._parseError("expected-closing-tag-but-got-eof"),t._emitToken({type:"Characters",data:"</"}),e.unget(i),t.setState(n)):s(i)?(t._currentToken={type:"EndTag",name:i.toLowerCase(),data:[]},t.setState(P)):">"===i?(t._parseError("expected-closing-tag-but-got-right-bracket"),t.setState(n)):(t._parseError("expected-closing-tag-but-got-char",{data:i}),e.unget(i),t.setState(K)),!0}function P(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-tag-name"),e.unget(i),t.setState(n)):o(i)?t.setState(F):s(i)?t._currentToken.name+=i.toLowerCase():">"===i?t._emitCurrentToken():"/"===i?t.setState(Y):"\0"===i?(t._parseError("invalid-codepoint"),t._currentToken.name+="�"):t._currentToken.name+=i,e.commit(),!0}function F(e){var i=e.char();if(i===r.EOF)t._parseError("expected-attribute-name-but-got-eof"),e.unget(i),t.setState(n);else{if(o(i))return!0;s(i)?(t._currentToken.data.push({nodeName:i.toLowerCase(),nodeValue:""}),t.setState(z)):">"===i?t._emitCurrentToken():"/"===i?t.setState(Y):"'"===i||'"'===i||"="===i||"<"===i?(t._parseError("invalid-character-in-attribute-name"),t._currentToken.data.push({nodeName:i,nodeValue:""}),t.setState(z)):"\0"===i?(t._parseError("invalid-codepoint"),t._currentToken.data.push({nodeName:"�",nodeValue:""})):(t._currentToken.data.push({nodeName:i,nodeValue:""}),t.setState(z))}return!0}function z(e){var i=e.char(),a=!0,l=!1;if(i===r.EOF?(t._parseError("eof-in-attribute-name"),e.unget(i),t.setState(n),l=!0):"="===i?t.setState(H):s(i)?(t._currentAttribute().nodeName+=i.toLowerCase(),a=!1):">"===i?l=!0:o(i)?t.setState(B):"/"===i?t.setState(Y):"'"===i||'"'===i?(t._parseError("invalid-character-in-attribute-name"),t._currentAttribute().nodeName+=i,a=!1):"\0"===i?(t._parseError("invalid-codepoint"),t._currentAttribute().nodeName+="�"):(t._currentAttribute().nodeName+=i,a=!1),a){for(var c=t._currentToken.data,d=c[c.length-1],u=c.length-2;u>=0;u--)if(d.nodeName===c[u].nodeName){t._parseError("duplicate-attribute",{name:d.nodeName}),d.nodeName=null;break}l&&t._emitCurrentToken()}else e.commit();return!0}function B(e){var i=e.char();if(i===r.EOF)t._parseError("expected-end-of-tag-but-got-eof"),e.unget(i),t.setState(n);else{if(o(i))return!0;"="===i?t.setState(H):">"===i?t._emitCurrentToken():s(i)?(t._currentToken.data.push({nodeName:i,nodeValue:""}),t.setState(z)):"/"===i?t.setState(Y):"'"===i||'"'===i||"<"===i?(t._parseError("invalid-character-after-attribute-name"),t._currentToken.data.push({nodeName:i,nodeValue:""}),t.setState(z)):"\0"===i?(t._parseError("invalid-codepoint"),t._currentToken.data.push({nodeName:"�",nodeValue:""})):(t._currentToken.data.push({nodeName:i,nodeValue:""}),t.setState(z))}return!0}function H(e){var i=e.char();if(i===r.EOF)t._parseError("expected-attribute-value-but-got-eof"),e.unget(i),t.setState(n);else{if(o(i))return!0;'"'===i?t.setState(W):"&"===i?(t.setState(V),e.unget(i)):"'"===i?t.setState(U):">"===i?(t._parseError("expected-attribute-value-but-got-right-bracket"),t._emitCurrentToken()):"="===i||"<"===i||"`"===i?(t._parseError("unexpected-character-in-unquoted-attribute-value"),t._currentAttribute().nodeValue+=i,t.setState(V)):"\0"===i?(t._parseError("invalid-codepoint"),t._currentAttribute().nodeValue+="�"):(t._currentAttribute().nodeValue+=i,t.setState(V))}return!0}function W(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-attribute-value-double-quote"),e.unget(i),t.setState(n)):'"'===i?t.setState(G):"&"===i?(this._additionalAllowedCharacter='"',t.setState(q)):"\0"===i?(t._parseError("invalid-codepoint"),t._currentAttribute().nodeValue+="�"):(i+=e.matchUntil('[\0"&]'),t._currentAttribute().nodeValue+=i),!0}function U(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-attribute-value-single-quote"),e.unget(i),t.setState(n)):"'"===i?t.setState(G):"&"===i?(this._additionalAllowedCharacter="'",t.setState(q)):"\0"===i?(t._parseError("invalid-codepoint"),t._currentAttribute().nodeValue+="�"):t._currentAttribute().nodeValue+=i+e.matchUntil("\0|['&]"),!0}function V(e){var i=e.char();if(i===r.EOF)t._parseError("eof-after-attribute-value"),e.unget(i),t.setState(n);else if(o(i))t.setState(F);else if("&"===i)this._additionalAllowedCharacter=">",t.setState(q);else if(">"===i)t._emitCurrentToken();else if('"'===i||"'"===i||"="===i||"`"===i||"<"===i)t._parseError("unexpected-character-in-unquoted-attribute-value"),t._currentAttribute().nodeValue+=i,e.commit();else if("\0"===i)t._parseError("invalid-codepoint"),t._currentAttribute().nodeValue+="�";else{var s=e.matchUntil("\0|[\t\n\v\f \r&<>\"'=`]");s===r.EOF&&(t._parseError("eof-in-attribute-value-no-quotes"),t._emitCurrentToken()),e.commit(),t._currentAttribute().nodeValue+=i+s}return!0}function q(e){var n=i.consumeEntity(e,t,this._additionalAllowedCharacter);return this._currentAttribute().nodeValue+=n||"&",'"'===this._additionalAllowedCharacter?t.setState(W):"'"===this._additionalAllowedCharacter?t.setState(U):">"===this._additionalAllowedCharacter&&t.setState(V),!0}function G(e){var i=e.char();return i===r.EOF?(t._parseError("eof-after-attribute-value"),e.unget(i),t.setState(n)):o(i)?t.setState(F):">"===i?(t.setState(n),t._emitCurrentToken()):"/"===i?t.setState(Y):(t._parseError("unexpected-character-after-attribute-value"),e.unget(i),t.setState(F)),!0}function Y(e){var i=e.char();return i===r.EOF?(t._parseError("unexpected-eof-after-solidus-in-tag"),e.unget(i),t.setState(n)):">"===i?(t._currentToken.selfClosing=!0,t.setState(n),t._emitCurrentToken()):(t._parseError("unexpected-character-after-solidus-in-tag"),e.unget(i),t.setState(F)),!0}function K(e){var r=e.matchUntil(">");return r=r.replace(/\u0000/g,"�"),e.char(),t._emitToken({type:"Comment",data:r}),t.setState(n),!0}function X(e){var n=e.shift(2);if("--"===n)t._currentToken={type:"Comment",data:""},t.setState(Z);else{var i=e.shift(5);if(i===r.EOF||n===r.EOF)return t._parseError("expected-dashes-or-doctype"),t.setState(K),e.unget(n),!0;"DOCTYPE"===(n+=i).toUpperCase()?(t._currentToken={type:"Doctype",name:"",publicId:null,systemId:null,forceQuirks:!1},t.setState(ie)):t._tokenHandler.isCdataSectionAllowed()&&"[CDATA["===n?t.setState(Q):(t._parseError("expected-dashes-or-doctype"),e.unget(n),t.setState(K))}return!0}function Q(e){var r=e.matchUntil("]]>");return e.shift(3),r&&t._emitToken({type:"Characters",data:r}),t.setState(n),!0}function Z(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-comment"),t._emitToken(t._currentToken),e.unget(i),t.setState(n)):"-"===i?t.setState(J):">"===i?(t._parseError("incorrect-comment"),t._emitToken(t._currentToken),t.setState(n)):"\0"===i?(t._parseError("invalid-codepoint"),t._currentToken.data+="�"):(t._currentToken.data+=i,t.setState(ee)),!0}function J(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-comment"),t._emitToken(t._currentToken),e.unget(i),t.setState(n)):"-"===i?t.setState(ne):">"===i?(t._parseError("incorrect-comment"),t._emitToken(t._currentToken),t.setState(n)):"\0"===i?(t._parseError("invalid-codepoint"),t._currentToken.data+="�"):(t._currentToken.data+="-"+i,t.setState(ee)),!0}function ee(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-comment"),t._emitToken(t._currentToken),e.unget(i),t.setState(n)):"-"===i?t.setState(te):"\0"===i?(t._parseError("invalid-codepoint"),t._currentToken.data+="�"):(t._currentToken.data+=i,e.commit()),!0}function te(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-comment-end-dash"),t._emitToken(t._currentToken),e.unget(i),t.setState(n)):"-"===i?t.setState(ne):"\0"===i?(t._parseError("invalid-codepoint"),t._currentToken.data+="-�",t.setState(ee)):(t._currentToken.data+="-"+i+e.matchUntil("\0|-"),e.char()),!0}function ne(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-comment-double-dash"),t._emitToken(t._currentToken),e.unget(i),t.setState(n)):">"===i?(t._emitToken(t._currentToken),t.setState(n)):"!"===i?(t._parseError("unexpected-bang-after-double-dash-in-comment"),t.setState(re)):"-"===i?(t._parseError("unexpected-dash-after-double-dash-in-comment"),t._currentToken.data+=i):"\0"===i?(t._parseError("invalid-codepoint"),t._currentToken.data+="--�",t.setState(ee)):(t._parseError("unexpected-char-in-comment"),t._currentToken.data+="--"+i,t.setState(ee)),!0}function re(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-comment-end-bang-state"),t._emitToken(t._currentToken),e.unget(i),t.setState(n)):">"===i?(t._emitToken(t._currentToken),t.setState(n)):"-"===i?(t._currentToken.data+="--!",t.setState(te)):(t._currentToken.data+="--!"+i,t.setState(ee)),!0}function ie(e){var i=e.char();return i===r.EOF?(t._parseError("expected-doctype-name-but-got-eof"),t._currentToken.forceQuirks=!0,e.unget(i),t.setState(n),t._emitCurrentToken()):(o(i)||(t._parseError("need-space-after-doctype"),e.unget(i)),t.setState(oe)),!0}function oe(e){var i=e.char();return i===r.EOF?(t._parseError("expected-doctype-name-but-got-eof"),t._currentToken.forceQuirks=!0,e.unget(i),t.setState(n),t._emitCurrentToken()):o(i)||(">"===i?(t._parseError("expected-doctype-name-but-got-right-bracket"),t._currentToken.forceQuirks=!0,t.setState(n),t._emitCurrentToken()):(s(i)&&(i=i.toLowerCase()),t._currentToken.name=i,t.setState(se))),!0}function se(e){var i=e.char();return i===r.EOF?(t._currentToken.forceQuirks=!0,e.unget(i),t._parseError("eof-in-doctype-name"),t.setState(n),t._emitCurrentToken()):o(i)?t.setState(ae):">"===i?(t.setState(n),t._emitCurrentToken()):(s(i)&&(i=i.toLowerCase()),t._currentToken.name+=i,e.commit()),!0}function ae(e){var i=e.char();if(i===r.EOF)t._currentToken.forceQuirks=!0,e.unget(i),t._parseError("eof-in-doctype"),t.setState(n),t._emitCurrentToken();else if(o(i));else if(">"===i)t.setState(n),t._emitCurrentToken();else{if(["p","P"].indexOf(i)>-1){var s=[["u","U"],["b","B"],["l","L"],["i","I"],["c","C"]].every((function(t){return i=e.char(),t.indexOf(i)>-1}));if(s)return t.setState(le),!0}else if(["s","S"].indexOf(i)>-1&&(s=[["y","Y"],["s","S"],["t","T"],["e","E"],["m","M"]].every((function(t){return i=e.char(),t.indexOf(i)>-1}))))return t.setState(fe),!0;e.unget(i),t._currentToken.forceQuirks=!0,i===r.EOF?(t._parseError("eof-in-doctype"),e.unget(i),t.setState(n),t._emitCurrentToken()):(t._parseError("expected-space-or-right-bracket-in-doctype",{data:i}),t.setState(ye))}return!0}function le(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-doctype"),t._currentToken.forceQuirks=!0,e.unget(i),t.setState(n),t._emitCurrentToken()):o(i)?t.setState(ce):"'"===i||'"'===i?(t._parseError("unexpected-char-in-doctype"),e.unget(i),t.setState(ce)):(e.unget(i),t.setState(ce)),!0}function ce(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-doctype"),t._currentToken.forceQuirks=!0,e.unget(i),t.setState(n),t._emitCurrentToken()):o(i)||('"'===i?(t._currentToken.publicId="",t.setState(de)):"'"===i?(t._currentToken.publicId="",t.setState(ue)):">"===i?(t._parseError("unexpected-end-of-doctype"),t._currentToken.forceQuirks=!0,t.setState(n),t._emitCurrentToken()):(t._parseError("unexpected-char-in-doctype"),t._currentToken.forceQuirks=!0,t.setState(ye))),!0}function de(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-doctype"),t._currentToken.forceQuirks=!0,e.unget(i),t.setState(n),t._emitCurrentToken()):'"'===i?t.setState(he):">"===i?(t._parseError("unexpected-end-of-doctype"),t._currentToken.forceQuirks=!0,t.setState(n),t._emitCurrentToken()):t._currentToken.publicId+=i,!0}function ue(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-doctype"),t._currentToken.forceQuirks=!0,e.unget(i),t.setState(n),t._emitCurrentToken()):"'"===i?t.setState(he):">"===i?(t._parseError("unexpected-end-of-doctype"),t._currentToken.forceQuirks=!0,t.setState(n),t._emitCurrentToken()):t._currentToken.publicId+=i,!0}function he(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-doctype"),t._currentToken.forceQuirks=!0,t._emitCurrentToken(),e.unget(i),t.setState(n)):o(i)?t.setState(pe):">"===i?(t.setState(n),t._emitCurrentToken()):'"'===i?(t._parseError("unexpected-char-in-doctype"),t._currentToken.systemId="",t.setState(me)):"'"===i?(t._parseError("unexpected-char-in-doctype"),t._currentToken.systemId="",t.setState(be)):(t._parseError("unexpected-char-in-doctype"),t._currentToken.forceQuirks=!0,t.setState(ye)),!0}function pe(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-doctype"),t._currentToken.forceQuirks=!0,t._emitCurrentToken(),e.unget(i),t.setState(n)):o(i)||(">"===i?(t._emitCurrentToken(),t.setState(n)):'"'===i?(t._currentToken.systemId="",t.setState(me)):"'"===i?(t._currentToken.systemId="",t.setState(be)):(t._parseError("unexpected-char-in-doctype"),t._currentToken.forceQuirks=!0,t.setState(ye))),!0}function fe(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-doctype"),t._currentToken.forceQuirks=!0,t._emitCurrentToken(),e.unget(i),t.setState(n)):o(i)?t.setState(ge):"'"===i||'"'===i?(t._parseError("unexpected-char-in-doctype"),e.unget(i),t.setState(ge)):(e.unget(i),t.setState(ge)),!0}function ge(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-doctype"),t._currentToken.forceQuirks=!0,t._emitCurrentToken(),e.unget(i),t.setState(n)):o(i)||('"'===i?(t._currentToken.systemId="",t.setState(me)):"'"===i?(t._currentToken.systemId="",t.setState(be)):">"===i?(t._parseError("unexpected-end-of-doctype"),t._currentToken.forceQuirks=!0,t._emitCurrentToken(),t.setState(n)):(t._parseError("unexpected-char-in-doctype"),t._currentToken.forceQuirks=!0,t.setState(ye))),!0}function me(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-doctype"),t._currentToken.forceQuirks=!0,t._emitCurrentToken(),e.unget(i),t.setState(n)):'"'===i?t.setState(ve):">"===i?(t._parseError("unexpected-end-of-doctype"),t._currentToken.forceQuirks=!0,t._emitCurrentToken(),t.setState(n)):t._currentToken.systemId+=i,!0}function be(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-doctype"),t._currentToken.forceQuirks=!0,t._emitCurrentToken(),e.unget(i),t.setState(n)):"'"===i?t.setState(ve):">"===i?(t._parseError("unexpected-end-of-doctype"),t._currentToken.forceQuirks=!0,t._emitCurrentToken(),t.setState(n)):t._currentToken.systemId+=i,!0}function ve(e){var i=e.char();return i===r.EOF?(t._parseError("eof-in-doctype"),t._currentToken.forceQuirks=!0,t._emitCurrentToken(),e.unget(i),t.setState(n)):o(i)||(">"===i?(t._emitCurrentToken(),t.setState(n)):(t._parseError("unexpected-char-in-doctype"),t.setState(ye))),!0}function ye(e){var i=e.char();return i===r.EOF?(e.unget(i),t._emitCurrentToken(),t.setState(n)):">"===i&&(t._emitCurrentToken(),t.setState(n)),!0}},Object.defineProperty(a.prototype,"lineNumber",{get:function(){return this._inputStream.location().line}}),Object.defineProperty(a.prototype,"columnNumber",{get:function(){return this._inputStream.location().column}}),n.Tokenizer=a},{"./EntityParser":2,"./InputStream":3}],6:[function(e,t,n){var r=e("assert"),i=e("./messages.json"),o=e("./constants"),s=(e("events").EventEmitter,e("./Tokenizer").Tokenizer),a=e("./ElementStack").ElementStack,l=e("./StackItem").StackItem,c={};function d(e){return" "===e||"\n"===e||"\t"===e||"\r"===e||"\f"===e}function u(e){for(var t=0;t<e.length;t++)if(!d(e[t]))return!1;return!0}function h(e){for(var t=0;t<e.length;t++)if(!d(n=e[t])&&"�"!==n)return!1;var n;return!0}function p(e,t){for(var n=0;n<e.attributes.length;n++){var r=e.attributes[n];if(r.nodeName===t)return r}return null}function f(e){this.characters=e,this.current=0,this.end=this.characters.length}function g(){this.tokenizer=null,this.errorHandler=null,this.scriptingEnabled=!1,this.document=null,this.head=null,this.form=null,this.openElements=new a,this.activeFormattingElements=[],this.insertionMode=null,this.insertionModeName="",this.originalInsertionMode="",this.inQuirksMode=!1,this.compatMode="no quirks",this.framesetOk=!0,this.redirectAttachToFosterParent=!1,this.selfClosingFlagAcknowledged=!1,this.context="",this.pendingTableCharacters=[],this.shouldSkipLeadingNewline=!1;var e=this,t=this.insertionModes={};t.base={end_tag_handlers:{"-default":"endTagOther"},start_tag_handlers:{"-default":"startTagOther"},processEOF:function(){e.generateImpliedEndTags(),e.openElements.length>2||2==e.openElements.length&&"body"!=e.openElements.item(1).localName?e.parseError("expected-closing-tag-but-got-eof"):e.context&&e.openElements.length},processComment:function(t){e.insertComment(t,e.currentStackItem().node)},processDoctype:function(t,n,r,i){e.parseError("unexpected-doctype")},processStartTag:function(e,t,n){if(this[this.start_tag_handlers[e]])this[this.start_tag_handlers[e]](e,t,n);else{if(!this[this.start_tag_handlers["-default"]])throw new Error("No handler found for "+e);this[this.start_tag_handlers["-default"]](e,t,n)}},processEndTag:function(e){if(this[this.end_tag_handlers[e]])this[this.end_tag_handlers[e]](e);else{if(!this[this.end_tag_handlers["-default"]])throw new Error("No handler found for "+e);this[this.end_tag_handlers["-default"]](e)}},startTagHtml:function(e,n){t.inBody.startTagHtml(e,n)}},t.initial=Object.create(t.base),t.initial.processEOF=function(){e.parseError("expected-doctype-but-got-eof"),this.anythingElse(),e.insertionMode.processEOF()},t.initial.processComment=function(t){e.insertComment(t,e.document)},t.initial.processDoctype=function(t,n,r,i){function o(e){return 0===n.toLowerCase().indexOf(e)}e.insertDoctype(t||"",n||"",r||""),i||"html"!=t||null!=n&&(["+//silmaril//dtd html pro v0r11 19970101//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//as//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html strict//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//ietf//dtd html//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//spyglass//dtd html 2.0 extended//","-//sq//dtd html 2.0 hotmetal + extensions//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//","html"].some(o)||["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"].indexOf(n.toLowerCase())>-1||null==r&&["-//w3c//dtd html 4.01 transitional//","-//w3c//dtd html 4.01 frameset//"].some(o))||null!=r&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"==r.toLowerCase()?(e.compatMode="quirks",e.parseError("quirky-doctype")):null!=n&&(["-//w3c//dtd xhtml 1.0 transitional//","-//w3c//dtd xhtml 1.0 frameset//"].some(o)||null!=r&&["-//w3c//dtd html 4.01 transitional//","-//w3c//dtd html 4.01 frameset//"].indexOf(n.toLowerCase())>-1)?(e.compatMode="limited quirks",e.parseError("almost-standards-doctype")):"-//W3C//DTD HTML 4.0//EN"==n&&(null==r||"http://www.w3.org/TR/REC-html40/strict.dtd"==r)||"-//W3C//DTD HTML 4.01//EN"==n&&(null==r||"http://www.w3.org/TR/html4/strict.dtd"==r)||"-//W3C//DTD XHTML 1.0 Strict//EN"==n&&"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"==r||"-//W3C//DTD XHTML 1.1//EN"==n&&"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"==r||(null!=r&&"about:legacy-compat"!=r||null!=n)&&e.parseError("unknown-doctype"),e.setInsertionMode("beforeHTML")},t.initial.processCharacters=function(t){t.skipLeadingWhitespace(),t.length&&(e.parseError("expected-doctype-but-got-chars"),this.anythingElse(),e.insertionMode.processCharacters(t))},t.initial.processStartTag=function(t,n,r){e.parseError("expected-doctype-but-got-start-tag",{name:t}),this.anythingElse(),e.insertionMode.processStartTag(t,n,r)},t.initial.processEndTag=function(t){e.parseError("expected-doctype-but-got-end-tag",{name:t}),this.anythingElse(),e.insertionMode.processEndTag(t)},t.initial.anythingElse=function(){e.compatMode="quirks",e.setInsertionMode("beforeHTML")},t.beforeHTML=Object.create(t.base),t.beforeHTML.start_tag_handlers={html:"startTagHtml","-default":"startTagOther"},t.beforeHTML.processEOF=function(){this.anythingElse(),e.insertionMode.processEOF()},t.beforeHTML.processComment=function(t){e.insertComment(t,e.document)},t.beforeHTML.processCharacters=function(t){t.skipLeadingWhitespace(),t.length&&(this.anythingElse(),e.insertionMode.processCharacters(t))},t.beforeHTML.startTagHtml=function(t,n,r){e.insertHtmlElement(n),e.setInsertionMode("beforeHead")},t.beforeHTML.startTagOther=function(t,n,r){this.anythingElse(),e.insertionMode.processStartTag(t,n,r)},t.beforeHTML.processEndTag=function(t){this.anythingElse(),e.insertionMode.processEndTag(t)},t.beforeHTML.anythingElse=function(){e.insertHtmlElement(),e.setInsertionMode("beforeHead")},t.afterAfterBody=Object.create(t.base),t.afterAfterBody.start_tag_handlers={html:"startTagHtml","-default":"startTagOther"},t.afterAfterBody.processComment=function(t){e.insertComment(t,e.document)},t.afterAfterBody.processDoctype=function(e){t.inBody.processDoctype(e)},t.afterAfterBody.startTagHtml=function(e,n){t.inBody.startTagHtml(e,n)},t.afterAfterBody.startTagOther=function(t,n,r){e.parseError("unexpected-start-tag",{name:t}),e.setInsertionMode("inBody"),e.insertionMode.processStartTag(t,n,r)},t.afterAfterBody.endTagOther=function(t){e.parseError("unexpected-end-tag",{name:t}),e.setInsertionMode("inBody"),e.insertionMode.processEndTag(t)},t.afterAfterBody.processCharacters=function(n){if(!u(n.characters))return e.parseError("unexpected-char-after-body"),e.setInsertionMode("inBody"),e.insertionMode.processCharacters(n);t.inBody.processCharacters(n)},t.afterBody=Object.create(t.base),t.afterBody.end_tag_handlers={html:"endTagHtml","-default":"endTagOther"},t.afterBody.processComment=function(t){e.insertComment(t,e.openElements.rootNode)},t.afterBody.processCharacters=function(n){if(!u(n.characters))return e.parseError("unexpected-char-after-body"),e.setInsertionMode("inBody"),e.insertionMode.processCharacters(n);t.inBody.processCharacters(n)},t.afterBody.processStartTag=function(t,n,r){e.parseError("unexpected-start-tag-after-body",{name:t}),e.setInsertionMode("inBody"),e.insertionMode.processStartTag(t,n,r)},t.afterBody.endTagHtml=function(t){e.context?e.parseError("end-html-in-innerhtml"):e.setInsertionMode("afterAfterBody")},t.afterBody.endTagOther=function(t){e.parseError("unexpected-end-tag-after-body",{name:t}),e.setInsertionMode("inBody"),e.insertionMode.processEndTag(t)},t.afterFrameset=Object.create(t.base),t.afterFrameset.start_tag_handlers={html:"startTagHtml",noframes:"startTagNoframes","-default":"startTagOther"},t.afterFrameset.end_tag_handlers={html:"endTagHtml","-default":"endTagOther"},t.afterFrameset.processCharacters=function(t){for(var n=t.takeRemaining(),r="",i=0;i<n.length;i++){var o=n[i];d(o)&&(r+=o)}r&&e.insertText(r),r.length<n.length&&e.parseError("expected-eof-but-got-char")},t.afterFrameset.startTagNoframes=function(e,n){t.inHead.processStartTag(e,n)},t.afterFrameset.startTagOther=function(t,n){e.parseError("unexpected-start-tag-after-frameset",{name:t})},t.afterFrameset.endTagHtml=function(t){e.setInsertionMode("afterAfterFrameset")},t.afterFrameset.endTagOther=function(t){e.parseError("unexpected-end-tag-after-frameset",{name:t})},t.beforeHead=Object.create(t.base),t.beforeHead.start_tag_handlers={html:"startTagHtml",head:"startTagHead","-default":"startTagOther"},t.beforeHead.end_tag_handlers={html:"endTagImplyHead",head:"endTagImplyHead",body:"endTagImplyHead",br:"endTagImplyHead","-default":"endTagOther"},t.beforeHead.processEOF=function(){this.startTagHead("head",[]),e.insertionMode.processEOF()},t.beforeHead.processCharacters=function(t){t.skipLeadingWhitespace(),t.length&&(this.startTagHead("head",[]),e.insertionMode.processCharacters(t))},t.beforeHead.startTagHead=function(t,n){e.insertHeadElement(n),e.setInsertionMode("inHead")},t.beforeHead.startTagOther=function(t,n,r){this.startTagHead("head",[]),e.insertionMode.processStartTag(t,n,r)},t.beforeHead.endTagImplyHead=function(t){this.startTagHead("head",[]),e.insertionMode.processEndTag(t)},t.beforeHead.endTagOther=function(t){e.parseError("end-tag-after-implied-root",{name:t})},t.inHead=Object.create(t.base),t.inHead.start_tag_handlers={html:"startTagHtml",head:"startTagHead",title:"startTagTitle",script:"startTagScript",style:"startTagNoFramesStyle",noscript:"startTagNoScript",noframes:"startTagNoFramesStyle",base:"startTagBaseBasefontBgsoundLink",basefont:"startTagBaseBasefontBgsoundLink",bgsound:"startTagBaseBasefontBgsoundLink",link:"startTagBaseBasefontBgsoundLink",meta:"startTagMeta","-default":"startTagOther"},t.inHead.end_tag_handlers={head:"endTagHead",html:"endTagHtmlBodyBr",body:"endTagHtmlBodyBr",br:"endTagHtmlBodyBr","-default":"endTagOther"},t.inHead.processEOF=function(){var t=e.currentStackItem().localName;-1!=["title","style","script"].indexOf(t)&&(e.parseError("expected-named-closing-tag-but-got-eof",{name:t}),e.popElement()),this.anythingElse(),e.insertionMode.processEOF()},t.inHead.processCharacters=function(t){var n=t.takeLeadingWhitespace();n&&e.insertText(n),t.length&&(this.anythingElse(),e.insertionMode.processCharacters(t))},t.inHead.startTagHtml=function(e,n){t.inBody.processStartTag(e,n)},t.inHead.startTagHead=function(t,n){e.parseError("two-heads-are-not-better-than-one")},t.inHead.startTagTitle=function(t,n){e.processGenericRCDATAStartTag(t,n)},t.inHead.startTagNoScript=function(t,n){if(e.scriptingEnabled)return e.processGenericRawTextStartTag(t,n);e.insertElement(t,n),e.setInsertionMode("inHeadNoscript")},t.inHead.startTagNoFramesStyle=function(t,n){e.processGenericRawTextStartTag(t,n)},t.inHead.startTagScript=function(t,n){e.insertElement(t,n),e.tokenizer.setState(s.SCRIPT_DATA),e.originalInsertionMode=e.insertionModeName,e.setInsertionMode("text")},t.inHead.startTagBaseBasefontBgsoundLink=function(t,n){e.insertSelfClosingElement(t,n)},t.inHead.startTagMeta=function(t,n){e.insertSelfClosingElement(t,n)},t.inHead.startTagOther=function(t,n,r){this.anythingElse(),e.insertionMode.processStartTag(t,n,r)},t.inHead.endTagHead=function(t){"head"==e.openElements.item(e.openElements.length-1).localName?e.openElements.pop():e.parseError("unexpected-end-tag",{name:"head"}),e.setInsertionMode("afterHead")},t.inHead.endTagHtmlBodyBr=function(t){this.anythingElse(),e.insertionMode.processEndTag(t)},t.inHead.endTagOther=function(t){e.parseError("unexpected-end-tag",{name:t})},t.inHead.anythingElse=function(){this.endTagHead("head")},t.afterHead=Object.create(t.base),t.afterHead.start_tag_handlers={html:"startTagHtml",head:"startTagHead",body:"startTagBody",frameset:"startTagFrameset",base:"startTagFromHead",link:"startTagFromHead",meta:"startTagFromHead",script:"startTagFromHead",style:"startTagFromHead",title:"startTagFromHead","-default":"startTagOther"},t.afterHead.end_tag_handlers={body:"endTagBodyHtmlBr",html:"endTagBodyHtmlBr",br:"endTagBodyHtmlBr","-default":"endTagOther"},t.afterHead.processEOF=function(){this.anythingElse(),e.insertionMode.processEOF()},t.afterHead.processCharacters=function(t){var n=t.takeLeadingWhitespace();n&&e.insertText(n),t.length&&(this.anythingElse(),e.insertionMode.processCharacters(t))},t.afterHead.startTagHtml=function(e,n){t.inBody.processStartTag(e,n)},t.afterHead.startTagBody=function(t,n){e.framesetOk=!1,e.insertBodyElement(n),e.setInsertionMode("inBody")},t.afterHead.startTagFrameset=function(t,n){e.insertElement(t,n),e.setInsertionMode("inFrameset")},t.afterHead.startTagFromHead=function(n,r,i){e.parseError("unexpected-start-tag-out-of-my-head",{name:n}),e.openElements.push(e.head),t.inHead.processStartTag(n,r,i),e.openElements.remove(e.head)},t.afterHead.startTagHead=function(t,n,r){e.parseError("unexpected-start-tag",{name:t})},t.afterHead.startTagOther=function(t,n,r){this.anythingElse(),e.insertionMode.processStartTag(t,n,r)},t.afterHead.endTagBodyHtmlBr=function(t){this.anythingElse(),e.insertionMode.processEndTag(t)},t.afterHead.endTagOther=function(t){e.parseError("unexpected-end-tag",{name:t})},t.afterHead.anythingElse=function(){e.insertBodyElement([]),e.setInsertionMode("inBody"),e.framesetOk=!0},t.inBody=Object.create(t.base),t.inBody.start_tag_handlers={html:"startTagHtml",head:"startTagMisplaced",base:"startTagProcessInHead",basefont:"startTagProcessInHead",bgsound:"startTagProcessInHead",link:"startTagProcessInHead",meta:"startTagProcessInHead",noframes:"startTagProcessInHead",script:"startTagProcessInHead",style:"startTagProcessInHead",title:"startTagProcessInHead",body:"startTagBody",form:"startTagForm",plaintext:"startTagPlaintext",a:"startTagA",button:"startTagButton",xmp:"startTagXmp",table:"startTagTable",hr:"startTagHr",image:"startTagImage",input:"startTagInput",textarea:"startTagTextarea",select:"startTagSelect",isindex:"startTagIsindex",applet:"startTagAppletMarqueeObject",marquee:"startTagAppletMarqueeObject",object:"startTagAppletMarqueeObject",li:"startTagListItem",dd:"startTagListItem",dt:"startTagListItem",address:"startTagCloseP",article:"startTagCloseP",aside:"startTagCloseP",blockquote:"startTagCloseP",center:"startTagCloseP",details:"startTagCloseP",dir:"startTagCloseP",div:"startTagCloseP",dl:"startTagCloseP",fieldset:"startTagCloseP",figcaption:"startTagCloseP",figure:"startTagCloseP",footer:"startTagCloseP",header:"startTagCloseP",hgroup:"startTagCloseP",main:"startTagCloseP",menu:"startTagCloseP",nav:"startTagCloseP",ol:"startTagCloseP",p:"startTagCloseP",section:"startTagCloseP",summary:"startTagCloseP",ul:"startTagCloseP",listing:"startTagPreListing",pre:"startTagPreListing",b:"startTagFormatting",big:"startTagFormatting",code:"startTagFormatting",em:"startTagFormatting",font:"startTagFormatting",i:"startTagFormatting",s:"startTagFormatting",small:"startTagFormatting",strike:"startTagFormatting",strong:"startTagFormatting",tt:"startTagFormatting",u:"startTagFormatting",nobr:"startTagNobr",area:"startTagVoidFormatting",br:"startTagVoidFormatting",embed:"startTagVoidFormatting",img:"startTagVoidFormatting",keygen:"startTagVoidFormatting",wbr:"startTagVoidFormatting",param:"startTagParamSourceTrack",source:"startTagParamSourceTrack",track:"startTagParamSourceTrack",iframe:"startTagIFrame",noembed:"startTagRawText",noscript:"startTagRawText",h1:"startTagHeading",h2:"startTagHeading",h3:"startTagHeading",h4:"startTagHeading",h5:"startTagHeading",h6:"startTagHeading",caption:"startTagMisplaced",col:"startTagMisplaced",colgroup:"startTagMisplaced",frame:"startTagMisplaced",frameset:"startTagFrameset",tbody:"startTagMisplaced",td:"startTagMisplaced",tfoot:"startTagMisplaced",th:"startTagMisplaced",thead:"startTagMisplaced",tr:"startTagMisplaced",option:"startTagOptionOptgroup",optgroup:"startTagOptionOptgroup",math:"startTagMath",svg:"startTagSVG",rt:"startTagRpRt",rp:"startTagRpRt","-default":"startTagOther"},t.inBody.end_tag_handlers={p:"endTagP",body:"endTagBody",html:"endTagHtml",address:"endTagBlock",article:"endTagBlock",aside:"endTagBlock",blockquote:"endTagBlock",button:"endTagBlock",center:"endTagBlock",details:"endTagBlock",dir:"endTagBlock",div:"endTagBlock",dl:"endTagBlock",fieldset:"endTagBlock",figcaption:"endTagBlock",figure:"endTagBlock",footer:"endTagBlock",header:"endTagBlock",hgroup:"endTagBlock",listing:"endTagBlock",main:"endTagBlock",menu:"endTagBlock",nav:"endTagBlock",ol:"endTagBlock",pre:"endTagBlock",section:"endTagBlock",summary:"endTagBlock",ul:"endTagBlock",form:"endTagForm",applet:"endTagAppletMarqueeObject",marquee:"endTagAppletMarqueeObject",object:"endTagAppletMarqueeObject",dd:"endTagListItem",dt:"endTagListItem",li:"endTagListItem",h1:"endTagHeading",h2:"endTagHeading",h3:"endTagHeading",h4:"endTagHeading",h5:"endTagHeading",h6:"endTagHeading",a:"endTagFormatting",b:"endTagFormatting",big:"endTagFormatting",code:"endTagFormatting",em:"endTagFormatting",font:"endTagFormatting",i:"endTagFormatting",nobr:"endTagFormatting",s:"endTagFormatting",small:"endTagFormatting",strike:"endTagFormatting",strong:"endTagFormatting",tt:"endTagFormatting",u:"endTagFormatting",br:"endTagBr","-default":"endTagOther"},t.inBody.processCharacters=function(t){e.shouldSkipLeadingNewline&&(e.shouldSkipLeadingNewline=!1,t.skipAtMostOneLeadingNewline()),e.reconstructActiveFormattingElements();var n=t.takeRemaining();(n=n.replace(/\u0000/g,(function(t,n){return e.parseError("invalid-codepoint"),""})))&&(e.insertText(n),e.framesetOk&&!h(n)&&(e.framesetOk=!1))},t.inBody.startTagHtml=function(t,n){e.parseError("non-html-root"),e.addAttributesToElement(e.openElements.rootNode,n)},t.inBody.startTagProcessInHead=function(e,n){t.inHead.processStartTag(e,n)},t.inBody.startTagBody=function(t,n){e.parseError("unexpected-start-tag",{name:"body"}),1==e.openElements.length||"body"!=e.openElements.item(1).localName?r.ok(e.context):(e.framesetOk=!1,e.addAttributesToElement(e.openElements.bodyElement,n))},t.inBody.startTagFrameset=function(t,n){if(e.parseError("unexpected-start-tag",{name:"frameset"}),1==e.openElements.length||"body"!=e.openElements.item(1).localName)r.ok(e.context);else if(e.framesetOk){for(e.detachFromParent(e.openElements.bodyElement);e.openElements.length>1;)e.openElements.pop();e.insertElement(t,n),e.setInsertionMode("inFrameset")}},t.inBody.startTagCloseP=function(t,n){e.openElements.inButtonScope("p")&&this.endTagP("p"),e.insertElement(t,n)},t.inBody.startTagPreListing=function(t,n){e.openElements.inButtonScope("p")&&this.endTagP("p"),e.insertElement(t,n),e.framesetOk=!1,e.shouldSkipLeadingNewline=!0},t.inBody.startTagForm=function(t,n){e.form?e.parseError("unexpected-start-tag",{name:t}):(e.openElements.inButtonScope("p")&&this.endTagP("p"),e.insertElement(t,n),e.form=e.currentStackItem())},t.inBody.startTagRpRt=function(t,n){e.openElements.inScope("ruby")&&(e.generateImpliedEndTags(),"ruby"!=e.currentStackItem().localName&&e.parseError("unexpected-start-tag",{name:t})),e.insertElement(t,n)},t.inBody.startTagListItem=function(t,n){for(var r={li:["li"],dd:["dd","dt"],dt:["dd","dt"]}[t],i=e.openElements,o=i.length-1;o>=0;o--){var s=i.item(o);if(-1!=r.indexOf(s.localName)){e.insertionMode.processEndTag(s.localName);break}if(s.isSpecial()&&"p"!==s.localName&&"address"!==s.localName&&"div"!==s.localName)break}e.openElements.inButtonScope("p")&&this.endTagP("p"),e.insertElement(t,n),e.framesetOk=!1},t.inBody.startTagPlaintext=function(t,n){e.openElements.inButtonScope("p")&&this.endTagP("p"),e.insertElement(t,n),e.tokenizer.setState(s.PLAINTEXT)},t.inBody.startTagHeading=function(t,n){e.openElements.inButtonScope("p")&&this.endTagP("p"),e.currentStackItem().isNumberedHeader()&&(e.parseError("unexpected-start-tag",{name:t}),e.popElement()),e.insertElement(t,n)},t.inBody.startTagA=function(t,n){var r=e.elementInActiveFormattingElements("a");r&&(e.parseError("unexpected-start-tag-implies-end-tag",{startName:"a",endName:"a"}),e.adoptionAgencyEndTag("a"),e.openElements.contains(r)&&e.openElements.remove(r),e.removeElementFromActiveFormattingElements(r)),e.reconstructActiveFormattingElements(),e.insertFormattingElement(t,n)},t.inBody.startTagFormatting=function(t,n){e.reconstructActiveFormattingElements(),e.insertFormattingElement(t,n)},t.inBody.startTagNobr=function(t,n){e.reconstructActiveFormattingElements(),e.openElements.inScope("nobr")&&(e.parseError("unexpected-start-tag-implies-end-tag",{startName:"nobr",endName:"nobr"}),this.processEndTag("nobr"),e.reconstructActiveFormattingElements()),e.insertFormattingElement(t,n)},t.inBody.startTagButton=function(t,n){e.openElements.inScope("button")?(e.parseError("unexpected-start-tag-implies-end-tag",{startName:"button",endName:"button"}),this.processEndTag("button"),e.insertionMode.processStartTag(t,n)):(e.framesetOk=!1,e.reconstructActiveFormattingElements(),e.insertElement(t,n))},t.inBody.startTagAppletMarqueeObject=function(t,n){e.reconstructActiveFormattingElements(),e.insertElement(t,n),e.activeFormattingElements.push(c),e.framesetOk=!1},t.inBody.endTagAppletMarqueeObject=function(t){e.openElements.inScope(t)?(e.generateImpliedEndTags(),e.currentStackItem().localName!=t&&e.parseError("end-tag-too-early",{name:t}),e.openElements.popUntilPopped(t),e.clearActiveFormattingElements()):e.parseError("unexpected-end-tag",{name:t})},t.inBody.startTagXmp=function(t,n){e.openElements.inButtonScope("p")&&this.processEndTag("p"),e.reconstructActiveFormattingElements(),e.processGenericRawTextStartTag(t,n),e.framesetOk=!1},t.inBody.startTagTable=function(t,n){"quirks"!==e.compatMode&&e.openElements.inButtonScope("p")&&this.processEndTag("p"),e.insertElement(t,n),e.setInsertionMode("inTable"),e.framesetOk=!1},t.inBody.startTagVoidFormatting=function(t,n){e.reconstructActiveFormattingElements(),e.insertSelfClosingElement(t,n),e.framesetOk=!1},t.inBody.startTagParamSourceTrack=function(t,n){e.insertSelfClosingElement(t,n)},t.inBody.startTagHr=function(t,n){e.openElements.inButtonScope("p")&&this.endTagP("p"),e.insertSelfClosingElement(t,n),e.framesetOk=!1},t.inBody.startTagImage=function(t,n){e.parseError("unexpected-start-tag-treated-as",{originalName:"image",newName:"img"}),this.processStartTag("img",n)},t.inBody.startTagInput=function(t,n){var r=e.framesetOk;for(var i in this.startTagVoidFormatting(t,n),n)if("type"==n[i].nodeName){"hidden"==n[i].nodeValue.toLowerCase()&&(e.framesetOk=r);break}},t.inBody.startTagIsindex=function(t,n){if(e.parseError("deprecated-tag",{name:"isindex"}),e.selfClosingFlagAcknowledged=!0,!e.form){var r=[],i=[],o="This is a searchable index. Enter search keywords: ";for(var s in n)switch(n[s].nodeName){case"action":r.push({nodeName:"action",nodeValue:n[s].nodeValue});break;case"prompt":o=n[s].nodeValue;break;case"name":break;default:i.push({nodeName:n[s].nodeName,nodeValue:n[s].nodeValue})}i.push({nodeName:"name",nodeValue:"isindex"}),this.processStartTag("form",r),this.processStartTag("hr"),this.processStartTag("label"),this.processCharacters(new f(o)),this.processStartTag("input",i),this.processEndTag("label"),this.processStartTag("hr"),this.processEndTag("form")}},t.inBody.startTagTextarea=function(t,n){e.insertElement(t,n),e.tokenizer.setState(s.RCDATA),e.originalInsertionMode=e.insertionModeName,e.shouldSkipLeadingNewline=!0,e.framesetOk=!1,e.setInsertionMode("text")},t.inBody.startTagIFrame=function(t,n){e.framesetOk=!1,this.startTagRawText(t,n)},t.inBody.startTagRawText=function(t,n){e.processGenericRawTextStartTag(t,n)},t.inBody.startTagSelect=function(t,n){e.reconstructActiveFormattingElements(),e.insertElement(t,n),e.framesetOk=!1;var r=e.insertionModeName;"inTable"==r||"inCaption"==r||"inColumnGroup"==r||"inTableBody"==r||"inRow"==r||"inCell"==r?e.setInsertionMode("inSelectInTable"):e.setInsertionMode("inSelect")},t.inBody.startTagMisplaced=function(t,n){e.parseError("unexpected-start-tag-ignored",{name:t})},t.inBody.endTagMisplaced=function(t){e.parseError("unexpected-end-tag",{name:t})},t.inBody.endTagBr=function(t){e.parseError("unexpected-end-tag-treated-as",{originalName:"br",newName:"br element"}),e.reconstructActiveFormattingElements(),e.insertElement(t,[]),e.popElement()},t.inBody.startTagOptionOptgroup=function(t,n){"option"==e.currentStackItem().localName&&e.popElement(),e.reconstructActiveFormattingElements(),e.insertElement(t,n)},t.inBody.startTagOther=function(t,n){e.reconstructActiveFormattingElements(),e.insertElement(t,n)},t.inBody.endTagOther=function(t){for(var n,r=e.openElements.length-1;r>0;r--){if((n=e.openElements.item(r)).localName==t){e.generateImpliedEndTags(t),e.currentStackItem().localName!=t&&e.parseError("unexpected-end-tag",{name:t}),e.openElements.remove_openElements_until((function(e){return e===n}));break}if(n.isSpecial()){e.parseError("unexpected-end-tag",{name:t});break}}},t.inBody.startTagMath=function(t,n,r){e.reconstructActiveFormattingElements(),n=e.adjustMathMLAttributes(n),n=e.adjustForeignAttributes(n),e.insertForeignElement(t,n,"http://www.w3.org/1998/Math/MathML",r)},t.inBody.startTagSVG=function(t,n,r){e.reconstructActiveFormattingElements(),n=e.adjustSVGAttributes(n),n=e.adjustForeignAttributes(n),e.insertForeignElement(t,n,"http://www.w3.org/2000/svg",r)},t.inBody.endTagP=function(t){e.openElements.inButtonScope("p")?(e.generateImpliedEndTags("p"),"p"!=e.currentStackItem().localName&&e.parseError("unexpected-implied-end-tag",{name:"p"}),e.openElements.popUntilPopped(t)):(e.parseError("unexpected-end-tag",{name:"p"}),this.startTagCloseP("p",[]),this.endTagP("p"))},t.inBody.endTagBody=function(t){e.openElements.inScope("body")?("body"!=e.currentStackItem().localName&&e.parseError("expected-one-end-tag-but-got-another",{expectedName:e.currentStackItem().localName,gotName:t}),e.setInsertionMode("afterBody")):e.parseError("unexpected-end-tag",{name:t})},t.inBody.endTagHtml=function(t){e.openElements.inScope("body")?("body"!=e.currentStackItem().localName&&e.parseError("expected-one-end-tag-but-got-another",{expectedName:e.currentStackItem().localName,gotName:t}),e.setInsertionMode("afterBody"),e.insertionMode.processEndTag(t)):e.parseError("unexpected-end-tag",{name:t})},t.inBody.endTagBlock=function(t){e.openElements.inScope(t)?(e.generateImpliedEndTags(),e.currentStackItem().localName!=t&&e.parseError("end-tag-too-early",{name:t}),e.openElements.popUntilPopped(t)):e.parseError("unexpected-end-tag",{name:t})},t.inBody.endTagForm=function(t){var n=e.form;e.form=null,n&&e.openElements.inScope(t)?(e.generateImpliedEndTags(),e.currentStackItem()!=n&&e.parseError("end-tag-too-early-ignored",{name:"form"}),e.openElements.remove(n)):e.parseError("unexpected-end-tag",{name:t})},t.inBody.endTagListItem=function(t){e.openElements.inListItemScope(t)?(e.generateImpliedEndTags(t),e.currentStackItem().localName!=t&&e.parseError("end-tag-too-early",{name:t}),e.openElements.popUntilPopped(t)):e.parseError("unexpected-end-tag",{name:t})},t.inBody.endTagHeading=function(t){e.openElements.hasNumberedHeaderElementInScope()?(e.generateImpliedEndTags(),e.currentStackItem().localName!=t&&e.parseError("end-tag-too-early",{name:t}),e.openElements.remove_openElements_until((function(e){return e.isNumberedHeader()}))):e.parseError("unexpected-end-tag",{name:t})},t.inBody.endTagFormatting=function(t,n){e.adoptionAgencyEndTag(t)||this.endTagOther(t,n)},t.inCaption=Object.create(t.base),t.inCaption.start_tag_handlers={html:"startTagHtml",caption:"startTagTableElement",col:"startTagTableElement",colgroup:"startTagTableElement",tbody:"startTagTableElement",td:"startTagTableElement",tfoot:"startTagTableElement",thead:"startTagTableElement",tr:"startTagTableElement","-default":"startTagOther"},t.inCaption.end_tag_handlers={caption:"endTagCaption",table:"endTagTable",body:"endTagIgnore",col:"endTagIgnore",colgroup:"endTagIgnore",html:"endTagIgnore",tbody:"endTagIgnore",td:"endTagIgnore",tfood:"endTagIgnore",thead:"endTagIgnore",tr:"endTagIgnore","-default":"endTagOther"},t.inCaption.processCharacters=function(e){t.inBody.processCharacters(e)},t.inCaption.startTagTableElement=function(t,n){e.parseError("unexpected-end-tag",{name:t});var r=!e.openElements.inTableScope("caption");e.insertionMode.processEndTag("caption"),r||e.insertionMode.processStartTag(t,n)},t.inCaption.startTagOther=function(e,n,r){t.inBody.processStartTag(e,n,r)},t.inCaption.endTagCaption=function(t){e.openElements.inTableScope("caption")?(e.generateImpliedEndTags(),"caption"!=e.currentStackItem().localName&&e.parseError("expected-one-end-tag-but-got-another",{gotName:"caption",expectedName:e.currentStackItem().localName}),e.openElements.popUntilPopped("caption"),e.clearActiveFormattingElements(),e.setInsertionMode("inTable")):(r.ok(e.context),e.parseError("unexpected-end-tag",{name:t}))},t.inCaption.endTagTable=function(t){e.parseError("unexpected-end-table-in-caption");var n=!e.openElements.inTableScope("caption");e.insertionMode.processEndTag("caption"),n||e.insertionMode.processEndTag(t)},t.inCaption.endTagIgnore=function(t){e.parseError("unexpected-end-tag",{name:t})},t.inCaption.endTagOther=function(e){t.inBody.processEndTag(e)},t.inCell=Object.create(t.base),t.inCell.start_tag_handlers={html:"startTagHtml",caption:"startTagTableOther",col:"startTagTableOther",colgroup:"startTagTableOther",tbody:"startTagTableOther",td:"startTagTableOther",tfoot:"startTagTableOther",th:"startTagTableOther",thead:"startTagTableOther",tr:"startTagTableOther","-default":"startTagOther"},t.inCell.end_tag_handlers={td:"endTagTableCell",th:"endTagTableCell",body:"endTagIgnore",caption:"endTagIgnore",col:"endTagIgnore",colgroup:"endTagIgnore",html:"endTagIgnore",table:"endTagImply",tbody:"endTagImply",tfoot:"endTagImply",thead:"endTagImply",tr:"endTagImply","-default":"endTagOther"},t.inCell.processCharacters=function(e){t.inBody.processCharacters(e)},t.inCell.startTagTableOther=function(t,n,r){e.openElements.inTableScope("td")||e.openElements.inTableScope("th")?(this.closeCell(),e.insertionMode.processStartTag(t,n,r)):e.parseError("unexpected-start-tag",{name:t})},t.inCell.startTagOther=function(e,n,r){t.inBody.processStartTag(e,n,r)},t.inCell.endTagTableCell=function(t){e.openElements.inTableScope(t)?(e.generateImpliedEndTags(t),e.currentStackItem().localName!=t.toLowerCase()?(e.parseError("unexpected-cell-end-tag",{name:t}),e.openElements.popUntilPopped(t)):e.popElement(),e.clearActiveFormattingElements(),e.setInsertionMode("inRow")):e.parseError("unexpected-end-tag",{name:t})},t.inCell.endTagIgnore=function(t){e.parseError("unexpected-end-tag",{name:t})},t.inCell.endTagImply=function(t){e.openElements.inTableScope(t)?(this.closeCell(),e.insertionMode.processEndTag(t)):e.parseError("unexpected-end-tag",{name:t})},t.inCell.endTagOther=function(e){t.inBody.processEndTag(e)},t.inCell.closeCell=function(){e.openElements.inTableScope("td")?this.endTagTableCell("td"):e.openElements.inTableScope("th")&&this.endTagTableCell("th")},t.inColumnGroup=Object.create(t.base),t.inColumnGroup.start_tag_handlers={html:"startTagHtml",col:"startTagCol","-default":"startTagOther"},t.inColumnGroup.end_tag_handlers={colgroup:"endTagColgroup",col:"endTagCol","-default":"endTagOther"},t.inColumnGroup.ignoreEndTagColgroup=function(){return"html"==e.currentStackItem().localName},t.inColumnGroup.processCharacters=function(t){var n=t.takeLeadingWhitespace();if(n&&e.insertText(n),t.length){var r=this.ignoreEndTagColgroup();this.endTagColgroup("colgroup"),r||e.insertionMode.processCharacters(t)}},t.inColumnGroup.startTagCol=function(t,n){e.insertSelfClosingElement(t,n)},t.inColumnGroup.startTagOther=function(t,n,r){var i=this.ignoreEndTagColgroup();this.endTagColgroup("colgroup"),i||e.insertionMode.processStartTag(t,n,r)},t.inColumnGroup.endTagColgroup=function(t){this.ignoreEndTagColgroup()?(r.ok(e.context),e.parseError("unexpected-end-tag",{name:t})):(e.popElement(),e.setInsertionMode("inTable"))},t.inColumnGroup.endTagCol=function(t){e.parseError("no-end-tag",{name:"col"})},t.inColumnGroup.endTagOther=function(t){var n=this.ignoreEndTagColgroup();this.endTagColgroup("colgroup"),n||e.insertionMode.processEndTag(t)},t.inForeignContent=Object.create(t.base),t.inForeignContent.processStartTag=function(t,n,r){if(-1!=["b","big","blockquote","body","br","center","code","dd","div","dl","dt","em","embed","h1","h2","h3","h4","h5","h6","head","hr","i","img","li","listing","menu","meta","nobr","ol","p","pre","ruby","s","small","span","strong","strike","sub","sup","table","tt","u","ul","var"].indexOf(t)||"font"==t&&n.some((function(e){return["color","face","size"].indexOf(e.nodeName)>=0}))){for(e.parseError("unexpected-html-element-in-foreign-content",{name:t});e.currentStackItem().isForeign()&&!e.currentStackItem().isHtmlIntegrationPoint()&&!e.currentStackItem().isMathMLTextIntegrationPoint();)e.openElements.pop();e.insertionMode.processStartTag(t,n,r)}else"http://www.w3.org/1998/Math/MathML"==e.currentStackItem().namespaceURI&&(n=e.adjustMathMLAttributes(n)),"http://www.w3.org/2000/svg"==e.currentStackItem().namespaceURI&&(t=e.adjustSVGTagNameCase(t),n=e.adjustSVGAttributes(n)),n=e.adjustForeignAttributes(n),e.insertForeignElement(t,n,e.currentStackItem().namespaceURI,r)},t.inForeignContent.processEndTag=function(t){var n=e.currentStackItem(),r=e.openElements.length-1;for(n.localName.toLowerCase()!=t&&e.parseError("unexpected-end-tag",{name:t});0!==r;){if(n.localName.toLowerCase()==t){for(;e.openElements.pop()!=n;);break}if(r-=1,!(n=e.openElements.item(r)).isForeign()){e.insertionMode.processEndTag(t);break}}},t.inForeignContent.processCharacters=function(t){var n=t.takeRemaining();n=n.replace(/\u0000/g,(function(t,n){return e.parseError("invalid-codepoint"),"�"})),e.framesetOk&&!h(n)&&(e.framesetOk=!1),e.insertText(n)},t.inHeadNoscript=Object.create(t.base),t.inHeadNoscript.start_tag_handlers={html:"startTagHtml",basefont:"startTagBasefontBgsoundLinkMetaNoframesStyle",bgsound:"startTagBasefontBgsoundLinkMetaNoframesStyle",link:"startTagBasefontBgsoundLinkMetaNoframesStyle",meta:"startTagBasefontBgsoundLinkMetaNoframesStyle",noframes:"startTagBasefontBgsoundLinkMetaNoframesStyle",style:"startTagBasefontBgsoundLinkMetaNoframesStyle",head:"startTagHeadNoscript",noscript:"startTagHeadNoscript","-default":"startTagOther"},t.inHeadNoscript.end_tag_handlers={noscript:"endTagNoscript",br:"endTagBr","-default":"endTagOther"},t.inHeadNoscript.processCharacters=function(t){var n=t.takeLeadingWhitespace();n&&e.insertText(n),t.length&&(e.parseError("unexpected-char-in-frameset"),this.anythingElse(),e.insertionMode.processCharacters(t))},t.inHeadNoscript.processComment=function(e){t.inHead.processComment(e)},t.inHeadNoscript.startTagBasefontBgsoundLinkMetaNoframesStyle=function(e,n){t.inHead.processStartTag(e,n)},t.inHeadNoscript.startTagHeadNoscript=function(t,n){e.parseError("unexpected-start-tag-in-frameset",{name:t})},t.inHeadNoscript.startTagOther=function(t,n){e.parseError("unexpected-start-tag-in-frameset",{name:t}),this.anythingElse(),e.insertionMode.processStartTag(t,n)},t.inHeadNoscript.endTagBr=function(t,n){e.parseError("unexpected-end-tag-in-frameset",{name:t}),this.anythingElse(),e.insertionMode.processEndTag(t,n)},t.inHeadNoscript.endTagNoscript=function(t,n){e.popElement(),e.setInsertionMode("inHead")},t.inHeadNoscript.endTagOther=function(t,n){e.parseError("unexpected-end-tag-in-frameset",{name:t})},t.inHeadNoscript.anythingElse=function(){e.popElement(),e.setInsertionMode("inHead")},t.inFrameset=Object.create(t.base),t.inFrameset.start_tag_handlers={html:"startTagHtml",frameset:"startTagFrameset",frame:"startTagFrame",noframes:"startTagNoframes","-default":"startTagOther"},t.inFrameset.end_tag_handlers={frameset:"endTagFrameset",noframes:"endTagNoframes","-default":"endTagOther"},t.inFrameset.processCharacters=function(t){e.parseError("unexpected-char-in-frameset")},t.inFrameset.startTagFrameset=function(t,n){e.insertElement(t,n)},t.inFrameset.startTagFrame=function(t,n){e.insertSelfClosingElement(t,n)},t.inFrameset.startTagNoframes=function(e,n){t.inBody.processStartTag(e,n)},t.inFrameset.startTagOther=function(t,n){e.parseError("unexpected-start-tag-in-frameset",{name:t})},t.inFrameset.endTagFrameset=function(t,n){"html"==e.currentStackItem().localName?e.parseError("unexpected-frameset-in-frameset-innerhtml"):e.popElement(),e.context||"frameset"==e.currentStackItem().localName||e.setInsertionMode("afterFrameset")},t.inFrameset.endTagNoframes=function(e){t.inBody.processEndTag(e)},t.inFrameset.endTagOther=function(t){e.parseError("unexpected-end-tag-in-frameset",{name:t})},t.inTable=Object.create(t.base),t.inTable.start_tag_handlers={html:"startTagHtml",caption:"startTagCaption",colgroup:"startTagColgroup",col:"startTagCol",table:"startTagTable",tbody:"startTagRowGroup",tfoot:"startTagRowGroup",thead:"startTagRowGroup",td:"startTagImplyTbody",th:"startTagImplyTbody",tr:"startTagImplyTbody",style:"startTagStyleScript",script:"startTagStyleScript",input:"startTagInput",form:"startTagForm","-default":"startTagOther"},t.inTable.end_tag_handlers={table:"endTagTable",body:"endTagIgnore",caption:"endTagIgnore",col:"endTagIgnore",colgroup:"endTagIgnore",html:"endTagIgnore",tbody:"endTagIgnore",td:"endTagIgnore",tfoot:"endTagIgnore",th:"endTagIgnore",thead:"endTagIgnore",tr:"endTagIgnore","-default":"endTagOther"},t.inTable.processCharacters=function(n){if(e.currentStackItem().isFosterParenting()){var r=e.insertionModeName;e.setInsertionMode("inTableText"),e.originalInsertionMode=r,e.insertionMode.processCharacters(n)}else e.redirectAttachToFosterParent=!0,t.inBody.processCharacters(n),e.redirectAttachToFosterParent=!1},t.inTable.startTagCaption=function(t,n){e.openElements.popUntilTableScopeMarker(),e.activeFormattingElements.push(c),e.insertElement(t,n),e.setInsertionMode("inCaption")},t.inTable.startTagColgroup=function(t,n){e.openElements.popUntilTableScopeMarker(),e.insertElement(t,n),e.setInsertionMode("inColumnGroup")},t.inTable.startTagCol=function(t,n){this.startTagColgroup("colgroup",[]),e.insertionMode.processStartTag(t,n)},t.inTable.startTagRowGroup=function(t,n){e.openElements.popUntilTableScopeMarker(),e.insertElement(t,n),e.setInsertionMode("inTableBody")},t.inTable.startTagImplyTbody=function(t,n){this.startTagRowGroup("tbody",[]),e.insertionMode.processStartTag(t,n)},t.inTable.startTagTable=function(t,n){e.parseError("unexpected-start-tag-implies-end-tag",{startName:"table",endName:"table"}),e.insertionMode.processEndTag("table"),e.context||e.insertionMode.processStartTag(t,n)},t.inTable.startTagStyleScript=function(e,n){t.inHead.processStartTag(e,n)},t.inTable.startTagInput=function(t,n){for(var r in n)if("type"==n[r].nodeName.toLowerCase()){if("hidden"==n[r].nodeValue.toLowerCase())return e.parseError("unexpected-hidden-input-in-table"),e.insertElement(t,n),void e.openElements.pop();break}this.startTagOther(t,n)},t.inTable.startTagForm=function(t,n){e.parseError("unexpected-form-in-table"),e.form||(e.insertElement(t,n),e.form=e.currentStackItem(),e.openElements.pop())},t.inTable.startTagOther=function(n,r,i){e.parseError("unexpected-start-tag-implies-table-voodoo",{name:n}),e.redirectAttachToFosterParent=!0,t.inBody.processStartTag(n,r,i),e.redirectAttachToFosterParent=!1},t.inTable.endTagTable=function(t){e.openElements.inTableScope(t)?(e.generateImpliedEndTags(),e.currentStackItem().localName!=t&&e.parseError("end-tag-too-early-named",{gotName:"table",expectedName:e.currentStackItem().localName}),e.openElements.popUntilPopped("table"),e.resetInsertionMode()):(r.ok(e.context),e.parseError("unexpected-end-tag",{name:t}))},t.inTable.endTagIgnore=function(t){e.parseError("unexpected-end-tag",{name:t})},t.inTable.endTagOther=function(n){e.parseError("unexpected-end-tag-implies-table-voodoo",{name:n}),e.redirectAttachToFosterParent=!0,t.inBody.processEndTag(n),e.redirectAttachToFosterParent=!1},t.inTableText=Object.create(t.base),t.inTableText.flushCharacters=function(){var t=e.pendingTableCharacters.join("");u(t)?e.insertText(t):(e.redirectAttachToFosterParent=!0,e.reconstructActiveFormattingElements(),e.insertText(t),e.framesetOk=!1,e.redirectAttachToFosterParent=!1),e.pendingTableCharacters=[]},t.inTableText.processComment=function(t){this.flushCharacters(),e.setInsertionMode(e.originalInsertionMode),e.insertionMode.processComment(t)},t.inTableText.processEOF=function(t){this.flushCharacters(),e.setInsertionMode(e.originalInsertionMode),e.insertionMode.processEOF()},t.inTableText.processCharacters=function(t){var n=t.takeRemaining();(n=n.replace(/\u0000/g,(function(t,n){return e.parseError("invalid-codepoint"),""})))&&e.pendingTableCharacters.push(n)},t.inTableText.processStartTag=function(t,n,r){this.flushCharacters(),e.setInsertionMode(e.originalInsertionMode),e.insertionMode.processStartTag(t,n,r)},t.inTableText.processEndTag=function(t,n){this.flushCharacters(),e.setInsertionMode(e.originalInsertionMode),e.insertionMode.processEndTag(t,n)},t.inTableBody=Object.create(t.base),t.inTableBody.start_tag_handlers={html:"startTagHtml",tr:"startTagTr",td:"startTagTableCell",th:"startTagTableCell",caption:"startTagTableOther",col:"startTagTableOther",colgroup:"startTagTableOther",tbody:"startTagTableOther",tfoot:"startTagTableOther",thead:"startTagTableOther","-default":"startTagOther"},t.inTableBody.end_tag_handlers={table:"endTagTable",tbody:"endTagTableRowGroup",tfoot:"endTagTableRowGroup",thead:"endTagTableRowGroup",body:"endTagIgnore",caption:"endTagIgnore",col:"endTagIgnore",colgroup:"endTagIgnore",html:"endTagIgnore",td:"endTagIgnore",th:"endTagIgnore",tr:"endTagIgnore","-default":"endTagOther"},t.inTableBody.processCharacters=function(e){t.inTable.processCharacters(e)},t.inTableBody.startTagTr=function(t,n){e.openElements.popUntilTableBodyScopeMarker(),e.insertElement(t,n),e.setInsertionMode("inRow")},t.inTableBody.startTagTableCell=function(t,n){e.parseError("unexpected-cell-in-table-body",{name:t}),this.startTagTr("tr",[]),e.insertionMode.processStartTag(t,n)},t.inTableBody.startTagTableOther=function(t,n){e.openElements.inTableScope("tbody")||e.openElements.inTableScope("thead")||e.openElements.inTableScope("tfoot")?(e.openElements.popUntilTableBodyScopeMarker(),this.endTagTableRowGroup(e.currentStackItem().localName),e.insertionMode.processStartTag(t,n)):e.parseError("unexpected-start-tag",{name:t})},t.inTableBody.startTagOther=function(e,n){t.inTable.processStartTag(e,n)},t.inTableBody.endTagTableRowGroup=function(t){e.openElements.inTableScope(t)?(e.openElements.popUntilTableBodyScopeMarker(),e.popElement(),e.setInsertionMode("inTable")):e.parseError("unexpected-end-tag-in-table-body",{name:t})},t.inTableBody.endTagTable=function(t){e.openElements.inTableScope("tbody")||e.openElements.inTableScope("thead")||e.openElements.inTableScope("tfoot")?(e.openElements.popUntilTableBodyScopeMarker(),this.endTagTableRowGroup(e.currentStackItem().localName),e.insertionMode.processEndTag(t)):e.parseError("unexpected-end-tag",{name:t})},t.inTableBody.endTagIgnore=function(t){e.parseError("unexpected-end-tag-in-table-body",{name:t})},t.inTableBody.endTagOther=function(e){t.inTable.processEndTag(e)},t.inSelect=Object.create(t.base),t.inSelect.start_tag_handlers={html:"startTagHtml",option:"startTagOption",optgroup:"startTagOptgroup",select:"startTagSelect",input:"startTagInput",keygen:"startTagInput",textarea:"startTagInput",script:"startTagScript","-default":"startTagOther"},t.inSelect.end_tag_handlers={option:"endTagOption",optgroup:"endTagOptgroup",select:"endTagSelect",caption:"endTagTableElements",table:"endTagTableElements",tbody:"endTagTableElements",tfoot:"endTagTableElements",thead:"endTagTableElements",tr:"endTagTableElements",td:"endTagTableElements",th:"endTagTableElements","-default":"endTagOther"},t.inSelect.processCharacters=function(t){var n=t.takeRemaining();(n=n.replace(/\u0000/g,(function(t,n){return e.parseError("invalid-codepoint"),""})))&&e.insertText(n)},t.inSelect.startTagOption=function(t,n){"option"==e.currentStackItem().localName&&e.popElement(),e.insertElement(t,n)},t.inSelect.startTagOptgroup=function(t,n){"option"==e.currentStackItem().localName&&e.popElement(),"optgroup"==e.currentStackItem().localName&&e.popElement(),e.insertElement(t,n)},t.inSelect.endTagOption=function(t){"option"===e.currentStackItem().localName?e.popElement():e.parseError("unexpected-end-tag-in-select",{name:t})},t.inSelect.endTagOptgroup=function(t){"option"==e.currentStackItem().localName&&"optgroup"==e.openElements.item(e.openElements.length-2).localName&&e.popElement(),"optgroup"==e.currentStackItem().localName?e.popElement():e.parseError("unexpected-end-tag-in-select",{name:"optgroup"})},t.inSelect.startTagSelect=function(t){e.parseError("unexpected-select-in-select"),this.endTagSelect("select")},t.inSelect.endTagSelect=function(t){e.openElements.inTableScope("select")?(e.openElements.popUntilPopped("select"),e.resetInsertionMode()):e.parseError("unexpected-end-tag",{name:t})},t.inSelect.startTagInput=function(t,n){e.parseError("unexpected-input-in-select"),e.openElements.inSelectScope("select")&&(this.endTagSelect("select"),e.insertionMode.processStartTag(t,n))},t.inSelect.startTagScript=function(e,n){t.inHead.processStartTag(e,n)},t.inSelect.endTagTableElements=function(t){e.parseError("unexpected-end-tag-in-select",{name:t}),e.openElements.inTableScope(t)&&(this.endTagSelect("select"),e.insertionMode.processEndTag(t))},t.inSelect.startTagOther=function(t,n){e.parseError("unexpected-start-tag-in-select",{name:t})},t.inSelect.endTagOther=function(t){e.parseError("unexpected-end-tag-in-select",{name:t})},t.inSelectInTable=Object.create(t.base),t.inSelectInTable.start_tag_handlers={caption:"startTagTable",table:"startTagTable",tbody:"startTagTable",tfoot:"startTagTable",thead:"startTagTable",tr:"startTagTable",td:"startTagTable",th:"startTagTable","-default":"startTagOther"},t.inSelectInTable.end_tag_handlers={caption:"endTagTable",table:"endTagTable",tbody:"endTagTable",tfoot:"endTagTable",thead:"endTagTable",tr:"endTagTable",td:"endTagTable",th:"endTagTable","-default":"endTagOther"},t.inSelectInTable.processCharacters=function(e){t.inSelect.processCharacters(e)},t.inSelectInTable.startTagTable=function(t,n){e.parseError("unexpected-table-element-start-tag-in-select-in-table",{name:t}),this.endTagOther("select"),e.insertionMode.processStartTag(t,n)},t.inSelectInTable.startTagOther=function(e,n,r){t.inSelect.processStartTag(e,n,r)},t.inSelectInTable.endTagTable=function(t){e.parseError("unexpected-table-element-end-tag-in-select-in-table",{name:t}),e.openElements.inTableScope(t)&&(this.endTagOther("select"),e.insertionMode.processEndTag(t))},t.inSelectInTable.endTagOther=function(e){t.inSelect.processEndTag(e)},t.inRow=Object.create(t.base),t.inRow.start_tag_handlers={html:"startTagHtml",td:"startTagTableCell",th:"startTagTableCell",caption:"startTagTableOther",col:"startTagTableOther",colgroup:"startTagTableOther",tbody:"startTagTableOther",tfoot:"startTagTableOther",thead:"startTagTableOther",tr:"startTagTableOther","-default":"startTagOther"},t.inRow.end_tag_handlers={tr:"endTagTr",table:"endTagTable",tbody:"endTagTableRowGroup",tfoot:"endTagTableRowGroup",thead:"endTagTableRowGroup",body:"endTagIgnore",caption:"endTagIgnore",col:"endTagIgnore",colgroup:"endTagIgnore",html:"endTagIgnore",td:"endTagIgnore",th:"endTagIgnore","-default":"endTagOther"},t.inRow.processCharacters=function(e){t.inTable.processCharacters(e)},t.inRow.startTagTableCell=function(t,n){e.openElements.popUntilTableRowScopeMarker(),e.insertElement(t,n),e.setInsertionMode("inCell"),e.activeFormattingElements.push(c)},t.inRow.startTagTableOther=function(t,n){var r=this.ignoreEndTagTr();this.endTagTr("tr"),r||e.insertionMode.processStartTag(t,n)},t.inRow.startTagOther=function(e,n,r){t.inTable.processStartTag(e,n,r)},t.inRow.endTagTr=function(t){this.ignoreEndTagTr()?(r.ok(e.context),e.parseError("unexpected-end-tag",{name:t})):(e.openElements.popUntilTableRowScopeMarker(),e.popElement(),e.setInsertionMode("inTableBody"))},t.inRow.endTagTable=function(t){var n=this.ignoreEndTagTr();this.endTagTr("tr"),n||e.insertionMode.processEndTag(t)},t.inRow.endTagTableRowGroup=function(t){e.openElements.inTableScope(t)?(this.endTagTr("tr"),e.insertionMode.processEndTag(t)):e.parseError("unexpected-end-tag",{name:t})},t.inRow.endTagIgnore=function(t){e.parseError("unexpected-end-tag-in-table-row",{name:t})},t.inRow.endTagOther=function(e){t.inTable.processEndTag(e)},t.inRow.ignoreEndTagTr=function(){return!e.openElements.inTableScope("tr")},t.afterAfterFrameset=Object.create(t.base),t.afterAfterFrameset.start_tag_handlers={html:"startTagHtml",noframes:"startTagNoFrames","-default":"startTagOther"},t.afterAfterFrameset.processEOF=function(){},t.afterAfterFrameset.processComment=function(t){e.insertComment(t,e.document)},t.afterAfterFrameset.processCharacters=function(t){for(var n=t.takeRemaining(),r="",i=0;i<n.length;i++){var o=n[i];d(o)&&(r+=o)}r&&(e.reconstructActiveFormattingElements(),e.insertText(r)),r.length<n.length&&e.parseError("expected-eof-but-got-char")},t.afterAfterFrameset.startTagNoFrames=function(e,n){t.inHead.processStartTag(e,n)},t.afterAfterFrameset.startTagOther=function(t,n,r){e.parseError("expected-eof-but-got-start-tag",{name:t})},t.afterAfterFrameset.processEndTag=function(t,n){e.parseError("expected-eof-but-got-end-tag",{name:t})},t.text=Object.create(t.base),t.text.start_tag_handlers={"-default":"startTagOther"},t.text.end_tag_handlers={script:"endTagScript","-default":"endTagOther"},t.text.processCharacters=function(t){e.shouldSkipLeadingNewline&&(e.shouldSkipLeadingNewline=!1,t.skipAtMostOneLeadingNewline());var n=t.takeRemaining();n&&e.insertText(n)},t.text.processEOF=function(){e.parseError("expected-named-closing-tag-but-got-eof",{name:e.currentStackItem().localName}),e.openElements.pop(),e.setInsertionMode(e.originalInsertionMode),e.insertionMode.processEOF()},t.text.startTagOther=function(e){throw"Tried to process start tag "+e+" in RCDATA/RAWTEXT mode"},t.text.endTagScript=function(t){var n=e.openElements.pop();r.ok("script"==n.localName),e.setInsertionMode(e.originalInsertionMode)},t.text.endTagOther=function(t){e.openElements.pop(),e.setInsertionMode(e.originalInsertionMode)}}f.prototype.skipAtMostOneLeadingNewline=function(){"\n"===this.characters[this.current]&&this.current++},f.prototype.skipLeadingWhitespace=function(){for(;d(this.characters[this.current]);)if(++this.current==this.end)return},f.prototype.skipLeadingNonWhitespace=function(){for(;!d(this.characters[this.current]);)if(++this.current==this.end)return},f.prototype.takeRemaining=function(){return this.characters.substring(this.current)},f.prototype.takeLeadingWhitespace=function(){var e=this.current;return this.skipLeadingWhitespace(),e===this.current?"":this.characters.substring(e,this.current-e)},Object.defineProperty(f.prototype,"length",{get:function(){return this.end-this.current}}),g.prototype.setInsertionMode=function(e){this.insertionMode=this.insertionModes[e],this.insertionModeName=e},g.prototype.adoptionAgencyEndTag=function(e){var t;function n(e){return e===t}for(var r=0;r++<8;){if(!(t=this.elementInActiveFormattingElements(e))||this.openElements.contains(t)&&!this.openElements.inScope(t.localName))return this.parseError("adoption-agency-1.1",{name:e}),!1;if(!this.openElements.contains(t))return this.parseError("adoption-agency-1.2",{name:e}),this.removeElementFromActiveFormattingElements(t),!0;this.openElements.inScope(t.localName)||this.parseError("adoption-agency-4.4",{name:e}),t!=this.currentStackItem()&&this.parseError("adoption-agency-1.3",{name:e});var i=this.openElements.furthestBlockForFormattingElement(t.node);if(!i)return this.openElements.remove_openElements_until(n),this.removeElementFromActiveFormattingElements(t),!0;for(var o=this.openElements.elements.indexOf(t),s=this.openElements.item(o-1),a=this.activeFormattingElements.indexOf(t),c=i,d=i,u=this.openElements.elements.indexOf(c),h=0;h++<3;)if(u-=1,c=this.openElements.item(u),this.activeFormattingElements.indexOf(c)<0)this.openElements.elements.splice(u,1);else{if(c==t)break;d==i&&(a=this.activeFormattingElements.indexOf(c)+1);var p=this.createElement(c.namespaceURI,c.localName,c.attributes),f=new l(c.namespaceURI,c.localName,c.attributes,p);this.activeFormattingElements[this.activeFormattingElements.indexOf(c)]=f,this.openElements.elements[this.openElements.elements.indexOf(c)]=f,c=f,this.detachFromParent(d.node),this.attachNode(d.node,c.node),d=c}this.detachFromParent(d.node),s.isFosterParenting()?this.insertIntoFosterParent(d.node):this.attachNode(d.node,s.node),p=this.createElement("http://www.w3.org/1999/xhtml",t.localName,t.attributes);var g=new l(t.namespaceURI,t.localName,t.attributes,p);this.reparentChildren(i.node,p),this.attachNode(p,i.node),this.removeElementFromActiveFormattingElements(t),this.activeFormattingElements.splice(Math.min(a,this.activeFormattingElements.length),0,g),this.openElements.remove(t),this.openElements.elements.splice(this.openElements.elements.indexOf(i)+1,0,g)}return!0},g.prototype.start=function(){throw"Not mplemented"},g.prototype.startTokenization=function(e){if(this.tokenizer=e,this.compatMode="no quirks",this.originalInsertionMode="initial",this.framesetOk=!0,this.openElements=new a,this.activeFormattingElements=[],this.start(),this.context){switch(this.context){case"title":case"textarea":this.tokenizer.setState(s.RCDATA);break;case"style":case"xmp":case"iframe":case"noembed":case"noframes":this.tokenizer.setState(s.RAWTEXT);break;case"script":this.tokenizer.setState(s.SCRIPT_DATA);break;case"noscript":this.scriptingEnabled&&this.tokenizer.setState(s.RAWTEXT);break;case"plaintext":this.tokenizer.setState(s.PLAINTEXT)}this.insertHtmlElement(),"head"===this.context?this.insertHeadElement():this.insertBodyElement(),this.resetInsertionMode()}else this.setInsertionMode("initial")},g.prototype.processToken=function(e){this.selfClosingFlagAcknowledged=!1;var t,n=this.openElements.top||null;switch(t=!n||!n.isForeign()||n.isMathMLTextIntegrationPoint()&&("StartTag"==e.type&&!(e.name in{mglyph:0,malignmark:0})||"Characters"===e.type)||"http://www.w3.org/1998/Math/MathML"==n.namespaceURI&&"annotation-xml"==n.localName&&"StartTag"==e.type&&"svg"==e.name||n.isHtmlIntegrationPoint()&&e.type in{StartTag:0,Characters:0}||"EOF"==e.type?this.insertionMode:this.insertionModes.inForeignContent,e.type){case"Characters":var r=new f(e.data);t.processCharacters(r);break;case"Comment":t.processComment(e.data);break;case"StartTag":t.processStartTag(e.name,e.data,e.selfClosing);break;case"EndTag":t.processEndTag(e.name);break;case"Doctype":t.processDoctype(e.name,e.publicId,e.systemId,e.forceQuirks);break;case"EOF":t.processEOF()}},g.prototype.isCdataSectionAllowed=function(){return this.openElements.length>0&&this.currentStackItem().isForeign()},g.prototype.isSelfClosingFlagAcknowledged=function(){return this.selfClosingFlagAcknowledged},g.prototype.createElement=function(e,t,n){throw new Error("Not implemented")},g.prototype.attachNode=function(e,t){throw new Error("Not implemented")},g.prototype.attachNodeToFosterParent=function(e,t,n){throw new Error("Not implemented")},g.prototype.detachFromParent=function(e){throw new Error("Not implemented")},g.prototype.addAttributesToElement=function(e,t){throw new Error("Not implemented")},g.prototype.insertHtmlElement=function(e){var t=this.createElement("http://www.w3.org/1999/xhtml","html",e);return this.attachNode(t,this.document),this.openElements.pushHtmlElement(new l("http://www.w3.org/1999/xhtml","html",e,t)),t},g.prototype.insertHeadElement=function(e){var t=this.createElement("http://www.w3.org/1999/xhtml","head",e);return this.head=new l("http://www.w3.org/1999/xhtml","head",e,t),this.attachNode(t,this.openElements.top.node),this.openElements.pushHeadElement(this.head),t},g.prototype.insertBodyElement=function(e){var t=this.createElement("http://www.w3.org/1999/xhtml","body",e);return this.attachNode(t,this.openElements.top.node),this.openElements.pushBodyElement(new l("http://www.w3.org/1999/xhtml","body",e,t)),t},g.prototype.insertIntoFosterParent=function(e){var t=this.openElements.findIndex("table"),n=this.openElements.item(t).node;if(0===t)return this.attachNode(e,n);this.attachNodeToFosterParent(e,n,this.openElements.item(t-1).node)},g.prototype.insertElement=function(e,t,n,r){n||(n="http://www.w3.org/1999/xhtml");var i=this.createElement(n,e,t);this.shouldFosterParent()?this.insertIntoFosterParent(i):this.attachNode(i,this.openElements.top.node),r||this.openElements.push(new l(n,e,t,i))},g.prototype.insertFormattingElement=function(e,t){this.insertElement(e,t,"http://www.w3.org/1999/xhtml"),this.appendElementToActiveFormattingElements(this.currentStackItem())},g.prototype.insertSelfClosingElement=function(e,t){this.selfClosingFlagAcknowledged=!0,this.insertElement(e,t,"http://www.w3.org/1999/xhtml",!0)},g.prototype.insertForeignElement=function(e,t,n,r){r&&(this.selfClosingFlagAcknowledged=!0),this.insertElement(e,t,n,r)},g.prototype.insertComment=function(e,t){throw new Error("Not implemented")},g.prototype.insertDoctype=function(e,t,n){throw new Error("Not implemented")},g.prototype.insertText=function(e){throw new Error("Not implemented")},g.prototype.currentStackItem=function(){return this.openElements.top},g.prototype.popElement=function(){return this.openElements.pop()},g.prototype.shouldFosterParent=function(){return this.redirectAttachToFosterParent&&this.currentStackItem().isFosterParenting()},g.prototype.generateImpliedEndTags=function(e){var t=this.openElements.top.localName;-1!=["dd","dt","li","option","optgroup","p","rp","rt"].indexOf(t)&&t!=e&&(this.popElement(),this.generateImpliedEndTags(e))},g.prototype.reconstructActiveFormattingElements=function(){if(0!==this.activeFormattingElements.length){var e=this.activeFormattingElements.length-1,t=this.activeFormattingElements[e];if(t!=c&&!this.openElements.contains(t)){for(;t!=c&&!this.openElements.contains(t)&&(e-=1,t=this.activeFormattingElements[e]););for(;;){e+=1,t=this.activeFormattingElements[e],this.insertElement(t.localName,t.attributes);var n=this.currentStackItem();if(this.activeFormattingElements[e]=n,n==this.activeFormattingElements[this.activeFormattingElements.length-1])break}}}},g.prototype.ensureNoahsArkCondition=function(e){if(!(this.activeFormattingElements.length<3)){for(var t=[],n=e.attributes.length,r=this.activeFormattingElements.length-1;r>=0&&(l=this.activeFormattingElements[r])!==c;r--)e.localName===l.localName&&e.namespaceURI===l.namespaceURI&&l.attributes.length==n&&t.push(l);if(!(t.length<3)){var i=[],o=e.attributes;for(r=0;r<o.length;r++){for(var s=o[r],a=0;a<t.length;a++){var l,d=p(l=t[a],s.nodeName);d&&d.nodeValue===s.nodeValue&&i.push(l)}if(i.length<3)return;t=i,i=[]}for(r=2;r<t.length;r++)this.removeElementFromActiveFormattingElements(t[r])}}},g.prototype.appendElementToActiveFormattingElements=function(e){this.ensureNoahsArkCondition(e),this.activeFormattingElements.push(e)},g.prototype.removeElementFromActiveFormattingElements=function(e){var t=this.activeFormattingElements.indexOf(e);t>=0&&this.activeFormattingElements.splice(t,1)},g.prototype.elementInActiveFormattingElements=function(e){for(var t=this.activeFormattingElements,n=t.length-1;n>=0&&t[n]!=c;n--)if(t[n].localName==e)return t[n];return!1},g.prototype.clearActiveFormattingElements=function(){for(;0!==this.activeFormattingElements.length&&this.activeFormattingElements.pop()!=c;);},g.prototype.reparentChildren=function(e,t){throw new Error("Not implemented")},g.prototype.setFragmentContext=function(e){this.context=e},g.prototype.parseError=function(e,t){if(this.errorHandler){var n=function(e,t){return e.replace(new RegExp("{[0-9a-z-]+}","gi"),(function(e){return t[e.slice(1,-1)]||e}))}(i[e],t);this.errorHandler.error(n,this.tokenizer._inputStream.location(),e)}},g.prototype.resetInsertionMode=function(){for(var e=!1,t=null,n=this.openElements.length-1;n>=0;n--){if(t=this.openElements.item(n),0===n&&(r.ok(this.context),e=!0,t=new l("http://www.w3.org/1999/xhtml",this.context,[],null)),"http://www.w3.org/1999/xhtml"===t.namespaceURI){if("select"===t.localName)return this.setInsertionMode("inSelect");if("td"===t.localName||"th"===t.localName)return this.setInsertionMode("inCell");if("tr"===t.localName)return this.setInsertionMode("inRow");if("tbody"===t.localName||"thead"===t.localName||"tfoot"===t.localName)return this.setInsertionMode("inTableBody");if("caption"===t.localName)return this.setInsertionMode("inCaption");if("colgroup"===t.localName)return this.setInsertionMode("inColumnGroup");if("table"===t.localName)return this.setInsertionMode("inTable");if("head"===t.localName)return this.setInsertionMode("inHead");if("body"===t.localName)return this.setInsertionMode("inBody");if("frameset"===t.localName)return this.setInsertionMode("inFrameset");if("html"===t.localName)return this.openElements.headElement?this.setInsertionMode("afterHead"):this.setInsertionMode("beforeHead")}if(e)return this.setInsertionMode("inBody")}},g.prototype.processGenericRCDATAStartTag=function(e,t){this.insertElement(e,t),this.tokenizer.setState(s.RCDATA),this.originalInsertionMode=this.insertionModeName,this.setInsertionMode("text")},g.prototype.processGenericRawTextStartTag=function(e,t){this.insertElement(e,t),this.tokenizer.setState(s.RAWTEXT),this.originalInsertionMode=this.insertionModeName,this.setInsertionMode("text")},g.prototype.adjustMathMLAttributes=function(e){return e.forEach((function(e){e.namespaceURI="http://www.w3.org/1998/Math/MathML",o.MATHMLAttributeMap[e.nodeName]&&(e.nodeName=o.MATHMLAttributeMap[e.nodeName])})),e},g.prototype.adjustSVGTagNameCase=function(e){return o.SVGTagMap[e]||e},g.prototype.adjustSVGAttributes=function(e){return e.forEach((function(e){e.namespaceURI="http://www.w3.org/2000/svg",o.SVGAttributeMap[e.nodeName]&&(e.nodeName=o.SVGAttributeMap[e.nodeName])})),e},g.prototype.adjustForeignAttributes=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=o.ForeignAttributeMap[n.nodeName];r&&(n.nodeName=r.localName,n.prefix=r.prefix,n.namespaceURI=r.namespaceURI)}return e},n.TreeBuilder=g},{"./ElementStack":1,"./StackItem":4,"./Tokenizer":5,"./constants":7,"./messages.json":8,assert:13,events:16}],7:[function(e,t,n){n.SVGTagMap={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},n.MATHMLAttributeMap={definitionurl:"definitionURL"},n.SVGAttributeMap={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",externalresourcesrequired:"externalResourcesRequired",filterres:"filterRes",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},n.ForeignAttributeMap={"xlink:actuate":{prefix:"xlink",localName:"actuate",namespaceURI:"http://www.w3.org/1999/xlink"},"xlink:arcrole":{prefix:"xlink",localName:"arcrole",namespaceURI:"http://www.w3.org/1999/xlink"},"xlink:href":{prefix:"xlink",localName:"href",namespaceURI:"http://www.w3.org/1999/xlink"},"xlink:role":{prefix:"xlink",localName:"role",namespaceURI:"http://www.w3.org/1999/xlink"},"xlink:show":{prefix:"xlink",localName:"show",namespaceURI:"http://www.w3.org/1999/xlink"},"xlink:title":{prefix:"xlink",localName:"title",namespaceURI:"http://www.w3.org/1999/xlink"},"xlink:type":{prefix:"xlink",localName:"title",namespaceURI:"http://www.w3.org/1999/xlink"},"xml:base":{prefix:"xml",localName:"base",namespaceURI:"http://www.w3.org/XML/1998/namespace"},"xml:lang":{prefix:"xml",localName:"lang",namespaceURI:"http://www.w3.org/XML/1998/namespace"},"xml:space":{prefix:"xml",localName:"space",namespaceURI:"http://www.w3.org/XML/1998/namespace"},xmlns:{prefix:null,localName:"xmlns",namespaceURI:"http://www.w3.org/2000/xmlns/"},"xmlns:xlink":{prefix:"xmlns",localName:"xlink",namespaceURI:"http://www.w3.org/2000/xmlns/"}}},{}],8:[function(e,t,n){t.exports={"null-character":"Null character in input stream, replaced with U+FFFD.","invalid-codepoint":"Invalid codepoint in stream","incorrectly-placed-solidus":"Solidus (/) incorrectly placed in tag.","incorrect-cr-newline-entity":"Incorrect CR newline entity, replaced with LF.","illegal-windows-1252-entity":"Entity used with illegal number (windows-1252 reference).","cant-convert-numeric-entity":"Numeric entity couldn't be converted to character (codepoint U+{charAsInt}).","invalid-numeric-entity-replaced":"Numeric entity represents an illegal codepoint. Expanded to the C1 controls range.","numeric-entity-without-semicolon":"Numeric entity didn't end with ';'.","expected-numeric-entity-but-got-eof":"Numeric entity expected. Got end of file instead.","expected-numeric-entity":"Numeric entity expected but none found.","named-entity-without-semicolon":"Named entity didn't end with ';'.","expected-named-entity":"Named entity expected. Got none.","attributes-in-end-tag":"End tag contains unexpected attributes.","self-closing-flag-on-end-tag":"End tag contains unexpected self-closing flag.","bare-less-than-sign-at-eof":"End of file after <.","expected-tag-name-but-got-right-bracket":"Expected tag name. Got '>' instead.","expected-tag-name-but-got-question-mark":"Expected tag name. Got '?' instead. (HTML doesn't support processing instructions.)","expected-tag-name":"Expected tag name. Got something else instead.","expected-closing-tag-but-got-right-bracket":"Expected closing tag. Got '>' instead. Ignoring '</>'.","expected-closing-tag-but-got-eof":"Expected closing tag. Unexpected end of file.","expected-closing-tag-but-got-char":"Expected closing tag. Unexpected character '{data}' found.","eof-in-tag-name":"Unexpected end of file in the tag name.","expected-attribute-name-but-got-eof":"Unexpected end of file. Expected attribute name instead.","eof-in-attribute-name":"Unexpected end of file in attribute name.","invalid-character-in-attribute-name":"Invalid character in attribute name.","duplicate-attribute":"Dropped duplicate attribute '{name}' on tag.","expected-end-of-tag-but-got-eof":"Unexpected end of file. Expected = or end of tag.","expected-attribute-value-but-got-eof":"Unexpected end of file. Expected attribute value.","expected-attribute-value-but-got-right-bracket":"Expected attribute value. Got '>' instead.","unexpected-character-in-unquoted-attribute-value":"Unexpected character in unquoted attribute","invalid-character-after-attribute-name":"Unexpected character after attribute name.","unexpected-character-after-attribute-value":"Unexpected character after attribute value.","eof-in-attribute-value-double-quote":'Unexpected end of file in attribute value (").',"eof-in-attribute-value-single-quote":"Unexpected end of file in attribute value (').","eof-in-attribute-value-no-quotes":"Unexpected end of file in attribute value.","eof-after-attribute-value":"Unexpected end of file after attribute value.","unexpected-eof-after-solidus-in-tag":"Unexpected end of file in tag. Expected >.","unexpected-character-after-solidus-in-tag":"Unexpected character after / in tag. Expected >.","expected-dashes-or-doctype":"Expected '--' or 'DOCTYPE'. Not found.","unexpected-bang-after-double-dash-in-comment":"Unexpected ! after -- in comment.","incorrect-comment":"Incorrect comment.","eof-in-comment":"Unexpected end of file in comment.","eof-in-comment-end-dash":"Unexpected end of file in comment (-).","unexpected-dash-after-double-dash-in-comment":"Unexpected '-' after '--' found in comment.","eof-in-comment-double-dash":"Unexpected end of file in comment (--).","eof-in-comment-end-bang-state":"Unexpected end of file in comment.","unexpected-char-in-comment":"Unexpected character in comment found.","need-space-after-doctype":"No space after literal string 'DOCTYPE'.","expected-doctype-name-but-got-right-bracket":"Unexpected > character. Expected DOCTYPE name.","expected-doctype-name-but-got-eof":"Unexpected end of file. Expected DOCTYPE name.","eof-in-doctype-name":"Unexpected end of file in DOCTYPE name.","eof-in-doctype":"Unexpected end of file in DOCTYPE.","expected-space-or-right-bracket-in-doctype":"Expected space or '>'. Got '{data}'.","unexpected-end-of-doctype":"Unexpected end of DOCTYPE.","unexpected-char-in-doctype":"Unexpected character in DOCTYPE.","eof-in-bogus-doctype":"Unexpected end of file in bogus doctype.","eof-in-innerhtml":"Unexpected EOF in inner html mode.","unexpected-doctype":"Unexpected DOCTYPE. Ignored.","non-html-root":"html needs to be the first start tag.","expected-doctype-but-got-eof":"Unexpected End of file. Expected DOCTYPE.","unknown-doctype":"Erroneous DOCTYPE. Expected <!DOCTYPE html>.","quirky-doctype":"Quirky doctype. Expected <!DOCTYPE html>.","almost-standards-doctype":"Almost standards mode doctype. Expected <!DOCTYPE html>.","obsolete-doctype":"Obsolete doctype. Expected <!DOCTYPE html>.","expected-doctype-but-got-chars":"Non-space characters found without seeing a doctype first. Expected e.g. <!DOCTYPE html>.","expected-doctype-but-got-start-tag":"Start tag seen without seeing a doctype first. Expected e.g. <!DOCTYPE html>.","expected-doctype-but-got-end-tag":"End tag seen without seeing a doctype first. Expected e.g. <!DOCTYPE html>.","end-tag-after-implied-root":"Unexpected end tag ({name}) after the (implied) root element.","expected-named-closing-tag-but-got-eof":"Unexpected end of file. Expected end tag ({name}).","two-heads-are-not-better-than-one":"Unexpected start tag head in existing head. Ignored.","unexpected-end-tag":"Unexpected end tag ({name}). Ignored.","unexpected-implied-end-tag":"End tag {name} implied, but there were open elements.","unexpected-start-tag-out-of-my-head":"Unexpected start tag ({name}) that can be in head. Moved.","unexpected-start-tag":"Unexpected start tag ({name}).","missing-end-tag":"Missing end tag ({name}).","missing-end-tags":"Missing end tags ({name}).","unexpected-start-tag-implies-end-tag":"Unexpected start tag ({startName}) implies end tag ({endName}).","unexpected-start-tag-treated-as":"Unexpected start tag ({originalName}). Treated as {newName}.","deprecated-tag":"Unexpected start tag {name}. Don't use it!","unexpected-start-tag-ignored":"Unexpected start tag {name}. Ignored.","expected-one-end-tag-but-got-another":"Unexpected end tag ({gotName}). Missing end tag ({expectedName}).","end-tag-too-early":"End tag ({name}) seen too early. Expected other end tag.","end-tag-too-early-named":"Unexpected end tag ({gotName}). Expected end tag ({expectedName}.","end-tag-too-early-ignored":"End tag ({name}) seen too early. Ignored.","adoption-agency-1.1":"End tag ({name}) violates step 1, paragraph 1 of the adoption agency algorithm.","adoption-agency-1.2":"End tag ({name}) violates step 1, paragraph 2 of the adoption agency algorithm.","adoption-agency-1.3":"End tag ({name}) violates step 1, paragraph 3 of the adoption agency algorithm.","adoption-agency-4.4":"End tag ({name}) violates step 4, paragraph 4 of the adoption agency algorithm.","unexpected-end-tag-treated-as":"Unexpected end tag ({originalName}). Treated as {newName}.","no-end-tag":"This element ({name}) has no end tag.","unexpected-implied-end-tag-in-table":"Unexpected implied end tag ({name}) in the table phase.","unexpected-implied-end-tag-in-table-body":"Unexpected implied end tag ({name}) in the table body phase.","unexpected-char-implies-table-voodoo":"Unexpected non-space characters in table context caused voodoo mode.","unexpected-hidden-input-in-table":"Unexpected input with type hidden in table context.","unexpected-form-in-table":"Unexpected form in table context.","unexpected-start-tag-implies-table-voodoo":"Unexpected start tag ({name}) in table context caused voodoo mode.","unexpected-end-tag-implies-table-voodoo":"Unexpected end tag ({name}) in table context caused voodoo mode.","unexpected-cell-in-table-body":"Unexpected table cell start tag ({name}) in the table body phase.","unexpected-cell-end-tag":"Got table cell end tag ({name}) while required end tags are missing.","unexpected-end-tag-in-table-body":"Unexpected end tag ({name}) in the table body phase. Ignored.","unexpected-implied-end-tag-in-table-row":"Unexpected implied end tag ({name}) in the table row phase.","unexpected-end-tag-in-table-row":"Unexpected end tag ({name}) in the table row phase. Ignored.","unexpected-select-in-select":"Unexpected select start tag in the select phase treated as select end tag.","unexpected-input-in-select":"Unexpected input start tag in the select phase.","unexpected-start-tag-in-select":"Unexpected start tag token ({name}) in the select phase. Ignored.","unexpected-end-tag-in-select":"Unexpected end tag ({name}) in the select phase. Ignored.","unexpected-table-element-start-tag-in-select-in-table":"Unexpected table element start tag ({name}) in the select in table phase.","unexpected-table-element-end-tag-in-select-in-table":"Unexpected table element end tag ({name}) in the select in table phase.","unexpected-char-after-body":"Unexpected non-space characters in the after body phase.","unexpected-start-tag-after-body":"Unexpected start tag token ({name}) in the after body phase.","unexpected-end-tag-after-body":"Unexpected end tag token ({name}) in the after body phase.","unexpected-char-in-frameset":"Unepxected characters in the frameset phase. Characters ignored.","unexpected-start-tag-in-frameset":"Unexpected start tag token ({name}) in the frameset phase. Ignored.","unexpected-frameset-in-frameset-innerhtml":"Unexpected end tag token (frameset in the frameset phase (innerHTML).","unexpected-end-tag-in-frameset":"Unexpected end tag token ({name}) in the frameset phase. Ignored.","unexpected-char-after-frameset":"Unexpected non-space characters in the after frameset phase. Ignored.","unexpected-start-tag-after-frameset":"Unexpected start tag ({name}) in the after frameset phase. Ignored.","unexpected-end-tag-after-frameset":"Unexpected end tag ({name}) in the after frameset phase. Ignored.","expected-eof-but-got-char":"Unexpected non-space characters. Expected end of file.","expected-eof-but-got-start-tag":"Unexpected start tag ({name}). Expected end of file.","expected-eof-but-got-end-tag":"Unexpected end tag ({name}). Expected end of file.","unexpected-end-table-in-caption":"Unexpected end table tag in caption. Generates implied end caption.","end-html-in-innerhtml":"Unexpected html end tag in inner html mode.","eof-in-table":"Unexpected end of file. Expected table content.","eof-in-script":"Unexpected end of file. Expected script content.","non-void-element-with-trailing-solidus":"Trailing solidus not allowed on element {name}.","unexpected-html-element-in-foreign-content":'HTML start tag "{name}" in a foreign namespace context.',"unexpected-start-tag-in-table":"Unexpected {name}. Expected table content."}},{}],9:[function(e,t,n){var r=e("./SAXTreeBuilder").SAXTreeBuilder,i=e("../Tokenizer").Tokenizer,o=e("./TreeParser").TreeParser;function s(){this.contentHandler=null,this._errorHandler=null,this._treeBuilder=new r,this._tokenizer=new i(this._treeBuilder),this._scriptingEnabled=!1}s.prototype.parse=function(e,t){t&&this._treeBuilder.setFragmentContext(t),this._tokenizer.tokenize(e);var n=this._treeBuilder.document;n&&new o(this.contentHandler).parse(n)},s.prototype.parseFragment=function(e,t){this._treeBuilder.setFragmentContext(t),this._tokenizer.tokenize(e);var n=this._treeBuilder.getFragment();n&&new o(this.contentHandler).parse(n)},Object.defineProperty(s.prototype,"scriptingEnabled",{get:function(){return this._scriptingEnabled},set:function(e){this._scriptingEnabled=e,this._treeBuilder.scriptingEnabled=e}}),Object.defineProperty(s.prototype,"errorHandler",{get:function(){return this._errorHandler},set:function(e){this._errorHandler=e,this._treeBuilder.errorHandler=e}}),n.SAXParser=s},{"../Tokenizer":5,"./SAXTreeBuilder":10,"./TreeParser":11}],10:[function(e,t,n){var r=e("util"),i=e("../TreeBuilder").TreeBuilder;function o(){i.call(this)}function s(e,t){for(var n=0;n<e.attributes.length;n++){var r=e.attributes[n];if(r.nodeName===t)return r.nodeValue}}r.inherits(o,i),o.prototype.start=function(e){this.document=new d(this.tokenizer)},o.prototype.end=function(){this.document.endLocator=this.tokenizer},o.prototype.insertDoctype=function(e,t,n){var r=new w(this.tokenizer,e,t,n);r.endLocator=this.tokenizer,this.document.appendChild(r)},o.prototype.createElement=function(e,t,n){return new h(this.tokenizer,e,t,t,n||[])},o.prototype.insertComment=function(e,t){t||(t=this.currentStackItem());var n=new g(this.tokenizer,e);t.appendChild(n)},o.prototype.appendCharacters=function(e,t){var n=new p(this.tokenizer,t);e.appendChild(n)},o.prototype.insertText=function(e){if(this.redirectAttachToFosterParent&&this.openElements.top.isFosterParenting()){var t=this.openElements.findIndex("table"),n=this.openElements.item(t).node;if(0===t)return this.appendCharacters(n,e);var r=new p(this.tokenizer,e),i=n.parentNode;return i?void i.insertBetween(r,n.previousSibling,n):void this.openElements.item(t-1).node.appendChild(r)}this.appendCharacters(this.currentStackItem().node,e)},o.prototype.attachNode=function(e,t){t.appendChild(e)},o.prototype.attachNodeToFosterParent=function(e,t,n){var r=t.parentNode;r?r.insertBetween(e,t.previousSibling,t):n.appendChild(e)},o.prototype.detachFromParent=function(e){e.detach()},o.prototype.reparentChildren=function(e,t){t.appendChildren(e.firstChild)},o.prototype.getFragment=function(){var e=new u;return this.reparentChildren(this.openElements.rootNode,e),e},o.prototype.addAttributesToElement=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];s(e,r.nodeName)||e.attributes.push(r)}};var a={CDATA:1,CHARACTERS:2,COMMENT:3,DOCUMENT:4,DOCUMENT_FRAGMENT:5,DTD:6,ELEMENT:7,ENTITY:8,IGNORABLE_WHITESPACE:9,PROCESSING_INSTRUCTION:10,SKIPPED_ENTITY:11};function l(e){e?(this.columnNumber=e.columnNumber,this.lineNumber=e.lineNumber):(this.columnNumber=-1,this.lineNumber=-1),this.parentNode=null,this.nextSibling=null,this.firstChild=null}function c(e){l.call(this,e),this.lastChild=null,this._endLocator=null}function d(e){c.call(this,e),this.nodeType=a.DOCUMENT}function u(){c.call(this,new Locator),this.nodeType=a.DOCUMENT_FRAGMENT}function h(e,t,n,r,i,o){c.call(this,e),this.uri=t,this.localName=n,this.qName=r,this.attributes=i,this.prefixMappings=o,this.nodeType=a.ELEMENT}function p(e,t){l.call(this,e),this.data=t,this.nodeType=a.CHARACTERS}function f(e,t){l.call(this,e),this.data=t,this.nodeType=a.IGNORABLE_WHITESPACE}function g(e,t){l.call(this,e),this.data=t,this.nodeType=a.COMMENT}function m(e){c.call(this,e),this.nodeType=a.CDATA}function b(e){c.call(this),this.name=e,this.nodeType=a.ENTITY}function v(e){l.call(this),this.name=e,this.nodeType=a.SKIPPED_ENTITY}function y(e,t){l.call(this),this.target=e,this.data=t}function w(e,t,n){c.call(this),this.name=e,this.publicIdentifier=t,this.systemIdentifier=n,this.nodeType=a.DTD}l.prototype.visit=function(e){throw new Error("Not Implemented")},l.prototype.revisit=function(e){},l.prototype.detach=function(){null!==this.parentNode&&(this.parentNode.removeChild(this),this.parentNode=null)},Object.defineProperty(l.prototype,"previousSibling",{get:function(){for(var e=null,t=this.parentNode.firstChild;;){if(this==t)return e;e=t,t=t.nextSibling}}}),c.prototype=Object.create(l.prototype),c.prototype.insertBefore=function(e,t){if(!t)return this.appendChild(e);if(e.detach(),e.parentNode=this,this.firstChild==t)e.nextSibling=t,this.firstChild=e;else{for(var n=this.firstChild,r=this.firstChild.nextSibling;r!=t;)n=r,r=r.nextSibling;n.nextSibling=e,e.nextSibling=r}return e},c.prototype.insertBetween=function(e,t,n){return n?(e.detach(),e.parentNode=this,e.nextSibling=n,t?t.nextSibling=e:firstChild=e,e):this.appendChild(e)},c.prototype.appendChild=function(e){return e.detach(),e.parentNode=this,this.firstChild?this.lastChild.nextSibling=e:this.firstChild=e,this.lastChild=e,e},c.prototype.appendChildren=function(e){var t=e.firstChild;if(t){var n=e;this.firstChild?this.lastChild.nextSibling=t:this.firstChild=t,this.lastChild=n.lastChild;do{t.parentNode=this}while(t=t.nextSibling);n.firstChild=null,n.lastChild=null}},c.prototype.removeChild=function(e){if(this.firstChild==e)this.firstChild=e.nextSibling,this.lastChild==e&&(this.lastChild=null);else{for(var t=this.firstChild,n=this.firstChild.nextSibling;n!=e;)t=n,n=n.nextSibling;t.nextSibling=e.nextSibling,this.lastChild==e&&(this.lastChild=t)}return e.parentNode=null,e},Object.defineProperty(c.prototype,"endLocator",{get:function(){return this._endLocator},set:function(e){this._endLocator={lineNumber:e.lineNumber,columnNumber:e.columnNumber}}}),d.prototype=Object.create(c.prototype),d.prototype.visit=function(e){e.startDocument(this)},d.prototype.revisit=function(e){e.endDocument(this.endLocator)},u.prototype=Object.create(c.prototype),u.prototype.visit=function(e){},h.prototype=Object.create(c.prototype),h.prototype.visit=function(e){if(this.prefixMappings)for(var t in prefixMappings){var n=prefixMappings[t];e.startPrefixMapping(n.getPrefix(),n.getUri(),this)}e.startElement(this.uri,this.localName,this.qName,this.attributes,this)},h.prototype.revisit=function(e){if(e.endElement(this.uri,this.localName,this.qName,this.endLocator),this.prefixMappings)for(var t in prefixMappings){var n=prefixMappings[t];e.endPrefixMapping(n.getPrefix(),this.endLocator)}},p.prototype=Object.create(l.prototype),p.prototype.visit=function(e){e.characters(this.data,0,this.data.length,this)},f.prototype=Object.create(l.prototype),f.prototype.visit=function(e){e.ignorableWhitespace(this.data,0,this.data.length,this)},g.prototype=Object.create(l.prototype),g.prototype.visit=function(e){e.comment(this.data,0,this.data.length,this)},m.prototype=Object.create(c.prototype),m.prototype.visit=function(e){e.startCDATA(this)},m.prototype.revisit=function(e){e.endCDATA(this.endLocator)},b.prototype=Object.create(c.prototype),b.prototype.visit=function(e){e.startEntity(this.name,this)},b.prototype.revisit=function(e){e.endEntity(this.name)},v.prototype=Object.create(l.prototype),v.prototype.visit=function(e){e.skippedEntity(this.name,this)},y.prototype=Object.create(l.prototype),y.prototype.visit=function(e){e.processingInstruction(this.target,this.data,this)},y.prototype.getNodeType=function(){return a.PROCESSING_INSTRUCTION},w.prototype=Object.create(c.prototype),w.prototype.visit=function(e){e.startDTD(this.name,this.publicIdentifier,this.systemIdentifier,this)},w.prototype.revisit=function(e){e.endDTD()},n.SAXTreeBuilder=o},{"../TreeBuilder":6,util:20}],11:[function(e,t,n){function r(e,t){if(this.contentHandler,this.lexicalHandler,this.locatorDelegate,!e)throw new IllegalArgumentException("contentHandler was null.");this.contentHandler=e,this.lexicalHandler=t||new i}function i(){}r.prototype.parse=function(e){this.contentHandler.documentLocator=this;for(var t,n=e;;)if(n.visit(this),t=n.firstChild)n=t;else for(;;){if(n.revisit(this),n==e)return;if(t=n.nextSibling){n=t;break}n=n.parentNode}},r.prototype.characters=function(e,t,n,r){this.locatorDelegate=r,this.contentHandler.characters(e,t,n)},r.prototype.endDocument=function(e){this.locatorDelegate=e,this.contentHandler.endDocument()},r.prototype.endElement=function(e,t,n,r){this.locatorDelegate=r,this.contentHandler.endElement(e,t,n)},r.prototype.endPrefixMapping=function(e,t){this.locatorDelegate=t,this.contentHandler.endPrefixMapping(e)},r.prototype.ignorableWhitespace=function(e,t,n,r){this.locatorDelegate=r,this.contentHandler.ignorableWhitespace(e,t,n)},r.prototype.processingInstruction=function(e,t,n){this.locatorDelegate=n,this.contentHandler.processingInstruction(e,t)},r.prototype.skippedEntity=function(e,t){this.locatorDelegate=t,this.contentHandler.skippedEntity(e)},r.prototype.startDocument=function(e){this.locatorDelegate=e,this.contentHandler.startDocument()},r.prototype.startElement=function(e,t,n,r,i){this.locatorDelegate=i,this.contentHandler.startElement(e,t,n,r)},r.prototype.startPrefixMapping=function(e,t,n){this.locatorDelegate=n,this.contentHandler.startPrefixMapping(e,t)},r.prototype.comment=function(e,t,n,r){this.locatorDelegate=r,this.lexicalHandler.comment(e,t,n)},r.prototype.endCDATA=function(e){this.locatorDelegate=e,this.lexicalHandler.endCDATA()},r.prototype.endDTD=function(e){this.locatorDelegate=e,this.lexicalHandler.endDTD()},r.prototype.endEntity=function(e,t){this.locatorDelegate=t,this.lexicalHandler.endEntity(e)},r.prototype.startCDATA=function(e){this.locatorDelegate=e,this.lexicalHandler.startCDATA()},r.prototype.startDTD=function(e,t,n,r){this.locatorDelegate=r,this.lexicalHandler.startDTD(e,t,n)},r.prototype.startEntity=function(e,t){this.locatorDelegate=t,this.lexicalHandler.startEntity(e)},Object.defineProperty(r.prototype,"columnNumber",{get:function(){return this.locatorDelegate?this.locatorDelegate.columnNumber:-1}}),Object.defineProperty(r.prototype,"lineNumber",{get:function(){return this.locatorDelegate?this.locatorDelegate.lineNumber:-1}}),i.prototype.comment=function(){},i.prototype.endCDATA=function(){},i.prototype.endDTD=function(){},i.prototype.endEntity=function(){},i.prototype.startCDATA=function(){},i.prototype.startDTD=function(){},i.prototype.startEntity=function(){},n.TreeParser=r},{}],12:[function(e,t,n){t.exports={"Aacute;":"Á",Aacute:"Á","aacute;":"á",aacute:"á","Abreve;":"Ă","abreve;":"ă","ac;":"∾","acd;":"∿","acE;":"∾̳","Acirc;":"Â",Acirc:"Â","acirc;":"â",acirc:"â","acute;":"´",acute:"´","Acy;":"А","acy;":"а","AElig;":"Æ",AElig:"Æ","aelig;":"æ",aelig:"æ","af;":"","Afr;":"𝔄","afr;":"𝔞","Agrave;":"À",Agrave:"À","agrave;":"à",agrave:"à","alefsym;":"ℵ","aleph;":"ℵ","Alpha;":"Α","alpha;":"α","Amacr;":"Ā","amacr;":"ā","amalg;":"⨿","amp;":"&",amp:"&","AMP;":"&",AMP:"&","andand;":"⩕","And;":"⩓","and;":"∧","andd;":"⩜","andslope;":"⩘","andv;":"⩚","ang;":"∠","ange;":"⦤","angle;":"∠","angmsdaa;":"⦨","angmsdab;":"⦩","angmsdac;":"⦪","angmsdad;":"⦫","angmsdae;":"⦬","angmsdaf;":"⦭","angmsdag;":"⦮","angmsdah;":"⦯","angmsd;":"∡","angrt;":"∟","angrtvb;":"⊾","angrtvbd;":"⦝","angsph;":"∢","angst;":"Å","angzarr;":"⍼","Aogon;":"Ą","aogon;":"ą","Aopf;":"𝔸","aopf;":"𝕒","apacir;":"⩯","ap;":"≈","apE;":"⩰","ape;":"≊","apid;":"≋","apos;":"'","ApplyFunction;":"","approx;":"≈","approxeq;":"≊","Aring;":"Å",Aring:"Å","aring;":"å",aring:"å","Ascr;":"𝒜","ascr;":"𝒶","Assign;":"≔","ast;":"*","asymp;":"≈","asympeq;":"≍","Atilde;":"Ã",Atilde:"Ã","atilde;":"ã",atilde:"ã","Auml;":"Ä",Auml:"Ä","auml;":"ä",auml:"ä","awconint;":"∳","awint;":"⨑","backcong;":"≌","backepsilon;":"϶","backprime;":"‵","backsim;":"∽","backsimeq;":"⋍","Backslash;":"∖","Barv;":"⫧","barvee;":"⊽","barwed;":"⌅","Barwed;":"⌆","barwedge;":"⌅","bbrk;":"⎵","bbrktbrk;":"⎶","bcong;":"≌","Bcy;":"Б","bcy;":"б","bdquo;":"„","becaus;":"∵","because;":"∵","Because;":"∵","bemptyv;":"⦰","bepsi;":"϶","bernou;":"ℬ","Bernoullis;":"ℬ","Beta;":"Β","beta;":"β","beth;":"ℶ","between;":"≬","Bfr;":"𝔅","bfr;":"𝔟","bigcap;":"⋂","bigcirc;":"◯","bigcup;":"⋃","bigodot;":"⨀","bigoplus;":"⨁","bigotimes;":"⨂","bigsqcup;":"⨆","bigstar;":"★","bigtriangledown;":"▽","bigtriangleup;":"△","biguplus;":"⨄","bigvee;":"⋁","bigwedge;":"⋀","bkarow;":"⤍","blacklozenge;":"⧫","blacksquare;":"▪","blacktriangle;":"▴","blacktriangledown;":"▾","blacktriangleleft;":"◂","blacktriangleright;":"▸","blank;":"␣","blk12;":"▒","blk14;":"░","blk34;":"▓","block;":"█","bne;":"=⃥","bnequiv;":"≡⃥","bNot;":"⫭","bnot;":"⌐","Bopf;":"𝔹","bopf;":"𝕓","bot;":"⊥","bottom;":"⊥","bowtie;":"⋈","boxbox;":"⧉","boxdl;":"┐","boxdL;":"╕","boxDl;":"╖","boxDL;":"╗","boxdr;":"┌","boxdR;":"╒","boxDr;":"╓","boxDR;":"╔","boxh;":"─","boxH;":"═","boxhd;":"┬","boxHd;":"╤","boxhD;":"╥","boxHD;":"╦","boxhu;":"┴","boxHu;":"╧","boxhU;":"╨","boxHU;":"╩","boxminus;":"⊟","boxplus;":"⊞","boxtimes;":"⊠","boxul;":"┘","boxuL;":"╛","boxUl;":"╜","boxUL;":"╝","boxur;":"└","boxuR;":"╘","boxUr;":"╙","boxUR;":"╚","boxv;":"│","boxV;":"║","boxvh;":"┼","boxvH;":"╪","boxVh;":"╫","boxVH;":"╬","boxvl;":"┤","boxvL;":"╡","boxVl;":"╢","boxVL;":"╣","boxvr;":"├","boxvR;":"╞","boxVr;":"╟","boxVR;":"╠","bprime;":"‵","breve;":"˘","Breve;":"˘","brvbar;":"¦",brvbar:"¦","bscr;":"𝒷","Bscr;":"ℬ","bsemi;":"⁏","bsim;":"∽","bsime;":"⋍","bsolb;":"⧅","bsol;":"\\","bsolhsub;":"⟈","bull;":"•","bullet;":"•","bump;":"≎","bumpE;":"⪮","bumpe;":"≏","Bumpeq;":"≎","bumpeq;":"≏","Cacute;":"Ć","cacute;":"ć","capand;":"⩄","capbrcup;":"⩉","capcap;":"⩋","cap;":"∩","Cap;":"⋒","capcup;":"⩇","capdot;":"⩀","CapitalDifferentialD;":"ⅅ","caps;":"∩︀","caret;":"⁁","caron;":"ˇ","Cayleys;":"ℭ","ccaps;":"⩍","Ccaron;":"Č","ccaron;":"č","Ccedil;":"Ç",Ccedil:"Ç","ccedil;":"ç",ccedil:"ç","Ccirc;":"Ĉ","ccirc;":"ĉ","Cconint;":"∰","ccups;":"⩌","ccupssm;":"⩐","Cdot;":"Ċ","cdot;":"ċ","cedil;":"¸",cedil:"¸","Cedilla;":"¸","cemptyv;":"⦲","cent;":"¢",cent:"¢","centerdot;":"·","CenterDot;":"·","cfr;":"𝔠","Cfr;":"ℭ","CHcy;":"Ч","chcy;":"ч","check;":"✓","checkmark;":"✓","Chi;":"Χ","chi;":"χ","circ;":"ˆ","circeq;":"≗","circlearrowleft;":"↺","circlearrowright;":"↻","circledast;":"⊛","circledcirc;":"⊚","circleddash;":"⊝","CircleDot;":"⊙","circledR;":"®","circledS;":"Ⓢ","CircleMinus;":"⊖","CirclePlus;":"⊕","CircleTimes;":"⊗","cir;":"○","cirE;":"⧃","cire;":"≗","cirfnint;":"⨐","cirmid;":"⫯","cirscir;":"⧂","ClockwiseContourIntegral;":"∲","CloseCurlyDoubleQuote;":"”","CloseCurlyQuote;":"’","clubs;":"♣","clubsuit;":"♣","colon;":":","Colon;":"∷","Colone;":"⩴","colone;":"≔","coloneq;":"≔","comma;":",","commat;":"@","comp;":"∁","compfn;":"∘","complement;":"∁","complexes;":"ℂ","cong;":"≅","congdot;":"⩭","Congruent;":"≡","conint;":"∮","Conint;":"∯","ContourIntegral;":"∮","copf;":"𝕔","Copf;":"ℂ","coprod;":"∐","Coproduct;":"∐","copy;":"©",copy:"©","COPY;":"©",COPY:"©","copysr;":"℗","CounterClockwiseContourIntegral;":"∳","crarr;":"↵","cross;":"✗","Cross;":"⨯","Cscr;":"𝒞","cscr;":"𝒸","csub;":"⫏","csube;":"⫑","csup;":"⫐","csupe;":"⫒","ctdot;":"⋯","cudarrl;":"⤸","cudarrr;":"⤵","cuepr;":"⋞","cuesc;":"⋟","cularr;":"↶","cularrp;":"⤽","cupbrcap;":"⩈","cupcap;":"⩆","CupCap;":"≍","cup;":"∪","Cup;":"⋓","cupcup;":"⩊","cupdot;":"⊍","cupor;":"⩅","cups;":"∪︀","curarr;":"↷","curarrm;":"⤼","curlyeqprec;":"⋞","curlyeqsucc;":"⋟","curlyvee;":"⋎","curlywedge;":"⋏","curren;":"¤",curren:"¤","curvearrowleft;":"↶","curvearrowright;":"↷","cuvee;":"⋎","cuwed;":"⋏","cwconint;":"∲","cwint;":"∱","cylcty;":"⌭","dagger;":"†","Dagger;":"‡","daleth;":"ℸ","darr;":"↓","Darr;":"↡","dArr;":"⇓","dash;":"‐","Dashv;":"⫤","dashv;":"⊣","dbkarow;":"⤏","dblac;":"˝","Dcaron;":"Ď","dcaron;":"ď","Dcy;":"Д","dcy;":"д","ddagger;":"‡","ddarr;":"⇊","DD;":"ⅅ","dd;":"ⅆ","DDotrahd;":"⤑","ddotseq;":"⩷","deg;":"°",deg:"°","Del;":"∇","Delta;":"Δ","delta;":"δ","demptyv;":"⦱","dfisht;":"⥿","Dfr;":"𝔇","dfr;":"𝔡","dHar;":"⥥","dharl;":"⇃","dharr;":"⇂","DiacriticalAcute;":"´","DiacriticalDot;":"˙","DiacriticalDoubleAcute;":"˝","DiacriticalGrave;":"`","DiacriticalTilde;":"˜","diam;":"⋄","diamond;":"⋄","Diamond;":"⋄","diamondsuit;":"♦","diams;":"♦","die;":"¨","DifferentialD;":"ⅆ","digamma;":"ϝ","disin;":"⋲","div;":"÷","divide;":"÷",divide:"÷","divideontimes;":"⋇","divonx;":"⋇","DJcy;":"Ђ","djcy;":"ђ","dlcorn;":"⌞","dlcrop;":"⌍","dollar;":"$","Dopf;":"𝔻","dopf;":"𝕕","Dot;":"¨","dot;":"˙","DotDot;":"⃜","doteq;":"≐","doteqdot;":"≑","DotEqual;":"≐","dotminus;":"∸","dotplus;":"∔","dotsquare;":"⊡","doublebarwedge;":"⌆","DoubleContourIntegral;":"∯","DoubleDot;":"¨","DoubleDownArrow;":"⇓","DoubleLeftArrow;":"⇐","DoubleLeftRightArrow;":"⇔","DoubleLeftTee;":"⫤","DoubleLongLeftArrow;":"⟸","DoubleLongLeftRightArrow;":"⟺","DoubleLongRightArrow;":"⟹","DoubleRightArrow;":"⇒","DoubleRightTee;":"⊨","DoubleUpArrow;":"⇑","DoubleUpDownArrow;":"⇕","DoubleVerticalBar;":"∥","DownArrowBar;":"⤓","downarrow;":"↓","DownArrow;":"↓","Downarrow;":"⇓","DownArrowUpArrow;":"⇵","DownBreve;":"̑","downdownarrows;":"⇊","downharpoonleft;":"⇃","downharpoonright;":"⇂","DownLeftRightVector;":"⥐","DownLeftTeeVector;":"⥞","DownLeftVectorBar;":"⥖","DownLeftVector;":"↽","DownRightTeeVector;":"⥟","DownRightVectorBar;":"⥗","DownRightVector;":"⇁","DownTeeArrow;":"↧","DownTee;":"⊤","drbkarow;":"⤐","drcorn;":"⌟","drcrop;":"⌌","Dscr;":"𝒟","dscr;":"𝒹","DScy;":"Ѕ","dscy;":"ѕ","dsol;":"⧶","Dstrok;":"Đ","dstrok;":"đ","dtdot;":"⋱","dtri;":"▿","dtrif;":"▾","duarr;":"⇵","duhar;":"⥯","dwangle;":"⦦","DZcy;":"Џ","dzcy;":"џ","dzigrarr;":"⟿","Eacute;":"É",Eacute:"É","eacute;":"é",eacute:"é","easter;":"⩮","Ecaron;":"Ě","ecaron;":"ě","Ecirc;":"Ê",Ecirc:"Ê","ecirc;":"ê",ecirc:"ê","ecir;":"≖","ecolon;":"≕","Ecy;":"Э","ecy;":"э","eDDot;":"⩷","Edot;":"Ė","edot;":"ė","eDot;":"≑","ee;":"ⅇ","efDot;":"≒","Efr;":"𝔈","efr;":"𝔢","eg;":"⪚","Egrave;":"È",Egrave:"È","egrave;":"è",egrave:"è","egs;":"⪖","egsdot;":"⪘","el;":"⪙","Element;":"∈","elinters;":"⏧","ell;":"ℓ","els;":"⪕","elsdot;":"⪗","Emacr;":"Ē","emacr;":"ē","empty;":"∅","emptyset;":"∅","EmptySmallSquare;":"◻","emptyv;":"∅","EmptyVerySmallSquare;":"▫","emsp13;":" ","emsp14;":" ","emsp;":" ","ENG;":"Ŋ","eng;":"ŋ","ensp;":" ","Eogon;":"Ę","eogon;":"ę","Eopf;":"𝔼","eopf;":"𝕖","epar;":"⋕","eparsl;":"⧣","eplus;":"⩱","epsi;":"ε","Epsilon;":"Ε","epsilon;":"ε","epsiv;":"ϵ","eqcirc;":"≖","eqcolon;":"≕","eqsim;":"≂","eqslantgtr;":"⪖","eqslantless;":"⪕","Equal;":"⩵","equals;":"=","EqualTilde;":"≂","equest;":"≟","Equilibrium;":"⇌","equiv;":"≡","equivDD;":"⩸","eqvparsl;":"⧥","erarr;":"⥱","erDot;":"≓","escr;":"ℯ","Escr;":"ℰ","esdot;":"≐","Esim;":"⩳","esim;":"≂","Eta;":"Η","eta;":"η","ETH;":"Ð",ETH:"Ð","eth;":"ð",eth:"ð","Euml;":"Ë",Euml:"Ë","euml;":"ë",euml:"ë","euro;":"€","excl;":"!","exist;":"∃","Exists;":"∃","expectation;":"ℰ","exponentiale;":"ⅇ","ExponentialE;":"ⅇ","fallingdotseq;":"≒","Fcy;":"Ф","fcy;":"ф","female;":"♀","ffilig;":"ffi","fflig;":"ff","ffllig;":"ffl","Ffr;":"𝔉","ffr;":"𝔣","filig;":"fi","FilledSmallSquare;":"◼","FilledVerySmallSquare;":"▪","fjlig;":"fj","flat;":"♭","fllig;":"fl","fltns;":"▱","fnof;":"ƒ","Fopf;":"𝔽","fopf;":"𝕗","forall;":"∀","ForAll;":"∀","fork;":"⋔","forkv;":"⫙","Fouriertrf;":"ℱ","fpartint;":"⨍","frac12;":"½",frac12:"½","frac13;":"⅓","frac14;":"¼",frac14:"¼","frac15;":"⅕","frac16;":"⅙","frac18;":"⅛","frac23;":"⅔","frac25;":"⅖","frac34;":"¾",frac34:"¾","frac35;":"⅗","frac38;":"⅜","frac45;":"⅘","frac56;":"⅚","frac58;":"⅝","frac78;":"⅞","frasl;":"⁄","frown;":"⌢","fscr;":"𝒻","Fscr;":"ℱ","gacute;":"ǵ","Gamma;":"Γ","gamma;":"γ","Gammad;":"Ϝ","gammad;":"ϝ","gap;":"⪆","Gbreve;":"Ğ","gbreve;":"ğ","Gcedil;":"Ģ","Gcirc;":"Ĝ","gcirc;":"ĝ","Gcy;":"Г","gcy;":"г","Gdot;":"Ġ","gdot;":"ġ","ge;":"≥","gE;":"≧","gEl;":"⪌","gel;":"⋛","geq;":"≥","geqq;":"≧","geqslant;":"⩾","gescc;":"⪩","ges;":"⩾","gesdot;":"⪀","gesdoto;":"⪂","gesdotol;":"⪄","gesl;":"⋛︀","gesles;":"⪔","Gfr;":"𝔊","gfr;":"𝔤","gg;":"≫","Gg;":"⋙","ggg;":"⋙","gimel;":"ℷ","GJcy;":"Ѓ","gjcy;":"ѓ","gla;":"⪥","gl;":"≷","glE;":"⪒","glj;":"⪤","gnap;":"⪊","gnapprox;":"⪊","gne;":"⪈","gnE;":"≩","gneq;":"⪈","gneqq;":"≩","gnsim;":"⋧","Gopf;":"𝔾","gopf;":"𝕘","grave;":"`","GreaterEqual;":"≥","GreaterEqualLess;":"⋛","GreaterFullEqual;":"≧","GreaterGreater;":"⪢","GreaterLess;":"≷","GreaterSlantEqual;":"⩾","GreaterTilde;":"≳","Gscr;":"𝒢","gscr;":"ℊ","gsim;":"≳","gsime;":"⪎","gsiml;":"⪐","gtcc;":"⪧","gtcir;":"⩺","gt;":">",gt:">","GT;":">",GT:">","Gt;":"≫","gtdot;":"⋗","gtlPar;":"⦕","gtquest;":"⩼","gtrapprox;":"⪆","gtrarr;":"⥸","gtrdot;":"⋗","gtreqless;":"⋛","gtreqqless;":"⪌","gtrless;":"≷","gtrsim;":"≳","gvertneqq;":"≩︀","gvnE;":"≩︀","Hacek;":"ˇ","hairsp;":" ","half;":"½","hamilt;":"ℋ","HARDcy;":"Ъ","hardcy;":"ъ","harrcir;":"⥈","harr;":"↔","hArr;":"⇔","harrw;":"↭","Hat;":"^","hbar;":"ℏ","Hcirc;":"Ĥ","hcirc;":"ĥ","hearts;":"♥","heartsuit;":"♥","hellip;":"…","hercon;":"⊹","hfr;":"𝔥","Hfr;":"ℌ","HilbertSpace;":"ℋ","hksearow;":"⤥","hkswarow;":"⤦","hoarr;":"⇿","homtht;":"∻","hookleftarrow;":"↩","hookrightarrow;":"↪","hopf;":"𝕙","Hopf;":"ℍ","horbar;":"―","HorizontalLine;":"─","hscr;":"𝒽","Hscr;":"ℋ","hslash;":"ℏ","Hstrok;":"Ħ","hstrok;":"ħ","HumpDownHump;":"≎","HumpEqual;":"≏","hybull;":"⁃","hyphen;":"‐","Iacute;":"Í",Iacute:"Í","iacute;":"í",iacute:"í","ic;":"","Icirc;":"Î",Icirc:"Î","icirc;":"î",icirc:"î","Icy;":"И","icy;":"и","Idot;":"İ","IEcy;":"Е","iecy;":"е","iexcl;":"¡",iexcl:"¡","iff;":"⇔","ifr;":"𝔦","Ifr;":"ℑ","Igrave;":"Ì",Igrave:"Ì","igrave;":"ì",igrave:"ì","ii;":"ⅈ","iiiint;":"⨌","iiint;":"∭","iinfin;":"⧜","iiota;":"℩","IJlig;":"IJ","ijlig;":"ij","Imacr;":"Ī","imacr;":"ī","image;":"ℑ","ImaginaryI;":"ⅈ","imagline;":"ℐ","imagpart;":"ℑ","imath;":"ı","Im;":"ℑ","imof;":"⊷","imped;":"Ƶ","Implies;":"⇒","incare;":"℅","in;":"∈","infin;":"∞","infintie;":"⧝","inodot;":"ı","intcal;":"⊺","int;":"∫","Int;":"∬","integers;":"ℤ","Integral;":"∫","intercal;":"⊺","Intersection;":"⋂","intlarhk;":"⨗","intprod;":"⨼","InvisibleComma;":"","InvisibleTimes;":"","IOcy;":"Ё","iocy;":"ё","Iogon;":"Į","iogon;":"į","Iopf;":"𝕀","iopf;":"𝕚","Iota;":"Ι","iota;":"ι","iprod;":"⨼","iquest;":"¿",iquest:"¿","iscr;":"𝒾","Iscr;":"ℐ","isin;":"∈","isindot;":"⋵","isinE;":"⋹","isins;":"⋴","isinsv;":"⋳","isinv;":"∈","it;":"","Itilde;":"Ĩ","itilde;":"ĩ","Iukcy;":"І","iukcy;":"і","Iuml;":"Ï",Iuml:"Ï","iuml;":"ï",iuml:"ï","Jcirc;":"Ĵ","jcirc;":"ĵ","Jcy;":"Й","jcy;":"й","Jfr;":"𝔍","jfr;":"𝔧","jmath;":"ȷ","Jopf;":"𝕁","jopf;":"𝕛","Jscr;":"𝒥","jscr;":"𝒿","Jsercy;":"Ј","jsercy;":"ј","Jukcy;":"Є","jukcy;":"є","Kappa;":"Κ","kappa;":"κ","kappav;":"ϰ","Kcedil;":"Ķ","kcedil;":"ķ","Kcy;":"К","kcy;":"к","Kfr;":"𝔎","kfr;":"𝔨","kgreen;":"ĸ","KHcy;":"Х","khcy;":"х","KJcy;":"Ќ","kjcy;":"ќ","Kopf;":"𝕂","kopf;":"𝕜","Kscr;":"𝒦","kscr;":"𝓀","lAarr;":"⇚","Lacute;":"Ĺ","lacute;":"ĺ","laemptyv;":"⦴","lagran;":"ℒ","Lambda;":"Λ","lambda;":"λ","lang;":"⟨","Lang;":"⟪","langd;":"⦑","langle;":"⟨","lap;":"⪅","Laplacetrf;":"ℒ","laquo;":"«",laquo:"«","larrb;":"⇤","larrbfs;":"⤟","larr;":"←","Larr;":"↞","lArr;":"⇐","larrfs;":"⤝","larrhk;":"↩","larrlp;":"↫","larrpl;":"⤹","larrsim;":"⥳","larrtl;":"↢","latail;":"⤙","lAtail;":"⤛","lat;":"⪫","late;":"⪭","lates;":"⪭︀","lbarr;":"⤌","lBarr;":"⤎","lbbrk;":"❲","lbrace;":"{","lbrack;":"[","lbrke;":"⦋","lbrksld;":"⦏","lbrkslu;":"⦍","Lcaron;":"Ľ","lcaron;":"ľ","Lcedil;":"Ļ","lcedil;":"ļ","lceil;":"⌈","lcub;":"{","Lcy;":"Л","lcy;":"л","ldca;":"⤶","ldquo;":"“","ldquor;":"„","ldrdhar;":"⥧","ldrushar;":"⥋","ldsh;":"↲","le;":"≤","lE;":"≦","LeftAngleBracket;":"⟨","LeftArrowBar;":"⇤","leftarrow;":"←","LeftArrow;":"←","Leftarrow;":"⇐","LeftArrowRightArrow;":"⇆","leftarrowtail;":"↢","LeftCeiling;":"⌈","LeftDoubleBracket;":"⟦","LeftDownTeeVector;":"⥡","LeftDownVectorBar;":"⥙","LeftDownVector;":"⇃","LeftFloor;":"⌊","leftharpoondown;":"↽","leftharpoonup;":"↼","leftleftarrows;":"⇇","leftrightarrow;":"↔","LeftRightArrow;":"↔","Leftrightarrow;":"⇔","leftrightarrows;":"⇆","leftrightharpoons;":"⇋","leftrightsquigarrow;":"↭","LeftRightVector;":"⥎","LeftTeeArrow;":"↤","LeftTee;":"⊣","LeftTeeVector;":"⥚","leftthreetimes;":"⋋","LeftTriangleBar;":"⧏","LeftTriangle;":"⊲","LeftTriangleEqual;":"⊴","LeftUpDownVector;":"⥑","LeftUpTeeVector;":"⥠","LeftUpVectorBar;":"⥘","LeftUpVector;":"↿","LeftVectorBar;":"⥒","LeftVector;":"↼","lEg;":"⪋","leg;":"⋚","leq;":"≤","leqq;":"≦","leqslant;":"⩽","lescc;":"⪨","les;":"⩽","lesdot;":"⩿","lesdoto;":"⪁","lesdotor;":"⪃","lesg;":"⋚︀","lesges;":"⪓","lessapprox;":"⪅","lessdot;":"⋖","lesseqgtr;":"⋚","lesseqqgtr;":"⪋","LessEqualGreater;":"⋚","LessFullEqual;":"≦","LessGreater;":"≶","lessgtr;":"≶","LessLess;":"⪡","lesssim;":"≲","LessSlantEqual;":"⩽","LessTilde;":"≲","lfisht;":"⥼","lfloor;":"⌊","Lfr;":"𝔏","lfr;":"𝔩","lg;":"≶","lgE;":"⪑","lHar;":"⥢","lhard;":"↽","lharu;":"↼","lharul;":"⥪","lhblk;":"▄","LJcy;":"Љ","ljcy;":"љ","llarr;":"⇇","ll;":"≪","Ll;":"⋘","llcorner;":"⌞","Lleftarrow;":"⇚","llhard;":"⥫","lltri;":"◺","Lmidot;":"Ŀ","lmidot;":"ŀ","lmoustache;":"⎰","lmoust;":"⎰","lnap;":"⪉","lnapprox;":"⪉","lne;":"⪇","lnE;":"≨","lneq;":"⪇","lneqq;":"≨","lnsim;":"⋦","loang;":"⟬","loarr;":"⇽","lobrk;":"⟦","longleftarrow;":"⟵","LongLeftArrow;":"⟵","Longleftarrow;":"⟸","longleftrightarrow;":"⟷","LongLeftRightArrow;":"⟷","Longleftrightarrow;":"⟺","longmapsto;":"⟼","longrightarrow;":"⟶","LongRightArrow;":"⟶","Longrightarrow;":"⟹","looparrowleft;":"↫","looparrowright;":"↬","lopar;":"⦅","Lopf;":"𝕃","lopf;":"𝕝","loplus;":"⨭","lotimes;":"⨴","lowast;":"∗","lowbar;":"_","LowerLeftArrow;":"↙","LowerRightArrow;":"↘","loz;":"◊","lozenge;":"◊","lozf;":"⧫","lpar;":"(","lparlt;":"⦓","lrarr;":"⇆","lrcorner;":"⌟","lrhar;":"⇋","lrhard;":"⥭","lrm;":"","lrtri;":"⊿","lsaquo;":"‹","lscr;":"𝓁","Lscr;":"ℒ","lsh;":"↰","Lsh;":"↰","lsim;":"≲","lsime;":"⪍","lsimg;":"⪏","lsqb;":"[","lsquo;":"‘","lsquor;":"‚","Lstrok;":"Ł","lstrok;":"ł","ltcc;":"⪦","ltcir;":"⩹","lt;":"<",lt:"<","LT;":"<",LT:"<","Lt;":"≪","ltdot;":"⋖","lthree;":"⋋","ltimes;":"⋉","ltlarr;":"⥶","ltquest;":"⩻","ltri;":"◃","ltrie;":"⊴","ltrif;":"◂","ltrPar;":"⦖","lurdshar;":"⥊","luruhar;":"⥦","lvertneqq;":"≨︀","lvnE;":"≨︀","macr;":"¯",macr:"¯","male;":"♂","malt;":"✠","maltese;":"✠","Map;":"⤅","map;":"↦","mapsto;":"↦","mapstodown;":"↧","mapstoleft;":"↤","mapstoup;":"↥","marker;":"▮","mcomma;":"⨩","Mcy;":"М","mcy;":"м","mdash;":"—","mDDot;":"∺","measuredangle;":"∡","MediumSpace;":" ","Mellintrf;":"ℳ","Mfr;":"𝔐","mfr;":"𝔪","mho;":"℧","micro;":"µ",micro:"µ","midast;":"*","midcir;":"⫰","mid;":"∣","middot;":"·",middot:"·","minusb;":"⊟","minus;":"−","minusd;":"∸","minusdu;":"⨪","MinusPlus;":"∓","mlcp;":"⫛","mldr;":"…","mnplus;":"∓","models;":"⊧","Mopf;":"𝕄","mopf;":"𝕞","mp;":"∓","mscr;":"𝓂","Mscr;":"ℳ","mstpos;":"∾","Mu;":"Μ","mu;":"μ","multimap;":"⊸","mumap;":"⊸","nabla;":"∇","Nacute;":"Ń","nacute;":"ń","nang;":"∠⃒","nap;":"≉","napE;":"⩰̸","napid;":"≋̸","napos;":"ʼn","napprox;":"≉","natural;":"♮","naturals;":"ℕ","natur;":"♮","nbsp;":" ",nbsp:" ","nbump;":"≎̸","nbumpe;":"≏̸","ncap;":"⩃","Ncaron;":"Ň","ncaron;":"ň","Ncedil;":"Ņ","ncedil;":"ņ","ncong;":"≇","ncongdot;":"⩭̸","ncup;":"⩂","Ncy;":"Н","ncy;":"н","ndash;":"–","nearhk;":"⤤","nearr;":"↗","neArr;":"⇗","nearrow;":"↗","ne;":"≠","nedot;":"≐̸","NegativeMediumSpace;":"","NegativeThickSpace;":"","NegativeThinSpace;":"","NegativeVeryThinSpace;":"","nequiv;":"≢","nesear;":"⤨","nesim;":"≂̸","NestedGreaterGreater;":"≫","NestedLessLess;":"≪","NewLine;":"\n","nexist;":"∄","nexists;":"∄","Nfr;":"𝔑","nfr;":"𝔫","ngE;":"≧̸","nge;":"≱","ngeq;":"≱","ngeqq;":"≧̸","ngeqslant;":"⩾̸","nges;":"⩾̸","nGg;":"⋙̸","ngsim;":"≵","nGt;":"≫⃒","ngt;":"≯","ngtr;":"≯","nGtv;":"≫̸","nharr;":"↮","nhArr;":"⇎","nhpar;":"⫲","ni;":"∋","nis;":"⋼","nisd;":"⋺","niv;":"∋","NJcy;":"Њ","njcy;":"њ","nlarr;":"↚","nlArr;":"⇍","nldr;":"‥","nlE;":"≦̸","nle;":"≰","nleftarrow;":"↚","nLeftarrow;":"⇍","nleftrightarrow;":"↮","nLeftrightarrow;":"⇎","nleq;":"≰","nleqq;":"≦̸","nleqslant;":"⩽̸","nles;":"⩽̸","nless;":"≮","nLl;":"⋘̸","nlsim;":"≴","nLt;":"≪⃒","nlt;":"≮","nltri;":"⋪","nltrie;":"⋬","nLtv;":"≪̸","nmid;":"∤","NoBreak;":"","NonBreakingSpace;":" ","nopf;":"𝕟","Nopf;":"ℕ","Not;":"⫬","not;":"¬",not:"¬","NotCongruent;":"≢","NotCupCap;":"≭","NotDoubleVerticalBar;":"∦","NotElement;":"∉","NotEqual;":"≠","NotEqualTilde;":"≂̸","NotExists;":"∄","NotGreater;":"≯","NotGreaterEqual;":"≱","NotGreaterFullEqual;":"≧̸","NotGreaterGreater;":"≫̸","NotGreaterLess;":"≹","NotGreaterSlantEqual;":"⩾̸","NotGreaterTilde;":"≵","NotHumpDownHump;":"≎̸","NotHumpEqual;":"≏̸","notin;":"∉","notindot;":"⋵̸","notinE;":"⋹̸","notinva;":"∉","notinvb;":"⋷","notinvc;":"⋶","NotLeftTriangleBar;":"⧏̸","NotLeftTriangle;":"⋪","NotLeftTriangleEqual;":"⋬","NotLess;":"≮","NotLessEqual;":"≰","NotLessGreater;":"≸","NotLessLess;":"≪̸","NotLessSlantEqual;":"⩽̸","NotLessTilde;":"≴","NotNestedGreaterGreater;":"⪢̸","NotNestedLessLess;":"⪡̸","notni;":"∌","notniva;":"∌","notnivb;":"⋾","notnivc;":"⋽","NotPrecedes;":"⊀","NotPrecedesEqual;":"⪯̸","NotPrecedesSlantEqual;":"⋠","NotReverseElement;":"∌","NotRightTriangleBar;":"⧐̸","NotRightTriangle;":"⋫","NotRightTriangleEqual;":"⋭","NotSquareSubset;":"⊏̸","NotSquareSubsetEqual;":"⋢","NotSquareSuperset;":"⊐̸","NotSquareSupersetEqual;":"⋣","NotSubset;":"⊂⃒","NotSubsetEqual;":"⊈","NotSucceeds;":"⊁","NotSucceedsEqual;":"⪰̸","NotSucceedsSlantEqual;":"⋡","NotSucceedsTilde;":"≿̸","NotSuperset;":"⊃⃒","NotSupersetEqual;":"⊉","NotTilde;":"≁","NotTildeEqual;":"≄","NotTildeFullEqual;":"≇","NotTildeTilde;":"≉","NotVerticalBar;":"∤","nparallel;":"∦","npar;":"∦","nparsl;":"⫽⃥","npart;":"∂̸","npolint;":"⨔","npr;":"⊀","nprcue;":"⋠","nprec;":"⊀","npreceq;":"⪯̸","npre;":"⪯̸","nrarrc;":"⤳̸","nrarr;":"↛","nrArr;":"⇏","nrarrw;":"↝̸","nrightarrow;":"↛","nRightarrow;":"⇏","nrtri;":"⋫","nrtrie;":"⋭","nsc;":"⊁","nsccue;":"⋡","nsce;":"⪰̸","Nscr;":"𝒩","nscr;":"𝓃","nshortmid;":"∤","nshortparallel;":"∦","nsim;":"≁","nsime;":"≄","nsimeq;":"≄","nsmid;":"∤","nspar;":"∦","nsqsube;":"⋢","nsqsupe;":"⋣","nsub;":"⊄","nsubE;":"⫅̸","nsube;":"⊈","nsubset;":"⊂⃒","nsubseteq;":"⊈","nsubseteqq;":"⫅̸","nsucc;":"⊁","nsucceq;":"⪰̸","nsup;":"⊅","nsupE;":"⫆̸","nsupe;":"⊉","nsupset;":"⊃⃒","nsupseteq;":"⊉","nsupseteqq;":"⫆̸","ntgl;":"≹","Ntilde;":"Ñ",Ntilde:"Ñ","ntilde;":"ñ",ntilde:"ñ","ntlg;":"≸","ntriangleleft;":"⋪","ntrianglelefteq;":"⋬","ntriangleright;":"⋫","ntrianglerighteq;":"⋭","Nu;":"Ν","nu;":"ν","num;":"#","numero;":"№","numsp;":" ","nvap;":"≍⃒","nvdash;":"⊬","nvDash;":"⊭","nVdash;":"⊮","nVDash;":"⊯","nvge;":"≥⃒","nvgt;":">⃒","nvHarr;":"⤄","nvinfin;":"⧞","nvlArr;":"⤂","nvle;":"≤⃒","nvlt;":"<⃒","nvltrie;":"⊴⃒","nvrArr;":"⤃","nvrtrie;":"⊵⃒","nvsim;":"∼⃒","nwarhk;":"⤣","nwarr;":"↖","nwArr;":"⇖","nwarrow;":"↖","nwnear;":"⤧","Oacute;":"Ó",Oacute:"Ó","oacute;":"ó",oacute:"ó","oast;":"⊛","Ocirc;":"Ô",Ocirc:"Ô","ocirc;":"ô",ocirc:"ô","ocir;":"⊚","Ocy;":"О","ocy;":"о","odash;":"⊝","Odblac;":"Ő","odblac;":"ő","odiv;":"⨸","odot;":"⊙","odsold;":"⦼","OElig;":"Œ","oelig;":"œ","ofcir;":"⦿","Ofr;":"𝔒","ofr;":"𝔬","ogon;":"˛","Ograve;":"Ò",Ograve:"Ò","ograve;":"ò",ograve:"ò","ogt;":"⧁","ohbar;":"⦵","ohm;":"Ω","oint;":"∮","olarr;":"↺","olcir;":"⦾","olcross;":"⦻","oline;":"‾","olt;":"⧀","Omacr;":"Ō","omacr;":"ō","Omega;":"Ω","omega;":"ω","Omicron;":"Ο","omicron;":"ο","omid;":"⦶","ominus;":"⊖","Oopf;":"𝕆","oopf;":"𝕠","opar;":"⦷","OpenCurlyDoubleQuote;":"“","OpenCurlyQuote;":"‘","operp;":"⦹","oplus;":"⊕","orarr;":"↻","Or;":"⩔","or;":"∨","ord;":"⩝","order;":"ℴ","orderof;":"ℴ","ordf;":"ª",ordf:"ª","ordm;":"º",ordm:"º","origof;":"⊶","oror;":"⩖","orslope;":"⩗","orv;":"⩛","oS;":"Ⓢ","Oscr;":"𝒪","oscr;":"ℴ","Oslash;":"Ø",Oslash:"Ø","oslash;":"ø",oslash:"ø","osol;":"⊘","Otilde;":"Õ",Otilde:"Õ","otilde;":"õ",otilde:"õ","otimesas;":"⨶","Otimes;":"⨷","otimes;":"⊗","Ouml;":"Ö",Ouml:"Ö","ouml;":"ö",ouml:"ö","ovbar;":"⌽","OverBar;":"‾","OverBrace;":"⏞","OverBracket;":"⎴","OverParenthesis;":"⏜","para;":"¶",para:"¶","parallel;":"∥","par;":"∥","parsim;":"⫳","parsl;":"⫽","part;":"∂","PartialD;":"∂","Pcy;":"П","pcy;":"п","percnt;":"%","period;":".","permil;":"‰","perp;":"⊥","pertenk;":"‱","Pfr;":"𝔓","pfr;":"𝔭","Phi;":"Φ","phi;":"φ","phiv;":"ϕ","phmmat;":"ℳ","phone;":"☎","Pi;":"Π","pi;":"π","pitchfork;":"⋔","piv;":"ϖ","planck;":"ℏ","planckh;":"ℎ","plankv;":"ℏ","plusacir;":"⨣","plusb;":"⊞","pluscir;":"⨢","plus;":"+","plusdo;":"∔","plusdu;":"⨥","pluse;":"⩲","PlusMinus;":"±","plusmn;":"±",plusmn:"±","plussim;":"⨦","plustwo;":"⨧","pm;":"±","Poincareplane;":"ℌ","pointint;":"⨕","popf;":"𝕡","Popf;":"ℙ","pound;":"£",pound:"£","prap;":"⪷","Pr;":"⪻","pr;":"≺","prcue;":"≼","precapprox;":"⪷","prec;":"≺","preccurlyeq;":"≼","Precedes;":"≺","PrecedesEqual;":"⪯","PrecedesSlantEqual;":"≼","PrecedesTilde;":"≾","preceq;":"⪯","precnapprox;":"⪹","precneqq;":"⪵","precnsim;":"⋨","pre;":"⪯","prE;":"⪳","precsim;":"≾","prime;":"′","Prime;":"″","primes;":"ℙ","prnap;":"⪹","prnE;":"⪵","prnsim;":"⋨","prod;":"∏","Product;":"∏","profalar;":"⌮","profline;":"⌒","profsurf;":"⌓","prop;":"∝","Proportional;":"∝","Proportion;":"∷","propto;":"∝","prsim;":"≾","prurel;":"⊰","Pscr;":"𝒫","pscr;":"𝓅","Psi;":"Ψ","psi;":"ψ","puncsp;":" ","Qfr;":"𝔔","qfr;":"𝔮","qint;":"⨌","qopf;":"𝕢","Qopf;":"ℚ","qprime;":"⁗","Qscr;":"𝒬","qscr;":"𝓆","quaternions;":"ℍ","quatint;":"⨖","quest;":"?","questeq;":"≟","quot;":'"',quot:'"',"QUOT;":'"',QUOT:'"',"rAarr;":"⇛","race;":"∽̱","Racute;":"Ŕ","racute;":"ŕ","radic;":"√","raemptyv;":"⦳","rang;":"⟩","Rang;":"⟫","rangd;":"⦒","range;":"⦥","rangle;":"⟩","raquo;":"»",raquo:"»","rarrap;":"⥵","rarrb;":"⇥","rarrbfs;":"⤠","rarrc;":"⤳","rarr;":"→","Rarr;":"↠","rArr;":"⇒","rarrfs;":"⤞","rarrhk;":"↪","rarrlp;":"↬","rarrpl;":"⥅","rarrsim;":"⥴","Rarrtl;":"⤖","rarrtl;":"↣","rarrw;":"↝","ratail;":"⤚","rAtail;":"⤜","ratio;":"∶","rationals;":"ℚ","rbarr;":"⤍","rBarr;":"⤏","RBarr;":"⤐","rbbrk;":"❳","rbrace;":"}","rbrack;":"]","rbrke;":"⦌","rbrksld;":"⦎","rbrkslu;":"⦐","Rcaron;":"Ř","rcaron;":"ř","Rcedil;":"Ŗ","rcedil;":"ŗ","rceil;":"⌉","rcub;":"}","Rcy;":"Р","rcy;":"р","rdca;":"⤷","rdldhar;":"⥩","rdquo;":"”","rdquor;":"”","rdsh;":"↳","real;":"ℜ","realine;":"ℛ","realpart;":"ℜ","reals;":"ℝ","Re;":"ℜ","rect;":"▭","reg;":"®",reg:"®","REG;":"®",REG:"®","ReverseElement;":"∋","ReverseEquilibrium;":"⇋","ReverseUpEquilibrium;":"⥯","rfisht;":"⥽","rfloor;":"⌋","rfr;":"𝔯","Rfr;":"ℜ","rHar;":"⥤","rhard;":"⇁","rharu;":"⇀","rharul;":"⥬","Rho;":"Ρ","rho;":"ρ","rhov;":"ϱ","RightAngleBracket;":"⟩","RightArrowBar;":"⇥","rightarrow;":"→","RightArrow;":"→","Rightarrow;":"⇒","RightArrowLeftArrow;":"⇄","rightarrowtail;":"↣","RightCeiling;":"⌉","RightDoubleBracket;":"⟧","RightDownTeeVector;":"⥝","RightDownVectorBar;":"⥕","RightDownVector;":"⇂","RightFloor;":"⌋","rightharpoondown;":"⇁","rightharpoonup;":"⇀","rightleftarrows;":"⇄","rightleftharpoons;":"⇌","rightrightarrows;":"⇉","rightsquigarrow;":"↝","RightTeeArrow;":"↦","RightTee;":"⊢","RightTeeVector;":"⥛","rightthreetimes;":"⋌","RightTriangleBar;":"⧐","RightTriangle;":"⊳","RightTriangleEqual;":"⊵","RightUpDownVector;":"⥏","RightUpTeeVector;":"⥜","RightUpVectorBar;":"⥔","RightUpVector;":"↾","RightVectorBar;":"⥓","RightVector;":"⇀","ring;":"˚","risingdotseq;":"≓","rlarr;":"⇄","rlhar;":"⇌","rlm;":"","rmoustache;":"⎱","rmoust;":"⎱","rnmid;":"⫮","roang;":"⟭","roarr;":"⇾","robrk;":"⟧","ropar;":"⦆","ropf;":"𝕣","Ropf;":"ℝ","roplus;":"⨮","rotimes;":"⨵","RoundImplies;":"⥰","rpar;":")","rpargt;":"⦔","rppolint;":"⨒","rrarr;":"⇉","Rrightarrow;":"⇛","rsaquo;":"›","rscr;":"𝓇","Rscr;":"ℛ","rsh;":"↱","Rsh;":"↱","rsqb;":"]","rsquo;":"’","rsquor;":"’","rthree;":"⋌","rtimes;":"⋊","rtri;":"▹","rtrie;":"⊵","rtrif;":"▸","rtriltri;":"⧎","RuleDelayed;":"⧴","ruluhar;":"⥨","rx;":"℞","Sacute;":"Ś","sacute;":"ś","sbquo;":"‚","scap;":"⪸","Scaron;":"Š","scaron;":"š","Sc;":"⪼","sc;":"≻","sccue;":"≽","sce;":"⪰","scE;":"⪴","Scedil;":"Ş","scedil;":"ş","Scirc;":"Ŝ","scirc;":"ŝ","scnap;":"⪺","scnE;":"⪶","scnsim;":"⋩","scpolint;":"⨓","scsim;":"≿","Scy;":"С","scy;":"с","sdotb;":"⊡","sdot;":"⋅","sdote;":"⩦","searhk;":"⤥","searr;":"↘","seArr;":"⇘","searrow;":"↘","sect;":"§",sect:"§","semi;":";","seswar;":"⤩","setminus;":"∖","setmn;":"∖","sext;":"✶","Sfr;":"𝔖","sfr;":"𝔰","sfrown;":"⌢","sharp;":"♯","SHCHcy;":"Щ","shchcy;":"щ","SHcy;":"Ш","shcy;":"ш","ShortDownArrow;":"↓","ShortLeftArrow;":"←","shortmid;":"∣","shortparallel;":"∥","ShortRightArrow;":"→","ShortUpArrow;":"↑","shy;":"",shy:"","Sigma;":"Σ","sigma;":"σ","sigmaf;":"ς","sigmav;":"ς","sim;":"∼","simdot;":"⩪","sime;":"≃","simeq;":"≃","simg;":"⪞","simgE;":"⪠","siml;":"⪝","simlE;":"⪟","simne;":"≆","simplus;":"⨤","simrarr;":"⥲","slarr;":"←","SmallCircle;":"∘","smallsetminus;":"∖","smashp;":"⨳","smeparsl;":"⧤","smid;":"∣","smile;":"⌣","smt;":"⪪","smte;":"⪬","smtes;":"⪬︀","SOFTcy;":"Ь","softcy;":"ь","solbar;":"⌿","solb;":"⧄","sol;":"/","Sopf;":"𝕊","sopf;":"𝕤","spades;":"♠","spadesuit;":"♠","spar;":"∥","sqcap;":"⊓","sqcaps;":"⊓︀","sqcup;":"⊔","sqcups;":"⊔︀","Sqrt;":"√","sqsub;":"⊏","sqsube;":"⊑","sqsubset;":"⊏","sqsubseteq;":"⊑","sqsup;":"⊐","sqsupe;":"⊒","sqsupset;":"⊐","sqsupseteq;":"⊒","square;":"□","Square;":"□","SquareIntersection;":"⊓","SquareSubset;":"⊏","SquareSubsetEqual;":"⊑","SquareSuperset;":"⊐","SquareSupersetEqual;":"⊒","SquareUnion;":"⊔","squarf;":"▪","squ;":"□","squf;":"▪","srarr;":"→","Sscr;":"𝒮","sscr;":"𝓈","ssetmn;":"∖","ssmile;":"⌣","sstarf;":"⋆","Star;":"⋆","star;":"☆","starf;":"★","straightepsilon;":"ϵ","straightphi;":"ϕ","strns;":"¯","sub;":"⊂","Sub;":"⋐","subdot;":"⪽","subE;":"⫅","sube;":"⊆","subedot;":"⫃","submult;":"⫁","subnE;":"⫋","subne;":"⊊","subplus;":"⪿","subrarr;":"⥹","subset;":"⊂","Subset;":"⋐","subseteq;":"⊆","subseteqq;":"⫅","SubsetEqual;":"⊆","subsetneq;":"⊊","subsetneqq;":"⫋","subsim;":"⫇","subsub;":"⫕","subsup;":"⫓","succapprox;":"⪸","succ;":"≻","succcurlyeq;":"≽","Succeeds;":"≻","SucceedsEqual;":"⪰","SucceedsSlantEqual;":"≽","SucceedsTilde;":"≿","succeq;":"⪰","succnapprox;":"⪺","succneqq;":"⪶","succnsim;":"⋩","succsim;":"≿","SuchThat;":"∋","sum;":"∑","Sum;":"∑","sung;":"♪","sup1;":"¹",sup1:"¹","sup2;":"²",sup2:"²","sup3;":"³",sup3:"³","sup;":"⊃","Sup;":"⋑","supdot;":"⪾","supdsub;":"⫘","supE;":"⫆","supe;":"⊇","supedot;":"⫄","Superset;":"⊃","SupersetEqual;":"⊇","suphsol;":"⟉","suphsub;":"⫗","suplarr;":"⥻","supmult;":"⫂","supnE;":"⫌","supne;":"⊋","supplus;":"⫀","supset;":"⊃","Supset;":"⋑","supseteq;":"⊇","supseteqq;":"⫆","supsetneq;":"⊋","supsetneqq;":"⫌","supsim;":"⫈","supsub;":"⫔","supsup;":"⫖","swarhk;":"⤦","swarr;":"↙","swArr;":"⇙","swarrow;":"↙","swnwar;":"⤪","szlig;":"ß",szlig:"ß","Tab;":"\t","target;":"⌖","Tau;":"Τ","tau;":"τ","tbrk;":"⎴","Tcaron;":"Ť","tcaron;":"ť","Tcedil;":"Ţ","tcedil;":"ţ","Tcy;":"Т","tcy;":"т","tdot;":"⃛","telrec;":"⌕","Tfr;":"𝔗","tfr;":"𝔱","there4;":"∴","therefore;":"∴","Therefore;":"∴","Theta;":"Θ","theta;":"θ","thetasym;":"ϑ","thetav;":"ϑ","thickapprox;":"≈","thicksim;":"∼","ThickSpace;":" ","ThinSpace;":" ","thinsp;":" ","thkap;":"≈","thksim;":"∼","THORN;":"Þ",THORN:"Þ","thorn;":"þ",thorn:"þ","tilde;":"˜","Tilde;":"∼","TildeEqual;":"≃","TildeFullEqual;":"≅","TildeTilde;":"≈","timesbar;":"⨱","timesb;":"⊠","times;":"×",times:"×","timesd;":"⨰","tint;":"∭","toea;":"⤨","topbot;":"⌶","topcir;":"⫱","top;":"⊤","Topf;":"𝕋","topf;":"𝕥","topfork;":"⫚","tosa;":"⤩","tprime;":"‴","trade;":"™","TRADE;":"™","triangle;":"▵","triangledown;":"▿","triangleleft;":"◃","trianglelefteq;":"⊴","triangleq;":"≜","triangleright;":"▹","trianglerighteq;":"⊵","tridot;":"◬","trie;":"≜","triminus;":"⨺","TripleDot;":"⃛","triplus;":"⨹","trisb;":"⧍","tritime;":"⨻","trpezium;":"⏢","Tscr;":"𝒯","tscr;":"𝓉","TScy;":"Ц","tscy;":"ц","TSHcy;":"Ћ","tshcy;":"ћ","Tstrok;":"Ŧ","tstrok;":"ŧ","twixt;":"≬","twoheadleftarrow;":"↞","twoheadrightarrow;":"↠","Uacute;":"Ú",Uacute:"Ú","uacute;":"ú",uacute:"ú","uarr;":"↑","Uarr;":"↟","uArr;":"⇑","Uarrocir;":"⥉","Ubrcy;":"Ў","ubrcy;":"ў","Ubreve;":"Ŭ","ubreve;":"ŭ","Ucirc;":"Û",Ucirc:"Û","ucirc;":"û",ucirc:"û","Ucy;":"У","ucy;":"у","udarr;":"⇅","Udblac;":"Ű","udblac;":"ű","udhar;":"⥮","ufisht;":"⥾","Ufr;":"𝔘","ufr;":"𝔲","Ugrave;":"Ù",Ugrave:"Ù","ugrave;":"ù",ugrave:"ù","uHar;":"⥣","uharl;":"↿","uharr;":"↾","uhblk;":"▀","ulcorn;":"⌜","ulcorner;":"⌜","ulcrop;":"⌏","ultri;":"◸","Umacr;":"Ū","umacr;":"ū","uml;":"¨",uml:"¨","UnderBar;":"_","UnderBrace;":"⏟","UnderBracket;":"⎵","UnderParenthesis;":"⏝","Union;":"⋃","UnionPlus;":"⊎","Uogon;":"Ų","uogon;":"ų","Uopf;":"𝕌","uopf;":"𝕦","UpArrowBar;":"⤒","uparrow;":"↑","UpArrow;":"↑","Uparrow;":"⇑","UpArrowDownArrow;":"⇅","updownarrow;":"↕","UpDownArrow;":"↕","Updownarrow;":"⇕","UpEquilibrium;":"⥮","upharpoonleft;":"↿","upharpoonright;":"↾","uplus;":"⊎","UpperLeftArrow;":"↖","UpperRightArrow;":"↗","upsi;":"υ","Upsi;":"ϒ","upsih;":"ϒ","Upsilon;":"Υ","upsilon;":"υ","UpTeeArrow;":"↥","UpTee;":"⊥","upuparrows;":"⇈","urcorn;":"⌝","urcorner;":"⌝","urcrop;":"⌎","Uring;":"Ů","uring;":"ů","urtri;":"◹","Uscr;":"𝒰","uscr;":"𝓊","utdot;":"⋰","Utilde;":"Ũ","utilde;":"ũ","utri;":"▵","utrif;":"▴","uuarr;":"⇈","Uuml;":"Ü",Uuml:"Ü","uuml;":"ü",uuml:"ü","uwangle;":"⦧","vangrt;":"⦜","varepsilon;":"ϵ","varkappa;":"ϰ","varnothing;":"∅","varphi;":"ϕ","varpi;":"ϖ","varpropto;":"∝","varr;":"↕","vArr;":"⇕","varrho;":"ϱ","varsigma;":"ς","varsubsetneq;":"⊊︀","varsubsetneqq;":"⫋︀","varsupsetneq;":"⊋︀","varsupsetneqq;":"⫌︀","vartheta;":"ϑ","vartriangleleft;":"⊲","vartriangleright;":"⊳","vBar;":"⫨","Vbar;":"⫫","vBarv;":"⫩","Vcy;":"В","vcy;":"в","vdash;":"⊢","vDash;":"⊨","Vdash;":"⊩","VDash;":"⊫","Vdashl;":"⫦","veebar;":"⊻","vee;":"∨","Vee;":"⋁","veeeq;":"≚","vellip;":"⋮","verbar;":"|","Verbar;":"‖","vert;":"|","Vert;":"‖","VerticalBar;":"∣","VerticalLine;":"|","VerticalSeparator;":"❘","VerticalTilde;":"≀","VeryThinSpace;":" ","Vfr;":"𝔙","vfr;":"𝔳","vltri;":"⊲","vnsub;":"⊂⃒","vnsup;":"⊃⃒","Vopf;":"𝕍","vopf;":"𝕧","vprop;":"∝","vrtri;":"⊳","Vscr;":"𝒱","vscr;":"𝓋","vsubnE;":"⫋︀","vsubne;":"⊊︀","vsupnE;":"⫌︀","vsupne;":"⊋︀","Vvdash;":"⊪","vzigzag;":"⦚","Wcirc;":"Ŵ","wcirc;":"ŵ","wedbar;":"⩟","wedge;":"∧","Wedge;":"⋀","wedgeq;":"≙","weierp;":"℘","Wfr;":"𝔚","wfr;":"𝔴","Wopf;":"𝕎","wopf;":"𝕨","wp;":"℘","wr;":"≀","wreath;":"≀","Wscr;":"𝒲","wscr;":"𝓌","xcap;":"⋂","xcirc;":"◯","xcup;":"⋃","xdtri;":"▽","Xfr;":"𝔛","xfr;":"𝔵","xharr;":"⟷","xhArr;":"⟺","Xi;":"Ξ","xi;":"ξ","xlarr;":"⟵","xlArr;":"⟸","xmap;":"⟼","xnis;":"⋻","xodot;":"⨀","Xopf;":"𝕏","xopf;":"𝕩","xoplus;":"⨁","xotime;":"⨂","xrarr;":"⟶","xrArr;":"⟹","Xscr;":"𝒳","xscr;":"𝓍","xsqcup;":"⨆","xuplus;":"⨄","xutri;":"△","xvee;":"⋁","xwedge;":"⋀","Yacute;":"Ý",Yacute:"Ý","yacute;":"ý",yacute:"ý","YAcy;":"Я","yacy;":"я","Ycirc;":"Ŷ","ycirc;":"ŷ","Ycy;":"Ы","ycy;":"ы","yen;":"¥",yen:"¥","Yfr;":"𝔜","yfr;":"𝔶","YIcy;":"Ї","yicy;":"ї","Yopf;":"𝕐","yopf;":"𝕪","Yscr;":"𝒴","yscr;":"𝓎","YUcy;":"Ю","yucy;":"ю","yuml;":"ÿ",yuml:"ÿ","Yuml;":"Ÿ","Zacute;":"Ź","zacute;":"ź","Zcaron;":"Ž","zcaron;":"ž","Zcy;":"З","zcy;":"з","Zdot;":"Ż","zdot;":"ż","zeetrf;":"ℨ","ZeroWidthSpace;":"","Zeta;":"Ζ","zeta;":"ζ","zfr;":"𝔷","Zfr;":"ℨ","ZHcy;":"Ж","zhcy;":"ж","zigrarr;":"⇝","zopf;":"𝕫","Zopf;":"ℤ","Zscr;":"𝒵","zscr;":"𝓏","zwj;":"","zwnj;":""}},{}],13:[function(e,t,n){var r=e("util/"),i=Array.prototype.slice,o=Object.prototype.hasOwnProperty,s=t.exports=d;function a(e,t){return r.isUndefined(t)?""+t:!r.isNumber(t)||!isNaN(t)&&isFinite(t)?r.isFunction(t)||r.isRegExp(t)?t.toString():t:t.toString()}function l(e,t){return r.isString(e)?e.length<t?e:e.slice(0,t):e}function c(e,t,n,r,i){throw new s.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function d(e,t){e||c(e,!0,t,"==",s.ok)}function u(e,t){if(e===t)return!0;if(r.isBuffer(e)&&r.isBuffer(t)){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return r.isDate(e)&&r.isDate(t)?e.getTime()===t.getTime():r.isRegExp(e)&&r.isRegExp(t)?e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase:r.isObject(e)||r.isObject(t)?function(e,t){if(r.isNullOrUndefined(e)||r.isNullOrUndefined(t))return!1;if(e.prototype!==t.prototype)return!1;if(h(e))return!!h(t)&&u(e=i.call(e),t=i.call(t));try{var n,o,s=g(e),a=g(t)}catch(e){return!1}if(s.length!=a.length)return!1;for(s.sort(),a.sort(),o=s.length-1;o>=0;o--)if(s[o]!=a[o])return!1;for(o=s.length-1;o>=0;o--)if(!u(e[n=s[o]],t[n]))return!1;return!0}(e,t):e==t}function h(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function p(e,t){return!(!e||!t)&&("[object RegExp]"==Object.prototype.toString.call(t)?t.test(e):e instanceof t||!0===t.call({},e))}function f(e,t,n,i){var o;r.isString(n)&&(i=n,n=null);try{t()}catch(e){o=e}if(i=(n&&n.name?" ("+n.name+").":".")+(i?" "+i:"."),e&&!o&&c(o,n,"Missing expected exception"+i),!e&&p(o,n)&&c(o,n,"Got unwanted exception"+i),e&&o&&n&&!p(o,n)||!e&&o)throw o}s.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return l(JSON.stringify(e.actual,a),128)+" "+e.operator+" "+l(JSON.stringify(e.expected,a),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||c;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=t.name,o=r.indexOf("\n"+i);if(o>=0){var s=r.indexOf("\n",o+1);r=r.substring(s+1)}this.stack=r}}},r.inherits(s.AssertionError,Error),s.fail=c,s.ok=d,s.equal=function(e,t,n){e!=t&&c(e,t,n,"==",s.equal)},s.notEqual=function(e,t,n){e==t&&c(e,t,n,"!=",s.notEqual)},s.deepEqual=function(e,t,n){u(e,t)||c(e,t,n,"deepEqual",s.deepEqual)},s.notDeepEqual=function(e,t,n){u(e,t)&&c(e,t,n,"notDeepEqual",s.notDeepEqual)},s.strictEqual=function(e,t,n){e!==t&&c(e,t,n,"===",s.strictEqual)},s.notStrictEqual=function(e,t,n){e===t&&c(e,t,n,"!==",s.notStrictEqual)},s.throws=function(e,t,n){f.apply(this,[!0].concat(i.call(arguments)))},s.doesNotThrow=function(e,t){f.apply(this,[!1].concat(i.call(arguments)))},s.ifError=function(e){if(e)throw e};var g=Object.keys||function(e){var t=[];for(var n in e)o.call(e,n)&&t.push(n);return t}},{"util/":15}],14:[function(e,t,n){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],15:[function(e,t,n){(function(t,r){var i=/%[sdj%]/g;n.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(a(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,s=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),l=r[n];n<o;l=r[++n])g(l)||!w(l)?s+=" "+l:s+=" "+a(l);return s},n.deprecate=function(e,i){if(v(r.process))return function(){return n.deprecate(e,i).apply(this,arguments)};if(!0===t.noDeprecation)return e;var o=!1;return function(){if(!o){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),o=!0}return e.apply(this,arguments)}};var o,s={};function a(e,t){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),f(t)?r.showHidden=t:t&&n._extend(r,t),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),d(r,e,r.depth)}function l(e,t){var n=a.styles[t];return n?"["+a.colors[n][0]+"m"+e+"["+a.colors[n][1]+"m":e}function c(e,t){return e}function d(e,t,r){if(e.customInspect&&t&&_(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return b(i)||(i=d(e,i,r)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return m(t)?e.stylize(""+t,"number"):f(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}(e,t);if(o)return o;var s=Object.keys(t),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),k(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return u(t);if(0===s.length){if(_(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(y(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(x(t))return e.stylize(Date.prototype.toString.call(t),"date");if(k(t))return u(t)}var c,w="",C=!1,T=["{","}"];return p(t)&&(C=!0,T=["[","]"]),_(t)&&(w=" [Function"+(t.name?": "+t.name:"")+"]"),y(t)&&(w=" "+RegExp.prototype.toString.call(t)),x(t)&&(w=" "+Date.prototype.toUTCString.call(t)),k(t)&&(w=" "+u(t)),0!==s.length||C&&0!=t.length?r<0?y(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=C?function(e,t,n,r,i){for(var o=[],s=0,a=t.length;s<a;++s)E(t,String(s))?o.push(h(e,t,n,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(h(e,t,n,r,i,!0))})),o}(e,t,r,a,s):s.map((function(n){return h(e,t,r,a,n,C)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,w,T)):T[0]+w+T[1]}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),E(r,i)||(s="["+i+"]"),a||(e.seen.indexOf(l.value)<0?(a=g(n)?d(e,l.value,null):d(e,l.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),v(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function p(e){return Array.isArray(e)}function f(e){return"boolean"==typeof e}function g(e){return null===e}function m(e){return"number"==typeof e}function b(e){return"string"==typeof e}function v(e){return void 0===e}function y(e){return w(e)&&"[object RegExp]"===C(e)}function w(e){return"object"==typeof e&&null!==e}function x(e){return w(e)&&"[object Date]"===C(e)}function k(e){return w(e)&&("[object Error]"===C(e)||e instanceof Error)}function _(e){return"function"==typeof e}function C(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(v(o)&&(o=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var r=t.pid;s[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else s[e]=function(){};return s[e]},n.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=p,n.isBoolean=f,n.isNull=g,n.isNullOrUndefined=function(e){return null==e},n.isNumber=m,n.isString=b,n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=v,n.isRegExp=y,n.isObject=w,n.isDate=x,n.isError=k,n.isFunction=_,n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e("./support/isBuffer");var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){var e,t;console.log("%s - %s",(t=[T((e=new Date).getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":"),[e.getDate(),S[e.getMonth()],t].join(" ")),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,e("/usr/local/lib/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":14,"/usr/local/lib/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":18,inherits:17}],16:[function(e,t,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function o(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,n,r,a,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length))throw(t=arguments[1])instanceof Error?t:TypeError('Uncaught, unspecified "error" event.');if(s(n=this._events[e]))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,a=new Array(r-1),l=1;l<r;l++)a[l-1]=arguments[l];n.apply(this,a)}else if(o(n)){for(r=arguments.length,a=new Array(r-1),l=1;l<r;l++)a[l-1]=arguments[l];for(r=(c=n.slice()).length,l=0;l<r;l++)c[l].apply(this,a)}return!0},r.prototype.addListener=function(e,t){var n;if(!i(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,o(this._events[e])&&!this._events[e].warned&&(n=s(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){if(!i(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var n,r,s,a;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=(n=this._events[e]).length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(a=s;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){r=a;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(i(n=this._events[e]))this.removeListener(e,n);else for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.listenerCount=function(e,t){return e._events&&e._events[t]?i(e._events[t])?1:e._events[t].length:0}},{}],17:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],18:[function(e,t,n){var r=t.exports={};function i(){}r.nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",(function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),n.length>0&&n.shift()())}),!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),r.title="browser",r.browser=!0,r.env={},r.argv=[],r.on=i,r.once=i,r.off=i,r.emit=i,r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")}},{}],19:[function(e,t,n){t.exports=e(14)},{}],20:[function(e,t,n){t.exports=e(15)},{"./support/isBuffer":19,"/usr/local/lib/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":18,inherits:17}]},{},[9])(9)})),ace.define("ace/mode/html_worker",[],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=(e("../lib/lang"),e("../worker/mirror").Mirror),o=e("./html/saxparser").SAXParser,s={"expected-doctype-but-got-start-tag":"info","expected-doctype-but-got-chars":"info","non-html-root":"info"},a=t.Worker=function(e){i.call(this,e),this.setTimeout(400),this.context=null};r.inherits(a,i),function(){this.setOptions=function(e){this.context=e.context},this.onUpdate=function(){var e=this.doc.getValue();if(e){var t=new o,n=[],r=function(){};t.contentHandler={startDocument:r,endDocument:r,startElement:r,endElement:r,characters:r},t.errorHandler={error:function(e,t,r){n.push({row:t.line,column:t.column,text:e,type:s[r]||"error"})}},t.parse(e,this.context),this.sender.emit("error",n)}}}.call(a.prototype)}))},5042(e){var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1;t.Diff=function(e,t){return[e,t]},t.prototype.diff_main=function(e,n,r,i){void 0===i&&(i=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var o=i;if(null==e||null==n)throw new Error("Null input. (diff_main)");if(e==n)return e?[new t.Diff(0,e)]:[];void 0===r&&(r=!0);var s=r,a=this.diff_commonPrefix(e,n),l=e.substring(0,a);e=e.substring(a),n=n.substring(a),a=this.diff_commonSuffix(e,n);var c=e.substring(e.length-a);e=e.substring(0,e.length-a),n=n.substring(0,n.length-a);var d=this.diff_compute_(e,n,s,o);return l&&d.unshift(new t.Diff(0,l)),c&&d.push(new t.Diff(0,c)),this.diff_cleanupMerge(d),d},t.prototype.diff_compute_=function(e,r,i,o){var s;if(!e)return[new t.Diff(1,r)];if(!r)return[new t.Diff(n,e)];var a=e.length>r.length?e:r,l=e.length>r.length?r:e,c=a.indexOf(l);if(-1!=c)return s=[new t.Diff(1,a.substring(0,c)),new t.Diff(0,l),new t.Diff(1,a.substring(c+l.length))],e.length>r.length&&(s[0][0]=s[2][0]=n),s;if(1==l.length)return[new t.Diff(n,e),new t.Diff(1,r)];var d=this.diff_halfMatch_(e,r);if(d){var u=d[0],h=d[1],p=d[2],f=d[3],g=d[4],m=this.diff_main(u,p,i,o),b=this.diff_main(h,f,i,o);return m.concat([new t.Diff(0,g)],b)}return i&&e.length>100&&r.length>100?this.diff_lineMode_(e,r,o):this.diff_bisect_(e,r,o)},t.prototype.diff_lineMode_=function(e,r,i){var o=this.diff_linesToChars_(e,r);e=o.chars1,r=o.chars2;var s=o.lineArray,a=this.diff_main(e,r,!1,i);this.diff_charsToLines_(a,s),this.diff_cleanupSemantic(a),a.push(new t.Diff(0,""));for(var l=0,c=0,d=0,u="",h="";l<a.length;){switch(a[l][0]){case 1:d++,h+=a[l][1];break;case n:c++,u+=a[l][1];break;case 0:if(c>=1&&d>=1){a.splice(l-c-d,c+d),l=l-c-d;for(var p=this.diff_main(u,h,!1,i),f=p.length-1;f>=0;f--)a.splice(l,0,p[f]);l+=p.length}d=0,c=0,u="",h=""}l++}return a.pop(),a},t.prototype.diff_bisect_=function(e,r,i){for(var o=e.length,s=r.length,a=Math.ceil((o+s)/2),l=a,c=2*a,d=new Array(c),u=new Array(c),h=0;h<c;h++)d[h]=-1,u[h]=-1;d[l+1]=0,u[l+1]=0;for(var p=o-s,f=p%2!=0,g=0,m=0,b=0,v=0,y=0;y<a&&!((new Date).getTime()>i);y++){for(var w=-y+g;w<=y-m;w+=2){for(var x=l+w,k=(E=w==-y||w!=y&&d[x-1]<d[x+1]?d[x+1]:d[x-1]+1)-w;E<o&&k<s&&e.charAt(E)==r.charAt(k);)E++,k++;if(d[x]=E,E>o)m+=2;else if(k>s)g+=2;else if(f&&(T=l+p-w)>=0&&T<c&&-1!=u[T]&&E>=(C=o-u[T]))return this.diff_bisectSplit_(e,r,E,k,i)}for(var _=-y+b;_<=y-v;_+=2){for(var C,T=l+_,S=(C=_==-y||_!=y&&u[T-1]<u[T+1]?u[T+1]:u[T-1]+1)-_;C<o&&S<s&&e.charAt(o-C-1)==r.charAt(s-S-1);)C++,S++;if(u[T]=C,C>o)v+=2;else if(S>s)b+=2;else if(!f){var E;if((x=l+p-_)>=0&&x<c&&-1!=d[x])if(k=l+(E=d[x])-x,E>=(C=o-C))return this.diff_bisectSplit_(e,r,E,k,i)}}}return[new t.Diff(n,e),new t.Diff(1,r)]},t.prototype.diff_bisectSplit_=function(e,t,n,r,i){var o=e.substring(0,n),s=t.substring(0,r),a=e.substring(n),l=t.substring(r),c=this.diff_main(o,s,!1,i),d=this.diff_main(a,l,!1,i);return c.concat(d)},t.prototype.diff_linesToChars_=function(e,t){var n=[],r={};function i(e){for(var t="",i=0,s=-1,a=n.length;s<e.length-1;){-1==(s=e.indexOf("\n",i))&&(s=e.length-1);var l=e.substring(i,s+1);(r.hasOwnProperty?r.hasOwnProperty(l):void 0!==r[l])?t+=String.fromCharCode(r[l]):(a==o&&(l=e.substring(i),s=e.length),t+=String.fromCharCode(a),r[l]=a,n[a++]=l),i=s+1}return t}n[0]="";var o=4e4,s=i(e);return o=65535,{chars1:s,chars2:i(t),lineArray:n}},t.prototype.diff_charsToLines_=function(e,t){for(var n=0;n<e.length;n++){for(var r=e[n][1],i=[],o=0;o<r.length;o++)i[o]=t[r.charCodeAt(o)];e[n][1]=i.join("")}},t.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(o,i)==t.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i},t.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i},t.prototype.diff_commonOverlap_=function(e,t){var n=e.length,r=t.length;if(0==n||0==r)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));var i=Math.min(n,r);if(e==t)return i;for(var o=0,s=1;;){var a=e.substring(i-s),l=t.indexOf(a);if(-1==l)return o;s+=l,0!=l&&e.substring(i-s)!=t.substring(0,s)||(o=s,s++)}},t.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;var i=this;function o(e,t,n){for(var r,o,s,a,l=e.substring(n,n+Math.floor(e.length/4)),c=-1,d="";-1!=(c=t.indexOf(l,c+1));){var u=i.diff_commonPrefix(e.substring(n),t.substring(c)),h=i.diff_commonSuffix(e.substring(0,n),t.substring(0,c));d.length<h+u&&(d=t.substring(c-h,c)+t.substring(c,c+u),r=e.substring(0,n-h),o=e.substring(n+u),s=t.substring(0,c-h),a=t.substring(c+u))}return 2*d.length>=e.length?[r,o,s,a,d]:null}var s,a,l,c,d,u=o(n,r,Math.ceil(n.length/4)),h=o(n,r,Math.ceil(n.length/2));return u||h?(s=h?u&&u[4].length>h[4].length?u:h:u,e.length>t.length?(a=s[0],l=s[1],c=s[2],d=s[3]):(c=s[0],d=s[1],a=s[2],l=s[3]),[a,l,c,d,s[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var r=!1,i=[],o=0,s=null,a=0,l=0,c=0,d=0,u=0;a<e.length;)0==e[a][0]?(i[o++]=a,l=d,c=u,d=0,u=0,s=e[a][1]):(1==e[a][0]?d+=e[a][1].length:u+=e[a][1].length,s&&s.length<=Math.max(l,c)&&s.length<=Math.max(d,u)&&(e.splice(i[o-1],0,new t.Diff(n,s)),e[i[o-1]+1][0]=1,o--,a=--o>0?i[o-1]:-1,l=0,c=0,d=0,u=0,s=null,r=!0)),a++;for(r&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),a=1;a<e.length;){if(e[a-1][0]==n&&1==e[a][0]){var h=e[a-1][1],p=e[a][1],f=this.diff_commonOverlap_(h,p),g=this.diff_commonOverlap_(p,h);f>=g?(f>=h.length/2||f>=p.length/2)&&(e.splice(a,0,new t.Diff(0,p.substring(0,f))),e[a-1][1]=h.substring(0,h.length-f),e[a+1][1]=p.substring(f),a++):(g>=h.length/2||g>=p.length/2)&&(e.splice(a,0,new t.Diff(0,h.substring(0,g))),e[a-1][0]=1,e[a-1][1]=p.substring(0,p.length-g),e[a+1][0]=n,e[a+1][1]=h.substring(g),a++),a++}a++}},t.prototype.diff_cleanupSemanticLossless=function(e){function n(e,n){if(!e||!n)return 6;var r=e.charAt(e.length-1),i=n.charAt(0),o=r.match(t.nonAlphaNumericRegex_),s=i.match(t.nonAlphaNumericRegex_),a=o&&r.match(t.whitespaceRegex_),l=s&&i.match(t.whitespaceRegex_),c=a&&r.match(t.linebreakRegex_),d=l&&i.match(t.linebreakRegex_),u=c&&e.match(t.blanklineEndRegex_),h=d&&n.match(t.blanklineStartRegex_);return u||h?5:c||d?4:o&&!a&&l?3:a||l?2:o||s?1:0}for(var r=1;r<e.length-1;){if(0==e[r-1][0]&&0==e[r+1][0]){var i=e[r-1][1],o=e[r][1],s=e[r+1][1],a=this.diff_commonSuffix(i,o);if(a){var l=o.substring(o.length-a);i=i.substring(0,i.length-a),o=l+o.substring(0,o.length-a),s=l+s}for(var c=i,d=o,u=s,h=n(i,o)+n(o,s);o.charAt(0)===s.charAt(0);){i+=o.charAt(0),o=o.substring(1)+s.charAt(0),s=s.substring(1);var p=n(i,o)+n(o,s);p>=h&&(h=p,c=i,d=o,u=s)}e[r-1][1]!=c&&(c?e[r-1][1]=c:(e.splice(r-1,1),r--),e[r][1]=d,u?e[r+1][1]=u:(e.splice(r+1,1),r--))}r++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(e){for(var r=!1,i=[],o=0,s=null,a=0,l=!1,c=!1,d=!1,u=!1;a<e.length;)0==e[a][0]?(e[a][1].length<this.Diff_EditCost&&(d||u)?(i[o++]=a,l=d,c=u,s=e[a][1]):(o=0,s=null),d=u=!1):(e[a][0]==n?u=!0:d=!0,s&&(l&&c&&d&&u||s.length<this.Diff_EditCost/2&&l+c+d+u==3)&&(e.splice(i[o-1],0,new t.Diff(n,s)),e[i[o-1]+1][0]=1,o--,s=null,l&&c?(d=u=!0,o=0):(a=--o>0?i[o-1]:-1,d=u=!1),r=!0)),a++;r&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push(new t.Diff(0,""));for(var r,i=0,o=0,s=0,a="",l="";i<e.length;)switch(e[i][0]){case 1:s++,l+=e[i][1],i++;break;case n:o++,a+=e[i][1],i++;break;case 0:o+s>1?(0!==o&&0!==s&&(0!==(r=this.diff_commonPrefix(l,a))&&(i-o-s>0&&0==e[i-o-s-1][0]?e[i-o-s-1][1]+=l.substring(0,r):(e.splice(0,0,new t.Diff(0,l.substring(0,r))),i++),l=l.substring(r),a=a.substring(r)),0!==(r=this.diff_commonSuffix(l,a))&&(e[i][1]=l.substring(l.length-r)+e[i][1],l=l.substring(0,l.length-r),a=a.substring(0,a.length-r))),i-=o+s,e.splice(i,o+s),a.length&&(e.splice(i,0,new t.Diff(n,a)),i++),l.length&&(e.splice(i,0,new t.Diff(1,l)),i++),i++):0!==i&&0==e[i-1][0]?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,s=0,o=0,a="",l=""}""===e[e.length-1][1]&&e.pop();var c=!1;for(i=1;i<e.length-1;)0==e[i-1][0]&&0==e[i+1][0]&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)==e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),c=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),c=!0)),i++;c&&this.diff_cleanupMerge(e)},t.prototype.diff_xIndex=function(e,t){var r,i=0,o=0,s=0,a=0;for(r=0;r<e.length&&(1!==e[r][0]&&(i+=e[r][1].length),e[r][0]!==n&&(o+=e[r][1].length),!(i>t));r++)s=i,a=o;return e.length!=r&&e[r][0]===n?a:a+(t-s)},t.prototype.diff_prettyHtml=function(e){for(var t=[],r=/&/g,i=/</g,o=/>/g,s=/\n/g,a=0;a<e.length;a++){var l=e[a][0],c=e[a][1].replace(r,"&").replace(i,"<").replace(o,">").replace(s,"¶<br>");switch(l){case 1:t[a]='<ins style="background:#e6ffe6;">'+c+"</ins>";break;case n:t[a]='<del style="background:#ffe6e6;">'+c+"</del>";break;case 0:t[a]="<span>"+c+"</span>"}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],n=0;n<e.length;n++)1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},t.prototype.diff_text2=function(e){for(var t=[],r=0;r<e.length;r++)e[r][0]!==n&&(t[r]=e[r][1]);return t.join("")},t.prototype.diff_levenshtein=function(e){for(var t=0,r=0,i=0,o=0;o<e.length;o++){var s=e[o][0],a=e[o][1];switch(s){case 1:r+=a.length;break;case n:i+=a.length;break;case 0:t+=Math.max(r,i),r=0,i=0}}return t+Math.max(r,i)},t.prototype.diff_toDelta=function(e){for(var t=[],r=0;r<e.length;r++)switch(e[r][0]){case 1:t[r]="+"+encodeURI(e[r][1]);break;case n:t[r]="-"+e[r][1].length;break;case 0:t[r]="="+e[r][1].length}return t.join("\t").replace(/%20/g," ")},t.prototype.diff_fromDelta=function(e,r){for(var i=[],o=0,s=0,a=r.split(/\t/g),l=0;l<a.length;l++){var c=a[l].substring(1);switch(a[l].charAt(0)){case"+":try{i[o++]=new t.Diff(1,decodeURI(c))}catch(e){throw new Error("Illegal escape in diff_fromDelta: "+c)}break;case"-":case"=":var d=parseInt(c,10);if(isNaN(d)||d<0)throw new Error("Invalid number in diff_fromDelta: "+c);var u=e.substring(s,s+=d);"="==a[l].charAt(0)?i[o++]=new t.Diff(0,u):i[o++]=new t.Diff(n,u);break;default:if(a[l])throw new Error("Invalid diff operation in diff_fromDelta: "+a[l])}}if(s!=e.length)throw new Error("Delta length ("+s+") does not equal source text length ("+e.length+").");return i},t.prototype.match_main=function(e,t,n){if(null==e||null==t||null==n)throw new Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,e.length)),e==t?0:e.length?e.substring(n,n+t.length)==t?n:this.match_bitap_(e,t,n):-1},t.prototype.match_bitap_=function(e,t,n){if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(t),i=this;function o(e,r){var o=e/t.length,s=Math.abs(n-r);return i.Match_Distance?o+s/i.Match_Distance:s?1:o}var s=this.Match_Threshold,a=e.indexOf(t,n);-1!=a&&(s=Math.min(o(0,a),s),-1!=(a=e.lastIndexOf(t,n+t.length))&&(s=Math.min(o(0,a),s)));var l,c,d=1<<t.length-1;a=-1;for(var u,h=t.length+e.length,p=0;p<t.length;p++){for(l=0,c=h;l<c;)o(p,n+c)<=s?l=c:h=c,c=Math.floor((h-l)/2+l);h=c;var f=Math.max(1,n-c+1),g=Math.min(n+c,e.length)+t.length,m=Array(g+2);m[g+1]=(1<<p)-1;for(var b=g;b>=f;b--){var v=r[e.charAt(b-1)];if(m[b]=0===p?(m[b+1]<<1|1)&v:(m[b+1]<<1|1)&v|(u[b+1]|u[b])<<1|1|u[b+1],m[b]&d){var y=o(p,b-1);if(y<=s){if(s=y,!((a=b-1)>n))break;f=Math.max(1,2*n-a)}}}if(o(p+1,n)>s)break;u=m}return a},t.prototype.match_alphabet_=function(e){for(var t={},n=0;n<e.length;n++)t[e.charAt(n)]=0;for(n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t},t.prototype.patch_addContext_=function(e,n){if(0!=n.length){if(null===e.start2)throw Error("patch not initialized");for(var r=n.substring(e.start2,e.start2+e.length1),i=0;n.indexOf(r)!=n.lastIndexOf(r)&&r.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)i+=this.Patch_Margin,r=n.substring(e.start2-i,e.start2+e.length1+i);i+=this.Patch_Margin;var o=n.substring(e.start2-i,e.start2);o&&e.diffs.unshift(new t.Diff(0,o));var s=n.substring(e.start2+e.length1,e.start2+e.length1+i);s&&e.diffs.push(new t.Diff(0,s)),e.start1-=o.length,e.start2-=o.length,e.length1+=o.length+s.length,e.length2+=o.length+s.length}},t.prototype.patch_make=function(e,r,i){var o,s;if("string"==typeof e&&"string"==typeof r&&void 0===i)o=e,(s=this.diff_main(o,r,!0)).length>2&&(this.diff_cleanupSemantic(s),this.diff_cleanupEfficiency(s));else if(e&&"object"==typeof e&&void 0===r&&void 0===i)s=e,o=this.diff_text1(s);else if("string"==typeof e&&r&&"object"==typeof r&&void 0===i)o=e,s=r;else{if("string"!=typeof e||"string"!=typeof r||!i||"object"!=typeof i)throw new Error("Unknown call format to patch_make.");o=e,s=i}if(0===s.length)return[];for(var a=[],l=new t.patch_obj,c=0,d=0,u=0,h=o,p=o,f=0;f<s.length;f++){var g=s[f][0],m=s[f][1];switch(c||0===g||(l.start1=d,l.start2=u),g){case 1:l.diffs[c++]=s[f],l.length2+=m.length,p=p.substring(0,u)+m+p.substring(u);break;case n:l.length1+=m.length,l.diffs[c++]=s[f],p=p.substring(0,u)+p.substring(u+m.length);break;case 0:m.length<=2*this.Patch_Margin&&c&&s.length!=f+1?(l.diffs[c++]=s[f],l.length1+=m.length,l.length2+=m.length):m.length>=2*this.Patch_Margin&&c&&(this.patch_addContext_(l,h),a.push(l),l=new t.patch_obj,c=0,h=p,d=u)}1!==g&&(d+=m.length),g!==n&&(u+=m.length)}return c&&(this.patch_addContext_(l,h),a.push(l)),a},t.prototype.patch_deepCopy=function(e){for(var n=[],r=0;r<e.length;r++){var i=e[r],o=new t.patch_obj;o.diffs=[];for(var s=0;s<i.diffs.length;s++)o.diffs[s]=new t.Diff(i.diffs[s][0],i.diffs[s][1]);o.start1=i.start1,o.start2=i.start2,o.length1=i.length1,o.length2=i.length2,n[r]=o}return n},t.prototype.patch_apply=function(e,t){if(0==e.length)return[t,[]];e=this.patch_deepCopy(e);var r=this.patch_addPadding(e);t=r+t+r,this.patch_splitMax(e);for(var i=0,o=[],s=0;s<e.length;s++){var a,l,c=e[s].start2+i,d=this.diff_text1(e[s].diffs),u=-1;if(d.length>this.Match_MaxBits?-1!=(a=this.match_main(t,d.substring(0,this.Match_MaxBits),c))&&(-1==(u=this.match_main(t,d.substring(d.length-this.Match_MaxBits),c+d.length-this.Match_MaxBits))||a>=u)&&(a=-1):a=this.match_main(t,d,c),-1==a)o[s]=!1,i-=e[s].length2-e[s].length1;else if(o[s]=!0,i=a-c,d==(l=-1==u?t.substring(a,a+d.length):t.substring(a,u+this.Match_MaxBits)))t=t.substring(0,a)+this.diff_text2(e[s].diffs)+t.substring(a+d.length);else{var h=this.diff_main(d,l,!1);if(d.length>this.Match_MaxBits&&this.diff_levenshtein(h)/d.length>this.Patch_DeleteThreshold)o[s]=!1;else{this.diff_cleanupSemanticLossless(h);for(var p,f=0,g=0;g<e[s].diffs.length;g++){var m=e[s].diffs[g];0!==m[0]&&(p=this.diff_xIndex(h,f)),1===m[0]?t=t.substring(0,a+p)+m[1]+t.substring(a+p):m[0]===n&&(t=t.substring(0,a+p)+t.substring(a+this.diff_xIndex(h,f+m[1].length))),m[0]!==n&&(f+=m[1].length)}}}}return[t=t.substring(r.length,t.length-r.length),o]},t.prototype.patch_addPadding=function(e){for(var n=this.Patch_Margin,r="",i=1;i<=n;i++)r+=String.fromCharCode(i);for(i=0;i<e.length;i++)e[i].start1+=n,e[i].start2+=n;var o=e[0],s=o.diffs;if(0==s.length||0!=s[0][0])s.unshift(new t.Diff(0,r)),o.start1-=n,o.start2-=n,o.length1+=n,o.length2+=n;else if(n>s[0][1].length){var a=n-s[0][1].length;s[0][1]=r.substring(s[0][1].length)+s[0][1],o.start1-=a,o.start2-=a,o.length1+=a,o.length2+=a}return 0==(s=(o=e[e.length-1]).diffs).length||0!=s[s.length-1][0]?(s.push(new t.Diff(0,r)),o.length1+=n,o.length2+=n):n>s[s.length-1][1].length&&(a=n-s[s.length-1][1].length,s[s.length-1][1]+=r.substring(0,a),o.length1+=a,o.length2+=a),r},t.prototype.patch_splitMax=function(e){for(var r=this.Match_MaxBits,i=0;i<e.length;i++)if(!(e[i].length1<=r)){var o=e[i];e.splice(i--,1);for(var s=o.start1,a=o.start2,l="";0!==o.diffs.length;){var c=new t.patch_obj,d=!0;for(c.start1=s-l.length,c.start2=a-l.length,""!==l&&(c.length1=c.length2=l.length,c.diffs.push(new t.Diff(0,l)));0!==o.diffs.length&&c.length1<r-this.Patch_Margin;){var u=o.diffs[0][0],h=o.diffs[0][1];1===u?(c.length2+=h.length,a+=h.length,c.diffs.push(o.diffs.shift()),d=!1):u===n&&1==c.diffs.length&&0==c.diffs[0][0]&&h.length>2*r?(c.length1+=h.length,s+=h.length,d=!1,c.diffs.push(new t.Diff(u,h)),o.diffs.shift()):(h=h.substring(0,r-c.length1-this.Patch_Margin),c.length1+=h.length,s+=h.length,0===u?(c.length2+=h.length,a+=h.length):d=!1,c.diffs.push(new t.Diff(u,h)),h==o.diffs[0][1]?o.diffs.shift():o.diffs[0][1]=o.diffs[0][1].substring(h.length))}l=(l=this.diff_text2(c.diffs)).substring(l.length-this.Patch_Margin);var p=this.diff_text1(o.diffs).substring(0,this.Patch_Margin);""!==p&&(c.length1+=p.length,c.length2+=p.length,0!==c.diffs.length&&0===c.diffs[c.diffs.length-1][0]?c.diffs[c.diffs.length-1][1]+=p:c.diffs.push(new t.Diff(0,p))),d||e.splice(++i,0,c)}}},t.prototype.patch_toText=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=e[n];return t.join("")},t.prototype.patch_fromText=function(e){var r=[];if(!e)return r;for(var i=e.split("\n"),o=0,s=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;o<i.length;){var a=i[o].match(s);if(!a)throw new Error("Invalid patch string: "+i[o]);var l=new t.patch_obj;for(r.push(l),l.start1=parseInt(a[1],10),""===a[2]?(l.start1--,l.length1=1):"0"==a[2]?l.length1=0:(l.start1--,l.length1=parseInt(a[2],10)),l.start2=parseInt(a[3],10),""===a[4]?(l.start2--,l.length2=1):"0"==a[4]?l.length2=0:(l.start2--,l.length2=parseInt(a[4],10)),o++;o<i.length;){var c=i[o].charAt(0);try{var d=decodeURI(i[o].substring(1))}catch(e){throw new Error("Illegal escape in patch_fromText: "+d)}if("-"==c)l.diffs.push(new t.Diff(n,d));else if("+"==c)l.diffs.push(new t.Diff(1,d));else if(" "==c)l.diffs.push(new t.Diff(0,d));else{if("@"==c)break;if(""!==c)throw new Error('Invalid patch mode "'+c+'" in: '+d)}o++}}return r},(t.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var e,t=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],r=0;r<this.diffs.length;r++){switch(this.diffs[r][0]){case 1:e="+";break;case n:e="-";break;case 0:e=" "}t[r+1]=e+encodeURI(this.diffs[r][1])+"\n"}return t.join("").replace(/%20/g," ")},e.exports=t,e.exports.diff_match_patch=t,e.exports.DIFF_DELETE=n,e.exports.DIFF_INSERT=1,e.exports.DIFF_EQUAL=0},9529(e){var t,n="__lodash_hash_undefined__",r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/,o=/^\./,s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,l=/^\[object .+?Constructor\]$/,c="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,d="object"==typeof self&&self&&self.Object===Object&&self,u=c||d||Function("return this")(),h=Array.prototype,p=Function.prototype,f=Object.prototype,g=u["__core-js_shared__"],m=(t=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"",b=p.toString,v=f.hasOwnProperty,y=f.toString,w=RegExp("^"+b.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=u.Symbol,k=h.splice,_=R(u,"Map"),C=R(Object,"create"),T=x?x.prototype:void 0,S=T?T.toString:void 0;function E(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function M(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function L(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}function A(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function R(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!D(e)||m&&m in e)return!1;var t=function(e){var t=D(e)?y.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?w:l;return t.test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(n)?n:void 0}E.prototype.clear=function(){this.__data__=C?C(null):{}},E.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},E.prototype.get=function(e){var t=this.__data__;if(C){var r=t[e];return r===n?void 0:r}return v.call(t,e)?t[e]:void 0},E.prototype.has=function(e){var t=this.__data__;return C?void 0!==t[e]:v.call(t,e)},E.prototype.set=function(e,t){return this.__data__[e]=C&&void 0===t?n:t,this},$.prototype.clear=function(){this.__data__=[]},$.prototype.delete=function(e){var t=this.__data__,n=L(t,e);return!(n<0||(n==t.length-1?t.pop():k.call(t,n,1),0))},$.prototype.get=function(e){var t=this.__data__,n=L(t,e);return n<0?void 0:t[n][1]},$.prototype.has=function(e){return L(this.__data__,e)>-1},$.prototype.set=function(e,t){var n=this.__data__,r=L(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},M.prototype.clear=function(){this.__data__={hash:new E,map:new(_||$),string:new E}},M.prototype.delete=function(e){return A(this,e).delete(e)},M.prototype.get=function(e){return A(this,e).get(e)},M.prototype.has=function(e){return A(this,e).has(e)},M.prototype.set=function(e,t){return A(this,e).set(e,t),this};var N=I((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(P(e))return S?S.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return o.test(e)&&n.push(""),e.replace(s,(function(e,t,r,i){n.push(r?i.replace(a,"$1"):t||e)})),n}));function j(e){if("string"==typeof e||P(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function I(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s),s};return n.cache=new(I.Cache||M),n}I.Cache=M;var O=Array.isArray;function D(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function P(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==y.call(e)}e.exports=function(e,t,n){var o=null==e?void 0:function(e,t){var n;t=function(e,t){if(O(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!P(e))||i.test(e)||!r.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:O(n=t)?n:N(n);for(var o=0,s=t.length;null!=e&&o<s;)e=e[j(t[o++])];return o&&o==s?e:void 0}(e,t);return void 0===o?n:o}},1097(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",s="[object Array]",a="[object Boolean]",l="[object Date]",c="[object Error]",d="[object Function]",u="[object Map]",h="[object Number]",p="[object Object]",f="[object Promise]",g="[object RegExp]",m="[object Set]",b="[object String]",v="[object WeakMap]",y="[object ArrayBuffer]",w="[object DataView]",x=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,_={};_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_[o]=_[s]=_[y]=_[a]=_[w]=_[l]=_[c]=_[d]=_[u]=_[h]=_[p]=_[g]=_[m]=_[b]=_[v]=!1;var C="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,T="object"==typeof self&&self&&self.Object===Object&&self,S=C||T||Function("return this")(),E=t&&!t.nodeType&&t,$=E&&e&&!e.nodeType&&e,M=$&&$.exports===E,L=M&&C.process,A=function(){try{return L&&L.binding&&L.binding("util")}catch(e){}}(),R=A&&A.isTypedArray;function N(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function j(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function I(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var O,D,P,F=Array.prototype,z=Function.prototype,B=Object.prototype,H=S["__core-js_shared__"],W=z.toString,U=B.hasOwnProperty,V=(O=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"",q=B.toString,G=RegExp("^"+W.call(U).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Y=M?S.Buffer:void 0,K=S.Symbol,X=S.Uint8Array,Q=B.propertyIsEnumerable,Z=F.splice,J=K?K.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=Y?Y.isBuffer:void 0,ne=(D=Object.keys,P=Object,function(e){return D(P(e))}),re=$e(S,"DataView"),ie=$e(S,"Map"),oe=$e(S,"Promise"),se=$e(S,"Set"),ae=$e(S,"WeakMap"),le=$e(Object,"create"),ce=Re(re),de=Re(ie),ue=Re(oe),he=Re(se),pe=Re(ae),fe=K?K.prototype:void 0,ge=fe?fe.valueOf:void 0;function me(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function be(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ve;++t<n;)this.add(e[t])}function we(e){var t=this.__data__=new be(e);this.size=t.size}function xe(e,t){for(var n=e.length;n--;)if(Ne(e[n][0],t))return n;return-1}function ke(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":J&&J in Object(e)?function(e){var t=U.call(e,J),n=e[J];try{e[J]=void 0;var r=!0}catch(e){}var i=q.call(e);return r&&(t?e[J]=n:delete e[J]),i}(e):function(e){return q.call(e)}(e)}function _e(e){return ze(e)&&ke(e)==o}function Ce(e,t,n,r,i){return e===t||(null==e||null==t||!ze(e)&&!ze(t)?e!=e&&t!=t:function(e,t,n,r,i,d){var f=Ie(e),v=Ie(t),x=f?s:Le(e),k=v?s:Le(t),_=(x=x==o?p:x)==p,C=(k=k==o?p:k)==p,T=x==k;if(T&&Oe(e)){if(!Oe(t))return!1;f=!0,_=!1}if(T&&!_)return d||(d=new we),f||Be(e)?Te(e,t,n,r,i,d):function(e,t,n,r,i,o,s){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!o(new X(e),new X(t)));case a:case l:case h:return Ne(+e,+t);case c:return e.name==t.name&&e.message==t.message;case g:case b:return e==t+"";case u:var d=j;case m:var p=1&r;if(d||(d=I),e.size!=t.size&&!p)return!1;var f=s.get(e);if(f)return f==t;r|=2,s.set(e,t);var v=Te(d(e),d(t),r,i,o,s);return s.delete(e),v;case"[object Symbol]":if(ge)return ge.call(e)==ge.call(t)}return!1}(e,t,x,n,r,i,d);if(!(1&n)){var S=_&&U.call(e,"__wrapped__"),E=C&&U.call(t,"__wrapped__");if(S||E){var $=S?e.value():e,M=E?t.value():t;return d||(d=new we),i($,M,n,r,d)}}return!!T&&(d||(d=new we),function(e,t,n,r,i,o){var s=1&n,a=Se(e),l=a.length;if(l!=Se(t).length&&!s)return!1;for(var c=l;c--;){var d=a[c];if(!(s?d in t:U.call(t,d)))return!1}var u=o.get(e);if(u&&o.get(t))return u==t;var h=!0;o.set(e,t),o.set(t,e);for(var p=s;++c<l;){var f=e[d=a[c]],g=t[d];if(r)var m=s?r(g,f,d,t,e,o):r(f,g,d,e,t,o);if(!(void 0===m?f===g||i(f,g,n,r,o):m)){h=!1;break}p||(p="constructor"==d)}if(h&&!p){var b=e.constructor,v=t.constructor;b==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(h=!1)}return o.delete(e),o.delete(t),h}(e,t,n,r,i,d))}(e,t,n,r,Ce,i))}function Te(e,t,n,r,i,o){var s=1&n,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var d=-1,u=!0,h=2&n?new ye:void 0;for(o.set(e,t),o.set(t,e);++d<a;){var p=e[d],f=t[d];if(r)var g=s?r(f,p,d,t,e,o):r(p,f,d,e,t,o);if(void 0!==g){if(g)continue;u=!1;break}if(h){if(!N(t,(function(e,t){if(s=t,!h.has(s)&&(p===e||i(p,e,n,r,o)))return h.push(t);var s}))){u=!1;break}}else if(p!==f&&!i(p,f,n,r,o)){u=!1;break}}return o.delete(e),o.delete(t),u}function Se(e){return function(e,t,n){var r=t(e);return Ie(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,He,Me)}function Ee(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function $e(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Fe(e)||function(e){return!!V&&V in e}(e))&&(De(e)?G:x).test(Re(e))}(n)?n:void 0}me.prototype.clear=function(){this.__data__=le?le(null):{},this.size=0},me.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},me.prototype.get=function(e){var t=this.__data__;if(le){var n=t[e];return n===r?void 0:n}return U.call(t,e)?t[e]:void 0},me.prototype.has=function(e){var t=this.__data__;return le?void 0!==t[e]:U.call(t,e)},me.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=le&&void 0===t?r:t,this},be.prototype.clear=function(){this.__data__=[],this.size=0},be.prototype.delete=function(e){var t=this.__data__,n=xe(t,e);return!(n<0||(n==t.length-1?t.pop():Z.call(t,n,1),--this.size,0))},be.prototype.get=function(e){var t=this.__data__,n=xe(t,e);return n<0?void 0:t[n][1]},be.prototype.has=function(e){return xe(this.__data__,e)>-1},be.prototype.set=function(e,t){var n=this.__data__,r=xe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ve.prototype.clear=function(){this.size=0,this.__data__={hash:new me,map:new(ie||be),string:new me}},ve.prototype.delete=function(e){var t=Ee(this,e).delete(e);return this.size-=t?1:0,t},ve.prototype.get=function(e){return Ee(this,e).get(e)},ve.prototype.has=function(e){return Ee(this,e).has(e)},ve.prototype.set=function(e,t){var n=Ee(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ye.prototype.add=ye.prototype.push=function(e){return this.__data__.set(e,r),this},ye.prototype.has=function(e){return this.__data__.has(e)},we.prototype.clear=function(){this.__data__=new be,this.size=0},we.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},we.prototype.get=function(e){return this.__data__.get(e)},we.prototype.has=function(e){return this.__data__.has(e)},we.prototype.set=function(e,t){var n=this.__data__;if(n instanceof be){var r=n.__data__;if(!ie||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ve(r)}return n.set(e,t),this.size=n.size,this};var Me=ee?function(e){return null==e?[]:(e=Object(e),function(t){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];a=s,Q.call(e,a)&&(o[i++]=s)}var a;return o}(ee(e)))}:function(){return[]},Le=ke;function Ae(e,t){return!!(t=t??i)&&("number"==typeof e||k.test(e))&&e>-1&&e%1==0&&e<t}function Re(e){if(null!=e){try{return W.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ne(e,t){return e===t||e!=e&&t!=t}(re&&Le(new re(new ArrayBuffer(1)))!=w||ie&&Le(new ie)!=u||oe&&Le(oe.resolve())!=f||se&&Le(new se)!=m||ae&&Le(new ae)!=v)&&(Le=function(e){var t=ke(e),n=t==p?e.constructor:void 0,r=n?Re(n):"";if(r)switch(r){case ce:return w;case de:return u;case ue:return f;case he:return m;case pe:return v}return t});var je=_e(function(){return arguments}())?_e:function(e){return ze(e)&&U.call(e,"callee")&&!Q.call(e,"callee")},Ie=Array.isArray,Oe=te||function(){return!1};function De(e){if(!Fe(e))return!1;var t=ke(e);return t==d||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Pe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function Fe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ze(e){return null!=e&&"object"==typeof e}var Be=R?function(e){return function(t){return e(t)}}(R):function(e){return ze(e)&&Pe(e.length)&&!!_[ke(e)]};function He(e){return null!=(t=e)&&Pe(t.length)&&!De(t)?function(e,t){var n=Ie(e),r=!n&&je(e),i=!n&&!r&&Oe(e),o=!n&&!r&&!i&&Be(e),s=n||r||i||o,a=s?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=a.length;for(var c in e)!t&&!U.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ae(c,l))||a.push(c);return a}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||B))return ne(e);var t,n,r=[];for(var i in Object(e))U.call(e,i)&&"constructor"!=i&&r.push(i);return r}(e);var t}e.exports=function(e,t){return Ce(e,t)}},795(e,t,n){"use strict";var r=n(1212);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},135(e,t,n){e.exports=n(795)()},1212(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3468(e,t,n){"use strict";var r,i=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1973),a=n(135),l=n(1609),c=n(1097),d=n(9378),u=(0,d.getAceInstance)(),h=function(e){function t(t){var n=e.call(this,t)||this;return d.editorEvents.forEach((function(e){n[e]=n[e].bind(n)})),n.debounce=d.debounce,n}return i(t,e),t.prototype.isInShadow=function(e){for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1},t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.className,r=t.onBeforeLoad,i=t.onValidate,o=t.mode,s=t.focus,a=t.theme,l=t.fontSize,c=t.lineHeight,h=t.value,p=t.defaultValue,f=t.showGutter,g=t.wrapEnabled,m=t.showPrintMargin,b=t.scrollMargin,v=void 0===b?[0,0,0,0]:b,y=t.keyboardHandler,w=t.onLoad,x=t.commands,k=t.annotations,_=t.markers,C=t.placeholder;this.editor=u.edit(this.refEditor),r&&r(u);for(var T=Object.keys(this.props.editorProps),S=0;S<T.length;S++)this.editor[T[S]]=this.props.editorProps[T[S]];this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),this.editor.renderer.setScrollMargin(v[0],v[1],v[2],v[3]),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.getSession().setMode("string"==typeof o?"ace/mode/".concat(o):o),a&&""!==a&&this.editor.setTheme("ace/theme/".concat(a)),this.editor.setFontSize("number"==typeof l?"".concat(l,"px"):l),c&&(this.editor.container.style.lineHeight="number"==typeof c?"".concat(c,"px"):"".concat(c),this.editor.renderer.updateFontSize()),this.editor.getSession().setValue(p||h||""),this.props.navigateToFileEnd&&this.editor.navigateFileEnd(),this.editor.renderer.setShowGutter(f),this.editor.getSession().setUseWrapMode(g),this.editor.setShowPrintMargin(m),this.editor.on("focus",this.onFocus),this.editor.on("blur",this.onBlur),this.editor.on("copy",this.onCopy),this.editor.on("paste",this.onPaste),this.editor.on("change",this.onChange),this.editor.on("input",this.onInput),C&&this.updatePlaceholder(),this.editor.getSession().selection.on("changeSelection",this.onSelectionChange),this.editor.getSession().selection.on("changeCursor",this.onCursorChange),i&&this.editor.getSession().on("changeAnnotation",(function(){var t=e.editor.getSession().getAnnotations();e.props.onValidate(t)})),this.editor.session.on("changeScrollTop",this.onScroll),this.editor.getSession().setAnnotations(k||[]),_&&_.length>0&&this.handleMarkers(_);var E=this.editor.$options;d.editorOptions.forEach((function(t){E.hasOwnProperty(t)?e.editor.setOption(t,e.props[t]):e.props[t]&&console.warn("ReactAce: editor option ".concat(t," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))})),this.handleOptions(this.props),Array.isArray(x)&&x.forEach((function(t){"string"==typeof t.exec?e.editor.commands.bindKey(t.bindKey,t.exec):e.editor.commands.addCommand(t)})),y&&this.editor.setKeyboardHandler("ace/keyboard/"+y),n&&(this.refEditor.className+=" "+n),w&&w(this.editor),this.editor.resize(),s&&this.editor.focus()},t.prototype.componentDidUpdate=function(e){for(var t=e,n=this.props,r=0;r<d.editorOptions.length;r++){var i=d.editorOptions[r];n[i]!==t[i]&&this.editor.setOption(i,n[i])}if(n.className!==t.className){var o=this.refEditor.className.trim().split(" ");t.className.trim().split(" ").forEach((function(e){var t=o.indexOf(e);o.splice(t,1)})),this.refEditor.className=" "+n.className+" "+o.join(" ")}var s=this.editor&&null!=n.value&&this.editor.getValue()!==n.value;if(s){this.silent=!0;var a=this.editor.session.selection.toJSON();this.editor.setValue(n.value,n.cursorStart),this.editor.session.selection.fromJSON(a),this.silent=!1}n.placeholder!==t.placeholder&&this.updatePlaceholder(),n.mode!==t.mode&&this.editor.getSession().setMode("string"==typeof n.mode?"ace/mode/".concat(n.mode):n.mode),n.theme!==t.theme&&this.editor.setTheme("ace/theme/"+n.theme),n.keyboardHandler!==t.keyboardHandler&&(n.keyboardHandler?this.editor.setKeyboardHandler("ace/keyboard/"+n.keyboardHandler):this.editor.setKeyboardHandler(null)),n.fontSize!==t.fontSize&&this.editor.setFontSize("number"==typeof n.fontSize?"".concat(n.fontSize,"px"):n.fontSize),n.lineHeight!==t.lineHeight&&(this.editor.container.style.lineHeight="number"==typeof n.lineHeight?"".concat(n.lineHeight,"px"):n.lineHeight,this.editor.renderer.updateFontSize()),n.wrapEnabled!==t.wrapEnabled&&this.editor.getSession().setUseWrapMode(n.wrapEnabled),n.showPrintMargin!==t.showPrintMargin&&this.editor.setShowPrintMargin(n.showPrintMargin),n.showGutter!==t.showGutter&&this.editor.renderer.setShowGutter(n.showGutter),c(n.setOptions,t.setOptions)||this.handleOptions(n),!s&&c(n.annotations,t.annotations)||this.editor.getSession().setAnnotations(n.annotations||[]),!c(n.markers,t.markers)&&Array.isArray(n.markers)&&this.handleMarkers(n.markers),c(n.scrollMargin,t.scrollMargin)||this.handleScrollMargins(n.scrollMargin),e.height===this.props.height&&e.width===this.props.width||this.editor.resize(),this.props.focus&&!e.focus&&this.editor.focus()},t.prototype.handleScrollMargins=function(e){void 0===e&&(e=[0,0,0,0]),this.editor.renderer.setScrollMargin(e[0],e[1],e[2],e[3])},t.prototype.componentWillUnmount=function(){this.editor&&(this.editor.destroy(),this.editor=null)},t.prototype.onChange=function(e){if(this.editor&&this.props.onChange&&!this.silent){var t=this.editor.getValue();this.props.onChange(t,e)}},t.prototype.onSelectionChange=function(e){if(this.props.onSelectionChange){var t=this.editor.getSelection();this.props.onSelectionChange(t,e)}},t.prototype.onCursorChange=function(e){if(this.props.onCursorChange){var t=this.editor.getSelection();this.props.onCursorChange(t,e)}},t.prototype.onInput=function(e){this.props.onInput&&this.props.onInput(e),this.props.placeholder&&this.updatePlaceholder()},t.prototype.onFocus=function(e){this.props.onFocus&&this.props.onFocus(e,this.editor)},t.prototype.onBlur=function(e){this.props.onBlur&&this.props.onBlur(e,this.editor)},t.prototype.onCopy=function(e){var t=e.text;this.props.onCopy&&this.props.onCopy(t)},t.prototype.onPaste=function(e){var t=e.text;this.props.onPaste&&this.props.onPaste(t)},t.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},t.prototype.handleOptions=function(e){for(var t=Object.keys(e.setOptions),n=0;n<t.length;n++)this.editor.setOption(t[n],e.setOptions[t[n]])},t.prototype.handleMarkers=function(e){var t=this,n=this.editor.getSession().getMarkers(!0);for(var r in n)n.hasOwnProperty(r)&&this.editor.getSession().removeMarker(n[r].id);for(var r in n=this.editor.getSession().getMarkers(!1))n.hasOwnProperty(r)&&"ace_active-line"!==n[r].clazz&&"ace_selected-word"!==n[r].clazz&&this.editor.getSession().removeMarker(n[r].id);e.forEach((function(e){var n=e.startRow,r=e.startCol,i=e.endRow,o=e.endCol,a=e.className,l=e.type,c=e.inFront,d=void 0!==c&&c,u=new s.Range(n,r,i,o);t.editor.getSession().addMarker(u,a,l,d)}))},t.prototype.updatePlaceholder=function(){var e=this.editor,t=this.props.placeholder,n=!e.session.getValue().length,r=e.renderer.placeholderNode;!n&&r?(e.renderer.scroller.removeChild(e.renderer.placeholderNode),e.renderer.placeholderNode=null):n&&!r?((r=e.renderer.placeholderNode=document.createElement("div")).textContent=t||"",r.className="ace_comment ace_placeholder",r.style.padding="0 9px",r.style.position="absolute",r.style.zIndex="3",e.renderer.scroller.appendChild(r)):n&&r&&(r.textContent=t)},t.prototype.updateRef=function(e){this.refEditor=e},t.prototype.render=function(){var e=this.props,t=e.name,n=e.width,r=e.height,i=e.style,s=o({width:n,height:r},i);return l.createElement("div",{ref:this.updateRef,id:t,style:s})},t.propTypes={mode:a.oneOfType([a.string,a.object]),focus:a.bool,theme:a.string,name:a.string,className:a.string,height:a.string,width:a.string,fontSize:a.oneOfType([a.number,a.string]),lineHeight:a.oneOfType([a.number,a.string]),showGutter:a.bool,onChange:a.func,onCopy:a.func,onPaste:a.func,onFocus:a.func,onInput:a.func,onBlur:a.func,onScroll:a.func,value:a.string,defaultValue:a.string,onLoad:a.func,onSelectionChange:a.func,onCursorChange:a.func,onBeforeLoad:a.func,onValidate:a.func,minLines:a.number,maxLines:a.number,readOnly:a.bool,highlightActiveLine:a.bool,tabSize:a.number,showPrintMargin:a.bool,cursorStart:a.number,debounceChangePeriod:a.number,editorProps:a.object,setOptions:a.object,style:a.object,scrollMargin:a.array,annotations:a.array,markers:a.array,keyboardHandler:a.string,wrapEnabled:a.bool,enableSnippets:a.bool,enableBasicAutocompletion:a.oneOfType([a.bool,a.array]),enableLiveAutocompletion:a.oneOfType([a.bool,a.array]),navigateToFileEnd:a.bool,commands:a.array,placeholder:a.string},t.defaultProps={name:"ace-editor",focus:!1,mode:"",theme:"",height:"500px",width:"500px",fontSize:12,enableSnippets:!1,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,placeholder:null,navigateToFileEnd:!0},t}(l.Component);t.default=h},7212(e,t,n){"use strict";var r,i=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(135),s=n(1609),a=n(7911),l=n(5042),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:n.props.value},n.onChange=n.onChange.bind(n),n.diff=n.diff.bind(n),n}return i(t,e),t.prototype.componentDidUpdate=function(){var e=this.props.value;e!==this.state.value&&this.setState({value:e})},t.prototype.onChange=function(e){this.setState({value:e}),this.props.onChange&&this.props.onChange(e)},t.prototype.diff=function(){var e=new l,t=this.state.value[0],n=this.state.value[1];if(0===t.length&&0===n.length)return[];var r=e.diff_main(t,n);e.diff_cleanupSemantic(r);var i=this.generateDiffedLines(r);return this.setCodeMarkers(i)},t.prototype.generateDiffedLines=function(e){var t={left:[],right:[]},n={left:1,right:1};return e.forEach((function(e){var r=e[0],i=e[1],o=i.split("\n").length-1;if(0!==i.length){var s=i[0],a=i[i.length-1],l=0;switch(r){case 0:n.left+=o,n.right+=o;break;case-1:"\n"===s&&(n.left++,o--),0===(l=o)&&t.right.push({startLine:n.right,endLine:n.right}),"\n"===a&&(l-=1),t.left.push({startLine:n.left,endLine:n.left+l}),n.left+=o;break;case 1:"\n"===s&&(n.right++,o--),0===(l=o)&&t.left.push({startLine:n.left,endLine:n.left}),"\n"===a&&(l-=1),t.right.push({startLine:n.right,endLine:n.right+l}),n.right+=o;break;default:throw new Error("Diff type was not defined.")}}})),t},t.prototype.setCodeMarkers=function(e){void 0===e&&(e={left:[],right:[]});for(var t=[],n={left:[],right:[]},r=0;r<e.left.length;r++){var i={startRow:e.left[r].startLine-1,endRow:e.left[r].endLine,type:"text",className:"codeMarker"};n.left.push(i)}for(r=0;r<e.right.length;r++)i={startRow:e.right[r].startLine-1,endRow:e.right[r].endLine,type:"text",className:"codeMarker"},n.right.push(i);return t[0]=n.left,t[1]=n.right,t},t.prototype.render=function(){var e=this.diff();return s.createElement(a.default,{name:this.props.name,className:this.props.className,focus:this.props.focus,orientation:this.props.orientation,splits:this.props.splits,mode:this.props.mode,theme:this.props.theme,height:this.props.height,width:this.props.width,fontSize:this.props.fontSize,showGutter:this.props.showGutter,onChange:this.onChange,onPaste:this.props.onPaste,onLoad:this.props.onLoad,onScroll:this.props.onScroll,minLines:this.props.minLines,maxLines:this.props.maxLines,readOnly:this.props.readOnly,highlightActiveLine:this.props.highlightActiveLine,showPrintMargin:this.props.showPrintMargin,tabSize:this.props.tabSize,cursorStart:this.props.cursorStart,editorProps:this.props.editorProps,style:this.props.style,scrollMargin:this.props.scrollMargin,setOptions:this.props.setOptions,wrapEnabled:this.props.wrapEnabled,enableBasicAutocompletion:this.props.enableBasicAutocompletion,enableLiveAutocompletion:this.props.enableLiveAutocompletion,value:this.state.value,markers:e})},t.propTypes={cursorStart:o.number,editorProps:o.object,enableBasicAutocompletion:o.bool,enableLiveAutocompletion:o.bool,focus:o.bool,fontSize:o.number,height:o.string,highlightActiveLine:o.bool,maxLines:o.number,minLines:o.number,mode:o.string,name:o.string,className:o.string,onLoad:o.func,onPaste:o.func,onScroll:o.func,onChange:o.func,orientation:o.string,readOnly:o.bool,scrollMargin:o.array,setOptions:o.object,showGutter:o.bool,showPrintMargin:o.bool,splits:o.number,style:o.object,tabSize:o.number,theme:o.string,value:o.array,width:o.string,wrapEnabled:o.bool},t.defaultProps={cursorStart:1,editorProps:{},enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,focus:!1,fontSize:12,height:"500px",highlightActiveLine:!0,maxLines:null,minLines:null,mode:"",name:"ace-editor",onLoad:null,onScroll:null,onPaste:null,onChange:null,orientation:"beside",readOnly:!1,scrollMargin:[0,0,0,0],setOptions:{},showGutter:!0,showPrintMargin:!0,splits:2,style:{},tabSize:4,theme:"github",value:["",""],width:"500px",wrapEnabled:!0},t}(s.Component);t.default=c},9378(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAceInstance=t.debounce=t.editorEvents=t.editorOptions=void 0,t.editorOptions=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"],t.editorEvents=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"],t.getAceInstance=function(){var e;return"undefined"==typeof window?(globalThis.window={},e=n(1973),delete globalThis.window):window.ace?(e=window.ace).acequire=window.ace.require||window.ace.acequire:e=n(1973),e},t.debounce=function(e,t){var n=null;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout((function(){e.apply(r,i)}),t)}}},8579(e,t,n){"use strict";var r=n(3468);n(7212).default,n(7911).default,r.default},7911(e,t,n){"use strict";var r,i=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(9378),a=(0,s.getAceInstance)(),l=n(1973),c=n(5336),d=n(135),u=n(1609),h=n(1097),p=n(9529),f=function(e){function t(t){var n=e.call(this,t)||this;return s.editorEvents.forEach((function(e){n[e]=n[e].bind(n)})),n.debounce=s.debounce,n}return i(t,e),t.prototype.isInShadow=function(e){for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1},t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.className,r=t.onBeforeLoad,i=t.mode,o=t.focus,l=t.theme,d=t.fontSize,u=t.value,h=t.defaultValue,f=t.cursorStart,g=t.showGutter,m=t.wrapEnabled,b=t.showPrintMargin,v=t.scrollMargin,y=void 0===v?[0,0,0,0]:v,w=t.keyboardHandler,x=t.onLoad,k=t.commands,_=t.annotations,C=t.markers,T=t.splits;this.editor=a.edit(this.refEditor),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.setTheme("ace/theme/".concat(l)),r&&r(a);var S=Object.keys(this.props.editorProps),E=new c.Split(this.editor.container,"ace/theme/".concat(l),T);this.editor.env.split=E,this.splitEditor=E.getEditor(0),this.split=E,this.editor.setShowPrintMargin(!1),this.editor.renderer.setShowGutter(!1);var $=this.splitEditor.$options;this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),E.forEach((function(t,n){for(var r=0;r<S.length;r++)t[S[r]]=e.props.editorProps[S[r]];var o=p(h,n),c=p(u,n,"");t.session.setUndoManager(new a.UndoManager),t.setTheme("ace/theme/".concat(l)),t.renderer.setScrollMargin(y[0],y[1],y[2],y[3]),t.getSession().setMode("ace/mode/".concat(i)),t.setFontSize(d),t.renderer.setShowGutter(g),t.getSession().setUseWrapMode(m),t.setShowPrintMargin(b),t.on("focus",e.onFocus),t.on("blur",e.onBlur),t.on("input",e.onInput),t.on("copy",e.onCopy),t.on("paste",e.onPaste),t.on("change",e.onChange),t.getSession().selection.on("changeSelection",e.onSelectionChange),t.getSession().selection.on("changeCursor",e.onCursorChange),t.session.on("changeScrollTop",e.onScroll),t.setValue(void 0===o?c:o,f);var v=p(_,n,[]),x=p(C,n,[]);for(t.getSession().setAnnotations(v),x&&x.length>0&&e.handleMarkers(x,t),r=0;r<s.editorOptions.length;r++){var T=s.editorOptions[r];$.hasOwnProperty(T)?t.setOption(T,e.props[T]):e.props[T]&&console.warn("ReaceAce: editor option ".concat(T," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}e.handleOptions(e.props,t),Array.isArray(k)&&k.forEach((function(e){"string"==typeof e.exec?t.commands.bindKey(e.bindKey,e.exec):t.commands.addCommand(e)})),w&&t.setKeyboardHandler("ace/keyboard/"+w)})),n&&(this.refEditor.className+=" "+n),o&&this.splitEditor.focus();var M=this.editor.env.split;M.setOrientation("below"===this.props.orientation?M.BELOW:M.BESIDE),M.resize(!0),x&&x(M)},t.prototype.componentDidUpdate=function(e){var t=this,n=e,r=this.props,i=this.editor.env.split;if(r.splits!==n.splits&&i.setSplits(r.splits),r.orientation!==n.orientation&&i.setOrientation("below"===r.orientation?i.BELOW:i.BESIDE),i.forEach((function(e,i){r.mode!==n.mode&&e.getSession().setMode("ace/mode/"+r.mode),r.keyboardHandler!==n.keyboardHandler&&(r.keyboardHandler?e.setKeyboardHandler("ace/keyboard/"+r.keyboardHandler):e.setKeyboardHandler(null)),r.fontSize!==n.fontSize&&e.setFontSize(r.fontSize),r.wrapEnabled!==n.wrapEnabled&&e.getSession().setUseWrapMode(r.wrapEnabled),r.showPrintMargin!==n.showPrintMargin&&e.setShowPrintMargin(r.showPrintMargin),r.showGutter!==n.showGutter&&e.renderer.setShowGutter(r.showGutter);for(var o=0;o<s.editorOptions.length;o++){var a=s.editorOptions[o];r[a]!==n[a]&&e.setOption(a,r[a])}h(r.setOptions,n.setOptions)||t.handleOptions(r,e);var l=p(r.value,i,"");if(e.getValue()!==l){t.silent=!0;var c=e.session.selection.toJSON();e.setValue(l,r.cursorStart),e.session.selection.fromJSON(c),t.silent=!1}var d=p(r.annotations,i,[]),u=p(n.annotations,i,[]);h(d,u)||e.getSession().setAnnotations(d);var f=p(r.markers,i,[]),g=p(n.markers,i,[]);!h(f,g)&&Array.isArray(f)&&t.handleMarkers(f,e)})),r.className!==n.className){var o=this.refEditor.className.trim().split(" ");n.className.trim().split(" ").forEach((function(e){var t=o.indexOf(e);o.splice(t,1)})),this.refEditor.className=" "+r.className+" "+o.join(" ")}r.theme!==n.theme&&i.setTheme("ace/theme/"+r.theme),r.focus&&!n.focus&&this.splitEditor.focus(),r.height===this.props.height&&r.width===this.props.width||this.editor.resize()},t.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},t.prototype.onChange=function(e){if(this.props.onChange&&!this.silent){var t=[];this.editor.env.split.forEach((function(e){t.push(e.getValue())})),this.props.onChange(t,e)}},t.prototype.onSelectionChange=function(e){if(this.props.onSelectionChange){var t=[];this.editor.env.split.forEach((function(e){t.push(e.getSelection())})),this.props.onSelectionChange(t,e)}},t.prototype.onCursorChange=function(e){if(this.props.onCursorChange){var t=[];this.editor.env.split.forEach((function(e){t.push(e.getSelection())})),this.props.onCursorChange(t,e)}},t.prototype.onFocus=function(e){this.props.onFocus&&this.props.onFocus(e)},t.prototype.onInput=function(e){this.props.onInput&&this.props.onInput(e)},t.prototype.onBlur=function(e){this.props.onBlur&&this.props.onBlur(e)},t.prototype.onCopy=function(e){this.props.onCopy&&this.props.onCopy(e)},t.prototype.onPaste=function(e){this.props.onPaste&&this.props.onPaste(e)},t.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},t.prototype.handleOptions=function(e,t){for(var n=Object.keys(e.setOptions),r=0;r<n.length;r++)t.setOption(n[r],e.setOptions[n[r]])},t.prototype.handleMarkers=function(e,t){var n=t.getSession().getMarkers(!0);for(var r in n)n.hasOwnProperty(r)&&t.getSession().removeMarker(n[r].id);for(var r in n=t.getSession().getMarkers(!1))n.hasOwnProperty(r)&&t.getSession().removeMarker(n[r].id);e.forEach((function(e){var n=e.startRow,r=e.startCol,i=e.endRow,o=e.endCol,s=e.className,a=e.type,c=e.inFront,d=void 0!==c&&c,u=new l.Range(n,r,i,o);t.getSession().addMarker(u,s,a,d)}))},t.prototype.updateRef=function(e){this.refEditor=e},t.prototype.render=function(){var e=this.props,t=e.name,n=e.width,r=e.height,i=e.style,s=o({width:n,height:r},i);return u.createElement("div",{ref:this.updateRef,id:t,style:s})},t.propTypes={className:d.string,debounceChangePeriod:d.number,defaultValue:d.arrayOf(d.string),focus:d.bool,fontSize:d.oneOfType([d.number,d.string]),height:d.string,mode:d.string,name:d.string,onBlur:d.func,onChange:d.func,onCopy:d.func,onFocus:d.func,onInput:d.func,onLoad:d.func,onPaste:d.func,onScroll:d.func,orientation:d.string,showGutter:d.bool,splits:d.number,theme:d.string,value:d.arrayOf(d.string),width:d.string,onSelectionChange:d.func,onCursorChange:d.func,onBeforeLoad:d.func,minLines:d.number,maxLines:d.number,readOnly:d.bool,highlightActiveLine:d.bool,tabSize:d.number,showPrintMargin:d.bool,cursorStart:d.number,editorProps:d.object,setOptions:d.object,style:d.object,scrollMargin:d.array,annotations:d.array,markers:d.array,keyboardHandler:d.string,wrapEnabled:d.bool,enableBasicAutocompletion:d.oneOfType([d.bool,d.array]),enableLiveAutocompletion:d.oneOfType([d.bool,d.array]),commands:d.array},t.defaultProps={name:"ace-editor",focus:!1,orientation:"beside",splits:2,mode:"",theme:"",height:"500px",width:"500px",value:[],fontSize:12,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1},t}(u.Component);t.default=f},6364(e,t){"use strict";function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0});var r={value:"data-value",disabled:"data-disabled",class:"class",type:"type"},i=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._node=t instanceof HTMLElement?t:document.createElement(t),this._config={i18n:r},this._setAttributes(n),n.textContent&&this._setTextContent(n.textContent),this}var t,i;return t=e,(i=[{key:"get",value:function(){return this._node}},{key:"append",value:function(e){return this._node.appendChild(e),this}},{key:"addClass",value:function(e){return this._node.classList.add(e),this}},{key:"removeClass",value:function(e){return this._node.classList.remove(e),this}},{key:"toggleClass",value:function(e){return this._node.classList.toggle(e),this}},{key:"addEventListener",value:function(e,t){return this._node.addEventListener(e,t),this}},{key:"removeEventListener",value:function(e,t){return this._node.removeEventListener(e,t),this}},{key:"setText",value:function(e){return this._setTextContent(e),this}},{key:"getHeight",value:function(){return window.getComputedStyle(this._node).height}},{key:"setTop",value:function(e){return this._node.style.top="".concat(e,"px"),this}},{key:"focus",value:function(){return this._node.focus(),this}},{key:"_setTextContent",value:function(e){this._node.textContent=e}},{key:"_setAttributes",value:function(e){for(var t in e)r[t]&&e[t]&&this._setAttribute(r[t],e[t])}},{key:"_setAttribute",value:function(e,t){this._node.setAttribute(e,t)}}])&&n(t.prototype,i),e}();t.default=i},6708(e,t,n){"use strict";var r;(r=n(6364))&&r.__esModule},1647(){!function(e){"use strict";var t=Object.defineProperty,n=Object.defineProperties,r=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,a=(e,n,r)=>n in e?t(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,l=(e,t)=>{for(var n in t||(t={}))o.call(t,n)&&a(e,n,t[n]);if(i)for(var n of i(t))s.call(t,n)&&a(e,n,t[n]);return e},c=(e,t,n)=>a(e,"symbol"!=typeof t?t+"":t,n);const d={Log(...e){console&&console.log&&console.log(...e)},Error(...e){console&&console.error&&console.error(...e)},Warn(...e){console&&console.warn&&console.warn(...e)},Debug(...e){console&&console.debug&&console.debug(...e)}};function u(e,t){const n=e.contentWindow,r=e.src,i={};if(!n||!r)return null;const o=function(e){if(!(e&&e.origin&&e.origin.indexOf("js.stripe.com")>0||e.origin.indexOf("www.paypal.com")>0)&&e.origin===t&&e&&e.data&&"string"==typeof e.data&&"{"===e.data.charAt(0))try{const t=JSON.parse(e.data);"object"==typeof t&&t.type&&i[t.type]&&i[t.type].forEach((e=>{e(t.data)}))}catch(e){d.Error(e)}};return window.addEventListener("message",o),{on(e,t){i[e]||(i[e]=[]),i[e].push(t)},one(e,t,n=!1){n&&delete i[e],!i[e]&&this.on(e,t)},destroy(){window.removeEventListener("message",o)},post(e,t){n.postMessage(JSON.stringify({type:e,data:t}),r.replace(/([^:]+:\/\/[^/]+).*/,"$1"))}}}const h=2147483647;function p(e){return void 0===e||"function"==typeof e||"object"==typeof e&&null!==e}function f(){return"undefined"==typeof window}function g(e,t){if(null==e)throw new Error(t)}class m{constructor(e){c(this,"styleElement"),c(this,"bodyScrollDisableClassName"),c(this,"isFlashingBrowser"),c(this,"overflow",{x:0,y:0}),c(this,"metaColorSchemeValue",null),c(this,"metaColorSchemeElement",null),this.guid=e,this.bodyScrollDisableClassName=`is-fs-checkout-open-${this.guid}`,this.styleElement=document.createElement("style"),this.styleElement.textContent+=this.getBasicStyle(),this.isFlashingBrowser=function(){let e=!1;try{const t=navigator.userAgent.toLowerCase();/edge\/|trident\/|msie /.test(t)?e=!0:-1!==t.indexOf("safari")&&(t.indexOf("chrome")>-1||(e=!0))}catch(e){}return e}()||!f()&&!!document.querySelector("#___gatsby"),this.metaColorSchemeElement=document.head.querySelector('meta[name="color-scheme"]')}addStyle(e){this.styleElement.textContent+=e}attach(){return document.head.appendChild(this.styleElement),this}remove(){return document.head.removeChild(this.styleElement),this}disableBodyScroll(){this.backupScrollPosition(),document.body.classList.add(this.bodyScrollDisableClassName)}enableBodyScroll(){document.body.classList.remove(this.bodyScrollDisableClassName),this.restoreScrollPosition()}disableMetaColorScheme(){this.metaColorSchemeElement&&(this.metaColorSchemeValue=this.metaColorSchemeElement.getAttribute("content"),this.metaColorSchemeElement.setAttribute("content","light"))}enableMetaColorScheme(){this.metaColorSchemeElement&&this.metaColorSchemeValue&&(this.metaColorSchemeElement.setAttribute("content",this.metaColorSchemeValue),this.metaColorSchemeValue=null)}getBasicStyle(){return`body.${this.bodyScrollDisableClassName} { overflow: hidden !important; }`}backupScrollPosition(){this.overflow={x:document.documentElement.scrollTop,y:document.documentElement.scrollLeft}}restoreScrollPosition(){document.documentElement.scrollTop=this.overflow.x,document.documentElement.scrollLeft=this.overflow.y}}class b{constructor(e,t,n="Loading Freemius Checkout"){c(this,"loaderElement"),c(this,"isOpen",!1),c(this,"loaderElementId"),this.style=e,this.loaderElementId=`fs-loader-${this.style.guid}`,this.loaderElement=document.createElement("div"),this.loaderElement.id=this.loaderElementId,this.loaderElement.innerHTML=`<img src="${t}" alt="${n}" />`,this.style.addStyle(this.getStyle())}show(){return this.isOpen||(this.loaderElement.classList.add("show"),document.body.appendChild(this.loaderElement),this.isOpen=!0),this}hide(){return this.isOpen?(this.loaderElement.classList.remove("show"),document.body.removeChild(this.loaderElement),this.isOpen=!1,this):this}getStyle(){return`#${this.loaderElementId} { display: none; position: fixed; z-index: ${h-1}; width: 100%; height: 100%; top: 0; left: 0; right: 0; bottom: 0; text-align: left; background: rgba(0, 0, 0, 0.6); transition: opacity 200ms ease-out; will-change: opacity; opacity: 0; } #${this.loaderElementId}.show { opacity: 1; display: block; } #${this.loaderElementId} img { position: absolute; top: 40%; left: 50%; width: auto; height: auto; margin-left: -25px; background: #fff; padding: 10px; border-radius: 50%; box-shadow: 2px 2px 2px rgba(0,0,0,0.1); }`}}class v{constructor(e,t,n,r,i){c(this,"postman",null),c(this,"iFrame"),c(this,"loadedEventListeners",new Set),c(this,"closedEventListeners",new Set),this.baseUrl=e,this.visibleClass=r,this.checkoutEvents=i,this.iFrame=this.attachIFrame(e,t,n),this.addEventListeners()}close(){var e;null==(e=this.postman)||e.post("close",null)}onClosed(e){this.closedEventListeners.add(e)}onLoaded(e){this.loadedEventListeners.add(e)}addToExitIntent(e){e.addListener((()=>{var e,t,n;null==(e=this.postman)||e.post("exit_intent",null),null==(n=(t=this.checkoutEvents).onExitIntent)||n.call(t)}))}attachIFrame(e,t,n){const r=`${e}/?${function(e){const t=[];return Object.keys(e).forEach((n=>{const r=function(e){return p(e)?null:null===e?"null":!0===e?"1":!1===e?"0":encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")}(e[n]);null!==r&&t.push(`${n}=${r}`)})),t.join("&")}(t)}#${encodeURIComponent(document.location.href)}`,i=document.createElement("iframe");return i.id=n,i.src=r,i.setAttribute("allowTransparency","true"),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("style","background: rgba(0,0,0,0.003); border: 0 none transparent;"),i.setAttribute("frameborder","0"),i.setAttribute("data-testid",i.id),document.body.appendChild(i),i}addEventListeners(){var e,t,n,r,i;const{success:o,purchaseCompleted:s,cancel:a,track:l,afterOpen:c,afterClose:h}=this.checkoutEvents;this.postman=u(this.iFrame,this.baseUrl),null==(e=this.postman)||e.one("upgraded",(e=>{try{null==o||o(e)}catch(e){d.Error(e)}this.dispatchOnClosed(),this.removeIFrameAndPostman(),null==h||h()}),!0),null==(t=this.postman)||t.one("purchaseCompleted",(e=>{try{null==s||s(e)}catch(e){d.Error(e)}}),!0),null==(n=this.postman)||n.one("canceled",(()=>{try{null==a||a()}catch(e){d.Error(e)}this.dispatchOnClosed(),this.removeIFrameAndPostman(),null==h||h()}),!0),null==(r=this.postman)||r.on("track",(e=>{try{null==l||l(e.event,e)}catch(e){d.Error(e)}})),null==(i=this.postman)||i.one("loaded",(()=>{var e;this.dispatchOnLoaded(),null==(e=this.iFrame)||e.classList.add(this.visibleClass);try{null==c||c()}catch(e){d.Error(e)}}),!0)}removeIFrameAndPostman(){var e;null==(e=this.postman)||e.destroy(),this.postman=null,this.iFrame.remove(),this.closedEventListeners.clear(),this.loadedEventListeners.clear()}dispatchOnLoaded(){this.loadedEventListeners.forEach((e=>e()))}dispatchOnClosed(){this.closedEventListeners.forEach((e=>e()))}}const y=class e{constructor(e,t,n){c(this,"iFrameID"),this.style=e,this.options=t,this.baseUrl=n,this.iFrameID=`fs-checkout-page-${this.style.guid}`}create(t){const n=l(l({},this.options),t);return new v(this.baseUrl,this.getQueryParams(n),this.iFrameID,e.VISIBLE_CLASS,n)}addStyle(){this.style.addStyle(this.getStyle())}getQueryParams(e){const t={mode:"dialog",guid:this.style.guid,_fs_checkout:!0};Object.entries(e).forEach((([e,n])=>{p(n)||(t[e]=n)}));const{sandbox:n}=e;return n&&n.ctx&&n.token&&(t.s_ctx_ts=n.ctx,t.sandbox=n.token),t}getStyle(){return`#${this.iFrameID} { z-index: ${h-1}; background: rgba(0,0,0,0.003); border: 0 none transparent; visibility: ${this.style.isFlashingBrowser?"hidden":"visible"}; margin: 0; padding: 0; position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; -webkit-tap-highlight-color: transparent; overflow: hidden; } #${this.iFrameID}.${e.VISIBLE_CLASS} { visibility: visible; }`}};c(y,"VISIBLE_CLASS","show");let w=y;class x{constructor(e,t,n,r,i){c(this,"checkoutIFrameBuilder"),c(this,"checkoutIFrame",null),this.style=e,this.exitIntent=t,this.loader=n,this.checkoutIFrameBuilder=new w(this.style,i,r),this.checkoutIFrameBuilder.addStyle()}isOpen(){return null!==this.checkoutIFrame}open(e){return this.isOpen()||(this.style.disableBodyScroll(),this.style.disableMetaColorScheme(),this.loader.show(),this.exitIntent.attach(),this.checkoutIFrame=this.checkoutIFrameBuilder.create(e),this.checkoutIFrame.onLoaded(this.onLoaded.bind(this)),this.checkoutIFrame.onClosed(this.onClosed.bind(this)),this.checkoutIFrame.addToExitIntent(this.exitIntent)),this}close(){var e;return null==(e=this.checkoutIFrame)||e.close(),this}onLoaded(){this.loader.hide()}onClosed(){this.checkoutIFrame=null,this.loader.hide(),this.style.enableBodyScroll(),this.style.enableMetaColorScheme(),this.exitIntent.detach()}}class k{constructor(e){c(this,"exitIntentId"),c(this,"exitIntentDiv",null),c(this,"clearExitIntentListener",null),c(this,"listeners",[]),this.style=e,this.exitIntentId=`fs-exit-intent-${this.style.guid}`,this.style.addStyle(this.getStyle())}isAttached(){return null!==this.exitIntentDiv}addListener(...e){this.listeners.push(...e)}attach(...e){if(e&&this.addListener(...e),this.isAttached())return this;this.exitIntentDiv=document.createElement("div"),this.exitIntentDiv.id=this.exitIntentId,document.body.appendChild(this.exitIntentDiv);const t=document.documentElement;let n=null;const r=e=>{e.pageY<=20&&(n=window.setTimeout((()=>{try{this.fireListeners()}catch(e){d.Error(e)}}),300))},i=()=>{n&&(clearTimeout(n),n=null)};return t.addEventListener("mouseleave",r),t.addEventListener("mouseenter",i),this.clearExitIntentListener=()=>{n&&(clearTimeout(n),n=null),t.removeEventListener("mouseleave",r),t.removeEventListener("mouseenter",i)},this}detach(){var e,t;return this.isAttached()?(null==(e=this.exitIntentDiv)||e.remove(),this.exitIntentDiv=null,null==(t=this.clearExitIntentListener)||t.call(this),this):this}fireListeners(){this.listeners.forEach((e=>{e()}))}getStyle(){return`#${this.exitIntentId} { z-index: ${h}; border: 0; background: transparent; position: fixed; padding: 0; margin: 0; height: 10px; left: 0; right: 0; width: 100%; top: 0; }`}}const _=class e{constructor(e){c(this,"queryParams",null),this.url=e,this.queryParams=this.parseQueryStringForCart()}hasCart(){return null!==this.queryParams}getPluginID(){return g(this.queryParams,e.NO_CART_FOUND_MESSAGE),this.queryParams.__fs_plugin_id}getPluginPublicKey(){return g(this.queryParams,e.NO_CART_FOUND_MESSAGE),this.queryParams.__fs_plugin_public_key}matchesPluginID(e){const t=Number.parseInt(this.getPluginID(),10),n=Number.parseInt(e.toString(),10);return Number.isFinite(t)&&Number.isFinite(n)&&t===n}getCheckoutOptions(){g(this.queryParams,e.NO_CART_FOUND_MESSAGE);const t={plugin_id:"",public_key:""};return Object.entries(this.queryParams).forEach((([e,n])=>{"__fs_plugin_id"===e?t.plugin_id=n:"__fs_plugin_public_key"===e?t.public_key=n:t[e]=n})),t}parseQueryStringForCart(){const e=new URLSearchParams(this.url.search);if(!e.has("__fs_authorization"))return null;const t={};return e.forEach(((e,n)=>{n.startsWith("__fs_")&&(t[n]=e)})),t}};c(_,"NO_CART_FOUND_MESSAGE","No cart was found");let C=_;class T{constructor(e,t=!0,a="https://checkout.freemius.com"){var d;c(this,"options",{plugin_id:0,public_key:""}),c(this,"guid"),c(this,"style"),c(this,"loader"),c(this,"checkoutPopup"),c(this,"exitIntent"),c(this,"cart"),this.baseUrl=a;const u=e,{plugin_id:h,product_id:p,public_key:g}=u,v=((e,t)=>{var n={};for(var r in e)o.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&i)for(var r of i(e))t.indexOf(r)<0&&s.call(e,r)&&(n[r]=e[r]);return n})(u,["plugin_id","product_id","public_key"]);if(!h&&!p)throw new Error("Must provide a product_id to options.");if(!g)throw new Error("Must provide the public_key to options.");this.options=((e,t)=>n(e,r(t)))(l({},v),{public_key:g,plugin_id:null!=p?p:h}),this.guid=function(){const e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}(),!f()&&(this.style=new m(this.guid),this.loader=new b(this.style,null!=(d=e.loadingImageUrl)?d:`${this.baseUrl}/assets/img/spinner.svg`,e.loadingImageAlt),this.exitIntent=new k(this.style),this.checkoutPopup=new x(this.style,this.exitIntent,this.loader,this.baseUrl,this.options),this.style.attach(),this.cart=new C(new URL(window.location.href)),t&&this.recoverCart())}open(e){var t,n;if(!f()){if(null!=(t=this.checkoutPopup)&&t.isOpen())return void d.Warn("Checkout popup already open. Please close it first before opening it again.");null==(n=this.checkoutPopup)||n.open(e)}}close(){var e;f()||null==(e=this.checkoutPopup)||e.close()}destroy(){var e;f()||(this.close(),null==(e=this.style)||e.remove())}getGuid(){return this.guid}recoverCart(){var e,t;if(null!=(e=this.cart)&&e.hasCart()&&null!=(t=this.cart)&&t.matchesPluginID(this.options.plugin_id)){const e=this.cart.getCheckoutOptions();this.open(e)}}}window.FS=window.FS||{},window.FS.Checkout=T,window.FS.postman=u,window.FS.Logger=d,e.Checkout=T,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}({})},1609(e){"use strict";e.exports=window.React}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);i.r(o);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,i.d(o,s),o},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{"use strict";const e=window.ReactDOM;var t=i(1609),n=i.t(t,2),r="popstate";function o(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function s(e={}){return function(e,t,n,i={}){let{window:s=document.defaultView,v5Compat:l=!1}=i,h=s.history,p="POP",f=null,g=m();function m(){return(h.state||{idx:null}).idx}function b(){p="POP";let e=m(),t=null==e?null:e-g;g=e,f&&f({action:p,location:y.location,delta:t})}function v(e){return function(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),a(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:u(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}(e)}null==g&&(g=0,h.replaceState({...h.state,idx:g},""));let y={get action(){return p},get location(){return e(s,h)},listen(e){if(f)throw new Error("A history only accepts one active listener");return s.addEventListener(r,b),f=e,()=>{s.removeEventListener(r,b),f=null}},createHref:e=>t(s,e),createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){p="PUSH";let r=o(e)?e:d(y.location,e,t);n&&n(r,e),g=m()+1;let i=c(r,g),a=y.createHref(r.mask||r);try{h.pushState(i,"",a)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;s.location.assign(a)}l&&f&&f({action:p,location:y.location,delta:1})},replace:function(e,t){p="REPLACE";let r=o(e)?e:d(y.location,e,t);n&&n(r,e),g=m();let i=c(r,g),s=y.createHref(r.mask||r);h.replaceState(i,"",s),l&&f&&f({action:p,location:y.location,delta:0})},go:e=>h.go(e)};return y}((function(e,t){let{pathname:n="/",search:r="",hash:i=""}=h(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),d("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:u(t))}),(function(e,t){l("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function a(e,t){if(!1===e||null==e)throw new Error(t)}function l(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function c(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function d(e,t,n=null,r,i){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?h(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),mask:i}}function u({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function h(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function p(e,t,n="/"){return f(e,t,n,!1)}function f(e,t,n,r,i){let o=E(("string"==typeof t?h(t):t).pathname||"/",n);if(null==o)return null;let s=i??function(e){let t=g(e);return function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(t),t}(e),a=null,c=function(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return l(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}(o);for(let e=0;null==a&&e<s.length;++e)a=T(s[e],c,r);return a}function g(e,t=[],n=[],r="",i=!1){let o=(e,o,s=i,l)=>{let c={relativePath:void 0===l?e.path||"":l,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(r)&&s)return;a(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let d=j([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(a(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),g(e.children,t,u,d,s)),(null!=e.path||e.index)&&t.push({path:d,score:C(d,e.index),routesMeta:u})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of m(e.path))o(e,t,!0,n);else o(e,t)})),t}function m(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let s=m(r.join("/")),a=[];return a.push(...s.map((e=>""===e?o:[o,e].join("/")))),i&&a.push(...s),a.map((t=>e.startsWith("/")&&""===t?"/":t))}new WeakMap;var b=/^:[\w-]+$/,v=3,y=2,w=1,x=10,k=-2,_=e=>"*"===e;function C(e,t){let n=e.split("/"),r=n.length;return n.some(_)&&(r+=k),t&&(r+=y),n.filter((e=>!_(e))).reduce(((e,t)=>e+(b.test(t)?v:""===t?w:x)),r)}function T(e,t,n=!1){let{routesMeta:r}=e,i={},o="/",s=[];for(let e=0;e<r.length;++e){let a=r[e],l=e===r.length-1,c="/"===o?t:t.slice(o.length)||"/",d=S({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},c),u=a.route;if(!d&&l&&n&&!r[r.length-1].route.index&&(d=S({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},c)),!d)return null;Object.assign(i,d.params),s.push({params:i,pathname:j([o,d.pathname]),pathnameBase:O(j([o,d.pathnameBase])),route:u}),"/"!==d.pathnameBase&&(o=j([o,d.pathnameBase]))}return s}function S(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){l("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n,i,o)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=o.charAt(i+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"})).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=a[r]||"";s=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const i=a[r];return e[t]=n&&!i?void 0:(i||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:s,pattern:e}}function E(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var $=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function M(e,t){let n=I(t).split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function L(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function A(e){let t=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function R(e,t,n,r=!1){let i;"string"==typeof e?i=h(e):(i={...e},a(!i.pathname||!i.pathname.includes("?"),L("?","pathname","search",i)),a(!i.pathname||!i.pathname.includes("#"),L("#","pathname","hash",i)),a(!i.search||!i.search.includes("#"),L("#","search","hash",i)));let o,s=""===e||""===i.pathname,l=s?"/":i.pathname;if(null==l)o=n;else{let e=t.length-1;if(!r&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let c=function(e,t="/"){let n,{pathname:r,search:i="",hash:o=""}="string"==typeof e?h(e):e;return r?(r=N(r),n=r.startsWith("/")?M(r.substring(1),"/"):M(r,t)):n=t,{pathname:n,search:D(i),hash:P(o)}}(i,o),d=l&&"/"!==l&&l.endsWith("/"),u=(s||"."===l)&&n.endsWith("/");return c.pathname.endsWith("/")||!d&&!u||(c.pathname+="/"),c}var N=e=>e.replace(/\/\/+/g,"/"),j=e=>N(e.join("/")),I=e=>e.replace(/\/+$/,""),O=e=>I(e).replace(/^\/*/,"/"),D=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",P=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",F=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function z(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function B(e){let t=e.map((e=>e.route.path)).filter(Boolean);return j(t)||"/"}var H="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function W(e,t){let n=e;if("string"!=typeof n||!$.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(H)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),o=E(r.pathname,t);r.origin===e.origin&&null!=o?n=o+r.search+r.hash:i=!0}catch(e){l(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Symbol("Uninstrumented"),Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var U=["POST","PUT","PATCH","DELETE"],V=(new Set(U),["GET",...U]);new Set(V),Symbol("ResetLoaderData"),new WeakMap,new WeakMap,new WeakMap,new WeakMap;var q=t.createContext(null);q.displayName="DataRouter";var G=t.createContext(null);G.displayName="DataRouterState";var Y=t.createContext(!1);function K(){return t.useContext(Y)}var X=t.createContext({isTransitioning:!1});X.displayName="ViewTransition",t.createContext(new Map).displayName="Fetchers",t.createContext(null).displayName="Await";var Q=t.createContext(null);Q.displayName="Navigation";var Z=t.createContext(null);Z.displayName="Location";var J=t.createContext({outlet:null,matches:[],isDataRoute:!1});J.displayName="Route";var ee=t.createContext(null);ee.displayName="RouteError";var te="REACT_ROUTER_ERROR";function ne(){return null!=t.useContext(Z)}function re(){return a(ne(),"useLocation() may be used only in the context of a <Router> component."),t.useContext(Z).location}var ie="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function oe(e){t.useContext(Q).static||t.useLayoutEffect(e)}function se(){let{isDataRoute:e}=t.useContext(J);return e?function(){let{router:e}=function(e){let n=t.useContext(q);return a(n,me(e)),n}("useNavigate"),n=be("useNavigate"),r=t.useRef(!1);return oe((()=>{r.current=!0})),t.useCallback((async(t,i={})=>{l(r.current,ie),r.current&&("number"==typeof t?await e.navigate(t):await e.navigate(t,{fromRouteId:n,...i}))}),[e,n])}():function(){a(ne(),"useNavigate() may be used only in the context of a <Router> component.");let e=t.useContext(q),{basename:n,navigator:r}=t.useContext(Q),{matches:i}=t.useContext(J),{pathname:o}=re(),s=JSON.stringify(A(i)),c=t.useRef(!1);return oe((()=>{c.current=!0})),t.useCallback(((t,i={})=>{if(l(c.current,ie),!c.current)return;if("number"==typeof t)return void r.go(t);let a=R(t,JSON.parse(s),o,"path"===i.relative);null==e&&"/"!==n&&(a.pathname="/"===a.pathname?n:j([n,a.pathname])),(i.replace?r.replace:r.push)(a,i.state,i)}),[n,r,s,o,e])}()}var ae=t.createContext(null);function le(e,{relative:n}={}){let{matches:r}=t.useContext(J),{pathname:i}=re(),o=JSON.stringify(A(r));return t.useMemo((()=>R(e,JSON.parse(o),i,"path"===n)),[e,o,i,n])}function ce(e,n,r){a(ne(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=t.useContext(Q),{matches:o}=t.useContext(J),s=o[o.length-1],c=s?s.params:{},d=s?s.pathname:"/",u=s?s.pathnameBase:"/",f=s&&s.route;{let e=f&&f.path||"";ye(d,!f||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let g,m=re();if(n){let e="string"==typeof n?h(n):n;a("/"===u||e.pathname?.startsWith(u),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${e.pathname}" was given in the \`location\` prop.`),g=e}else g=m;let b=g.pathname||"/",v=b;if("/"!==u){let e=u.replace(/^\//,"").split("/");v="/"+b.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=r&&r.state.matches.length?r.state.matches.map((e=>Object.assign(e,{route:r.manifest[e.route.id]||e.route}))):p(e,{pathname:v});l(f||null!=y,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),l(null==y||void 0!==y[y.length-1].route.element||void 0!==y[y.length-1].route.Component||void 0!==y[y.length-1].route.lazy,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=function(e,n=[],r){let i=r?.state;if(null==e){if(!i)return null;if(i.errors)e=i.matches;else{if(0!==n.length||i.initialized||!(i.matches.length>0))return null;e=i.matches}}let o=e,s=i?.errors;if(null!=s){let e=o.findIndex((e=>e.route.id&&void 0!==s?.[e.route.id]));a(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let l=!1,c=-1;if(r&&i){l=i.renderFallback;for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:n}=i,s=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!n||void 0===n[t.route.id]);if(t.route.lazy||s){r.isStatic&&(l=!0),o=c>=0?o.slice(0,c+1):[o[0]];break}}}}let d=r?.onError,u=i&&d?(e,t)=>{d(e,{location:i.location,params:i.matches?.[0]?.params??{},pattern:B(i.matches),errorInfo:t})}:void 0;return o.reduceRight(((e,r,a)=>{let d,h=!1,p=null,f=null;i&&(d=s&&r.route.id?s[r.route.id]:void 0,p=r.route.errorElement||ue,l&&(c<0&&0===a?(ye("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,f=null):c===a&&(h=!0,f=r.route.hydrateFallbackElement||null)));let g=n.concat(o.slice(0,a+1)),m=()=>{let n;return n=d?p:h?f:r.route.Component?t.createElement(r.route.Component,null):r.route.element?r.route.element:e,t.createElement(ge,{match:r,routeContext:{outlet:e,matches:g,isDataRoute:null!=i},children:n})};return i&&(r.route.ErrorBoundary||r.route.errorElement||0===a)?t.createElement(he,{location:i.location,revalidation:i.revalidation,component:p,error:d,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0},onError:u}):m()}),null)}(y&&y.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:j([u,i.encodeLocation?i.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:j([u,i.encodeLocation?i.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])}))),o,r);return n&&w?t.createElement(Z.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...g},navigationType:"POP"}},w):w}function de(){let e=function(){let e=t.useContext(ee),n=function(e){let n=t.useContext(G);return a(n,me(e)),n}("useRouteError"),r=be("useRouteError");return void 0!==e?e:n.errors?.[r]}(),n=z(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:i},s={padding:"2px 4px",backgroundColor:i},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=t.createElement(t.Fragment,null,t.createElement("p",null,"💿 Hey developer 👋"),t.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",t.createElement("code",{style:s},"ErrorBoundary")," or"," ",t.createElement("code",{style:s},"errorElement")," prop on your route.")),t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},n),r?t.createElement("pre",{style:o},r):null,l)}var ue=t.createElement(de,null),he=class extends t.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${te}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new F(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let n=void 0!==e?t.createElement(J.Provider,{value:this.props.routeContext},t.createElement(ee.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?t.createElement(fe,{error:e},n):n}};he.contextType=Y;var pe=new WeakMap;function fe({children:e,error:n}){let{basename:r}=t.useContext(Q);if("object"==typeof n&&n&&"digest"in n&&"string"==typeof n.digest){let e=function(e){if(e.startsWith(`${te}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(n.digest);if(e){let i=pe.get(n);if(i)throw i;let o=W(e.location,r);if(H&&!pe.get(n)){if(!o.isExternal&&!e.reloadDocument){const t=Promise.resolve().then((()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace})));throw pe.set(n,t),t}window.location.href=o.absoluteURL||o.to}return t.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function ge({routeContext:e,match:n,children:r}){let i=t.useContext(q);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),t.createElement(J.Provider,{value:e},r)}function me(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function be(e){let n=function(e){let n=t.useContext(J);return a(n,me(e)),n}(e),r=n.matches[n.matches.length-1];return a(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}var ve={};function ye(e,t,n){t||ve[e]||(ve[e]=!0,l(!1,n))}function we({to:e,replace:n,state:r,relative:i}){a(ne(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=t.useContext(Q);l(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=t.useContext(J),{pathname:c}=re(),d=se(),u=R(e,A(s),c,"path"===i),h=JSON.stringify(u);return t.useEffect((()=>{d(JSON.parse(h),{replace:n,state:r,relative:i})}),[d,h,i,n,r]),null}function xe(e){return function(e){let n=t.useContext(J).outlet;return t.useMemo((()=>n&&t.createElement(ae.Provider,{value:e},n)),[n,e])}(e.context)}function ke(e){a(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function _e({basename:e="/",children:n=null,location:r,navigationType:i="POP",navigator:o,static:s=!1,useTransitions:c}){a(!ne(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=e.replace(/^\/*/,"/"),u=t.useMemo((()=>({basename:d,navigator:o,static:s,useTransitions:c,future:{}})),[d,o,s,c]);"string"==typeof r&&(r=h(r));let{pathname:p="/",search:f="",hash:g="",state:m=null,key:b="default",mask:v}=r,y=t.useMemo((()=>{let e=E(p,d);return null==e?null:{location:{pathname:e,search:f,hash:g,state:m,key:b,mask:v},navigationType:i}}),[d,p,f,g,m,b,i,v]);return l(null!=y,`<Router basename="${d}"> is not able to match the URL "${p}${f}${g}" because it does not start with the basename, so the <Router> won't render anything.`),null==y?null:t.createElement(Q.Provider,{value:u},t.createElement(Z.Provider,{children:n,value:y}))}function Ce({children:e,location:t}){return ce(Te(e),t)}function Te(e,n=[]){let r=[];return t.Children.forEach(e,((e,i)=>{if(!t.isValidElement(e))return;let o=[...n,i];if(e.type===t.Fragment)return void r.push.apply(r,Te(e.props.children,o));a(e.type===ke,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),a(!e.props.index||!e.props.children,"An index route cannot have child routes.");let s={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=Te(e.props.children,o)),r.push(s)})),r}n.useOptimistic,t.memo((function({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:o}){return ce(e,void 0,{manifest:t,state:r,isStatic:i,onError:o,future:n})})),t.Component;var Se="get",Ee="application/x-www-form-urlencoded";function $e(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var Me=null,Le=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ae(e){return null==e||Le.has(e)?e:(l(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ee}"`),null)}function Re(e,t){if(!1===e||null==e)throw new Error(t)}function Ne(e,t,n,r){let i="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:"/"===i.pathname?i.pathname=`_root.${r}`:t&&"/"===E(i.pathname,t)?i.pathname=`${I(t)}/_root.${r}`:i.pathname=`${I(i.pathname)}.${r}`,i}function je(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function Ie(e,t,n,r,i,o){let s=(e,t)=>!n[t]||e.route.id!==n[t].route.id,a=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===o?t.filter(((e,t)=>s(e,t)||a(e,t))):"data"===o?t.filter(((t,o)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(s(t,o)||a(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function Oe(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i})).flat(1),[...new Set(r)];var r}function De(){let e=t.useContext(q);return Re(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Pe(){let e=t.useContext(G);return Re(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis,Symbol("SingleFetchRedirect");var Fe=t.createContext(void 0);function ze(){let e=t.useContext(Fe);return Re(e,"You must render this element inside a <HydratedRouter> element"),e}function Be(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function He({page:e,...n}){let r=K(),{router:i}=De(),o=t.useMemo((()=>p(i.routes,e,i.basename)),[i.routes,e,i.basename]);return o?r?t.createElement(Ue,{page:e,matches:o,...n}):t.createElement(Ve,{page:e,matches:o,...n}):null}function We(e){let{manifest:n,routeModules:r}=ze(),[i,o]=t.useState([]);return t.useEffect((()=>{let t=!1;return async function(e,t,n){return function(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,i)=>{if(t&&(null==(o=i)||"string"!=typeof o.page)&&"script"===i.as&&i.href&&r.has(i.href))return e;var o;let s=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(i));return n.has(s)||(n.add(s),e.push({key:s,link:i})),e}),[])}((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(je).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(e,n,r).then((e=>{t||o(e)})),()=>{t=!0}}),[e,n,r]),i}function Ue({page:e,matches:n,...r}){let i=re(),{future:o}=ze(),{basename:s}=De(),a=t.useMemo((()=>{if(e===i.pathname+i.search+i.hash)return[];let t=Ne(e,s,o.unstable_trailingSlashAwareDataRequests,"rsc"),r=!1,a=[];for(let e of n)"function"==typeof e.route.shouldRevalidate?r=!0:a.push(e.route.id);return r&&a.length>0&&t.searchParams.set("_routes",a.join(",")),[t.pathname+t.search]}),[s,o.unstable_trailingSlashAwareDataRequests,e,i,n]);return t.createElement(t.Fragment,null,a.map((e=>t.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r}))))}function Ve({page:e,matches:n,...r}){let i=re(),{future:o,manifest:s,routeModules:a}=ze(),{basename:l}=De(),{loaderData:c,matches:d}=Pe(),u=t.useMemo((()=>Ie(e,n,d,s,i,"data")),[e,n,d,s,i]),h=t.useMemo((()=>Ie(e,n,d,s,i,"assets")),[e,n,d,s,i]),p=t.useMemo((()=>{if(e===i.pathname+i.search+i.hash)return[];let t=new Set,r=!1;if(n.forEach((e=>{let n=s.routes[e.route.id];n&&n.hasLoader&&(!u.some((t=>t.route.id===e.route.id))&&e.route.id in c&&a[e.route.id]?.shouldRevalidate||n.hasClientLoader?r=!0:t.add(e.route.id))})),0===t.size)return[];let d=Ne(e,l,o.unstable_trailingSlashAwareDataRequests,"data");return r&&t.size>0&&d.searchParams.set("_routes",n.filter((e=>t.has(e.route.id))).map((e=>e.route.id)).join(",")),[d.pathname+d.search]}),[l,o.unstable_trailingSlashAwareDataRequests,c,i,s,u,n,e,a]),f=t.useMemo((()=>Oe(h,s)),[h,s]),g=We(h);return t.createElement(t.Fragment,null,p.map((e=>t.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r}))),f.map((e=>t.createElement("link",{key:e,rel:"modulepreload",href:e,...r}))),g.map((({key:e,link:n})=>t.createElement("link",{key:e,nonce:r.nonce,...n,crossOrigin:n.crossOrigin??r.crossOrigin}))))}Fe.displayName="FrameworkContext";function qe(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}t.Component;var Ge="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Ge&&(window.__reactRouterVersion="7.15.1")}catch(tt){}function Ye({basename:e,children:n,useTransitions:r,window:i}){let o=t.useRef();null==o.current&&(o.current=s({window:i,v5Compat:!0}));let a=o.current,[l,c]=t.useState({action:a.action,location:a.location}),d=t.useCallback((e=>{!1===r?c(e):t.startTransition((()=>c(e)))}),[r]);return t.useLayoutEffect((()=>a.listen(d)),[a,d]),t.createElement(_e,{basename:e,children:n,location:l.location,navigationType:l.action,navigator:a,useTransitions:r})}var Ke=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xe=t.forwardRef((function({onClick:e,discover:n="render",prefetch:r="none",relative:i,reloadDocument:o,replace:s,mask:l,state:c,target:d,to:h,preventScrollReset:p,viewTransition:f,defaultShouldRevalidate:g,...m},b){let{basename:v,navigator:y,useTransitions:w}=t.useContext(Q),x="string"==typeof h&&Ke.test(h),k=W(h,v),_=function(e,{relative:n}={}){a(ne(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=t.useContext(Q),{hash:o,pathname:s,search:l}=le(e,{relative:n}),c=s;return"/"!==r&&(c="/"===s?r:j([r,s])),i.createHref({pathname:c,search:l,hash:o})}(h=k.to,{relative:i}),C=re(),T=null;if(l){let e=R(l,[],C.mask?C.mask.pathname:"/",!0);"/"!==v&&(e.pathname="/"===e.pathname?v:j([v,e.pathname])),T=y.createHref(e)}let[S,E,$]=function(e,n){let r=t.useContext(Fe),[i,o]=t.useState(!1),[s,a]=t.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:d,onMouseLeave:u,onTouchStart:h}=n,p=t.useRef(null);t.useEffect((()=>{if("render"===e&&a(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{a(e.isIntersecting)}))}),{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}}),[e]),t.useEffect((()=>{if(i){let e=setTimeout((()=>{a(!0)}),100);return()=>{clearTimeout(e)}}}),[i]);let f=()=>{o(!0)},g=()=>{o(!1),a(!1)};return r?"intent"!==e?[s,p,{}]:[s,p,{onFocus:Be(l,f),onBlur:Be(c,g),onMouseEnter:Be(d,f),onMouseLeave:Be(u,g),onTouchStart:Be(h,f)}]:[!1,p,{}]}(r,m),M=function(e,{target:n,replace:r,mask:i,state:o,preventScrollReset:s,relative:a,viewTransition:l,defaultShouldRevalidate:c,useTransitions:d}={}){let h=se(),p=re(),f=le(e,{relative:a});return t.useCallback((g=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(g,n)){g.preventDefault();let n=void 0!==r?r:u(p)===u(f),m=()=>h(e,{replace:n,mask:i,state:o,preventScrollReset:s,relative:a,viewTransition:l,defaultShouldRevalidate:c});d?t.startTransition((()=>m())):m()}}),[p,h,f,r,i,o,n,e,s,a,l,c,d])}(h,{replace:s,mask:l,state:c,target:d,preventScrollReset:p,relative:i,viewTransition:f,defaultShouldRevalidate:g,useTransitions:w}),L=!(k.isExternal||o),A=t.createElement("a",{...m,...$,href:(L?T:void 0)||k.absoluteURL||_,onClick:L?function(t){e&&e(t),t.defaultPrevented||M(t)}:e,ref:qe(b,E),target:d,"data-discover":x||"render"!==n?void 0:"true"});return S&&!x?t.createElement(t.Fragment,null,A,t.createElement(He,{page:_})):A}));Xe.displayName="Link",t.forwardRef((function({"aria-current":e="page",caseSensitive:n=!1,className:r="",end:i=!1,style:o,to:s,viewTransition:l,children:c,...d},u){let h=le(s,{relative:d.relative}),p=re(),f=t.useContext(G),{navigator:g,basename:m}=t.useContext(Q),b=null!=f&&function(e,{relative:n}={}){let r=t.useContext(X);a(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Ze("useViewTransitionState"),o=le(e,{relative:n});if(!r.isTransitioning)return!1;let s=E(r.currentLocation.pathname,i)||r.currentLocation.pathname,l=E(r.nextLocation.pathname,i)||r.nextLocation.pathname;return null!=S(o.pathname,l)||null!=S(o.pathname,s)}(h)&&!0===l,v=g.encodeLocation?g.encodeLocation(h).pathname:h.pathname,y=p.pathname,w=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;n||(y=y.toLowerCase(),w=w?w.toLowerCase():null,v=v.toLowerCase()),w&&m&&(w=E(w,m)||w);const x="/"!==v&&v.endsWith("/")?v.length-1:v.length;let k,_=y===v||!i&&y.startsWith(v)&&"/"===y.charAt(x),C=null!=w&&(w===v||!i&&w.startsWith(v)&&"/"===w.charAt(v.length)),T={isActive:_,isPending:C,isTransitioning:b},$=_?e:void 0;k="function"==typeof r?r(T):[r,_?"active":null,C?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let M="function"==typeof o?o(T):o;return t.createElement(Xe,{...d,"aria-current":$,className:k,ref:u,style:M,to:s,viewTransition:l},"function"==typeof c?c(T):c)})).displayName="NavLink";var Qe=t.forwardRef((({discover:e="render",fetcherKey:n,navigate:r,reloadDocument:i,replace:o,state:s,method:l=Se,action:c,onSubmit:d,relative:h,preventScrollReset:p,viewTransition:f,defaultShouldRevalidate:g,...m},b)=>{let{useTransitions:v}=t.useContext(Q),y=function(){let{router:e}=Ze("useSubmit"),{basename:n}=t.useContext(Q),r=be("useRouteId"),i=e.fetch,o=e.navigate;return t.useCallback((async(e,t={})=>{let{action:s,method:a,encType:l,formData:c,body:d}=function(e,t){let n,r,i,o,s;if($e(a=e)&&"form"===a.tagName.toLowerCase()){let s=e.getAttribute("action");r=s?E(s,t):null,n=e.getAttribute("method")||Se,i=Ae(e.getAttribute("enctype"))||Ee,o=new FormData(e)}else if(function(e){return $e(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return $e(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let s=e.form;if(null==s)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=e.getAttribute("formaction")||s.getAttribute("action");if(r=a?E(a,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||Se,i=Ae(e.getAttribute("formenctype"))||Ae(s.getAttribute("enctype"))||Ee,o=new FormData(s,e),!function(){if(null===Me)try{new FormData(document.createElement("form"),0),Me=!1}catch(e){Me=!0}return Me}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,r)}}else{if($e(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Se,r=null,i=Ee,s=e}var a;return o&&"text/plain"===i&&(s=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:s}}(e,n);if(!1===t.navigate){let e=t.fetcherKey||et();await i(e,r,t.action||s,{defaultShouldRevalidate:t.defaultShouldRevalidate,preventScrollReset:t.preventScrollReset,formData:c,body:d,formMethod:t.method||a,formEncType:t.encType||l,flushSync:t.flushSync})}else await o(t.action||s,{defaultShouldRevalidate:t.defaultShouldRevalidate,preventScrollReset:t.preventScrollReset,formData:c,body:d,formMethod:t.method||a,formEncType:t.encType||l,replace:t.replace,state:t.state,fromRouteId:r,flushSync:t.flushSync,viewTransition:t.viewTransition})}),[i,o,n,r])}(),w=function(e,{relative:n}={}){let{basename:r}=t.useContext(Q),i=t.useContext(J);a(i,"useFormAction must be used inside a RouteContext");let[o]=i.matches.slice(-1),s={...le(e||".",{relative:n})},l=re();if(null==e){s.search=l.search;let e=new URLSearchParams(s.search),t=e.getAll("index"),n=t.some((e=>""===e));if(n){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();s.search=n?`?${n}`:""}}return e&&"."!==e||!o.route.index||(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),"/"!==r&&(s.pathname="/"===s.pathname?r:j([r,s.pathname])),u(s)}(c,{relative:h}),x="get"===l.toLowerCase()?"get":"post",k="string"==typeof c&&Ke.test(c);return t.createElement("form",{ref:b,method:x,action:w,onSubmit:i?d:e=>{if(d&&d(e),e.defaultPrevented)return;e.preventDefault();let i=e.nativeEvent.submitter,a=i?.getAttribute("formmethod")||l,c=()=>y(i||e.currentTarget,{fetcherKey:n,method:a,navigate:r,replace:o,state:s,relative:h,preventScrollReset:p,viewTransition:f,defaultShouldRevalidate:g});v&&!1!==r?t.startTransition((()=>c())):c()},...m,"data-discover":k||"render"!==e?void 0:"true"})}));function Ze(e){let n=t.useContext(q);return a(n,function(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),n}Qe.displayName="Form";var Je=0,et=()=>`__${String(++Je)}__`;let tt={data:""},nt=e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||tt},rt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,it=/\/\*[^]*?\*\/| +/g,ot=/\n+/g,st=(e,t)=>{let n="",r="",i="";for(let o in e){let s=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+s+";":r+="f"==o[1]?st(s,o):o+"{"+st(s,"k"==o[1]?"":t)+"}":"object"==typeof s?r+=st(s,t?t.replace(/([^,])+/g,(e=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):o):null!=s&&(o="-"==o[1]?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=st.p?st.p(o,s):o+":"+s+";")}return n+(t&&i?t+"{"+i+"}":i)+r},at={},lt=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+lt(e[n]);return t}return e},ct=(e,t,n,r,i)=>{let o=lt(e),s=at[o]||(at[o]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(o));if(!at[s]){let t=o!==e?e:(e=>{let t,n,r=[{}];for(;t=rt.exec(e.replace(it,""));)t[4]?r.shift():t[3]?(n=t[3].replace(ot," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(ot," ").trim();return r[0]})(e);at[s]=st(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}let a=n&&at.g;return n&&(at.g=at[s]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(at[s],t,r,a),s};function dt(e){let t=this||{},n=e.call?e(t.p):e;return ct(n.unshift?n.raw?((e,t,n)=>e.reduce(((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":st(e,""):!1===e?"":e}return e+r+(o??"")}),""))(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,nt(t.target),t.g,t.o,t.k)}dt.bind({g:1});let ut,ht,pt,ft=dt.bind({k:1});function gt(e,t){let n=this||{};return function(){let r=arguments;function i(o,s){let a=Object.assign({},o),l=a.className||i.className;n.p=Object.assign({theme:ht&&ht()},a),n.o=/go\d/.test(l),a.className=dt.apply(n,r)+(l?" "+l:""),t&&(a.ref=s);let c=e;return e[0]&&(c=a.as||e,delete a.as),pt&&c[0]&&pt(a),ut(c,a)}return t?t(i):i}}var mt=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,bt=(()=>{let e=0;return()=>(++e).toString()})(),vt=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),yt="default",wt=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,n)};case 1:return{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:r}=t;return wt(e,{type:e.toasts.find((e=>e.id===r.id))?1:0,toast:r});case 3:let{toastId:i}=t;return{...e,toasts:e.toasts.map((e=>e.id===i||void 0===i?{...e,dismissed:!0,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+o})))}}},xt=[],kt={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},_t={},Ct=(e,t=yt)=>{_t[t]=wt(_t[t]||kt,e),xt.forEach((([e,n])=>{e===t&&n(_t[t])}))},Tt=e=>Object.keys(_t).forEach((t=>Ct(e,t))),St=(e=yt)=>t=>{Ct(t,e)},Et={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},$t=e=>(t,n)=>{let r=((e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||bt()}))(t,e,n);return St(r.toasterId||(e=>Object.keys(_t).find((t=>_t[t].toasts.some((t=>t.id===e)))))(r.id))({type:2,toast:r}),r.id},Mt=(e,t)=>$t("blank")(e,t);Mt.error=$t("error"),Mt.success=$t("success"),Mt.loading=$t("loading"),Mt.custom=$t("custom"),Mt.dismiss=(e,t)=>{let n={type:3,toastId:e};t?St(t)(n):Tt(n)},Mt.dismissAll=e=>Mt.dismiss(void 0,e),Mt.remove=(e,t)=>{let n={type:4,toastId:e};t?St(t)(n):Tt(n)},Mt.removeAll=e=>Mt.remove(void 0,e),Mt.promise=(e,t,n)=>{let r=Mt.loading(t.loading,{...n,...null==n?void 0:n.loading});return"function"==typeof e&&(e=e()),e.then((e=>{let i=t.success?mt(t.success,e):void 0;return i?Mt.success(i,{id:r,...n,...null==n?void 0:n.success}):Mt.dismiss(r),e})).catch((e=>{let i=t.error?mt(t.error,e):void 0;i?Mt.error(i,{id:r,...n,...null==n?void 0:n.error}):Mt.dismiss(r)})),e};var Lt=ft` |
| 172 |
`,Qt=({reverseOrder:e,position:n="top-center",toastOptions:r,gutter:i,children:o,toasterId:s,containerStyle:a,containerClassName:l})=>{let{toasts:c,handlers:d}=((e,n="default")=>{let{toasts:r,pausedAt:i}=((e={},n=yt)=>{let[r,i]=(0,t.useState)(_t[n]||kt),o=(0,t.useRef)(_t[n]);(0,t.useEffect)((()=>(o.current!==_t[n]&&i(_t[n]),xt.push([n,i]),()=>{let e=xt.findIndex((([e])=>e===n));e>-1&&xt.splice(e,1)})),[n]);let s=r.toasts.map((t=>{var n,r,i;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(n=e[t.type])?void 0:n.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||Et[t.type],style:{...e.style,...null==(i=e[t.type])?void 0:i.style,...t.style}}}));return{...r,toasts:s}})(e,n),o=(0,t.useRef)(new Map).current,s=(0,t.useCallback)(((e,t=1e3)=>{if(o.has(e))return;let n=setTimeout((()=>{o.delete(e),a({type:4,toastId:e})}),t);o.set(e,n)}),[]);(0,t.useEffect)((()=>{if(i)return;let e=Date.now(),t=r.map((t=>{if(t.duration===1/0)return;let r=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(r<0))return setTimeout((()=>Mt.dismiss(t.id,n)),r);t.visible&&Mt.dismiss(t.id)}));return()=>{t.forEach((e=>e&&clearTimeout(e)))}}),[r,i,n]);let a=(0,t.useCallback)(St(n),[n]),l=(0,t.useCallback)((()=>{a({type:5,time:Date.now()})}),[a]),c=(0,t.useCallback)(((e,t)=>{a({type:1,toast:{id:e,height:t}})}),[a]),d=(0,t.useCallback)((()=>{i&&a({type:6,time:Date.now()})}),[i,a]),u=(0,t.useCallback)(((e,t)=>{let{reverseOrder:n=!1,gutter:i=8,defaultPosition:o}=t||{},s=r.filter((t=>(t.position||o)===(e.position||o)&&t.height)),a=s.findIndex((t=>t.id===e.id)),l=s.filter(((e,t)=>t<a&&e.visible)).length;return s.filter((e=>e.visible)).slice(...n?[l+1]:[0,l]).reduce(((e,t)=>e+(t.height||0)+i),0)}),[r]);return(0,t.useEffect)((()=>{r.forEach((e=>{if(e.dismissed)s(e.id,e.removeDelay);else{let t=o.get(e.id);t&&(clearTimeout(t),o.delete(e.id))}}))}),[r,s]),{toasts:r,handlers:{updateHeight:c,startPause:l,endPause:d,calculateOffset:u}}})(r,s);return t.createElement("div",{"data-rht-toaster":s||"",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...a},className:l,onMouseEnter:d.startPause,onMouseLeave:d.endPause},c.map((r=>{let s=r.position||n,a=((e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:vt()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}})(s,d.calculateOffset(r,{reverseOrder:e,gutter:i,defaultPosition:n}));return t.createElement(Kt,{id:r.id,key:r.id,onHeightUpdate:d.updateHeight,className:r.visible?Xt:"",style:a},"custom"===r.type?mt(r.message,r):o?o(r):t.createElement(Yt,{toast:r,position:s}))})))};const Zt=window.ReactJSXRuntime,Jt=({type:e="button",href:t="",target:n="",onClick:r=null,className:i,variant:o="primary",size:s="",children:a,disabled:l=!1,...c})=>{const d=`bPlButton ${o?`variant-${o}`:""} ${s?`size-${s}`:""} ${i||""} ${l?"bPlButton-disabled":""}`;return"function"!=typeof r&&t?(0,Zt.jsx)("a",{href:t,target:n,className:d,...c,children:a}):(0,Zt.jsx)("button",{type:e,className:d,...c,onClick:r,children:a})},en=(0,Zt.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"}),(0,Zt.jsx)("polyline",{points:"9 12 11 14 15 10"})]}),tn=(0,Zt.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",children:(0,Zt.jsx)("polyline",{points:"20 6 9 17 4 12"})}),nn=(0,Zt.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),rn=(0,Zt.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,Zt.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),on=(0,Zt.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),(0,Zt.jsx)("polyline",{points:"15 3 21 3 21 9"}),(0,Zt.jsx)("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]}),sn=(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640",children:(0,Zt.jsx)("path",{d:"M224 32C241.7 32 256 46.3 256 64L256 160L384 160L384 64C384 46.3 398.3 32 416 32C433.7 32 448 46.3 448 64L448 160L512 160C529.7 160 544 174.3 544 192C544 209.7 529.7 224 512 224L512 288C512 383.1 442.8 462.1 352 477.3L352 544C352 561.7 337.7 576 320 576C302.3 576 288 561.7 288 544L288 477.3C197.2 462.1 128 383.1 128 288L128 224C110.3 224 96 209.7 96 192C96 174.3 110.3 160 128 160L192 160L192 64C192 46.3 206.3 32 224 32z"})}),an=(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 11 13",stroke:"currentColor",strokeLinecap:"round",children:(0,Zt.jsx)("path",{d:"M2.5 5.16931V3.16931C2.49936 2.5198 2.73579 1.89239 3.16492 1.40483C3.59404 0.917267 4.18636 0.603088 4.8307 0.521257C5.47503 0.439426 6.12708 0.595571 6.66446 0.960383C7.20184 1.3252 7.5876 1.87359 7.74933 2.50264M5.16667 8.50264C5.34348 8.50264 5.51305 8.43241 5.63807 8.30738C5.76309 8.18236 5.83333 8.01279 5.83333 7.83598C5.83333 7.65917 5.76309 7.4896 5.63807 7.36457C5.51305 7.23955 5.34348 7.16931 5.16667 7.16931C4.98986 7.16931 4.82029 7.23955 4.69526 7.36457C4.57024 7.4896 4.5 7.65917 4.5 7.83598C4.5 8.01279 4.57024 8.18236 4.69526 8.30738C4.82029 8.43241 4.98986 8.50264 5.16667 8.50264ZM5.16667 8.50264V10.5026M1.56667 5.16931H8.76667C9.35333 5.16931 9.83333 5.64931 9.83333 6.23598V10.9026C9.83333 11.7826 9.11333 12.5026 8.23333 12.5026H2.1C1.22 12.5026 0.5 11.7826 0.5 10.9026V6.23598C0.5 5.64931 0.98 5.16931 1.56667 5.16931Z"})}),ln=(0,Zt.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",children:[(0,Zt.jsx)("path",{d:"M3 3L21 21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),(0,Zt.jsx)("path",{d:"M10.5 10.677a2 2 0 002.823 2.823",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),(0,Zt.jsx)("path",{d:"M7.362 7.561C5.68 8.74 4.279 10.42 3 12c1.889 2.991 5.282 6 9 6 1.55 0 3.043-.523 4.395-1.35M12 6c4.008 0 6.701 3.158 9 6a15.66 15.66 0 01-1.078 1.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),cn=(0,Zt.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",children:[(0,Zt.jsx)("path",{d:"M12 5C7.52 5 3.73 7.61 1 12c2.73 4.39 6.52 7 11 7s8.27-2.61 11-7c-2.73-4.39-6.52-7-11-7z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"3",stroke:"currentColor",strokeWidth:"2"})]}),dn=(0,Zt.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M22 11.08V12a10 10 0 11-5.93-9.14"}),(0,Zt.jsx)("polyline",{points:"22 4 12 14.01 9 11.01"})]}),un=(0,Zt.jsx)("svg",{className:"check",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",children:(0,Zt.jsx)("path",{d:"m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z"})}),hn=(0,Zt.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:(0,Zt.jsx)("polyline",{points:"6 9 12 15 18 9"})}),pn=(0,Zt.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M12 2L4 6v6c0 5 3.5 9.6 8 10 4.5-.4 8-5 8-10V6l-8-4z"}),(0,Zt.jsx)("polyline",{points:"9 12 11 14 15 10"})]}),fn=(0,Zt.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("polyline",{points:"23 4 23 10 17 10"}),(0,Zt.jsx)("polyline",{points:"1 20 1 14 7 14"}),(0,Zt.jsx)("path",{d:"M3.51 9a9 9 0 0114.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0020.49 15"})]}),gn=(0,Zt.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:(0,Zt.jsx)("path",{d:"M21 11.5a8.38 8.38 0 01-.9 3.8 8.5 8.5 0 01-7.6 4.7 8.38 8.38 0 01-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 01-.9-3.8 8.5 8.5 0 014.7-7.6 8.38 8.38 0 013.8-.9h.5a8.48 8.48 0 018 8v.5z"})}),mn=(0,Zt.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2"}),(0,Zt.jsx)("path",{d:"M7 11V7a5 5 0 0110 0v4"})]}),bn=(0,Zt.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:(0,Zt.jsx)("path",{d:"M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"})}),vn=(0,Zt.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),(0,Zt.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),yn=(0,Zt.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Zt.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),(0,Zt.jsx)("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]}),wn=e=>{const{name:n,media:r,version:i,isPremium:o,displayOurPlugins:s,children:a}=e,{logo:l}=r||{},[c,d]=(0,t.useState)(!1),u=t.Children.map(a,(e=>{if(!(0,t.isValidElement)(e))return e;const n=e.props.className||"";return n.includes("bPlDashboardNav")?(0,t.cloneElement)(e,{className:`${n}${c?" open":""}`,onClick:t=>{e.props.onClick?.(t),d(!1)}}):e}));return(0,Zt.jsxs)("div",{className:"bPlDashboardHeader",children:[(0,Zt.jsxs)("div",{className:"pluginInfo",wrap:!0,children:[l&&(0,Zt.jsx)("img",{src:l,alt:n||"Plugin from bPlugins"}),n&&(0,Zt.jsx)("h1",{children:n}),i&&(0,Zt.jsxs)("div",{className:"pluginVersion",children:["v",i]})]}),(0,Zt.jsxs)("button",{className:"bplHamburger"+(c?" open":""),onClick:()=>d((e=>!e)),"aria-label":"Toggle navigation","aria-expanded":c,children:[(0,Zt.jsx)("span",{}),(0,Zt.jsx)("span",{}),(0,Zt.jsx)("span",{})]}),u,(0,Zt.jsxs)("div",{className:"navButtons",children:[s&&(o?(0,Zt.jsxs)(Jt,{href:"#our-plugins",children:[sn,"Our Plugins"]}):(0,Zt.jsx)("a",{className:"linkButton",href:"#our-plugins",children:"Our Plugins"})),!o&&(0,Zt.jsxs)(Jt,{className:"upgrade",href:"#pricing",children:[an,"Upgrade Pro"]})]})]})},xn=[{name:"Welcome",href:"/welcome"},{name:"Blocks",href:"/blocks"},{name:"Cursor and Click Effects",href:"/cursor"},{name:"Settings",href:"/settings"},{name:"Pricing",href:"/pricing"},{name:"Feature Comparison",href:"/feature-comparison"},{name:"Activation",href:"/activation"}],kn=e=>{const{isPremium:t,hasPro:n}=e,r=re();return(0,Zt.jsxs)("div",{className:"bPlDashboard bPlDashboardV4",children:[(0,Zt.jsx)(wn,{...e,children:(0,Zt.jsx)("nav",{className:"bPlDashboardNav",children:xn?.filter((e=>"/activation"!==e.href||n))?.filter((e=>!t||!["/purchase","/pricing","/feature-comparison"].includes(e.href)))?.map(((e,t)=>(0,Zt.jsx)(Xe,{to:e.href,className:"navLink "+(r.pathname===e.href?"active":""),children:e.name},t)))})}),(0,Zt.jsx)("main",{className:"bPlDashboardMain",children:(0,Zt.jsx)(xe,{})})]})},_n=window.wp.i18n;i(1647);const Cn={monthly:{suffix:"/mo"},annual:{suffix:"/yr"},lifetime:{suffix:""}},Tn=e=>{const t="string"==typeof e?parseFloat(e):e;return isNaN(t)?"—":Number.isInteger(t)?String(t):t.toFixed(2)},Sn=({pricingInfo:e,options:n})=>{const{pluginId:r,planId:i,licenses:o,button:s,featured:a,logo:l,hero:c,included:d,trustBadges:u,faqs:h}=e,[p,f]=(0,t.useState)({}),[g,m]=(0,t.useState)(!1),[b,v]=(0,t.useState)([]),[y,w]=(0,t.useState)(""),[x,k]=(0,t.useState)(0);if((0,t.useEffect)((()=>{if(!r)return;let e=!0;return m(!0),fetch(`https://api.bplugins.com/wp-json/bpl/v1/products/${r}`).then((e=>e.ok?e.json():Promise.reject(`${e.status} ${e.statusText}`))).then((t=>{e&&f(t)})).catch((()=>{e&&f({})})).finally((()=>{e&&m(!1)})),()=>{e=!1}}),[r]),(0,t.useEffect)((()=>{if(!p?.id||!i)return;const{plans:e}=p,t=e?.find((e=>parseInt(e.id)===parseInt(i)))||e?.[0]||{},n=t?.pricing?.[0];if(n&&"object"==typeof n){const e=[];void 0!==n.monthly&&e.push({name:"monthly",label:(0,_n.__)("Monthly")}),void 0!==n.annual&&e.push({name:"annual",label:(0,_n.__)("Yearly"),isDefault:!0}),void 0!==n.lifetime&&e.push({name:"lifetime",label:(0,_n.__)("Lifetime")}),v(e),w(e.find((e=>e.isDefault))?.name||e[0]?.name||"")}else v([]),w("")}),[p,i]),g)return(0,Zt.jsxs)("div",{className:"bPlDashboardPricing bPlDashboardPricingLoading",children:[(0,Zt.jsx)("div",{className:"pricingLoadingSpinner"}),(0,Zt.jsx)("p",{children:(0,_n.__)("Loading the latest pricing…")})]});if(!p?.id)return null;const{plans:_}=p,C=_?.find((e=>parseInt(e.id)===parseInt(i)))||_?.[0]||{},T=(C?.pricing||[]).filter((e=>o.includes(e?.licenses??null))),S=T[0];let E=0;if(S?.monthly&&S?.annual){const e=12*parseFloat(S.monthly),t=parseFloat(S.annual);e>0&&(E=Math.round((e-t)/e*100))}const $=((e,t)=>{const n=e.find((e=>"free"===e.name))?.features?.map((e=>e.title)),r=e.find((e=>"pro"===e.name))?.features?.filter((e=>!n.includes(e.title))).map((e=>e.title)),i={free:n,pro:r},o=e.find((e=>parseInt(e.id)===parseInt(t)))?.name,s=i[o]||e.find((e=>parseInt(e.id)===parseInt(t)))?.features?.map((e=>e.title));return s||[]})(_,i),M=E>0?`Save ${E}%`:"",L=1===b.length&&"lifetime"===b[0]?.name,A={eyebrow:c?.eyebrow??(0,_n.__)("Pricing"),title:c?.title??(0,_n.__)("Pick the plan that fits your project"),description:c?.description??(0,_n.__)("Same powerful features on every plan — just choose how many sites you need. Upgrade or downgrade any time.")},R={tag:d?.tag??(0,_n.__)("Same on every plan"),title:d?.title??(0,_n.__)("Everything you get, on every license"),description:d?.description??(0,_n.__)("Every feature is available on every license tier. The only difference is how many sites you can activate the plugin on.")},N=u||[{title:(0,_n.__)("14 days money back"),body:(0,_n.__)("Risk-free purchase"),icon:pn},{title:L?(0,_n.__)("Lifetime updates"):(0,_n.__)("Plugins updates"),body:(0,_n.__)("On every plan"),icon:fn},{title:(0,_n.__)("Priority support"),body:(0,_n.__)("Get help when you need it"),icon:gn},{title:(0,_n.__)("Secure checkout"),body:(0,_n.__)("Powered by Freemius"),icon:mn}],j=h||[{q:(0,_n.__)("Can I upgrade my plan later?"),a:(0,_n.__)("Yes — you can upgrade any time from your account. We prorate the difference automatically.")},L?{q:(0,_n.__)("Will I receive updates if I purchase a lifetime license?"),a:(0,_n.__)("Yes, a lifetime license holds lifetime updates and never expires, ensuring you always have access to the latest features and bug fixes without recurring fees.")}:{q:(0,_n.__)("What happens after my license expires?"),a:(0,_n.__)("The plugin keeps working forever. You only lose access to premium features, updates and premium support unless you renew.")},{q:(0,_n.__)("Do you offer refunds?"),a:(0,_n.__)("Absolutely. Every plan is backed by a 14 days no-questions-asked money-back guarantee.")}];return(0,Zt.jsxs)("div",{className:"bPlDashboardPricing",children:[(0,Zt.jsxs)("header",{className:"pricingHero",children:[(0,Zt.jsx)("span",{className:"pricingEyebrow",children:A.eyebrow}),(0,Zt.jsx)("h1",{children:A.title}),(0,Zt.jsx)("p",{children:A.description})]}),b.length>1&&(0,Zt.jsx)("div",{className:"pricingCycleWrap",children:(0,Zt.jsx)("div",{className:"pricingCycle",role:"tablist",children:b.map((e=>(0,Zt.jsxs)("button",{type:"button",role:"tab","aria-selected":e.name===y,className:e.name===y?"isActive":"",onClick:()=>w(e.name),children:[e.label,"annual"===e.name&&M&&(0,Zt.jsx)("span",{className:"pricingSave",children:M})]},e.name)))})}),(0,Zt.jsx)("div",{className:"pricingPlans",children:T.length?T.map(((e,t)=>{const r=e?.licenses,o=a?.selected===(r||"null"),c=e?.[y],d=Cn[y]||{suffix:""},u=parseFloat(c),h="annual"===y&&e?.annual?parseFloat(e.annual)/12:null,f=r&&!isNaN(u)?u/r:null,g=r?1===r?(0,_n.__)("Single Site"):`${r} ${(0,_n.__)("Sites")}`:(0,_n.__)("Unlimited Sites"),m=r?1===r?(0,_n.__)("For solo creators"):(0,_n.__)("For freelancers"):(0,_n.__)("For agencies & enterprise");return(0,Zt.jsxs)("div",{className:"pricingPlan "+(o?"isFeatured":""),children:[o&&(0,Zt.jsx)("div",{className:"pricingBadge",children:a?.text||(0,_n.__)("Most Popular")}),(0,Zt.jsxs)("div",{className:"pricingPlanHead",children:[(0,Zt.jsx)("h3",{children:g}),(0,Zt.jsx)("p",{children:m})]}),(0,Zt.jsxs)("div",{className:"pricingPriceWrap",children:[(0,Zt.jsxs)("div",{className:"pricingPrice",children:[(0,Zt.jsx)("span",{className:"pricingCurrency",children:"$"}),(0,Zt.jsx)("span",{className:"pricingAmount",children:Tn(c)}),d.suffix&&(0,Zt.jsx)("span",{className:"pricingSuffix",children:d.suffix})]}),null!==f&&(0,Zt.jsxs)("p",{className:"pricingEquiv",children:["≈ $",Tn(f)," ",(0,_n.__)("per site")]}),!r&&(0,Zt.jsx)("p",{className:"pricingEquiv",children:(0,_n.__)("Use on every site you build.")}),null!==h&&"annual"===y&&(0,Zt.jsxs)("p",{className:"pricingEquiv",children:[(0,_n.__)("Billed yearly")," · $",Tn(h),"/mo"]}),"lifetime"===y&&(0,Zt.jsx)("p",{className:"pricingEquiv",children:(0,_n.__)("One-time payment, pay once forever.")}),"monthly"===y&&(0,Zt.jsx)("p",{className:"pricingEquiv",children:(0,_n.__)("Billed monthly, cancel anytime.")})]}),(0,Zt.jsx)(Jt,{className:"pricingCta",onClick:e=>{e.preventDefault(),new FS.Checkout({plugin_id:p.id,plan_id:i,public_key:p.public_key}).open({image:l||p.icon,title:p.title,licenses:r,billing_cycle:y,...n})},children:s.label})]},t)})):(0,Zt.jsx)("p",{className:"pricingEmpty",children:(0,_n.__)("No plans available right now.")})}),$.length>0&&(0,Zt.jsxs)("section",{className:"pricingIncluded",children:[(0,Zt.jsxs)("header",{className:"pricingIncludedHead",children:[(0,Zt.jsx)("span",{className:"pricingIncludedTag",children:R.tag}),(0,Zt.jsx)("h2",{children:R.title}),(0,Zt.jsx)("p",{children:R.description})]}),(0,Zt.jsx)("ul",{className:"pricingIncludedGrid",children:$.map(((e,t)=>(0,Zt.jsxs)("li",{children:[(0,Zt.jsx)("span",{className:"pricingIncludedCheck",children:tn}),(0,Zt.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})]},t)))})]}),(0,Zt.jsx)("section",{className:"pricingTrust",children:N.map(((e,t)=>(0,Zt.jsxs)("div",{className:"pricingTrustItem",children:[(0,Zt.jsx)("span",{className:"pricingTrustIcon",children:e.icon}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("strong",{children:e.title}),(0,Zt.jsx)("span",{children:e.body})]})]},t)))}),(0,Zt.jsxs)("section",{className:"pricingFaq",children:[(0,Zt.jsx)("h2",{children:(0,_n.__)("Frequently asked questions")}),(0,Zt.jsx)("div",{className:"pricingFaqList",children:j.map(((e,t)=>(0,Zt.jsxs)("div",{className:"pricingFaqItem "+(x===t?"isOpen":""),children:[(0,Zt.jsxs)("button",{type:"button",className:"pricingFaqQ","aria-expanded":x===t,onClick:()=>k(x===t?null:t),children:[(0,Zt.jsx)("span",{children:e.q}),hn]}),x===t&&(0,Zt.jsx)("div",{className:"pricingFaqA",children:e.a})]},t)))})]})]})},En=({plans:e=["free","pro"],freemius:n,hero:r,ctaBanner:i,planDescriptions:o})=>{const{product_id:s,public_key:a}=n||{},[l,c]=(0,t.useState)({}),[d,u]=(0,t.useState)(!1),[h,p]=(0,t.useState)([]),[f,g]=(0,t.useState)(""),[m,b]=(0,t.useState)("");if((0,t.useEffect)((()=>{if(!s)return;let e=!0;return u(!0),fetch(`https://api.bplugins.com/wp-json/bpl/v1/products/${s}`).then((e=>e.ok?e.json():Promise.reject(`${e.status} ${e.statusText}`))).then((t=>{e&&c(t)})).catch((()=>{e&&c({})})).finally((()=>{e&&u(!1)})),()=>{e=!1}}),[s]),(0,t.useEffect)((()=>{if(!l?.id)return;const t=l?.plans?.filter((t=>e.includes(t.name)))||[],n=t.find((e=>"free"!==e.name))||t[0]||{},r=n?.pricing?.[0];if(r&&"object"==typeof r){const e=[];void 0!==r.monthly&&e.push({name:"monthly",label:(0,_n.__)("Monthly"),short:"/mo"}),void 0!==r.annual&&e.push({name:"annual",label:(0,_n.__)("Yearly"),short:"/yr",isDefault:!0}),void 0!==r.lifetime&&e.push({name:"lifetime",label:(0,_n.__)("Lifetime"),short:(0,_n.__)("one-time")}),p(e),g(e.find((e=>e.isDefault))?.name||e[0]?.name||"")}else p([]),g("")}),[l]),d)return(0,Zt.jsxs)("div",{className:"bPlDashboardFeatureCompare bPlDashboardFeatureCompareLoading",children:[(0,Zt.jsx)("div",{className:"fcSpinner"}),(0,Zt.jsx)("p",{children:(0,_n.__)("Loading feature comparison…")})]});if(!l?.id)return null;const v=l?.plans?.filter((t=>e.includes(t.name)))||[],y=v.find((e=>"free"!==e.name)),w=(v[v.length-1]?.features||[]).map((e=>{const t=v.filter((t=>t.features.some((t=>t.title===e.title)))).map((e=>e.id));return{...e,plans:t}}));v.forEach((e=>{e.features.forEach((t=>{w.some((e=>e.title===t.title))||w.push({...t,plans:[e.id]})}))}));const x=v.find((e=>"free"===e.name));w.sort(((e,t)=>{const n=!!x&&e.plans?.includes(x.id);return n===(!!x&&t.plans?.includes(x.id))?0:n?-1:1}));let k=0;const _=y?.pricing?.find((e=>1===parseInt(e.licenses)));if(_?.monthly&&_?.annual){const e=12*parseFloat(_.monthly),t=parseFloat(_.annual);e>0&&(k=Math.round((e-t)/e*100))}const C=w.filter((e=>1===e.plans.length&&y&&e.plans[0]===y.id)).length,T=m.trim().toLowerCase(),S=T?w.filter((e=>e.title.replace(/<[^>]+>/g,"").toLowerCase().includes(T))):w,E={eyebrow:r?.eyebrow??(0,_n.__)("Compare"),title:r?.title??(0,_n.__)("Free vs Pro at a glance")},$={title:i?.title??(0,_n.__)("Ready to unlock everything?"),description:i?.description??(0,_n.__)("Upgrade to Pro and get every feature, future updates, and priority support — backed by a 14 days money-back guarantee."),ctaLabel:i?.ctaLabel??(0,_n.__)("Get Pro now →")},M=h.find((e=>e.name===f));return(0,Zt.jsxs)("div",{className:"bPlDashboardFeatureCompare",children:[(0,Zt.jsxs)("header",{className:"fcHero",children:[(0,Zt.jsx)("span",{className:"fcEyebrow",children:E.eyebrow}),(0,Zt.jsx)("h1",{children:E.title}),(0,Zt.jsx)("p",{children:r?.description?r.description:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,_n.__)("See exactly what unlocks when you upgrade.")," ",(0,Zt.jsx)("strong",{children:C})," ",1===C?(0,_n.__)("feature is"):(0,_n.__)("features are")," ",(0,_n.__)("exclusive to Pro.")]})})]}),h.length>1&&(0,Zt.jsx)("div",{className:"fcCycleWrap",children:(0,Zt.jsx)("div",{className:"fcCycle",role:"tablist",children:h.map((e=>(0,Zt.jsxs)("button",{type:"button",role:"tab","aria-selected":e.name===f,className:e.name===f?"isActive":"",onClick:()=>g(e.name),children:[e.label,"annual"===e.name&&k>0&&(0,Zt.jsx)("span",{className:"fcSave",children:`Save ${k}%`})]},e.name)))})}),(0,Zt.jsx)("div",{className:"fcPlans",children:v.map((e=>{const t="free"===e.name,n=Array.isArray(e.pricing)?e.pricing.find((e=>1===parseInt(e.licenses)))?.[f]:"0",r=M?.short||"",i=M?.label||"",l=o?.free??(0,_n.__)("Free forever — all the essentials to get started."),c=o?.pro??(0,_n.__)("Everything in Free, plus advanced features and priority support.");return(0,Zt.jsxs)("div",{className:"fcPlan "+(t?"isFree":"isPro"),children:[(0,Zt.jsxs)("div",{className:"fcPlanHead",children:[(0,Zt.jsx)("div",{className:"fcPlanTag",children:t?(0,_n.__)("Free"):(0,_n.__)("Pro")}),(0,Zt.jsx)("h3",{children:e.title}),(0,Zt.jsx)("p",{children:t?l:c})]}),(0,Zt.jsxs)("div",{className:"fcPlanPrice",children:[(0,Zt.jsx)("span",{className:"fcCurr",children:"$"}),(0,Zt.jsx)("span",{className:"fcAmt",children:t?"0":n||"—"}),(0,Zt.jsx)("span",{className:"fcCyc",children:t?(0,_n.__)("forever"):r===(0,_n.__)("one-time")?(0,_n.__)("one-time"):`${r} · ${(0,_n.__)("billed")} ${i.toLowerCase()}`})]}),t?(0,Zt.jsxs)("div",{className:"fcPlanCtaHave","aria-disabled":"true",children:[tn,(0,_n.__)("You Already Have It")]}):(0,Zt.jsx)(Jt,{className:"fcPlanCta",onClick:t=>{t.preventDefault(),new FS.Checkout({plugin_id:s,plan_id:e.id,public_key:a}).open({licenses:1,billing_cycle:f})},children:(0,_n.__)("Get Pro →")})]},e.id)}))}),(0,Zt.jsxs)("div",{className:"fcTableWrap",children:[(0,Zt.jsxs)("div",{className:"fcTableHead",children:[(0,Zt.jsx)("h2",{children:(0,_n.__)("Feature breakdown")}),(0,Zt.jsxs)("div",{className:"fcSearchBox",children:[rn,(0,Zt.jsx)("input",{type:"text",placeholder:(0,_n.__)("Filter features…"),value:m,onChange:e=>b(e.target.value)}),m&&(0,Zt.jsx)("button",{type:"button",onClick:()=>b(""),"aria-label":(0,_n.__)("Clear filter"),children:"×"})]})]}),(0,Zt.jsx)("div",{className:"fcTableScroll",children:(0,Zt.jsxs)("table",{className:"fcTable",children:[(0,Zt.jsx)("thead",{children:(0,Zt.jsxs)("tr",{children:[(0,Zt.jsx)("th",{children:(0,_n.__)("Feature")}),v.map((e=>(0,Zt.jsx)("th",{className:"free"===e.name?"isFreeCol":"isProCol",children:"free"===e.name?(0,_n.__)("Free"):(0,_n.__)("Pro")},e.id)))]})}),(0,Zt.jsx)("tbody",{children:0===S.length?(0,Zt.jsx)("tr",{children:(0,Zt.jsx)("td",{colSpan:v.length+1,className:"fcEmpty",children:(0,_n.__)("No features match your search.")})}):S.map(((e,t)=>{const n=y&&1===e.plans.length&&e.plans[0]===y.id;return(0,Zt.jsxs)("tr",{className:n?"isProOnly":"",children:[(0,Zt.jsxs)("td",{children:[(0,Zt.jsx)("span",{dangerouslySetInnerHTML:{__html:e.title}}),n&&(0,Zt.jsx)("span",{className:"fcRowTag",children:(0,_n.__)("Pro only")})]}),v.map((t=>{const n=e.plans?.includes(t.id);return(0,Zt.jsx)("td",{className:"free"===t.name?"isFreeCol":"isProCol",children:(0,Zt.jsx)("span",{className:"fcCell "+(n?"isCheck":"isCross"),"aria-label":n?(0,_n.__)("Included"):(0,_n.__)("Not included"),children:n?tn:nn})},t.id)}))]},t)}))})]})})]}),y&&(0,Zt.jsxs)("section",{className:"fcCtaBanner",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("h2",{children:$.title}),(0,Zt.jsx)("p",{children:$.description})]}),(0,Zt.jsx)(Jt,{className:"fcPlanCta",onClick:e=>{e.preventDefault(),new FS.Checkout({plugin_id:s,plan_id:y.id,public_key:a}).open({licenses:1,billing_cycle:f})},children:$.ctaLabel})]})]})},$n=(e,n={},r=!0)=>{const[i,o]=(0,t.useState)(!1),[s,a]=(0,t.useState)(!1),[l,c]=(0,t.useState)(null),[d,u]=(0,t.useState)(null);if(!wp.ajax)return void console.error("Please use wp-util as a dependency");const h=(t={})=>{o(!0),a(!1),c(null),wp.ajax.post(e,{...n,...t}).done((e=>{o(!1),u(e)})).fail((e=>{o(!1),a(!0),c(e)}))},p=(e={})=>{h(e)};return(0,t.useEffect)((()=>{r&&h(n)}),[]),{data:d,saveData:p,refetch:p,isLoading:i,isError:s,error:l}},Mn=(e={})=>{const{isActivated:n,activatedLicense:r,isLoading:i,error:o,refetch:s,setIsActivated:a,setActivatedLicense:l}=(({product_id:e,licenseActiveNonce:n})=>{const[r,i]=(0,t.useState)(!1),[o,s]=(0,t.useState)(""),{data:a,isLoading:l,refetch:c,error:d}=$n(`bpl_${e}_get_license_status`,{nonce:n});return(0,t.useEffect)((()=>{a&&(i(a.is_activated||!1),a.license_key&&s(a.license_key))}),[a]),{isActivated:r,activatedLicense:o,isLoading:l,error:d,refetch:c,setIsActivated:i,setActivatedLicense:s}})(e),{activateLicense:c,isLoading:d,error:u}=(({product_id:e,public_key:n,licenseActiveNonce:r}={})=>{const[i,o]=(0,t.useState)(!1),[s,a]=(0,t.useState)(null);return{activateLicense:t=>t.trim()?(o(!0),a(null),new Promise(((i,s)=>{wp.ajax.post(`bpl_${e}_activate_license`,{license_key:t,product_id:e||"",public_key:n||"",nonce:r}).done((e=>{o(!1),i(e)})).fail((e=>{o(!1),a(e?.message||"Activation failed"),s(e)}))}))):Promise.reject(new Error("Please enter a license key")),isLoading:i,error:s}})(e),{deactivateLicense:h,isLoading:p,error:f}=(({product_id:e,licenseActiveNonce:n})=>{const[r,i]=(0,t.useState)(!1),[o,s]=(0,t.useState)(null);return{deactivateLicense:()=>(i(!0),s(null),new Promise(((t,r)=>{wp.ajax.post(`bpl_${e}_deactivate_license`,{nonce:n}).done((e=>{i(!1),t(e)})).fail((e=>{i(!1),s(e?.message||"Deactivation failed"),r(e)}))}))),isLoading:r,error:o}})(e),[g,m]=(0,t.useState)(!0),[b,v]=(0,t.useState)("");return(0,t.useEffect)((()=>{m(i||d||p)}),[i,d,p]),(0,t.useEffect)((()=>{const e=o||u||f;v(e?e?.message||("string"==typeof e?e:"An error occurred"):"")}),[o,u,f]),{isActivated:n,isLoading:g,error:b,activatedLicense:r,activateLicense:async e=>{try{return await c(e),a(!0),l(e),!0}catch(e){return!1}},deactivateLicense:async()=>{try{return await h(),a(!1),l(""),!0}catch(e){return!1}},setError:v,refetch:s}},Ln=e=>{const{name:n,slug:r,version:i,media:o,freemius:s,licenseActiveNonce:a}=e,{product_id:l,public_key:c}=s||{},{logo:d}=o||{},{isActivated:u,isLoading:h,error:p,activatedLicense:f,activateLicense:g,deactivateLicense:m}=Mn({product_id:l,public_key:c,licenseActiveNonce:a}),[b,v]=(0,t.useState)(""),[y,w]=(0,t.useState)(!1),[x,k]=(0,t.useState)(!1),[_,C]=(0,t.useState)(!1),[T,S]=(0,t.useState)(!1),E=async()=>{await g(b)&&(v(""),k(!1),window.location.reload())},$=x&&u,M=u&&!x;return(0,Zt.jsxs)("div",{className:"bPlDashboardActivation",children:[(0,Zt.jsxs)("header",{className:"actHero",children:[(0,Zt.jsx)("span",{className:"actEyebrow",children:(0,_n.__)("License")}),(0,Zt.jsx)("h1",{children:M?(0,_n.__)("Your license is active"):$?(0,_n.__)("Change your license key"):(0,_n.__)("Activate your license")}),(0,Zt.jsx)("p",{children:M?(0,Zt.jsxs)(Zt.Fragment,{children:[(0,_n.__)("You're receiving security updates, new features and priority support for")," ",(0,Zt.jsx)("strong",{children:n}),"."]}):(0,Zt.jsxs)(Zt.Fragment,{children:[(0,_n.__)("Enter the license key you received with your purchase to unlock premium features and updates for")," ",(0,Zt.jsx)("strong",{children:n}),"."]})})]}),(0,Zt.jsxs)("section",{className:"actCard "+(M?"isActive":"isInactive"),children:[(0,Zt.jsxs)("header",{className:"actCardHead",children:[(0,Zt.jsxs)("div",{className:"actPluginInfo",children:[d&&(0,Zt.jsx)("img",{src:d,alt:n||(0,_n.__)("Plugin")}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("h2",{children:n||(0,_n.__)("Plugin")}),i&&(0,Zt.jsxs)("span",{className:"actVer",children:["v",i]})]})]}),(0,Zt.jsxs)("span",{className:"actStatus "+(u?"isOk":"isOff"),children:[(0,Zt.jsx)("span",{className:"actStatusDot"}),u?(0,_n.__)("Activated"):(0,_n.__)("Not activated")]})]}),h&&(0,Zt.jsxs)("div",{className:"actLoading",children:[(0,Zt.jsx)("div",{className:"actSpinner"}),(0,Zt.jsx)("p",{children:(0,_n.__)("Talking to the license server…")})]}),!h&&M&&(0,Zt.jsxs)("div",{className:"actBody",children:[(0,Zt.jsxs)("div",{className:"actSuccessTop",children:[(0,Zt.jsx)("div",{className:"actSuccessIcon",children:dn}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("h3",{children:(0,_n.__)("License verified")}),(0,Zt.jsx)("p",{children:(0,_n.__)("Your purchase code is bound to this site and is in good standing.")})]})]}),(0,Zt.jsxs)("div",{className:"actLicenseRow",children:[(0,Zt.jsx)("span",{className:"actFieldLabel",children:(0,_n.__)("License key")}),(0,Zt.jsxs)("div",{className:"actLicenseDisplay",children:[(0,Zt.jsx)("input",{type:"text",value:(e=>{if(!e)return"";if(y)return e;const t=e.substring(0,4),n=e.substring(e.length-4);return`${t}${"•".repeat(Math.max(0,e.length-8))}${n}`})(f),readOnly:!0}),(0,Zt.jsx)("button",{type:"button",className:"actIconBtn",onClick:()=>w((e=>!e)),"aria-label":y?(0,_n.__)("Hide license"):(0,_n.__)("Show license"),children:y?ln:cn}),(0,Zt.jsxs)("button",{type:"button",className:"actIconBtn "+(T?"isCopied":""),onClick:async()=>{if(f)try{await navigator.clipboard.writeText(f),S(!0),setTimeout((()=>S(!1)),1600)}catch(e){console.error(e.message)}},"aria-label":(0,_n.__)("Copy license to clipboard"),children:[vn,T&&(0,Zt.jsx)("span",{className:"actCopiedTip",children:(0,_n.__)("Copied")})]})]})]}),(0,Zt.jsxs)("footer",{className:"actFoot",children:[(0,Zt.jsxs)("button",{type:"button",className:"actLinkBtn",onClick:()=>k(!0),children:[fn,(0,_n.__)("Change license")]}),(0,Zt.jsx)("button",{type:"button",className:"actLinkBtn isDanger",onClick:()=>C(!0),children:(0,_n.__)("Deactivate license")})]})]}),!h&&!M&&(0,Zt.jsxs)("div",{className:"actBody",children:[(0,Zt.jsxs)("label",{className:"actField",children:[(0,Zt.jsxs)("span",{className:"actFieldLabel",children:[bn,(0,_n.__)("License key")]}),(0,Zt.jsx)("input",{type:"text",value:b,placeholder:"xxxx-xxxx-xxxx-xxxx-xxxx-xxxx",onChange:e=>v(e.target.value),onKeyDown:e=>"Enter"===e.key&&b.trim()&&E(),disabled:h,autoFocus:!0,spellCheck:!1,autoCapitalize:"none",autoCorrect:"off"})]}),p&&(0,Zt.jsxs)("div",{className:"actError",children:[yn,(0,Zt.jsx)("span",{children:p})]}),(0,Zt.jsx)("button",{type:"button",className:"actPrimaryBtn",onClick:E,disabled:h||!b.trim(),children:h?(0,_n.__)("Activating…"):$?(0,_n.__)("Update License"):(0,_n.__)("Activate License")}),!$&&(0,Zt.jsxs)("p",{className:"actHelp",children:[(0,_n.__)("Can't find your key?")," ",(0,Zt.jsxs)("a",{href:`https://dashboard.freemius.com/license-recovery/${l}/${r}/`,target:"_blank",rel:"noopener noreferrer",children:[(0,_n.__)("Recover license"),on]})," ",(0,_n.__)("or")," ",(0,Zt.jsxs)("a",{href:"https://freemius.com/help/documentation/wordpress-sdk/license-activation-issues/",target:"_blank",rel:"noopener noreferrer",children:[(0,_n.__)("activation help"),on]})]}),!$&&(0,Zt.jsxs)("div",{className:"actPermsBlock",children:[(0,Zt.jsxs)("h4",{children:[n," ",(0,_n.__)("needs the following to deliver updates & security patches")]}),(0,Zt.jsxs)("ul",{className:"actPerms",children:[(0,Zt.jsxs)("li",{children:[(0,Zt.jsx)("span",{className:"actPermIcon",children:en}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("strong",{children:(0,_n.__)("License essentials")}),(0,Zt.jsx)("span",{children:(0,_n.__)("Homepage URL · Plugin version · SDK version")})]})]}),(0,Zt.jsxs)("li",{children:[(0,Zt.jsx)("span",{className:"actPermIcon",children:fn}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("strong",{children:(0,_n.__)("Plugin state")}),(0,Zt.jsx)("span",{children:(0,_n.__)("Whether the plugin is active, deactivated or uninstalled")})]})]})]})]}),!$&&(0,Zt.jsxs)("footer",{className:"actLegalRow",children:[(0,Zt.jsx)("a",{href:`https://freemius.com/product/license-activation/${l}/${r}/`,target:"_blank",rel:"noopener noreferrer",children:(0,_n.__)("Powered by Freemius")}),(0,Zt.jsx)("span",{children:"·"}),(0,Zt.jsx)("a",{href:"https://freemius.com/privacy/",target:"_blank",rel:"noopener noreferrer",children:(0,_n.__)("Privacy Policy")}),(0,Zt.jsx)("span",{children:"·"}),(0,Zt.jsx)("a",{href:`https://freemius.com/product/${l}/${r}/legal/eula/`,target:"_blank",rel:"noopener noreferrer",children:(0,_n.__)("License Agreement")})]}),$&&(0,Zt.jsx)("button",{type:"button",className:"actLinkBtn isCenter",onClick:()=>k(!1),children:(0,_n.__)("Cancel and keep current license")})]})]}),_&&(0,Zt.jsxs)("div",{className:"actModal",role:"dialog","aria-modal":"true",children:[(0,Zt.jsx)("div",{className:"actModalBackdrop",onClick:()=>C(!1)}),(0,Zt.jsxs)("div",{className:"actModalContent",children:[(0,Zt.jsxs)("header",{children:[(0,Zt.jsx)("div",{className:"actModalIcon",children:yn}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("h3",{children:(0,_n.__)("Deactivate this license?")}),(0,Zt.jsx)("p",{children:(0,_n.__)("You can re-activate it later on this site or move it to a different one.")})]})]}),(0,Zt.jsx)("div",{className:"actModalNote",children:(0,_n.__)("Premium features and automatic updates will stop on this site until you re-activate.")}),(0,Zt.jsxs)("footer",{children:[(0,Zt.jsx)("button",{type:"button",className:"actModalCancel",onClick:()=>C(!1),children:(0,_n.__)("Keep license active")}),(0,Zt.jsx)("button",{type:"button",className:"actModalAction",onClick:async()=>{C(!1),await m()&&(k(!0),v(""),window.location.reload())},children:(0,_n.__)("Yes, deactivate")})]})]})]})]})},An=window.wp.data,Rn=window.wp.apiFetch;var Nn=i.n(Rn);const jn=["3d-viewer","html5-video-player","html5-audio-player","pdf-poster","document-emberdder","advanced-post-block","advance-custom-html","b-carousel-block","b-blocks","embed-lottie-player","b-slider"],In=e=>{if(null==e)return"0";const t=Math.abs(e);return t>=1e9?(e/1e9).toFixed(1).replace(/\.0$/,"")+"B":t>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":t>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"k":String(e)},On=e=>e?e.replace(/–/g,"–").replace(/—/g,"—").replace(/–/g,"–").replace(/—/g,"—").replace(/-/g,"-").split(/\s*[–\-—]\s*/)[0].trim():"",Dn=e=>(e||"").replace(/<[^>]+>/g,""),Pn=({rating:e=0})=>{const t=Math.round(e/20);return(0,Zt.jsx)("span",{className:"ourPlugStars","aria-label":`${(e/20).toFixed(1)} out of 5`,children:[1,2,3,4,5].map((e=>(0,Zt.jsx)("svg",{viewBox:"0 0 24 24",width:13,height:13,fill:e<=t?"#fbbf24":"#e5e7eb",children:(0,Zt.jsx)("path",{d:"M12 2l2.39 6.95L22 9.27l-5.45 4.73L18.18 22 12 17.77 5.82 22l1.63-7.99L2 9.27l7.61-.32L12 2z"})},e)))})},Fn=({plugin:e,path:n,initStatus:r})=>{const{name:i,slug:o,icons:s,short_description:a,version:l}=e,[c,d]=(0,t.useState)(r),u=(()=>{switch(c){case"activated":case"success":return(0,_n.__)("Activated");case"installed":return(0,_n.__)("Activate");case"activating":return(0,_n.__)("Activating…");case"installing":return(0,_n.__)("Installing…");case"error":return(0,_n.__)("Failed");default:return(0,_n.__)("Install & Activate")}})(),h="activated"===c||"success"===c,p="installing"===c||"activating"===c;return(0,Zt.jsxs)("article",{className:"ourPlugCard",children:[(0,Zt.jsxs)("div",{className:"ourPlugCardTop",children:[(0,Zt.jsx)("img",{className:"ourPlugIcon",src:s?.["1x"]||s?.["2x"]||"",alt:i}),(0,Zt.jsxs)("div",{className:"ourPlugCardId",children:[(0,Zt.jsx)("h3",{dangerouslySetInnerHTML:{__html:On(i)}}),l&&(0,Zt.jsxs)("span",{className:"ourPlugVer",children:["v",l]})]}),h&&(0,Zt.jsxs)("span",{className:"ourPlugActive",children:[(0,Zt.jsx)("svg",{viewBox:"0 0 24 24",width:12,height:12,fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",children:(0,Zt.jsx)("polyline",{points:"20 6 9 17 4 12"})}),(0,_n.__)("Active")]})]}),(0,Zt.jsx)("p",{className:"ourPlugDesc",dangerouslySetInnerHTML:{__html:Dn(a)}}),(0,Zt.jsxs)("div",{className:"ourPlugStats",children:[(0,Zt.jsxs)("span",{className:"ourPlugStat",children:[(0,Zt.jsxs)("svg",{viewBox:"0 0 24 24",width:14,height:14,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,Zt.jsx)("polyline",{points:"7 10 12 15 17 10"}),(0,Zt.jsx)("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),In(e.downloaded)]}),(0,Zt.jsxs)("span",{className:"ourPlugStat",children:[(0,Zt.jsx)(Pn,{rating:e.rating}),(0,Zt.jsx)("strong",{children:((e.rating||0)/20).toFixed(1)})]})]}),(0,Zt.jsxs)(Jt,{className:`ourPlugCta status-${c}`,disabled:h||p,onClick:async()=>{d("installed"===c?"activating":"installing");try{if("installed"===c&&n)return await Nn()({path:`/wp/v2/plugins/${n}`,method:"POST",data:{status:"active"}}),d("success"),void setTimeout((()=>d("activated")),1e3);await Nn()({path:"/wp/v2/plugins",method:"POST",data:{slug:o,status:"active"}}),d("success"),setTimeout((()=>d("activated")),1e3)}catch{d("error"),setTimeout((()=>d("installed"===c?"installed":"notfound")),1400)}},children:[p&&(0,Zt.jsx)("span",{className:"ourPlugCtaSpinner"}),u]})]})},zn=(0,An.withSelect)((e=>{const{getPlugins:t}=e("core");return{installedPlugins:t?.({per_page:-1})}}))((({slug:e,slugs:n=jn,installedPlugins:r})=>{const[i,o]=(0,t.useState)([]),[s,a]=(0,t.useState)(!1),[l,c]=(0,t.useState)(""),[d,u]=(0,t.useState)("popular"),h=(0,t.useMemo)((()=>(n||[]).filter((t=>t!==e))),[n,e]);(0,t.useEffect)((()=>{if(!h.length)return;let e=!1;return a(!0),fetch("https://api.wordpress.org/plugins/info/1.2/?action=query_plugins&request[author]=bplugins&request[per_page]=100&request[fields]=title,name,slug,icons,short_description,version,active_installs,rating,ratings,downloaded",{credentials:"omit",mode:"cors"}).then((e=>e.json())).then((t=>{e||o((t?.plugins||[]).filter((e=>h.includes(e.slug))))})).catch((()=>{e||o([])})).finally((()=>{e||a(!1)})),()=>{e=!0}}),[JSON.stringify(h)]);const p=(0,t.useMemo)((()=>{const e=l.trim().toLowerCase();let t=i.filter((t=>!e||t.name.toLowerCase().includes(e)||(t.short_description||"").toLowerCase().includes(e)));return"popular"===d&&t.sort(((e,t)=>(t.active_installs||0)-(e.active_installs||0))),"rating"===d&&t.sort(((e,t)=>(t.rating||0)-(e.rating||0))),"name"===d&&t.sort(((e,t)=>On(e.name).localeCompare(On(t.name)))),t}),[i,l,d]);return s?(0,Zt.jsxs)("div",{className:"bPlDashboardOurPlugins bPlDashboardOurPluginsLoading",children:[(0,Zt.jsx)("div",{className:"ourPlugSpinner"}),(0,Zt.jsx)("p",{children:(0,_n.__)("Fetching plugins from the WordPress directory…")})]}):(0,Zt.jsxs)("div",{className:"bPlDashboardOurPlugins",children:[(0,Zt.jsxs)("header",{className:"ourPlugHero",children:[(0,Zt.jsx)("span",{className:"ourPlugEyebrow",children:(0,_n.__)("Made by bPlugins")}),(0,Zt.jsx)("h1",{children:(0,_n.__)("Discover more plugins from our team")}),(0,Zt.jsx)("p",{children:(0,_n.__)("Hand-crafted WordPress plugins built with the same care and quality. Install any of them with a single click.")})]}),(0,Zt.jsxs)("div",{className:"ourPlugToolbar",children:[(0,Zt.jsxs)("div",{className:"ourPlugSearch",children:[(0,Zt.jsxs)("svg",{viewBox:"0 0 24 24",width:18,height:18,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,Zt.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),(0,Zt.jsx)("input",{type:"text",placeholder:(0,_n.__)("Search plugins…"),value:l,onChange:e=>c(e.target.value)}),l&&(0,Zt.jsx)("button",{onClick:()=>c(""),"aria-label":(0,_n.__)("Clear search"),children:"×"})]}),(0,Zt.jsx)("div",{className:"ourPlugSortLabel",children:(0,_n.__)("Sort by")}),(0,Zt.jsx)("div",{className:"ourPlugSort",role:"tablist",children:[{key:"popular",label:(0,_n.__)("Popular")},{key:"rating",label:(0,_n.__)("Top Rated")},{key:"name",label:(0,_n.__)("A–Z")}].map((e=>(0,Zt.jsx)("button",{type:"button",role:"tab","aria-selected":d===e.key,className:d===e.key?"isActive":"",onClick:()=>u(e.key),children:e.label},e.key)))})]}),(0,Zt.jsxs)("p",{className:"ourPlugCount",children:[(0,Zt.jsx)("strong",{children:p.length})," ",1===p.length?(0,_n.__)("plugin"):(0,_n.__)("plugins"),l&&` ${(0,_n.__)("matching")} "${l}"`]}),0===p.length?(0,Zt.jsxs)("div",{className:"ourPlugEmpty",children:[(0,Zt.jsxs)("svg",{viewBox:"0 0 24 24",width:36,height:36,fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,Zt.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),(0,Zt.jsx)("h3",{children:(0,_n.__)("No plugins match")}),(0,Zt.jsx)("p",{children:(0,_n.__)("Try a different keyword.")})]}):(0,Zt.jsx)("div",{className:"ourPlugGrid",children:p.map((e=>{const t=r?.find((t=>t?.plugin?.includes(e.slug)))??null,n=t&&"active"===t.status?"activated":t?"installed":"notfound";return(0,Zt.jsx)(Fn,{plugin:e,path:t?.plugin,initStatus:n},e.slug)}))})]})})),Bn="#146EF5",Hn="#85b4fa",Wn="linear-gradient(135deg, #0040E3, #18D4FD)",Un=(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",children:(0,Zt.jsx)("path",{d:"M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q11-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z"})}),Vn=(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18px",height:"18px",children:(0,Zt.jsx)("path",{d:"M10 2a8 8 0 105.29 13.71l5 5a1 1 0 001.42-1.42l-5-5A8 8 0 0010 2zm0 2a6 6 0 110 12 6 6 0 010-12z"})}),qn=(0,Zt.jsx)("svg",{width:25,height:25,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Zt.jsx)("path",{d:"M4.66667 12.25H11.9C11.9928 12.25 12.0818 12.2131 12.1475 12.1475C12.2131 12.0818 12.25 11.9928 12.25 11.9V2.1C12.25 2.00717 12.2131 1.91815 12.1475 1.85251C12.0818 1.78687 11.9928 1.75 11.9 1.75H2.1C2.00717 1.75 1.91815 1.78687 1.85251 1.85251C1.78687 1.91815 1.75 2.00717 1.75 2.1V9.33333M5.83333 3.5H10.5M3.5 3.5H4.08333M2.04167 11.9583L7 7M7 7V9.33333M7 7H4.66667",stroke:"#6A72A5",strokeLinecap:"round",strokeLinejoin:"round"})}),Gn=(0,Zt.jsxs)("svg",{width:25,height:25,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Zt.jsx)("path",{d:"M11.6667 6.99999V3.35357C11.6667 3.30753 11.6577 3.26193 11.6401 3.21939C11.6225 3.17684 11.5966 3.1382 11.564 3.10566L9.72771 1.26932C9.66213 1.20367 9.57317 1.16674 9.48037 1.16666H2.68337C2.59055 1.16666 2.50152 1.20353 2.43589 1.26917C2.37025 1.33481 2.33337 1.42383 2.33337 1.51666V12.4833C2.33337 12.5761 2.37025 12.6652 2.43589 12.7308C2.50152 12.7964 2.59055 12.8333 2.68337 12.8333H6.41671M4.66671 5.83332H9.33337M4.66671 3.49999H7.00004M4.66671 8.16666H6.41671",stroke:"#6A72A5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Zt.jsx)("path",{d:"M9.33337 3.14999V1.37315C9.33345 1.33237 9.3456 1.29251 9.36829 1.25862C9.39099 1.22473 9.42321 1.19832 9.4609 1.18272C9.49859 1.16712 9.54005 1.16303 9.58006 1.17097C9.62007 1.17891 9.65683 1.19852 9.68571 1.22732L11.606 3.14765C11.6351 3.17642 11.655 3.21321 11.6631 3.25331C11.6712 3.29341 11.6672 3.33502 11.6515 3.37283C11.6359 3.41063 11.6093 3.44291 11.5752 3.46556C11.5412 3.48821 11.5011 3.5002 11.4602 3.49999H9.68337C9.59055 3.49999 9.50152 3.46311 9.43589 3.39748C9.37025 3.33184 9.33337 3.24281 9.33337 3.14999V3.14999Z",fill:"#6A72A5",stroke:"#6A72A5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Zt.jsx)("path",{d:"M10.4731 9.88165L11.0565 9.29832C11.1172 9.23754 11.1893 9.18932 11.2687 9.15643C11.3481 9.12353 11.4331 9.1066 11.5191 9.1066C11.605 9.1066 11.6901 9.12353 11.7694 9.15643C11.8488 9.18932 11.9209 9.23754 11.9816 9.29832C12.1042 9.42095 12.1731 9.58723 12.1731 9.76061C12.1731 9.93399 12.1042 10.1003 11.9816 10.2229L11.3983 10.8062M10.4731 9.88107L8.7284 11.6258C8.64116 11.7133 8.58397 11.8263 8.56506 11.9484L8.42273 12.8567L9.33098 12.7149C9.45309 12.696 9.56605 12.6388 9.65356 12.5516L11.3977 10.8062M10.4731 9.88107L11.3983 10.8062",stroke:"#6A72A5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Yn=(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640",children:(0,Zt.jsx)("path",{d:"M187.2 100.9C174.8 94.1 159.8 94.4 147.6 101.6C135.4 108.8 128 121.9 128 136L128 504C128 518.1 135.5 531.2 147.6 538.4C159.7 545.6 174.8 545.9 187.2 539.1L523.2 355.1C536 348.1 544 334.6 544 320C544 305.4 536 291.9 523.2 284.9L187.2 100.9z"})}),Kn=({block:e,isPremium:t,disableBlockName:n,handleCheckboxChange:r,isSaving:i,isLinks:o=!0})=>{const{name:s,title:a,icon:l,demo:c,docs:d,badge:u="",required:h=!1}=e,p=!t&&e.isPremium,f=!p&&!n.includes(s),g=!0===h;return(0,Zt.jsxs)("div",{className:"block "+(f?"":"disabled"),children:[(0,Zt.jsx)("div",{className:"icon",children:l}),(0,Zt.jsxs)("div",{className:"name",children:[(0,Zt.jsx)("p",{className:"blockTitle",children:a}),p&&(0,Zt.jsx)("a",{href:"#pricing",children:"Get Pro"})]}),o&&(0,Zt.jsxs)(Zt.Fragment,{children:[c&&(0,Zt.jsx)("a",{className:"actionBtn",href:c,target:"_blank",rel:"noopener noreferrer",children:qn}),d&&(0,Zt.jsx)("a",{className:"actionBtn",href:d,target:"_blank",rel:"noopener noreferrer",children:Gn})]}),u&&(0,Zt.jsx)("p",{className:"blockBadge",children:u}),p&&(0,Zt.jsx)("p",{className:"blockBadge blockProBadge",children:"Pro"}),g&&(0,Zt.jsx)("p",{className:"blockBadge blockRequiredBadge",children:"Required"}),(0,Zt.jsxs)("label",{className:"toggleSwitch",...p||g?{htmlFor:"b-blocks-admin-pro-modal-toggle"}:{},children:[(0,Zt.jsx)("input",{type:"checkbox",checked:f,...p||g?{}:{onChange:e=>r(s,e.target.checked)},disabled:i||p||g}),(0,Zt.jsx)("span",{className:"slider"})]})]})},Xn=window.wp.components,Qn=({message:e,type:t})=>(0,Zt.jsxs)("div",{className:`bPlDashboardBlocksToast ${t}`,children:["loading"===t&&(0,Zt.jsx)(Xn.Spinner,{}),"success"===t&&(0,Zt.jsx)("span",{className:"checkmark",children:"✓"}),"error"===t&&(0,Zt.jsx)("span",{className:"error-icon",children:"✕"}),(0,Zt.jsx)("span",{className:"message",children:e})]}),Zn=e=>{const{isPremium:n,disabledBlocks:r,onChange:i,allBlocks:o,status:s,ProModal:a=null,pageTitle:l="All Blocks"}=e,c=o.filter((e=>"published"===e.status||!e.status)),[d,u]=(0,t.useState)(!1),[h,p]=(0,t.useState)(r||[]),[f,g]=(0,t.useState)(""),[m,b]=(0,t.useState)(null);(0,t.useEffect)((()=>{r&&p(r)}),[JSON.stringify(r)]),(0,t.useEffect)((()=>{"loading"===s?(b({message:"Loading...",type:"loading"}),u(!0)):"success"===s?(b({message:"Saved successfully!",type:"success"}),u(!1),setTimeout((()=>b(null)),3e3)):"error"===s&&(b({message:"Failed to save",type:"error"}),u(!1),setTimeout((()=>b(null)),3e3))}),[s]);const v=(e,t)=>{const n=t?h.filter((t=>t!==e)):[...h,e];p(n),i?.(n),b({message:"Saving changes...",type:"loading"}),u(!0)},y=[],w=[];c.forEach((e=>{e.children&&Array.isArray(e.children)?y.push(e):w.push(e)}));const x=e=>e.filter((e=>{if(e.children){const t=e.title?.toLowerCase().includes(f.toLowerCase()),n=e.children.some((e=>e.title?.toLowerCase().includes(f.toLowerCase())));return t||n}return e.title?.toLowerCase().includes(f.toLowerCase())})),k=x(y),_=x(w),C=k.length>0||_.length>0;return(0,Zt.jsxs)("div",{className:"bPlDashboardBlocks",children:[!n&&a&&(0,Zt.jsx)(a,{}),m&&(0,Zt.jsx)(Qn,{message:m.message,type:m.type}),(0,Zt.jsxs)("div",{className:"blocksTop",children:[(0,Zt.jsx)("h2",{children:l}),(0,Zt.jsxs)("div",{className:"blocksSearch",children:[Vn,(0,Zt.jsx)("input",{type:"text",placeholder:"Search...",value:f,onChange:e=>g(e.target.value),className:"search-input"}),f&&(0,Zt.jsx)("span",{onClick:()=>g(""),children:Un})]}),(0,Zt.jsx)(Jt,{className:"bBlocksDashboardBtn actionBtn activeAllBtn",onClick:()=>{p([]),i?.([]),b({message:"Saving changes...",type:"loading"}),u(!0)},children:"Activate All"}),(0,Zt.jsx)(Jt,{className:"bBlocksDashboardBtn actionBtn deActiveAllBtn",onClick:()=>{const e=c.flatMap((e=>e.children&&Array.isArray(e.children)?e.children.filter((e=>!e.required)).map((e=>e.name)):e.required?[]:e.name));p(e),i?.(e),b({message:"Saving changes...",type:"loading"}),u(!0)},children:"Deactivate All"})]}),C?(0,Zt.jsxs)("div",{className:"blocksContent",children:[k.map((e=>(0,Zt.jsxs)("div",{className:"blocksGroup",children:[(0,Zt.jsx)("h3",{className:"groupTitle",children:e.title}),(0,Zt.jsx)("div",{className:"dashboardBlocks",children:e.children.filter((e=>"published"===e.status||!e.status)).map((e=>(0,Zt.jsx)(Kn,{block:e,isPremium:n,disableBlockName:h,handleCheckboxChange:v,isSaving:d},e.name)))})]},e.title))),_.length>0&&(0,Zt.jsx)("div",{className:"dashboardBlocks",children:_.map((e=>(0,Zt.jsx)(Kn,{block:e,isPremium:n,disableBlockName:h,handleCheckboxChange:v,isSaving:d},e.name)))})]}):(0,Zt.jsx)("h3",{className:"noBlocksFound",children:"No blocks found matching your search..."})]})},Jn={new:"new",add:"new",update:"update",improve:"improvement",improvement:"improvement",fix:"fix",fixing:"fix",fixed:"fix",remove:"fix"},er=e=>{const{slug:t,changelogs:n,limit:r=5,loadMoreLabel:i}=e;return n?.length&&(0,Zt.jsxs)("div",{className:"bPlDashboardChangelog bPlDashboardCard",children:[(0,Zt.jsx)("h3",{children:"Release Notes(Changelog)..."}),(0,Zt.jsx)("div",{className:"allChangelogs",children:n?.slice(0,r)?.map(((e,t)=>{const{type:n,version:r,list:i}=e;return(0,Zt.jsxs)("div",{className:`changelog ${n}`,children:[(0,Zt.jsx)("ul",{className:"list",children:i?.map(((e,t)=>{return(0,Zt.jsx)("li",{dangerouslySetInnerHTML:{__html:(n=e,n.replace(/^<strong>([^<]+)<\/strong>/i,((e,t)=>{const n=t.replace(":","").trim();return`<strong class="changelogBadge ${Jn[n.toLowerCase()]||"default"}">${n}</strong>`})))}},t);var n}))}),(0,Zt.jsx)("p",{className:"time",children:r})]},t)}))}),i&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("br",{}),(0,Zt.jsx)(Jt,{className:"mt20",target:"_blank",rel:"noopener noreferrer",href:`https://wordpress.org/plugins/${t}/#developers`,children:i})]})]})},tr=e=>{const{name:t,media:n,proFeatures:r}=e,{proThumbnail:i}=n||{};return(0,Zt.jsxs)("div",{className:"bPlDashboardWelcomeProAds bPlDashboardCard",children:[(0,Zt.jsxs)("div",{className:"content",children:[(0,Zt.jsxs)("h3",{children:["Go ",t," Pro & Unlock More!"]}),r?.length>0&&(0,Zt.jsx)("ul",{children:r.map(((e,t)=>(0,Zt.jsxs)("li",{children:[(0,Zt.jsx)("span",{children:un}),e]},t)))}),(0,Zt.jsx)(Jt,{href:"#pricing",children:"View Pricing Plan"})]}),i&&(0,Zt.jsx)("figure",{children:(0,Zt.jsx)("img",{src:i,alt:`${t} Pro features`})})]})},nr=e=>{const{isPremium:n,disabledBlocks:r,onChange:i,allBlocks:o,status:s,ProModal:a=null,cardTitle:l="Blocks",seeAllLink:c="#blocks"}=e,d=o.filter((e=>"published"===e.status||!e.status)),[u,h]=(0,t.useState)(!1),[p,f]=(0,t.useState)(r||[]),[g,m]=(0,t.useState)(null);(0,t.useEffect)((()=>{r&&f(r)}),[JSON.stringify(r)]),(0,t.useEffect)((()=>{"loading"===s?(m({message:"Loading...",type:"loading"}),h(!0)):"success"===s?(m({message:"Saved successfully!",type:"success"}),h(!1),setTimeout((()=>m(null)),3e3)):"error"===s&&(m({message:"Failed to save",type:"error"}),h(!1),setTimeout((()=>m(null)),3e3))}),[s]);const b=(e,t)=>{const n=t?p.filter((t=>t!==e)):[...p,e];f(n),i?.(n),m({message:"Saving changes...",type:"loading"}),h(!0)};return d?.length&&(0,Zt.jsxs)("div",{className:"bPlDashboardBlocksCard bPlDashboardCard",children:[!n&&a&&(0,Zt.jsx)(a,{}),g&&(0,Zt.jsx)(Qn,{message:g.message,type:g.type}),(0,Zt.jsxs)("div",{className:"blocksCardHeader",children:[(0,Zt.jsx)("h3",{children:l}),(0,Zt.jsx)("a",{href:c,children:"View All"})]}),d.length>0&&(0,Zt.jsx)("div",{className:"dashboardBlocks",children:d?.slice(0,9)?.map((e=>(0,Zt.jsx)(Kn,{block:e,isPremium:n,disableBlockName:p,handleCheckboxChange:b,isSaving:u,isLinks:!1},e.name)))})]})},rr=(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:16,height:16,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("polyline",{points:"16 18 22 12 16 6"}),(0,Zt.jsx)("polyline",{points:"8 6 2 12 8 18"})]}),ir=(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:16,height:16,fill:"currentColor",children:(0,Zt.jsx)("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm-1 14H7v-2h4v2zm0-4H7v-2h4v2zm0-4H7V6h4v2zm6 8h-4v-2h4v2zm0-4h-4v-2h4v2zm0-4h-4V6h4v2z"})}),or=[{key:"shortcode",label:"ShortCode",icon:rr,steps:[{num:1,title:"Add a New Item",body:"Create your saved entry from your plugin's admin list — set the source, options, and design."},{num:2,title:"Copy the Shortcode",body:"Each saved entry exposes a shortcode you can copy from the list table."},{num:3,title:"Paste It Anywhere",body:"Drop the shortcode into any post, page, widget area, or theme template to render it."}]},{key:"gutenberg",label:"Gutenberg",icon:ir,steps:[{num:1,title:"Open the Block Editor",body:"Edit any post or page where you want this plugin's output to appear."},{num:2,title:"Insert the Block",body:"Click + (Add block), search for the plugin's block, and insert it."},{num:3,title:"Configure Inline",body:"Tune options from the sidebar — every change previews live."}]}],sr={shortcode:rr,gutenberg:ir,elementor:(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:16,height:16,fill:"currentColor",children:(0,Zt.jsx)("path",{d:"M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8 17H6V7h2v10zm5 0h-2V7h2v10zm5 0h-2V7h2v10z"})}),theme:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:16,height:16,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("polyline",{points:"4 17 10 11 4 5"}),(0,Zt.jsx)("line",{x1:"12",y1:"19",x2:"20",y2:"19"})]})},ar=({pages:e,docsUrl:n,title:r="Getting Started",subtitle:i="Pick how you'd like to embed your output — the steps below adapt to your editor.",tabs:o=or})=>{const[s,a]=(0,t.useState)(0),l=e?.docs||n||"https://bplugins.com/";return o?.length?(0,Zt.jsxs)("div",{className:"bp3dGettingStarted bp3dGsTabbed bPlDashboardCard",children:[(0,Zt.jsxs)("div",{className:"bp3dGsHeader",children:[(0,Zt.jsx)("h2",{children:r}),(0,Zt.jsx)("p",{children:i})]}),(0,Zt.jsx)("div",{className:"bp3dGsTabsNav",role:"tablist",children:o.map(((e,t)=>(0,Zt.jsxs)("button",{type:"button",role:"tab","aria-selected":s===t,className:"bp3dGsTab "+(s===t?"isActive":""),onClick:()=>a(t),children:[(0,Zt.jsx)("span",{className:"bp3dGsTabIcon",children:e.icon}),(0,Zt.jsx)("span",{children:e.label})]},e.key||t)))}),(0,Zt.jsx)("div",{className:"bp3dGsTabsViewport",children:(0,Zt.jsx)("div",{className:"bp3dGsTabsTrack",style:{transform:`translateX(-${100*s}%)`},children:o.map(((e,t)=>(0,Zt.jsx)("div",{className:"bp3dGsTabPanel",role:"tabpanel","aria-hidden":s!==t,children:(0,Zt.jsx)("div",{className:"bp3dGsSteps",children:e.steps?.map(((e,t)=>(0,Zt.jsxs)("div",{className:"bp3dGsStep",children:[(0,Zt.jsx)("span",{className:"bp3dGsStepNum",children:e.num||t+1}),(0,Zt.jsxs)("div",{className:"bp3dGsStepBody",children:[(0,Zt.jsx)("h3",{children:e.title}),(0,Zt.jsx)("p",{dangerouslySetInnerHTML:{__html:e.body}}),e.link&&(0,Zt.jsxs)("a",{className:"bp3dGsLink",href:e.link.url,children:[e.link.label," →"]})]})]},e.num||t)))})},e.key||t)))})}),(0,Zt.jsxs)("div",{className:"bp3dGsDocs",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("h3",{children:"Read the Full Documentation"}),(0,Zt.jsx)("p",{children:"Browse guides, settings reference, and examples for every feature."})]}),(0,Zt.jsx)("a",{className:"bp3dGsDocsBtn",href:l,target:"_blank",rel:"noopener noreferrer",children:"Open Documentation →"})]})]}):null},lr=i.p+"images/support.d3257a73.png",cr={xmlns:"http://www.w3.org/2000/svg",className:"bPlBlockIcon"},dr=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 16 16",children:(0,Zt.jsx)("path",{d:"M2 1a1 1 0 1 0 0 2 1 1 0 0 0 0-2M0 2a2 2 0 0 1 3.937-.5h8.126A2 2 0 1 1 14.5 3.937v8.126a2 2 0 1 1-2.437 2.437H3.937A2 2 0 1 1 1.5 12.063V3.937A2 2 0 0 1 0 2m2.5 1.937v8.126c.703.18 1.256.734 1.437 1.437h8.126a2 2 0 0 1 1.437-1.437V3.937A2 2 0 0 1 12.063 2.5H3.937A2 2 0 0 1 2.5 3.937M14 1a1 1 0 1 0 0 2 1 1 0 0 0 0-2M2 13a1 1 0 1 0 0 2 1 1 0 0 0 0-2m12 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2"})}),ur=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 50 50",children:(0,Zt.jsx)("path",{d:"M 3 9 C 1.346 9 0 10.346 0 12 L 0 38 C 0 39.654 1.346 41 3 41 L 15.0625 41 C 15.5655 46.046 19.823 50 25 50 C 30.176 50 34.4335 46.046 34.9375 41 L 47 41 C 48.654 41 50 39.654 50 38 L 50 12 C 50 10.346 48.654 9 47 9 L 3 9 z M 25 32 C 29.411 32 33 35.589 33 40 C 33 44.411 29.411 48 25 48 C 20.589 48 17 44.411 17 40 C 17 35.589 20.589 32 25 32 z M 24 35 L 24 39 L 20 39 L 20 41 L 24 41 L 24 45 L 26 45 L 26 41 L 30 41 L 30 39 L 26 39 L 26 35 L 24 35 z"})}),hr=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 512 512",children:(0,Zt.jsx)("path",{d:"M68.983,382.642l171.35,98.928a32.082,32.082,0,0,0,32,0l171.352-98.929a32.093,32.093,0,0,0,16-27.713V157.071a32.092,32.092,0,0,0-16-27.713L272.334,30.429a32.086,32.086,0,0,0-32,0L68.983,129.358a32.09,32.09,0,0,0-16,27.713V354.929A32.09,32.09,0,0,0,68.983,382.642ZM272.333,67.38l155.351,89.691V334.449L272.333,246.642ZM256.282,274.327l157.155,88.828-157.1,90.7L99.179,363.125ZM84.983,157.071,240.333,67.38v179.2L84.983,334.39Z"})}),pr=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 24 24",children:(0,Zt.jsx)("path",{d:"M7 10h-4.083l1.271-1.396.812.396.676-.862 1.324 1.862zm.88 3h-7.88v-8h9.204c.739 1.612 2.024 1.696 3.796 2.509v4.648c-1.638-.182-3.985-.26-5.12.843zm.12-6h-6v4h6v-4zm9.17-1.833c-.806-1.165-5.031-1.924-6.742-2.167-.169.727.111 1.643.859 2.076.729.422 2.847 1.078 3.473 1.702.812.808 2.026 4.668.028 7.282-2.076-.589-4.24-.527-5.415-.048-1.153.47-1.013 1.908.189 2.045 3.42.39 7.587 1.161 10.322 4.943 0 0 1.821-1.885 4.115-4.426-3.668-3.053-4.198-7.606-6.829-11.407zm-13.92 2.833c-.138 0-.25.112-.25.25s.112.25.25.25c.139 0 .25-.112.25-.25s-.111-.25-.25-.25z"})}),fr=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 20 20",children:[(0,Zt.jsx)("path",{fillRule:"evenodd",d:"M9.938 4.016a.146.146 0 00-.054.057L3.027 15.74a.176.176 0 00-.002.183c.016.03.037.05.054.06.015.01.034.017.066.017h13.713a.12.12 0 00.066-.017.163.163 0 00.055-.06.176.176 0 00-.003-.183L10.12 4.073a.146.146 0 00-.054-.057.13.13 0 00-.063-.016.13.13 0 00-.064.016zm1.043-.45a1.13 1.13 0 00-1.96 0L2.166 15.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L10.982 3.566z"}),(0,Zt.jsx)("rect",{width:"2",height:"2",x:"9.002",y:"13",rx:"1"}),(0,Zt.jsx)("path",{d:"M9.1 7.995a.905.905 0 111.8 0l-.35 3.507a.553.553 0 01-1.1 0L9.1 7.995z"})]}),gr=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 195 195",children:[(0,Zt.jsx)("path",{fill:`${Bn}33`,d:"M40.4 53.2C25.6 64.3 17.9 79.5 17.9 97.5C17.9 104.9 18.4 108.5 20.5 114.5C24.2 125.7 30.6 134.4 40.5 141.9L43.5 144.2L39 143.5C12.7 139.2 -5.1 112.1 1.5 86.5C5.9 69.8 19.7 55.9 35.7 52.1C42.5 50.5 43.6 50.7 40.4 53.2Z"}),(0,Zt.jsx)("path",{fill:`${Bn}66`,d:"M65.4 53.2C50.6 64.3 42.9 79.5 42.9 97.5C42.9 104.9 43.4 108.5 45.5 114.5C49.2 125.7 55.6 134.4 65.5 141.9L68.5 144.2L64 143.5C37.7 139.2 19.9 112.1 26.5 86.5C30.9 69.8 44.7 55.9 60.7 52.1C67.5 50.5 68.6 50.7 65.4 53.2Z"}),(0,Zt.jsx)("path",{fill:`${Bn}99`,d:"M91.4 53.2C76.6 64.3 68.9 79.5 68.9 97.5C68.9 104.9 69.4 108.5 71.5 114.5C75.2 125.7 81.6 134.4 91.5 141.9L94.5 144.2L90 143.5C63.7 139.2 45.9 112.1 52.5 86.5C56.9 69.8 70.7 55.9 86.7 52.1C93.5 50.5 94.6 50.7 91.4 53.2Z"}),(0,Zt.jsx)("path",{fill:`${Bn}cc`,d:"M116.4 53.2C101.6 64.3 93.9 79.5 93.9 97.5C93.9 104.9 94.4 108.5 96.5 114.5C100.2 125.7 106.6 134.4 116.5 141.9L119.5 144.2L115 143.5C88.7 139.2 70.9 112.1 77.5 86.5C81.9 69.8 95.7 55.9 111.7 52.1C118.5 50.5 119.6 50.7 116.4 53.2Z"}),(0,Zt.jsx)("path",{fill:Bn,d:"M161.9 52.9C177.8 57.8 190.5 71.8 193.9 87.8C199.9 116.6 177.8 144.1 148.7 144C134.9 143.9 124.9 139.9 115.4 130.5C96.7 111.9 96.7 83 115.4 64.5C121.7 58.3 128.2 54.5 136 52.4C142.9 50.5 154.9 50.7 161.9 52.9Z"})]}),mr=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 48 48",children:(0,Zt.jsx)("path",{d:"M7 34Q5.75 34 4.875 33.125Q4 32.25 4 31V17Q4 15.75 4.875 14.875Q5.75 14 7 14H41Q42.25 14 43.125 14.875Q44 15.75 44 17V31Q44 32.25 43.125 33.125Q42.25 34 41 34H37.8V31H41Q41 31 41 31Q41 31 41 31V17Q41 17 41 17Q41 17 41 17H7Q7 17 7 17Q7 17 7 17V31Q7 31 7 31Q7 31 7 31H20.2V34ZM29 38 27.2 34 23.2 32.2 27.2 30.4 29 26.4 30.8 30.4 34.8 32.2 30.8 34ZM34 27.4 32.95 25.05 30.6 24 32.95 22.95 34 20.6 35.05 22.95 37.4 24 35.05 25.05Z"})}),br=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 465.088 465.088",children:(0,Zt.jsx)("path",{d:"M61.21,83.126C27.461,83.126,0,110.582,0,144.341c0,33.751,27.457,61.212,61.21,61.212s61.217-27.456,61.217-61.212 C122.427,110.582,94.958,83.126,61.21,83.126z M61.21,191.091c-25.781,0-46.752-20.969-46.752-46.75 c0-25.778,20.971-46.759,46.752-46.759c25.788,0,46.755,20.98,46.755,46.759C107.965,170.123,86.991,191.091,61.21,191.091z M61.21,259.533C27.461,259.533,0,286.99,0,320.747c0,33.758,27.457,61.216,61.21,61.216s61.217-27.458,61.217-61.216 C122.427,286.997,94.958,259.533,61.21,259.533z M61.21,367.507c-25.781,0-46.752-20.981-46.752-46.761 C14.458,294.968,35.429,274,61.21,274c25.788,0,46.755,20.969,46.755,46.747C107.965,346.526,86.991,367.507,61.21,367.507z M465.088,107.244v74.187c0,3.196-2.591,5.784-5.78,5.784H155.637c-3.187,0-5.775-2.587-5.775-5.784v-74.187 c0-3.19,2.588-5.778,5.775-5.778h303.663C462.498,101.46,465.088,104.048,465.088,107.244z M465.088,283.659v74.184 c0,3.195-2.591,5.777-5.78,5.777H155.637c-3.187,0-5.775-2.582-5.775-5.777v-74.184c0-3.196,2.588-5.784,5.775-5.784h303.663 C462.498,277.875,465.088,280.462,465.088,283.659z M85.765,144.336c0,13.554-10.996,24.549-24.555,24.549 c-13.554,0-24.548-10.996-24.548-24.549c0-13.554,10.994-24.547,24.548-24.547C74.769,119.789,85.765,130.782,85.765,144.336z M85.765,320.186c0,13.558-10.996,24.545-24.555,24.545c-13.554,0-24.548-10.987-24.548-24.545c0-13.551,10.994-24.55,24.548-24.55 C74.769,295.636,85.765,306.635,85.765,320.186z"})}),vr=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 24 24",children:[(0,Zt.jsx)("path",{d:"m21.5 21h-19c-1.378 0-2.5-1.122-2.5-2.5v-13c0-1.378 1.122-2.5 2.5-2.5h19c1.378 0 2.5 1.122 2.5 2.5v13c0 1.378-1.122 2.5-2.5 2.5zm-19-17c-.827 0-1.5.673-1.5 1.5v13c0 .827.673 1.5 1.5 1.5h19c.827 0 1.5-.673 1.5-1.5v-13c0-.827-.673-1.5-1.5-1.5z"}),(0,Zt.jsx)("path",{d:"m7.5 12c-1.378 0-2.5-1.122-2.5-2.5s1.122-2.5 2.5-2.5 2.5 1.122 2.5 2.5-1.122 2.5-2.5 2.5zm0-4c-.827 0-1.5.673-1.5 1.5s.673 1.5 1.5 1.5 1.5-.673 1.5-1.5-.673-1.5-1.5-1.5z"}),(0,Zt.jsx)("path",{d:"m11.5 17c-.276 0-.5-.224-.5-.5v-1c0-.827-.673-1.5-1.5-1.5h-4c-.827 0-1.5.673-1.5 1.5v1c0 .276-.224.5-.5.5s-.5-.224-.5-.5v-1c0-1.378 1.122-2.5 2.5-2.5h4c1.378 0 2.5 1.122 2.5 2.5v1c0 .276-.224.5-.5.5z"}),(0,Zt.jsx)("path",{d:"m20.5 9h-6c-.276 0-.5-.224-.5-.5s.224-.5.5-.5h6c.276 0 .5.224.5.5s-.224.5-.5.5z"}),(0,Zt.jsx)("path",{d:"m20.5 13h-6c-.276 0-.5-.224-.5-.5s.224-.5.5-.5h6c.276 0 .5.224.5.5s-.224.5-.5.5z"}),(0,Zt.jsx)("path",{d:"m20.5 17h-6c-.276 0-.5-.224-.5-.5s.224-.5.5-.5h6c.276 0 .5.224.5.5s-.224.5-.5.5z"})]}),yr=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 256 256",children:(0,Zt.jsx)("g",{transform:"translate(128 128) scale(0.72 0.72)",children:(0,Zt.jsxs)("g",{transform:"translate(-175.05 -175.05000000000004) scale(3.89 3.89)",children:[(0,Zt.jsx)("path",{d:"M 87.994 0 H 69.342 c -1.787 0 -2.682 2.16 -1.418 3.424 l 5.795 5.795 l -33.82 33.82 L 28.056 31.196 l -3.174 -3.174 c -1.074 -1.074 -2.815 -1.074 -3.889 0 L 0.805 48.209 c -1.074 1.074 -1.074 2.815 0 3.889 l 3.174 3.174 c 1.074 1.074 2.815 1.074 3.889 0 l 15.069 -15.069 l 14.994 14.994 c 1.074 1.074 2.815 1.074 3.889 0 l 1.614 -1.614 c 0.083 -0.066 0.17 -0.125 0.247 -0.202 l 37.1 -37.1 l 5.795 5.795 C 87.84 23.34 90 22.445 90 20.658 V 2.006 C 90 0.898 89.102 0 87.994 0 z"}),(0,Zt.jsx)("path",{d:"M 65.626 37.8 v 49.45 c 0 1.519 1.231 2.75 2.75 2.75 h 8.782 c 1.519 0 2.75 -1.231 2.75 -2.75 V 23.518 L 65.626 37.8 z"}),(0,Zt.jsx)("path",{d:"M 47.115 56.312 V 87.25 c 0 1.519 1.231 2.75 2.75 2.75 h 8.782 c 1.519 0 2.75 -1.231 2.75 -2.75 V 42.03 L 47.115 56.312 z"}),(0,Zt.jsx)("path",{d:"M 39.876 60.503 c -1.937 0 -3.757 -0.754 -5.127 -2.124 l -6.146 -6.145 V 87.25 c 0 1.519 1.231 2.75 2.75 2.75 h 8.782 c 1.519 0 2.75 -1.231 2.75 -2.75 V 59.844 C 41.952 60.271 40.933 60.503 39.876 60.503 z"}),(0,Zt.jsx)("path",{d:"M 22.937 46.567 L 11.051 58.453 c -0.298 0.298 -0.621 0.562 -0.959 0.8 V 87.25 c 0 1.519 1.231 2.75 2.75 2.75 h 8.782 c 1.519 0 2.75 -1.231 2.75 -2.75 V 48.004 L 22.937 46.567 z"})]})})}),wr=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 84 82",children:(0,Zt.jsxs)("g",{transform:"translate(0, 82) scale(0.1, -0.1)",children:[(0,Zt.jsx)("path",{d:"M42 754 c-22 -15 -22 -17 -22 -303 0 -271 1 -289 19 -305 11 -10 27 -16 37 -14 24 4 30 28 7 28 -41 0 -43 13 -43 291 0 214 3 269 14 278 9 8 100 11 312 9 l299 -3 3 -22 c5 -31 32 -30 32 1 0 53 -18 56 -340 56 -251 0 -299 -2 -318 -16z"}),(0,Zt.jsx)("path",{d:"M137 642 c-15 -16 -17 -52 -17 -300 0 -242 2 -283 16 -296 13 -14 57 -16 329 -16 313 0 314 0 329 22 24 33 24 553 0 586 -15 22 -16 22 -328 22 -290 0 -314 -1 -329 -18z m638 -297 l0 -280 -310 0 -310 0 -3 270 c-1 148 0 275 3 282 3 11 70 13 312 11 l308 -3 0 -280z"}),(0,Zt.jsx)("path",{d:"M223 595 c0 -8 9 -15 19 -15 10 0 18 7 18 15 0 8 -8 15 -18 15 -10 0 -19 -7 -19 -15z"}),(0,Zt.jsx)("path",{d:"M177 553 c-4 -3 -7 -10 -7 -15 0 -4 133 -8 296 -8 232 0 295 3 292 13 -4 9 -72 13 -290 15 -156 1 -287 -1 -291 -5z"}),(0,Zt.jsx)("path",{d:"M482 409 c5 -16 188 -18 188 -1 0 9 -26 12 -96 12 -64 0 -94 -4 -92 -11z"}),(0,Zt.jsx)("path",{d:"M315 398 c-23 -62 -55 -164 -55 -175 0 -8 12 -13 31 -13 22 0 32 5 36 20 4 14 14 20 34 20 22 0 29 -5 29 -20 0 -16 7 -20 36 -20 25 0 35 4 31 13 -2 6 -16 51 -31 100 l-27 87 -40 0 c-23 0 -42 -5 -44 -12z m96 -85 c26 -77 26 -83 9 -83 -10 0 -20 9 -23 20 -4 15 -14 20 -40 20 -27 0 -37 -5 -42 -20 -6 -18 -35 -29 -35 -14 0 4 12 42 27 86 24 72 29 79 51 76 22 -3 29 -14 53 -85z"}),(0,Zt.jsx)("path",{d:"M341 339 c-16 -47 -14 -59 13 -59 33 0 37 10 25 53 -12 45 -24 47 -38 6z"}),(0,Zt.jsx)("path",{d:"M480 350 c0 -6 38 -10 95 -10 57 0 95 4 95 10 0 6 -38 10 -95 10 -57 0 -95 -4 -95 -10z"})]})}),xr=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 512 512",children:[(0,Zt.jsx)("path",{d:"m288 48h-64a24 24 0 0 1 0-48h64a24 24 0 0 1 0 48z"}),(0,Zt.jsx)("path",{d:"m414.392 129.608c-1.867-1.867-3.772-3.684-5.692-5.477l19.963-26.769a8 8 0 0 0 -1.63-11.195l-25.65-19.13a8 8 0 0 0 -11.2 1.631l-19.844 26.614a224.63 224.63 0 1 0 44.053 34.326zm-158.392 350.392c-105.869 0-192-86.131-192-192s86.131-192 192-192 192 86.131 192 192-86.131 192-192 192z"}),(0,Zt.jsx)("path",{d:"m408 296h-152a8 8 0 0 1 -8-8v-152a8 8 0 0 1 8-8c88.224 0 160 71.775 160 160a8 8 0 0 1 -8 8z"}),(0,Zt.jsx)("circle",{cx:201.421,cy:145.912,r:8}),(0,Zt.jsx)("circle",{cx:160.185,cy:169.732,r:8}),(0,Zt.jsx)("circle",{cx:128.327,cy:205.129,r:8}),(0,Zt.jsx)("circle",{cx:108.967,cy:248.638,r:8}),(0,Zt.jsx)("circle",{cx:104,cy:296,r:8}),(0,Zt.jsx)("circle",{cx:113.912,cy:342.579,r:8}),(0,Zt.jsx)("circle",{cx:137.732,cy:383.815,r:8}),(0,Zt.jsx)("circle",{cx:173.129,cy:415.673,r:8}),(0,Zt.jsx)("circle",{cx:216.638,cy:435.033,r:8}),(0,Zt.jsx)("circle",{cx:264,cy:440,r:8}),(0,Zt.jsx)("circle",{cx:310.579,cy:430.088,r:8}),(0,Zt.jsx)("circle",{cx:351.815,cy:406.268,r:8}),(0,Zt.jsx)("circle",{cx:383.673,cy:370.871,r:8}),(0,Zt.jsx)("circle",{cx:403.033,cy:327.362,r:8})]}),kr=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 448 512",children:(0,Zt.jsx)("path",{d:"M176 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h16V98.4C92.3 113.8 16 200 16 304c0 114.9 93.1 208 208 208s208-93.1 208-208c0-41.8-12.3-80.7-33.5-113.2l24.1-24.1c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L355.7 143c-28.1-23-62.2-38.8-99.7-44.6V64h16c17.7 0 32-14.3 32-32s-14.3-32-32-32H176zM288 204c28.7 0 52 23.3 52 52v96c0 28.7-23.3 52-52 52s-52-23.3-52-52V256c0-28.7 23.3-52 52-52zm-12 52v96c0 6.6 5.4 12 12 12s12-5.4 12-12V256c0-6.6-5.4-12-12-12s-12 5.4-12 12zM159.5 244c-5.4 0-10.2 3.5-11.9 8.6l-.6 1.7c-3.5 10.5-14.8 16.1-25.3 12.6s-16.1-14.8-12.6-25.3l.6-1.7c7.2-21.5 27.2-35.9 49.8-35.9c29 0 52.5 23.5 52.5 52.5v2.2c0 13.4-4.9 26.4-13.8 36.4l-39 43.9c-6.2 7-10 15.7-10.9 24.9H192c11 0 20 9 20 20s-9 20-20 20H128c-11 0-20-9-20-20V368.3c0-20.6 7.5-40.4 21.2-55.8l39-43.9c2.4-2.7 3.7-6.2 3.7-9.8v-2.2c0-6.9-5.6-12.5-12.5-12.5z"})}),_r=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 512 512",children:(0,Zt.jsx)("path",{d:"M456 89.333v333.333h33.333c9.205 0 16.667 7.462 16.667 16.667v33.333c0 9.205-7.462 16.667-16.667 16.667H322.667c-9.205 0-16.667-7.462-16.667-16.667v-33.333c0-9.205 7.462-16.667 16.667-16.667H356V289.333H156v133.333h33.333c9.205 0 16.667 7.462 16.667 16.667v33.333c0 9.205-7.462 16.667-16.667 16.667H22.667C13.462 489.333 6 481.871 6 472.667v-33.333c0-9.205 7.462-16.667 16.667-16.667H56V89.333H22.667C13.462 89.333 6 81.871 6 72.667V39.333c0-9.205 7.462-16.667 16.667-16.667h166.667c9.205 0 16.667 7.462 16.667 16.667v33.333c0 9.205-7.462 16.667-16.667 16.667H156v133.333h200V89.333h-33.333c-9.205 0-16.667-7.462-16.667-16.667V39.333c0-9.205 7.462-16.667 16.667-16.667h166.667c9.205 0 16.667 7.462 16.667 16.667v33.333c0 9.205-7.462 16.667-16.667 16.667z"})}),Cr=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 448 512",children:(0,Zt.jsx)("path",{d:"M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48z"})}),Tr=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 448 512",children:(0,Zt.jsx)("path",{d:"M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48z"})}),Sr=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 512.015 512.015",children:[(0,Zt.jsx)("path",{d:"m198.562 0h66.4v80.333h-66.4z"}),(0,Zt.jsx)("path",{d:"m344.229 162.8c41.599 0 80.103 13.477 111.4 36.279v-184.079c0-8.284-6.716-15-15-15h-145.666v95.333c0 8.284-6.716 15-15 15h-96.4c-8.284 0-15-6.716-15-15v-95.333h-145.667c-8.284 0-15 6.716-15 15v417.733c0 8.284 6.716 15 15 15h157.501c-73.932-123.458 19.116-286.358 163.832-284.933z"}),(0,Zt.jsx)("path",{d:"m495.817 302.361-140.98 140.979c-5.858 5.859-15.357 5.857-21.213 0l-80.333-80.333c-5.859-5.859-5.852-15.361 0-21.213l45.444-45.444c5.858-5.859 15.361-5.853 21.213 0l24.282 24.284 95.85-95.851c-103.098-78.701-256.216-3.381-255.45 127.619-.001 88.143 71.454 159.598 159.599 159.598 107.198 1.479 186.383-108.623 151.588-209.639z"}),(0,Zt.jsx)("path",{d:"m354.835 352.453c-5.858 5.858-15.355 5.858-21.213 0l-24.283-24.284-24.23 24.23 59.12 59.12 132.382-132.382c3.905-3.905 3.905-10.237 0-14.142l-10.089-10.088c-3.905-3.905-10.237-3.905-14.142 0z"})]}),Er=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 512 512",children:(0,Zt.jsx)("path",{d:"M256 0c-8.284 0-15 6.716-15 15v70c0 8.284 6.716 15 15 15s15-6.716 15-15V15c0-8.284-6.716-15-15-15zM256 137c-8.284 0-15 6.716-15 15v70c0 8.284 6.716 15 15 15s15-6.716 15-15v-70c0-8.284-6.716-15-15-15zM256 275c-8.284 0-15 6.716-15 15v70c0 8.284 6.716 15 15 15s15-6.716 15-15v-70c0-8.284-6.716-15-15-15zM256 412c-8.284 0-15 6.716-15 15v70c0 8.284 6.716 15 15 15s15-6.716 15-15v-70c0-8.284-6.716-15-15-15zM179.402 103.503l-120-36.842A14.999 14.999 0 0040 81v350a14.999 14.999 0 0019.402 14.338l120-36.842A14.999 14.999 0 00190 394.157V117.842c0-6.588-4.3-12.405-10.598-14.339zM465.915 68.937a14.999 14.999 0 00-13.317-2.276l-120 36.842A14.999 14.999 0 00322 117.842v276.316c0 6.588 4.3 12.405 10.598 14.339l120 36.842A15 15 0 00472 431V81c0-4.759-2.258-9.235-6.085-12.063z"})}),$r=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 24 24",children:(0,Zt.jsx)("path",{d:"m19.25 0h-14.5c-1.517 0-2.75 1.233-2.75 2.75v18.5c0 1.517 1.233 2.75 2.75 2.75h14.5c1.517 0 2.75-1.233 2.75-2.75v-18.5c0-1.517-1.233-2.75-2.75-2.75zm-12.5 18.5h.75v-.293c-.292-.103-.5-.381-.5-.707 0-.414.336-.75.75-.75h.5c.414 0 .75.336.75.75v1.75c0 .414-.336.75-.75.75h-1.5c-.965 0-1.75-.785-1.75-1.75v-2.5c0-.965.785-1.75 1.75-1.75h1.5c.414 0 .75.336.75.75s-.336.75-.75.75h-1.5c-.138 0-.25.112-.25.25v2.5c0 .138.112.25.25.25zm5.5.75c0 .414-.336.75-.75.75s-.75-.336-.75-.75v-4.5c0-.414.336-.75.75-.75s.75.336.75.75zm5-2.75c.414 0 .75.336.75.75s-.336.75-.75.75h-2v1.25c0 .414-.336.75-.75.75s-.75-.336-.75-.75v-3.5c0-.965.785-1.75 1.75-1.75h1.75c.414 0 .75.336.75.75s-.336.75-.75.75h-1.75c-.138 0-.25.112-.25.25v.75z"})}),Mr=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 16 16",children:(0,Zt.jsx)("path",{d:"M4.854 4.146a.5.5 0 010 .708L1.707 8l3.147 3.146a.5.5 0 01-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 01.708 0zm6.292 0a.5.5 0 000 .708L14.293 8l-3.147 3.146a.5.5 0 00.708.708l3.5-3.5a.5.5 0 000-.708l-3.5-3.5a.5.5 0 00-.708 0zm-.999-3.124a.5.5 0 01.33.625l-4 13a.5.5 0 01-.955-.294l4-13a.5.5 0 01.625-.33z"})}),Lr=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 24 24",children:(0,Zt.jsx)("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 0 1 .67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 1 1-.671-1.34l.041-.022ZM12 9a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z"})}),Ar=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 469.333 469.333",children:(0,Zt.jsx)("path",{d:"M192 42.667H85.333c-23.573 0-42.667 19.093-42.667 42.667V384c0 23.573 19.093 42.667 42.667 42.667H192v42.667h42.667V0H192v42.667zm0 320H85.333l106.667-128v128zM384 42.667H277.333v42.667H384v277.333l-106.667-128v192H384c23.573 0 42.667-19.093 42.667-42.667V85.333c0-23.573-19.094-42.666-42.667-42.666z"})}),Rr=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 24 24",children:[(0,Zt.jsx)("path",{d:"m6.25 19.5c-1.601 0-3.025-1.025-3.542-2.551l-.035-.115c-.122-.404-.173-.744-.173-1.084v-6.818l-2.426 8.098c-.312 1.191.399 2.426 1.592 2.755l15.463 4.141c.193.05.386.074.576.074.996 0 1.906-.661 2.161-1.635l.901-2.865z"}),(0,Zt.jsx)("path",{d:"m9 9c1.103 0 2-.897 2-2s-.897-2-2-2-2 .897-2 2 .897 2 2 2z"}),(0,Zt.jsx)("path",{d:"m21.5 2h-15c-1.378 0-2.5 1.122-2.5 2.5v11c0 1.378 1.122 2.5 2.5 2.5h15c1.378 0 2.5-1.122 2.5-2.5v-11c0-1.378-1.122-2.5-2.5-2.5zm-15 2h15c.276 0 .5.224.5.5v7.099l-3.159-3.686c-.335-.393-.82-.603-1.341-.615-.518.003-1.004.233-1.336.631l-3.714 4.458-1.21-1.207c-.684-.684-1.797-.684-2.48 0l-2.76 2.759v-9.439c0-.276.224-.5.5-.5z"})]}),Nr=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 1000 1004.1441",children:(0,Zt.jsx)("path",{d:"m229 542.144c58 0 104-47 104-105s-46-104-104-104-104 47-104 104 47 105 104 105zm0-167c35 0 63 28 63 62s-28 63-63 63-62-28-62-63 28-62 62-62zm750-167h-147c1-7 1-14 1-21 0-80-65-145-145-145s-146 65-146 145c0 7 0 14 1 21h-522c-12 0-21 10-21 21v709c0 11 9 20 21 20h958c12 0 21-9 21-20v-709c0-11-9-21-21-21zm-291-125c57 0 104 47 104 104 0 75-71 199-104 253-34-54-105-178-105-253 0-57 47-104 105-104zm-136 167c29 106 114 234 118 241 4 5 11 9 18 9s13-4 17-9c4-7 89-135 118-241h135v547l-171-206c-8-10-24-10-32 0l-85 102-131-224c-4-7-10-11-18-11-6 1-14 4-18 10l-172 268-128-146c-4-5-11-7-18-7-6 1-12 5-16 11l-127 223v-567zm-510 667v-16l149-261 127 145c4 4 10 7 17 7 6-1 12-4 16-10l169-263 129 221c3 6 9 9 16 10 7 0 13-2 18-8l88-105 187 225v55zm708-730c0-34-28-62-62-62s-63 28-63 62 28 63 63 63 62-28 62-63zm-83 0c0-11 9-20 21-20s20 9 20 20-9 21-20 21-21-9-21-21z"})}),jr=(0,Zt.jsx)("svg",{...cr,version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 512 512",style:{enableBackground:"new 0 0 512 512"},xmlSpace:"preserve",children:(0,Zt.jsxs)("g",{id:"Scroll",children:[(0,Zt.jsx)("circle",{style:{fill:"none",stroke:Bn,strokeWidth:40,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10},cx:256,cy:256,r:120}),(0,Zt.jsx)("path",{style:{fill:"none",stroke:Bn,strokeWidth:40,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10},d:"M176,83.431l51.716-51.716c15.621-15.621,40.948-15.621,56.569,0L336,83.431"}),(0,Zt.jsx)("path",{style:{fill:"none",stroke:Bn,strokeWidth:40,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10},d:"M176,428.569l51.716,51.716c15.621,15.621,40.948,15.621,56.569,0L336,428.569"}),(0,Zt.jsx)("path",{style:{fill:"none",stroke:Bn,strokeWidth:40,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10},d:"M83.431,336l-51.716-51.716c-15.621-15.621-15.621-40.948,0-56.569L83.431,176"}),(0,Zt.jsx)("path",{style:{fill:"none",stroke:Bn,strokeWidth:40,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10},d:" M428.569,336l51.716-51.716c15.621-15.621,15.621-40.948,0-56.569L428.569,176"})]})}),Ir=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 23.625 23.625",children:(0,Zt.jsx)("path",{d:"M11.812,0C5.289,0,0,5.289,0,11.812s5.289,11.813,11.812,11.813s11.813-5.29,11.813-11.813 S18.335,0,11.812,0z M14.271,18.307c-0.608,0.24-1.092,0.422-1.455,0.548c-0.362,0.126-0.783,0.189-1.262,0.189 c-0.736,0-1.309-0.18-1.717-0.539s-0.611-0.814-0.611-1.367c0-0.215,0.015-0.435,0.045-0.659c0.031-0.224,0.08-0.476,0.147-0.759 l0.761-2.688c0.067-0.258,0.125-0.503,0.171-0.731c0.046-0.23,0.068-0.441,0.068-0.633c0-0.342-0.071-0.582-0.212-0.717 c-0.143-0.135-0.412-0.201-0.813-0.201c-0.196,0-0.398,0.029-0.605,0.09c-0.205,0.063-0.383,0.12-0.529,0.176l0.201-0.828 c0.498-0.203,0.975-0.377,1.43-0.521c0.455-0.146,0.885-0.218,1.29-0.218c0.731,0,1.295,0.178,1.692,0.53 c0.395,0.353,0.594,0.812,0.594,1.376c0,0.117-0.014,0.323-0.041,0.617c-0.027,0.295-0.078,0.564-0.152,0.811l-0.757,2.68 c-0.062,0.215-0.117,0.461-0.167,0.736c-0.049,0.275-0.073,0.485-0.073,0.626c0,0.356,0.079,0.599,0.239,0.728 c0.158,0.129,0.435,0.194,0.827,0.194c0.185,0,0.392-0.033,0.626-0.097c0.232-0.064,0.4-0.121,0.506-0.17L14.271,18.307z M14.137,7.429c-0.353,0.328-0.778,0.492-1.275,0.492c-0.496,0-0.924-0.164-1.28-0.492c-0.354-0.328-0.533-0.727-0.533-1.193 c0-0.465,0.18-0.865,0.533-1.196c0.356-0.332,0.784-0.497,1.28-0.497c0.497,0,0.923,0.165,1.275,0.497 c0.353,0.331,0.53,0.731,0.53,1.196C14.667,6.703,14.49,7.101,14.137,7.429z"})}),Or=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 24 24",children:[(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"1.2",opacity:"0.45"}),(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"4.6",fill:Bn,opacity:"0.9"}),(0,Zt.jsx)("circle",{cx:"12",cy:"2.6",r:"2.2",fill:Hn}),(0,Zt.jsx)("circle",{cx:"20.1",cy:"16.7",r:"2.2",fill:Hn}),(0,Zt.jsx)("circle",{cx:"3.9",cy:"16.7",r:"2.2",fill:Hn})]}),Dr=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 24 24",children:(0,Zt.jsx)("path",{d:"M15,2 C16.6568542,2 18,3.34314575 18,5 L18,19 C18,20.6568542 16.6568542,22 15,22 L9,22 C7.34314575,22 6,20.6568542 6,19 L6,5 C6,3.34314575 7.34314575,2 9,2 L15,2 Z M15,4 L9,4 C8.44771525,4 8,4.44771525 8,5 L8,19 C8,19.5522847 8.44771525,20 9,20 L15,20 C15.5522847,20 16,19.5522847 16,19 L16,5 C16,4.44771525 15.5522847,4 15,4 Z M3,6 C3.55228475,6 4,6.44771525 4,7 L4,17 C4,17.5522847 3.55228475,18 3,18 C2.44771525,18 2,17.5522847 2,17 L2,7 C2,6.44771525 2.44771525,6 3,6 Z M21,6 C21.5522847,6 22,6.44771525 22,7 L22,17 C22,17.5522847 21.5522847,18 21,18 C20.4477153,18 20,17.5522847 20,17 L20,7 C20,6.44771525 20.4477153,6 21,6 Z"})}),Pr=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 44 44",children:[(0,Zt.jsx)("path",{fillRule:"evenodd",fill:"url(#lottieLogoGradient)",d:"M3.252 0A3.252 3.252 0 000 3.252v37.496A3.252 3.252 0 003.252 44h36.887a3.252 3.252 0 003.252-3.252V3.252A3.252 3.252 0 0040.139 0H3.252zM34.9 11.165c.176-1.208-.646-2.33-1.837-2.509-4.495-.674-8.754 3.376-13.297 12.148-3.567 6.888-6.775 10.35-8.96 10.186-1.2-.09-2.245.824-2.334 2.04-.088 1.217.813 2.277 2.013 2.367 4.423.331 8.625-3.822 13.14-12.539 3.535-6.827 6.693-10.147 8.801-9.83 1.19.177 2.298-.656 2.474-1.864z"}),(0,Zt.jsxs)("linearGradient",{id:"lottieLogoGradient",x1:-13.485,y1:25.573,x2:28.352,y2:52.389,gradientUnits:"userSpaceOnUse",children:[(0,Zt.jsx)("stop",{stopColor:Hn}),(0,Zt.jsx)("stop",{offset:1,stopColor:Bn})]})]}),Fr=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 512 512",children:[(0,Zt.jsx)("path",{d:"M10.688,95.156C80.958,154.667,204.26,259.365,240.5,292.01c4.865,4.406,10.083,6.646,15.5,6.646 c5.406,0,10.615-2.219,15.469-6.604c36.271-32.677,159.573-137.385,229.844-196.896c4.375-3.698,5.042-10.198,1.5-14.719 C494.625,69.99,482.417,64,469.333,64H42.667c-13.083,0-25.292,5.99-33.479,16.438C5.646,84.958,6.313,91.458,10.688,95.156z"}),(0,Zt.jsx)("path",{d:"M505.813,127.406c-3.781-1.76-8.229-1.146-11.375,1.542C416.51,195.01,317.052,279.688,285.76,307.885 c-17.563,15.854-41.938,15.854-59.542-0.021c-33.354-30.052-145.042-125-208.656-178.917c-3.167-2.688-7.625-3.281-11.375-1.542 C2.417,129.156,0,132.927,0,137.083v268.25C0,428.865,19.135,448,42.667,448h426.667C492.865,448,512,428.865,512,405.333 v-268.25C512,132.927,509.583,129.146,505.813,127.406z"})]}),zr=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 448 512",children:(0,Zt.jsx)("path",{d:"M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"})}),Br=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 512 512",children:[(0,Zt.jsx)("path",{d:"M294.416 447.644l56.28-62.302-47.401-27.367-25.815 79.891c-3.315 10.257 9.71 17.777 16.936 9.778zM496.995 77.21c-14.349-8.284-32.696-3.368-40.981 10.981l-15 25.981 51.962 30 15-25.981c8.284-14.349 3.368-32.696-10.981-40.981zM316.008 330.686l80-138.56 51.96 30-80 138.56zM411.011 166.145l15-25.98 51.96 30-15 25.98zM302 0H55C24.624 0 0 24.624 0 55v25h302zM131.607 225.393l19.199 19.199L179 207c6-8 18-8 24 0l33 44v-80H76v88.787l34.393-34.394c5.858-5.858 15.356-5.858 21.214 0z"}),(0,Zt.jsx)("path",{d:"M97.213 281h47.574L121 257.213zM172.234 266.021L187.213 281H221l-30-40zM432 69.786V55c0-30.376-24.624-55-55-55h-45v80h94.103z"}),(0,Zt.jsx)("path",{d:"M380.317 397.305l-63.64 70.449C309.074 476.172 298.301 481 287.126 481h-.001c-12.838 0-25.024-6.214-32.599-16.622A39.56 39.56 0 01248.197 451H61c-8.284 0-15-6.716-15-15s6.716-15 15-15h190.402l12.925-40H61c-8.284 0-15-6.716-15-15s6.716-15 15-15h213.021l4.102-12.695a44.94 44.94 0 013.849-8.663L408.782 110H0v347c0 30.376 24.624 55 55 55h322c30.376 0 55-24.624 55-55V309.785l-46.104 79.855a45.037 45.037 0 01-5.579 7.665zM46 156c0-8.284 6.716-15 15-15h190c8.284 0 15 6.716 15 15v140c0 8.284-6.716 15-15 15H61c-8.284 0-15-6.716-15-15z"})]}),Hr=(0,Zt.jsxs)("svg",{...cr,viewBox:"-25 0 512 512.00078",children:[(0,Zt.jsx)("path",{d:"M 266.4375 104.960938 L 322.957031 104.960938 L 236.449219 13.957031 L 236.449219 74.855469 C 236.449219 91.351562 249.828125 104.960938 266.4375 104.960938 Z M 266.4375 104.960938"}),(0,Zt.jsx)("path",{d:"M 172.667969 334.488281 L 72.433594 334.488281 C 67.359375 334.488281 63.207031 330.339844 63.207031 325.261719 C 63.207031 320.1875 67.359375 316.035156 72.433594 316.035156 L 178.78125 316.035156 C 184.660156 301.042969 192.503906 288.351562 202.195312 275.664062 L 72.433594 275.664062 C 67.359375 275.664062 63.207031 271.515625 63.207031 266.4375 C 63.207031 261.363281 67.359375 257.210938 72.433594 257.210938 L 219.726562 257.210938 C 247.40625 232.988281 284.085938 217.535156 324.109375 217.535156 C 327.914062 217.535156 331.03125 217.878906 335.644531 218.226562 L 335.644531 123.414062 L 266.4375 123.414062 C 239.679688 123.414062 217.996094 101.5 217.996094 74.855469 L 217.996094 0 L 41.0625 0 C 18.222656 0 0 18.683594 0 41.636719 L 0 393.660156 C 0 416.613281 18.222656 434.835938 41.0625 434.835938 L 180.046875 434.835938 C 172.089844 416.382812 167.707031 395.621094 167.707031 373.9375 C 167.589844 360.328125 169.4375 347.175781 172.667969 334.488281 Z M 72.433594 199.539062 L 189.277344 199.539062 C 194.351562 199.539062 198.503906 203.691406 198.503906 208.769531 C 198.503906 213.84375 194.351562 217.996094 189.277344 217.996094 L 72.433594 217.996094 C 67.359375 217.996094 63.207031 213.84375 63.207031 208.769531 C 63.207031 203.691406 67.359375 199.539062 72.433594 199.539062 Z M 72.433594 199.539062"}),(0,Zt.jsx)("path",{d:"M 323.992188 236.335938 C 247.984375 236.335938 186.160156 298.15625 186.160156 374.167969 C 186.160156 450.175781 247.984375 512 323.992188 512 C 400.003906 512 461.828125 450.175781 461.828125 374.167969 C 461.828125 298.15625 400.003906 236.335938 323.992188 236.335938 Z M 323.765625 364.25 C 351.5625 364.25 374.050781 386.855469 374.050781 414.535156 C 374.050781 439.449219 355.945312 460.097656 332.183594 464.132812 L 332.183594 477.511719 C 332.183594 482.589844 328.03125 486.742188 322.957031 486.742188 C 317.882812 486.742188 313.730469 482.589844 313.730469 477.511719 L 313.730469 463.789062 C 290.777344 459.058594 273.476562 438.757812 273.476562 414.535156 C 273.476562 409.460938 277.628906 405.308594 282.703125 405.308594 C 287.777344 405.308594 291.929688 409.460938 291.929688 414.535156 C 291.929688 432.070312 306.234375 446.371094 323.765625 446.371094 C 341.296875 446.371094 355.597656 432.066406 355.597656 414.535156 C 355.597656 397.003906 341.296875 382.703125 323.765625 382.703125 C 295.96875 382.703125 273.476562 360.09375 273.476562 332.414062 C 273.476562 308.074219 290.777344 287.777344 313.730469 283.164062 L 313.730469 273.359375 C 313.730469 268.28125 317.882812 264.128906 322.957031 264.128906 C 328.03125 264.128906 332.183594 268.28125 332.183594 273.359375 L 332.183594 282.699219 C 355.945312 286.738281 374.050781 307.382812 374.050781 332.296875 C 374.050781 337.371094 369.902344 341.523438 364.824219 341.523438 C 359.75 341.523438 355.597656 337.371094 355.597656 332.296875 C 355.597656 315.457031 342.449219 301.617188 325.839844 300.464844 C 324.917969 300.808594 323.878906 300.925781 322.839844 300.925781 C 321.917969 300.925781 321.109375 300.808594 320.1875 300.578125 C 304.269531 302.308594 291.816406 315.804688 291.816406 332.296875 C 291.929688 349.945312 306.230469 364.25 323.765625 364.25 Z M 323.765625 364.25"})]}),Wr=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 34 34",children:(0,Zt.jsx)("path",{transform:"translate(-1094.000000, -2938.000000)",d:"M1118.5,2938.0001 C1119.881,2938.0001 1121,2939.1191 1121,2940.5001 L1121,2940.5001 L1121,2969.5001 C1121,2970.8801 1119.881,2972.0001 1118.5,2972.0001 L1118.5,2972.0001 L1103.5,2972.0001 C1102.12,2972.0001 1101,2970.8801 1101,2969.5001 L1101,2969.5001 L1101,2940.5001 C1101,2939.1191 1102.12,2938.0001 1103.5,2938.0001 L1103.5,2938.0001 Z M1118.5,2939.0001 L1103.5,2939.0001 C1102.673,2939.0001 1102,2939.6731 1102,2940.5001 L1102,2940.5001 L1102,2969.5001 C1102,2970.3271 1102.673,2971.0001 1103.5,2971.0001 L1103.5,2971.0001 L1118.5,2971.0001 C1119.327,2971.0001 1120,2970.3271 1120,2969.5001 L1120,2969.5001 L1120,2940.5001 C1120,2939.6731 1119.327,2939.0001 1118.5,2939.0001 L1118.5,2939.0001 Z M1125.23077,2942 C1126.75754,2942 1128,2943.29615 1128,2944.88889 L1128,2944.88889 L1128,2965.11111 C1128,2966.70385 1126.75754,2968 1125.23077,2968 L1125.23077,2968 L1123,2968 L1123,2967.03704 L1125.23077,2967.03704 C1126.24892,2967.03704 1127.07692,2966.17326 1127.07692,2965.11111 L1127.07692,2965.11111 L1127.07692,2944.88889 C1127.07692,2943.82674 1126.24892,2942.96296 1125.23077,2942.96296 L1125.23077,2942.96296 L1123,2942.96296 L1123,2942 Z M1099,2942 L1099,2942.96296 L1096.76923,2942.96296 C1095.75108,2942.96296 1094.92308,2943.82674 1094.92308,2944.88889 L1094.92308,2944.88889 L1094.92308,2965.11111 C1094.92308,2966.17326 1095.75108,2967.03704 1096.76923,2967.03704 L1096.76923,2967.03704 L1099,2967.03704 L1099,2968 L1096.76923,2968 C1095.24246,2968 1094,2966.70385 1094,2965.11111 L1094,2965.11111 L1094,2944.88889 C1094,2943.29615 1095.24246,2942 1096.76923,2942 L1096.76923,2942 L1099,2942 Z M1116.6436,2962.4107 C1117.4726,2962.4107 1118.1436,2963.0817 1118.1436,2963.9107 C1118.1436,2964.7397 1117.4726,2965.4107 1116.6436,2965.4107 L1116.6436,2965.4107 L1106.0266,2965.4107 C1105.1976,2965.4107 1104.5266,2964.7397 1104.5266,2963.9107 C1104.5266,2963.0817 1105.1976,2962.4107 1106.0266,2962.4107 L1106.0266,2962.4107 Z M1115.6434,2955.9249 C1115.9204,2955.9249 1116.1434,2956.1489 1116.1434,2956.4249 C1116.1434,2956.7009 1115.9204,2956.9249 1115.6434,2956.9249 L1115.6434,2956.9249 L1105.0264,2956.9249 C1104.7504,2956.9249 1104.5264,2956.7009 1104.5264,2956.4249 C1104.5264,2956.1489 1104.7504,2955.9249 1105.0264,2955.9249 L1105.0264,2955.9249 Z M1110.3354,2952.2164 C1110.6114,2952.2164 1110.8354,2952.4404 1110.8354,2952.7164 C1110.8354,2952.9924 1110.6114,2953.2164 1110.3354,2953.2164 L1110.3354,2953.2164 L1105.0264,2953.2164 C1104.7504,2953.2164 1104.5264,2952.9924 1104.5264,2952.7164 C1104.5264,2952.4404 1104.7504,2952.2164 1105.0264,2952.2164 L1105.0264,2952.2164 Z M1114.7064,2948.2579 C1114.9824,2948.2579 1115.2064,2948.4819 1115.2064,2948.7579 C1115.2064,2949.0339 1114.9824,2949.2579 1114.7064,2949.2579 L1114.7064,2949.2579 L1105.0264,2949.2579 C1104.7504,2949.2579 1104.5264,2949.0339 1104.5264,2948.7579 C1104.5264,2948.4819 1104.7504,2948.2579 1105.0264,2948.2579 L1105.0264,2948.2579 Z M1116.8594,2944.2022 C1117.1354,2944.2022 1117.3594,2944.4262 1117.3594,2944.7022 C1117.3594,2944.9782 1117.1354,2945.2022 1116.8594,2945.2022 L1116.8594,2945.2022 L1105.0264,2945.2022 C1104.7504,2945.2022 1104.5264,2944.9782 1104.5264,2944.7022 C1104.5264,2944.4262 1104.7504,2944.2022 1105.0264,2944.2022 L1105.0264,2944.2022 Z"})}),Ur=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 512 512",children:[(0,Zt.jsx)("path",{d:"m30 30h53.857v-30h-83.857v83.857h30z"}),(0,Zt.jsx)("path",{d:"m428.143 0v30h53.857v53.857h30v-83.857z"}),(0,Zt.jsx)("path",{d:"m30 428.143h-30v83.857h83.857v-30h-53.857z"}),(0,Zt.jsx)("path",{d:"m482 482h-53.857v30h83.857v-83.857h-30z"}),(0,Zt.jsx)("path",{d:"m68.857 236.571h167.714v-167.714h-167.714zm30-137.714h107.714v107.714h-107.714z"}),(0,Zt.jsx)("path",{d:"m443.143 275.429h-167.714v167.714h167.714zm-137.714 30h107.714v38.857h-68.856v68.856h-38.857v-107.713zm68.857 107.714v-38.856h38.856v38.856z"}),(0,Zt.jsx)("path",{d:"m206.571 344.286h-38.857v-68.857h-98.857v167.714h167.714v-152.714h-30zm0 68.857h-107.714v-107.714h38.857v68.857h68.857z"}),(0,Zt.jsx)("path",{d:"m137.714 137.714h30v30h-30z"}),(0,Zt.jsx)("path",{d:"m305.429 98.857h38.857v68.856h68.856v38.857h-137.705v30h167.705v-167.713h-167.713v98.643h30zm68.857 0h38.856v38.856h-38.856z"})]}),Vr=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 20 20",children:(0,Zt.jsx)("path",{d:"M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4"})}),qr=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 512.013 512.013",children:[(0,Zt.jsx)("path",{d:"m469.481 127.589h-5.19c-3.068-10.775-7.354-21.113-12.802-30.887l3.689-3.69c4.221-4.219 6.544-9.846 6.544-15.845s-2.323-11.625-6.547-15.849l-24.58-24.551c-4.221-4.247-9.855-6.585-15.865-6.585-6.009 0-11.644 2.338-15.844 6.564l-3.685 3.685c-9.781-5.465-20.123-9.759-30.891-12.826v-5.189c.001-12.36-10.054-22.416-22.415-22.416h-34.752c-12.36 0-22.416 10.056-22.416 22.416v5.189c-10.766 3.066-21.114 7.361-30.915 12.83l-3.668-3.668c-4.223-4.247-9.857-6.585-15.866-6.584-6.009 0-11.643 2.339-15.843 6.564l-24.575 24.576c-4.221 4.219-6.544 9.846-6.544 15.845s2.323 11.625 6.543 15.844l3.688 3.689c-5.471 9.804-9.759 20.144-12.81 30.888h-5.209c-12.36 0-22.416 10.056-22.416 22.416v34.782c0 12.36 10.056 22.416 22.416 22.416h5.209c3.051 10.743 7.339 21.083 12.81 30.888l-3.688 3.689c-4.221 4.219-6.544 9.846-6.544 15.845 0 5.998 2.323 11.625 6.543 15.844l24.556 24.556c4.221 4.247 9.854 6.585 15.863 6.585h.001c6.009 0 11.644-2.338 15.845-6.564l3.688-3.689c9.811 5.474 20.159 9.763 30.915 12.813v5.207c0 12.36 10.056 22.416 22.416 22.416h34.752c12.36 0 22.416-10.056 22.416-22.416v-5.207c10.759-3.051 21.099-7.338 30.891-12.809l3.664 3.664c4.221 4.247 9.855 6.585 15.864 6.585 6.01 0 11.645-2.339 15.841-6.56l24.608-24.581c4.22-4.22 6.543-9.847 6.543-15.845 0-5.999-2.323-11.625-6.543-15.844l-3.69-3.69c5.448-9.774 9.733-20.112 12.802-30.887h5.19c12.36 0 22.416-10.056 22.416-22.416v-34.782c.001-12.36-10.054-22.416-22.415-22.416zm-125.17 184.787c0 1.31-1.106 2.416-2.416 2.416h-34.752c-1.31 0-2.416-1.106-2.416-2.416v-12.983-63.043c0-4.182-2.602-7.922-6.522-9.376-26.872-9.966-44.926-35.828-44.926-64.354 0-22.607 11.257-43.799 30.107-56.684.846-.578 1.594-1.05 2.248-1.437-.036 1.3-.128 2.536-.177 3.181-.075 1.015-.135 1.816-.135 2.611v47.197c0 21.663 16.927 39.755 38.534 41.188.441.029.883.029 1.324 0 21.592-1.432 38.506-19.524 38.506-41.188v-47.197c0-.791-.059-1.587-.133-2.596-.048-.648-.14-1.891-.175-3.197.652.386 1.396.857 2.239 1.434 18.855 12.888 30.112 34.08 30.112 56.687 0 28.523-18.044 54.386-44.9 64.355-3.919 1.455-6.52 5.194-6.52 9.375v63.043 12.984zm127.586-127.589c0 1.287-1.129 2.416-2.416 2.416h-12.954c-4.672 0-8.722 3.235-9.753 7.792-3.167 13.993-8.652 27.225-16.303 39.328-2.498 3.952-1.924 9.108 1.382 12.414l9.185 9.185c.596.596.685 1.322.685 1.702 0 .379-.089 1.106-.682 1.698l-24.629 24.602c-.563.566-1.226.685-1.682.685-.455 0-1.117-.119-1.701-.707l-9.185-9.185c-3.311-3.31-8.472-3.88-12.424-1.376-8.536 5.409-17.622 9.701-27.109 12.873v-43.213c31.024-14.438 51.42-45.901 51.42-80.383 0-29.217-14.515-56.581-38.825-73.198-3.724-2.545-15.049-10.288-24.954-4.587-9.726 5.6-8.757 18.727-8.344 24.333.036.487.071.896.079 1.125v47.197c0 10.946-8.366 20.123-19.168 21.178-10.817-1.056-19.196-10.233-19.196-21.178l-.001-47.125c.009-.301.045-.71.081-1.199.417-5.603 1.394-18.723-8.324-24.326-9.901-5.711-21.243 2.035-24.974 4.582-24.312 16.618-38.826 43.982-38.826 73.199 0 34.487 20.407 65.952 51.448 80.386v43.21c-9.489-3.172-18.586-7.466-27.147-12.878-1.646-1.04-3.498-1.547-5.341-1.547-2.583 0-5.145.999-7.074 2.929l-9.204 9.205c-.563.567-1.226.686-1.682.686s-1.117-.119-1.701-.706l-24.576-24.577c-.597-.596-.686-1.323-.686-1.702 0-.38.089-1.106.686-1.703l9.184-9.185c3.306-3.306 3.88-8.462 1.382-12.414-7.69-12.167-13.174-25.393-16.299-39.311-1.024-4.565-5.078-7.81-9.757-7.81h-12.982c-1.287 0-2.416-1.129-2.416-2.416v-34.782c0-1.31 1.106-2.416 2.416-2.416h12.982c4.679 0 8.732-3.245 9.757-7.81 3.125-13.918 8.608-27.145 16.299-39.311 2.498-3.952 1.924-9.108-1.382-12.414l-9.185-9.185c-.596-.596-.685-1.322-.685-1.702s.089-1.106.686-1.703l24.597-24.598c.563-.566 1.225-.685 1.681-.685s1.118.119 1.702.706l9.184 9.185c3.308 3.307 8.464 3.88 12.415 1.382 12.151-7.682 25.392-13.177 39.351-16.33 4.56-1.03 7.797-5.081 7.797-9.754v-12.953c0-1.31 1.106-2.416 2.416-2.416h34.752c1.31 0 2.416 1.106 2.416 2.416v12.955c0 4.674 3.237 8.724 7.796 9.754 13.972 3.156 27.198 8.648 39.313 16.325 3.953 2.504 9.113 1.934 12.424-1.376l9.205-9.206c.563-.566 1.226-.685 1.681-.685.456 0 1.118.119 1.706.71l24.602 24.573c.596.596.685 1.322.685 1.702s-.089 1.106-.686 1.703l-9.184 9.185c-3.306 3.306-3.88 8.462-1.382 12.414 7.65 12.103 13.136 25.334 16.303 39.328 1.031 4.557 5.081 7.792 9.753 7.792h12.954c1.31 0 2.416 1.106 2.416 2.416v34.781z"}),(0,Zt.jsx)("path",{d:"m382.786 440.321c-3.905 3.905-3.905 10.237 0 14.143 1.953 1.952 4.512 2.929 7.071 2.929s5.118-.977 7.071-2.929l.028-.028c3.905-3.905 3.891-10.223-.015-14.128s-10.25-3.89-14.155.013z"}),(0,Zt.jsx)("path",{d:"m429.112 343.45-79.391 40.771c-6.73-6.97-16.16-11.318-26.591-11.318h-54.396c-3.046 0-3.79-.242-3.84-.259-.441-.232-1.835-1.542-2.954-2.594l-.496-.466c-44.008-41.427-81.183-38.802-123.458-22.118-6.84 2.7-6.972 2.706-13.841 2.999l-12.3.009c-3.504-10.571-13.476-18.221-25.207-18.221h-39.996c-14.627 0-26.526 11.913-26.526 26.555v104.969c0 14.626 11.899 26.526 26.526 26.526h39.996c11.73 0 21.701-7.641 25.206-18.199h22.5c1.987 0 1.987 0 4.298.651.84.237 1.862.525 3.182.88l103.494 27.688c4.562 1.232 8.746 2.445 12.793 3.617 13.26 3.842 24.406 7.072 36.023 7.072 13.13 0 26.859-4.126 44.916-16.16.087-.058.174-.118.26-.179l19.758-14.089c4.497-3.207 5.543-9.451 2.336-13.948-3.207-4.498-9.453-5.543-13.947-2.336l-19.627 13.995c-26.204 17.429-37.331 14.207-64.153 6.435-4.132-1.197-8.404-2.435-13.165-3.721l-103.502-27.689c-1.212-.326-2.163-.594-2.943-.814-3.776-1.064-5.188-1.4-9.722-1.4h-21.152v-81.624h10.807c.144 0 .286-.003.43-.009l.57-.024c8.383-.358 10.728-.587 20.33-4.378 37.129-14.652 65.789-16.393 102.419 18.09l.495.465c6.26 5.883 9.865 8.279 20.491 8.279h54.396c6.384 0 11.951 3.544 14.853 8.765.031.058.067.113.099.171 1.296 2.397 2.034 5.139 2.034 8.051 0 9.351-7.619 16.958-16.985 16.958h-88.157c-5.522 0-10 4.477-10 10s4.478 10 10 10h88.157c20.394 0 36.985-16.579 36.985-36.958 0-2.77-.316-5.466-.896-8.063l79.028-40.585c7.48-3.84 17.708-3.428 22.786 4.812 4.492 7.263 2.021 16.917-5.744 22.453l-34.667 24.69c-4.499 3.204-5.549 9.448-2.345 13.947 1.951 2.739 5.029 4.2 8.154 4.2 2.007 0 4.033-.603 5.792-1.855l34.671-24.693c16.466-11.739 21.258-32.917 11.156-49.248-9.934-16.122-30.972-21.324-48.94-12.1zm-335.92 120.327c0 3.538-3.001 6.526-6.554 6.526h-39.996c-3.538 0-6.526-2.989-6.526-6.526v-104.968c0-3.614 2.928-6.555 6.526-6.555h39.996c3.553 0 6.554 3.001 6.554 6.555z"})]}),Gr=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 20 20",children:[(0,Zt.jsx)("path",{fillRule:"evenodd",d:"M22.53,4.33V19.68A31.08,31.08,0,0,0,12,17.76,31.08,31.08,0,0,0,1.43,19.68V4.33A31.08,31.08,0,0,0,12,6.25,31.08,31.08,0,0,0,22.53,4.33Z"}),(0,Zt.jsx)("rect",{width:"2",height:"2",x:"9.002",y:"13",rx:"1"}),(0,Zt.jsx)("path",{d:"M9.1 7.995a.905.905 0 111.8 0l-.35 3.507a.553.553 0 01-1.1 0L9.1 7.995z"})]}),Yr=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 24 24",children:[(0,Zt.jsx)("circle",{cx:"7",cy:"18",r:"1"}),(0,Zt.jsx)("path",{d:"m7.707 12.293c.391.391.391 1.023 0 1.414-.195.195-.451.293-.707.293s-.512-.098-.707-.293l-3-3c-.391-.391-.391-1.023 0-1.414l3-3c.391-.391 1.023-.391 1.414 0s.391 1.023 0 1.414l-2.293 2.293z"}),(0,Zt.jsx)("circle",{cx:"12",cy:"18",r:"1"}),(0,Zt.jsx)("circle",{cx:"17",cy:"18",r:"1"}),(0,Zt.jsx)("path",{d:"m20.707 10.707-3 3c-.195.195-.451.293-.707.293s-.512-.098-.707-.293c-.391-.391-.391-1.023 0-1.414l2.293-2.293-2.293-2.293c-.391-.391-.391-1.023 0-1.414s1.023-.391 1.414 0l3 3c.391.391.391 1.023 0 1.414z"}),(0,Zt.jsx)("path",{d:"m21 24h-18c-1.654 0-3-1.346-3-3v-18c0-1.654 1.346-3 3-3h18c1.654 0 3 1.346 3 3v18c0 1.654-1.346 3-3 3zm-18-22c-.552 0-1 .449-1 1v18c0 .551.448 1 1 1h18c.552 0 1-.449 1-1v-18c0-.551-.448-1-1-1z"})]}),Kr=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 490 490",children:[(0,Zt.jsx)("path",{d:"M245,490c135.31,0,245-109.69,245-245C490,109.69,380.31,0,245,0S0,109.69,0,245C0,380.31,109.69,490,245,490z M245,30.625 c118.207,0,214.375,96.168,214.375,214.375S363.207,459.375,245,459.375S30.625,363.207,30.625,245S126.793,30.625,245,30.625z"}),(0,Zt.jsx)("path",{d:"M137.499,304.69c15.674,0,29.948-6.083,40.611-16l78.128,36.678c-0.583,3.341-0.904,6.771-0.904,10.276 c0,32.913,26.782,59.695,59.695,59.695c32.913,0,59.695-26.782,59.695-59.695c0-32.913-26.782-59.695-59.695-59.695 c-18.454,0-34.978,8.422-45.937,21.621l-74.543-34.995c1.717-5.561,2.646-11.464,2.646-17.581c0-4.942-0.615-9.741-1.753-14.337 l75.93-35.646c10.906,11.704,26.437,19.043,43.657,19.043c32.913,0,59.695-26.782,59.695-59.695 c0-32.913-26.782-59.695-59.695-59.695c-32.913,0-59.695,26.782-59.695,59.695c0,4.681,0.559,9.232,1.583,13.606l-76.295,35.817 c-10.876-11.376-26.181-18.484-43.123-18.484c-32.913,0-59.695,26.782-59.695,59.695S104.586,304.69,137.499,304.69z M315.028,306.574c16.03,0,29.07,13.04,29.07,29.07c0,16.03-13.04,29.07-29.07,29.07c-16.03,0-29.07-13.04-29.07-29.07 C285.958,319.614,298.998,306.574,315.028,306.574z M315.028,125.291c16.03,0,29.07,13.039,29.07,29.07 c0,16.03-13.04,29.07-29.07,29.07c-16.03,0-29.07-13.04-29.07-29.07C285.958,138.331,298.998,125.291,315.028,125.291z M137.499,215.925c16.03,0,29.07,13.04,29.07,29.07s-13.039,29.07-29.07,29.07s-29.07-13.04-29.07-29.07 S121.468,215.925,137.499,215.925z"})]}),Xr=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 473.931 473.931",children:[(0,Zt.jsx)("circle",{cx:"236.966",cy:"236.966",r:"236.966"}),(0,Zt.jsx)("path",{fill:"#FFC50B",d:"M100.174,228.419c-0.228-0.67-0.797-1.156-1.489-1.257l-23.768-3.454l-10.634-21.538\r c-0.614-1.253-2.69-1.253-3.304,0l-10.634,21.538l-23.76,3.454c-0.696,0.101-1.272,0.587-1.489,1.257\r c-0.213,0.67-0.037,1.399,0.468,1.886l17.197,16.763l-4.056,23.67c-0.123,0.692,0.161,1.388,0.73,1.8s1.325,0.468,1.946,0.142\r l21.253-11.177l21.261,11.177c0.269,0.142,0.561,0.21,0.861,0.21c0.382,0,0.76-0.116,1.081-0.352\r c0.561-0.412,0.849-1.111,0.722-1.8l-4.052-23.67l17.197-16.763C100.212,229.819,100.388,229.086,100.174,228.419z"}),(0,Zt.jsx)("path",{fill:"#FFC50B",d:"M187.339,228.419c-0.221-0.67-0.797-1.156-1.489-1.257l-23.76-3.454l-10.634-21.538\r c-0.614-1.253-2.69-1.253-3.304,0l-10.634,21.538l-23.76,3.454c-0.696,0.101-1.272,0.587-1.489,1.257\r c-0.217,0.67-0.037,1.399,0.468,1.886l17.197,16.763l-4.064,23.67c-0.109,0.692,0.168,1.388,0.73,1.8\r c0.576,0.412,1.328,0.468,1.946,0.142l21.261-11.177l21.253,11.177c0.269,0.142,0.569,0.21,0.861,0.21\r c0.389,0,0.767-0.116,1.089-0.352c0.561-0.412,0.849-1.111,0.722-1.8l-4.056-23.67l17.197-16.763\r C187.376,229.819,187.559,229.086,187.339,228.419z"}),(0,Zt.jsx)("path",{fill:"#FFC50B",d:"M275.409,228.419c-0.221-0.67-0.797-1.156-1.489-1.257l-23.76-3.454l-10.634-21.538\r c-0.614-1.253-2.69-1.253-3.304,0l-10.634,21.538l-23.756,3.454c-0.696,0.101-1.272,0.587-1.489,1.257\r c-0.217,0.67-0.045,1.399,0.468,1.886l17.197,16.763l-4.064,23.67c-0.116,0.692,0.168,1.388,0.73,1.8\r c0.569,0.412,1.328,0.468,1.946,0.142l21.261-11.177l21.261,11.177c0.262,0.142,0.561,0.21,0.857,0.21\r c0.382,0,0.767-0.116,1.081-0.352c0.561-0.412,0.857-1.111,0.73-1.8l-4.056-23.67l17.197-16.763\r C275.446,229.819,275.629,229.086,275.409,228.419z"}),(0,Zt.jsx)("path",{fill:"#FFC50B",d:"M360.822,228.419c-0.213-0.67-0.789-1.156-1.482-1.257l-23.76-3.454l-10.634-21.538\r c-0.621-1.253-2.69-1.253-3.304,0l-10.634,21.538l-23.76,3.454c-0.703,0.101-1.272,0.587-1.489,1.257\r c-0.217,0.67-0.045,1.399,0.46,1.886l17.205,16.763l-4.064,23.67c-0.116,0.692,0.161,1.388,0.73,1.8s1.325,0.468,1.946,0.142\r l21.261-11.177l21.253,11.177c0.269,0.142,0.561,0.21,0.861,0.21c0.382,0,0.76-0.116,1.081-0.352c0.561-0.412,0.849-1.111,0.73-1.8\r l-4.056-23.67l17.197-16.763C360.855,229.819,361.039,229.086,360.822,228.419z"}),(0,Zt.jsx)("path",{fill:"#fff",d:"M447.997,228.419c-0.221-0.67-0.804-1.156-1.489-1.257l-23.768-3.454l-10.634-21.538\r c-0.614-1.253-2.683-1.253-3.304,0l-10.627,21.538l-23.768,3.454c-0.696,0.101-1.272,0.587-1.489,1.257\r c-0.217,0.67-0.037,1.399,0.468,1.886l17.197,16.763l-4.056,23.67c-0.116,0.692,0.161,1.388,0.73,1.8s1.325,0.468,1.938,0.142\r l21.261-11.177l21.261,11.177c0.269,0.142,0.561,0.21,0.861,0.21c0.382,0,0.76-0.116,1.081-0.352\r c0.561-0.412,0.849-1.111,0.722-1.8l-4.049-23.67l17.19-16.763C448.035,229.819,448.21,229.086,447.997,228.419z"})]}),Qr=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 24 24",children:(0,Zt.jsx)("path",{d:"m18.85 10.39 1.06-1.06c.78-.78.78-2.05 0-2.83L18.5 5.09c-.78-.78-2.05-.78-2.83 0l-1.06 1.06 4.24 4.24zm-4.24 1.42L7.41 19H6v-1.41l7.19-7.19 1.42 1.41zm-1.42-4.25L4 16.76V21h4.24l9.19-9.19-4.24-4.25zM19 17.5c0 2.19-2.54 3.5-5 3.5-.55 0-1-.45-1-1s.45-1 1-1c1.54 0 3-.73 3-1.5 0-.47-.48-.87-1.23-1.2l1.48-1.48c1.07.63 1.75 1.47 1.75 2.68zM4.58 13.35C3.61 12.79 3 12.06 3 11c0-1.8 1.89-2.63 3.56-3.36C7.59 7.18 9 6.56 9 6c0-.41-.78-1-2-1-1.26 0-1.8.61-1.83.64-.35.41-.98.46-1.4.12a.992.992 0 0 1-.15-1.38C3.73 4.24 4.76 3 7 3s4 1.32 4 3c0 1.87-1.93 2.72-3.64 3.47C6.42 9.88 5 10.5 5 11c0 .31.43.6 1.07.86l-1.49 1.49z"})}),Zr=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 237.1 300",children:[(0,Zt.jsx)("path",{d:"M117.9,0c14.1-0.7,27.3,7.4,32.3,20.7c8.7,1.2,21.6-2.4,28.5,3.4c2.1,4.7,0.4,10.3,0.8,15.4c16.5,0.7,35.7-4.4,48.7,8.6 c11.9,12,8.1,29.6,8.7,44.9c0,41.7,0,83.4,0,125.1c0,15.4,0,30.8,0,46.1c2.1,27.1-15.3,38-40.6,35.8c-45.5,0-90.9,0-136.4,0.1 c-17.5-1.1-37.9,4.5-52-8.8c-9.1-9.7-7.4-23-7.6-35.3c0-13.2,0-26.3,0-39.5c0-41.5,0-83.1,0-124.6c-1.1-22.5-0.1-50.5,28.7-52.4 c9.6,0,19.3,0,28.9,0.1c0.2-4.7-1.3-12.6,1-15.9c7.8-4.8,18.8-1.4,27.7-2.3C90.3,7.8,104.2-0.8,117.9,0z M102.3,21.9 c-2.2,3.3-3.3,7-4.6,10.7c-4.7,5.9-18,2.1-25.2,3.4c0,9.3,0,18.5,0,28.1c30.5,0,61,0,92.4,0c0-9.3,0-18.5,0-28.1 c-8-0.9-18,1.8-24.8-2c-1.7-1.8-2.2-3.1-2.9-5.5C133,12.5,112.1,8.8,102.3,21.9z M18.6,59.9c-5,7.2-2.9,16-3.3,24.2 c0,12.2,0,24.5,0,36.7c0,38.6,0,77.1,0,115.7c1.3,11.6-3.3,35.6,3.3,43.9c5,5,11.7,5,18.3,4.8c12.2,0,24.4,0,36.6,0 c34,0,68,0,102,0.1c14.3-1.5,31.3,4.3,43.4-5.1c5.8-8.6,1.7-20.4,2.9-30.2c0-44.1,0-88.2,0-132.3c0-11.5,0-23.1,0-34.6 c-0.4-8.8,1.8-18.2-4.9-25c-8.7-7.5-26.2-2.7-37.4-4c-0.8,9.3,3.4,26.6-11.4,24.6c-19.8,0.1-39.5,0.1-59.3,0.1 c-11.9,0-23.7,0-35.6,0.1c-9.9,0.1-9.9,0.1-13.6-2.6c-2.9-6.9-1-14.9-1.8-22.2C44.9,55.3,28.6,49.4,18.6,59.9z"}),(0,Zt.jsx)("path",{d:"M193.2,135h-81.4c-4.4,0-7.9-3.5-7.9-7.9v0c0-4.4,3.5-7.9,7.9-7.9h81.4c4.4,0,7.9,3.5,7.9,7.9v0 C201.1,131.5,197.5,135,193.2,135z"}),(0,Zt.jsx)("path",{d:"M193.2,190.8h-81.4c-4.4,0-7.9-3.5-7.9-7.9v0c0-4.4,3.5-7.9,7.9-7.9h81.4c4.4,0,7.9,3.5,7.9,7.9v0 C201.1,187.3,197.5,190.8,193.2,190.8z"}),(0,Zt.jsx)("path",{d:"M193.2,246.6h-81.4c-4.4,0-7.9-3.5-7.9-7.9v0c0-4.4,3.5-7.9,7.9-7.9h81.4c4.4,0,7.9,3.5,7.9,7.9v0 C201.1,243.1,197.5,246.6,193.2,246.6z"}),(0,Zt.jsx)("path",{d:"M40.2,131.9c-2.5-2.5-2.5-6.6,0-9.1l0,0c2.5-2.5,6.6-2.5,9.1,0l7.7,7.7c0.4,0.4,1.1,0.4,1.5,0l22.2-22.2 c2.5-2.5,6.6-2.5,9.1,0l0,0c2.5,2.5,2.5,6.6,0,9.1l-29.3,29.3c-1.5,1.5-3.9,1.5-5.5,0L40.2,131.9z"}),(0,Zt.jsx)("path",{d:"M40.2,187.7c-2.5-2.5-2.5-6.6,0-9.1l0,0c2.5-2.5,6.6-2.5,9.1,0l7.7,7.7c0.4,0.4,1.1,0.4,1.5,0l22.2-22.2 c2.5-2.5,6.6-2.5,9.1,0l0,0c2.5,2.5,2.5,6.6,0,9.1l-29.3,29.3c-1.5,1.5-3.9,1.5-5.5,0L40.2,187.7z"}),(0,Zt.jsx)("path",{d:"M40.2,243.5c-2.5-2.5-2.5-6.6,0-9.1l0,0c2.5-2.5,6.6-2.5,9.1,0l7.7,7.7c0.4,0.4,1.1,0.4,1.5,0l22.2-22.2 c2.5-2.5,6.6-2.5,9.1,0l0,0c2.5,2.5,2.5,6.6,0,9.1l-29.3,29.3c-1.5,1.5-3.9,1.5-5.5,0L40.2,243.5z"})]}),Jr=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 505.4 505.4",children:(0,Zt.jsx)("path",{d:"M437.1,233.45c14.8-10.4,24.6-27.7,24.6-47.2c0-31.9-25.8-57.7-57.7-57.7c-31.9,0-57.7,25.8-57.7,57.7 c0,19.5,9.7,36.8,24.6,47.2c-12.7,4.4-24.3,11.2-34.1,20c-13.5-11.5-29.4-20.3-46.8-25.5c21.1-12.8,35.3-36.1,35.3-62.6 c0-40.4-32.7-73.1-73.1-73.1c-40.4,0-73.1,32.8-73.1,73.1c0,26.5,14.1,49.8,35.3,62.6c-17.2,5.2-32.9,13.9-46.3,25.2 c-9.8-8.6-21.2-15.3-33.7-19.6c14.8-10.4,24.6-27.7,24.6-47.2c0-31.9-25.8-57.7-57.7-57.7s-57.7,25.8-57.7,57.7 c0,19.5,9.7,36.8,24.6,47.2C28.5,247.25,0,284.95,0,329.25v6.6c0,0.2,0.2,0.4,0.4,0.4h122.3c-0.7,5.5-1.1,11.2-1.1,16.9v6.8 c0,29.4,23.8,53.2,53.2,53.2h155c29.4,0,53.2-23.8,53.2-53.2v-6.8c0-5.7-0.4-11.4-1.1-16.9H505c0.2,0,0.4-0.2,0.4-0.4v-6.6 C505.2,284.85,476.8,247.15,437.1,233.45z M362.3,186.15c0-23,18.7-41.7,41.7-41.7s41.7,18.7,41.7,41.7 c0,22.7-18.3,41.2-40.9,41.7c-0.3,0-0.5,0-0.8,0s-0.5,0-0.8,0C380.5,227.45,362.3,208.95,362.3,186.15z M194.9,165.35 c0-31.5,25.6-57.1,57.1-57.1s57.1,25.6,57.1,57.1c0,30.4-23.9,55.3-53.8,57c-1.1,0-2.2,0-3.3,0c-1.1,0-2.2,0-3.3,0 C218.8,220.65,194.9,195.75,194.9,165.35z M59.3,186.15c0-23,18.7-41.7,41.7-41.7s41.7,18.7,41.7,41.7c0,22.7-18.3,41.2-40.9,41.7 c-0.3,0-0.5,0-0.8,0s-0.5,0-0.8,0C77.6,227.45,59.3,208.95,59.3,186.15z M125.5,320.15H16.2c4.5-42.6,40.5-76,84.2-76.3 c0.2,0,0.4,0,0.6,0s0.4,0,0.6,0c20.8,0.1,39.8,7.8,54.5,20.3C141.7,279.75,131,298.95,125.5,320.15z M366.8,359.95 c0,20.5-16.7,37.2-37.2,37.2h-155c-20.5,0-37.2-16.7-37.2-37.2v-6.8c0-62.1,49.6-112.9,111.3-114.7c1.1,0.1,2.3,0.1,3.4,0.1 s2.3,0,3.4-0.1c61.7,1.8,111.3,52.6,111.3,114.7V359.95z M378.7,320.15c-5.5-21.1-16-40-30.3-55.6c14.8-12.8,34-20.5,55-20.7 c0.2,0,0.4,0,0.6,0s0.4,0,0.6,0c43.7,0.3,79.7,33.7,84.2,76.3H378.7z"})}),ei=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 24 24",children:(0,Zt.jsx)("path",{d:"M5.25 6C4.00736 6 3 7.00736 3 8.25V15.75C3 16.9926 4.00736 18 5.25 18H14.25C15.4926 18 16.5 16.9926 16.5 15.75V13.6013L19.7699 16.3262C19.9934 16.5125 20.3046 16.5526 20.5681 16.4292C20.8317 16.3058 21 16.041 21 15.75V8.25C21 7.95899 20.8317 7.69424 20.5681 7.57081C20.3046 7.44737 19.9934 7.48753 19.7699 7.67383L16.5 10.3987V8.25C16.5 7.00736 15.4926 6 14.25 6H5.25Z"})}),ti=(0,Zt.jsx)("svg",{...cr,version:"1.1",x:"0px",y:"0px",width:"46.47px",height:"46.47px",viewBox:"0 0 46.47 46.47",children:(0,Zt.jsx)("path",{d:"M3.445,6.322c0-3.423,2.777-6.201,6.201-6.201c3.423,0,6.2,2.777,6.2,6.201c0,3.426-2.777,6.203-6.2,6.203 C6.222,12.524,3.445,9.748,3.445,6.322z M31.562,6.322c0-3.423,2.78-6.201,6.203-6.201s6.201,2.777,6.201,6.201 c0,3.426-2.777,6.203-6.201,6.203C34.343,12.524,31.562,9.748,31.562,6.322z M46.223,31.72 C42.38,40.607,33.38,46.349,23.294,46.349c-10.301,0-19.354-5.771-23.064-14.703c-0.636-1.53,0.089-3.286,1.62-3.922 c0.376-0.155,0.766-0.229,1.15-0.229c1.176,0,2.292,0.696,2.771,1.851c2.777,6.685,9.655,11.004,17.523,11.004 c7.69,0,14.528-4.322,17.421-11.012c0.658-1.521,2.424-2.222,3.943-1.562C46.181,28.433,46.881,30.199,46.223,31.72z"})}),ni=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 24 24",children:(0,Zt.jsx)("path",{d:"m17.75 6v12c0 1.517-1.233 2.75-2.75 2.75h-6c-1.517 0-2.75-1.233-2.75-2.75v-12c0-1.517 1.233-2.75 2.75-2.75h6c1.517 0 2.75 1.233 2.75 2.75zm1.43-.74c.05.24.07.49.07.74v12c0 .25-.02.5-.07.74 1.44-.09 2.57-1.28 2.57-2.74v-8c0-1.46-1.13-2.65-2.57-2.74zm-14.36 0c-1.44.09-2.57 1.28-2.57 2.74v8c0 1.46 1.13 2.65 2.57 2.74-.05-.24-.07-.49-.07-.74v-12c0-.25.02-.5.07-.74z"})}),ri=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 640 640",children:(0,Zt.jsx)("path",{d:"M64 136C64 122.8 74.7 112 88 112L136 112C149.3 112 160 122.7 160 136L160 240L184 240C197.3 240 208 250.7 208 264C208 277.3 197.3 288 184 288L88 288C74.7 288 64 277.3 64 264C64 250.7 74.7 240 88 240L112 240L112 160L88 160C74.7 160 64 149.3 64 136zM94.4 365.2C105.8 356.6 119.7 352 134 352L138.9 352C172.6 352 200 379.4 200 413.1C200 432.7 190.6 451 174.8 462.5L150.8 480L184 480C197.3 480 208 490.7 208 504C208 517.3 197.3 528 184 528L93.3 528C77.1 528 64 514.9 64 498.7C64 489.3 68.5 480.5 76.1 475L146.6 423.7C150 421.2 152 417.3 152 413.1C152 405.9 146.1 400 138.9 400L134 400C130.1 400 126.3 401.3 123.2 403.6L102.4 419.2C91.8 427.2 76.8 425 68.8 414.4C60.8 403.8 63 388.8 73.6 380.8L94.4 365.2zM288 128L544 128C561.7 128 576 142.3 576 160C576 177.7 561.7 192 544 192L288 192C270.3 192 256 177.7 256 160C256 142.3 270.3 128 288 128zM288 288L544 288C561.7 288 576 302.3 576 320C576 337.7 561.7 352 544 352L288 352C270.3 352 256 337.7 256 320C256 302.3 270.3 288 288 288zM288 448L544 448C561.7 448 576 462.3 576 480C576 497.7 561.7 512 544 512L288 512C270.3 512 256 497.7 256 480C256 462.3 270.3 448 288 448z"})}),ii=(0,Zt.jsx)("svg",{...cr,height:"30",viewBox:"0 0 24 24",width:"30",children:(0,Zt.jsxs)("g",{id:"Layer_2","data-name":"Layer 2",children:[(0,Zt.jsx)("rect",{height:"11.5",rx:"1.25",width:"5.5",x:"1.25",y:"10.25"}),(0,Zt.jsx)("rect",{height:"15.5",rx:"1.25",width:"5.5",x:"9.25",y:"6.25"}),(0,Zt.jsx)("rect",{height:"19.5",rx:"1.25",width:"5.5",x:"17.25",y:"2.25"})]})}),oi=(0,Zt.jsxs)("svg",{...cr,width:"30",height:"30",viewBox:"0 0 20 20",children:[(0,Zt.jsx)("rect",{x:"0",fill:"none",width:"20",height:"20"}),(0,Zt.jsx)("g",{children:(0,Zt.jsx)("path",{d:"M4 3h12c.55 0 1.02.2 1.41.59S18 4.45 18 5v7c0 .55-.2 1.02-.59 1.41S16.55 14 16 14h-1l-5 5v-5H4c-.55 0-1.02-.2-1.41-.59S2 12.55 2 12V5c0-.55.2-1.02.59-1.41S3.45 3 4 3zm11 2H4v1h11V5zm1 3H4v1h12V8zm-3 3H4v1h9v-1z"})})]}),si=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 102.05 102.05",children:[(0,Zt.jsx)("path",{d:"m76.97 21.58-19.76 19.76-2.67 7.74 7.75-2.66 19.76-19.76z"}),(0,Zt.jsx)("rect",{height:"5.28",rx:"2.12",width:"20.83",x:"22.51",y:"72.13"}),(0,Zt.jsx)("path",{d:"m81.58 15.87h5.17v7.19h-5.17z",transform:"matrix(.707 -.707 .707 .707 10.89 65.21)"}),(0,Zt.jsxs)("g",{children:[(0,Zt.jsx)("path",{d:"m76.18 43.76a2 2 0 0 0 -2 2v42h-61.49v-66h51.11a2 2 0 0 0 0-4h-53.11a2 2 0 0 0 -2 2v70a2 2 0 0 0 2 2h65.49a2 2 0 0 0 2-2v-44a2 2 0 0 0 -2-2z"}),(0,Zt.jsx)("path",{d:"m24.63 68.13a6.13 6.13 0 0 0 -6.12 6.12v1a6.13 6.13 0 0 0 6.12 6.12h16.59a6.13 6.13 0 0 0 6.12-6.12v-1a6.13 6.13 0 0 0 -6.12-6.12zm18.71 6.12v1a2.12 2.12 0 0 1 -2.12 2.12h-16.59a2.12 2.12 0 0 1 -2.12-2.12v-1a2.12 2.12 0 0 1 2.12-2.12h16.59a2.12 2.12 0 0 1 2.12 2.12z"}),(0,Zt.jsx)("path",{d:"m53 33.73a2 2 0 1 0 0-4h-32.49a2 2 0 0 0 -2 2v10.1a2 2 0 0 0 2 2h25.22a2 2 0 1 0 0-4h-23.22v-6.1z"}),(0,Zt.jsx)("path",{d:"m68.35 60.82v-5.33a2 2 0 0 0 -4 0v3.33h-41.84v-6.1h20.65a2 2 0 0 0 0-4h-22.65a2 2 0 0 0 -2 2v10.1a2 2 0 0 0 2 2h45.84a2 2 0 0 0 2-2z"}),(0,Zt.jsx)("path",{d:"m92.78 18.76-7.92-7.91a2 2 0 0 0 -2.82 0l-28 28a2.11 2.11 0 0 0 -.47.77l-4.14 12.04a2 2 0 0 0 .48 2.06 2 2 0 0 0 1.41.59 2.06 2.06 0 0 0 .68-.11l12-4.15a1.9 1.9 0 0 0 .76-.48l28-28a2 2 0 0 0 .02-2.81zm-30.49 27.66-7.75 2.66 2.67-7.74 19.79-19.76 5.08 5.08zm22.59-22.59-5.08-5.08 3.65-3.66 5.08 5.09z"})]})]}),ai=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 24 24",children:[(0,Zt.jsx)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,Zt.jsx)("path",{d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z"})]}),li=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 24 24",children:[(0,Zt.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2.5",fill:Bn,opacity:"0.12"}),(0,Zt.jsx)("rect",{x:"3",y:"3",width:"18",height:"5",rx:"2.5",fill:Bn}),(0,Zt.jsx)("circle",{cx:"6.5",cy:"12.5",r:"1.8",fill:Bn}),(0,Zt.jsx)("path",{d:"M5.7 12.6l0.6 0.7 1.4-1.5-0.6-0.5-0.8 0.9-0.2-0.2-0.4 0.6z",fill:"#ffffff"}),(0,Zt.jsx)("rect",{x:"9.6",y:"11.6",width:"8.8",height:"1.8",rx:"0.6",fill:Bn,opacity:"0.7"}),(0,Zt.jsx)("circle",{cx:"6.5",cy:"17",r:"1.8",fill:Bn}),(0,Zt.jsx)("path",{d:"M5.7 17.1l0.6 0.7 1.4-1.5-0.6-0.5-0.8 0.9-0.2-0.2-0.4 0.6z",fill:"#ffffff"}),(0,Zt.jsx)("rect",{x:"9.6",y:"16.1",width:"6.5",height:"1.8",rx:"0.6",fill:Bn,opacity:"0.7"})]}),ci=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 24 24",children:[(0,Zt.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2.5",fill:Bn,opacity:"0.12"}),(0,Zt.jsx)("rect",{x:"4.5",y:"6",width:"4",height:"4",rx:"1",fill:Bn}),(0,Zt.jsx)("path",{d:"M5.2 8l0.7 0.8 1.6-1.7-0.7-0.6-0.9 1-0.3-0.3z",fill:"#ffffff"}),(0,Zt.jsx)("rect",{x:"10.5",y:"7",width:"8",height:"2",rx:"1",fill:Bn,opacity:"0.7"}),(0,Zt.jsx)("rect",{x:"4.5",y:"14",width:"4",height:"4",rx:"1",fill:Bn}),(0,Zt.jsx)("path",{d:"M5.2 16l0.7 0.8 1.6-1.7-0.7-0.6-0.9 1-0.3-0.3z",fill:"#ffffff"}),(0,Zt.jsx)("rect",{x:"10.5",y:"15",width:"8",height:"2",rx:"1",fill:Bn,opacity:"0.7"})]}),di=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 640 640",children:(0,Zt.jsx)("path",{d:"M342.6 105.4C330.1 92.9 309.8 92.9 297.3 105.4L137.3 265.4C124.8 277.9 124.8 298.2 137.3 310.7C149.8 323.2 170.1 323.2 182.6 310.7L320 173.3L457.4 310.6C469.9 323.1 490.2 323.1 502.7 310.6C515.2 298.1 515.2 277.8 502.7 265.3L342.7 105.3zM502.6 457.4L342.6 297.4C330.1 284.9 309.8 284.9 297.3 297.4L137.3 457.4C124.8 469.9 124.8 490.2 137.3 502.7C149.8 515.2 170.1 515.2 182.6 502.7L320 365.3L457.4 502.6C469.9 515.1 490.2 515.1 502.7 502.6C515.2 490.1 515.2 469.8 502.7 457.3z"})}),ui=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 512.006 512.006",children:(0,Zt.jsxs)("g",{children:[(0,Zt.jsx)("path",{d:"m324.174 93.201 3.882 14.489c2.144 8.002 10.366 12.75 18.371 10.607 8.002-2.144 12.75-10.369 10.606-18.371l-7.765-28.978c-2.145-8.002-10.368-12.751-18.371-10.607l-289.777 77.646c-3.843 1.03-7.119 3.544-9.108 6.989s-2.528 7.54-1.499 11.382l7.765 28.978c2.134 7.963 10.33 12.761 18.371 10.606 8.002-2.144 12.75-10.369 10.606-18.371l-3.882-14.489 86.934-23.294 54.352 202.844-14.489 3.883c-8.002 2.144-12.75 10.369-10.606 18.371s10.368 12.751 18.371 10.606l115.911-31.058c8.002-2.144 12.751-10.369 10.606-18.371-2.151-8.029-10.393-12.744-18.371-10.607l-14.489 3.882-54.352-202.843z"}),(0,Zt.jsx)("path",{d:"m461.803 367.785c-24.295-13.74-52.521-17.328-79.448-10.113l-228.143 60.595c-48.557 13.01-100.51-8.021-126.341-51.145-4.258-7.107-13.47-9.417-20.576-5.16-7.107 4.257-9.417 13.469-5.16 20.576 16.119 26.909 40.008 47.354 69.084 59.125 17.287 6.998 35.384 10.518 53.583 10.517 12.411 0 24.872-1.638 37.144-4.927l228.143-60.595c39.675-10.628 81.164 12.838 92.497 52.311 2.286 7.963 10.594 12.565 18.557 10.278 7.962-2.286 12.564-10.594 10.278-18.557-7.703-26.826-25.324-49.166-49.618-62.905z"})]})}),hi=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 512 512",children:(0,Zt.jsx)("g",{id:"Layer_2_00000082364357583340289580000016949097236183363201_",children:(0,Zt.jsx)("g",{id:"Layer_copy_7",children:(0,Zt.jsxs)("g",{id:"_115",children:[(0,Zt.jsx)("path",{d:"m378.2 389.8h-244.4c-73.8 0-133.8-60-133.8-133.8s60-133.8 133.8-133.8h244.5c73.8 0 133.8 60 133.8 133.8s-60.1 133.8-133.9 133.8zm-244.4-248.5c-63.3.6-114.2 52.4-113.6 115.8.6 62.5 51.1 113 113.6 113.6h244.5c63.3-.6 114.2-52.4 113.6-115.8-.6-62.5-51.1-113-113.6-113.6z"}),(0,Zt.jsx)("path",{d:"m376.5 355.1c-54.7 0-99.1-44.3-99.1-99.1s44.3-99.1 99.1-99.1 99.1 44.3 99.1 99.1c-.1 54.7-44.4 99-99.1 99.1zm0-179.1c-44.2 0-80 35.8-80 80s35.8 80 80 80 80-35.8 80-80-35.8-80-80-80z"})]})})})}),pi=(0,Zt.jsx)("svg",{...cr,fill:"currentColor",viewBox:"0 0 16 16",id:"tabs",children:(0,Zt.jsx)("path",{d:"M14 4V2H0v12h16V4h-2zm-4-1h3v1h-3V3zM6 3h3v1H6V3zm9 10H1V3h4v2h10v8z"})}),fi=(0,Zt.jsx)("svg",{...cr,viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:(0,Zt.jsx)("path",{d:"m202.9 251.7-97.1-154.1c-1.5-2.3-4-3.7-6.8-3.7h-91c-6.3 0-10.1 7-6.8 12.3l94.4 149.8-94.4 149.8c-3.4 5.3.5 12.3 6.8 12.3h91c2.8 0 5.3-1.4 6.8-3.7l97.1-154.1c1.6-2.6 1.6-6 0-8.6zm-108.3 150.4h-72.1l89.3-141.8c1.6-2.6 1.6-5.9 0-8.5l-89.3-141.9h72.1l92 146.1zm262.2-150.4-97-154.1c-1.5-2.3-4-3.7-6.8-3.7h-91c-6.3 0-10.1 7-6.8 12.3l94.4 149.8-94.4 149.8c-3.4 5.3.5 12.3 6.8 12.3h91c2.8 0 5.3-1.4 6.8-3.7l97.1-154.1c1.6-2.6 1.6-6-.1-8.6zm-108.2 150.4h-72.1l89.3-141.8c1.6-2.6 1.6-5.9 0-8.5l-89.3-141.8h72.1l92 146.1zm262.2-150.4-97.1-154.1c-1.5-2.3-4-3.7-6.8-3.7h-91c-6.3 0-10.1 7-6.8 12.3l94.4 149.8-94.4 149.8c-3.4 5.3.5 12.3 6.8 12.3h91c2.8 0 5.3-1.4 6.8-3.7l97.1-154.1c1.6-2.6 1.6-6 0-8.6zm-108.3 150.4h-72.1l89.3-141.8c1.6-2.6 1.6-5.9 0-8.5l-89.3-141.8h72.1l92 146.1z"})}),gi=(0,Zt.jsx)("svg",{...cr,viewBox:"42.5 101.81 427 308.39",children:(0,Zt.jsx)("g",{children:(0,Zt.jsx)("path",{d:"M42.5,149.249h23.722v142.335H42.5V149.249z M89.943,315.305h23.723V125.527H89.943V315.305z M137.389,339.027h237.223 V101.805H137.389V339.027z M398.334,315.305h23.723V125.527h-23.723V315.305z M445.778,149.249v142.335H469.5V149.249H445.778z M256,386.473c-6.557,0-11.861,5.281-11.861,11.861c0,6.531,5.305,11.861,11.861,11.861s11.861-5.33,11.861-11.861 C267.861,391.754,262.557,386.473,256,386.473z M184.834,386.473c-6.557,0-11.863,5.281-11.863,11.861 c0,6.531,5.307,11.861,11.863,11.861c6.555,0,11.86-5.33,11.86-11.861C196.694,391.754,191.389,386.473,184.834,386.473z M327.166,386.473c-6.555,0-11.86,5.281-11.86,11.861c0,6.531,5.306,11.861,11.86,11.861c6.557,0,11.863-5.33,11.863-11.861 C339.029,391.754,333.723,386.473,327.166,386.473z"})})}),mi=(0,Zt.jsxs)("svg",{...cr,width:"1em",height:"1em",viewBox:"0 0 32 32",size:"24",children:[(0,Zt.jsx)("path",{fillRule:"evenodd",d:"M1.6 10.1a.033.033 0 0 0-.033.033v16.534c0 .018.015.033.033.033h24a.033.033 0 0 0 .033-.033V10.133a.033.033 0 0 0-.033-.033zm-1.033.033c0-.57.462-1.033 1.033-1.033h24c.57 0 1.033.463 1.033 1.033v16.534c0 .57-.462 1.033-1.033 1.033h-24c-.57 0-1.033-.463-1.033-1.033z",clipRule:"evenodd"}),(0,Zt.jsx)("path",{fillRule:"evenodd",d:"M2.167 7.467a.5.5 0 0 1 .5-.5h24c1.16 0 2.1.94 2.1 2.1v17.066a.5.5 0 1 1-1 0V9.067a1.1 1.1 0 0 0-1.1-1.1h-24a.5.5 0 0 1-.5-.5",clipRule:"evenodd"}),(0,Zt.jsx)("path",{fillRule:"evenodd",d:"M3.767 5.333a.5.5 0 0 1 .5-.5H27.2a3.7 3.7 0 0 1 3.7 3.7v16a.5.5 0 1 1-1 0v-16a2.7 2.7 0 0 0-2.7-2.7H4.267a.5.5 0 0 1-.5-.5",clipRule:"evenodd"})]}),bi=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 24 24",children:[(0,Zt.jsx)("circle",{cx:"4.5",cy:"12",r:"2.5"}),(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"2.5"}),(0,Zt.jsx)("circle",{cx:"19.5",cy:"12",r:"2.5",opacity:"0.55"}),(0,Zt.jsx)("path",{d:"M7.2 12h1.6v.6H7.2V12zm0-.6h1.6V12H7.2v-.6z",fill:"none",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeDasharray:"1.6 1.4"}),(0,Zt.jsx)("path",{d:"M7 12h2.5",fill:"none",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"}),(0,Zt.jsx)("path",{d:"M14.5 12H17",fill:"none",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeDasharray:"1.6 1.4",opacity:"0.7"}),(0,Zt.jsx)("text",{x:"4.5",y:"13.2",textAnchor:"middle",fontSize:"3.2",fontWeight:"700",fill:"#ffffff",children:"1"}),(0,Zt.jsx)("text",{x:"12",y:"13.2",textAnchor:"middle",fontSize:"3.2",fontWeight:"700",fill:"#ffffff",children:"2"}),(0,Zt.jsx)("text",{x:"19.5",y:"13.2",textAnchor:"middle",fontSize:"3.2",fontWeight:"700",fill:"#ffffff",opacity:"0.85",children:"3"})]}),vi=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 24 24",children:[(0,Zt.jsx)("rect",{x:"2",y:"7",width:"20",height:"10",rx:"3",fill:Bn,opacity:"0.9"}),(0,Zt.jsx)("circle",{cx:"7.5",cy:"12",r:"2.6",fill:"#fff"}),(0,Zt.jsx)("path",{d:"M6.6 10.7v2.6l2.3-1.3z",fill:Bn}),(0,Zt.jsx)("rect",{x:"12",y:"9.3",width:"1.4",height:"5.4",rx:"0.7",fill:"#fff",opacity:"0.95"}),(0,Zt.jsx)("rect",{x:"14.4",y:"10.6",width:"1.4",height:"2.8",rx:"0.7",fill:"#fff",opacity:"0.85"}),(0,Zt.jsx)("rect",{x:"16.8",y:"8.6",width:"1.4",height:"6.8",rx:"0.7",fill:"#fff",opacity:"0.95"}),(0,Zt.jsx)("rect",{x:"19.2",y:"10.2",width:"1.4",height:"3.6",rx:"0.7",fill:"#fff",opacity:"0.8"})]}),yi=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 24 24",children:[(0,Zt.jsx)("path",{d:"M4 4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4zm0 2h16v12H4V6z"}),(0,Zt.jsx)("path",{d:"M6 8h12v1.4H6V8zm0 3h12v1.4H6V11zm0 3h7v1.4H6V14z",opacity:"0.7"}),(0,Zt.jsx)("path",{d:"M13 14h5v1.4h-5V14z",opacity:"0.25"}),(0,Zt.jsx)("path",{d:"M12 21l-3.5-3.5h7L12 21z"})]}),wi=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 24 24",children:[(0,Zt.jsx)("path",{d:"M3 4a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4zm2 0v3h14V4H5zm0 5v11h14V9H5z"}),(0,Zt.jsx)("circle",{cx:"6.5",cy:"5.5",r:"0.7",opacity:"0.6"}),(0,Zt.jsx)("circle",{cx:"8.7",cy:"5.5",r:"0.7",opacity:"0.6"}),(0,Zt.jsx)("circle",{cx:"10.9",cy:"5.5",r:"0.7",opacity:"0.6"}),(0,Zt.jsx)("path",{d:"M9.4 12.4l-2.6 2.6 2.6 2.6 1-1-1.6-1.6 1.6-1.6-1-1zm5.2 0l-1 1 1.6 1.6-1.6 1.6 1 1 2.6-2.6-2.6-2.6zm-2.1-0.4l-1.5 6.1 1.1 0.3 1.5-6.1-1.1-0.3z"})]}),xi=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 24 24",children:[(0,Zt.jsx)("path",{d:"M7.5 2h9A5.5 5.5 0 0 1 22 7.5v9A5.5 5.5 0 0 1 16.5 22h-9A5.5 5.5 0 0 1 2 16.5v-9A5.5 5.5 0 0 1 7.5 2zm0 2A3.5 3.5 0 0 0 4 7.5v9A3.5 3.5 0 0 0 7.5 20h9a3.5 3.5 0 0 0 3.5-3.5v-9A3.5 3.5 0 0 0 16.5 4h-9z"}),(0,Zt.jsx)("path",{d:"M12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10zm0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6z"}),(0,Zt.jsx)("circle",{cx:"17.3",cy:"6.7",r:"1.2"})]}),ki=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 24 24",children:[(0,Zt.jsx)("path",{d:"M12 2C7.86 2 4.5 5.36 4.5 9.5c0 5.55 7 12 7.3 12.27a.3.3 0 0 0 .4 0C12.5 21.5 19.5 15.05 19.5 9.5 19.5 5.36 16.14 2 12 2zm0 18.06c-1.62-1.6-6-6.27-6-10.56A6 6 0 0 1 12 3.5a6 6 0 0 1 6 6c0 4.29-4.38 8.95-6 10.56z"}),(0,Zt.jsx)("circle",{cx:"12",cy:"9.5",r:"2.5"}),(0,Zt.jsx)("path",{d:"M5.6 14.4l-2.4 5.6h17.6l-2.4-5.6-1.4.6 1.8 4H4.6l1.8-4-1.4-.6z",opacity:"0.35"})]}),_i=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 24 24",children:[(0,Zt.jsx)("path",{d:"M3 5a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2H5v12h1a1 1 0 0 1 0 2H4a1 1 0 0 1-1-1V5z",opacity:"0.85"}),(0,Zt.jsx)("path",{d:"M8 8h12v1.6H8V8zm0 3.4h12V13H8v-1.6zm0 3.4h8v1.6H8V14.8z",opacity:"0.55"}),(0,Zt.jsx)("path",{d:"M9.5 7.2C8.67 7.2 8 7.87 8 8.7v1.5c0 .83.67 1.5 1.5 1.5h.8c0 .83-.6 1.5-1.43 1.5V14.4c1.66 0 3-1.34 3-3V8.7c0-.83-.67-1.5-1.37-1.5H9.5zm5 0c-.83 0-1.5.67-1.5 1.5v1.5c0 .83.67 1.5 1.5 1.5h.8c0 .83-.6 1.5-1.43 1.5V14.4c1.66 0 3-1.34 3-3V8.7c0-.83-.67-1.5-1.37-1.5H14.5z"})]}),Ci=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 6.82666 6.82666",children:[(0,Zt.jsxs)("g",{fillRule:"nonzero",children:[(0,Zt.jsx)("path",{d:"m3.533.962028v4.906662h-.21333v-4.906662z"}),(0,Zt.jsx)("path",{d:"m4.03509 3.393.395.395 1.19472-1.19472.15083.15083-1.27014 1.27014-.07541.07542-.07542-.07542-.47042-.47042z"}),(0,Zt.jsx)("path",{d:"m4.03509 5.10953.395.395 1.19472-1.19472.15083.15083-1.27014 1.27014-.07541.07542-.07542-.07542-.47042-.47042z"}),(0,Zt.jsx)("path",{d:"m1.37758 5.57994 1.27014-1.27013.15084.15083-1.27014 1.27014z"}),(0,Zt.jsx)("path",{d:"m2.64772 5.73078-1.27014-1.27014.15084-.15083 1.27014 1.27013z"}),(0,Zt.jsx)("path",{d:"m4.03509 1.68227.395.395 1.19472-1.194719.15083.150839-1.27014 1.27013-.07541.07542-.07542-.07542-.47042-.47041z"}),(0,Zt.jsx)("path",{d:"m1.20185 1.68227.395.395 1.19472-1.194719.15084.150839-1.27014 1.27013-.07542.07542-.07542-.07542-.47041-.47041z"}),(0,Zt.jsx)("path",{d:"m1.20185 3.393.395.395 1.19472-1.19472.15084.15083-1.27014 1.27014-.07542.07542-.07542-.07542-.47041-.47042z"})]}),(0,Zt.jsx)("path",{d:"m0 0h6.827v6.827h-6.827z",fill:"none"})]}),Ti=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 24 24",children:[(0,Zt.jsx)("rect",{x:"3",y:"4",width:"18",height:"2",rx:"1",opacity:"0.35",fill:Bn}),(0,Zt.jsx)("rect",{x:"3",y:"11",width:"7",height:"2",rx:"1",fill:Bn}),(0,Zt.jsx)("rect",{x:"14",y:"11",width:"7",height:"2",rx:"1",fill:Bn}),(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"2.2",fill:Bn}),(0,Zt.jsx)("rect",{x:"3",y:"18",width:"18",height:"2",rx:"1",opacity:"0.35",fill:Bn})]}),Si=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 24 24",children:[(0,Zt.jsx)("rect",{x:"2",y:"3",width:"20",height:"18",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,Zt.jsx)("rect",{x:"2.8",y:"3.8",width:"18.4",height:"16.4",rx:"1.4",fill:Bn,opacity:"0.12"}),(0,Zt.jsx)("rect",{x:"8",y:"8",width:"8",height:"1.6",rx:"0.4",fill:Bn,opacity:"0.55"}),(0,Zt.jsx)("rect",{x:"5",y:"10.6",width:"14",height:"2.6",rx:"0.5",fill:Bn}),(0,Zt.jsx)("rect",{x:"6.5",y:"14.2",width:"11",height:"1.4",rx:"0.4",fill:Bn,opacity:"0.5"}),(0,Zt.jsx)("rect",{x:"8",y:"17",width:"3.8",height:"2.2",rx:"0.8",fill:Bn}),(0,Zt.jsx)("rect",{x:"12.3",y:"17",width:"3.8",height:"2.2",rx:"0.8",fill:"none",stroke:Bn,strokeWidth:"1.2"})]}),Ei=(0,Zt.jsx)("svg",{...cr,width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Zt.jsx)("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"})}),$i=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 24 24",children:[(0,Zt.jsx)("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6",opacity:"0.5"}),(0,Zt.jsx)("rect",{x:"3.5",y:"5.5",width:"8",height:"13",rx:"1",fill:Bn,opacity:"0.85"}),(0,Zt.jsx)("path",{d:"M5 13l1.8-2.2 1.4 1.7 1.6-2.4L11 13z",fill:"#fff",opacity:"0.9"}),(0,Zt.jsx)("circle",{cx:"6.4",cy:"8.6",r:"1",fill:"#fff",opacity:"0.9"}),(0,Zt.jsx)("rect",{x:"13.5",y:"7",width:"7",height:"1.6",rx:"0.8",fill:Bn,opacity:"0.5"}),(0,Zt.jsx)("rect",{x:"13.5",y:"10.4",width:"7",height:"1.4",rx:"0.7",fill:Bn,opacity:"0.35"}),(0,Zt.jsx)("rect",{x:"13.5",y:"13.4",width:"5",height:"1.4",rx:"0.7",fill:Bn,opacity:"0.35"})]}),Mi=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 24 24",children:[(0,Zt.jsx)("rect",{x:"2.5",y:"4",width:"8.5",height:"16",rx:"1.4",fill:Bn,opacity:"0.85"}),(0,Zt.jsx)("rect",{x:"13",y:"4",width:"8.5",height:"16",rx:"1.4",fill:Bn,opacity:"0.55"}),(0,Zt.jsx)("rect",{x:"4.3",y:"7",width:"4.2",height:"2.6",rx:"0.6",fill:"#fff",opacity:"0.95"}),(0,Zt.jsx)("rect",{x:"4.3",y:"11.2",width:"5",height:"1.1",rx:"0.55",fill:"#fff",opacity:"0.8"}),(0,Zt.jsx)("rect",{x:"14.8",y:"7",width:"4.2",height:"2.6",rx:"0.6",fill:"#fff",opacity:"0.95"}),(0,Zt.jsx)("rect",{x:"14.8",y:"11.2",width:"5",height:"1.1",rx:"0.55",fill:"#fff",opacity:"0.8"})]}),Li=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 24 24",children:[(0,Zt.jsx)("rect",{x:"2.5",y:"5",width:"19",height:"14",rx:"2",fill:Bn,opacity:"0.12"}),(0,Zt.jsx)("rect",{x:"2.5",y:"5",width:"8.5",height:"14",rx:"2",fill:Bn,opacity:"0.85"}),(0,Zt.jsx)("rect",{x:"13",y:"7.4",width:"6.6",height:"1.7",rx:"0.85",fill:Bn,opacity:"0.75"}),(0,Zt.jsx)("rect",{x:"13",y:"10.6",width:"6.6",height:"1.4",rx:"0.7",fill:Bn,opacity:"0.45"}),(0,Zt.jsx)("rect",{x:"13",y:"13.2",width:"5",height:"1.4",rx:"0.7",fill:Bn,opacity:"0.45"}),(0,Zt.jsx)("rect",{x:"13",y:"16",width:"3.6",height:"1.8",rx:"0.9",fill:Bn,opacity:"0.85"})]}),Ai=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 24 24",children:[(0,Zt.jsx)("path",{d:"M6 2.5h7l5 5v11a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-14a2 2 0 0 1 2-2z",fill:Bn,opacity:"0.85"}),(0,Zt.jsx)("path",{d:"M13 2.5l5 5h-4a1 1 0 0 1-1-1z",fill:"#fff",opacity:"0.55"}),(0,Zt.jsx)("path",{d:"M11 9.5v4m0 0l-2-2m2 2l2-2",fill:"none",stroke:"#fff",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Zt.jsx)("rect",{x:"7.5",y:"16",width:"7",height:"1.6",rx:"0.8",fill:"#fff",opacity:"0.9"})]}),Ri=(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 24 24",children:[(0,Zt.jsx)("rect",{x:"3",y:"5",width:"18",height:"16",rx:"2.5",fill:"none",stroke:"currentColor",strokeWidth:"1.4",opacity:"0.4"}),(0,Zt.jsx)("path",{d:"M3 9h18",stroke:"currentColor",strokeWidth:"1.4",opacity:"0.4"}),(0,Zt.jsx)("path",{d:"M8 3v3M16 3v3",stroke:Bn,strokeWidth:"1.6",strokeLinecap:"round"}),(0,Zt.jsx)("rect",{x:"6",y:"12",width:"5",height:"5",rx:"1",fill:Bn}),(0,Zt.jsx)("path",{d:"M13 13h5M13 16h3",stroke:Hn,strokeWidth:"1.4",strokeLinecap:"round",opacity:"0.6"})]}),Ni=(0,Zt.jsx)("svg",{...cr,stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:(0,Zt.jsx)("path",{d:"M13.5 2h-12l-.5.5v11l.5.5h12l.5-.5v-11l-.5-.5zM2 3h11v1H2V3zm7 4H6V5h3v2zm0 1v2H6V8h3zM2 5h3v2H2V5zm0 3h3v2H2V8zm0 5v-2h3v2H2zm4 0v-2h3v2H6zm7 0h-3v-2h3v2zm0-3h-3V8h3v2zm-3-3V5h3v2h-3z"})}),ji="b-blocks",Ii="https://bblockswp.com",Oi=`${Ii}/blocks`,Di=`${Ii}/docs`,Pi=[{title:"Layout Blocks",children:[{name:`${ji}/container`,title:"Container",icon:dr,demo:`${Oi}/container`,docs:"",status:"published",required:!0},{name:`${ji}/row`,title:"Row",icon:ur,demo:`${Oi}/row-columns/`,docs:`${Di}/row-block/`,status:"published",required:!0},{name:`${ji}/hero-section`,title:"Hero Section",icon:Si,demo:"",docs:"",status:"published",badge:"NEW"},{name:`${ji}/media-text-section`,title:"Media & Text Section",icon:$i,demo:"",docs:"",status:"published",badge:"NEW"}]},{title:"Content Blocks",children:[{name:`${ji}/accordion-block`,title:"Accordion Block",icon:ri,demo:`${Oi}/accordion-block/`,status:"published"},{name:`${ji}/section-heading`,title:"Section Heading",icon:Vr,demo:`${Oi}/section-heading/`,docs:"",status:"published"},{name:`${ji}/dual-color-heading`,title:"Dual Color Heading",icon:_r,demo:`${Oi}/dual-color-heading/`,docs:"",status:"published"},{name:`${ji}/animated-text`,title:"Animated Text",icon:gr,demo:`${Oi}/animated-text/`,docs:`${Di}/animated-text-block/`,status:"published"},{name:`${ji}/button`,title:"Button",icon:mr,demo:`${Oi}/button/`,docs:"",status:"published"},{name:`${ji}/button-group`,title:"Button Group",icon:br,demo:`${Oi}/button-group/`,docs:"",status:"published"},{name:`${ji}/text-path`,title:"Text Path",icon:ui,demo:`${Oi}/text-path/`,docs:"",status:"published"},{name:`${ji}/feature-boxes`,title:"Feature Boxes",icon:Sr,demo:`${Oi}/feature-boxes/`,docs:"",status:"published"},{name:`${ji}/advanced-tabs`,title:"Advanced Tabs",icon:pi,demo:`${Oi}/advanced-tabs/`,status:"published"},{name:`${ji}/flip-boxes`,title:"Flip Boxes",icon:Er,demo:`${Oi}/flip-box/`,docs:"",status:"published"},{name:`${ji}/qr-code`,title:"Qr Code",icon:Ur,demo:`${Oi}/qr-code/`,docs:`${Di}/qr-code-block/`,status:"published"},{name:`${ji}/cards`,title:"Cards",icon:vr,demo:`${Oi}/cards/`,docs:"",status:"published"},{name:`${ji}/carousel`,title:"Carousel",icon:gi,demo:`${Oi}/carousel/`,status:"published"},{name:`${ji}/logo-slider`,title:"Logo Slider",icon:Dr,demo:`${Oi}/logo-slider/`,docs:"",status:"published",isPremium:!0},{name:`${ji}/slider`,title:"Slider",icon:Yr,demo:`${Oi}/slider/`,docs:`${Di}/slider-block/`,status:"published"},{name:`${ji}/testimonials`,title:"Testimonials",icon:oi,demo:`${Oi}/testimonial/`,status:"published"},{name:`${ji}/toggle-content`,title:"Toggle Content",icon:hi,demo:`${Oi}/toggle-content/`,status:"published"},{name:`${ji}/expand-content`,title:"Expand Content",icon:yi,demo:"",docs:"",status:"published",badge:"NEW"},{name:`${ji}/process-steps`,title:"Process Steps",icon:bi,demo:"",docs:"",status:"published"},{name:`${ji}/infographic`,title:"Infographic",icon:Or,demo:"https://bblockswp.com/blocks/infographic-block",docs:"",status:"published",badge:"NEW"},{name:`${ji}/code-highlight`,title:"Code Highlight",icon:wi,demo:"https://bblockswp.com/blocks/code-highlight/",docs:"",status:"published",badge:"NEW",isPremium:!0},{name:`${ji}/team-members`,title:"Team Members",icon:Jr,demo:`${Oi}/team-member/`,docs:`${Di}/team-block/`,status:"published"},{name:`${ji}/table-of-content`,title:"Table Of Content",icon:Zr,demo:`${Oi}/table-of-content/`,docs:"",status:"published"},{name:`${ji}/timeline`,title:"Timeline",icon:(0,Zt.jsxs)("svg",{...cr,viewBox:"0 0 24 24",children:[(0,Zt.jsx)("path",{d:"M12 3v18",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",opacity:"0.45"}),(0,Zt.jsx)("circle",{cx:"12",cy:"6.5",r:"2.6",fill:Bn}),(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"2.6",fill:Bn,opacity:"0.75"}),(0,Zt.jsx)("circle",{cx:"12",cy:"17.5",r:"2.6",fill:Bn,opacity:"0.55"}),(0,Zt.jsx)("rect",{x:"1.5",y:"4.5",width:"7",height:"4",rx:"1",fill:"currentColor",opacity:"0.35"}),(0,Zt.jsx)("rect",{x:"15.5",y:"10",width:"7",height:"4",rx:"1",fill:"currentColor",opacity:"0.35"}),(0,Zt.jsx)("rect",{x:"1.5",y:"15.5",width:"7",height:"4",rx:"1",fill:"currentColor",opacity:"0.35"})]}),demo:"",docs:"",status:"published",badge:"NEW"},{name:`${ji}/list`,title:"List",icon:ai,demo:`${Oi}/list/`,docs:"",status:"published"},{name:`${ji}/alert`,title:"Alert",icon:fr,demo:`${Oi}/alert/`,docs:`${Di}/alert-block/`,status:"published"},{name:`${ji}/blockquote`,title:"Blockquote",icon:_i,demo:"",docs:"",status:"published",badge:"NEW"},{name:`${ji}/divider`,title:"Divider",icon:Ti,demo:"",docs:"",status:"published",badge:"NEW"},{name:`${ji}/key-takeaways`,title:"Key Takeaways",icon:li,demo:"",docs:"",status:"published",isPremium:!0},{name:`${ji}/stat-cards`,title:"Stat Cards",icon:Mi,demo:"",docs:"",status:"published",isPremium:!0},{name:`${ji}/interactive-checklist`,title:"Interactive Checklist",icon:ci,demo:"",docs:"",status:"published"},{name:`${ji}/article-card`,title:"Article Card",icon:Li,demo:"",docs:"",status:"published",badge:"NEW",isPremium:!0},{name:`${ji}/event-card`,title:"Event Card",icon:Ri,demo:"",docs:"",status:"published",badge:"NEW",isPremium:!0},{name:`${ji}/file-download-card`,title:"File Download Card",icon:Ai,demo:"",docs:"",status:"published",badge:"NEW",isPremium:!0}]},{title:"Creative Blocks",children:[{name:`${ji}/advanced-image`,title:"Advanced Image",icon:pr,demo:`${Oi}/advanced-image`,docs:"",status:"published"},{name:`${ji}/td-viewer`,title:"3D Viewer",icon:hr,demo:`${Oi}/3d-viewer/`,docs:`${Di}/3d-viewer-block/`,status:"published"},{name:`${ji}/image-gallery`,title:"Image Gallery",icon:Rr,demo:`${Oi}/image-gallery/`,docs:"",status:"published"},{name:`${ji}/navigation`,title:"bBlocks Navigation",icon:zr,demo:`${Oi}/bblocks-navigation/`,docs:"",status:"published"},{name:`${ji}/scroll-to-top`,title:"Scroll To Top",icon:di,demo:`${Oi}/scroll-to-top/`,docs:"",status:"published"},{name:`${ji}/video`,title:"Video",icon:ei,demo:`${Oi}/video/`,docs:"",status:"published"},{name:`${ji}/image-comparison`,title:"Image Comparison",icon:Ar,demo:`${Oi}/image-comparison/`,docs:`${Di}/image-comparison-block/`,status:"published"},{name:`${ji}/image-hotspot`,title:"Image Hotspot",icon:Nr,demo:`${Oi}/image-hotspot/`,docs:"",status:"published",isPremium:!0},{name:`${ji}/gif`,title:"Gif Image",icon:$r,demo:`${Oi}/gift-image/`,docs:`${Di}/gif-block/`,status:"published"},{name:`${ji}/svg-draw`,title:"Svg Draw",icon:Qr,demo:`${Oi}/svg-draw/`,docs:"",status:"published"},{name:`${ji}/image-scroller`,title:"Image Scroller",icon:jr,demo:`${Oi}/image-scroller/`,docs:"",status:"published"},{name:`${ji}/lottie-player`,title:"Lottie Player",icon:Pr,demo:`${Oi}/lottie-player/`,docs:`${Di}/lottie-player-block/`,status:"published"},{name:`${ji}/info-box`,title:"Info Box",icon:Ir,demo:`${Oi}/info-box/`,docs:"",status:"published"},{name:`${ji}/countdown`,title:"Countdown Timer",icon:xr,demo:`${Oi}/countdown/`,docs:`${Di}/countdown-block/`,status:"published"},{name:`${ji}/counters`,title:"Counters",icon:kr,demo:`${Oi}/counters/`,docs:`${Di}/counters-block/`,status:"published"},{name:`${ji}/emoji-stack-separator`,title:"Emoji Stack Separator",icon:ti,demo:`${Oi}/emoji-stack-separator/`,docs:"",status:"published"},{name:`${ji}/icon-box`,title:"Icon Box",icon:Lr,demo:`${Oi}/icon-box/`,docs:"",status:"published"},{name:`${ji}/skill-bar`,title:"Skill Bar",icon:ii,demo:`${Oi}/skill-bar/`,docs:"",status:"published"},{name:`${ji}/stacked-cards`,title:"Stacked Cards",icon:mi,demo:`${Oi}/stacked-cards/`,docs:"",status:"published",isPremium:!0,badge:"NEW"},{name:`${ji}/shape-divider`,title:"Shape Divider",icon:Gr,demo:`${Oi}/shape-divider/`,docs:"",status:"published"},{name:`${ji}/audio-player`,title:"Audio Player",icon:vi,demo:"https://bblockswp.com/blocks/audio-player/",docs:"",status:"published",badge:"NEW"}]},{title:"Dynamic Blocks",children:[{name:`${ji}/breadcrumb`,title:"Breadcrumb",icon:fi,demo:`${Oi}/breadcrumb/`,status:"published"},{name:`${ji}/table`,title:"Table",icon:Ni,status:"published"},{name:`${ji}/chart`,title:"Chart",icon:yr,demo:`${Oi}/chart/`,docs:`${Di}/chart-block/`,status:"published"},{name:`${ji}/content-ticker`,title:"Content Ticker",icon:wr,demo:`${Oi}/content-ticker`,docs:"",status:"published",isPremium:!0},{name:`${ji}/news-ticker`,title:"News Ticker",icon:ni,demo:`${Oi}/news-ticker`,docs:"",status:"published"},{name:`${ji}/posts`,title:"Posts",icon:Br,demo:`${Oi}/posts`,docs:`${Di}/posts-block/`,status:"published"},{name:`${ji}/google-map`,title:"Google Map",icon:ki,demo:"https://bblockswp.com/blocks/google-map",docs:"",status:"published",badge:"NEW",isPremium:!0},{name:`${ji}/html`,title:"HTML",icon:Mr,demo:`${Oi}/html`,docs:"",status:"published"}]},{title:"Form Blocks",children:[{name:`${ji}/form-builder`,title:"Form",icon:si,demo:`${Oi}/form`,docs:"",status:"published"}]},{title:"Marketing Blocks",children:[{name:`${ji}/pricing-table`,title:"Pricing Table",icon:Wr,demo:`${Oi}/pricing-table/`,docs:`${Di}/pricing-table-block/`,status:"published"},{name:`${ji}/price-lists`,title:"Price Lists",icon:Hr,demo:`${Oi}/price-lists/`,docs:"",status:"published"},{name:`${ji}/services`,title:"Services",icon:qr,demo:`${Oi}/services/`,docs:`${Di}/services-section-block/`,status:"published"},{name:`${ji}/mailto`,title:"Mail To",icon:Fr,demo:`${Oi}/mail-to/`,docs:`${Di}/mail-to-block/`,status:"published"},{name:`${ji}/star-rating`,title:"Star Rating",icon:Xr,demo:`${Oi}/star-rating`,docs:"",status:"published"},{name:`${ji}/comparison-table`,title:"Comparison Table",icon:Ci,demo:"https://bblockswp.com/blocks/comparison-table/",docs:"",status:"published",badge:"NEW"}]},{title:"Social Blocks",children:[{name:`${ji}/whatsapp-chat`,title:"WhatsApp Chat",icon:Ei,demo:"",docs:"",status:"published"},{name:`${ji}/instagram`,title:"Instagram Feed",icon:xi,demo:"",docs:"",status:"published",badge:"NEW"},{name:`${ji}/facebook-embed`,title:"Facebook Embed",icon:Cr,demo:`${Oi}/facebook-embed`,docs:"",status:"published"},{name:`${ji}/facebook-page`,title:"Facebook Page",icon:Tr,demo:`${Oi}/facebook-page`,docs:"",status:"published"},{name:`${ji}/social-share`,title:"Social Share",icon:Kr,demo:`${Oi}/social-share/`,docs:`${Di}/social-share-block/`,status:"published"}]}],Fi=[{name:`${ji}/container`,title:"Container",icon:dr,demo:`${Oi}/container`,docs:"",status:"published"},{name:`${ji}/row`,title:"Row",icon:ur,demo:`${Oi}/row-columns/`,docs:`${Di}/row-block/`,status:"published"},{name:`${ji}/td-viewer`,title:"3D Viewer",icon:hr,demo:`${Oi}/3d-viewer/`,docs:`${Di}/3d-viewer-block/`,status:"published"},{name:`${ji}/advanced-image`,title:"Advanced Image",icon:pr,demo:`${Oi}/advanced-image`,docs:"",status:"published"},{name:`${ji}/alert`,title:"Alert",icon:fr,demo:`${Oi}/alert/`,docs:`${Di}/alert-block/`,status:"published"},{name:`${ji}/animated-text`,title:"Animated Text",icon:gr,demo:`${Oi}/animated-text/`,docs:`${Di}/animated-text-block/`,status:"published"},{name:`${ji}/accordion-block`,title:"Accordion Block",icon:ri,demo:`${Oi}/accordion-block/`,status:"published"},{name:`${ji}/advanced-tabs`,title:"Advanced Tabs",icon:pi,demo:`${Oi}/advanced-tabs/`,status:"published"},{name:`${ji}/breadcrumb`,title:"Breadcrumb",icon:fi,demo:`${Oi}/breadcrumb/`,status:"published"},{name:`${ji}/button`,title:"Button",icon:mr,demo:`${Oi}/button/`,docs:"",status:"published"},{name:`${ji}/button-group`,title:"Button Group",icon:br,demo:`${Oi}/button-group/`,docs:"",status:"published"}],zi=e=>{const t=/youtu\.be\/([^#&?]+)/;let n="";const r=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);if(r&&11===r[2]?.length)n=r[2];else{const r=e.match(t);r&&11===r[1]?.length&&(n=r[1])}return n?`https://www.youtube.com/embed/${n}?autoplay=1&rel=0&modestbranding=1`:e},Bi=()=>(0,Zt.jsxs)("svg",{viewBox:"0 0 24 24",width:15,height:15,fill:"none",stroke:"currentColor",strokeWidth:2.4,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,Zt.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),Hi=()=>(0,Zt.jsxs)("svg",{viewBox:"0 0 24 24",width:14,height:15,fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M3 17l3-9 4 5 2-7 2 7 4-5 3 9"}),(0,Zt.jsx)("line",{x1:"3",y1:"21",x2:"21",y2:"21"})]}),Wi=()=>(0,Zt.jsxs)("svg",{viewBox:"0 0 24 24",width:13,height:13,fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),(0,Zt.jsx)("polyline",{points:"12 5 19 12 12 19"})]}),Ui=(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 292 512",fill:"#1877F2",width:18,height:18,children:(0,Zt.jsx)("path",{d:"m66 299.3v212.7h116v-212.7h86.5l18-97.8h-104.5v-34.6c0-51.7 20.3-71.5 72.7-71.5 16.3 0 29.4 0.4 37 1.2v-88.7c-14.3-3.9-49.3-7.9-69.5-7.9-106.9 0-156.2 50.5-156.2 159.4v42.1h-66v97.8z"})}),Vi=(0,An.withSelect)((e=>{const t=e("core");return{site:t.getSite?.(),currentUser:t.getCurrentUser?.()}}))((e=>{const{name:n,version:r,slug:i,isPremium:o,media:s,pages:a,startButton:l,primaryCtaLabel:c="Get Started",tagline:d,layouts:u,layoutsLabel:h="Layouts",gettingStartedTabs:p,helpItems:f,children:g,site:m,currentUser:b}=e,{thumbnail:v,video:y,isYoutube:w}=s||{},[x,k]=(0,t.useState)(!1),_=b?.name?b.name.split(/\s+/)[0]:"",C=(d||`Build faster in WordPress with ${n||"this plugin"} — no code required.`).replace("{firstName}",_),T=f||(({slug:e,name:t="this plugin"})=>[{title:"Need any Assistance?",description:"Our Expert Support Team is always ready to help you out promptly.",link:"https://bplugins.com/support",linkText:"Contact Support",image:lr},{titleIcon:Ui,title:"Join Our Community",description:"Get tutorials, plugin updates, feature announcements, and support from other WordPress users.",link:"https://facebook.com/groups/1828495198556137",linkText:"Join Now →"},{title:"Request A Feature",description:`Have an idea that would make ${t} even better? Let us know — we love hearing from you.`,link:"https://bplugins.com/support/",linkText:"Submit Request →"},{title:`Loving ${t}? ⭐`,description:"We're a small team pouring our heart into this plugin — your honest review keeps us going and helps other WordPress creators discover it. It only takes 30 seconds, and it means the world to us. 🙏",link:e?`https://wordpress.org/support/plugin/${e}/reviews/#new-post`:"",linkText:"Leave a Review"}])({slug:i,name:n});return(0,Zt.jsxs)("div",{className:"bp3dWelcomeLayout bp3dWelcomeLayoutV3",children:[(0,Zt.jsxs)("div",{className:"bp3dHeroRow",children:[(0,Zt.jsx)(ar,{pages:a,tabs:p}),(0,Zt.jsx)("div",{className:"bp3dWelcomeCard bPlDashboardCard",children:(0,Zt.jsxs)("div",{className:"bp3dWelcomeCardBody",children:[(0,Zt.jsxs)("div",{className:"bp3dWelcomeStatusRow",children:[(0,Zt.jsxs)("span",{className:"bp3dWelcomeStatus",children:[(0,Zt.jsx)("span",{className:"bp3dWelcomeStatusDot","aria-hidden":"true"}),"Plugin active"]}),(0,Zt.jsxs)("span",{className:"bp3dWelcomePlan "+(o?"isPro":"isFree"),children:[o&&(0,Zt.jsx)(Hi,{}),o?"Pro Plan":"Free Plan"]}),r&&(0,Zt.jsxs)("span",{className:"bp3dWelcomeVer",children:["v",r]})]}),n&&(0,Zt.jsxs)("h2",{children:["Welcome to ",n]}),(0,Zt.jsx)("p",{className:"bp3dWelcomeTagline",children:_?(0,Zt.jsxs)(Zt.Fragment,{children:["Hi ",(0,Zt.jsx)("strong",{children:_}),", ",C]}):C}),v&&(0,Zt.jsxs)("div",{className:"bp3dWelcomeBanner",children:[(0,Zt.jsx)("img",{src:v,alt:n}),y&&(0,Zt.jsx)("button",{className:"playButton",onClick:()=>k(!0),"aria-label":"Play product walkthrough",children:Yn}),y&&(0,Zt.jsx)("span",{className:"bp3dWelcomeBannerCaption",children:"Watch quick start · 2 min"})]}),u?.length>0&&(0,Zt.jsxs)("div",{className:"bp3dWelcomeFormats",children:[(0,Zt.jsx)("span",{className:"bp3dWelcomeFormatsLabel",children:h}),u.map((e=>(0,Zt.jsx)("span",{className:"bp3dWelcomeFormat",children:e},e)))]}),(0,Zt.jsxs)("div",{className:"bp3dWelcomeButtons",children:[l?.url&&l?.label&&(0,Zt.jsxs)(Jt,{className:"bp3dWelcomeBtn bp3dWelcomeBtnPrimary",href:m?.url?`${m.url}/${l.url}`:l.url,target:"_blank",rel:"noopener noreferrer",children:[(0,Zt.jsx)(Bi,{}),c]}),!o&&(0,Zt.jsxs)("a",{className:"bp3dWelcomeBtnGhost",href:"#pricing",children:[(0,Zt.jsx)(Hi,{}),"Upgrade to Pro",(0,Zt.jsx)(Wi,{})]})]})]})})]}),(0,Zt.jsxs)("div",{className:"bp3dExtraRow",children:[(0,Zt.jsx)(nr,{...e,allBlocks:Fi,seeAllLink:"#/blocks",visibleCount:9}),g]}),(0,Zt.jsxs)("div",{className:"bp3dContentRow",children:[(0,Zt.jsx)(er,{...e}),!o&&(0,Zt.jsx)(tr,{...e})]}),(0,Zt.jsx)("div",{className:"bp3dHelpRow",children:T.map(((e,t)=>e.link&&(0,Zt.jsxs)("div",{className:"bp3dHelpCard bPlDashboardCard",children:[e.image&&(0,Zt.jsx)("figure",{children:(0,Zt.jsx)("img",{src:e.image,alt:e.title})}),(0,Zt.jsxs)("h4",{children:[e.title," ",e.titleIcon]}),(0,Zt.jsx)("p",{children:e.description}),(0,Zt.jsx)(Jt,{href:e.link,target:"_blank",rel:"noopener noreferrer",children:e.linkText})]},t)))}),x&&y&&(0,Zt.jsxs)("div",{className:"bPlVideoModal",children:[(0,Zt.jsxs)("div",{className:"bPlVideoModalContent",children:[(0,Zt.jsx)("button",{className:"closeModal",onClick:()=>k(!1),"aria-label":"Close video",children:Un}),w?(0,Zt.jsx)("iframe",{src:zi(y),title:"Product walkthrough",frameBorder:0,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0},y):(0,Zt.jsx)("video",{src:y,autoPlay:!0,controls:!0,playsInline:!0},y)]}),(0,Zt.jsx)("div",{className:"bPlVideoModalOverlay",onClick:()=>k(!1)})]})]})})),qi=[{version:"2.1.6 - 10 September 2026",list:["Added: Code Highlight Block."],type:"new"},{version:"2.1.5 - 7 September 2026",list:["Added: Infographic Block."],type:"new"},{version:"2.1.4 - 3 September 2026",list:["Fixed: Container Layout issue","Added: Carousel block direction"],type:"fix"},{version:"2.1.3 - 31 August 2026",list:["Added: 2 new blocks","> Comparison Table","> Timeline"],type:"new"},{version:"2.1.2 - 24 August 2026",list:["Added: 2 new blocks","> Google Map"],type:"new"},{version:"2.1.1 - 02 August 2026",list:["Added: 4 new blocks","> Hero Section","> File Download Card","> Off-Canvas Drawer","> Audio Player"],type:"new"},{version:"2.1.0 - 26 July 2026",list:["Added: 10 new blocks","> Media & Text Section","> Expand Content","> Process Steps","> Blockquote","> Divider","> Key Takeaways","> Stat Cards","> Interactive Checklist","> Article Card","> Event Card"],type:"new"},{version:"2.0.44 - 18 June 2026",list:["Compatible apiVersion 3 Carousel Block."],type:"fix"},{version:"2.0.43 - 14 June 2026",list:["Compatible apiVersion 3 Table of Content, Video Block & Chart Block.","Added: Icon Size, Gap, and Unmarked Color settings to the Star Rating block.","Added: Icon Box Alignment option.","Added: Button Group layout option.","Fixed: Table Block issues.","Added: Flip Box direction option.","Fixed: Column width drag & drop issue."],type:"update"},{version:"2.0.42 - 08 June 2026",list:["Added: Table Block.","Fixed: minor bug."],type:"new"},{version:"2.0.41 - 16 May 2026",list:["Fixed: Minor bug.","Added: Template Library pattern counts & template page counts.","Fixed: Template Library filter style issues."],type:"fix"},{version:"2.0.40 - 29 Apr 2026",list:["Added: WhatsApp Chat Block."],type:"new"},{version:"2.0.39 - 27 Apr 2026",list:["Added: Nested option for Table of Content Block."],type:"update"},{version:"2.0.38 - 21 Apr 2026",list:["Fixed: Text Path Block issues.","Fixed: Accordion Block border width.","Fixed: Breadcrumb Block typography issues.","Fixed: Facebook Page Block SDK.","Fixed: Facebook Embed Block SDK."],type:"fix"},{version:"2.0.37 - 15 Apr 2026",list:["Fixed: Advanced Styles issue for Table of content block."],type:"fix"},{version:"2.0.36 - 01 Apr 2026",list:["Improved: Advanced Tabs Block Migrate frontend dynamic content."],type:"update"},{version:"2.0.35 - 29 Mar 2026",list:["Added: New Dashboard."],type:"new"},{version:"2.0.34 - 6 Mar 2026",list:["Added: Stacked Cards Block."],type:"new"},{version:"2.0.33 - 3 Mar 2026",list:["Fixed: Carousel Block issues."],type:"fix"},{version:"2.0.32 - 2 Mar 2026",list:["Added: Full Flexbox controls for Row block."],type:"update"},{version:"2.0.31 - 28 Feb 2026",list:["Added: Carousel Block."],type:"new"},{version:"2.0.30 - 19 Feb 2026",list:["Added Advanced Tabs Block","Added Breadcrumb Block","Fixed Cards frontend issues."],type:"new"},{version:"2.0.29 - 30 Jan 2026",list:["Added Toggle Content Block."],type:"new"},{version:"2.0.28 - 24 Jan 2026",list:["Fixed Button Block player autoplay issue."],type:"fix"},{version:"2.0.27 - 23 Jan 2026",list:["Added Text Path Block."],type:"new"},{version:"2.0.26 - 15 Jan 2026",list:["Added Scroll To Top Block.","Fixed Accordion Block issues.","Fixed Container issues.","Added Dual Color Heading alignment option."],type:"new"},{version:"2.0.25 - 25 Dec 2025",list:["Added List Block.","Fixed Template Library issues."],type:"new"},{version:"2.0.24 - 19 Dec 2025",list:["Added Form Block."],type:"new"},{version:"2.0.23 - 10 Dec 2025",list:["Added Facebook Page Block.","Added Facebook Embed Block."],type:"new"},{version:"2.0.23 - 10 Dec 2025",list:["Added Facebook Page Block.","Added Facebook Embed Block."],type:"new"},{version:"2.0.22 - 4 Dec 2025",list:["Added Testimonials Block.","Fixed Slider fade effect autoplay issue."],type:"new"},{version:"2.0.21 - 2 Dec 2025",list:["Added Accordion Block.","Added Skill Bar Block."],type:"new"},{version:"2.0.20 - 23 Nov 2025",list:["Added News Ticker Block.","Added Emoji Stack Separator."],type:"new"},{version:"2.0.19 - 30 Oct 2025",list:["Added Ai Content Generator tool.","Added color option for star rating."],type:"new"},{version:"2.0.18 - 21 Oct 2025",list:["Added Image Scroller Block."],type:"new"},{version:"2.0.17 - 16 Oct 2025",list:["Added option pause on hover for logo slider.","Added Image Hotspot block.","Fixed slider width issue.","Fixed logo slider radius."],type:"new"},{version:"2.0.16 - 7 Oct 2025",list:["Added Content ticker block.","Fixed logo slider issues.","Add easing option for the logo slider block."],type:"new"},{version:"2.0.15 - 29 Sep 2025",list:["Added Logo Slider block.","Fixed icon box extra space issue."],type:"new"},{version:"2.0.14 - 22 Sep 2025",list:["Add Animation options for the Advanced Image block."],type:"new"},{version:"2.0.13 - 21 Sep 2025",list:["Added SVG Draw block."],type:"new"},{version:"2.0.12 - 13 Sep 2025",list:["Added Dual color heading block.","Fixed Advanced Image width issue.","Fixed Container Innerblock width issue.","Fixed Row last column width issue."],type:"new"},{version:"2.0.11 - 7 Sep 2025",list:["Added HTML Block.","Added Pricing page in the Dashboard."],type:"new"},{version:"2.0.10 - 1 Sep 2025",list:["Add hover shadow and border-color options for the Button block.","Fixed icon box hover color.","Fixed Cursor canvas pointer-event","Fixed advanced gradient color"],type:"new"},{version:"2.0.9 - 30 Aug 2025",list:["Added Table of Content block","Added icon hover option in Team Members.","Added margin for star rating."],type:"new"},{version:"2.0.8 - 25 Aug 2025",list:["Added cursor shape and click effects.","Fixed Flipbox title margin and added ItemsPanel.","Fixed typography controls in Section Heading.","Added image remove/replace option in Image Gallery.","Added autoplay option to Button block."],type:"new"},{version:"2.0.6 - 6 Aug 2025",list:["Fixed issues in the Button Block","Added advanced width and height controls.","Fixed animation duration and delay settings."],type:"new"},{version:"2.0.5 - 23 Jul 2025",list:["added advanced styles to the row and column block."],type:"new"},{version:"2.0.4 - 21 Jul 2025",list:["Fix Button Block popup issue."],type:"new"},{version:"2.0.3 - 19 Jul 2025",list:["Fix Typography issue.","Update SDK."],type:"new"},{version:"2.0.2 - 17 Jul 2025",list:["Fix Column Issue.","Change the theme color."],type:"new"},{version:"2.0.1 - 14 Apr 2025",list:["Sanitize input field.","Fix RichText issue."],type:"new"},{version:"2.0.0 - 23 Mar 2025",list:["Add Advanced Image and Navigation Block.","New Dashboard."],type:"new"},{version:"1.9.9 - 27 Jan 2025",list:["Update SDK."],type:"new"},{version:"1.9.8 - 23 Nov 2024",list:["Fix Templates issue.","Fix 3D Viewer zoom issue."],type:"new"},{version:"1.9.7 - 20 Nov 2024",list:["Improve templates library","Update Container Block"],type:"new"},{version:"1.9.6 - 22 Oct 2024",list:["Add Container and Icon Box block"],type:"new"}],Gi="b-blocks",Yi=(location.origin,e=>{const{version:t,isPremium:n,hasPro:r,licenseActiveNonce:i}=e,o=n?" Pro":"";return{name:`bBlocks${o}`,displayName:`bBlocks${o} - Essential Gutenberg Blocks & Patterns Collection`,description:"bBlocks is a Gutenberg addon that powers up your Block editor. It can be used as a WordPress page-building tool, which contains a variety of beautiful blocks. It is optimized for performance and provides you with maximum options to achieve your design goals.",slug:Gi,version:t,isPremium:n,hasPro:r,info:e,displayOurPlugins:!0,tagline:"Power up the block editor with 80+ lightweight, responsive Gutenberg blocks — no code required.",layoutsLabel:"Popular Blocks",layouts:["Container","Slider","Accordion","Tabs","Countdown","Lottie","Image Compare"],gettingStartedTabs:[{key:"gutenberg",label:"Gutenberg",icon:sr.gutenberg,steps:[{num:1,title:"Open the Block Editor",body:"Edit any post or page where you want to add a bBlock."},{num:2,title:"Insert a Block",body:"Click <strong>+</strong> (Add block), search for <code>bBlocks</code> or a block name, and insert it."},{num:3,title:"Customize Inline",body:"Tune options from the sidebar — every change previews live in the editor."}]},{key:"template-library",label:"Template Library",icon:sr.shortcode,steps:[{num:1,title:"Open the Template Library",body:"In the editor toolbar, click the <strong>bBlocks Library</strong> button to browse ready-made templates."},{num:2,title:"Preview & Insert",body:"Preview any full-page or section template, then click <strong>Insert</strong> to drop it into your page."},{num:3,title:"Make It Yours",body:"Swap the placeholder text and images for your own content — every block stays fully editable."}]},{key:"patterns",label:"Patterns",icon:sr.theme,steps:[{num:1,title:"Open the Inserter",body:"In the editor, click <strong>+</strong> and switch to the <strong>Patterns</strong> tab."},{num:2,title:"Pick a bBlocks Pattern",body:"Browse the bBlocks pattern category and choose a ready-made section."},{num:3,title:"Insert & Edit",body:"Click to insert the pattern, then replace the content with your own."}]}],media:{logo:`https://ps.w.org/${Gi}/assets/icon-128x128.png?rev=3471261`,banner:`https://ps.w.org/${Gi}/assets/banner-772x250.png`,thumbnail:`${e?.dirUrl||""}assets/welcome-banner.svg`,video:"https://www.youtube.com/embed/rdPWz1Ekkro",isYoutube:!0},pages:{org:`https://wordpress.org/plugins/${Gi}/`,landing:"https://bblockswp.com/",docs:"https://bblockswp.com/docs/",pricing:"https://bblockswp.com/pricing/"},freemius:{product_id:12845,plan_id:21619,public_key:"pk_d6426b344df4918bc066a7a0b4719"},licenseActiveNonce:i,changelogs:qi,proFeatures:["4 Premium Blocks.","Pro features of Posts Block.","Pro features of Countdown Block.","Pro features of Slider Block.","Pro features of Lottie Player Block.","Pro features of Button Block.","Pro features of Cards Block.","Pro features of Image Comparison Block.","Premium Templates.","Premium Block Patterns Library.","Priority Email Support.","Regular New Pro Blocks & Updates."],startButton:{label:"Start Now",url:"wp-admin/post-new.php?post_type=page&title=bBlocks&content=\x3c!-- wp:b-blocks/container /--\x3e"}}}),Ki={logo:`https://ps.w.org/${Gi}/assets/icon-128x128.png?rev=3471261`,pluginId:12845,planId:21619,licenses:[1,3,null],button:{label:"Buy Now ➜"},featured:{selected:3}},Xi=e=>{const{className:t="mt20 mb5",htmlFor:n,children:r}=e;return(0,Zt.jsx)("label",{className:`bPlLabel ${t}`,htmlFor:n,children:r})},Qi=(0,window.wp.compose.compose)((0,An.withSelect)((e=>{const{getDeviceType:t}=e("core/editor");return{device:t()?.toLowerCase()}})),(0,An.withDispatch)((e=>({setDevice:t=>e("core/editor").setDeviceType(t)}))))((({style:e,className:t,position:n="horizontal",device:r,setDevice:i,onChange:o=()=>{}})=>(0,Zt.jsx)("div",{className:`bPlDeviceControl ${t}`,style:{display:"horizontal"===n?"flex":"grid",...e},children:[{label:"Desktop",name:"desktop",icon:"dashicons-desktop"},{label:"Tablet",name:"tablet",icon:"dashicons-tablet"},{label:"Mobile",name:"mobile",icon:"dashicons-smartphone"}].map((({label:e,name:t,icon:n},s)=>(0,Zt.jsx)("button",{className:t===r?"active":"",onClick:()=>{i(e),o(e.toLowerCase())},children:(0,Zt.jsx)("span",{className:`dashicons ${n} ${t===r?"active":""} `})},s)))})));var Zi=Symbol.for("immer-nothing"),Ji=Symbol.for("immer-draftable"),eo=Symbol.for("immer-state");function to(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var no=Object.getPrototypeOf;function ro(e){return!!e&&!!e[eo]}function io(e){return!!e&&(so(e)||Array.isArray(e)||!!e[Ji]||!!e.constructor?.[Ji]||ho(e)||po(e))}var oo=Object.prototype.constructor.toString();function so(e){if(!e||"object"!=typeof e)return!1;const t=no(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===oo}function ao(e,t){0===lo(e)?Reflect.ownKeys(e).forEach((n=>{t(n,e[n],e)})):e.forEach(((n,r)=>t(r,n,e)))}function lo(e){const t=e[eo];return t?t.type_:Array.isArray(e)?1:ho(e)?2:po(e)?3:0}function co(e,t){return 2===lo(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function uo(e,t,n){const r=lo(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function ho(e){return e instanceof Map}function po(e){return e instanceof Set}function fo(e){return e.copy_||e.base_}function go(e,t){if(ho(e))return new Map(e);if(po(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=so(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[eo];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(no(e),t)}{const t=no(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function mo(e,t=!1){return vo(e)||ro(e)||!io(e)||(lo(e)>1&&(e.set=e.add=e.clear=e.delete=bo),Object.freeze(e),t&&Object.entries(e).forEach((([e,t])=>mo(t,!0)))),e}function bo(){to(2)}function vo(e){return Object.isFrozen(e)}var yo,wo={};function xo(e){const t=wo[e];return t||to(0),t}function ko(){return yo}function _o(e,t){t&&(xo("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Co(e){To(e),e.drafts_.forEach(Eo),e.drafts_=null}function To(e){e===yo&&(yo=e.parent_)}function So(e){return yo={drafts_:[],parent_:yo,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Eo(e){const t=e[eo];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function $o(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[eo].modified_&&(Co(t),to(4)),io(e)&&(e=Mo(t,e),t.parent_||Ao(t,e)),t.patches_&&xo("Patches").generateReplacementPatches_(n[eo].base_,e,t.patches_,t.inversePatches_)):e=Mo(t,n,[]),Co(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Zi?e:void 0}function Mo(e,t,n){if(vo(t))return t;const r=t[eo];if(!r)return ao(t,((i,o)=>Lo(e,r,t,i,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return Ao(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let i=t,o=!1;3===r.type_&&(i=new Set(t),t.clear(),o=!0),ao(i,((i,s)=>Lo(e,r,t,i,s,n,o))),Ao(e,t,!1),n&&e.patches_&&xo("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Lo(e,t,n,r,i,o,s){if(ro(i)){const s=Mo(e,i,o&&t&&3!==t.type_&&!co(t.assigned_,r)?o.concat(r):void 0);if(uo(n,r,s),!ro(s))return;e.canAutoFreeze_=!1}else s&&n.add(i);if(io(i)&&!vo(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Mo(e,i),t&&t.scope_.parent_||"symbol"==typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||Ao(e,i)}}function Ao(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&mo(t,n)}var Ro={get(e,t){if(t===eo)return e;const n=fo(e);if(!co(n,t))return function(e,t,n){const r=Io(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!io(r)?r:r===jo(e.base_,t)?(Do(e),e.copy_[t]=Po(r,e)):r},has:(e,t)=>t in fo(e),ownKeys:e=>Reflect.ownKeys(fo(e)),set(e,t,n){const r=Io(fo(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=jo(fo(e),t),s=r?.[eo];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((i=n)===(o=r)?0!==i||1/i==1/o:i!=i&&o!=o)&&(void 0!==n||co(e.base_,t)))return!0;Do(e),Oo(e)}var i,o;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==jo(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Do(e),Oo(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=fo(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){to(11)},getPrototypeOf:e=>no(e.base_),setPrototypeOf(){to(12)}},No={};function jo(e,t){const n=e[eo];return(n?fo(n):e)[t]}function Io(e,t){if(!(t in e))return;let n=no(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=no(n)}}function Oo(e){e.modified_||(e.modified_=!0,e.parent_&&Oo(e.parent_))}function Do(e){e.copy_||(e.copy_=go(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function Po(e,t){const n=ho(e)?xo("MapSet").proxyMap_(e,t):po(e)?xo("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:ko(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=Ro;n&&(i=[r],o=No);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,a}(e,t);return(t?t.scope_:ko()).drafts_.push(n),n}function Fo(e){if(!io(e)||vo(e))return e;const t=e[eo];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=go(e,t.scope_.immer_.useStrictShallowCopy_)}else n=go(e,!0);return ao(n,((e,t)=>{uo(n,e,Fo(t))})),t&&(t.finalized_=!1),n}ao(Ro,((e,t)=>{No[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),No.deleteProperty=function(e,t){return No.set.call(this,e,t,void 0)},No.set=function(e,t,n){return Ro.set.call(this,e[0],t,n,e[0])};var zo=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...i){return r.produce(e,(e=>t.call(this,e,...i)))}}let r;if("function"!=typeof t&&to(6),void 0!==n&&"function"!=typeof n&&to(7),io(e)){const i=So(this),o=Po(e,void 0);let s=!0;try{r=t(o),s=!1}finally{s?Co(i):To(i)}return _o(i,n),$o(r,i)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===Zi&&(r=void 0),this.autoFreeze_&&mo(r,!0),n){const t=[],i=[];xo("Patches").generateReplacementPatches_(e,r,t,i),n(t,i)}return r}to(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){var t;io(e)||to(8),ro(e)&&(ro(t=e)||to(10),e=Fo(t));const n=So(this),r=Po(e,void 0);return r[eo].isManual_=!0,To(n),r}finishDraft(e,t){const n=e&&e[eo];n&&n.isManual_||to(9);const{scope_:r}=n;return _o(r,t),$o(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=xo("Patches").applyPatches_;return ro(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},Bo=zo.produce;zo.produceWithPatches.bind(zo),zo.setAutoFreeze.bind(zo),zo.setUseStrictShallowCopy.bind(zo),zo.applyPatches.bind(zo),zo.createDraft.bind(zo),zo.finishDraft.bind(zo);const Ho=(0,An.withSelect)((e=>({themeColors:e("core/block-editor").getSettings().colors})))((({isOpen:e,onClose:t,onChange:n,themeColors:r})=>r.length?(0,Zt.jsx)("div",{className:"bPlThemeColors",children:r.map((({color:r})=>(0,Zt.jsx)("div",{className:"bPlColorButtonContainer",children:(0,Zt.jsx)("button",{type:"button",className:"bPlColorButton","aria-expanded":e,style:{backgroundColor:r||"transparent"},onClick:()=>{n(r),t()}})},r)))}):null)),Wo=(0,t.forwardRef)(((e,t)=>{const{className:n="",label:r=(0,_n.__)("Color:"),value:i="",onChange:o,defaultColor:s,disableAlpha:a=!1}=e;return(0,Zt.jsxs)(Xn.PanelRow,{ref:t,className:n,children:[(0,Zt.jsx)(Xi,{className:"",children:r}),(0,Zt.jsx)(Xn.Dropdown,{className:"bPlDropdownContainer bPlColor",contentClassName:"bPlDropdownPopover",popoverProps:{placement:"top-end"},renderToggle:({isOpen:e,onToggle:t})=>(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("div",{className:"bPlColorButtonContainer",children:(0,Zt.jsx)("button",{type:"button",className:"bPlColorButton",onClick:t,"aria-expanded":e,style:{backgroundColor:i||"transparent"}})}),s&&s!=i&&(0,Zt.jsx)(Xn.Button,{className:"bPlResetVal",icon:"image-rotate",label:(0,_n.__)("Reset"),onClick:()=>o(s)})]}),renderContent:({isOpen:e,onClose:t})=>(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.ColorPicker,{color:i||"",disableAlpha:a,onChangeComplete:e=>o(`rgba(${e.rgb.r}, ${e.rgb.g}, ${e.rgb.b}, ${e.rgb.a})`)}),(0,Zt.jsx)(Ho,{isOpen:e,onClose:t,onChange:o})]})})]})})),Uo=e=>{const{className:n="",options:r=[],label:i="Button Group",value:o,onChange:s=()=>{},borderRadius:a="30px",height:l,paddingX:c="8px",paddingY:d="4px",fontSize:u="12px",fontWeight:h=400,activeBg:p,activeColor:f="#fff",inactiveColor:g="#000",hoverBg:m,hoverColor:b,style:v}=e,[y,w]=(0,t.useState)(0),x=r.length>0?r:[1,2],k=(0,t.useRef)(null),_=(0,t.useRef)(null),C=Math.floor(99999999*Math.random());return(0,t.useEffect)((()=>{const e=y>r.length-1?y-1:y,t=k.current,n=_.current;o&&x.forEach(((e,t)=>{e.value===o&&w(t)}));const i=t.querySelectorAll(`.bpl-button-group-${C}`),s=Array.from(i)[e],a=s.getBoundingClientRect().height.toFixed(2),l=s.getBoundingClientRect().width.toFixed(2),c=Number(l),d=Number(a);n.style.width=`${c||s.clientWidth}px`,n.style.height=`${d||s.clientHeight}px`,n.style.left=`${s.offsetLeft}px`}),[y,r,o]),(0,Zt.jsxs)("div",{className:n,style:{marginBottom:"10px",...v},children:[(0,Zt.jsx)("style",{children:`\n\t\t\t\t.bpl-buttonGroupHover-${C}.bpl-button-group-${C}:hover{\n\t\t\t\t\tbackground:${m};\n\t\t\t\t\tcolor:${b};\n\t\t\t\t\ttransition: background 0.3s ease-in-out;\n\t\t\t\t}\n\t\t\t`}),(0,Zt.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[i&&(0,Zt.jsx)("label",{style:{fontWeight:500},children:i}),(0,Zt.jsxs)("div",{ref:k,style:{display:"flex",position:"relative",border:"1px solid #ccc",borderRadius:a},children:[x.map(((e,t)=>(0,Zt.jsx)("button",{style:{background:m?y===t?"transparent":"":"transparent",borderRadius:a,height:l,padding:`${d} ${c}`,fontSize:u,zIndex:20,cursor:"pointer",fontWeight:h,color:`${y!==t?g:f}`,border:"none"},onClick:n=>((e,t,n)=>{w(n),s(t.value)})(0,e,t),className:`${y!==t?`bpl-buttonGroupHover-${C}`:""} bpl-button-group-${C}`,children:r.length?e.label:`Button ${t+1}`},t))),(0,Zt.jsx)("div",{ref:_,style:{background:p||Bn,transition:"left 0.2s ease-in-out",position:"absolute",top:0,left:0,zIndex:10,borderRadius:a}})]})]})]})},Vo=(e,t,...n)=>{if(0===n.length)return t;const r=e??{},[i,...o]=n;return 0===o.length?Bo(r,(e=>{e[i]=t})):Bo(r,(e=>{null!==e[i]&&void 0!==e[i]&&"object"==typeof e[i]||(e[i]={}),e[i]=Vo(e[i],t,...o)}))},qo=e=>{const{value:n={},onChange:r}=e,{type:i="linear",radialType:o="ellipse",colors:s=[],centerPositions:a={x:0,y:0},angel:l=90}=n,c=(e,t,i)=>{const o=Bo(n.colors,(n=>{n[e][t]=i}));r({...n,colors:o})};return(0,t.useEffect)((()=>{r(n)}),[n,n]),(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Uo,{className:"mt10",label:"Gradient Type",value:i,onChange:e=>r({...n,type:e}),options:[{label:"Linear",value:"linear"},{label:"Radial",value:"radial"}]}),"radial"===i&&(0,Zt.jsx)(Uo,{label:"Radial Type",value:o,onChange:e=>r({...n,radialType:e}),options:[{label:"Ellipse",value:"ellipse"},{label:"Circle",value:"circle"}]}),s?.map(((e,t)=>(0,Zt.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"10px"},children:[(0,Zt.jsx)(Wo,{value:e.color,onChange:e=>c(t,"color",e),tooltip:"Color"}),(0,Zt.jsxs)("div",{className:"advExtraMargin",style:{display:"flex",alignItems:"center",gap:"5px"},children:[(0,Zt.jsx)(Xn.Tooltip,{delay:300,text:"Position",placement:"top",children:(0,Zt.jsx)(Xn.__experimentalNumberControl,{value:e.position,onChange:e=>c(t,"position",e),min:0,max:100})}),s.length>1&&(0,Zt.jsx)(Xn.Dashicon,{style:{cursor:"pointer",color:"red"},onClick:()=>(e=>{const t=Bo(n.colors,(t=>{t.splice(e,1)}));r({...n,colors:t})})(t),icon:"trash"})]})]},t))),(0,Zt.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"10px 0"},children:(0,Zt.jsx)(Xn.Button,{text:"Add Color",variant:"tertiary",style:{color:"#fff",background:Bn},icon:"plus",iconPosition:"right",onClick:()=>{const e=[...s];e.push({color:"#"+Math.floor(16777215*Math.random()).toString(16).padStart(6,"0"),position:parseInt(99*Math.random())}),r({...n,colors:e})}})}),"radial"===i?(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:"Center X Position",value:a?.x,onChange:e=>r({...n,centerPositions:{...a,x:e}}),min:0,max:100}),(0,Zt.jsx)(Xn.RangeControl,{label:"Center Y Position",value:a?.y,onChange:e=>r({...n,centerPositions:{...a,y:e}}),min:0,max:100})]}):(0,Zt.jsx)(Xn.RangeControl,{label:"Angle",value:l,onChange:e=>r({...n,angel:e}),min:0,max:360})]})},Go=(0,An.withSelect)((e=>{const{gradients:t}=e("core/block-editor").getSettings();return{gradients:t.length>12?t.slice(0,12):t}}))((e=>{const{label:n="Color",value:r,onChange:i=()=>{},className:o="",gradients:s}=e,[a,l]=(0,t.useState)("solid"),c=Math.floor(9999999*Math.random());return(0,Zt.jsxs)("div",{className:o,children:[(0,Zt.jsx)("style",{children:`#customColorControlPanel-${c}-dualColor{\n\t\t\t\t${r?`background: ${r};`:"\n\t\t\t\t\tbackground-image: linear-gradient( 45deg, #d5d8dc 25%, transparent 0, transparent 75%, #d5d8dc 0, #d5d8dc ), linear-gradient( 45deg, #d5d8dc 25%, transparent 0, transparent 75%, #d5d8dc 0, #d5d8dc );\n\t\t\t\t\tbackground-size: 16px 16px;\n\t\t\t\t\tbackground-position: 0 0, calc(16px / 2) calc(16px / 2);\n\t\t\t\t"}\n\t\t\t}`}),(0,Zt.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,Zt.jsx)(Xi,{className:"",children:n}),(0,Zt.jsx)(Xn.Dropdown,{className:"my-container-class-name",contentClassName:"my-popover-content-classname",renderToggle:({isOpen:e,onToggle:t,onClose:n})=>(0,Zt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[(0,Zt.jsx)("div",{id:`customColorControlPanel-${c}-dualColor`,style:{height:"25px",width:"25px",borderRadius:"50%",border:"1px solid #ccc"}}),(0,Zt.jsx)(Xn.Button,{onClick:t,"aria-expanded":e,icon:"edit"})]}),renderContent:({isOpen:e,onToggle:t,onClose:n})=>(0,Zt.jsxs)("div",{className:"panel-custom-color-control-container",children:[(0,Zt.jsx)(Uo,{label:"Type:",options:[{label:"Solid",value:"solid"},{label:"Gradient",value:"gradient"}],value:a,onChange:e=>l(e)}),"solid"===a&&(0,Zt.jsx)("div",{style:{marginTop:"20px"},children:(0,Zt.jsx)(Wo,{value:r,label:"Color :",onChange:e=>i(e)})}),"gradient"===a&&(0,Zt.jsx)("div",{style:{marginTop:"10px"},children:(0,Zt.jsx)(Xn.GradientPicker,{value:r||Wn,onChange:e=>i(e),gradients:s})}),(0,Zt.jsx)("div",{onClick:n})]})})]})]})})),Yo=window.wp.blockEditor,Ko=e=>{const{className:t,label:n="",value:r,types:i=["image"],onChange:o,placeholder:s=(0,_n.__)("Enter URL")}=e;return(0,Zt.jsxs)("div",{className:t,children:[n&&(0,Zt.jsx)(Xi,{className:"mb5",children:n}),(0,Zt.jsxs)(Xn.PanelRow,{className:"bPlInlineMediaUpload",children:[(0,Zt.jsx)(Xn.TextControl,{value:r,onChange:e=>o(e),placeholder:s}),(0,Zt.jsx)(Yo.MediaUpload,{allowedTypes:i,onSelect:e=>o(e.url),render:({open:e})=>(0,Zt.jsx)(Xn.Button,{className:"button button-primary",onClick:e,children:(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Zt.jsx)("path",{d:"M7.4,10h1.59v5c0,0.55,0.45,1,1,1h4c0.55,0,1-0.45,1-1v-5h1.59c0.89,0,1.34-1.08,0.71-1.71L12.7,3.7 c-0.39-0.39-1.02-0.39-1.41,0L6.7,8.29C6.07,8.92,6.51,10,7.4,10z M5,19c0,0.55,0.45,1,1,1h12c0.55,0,1-0.45,1-1s-0.45-1-1-1H6 C5.45,18,5,18.45,5,19z"})})})})]})]})},Xo=e=>{const{className:t,label:n="",value:r={},types:i=["image"],onChange:o,placeholder:s=(0,_n.__)("Enter URL")}=e;return(0,Zt.jsxs)("div",{className:t,children:[n&&(0,Zt.jsx)(Xi,{className:"mb5",children:n}),(0,Zt.jsxs)(Xn.PanelRow,{className:"bPlInlineMediaUpload",children:[(0,Zt.jsx)(Xn.TextControl,{value:r?.url,onChange:e=>o({id:null,url:e,alt:"",title:"",caption:""}),placeholder:s}),(0,Zt.jsx)(Yo.MediaUploadCheck,{children:(0,Zt.jsx)(Yo.MediaUpload,{allowedTypes:i,onSelect:({id:e,url:t,alt:n,title:r,caption:i})=>o({id:e,url:t,alt:n,title:r,caption:i}),render:({open:e})=>(0,Zt.jsx)(Xn.Button,{className:"button button-primary",onClick:e,icon:"upload"})})})]})]})},Qo=e=>{const{className:t="",label:n="Choose",value:r,types:i=["image/*"],onChange:o=()=>{},default:s="",height:a="50px",width:l="50px",style:c,onClick:d=()=>{},isSvgEnabled:u=!1}=e,h=e=>({onClick:()=>{d(),u&&wp.media({library:{type:["image/svg+xml"]},mimeType:"image/svg+xml"}),e()}}),p=e=>u?(0,Zt.jsx)("img",{src:`data:image/svg+xml;utf8,${r?.url||s}`,alt:"",className:"mediaImage",...h(e),style:{height:a,width:l}}):(0,Zt.jsx)("img",{className:"mediaImage",src:r?.url||s,alt:"",...h(e),style:{height:a,width:l}});return(0,Zt.jsx)("div",{style:c,className:`bPlMediaArea ${t}`,children:(0,Zt.jsx)(Yo.MediaUpload,{value:r?.id?[r?.id]:[],onSelect:({id:e,url:t,alt:n,title:r})=>{o({id:e,url:t,alt:n,title:r})},gallery:!1,allowedTypes:i,multiple:!1,render:({open:e})=>(0,Zt.jsxs)("div",{className:"mediaAreaContainer",children:[s||r?.url?p(e):(0,Zt.jsx)("div",{className:"mediaPlusBtnWrapper",...h(e),children:(0,Zt.jsx)("div",{className:"mediaPlusBtnCircle",children:(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mediaPlusBtn",width:"1em",height:"1em",viewBox:"0 0 448 512",fill:"currentColor",children:(0,Zt.jsx)("path",{d:"M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"})})})}),(0,Zt.jsx)("div",{onClick:()=>o({}),className:"mediaDelete",children:(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 448 512",fill:"currentColor",children:(0,Zt.jsx)("path",{d:"M268 416h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12zM432 80h-82.41l-34-56.7A48 48 0 0 0 274.41 0H173.59a48 48 0 0 0-41.16 23.3L98.41 80H16A16 16 0 0 0 0 96v16a16 16 0 0 0 16 16h16v336a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128h16a16 16 0 0 0 16-16V96a16 16 0 0 0-16-16zM171.84 50.91A6 6 0 0 1 177 48h94a6 6 0 0 1 5.15 2.91L293.61 80H154.39zM368 464H80V128h288zm-212-48h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12z"})})}),(0,Zt.jsx)("div",{...h(e),className:"mediaButton",children:(0,Zt.jsx)("span",{children:n})})]})})})},Zo=[{label:"Default",value:"initial"},{label:"Fixed",value:"fixed"},{label:"Scroll",value:"scroll"}],Jo=[{label:"Default",value:"initial"},{label:"Center Center",value:"center center"},{label:"Center Left",value:"center left"},{label:"Center Right",value:"center right"},{label:"Top Center",value:"center top"},{label:"Top Left",value:"left top"},{label:"Top Right",value:"left bottom"},{label:"Bottom Center",value:"right center"},{label:"Bottom Left",value:"right top"},{label:"Bottom Right",value:"right bottom"},{label:"Custom",value:"custom"}],es=[{label:"Default",value:"initial"},{label:"Repeat",value:"repeat"},{label:"Repeat-X",value:"repeat-x"},{label:"Repeat-Y",value:"repeat-y"},{label:"No-Repeat",value:"no-repeat"}],ts=[{label:"Default",value:"initial"},{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"},{label:"Custom",value:"custom"}],ns=[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"}],rs=[{title:(0,_n.__)("Color"),name:"color"},{title:(0,_n.__)("Gradient"),name:"gradient"},{title:(0,_n.__)("Image"),name:"image"},{title:(0,_n.__)("Video"),name:"video"}],is=((0,An.withSelect)((e=>{const{getDeviceType:t}=e("core/editor");return{device:t()?.toLowerCase()}}))((({name:e="Background",value:t,onChange:n,isVideo:r=!1,device:i})=>{const{type:o="color",color:s="",gradient:a={},img:l={},video:c={}}=t||{},{position:d="center center",xPosition:u,yPosition:h,attachment:p,repeat:f="no-repeat",size:g="cover",customSize:m}=l?.[i]||{};return(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xi,{className:"mt10 mb10",children:e}),(0,Zt.jsx)(Xn.TabPanel,{className:"bPlTabPanel mini",activeClass:"activeTab",tabs:r?rs:rs.filter((e=>"video"!==e.name)),initialTabName:o,onSelect:e=>n({...t,type:e}),children:r=>(0,Zt.jsxs)(Zt.Fragment,{children:["color"===r.name&&(0,Zt.jsx)(Go,{className:"mt20",label:`${e} Color`,value:s,onChange:e=>n({...t,color:e})}),"gradient"===r.name&&(0,Zt.jsx)(qo,{value:a,onChange:e=>n({...t,gradient:e})}),"image"===r.name&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)(Xi,{className:"mt10 mb10",children:[e," Image"]}),(0,Zt.jsx)(Qo,{label:"Upload Image",value:t?.img,onChange:e=>n({...t,img:{...l,url:e.url}}),width:"100%",height:"100%"}),l?.url&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)(Xn.PanelRow,{className:"mt20",children:[(0,Zt.jsx)(Xi,{className:"",children:"Position"}),(0,Zt.jsx)(Qi,{})]}),(0,Zt.jsx)(Xn.SelectControl,{value:d,options:Jo,onChange:e=>n({...t,img:{...l,[i]:{...l[i],position:e}}})}),"custom"===d&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)(Xn.PanelRow,{className:"mt15",children:[(0,Zt.jsx)(Xi,{className:"",children:"X Position"}),(0,Zt.jsx)(Qi,{})]}),(0,Zt.jsx)(Xn.__experimentalUnitControl,{units:ns,value:u,min:-2e3,max:2e3,onChange:e=>n({...t,img:{...l,[i]:{...l[i],xPosition:e}}})}),(0,Zt.jsxs)(Xn.PanelRow,{className:"mt15",children:[(0,Zt.jsx)(Xi,{className:"",children:"Y Position"}),(0,Zt.jsx)(Qi,{})]}),(0,Zt.jsx)(Xn.__experimentalUnitControl,{units:ns,value:h,min:-2e3,max:2e3,onChange:e=>n({...t,img:{...l,[i]:{...l[i],yPosition:e}}})})]}),(0,Zt.jsxs)(Xn.PanelRow,{className:"mt20",children:[(0,Zt.jsx)(Xi,{className:"",children:"Attachment"}),(0,Zt.jsx)(Qi,{})]}),(0,Zt.jsx)(Xn.SelectControl,{value:p,options:Zo,onChange:e=>n({...t,img:{...l,[i]:{...l[i],attachment:e}}})}),(0,Zt.jsxs)(Xn.PanelRow,{className:"mt20",children:[(0,Zt.jsx)(Xi,{className:"",children:"Repeat"}),(0,Zt.jsx)(Qi,{})]}),(0,Zt.jsx)(Xn.SelectControl,{value:f,options:es,onChange:e=>n({...t,img:{...l,[i]:{...l[i],repeat:e}}})}),(0,Zt.jsxs)(Xn.PanelRow,{className:"mt20",children:[(0,Zt.jsx)(Xi,{className:"",children:"Size"}),(0,Zt.jsx)(Qi,{})]}),(0,Zt.jsx)(Xn.SelectControl,{value:g,options:ts,onChange:e=>n({...t,img:{...l,[i]:{...l[i],size:e}}})}),"custom"===g&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)(Xn.PanelRow,{className:"mt15",children:[(0,Zt.jsx)(Xi,{className:"",children:"Width"}),(0,Zt.jsx)(Qi,{})]}),(0,Zt.jsx)(Xn.__experimentalUnitControl,{units:ns,value:m,min:-2e3,max:2e3,onChange:e=>n({...t,img:{...l,[i]:{...l[i],customSize:e}}})})]})]})]}),"video"===r.name&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)(Xi,{className:"mt10 mb10",children:[e," Video"]}),(0,Zt.jsx)(Qo,{loop:c?.loop,types:["video/mp4","video/3gpp","video/x-ms-wmv"],isVideo:!0,value:c,onChange:e=>n({...t,video:{...c,url:e.url}}),label:"Upload Video"}),(0,Zt.jsx)(Xn.__experimentalInputControl,{style:{marginTop:"10px"},label:"Inline Upload",labelPosition:"top",type:"text",value:c?.url,onChange:e=>n({...t,video:{...c,url:e}}),placeholder:"Insert your video link.."}),c?.url&&(0,Zt.jsx)(Xn.ToggleControl,{className:"mt10",label:"Loop",checked:c?.loop,value:c?.loop,onChange:e=>n({...t,video:{...c,loop:e}}),__nextHasNoMarginBottom:!0})]})]})})]})})),e=>{const{className:t,label:n="",labelPosition:r="left",value:i,onChange:o,options:s,isIcon:a=!1,isTextIcon:l=!1,size:c="compact"}=e,d=({className:e=""})=>(0,Zt.jsx)(Xn.ButtonGroup,{className:`bPlBtnGroup ${e||null}`,children:Object.values(s).map((e=>{const{value:t,icon:n="",label:r="",def:s=""}=e,d=i===t;return(0,Zt.jsx)(Xn.Button,{value:t,label:r,showTooltip:!0,tooltipPosition:"top",icon:a?n:null,variant:d?"primary":"","aria-pressed":d,size:c,onClick:()=>o(t,s&&s),children:l?n:a?"":r},t)}))});return n?"left"===r?(0,Zt.jsxs)(Xn.PanelRow,{className:t,children:[(0,Zt.jsx)(Xi,{className:"",children:n}),(0,Zt.jsx)(d,{})]}):(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xi,{children:n}),(0,Zt.jsx)(d,{className:t})]}):(0,Zt.jsx)(d,{className:t})}),os=[{label:"Solid",value:"solid"},{label:"Gradient",value:"gradient"},{label:"Image",value:"image"}],ss=[{label:"Default",value:""},{label:"Initial",value:"initial"},{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],as=[{label:"Default",value:""},{label:"No Repeat",value:"no-repeat"},{label:"Repeat",value:"repeat"},{label:"Repeat X",value:"repeat-x"},{label:"Repeat Y",value:"repeat-y"}],ls=[{label:"Default",value:""},{label:"Cover",value:"cover"},{label:"Auto",value:"auto"},{label:"Contain",value:"contain"}],cs=Xn.__experimentalGradientPicker||Xn.GradientPicker;(0,An.withSelect)((e=>{const{gradients:t}=e("core/block-editor").getSettings();return{gradients:t.length>12?t.slice(0,12):t}}))((e=>{const{className:t="",label:n=(0,_n.__)("Background"),value:r={},onChange:i,defaults:o={},isSolid:s=!0,isGradient:a=!0,isImage:l=!0,gradients:c}=e,d={type:"solid",color:"",gradient:Wn,image:{},position:"center center",attachment:"",repeat:"",size:"",overlayColor:""},u=e=>o?.[e]||d[e],h=e=>i({...r,[e]:u(e)}),p=e=>r?.[e]||u(e),f=(e,t)=>i({...r,[e]:t}),g=e=>r?.[e]&&r?.[e]!==u(e)?(0,Zt.jsx)(Xn.Button,{icon:"image-rotate",className:"bPlResetVal",onClick:()=>h(e)}):null,m=()=>{i({...r,type:"image",image:u("image"),position:u("position"),attachment:u("attachment"),repeat:u("repeat"),size:u("size"),overlayColor:u("overlayColor")})};return(0,Zt.jsxs)(Xn.PanelRow,{className:`bPlDropdown ${t}`,children:[(0,Zt.jsx)(Xi,{className:"mb5",children:n}),(0,Zt.jsx)(Xn.Dropdown,{className:"bPlDropdownContainer",contentClassName:"bPlDropdownPopover",popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:e,onToggle:t})=>(0,Zt.jsx)(Xn.Button,{icon:"edit",onClick:t,"aria-expanded":e}),renderContent:()=>(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)(Xn.PanelRow,{children:[(0,Zt.jsx)(Xi,{className:"",children:(0,_n.__)("Type:")}),(0,Zt.jsx)(is,{value:p("type"),onChange:e=>f("type",e),options:os.filter((e=>{switch(e.value){case"solid":return s;case"gradient":return a;case"image":return l;default:return!0}}))})]}),"solid"===p("type")&&s&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Wo,{className:"mt20",label:(0,_n.__)("Color:"),value:p("color"),onChange:e=>f("color",e),defaultColor:u("color")}),(0,Zt.jsx)(Xn.Flex,{justify:"flex-end",className:"mt10",children:(0,Zt.jsx)(Xn.Button,{variant:"tertiary",onClick:()=>h("color"),children:"Clear"})})]}),"gradient"===p("type")&&a&&(0,Zt.jsx)(cs,{className:"mt20",value:p("gradient"),onChange:e=>f("gradient",e),gradients:c}),"image"===p("type")&&l&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xi,{className:"mb5",children:(0,_n.__)("Image")}),(0,Zt.jsx)(Xo,{types:["image"],value:p("image"),onChange:e=>f("image",e)}),(0,Zt.jsxs)(Xn.PanelRow,{children:[(0,Zt.jsx)(Xi,{className:"",children:(0,_n.__)("Position")}),(0,Zt.jsx)(Xn.__experimentalAlignmentMatrixControl,{value:p("position"),onChange:e=>f("position",e)}),g("position")]}),(0,Zt.jsxs)(Xn.PanelRow,{children:[(0,Zt.jsx)(Xi,{className:"",children:(0,_n.__)("Attachment:")}),(0,Zt.jsx)(Xn.SelectControl,{value:p("attachment"),onChange:e=>f("attachment",e),options:ss}),g("attachments")]}),(0,Zt.jsxs)(Xn.PanelRow,{children:[(0,Zt.jsx)(Xi,{className:"",children:(0,_n.__)("Repeat:")}),(0,Zt.jsx)(Xn.SelectControl,{value:p("repeat"),onChange:e=>f("repeat",e),options:as}),g("repeat")]}),(0,Zt.jsxs)(Xn.PanelRow,{children:[(0,Zt.jsx)(Xi,{className:"",children:(0,_n.__)("Size:")}),(0,Zt.jsx)(Xn.SelectControl,{value:p("size"),onChange:e=>f("size",e),options:ls}),g("size")]}),(0,Zt.jsx)(Wo,{className:"mt20",label:(0,_n.__)("Overlay Color:"),value:p("overlayColor"),onChange:e=>f("overlayColor",e),defaultColor:u("overlayColor")}),(0,Zt.jsx)(Xn.Flex,{justify:"flex-end",className:"mt10",children:(0,Zt.jsx)(Xn.Button,{variant:"tertiary",onClick:m,children:"Clear"})})]})]})})]})}));const ds=window.wp.blocks,us=((0,An.withDispatch)((e=>({replaceBlock:e("core/block-editor").replaceBlock})))((({blocks:e,clientId:n,value:r,minHeight:i="",minWidth:o="200px",viewportWidth:s=1600,replaceBlock:a})=>{const[l,c]=(0,t.useState)(null),d=(e,t)=>{c(e),h(t)},u=(e,t)=>{c(t?e:null)},h=e=>{const t=(0,ds.parse)(e);a(n,t)};return(0,Zt.jsx)("div",{className:"bPlBlockPreviewWrapper",children:e.map(((e,t)=>(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("div",{children:(0,Zt.jsx)(Xn.Button,{className:"bPl-previewBtn "+(r===e.value?"bPl-activeBtn":""),onClick:()=>d(t,e.content),onMouseEnter:()=>u(t,!0),onMouseLeave:()=>u(t,!1),children:e.label})}),l===t&&(0,Zt.jsx)(Xn.Popover,{style:{cursor:"pointer"},onClick:()=>d(t,e.content),children:(0,Zt.jsx)("div",{onMouseEnter:()=>u(t,!0),onMouseLeave:()=>u(t,!1),style:{minWidth:o,minHeight:i},children:(0,Zt.jsx)(Yo.BlockPreview,{blocks:(0,ds.parse)(e.content),viewportWidth:s,minHeight:i})})})]},t)))})})),(0,_n.__)("Normal"),(0,_n.__)("Hover"),[{label:"Solid",value:"solid"},{label:"Gradient",value:"gradient"}]),hs=((0,_n.__)("Default"),(0,_n.__)("Auto"),(0,_n.__)("Hidden"),(0,_n.__)("Visible"),(0,_n.__)("Scroll"),(0,_n.__)("None"),(0,_n.__)("Fade Up"),(0,_n.__)("Fade Down"),(0,_n.__)("Fade Left"),(0,_n.__)("Fade Right"),(0,_n.__)("Fade Up Left"),(0,_n.__)("Fade Up Right"),(0,_n.__)("Fade Down Left"),(0,_n.__)("Fade Down Right"),(0,_n.__)("Flip Left"),(0,_n.__)("Flip Right"),(0,_n.__)("Flip Up"),(0,_n.__)("Flip Down"),(0,_n.__)("Zoom In"),(0,_n.__)("Zoom In Up"),(0,_n.__)("Zoom In Down"),(0,_n.__)("Zoom In Left"),(0,_n.__)("Zoom In Right"),(0,_n.__)("Zoom Out"),(0,_n.__)("Zoom Out Up"),(0,_n.__)("Zoom Out Down"),(0,_n.__)("Zoom Out Right"),(0,_n.__)("Zoom Out Left"),Xn.__experimentalGradientPicker||Xn.GradientPicker),ps=((0,An.withSelect)((e=>{const{gradients:t}=e("core/block-editor").getSettings();return{gradients:t.length>12?t.slice(0,12):t}}))((e=>{const{className:t="",label:n=(0,_n.__)("Colors:"),labelPosition:r="left",value:i,onChange:o,defaults:s={},gradients:a}=e,l={color:"#333",bgType:"solid",bg:"",gradient:Wn},c=e=>s?.[e]||l[e],d=e=>i?.[e]||c(e),u=(e,t)=>o({...i,[e]:t}),h=(0,Zt.jsxs)(Zt.Fragment,{children:[n," ",(0,Zt.jsx)(Xn.ColorIndicator,{colorValue:d("color")})," ",(0,Zt.jsx)(Xn.ColorIndicator,{colorValue:d("gradient"===d("bgType")?"gradient":"bg")})]});return"left"===r?(0,Zt.jsxs)(Xn.PanelRow,{className:`bPlDropdown ${t}`,children:[(0,Zt.jsx)(Xi,{className:"",children:h}),(0,Zt.jsx)(ps,{getValue:d,setValue:u,getDefault:c,gradients:a,bgTypes:us})]}):(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xi,{children:h}),(0,Zt.jsx)(ps,{getValue:d,setValue:u,getDefault:c,gradients:a,bgTypes:us})]})})),({getValue:e,setValue:t,getDefault:n,gradients:r,bgTypes:i})=>(0,Zt.jsx)(Xn.Dropdown,{className:"bPlDropdownContainer",contentClassName:"bPlDropdownPopover",popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:e,onToggle:t})=>(0,Zt.jsx)(Xn.Button,{icon:"edit",onClick:t,"aria-expanded":e}),renderContent:()=>(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Wo,{label:(0,_n.__)("Color:"),value:e("color"),onChange:e=>t("color",e),defaultColor:n("color")}),(0,Zt.jsxs)(Xn.PanelRow,{className:"mt20",children:[(0,Zt.jsx)(Xi,{className:"",children:(0,_n.__)("Background:")}),(0,Zt.jsx)(is,{value:e("bgType"),onChange:e=>t("bgType",e),options:i,size:"small"})]}),"gradient"===e("bgType")?(0,Zt.jsx)(hs,{value:e("gradient"),onChange:e=>t("gradient",e),gradients:r}):(0,Zt.jsx)(Wo,{label:(0,_n.__)("Background Color:"),value:e("bg"),onChange:e=>t("bg",e),defaultColor:n("bg")})]})}));i(8579),i(44),i(997),i(3222),i(2972),i(4144),i(9326),i(6704);const fs=["","fa-solid fa-0","fa-solid fa-1","fa-solid fa-2","fa-solid fa-3","fa-solid fa-4","fa-solid fa-5","fa-solid fa-6","fa-solid fa-7","fa-solid fa-8","fa-solid fa-9","fa-brands fa-11ty","fa-brands fa-42-group","fa-brands fa-500px","fa-solid fa-a","fa-brands fa-accessible-icon","fa-brands fa-accusoft","fa-regular fa-address-book","fa-solid fa-address-book","fa-regular fa-address-card","fa-solid fa-address-card","fa-brands fa-adn","fa-brands fa-adversal","fa-brands fa-affiliatetheme","fa-brands fa-airbnb","fa-regular fa-alarm-clock","fa-solid fa-alarm-clock","fa-brands fa-algolia","fa-solid fa-align-center","fa-solid fa-align-justify","fa-solid fa-align-left","fa-solid fa-align-right","fa-brands fa-alipay","fa-brands fa-amazon","fa-brands fa-amazon-pay","fa-brands fa-amilia","fa-solid fa-anchor","fa-solid fa-anchor-circle-check","fa-solid fa-anchor-circle-exclamation","fa-solid fa-anchor-circle-xmark","fa-solid fa-anchor-lock","fa-brands fa-android","fa-brands fa-angellist","fa-solid fa-angle-down","fa-solid fa-angle-left","fa-solid fa-angle-right","fa-solid fa-angle-up","fa-solid fa-angles-down","fa-solid fa-angles-left","fa-solid fa-angles-right","fa-solid fa-angles-up","fa-brands fa-angrycreative","fa-brands fa-angular","fa-solid fa-ankh","fa-brands fa-app-store","fa-brands fa-app-store-ios","fa-brands fa-apper","fa-brands fa-apple","fa-brands fa-apple-pay","fa-solid fa-apple-whole","fa-solid fa-archway","fa-solid fa-arrow-down","fa-solid fa-arrow-down-1-9","fa-solid fa-arrow-down-9-1","fa-solid fa-arrow-down-a-z","fa-solid fa-arrow-down-long","fa-solid fa-arrow-down-short-wide","fa-solid fa-arrow-down-up-across-line","fa-solid fa-arrow-down-up-lock","fa-solid fa-arrow-down-wide-short","fa-solid fa-arrow-down-z-a","fa-solid fa-arrow-left","fa-solid fa-arrow-left-long","fa-solid fa-arrow-pointer","fa-solid fa-arrow-right","fa-solid fa-arrow-right-arrow-left","fa-solid fa-arrow-right-from-bracket","fa-solid fa-arrow-right-long","fa-solid fa-arrow-right-to-bracket","fa-solid fa-arrow-right-to-city","fa-solid fa-arrow-rotate-left","fa-solid fa-arrow-rotate-right","fa-solid fa-arrow-trend-down","fa-solid fa-arrow-trend-up","fa-solid fa-arrow-turn-down","fa-solid fa-arrow-turn-up","fa-solid fa-arrow-up","fa-solid fa-arrow-up-1-9","fa-solid fa-arrow-up-9-1","fa-solid fa-arrow-up-a-z","fa-solid fa-arrow-up-from-bracket","fa-solid fa-arrow-up-from-ground-water","fa-solid fa-arrow-up-from-water-pump","fa-solid fa-arrow-up-long","fa-solid fa-arrow-up-right-dots","fa-solid fa-arrow-up-right-from-square","fa-solid fa-arrow-up-short-wide","fa-solid fa-arrow-up-wide-short","fa-solid fa-arrow-up-z-a","fa-solid fa-arrows-down-to-line","fa-solid fa-arrows-down-to-people","fa-solid fa-arrows-left-right","fa-solid fa-arrows-left-right-to-line","fa-solid fa-arrows-rotate","fa-solid fa-arrows-spin","fa-solid fa-arrows-split-up-and-left","fa-solid fa-arrows-to-circle","fa-solid fa-arrows-to-dot","fa-solid fa-arrows-to-eye","fa-solid fa-arrows-turn-right","fa-solid fa-arrows-turn-to-dots","fa-solid fa-arrows-up-down","fa-solid fa-arrows-up-down-left-right","fa-solid fa-arrows-up-to-line","fa-brands fa-artstation","fa-solid fa-asterisk","fa-brands fa-asymmetrik","fa-solid fa-at","fa-brands fa-atlassian","fa-solid fa-atom","fa-brands fa-audible","fa-solid fa-audio-description","fa-solid fa-austral-sign","fa-brands fa-autoprefixer","fa-brands fa-avianex","fa-brands fa-aviato","fa-solid fa-award","fa-brands fa-aws","fa-solid fa-b","fa-solid fa-baby","fa-solid fa-baby-carriage","fa-solid fa-backward","fa-solid fa-backward-fast","fa-solid fa-backward-step","fa-solid fa-bacon","fa-solid fa-bacteria","fa-solid fa-bacterium","fa-solid fa-bag-shopping","fa-solid fa-bahai","fa-solid fa-baht-sign","fa-solid fa-ban","fa-solid fa-ban-smoking","fa-solid fa-bandage","fa-brands fa-bandcamp","fa-solid fa-bangladeshi-taka-sign","fa-solid fa-barcode","fa-solid fa-bars","fa-solid fa-bars-progress","fa-solid fa-bars-staggered","fa-solid fa-baseball","fa-solid fa-baseball-bat-ball","fa-solid fa-basket-shopping","fa-solid fa-basketball","fa-solid fa-bath","fa-solid fa-battery-empty","fa-solid fa-battery-full","fa-solid fa-battery-half","fa-solid fa-battery-quarter","fa-solid fa-battery-three-quarters","fa-brands fa-battle-net","fa-solid fa-bed","fa-solid fa-bed-pulse","fa-solid fa-beer-mug-empty","fa-brands fa-behance","fa-regular fa-bell","fa-solid fa-bell","fa-solid fa-bell-concierge","fa-regular fa-bell-slash","fa-solid fa-bell-slash","fa-solid fa-bezier-curve","fa-solid fa-bicycle","fa-brands fa-bilibili","fa-brands fa-bimobject","fa-solid fa-binoculars","fa-solid fa-biohazard","fa-brands fa-bitbucket","fa-brands fa-bitcoin","fa-solid fa-bitcoin-sign","fa-brands fa-bity","fa-brands fa-black-tie","fa-brands fa-blackberry","fa-solid fa-blender","fa-solid fa-blender-phone","fa-solid fa-blog","fa-brands fa-blogger","fa-brands fa-blogger-b","fa-brands fa-bluesky","fa-brands fa-bluetooth","fa-brands fa-bluetooth-b","fa-solid fa-bold","fa-solid fa-bolt","fa-solid fa-bolt-lightning","fa-solid fa-bomb","fa-solid fa-bone","fa-solid fa-bong","fa-solid fa-book","fa-solid fa-book-atlas","fa-solid fa-book-bible","fa-solid fa-book-bookmark","fa-solid fa-book-journal-whills","fa-solid fa-book-medical","fa-solid fa-book-open","fa-solid fa-book-open-reader","fa-solid fa-book-quran","fa-solid fa-book-skull","fa-solid fa-book-tanakh","fa-regular fa-bookmark","fa-solid fa-bookmark","fa-brands fa-bootstrap","fa-solid fa-border-all","fa-solid fa-border-none","fa-solid fa-border-top-left","fa-solid fa-bore-hole","fa-brands fa-bots","fa-solid fa-bottle-droplet","fa-solid fa-bottle-water","fa-solid fa-bowl-food","fa-solid fa-bowl-rice","fa-solid fa-bowling-ball","fa-solid fa-box","fa-solid fa-box-archive","fa-solid fa-box-open","fa-solid fa-box-tissue","fa-solid fa-boxes-packing","fa-solid fa-boxes-stacked","fa-solid fa-braille","fa-solid fa-brain","fa-brands fa-brave","fa-brands fa-brave-reverse","fa-solid fa-brazilian-real-sign","fa-solid fa-bread-slice","fa-solid fa-bridge","fa-solid fa-bridge-circle-check","fa-solid fa-bridge-circle-exclamation","fa-solid fa-bridge-circle-xmark","fa-solid fa-bridge-lock","fa-solid fa-bridge-water","fa-solid fa-briefcase","fa-solid fa-briefcase-medical","fa-solid fa-broom","fa-solid fa-broom-ball","fa-solid fa-brush","fa-brands fa-btc","fa-solid fa-bucket","fa-brands fa-buffer","fa-solid fa-bug","fa-solid fa-bug-slash","fa-solid fa-bugs","fa-regular fa-building","fa-solid fa-building","fa-solid fa-building-circle-arrow-right","fa-solid fa-building-circle-check","fa-solid fa-building-circle-exclamation","fa-solid fa-building-circle-xmark","fa-solid fa-building-columns","fa-solid fa-building-flag","fa-solid fa-building-lock","fa-solid fa-building-ngo","fa-solid fa-building-shield","fa-solid fa-building-un","fa-solid fa-building-user","fa-solid fa-building-wheat","fa-solid fa-bullhorn","fa-solid fa-bullseye","fa-solid fa-burger","fa-brands fa-buromobelexperte","fa-solid fa-burst","fa-solid fa-bus","fa-solid fa-bus-side","fa-solid fa-bus-simple","fa-solid fa-business-time","fa-brands fa-buy-n-large","fa-brands fa-buysellads","fa-solid fa-c","fa-solid fa-cable-car","fa-solid fa-cake-candles","fa-solid fa-calculator","fa-regular fa-calendar","fa-solid fa-calendar","fa-regular fa-calendar-check","fa-solid fa-calendar-check","fa-solid fa-calendar-day","fa-regular fa-calendar-days","fa-solid fa-calendar-days","fa-regular fa-calendar-minus","fa-solid fa-calendar-minus","fa-regular fa-calendar-plus","fa-solid fa-calendar-plus","fa-solid fa-calendar-week","fa-regular fa-calendar-xmark","fa-solid fa-calendar-xmark","fa-regular fa-camera","fa-solid fa-camera","fa-solid fa-camera-retro","fa-solid fa-camera-rotate","fa-solid fa-campground","fa-brands fa-canadian-maple-leaf","fa-solid fa-candy-cane","fa-solid fa-cannabis","fa-solid fa-capsules","fa-solid fa-car","fa-solid fa-car-battery","fa-solid fa-car-burst","fa-solid fa-car-on","fa-solid fa-car-rear","fa-solid fa-car-side","fa-solid fa-car-tunnel","fa-solid fa-caravan","fa-solid fa-caret-down","fa-solid fa-caret-left","fa-solid fa-caret-right","fa-solid fa-caret-up","fa-solid fa-carrot","fa-solid fa-cart-arrow-down","fa-solid fa-cart-flatbed","fa-solid fa-cart-flatbed-suitcase","fa-solid fa-cart-plus","fa-solid fa-cart-shopping","fa-brands fa-cash-app","fa-solid fa-cash-register","fa-solid fa-cat","fa-brands fa-cc-amazon-pay","fa-brands fa-cc-amex","fa-brands fa-cc-apple-pay","fa-brands fa-cc-diners-club","fa-brands fa-cc-discover","fa-brands fa-cc-jcb","fa-brands fa-cc-mastercard","fa-brands fa-cc-paypal","fa-brands fa-cc-stripe","fa-brands fa-cc-visa","fa-solid fa-cedi-sign","fa-solid fa-cent-sign","fa-brands fa-centercode","fa-brands fa-centos","fa-solid fa-certificate","fa-solid fa-chair","fa-solid fa-chalkboard","fa-solid fa-chalkboard-user","fa-solid fa-champagne-glasses","fa-solid fa-charging-station","fa-solid fa-chart-area","fa-regular fa-chart-bar","fa-solid fa-chart-bar","fa-solid fa-chart-column","fa-solid fa-chart-diagram","fa-solid fa-chart-gantt","fa-solid fa-chart-line","fa-solid fa-chart-pie","fa-solid fa-chart-simple","fa-solid fa-check","fa-solid fa-check-double","fa-solid fa-check-to-slot","fa-solid fa-cheese","fa-solid fa-chess","fa-regular fa-chess-bishop","fa-solid fa-chess-bishop","fa-solid fa-chess-board","fa-regular fa-chess-king","fa-solid fa-chess-king","fa-regular fa-chess-knight","fa-solid fa-chess-knight","fa-regular fa-chess-pawn","fa-solid fa-chess-pawn","fa-regular fa-chess-queen","fa-solid fa-chess-queen","fa-regular fa-chess-rook","fa-solid fa-chess-rook","fa-solid fa-chevron-down","fa-solid fa-chevron-left","fa-solid fa-chevron-right","fa-solid fa-chevron-up","fa-solid fa-child","fa-solid fa-child-combatant","fa-solid fa-child-dress","fa-solid fa-child-reaching","fa-solid fa-children","fa-brands fa-chrome","fa-brands fa-chromecast","fa-solid fa-church","fa-regular fa-circle","fa-solid fa-circle","fa-solid fa-circle-arrow-down","fa-solid fa-circle-arrow-left","fa-solid fa-circle-arrow-right","fa-solid fa-circle-arrow-up","fa-regular fa-circle-check","fa-solid fa-circle-check","fa-solid fa-circle-chevron-down","fa-solid fa-circle-chevron-left","fa-solid fa-circle-chevron-right","fa-solid fa-circle-chevron-up","fa-solid fa-circle-dollar-to-slot","fa-regular fa-circle-dot","fa-solid fa-circle-dot","fa-regular fa-circle-down","fa-solid fa-circle-down","fa-solid fa-circle-exclamation","fa-solid fa-circle-h","fa-solid fa-circle-half-stroke","fa-solid fa-circle-info","fa-regular fa-circle-left","fa-solid fa-circle-left","fa-solid fa-circle-minus","fa-solid fa-circle-nodes","fa-solid fa-circle-notch","fa-regular fa-circle-pause","fa-solid fa-circle-pause","fa-regular fa-circle-play","fa-solid fa-circle-play","fa-solid fa-circle-plus","fa-regular fa-circle-question","fa-solid fa-circle-question","fa-solid fa-circle-radiation","fa-regular fa-circle-right","fa-solid fa-circle-right","fa-regular fa-circle-stop","fa-solid fa-circle-stop","fa-regular fa-circle-up","fa-solid fa-circle-up","fa-regular fa-circle-user","fa-solid fa-circle-user","fa-regular fa-circle-xmark","fa-solid fa-circle-xmark","fa-solid fa-city","fa-solid fa-clapperboard","fa-regular fa-clipboard","fa-solid fa-clipboard","fa-solid fa-clipboard-check","fa-solid fa-clipboard-list","fa-solid fa-clipboard-question","fa-solid fa-clipboard-user","fa-regular fa-clock","fa-solid fa-clock","fa-solid fa-clock-rotate-left","fa-regular fa-clone","fa-solid fa-clone","fa-regular fa-closed-captioning","fa-solid fa-closed-captioning","fa-regular fa-cloud","fa-solid fa-cloud","fa-solid fa-cloud-arrow-down","fa-solid fa-cloud-arrow-up","fa-solid fa-cloud-bolt","fa-solid fa-cloud-meatball","fa-solid fa-cloud-moon","fa-solid fa-cloud-moon-rain","fa-solid fa-cloud-rain","fa-solid fa-cloud-showers-heavy","fa-solid fa-cloud-showers-water","fa-solid fa-cloud-sun","fa-solid fa-cloud-sun-rain","fa-brands fa-cloudflare","fa-brands fa-cloudscale","fa-brands fa-cloudsmith","fa-brands fa-cloudversify","fa-solid fa-clover","fa-brands fa-cmplid","fa-solid fa-code","fa-solid fa-code-branch","fa-solid fa-code-commit","fa-solid fa-code-compare","fa-solid fa-code-fork","fa-solid fa-code-merge","fa-solid fa-code-pull-request","fa-brands fa-codepen","fa-brands fa-codiepie","fa-solid fa-coins","fa-solid fa-colon-sign","fa-regular fa-comment","fa-solid fa-comment","fa-solid fa-comment-dollar","fa-regular fa-comment-dots","fa-solid fa-comment-dots","fa-solid fa-comment-medical","fa-solid fa-comment-nodes","fa-solid fa-comment-slash","fa-solid fa-comment-sms","fa-regular fa-comments","fa-solid fa-comments","fa-solid fa-comments-dollar","fa-solid fa-compact-disc","fa-regular fa-compass","fa-solid fa-compass","fa-solid fa-compass-drafting","fa-solid fa-compress","fa-solid fa-computer","fa-solid fa-computer-mouse","fa-brands fa-confluence","fa-brands fa-connectdevelop","fa-brands fa-contao","fa-solid fa-cookie","fa-solid fa-cookie-bite","fa-regular fa-copy","fa-solid fa-copy","fa-regular fa-copyright","fa-solid fa-copyright","fa-brands fa-cotton-bureau","fa-solid fa-couch","fa-solid fa-cow","fa-brands fa-cpanel","fa-brands fa-creative-commons","fa-brands fa-creative-commons-by","fa-brands fa-creative-commons-nc","fa-brands fa-creative-commons-nc-eu","fa-brands fa-creative-commons-nc-jp","fa-brands fa-creative-commons-nd","fa-brands fa-creative-commons-pd","fa-brands fa-creative-commons-pd-alt","fa-brands fa-creative-commons-remix","fa-brands fa-creative-commons-sa","fa-brands fa-creative-commons-sampling","fa-brands fa-creative-commons-sampling-plus","fa-brands fa-creative-commons-share","fa-brands fa-creative-commons-zero","fa-regular fa-credit-card","fa-solid fa-credit-card","fa-brands fa-critical-role","fa-solid fa-crop","fa-solid fa-crop-simple","fa-solid fa-cross","fa-solid fa-crosshairs","fa-solid fa-crow","fa-solid fa-crown","fa-solid fa-crutch","fa-solid fa-cruzeiro-sign","fa-brands fa-css","fa-brands fa-css3","fa-brands fa-css3-alt","fa-solid fa-cube","fa-solid fa-cubes","fa-solid fa-cubes-stacked","fa-brands fa-cuttlefish","fa-solid fa-d","fa-brands fa-d-and-d","fa-brands fa-d-and-d-beyond","fa-brands fa-dailymotion","fa-brands fa-dart-lang","fa-brands fa-dashcube","fa-solid fa-database","fa-brands fa-debian","fa-brands fa-deezer","fa-solid fa-delete-left","fa-brands fa-delicious","fa-solid fa-democrat","fa-brands fa-deploydog","fa-brands fa-deskpro","fa-solid fa-desktop","fa-brands fa-dev","fa-brands fa-deviantart","fa-solid fa-dharmachakra","fa-brands fa-dhl","fa-solid fa-diagram-next","fa-solid fa-diagram-predecessor","fa-solid fa-diagram-project","fa-solid fa-diagram-successor","fa-solid fa-diamond","fa-solid fa-diamond-turn-right","fa-brands fa-diaspora","fa-solid fa-dice","fa-solid fa-dice-d20","fa-solid fa-dice-d6","fa-solid fa-dice-five","fa-solid fa-dice-four","fa-solid fa-dice-one","fa-solid fa-dice-six","fa-solid fa-dice-three","fa-solid fa-dice-two","fa-brands fa-digg","fa-brands fa-digital-ocean","fa-brands fa-discord","fa-brands fa-discourse","fa-solid fa-disease","fa-solid fa-display","fa-brands fa-disqus","fa-solid fa-divide","fa-solid fa-dna","fa-brands fa-dochub","fa-brands fa-docker","fa-solid fa-dog","fa-solid fa-dollar-sign","fa-solid fa-dolly","fa-solid fa-dong-sign","fa-solid fa-door-closed","fa-solid fa-door-open","fa-solid fa-dove","fa-solid fa-down-left-and-up-right-to-center","fa-solid fa-down-long","fa-solid fa-download","fa-brands fa-draft2digital","fa-solid fa-dragon","fa-solid fa-draw-polygon","fa-brands fa-dribbble","fa-brands fa-dropbox","fa-solid fa-droplet","fa-solid fa-droplet-slash","fa-solid fa-drum","fa-solid fa-drum-steelpan","fa-solid fa-drumstick-bite","fa-brands fa-drupal","fa-solid fa-dumbbell","fa-solid fa-dumpster","fa-solid fa-dumpster-fire","fa-solid fa-dungeon","fa-brands fa-duolingo","fa-brands fa-dyalog","fa-solid fa-e","fa-solid fa-ear-deaf","fa-solid fa-ear-listen","fa-brands fa-earlybirds","fa-solid fa-earth-africa","fa-solid fa-earth-americas","fa-solid fa-earth-asia","fa-solid fa-earth-europe","fa-solid fa-earth-oceania","fa-brands fa-ebay","fa-brands fa-edge","fa-brands fa-edge-legacy","fa-solid fa-egg","fa-solid fa-eject","fa-brands fa-elementor","fa-solid fa-elevator","fa-brands fa-eleventy","fa-solid fa-ellipsis","fa-solid fa-ellipsis-vertical","fa-brands fa-ello","fa-brands fa-ember","fa-brands fa-empire","fa-regular fa-envelope","fa-solid fa-envelope","fa-solid fa-envelope-circle-check","fa-regular fa-envelope-open","fa-solid fa-envelope-open","fa-solid fa-envelope-open-text","fa-solid fa-envelopes-bulk","fa-brands fa-envira","fa-solid fa-equals","fa-solid fa-eraser","fa-brands fa-erlang","fa-brands fa-ethereum","fa-solid fa-ethernet","fa-brands fa-etsy","fa-solid fa-euro-sign","fa-brands fa-evernote","fa-solid fa-exclamation","fa-solid fa-expand","fa-brands fa-expeditedssl","fa-solid fa-explosion","fa-regular fa-eye","fa-solid fa-eye","fa-solid fa-eye-dropper","fa-solid fa-eye-low-vision","fa-regular fa-eye-slash","fa-solid fa-eye-slash","fa-solid fa-f","fa-regular fa-face-angry","fa-solid fa-face-angry","fa-regular fa-face-dizzy","fa-solid fa-face-dizzy","fa-regular fa-face-flushed","fa-solid fa-face-flushed","fa-regular fa-face-frown","fa-solid fa-face-frown","fa-regular fa-face-frown-open","fa-solid fa-face-frown-open","fa-regular fa-face-grimace","fa-solid fa-face-grimace","fa-regular fa-face-grin","fa-solid fa-face-grin","fa-regular fa-face-grin-beam","fa-solid fa-face-grin-beam","fa-regular fa-face-grin-beam-sweat","fa-solid fa-face-grin-beam-sweat","fa-regular fa-face-grin-hearts","fa-solid fa-face-grin-hearts","fa-regular fa-face-grin-squint","fa-solid fa-face-grin-squint","fa-regular fa-face-grin-squint-tears","fa-solid fa-face-grin-squint-tears","fa-regular fa-face-grin-stars","fa-solid fa-face-grin-stars","fa-regular fa-face-grin-tears","fa-solid fa-face-grin-tears","fa-regular fa-face-grin-tongue","fa-solid fa-face-grin-tongue","fa-regular fa-face-grin-tongue-squint","fa-solid fa-face-grin-tongue-squint","fa-regular fa-face-grin-tongue-wink","fa-solid fa-face-grin-tongue-wink","fa-regular fa-face-grin-wide","fa-solid fa-face-grin-wide","fa-regular fa-face-grin-wink","fa-solid fa-face-grin-wink","fa-regular fa-face-kiss","fa-solid fa-face-kiss","fa-regular fa-face-kiss-beam","fa-solid fa-face-kiss-beam","fa-regular fa-face-kiss-wink-heart","fa-solid fa-face-kiss-wink-heart","fa-regular fa-face-laugh","fa-solid fa-face-laugh","fa-regular fa-face-laugh-beam","fa-solid fa-face-laugh-beam","fa-regular fa-face-laugh-squint","fa-solid fa-face-laugh-squint","fa-regular fa-face-laugh-wink","fa-solid fa-face-laugh-wink","fa-regular fa-face-meh","fa-solid fa-face-meh","fa-regular fa-face-meh-blank","fa-solid fa-face-meh-blank","fa-regular fa-face-rolling-eyes","fa-solid fa-face-rolling-eyes","fa-regular fa-face-sad-cry","fa-solid fa-face-sad-cry","fa-regular fa-face-sad-tear","fa-solid fa-face-sad-tear","fa-regular fa-face-smile","fa-solid fa-face-smile","fa-regular fa-face-smile-beam","fa-solid fa-face-smile-beam","fa-regular fa-face-smile-wink","fa-solid fa-face-smile-wink","fa-regular fa-face-surprise","fa-solid fa-face-surprise","fa-regular fa-face-tired","fa-solid fa-face-tired","fa-brands fa-facebook","fa-brands fa-facebook-f","fa-brands fa-facebook-messenger","fa-solid fa-fan","fa-brands fa-fantasy-flight-games","fa-solid fa-faucet","fa-solid fa-faucet-drip","fa-solid fa-fax","fa-solid fa-feather","fa-solid fa-feather-pointed","fa-brands fa-fedex","fa-brands fa-fedora","fa-solid fa-ferry","fa-brands fa-figma","fa-regular fa-file","fa-solid fa-file","fa-solid fa-file-arrow-down","fa-solid fa-file-arrow-up","fa-regular fa-file-audio","fa-solid fa-file-audio","fa-solid fa-file-circle-check","fa-solid fa-file-circle-exclamation","fa-solid fa-file-circle-minus","fa-solid fa-file-circle-plus","fa-solid fa-file-circle-question","fa-solid fa-file-circle-xmark","fa-regular fa-file-code","fa-solid fa-file-code","fa-solid fa-file-contract","fa-solid fa-file-csv","fa-regular fa-file-excel","fa-solid fa-file-excel","fa-solid fa-file-export","fa-solid fa-file-fragment","fa-solid fa-file-half-dashed","fa-regular fa-file-image","fa-solid fa-file-image","fa-solid fa-file-import","fa-solid fa-file-invoice","fa-solid fa-file-invoice-dollar","fa-regular fa-file-lines","fa-solid fa-file-lines","fa-solid fa-file-medical","fa-regular fa-file-pdf","fa-solid fa-file-pdf","fa-solid fa-file-pen","fa-regular fa-file-powerpoint","fa-solid fa-file-powerpoint","fa-solid fa-file-prescription","fa-solid fa-file-shield","fa-solid fa-file-signature","fa-regular fa-file-video","fa-solid fa-file-video","fa-solid fa-file-waveform","fa-regular fa-file-word","fa-solid fa-file-word","fa-regular fa-file-zipper","fa-solid fa-file-zipper","fa-brands fa-files-pinwheel","fa-solid fa-fill","fa-solid fa-fill-drip","fa-solid fa-film","fa-solid fa-filter","fa-solid fa-filter-circle-dollar","fa-solid fa-filter-circle-xmark","fa-solid fa-fingerprint","fa-solid fa-fire","fa-solid fa-fire-burner","fa-solid fa-fire-extinguisher","fa-solid fa-fire-flame-curved","fa-solid fa-fire-flame-simple","fa-brands fa-firefox","fa-brands fa-firefox-browser","fa-brands fa-first-order","fa-brands fa-first-order-alt","fa-brands fa-firstdraft","fa-solid fa-fish","fa-solid fa-fish-fins","fa-regular fa-flag","fa-solid fa-flag","fa-solid fa-flag-checkered","fa-solid fa-flag-usa","fa-solid fa-flask","fa-solid fa-flask-vial","fa-brands fa-flickr","fa-brands fa-flipboard","fa-regular fa-floppy-disk","fa-solid fa-floppy-disk","fa-solid fa-florin-sign","fa-brands fa-flutter","fa-brands fa-fly","fa-regular fa-folder","fa-solid fa-folder","fa-regular fa-folder-closed","fa-solid fa-folder-closed","fa-solid fa-folder-minus","fa-regular fa-folder-open","fa-solid fa-folder-open","fa-solid fa-folder-plus","fa-solid fa-folder-tree","fa-solid fa-font","fa-brands fa-font-awesome","fa-regular fa-font-awesome","fa-solid fa-font-awesome","fa-brands fa-fonticons","fa-brands fa-fonticons-fi","fa-solid fa-football","fa-brands fa-fort-awesome","fa-brands fa-fort-awesome-alt","fa-brands fa-forumbee","fa-solid fa-forward","fa-solid fa-forward-fast","fa-solid fa-forward-step","fa-brands fa-foursquare","fa-solid fa-franc-sign","fa-brands fa-free-code-camp","fa-brands fa-freebsd","fa-solid fa-frog","fa-brands fa-fulcrum","fa-regular fa-futbol","fa-solid fa-futbol","fa-solid fa-g","fa-brands fa-galactic-republic","fa-brands fa-galactic-senate","fa-solid fa-gamepad","fa-solid fa-gas-pump","fa-solid fa-gauge","fa-solid fa-gauge-high","fa-solid fa-gauge-simple","fa-solid fa-gauge-simple-high","fa-solid fa-gavel","fa-solid fa-gear","fa-solid fa-gears","fa-regular fa-gem","fa-solid fa-gem","fa-solid fa-genderless","fa-brands fa-get-pocket","fa-brands fa-gg","fa-brands fa-gg-circle","fa-solid fa-ghost","fa-solid fa-gift","fa-solid fa-gifts","fa-brands fa-git","fa-brands fa-git-alt","fa-brands fa-github","fa-brands fa-github-alt","fa-brands fa-gitkraken","fa-brands fa-gitlab","fa-brands fa-gitter","fa-solid fa-glass-water","fa-solid fa-glass-water-droplet","fa-solid fa-glasses","fa-brands fa-glide","fa-brands fa-glide-g","fa-solid fa-globe","fa-brands fa-gofore","fa-brands fa-golang","fa-solid fa-golf-ball-tee","fa-brands fa-goodreads","fa-brands fa-goodreads-g","fa-brands fa-google","fa-brands fa-google-drive","fa-brands fa-google-pay","fa-brands fa-google-play","fa-brands fa-google-plus","fa-brands fa-google-plus-g","fa-brands fa-google-scholar","fa-brands fa-google-wallet","fa-solid fa-gopuram","fa-solid fa-graduation-cap","fa-brands fa-gratipay","fa-brands fa-grav","fa-solid fa-greater-than","fa-solid fa-greater-than-equal","fa-solid fa-grip","fa-solid fa-grip-lines","fa-solid fa-grip-lines-vertical","fa-solid fa-grip-vertical","fa-brands fa-gripfire","fa-solid fa-group-arrows-rotate","fa-brands fa-grunt","fa-solid fa-guarani-sign","fa-brands fa-guilded","fa-solid fa-guitar","fa-brands fa-gulp","fa-solid fa-gun","fa-solid fa-h","fa-brands fa-hacker-news","fa-brands fa-hackerrank","fa-solid fa-hammer","fa-solid fa-hamsa","fa-regular fa-hand","fa-solid fa-hand","fa-regular fa-hand-back-fist","fa-solid fa-hand-back-fist","fa-solid fa-hand-dots","fa-solid fa-hand-fist","fa-solid fa-hand-holding","fa-solid fa-hand-holding-dollar","fa-solid fa-hand-holding-droplet","fa-solid fa-hand-holding-hand","fa-solid fa-hand-holding-heart","fa-solid fa-hand-holding-medical","fa-regular fa-hand-lizard","fa-solid fa-hand-lizard","fa-solid fa-hand-middle-finger","fa-regular fa-hand-peace","fa-solid fa-hand-peace","fa-regular fa-hand-point-down","fa-solid fa-hand-point-down","fa-regular fa-hand-point-left","fa-solid fa-hand-point-left","fa-regular fa-hand-point-right","fa-solid fa-hand-point-right","fa-regular fa-hand-point-up","fa-solid fa-hand-point-up","fa-regular fa-hand-pointer","fa-solid fa-hand-pointer","fa-regular fa-hand-scissors","fa-solid fa-hand-scissors","fa-solid fa-hand-sparkles","fa-regular fa-hand-spock","fa-solid fa-hand-spock","fa-solid fa-handcuffs","fa-solid fa-hands","fa-solid fa-hands-asl-interpreting","fa-solid fa-hands-bound","fa-solid fa-hands-bubbles","fa-solid fa-hands-clapping","fa-solid fa-hands-holding","fa-solid fa-hands-holding-child","fa-solid fa-hands-holding-circle","fa-solid fa-hands-praying","fa-regular fa-handshake","fa-solid fa-handshake","fa-solid fa-handshake-angle","fa-solid fa-handshake-slash","fa-solid fa-hanukiah","fa-regular fa-hard-drive","fa-solid fa-hard-drive","fa-brands fa-hashnode","fa-solid fa-hashtag","fa-solid fa-hat-cowboy","fa-solid fa-hat-cowboy-side","fa-solid fa-hat-wizard","fa-solid fa-head-side-cough","fa-solid fa-head-side-cough-slash","fa-solid fa-head-side-mask","fa-solid fa-head-side-virus","fa-solid fa-heading","fa-regular fa-headphones","fa-solid fa-headphones","fa-solid fa-headset","fa-regular fa-heart","fa-solid fa-heart","fa-solid fa-heart-circle-bolt","fa-solid fa-heart-circle-check","fa-solid fa-heart-circle-exclamation","fa-solid fa-heart-circle-minus","fa-solid fa-heart-circle-plus","fa-solid fa-heart-circle-xmark","fa-solid fa-heart-crack","fa-solid fa-heart-pulse","fa-solid fa-helicopter","fa-solid fa-helicopter-symbol","fa-solid fa-helmet-safety","fa-solid fa-helmet-un","fa-solid fa-hexagon","fa-solid fa-hexagon-nodes","fa-solid fa-hexagon-nodes-bolt","fa-solid fa-highlighter","fa-solid fa-hill-avalanche","fa-solid fa-hill-rockslide","fa-solid fa-hippo","fa-brands fa-hips","fa-brands fa-hire-a-helper","fa-brands fa-hive","fa-solid fa-hockey-puck","fa-solid fa-holly-berry","fa-brands fa-hooli","fa-brands fa-hornbill","fa-solid fa-horse","fa-solid fa-horse-head","fa-regular fa-hospital","fa-solid fa-hospital","fa-solid fa-hospital-user","fa-solid fa-hot-tub-person","fa-solid fa-hotdog","fa-solid fa-hotel","fa-brands fa-hotjar","fa-regular fa-hourglass","fa-solid fa-hourglass","fa-solid fa-hourglass-end","fa-regular fa-hourglass-half","fa-solid fa-hourglass-half","fa-solid fa-hourglass-start","fa-regular fa-house","fa-solid fa-house","fa-solid fa-house-chimney","fa-solid fa-house-chimney-crack","fa-solid fa-house-chimney-medical","fa-solid fa-house-chimney-user","fa-solid fa-house-chimney-window","fa-solid fa-house-circle-check","fa-solid fa-house-circle-exclamation","fa-solid fa-house-circle-xmark","fa-solid fa-house-crack","fa-solid fa-house-fire","fa-solid fa-house-flag","fa-solid fa-house-flood-water","fa-solid fa-house-flood-water-circle-arrow-right","fa-solid fa-house-laptop","fa-solid fa-house-lock","fa-solid fa-house-medical","fa-solid fa-house-medical-circle-check","fa-solid fa-house-medical-circle-exclamation","fa-solid fa-house-medical-circle-xmark","fa-solid fa-house-medical-flag","fa-solid fa-house-signal","fa-solid fa-house-tsunami","fa-solid fa-house-user","fa-brands fa-houzz","fa-solid fa-hryvnia-sign","fa-brands fa-html5","fa-brands fa-hubspot","fa-solid fa-hurricane","fa-solid fa-i","fa-solid fa-i-cursor","fa-solid fa-ice-cream","fa-solid fa-icicles","fa-solid fa-icons","fa-regular fa-id-badge","fa-solid fa-id-badge","fa-regular fa-id-card","fa-solid fa-id-card","fa-solid fa-id-card-clip","fa-brands fa-ideal","fa-solid fa-igloo","fa-regular fa-image","fa-solid fa-image","fa-solid fa-image-portrait","fa-regular fa-images","fa-solid fa-images","fa-brands fa-imdb","fa-solid fa-inbox","fa-solid fa-indent","fa-solid fa-indian-rupee-sign","fa-solid fa-industry","fa-solid fa-infinity","fa-solid fa-info","fa-brands fa-innosoft","fa-brands fa-instagram","fa-brands fa-instalod","fa-brands fa-intercom","fa-brands fa-internet-explorer","fa-brands fa-invision","fa-brands fa-ioxhost","fa-solid fa-italic","fa-brands fa-itch-io","fa-brands fa-itunes","fa-brands fa-itunes-note","fa-solid fa-j","fa-solid fa-jar","fa-solid fa-jar-wheat","fa-brands fa-java","fa-solid fa-jedi","fa-brands fa-jedi-order","fa-brands fa-jenkins","fa-solid fa-jet-fighter","fa-solid fa-jet-fighter-up","fa-brands fa-jira","fa-brands fa-joget","fa-solid fa-joint","fa-brands fa-joomla","fa-brands fa-js","fa-brands fa-jsfiddle","fa-solid fa-jug-detergent","fa-brands fa-jxl","fa-solid fa-k","fa-solid fa-kaaba","fa-brands fa-kaggle","fa-brands fa-kakao-talk","fa-solid fa-key","fa-brands fa-keybase","fa-regular fa-keyboard","fa-solid fa-keyboard","fa-brands fa-keycdn","fa-solid fa-khanda","fa-brands fa-kickstarter","fa-brands fa-kickstarter-k","fa-solid fa-kip-sign","fa-solid fa-kit-medical","fa-solid fa-kitchen-set","fa-solid fa-kiwi-bird","fa-brands fa-korvue","fa-solid fa-l","fa-solid fa-land-mine-on","fa-solid fa-landmark","fa-solid fa-landmark-dome","fa-solid fa-landmark-flag","fa-solid fa-language","fa-solid fa-laptop","fa-solid fa-laptop-code","fa-solid fa-laptop-file","fa-solid fa-laptop-medical","fa-brands fa-laravel","fa-solid fa-lari-sign","fa-brands fa-lastfm","fa-solid fa-layer-group","fa-solid fa-leaf","fa-brands fa-leanpub","fa-solid fa-left-long","fa-solid fa-left-right","fa-regular fa-lemon","fa-solid fa-lemon","fa-brands fa-less","fa-solid fa-less-than","fa-solid fa-less-than-equal","fa-brands fa-letterboxd","fa-regular fa-life-ring","fa-solid fa-life-ring","fa-regular fa-lightbulb","fa-solid fa-lightbulb","fa-brands fa-line","fa-solid fa-lines-leaning","fa-solid fa-link","fa-solid fa-link-slash","fa-brands fa-linkedin","fa-brands fa-linkedin-in","fa-brands fa-linktree","fa-brands fa-linode","fa-brands fa-linux","fa-solid fa-lira-sign","fa-solid fa-list","fa-solid fa-list-check","fa-solid fa-list-ol","fa-solid fa-list-ul","fa-solid fa-litecoin-sign","fa-solid fa-location-arrow","fa-solid fa-location-crosshairs","fa-solid fa-location-dot","fa-solid fa-location-pin","fa-solid fa-location-pin-lock","fa-solid fa-lock","fa-solid fa-lock-open","fa-solid fa-locust","fa-brands fa-lumon","fa-brands fa-lumon-drop","fa-solid fa-lungs","fa-solid fa-lungs-virus","fa-brands fa-lyft","fa-solid fa-m","fa-brands fa-magento","fa-solid fa-magnet","fa-solid fa-magnifying-glass","fa-solid fa-magnifying-glass-arrow-right","fa-solid fa-magnifying-glass-chart","fa-solid fa-magnifying-glass-dollar","fa-solid fa-magnifying-glass-location","fa-solid fa-magnifying-glass-minus","fa-solid fa-magnifying-glass-plus","fa-brands fa-mailchimp","fa-solid fa-manat-sign","fa-brands fa-mandalorian","fa-regular fa-map","fa-solid fa-map","fa-solid fa-map-location","fa-solid fa-map-location-dot","fa-solid fa-map-pin","fa-brands fa-markdown","fa-solid fa-marker","fa-solid fa-mars","fa-solid fa-mars-and-venus","fa-solid fa-mars-and-venus-burst","fa-solid fa-mars-double","fa-solid fa-mars-stroke","fa-solid fa-mars-stroke-right","fa-solid fa-mars-stroke-up","fa-solid fa-martini-glass","fa-solid fa-martini-glass-citrus","fa-solid fa-martini-glass-empty","fa-solid fa-mask","fa-solid fa-mask-face","fa-solid fa-mask-ventilator","fa-solid fa-masks-theater","fa-brands fa-mastodon","fa-solid fa-mattress-pillow","fa-brands fa-maxcdn","fa-solid fa-maximize","fa-brands fa-mdb","fa-solid fa-medal","fa-brands fa-medapps","fa-brands fa-medium","fa-brands fa-medium-m","fa-brands fa-medrt","fa-brands fa-meetup","fa-brands fa-megaport","fa-solid fa-memory","fa-brands fa-mendeley","fa-solid fa-menorah","fa-solid fa-mercury","fa-regular fa-message","fa-solid fa-message","fa-brands fa-meta","fa-solid fa-meteor","fa-brands fa-microblog","fa-solid fa-microchip","fa-solid fa-microphone","fa-solid fa-microphone-lines","fa-solid fa-microphone-lines-slash","fa-solid fa-microphone-slash","fa-solid fa-microscope","fa-brands fa-microsoft","fa-solid fa-mill-sign","fa-solid fa-minimize","fa-brands fa-mintbit","fa-solid fa-minus","fa-solid fa-mitten","fa-brands fa-mix","fa-brands fa-mixcloud","fa-brands fa-mixer","fa-brands fa-mizuni","fa-solid fa-mobile","fa-solid fa-mobile-button","fa-solid fa-mobile-retro","fa-solid fa-mobile-screen","fa-solid fa-mobile-screen-button","fa-solid fa-mobile-vibrate","fa-brands fa-modx","fa-brands fa-monero","fa-solid fa-money-bill","fa-regular fa-money-bill-1","fa-solid fa-money-bill-1","fa-solid fa-money-bill-1-wave","fa-solid fa-money-bill-transfer","fa-solid fa-money-bill-trend-up","fa-solid fa-money-bill-wave","fa-solid fa-money-bill-wheat","fa-solid fa-money-bills","fa-solid fa-money-check","fa-solid fa-money-check-dollar","fa-solid fa-monument","fa-regular fa-moon","fa-solid fa-moon","fa-solid fa-mortar-pestle","fa-solid fa-mosque","fa-solid fa-mosquito","fa-solid fa-mosquito-net","fa-solid fa-motorcycle","fa-solid fa-mound","fa-solid fa-mountain","fa-solid fa-mountain-city","fa-solid fa-mountain-sun","fa-solid fa-mug-hot","fa-solid fa-mug-saucer","fa-solid fa-music","fa-solid fa-n","fa-solid fa-naira-sign","fa-brands fa-napster","fa-brands fa-neos","fa-solid fa-network-wired","fa-solid fa-neuter","fa-regular fa-newspaper","fa-solid fa-newspaper","fa-brands fa-nfc-directional","fa-brands fa-nfc-symbol","fa-brands fa-nimblr","fa-brands fa-node","fa-brands fa-node-js","fa-solid fa-non-binary","fa-solid fa-not-equal","fa-solid fa-notdef","fa-regular fa-note-sticky","fa-solid fa-note-sticky","fa-solid fa-notes-medical","fa-brands fa-notion","fa-brands fa-npm","fa-brands fa-ns8","fa-brands fa-nutritionix","fa-solid fa-o","fa-regular fa-object-group","fa-solid fa-object-group","fa-regular fa-object-ungroup","fa-solid fa-object-ungroup","fa-solid fa-octagon","fa-brands fa-octopus-deploy","fa-brands fa-odnoklassniki","fa-brands fa-odysee","fa-solid fa-oil-can","fa-solid fa-oil-well","fa-brands fa-old-republic","fa-solid fa-om","fa-brands fa-openai","fa-brands fa-opencart","fa-brands fa-openid","fa-brands fa-opensuse","fa-brands fa-opera","fa-brands fa-optin-monster","fa-brands fa-orcid","fa-brands fa-osi","fa-solid fa-otter","fa-solid fa-outdent","fa-solid fa-p","fa-brands fa-padlet","fa-brands fa-page4","fa-brands fa-pagelines","fa-solid fa-pager","fa-solid fa-paint-roller","fa-solid fa-paintbrush","fa-solid fa-palette","fa-brands fa-palfed","fa-solid fa-pallet","fa-brands fa-pandora","fa-solid fa-panorama","fa-regular fa-paper-plane","fa-solid fa-paper-plane","fa-solid fa-paperclip","fa-solid fa-parachute-box","fa-solid fa-paragraph","fa-solid fa-passport","fa-regular fa-paste","fa-solid fa-paste","fa-brands fa-patreon","fa-solid fa-pause","fa-solid fa-paw","fa-brands fa-paypal","fa-solid fa-peace","fa-solid fa-pen","fa-solid fa-pen-clip","fa-solid fa-pen-fancy","fa-solid fa-pen-nib","fa-solid fa-pen-ruler","fa-regular fa-pen-to-square","fa-solid fa-pen-to-square","fa-solid fa-pencil","fa-solid fa-pentagon","fa-solid fa-people-arrows","fa-solid fa-people-carry-box","fa-solid fa-people-group","fa-solid fa-people-line","fa-solid fa-people-pulling","fa-solid fa-people-robbery","fa-solid fa-people-roof","fa-solid fa-pepper-hot","fa-brands fa-perbyte","fa-solid fa-percent","fa-brands fa-periscope","fa-solid fa-person","fa-solid fa-person-arrow-down-to-line","fa-solid fa-person-arrow-up-from-line","fa-solid fa-person-biking","fa-solid fa-person-booth","fa-solid fa-person-breastfeeding","fa-solid fa-person-burst","fa-solid fa-person-cane","fa-solid fa-person-chalkboard","fa-solid fa-person-circle-check","fa-solid fa-person-circle-exclamation","fa-solid fa-person-circle-minus","fa-solid fa-person-circle-plus","fa-solid fa-person-circle-question","fa-solid fa-person-circle-xmark","fa-solid fa-person-digging","fa-solid fa-person-dots-from-line","fa-solid fa-person-dress","fa-solid fa-person-dress-burst","fa-solid fa-person-drowning","fa-solid fa-person-falling","fa-solid fa-person-falling-burst","fa-solid fa-person-half-dress","fa-solid fa-person-harassing","fa-solid fa-person-hiking","fa-solid fa-person-military-pointing","fa-solid fa-person-military-rifle","fa-solid fa-person-military-to-person","fa-solid fa-person-praying","fa-solid fa-person-pregnant","fa-solid fa-person-rays","fa-solid fa-person-rifle","fa-solid fa-person-running","fa-solid fa-person-shelter","fa-solid fa-person-skating","fa-solid fa-person-skiing","fa-solid fa-person-skiing-nordic","fa-solid fa-person-snowboarding","fa-solid fa-person-swimming","fa-solid fa-person-through-window","fa-solid fa-person-walking","fa-solid fa-person-walking-arrow-loop-left","fa-solid fa-person-walking-arrow-right","fa-solid fa-person-walking-dashed-line-arrow-right","fa-solid fa-person-walking-luggage","fa-solid fa-person-walking-with-cane","fa-solid fa-peseta-sign","fa-solid fa-peso-sign","fa-brands fa-phabricator","fa-brands fa-phoenix-framework","fa-brands fa-phoenix-squadron","fa-solid fa-phone","fa-solid fa-phone-flip","fa-solid fa-phone-slash","fa-solid fa-phone-volume","fa-solid fa-photo-film","fa-brands fa-php","fa-brands fa-pied-piper","fa-brands fa-pied-piper-alt","fa-brands fa-pied-piper-hat","fa-brands fa-pied-piper-pp","fa-brands fa-pied-piper-square","fa-solid fa-piggy-bank","fa-solid fa-pills","fa-brands fa-pinterest","fa-brands fa-pinterest-p","fa-brands fa-pix","fa-brands fa-pixelfed","fa-brands fa-pixiv","fa-solid fa-pizza-slice","fa-solid fa-place-of-worship","fa-solid fa-plane","fa-solid fa-plane-arrival","fa-solid fa-plane-circle-check","fa-solid fa-plane-circle-exclamation","fa-solid fa-plane-circle-xmark","fa-solid fa-plane-departure","fa-solid fa-plane-lock","fa-solid fa-plane-slash","fa-solid fa-plane-up","fa-solid fa-plant-wilt","fa-solid fa-plate-wheat","fa-solid fa-play","fa-brands fa-playstation","fa-solid fa-plug","fa-solid fa-plug-circle-bolt","fa-solid fa-plug-circle-check","fa-solid fa-plug-circle-exclamation","fa-solid fa-plug-circle-minus","fa-solid fa-plug-circle-plus","fa-solid fa-plug-circle-xmark","fa-solid fa-plus","fa-solid fa-plus-minus","fa-solid fa-podcast","fa-solid fa-poo","fa-solid fa-poo-storm","fa-solid fa-poop","fa-solid fa-power-off","fa-solid fa-prescription","fa-solid fa-prescription-bottle","fa-solid fa-prescription-bottle-medical","fa-solid fa-print","fa-brands fa-product-hunt","fa-solid fa-pump-medical","fa-solid fa-pump-soap","fa-brands fa-pushed","fa-solid fa-puzzle-piece","fa-brands fa-python","fa-solid fa-q","fa-brands fa-qq","fa-solid fa-qrcode","fa-solid fa-question","fa-brands fa-quinscape","fa-brands fa-quora","fa-solid fa-quote-left","fa-solid fa-quote-right","fa-solid fa-r","fa-brands fa-r-project","fa-solid fa-radiation","fa-solid fa-radio","fa-solid fa-rainbow","fa-solid fa-ranking-star","fa-brands fa-raspberry-pi","fa-brands fa-ravelry","fa-brands fa-react","fa-brands fa-reacteurope","fa-brands fa-readme","fa-brands fa-rebel","fa-solid fa-receipt","fa-solid fa-record-vinyl","fa-solid fa-rectangle-ad","fa-regular fa-rectangle-list","fa-solid fa-rectangle-list","fa-regular fa-rectangle-xmark","fa-solid fa-rectangle-xmark","fa-solid fa-recycle","fa-brands fa-red-river","fa-brands fa-reddit","fa-brands fa-reddit-alien","fa-brands fa-redhat","fa-regular fa-registered","fa-solid fa-registered","fa-brands fa-rendact","fa-brands fa-renren","fa-solid fa-repeat","fa-solid fa-reply","fa-solid fa-reply-all","fa-brands fa-replyd","fa-solid fa-republican","fa-brands fa-researchgate","fa-brands fa-resolving","fa-solid fa-restroom","fa-solid fa-retweet","fa-brands fa-rev","fa-solid fa-ribbon","fa-solid fa-right-from-bracket","fa-solid fa-right-left","fa-solid fa-right-long","fa-solid fa-right-to-bracket","fa-solid fa-ring","fa-solid fa-road","fa-solid fa-road-barrier","fa-solid fa-road-bridge","fa-solid fa-road-circle-check","fa-solid fa-road-circle-exclamation","fa-solid fa-road-circle-xmark","fa-solid fa-road-lock","fa-solid fa-road-spikes","fa-solid fa-robot","fa-solid fa-rocket","fa-brands fa-rocketchat","fa-brands fa-rockrms","fa-solid fa-rotate","fa-solid fa-rotate-left","fa-solid fa-rotate-right","fa-solid fa-route","fa-solid fa-rss","fa-solid fa-ruble-sign","fa-solid fa-rug","fa-solid fa-ruler","fa-solid fa-ruler-combined","fa-solid fa-ruler-horizontal","fa-solid fa-ruler-vertical","fa-solid fa-rupee-sign","fa-solid fa-rupiah-sign","fa-brands fa-rust","fa-solid fa-s","fa-solid fa-sack-dollar","fa-solid fa-sack-xmark","fa-brands fa-safari","fa-solid fa-sailboat","fa-brands fa-salesforce","fa-brands fa-sass","fa-solid fa-satellite","fa-solid fa-satellite-dish","fa-solid fa-scale-balanced","fa-solid fa-scale-unbalanced","fa-solid fa-scale-unbalanced-flip","fa-brands fa-schlix","fa-solid fa-school","fa-solid fa-school-circle-check","fa-solid fa-school-circle-exclamation","fa-solid fa-school-circle-xmark","fa-solid fa-school-flag","fa-solid fa-school-lock","fa-solid fa-scissors","fa-brands fa-screenpal","fa-solid fa-screwdriver","fa-solid fa-screwdriver-wrench","fa-brands fa-scribd","fa-solid fa-scroll","fa-solid fa-scroll-torah","fa-solid fa-sd-card","fa-brands fa-searchengin","fa-solid fa-section","fa-solid fa-seedling","fa-brands fa-sellcast","fa-brands fa-sellsy","fa-solid fa-septagon","fa-solid fa-server","fa-brands fa-servicestack","fa-solid fa-shapes","fa-solid fa-share","fa-regular fa-share-from-square","fa-solid fa-share-from-square","fa-solid fa-share-nodes","fa-solid fa-sheet-plastic","fa-solid fa-shekel-sign","fa-solid fa-shield","fa-solid fa-shield-cat","fa-solid fa-shield-dog","fa-solid fa-shield-halved","fa-solid fa-shield-heart","fa-solid fa-shield-virus","fa-solid fa-ship","fa-solid fa-shirt","fa-brands fa-shirtsinbulk","fa-solid fa-shoe-prints","fa-brands fa-shoelace","fa-solid fa-shop","fa-solid fa-shop-lock","fa-solid fa-shop-slash","fa-brands fa-shopify","fa-brands fa-shopware","fa-solid fa-shower","fa-solid fa-shrimp","fa-solid fa-shuffle","fa-solid fa-shuttle-space","fa-solid fa-sign-hanging","fa-solid fa-signal","fa-brands fa-signal-messenger","fa-solid fa-signature","fa-solid fa-signs-post","fa-solid fa-sim-card","fa-brands fa-simplybuilt","fa-solid fa-single-quote-left","fa-solid fa-single-quote-right","fa-solid fa-sink","fa-brands fa-sistrix","fa-solid fa-sitemap","fa-brands fa-sith","fa-brands fa-sitrox","fa-brands fa-sketch","fa-solid fa-skull","fa-solid fa-skull-crossbones","fa-brands fa-skyatlas","fa-brands fa-skype","fa-brands fa-slack","fa-brands fa-slack-hash","fa-solid fa-slash","fa-solid fa-sleigh","fa-solid fa-sliders","fa-brands fa-slideshare","fa-solid fa-smog","fa-solid fa-smoking","fa-brands fa-snapchat","fa-brands fa-snapchat-ghost","fa-regular fa-snowflake","fa-solid fa-snowflake","fa-solid fa-snowman","fa-solid fa-snowplow","fa-solid fa-soap","fa-solid fa-socks","fa-solid fa-solar-panel","fa-solid fa-sort","fa-solid fa-sort-down","fa-solid fa-sort-up","fa-brands fa-soundcloud","fa-brands fa-sourcetree","fa-solid fa-spa","fa-brands fa-space-awesome","fa-solid fa-spaghetti-monster-flying","fa-brands fa-speakap","fa-brands fa-speaker-deck","fa-solid fa-spell-check","fa-solid fa-spider","fa-solid fa-spinner","fa-solid fa-spiral","fa-solid fa-splotch","fa-solid fa-spoon","fa-brands fa-spotify","fa-solid fa-spray-can","fa-solid fa-spray-can-sparkles","fa-regular fa-square","fa-solid fa-square","fa-solid fa-square-arrow-up-right","fa-brands fa-square-behance","fa-solid fa-square-binary","fa-brands fa-square-bluesky","fa-regular fa-square-caret-down","fa-solid fa-square-caret-down","fa-regular fa-square-caret-left","fa-solid fa-square-caret-left","fa-regular fa-square-caret-right","fa-solid fa-square-caret-right","fa-regular fa-square-caret-up","fa-solid fa-square-caret-up","fa-regular fa-square-check","fa-solid fa-square-check","fa-brands fa-square-dribbble","fa-solid fa-square-envelope","fa-brands fa-square-facebook","fa-brands fa-square-figma","fa-brands fa-square-font-awesome","fa-brands fa-square-font-awesome-stroke","fa-regular fa-square-full","fa-solid fa-square-full","fa-brands fa-square-git","fa-brands fa-square-github","fa-brands fa-square-gitlab","fa-brands fa-square-google-plus","fa-solid fa-square-h","fa-brands fa-square-hacker-news","fa-brands fa-square-instagram","fa-brands fa-square-js","fa-brands fa-square-lastfm","fa-brands fa-square-letterboxd","fa-brands fa-square-linkedin","fa-regular fa-square-minus","fa-solid fa-square-minus","fa-solid fa-square-nfi","fa-brands fa-square-odnoklassniki","fa-solid fa-square-parking","fa-solid fa-square-pen","fa-solid fa-square-person-confined","fa-solid fa-square-phone","fa-solid fa-square-phone-flip","fa-brands fa-square-pied-piper","fa-brands fa-square-pinterest","fa-regular fa-square-plus","fa-solid fa-square-plus","fa-solid fa-square-poll-horizontal","fa-solid fa-square-poll-vertical","fa-brands fa-square-reddit","fa-solid fa-square-root-variable","fa-solid fa-square-rss","fa-solid fa-square-share-nodes","fa-brands fa-square-snapchat","fa-brands fa-square-steam","fa-brands fa-square-threads","fa-brands fa-square-tumblr","fa-brands fa-square-twitter","fa-solid fa-square-up-right","fa-brands fa-square-upwork","fa-brands fa-square-viadeo","fa-brands fa-square-vimeo","fa-solid fa-square-virus","fa-brands fa-square-web-awesome","fa-brands fa-square-web-awesome-stroke","fa-brands fa-square-whatsapp","fa-brands fa-square-x-twitter","fa-brands fa-square-xing","fa-solid fa-square-xmark","fa-brands fa-square-youtube","fa-brands fa-squarespace","fa-brands fa-stack-exchange","fa-brands fa-stack-overflow","fa-brands fa-stackpath","fa-solid fa-staff-snake","fa-solid fa-stairs","fa-solid fa-stamp","fa-solid fa-stapler","fa-regular fa-star","fa-solid fa-star","fa-solid fa-star-and-crescent","fa-regular fa-star-half","fa-solid fa-star-half","fa-regular fa-star-half-stroke","fa-solid fa-star-half-stroke","fa-solid fa-star-of-david","fa-solid fa-star-of-life","fa-brands fa-staylinked","fa-brands fa-steam","fa-brands fa-steam-symbol","fa-solid fa-sterling-sign","fa-solid fa-stethoscope","fa-brands fa-sticker-mule","fa-solid fa-stop","fa-solid fa-stopwatch","fa-solid fa-stopwatch-20","fa-solid fa-store","fa-solid fa-store-slash","fa-brands fa-strava","fa-solid fa-street-view","fa-solid fa-strikethrough","fa-brands fa-stripe","fa-brands fa-stripe-s","fa-solid fa-stroopwafel","fa-brands fa-stubber","fa-brands fa-studiovinari","fa-brands fa-stumbleupon","fa-brands fa-stumbleupon-circle","fa-solid fa-subscript","fa-solid fa-suitcase","fa-solid fa-suitcase-medical","fa-solid fa-suitcase-rolling","fa-regular fa-sun","fa-solid fa-sun","fa-solid fa-sun-plant-wilt","fa-brands fa-superpowers","fa-solid fa-superscript","fa-brands fa-supple","fa-brands fa-suse","fa-solid fa-swatchbook","fa-brands fa-swift","fa-brands fa-symfony","fa-solid fa-synagogue","fa-solid fa-syringe","fa-solid fa-t","fa-solid fa-table","fa-solid fa-table-cells","fa-solid fa-table-cells-column-lock","fa-solid fa-table-cells-large","fa-solid fa-table-cells-row-lock","fa-solid fa-table-cells-row-unlock","fa-solid fa-table-columns","fa-solid fa-table-list","fa-solid fa-table-tennis-paddle-ball","fa-solid fa-tablet","fa-solid fa-tablet-button","fa-solid fa-tablet-screen-button","fa-solid fa-tablets","fa-solid fa-tachograph-digital","fa-solid fa-tag","fa-solid fa-tags","fa-solid fa-tape","fa-solid fa-tarp","fa-solid fa-tarp-droplet","fa-solid fa-taxi","fa-brands fa-teamspeak","fa-solid fa-teeth","fa-solid fa-teeth-open","fa-brands fa-telegram","fa-brands fa-telegram-plane","fa-solid fa-temperature-arrow-down","fa-solid fa-temperature-arrow-up","fa-solid fa-temperature-empty","fa-solid fa-temperature-full","fa-solid fa-temperature-half","fa-solid fa-temperature-high","fa-solid fa-temperature-low","fa-solid fa-temperature-quarter","fa-solid fa-temperature-three-quarters","fa-brands fa-tencent-weibo","fa-solid fa-tenge-sign","fa-solid fa-tent","fa-solid fa-tent-arrow-down-to-line","fa-solid fa-tent-arrow-left-right","fa-solid fa-tent-arrow-turn-left","fa-solid fa-tent-arrows-down","fa-solid fa-tents","fa-solid fa-terminal","fa-brands fa-tex","fa-solid fa-text-height","fa-solid fa-text-slash","fa-solid fa-text-width","fa-brands fa-the-red-yeti","fa-brands fa-themeco","fa-brands fa-themeisle","fa-solid fa-thermometer","fa-brands fa-think-peaks","fa-brands fa-threads","fa-regular fa-thumbs-down","fa-solid fa-thumbs-down","fa-regular fa-thumbs-up","fa-solid fa-thumbs-up","fa-solid fa-thumbtack","fa-solid fa-thumbtack-slash","fa-solid fa-ticket","fa-solid fa-ticket-simple","fa-brands fa-tidal","fa-brands fa-tiktok","fa-solid fa-timeline","fa-solid fa-toggle-off","fa-solid fa-toggle-on","fa-solid fa-toilet","fa-solid fa-toilet-paper","fa-solid fa-toilet-paper-slash","fa-solid fa-toilet-portable","fa-solid fa-toilets-portable","fa-solid fa-toolbox","fa-solid fa-tooth","fa-solid fa-torii-gate","fa-solid fa-tornado","fa-solid fa-tower-broadcast","fa-solid fa-tower-cell","fa-solid fa-tower-observation","fa-solid fa-tractor","fa-brands fa-trade-federation","fa-solid fa-trademark","fa-solid fa-traffic-light","fa-solid fa-trailer","fa-solid fa-train","fa-solid fa-train-subway","fa-solid fa-train-tram","fa-solid fa-transgender","fa-solid fa-trash","fa-solid fa-trash-arrow-up","fa-regular fa-trash-can","fa-solid fa-trash-can","fa-solid fa-trash-can-arrow-up","fa-solid fa-tree","fa-solid fa-tree-city","fa-brands fa-trello","fa-solid fa-triangle-exclamation","fa-solid fa-trophy","fa-solid fa-trowel","fa-solid fa-trowel-bricks","fa-regular fa-truck","fa-solid fa-truck","fa-solid fa-truck-arrow-right","fa-solid fa-truck-droplet","fa-solid fa-truck-fast","fa-solid fa-truck-field","fa-solid fa-truck-field-un","fa-solid fa-truck-front","fa-solid fa-truck-medical","fa-solid fa-truck-monster","fa-solid fa-truck-moving","fa-solid fa-truck-pickup","fa-solid fa-truck-plane","fa-solid fa-truck-ramp-box","fa-solid fa-tty","fa-brands fa-tumblr","fa-solid fa-turkish-lira-sign","fa-solid fa-turn-down","fa-solid fa-turn-up","fa-solid fa-tv","fa-brands fa-twitch","fa-brands fa-twitter","fa-brands fa-typo3","fa-solid fa-u","fa-brands fa-uber","fa-brands fa-ubuntu","fa-brands fa-uikit","fa-brands fa-umbraco","fa-solid fa-umbrella","fa-solid fa-umbrella-beach","fa-brands fa-uncharted","fa-solid fa-underline","fa-brands fa-uniregistry","fa-brands fa-unity","fa-solid fa-universal-access","fa-solid fa-unlock","fa-solid fa-unlock-keyhole","fa-brands fa-unsplash","fa-brands fa-untappd","fa-solid fa-up-down","fa-solid fa-up-down-left-right","fa-solid fa-up-long","fa-solid fa-up-right-and-down-left-from-center","fa-solid fa-up-right-from-square","fa-solid fa-upload","fa-brands fa-ups","fa-brands fa-upwork","fa-brands fa-usb","fa-regular fa-user","fa-solid fa-user","fa-solid fa-user-astronaut","fa-solid fa-user-check","fa-solid fa-user-clock","fa-solid fa-user-doctor","fa-solid fa-user-gear","fa-solid fa-user-graduate","fa-solid fa-user-group","fa-solid fa-user-injured","fa-solid fa-user-lock","fa-solid fa-user-minus","fa-solid fa-user-ninja","fa-solid fa-user-nurse","fa-solid fa-user-pen","fa-solid fa-user-plus","fa-solid fa-user-secret","fa-solid fa-user-shield","fa-solid fa-user-slash","fa-solid fa-user-tag","fa-solid fa-user-tie","fa-solid fa-user-xmark","fa-solid fa-users","fa-solid fa-users-between-lines","fa-solid fa-users-gear","fa-solid fa-users-line","fa-solid fa-users-rays","fa-solid fa-users-rectangle","fa-solid fa-users-slash","fa-solid fa-users-viewfinder","fa-brands fa-usps","fa-brands fa-ussunnah","fa-solid fa-utensils","fa-solid fa-v","fa-brands fa-vaadin","fa-solid fa-van-shuttle","fa-solid fa-vault","fa-solid fa-venus","fa-solid fa-venus-double","fa-solid fa-venus-mars","fa-solid fa-vest","fa-solid fa-vest-patches","fa-brands fa-viacoin","fa-brands fa-viadeo","fa-solid fa-vial","fa-solid fa-vial-circle-check","fa-solid fa-vial-virus","fa-solid fa-vials","fa-brands fa-viber","fa-solid fa-video","fa-solid fa-video-slash","fa-solid fa-vihara","fa-brands fa-vimeo","fa-brands fa-vimeo-v","fa-brands fa-vine","fa-solid fa-virus","fa-solid fa-virus-covid","fa-solid fa-virus-covid-slash","fa-solid fa-virus-slash","fa-solid fa-viruses","fa-brands fa-vk","fa-brands fa-vnv","fa-solid fa-voicemail","fa-solid fa-volcano","fa-solid fa-volleyball","fa-solid fa-volume-high","fa-solid fa-volume-low","fa-solid fa-volume-off","fa-solid fa-volume-xmark","fa-solid fa-vr-cardboard","fa-brands fa-vsco","fa-brands fa-vuejs","fa-solid fa-w","fa-brands fa-w3c","fa-solid fa-walkie-talkie","fa-solid fa-wallet","fa-solid fa-wand-magic","fa-solid fa-wand-magic-sparkles","fa-solid fa-wand-sparkles","fa-solid fa-warehouse","fa-brands fa-watchman-monitoring","fa-solid fa-water","fa-solid fa-water-ladder","fa-solid fa-wave-square","fa-brands fa-waze","fa-brands fa-web-awesome","fa-solid fa-web-awesome","fa-brands fa-webflow","fa-brands fa-weebly","fa-brands fa-weibo","fa-solid fa-weight-hanging","fa-solid fa-weight-scale","fa-brands fa-weixin","fa-brands fa-whatsapp","fa-solid fa-wheat-awn","fa-solid fa-wheat-awn-circle-exclamation","fa-solid fa-wheelchair","fa-solid fa-wheelchair-move","fa-solid fa-whiskey-glass","fa-brands fa-whmcs","fa-solid fa-wifi","fa-brands fa-wikipedia-w","fa-solid fa-wind","fa-regular fa-window-maximize","fa-solid fa-window-maximize","fa-regular fa-window-minimize","fa-solid fa-window-minimize","fa-regular fa-window-restore","fa-solid fa-window-restore","fa-brands fa-windows","fa-solid fa-wine-bottle","fa-solid fa-wine-glass","fa-solid fa-wine-glass-empty","fa-brands fa-wirsindhandwerk","fa-brands fa-wix","fa-brands fa-wizards-of-the-coast","fa-brands fa-wodu","fa-brands fa-wolf-pack-battalion","fa-solid fa-won-sign","fa-brands fa-wordpress","fa-brands fa-wordpress-simple","fa-solid fa-worm","fa-brands fa-wpbeginner","fa-brands fa-wpexplorer","fa-brands fa-wpforms","fa-brands fa-wpressr","fa-solid fa-wrench","fa-brands fa-wsh","fa-solid fa-x","fa-solid fa-x-ray","fa-brands fa-x-twitter","fa-brands fa-xbox","fa-brands fa-xing","fa-solid fa-xmark","fa-solid fa-xmarks-lines","fa-solid fa-y","fa-brands fa-y-combinator","fa-brands fa-yahoo","fa-brands fa-yammer","fa-brands fa-yandex","fa-brands fa-yandex-international","fa-brands fa-yarn","fa-brands fa-yelp","fa-solid fa-yen-sign","fa-solid fa-yin-yang","fa-brands fa-yoast","fa-brands fa-youtube","fa-solid fa-z","fa-brands fa-zhihu"],gs=Xn.GradientPicker||Xn.__experimentalGradientPicker,ms=e=>(e=>e?.slice(e?.indexOf(" fa-")+4))(e)?.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ");(0,An.withSelect)((e=>{const{gradients:t}=e("core/block-editor").getSettings();return{gradients:t.length>12?t.slice(0,12):t}}))((e=>{const{className:n="",label:r=(0,_n.__)("Select Icon:"),value:i={},onChange:o,defaults:s={},isSize:a=!0,isColor:l=!0,gradients:c}=e,d={class:"",fontSize:16,colorType:"solid",color:"inherit",gradient:Wn},u=e=>s[e]||d[e],h=e=>i[e]||u(e),p=(e,t)=>o({...i,[e]:t}),[f,g]=(0,t.useState)(""),[m,b]=(0,t.useState)(!1),v=fs.filter((e=>ms(e).toLowerCase().includes(f.toLowerCase())));return(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)(Xn.PanelRow,{className:`bPlIconTitle ${n}`,children:[(0,Zt.jsx)(Xi,{className:"mt0 mb0",children:r}),(0,Zt.jsx)(Xn.Tooltip,{text:ms(i.class),placement:"top",position:"top",children:(0,Zt.jsx)("i",{className:i.class})})]}),(0,Zt.jsxs)("div",{className:"bPlIconSelect",children:[(0,Zt.jsx)("input",{type:"search",value:f,onClick:()=>b(!m),placeholder:ms(h("class"))||"Search & Select Icon",onChange:e=>g(e.target.value)}),(0,Zt.jsx)("span",{className:"dashicon dashicons dashicons-"+(m?"arrow-up":"arrow-down"),onClick:()=>b(!m)}),m&&(0,Zt.jsx)("div",{className:"bPlIconLists",children:v?.map((e=>(0,Zt.jsx)(Xn.Tooltip,{text:ms(e),placement:"top",position:"top",children:(0,Zt.jsx)("i",{onClick:()=>{o({...i,class:e}),g(""),b(!1)},className:e})},e)))})]}),a&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xi,{children:(0,_n.__)("Icon Size:")}),(0,Zt.jsx)(Xn.RangeControl,{value:h("fontSize"),onChange:e=>p("fontSize",e),min:0,max:400,step:1,allowReset:!0,resetFallbackValue:u("fontSize"),initialPosition:u("fontSize")})]}),l&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)(Xn.PanelRow,{className:"mt20",children:[(0,Zt.jsx)(Xi,{className:"",children:(0,_n.__)("Color Type:")}),(0,Zt.jsx)(is,{value:h("colorType"),onChange:e=>p("colorType",e),options:us,size:"small"})]}),"gradient"===h("colorType")?(0,Zt.jsx)(gs,{value:h("gradient"),onChange:e=>p("gradient",e),gradients:c}):(0,Zt.jsx)(Wo,{label:(0,_n.__)("Icon Color:"),value:h("color"),onChange:e=>p("color",e),defaultColor:u("color")})]})]})}));"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;function bs(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function vs(e){return"nodeType"in e}function ys(e){var t,n;return e?bs(e)?e:vs(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function ws(e){const{Document:t}=ys(e);return e instanceof t}function xs(e){return!bs(e)&&e instanceof ys(e).HTMLElement}function ks(e){return e instanceof ys(e).SVGElement}function _s(e){return e?bs(e)?e.document:vs(e)?ws(e)?e:xs(e)||ks(e)?e.ownerDocument:document:document:document}function Cs(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,i]of r){const r=t[n];null!=r&&(t[n]=r+e*i)}return t}),{...t})}}const Ts=Cs(-1);function Ss(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=ys(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}var Es,$s;($s=Es||(Es={})).DragStart="dragStart",$s.DragMove="dragMove",$s.DragEnd="dragEnd",$s.DragCancel="dragCancel",$s.DragOver="dragOver",$s.RegisterDroppable="registerDroppable",$s.SetDroppableDisabled="setDroppableDisabled",$s.UnregisterDroppable="unregisterDroppable";const Ms=Object.freeze({x:0,y:0});var Ls,As,Rs;!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(Ls||(Ls={}));class Ns{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function js(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}function Is(e){e.preventDefault()}function Os(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(As||(As={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(Rs||(Rs={}));Rs.Space,Rs.Enter,Rs.Esc,Rs.Space,Rs.Enter,Rs.Tab;function Ds(e){return Boolean(e&&"distance"in e)}function Ps(e){return Boolean(e&&"delay"in e)}class Fs{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=ys(e);return e instanceof t?e:_s(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=_s(o),this.documentListeners=new Ns(this.document),this.listeners=new Ns(n),this.windowListeners=new Ns(ys(o)),this.initialCoordinates=null!=(r=Ss(i))?r:Ms,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(As.Resize,this.handleCancel),this.windowListeners.add(As.DragStart,Is),this.windowListeners.add(As.VisibilityChange,this.handleCancel),this.windowListeners.add(As.ContextMenu,Is),this.documentListeners.add(As.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Ps(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(Ds(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(As.Click,Os,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(As.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:s}}=i;if(!r)return;const a=null!=(t=Ss(e))?t:Ms,l=Ts(r,a);if(!n&&s){if(Ds(s)){if(null!=s.tolerance&&js(l,s.tolerance))return this.handleCancel();if(js(l,s.distance))return this.handleStart()}return Ps(s)&&js(l,s.tolerance)?this.handleCancel():void this.handlePending(s,l)}e.cancelable&&e.preventDefault(),o(a)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===Rs.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const zs={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};(class extends Fs{constructor(e){const{event:t}=e,n=_s(t.target);super(e,zs,n)}}).activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const Bs={move:{name:"mousemove"},end:{name:"mouseup"}};var Hs;!function(e){e[e.RightClick=2]="RightClick"}(Hs||(Hs={})),class extends Fs{constructor(e){super(e,Bs,_s(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==Hs.RightClick&&(null==r||r({event:n}),!0)}}];const Ws={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var Us,Vs,qs,Gs,Ys;(class extends Fs{constructor(e){super(e,Ws)}static setup(){return window.addEventListener(Ws.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Ws.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return!(i.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(Us||(Us={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(Vs||(Vs={})),Ls.Backward,Ls.Forward,Ls.Backward,Ls.Forward,function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(qs||(qs={})),function(e){e.Optimized="optimized"}(Gs||(Gs={})),qs.WhileDragging,Gs.Optimized,Map,function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Ys||(Ys={})),Rs.Down,Rs.Right,Rs.Up,Rs.Left,i(6708),(0,_n.__)("Normal"),(0,_n.__)("Italic"),(0,_n.__)("Oblique"),(0,_n.__)("None"),(0,_n.__)("Capitalize"),(0,_n.__)("Uppercase"),(0,_n.__)("Lowercase"),(0,_n.__)("Default"),(0,_n.__)("Underline"),(0,_n.__)("Overline"),(0,_n.__)("Line Through"),(0,_n.__)("None");const Ks=e=>{const[n,r]=(0,t.useState)(!0),[i,o]=(0,t.useState)(!1),[s,a]=(0,t.useState)(null),[l,c]=(0,t.useState)(null);(0,t.useEffect)((()=>{o(!1),a(null),wp.api.loadPromise.then((()=>{(new wp.api.models.Settings).fetch().then((t=>{c(d(t[e])),r(!1)}))}))}),[]);const d=e=>{let t=e;try{t=JSON.parse(e)}catch(e){o(!0),a(e.message)}return t};return{data:l,isLoading:n,isError:i,error:s}},Xs=e=>(0,Zt.jsx)("svg",{id:"Capa_1",enableBackground:"new 0 0 512.06 512.06",height:"25",viewBox:"0 0 512.06 512.06",width:"25",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,Zt.jsxs)("g",{children:[(0,Zt.jsx)("g",{children:(0,Zt.jsx)("g",{children:(0,Zt.jsx)("path",{d:"m69.146 243.953 22.174-110.87c2.537-12.687 18.943-16.413 26.709-6.058l65.676 87.568c10.425 13.9-2.469 17.142-45.676 70.432-57.238-28.073-72.583-22.565-68.883-41.072z",fill:"#ffc34d"})})}),(0,Zt.jsx)("g",{children:(0,Zt.jsx)("g",{children:(0,Zt.jsx)("path",{d:"m375.029 285.025c-43.45-52.144-57.372-56.171-46.676-70.432l65.676-87.568c7.765-10.352 24.171-6.633 26.709 6.058l22.174 110.87c3.857 19.292-14.686 14.416-67.883 41.072z",fill:"#f93"})})}),(0,Zt.jsx)("g",{children:(0,Zt.jsx)("g",{children:(0,Zt.jsx)("path",{d:"m488.079 183.985-107.42 79.9-111.61-195.3c-2.87-5.03-7.93-7.55-13.01-7.55-5.07 0-10.15 2.52-13.03 7.55l-111.61 195.3-107.42-79.9c-11.31-8.41-26.95 2.1-23.49 15.74l41 161.3 27.14 16.33-19.52 13.67 12.38 48.7c1.69 6.64 7.68 11.3 14.54 11.3h360c6.86 0 12.85-4.66 14.54-11.3l12.38-48.7-11.92-15 19.54-15 41-161.3c3.47-13.67-12.2-24.13-23.49-15.74z",fill:"#ffea80"})})}),(0,Zt.jsx)("path",{d:"m511.569 199.725-41 161.3-19.54 15 11.92 15-12.38 48.7c-1.69 6.64-7.68 11.3-14.54 11.3h-179.99v-389.99c5.08 0 10.14 2.52 13.01 7.55l111.61 195.3 107.42-79.9c11.29-8.39 26.96 2.07 23.49 15.74z",fill:"#ffc34d"}),(0,Zt.jsx)("g",{children:(0,Zt.jsx)("g",{children:(0,Zt.jsx)("path",{d:"m313.889 293.305-45-75c-2.92-4.86-7.88-7.28-12.85-7.28-4.98 0-9.97 2.44-12.87 7.28l-45 75c-2.85 4.75-2.85 10.69 0 15.44l45 75c2.92 4.86 7.9 7.28 12.87 7.28 4.97-.01 9.95-2.45 12.85-7.28l45-75c2.85-4.75 2.85-10.69 0-15.44z",fill:"#ff6a4d"})})}),(0,Zt.jsx)("path",{d:"m313.889 308.745-45 75c-2.9 4.83-7.88 7.27-12.85 7.28v-180c4.97 0 9.93 2.42 12.85 7.28l45 75c2.85 4.75 2.85 10.69 0 15.44z",fill:"#f03800"}),(0,Zt.jsx)("g",{children:(0,Zt.jsx)("path",{d:"m151.029 376.025c0 8.28-6.72 15-15 15h-86.92l-7.62-30h94.54c8.28 0 15 6.72 15 15z",fill:"#ffc34d"})}),(0,Zt.jsx)("g",{children:(0,Zt.jsx)("path",{d:"m470.569 361.025-7.62 30h-86.92c-8.28 0-15-6.72-15-15s6.72-15 15-15z",fill:"#f93"})})]})}),Qs=e=>(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img",...e,children:(0,Zt.jsx)("path",{d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"})});function Zs(e){return(0,Zt.jsxs)("svg",{stroke:"currentColor",fill:"#1877f2",strokeWidth:0,viewBox:"0 0 512 512",height:"1em",width:"1em",...e,children:[" ",(0,Zt.jsx)("path",{d:"M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"})," "]})}function Js(e){return(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"1em",width:"1em",fill:"none",...e,children:[(0,Zt.jsx)("path",{fill:"#34a853",d:"M12 23s-8-7.2-8-13a8 8 0 1 1 16 0c0 5.8-8 13-8 13z"}),(0,Zt.jsx)("circle",{cx:"12",cy:"9.5",r:"3.2",fill:"#ffffff"})]})}const ea=[{name:"openAi",label:"Open Ai",icon:(0,Zt.jsx)(Qs,{className:"cartIcon"}),inputLabel:"Api Key",infoEl:"<p>Enter your Api Key. get it from <a target='_blank' rel='noreferrer' href='https://platform.openai.com/account/api-keys'>Open Ai Platform</a></p>\n <p><strong>Note:</strong> You need to add credits to your account after getting the API key.</p>"},{name:"facebook",label:"Facebook",icon:(0,Zt.jsx)(Zs,{className:"cartIcon"}),inputLabel:"App ID",infoEl:"<p>Enter your App ID. get it from <a target='_blank' rel='noreferrer' href='https://developers.facebook.com/apps'>Facebook Platform</a></p>"},{name:"googleMaps",label:"Google Maps",icon:(0,Zt.jsx)(Js,{className:"cartIcon"}),inputLabel:"Api Key",infoEl:"<p>Enter your Google Maps API key. Create one in the <a target='_blank' rel='noreferrer' href='https://console.cloud.google.com/google/maps-apis/credentials'>Google Cloud console</a>.</p>\n <p><strong>Enable these APIs:</strong> Maps JavaScript API (required), plus Geocoding, Places (New) and Directions if you use address lookup, the search box or routes.</p>\n <p><strong>Map ID:</strong> markers need one — create it under <a target='_blank' rel='noreferrer' href='https://console.cloud.google.com/google/maps-apis/studio/maps'>Map Management</a> and paste it into the block's Map Source panel.</p>\n <p><strong>Restrict your key:</strong> this key is public on the front end, so add an HTTP referrer restriction for your domain and limit it to the APIs above.</p>"}],ta=()=>(0,Zt.jsxs)("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"7.5",cy:"15.5",r:"4.5"}),(0,Zt.jsx)("path",{d:"M10.7 12.3 21 2m-4 0 3 3-3 3"})]}),na=()=>(0,Zt.jsxs)("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z"}),(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"3"})]}),ra=()=>(0,Zt.jsxs)("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),(0,Zt.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}),ia=()=>(0,Zt.jsx)("svg",{viewBox:"0 0 24 24",width:"13",height:"13",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Zt.jsx)("polyline",{points:"20 6 9 17 4 12"})}),oa=()=>(0,Zt.jsxs)("svg",{viewBox:"0 0 24 24",width:"13",height:"13",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Zt.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),(0,Zt.jsx)("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),sa=({info:e})=>{const{nonce:n}=e,[r,i]=(0,t.useState)({}),[o,s]=(0,t.useState)(""),[a,l]=(0,t.useState)({}),[c,d]=(0,t.useState)(""),u=(0,t.useRef)(!1),h=(0,t.useRef)(null),{data:p,saveData:f,isLoading:g,isError:m,error:b}=$n("bblocks_api_keys",{_wpnonce:n},!0),v=e=>{g||(s(e),f({key:e,value:r[e]?.key??""}))};return(0,t.useEffect)((()=>{!g&&p&&i(p)}),[g,p,b]),(0,t.useEffect)((()=>{u.current&&!g&&o&&!m&&(d(o),clearTimeout(h.current),h.current=setTimeout((()=>d("")),2200)),u.current=g}),[g,m,o]),(0,t.useEffect)((()=>()=>clearTimeout(h.current)),[]),(0,Zt.jsxs)("div",{className:"bBlocksSettingPage",children:[(0,Zt.jsxs)("header",{className:"bbSettingsHead",children:[(0,Zt.jsx)("h2",{className:"bBlocksHeading",children:"API Integrations"}),(0,Zt.jsx)("p",{className:"bbSettingsSub",children:"Connect bBlocks to external services to power features like AI content and social embeds. Your keys are stored in this site’s database and are never shared with us."})]}),(0,Zt.jsx)("div",{className:"bBlocksApiCartContainer",children:ea.map((e=>{const t=r[e.name]?.key??"",n=Boolean(b?.[e.name]),s=Boolean(p?.[e.name]?.key)&&!n,d=g&&o===e.name,u=Boolean(a[e.name]),h=s?"isConnected":n?"isError":"isIdle",f=s?"Connected":n?"Invalid":"Not connected";return(0,Zt.jsxs)("section",{className:`bBlocksApiCart ${h}`,children:[(0,Zt.jsxs)("div",{className:"bbCardTop",children:[(0,Zt.jsx)("span",{className:"bbCardIcon",children:e.icon}),(0,Zt.jsxs)("div",{className:"bbCardTitle",children:[(0,Zt.jsx)("h4",{children:e.label}),(0,Zt.jsx)("span",{className:"bbCardKind",children:e.inputLabel})]}),(0,Zt.jsxs)("span",{className:`bbStatus ${h}`,children:[s?(0,Zt.jsx)(ia,{}):n?(0,Zt.jsx)(oa,{}):null,f]})]}),(0,Zt.jsx)("div",{className:"bBlocksApiInfo",dangerouslySetInnerHTML:{__html:e.infoEl}}),(0,Zt.jsxs)("div",{className:"bBlocksApiField",children:[(0,Zt.jsx)("label",{htmlFor:`bb-api-${e.name}`,children:e.inputLabel}),(0,Zt.jsxs)("div",{className:"bbInputWrap "+(n?"hasError":""),children:[(0,Zt.jsx)("span",{className:"bbInputIcon",children:(0,Zt.jsx)(ta,{})}),(0,Zt.jsx)("input",{id:`bb-api-${e.name}`,className:"bbInput",type:u?"text":"password",value:t,placeholder:`Enter your ${e.label} ${e.inputLabel}`,autoComplete:"off",spellCheck:!1,onChange:t=>i({...r,[e.name]:{key:t.target.value}}),onKeyDown:t=>{"Enter"===t.key&&v(e.name)}}),t&&(0,Zt.jsx)("button",{type:"button",className:"bbReveal","aria-pressed":u,"aria-label":u?"Hide key":"Show key",onClick:()=>{return t=e.name,l((e=>({...e,[t]:!e[t]})));var t},children:u?(0,Zt.jsx)(ra,{}):(0,Zt.jsx)(na,{})})]})]}),(0,Zt.jsxs)("div",{className:"bBlocksApiFooter",children:[(0,Zt.jsx)("p",{className:"bbStatusLine",children:n?(0,Zt.jsx)("span",{className:"bbErr",children:b?.[e.name]?.message||"Could not validate this key"}):c===e.name?(0,Zt.jsx)("span",{className:"bbOk",children:"Saved"}):s?(0,Zt.jsx)("span",{className:"bbOk",children:"Valid key saved"}):(0,Zt.jsx)("span",{className:"bbMuted",children:"No key saved yet"})}),(0,Zt.jsx)(Jt,{className:"bBlocksApiSaveBtn",type:"button",disabled:d,onClick:()=>v(e.name),children:d?"Saving…":"Save"})]})]},e.name)}))})]})},aa=({isProModalOpen:e,setIsProModalOpen:t,link:n,children:r})=>e&&(0,Zt.jsxs)(Xn.Modal,{className:"bplAboutProModal",title:(0,_n.__)("Upgrade to PRO"),onRequestClose:()=>t(!1),children:[(0,Zt.jsx)("h3",{children:(0,_n.__)("Explore new features in Pro")}),(0,Zt.jsx)("ul",{className:"features",children:r}),(0,Zt.jsx)("h4",{className:"text",children:(0,_n.__)("To unlock those features! Upgrade to Pro")}),(0,Zt.jsx)("br",{}),(0,Zt.jsx)(Jt,{href:n,target:"_blank",children:(0,_n.__)("Upgrade Now")})]}),la=({label:e,className:t,onChange:n,isPremium:r=!1,Component:i,setIsProModalOpen:o=()=>{},...s})=>(0,Zt.jsx)(i,{className:`${t} ${r?"":"bplProIdentifier"}`,label:(e=>r?e:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("span",{className:"bplOpacity75",children:e})," ",(0,Zt.jsx)("span",{className:"labelPro",children:(0,_n.__)("Pro")})]}))(e),onChange:e=>r?n(e):o(!0),...s});(0,An.withSelect)((e=>({currentPostType:e("core/editor").getCurrentPostType()})))((({postType:e,shortCode:n,currentPostType:r})=>{const i=(0,t.useRef)(null);return e===r&&(0,Zt.jsxs)("div",{className:"bPlFrontShortCode",children:[(0,Zt.jsx)(Xi,{className:"mb5",children:(0,_n.__)("Copy the shortcode and use it anywhere.")}),(0,Zt.jsxs)("div",{className:"bPlFrontShortCodeInput",children:[(0,Zt.jsx)("input",{onClick:e=>{const t=e.target;t.select(),t.setSelectionRange(0,30),document.execCommand("copy"),i.current.innerHTML=(0,_n.__)("Copied Successfully!"),setTimeout((()=>{i.current.innerHTML=(0,_n.__)("Copy To Clipboard")}),1500)},value:n}),(0,Zt.jsx)("span",{ref:i,className:"tooltip",children:(0,_n.__)("Copy To Clipboard")})]})]})})),window.wp.element;const ca="radioControl",da=({label:e,onChange:t,className:n,isPremium:r=!1,setIsProModalOpen:i,gap:o="130px",direction:s="row",...a})=>(0,Zt.jsxs)(Xn.Flex,{align:"start",direction:s,gap:o,className:`${ca}RadioControlPro ${n}`,children:[(0,Zt.jsx)(Xi,{children:(e=>r?e:(0,Zt.jsxs)("div",{className:`${ca}labelContainer`,children:[(0,Zt.jsx)("span",{className:`${ca}bplOpacity75`,children:e})," ",(0,Zt.jsx)("span",{className:`${ca}labelPro`,children:(0,_n.__)("Pro")})]}))(e)}),(0,Zt.jsx)(Xn.RadioControl,{className:`${n} ${r?"":"bplProIdentifier"}`,label:"",onChange:e=>r?t(e):i(!0),isPremium:r,...a})]}),ua=({className:e,onChange:n,isPremium:r=!1,setIsProModalOpen:i=()=>{},options:o=[],proValues:s=[],...a})=>{const l=o.map((e=>({...e,label:s?.includes(e.value)&&!r?`${e.label} - Pro`:e.label}))),c=(0,t.useRef)(null);return(0,t.useEffect)((()=>{const e=c?.current;if(e&&!r){const t=e?.childNodes;t?.forEach((e=>{s?.includes(e.value)&&e.classList.add("proOption")}))}}),[c,s]),(0,Zt.jsx)(Xn.SelectControl,{ref:c,className:`${e} ${r?"":"bplPorSelect"}`,onChange:e=>r?n(e):s?.includes(e)?i(!0):n(e),options:l,...a})},ha=(e=document)=>{const[n,r]=(0,t.useState)({x:-400,y:-400,isTop:!1,isBottom:!1,isLeft:!1,isRight:!1});return(0,t.useEffect)((()=>{if(!e)return;const t=e=>{const t=document.body,{clientX:n,clientY:i,screenX:o,screenY:s}=e,{width:a,height:l}=t.getBoundingClientRect();r({x:n,y:i,screenX:o,screenY:s,isTop:i<l/2,isBottom:i>l/2,isLeft:n<a/2,isRight:n>a/2})};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}),[e]),n},pa={digital:{glitchMode:"digital",intensity:"high",speed:"fast",blendMode:"multiply",size:20,primaryColor:"#ff4040",secondaryColor:"#40ff40",tertiaryColor:"#4040ff"},analog:{glitchMode:"analog",intensity:"medium",speed:"slow",blendMode:"normal",size:35,primaryColor:"#ffffff",secondaryColor:"#ff4444",tertiaryColor:"#4444ff"},cyberpunk:{glitchMode:"cyberpunk",intensity:"medium",speed:"medium",size:30,primaryColor:"#ff0080",secondaryColor:"#00ffff",tertiaryColor:"#ff0000"},matrix:{glitchMode:"matrix",intensity:"high",speed:"fast",size:25,primaryColor:"#00ff00",secondaryColor:"#40ff40",tertiaryColor:"#80ff80"}},fa=e=>null!=e&&""!==e,ga=({type:e,...t})=>{const{duration:n,size:r,background:i,secondaryBgColor:o,borderColor:s,secondaryBorderColor:a,tertiaryBorderColor:l,borderWidth:c}=t,d={rippleCircle:{...fa(r)&&{"--b-blocks-effect-ripple-size":r+"px"},...fa(i)&&{"--b-blocks-effect-ripple-background":i},...fa(s)&&{"--b-blocks-effect-ripple-border-color":s},...fa(c)&&{"--b-blocks-effect-ripple-border-width":c+"px"},...fa(n)&&{"--b-blocks-effect-ripple-duration":n+"s"}},rippleDouble:{fast:{...fa(r)&&{"--b-blocks-effect-ripple-size":r+"px"},...fa(i)&&{"--b-blocks-effect-ripple-background":i},...fa(s)&&{"--b-blocks-effect-ripple-border-color":s},...fa(c)&&{"--b-blocks-effect-ripple-border-width":c+"px"},...fa(n)&&{"--b-blocks-effect-ripple-duration":n+"s"}},slow:{...fa(r)&&{"--b-blocks-effect-ripple-size":r+"px"},...fa(o)&&{"--b-blocks-effect-ripple-background":o},...fa(a)&&{"--b-blocks-effect-ripple-border-color":a},...fa(c)&&{"--b-blocks-effect-ripple-border-width":c+"px"},...fa(n)&&{"--b-blocks-effect-ripple-slow-duration":(1.41*n).toFixed(2)+"s"}}},rippleWave:{wave1:{...fa(r)&&{"--b-blocks-effect-ripple-wave-size":r+"px"},...fa(n)&&{"--b-blocks-effect-ripple-duration":n+"s"},...fa(s)&&{"--b-blocks-effect-ripple-border-color":s},...fa(c)&&{"--b-blocks-effect-ripple-border-width":c+"px"}},wave2:{...fa(r)&&{"--b-blocks-effect-ripple-wave-size":r+"px"},...fa(n)&&{"--b-blocks-effect-ripple-duration":n+"s"},...fa(a)&&{"--b-blocks-effect-ripple-border-color":a},...fa(c)&&{"--b-blocks-effect-ripple-border-width":c+"px"}},wave3:{...fa(r)&&{"--b-blocks-effect-ripple-wave-size":r+"px"},...fa(n)&&{"--b-blocks-effect-ripple-duration":n+"s"},...fa(l)&&{"--b-blocks-effect-ripple-border-color":l},...fa(c)&&{"--b-blocks-effect-ripple-border-width":c+"px"}}},ripplePulse:{...fa(r)&&{"--b-blocks-effect-ripple-size":r+"px"},...fa(i)&&{"--b-blocks-effect-ripple-background":i},...fa(n)&&{"--b-blocks-effect-ripple-duration":n+"s"},...fa(c)&&{"--b-blocks-effect-ripple-border-width":c+"px"},...fa(s)&&{"--b-blocks-effect-ripple-border-color":s}}};switch(e){case"rippleCircle":return(0,Zt.jsx)("div",{style:d.rippleCircle,className:"b-blocks-ripple-circle"});case"rippleDouble":return(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("div",{style:d.rippleDouble.fast,className:"b-blocks-ripple-circle b-blocks-ripple-fast"}),(0,Zt.jsx)("div",{style:d.rippleDouble.slow,className:"b-blocks-ripple-circle b-blocks-ripple-slow"})]});case"rippleWave":return(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("div",{style:d.rippleWave.wave1,className:"b-blocks-ripple-wave b-blocks-wave-1"}),(0,Zt.jsx)("div",{style:d.rippleWave.wave2,className:"b-blocks-ripple-wave b-blocks-wave-2"}),(0,Zt.jsx)("div",{style:d.rippleWave.wave3,className:"b-blocks-ripple-wave b-blocks-wave-3"})]});case"tsunami":return(0,Zt.jsx)(Zt.Fragment,{children:[...Array(4)].map(((e,t)=>(0,Zt.jsx)("div",{className:"b-blocks-ripple",style:{animationDelay:.25*t+"s"}},t)))});case"ripplePulse":return(0,Zt.jsx)("div",{style:d.ripplePulse,className:"b-blocks-ripple-pulse"})}},ma=({color:e="#f00",size:n=12,sparkRadius:r=15,sparkCount:i=8,duration:o=400,easing:s="ease-out",extraScale:a=1,domEl:l=document})=>{const c=(0,t.useRef)(null),d=(0,t.useRef)([]),u=(0,t.useRef)(null),h=ha(l);(0,t.useEffect)((()=>{const e=c.current;if(!e)return;const t=()=>{e.width=window.innerWidth,e.height=window.innerHeight},n=()=>{t()};return window.addEventListener("resize",n),t(),()=>{window.removeEventListener("resize",n)}}),[]);const p=(0,t.useCallback)((e=>{switch(s){case"linear":return e;case"ease-in":return e*e;case"ease-in-out":return e<.5?2*e*e:(4-2*e)*e-1;default:return e*(2-e)}}),[s]);return(0,t.useEffect)((()=>{const t=c.current;if(!t)return;const i=t.getContext("2d");let s;const l=c=>{u.current||(u.current=c),i.clearRect(0,0,t.width,t.height),d.current=d.current.filter((t=>{const s=c-t.startTime;if(s>=o)return!1;const l=p(s/o),d=l*r*a,u=n*(1-l),h=t.x+d*Math.cos(t.angle),f=t.y+d*Math.sin(t.angle),g=t.x+(d+u)*Math.cos(t.angle),m=t.y+(d+u)*Math.sin(t.angle);return i.strokeStyle=e,i.lineWidth=2,i.beginPath(),i.moveTo(h,f),i.lineTo(g,m),i.stroke(),!0})),s=requestAnimationFrame(l)};return s=requestAnimationFrame(l),()=>{cancelAnimationFrame(s)}}),[e,n,r,i,o,p,a]),(0,t.useEffect)((()=>{if(!c.current||!h.x||!h.y)return;const e=performance.now(),t=Array.from({length:i},((t,n)=>({x:h.x,y:h.y,angle:2*Math.PI*n/i,startTime:e})));d.current.push(...t)}),[h,i]),(0,Zt.jsx)("canvas",{ref:c,style:{width:"100vw",height:"100vh",position:"fixed",top:0,left:0,pointerEvents:"none",zIndex:99999}})},ba=({size:e=100,color:t="#ffb347",duration:n=1.5,delay:r=.05})=>{const i={...fa(n)&&{"--b-blocks-explosion-transition-duration":n+"s"},...fa(e)&&{"--b-blocks-explosion-size":e+"px"},...fa(t)&&{"--b-blocks-explosion-color":t}};return(0,Zt.jsx)("div",{style:i,className:"spark-explosion-container",children:[...Array(15)].map(((e,t)=>(0,Zt.jsx)("div",{className:"explosion-particle",style:{transform:`rotate(${24*t}deg)`,animationDelay:t*r+"s"}},t)))})},va=({duration:e=1.2,size:t=80,color:n="#74ebd5"})=>{const r={...fa(e)&&{"--b-blocks-radial-transition-duration":e+"s"},...fa(t)&&{"--b-blocks-radial-size":t+"px"},...fa(n)&&{"--b-blocks-radial-color":n}};return(0,Zt.jsx)("div",{style:r,className:"spark-radial-container",children:[...Array(12)].map(((e,t)=>(0,Zt.jsx)("div",{className:"radial-spark",style:{transform:`rotate(${30*t}deg)`}},t)))})},ya=({duration:e=1,size:t=60,color:n="#ff9a8b"})=>{const r={...fa(t)&&{"--b-blocks-starburst-size":t+"px"},...fa(e)&&{"--b-blocks-starburst-transition-duration":e+"s"},...fa(n)&&{"--b-blocks-starburst-color":n}};return(0,Zt.jsx)("div",{style:r,className:"spark-starburst-container",children:[...Array(8)].map(((e,t)=>(0,Zt.jsx)("div",{className:"starburst-line",style:{transform:`rotate(${45*t}deg)`}},t)))})},wa=({effect:e})=>{switch(e?.type){case"starburst":return(0,Zt.jsx)(ya,{...e?.starburst});case"radial":return(0,Zt.jsx)(va,{...e?.radial});case"explosion":return(0,Zt.jsx)(ba,{...e?.explosion})}},xa=({duration:e,easing:t="ease-out",size:n=40,color:r="#ff6b6b"})=>{const i={...fa(e)&&{"--b-blocks-simple-transition-duration":e+"ms"},...fa(t)&&{"--b-blocks-simple-timing-function":t},...fa(n)&&{"--b-blocks-simple-size":n+"px"},...fa(r)&&{"--b-blocks-simple-color":r}};return(0,Zt.jsx)("div",{style:i,className:"spark-simple-container",children:[...Array(6)].map(((e,t)=>(0,Zt.jsx)("div",{className:"spark-line",style:{transform:`rotate(${60*t}deg)`}},t)))})},ka=({effect:e,domEl:n=document})=>{const r=(0,t.useRef)(null),i=ha(n);return function(e,n,r="b-blocks-effect-wrapper"){(0,t.useEffect)((()=>{const t=e.current;t&&(t.classList.remove(r),t.offsetWidth,t.classList.add(r))}),[e.current,n])}(r,i,"b-blocks-effect-wrapper"),(0,Zt.jsxs)(Zt.Fragment,{children:["spark"!==e?.type&&(0,Zt.jsx)("div",{ref:r,style:{left:`${i.x}px`,top:`${i.y}px`,pointerEvents:"none"},children:(()=>{switch(e?.type){case"rippleCircle":case"rippleDouble":case"rippleWave":case"ripplePulse":case"tsunami":return(0,t.createElement)(ga,{type:e?.type,...e?.[e?.type],key:e?.type});case"sparkSimple":return(0,Zt.jsx)(xa,{...e?.sparkSimple});case"starburst":case"radial":case"explosion":return(0,Zt.jsx)(wa,{effect:e},e?.type);default:return null}})()}),"spark"===e?.type&&(0,Zt.jsx)(ma,{...e?.spark,domEl:n})]})};function _a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ca(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Ta,Sa,Ea,$a,Ma,La,Aa,Ra,Na,ja,Ia,Oa={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Da={duration:.5,overwrite:!1,delay:0},Pa=1e8,Fa=1e-8,za=2*Math.PI,Ba=za/4,Ha=0,Wa=Math.sqrt,Ua=Math.cos,Va=Math.sin,qa=function(e){return"string"==typeof e},Ga=function(e){return"function"==typeof e},Ya=function(e){return"number"==typeof e},Ka=function(e){return void 0===e},Xa=function(e){return"object"==typeof e},Qa=function(e){return!1!==e},Za=function(){return"undefined"!=typeof window},Ja=function(e){return Ga(e)||qa(e)},el="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},tl=Array.isArray,nl=/(?:-?\.?\d|\.)+/gi,rl=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,il=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ol=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,sl=/[+-]=-?[.\d]+/,al=/[^,'"\[\]\s]+/gi,ll=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,cl={},dl={},ul=function(e){return(dl=zl(e,cl))&&zd},hl=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},pl=function(e,t){return!t&&console.warn(e)},fl=function(e,t){return e&&(cl[e]=t)&&dl&&(dl[e]=t)||cl},gl=function(){return 0},ml={suppressEvents:!0,isStart:!0,kill:!1},bl={suppressEvents:!0,kill:!1},vl={suppressEvents:!0},yl={},wl=[],xl={},kl={},_l={},Cl=30,Tl=[],Sl="",El=function(e){var t,n,r=e[0];if(Xa(r)||Ga(r)||(e=[e]),!(t=(r._gsap||{}).harness)){for(n=Tl.length;n--&&!Tl[n].targetTest(r););t=Tl[n]}for(n=e.length;n--;)e[n]&&(e[n]._gsap||(e[n]._gsap=new ed(e[n],t)))||e.splice(n,1);return e},$l=function(e){return e._gsap||El(bc(e))[0]._gsap},Ml=function(e,t,n){return(n=e[t])&&Ga(n)?e[t]():Ka(n)&&e.getAttribute&&e.getAttribute(t)||n},Ll=function(e,t){return(e=e.split(",")).forEach(t)||e},Al=function(e){return Math.round(1e5*e)/1e5||0},Rl=function(e){return Math.round(1e7*e)/1e7||0},Nl=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),"+"===n?e+r:"-"===n?e-r:"*"===n?e*r:e/r},jl=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++r<n;);return r<n},Il=function(){var e,t,n=wl.length,r=wl.slice(0);for(xl={},wl.length=0,e=0;e<n;e++)(t=r[e])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)},Ol=function(e,t,n,r){wl.length&&!Sa&&Il(),e.render(t,n,r||Sa&&t<0&&(e._initted||e._startAt)),wl.length&&!Sa&&Il()},Dl=function(e){var t=parseFloat(e);return(t||0===t)&&(e+"").match(al).length<2?t:qa(e)?e.trim():e},Pl=function(e){return e},Fl=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},zl=function(e,t){for(var n in t)e[n]=t[n];return e},Bl=function e(t,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(t[r]=Xa(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},Hl=function(e,t){var n,r={};for(n in e)n in t||(r[n]=e[n]);return r},Wl=function(e){var t,n=e.parent||$a,r=e.keyframes?(t=tl(e.keyframes),function(e,n){for(var r in n)r in e||"duration"===r&&t||"ease"===r||(e[r]=n[r])}):Fl;if(Qa(e.inherit))for(;n;)r(e,n.vars.defaults),n=n.parent||n._dp;return e},Ul=function(e,t,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var o,s=e[r];if(i)for(o=t[i];s&&s[i]>o;)s=s._prev;return s?(t._next=s._next,s._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=s,t.parent=t._dp=e,t},Vl=function(e,t,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i=t._prev,o=t._next;i?i._next=o:e[n]===t&&(e[n]=o),o?o._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},ql=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Gl=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},Yl=function(e,t,n,r){return e._startAt&&(Sa?e._startAt.revert(bl):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},Kl=function e(t){return!t||t._ts&&e(t.parent)},Xl=function(e){return e._repeat?Ql(e._tTime,e=e.duration()+e._rDelay)*e:0},Ql=function(e,t){var n=Math.floor(e=Rl(e/t));return e&&n===e?n-1:n},Zl=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Jl=function(e){return e._end=Rl(e._start+(e._tDur/Math.abs(e._ts||e._rts||Fa)||0))},ec=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=Rl(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Jl(e),n._dirty||Gl(n,e)),e},tc=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=Zl(e.rawTime(),t),(!t._dur||pc(0,t.totalDuration(),n)-t._tTime>Fa)&&t.render(n,!0)),Gl(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-1e-8}},nc=function(e,t,n,r){return t.parent&&ql(t),t._start=Rl((Ya(n)?n:n||e!==$a?dc(e,n,t):e._time)+t._delay),t._end=Rl(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Ul(e,t,"_first","_last",e._sort?"_start":0),sc(t)||(e._recent=t),r||tc(e,t),e._ts<0&&ec(e,e._tTime),e},rc=function(e,t){return(cl.ScrollTrigger||hl("scrollTrigger",t))&&cl.ScrollTrigger.create(t,e)},ic=function(e,t,n,r,i){return ld(e,t,i),e._initted?!n&&e._pt&&!Sa&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&Na!==Bc.frame?(wl.push(e),e._lazy=[i,r],1):void 0:1},oc=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},sc=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},ac=function(e,t,n,r){var i=e._repeat,o=Rl(t)||0,s=e._tTime/e._tDur;return s&&!r&&(e._time*=o/e._dur),e._dur=o,e._tDur=i?i<0?1e10:Rl(o*(i+1)+e._rDelay*i):o,s>0&&!r&&ec(e,e._tTime=e._tDur*s),e.parent&&Jl(e),n||Gl(e.parent,e),e},lc=function(e){return e instanceof nd?Gl(e):ac(e,e._dur)},cc={_start:0,endTime:gl,totalDuration:gl},dc=function e(t,n,r){var i,o,s,a=t.labels,l=t._recent||cc,c=t.duration()>=Pa?l.endTime(!1):t._dur;return qa(n)&&(isNaN(n)||n in a)?(o=n.charAt(0),s="%"===n.substr(-1),i=n.indexOf("="),"<"===o||">"===o?(i>=0&&(n=n.replace(/=/,"")),("<"===o?l._start:l.endTime(l._repeat>=0))+(parseFloat(n.substr(1))||0)*(s?(i<0?l:r).totalDuration()/100:1)):i<0?(n in a||(a[n]=c),a[n]):(o=parseFloat(n.charAt(i-1)+n.substr(i+1)),s&&r&&(o=o/100*(tl(r)?r[0]:r).totalDuration()),i>1?e(t,n.substr(0,i-1),r)+o:c+o)):null==n?c:+n},uc=function(e,t,n){var r,i,o=Ya(t[1]),s=(o?2:1)+(e<2?0:1),a=t[s];if(o&&(a.duration=t[1]),a.parent=n,e){for(r=a,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=Qa(i.vars.inherit)&&i.parent;a.immediateRender=Qa(r.immediateRender),e<2?a.runBackwards=1:a.startAt=t[s-1]}return new pd(t[0],a,t[s+1])},hc=function(e,t){return e||0===e?t(e):t},pc=function(e,t,n){return n<e?e:n>t?t:n},fc=function(e,t){return qa(e)&&(t=ll.exec(e))?t[1]:""},gc=[].slice,mc=function(e,t){return e&&Xa(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&Xa(e[0]))&&!e.nodeType&&e!==Ma},bc=function(e,t,n){return Ea&&!t&&Ea.selector?Ea.selector(e):!qa(e)||n||!La&&Hc()?tl(e)?function(e,t,n){return void 0===n&&(n=[]),e.forEach((function(e){var r;return qa(e)&&!t||mc(e,1)?(r=n).push.apply(r,bc(e)):n.push(e)}))||n}(e,n):mc(e)?gc.call(e,0):e?[e]:[]:gc.call((t||Aa).querySelectorAll(e),0)},vc=function(e){return e=bc(e)[0]||pl("Invalid scope")||{},function(t){var n=e.current||e.nativeElement||e;return bc(t,n.querySelectorAll?n:n===e?pl("Invalid scope")||Aa.createElement("div"):e)}},yc=function(e){return e.sort((function(){return.5-Math.random()}))},wc=function(e){if(Ga(e))return e;var t=Xa(e)?e:{each:e},n=Kc(t.ease),r=t.from||0,i=parseFloat(t.base)||0,o={},s=r>0&&r<1,a=isNaN(r)||s,l=t.axis,c=r,d=r;return qa(r)?c=d={center:.5,edges:.5,end:1}[r]||0:!s&&a&&(c=r[0],d=r[1]),function(e,s,u){var h,p,f,g,m,b,v,y,w,x=(u||t).length,k=o[x];if(!k){if(!(w="auto"===t.grid?0:(t.grid||[1,Pa])[1])){for(v=-Pa;v<(v=u[w++].getBoundingClientRect().left)&&w<x;);w<x&&w--}for(k=o[x]=[],h=a?Math.min(w,x)*c-.5:r%w,p=w===Pa?0:a?x*d/w-.5:r/w|0,v=0,y=Pa,b=0;b<x;b++)f=b%w-h,g=p-(b/w|0),k[b]=m=l?Math.abs("y"===l?g:f):Wa(f*f+g*g),m>v&&(v=m),m<y&&(y=m);"random"===r&&yc(k),k.max=v-y,k.min=y,k.v=x=(parseFloat(t.amount)||parseFloat(t.each)*(w>x?x-1:l?"y"===l?x/w:w:Math.max(w,x/w))||0)*("edges"===r?-1:1),k.b=x<0?i-x:i,k.u=fc(t.amount||t.each)||0,n=n&&x<0?Gc(n):n}return x=(k[e]-k.min)/k.max||0,Rl(k.b+(n?n(x):x)*k.v)+k.u}},xc=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(n){var r=Rl(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(Ya(n)?0:fc(n))}},kc=function(e,t){var n,r,i=tl(e);return!i&&Xa(e)&&(n=i=e.radius||Pa,e.values?(e=bc(e.values),(r=!Ya(e[0]))&&(n*=n)):e=xc(e.increment)),hc(t,i?Ga(e)?function(t){return r=e(t),Math.abs(r-t)<=n?r:t}:function(t){for(var i,o,s=parseFloat(r?t.x:t),a=parseFloat(r?t.y:0),l=Pa,c=0,d=e.length;d--;)(i=r?(i=e[d].x-s)*i+(o=e[d].y-a)*o:Math.abs(e[d]-s))<l&&(l=i,c=d);return c=!n||l<=n?e[c]:t,r||c===t||Ya(t)?c:c+fc(t)}:xc(e))},_c=function(e,t,n,r){return hc(tl(e)?!t:!0===n?!!(n=0):!r,(function(){return tl(e)?e[~~(Math.random()*e.length)]:(n=n||1e-5)&&(r=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+.99*n))/n)*n*r)/r}))},Cc=function(e,t,n){return hc(n,(function(n){return e[~~t(n)]}))},Tc=function(e){for(var t,n,r,i,o=0,s="";~(t=e.indexOf("random(",o));)r=e.indexOf(")",t),i="["===e.charAt(t+7),n=e.substr(t+7,r-t-7).match(i?al:nl),s+=e.substr(o,t-o)+_c(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),o=r+1;return s+e.substr(o,e.length-o)},Sc=function(e,t,n,r,i){var o=t-e,s=r-n;return hc(i,(function(t){return n+((t-e)/o*s||0)}))},Ec=function(e,t,n){var r,i,o,s=e.labels,a=Pa;for(r in s)(i=s[r]-t)<0==!!n&&i&&a>(i=Math.abs(i))&&(o=r,a=i);return o},$c=function(e,t,n){var r,i,o,s=e.vars,a=s[t],l=Ea,c=e._ctx;if(a)return r=s[t+"Params"],i=s.callbackScope||e,n&&wl.length&&Il(),c&&(Ea=c),o=r?a.apply(i,r):a.call(i),Ea=l,o},Mc=function(e){return ql(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Sa),e.progress()<1&&$c(e,"onInterrupt"),e},Lc=[],Ac=function(e){if(e)if(e=!e.name&&e.default||e,Za()||e.headless){var t=e.name,n=Ga(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:gl,render:kd,add:sd,kill:Cd,modifier:_d,rawVars:0},o={targetTest:0,get:0,getSetter:vd,aliases:{},register:0};if(Hc(),e!==r){if(kl[t])return;Fl(r,Fl(Hl(e,i),o)),zl(r.prototype,zl(i,Hl(e,o))),kl[r.prop=t]=r,e.targetTest&&(Tl.push(r),yl[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}fl(t,r),e.register&&e.register(zd,r,Ed)}else Lc.push(e)},Rc=255,Nc={aqua:[0,Rc,Rc],lime:[0,Rc,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Rc],navy:[0,0,128],white:[Rc,Rc,Rc],olive:[128,128,0],yellow:[Rc,Rc,0],orange:[Rc,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Rc,0,0],pink:[Rc,192,203],cyan:[0,Rc,Rc],transparent:[Rc,Rc,Rc,0]},jc=function(e,t,n){return(6*(e+=e<0?1:e>1?-1:0)<1?t+(n-t)*e*6:e<.5?n:3*e<2?t+(n-t)*(2/3-e)*6:t)*Rc+.5|0},Ic=function(e,t,n){var r,i,o,s,a,l,c,d,u,h,p=e?Ya(e)?[e>>16,e>>8&Rc,e&Rc]:0:Nc.black;if(!p){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),Nc[e])p=Nc[e];else if("#"===e.charAt(0)){if(e.length<6&&(r=e.charAt(1),i=e.charAt(2),o=e.charAt(3),e="#"+r+r+i+i+o+o+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(p=parseInt(e.substr(1,6),16))>>16,p>>8&Rc,p&Rc,parseInt(e.substr(7),16)/255];p=[(e=parseInt(e.substr(1),16))>>16,e>>8&Rc,e&Rc]}else if("hsl"===e.substr(0,3))if(p=h=e.match(nl),t){if(~e.indexOf("="))return p=e.match(rl),n&&p.length<4&&(p[3]=1),p}else s=+p[0]%360/360,a=+p[1]/100,r=2*(l=+p[2]/100)-(i=l<=.5?l*(a+1):l+a-l*a),p.length>3&&(p[3]*=1),p[0]=jc(s+1/3,r,i),p[1]=jc(s,r,i),p[2]=jc(s-1/3,r,i);else p=e.match(nl)||Nc.transparent;p=p.map(Number)}return t&&!h&&(r=p[0]/Rc,i=p[1]/Rc,o=p[2]/Rc,l=((c=Math.max(r,i,o))+(d=Math.min(r,i,o)))/2,c===d?s=a=0:(u=c-d,a=l>.5?u/(2-c-d):u/(c+d),s=c===r?(i-o)/u+(i<o?6:0):c===i?(o-r)/u+2:(r-i)/u+4,s*=60),p[0]=~~(s+.5),p[1]=~~(100*a+.5),p[2]=~~(100*l+.5)),n&&p.length<4&&(p[3]=1),p},Oc=function(e){var t=[],n=[],r=-1;return e.split(Pc).forEach((function(e){var i=e.match(il)||[];t.push.apply(t,i),n.push(r+=i.length+1)})),t.c=n,t},Dc=function(e,t,n){var r,i,o,s,a="",l=(e+a).match(Pc),c=t?"hsla(":"rgba(",d=0;if(!l)return e;if(l=l.map((function(e){return(e=Ic(e,t,1))&&c+(t?e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]:e.join(","))+")"})),n&&(o=Oc(e),(r=n.c).join(a)!==o.c.join(a)))for(s=(i=e.replace(Pc,"1").split(il)).length-1;d<s;d++)a+=i[d]+(~r.indexOf(d)?l.shift()||c+"0,0,0,0)":(o.length?o:l.length?l:n).shift());if(!i)for(s=(i=e.split(Pc)).length-1;d<s;d++)a+=i[d]+l[d];return a+i[s]},Pc=function(){var e,t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(e in Nc)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),Fc=/hsl[a]?\(/,zc=function(e){var t,n=e.join(" ");if(Pc.lastIndex=0,Pc.test(n))return t=Fc.test(n),e[1]=Dc(e[1],t),e[0]=Dc(e[0],t,Oc(e[1])),!0},Bc=function(){var e,t,n,r,i,o,s=Date.now,a=500,l=33,c=s(),d=c,u=1e3/240,h=u,p=[],f=function n(f){var g,m,b,v,y=s()-d,w=!0===f;if((y>a||y<0)&&(c+=y-l),((g=(b=(d+=y)-c)-h)>0||w)&&(v=++r.frame,i=b-1e3*r.time,r.time=b/=1e3,h+=g+(g>=u?4:u-g),m=1),w||(e=t(n)),m)for(o=0;o<p.length;o++)p[o](b,i,v,f)};return r={time:0,frame:0,tick:function(){f(!0)},deltaRatio:function(e){return i/(1e3/(e||60))},wake:function(){Ra&&(!La&&Za()&&(Ma=La=window,Aa=Ma.document||{},cl.gsap=zd,(Ma.gsapVersions||(Ma.gsapVersions=[])).push(zd.version),ul(dl||Ma.GreenSockGlobals||!Ma.gsap&&Ma||{}),Lc.forEach(Ac)),n="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,e&&r.sleep(),t=n||function(e){return setTimeout(e,h-1e3*r.time+1|0)},Ia=1,f(2))},sleep:function(){(n?cancelAnimationFrame:clearTimeout)(e),Ia=0,t=gl},lagSmoothing:function(e,t){a=e||1/0,l=Math.min(t||33,a)},fps:function(e){u=1e3/(e||240),h=1e3*r.time+u},add:function(e,t,n){var i=t?function(t,n,o,s){e(t,n,o,s),r.remove(i)}:e;return r.remove(e),p[n?"unshift":"push"](i),Hc(),i},remove:function(e,t){~(t=p.indexOf(e))&&p.splice(t,1)&&o>=t&&o--},_listeners:p},r}(),Hc=function(){return!Ia&&Bc.wake()},Wc={},Uc=/^[\d.\-M][\d.\-,\s]/,Vc=/["']/g,qc=function(e){for(var t,n,r,i={},o=e.substr(1,e.length-3).split(":"),s=o[0],a=1,l=o.length;a<l;a++)n=o[a],t=a!==l-1?n.lastIndexOf(","):n.length,r=n.substr(0,t),i[s]=isNaN(r)?r.replace(Vc,"").trim():+r,s=n.substr(t+1).trim();return i},Gc=function(e){return function(t){return 1-e(1-t)}},Yc=function e(t,n){for(var r,i=t._first;i;)i instanceof nd?e(i,n):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===n||(i.timeline?e(i.timeline,n):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=n)),i=i._next},Kc=function(e,t){return e&&(Ga(e)?e:Wc[e]||function(e){var t,n,r,i,o=(e+"").split("("),s=Wc[o[0]];return s&&o.length>1&&s.config?s.config.apply(null,~e.indexOf("{")?[qc(o[1])]:(t=e,n=t.indexOf("(")+1,r=t.indexOf(")"),i=t.indexOf("(",n),t.substring(n,~i&&i<r?t.indexOf(")",r+1):r)).split(",").map(Dl)):Wc._CE&&Uc.test(e)?Wc._CE("",e):s}(e))||t},Xc=function(e,t,n,r){void 0===n&&(n=function(e){return 1-t(1-e)}),void 0===r&&(r=function(e){return e<.5?t(2*e)/2:1-t(2*(1-e))/2});var i,o={easeIn:t,easeOut:n,easeInOut:r};return Ll(e,(function(e){for(var t in Wc[e]=cl[e]=o,Wc[i=e.toLowerCase()]=n,o)Wc[i+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=Wc[e+"."+t]=o[t]})),o},Qc=function(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}},Zc=function e(t,n,r){var i=n>=1?n:1,o=(r||(t?.3:.45))/(n<1?n:1),s=o/za*(Math.asin(1/i)||0),a=function(e){return 1===e?1:i*Math.pow(2,-10*e)*Va((e-s)*o)+1},l="out"===t?a:"in"===t?function(e){return 1-a(1-e)}:Qc(a);return o=za/o,l.config=function(n,r){return e(t,n,r)},l},Jc=function e(t,n){void 0===n&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i="out"===t?r:"in"===t?function(e){return 1-r(1-e)}:Qc(r);return i.config=function(n){return e(t,n)},i};Ll("Linear,Quad,Cubic,Quart,Quint,Strong",(function(e,t){var n=t<5?t+1:t;Xc(e+",Power"+(n-1),t?function(e){return Math.pow(e,n)}:function(e){return e},(function(e){return 1-Math.pow(1-e,n)}),(function(e){return e<.5?Math.pow(2*e,n)/2:1-Math.pow(2*(1-e),n)/2}))})),Wc.Linear.easeNone=Wc.none=Wc.Linear.easeIn,Xc("Elastic",Zc("in"),Zc("out"),Zc()),function(e,t){var n=1/t,r=2*n,i=2.5*n,o=function(o){return o<n?e*o*o:o<r?e*Math.pow(o-1.5/t,2)+.75:o<i?e*(o-=2.25/t)*o+.9375:e*Math.pow(o-2.625/t,2)+.984375};Xc("Bounce",(function(e){return 1-o(1-e)}),o)}(7.5625,2.75),Xc("Expo",(function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)})),Xc("Circ",(function(e){return-(Wa(1-e*e)-1)})),Xc("Sine",(function(e){return 1===e?1:1-Ua(e*Ba)})),Xc("Back",Jc("in"),Jc("out"),Jc()),Wc.SteppedEase=Wc.steps=cl.SteppedEase={config:function(e,t){void 0===e&&(e=1);var n=1/e,r=e+(t?0:1),i=t?1:0;return function(e){return((r*pc(0,.99999999,e)|0)+i)*n}}},Da.ease=Wc["quad.out"],Ll("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(e){return Sl+=e+","+e+"Params,"}));var ed=function(e,t){this.id=Ha++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:Ml,this.set=t?t.getSetter:vd},td=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,ac(this,+e.duration,1,1),this.data=e.data,Ea&&(this._ctx=Ea,Ea.data.push(this)),Ia||Bc.wake()}var t=e.prototype;return t.delay=function(e){return e||0===e?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,ac(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(Hc(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(ec(this,e),!n._dp||n.parent||tc(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&nc(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===Fa||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),Ol(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+Xl(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?e:1-e)+Xl(this),t):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?Ql(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?Zl(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,this.totalTime(pc(-Math.abs(this._delay),this._tDur,n),!1!==t),Jl(this),function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e}(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Hc(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==Fa&&(this._tTime-=Fa)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=e;var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&nc(t,this,e-this._delay),this}return this._start},t.endTime=function(e){return this._start+(Qa(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Zl(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){void 0===e&&(e=vl);var t=Sa;return Sa=e,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),"nested"!==this.data&&!1!==e.kill&&this.kill(),Sa=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,lc(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,lc(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(dc(this,e),Qa(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,Qa(t)),this._dur||(this._zTime=-1e-8),this},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-1e-8:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},t.isActive=function(){var e,t=this.parent||this._dp,n=this._start;return!(t&&!(this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=n&&e<this.endTime(!0)-Fa))},t.eventCallback=function(e,t,n){var r=this.vars;return arguments.length>1?(t?(r[e]=t,n&&(r[e+"Params"]=n),"onUpdate"===e&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this;return new Promise((function(n){var r=Ga(e)?e:Pl,i=function(){var e=t.then;t.then=null,Ga(r)&&(r=r(t))&&(r.then||r===t)&&(t.then=e),n(r),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?i():t._prom=i}))},t.kill=function(){Mc(this)},e}();Fl(td.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var nd=function(e){function t(t,n){var r;return void 0===t&&(t={}),(r=e.call(this,t)||this).labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=Qa(t.sortChildren),$a&&nc(t.parent||$a,_a(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&rc(_a(r),t.scrollTrigger),r}Ca(t,e);var n=t.prototype;return n.to=function(e,t,n){return uc(0,arguments,this),this},n.from=function(e,t,n){return uc(1,arguments,this),this},n.fromTo=function(e,t,n,r){return uc(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,Wl(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new pd(e,t,dc(this,n),1),this},n.call=function(e,t,n){return nc(this,pd.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,i,o,s){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=o,n.onCompleteParams=s,n.parent=this,new pd(e,n,dc(this,i)),this},n.staggerFrom=function(e,t,n,r,i,o,s){return n.runBackwards=1,Wl(n).immediateRender=Qa(n.immediateRender),this.staggerTo(e,t,n,r,i,o,s)},n.staggerFromTo=function(e,t,n,r,i,o,s,a){return r.startAt=n,Wl(r).immediateRender=Qa(r.immediateRender),this.staggerTo(e,t,r,i,o,s,a)},n.render=function(e,t,n){var r,i,o,s,a,l,c,d,u,h,p,f,g=this._time,m=this._dirty?this.totalDuration():this._tDur,b=this._dur,v=e<=0?0:Rl(e),y=this._zTime<0!=e<0&&(this._initted||!b);if(this!==$a&&v>m&&e>=0&&(v=m),v!==this._tTime||n||y){if(g!==this._time&&b&&(v+=this._time-g,e+=this._time-g),r=v,u=this._start,l=!(d=this._ts),y&&(b||(g=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(p=this._yoyo,a=b+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*a+e,t,n);if(r=Rl(v%a),v===m?(s=this._repeat,r=b):((s=~~(h=Rl(v/a)))&&s===h&&(r=b,s--),r>b&&(r=b)),h=Ql(this._tTime,a),!g&&this._tTime&&h!==s&&this._tTime-h*a-this._dur<=0&&(h=s),p&&1&s&&(r=b-r,f=1),s!==h&&!this._lock){var w=p&&1&h,x=w===(p&&1&s);if(s<h&&(w=!w),g=w?0:v%b?b:v,this._lock=1,this.render(g||(f?0:Rl(s*a)),t,!b)._lock=0,this._tTime=v,!t&&this.parent&&$c(this,"onRepeat"),this.vars.repeatRefresh&&!f&&(this.invalidate()._lock=1),g&&g!==this._time||l!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(b=this._dur,m=this._tDur,x&&(this._lock=2,g=w?b:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!f&&this.invalidate()),this._lock=0,!this._ts&&!l)return this;Yc(this,f)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(c=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if("isPause"===r.data&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if("isPause"===r.data&&r._start<t)return r;r=r._prev}}(this,Rl(g),Rl(r)),c&&(v-=r-(r=c._start))),this._tTime=v,this._time=r,this._act=!d,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,g=0),!g&&r&&!t&&!s&&($c(this,"onStart"),this._tTime!==v))return this;if(r>=g&&e>=0)for(i=this._first;i;){if(o=i._next,(i._act||r>=i._start)&&i._ts&&c!==i){if(i.parent!==this)return this.render(e,t,n);if(i.render(i._ts>0?(r-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(r-i._start)*i._ts,t,n),r!==this._time||!this._ts&&!l){c=0,o&&(v+=this._zTime=-1e-8);break}}i=o}else{i=this._last;for(var k=e<0?e:r;i;){if(o=i._prev,(i._act||k<=i._end)&&i._ts&&c!==i){if(i.parent!==this)return this.render(e,t,n);if(i.render(i._ts>0?(k-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(k-i._start)*i._ts,t,n||Sa&&(i._initted||i._startAt)),r!==this._time||!this._ts&&!l){c=0,o&&(v+=this._zTime=k?-1e-8:Fa);break}}i=o}}if(c&&!t&&(this.pause(),c.render(r>=g?0:-1e-8)._zTime=r>=g?1:-1,this._ts))return this._start=u,Jl(this),this.render(e,t,n);this._onUpdate&&!t&&$c(this,"onUpdate",!0),(v===m&&this._tTime>=this.totalDuration()||!v&&g)&&(u!==this._start&&Math.abs(d)===Math.abs(this._ts)||this._lock||((e||!b)&&(v===m&&this._ts>0||!v&&this._ts<0)&&ql(this,1),t||e<0&&!g||!v&&!g&&m||($c(this,v===m&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(v<m&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(Ya(t)||(t=dc(this,t,e)),!(e instanceof td)){if(tl(e))return e.forEach((function(e){return n.add(e,t)})),this;if(qa(e))return this.addLabel(e,t);if(!Ga(e))return this;e=pd.delayedCall(0,e)}return this!==e?nc(this,e,t):this},n.getChildren=function(e,t,n,r){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===n&&(n=!0),void 0===r&&(r=-Pa);for(var i=[],o=this._first;o;)o._start>=r&&(o instanceof pd?t&&i.push(o):(n&&i.push(o),e&&i.push.apply(i,o.getChildren(!0,t,n)))),o=o._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return qa(e)?this.removeLabel(e):Ga(e)?this.killTweensOf(e):(e.parent===this&&Vl(this,e),e===this._recent&&(this._recent=this._last),Gl(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Rl(Bc.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=dc(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=pd.delayedCall(0,t||gl,n);return r.data="isPause",this._hasPause=1,nc(this,r,dc(this,e))},n.removePause=function(e){var t=this._first;for(e=dc(this,e);t;)t._start===e&&"isPause"===t.data&&ql(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)rd!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n,r=[],i=bc(e),o=this._first,s=Ya(t);o;)o instanceof pd?jl(o._targets,i)&&(s?(!rd||o._initted&&o._ts)&&o.globalTime(0)<=t&&o.globalTime(o.totalDuration())>t:!t||o.isActive())&&r.push(o):(n=o.getTweensOf(i,t)).length&&r.push.apply(r,n),o=o._next;return r},n.tweenTo=function(e,t){t=t||{};var n,r=this,i=dc(r,e),o=t,s=o.startAt,a=o.onStart,l=o.onStartParams,c=o.immediateRender,d=pd.to(r,Fl({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:t.duration||Math.abs((i-(s&&"time"in s?s.time:r._time))/r.timeScale())||Fa,onStart:function(){if(r.pause(),!n){var e=t.duration||Math.abs((i-(s&&"time"in s?s.time:r._time))/r.timeScale());d._dur!==e&&ac(d,e,0,1).render(d._time,!0,!0),n=1}a&&a.apply(d,l||[])}},t));return c?d.render(0):d},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,Fl({startAt:{time:dc(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return void 0===e&&(e=this._time),Ec(this,dc(this,e))},n.previousLabel=function(e){return void 0===e&&(e=this._time),Ec(this,dc(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+Fa)},n.shiftChildren=function(e,t,n){void 0===n&&(n=0);for(var r,i=this._first,o=this.labels;i;)i._start>=n&&(i._start+=e,i._end+=e),i=i._next;if(t)for(r in o)o[r]>=n&&(o[r]+=e);return Gl(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){void 0===e&&(e=!0);for(var t,n=this._first;n;)t=n._next,this.remove(n),n=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),Gl(this)},n.totalDuration=function(e){var t,n,r,i=0,o=this,s=o._last,a=Pa;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-e:e));if(o._dirty){for(r=o.parent;s;)t=s._prev,s._dirty&&s.totalDuration(),(n=s._start)>a&&o._sort&&s._ts&&!o._lock?(o._lock=1,nc(o,s,n-s._delay,1)._lock=0):a=n,n<0&&s._ts&&(i-=n,(!r&&!o._dp||r&&r.smoothChildTiming)&&(o._start+=n/o._ts,o._time-=n,o._tTime-=n),o.shiftChildren(-n,!1,-Infinity),a=0),s._end>i&&s._ts&&(i=s._end),s=t;ac(o,o===$a&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(e){if($a._ts&&(Ol($a,Zl(e,$a)),Na=Bc.frame),Bc.frame>=Cl){Cl+=Oa.autoSleep||120;var t=$a._first;if((!t||!t._ts)&&Oa.autoSleep&&Bc._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||Bc.sleep()}}},t}(td);Fl(nd.prototype,{_lock:0,_hasPause:0,_forcing:0});var rd,id,od=function(e,t,n,r,i,o,s){var a,l,c,d,u,h,p,f,g=new Ed(this._pt,e,t,0,1,xd,null,i),m=0,b=0;for(g.b=n,g.e=r,n+="",(p=~(r+="").indexOf("random("))&&(r=Tc(r)),o&&(o(f=[n,r],e,t),n=f[0],r=f[1]),l=n.match(ol)||[];a=ol.exec(r);)d=a[0],u=r.substring(m,a.index),c?c=(c+1)%5:"rgba("===u.substr(-5)&&(c=1),d!==l[b++]&&(h=parseFloat(l[b-1])||0,g._pt={_next:g._pt,p:u||1===b?u:",",s:h,c:"="===d.charAt(1)?Nl(h,d)-h:parseFloat(d)-h,m:c&&c<4?Math.round:0},m=ol.lastIndex);return g.c=m<r.length?r.substring(m,r.length):"",g.fp=s,(sl.test(r)||p)&&(g.e=0),this._pt=g,g},sd=function(e,t,n,r,i,o,s,a,l,c){Ga(r)&&(r=r(i||0,e,o));var d,u=e[t],h="get"!==n?n:Ga(u)?l?e[t.indexOf("set")||!Ga(e["get"+t.substr(3)])?t:"get"+t.substr(3)](l):e[t]():u,p=Ga(u)?l?md:gd:fd;if(qa(r)&&(~r.indexOf("random(")&&(r=Tc(r)),"="===r.charAt(1)&&((d=Nl(h,r)+(fc(h)||0))||0===d)&&(r=d)),!c||h!==r||id)return isNaN(h*r)||""===r?(!u&&!(t in e)&&hl(t,r),od.call(this,e,t,h,r,p,a||Oa.stringFilter,l)):(d=new Ed(this._pt,e,t,+h||0,r-(h||0),"boolean"==typeof u?wd:yd,0,p),l&&(d.fp=l),s&&d.modifier(s,this,e),this._pt=d)},ad=function(e,t,n,r,i,o){var s,a,l,c;if(kl[e]&&!1!==(s=new kl[e]).init(i,s.rawVars?t[e]:function(e,t,n,r,i){if(Ga(e)&&(e=dd(e,i,t,n,r)),!Xa(e)||e.style&&e.nodeType||tl(e)||el(e))return qa(e)?dd(e,i,t,n,r):e;var o,s={};for(o in e)s[o]=dd(e[o],i,t,n,r);return s}(t[e],r,i,o,n),n,r,o)&&(n._pt=a=new Ed(n._pt,i,e,0,1,s.render,s,0,s.priority),n!==ja))for(l=n._ptLookup[n._targets.indexOf(i)],c=s._props.length;c--;)l[s._props[c]]=a;return s},ld=function e(t,n,r){var i,o,s,a,l,c,d,u,h,p,f,g,m,b=t.vars,v=b.ease,y=b.startAt,w=b.immediateRender,x=b.lazy,k=b.onUpdate,_=b.runBackwards,C=b.yoyoEase,T=b.keyframes,S=b.autoRevert,E=t._dur,$=t._startAt,M=t._targets,L=t.parent,A=L&&"nested"===L.data?L.vars.targets:M,R="auto"===t._overwrite&&!Ta,N=t.timeline;if(N&&(!T||!v)&&(v="none"),t._ease=Kc(v,Da.ease),t._yEase=C?Gc(Kc(!0===C?v:C,Da.ease)):0,C&&t._yoyo&&!t._repeat&&(C=t._yEase,t._yEase=t._ease,t._ease=C),t._from=!N&&!!b.runBackwards,!N||T&&!b.stagger){if(g=(u=M[0]?$l(M[0]).harness:0)&&b[u.prop],i=Hl(b,yl),$&&($._zTime<0&&$.progress(1),n<0&&_&&w&&!S?$.render(-1,!0):$.revert(_&&E?bl:ml),$._lazy=0),y){if(ql(t._startAt=pd.set(M,Fl({data:"isStart",overwrite:!1,parent:L,immediateRender:!0,lazy:!$&&Qa(x),startAt:null,delay:0,onUpdate:k&&function(){return $c(t,"onUpdate")},stagger:0},y))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(Sa||!w&&!S)&&t._startAt.revert(bl),w&&E&&n<=0&&r<=0)return void(n&&(t._zTime=n))}else if(_&&E&&!$)if(n&&(w=!1),s=Fl({overwrite:!1,data:"isFromStart",lazy:w&&!$&&Qa(x),immediateRender:w,stagger:0,parent:L},i),g&&(s[u.prop]=g),ql(t._startAt=pd.set(M,s)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(Sa?t._startAt.revert(bl):t._startAt.render(-1,!0)),t._zTime=n,w){if(!n)return}else e(t._startAt,Fa,Fa);for(t._pt=t._ptCache=0,x=E&&Qa(x)||x&&!E,o=0;o<M.length;o++){if(d=(l=M[o])._gsap||El(M)[o]._gsap,t._ptLookup[o]=p={},xl[d.id]&&wl.length&&Il(),f=A===M?o:A.indexOf(l),u&&!1!==(h=new u).init(l,g||i,t,f,A)&&(t._pt=a=new Ed(t._pt,l,h.name,0,1,h.render,h,0,h.priority),h._props.forEach((function(e){p[e]=a})),h.priority&&(c=1)),!u||g)for(s in i)kl[s]&&(h=ad(s,i,t,f,l,A))?h.priority&&(c=1):p[s]=a=sd.call(t,l,s,"get",i[s],f,A,0,b.stringFilter);t._op&&t._op[o]&&t.kill(l,t._op[o]),R&&t._pt&&(rd=t,$a.killTweensOf(l,p,t.globalTime(n)),m=!t.parent,rd=0),t._pt&&x&&(xl[d.id]=1)}c&&Sd(t),t._onInit&&t._onInit(t)}t._onUpdate=k,t._initted=(!t._op||t._pt)&&!m,T&&n<=0&&N.render(Pa,!0,!0)},cd=function(e,t,n,r){var i,o,s=t.ease||r||"power1.inOut";if(tl(t))o=n[e]||(n[e]=[]),t.forEach((function(e,n){return o.push({t:n/(t.length-1)*100,v:e,e:s})}));else for(i in t)o=n[i]||(n[i]=[]),"ease"===i||o.push({t:parseFloat(e),v:t[i],e:s})},dd=function(e,t,n,r,i){return Ga(e)?e.call(t,n,r,i):qa(e)&&~e.indexOf("random(")?Tc(e):e},ud=Sl+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",hd={};Ll(ud+",id,stagger,delay,duration,paused,scrollTrigger",(function(e){return hd[e]=1}));var pd=function(e){function t(t,n,r,i){var o;"number"==typeof n&&(r.duration=n,n=r,r=null);var s,a,l,c,d,u,h,p,f=(o=e.call(this,i?n:Wl(n))||this).vars,g=f.duration,m=f.delay,b=f.immediateRender,v=f.stagger,y=f.overwrite,w=f.keyframes,x=f.defaults,k=f.scrollTrigger,_=f.yoyoEase,C=n.parent||$a,T=(tl(t)||el(t)?Ya(t[0]):"length"in n)?[t]:bc(t);if(o._targets=T.length?El(T):pl("GSAP target "+t+" not found. https://gsap.com",!Oa.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=y,w||v||Ja(g)||Ja(m)){if(n=o.vars,(s=o.timeline=new nd({data:"nested",defaults:x||{},targets:C&&"nested"===C.data?C.vars.targets:T})).kill(),s.parent=s._dp=_a(o),s._start=0,v||Ja(g)||Ja(m)){if(c=T.length,h=v&&wc(v),Xa(v))for(d in v)~ud.indexOf(d)&&(p||(p={}),p[d]=v[d]);for(a=0;a<c;a++)(l=Hl(n,hd)).stagger=0,_&&(l.yoyoEase=_),p&&zl(l,p),u=T[a],l.duration=+dd(g,_a(o),a,u,T),l.delay=(+dd(m,_a(o),a,u,T)||0)-o._delay,!v&&1===c&&l.delay&&(o._delay=m=l.delay,o._start+=m,l.delay=0),s.to(u,l,h?h(a,u,T):0),s._ease=Wc.none;s.duration()?g=m=0:o.timeline=0}else if(w){Wl(Fl(s.vars.defaults,{ease:"none"})),s._ease=Kc(w.ease||n.ease||"none");var S,E,$,M=0;if(tl(w))w.forEach((function(e){return s.to(T,e,">")})),s.duration();else{for(d in l={},w)"ease"===d||"easeEach"===d||cd(d,w[d],l,w.easeEach);for(d in l)for(S=l[d].sort((function(e,t){return e.t-t.t})),M=0,a=0;a<S.length;a++)($={ease:(E=S[a]).e,duration:(E.t-(a?S[a-1].t:0))/100*g})[d]=E.v,s.to(T,$,M),M+=$.duration;s.duration()<g&&s.to({},{duration:g-s.duration()})}}g||o.duration(g=s.duration())}else o.timeline=0;return!0!==y||Ta||(rd=_a(o),$a.killTweensOf(T),rd=0),nc(C,_a(o),r),n.reversed&&o.reverse(),n.paused&&o.paused(!0),(b||!g&&!w&&o._start===Rl(C._time)&&Qa(b)&&Kl(_a(o))&&"nested"!==C.data)&&(o._tTime=-1e-8,o.render(Math.max(0,-m)||0)),k&&rc(_a(o),k),o}Ca(t,e);var n=t.prototype;return n.render=function(e,t,n){var r,i,o,s,a,l,c,d,u,h=this._time,p=this._tDur,f=this._dur,g=e<0,m=e>p-Fa&&!g?p:e<Fa?0:e;if(f){if(m!==this._tTime||!e||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==g||this._lazy){if(r=m,d=this.timeline,this._repeat){if(s=f+this._rDelay,this._repeat<-1&&g)return this.totalTime(100*s+e,t,n);if(r=Rl(m%s),m===p?(o=this._repeat,r=f):(o=~~(a=Rl(m/s)))&&o===a?(r=f,o--):r>f&&(r=f),(l=this._yoyo&&1&o)&&(u=this._yEase,r=f-r),a=Ql(this._tTime,s),r===h&&!n&&this._initted&&o===a)return this._tTime=m,this;o!==a&&(d&&this._yEase&&Yc(d,l),this.vars.repeatRefresh&&!l&&!this._lock&&r!==s&&this._initted&&(this._lock=n=1,this.render(Rl(s*o),!0).invalidate()._lock=0))}if(!this._initted){if(ic(this,g?e:r,n,t,m))return this._tTime=0,this;if(!(h===this._time||n&&this.vars.repeatRefresh&&o!==a))return this;if(f!==this._dur)return this.render(e,t,n)}if(this._tTime=m,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(u||this._ease)(r/f),this._from&&(this.ratio=c=1-c),r&&!h&&!t&&!o&&($c(this,"onStart"),this._tTime!==m))return this;for(i=this._pt;i;)i.r(c,i.d),i=i._next;d&&d.render(e<0?e:d._dur*d._ease(r/this._dur),t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(g&&Yl(this,e,0,n),$c(this,"onUpdate")),this._repeat&&o!==a&&this.vars.onRepeat&&!t&&this.parent&&$c(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(g&&!this._onUpdate&&Yl(this,e,0,!0),(e||!f)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&ql(this,1),t||g&&!h||!(m||h||l)||($c(this,m===p?"onComplete":"onReverseComplete",!0),this._prom&&!(m<p&&this.timeScale()>0)&&this._prom()))}}else!function(e,t,n,r){var i,o,s,a=e.ratio,l=t<0||!t&&(!e._start&&oc(e)&&(e._initted||!sc(e))||(e._ts<0||e._dp._ts<0)&&!sc(e))?0:1,c=e._rDelay,d=0;if(c&&e._repeat&&(d=pc(0,e._tDur,t),o=Ql(d,c),e._yoyo&&1&o&&(l=1-l),o!==Ql(e._tTime,c)&&(a=1-l,e.vars.repeatRefresh&&e._initted&&e.invalidate())),l!==a||Sa||r||e._zTime===Fa||!t&&e._zTime){if(!e._initted&&ic(e,t,r,n,d))return;for(s=e._zTime,e._zTime=t||(n?Fa:0),n||(n=t&&!s),e.ratio=l,e._from&&(l=1-l),e._time=0,e._tTime=d,i=e._pt;i;)i.r(l,i.d),i=i._next;t<0&&Yl(e,t,0,!0),e._onUpdate&&!n&&$c(e,"onUpdate"),d&&e._repeat&&!n&&e.parent&&$c(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===l&&(l&&ql(e,1),n||Sa||($c(e,l?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)}(this,e,t,n);return this},n.targets=function(){return this._targets},n.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,i){Ia||Bc.wake(),this._ts||this.play();var o=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||ld(this,o),function(e,t,n,r,i,o,s,a){var l,c,d,u,h=(e._pt&&e._ptCache||(e._ptCache={}))[t];if(!h)for(h=e._ptCache[t]=[],d=e._ptLookup,u=e._targets.length;u--;){if((l=d[u][t])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return id=1,e.vars[t]="+=0",ld(e,s),id=0,a?pl(t+" not eligible for reset"):1;h.push(l)}for(u=h.length;u--;)(l=(c=h[u])._pt||c).s=!r&&0!==r||i?l.s+(r||0)+o*l.c:r,l.c=n-l.s,c.e&&(c.e=Al(n)+fc(c.e)),c.b&&(c.b=l.s+fc(c.b))}(this,e,t,n,r,this._ease(o/this._dur),o,i)?this.resetTo(e,t,n,r,1):(ec(this,0),this.parent||Ul(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(e,t){if(void 0===t&&(t="all"),!(e||t&&"all"!==t))return this._lazy=this._pt=0,this.parent?Mc(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Sa),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,rd&&!0!==rd.vars.overwrite)._first||Mc(this),this.parent&&n!==this.timeline.totalDuration()&&ac(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,o,s,a,l,c,d=this._targets,u=e?bc(e):d,h=this._ptLookup,p=this._pt;if((!t||"all"===t)&&function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0}(d,u))return"all"===t&&(this._pt=0),Mc(this);for(r=this._op=this._op||[],"all"!==t&&(qa(t)&&(a={},Ll(t,(function(e){return a[e]=1})),t=a),t=function(e,t){var n,r,i,o,s=e[0]?$l(e[0]).harness:0,a=s&&s.aliases;if(!a)return t;for(r in n=zl({},t),a)if(r in n)for(i=(o=a[r].split(",")).length;i--;)n[o[i]]=n[r];return n}(d,t)),c=d.length;c--;)if(~u.indexOf(d[c]))for(a in i=h[c],"all"===t?(r[c]=t,s=i,o={}):(o=r[c]=r[c]||{},s=t),s)(l=i&&i[a])&&("kill"in l.d&&!0!==l.d.kill(a)||Vl(this,l,"_pt"),delete i[a]),"all"!==o&&(o[a]=1);return this._initted&&!this._pt&&p&&Mc(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return uc(1,arguments)},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,t,n){return uc(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return $a.killTweensOf(e,t,n)},t}(td);Fl(pd.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Ll("staggerTo,staggerFrom,staggerFromTo",(function(e){pd[e]=function(){var t=new nd,n=gc.call(arguments,0);return n.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,n)}}));var fd=function(e,t,n){return e[t]=n},gd=function(e,t,n){return e[t](n)},md=function(e,t,n,r){return e[t](r.fp,n)},bd=function(e,t,n){return e.setAttribute(t,n)},vd=function(e,t){return Ga(e[t])?gd:Ka(e[t])&&e.setAttribute?bd:fd},yd=function(e,t){return t.set(t.t,t.p,Math.round(1e6*(t.s+t.c*e))/1e6,t)},wd=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},xd=function(e,t){var n=t._pt,r="";if(!e&&t.b)r=t.b;else if(1===e&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round(1e4*(n.s+n.c*e))/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},kd=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},_d=function(e,t,n,r){for(var i,o=this._pt;o;)i=o._next,o.p===r&&o.modifier(e,t,n),o=i},Cd=function(e){for(var t,n,r=this._pt;r;)n=r._next,r.p===e&&!r.op||r.op===e?Vl(this,r,"_pt"):r.dep||(t=1),r=n;return!t},Td=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},Sd=function(e){for(var t,n,r,i,o=e._pt;o;){for(t=o._next,n=r;n&&n.pr>o.pr;)n=n._next;(o._prev=n?n._prev:i)?o._prev._next=o:r=o,(o._next=n)?n._prev=o:i=o,o=t}e._pt=r},Ed=function(){function e(e,t,n,r,i,o,s,a,l){this.t=t,this.s=r,this.c=i,this.p=n,this.r=o||yd,this.d=s||this,this.set=a||fd,this.pr=l||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=Td,this.m=e,this.mt=n,this.tween=t},e}();Ll(Sl+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(e){return yl[e]=1})),cl.TweenMax=cl.TweenLite=pd,cl.TimelineLite=cl.TimelineMax=nd,$a=new nd({sortChildren:!1,defaults:Da,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Oa.stringFilter=zc;var $d=[],Md={},Ld=[],Ad=0,Rd=0,Nd=function(e){return(Md[e]||Ld).map((function(e){return e()}))},jd=function(){var e=Date.now(),t=[];e-Ad>2&&(Nd("matchMediaInit"),$d.forEach((function(e){var n,r,i,o,s=e.queries,a=e.conditions;for(r in s)(n=Ma.matchMedia(s[r]).matches)&&(i=1),n!==a[r]&&(a[r]=n,o=1);o&&(e.revert(),i&&t.push(e))})),Nd("matchMediaRevert"),t.forEach((function(e){return e.onMatch(e,(function(t){return e.add(null,t)}))})),Ad=e,Nd("matchMedia"))},Id=function(){function e(e,t){this.selector=t&&vc(t),this.data=[],this._r=[],this.isReverted=!1,this.id=Rd++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){Ga(e)&&(n=t,t=e,e=Ga);var r=this,i=function(){var e,i=Ea,o=r.selector;return i&&i!==r&&i.data.push(r),n&&(r.selector=vc(n)),Ea=r,e=t.apply(r,arguments),Ga(e)&&r._r.push(e),Ea=i,r.selector=o,r.isReverted=!1,e};return r.last=i,e===Ga?i(r,(function(e){return r.add(null,e)})):e?r[e]=i:i},t.ignore=function(e){var t=Ea;Ea=null,e(this),Ea=t},t.getTweens=function(){var t=[];return this.data.forEach((function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof pd&&!(n.parent&&"nested"===n.parent.data)&&t.push(n)})),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?function(){for(var t,r=n.getTweens(),i=n.data.length;i--;)"isFlip"===(t=n.data[i]).data&&(t.revert(),t.getChildren(!0,!0,!1).forEach((function(e){return r.splice(r.indexOf(e),1)})));for(r.map((function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}})).sort((function(e,t){return t.g-e.g||-1/0})).forEach((function(t){return t.t.revert(e)})),i=n.data.length;i--;)(t=n.data[i])instanceof nd?"nested"!==t.data&&(t.scrollTrigger&&t.scrollTrigger.revert(),t.kill()):!(t instanceof pd)&&t.revert&&t.revert(e);n._r.forEach((function(t){return t(e,n)})),n.isReverted=!0}():this.data.forEach((function(e){return e.kill&&e.kill()})),this.clear(),t)for(var r=$d.length;r--;)$d[r].id===this.id&&$d.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),Od=function(){function e(e){this.contexts=[],this.scope=e,Ea&&Ea.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){Xa(e)||(e={matches:e});var r,i,o,s=new Id(0,n||this.scope),a=s.conditions={};for(i in Ea&&!s.selector&&(s.selector=Ea.selector),this.contexts.push(s),t=s.add("onMatch",t),s.queries=e,e)"all"===i?o=1:(r=Ma.matchMedia(e[i]))&&($d.indexOf(s)<0&&$d.push(s),(a[i]=r.matches)&&(o=1),r.addListener?r.addListener(jd):r.addEventListener("change",jd));return o&&t(s,(function(e){return s.add(null,e)})),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach((function(t){return t.kill(e,!0)}))},e}(),Dd={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach((function(e){return Ac(e)}))},timeline:function(e){return new nd(e)},getTweensOf:function(e,t){return $a.getTweensOf(e,t)},getProperty:function(e,t,n,r){qa(e)&&(e=bc(e)[0]);var i=$l(e||{}).get,o=n?Pl:Dl;return"native"===n&&(n=""),e?t?o((kl[t]&&kl[t].get||i)(e,t,n,r)):function(t,n,r){return o((kl[t]&&kl[t].get||i)(e,t,n,r))}:e},quickSetter:function(e,t,n){if((e=bc(e)).length>1){var r=e.map((function(e){return zd.quickSetter(e,t,n)})),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var o=kl[t],s=$l(e),a=s.harness&&(s.harness.aliases||{})[t]||t,l=o?function(t){var r=new o;ja._pt=0,r.init(e,n?t+n:t,ja,0,[e]),r.render(1,r),ja._pt&&kd(1,ja)}:s.set(e,a);return o?l:function(t){return l(e,a,n?t+n:t,s,1)}},quickTo:function(e,t,n){var r,i=zd.to(e,Fl(((r={})[t]="+=0.1",r.paused=!0,r.stagger=0,r),n||{})),o=function(e,n,r){return i.resetTo(t,e,n,r)};return o.tween=i,o},isTweening:function(e){return $a.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Kc(e.ease,Da.ease)),Bl(Da,e||{})},config:function(e){return Bl(Oa,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,o=e.extendTimeline;(r||"").split(",").forEach((function(e){return e&&!kl[e]&&!cl[e]&&pl(t+" effect requires "+e+" plugin.")})),_l[t]=function(e,t,r){return n(bc(e),Fl(t||{},i),r)},o&&(nd.prototype[t]=function(e,n,r){return this.add(_l[t](e,Xa(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){Wc[e]=Kc(t)},parseEase:function(e,t){return arguments.length?Kc(e,t):Wc},getById:function(e){return $a.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var n,r,i=new nd(e);for(i.smoothChildTiming=Qa(e.smoothChildTiming),$a.remove(i),i._dp=0,i._time=i._tTime=$a._time,n=$a._first;n;)r=n._next,!t&&!n._dur&&n instanceof pd&&n.vars.onComplete===n._targets[0]||nc(i,n,n._start-n._delay),n=r;return nc($a,i,0),i},context:function(e,t){return e?new Id(e,t):Ea},matchMedia:function(e){return new Od(e)},matchMediaRefresh:function(){return $d.forEach((function(e){var t,n,r=e.conditions;for(n in r)r[n]&&(r[n]=!1,t=1);t&&e.revert()}))||jd()},addEventListener:function(e,t){var n=Md[e]||(Md[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=Md[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:function e(t,n,r){var i=n-t;return tl(t)?Cc(t,e(0,t.length),n):hc(r,(function(e){return(i+(e-t)%i)%i+t}))},wrapYoyo:function e(t,n,r){var i=n-t,o=2*i;return tl(t)?Cc(t,e(0,t.length-1),n):hc(r,(function(e){return t+((e=(o+(e-t)%o)%o||0)>i?o-e:e)}))},distribute:wc,random:_c,snap:kc,normalize:function(e,t,n){return Sc(e,t,0,1,n)},getUnit:fc,clamp:function(e,t,n){return hc(n,(function(n){return pc(e,t,n)}))},splitColor:Ic,toArray:bc,selector:vc,mapRange:Sc,pipe:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce((function(e,t){return t(e)}),e)}},unitize:function(e,t){return function(n){return e(parseFloat(n))+(t||fc(n))}},interpolate:function e(t,n,r,i){var o=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!o){var s,a,l,c,d,u=qa(t),h={};if(!0===r&&(i=1)&&(r=null),u)t={p:t},n={p:n};else if(tl(t)&&!tl(n)){for(l=[],c=t.length,d=c-2,a=1;a<c;a++)l.push(e(t[a-1],t[a]));c--,o=function(e){e*=c;var t=Math.min(d,~~e);return l[t](e-t)},r=n}else i||(t=zl(tl(t)?[]:{},t));if(!l){for(s in n)sd.call(h,t,s,"get",n[s]);o=function(e){return kd(e,h)||(u?t.p:t)}}}return hc(r,o)},shuffle:yc},install:ul,effects:_l,ticker:Bc,updateRoot:nd.updateRoot,plugins:kl,globalTimeline:$a,core:{PropTween:Ed,globals:fl,Tween:pd,Timeline:nd,Animation:td,getCache:$l,_removeLinkedListItem:Vl,reverting:function(){return Sa},context:function(e){return e&&Ea&&(Ea.data.push(e),e._ctx=Ea),Ea},suppressOverwrites:function(e){return Ta=e}}};Ll("to,from,fromTo,delayedCall,set,killTweensOf",(function(e){return Dd[e]=pd[e]})),Bc.add(nd.updateRoot),ja=Dd.to({},{duration:0});var Pd=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},Fd=function(e,t){return{name:e,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(qa(n)&&(r={},Ll(n,(function(e){return r[e]=1})),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}!function(e,t){var n,r,i,o=e._targets;for(n in t)for(r=o.length;r--;)(i=e._ptLookup[r][n])&&(i=i.d)&&(i._pt&&(i=Pd(i,n)),i&&i.modifier&&i.modifier(t[n],e,o[r],n))}(e,n)}}}},zd=Dd.registerPlugin({name:"attr",init:function(e,t,n,r,i){var o,s,a;for(o in this.tween=n,t)a=e.getAttribute(o)||"",(s=this.add(e,"setAttribute",(a||0)+"",t[o],r,i,0,0,o)).op=o,s.b=a,this._props.push(o)},render:function(e,t){for(var n=t._pt;n;)Sa?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:"endArray",init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},Fd("roundProps",xc),Fd("modifiers"),Fd("snap",kc))||Dd;pd.version=nd.version=zd.version="3.12.7",Ra=1,Za()&&Hc(),Wc.Power0,Wc.Power1,Wc.Power2,Wc.Power3,Wc.Power4,Wc.Linear,Wc.Quad,Wc.Cubic,Wc.Quart,Wc.Quint,Wc.Strong,Wc.Elastic,Wc.Back,Wc.SteppedEase,Wc.Bounce,Wc.Sine,Wc.Expo,Wc.Circ;var Bd,Hd,Wd,Ud,Vd,qd,Gd,Yd,Kd={},Xd=180/Math.PI,Qd=Math.PI/180,Zd=Math.atan2,Jd=/([A-Z])/g,eu=/(left|right|width|margin|padding|x)/i,tu=/[\s,\(]\S/,nu={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ru=function(e,t){return t.set(t.t,t.p,Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)},iu=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)},ou=function(e,t){return t.set(t.t,t.p,e?Math.round(1e4*(t.s+t.c*e))/1e4+t.u:t.b,t)},su=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},au=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},lu=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},cu=function(e,t,n){return e.style[t]=n},du=function(e,t,n){return e.style.setProperty(t,n)},uu=function(e,t,n){return e._gsap[t]=n},hu=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},pu=function(e,t,n,r,i){var o=e._gsap;o.scaleX=o.scaleY=n,o.renderTransform(i,o)},fu=function(e,t,n,r,i){var o=e._gsap;o[t]=n,o.renderTransform(i,o)},gu="transform",mu=gu+"Origin",bu=function e(t,n){var r=this,i=this.target,o=i.style,s=i._gsap;if(t in Kd&&o){if(this.tfm=this.tfm||{},"transform"===t)return nu.transform.split(",").forEach((function(t){return e.call(r,t,n)}));if(~(t=nu[t]||t).indexOf(",")?t.split(",").forEach((function(e){return r.tfm[e]=Iu(i,e)})):this.tfm[t]=s.x?s[t]:Iu(i,t),t===mu&&(this.tfm.zOrigin=s.zOrigin),this.props.indexOf(gu)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(mu,n,"")),t=gu}(o||n)&&this.props.push(t,n,o[t])},vu=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},yu=function(){var e,t,n=this.props,r=this.target,i=r.style,o=r._gsap;for(e=0;e<n.length;e+=3)n[e+1]?2===n[e+1]?r[n[e]](n[e+2]):r[n[e]]=n[e+2]:n[e+2]?i[n[e]]=n[e+2]:i.removeProperty("--"===n[e].substr(0,2)?n[e]:n[e].replace(Jd,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)o[t]=this.tfm[t];o.svg&&(o.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(e=Gd())&&e.isStart||i[gu]||(vu(i),o.zOrigin&&i[mu]&&(i[mu]+=" "+o.zOrigin+"px",o.zOrigin=0,o.renderTransform()),o.uncache=1)}},wu=function(e,t){var n={target:e,props:[],revert:yu,save:bu};return e._gsap||zd.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach((function(e){return n.save(e)})),n},xu=function(e,t){var n=Hd.createElementNS?Hd.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Hd.createElement(e);return n&&n.style?n:Hd.createElement(e)},ku=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(Jd,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&e(t,Cu(n)||n,1)||""},_u="O,Moz,ms,Ms,Webkit".split(","),Cu=function(e,t,n){var r=(t||Vd).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(_u[i]+e in r););return i<0?null:(3===i?"ms":i>=0?_u[i]:"")+e},Tu=function(){"undefined"!=typeof window&&window.document&&(Bd=window,Hd=Bd.document,Wd=Hd.documentElement,Vd=xu("div")||{style:{}},xu("div"),gu=Cu(gu),mu=gu+"Origin",Vd.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Yd=!!Cu("perspective"),Gd=zd.core.reverting,Ud=1)},Su=function(e){var t,n=e.ownerSVGElement,r=xu("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0);i.style.display="block",r.appendChild(i),Wd.appendChild(r);try{t=i.getBBox()}catch(e){}return r.removeChild(i),Wd.removeChild(r),t},Eu=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},$u=function(e){var t,n;try{t=e.getBBox()}catch(r){t=Su(e),n=1}return t&&(t.width||t.height)||n||(t=Su(e)),!t||t.width||t.x||t.y?t:{x:+Eu(e,["x","cx","x1"])||0,y:+Eu(e,["y","cy","y1"])||0,width:0,height:0}},Mu=function(e){return!(!e.getCTM||e.parentNode&&!e.ownerSVGElement||!$u(e))},Lu=function(e,t){if(t){var n,r=e.style;t in Kd&&t!==mu&&(t=gu),r.removeProperty?("ms"!==(n=t.substr(0,2))&&"webkit"!==t.substr(0,6)||(t="-"+t),r.removeProperty("--"===n?t:t.replace(Jd,"-$1").toLowerCase())):r.removeAttribute(t)}},Au=function(e,t,n,r,i,o){var s=new Ed(e._pt,t,n,0,1,o?lu:au);return e._pt=s,s.b=r,s.e=i,e._props.push(n),s},Ru={deg:1,rad:1,turn:1},Nu={grid:1,flex:1},ju=function e(t,n,r,i){var o,s,a,l,c=parseFloat(r)||0,d=(r+"").trim().substr((c+"").length)||"px",u=Vd.style,h=eu.test(n),p="svg"===t.tagName.toLowerCase(),f=(p?"client":"offset")+(h?"Width":"Height"),g=100,m="px"===i,b="%"===i;if(i===d||!c||Ru[i]||Ru[d])return c;if("px"!==d&&!m&&(c=e(t,n,r,"px")),l=t.getCTM&&Mu(t),(b||"%"===d)&&(Kd[n]||~n.indexOf("adius")))return o=l?t.getBBox()[h?"width":"height"]:t[f],Al(b?c/o*g:c/100*o);if(u[h?"width":"height"]=g+(m?d:i),s="rem"!==i&&~n.indexOf("adius")||"em"===i&&t.appendChild&&!p?t:t.parentNode,l&&(s=(t.ownerSVGElement||{}).parentNode),s&&s!==Hd&&s.appendChild||(s=Hd.body),(a=s._gsap)&&b&&a.width&&h&&a.time===Bc.time&&!a.uncache)return Al(c/a.width*g);if(!b||"height"!==n&&"width"!==n)(b||"%"===d)&&!Nu[ku(s,"display")]&&(u.position=ku(t,"position")),s===t&&(u.position="static"),s.appendChild(Vd),o=Vd[f],s.removeChild(Vd),u.position="absolute";else{var v=t.style[n];t.style[n]=g+i,o=t[f],v?t.style[n]=v:Lu(t,n)}return h&&b&&((a=$l(s)).time=Bc.time,a.width=s[f]),Al(m?o*c/g:o&&c?g/o*c:0)},Iu=function(e,t,n,r){var i;return Ud||Tu(),t in nu&&"transform"!==t&&~(t=nu[t]).indexOf(",")&&(t=t.split(",")[0]),Kd[t]&&"transform"!==t?(i=qu(e,r),i="transformOrigin"!==t?i[t]:i.svg?i.origin:Gu(ku(e,mu))+" "+i.zOrigin+"px"):(!(i=e.style[t])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=Fu[t]&&Fu[t](e,t,n)||ku(e,t)||Ml(e,t)||("opacity"===t?1:0)),n&&!~(i+"").trim().indexOf(" ")?ju(e,t,i,n)+n:i},Ou=function(e,t,n,r){if(!n||"none"===n){var i=Cu(t,e,1),o=i&&ku(e,i,1);o&&o!==n?(t=i,n=o):"borderColor"===t&&(n=ku(e,"borderTopColor"))}var s,a,l,c,d,u,h,p,f,g,m,b=new Ed(this._pt,e.style,t,0,1,xd),v=0,y=0;if(b.b=n,b.e=r,n+="","auto"==(r+="")&&(u=e.style[t],e.style[t]=r,r=ku(e,t)||r,u?e.style[t]=u:Lu(e,t)),zc(s=[n,r]),r=s[1],l=(n=s[0]).match(il)||[],(r.match(il)||[]).length){for(;a=il.exec(r);)h=a[0],f=r.substring(v,a.index),d?d=(d+1)%5:"rgba("!==f.substr(-5)&&"hsla("!==f.substr(-5)||(d=1),h!==(u=l[y++]||"")&&(c=parseFloat(u)||0,m=u.substr((c+"").length),"="===h.charAt(1)&&(h=Nl(c,h)+m),p=parseFloat(h),g=h.substr((p+"").length),v=il.lastIndex-g.length,g||(g=g||Oa.units[t]||m,v===r.length&&(r+=g,b.e+=g)),m!==g&&(c=ju(e,t,u,g)||0),b._pt={_next:b._pt,p:f||1===y?f:",",s:c,c:p-c,m:d&&d<4||"zIndex"===t?Math.round:0});b.c=v<r.length?r.substring(v,r.length):""}else b.r="display"===t&&"none"===r?lu:au;return sl.test(r)&&(b.e=0),this._pt=b,b},Du={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Pu=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n,r,i,o=t.t,s=o.style,a=t.u,l=o._gsap;if("all"===a||!0===a)s.cssText="",r=1;else for(i=(a=a.split(",")).length;--i>-1;)n=a[i],Kd[n]&&(r=1,n="transformOrigin"===n?mu:gu),Lu(o,n);r&&(Lu(o,gu),l&&(l.svg&&o.removeAttribute("transform"),s.scale=s.rotate=s.translate="none",qu(o,1),l.uncache=1,vu(s)))}},Fu={clearProps:function(e,t,n,r,i){if("isFromStart"!==i.data){var o=e._pt=new Ed(e._pt,t,n,0,0,Pu);return o.u=r,o.pr=-10,o.tween=i,e._props.push(n),1}}},zu=[1,0,0,1,0,0],Bu={},Hu=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},Wu=function(e){var t=ku(e,gu);return Hu(t)?zu:t.substr(7).match(rl).map(Al)},Uu=function(e,t){var n,r,i,o,s=e._gsap||$l(e),a=e.style,l=Wu(e);return s.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(i=e.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?zu:l:(l!==zu||e.offsetParent||e===Wd||s.svg||(i=a.display,a.display="block",(n=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(o=1,r=e.nextElementSibling,Wd.appendChild(e)),l=Wu(e),i?a.display=i:Lu(e,"display"),o&&(r?n.insertBefore(e,r):n?n.appendChild(e):Wd.removeChild(e))),t&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Vu=function(e,t,n,r,i,o){var s,a,l,c=e._gsap,d=i||Uu(e,!0),u=c.xOrigin||0,h=c.yOrigin||0,p=c.xOffset||0,f=c.yOffset||0,g=d[0],m=d[1],b=d[2],v=d[3],y=d[4],w=d[5],x=t.split(" "),k=parseFloat(x[0])||0,_=parseFloat(x[1])||0;n?d!==zu&&(a=g*v-m*b)&&(l=k*(-m/a)+_*(g/a)-(g*w-m*y)/a,k=k*(v/a)+_*(-b/a)+(b*w-v*y)/a,_=l):(k=(s=$u(e)).x+(~x[0].indexOf("%")?k/100*s.width:k),_=s.y+(~(x[1]||x[0]).indexOf("%")?_/100*s.height:_)),r||!1!==r&&c.smooth?(y=k-u,w=_-h,c.xOffset=p+(y*g+w*b)-y,c.yOffset=f+(y*m+w*v)-w):c.xOffset=c.yOffset=0,c.xOrigin=k,c.yOrigin=_,c.smooth=!!r,c.origin=t,c.originIsAbsolute=!!n,e.style[mu]="0px 0px",o&&(Au(o,c,"xOrigin",u,k),Au(o,c,"yOrigin",h,_),Au(o,c,"xOffset",p,c.xOffset),Au(o,c,"yOffset",f,c.yOffset)),e.setAttribute("data-svg-origin",k+" "+_)},qu=function(e,t){var n=e._gsap||new ed(e);if("x"in n&&!t&&!n.uncache)return n;var r,i,o,s,a,l,c,d,u,h,p,f,g,m,b,v,y,w,x,k,_,C,T,S,E,$,M,L,A,R,N,j,I=e.style,O=n.scaleX<0,D="px",P="deg",F=getComputedStyle(e),z=ku(e,mu)||"0";return r=i=o=l=c=d=u=h=p=0,s=a=1,n.svg=!(!e.getCTM||!Mu(e)),F.translate&&("none"===F.translate&&"none"===F.scale&&"none"===F.rotate||(I[gu]=("none"!==F.translate?"translate3d("+(F.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==F.rotate?"rotate("+F.rotate+") ":"")+("none"!==F.scale?"scale("+F.scale.split(" ").join(",")+") ":"")+("none"!==F[gu]?F[gu]:"")),I.scale=I.rotate=I.translate="none"),m=Uu(e,n.svg),n.svg&&(n.uncache?(E=e.getBBox(),z=n.xOrigin-E.x+"px "+(n.yOrigin-E.y)+"px",S=""):S=!t&&e.getAttribute("data-svg-origin"),Vu(e,S||z,!!S||n.originIsAbsolute,!1!==n.smooth,m)),f=n.xOrigin||0,g=n.yOrigin||0,m!==zu&&(w=m[0],x=m[1],k=m[2],_=m[3],r=C=m[4],i=T=m[5],6===m.length?(s=Math.sqrt(w*w+x*x),a=Math.sqrt(_*_+k*k),l=w||x?Zd(x,w)*Xd:0,(u=k||_?Zd(k,_)*Xd+l:0)&&(a*=Math.abs(Math.cos(u*Qd))),n.svg&&(r-=f-(f*w+g*k),i-=g-(f*x+g*_))):(j=m[6],R=m[7],M=m[8],L=m[9],A=m[10],N=m[11],r=m[12],i=m[13],o=m[14],c=(b=Zd(j,A))*Xd,b&&(S=C*(v=Math.cos(-b))+M*(y=Math.sin(-b)),E=T*v+L*y,$=j*v+A*y,M=C*-y+M*v,L=T*-y+L*v,A=j*-y+A*v,N=R*-y+N*v,C=S,T=E,j=$),d=(b=Zd(-k,A))*Xd,b&&(v=Math.cos(-b),N=_*(y=Math.sin(-b))+N*v,w=S=w*v-M*y,x=E=x*v-L*y,k=$=k*v-A*y),l=(b=Zd(x,w))*Xd,b&&(S=w*(v=Math.cos(b))+x*(y=Math.sin(b)),E=C*v+T*y,x=x*v-w*y,T=T*v-C*y,w=S,C=E),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,d=180-d),s=Al(Math.sqrt(w*w+x*x+k*k)),a=Al(Math.sqrt(T*T+j*j)),b=Zd(C,T),u=Math.abs(b)>2e-4?b*Xd:0,p=N?1/(N<0?-N:N):0),n.svg&&(S=e.getAttribute("transform"),n.forceCSS=e.setAttribute("transform","")||!Hu(ku(e,gu)),S&&e.setAttribute("transform",S))),Math.abs(u)>90&&Math.abs(u)<270&&(O?(s*=-1,u+=l<=0?180:-180,l+=l<=0?180:-180):(a*=-1,u+=u<=0?180:-180)),t=t||n.uncache,n.x=r-((n.xPercent=r&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-r)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+D,n.y=i-((n.yPercent=i&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-i)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+D,n.z=o+D,n.scaleX=Al(s),n.scaleY=Al(a),n.rotation=Al(l)+P,n.rotationX=Al(c)+P,n.rotationY=Al(d)+P,n.skewX=u+P,n.skewY=h+P,n.transformPerspective=p+D,(n.zOrigin=parseFloat(z.split(" ")[2])||!t&&n.zOrigin||0)&&(I[mu]=Gu(z)),n.xOffset=n.yOffset=0,n.force3D=Oa.force3D,n.renderTransform=n.svg?eh:Yd?Ju:Ku,n.uncache=0,n},Gu=function(e){return(e=e.split(" "))[0]+" "+e[1]},Yu=function(e,t,n){var r=fc(t);return Al(parseFloat(t)+parseFloat(ju(e,"x",n+"px",r)))+r},Ku=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,Ju(e,t)},Xu="0deg",Qu="0px",Zu=") ",Ju=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,o=n.x,s=n.y,a=n.z,l=n.rotation,c=n.rotationY,d=n.rotationX,u=n.skewX,h=n.skewY,p=n.scaleX,f=n.scaleY,g=n.transformPerspective,m=n.force3D,b=n.target,v=n.zOrigin,y="",w="auto"===m&&e&&1!==e||!0===m;if(v&&(d!==Xu||c!==Xu)){var x,k=parseFloat(c)*Qd,_=Math.sin(k),C=Math.cos(k);k=parseFloat(d)*Qd,x=Math.cos(k),o=Yu(b,o,_*x*-v),s=Yu(b,s,-Math.sin(k)*-v),a=Yu(b,a,C*x*-v+v)}g!==Qu&&(y+="perspective("+g+Zu),(r||i)&&(y+="translate("+r+"%, "+i+"%) "),(w||o!==Qu||s!==Qu||a!==Qu)&&(y+=a!==Qu||w?"translate3d("+o+", "+s+", "+a+") ":"translate("+o+", "+s+Zu),l!==Xu&&(y+="rotate("+l+Zu),c!==Xu&&(y+="rotateY("+c+Zu),d!==Xu&&(y+="rotateX("+d+Zu),u===Xu&&h===Xu||(y+="skew("+u+", "+h+Zu),1===p&&1===f||(y+="scale("+p+", "+f+Zu),b.style[gu]=y||"translate(0, 0)"},eh=function(e,t){var n,r,i,o,s,a=t||this,l=a.xPercent,c=a.yPercent,d=a.x,u=a.y,h=a.rotation,p=a.skewX,f=a.skewY,g=a.scaleX,m=a.scaleY,b=a.target,v=a.xOrigin,y=a.yOrigin,w=a.xOffset,x=a.yOffset,k=a.forceCSS,_=parseFloat(d),C=parseFloat(u);h=parseFloat(h),p=parseFloat(p),(f=parseFloat(f))&&(p+=f=parseFloat(f),h+=f),h||p?(h*=Qd,p*=Qd,n=Math.cos(h)*g,r=Math.sin(h)*g,i=Math.sin(h-p)*-m,o=Math.cos(h-p)*m,p&&(f*=Qd,s=Math.tan(p-f),i*=s=Math.sqrt(1+s*s),o*=s,f&&(s=Math.tan(f),n*=s=Math.sqrt(1+s*s),r*=s)),n=Al(n),r=Al(r),i=Al(i),o=Al(o)):(n=g,o=m,r=i=0),(_&&!~(d+"").indexOf("px")||C&&!~(u+"").indexOf("px"))&&(_=ju(b,"x",d,"px"),C=ju(b,"y",u,"px")),(v||y||w||x)&&(_=Al(_+v-(v*n+y*i)+w),C=Al(C+y-(v*r+y*o)+x)),(l||c)&&(s=b.getBBox(),_=Al(_+l/100*s.width),C=Al(C+c/100*s.height)),s="matrix("+n+","+r+","+i+","+o+","+_+","+C+")",b.setAttribute("transform",s),k&&(b.style[gu]=s)},th=function(e,t,n,r,i){var o,s,a=360,l=qa(i),c=parseFloat(i)*(l&&~i.indexOf("rad")?Xd:1)-r,d=r+c+"deg";return l&&("short"===(o=i.split("_")[1])&&(c%=a)!=c%180&&(c+=c<0?a:-360),"cw"===o&&c<0?c=(c+36e9)%a-~~(c/a)*a:"ccw"===o&&c>0&&(c=(c-36e9)%a-~~(c/a)*a)),e._pt=s=new Ed(e._pt,t,n,r,c,iu),s.e=d,s.u="deg",e._props.push(n),s},nh=function(e,t){for(var n in t)e[n]=t[n];return e},rh=function(e,t,n){var r,i,o,s,a,l,c,d=nh({},n._gsap),u=n.style;for(i in d.svg?(o=n.getAttribute("transform"),n.setAttribute("transform",""),u[gu]=t,r=qu(n,1),Lu(n,gu),n.setAttribute("transform",o)):(o=getComputedStyle(n)[gu],u[gu]=t,r=qu(n,1),u[gu]=o),Kd)(o=d[i])!==(s=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(a=fc(o)!==(c=fc(s))?ju(n,i,o,c):parseFloat(o),l=parseFloat(s),e._pt=new Ed(e._pt,r,i,a,l-a,ru),e._pt.u=c||0,e._props.push(i));nh(r,d)};Ll("padding,margin,Width,Radius",(function(e,t){var n="Top",r="Right",i="Bottom",o="Left",s=(t<3?[n,r,i,o]:[n+o,n+r,i+r,i+o]).map((function(n){return t<2?e+n:"border"+n+e}));Fu[t>1?"border"+e:e]=function(e,t,n,r,i){var o,a;if(arguments.length<4)return o=s.map((function(t){return Iu(e,t,n)})),5===(a=o.join(" ")).split(o[0]).length?o[0]:a;o=(r+"").split(" "),a={},s.forEach((function(e,t){return a[e]=o[t]=o[t]||o[(t-1)/2|0]})),e.init(t,a,i)}}));var ih,oh,sh={name:"css",register:Tu,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var o,s,a,l,c,d,u,h,p,f,g,m,b,v,y,w,x,k,_,C,T=this._props,S=e.style,E=n.vars.startAt;for(u in Ud||Tu(),this.styles=this.styles||wu(e),w=this.styles.props,this.tween=n,t)if("autoRound"!==u&&(s=t[u],!kl[u]||!ad(u,t,n,r,e,i)))if(c=typeof s,d=Fu[u],"function"===c&&(c=typeof(s=s.call(n,r,e,i))),"string"===c&&~s.indexOf("random(")&&(s=Tc(s)),d)d(this,e,u,s,n)&&(y=1);else if("--"===u.substr(0,2))o=(getComputedStyle(e).getPropertyValue(u)+"").trim(),s+="",Pc.lastIndex=0,Pc.test(o)||(h=fc(o),p=fc(s)),p?h!==p&&(o=ju(e,u,o,p)+p):h&&(s+=h),this.add(S,"setProperty",o,s,r,i,0,0,u),T.push(u),w.push(u,0,S[u]);else if("undefined"!==c){if(E&&u in E?(o="function"==typeof E[u]?E[u].call(n,r,e,i):E[u],qa(o)&&~o.indexOf("random(")&&(o=Tc(o)),fc(o+"")||"auto"===o||(o+=Oa.units[u]||fc(Iu(e,u))||""),"="===(o+"").charAt(1)&&(o=Iu(e,u))):o=Iu(e,u),l=parseFloat(o),(f="string"===c&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),a=parseFloat(s),u in nu&&("autoAlpha"===u&&(1===l&&"hidden"===Iu(e,"visibility")&&a&&(l=0),w.push("visibility",0,S.visibility),Au(this,S,"visibility",l?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==u&&"transform"!==u&&~(u=nu[u]).indexOf(",")&&(u=u.split(",")[0])),g=u in Kd)if(this.styles.save(u),m||((b=e._gsap).renderTransform&&!t.parseTransform||qu(e,t.parseTransform),v=!1!==t.smoothOrigin&&b.smooth,(m=this._pt=new Ed(this._pt,S,gu,0,1,b.renderTransform,b,0,-1)).dep=1),"scale"===u)this._pt=new Ed(this._pt,b,"scaleY",b.scaleY,(f?Nl(b.scaleY,f+a):a)-b.scaleY||0,ru),this._pt.u=0,T.push("scaleY",u),u+="X";else{if("transformOrigin"===u){w.push(mu,0,S[mu]),k=void 0,_=void 0,C=void 0,_=(k=(x=s).split(" "))[0],C=k[1]||"50%","top"!==_&&"bottom"!==_&&"left"!==C&&"right"!==C||(x=_,_=C,C=x),k[0]=Du[_]||_,k[1]=Du[C]||C,s=k.join(" "),b.svg?Vu(e,s,0,v,0,this):((p=parseFloat(s.split(" ")[2])||0)!==b.zOrigin&&Au(this,b,"zOrigin",b.zOrigin,p),Au(this,S,u,Gu(o),Gu(s)));continue}if("svgOrigin"===u){Vu(e,s,1,v,0,this);continue}if(u in Bu){th(this,b,u,l,f?Nl(l,f+s):s);continue}if("smoothOrigin"===u){Au(this,b,"smooth",b.smooth,s);continue}if("force3D"===u){b[u]=s;continue}if("transform"===u){rh(this,s,e);continue}}else u in S||(u=Cu(u)||u);if(g||(a||0===a)&&(l||0===l)&&!tu.test(s)&&u in S)a||(a=0),(h=(o+"").substr((l+"").length))!==(p=fc(s)||(u in Oa.units?Oa.units[u]:h))&&(l=ju(e,u,o,p)),this._pt=new Ed(this._pt,g?b:S,u,l,(f?Nl(l,f+a):a)-l,g||"px"!==p&&"zIndex"!==u||!1===t.autoRound?ru:su),this._pt.u=p||0,h!==p&&"%"!==p&&(this._pt.b=o,this._pt.r=ou);else if(u in S)Ou.call(this,e,u,o,f?f+s:s);else if(u in e)this.add(e,u,o||e[u],f?f+s:s,r,i);else if("parseTransform"!==u){hl(u,s);continue}g||(u in S?w.push(u,0,S[u]):"function"==typeof e[u]?w.push(u,2,e[u]()):w.push(u,1,o||e[u])),T.push(u)}y&&Sd(this)},render:function(e,t){if(t.tween._time||!Gd())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:Iu,aliases:nu,getSetter:function(e,t,n){var r=nu[t];return r&&r.indexOf(",")<0&&(t=r),t in Kd&&t!==mu&&(e._gsap.x||Iu(e,"x"))?n&&qd===n?"scale"===t?hu:uu:(qd=n||{})&&("scale"===t?pu:fu):e.style&&!Ka(e.style[t])?cu:~t.indexOf("-")?du:vd(e,t)},core:{_removeProperty:Lu,_getMatrix:Uu}};zd.utils.checkPrefix=Cu,zd.core.getStyleSaver=wu,oh=Ll("x,y,z,scale,scaleX,scaleY,xPercent,yPercent"+","+(ih="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(e){Kd[e]=1})),Ll(ih,(function(e){Oa.units[e]="deg",Bu[e]=1})),nu[oh[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+ih,Ll("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(e){var t=e.split(":");nu[t[1]]=oh[t[0]]})),Ll("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(e){Oa.units[e]="px"})),zd.registerPlugin(sh);var ah=zd.registerPlugin(sh)||zd;function lh({blobType:e="circle",fillColor:n="#00f0ff",blobSize:r=125,domEl:i=null,eventEl:o=window,rect:s={left:0,top:0},isDashboard:a=!1}){const l=[(0,t.useRef)(null),(0,t.useRef)(null),(0,t.useRef)(null)],c=(0,t.useRef)({x:0,y:0}),d=[(0,t.useRef)({x:0,y:0}),(0,t.useRef)({x:0,y:0}),(0,t.useRef)({x:0,y:0})],u=[Math.round(.4*r),r,Math.round(.6*r)],h=e=>{let t=e.clientX||e.touches&&e.touches[0].clientX,n=e.clientY||e.touches&&e.touches[0].clientY;s.left&&s.top&&(t-=s.left,n-=s.top),c.current={x:t,y:n}};return(0,t.useEffect)((()=>{if(o)return o.addEventListener("mousemove",h),o.addEventListener("touchmove",h),()=>{o.removeEventListener("mousemove",h),o.removeEventListener("touchmove",h)}}),[o,s]),(0,t.useEffect)((()=>{const e=()=>{ah.to(d[0].current,{x:c.current.x,y:c.current.y,duration:.1,ease:"power1.out"});for(let e=1;e<3;e++)ah.to(d[e].current,{x:d[e-1].current.x,y:d[e-1].current.y,duration:.5,ease:"power2.out"});l.forEach(((e,t)=>{e.current&&(e.current.style.transform=`translate3d(${d[t].current.x}px,${d[t].current.y}px,0) translate3d(-50%,-50%,0)`)})),requestAnimationFrame(e)},t=requestAnimationFrame(e);return()=>cancelAnimationFrame(t)}),[]),(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("svg",{style:{position:"absolute",width:0,height:0},children:(0,Zt.jsxs)("filter",{id:"bBlocks-cursor-blob",children:[(0,Zt.jsx)("feGaussianBlur",{in:"SourceGraphic",result:"blur",stdDeviation:"30"}),(0,Zt.jsx)("feColorMatrix",{in:"blur",values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 35 -10"})]})}),(0,Zt.jsx)("div",{className:"bBlocks-blob-cursor-main",style:{position:a?"absolute":"fixed",left:0,top:0,width:s?.width?s.width:"100%",height:s?.height?s.height:"100%",pointerEvents:"none"},ref:i,children:[0,1,2].map((t=>(0,Zt.jsx)("div",{ref:l[t],style:{position:"absolute",willChange:"transform",borderRadius:"circle"===e?"50%":"0%",backgroundColor:n,opacity:.6,width:`${u[t]||60}px`,height:`${u[t]||60}px`}},t)))})]})}ah.core.Tween;const ch=(e=window)=>{const[n,r]=(0,t.useState)({}),[i,o]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{if(!e)return;const t=e=>{let t=e.clientX,n=e.clientY;r({x:t,y:n})},n=()=>o(!0),i=()=>o(!1);return e.addEventListener("mousemove",t),e.addEventListener("mousedown",n),e.addEventListener("mouseup",i),()=>{e.removeEventListener("mousemove",t),e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",i)}}),[e,n]),{cursorPosition:n,isClicking:i,setIsClicking:o}},dh=({size:e=12,color:n="#3B82F6",duration:r=.1,domEl:i=null,eventEl:o=window})=>{const{cursorPosition:s,isClicking:a}=ch(i),l=(0,t.useRef)(null);(0,t.useEffect)((()=>{l.current&&ah.to(l.current,{x:s.x,y:s.y,duration:r,ease:"power3.out"})}),[s]),(0,t.useEffect)((()=>{l.current&&(a?ah.to(l.current,{scale:.7,duration:.2,ease:"power2.out"}):ah.to(l.current,{scale:1,duration:.2,ease:"elastic.out(1, 0.3)"}))}),[a]);const c={...fa(e)&&{"--bBlocks-cursor-dot-cursor-size":e+"px"},...fa(n)&&{"--bBlocks-cursor-dot-cursor-bg":n}};return(0,Zt.jsx)("div",{ref:l,className:"bBlocks-cursor-dotCursor",style:c})},uh="bBlocks-cursor",hh=({size:e=40,color:n="#EF4444",elasticity:r=.6,duration:i=.5,innerDuration:o=.1,borderWidth:s="2px",domEl:a=null,eventEl:l=window})=>{const{cursorPosition:c,isClicking:d}=ch(a),u=(0,t.useRef)(null),h=(0,t.useRef)(null),p=(0,t.useRef)({x:0,y:0});return(0,t.useEffect)((()=>{if(!u.current||!h.current)return;ah.to(u.current,{x:c.x,y:c.y,duration:o,ease:"power1.out"}),ah.to(h.current,{x:c.x,y:c.y,duration:i,ease:`elastic.out(1, ${r})`});const t=c.x-p.current.x,n=c.y-p.current.y;Math.sqrt(t*t+n*n)>5?ah.to(h.current,{width:1.5*e,height:.8*e,duration:.2}):ah.to(h.current,{width:e,height:e,duration:.8,ease:"elastic.out(1, 0.3)"}),p.current={x:c.x,y:c.y}}),[c,e,r]),(0,t.useEffect)((()=>{u.current&&h.current&&(d?(ah.to(u.current,{scale:.8,duration:.2}),ah.to(h.current,{scale:1.2,duration:.3})):ah.to([u.current,h.current],{scale:1,duration:.4,ease:"elastic.out(1, 0.3)"}))}),[d]),(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("div",{ref:u,className:`${uh}-elastic-cursor`,style:{width:.3*e,height:.3*e,backgroundColor:n}}),(0,Zt.jsx)("div",{ref:h,className:`${uh}-elastic-cursor-follower`,style:{width:e,height:e,border:`${s} solid ${n}`}})]})},ph=({duration:e=.6,innerDuration:n=.1,size:r,followBg:i,followBorderColor:o,followBorderWidth:s,innerBg:a,innerBorderColor:l,innerBorderWidth:c,domEl:d=null})=>{const u=(0,t.useRef)(null),h=(0,t.useRef)(null),{cursorPosition:p}=ch(d);(0,t.useEffect)((()=>{const t=u.current,r=h.current;ah.to(t,{x:p.x,y:p.y,duration:e,ease:"power3"}),ah.to(r,{x:p.x,y:p.y,duration:n,ease:"power3"})}),[p]);const f={...fa(r)&&{"--bBlocks-follow-cursor-size":r},...fa(i)&&{"--bBlocks-follow-cursor-bg":i},...fa(o)&&{"--bBlocks-follow-cursor-border-color":o},...fa(s)&&{"--bBlocks-follow-cursor-border-width":s}},g={...fa(r)&&{"--bBlocks-follow-cursor-size":r},...fa(a)&&{"--bBlocks-follow-inner-cursor-bg":a},...fa(l)&&{"--bBlocks-follow-inner-cursor-border":l},...fa(c)&&{"--bBlocks-follow-inner-cursor-border-width":c}};return(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("div",{style:f,className:"bBlocks-follow-cursor",ref:u}),(0,Zt.jsx)("div",{style:g,className:"bBlocks-follow-inner-cursor",ref:h})]})},fh=({size:e=20,primaryColor:n,secondaryColor:r,tertiaryColor:i,intensity:o="medium",speed:s="medium",tailLength:a=8,glitchMode:l="matrix",enabled:c=!0,blendMode:d="normal",showTrail:u=!0,clickEffect:h=!1,domEl:p=null,eventEl:f=window})=>{const g=(0,t.useRef)(null),{cursorPosition:m,isClicking:b}=ch(p),[v,y]=(0,t.useState)([]);if((0,t.useEffect)((()=>{c&&u&&y((e=>[{x:m.x,y:m.y,opacity:1},...e.slice(0,a-1).map(((e,t)=>({...e,opacity:1-(t+1)/a})))]))}),[m,c,u,a]),!c)return null;const w={matrix:{primary:"#00ff00",secondary:"#40ff40",tertiary:"#80ff80"},digital:{primary:"#ff4040",secondary:"#40ff40",tertiary:"#4040ff"},cyberpunk:{primary:"#ff0080",secondary:"#00ffff",tertiary:"#ffff00"},analog:{primary:"#ffffff",secondary:"#ff4444",tertiary:"#4444ff"}},x={"--bBlocks-cursor-glitch-size":`${e}px`,"--bBlocks-cursor-glitch-primary-color":fa(n)?n:w[l].primary,"--bBlocks-cursor-glitch-secondary-color":fa(r)?r:w[l].secondary,"--bBlocks-cursor-glitch-tertiary-color":fa(i)?i:w[l].tertiary,"--bBlocks-cursor-glitch-blend-mode":d,left:m.x,top:m.y,transform:"translate(-50%, -50%) "+(b&&h?"scale(1.5)":"scale(1)")},k=["glitch-cursor",`glitch-${l}`,`intensity-${o}`,`speed-${s}`,b&&h?"clicking":""].filter(Boolean).join(" ");return(0,Zt.jsxs)(Zt.Fragment,{children:[u&&v.map(((t,r)=>(0,Zt.jsx)("div",{className:"glitch-cursor-trail",style:{"--bBlocks-cursor-glitch-size":e*(1-.1*r)+"px","--bBlocks-cursor-glitch-primary-color":n,"--bBlocks-cursor-glitch-trail-opacity":t.opacity,left:t.x,top:t.y,transform:"translate(-50%, -50%)",opacity:.6*t.opacity}},r))),(0,Zt.jsxs)("div",{ref:g,className:k,style:x,children:[(0,Zt.jsx)("div",{className:"cursor-core"}),(0,Zt.jsx)("div",{className:"cursor-glitch-layer layer-1"}),(0,Zt.jsx)("div",{className:"cursor-glitch-layer layer-2"}),(0,Zt.jsx)("div",{className:"cursor-glitch-layer layer-3"}),(0,Zt.jsx)("div",{className:"b-blocks-cursor-ring"}),"matrix"===l&&(0,Zt.jsx)("div",{className:"matrix-particles",children:Array.from({length:6}).map(((e,t)=>(0,Zt.jsx)("div",{className:"matrix-particle"},t)))})]})]})},gh=({size:e=50,innerSize:n=10,color:r="#F97316",pulseSpeed:i=1.5,duration:o=.2,domEl:s=null,eventEl:a=window})=>{const{cursorPosition:l,isClicking:c}=ch(s),d=(0,t.useRef)(null),u=(0,t.useRef)(null),h=(0,t.useRef)(null);return(0,t.useEffect)((()=>{d.current&&u.current&&ah.to([d.current,u.current],{x:l.x,y:l.y,duration:o,ease:"power2.out"})}),[l]),(0,t.useEffect)((()=>{if(d.current)return h.current=ah.timeline({repeat:-1,yoyo:!0}),h.current.to(d.current,{scale:1.2,opacity:.6,duration:i,ease:"sine.inOut"}).to(d.current,{scale:1,opacity:.2,duration:i,ease:"sine.inOut"}),()=>{h.current&&h.current.kill()}}),[i]),(0,t.useEffect)((()=>{u.current&&d.current&&h.current&&(c?(h.current.pause(),ah.to(d.current,{scale:1.5,opacity:.8,duration:.3,ease:"power2.out"}),ah.to(u.current,{scale:1.2,duration:.2,ease:"power2.out"})):(h.current.play(),ah.to(d.current,{scale:1,opacity:.2,duration:.5,ease:"elastic.out(1, 0.3)"}),ah.to(u.current,{scale:1,duration:.4,ease:"elastic.out(1, 0.3)"})))}),[c]),(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("div",{ref:d,className:"b-blocks-cursor-glow-outer",style:{width:e,height:e,borderRadius:"50%",backgroundColor:r,opacity:.2}}),(0,Zt.jsx)("div",{ref:u,className:"b-blocks-cursor-glow-inner",style:{width:n,height:n,backgroundColor:r,boxShadow:`0 0 10px ${r}`}})]})},mh=({size:e=50,colors:n=["#3B82F6","#10B981","#F59E0B"],rotationSpeed:r=60,duration:i=.2,domEl:o=null,eventEl:s=window})=>{const{cursorPosition:a,isClicking:l}=ch(o),c=(0,t.useRef)(null),d=(0,t.useRef)(0),u=(0,t.useRef)(performance.now()),h=180*r,p=(0,t.useRef)(h);return(0,t.useEffect)((()=>{p.current=h}),[h]),(0,t.useEffect)((()=>{c.current&&ah.to(c.current,{x:a.x,y:a.y,duration:i,ease:"power2.out"})}),[a,i]),(0,t.useEffect)((()=>{if(!c.current)return;const e=t=>{const r=(t-u.current)/1e3;u.current=t,d.current=(d.current+p.current*r)%360,c.current&&ah.to(c.current,{background:`conic-gradient(from ${d.current}deg, ${n.join(", ")})`,duration:0}),requestAnimationFrame(e)},t=requestAnimationFrame(e);return()=>{cancelAnimationFrame(t)}}),[n]),(0,t.useEffect)((()=>{c.current&&(l?ah.to(c.current,{scale:1.2,duration:.3,ease:"power2.out"}):ah.to(c.current,{scale:1,duration:.5,ease:"elastic.out(1, 0.3)"}))}),[l]),(0,Zt.jsx)("div",{ref:c,className:"b-blocks-cursor-gradient",style:{width:e,height:e,background:`conic-gradient(from 0deg, ${n.join(", ")})`}})},bh=({url:e="",size:n=80,rounded:r="8px",domEl:i=null,eventEl:o=window})=>{const{cursorPosition:s,isClicking:a}=ch(i),l=(0,t.useRef)(null);return(0,t.useEffect)((()=>{l.current&&ah.to(l.current,{x:s.x,y:s.y,duration:.2,ease:"power2.out"})}),[s]),(0,t.useEffect)((()=>{l.current&&(a?ah.to(l.current,{scale:1.2,rotation:5,duration:.3,ease:"power2.out"}):ah.to(l.current,{scale:1,rotation:0,duration:.4,ease:"elastic.out(1, 0.3)"}))}),[a]),(0,Zt.jsx)("div",{ref:l,className:"b-blocks-cursor-image",style:{width:n,height:n,backgroundImage:`url(${e})`,borderRadius:r}})},vh=({size:e=40,borderWidth:n=2,borderColor:r="#F59E0B",backgroundColor:i="#f59e0b1a",targetedEl:o='button, a, textarea, select, [role="button"], [type="submit"]',domEl:s=null,eventEl:a=window})=>{const{cursorPosition:l,isClicking:c}=ch(s),d=(0,t.useRef)(null),[u,h]=(0,t.useState)(null);return(0,t.useEffect)((()=>{const e=e=>{const t=e.target.closest(o);h(t||null)};return s.addEventListener("mouseover",e),()=>{s.removeEventListener("mouseover",e)}}),[]),(0,t.useEffect)((()=>{if(d.current)if(u){const e=u.getBoundingClientRect(),t=e.left+e.width/2,n=e.top+e.height/2;ah.to(d.current,{x:t,y:n,width:e.width+20,height:e.height+20,borderRadius:"8px",duration:.4,ease:"elastic.out(1, 0.6)"})}else ah.to(d.current,{x:l.x,y:l.y,width:e,height:e,borderRadius:"50%",duration:.2,ease:"power2.out"})}),[l,u,e]),(0,t.useEffect)((()=>{d.current&&(c?ah.to(d.current,{scale:.9,duration:.2,ease:"power2.out"}):ah.to(d.current,{scale:1,duration:.3,ease:"elastic.out(1, 0.3)"}))}),[c]),(0,Zt.jsx)("div",{ref:d,className:"b-blocks-magnetic-cursor",style:{width:e,height:e,border:`${n}px solid ${r}`,backgroundColor:i}})},yh=({size:e=30,color:n="#08F7FE",shadowSize:r=20,duration:i=.2,domEl:o=null,eventEl:s=window})=>{const{cursorPosition:a,isClicking:l}=ch(o),c=(0,t.useRef)(null),d=(0,t.useRef)(null);return(0,t.useEffect)((()=>{c.current&&d.current&&ah.to([c.current,d.current],{x:a.x,y:a.y,duration:i,ease:"power2.out"})}),[a]),(0,t.useEffect)((()=>{c.current&&d.current&&(l?(ah.to(c.current,{scale:.8,boxShadow:`0 0 ${1.5*r}px ${n}, 0 0 ${2*r}px ${n}`,duration:.2}),ah.to(d.current,{scale:1.2,opacity:.8,duration:.2})):(ah.to(c.current,{scale:1,boxShadow:`0 0 ${r}px ${n}, 0 0 ${1.5*r}px ${n}`,duration:.4,ease:"elastic.out(1, 0.3)"}),ah.to(d.current,{scale:1,opacity:.4,duration:.4})))}),[l,n,r]),(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("div",{ref:c,className:"b-blocks-neon-cursor",style:{width:e,height:e,backgroundColor:n,boxShadow:`0 0 ${r}px ${n}, 0 0 ${1.5*r}px ${n}`}}),(0,Zt.jsx)("div",{ref:d,className:"b-blocks-neon-glow",style:{width:3*e,height:3*e,backgroundColor:n,opacity:.4}})]})},wh=({size:e=60,pixelSize:n=6,color:r="linear-gradient(135deg, #fecda5 0%, #fe2d2d 50%, #6b003e 100%)",duration:i=.15,domEl:o=null})=>{const{cursorPosition:s,isClicking:a}=ch(o),l=(0,t.useRef)(null);(0,t.useEffect)((()=>{l.current&&ah.to(l.current,{x:s.x,y:s.y,duration:i,ease:"power2.out"})}),[s]),(0,t.useEffect)((()=>{l.current&&(a?ah.to(l.current,{scale:.8,duration:.2,ease:"power2.out"}):ah.to(l.current,{scale:1,duration:.4,ease:"elastic.out(1, 0.3)"}))}),[a]);const c=Math.ceil(e/n),d=[];for(let e=0;e<c;e++)for(let t=0;t<c;t++){const i=Math.sqrt(Math.pow(t-c/2,2)+Math.pow(e-c/2,2));i<=c/2&&d.push((0,Zt.jsx)("div",{style:{position:"absolute",left:t*n,top:e*n,width:n,height:n,background:r,opacity:a?1-i/(c/2)*.3:1}},`${t}-${e}`))}return(0,Zt.jsx)("div",{ref:l,className:"b-blocks-cursor-pixelated",style:{width:e,height:e},children:d})},xh=({size:e=40,borderWidth:n=2,borderColor:r="#10B981",duration:i=.2,domEl:o=null})=>{const{cursorPosition:s,isClicking:a}=ch(o),l=(0,t.useRef)(null);return(0,t.useEffect)((()=>{l.current&&ah.to(l.current,{x:s.x,y:s.y,duration:i,ease:"power2.out"})}),[s]),(0,t.useEffect)((()=>{l.current&&(a?ah.to(l.current,{scale:.8,duration:.2,borderWidth:2*n,ease:"power2.out"}):ah.to(l.current,{scale:1,borderWidth:n,duration:.4,ease:"elastic.out(1, 0.3)"}))}),[a,n]),(0,Zt.jsx)("div",{ref:l,className:"b-blocks-cursor-ring",style:{width:e,height:e,border:`${n}px solid ${r}`}})},kh=({x:e,y:n,size:r,color:i,onComplete:o})=>{const s=(0,t.useRef)(null);return(0,t.useEffect)((()=>{s.current&&(ah.set(s.current,{x:e,y:n,scale:0,opacity:1}),ah.to(s.current,{scale:3,opacity:0,duration:1,ease:"power2.out",onComplete:o}))}),[e,n,o]),(0,Zt.jsx)("div",{ref:s,className:"b-blocks-cursor-ripple",style:{width:r,height:r,border:`2px solid ${i}`}})},_h=({size:e=50,color:n="rgba(56, 189, 248, 0.6)",maxRipples:r=5,duration:i=.1})=>{const{cursorPosition:o,isClicking:s}=ch(),a=(0,t.useRef)(null),[l,c]=(0,t.useState)([]),d=(0,t.useRef)(0),u=(0,t.useRef)(0);return(0,t.useEffect)((()=>{a.current&&ah.to(a.current,{x:o.x,y:o.y,duration:i,ease:"power2.out"})}),[o]),(0,t.useEffect)((()=>{if(s){const e=Date.now();if(e-d.current>200){d.current=e;const t={id:u.current++,x:o.x,y:o.y};c((e=>{const n=[...e,t];return n.length>r?n.slice(n.length-r):n}))}}}),[s,o,r]),(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("div",{ref:a,className:"b-blocks-cursor-ripple-wrapper",style:{width:e/3,height:e/3,backgroundColor:n.replace(/[^,]+(?=\))/,"1")}}),l.map((t=>(0,Zt.jsx)(kh,{x:t.x,y:t.y,size:e,color:n,onComplete:()=>{c((e=>e.filter((e=>e.id!==t.id))))}},t.id)))]})},Ch=({trailWidth:e=3,color:n="#111827",trailLength:r=50,domEl:i=null})=>{const{cursorPosition:o,isClicking:s}=ch(i),a=(0,t.useRef)(null),l=(0,t.useRef)(null),c=(0,t.useRef)([]);(0,t.useEffect)((()=>{const e=l.current;if(!e)return;e.width=window.innerWidth,e.height=window.innerHeight;const t=()=>{e&&(e.width=window.innerWidth,e.height=window.innerHeight,d())};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}}),[]),(0,t.useEffect)((()=>{a.current&&(ah.to(a.current,{x:o.x,y:o.y,duration:0,ease:"power2.out"}),c.current.push({x:o.x,y:o.y}),c.current.length>r&&c.current.shift(),d())}),[o,s,r]);const d=()=>{const t=l.current;if(!t)return;const r=t.getContext("2d");if(r&&(r.clearRect(0,0,t.width,t.height),!(c.current.length<2))){r.strokeStyle=n,r.lineWidth=e,r.lineCap="round",r.lineJoin="round",r.beginPath(),r.moveTo(c.current[0].x,c.current[0].y);for(let e=1;e<c.current.length;e++)if(e<c.current.length-1){const t=(c.current[e].x+c.current[e+1].x)/2,n=(c.current[e].y+c.current[e+1].y)/2;r.quadraticCurveTo(c.current[e].x,c.current[e].y,t,n)}else r.lineTo(c.current[e].x,c.current[e].y);r.stroke()}};return(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("canvas",{ref:l,className:"b-blocks-cursor-sketch"}),(0,Zt.jsx)("div",{ref:a,className:"b-blocks-cursor-sketch-dot",style:{width:3*e,height:3*e,borderRadius:"50%",backgroundColor:n,border:"none",transform:"translate(-50%, -50%)"}})]})},Th=({size:e=150,intensity:n=.7,color:r="#f00",duration:i=.2,domEl:o=null})=>{const{cursorPosition:s}=ch(o),a=(0,t.useRef)(null);return(0,t.useEffect)((()=>{a.current&&ah.to(a.current,{x:s.x,y:s.y,duration:i,ease:"power2.out"})}),[s]),(0,Zt.jsx)("div",{ref:a,className:"b-blocks-cursor-spotlight",style:{width:e,height:e,background:`radial-gradient(circle, ${r} 0%, rgba(255,255,255,0) 70%)`,opacity:n}})},Sh=({size:e=80,backgroundColor:n="#3b82f6",textColor:r="#FFFFFF",cursorText:i="Cursor Text",duration:o=.2,domEl:s=null})=>{const{cursorPosition:a,isClicking:l}=ch(s),c=(0,t.useRef)(null);return(0,t.useEffect)((()=>{c.current&&ah.to(c.current,{x:a.x,y:a.y,duration:o,ease:"power2.out"})}),[a]),(0,t.useEffect)((()=>{c.current&&(l?ah.to(c.current,{scale:.9,duration:.2,ease:"power2.out"}):ah.to(c.current,{scale:1,duration:.3,ease:"elastic.out(1, 0.3)"}))}),[l]),(0,Zt.jsx)("div",{ref:c,className:"b-blocks-cursor-text",style:{width:e+"px",height:e+"px",background:n,color:r,opacity:i?1:0},children:i})},Eh=function({SIM_RESOLUTION:e=128,DYE_RESOLUTION:n=720,CAPTURE_RESOLUTION:r=512,DENSITY_DISSIPATION:i=3.5,VELOCITY_DISSIPATION:o=2,PRESSURE:s=.1,PRESSURE_ITERATIONS:a=20,CURL:l=3,SPLAT_RADIUS:c=.2,SPLAT_FORCE:d=6e3,SHADING:u=!0,COLOR_UPDATE_SPEED:h=10,BACK_COLOR:p={r:.5,g:0,b:0},TRANSPARENT:f=!0,domEl:g=window}){const m=(0,t.useRef)(null);return(0,t.useEffect)((()=>{const t=m.current;if(!t)return;let b={SIM_RESOLUTION:e,DYE_RESOLUTION:n,CAPTURE_RESOLUTION:r,DENSITY_DISSIPATION:i,VELOCITY_DISSIPATION:o,PRESSURE:s,PRESSURE_ITERATIONS:a,CURL:l,SPLAT_RADIUS:c,SPLAT_FORCE:d,SHADING:u,COLOR_UPDATE_SPEED:h,PAUSED:!1,BACK_COLOR:p,TRANSPARENT:f},v=[new class{constructor(){this.id=-1,this.texcoordX=0,this.texcoordY=0,this.prevTexcoordX=0,this.prevTexcoordY=0,this.deltaX=0,this.deltaY=0,this.down=!1,this.moved=!1,this.color=[0,0,0]}}];const{gl:y,ext:w}=function(e){const t={alpha:!0,depth:!1,stencil:!1,antialias:!1,preserveDrawingBuffer:!1};let n=e.getContext("webgl2",t);const r=!!n;let i,o;r||(n=e.getContext("webgl",t)||e.getContext("experimental-webgl",t)),r?(n.getExtension("EXT_color_buffer_float"),o=n.getExtension("OES_texture_float_linear")):(i=n.getExtension("OES_texture_half_float"),o=n.getExtension("OES_texture_half_float_linear")),n.clearColor(0,0,0,1);const s=r?n.HALF_FLOAT:i&&i.HALF_FLOAT_OES;let a,l,c;return r?(a=x(n,n.RGBA16F,n.RGBA,s),l=x(n,n.RG16F,n.RG,s),c=x(n,n.R16F,n.RED,s)):(a=x(n,n.RGBA,n.RGBA,s),l=x(n,n.RGBA,n.RGBA,s),c=x(n,n.RGBA,n.RGBA,s)),{gl:n,ext:{formatRGBA:a,formatRG:l,formatR:c,halfFloatTexType:s,supportLinearFiltering:o}}}(t);function x(e,t,n,r){if(!function(e,t,n,r){const i=e.createTexture();e.bindTexture(e.TEXTURE_2D,i),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texImage2D(e.TEXTURE_2D,0,t,4,4,0,n,r,null);const o=e.createFramebuffer();e.bindFramebuffer(e.FRAMEBUFFER,o),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,i,0);return e.checkFramebufferStatus(e.FRAMEBUFFER)===e.FRAMEBUFFER_COMPLETE}(e,t,n,r))switch(t){case e.R16F:return x(e,e.RG16F,e.RG,r);case e.RG16F:return x(e,e.RGBA16F,e.RGBA,r);default:return null}return{internalFormat:t,format:n}}w.supportLinearFiltering||(b.DYE_RESOLUTION=256,b.SHADING=!1);class k{constructor(e,t){this.uniforms={},this.program=_(e,t),this.uniforms=C(this.program)}bind(){y.useProgram(this.program)}}function _(e,t){let n=y.createProgram();return y.attachShader(n,e),y.attachShader(n,t),y.linkProgram(n),y.getProgramParameter(n,y.LINK_STATUS)||console.trace(y.getProgramInfoLog(n)),n}function C(e){let t=[],n=y.getProgramParameter(e,y.ACTIVE_UNIFORMS);for(let r=0;r<n;r++){let n=y.getActiveUniform(e,r).name;t[n]=y.getUniformLocation(e,n)}return t}function T(e,t,n){t=function(e,t){if(!t)return e;let n="";return t.forEach((e=>{n+="#define "+e+"\n"})),n+e}(t,n);const r=y.createShader(e);return y.shaderSource(r,t),y.compileShader(r),y.getShaderParameter(r,y.COMPILE_STATUS)||console.trace(y.getShaderInfoLog(r)),r}const S=T(y.VERTEX_SHADER,"\n precision highp float;\n attribute vec2 aPosition;\n varying vec2 vUv;\n varying vec2 vL;\n varying vec2 vR;\n varying vec2 vT;\n varying vec2 vB;\n uniform vec2 texelSize;\n\n void main () {\n vUv = aPosition * 0.5 + 0.5;\n vL = vUv - vec2(texelSize.x, 0.0);\n vR = vUv + vec2(texelSize.x, 0.0);\n vT = vUv + vec2(0.0, texelSize.y);\n vB = vUv - vec2(0.0, texelSize.y);\n gl_Position = vec4(aPosition, 0.0, 1.0);\n }\n "),E=T(y.FRAGMENT_SHADER,"\n precision mediump float;\n precision mediump sampler2D;\n varying highp vec2 vUv;\n uniform sampler2D uTexture;\n\n void main () {\n gl_FragColor = texture2D(uTexture, vUv);\n }\n "),$=T(y.FRAGMENT_SHADER,"\n precision mediump float;\n precision mediump sampler2D;\n varying highp vec2 vUv;\n uniform sampler2D uTexture;\n uniform float value;\n\n void main () {\n gl_FragColor = value * texture2D(uTexture, vUv);\n }\n "),M=T(y.FRAGMENT_SHADER,"\n precision highp float;\n precision highp sampler2D;\n varying vec2 vUv;\n uniform sampler2D uTarget;\n uniform float aspectRatio;\n uniform vec3 color;\n uniform vec2 point;\n uniform float radius;\n\n void main () {\n vec2 p = vUv - point.xy;\n p.x *= aspectRatio;\n vec3 splat = exp(-dot(p, p) / radius) * color;\n vec3 base = texture2D(uTarget, vUv).xyz;\n gl_FragColor = vec4(base + splat, 1.0);\n }\n "),L=T(y.FRAGMENT_SHADER,"\n precision highp float;\n precision highp sampler2D;\n varying vec2 vUv;\n uniform sampler2D uVelocity;\n uniform sampler2D uSource;\n uniform vec2 texelSize;\n uniform vec2 dyeTexelSize;\n uniform float dt;\n uniform float dissipation;\n\n vec4 bilerp (sampler2D sam, vec2 uv, vec2 tsize) {\n vec2 st = uv / tsize - 0.5;\n vec2 iuv = floor(st);\n vec2 fuv = fract(st);\n\n vec4 a = texture2D(sam, (iuv + vec2(0.5, 0.5)) * tsize);\n vec4 b = texture2D(sam, (iuv + vec2(1.5, 0.5)) * tsize);\n vec4 c = texture2D(sam, (iuv + vec2(0.5, 1.5)) * tsize);\n vec4 d = texture2D(sam, (iuv + vec2(1.5, 1.5)) * tsize);\n\n return mix(mix(a, b, fuv.x), mix(c, d, fuv.x), fuv.y);\n }\n\n void main () {\n #ifdef MANUAL_FILTERING\n vec2 coord = vUv - dt * bilerp(uVelocity, vUv, texelSize).xy * texelSize;\n vec4 result = bilerp(uSource, coord, dyeTexelSize);\n #else\n vec2 coord = vUv - dt * texture2D(uVelocity, vUv).xy * texelSize;\n vec4 result = texture2D(uSource, coord);\n #endif\n float decay = 1.0 + dissipation * dt;\n gl_FragColor = result / decay;\n }\n ",w.supportLinearFiltering?null:["MANUAL_FILTERING"]),A=T(y.FRAGMENT_SHADER,"\n precision mediump float;\n precision mediump sampler2D;\n varying highp vec2 vUv;\n varying highp vec2 vL;\n varying highp vec2 vR;\n varying highp vec2 vT;\n varying highp vec2 vB;\n uniform sampler2D uVelocity;\n\n void main () {\n float L = texture2D(uVelocity, vL).x;\n float R = texture2D(uVelocity, vR).x;\n float T = texture2D(uVelocity, vT).y;\n float B = texture2D(uVelocity, vB).y;\n\n vec2 C = texture2D(uVelocity, vUv).xy;\n if (vL.x < 0.0) { L = -C.x; }\n if (vR.x > 1.0) { R = -C.x; }\n if (vT.y > 1.0) { T = -C.y; }\n if (vB.y < 0.0) { B = -C.y; }\n\n float div = 0.5 * (R - L + T - B);\n gl_FragColor = vec4(div, 0.0, 0.0, 1.0);\n }\n "),R=T(y.FRAGMENT_SHADER,"\n precision mediump float;\n precision mediump sampler2D;\n varying highp vec2 vUv;\n varying highp vec2 vL;\n varying highp vec2 vR;\n varying highp vec2 vT;\n varying highp vec2 vB;\n uniform sampler2D uVelocity;\n\n void main () {\n float L = texture2D(uVelocity, vL).y;\n float R = texture2D(uVelocity, vR).y;\n float T = texture2D(uVelocity, vT).x;\n float B = texture2D(uVelocity, vB).x;\n float vorticity = R - L - T + B;\n gl_FragColor = vec4(0.5 * vorticity, 0.0, 0.0, 1.0);\n }\n "),N=T(y.FRAGMENT_SHADER,"\n precision highp float;\n precision highp sampler2D;\n varying vec2 vUv;\n varying vec2 vL;\n varying vec2 vR;\n varying vec2 vT;\n varying vec2 vB;\n uniform sampler2D uVelocity;\n uniform sampler2D uCurl;\n uniform float curl;\n uniform float dt;\n\n void main () {\n float L = texture2D(uCurl, vL).x;\n float R = texture2D(uCurl, vR).x;\n float T = texture2D(uCurl, vT).x;\n float B = texture2D(uCurl, vB).x;\n float C = texture2D(uCurl, vUv).x;\n\n vec2 force = 0.5 * vec2(abs(T) - abs(B), abs(R) - abs(L));\n force /= length(force) + 0.0001;\n force *= curl * C;\n force.y *= -1.0;\n\n vec2 velocity = texture2D(uVelocity, vUv).xy;\n velocity += force * dt;\n velocity = min(max(velocity, -1000.0), 1000.0);\n gl_FragColor = vec4(velocity, 0.0, 1.0);\n }\n "),j=T(y.FRAGMENT_SHADER,"\n precision mediump float;\n precision mediump sampler2D;\n varying highp vec2 vUv;\n varying highp vec2 vL;\n varying highp vec2 vR;\n varying highp vec2 vT;\n varying highp vec2 vB;\n uniform sampler2D uPressure;\n uniform sampler2D uDivergence;\n\n void main () {\n float L = texture2D(uPressure, vL).x;\n float R = texture2D(uPressure, vR).x;\n float T = texture2D(uPressure, vT).x;\n float B = texture2D(uPressure, vB).x;\n float C = texture2D(uPressure, vUv).x;\n float divergence = texture2D(uDivergence, vUv).x;\n float pressure = (L + R + B + T - divergence) * 0.25;\n gl_FragColor = vec4(pressure, 0.0, 0.0, 1.0);\n }\n "),I=T(y.FRAGMENT_SHADER,"\n precision mediump float;\n precision mediump sampler2D;\n varying highp vec2 vUv;\n varying highp vec2 vL;\n varying highp vec2 vR;\n varying highp vec2 vT;\n varying highp vec2 vB;\n uniform sampler2D uPressure;\n uniform sampler2D uVelocity;\n\n void main () {\n float L = texture2D(uPressure, vL).x;\n float R = texture2D(uPressure, vR).x;\n float T = texture2D(uPressure, vT).x;\n float B = texture2D(uPressure, vB).x;\n vec2 velocity = texture2D(uVelocity, vUv).xy;\n velocity.xy -= vec2(R - L, T - B);\n gl_FragColor = vec4(velocity, 0.0, 1.0);\n }\n "),O=(y.bindBuffer(y.ARRAY_BUFFER,y.createBuffer()),y.bufferData(y.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),y.STATIC_DRAW),y.bindBuffer(y.ELEMENT_ARRAY_BUFFER,y.createBuffer()),y.bufferData(y.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,0,2,3]),y.STATIC_DRAW),y.vertexAttribPointer(0,2,y.FLOAT,!1,0,0),y.enableVertexAttribArray(0),(e,t=!1)=>{null==e?(y.viewport(0,0,y.drawingBufferWidth,y.drawingBufferHeight),y.bindFramebuffer(y.FRAMEBUFFER,null)):(y.viewport(0,0,e.width,e.height),y.bindFramebuffer(y.FRAMEBUFFER,e.fbo)),t&&(y.clearColor(0,0,0,1),y.clear(y.COLOR_BUFFER_BIT)),y.drawElements(y.TRIANGLES,6,y.UNSIGNED_SHORT,0)});let D,P,F,z,B;const H=new k(S,E),W=new k(S,$),U=new k(S,M),V=new k(S,L),q=new k(S,A),G=new k(S,R),Y=new k(S,N),K=new k(S,j),X=new k(S,I),Q=new class{constructor(e,t){this.vertexShader=e,this.fragmentShaderSource=t,this.programs=[],this.activeProgram=null,this.uniforms=[]}setKeywords(e){let t=0;for(let n=0;n<e.length;n++)t+=he(e[n]);let n=this.programs[t];if(null==n){let r=T(y.FRAGMENT_SHADER,this.fragmentShaderSource,e);n=_(this.vertexShader,r),this.programs[t]=n}n!==this.activeProgram&&(this.uniforms=C(n),this.activeProgram=n)}bind(){y.useProgram(this.activeProgram)}}(S,"\n precision highp float;\n precision highp sampler2D;\n varying vec2 vUv;\n varying vec2 vL;\n varying vec2 vR;\n varying vec2 vT;\n varying vec2 vB;\n uniform sampler2D uTexture;\n uniform sampler2D uDithering;\n uniform vec2 ditherScale;\n uniform vec2 texelSize;\n\n vec3 linearToGamma (vec3 color) {\n color = max(color, vec3(0));\n return max(1.055 * pow(color, vec3(0.416666667)) - 0.055, vec3(0));\n }\n\n void main () {\n vec3 c = texture2D(uTexture, vUv).rgb;\n #ifdef SHADING\n vec3 lc = texture2D(uTexture, vL).rgb;\n vec3 rc = texture2D(uTexture, vR).rgb;\n vec3 tc = texture2D(uTexture, vT).rgb;\n vec3 bc = texture2D(uTexture, vB).rgb;\n\n float dx = length(rc) - length(lc);\n float dy = length(tc) - length(bc);\n\n vec3 n = normalize(vec3(dx, dy, length(texelSize)));\n vec3 l = vec3(0.0, 0.0, 1.0);\n\n float diffuse = clamp(dot(n, l) + 0.7, 0.7, 1.0);\n c *= diffuse;\n #endif\n\n float a = max(c.r, max(c.g, c.b));\n gl_FragColor = vec4(c, a);\n }\n ");function Z(){let e=de(b.SIM_RESOLUTION),t=de(b.DYE_RESOLUTION);const n=w.halfFloatTexType,r=w.formatRGBA,i=w.formatRG,o=w.formatR,s=w.supportLinearFiltering?y.LINEAR:y.NEAREST;y.disable(y.BLEND),D=D?te(D,t.width,t.height,r.internalFormat,r.format,n,s):ee(t.width,t.height,r.internalFormat,r.format,n,s),P=P?te(P,e.width,e.height,i.internalFormat,i.format,n,s):ee(e.width,e.height,i.internalFormat,i.format,n,s),F=J(e.width,e.height,o.internalFormat,o.format,n,y.NEAREST),z=J(e.width,e.height,o.internalFormat,o.format,n,y.NEAREST),B=ee(e.width,e.height,o.internalFormat,o.format,n,y.NEAREST)}function J(e,t,n,r,i,o){y.activeTexture(y.TEXTURE0);let s=y.createTexture();y.bindTexture(y.TEXTURE_2D,s),y.texParameteri(y.TEXTURE_2D,y.TEXTURE_MIN_FILTER,o),y.texParameteri(y.TEXTURE_2D,y.TEXTURE_MAG_FILTER,o),y.texParameteri(y.TEXTURE_2D,y.TEXTURE_WRAP_S,y.CLAMP_TO_EDGE),y.texParameteri(y.TEXTURE_2D,y.TEXTURE_WRAP_T,y.CLAMP_TO_EDGE),y.texImage2D(y.TEXTURE_2D,0,n,e,t,0,r,i,null);let a=y.createFramebuffer();return y.bindFramebuffer(y.FRAMEBUFFER,a),y.framebufferTexture2D(y.FRAMEBUFFER,y.COLOR_ATTACHMENT0,y.TEXTURE_2D,s,0),y.viewport(0,0,e,t),y.clear(y.COLOR_BUFFER_BIT),{texture:s,fbo:a,width:e,height:t,texelSizeX:1/e,texelSizeY:1/t,attach:e=>(y.activeTexture(y.TEXTURE0+e),y.bindTexture(y.TEXTURE_2D,s),e)}}function ee(e,t,n,r,i,o){let s=J(e,t,n,r,i,o),a=J(e,t,n,r,i,o);return{width:e,height:t,texelSizeX:s.texelSizeX,texelSizeY:s.texelSizeY,get read(){return s},set read(e){s=e},get write(){return a},set write(e){a=e},swap(){let e=s;s=a,a=e}}}function te(e,t,n,r,i,o,s){return e.width===t&&e.height===n||(e.read=function(e,t,n,r,i,o,s){let a=J(t,n,r,i,o,s);return H.bind(),y.uniform1i(H.uniforms.uTexture,e.attach(0)),O(a),a}(e.read,t,n,r,i,o,s),e.write=J(t,n,r,i,o,s),e.width=t,e.height=n,e.texelSizeX=1/t,e.texelSizeY=1/n),e}!function(){let e=[];b.SHADING&&e.push("SHADING"),Q.setKeywords(e)}(),Z();let ne=Date.now(),re=0;function ie(){const e=function(){let e=Date.now(),t=(e-ne)/1e3;return t=Math.min(t,.016666),ne=e,t}();(function(){let e=ue(t.clientWidth),n=ue(t.clientHeight);return(t.width!==e||t.height!==n)&&(t.width=e,t.height=n,!0)})()&&Z(),function(e){re+=e*b.COLOR_UPDATE_SPEED,re>=1&&(re=(re-0)%1+0,v.forEach((e=>{e.color=ce()})))}(e),v.forEach((e=>{e.moved&&(e.moved=!1,function(e){let t=e.deltaX*b.SPLAT_FORCE,n=e.deltaY*b.SPLAT_FORCE;oe(e.texcoordX,e.texcoordY,t,n,e.color)}(e))})),function(e){y.disable(y.BLEND),G.bind(),y.uniform2f(G.uniforms.texelSize,P.texelSizeX,P.texelSizeY),y.uniform1i(G.uniforms.uVelocity,P.read.attach(0)),O(z),Y.bind(),y.uniform2f(Y.uniforms.texelSize,P.texelSizeX,P.texelSizeY),y.uniform1i(Y.uniforms.uVelocity,P.read.attach(0)),y.uniform1i(Y.uniforms.uCurl,z.attach(1)),y.uniform1f(Y.uniforms.curl,b.CURL),y.uniform1f(Y.uniforms.dt,e),O(P.write),P.swap(),q.bind(),y.uniform2f(q.uniforms.texelSize,P.texelSizeX,P.texelSizeY),y.uniform1i(q.uniforms.uVelocity,P.read.attach(0)),O(F),W.bind(),y.uniform1i(W.uniforms.uTexture,B.read.attach(0)),y.uniform1f(W.uniforms.value,b.PRESSURE),O(B.write),B.swap(),K.bind(),y.uniform2f(K.uniforms.texelSize,P.texelSizeX,P.texelSizeY),y.uniform1i(K.uniforms.uDivergence,F.attach(0));for(let e=0;e<b.PRESSURE_ITERATIONS;e++)y.uniform1i(K.uniforms.uPressure,B.read.attach(1)),O(B.write),B.swap();X.bind(),y.uniform2f(X.uniforms.texelSize,P.texelSizeX,P.texelSizeY),y.uniform1i(X.uniforms.uPressure,B.read.attach(0)),y.uniform1i(X.uniforms.uVelocity,P.read.attach(1)),O(P.write),P.swap(),V.bind(),y.uniform2f(V.uniforms.texelSize,P.texelSizeX,P.texelSizeY),w.supportLinearFiltering||y.uniform2f(V.uniforms.dyeTexelSize,P.texelSizeX,P.texelSizeY);let t=P.read.attach(0);y.uniform1i(V.uniforms.uVelocity,t),y.uniform1i(V.uniforms.uSource,t),y.uniform1f(V.uniforms.dt,e),y.uniform1f(V.uniforms.dissipation,b.VELOCITY_DISSIPATION),O(P.write),P.swap(),w.supportLinearFiltering||y.uniform2f(V.uniforms.dyeTexelSize,D.texelSizeX,D.texelSizeY),y.uniform1i(V.uniforms.uVelocity,P.read.attach(0)),y.uniform1i(V.uniforms.uSource,D.read.attach(1)),y.uniform1f(V.uniforms.dissipation,b.DENSITY_DISSIPATION),O(D.write),D.swap()}(e),y.blendFunc(y.ONE,y.ONE_MINUS_SRC_ALPHA),y.enable(y.BLEND),function(e){let t=y.drawingBufferWidth,n=y.drawingBufferHeight;Q.bind(),b.SHADING&&y.uniform2f(Q.uniforms.texelSize,1/t,1/n),y.uniform1i(Q.uniforms.uTexture,D.read.attach(0)),O(e)}(null),requestAnimationFrame(ie)}function oe(e,n,r,i,o){U.bind(),y.uniform1i(U.uniforms.uTarget,P.read.attach(0)),y.uniform1f(U.uniforms.aspectRatio,t.width/t.height),y.uniform2f(U.uniforms.point,e,n),y.uniform3f(U.uniforms.color,r,i,0),y.uniform1f(U.uniforms.radius,function(e){let n=t.width/t.height;return n>1&&(e*=n),e}(b.SPLAT_RADIUS/100)),O(P.write),P.swap(),y.uniform1i(U.uniforms.uTarget,D.read.attach(0)),y.uniform3f(U.uniforms.color,o.r,o.g,o.b),O(D.write),D.swap()}function se(e,n,r,i){e.id=n,e.down=!0,e.moved=!1,e.texcoordX=r/t.width,e.texcoordY=1-i/t.height,e.prevTexcoordX=e.texcoordX,e.prevTexcoordY=e.texcoordY,e.deltaX=0,e.deltaY=0,e.color=ce()}function ae(e,n,r,i){e.prevTexcoordX=e.texcoordX,e.prevTexcoordY=e.texcoordY,e.texcoordX=n/t.width,e.texcoordY=1-r/t.height,e.deltaX=function(e){let n=t.width/t.height;return n<1&&(e*=n),e}(e.texcoordX-e.prevTexcoordX),e.deltaY=function(e){let n=t.width/t.height;return n>1&&(e/=n),e}(e.texcoordY-e.prevTexcoordY),e.moved=Math.abs(e.deltaX)>0||Math.abs(e.deltaY)>0,e.color=i}function le(e){e.down=!1}function ce(){let e=function(e){let t,n,r,i,o,s,a,l;switch(i=Math.floor(6*e),o=6*e-i,s=0,a=1*(1-1*o),l=1*(1-1*(1-o)),i%6){case 0:t=1,n=l,r=0;break;case 1:t=a,n=1,r=0;break;case 2:t=0,n=1,r=l;break;case 3:t=0,n=a,r=1;break;case 4:t=l,n=0,r=1;break;case 5:t=1,n=0,r=a}return{r:t,g:n,b:r}}(Math.random());return e.r*=.15,e.g*=.15,e.b*=.15,e}function de(e){let t=y.drawingBufferWidth/y.drawingBufferHeight;t<1&&(t=1/t);const n=Math.round(e),r=Math.round(e*t);return y.drawingBufferWidth>y.drawingBufferHeight?{width:r,height:n}:{width:n,height:r}}function ue(e){const t=window.devicePixelRatio||1;return Math.floor(e*t)}function he(e){if(0===e.length)return 0;let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}g.addEventListener("mousedown",(e=>{let t=v[0];se(t,-1,ue(e.clientX),ue(e.clientY)),function(e){const t=ce();t.r*=10,t.g*=10,t.b*=10;let n=10*(Math.random()-.5),r=30*(Math.random()-.5);oe(e.texcoordX,e.texcoordY,n,r,t)}(t)})),document.body.addEventListener("mousemove",(function e(t){let n=v[0],r=ue(t.clientX),i=ue(t.clientY),o=ce();ie(),ae(n,r,i,o),document.body.removeEventListener("mousemove",e)})),g.addEventListener("mousemove",(e=>{let t=v[0];ae(t,ue(e.clientX),ue(e.clientY),t.color)})),document.body.addEventListener("touchstart",(function e(t){const n=t.targetTouches;let r=v[0];for(let e=0;e<n.length;e++){let t=ue(n[e].clientX),i=ue(n[e].clientY);ie(),se(r,n[e].identifier,t,i)}document.body.removeEventListener("touchstart",e)})),g.addEventListener("touchstart",(e=>{const t=e.targetTouches;let n=v[0];for(let e=0;e<t.length;e++){let r=ue(t[e].clientX),i=ue(t[e].clientY);se(n,t[e].identifier,r,i)}})),g.addEventListener("touchmove",(e=>{const t=e.targetTouches;let n=v[0];for(let e=0;e<t.length;e++)ae(n,ue(t[e].clientX),ue(t[e].clientY),n.color)}),!1),g.addEventListener("touchend",(e=>{const t=e.changedTouches;let n=v[0];for(let e=0;e<t.length;e++)le(n)})),ie()}),[e,n,r,i,o,s,a,l,c,d,u,h,p,f]),(0,Zt.jsx)("div",{style:{position:"fixed",top:0,left:0,zIndex:50,pointerEvents:"none",width:"100%",height:"100%"},children:(0,Zt.jsx)("canvas",{ref:m,id:"fluid",style:{width:"100vw",height:"100vh",display:"block"}})})},$h=({shape:e={},domEl:n=null,eventEl:r=window,rect:i={},isDashboard:o=!1})=>{switch(e?.type){case"follow":return(0,Zt.jsx)(ph,{shape:e.type,...e?.follow,domEl:n});case"blob":return(0,Zt.jsx)(lh,{...e.blob,domEl:n,eventEl:r,rect:i,isDashboard:o});case"dot":return(0,Zt.jsx)(dh,{...e.dot,domEl:n});case"elastic":return(0,Zt.jsx)(hh,{...e.elastic,domEl:n});case"digital":case"analog":case"cyberpunk":case"matrix":return(0,t.createElement)(fh,{...function(e,t){return{...pa[e],...t?.[e]}}(e.type,e),key:e.type,domEl:n});case"glow":return(0,Zt.jsx)(gh,{...e?.glow,domEl:n});case"gradient":return(0,Zt.jsx)(mh,{...e?.gradient,domEl:n});case"image":return(0,Zt.jsx)(bh,{...e?.image,url:e?.image?.img?.url,domEl:n});case"magnetic":return(0,Zt.jsx)(vh,{...e?.magnetic,domEl:n});case"neon":return(0,Zt.jsx)(yh,{...e?.neon,domEl:n});case"pixelated":return(0,Zt.jsx)(wh,{...e?.pixelated,domEl:n});case"ring":return(0,Zt.jsx)(xh,{...e?.ring,domEl:n});case"ripple":return(0,Zt.jsx)(_h,{domEl:n,eventEl:r});case"sketch":return(0,Zt.jsx)(Ch,{...e?.sketch,domEl:n});case"spotlight":return(0,Zt.jsx)(Th,{...e?.spotlight,domEl:n});case"splash":return(0,Zt.jsx)(Eh,{SPLAT_RADIUS:e?.splash?.size,domEl:n},e?.splash?.size);case"text":return(0,Zt.jsx)(Sh,{...e?.text,domEl:n});default:return null}};function Mh(e){let t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function Lh(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function Ah(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function Rh(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function Nh(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function jh(e){let t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function Ih(e,t){let n=t[0],r=t[1],i=t[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e}function Oh(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Dh(e,t,n){let r=t[0],i=t[1],o=t[2],s=n[0],a=n[1],l=n[2];return e[0]=i*l-o*a,e[1]=o*s-r*l,e[2]=r*a-i*s,e}const Ph=function(){const e=[0,0,0],t=[0,0,0];return function(n,r){Lh(e,n),Lh(t,r),Ih(e,e),Ih(t,t);let i=Oh(e,t);return i>1?0:i<-1?Math.PI:Math.acos(i)}}();class Fh extends Array{constructor(e=0,t=e,n=e){return super(e,t,n),this}get x(){return this[0]}get y(){return this[1]}get z(){return this[2]}set x(e){this[0]=e}set y(e){this[1]=e}set z(e){this[2]=e}set(e,t=e,n=e){return e.length?this.copy(e):(function(e,t,n,r){e[0]=t,e[1]=n,e[2]=r}(this,e,t,n),this)}copy(e){return Lh(this,e),this}add(e,t){return t?Ah(this,e,t):Ah(this,this,e),this}sub(e,t){return t?Rh(this,e,t):Rh(this,this,e),this}multiply(e){return e.length?function(e,t,n){e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2]}(this,this,e):Nh(this,this,e),this}divide(e){return e.length?function(e,t,n){e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2]}(this,this,e):Nh(this,this,1/e),this}inverse(e=this){return function(e,t){e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2]}(this,e),this}len(){return Mh(this)}distance(e){return e?function(e,t){let n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}(this,e):Mh(this)}squaredLen(){return jh(this)}squaredDistance(e){return e?function(e,t){let n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}(this,e):jh(this)}negate(e=this){return function(e,t){e[0]=-t[0],e[1]=-t[1],e[2]=-t[2]}(this,e),this}cross(e,t){return t?Dh(this,e,t):Dh(this,this,e),this}scale(e){return Nh(this,this,e),this}normalize(){return Ih(this,this),this}dot(e){return Oh(this,e)}equals(e){return function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}(this,e)}applyMatrix3(e){return function(e,t,n){let r=t[0],i=t[1],o=t[2];e[0]=r*n[0]+i*n[3]+o*n[6],e[1]=r*n[1]+i*n[4]+o*n[7],e[2]=r*n[2]+i*n[5]+o*n[8]}(this,this,e),this}applyMatrix4(e){return function(e,t,n){let r=t[0],i=t[1],o=t[2],s=n[3]*r+n[7]*i+n[11]*o+n[15];s=s||1,e[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/s,e[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/s,e[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/s}(this,this,e),this}scaleRotateMatrix4(e){return function(e,t,n){let r=t[0],i=t[1],o=t[2],s=n[3]*r+n[7]*i+n[11]*o+n[15];s=s||1,e[0]=(n[0]*r+n[4]*i+n[8]*o)/s,e[1]=(n[1]*r+n[5]*i+n[9]*o)/s,e[2]=(n[2]*r+n[6]*i+n[10]*o)/s}(this,this,e),this}applyQuaternion(e){return function(e,t,n){let r=t[0],i=t[1],o=t[2],s=n[0],a=n[1],l=n[2],c=a*o-l*i,d=l*r-s*o,u=s*i-a*r,h=a*u-l*d,p=l*c-s*u,f=s*d-a*c,g=2*n[3];c*=g,d*=g,u*=g,h*=2,p*=2,f*=2,e[0]=r+c+h,e[1]=i+d+p,e[2]=o+u+f}(this,this,e),this}angle(e){return Ph(this,e)}lerp(e,t){return function(e,t,n,r){let i=t[0],o=t[1],s=t[2];e[0]=i+r*(n[0]-i),e[1]=o+r*(n[1]-o),e[2]=s+r*(n[2]-s)}(this,this,e,t),this}smoothLerp(e,t,n){return function(e,t,n,r,i){const o=Math.exp(-r*i);let s=t[0],a=t[1],l=t[2];e[0]=n[0]+(s-n[0])*o,e[1]=n[1]+(a-n[1])*o,e[2]=n[2]+(l-n[2])*o}(this,this,e,t,n),this}clone(){return new Fh(this[0],this[1],this[2])}fromArray(e,t=0){return this[0]=e[t],this[1]=e[t+1],this[2]=e[t+2],this}toArray(e=[],t=0){return e[t]=this[0],e[t+1]=this[1],e[t+2]=this[2],e}transformDirection(e){const t=this[0],n=this[1],r=this[2];return this[0]=e[0]*t+e[4]*n+e[8]*r,this[1]=e[1]*t+e[5]*n+e[9]*r,this[2]=e[2]*t+e[6]*n+e[10]*r,this.normalize()}}const zh=new Fh;let Bh=1;class Hh{constructor({canvas:e=document.createElement("canvas"),width:t=300,height:n=150,dpr:r=1,alpha:i=!1,depth:o=!0,stencil:s=!1,antialias:a=!1,premultipliedAlpha:l=!1,preserveDrawingBuffer:c=!1,powerPreference:d="default",autoClear:u=!0,webgl:h=2}={}){const p={alpha:i,depth:o,stencil:s,antialias:a,premultipliedAlpha:l,preserveDrawingBuffer:c,powerPreference:d};this.dpr=r,this.alpha=i,this.color=!0,this.depth=o,this.stencil=s,this.premultipliedAlpha=l,this.autoClear=u,this.id=Bh++,2===h&&(this.gl=e.getContext("webgl2",p)),this.isWebgl2=!!this.gl,this.gl||(this.gl=e.getContext("webgl",p)),this.gl||console.error("unable to create webgl context"),this.gl.renderer=this,this.setSize(t,n),this.state={},this.state.blendFunc={src:this.gl.ONE,dst:this.gl.ZERO},this.state.blendEquation={modeRGB:this.gl.FUNC_ADD},this.state.cullFace=!1,this.state.frontFace=this.gl.CCW,this.state.depthMask=!0,this.state.depthFunc=this.gl.LEQUAL,this.state.premultiplyAlpha=!1,this.state.flipY=!1,this.state.unpackAlignment=4,this.state.framebuffer=null,this.state.viewport={x:0,y:0,width:null,height:null},this.state.textureUnits=[],this.state.activeTextureUnit=0,this.state.boundBuffer=null,this.state.uniformLocations=new Map,this.state.currentProgram=null,this.extensions={},this.isWebgl2?(this.getExtension("EXT_color_buffer_float"),this.getExtension("OES_texture_float_linear")):(this.getExtension("OES_texture_float"),this.getExtension("OES_texture_float_linear"),this.getExtension("OES_texture_half_float"),this.getExtension("OES_texture_half_float_linear"),this.getExtension("OES_element_index_uint"),this.getExtension("OES_standard_derivatives"),this.getExtension("EXT_sRGB"),this.getExtension("WEBGL_depth_texture"),this.getExtension("WEBGL_draw_buffers")),this.getExtension("WEBGL_compressed_texture_astc"),this.getExtension("EXT_texture_compression_bptc"),this.getExtension("WEBGL_compressed_texture_s3tc"),this.getExtension("WEBGL_compressed_texture_etc1"),this.getExtension("WEBGL_compressed_texture_pvrtc"),this.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),this.vertexAttribDivisor=this.getExtension("ANGLE_instanced_arrays","vertexAttribDivisor","vertexAttribDivisorANGLE"),this.drawArraysInstanced=this.getExtension("ANGLE_instanced_arrays","drawArraysInstanced","drawArraysInstancedANGLE"),this.drawElementsInstanced=this.getExtension("ANGLE_instanced_arrays","drawElementsInstanced","drawElementsInstancedANGLE"),this.createVertexArray=this.getExtension("OES_vertex_array_object","createVertexArray","createVertexArrayOES"),this.bindVertexArray=this.getExtension("OES_vertex_array_object","bindVertexArray","bindVertexArrayOES"),this.deleteVertexArray=this.getExtension("OES_vertex_array_object","deleteVertexArray","deleteVertexArrayOES"),this.drawBuffers=this.getExtension("WEBGL_draw_buffers","drawBuffers","drawBuffersWEBGL"),this.parameters={},this.parameters.maxTextureUnits=this.gl.getParameter(this.gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS),this.parameters.maxAnisotropy=this.getExtension("EXT_texture_filter_anisotropic")?this.gl.getParameter(this.getExtension("EXT_texture_filter_anisotropic").MAX_TEXTURE_MAX_ANISOTROPY_EXT):0}setSize(e,t){this.width=e,this.height=t,this.gl.canvas.width=e*this.dpr,this.gl.canvas.height=t*this.dpr,this.gl.canvas.style&&Object.assign(this.gl.canvas.style,{width:e+"px",height:t+"px"})}setViewport(e,t,n=0,r=0){this.state.viewport.width===e&&this.state.viewport.height===t||(this.state.viewport.width=e,this.state.viewport.height=t,this.state.viewport.x=n,this.state.viewport.y=r,this.gl.viewport(n,r,e,t))}setScissor(e,t,n=0,r=0){this.gl.scissor(n,r,e,t)}enable(e){!0!==this.state[e]&&(this.gl.enable(e),this.state[e]=!0)}disable(e){!1!==this.state[e]&&(this.gl.disable(e),this.state[e]=!1)}setBlendFunc(e,t,n,r){this.state.blendFunc.src===e&&this.state.blendFunc.dst===t&&this.state.blendFunc.srcAlpha===n&&this.state.blendFunc.dstAlpha===r||(this.state.blendFunc.src=e,this.state.blendFunc.dst=t,this.state.blendFunc.srcAlpha=n,this.state.blendFunc.dstAlpha=r,void 0!==n?this.gl.blendFuncSeparate(e,t,n,r):this.gl.blendFunc(e,t))}setBlendEquation(e,t){e=e||this.gl.FUNC_ADD,this.state.blendEquation.modeRGB===e&&this.state.blendEquation.modeAlpha===t||(this.state.blendEquation.modeRGB=e,this.state.blendEquation.modeAlpha=t,void 0!==t?this.gl.blendEquationSeparate(e,t):this.gl.blendEquation(e))}setCullFace(e){this.state.cullFace!==e&&(this.state.cullFace=e,this.gl.cullFace(e))}setFrontFace(e){this.state.frontFace!==e&&(this.state.frontFace=e,this.gl.frontFace(e))}setDepthMask(e){this.state.depthMask!==e&&(this.state.depthMask=e,this.gl.depthMask(e))}setDepthFunc(e){this.state.depthFunc!==e&&(this.state.depthFunc=e,this.gl.depthFunc(e))}setStencilMask(e){this.state.stencilMask!==e&&(this.state.stencilMask=e,this.gl.stencilMask(e))}setStencilFunc(e,t,n){this.state.stencilFunc===e&&this.state.stencilRef===t&&this.state.stencilFuncMask===n||(this.state.stencilFunc=e||this.gl.ALWAYS,this.state.stencilRef=t||0,this.state.stencilFuncMask=n||0,this.gl.stencilFunc(e||this.gl.ALWAYS,t||0,n||0))}setStencilOp(e,t,n){this.state.stencilFail===e&&this.state.stencilDepthFail===t&&this.state.stencilDepthPass===n||(this.state.stencilFail=e,this.state.stencilDepthFail=t,this.state.stencilDepthPass=n,this.gl.stencilOp(e,t,n))}activeTexture(e){this.state.activeTextureUnit!==e&&(this.state.activeTextureUnit=e,this.gl.activeTexture(this.gl.TEXTURE0+e))}bindFramebuffer({target:e=this.gl.FRAMEBUFFER,buffer:t=null}={}){this.state.framebuffer!==t&&(this.state.framebuffer=t,this.gl.bindFramebuffer(e,t))}getExtension(e,t,n){return t&&this.gl[t]?this.gl[t].bind(this.gl):(this.extensions[e]||(this.extensions[e]=this.gl.getExtension(e)),t?this.extensions[e]?this.extensions[e][n].bind(this.extensions[e]):null:this.extensions[e])}sortOpaque(e,t){return e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.program.id!==t.program.id?e.program.id-t.program.id:e.zDepth!==t.zDepth?e.zDepth-t.zDepth:t.id-e.id}sortTransparent(e,t){return e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.zDepth!==t.zDepth?t.zDepth-e.zDepth:t.id-e.id}sortUI(e,t){return e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.program.id!==t.program.id?e.program.id-t.program.id:t.id-e.id}getRenderList({scene:e,camera:t,frustumCull:n,sort:r}){let i=[];if(t&&n&&t.updateFrustum(),e.traverse((e=>{if(!e.visible)return!0;e.draw&&(n&&e.frustumCulled&&t&&!t.frustumIntersectsMesh(e)||i.push(e))})),r){const e=[],n=[],r=[];i.forEach((i=>{i.program.transparent?i.program.depthTest?n.push(i):r.push(i):e.push(i),i.zDepth=0,0===i.renderOrder&&i.program.depthTest&&t&&(i.worldMatrix.getTranslation(zh),zh.applyMatrix4(t.projectionViewMatrix),i.zDepth=zh.z)})),e.sort(this.sortOpaque),n.sort(this.sortTransparent),r.sort(this.sortUI),i=e.concat(n,r)}return i}render({scene:e,camera:t,target:n=null,update:r=!0,sort:i=!0,frustumCull:o=!0,clear:s}){null===n?(this.bindFramebuffer(),this.setViewport(this.width*this.dpr,this.height*this.dpr)):(this.bindFramebuffer(n),this.setViewport(n.width,n.height)),(s||this.autoClear&&!1!==s)&&(!this.depth||n&&!n.depth||(this.enable(this.gl.DEPTH_TEST),this.setDepthMask(!0)),(this.stencil||!n||n.stencil)&&(this.enable(this.gl.STENCIL_TEST),this.setStencilMask(255)),this.gl.clear((this.color?this.gl.COLOR_BUFFER_BIT:0)|(this.depth?this.gl.DEPTH_BUFFER_BIT:0)|(this.stencil?this.gl.STENCIL_BUFFER_BIT:0))),r&&e.updateMatrixWorld(),t&&t.updateMatrixWorld(),this.getRenderList({scene:e,camera:t,frustumCull:o,sort:i}).forEach((e=>{e.draw({camera:t})}))}}function Wh(e,t,n){let r=t[0],i=t[1],o=t[2],s=t[3],a=n[0],l=n[1],c=n[2],d=n[3];return e[0]=r*d+s*a+i*c-o*l,e[1]=i*d+s*l+o*a-r*c,e[2]=o*d+s*c+r*l-i*a,e[3]=s*d-r*a-i*l-o*c,e}class Uh extends Array{constructor(e=0,t=0,n=0,r=1){super(e,t,n,r),this.onChange=()=>{},this._target=this;const i=["0","1","2","3"];return new Proxy(this,{set(e,t){const n=Reflect.set(...arguments);return n&&i.includes(t)&&e.onChange(),n}})}get x(){return this[0]}get y(){return this[1]}get z(){return this[2]}get w(){return this[3]}set x(e){this._target[0]=e,this.onChange()}set y(e){this._target[1]=e,this.onChange()}set z(e){this._target[2]=e,this.onChange()}set w(e){this._target[3]=e,this.onChange()}identity(){var e;return(e=this._target)[0]=0,e[1]=0,e[2]=0,e[3]=1,this.onChange(),this}set(e,t,n,r){return e.length?this.copy(e):(function(e,t,n,r,i){e[0]=t,e[1]=n,e[2]=r,e[3]=i}(this._target,e,t,n,r),this.onChange(),this)}rotateX(e){return function(e,t,n){n*=.5;let r=t[0],i=t[1],o=t[2],s=t[3],a=Math.sin(n),l=Math.cos(n);e[0]=r*l+s*a,e[1]=i*l+o*a,e[2]=o*l-i*a,e[3]=s*l-r*a}(this._target,this._target,e),this.onChange(),this}rotateY(e){return function(e,t,n){n*=.5;let r=t[0],i=t[1],o=t[2],s=t[3],a=Math.sin(n),l=Math.cos(n);e[0]=r*l-o*a,e[1]=i*l+s*a,e[2]=o*l+r*a,e[3]=s*l-i*a}(this._target,this._target,e),this.onChange(),this}rotateZ(e){return function(e,t,n){n*=.5;let r=t[0],i=t[1],o=t[2],s=t[3],a=Math.sin(n),l=Math.cos(n);e[0]=r*l+i*a,e[1]=i*l-r*a,e[2]=o*l+s*a,e[3]=s*l-o*a}(this._target,this._target,e),this.onChange(),this}inverse(e=this._target){return function(e,t){let n=t[0],r=t[1],i=t[2],o=t[3],s=n*n+r*r+i*i+o*o,a=s?1/s:0;e[0]=-n*a,e[1]=-r*a,e[2]=-i*a,e[3]=o*a}(this._target,e),this.onChange(),this}conjugate(e=this._target){return function(e,t){e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3]}(this._target,e),this.onChange(),this}copy(e){return function(e,t){e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3]}(this._target,e),this.onChange(),this}normalize(e=this._target){return function(e,t){let n=t[0],r=t[1],i=t[2],o=t[3],s=n*n+r*r+i*i+o*o;s>0&&(s=1/Math.sqrt(s)),e[0]=n*s,e[1]=r*s,e[2]=i*s,e[3]=o*s}(this._target,e),this.onChange(),this}multiply(e,t){return t?Wh(this._target,e,t):Wh(this._target,this._target,e),this.onChange(),this}dot(e){return function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}(this._target,e)}fromMatrix3(e){return function(e,t){let n,r=t[0]+t[4]+t[8];if(r>0)n=Math.sqrt(r+1),e[3]=.5*n,n=.5/n,e[0]=(t[5]-t[7])*n,e[1]=(t[6]-t[2])*n,e[2]=(t[1]-t[3])*n;else{let r=0;t[4]>t[0]&&(r=1),t[8]>t[3*r+r]&&(r=2);let i=(r+1)%3,o=(r+2)%3;n=Math.sqrt(t[3*r+r]-t[3*i+i]-t[3*o+o]+1),e[r]=.5*n,n=.5/n,e[3]=(t[3*i+o]-t[3*o+i])*n,e[i]=(t[3*i+r]+t[3*r+i])*n,e[o]=(t[3*o+r]+t[3*r+o])*n}}(this._target,e),this.onChange(),this}fromEuler(e,t){return function(e,t,n="YXZ"){let r=Math.sin(.5*t[0]),i=Math.cos(.5*t[0]),o=Math.sin(.5*t[1]),s=Math.cos(.5*t[1]),a=Math.sin(.5*t[2]),l=Math.cos(.5*t[2]);"XYZ"===n?(e[0]=r*s*l+i*o*a,e[1]=i*o*l-r*s*a,e[2]=i*s*a+r*o*l,e[3]=i*s*l-r*o*a):"YXZ"===n?(e[0]=r*s*l+i*o*a,e[1]=i*o*l-r*s*a,e[2]=i*s*a-r*o*l,e[3]=i*s*l+r*o*a):"ZXY"===n?(e[0]=r*s*l-i*o*a,e[1]=i*o*l+r*s*a,e[2]=i*s*a+r*o*l,e[3]=i*s*l-r*o*a):"ZYX"===n?(e[0]=r*s*l-i*o*a,e[1]=i*o*l+r*s*a,e[2]=i*s*a-r*o*l,e[3]=i*s*l+r*o*a):"YZX"===n?(e[0]=r*s*l+i*o*a,e[1]=i*o*l+r*s*a,e[2]=i*s*a-r*o*l,e[3]=i*s*l-r*o*a):"XZY"===n&&(e[0]=r*s*l-i*o*a,e[1]=i*o*l-r*s*a,e[2]=i*s*a+r*o*l,e[3]=i*s*l+r*o*a)}(this._target,e,e.order),t||this.onChange(),this}fromAxisAngle(e,t){return function(e,t,n){n*=.5;let r=Math.sin(n);e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=Math.cos(n)}(this._target,e,t),this.onChange(),this}slerp(e,t){return function(e,t,n,r){let i,o,s,a,l,c=t[0],d=t[1],u=t[2],h=t[3],p=n[0],f=n[1],g=n[2],m=n[3];o=c*p+d*f+u*g+h*m,o<0&&(o=-o,p=-p,f=-f,g=-g,m=-m),1-o>1e-6?(i=Math.acos(o),s=Math.sin(i),a=Math.sin((1-r)*i)/s,l=Math.sin(r*i)/s):(a=1-r,l=r),e[0]=a*c+l*p,e[1]=a*d+l*f,e[2]=a*u+l*g,e[3]=a*h+l*m}(this._target,this._target,e,t),this.onChange(),this}fromArray(e,t=0){return this._target[0]=e[t],this._target[1]=e[t+1],this._target[2]=e[t+2],this._target[3]=e[t+3],this.onChange(),this}toArray(e=[],t=0){return e[t]=this[0],e[t+1]=this[1],e[t+2]=this[2],e[t+3]=this[3],e}}function Vh(e){let t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],s=e[5],a=e[6],l=e[7],c=e[8],d=e[9],u=e[10],h=e[11],p=e[12],f=e[13],g=e[14],m=e[15];return(t*s-n*o)*(u*m-h*g)-(t*a-r*o)*(d*m-h*f)+(t*l-i*o)*(d*g-u*f)+(n*a-r*s)*(c*m-h*p)-(n*l-i*s)*(c*g-u*p)+(r*l-i*a)*(c*f-d*p)}function qh(e,t,n){let r=t[0],i=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],d=t[7],u=t[8],h=t[9],p=t[10],f=t[11],g=t[12],m=t[13],b=t[14],v=t[15],y=n[0],w=n[1],x=n[2],k=n[3];return e[0]=y*r+w*a+x*u+k*g,e[1]=y*i+w*l+x*h+k*m,e[2]=y*o+w*c+x*p+k*b,e[3]=y*s+w*d+x*f+k*v,y=n[4],w=n[5],x=n[6],k=n[7],e[4]=y*r+w*a+x*u+k*g,e[5]=y*i+w*l+x*h+k*m,e[6]=y*o+w*c+x*p+k*b,e[7]=y*s+w*d+x*f+k*v,y=n[8],w=n[9],x=n[10],k=n[11],e[8]=y*r+w*a+x*u+k*g,e[9]=y*i+w*l+x*h+k*m,e[10]=y*o+w*c+x*p+k*b,e[11]=y*s+w*d+x*f+k*v,y=n[12],w=n[13],x=n[14],k=n[15],e[12]=y*r+w*a+x*u+k*g,e[13]=y*i+w*l+x*h+k*m,e[14]=y*o+w*c+x*p+k*b,e[15]=y*s+w*d+x*f+k*v,e}function Gh(e,t){let n=t[0],r=t[1],i=t[2],o=t[4],s=t[5],a=t[6],l=t[8],c=t[9],d=t[10];return e[0]=Math.hypot(n,r,i),e[1]=Math.hypot(o,s,a),e[2]=Math.hypot(l,c,d),e}const Yh=function(){const e=[1,1,1];return function(t,n){let r=e;Gh(r,n);let i=1/r[0],o=1/r[1],s=1/r[2],a=n[0]*i,l=n[1]*o,c=n[2]*s,d=n[4]*i,u=n[5]*o,h=n[6]*s,p=n[8]*i,f=n[9]*o,g=n[10]*s,m=a+u+g,b=0;return m>0?(b=2*Math.sqrt(m+1),t[3]=.25*b,t[0]=(h-f)/b,t[1]=(p-c)/b,t[2]=(l-d)/b):a>u&&a>g?(b=2*Math.sqrt(1+a-u-g),t[3]=(h-f)/b,t[0]=.25*b,t[1]=(l+d)/b,t[2]=(p+c)/b):u>g?(b=2*Math.sqrt(1+u-a-g),t[3]=(p-c)/b,t[0]=(l+d)/b,t[1]=.25*b,t[2]=(h+f)/b):(b=2*Math.sqrt(1+g-a-u),t[3]=(l-d)/b,t[0]=(p+c)/b,t[1]=(h+f)/b,t[2]=.25*b),t}}();function Kh(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e[9]=t[9]+n[9],e[10]=t[10]+n[10],e[11]=t[11]+n[11],e[12]=t[12]+n[12],e[13]=t[13]+n[13],e[14]=t[14]+n[14],e[15]=t[15]+n[15],e}function Xh(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e[9]=t[9]-n[9],e[10]=t[10]-n[10],e[11]=t[11]-n[11],e[12]=t[12]-n[12],e[13]=t[13]-n[13],e[14]=t[14]-n[14],e[15]=t[15]-n[15],e}class Qh extends Array{constructor(e=1,t=0,n=0,r=0,i=0,o=1,s=0,a=0,l=0,c=0,d=1,u=0,h=0,p=0,f=0,g=1){return super(e,t,n,r,i,o,s,a,l,c,d,u,h,p,f,g),this}get x(){return this[12]}get y(){return this[13]}get z(){return this[14]}get w(){return this[15]}set x(e){this[12]=e}set y(e){this[13]=e}set z(e){this[14]=e}set w(e){this[15]=e}set(e,t,n,r,i,o,s,a,l,c,d,u,h,p,f,g){return e.length?this.copy(e):(function(e,t,n,r,i,o,s,a,l,c,d,u,h,p,f,g,m){e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=o,e[5]=s,e[6]=a,e[7]=l,e[8]=c,e[9]=d,e[10]=u,e[11]=h,e[12]=p,e[13]=f,e[14]=g,e[15]=m}(this,e,t,n,r,i,o,s,a,l,c,d,u,h,p,f,g),this)}translate(e,t=this){return function(e,t,n){let r,i,o,s,a,l,c,d,u,h,p,f,g=n[0],m=n[1],b=n[2];t===e?(e[12]=t[0]*g+t[4]*m+t[8]*b+t[12],e[13]=t[1]*g+t[5]*m+t[9]*b+t[13],e[14]=t[2]*g+t[6]*m+t[10]*b+t[14],e[15]=t[3]*g+t[7]*m+t[11]*b+t[15]):(r=t[0],i=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],d=t[7],u=t[8],h=t[9],p=t[10],f=t[11],e[0]=r,e[1]=i,e[2]=o,e[3]=s,e[4]=a,e[5]=l,e[6]=c,e[7]=d,e[8]=u,e[9]=h,e[10]=p,e[11]=f,e[12]=r*g+a*m+u*b+t[12],e[13]=i*g+l*m+h*b+t[13],e[14]=o*g+c*m+p*b+t[14],e[15]=s*g+d*m+f*b+t[15])}(this,t,e),this}rotate(e,t,n=this){return function(e,t,n,r){let i,o,s,a,l,c,d,u,h,p,f,g,m,b,v,y,w,x,k,_,C,T,S,E,$=r[0],M=r[1],L=r[2],A=Math.hypot($,M,L);Math.abs(A)<1e-6||(A=1/A,$*=A,M*=A,L*=A,i=Math.sin(n),o=Math.cos(n),s=1-o,a=t[0],l=t[1],c=t[2],d=t[3],u=t[4],h=t[5],p=t[6],f=t[7],g=t[8],m=t[9],b=t[10],v=t[11],y=$*$*s+o,w=M*$*s+L*i,x=L*$*s-M*i,k=$*M*s-L*i,_=M*M*s+o,C=L*M*s+$*i,T=$*L*s+M*i,S=M*L*s-$*i,E=L*L*s+o,e[0]=a*y+u*w+g*x,e[1]=l*y+h*w+m*x,e[2]=c*y+p*w+b*x,e[3]=d*y+f*w+v*x,e[4]=a*k+u*_+g*C,e[5]=l*k+h*_+m*C,e[6]=c*k+p*_+b*C,e[7]=d*k+f*_+v*C,e[8]=a*T+u*S+g*E,e[9]=l*T+h*S+m*E,e[10]=c*T+p*S+b*E,e[11]=d*T+f*S+v*E,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]))}(this,n,e,t),this}scale(e,t=this){return function(e,t,n){let r=n[0],i=n[1],o=n[2];e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*o,e[9]=t[9]*o,e[10]=t[10]*o,e[11]=t[11]*o,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]}(this,t,"number"==typeof e?[e,e,e]:e),this}add(e,t){return t?Kh(this,e,t):Kh(this,this,e),this}sub(e,t){return t?Xh(this,e,t):Xh(this,this,e),this}multiply(e,t){return e.length?t?qh(this,e,t):qh(this,this,e):function(e,t,n){e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12]*n,e[13]=t[13]*n,e[14]=t[14]*n,e[15]=t[15]*n}(this,this,e),this}identity(){var e;return(e=this)[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}copy(e){return function(e,t){e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]}(this,e),this}fromPerspective({fov:e,aspect:t,near:n,far:r}={}){return function(e,t,n,r,i){let o=1/Math.tan(t/2),s=1/(r-i);e[0]=o/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+r)*s,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*r*s,e[15]=0}(this,e,t,n,r),this}fromOrthogonal({left:e,right:t,bottom:n,top:r,near:i,far:o}){return function(e,t,n,r,i,o,s){let a=1/(t-n),l=1/(r-i),c=1/(o-s);e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+n)*a,e[13]=(i+r)*l,e[14]=(s+o)*c,e[15]=1}(this,e,t,n,r,i,o),this}fromQuaternion(e){return function(e,t){let n=t[0],r=t[1],i=t[2],o=t[3],s=n+n,a=r+r,l=i+i,c=n*s,d=r*s,u=r*a,h=i*s,p=i*a,f=i*l,g=o*s,m=o*a,b=o*l;e[0]=1-u-f,e[1]=d+b,e[2]=h-m,e[3]=0,e[4]=d-b,e[5]=1-c-f,e[6]=p+g,e[7]=0,e[8]=h+m,e[9]=p-g,e[10]=1-c-u,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1}(this,e),this}setPosition(e){return this.x=e[0],this.y=e[1],this.z=e[2],this}inverse(e=this){return function(e,t){let n=t[0],r=t[1],i=t[2],o=t[3],s=t[4],a=t[5],l=t[6],c=t[7],d=t[8],u=t[9],h=t[10],p=t[11],f=t[12],g=t[13],m=t[14],b=t[15],v=n*a-r*s,y=n*l-i*s,w=n*c-o*s,x=r*l-i*a,k=r*c-o*a,_=i*c-o*l,C=d*g-u*f,T=d*m-h*f,S=d*b-p*f,E=u*m-h*g,$=u*b-p*g,M=h*b-p*m,L=v*M-y*$+w*E+x*S-k*T+_*C;L&&(L=1/L,e[0]=(a*M-l*$+c*E)*L,e[1]=(i*$-r*M-o*E)*L,e[2]=(g*_-m*k+b*x)*L,e[3]=(h*k-u*_-p*x)*L,e[4]=(l*S-s*M-c*T)*L,e[5]=(n*M-i*S+o*T)*L,e[6]=(m*w-f*_-b*y)*L,e[7]=(d*_-h*w+p*y)*L,e[8]=(s*$-a*S+c*C)*L,e[9]=(r*S-n*$-o*C)*L,e[10]=(f*k-g*w+b*v)*L,e[11]=(u*w-d*k-p*v)*L,e[12]=(a*T-s*E-l*C)*L,e[13]=(n*E-r*T+i*C)*L,e[14]=(g*y-f*x-m*v)*L,e[15]=(d*x-u*y+h*v)*L)}(this,e),this}compose(e,t,n){return function(e,t,n,r){const i=e,o=t[0],s=t[1],a=t[2],l=t[3],c=o+o,d=s+s,u=a+a,h=o*c,p=o*d,f=o*u,g=s*d,m=s*u,b=a*u,v=l*c,y=l*d,w=l*u,x=r[0],k=r[1],_=r[2];i[0]=(1-(g+b))*x,i[1]=(p+w)*x,i[2]=(f-y)*x,i[3]=0,i[4]=(p-w)*k,i[5]=(1-(h+b))*k,i[6]=(m+v)*k,i[7]=0,i[8]=(f+y)*_,i[9]=(m-v)*_,i[10]=(1-(h+g))*_,i[11]=0,i[12]=n[0],i[13]=n[1],i[14]=n[2],i[15]=1}(this,e,t,n),this}decompose(e,t,n){return function(e,t,n,r){let i=Mh([e[0],e[1],e[2]]);const o=Mh([e[4],e[5],e[6]]),s=Mh([e[8],e[9],e[10]]);Vh(e)<0&&(i=-i),n[0]=e[12],n[1]=e[13],n[2]=e[14];const a=e.slice(),l=1/i,c=1/o,d=1/s;a[0]*=l,a[1]*=l,a[2]*=l,a[4]*=c,a[5]*=c,a[6]*=c,a[8]*=d,a[9]*=d,a[10]*=d,Yh(t,a),r[0]=i,r[1]=o,r[2]=s}(this,e,t,n),this}getRotation(e){return Yh(e,this),this}getTranslation(e){var t,n;return n=this,(t=e)[0]=n[12],t[1]=n[13],t[2]=n[14],this}getScaling(e){return Gh(e,this),this}getMaxScaleOnAxis(){return function(e){let t=e[0],n=e[1],r=e[2],i=e[4],o=e[5],s=e[6],a=e[8],l=e[9],c=e[10];const d=t*t+n*n+r*r,u=i*i+o*o+s*s,h=a*a+l*l+c*c;return Math.sqrt(Math.max(d,u,h))}(this)}lookAt(e,t,n){return function(e,t,n,r){let i=t[0],o=t[1],s=t[2],a=r[0],l=r[1],c=r[2],d=i-n[0],u=o-n[1],h=s-n[2],p=d*d+u*u+h*h;0===p?h=1:(p=1/Math.sqrt(p),d*=p,u*=p,h*=p);let f=l*h-c*u,g=c*d-a*h,m=a*u-l*d;p=f*f+g*g+m*m,0===p&&(c?a+=1e-6:l?c+=1e-6:l+=1e-6,f=l*h-c*u,g=c*d-a*h,m=a*u-l*d,p=f*f+g*g+m*m),p=1/Math.sqrt(p),f*=p,g*=p,m*=p,e[0]=f,e[1]=g,e[2]=m,e[3]=0,e[4]=u*m-h*g,e[5]=h*f-d*m,e[6]=d*g-u*f,e[7]=0,e[8]=d,e[9]=u,e[10]=h,e[11]=0,e[12]=i,e[13]=o,e[14]=s,e[15]=1}(this,e,t,n),this}determinant(){return Vh(this)}fromArray(e,t=0){return this[0]=e[t],this[1]=e[t+1],this[2]=e[t+2],this[3]=e[t+3],this[4]=e[t+4],this[5]=e[t+5],this[6]=e[t+6],this[7]=e[t+7],this[8]=e[t+8],this[9]=e[t+9],this[10]=e[t+10],this[11]=e[t+11],this[12]=e[t+12],this[13]=e[t+13],this[14]=e[t+14],this[15]=e[t+15],this}toArray(e=[],t=0){return e[t]=this[0],e[t+1]=this[1],e[t+2]=this[2],e[t+3]=this[3],e[t+4]=this[4],e[t+5]=this[5],e[t+6]=this[6],e[t+7]=this[7],e[t+8]=this[8],e[t+9]=this[9],e[t+10]=this[10],e[t+11]=this[11],e[t+12]=this[12],e[t+13]=this[13],e[t+14]=this[14],e[t+15]=this[15],e}}const Zh=new Qh;class Jh extends Array{constructor(e=0,t=e,n=e,r="YXZ"){super(e,t,n),this.order=r,this.onChange=()=>{},this._target=this;const i=["0","1","2"];return new Proxy(this,{set(e,t){const n=Reflect.set(...arguments);return n&&i.includes(t)&&e.onChange(),n}})}get x(){return this[0]}get y(){return this[1]}get z(){return this[2]}set x(e){this._target[0]=e,this.onChange()}set y(e){this._target[1]=e,this.onChange()}set z(e){this._target[2]=e,this.onChange()}set(e,t=e,n=e){return e.length?this.copy(e):(this._target[0]=e,this._target[1]=t,this._target[2]=n,this.onChange(),this)}copy(e){return this._target[0]=e[0],this._target[1]=e[1],this._target[2]=e[2],this.onChange(),this}reorder(e){return this._target.order=e,this.onChange(),this}fromRotationMatrix(e,t=this.order){return function(e,t,n="YXZ"){"XYZ"===n?(e[1]=Math.asin(Math.min(Math.max(t[8],-1),1)),Math.abs(t[8])<.99999?(e[0]=Math.atan2(-t[9],t[10]),e[2]=Math.atan2(-t[4],t[0])):(e[0]=Math.atan2(t[6],t[5]),e[2]=0)):"YXZ"===n?(e[0]=Math.asin(-Math.min(Math.max(t[9],-1),1)),Math.abs(t[9])<.99999?(e[1]=Math.atan2(t[8],t[10]),e[2]=Math.atan2(t[1],t[5])):(e[1]=Math.atan2(-t[2],t[0]),e[2]=0)):"ZXY"===n?(e[0]=Math.asin(Math.min(Math.max(t[6],-1),1)),Math.abs(t[6])<.99999?(e[1]=Math.atan2(-t[2],t[10]),e[2]=Math.atan2(-t[4],t[5])):(e[1]=0,e[2]=Math.atan2(t[1],t[0]))):"ZYX"===n?(e[1]=Math.asin(-Math.min(Math.max(t[2],-1),1)),Math.abs(t[2])<.99999?(e[0]=Math.atan2(t[6],t[10]),e[2]=Math.atan2(t[1],t[0])):(e[0]=0,e[2]=Math.atan2(-t[4],t[5]))):"YZX"===n?(e[2]=Math.asin(Math.min(Math.max(t[1],-1),1)),Math.abs(t[1])<.99999?(e[0]=Math.atan2(-t[9],t[5]),e[1]=Math.atan2(-t[2],t[0])):(e[0]=0,e[1]=Math.atan2(t[8],t[10]))):"XZY"===n&&(e[2]=Math.asin(-Math.min(Math.max(t[4],-1),1)),Math.abs(t[4])<.99999?(e[0]=Math.atan2(t[6],t[5]),e[1]=Math.atan2(t[8],t[0])):(e[0]=Math.atan2(-t[9],t[10]),e[1]=0))}(this._target,e,t),this.onChange(),this}fromQuaternion(e,t=this.order,n){return Zh.fromQuaternion(e),this._target.fromRotationMatrix(Zh,t),n||this.onChange(),this}fromArray(e,t=0){return this._target[0]=e[t],this._target[1]=e[t+1],this._target[2]=e[t+2],this}toArray(e=[],t=0){return e[t]=this[0],e[t+1]=this[1],e[t+2]=this[2],e}}class ep{constructor(){this.parent=null,this.children=[],this.visible=!0,this.matrix=new Qh,this.worldMatrix=new Qh,this.matrixAutoUpdate=!0,this.worldMatrixNeedsUpdate=!1,this.position=new Fh,this.quaternion=new Uh,this.scale=new Fh(1),this.rotation=new Jh,this.up=new Fh(0,1,0),this.rotation._target.onChange=()=>this.quaternion.fromEuler(this.rotation,!0),this.quaternion._target.onChange=()=>this.rotation.fromQuaternion(this.quaternion,void 0,!0)}setParent(e,t=!0){this.parent&&e!==this.parent&&this.parent.removeChild(this,!1),this.parent=e,t&&e&&e.addChild(this,!1)}addChild(e,t=!0){~this.children.indexOf(e)||this.children.push(e),t&&e.setParent(this,!1)}removeChild(e,t=!0){~this.children.indexOf(e)&&this.children.splice(this.children.indexOf(e),1),t&&e.setParent(null,!1)}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.worldMatrixNeedsUpdate||e)&&(null===this.parent?this.worldMatrix.copy(this.matrix):this.worldMatrix.multiply(this.parent.worldMatrix,this.matrix),this.worldMatrixNeedsUpdate=!1,e=!0);for(let t=0,n=this.children.length;t<n;t++)this.children[t].updateMatrixWorld(e)}updateMatrix(){this.matrix.compose(this.quaternion,this.position,this.scale),this.worldMatrixNeedsUpdate=!0}traverse(e){if(!e(this))for(let t=0,n=this.children.length;t<n;t++)this.children[t].traverse(e)}decompose(){this.matrix.decompose(this.quaternion._target,this.position,this.scale),this.rotation.fromQuaternion(this.quaternion)}lookAt(e,t=!1){t?this.matrix.lookAt(this.position,e,this.up):this.matrix.lookAt(e,this.position,this.up),this.matrix.getRotation(this.quaternion._target),this.rotation.fromQuaternion(this.quaternion)}}const tp=new Fh;let np=1,rp=1,ip=!1;class op{constructor(e,t={}){e.canvas||console.error("gl not passed as first argument to Geometry"),this.gl=e,this.attributes=t,this.id=np++,this.VAOs={},this.drawRange={start:0,count:0},this.instancedCount=0,this.gl.renderer.bindVertexArray(null),this.gl.renderer.currentGeometry=null,this.glState=this.gl.renderer.state;for(let e in t)this.addAttribute(e,t[e])}addAttribute(e,t){if(this.attributes[e]=t,t.id=rp++,t.size=t.size||1,t.type=t.type||(t.data.constructor===Float32Array?this.gl.FLOAT:t.data.constructor===Uint16Array?this.gl.UNSIGNED_SHORT:this.gl.UNSIGNED_INT),t.target="index"===e?this.gl.ELEMENT_ARRAY_BUFFER:this.gl.ARRAY_BUFFER,t.normalized=t.normalized||!1,t.stride=t.stride||0,t.offset=t.offset||0,t.count=t.count||(t.stride?t.data.byteLength/t.stride:t.data.length/t.size),t.divisor=t.instanced||0,t.needsUpdate=!1,t.usage=t.usage||this.gl.STATIC_DRAW,t.buffer||this.updateAttribute(t),t.divisor){if(this.isInstanced=!0,this.instancedCount&&this.instancedCount!==t.count*t.divisor)return console.warn("geometry has multiple instanced buffers of different length"),this.instancedCount=Math.min(this.instancedCount,t.count*t.divisor);this.instancedCount=t.count*t.divisor}else"index"===e?this.drawRange.count=t.count:this.attributes.index||(this.drawRange.count=Math.max(this.drawRange.count,t.count))}updateAttribute(e){const t=!e.buffer;t&&(e.buffer=this.gl.createBuffer()),this.glState.boundBuffer!==e.buffer&&(this.gl.bindBuffer(e.target,e.buffer),this.glState.boundBuffer=e.buffer),t?this.gl.bufferData(e.target,e.data,e.usage):this.gl.bufferSubData(e.target,0,e.data),e.needsUpdate=!1}setIndex(e){this.addAttribute("index",e)}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}setInstancedCount(e){this.instancedCount=e}createVAO(e){this.VAOs[e.attributeOrder]=this.gl.renderer.createVertexArray(),this.gl.renderer.bindVertexArray(this.VAOs[e.attributeOrder]),this.bindAttributes(e)}bindAttributes(e){e.attributeLocations.forEach(((e,{name:t,type:n})=>{if(!this.attributes[t])return void console.warn(`active attribute ${t} not being supplied`);const r=this.attributes[t];this.gl.bindBuffer(r.target,r.buffer),this.glState.boundBuffer=r.buffer;let i=1;35674===n&&(i=2),35675===n&&(i=3),35676===n&&(i=4);const o=r.size/i,s=1===i?0:i*i*4,a=1===i?0:4*i;for(let t=0;t<i;t++)this.gl.vertexAttribPointer(e+t,o,r.type,r.normalized,r.stride+s,r.offset+t*a),this.gl.enableVertexAttribArray(e+t),this.gl.renderer.vertexAttribDivisor(e+t,r.divisor)})),this.attributes.index&&this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,this.attributes.index.buffer)}draw({program:e,mode:t=this.gl.TRIANGLES}){this.gl.renderer.currentGeometry!==`${this.id}_${e.attributeOrder}`&&(this.VAOs[e.attributeOrder]||this.createVAO(e),this.gl.renderer.bindVertexArray(this.VAOs[e.attributeOrder]),this.gl.renderer.currentGeometry=`${this.id}_${e.attributeOrder}`),e.attributeLocations.forEach(((e,{name:t})=>{const n=this.attributes[t];n.needsUpdate&&this.updateAttribute(n)}));let n=2;this.attributes.index?.type===this.gl.UNSIGNED_INT&&(n=4),this.isInstanced?this.attributes.index?this.gl.renderer.drawElementsInstanced(t,this.drawRange.count,this.attributes.index.type,this.attributes.index.offset+this.drawRange.start*n,this.instancedCount):this.gl.renderer.drawArraysInstanced(t,this.drawRange.start,this.drawRange.count,this.instancedCount):this.attributes.index?this.gl.drawElements(t,this.drawRange.count,this.attributes.index.type,this.attributes.index.offset+this.drawRange.start*n):this.gl.drawArrays(t,this.drawRange.start,this.drawRange.count)}getPosition(){const e=this.attributes.position;return e.data?e:ip?void 0:(console.warn("No position buffer data found to compute bounds"),ip=!0)}computeBoundingBox(e){e||(e=this.getPosition());const t=e.data,n=e.size;this.bounds||(this.bounds={min:new Fh,max:new Fh,center:new Fh,scale:new Fh,radius:1/0});const r=this.bounds.min,i=this.bounds.max,o=this.bounds.center,s=this.bounds.scale;r.set(1/0),i.set(-1/0);for(let e=0,o=t.length;e<o;e+=n){const n=t[e],o=t[e+1],s=t[e+2];r.x=Math.min(n,r.x),r.y=Math.min(o,r.y),r.z=Math.min(s,r.z),i.x=Math.max(n,i.x),i.y=Math.max(o,i.y),i.z=Math.max(s,i.z)}s.sub(i,r),o.add(r,i).divide(2)}computeBoundingSphere(e){e||(e=this.getPosition());const t=e.data,n=e.size;this.bounds||this.computeBoundingBox(e);let r=0;for(let e=0,i=t.length;e<i;e+=n)tp.fromArray(t,e),r=Math.max(r,this.bounds.center.squaredDistance(tp));this.bounds.radius=Math.sqrt(r)}remove(){for(let e in this.VAOs)this.gl.renderer.deleteVertexArray(this.VAOs[e]),delete this.VAOs[e];for(let e in this.attributes)this.gl.deleteBuffer(this.attributes[e].buffer),delete this.attributes[e]}}let sp=1;const ap={};class lp{constructor(e,{vertex:t,fragment:n,uniforms:r={},transparent:i=!1,cullFace:o=e.BACK,frontFace:s=e.CCW,depthTest:a=!0,depthWrite:l=!0,depthFunc:c=e.LEQUAL}={}){e.canvas||console.error("gl not passed as first argument to Program"),this.gl=e,this.uniforms=r,this.id=sp++,t||console.warn("vertex shader not supplied"),n||console.warn("fragment shader not supplied"),this.transparent=i,this.cullFace=o,this.frontFace=s,this.depthTest=a,this.depthWrite=l,this.depthFunc=c,this.blendFunc={},this.blendEquation={},this.stencilFunc={},this.stencilOp={},this.transparent&&!this.blendFunc.src&&(this.gl.renderer.premultipliedAlpha?this.setBlendFunc(this.gl.ONE,this.gl.ONE_MINUS_SRC_ALPHA):this.setBlendFunc(this.gl.SRC_ALPHA,this.gl.ONE_MINUS_SRC_ALPHA)),this.vertexShader=e.createShader(e.VERTEX_SHADER),this.fragmentShader=e.createShader(e.FRAGMENT_SHADER),this.program=e.createProgram(),e.attachShader(this.program,this.vertexShader),e.attachShader(this.program,this.fragmentShader),this.setShaders({vertex:t,fragment:n})}setShaders({vertex:e,fragment:t}){if(e&&(this.gl.shaderSource(this.vertexShader,e),this.gl.compileShader(this.vertexShader),""!==this.gl.getShaderInfoLog(this.vertexShader)&&console.warn(`${this.gl.getShaderInfoLog(this.vertexShader)}\nVertex Shader\n${dp(e)}`)),t&&(this.gl.shaderSource(this.fragmentShader,t),this.gl.compileShader(this.fragmentShader),""!==this.gl.getShaderInfoLog(this.fragmentShader)&&console.warn(`${this.gl.getShaderInfoLog(this.fragmentShader)}\nFragment Shader\n${dp(t)}`)),this.gl.linkProgram(this.program),!this.gl.getProgramParameter(this.program,this.gl.LINK_STATUS))return console.warn(this.gl.getProgramInfoLog(this.program));this.uniformLocations=new Map;let n=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_UNIFORMS);for(let e=0;e<n;e++){let t=this.gl.getActiveUniform(this.program,e);this.uniformLocations.set(t,this.gl.getUniformLocation(this.program,t.name));const n=t.name.match(/(\w+)/g);t.uniformName=n[0],t.nameComponents=n.slice(1)}this.attributeLocations=new Map;const r=[],i=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES);for(let e=0;e<i;e++){const t=this.gl.getActiveAttrib(this.program,e),n=this.gl.getAttribLocation(this.program,t.name);-1!==n&&(r[n]=t.name,this.attributeLocations.set(t,n))}this.attributeOrder=r.join("")}setBlendFunc(e,t,n,r){this.blendFunc.src=e,this.blendFunc.dst=t,this.blendFunc.srcAlpha=n,this.blendFunc.dstAlpha=r,e&&(this.transparent=!0)}setBlendEquation(e,t){this.blendEquation.modeRGB=e,this.blendEquation.modeAlpha=t}setStencilFunc(e,t,n){this.stencilRef=t,this.stencilFunc.func=e,this.stencilFunc.ref=t,this.stencilFunc.mask=n}setStencilOp(e,t,n){this.stencilOp.stencilFail=e,this.stencilOp.depthFail=t,this.stencilOp.depthPass=n}applyState(){this.depthTest?this.gl.renderer.enable(this.gl.DEPTH_TEST):this.gl.renderer.disable(this.gl.DEPTH_TEST),this.cullFace?this.gl.renderer.enable(this.gl.CULL_FACE):this.gl.renderer.disable(this.gl.CULL_FACE),this.blendFunc.src?this.gl.renderer.enable(this.gl.BLEND):this.gl.renderer.disable(this.gl.BLEND),this.cullFace&&this.gl.renderer.setCullFace(this.cullFace),this.gl.renderer.setFrontFace(this.frontFace),this.gl.renderer.setDepthMask(this.depthWrite),this.gl.renderer.setDepthFunc(this.depthFunc),this.blendFunc.src&&this.gl.renderer.setBlendFunc(this.blendFunc.src,this.blendFunc.dst,this.blendFunc.srcAlpha,this.blendFunc.dstAlpha),this.gl.renderer.setBlendEquation(this.blendEquation.modeRGB,this.blendEquation.modeAlpha),this.stencilFunc.func||this.stencilOp.stencilFail?this.gl.renderer.enable(this.gl.STENCIL_TEST):this.gl.renderer.disable(this.gl.STENCIL_TEST),this.gl.renderer.setStencilFunc(this.stencilFunc.func,this.stencilFunc.ref,this.stencilFunc.mask),this.gl.renderer.setStencilOp(this.stencilOp.stencilFail,this.stencilOp.depthFail,this.stencilOp.depthPass)}use({flipFaces:e=!1}={}){let t=-1;this.gl.renderer.state.currentProgram===this.id||(this.gl.useProgram(this.program),this.gl.renderer.state.currentProgram=this.id),this.uniformLocations.forEach(((e,n)=>{let r=this.uniforms[n.uniformName];for(const e of n.nameComponents){if(!r)break;if(!(e in r)){if(Array.isArray(r.value))break;r=void 0;break}r=r[e]}if(!r)return hp(`Active uniform ${n.name} has not been supplied`);if(r&&void 0===r.value)return hp(`${n.name} uniform is missing a value parameter`);if(r.value.texture)return t+=1,r.value.update(t),cp(this.gl,n.type,e,t);if(r.value.length&&r.value[0].texture){const i=[];return r.value.forEach((e=>{t+=1,e.update(t),i.push(t)})),cp(this.gl,n.type,e,i)}cp(this.gl,n.type,e,r.value)})),this.applyState(),e&&this.gl.renderer.setFrontFace(this.frontFace===this.gl.CCW?this.gl.CW:this.gl.CCW)}remove(){this.gl.deleteProgram(this.program)}}function cp(e,t,n,r){r=r.length?function(e){const t=e.length,n=e[0].length;if(void 0===n)return e;const r=t*n;let i=ap[r];i||(ap[r]=i=new Float32Array(r));for(let r=0;r<t;r++)i.set(e[r],r*n);return i}(r):r;const i=e.renderer.state.uniformLocations.get(n);if(r.length)if(void 0===i||i.length!==r.length)e.renderer.state.uniformLocations.set(n,r.slice(0));else{if(function(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}(i,r))return;i.set?i.set(r):function(e,t){for(let n=0,r=e.length;n<r;n++)e[n]=t[n]}(i,r),e.renderer.state.uniformLocations.set(n,i)}else{if(i===r)return;e.renderer.state.uniformLocations.set(n,r)}switch(t){case 5126:return r.length?e.uniform1fv(n,r):e.uniform1f(n,r);case 35664:return e.uniform2fv(n,r);case 35665:return e.uniform3fv(n,r);case 35666:return e.uniform4fv(n,r);case 35670:case 5124:case 35678:case 36306:case 35680:case 36289:return r.length?e.uniform1iv(n,r):e.uniform1i(n,r);case 35671:case 35667:return e.uniform2iv(n,r);case 35672:case 35668:return e.uniform3iv(n,r);case 35673:case 35669:return e.uniform4iv(n,r);case 35674:return e.uniformMatrix2fv(n,!1,r);case 35675:return e.uniformMatrix3fv(n,!1,r);case 35676:return e.uniformMatrix4fv(n,!1,r)}}function dp(e){let t=e.split("\n");for(let e=0;e<t.length;e++)t[e]=e+1+": "+t[e];return t.join("\n")}let up=0;function hp(e){up>100||(console.warn(e),up++,up>100&&console.warn("More than 100 program warnings - stopping logs."))}function pp(e,t,n){let r=t[0],i=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],d=t[7],u=t[8],h=n[0],p=n[1],f=n[2],g=n[3],m=n[4],b=n[5],v=n[6],y=n[7],w=n[8];return e[0]=h*r+p*s+f*c,e[1]=h*i+p*a+f*d,e[2]=h*o+p*l+f*u,e[3]=g*r+m*s+b*c,e[4]=g*i+m*a+b*d,e[5]=g*o+m*l+b*u,e[6]=v*r+y*s+w*c,e[7]=v*i+y*a+w*d,e[8]=v*o+y*l+w*u,e}class fp extends Array{constructor(e=1,t=0,n=0,r=0,i=1,o=0,s=0,a=0,l=1){return super(e,t,n,r,i,o,s,a,l),this}set(e,t,n,r,i,o,s,a,l){return e.length?this.copy(e):(function(e,t,n,r,i,o,s,a,l,c){e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=o,e[5]=s,e[6]=a,e[7]=l,e[8]=c}(this,e,t,n,r,i,o,s,a,l),this)}translate(e,t=this){return function(e,t,n){let r=t[0],i=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],d=t[7],u=t[8],h=n[0],p=n[1];e[0]=r,e[1]=i,e[2]=o,e[3]=s,e[4]=a,e[5]=l,e[6]=h*r+p*s+c,e[7]=h*i+p*a+d,e[8]=h*o+p*l+u}(this,t,e),this}rotate(e,t=this){return function(e,t,n){let r=t[0],i=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],d=t[7],u=t[8],h=Math.sin(n),p=Math.cos(n);e[0]=p*r+h*s,e[1]=p*i+h*a,e[2]=p*o+h*l,e[3]=p*s-h*r,e[4]=p*a-h*i,e[5]=p*l-h*o,e[6]=c,e[7]=d,e[8]=u}(this,t,e),this}scale(e,t=this){return function(e,t,n){let r=n[0],i=n[1];e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=i*t[3],e[4]=i*t[4],e[5]=i*t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8]}(this,t,e),this}multiply(e,t){return t?pp(this,e,t):pp(this,this,e),this}identity(){var e;return(e=this)[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,this}copy(e){return function(e,t){e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8]}(this,e),this}fromMatrix4(e){return function(e,t){e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10]}(this,e),this}fromQuaternion(e){return function(e,t){let n=t[0],r=t[1],i=t[2],o=t[3],s=n+n,a=r+r,l=i+i,c=n*s,d=r*s,u=r*a,h=i*s,p=i*a,f=i*l,g=o*s,m=o*a,b=o*l;e[0]=1-u-f,e[3]=d-b,e[6]=h+m,e[1]=d+b,e[4]=1-c-f,e[7]=p-g,e[2]=h-m,e[5]=p+g,e[8]=1-c-u}(this,e),this}fromBasis(e,t,n){return this.set(e[0],e[1],e[2],t[0],t[1],t[2],n[0],n[1],n[2]),this}inverse(e=this){return function(e,t){let n=t[0],r=t[1],i=t[2],o=t[3],s=t[4],a=t[5],l=t[6],c=t[7],d=t[8],u=d*s-a*c,h=-d*o+a*l,p=c*o-s*l,f=n*u+r*h+i*p;f&&(f=1/f,e[0]=u*f,e[1]=(-d*r+i*c)*f,e[2]=(a*r-i*s)*f,e[3]=h*f,e[4]=(d*n-i*l)*f,e[5]=(-a*n+i*o)*f,e[6]=p*f,e[7]=(-c*n+r*l)*f,e[8]=(s*n-r*o)*f)}(this,e),this}getNormalMatrix(e){return function(e,t){let n=t[0],r=t[1],i=t[2],o=t[3],s=t[4],a=t[5],l=t[6],c=t[7],d=t[8],u=t[9],h=t[10],p=t[11],f=t[12],g=t[13],m=t[14],b=t[15],v=n*a-r*s,y=n*l-i*s,w=n*c-o*s,x=r*l-i*a,k=r*c-o*a,_=i*c-o*l,C=d*g-u*f,T=d*m-h*f,S=d*b-p*f,E=u*m-h*g,$=u*b-p*g,M=h*b-p*m,L=v*M-y*$+w*E+x*S-k*T+_*C;L&&(L=1/L,e[0]=(a*M-l*$+c*E)*L,e[1]=(l*S-s*M-c*T)*L,e[2]=(s*$-a*S+c*C)*L,e[3]=(i*$-r*M-o*E)*L,e[4]=(n*M-i*S+o*T)*L,e[5]=(r*S-n*$-o*C)*L,e[6]=(g*_-m*k+b*x)*L,e[7]=(m*w-f*_-b*y)*L,e[8]=(f*k-g*w+b*v)*L)}(this,e),this}}let gp=0;class mp extends ep{constructor(e,{geometry:t,program:n,mode:r=e.TRIANGLES,frustumCulled:i=!0,renderOrder:o=0}={}){super(),e.canvas||console.error("gl not passed as first argument to Mesh"),this.gl=e,this.id=gp++,this.geometry=t,this.program=n,this.mode=r,this.frustumCulled=i,this.renderOrder=o,this.modelViewMatrix=new Qh,this.normalMatrix=new fp,this.beforeRenderCallbacks=[],this.afterRenderCallbacks=[]}onBeforeRender(e){return this.beforeRenderCallbacks.push(e),this}onAfterRender(e){return this.afterRenderCallbacks.push(e),this}draw({camera:e}={}){e&&(this.program.uniforms.modelMatrix||Object.assign(this.program.uniforms,{modelMatrix:{value:null},viewMatrix:{value:null},modelViewMatrix:{value:null},normalMatrix:{value:null},projectionMatrix:{value:null},cameraPosition:{value:null}}),this.program.uniforms.projectionMatrix.value=e.projectionMatrix,this.program.uniforms.cameraPosition.value=e.worldPosition,this.program.uniforms.viewMatrix.value=e.viewMatrix,this.modelViewMatrix.multiply(e.viewMatrix,this.worldMatrix),this.normalMatrix.getNormalMatrix(this.modelViewMatrix),this.program.uniforms.modelMatrix.value=this.worldMatrix,this.program.uniforms.modelViewMatrix.value=this.modelViewMatrix,this.program.uniforms.normalMatrix.value=this.normalMatrix),this.beforeRenderCallbacks.forEach((t=>t&&t({mesh:this,camera:e})));let t=this.program.cullFace&&this.worldMatrix.determinant()<0;this.program.use({flipFaces:t}),this.geometry.draw({mode:this.mode,program:this.program}),this.afterRenderCallbacks.forEach((t=>t&&t({mesh:this,camera:e})))}}function bp(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function vp(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function yp(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function xp(e){var t=e[0],n=e[1];return Math.sqrt(t*t+n*n)}function kp(e,t){return e[0]*t[1]-e[1]*t[0]}class _p extends Array{constructor(e=0,t=e){return super(e,t),this}get x(){return this[0]}get y(){return this[1]}set x(e){this[0]=e}set y(e){this[1]=e}set(e,t=e){return e.length?this.copy(e):(function(e,t,n){e[0]=t,e[1]=n}(this,e,t),this)}copy(e){return function(e,t){e[0]=t[0],e[1]=t[1]}(this,e),this}add(e,t){return t?bp(this,e,t):bp(this,this,e),this}sub(e,t){return t?vp(this,e,t):vp(this,this,e),this}multiply(e){return e.length?function(e,t,n){e[0]=t[0]*n[0],e[1]=t[1]*n[1]}(this,this,e):yp(this,this,e),this}divide(e){return e.length?function(e,t,n){e[0]=t[0]/n[0],e[1]=t[1]/n[1]}(this,this,e):yp(this,this,1/e),this}inverse(e=this){return function(e,t){e[0]=1/t[0],e[1]=1/t[1]}(this,e),this}len(){return xp(this)}distance(e){return e?function(e,t){var n=t[0]-e[0],r=t[1]-e[1];return Math.sqrt(n*n+r*r)}(this,e):xp(this)}squaredLen(){return this.squaredDistance()}squaredDistance(e){return e?function(e,t){var n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r}(this,e):function(e){var t=e[0],n=e[1];return t*t+n*n}(this)}negate(e=this){return function(e,t){e[0]=-t[0],e[1]=-t[1]}(this,e),this}cross(e,t){return t?kp(e,t):kp(this,e)}scale(e){return yp(this,this,e),this}normalize(){return function(e,t){var n=t[0],r=t[1],i=n*n+r*r;i>0&&(i=1/Math.sqrt(i)),e[0]=t[0]*i,e[1]=t[1]*i}(this,this),this}dot(e){return function(e,t){return e[0]*t[0]+e[1]*t[1]}(this,e)}equals(e){return function(e,t){return e[0]===t[0]&&e[1]===t[1]}(this,e)}applyMatrix3(e){return function(e,t,n){var r=t[0],i=t[1];e[0]=n[0]*r+n[3]*i+n[6],e[1]=n[1]*r+n[4]*i+n[7]}(this,this,e),this}applyMatrix4(e){return function(e,t,n){let r=t[0],i=t[1];e[0]=n[0]*r+n[4]*i+n[12],e[1]=n[1]*r+n[5]*i+n[13]}(this,this,e),this}lerp(e,t){return function(e,t,n,r){var i=t[0],o=t[1];e[0]=i+r*(n[0]-i),e[1]=o+r*(n[1]-o)}(this,this,e,t),this}smoothLerp(e,t,n){return function(e,t,n,r,i){const o=Math.exp(-r*i);let s=t[0],a=t[1];e[0]=n[0]+(s-n[0])*o,e[1]=n[1]+(a-n[1])*o}(this,this,e,t,n),this}clone(){return new _p(this[0],this[1])}fromArray(e,t=0){return this[0]=e[t],this[1]=e[t+1],this}toArray(e=[],t=0){return e[t]=this[0],e[t+1]=this[1],e}}const Cp={black:"#000000",white:"#ffffff",red:"#ff0000",green:"#00ff00",blue:"#0000ff",fuchsia:"#ff00ff",cyan:"#00ffff",yellow:"#ffff00",orange:"#ff8000"};function Tp(e){4===e.length&&(e=e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t||console.warn(`Unable to convert hex string ${e} to rgb values`),[parseInt(t[1],16)/255,parseInt(t[2],16)/255,parseInt(t[3],16)/255]}function Sp(e){return void 0===e?[0,0,0]:3===arguments.length?arguments:isNaN(e)?"#"===e[0]?Tp(e):Cp[e.toLowerCase()]?Tp(Cp[e.toLowerCase()]):(console.warn("Color format not recognised"),[0,0,0]):(t=e,[((t=parseInt(t))>>16&255)/255,(t>>8&255)/255,(255&t)/255]);var t}class Ep extends Array{constructor(e){return Array.isArray(e)?super(...e):super(...Sp(...arguments))}get r(){return this[0]}get g(){return this[1]}get b(){return this[2]}set r(e){this[0]=e}set g(e){this[1]=e}set b(e){this[2]=e}set(e){return Array.isArray(e)?this.copy(e):this.copy(Sp(...arguments))}copy(e){return this[0]=e[0],this[1]=e[1],this[2]=e[2],this}}const $p=new Fh;class Mp{constructor(e,{points:t,vertex:n=Lp,fragment:r=Ap,uniforms:i={},attributes:o={}}){this.gl=e,this.points=t,this.count=t.length,this.position=new Float32Array(3*this.count*2),this.prev=new Float32Array(3*this.count*2),this.next=new Float32Array(3*this.count*2);const s=new Float32Array(1*this.count*2),a=new Float32Array(2*this.count*2),l=new Uint16Array(3*(this.count-1)*2);for(let e=0;e<this.count;e++){s.set([-1,1],2*e);const t=e/(this.count-1);if(a.set([0,t,1,t],4*e),e===this.count-1)continue;const n=2*e;l.set([n+0,n+1,n+2],3*(n+0)),l.set([n+2,n+1,n+3],3*(n+1))}const c=this.geometry=new op(e,Object.assign(o,{position:{size:3,data:this.position},prev:{size:3,data:this.prev},next:{size:3,data:this.next},side:{size:1,data:s},uv:{size:2,data:a},index:{size:1,data:l}}));this.updateGeometry(),i.uResolution||(this.resolution=i.uResolution={value:new _p}),i.uDPR||(this.dpr=i.uDPR={value:1}),i.uThickness||(this.thickness=i.uThickness={value:1}),i.uColor||(this.color=i.uColor={value:new Ep("#000")}),i.uMiter||(this.miter=i.uMiter={value:1}),this.resize();const d=this.program=new lp(e,{vertex:n,fragment:r,uniforms:i});this.mesh=new mp(e,{geometry:c,program:d})}updateGeometry(){this.points.forEach(((e,t)=>{e.toArray(this.position,3*t*2),e.toArray(this.position,3*t*2+3),t?(e.toArray(this.next,3*(t-1)*2),e.toArray(this.next,3*(t-1)*2+3)):($p.copy(e).sub(this.points[t+1]).add(e),$p.toArray(this.prev,3*t*2),$p.toArray(this.prev,3*t*2+3)),t===this.points.length-1?($p.copy(e).sub(this.points[t-1]).add(e),$p.toArray(this.next,3*t*2),$p.toArray(this.next,3*t*2+3)):(e.toArray(this.prev,3*(t+1)*2),e.toArray(this.prev,3*(t+1)*2+3))})),this.geometry.attributes.position.needsUpdate=!0,this.geometry.attributes.prev.needsUpdate=!0,this.geometry.attributes.next.needsUpdate=!0}resize(){this.resolution&&this.resolution.value.set(this.gl.canvas.width,this.gl.canvas.height),this.dpr&&(this.dpr.value=this.gl.renderer.dpr)}}const Lp="\n precision highp float;\n\n attribute vec3 position;\n attribute vec3 next;\n attribute vec3 prev;\n attribute vec2 uv;\n attribute float side;\n\n uniform mat4 modelViewMatrix;\n uniform mat4 projectionMatrix;\n uniform vec2 uResolution;\n uniform float uDPR;\n uniform float uThickness;\n uniform float uMiter;\n\n varying vec2 vUv;\n\n vec4 getPosition() {\n mat4 mvp = projectionMatrix * modelViewMatrix;\n vec4 current = mvp * vec4(position, 1);\n vec4 nextPos = mvp * vec4(next, 1);\n vec4 prevPos = mvp * vec4(prev, 1);\n\n vec2 aspect = vec2(uResolution.x / uResolution.y, 1); \n vec2 currentScreen = current.xy / current.w * aspect;\n vec2 nextScreen = nextPos.xy / nextPos.w * aspect;\n vec2 prevScreen = prevPos.xy / prevPos.w * aspect;\n \n vec2 dir1 = normalize(currentScreen - prevScreen);\n vec2 dir2 = normalize(nextScreen - currentScreen);\n vec2 dir = normalize(dir1 + dir2);\n \n vec2 normal = vec2(-dir.y, dir.x);\n normal /= mix(1.0, max(0.3, dot(normal, vec2(-dir1.y, dir1.x))), uMiter);\n normal /= aspect;\n\n float pixelWidthRatio = 1.0 / (uResolution.y / uDPR);\n float pixelWidth = current.w * pixelWidthRatio;\n normal *= pixelWidth * uThickness;\n current.xy -= normal * side;\n \n return current;\n }\n\n void main() {\n vUv = uv;\n gl_Position = getPosition();\n }\n",Ap="\n precision highp float;\n\n uniform vec3 uColor;\n \n varying vec2 vUv;\n\n void main() {\n gl_FragColor.rgb = uColor;\n gl_FragColor.a = 1.0;\n }\n",Rp=({colors:e=["#FC8EAC"],baseSpring:n=.03,baseFriction:r=.9,baseThickness:i=30,offsetFactor:o=.05,maxAge:s=500,pointCount:a=50,speedMultiplier:l=.6,enableFade:c=!1,enableShaderEffect:d=!1,effectAmplitude:u=2,backgroundColor:h=[0,0,0,0],domEl:p=document.body,eventEl:f=window,rect:g={width:window.innerWidth,height:window.innerHeight}})=>((0,t.useEffect)((()=>{const t=new Hh({dpr:window.devicePixelRatio||2,alpha:!0}),m=t.gl;Array.isArray(h)&&4===h.length?m.clearColor(h[0],h[1],h[2],h[3]):m.clearColor(0,0,0,0),m.canvas.style.position="absolute",m.canvas.style.top="0",m.canvas.style.left="0",m.canvas.style.width="100%",m.canvas.style.height="100%",m.canvas.style.pointerEvents="none",m.canvas.style.zIndex=9999,m.canvas.className="b-blocks-cursor-ribbon",p.contains(m.canvas)||p.appendChild(m.canvas);const b=new ep,v=[];function y(){const e=window.devicePixelRatio||1;let n,r;n=g.width,r=g.height,m.canvas.width=n*e,m.canvas.height=r*e,t.setSize(n,r),v.forEach((e=>{e.polyline&&e.polyline.mesh&&e.polyline.mesh.program&&e.polyline.mesh.program.uniforms.uResolution&&(e.polyline.mesh.program.uniforms.uResolution.value=[n,r]),e.polyline.resize()}))}const w=new Fh;function x(e){let t,n;e.changedTouches&&e.changedTouches.length?(t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY):(t=e.clientX,n=e.clientY);let r,i,o=0,s=0;r=g.width,i=g.height,g.top&&(s=g.top,n-=s),g.left&&(o=g.left,t-=o),w.set(t/r*2-1,n/i*-2+1,0)}f.addEventListener("mousemove",x),f.addEventListener("touchstart",x),f.addEventListener("touchmove",x),window.addEventListener("resize",y);const k=(e.length-1)/2;let _,C;_=g.width,C=g.height,e.forEach(((e,t)=>{const s=n+.05*(Math.random()-.5),l=r+.05*(Math.random()-.5),h=i+3*(Math.random()-.5),p=new Fh((t-k)*o+.01*(Math.random()-.5),.1*(Math.random()-.5),0),f={spring:s,friction:l,mouseVelocity:new Fh,mouseOffset:p},g=a,y=[];for(let e=0;e<g;e++)y.push(new Fh);f.points=y,f.polyline=new Mp(m,{points:y,vertex:"\n precision highp float;\n attribute vec3 position;\n attribute vec3 next;\n attribute vec3 prev;\n attribute vec2 uv;\n attribute float side;\n uniform vec2 uResolution;\n uniform float uDPR;\n uniform float uThickness;\n uniform float uTime;\n uniform float uEnableShaderEffect;\n uniform float uEffectAmplitude;\n varying vec2 vUV;\n vec4 getPosition() {\n vec4 current = vec4(position, 1.0);\n vec2 aspect = vec2(uResolution.x / uResolution.y, 1.0);\n vec2 nextScreen = next.xy * aspect;\n vec2 prevScreen = prev.xy * aspect;\n vec2 tangent = normalize(nextScreen - prevScreen);\n vec2 normal = vec2(-tangent.y, tangent.x);\n normal /= aspect;\n normal *= mix(1.0, 0.1, pow(abs(uv.y - 0.5) * 2.0, 2.0));\n float dist = length(nextScreen - prevScreen);\n normal *= smoothstep(0.0, 0.02, dist);\n float pixelWidthRatio = 1.0 / (uResolution.y / uDPR);\n float pixelWidth = current.w * pixelWidthRatio;\n normal *= pixelWidth * uThickness;\n current.xy -= normal * side;\n if(uEnableShaderEffect > 0.5) {\n current.xy += normal * sin(uTime + current.x * 10.0) * uEffectAmplitude;\n }\n return current;\n }\n void main() {\n vUV = uv;\n gl_Position = getPosition();\n }\n ",fragment:"\n precision highp float;\n uniform vec3 uColor;\n uniform float uOpacity;\n uniform float uEnableFade;\n varying vec2 vUV;\n void main() {\n float fadeFactor = 1.0;\n if(uEnableFade > 0.5) {\n fadeFactor = 1.0 - smoothstep(0.0, 1.0, vUV.y);\n }\n gl_FragColor = vec4(uColor, uOpacity * fadeFactor);\n }\n ",uniforms:{uColor:{value:new Ep(e)},uThickness:{value:h},uOpacity:{value:1},uTime:{value:0},uEnableShaderEffect:{value:d?1:0},uEffectAmplitude:{value:u},uEnableFade:{value:c?1:0},uResolution:{value:[_,C]},uDPR:{value:window.devicePixelRatio||1}}}),f.polyline.mesh.setParent(b),v.push(f)})),y();const T=new Fh;let S,E=performance.now();return function e(){S=requestAnimationFrame(e);const n=performance.now(),r=n-E;E=n,v.forEach((e=>{T.copy(w).add(e.mouseOffset).sub(e.points[0]).multiply(e.spring),e.mouseVelocity.add(T).multiply(e.friction),e.points[0].add(e.mouseVelocity);for(let t=1;t<e.points.length;t++)if(isFinite(s)&&s>0){const n=s/(e.points.length-1),i=Math.min(1,r*l/n);e.points[t].lerp(e.points[t-1],i)}else e.points[t].lerp(e.points[t-1],.9);e.polyline.mesh.program.uniforms.uTime&&(e.polyline.mesh.program.uniforms.uTime.value=.001*n),e.polyline.updateGeometry()})),t.render({scene:b})}(),()=>{f.removeEventListener("mousemove",x),f.removeEventListener("touchstart",x),f.removeEventListener("touchmove",x),window.removeEventListener("resize",y),cancelAnimationFrame(S),m.canvas&&m.canvas.parentNode===p&&p.removeChild(m.canvas)}}),[e,n,r,i,o,s,a,l,c,d,u,h,p]),null),Np=e=>{const{title:t,description:n,icon:r}=e;return(0,Zt.jsxs)("div",{className:"customCursorPlaygroundCard",children:[r,(0,Zt.jsx)("h3",{className:"customCursorPlaygroundCardTitle",children:t}),(0,Zt.jsx)("p",{className:"customCursorPlaygroundCardDesc",children:n})]})},jp=[{icon:(0,Zt.jsx)("svg",{fill:"#20b759",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",children:(0,Zt.jsx)("path",{d:"M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L304 89.4c-3-5-6.3-9.9-9.8-14.6c-5.7-7.6-15.7-10.1-24.7-7.1l-28.2 9.3c-10.7-8.8-23-16-36.2-20.9L199 27.1c-1.9-9.3-9.1-16.7-18.5-17.8C173.9 8.4 167.2 8 160.4 8h-.7c-6.8 0-13.5 .4-20.1 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9L50.5 67.8c-9-3-19-.5-24.7 7.1c-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6c-3.7 8.7-.9 18.6 6.2 25l22.2 19.8C32.6 161.9 32 168.9 32 176s.6 14.1 1.7 20.9L11.5 216.7c-7.1 6.3-9.9 16.2-6.2 25c2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6c5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8c6.7 .8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1c3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5c3.7-8.7 .9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM112 176a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM504.7 500.5c6.3 7.1 16.2 9.9 25 6.2c5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8c7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2l29.1-6.1c9.3-1.9 16.7-9.1 17.8-18.5c.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5L583.9 307c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7c-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6c-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1 .6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2c-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9c-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2L315.1 313c-9.3 1.9-16.7 9.1-17.8 18.5c-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7c4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6c8.7 3.7 18.6 .9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 304a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"})}),title:"Customize",description:"Customize every block as per your design requirement. All blocks have their settings."},{icon:(0,Zt.jsx)("svg",{fill:"#0c8af0",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",id:"columns-gap",children:(0,Zt.jsx)("path",{d:"M6 1v3H1V1zM1 0a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1V1a1 1 0 0 0-1-1zm14 12v3h-5v-3zm-5-1a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1zM6 8v7H1V8zM1 7a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1zm14-6v7h-5V1zm-5-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1V1a1 1 0 0 0-1-1z"})}),title:"Layouts",description:"Some of the blocks have layouts/themes. It provides the custom pre-designed structure of the block."},{icon:(0,Zt.jsx)("svg",{fill:"#f96c96",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,Zt.jsx)("path",{d:"M91.7 96C106.3 86.8 116 70.5 116 52C116 23.3 92.7 0 64 0S12 23.3 12 52c0 16.7 7.8 31.5 20 41l0 3 0 352 0 64 64 0 0-64 373.6 0c14.6 0 26.4-11.8 26.4-26.4c0-3.7-.8-7.3-2.3-10.7L432 272l61.7-138.9c1.5-3.4 2.3-7 2.3-10.7c0-14.6-11.8-26.4-26.4-26.4L91.7 96z"})}),title:"Icon Library",description:"Include custom icon library. Implements in which blocks are needed."}],Ip=`${location.origin}/wp-admin/admin.php?page=b-blocks#/pricing`,Op=(location.origin,({info:e})=>{const{nonce:n}=e,{data:r,isLoading:i}=$n("csb_get_adv_scrollbar_cursor_data_settings",{nonce:n}),[o,s]=(0,t.useState)(null),a=((e=2e3)=>{const[n,r]=(0,t.useState)(!1),i=(0,t.useRef)(null);return(0,t.useEffect)((()=>{document.hasFocus()&&r(!0);const t=()=>{clearTimeout(i.current),r(!0)},n=()=>{i.current=setTimeout((()=>r(!1)),e)};return document.body.addEventListener("mouseenter",t),document.body.addEventListener("mouseleave",n),()=>{document.body.removeEventListener("mouseenter",t),document.body.removeEventListener("mouseleave",n),clearTimeout(i.current)}}),[e]),n})(),l=(0,t.useRef)(null),{enableCursor:c=!0}=o||{};(0,t.useEffect)((()=>{const e=e=>{const{data:t}=e.detail||{};s(t)};return window.addEventListener("bBlocksCursorPlayground",e),()=>{window.removeEventListener("bBlocksCursorPlayground",e)}}),[]),(0,t.useEffect)((()=>{!i&&r&&s(r)}),[r,i]);const d={...fa(o?.shape?.customImg?.img)&&"predefined"==o?.source&&{cursor:`url(${o?.shape?.customImg?.img}), pointer`},..."shape"==o?.source&&{cursor:c?"auto":"none"},..."customUrl"==o?.source&&{cursor:`url(${o?.shape?.customImg?.url}), pointer`}};return(0,Zt.jsxs)("div",{className:"custom-cursor-playground-container",children:[(0,Zt.jsx)("h3",{className:"custom-cursor-title",children:"Preview Area - Please move the mouse pointer inside the box below and click to see the changes."}),(0,Zt.jsxs)("div",{className:"custom-cursor-playground",ref:l,style:d,children:[(0,Zt.jsxs)("div",{className:"custom-cursor-playground-contents-wrapper",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("h2",{className:"custom-cursor-playground-contents-title",children:["bBlocks – The ultimate block collection",(0,Zt.jsx)("br",{})," and Gutenberg page builder."]}),(0,Zt.jsxs)("p",{className:"custom-cursor-playground-contents-description",children:[(0,Zt.jsx)("a",{href:"https://bblockswp.com",target:"_blank",rel:"noreferrer",className:"cursorPlaygroundLink",children:"bBlocks"})," is a Gutenberg addon that powers up your Block editor. It can be used as a WordPress page-building tool, which contains a variety of beautiful blocks. It is optimized for performance and provides you with maximum options to achieve your design goals."]}),(0,Zt.jsxs)("div",{className:"custom-cursor-playground-contents-button-wrapper",children:[(0,Zt.jsx)("a",{href:"https://bblockswp.com/#demos",target:"_blank",rel:"noreferrer",className:"bPlDashboardPrimaryBtn",children:"See Demo"}),(0,Zt.jsx)("a",{href:Ip,target:"_blank",rel:"noreferrer",className:"bPlDashboardSecondBtn",children:"Buy Now"})]})]}),(0,Zt.jsx)("div",{className:"custom-cursor-playground-contents-features",children:jp.map(((e,t)=>(0,Zt.jsx)(Np,{...e},t)))})]}),"shape"==o?.source&&(0,Zt.jsxs)(Zt.Fragment,{children:["ribbon"===o?.shape?.type&&a&&(0,t.createElement)(Rp,{...o?.shape?.ribbon,domEl:l.current,eventEl:l.current,rect:l.current.getBoundingClientRect(),key:o?.shape?.type}),o?.shape?.type&&"ribbon"!==o?.shape?.type&&a?(0,Zt.jsx)($h,{shape:o?.shape,domEl:l.current,eventEl:l.current,rect:l.current.getBoundingClientRect(),isDashboard:!0},o?.shape?.type):null]}),o?.effect?.type&&(0,Zt.jsx)(ka,{domEl:l.current,effect:o?.effect},o?.effect?.type)]})]})}),Dp=((0,_n.__)("Cursor","b-blocks"),(0,_n.__)("Click Effect","b-blocks"),(0,_n.__)("Cursor","b-blocks"),(0,_n.__)("Shape Style","b-blocks"),(0,_n.__)("Effect Type","b-blocks"),(0,_n.__)("Effect Style","b-blocks"),e=>[{label:(0,_n.__)("Default","b-blocks"),value:"cursor",default:!0},{label:(0,_n.__)("Customizable Shape","b-blocks"),value:"shape"},{label:(0,_n.__)("Most Popular "+(e?"":"(Pro)"),"b-blocks"),value:"predefined"},{label:(0,_n.__)("Custom Url "+(e?"":"(Pro)"),"b-blocks"),value:"customUrl"}]),Pp=["matrix","cyberpunk","analog","digital","glow","gradient","image","magnetic","neon","pixelated","ribbon","ring","sketch","spotlight","splash","text"],Fp=((0,_n.__)("Default","b-blocks"),(0,_n.__)("Unset","b-blocks"),(0,_n.__)("Follow","b-blocks"),(0,_n.__)("Blob","b-blocks"),(0,_n.__)("Dot","b-blocks"),(0,_n.__)("Elastic","b-blocks"),(0,_n.__)("Glitch Matrix","b-blocks"),(0,_n.__)("Glitch Cyberpunk","b-blocks"),(0,_n.__)("Glitch Analog","b-blocks"),(0,_n.__)("Glitch Digital Error","b-blocks"),(0,_n.__)("Glow","b-blocks"),(0,_n.__)("Gradient","b-blocks"),(0,_n.__)("Image","b-blocks"),(0,_n.__)("Magnetic","b-blocks"),(0,_n.__)("Neon","b-blocks"),(0,_n.__)("Pixelated","b-blocks"),(0,_n.__)("Ribbon","b-blocks"),(0,_n.__)("Ring","b-blocks"),(0,_n.__)("Sketch","b-blocks"),(0,_n.__)("Spotlight","b-blocks"),(0,_n.__)("Splash","b-blocks"),(0,_n.__)("Text","b-blocks"),(0,_n.__)("None","b-blocks"),(0,_n.__)("Unset","b-blocks"),(0,_n.__)("Spark","b-blocks"),(0,_n.__)("Spark Simple","b-blocks"),(0,_n.__)("Starburst","b-blocks"),(0,_n.__)("Radial","b-blocks"),(0,_n.__)("Explosion","b-blocks"),(0,_n.__)("Ripple Circle","b-blocks"),(0,_n.__)("Ripple Double","b-blocks"),(0,_n.__)("Ripple Wave","b-blocks"),(0,_n.__)("Ripple Pulse","b-blocks"),(0,_n.__)("Low","b-blocks"),(0,_n.__)("Medium","b-blocks"),(0,_n.__)("High","b-blocks"),[{label:(0,_n.__)("Slow","b-blocks"),value:"slow"},{label:(0,_n.__)("Medium","b-blocks"),value:"medium"},{label:(0,_n.__)("Fast","b-blocks"),value:"fast"}]),zp=[{label:(0,_n.__)("Normal","b-blocks"),value:"normal"},{label:(0,_n.__)("Multiply","b-blocks"),value:"multiply"},{label:(0,_n.__)("Screen","b-blocks"),value:"screen"},{label:(0,_n.__)("Overlay","b-blocks"),value:"overlay"},{label:(0,_n.__)("Difference","b-blocks"),value:"difference"}],Bp=[{label:(0,_n.__)("Ease Out","b-blocks"),value:"ease-out",default:!0},{label:(0,_n.__)("Ease In","b-blocks"),value:"ease-in"},{label:(0,_n.__)("Ease In Out","b-blocks"),value:"ease-in-out"},{label:(0,_n.__)("Linear","b-blocks"),value:"linear"}],Hp=({value:e,onChange:t})=>{const{spark:n={},sparkSimple:r={},starburst:i={},radial:o={},explosion:s={},rippleCircle:a={},rippleDouble:l={},rippleWave:c={},ripplePulse:d={}}=e||{};return(0,Zt.jsxs)(Zt.Fragment,{children:["spark"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:"Spark Size",value:parseInt(n?.size)>=0?parseInt(n?.size):12,onChange:n=>t(Vo(e,n,"spark","size")),min:0,max:100,step:1}),(0,Zt.jsx)(Wo,{label:"Color",value:n?.color??"#ff0000",onChange:n=>t(Vo(e,n,"spark","color"))}),(0,Zt.jsx)(Xn.RangeControl,{label:"Lines Count",value:parseInt(n?.sparkCount)>=0?parseInt(n?.sparkCount):8,onChange:n=>t(Vo(e,n,"spark","sparkCount")),min:0,max:100,step:1}),(0,Zt.jsx)(Xn.RangeControl,{label:"Radius",value:parseInt(n?.sparkRadius)>=0?parseInt(n?.sparkRadius):15,onChange:n=>t(Vo(e,n,"spark","sparkRadius")),min:0,max:100,step:1}),(0,Zt.jsx)(Xn.RangeControl,{label:"Extra Scale",value:Number(n?.extraScale),onChange:n=>t(Vo(e,n,"spark","extraScale")),min:0,max:5,step:.1}),(0,Zt.jsx)(Xn.RangeControl,{label:"Duration (s)",value:Number(n?.duration)>=0?Number((Number(n?.duration)/1e3).toFixed(2)):.4,onChange:n=>t(Vo(e,1e3*n,"spark","duration")),min:0,max:10,step:.05}),(0,Zt.jsx)(Xn.SelectControl,{label:(0,_n.__)("Easing","advanced-scrollbar"),labelPosition:"edge",value:n?.easing,onChange:n=>t(Vo(e,n,"spark","easing")),options:Bp})]}),"sparkSimple"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:"Spark Size",value:parseInt(r?.size)>=0?parseInt(r?.size):40,onChange:n=>t(Vo(e,n,"sparkSimple","size")),min:0,max:300,step:1}),(0,Zt.jsx)(Wo,{label:"Color",value:r?.color??"#ff6b6b",onChange:n=>t(Vo(e,n,"sparkSimple","color"))}),(0,Zt.jsx)(Xn.RangeControl,{label:"Duration (s)",value:Number(r?.duration)>=0?Number((Number(r?.duration)/1e3).toFixed(2)):.8,onChange:n=>t(Vo(e,1e3*n,"sparkSimple","duration")),min:0,max:10,step:.05}),(0,Zt.jsx)(Xn.SelectControl,{label:(0,_n.__)("Easing","advanced-scrollbar"),labelPosition:"edge",value:r?.easing,onChange:n=>t(Vo(e,n,"sparkSimple","easing")),options:Bp})]}),"starburst"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:"Starburst Size",value:parseInt(i?.size)>=0?parseInt(i?.size):60,onChange:n=>t(Vo(e,n,"starburst","size")),min:0,max:300,step:1}),(0,Zt.jsx)(Wo,{label:"Color",value:i?.color??"#ff9a8b",onChange:n=>t(Vo(e,n,"starburst","color"))}),(0,Zt.jsx)(Xn.RangeControl,{label:"Duration (s)",value:Number(i?.duration)>=0?Number(i?.duration):1,onChange:n=>t(Vo(e,n,"starburst","duration")),min:0,max:10,step:.05})]}),"radial"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:"Radial Size",value:parseInt(o?.size)>=0?parseInt(o?.size):80,onChange:n=>t(Vo(e,n,"radial","size")),min:0,max:300,step:1}),(0,Zt.jsx)(Wo,{label:"Color",value:o?.color??"#74ebd5",onChange:n=>t(Vo(e,n,"radial","color"))}),(0,Zt.jsx)(Xn.RangeControl,{label:"Duration (s)",value:Number(o?.duration)>=0?Number(o?.duration):1.2,onChange:n=>t(Vo(e,n,"radial","duration")),min:0,max:10,step:.05})]}),"explosion"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:"Explosion Size",value:parseInt(s?.size)>=0?parseInt(s?.size):100,onChange:n=>t(Vo(e,n,"explosion","size")),min:0,max:400,step:1}),(0,Zt.jsx)(Wo,{label:"Color",value:s?.color??"#ffb347",onChange:n=>t(Vo(e,n,"explosion","color"))}),(0,Zt.jsx)(Xn.RangeControl,{label:"Duration (s)",value:Number(s?.duration)>=0?Number(s?.duration):1.5,onChange:n=>t(Vo(e,n,"explosion","duration")),min:0,max:10,step:.05}),(0,Zt.jsx)(Xn.RangeControl,{label:"Delay (s)",value:Number(s?.delay)>=0?Number(s?.delay):.05,onChange:n=>t(Vo(e,n,"explosion","delay")),min:0,max:2,step:.05})]}),"rippleCircle"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:"Ripple Circle Size",value:parseInt(a?.size)>=0?parseInt(a?.size):100,onChange:n=>t(Vo(e,n,"rippleCircle","size")),min:0,max:500,step:1}),(0,Zt.jsx)(Xn.RangeControl,{label:"Duration (s)",value:Number(a?.duration)>=0?Number(a?.duration):1,onChange:n=>t(Vo(e,n,"rippleCircle","duration")),min:0,max:10,step:.05}),(0,Zt.jsx)(Wo,{label:"Background",value:a?.background??"#7d7dff33",onChange:n=>t(Vo(e,n,"rippleCircle","background"))}),(0,Zt.jsx)(Xn.RangeControl,{label:"Border Width",value:Number(a?.borderWidth)>=0?Number(a?.borderWidth):2,onChange:n=>t(Vo(e,n,"rippleCircle","borderWidth")),min:0,max:10,step:1}),(0,Zt.jsx)(Wo,{label:"Border Color",value:a?.borderColor??"#7d7dff80",onChange:n=>t(Vo(e,n,"rippleCircle","borderColor"))})]}),"rippleDouble"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:"Ripple Double Size",value:parseInt(l?.size)>=0?parseInt(l?.size):100,onChange:n=>t(Vo(e,n,"rippleDouble","size")),min:0,max:500,step:1}),(0,Zt.jsx)(Xn.RangeControl,{label:"Duration (s)",value:Number(l?.duration)>=0?Number(l?.duration):1,onChange:n=>t(Vo(e,n,"rippleDouble","duration")),min:0,max:10,step:.05}),(0,Zt.jsx)(Xn.RangeControl,{label:"Border Width",value:Number(l?.borderWidth)>=0?Number(l?.borderWidth):2,onChange:n=>t(Vo(e,n,"rippleDouble","borderWidth")),min:0,max:10,step:1}),(0,Zt.jsx)(Wo,{label:"First Background",value:l?.background??"#ff6b6b1a",onChange:n=>t(Vo(e,n,"rippleDouble","background"))}),(0,Zt.jsx)(Wo,{label:"Second Background",value:l?.secondaryBgColor??"#6b6bff1a",onChange:n=>t(Vo(e,n,"rippleDouble","secondaryBgColor"))}),(0,Zt.jsx)(Wo,{label:"First Border Color",value:l?.borderColor??"#ff6b6b80",onChange:n=>t(Vo(e,n,"rippleDouble","borderColor"))}),(0,Zt.jsx)(Wo,{label:"Second Border Color",value:l?.secondaryBorderColor??"#6b6bff80",onChange:n=>t(Vo(e,n,"rippleDouble","secondaryBorderColor"))})]}),"rippleWave"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:"Ripple Wave Size",value:parseInt(c?.size)>=0?parseInt(c?.size):150,onChange:n=>t(Vo(e,n,"rippleWave","size")),min:0,max:400,step:1}),(0,Zt.jsx)(Xn.RangeControl,{label:"Duration (s)",value:Number(c?.duration)>=0?Number(c?.duration):1.5,onChange:n=>t(Vo(e,n,"rippleWave","duration")),min:0,max:10,step:.05}),(0,Zt.jsx)(Xn.RangeControl,{label:"Border Width",value:Number(c?.borderWidth)>=0?Number(c?.borderWidth):2,onChange:n=>t(Vo(e,n,"rippleWave","borderWidth")),min:0,max:10,step:1}),(0,Zt.jsx)(Wo,{label:"Wave 1 Border Color",value:c?.borderColor??"#61dbfbcc",onChange:n=>t(Vo(e,n,"rippleWave","borderColor"))}),(0,Zt.jsx)(Wo,{label:"Wave 2 Border Color",value:c?.secondaryBorderColor??"#82e6b4cc",onChange:n=>t(Vo(e,n,"rippleWave","secondaryBorderColor"))}),(0,Zt.jsx)(Wo,{label:"Wave 3 Border Color",value:c?.tertiaryBorderColor??"#ffca69cc",onChange:n=>t(Vo(e,n,"rippleWave","tertiaryBorderColor"))})]}),"ripplePulse"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:"Ripple Pulse Size",value:parseInt(d?.size)>=0?parseInt(d?.size):100,onChange:n=>t(Vo(e,n,"ripplePulse","size")),min:0,max:500,step:1}),(0,Zt.jsx)(Wo,{label:"Background",value:d?.background??"#3b83f6cc",onChange:n=>t(Vo(e,n,"ripplePulse","background"))}),(0,Zt.jsx)(Xn.RangeControl,{label:"Duration (s)",value:Number(d?.duration)>=0?Number(d?.duration):1.5,onChange:n=>t(Vo(e,n,"ripplePulse","duration")),min:0,max:10,step:.05}),(0,Zt.jsx)(Xn.RangeControl,{label:"Border Width",value:Number(d?.borderWidth)>=0?Number(d?.borderWidth):0,onChange:n=>t(Vo(e,n,"ripplePulse","borderWidth")),min:0,max:10,step:1}),(0,Zt.jsx)(Wo,{label:"Border Color",value:d?.borderColor??"#3b83f6cc",onChange:n=>t(Vo(e,n,"ripplePulse","borderColor"))})]})]})},Wp=[{name:"shape",title:(0,_n.__)("Cursor","advanced-scrollbar")},{name:"effect",title:(0,_n.__)("Click Effect","advanced-scrollbar")}],Up=[{name:"type",title:(0,_n.__)("Shape","advanced-scrollbar")},{name:"style",title:(0,_n.__)("Shape Style","advanced-scrollbar")}],Vp=[{label:(0,_n.__)("Default","advanced-scrollbar"),value:"",default:!0},{label:(0,_n.__)("Follow","advanced-scrollbar"),value:"follow"},{label:(0,_n.__)("Blob","advanced-scrollbar"),value:"blob"},{label:(0,_n.__)("Dot","advanced-scrollbar"),value:"dot"},{label:(0,_n.__)("Elastic","advanced-scrollbar"),value:"elastic"},{label:(0,_n.__)("Glitch Matrix","advanced-scrollbar"),value:"matrix"},{label:(0,_n.__)("Glitch Cyberpunk","advanced-scrollbar"),value:"cyberpunk"},{label:(0,_n.__)("Glitch Analog","advanced-scrollbar"),value:"analog"},{label:(0,_n.__)("Glitch Digital Error","advanced-scrollbar"),value:"digital"},{label:(0,_n.__)("Glow","advanced-scrollbar"),value:"glow"},{label:(0,_n.__)("Gradient","advanced-scrollbar"),value:"gradient"},{label:(0,_n.__)("Image","advanced-scrollbar"),value:"image"},{label:(0,_n.__)("Magnetic","advanced-scrollbar"),value:"magnetic"},{label:(0,_n.__)("Neon","advanced-scrollbar"),value:"neon"},{label:(0,_n.__)("Pixelated","advanced-scrollbar"),value:"pixelated"},{label:(0,_n.__)("Ribbon","advanced-scrollbar"),value:"ribbon"},{label:(0,_n.__)("Ring","advanced-scrollbar"),value:"ring"},{label:(0,_n.__)("Sketch","advanced-scrollbar"),value:"sketch"},{label:(0,_n.__)("Spotlight","advanced-scrollbar"),value:"spotlight"},{label:(0,_n.__)("Splash","advanced-scrollbar"),value:"splash"},{label:(0,_n.__)("Text","advanced-scrollbar"),value:"text"}],qp=[{label:(0,_n.__)("None","advanced-scrollbar"),value:"",default:!0},{label:(0,_n.__)("Spark","advanced-scrollbar"),value:"spark"},{label:(0,_n.__)("Spark Simple","advanced-scrollbar"),value:"sparkSimple"},{label:(0,_n.__)("Starburst","advanced-scrollbar"),value:"starburst"},{label:(0,_n.__)("Radial","advanced-scrollbar"),value:"radial"},{label:(0,_n.__)("Explosion","advanced-scrollbar"),value:"explosion"},{label:(0,_n.__)("Ripple Circle","advanced-scrollbar"),value:"rippleCircle"},{label:(0,_n.__)("Ripple Double","advanced-scrollbar"),value:"rippleDouble"},{label:(0,_n.__)("Ripple Wave","advanced-scrollbar"),value:"rippleWave"},{label:(0,_n.__)("Ripple Pulse","advanced-scrollbar"),value:"ripplePulse"}],Gp=({value:e,onChange:t,isPremium:n,setIsProModalOpen:r})=>(0,Zt.jsx)(Zt.Fragment,{children:(0,Zt.jsx)(ua,{className:"mt10",label:"Effect Type",labelPosition:"edge",value:e?.type,onChange:n=>t({...e,type:n}),options:qp,proValues:["radial","explosion","rippleCircle","rippleDouble","rippleWave","ripplePulse"],isPremium:n,setIsProModalOpen:r})}),Yp=({bBlocksCursor:e,setBBlocksCursor:t,isPremium:n,setIsProModalOpen:r})=>(0,Zt.jsx)(Zt.Fragment,{children:(0,Zt.jsx)(Xn.TabPanel,{className:"bPlTabPanel mini mt10",activeClass:"activeTab",tabs:[{name:"effect",title:"Effect Type"},{name:"style",title:"Effect Style"}],children:i=>(0,Zt.jsxs)(Zt.Fragment,{children:["effect"==i.name&&(0,Zt.jsx)(Gp,{isPremium:n,setIsProModalOpen:r,value:e?.effect||{},onChange:n=>t({...e,effect:n})}),"style"==i.name&&(0,Zt.jsx)(Hp,{value:e?.effect||{},onChange:n=>t({...e,effect:n})})]})})}),Kp=({value:e,onChange:n})=>{const[r,i]=(0,t.useState)("follow"),{ribbon:o}=e,s=""!==e?.gradient?.colors&&Array.isArray(e?.gradient?.colors)?e?.gradient?.colors:["#f97316","#f59e0b","#facc15"];function a(){return"#"+Math.floor(16777215*Math.random()).toString(16).padStart(6,"0")}const l=o?.colors||["#FC8EAC"];return(0,Zt.jsxs)(Zt.Fragment,{children:["follow"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:"Cursor Size",labelPosition:"edge",value:parseInt(e?.follow?.size)>=0?parseInt(e?.follow?.size):40,onChange:t=>n(Vo(e,t+"px","follow","size"))}),(0,Zt.jsx)(Uo,{label:"",value:r,onChange:i,options:[{value:"follow",label:(0,_n.__)("Follow Cursor","advanced-scrollbar")},{value:"inner",label:(0,_n.__)("Inner Cursor","advanced-scrollbar")}]}),"follow"===r&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Go,{label:"Cursor Color",value:e?.follow?.followBg??"#f59f0b94",onChange:t=>n(Vo(e,t,"follow","followBg"))}),(0,Zt.jsx)(Wo,{label:"Border Color",value:e?.follow?.followBorderColor??"#f59f0b94",onChange:t=>n(Vo(e,t,"follow","followBorderColor"))}),(0,Zt.jsx)(Xn.RangeControl,{label:"Border Width",value:parseInt(e?.follow?.followBorderWidth)>=0?parseInt(e?.follow?.followBorderWidth):1,defaultValue:1,resetFallbackValue:1,min:0,max:10,step:1,onChange:t=>n(Vo(e,t+"px","follow","followBorderWidth"))})]}),"inner"===r&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Go,{label:"Cursor Color",value:e?.follow?.innerBg??"#f974167c",onChange:t=>n(Vo(e,t,"follow","innerBg"))}),(0,Zt.jsx)(Wo,{label:"Border Color",value:e?.follow?.innerBorderColor??"#f974167c",onChange:t=>n(Vo(e,t,"follow","innerBorderColor"))}),(0,Zt.jsx)(Xn.RangeControl,{label:"Border Width",value:parseInt(e?.follow?.innerBorderWidth)>=0?parseInt(e?.follow?.innerBorderWidth):1,defaultValue:1,resetFallbackValue:1,min:0,max:10,step:1,onChange:t=>n(Vo(e,t+"px","follow","innerBorderWidth"))})]})]}),"blob"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Blob Size","advanced-scrollbar"),value:parseInt(e?.blob?.blobSize)>=0?parseInt(e?.blob?.blobSize):125,onChange:t=>n(Vo(e,t,"blob","blobSize")),min:0,max:600,step:1}),(0,Zt.jsx)(Wo,{label:(0,_n.__)("Blob Color","advanced-scrollbar"),value:e?.blob?.fillColor??"#00f0ff",onChange:t=>n(Vo(e,t,"blob","fillColor"))})]}),"dot"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:"Cursor Size",value:Number(e?.dot?.size)>=0?Number(e?.dot?.size):12,onChange:t=>n(Vo(e,t,"dot","size")),min:0,max:30,step:1}),(0,Zt.jsx)(Go,{label:"Cursor Color",value:e?.dot?.color??"#3B82F6",onChange:t=>n(Vo(e,t,"dot","color"))})]}),"elastic"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:"Cursor Size",value:parseInt(e?.elastic?.size)>=0?parseInt(e?.elastic?.size):40,onChange:t=>n(Vo(e,t,"elastic","size")),min:0,max:150,step:1}),(0,Zt.jsx)(Wo,{label:"Cursor Color",value:e?.elastic?.color??"#EF4444",onChange:t=>n(Vo(e,t,"elastic","color"))}),(0,Zt.jsx)(Xn.RangeControl,{label:"Border Width",value:parseInt(e?.elastic?.borderWidth)>=0?parseInt(e?.elastic?.borderWidth):2,onChange:t=>n(Vo(e,t+"px","elastic","borderWidth")),min:1,max:10,step:1})]}),"digital"===e?.type&&(0,Zt.jsx)(Xp,{value:e?.digital,onChange:t=>n(Vo(e,t,"digital")),size:20,primaryColor:"#ff4040",secondaryColor:"#40ff40",tertiaryColor:"#4040ff"}),"analog"===e?.type&&(0,Zt.jsx)(Xp,{value:e?.analog,onChange:t=>n(Vo(e,t,"analog")),size:20,primaryColor:"#ffffff",secondaryColor:"#ff4444",tertiaryColor:"#4444ff"}),"cyberpunk"===e?.type&&(0,Zt.jsx)(Xp,{value:e?.cyberpunk,onChange:t=>n(Vo(e,t,"cyberpunk")),size:20,primaryColor:"#ff0080",secondaryColor:"#00ffff",tertiaryColor:"#ff0000"}),"matrix"===e?.type&&(0,Zt.jsx)(Xp,{value:e?.matrix,onChange:t=>n(Vo(e,t,"matrix")),size:20,primaryColor:"#00ff00",secondaryColor:"#40ff40",tertiaryColor:"#80ff80"}),"glow"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:"Cursor Size",value:Number(e?.glow?.size)>=0?Number(e?.glow?.size):50,onChange:t=>n(Vo(e,t,"glow","size")),min:0,max:200,step:1}),(0,Zt.jsx)(Xn.RangeControl,{label:"Inner Cursor Size",value:Number(e?.glow?.innerSize)>=0?Number(e?.glow?.innerSize):10,onChange:t=>n(Vo(e,t,"glow","innerSize")),min:0,max:150,step:1}),(0,Zt.jsx)(Wo,{label:(0,_n.__)("Cursor Color","advanced-scrollbar"),value:e?.glow?.color??"#F97316",onChange:t=>n(Vo(e,t,"glow","color"))})]}),"gradient"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:"Cursor Size",value:parseInt(e?.gradient?.size)>=0?parseInt(e?.gradient?.size):50,onChange:t=>n(Vo(e,t,"gradient","size")),min:0,max:200,step:1}),s.map(((t,r)=>(0,Zt.jsxs)(Xn.Flex,{gap:5,align:"center",justify:"space-between",children:[(0,Zt.jsx)(Xi,{className:"whiteSpaceNoWrap",children:`Color ${r+1}`}),(0,Zt.jsxs)(Xn.Flex,{gap:5,align:"center",justify:"end",children:[(0,Zt.jsx)(Wo,{label:"",value:t,onChange:t=>{const i=[...s];i[r]=t,n(Vo(e,i,"gradient","colors"))}}),(0,Zt.jsx)(Xn.Button,{className:"gradientBtn-delete",icon:"trash",onClick:()=>{const t=[...s];t.splice(r,1),n(Vo(e,t,"gradient","colors"))}})]})]},r))),(0,Zt.jsx)(Xn.Flex,{justify:"center",children:(0,Zt.jsx)(Xn.Button,{className:"mt10",isPrimary:!0,onClick:()=>n(Vo(e,[...s,a()],"gradient","colors")),children:"Add Color"})})]}),"image"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:"Cursor Size",value:parseInt(e?.image?.size)>=0?parseInt(e?.image?.size):80,onChange:t=>n(Vo(e,t,"image","size")),min:0,max:200,step:1}),(0,Zt.jsx)(Xn.RangeControl,{label:"Border Radius",value:parseInt(e?.image?.rounded)>=0?parseInt(e?.image?.rounded):8,onChange:t=>n(Vo(e,t+"px","image","rounded")),min:0,max:400,step:1})]}),"magnetic"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:"Cursor Size",value:parseInt(e?.magnetic?.size)>=0?parseInt(e?.magnetic?.size):40,onChange:t=>n(Vo(e,t,"magnetic","size")),min:0,max:200,step:1}),(0,Zt.jsx)(Wo,{label:(0,_n.__)("background Color","advanced-scrollbar"),value:e?.magnetic?.backgroundColor??"#f59e0b1a",onChange:t=>n(Vo(e,t,"magnetic","backgroundColor"))}),(0,Zt.jsx)(Wo,{label:(0,_n.__)("Border Color","advanced-scrollbar"),value:e?.magnetic?.borderColor??"#F59E0B",onChange:t=>n(Vo(e,t,"magnetic","borderColor"))}),(0,Zt.jsx)(Xn.RangeControl,{label:"Border Width",value:parseInt(e?.magnetic?.borderWidth)>=0?parseInt(e?.magnetic?.borderWidth):2,onChange:t=>n(Vo(e,t,"magnetic","borderWidth")),min:0,max:30,step:1})]}),"neon"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:"Cursor Size",value:parseInt(e?.neon?.size)>=0?parseInt(e?.neon?.size):30,onChange:t=>n(Vo(e,t,"neon","size")),min:0,max:200,step:1}),(0,Zt.jsx)(Wo,{label:(0,_n.__)("Color","advanced-scrollbar"),value:e?.neon?.color??"#08F7FE",onChange:t=>n(Vo(e,t,"neon","color"))})]}),"ribbon"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[l.map(((t,r)=>(0,Zt.jsxs)(Xn.Flex,{gap:5,align:"center",justify:"space-between",children:[(0,Zt.jsx)(Xi,{className:"whiteSpaceNoWrap",children:`Color ${r+1}`}),(0,Zt.jsxs)(Xn.Flex,{gap:5,align:"center",justify:"end",children:[(0,Zt.jsx)(Wo,{label:"",value:t,onChange:t=>{const i=[...l];i[r]=(e=>{const t=e.match(/[\d.]+/g);if(!t||t.length<3)throw new Error("Invalid RGBA string");const[n,r,i,o]=t.map(Number),s=e=>{const t=e.toString(16);return 1===t.length?"0"+t:t};let a=`#${s(n)}${s(r)}${s(i)}`;return void 0!==o&&o<1&&(a+=s(Math.round(255*o))),a})(t),n(Vo(e,i,"ribbon","colors"))}}),l?.length>1&&(0,Zt.jsx)(Xn.Button,{className:"gradientBtn-delete",icon:"trash",onClick:()=>{const t=[...l];t.splice(r,1),n(Vo(e,t,"ribbon","colors"))}})]})]},r))),(0,Zt.jsx)(Xn.Flex,{justify:"center",children:(0,Zt.jsx)(Xn.Button,{className:"mt10",isPrimary:!0,onClick:()=>n(Vo(e,[...l,a()],"ribbon","colors")),children:"Add Color"})})]}),"pixelated"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:"Cursor Size",value:parseInt(e?.pixelated?.size)>=0?parseInt(e?.pixelated?.size):60,onChange:t=>n(Vo(e,t,"pixelated","size")),min:6,max:250,step:1}),(0,Zt.jsx)(Xn.RangeControl,{label:"Pixel Size",value:parseInt(e?.pixelated?.pixelSize)>=0?parseInt(e?.pixelated?.pixelSize):6,onChange:t=>n(Vo(e,t,"pixelated","pixelSize")),min:0,max:150,step:1}),(0,Zt.jsx)(Go,{label:(0,_n.__)("Color","advanced-scrollbar"),value:e?.pixelated?.color??"linear-gradient(135deg, #fecda5 0%, #fe2d2d 50%, #6b003e 100%)",onChange:t=>n(Vo(e,t,"pixelated","color"))})]}),"ring"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Cursor Size","advanced-scrollbar"),value:parseInt(e?.ring?.size)>=0?parseInt(e?.ring?.size):40,onChange:t=>n(Vo(e,t,"ring","size")),min:0,max:250,step:1}),(0,Zt.jsx)(Wo,{label:(0,_n.__)("Border Color","advanced-scrollbar"),value:e?.ring?.borderColor??"#10B981",onChange:t=>n(Vo(e,t,"ring","borderColor"))}),(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Border Size","advanced-scrollbar"),value:parseInt(e?.ring?.borderWidth)>=0?parseInt(e?.ring?.borderWidth):2,onChange:t=>n(Vo(e,t,"ring","borderWidth")),min:0,max:20,step:1})]}),"sketch"===e?.type&&(0,Zt.jsx)(Zt.Fragment,{children:(0,Zt.jsx)(Wo,{label:(0,_n.__)("Color","advanced-scrollbar"),value:e?.sketch?.color??"#000000",onChange:t=>n(Vo(e,t,"sketch","color"))})}),"spotlight"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Cursor Size","advanced-scrollbar"),value:parseInt(e?.spotlight?.size)>=0?parseInt(e?.spotlight?.size):150,onChange:t=>n(Vo(e,t,"spotlight","size")),min:0,max:500,step:1}),(0,Zt.jsx)(Wo,{label:(0,_n.__)("Color","advanced-scrollbar"),value:e?.spotlight?.color??"#ff0000",onChange:t=>n(Vo(e,t,"spotlight","color"))})]}),"splash"===e?.type&&(0,Zt.jsx)(Zt.Fragment,{children:(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Cursor Size","advanced-scrollbar"),value:Number(e?.splash?.size)>=0?Number(e?.splash?.size):.2,onChange:t=>n(Vo(e,t,"splash","size")),min:0,max:1,step:.01})}),"text"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Cursor Size","advanced-scrollbar"),value:parseInt(e?.text?.size)>=0?parseInt(e?.text?.size):80,onChange:t=>n(Vo(e,t,"text","size")),min:0,max:1e3,step:1}),(0,Zt.jsx)(Go,{label:(0,_n.__)("Background Color","advanced-scrollbar"),value:e?.text?.backgroundColor??"#3b82f6",onChange:t=>n(Vo(e,t,"text","backgroundColor"))}),(0,Zt.jsx)(Wo,{label:(0,_n.__)("Text Color","advanced-scrollbar"),value:e?.text?.textColor??"#ffffff",onChange:t=>n(Vo(e,t,"text","textColor"))})]})]})},Xp=({value:e={},onChange:t,size:n,primaryColor:r,secondaryColor:i,tertiaryColor:o})=>(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:"Cursor Size",value:parseInt(e?.size)>=0?parseInt(e?.size):n,onChange:n=>t(Vo(e,n,"size")),min:0,max:100,step:1}),(0,Zt.jsx)(Wo,{label:"Primary Color",value:e?.primaryColor??r,onChange:n=>t(Vo(e,n,"primaryColor"))}),(0,Zt.jsx)(Wo,{label:"Secondary Color",value:e?.secondaryColor??i,onChange:n=>t(Vo(e,n,"secondaryColor"))}),(0,Zt.jsx)(Wo,{label:"Tertiary Color",value:e?.tertiaryColor??o,onChange:n=>t(Vo(e,n,"tertiaryColor"))})]}),Qp=({value:e,onChange:t,isPremium:n,isProModalOpen:r,setIsProModalOpen:i})=>(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)(Xn.Flex,{align:"center",children:[(0,Zt.jsx)(Xi,{className:"",children:(0,_n.__)("Select Shape Type","advanced-scrollbar")}),(0,Zt.jsx)(ua,{className:"mt10",label:"",labelPosition:"edge",options:Vp,value:e?.type,onChange:n=>t(Vo(e,n,"type")),isPremium:n,proValues:Pp,setIsProModalOpen:i,isProModalOpen:r})]}),"follow"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Cursor Duration","advanced-scrollbar"),value:e?.follow?.duration>=0?e?.follow?.duration:.6,defaultValue:.6,resetFallbackValue:.6,min:0,max:5,step:.1,onChange:n=>t(Vo(e,n,"follow","duration"))}),(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Inner Cursor Duration","advanced-scrollbar"),value:e?.follow?.innerDuration>=0?e?.follow?.innerDuration:.1,defaultValue:.1,resetFallbackValue:.1,min:0,max:5,step:.1,onChange:n=>t(Vo(e,n,"follow","innerDuration"))})]}),"blob"===e?.type&&(0,Zt.jsx)(Zt.Fragment,{children:(0,Zt.jsx)(Xn.SelectControl,{label:(0,_n.__)("Blob Type","advanced-scrollbar"),labelPosition:"edge",value:e?.blob?.blobType||"circle",onChange:n=>t(Vo(e,n,"blob","blobType")),options:[{label:(0,_n.__)("Circle","advanced-scrollbar"),value:"circle"},{label:(0,_n.__)("Square","advanced-scrollbar"),value:"square"}]})}),"dot"===e?.type&&(0,Zt.jsx)(Zt.Fragment,{children:(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Cursor Duration","advanced-scrollbar"),value:e?.dot?.duration>=0?e?.dot?.duration:.1,defaultValue:.1,resetFallbackValue:.1,min:0,max:5,step:.1,onChange:n=>t(Vo(e,n,"dot","duration"))})}),"elastic"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Cursor Duration","advanced-scrollbar"),value:e?.elastic?.duration>=0?e?.elastic?.duration:.5,defaultValue:.5,resetFallbackValue:.5,min:0,max:5,step:.1,onChange:n=>t(Vo(e,n,"elastic","duration"))}),(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Inner Cursor Duration","advanced-scrollbar"),value:e?.elastic?.innerDuration>=0?e?.elastic?.innerDuration:.1,defaultValue:.1,resetFallbackValue:.1,min:0,max:5,step:.1,onChange:n=>t(Vo(e,n,"elastic","innerDuration"))})]}),"digital"===e?.type&&(0,Zt.jsx)(Zp,{blendMode:"multiply",speed:"fast",intensity:"high",value:e?.digital,onChange:n=>t(Vo(e,n,"digital"))}),"analog"===e?.type&&(0,Zt.jsx)(Zp,{blendMode:"normal",speed:"slow",intensity:"medium",value:e?.analog,onChange:n=>t(Vo(e,n,"analog"))}),"cyberpunk"===e?.type&&(0,Zt.jsx)(Zp,{blendMode:"normal",speed:"medium",intensity:"medium",value:e?.cyberpunk,onChange:n=>t(Vo(e,n,"cyberpunk"))}),"matrix"===e?.type&&(0,Zt.jsx)(Zp,{blendMode:"normal",speed:"fast",intensity:"high",value:e?.matrix,onChange:n=>t(Vo(e,n,"matrix"))}),"glow"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Cursor Duration","advanced-scrollbar"),value:Number(e?.glow?.duration)>=0?e?.glow?.duration:.5,defaultValue:.5,resetFallbackValue:.5,min:0,max:5,step:.1,onChange:n=>t(Vo(e,n,"glow","duration"))}),(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Pulse Speed","advanced-scrollbar"),value:Number(e?.glow?.pulseSpeed)>=0?e?.glow?.pulseSpeed:1.5,defaultValue:1.5,resetFallbackValue:1.5,min:0,max:10,step:.1,onChange:n=>t(Vo(e,n,"glow","pulseSpeed"))})]}),"gradient"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Cursor Duration","advanced-scrollbar"),value:parseInt(e?.gradient?.duration)>=0?e?.gradient?.duration:.5,min:0,max:5,step:.1,onChange:n=>t(Vo(e,n,"gradient","duration"))}),(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Rotation Speed","advanced-scrollbar"),value:e?.gradient?.rotationSpeed>=0?e?.gradient?.rotationSpeed:60,defaultValue:60,resetFallbackValue:60,min:0,max:60,step:1,onChange:n=>t(Vo(e,n,"gradient","rotationSpeed"))})]}),"image"===e?.type&&(0,Zt.jsx)(Qo,{height:"100%",width:"100%",value:e?.image?.img,onChange:n=>t(Vo(e,n,"image","img"))}),"magnetic"===e?.type&&(0,Zt.jsx)(Zt.Fragment,{children:(0,Zt.jsx)(Xn.TextareaControl,{label:(0,_n.__)("Target Selector","advanced-scrollbar"),value:e?.magnetic?.targetedEl||'button, a, textarea, select, [role="button"], [type="submit"]',onChange:n=>t(Vo(e,n,"magnetic","targetedEl"))})}),"neon"===e?.type&&(0,Zt.jsx)(Zt.Fragment,{children:(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Cursor Duration","advanced-scrollbar"),value:e?.neon?.duration>=0?e?.neon?.duration:.2,defaultValue:.2,resetFallbackValue:.2,min:0,max:5,step:.1,onChange:n=>t(Vo(e,n,"neon","duration"))})}),"pixelated"===e?.type&&(0,Zt.jsx)(Zt.Fragment,{children:(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Cursor Duration","advanced-scrollbar"),value:e?.pixelated?.duration>=0?e?.pixelated?.duration:.15,defaultValue:.15,resetFallbackValue:.15,min:0,max:5,step:.05,onChange:n=>t(Vo(e,n,"pixelated","duration"))})}),"ribbon"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Ribbon Thickness","advanced-scrollbar"),value:e?.ribbon?.baseThickness>=0?e?.ribbon?.baseThickness:30,min:0,max:300,step:1,onChange:n=>t(Vo(e,n,"ribbon","baseThickness"))}),(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Ribbon Trail Length","advanced-scrollbar"),value:e?.ribbon?.maxAge>=0?e?.ribbon?.maxAge:500,min:400,max:1e3,step:1,onChange:n=>t(Vo(e,n,"ribbon","maxAge"))}),(0,Zt.jsx)(Xn.ToggleControl,{label:(0,_n.__)("Enable Trail Fade","advanced-scrollbar"),value:e?.ribbon?.enableFade,checked:e?.ribbon?.enableFade,onChange:n=>t(Vo(e,n,"ribbon","enableFade"))}),(0,Zt.jsx)(Xn.ToggleControl,{className:"mt10",label:(0,_n.__)("Enable Wavy Effect","advanced-scrollbar"),value:e?.ribbon?.enableShaderEffect,checked:e?.ribbon?.enableShaderEffect,onChange:n=>t(Vo(e,n,"ribbon","enableShaderEffect"))}),e?.ribbon?.enableShaderEffect&&(0,Zt.jsx)(Xn.RangeControl,{className:"mt10",label:(0,_n.__)("Wave Intensity","advanced-scrollbar"),value:e?.ribbon?.effectAmplitude>=0?e?.ribbon?.effectAmplitude:2,min:0,max:10,step:1,onChange:n=>t(Vo(e,n,"ribbon","effectAmplitude"))})]}),"ring"===e?.type&&(0,Zt.jsx)(Zt.Fragment,{children:(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Cursor Duration","advanced-scrollbar"),value:e?.ring?.duration>=0?e?.ring?.duration:.2,defaultValue:.2,resetFallbackValue:.2,min:0,max:5,step:.05,onChange:n=>t(Vo(e,n,"ring","duration"))})}),"sketch"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Trail Width","advanced-scrollbar"),value:e?.sketch?.trailWidth>=0?e?.sketch?.trailWidth:3,defaultValue:3,resetFallbackValue:3,min:0,max:10,step:1,onChange:n=>t(Vo(e,n,"sketch","trailWidth"))}),(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Trail Length","advanced-scrollbar"),value:e?.sketch?.trailLength>=0?e?.sketch?.trailLength:50,defaultValue:50,resetFallbackValue:50,min:0,max:400,step:1,onChange:n=>t(Vo(e,n,"sketch","trailLength"))})]}),"text"===e?.type&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.TextControl,{label:(0,_n.__)("Cursor Custom Text","advanced-scrollbar"),value:e?.text?.cursorText,onChange:n=>t(Vo(e,n,"text","cursorText"))}),(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Cursor Duration","advanced-scrollbar"),value:e?.text?.duration>=0?e?.text?.duration:.2,defaultValue:.2,resetFallbackValue:.2,min:0,max:5,step:.1,onChange:n=>t(Vo(e,n,"text","duration"))})]})]}),Zp=({value:e={},onChange:t,speed:n,blendMode:r})=>(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.RangeControl,{label:(0,_n.__)("Cursor Tail","advanced-scrollbar"),value:Number(e?.tailLength)>=0?Number(e?.tailLength):8,defaultValue:8,min:0,max:50,step:1,onChange:n=>t(Vo(e,n,"tailLength")),resetFallbackValue:8}),(0,Zt.jsx)(Xn.SelectControl,{className:"mt10",label:(0,_n.__)("Cursor Speed","advanced-scrollbar"),labelPosition:"edge",value:e?.speed||n,onChange:n=>t(Vo(e,n,"speed")),options:Fp}),(0,Zt.jsx)(Xn.SelectControl,{className:"mt10",label:(0,_n.__)("Cursor Blend Mode","advanced-scrollbar"),labelPosition:"edge",value:e?.blendMode||r,onChange:n=>t(Vo(e,n,"blendMode")),options:zp})]}),Jp=({bBlocksCursor:e,setBBlocksCursor:t,isPremium:n,isProModalOpen:r,setIsProModalOpen:i})=>{const{enableCursor:o=!0}=e||{};return(0,Zt.jsx)(Zt.Fragment,{children:(0,Zt.jsx)(Xn.TabPanel,{className:"bPlTabPanel small mt10",activeClass:"activeTab",tabs:Up,children:s=>(0,Zt.jsxs)(Zt.Fragment,{children:["type"==s.name&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.ToggleControl,{className:"mt10",defaultValue:!0,label:(0,_n.__)("Enable Default Cursor","b-blocks"),checked:o,onChange:n=>t({...e,enableCursor:n})}),(0,Zt.jsx)(Qp,{value:e?.shape||{},onChange:n=>t({...e,shape:n}),isProModalOpen:r,setIsProModalOpen:i,isPremium:n})]}),"style"==s.name&&(0,Zt.jsx)(Kp,{value:e?.shape||{},onChange:n=>t({...e,shape:n})})]})})})},ef=({bBlocksCursor:e,setBBlocksCursor:t,dirUrl:n,isPremium:r,isProModalOpen:i,setIsProModalOpen:o})=>(0,Zt.jsx)("div",{className:"mt20",children:(0,Zt.jsx)(Xn.Flex,{justify:"center",children:(0,Zt.jsx)(da,{label:(0,_n.__)("Select Cursor","b-blocks"),help:"",className:"bBlocks-radioPremium-control",selected:e?.shape?.customImg?.img,options:[{label:(0,Zt.jsx)("img",{src:n+"assets/cursorImg/cursor1.png"}),value:`${n}assets/cursorImg/cursor1.png`},{label:(0,Zt.jsx)("img",{src:n+"assets/cursorImg/cursor2.png"}),value:`${n}assets/cursorImg/cursor2.png`},{label:(0,Zt.jsx)("img",{src:n+"assets/cursorImg/cursor3.png"}),value:`${n}assets/cursorImg/cursor3.png`},{label:(0,Zt.jsx)("img",{src:n+"assets/cursorImg/cursor4.png"}),value:`${n}assets/cursorImg/cursor4.png`}],onChange:n=>t({...e,shape:{...e?.shape,customImg:{...e?.shape?.customImg,img:n}}}),isProModalOpen:i,isPremium:r,setIsProModalOpen:o,labelPosition:"left"})})}),tf=({info:e,isProModalOpen:n,setIsProModalOpen:r,isPremium:i})=>{const{dirUrl:o,nonce:s}=e,[a,l]=(0,t.useState)(null),{data:c,isLoading:d,saveData:u}=$n("bBlocks_cursor_data_settings",{nonce:s});return(0,t.useEffect)((()=>{d||!c||a||l(c)}),[d]),(0,t.useEffect)((()=>{("predefined"!==!a?.source||"customUrl"!==!a?.source||i)&&window.dispatchEvent(new CustomEvent("bBlocksCursorPlayground",{detail:{data:a}}))}),[JSON.stringify(a)]),(0,Zt.jsxs)("div",{className:"custom-cursor-settings-container",children:[(0,Zt.jsx)("h3",{className:"custom-cursor-title",children:"Settings"}),(0,Zt.jsxs)("div",{className:"custom-cursor-settings",children:[(0,Zt.jsx)(Xn.TabPanel,{className:"bPlTabPanel",activeClass:"activeTab",tabs:Wp,children:e=>(0,Zt.jsxs)(Zt.Fragment,{children:["shape"==e.name&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Xn.SelectControl,{className:"mt10",label:(0,_n.__)("Select Cursor Source","b-blocks"),labelPosition:"edge",options:Dp(i),value:a?.source,onChange:e=>l({...a,source:e})}),"shape"===a?.source&&(0,Zt.jsx)(Jp,{bBlocksCursor:a,setBBlocksCursor:l,isPremium:i,isProModalOpen:n,setIsProModalOpen:r}),"predefined"===a?.source&&(0,Zt.jsx)(ef,{bBlocksCursor:a,setBBlocksCursor:l,dirUrl:o,isPremium:i,isProModalOpen:n,setIsProModalOpen:r}),"customUrl"===a?.source&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(la,{label:(0,_n.__)("Choose Cursor Image","b-blocks"),value:a?.shape?.customImg?.url,onChange:e=>l({...a,shape:{...a?.shape,customImg:{...a?.shape?.customImg,url:e}}}),Component:Ko,isPremium:i,setIsProModalOpen:r}),(0,Zt.jsxs)("span",{className:"mt10",children:[" ",(0,Zt.jsx)("small",{children:(0,Zt.jsx)("i",{children:"Provide a cursor image in PNG format by either entering a direct URL to the file or selecting an existing file from the media library. The image must be a PNG between 10px and 128px, with a transparent background being preferred."})})]})]})]}),"effect"==e.name&&(0,Zt.jsx)(Yp,{bBlocksCursor:a,setBBlocksCursor:l,isPremium:i,isProModalOpen:n,setIsProModalOpen:r})]})}),(0,Zt.jsx)(Xn.Button,{onClick:()=>{("predefined"!==!a?.source||"customUrl"!==!a?.source||i)&&u({bBlocksCustomCursor:JSON.stringify(a),save:!0})},className:"custom-cursor-dashboard-button "+(d?"btnSaving":""),variant:"primary",children:d?"Saving...":"Save"})]})]})},nf=({info:e})=>{const[n,r]=(0,t.useState)(!1),{isPremium:i}=(()=>{const{data:e}=Ks("bBlocksUtils"),{data:n=null,refetch:r,isLoading:i=!0}=$n("bBlocksPipeChecker",{_wpnonce:e?.nonce},!0),o=!i&&n?.isPipe||!1;return(0,t.useEffect)((()=>{r()}),[e]),{isPremium:o,isLoading:i}})();return(0,Zt.jsxs)("div",{className:"b-blocks-custom-cursor-container",children:[(0,Zt.jsxs)(aa,{isProModalOpen:n,setIsProModalOpen:r,link:Ip,children:[(0,Zt.jsxs)("li",{children:[" ",(0,Zt.jsx)("strong",{children:(0,_n.__)("Select Cursor Source: ","b-blocks")}),(0,_n.__)("Choose a predefined or custom cursor style from available options.","b-blocks")]}),(0,Zt.jsxs)("li",{children:[" ",(0,Zt.jsx)("strong",{children:(0,_n.__)("Cursor Shape: ","b-blocks")}),(0,_n.__)("Select from various styles to customize the cursor's appearance and movement behavior.","b-blocks")]}),(0,Zt.jsxs)("li",{children:[" ",(0,Zt.jsx)("strong",{children:(0,_n.__)("Select Cursor Image: ","b-blocks")}),(0,_n.__)("Select an image to customize the cursor appearance.","b-blocks")]}),(0,Zt.jsxs)("li",{children:[" ",(0,Zt.jsx)("strong",{children:(0,_n.__)("Custom URL: ","b-blocks")}),(0,_n.__)("Specify a custom URL or upload an image to personalize the cursor.","b-blocks")]}),(0,Zt.jsxs)("li",{children:[" ",(0,Zt.jsx)("strong",{children:(0,_n.__)("Click Effect: ","b-blocks")}),(0,_n.__)("Choose from various dynamic effects like sparkle, starburst, radial, explosion, ripple, and wave to enhance click interactions.","b-blocks")]})]}),(0,Zt.jsxs)("div",{className:"custom-cursor-content-wrapper",children:[(0,Zt.jsx)(tf,{info:e,isProModalOpen:n,setIsProModalOpen:r,isPremium:i}),(0,Zt.jsx)(Op,{info:e})]})]})},rf=()=>(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("input",{type:"checkbox",id:"b-blocks-admin-pro-modal-toggle"}),(0,Zt.jsx)("div",{className:"b-blocks-admin-proModal-wrapper",children:(0,Zt.jsxs)("div",{className:"b-blocks-promodal-content-wrapper",children:[(0,Zt.jsxs)("div",{className:"b-blocks-promodal-content",children:[(0,Zt.jsx)(Xs,{className:"b-blocks-promodal-crounIcon"}),(0,Zt.jsx)("h2",{className:"b-blocks-promodal-title",children:"Unlock Premium Blocks!"}),(0,Zt.jsx)("p",{className:"b-blocks-promodal-description",children:"Get access to exclusive blocks to enhance your website's design."}),(0,Zt.jsx)(Jt,{href:Ip,children:"Upgrade Now"})]}),(0,Zt.jsx)("label",{htmlFor:"b-blocks-admin-pro-modal-toggle",className:"b-blocks-promodal-close",children:"×"})]})})]}),of=new CustomEvent("dataFetched"),sf=e=>{const{freemius:n,info:r,hasPro:i,isPremium:o}=e,[s,a]=(0,t.useState)([]),[l,c]=(0,t.useState)(""),{data:d}=Ks("bBlocksUtils"),{data:u=null,refetch:h,saveData:p,isLoading:f,error:g}=$n("bBlocksDisabledBlocks",{_wpnonce:d?.nonce},!1);(0,t.useEffect)((()=>{h()}),[d]),(0,t.useEffect)((()=>{!f&&u&&(a(u||[]),window.dispatchEvent(of))}),[u,f,g]);const m=Pi.reduce(((e,t)=>e+(Array.isArray(t.children)?t.children.filter((e=>"published"===e.status||!e.status)).length:"published"!==t.status&&t.status?0:1)),0),b=e=>{c("loading"),a(e);try{p({data:JSON.stringify(e)}),c("success")}catch(e){c("error")}const t=setTimeout((()=>c("")),300);return()=>clearTimeout(t)};return(0,Zt.jsxs)(Ye,{children:[(0,Zt.jsx)(Qt,{position:"bottom-center"}),(0,Zt.jsxs)(Ce,{children:[(0,Zt.jsxs)(ke,{path:"/",element:(0,Zt.jsx)(kn,{...e}),children:[(0,Zt.jsx)(ke,{index:!0,element:(0,Zt.jsx)(we,{to:"welcome",replace:!0})}),(0,Zt.jsx)(ke,{path:"welcome",element:(0,Zt.jsx)(Vi,{...e,allBlocks:Pi,disabledBlocks:s,status:l,onChange:b})}),(0,Zt.jsx)(ke,{path:"blocks",element:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Zn,{...e,pageTitle:`All Blocks (${m})`,allBlocks:Pi,disabledBlocks:s,status:l,onChange:b}),!o&&(0,Zt.jsx)(rf,{})]})}),(0,Zt.jsx)(ke,{path:"cursor",element:(0,Zt.jsx)(nf,{info:r})}),(0,Zt.jsx)(ke,{path:"settings",element:(0,Zt.jsx)(sa,{info:r})}),!o&&(0,Zt.jsx)(ke,{path:"feature-comparison",element:(0,Zt.jsx)(En,{plans:["free","pro"],...e})}),!o&&(0,Zt.jsx)(ke,{path:"pricing",element:(0,Zt.jsx)(Sn,{...e,pricingInfo:Ki,freemius:n,options:{}})}),i&&(0,Zt.jsx)(ke,{path:"activation",element:(0,Zt.jsx)(Ln,{...e})}),(0,Zt.jsx)(ke,{path:"our-plugins",element:(0,Zt.jsx)(zn,{...e})})]}),(0,Zt.jsx)(ke,{path:"*",element:(0,Zt.jsx)(we,{to:"/welcome",replace:!0})})]})]})};document.addEventListener("DOMContentLoaded",(()=>{const t=document.querySelector("#bBlocksDashboard");if(!t)return;let n;try{n=JSON.parse(t.dataset.info)}catch(e){console.error(e)}(0,e.createRoot)(t).render((0,Zt.jsx)(sf,{...Yi(n)})),t.removeAttribute("data-info")}))})()})(); |