@budibase/server 2.13.9 → 2.13.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*
|
|
17
17
|
* Copyright (c) 2015, Jon Schlinkert.
|
|
18
18
|
* Licensed under the MIT License.
|
|
19
|
-
*/function Dv(e,t){return{}.hasOwnProperty.call(e,t)}var Hv=Object.prototype.toString,Ov=function(e){if(void 0===e)return"undefined";if(null===e)return"null";if(!0===e||!1===e||e instanceof Boolean)return"boolean";if("string"==typeof e||e instanceof String)return"string";if("number"==typeof e||e instanceof Number)return"number";if("function"==typeof e||e instanceof Function)return"function";if(void 0!==Array.isArray&&Array.isArray(e))return"array";if(e instanceof RegExp)return"regexp";if(e instanceof Date)return"date";var t=Hv.call(e);return"[object RegExp]"===t?"regexp":"[object Date]"===t?"date":"[object Arguments]"===t?"arguments":"[object Error]"===t?"error":em(e)?"buffer":"[object Set]"===t?"set":"[object WeakSet]"===t?"weakset":"[object Map]"===t?"map":"[object WeakMap]"===t?"weakmap":"[object Symbol]"===t?"symbol":"[object Int8Array]"===t?"int8array":"[object Uint8Array]"===t?"uint8array":"[object Uint8ClampedArray]"===t?"uint8clampedarray":"[object Int16Array]"===t?"int16array":"[object Uint16Array]"===t?"uint16array":"[object Int32Array]"===t?"int32array":"[object Uint32Array]"===t?"uint32array":"[object Float32Array]"===t?"float32array":"[object Float64Array]"===t?"float64array":"object"},Pv={configurable:"boolean",enumerable:"boolean",writable:"boolean"},Rv=function(e,t){return"object"===function(e){var t=typeof e;return"undefined"===t?"undefined":null===e?"null":!0===e||!1===e||e instanceof Boolean?"boolean":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?void 0!==e.constructor.name&&"Generator"===e.constructor.name.slice(0,9)?"generatorfunction":"function":void 0!==Array.isArray&&Array.isArray(e)?"array":e instanceof RegExp?"regexp":e instanceof Date?"date":"[object RegExp]"===(t=Lv.call(e))?"regexp":"[object Date]"===t?"date":"[object Arguments]"===t?"arguments":"[object Error]"===t?"error":"[object Promise]"===t?"promise":function(e){return e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}(e)?"buffer":"[object Set]"===t?"set":"[object WeakSet]"===t?"weakset":"[object Map]"===t?"map":"[object WeakMap]"===t?"weakmap":"[object Symbol]"===t?"symbol":"[object Map Iterator]"===t?"mapiterator":"[object Set Iterator]"===t?"setiterator":"[object String Iterator]"===t?"stringiterator":"[object Array Iterator]"===t?"arrayiterator":"[object Int8Array]"===t?"int8array":"[object Uint8Array]"===t?"uint8array":"[object Uint8ClampedArray]"===t?"uint8clampedarray":"[object Int16Array]"===t?"int16array":"[object Uint16Array]"===t?"uint16array":"[object Int32Array]"===t?"int32array":"[object Uint32Array]"===t?"uint32array":"[object Float32Array]"===t?"float32array":"[object Float64Array]"===t?"float64array":"object"}(e)&&("get"in e?function(e,t){if("string"==typeof t)return void 0!==Object.getOwnPropertyDescriptor(e,t);if("object"!==Iv(e))return!1;if(Dv(e,"value")||Dv(e,"writable"))return!1;if(!Dv(e,"get")||"function"!=typeof e.get)return!1;if(Dv(e,"set")&&"function"!=typeof e[r]&&void 0!==e[r])return!1;for(var r in e)if(Bv.hasOwnProperty(r)&&Iv(e[r])!==Bv[r]&&void 0!==e[r])return!1;return!0}(e,t):function(e,t){if("object"!==Ov(e))return!1;if("string"==typeof t)return void 0!==Object.getOwnPropertyDescriptor(e,t);if(!("value"in e)&&!("writable"in e))return!1;for(var r in e)if("value"!==r&&Pv.hasOwnProperty(r)&&Ov(e[r])!==Pv[r]&&void 0!==e[r])return!1;return!0}(e,t))},Vv=function(e,t,r){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("expected an object or function.");if("string"!=typeof t)throw new TypeError("expected `prop` to be a string.");return Rv(r)&&("set"in r||"get"in r)?Object.defineProperty(e,t,r):Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:r})},Nv=Object.prototype.toString,Fv=function(e){if(void 0===e)return"undefined";if(null===e)return"null";if(!0===e||!1===e||e instanceof Boolean)return"boolean";if("string"==typeof e||e instanceof String)return"string";if("number"==typeof e||e instanceof Number)return"number";if("function"==typeof e||e instanceof Function)return"function";if(void 0!==Array.isArray&&Array.isArray(e))return"array";if(e instanceof RegExp)return"regexp";if(e instanceof Date)return"date";var t=Nv.call(e);return"[object RegExp]"===t?"regexp":"[object Date]"===t?"date":"[object Arguments]"===t?"arguments":"[object Error]"===t?"error":em(e)?"buffer":"[object Set]"===t?"set":"[object WeakSet]"===t?"weakset":"[object Map]"===t?"map":"[object WeakMap]"===t?"weakmap":"[object Symbol]"===t?"symbol":"[object Int8Array]"===t?"int8array":"[object Uint8Array]"===t?"uint8array":"[object Uint8ClampedArray]"===t?"uint8clampedarray":"[object Int16Array]"===t?"int16array":"[object Uint16Array]"===t?"uint16array":"[object Int32Array]"===t?"int32array":"[object Uint32Array]"===t?"uint32array":"[object Float32Array]"===t?"float32array":"[object Float64Array]"===t?"float64array":"object"},jv=function(e,t,r,n){if(qv(t)||"function"==typeof t||(n=r,r=t,t=e),!qv(e)&&"function"!=typeof e)throw new TypeError("expected the first argument to be an object");if(!qv(t)&&"function"!=typeof t)throw new TypeError("expected provider to be an object");if("string"!=typeof n&&(n=r),"string"!=typeof r)throw new TypeError("expected key to be a string");if(!(r in t))throw new Error('property "'+r+'" does not exist');var i=Object.getOwnPropertyDescriptor(t,r);i&&Object.defineProperty(e,n,i)};function qv(e){return"[object Object]"==={}.toString.call(e)}function Uv(e){return"object"===Fv(e)||"function"==typeof e}function Wv(e,t){var r=(t=Xv(t)).length;if(Uv(e)){for(var n in e)if(t.indexOf(n)>-1)return!0;return Wv(Gv(e),t)}if(Array.isArray(e)){for(var i=e;r--;)if(i.indexOf(t[r])>-1)return!0;return!1}throw new TypeError("expected an array or object.")}function Xv(e){return e?Array.isArray(e)?e:[e]:[]}function Gv(e){return function(e){return Uv(e)&&void 0!==e.constructor}(e)?Object.getOwnPropertyNames(e):[]}var Yv=function(e,t,r){if(!Uv(e))throw new TypeError("expected receiving object to be an object.");if(!Uv(t))throw new TypeError("expected providing object to be an object.");var n=Gv(t),i=Object.keys(t),a=n.length;for(r=Xv(r);a--;){var o=n[a];Wv(i,o)?Vv(e,o,t[o]):o in e||Wv(r,o)||jv(e,t,o)}};Yv.has=Wv;var Zv=function e(t,r){if("function"!=typeof t)throw new TypeError("expected Parent to be a function.");return function(n,i){if("function"!=typeof n)throw new TypeError("expected Ctor to be a function.");if(sm.inherits(n,t),Yv(n,t),"object"==typeof i){var a=Object.create(i);for(var o in a)n.prototype[o]=a[o]}Vv(n.prototype,"_parent_",{configurable:!0,set:function(){},get:function(){return t.prototype}}),"function"==typeof r&&r(n,t),n.extend=e(n,r)}},Kv=Mc((function(e){var t=e.exports;t.isObject=function(e){return Np(e)||"function"==typeof e},t.has=function(e,r){var n=(r=t.arrayify(r)).length;if(t.isObject(e)){for(var i in e)if(r.indexOf(i)>-1)return!0;var a=t.nativeKeys(e);return t.has(a,r)}if(Array.isArray(e)){for(var o=e;n--;)if(o.indexOf(r[n])>-1)return!0;return!1}throw new TypeError("expected an array or object.")},t.hasAll=function(e,r){for(var n=(r=t.arrayify(r)).length;n--;)if(!t.has(e,r[n]))return!1;return!0},t.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},t.noop=function(){},t.identity=function(e){return e},t.hasConstructor=function(e){return t.isObject(e)&&void 0!==e.constructor},t.nativeKeys=function(e){if(!t.hasConstructor(e))return[];var r=Object.getOwnPropertyNames(e);return"caller"in e&&r.push("caller"),r},t.getDescriptor=function(e,r){if(!t.isObject(e))throw new TypeError("expected an object.");if("string"!=typeof r)throw new TypeError("expected key to be a string.");return Object.getOwnPropertyDescriptor(e,r)},t.copyDescriptor=function(e,r,n){if(!t.isObject(e))throw new TypeError("expected receiving object to be an object.");if(!t.isObject(r))throw new TypeError("expected providing object to be an object.");if("string"!=typeof n)throw new TypeError("expected name to be a string.");var i=t.getDescriptor(r,n);i&&Object.defineProperty(e,n,i)},t.copy=function(e,r,n){if(!t.isObject(e))throw new TypeError("expected receiving object to be an object.");if(!t.isObject(r))throw new TypeError("expected providing object to be an object.");var i,a=Object.getOwnPropertyNames(r),o=Object.keys(r),s=a.length;for(n=t.arrayify(n);s--;)i=a[s],t.has(o,i)?Vv(e,i,r[i]):i in e||t.has(n,i)||t.copyDescriptor(e,r,i)},t.inherit=function(e,r,n){if(!t.isObject(e))throw new TypeError("expected receiving object to be an object.");if(!t.isObject(r))throw new TypeError("expected providing object to be an object.");var i=[];for(var a in r)i.push(a),e[a]=r[a];i=i.concat(t.arrayify(n));var o=r.prototype||r,s=e.prototype||e;t.copy(s,o,i)},t.extend=function(){return Zv.apply(null,arguments)},t.bubble=function(e,r){r=r||[],e.bubble=function(n,i){Array.isArray(i)&&(r=hv([],r,i));for(var a=r.length,o=-1;++o<a;){var s=r[o];e.on(s,n.emit.bind(n,s))}t.bubble(n,r)}}}));function Jv(e){var t=e?Av.namespace(e):Av,r=[];function n(e,r){if(!(this instanceof n))return new n(e,r);t.call(this,e),this.is("base"),this.initBase(e,r)}return sm.inherits(n,t),nv(n),n.prototype.initBase=function(t,i){this.options=$v({},this.options,i),this.cache=this.cache||{},this.define("registered",{}),e&&(this[e]={}),this.define("_callbacks",this._callbacks),Np(t)&&this.visit("set",t),n.run(this,"use",r)},n.prototype.is=function(e){if("string"!=typeof e)throw new TypeError("expected name to be a string");return this.define("is"+function(e){if("string"!=typeof e)throw new TypeError("expected a string.");return 1===(e=e.replace(/([A-Z])/g," $1")).length?e.toUpperCase():(e=(e=e.replace(/^[\W_]+|[\W_]+$/g,"").toLowerCase()).charAt(0).toUpperCase()+e.slice(1)).replace(/[\W_]+(\w|$)/g,(function(e,t){return t.toUpperCase()}))}(e),!0),this.define("_name",e),this.define("_appname",e),this},n.prototype.isRegistered=function(e,t){return!!this.registered.hasOwnProperty(e)||(!1!==t&&(this.registered[e]=!0,this.emit("plugin",e)),!1)},n.prototype.use=function(e){return e.call(this,this),this},n.prototype.define=function(e,t){return Np(e)?this.visit("define",e):(rv(this,e,t),this)},n.prototype.mixin=function(e,t){return n.prototype[e]=t,this},n.prototype.mixins=n.prototype.mixins||[],Object.defineProperty(n.prototype,"base",{configurable:!0,get:function(){return this.parent?this.parent.base:this}}),rv(n,"use",(function(e){return r.push(e),n})),rv(n,"run",(function(e,t,r){for(var i=r.length,a=0;i--;)e[t](r[a++]);return n})),rv(n,"extend",Kv.extend(n,(function(e,t){return e.prototype.mixins=e.prototype.mixins||[],rv(e,"mixin",(function(t){var r=t(e.prototype,e);return"function"==typeof r&&e.prototype.mixins.push(r),e})),rv(e,"mixins",(function(t){return n.run(t,"mixin",e.prototype.mixins),e})),e.prototype.mixin=function(t,r){return e.prototype[t]=r,this},n}))),rv(n,"mixin",(function(e){var t=e(n.prototype,n);return"function"==typeof t&&n.prototype.mixins.push(t),n})),rv(n,"mixins",(function(e){return n.run(e,"mixin",n.prototype.mixins),n})),rv(n,"inherit",Kv.inherit),rv(n,"bubble",Kv.bubble),n}var Qv=Jv(),eb=Jv;Qv.namespace=eb;var tb=function e(t,r){if(!rb(t)&&"function"!=typeof t)throw new TypeError("expected an object or function");var n=rb(r)?r:{},i="string"==typeof n.prop?n.prop:"fns";function a(e,r,a){var o=1;if("string"==typeof e||Array.isArray(e)?(r=function(e,t){return function r(){return this.type===e?t.apply(this,arguments):r}}(e,r),o++):(a=r,r=e),"function"!=typeof r)throw new TypeError("expected a function");var s=this||t,l=s[i],c=[].slice.call(arguments,o);c.unshift(s),"function"==typeof n.hook&&n.hook.apply(s,c);var u=r.apply(s,c);return"function"==typeof u&&-1===l.indexOf(u)&&l.push(u),s}return Array.isArray(t[i])||nb(t,i,[]),nb(t,"use",a),nb(t,"run",(function(r){if(rb(r)){r.use&&r.run||(nb(r,i,r[i]||[]),nb(r,"use",a)),r[i]&&-1!==r[i].indexOf(e)||r.use(e);for(var n=(this||t)[i],o=n.length,s=-1;++s<o;)r.use(n[s]);return r}})),t};function rb(e){return e&&"object"==typeof e&&!Array.isArray(e)}function nb(e,t,r){Object.defineProperty(e,t,{configurable:!0,writable:!0,value:r})}var ib=1e3,ab=6e4,ob=60*ab,sb=24*ob,lb=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"days":case"day":case"d":return r*sb;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ob;case"minutes":case"minute":case"mins":case"min":case"m":return r*ab;case"seconds":case"second":case"secs":case"sec":case"s":return r*ib;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===r&&!1===isNaN(e))return t.long?function(e){return cb(e,sb,"day")||cb(e,ob,"hour")||cb(e,ab,"minute")||cb(e,ib,"second")||e+" ms"}(e):function(e){return e>=sb?Math.round(e/sb)+"d":e>=ob?Math.round(e/ob)+"h":e>=ab?Math.round(e/ab)+"m":e>=ib?Math.round(e/ib)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function cb(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}var ub=Mc((function(e,t){var r;function n(e){function n(){if(n.enabled){var e=n,i=+new Date,a=i-(r||i);e.diff=a,e.prev=r,e.curr=i,r=i;for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var l=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(r,n){if("%%"===r)return r;l++;var i=t.formatters[n];if("function"==typeof i){var a=o[l];r=i.call(e,a),o.splice(l,1),l--}return r})),t.formatArgs.call(e,o),(n.log||t.log||console.log.bind(console)).apply(e,o)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var r,n=0;for(r in e)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=n.debug=n.default=n).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length,i=0;i<n;i++)r[i]&&("-"===(e=r[i].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=lb,t.names=[],t.skips=[],t.formatters={}})),pb=Mc((function(e,t){function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==vh&&"env"in vh&&(e=vh.env.DEBUG),e}(t=e.exports=ub).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),r){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0,a=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(i++,"%c"===e&&(a=i))})),e.splice(a,0,n)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())})),db="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),hb=function(e){if(0<=e&&e<db.length)return db[e];throw new TypeError("Must be between 0 and 63: "+e)},mb=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1},gb=function(e){var t,r="",n=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&n,(n>>>=5)>0&&(t|=32),r+=hb(t)}while(n>0);return r},fb=function(e,t,r){var n,i,a,o,s=e.length,l=0,c=0;do{if(t>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=mb(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));n=!!(32&i),l+=(i&=31)<<c,c+=5}while(n);r.value=(o=(a=l)>>1,1==(1&a)?-o:o),r.rest=t},vb=Mc((function(e,t){t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,n=/^data:.+\,.+$/;function i(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var r=e,n=i(e);if(n){if(!n.path)return e;r=n.path}for(var o,s=t.isAbsolute(r),l=r.split(/\/+/),c=0,u=l.length-1;u>=0;u--)"."===(o=l[u])?l.splice(u,1):".."===o?c++:c>0&&(""===o?(l.splice(u+1,c),c=0):(l.splice(u,2),c--));return""===(r=l.join("/"))&&(r=s?"/":"."),n?(n.path=r,a(n)):r}t.urlParse=i,t.urlGenerate=a,t.normalize=o,t.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),s=i(e);if(s&&(e=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),a(r);if(r||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var l="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=l,a(s)):l},t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(r)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var s=!("__proto__"in Object.create(null));function l(e){return e}function c(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function u(e,t){return e===t?0:e>t?1:-1}t.toSetString=s?l:function(e){return c(e)?"$"+e:e},t.fromSetString=s?l:function(e){return c(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=e.source-t.source;return 0!==n||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)||r||0!=(n=e.generatedColumn-t.generatedColumn)||0!=(n=e.generatedLine-t.generatedLine)?n:e.name-t.name},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||r||0!=(n=e.source-t.source)||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:e.name-t.name},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||0!==(r=u(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:u(e.name,t.name)}})),bb=Object.prototype.hasOwnProperty,yb="undefined"!=typeof Map;function xb(){this._array=[],this._set=yb?new Map:Object.create(null)}xb.fromArray=function(e,t){for(var r=new xb,n=0,i=e.length;n<i;n++)r.add(e[n],t);return r},xb.prototype.size=function(){return yb?this._set.size:Object.getOwnPropertyNames(this._set).length},xb.prototype.add=function(e,t){var r=yb?e:vb.toSetString(e),n=yb?this.has(e):bb.call(this._set,r),i=this._array.length;n&&!t||this._array.push(e),n||(yb?this._set.set(e,i):this._set[r]=i)},xb.prototype.has=function(e){if(yb)return this._set.has(e);var t=vb.toSetString(e);return bb.call(this._set,t)},xb.prototype.indexOf=function(e){if(yb){var t=this._set.get(e);if(t>=0)return t}else{var r=vb.toSetString(e);if(bb.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},xb.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},xb.prototype.toArray=function(){return this._array.slice()};var wb=xb;function zb(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}zb.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},zb.prototype.add=function(e){var t,r,n,i,a,o;r=e,n=(t=this._last).generatedLine,i=r.generatedLine,a=t.generatedColumn,o=r.generatedColumn,i>n||i==n&&o>=a||vb.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},zb.prototype.toArray=function(){return this._sorted||(this._array.sort(vb.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};var kb=wb,Ab={MappingList:zb}.MappingList;function Cb(e){e||(e={}),this._file=vb.getArg(e,"file",null),this._sourceRoot=vb.getArg(e,"sourceRoot",null),this._skipValidation=vb.getArg(e,"skipValidation",!1),this._sources=new kb,this._names=new kb,this._mappings=new Ab,this._sourcesContents=null}Cb.prototype._version=3,Cb.fromSourceMap=function(e){var t=e.sourceRoot,r=new Cb({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=vb.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&r.setSourceContent(t,n)})),r},Cb.prototype.addMapping=function(e){var t=vb.getArg(e,"generated"),r=vb.getArg(e,"original",null),n=vb.getArg(e,"source",null),i=vb.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,i),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:i})},Cb.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=vb.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[vb.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[vb.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},Cb.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var i=this._sourceRoot;null!=i&&(n=vb.relative(i,n));var a=new kb,o=new kb;this._mappings.unsortedForEach((function(t){if(t.source===n&&null!=t.originalLine){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=s.source&&(t.source=s.source,null!=r&&(t.source=vb.join(r,t.source)),null!=i&&(t.source=vb.relative(i,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.name))}var l=t.source;null==l||a.has(l)||a.add(l);var c=t.name;null==c||o.has(c)||o.add(c)}),this),this._sources=a,this._names=o,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=vb.join(r,t)),null!=i&&(t=vb.relative(i,t)),this.setSourceContent(t,n))}),this)},Cb.prototype._validateMapping=function(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},Cb.prototype._serializeMappings=function(){for(var e,t,r,n,i=0,a=1,o=0,s=0,l=0,c=0,u="",p=this._mappings.toArray(),d=0,h=p.length;d<h;d++){if(e="",(t=p[d]).generatedLine!==a)for(i=0;t.generatedLine!==a;)e+=";",a++;else if(d>0){if(!vb.compareByGeneratedPositionsInflated(t,p[d-1]))continue;e+=","}e+=gb(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=gb(n-c),c=n,e+=gb(t.originalLine-1-s),s=t.originalLine-1,e+=gb(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=gb(r-l),l=r)),u+=e}return u},Cb.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=vb.relative(t,e));var r=vb.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},Cb.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},Cb.prototype.toString=function(){return JSON.stringify(this.toJSON())};var Sb={SourceMapGenerator:Cb},_b=Mc((function(e,t){function r(e,n,i,a,o,s){var l=Math.floor((n-e)/2)+e,c=o(i,a[l],!0);return 0===c?l:c>0?n-l>1?r(l,n,i,a,o,s):s==t.LEAST_UPPER_BOUND?n<a.length?n:-1:l:l-e>1?r(e,l,i,a,o,s):s==t.LEAST_UPPER_BOUND?l:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,i,a){if(0===n.length)return-1;var o=r(-1,n.length,e,n,i,a||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===i(n[o],n[o-1],!0);)--o;return o}}));function Mb(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Tb(e,t,r,n){if(r<n){var i=r-1;Mb(e,(l=r,c=n,Math.round(l+Math.random()*(c-l))),n);for(var a=e[n],o=r;o<n;o++)t(e[o],a)<=0&&Mb(e,i+=1,o);Mb(e,i+1,o);var s=i+1;Tb(e,t,r,s-1),Tb(e,t,s+1,n)}var l,c}var $b=wb,Lb=function(e,t){Tb(e,t,0,e.length-1)};function Eb(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new Ob(t):new Bb(t)}Eb.fromSourceMap=function(e){return Bb.fromSourceMap(e)},Eb.prototype._version=3,Eb.prototype.__generatedMappings=null,Object.defineProperty(Eb.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),Eb.prototype.__originalMappings=null,Object.defineProperty(Eb.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),Eb.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return";"===r||","===r},Eb.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},Eb.GENERATED_ORDER=1,Eb.ORIGINAL_ORDER=2,Eb.GREATEST_LOWER_BOUND=1,Eb.LEAST_UPPER_BOUND=2,Eb.prototype.eachMapping=function(e,t,r){var n,i=t||null;switch(r||Eb.GENERATED_ORDER){case Eb.GENERATED_ORDER:n=this._generatedMappings;break;case Eb.ORIGINAL_ORDER:n=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;n.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=a&&(t=vb.join(a,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,i)},Eb.prototype.allGeneratedPositionsFor=function(e){var t=vb.getArg(e,"line"),r={source:vb.getArg(e,"source"),originalLine:t,originalColumn:vb.getArg(e,"column",0)};if(null!=this.sourceRoot&&(r.source=vb.relative(this.sourceRoot,r.source)),!this._sources.has(r.source))return[];r.source=this._sources.indexOf(r.source);var n=[],i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",vb.compareByOriginalPositions,_b.LEAST_UPPER_BOUND);if(i>=0){var a=this._originalMappings[i];if(void 0===e.column)for(var o=a.originalLine;a&&a.originalLine===o;)n.push({line:vb.getArg(a,"generatedLine",null),column:vb.getArg(a,"generatedColumn",null),lastColumn:vb.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var s=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==s;)n.push({line:vb.getArg(a,"generatedLine",null),column:vb.getArg(a,"generatedColumn",null),lastColumn:vb.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i]}return n};var Ib=Eb;function Bb(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=vb.getArg(t,"version"),n=vb.getArg(t,"sources"),i=vb.getArg(t,"names",[]),a=vb.getArg(t,"sourceRoot",null),o=vb.getArg(t,"sourcesContent",null),s=vb.getArg(t,"mappings"),l=vb.getArg(t,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);n=n.map(String).map(vb.normalize).map((function(e){return a&&vb.isAbsolute(a)&&vb.isAbsolute(e)?vb.relative(a,e):e})),this._names=$b.fromArray(i.map(String),!0),this._sources=$b.fromArray(n,!0),this.sourceRoot=a,this.sourcesContent=o,this._mappings=s,this.file=l}function Db(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}Bb.prototype=Object.create(Eb.prototype),Bb.prototype.consumer=Eb,Bb.fromSourceMap=function(e){var t=Object.create(Bb.prototype),r=t._names=$b.fromArray(e._names.toArray(),!0),n=t._sources=$b.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var i=e._mappings.toArray().slice(),a=t.__generatedMappings=[],o=t.__originalMappings=[],s=0,l=i.length;s<l;s++){var c=i[s],u=new Db;u.generatedLine=c.generatedLine,u.generatedColumn=c.generatedColumn,c.source&&(u.source=n.indexOf(c.source),u.originalLine=c.originalLine,u.originalColumn=c.originalColumn,c.name&&(u.name=r.indexOf(c.name)),o.push(u)),a.push(u)}return Lb(t.__originalMappings,vb.compareByOriginalPositions),t},Bb.prototype._version=3,Object.defineProperty(Bb.prototype,"sources",{get:function(){return this._sources.toArray().map((function(e){return null!=this.sourceRoot?vb.join(this.sourceRoot,e):e}),this)}}),Bb.prototype._parseMappings=function(e,t){for(var r,n,i,a,o,s=1,l=0,c=0,u=0,p=0,d=0,h=e.length,m=0,g={},f={},v=[],b=[];m<h;)if(";"===e.charAt(m))s++,m++,l=0;else if(","===e.charAt(m))m++;else{for((r=new Db).generatedLine=s,a=m;a<h&&!this._charIsMappingSeparator(e,a);a++);if(i=g[n=e.slice(m,a)])m+=n.length;else{for(i=[];m<a;)fb(e,m,f),o=f.value,m=f.rest,i.push(o);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");g[n]=i}r.generatedColumn=l+i[0],l=r.generatedColumn,i.length>1&&(r.source=p+i[1],p+=i[1],r.originalLine=c+i[2],c=r.originalLine,r.originalLine+=1,r.originalColumn=u+i[3],u=r.originalColumn,i.length>4&&(r.name=d+i[4],d+=i[4])),b.push(r),"number"==typeof r.originalLine&&v.push(r)}Lb(b,vb.compareByGeneratedPositionsDeflated),this.__generatedMappings=b,Lb(v,vb.compareByOriginalPositions),this.__originalMappings=v},Bb.prototype._findMapping=function(e,t,r,n,i,a){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return _b.search(e,t,i,a)},Bb.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},Bb.prototype.originalPositionFor=function(e){var t={generatedLine:vb.getArg(e,"line"),generatedColumn:vb.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",vb.compareByGeneratedPositionsDeflated,vb.getArg(e,"bias",Eb.GREATEST_LOWER_BOUND));if(r>=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var i=vb.getArg(n,"source",null);null!==i&&(i=this._sources.at(i),null!=this.sourceRoot&&(i=vb.join(this.sourceRoot,i)));var a=vb.getArg(n,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:vb.getArg(n,"originalLine",null),column:vb.getArg(n,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},Bb.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},Bb.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=vb.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var r;if(null!=this.sourceRoot&&(r=vb.urlParse(this.sourceRoot))){var n=e.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(n))return this.sourcesContent[this._sources.indexOf(n)];if((!r.path||"/"==r.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},Bb.prototype.generatedPositionFor=function(e){var t=vb.getArg(e,"source");if(null!=this.sourceRoot&&(t=vb.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var r={source:t=this._sources.indexOf(t),originalLine:vb.getArg(e,"line"),originalColumn:vb.getArg(e,"column")},n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",vb.compareByOriginalPositions,vb.getArg(e,"bias",Eb.GREATEST_LOWER_BOUND));if(n>=0){var i=this._originalMappings[n];if(i.source===r.source)return{line:vb.getArg(i,"generatedLine",null),column:vb.getArg(i,"generatedColumn",null),lastColumn:vb.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var Hb=Bb;function Ob(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=vb.getArg(t,"version"),n=vb.getArg(t,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new $b,this._names=new $b;var i={line:-1,column:0};this._sections=n.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=vb.getArg(e,"offset"),r=vb.getArg(t,"line"),n=vb.getArg(t,"column");if(r<i.line||r===i.line&&n<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=t,{generatedOffset:{generatedLine:r+1,generatedColumn:n+1},consumer:new Eb(vb.getArg(e,"map"))}}))}Ob.prototype=Object.create(Eb.prototype),Ob.prototype.constructor=Eb,Ob.prototype._version=3,Object.defineProperty(Ob.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}}),Ob.prototype.originalPositionFor=function(e){var t={generatedLine:vb.getArg(e,"line"),generatedColumn:vb.getArg(e,"column")},r=_b.search(t,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),n=this._sections[r];return n?n.consumer.originalPositionFor({line:t.generatedLine-(n.generatedOffset.generatedLine-1),column:t.generatedColumn-(n.generatedOffset.generatedLine===t.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},Ob.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},Ob.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r].consumer.sourceContentFor(e,!0);if(n)return n}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},Ob.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(-1!==r.consumer.sources.indexOf(vb.getArg(e,"source"))){var n=r.consumer.generatedPositionFor(e);if(n)return{line:n.line+(r.generatedOffset.generatedLine-1),column:n.column+(r.generatedOffset.generatedLine===n.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},Ob.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var n=this._sections[r],i=n.consumer._generatedMappings,a=0;a<i.length;a++){var o=i[a],s=n.consumer._sources.at(o.source);null!==n.consumer.sourceRoot&&(s=vb.join(n.consumer.sourceRoot,s)),this._sources.add(s),s=this._sources.indexOf(s);var l=n.consumer._names.at(o.name);this._names.add(l),l=this._names.indexOf(l);var c={source:s,generatedLine:o.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:o.generatedColumn+(n.generatedOffset.generatedLine===o.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:o.originalLine,originalColumn:o.originalColumn,name:l};this.__generatedMappings.push(c),"number"==typeof c.originalLine&&this.__originalMappings.push(c)}Lb(this.__generatedMappings,vb.compareByGeneratedPositionsDeflated),Lb(this.__originalMappings,vb.compareByOriginalPositions)};var Pb={SourceMapConsumer:Ib,BasicSourceMapConsumer:Hb,IndexedSourceMapConsumer:Ob},Rb=Sb.SourceMapGenerator,Vb=/(\r?\n)/,Nb="$$$isSourceNode$$$";function Fb(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[Nb]=!0,null!=n&&this.add(n)}Fb.fromStringWithSourceMap=function(e,t,r){var n=new Fb,i=e.split(Vb),a=0,o=function(){return e()+(e()||"");function e(){return a<i.length?i[a++]:void 0}},s=1,l=0,c=null;return t.eachMapping((function(e){if(null!==c){if(!(s<e.generatedLine)){var t=(r=i[a]).substr(0,e.generatedColumn-l);return i[a]=r.substr(e.generatedColumn-l),l=e.generatedColumn,u(c,t),void(c=e)}u(c,o()),s++,l=0}for(;s<e.generatedLine;)n.add(o()),s++;if(l<e.generatedColumn){var r=i[a];n.add(r.substr(0,e.generatedColumn)),i[a]=r.substr(e.generatedColumn),l=e.generatedColumn}c=e}),this),a<i.length&&(c&&u(c,o()),n.add(i.splice(a).join(""))),t.sources.forEach((function(e){var i=t.sourceContentFor(e);null!=i&&(null!=r&&(e=vb.join(r,e)),n.setSourceContent(e,i))})),n;function u(e,t){if(null===e||void 0===e.source)n.add(t);else{var i=r?vb.join(r,e.source):e.source;n.add(new Fb(e.originalLine,e.originalColumn,i,t,e.name))}}},Fb.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[Nb]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},Fb.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[Nb]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},Fb.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r<n;r++)(t=this.children[r])[Nb]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},Fb.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},Fb.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[Nb]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},Fb.prototype.setSourceContent=function(e,t){this.sourceContents[vb.toSetString(e)]=t},Fb.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][Nb]&&this.children[t].walkSourceContents(e);var n=Object.keys(this.sourceContents);for(t=0,r=n.length;t<r;t++)e(vb.fromSetString(n[t]),this.sourceContents[n[t]])},Fb.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},Fb.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new Rb(e),n=!1,i=null,a=null,o=null,s=null;return this.walk((function(e,l){t.code+=e,null!==l.source&&null!==l.line&&null!==l.column?(i===l.source&&a===l.line&&o===l.column&&s===l.name||r.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:t.line,column:t.column},name:l.name}),i=l.source,a=l.line,o=l.column,s=l.name,n=!0):n&&(r.addMapping({generated:{line:t.line,column:t.column}}),i=null,n=!1);for(var c=0,u=e.length;c<u;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===u?(i=null,n=!1):n&&r.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:t.line,column:t.column},name:l.name})):t.column++})),this.walkSourceContents((function(e,t){r.setSourceContent(e,t)})),{code:t.code,map:r}};var jb={SourceMapGenerator:Sb.SourceMapGenerator,SourceMapConsumer:Pb.SourceMapConsumer,SourceNode:{SourceNode:Fb}.SourceNode},qb=Mc((function(e,t){e.exports=function(){var e=/[#@] sourceMappingURL=([^\s'"]*)/,t=RegExp("(?:/\\*(?:\\s*\r?\n(?://)?)?(?:"+e.source+")\\s*\\*/|//(?:"+e.source+"))\\s*");return{regex:t,_innerRegex:e,getFrom:function(e){var r=e.match(t);return r?r[1]||r[2]||"":null},existsIn:function(e){return t.test(e)},removeFrom:function(e){return e.replace(t,"")},insertBefore:function(e,r){var n=e.match(t);return n?e.slice(0,n.index)+r+e.slice(n.index):e+r}}}()})),Ub=Mc((function(e,t){e.exports=function(){var e=arguments.length;if(0===e)throw new Error("resolveUrl requires at least one argument; got none.");var t=document.createElement("base");if(t.href=arguments[0],1===e)return t.href;var r=document.getElementsByTagName("head")[0];r.insertBefore(t,r.firstChild);for(var n,i=document.createElement("a"),a=1;a<e;a++)i.href=arguments[a],n=i.href,t.href=n;return r.removeChild(t),n}})),Wb=Mc((function(e,t){var r,n;r=qb,n=Ub,e.exports=function(e,t){function r(e,t,r){setImmediate((function(){e(t,r)}))}function n(e,t){try{return JSON.parse(e.replace(/^\)\]\}'/,""))}catch(e){throw e.sourceMapData=t,e}}function i(e,t,r){var n=t;try{return String(e(n))}catch(e){throw e.sourceMapData=r,e}}function a(e,t,i,a){var o;try{o=p(e,t)}catch(e){return r(a,e)}if(!o||o.map)return r(a,null,o);i(o.url,(function(e,t){if(e)return e.sourceMapData=o,a(e);o.map=String(t);try{o.map=n(o.map,o)}catch(e){return a(e)}a(null,o)}))}function o(e,t,r){var a=p(e,t);return!a||a.map||(a.map=i(r,a.url,a),a.map=n(a.map,a)),a}var s=/^data:([^,;]*)(;[^,;]*)*(?:,(.*))?$/,l=/^(?:application|text)\/json$/,c="utf-8";function u(e){if("undefined"==typeof TextDecoder||"undefined"==typeof Uint8Array)return atob(e);var t=function(e){for(var t=atob(e),r=t.length,n=new Uint8Array(r),i=0;i<r;i++)n[i]=t.charCodeAt(i);return n}(e);return new TextDecoder(c,{fatal:!0}).decode(t)}function p(r,i){var a=e.getFrom(r);if(!a)return null;var o=a.match(s);if(o){var c=o[1]||"text/plain",p=o[2]||"",d=o[3]||"",h={sourceMappingURL:a,url:null,sourcesRelativeTo:i,map:d};if(!l.test(c)){var m=new Error("Unuseful data uri mime type: "+c);throw m.sourceMapData=h,m}try{h.map=n(";base64"===p?u(d):decodeURIComponent(d),h)}catch(m){throw m.sourceMapData=h,m}return h}var g=t(i,a);return{sourceMappingURL:a,url:g,sourcesRelativeTo:g,map:null}}function d(e,t,n,i,a){"function"==typeof i&&(a=i,i={});var o=e.sources?e.sources.length:0,s={sourcesResolved:[],sourcesContent:[]};if(0!==o){var l=function(){0==--o&&a(null,s)};g(e,t,i,(function(e,t,i){s.sourcesResolved[i]=e,"string"==typeof t?(s.sourcesContent[i]=t,r(l,null)):n(e,(function(e,t){s.sourcesContent[i]=e||String(t),l()}))}))}else r(a,null,s)}function h(e,t,r,n){var i={sourcesResolved:[],sourcesContent:[]};return e.sources&&0!==e.sources.length?(g(e,t,n,(function(e,t,n){if(i.sourcesResolved[n]=e,null!==r)if("string"==typeof t)i.sourcesContent[n]=t;else{var a=e;try{i.sourcesContent[n]=String(r(a))}catch(e){i.sourcesContent[n]=e}}})),i):i}var m=/\/?$/;function g(e,r,n,i){var a;n=n||{};for(var o=0,s=e.sources.length;o<s;o++)a=null,"string"==typeof n.sourceRoot?a=n.sourceRoot:"string"==typeof e.sourceRoot&&!1!==n.sourceRoot&&(a=e.sourceRoot),i(null===a||""===a?t(r,e.sources[o]):t(r,a.replace(m,"/"),e.sources[o]),(e.sourcesContent||[])[o],o)}return{resolveSourceMap:a,resolveSourceMapSync:o,resolveSources:d,resolveSourcesSync:h,resolve:function(e,t,r,i,o){if("function"==typeof i&&(o=i,i={}),null===e){var s={sourceMappingURL:null,url:t,sourcesRelativeTo:t,map:null};r(t,(function(e,t){if(e)return e.sourceMapData=s,o(e);s.map=String(t);try{s.map=n(s.map,s)}catch(e){return o(e)}l(s)}))}else a(e,t,r,(function(e,t){return e?o(e):t?void l(t):o(null,null)}));function l(e){d(e.map,e.sourcesRelativeTo,r,i,(function(t,r){if(t)return o(t);e.sourcesResolved=r.sourcesResolved,e.sourcesContent=r.sourcesContent,o(null,e)}))}},resolveSync:function(e,t,r,a){var s;if(null===e)(s={sourceMappingURL:null,url:t,sourcesRelativeTo:t,map:null}).map=i(r,t,s),s.map=n(s.map,s);else if(!(s=o(e,t,r)))return null;var l=h(s.map,s.sourcesRelativeTo,r,a);return s.sourcesResolved=l.sourcesResolved,s.sourcesContent=l.sourcesContent,s},parseMapToJSON:n}}(r,n)})),Xb={extend:mv,SourceMap:jb,sourceMapResolve:Wb,unixify:function(e){return e.split(/\\+/).join("/")},isString:function(e){return e&&"string"==typeof e},arrayify:function(e){return"string"==typeof e?[e]:e?Array.isArray(e)?e:[e]:[]},last:function(e,t){return e[e.length-(t||1)]}},Gb=Mc((function(e,t){e.exports=function(e){for(var r in Vv(e,"_comment",e.comment),e.map=new Xb.SourceMap.SourceMapGenerator,e.position={line:1,column:1},e.content={},e.files={},t)Vv(e,r,t[r])},t.updatePosition=function(e){var t=e.match(/\n/g);t&&(this.position.line+=t.length);var r=e.lastIndexOf("\n");this.position.column=~r?e.length-r:this.position.column+e.length},t.emit=function(e,t){var r=t.position||{},n=r.source;return n&&(r.filepath&&(n=Xb.unixify(r.filepath)),this.map.addMapping({source:n,generated:{line:this.position.line,column:Math.max(this.position.column-1,0)},original:{line:r.start.line,column:r.start.column-1}}),r.content&&this.addContent(n,r),r.filepath&&this.addFile(n,r),this.updatePosition(e),this.output+=e),e},t.addFile=function(e,t){"string"==typeof t.content&&(Object.prototype.hasOwnProperty.call(this.files,e)||(this.files[e]=t.content))},t.addContent=function(e,t){"string"==typeof t.content&&(Object.prototype.hasOwnProperty.call(this.content,e)||this.map.setSourceContent(e,t.content))},t.applySourceMaps=function(){Object.keys(this.files).forEach((function(e){var t=this.files[e];if(this.map.setSourceContent(e,t),!0===this.options.inputSourcemaps){var r=Xb.sourceMapResolve.resolveSync(t,e,Dp.readFileSync);if(r){var n=new Xb.SourceMap.SourceMapConsumer(r.map),i=r.sourcesRelativeTo;this.map.applySourceMap(n,e,Xb.unixify(Jm.dirname(i)))}}}),this)},t.comment=function(e){return/^# sourceMappingURL=/.test(e.comment)?this.emit("",e.position):this._comment(e)}})),Yb=pb("snapdragon:compiler");function Zb(e,t){Yb("initializing","/home/runner/work/budibase-deploys/budibase-deploys/node_modules/snapdragon/lib/compiler.js"),this.options=Xb.extend({source:"string"},e),this.state=t||{},this.compilers={},this.output="",this.set("eos",(function(e){return this.emit(e.val,e)})),this.set("noop",(function(e){return this.emit(e.val,e)})),this.set("bos",(function(e){return this.emit(e.val,e)})),tb(this)}Zb.prototype={error:function(e,t){var r=t.position||{start:{column:0}},n=this.options.source+" column:"+r.start.column+": "+e,i=new Error(n);if(i.reason=e,i.column=r.start.column,i.source=this.pattern,!this.options.silent)throw i;this.errors.push(i)},define:function(e,t){return Vv(this,e,t),this},emit:function(e,t){return this.output+=e,e},set:function(e,t){return this.compilers[e]=t,this},get:function(e){return this.compilers[e]},prev:function(e){return this.ast.nodes[this.idx-(e||1)]||{type:"bos",val:""}},next:function(e){return this.ast.nodes[this.idx+(e||1)]||{type:"eos",val:""}},visit:function(e,t,r){var n=this.compilers[e.type];if(this.idx=r,"function"!=typeof n)throw this.error('compiler "'+e.type+'" is not registered',e);return n.call(this,e,t,r)},mapVisit:function(e){if(!Array.isArray(e))throw new TypeError("expected an array");for(var t=e.length,r=-1;++r<t;)this.visit(e[r],e,r);return this},compile:function(e,t){var r=Xb.extend({},this.options,t);return this.ast=e,this.parsingErrors=this.ast.errors,this.output="",r.sourcemap?(Gb(this),this.mapVisit(this.ast.nodes),this.applySourceMaps(),this.map="generator"===r.sourcemap?this.map:this.map.toJSON(),this):(this.mapVisit(this.ast.nodes),this)}};var Kb=Zb,Jb=Object.prototype.hasOwnProperty,Qb=ey;function ey(e){this.__data__=e||{}}ey.prototype.set=function(e,t){return"__proto__"!==e&&(this.__data__[e]=t),this},ey.prototype.get=function(e){return"__proto__"===e?void 0:this.__data__[e]},ey.prototype.has=function(e){return"__proto__"!==e&&Jb.call(this.__data__,e)},ey.prototype.del=function(e){return this.has(e)&&delete this.__data__[e]};var ty=function(e,t){this.start=e,this.end={line:t.line,column:t.column},Vv(this,"content",t.orig),Vv(this,"source",t.options.source)},ry=pb("snapdragon:parser");function ny(e){ry("initializing","/home/runner/work/budibase-deploys/budibase-deploys/node_modules/snapdragon/lib/parser.js"),this.options=Xb.extend({source:"string"},e),this.init(this.options),tb(this)}function iy(e,t){return e.visited?e:(Vv(e,"visited",!0),e.nodes?function(e,t){for(var r=e.length,n=-1;++n<r;)iy(e[n],t)}(e.nodes,t):t(e))}function ay(e){return function(e){return e.nodes&&e.nodes[0].type===e.type+".open"}(e)&&function(e){return e.nodes&&Xb.last(e.nodes).type===e.type+".close"}(e)}ny.prototype={constructor:ny,init:function(e){this.orig="",this.input="",this.parsed="",this.column=1,this.line=1,this.regex=new Qb,this.errors=this.errors||[],this.parsers=this.parsers||{},this.types=this.types||[],this.sets=this.sets||{},this.fns=this.fns||[],this.currentType="root";var t=this.position();this.bos=t({type:"bos",val:""}),this.ast={type:"root",errors:this.errors,nodes:[this.bos]},Vv(this.bos,"parent",this.ast),this.nodes=[this.ast],this.count=0,this.setCount=0,this.stack=[]},error:function(e,t){var r=t.position||{start:{column:0,line:0}},n=r.start.line,i=r.start.column,a=this.options.source,o=new Error(a+" <line:"+n+" column:"+i+">: "+e);if(o.source=a,o.reason=e,o.pos=r,!this.options.silent)throw o;this.errors.push(o)},define:function(e,t){return Vv(this,e,t),this},position:function(){var e={line:this.line,column:this.column},t=this;return function(r){return Vv(r,"position",new ty(e,t)),r}},set:function(e,t){return-1===this.types.indexOf(e)&&this.types.push(e),this.parsers[e]=t.bind(this),this},get:function(e){return this.parsers[e]},push:function(e,t){return this.sets[e]=this.sets[e]||[],this.count++,this.stack.push(t),this.sets[e].push(t)},pop:function(e){return this.sets[e]=this.sets[e]||[],this.count--,this.stack.pop(),this.sets[e].pop()},isInside:function(e){return this.sets[e]=this.sets[e]||[],this.sets[e].length>0},isType:function(e,t){return e&&e.type===t},prev:function(e){return this.stack.length>0?Xb.last(this.stack,e):Xb.last(this.nodes,e)},consume:function(e){this.input=this.input.substr(e)},updatePosition:function(e,t){var r=e.match(/\n/g);r&&(this.line+=r.length);var n=e.lastIndexOf("\n");this.column=~n?t-n:this.column+t,this.parsed+=e,this.consume(t)},match:function(e){var t=e.exec(this.input);if(t)return this.updatePosition(t[0],t[0].length),t},capture:function(e,t){return"function"==typeof t?this.set.apply(this,arguments):(this.regex.set(e,t),this.set(e,function(){var r=this.parsed,n=this.position(),i=this.match(t);if(i&&i[0]){var a=this.prev(),o=n({type:e,val:i[0],parsed:r,rest:this.input});i[1]&&(o.inner=i[1]),Vv(o,"inside",this.stack.length>0),Vv(o,"parent",a),a.nodes.push(o)}}.bind(this)),this)},capturePair:function(e,t,r,n){return this.sets[e]=this.sets[e]||[],this.set(e+".open",(function(){var r=this.parsed,i=this.position(),a=this.match(t);if(a&&a[0]){var o=a[0];this.setCount++,this.specialChars=!0;var s=i({type:e+".open",val:o,rest:this.input});void 0!==a[1]&&(s.inner=a[1]);var l=this.prev(),c=i({type:e,nodes:[s]});Vv(c,"rest",this.input),Vv(c,"parsed",r),Vv(c,"prefix",a[1]),Vv(c,"parent",l),Vv(s,"parent",c),"function"==typeof n&&n.call(this,s,c),this.push(e,c),l.nodes.push(c)}})),this.set(e+".close",(function(){var t=this.position(),n=this.match(r);if(n&&n[0]){var i=this.pop(e),a=t({type:e+".close",rest:this.input,suffix:n[1],val:n[0]});if(!this.isType(i,e)){if(this.options.strict)throw new Error('missing opening "'+e+'"');return this.setCount--,a.escaped=!0,a}"\\"===a.suffix&&(i.escaped=!0,a.escaped=!0),i.nodes.push(a),Vv(a,"parent",i)}})),this},eos:function(){var e=this.position();if(!this.input){for(var t=this.prev();"root"!==t.type&&!t.visited;){if(!0===this.options.strict)throw new SyntaxError("invalid syntax:"+sm.inspect(t,null,2));ay(t)||(t.parent.escaped=!0,t.escaped=!0),iy(t,(function(e){ay(e.parent)||(e.parent.escaped=!0,e.escaped=!0)})),t=t.parent}var r=e({type:"eos",val:this.append||""});return Vv(r,"parent",this.ast),r}},next:function(){for(var e,t=this.parsed,r=this.types.length,n=-1;++n<r;)if(e=this.parsers[this.types[n]].call(this))return Vv(e,"rest",this.input),Vv(e,"parsed",t),this.last=e,e},parse:function(e){if("string"!=typeof e)throw new TypeError("expected a string");this.init(this.options),this.orig=e,this.input=e;var t=this;function r(){e=t.input;var r=t.next();if(r){var n=t.prev();n&&(Vv(r,"parent",n),n.nodes&&n.nodes.push(r)),t.sets.hasOwnProperty(n.type)&&(t.currentType=n.type)}if(t.input&&e===t.input)throw new Error('no parsers registered for: "'+t.input.slice(0,5)+'"')}for(;this.input;)r();if(this.stack.length&&this.options.strict){var n=this.stack.pop();throw this.error("missing opening "+n.type+': "'+this.orig+'"')}var i=this.eos();return"eos"!==this.prev().type&&this.ast.nodes.push(i),this.ast}};var oy=ny;function sy(e){Qv.call(this,null,e),this.options=Xb.extend({source:"string"},this.options),this.compiler=new Kb(this.options),this.parser=new oy(this.options),Object.defineProperty(this,"compilers",{get:function(){return this.compiler.compilers}}),Object.defineProperty(this,"parsers",{get:function(){return this.parser.parsers}}),Object.defineProperty(this,"regex",{get:function(){return this.parser.regex}})}Qv.extend(sy),sy.prototype.capture=function(){return this.parser.capture.apply(this.parser,arguments)},sy.prototype.use=function(e){return e.call(this,this),this},sy.prototype.parse=function(e,t){this.options=Xb.extend({},this.options,t);var r=this.parser.parse(e,this.options);return Vv(r,"parser",this.parser),r},sy.prototype.compile=function(e,t){this.options=Xb.extend({},this.options,t);var r=this.compiler.compile(e,this.options);return Vv(r,"compiler",this.compiler),r};var ly=sy,cy=Kb,uy=oy;function py(e){this.options=ef({},e)}ly.Compiler=cy,ly.Parser=uy,py.prototype.init=function(e){if(!this.isInitialized){this.isInitialized=!0;var t=qf.createOptions({},this.options,e);this.snapdragon=this.options.snapdragon||new ly(t),this.compiler=this.snapdragon.compiler,this.parser=this.snapdragon.parser,Uf(this.snapdragon,t),ev(this.snapdragon,t),qf.define(this.snapdragon,"parse",(function(e,t){var r=ly.prototype.parse.apply(this,arguments);this.parser.ast.input=e;for(var n=this.parser.stack;n.length;)i({type:"brace.close",val:""},n.pop());function i(e,t){qf.define(e,"parent",t),t.nodes.push(e)}return qf.define(r,"parser",this.parser),r}))}},py.prototype.parse=function(e,t){return e&&"object"==typeof e&&e.nodes?e:(this.init(t),this.snapdragon.parse(e,t))},py.prototype.compile=function(e,t){return"string"==typeof e?e=this.parse(e,t):this.init(t),this.snapdragon.compile(e,t)},py.prototype.expand=function(e){var t=this.parse(e,{expand:!0});return this.compile(t,{expand:!0})},py.prototype.optimize=function(e){var t=this.parse(e,{optimize:!0});return this.compile(t,{optimize:!0})};var dy=py,hy={};function my(e,t){var r=qf.createKey(String(e),t),n=[],i=t&&!1===t.cache;if(!i&&hy.hasOwnProperty(r))return hy[r];if(Array.isArray(e))for(var a=0;a<e.length;a++)n.push.apply(n,my.create(e[a],t));else n=my.create(e,t);return t&&!0===t.nodupes&&(n=Jg(n)),i||(hy[r]=n),n}function gy(e,t,r,n){var i=qf.createKey(e+":"+t,r);if(r&&!1===r.cache)return my.clearCache(),n(t,r);if(hy.hasOwnProperty(i))return hy[i];var a=n(t,r);return hy[i]=a,a}my.expand=function(e,t){return my.create(e,ef({},t,{expand:!0}))},my.optimize=function(e,t){return my.create(e,t)},my.create=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");var r=t&&t.maxLength||65536;if(e.length>=r)throw new Error("expected pattern to be less than "+r+" characters");return gy("create",e,t,(function(){if(""===e||e.length<3)return[e];if(qf.isEmptySets(e))return[];if(qf.isQuotedString(e))return[e.slice(1,-1)];var r=new dy(t),n=t&&!0===t.expand?r.expand(e,t):r.optimize(e,t),i=n.output;return t&&!0===t.noempty&&(i=i.filter(Boolean)),t&&!0===t.nodupes&&(i=Jg(i)),Object.defineProperty(i,"result",{enumerable:!1,value:n}),i}))},my.makeRe=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");var r=t&&t.maxLength||65536;if(e.length>=r)throw new Error("expected pattern to be less than "+r+" characters");return gy("makeRe",e,t,(function(){var r=my(e,t),n=ef({strictErrors:!1},t);return Zg(r,n)}))},my.parse=function(e,t){return new dy(t).parse(e,t)},my.compile=function(e,t){return new dy(t).compile(e,t)},my.clearCache=function(){hy=my.cache={}},my.Braces=dy,my.compilers=Uf,my.parsers=ev,my.cache=hy;var fy=my,vy=Object.assign||function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");wy(e)||(e={});for(var t=1;t<arguments.length;t++){var r=arguments[t];yy(r)&&(r=xy(r)),wy(r)&&(by(e,r),zm(e,r))}return e};function by(e,t){for(var r in t)zy(t,r)&&(e[r]=t[r])}function yy(e){return e&&"string"==typeof e}function xy(e){var t={};for(var r in e)t[r]=e[r];return t}function wy(e){return e&&"object"==typeof e||function(e){return wm(e)||"function"==typeof e||Array.isArray(e)}(e)}function zy(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var ky,Ay=function(e,t){function r(){return t&&"string"==typeof t.slash?t.slash:t&&"function"==typeof t.slash?t.slash.call(e):"\\\\/"}function n(){return t&&"string"==typeof t.star?t.star:t&&"function"==typeof t.star?t.star.call(e):"[^"+r()+"]*?"}var i=e.ast=e.parser.ast;i.state=e.parser.state,e.compiler.state=i.state,e.compiler.set("not",(function(e){var t=this.prev();return!0===this.options.nonegate||"bos"!==t.type?this.emit("\\"+e.val,e):this.emit(e.val,e)})).set("escape",(function(e){return this.options.unescape&&/^[-\w_.]/.test(e.val)?this.emit(e.val,e):this.emit("\\"+e.val,e)})).set("quoted",(function(e){return this.emit(e.val,e)})).set("dollar",(function(e){return"bracket"===e.parent.type?this.emit(e.val,e):this.emit("\\"+e.val,e)})).set("dot",(function(e){return!0===e.dotfiles&&(this.dotfiles=!0),this.emit("\\"+e.val,e)})).set("backslash",(function(e){return this.emit(e.val,e)})).set("slash",(function(e,t,n){for(var i="["+r()+"]",a=e.parent,o=this.prev();"paren"===a.type&&!a.hasSlash;)a.hasSlash=!0,a=a.parent;return o.addQmark&&(i+="?"),"\\b"===e.rest.slice(0,2)?this.emit(i,e):"**"===e.parsed||"./**"===e.parsed?(this.output="(?:"+this.output,this.emit(i+")?",e)):"!**"===e.parsed&&!0!==this.options.nonegate?this.emit(i+"?\\b",e):this.emit(i,e)})).set("bracket",(function(e){var t=e.close,r=e.escaped?"\\[":"[",n=e.negated,i=e.inner,a=e.val;return!0===e.escaped&&(i=i.replace(/\\?(\W)/g,"\\$1"),n=""),"]-"===i&&(i="\\]\\-"),n&&-1===i.indexOf(".")&&(i+="."),n&&-1===i.indexOf("/")&&(i+="/"),a=r+n+i+t,this.emit(a,e)})).set("square",(function(e){var t=(/^\W/.test(e.val)?"\\":"")+e.val;return this.emit(t,e)})).set("qmark",(function(e){var t=this.prev(),r="[^.\\\\/]";if((this.options.dot||"bos"!==t.type&&"slash"!==t.type)&&(r="[^\\\\/]"),"("===e.parsed.slice(-1)){var n=e.rest.charAt(0);if("!"===n||"="===n||":"===n)return this.emit(e.val,e)}return e.val.length>1&&(r+="{"+e.val.length+"}"),this.emit(r,e)})).set("plus",(function(e){var t=e.parsed.slice(-1);if("]"===t||")"===t)return this.emit(e.val,e);if(!this.output||/[?*+]/.test(r)&&"bracket"!==e.parent.type)return this.emit("\\+",e);var r=this.output.slice(-1);return/\w/.test(r)&&!e.inside?this.emit("+\\+?",e):this.emit("+",e)})).set("globstar",(function(e,t,i){this.output||(this.state.leadingGlobstar=!0);var a=this.prev(),o=this.prev(2),s=this.next(),l=this.next(2),c=a.type,u=e.val;"slash"===a.type&&"slash"===s.type&&"text"===o.type&&(this.output+="?","text"!==l.type&&(this.output+="\\b"));var p=e.parsed;"!"===p.charAt(0)&&(p=p.slice(1));var d=e.isInside.paren||e.isInside.brace;return u=p&&"slash"!==c&&"bos"!==c&&!d?n():!0!==this.options.dot?"(?:(?!(?:["+r()+"]|^)\\.).)*?":"(?:(?!(?:["+r()+"]|^)(?:\\.{1,2})($|["+r()+"]))(?!\\.{2}).)*?","slash"!==c&&"bos"!==c||!0===this.options.dot||(u="(?!\\.)"+u),"slash"===a.type&&"slash"===s.type&&"text"!==o.type&&("text"!==l.type&&"star"!==l.type||(e.addQmark=!0)),this.options.capture&&(u="("+u+")"),this.emit(u,e)})).set("star",(function(e,t,i){var a=t[i-2]||{},o=this.prev(),s=this.next(),l=o.type;function c(e){return"bos"===e.type||"slash"===e.type}if(""===this.output&&!0!==this.options.contains&&(this.output="(?!["+r()+"])"),"bracket"===l&&!1===this.options.bash){var u=s&&"bracket"===s.type?n():"*?";if(!o.nodes||"posix"!==o.nodes[1].type)return this.emit(u,e)}var p=this.dotfiles||"text"===l||"escape"===l?"":this.options.dot?"(?!(?:^|["+r()+"])\\.{1,2}(?:$|["+r()+"]))":"(?!\\.)";c(o)||c(a)&&"not"===l?p+="(?!\\.)"!==p?"(?!(\\.{2}|\\.["+r()+"]))(?=.)":"(?=.)":"(?!\\.)"===p&&(p=""),"not"===o.type&&"bos"===a.type&&!0===this.options.dot&&(this.output="(?!\\.)"+this.output);var d=p+n();return this.options.capture&&(d="("+d+")"),this.emit(d,e)})).set("text",(function(e){return this.emit(e.val,e)})).set("eos",(function(e){var t=this.prev(),n=e.val;return this.output="(?:\\.["+r()+"](?=.))?"+this.output,this.state.metachar&&"qmark"!==t.type&&"slash"!==t.type&&(n+=this.options.contains?"["+r()+"]?":"(?:["+r()+"]|$)"),this.emit(n,e)})),t&&"function"==typeof t.compilers&&t.compilers(e.compiler)},Cy="[\\[!*+?$^\"'.\\\\/]+",Sy=function(e){if(ky)return ky;var t={contains:!0,strictClose:!1},r=Gg.create(e,t),n=Zg("^(?:[*]\\((?=.)|"+r+")",t);return ky=n}(Cy),_y=function(e,t){var r=e.parser,n=r.options;r.state={slashes:0,paths:[]},r.ast.state=r.state,r.capture("prefix",(function(){this.parsed||this.match(/^\.[\\/]/)&&(this.state.strictOpen=!!this.options.strictOpen,this.state.addPrefix=!0)})).capture("escape",(function(){if(!this.isInside("bracket")){var e=this.position(),t=this.match(/^(?:\\(.)|([$^]))/);if(t)return e({type:"escape",val:t[2]||t[1]})}})).capture("quoted",(function(){var e=this.position(),t=this.match(/^["']/);if(t){var r=t[0];if(-1===this.input.indexOf(r))return e({type:"escape",val:r});var n=function(e,t){var r=e.charAt(0),n={len:1,val:"",esc:""},i=0;function a(){"\\"!==r&&(n.esc+="\\"+r,n.val+=r),r=e.charAt(++i),n.len++,"\\"===r&&(a(),a())}for(;r&&r!==t;)a();return n}(this.input,r);return this.consume(n.len),e({type:"quoted",val:n.esc})}})).capture("not",(function(){var e=this.parsed,t=this.position(),r=this.match(this.notRegex||/^!+/);if(r){var n=r[0],i=n.length%2==1;return""!==e||i||(n=""),""===e&&i&&!0!==this.options.nonegate&&(this.bos.val="(?!^(?:",this.append=")$).*",n=""),t({type:"not",val:n})}})).capture("dot",(function(){var e=this.parsed,t=this.position(),r=this.match(/^\.+/);if(r){var n=r[0];return this.state.dot="."===n&&(""===e||"/"===e.slice(-1)),t({type:"dot",dotfiles:this.state.dot,val:n})}})).capture("plus",/^\+(?!\()/).capture("qmark",(function(){var e=this.parsed,t=this.position(),r=this.match(/^\?+(?!\()/);if(r)return this.state.metachar=!0,this.state.qmark=!0,t({type:"qmark",parsed:e,val:r[0]})})).capture("globstar",(function(){var e=this.parsed,t=this.position();if(this.match(/^\*{2}(?![*(])(?=[,)/]|$)/)){var r=!0!==n.noglobstar?"globstar":"star",i=t({type:r,parsed:e});for(this.state.metachar=!0;"/**/"===this.input.slice(0,4);)this.input=this.input.slice(3);return i.isInside={brace:this.isInside("brace"),paren:this.isInside("paren")},"globstar"===r?(this.state.globstar=!0,i.val="**"):(this.state.star=!0,i.val="*"),i}})).capture("star",(function(){var e=this.position(),t=this.match(/^(?:\*(?![*(])|[*]{3,}(?!\()|[*]{2}(?![(/]|$)|\*(?=\*\())/);if(t)return this.state.metachar=!0,this.state.star=!0,e({type:"star",val:t[0]})})).capture("slash",(function(){var e=this.position(),t=this.match(/^\//);if(t)return this.state.slashes++,e({type:"slash",val:t[0]})})).capture("backslash",(function(){var e=this.position(),t=this.match(/^\\(?![*+?(){}[\]'"])/);if(t){var r=t[0];return this.isInside("bracket")?r="\\":r.length>1&&(r="\\\\"),e({type:"backslash",val:r})}})).capture("square",(function(){if(!this.isInside("bracket")){var e=this.position(),t=this.match(/^\[([^!^\\])\]/);if(t)return e({type:"square",val:t[1]})}})).capture("bracket",(function(){var e=this.position(),t=this.match(/^(?:\[([!^]?)([^\]]+|\]-)(\]|[^*+?]+)|\[)/);if(t){var r=t[0],n=t[1]?"^":"",i=(t[2]||"").replace(/\\\\+/,"\\\\"),a=t[3]||"";t[2]&&i.length<t[2].length&&(r=r.replace(/\\\\+/,"\\\\"));var o=this.input.slice(0,2);if(""===i&&"\\]"===o){i+=o,this.consume(2);for(var s,l=this.input,c=-1;s=l[++c];){if(this.consume(1),"]"===s){a=s;break}i+=s}}return e({type:"bracket",val:r,escaped:"]"!==a,negated:n,inner:i,close:a})}})).capture("text",(function(){if(!this.isInside("bracket")){var e=this.position(),t=this.match(Sy);if(t&&t[0])return e({type:"text",val:t[0]})}})),t&&"function"==typeof t.parsers&&t.parsers(e.parser)};_y.not=Cy;var My=Mc((function(e,t){function r(e){this.caches=e||{}}r.prototype={cache:function(e){return this.caches[e]||(this.caches[e]=new Qb)},set:function(e,t,r){var n=this.cache(e);return n.set(t,r),n},has:function(e,t){return void 0!==this.get(e,t)},get:function(e,t){var r=this.cache(e);return"string"==typeof t?r.get(t):r}},e.exports=r})),Ty=new My,$y=Mc((function(e,t){!function(r){t?e.exports=r():"undefined"!=typeof window?window.isWindows=r():void 0!==Sc?Sc.isWindows=r():"undefined"!=typeof self?self.isWindows=r():this.isWindows=r()}((function(){return function(){return vh&&("win32"===vh.platform||/^(msys|cygwin)$/.test(vh.env.OSTYPE))}}))})),Ly="undefined"!=typeof Reflect&&Reflect.defineProperty?Reflect.defineProperty:Object.defineProperty,Ey=function(e,t,r){if(!Np(e)&&"function"!=typeof e&&!Array.isArray(e))throw new TypeError("expected an object, function, or array");if("string"!=typeof t)throw new TypeError('expected "key" to be a string');return Xp(r)?(Ly(e,t,r),e):(Ly(e,t,{configurable:!0,enumerable:!1,writable:!0,value:r}),e)},Iy=function(e){for(var t=arguments.length,r=0;++r<t;)e=By(e,arguments[r]);return e};function By(e,t){if(!Array.isArray(t))return e.slice();for(var r=t.length,n=e.length,i=-1,a=[];++i<n;){for(var o=e[i],s=!1,l=0;l<r;l++)if(o===t[l]){s=!0;break}!1===s&&a.push(o)}return a}var Dy=function(e,t){if(!Np(e)&&"function"!=typeof e)return{};var r={};if("string"==typeof t)return t in e&&(r[t]=e[t]),r;for(var n=t.length,i=-1;++i<n;){var a=t[i];a in e&&(r[a]=e[a])}return r},Hy=Mc((function(e){var t=e.exports,r=$y();t.define=Ey,t.diff=Iy,t.extend=vy,t.pick=Dy,t.typeOf=jp,t.unique=Jg,t.isEmptyString=function(e){return""===String(e)||"./"===String(e)},t.isWindows=function(){return"\\"===Jm.sep||!0===r},t.last=function(e,t){return e[e.length-(t||1)]},t.instantiate=function(e,r){var n;return n="object"===t.typeOf(e)&&e.snapdragon?e.snapdragon:"object"===t.typeOf(r)&&r.snapdragon?r.snapdragon:new ly(r),t.define(n,"parse",(function(e,r){var n=ly.prototype.parse.call(this,e,r);n.input=e;var i=this.parser.stack.pop();if(i&&!0!==this.options.strictErrors){var a=i.nodes[0],o=i.nodes[1];if("bracket"===i.type)"["===o.val.charAt(0)&&(o.val="\\"+o.val);else{a.val="\\"+a.val;var s=a.parent.nodes[1];"star"===s.type&&(s.loose=!0)}}return t.define(n,"parser",this.parser),n})),n},t.createKey=function(e,t){if(void 0===t)return e;var r=e;for(var n in t)t.hasOwnProperty(n)&&(r+=";"+n+"="+String(t[n]));return r},t.arrayify=function(e){return"string"==typeof e?[e]:e?Array.isArray(e)?e:[e]:[]},t.isString=function(e){return"string"==typeof e},t.isRegex=function(e){return"regexp"===t.typeOf(e)},t.isObject=function(e){return"object"===t.typeOf(e)},t.escapeRegex=function(e){return e.replace(/[-[\]{}()^$|*+?.\\/\s]/g,"\\$&")},t.combineDupes=function(e,r){r=(r=t.arrayify(r).join("|").split("|")).map((function(e){return e.replace(/\\?([+*\\/])/g,"\\$1")}));var n=r.join("|"),i=new RegExp("("+n+")(?=\\1)","g");return e.replace(i,"")},t.hasSpecialChars=function(e){return/(?:(?:(^|\/)[!.])|[*?+()|[\]{}]|[+@]\()/.test(e)},t.toPosixPath=function(e){return e.replace(/\\+/g,"/")},t.unescape=function(e){return t.toPosixPath(e.replace(/\\(?=[*+?!.])/g,""))},t.stripDrive=function(e){return t.isWindows()?e.replace(/^[a-z]:[\\/]+?/i,"/"):e},t.stripPrefix=function(e){return"."!==e.charAt(0)||"/"!==e.charAt(1)&&"\\"!==e.charAt(1)?e:e.slice(2)},t.isSimpleChar=function(e){return""===e.trim()||"."===e},t.isSlash=function(e){return"/"===e||"\\/"===e||"\\"===e||"\\\\"===e},t.matchPath=function(e,r){return r&&r.contains?t.containsPattern(e,r):t.equalsPattern(e,r)},t._equals=function(e,t,r){return r===e||r===t},t._contains=function(e,t,r){return-1!==e.indexOf(r)||-1!==t.indexOf(r)},t.equalsPattern=function(e,r){var n=t.unixify(r);return r=r||{},function(i){var a=t._equals(i,n(i),e);if(!0===a||!0!==r.nocase)return a;var o=i.toLowerCase();return t._equals(o,n(o),e)}},t.containsPattern=function(e,r){var n=t.unixify(r);return r=r||{},function(i){var a=t._contains(i,n(i),e);if(!0===a||!0!==r.nocase)return a;var o=i.toLowerCase();return t._contains(o,n(o),e)}},t.matchBasename=function(e){return function(t){return e.test(t)||e.test(Jm.basename(t))}},t.identity=function(e){return e},t.value=function(e,t,r){return r&&!1===r.unixify?e:r&&"function"==typeof r.unixify?r.unixify(e):t(e)},t.unixify=function(e){var r=e||{};return function(e){return!1!==r.stripPrefix&&(e=t.stripPrefix(e)),!0===r.unescape&&(e=t.unescape(e)),(!0===r.unixify||t.isWindows())&&(e=t.toPosixPath(e)),e}}}));function Oy(e,t,r){t=Hy.arrayify(t),e=Hy.arrayify(e);var n=t.length;if(0===e.length||0===n)return[];if(1===n)return Oy.match(e,t[0],r);for(var i=!1,a=[],o=[],s=-1;++s<n;){var l=t[s];"string"==typeof l&&33===l.charCodeAt(0)?(a.push.apply(a,Oy.match(e,l.slice(1),r)),i=!0):o.push.apply(o,Oy.match(e,l,r))}if(i&&0===o.length)if(r&&!1===r.unixify)o=e.slice();else for(var c=Hy.unixify(r),u=0;u<e.length;u++)o.push(c(e[u]));var p=Hy.diff(o,a);return r&&!1===r.nodupes?p:Hy.unique(p)}function Py(e,t,r,n){var i=Hy.createKey(e+"="+t,r);if(r&&!1===r.cache)return n(t,r);if(Ty.has(e,i))return Ty.get(e,i);var a=n(t,r);return Ty.set(e,i,a),a}Oy.match=function(e,t,r){if(Array.isArray(t))throw new TypeError("expected pattern to be a string");for(var n=Hy.unixify(r),i=Py("match",t,r,Oy.matcher),a=[],o=(e=Hy.arrayify(e)).length,s=-1;++s<o;){var l=e[s];(l===t||i(l))&&a.push(Hy.value(l,n,r))}if(void 0===r)return Hy.unique(a);if(0===a.length){if(!0===r.failglob)throw new Error('no matches found for "'+t+'"');if(!0===r.nonull||!0===r.nullglob)return[r.unescape?Hy.unescape(t):t]}return r.ignore&&(a=Oy.not(a,r.ignore,r)),!1!==r.nodupes?Hy.unique(a):a},Oy.isMatch=function(e,t,r){if("string"!=typeof e)throw new TypeError('expected a string: "'+sm.inspect(e)+'"');return!Hy.isEmptyString(e)&&!Hy.isEmptyString(t)&&(!!Hy.equalsPattern(r)(e)||Py("isMatch",t,r,Oy.matcher)(e))},Oy.some=function(e,t,r){"string"==typeof e&&(e=[e]);for(var n=0;n<e.length;n++)if(1===Oy(e[n],t,r).length)return!0;return!1},Oy.every=function(e,t,r){"string"==typeof e&&(e=[e]);for(var n=0;n<e.length;n++)if(1!==Oy(e[n],t,r).length)return!1;return!0},Oy.any=function(e,t,r){if("string"!=typeof e)throw new TypeError('expected a string: "'+sm.inspect(e)+'"');if(Hy.isEmptyString(e)||Hy.isEmptyString(t))return!1;"string"==typeof t&&(t=[t]);for(var n=0;n<t.length;n++)if(Oy.isMatch(e,t[n],r))return!0;return!1},Oy.all=function(e,t,r){if("string"!=typeof e)throw new TypeError('expected a string: "'+sm.inspect(e)+'"');"string"==typeof t&&(t=[t]);for(var n=0;n<t.length;n++)if(!Oy.isMatch(e,t[n],r))return!1;return!0},Oy.not=function(e,t,r){var n=vy({},r),i=n.ignore;delete n.ignore,e=Hy.arrayify(e);var a=Hy.diff(e,Oy(e,t,n));return i&&(a=Hy.diff(a,Oy(e,i))),!1!==n.nodupes?Hy.unique(a):a},Oy.contains=function(e,t,r){if("string"!=typeof e)throw new TypeError('expected a string: "'+sm.inspect(e)+'"');if("string"==typeof t){if(Hy.isEmptyString(e)||Hy.isEmptyString(t))return!1;if(Hy.equalsPattern(t,r)(e))return!0;if(Hy.containsPattern(t,r)(e))return!0}var n=vy({},r,{contains:!0});return Oy.any(e,t,n)},Oy.matchBase=function(e,t){return!(e&&-1!==e.indexOf("/")||!t||!0!==t.basename&&!0!==t.matchBase)},Oy.matchKeys=function(e,t,r){if(!Hy.isObject(e))throw new TypeError("expected the first argument to be an object");var n=Oy(Object.keys(e),t,r);return Hy.pick(e,n)},Oy.matcher=function e(t,r){if(Hy.isEmptyString(t))return function(){return!1};if(Array.isArray(t))return function(e,t,r){var n;return Py("compose",String(e),t,(function(){return function(i){if(!n){n=[];for(var a=0;a<e.length;a++)n.push(r(e[a],t))}for(var o=n.length;o--;)if(!0===n[o](i))return!0;return!1}}))}(t,r,e);if(t instanceof RegExp)return i(t);if(!Hy.isString(t))throw new TypeError("expected pattern to be an array, string or regex");if(!Hy.hasSpecialChars(t))return r&&!0===r.nocase&&(t=t.toLowerCase()),Hy.matchPath(t,r);var n=Oy.makeRe(t,r);if(Oy.matchBase(t,r))return Hy.matchBasename(n,r);function i(e){var t=Hy.equalsPattern(r),n=Hy.unixify(r);return function(r){return!!t(r)||!!e.test(n(r))}}var a=i(n);return Hy.define(a,"result",n.result),a},Oy.capture=function(e,t,r){var n=Oy.makeRe(e,vy({capture:!0},r)),i=Hy.unixify(r),a=Py("capture",e,r,(function(){return function(e){var t=n.exec(i(e));return t?t.slice(1):null}}));return a(t)},Oy.makeRe=function(e,t){if(e instanceof RegExp)return e;if("string"!=typeof e)throw new TypeError("expected pattern to be a string");if(e.length>65536)throw new Error("expected pattern to be less than 65536 characters");return Py("makeRe",e,t,(function(){var r=Hy.extend({wrap:!1},t),n=Oy.create(e,r),i=Zg(n.output,r);return Hy.define(i,"result",n),i}))},Oy.create=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");return Py("create",e,t,(function(){return Oy.compile(Oy.parse(e,t),t)}))},Oy.parse=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");return Py("parse",e,t,(function(){var r=Hy.instantiate(null,t);_y(r,t);var n=r.parse(e,t);return Hy.define(n,"snapdragon",r),n.input=e,n}))},Oy.compile=function(e,t){return"string"==typeof e&&(e=Oy.parse(e,t)),Py("compile",e.input,t,(function(){var r=Hy.instantiate(e,t);return Ay(r,t),r.compile(e,t)}))},Oy.clearCache=function(){Oy.cache.__data__={}},Oy.compilers=Ay,Oy.parsers=_y,Oy.cache=Ty;var Ry,Vy=Oy,Ny={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},Fy=function(e){e.compiler.set("escape",(function(e){return this.emit("\\"+e.val.replace(/^\\/,""),e)})).set("text",(function(e){return this.emit(e.val.replace(/([{}])/g,"\\$1"),e)})).set("posix",(function(e){if("[::]"===e.val)return this.emit("\\[::\\]",e);var t=Ny[e.inner];return void 0===t&&(t="["+e.inner+"]"),this.emit(t,e)})).set("bracket",(function(e){return this.mapVisit(e.nodes)})).set("bracket.open",(function(e){return this.emit(e.val,e)})).set("bracket.inner",(function(e){var t=e.val;if("["===t||"]"===t)return this.emit("\\"+e.val,e);if("^]"===t)return this.emit("^\\]",e);if("^"===t)return this.emit("^",e);/-/.test(t)&&!/(\d-\d|\w-\w)/.test(t)&&(t=t.split("-").join("\\-"));var r="^"===t.charAt(0);return r&&-1===t.indexOf("/")&&(t+="/"),r&&-1===t.indexOf(".")&&(t+="."),t=t.replace(/\\([1-9])/g,"$1"),this.emit(t,e)})).set("bracket.close",(function(e){var t=e.val.replace(/^\\/,"");return!0===e.parent.escaped?this.emit("\\"+t,e):this.emit(t,e)}))},jy=function(e){return e[e.length-1]},qy="(\\[(?=.*\\])|\\])+",Uy=function(e,t){if(Ry)return Ry;var r,n={contains:!0,strictClose:!1},i=Gg.create(e,n);return r=Zg("string"==typeof t?"^(?:"+t+"|"+i+")":i,n),Ry=r}(qy),Wy=function(e){e.state=e.state||{},e.parser.sets.bracket=e.parser.sets.bracket||[],e.parser.capture("escape",(function(){if(!this.isInside("bracket")){var e=this.position(),t=this.match(/^\\(.)/);if(t)return e({type:"escape",val:t[0]})}})).capture("text",(function(){if(!this.isInside("bracket")){var e=this.position(),t=this.match(Uy);if(t&&t[0])return e({type:"text",val:t[0]})}})).capture("posix",(function(){var t=this.position(),r=this.match(/^\[:(.*?):\](?=.*\])/);if(r){var n=this.isInside("bracket");return n&&e.posix++,t({type:"posix",insideBracket:n,inner:r[1],val:r[0]})}})).capture("bracket",(function(){})).capture("bracket.open",(function(){var e=this.parsed,t=this.position(),r=this.match(/^\[(?=.*\])/);if(r){var n=this.prev(),i=jy(n.nodes);if("\\"===e.slice(-1)&&!this.isInside("bracket"))return i.val=i.val.slice(0,i.val.length-1),t({type:"escape",val:r[0]});var a=t({type:"bracket.open",val:r[0]});if("bracket.open"===i.type||this.isInside("bracket"))return a.val="\\"+a.val,a.type="bracket.inner",a.escaped=!0,a;var o=t({type:"bracket",nodes:[a]});Vv(o,"parent",n),Vv(a,"parent",o),this.push("bracket",o),n.nodes.push(o)}})).capture("bracket.inner",(function(){if(this.isInside("bracket")){var e=this.position(),t=this.match(Uy);if(t&&t[0]){var r=this.input.charAt(0),n=t[0],i=e({type:"bracket.inner",val:n});if("\\\\"===n)return i;var a=n.charAt(0),o=n.slice(-1);return"!"===a&&(n="^"+n.slice(1)),("\\"===o||"^"===n&&"]"===r)&&(n+=this.input[0],this.consume(1)),i.val=n,i}}})).capture("bracket.close",(function(){var e=this.parsed,t=this.position(),r=this.match(/^\]/);if(r){var n=this.prev(),i=jy(n.nodes);if("\\"===e.slice(-1)&&!this.isInside("bracket"))return i.val=i.val.slice(0,i.val.length-1),t({type:"escape",val:r[0]});var a=t({type:"bracket.close",rest:this.input,val:r[0]});if("bracket.open"===i.type)return a.type="bracket.inner",a.escaped=!0,a;var o=this.pop("bracket");if(!this.isType(o,"bracket")){if(this.options.strict)throw new Error('missing opening "["');return a.type="bracket.inner",a.escaped=!0,a}o.nodes.push(a),Vv(a,"parent",o)}}))};Wy.TEXT_REGEX=qy;var Xy=1e3,Gy=6e4,Yy=60*Gy,Zy=24*Yy,Ky=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"days":case"day":case"d":return r*Zy;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Yy;case"minutes":case"minute":case"mins":case"min":case"m":return r*Gy;case"seconds":case"second":case"secs":case"sec":case"s":return r*Xy;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===r&&!1===isNaN(e))return t.long?function(e){return Jy(e,Zy,"day")||Jy(e,Yy,"hour")||Jy(e,Gy,"minute")||Jy(e,Xy,"second")||e+" ms"}(e):function(e){return e>=Zy?Math.round(e/Zy)+"d":e>=Yy?Math.round(e/Yy)+"h":e>=Gy?Math.round(e/Gy)+"m":e>=Xy?Math.round(e/Xy)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Jy(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}var Qy=Mc((function(e,t){var r;function n(e){function n(){if(n.enabled){var e=n,i=+new Date,a=i-(r||i);e.diff=a,e.prev=r,e.curr=i,r=i;for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var l=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(r,n){if("%%"===r)return r;l++;var i=t.formatters[n];if("function"==typeof i){var a=o[l];r=i.call(e,a),o.splice(l,1),l--}return r})),t.formatArgs.call(e,o),(n.log||t.log||console.log.bind(console)).apply(e,o)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var r,n=0;for(r in e)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=n.debug=n.default=n).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length,i=0;i<n;i++)r[i]&&("-"===(e=r[i].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=Ky,t.names=[],t.skips=[],t.formatters={}})),ex=Mc((function(e,t){function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==vh&&"env"in vh&&(e=vh.env.DEBUG),e}(t=e.exports=Qy).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),r){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0,a=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(i++,"%c"===e&&(a=i))})),e.splice(a,0,n)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())})),tx=ex("expand-brackets");function rx(e,t){return tx("initializing from <%s>","/home/runner/work/budibase-deploys/budibase-deploys/node_modules/expand-brackets/index.js"),rx.create(e,t).output}rx.match=function(e,t,r){e=[].concat(e);for(var n=mv({},r),i=rx.matcher(t,n),a=e.length,o=-1,s=[];++o<a;){var l=e[o];i(l)&&s.push(l)}if(0===s.length){if(!0===n.failglob)throw new Error('no matches found for "'+t+'"');if(!0===n.nonull||!0===n.nullglob)return[t.split("\\").join("")]}return s},rx.isMatch=function(e,t,r){return rx.matcher(t,r)(e)},rx.matcher=function(e,t){var r=rx.makeRe(e,t);return function(e){return r.test(e)}},rx.makeRe=function(e,t){var r=rx.create(e,t),n=mv({strictErrors:!1},t);return Zg(r.output,n)},rx.create=function(e,t){var r=t&&t.snapdragon||new ly(t);Fy(r),Wy(r);var n=r.parse(e,t);n.input=e;var i=r.compile(n,t);return i.input=e,i},rx.compilers=Fy,rx.parsers=Wy;var nx=rx,ix=function(e){function t(){return"function"==typeof e.options.star?e.options.star.apply(this,arguments):"string"==typeof e.options.star?e.options.star:".*?"}e.use(nx.compilers),e.compiler.set("escape",(function(e){return this.emit(e.val,e)})).set("dot",(function(e){return this.emit("\\"+e.val,e)})).set("qmark",(function(e){var t="[^\\\\/.]",r=this.prev();if("("===e.parsed.slice(-1)){var n=e.rest.charAt(0);return"!"!==n&&"="!==n&&":"!==n?this.emit(t,e):this.emit(e.val,e)}return"text"===r.type&&r.val||e.val.length>1&&(t+="{"+e.val.length+"}"),this.emit(t,e)})).set("plus",(function(e){var t=e.parsed.slice(-1);if("]"===t||")"===t)return this.emit(e.val,e);var r=this.output.slice(-1);return!this.output||/[?*+]/.test(r)&&"bracket"!==e.parent.type?this.emit("\\+",e):/\w/.test(r)&&!e.inside?this.emit("+\\+?",e):this.emit("+",e)})).set("star",(function(e){var r=this.prev(),n="text"!==r.type&&"escape"!==r.type?"(?!\\.)":"";return this.emit(n+t.call(this,e),e)})).set("paren",(function(e){return this.mapVisit(e.nodes)})).set("paren.open",(function(e){var t=this.options.capture?"(":"";switch(e.parent.prefix){case"!":case"^":return this.emit(t+"(?:(?!(?:",e);case"*":case"+":case"?":case"@":return this.emit(t+"(?:",e);default:var r=e.val;return!0===this.options.bash?r="\\"+r:this.options.capture||"("!==r||"?"===e.parent.rest[0]||(r+="?:"),this.emit(r,e)}})).set("paren.close",(function(e){var r=this.options.capture?")":"";switch(e.prefix){case"!":case"^":var n=/^(\)|$)/.test(e.rest)?"$":"",i=t.call(this,e);return e.parent.hasSlash&&!this.options.star&&!1!==this.options.slash&&(i=".*?"),this.emit(n+"))"+i+")"+r,e);case"*":case"+":case"?":return this.emit(")"+e.prefix+r,e);case"@":return this.emit(")"+r,e);default:var a=(!0===this.options.bash?"\\":"")+")";return this.emit(a,e)}})).set("text",(function(e){var t=e.val.replace(/[\[\]]/g,"\\$&");return this.emit(t,e)}))},ax=function(e,t,r){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("expected an object or function.");if("string"!=typeof t)throw new TypeError("expected `prop` to be a string.");return Xp(r)&&("set"in r||"get"in r)?Object.defineProperty(e,t,r):Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:r})},ox=Mc((function(e){var t=e.exports,r=t.cache=new My;t.arrayify=function(e){return Array.isArray(e)?e:[e]},t.memoize=function(e,n,i,a){var o=t.createKey(e+n,i);if(r.has(e,o))return r.get(e,o);var s=a(n,i);return i&&!1===i.cache||r.set(e,o,s),s},t.createKey=function(e,t){var r=e;if(void 0===t)return r;for(var n in t)r+=";"+n+"="+String(t[n]);return r},t.createRegex=function(e){return Gg(e,{contains:!0,strictClose:!1})}})),sx="([!@*?+]?\\(|\\)|[*?.+\\\\]|\\[:?(?=.*\\])|:?\\])+",lx=ox.createRegex(sx),cx=function(e){e.state=e.state||{},e.use(nx.parsers),e.parser.sets.paren=e.parser.sets.paren||[],e.parser.capture("paren.open",(function(){var e=this.parsed,t=this.position(),r=this.match(/^([!@*?+])?\(/);if(r){var n=this.prev(),i=r[1],a=t({type:"paren.open",parsed:e,val:r[0]}),o=t({type:"paren",prefix:i,nodes:[a]});"!"===i&&"paren"===n.type&&"!"===n.prefix&&(n.prefix="@",o.prefix="@"),ax(o,"rest",this.input),ax(o,"parsed",e),ax(o,"parent",n),ax(a,"parent",o),this.push("paren",o),n.nodes.push(o)}})).capture("paren.close",(function(){var e=this.parsed,t=this.position(),r=this.match(/^\)/);if(r){var n=this.pop("paren"),i=t({type:"paren.close",rest:this.input,parsed:e,val:r[0]});if(!this.isType(n,"paren")){if(this.options.strict)throw new Error('missing opening paren: "("');return i.escaped=!0,i}i.prefix=n.prefix,n.nodes.push(i),ax(i,"parent",n)}})).capture("escape",(function(){var e=this.position(),t=this.match(/^\\(.)/);if(t)return e({type:"escape",val:t[0],ch:t[1]})})).capture("qmark",(function(){var t=this.parsed,r=this.position(),n=this.match(/^\?+(?!\()/);if(n)return e.state.metachar=!0,r({type:"qmark",rest:this.input,parsed:t,val:n[0]})})).capture("star",/^\*(?!\()/).capture("plus",/^\+(?!\()/).capture("dot",/^\./).capture("text",lx)};cx.TEXT_REGEX=sx;var ux=function(e){this.options=mv({source:"extglob"},e),this.snapdragon=this.options.snapdragon||new ly(this.options),this.snapdragon.patterns=this.snapdragon.patterns||{},this.compiler=this.snapdragon.compiler,this.parser=this.snapdragon.parser,ix(this.snapdragon),cx(this.snapdragon),ax(this.snapdragon,"parse",(function(e,t){var r=ly.prototype.parse.apply(this,arguments);r.input=e;var n=this.parser.stack.pop();if(n&&!0!==this.options.strict){var i=n.nodes[0];i.val="\\"+i.val;var a=i.parent.nodes[1];"star"===a.type&&(a.loose=!0)}return ax(r,"parser",this.parser),r})),ax(this,"parse",(function(e,t){return this.snapdragon.parse.apply(this.snapdragon,arguments)})),ax(this,"compile",(function(e,t){return this.snapdragon.compile.apply(this.snapdragon,arguments)}))};function px(e,t){return px.create(e,t).output}px.match=function(e,t,r){if("string"!=typeof t)throw new TypeError("expected pattern to be a string");e=ox.arrayify(e);for(var n=px.matcher(t,r),i=e.length,a=-1,o=[];++a<i;){var s=e[a];n(s)&&o.push(s)}if(void 0===r)return Jg(o);if(0===o.length){if(!0===r.failglob)throw new Error('no matches found for "'+t+'"');if(!0===r.nonull||!0===r.nullglob)return[t.split("\\").join("")]}return!1!==r.nodupes?Jg(o):o},px.isMatch=function(e,t,r){if("string"!=typeof t)throw new TypeError("expected pattern to be a string");if("string"!=typeof e)throw new TypeError("expected a string");return t===e||(""===t||" "===t||"."===t?t===e:ox.memoize("isMatch",t,r,px.matcher)(e))},px.contains=function(e,t,r){if("string"!=typeof e)throw new TypeError("expected a string");if(""===t||" "===t||"."===t)return t===e;var n=mv({},r,{contains:!0});return n.strictClose=!1,n.strictOpen=!1,px.isMatch(e,t,n)},px.matcher=function(e,t){if("string"!=typeof e)throw new TypeError("expected pattern to be a string");return ox.memoize("matcher",e,t,(function(){var r=px.makeRe(e,t);return function(e){return r.test(e)}}))},px.create=function(e,t){if("string"!=typeof e)throw new TypeError("expected pattern to be a string");return ox.memoize("create",e,t,(function(){var r=new ux(t),n=r.parse(e,t);return r.compile(n,t)}))},px.capture=function(e,t,r){var n=px.makeRe(e,mv({capture:!0},r)),i=ox.memoize("capture",e,r,(function(){return function(e){var t=n.exec(e);return t?t.slice(1):null}}));return i(t)},px.makeRe=function(e,t){if(e instanceof RegExp)return e;if("string"!=typeof e)throw new TypeError("expected pattern to be a string");if(e.length>65536)throw new Error("expected pattern to be less than 65536 characters");var r=ox.memoize("makeRe",e,t,(function(){var r=mv({strictErrors:!1},t);!0===r.strictErrors&&(r.strict=!0);var n=px.create(e,r);return Zg(n.output,r)}));if(r.source.length>65536)throw new SyntaxError("potentially malicious regex detected");return r},px.cache=ox.cache,px.clearCache=function(){px.cache.__data__={}},px.Extglob=ux,px.compilers=ix,px.parsers=cx;var dx,hx=px,mx=function(e){var t=e.compiler.compilers,r=e.options;e.use(Vy.compilers);var n=t.escape,i=t.qmark,a=t.slash,o=t.star,s=t.text,l=t.plus,c=t.dot;!1===r.extglob||!0===r.noext?e.compiler.use(gx):e.use(hx.compilers),e.use((function(){this.options.star=this.options.star||function(){return"[^\\\\/]*?"}})),e.compiler.set("dot",c).set("escape",n).set("plus",l).set("slash",a).set("qmark",i).set("star",o).set("text",s)};function gx(e){function t(e,r){return e.nodes?function(e,r){for(var n=e.length,i=-1;++i<n;)t(e[i],r)}(e.nodes,r):r(e)}e.set("paren",(function(e){var r="";return t(e,(function(e){e.val&&(r+=(/^\W/.test(e.val)?"\\":"")+e.val)})),this.emit(r,e)}))}var fx=function(e){var t=e.parser.parsers;e.use(Vy.parsers);var r=t.escape,n=t.slash,i=t.qmark,a=t.plus,o=t.star,s=t.dot;e.use(hx.parsers),e.parser.use((function(){this.notRegex=/^\!+(?!\()/})).capture("escape",r).capture("slash",n).capture("qmark",i).capture("star",o).capture("plus",a).capture("dot",s).capture("text",(function(){if(!this.isInside("bracket")){var e=this.position(),t=this.match(function(e){return dx||(t=Gg.create("([!@*?+]?\\(|\\)|\\[:?(?=.*?:?\\])|:?\\]|[*+?!^$.\\\\/])+",{contains:!0,strictClose:!1}),dx=Zg("(?:[\\^]|\\\\|"+t+")",{strictClose:!1}));var t}(this.options));if(t&&t[0])return e({type:"text",val:t[0].replace(/([[\]^$])/g,"\\$1")})}}))},vx=new My,bx=Mc((function(e){var t=e.exports;t.define=Yp,t.diff=Iy,t.extend=km,t.pick=Dy,t.typeOf=jp,t.unique=Jg,t.isWindows=function(){return"\\"===Jm.sep||"win32"===vh.platform},t.instantiate=function(e,r){var n;return n="object"===t.typeOf(e)&&e.snapdragon?e.snapdragon:"object"===t.typeOf(r)&&r.snapdragon?r.snapdragon:new ly(r),t.define(n,"parse",(function(e,r){var n=ly.prototype.parse.apply(this,arguments);n.input=e;var i=this.parser.stack.pop();if(i&&!0!==this.options.strictErrors){var a=i.nodes[0],o=i.nodes[1];if("bracket"===i.type)"["===o.val.charAt(0)&&(o.val="\\"+o.val);else{a.val="\\"+a.val;var s=a.parent.nodes[1];"star"===s.type&&(s.loose=!0)}}return t.define(n,"parser",this.parser),n})),n},t.createKey=function(e,r){if("object"!==t.typeOf(r))return e;for(var n=e,i=Object.keys(r),a=0;a<i.length;a++){var o=i[a];n+=";"+o+"="+String(r[o])}return n},t.arrayify=function(e){return"string"==typeof e?[e]:e?Array.isArray(e)?e:[e]:[]},t.isString=function(e){return"string"==typeof e},t.isObject=function(e){return"object"===t.typeOf(e)},t.hasSpecialChars=function(e){return/(?:(?:(^|\/)[!.])|[*?+()|\[\]{}]|[+@]\()/.test(e)},t.escapeRegex=function(e){return e.replace(/[-[\]{}()^$|*+?.\\\/\s]/g,"\\$&")},t.toPosixPath=function(e){return e.replace(/\\+/g,"/")},t.unescape=function(e){return t.toPosixPath(e.replace(/\\(?=[*+?!.])/g,""))},t.stripPrefix=function(e){if("."!==e.charAt(0))return e;var r=e.charAt(1);return t.isSlash(r)?e.slice(2):e},t.isSlash=function(e){return"/"===e||"\\/"===e||"\\"===e||"\\\\"===e},t.matchPath=function(e,r){return r&&r.contains?t.containsPattern(e,r):t.equalsPattern(e,r)},t._equals=function(e,t,r){return r===e||r===t},t._contains=function(e,t,r){return-1!==e.indexOf(r)||-1!==t.indexOf(r)},t.equalsPattern=function(e,r){var n=t.unixify(r);return r=r||{},function(i){var a=t._equals(i,n(i),e);if(!0===a||!0!==r.nocase)return a;var o=i.toLowerCase();return t._equals(o,n(o),e)}},t.containsPattern=function(e,r){var n=t.unixify(r);return r=r||{},function(i){var a=t._contains(i,n(i),e);if(!0===a||!0!==r.nocase)return a;var o=i.toLowerCase();return t._contains(o,n(o),e)}},t.matchBasename=function(e){return function(t){return e.test(Jm.basename(t))}},t.value=function(e,t,r){return r&&!1===r.unixify?e:t(e)},t.unixify=function(e){return e=e||{},function(r){return(t.isWindows()||!0===e.unixify)&&(r=t.toPosixPath(r)),!1!==e.stripPrefix&&(r=t.stripPrefix(r)),!0===e.unescape&&(r=t.unescape(r)),r}}}));function yx(e,t,r){t=bx.arrayify(t),e=bx.arrayify(e);var n=t.length;if(0===e.length||0===n)return[];if(1===n)return yx.match(e,t[0],r);for(var i=[],a=[],o=-1;++o<n;){var s=t[o];"string"==typeof s&&33===s.charCodeAt(0)?i.push.apply(i,yx.match(e,s.slice(1),r)):a.push.apply(a,yx.match(e,s,r))}var l=bx.diff(a,i);return r&&!1===r.nodupes?l:bx.unique(l)}function xx(e){return""===String(e)||"./"===String(e)}function wx(e,t,r,n){var i=bx.createKey(e+"="+t,r);if(r&&!1===r.cache)return n(t,r);if(vx.has(e,i))return vx.get(e,i);var a=n(t,r);return vx.set(e,i,a),a}yx.match=function(e,t,r){if(Array.isArray(t))throw new TypeError("expected pattern to be a string");for(var n=bx.unixify(r),i=wx("match",t,r,yx.matcher),a=[],o=(e=bx.arrayify(e)).length,s=-1;++s<o;){var l=e[s];(l===t||i(l))&&a.push(bx.value(l,n,r))}if(void 0===r)return bx.unique(a);if(0===a.length){if(!0===r.failglob)throw new Error('no matches found for "'+t+'"');if(!0===r.nonull||!0===r.nullglob)return[r.unescape?bx.unescape(t):t]}return r.ignore&&(a=yx.not(a,r.ignore,r)),!1!==r.nodupes?bx.unique(a):a},yx.isMatch=function(e,t,r){if("string"!=typeof e)throw new TypeError('expected a string: "'+sm.inspect(e)+'"');return!xx(e)&&!xx(t)&&(!!bx.equalsPattern(r)(e)||wx("isMatch",t,r,yx.matcher)(e))},yx.some=function(e,t,r){"string"==typeof e&&(e=[e]);for(var n=0;n<e.length;n++)if(1===yx(e[n],t,r).length)return!0;return!1},yx.every=function(e,t,r){"string"==typeof e&&(e=[e]);for(var n=0;n<e.length;n++)if(1!==yx(e[n],t,r).length)return!1;return!0},yx.any=function(e,t,r){if("string"!=typeof e)throw new TypeError('expected a string: "'+sm.inspect(e)+'"');if(xx(e)||xx(t))return!1;"string"==typeof t&&(t=[t]);for(var n=0;n<t.length;n++)if(yx.isMatch(e,t[n],r))return!0;return!1},yx.all=function(e,t,r){if("string"!=typeof e)throw new TypeError('expected a string: "'+sm.inspect(e)+'"');"string"==typeof t&&(t=[t]);for(var n=0;n<t.length;n++)if(!yx.isMatch(e,t[n],r))return!1;return!0},yx.not=function(e,t,r){var n=km({},r),i=n.ignore;delete n.ignore;var a=bx.unixify(n);e=bx.arrayify(e).map(a);var o=bx.diff(e,yx(e,t,n));return i&&(o=bx.diff(o,yx(e,i))),!1!==n.nodupes?bx.unique(o):o},yx.contains=function(e,t,r){if("string"!=typeof e)throw new TypeError('expected a string: "'+sm.inspect(e)+'"');if("string"==typeof t){if(xx(e)||xx(t))return!1;if(bx.equalsPattern(t,r)(e))return!0;if(bx.containsPattern(t,r)(e))return!0}var n=km({},r,{contains:!0});return yx.any(e,t,n)},yx.matchBase=function(e,t){return!(e&&-1!==e.indexOf("/")||!t||!0!==t.basename&&!0!==t.matchBase)},yx.matchKeys=function(e,t,r){if(!bx.isObject(e))throw new TypeError("expected the first argument to be an object");var n=yx(Object.keys(e),t,r);return bx.pick(e,n)},yx.matcher=function e(t,r){if(Array.isArray(t))return function(e,t,r){var n;return wx("compose",String(e),t,(function(){return function(i){if(!n){n=[];for(var a=0;a<e.length;a++)n.push(r(e[a],t))}for(var o=n.length;o--;)if(!0===n[o](i))return!0;return!1}}))}(t,r,e);if(t instanceof RegExp)return i(t);if(!bx.isString(t))throw new TypeError("expected pattern to be an array, string or regex");if(!bx.hasSpecialChars(t))return r&&!0===r.nocase&&(t=t.toLowerCase()),bx.matchPath(t,r);var n=yx.makeRe(t,r);if(yx.matchBase(t,r))return bx.matchBasename(n,r);function i(e){var t=bx.equalsPattern(r),n=bx.unixify(r);return function(r){return!!t(r)||!!e.test(n(r))}}var a=i(n);return Object.defineProperty(a,"result",{configurable:!0,enumerable:!1,value:n.result}),a},yx.capture=function(e,t,r){var n=yx.makeRe(e,km({capture:!0},r)),i=bx.unixify(r),a=wx("capture",e,r,(function(){return function(e){var t=n.exec(i(e));return t?t.slice(1):null}}));return a(t)},yx.makeRe=function(e,t){if("string"!=typeof e)throw new TypeError("expected pattern to be a string");if(e.length>65536)throw new Error("expected pattern to be less than 65536 characters");return wx("makeRe",e,t,(function(){var r=yx.create(e,t),n=[],i=r.map((function(e){return e.ast.state=e.state,n.push(e.ast),e.output})),a=Zg(i.join("|"),t);return Object.defineProperty(a,"result",{configurable:!0,enumerable:!1,value:n}),a}))},yx.braces=function(e,t){if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("expected pattern to be an array or string");return wx("braces",e,t,(function(){return t&&!0===t.nobrace||!/\{.*\}/.test(e)?bx.arrayify(e):fy(e,t)}))},yx.braceExpand=function(e,t){var r=km({},t,{expand:!0});return yx.braces(e,r)},yx.create=function(e,t){return wx("create",e,t,(function(){for(var r,n,i=(e=yx.braces(e,t)).length,a=-1,o=[];++a<i;)o.push((r=e[a],n=t,yx.compile(yx.parse(r,n),n)));return o}))},yx.parse=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");return wx("parse",e,t,(function(){var r=bx.instantiate(null,t);fx(r);var n=r.parse(e,t);return bx.define(n,"snapdragon",r),n.input=e,n}))},yx.compile=function(e,t){return"string"==typeof e&&(e=yx.parse(e,t)),wx("compile",e.input,t,(function(){var r=bx.instantiate(e,t);return mx(r),r.compile(e,t)}))},yx.clearCache=function(){yx.cache.caches={}},yx.compilers=mx,yx.parsers=fx,yx.caches=vx.caches;var zx=yx,kx=Mc((function(e){var t=e.exports;t.match=function(e,t,r,n){var i=lm.options(this,r,n);return"string"==typeof t&&(t=t.split(/, */)),zx(e,t,i)},t.isMatch=function(e,t,r,n){var i=lm.options(this,r,n);return zx.isMatch(e,t,i)},t.mm=function(){return console.log("the {{mm}} helper is depcrecated and will be removed"),console.log("in handlebars-helpers v1.0.0, please use the {{match}}"),console.log("helper instead."),t.match.apply(this,arguments)}})),Ax=Mc((function(e){var t=e.exports;t.abs=function(e){if(isNaN(e))throw new TypeError("expected a number");return Math.abs(e)},t.add=function(e,t){return isNaN(e)||isNaN(t)?"string"==typeof e&&"string"==typeof t?e+t:"":Number(e)+Number(t)},t.avg=function(){const e=[].concat.apply([],arguments);return e.pop(),t.sum(e)/e.length},t.ceil=function(e){if(isNaN(e))throw new TypeError("expected a number");return Math.ceil(e)},t.divide=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)/Number(t)},t.floor=function(e){if(isNaN(e))throw new TypeError("expected a number");return Math.floor(e)},t.minus=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)-Number(t)},t.modulo=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)%Number(t)},t.multiply=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)*Number(t)},t.plus=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)+Number(t)},t.random=function(e,t){if(isNaN(e))throw new TypeError("expected minimum to be a number");if(isNaN(t))throw new TypeError("expected maximum to be a number");return cg.random(e,t)},t.remainder=function(e,t){return e%t},t.round=function(e){if(isNaN(e))throw new TypeError("expected a number");return Math.round(e)},t.subtract=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)-Number(t)},t.sum=function(){for(var e=[].concat.apply([],arguments),t=e.length,r=0;t--;)isNaN(e[t])||(r+=Number(e[t]));return r}})),Cx=Mc((function(e){var t=e.exports;t.frame=function(e,t){"object"==typeof e&&e.hash&&(e=(t=e).data);var r=Tm(e);return"object"!=typeof t&&(t={}),r.extend(t.hash),t.fn(this,{data:r})},t.option=function(e,t,r){return fm(lm.options(this,t,r),e)},t.noop=function(e){return e.fn(this)},t.typeOf=jp,t.withHash=function(e){return e.hash&&Object.keys(e.hash).length?e.fn(e.hash):e.inverse(this)}})),Sx=Mc((function(e){var t=e.exports;t.bytes=function(e,t,r){if(null==e)return"0 B";if(isNaN(e)&&!(e=e.length))return"0 B";isNaN(t)&&(t=2);var n=["B","kB","MB","GB","TB","PB","EB","ZB","YB"];t=Math.pow(10,t),e=Number(e);for(var i=n.length-1;i-- >=0;){var a=Math.pow(10,3*i);if(a<=e+1){e=Math.round(e*t/a)/t,e+=" "+n[i];break}}return e},t.addCommas=function(e){return e.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")},t.phoneNumber=function(e){return"("+(e=e.toString()).substr(0,3)+") "+e.substr(3,3)+"-"+e.substr(6,4)},t.toAbbr=function(e,t){isNaN(e)&&(e=0),lm.isUndefined(t)&&(t=2),e=Number(e),t=Math.pow(10,t);for(var r=["k","m","b","t","q"],n=r.length-1;n>=0;){var i=Math.pow(10,3*(n+1));if(i<=e+1){e=Math.round(e*t/i)/t,e+=r[n];break}n--}return e},t.toExponential=function(e,t){return isNaN(e)&&(e=0),lm.isUndefined(t)&&(t=0),Number(e).toExponential(t)},t.toFixed=function(e,t){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),Number(e).toFixed(t)},t.toFloat=function(e){return parseFloat(e)},t.toInt=function(e){return parseInt(e,10)},t.toPrecision=function(e,t){return isNaN(e)&&(e=0),isNaN(t)&&(t=1),Number(e).toPrecision(t)}})),_x={}.toString,Mx=Array.isArray||function(e){return"[object Array]"==_x.call(e)},Tx=$x;function $x(e,t,r){if("string"!=typeof e)throw new TypeError("relative expects a string.");if(""==e&&!t)return e;var n=arguments.length;1===n&&(t=e,e=vh.cwd(),r=null),2===n&&"boolean"==typeof t&&(t=e,e=vh.cwd(),r=!0),2===n&&"object"==typeof t&&(r=t,t=e,e=vh.cwd());var i=t,a=Ex(e,"/"),o=Ex(t,"/");e=Lx(e),t=Lx(t),a&&(e+="/"),function(e,t){return!0===t&&(t=Ix(e)),!function(e,t){if(Ex(e,"/"))return!0;if(null===t&&(t=Ix(e)),function(e){return null!=e&&"object"==typeof e&&!1===Mx(e)}(t)&&"function"==typeof t.isDirectory)return t.isDirectory();var r=e.split("/"),n=r[r.length-1];return!n||-1===n.indexOf(".")}(e,t)}(e,r)&&(e=Jm.dirname(e));var s=Jm.relative(e,t);if(""===s)return".";var l=function(e,t){return e.slice(0,e.length-1)}(i);return o&&(s===l||Ex(s,l))&&(s+="/"),s}function Lx(e){return e.replace(/[\\\/]+/g,"/")}function Ex(e,t){return e.slice(-t.length)[0]===t}function Ix(e){try{return Dp.statSync(e)}catch(e){}return null}$x.toBase=function(e,t){e=Lx(e);var r=(t=Lx(t)).slice(e.length);return"/"===r.charAt(0)&&(r=r.slice(1)),r};var Bx=Mc((function(e){var t=e.exports;t.absolute=function(e,t){t=t||{data:{}};var r=lm.options(this,t),n=Object.assign({},t.data.root,r).cwd||vh.cwd();return Jm.resolve(n,e)},t.dirname=function(e,t){if("string"!=typeof e)throw new TypeError(lm.expectedType("filepath","string",e));return Jm.dirname(e)},t.relative=function(e,t){if("string"!=typeof e)throw new TypeError(lm.expectedType("first path","string",e));if("string"!=typeof t)throw new TypeError(lm.expectedType("second path","string",t));return Tx(e,t)},t.basename=function(e){if("string"!=typeof e)throw new TypeError(lm.expectedType("filepath","string",e));return Jm.basename(e)},t.stem=function(e){if("string"!=typeof e)throw new TypeError(lm.expectedType("filepath","string",e));return Jm.basename(e,Jm.extname(e))},t.extname=function(e){if("string"!=typeof e)throw new TypeError(lm.expectedType("filepath","string",e));return Jm.extname(e)},t.resolve=function(e){var t=[].slice.call(arguments),r=lm.options(this,t.pop()),n=Jm.resolve(r.cwd||vh.cwd());return t.unshift(n),Jm.resolve.apply(Jm,t)},t.segments=function(e,t,r){if("string"!=typeof e)throw new TypeError(lm.expectedType("filepath","string",e));return e.split(/[\\\/]+/).slice(t,r).join("/")}})),Dx=Mc((function(e){var t=e.exports;t.toRegex=function(e,t,r){var n=lm.options({},t,r);return new RegExp(e,n.flags)},t.test=function(e,t){if("string"!=typeof e)return!1;if("regexp"!==jp(t))throw new TypeError("expected a regular expression");return t.test(e)}})),Hx=Mc((function(e,t){var r=e.exports;r.append=function(e,t){return"string"==typeof e&&"string"==typeof t?e+t:e},r.camelcase=function(e){return"string"!=typeof e?"":cg.changecase(e,(function(e){return e.toUpperCase()}))},r.capitalize=function(e){return"string"!=typeof e?"":e.charAt(0).toUpperCase()+e.slice(1)},r.capitalizeAll=function(e){return"string"!=typeof e?"":lm.isString(e)?e.replace(/\w\S*/g,(function(e){return r.capitalize(e)})):void 0},r.center=function(e,t){if("string"!=typeof e)return"";for(var r="",n=0;n<t;)r+=" ",n++;return r+e+r},r.chop=function(e){return"string"!=typeof e?"":cg.chop(e)},r.dashcase=function(e){return"string"!=typeof e?"":cg.changecase(e,(function(e){return"-"+e}))},r.dotcase=function(e){return"string"!=typeof e?"":cg.changecase(e,(function(e){return"."+e}))},r.downcase=function(){return r.lowercase.apply(this,arguments)},r.ellipsis=function(e,t){if(lm.isString(e))return e.length<=t?e:r.truncate(e,t)+"…"},r.hyphenate=function(e){return"string"!=typeof e?"":e.split(" ").join("-")},r.isString=function(e){return"string"==typeof e},r.lowercase=function(e){return lm.isObject(e)&&e.fn?e.fn(this).toLowerCase():"string"!=typeof e?"":e.toLowerCase()},r.occurrences=function(e,t){if("string"!=typeof e)return"";for(var r=t.length,n=0,i=0;(n=e.indexOf(t,n))>-1;)i++,n+=r;return i},r.pascalcase=function(e){return"string"!=typeof e?"":(e=cg.changecase(e,(function(e){return e.toUpperCase()}))).charAt(0).toUpperCase()+e.slice(1)},r.pathcase=function(e){return"string"!=typeof e?"":cg.changecase(e,(function(e){return"/"+e}))},r.plusify=function(e,t){return"string"!=typeof e?"":(lm.isString(t)||(t=" "),e.split(t).join("+"))},r.prepend=function(e,t){return"string"==typeof e&&"string"==typeof t?t+e:e},r.raw=function(e){var t=e.fn();if(!1!==lm.options(this,e).escape)for(var r=0;-1!==(r=t.indexOf("{{",r));)"\\"!==t[r-1]&&(t=t.slice(0,r)+"\\"+t.slice(r)),r+=3;return t},r.remove=function(e,t){return"string"!=typeof e?"":lm.isString(t)?e.split(t).join(""):e},r.removeFirst=function(e,t){return"string"!=typeof e?"":lm.isString(t)?e.replace(t,""):e},r.replace=function(e,t,r){return"string"!=typeof e?"":lm.isString(t)?(lm.isString(r)||(r=""),e.split(t).join(r)):e},r.replaceFirst=function(e,t,r){return"string"!=typeof e?"":lm.isString(t)?(lm.isString(r)||(r=""),e.replace(t,r)):e},r.reverse=function(e){return"string"!=typeof e?"":e.split("").reverse().join("")},r.sentence=function(e){return"string"!=typeof e?"":e.replace(/((?:\S[^\.\?\!]*)[\.\?\!]*)/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))},r.snakecase=function(e){return"string"!=typeof e?"":cg.changecase(e,(function(e){return"_"+e}))},r.split=function(e,t){return"string"!=typeof e?"":(lm.isString(t)||(t=","),e.split(t))},r.startsWith=function(e,t,r){return r=[].slice.call(arguments).pop(),lm.isString(t)&&0===t.indexOf(e)?r.fn(this):"function"==typeof r.inverse?r.inverse(this):""},r.titleize=function(e){if("string"!=typeof e)return"";for(var r=e.replace(/[- _]+/g," ").split(" "),n=r.length,i=[],a=0;n--;){var o=r[a++];i.push(t.capitalize(o))}return i.join(" ")},r.trim=function(e){return"string"==typeof e?e.trim():""},r.trimLeft=function(e){if(lm.isString(e))return e.replace(/^\s+/,"")},r.trimRight=function(e){if(lm.isString(e))return e.replace(/\s+$/,"")},r.truncate=function(e,t,r){if(lm.isString(e))return"string"!=typeof r&&(r=""),e.length>t?e.slice(0,t-r.length)+r:e},r.truncateWords=function(e,t,r){if(lm.isString(e)&&!isNaN(t)){"string"!=typeof r&&(r="…");var n=Number(t),i=e.split(/[ \t]/);return n>i.length&&(i=i.slice(0,n)),i.join(" ").trim()+r}},r.upcase=function(){return r.uppercase.apply(this,arguments)},r.uppercase=function(e){return lm.isObject(e)&&e.fn?e.fn(this).toUpperCase():"string"!=typeof e?"":e.toUpperCase()}})),Ox=2147483647,Px=36,Rx=1,Vx=26,Nx=38,Fx=700,jx=72,qx=128,Ux="-",Wx=/[^\x20-\x7E]/,Xx=/[\x2E\u3002\uFF0E\uFF61]/g,Gx={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Yx=Px-Rx,Zx=Math.floor,Kx=String.fromCharCode;function Jx(e){throw new RangeError(Gx[e])}function Qx(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function ew(e,t,r){var n=0;for(e=r?Zx(e/Fx):e>>1,e+=Zx(e/t);e>Yx*Vx>>1;n+=Px)e=Zx(e/Yx);return Zx(n+(Yx+1)*e/(e+Nx))}function tw(e){return function(e,t){var r=e.split("@"),n="";r.length>1&&(n=r[0]+"@",e=r[1]);var i=function(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}((e=e.replace(Xx,".")).split("."),(function(e){return Wx.test(e)?"xn--"+function(e){var t,r,n,i,a,o,s,l,c,u,p,d,h,m,g,f=[];for(e=function(e){for(var t,r,n=[],i=0,a=e.length;i<a;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<a?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}(e),d=e.length,t=qx,r=0,a=jx,o=0;o<d;++o)(p=e[o])<128&&f.push(Kx(p));for(n=i=f.length,i&&f.push(Ux);n<d;){for(s=Ox,o=0;o<d;++o)(p=e[o])>=t&&p<s&&(s=p);for(s-t>Zx((Ox-r)/(h=n+1))&&Jx("overflow"),r+=(s-t)*h,t=s,o=0;o<d;++o)if((p=e[o])<t&&++r>Ox&&Jx("overflow"),p==t){for(l=r,c=Px;!(l<(u=c<=a?Rx:c>=a+Vx?Vx:c-a));c+=Px)g=l-u,m=Px-u,f.push(Kx(Qx(u+g%m,0))),l=Zx(g/m);f.push(Kx(Qx(l,0))),a=ew(r,h,n==i),r=0,++n}++r,++t}return f.join("")}(e):e})).join(".");return n+i}(e)}function rw(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var nw=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function iw(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function aw(e,t,r,n){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?ow(sw(e),(function(n){var i=encodeURIComponent(iw(n))+r;return nw(e[n])?ow(e[n],(function(e){return i+encodeURIComponent(iw(e))})).join(t):i+encodeURIComponent(iw(e[n]))})).join(t):n?encodeURIComponent(iw(n))+r+encodeURIComponent(iw(e)):""}function ow(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var sw=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t};function lw(e,t,r,n){t=t||"&",r=r||"=";var i={};if("string"!=typeof e||0===e.length)return i;var a=/\+/g;e=e.split(t);var o=1e3;n&&"number"==typeof n.maxKeys&&(o=n.maxKeys);var s=e.length;o>0&&s>o&&(s=o);for(var l=0;l<s;++l){var c,u,p,d,h=e[l].replace(a,"%20"),m=h.indexOf(r);m>=0?(c=h.substr(0,m),u=h.substr(m+1)):(c=h,u=""),p=decodeURIComponent(c),d=decodeURIComponent(u),rw(i,p)?nw(i[p])?i[p].push(d):i[p]=[i[p],d]:i[p]=d}return i}var cw={encode:aw,stringify:aw,decode:lw,parse:lw},uw=Object.freeze({__proto__:null,stringify:aw,parse:lw,default:cw,encode:aw,decode:lw}),pw={parse:Sw,resolve:$w,resolveObject:Lw,format:Mw,Url:dw};function dw(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var hw=/^([a-z0-9.+-]+:)/i,mw=/:[0-9]*$/,gw=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,fw=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),vw=["'"].concat(fw),bw=["%","/","?",";","#"].concat(vw),yw=["/","?","#"],xw=255,ww=/^[+a-z0-9A-Z_-]{0,63}$/,zw=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,kw={javascript:!0,"javascript:":!0},Aw={javascript:!0,"javascript:":!0},Cw={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Sw(e,t,r){if(e&&Vh(e)&&e instanceof dw)return e;var n=new dw;return n.parse(e,t,r),n}function _w(e,t,r,n){if(!Hh(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),a=-1!==i&&i<t.indexOf("#")?"?":"#",o=t.split(a);o[0]=o[0].replace(/\\/g,"/");var s=t=o.join(a);if(s=s.trim(),!n&&1===t.split("#").length){var l=gw.exec(s);if(l)return e.path=s,e.href=s,e.pathname=l[1],l[2]?(e.search=l[2],e.query=r?lw(e.search.substr(1)):e.search.substr(1)):r&&(e.search="",e.query={}),e}var c,u,p,d,h=hw.exec(s);if(h){var m=(h=h[0]).toLowerCase();e.protocol=m,s=s.substr(h.length)}if(n||h||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var g="//"===s.substr(0,2);!g||h&&Aw[h]||(s=s.substr(2),e.slashes=!0)}if(!Aw[h]&&(g||h&&!Cw[h])){var f,v,b=-1;for(c=0;c<yw.length;c++)-1!==(u=s.indexOf(yw[c]))&&(-1===b||u<b)&&(b=u);for(-1!==(v=-1===b?s.lastIndexOf("@"):s.lastIndexOf("@",b))&&(f=s.slice(0,v),s=s.slice(v+1),e.auth=decodeURIComponent(f)),b=-1,c=0;c<bw.length;c++)-1!==(u=s.indexOf(bw[c]))&&(-1===b||u<b)&&(b=u);-1===b&&(b=s.length),e.host=s.slice(0,b),s=s.slice(b),Ew(e),e.hostname=e.hostname||"";var y="["===e.hostname[0]&&"]"===e.hostname[e.hostname.length-1];if(!y){var x=e.hostname.split(/\./);for(c=0,p=x.length;c<p;c++){var w=x[c];if(w&&!w.match(ww)){for(var z="",k=0,A=w.length;k<A;k++)w.charCodeAt(k)>127?z+="x":z+=w[k];if(!z.match(ww)){var C=x.slice(0,c),S=x.slice(c+1),_=w.match(zw);_&&(C.push(_[1]),S.unshift(_[2])),S.length&&(s="/"+S.join(".")+s),e.hostname=C.join(".");break}}}}e.hostname.length>xw?e.hostname="":e.hostname=e.hostname.toLowerCase(),y||(e.hostname=tw(e.hostname)),d=e.port?":"+e.port:"";var M=e.hostname||"";e.host=M+d,e.href+=e.host,y&&(e.hostname=e.hostname.substr(1,e.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!kw[m])for(c=0,p=vw.length;c<p;c++){var T=vw[c];if(-1!==s.indexOf(T)){var $=encodeURIComponent(T);$===T&&($=escape(T)),s=s.split(T).join($)}}var L=s.indexOf("#");-1!==L&&(e.hash=s.substr(L),s=s.slice(0,L));var E=s.indexOf("?");if(-1!==E?(e.search=s.substr(E),e.query=s.substr(E+1),r&&(e.query=lw(e.query)),s=s.slice(0,E)):r&&(e.search="",e.query={}),s&&(e.pathname=s),Cw[m]&&e.hostname&&!e.pathname&&(e.pathname="/"),e.pathname||e.search){d=e.pathname||"";var I=e.search||"";e.path=d+I}return e.href=Tw(e),e}function Mw(e){return Hh(e)&&(e=_w({},e)),Tw(e)}function Tw(e){var t=e.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var r=e.protocol||"",n=e.pathname||"",i=e.hash||"",a=!1,o="";e.host?a=t+e.host:e.hostname&&(a=t+(-1===e.hostname.indexOf(":")?e.hostname:"["+this.hostname+"]"),e.port&&(a+=":"+e.port)),e.query&&Vh(e.query)&&Object.keys(e.query).length&&(o=aw(e.query));var s=e.search||o&&"?"+o||"";return r&&":"!==r.substr(-1)&&(r+=":"),e.slashes||(!r||Cw[r])&&!1!==a?(a="//"+(a||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):a||(a=""),i&&"#"!==i.charAt(0)&&(i="#"+i),s&&"?"!==s.charAt(0)&&(s="?"+s),n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})),r+a+n+(s=s.replace("#","%23"))+i}function $w(e,t){return Sw(e,!1,!0).resolve(t)}function Lw(e,t){return e?Sw(e,!1,!0).resolveObject(t):t}function Ew(e){var t=e.host,r=mw.exec(t);r&&(":"!==(r=r[0])&&(e.port=r.substr(1)),t=t.substr(0,t.length-r.length)),t&&(e.hostname=t)}dw.prototype.parse=function(e,t,r){return _w(this,e,t,r)},dw.prototype.format=function(){return Tw(this)},dw.prototype.resolve=function(e){return this.resolveObject(Sw(e,!1,!0)).format()},dw.prototype.resolveObject=function(e){if(Hh(e)){var t=new dw;t.parse(e,!1,!0),e=t}for(var r,n=new dw,i=Object.keys(this),a=0;a<i.length;a++){var o=i[a];n[o]=this[o]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),l=0;l<s.length;l++){var c=s[l];"protocol"!==c&&(n[c]=e[c])}return Cw[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!Cw[e.protocol]){for(var u=Object.keys(e),p=0;p<u.length;p++){var d=u[p];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||Aw[e.protocol])n.pathname=e.pathname;else{for(r=(e.pathname||"").split("/");r.length&&!(e.host=r.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==r[0]&&r.unshift(""),r.length<2&&r.unshift(""),n.pathname=r.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var h=n.pathname||"",m=n.search||"";n.path=h+m}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var g,f=n.pathname&&"/"===n.pathname.charAt(0),v=e.host||e.pathname&&"/"===e.pathname.charAt(0),b=v||f||n.host&&e.pathname,y=b,x=n.pathname&&n.pathname.split("/")||[],w=n.protocol&&!Cw[n.protocol];if(r=e.pathname&&e.pathname.split("/")||[],w&&(n.hostname="",n.port=null,n.host&&(""===x[0]?x[0]=n.host:x.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===r[0]?r[0]=e.host:r.unshift(e.host)),e.host=null),b=b&&(""===r[0]||""===x[0])),v)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,x=r;else if(r.length)x||(x=[]),x.pop(),x=x.concat(r),n.search=e.search,n.query=e.query;else if(!Bh(e.search))return w&&(n.hostname=n.host=x.shift(),(g=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=g.shift(),n.host=n.hostname=g.shift())),n.search=e.search,n.query=e.query,Ih(n.pathname)&&Ih(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var z=x.slice(-1)[0],k=(n.host||e.host||x.length>1)&&("."===z||".."===z)||""===z,A=0,C=x.length;C>=0;C--)"."===(z=x[C])?x.splice(C,1):".."===z?(x.splice(C,1),A++):A&&(x.splice(C,1),A--);if(!b&&!y)for(;A--;A)x.unshift("..");!b||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),k&&"/"!==x.join("/").substr(-1)&&x.push("");var S=""===x[0]||x[0]&&"/"===x[0].charAt(0);return w&&(n.hostname=n.host=S?"":x.length?x.shift():"",(g=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=g.shift(),n.host=n.hostname=g.shift())),(b=b||n.host&&x.length)&&!S&&x.unshift(""),x.length?n.pathname=x.join("/"):(n.pathname=null,n.path=null),Ih(n.pathname)&&Ih(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},dw.prototype.parseHost=function(){return Ew(this)};var Iw=_c(Object.freeze({__proto__:null,parse:Sw,resolve:$w,resolveObject:Lw,format:Mw,default:pw,Url:dw})),Bw=_c(uw),Dw=Mc((function(e){var t=e.exports;t.encodeURI=function(e){if(lm.isString(e))return encodeURIComponent(e)},t.escape=function(e){if(lm.isString(e))return Bw.escape(e)},t.decodeURI=function(e){if(lm.isString(e))return decodeURIComponent(e)},t.urlResolve=function(e,t){return Iw.resolve(e,t)},t.urlParse=function(e){return Iw.parse(e)},t.stripQuerystring=function(e){if(lm.isString(e))return e.split("?")[0]},t.stripProtocol=function(e){if(lm.isString(e)){var t=Iw.parse(e);return t.protocol="",t.format()}}})),Hw={array:$m,code:Qm,collection:ng,comparison:hg,html:fg,i18n:vg,inflection:bg,match:kx,math:Ax,misc:Cx,number:Sx,object:rg,path:Bx,regex:Dx,string:Hx,url:Dw},Ow=Mc((function(e){e.exports=function(t,r){"string"==typeof t?t=[t]:Array.isArray(t)||(r=t,t=null);var n=(r=r||{}).handlebars||r.hbs||Op;return Yp(e.exports,"handlebars",n),t?t.forEach((function(e){n.registerHelper(Hw[e])})):Vp(Hw,(function(e,t){n.registerHelper(e)})),n.helpers},Vp(Hw,(function(t,r){Yp(e.exports,r,(function(r){var n=(r=r||{}).handlebars||r.hbs||Op;return Yp(e.exports,"handlebars",n),n.registerHelper(t),n.helpers}))})),e.exports.utils=cg})),Pw=Mc((function(e,t){e.exports=function(){var e=6e4,t=36e5,r="millisecond",n="second",i="minute",a="hour",o="day",s="week",l="month",c="quarter",u="year",p="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},f=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},v={s:f,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+f(n,2,"0")+":"+f(i,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,l),a=r-i<0,o=t.clone().add(n+(a?-1:1),l);return+(-(n+(r-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:u,w:s,d:o,D:p,h:a,m:i,s:n,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",y={};y[b]=g;var x=function(e){return e instanceof A},w=function e(t,r,n){var i;if(!t)return b;if("string"==typeof t){var a=t.toLowerCase();y[a]&&(i=a),r&&(y[a]=r,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;y[s]=t,i=s}return!n&&i&&(b=i),i||!n&&b},z=function(e,t){if(x(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new A(r)},k=v;k.l=w,k.i=x,k.w=function(e,t){return z(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var A=function(){function g(e){this.$L=w(e.locale,null,!0),this.parse(e)}var f=g.prototype;return f.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(h);if(n){var i=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},f.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},f.$utils=function(){return k},f.isValid=function(){return!(this.$d.toString()===d)},f.isSame=function(e,t){var r=z(e);return this.startOf(t)<=r&&r<=this.endOf(t)},f.isAfter=function(e,t){return z(e)<this.startOf(t)},f.isBefore=function(e,t){return this.endOf(t)<z(e)},f.$g=function(e,t,r){return k.u(e)?this[t]:this.set(r,e)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(e,t){var r=this,c=!!k.u(t)||t,d=k.p(e),h=function(e,t){var n=k.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return c?n:n.endOf(o)},m=function(e,t){return k.w(r.toDate()[e].apply(r.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},g=this.$W,f=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(d){case u:return c?h(1,0):h(31,11);case l:return c?h(1,f):h(0,f+1);case s:var y=this.$locale().weekStart||0,x=(g<y?g+7:g)-y;return h(c?v-x:v+(6-x),f);case o:case p:return m(b+"Hours",0);case a:return m(b+"Minutes",1);case i:return m(b+"Seconds",2);case n:return m(b+"Milliseconds",3);default:return this.clone()}},f.endOf=function(e){return this.startOf(e,!1)},f.$set=function(e,t){var s,c=k.p(e),d="set"+(this.$u?"UTC":""),h=(s={},s[o]=d+"Date",s[p]=d+"Date",s[l]=d+"Month",s[u]=d+"FullYear",s[a]=d+"Hours",s[i]=d+"Minutes",s[n]=d+"Seconds",s[r]=d+"Milliseconds",s)[c],m=c===o?this.$D+(t-this.$W):t;if(c===l||c===u){var g=this.clone().set(p,1);g.$d[h](m),g.init(),this.$d=g.set(p,Math.min(this.$D,g.daysInMonth())).$d}else h&&this.$d[h](m);return this.init(),this},f.set=function(e,t){return this.clone().$set(e,t)},f.get=function(e){return this[k.p(e)]()},f.add=function(r,c){var p,d=this;r=Number(r);var h=k.p(c),m=function(e){var t=z(d);return k.w(t.date(t.date()+Math.round(e*r)),d)};if(h===l)return this.set(l,this.$M+r);if(h===u)return this.set(u,this.$y+r);if(h===o)return m(1);if(h===s)return m(7);var g=(p={},p[i]=e,p[a]=t,p[n]=1e3,p)[h]||1,f=this.$d.getTime()+r*g;return k.w(f,this)},f.subtract=function(e,t){return this.add(-1*e,t)},f.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||d;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=k.z(this),a=this.$H,o=this.$m,s=this.$M,l=r.weekdays,c=r.months,u=r.meridiem,p=function(e,r,i,a){return e&&(e[r]||e(t,n))||i[r].slice(0,a)},h=function(e){return k.s(a%12||12,e,"0")},g=u||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(m,(function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return s+1;case"MM":return k.s(s+1,2,"0");case"MMM":return p(r.monthsShort,s,c,3);case"MMMM":return p(c,s);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(r.weekdaysMin,t.$W,l,2);case"ddd":return p(r.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(a);case"HH":return k.s(a,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return g(a,o,!0);case"A":return g(a,o,!1);case"m":return String(o);case"mm":return k.s(o,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(r,p,d){var h,m=this,g=k.p(p),f=z(r),v=(f.utcOffset()-this.utcOffset())*e,b=this-f,y=function(){return k.m(m,f)};switch(g){case u:h=y()/12;break;case l:h=y();break;case c:h=y()/3;break;case s:h=(b-v)/6048e5;break;case o:h=(b-v)/864e5;break;case a:h=b/t;break;case i:h=b/e;break;case n:h=b/1e3;break;default:h=b}return d?h:k.a(h)},f.daysInMonth=function(){return this.endOf(l).$D},f.$locale=function(){return y[this.$L]},f.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=w(e,t,!0);return n&&(r.$L=n),r},f.clone=function(){return k.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},g}(),C=A.prototype;return z.prototype=C,[["$ms",r],["$s",n],["$m",i],["$H",a],["$W",o],["$M",l],["$y",u],["$D",p]].forEach((function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),z.extend=function(e,t){return e.$i||(e(t,A,z),e.$i=!0),z},z.locale=w,z.isDayjs=x,z.unix=function(e){return z(1e3*e)},z.en=y[b],z.Ls=y,z.p={},z}()})),Rw=Mc((function(e,t){e.exports=function(){var e,t,r=1e3,n=6e4,i=36e5,a=864e5,o=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,l=2592e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,u={years:s,months:l,days:a,hours:i,minutes:n,seconds:r,milliseconds:1,weeks:6048e5},p=function(e){return e instanceof b},d=function(e,t,r){return new b(e,r,t.$l)},h=function(e){return t.p(e)+"s"},m=function(e){return e<0},g=function(e){return m(e)?Math.ceil(e):Math.floor(e)},f=function(e){return Math.abs(e)},v=function(e,t){return e?m(e)?{negative:!0,format:""+f(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},b=function(){function m(e,t,r){var n=this;if(this.$d={},this.$l=r,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return d(e*u[h(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){n.$d[h(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var i=e.match(c);if(i){var a=i.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var f=m.prototype;return f.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,r){return t+(e.$d[r]||0)*u[r]}),0)},f.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=g(e/s),e%=s,this.$d.months=g(e/l),e%=l,this.$d.days=g(e/a),e%=a,this.$d.hours=g(e/i),e%=i,this.$d.minutes=g(e/n),e%=n,this.$d.seconds=g(e/r),e%=r,this.$d.milliseconds=e},f.toISOString=function(){var e=v(this.$d.years,"Y"),t=v(this.$d.months,"M"),r=+this.$d.days||0;this.$d.weeks&&(r+=7*this.$d.weeks);var n=v(r,"D"),i=v(this.$d.hours,"H"),a=v(this.$d.minutes,"M"),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3);var s=v(o,"S"),l=e.negative||t.negative||n.negative||i.negative||a.negative||s.negative,c=i.format||a.format||s.format?"T":"",u=(l?"-":"")+"P"+e.format+t.format+n.format+c+i.format+a.format+s.format;return"P"===u||"-P"===u?"P0D":u},f.toJSON=function(){return this.toISOString()},f.format=function(e){var r=e||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return r.replace(o,(function(e,t){return t||String(n[e])}))},f.as=function(e){return this.$ms/u[h(e)]},f.get=function(e){var t=this.$ms,r=h(e);return"milliseconds"===r?t%=1e3:t="weeks"===r?g(t/u[r]):this.$d[r],0===t?0:t},f.add=function(e,t,r){var n;return n=t?e*u[h(t)]:p(e)?e.$ms:d(e,this).$ms,d(this.$ms+n*(r?-1:1),this)},f.subtract=function(e,t){return this.add(e,t,!0)},f.locale=function(e){var t=this.clone();return t.$l=e,t},f.clone=function(){return d(this.$ms,this)},f.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},f.valueOf=function(){return this.asMilliseconds()},f.milliseconds=function(){return this.get("milliseconds")},f.asMilliseconds=function(){return this.as("milliseconds")},f.seconds=function(){return this.get("seconds")},f.asSeconds=function(){return this.as("seconds")},f.minutes=function(){return this.get("minutes")},f.asMinutes=function(){return this.as("minutes")},f.hours=function(){return this.get("hours")},f.asHours=function(){return this.as("hours")},f.days=function(){return this.get("days")},f.asDays=function(){return this.as("days")},f.weeks=function(){return this.get("weeks")},f.asWeeks=function(){return this.as("weeks")},f.months=function(){return this.get("months")},f.asMonths=function(){return this.as("months")},f.years=function(){return this.get("years")},f.asYears=function(){return this.as("years")},m}(),y=function(e,t,r){return e.add(t.years()*r,"y").add(t.months()*r,"M").add(t.days()*r,"d").add(t.hours()*r,"h").add(t.minutes()*r,"m").add(t.seconds()*r,"s").add(t.milliseconds()*r,"ms")};return function(r,n,i){e=i,t=i().$utils(),i.duration=function(e,t){var r=i.locale();return d(e,{$l:r},t)},i.isDuration=p;var a=n.prototype.add,o=n.prototype.subtract;n.prototype.add=function(e,t){return p(e)?y(this,e,1):a.bind(this)(e,t)},n.prototype.subtract=function(e,t){return p(e)?y(this,e,-1):o.bind(this)(e,t)}}}()})),Vw=Mc((function(e,t){e.exports=function(e,t){var r=t.prototype,n=r.format;r.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return n.bind(this)(e);var i=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return r.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return r.ordinal(t.week(),"W");case"w":case"ww":return i.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return i.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return i.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return n.bind(this)(a)}}})),Nw=Mc((function(e,t){var r;e.exports=(r="day",function(e,t,n){var i=function(e){return e.add(4-e.isoWeekday(),r)},a=t.prototype;a.isoWeekYear=function(){return i(this).year()},a.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),r);var t,a,o,s=i(this),l=(t=this.isoWeekYear(),o=4-(a=(this.$u?n.utc:n)().year(t).startOf("year")).isoWeekday(),a.isoWeekday()>4&&(o+=7),a.add(o,r));return s.diff(l,"week")+1},a.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var o=a.startOf;a.startOf=function(e,t){var r=this.$utils(),n=!!r.u(t)||t;return"isoweek"===r.p(e)?n?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):o.bind(this)(e,t)}})})),Fw=Mc((function(e,t){e.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),r=this.year();return 1===t&&11===e?r+1:0===e&&t>=52?r-1:r}}})),jw=Mc((function(e,t){var r,n;e.exports=(r="week",n="year",function(e,t,i){var a=t.prototype;a.week=function(e){if(void 0===e&&(e=null),null!==e)return this.add(7*(e-this.week()),"day");var t=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var a=i(this).startOf(n).add(1,n).date(t),o=i(this).endOf(r);if(a.isBefore(o))return 1}var s=i(this).startOf(n).date(t).startOf(r).subtract(1,"millisecond"),l=this.diff(s,r,!0);return l<0?i(this).startOf("week").week():Math.ceil(l)},a.weeks=function(e){return void 0===e&&(e=null),this.week(e)}})})),qw=Mc((function(e,t){e.exports=function(e,t,r){e=e||{};var n=t.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function a(e,t,r,i){return n.fromToBase(e,t,r,i)}r.en.relativeTime=i,n.fromToBase=function(t,n,a,o,s){for(var l,c,u,p=a.$locale().relativeTime||i,d=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=d.length,m=0;m<h;m+=1){var g=d[m];g.d&&(l=o?r(t).diff(a,g.d,!0):a.diff(t,g.d,!0));var f=(e.rounding||Math.round)(Math.abs(l));if(u=l>0,f<=g.r||!g.r){f<=1&&m>0&&(g=d[m-1]);var v=p[g.l];s&&(f=s(""+f)),c="string"==typeof v?v.replace("%d",f):v(f,n,g.l,u);break}}if(n)return c;var b=u?p.future:p.past;return"function"==typeof b?b(c):b.replace("%s",c)},n.to=function(e,t){return a(e,t,this,!0)},n.from=function(e,t){return a(e,t,this)};var o=function(e){return e.$u?r.utc():r()};n.toNow=function(e){return this.to(o(this),e)},n.fromNow=function(e){return this.from(o(this),e)}}})),Uw=Mc((function(e,t){var r,n,i;e.exports=(r="minute",n=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g,function(e,t,a){var o=t.prototype;a.utc=function(e){return new t({date:e,utc:!0,args:arguments})},o.utc=function(e){var t=a(this.toDate(),{locale:this.$L,utc:!0});return e?t.add(this.utcOffset(),r):t},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=o.utcOffset;o.utcOffset=function(e,t){var a=this.$utils().u;if(a(e))return this.$u?0:a(this.$offset)?c.call(this):this.$offset;if("string"==typeof e&&(e=function(e){void 0===e&&(e="");var t=e.match(n);if(!t)return null;var r=(""+t[0]).match(i)||["-",0,0],a=r[0],o=60*+r[1]+ +r[2];return 0===o?0:"+"===a?o:-o}(e),null===e))return this;var o=Math.abs(e)<=16?60*e:e,s=this;if(t)return s.$offset=o,s.$u=0===e,s;if(0!==e){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(o+l,r)).$offset=o,s.$x.$localOffset=l}else s=this.utc();return s};var u=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var p=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var d=o.diff;o.diff=function(e,t,r){if(e&&this.$u===e.$u)return d.call(this,e,t,r);var n=this.local(),i=a(e).local();return d.call(n,i,t,r)}})})),Ww=Mc((function(e,t){var r,n;e.exports=(r={year:0,month:1,day:2,hour:3,minute:4,second:5},n={},function(e,t,i){var a,o=function(e,t,r){void 0===r&&(r={});var i=new Date(e),a=function(e,t){void 0===t&&(t={});var r=t.timeZoneName||"short",i=e+"|"+r,a=n[i];return a||(a=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),n[i]=a),a}(t,r);return a.formatToParts(i)},s=function(e,t){for(var n=o(e,t),a=[],s=0;s<n.length;s+=1){var l=n[s],c=l.type,u=l.value,p=r[c];p>=0&&(a[p]=parseInt(u,10))}var d=a[3],h=24===d?0:d,m=a[0]+"-"+a[1]+"-"+a[2]+" "+h+":"+a[4]+":"+a[5]+":000",g=+e;return(i.utc(m).valueOf()-(g-=g%1e3))/6e4},l=t.prototype;l.tz=function(e,t){void 0===e&&(e=a);var r=this.utcOffset(),n=this.toDate(),o=n.toLocaleString("en-US",{timeZone:e}),s=Math.round((n-new Date(o))/1e3/60),l=i(o).$set("millisecond",this.$ms).utcOffset(15*-Math.round(n.getTimezoneOffset()/15)-s,!0);if(t){var c=l.utcOffset();l=l.add(r-c,"minute")}return l.$x.$timezone=e,l},l.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),r=o(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return r&&r.value};var c=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var r=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(r,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,r){var n=r&&t,o=r||t||a,l=s(+i(),o);if("string"!=typeof e)return i(e).tz(o);var c=function(e,t,r){var n=e-60*t*1e3,i=s(n,r);if(t===i)return[n,t];var a=s(n-=60*(i-t)*1e3,r);return i===a?[n,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}(i.utc(e,n).valueOf(),l,o),u=c[0],p=c[1],d=i(u).utcOffset(p);return d.$x.$timezone=o,d},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){a=e}})}));function Xw(e){return"object"==typeof e&&"object"==typeof e.hash}function Gw(e){return"object"==typeof e&&"object"==typeof e.options&&"object"==typeof e.app}function Yw(e,t,r){if(Xw(e))return Yw({},t,e);if(Xw(t))return Yw(e,r,t);const n=Gw(e)?e.context:{};Xw(r=r||{})||(t=Object.assign({},t,r)),Xw(r)&&!0===r.hash.root&&(t=Object.assign({},r.data.root,t));let i=Object.assign({},n,t,r.hash);return Gw(e)||(i=Object.assign({},e,i)),Gw(e)&&e.view&&e.view.data&&(i=Object.assign({},i,e.view.data)),i}function Zw(e,t,r){return Xw(t)&&(r=t,t=null),Xw(e)&&(r=e,t=null,e=null),{str:e,pattern:t,options:r}}function Kw(e,t,r){const n=Zw(e,t,r),i=Yw(this,{lang:"en",date:new Date(n.str)},{});Pw.locale(i.lang||i.language)}Pw.extend(Rw),Pw.extend(Vw),Pw.extend(Nw),Pw.extend(Fw),Pw.extend(jw),Pw.extend(qw),Pw.extend(Uw),Pw.extend(Ww);var Jw={date:(e,t,r)=>{const n=Zw(e,t,r);if(null==n.str&&null==n.pattern)return Pw.locale("en"),Pw().format("MMMM DD, YYYY");Kw(n.str,n.pattern,n.options);let i=Pw(new Date(n.str));return i="string"==typeof n.options?"utc"===n.options.toLowerCase()?i.utc():i.tz(n.options):i.tz(Pw.tz.guess()),""===n.pattern?i.toISOString():i.format(n.pattern)},duration:(e,t,r)=>{const n=Zw(e,t);Kw(n.str,n.pattern);const i=Pw.duration(n.str,n.pattern);return Xw(r)?i.humanize():i.format(r)}},Qw={HelperFunctionBuiltin:["#if","#unless","#each","#with","lookup","log","blockHelperMissing","each","helperMissing","if","unless","log","lookup","with"],HelperFunctionNames:{OBJECT:"object",ALL:"all",LITERAL:"literal",JS:"js"},LITERAL_MARKER:"%LITERAL%"},ez=Mc((function(e,t){const{date:r,duration:n}=Jw,{HelperFunctionBuiltin:i}=Qw,a=["math","array","number","url","string","comparison","object","regex"],o={date:r,duration:n};t.externalCollections=a,t.addedHelpers=o,t.registerAll=e=>{for(let[t,r]of Object.entries(o))e.registerHelper(t,r);let r=[];for(let t of a){let n=Ow[t]();for(let e of Object.entries(n)){const t=e[0];-1===i.indexOf(t)&&-1===r.indexOf(t)&&r.push(t)}Ow[t]({handlebars:e})}t.externalHelperNames=r.concat(Object.keys(o))},t.unregisterAll=r=>{for(let e of Object.keys(o))r.unregisterHelper(e);for(let t of e.exports.externalHelperNames)r.unregisterHelper(t);t.externalHelperNames=[]},t.externalHelperNames=[]})),tz=Mc((function(e,t){const r=/^[A-Za-z0-9]+$/g;e.exports.FIND_HBS_REGEX=/{{([^{].*?)}}/g,e.exports.FIND_ANY_HBS_REGEX=/{?{{([^{].*?)}}}?/g,e.exports.FIND_TRIPLE_HBS_REGEX=/{{{([^{].*?)}}}/g,e.exports.findDoubleHbsInstances=e=>{let r=e;const n=new RegExp(t.FIND_HBS_REGEX),i=new RegExp(t.FIND_TRIPLE_HBS_REGEX),a=r.match(i);a&&a.forEach((e=>{r=r.replace(e,"")}));return r.match(n)||[]},e.exports.isAlphaNumeric=e=>e.match(r),e.exports.swapStrings=(e,t,r,n)=>e.slice(0,t)+n+e.slice(t+r),e.exports.removeHandlebarsStatements=(e,r="Invalid binding")=>{let n=new RegExp(t.FIND_HBS_REGEX),i=e.match(n);if(null==i)return e;for(let n of i){const i=e.indexOf(n);e=t.swapStrings(e,i,n.length,r)}return e},e.exports.btoa=e=>cd.from(e,"utf-8").toString("base64"),e.exports.atob=e=>cd.from(e,"base64").toString("utf-8")})),rz=Mc((function(e,t){(function(){function r(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function n(e,t,r,n){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(n,o,r(o),e)}return n}function i(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function a(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function o(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function s(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}function l(e,t){return!(null==e||!e.length)&&b(e,t,0)>-1}function c(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function u(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function p(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function d(e,t,r,n){var i=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++i]);++i<a;)r=t(r,e[i],i,e);return r}function h(e,t,r,n){var i=null==e?0:e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function m(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function g(e){return e.match(Ge)||[]}function f(e,t,r){var n;return r(e,(function(e,r,i){if(t(e,r,i))return n=r,!1})),n}function v(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function b(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}(e,t,r):v(e,x,r)}function y(e,t,r,n){for(var i=r-1,a=e.length;++i<a;)if(n(e[i],t))return i;return-1}function x(e){return e!=e}function w(e,t){var r=null==e?0:e.length;return r?C(e,t)/r:J}function z(e){return function(t){return null==t?q:t[e]}}function k(e){return function(t){return null==e?q:e[t]}}function A(e,t,r,n,i){return i(e,(function(e,i,a){r=n?(n=!1,e):t(r,e,i,a)})),r}function C(e,t){for(var r,n=-1,i=e.length;++n<i;){var a=t(e[n]);a!==q&&(r=r===q?a:r+a)}return r}function S(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function _(e){return e?e.slice(0,F(e)+1).replace(je,""):e}function M(e){return function(t){return e(t)}}function T(e,t){return u(t,(function(t){return e[t]}))}function $(e,t){return e.has(t)}function L(e,t){for(var r=-1,n=e.length;++r<n&&b(t,e[r],0)>-1;);return r}function E(e,t){for(var r=e.length;r--&&b(t,e[r],0)>-1;);return r}function I(e){return"\\"+Wt[e]}function B(e){return Vt.test(e)}function D(e){return Nt.test(e)}function H(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function O(e,t){return function(r){return e(t(r))}}function P(e,t){for(var r=-1,n=e.length,i=0,a=[];++r<n;){var o=e[r];o!==t&&o!==X||(e[r]=X,a[i++]=r)}return a}function R(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function V(e){return B(e)?function(e){for(var t=Pt.lastIndex=0;Pt.test(e);)++t;return t}(e):cr(e)}function N(e){return B(e)?function(e){return e.match(Pt)||[]}(e):function(e){return e.split("")}(e)}function F(e){for(var t=e.length;t--&&qe.test(e.charAt(t)););return t}function j(e){return e.match(Rt)||[]}var q,U="Expected a function",W="__lodash_hash_undefined__",X="__lodash_placeholder__",G=32,Y=128,Z=1/0,K=9007199254740991,J=NaN,Q=4294967295,ee=[["ary",Y],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",G],["partialRight",64],["rearg",256]],te="[object Arguments]",re="[object Array]",ne="[object Boolean]",ie="[object Date]",ae="[object Error]",oe="[object Function]",se="[object GeneratorFunction]",le="[object Map]",ce="[object Number]",ue="[object Object]",pe="[object Promise]",de="[object RegExp]",he="[object Set]",me="[object String]",ge="[object Symbol]",fe="[object WeakMap]",ve="[object ArrayBuffer]",be="[object DataView]",ye="[object Float32Array]",xe="[object Float64Array]",we="[object Int8Array]",ze="[object Int16Array]",ke="[object Int32Array]",Ae="[object Uint8Array]",Ce="[object Uint8ClampedArray]",Se="[object Uint16Array]",_e="[object Uint32Array]",Me=/\b__p \+= '';/g,Te=/\b(__p \+=) '' \+/g,$e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Le=/&(?:amp|lt|gt|quot|#39);/g,Ee=/[&<>"']/g,Ie=RegExp(Le.source),Be=RegExp(Ee.source),De=/<%-([\s\S]+?)%>/g,He=/<%([\s\S]+?)%>/g,Oe=/<%=([\s\S]+?)%>/g,Pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Re=/^\w*$/,Ve=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ne=/[\\^$.*+?()[\]{}|]/g,Fe=RegExp(Ne.source),je=/^\s+/,qe=/\s/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,We=/\{\n\/\* \[wrapped with (.+)\] \*/,Xe=/,? & /,Ge=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ye=/[()=,{}\[\]\/\s]/,Ze=/\\(\\)?/g,Ke=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Je=/\w*$/,Qe=/^[-+]0x[0-9a-f]+$/i,et=/^0b[01]+$/i,tt=/^\[object .+?Constructor\]$/,rt=/^0o[0-7]+$/i,nt=/^(?:0|[1-9]\d*)$/,it=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,at=/($^)/,ot=/['\n\r\u2028\u2029\\]/g,st="\\ud800-\\udfff",lt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ct="\\u2700-\\u27bf",ut="a-z\\xdf-\\xf6\\xf8-\\xff",pt="A-Z\\xc0-\\xd6\\xd8-\\xde",dt="\\ufe0e\\ufe0f",ht="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",mt="["+st+"]",gt="["+ht+"]",ft="["+lt+"]",vt="\\d+",bt="["+ct+"]",yt="["+ut+"]",xt="[^"+st+ht+vt+ct+ut+pt+"]",wt="\\ud83c[\\udffb-\\udfff]",zt="[^"+st+"]",kt="(?:\\ud83c[\\udde6-\\uddff]){2}",At="[\\ud800-\\udbff][\\udc00-\\udfff]",Ct="["+pt+"]",St="\\u200d",_t="(?:"+yt+"|"+xt+")",Mt="(?:"+Ct+"|"+xt+")",Tt="(?:['’](?:d|ll|m|re|s|t|ve))?",$t="(?:['’](?:D|LL|M|RE|S|T|VE))?",Lt="(?:"+ft+"|"+wt+")?",Et="["+dt+"]?",It=Et+Lt+"(?:"+St+"(?:"+[zt,kt,At].join("|")+")"+Et+Lt+")*",Bt="(?:"+[bt,kt,At].join("|")+")"+It,Dt="(?:"+[zt+ft+"?",ft,kt,At,mt].join("|")+")",Ht=RegExp("['’]","g"),Ot=RegExp(ft,"g"),Pt=RegExp(wt+"(?="+wt+")|"+Dt+It,"g"),Rt=RegExp([Ct+"?"+yt+"+"+Tt+"(?="+[gt,Ct,"$"].join("|")+")",Mt+"+"+$t+"(?="+[gt,Ct+_t,"$"].join("|")+")",Ct+"?"+_t+"+"+Tt,Ct+"+"+$t,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vt,Bt].join("|"),"g"),Vt=RegExp("["+St+st+lt+dt+"]"),Nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ft=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],jt=-1,qt={};qt[ye]=qt[xe]=qt[we]=qt[ze]=qt[ke]=qt[Ae]=qt[Ce]=qt[Se]=qt[_e]=!0,qt[te]=qt[re]=qt[ve]=qt[ne]=qt[be]=qt[ie]=qt[ae]=qt[oe]=qt[le]=qt[ce]=qt[ue]=qt[de]=qt[he]=qt[me]=qt[fe]=!1;var Ut={};Ut[te]=Ut[re]=Ut[ve]=Ut[be]=Ut[ne]=Ut[ie]=Ut[ye]=Ut[xe]=Ut[we]=Ut[ze]=Ut[ke]=Ut[le]=Ut[ce]=Ut[ue]=Ut[de]=Ut[he]=Ut[me]=Ut[ge]=Ut[Ae]=Ut[Ce]=Ut[Se]=Ut[_e]=!0,Ut[ae]=Ut[oe]=Ut[fe]=!1;var Wt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Xt=parseFloat,Gt=parseInt,Yt="object"==typeof Sc&&Sc&&Sc.Object===Object&&Sc,Zt="object"==typeof self&&self&&self.Object===Object&&self,Kt=Yt||Zt||Function("return this")(),Jt=t&&!t.nodeType&&t,Qt=Jt&&e&&!e.nodeType&&e,er=Qt&&Qt.exports===Jt,tr=er&&Yt.process,rr=function(){try{return Qt&&Qt.require&&Qt.require("util").types||tr&&tr.binding&&tr.binding("util")}catch(e){}}(),nr=rr&&rr.isArrayBuffer,ir=rr&&rr.isDate,ar=rr&&rr.isMap,or=rr&&rr.isRegExp,sr=rr&&rr.isSet,lr=rr&&rr.isTypedArray,cr=z("length"),ur=k({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),pr=k({"&":"&","<":"<",">":">",'"':""","'":"'"}),dr=k({"&":"&","<":"<",">":">",""":'"',"'":"'"}),hr=function e(t){function k(e){if(Ii(e)&&!ks(e)&&!(e instanceof st)){if(e instanceof Ge)return e;if(za.call(e,"__wrapped__"))return ai(e)}return new Ge(e)}function qe(){}function Ge(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=q}function st(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function lt(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ct(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ut(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function pt(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new ut;++t<r;)this.add(e[t])}function dt(e){this.size=(this.__data__=new ct(e)).size}function ht(e,t){var r=ks(e),n=!r&&zs(e),i=!r&&!n&&Cs(e),a=!r&&!n&&!i&&$s(e),o=r||n||i||a,s=o?S(e.length,ga):[],l=s.length;for(var c in e)!t&&!za.call(e,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||qn(c,l))||s.push(c);return s}function mt(e){var t=e.length;return t?e[Sr(0,t-1)]:q}function gt(e,t){return ri(nn(e),At(t,0,e.length))}function ft(e){return ri(nn(e))}function vt(e,t,r){(r===q||Ci(e[t],r))&&(r!==q||t in e)||zt(e,t,r)}function bt(e,t,r){var n=e[t];za.call(e,t)&&Ci(n,r)&&(r!==q||t in e)||zt(e,t,r)}function yt(e,t){for(var r=e.length;r--;)if(Ci(e[r][0],t))return r;return-1}function xt(e,t,r,n){return wo(e,(function(e,i,a){t(n,e,r(e),a)})),n}function wt(e,t){return e&&an(t,Xi(t),e)}function zt(e,t,r){"__proto__"==t&&Va?Va(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function kt(e,t){for(var r=-1,n=t.length,i=la(n),a=null==e;++r<n;)i[r]=a?q:Ui(e,t[r]);return i}function At(e,t,r){return e==e&&(r!==q&&(e=e<=r?e:r),t!==q&&(e=e>=t?e:t)),e}function Ct(e,t,r,n,a,o){var s,l=1&t,c=2&t,u=4&t;if(r&&(s=a?r(e,n,a,o):r(e)),s!==q)return s;if(!Ei(e))return e;var p=ks(e);if(p){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&za.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!l)return nn(e,s)}else{var d=Io(e),h=d==oe||d==se;if(Cs(e))return Kr(e,l);if(d==ue||d==te||h&&!a){if(s=c||h?{}:Fn(e),!l)return c?function(e,t){return an(e,Eo(e),t)}(e,function(e,t){return e&&an(t,Gi(t),e)}(s,e)):function(e,t){return an(e,Lo(e),t)}(e,wt(s,e))}else{if(!Ut[d])return a?e:{};s=function(e,t,r){var n=e.constructor;switch(t){case ve:return Jr(e);case ne:case ie:return new n(+e);case be:return function(e,t){return new e.constructor(t?Jr(e.buffer):e.buffer,e.byteOffset,e.byteLength)}(e,r);case ye:case xe:case we:case ze:case ke:case Ae:case Ce:case Se:case _e:return Qr(e,r);case le:return new n;case ce:case me:return new n(e);case de:return function(e){var t=new e.constructor(e.source,Je.exec(e));return t.lastIndex=e.lastIndex,t}(e);case he:return new n;case ge:return function(e){return bo?ha(bo.call(e)):{}}(e)}}(e,d,l)}}o||(o=new dt);var m=o.get(e);if(m)return m;o.set(e,s),Ts(e)?e.forEach((function(n){s.add(Ct(n,t,r,n,e,o))})):_s(e)&&e.forEach((function(n,i){s.set(i,Ct(n,t,r,i,e,o))}));var g=p?q:(u?c?Bn:In:c?Gi:Xi)(e);return i(g||e,(function(n,i){g&&(n=e[i=n]),bt(s,i,Ct(n,t,r,i,e,o))})),s}function St(e,t,r){var n=r.length;if(null==e)return!n;for(e=ha(e);n--;){var i=r[n],a=t[i],o=e[i];if(o===q&&!(i in e)||!a(o))return!1}return!0}function _t(e,t,r){if("function"!=typeof e)throw new fa(U);return Ho((function(){e.apply(q,r)}),t)}function Mt(e,t,r,n){var i=-1,a=l,o=!0,s=e.length,p=[],d=t.length;if(!s)return p;r&&(t=u(t,M(r))),n?(a=c,o=!1):t.length>=200&&(a=$,o=!1,t=new pt(t));e:for(;++i<s;){var h=e[i],m=null==r?h:r(h);if(h=n||0!==h?h:0,o&&m==m){for(var g=d;g--;)if(t[g]===m)continue e;p.push(h)}else a(t,m,n)||p.push(h)}return p}function Tt(e,t){var r=!0;return wo(e,(function(e,n,i){return r=!!t(e,n,i)})),r}function $t(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],o=t(a);if(null!=o&&(s===q?o==o&&!Oi(o):r(o,s)))var s=o,l=a}return l}function Lt(e,t){var r=[];return wo(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function Et(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=jn),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?Et(s,t-1,r,n,i):p(i,s):n||(i[i.length]=s)}return i}function It(e,t){return e&&ko(e,t,Xi)}function Bt(e,t){return e&&Ao(e,t,Xi)}function Dt(e,t){return s(t,(function(t){return Ti(e[t])}))}function Pt(e,t){for(var r=0,n=(t=Yr(t,e)).length;null!=e&&r<n;)e=e[ni(t[r++])];return r&&r==n?e:q}function Rt(e,t,r){var n=t(e);return ks(e)?n:p(n,r(e))}function Vt(e){return null==e?e===q?"[object Undefined]":"[object Null]":Ra&&Ra in ha(e)?function(e){var t=za.call(e,Ra),r=e[Ra];try{e[Ra]=q;var n=!0}catch(e){}var i=Ca.call(e);return n&&(t?e[Ra]=r:delete e[Ra]),i}(e):function(e){return Ca.call(e)}(e)}function Nt(e,t){return e>t}function Wt(e,t){return null!=e&&za.call(e,t)}function Yt(e,t){return null!=e&&t in ha(e)}function Zt(e,t,r){for(var n=r?c:l,i=e[0].length,a=e.length,o=a,s=la(a),p=1/0,d=[];o--;){var h=e[o];o&&t&&(h=u(h,M(t))),p=Ja(h.length,p),s[o]=!r&&(t||i>=120&&h.length>=120)?new pt(o&&h):q}h=e[0];var m=-1,g=s[0];e:for(;++m<i&&d.length<p;){var f=h[m],v=t?t(f):f;if(f=r||0!==f?f:0,!(g?$(g,v):n(d,v,r))){for(o=a;--o;){var b=s[o];if(!(b?$(b,v):n(e[o],v,r)))continue e}g&&g.push(v),d.push(f)}}return d}function Jt(e,t,n){var i=null==(e=Jn(e,t=Yr(t,e)))?e:e[ni(ui(t))];return null==i?q:r(i,e,n)}function Qt(e){return Ii(e)&&Vt(e)==te}function tr(e,t,r,n,i){return e===t||(null==e||null==t||!Ii(e)&&!Ii(t)?e!=e&&t!=t:function(e,t,r,n,i,a){var o=ks(e),s=ks(t),l=o?re:Io(e),c=s?re:Io(t),u=(l=l==te?ue:l)==ue,p=(c=c==te?ue:c)==ue,d=l==c;if(d&&Cs(e)){if(!Cs(t))return!1;o=!0,u=!1}if(d&&!u)return a||(a=new dt),o||$s(e)?Ln(e,t,r,n,i,a):function(e,t,r,n,i,a,o){switch(r){case be:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ve:return!(e.byteLength!=t.byteLength||!a(new La(e),new La(t)));case ne:case ie:case ce:return Ci(+e,+t);case ae:return e.name==t.name&&e.message==t.message;case de:case me:return e==t+"";case le:var s=H;case he:var l=1&n;if(s||(s=R),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=2,o.set(e,t);var u=Ln(s(e),s(t),n,i,a,o);return o.delete(e),u;case ge:if(bo)return bo.call(e)==bo.call(t)}return!1}(e,t,l,r,n,i,a);if(!(1&r)){var h=u&&za.call(e,"__wrapped__"),m=p&&za.call(t,"__wrapped__");if(h||m){var g=h?e.value():e,f=m?t.value():t;return a||(a=new dt),i(g,f,r,n,a)}}return!!d&&(a||(a=new dt),function(e,t,r,n,i,a){var o=1&r,s=In(e),l=s.length;if(l!=In(t).length&&!o)return!1;for(var c=l;c--;){var u=s[c];if(!(o?u in t:za.call(t,u)))return!1}var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=o;++c<l;){var g=e[u=s[c]],f=t[u];if(n)var v=o?n(f,g,u,t,e,a):n(g,f,u,e,t,a);if(!(v===q?g===f||i(g,f,r,n,a):v)){h=!1;break}m||(m="constructor"==u)}if(h&&!m){var b=e.constructor,y=t.constructor;b!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y)&&(h=!1)}return a.delete(e),a.delete(t),h}(e,t,r,n,i,a))}(e,t,r,n,tr,i))}function rr(e,t,r,n){var i=r.length,a=i,o=!n;if(null==e)return!a;for(e=ha(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var l=(s=r[i])[0],c=e[l],u=s[1];if(o&&s[2]){if(c===q&&!(l in e))return!1}else{var p=new dt;if(n)var d=n(c,u,l,e,t,p);if(!(d===q?tr(u,c,3,n,p):d))return!1}}return!0}function cr(e){return!(!Ei(e)||function(e){return!!Aa&&Aa in e}(e))&&(Ti(e)?Ma:tt).test(ii(e))}function mr(e){return"function"==typeof e?e:null==e?ta:"object"==typeof e?ks(e)?yr(e[0],e[1]):br(e):aa(e)}function gr(e){if(!Gn(e))return Za(e);var t=[];for(var r in ha(e))za.call(e,r)&&"constructor"!=r&&t.push(r);return t}function fr(e,t){return e<t}function vr(e,t){var r=-1,n=Si(e)?la(e.length):[];return wo(e,(function(e,i,a){n[++r]=t(e,i,a)})),n}function br(e){var t=Rn(e);return 1==t.length&&t[0][2]?Zn(t[0][0],t[0][1]):function(r){return r===e||rr(r,e,t)}}function yr(e,t){return Wn(e)&&Yn(t)?Zn(ni(e),t):function(r){var n=Ui(r,e);return n===q&&n===t?Wi(r,e):tr(t,n,3)}}function xr(e,t,r,n,i){e!==t&&ko(t,(function(a,o){if(i||(i=new dt),Ei(a))!function(e,t,r,n,i,a,o){var s=Qn(e,r),l=Qn(t,r),c=o.get(l);if(c)return vt(e,r,c),q;var u=a?a(s,l,r+"",e,t,o):q,p=u===q;if(p){var d=ks(l),h=!d&&Cs(l),m=!d&&!h&&$s(l);u=l,d||h||m?ks(s)?u=s:_i(s)?u=nn(s):h?(p=!1,u=Kr(l,!0)):m?(p=!1,u=Qr(l,!0)):u=[]:Di(l)||zs(l)?(u=s,zs(s)?u=ji(s):Ei(s)&&!Ti(s)||(u=Fn(l))):p=!1}p&&(o.set(l,u),i(u,l,n,a,o),o.delete(l)),vt(e,r,u)}(e,t,o,r,xr,n,i);else{var s=n?n(Qn(e,o),a,o+"",e,t,i):q;s===q&&(s=a),vt(e,o,s)}}),Gi)}function wr(e,t){var r=e.length;if(r)return qn(t+=t<0?r:0,r)?e[t]:q}function zr(e,t,r){t=t.length?u(t,(function(e){return ks(e)?function(t){return Pt(t,1===e.length?e[0]:e)}:e})):[ta];var n=-1;return t=u(t,M(On())),function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(vr(e,(function(e,r,i){return{criteria:u(t,(function(t){return t(e)})),index:++n,value:e}})),(function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,s=r.length;++n<o;){var l=en(i[n],a[n]);if(l)return n>=s?l:l*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function kr(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],s=Pt(e,o);r(s,o)&&Lr(a,Yr(o,e),s)}return a}function Ar(e,t,r,n){var i=n?y:b,a=-1,o=t.length,s=e;for(e===t&&(t=nn(t)),r&&(s=u(e,M(r)));++a<o;)for(var l=0,c=t[a],p=r?r(c):c;(l=i(s,p,l,n))>-1;)s!==e&&Ha.call(s,l,1),Ha.call(e,l,1);return e}function Cr(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==a){var a=i;qn(i)?Ha.call(e,i,1):Nr(e,i)}}return e}function Sr(e,t){return e+Ua(to()*(t-e+1))}function _r(e,t){var r="";if(!e||t<1||t>K)return r;do{t%2&&(r+=e),(t=Ua(t/2))&&(e+=e)}while(t);return r}function Mr(e,t){return Oo(Kn(e,t,ta),e+"")}function Tr(e){return mt(Zi(e))}function $r(e,t){var r=Zi(e);return ri(r,At(t,0,r.length))}function Lr(e,t,r,n){if(!Ei(e))return e;for(var i=-1,a=(t=Yr(t,e)).length,o=a-1,s=e;null!=s&&++i<a;){var l=ni(t[i]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=o){var u=s[l];(c=n?n(u,l,s):q)===q&&(c=Ei(u)?u:qn(t[i+1])?[]:{})}bt(s,l,c),s=s[l]}return e}function Er(e){return ri(Zi(e))}function Ir(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=la(i);++n<i;)a[n]=e[n+t];return a}function Br(e,t){var r;return wo(e,(function(e,n,i){return!(r=t(e,n,i))})),!!r}function Dr(e,t,r){var n=0,i=null==e?n:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;n<i;){var a=n+i>>>1,o=e[a];null!==o&&!Oi(o)&&(r?o<=t:o<t)?n=a+1:i=a}return i}return Hr(e,t,ta,r)}function Hr(e,t,r,n){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var o=(t=r(t))!=t,s=null===t,l=Oi(t),c=t===q;i<a;){var u=Ua((i+a)/2),p=r(e[u]),d=p!==q,h=null===p,m=p==p,g=Oi(p);if(o)var f=n||m;else f=c?m&&(n||d):s?m&&d&&(n||!h):l?m&&d&&!h&&(n||!g):!h&&!g&&(n?p<=t:p<t);f?i=u+1:a=u}return Ja(a,4294967294)}function Or(e,t){for(var r=-1,n=e.length,i=0,a=[];++r<n;){var o=e[r],s=t?t(o):o;if(!r||!Ci(s,l)){var l=s;a[i++]=0===o?0:o}}return a}function Pr(e){return"number"==typeof e?e:Oi(e)?J:+e}function Rr(e){if("string"==typeof e)return e;if(ks(e))return u(e,Rr)+"";if(Oi(e))return yo?yo.call(e):"";var t=e+"";return"0"==t&&1/e==-Z?"-0":t}function Vr(e,t,r){var n=-1,i=l,a=e.length,o=!0,s=[],u=s;if(r)o=!1,i=c;else if(a>=200){var p=t?null:To(e);if(p)return R(p);o=!1,i=$,u=new pt}else u=t?[]:s;e:for(;++n<a;){var d=e[n],h=t?t(d):d;if(d=r||0!==d?d:0,o&&h==h){for(var m=u.length;m--;)if(u[m]===h)continue e;t&&u.push(h),s.push(d)}else i(u,h,r)||(u!==s&&u.push(h),s.push(d))}return s}function Nr(e,t){return null==(e=Jn(e,t=Yr(t,e)))||delete e[ni(ui(t))]}function Fr(e,t,r,n){return Lr(e,t,r(Pt(e,t)),n)}function jr(e,t,r,n){for(var i=e.length,a=n?i:-1;(n?a--:++a<i)&&t(e[a],a,e););return r?Ir(e,n?0:a,n?a+1:i):Ir(e,n?a+1:0,n?i:a)}function qr(e,t){var r=e;return r instanceof st&&(r=r.value()),d(t,(function(e,t){return t.func.apply(t.thisArg,p([e],t.args))}),r)}function Ur(e,t,r){var n=e.length;if(n<2)return n?Vr(e[0]):[];for(var i=-1,a=la(n);++i<n;)for(var o=e[i],s=-1;++s<n;)s!=i&&(a[i]=Mt(a[i]||o,e[s],t,r));return Vr(Et(a,1),t,r)}function Wr(e,t,r){for(var n=-1,i=e.length,a=t.length,o={};++n<i;)r(o,e[n],n<a?t[n]:q);return o}function Xr(e){return _i(e)?e:[]}function Gr(e){return"function"==typeof e?e:ta}function Yr(e,t){return ks(e)?e:Wn(e,t)?[e]:Po(qi(e))}function Zr(e,t,r){var n=e.length;return r=r===q?n:r,!t&&r>=n?e:Ir(e,t,r)}function Kr(e,t){if(t)return e.slice();var r=e.length,n=Ea?Ea(r):new e.constructor(r);return e.copy(n),n}function Jr(e){var t=new e.constructor(e.byteLength);return new La(t).set(new La(e)),t}function Qr(e,t){return new e.constructor(t?Jr(e.buffer):e.buffer,e.byteOffset,e.length)}function en(e,t){if(e!==t){var r=e!==q,n=null===e,i=e==e,a=Oi(e),o=t!==q,s=null===t,l=t==t,c=Oi(t);if(!s&&!c&&!a&&e>t||a&&o&&l&&!s&&!c||n&&o&&l||!r&&l||!i)return 1;if(!n&&!a&&!c&&e<t||c&&r&&i&&!n&&!a||s&&r&&i||!o&&i||!l)return-1}return 0}function tn(e,t,r,n){for(var i=-1,a=e.length,o=r.length,s=-1,l=t.length,c=Ka(a-o,0),u=la(l+c),p=!n;++s<l;)u[s]=t[s];for(;++i<o;)(p||i<a)&&(u[r[i]]=e[i]);for(;c--;)u[s++]=e[i++];return u}function rn(e,t,r,n){for(var i=-1,a=e.length,o=-1,s=r.length,l=-1,c=t.length,u=Ka(a-s,0),p=la(u+c),d=!n;++i<u;)p[i]=e[i];for(var h=i;++l<c;)p[h+l]=t[l];for(;++o<s;)(d||i<a)&&(p[h+r[o]]=e[i++]);return p}function nn(e,t){var r=-1,n=e.length;for(t||(t=la(n));++r<n;)t[r]=e[r];return t}function an(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=n?n(r[s],e[s],s,r,e):q;l===q&&(l=e[s]),i?zt(r,s,l):bt(r,s,l)}return r}function on(e,t){return function(r,i){var a=ks(r)?n:xt,o=t?t():{};return a(r,e,On(i,2),o)}}function sn(e){return Mr((function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:q,o=i>2?r[2]:q;for(a=e.length>3&&"function"==typeof a?(i--,a):q,o&&Un(r[0],r[1],o)&&(a=i<3?q:a,i=1),t=ha(t);++n<i;){var s=r[n];s&&e(t,s,n,a)}return t}))}function ln(e,t){return function(r,n){if(null==r)return r;if(!Si(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=ha(r);(t?a--:++a<i)&&!1!==n(o[a],a,o););return r}}function cn(e){return function(t,r,n){for(var i=-1,a=ha(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===r(a[l],l,a))break}return t}}function un(e){return function(t){var r=B(t=qi(t))?N(t):q,n=r?r[0]:t.charAt(0),i=r?Zr(r,1).join(""):t.slice(1);return n[e]()+i}}function pn(e){return function(t){return d(Qi(Ji(t).replace(Ht,"")),e,"")}}function dn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=xo(e.prototype),n=e.apply(r,t);return Ei(n)?n:r}}function hn(e,t,n){var i=dn(e);return function a(){for(var o=arguments.length,s=la(o),l=o,c=Hn(a);l--;)s[l]=arguments[l];var u=o<3&&s[0]!==c&&s[o-1]!==c?[]:P(s,c);return(o-=u.length)<n?An(e,t,fn,a.placeholder,q,s,u,q,q,n-o):r(this&&this!==Kt&&this instanceof a?i:e,this,s)}}function mn(e){return function(t,r,n){var i=ha(t);if(!Si(t)){var a=On(r,3);t=Xi(t),r=function(e){return a(i[e],e,i)}}var o=e(t,r,n);return o>-1?i[a?t[o]:o]:q}}function gn(e){return En((function(t){var r=t.length,n=r,i=Ge.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new fa(U);if(i&&!o&&"wrapper"==Dn(a))var o=new Ge([],!0)}for(n=o?n:r;++n<r;){var s=Dn(a=t[n]),l="wrapper"==s?$o(a):q;o=l&&Xn(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?o[Dn(l[0])].apply(o,l[3]):1==a.length&&Xn(a)?o[s]():o.thru(a)}return function(){var e=arguments,n=e[0];if(o&&1==e.length&&ks(n))return o.plant(n).value();for(var i=0,a=r?t[i].apply(this,e):n;++i<r;)a=t[i].call(this,a);return a}}))}function fn(e,t,r,n,i,a,o,s,l,c){var u=t&Y,p=1&t,d=2&t,h=24&t,m=512&t,g=d?q:dn(e);return function f(){for(var v=arguments.length,b=la(v),y=v;y--;)b[y]=arguments[y];if(h)var x=Hn(f),w=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(b,x);if(n&&(b=tn(b,n,i,h)),a&&(b=rn(b,a,o,h)),v-=w,h&&v<c)return An(e,t,fn,f.placeholder,r,b,P(b,x),s,l,c-v);var z=p?r:this,k=d?z[e]:e;return v=b.length,s?b=function(e,t){for(var r=e.length,n=Ja(t.length,r),i=nn(e);n--;){var a=t[n];e[n]=qn(a,r)?i[a]:q}return e}(b,s):m&&v>1&&b.reverse(),u&&l<v&&(b.length=l),this&&this!==Kt&&this instanceof f&&(k=g||dn(k)),k.apply(z,b)}}function vn(e,t){return function(r,n){return function(e,t,r,n){return It(e,(function(e,i,a){t(n,r(e),i,a)})),n}(r,e,t(n),{})}}function bn(e,t){return function(r,n){var i;if(r===q&&n===q)return t;if(r!==q&&(i=r),n!==q){if(i===q)return n;"string"==typeof r||"string"==typeof n?(r=Rr(r),n=Rr(n)):(r=Pr(r),n=Pr(n)),i=e(r,n)}return i}}function yn(e){return En((function(t){return t=u(t,M(On())),Mr((function(n){var i=this;return e(t,(function(e){return r(e,i,n)}))}))}))}function xn(e,t){var r=(t=t===q?" ":Rr(t)).length;if(r<2)return r?_r(t,e):t;var n=_r(t,qa(e/V(t)));return B(t)?Zr(N(n),0,e).join(""):n.slice(0,e)}function wn(e,t,n,i){var a=1&t,o=dn(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=i.length,p=la(u+l),d=this&&this!==Kt&&this instanceof t?o:e;++c<u;)p[c]=i[c];for(;l--;)p[c++]=arguments[++s];return r(d,a?n:this,p)}}function zn(e){return function(t,r,n){return n&&"number"!=typeof n&&Un(t,r,n)&&(r=n=q),t=Ri(t),r===q?(r=t,t=0):r=Ri(r),function(e,t,r,n){for(var i=-1,a=Ka(qa((t-e)/(r||1)),0),o=la(a);a--;)o[n?a:++i]=e,e+=r;return o}(t,r,n=n===q?t<r?1:-1:Ri(n),e)}}function kn(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=Fi(t),r=Fi(r)),e(t,r)}}function An(e,t,r,n,i,a,o,s,l,c){var u=8&t;t|=u?G:64,4&(t&=~(u?64:G))||(t&=-4);var p=[e,t,i,u?a:q,u?o:q,u?q:a,u?q:o,s,l,c],d=r.apply(q,p);return Xn(e)&&Do(d,p),d.placeholder=n,ei(d,e,t)}function Cn(e){var t=da[e];return function(e,r){if(e=Fi(e),(r=null==r?0:Ja(Vi(r),292))&&Ga(e)){var n=(qi(e)+"e").split("e");return+((n=(qi(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}function Sn(e){return function(t){var r=Io(t);return r==le?H(t):r==he?function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}(t):function(e,t){return u(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function _n(e,t,r,n,i,a,o,s){var l=2&t;if(!l&&"function"!=typeof e)throw new fa(U);var c=n?n.length:0;if(c||(t&=-97,n=i=q),o=o===q?o:Ka(Vi(o),0),s=s===q?s:Vi(s),c-=i?i.length:0,64&t){var u=n,p=i;n=i=q}var d=l?q:$o(e),h=[e,t,r,n,i,u,p,a,o,s];if(d&&function(e,t){var r=e[1],n=t[1],i=r|n,a=i<131,o=n==Y&&8==r||n==Y&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!a&&!o)return e;1&n&&(e[2]=t[2],i|=1&r?0:4);var s=t[3];if(s){var l=e[3];e[3]=l?tn(l,s,t[4]):s,e[4]=l?P(e[3],X):t[4]}(s=t[5])&&(l=e[5],e[5]=l?rn(l,s,t[6]):s,e[6]=l?P(e[5],X):t[6]),(s=t[7])&&(e[7]=s),n&Y&&(e[8]=null==e[8]?t[8]:Ja(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(h,d),e=h[0],t=h[1],r=h[2],n=h[3],i=h[4],!(s=h[9]=h[9]===q?l?0:e.length:Ka(h[9]-c,0))&&24&t&&(t&=-25),t&&1!=t)m=8==t||16==t?hn(e,t,s):t!=G&&33!=t||i.length?fn.apply(q,h):wn(e,t,r,n);else var m=function(e,t,r){var n=1&t,i=dn(e);return function t(){return(this&&this!==Kt&&this instanceof t?i:e).apply(n?r:this,arguments)}}(e,t,r);return ei((d?Co:Do)(m,h),e,t)}function Mn(e,t,r,n){return e===q||Ci(e,ya[r])&&!za.call(n,r)?t:e}function Tn(e,t,r,n,i,a){return Ei(e)&&Ei(t)&&(a.set(t,e),xr(e,t,q,Tn,a),a.delete(t)),e}function $n(e){return Di(e)?q:e}function Ln(e,t,r,n,i,a){var o=1&r,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var p=-1,d=!0,h=2&r?new pt:q;for(a.set(e,t),a.set(t,e);++p<s;){var g=e[p],f=t[p];if(n)var v=o?n(f,g,p,t,e,a):n(g,f,p,e,t,a);if(v!==q){if(v)continue;d=!1;break}if(h){if(!m(t,(function(e,t){if(!$(h,t)&&(g===e||i(g,e,r,n,a)))return h.push(t)}))){d=!1;break}}else if(g!==f&&!i(g,f,r,n,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function En(e){return Oo(Kn(e,q,li),e+"")}function In(e){return Rt(e,Xi,Lo)}function Bn(e){return Rt(e,Gi,Eo)}function Dn(e){for(var t=e.name+"",r=uo[t],n=za.call(uo,t)?r.length:0;n--;){var i=r[n],a=i.func;if(null==a||a==e)return i.name}return t}function Hn(e){return(za.call(k,"placeholder")?k:e).placeholder}function On(){var e=k.iteratee||ra;return e=e===ra?mr:e,arguments.length?e(arguments[0],arguments[1]):e}function Pn(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function Rn(e){for(var t=Xi(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Yn(i)]}return t}function Vn(e,t){var r=function(e,t){return null==e?q:e[t]}(e,t);return cr(r)?r:q}function Nn(e,t,r){for(var n=-1,i=(t=Yr(t,e)).length,a=!1;++n<i;){var o=ni(t[n]);if(!(a=null!=e&&r(e,o)))break;e=e[o]}return a||++n!=i?a:!!(i=null==e?0:e.length)&&Li(i)&&qn(o,i)&&(ks(e)||zs(e))}function Fn(e){return"function"!=typeof e.constructor||Gn(e)?{}:xo(Ia(e))}function jn(e){return ks(e)||zs(e)||!!(Oa&&e&&e[Oa])}function qn(e,t){var r=typeof e;return!!(t=null==t?K:t)&&("number"==r||"symbol"!=r&&nt.test(e))&&e>-1&&e%1==0&&e<t}function Un(e,t,r){if(!Ei(r))return!1;var n=typeof t;return!!("number"==n?Si(r)&&qn(t,r.length):"string"==n&&t in r)&&Ci(r[t],e)}function Wn(e,t){if(ks(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Oi(e))||Re.test(e)||!Pe.test(e)||null!=t&&e in ha(t)}function Xn(e){var t=Dn(e),r=k[t];if("function"!=typeof r||!(t in st.prototype))return!1;if(e===r)return!0;var n=$o(r);return!!n&&e===n[0]}function Gn(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ya)}function Yn(e){return e==e&&!Ei(e)}function Zn(e,t){return function(r){return null!=r&&r[e]===t&&(t!==q||e in ha(r))}}function Kn(e,t,n){return t=Ka(t===q?e.length-1:t,0),function(){for(var i=arguments,a=-1,o=Ka(i.length-t,0),s=la(o);++a<o;)s[a]=i[t+a];a=-1;for(var l=la(t+1);++a<t;)l[a]=i[a];return l[t]=n(s),r(e,this,l)}}function Jn(e,t){return t.length<2?e:Pt(e,Ir(t,0,-1))}function Qn(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function ei(e,t,r){var n=t+"";return Oo(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(Ue,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return i(ee,(function(r){var n="_."+r[0];t&r[1]&&!l(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(We);return t?t[1].split(Xe):[]}(n),r)))}function ti(e){var t=0,r=0;return function(){var n=Qa(),i=16-(n-r);if(r=n,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(q,arguments)}}function ri(e,t){var r=-1,n=e.length,i=n-1;for(t=t===q?n:t;++r<t;){var a=Sr(r,i),o=e[a];e[a]=e[r],e[r]=o}return e.length=t,e}function ni(e){if("string"==typeof e||Oi(e))return e;var t=e+"";return"0"==t&&1/e==-Z?"-0":t}function ii(e){if(null!=e){try{return wa.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ai(e){if(e instanceof st)return e.clone();var t=new Ge(e.__wrapped__,e.__chain__);return t.__actions__=nn(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function oi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:Vi(r);return i<0&&(i=Ka(n+i,0)),v(e,On(t,3),i)}function si(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n-1;return r!==q&&(i=Vi(r),i=r<0?Ka(n+i,0):Ja(i,n-1)),v(e,On(t,3),i,!0)}function li(e){return null!=e&&e.length?Et(e,1):[]}function ci(e){return e&&e.length?e[0]:q}function ui(e){var t=null==e?0:e.length;return t?e[t-1]:q}function pi(e,t){return e&&e.length&&t&&t.length?Ar(e,t):e}function di(e){return null==e?e:ro.call(e)}function hi(e){if(!e||!e.length)return[];var t=0;return e=s(e,(function(e){if(_i(e))return t=Ka(e.length,t),!0})),S(t,(function(t){return u(e,z(t))}))}function mi(e,t){if(!e||!e.length)return[];var n=hi(e);return null==t?n:u(n,(function(e){return r(t,q,e)}))}function gi(e){var t=k(e);return t.__chain__=!0,t}function fi(e,t){return t(e)}function vi(e,t){return(ks(e)?i:wo)(e,On(t,3))}function bi(e,t){return(ks(e)?a:zo)(e,On(t,3))}function yi(e,t){return(ks(e)?u:vr)(e,On(t,3))}function xi(e,t,r){return t=r?q:t,t=e&&null==t?e.length:t,_n(e,Y,q,q,q,q,t)}function wi(e,t){var r;if("function"!=typeof t)throw new fa(U);return e=Vi(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=q),r}}function zi(e,t,r){function n(t){var r=l,n=c;return l=c=q,m=t,p=e.apply(n,r)}function i(e){var r=e-h;return h===q||r>=t||r<0||f&&e-m>=u}function a(){var e=ps();return i(e)?o(e):(d=Ho(a,function(e){var r=t-(e-h);return f?Ja(r,u-(e-m)):r}(e)),q)}function o(e){return d=q,v&&l?n(e):(l=c=q,p)}function s(){var e=ps(),r=i(e);if(l=arguments,c=this,h=e,r){if(d===q)return function(e){return m=e,d=Ho(a,t),g?n(e):p}(h);if(f)return Mo(d),d=Ho(a,t),n(h)}return d===q&&(d=Ho(a,t)),p}var l,c,u,p,d,h,m=0,g=!1,f=!1,v=!0;if("function"!=typeof e)throw new fa(U);return t=Fi(t)||0,Ei(r)&&(g=!!r.leading,u=(f="maxWait"in r)?Ka(Fi(r.maxWait)||0,t):u,v="trailing"in r?!!r.trailing:v),s.cancel=function(){d!==q&&Mo(d),m=0,l=h=c=d=q},s.flush=function(){return d===q?p:o(ps())},s}function ki(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new fa(U);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(ki.Cache||ut),r}function Ai(e){if("function"!=typeof e)throw new fa(U);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ci(e,t){return e===t||e!=e&&t!=t}function Si(e){return null!=e&&Li(e.length)&&!Ti(e)}function _i(e){return Ii(e)&&Si(e)}function Mi(e){if(!Ii(e))return!1;var t=Vt(e);return t==ae||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Di(e)}function Ti(e){if(!Ei(e))return!1;var t=Vt(e);return t==oe||t==se||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $i(e){return"number"==typeof e&&e==Vi(e)}function Li(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=K}function Ei(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ii(e){return null!=e&&"object"==typeof e}function Bi(e){return"number"==typeof e||Ii(e)&&Vt(e)==ce}function Di(e){if(!Ii(e)||Vt(e)!=ue)return!1;var t=Ia(e);if(null===t)return!0;var r=za.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&wa.call(r)==Sa}function Hi(e){return"string"==typeof e||!ks(e)&&Ii(e)&&Vt(e)==me}function Oi(e){return"symbol"==typeof e||Ii(e)&&Vt(e)==ge}function Pi(e){if(!e)return[];if(Si(e))return Hi(e)?N(e):nn(e);if(Pa&&e[Pa])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Pa]());var t=Io(e);return(t==le?H:t==he?R:Zi)(e)}function Ri(e){return e?(e=Fi(e))===Z||e===-Z?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Vi(e){var t=Ri(e),r=t%1;return t==t?r?t-r:t:0}function Ni(e){return e?At(Vi(e),0,Q):0}function Fi(e){if("number"==typeof e)return e;if(Oi(e))return J;if(Ei(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ei(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=_(e);var r=et.test(e);return r||rt.test(e)?Gt(e.slice(2),r?2:8):Qe.test(e)?J:+e}function ji(e){return an(e,Gi(e))}function qi(e){return null==e?"":Rr(e)}function Ui(e,t,r){var n=null==e?q:Pt(e,t);return n===q?r:n}function Wi(e,t){return null!=e&&Nn(e,t,Yt)}function Xi(e){return Si(e)?ht(e):gr(e)}function Gi(e){return Si(e)?ht(e,!0):function(e){if(!Ei(e))return function(e){var t=[];if(null!=e)for(var r in ha(e))t.push(r);return t}(e);var t=Gn(e),r=[];for(var n in e)("constructor"!=n||!t&&za.call(e,n))&&r.push(n);return r}(e)}function Yi(e,t){if(null==e)return{};var r=u(Bn(e),(function(e){return[e]}));return t=On(t),kr(e,r,(function(e,r){return t(e,r[0])}))}function Zi(e){return null==e?[]:T(e,Xi(e))}function Ki(e){return rl(qi(e).toLowerCase())}function Ji(e){return(e=qi(e))&&e.replace(it,ur).replace(Ot,"")}function Qi(e,t,r){return e=qi(e),(t=r?q:t)===q?D(e)?j(e):g(e):e.match(t)||[]}function ea(e){return function(){return e}}function ta(e){return e}function ra(e){return mr("function"==typeof e?e:Ct(e,1))}function na(e,t,r){var n=Xi(t),a=Dt(t,n);null!=r||Ei(t)&&(a.length||!n.length)||(r=t,t=e,e=this,a=Dt(t,Xi(t)));var o=!(Ei(r)&&"chain"in r&&!r.chain),s=Ti(e);return i(a,(function(r){var n=t[r];e[r]=n,s&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=nn(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,p([this.value()],arguments))})})),e}function ia(){}function aa(e){return Wn(e)?z(ni(e)):function(e){return function(t){return Pt(t,e)}}(e)}function oa(){return[]}function sa(){return!1}var la=(t=null==t?Kt:hr.defaults(Kt.Object(),t,hr.pick(Kt,Ft))).Array,ca=t.Date,ua=t.Error,pa=t.Function,da=t.Math,ha=t.Object,ma=t.RegExp,ga=t.String,fa=t.TypeError,va=la.prototype,ba=pa.prototype,ya=ha.prototype,xa=t["__core-js_shared__"],wa=ba.toString,za=ya.hasOwnProperty,ka=0,Aa=function(){var e=/[^.]+$/.exec(xa&&xa.keys&&xa.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ca=ya.toString,Sa=wa.call(ha),_a=Kt._,Ma=ma("^"+wa.call(za).replace(Ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ta=er?t.Buffer:q,$a=t.Symbol,La=t.Uint8Array,Ea=Ta?Ta.allocUnsafe:q,Ia=O(ha.getPrototypeOf,ha),Ba=ha.create,Da=ya.propertyIsEnumerable,Ha=va.splice,Oa=$a?$a.isConcatSpreadable:q,Pa=$a?$a.iterator:q,Ra=$a?$a.toStringTag:q,Va=function(){try{var e=Vn(ha,"defineProperty");return e({},"",{}),e}catch(e){}}(),Na=t.clearTimeout!==Kt.clearTimeout&&t.clearTimeout,Fa=ca&&ca.now!==Kt.Date.now&&ca.now,ja=t.setTimeout!==Kt.setTimeout&&t.setTimeout,qa=da.ceil,Ua=da.floor,Wa=ha.getOwnPropertySymbols,Xa=Ta?Ta.isBuffer:q,Ga=t.isFinite,Ya=va.join,Za=O(ha.keys,ha),Ka=da.max,Ja=da.min,Qa=ca.now,eo=t.parseInt,to=da.random,ro=va.reverse,no=Vn(t,"DataView"),io=Vn(t,"Map"),ao=Vn(t,"Promise"),oo=Vn(t,"Set"),so=Vn(t,"WeakMap"),lo=Vn(ha,"create"),co=so&&new so,uo={},po=ii(no),ho=ii(io),mo=ii(ao),go=ii(oo),fo=ii(so),vo=$a?$a.prototype:q,bo=vo?vo.valueOf:q,yo=vo?vo.toString:q,xo=function(){function e(){}return function(t){if(!Ei(t))return{};if(Ba)return Ba(t);e.prototype=t;var r=new e;return e.prototype=q,r}}();k.templateSettings={escape:De,evaluate:He,interpolate:Oe,variable:"",imports:{_:k}},k.prototype=qe.prototype,k.prototype.constructor=k,Ge.prototype=xo(qe.prototype),Ge.prototype.constructor=Ge,st.prototype=xo(qe.prototype),st.prototype.constructor=st,lt.prototype.clear=function(){this.__data__=lo?lo(null):{},this.size=0},lt.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},lt.prototype.get=function(e){var t=this.__data__;if(lo){var r=t[e];return r===W?q:r}return za.call(t,e)?t[e]:q},lt.prototype.has=function(e){var t=this.__data__;return lo?t[e]!==q:za.call(t,e)},lt.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=lo&&t===q?W:t,this},ct.prototype.clear=function(){this.__data__=[],this.size=0},ct.prototype.delete=function(e){var t=this.__data__,r=yt(t,e);return!(r<0||(r==t.length-1?t.pop():Ha.call(t,r,1),--this.size,0))},ct.prototype.get=function(e){var t=this.__data__,r=yt(t,e);return r<0?q:t[r][1]},ct.prototype.has=function(e){return yt(this.__data__,e)>-1},ct.prototype.set=function(e,t){var r=this.__data__,n=yt(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},ut.prototype.clear=function(){this.size=0,this.__data__={hash:new lt,map:new(io||ct),string:new lt}},ut.prototype.delete=function(e){var t=Pn(this,e).delete(e);return this.size-=t?1:0,t},ut.prototype.get=function(e){return Pn(this,e).get(e)},ut.prototype.has=function(e){return Pn(this,e).has(e)},ut.prototype.set=function(e,t){var r=Pn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},pt.prototype.add=pt.prototype.push=function(e){return this.__data__.set(e,W),this},pt.prototype.has=function(e){return this.__data__.has(e)},dt.prototype.clear=function(){this.__data__=new ct,this.size=0},dt.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},dt.prototype.get=function(e){return this.__data__.get(e)},dt.prototype.has=function(e){return this.__data__.has(e)},dt.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ct){var n=r.__data__;if(!io||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ut(n)}return r.set(e,t),this.size=r.size,this};var wo=ln(It),zo=ln(Bt,!0),ko=cn(),Ao=cn(!0),Co=co?function(e,t){return co.set(e,t),e}:ta,So=Va?function(e,t){return Va(e,"toString",{configurable:!0,enumerable:!1,value:ea(t),writable:!0})}:ta,_o=Mr,Mo=Na||function(e){return Kt.clearTimeout(e)},To=oo&&1/R(new oo([,-0]))[1]==Z?function(e){return new oo(e)}:ia,$o=co?function(e){return co.get(e)}:ia,Lo=Wa?function(e){return null==e?[]:(e=ha(e),s(Wa(e),(function(t){return Da.call(e,t)})))}:oa,Eo=Wa?function(e){for(var t=[];e;)p(t,Lo(e)),e=Ia(e);return t}:oa,Io=Vt;(no&&Io(new no(new ArrayBuffer(1)))!=be||io&&Io(new io)!=le||ao&&Io(ao.resolve())!=pe||oo&&Io(new oo)!=he||so&&Io(new so)!=fe)&&(Io=function(e){var t=Vt(e),r=t==ue?e.constructor:q,n=r?ii(r):"";if(n)switch(n){case po:return be;case ho:return le;case mo:return pe;case go:return he;case fo:return fe}return t});var Bo=xa?Ti:sa,Do=ti(Co),Ho=ja||function(e,t){return Kt.setTimeout(e,t)},Oo=ti(So),Po=function(e){var t=ki((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ve,(function(e,r,n,i){t.push(n?i.replace(Ze,"$1"):r||e)})),t}),(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}(),Ro=Mr((function(e,t){return _i(e)?Mt(e,Et(t,1,_i,!0)):[]})),Vo=Mr((function(e,t){var r=ui(t);return _i(r)&&(r=q),_i(e)?Mt(e,Et(t,1,_i,!0),On(r,2)):[]})),No=Mr((function(e,t){var r=ui(t);return _i(r)&&(r=q),_i(e)?Mt(e,Et(t,1,_i,!0),q,r):[]})),Fo=Mr((function(e){var t=u(e,Xr);return t.length&&t[0]===e[0]?Zt(t):[]})),jo=Mr((function(e){var t=ui(e),r=u(e,Xr);return t===ui(r)?t=q:r.pop(),r.length&&r[0]===e[0]?Zt(r,On(t,2)):[]})),qo=Mr((function(e){var t=ui(e),r=u(e,Xr);return(t="function"==typeof t?t:q)&&r.pop(),r.length&&r[0]===e[0]?Zt(r,q,t):[]})),Uo=Mr(pi),Wo=En((function(e,t){var r=null==e?0:e.length,n=kt(e,t);return Cr(e,u(t,(function(e){return qn(e,r)?+e:e})).sort(en)),n})),Xo=Mr((function(e){return Vr(Et(e,1,_i,!0))})),Go=Mr((function(e){var t=ui(e);return _i(t)&&(t=q),Vr(Et(e,1,_i,!0),On(t,2))})),Yo=Mr((function(e){var t=ui(e);return t="function"==typeof t?t:q,Vr(Et(e,1,_i,!0),q,t)})),Zo=Mr((function(e,t){return _i(e)?Mt(e,t):[]})),Ko=Mr((function(e){return Ur(s(e,_i))})),Jo=Mr((function(e){var t=ui(e);return _i(t)&&(t=q),Ur(s(e,_i),On(t,2))})),Qo=Mr((function(e){var t=ui(e);return t="function"==typeof t?t:q,Ur(s(e,_i),q,t)})),es=Mr(hi),ts=Mr((function(e){var t=e.length,r=t>1?e[t-1]:q;return r="function"==typeof r?(e.pop(),r):q,mi(e,r)})),rs=En((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,i=function(t){return kt(t,e)};return!(t>1||this.__actions__.length)&&n instanceof st&&qn(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:fi,args:[i],thisArg:q}),new Ge(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(q),e}))):this.thru(i)})),ns=on((function(e,t,r){za.call(e,r)?++e[r]:zt(e,r,1)})),is=mn(oi),as=mn(si),os=on((function(e,t,r){za.call(e,r)?e[r].push(t):zt(e,r,[t])})),ss=Mr((function(e,t,n){var i=-1,a="function"==typeof t,o=Si(e)?la(e.length):[];return wo(e,(function(e){o[++i]=a?r(t,e,n):Jt(e,t,n)})),o})),ls=on((function(e,t,r){zt(e,r,t)})),cs=on((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]})),us=Mr((function(e,t){if(null==e)return[];var r=t.length;return r>1&&Un(e,t[0],t[1])?t=[]:r>2&&Un(t[0],t[1],t[2])&&(t=[t[0]]),zr(e,Et(t,1),[])})),ps=Fa||function(){return Kt.Date.now()},ds=Mr((function(e,t,r){var n=1;if(r.length){var i=P(r,Hn(ds));n|=G}return _n(e,n,t,r,i)})),hs=Mr((function(e,t,r){var n=3;if(r.length){var i=P(r,Hn(hs));n|=G}return _n(t,n,e,r,i)})),ms=Mr((function(e,t){return _t(e,1,t)})),gs=Mr((function(e,t,r){return _t(e,Fi(t)||0,r)}));ki.Cache=ut;var fs=_o((function(e,t){var n=(t=1==t.length&&ks(t[0])?u(t[0],M(On())):u(Et(t,1),M(On()))).length;return Mr((function(i){for(var a=-1,o=Ja(i.length,n);++a<o;)i[a]=t[a].call(this,i[a]);return r(e,this,i)}))})),vs=Mr((function(e,t){return _n(e,G,q,t,P(t,Hn(vs)))})),bs=Mr((function(e,t){return _n(e,64,q,t,P(t,Hn(bs)))})),ys=En((function(e,t){return _n(e,256,q,q,q,t)})),xs=kn(Nt),ws=kn((function(e,t){return e>=t})),zs=Qt(function(){return arguments}())?Qt:function(e){return Ii(e)&&za.call(e,"callee")&&!Da.call(e,"callee")},ks=la.isArray,As=nr?M(nr):function(e){return Ii(e)&&Vt(e)==ve},Cs=Xa||sa,Ss=ir?M(ir):function(e){return Ii(e)&&Vt(e)==ie},_s=ar?M(ar):function(e){return Ii(e)&&Io(e)==le},Ms=or?M(or):function(e){return Ii(e)&&Vt(e)==de},Ts=sr?M(sr):function(e){return Ii(e)&&Io(e)==he},$s=lr?M(lr):function(e){return Ii(e)&&Li(e.length)&&!!qt[Vt(e)]},Ls=kn(fr),Es=kn((function(e,t){return e<=t})),Is=sn((function(e,t){if(Gn(t)||Si(t))return an(t,Xi(t),e),q;for(var r in t)za.call(t,r)&&bt(e,r,t[r])})),Bs=sn((function(e,t){an(t,Gi(t),e)})),Ds=sn((function(e,t,r,n){an(t,Gi(t),e,n)})),Hs=sn((function(e,t,r,n){an(t,Xi(t),e,n)})),Os=En(kt),Ps=Mr((function(e,t){e=ha(e);var r=-1,n=t.length,i=n>2?t[2]:q;for(i&&Un(t[0],t[1],i)&&(n=1);++r<n;)for(var a=t[r],o=Gi(a),s=-1,l=o.length;++s<l;){var c=o[s],u=e[c];(u===q||Ci(u,ya[c])&&!za.call(e,c))&&(e[c]=a[c])}return e})),Rs=Mr((function(e){return e.push(q,Tn),r(qs,q,e)})),Vs=vn((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ca.call(t)),e[t]=r}),ea(ta)),Ns=vn((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ca.call(t)),za.call(e,t)?e[t].push(r):e[t]=[r]}),On),Fs=Mr(Jt),js=sn((function(e,t,r){xr(e,t,r)})),qs=sn((function(e,t,r,n){xr(e,t,r,n)})),Us=En((function(e,t){var r={};if(null==e)return r;var n=!1;t=u(t,(function(t){return t=Yr(t,e),n||(n=t.length>1),t})),an(e,Bn(e),r),n&&(r=Ct(r,7,$n));for(var i=t.length;i--;)Nr(r,t[i]);return r})),Ws=En((function(e,t){return null==e?{}:function(e,t){return kr(e,t,(function(t,r){return Wi(e,r)}))}(e,t)})),Xs=Sn(Xi),Gs=Sn(Gi),Ys=pn((function(e,t,r){return t=t.toLowerCase(),e+(r?Ki(t):t)})),Zs=pn((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Ks=pn((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Js=un("toLowerCase"),Qs=pn((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()})),el=pn((function(e,t,r){return e+(r?" ":"")+rl(t)})),tl=pn((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),rl=un("toUpperCase"),nl=Mr((function(e,t){try{return r(e,q,t)}catch(e){return Mi(e)?e:new ua(e)}})),il=En((function(e,t){return i(t,(function(t){t=ni(t),zt(e,t,ds(e[t],e))})),e})),al=gn(),ol=gn(!0),sl=Mr((function(e,t){return function(r){return Jt(r,e,t)}})),ll=Mr((function(e,t){return function(r){return Jt(e,r,t)}})),cl=yn(u),ul=yn(o),pl=yn(m),dl=zn(),hl=zn(!0),ml=bn((function(e,t){return e+t}),0),gl=Cn("ceil"),fl=bn((function(e,t){return e/t}),1),vl=Cn("floor"),bl=bn((function(e,t){return e*t}),1),yl=Cn("round"),xl=bn((function(e,t){return e-t}),0);return k.after=function(e,t){if("function"!=typeof t)throw new fa(U);return e=Vi(e),function(){if(--e<1)return t.apply(this,arguments)}},k.ary=xi,k.assign=Is,k.assignIn=Bs,k.assignInWith=Ds,k.assignWith=Hs,k.at=Os,k.before=wi,k.bind=ds,k.bindAll=il,k.bindKey=hs,k.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ks(e)?e:[e]},k.chain=gi,k.chunk=function(e,t,r){t=(r?Un(e,t,r):t===q)?1:Ka(Vi(t),0);var n=null==e?0:e.length;if(!n||t<1)return[];for(var i=0,a=0,o=la(qa(n/t));i<n;)o[a++]=Ir(e,i,i+=t);return o},k.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var a=e[t];a&&(i[n++]=a)}return i},k.concat=function(){var e=arguments.length;if(!e)return[];for(var t=la(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return p(ks(r)?nn(r):[r],Et(t,1))},k.cond=function(e){var t=null==e?0:e.length,n=On();return e=t?u(e,(function(e){if("function"!=typeof e[1])throw new fa(U);return[n(e[0]),e[1]]})):[],Mr((function(n){for(var i=-1;++i<t;){var a=e[i];if(r(a[0],this,n))return r(a[1],this,n)}}))},k.conforms=function(e){return function(e){var t=Xi(e);return function(r){return St(r,e,t)}}(Ct(e,1))},k.constant=ea,k.countBy=ns,k.create=function(e,t){var r=xo(e);return null==t?r:wt(r,t)},k.curry=function e(t,r,n){var i=_n(t,8,q,q,q,q,q,r=n?q:r);return i.placeholder=e.placeholder,i},k.curryRight=function e(t,r,n){var i=_n(t,16,q,q,q,q,q,r=n?q:r);return i.placeholder=e.placeholder,i},k.debounce=zi,k.defaults=Ps,k.defaultsDeep=Rs,k.defer=ms,k.delay=gs,k.difference=Ro,k.differenceBy=Vo,k.differenceWith=No,k.drop=function(e,t,r){var n=null==e?0:e.length;return n?Ir(e,(t=r||t===q?1:Vi(t))<0?0:t,n):[]},k.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?Ir(e,0,(t=n-(t=r||t===q?1:Vi(t)))<0?0:t):[]},k.dropRightWhile=function(e,t){return e&&e.length?jr(e,On(t,3),!0,!0):[]},k.dropWhile=function(e,t){return e&&e.length?jr(e,On(t,3),!0):[]},k.fill=function(e,t,r,n){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&Un(e,t,r)&&(r=0,n=i),function(e,t,r,n){var i=e.length;for((r=Vi(r))<0&&(r=-r>i?0:i+r),(n=n===q||n>i?i:Vi(n))<0&&(n+=i),n=r>n?0:Ni(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},k.filter=function(e,t){return(ks(e)?s:Lt)(e,On(t,3))},k.flatMap=function(e,t){return Et(yi(e,t),1)},k.flatMapDeep=function(e,t){return Et(yi(e,t),Z)},k.flatMapDepth=function(e,t,r){return r=r===q?1:Vi(r),Et(yi(e,t),r)},k.flatten=li,k.flattenDeep=function(e){return null!=e&&e.length?Et(e,Z):[]},k.flattenDepth=function(e,t){return null!=e&&e.length?Et(e,t=t===q?1:Vi(t)):[]},k.flip=function(e){return _n(e,512)},k.flow=al,k.flowRight=ol,k.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n},k.functions=function(e){return null==e?[]:Dt(e,Xi(e))},k.functionsIn=function(e){return null==e?[]:Dt(e,Gi(e))},k.groupBy=os,k.initial=function(e){return null!=e&&e.length?Ir(e,0,-1):[]},k.intersection=Fo,k.intersectionBy=jo,k.intersectionWith=qo,k.invert=Vs,k.invertBy=Ns,k.invokeMap=ss,k.iteratee=ra,k.keyBy=ls,k.keys=Xi,k.keysIn=Gi,k.map=yi,k.mapKeys=function(e,t){var r={};return t=On(t,3),It(e,(function(e,n,i){zt(r,t(e,n,i),e)})),r},k.mapValues=function(e,t){var r={};return t=On(t,3),It(e,(function(e,n,i){zt(r,n,t(e,n,i))})),r},k.matches=function(e){return br(Ct(e,1))},k.matchesProperty=function(e,t){return yr(e,Ct(t,1))},k.memoize=ki,k.merge=js,k.mergeWith=qs,k.method=sl,k.methodOf=ll,k.mixin=na,k.negate=Ai,k.nthArg=function(e){return e=Vi(e),Mr((function(t){return wr(t,e)}))},k.omit=Us,k.omitBy=function(e,t){return Yi(e,Ai(On(t)))},k.once=function(e){return wi(2,e)},k.orderBy=function(e,t,r,n){return null==e?[]:(ks(t)||(t=null==t?[]:[t]),ks(r=n?q:r)||(r=null==r?[]:[r]),zr(e,t,r))},k.over=cl,k.overArgs=fs,k.overEvery=ul,k.overSome=pl,k.partial=vs,k.partialRight=bs,k.partition=cs,k.pick=Ws,k.pickBy=Yi,k.property=aa,k.propertyOf=function(e){return function(t){return null==e?q:Pt(e,t)}},k.pull=Uo,k.pullAll=pi,k.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?Ar(e,t,On(r,2)):e},k.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Ar(e,t,q,r):e},k.pullAt=Wo,k.range=dl,k.rangeRight=hl,k.rearg=ys,k.reject=function(e,t){return(ks(e)?s:Lt)(e,Ai(On(t,3)))},k.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,i=[],a=e.length;for(t=On(t,3);++n<a;){var o=e[n];t(o,n,e)&&(r.push(o),i.push(n))}return Cr(e,i),r},k.rest=function(e,t){if("function"!=typeof e)throw new fa(U);return Mr(e,t=t===q?t:Vi(t))},k.reverse=di,k.sampleSize=function(e,t,r){return t=(r?Un(e,t,r):t===q)?1:Vi(t),(ks(e)?gt:$r)(e,t)},k.set=function(e,t,r){return null==e?e:Lr(e,t,r)},k.setWith=function(e,t,r,n){return n="function"==typeof n?n:q,null==e?e:Lr(e,t,r,n)},k.shuffle=function(e){return(ks(e)?ft:Er)(e)},k.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&Un(e,t,r)?(t=0,r=n):(t=null==t?0:Vi(t),r=r===q?n:Vi(r)),Ir(e,t,r)):[]},k.sortBy=us,k.sortedUniq=function(e){return e&&e.length?Or(e):[]},k.sortedUniqBy=function(e,t){return e&&e.length?Or(e,On(t,2)):[]},k.split=function(e,t,r){return r&&"number"!=typeof r&&Un(e,t,r)&&(t=r=q),(r=r===q?Q:r>>>0)?(e=qi(e))&&("string"==typeof t||null!=t&&!Ms(t))&&!(t=Rr(t))&&B(e)?Zr(N(e),0,r):e.split(t,r):[]},k.spread=function(e,t){if("function"!=typeof e)throw new fa(U);return t=null==t?0:Ka(Vi(t),0),Mr((function(n){var i=n[t],a=Zr(n,0,t);return i&&p(a,i),r(e,this,a)}))},k.tail=function(e){var t=null==e?0:e.length;return t?Ir(e,1,t):[]},k.take=function(e,t,r){return e&&e.length?Ir(e,0,(t=r||t===q?1:Vi(t))<0?0:t):[]},k.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?Ir(e,(t=n-(t=r||t===q?1:Vi(t)))<0?0:t,n):[]},k.takeRightWhile=function(e,t){return e&&e.length?jr(e,On(t,3),!1,!0):[]},k.takeWhile=function(e,t){return e&&e.length?jr(e,On(t,3)):[]},k.tap=function(e,t){return t(e),e},k.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new fa(U);return Ei(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),zi(e,t,{leading:n,maxWait:t,trailing:i})},k.thru=fi,k.toArray=Pi,k.toPairs=Xs,k.toPairsIn=Gs,k.toPath=function(e){return ks(e)?u(e,ni):Oi(e)?[e]:nn(Po(qi(e)))},k.toPlainObject=ji,k.transform=function(e,t,r){var n=ks(e),a=n||Cs(e)||$s(e);if(t=On(t,4),null==r){var o=e&&e.constructor;r=a?n?new o:[]:Ei(e)&&Ti(o)?xo(Ia(e)):{}}return(a?i:It)(e,(function(e,n,i){return t(r,e,n,i)})),r},k.unary=function(e){return xi(e,1)},k.union=Xo,k.unionBy=Go,k.unionWith=Yo,k.uniq=function(e){return e&&e.length?Vr(e):[]},k.uniqBy=function(e,t){return e&&e.length?Vr(e,On(t,2)):[]},k.uniqWith=function(e,t){return t="function"==typeof t?t:q,e&&e.length?Vr(e,q,t):[]},k.unset=function(e,t){return null==e||Nr(e,t)},k.unzip=hi,k.unzipWith=mi,k.update=function(e,t,r){return null==e?e:Fr(e,t,Gr(r))},k.updateWith=function(e,t,r,n){return n="function"==typeof n?n:q,null==e?e:Fr(e,t,Gr(r),n)},k.values=Zi,k.valuesIn=function(e){return null==e?[]:T(e,Gi(e))},k.without=Zo,k.words=Qi,k.wrap=function(e,t){return vs(Gr(t),e)},k.xor=Ko,k.xorBy=Jo,k.xorWith=Qo,k.zip=es,k.zipObject=function(e,t){return Wr(e||[],t||[],bt)},k.zipObjectDeep=function(e,t){return Wr(e||[],t||[],Lr)},k.zipWith=ts,k.entries=Xs,k.entriesIn=Gs,k.extend=Bs,k.extendWith=Ds,na(k,k),k.add=ml,k.attempt=nl,k.camelCase=Ys,k.capitalize=Ki,k.ceil=gl,k.clamp=function(e,t,r){return r===q&&(r=t,t=q),r!==q&&(r=(r=Fi(r))==r?r:0),t!==q&&(t=(t=Fi(t))==t?t:0),At(Fi(e),t,r)},k.clone=function(e){return Ct(e,4)},k.cloneDeep=function(e){return Ct(e,5)},k.cloneDeepWith=function(e,t){return Ct(e,5,t="function"==typeof t?t:q)},k.cloneWith=function(e,t){return Ct(e,4,t="function"==typeof t?t:q)},k.conformsTo=function(e,t){return null==t||St(e,t,Xi(t))},k.deburr=Ji,k.defaultTo=function(e,t){return null==e||e!=e?t:e},k.divide=fl,k.endsWith=function(e,t,r){e=qi(e),t=Rr(t);var n=e.length,i=r=r===q?n:At(Vi(r),0,n);return(r-=t.length)>=0&&e.slice(r,i)==t},k.eq=Ci,k.escape=function(e){return(e=qi(e))&&Be.test(e)?e.replace(Ee,pr):e},k.escapeRegExp=function(e){return(e=qi(e))&&Fe.test(e)?e.replace(Ne,"\\$&"):e},k.every=function(e,t,r){var n=ks(e)?o:Tt;return r&&Un(e,t,r)&&(t=q),n(e,On(t,3))},k.find=is,k.findIndex=oi,k.findKey=function(e,t){return f(e,On(t,3),It)},k.findLast=as,k.findLastIndex=si,k.findLastKey=function(e,t){return f(e,On(t,3),Bt)},k.floor=vl,k.forEach=vi,k.forEachRight=bi,k.forIn=function(e,t){return null==e?e:ko(e,On(t,3),Gi)},k.forInRight=function(e,t){return null==e?e:Ao(e,On(t,3),Gi)},k.forOwn=function(e,t){return e&&It(e,On(t,3))},k.forOwnRight=function(e,t){return e&&Bt(e,On(t,3))},k.get=Ui,k.gt=xs,k.gte=ws,k.has=function(e,t){return null!=e&&Nn(e,t,Wt)},k.hasIn=Wi,k.head=ci,k.identity=ta,k.includes=function(e,t,r,n){e=Si(e)?e:Zi(e),r=r&&!n?Vi(r):0;var i=e.length;return r<0&&(r=Ka(i+r,0)),Hi(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&b(e,t,r)>-1},k.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:Vi(r);return i<0&&(i=Ka(n+i,0)),b(e,t,i)},k.inRange=function(e,t,r){return t=Ri(t),r===q?(r=t,t=0):r=Ri(r),function(e,t,r){return e>=Ja(t,r)&&e<Ka(t,r)}(e=Fi(e),t,r)},k.invoke=Fs,k.isArguments=zs,k.isArray=ks,k.isArrayBuffer=As,k.isArrayLike=Si,k.isArrayLikeObject=_i,k.isBoolean=function(e){return!0===e||!1===e||Ii(e)&&Vt(e)==ne},k.isBuffer=Cs,k.isDate=Ss,k.isElement=function(e){return Ii(e)&&1===e.nodeType&&!Di(e)},k.isEmpty=function(e){if(null==e)return!0;if(Si(e)&&(ks(e)||"string"==typeof e||"function"==typeof e.splice||Cs(e)||$s(e)||zs(e)))return!e.length;var t=Io(e);if(t==le||t==he)return!e.size;if(Gn(e))return!gr(e).length;for(var r in e)if(za.call(e,r))return!1;return!0},k.isEqual=function(e,t){return tr(e,t)},k.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:q)?r(e,t):q;return n===q?tr(e,t,q,r):!!n},k.isError=Mi,k.isFinite=function(e){return"number"==typeof e&&Ga(e)},k.isFunction=Ti,k.isInteger=$i,k.isLength=Li,k.isMap=_s,k.isMatch=function(e,t){return e===t||rr(e,t,Rn(t))},k.isMatchWith=function(e,t,r){return r="function"==typeof r?r:q,rr(e,t,Rn(t),r)},k.isNaN=function(e){return Bi(e)&&e!=+e},k.isNative=function(e){if(Bo(e))throw new ua("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return cr(e)},k.isNil=function(e){return null==e},k.isNull=function(e){return null===e},k.isNumber=Bi,k.isObject=Ei,k.isObjectLike=Ii,k.isPlainObject=Di,k.isRegExp=Ms,k.isSafeInteger=function(e){return $i(e)&&e>=-K&&e<=K},k.isSet=Ts,k.isString=Hi,k.isSymbol=Oi,k.isTypedArray=$s,k.isUndefined=function(e){return e===q},k.isWeakMap=function(e){return Ii(e)&&Io(e)==fe},k.isWeakSet=function(e){return Ii(e)&&"[object WeakSet]"==Vt(e)},k.join=function(e,t){return null==e?"":Ya.call(e,t)},k.kebabCase=Zs,k.last=ui,k.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return r!==q&&(i=(i=Vi(r))<0?Ka(n+i,0):Ja(i,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):v(e,x,i,!0)},k.lowerCase=Ks,k.lowerFirst=Js,k.lt=Ls,k.lte=Es,k.max=function(e){return e&&e.length?$t(e,ta,Nt):q},k.maxBy=function(e,t){return e&&e.length?$t(e,On(t,2),Nt):q},k.mean=function(e){return w(e,ta)},k.meanBy=function(e,t){return w(e,On(t,2))},k.min=function(e){return e&&e.length?$t(e,ta,fr):q},k.minBy=function(e,t){return e&&e.length?$t(e,On(t,2),fr):q},k.stubArray=oa,k.stubFalse=sa,k.stubObject=function(){return{}},k.stubString=function(){return""},k.stubTrue=function(){return!0},k.multiply=bl,k.nth=function(e,t){return e&&e.length?wr(e,Vi(t)):q},k.noConflict=function(){return Kt._===this&&(Kt._=_a),this},k.noop=ia,k.now=ps,k.pad=function(e,t,r){e=qi(e);var n=(t=Vi(t))?V(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return xn(Ua(i),r)+e+xn(qa(i),r)},k.padEnd=function(e,t,r){e=qi(e);var n=(t=Vi(t))?V(e):0;return t&&n<t?e+xn(t-n,r):e},k.padStart=function(e,t,r){e=qi(e);var n=(t=Vi(t))?V(e):0;return t&&n<t?xn(t-n,r)+e:e},k.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),eo(qi(e).replace(je,""),t||0)},k.random=function(e,t,r){if(r&&"boolean"!=typeof r&&Un(e,t,r)&&(t=r=q),r===q&&("boolean"==typeof t?(r=t,t=q):"boolean"==typeof e&&(r=e,e=q)),e===q&&t===q?(e=0,t=1):(e=Ri(e),t===q?(t=e,e=0):t=Ri(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var i=to();return Ja(e+i*(t-e+Xt("1e-"+((i+"").length-1))),t)}return Sr(e,t)},k.reduce=function(e,t,r){var n=ks(e)?d:A,i=arguments.length<3;return n(e,On(t,4),r,i,wo)},k.reduceRight=function(e,t,r){var n=ks(e)?h:A,i=arguments.length<3;return n(e,On(t,4),r,i,zo)},k.repeat=function(e,t,r){return t=(r?Un(e,t,r):t===q)?1:Vi(t),_r(qi(e),t)},k.replace=function(){var e=arguments,t=qi(e[0]);return e.length<3?t:t.replace(e[1],e[2])},k.result=function(e,t,r){var n=-1,i=(t=Yr(t,e)).length;for(i||(i=1,e=q);++n<i;){var a=null==e?q:e[ni(t[n])];a===q&&(n=i,a=r),e=Ti(a)?a.call(e):a}return e},k.round=yl,k.runInContext=e,k.sample=function(e){return(ks(e)?mt:Tr)(e)},k.size=function(e){if(null==e)return 0;if(Si(e))return Hi(e)?V(e):e.length;var t=Io(e);return t==le||t==he?e.size:gr(e).length},k.snakeCase=Qs,k.some=function(e,t,r){var n=ks(e)?m:Br;return r&&Un(e,t,r)&&(t=q),n(e,On(t,3))},k.sortedIndex=function(e,t){return Dr(e,t)},k.sortedIndexBy=function(e,t,r){return Hr(e,t,On(r,2))},k.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=Dr(e,t);if(n<r&&Ci(e[n],t))return n}return-1},k.sortedLastIndex=function(e,t){return Dr(e,t,!0)},k.sortedLastIndexBy=function(e,t,r){return Hr(e,t,On(r,2),!0)},k.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var r=Dr(e,t,!0)-1;if(Ci(e[r],t))return r}return-1},k.startCase=el,k.startsWith=function(e,t,r){return e=qi(e),r=null==r?0:At(Vi(r),0,e.length),t=Rr(t),e.slice(r,r+t.length)==t},k.subtract=xl,k.sum=function(e){return e&&e.length?C(e,ta):0},k.sumBy=function(e,t){return e&&e.length?C(e,On(t,2)):0},k.template=function(e,t,r){var n=k.templateSettings;r&&Un(e,t,r)&&(t=q),e=qi(e),t=Ds({},t,n,Mn);var i,a,o=Ds({},t.imports,n.imports,Mn),s=Xi(o),l=T(o,s),c=0,u=t.interpolate||at,p="__p += '",d=ma((t.escape||at).source+"|"+u.source+"|"+(u===Oe?Ke:at).source+"|"+(t.evaluate||at).source+"|$","g"),h="//# sourceURL="+(za.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++jt+"]")+"\n";e.replace(d,(function(t,r,n,o,s,l){return n||(n=o),p+=e.slice(c,l).replace(ot,I),r&&(i=!0,p+="' +\n__e("+r+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),p+="';\n";var m=za.call(t,"variable")&&t.variable;if(m){if(Ye.test(m))throw new ua("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(Me,""):p).replace(Te,"$1").replace($e,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=nl((function(){return pa(s,h+"return "+p).apply(q,l)}));if(g.source=p,Mi(g))throw g;return g},k.times=function(e,t){if((e=Vi(e))<1||e>K)return[];var r=Q,n=Ja(e,Q);t=On(t),e-=Q;for(var i=S(n,t);++r<e;)t(r);return i},k.toFinite=Ri,k.toInteger=Vi,k.toLength=Ni,k.toLower=function(e){return qi(e).toLowerCase()},k.toNumber=Fi,k.toSafeInteger=function(e){return e?At(Vi(e),-K,K):0===e?e:0},k.toString=qi,k.toUpper=function(e){return qi(e).toUpperCase()},k.trim=function(e,t,r){if((e=qi(e))&&(r||t===q))return _(e);if(!e||!(t=Rr(t)))return e;var n=N(e),i=N(t);return Zr(n,L(n,i),E(n,i)+1).join("")},k.trimEnd=function(e,t,r){if((e=qi(e))&&(r||t===q))return e.slice(0,F(e)+1);if(!e||!(t=Rr(t)))return e;var n=N(e);return Zr(n,0,E(n,N(t))+1).join("")},k.trimStart=function(e,t,r){if((e=qi(e))&&(r||t===q))return e.replace(je,"");if(!e||!(t=Rr(t)))return e;var n=N(e);return Zr(n,L(n,N(t))).join("")},k.truncate=function(e,t){var r=30,n="...";if(Ei(t)){var i="separator"in t?t.separator:i;r="length"in t?Vi(t.length):r,n="omission"in t?Rr(t.omission):n}var a=(e=qi(e)).length;if(B(e)){var o=N(e);a=o.length}if(r>=a)return e;var s=r-V(n);if(s<1)return n;var l=o?Zr(o,0,s).join(""):e.slice(0,s);if(i===q)return l+n;if(o&&(s+=l.length-s),Ms(i)){if(e.slice(s).search(i)){var c,u=l;for(i.global||(i=ma(i.source,qi(Je.exec(i))+"g")),i.lastIndex=0;c=i.exec(u);)var p=c.index;l=l.slice(0,p===q?s:p)}}else if(e.indexOf(Rr(i),s)!=s){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+n},k.unescape=function(e){return(e=qi(e))&&Ie.test(e)?e.replace(Le,dr):e},k.uniqueId=function(e){var t=++ka;return qi(e)+t},k.upperCase=tl,k.upperFirst=rl,k.each=vi,k.eachRight=bi,k.first=ci,na(k,function(){var e={};return It(k,(function(t,r){za.call(k.prototype,r)||(e[r]=t)})),e}(),{chain:!1}),k.VERSION="4.17.21",i(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){k[e].placeholder=k})),i(["drop","take"],(function(e,t){st.prototype[e]=function(r){r=r===q?1:Ka(Vi(r),0);var n=this.__filtered__&&!t?new st(this):this.clone();return n.__filtered__?n.__takeCount__=Ja(r,n.__takeCount__):n.__views__.push({size:Ja(r,Q),type:e+(n.__dir__<0?"Right":"")}),n},st.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),i(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;st.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:On(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),i(["head","last"],(function(e,t){var r="take"+(t?"Right":"");st.prototype[e]=function(){return this[r](1).value()[0]}})),i(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");st.prototype[e]=function(){return this.__filtered__?new st(this):this[r](1)}})),st.prototype.compact=function(){return this.filter(ta)},st.prototype.find=function(e){return this.filter(e).head()},st.prototype.findLast=function(e){return this.reverse().find(e)},st.prototype.invokeMap=Mr((function(e,t){return"function"==typeof e?new st(this):this.map((function(r){return Jt(r,e,t)}))})),st.prototype.reject=function(e){return this.filter(Ai(On(e)))},st.prototype.slice=function(e,t){e=Vi(e);var r=this;return r.__filtered__&&(e>0||t<0)?new st(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==q&&(r=(t=Vi(t))<0?r.dropRight(-t):r.take(t-e)),r)},st.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},st.prototype.toArray=function(){return this.take(Q)},It(st.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=k[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);i&&(k.prototype[t]=function(){var t=this.__wrapped__,o=n?[1]:arguments,s=t instanceof st,l=o[0],c=s||ks(t),u=function(e){var t=i.apply(k,p([e],o));return n&&d?t[0]:t};c&&r&&"function"==typeof l&&1!=l.length&&(s=c=!1);var d=this.__chain__,h=!!this.__actions__.length,m=a&&!d,g=s&&!h;if(!a&&c){t=g?t:new st(this);var f=e.apply(t,o);return f.__actions__.push({func:fi,args:[u],thisArg:q}),new Ge(f,d)}return m&&g?e.apply(this,o):(f=this.thru(u),m?n?f.value()[0]:f.value():f)})})),i(["pop","push","shift","sort","splice","unshift"],(function(e){var t=va[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);k.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(ks(i)?i:[],e)}return this[r]((function(r){return t.apply(ks(r)?r:[],e)}))}})),It(st.prototype,(function(e,t){var r=k[t];if(r){var n=r.name+"";za.call(uo,n)||(uo[n]=[]),uo[n].push({name:t,func:r})}})),uo[fn(q,2).name]=[{name:"wrapper",func:q}],st.prototype.clone=function(){var e=new st(this.__wrapped__);return e.__actions__=nn(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=nn(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=nn(this.__views__),e},st.prototype.reverse=function(){if(this.__filtered__){var e=new st(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},st.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=ks(e),n=t<0,i=r?e.length:0,a=function(e,t,r){for(var n=-1,i=r.length;++n<i;){var a=r[n],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=Ja(t,e+o);break;case"takeRight":e=Ka(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=a.start,s=a.end,l=s-o,c=n?s:o-1,u=this.__iteratees__,p=u.length,d=0,h=Ja(l,this.__takeCount__);if(!r||!n&&i==l&&h==l)return qr(e,this.__actions__);var m=[];e:for(;l--&&d<h;){for(var g=-1,f=e[c+=t];++g<p;){var v=u[g],b=v.iteratee,y=v.type,x=b(f);if(2==y)f=x;else if(!x){if(1==y)continue e;break e}}m[d++]=f}return m},k.prototype.at=rs,k.prototype.chain=function(){return gi(this)},k.prototype.commit=function(){return new Ge(this.value(),this.__chain__)},k.prototype.next=function(){this.__values__===q&&(this.__values__=Pi(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?q:this.__values__[this.__index__++]}},k.prototype.plant=function(e){for(var t,r=this;r instanceof qe;){var n=ai(r);n.__index__=0,n.__values__=q,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},k.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof st){var t=e;return this.__actions__.length&&(t=new st(this)),(t=t.reverse()).__actions__.push({func:fi,args:[di],thisArg:q}),new Ge(t,this.__chain__)}return this.thru(di)},k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=function(){return qr(this.__wrapped__,this.__actions__)},k.prototype.first=k.prototype.head,Pa&&(k.prototype[Pa]=function(){return this}),k}();Qt?((Qt.exports=hr)._=hr,Jt._=hr):Kt._=hr}).call(Sc)})),nz=Mc((function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,r=t.aliasToReal,n={};for(var i in r){var a=r[i];e.call(n,a)?n[a].push(i):n[a]=[i]}return n}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}})),iz={},az=Array.prototype.push;function oz(e,t){return 2==t?function(t,r){return e(t,r)}:function(t){return e(t)}}function sz(e){for(var t=e?e.length:0,r=Array(t);t--;)r[t]=e[t];return r}function lz(e,t){return function(){var r=arguments.length;if(r){for(var n=Array(r);r--;)n[r]=arguments[r];var i=n[0]=t.apply(void 0,n);return e.apply(void 0,n),i}}}var cz=rz.runInContext(),uz=function e(t,r,n,i){var a="function"==typeof r,o=r===Object(r);if(o&&(i=n,n=r,r=void 0),null==n)throw new TypeError;i||(i={});var s={cap:!("cap"in i)||i.cap,curry:!("curry"in i)||i.curry,fixed:!("fixed"in i)||i.fixed,immutable:!("immutable"in i)||i.immutable,rearg:!("rearg"in i)||i.rearg},l=a?n:iz,c="curry"in i&&i.curry,u="fixed"in i&&i.fixed,p="rearg"in i&&i.rearg,d=a?n.runInContext():void 0,h=a?n:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},m=h.ary,g=h.assign,f=h.clone,v=h.curry,b=h.forEach,y=h.isArray,x=h.isError,w=h.isFunction,z=h.isWeakMap,k=h.keys,A=h.rearg,C=h.toInteger,S=h.toPath,_=k(nz.aryMethod),M={castArray:function(e){return function(){var t=arguments[0];return y(t)?e(sz(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[1],r=e(arguments[0],t),n=r.length;return s.cap&&"number"==typeof t?(t=t>2?t-2:1,n&&n<=t?r:oz(r,t)):r}},mixin:function(e){return function(t){var r=this;if(!w(r))return e(r,Object(t));var n=[];return b(k(t),(function(e){w(t[e])&&n.push([e,r.prototype[e]])})),e(r,Object(t)),b(n,(function(e){var t=e[1];w(t)?r.prototype[e[0]]=t:delete r.prototype[e[0]]})),r}},nthArg:function(e){return function(t){var r=t<0?1:C(t)+1;return v(e(t),r)}},rearg:function(e){return function(t,r){var n=r?r.length:0;return v(e(t,r),n)}},runInContext:function(r){return function(n){return e(t,r(n),i)}}};function T(e,t){if(s.cap){var r=nz.iterateeRearg[e];if(r)return function(e,t){return B(e,(function(e){var r=t.length;return function(e,t){return 2==t?function(t,r){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(A(oz(e,r),t),r)}))}(t,r);var n=!a&&nz.iterateeAry[e];if(n)return function(e,t){return B(e,(function(e){return"function"==typeof e?oz(e,t):e}))}(t,n)}return t}function $(e,t,r){if(s.fixed&&(u||!nz.skipFixed[e])){var n=nz.methodSpread[e],i=n&&n.start;return void 0===i?m(t,r):function(e,t){return function(){for(var r=arguments.length,n=r-1,i=Array(r);r--;)i[r]=arguments[r];var a=i[t],o=i.slice(0,t);return a&&az.apply(o,a),t!=n&&az.apply(o,i.slice(t+1)),e.apply(this,o)}}(t,i)}return t}function L(e,t,r){return s.rearg&&r>1&&(p||!nz.skipRearg[e])?A(t,nz.methodRearg[e]||nz.aryRearg[r]):t}function E(e,t){for(var r=-1,n=(t=S(t)).length,i=n-1,a=f(Object(e)),o=a;null!=o&&++r<n;){var s=t[r],l=o[s];null==l||w(l)||x(l)||z(l)||(o[s]=f(r==i?l:Object(l))),o=o[s]}return a}function I(t,r){var n=nz.aliasToReal[t]||t,o=nz.remap[n]||n,s=i;return function(t){var i=a?d:h,l=a?d[o]:r,c=g(g({},s),t);return e(i,n,l,c)}}function B(e,t){return function(){var r=arguments.length;if(!r)return e();for(var n=Array(r);r--;)n[r]=arguments[r];var i=s.rearg?0:r-1;return n[i]=t(n[i]),e.apply(void 0,n)}}function D(e,t,r){var n,i=nz.aliasToReal[e]||e,a=t,o=M[i];return o?a=o(t):s.immutable&&(nz.mutate.array[i]?a=lz(t,sz):nz.mutate.object[i]?a=lz(t,function(e){return function(t){return e({},t)}}(t)):nz.mutate.set[i]&&(a=lz(t,E))),b(_,(function(e){return b(nz.aryMethod[e],(function(t){if(i==t){var r=nz.methodSpread[i],o=r&&r.afterRearg;return n=o?$(i,L(i,a,e),e):L(i,$(i,a,e),e),n=function(e,t,r){return c||s.curry&&r>1?v(t,r):t}(0,n=T(i,n),e),!1}})),!n})),n||(n=a),n==t&&(n=c?v(n,1):function(){return t.apply(this,arguments)}),n.convert=I(i,t),n.placeholder=t.placeholder=r,n}if(!o)return D(r,n,l);var H=n,O=[];return b(_,(function(e){b(nz.aryMethod[e],(function(e){var t=H[nz.remap[e]||e];t&&O.push([e,D(e,t,H)])}))})),b(k(H),(function(e){var t=H[e];if("function"==typeof t){for(var r=O.length;r--;)if(O[r][0]==e)return;t.convert=I(e,t),O.push([e,t])}})),b(O,(function(e){H[e[0]]=e[1]})),H.convert=function(e){return H.runInContext.convert(e)(void 0)},H.placeholder=H,b(k(H),(function(e){b(nz.realToAlias[e]||[],(function(t){H[t]=H[e]}))})),H}(cz,cz),pz={getHelperList:()=>{let e=[];for(let t of ez.externalCollections)e.push(Ow[t]());const t={};for(let r of e)for(let[e,n]of Object.entries(r))t[e]=n;for(let e of Object.keys(ez.addedHelpers))t[e]=ez.addedHelpers[e];return t}};const{atob:dz}=tz,{cloneDeep:hz}=uz,{LITERAL_MARKER:mz}=Qw,{getHelperList:gz}=pz;let fz;var vz=e=>fz=e,bz={setJSRunner:vz,processJS:(e,t)=>{if(vh&&vh.env.NO_JS)throw new Error("JS disabled in environment.");try{const r=`function run(){${dz(e)}};run();`,n={$:e=>((e,t)=>{let r=t;return e.split(".").forEach((e=>{if(null==r||"object"!=typeof r)return null;r=r[(e=>{if(!e||"string"!=typeof e)return e;const t=e.match(/\[+(.+)]+/);return t&&t[1]?t[1]:e})(e)]})),r})(e,hz(t)),helpers:gz()},i={data:fz(r,n)};return`{{${mz} js_result-${JSON.stringify(i)}}}`}catch(e){return"Error while executing JS"}}},yz=Mc((function(e){const{SafeString:t}=Op,{processJS:r}=bz,{HelperFunctionNames:n,HelperFunctionBuiltin:i,LITERAL_MARKER:a}=Qw,{getHelperList:o}=pz,s={"<":"<",">":">"},l=[new Rp(n.OBJECT,(e=>new t(JSON.stringify(e)))),new Rp(n.JS,r,!1),new Rp(n.ALL,((e,r)=>{const{__opts:n}=r;if(function(e){return null!=e&&"object"==typeof e&&("[object Object]"===e.toString()||e.length>0&&"object"==typeof e[0])}(e))return new t(JSON.stringify(e));if(n&&n.onlyFound&&null==e)return n.input;if(null==e||"string"!=typeof e)return null==e?"":e;e&&e.string&&(e=e.string);let i=e;return n&&n.escapeNewlines&&(i=e.replace(/\n/g,"\\n")),i=new t(i.replace(/&/g,"&")),null==i||"string"!=typeof i?i:i.replace(/[<>]/g,(e=>s[e]||e))})),new Rp(n.LITERAL,(e=>{if(void 0===e)return"";const t=typeof e,r="object"===t?JSON.stringify(e):e;return`{{${a} ${t}-${r}}}`}))];e.exports.HelperNames=()=>Object.values(n).concat(i,ez.externalHelperNames),e.exports.registerMinimum=e=>{for(let t of l)t.register(e)},e.exports.registerAll=t=>{e.exports.registerMinimum(t),ez.registerAll(t)},e.exports.unregisterAll=e=>{for(let t of l)t.unregister(e);ez.unregisterAll(e)},e.exports.getHelperList=o}));const{HelperNames:xz}=yz,{swapStrings:wz,isAlphaNumeric:zz}=tz,kz=["#","else","/"],Az={SWAP_TO_DOT:"swap-to-dot-notation",FIX_FUNCTIONS:"fix-functions",FINALISE:"finalise"};class Cz{constructor(e,t){this.name=e,this.fn=t}process(e,t,r){const n=this.fn(t,r),i=e.indexOf(t);return wz(e,i,t.length,n)}}var Sz={processors:[new Cz(Az.SWAP_TO_DOT,(e=>{let t=e.indexOf("["),r=0;for(;-1!==t;){zz(e.charAt(t-1))&&(e=wz(e,t+r,1,".[")),r=t+1;const n=e.substring(r+1).indexOf("[");t=n>0?r+1+n:-1}return e})),new Cz(Az.FIX_FUNCTIONS,(e=>{for(let t of kz){const r=`{ ${t}`,n=`{${t}`;e=e.replace(new RegExp(r,"g"),n)}return e})),new Cz(Az.FINALISE,((e,t)=>{const r=t&&t.noHelpers;let n=e.slice(2,e.length-2);" "===n.charAt(0)&&(n=n.slice(1))," "===n.charAt(n.length-1)&&(n=n.slice(0,n.length-1));const i=n.split(" ")[0];for(let t of kz)if(i.includes(t))return e;const a=i.trim().toLowerCase();return!r&&xz().some((e=>a===e.toLowerCase()))&&(n=`(${n})`),`{{ all ${n} }}`}))],PreprocessorNames:Az};const{LITERAL_MARKER:_z}=Qw,Mz={CONVERT_LITERALS:"convert-literals"};var Tz=Mz,$z=[new class{constructor(e,t){this.name=e,this.fn=t}process(e){return this.fn(e)}}(Mz.CONVERT_LITERALS,(e=>{if("string"!=typeof e||!e.includes(_z))return e;const t=e.indexOf("-"),r=e.substring(12,t),n=e.substring(t+1,e.length-2);switch(r){case"string":return n;case"number":return parseFloat(n);case"boolean":return"true"===n;case"object":return JSON.parse(n);case"js_result":return JSON.parse(n).data}return n}))],Lz={PostProcessorNames:Tz,processors:$z};const{FIND_HBS_REGEX:Ez}=tz;function Iz(e,t,r){for(let n of t){if("string"!=typeof e)break;let t=new RegExp(Ez),i=e.match(t);if(null!=i)for(let t of i)e=n.process(e,t,r)}return e}var Bz={math:{abs:{args:["a"],numArgs:1,example:"{{ abs 12012.1000 }} -> 12012.1",description:"<p>Return the magnitude of <code>a</code>.</p>\n"},add:{args:["a","b"],numArgs:2,example:"{{ add 1 2 }} -> 3",description:"<p>Return the sum of <code>a</code> plus <code>b</code>.</p>\n"},avg:{args:["array"],numArgs:1,example:"{{ avg 1 2 3 4 5 }} -> 3",description:"<p>Returns the average of all numbers in the given array.</p>\n"},ceil:{args:["value"],numArgs:1,example:"{{ ceil 1.2 }} -> 2",description:"<p>Get the <code>Math.ceil()</code> of the given value.</p>\n"},divide:{args:["a","b"],numArgs:2,example:"{{ divide 10 5 }} -> 2",description:"<p>Divide <code>a</code> by <code>b</code></p>\n"},floor:{args:["value"],numArgs:1,example:"{{ floor 1.2 }} -> 1",description:"<p>Get the <code>Math.floor()</code> of the given value.</p>\n"},minus:{args:["a","b"],numArgs:2,example:"{{ subtract 10 5 }} -> 5",description:"<p>Return the product of <code>a</code> minus <code>b</code>.</p>\n"},modulo:{args:["a","b"],numArgs:2,example:"{{ modulo 10 5 }} -> 0",description:"<p>Get the remainder of a division operation.</p>\n"},multiply:{args:["a","b"],numArgs:2,example:"{{ multiply 10 5 }} -> 50",description:"<p>Multiply number <code>a</code> by number <code>b</code>.</p>\n"},plus:{args:["a","b"],numArgs:2,example:"{{ plus 10 5 }} -> 15",description:"<p>Add <code>a</code> by <code>b</code>.</p>\n"},random:{args:["min","max"],numArgs:2,example:"{{ random 0 20 }} -> 10",description:"<p>Generate a random number between two values</p>\n"},remainder:{args:["a","b"],numArgs:2,example:"{{ remainder 10 6 }} -> 4",description:"<p>Get the remainder when <code>a</code> is divided by <code>b</code>.</p>\n"},round:{args:["number"],numArgs:1,example:"{{ round 10.3 }} -> 10",description:"<p>Round the given number.</p>\n"},subtract:{args:["a","b"],numArgs:2,example:"{{ subtract 10 5 }} -> 5",description:"<p>Return the product of <code>a</code> minus <code>b</code>.</p>\n"},sum:{args:["array"],numArgs:1,example:"{{ sum [1, 2, 3] }} -> 6",description:"<p>Returns the sum of all numbers in the given array.</p>\n"}},array:{after:{args:["array","n"],numArgs:2,example:"{{ after [1, 2, 3] 1}} -> [3]",description:'<p>Returns all of the items in an array after the specified index. Opposite of <a href="#before">before</a>.</p>\n'},arrayify:{args:["value"],numArgs:1,example:"{{ arrayify 'foo' }} -> ['foo']",description:"<p>Cast the given <code>value</code> to an array.</p>\n"},before:{args:["array","n"],numArgs:2,example:"{{ before [1, 2, 3] 2}} -> [1, 2]",description:'<p>Return all of the items in the collection before the specified count. Opposite of <a href="#after">after</a>.</p>\n'},eachIndex:{args:["array","options"],numArgs:2,example:"{{#eachIndex [1, 2, 3]}} {{item}} is {{index}} {{/eachIndex}}",description:"<p>Iterates the array, listing an item and the index of it.</p>\n"},filter:{args:["array","value","options"],numArgs:3,example:"{{#filter [1, 2, 3] 2}}2 Found{{else}}2 not found{{/filter}}",description:"<p>Block helper that filters the given array and renders the block for values that evaluate to <code>true</code>, otherwise the inverse block is returned.</p>\n"},first:{args:["array","n"],numArgs:2,example:"{{first [1, 2, 3, 4] 2}} -> [1, 2]",description:"<p>Returns the first item, or first <code>n</code> items of an array.</p>\n"},forEach:{args:["array"],numArgs:1,example:"{{#forEach [{ 'name': 'John' }] }} {{ name }} {{/forEach}}",description:"<p>Iterates over each item in an array and exposes the current item in the array as context to the inner block. In addition to the current array item, the helper exposes the following variables to the inner block: - <code>index</code> - <code>total</code> - <code>isFirst</code> - <code>isLast</code> Also, <code>@index</code> is exposed as a private variable, and additional private variables may be defined as hash arguments.</p>\n"},inArray:{args:["array","value","options"],numArgs:3,example:"{{#inArray [1, 2, 3] 2}} 2 exists {{else}} 2 does not exist {{/inArray}} -> 2 exists",description:"<p>Block helper that renders the block if an array has the given <code>value</code>. Optionally specify an inverse block to render when the array does not have the given value.</p>\n"},isArray:{args:["value"],numArgs:1,example:"{{isArray [1, 2]}} -> true",description:"<p>Returns true if <code>value</code> is an es5 array.</p>\n"},itemAt:{args:["array","idx"],numArgs:2,example:"{{itemAt [1, 2, 3] 1}} -> 2",description:"<p>Returns the item from <code>array</code> at index <code>idx</code>.</p>\n"},join:{args:["array","separator"],numArgs:2,example:"{{join [1, 2, 3]}} -> '1, 2, 3'",description:"<p>Join all elements of array into a string, optionally using a given separator.</p>\n"},equalsLength:{args:["value","length","options"],numArgs:3,example:"{{equalsLength '[1,2,3]' 3}} -> true",description:"<p>Returns true if the the length of the given <code>value</code> is equal to the given <code>length</code>. Can be used as a block or inline helper.</p>\n"},last:{args:["value","n"],numArgs:2,example:"{{last [1, 2, 3]}} -> 3",description:'<p>Returns the last item, or last <code>n</code> items of an array or string. Opposite of <a href="#first">first</a>.</p>\n'},length:{args:["value"],numArgs:1,example:"{{length '[1, 2, 3]'}} -> 3",description:"<p>Returns the length of the given string or array.</p>\n"},lengthEqual:{args:["value","length","options"],numArgs:3,example:"{{equalsLength '[1,2,3]' 3}} -> true",description:"<p>Returns true if the the length of the given <code>value</code> is equal to the given <code>length</code>. Can be used as a block or inline helper.</p>\n"},map:{args:["array","fn"],numArgs:2,example:"{{map [1, 2, 3] double}} -> [2, 4, 6]",description:"<p>Returns a new array, created by calling <code>function</code> on each element of the given <code>array</code>. For example,</p>\n"},pluck:{args:["collection","prop"],numArgs:2,example:"{{pluck [{ 'name': 'Bob' }] 'name' }} -> ['Bob']",description:"<p>Map over the given object or array or objects and create an array of values from the given <code>prop</code>. Dot-notation may be used (as a string) to get nested properties.</p>\n"},reverse:{args:["value"],numArgs:1,example:"{{reverse [1, 2, 3]}} -> [3, 2, 1]",description:"<p>Reverse the elements in an array, or the characters in a string.</p>\n"},some:{args:["array","iter","provided"],numArgs:3,example:"{{#some [1, 'b', 3] isString}} string found {{else}} No string found {{/some}} -> string found",description:"<p>Block helper that returns the block if the callback returns true for some value in the given array.</p>\n"},sort:{args:["array","key"],numArgs:2,example:"{{ sort ['b', 'a', 'c'] }} -> ['a', 'b', 'c']",description:"<p>Sort the given <code>array</code>. If an array of objects is passed, you may optionally pass a <code>key</code> to sort on as the second argument. You may alternatively pass a sorting function as the second argument.</p>\n"},sortBy:{args:["array","props"],numArgs:2,example:"{{ sortBy [{a: 'zzz'}, {a: 'aaa'}] 'a' }} -> [{'a':'aaa'}, {'a':'zzz'}]",description:"<p>Sort an <code>array</code>. If an array of objects is passed, you may optionally pass a <code>key</code> to sort on as the second argument. You may alternatively pass a sorting function as the second argument.</p>\n"},withAfter:{args:["array","idx","options"],numArgs:3,example:"{{ withAfter [1, 2, 3] 1 }} {{this}} {{/withAfter}}",description:'<p>Use the items in the array <em>after</em> the specified index as context inside a block. Opposite of <a href="#withBefore">withBefore</a>.</p>\n'},withBefore:{args:["array","idx","options"],numArgs:3,example:"{{ withBefore [1, 2, 3] 2 }} {{this}} {{/withBefore}}",description:'<p>Use the items in the array <em>before</em> the specified index as context inside a block. Opposite of <a href="#withAfter">withAfter</a>.</p>\n'},withFirst:{args:["array","idx","options"],numArgs:3,example:"{{ withFirst [1, 2, 3] }} {{this}} {{/withFirst}}",description:'<p>Use the first item in a collection inside a handlebars block expression. Opposite of <a href="#withLast">withLast</a>.</p>\n'},withGroup:{args:["array","size","options"],numArgs:3,example:"{{#withGroup [1, 2, 3, 4] 2}} {{#each this}} {{.}} {{each}} <br> {{/withGroup}} -> 1,2<br> 3,4<br>",description:"<p>Block helper that groups array elements by given group <code>size</code>.</p>\n"},withLast:{args:["array","idx","options"],numArgs:3,example:"{{#withLast [1, 2, 3, 4]}} {{this}} {{/withLast}} -> 4",description:'<p>Use the last item or <code>n</code> items in an array as context inside a block. Opposite of <a href="#withFirst">withFirst</a>.</p>\n'},withSort:{args:["array","prop","options"],numArgs:3,example:"{{#withSort ['b', 'a', 'c']}} {{this}} {{/withSort}} -> abc",description:"<p>Block helper that sorts a collection and exposes the sorted collection as context inside the block.</p>\n"},unique:{args:["array","options"],numArgs:2,example:"{{#each (unique ['a', 'a', 'c', 'b', 'e', 'e']) }} {{.}} {{/each}} -> acbe",description:'<p>Block helper that return an array with all duplicate values removed. Best used along with a <a href="#each">each</a> helper.</p>\n'}},number:{bytes:{args:["number"],numArgs:1,example:"{{ bytes 1386 }} -> 1.4Kb",description:"<p>Format a number to it's equivalent in bytes. If a string is passed, it's length will be formatted and returned. <strong>Examples:</strong> - <code>'foo' => 3 B</code> - <code>13661855 => 13.66 MB</code> - <code>825399 => 825.39 kB</code> - <code>1396 => 1.4 kB</code></p>\n"},addCommas:{args:["num"],numArgs:1,example:"{{ addCommas 1000000 }} -> 1,000,000",description:"<p>Add commas to numbers</p>\n"},phoneNumber:{args:["num"],numArgs:1,example:"{{ phoneNumber 8005551212 }} -> (800) 555-1212",description:"<p>Convert a string or number to a formatted phone number.</p>\n"},toAbbr:{args:["number","precision"],numArgs:2,example:"{{ toAbbr 10123 2 }} -> 10.12k",description:"<p>Abbreviate numbers to the given number of <code>precision</code>. This for general numbers, not size in bytes.</p>\n"},toExponential:{args:["number","fractionDigits"],numArgs:2,example:"{{ toExponential 10123 2 }} -> 101e+4",description:"<p>Returns a string representing the given number in exponential notation.</p>\n"},toFixed:{args:["number","digits"],numArgs:2,example:"{{ toFixed 1.1234 2 }} -> 1.12",description:"<p>Formats the given number using fixed-point notation.</p>\n"},toFloat:{args:["number"],numArgs:1,description:"<p>Convert input to a float.</p>\n"},toInt:{args:["number"],numArgs:1,description:"<p>Convert input to an integer.</p>\n"},toPrecision:{args:["number","precision"],numArgs:2,example:"{{toPrecision '1.1234' 2}}",description:"<p>Returns a string representing the <code>Number</code> object to the specified precision.</p>\n"}},url:{encodeURI:{args:["str"],numArgs:1,example:"{{ encodeURI 'https://myurl?Hello There' }} -> https://myurl?Hello%20There",description:"<p>Encodes a Uniform Resource Identifier (URI) component by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character.</p>\n"},escape:{args:["str"],numArgs:1,example:"{{ escape 'https://myurl?Hello+There' }} -> https://myurl?Hello%20There",description:"<p>Escape the given string by replacing characters with escape sequences. Useful for allowing the string to be used in a URL, etc.</p>\n"},decodeURI:{args:["str"],numArgs:1,example:"{{ decodeURI 'https://myurl?Hello%20There' }} -> https://myurl?=Hello There",description:"<p>Decode a Uniform Resource Identifier (URI) component.</p>\n"},urlResolve:{args:["base","href"],numArgs:2,example:"{{ urlResolve 'https://myurl' '/api/test' }} -> https://myurl/api/test",description:"<p>Take a base URL, and a href URL, and resolve them as a browser would for an anchor tag.</p>\n"},urlParse:{args:["str"],numArgs:1,example:"{{ urlParse 'https://myurl/api/test' }}",description:"<p>Parses a <code>url</code> string into an object.</p>\n"},stripQuerystring:{args:["url"],numArgs:1,example:"{{ stripQueryString 'https://myurl/api/test?foo=bar' }} -> 'https://myurl/api/test'",description:"<p>Strip the query string from the given <code>url</code>.</p>\n"},stripProtocol:{args:["str"],numArgs:1,example:"{{ stripProtocol 'https://myurl/api/test' }} -> 'myurl/api/test'",description:"<p>Strip protocol from a <code>url</code>. Useful for displaying media that may have an 'http' protocol on secure connections.</p>\n"}},string:{append:{args:["str","suffix"],numArgs:2,example:"{{append 'index' '.html'}} -> index.html",description:"<p>Append the specified <code>suffix</code> to the given string.</p>\n"},camelcase:{args:["string"],numArgs:1,example:"{{camelcase 'foo bar baz'}} -> fooBarBaz",description:"<p>camelCase the characters in the given <code>string</code>.</p>\n"},capitalize:{args:["str"],numArgs:1,example:"{{capitalize 'foo bar baz'}} -> Foo bar baz",description:"<p>Capitalize the first word in a sentence.</p>\n"},capitalizeAll:{args:["str"],numArgs:1,example:"{{ capitalizeAll 'foo bar baz'}} -> Foo Bar Baz",description:"<p>Capitalize all words in a string.</p>\n"},center:{args:["str","spaces"],numArgs:2,example:"{{ center 'test' 1}} -> ' test '",description:"<p>Center a string using non-breaking spaces</p>\n"},chop:{args:["string"],numArgs:1,example:"{{ chop ' ABC '}} -> 'ABC'",description:"<p>Like trim, but removes both extraneous whitespace <strong>and non-word characters</strong> from the beginning and end of a string.</p>\n"},dashcase:{args:["string"],numArgs:1,example:"{{dashcase 'a-b-c d_e'}} -> a-b-c-d-e",description:"<p>dash-case the characters in <code>string</code>. Replaces non-word characters and periods with hyphens.</p>\n"},dotcase:{args:["string"],numArgs:1,example:"{{dotcase 'a-b-c d_e'}} -> a.b.c.d.e",description:"<p>dot.case the characters in <code>string</code>.</p>\n"},downcase:{args:["string"],numArgs:1,example:"{{downcase 'aBcDeF'}} -> abcdef",description:'<p>Lowercase all of the characters in the given string. Alias for <a href="#lowercase">lowercase</a>.</p>\n'},ellipsis:{args:["str","length"],numArgs:2,example:"{{ellipsis 'foo bar baz', 7}} -> foo bar…",description:"<p>Truncates a string to the specified <code>length</code>, and appends it with an elipsis, <code>…</code>.</p>\n"},hyphenate:{args:["str"],numArgs:1,example:"{{hyphenate 'foo bar baz qux'}} -> foo-bar-baz-qux",description:"<p>Replace spaces in a string with hyphens.</p>\n"},isString:{args:["value"],numArgs:1,example:"{{isString 'foo'}} -> true",description:"<p>Return true if <code>value</code> is a string.</p>\n"},lowercase:{args:["str"],numArgs:1,example:"{{lowercase 'Foo BAR baZ'}} -> foo bar baz",description:"<p>Lowercase all characters in the given string.</p>\n"},occurrences:{args:["str","substring"],numArgs:2,example:"{{occurrences 'foo bar foo bar baz' 'foo'}} -> 2",description:"<p>Return the number of occurrences of <code>substring</code> within the given <code>string</code>.</p>\n"},pascalcase:{args:["string"],numArgs:1,example:"{{pascalcase 'foo bar baz'}} -> FooBarBaz",description:"<p>PascalCase the characters in <code>string</code>.</p>\n"},pathcase:{args:["string"],numArgs:1,example:"{{pathcase 'a-b-c d_e'}} -> a/b/c/d/e",description:"<p>path/case the characters in <code>string</code>.</p>\n"},plusify:{args:["str"],numArgs:1,example:"{{plusify 'foo bar baz'}} -> foo+bar+baz",description:"<p>Replace spaces in the given string with pluses.</p>\n"},prepend:{args:["str","prefix"],numArgs:2,example:"{{prepend 'bar' 'foo-'}} -> foo-bar",description:"<p>Prepends the given <code>string</code> with the specified <code>prefix</code>.</p>\n"},raw:{args:["options"],numArgs:1,example:"{{{{#raw}}}} {{foo}} {{{{/raw}}}} -> {{foo}}",description:"<p>Render a block without processing mustache templates inside the block.</p>\n"},remove:{args:["str","substring"],numArgs:2,example:"{{remove 'a b a b a b' 'a '}} -> b b b",description:"<p>Remove all occurrences of <code>substring</code> from the given <code>str</code>.</p>\n"},removeFirst:{args:["str","substring"],numArgs:2,example:"{{remove 'a b a b a b' 'a'}} -> b a b a b",description:"<p>Remove the first occurrence of <code>substring</code> from the given <code>str</code>.</p>\n"},replace:{args:["str","a","b"],numArgs:3,example:"{{replace 'a b a b a b' 'a' 'z'}} -> z b z b z b",description:"<p>Replace all occurrences of substring <code>a</code> with substring <code>b</code>.</p>\n"},replaceFirst:{args:["str","a","b"],numArgs:3,example:"{{replace 'a b a b a b' 'a' 'z'}} -> z b a b a b",description:"<p>Replace the first occurrence of substring <code>a</code> with substring <code>b</code>.</p>\n"},sentence:{args:["str"],numArgs:1,example:"{{sentence 'hello world. goodbye world.'}} -> Hello world. Goodbye world.",description:"<p>Sentence case the given string</p>\n"},snakecase:{args:["string"],numArgs:1,example:"{{snakecase 'a-b-c d_e'}} -> a_b_c_d_e",description:"<p>snake_case the characters in the given <code>string</code>.</p>\n"},split:{args:["string"],numArgs:1,example:"{{split 'a,b,c'}} -> ['a', 'b', 'c']",description:"<p>Split <code>string</code> by the given <code>character</code>.</p>\n"},startsWith:{args:["prefix","testString","options"],numArgs:3,example:"{{#startsWith 'Goodbye' 'Hello, world!'}} Yep {{else}} Nope {{/startsWith}} -> Nope",description:"<p>Tests whether a string begins with the given prefix.</p>\n"},titleize:{args:["str"],numArgs:1,example:"{{#titleize 'this is title case' }} -> This Is Title Case",description:"<p>Title case the given string.</p>\n"},trim:{args:["string"],numArgs:1,example:"{{trim ' ABC ' }} -> ABC",description:"<p>Removes extraneous whitespace from the beginning and end of a string.</p>\n"},trimLeft:{args:["string"],numArgs:1,example:"{{trimLeft ' ABC ' }} -> 'ABC '",description:"<p>Removes extraneous whitespace from the beginning of a string.</p>\n"},trimRight:{args:["string"],numArgs:1,example:"{{trimRight ' ABC ' }} -> ' ABC '",description:"<p>Removes extraneous whitespace from the end of a string.</p>\n"},truncate:{args:["str","limit","suffix"],numArgs:3,example:"{{truncate 'foo bar baz' 7 }} -> foo bar",description:'<p>Truncate a string to the specified <code>length</code>. Also see <a href="#ellipsis">ellipsis</a>.</p>\n'},truncateWords:{args:["str","limit","suffix"],numArgs:3,example:"{{truncateWords 'foo bar baz' 1 }} -> foo",description:'<p>Truncate a string to have the specified number of words. Also see <a href="#truncate">truncate</a>.</p>\n'},upcase:{args:["string"],numArgs:1,example:"{{upcase 'aBcDef'}} -> ABCDEF",description:'<p>Uppercase all of the characters in the given string. Alias for <a href="#uppercase">uppercase</a>.</p>\n'},uppercase:{args:["str","options"],numArgs:2,example:"{{uppercase 'aBcDef'}} -> ABCDEF",description:"<p>Uppercase all of the characters in the given string. If used as a block helper it will uppercase the entire block. This helper does not support inverse blocks.</p>\n"}},comparison:{and:{args:["a","b","options"],numArgs:3,example:"{{#and great magnificent}}both{{else}}no{{/and}}",description:"<p>Helper that renders the block if <strong>both</strong> of the given values are truthy. If an inverse block is specified it will be rendered when falsy. Works as a block helper, inline helper or subexpression.</p>\n"},compare:{args:["a","operator","b","options"],numArgs:4,example:"{{compare 10 '<' 5 }} -> true",description:"<p>Render a block when a comparison of the first and third arguments returns true. The second argument is the [arithemetic operator][operators] to use. You may also optionally specify an inverse block to render when falsy.</p>\n"},contains:{args:["collection","value","[startIndex=0]","options"],numArgs:4,example:"{{#contains ['a', 'b', 'c'] 'd'}} This will not be rendered. {{else}} This will be rendered. {{/contains}}",description:"<p>Block helper that renders the block if <code>collection</code> has the given <code>value</code>, using strict equality (<code>===</code>) for comparison, otherwise the inverse block is rendered (if specified). If a <code>startIndex</code> is specified and is negative, it is used as the offset from the end of the collection.</p>\n"},default:{args:["value","defaultValue"],numArgs:2,example:"{{default null null 'default'}} -> default",description:"<p>Returns the first value that is not undefined, otherwise the 'default' value is returned.</p>\n"},eq:{args:["a","b","options"],numArgs:3,example:"{{#eq 3 3}} equal{{else}} not equal{{/eq}} -> equal",description:"<p>Block helper that renders a block if <code>a</code> is <strong>equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n"},gt:{args:["a","b","options"],numArgs:3,example:"{{#gt 4 3}} greater than{{else}} not greater than{{/gt}} -> greater than",description:"<p>Block helper that renders a block if <code>a</code> is <strong>greater than</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n"},gte:{args:["a","b","options"],numArgs:3,example:"{{#gte 4 3}} greater than or equal{{else}} not greater than{{/gte}} -> greater than or equal",description:"<p>Block helper that renders a block if <code>a</code> is <strong>greater than or equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n"},has:{args:["val","pattern","options"],numArgs:3,example:"{{#has 'foobar' 'foo'}} has it{{else}} doesn't{{/has}} -> has it",description:"<p>Block helper that renders a block if <code>value</code> has <code>pattern</code>. If an inverse block is specified it will be rendered when falsy.</p>\n"},isFalsey:{args:["val","options"],numArgs:2,example:"{{isFalsey '' }} -> true",description:"<p>Returns true if the given <code>value</code> is falsey. Uses the [falsey][] library for comparisons. Please see that library for more information or to report bugs with this helper.</p>\n"},isTruthy:{args:["val","options"],numArgs:2,example:"{{isTruthy '12' }} -> true",description:"<p>Returns true if the given <code>value</code> is truthy. Uses the [falsey][] library for comparisons. Please see that library for more information or to report bugs with this helper.</p>\n"},ifEven:{args:["number","options"],numArgs:2,example:"{{#ifEven 2}} even {{else}} odd {{/ifEven}} -> even",description:"<p>Return true if the given value is an even number.</p>\n"},ifNth:{args:["a","b","options"],numArgs:3,example:"{{#ifNth 10 2}} remainder {{else}} no remainder {{/ifNth}} -> remainder",description:"<p>Conditionally renders a block if the remainder is zero when <code>a</code> operand is divided by <code>b</code>. If an inverse block is specified it will be rendered when the remainder is <strong>not zero</strong>.</p>\n"},ifOdd:{args:["value","options"],numArgs:2,example:"{{#ifOdd 3}} odd {{else}} even {{/ifOdd}} -> odd",description:"<p>Block helper that renders a block if <code>value</code> is <strong>an odd number</strong>. If an inverse block is specified it will be rendered when falsy.</p>\n"},is:{args:["a","b","options"],numArgs:3,example:"{{#is 3 3}} is {{else}} is not {{/is}} -> is",description:'<p>Block helper that renders a block if <code>a</code> is <strong>equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. Similar to <a href="#eq">eq</a> but does not do strict equality.</p>\n'},isnt:{args:["a","b","options"],numArgs:3,example:"{{#isnt 3 3}} isnt {{else}} is {{/isnt}} -> is",description:'<p>Block helper that renders a block if <code>a</code> is <strong>not equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. Similar to <a href="#unlesseq">unlessEq</a> but does not use strict equality for comparisons.</p>\n'},lt:{args:["context","options"],numArgs:2,example:"{{#lt 2 3}} less than {{else}} more than or equal {{/lt}} -> less than",description:"<p>Block helper that renders a block if <code>a</code> is <strong>less than</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n"},lte:{args:["a","b","options"],numArgs:3,example:"{{#lte 2 3}} less than or equal {{else}} more than {{/lte}} -> less than or equal",description:"<p>Block helper that renders a block if <code>a</code> is <strong>less than or equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n"},neither:{args:["a","b","options"],numArgs:3,example:"{{#neither null null}} both falsey {{else}} both not falsey {{/neither}} -> both falsey",description:"<p>Block helper that renders a block if <strong>neither of</strong> the given values are truthy. If an inverse block is specified it will be rendered when falsy.</p>\n"},not:{args:["val","options"],numArgs:2,example:"{{#not undefined }} falsey {{else}} not falsey {{/not}} -> falsey",description:"<p>Returns true if <code>val</code> is falsey. Works as a block or inline helper.</p>\n"},or:{args:["arguments","options"],numArgs:2,example:"{{#or 1 2 undefined }} at least one truthy {{else}} all falsey {{/or}} -> at least one truthy",description:"<p>Block helper that renders a block if <strong>any of</strong> the given values is truthy. If an inverse block is specified it will be rendered when falsy.</p>\n"},unlessEq:{args:["a","b","options"],numArgs:3,example:"{{#unlessEq 2 1 }} not equal {{else}} equal {{/unlessEq}} -> not equal",description:"<p>Block helper that always renders the inverse block <strong>unless <code>a</code> is equal to <code>b</code></strong>.</p>\n"},unlessGt:{args:["a","b","options"],numArgs:3,example:"{{#unlessGt 20 1 }} not greater than {{else}} greater than {{/unlessGt}} -> greater than",description:"<p>Block helper that always renders the inverse block <strong>unless <code>a</code> is greater than <code>b</code></strong>.</p>\n"},unlessLt:{args:["a","b","options"],numArgs:3,example:"{{#unlessLt 20 1 }} greater than or equal {{else}} less than {{/unlessLt}} -> greater than or equal",description:"<p>Block helper that always renders the inverse block <strong>unless <code>a</code> is less than <code>b</code></strong>.</p>\n"},unlessGteq:{args:["a","b","options"],numArgs:3,example:"{{#unlessGteq 20 1 }} less than {{else}} greater than or equal to {{/unlessGteq}} -> greater than or equal to",description:"<p>Block helper that always renders the inverse block <strong>unless <code>a</code> is greater than or equal to <code>b</code></strong>.</p>\n"},unlessLteq:{args:["a","b","options"],numArgs:3,example:"{{#unlessLteq 20 1 }} greater than {{else}} less than or equal to {{/unlessLteq}} -> greater than",description:"<p>Block helper that always renders the inverse block <strong>unless <code>a</code> is less than or equal to <code>b</code></strong>.</p>\n"}},object:{extend:{args:["objects"],numArgs:1,description:"<p>Extend the context with the properties of other objects. A shallow merge is performed to avoid mutating the context.</p>\n"},forIn:{args:["context","options"],numArgs:2,description:"<p>Block helper that iterates over the properties of an object, exposing each key and value on the context.</p>\n"},forOwn:{args:["obj","options"],numArgs:2,description:"<p>Block helper that iterates over the <strong>own</strong> properties of an object, exposing each key and value on the context.</p>\n"},toPath:{args:["prop"],numArgs:1,description:"<p>Take arguments and, if they are string or number, convert them to a dot-delineated object property path.</p>\n"},get:{args:["prop","context","options"],numArgs:3,description:"<p>Use property paths (<code>a.b.c</code>) to get a value or nested value from the context. Works as a regular helper or block helper.</p>\n"},getObject:{args:["prop","context"],numArgs:2,description:"<p>Use property paths (<code>a.b.c</code>) to get an object from the context. Differs from the <code>get</code> helper in that this helper will return the actual object, including the given property key. Also, this helper does not work as a block helper.</p>\n"},hasOwn:{args:["key","context"],numArgs:2,description:"<p>Return true if <code>key</code> is an own, enumerable property of the given <code>context</code> object.</p>\n"},isObject:{args:["value"],numArgs:1,description:"<p>Return true if <code>value</code> is an object.</p>\n"},JSONparse:{args:["string"],numArgs:1,description:"<p>Parses the given string using <code>JSON.parse</code>.</p>\n"},JSONstringify:{args:["obj"],numArgs:1,description:"<p>Stringify an object using <code>JSON.stringify</code>.</p>\n"},merge:{args:["object","objects"],numArgs:2,description:"<p>Deeply merge the properties of the given <code>objects</code> with the context object.</p>\n"},parseJSON:{args:["string"],numArgs:1,description:"<p>Parses the given string using <code>JSON.parse</code>.</p>\n"},pick:{args:["properties","context","options"],numArgs:3,description:"<p>Pick properties from the context object.</p>\n"},stringify:{args:["obj"],numArgs:1,description:"<p>Stringify an object using <code>JSON.stringify</code>.</p>\n"}},date:{date:{args:["datetime","format"],numArgs:2,example:'{{date now "DD-MM-YYYY" "America/New_York" }} -> 21-01-2021',description:"<p>Format a date using moment.js date formatting - the timezone is optional and uses the tz database.</p>\n"},duration:{args:["time","durationType"],numArgs:2,example:'{{duration timeLeft "seconds"}} -> a few seconds',description:"<p>Produce a humanized duration left/until given an amount of time and the type of time measurement.</p>\n"}}};const{getHelperList:Dz}=yz;function Hz(e){if(!e||"string"!=typeof e)return e;let t=!1;return[",","{",":"].forEach((r=>{e.includes(r)&&(t=!0)})),e.startsWith("[")&&t?e:isNaN(parseFloat(e))?e.startsWith("'")||e.startsWith('"')?e:`$("${e}")`:e}function Oz(e,t){function r(){return e.map((e=>e.startsWith("helper")?e:Hz(e))).join(", ")}return t?0===e.length?t:`${t}, ${r()}`:e.length>1?`${r()}`:r()}function Pz(e){const t=[];let r=null,n=null,i=0;function a(e){const r=["]"];for(;-1!==r.indexOf(e.substring(0,1));)e=e.substring(1,e.length);e.length>0&&t.push(e.trim())}const o=["[","'",'"'];for(let t=0;t<e.length;t++){const s=e[t];-1!==o.indexOf(s)&&null==r?(r=t,n="["===s?"]":s):s===n&&null!=r&&"."!==e[t+1]?(a(e.substring(r,t+1)),r=null,n=null,i=t+1):null==r&&" "===s&&(a(e.substring(i,t)),i=t)}return e.startsWith("[")&&0!==t.length||i===e.length-1||a(e.substring(i,e.length)),t}var Rz={convertHBSBlock:(e,t)=>{const r="{"===e[2]?3:2,n=function(e){let t=[];for(;e.length;){const r=e.lastIndexOf("("),n=e.indexOf(")");let i;if(-1===r||-1===n)i=e.trim(),e="";else{const t=e.substring(r,n+1);i=t.substring(1,t.length-1).trim(),e=e.slice(0,r)+e.slice(r+t.length+1,e.length)}t.push(i)}return t}(e=e.substring(r,e.length-r).trim());let i=null;const a=Dz();for(let e of n){const t=Pz(e);if(i||t.length>1){const e=t.splice(0,1);a[e]&&(i=`helpers.${e}(${Oz(t,i)})`)}else i=Hz(t[0])}return{variable:`var${t}`,value:i}}},Vz=Mc((function(e,t){const{registerAll:r,registerMinimum:n}=yz,{atob:i,btoa:a}=tz,{FIND_HBS_REGEX:o,FIND_ANY_HBS_REGEX:s,findDoubleHbsInstances:l}=tz,{convertHBSBlock:c}=Rz,u=Op.create();r(u);const p=Op.create();n(p);const d={noHelpers:!1,cacheTemplates:!1,noEscaping:!1,escapeNewlines:!1,noFinalise:!1};function h(e){try{JSON.stringify(e)}catch(e){throw"Unable to process inputs to JSON, cannot recurse"}}let m={};function g(e,r){r={...d,...r};const n=`${e}-${JSON.stringify(r)}`;if(r.cacheTemplates&&m[n])return m[n];e=((e,t)=>{let r=Sz.processors;return t.noFinalise&&(r=r.filter((e=>e.name!==Sz.PreprocessorNames.FINALISE))),Iz(e,r,t)})(e,r),r.noEscaping&&(e=t.disableEscaping(e));const i=(r.noHelpers?p:u).compile(e,{strict:!1});return m[n]=i,i}e.exports.processObject=async(t,r,n)=>{h(t);for(let i of Object.keys(t||{}))if(null!=t[i]){let a=t[i];"string"==typeof a?t[i]=await e.exports.processString(t[i],r,n):"object"==typeof a&&(t[i]=await e.exports.processObject(t[i],r,n))}return t},e.exports.processString=async(t,r,n)=>e.exports.processStringSync(t,r,n),e.exports.processObjectSync=(t,r,n)=>{h(t);for(let i of Object.keys(t||{})){let a=t[i];"string"==typeof a?t[i]=e.exports.processStringSync(t[i],r,n):"object"==typeof a&&(t[i]=e.exports.processObjectSync(t[i],r,n))}return t},e.exports.processStringSync=(e,r,n)=>{const i=e;if("string"!=typeof e)throw"Cannot process non-string types.";function a(e){const t=g(e,n),i=1e3*Math.floor(Date.now()/1e3);return(e=>Iz(e,Lz.processors))(t({now:new Date(i).toISOString(),__opts:{...n,input:e},...r}))}try{if(n&&n.onlyFound){const r=t.findHBSBlocks(e);for(let t of r){const r=a(t);e=e.replace(t,r)}return e}return a(e)}catch(e){return i}},e.exports.disableEscaping=e=>{const t=l(e);if(null==t)return e;const r=[...new Set(t)];for(let t of r){const r=new RegExp(`${t}(?!})`,"g");e=e.replace(r,`{${t}}`)}return e},e.exports.makePropSafe=e=>`[${e}]`.replace("[[","[").replace("]]","]"),e.exports.isValid=(e,t)=>{const r=["string","number","object","array","cannot read property","undefined","json at position 0"],n=["expecting '"],i={};try{return g(e,{...t,noFinalise:!0})(i),!0}catch(e){const t=e&&e.message?e.message:e;if(!t)return!1;const i=n.some((e=>t.toLowerCase().includes(e)));return r.some((e=>t.toLowerCase().includes(e)))&&!i}},e.exports.getManifest=()=>Bz,e.exports.isJSBinding=t=>null!=e.exports.decodeJSBinding(t),e.exports.encodeJSBinding=e=>`{{ js "${a(e)}" }}`,e.exports.decodeJSBinding=e=>{if(!e||"string"!=typeof e)return null;if(!e.trim().startsWith("{{ js "))return null;const t=new RegExp(/{{ js "(.*)" }}/),r=e.match(t);return!r||r.length<2?null:i(r[1])},e.exports.doesContainStrings=(e,r)=>{let n=new RegExp(o),i=e.match(n);if(null==i)return!1;for(let e of i){let n=e;t.isJSBinding(e)&&(n=t.decodeJSBinding(e));let i=!0;for(let e of r)n.includes(e)||(i=!1);if(i)return!0}return!1},e.exports.findHBSBlocks=e=>{if(!e||"string"!=typeof e)return[];let t=new RegExp(s),r=e.match(t);return null==r?[]:r},e.exports.doesContainString=(e,r)=>t.doesContainStrings(e,[r]),e.exports.convertToJS=e=>{const r=t.findHBSBlocks(e);let n="return `",i=null;const a={};0===r.length&&(n+=e);let o=1;for(let t of r){let r=e;i&&(r=r.split(i)[1]),r=r.split(t)[0],i=t;const{variable:s,value:l}=c(t,o++);a[s]=l,n+=`${r.split()}\${${s}}`}let s="";for(let[e,t]of Object.entries(a))s+=`const ${e} = ${t};\n`;return n+="`;",`${s}${n}`},e.exports.FIND_ANY_HBS_REGEX=s}));Vz.isValid;const Nz=Vz.makePropSafe;Vz.getManifest,Vz.isJSBinding,Vz.encodeJSBinding,Vz.decodeJSBinding;const Fz=Vz.processStringSync,jz=Vz.processObjectSync;Vz.processString,Vz.processObject,Vz.doesContainStrings,Vz.doesContainString,Vz.disableEscaping,Vz.findHBSBlocks,Vz.convertToJS,Vz.FIND_ANY_HBS_REGEX,process&&!process.env.NO_JS&&vz(((e,t)=>(t={...t,alert:void 0,setInterval:void 0,setTimeout:void 0},Ac.createContext(t),Ac.runInNewContext(e,t,{timeout:1e3}))));function qz(e){let t,r,n;var i=e[3];function a(e){return{props:{row:e[0],schema:e[1],value:e[4],$$slots:{default:[Uz]},$$scope:{ctx:e}}}}return i&&(r=new i(a(e)),r.$on("clickrelationship",e[9]),r.$on("buttonclick",e[10])),{c(){t=Y("div"),r&&It(r.$$.fragment),fe(t,"--max-cell-width",e[1].width?"none":"200px"),ie(t,"class","svelte-16j2cvj")},m(e,i){U(e,t,i),r&&Bt(r,t,null),n=!0},p(e,o){const s={};if(1&o&&(s.row=e[0]),2&o&&(s.schema=e[1]),16&o&&(s.value=e[4]),2048&o&&(s.$$scope={dirty:o,ctx:e}),i!==(i=e[3])){if(r){ot();const e=r;ct(e.$$.fragment,1,0,(()=>{Dt(e,1)})),st()}i?(r=new i(a(e)),r.$on("clickrelationship",e[9]),r.$on("buttonclick",e[10]),It(r.$$.fragment),lt(r.$$.fragment,1),Bt(r,t,null)):r=null}else i&&r.$set(s);(!n||2&o)&&fe(t,"--max-cell-width",e[1].width?"none":"200px")},i(e){n||(r&<(r.$$.fragment,e),n=!0)},o(e){r&&ct(r.$$.fragment,e),n=!1},d(e){e&&X(t),r&&Dt(r)}}}function Uz(e){let t;const r=e[8].default,n=f(r,e,e[11],null);return{c(){n&&n.c()},m(e,r){n&&n.m(e,r),t=!0},p(e,i){n&&n.p&&(!t||2048&i)&&y(n,r,e,e[11],t?b(r,e[11],i,null):x(e[11]),null)},i(e){t||(lt(n,e),t=!0)},o(e){ct(n,e),t=!1},d(e){n&&n.d(e)}}}function Wz(e){let t,r,n=e[3]&&(e[2]||null!=e[4]&&""!==e[4])&&qz(e);return{c(){n&&n.c(),t=Q()},m(e,i){n&&n.m(e,i),U(e,t,i),r=!0},p(e,[r]){e[3]&&(e[2]||null!=e[4]&&""!==e[4])?n?(n.p(e,r),28&r&<(n,1)):(n=qz(e),n.c(),lt(n,1),n.m(t.parentNode,t)):n&&(ot(),ct(n,1,1,(()=>{n=null})),st())},i(e){r||(lt(n),r=!0)},o(e){ct(n),r=!1},d(e){n&&n.d(e),e&&X(t)}}}function Xz(e,t,r){let n,i,a,o,{$$slots:s={},$$scope:l}=t,{row:c}=t,{schema:u}=t,{value:p}=t,{customRenderers:d=[]}=t;const h={boolean:Il,datetime:Ol,link:Ul,attachment:nc,string:$l,options:$l,number:$l,longform:$l,array:uc,internal:hc,bb_reference:Ul};return e.$$set=e=>{"row"in e&&r(0,c=e.row),"schema"in e&&r(1,u=e.schema),"value"in e&&r(5,p=e.value),"customRenderers"in e&&r(6,d=e.customRenderers),"$$scope"in e&&r(11,l=e.$$scope)},e.$$.update=()=>{2&e.$$.dirty&&r(7,n=(e=>"datetime"===e?.type&&e?.template?"string":e?.type||"string")(u)),66&e.$$.dirty&&r(2,i=d?.find((e=>e.column===u?.name))),132&e.$$.dirty&&r(3,o=i?.component??h[n]??$l),34&e.$$.dirty&&r(4,a=((e,t)=>t?Fz(t,{value:e}):e)(p,u.template))},[c,u,i,o,a,p,d,n,s,function(t){Ve.call(this,e,t)},function(t){Ve.call(this,e,t)},l]}Gt("div.svelte-16j2cvj{display:contents}");class Gz extends Ot{constructor(e){super(),Ht(this,e,Xz,Wz,c,{row:0,schema:1,value:5,customRenderers:6})}}function Yz(e){let t,r;return t=new So({props:{value:e[0]}}),{c(){It(t.$$.fragment)},m(e,n){Bt(t,e,n),r=!0},p(e,r){const n={};1&r&&(n.value=e[0]),t.$set(n)},i(e){r||(lt(t.$$.fragment,e),r=!0)},o(e){ct(t.$$.fragment,e),r=!1},d(e){Dt(t,e)}}}function Zz(e){let t,r;return t=new eo({props:{size:"S",$$slots:{default:[Kz]},$$scope:{ctx:e}}}),t.$on("click",(function(){l(e[1])&&e[1].apply(this,arguments)})),{c(){It(t.$$.fragment)},m(e,n){Bt(t,e,n),r=!0},p(r,n){e=r;const i={};16&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i)},i(e){r||(lt(t.$$.fragment,e),r=!0)},o(e){ct(t.$$.fragment,e),r=!1},d(e){Dt(t,e)}}}function Kz(e){let t;return{c(){t=K("Edit")},m(e,r){U(e,t,r)},d(e){e&&X(t)}}}function Jz(e){let t,r,n,i=e[2]&&Yz(e),a=e[3]&&Zz(e);return{c(){t=Y("div"),i&&i.c(),r=J(),a&&a.c(),ie(t,"class","svelte-1fa8hd3")},m(e,o){U(e,t,o),i&&i.m(t,null),V(t,r),a&&a.m(t,null),n=!0},p(e,[n]){e[2]?i?(i.p(e,n),4&n&<(i,1)):(i=Yz(e),i.c(),lt(i,1),i.m(t,r)):i&&(ot(),ct(i,1,1,(()=>{i=null})),st()),e[3]?a?(a.p(e,n),8&n&<(a,1)):(a=Zz(e),a.c(),lt(a,1),a.m(t,null)):a&&(ot(),ct(a,1,1,(()=>{a=null})),st())},i(e){n||(lt(i),lt(a),n=!0)},o(e){ct(i),ct(a),n=!1},d(e){e&&X(t),i&&i.d(),a&&a.d()}}}function Qz(e,t,r){let{selected:n}=t,{onEdit:i}=t,{allowSelectRows:a=!1}=t,{allowEditRows:o=!1}=t;return e.$$set=e=>{"selected"in e&&r(0,n=e.selected),"onEdit"in e&&r(1,i=e.onEdit),"allowSelectRows"in e&&r(2,a=e.allowSelectRows),"allowEditRows"in e&&r(3,o=e.allowEditRows)},[n,i,a,o]}Gt("div.svelte-1fa8hd3{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:var(--spacing-m)}");class ek extends Ot{constructor(e){super(),Ht(this,e,Qz,Jz,c,{selected:0,onEdit:1,allowSelectRows:2,allowEditRows:3})}}Gt(".wrapper.svelte-rzhjll.svelte-rzhjll{position:relative;--table-bg:var(--spectrum-global-color-gray-50);--table-border:1px solid var(--spectrum-alias-border-color-mid);--cell-padding:var(--spectrum-global-dimension-size-250);overflow:auto}.wrapper--quiet.svelte-rzhjll.svelte-rzhjll{--table-bg:var(--spectrum-alias-background-color-transparent)}.wrapper--compact.svelte-rzhjll.svelte-rzhjll{--cell-padding:var(--spectrum-global-dimension-size-150)}.loading.svelte-rzhjll.svelte-rzhjll{display:flex;align-items:center;min-height:100px;justify-content:center}.spectrum-Table.svelte-rzhjll.svelte-rzhjll{width:100%;border-radius:0;display:grid;overflow:auto}.spectrum-Table.no-scroll.svelte-rzhjll.svelte-rzhjll{overflow:visible}.spectrum-Table-head.svelte-rzhjll.svelte-rzhjll{display:contents}.spectrum-Table-head.svelte-rzhjll>.svelte-rzhjll:first-child{border-left:1px solid transparent;padding-left:var(--cell-padding)}.spectrum-Table-head.svelte-rzhjll>.svelte-rzhjll:last-child{border-right:1px solid transparent;padding-right:var(--cell-padding)}.spectrum-Table-headCell.svelte-rzhjll.svelte-rzhjll{height:var(--header-height);position:sticky;top:0;text-overflow:ellipsis;white-space:nowrap;background-color:var(--spectrum-alias-background-color-secondary);z-index:2;border-bottom:var(--table-border);padding:0 calc(var(--cell-padding) / 1.33);display:flex;flex-direction:row;justify-content:flex-start;align-items:center;user-select:none;border-top:var(--table-border)}.spectrum-Table-headCell.svelte-rzhjll.svelte-rzhjll:first-of-type{border-left:var(--table-border)}.spectrum-Table-headCell.svelte-rzhjll.svelte-rzhjll:last-of-type{border-right:var(--table-border)}.noBorderHeader.svelte-rzhjll.svelte-rzhjll{border-top:none !important;border-right:none !important;border-left:none !important}.noBorderCheckbox.svelte-rzhjll.svelte-rzhjll{border-top:none !important;border-right:none !important}.spectrum-Table-headCell--alignCenter.svelte-rzhjll.svelte-rzhjll{justify-content:center}.spectrum-Table-headCell--alignRight.svelte-rzhjll.svelte-rzhjll{justify-content:flex-end}.spectrum-Table-headCell--edit.svelte-rzhjll.svelte-rzhjll{position:sticky;left:0;z-index:3}.spectrum-Table-headCell.svelte-rzhjll .title.svelte-rzhjll{overflow:visible;text-overflow:ellipsis}.spectrum-Table-headCell.svelte-rzhjll:hover .spectrum-Table-editIcon.svelte-rzhjll{opacity:1;transition:opacity 0.2s ease}.spectrum-Table-headCell.svelte-rzhjll .spectrum-Icon.svelte-rzhjll{pointer-events:all;margin-left:var(\n --spectrum-table-header-sort-icon-gap,\n var(--spectrum-global-dimension-size-125)\n )}.spectrum-Table-editIcon.svelte-rzhjll.svelte-rzhjll,.spectrum-Table-autoIcon.svelte-rzhjll.svelte-rzhjll{width:var(--spectrum-global-dimension-size-150);height:var(--spectrum-global-dimension-size-150)}.spectrum-Table-editIcon.svelte-rzhjll.svelte-rzhjll{opacity:0}.spectrum-Table-row.svelte-rzhjll.svelte-rzhjll{display:contents;cursor:auto}.spectrum-Table-row.clickable.svelte-rzhjll.svelte-rzhjll{cursor:pointer}.spectrum-Table-row.clickable.svelte-rzhjll:hover .spectrum-Table-cell.svelte-rzhjll{background-color:var(--spectrum-global-color-gray-100)}.wrapper--quiet.svelte-rzhjll .spectrum-Table-row.svelte-rzhjll{border-left:none;border-right:none}.spectrum-Table-row.svelte-rzhjll>.svelte-rzhjll:first-child{border-left:var(--table-border);padding-left:var(--cell-padding)}.spectrum-Table-row.svelte-rzhjll>.svelte-rzhjll:last-child{border-right:var(--table-border);padding-right:var(--cell-padding)}.spectrum-Table-cell.svelte-rzhjll.svelte-rzhjll{flex:1 1 auto;padding:0 calc(var(--cell-padding) / 1.33);border-top:none;border-bottom:none;border-radius:0;text-overflow:ellipsis;white-space:nowrap;height:var(--row-height);display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:4px;border-bottom:1px solid var(--spectrum-alias-border-color-mid);background-color:var(--table-bg);z-index:auto;transition:background-color 130ms ease-out}.spectrum-Table-cell--edit.svelte-rzhjll.svelte-rzhjll{position:sticky;left:0;z-index:2}.placeholder.svelte-rzhjll.svelte-rzhjll{display:flex;flex-direction:row;justify-content:center;align-items:center;border:var(--table-border);border-top:none;grid-column:1 / -1;background-color:var(--table-bg);padding:40px}.placeholder--no-fields.svelte-rzhjll.svelte-rzhjll{border-top:var(--table-border)}.placeholder--custom.svelte-rzhjll.svelte-rzhjll{justify-content:flex-start}.wrapper--quiet.svelte-rzhjll .placeholder.svelte-rzhjll{border-left:none;border-right:none}.placeholder-content.svelte-rzhjll.svelte-rzhjll{display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(\n --spectrum-table-cell-text-color,\n var(--spectrum-alias-text-color)\n )}.placeholder-content.svelte-rzhjll div.svelte-rzhjll{margin-top:10px;font-size:var(\n --spectrum-table-cell-text-size,\n var(--spectrum-alias-font-size-default)\n );text-align:center}");const tk=e=>({}),rk=e=>({});function nk(e,t,r){const n=e.slice();return n[59]=t[r],n}function ik(e,t,r){const n=e.slice();return n[62]=t[r],n}function ak(e,t,r){const n=e.slice();return n[62]=t[r],n}const ok=e=>({}),sk=e=>({});function lk(e){let t,r,n,i,a,o,s=e[18].length&&uk(e);const l=[yk,bk],c=[];function u(e,t){return e[23]?.length?0:1}return n=u(e),i=c[n]=l[n](e),{c(){t=Y("div"),s&&s.c(),r=J(),i.c(),ie(t,"class","spectrum-Table svelte-rzhjll"),ie(t,"style",a=`${e[24]}${e[22]}`),ye(t,"no-scroll",!e[2])},m(e,i){U(e,t,i),s&&s.m(t,null),V(t,r),c[n].m(t,null),o=!0},p(e,p){e[18].length?s?(s.p(e,p),262144&p[0]&<(s,1)):(s=uk(e),s.c(),lt(s,1),s.m(t,r)):s&&(ot(),ct(s,1,1,(()=>{s=null})),st());let d=n;n=u(e),n===d?c[n].p(e,p):(ot(),ct(c[d],1,1,(()=>{c[d]=null})),st(),i=c[n],i?i.p(e,p):(i=c[n]=l[n](e),i.c()),lt(i,1),i.m(t,null)),(!o||20971520&p[0]&&a!==(a=`${e[24]}${e[22]}`))&&ie(t,"style",a),4&p[0]&&ye(t,"no-scroll",!e[2])},i(e){o||(lt(s),lt(i),o=!0)},o(e){ct(s),ct(i),o=!1},d(e){e&&X(t),s&&s.d(),c[n].d()}}}function ck(e){let t,r;const n=e[40].loadingIndicator,i=f(n,e,e[51],sk),a=i||function(e){let t,r;return t=new kn({}),{c(){It(t.$$.fragment)},m(e,n){Bt(t,e,n),r=!0},i(e){r||(lt(t.$$.fragment,e),r=!0)},o(e){ct(t.$$.fragment,e),r=!1},d(e){Dt(t,e)}}}();return{c(){t=Y("div"),a&&a.c(),ie(t,"class","loading svelte-rzhjll"),ie(t,"style",e[24])},m(e,n){U(e,t,n),a&&a.m(t,null),r=!0},p(e,a){i&&i.p&&(!r||1048576&a[1])&&y(i,n,e,e[51],r?b(n,e[51],a,ok):x(e[51]),sk),(!r||16777216&a[0])&&ie(t,"style",e[24])},i(e){r||(lt(a,e),r=!0)},o(e){ct(a,e),r=!1},d(e){e&&X(t),a&&a.d(e)}}}function uk(e){let t,r,n,i=e[17]&&pk(e),a=e[18],o=[];for(let t=0;t<a.length;t+=1)o[t]=vk(ak(e,a,t));return{c(){t=Y("div"),i&&i.c(),r=J();for(let e=0;e<o.length;e+=1)o[e].c();ie(t,"class","spectrum-Table-head svelte-rzhjll")},m(e,a){U(e,t,a),i&&i.m(t,null),V(t,r);for(let e=0;e<o.length;e+=1)o[e].m(t,null);n=!0},p(e,n){if(e[17]?i?(i.p(e,n),131072&n[0]&<(i,1)):(i=pk(e),i.c(),lt(i,1),i.m(t,r)):i&&(ot(),ct(i,1,1,(()=>{i=null})),st()),470077569&n[0]){let r;for(a=e[18],r=0;r<a.length;r+=1){const i=ak(e,a,r);o[r]?o[r].p(i,n):(o[r]=vk(i),o[r].c(),o[r].m(t,null))}for(;r<o.length;r+=1)o[r].d(1);o.length=a.length}},i(e){n||(lt(i),n=!0)},o(e){ct(i),n=!1},d(e){e&&X(t),i&&i.d(),G(o,e)}}}function pk(e){let t,r,n,i;const a=[hk,dk],o=[];function s(e,t){return e[5]?0:1}return r=s(e),n=o[r]=a[r](e),{c(){t=Y("div"),n.c(),ie(t,"class","spectrum-Table-headCell spectrum-Table-headCell--divider spectrum-Table-headCell--edit svelte-rzhjll"),ye(t,"noBorderHeader",!e[12])},m(e,n){U(e,t,n),o[r].m(t,null),i=!0},p(e,i){let l=r;r=s(e),r===l?o[r].p(e,i):(ot(),ct(o[l],1,1,(()=>{o[l]=null})),st(),n=o[r],n?n.p(e,i):(n=o[r]=a[r](e),n.c()),lt(n,1),n.m(t,null)),4096&i[0]&&ye(t,"noBorderHeader",!e[12])},i(e){i||(lt(n),i=!0)},o(e){ct(n),i=!1},d(e){e&&X(t),o[r].d()}}}function dk(e){let r;return{c(){r=K("Edit")},m(e,t){U(e,r,t)},p:t,i:t,o:t,d(e){e&&X(r)}}}function hk(e){let t,r,n;function i(t){e[41](t)}let a={};return void 0!==e[20]&&(a.value=e[20]),t=new So({props:a}),Fe.push((()=>Et(t,"value",i))),t.$on("change",e[31]),{c(){It(t.$$.fragment)},m(e,r){Bt(t,e,r),n=!0},p(e,n){const i={};!r&&1048576&n[0]&&(r=!0,i.value=e[20],Ze((()=>r=!1))),t.$set(i)},i(e){n||(lt(t.$$.fragment,e),n=!0)},o(e){ct(t.$$.fragment,e),n=!1},d(e){Dt(t,e)}}}function mk(e){let t,r;return{c(){t=Z("svg"),r=Z("use"),se(r,"xlink:href","#spectrum-icon-18-MagicWand"),ie(t,"class","spectrum-Icon spectrum-Table-autoIcon svelte-rzhjll"),ie(t,"focusable","false")},m(e,n){U(e,t,n),V(t,r)},d(e){e&&X(t)}}}function gk(e){let t,r;return{c(){t=Z("svg"),r=Z("use"),se(r,"xlink:href","#spectrum-css-icon-Arrow100"),ie(t,"class","spectrum-Icon spectrum-UIIcon-ArrowDown100 spectrum-Table-sortedIcon svelte-rzhjll"),ie(t,"focusable","false"),ie(t,"aria-hidden","true")},m(e,n){U(e,t,n),V(t,r)},d(e){e&&X(t)}}}function fk(e){let t,r,n,i;function a(...t){return e[42](e[62],...t)}return{c(){t=Z("svg"),r=Z("use"),se(r,"xlink:href","#spectrum-icon-18-Edit"),ie(t,"class","spectrum-Icon spectrum-Table-editIcon svelte-rzhjll"),ie(t,"focusable","false")},m(e,o){U(e,t,o),V(t,r),n||(i=ee(t,"click",a),n=!0)},p(t,r){e=t},d(e){e&&X(t),n=!1,i()}}}function vk(e){let t,r,n,i,a,o,s,l,c,u=e[27](e[0][e[62]])+"",p=e[0][e[62]]?.autocolumn&&mk(),d=e[14]===e[62]&&gk(),h=e[7]&&!1!==e[0][e[62]]?.editable&&fk(e);function m(){return e[43](e[62])}return{c(){t=Y("div"),r=Y("div"),n=K(u),i=J(),p&&p.c(),a=J(),d&&d.c(),o=J(),h&&h.c(),s=J(),ie(r,"class","title svelte-rzhjll"),ie(t,"class","spectrum-Table-headCell svelte-rzhjll"),ye(t,"noBorderHeader",!e[12]),ye(t,"spectrum-Table-headCell--alignCenter","Center"===e[0][e[62]].align),ye(t,"spectrum-Table-headCell--alignRight","Right"===e[0][e[62]].align),ye(t,"is-sortable",!1!==e[0][e[62]].sortable),ye(t,"is-sorted-desc",e[14]===e[62]&&"Descending"===e[15]),ye(t,"is-sorted-asc",e[14]===e[62]&&"Ascending"===e[15])},m(e,u){U(e,t,u),V(t,r),V(r,n),V(t,i),p&&p.m(t,null),V(t,a),d&&d.m(t,null),V(t,o),h&&h.m(t,null),V(t,s),l||(c=ee(t,"click",m),l=!0)},p(r,i){e=r,262145&i[0]&&u!==(u=e[27](e[0][e[62]])+"")&&me(n,u),e[0][e[62]]?.autocolumn?p||(p=mk(),p.c(),p.m(t,a)):p&&(p.d(1),p=null),e[14]===e[62]?d||(d=gk(),d.c(),d.m(t,o)):d&&(d.d(1),d=null),e[7]&&!1!==e[0][e[62]]?.editable?h?h.p(e,i):(h=fk(e),h.c(),h.m(t,s)):h&&(h.d(1),h=null),4096&i[0]&&ye(t,"noBorderHeader",!e[12]),262145&i[0]&&ye(t,"spectrum-Table-headCell--alignCenter","Center"===e[0][e[62]].align),262145&i[0]&&ye(t,"spectrum-Table-headCell--alignRight","Right"===e[0][e[62]].align),262145&i[0]&&ye(t,"is-sortable",!1!==e[0][e[62]].sortable),311296&i[0]&&ye(t,"is-sorted-desc",e[14]===e[62]&&"Descending"===e[15]),311296&i[0]&&ye(t,"is-sorted-asc",e[14]===e[62]&&"Ascending"===e[15])},d(e){e&&X(t),p&&p.d(),d&&d.d(),h&&h.d(),l=!1,c()}}}function bk(e){let t,r,n,i;const a=[wk,xk],o=[];function s(e,t){return e[11]?0:1}return r=s(e),n=o[r]=a[r](e),{c(){t=Y("div"),n.c(),ie(t,"class","placeholder svelte-rzhjll"),ye(t,"placeholder--custom",e[11]),ye(t,"placeholder--no-fields",!e[18]?.length)},m(e,n){U(e,t,n),o[r].m(t,null),i=!0},p(e,i){let l=r;r=s(e),r===l?o[r].p(e,i):(ot(),ct(o[l],1,1,(()=>{o[l]=null})),st(),n=o[r],n?n.p(e,i):(n=o[r]=a[r](e),n.c()),lt(n,1),n.m(t,null)),2048&i[0]&&ye(t,"placeholder--custom",e[11]),262144&i[0]&&ye(t,"placeholder--no-fields",!e[18]?.length)},i(e){i||(lt(n),i=!0)},o(e){ct(n),i=!1},d(e){e&&X(t),o[r].d()}}}function yk(e){let t,r,n=e[23],i=[];for(let t=0;t<n.length;t+=1)i[t]=Ck(nk(e,n,t));const a=e=>ct(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=Q()},m(e,n){for(let t=0;t<i.length;t+=1)i[t].m(e,n);U(e,t,n),r=!0},p(e,r){if(1655051107&r[0]|1048576&r[1]){let o;for(n=e[23],o=0;o<n.length;o+=1){const a=nk(e,n,o);i[o]?(i[o].p(a,r),lt(i[o],1)):(i[o]=Ck(a),i[o].c(),lt(i[o],1),i[o].m(t.parentNode,t))}for(ot(),o=n.length;o<i.length;o+=1)a(o);st()}},i(e){if(!r){for(let e=0;e<n.length;e+=1)lt(i[e]);r=!0}},o(e){i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)ct(i[e]);r=!1},d(e){G(i,e),e&&X(t)}}}function xk(e){let r,n,i,a,o,s;return{c(){r=Y("div"),n=Z("svg"),i=Z("use"),a=J(),o=Y("div"),s=K(e[13]),se(i,"xlink:href","#spectrum-icon-18-Table"),ie(n,"class","spectrum-Icon spectrum-Icon--sizeXXL"),ie(n,"focusable","false"),ie(o,"class","svelte-rzhjll"),ie(r,"class","placeholder-content svelte-rzhjll")},m(e,t){U(e,r,t),V(r,n),V(n,i),V(r,a),V(r,o),V(o,s)},p(e,t){8192&t[0]&&me(s,e[13])},i:t,o:t,d(e){e&&X(r)}}}function wk(e){let t;const r=e[40].placeholder,n=f(r,e,e[51],rk);return{c(){n&&n.c()},m(e,r){n&&n.m(e,r),t=!0},p(e,i){n&&n.p&&(!t||1048576&i[1])&&y(n,r,e,e[51],t?b(r,e[51],i,tk):x(e[51]),rk)},i(e){t||(lt(n,e),t=!0)},o(e){ct(n,e),t=!1},d(e){n&&n.d(e)}}}function zk(e){let t,r,n,i,a;function o(...t){return e[44](e[59],...t)}function s(...t){return e[45](e[59],...t)}function l(...t){return e[46](e[59],...t)}return r=new ek({props:{data:e[59],selected:-1!==e[1].findIndex(o),onEdit:s,allowSelectRows:e[5],allowEditRows:e[6]}}),{c(){t=Y("div"),It(r.$$.fragment),ie(t,"class","spectrum-Table-cell spectrum-Table-cell--divider spectrum-Table-cell--edit svelte-rzhjll"),ye(t,"noBorderCheckbox",!e[12])},m(e,o){U(e,t,o),Bt(r,t,null),n=!0,i||(a=ee(t,"click",l),i=!0)},p(n,i){e=n;const a={};8388608&i[0]&&(a.data=e[59]),8388610&i[0]&&(a.selected=-1!==e[1].findIndex(o)),8388608&i[0]&&(a.onEdit=s),32&i[0]&&(a.allowSelectRows=e[5]),64&i[0]&&(a.allowEditRows=e[6]),r.$set(a),4096&i[0]&&ye(t,"noBorderCheckbox",!e[12])},i(e){n||(lt(r.$$.fragment,e),n=!0)},o(e){ct(r.$$.fragment,e),n=!1},d(e){e&&X(t),Dt(r),i=!1,a()}}}function kk(e){let t;const r=e[40].default,n=f(r,e,e[51],null);return{c(){n&&n.c()},m(e,r){n&&n.m(e,r),t=!0},p(e,i){n&&n.p&&(!t||1048576&i[1])&&y(n,r,e,e[51],t?b(r,e[51],i,null):x(e[51]),null)},i(e){t||(lt(n,e),t=!0)},o(e){ct(n,e),t=!1},d(e){n&&n.d(e)}}}function Ak(e){let t,r,n,i,a,o;function s(){return e[49](e[62],e[59])}return r=new Gz({props:{customRenderers:e[9],row:e[59],schema:e[0][e[62]],value:bi(e[59],e[62]),$$slots:{default:[kk]},$$scope:{ctx:e}}}),r.$on("clickrelationship",e[47]),r.$on("buttonclick",e[48]),{c(){t=Y("div"),It(r.$$.fragment),ie(t,"class","spectrum-Table-cell svelte-rzhjll"),ie(t,"style",n=e[21][e[62]]),ye(t,"spectrum-Table-cell--divider",!!e[0][e[62]].divider)},m(e,n){U(e,t,n),Bt(r,t,null),i=!0,a||(o=ee(t,"click",s),a=!0)},p(a,o){e=a;const s={};512&o[0]&&(s.customRenderers=e[9]),8388608&o[0]&&(s.row=e[59]),262145&o[0]&&(s.schema=e[0][e[62]]),8650752&o[0]&&(s.value=bi(e[59],e[62])),1048576&o[1]&&(s.$$scope={dirty:o,ctx:e}),r.$set(s),(!i||2359296&o[0]&&n!==(n=e[21][e[62]]))&&ie(t,"style",n),262145&o[0]&&ye(t,"spectrum-Table-cell--divider",!!e[0][e[62]].divider)},i(e){i||(lt(r.$$.fragment,e),i=!0)},o(e){ct(r.$$.fragment,e),i=!1},d(e){e&&X(t),Dt(r),a=!1,o()}}}function Ck(e){let t,r,n,i,a=e[17]&&zk(e),o=e[18],s=[];for(let t=0;t<o.length;t+=1)s[t]=Ak(ik(e,o,t));const l=e=>ct(s[e],1,1,(()=>{s[e]=null}));return{c(){t=Y("div"),a&&a.c(),r=J();for(let e=0;e<s.length;e+=1)s[e].c();n=J(),ie(t,"class","spectrum-Table-row svelte-rzhjll"),ye(t,"clickable",e[8])},m(e,o){U(e,t,o),a&&a.m(t,null),V(t,r);for(let e=0;e<s.length;e+=1)s[e].m(t,null);V(t,n),i=!0},p(e,i){if(e[17]?a?(a.p(e,i),131072&i[0]&<(a,1)):(a=zk(e),a.c(),lt(a,1),a.m(t,r)):a&&(ot(),ct(a,1,1,(()=>{a=null})),st()),1118044673&i[0]|1048576&i[1]){let r;for(o=e[18],r=0;r<o.length;r+=1){const a=ik(e,o,r);s[r]?(s[r].p(a,i),lt(s[r],1)):(s[r]=Ak(a),s[r].c(),lt(s[r],1),s[r].m(t,n))}for(ot(),r=o.length;r<s.length;r+=1)l(r);st()}256&i[0]&&ye(t,"clickable",e[8])},i(e){if(!i){lt(a);for(let e=0;e<o.length;e+=1)lt(s[e]);i=!0}},o(e){ct(a),s=s.filter(Boolean);for(let e=0;e<s.length;e+=1)ct(s[e]);i=!1},d(e){e&&X(t),a&&a.d(),G(s,e)}}}function Sk(e){let t,r,n,i,a,o;const s=[ck,lk],l=[];function c(e,t){return e[4]?0:1}return r=c(e),n=l[r]=s[r](e),{c(){t=Y("div"),n.c(),ie(t,"class","wrapper svelte-rzhjll"),ie(t,"style",i=`--row-height: ${e[19]}px; --header-height: ${Mk}px;`),Ye((()=>e[50].call(t))),ye(t,"wrapper--quiet",e[3]),ye(t,"wrapper--compact",e[10])},m(n,i){U(n,t,i),l[r].m(t,null),a=be(t,e[50].bind(t)),o=!0},p(e,a){let u=r;r=c(e),r===u?l[r].p(e,a):(ot(),ct(l[u],1,1,(()=>{l[u]=null})),st(),n=l[r],n?n.p(e,a):(n=l[r]=s[r](e),n.c()),lt(n,1),n.m(t,null)),(!o||524288&a[0]&&i!==(i=`--row-height: ${e[19]}px; --header-height: ${Mk}px;`))&&ie(t,"style",i),8&a[0]&&ye(t,"wrapper--quiet",e[3]),1024&a[0]&&ye(t,"wrapper--compact",e[10])},i(e){o||(lt(n),o=!0)},o(e){ct(n),o=!1},d(e){e&&X(t),l[r].d(),a()}}}function _k(e){let r,n,i=e[18]?.length,a=Sk(e);return{c(){a.c(),r=Q()},m(e,t){a.m(e,t),U(e,r,t),n=!0},p(e,n){262144&n[0]&&c(i,i=e[18]?.length)?(ot(),ct(a,1,1,t),st(),a=Sk(e),a.c(),lt(a,1),a.m(r.parentNode,r)):a.p(e,n)},i(e){n||(lt(a),n=!0)},o(e){ct(a),n=!1},d(e){e&&X(r),a.d(e)}}}const Mk=36;function Tk(e,t,r){let n,i,a,o,s,l,c,u,p,d,{$$slots:h={},$$scope:m}=t,{data:g=[]}=t,{schema:f={}}=t,{showAutoColumns:v=!1}=t,{rowCount:b=0}=t,{quiet:y=!1}=t,{loading:x=!1}=t,{allowSelectRows:w}=t,{allowEditRows:z=!0}=t,{allowEditColumns:k=!0}=t,{allowClickRows:A=!0}=t,{selectedRows:C=[]}=t,{customRenderers:S=[]}=t,{disableSorting:_=!1}=t,{autoSortColumns:M=!0}=t,{compact:T=!1}=t,{customPlaceholder:$=!1}=t,{showHeaderBorder:L=!0}=t,{placeholderText:E="No rows found"}=t;const I=De();let B,D,H=0,O=!1,P=!1;const R=e=>{!1!==e.sortable&&(e.name===B?r(15,D="Descending"===D?"Ascending":"Descending"):(r(14,B=e.name),r(15,D="Descending")),I("sort",{column:B,order:D}))},V=e=>{let t=e?.displayName;return e&&void 0===t&&(t=e.name),t||""},N=(e,t)=>{e.stopPropagation(),I("editcolumn",t)},F=(e,t)=>{e.stopPropagation(),I("editrow",zi(t))},j=e=>{w&&(C.some((t=>t._id===e._id))?r(1,C=C.filter((t=>t._id!==e._id))):r(1,C=[...C,e]))};return e.$$set=e=>{"data"in e&&r(32,g=e.data),"schema"in e&&r(0,f=e.schema),"showAutoColumns"in e&&r(33,v=e.showAutoColumns),"rowCount"in e&&r(2,b=e.rowCount),"quiet"in e&&r(3,y=e.quiet),"loading"in e&&r(4,x=e.loading),"allowSelectRows"in e&&r(5,w=e.allowSelectRows),"allowEditRows"in e&&r(6,z=e.allowEditRows),"allowEditColumns"in e&&r(7,k=e.allowEditColumns),"allowClickRows"in e&&r(8,A=e.allowClickRows),"selectedRows"in e&&r(1,C=e.selectedRows),"customRenderers"in e&&r(9,S=e.customRenderers),"disableSorting"in e&&r(34,_=e.disableSorting),"autoSortColumns"in e&&r(35,M=e.autoSortColumns),"compact"in e&&r(10,T=e.compact),"customPlaceholder"in e&&r(11,$=e.customPlaceholder),"showHeaderBorder"in e&&r(12,L=e.showHeaderBorder),"placeholderText"in e&&r(13,E=e.placeholderText),"$$scope"in e&&r(51,m=e.$$scope)},e.$$.update=()=>{if(1024&e.$$.dirty[0]&&r(19,n=T?46:55),1&e.$$.dirty[0]&&r(0,f=(e=>{let t={};return Object.entries(e||{}).forEach((([e,r])=>{t[e]="string"==typeof r?{type:r,name:e}:{...r,name:e};const n=t[e].width;null!=n&&`${n}`.trim().match(/^[0-9]+$/)&&delete t[e].width})),t})(f)),16&e.$$.dirty[0]&&(x||r(36,O=!0)),1&e.$$.dirty[0]|20&e.$$.dirty[1]&&r(18,i=((e,t,r)=>{let n=[],i=[];return Object.entries(e||{}).forEach((([e,a])=>{e&&a&&(r&&a?.autocolumn?t&&i.push(a):n.push(a))})),n.sort(((e,t)=>{if(e.divider)return e;if(t.divider)return t;const r=e.order||Number.MAX_SAFE_INTEGER,n=t.order||Number.MAX_SAFE_INTEGER,i=V(e),a=V(t);return r!==n?r<n?e:t:i<a?e:t})).concat(i).map((e=>e.name))})(f,v,M)),262144&e.$$.dirty[0]|2&e.$$.dirty[1]&&r(37,a=i?.length&&g||[]),64&e.$$.dirty[1]&&r(38,o=a?.length||0),589828&e.$$.dirty[0]|96&e.$$.dirty[1]&&r(39,s=((e,t,r,n,i)=>e?n?Math.min(r,n):Math.min(r,Math.ceil(t/i)):n||0)(O,H,a.length,b,n)),524308&e.$$.dirty[0]|384&e.$$.dirty[1]&&r(24,l=((e,t,r,n,i)=>i?`height: ${Mk+e*n}px;`:!t||!e||r<=t?"":`height: ${Mk+e*n}px;`)(s,b,o,n,x)),49152&e.$$.dirty[0]|64&e.$$.dirty[1]&&r(23,c=((e,t,r)=>t&&r&&!_?e.slice().sort(((e,n)=>{const i=e[t],a=n[t];return"Descending"===r?i>a?-1:1:i>a?1:-1})):e)(a,B,D)),96&e.$$.dirty[0]&&r(17,p=z||w),393217&e.$$.dirty[0]&&r(22,u=((e,t,r)=>{let n="grid-template-columns:";return r&&(n+=" auto"),e?.forEach((e=>{const r=t[e];r.width&&"string"==typeof r.width?n+=` ${r.width}`:n+=" minmax(auto, 1fr)"})),n+=";",n})(i,f,p)),1&e.$$.dirty[0]&&r(21,d=(e=>{let t={};return Object.keys(e||{}).forEach((r=>{t[r]="",e[r].color&&(t[r]+=`color: ${e[r].color};`),e[r].background&&(t[r]+=`background-color: ${e[r].background};`),"Center"===e[r].align&&(t[r]+="justify-content: center; text-align: center;"),"Right"===e[r].align&&(t[r]+="justify-content: flex-end; text-align: right;"),e[r].borderLeft&&(t[r]+="border-left: 1px solid var(--spectrum-global-color-gray-200);"),e[r].borderLeft&&(t[r]+="border-right: 1px solid var(--spectrum-global-color-gray-200);"),e[r].minWidth&&(t[r]+=`min-width: ${e[r].minWidth};`)})),t})(f)),2&e.$$.dirty[0]|64&e.$$.dirty[1]){0===a.filter((e=>C.some((t=>e._id===t._id)))).length&&r(20,P=!1)}},[f,C,b,y,x,w,z,k,A,S,T,$,L,E,B,D,H,p,i,n,P,d,u,c,l,I,R,V,N,F,j,e=>{!!e.detail?a.forEach((e=>{-1===C.findIndex((t=>t._id===e._id))&&C.push(e)})):r(1,C=C.filter((e=>a.every((t=>t._id!==e._id)))))},g,v,_,M,O,a,o,s,h,function(e){P=e,r(20,P),r(37,a),r(1,C),r(18,i),r(32,g),r(0,f),r(33,v),r(35,M)},(e,t)=>N(t,e),e=>R(f[e]),(e,t)=>t._id===e._id,(e,t)=>F(t,e),(e,t)=>{j(e),t.stopPropagation()},function(t){Ve.call(this,e,t)},function(t){Ve.call(this,e,t)},(e,t)=>{f[e]?.preventSelectRow||(I("click",t),j(t))},function(){H=this.offsetHeight,r(16,H)},m]}class $k extends Ot{constructor(e){super(),Ht(this,e,Tk,_k,c,{data:32,schema:0,showAutoColumns:33,rowCount:2,quiet:3,loading:4,allowSelectRows:5,allowEditRows:6,allowEditColumns:7,allowClickRows:8,selectedRows:1,customRenderers:9,disableSorting:34,autoSortColumns:35,compact:10,customPlaceholder:11,showHeaderBorder:12,placeholderText:13},null,[-1,-1,-1])}}Gt('.spectrum-Tabs--sizeS {\n --spectrum-tabs-quiet-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-s-quiet-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-quiet-textonly-divider-background-color: var(--spectrum-tabs-s-quiet-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-quiet));\n --spectrum-tabs-quiet-textonly-tabitem-icon-gap: var(--spectrum-tabs-s-quiet-textonly-tabitem-icon-gap, var(--spectrum-global-dimension-size-85));\n --spectrum-tabs-quiet-textonly-tabitem-focus-ring-padding-x: var(--spectrum-tabs-s-quiet-textonly-tabitem-focus-ring-padding-x, var(--spectrum-global-dimension-size-85));\n --spectrum-tabs-quiet-textonly-tabitem-height: var(--spectrum-tabs-s-quiet-textonly-tabitem-height, var(--spectrum-global-dimension-size-500));\n --spectrum-tabs-quiet-textonly-divider-size: var(--spectrum-tabs-s-quiet-textonly-divider-size, var(--spectrum-alias-border-size-thick));\n --spectrum-tabs-emphasized-texticon-tabitem-icon-color-selected: var(--spectrum-tabs-s-emphasized-texticon-tabitem-icon-color-selected, var(--spectrum-alias-tabitem-text-color-emphasized-selected-default));\n --spectrum-tabs-emphasized-texticon-tabitem-text-color-selected: var(--spectrum-tabs-s-emphasized-texticon-tabitem-text-color-selected, var(--spectrum-alias-tabitem-text-color-emphasized-selected-default));\n --spectrum-tabs-emphasized-texticon-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-s-emphasized-texticon-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-selection-indicator-color-emphasized));\n --spectrum-tabs-emphasized-textonly-divider-background-color: var(--spectrum-tabs-s-emphasized-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-texticon-tabitem-text-size: var(--spectrum-tabs-s-texticon-tabitem-text-size, var(--spectrum-global-dimension-font-size-75));\n --spectrum-tabs-texticon-tabitem-selection-indicator-animation-duration: var(--spectrum-tabs-s-texticon-tabitem-selection-indicator-animation-duration, var(--spectrum-global-animation-duration-100));\n --spectrum-tabs-texticon-tabitem-selection-indicator-animation-ease: var(--spectrum-tabs-s-texticon-tabitem-selection-indicator-animation-ease, var(--spectrum-global-animation-ease-in-out));\n --spectrum-tabs-textonly-tabitem-icon-color-selected: var(--spectrum-tabs-s-textonly-tabitem-icon-color-selected, var(--spectrum-alias-tabitem-icon-color-selected));\n --spectrum-tabs-textonly-tabitem-text-color-selected: var(--spectrum-tabs-s-textonly-tabitem-text-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-s-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-textonly-tabitem-icon-color-selected-key-focus: var(--spectrum-tabs-s-textonly-tabitem-icon-color-selected-key-focus, var(--spectrum-alias-tabitem-icon-color-selected));\n --spectrum-tabs-textonly-tabitem-text-color-selected-key-focus: var(--spectrum-tabs-s-textonly-tabitem-text-color-selected-key-focus, var(--spectrum-alias-tabitem-text-color-selected-key-focus));\n --spectrum-tabs-textonly-tabitem-icon-color-disabled: var(--spectrum-tabs-s-textonly-tabitem-icon-color-disabled, var(--spectrum-alias-tabitem-icon-color-disabled));\n --spectrum-tabs-textonly-tabitem-text-color-disabled: var(--spectrum-tabs-s-textonly-tabitem-text-color-disabled, var(--spectrum-alias-text-color-disabled));\n --spectrum-tabs-textonly-tabitem-icon-color: var(--spectrum-tabs-s-textonly-tabitem-icon-color, var(--spectrum-alias-tabitem-icon-color-default));\n --spectrum-tabs-textonly-tabitem-text-color: var(--spectrum-tabs-s-textonly-tabitem-text-color, var(--spectrum-alias-tabitem-text-color-default));\n --spectrum-tabs-textonly-tabitem-icon-color-hover: var(--spectrum-tabs-s-textonly-tabitem-icon-color-hover, var(--spectrum-alias-tabitem-icon-color-hover));\n --spectrum-tabs-textonly-tabitem-text-color-hover: var(--spectrum-tabs-s-textonly-tabitem-text-color-hover, var(--spectrum-alias-tabitem-text-color-hover));\n --spectrum-tabs-textonly-tabitem-focus-ring-border-color-key-focus: var(--spectrum-tabs-s-textonly-tabitem-focus-ring-border-color-key-focus, var(--spectrum-alias-focus-ring-color));\n --spectrum-tabs-textonly-divider-background-color: var(--spectrum-tabs-s-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-textonly-tabitem-text-font-weight: var(--spectrum-tabs-s-textonly-tabitem-text-font-weight, var(--spectrum-alias-body-text-font-weight));\n --spectrum-tabs-textonly-tabitem-focus-ring-size: var(--spectrum-tabs-s-textonly-tabitem-focus-ring-size, var(--spectrum-alias-focus-ring-size));\n --spectrum-tabs-textonly-tabitem-focus-ring-height: var(--spectrum-tabs-s-textonly-tabitem-focus-ring-height, var(--spectrum-global-dimension-size-300));\n --spectrum-tabs-textonly-tabitem-focus-ring-padding-x: var(--spectrum-tabs-s-textonly-tabitem-focus-ring-padding-x, var(--spectrum-global-dimension-size-85));\n --spectrum-tabs-textonly-tabitem-focus-ring-border-radius: var(--spectrum-tabs-s-textonly-tabitem-focus-ring-border-radius, var(--spectrum-alias-border-radius-regular));\n --spectrum-tabs-textonly-tabitem-margin-right: var(--spectrum-tabs-s-textonly-tabitem-margin-right, var(--spectrum-global-dimension-size-300));\n --spectrum-tabs-textonly-divider-border-radius: var(--spectrum-tabs-s-textonly-divider-border-radius, var(--spectrum-global-dimension-static-size-10));\n --spectrum-tabs-vertical-quiet-textonly-divider-background-color: var(--spectrum-tabs-s-vertical-quiet-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-quiet));\n --spectrum-tabs-vertical-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-s-vertical-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-vertical-textonly-divider-background-color: var(--spectrum-tabs-s-vertical-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-vertical-textonly-tabitem-height: var(--spectrum-tabs-s-vertical-textonly-tabitem-height, var(--spectrum-global-dimension-size-450));\n --spectrum-tabs-vertical-textonly-tabitem-gap: var(--spectrum-tabs-s-vertical-textonly-tabitem-gap, var(--spectrum-global-dimension-size-85));\n --spectrum-tabs-compact-textonly-divider-size: var(--spectrum-tabs-s-compact-textonly-divider-size, var(--spectrum-alias-border-size-thick));\n --spectrum-tabs-compact-textonly-height: var(--spectrum-tabs-s-compact-textonly-height, var(--spectrum-global-dimension-size-300));\n --spectrum-tabs-compact-vertical-textonly-tabitem-height: var(--spectrum-tabs-s-compact-vertical-textonly-tabitem-height, var(--spectrum-global-dimension-size-300));\n --spectrum-tabs-compact-vertical-textonly-tabitem-gap: var(--spectrum-tabs-s-compact-vertical-textonly-tabitem-gap, var(--spectrum-global-dimension-size-85));\n}\n\n.spectrum-Tabs--sizeM {\n --spectrum-tabs-quiet-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-m-quiet-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-quiet-textonly-divider-background-color: var(--spectrum-tabs-m-quiet-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-quiet));\n --spectrum-tabs-quiet-textonly-tabitem-icon-gap: var(--spectrum-tabs-m-quiet-textonly-tabitem-icon-gap, var(--spectrum-global-dimension-size-100));\n --spectrum-tabs-quiet-textonly-tabitem-focus-ring-padding-x: var(--spectrum-tabs-m-quiet-textonly-tabitem-focus-ring-padding-x, var(--spectrum-global-dimension-size-100));\n --spectrum-tabs-quiet-textonly-tabitem-height: var(--spectrum-tabs-m-quiet-textonly-tabitem-height, var(--spectrum-global-dimension-size-600));\n --spectrum-tabs-quiet-textonly-divider-size: var(--spectrum-tabs-m-quiet-textonly-divider-size, var(--spectrum-alias-border-size-thick));\n --spectrum-tabs-emphasized-texticon-tabitem-icon-color-selected: var(--spectrum-tabs-m-emphasized-texticon-tabitem-icon-color-selected, var(--spectrum-alias-tabitem-text-color-emphasized-selected-default));\n --spectrum-tabs-emphasized-texticon-tabitem-text-color-selected: var(--spectrum-tabs-m-emphasized-texticon-tabitem-text-color-selected, var(--spectrum-alias-tabitem-text-color-emphasized-selected-default));\n --spectrum-tabs-emphasized-texticon-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-m-emphasized-texticon-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-selection-indicator-color-emphasized));\n --spectrum-tabs-emphasized-textonly-divider-background-color: var(--spectrum-tabs-m-emphasized-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-texticon-tabitem-text-size: var(--spectrum-tabs-m-texticon-tabitem-text-size, var(--spectrum-global-dimension-font-size-100));\n --spectrum-tabs-texticon-tabitem-selection-indicator-animation-duration: var(--spectrum-tabs-m-texticon-tabitem-selection-indicator-animation-duration, var(--spectrum-global-animation-duration-100));\n --spectrum-tabs-texticon-tabitem-selection-indicator-animation-ease: var(--spectrum-tabs-m-texticon-tabitem-selection-indicator-animation-ease, var(--spectrum-global-animation-ease-in-out));\n --spectrum-tabs-textonly-tabitem-icon-color-selected: var(--spectrum-tabs-m-textonly-tabitem-icon-color-selected, var(--spectrum-alias-tabitem-icon-color-selected));\n --spectrum-tabs-textonly-tabitem-text-color-selected: var(--spectrum-tabs-m-textonly-tabitem-text-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-m-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-textonly-tabitem-icon-color-selected-key-focus: var(--spectrum-tabs-m-textonly-tabitem-icon-color-selected-key-focus, var(--spectrum-alias-tabitem-icon-color-selected));\n --spectrum-tabs-textonly-tabitem-text-color-selected-key-focus: var(--spectrum-tabs-m-textonly-tabitem-text-color-selected-key-focus, var(--spectrum-alias-tabitem-text-color-selected-key-focus));\n --spectrum-tabs-textonly-tabitem-icon-color-disabled: var(--spectrum-tabs-m-textonly-tabitem-icon-color-disabled, var(--spectrum-alias-tabitem-icon-color-disabled));\n --spectrum-tabs-textonly-tabitem-text-color-disabled: var(--spectrum-tabs-m-textonly-tabitem-text-color-disabled, var(--spectrum-alias-text-color-disabled));\n --spectrum-tabs-textonly-tabitem-icon-color: var(--spectrum-tabs-m-textonly-tabitem-icon-color, var(--spectrum-alias-tabitem-icon-color-default));\n --spectrum-tabs-textonly-tabitem-text-color: var(--spectrum-tabs-m-textonly-tabitem-text-color, var(--spectrum-alias-tabitem-text-color-default));\n --spectrum-tabs-textonly-tabitem-icon-color-hover: var(--spectrum-tabs-m-textonly-tabitem-icon-color-hover, var(--spectrum-alias-tabitem-icon-color-hover));\n --spectrum-tabs-textonly-tabitem-text-color-hover: var(--spectrum-tabs-m-textonly-tabitem-text-color-hover, var(--spectrum-alias-tabitem-text-color-hover));\n --spectrum-tabs-textonly-tabitem-focus-ring-border-color-key-focus: var(--spectrum-tabs-m-textonly-tabitem-focus-ring-border-color-key-focus, var(--spectrum-alias-focus-ring-color));\n --spectrum-tabs-textonly-divider-background-color: var(--spectrum-tabs-m-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-textonly-tabitem-text-font-weight: var(--spectrum-tabs-m-textonly-tabitem-text-font-weight, var(--spectrum-alias-body-text-font-weight));\n --spectrum-tabs-textonly-tabitem-focus-ring-size: var(--spectrum-tabs-m-textonly-tabitem-focus-ring-size, var(--spectrum-alias-focus-ring-size));\n --spectrum-tabs-textonly-tabitem-focus-ring-height: var(--spectrum-tabs-m-textonly-tabitem-focus-ring-height, var(--spectrum-global-dimension-size-400));\n --spectrum-tabs-textonly-tabitem-focus-ring-padding-x: var(--spectrum-tabs-m-textonly-tabitem-focus-ring-padding-x, var(--spectrum-global-dimension-size-100));\n --spectrum-tabs-textonly-tabitem-focus-ring-border-radius: var(--spectrum-tabs-m-textonly-tabitem-focus-ring-border-radius, var(--spectrum-alias-border-radius-regular));\n --spectrum-tabs-textonly-tabitem-margin-right: var(--spectrum-tabs-m-textonly-tabitem-margin-right, var(--spectrum-global-dimension-size-300));\n --spectrum-tabs-textonly-divider-border-radius: var(--spectrum-tabs-m-textonly-divider-border-radius, var(--spectrum-global-dimension-static-size-10));\n --spectrum-tabs-vertical-quiet-textonly-divider-background-color: var(--spectrum-tabs-m-vertical-quiet-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-quiet));\n --spectrum-tabs-vertical-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-m-vertical-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-vertical-textonly-divider-background-color: var(--spectrum-tabs-m-vertical-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-vertical-textonly-tabitem-height: var(--spectrum-tabs-m-vertical-textonly-tabitem-height, var(--spectrum-global-dimension-size-550));\n --spectrum-tabs-vertical-textonly-tabitem-gap: var(--spectrum-tabs-m-vertical-textonly-tabitem-gap, var(--spectrum-global-dimension-size-100));\n --spectrum-tabs-compact-textonly-divider-size: var(--spectrum-tabs-m-compact-textonly-divider-size, var(--spectrum-alias-border-size-thick));\n --spectrum-tabs-compact-textonly-height: var(--spectrum-tabs-m-compact-textonly-height, var(--spectrum-global-dimension-size-400));\n --spectrum-tabs-compact-vertical-textonly-tabitem-height: var(--spectrum-tabs-m-compact-vertical-textonly-tabitem-height, var(--spectrum-global-dimension-size-400));\n --spectrum-tabs-compact-vertical-textonly-tabitem-gap: var(--spectrum-tabs-m-compact-vertical-textonly-tabitem-gap, var(--spectrum-global-dimension-size-100));\n}\n\n.spectrum-Tabs--sizeL {\n --spectrum-tabs-quiet-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-l-quiet-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-quiet-textonly-divider-background-color: var(--spectrum-tabs-l-quiet-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-quiet));\n --spectrum-tabs-quiet-textonly-tabitem-icon-gap: var(--spectrum-tabs-l-quiet-textonly-tabitem-icon-gap, var(--spectrum-global-dimension-size-115));\n --spectrum-tabs-quiet-textonly-tabitem-focus-ring-padding-x: var(--spectrum-tabs-l-quiet-textonly-tabitem-focus-ring-padding-x, var(--spectrum-global-dimension-size-115));\n --spectrum-tabs-quiet-textonly-tabitem-height: var(--spectrum-tabs-l-quiet-textonly-tabitem-height, var(--spectrum-global-dimension-size-700));\n --spectrum-tabs-quiet-textonly-divider-size: var(--spectrum-tabs-l-quiet-textonly-divider-size, var(--spectrum-alias-border-size-thick));\n --spectrum-tabs-emphasized-texticon-tabitem-icon-color-selected: var(--spectrum-tabs-l-emphasized-texticon-tabitem-icon-color-selected, var(--spectrum-alias-tabitem-text-color-emphasized-selected-default));\n --spectrum-tabs-emphasized-texticon-tabitem-text-color-selected: var(--spectrum-tabs-l-emphasized-texticon-tabitem-text-color-selected, var(--spectrum-alias-tabitem-text-color-emphasized-selected-default));\n --spectrum-tabs-emphasized-texticon-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-l-emphasized-texticon-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-selection-indicator-color-emphasized));\n --spectrum-tabs-emphasized-textonly-divider-background-color: var(--spectrum-tabs-l-emphasized-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-texticon-tabitem-text-size: var(--spectrum-tabs-l-texticon-tabitem-text-size, var(--spectrum-global-dimension-font-size-200));\n --spectrum-tabs-texticon-tabitem-selection-indicator-animation-duration: var(--spectrum-tabs-l-texticon-tabitem-selection-indicator-animation-duration, var(--spectrum-global-animation-duration-100));\n --spectrum-tabs-texticon-tabitem-selection-indicator-animation-ease: var(--spectrum-tabs-l-texticon-tabitem-selection-indicator-animation-ease, var(--spectrum-global-animation-ease-in-out));\n --spectrum-tabs-textonly-tabitem-icon-color-selected: var(--spectrum-tabs-l-textonly-tabitem-icon-color-selected, var(--spectrum-alias-tabitem-icon-color-selected));\n --spectrum-tabs-textonly-tabitem-text-color-selected: var(--spectrum-tabs-l-textonly-tabitem-text-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-l-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-textonly-tabitem-icon-color-selected-key-focus: var(--spectrum-tabs-l-textonly-tabitem-icon-color-selected-key-focus, var(--spectrum-alias-tabitem-icon-color-selected));\n --spectrum-tabs-textonly-tabitem-text-color-selected-key-focus: var(--spectrum-tabs-l-textonly-tabitem-text-color-selected-key-focus, var(--spectrum-alias-tabitem-text-color-selected-key-focus));\n --spectrum-tabs-textonly-tabitem-icon-color-disabled: var(--spectrum-tabs-l-textonly-tabitem-icon-color-disabled, var(--spectrum-alias-tabitem-icon-color-disabled));\n --spectrum-tabs-textonly-tabitem-text-color-disabled: var(--spectrum-tabs-l-textonly-tabitem-text-color-disabled, var(--spectrum-alias-text-color-disabled));\n --spectrum-tabs-textonly-tabitem-icon-color: var(--spectrum-tabs-l-textonly-tabitem-icon-color, var(--spectrum-alias-tabitem-icon-color-default));\n --spectrum-tabs-textonly-tabitem-text-color: var(--spectrum-tabs-l-textonly-tabitem-text-color, var(--spectrum-alias-tabitem-text-color-default));\n --spectrum-tabs-textonly-tabitem-icon-color-hover: var(--spectrum-tabs-l-textonly-tabitem-icon-color-hover, var(--spectrum-alias-tabitem-icon-color-hover));\n --spectrum-tabs-textonly-tabitem-text-color-hover: var(--spectrum-tabs-l-textonly-tabitem-text-color-hover, var(--spectrum-alias-tabitem-text-color-hover));\n --spectrum-tabs-textonly-tabitem-focus-ring-border-color-key-focus: var(--spectrum-tabs-l-textonly-tabitem-focus-ring-border-color-key-focus, var(--spectrum-alias-focus-ring-color));\n --spectrum-tabs-textonly-divider-background-color: var(--spectrum-tabs-l-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-textonly-tabitem-text-font-weight: var(--spectrum-tabs-l-textonly-tabitem-text-font-weight, var(--spectrum-alias-body-text-font-weight));\n --spectrum-tabs-textonly-tabitem-focus-ring-size: var(--spectrum-tabs-l-textonly-tabitem-focus-ring-size, var(--spectrum-alias-focus-ring-size));\n --spectrum-tabs-textonly-tabitem-focus-ring-height: var(--spectrum-tabs-l-textonly-tabitem-focus-ring-height, var(--spectrum-global-dimension-size-500));\n --spectrum-tabs-textonly-tabitem-focus-ring-padding-x: var(--spectrum-tabs-l-textonly-tabitem-focus-ring-padding-x, var(--spectrum-global-dimension-size-115));\n --spectrum-tabs-textonly-tabitem-focus-ring-border-radius: var(--spectrum-tabs-l-textonly-tabitem-focus-ring-border-radius, var(--spectrum-alias-border-radius-regular));\n --spectrum-tabs-textonly-tabitem-margin-right: var(--spectrum-tabs-l-textonly-tabitem-margin-right, var(--spectrum-global-dimension-size-300));\n --spectrum-tabs-textonly-divider-border-radius: var(--spectrum-tabs-l-textonly-divider-border-radius, var(--spectrum-global-dimension-static-size-10));\n --spectrum-tabs-vertical-quiet-textonly-divider-background-color: var(--spectrum-tabs-l-vertical-quiet-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-quiet));\n --spectrum-tabs-vertical-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-l-vertical-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-vertical-textonly-divider-background-color: var(--spectrum-tabs-l-vertical-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-vertical-textonly-tabitem-height: var(--spectrum-tabs-l-vertical-textonly-tabitem-height, var(--spectrum-global-dimension-size-650));\n --spectrum-tabs-vertical-textonly-tabitem-gap: var(--spectrum-tabs-l-vertical-textonly-tabitem-gap, var(--spectrum-global-dimension-size-115));\n --spectrum-tabs-compact-textonly-divider-size: var(--spectrum-tabs-l-compact-textonly-divider-size, var(--spectrum-alias-border-size-thick));\n --spectrum-tabs-compact-textonly-height: var(--spectrum-tabs-l-compact-textonly-height, var(--spectrum-global-dimension-size-500));\n --spectrum-tabs-compact-vertical-textonly-tabitem-height: var(--spectrum-tabs-l-compact-vertical-textonly-tabitem-height, var(--spectrum-global-dimension-size-500));\n --spectrum-tabs-compact-vertical-textonly-tabitem-gap: var(--spectrum-tabs-l-compact-vertical-textonly-tabitem-gap, var(--spectrum-global-dimension-size-115));\n}\n\n.spectrum-Tabs--sizeXL {\n --spectrum-tabs-quiet-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-xl-quiet-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-quiet-textonly-divider-background-color: var(--spectrum-tabs-xl-quiet-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-quiet));\n --spectrum-tabs-quiet-textonly-tabitem-icon-gap: var(--spectrum-tabs-xl-quiet-textonly-tabitem-icon-gap, var(--spectrum-global-dimension-size-125));\n --spectrum-tabs-quiet-textonly-tabitem-focus-ring-padding-x: var(--spectrum-tabs-xl-quiet-textonly-tabitem-focus-ring-padding-x, var(--spectrum-global-dimension-size-125));\n --spectrum-tabs-quiet-textonly-tabitem-height: var(--spectrum-tabs-xl-quiet-textonly-tabitem-height, var(--spectrum-global-dimension-size-800));\n --spectrum-tabs-quiet-textonly-divider-size: var(--spectrum-tabs-xl-quiet-textonly-divider-size, var(--spectrum-alias-border-size-thick));\n --spectrum-tabs-emphasized-texticon-tabitem-icon-color-selected: var(--spectrum-tabs-xl-emphasized-texticon-tabitem-icon-color-selected, var(--spectrum-alias-tabitem-text-color-emphasized-selected-default));\n --spectrum-tabs-emphasized-texticon-tabitem-text-color-selected: var(--spectrum-tabs-xl-emphasized-texticon-tabitem-text-color-selected, var(--spectrum-alias-tabitem-text-color-emphasized-selected-default));\n --spectrum-tabs-emphasized-texticon-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-xl-emphasized-texticon-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-selection-indicator-color-emphasized));\n --spectrum-tabs-emphasized-textonly-divider-background-color: var(--spectrum-tabs-xl-emphasized-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-texticon-tabitem-text-size: var(--spectrum-tabs-xl-texticon-tabitem-text-size, var(--spectrum-global-dimension-font-size-300));\n --spectrum-tabs-texticon-tabitem-selection-indicator-animation-duration: var(--spectrum-tabs-xl-texticon-tabitem-selection-indicator-animation-duration, var(--spectrum-global-animation-duration-100));\n --spectrum-tabs-texticon-tabitem-selection-indicator-animation-ease: var(--spectrum-tabs-xl-texticon-tabitem-selection-indicator-animation-ease, var(--spectrum-global-animation-ease-in-out));\n --spectrum-tabs-textonly-tabitem-icon-color-selected: var(--spectrum-tabs-xl-textonly-tabitem-icon-color-selected, var(--spectrum-alias-tabitem-icon-color-selected));\n --spectrum-tabs-textonly-tabitem-text-color-selected: var(--spectrum-tabs-xl-textonly-tabitem-text-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-xl-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-textonly-tabitem-icon-color-selected-key-focus: var(--spectrum-tabs-xl-textonly-tabitem-icon-color-selected-key-focus, var(--spectrum-alias-tabitem-icon-color-selected));\n --spectrum-tabs-textonly-tabitem-text-color-selected-key-focus: var(--spectrum-tabs-xl-textonly-tabitem-text-color-selected-key-focus, var(--spectrum-alias-tabitem-text-color-selected-key-focus));\n --spectrum-tabs-textonly-tabitem-icon-color-disabled: var(--spectrum-tabs-xl-textonly-tabitem-icon-color-disabled, var(--spectrum-alias-tabitem-icon-color-disabled));\n --spectrum-tabs-textonly-tabitem-text-color-disabled: var(--spectrum-tabs-xl-textonly-tabitem-text-color-disabled, var(--spectrum-alias-text-color-disabled));\n --spectrum-tabs-textonly-tabitem-icon-color: var(--spectrum-tabs-xl-textonly-tabitem-icon-color, var(--spectrum-alias-tabitem-icon-color-default));\n --spectrum-tabs-textonly-tabitem-text-color: var(--spectrum-tabs-xl-textonly-tabitem-text-color, var(--spectrum-alias-tabitem-text-color-default));\n --spectrum-tabs-textonly-tabitem-icon-color-hover: var(--spectrum-tabs-xl-textonly-tabitem-icon-color-hover, var(--spectrum-alias-tabitem-icon-color-hover));\n --spectrum-tabs-textonly-tabitem-text-color-hover: var(--spectrum-tabs-xl-textonly-tabitem-text-color-hover, var(--spectrum-alias-tabitem-text-color-hover));\n --spectrum-tabs-textonly-tabitem-focus-ring-border-color-key-focus: var(--spectrum-tabs-xl-textonly-tabitem-focus-ring-border-color-key-focus, var(--spectrum-alias-focus-ring-color));\n --spectrum-tabs-textonly-divider-background-color: var(--spectrum-tabs-xl-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-textonly-tabitem-text-font-weight: var(--spectrum-tabs-xl-textonly-tabitem-text-font-weight, var(--spectrum-alias-body-text-font-weight));\n --spectrum-tabs-textonly-tabitem-focus-ring-size: var(--spectrum-tabs-xl-textonly-tabitem-focus-ring-size, var(--spectrum-alias-focus-ring-size));\n --spectrum-tabs-textonly-tabitem-focus-ring-height: var(--spectrum-tabs-xl-textonly-tabitem-focus-ring-height, var(--spectrum-global-dimension-size-600));\n --spectrum-tabs-textonly-tabitem-focus-ring-padding-x: var(--spectrum-tabs-xl-textonly-tabitem-focus-ring-padding-x, var(--spectrum-global-dimension-size-125));\n --spectrum-tabs-textonly-tabitem-focus-ring-border-radius: var(--spectrum-tabs-xl-textonly-tabitem-focus-ring-border-radius, var(--spectrum-alias-border-radius-regular));\n --spectrum-tabs-textonly-tabitem-margin-right: var(--spectrum-tabs-xl-textonly-tabitem-margin-right, var(--spectrum-global-dimension-size-300));\n --spectrum-tabs-textonly-divider-border-radius: var(--spectrum-tabs-xl-textonly-divider-border-radius, var(--spectrum-global-dimension-static-size-10));\n --spectrum-tabs-vertical-quiet-textonly-divider-background-color: var(--spectrum-tabs-xl-vertical-quiet-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-quiet));\n --spectrum-tabs-vertical-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-xl-vertical-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-vertical-textonly-divider-background-color: var(--spectrum-tabs-xl-vertical-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-vertical-textonly-tabitem-height: var(--spectrum-tabs-xl-vertical-textonly-tabitem-height, var(--spectrum-global-dimension-size-750));\n --spectrum-tabs-vertical-textonly-tabitem-gap: var(--spectrum-tabs-xl-vertical-textonly-tabitem-gap, var(--spectrum-global-dimension-size-125));\n --spectrum-tabs-compact-textonly-divider-size: var(--spectrum-tabs-xl-compact-textonly-divider-size, var(--spectrum-alias-border-size-thick));\n --spectrum-tabs-compact-textonly-height: var(--spectrum-tabs-xl-compact-textonly-height, var(--spectrum-global-dimension-size-600));\n --spectrum-tabs-compact-vertical-textonly-tabitem-height: var(--spectrum-tabs-xl-compact-vertical-textonly-tabitem-height, var(--spectrum-global-dimension-size-600));\n --spectrum-tabs-compact-vertical-textonly-tabitem-gap: var(--spectrum-tabs-xl-compact-vertical-textonly-tabitem-gap, var(--spectrum-global-dimension-size-125));\n}\n\n.spectrum-Tabs {\n --spectrum-tabs-compact-item-height: calc(var(--spectrum-tabs-compact-textonly-height) - var(--spectrum-tabs-compact-textonly-divider-size));\n}\n\n.spectrum-Tabs {\n display: -ms-flexbox;\n display: flex;\n position: relative;\n z-index: 0;\n\n margin: 0;\n padding-top: 0;\n padding-bottom: 0;\n vertical-align: top;\n}\n\n.spectrum-Tabs-item {\n position: relative;\n\n box-sizing: border-box;\n\n height: var(--spectrum-tabs-quiet-textonly-tabitem-height);\n line-height: var(--spectrum-tabs-quiet-textonly-tabitem-height);\n z-index: 1;\n\n text-decoration: none;\n white-space: nowrap;\n\n transition: color var(--spectrum-tabs-texticon-tabitem-selection-indicator-animation-duration) ease-out;\n cursor: pointer;\n outline: none;\n}\n\n.spectrum-Tabs-item.is-disabled {\n cursor: default;\n }\n\n.spectrum-Tabs-item.is-disabled .spectrum-Tabs-itemLabel {\n cursor: default;\n }\n\n.spectrum-Tabs-item .spectrum-Icon {\n height: var(--spectrum-tabs-quiet-textonly-tabitem-height);\n }\n\n[dir="ltr"] .spectrum-Tabs-item .spectrum-Icon + .spectrum-Tabs-itemLabel {\n margin-left: calc(var(--spectrum-tabs-quiet-textonly-tabitem-icon-gap) - var(--spectrum-global-dimension-size-40));\n}\n\n[dir="rtl"] .spectrum-Tabs-item .spectrum-Icon + .spectrum-Tabs-itemLabel {\n margin-right: calc(var(--spectrum-tabs-quiet-textonly-tabitem-icon-gap) - var(--spectrum-global-dimension-size-40));\n}\n\n[dir="ltr"] .spectrum-Tabs-item::before {\n\n left: calc(-1 * var(--spectrum-tabs-textonly-tabitem-focus-ring-padding-x));\n}\n\n[dir="rtl"] .spectrum-Tabs-item::before {\n\n right: calc(-1 * var(--spectrum-tabs-textonly-tabitem-focus-ring-padding-x));\n}\n\n[dir="ltr"] .spectrum-Tabs-item::before {\n right: calc(-1 * var(--spectrum-tabs-textonly-tabitem-focus-ring-padding-x));\n}\n\n[dir="rtl"] .spectrum-Tabs-item::before {\n left: calc(-1 * var(--spectrum-tabs-textonly-tabitem-focus-ring-padding-x));\n}\n\n.spectrum-Tabs-item::before {\n content: \'\';\n position: absolute;\n top: 50%;\n\n box-sizing: border-box;\n\n height: var(--spectrum-tabs-textonly-tabitem-focus-ring-height);\n margin-top: calc(var(--spectrum-tabs-textonly-tabitem-focus-ring-height) / -2);\n \n border: var(--spectrum-tabs-textonly-tabitem-focus-ring-size) solid transparent;\n border-radius: var(--spectrum-tabs-textonly-tabitem-focus-ring-border-radius);\n\n pointer-events: none;\n }\n\n.spectrum-Tabs-itemLabel {\n cursor: pointer;\n vertical-align: top;\n display: inline-block;\n\n font-size: var(--spectrum-tabs-texticon-tabitem-text-size);\n font-weight: var(--spectrum-tabs-textonly-tabitem-text-font-weight);\n text-decoration: none;\n}\n\n.spectrum-Tabs-itemLabel:empty {\n display: none;\n }\n\n[dir="ltr"] .spectrum-Tabs-selectionIndicator {\n left: 0;\n}\n\n[dir="rtl"] .spectrum-Tabs-selectionIndicator {\n right: 0;\n}\n\n.spectrum-Tabs-selectionIndicator {\n position: absolute;\n z-index: 0;\n \n transition: transform var(--spectrum-tabs-texticon-tabitem-selection-indicator-animation-duration) var(--spectrum-tabs-texticon-tabitem-selection-indicator-animation-ease);\n transform-origin: top left;\n\n border-radius: var(--spectrum-tabs-textonly-divider-border-radius);\n}\n\n.spectrum-Tabs--compact .spectrum-Tabs-item {\n height: var(--spectrum-tabs-compact-item-height);\n line-height: var(--spectrum-tabs-compact-item-height);\n }\n\n.spectrum-Tabs--compact .spectrum-Tabs-item .spectrum-Icon {\n height: var(--spectrum-tabs-compact-item-height);\n }\n\n.spectrum-Tabs--horizontal {\n -ms-flex-align: center;\n align-items: center;\n\n border-bottom: var(--spectrum-tabs-quiet-textonly-divider-size) solid;\n}\n\n.spectrum-Tabs--horizontal .spectrum-Tabs-item {\n vertical-align: top;\n }\n\n[dir="ltr"] .spectrum-Tabs--horizontal .spectrum-Tabs-item + *:not(.spectrum-Tabs-selectionIndicator) {\n margin-left: var(--spectrum-tabs-textonly-tabitem-margin-right);\n}\n\n[dir="rtl"] .spectrum-Tabs--horizontal .spectrum-Tabs-item + *:not(.spectrum-Tabs-selectionIndicator) {\n margin-right: var(--spectrum-tabs-textonly-tabitem-margin-right);\n}\n\n.spectrum-Tabs--horizontal .spectrum-Tabs-selectionIndicator {\n position: absolute;\n bottom: 0;\n height: var(--spectrum-tabs-quiet-textonly-divider-size);\n\n bottom: calc(-1 * var(--spectrum-tabs-quiet-textonly-divider-size));\n }\n\n.spectrum-Tabs--horizontal.spectrum-Tabs--compact {\n box-sizing: content-box;\n height: var(--spectrum-tabs-compact-item-height);\n -ms-flex-align: end;\n align-items: end;\n }\n\n.spectrum-Tabs--quiet {\n display: -ms-inline-flexbox;\n display: inline-flex;\n}\n\n[dir="ltr"] .spectrum-Tabs--vertical {\n border-left: var(--spectrum-tabs-quiet-textonly-divider-size) solid;\n}\n\n[dir="rtl"] .spectrum-Tabs--vertical {\n border-right: var(--spectrum-tabs-quiet-textonly-divider-size) solid;\n}\n\n.spectrum-Tabs--vertical {\n display: -ms-inline-flexbox;\n display: inline-flex;\n -ms-flex-direction: column;\n flex-direction: column;\n padding: 0;\n}\n\n[dir="ltr"] .spectrum-Tabs--vertical .spectrum-Tabs-item {\n margin-left: calc(var(--spectrum-tabs-vertical-textonly-tabitem-gap) / 2);\n}\n\n[dir="rtl"] .spectrum-Tabs--vertical .spectrum-Tabs-item {\n margin-right: calc(var(--spectrum-tabs-vertical-textonly-tabitem-gap) / 2);\n}\n\n.spectrum-Tabs--vertical .spectrum-Tabs-item {\n height: var(--spectrum-tabs-vertical-textonly-tabitem-height);\n line-height: var(--spectrum-tabs-vertical-textonly-tabitem-height);\n padding-top: 0;\n padding-bottom: 0;\n padding-left: var(--spectrum-tabs-quiet-textonly-tabitem-focus-ring-padding-x);\n padding-right: var(--spectrum-tabs-quiet-textonly-tabitem-focus-ring-padding-x);\n \n margin-bottom: var(--spectrum-tabs-vertical-textonly-tabitem-gap);\n }\n\n[dir="ltr"] .spectrum-Tabs--vertical .spectrum-Tabs-item::before {\n left: calc(-1 * var(--spectrum-tabs-textonly-tabitem-focus-ring-size));\n}\n\n[dir="rtl"] .spectrum-Tabs--vertical .spectrum-Tabs-item::before {\n right: calc(-1 * var(--spectrum-tabs-textonly-tabitem-focus-ring-size));\n}\n\n[dir="ltr"] .spectrum-Tabs--vertical .spectrum-Tabs-item::before {\n right: calc(-1 * var(--spectrum-tabs-textonly-tabitem-focus-ring-size));\n}\n\n[dir="rtl"] .spectrum-Tabs--vertical .spectrum-Tabs-item::before {\n left: calc(-1 * var(--spectrum-tabs-textonly-tabitem-focus-ring-size));\n}\n\n.spectrum-Tabs--vertical .spectrum-Icon {\n height: var(--spectrum-tabs-vertical-textonly-tabitem-height);\n line-height: var(--spectrum-tabs-vertical-textonly-tabitem-height);\n }\n\n.spectrum-Tabs--vertical.spectrum-Tabs--compact .spectrum-Tabs-item {\n height: var(--spectrum-tabs-compact-vertical-textonly-tabitem-height);\n line-height: var(--spectrum-tabs-compact-vertical-textonly-tabitem-height);\n margin-bottom: var(--spectrum-tabs-compact-vertical-textonly-tabitem-gap);\n }\n\n.spectrum-Tabs--vertical.spectrum-Tabs--compact .spectrum-Tabs-item .spectrum-Icon {\n height: var(--spectrum-tabs-compact-vertical-textonly-tabitem-height);\n }\n\n[dir="ltr"] .spectrum-Tabs--vertical .spectrum-Tabs-selectionIndicator {\n left: 0px;\n}\n\n[dir="rtl"] .spectrum-Tabs--vertical .spectrum-Tabs-selectionIndicator {\n right: 0px;\n}\n\n[dir="ltr"] .spectrum-Tabs--vertical .spectrum-Tabs-selectionIndicator {\n\n left: calc(-1 * var(--spectrum-tabs-quiet-textonly-divider-size));\n}\n\n[dir="rtl"] .spectrum-Tabs--vertical .spectrum-Tabs-selectionIndicator {\n\n right: calc(-1 * var(--spectrum-tabs-quiet-textonly-divider-size));\n}\n\n.spectrum-Tabs--vertical .spectrum-Tabs-selectionIndicator {\n position: absolute;\n width: var(--spectrum-tabs-quiet-textonly-divider-size);\n }\n\n.spectrum-Tabs {\n border-bottom-color: var(--spectrum-tabs-textonly-divider-background-color);\n}\n\n[dir="ltr"] .spectrum-Tabs--vertical {\n border-left-color: var(--spectrum-tabs-vertical-textonly-divider-background-color);\n}\n\n[dir="rtl"] .spectrum-Tabs--vertical {\n border-right-color: var(--spectrum-tabs-vertical-textonly-divider-background-color);\n}\n\n.spectrum-Tabs-selectionIndicator {\n background-color: var(--spectrum-tabs-textonly-tabitem-selection-indicator-background-color-selected);\n}\n\n.spectrum-Tabs--emphasized .spectrum-Tabs-selectionIndicator {\n background-color: var(--spectrum-tabs-emphasized-texticon-tabitem-selection-indicator-background-color-selected);\n }\n\n.spectrum-Tabs-item {\n color: var(--spectrum-tabs-textonly-tabitem-text-color);\n}\n\n.spectrum-Tabs-item .spectrum-Icon {\n color: var(--spectrum-tabs-textonly-tabitem-icon-color)\n }\n\n.spectrum-Tabs-item:hover {\n color: var(--spectrum-tabs-textonly-tabitem-text-color-hover);\n }\n\n.spectrum-Tabs-item:hover .spectrum-Icon {\n color: var(--spectrum-tabs-textonly-tabitem-icon-color-hover)\n }\n\n.spectrum-Tabs-item.is-selected {\n color: var(--spectrum-tabs-textonly-tabitem-text-color-selected);\n }\n\n.spectrum-Tabs-item.is-selected .spectrum-Icon {\n color: var(--spectrum-tabs-textonly-tabitem-icon-color-selected);\n }\n\n.spectrum-Tabs-item.focus-ring {\n color: var(--spectrum-tabs-textonly-tabitem-text-color-selected-key-focus);\n }\n\n.spectrum-Tabs-item.focus-ring::before {\n border-color: var(--spectrum-tabs-textonly-tabitem-focus-ring-border-color-key-focus);\n }\n\n.spectrum-Tabs-item.focus-ring .spectrum-Icon {\n color: var(--spectrum-tabs-textonly-tabitem-icon-color-selected-key-focus)\n }\n\n.spectrum-Tabs-item.is-disabled {\n color: var(--spectrum-tabs-textonly-tabitem-text-color-disabled);\n }\n\n.spectrum-Tabs-item.is-disabled .spectrum-Icon {\n color: var(--spectrum-tabs-textonly-tabitem-icon-color-disabled)\n }\n\n.spectrum-Tabs--emphasized .spectrum-Tabs-item.is-selected {\n color: var(--spectrum-tabs-emphasized-texticon-tabitem-text-color-selected);\n }\n\n.spectrum-Tabs--emphasized .spectrum-Tabs-item.is-selected .spectrum-Icon {\n color: var(--spectrum-tabs-emphasized-texticon-tabitem-icon-color-selected);\n }\n\n.spectrum-Tabs--quiet {\n border-bottom-color: var(--spectrum-tabs-quiet-textonly-divider-background-color);\n}\n\n.spectrum-Tabs--quiet .spectrum-Tabs-selectionIndicator {\n background-color: var(--spectrum-tabs-quiet-textonly-tabitem-selection-indicator-background-color-selected);\n }\n\n.spectrum-Tabs--quiet.spectrum-Tabs--emphasized .spectrum-Tabs-selectionIndicator {\n background-color: var(--spectrum-tabs-emphasized-texticon-tabitem-selection-indicator-background-color-selected);\n }\n\n[dir="ltr"] .spectrum-Tabs--vertical.spectrum-Tabs--quiet,[dir="ltr"] \n .spectrum-Tabs--vertical.spectrum-Tabs--compact {\n border-left-color: var(--spectrum-tabs-vertical-quiet-textonly-divider-background-color);\n}\n\n[dir="rtl"] .spectrum-Tabs--vertical.spectrum-Tabs--quiet,[dir="rtl"] \n .spectrum-Tabs--vertical.spectrum-Tabs--compact {\n border-right-color: var(--spectrum-tabs-vertical-quiet-textonly-divider-background-color);\n}\n\n.spectrum-Tabs--vertical.spectrum-Tabs--quiet .spectrum-Tabs-selectionIndicator, .spectrum-Tabs--vertical.spectrum-Tabs--compact .spectrum-Tabs-selectionIndicator {\n background-color: var(--spectrum-tabs-vertical-textonly-tabitem-selection-indicator-background-color-selected);\n }\n\n[dir="ltr"] .spectrum-Tabs--vertical.spectrum-Tabs--emphasized {\n border-left-color: var(--spectrum-tabs-emphasized-textonly-divider-background-color);\n}\n\n[dir="rtl"] .spectrum-Tabs--vertical.spectrum-Tabs--emphasized {\n border-right-color: var(--spectrum-tabs-emphasized-textonly-divider-background-color);\n}\n\n.spectrum-Tabs--vertical.spectrum-Tabs--emphasized .spectrum-Tabs-selectionIndicator {\n background-color: var(--spectrum-tabs-emphasized-texticon-tabitem-selection-indicator-background-color-selected);\n }\n\n@media (forced-colors: active) {\n .spectrum-Tabs {\n --spectrum-tabs-emphasized-texticon-tabitem-icon-color-selected: HighlightText;\n --spectrum-tabs-emphasized-texticon-tabitem-selection-indicator-background-color-selected: Highlight;\n --spectrum-tabs-emphasized-texticon-tabitem-text-color-selected: HighlightText;\n --spectrum-tabs-emphasized-textonly-divider-background-color: transparent;\n --spectrum-tabs-quiet-textonly-divider-background-color: transparent;\n --spectrum-tabs-quiet-textonly-tabitem-selection-indicator-background-color-selected: Highlight;\n --spectrum-tabs-textonly-divider-background-color: transparent;\n --spectrum-tabs-textonly-tabitem-focus-ring-border-color-key-focus: ButtonText;\n --spectrum-tabs-textonly-tabitem-icon-color-disabled: GrayText;\n --spectrum-tabs-textonly-tabitem-icon-color-hover: ButtonText;\n --spectrum-tabs-textonly-tabitem-icon-color-selected-key-focus: ButtonText;\n --spectrum-tabs-textonly-tabitem-icon-color-selected: HighlightText;\n --spectrum-tabs-textonly-tabitem-selection-indicator-background-color-selected: Highlight;\n --spectrum-tabs-textonly-tabitem-text-color-disabled: GrayText;\n --spectrum-tabs-textonly-tabitem-text-color-hover: ButtonText;\n --spectrum-tabs-textonly-tabitem-text-color-selected-key-focus: ButtonText;\n --spectrum-tabs-textonly-tabitem-text-color-selected: HighlightText;\n --spectrum-tabs-textonly-tabitem-text-color: ButtonText;\n --spectrum-tabs-vertical-quiet-textonly-divider-background-color: transparent;\n --spectrum-tabs-vertical-textonly-divider-background-color: transparent;\n --spectrum-tabs-vertical-textonly-tabitem-selection-indicator-background-color-selected: Highlight;\n forced-color-adjust: none;\n }\n .spectrum-Tabs .spectrum-Tabs-item:before {\n background-color: ButtonFace;\n }\n\n .spectrum-Tabs .spectrum-Tabs-item .spectrum-Icon {\n z-index: 1;\n position: relative;\n }\n\n .spectrum-Tabs .spectrum-Tabs-item .spectrum-Tabs-itemLabel {\n position: relative;\n z-index: 1;\n }\n\n .spectrum-Tabs .is-selected {\n color: HighlightText;\n }\n\n .spectrum-Tabs .is-selected .spectrum-Icon {\n color: HighlightText;\n }\n\n .spectrum-Tabs .is-selected:before {\n background-color: Highlight;\n color: HighlightText;\n }\n\n .spectrum-Tabs .is-selected .spectrum-Tabs-itemLabel {\n color: HighlightText;\n }\n .spectrum-Tabs.spectrum-Tabs--emphasized .spectrum-Tabs-item:before {\n background-color: ButtonFace;\n }\n\n .spectrum-Tabs.spectrum-Tabs--emphasized .spectrum-Tabs-item .spectrum-Icon {\n z-index: 1;\n position: relative;\n }\n\n .spectrum-Tabs.spectrum-Tabs--emphasized .spectrum-Tabs-item .spectrum-Tabs-itemLabel {\n position: relative;\n z-index: 1;\n }\n\n .spectrum-Tabs.spectrum-Tabs--emphasized .is-selected {\n color: HighlightText;\n }\n\n .spectrum-Tabs.spectrum-Tabs--emphasized .is-selected .spectrum-Icon {\n color: HighlightText;\n }\n\n .spectrum-Tabs.spectrum-Tabs--emphasized .is-selected:before {\n background-color: Highlight;\n color: HighlightText;\n }\n\n .spectrum-Tabs.spectrum-Tabs--emphasized .is-selected .spectrum-Tabs-itemLabel {\n color: HighlightText;\n }\n}\n');function Lk(e){let t;return{c(){t=Y("div"),ie(t,"class","spectrum-Tabs-selectionIndicator svelte-jku8bn"),fe(t,"width",e[11]),fe(t,"height",e[12]),fe(t,"left",e[10]),fe(t,"top",e[9]),ye(t,"emphasized",e[4])},m(e,r){U(e,t,r)},p(e,r){2048&r&&fe(t,"width",e[11]),4096&r&&fe(t,"height",e[12]),1024&r&&fe(t,"left",e[10]),512&r&&fe(t,"top",e[9]),16&r&&ye(t,"emphasized",e[4])},d(e){e&&X(t)}}}function Ek(e){let t,r,n,i,a,o;const s=e[19].default,l=f(s,e,e[18],null);let c=e[7].info&&Lk(e);return{c(){t=Y("div"),l&&l.c(),r=J(),c&&c.c(),i=J(),a=Y("div"),ie(t,"class",n="spectrum-Tabs spectrum-Tabs--size"+e[6]+" svelte-jku8bn"),ye(t,"spectrum-Tabs--quiet",e[3]),ye(t,"noHorizPadding",e[2]),ye(t,"onTop",e[5]),ye(t,"spectrum-Tabs--vertical",e[0]),ye(t,"spectrum-Tabs--horizontal",!e[0]),ie(a,"class","spectrum-Tabs-content spectrum-Tabs-content-"+e[13]+" svelte-jku8bn"),ye(a,"noPadding",e[1])},m(n,s){U(n,t,s),l&&l.m(t,null),V(t,r),c&&c.m(t,null),e[20](t),U(n,i,s),U(n,a,s),o=!0},p(e,[r]){l&&l.p&&(!o||262144&r)&&y(l,s,e,e[18],o?b(s,e[18],r,null):x(e[18]),null),e[7].info?c?c.p(e,r):(c=Lk(e),c.c(),c.m(t,null)):c&&(c.d(1),c=null),(!o||64&r&&n!==(n="spectrum-Tabs spectrum-Tabs--size"+e[6]+" svelte-jku8bn"))&&ie(t,"class",n),72&r&&ye(t,"spectrum-Tabs--quiet",e[3]),68&r&&ye(t,"noHorizPadding",e[2]),96&r&&ye(t,"onTop",e[5]),65&r&&ye(t,"spectrum-Tabs--vertical",e[0]),65&r&&ye(t,"spectrum-Tabs--horizontal",!e[0]),2&r&&ye(a,"noPadding",e[1])},i(e){o||(lt(l,e),o=!0)},o(e){ct(l,e),o=!1},d(r){r&&X(t),l&&l.d(r),c&&c.d(),e[20](null),r&&X(i),r&&X(a)}}}function Ik(e,t,r){let n,i,{$$slots:a={},$$scope:o}=t,{selected:s}=t,{vertical:l=!1}=t,{noPadding:c=!1}=t,{noHorizPadding:u=!1}=t,{quiet:p=!1}=t,{emphasized:d=!1}=t,{onTop:h=!1}=t,{size:m="M"}=t,{beforeSwitch:f=null}=t,v="_"+Math.random().toString(36).slice(2,9);const b=Ut({title:s,id:v,emphasized:d});let y;g(e,b,(e=>r(7,n=e))),He("tab",b);const x=De();let w,z,k,A;function C(){l?r(12,A=n.info?.height+4+"px"):r(11,k=n.info?.width+"px")}function S(){l?r(9,w=n.info?.top-y?.getBoundingClientRect().top+"px"):r(10,z=n.info?.left-y?.getBoundingClientRect().left+"px")}return Ee((()=>{C(),S()})),e.$$set=e=>{"selected"in e&&r(15,s=e.selected),"vertical"in e&&r(0,l=e.vertical),"noPadding"in e&&r(1,c=e.noPadding),"noHorizPadding"in e&&r(2,u=e.noHorizPadding),"quiet"in e&&r(3,p=e.quiet),"emphasized"in e&&r(4,d=e.emphasized),"onTop"in e&&r(5,h=e.onTop),"size"in e&&r(6,m=e.size),"beforeSwitch"in e&&r(16,f=e.beforeSwitch),"$$scope"in e&&r(18,o=e.$$scope)},e.$$.update=()=>{if(229504&e.$$.dirty){if(i!==s)r(17,i=s),x("select",i);else if(n.title!==i)if("function"==typeof f){f(n.title)&&(r(17,i=n.title),r(15,s=n.title),x("select",i))}else r(17,i=n.title),r(15,s=n.title),x("select",i);n.title!==i&&b.update((e=>(e.title=i,e)))}128&e.$$.dirty&&C(),128&e.$$.dirty&&S()},[l,c,u,p,d,h,m,n,y,w,z,k,A,v,b,s,f,i,o,a,function(e){Fe[e?"unshift":"push"]((()=>{y=e,r(8,y)}))}]}Gt(".spectrum-Tabs--quiet.svelte-jku8bn.svelte-jku8bn{border-bottom:none !important}.spectrum-Tabs.svelte-jku8bn.svelte-jku8bn{padding-left:var(--spacing-xl);padding-right:var(--spacing-xl);position:relative;border-bottom-color:var(--spectrum-global-color-gray-200)}.spectrum-Tabs-content.svelte-jku8bn.svelte-jku8bn{margin-top:var(--spectrum-global-dimension-static-size-150)}.spectrum-Tabs-selectionIndicator.svelte-jku8bn.svelte-jku8bn{transition:all 200ms;background-color:var(--spectrum-global-color-gray-900)}.spectrum-Tabs-selectionIndicator.emphasized.svelte-jku8bn.svelte-jku8bn{background-color:var(--spectrum-global-color-blue-400)}.noHorizPadding.svelte-jku8bn.svelte-jku8bn{padding:0}.noPadding.svelte-jku8bn.svelte-jku8bn{margin:0}.onTop.svelte-jku8bn.svelte-jku8bn{z-index:100}");class Bk extends Ot{constructor(e){super(),Ht(this,e,Ik,Ek,c,{selected:15,vertical:0,noPadding:1,noHorizPadding:2,quiet:3,emphasized:4,onTop:5,size:6,beforeSwitch:16})}}function Dk(e){let t,r,n;return{c(){t=Z("svg"),r=Z("use"),se(r,"xlink:href",n="#spectrum-icon-18-"+e[1]),ie(t,"class","spectrum-Icon spectrum-Icon--sizeM"),ie(t,"focusable","false"),ie(t,"aria-hidden","true"),ie(t,"aria-label","Folder")},m(e,n){U(e,t,n),V(t,r)},p(e,t){2&t&&n!==(n="#spectrum-icon-18-"+e[1])&&se(r,"xlink:href",n)},d(e){e&&X(t)}}}function Hk(e){let t,r;return t=new Wr({props:{target:".spectrum-Tabs-content-"+e[4].id,$$slots:{default:[Ok]},$$scope:{ctx:e}}}),{c(){It(t.$$.fragment)},m(e,n){Bt(t,e,n),r=!0},p(e,r){const n={};16&r&&(n.target=".spectrum-Tabs-content-"+e[4].id),512&r&&(n.$$scope={dirty:r,ctx:e}),t.$set(n)},i(e){r||(lt(t.$$.fragment,e),r=!0)},o(e){ct(t.$$.fragment,e),r=!1},d(e){Dt(t,e)}}}function Ok(e){let t;const r=e[7].default,n=f(r,e,e[9],null);return{c(){n&&n.c()},m(e,r){n&&n.m(e,r),t=!0},p(e,i){n&&n.p&&(!t||512&i)&&y(n,r,e,e[9],t?b(r,e[9],i,null):x(e[9]),null)},i(e){t||(lt(n,e),t=!0)},o(e){ct(n,e),t=!1},d(e){n&&n.d(e)}}}function Pk(e){let t,r,n,i,a,o,s,l,c,u=e[1]&&Dk(e),p=e[4].title===e[0]&&Hk(e);return{c(){t=Y("div"),u&&u.c(),r=J(),n=Y("span"),i=K(e[0]),a=J(),p&&p.c(),o=Q(),ie(n,"class","spectrum-Tabs-itemLabel"),ie(t,"id",e[2]),ie(t,"class","spectrum-Tabs-item svelte-l8f5vh"),ie(t,"tabindex","0"),ye(t,"is-selected",e[4].title===e[0]),ye(t,"emphasized",e[4].title===e[0]&&e[4].emphasized)},m(d,h){U(d,t,h),u&&u.m(t,null),V(t,r),V(t,n),V(n,i),e[8](t),U(d,a,h),p&&p.m(d,h),U(d,o,h),s=!0,l||(c=ee(t,"click",e[6]),l=!0)},p(e,[n]){e[1]?u?u.p(e,n):(u=Dk(e),u.c(),u.m(t,r)):u&&(u.d(1),u=null),(!s||1&n)&&me(i,e[0]),(!s||4&n)&&ie(t,"id",e[2]),17&n&&ye(t,"is-selected",e[4].title===e[0]),17&n&&ye(t,"emphasized",e[4].title===e[0]&&e[4].emphasized),e[4].title===e[0]?p?(p.p(e,n),17&n&<(p,1)):(p=Hk(e),p.c(),lt(p,1),p.m(o.parentNode,o)):p&&(ot(),ct(p,1,1,(()=>{p=null})),st())},i(e){s||(lt(p),s=!0)},o(e){ct(p),s=!1},d(r){r&&X(t),u&&u.d(),e[8](null),r&&X(a),p&&p.d(r),r&&X(o),l=!1,c()}}}function Rk(e,t,r){let n,{$$slots:i={},$$scope:a}=t,{title:o}=t,{icon:s=""}=t,{id:l}=t;const c=De();let u,p,d=Oe("tab");g(e,d,(e=>r(4,n=e)));const h=()=>{setTimeout((()=>{p=u?.getBoundingClientRect(),p&&n.title===o&&C(d,n.info=p,n)}),0)};Ee((()=>{h()}));return e.$$set=e=>{"title"in e&&r(0,o=e.title),"icon"in e&&r(1,s=e.icon),"id"in e&&r(2,l=e.id),"$$scope"in e&&r(9,a=e.$$scope)},e.$$.update=()=>{25&e.$$.dirty&&n.title===o&&u&&n.info?.left!==u.getBoundingClientRect().left&&h()},[o,s,l,u,n,d,()=>{C(d,n={...n,title:o,info:u.getBoundingClientRect()},n),c("click")},i,function(e){Fe[e?"unshift":"push"]((()=>{u=e,r(3,u)}))},a]}Gt(".emphasized.svelte-l8f5vh{color:var(--spectrum-global-color-blue-600)}.spectrum-Tabs-item.svelte-l8f5vh{color:var(--spectrum-global-color-gray-600)}.spectrum-Tabs-item.is-selected.svelte-l8f5vh,.spectrum-Tabs-item.svelte-l8f5vh:hover{color:var(--spectrum-global-color-gray-900)}");class Vk extends Ot{constructor(e){super(),Ht(this,e,Rk,Pk,c,{title:0,icon:1,id:2})}}Gt('.spectrum-TreeView {\n --spectrum-treeview-item-min-height: var(--spectrum-global-dimension-size-400);\n --spectrum-treeview-item-padding-y: var(--spectrum-global-dimension-size-75);\n --spectrum-treeview-item-icon-margin-right: var(--spectrum-global-dimension-size-125);\n --spectrum-treeview-item-affordance-width: var(--spectrum-global-dimension-size-400);\n --spectrum-treeview-item-indentation: var(--spectrum-global-dimension-size-200);\n --spectrum-treeview-heading-font-weight: var(--spectrum-global-font-weight-bold, 700);\n --spectrum-treeview-item-hover-offset: var(--spectrum-global-dimension-size-25);\n --spectrum-treeview-item-border-size-selected: var(--spectrum-alias-border-size-thin, var(--spectrum-global-dimension-static-size-10));\n\n --spectrum-treeview-item-height-layers: var(--spectrum-global-dimension-size-550);\n}\n\n.spectrum-TreeView {\n display: block;\n position: relative;\n\n padding: 0;\n\n list-style: none;\n outline: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.spectrum-TreeView-item {\n overflow: hidden;\n}\n\n[dir="ltr"] .spectrum-TreeView-item.is-open > .spectrum-TreeView-itemLink > .spectrum-TreeView-itemIndicator { transform: rotate(90deg); }\n\n[dir="rtl"] .spectrum-TreeView-item.is-open > .spectrum-TreeView-itemLink > .spectrum-TreeView-itemIndicator { transform: matrix(-1, 0, 0, 1, 0, 0) rotate(90deg); }\n\n.spectrum-TreeView-item.is-open > .spectrum-TreeView {\n height: auto;\n visibility: visible;\n }\n\n.spectrum-TreeView-item.is-drop-target .spectrum-TreeView-itemLink:before {\n border-width: var(--spectrum-treeview-item-border-size, var(--spectrum-global-dimension-static-size-25));\n }\n\n.spectrum-TreeView-item.is-selected .spectrum-TreeView-itemLink:not(.focus-ring):before {\n border-width: var(--spectrum-treeview-item-border-size-selected);\n }\n\n.spectrum-TreeView-itemLabel {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.spectrum-TreeView-itemLink {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n\n box-sizing: border-box;\n cursor: pointer;\n\n padding-top: var(--spectrum-treeview-item-padding-y, var(--spectrum-global-dimension-static-size-100));\n\n padding-bottom: var(--spectrum-treeview-item-padding-y, var(--spectrum-global-dimension-static-size-100));\n padding-left: var(--spectrum-treeview-item-affordance-width);\n padding-right: var(--spectrum-treeview-item-affordance-width);\n\n text-decoration: none;\n\n height: var(--spectrum-treeview-item-min-height);\n white-space: nowrap;\n overflow: hidden;\n\n outline: none;\n}\n\n[dir="ltr"] .spectrum-TreeView-itemLink .spectrum-TreeView-itemIcon {\n margin-right: var(--spectrum-treeview-item-icon-margin-right);\n}\n\n[dir="rtl"] .spectrum-TreeView-itemLink .spectrum-TreeView-itemIcon {\n margin-left: var(--spectrum-treeview-item-icon-margin-right);\n}\n\n.spectrum-TreeView-itemLink .spectrum-TreeView-itemIcon {\n vertical-align: top;\n }\n\n[dir="ltr"] .spectrum-TreeView-itemLink:before {\n left: var(--spectrum-treeview-item-border-size, var(--spectrum-global-dimension-static-size-25));\n}\n\n[dir="rtl"] .spectrum-TreeView-itemLink:before {\n right: var(--spectrum-treeview-item-border-size, var(--spectrum-global-dimension-static-size-25));\n}\n\n[dir="ltr"] .spectrum-TreeView-itemLink:before {\n right: 0;\n}\n\n[dir="rtl"] .spectrum-TreeView-itemLink:before {\n left: 0;\n}\n\n.spectrum-TreeView-itemLink:before {\n content: \'\';\n\n box-sizing: border-box;\n\n position: absolute;\n\n height: calc(var(--spectrum-treeview-item-height, var(--spectrum-global-dimension-size-450)) - var(--spectrum-treeview-item-hover-offset) * 2);\n\n border-style: solid;\n border-color: transparent;\n border-width: var(--spectrum-treeview-item-border-size, var(--spectrum-global-dimension-static-size-25)) 0 var(--spectrum-treeview-item-border-size, var(--spectrum-global-dimension-static-size-25)) 0;\n background-color: transparent;\n }\n\n.spectrum-TreeView-itemLink.focus-ring:before {\n border-width: var(--spectrum-treeview-item-border-size, var(--spectrum-global-dimension-static-size-25));\n }\n\n.spectrum-TreeView--standalone .spectrum-TreeView-itemLink:before {\n border-radius: var(--spectrum-treeview-item-border-radius, var(--spectrum-alias-border-radius-regular));\n border-width: var(--spectrum-treeview-item-border-size, var(--spectrum-global-dimension-static-size-25));\n }\n\n[dir="ltr"] .spectrum-TreeView--thumbnail .spectrum-TreeView-itemThumbnail {\n margin-right: var(--spectrum-treeview-item-icon-margin-right);\n}\n\n[dir="rtl"] .spectrum-TreeView--thumbnail .spectrum-TreeView-itemThumbnail {\n margin-left: var(--spectrum-treeview-item-icon-margin-right);\n}\n\n.spectrum-TreeView--thumbnail .spectrum-TreeView-itemLink {\n height: var(--spectrum-treeview-item-height-layers);\n }\n\n.spectrum-TreeView--thumbnail .spectrum-TreeView-itemLink:before {\n height: var(--spectrum-treeview-item-height-layers);\n }\n\n[dir="ltr"] .spectrum-TreeView-itemIndicator {\n\n float: left;\n}\n\n[dir="rtl"] .spectrum-TreeView-itemIndicator {\n\n float: right;\n}\n\n[dir="ltr"] .spectrum-TreeView-itemIndicator {\n\n left: var(--spectrum-global-dimension-size-125);\n}\n\n[dir="rtl"] .spectrum-TreeView-itemIndicator {\n\n right: var(--spectrum-global-dimension-size-125);\n}\n\n[dir="ltr"] .spectrum-TreeView-itemIndicator {\n margin-left: calc(-1 * var(--spectrum-global-dimension-size-500));\n}\n\n[dir="rtl"] .spectrum-TreeView-itemIndicator {\n margin-right: calc(-1 * var(--spectrum-global-dimension-size-500));\n}\n\n[dir="ltr"] .spectrum-TreeView-itemIndicator {\n margin-right: var(--spectrum-global-dimension-size-85);\n}\n\n[dir="rtl"] .spectrum-TreeView-itemIndicator {\n margin-left: var(--spectrum-global-dimension-size-85);\n}\n\n[dir="rtl"] .spectrum-TreeView-itemIndicator { transform: matrix(-1, 0, 0, 1, 0, 0) ; }\n\n.spectrum-TreeView-itemIndicator {\n display: block;\n box-sizing: content-box;\n position: relative;\n z-index: 1;\n top: calc(-1 * var(--spectrum-global-dimension-size-65));\n margin-bottom: calc(-1 * var(--spectrum-global-dimension-size-125));\n\n padding-left: var(--spectrum-global-dimension-size-150);\n\n padding-right: var(--spectrum-global-dimension-size-150);\n padding-top: var(--spectrum-global-dimension-size-125);\n padding-bottom: var(--spectrum-global-dimension-size-125);\n transition: transform ease var(--spectrum-global-animation-duration-100, 130ms);\n\n pointer-events: all !important;\n}\n\n[dir="ltr"] .spectrum-TreeView .spectrum-TreeView {\n\n padding-left: var(--spectrum-treeview-item-indentation);\n}\n\n[dir="rtl"] .spectrum-TreeView .spectrum-TreeView {\n\n padding-right: var(--spectrum-treeview-item-indentation);\n}\n\n.spectrum-TreeView .spectrum-TreeView {\n position: static;\n height: 0;\n visibility: hidden;\n}\n\n[dir="ltr"] .spectrum-TreeView-item--indent1 {\n padding-left: var(--spectrum-treeview-item-indentation);\n}\n\n[dir="rtl"] .spectrum-TreeView-item--indent1 {\n padding-right: var(--spectrum-treeview-item-indentation);\n}\n\n[dir="ltr"] .spectrum-TreeView-item--indent2 {\n padding-left: calc(2 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="rtl"] .spectrum-TreeView-item--indent2 {\n padding-right: calc(2 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="ltr"] .spectrum-TreeView-item--indent3 {\n padding-left: calc(3 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="rtl"] .spectrum-TreeView-item--indent3 {\n padding-right: calc(3 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="ltr"] .spectrum-TreeView-item--indent4 {\n padding-left: calc(4 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="rtl"] .spectrum-TreeView-item--indent4 {\n padding-right: calc(4 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="ltr"] .spectrum-TreeView-item--indent5 {\n padding-left: calc(5 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="rtl"] .spectrum-TreeView-item--indent5 {\n padding-right: calc(5 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="ltr"] .spectrum-TreeView-item--indent6 {\n padding-left: calc(6 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="rtl"] .spectrum-TreeView-item--indent6 {\n padding-right: calc(6 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="ltr"] .spectrum-TreeView-item--indent7 {\n padding-left: calc(7 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="rtl"] .spectrum-TreeView-item--indent7 {\n padding-right: calc(7 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="ltr"] .spectrum-TreeView-item--indent8 {\n padding-left: calc(8 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="rtl"] .spectrum-TreeView-item--indent8 {\n padding-right: calc(8 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="ltr"] .spectrum-TreeView-item--indent9 {\n padding-left: calc(9 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="rtl"] .spectrum-TreeView-item--indent9 {\n padding-right: calc(9 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="ltr"] .spectrum-TreeView-item--indent10 {\n padding-left: calc(10 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="rtl"] .spectrum-TreeView-item--indent10 {\n padding-right: calc(10 * var(--spectrum-treeview-item-indentation));\n}\n\n.spectrum-TreeView-heading {\n padding: var(--spectrum-treeview-item-padding-y, var(--spectrum-global-dimension-static-size-100));\n font-weight: var(--spectrum-treeview-heading-font-weight);\n}\n\n.spectrum-TreeView-heading:not(:first-child) {\n margin-top: var(--spectrum-global-dimension-size-200);\n }\n\n.spectrum-TreeView {\n --spectrum-treeview-item-background-color-selected: var(--spectrum-alias-highlight-selected);\n\n --spectrum-treeview-item-background-color-quiet-selected: var(--spectrum-alias-highlight-hover);\n --spectrum-treeview-item-icon-color: var(--spectrum-alias-icon-color, var(--spectrum-global-color-gray-700));\n --spectrum-treeview-item-icon-color-hover: var(--spectrum-alias-icon-color-hover, var(--spectrum-global-color-gray-900));\n --spectrum-treeview-item-icon-color-focus: var(--spectrum-alias-icon-color-focus, var(--spectrum-global-color-gray-900));\n --spectrum-treeview-item-icon-color-selected: var(--spectrum-alias-icon-color-selected-neutral, var(--spectrum-global-color-gray-900));\n --spectrum-treeview-item-icon-color-disabled: var(--spectrum-alias-icon-color-disabled, var(--spectrum-global-color-gray-400));\n --spectrum-treeview-item-text-color-focus: var(--spectrum-alias-text-color-down, var(--spectrum-global-color-gray-900));\n --spectrum-treeview-item-text-color-selected: var(--spectrum-alias-text-color-selected-neutral, var(--spectrum-global-color-gray-900));\n --spectrum-treeview-item-text-color-disabled: var(--spectrum-alias-text-color-disabled, var(--spectrum-global-color-gray-500));\n}\n\n.spectrum-TreeView-item.is-disabled > .spectrum-TreeView-itemLink {\n color: var(--spectrum-treeview-item-text-color-disabled);\n }\n\n.spectrum-TreeView-item.is-disabled > .spectrum-TreeView-itemLink .spectrum-Icon {\n color: var(--spectrum-treeview-item-icon-color-disabled);\n }\n\n.spectrum-TreeView-item.is-selected > .spectrum-TreeView-itemLink {\n color: var(--spectrum-treeview-item-text-color-selected);\n }\n\n.spectrum-TreeView-item.is-selected > .spectrum-TreeView-itemLink:before {\n background-color: var(--spectrum-treeview-item-background-color-selected);\n border-color: var(--spectrum-treeview-item-border-color-key-focus, var(--spectrum-alias-focus-color));\n }\n\n.spectrum-TreeView-item.is-selected > .spectrum-TreeView-itemLink .spectrum-TreeView-itemIcon {\n color: var(--spectrum-treeview-item-icon-color-selected);\n }\n\n.spectrum-TreeView-item.is-drop-target > .spectrum-TreeView-itemLink:before {\n background-color: var(--spectrum-alias-highlight-selected);\n border-color: var(--spectrum-treeview-item-border-color-key-focus, var(--spectrum-alias-focus-color));\n }\n\n.spectrum-TreeView--quiet .spectrum-TreeView-item.is-selected > .spectrum-TreeView-itemLink:before {\n background-color: var(--spectrum-treeview-item-background-color-quiet-selected);\n border-color: transparent;\n }\n\n.spectrum-TreeView--quiet .spectrum-TreeView-item.is-selected > .spectrum-TreeView-itemLink.focus-ring:before {\n border-color: var(--spectrum-treeview-item-border-color-key-focus, var(--spectrum-alias-focus-color));\n }\n\n.spectrum-TreeView-itemIcon {\n color: var(--spectrum-treeview-item-icon-color);\n}\n\n.spectrum-TreeView-itemLink {\n color: var(--spectrum-treeview-item-text-color, var(--spectrum-global-color-gray-800));\n}\n\n.spectrum-TreeView-itemLink:hover {\n color: var(--spectrum-treeview-item-text-color-hover, var(--spectrum-global-color-gray-900));\n }\n\n.spectrum-TreeView-itemLink:hover:before {\n background-color: var(--spectrum-treeview-item-background-color-hover, var(--spectrum-alias-background-color-hover-overlay));\n }\n\n.spectrum-TreeView-itemLink:hover .spectrum-TreeView-itemIcon {\n color: var(--spectrum-treeview-item-icon-color-hover);\n }\n\n.spectrum-TreeView-itemLink.focus-ring {\n color: var(--spectrum-treeview-item-text-color-focus);\n }\n\n.spectrum-TreeView-itemLink.focus-ring::before {\n background-color: var(--spectrum-treeview-item-background-color-key-focus, var(--spectrum-alias-background-color-hover-overlay));\n\n border-color: var(--spectrum-treeview-item-border-color-key-focus, var(--spectrum-alias-focus-color));\n }\n\n.spectrum-TreeView-itemLink.focus-ring .spectrum-TreeView-itemIcon {\n color: var(--spectrum-treeview-item-icon-color-focus);\n }\n');Gt('.spectrum-Pagination--explicit,\n.spectrum-Pagination--listing {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.spectrum-Pagination-textfield {\n width: var(--spectrum-pagination-textfield-width, var(--spectrum-global-dimension-size-600));\n min-width: var(--spectrum-pagination-textfield-width, var(--spectrum-global-dimension-size-600));\n}\n\n[dir="ltr"] .spectrum-Pagination-counter {\n margin-left: var(--spectrum-pagination-counter-margin-left, var(--spectrum-global-dimension-size-65));\n}\n\n[dir="rtl"] .spectrum-Pagination-counter {\n margin-right: var(--spectrum-pagination-counter-margin-left, var(--spectrum-global-dimension-size-65));\n}\n\n[dir="ltr"] .spectrum-Pagination-prevButton {\n margin-right: var(--spectrum-pagination-page-button-margin-horizontal, var(--spectrum-global-dimension-size-65));\n}\n\n[dir="rtl"] .spectrum-Pagination-prevButton {\n margin-left: var(--spectrum-pagination-page-button-margin-horizontal, var(--spectrum-global-dimension-size-65));\n}\n\n[dir="ltr"] .spectrum-Pagination-nextButton {\n margin-left: var(--spectrum-pagination-page-button-margin-horizontal, var(--spectrum-global-dimension-size-65));\n}\n\n[dir="rtl"] .spectrum-Pagination-nextButton {\n margin-right: var(--spectrum-pagination-page-button-margin-horizontal, var(--spectrum-global-dimension-size-65));\n}\n\n[dir="rtl"] .spectrum-Pagination-prevButton .spectrum-Icon,[dir="rtl"] .spectrum-Pagination-nextButton .spectrum-Icon { transform: matrix(-1, 0, 0, 1, 0, 0) ; }\n\n.spectrum-Pagination-pageButton:hover {\n background-color: var(--spectrum-pagination-page-button-background-color-hover, var(--spectrum-alias-background-color-hover-overlay));\n }\n\n.spectrum-Pagination-pageButton:focus {\n border-color: var(--spectrum-pagination-page-button-border-color-key-focus, var(--spectrum-alias-focus-color));\n }\n\n.spectrum-Pagination-pageButton.is-selected {\n background-color: var(--spectrum-pagination-page-button-background-color-down, var(--spectrum-global-color-gray-800));\n color: var(--spectrum-pagination-page-button-text-color-down, var(--spectrum-global-color-static-white));\n }\n\n.spectrum-Pagination-counter {\n color: var(--spectrum-alias-label-text-color, var(--spectrum-global-color-gray-700));\n}\n');function Nk(e){let r,n,i,a,o,c,u,p,d,h;return{c(){r=Y("nav"),n=Y("div"),n.innerHTML='<svg class="spectrum-Icon spectrum-UIIcon-ChevronLeft100" focusable="false" aria-hidden="true" aria-label="ChevronLeft"><use xlink:href="#spectrum-css-icon-Chevron100"></use></svg>',i=J(),a=Y("span"),o=K("Page "),c=K(e[0]),u=J(),p=Y("div"),p.innerHTML='<svg class="spectrum-Icon spectrum-UIIcon-ChevronRight100" focusable="false" aria-hidden="true" aria-label="ChevronLeft"><use xlink:href="#spectrum-css-icon-Chevron100"></use></svg>',ie(n,"href","#"),ie(n,"class","spectrum-ActionButton spectrum-ActionButton--sizeM spectrum-ActionButton--quiet spectrum-Pagination-prevButton svelte-1w0vi9g"),ye(n,"is-disabled",!e[3]),ie(a,"class","spectrum-Body--secondary spectrum-Pagination-counter svelte-1w0vi9g"),ie(p,"href","#"),ie(p,"class","spectrum-ActionButton spectrum-ActionButton--sizeM spectrum-ActionButton--quiet spectrum-Pagination-nextButton svelte-1w0vi9g"),ye(p,"is-disabled",!e[4]),ie(r,"class","spectrum-Pagination spectrum-Pagination--explicit")},m(t,s){U(t,r,s),V(r,n),V(r,i),V(r,a),V(a,o),V(a,c),V(r,u),V(r,p),d||(h=[ee(n,"click",(function(){l(e[3]?e[1]:null)&&(e[3]?e[1]:null).apply(this,arguments)})),ee(p,"click",(function(){l(e[4]?e[2]:null)&&(e[4]?e[2]:null).apply(this,arguments)}))],d=!0)},p(t,[r]){e=t,8&r&&ye(n,"is-disabled",!e[3]),1&r&&me(c,e[0]),16&r&&ye(p,"is-disabled",!e[4])},i:t,o:t,d(e){e&&X(r),d=!1,s(h)}}}function Fk(e,t,r){let{page:n}=t,{goToPrevPage:i}=t,{goToNextPage:a}=t,{hasPrevPage:o=!0}=t,{hasNextPage:s=!0}=t;return e.$$set=e=>{"page"in e&&r(0,n=e.page),"goToPrevPage"in e&&r(1,i=e.goToPrevPage),"goToNextPage"in e&&r(2,a=e.goToNextPage),"hasPrevPage"in e&&r(3,o=e.hasPrevPage),"hasNextPage"in e&&r(4,s=e.hasNextPage)},[n,i,a,o,s]}Gt(".spectrum-Pagination-counter.svelte-1w0vi9g{margin-left:0;user-select:none}.is-disabled.svelte-1w0vi9g:hover{cursor:initial}");class jk extends Ot{constructor(e){super(),Ht(this,e,Fk,Nk,c,{page:0,goToPrevPage:1,goToNextPage:2,hasPrevPage:3,hasNextPage:4})}}function qk(e,t,r){const n=e.slice();return n[21]=t[r],n}function Uk(e,t,r){const n=e.slice();return n[24]=t[r],n}function Wk(e){let t,r;return t=new sr({props:{name:"Checkmark",size:"S"}}),{c(){It(t.$$.fragment)},m(e,n){Bt(t,e,n),r=!0},i(e){r||(lt(t.$$.fragment,e),r=!0)},o(e){ct(t.$$.fragment,e),r=!1},d(e){Dt(t,e)}}}function Xk(e){let t,r,n,i,a,o,s=e[0]===`var(--spectrum-global-color-${e[24]})`&&Wk();function l(){return e[14](e[24])}return{c(){t=Y("div"),r=Y("div"),s&&s.c(),ie(r,"class",n="fill "+(e[2]||"")+" svelte-ss6nt4"),fe(r,"background","var(--spectrum-global-color-"+e[24]+")"),fe(r,"color",e[7]),ie(t,"class","color svelte-ss6nt4"),ie(t,"title",e[11](e[24]))},m(e,n){U(e,t,n),V(t,r),s&&s.m(r,null),i=!0,a||(o=ee(t,"click",l),a=!0)},p(t,a){(e=t)[0]===`var(--spectrum-global-color-${e[24]})`?s?1&a&<(s,1):(s=Wk(),s.c(),lt(s,1),s.m(r,null)):s&&(ot(),ct(s,1,1,(()=>{s=null})),st()),(!i||4&a&&n!==(n="fill "+(e[2]||"")+" svelte-ss6nt4"))&&ie(r,"class",n),(!i||128&a)&&fe(r,"color",e[7])},i(e){i||(lt(s),i=!0)},o(e){ct(s),i=!1},d(e){e&&X(t),s&&s.d(),a=!1,o()}}}function Gk(e){let t,r,n,i,a,o,s=e[21].label+"",l=e[21].colors,c=[];for(let t=0;t<l.length;t+=1)c[t]=Xk(Uk(e,l,t));const u=e=>ct(c[e],1,1,(()=>{c[e]=null}));return{c(){t=Y("div"),r=Y("div"),n=K(s),i=J(),a=Y("div");for(let e=0;e<c.length;e+=1)c[e].c();ie(r,"class","heading svelte-ss6nt4"),ie(a,"class","colors svelte-ss6nt4"),ie(t,"class","category")},m(e,s){U(e,t,s),V(t,r),V(r,n),V(t,i),V(t,a);for(let e=0;e<c.length;e+=1)c[e].m(a,null);o=!0},p(e,t){if(3717&t){let r;for(l=e[21].colors,r=0;r<l.length;r+=1){const n=Uk(e,l,r);c[r]?(c[r].p(n,t),lt(c[r],1)):(c[r]=Xk(n),c[r].c(),lt(c[r],1),c[r].m(a,null))}for(ot(),r=l.length;r<c.length;r+=1)u(r);st()}},i(e){if(!o){for(let e=0;e<l.length;e+=1)lt(c[e]);o=!0}},o(e){c=c.filter(Boolean);for(let e=0;e<c.length;e+=1)ct(c[e]);o=!1},d(e){e&&X(t),G(c,e)}}}function Yk(e){let t,r,n,i,a,o,s,l,c,u,p=e[9],d=[];for(let t=0;t<p.length;t+=1)d[t]=Gk(qk(e,p,t));const h=e=>ct(d[e],1,1,(()=>{d[e]=null}));return s=new Tr({props:{updateOnChange:!1,quiet:!0,placeholder:"Hex, RGB, HSL...",value:e[8]}}),s.$on("change",e[15]),c=new sr({props:{size:"S",name:"Close",hoverable:!0}}),c.$on("click",e[16]),{c(){t=Y("div");for(let e=0;e<d.length;e+=1)d[e].c();r=J(),n=Y("div"),i=Y("div"),i.textContent="Custom",a=J(),o=Y("div"),It(s.$$.fragment),l=J(),It(c.$$.fragment),ie(i,"class","heading svelte-ss6nt4"),ie(o,"class","custom svelte-ss6nt4"),ie(n,"class","category category--custom svelte-ss6nt4"),ie(t,"class","container svelte-ss6nt4")},m(e,p){U(e,t,p);for(let e=0;e<d.length;e+=1)d[e].m(t,null);V(t,r),V(t,n),V(n,i),V(n,a),V(n,o),Bt(s,o,null),V(o,l),Bt(c,o,null),u=!0},p(e,n){if(3717&n){let i;for(p=e[9],i=0;i<p.length;i+=1){const a=qk(e,p,i);d[i]?(d[i].p(a,n),lt(d[i],1)):(d[i]=Gk(a),d[i].c(),lt(d[i],1),d[i].m(t,r))}for(ot(),i=p.length;i<d.length;i+=1)h(i);st()}const i={};256&n&&(i.value=e[8]),s.$set(i)},i(e){if(!u){for(let e=0;e<p.length;e+=1)lt(d[e]);lt(s.$$.fragment,e),lt(c.$$.fragment,e),u=!0}},o(e){d=d.filter(Boolean);for(let e=0;e<d.length;e+=1)ct(d[e]);ct(s.$$.fragment,e),ct(c.$$.fragment,e),u=!1},d(e){e&&X(t),G(d,e),Dt(s),Dt(c)}}}function Zk(e){let t,r;return t=new Ho({props:{paddingX:"XL",paddingY:"L",$$slots:{default:[Yk]},$$scope:{ctx:e}}}),{c(){It(t.$$.fragment)},m(e,n){Bt(t,e,n),r=!0},p(e,r){const n={};134218117&r&&(n.$$scope={dirty:r,ctx:e}),t.$set(n)},i(e){r||(lt(t.$$.fragment,e),r=!0)},o(e){ct(t.$$.fragment,e),r=!1},d(e){Dt(t,e)}}}function Kk(e){let t,r,n,i,a,o,s,l,c,u,p={anchor:e[6],maxHeight:320,offset:e[3],align:e[4],$$slots:{default:[Zk]},$$scope:{ctx:e}};return s=new tn({props:p}),e[17](s),{c(){t=Y("div"),r=Y("div"),o=J(),It(s.$$.fragment),ie(r,"class",n="fill "+(e[2]||"")+" svelte-ss6nt4"),ie(r,"style",i=e[0]?`background: ${e[0]};`:""),ye(r,"placeholder",!e[0]),ie(t,"class",a="preview size--"+(e[1]||"M")+" svelte-ss6nt4")},m(n,i){U(n,t,i),V(t,r),e[12](t),U(n,o,i),Bt(s,n,i),l=!0,c||(u=ee(t,"click",e[13]),c=!0)},p(e,[o]){(!l||4&o&&n!==(n="fill "+(e[2]||"")+" svelte-ss6nt4"))&&ie(r,"class",n),(!l||1&o&&i!==(i=e[0]?`background: ${e[0]};`:""))&&ie(r,"style",i),5&o&&ye(r,"placeholder",!e[0]),(!l||2&o&&a!==(a="preview size--"+(e[1]||"M")+" svelte-ss6nt4"))&&ie(t,"class",a);const c={};64&o&&(c.anchor=e[6]),8&o&&(c.offset=e[3]),16&o&&(c.align=e[4]),134218117&o&&(c.$$scope={dirty:o,ctx:e}),s.$set(c)},i(e){l||(lt(s.$$.fragment,e),l=!0)},o(e){ct(s.$$.fragment,e),l=!1},d(r){r&&X(t),e[12](null),r&&X(o),e[17](null),Dt(s,r),c=!1,u()}}}function Jk(e,t,r){let n,i,a,o,{value:s}=t,{size:l="M"}=t,{spectrumTheme:c}=t,{offset:u}=t,{align:p}=t;const d=De(),h=[{label:"Theme",colors:["gray-50","gray-75","gray-100","gray-200","gray-300","gray-400","gray-500","gray-600","gray-700","gray-800","gray-900"]},{label:"Colors",colors:["red-400","orange-400","yellow-400","green-400","seafoam-400","blue-400","indigo-400","magenta-400","red-500","orange-500","yellow-500","green-500","seafoam-500","blue-500","indigo-500","magenta-500","red-600","orange-600","yellow-600","green-600","seafoam-600","blue-600","indigo-600","magenta-600","red-700","orange-700","yellow-700","green-700","seafoam-700","blue-700","indigo-700","magenta-700","static-white","static-black"]}],m=e=>{d("change",e),a.hide()};return e.$$set=e=>{"value"in e&&r(0,s=e.value),"size"in e&&r(1,l=e.size),"spectrumTheme"in e&&r(2,c=e.spectrumTheme),"offset"in e&&r(3,u=e.offset),"align"in e&&r(4,p=e.align)},e.$$.update=()=>{1&e.$$.dirty&&r(8,n=(e=>{if(!e)return e;let t=!1;const r=e.substring(28,e.length-1);for(let e of h)if(t=e.colors.includes(r),t)break;return t?null:e})(s)),1&e.$$.dirty&&r(7,i=(e=>e?.includes("gray")?/^.*(gray-(50|75|100|200|300|400|500))\)$/.test(e)?"var(--spectrum-global-color-gray-900)":"var(--spectrum-global-color-gray-50)":e?.includes("static-black")?"var(--spectrum-global-color-static-gray-50)":"var(--spectrum-global-color-static-gray-900)")(s))},[s,l,c,u,p,a,o,i,n,h,m,e=>{return(t=e.split("-").join(" "))?t.substring(0,1).toUpperCase()+t.substring(1):t;var t},function(e){Fe[e?"unshift":"push"]((()=>{o=e,r(6,o)}))},()=>{a.toggle()},e=>{m(`var(--spectrum-global-color-${e})`)},function(t){Ve.call(this,e,t)},()=>m(null),function(e){Fe[e?"unshift":"push"]((()=>{a=e,r(5,a)}))}]}Gt(".container.svelte-ss6nt4.svelte-ss6nt4{position:relative}.preview.svelte-ss6nt4.svelte-ss6nt4{width:32px;height:32px;border-radius:100%;position:relative;transition:border-color 130ms ease-in-out;box-shadow:0 0 0 1px var(--spectrum-global-color-gray-400)}.preview.svelte-ss6nt4.svelte-ss6nt4:hover{cursor:pointer;box-shadow:0 0 2px 2px var(--spectrum-global-color-gray-400)}.fill.svelte-ss6nt4.svelte-ss6nt4{width:100%;height:100%;border-radius:100%;position:absolute;top:0;left:0;display:grid;place-items:center}.fill.placeholder.svelte-ss6nt4.svelte-ss6nt4{background-position:0 0, 10px 10px;background-size:20px 20px;background-image:linear-gradient(\n 45deg,\n #eee 25%,\n transparent 25%,\n transparent 75%,\n #eee 75%,\n #eee 100%\n ),\n linear-gradient(\n 45deg,\n #eee 25%,\n white 25%,\n white 75%,\n #eee 75%,\n #eee 100%\n )}.size--S.svelte-ss6nt4.svelte-ss6nt4{width:20px;height:20px}.size--M.svelte-ss6nt4.svelte-ss6nt4{width:32px;height:32px}.size--L.svelte-ss6nt4.svelte-ss6nt4{width:48px;height:48px}.colors.svelte-ss6nt4.svelte-ss6nt4{display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;gap:var(--spacing-xs)}.heading.svelte-ss6nt4.svelte-ss6nt4{font-size:var(--font-size-s);font-weight:600;letter-spacing:0.14px;flex:1 1 auto;text-transform:uppercase;grid-column:1 / 5;margin-bottom:var(--spacing-s)}.color.svelte-ss6nt4.svelte-ss6nt4{height:16px;width:16px;border-radius:100%;box-shadow:0 0 0 1px var(--spectrum-global-color-gray-300);position:relative}.color.svelte-ss6nt4.svelte-ss6nt4:hover{cursor:pointer;box-shadow:0 0 2px 2px var(--spectrum-global-color-gray-300)}.custom.svelte-ss6nt4.svelte-ss6nt4{display:grid;grid-template-columns:1fr auto;align-items:center;gap:var(--spacing-m);margin-right:var(--spacing-xs)}.category--custom.svelte-ss6nt4 .heading.svelte-ss6nt4{margin-bottom:var(--spacing-xs)}.container.svelte-ss6nt4.svelte-ss6nt4{display:flex;flex-direction:column;gap:var(--spacing-xl)}.spectrum-wrapper.svelte-ss6nt4.svelte-ss6nt4{background-color:transparent}");class Qk extends Ot{constructor(e){super(),Ht(this,e,Jk,Kk,c,{value:0,size:1,spectrumTheme:2,offset:3,align:4})}}Gt(".container.svelte-r1sbsa{position:relative}.preview.svelte-r1sbsa{width:32px;height:32px;position:relative;box-shadow:0 0 0 1px var(--spectrum-global-color-gray-400)}.preview.svelte-r1sbsa:hover{cursor:pointer}.fill.svelte-r1sbsa{width:100%;height:100%;position:absolute;top:0;left:0;display:grid;place-items:center}.size--S.svelte-r1sbsa{width:20px;height:20px}.size--M.svelte-r1sbsa{width:32px;height:32px}.size--L.svelte-r1sbsa{width:48px;height:48px}.spectrum-Popover.svelte-r1sbsa{width:210px;z-index:999;top:100%;padding:var(--spacing-l) var(--spacing-xl);display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:var(--spacing-xl)}.spectrum-Popover--align-right.svelte-r1sbsa{right:0}.icons.svelte-r1sbsa{display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr;gap:var(--spacing-m)}.heading.svelte-r1sbsa{font-size:var(--font-size-s);font-weight:600;letter-spacing:0.14px;flex:1 1 auto;text-transform:uppercase;grid-column:1 / 5;margin-bottom:var(--spacing-s)}.icon.svelte-r1sbsa{height:16px;width:16px;border-radius:100%;box-shadow:0 0 0 1px var(--spectrum-global-color-gray-300);position:relative}.icon.svelte-r1sbsa:hover{cursor:pointer;box-shadow:0 0 2px 2px var(--spectrum-global-color-gray-300)}.custom.svelte-r1sbsa{display:grid;grid-template-columns:1fr auto;align-items:center;gap:var(--spacing-m);margin-right:var(--spacing-xs)}.spectrum-wrapper.svelte-r1sbsa{background-color:transparent}");Gt('.spectrum-InLineAlert {\n --spectrum-inlinealert-neutral-title-height: 38px;\n --spectrum-inlinealert-neutral-corner-radius: 4px;\n --spectrum-inlinealert-neutral-border-width: 2px;\n}\n\n.spectrum-InLineAlert {\n position: relative;\n\n display: inline-block;\n box-sizing: border-box;\n min-width: var(--spectrum-inlinealert-neutral-min-width, var(--spectrum-global-dimension-static-size-4600));\n min-height: var(--spectrum-inlinealert-neutral-title-height);\n margin-top: 8px;\n margin-bottom: 8px;\n margin-left: 0;\n margin-right: 0;\n padding-top: var(--spectrum-inlinealert-neutral-padding-y, var(--spectrum-global-dimension-static-size-250));\n padding-bottom: var(--spectrum-inlinealert-neutral-padding-y, var(--spectrum-global-dimension-static-size-250));\n padding-left: var(--spectrum-inlinealert-neutral-padding-x, var(--spectrum-global-dimension-static-size-250));\n padding-right: var(--spectrum-inlinealert-neutral-padding-x, var(--spectrum-global-dimension-static-size-250));\n\n border-width: var(--spectrum-inlinealert-neutral-border-width);\n border-style: solid;\n border-radius: var(--spectrum-inlinealert-neutral-corner-radius);\n}\n\n[dir="ltr"] .spectrum-InLineAlert-icon {\n right: 20px;\n}\n\n[dir="rtl"] .spectrum-InLineAlert-icon {\n left: 20px;\n}\n\n.spectrum-InLineAlert-icon {\n position: absolute;\n display: block;\n top: 20px;\n}\n\n[dir="ltr"] .spectrum-InLineAlert-header {\n padding-right: 30px;\n}\n\n[dir="rtl"] .spectrum-InLineAlert-header {\n padding-left: 30px;\n}\n\n.spectrum-InLineAlert-header {\n display: inline-block;\n height: auto;\n min-height: 0;\n margin: 0;\n padding: 0;\n\n font-size: 14px;\n font-weight: 700;\n font-style: normal;\n line-height: 14px;\n text-transform: none;\n}\n\n.spectrum-InLineAlert-content {\n display: block;\n margin: var(--spectrum-inlinealert-neutral-content-margin-top, var(--spectrum-global-dimension-static-size-100)) 0 0 0;\n padding: 0;\n\n font-size: 14px;\n word-wrap: break-word;\n}\n\n[dir="ltr"] .spectrum-InLineAlert-footer {\n\n text-align: right;\n}\n\n[dir="rtl"] .spectrum-InLineAlert-footer {\n\n text-align: left;\n}\n\n.spectrum-InLineAlert-footer {\n display: block;\n\n padding-top: 0.5rem;\n}\n\n.spectrum-InLineAlert-footer:empty {\n display: none;\n }\n\n[dir="ltr"] .spectrum-InLineAlert-footer .spectrum-Button {\n margin-right: 0;\n}\n\n[dir="rtl"] .spectrum-InLineAlert-footer .spectrum-Button {\n margin-left: 0;\n}\n\n[dir="ltr"] .spectrum-InLineAlert-footer .spectrum-Button {\n margin-left: 0.75rem;\n}\n\n[dir="rtl"] .spectrum-InLineAlert-footer .spectrum-Button {\n margin-right: 0.75rem;\n}\n\n.spectrum-InLineAlert {\n background-color: var(--spectrum-inlinealert-neutral-background-color, var(--spectrum-global-color-gray-50));\n color: var(--spectrum-inlinealert-neutral-text-color, var(--spectrum-global-color-gray-700));\n}\n\n.spectrum-InLineAlert-header {\n color: var(--spectrum-inlinealert-neutral-title-text-color, var(--spectrum-global-color-gray-900));\n}\n\n.spectrum-InLineAlert-content {\n color: var(--spectrum-inlinealert-neutral-text-color, var(--spectrum-global-color-gray-700));\n}\n\n.spectrum-InLineAlert--info {\n border-color: var(--spectrum-inlinealert-info-border-color, var(--spectrum-semantic-informative-border-color));\n}\n\n.spectrum-InLineAlert--info .spectrum-InLineAlert-icon {\n color: var(--spectrum-inlinealert-info-icon-color, var(--spectrum-semantic-informative-icon-color));\n }\n\n.spectrum-InLineAlert--help {\n border-color: var(--spectrum-inlinealert-info-border-color, var(--spectrum-semantic-informative-border-color));\n}\n\n.spectrum-InLineAlert--help .spectrum-InLineAlert-icon {\n color: var(--spectrum-inlinealert-info-icon-color, var(--spectrum-semantic-informative-icon-color));\n }\n\n.spectrum-InLineAlert--error {\n border-color: var(--spectrum-inlinealert-error-border-color, var(--spectrum-semantic-negative-border-color));\n}\n\n.spectrum-InLineAlert--error .spectrum-InLineAlert-icon {\n color: var(--spectrum-inlinealert-error-icon-color, var(--spectrum-semantic-negative-icon-color));\n }\n\n.spectrum-InLineAlert--success {\n border-color: var(--spectrum-inlinealert-success-border-color, var(--spectrum-semantic-positive-border-color));\n}\n\n.spectrum-InLineAlert--success .spectrum-InLineAlert-icon {\n color: var(--spectrum-inlinealert-success-icon-color, var(--spectrum-semantic-positive-icon-color));\n }\n\n.spectrum-InLineAlert--negative {\n border-color: var(--spectrum-inlinealert-negative-border-color, var(--spectrum-semantic-notice-border-color));\n}\n\n.spectrum-InLineAlert--negative .spectrum-InLineAlert-icon {\n color: var(--spectrum-inlinealert-negative-icon-color, var(--spectrum-semantic-notice-icon-color));\n }\n');function eA(e,t,r){const n=e.slice();return n[8]=t[r],n}function tA(e){let t,r,n=e[8]+"";return{c(){t=Y("div"),r=K(n),ie(t,"class","spectrum-InLineAlert-content")},m(e,n){U(e,t,n),V(t,r)},p(e,t){32&t&&n!==(n=e[8]+"")&&me(r,n)},d(e){e&&X(t)}}}function rA(e){let t,r,n;return r=new za({props:{cta:e[4],secondary:!e[4],$$slots:{default:[nA]},$$scope:{ctx:e}}}),r.$on("click",(function(){l(e[2])&&e[2].apply(this,arguments)})),{c(){t=Y("div"),It(r.$$.fragment),ie(t,"class","spectrum-InLineAlert-footer button svelte-1dxkzv")},m(e,i){U(e,t,i),Bt(r,t,null),n=!0},p(t,n){e=t;const i={};16&n&&(i.cta=e[4]),16&n&&(i.secondary=!e[4]),2056&n&&(i.$$scope={dirty:n,ctx:e}),r.$set(i)},i(e){n||(lt(r.$$.fragment,e),n=!0)},o(e){ct(r.$$.fragment,e),n=!1},d(e){e&&X(t),Dt(r)}}}function nA(e){let t,r=(e[3]||"OK")+"";return{c(){t=K(r)},m(e,r){U(e,t,r)},p(e,n){8&n&&r!==(r=(e[3]||"OK")+"")&&me(t,r)},d(e){e&&X(t)}}}function iA(e){let t,r,n,i,a,o,s,l,c,u,p,d=e[5],h=[];for(let t=0;t<d.length;t+=1)h[t]=tA(eA(e,d,t));let m=e[2]&&rA(e);return{c(){t=Y("div"),r=Z("svg"),n=Z("use"),a=J(),o=Y("div"),s=K(e[1]),l=J();for(let e=0;e<h.length;e+=1)h[e].c();c=J(),m&&m.c(),se(n,"xlink:href",i="#spectrum-icon-18-"+e[6]),ie(r,"class","spectrum-Icon spectrum-Icon--sizeM spectrum-InLineAlert-icon"),ie(r,"focusable","false"),ie(r,"aria-hidden","true"),ie(o,"class","spectrum-InLineAlert-header"),ie(t,"class",u="spectrum-InLineAlert spectrum-InLineAlert--"+e[0]+" svelte-1dxkzv")},m(e,i){U(e,t,i),V(t,r),V(r,n),V(t,a),V(t,o),V(o,s),V(t,l);for(let e=0;e<h.length;e+=1)h[e].m(t,null);V(t,c),m&&m.m(t,null),p=!0},p(e,[r]){if((!p||64&r&&i!==(i="#spectrum-icon-18-"+e[6]))&&se(n,"xlink:href",i),(!p||2&r)&&me(s,e[1]),32&r){let n;for(d=e[5],n=0;n<d.length;n+=1){const i=eA(e,d,n);h[n]?h[n].p(i,r):(h[n]=tA(i),h[n].c(),h[n].m(t,c))}for(;n<h.length;n+=1)h[n].d(1);h.length=d.length}e[2]?m?(m.p(e,r),4&r&<(m,1)):(m=rA(e),m.c(),lt(m,1),m.m(t,null)):m&&(ot(),ct(m,1,1,(()=>{m=null})),st()),(!p||1&r&&u!==(u="spectrum-InLineAlert spectrum-InLineAlert--"+e[0]+" svelte-1dxkzv"))&&ie(t,"class",u)},i(e){p||(lt(m),p=!0)},o(e){ct(m),p=!1},d(e){e&&X(t),G(h,e),m&&m.d()}}}function aA(e,t,r){let n,i,{type:a="info"}=t,{header:o=""}=t,{message:s=""}=t,{onConfirm:l}=t,{buttonText:c=""}=t,{cta:u=!1}=t;return e.$$set=e=>{"type"in e&&r(0,a=e.type),"header"in e&&r(1,o=e.header),"message"in e&&r(7,s=e.message),"onConfirm"in e&&r(2,l=e.onConfirm),"buttonText"in e&&r(3,c=e.buttonText),"cta"in e&&r(4,u=e.cta)},e.$$.update=()=>{1&e.$$.dirty&&r(6,n=function(e){switch(e){case"error":case"negative":return"Alert";case"success":return"CheckmarkCircle";case"help":return"Help";default:return"Info"}}(a)),128&e.$$.dirty&&r(5,i=s.split("\n"))},[a,o,l,c,u,i,n,s]}Gt(".button.svelte-1dxkzv{margin-top:10px}.spectrum-InLineAlert.svelte-1dxkzv{--spectrum-semantic-negative-border-color:#e34850;--spectrum-semantic-positive-border-color:#2d9d78;--spectrum-semantic-positive-icon-color:#2d9d78;--spectrum-semantic-negative-icon-color:#e34850;min-width:100px;margin:0;border-width:1px}");class oA extends Ot{constructor(e){super(),Ht(this,e,aA,iA,c,{type:0,header:1,message:7,onConfirm:2,buttonText:3,cta:4})}}Gt(".spectrum-Toast.svelte-16khpst{pointer-events:all;width:100%}.spectrum-Toast--neutral.svelte-16khpst{background-color:var(--grey-2)}.spectrum-Button.svelte-16khpst{border:1px solid rgba(255, 255, 255, 0.2)}");Gt("div.svelte-bmyadj{position:relative}.icon.svelte-bmyadj{right:1px;bottom:1px;position:absolute;justify-content:center;align-items:center;display:flex;flex-direction:row;box-sizing:border-box;border-left:1px solid var(--spectrum-alias-border-color);border-top-right-radius:var(--spectrum-alias-border-radius-regular);border-bottom-right-radius:var(--spectrum-alias-border-radius-regular);width:31px;color:var(--spectrum-alias-text-color);background-color:var(--spectrum-global-color-gray-75);transition:background-color\n var(--spectrum-global-animation-duration-100, 130ms),\n box-shadow var(--spectrum-global-animation-duration-100, 130ms),\n border-color var(--spectrum-global-animation-duration-100, 130ms);height:calc(var(--spectrum-alias-item-height-m) - 2px)}.icon.svelte-bmyadj:hover{cursor:pointer;color:var(--spectrum-alias-text-color-hover);background-color:var(--spectrum-global-color-gray-50);border-color:var(--spectrum-alias-border-color-hover)}");const sA="info",lA="negative",cA="warning";!function(){const e=Ut({messages:[]}),t=async t=>{const r={[lA]:0,[cA]:1,[sA]:2};e.update((e=>{const n=[...e.messages,...t].sort(((e,t)=>r[e.type]==r[t.type]?0:r[e.type]<r[t.type]?-1:1));return{...e,messages:n}}))};e.subscribe}();Gt(".banner.svelte-j1ssay{pointer-events:none;width:100%}");var uA=gi((function(e,t){e.exports=function(){var e=navigator.userAgent,t=navigator.platform,r=/gecko\/\d/i.test(e),n=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),a=/Edge\/(\d+)/.exec(e),o=n||i||a,s=o&&(n?document.documentMode||6:+(a||i)[1]),l=!a&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!a&&/Chrome\/(\d+)/.exec(e),p=u&&+u[1],d=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),m=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),g=/PhantomJS/.test(e),f=h&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),b=f||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=f||/Mac/.test(t),x=/\bCrOS\b/.test(e),w=/win/i.test(t),z=d&&e.match(/Version\/(\d*\.\d*)/);z&&(z=Number(z[1])),z&&z>=15&&(d=!1,l=!0);var k=y&&(c||d&&(null==z||z<12.11)),A=r||o&&s>=9;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,_=function(e,t){var r=e.className,n=C(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function M(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function T(e,t){return M(e).appendChild(t)}function $(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var a=0;a<t.length;++a)i.appendChild(t[a]);return i}function L(e,t,r,n){var i=$(e,t,r,n);return i.setAttribute("role","presentation"),i}function E(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function I(e){var t;try{t=e.activeElement}catch(r){t=e.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function B(e,t){var r=e.className;C(t).test(r)||(e.className+=(r?" ":"")+t)}function D(e,t){for(var r=e.split(" "),n=0;n<r.length;n++)r[n]&&!C(r[n]).test(t)&&(t+=" "+r[n]);return t}S=document.createRange?function(e,t,r,n){var i=document.createRange();return i.setEnd(n||e,r),i.setStart(e,t),i}:function(e,t,r){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(e){return n}return n.collapse(!0),n.moveEnd("character",r),n.moveStart("character",t),n};var H=function(e){e.select()};function O(e){return e.display.wrapper.ownerDocument}function P(e){return O(e).defaultView}function R(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function V(e,t,r){for(var n in t||(t={}),e)!e.hasOwnProperty(n)||!1===r&&t.hasOwnProperty(n)||(t[n]=e[n]);return t}function N(e,t,r,n,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var a=n||0,o=i||0;;){var s=e.indexOf("\t",a);if(s<0||s>=t)return o+(t-a);o+=s-a,o+=r-o%r,a=s+1}}f?H=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:o&&(H=function(e){try{e.select()}catch(e){}});var F=function(){this.id=null,this.f=null,this.time=0,this.handler=R(this.onTimeout,this)};function j(e,t){for(var r=0;r<e.length;++r)if(e[r]==t)return r;return-1}F.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},F.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=r)};var q=50,U={toString:function(){return"CodeMirror.Pass"}},W={scroll:!1},X={origin:"*mouse"},G={origin:"+move"};function Y(e,t,r){for(var n=0,i=0;;){var a=e.indexOf("\t",n);-1==a&&(a=e.length);var o=a-n;if(a==e.length||i+o>=t)return n+Math.min(o,t-i);if(i+=a-n,n=a+1,(i+=r-i%r)>=t)return n}}var Z=[""];function K(e){for(;Z.length<=e;)Z.push(J(Z)+" ");return Z[e]}function J(e){return e[e.length-1]}function Q(e,t){for(var r=[],n=0;n<e.length;n++)r[n]=t(e[n],n);return r}function ee(e,t,r){for(var n=0,i=r(t);n<e.length&&r(e[n])<=i;)n++;e.splice(n,0,t)}function te(){}function re(e,t){var r;return Object.create?r=Object.create(e):(te.prototype=e,r=new te),t&&V(t,r),r}var ne=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ie(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||ne.test(e))}function ae(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ie(e))||t.test(e):ie(e)}function oe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var se=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function le(e){return e.charCodeAt(0)>=768&&se.test(e)}function ce(e,t,r){for(;(r<0?t>0:t<e.length)&&le(e.charAt(t));)t+=r;return t}function ue(e,t,r){for(var n=t>r?-1:1;;){if(t==r)return t;var i=(t+r)/2,a=n<0?Math.ceil(i):Math.floor(i);if(a==t)return e(a)?t:r;e(a)?r=a:t=a+n}}function pe(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,a=0;a<e.length;++a){var o=e[a];(o.from<r&&o.to>t||t==r&&o.to==t)&&(n(Math.max(o.from,t),Math.min(o.to,r),1==o.level?"rtl":"ltr",a),i=!0)}i||n(t,r,"ltr")}var de=null;function he(e,t,r){var n;de=null;for(var i=0;i<e.length;++i){var a=e[i];if(a.from<t&&a.to>t)return i;a.to==t&&(a.from!=a.to&&"before"==r?n=i:de=i),a.from==t&&(a.from!=a.to&&"before"!=r?n=i:de=i)}return null!=n?n:de}var me=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(r){return r<=247?e.charAt(r):1424<=r&&r<=1524?"R":1536<=r&&r<=1785?t.charAt(r-1536):1774<=r&&r<=2220?"r":8192<=r&&r<=8203?"w":8204==r?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,o=/[Lb1n]/,s=/[1n]/;function l(e,t,r){this.level=e,this.from=t,this.to=r}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!n.test(e))return!1;for(var u=e.length,p=[],d=0;d<u;++d)p.push(r(e.charCodeAt(d)));for(var h=0,m=c;h<u;++h){var g=p[h];"m"==g?p[h]=m:m=g}for(var f=0,v=c;f<u;++f){var b=p[f];"1"==b&&"r"==v?p[f]="n":a.test(b)&&(v=b,"r"==b&&(p[f]="R"))}for(var y=1,x=p[0];y<u-1;++y){var w=p[y];"+"==w&&"1"==x&&"1"==p[y+1]?p[y]="1":","!=w||x!=p[y+1]||"1"!=x&&"n"!=x||(p[y]=x),x=w}for(var z=0;z<u;++z){var k=p[z];if(","==k)p[z]="N";else if("%"==k){var A=void 0;for(A=z+1;A<u&&"%"==p[A];++A);for(var C=z&&"!"==p[z-1]||A<u&&"1"==p[A]?"1":"N",S=z;S<A;++S)p[S]=C;z=A-1}}for(var _=0,M=c;_<u;++_){var T=p[_];"L"==M&&"1"==T?p[_]="L":a.test(T)&&(M=T)}for(var $=0;$<u;++$)if(i.test(p[$])){var L=void 0;for(L=$+1;L<u&&i.test(p[L]);++L);for(var E="L"==($?p[$-1]:c),I=E==("L"==(L<u?p[L]:c))?E?"L":"R":c,B=$;B<L;++B)p[B]=I;$=L-1}for(var D,H=[],O=0;O<u;)if(o.test(p[O])){var P=O;for(++O;O<u&&o.test(p[O]);++O);H.push(new l(0,P,O))}else{var R=O,V=H.length,N="rtl"==t?1:0;for(++O;O<u&&"L"!=p[O];++O);for(var F=R;F<O;)if(s.test(p[F])){R<F&&(H.splice(V,0,new l(1,R,F)),V+=N);var j=F;for(++F;F<O&&s.test(p[F]);++F);H.splice(V,0,new l(2,j,F)),V+=N,R=F}else++F;R<O&&H.splice(V,0,new l(1,R,O))}return"ltr"==t&&(1==H[0].level&&(D=e.match(/^\s+/))&&(H[0].from=D[0].length,H.unshift(new l(0,0,D[0].length))),1==J(H).level&&(D=e.match(/\s+$/))&&(J(H).to-=D[0].length,H.push(new l(0,u-D[0].length,u)))),"rtl"==t?H.reverse():H}}();function ge(e,t){var r=e.order;return null==r&&(r=e.order=me(e.text,t)),r}var fe=[],ve=function(e,t,r){if(e.addEventListener)e.addEventListener(t,r,!1);else if(e.attachEvent)e.attachEvent("on"+t,r);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||fe).concat(r)}};function be(e,t){return e._handlers&&e._handlers[t]||fe}function ye(e,t,r){if(e.removeEventListener)e.removeEventListener(t,r,!1);else if(e.detachEvent)e.detachEvent("on"+t,r);else{var n=e._handlers,i=n&&n[t];if(i){var a=j(i,r);a>-1&&(n[t]=i.slice(0,a).concat(i.slice(a+1)))}}}function xe(e,t){var r=be(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i<r.length;++i)r[i].apply(null,n)}function we(e,t,r){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),xe(e,r||t.type,e,t),_e(t)||t.codemirrorIgnore}function ze(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var r=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)-1==j(r,t[n])&&r.push(t[n])}function ke(e,t){return be(e,t).length>0}function Ae(e){e.prototype.on=function(e,t){ve(this,e,t)},e.prototype.off=function(e,t){ye(this,e,t)}}function Ce(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Se(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function _e(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Me(e){Ce(e),Se(e)}function Te(e){return e.target||e.srcElement}function $e(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var Le,Ee,Ie=function(){if(o&&s<9)return!1;var e=$("div");return"draggable"in e||"dragDrop"in e}();function Be(e){if(null==Le){var t=$("span","");T(e,$("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Le=t.offsetWidth<=1&&t.offsetHeight>2&&!(o&&s<8))}var r=Le?$("span",""):$("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function De(e){if(null!=Ee)return Ee;var t=T(e,document.createTextNode("AخA")),r=S(t,0,1).getBoundingClientRect(),n=S(t,1,2).getBoundingClientRect();return M(e),!(!r||r.left==r.right)&&(Ee=n.right-r.right<3)}var He=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var a=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),o=a.indexOf("\r");-1!=o?(r.push(a.slice(0,o)),t+=o+1):(r.push(a),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},Oe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Pe=function(){var e=$("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Re=null;function Ve(e){if(null!=Re)return Re;var t=T(e,$("span","x")),r=t.getBoundingClientRect(),n=S(t,0,1).getBoundingClientRect();return Re=Math.abs(r.left-n.left)>1}var Ne={},Fe={};function je(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ne[e]=t}function qe(e,t){Fe[e]=t}function Ue(e){if("string"==typeof e&&Fe.hasOwnProperty(e))e=Fe[e];else if(e&&"string"==typeof e.name&&Fe.hasOwnProperty(e.name)){var t=Fe[e.name];"string"==typeof t&&(t={name:t}),(e=re(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ue("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ue("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function We(e,t){t=Ue(t);var r=Ne[t.name];if(!r)return We(e,"text/plain");var n=r(e,t);if(Xe.hasOwnProperty(t.name)){var i=Xe[t.name];for(var a in i)i.hasOwnProperty(a)&&(n.hasOwnProperty(a)&&(n["_"+a]=n[a]),n[a]=i[a])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)n[o]=t.modeProps[o];return n}var Xe={};function Ge(e,t){V(t,Xe.hasOwnProperty(e)?Xe[e]:Xe[e]={})}function Ye(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function Ze(e,t){for(var r;e.innerMode&&(r=e.innerMode(t))&&r.mode!=e;)t=r.state,e=r.mode;return r||{mode:e,state:t}}function Ke(e,t,r){return!e.startState||e.startState(t,r)}var Je=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};function Qe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],a=i.chunkSize();if(t<a){r=i;break}t-=a}return r.lines[t]}function et(e,t,r){var n=[],i=t.line;return e.iter(t.line,r.line+1,(function(e){var a=e.text;i==r.line&&(a=a.slice(0,r.ch)),i==t.line&&(a=a.slice(t.ch)),n.push(a),++i})),n}function tt(e,t,r){var n=[];return e.iter(t,r,(function(e){n.push(e.text)})),n}function rt(e,t){var r=t-e.height;if(r)for(var n=e;n;n=n.parent)n.height+=r}function nt(e){if(null==e.parent)return null;for(var t=e.parent,r=j(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var i=0;n.children[i]!=t;++i)r+=n.children[i].chunkSize();return r+t.first}function it(e,t){var r=e.first;e:do{for(var n=0;n<e.children.length;++n){var i=e.children[n],a=i.height;if(t<a){e=i;continue e}t-=a,r+=i.chunkSize()}return r}while(!e.lines);for(var o=0;o<e.lines.length;++o){var s=e.lines[o].height;if(t<s)break;t-=s}return r+o}function at(e,t){return t>=e.first&&t<e.first+e.size}function ot(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function st(e,t,r){if(void 0===r&&(r=null),!(this instanceof st))return new st(e,t,r);this.line=e,this.ch=t,this.sticky=r}function lt(e,t){return e.line-t.line||e.ch-t.ch}function ct(e,t){return e.sticky==t.sticky&&0==lt(e,t)}function ut(e){return st(e.line,e.ch)}function pt(e,t){return lt(e,t)<0?t:e}function dt(e,t){return lt(e,t)<0?e:t}function ht(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function mt(e,t){if(t.line<e.first)return st(e.first,0);var r=e.first+e.size-1;return t.line>r?st(r,Qe(e,r).text.length):gt(t,Qe(e,t.line).text.length)}function gt(e,t){var r=e.ch;return null==r||r>t?st(e.line,t):r<0?st(e.line,0):e}function ft(e,t){for(var r=[],n=0;n<t.length;n++)r[n]=mt(e,t[n]);return r}Je.prototype.eol=function(){return this.pos>=this.string.length},Je.prototype.sol=function(){return this.pos==this.lineStart},Je.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Je.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Je.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Je.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Je.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Je.prototype.skipToEnd=function(){this.pos=this.string.length},Je.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Je.prototype.backUp=function(e){this.pos-=e},Je.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=N(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?N(this.string,this.lineStart,this.tabSize):0)},Je.prototype.indentation=function(){return N(this.string,null,this.tabSize)-(this.lineStart?N(this.string,this.lineStart,this.tabSize):0)},Je.prototype.match=function(e,t,r){if("string"!=typeof e){var n=this.string.slice(this.pos).match(e);return n&&n.index>0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}var i=function(e){return r?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Je.prototype.current=function(){return this.string.slice(this.start,this.pos)},Je.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Je.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Je.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var vt=function(e,t){this.state=e,this.lookAhead=t},bt=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};function yt(e,t,r,n){var i=[e.state.modeGen],a={};Mt(e,t.text,e.doc.mode,r,(function(e,t){return i.push(e,t)}),a,n);for(var o=r.state,s=function(n){r.baseTokens=i;var s=e.state.overlays[n],l=1,c=0;r.state=!0,Mt(e,t.text,s.mode,r,(function(e,t){for(var r=l;c<e;){var n=i[l];n>e&&i.splice(l,1,e,i[l+1],n),l+=2,c=Math.min(e,n)}if(t)if(s.opaque)i.splice(r,l-r,e,"overlay "+t),l=r+2;else for(;r<l;r+=2){var a=i[r+1];i[r+1]=(a?a+" ":"")+"overlay "+t}}),a),r.state=o,r.baseTokens=null,r.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:a.bgClass||a.textClass?a:null}}function xt(e,t,r){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=wt(e,nt(t)),i=t.text.length>e.options.maxHighlightLength&&Ye(e.doc.mode,n.state),a=yt(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=a.styles,a.classes?t.styleClasses=a.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function wt(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new bt(n,!0,t);var a=Tt(e,t,r),o=a>n.first&&Qe(n,a-1).stateAfter,s=o?bt.fromSaved(n,o,a):new bt(n,Ke(n.mode),a);return n.iter(a,t,(function(r){zt(e,r.text,s);var n=s.line;r.stateAfter=n==t-1||n%5==0||n>=i.viewFrom&&n<i.viewTo?s.save():null,s.nextLine()})),r&&(n.modeFrontier=s.line),s}function zt(e,t,r,n){var i=e.doc.mode,a=new Je(t,e.options.tabSize,r);for(a.start=a.pos=n||0,""==t&&kt(i,r.state);!a.eol();)At(i,a,r.state),a.start=a.pos}function kt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var r=Ze(e,t);return r.mode.blankLine?r.mode.blankLine(r.state):void 0}}function At(e,t,r,n){for(var i=0;i<10;i++){n&&(n[0]=Ze(e,r).mode);var a=e.token(t,r);if(t.pos>t.start)return a}throw new Error("Mode "+e.name+" failed to advance stream.")}bt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},bt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},bt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},bt.fromSaved=function(e,t,r){return t instanceof vt?new bt(e,Ye(e.mode,t.state),r,t.lookAhead):new bt(e,Ye(e.mode,t),r)},bt.prototype.save=function(e){var t=!1!==e?Ye(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new vt(t,this.maxLookAhead):t};var Ct=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function St(e,t,r,n){var i,a,o=e.doc,s=o.mode,l=Qe(o,(t=mt(o,t)).line),c=wt(e,t.line,r),u=new Je(l.text,e.options.tabSize,c);for(n&&(a=[]);(n||u.pos<t.ch)&&!u.eol();)u.start=u.pos,i=At(s,u,c.state),n&&a.push(new Ct(u,i,Ye(o.mode,c.state)));return n?a:new Ct(u,i,c.state)}function _t(e,t){if(e)for(;;){var r=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!r)break;e=e.slice(0,r.index)+e.slice(r.index+r[0].length);var n=r[1]?"bgClass":"textClass";null==t[n]?t[n]=r[2]:new RegExp("(?:^|\\s)"+r[2]+"(?:$|\\s)").test(t[n])||(t[n]+=" "+r[2])}return e}function Mt(e,t,r,n,i,a,o){var s=r.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,c=0,u=null,p=new Je(t,e.options.tabSize,n),d=e.options.addModeClass&&[null];for(""==t&&_t(kt(r,n.state),a);!p.eol();){if(p.pos>e.options.maxHighlightLength?(s=!1,o&&zt(e,t,n,p.pos),p.pos=t.length,l=null):l=_t(At(r,p,n.state,d),a),d){var h=d[0].name;h&&(l="m-"+(l?h+" "+l:h))}if(!s||u!=l){for(;c<p.start;)i(c=Math.min(p.start,c+5e3),u);u=l}p.start=p.pos}for(;c<p.pos;){var m=Math.min(p.pos,c+5e3);i(m,u),c=m}}function Tt(e,t,r){for(var n,i,a=e.doc,o=r?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>o;--s){if(s<=a.first)return a.first;var l=Qe(a,s-1),c=l.stateAfter;if(c&&(!r||s+(c instanceof vt?c.lookAhead:0)<=a.modeFrontier))return s;var u=N(l.text,null,e.options.tabSize);(null==i||n>u)&&(i=s-1,n=u)}return i}function $t(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var r=e.first,n=t-1;n>r;n--){var i=Qe(e,n).stateAfter;if(i&&(!(i instanceof vt)||n+i.lookAhead<t)){r=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,r)}}var Lt=!1,Et=!1;function It(){Lt=!0}function Bt(){Et=!0}function Dt(e,t,r){this.marker=e,this.from=t,this.to=r}function Ht(e,t){if(e)for(var r=0;r<e.length;++r){var n=e[r];if(n.marker==t)return n}}function Ot(e,t){for(var r,n=0;n<e.length;++n)e[n]!=t&&(r||(r=[])).push(e[n]);return r}function Pt(e,t,r){var n=r&&window.WeakSet&&(r.markedSpans||(r.markedSpans=new WeakSet));n&&e.markedSpans&&n.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],n&&n.add(e.markedSpans)),t.marker.attachLine(e)}function Rt(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var a=e[i],o=a.marker;if(null==a.from||(o.inclusiveLeft?a.from<=t:a.from<t)||a.from==t&&"bookmark"==o.type&&(!r||!a.marker.insertLeft)){var s=null==a.to||(o.inclusiveRight?a.to>=t:a.to>t);(n||(n=[])).push(new Dt(o,a.from,s?null:a.to))}}return n}function Vt(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var a=e[i],o=a.marker;if(null==a.to||(o.inclusiveRight?a.to>=t:a.to>t)||a.from==t&&"bookmark"==o.type&&(!r||a.marker.insertLeft)){var s=null==a.from||(o.inclusiveLeft?a.from<=t:a.from<t);(n||(n=[])).push(new Dt(o,s?null:a.from-t,null==a.to?null:a.to-t))}}return n}function Nt(e,t){if(t.full)return null;var r=at(e,t.from.line)&&Qe(e,t.from.line).markedSpans,n=at(e,t.to.line)&&Qe(e,t.to.line).markedSpans;if(!r&&!n)return null;var i=t.from.ch,a=t.to.ch,o=0==lt(t.from,t.to),s=Rt(r,i,o),l=Vt(n,a,o),c=1==t.text.length,u=J(t.text).length+(c?i:0);if(s)for(var p=0;p<s.length;++p){var d=s[p];if(null==d.to){var h=Ht(l,d.marker);h?c&&(d.to=null==h.to?null:h.to+u):d.to=i}}if(l)for(var m=0;m<l.length;++m){var g=l[m];null!=g.to&&(g.to+=u),null==g.from?Ht(s,g.marker)||(g.from=u,c&&(s||(s=[])).push(g)):(g.from+=u,c&&(s||(s=[])).push(g))}s&&(s=Ft(s)),l&&l!=s&&(l=Ft(l));var f=[s];if(!c){var v,b=t.text.length-2;if(b>0&&s)for(var y=0;y<s.length;++y)null==s[y].to&&(v||(v=[])).push(new Dt(s[y].marker,null,null));for(var x=0;x<b;++x)f.push(v);f.push(l)}return f}function Ft(e){for(var t=0;t<e.length;++t){var r=e[t];null!=r.from&&r.from==r.to&&!1!==r.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function jt(e,t,r){var n=null;if(e.iter(t.line,r.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var r=e.markedSpans[t].marker;!r.readOnly||n&&-1!=j(n,r)||(n||(n=[])).push(r)}})),!n)return null;for(var i=[{from:t,to:r}],a=0;a<n.length;++a)for(var o=n[a],s=o.find(0),l=0;l<i.length;++l){var c=i[l];if(!(lt(c.to,s.from)<0||lt(c.from,s.to)>0)){var u=[l,1],p=lt(c.from,s.from),d=lt(c.to,s.to);(p<0||!o.inclusiveLeft&&!p)&&u.push({from:c.from,to:s.from}),(d>0||!o.inclusiveRight&&!d)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}function qt(e){var t=e.markedSpans;if(t){for(var r=0;r<t.length;++r)t[r].marker.detachLine(e);e.markedSpans=null}}function Ut(e,t){if(t){for(var r=0;r<t.length;++r)t[r].marker.attachLine(e);e.markedSpans=t}}function Wt(e){return e.inclusiveLeft?-1:0}function Xt(e){return e.inclusiveRight?1:0}function Gt(e,t){var r=e.lines.length-t.lines.length;if(0!=r)return r;var n=e.find(),i=t.find(),a=lt(n.from,i.from)||Wt(e)-Wt(t);if(a)return-a;var o=lt(n.to,i.to)||Xt(e)-Xt(t);return o||t.id-e.id}function Yt(e,t){var r,n=Et&&e.markedSpans;if(n)for(var i=void 0,a=0;a<n.length;++a)(i=n[a]).marker.collapsed&&null==(t?i.from:i.to)&&(!r||Gt(r,i.marker)<0)&&(r=i.marker);return r}function Zt(e){return Yt(e,!0)}function Kt(e){return Yt(e,!1)}function Jt(e,t){var r,n=Et&&e.markedSpans;if(n)for(var i=0;i<n.length;++i){var a=n[i];a.marker.collapsed&&(null==a.from||a.from<t)&&(null==a.to||a.to>t)&&(!r||Gt(r,a.marker)<0)&&(r=a.marker)}return r}function Qt(e,t,r,n,i){var a=Qe(e,t),o=Et&&a.markedSpans;if(o)for(var s=0;s<o.length;++s){var l=o[s];if(l.marker.collapsed){var c=l.marker.find(0),u=lt(c.from,r)||Wt(l.marker)-Wt(i),p=lt(c.to,n)||Xt(l.marker)-Xt(i);if(!(u>=0&&p<=0||u<=0&&p>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?lt(c.to,r)>=0:lt(c.to,r)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?lt(c.from,n)<=0:lt(c.from,n)<0)))return!0}}}function er(e){for(var t;t=Zt(e);)e=t.find(-1,!0).line;return e}function tr(e){for(var t;t=Kt(e);)e=t.find(1,!0).line;return e}function rr(e){for(var t,r;t=Kt(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function nr(e,t){var r=Qe(e,t),n=er(r);return r==n?t:nt(n)}function ir(e,t){if(t>e.lastLine())return t;var r,n=Qe(e,t);if(!ar(e,n))return t;for(;r=Kt(n);)n=r.find(1,!0).line;return nt(n)+1}function ar(e,t){var r=Et&&t.markedSpans;if(r)for(var n=void 0,i=0;i<r.length;++i)if((n=r[i]).marker.collapsed){if(null==n.from)return!0;if(!n.marker.widgetNode&&0==n.from&&n.marker.inclusiveLeft&&or(e,t,n))return!0}}function or(e,t,r){if(null==r.to){var n=r.marker.find(1,!0);return or(e,n.line,Ht(n.line.markedSpans,r.marker))}if(r.marker.inclusiveRight&&r.to==t.text.length)return!0;for(var i=void 0,a=0;a<t.markedSpans.length;++a)if((i=t.markedSpans[a]).marker.collapsed&&!i.marker.widgetNode&&i.from==r.to&&(null==i.to||i.to!=r.from)&&(i.marker.inclusiveLeft||r.marker.inclusiveRight)&&or(e,t,i))return!0}function sr(e){for(var t=0,r=(e=er(e)).parent,n=0;n<r.lines.length;++n){var i=r.lines[n];if(i==e)break;t+=i.height}for(var a=r.parent;a;a=(r=a).parent)for(var o=0;o<a.children.length;++o){var s=a.children[o];if(s==r)break;t+=s.height}return t}function lr(e){if(0==e.height)return 0;for(var t,r=e.text.length,n=e;t=Zt(n);){var i=t.find(0,!0);n=i.from.line,r+=i.from.ch-i.to.ch}for(n=e;t=Kt(n);){var a=t.find(0,!0);r-=n.text.length-a.from.ch,r+=(n=a.to.line).text.length-a.to.ch}return r}function cr(e){var t=e.display,r=e.doc;t.maxLine=Qe(r,r.first),t.maxLineLength=lr(t.maxLine),t.maxLineChanged=!0,r.iter((function(e){var r=lr(e);r>t.maxLineLength&&(t.maxLineLength=r,t.maxLine=e)}))}var ur=function(e,t,r){this.text=e,Ut(this,t),this.height=r?r(this):1};function pr(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),qt(e),Ut(e,r);var i=n?n(e):1;i!=e.height&&rt(e,i)}function dr(e){e.parent=null,qt(e)}ur.prototype.lineNo=function(){return nt(this)},Ae(ur);var hr={},mr={};function gr(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?mr:hr;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function fr(e,t){var r=L("span",null,null,l?"padding-right: .1px":null),n={pre:L("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var a=i?t.rest[i-1]:t.line,o=void 0;n.pos=0,n.addToken=br,De(e.display.measure)&&(o=ge(a,e.doc.direction))&&(n.addToken=xr(n.addToken,o)),n.map=[],zr(a,n,xt(e,a,t!=e.display.externalMeasured&&nt(a))),a.styleClasses&&(a.styleClasses.bgClass&&(n.bgClass=D(a.styleClasses.bgClass,n.bgClass||"")),a.styleClasses.textClass&&(n.textClass=D(a.styleClasses.textClass,n.textClass||""))),0==n.map.length&&n.map.push(0,0,n.content.appendChild(Be(e.display.measure))),0==i?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=n.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return xe(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=D(n.pre.className,n.textClass||"")),n}function vr(e){var t=$("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function br(e,t,r,n,i,a,l){if(t){var c,u=e.splitSpaces?yr(t,e.trailingSpace):t,p=e.cm.state.specialChars,d=!1;if(p.test(t)){c=document.createDocumentFragment();for(var h=0;;){p.lastIndex=h;var m=p.exec(t),g=m?m.index-h:t.length-h;if(g){var f=document.createTextNode(u.slice(h,h+g));o&&s<9?c.appendChild($("span",[f])):c.appendChild(f),e.map.push(e.pos,e.pos+g,f),e.col+=g,e.pos+=g}if(!m)break;h+=g+1;var v=void 0;if("\t"==m[0]){var b=e.cm.options.tabSize,y=b-e.col%b;(v=c.appendChild($("span",K(y),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=y}else"\r"==m[0]||"\n"==m[0]?((v=c.appendChild($("span","\r"==m[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",m[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(m[0])).setAttribute("cm-text",m[0]),o&&s<9?c.appendChild($("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),o&&s<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),r||n||i||d||a||l){var x=r||"";n&&(x+=n),i&&(x+=i);var w=$("span",[c],x,a);if(l)for(var z in l)l.hasOwnProperty(z)&&"style"!=z&&"class"!=z&&w.setAttribute(z,l[z]);return e.content.appendChild(w)}e.content.appendChild(c)}}function yr(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",i=0;i<e.length;i++){var a=e.charAt(i);" "!=a||!r||i!=e.length-1&&32!=e.charCodeAt(i+1)||(a=" "),n+=a,r=" "==a}return n}function xr(e,t){return function(r,n,i,a,o,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var c=r.pos,u=c+n.length;;){for(var p=void 0,d=0;d<t.length&&!((p=t[d]).to>c&&p.from<=c);d++);if(p.to>=u)return e(r,n,i,a,o,s,l);e(r,n.slice(0,p.to-c),i,a,null,s,l),a=null,n=n.slice(p.to-c),c=p.to}}}function wr(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function zr(e,t,r){var n=e.markedSpans,i=e.text,a=0;if(n)for(var o,s,l,c,u,p,d,h=i.length,m=0,g=1,f="",v=0;;){if(v==m){l=c=u=s="",d=null,p=null,v=1/0;for(var b=[],y=void 0,x=0;x<n.length;++x){var w=n[x],z=w.marker;if("bookmark"==z.type&&w.from==m&&z.widgetNode)b.push(z);else if(w.from<=m&&(null==w.to||w.to>m||z.collapsed&&w.to==m&&w.from==m)){if(null!=w.to&&w.to!=m&&v>w.to&&(v=w.to,c=""),z.className&&(l+=" "+z.className),z.css&&(s=(s?s+";":"")+z.css),z.startStyle&&w.from==m&&(u+=" "+z.startStyle),z.endStyle&&w.to==v&&(y||(y=[])).push(z.endStyle,w.to),z.title&&((d||(d={})).title=z.title),z.attributes)for(var k in z.attributes)(d||(d={}))[k]=z.attributes[k];z.collapsed&&(!p||Gt(p.marker,z)<0)&&(p=w)}else w.from>m&&v>w.from&&(v=w.from)}if(y)for(var A=0;A<y.length;A+=2)y[A+1]==v&&(c+=" "+y[A]);if(!p||p.from==m)for(var C=0;C<b.length;++C)wr(t,0,b[C]);if(p&&(p.from||0)==m){if(wr(t,(null==p.to?h+1:p.to)-m,p.marker,null==p.from),null==p.to)return;p.to==m&&(p=!1)}}if(m>=h)break;for(var S=Math.min(h,v);;){if(f){var _=m+f.length;if(!p){var M=_>S?f.slice(0,S-m):f;t.addToken(t,M,o?o+l:l,u,m+M.length==v?c:"",s,d)}if(_>=S){f=f.slice(S-m),m=S;break}m=_,u=""}f=i.slice(a,a=r[g++]),o=gr(r[g++],t.cm.options)}}else for(var T=1;T<r.length;T+=2)t.addToken(t,i.slice(a,a=r[T]),gr(r[T+1],t.cm.options))}function kr(e,t,r){this.line=t,this.rest=rr(t),this.size=this.rest?nt(J(this.rest))-r+1:1,this.node=this.text=null,this.hidden=ar(e,t)}function Ar(e,t,r){for(var n,i=[],a=t;a<r;a=n){var o=new kr(e.doc,Qe(e.doc,a),a);n=a+o.size,i.push(o)}return i}var Cr=null;function Sr(e){Cr?Cr.ops.push(e):e.ownsGroup=Cr={ops:[e],delayedCallbacks:[]}}function _r(e){var t=e.delayedCallbacks,r=0;do{for(;r<t.length;r++)t[r].call(null);for(var n=0;n<e.ops.length;n++){var i=e.ops[n];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(r<t.length)}function Mr(e,t){var r=e.ownsGroup;if(r)try{_r(r)}finally{Cr=null,t(r)}}var Tr=null;function $r(e,t){var r=be(e,t);if(r.length){var n,i=Array.prototype.slice.call(arguments,2);Cr?n=Cr.delayedCallbacks:Tr?n=Tr:(n=Tr=[],setTimeout(Lr,0));for(var a=function(e){n.push((function(){return r[e].apply(null,i)}))},o=0;o<r.length;++o)a(o)}}function Lr(){var e=Tr;Tr=null;for(var t=0;t<e.length;++t)e[t]()}function Er(e,t,r,n){for(var i=0;i<t.changes.length;i++){var a=t.changes[i];"text"==a?Hr(e,t):"gutter"==a?Pr(e,t,r,n):"class"==a?Or(e,t):"widget"==a&&Rr(e,t,n)}t.changes=null}function Ir(e){return e.node==e.text&&(e.node=$("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),o&&s<8&&(e.node.style.zIndex=2)),e.node}function Br(e,t){var r=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(r&&(r+=" CodeMirror-linebackground"),t.background)r?t.background.className=r:(t.background.parentNode.removeChild(t.background),t.background=null);else if(r){var n=Ir(t);t.background=n.insertBefore($("div",null,r),n.firstChild),e.display.input.setUneditable(t.background)}}function Dr(e,t){var r=e.display.externalMeasured;return r&&r.line==t.line?(e.display.externalMeasured=null,t.measure=r.measure,r.built):fr(e,t)}function Hr(e,t){var r=t.text.className,n=Dr(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,Or(e,t)):r&&(t.text.className=r)}function Or(e,t){Br(e,t),t.line.wrapClass?Ir(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var r=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=r||""}function Pr(e,t,r,n){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=Ir(t);t.gutterBackground=$("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var a=t.line.gutterMarkers;if(e.options.lineNumbers||a){var o=Ir(t),s=t.gutter=$("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),o.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||a&&a["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild($("div",ot(e.options,r),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),a)for(var l=0;l<e.display.gutterSpecs.length;++l){var c=e.display.gutterSpecs[l].className,u=a.hasOwnProperty(c)&&a[c];u&&s.appendChild($("div",[u],"CodeMirror-gutter-elt","left: "+n.gutterLeft[c]+"px; width: "+n.gutterWidth[c]+"px"))}}}function Rr(e,t,r){t.alignable&&(t.alignable=null);for(var n=C("CodeMirror-linewidget"),i=t.node.firstChild,a=void 0;i;i=a)a=i.nextSibling,n.test(i.className)&&t.node.removeChild(i);Nr(e,t,r)}function Vr(e,t,r,n){var i=Dr(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Or(e,t),Pr(e,t,r,n),Nr(e,t,n),t.node}function Nr(e,t,r){if(Fr(e,t.line,t,r,!0),t.rest)for(var n=0;n<t.rest.length;n++)Fr(e,t.rest[n],t,r,!1)}function Fr(e,t,r,n,i){if(t.widgets)for(var a=Ir(r),o=0,s=t.widgets;o<s.length;++o){var l=s[o],c=$("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),jr(l,c,r,n),e.display.input.setUneditable(c),i&&l.above?a.insertBefore(c,r.gutter||r.text):a.appendChild(c),$r(l,"redraw")}}function jr(e,t,r,n){if(e.noHScroll){(r.alignable||(r.alignable=[])).push(t);var i=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(i-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function qr(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!E(document.body,e.node)){var r="position: relative;";e.coverGutter&&(r+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(r+="width: "+t.display.wrapper.clientWidth+"px;"),T(t.display.measure,$("div",[e.node],null,r))}return e.height=e.node.parentNode.offsetHeight}function Ur(e,t){for(var r=Te(t);r!=e.wrapper;r=r.parentNode)if(!r||1==r.nodeType&&"true"==r.getAttribute("cm-ignore-events")||r.parentNode==e.sizer&&r!=e.mover)return!0}function Wr(e){return e.lineSpace.offsetTop}function Xr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Gr(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=T(e.measure,$("pre","x","CodeMirror-line-like")),r=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(r.paddingLeft),right:parseInt(r.paddingRight)};return isNaN(n.left)||isNaN(n.right)||(e.cachedPaddingH=n),n}function Yr(e){return q-e.display.nativeBarWidth}function Zr(e){return e.display.scroller.clientWidth-Yr(e)-e.display.barWidth}function Kr(e){return e.display.scroller.clientHeight-Yr(e)-e.display.barHeight}function Jr(e,t,r){var n=e.options.lineWrapping,i=n&&Zr(e);if(!t.measure.heights||n&&t.measure.width!=i){var a=t.measure.heights=[];if(n){t.measure.width=i;for(var o=t.text.firstChild.getClientRects(),s=0;s<o.length-1;s++){var l=o[s],c=o[s+1];Math.abs(l.bottom-c.bottom)>2&&a.push((l.bottom+c.top)/2-r.top)}}a.push(r.bottom-r.top)}}function Qr(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var i=0;i<e.rest.length;i++)if(nt(e.rest[i])>r)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function en(e,t){var r=nt(t=er(t)),n=e.display.externalMeasured=new kr(e.doc,t,r);n.lineN=r;var i=n.built=fr(e,n);return n.text=i.pre,T(e.display.lineMeasure,i.pre),n}function tn(e,t,r,n){return an(e,nn(e,t),r,n)}function rn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Pn(e,t)];var r=e.display.externalMeasured;return r&&t>=r.lineN&&t<r.lineN+r.size?r:void 0}function nn(e,t){var r=nt(t),n=rn(e,r);n&&!n.text?n=null:n&&n.changes&&(Er(e,n,r,In(e)),e.curOp.forceUpdate=!0),n||(n=en(e,t));var i=Qr(n,t,r);return{line:t,view:n,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function an(e,t,r,n,i){t.before&&(r=-1);var a,o=r+(n||"");return t.cache.hasOwnProperty(o)?a=t.cache[o]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Jr(e,t.view,t.rect),t.hasHeights=!0),(a=un(e,t,r,n)).bogus||(t.cache[o]=a)),{left:a.left,right:a.right,top:i?a.rtop:a.top,bottom:i?a.rbottom:a.bottom}}var on,sn={left:0,right:0,top:0,bottom:0};function ln(e,t,r){for(var n,i,a,o,s,l,c=0;c<e.length;c+=3)if(s=e[c],l=e[c+1],t<s?(i=0,a=1,o="left"):t<l?a=1+(i=t-s):(c==e.length-3||t==l&&e[c+3]>t)&&(i=(a=l-s)-1,t>=l&&(o="right")),null!=i){if(n=e[c+2],s==l&&r==(n.insertLeft?"left":"right")&&(o=r),"left"==r&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)n=e[2+(c-=3)],o="left";if("right"==r&&i==l-s)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)n=e[(c+=3)+2],o="right";break}return{node:n,start:i,end:a,collapse:o,coverStart:s,coverEnd:l}}function cn(e,t){var r=sn;if("left"==t)for(var n=0;n<e.length&&(r=e[n]).left==r.right;n++);else for(var i=e.length-1;i>=0&&(r=e[i]).left==r.right;i--);return r}function un(e,t,r,n){var i,a=ln(t.map,r,n),l=a.node,c=a.start,u=a.end,p=a.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;c&&le(t.line.text.charAt(a.coverStart+c));)--c;for(;a.coverStart+u<a.coverEnd&&le(t.line.text.charAt(a.coverStart+u));)++u;if((i=o&&s<9&&0==c&&u==a.coverEnd-a.coverStart?l.parentNode.getBoundingClientRect():cn(S(l,c,u).getClientRects(),n)).left||i.right||0==c)break;u=c,c-=1,p="right"}o&&s<11&&(i=pn(e.display.measure,i))}else{var h;c>0&&(p=n="right"),i=e.options.lineWrapping&&(h=l.getClientRects()).length>1?h["right"==n?h.length-1:0]:l.getBoundingClientRect()}if(o&&s<9&&!c&&(!i||!i.left&&!i.right)){var m=l.parentNode.getClientRects()[0];i=m?{left:m.left,right:m.left+En(e.display),top:m.top,bottom:m.bottom}:sn}for(var g=i.top-t.rect.top,f=i.bottom-t.rect.top,v=(g+f)/2,b=t.view.measure.heights,y=0;y<b.length-1&&!(v<b[y]);y++);var x=y?b[y-1]:0,w=b[y],z={left:("right"==p?i.right:i.left)-t.rect.left,right:("left"==p?i.left:i.right)-t.rect.left,top:x,bottom:w};return i.left||i.right||(z.bogus=!0),e.options.singleCursorHeightPerLine||(z.rtop=g,z.rbottom=f),z}function pn(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Ve(e))return t;var r=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*r,right:t.right*r,top:t.top*n,bottom:t.bottom*n}}function dn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function hn(e){e.display.externalMeasure=null,M(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)dn(e.display.view[t])}function mn(e){hn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function gn(e){return u&&v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function fn(e){return u&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function vn(e){var t=er(e).widgets,r=0;if(t)for(var n=0;n<t.length;++n)t[n].above&&(r+=qr(t[n]));return r}function bn(e,t,r,n,i){if(!i){var a=vn(t);r.top+=a,r.bottom+=a}if("line"==n)return r;n||(n="local");var o=sr(t);if("local"==n?o+=Wr(e.display):o-=e.display.viewOffset,"page"==n||"window"==n){var s=e.display.lineSpace.getBoundingClientRect();o+=s.top+("window"==n?0:fn(O(e)));var l=s.left+("window"==n?0:gn(O(e)));r.left+=l,r.right+=l}return r.top+=o,r.bottom+=o,r}function yn(e,t,r){if("div"==r)return t;var n=t.left,i=t.top;if("page"==r)n-=gn(O(e)),i-=fn(O(e));else if("local"==r||!r){var a=e.display.sizer.getBoundingClientRect();n+=a.left,i+=a.top}var o=e.display.lineSpace.getBoundingClientRect();return{left:n-o.left,top:i-o.top}}function xn(e,t,r,n,i){return n||(n=Qe(e.doc,t.line)),bn(e,n,tn(e,n,t.ch,i),r)}function wn(e,t,r,n,i,a){function o(t,o){var s=an(e,i,t,o?"right":"left",a);return o?s.left=s.right:s.right=s.left,bn(e,n,s,r)}n=n||Qe(e.doc,t.line),i||(i=nn(e,n));var s=ge(n,e.doc.direction),l=t.ch,c=t.sticky;if(l>=n.text.length?(l=n.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return o("before"==c?l-1:l,"before"==c);function u(e,t,r){return o(r?e-1:e,1==s[t].level!=r)}var p=he(s,l,c),d=de,h=u(l,p,"before"==c);return null!=d&&(h.other=u(l,d,"before"!=c)),h}function zn(e,t){var r=0;t=mt(e.doc,t),e.options.lineWrapping||(r=En(e.display)*t.ch);var n=Qe(e.doc,t.line),i=sr(n)+Wr(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function kn(e,t,r,n,i){var a=st(e,t,r);return a.xRel=i,n&&(a.outside=n),a}function An(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return kn(n.first,0,null,-1,-1);var i=it(n,r),a=n.first+n.size-1;if(i>a)return kn(n.first+n.size-1,Qe(n,a).text.length,null,1,1);t<0&&(t=0);for(var o=Qe(n,i);;){var s=Mn(e,o,i,t,r),l=Jt(o,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;o=Qe(n,i=c.line)}}function Cn(e,t,r,n){n-=vn(t);var i=t.text.length,a=ue((function(t){return an(e,r,t-1).bottom<=n}),i,0);return i=ue((function(t){return an(e,r,t).top>n}),a,i),{begin:a,end:i}}function Sn(e,t,r,n){return r||(r=nn(e,t)),Cn(e,t,r,bn(e,t,an(e,r,n),"line").top)}function _n(e,t,r,n){return!(e.bottom<=r)&&(e.top>r||(n?e.left:e.right)>t)}function Mn(e,t,r,n,i){i-=sr(t);var a=nn(e,t),o=vn(t),s=0,l=t.text.length,c=!0,u=ge(t,e.doc.direction);if(u){var p=(e.options.lineWrapping?$n:Tn)(e,t,r,a,u,n,i);s=(c=1!=p.level)?p.from:p.to-1,l=c?p.to:p.from-1}var d,h,m=null,g=null,f=ue((function(t){var r=an(e,a,t);return r.top+=o,r.bottom+=o,!!_n(r,n,i,!1)&&(r.top<=i&&r.left<=n&&(m=t,g=r),!0)}),s,l),v=!1;if(g){var b=n-g.left<g.right-n,y=b==c;f=m+(y?0:1),h=y?"after":"before",d=b?g.left:g.right}else{c||f!=l&&f!=s||f++,h=0==f?"after":f==t.text.length?"before":an(e,a,f-(c?1:0)).bottom+o<=i==c?"after":"before";var x=wn(e,st(r,f,h),"line",t,a);d=x.left,v=i<x.top?-1:i>=x.bottom?1:0}return kn(r,f=ce(t.text,f,1),h,v,n-d)}function Tn(e,t,r,n,i,a,o){var s=ue((function(s){var l=i[s],c=1!=l.level;return _n(wn(e,st(r,c?l.to:l.from,c?"before":"after"),"line",t,n),a,o,!0)}),0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=wn(e,st(r,c?l.from:l.to,c?"after":"before"),"line",t,n);_n(u,a,o,!0)&&u.top>o&&(l=i[s-1])}return l}function $n(e,t,r,n,i,a,o){var s=Cn(e,t,n,o),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,p=null,d=0;d<i.length;d++){var h=i[d];if(!(h.from>=c||h.to<=l)){var m=an(e,n,1!=h.level?Math.min(c,h.to)-1:Math.max(l,h.from)).right,g=m<a?a-m+1e9:m-a;(!u||p>g)&&(u=h,p=g)}}return u||(u=i[i.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function Ln(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==on){on=$("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)on.appendChild(document.createTextNode("x")),on.appendChild($("br"));on.appendChild(document.createTextNode("x"))}T(e.measure,on);var r=on.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),M(e.measure),r||1}function En(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=$("span","xxxxxxxxxx"),r=$("pre",[t],"CodeMirror-line-like");T(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function In(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,a=t.gutters.firstChild,o=0;a;a=a.nextSibling,++o){var s=e.display.gutterSpecs[o].className;r[s]=a.offsetLeft+a.clientLeft+i,n[s]=a.clientWidth}return{fixedPos:Bn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Bn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Dn(e){var t=Ln(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/En(e.display)-3);return function(i){if(ar(e.doc,i))return 0;var a=0;if(i.widgets)for(var o=0;o<i.widgets.length;o++)i.widgets[o].height&&(a+=i.widgets[o].height);return r?a+(Math.ceil(i.text.length/n)||1)*t:a+t}}function Hn(e){var t=e.doc,r=Dn(e);t.iter((function(e){var t=r(e);t!=e.height&&rt(e,t)}))}function On(e,t,r,n){var i=e.display;if(!r&&"true"==Te(t).getAttribute("cm-not-content"))return null;var a,o,s=i.lineSpace.getBoundingClientRect();try{a=t.clientX-s.left,o=t.clientY-s.top}catch(e){return null}var l,c=An(e,a,o);if(n&&c.xRel>0&&(l=Qe(e.doc,c.line).text).length==c.ch){var u=N(l,l.length,e.options.tabSize)-l.length;c=st(c.line,Math.max(0,Math.round((a-Gr(e.display).left)/En(e.display))-u))}return c}function Pn(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;n<r.length;n++)if((t-=r[n].size)<0)return n}function Rn(e,t,r,n){null==t&&(t=e.doc.first),null==r&&(r=e.doc.first+e.doc.size),n||(n=0);var i=e.display;if(n&&r<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Et&&nr(e.doc,t)<i.viewTo&&Nn(e);else if(r<=i.viewFrom)Et&&ir(e.doc,r+n)>i.viewFrom?Nn(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)Nn(e);else if(t<=i.viewFrom){var a=Fn(e,r,r+n,1);a?(i.view=i.view.slice(a.index),i.viewFrom=a.lineN,i.viewTo+=n):Nn(e)}else if(r>=i.viewTo){var o=Fn(e,t,t,-1);o?(i.view=i.view.slice(0,o.index),i.viewTo=o.lineN):Nn(e)}else{var s=Fn(e,t,t,-1),l=Fn(e,r,r+n,1);s&&l?(i.view=i.view.slice(0,s.index).concat(Ar(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=n):Nn(e)}var c=i.externalMeasured;c&&(r<c.lineN?c.lineN+=n:t<c.lineN+c.size&&(i.externalMeasured=null))}function Vn(e,t,r){e.curOp.viewChanged=!0;var n=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(n.externalMeasured=null),!(t<n.viewFrom||t>=n.viewTo)){var a=n.view[Pn(e,t)];if(null!=a.node){var o=a.changes||(a.changes=[]);-1==j(o,r)&&o.push(r)}}}function Nn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Fn(e,t,r,n){var i,a=Pn(e,t),o=e.display.view;if(!Et||r==e.doc.first+e.doc.size)return{index:a,lineN:r};for(var s=e.display.viewFrom,l=0;l<a;l++)s+=o[l].size;if(s!=t){if(n>0){if(a==o.length-1)return null;i=s+o[a].size-t,a++}else i=s-t;t+=i,r+=i}for(;nr(e.doc,r)!=r;){if(a==(n<0?0:o.length-1))return null;r+=n*o[a-(n<0?1:0)].size,a+=n}return{index:a,lineN:r}}function jn(e,t,r){var n=e.display;0==n.view.length||t>=n.viewTo||r<=n.viewFrom?(n.view=Ar(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=Ar(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(Pn(e,t))),n.viewFrom=t,n.viewTo<r?n.view=n.view.concat(Ar(e,n.viewTo,r)):n.viewTo>r&&(n.view=n.view.slice(0,Pn(e,r)))),n.viewTo=r}function qn(e){for(var t=e.display.view,r=0,n=0;n<t.length;n++){var i=t[n];i.hidden||i.node&&!i.changes||++r}return r}function Un(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Wn(e,t){void 0===t&&(t=!0);var r=e.doc,n={},i=n.cursors=document.createDocumentFragment(),a=n.selection=document.createDocumentFragment(),o=e.options.$customCursor;o&&(t=!0);for(var s=0;s<r.sel.ranges.length;s++)if(t||s!=r.sel.primIndex){var l=r.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var c=l.empty();if(o){var u=o(e,l);u&&Xn(e,u,i)}else(c||e.options.showCursorWhenSelecting)&&Xn(e,l.head,i);c||Yn(e,l,a)}}return n}function Xn(e,t,r){var n=wn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=r.appendChild($("div"," ","CodeMirror-cursor"));if(i.style.left=n.left+"px",i.style.top=n.top+"px",i.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var a=xn(e,t,"div",null,null),o=a.right-a.left;i.style.width=(o>0?o:e.defaultCharWidth())+"px"}if(n.other){var s=r.appendChild($("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=n.other.left+"px",s.style.top=n.other.top+"px",s.style.height=.85*(n.other.bottom-n.other.top)+"px"}}function Gn(e,t){return e.top-t.top||e.left-t.left}function Yn(e,t,r){var n=e.display,i=e.doc,a=document.createDocumentFragment(),o=Gr(e.display),s=o.left,l=Math.max(n.sizerWidth,Zr(e)-n.sizer.offsetLeft)-o.right,c="ltr"==i.direction;function u(e,t,r,n){t<0&&(t=0),t=Math.round(t),n=Math.round(n),a.appendChild($("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==r?l-e:r)+"px;\n height: "+(n-t)+"px"))}function p(t,r,n){var a,o,p=Qe(i,t),d=p.text.length;function h(r,n){return xn(e,st(t,r),"div",p,n)}function m(t,r,n){var i=Sn(e,p,null,t),a="ltr"==r==("after"==n)?"left":"right";return h("after"==n?i.begin:i.end-(/\s/.test(p.text.charAt(i.end-1))?2:1),a)[a]}var g=ge(p,i.direction);return pe(g,r||0,null==n?d:n,(function(e,t,i,p){var f="ltr"==i,v=h(e,f?"left":"right"),b=h(t-1,f?"right":"left"),y=null==r&&0==e,x=null==n&&t==d,w=0==p,z=!g||p==g.length-1;if(b.top-v.top<=3){var k=(c?x:y)&&z,A=(c?y:x)&&w?s:(f?v:b).left,C=k?l:(f?b:v).right;u(A,v.top,C-A,v.bottom)}else{var S,_,M,T;f?(S=c&&y&&w?s:v.left,_=c?l:m(e,i,"before"),M=c?s:m(t,i,"after"),T=c&&x&&z?l:b.right):(S=c?m(e,i,"before"):s,_=!c&&y&&w?l:v.right,M=!c&&x&&z?s:b.left,T=c?m(t,i,"after"):l),u(S,v.top,_-S,v.bottom),v.bottom<b.top&&u(s,v.bottom,null,b.top),u(M,b.top,T-M,b.bottom)}(!a||Gn(v,a)<0)&&(a=v),Gn(b,a)<0&&(a=b),(!o||Gn(v,o)<0)&&(o=v),Gn(b,o)<0&&(o=b)})),{start:a,end:o}}var d=t.from(),h=t.to();if(d.line==h.line)p(d.line,d.ch,h.ch);else{var m=Qe(i,d.line),g=Qe(i,h.line),f=er(m)==er(g),v=p(d.line,d.ch,f?m.text.length+1:null).end,b=p(h.line,f?0:null,h.ch).start;f&&(v.top<b.top-2?(u(v.right,v.top,null,v.bottom),u(s,b.top,b.left,b.bottom)):u(v.right,v.top,b.left-v.right,v.bottom)),v.bottom<b.top&&u(s,v.bottom,null,b.top)}r.appendChild(a)}function Zn(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var r=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||ei(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Kn(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Qn(e))}function Jn(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&ei(e))}),100)}function Qn(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(xe(e,"focus",e,t),e.state.focused=!0,B(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Zn(e))}function ei(e,t){e.state.delayingBlurEvent||(e.state.focused&&(xe(e,"blur",e,t),e.state.focused=!1,_(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function ti(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,a=0,l=0;l<t.view.length;l++){var c=t.view[l],u=e.options.lineWrapping,p=void 0,d=0;if(!c.hidden){if(i+=c.line.height,o&&s<8){var h=c.node.offsetTop+c.node.offsetHeight;p=h-r,r=h}else{var m=c.node.getBoundingClientRect();p=m.bottom-m.top,!u&&c.text.firstChild&&(d=c.text.firstChild.getBoundingClientRect().right-m.left-1)}var g=c.line.height-p;if((g>.005||g<-.005)&&(i<n&&(a-=g),rt(c.line,p),ri(c.line),c.rest))for(var f=0;f<c.rest.length;f++)ri(c.rest[f]);if(d>e.display.sizerWidth){var v=Math.ceil(d/En(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=c.line,e.display.maxLineChanged=!0)}}}Math.abs(a)>2&&(t.scroller.scrollTop+=a)}function ri(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var r=e.widgets[t],n=r.node.parentNode;n&&(r.height=n.offsetHeight)}}function ni(e,t,r){var n=r&&null!=r.top?Math.max(0,r.top):e.scroller.scrollTop;n=Math.floor(n-Wr(e));var i=r&&null!=r.bottom?r.bottom:n+e.wrapper.clientHeight,a=it(t,n),o=it(t,i);if(r&&r.ensure){var s=r.ensure.from.line,l=r.ensure.to.line;s<a?(a=s,o=it(t,sr(Qe(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=o&&(a=it(t,sr(Qe(t,l))-e.wrapper.clientHeight),o=l)}return{from:a,to:Math.max(o,a+1)}}function ii(e,t){if(!we(e,"scrollCursorIntoView")){var r=e.display,n=r.sizer.getBoundingClientRect(),i=null,a=r.wrapper.ownerDocument;if(t.top+n.top<0?i=!0:t.bottom+n.top>(a.defaultView.innerHeight||a.documentElement.clientHeight)&&(i=!1),null!=i&&!g){var o=$("div","",null,"position: absolute;\n top: "+(t.top-r.viewOffset-Wr(e.display))+"px;\n height: "+(t.bottom-t.top+Yr(e)+r.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function ai(e,t,r,n){var i;null==n&&(n=0),e.options.lineWrapping||t!=r||(r="before"==t.sticky?st(t.line,t.ch+1,"before"):t,t=t.ch?st(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var a=0;a<5;a++){var o=!1,s=wn(e,t),l=r&&r!=t?wn(e,r):s,c=si(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-n,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+n}),u=e.doc.scrollTop,p=e.doc.scrollLeft;if(null!=c.scrollTop&&(mi(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(o=!0)),null!=c.scrollLeft&&(fi(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-p)>1&&(o=!0)),!o)break}return i}function oi(e,t){var r=si(e,t);null!=r.scrollTop&&mi(e,r.scrollTop),null!=r.scrollLeft&&fi(e,r.scrollLeft)}function si(e,t){var r=e.display,n=Ln(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:r.scroller.scrollTop,a=Kr(e),o={};t.bottom-t.top>a&&(t.bottom=t.top+a);var s=e.doc.height+Xr(r),l=t.top<n,c=t.bottom>s-n;if(t.top<i)o.scrollTop=l?0:t.top;else if(t.bottom>i+a){var u=Math.min(t.top,(c?s:t.bottom)-a);u!=i&&(o.scrollTop=u)}var p=e.options.fixedGutter?0:r.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft-p,h=Zr(e)-r.gutters.offsetWidth,m=t.right-t.left>h;return m&&(t.right=t.left+h),t.left<10?o.scrollLeft=0:t.left<d?o.scrollLeft=Math.max(0,t.left+p-(m?0:10)):t.right>h+d-3&&(o.scrollLeft=t.right+(m?0:10)-h),o}function li(e,t){null!=t&&(di(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ci(e){di(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ui(e,t,r){null==t&&null==r||di(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function pi(e,t){di(e),e.curOp.scrollToPos=t}function di(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,hi(e,zn(e,t.from),zn(e,t.to),t.margin))}function hi(e,t,r,n){var i=si(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});ui(e,i.scrollLeft,i.scrollTop)}function mi(e,t){Math.abs(e.doc.scrollTop-t)<2||(r||Ui(e,{top:t}),gi(e,t,!0),r&&Ui(e),Oi(e,100))}function gi(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function fi(e,t,r,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,Yi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function vi(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+Xr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+Yr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var bi=function(e,t,r){this.cm=r;var n=this.vert=$("div",[$("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=$("div",[$("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),ve(n,"scroll",(function(){n.clientHeight&&t(n.scrollTop,"vertical")})),ve(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,o&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};bi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var a=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+a)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==n&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},bi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},bi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},bi.prototype.zeroWidthHack=function(){var e=y&&!m?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new F,this.disableVert=new F},bi.prototype.enableZeroWidthBar=function(e,t,r){function n(){var i=e.getBoundingClientRect();("vert"==r?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,n)}e.style.visibility="",t.set(1e3,n)},bi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var yi=function(){};function xi(e,t){t||(t=vi(e));var r=e.display.barWidth,n=e.display.barHeight;wi(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&ti(e),wi(e,vi(e)),r=e.display.barWidth,n=e.display.barHeight}function wi(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}yi.prototype.update=function(){return{bottom:0,right:0}},yi.prototype.setScrollLeft=function(){},yi.prototype.setScrollTop=function(){},yi.prototype.clear=function(){};var zi={native:bi,null:yi};function ki(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&_(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new zi[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ve(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,r){"horizontal"==r?fi(e,t):mi(e,t)}),e),e.display.scrollbars.addClass&&B(e.display.wrapper,e.display.scrollbars.addClass)}var Ai=0;function Ci(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ai,markArrays:null},Sr(e.curOp)}function Si(e){var t=e.curOp;t&&Mr(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;_i(e)}))}function _i(e){for(var t=e.ops,r=0;r<t.length;r++)Mi(t[r]);for(var n=0;n<t.length;n++)Ti(t[n]);for(var i=0;i<t.length;i++)$i(t[i]);for(var a=0;a<t.length;a++)Li(t[a]);for(var o=0;o<t.length;o++)Ei(t[o])}function Mi(e){var t=e.cm,r=t.display;Vi(t),e.updateMaxLine&&cr(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<r.viewFrom||e.scrollToPos.to.line>=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Ri(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ti(e){e.updatedDisplay=e.mustUpdate&&ji(e.cm,e.update)}function $i(e){var t=e.cm,r=t.display;e.updatedDisplay&&ti(t),e.barMeasure=vi(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=tn(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Yr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Zr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function Li(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&fi(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var r=e.focus&&e.focus==I(O(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,r),(e.updatedDisplay||e.startHeight!=t.doc.height)&&xi(t,e.barMeasure),e.updatedDisplay&&Gi(t,e.barMeasure),e.selectionChanged&&Zn(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),r&&Kn(e.cm)}function Ei(e){var t=e.cm,r=t.display,n=t.doc;e.updatedDisplay&&qi(t,e.update),null==r.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(r.wheelStartX=r.wheelStartY=null),null!=e.scrollTop&&gi(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&fi(t,e.scrollLeft,!0,!0),e.scrollToPos&&ii(t,ai(t,mt(n,e.scrollToPos.from),mt(n,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(i)for(var o=0;o<i.length;++o)i[o].lines.length||xe(i[o],"hide");if(a)for(var s=0;s<a.length;++s)a[s].lines.length&&xe(a[s],"unhide");r.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&xe(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Ii(e,t){if(e.curOp)return t();Ci(e);try{return t()}finally{Si(e)}}function Bi(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Ci(e);try{return t.apply(e,arguments)}finally{Si(e)}}}function Di(e){return function(){if(this.curOp)return e.apply(this,arguments);Ci(this);try{return e.apply(this,arguments)}finally{Si(this)}}}function Hi(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Ci(t);try{return e.apply(this,arguments)}finally{Si(t)}}}function Oi(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,R(Pi,e))}function Pi(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var r=+new Date+e.options.workTime,n=wt(e,t.highlightFrontier),i=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(a){if(n.line>=e.display.viewFrom){var o=a.styles,s=a.text.length>e.options.maxHighlightLength?Ye(t.mode,n.state):null,l=yt(e,a,n,!0);s&&(n.state=s),a.styles=l.styles;var c=a.styleClasses,u=l.classes;u?a.styleClasses=u:c&&(a.styleClasses=null);for(var p=!o||o.length!=a.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),d=0;!p&&d<o.length;++d)p=o[d]!=a.styles[d];p&&i.push(n.line),a.stateAfter=n.save(),n.nextLine()}else a.text.length<=e.options.maxHighlightLength&&zt(e,a.text,n),a.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>r)return Oi(e,e.options.workDelay),!0})),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&Ii(e,(function(){for(var t=0;t<i.length;t++)Vn(e,i[t],"text")}))}}var Ri=function(e,t,r){var n=e.display;this.viewport=t,this.visible=ni(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=Zr(e),this.force=r,this.dims=In(e),this.events=[]};function Vi(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Yr(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Yr(e)+"px",t.scrollbarsClipped=!0)}function Ni(e){if(e.hasFocus())return null;var t=I(O(e));if(!t||!E(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=P(e).getSelection();n.anchorNode&&n.extend&&E(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}function Fi(e){if(e&&e.activeElt&&e.activeElt!=I(e.activeElt.ownerDocument)&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&E(document.body,e.anchorNode)&&E(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,r=t.defaultView.getSelection(),n=t.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),r.removeAllRanges(),r.addRange(n),r.extend(e.focusNode,e.focusOffset)}}function ji(e,t){var r=e.display,n=e.doc;if(t.editorIsHidden)return Nn(e),!1;if(!t.force&&t.visible.from>=r.viewFrom&&t.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==qn(e))return!1;Zi(e)&&(Nn(e),t.dims=In(e));var i=n.first+n.size,a=Math.max(t.visible.from-e.options.viewportMargin,n.first),o=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFrom<a&&a-r.viewFrom<20&&(a=Math.max(n.first,r.viewFrom)),r.viewTo>o&&r.viewTo-o<20&&(o=Math.min(i,r.viewTo)),Et&&(a=nr(e.doc,a),o=ir(e.doc,o));var s=a!=r.viewFrom||o!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;jn(e,a,o),r.viewOffset=sr(Qe(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var l=qn(e);if(!s&&0==l&&!t.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var c=Ni(e);return l>4&&(r.lineDiv.style.display="none"),Wi(e,r.updateLineNumbers,t.dims),l>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,Fi(c),M(r.cursorDiv),M(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,s&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,Oi(e,400)),r.updateLineNumbers=null,!0}function qi(e,t){for(var r=t.viewport,n=!0;;n=!1){if(n&&e.options.lineWrapping&&t.oldDisplayWidth!=Zr(e))n&&(t.visible=ni(e.display,e.doc,r));else if(r&&null!=r.top&&(r={top:Math.min(e.doc.height+Xr(e.display)-Kr(e),r.top)}),t.visible=ni(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!ji(e,t))break;ti(e);var i=vi(e);Un(e),xi(e,i),Gi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ui(e,t){var r=new Ri(e,t);if(ji(e,r)){ti(e),qi(e,r);var n=vi(e);Un(e),xi(e,n),Gi(e,n),r.finish()}}function Wi(e,t,r){var n=e.display,i=e.options.lineNumbers,a=n.lineDiv,o=a.firstChild;function s(t){var r=t.nextSibling;return l&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),r}for(var c=n.view,u=n.viewFrom,p=0;p<c.length;p++){var d=c[p];if(d.hidden);else if(d.node&&d.node.parentNode==a){for(;o!=d.node;)o=s(o);var h=i&&null!=t&&t<=u&&d.lineNumber;d.changes&&(j(d.changes,"gutter")>-1&&(h=!1),Er(e,d,u,r)),h&&(M(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(ot(e.options,u)))),o=d.node.nextSibling}else{var m=Vr(e,d,u,r);a.insertBefore(m,o)}u+=d.size}for(;o;)o=s(o)}function Xi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",$r(e,"gutterChanged",e)}function Gi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Yr(e)+"px"}function Yi(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=Bn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,a=n+"px",o=0;o<r.length;o++)if(!r[o].hidden){e.options.fixedGutter&&(r[o].gutter&&(r[o].gutter.style.left=a),r[o].gutterBackground&&(r[o].gutterBackground.style.left=a));var s=r[o].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=a}e.options.fixedGutter&&(t.gutters.style.left=n+i+"px")}}function Zi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,r=ot(e.options,t.first+t.size-1),n=e.display;if(r.length!=n.lineNumChars){var i=n.measure.appendChild($("div",[$("div",r)],"CodeMirror-linenumber CodeMirror-gutter-elt")),a=i.firstChild.offsetWidth,o=i.offsetWidth-a;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(a,n.lineGutter.offsetWidth-o)+1,n.lineNumWidth=n.lineNumInnerWidth+o,n.lineNumChars=n.lineNumInnerWidth?r.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",Xi(e.display),!0}return!1}function Ki(e,t){for(var r=[],n=!1,i=0;i<e.length;i++){var a=e[i],o=null;if("string"!=typeof a&&(o=a.style,a=a.className),"CodeMirror-linenumbers"==a){if(!t)continue;n=!0}r.push({className:a,style:o})}return t&&!n&&r.push({className:"CodeMirror-linenumbers",style:null}),r}function Ji(e){var t=e.gutters,r=e.gutterSpecs;M(t),e.lineGutter=null;for(var n=0;n<r.length;++n){var i=r[n],a=i.className,o=i.style,s=t.appendChild($("div",null,"CodeMirror-gutter "+a));o&&(s.style.cssText=o),"CodeMirror-linenumbers"==a&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=r.length?"":"none",Xi(e)}function Qi(e){Ji(e.display),Rn(e),Yi(e)}function ea(e,t,n,i){var a=this;this.input=n,a.scrollbarFiller=$("div",null,"CodeMirror-scrollbar-filler"),a.scrollbarFiller.setAttribute("cm-not-content","true"),a.gutterFiller=$("div",null,"CodeMirror-gutter-filler"),a.gutterFiller.setAttribute("cm-not-content","true"),a.lineDiv=L("div",null,"CodeMirror-code"),a.selectionDiv=$("div",null,null,"position: relative; z-index: 1"),a.cursorDiv=$("div",null,"CodeMirror-cursors"),a.measure=$("div",null,"CodeMirror-measure"),a.lineMeasure=$("div",null,"CodeMirror-measure"),a.lineSpace=L("div",[a.measure,a.lineMeasure,a.selectionDiv,a.cursorDiv,a.lineDiv],null,"position: relative; outline: none");var c=L("div",[a.lineSpace],"CodeMirror-lines");a.mover=$("div",[c],null,"position: relative"),a.sizer=$("div",[a.mover],"CodeMirror-sizer"),a.sizerWidth=null,a.heightForcer=$("div",null,null,"position: absolute; height: "+q+"px; width: 1px;"),a.gutters=$("div",null,"CodeMirror-gutters"),a.lineGutter=null,a.scroller=$("div",[a.sizer,a.heightForcer,a.gutters],"CodeMirror-scroll"),a.scroller.setAttribute("tabIndex","-1"),a.wrapper=$("div",[a.scrollbarFiller,a.gutterFiller,a.scroller],"CodeMirror"),u&&p>=105&&(a.wrapper.style.clipPath="inset(0px)"),a.wrapper.setAttribute("translate","no"),o&&s<8&&(a.gutters.style.zIndex=-1,a.scroller.style.paddingRight=0),l||r&&b||(a.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(a.wrapper):e(a.wrapper)),a.viewFrom=a.viewTo=t.first,a.reportedViewFrom=a.reportedViewTo=t.first,a.view=[],a.renderedView=null,a.externalMeasured=null,a.viewOffset=0,a.lastWrapHeight=a.lastWrapWidth=0,a.updateLineNumbers=null,a.nativeBarWidth=a.barHeight=a.barWidth=0,a.scrollbarsClipped=!1,a.lineNumWidth=a.lineNumInnerWidth=a.lineNumChars=null,a.alignWidgets=!1,a.cachedCharWidth=a.cachedTextHeight=a.cachedPaddingH=null,a.maxLine=null,a.maxLineLength=0,a.maxLineChanged=!1,a.wheelDX=a.wheelDY=a.wheelStartX=a.wheelStartY=null,a.shift=!1,a.selForContextMenu=null,a.activeTouch=null,a.gutterSpecs=Ki(i.gutters,i.lineNumbers),Ji(a),n.init(a)}Ri.prototype.signal=function(e,t){ke(e,t)&&this.events.push(arguments)},Ri.prototype.finish=function(){for(var e=0;e<this.events.length;e++)xe.apply(null,this.events[e])};var ta=0,ra=null;function na(e){var t=e.wheelDeltaX,r=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==r&&e.detail&&e.axis==e.VERTICAL_AXIS?r=e.detail:null==r&&(r=e.wheelDelta),{x:t,y:r}}function ia(e){var t=na(e);return t.x*=ra,t.y*=ra,t}function aa(e,t){u&&102==p&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout((function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""}),100));var n=na(t),i=n.x,a=n.y,o=ra;0===t.deltaMode&&(i=t.deltaX,a=t.deltaY,o=1);var s=e.display,c=s.scroller,h=c.scrollWidth>c.clientWidth,m=c.scrollHeight>c.clientHeight;if(i&&h||a&&m){if(a&&y&&l)e:for(var g=t.target,f=s.view;g!=c;g=g.parentNode)for(var v=0;v<f.length;v++)if(f[v].node==g){e.display.currentWheelTarget=g;break e}if(i&&!r&&!d&&null!=o)return a&&m&&mi(e,Math.max(0,c.scrollTop+a*o)),fi(e,Math.max(0,c.scrollLeft+i*o)),(!a||a&&m)&&Ce(t),void(s.wheelStartX=null);if(a&&null!=o){var b=a*o,x=e.doc.scrollTop,w=x+s.wrapper.clientHeight;b<0?x=Math.max(0,x+b-50):w=Math.min(e.doc.height,w+b+50),Ui(e,{top:x,bottom:w})}ta<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=c.scrollLeft,s.wheelStartY=c.scrollTop,s.wheelDX=i,s.wheelDY=a,setTimeout((function(){if(null!=s.wheelStartX){var e=c.scrollLeft-s.wheelStartX,t=c.scrollTop-s.wheelStartY,r=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,r&&(ra=(ra*ta+r)/(ta+1),++ta)}}),200)):(s.wheelDX+=i,s.wheelDY+=a))}}o?ra=-.53:r?ra=15:u?ra=-.7:h&&(ra=-1/3);var oa=function(e,t){this.ranges=e,this.primIndex=t};oa.prototype.primary=function(){return this.ranges[this.primIndex]},oa.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var r=this.ranges[t],n=e.ranges[t];if(!ct(r.anchor,n.anchor)||!ct(r.head,n.head))return!1}return!0},oa.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new sa(ut(this.ranges[t].anchor),ut(this.ranges[t].head));return new oa(e,this.primIndex)},oa.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},oa.prototype.contains=function(e,t){t||(t=e);for(var r=0;r<this.ranges.length;r++){var n=this.ranges[r];if(lt(t,n.from())>=0&<(e,n.to())<=0)return r}return-1};var sa=function(e,t){this.anchor=e,this.head=t};function la(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort((function(e,t){return lt(e.from(),t.from())})),r=j(t,i);for(var a=1;a<t.length;a++){var o=t[a],s=t[a-1],l=lt(s.to(),o.from());if(n&&!o.empty()?l>0:l>=0){var c=dt(s.from(),o.from()),u=pt(s.to(),o.to()),p=s.empty()?o.from()==o.head:s.from()==s.head;a<=r&&--r,t.splice(--a,2,new sa(p?u:c,p?c:u))}}return new oa(t,r)}function ca(e,t){return new oa([new sa(e,t||e)],0)}function ua(e){return e.text?st(e.from.line+e.text.length-1,J(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function pa(e,t){if(lt(e,t.from)<0)return e;if(lt(e,t.to)<=0)return ua(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=ua(t).ch-t.to.ch),st(r,n)}function da(e,t){for(var r=[],n=0;n<e.sel.ranges.length;n++){var i=e.sel.ranges[n];r.push(new sa(pa(i.anchor,t),pa(i.head,t)))}return la(e.cm,r,e.sel.primIndex)}function ha(e,t,r){return e.line==t.line?st(r.line,e.ch-t.ch+r.ch):st(r.line+(e.line-t.line),e.ch)}function ma(e,t,r){for(var n=[],i=st(e.first,0),a=i,o=0;o<t.length;o++){var s=t[o],l=ha(s.from,i,a),c=ha(ua(s),i,a);if(i=s.to,a=c,"around"==r){var u=e.sel.ranges[o],p=lt(u.head,u.anchor)<0;n[o]=new sa(p?c:l,p?l:c)}else n[o]=new sa(l,l)}return new oa(n,e.sel.primIndex)}function ga(e){e.doc.mode=We(e.options,e.doc.modeOption),fa(e)}function fa(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Oi(e,100),e.state.modeGen++,e.curOp&&Rn(e)}function va(e,t){return 0==t.from.ch&&0==t.to.ch&&""==J(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ba(e,t,r,n){function i(e){return r?r[e]:null}function a(e,r,i){pr(e,r,i,n),$r(e,"change",e,t)}function o(e,t){for(var r=[],a=e;a<t;++a)r.push(new ur(c[a],i(a),n));return r}var s=t.from,l=t.to,c=t.text,u=Qe(e,s.line),p=Qe(e,l.line),d=J(c),h=i(c.length-1),m=l.line-s.line;if(t.full)e.insert(0,o(0,c.length)),e.remove(c.length,e.size-c.length);else if(va(e,t)){var g=o(0,c.length-1);a(p,p.text,h),m&&e.remove(s.line,m),g.length&&e.insert(s.line,g)}else if(u==p)if(1==c.length)a(u,u.text.slice(0,s.ch)+d+u.text.slice(l.ch),h);else{var f=o(1,c.length-1);f.push(new ur(d+u.text.slice(l.ch),h,n)),a(u,u.text.slice(0,s.ch)+c[0],i(0)),e.insert(s.line+1,f)}else if(1==c.length)a(u,u.text.slice(0,s.ch)+c[0]+p.text.slice(l.ch),i(0)),e.remove(s.line+1,m);else{a(u,u.text.slice(0,s.ch)+c[0],i(0)),a(p,d+p.text.slice(l.ch),h);var v=o(1,c.length-1);m>1&&e.remove(s.line+1,m-1),e.insert(s.line+1,v)}$r(e,"change",e,t)}function ya(e,t,r){function n(e,i,a){if(e.linked)for(var o=0;o<e.linked.length;++o){var s=e.linked[o];if(s.doc!=i){var l=a&&s.sharedHist;r&&!l||(t(s.doc,l),n(s.doc,e,l))}}}n(e,null,!0)}function xa(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Hn(e),ga(e),wa(e),e.options.direction=t.direction,e.options.lineWrapping||cr(e),e.options.mode=t.modeOption,Rn(e)}function wa(e){("rtl"==e.doc.direction?B:_)(e.display.lineDiv,"CodeMirror-rtl")}function za(e){Ii(e,(function(){wa(e),Rn(e)}))}function ka(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Aa(e,t){var r={from:ut(t.from),to:ua(t),text:et(e,t.from,t.to)};return La(e,r,t.from.line,t.to.line+1),ya(e,(function(e){return La(e,r,t.from.line,t.to.line+1)}),!0),r}function Ca(e){for(;e.length&&J(e).ranges;)e.pop()}function Sa(e,t){return t?(Ca(e.done),J(e.done)):e.done.length&&!J(e.done).ranges?J(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),J(e.done)):void 0}function _a(e,t,r,n){var i=e.history;i.undone.length=0;var a,o,s=+new Date;if((i.lastOp==n||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(a=Sa(i,i.lastOp==n)))o=J(a.changes),0==lt(t.from,t.to)&&0==lt(t.from,o.to)?o.to=ua(t):a.changes.push(Aa(e,t));else{var l=J(i.done);for(l&&l.ranges||$a(e.sel,i.done),a={changes:[Aa(e,t)],generation:i.generation},i.done.push(a);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,o||xe(e,"historyAdded")}function Ma(e,t,r,n){var i=t.charAt(0);return"*"==i||"+"==i&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Ta(e,t,r,n){var i=e.history,a=n&&n.origin;r==i.lastSelOp||a&&i.lastSelOrigin==a&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==a||Ma(e,a,J(i.done),t))?i.done[i.done.length-1]=t:$a(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=a,i.lastSelOp=r,n&&!1!==n.clearRedo&&Ca(i.undone)}function $a(e,t){var r=J(t);r&&r.ranges&&r.equals(e)||t.push(e)}function La(e,t,r,n){var i=t["spans_"+e.id],a=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),(function(r){r.markedSpans&&((i||(i=t["spans_"+e.id]={}))[a]=r.markedSpans),++a}))}function Ea(e){if(!e)return null;for(var t,r=0;r<e.length;++r)e[r].marker.explicitlyCleared?t||(t=e.slice(0,r)):t&&t.push(e[r]);return t?t.length?t:null:e}function Ia(e,t){var r=t["spans_"+e.id];if(!r)return null;for(var n=[],i=0;i<t.text.length;++i)n.push(Ea(r[i]));return n}function Ba(e,t){var r=Ia(e,t),n=Nt(e,t);if(!r)return n;if(!n)return r;for(var i=0;i<r.length;++i){var a=r[i],o=n[i];if(a&&o)e:for(var s=0;s<o.length;++s){for(var l=o[s],c=0;c<a.length;++c)if(a[c].marker==l.marker)continue e;a.push(l)}else o&&(r[i]=o)}return r}function Da(e,t,r){for(var n=[],i=0;i<e.length;++i){var a=e[i];if(a.ranges)n.push(r?oa.prototype.deepCopy.call(a):a);else{var o=a.changes,s=[];n.push({changes:s});for(var l=0;l<o.length;++l){var c=o[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var p in c)(u=p.match(/^spans_(\d+)$/))&&j(t,Number(u[1]))>-1&&(J(s)[p]=c[p],delete c[p])}}}return n}function Ha(e,t,r,n){if(n){var i=e.anchor;if(r){var a=lt(t,i)<0;a!=lt(r,i)<0?(i=t,t=r):a!=lt(t,r)<0&&(t=r)}return new sa(i,t)}return new sa(r||t,t)}function Oa(e,t,r,n,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),ja(e,new oa([Ha(e.sel.primary(),t,r,i)],0),n)}function Pa(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),a=0;a<e.sel.ranges.length;a++)n[a]=Ha(e.sel.ranges[a],t[a],null,i);ja(e,la(e.cm,n,e.sel.primIndex),r)}function Ra(e,t,r,n){var i=e.sel.ranges.slice(0);i[t]=r,ja(e,la(e.cm,i,e.sel.primIndex),n)}function Va(e,t,r,n){ja(e,ca(t,r),n)}function Na(e,t,r){var n={ranges:t.ranges,update:function(t){this.ranges=[];for(var r=0;r<t.length;r++)this.ranges[r]=new sa(mt(e,t[r].anchor),mt(e,t[r].head))},origin:r&&r.origin};return xe(e,"beforeSelectionChange",e,n),e.cm&&xe(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?la(e.cm,n.ranges,n.ranges.length-1):t}function Fa(e,t,r){var n=e.history.done,i=J(n);i&&i.ranges?(n[n.length-1]=t,qa(e,t,r)):ja(e,t,r)}function ja(e,t,r){qa(e,t,r),Ta(e,e.sel,e.cm?e.cm.curOp.id:NaN,r)}function qa(e,t,r){(ke(e,"beforeSelectionChange")||e.cm&&ke(e.cm,"beforeSelectionChange"))&&(t=Na(e,t,r));var n=r&&r.bias||(lt(t.primary().head,e.sel.primary().head)<0?-1:1);Ua(e,Xa(e,t,n,!0)),r&&!1===r.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||ci(e.cm)}function Ua(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ze(e.cm)),$r(e,"cursorActivity",e))}function Wa(e){Ua(e,Xa(e,e.sel,null,!1))}function Xa(e,t,r,n){for(var i,a=0;a<t.ranges.length;a++){var o=t.ranges[a],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[a],l=Ya(e,o.anchor,s&&s.anchor,r,n),c=o.head==o.anchor?l:Ya(e,o.head,s&&s.head,r,n);(i||l!=o.anchor||c!=o.head)&&(i||(i=t.ranges.slice(0,a)),i[a]=new sa(l,c))}return i?la(e.cm,i,t.primIndex):t}function Ga(e,t,r,n,i){var a=Qe(e,t.line);if(a.markedSpans)for(var o=0;o<a.markedSpans.length;++o){var s=a.markedSpans[o],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(u?s.to>=t.ch:s.to>t.ch))){if(i&&(xe(l,"beforeCursorEnter"),l.explicitlyCleared)){if(a.markedSpans){--o;continue}break}if(!l.atomic)continue;if(r){var p=l.find(n<0?1:-1),d=void 0;if((n<0?u:c)&&(p=Za(e,p,-n,p&&p.line==t.line?a:null)),p&&p.line==t.line&&(d=lt(p,r))&&(n<0?d<0:d>0))return Ga(e,p,t,n,i)}var h=l.find(n<0?-1:1);return(n<0?c:u)&&(h=Za(e,h,n,h.line==t.line?a:null)),h?Ga(e,h,t,n,i):null}}return t}function Ya(e,t,r,n,i){var a=n||1,o=Ga(e,t,r,a,i)||!i&&Ga(e,t,r,a,!0)||Ga(e,t,r,-a,i)||!i&&Ga(e,t,r,-a,!0);return o||(e.cantEdit=!0,st(e.first,0))}function Za(e,t,r,n){return r<0&&0==t.ch?t.line>e.first?mt(e,st(t.line-1)):null:r>0&&t.ch==(n||Qe(e,t.line)).text.length?t.line<e.first+e.size-1?st(t.line+1,0):null:new st(t.line,t.ch+r)}function Ka(e){e.setSelection(st(e.firstLine(),0),st(e.lastLine()),W)}function Ja(e,t,r){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return r&&(n.update=function(t,r,i,a){t&&(n.from=mt(e,t)),r&&(n.to=mt(e,r)),i&&(n.text=i),void 0!==a&&(n.origin=a)}),xe(e,"beforeChange",e,n),e.cm&&xe(e.cm,"beforeChange",e.cm,n),n.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function Qa(e,t,r){if(e.cm){if(!e.cm.curOp)return Bi(e.cm,Qa)(e,t,r);if(e.cm.state.suppressEdits)return}if(!(ke(e,"beforeChange")||e.cm&&ke(e.cm,"beforeChange"))||(t=Ja(e,t,!0))){var n=Lt&&!r&&jt(e,t.from,t.to);if(n)for(var i=n.length-1;i>=0;--i)eo(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else eo(e,t)}}function eo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=lt(t.from,t.to)){var r=da(e,t);_a(e,t,r,e.cm?e.cm.curOp.id:NaN),no(e,t,r,Nt(e,t));var n=[];ya(e,(function(e,r){r||-1!=j(n,e.history)||(lo(e.history,t),n.push(e.history)),no(e,t,null,Nt(e,t))}))}}function to(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!n||r){for(var i,a=e.history,o=e.sel,s="undo"==t?a.done:a.undone,l="undo"==t?a.undone:a.done,c=0;c<s.length&&(i=s[c],r?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=s.length){for(a.lastOrigin=a.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(n)return void s.push(i);break}if($a(i,l),r&&!i.equals(e.sel))return void ja(e,i,{clearRedo:!1});o=i}var u=[];$a(o,l),l.push({changes:u,generation:a.generation}),a.generation=i.generation||++a.maxGeneration;for(var p=ke(e,"beforeChange")||e.cm&&ke(e.cm,"beforeChange"),d=function(r){var n=i.changes[r];if(n.origin=t,p&&!Ja(e,n,!1))return s.length=0,{};u.push(Aa(e,n));var a=r?da(e,n):J(s);no(e,n,a,Ba(e,n)),!r&&e.cm&&e.cm.scrollIntoView({from:n.from,to:ua(n)});var o=[];ya(e,(function(e,t){t||-1!=j(o,e.history)||(lo(e.history,n),o.push(e.history)),no(e,n,null,Ba(e,n))}))},h=i.changes.length-1;h>=0;--h){var m=d(h);if(m)return m.v}}}}function ro(e,t){if(0!=t&&(e.first+=t,e.sel=new oa(Q(e.sel.ranges,(function(e){return new sa(st(e.anchor.line+t,e.anchor.ch),st(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Rn(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;n<r.viewTo;n++)Vn(e.cm,n,"gutter")}}function no(e,t,r,n){if(e.cm&&!e.cm.curOp)return Bi(e.cm,no)(e,t,r,n);if(t.to.line<e.first)ro(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);ro(e,i),t={from:st(e.first,0),to:st(t.to.line+i,t.to.ch),text:[J(t.text)],origin:t.origin}}var a=e.lastLine();t.to.line>a&&(t={from:t.from,to:st(a,Qe(e,a).text.length),text:[t.text[0]],origin:t.origin}),t.removed=et(e,t.from,t.to),r||(r=da(e,t)),e.cm?io(e.cm,t,n):ba(e,t,n),qa(e,r,W),e.cantEdit&&Ya(e,st(e.firstLine(),0))&&(e.cantEdit=!1)}}function io(e,t,r){var n=e.doc,i=e.display,a=t.from,o=t.to,s=!1,l=a.line;e.options.lineWrapping||(l=nt(er(Qe(n,a.line))),n.iter(l,o.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),n.sel.contains(t.from,t.to)>-1&&ze(e),ba(n,t,r,Dn(e)),e.options.lineWrapping||(n.iter(l,a.line+t.text.length,(function(e){var t=lr(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),$t(n,a.line),Oi(e,400);var c=t.text.length-(o.line-a.line)-1;t.full?Rn(e):a.line!=o.line||1!=t.text.length||va(e.doc,t)?Rn(e,a.line,o.line+1,c):Vn(e,a.line,"text");var u=ke(e,"changes"),p=ke(e,"change");if(p||u){var d={from:a,to:o,text:t.text,removed:t.removed,origin:t.origin};p&&$r(e,"change",e,d),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function ao(e,t,r,n,i){var a;n||(n=r),lt(n,r)<0&&(r=(a=[n,r])[0],n=a[1]),"string"==typeof t&&(t=e.splitLines(t)),Qa(e,{from:r,to:n,text:t,origin:i})}function oo(e,t,r,n){r<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function so(e,t,r,n){for(var i=0;i<e.length;++i){var a=e[i],o=!0;if(a.ranges){a.copied||((a=e[i]=a.deepCopy()).copied=!0);for(var s=0;s<a.ranges.length;s++)oo(a.ranges[s].anchor,t,r,n),oo(a.ranges[s].head,t,r,n)}else{for(var l=0;l<a.changes.length;++l){var c=a.changes[l];if(r<c.from.line)c.from=st(c.from.line+n,c.from.ch),c.to=st(c.to.line+n,c.to.ch);else if(t<=c.to.line){o=!1;break}}o||(e.splice(0,i+1),i=0)}}}function lo(e,t){var r=t.from.line,n=t.to.line,i=t.text.length-(n-r)-1;so(e.done,r,n,i),so(e.undone,r,n,i)}function co(e,t,r,n){var i=t,a=t;return"number"==typeof t?a=Qe(e,ht(e,t)):i=nt(t),null==i?null:(n(a,i)&&e.cm&&Vn(e.cm,i,r),a)}function uo(e){this.lines=e,this.parent=null;for(var t=0,r=0;r<e.length;++r)e[r].parent=this,t+=e[r].height;this.height=t}function po(e){this.children=e;for(var t=0,r=0,n=0;n<e.length;++n){var i=e[n];t+=i.chunkSize(),r+=i.height,i.parent=this}this.size=t,this.height=r,this.parent=null}sa.prototype.from=function(){return dt(this.anchor,this.head)},sa.prototype.to=function(){return pt(this.anchor,this.head)},sa.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},uo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var r=e,n=e+t;r<n;++r){var i=this.lines[r];this.height-=i.height,dr(i),$r(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,r){this.height+=r,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var n=0;n<t.length;++n)t[n].parent=this},iterN:function(e,t,r){for(var n=e+t;e<n;++e)if(r(this.lines[e]))return!0}},po.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var r=0;r<this.children.length;++r){var n=this.children[r],i=n.chunkSize();if(e<i){var a=Math.min(t,i-e),o=n.height;if(n.removeInner(e,a),this.height-=o-n.height,i==a&&(this.children.splice(r--,1),n.parent=null),0==(t-=a))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof uo))){var s=[];this.collapse(s),this.children=[new uo(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,r){this.size+=t.length,this.height+=r;for(var n=0;n<this.children.length;++n){var i=this.children[n],a=i.chunkSize();if(e<=a){if(i.insertInner(e,t,r),i.lines&&i.lines.length>50){for(var o=i.lines.length%25+25,s=o;s<i.lines.length;){var l=new uo(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++n,0,l),l.parent=this}i.lines=i.lines.slice(0,o),this.maybeSpill()}break}e-=a}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new po(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var r=j(e.parent.children,e);e.parent.children.splice(r+1,0,t)}else{var n=new po(e.children);n.parent=e,e.children=[n,t],e=n}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;n<this.children.length;++n){var i=this.children[n],a=i.chunkSize();if(e<a){var o=Math.min(t,a-e);if(i.iterN(e,o,r))return!0;if(0==(t-=o))break;e=0}else e-=a}}};var ho=function(e,t,r){if(r)for(var n in r)r.hasOwnProperty(n)&&(this[n]=r[n]);this.doc=e,this.node=t};function mo(e,t,r){sr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&li(e,r)}function go(e,t,r,n){var i=new ho(e,r,n),a=e.cm;return a&&i.noHScroll&&(a.display.alignWidgets=!0),co(e,t,"widget",(function(t){var r=t.widgets||(t.widgets=[]);if(null==i.insertAt?r.push(i):r.splice(Math.min(r.length,Math.max(0,i.insertAt)),0,i),i.line=t,a&&!ar(e,t)){var n=sr(t)<e.scrollTop;rt(t,t.height+qr(i)),n&&li(a,i.height),a.curOp.forceUpdate=!0}return!0})),a&&$r(a,"lineWidgetAdded",a,i,"number"==typeof t?t:nt(t)),i}ho.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,r=this.line,n=nt(r);if(null!=n&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(r.widgets=null);var a=qr(this);rt(r,Math.max(0,r.height-a)),e&&(Ii(e,(function(){mo(e,r,-a),Vn(e,n,"widget")})),$r(e,"lineWidgetCleared",e,this,n))}},ho.prototype.changed=function(){var e=this,t=this.height,r=this.doc.cm,n=this.line;this.height=null;var i=qr(this)-t;i&&(ar(this.doc,n)||rt(n,n.height+i),r&&Ii(r,(function(){r.curOp.forceUpdate=!0,mo(r,n,i),$r(r,"lineWidgetChanged",r,e,nt(n))})))},Ae(ho);var fo=0,vo=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++fo};function bo(e,t,r,n,i){if(n&&n.shared)return xo(e,t,r,n,i);if(e.cm&&!e.cm.curOp)return Bi(e.cm,bo)(e,t,r,n,i);var a=new vo(e,i),o=lt(t,r);if(n&&V(n,a,!1),o>0||0==o&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=L("span",[a.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(Qt(e,t.line,t,r,a)||t.line!=r.line&&Qt(e,r.line,t,r,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");Bt()}a.addToHistory&&_a(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,r.line+1,(function(n){c&&a.collapsed&&!c.options.lineWrapping&&er(n)==c.display.maxLine&&(s=!0),a.collapsed&&l!=t.line&&rt(n,0),Pt(n,new Dt(a,l==t.line?t.ch:null,l==r.line?r.ch:null),e.cm&&e.cm.curOp),++l})),a.collapsed&&e.iter(t.line,r.line+1,(function(t){ar(e,t)&&rt(t,0)})),a.clearOnEnter&&ve(a,"beforeCursorEnter",(function(){return a.clear()})),a.readOnly&&(It(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++fo,a.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),a.collapsed)Rn(c,t.line,r.line+1);else if(a.className||a.startStyle||a.endStyle||a.css||a.attributes||a.title)for(var u=t.line;u<=r.line;u++)Vn(c,u,"text");a.atomic&&Wa(c.doc),$r(c,"markerAdded",c,a)}return a}vo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ci(e),ke(this,"clear")){var r=this.find();r&&$r(this,"clear",r.from,r.to)}for(var n=null,i=null,a=0;a<this.lines.length;++a){var o=this.lines[a],s=Ht(o.markedSpans,this);e&&!this.collapsed?Vn(e,nt(o),"text"):e&&(null!=s.to&&(i=nt(o)),null!=s.from&&(n=nt(o))),o.markedSpans=Ot(o.markedSpans,s),null==s.from&&this.collapsed&&!ar(this.doc,o)&&e&&rt(o,Ln(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=er(this.lines[l]),u=lr(c);u>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=n&&e&&this.collapsed&&Rn(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Wa(e.doc)),e&&$r(e,"markerCleared",e,this,n,i),t&&Si(e),this.parent&&this.parent.clear()}},vo.prototype.find=function(e,t){var r,n;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var a=this.lines[i],o=Ht(a.markedSpans,this);if(null!=o.from&&(r=st(t?a:nt(a),o.from),-1==e))return r;if(null!=o.to&&(n=st(t?a:nt(a),o.to),1==e))return n}return r&&{from:r,to:n}},vo.prototype.changed=function(){var e=this,t=this.find(-1,!0),r=this,n=this.doc.cm;t&&n&&Ii(n,(function(){var i=t.line,a=nt(t.line),o=rn(n,a);if(o&&(dn(o),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!ar(r.doc,i)&&null!=r.height){var s=r.height;r.height=null;var l=qr(r)-s;l&&rt(i,i.height+l)}$r(n,"markerChanged",n,e)}))},vo.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=j(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},vo.prototype.detachLine=function(e){if(this.lines.splice(j(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Ae(vo);var yo=function(e,t){this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=this};function xo(e,t,r,n,i){(n=V(n)).shared=!1;var a=[bo(e,t,r,n,i)],o=a[0],s=n.widgetNode;return ya(e,(function(e){s&&(n.widgetNode=s.cloneNode(!0)),a.push(bo(e,mt(e,t),mt(e,r),n,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;o=J(a)})),new yo(a,o)}function wo(e){return e.findMarks(st(e.first,0),e.clipPos(st(e.lastLine())),(function(e){return e.parent}))}function zo(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=n.find(),a=e.clipPos(i.from),o=e.clipPos(i.to);if(lt(a,o)){var s=bo(e,a,o,n.primary,n.primary.type);n.markers.push(s),s.parent=n}}}function ko(e){for(var t=function(t){var r=e[t],n=[r.primary.doc];ya(r.primary.doc,(function(e){return n.push(e)}));for(var i=0;i<r.markers.length;i++){var a=r.markers[i];-1==j(n,a.doc)&&(a.parent=null,r.markers.splice(i--,1))}},r=0;r<e.length;r++)t(r)}yo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();$r(this,"clear")}},yo.prototype.find=function(e,t){return this.primary.find(e,t)},Ae(yo);var Ao=0,Co=function(e,t,r,n,i){if(!(this instanceof Co))return new Co(e,t,r,n,i);null==r&&(r=0),po.call(this,[new uo([new ur("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var a=st(r,0);this.sel=ca(a),this.history=new ka(null),this.id=++Ao,this.modeOption=t,this.lineSep=n,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),ba(this,{from:a,to:a,text:e}),ja(this,ca(a),W)};Co.prototype=re(po.prototype,{constructor:Co,iter:function(e,t,r){r?this.iterN(e-this.first,t-e,r):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var r=0,n=0;n<t.length;++n)r+=t[n].height;this.insertInner(e-this.first,t,r)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=tt(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Hi((function(e){var t=st(this.first,0),r=this.first+this.size-1;Qa(this,{from:t,to:st(r,Qe(this,r).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&ui(this.cm,0,0),ja(this,ca(t),W)})),replaceRange:function(e,t,r,n){ao(this,e,t=mt(this,t),r=r?mt(this,r):t,n)},getRange:function(e,t,r){var n=et(this,mt(this,e),mt(this,t));return!1===r?n:""===r?n.join(""):n.join(r||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(at(this,e))return Qe(this,e)},getLineNumber:function(e){return nt(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Qe(this,e)),er(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return mt(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Hi((function(e,t,r){Va(this,mt(this,"number"==typeof e?st(e,t||0):e),null,r)})),setSelection:Hi((function(e,t,r){Va(this,mt(this,e),mt(this,t||e),r)})),extendSelection:Hi((function(e,t,r){Oa(this,mt(this,e),t&&mt(this,t),r)})),extendSelections:Hi((function(e,t){Pa(this,ft(this,e),t)})),extendSelectionsBy:Hi((function(e,t){Pa(this,ft(this,Q(this.sel.ranges,e)),t)})),setSelections:Hi((function(e,t,r){if(e.length){for(var n=[],i=0;i<e.length;i++)n[i]=new sa(mt(this,e[i].anchor),mt(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),ja(this,la(this.cm,n,t),r)}})),addSelection:Hi((function(e,t,r){var n=this.sel.ranges.slice(0);n.push(new sa(mt(this,e),mt(this,t||e))),ja(this,la(this.cm,n,n.length-1),r)})),getSelection:function(e){for(var t,r=this.sel.ranges,n=0;n<r.length;n++){var i=et(this,r[n].from(),r[n].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],r=this.sel.ranges,n=0;n<r.length;n++){var i=et(this,r[n].from(),r[n].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[n]=i}return t},replaceSelection:function(e,t,r){for(var n=[],i=0;i<this.sel.ranges.length;i++)n[i]=e;this.replaceSelections(n,t,r||"+input")},replaceSelections:Hi((function(e,t,r){for(var n=[],i=this.sel,a=0;a<i.ranges.length;a++){var o=i.ranges[a];n[a]={from:o.from(),to:o.to(),text:this.splitLines(e[a]),origin:r}}for(var s=t&&"end"!=t&&ma(this,n,t),l=n.length-1;l>=0;l--)Qa(this,n[l]);s?Fa(this,s):this.cm&&ci(this.cm)})),undo:Hi((function(){to(this,"undo")})),redo:Hi((function(){to(this,"redo")})),undoSelection:Hi((function(){to(this,"undo",!0)})),redoSelection:Hi((function(){to(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++r;return{undo:t,redo:r}},clearHistory:function(){var e=this;this.history=new ka(this.history),ya(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Da(this.history.done),undone:Da(this.history.undone)}},setHistory:function(e){var t=this.history=new ka(this.history);t.done=Da(e.done.slice(0),null,!0),t.undone=Da(e.undone.slice(0),null,!0)},setGutterMarker:Hi((function(e,t,r){return co(this,e,"gutter",(function(e){var n=e.gutterMarkers||(e.gutterMarkers={});return n[t]=r,!r&&oe(n)&&(e.gutterMarkers=null),!0}))})),clearGutter:Hi((function(e){var t=this;this.iter((function(r){r.gutterMarkers&&r.gutterMarkers[e]&&co(t,r,"gutter",(function(){return r.gutterMarkers[e]=null,oe(r.gutterMarkers)&&(r.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!at(this,e))return null;if(t=e,!(e=Qe(this,e)))return null}else if(null==(t=nt(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Hi((function(e,t,r){return co(this,e,"gutter"==t?"gutter":"class",(function(e){var n="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[n]){if(C(r).test(e[n]))return!1;e[n]+=" "+r}else e[n]=r;return!0}))})),removeLineClass:Hi((function(e,t,r){return co(this,e,"gutter"==t?"gutter":"class",(function(e){var n="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[n];if(!i)return!1;if(null==r)e[n]=null;else{var a=i.match(C(r));if(!a)return!1;var o=a.index+a[0].length;e[n]=i.slice(0,a.index)+(a.index&&o!=i.length?" ":"")+i.slice(o)||null}return!0}))})),addLineWidget:Hi((function(e,t,r){return go(this,e,t,r)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,r){return bo(this,mt(this,e),mt(this,t),r,r&&r.type||"range")},setBookmark:function(e,t){var r={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return bo(this,e=mt(this,e),e,r,"bookmark")},findMarksAt:function(e){var t=[],r=Qe(this,(e=mt(this,e)).line).markedSpans;if(r)for(var n=0;n<r.length;++n){var i=r[n];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=mt(this,e),t=mt(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,(function(a){var o=a.markedSpans;if(o)for(var s=0;s<o.length;s++){var l=o[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||r&&!r(l.marker)||n.push(l.marker.parent||l.marker)}++i})),n},getAllMarks:function(){var e=[];return this.iter((function(t){var r=t.markedSpans;if(r)for(var n=0;n<r.length;++n)null!=r[n].from&&e.push(r[n].marker)})),e},posFromIndex:function(e){var t,r=this.first,n=this.lineSeparator().length;return this.iter((function(i){var a=i.text.length+n;if(a>e)return t=e,!0;e-=a,++r})),mt(this,st(r,t))},indexFromPos:function(e){var t=(e=mt(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var r=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+r})),t},copy:function(e){var t=new Co(tt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,r=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<r&&(r=e.to);var n=new Co(tt(this,t,r),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],zo(n,wo(this)),n},unlinkDoc:function(e){if(e instanceof Rs&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),ko(wo(this));break}if(e.history==this.history){var r=[e.id];ya(e,(function(e){return r.push(e.id)}),!0),e.history=new ka(null),e.history.done=Da(this.history.done,r),e.history.undone=Da(this.history.undone,r)}},iterLinkedDocs:function(e){ya(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):He(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Hi((function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&za(this.cm))}))}),Co.prototype.eachLine=Co.prototype.iter;var So=0;function _o(e){var t=this;if($o(t),!we(t,e)&&!Ur(t.display,e)){Ce(e),o&&(So=+new Date);var r=On(t,e,!0),n=e.dataTransfer.files;if(r&&!t.isReadOnly())if(n&&n.length&&window.FileReader&&window.File)for(var i=n.length,a=Array(i),s=0,l=function(){++s==i&&Bi(t,(function(){var e={from:r=mt(t.doc,r),to:r,text:t.doc.splitLines(a.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};Qa(t.doc,e),Fa(t.doc,ca(mt(t.doc,r),mt(t.doc,ua(e))))}))()},c=function(e,r){if(t.options.allowDropFileTypes&&-1==j(t.options.allowDropFileTypes,e.type))l();else{var n=new FileReader;n.onerror=function(){return l()},n.onload=function(){var e=n.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(a[r]=e),l()},n.readAsText(e)}},u=0;u<n.length;u++)c(n[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(r)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var p=e.dataTransfer.getData("Text");if(p){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),qa(t.doc,ca(r,r)),d)for(var h=0;h<d.length;++h)ao(t.doc,"",d[h].anchor,d[h].head,"drag");t.replaceSelection(p,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Mo(e,t){if(o&&(!e.state.draggingText||+new Date-So<100))Me(t);else if(!we(e,t)&&!Ur(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!h)){var r=$("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),d&&r.parentNode.removeChild(r)}}function To(e,t){var r=On(e,t);if(r){var n=document.createDocumentFragment();Xn(e,r,n),e.display.dragCursor||(e.display.dragCursor=$("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),T(e.display.dragCursor,n)}}function $o(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Lo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),r=[],n=0;n<t.length;n++){var i=t[n].CodeMirror;i&&r.push(i)}r.length&&r[0].operation((function(){for(var t=0;t<r.length;t++)e(r[t])}))}}var Eo=!1;function Io(){Eo||(Bo(),Eo=!0)}function Bo(){var e;ve(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Lo(Do)}),100))})),ve(window,"blur",(function(){return Lo(ei)}))}function Do(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Ho={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Oo=0;Oo<10;Oo++)Ho[Oo+48]=Ho[Oo+96]=String(Oo);for(var Po=65;Po<=90;Po++)Ho[Po]=String.fromCharCode(Po);for(var Ro=1;Ro<=12;Ro++)Ho[Ro+111]=Ho[Ro+63235]="F"+Ro;var Vo={};function No(e){var t,r,n,i,a=e.split(/-(?!$)/);e=a[a.length-1];for(var o=0;o<a.length-1;o++){var s=a[o];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))r=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);n=!0}}return t&&(e="Alt-"+e),r&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),n&&(e="Shift-"+e),e}function Fo(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(/^(name|fallthrough|(de|at)tach)$/.test(r))continue;if("..."==n){delete e[r];continue}for(var i=Q(r.split(" "),No),a=0;a<i.length;a++){var o=void 0,s=void 0;a==i.length-1?(s=i.join(" "),o=n):(s=i.slice(0,a+1).join(" "),o="...");var l=t[s];if(l){if(l!=o)throw new Error("Inconsistent bindings for "+s)}else t[s]=o}delete e[r]}for(var c in t)e[c]=t[c];return e}function jo(e,t,r,n){var i=(t=Xo(t)).call?t.call(e,n):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&r(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return jo(e,t.fallthrough,r,n);for(var a=0;a<t.fallthrough.length;a++){var o=jo(e,t.fallthrough[a],r,n);if(o)return o}}}function qo(e){var t="string"==typeof e?e:Ho[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Uo(e,t,r){var n=e;return t.altKey&&"Alt"!=n&&(e="Alt-"+e),(k?t.metaKey:t.ctrlKey)&&"Ctrl"!=n&&(e="Ctrl-"+e),(k?t.ctrlKey:t.metaKey)&&"Mod"!=n&&(e="Cmd-"+e),!r&&t.shiftKey&&"Shift"!=n&&(e="Shift-"+e),e}function Wo(e,t){if(d&&34==e.keyCode&&e.char)return!1;var r=Ho[e.keyCode];return null!=r&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(r=e.code),Uo(r,e,t))}function Xo(e){return"string"==typeof e?Vo[e]:e}function Go(e,t){for(var r=e.doc.sel.ranges,n=[],i=0;i<r.length;i++){for(var a=t(r[i]);n.length&<(a.from,J(n).to)<=0;){var o=n.pop();if(lt(o.from,a.from)<0){a.from=o.from;break}}n.push(a)}Ii(e,(function(){for(var t=n.length-1;t>=0;t--)ao(e.doc,"",n[t].from,n[t].to,"+delete");ci(e)}))}function Yo(e,t,r){var n=ce(e.text,t+r,r);return n<0||n>e.text.length?null:n}function Zo(e,t,r){var n=Yo(e,t.ch,r);return null==n?null:new st(t.line,n,r<0?"after":"before")}function Ko(e,t,r,n,i){if(e){"rtl"==t.doc.direction&&(i=-i);var a=ge(r,t.doc.direction);if(a){var o,s=i<0?J(a):a[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=nn(t,r);o=i<0?r.text.length-1:0;var u=an(t,c,o).top;o=ue((function(e){return an(t,c,e).top==u}),i<0==(1==s.level)?s.from:s.to-1,o),"before"==l&&(o=Yo(r,o,1))}else o=i<0?s.to:s.from;return new st(n,o,l)}}return new st(n,i<0?r.text.length:0,i<0?"before":"after")}function Jo(e,t,r,n){var i=ge(t,e.doc.direction);if(!i)return Zo(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var a=he(i,r.ch,r.sticky),o=i[a];if("ltr"==e.doc.direction&&o.level%2==0&&(n>0?o.to>r.ch:o.from<r.ch))return Zo(t,r,n);var s,l=function(e,r){return Yo(t,e instanceof st?e.ch:e,r)},c=function(r){return e.options.lineWrapping?(s=s||nn(e,t),Sn(e,t,s,r)):{begin:0,end:t.text.length}},u=c("before"==r.sticky?l(r,-1):r.ch);if("rtl"==e.doc.direction||1==o.level){var p=1==o.level==n<0,d=l(r,p?1:-1);if(null!=d&&(p?d<=o.to&&d<=u.end:d>=o.from&&d>=u.begin)){var h=p?"before":"after";return new st(r.line,d,h)}}var m=function(e,t,n){for(var a=function(e,t){return t?new st(r.line,l(e,1),"before"):new st(r.line,e,"after")};e>=0&&e<i.length;e+=t){var o=i[e],s=t>0==(1!=o.level),c=s?n.begin:l(n.end,-1);if(o.from<=c&&c<o.to)return a(c,s);if(c=s?o.from:l(o.to,-1),n.begin<=c&&c<n.end)return a(c,s)}},g=m(a+n,n,u);if(g)return g;var f=n>0?u.end:l(u.begin,-1);return null==f||n>0&&f==t.text.length||!(g=m(n>0?0:i.length-1,n,c(f)))?null:g}Vo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Vo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Vo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Vo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Vo.default=y?Vo.macDefault:Vo.pcDefault;var Qo={selectAll:Ka,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),W)},killLine:function(e){return Go(e,(function(t){if(t.empty()){var r=Qe(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line<e.lastLine()?{from:t.head,to:st(t.head.line+1,0)}:{from:t.head,to:st(t.head.line,r)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Go(e,(function(t){return{from:st(t.from().line,0),to:mt(e.doc,st(t.to().line+1,0))}}))},delLineLeft:function(e){return Go(e,(function(e){return{from:st(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Go(e,(function(t){var r=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:r},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Go(e,(function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div");return{from:t.from(),to:n}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(st(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(st(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return es(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return rs(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return ts(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div")}),G)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:r},"div")}),G)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var r=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:r},"div");return n.ch<e.getLine(n.line).search(/\S/)?rs(e,t.head):n}),G)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],r=e.listSelections(),n=e.options.tabSize,i=0;i<r.length;i++){var a=r[i].from(),o=N(e.getLine(a.line),a.ch,n);t.push(K(n-o%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ii(e,(function(){for(var t=e.listSelections(),r=[],n=0;n<t.length;n++)if(t[n].empty()){var i=t[n].head,a=Qe(e.doc,i.line).text;if(a)if(i.ch==a.length&&(i=new st(i.line,i.ch-1)),i.ch>0)i=new st(i.line,i.ch+1),e.replaceRange(a.charAt(i.ch-1)+a.charAt(i.ch-2),st(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var o=Qe(e.doc,i.line-1).text;o&&(i=new st(i.line,1),e.replaceRange(a.charAt(0)+e.doc.lineSeparator()+o.charAt(o.length-1),st(i.line-1,o.length-1),i,"+transpose"))}r.push(new sa(i,i))}e.setSelections(r)}))},newlineAndIndent:function(e){return Ii(e,(function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);ci(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function es(e,t){var r=Qe(e.doc,t),n=er(r);return n!=r&&(t=nt(n)),Ko(!0,e,n,t,1)}function ts(e,t){var r=Qe(e.doc,t),n=tr(r);return n!=r&&(t=nt(n)),Ko(!0,e,r,t,-1)}function rs(e,t){var r=es(e,t.line),n=Qe(e.doc,r.line),i=ge(n,e.doc.direction);if(!i||0==i[0].level){var a=Math.max(r.ch,n.text.search(/\S/)),o=t.line==r.line&&t.ch<=a&&t.ch;return st(r.line,o?0:a,r.sticky)}return r}function ns(e,t,r){if("string"==typeof t&&!(t=Qo[t]))return!1;e.display.input.ensurePolled();var n=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r&&(e.display.shift=!1),i=t(e)!=U}finally{e.display.shift=n,e.state.suppressEdits=!1}return i}function is(e,t,r){for(var n=0;n<e.state.keyMaps.length;n++){var i=jo(t,e.state.keyMaps[n],r,e);if(i)return i}return e.options.extraKeys&&jo(t,e.options.extraKeys,r,e)||jo(t,e.options.keyMap,r,e)}var as=new F;function os(e,t,r,n){var i=e.state.keySeq;if(i){if(qo(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:as.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),ss(e,i+" "+t,r,n))return!0}return ss(e,t,r,n)}function ss(e,t,r,n){var i=is(e,t,n);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&$r(e,"keyHandled",e,t,r),"handled"!=i&&"multi"!=i||(Ce(r),Zn(e)),!!i}function ls(e,t){var r=Wo(t,!0);return!!r&&(t.shiftKey&&!e.state.keySeq?os(e,"Shift-"+r,t,(function(t){return ns(e,t,!0)}))||os(e,r,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ns(e,t)})):os(e,r,t,(function(t){return ns(e,t)})))}function cs(e,t,r){return os(e,"'"+r+"'",t,(function(t){return ns(e,t,!0)}))}var us=null;function ps(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=I(O(t)),we(t,e)))){o&&s<11&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var i=ls(t,e);d&&(us=i?n:null,i||88!=n||Pe||!(y?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),r&&!y&&!i&&46==n&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||ds(t)}}function ds(e){var t=e.display.lineDiv;function r(e){18!=e.keyCode&&e.altKey||(_(t,"CodeMirror-crosshair"),ye(document,"keyup",r),ye(document,"mouseover",r))}B(t,"CodeMirror-crosshair"),ve(document,"keyup",r),ve(document,"mouseover",r)}function hs(e){16==e.keyCode&&(this.doc.sel.shift=!1),we(this,e)}function ms(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Ur(t.display,e)||we(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var r=e.keyCode,n=e.charCode;if(d&&r==us)return us=null,void Ce(e);if(!d||e.which&&!(e.which<10)||!ls(t,e)){var i=String.fromCharCode(null==n?r:n);"\b"!=i&&(cs(t,e,i)||t.display.input.onKeyPress(e))}}}var gs,fs,vs=400,bs=function(e,t,r){this.time=e,this.pos=t,this.button=r};function ys(e,t){var r=+new Date;return fs&&fs.compare(r,e,t)?(gs=fs=null,"triple"):gs&&gs.compare(r,e,t)?(fs=new bs(r,e,t),gs=null,"double"):(gs=new bs(r,e,t),fs=null,"single")}function xs(e){var t=this,r=t.display;if(!(we(t,e)||r.activeTouch&&r.input.supportsTouch()))if(r.input.ensurePolled(),r.shift=e.shiftKey,Ur(r,e))l||(r.scroller.draggable=!1,setTimeout((function(){return r.scroller.draggable=!0}),100));else if(!Ts(t,e)){var n=On(t,e),i=$e(e),a=n?ys(n,i):"single";P(t).focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),n&&ws(t,i,n,a,e)||(1==i?n?ks(t,n,a,e):Te(e)==r.scroller&&Ce(e):2==i?(n&&Oa(t.doc,n),setTimeout((function(){return r.input.focus()}),20)):3==i&&(A?t.display.input.onContextMenu(e):Jn(t)))}}function ws(e,t,r,n,i){var a="Click";return"double"==n?a="Double"+a:"triple"==n&&(a="Triple"+a),os(e,Uo(a=(1==t?"Left":2==t?"Middle":"Right")+a,i),i,(function(t){if("string"==typeof t&&(t=Qo[t]),!t)return!1;var n=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n=t(e,r)!=U}finally{e.state.suppressEdits=!1}return n}))}function zs(e,t,r){var n=e.getOption("configureMouse"),i=n?n(e,t,r):{};if(null==i.unit){var a=x?r.shiftKey&&r.metaKey:r.altKey;i.unit=a?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||r.shiftKey),null==i.addNew&&(i.addNew=y?r.metaKey:r.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(y?r.altKey:r.ctrlKey)),i}function ks(e,t,r,n){o?setTimeout(R(Kn,e),0):e.curOp.focus=I(O(e));var i,a=zs(e,r,n),s=e.doc.sel;e.options.dragDrop&&Ie&&!e.isReadOnly()&&"single"==r&&(i=s.contains(t))>-1&&(lt((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(lt(i.to(),t)>0||t.xRel<0)?As(e,n,t,a):Ss(e,n,t,a)}function As(e,t,r,n){var i=e.display,a=!1,c=Bi(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Jn(e)),ye(i.wrapper.ownerDocument,"mouseup",c),ye(i.wrapper.ownerDocument,"mousemove",u),ye(i.scroller,"dragstart",p),ye(i.scroller,"drop",c),a||(Ce(t),n.addNew||Oa(e.doc,r,null,null,n.extend),l&&!h||o&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(e){a=a||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},p=function(){return a=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!n.moveOnDrag,ve(i.wrapper.ownerDocument,"mouseup",c),ve(i.wrapper.ownerDocument,"mousemove",u),ve(i.scroller,"dragstart",p),ve(i.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Cs(e,t,r){if("char"==r)return new sa(t,t);if("word"==r)return e.findWordAt(t);if("line"==r)return new sa(st(t.line,0),mt(e.doc,st(t.line+1,0)));var n=r(e,t);return new sa(n.from,n.to)}function Ss(e,t,r,n){o&&Jn(e);var i=e.display,a=e.doc;Ce(t);var s,l,c=a.sel,u=c.ranges;if(n.addNew&&!n.extend?(l=a.sel.contains(r),s=l>-1?u[l]:new sa(r,r)):(s=a.sel.primary(),l=a.sel.primIndex),"rectangle"==n.unit)n.addNew||(s=new sa(r,r)),r=On(e,t,!0,!0),l=-1;else{var p=Cs(e,r,n.unit);s=n.extend?Ha(s,p.anchor,p.head,n.extend):p}n.addNew?-1==l?(l=u.length,ja(a,la(e,u.concat([s]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==n.unit&&!n.extend?(ja(a,la(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=a.sel):Ra(a,l,s,X):(l=0,ja(a,new oa([s],0),X),c=a.sel);var d=r;function h(t){if(0!=lt(d,t))if(d=t,"rectangle"==n.unit){for(var i=[],o=e.options.tabSize,u=N(Qe(a,r.line).text,r.ch,o),p=N(Qe(a,t.line).text,t.ch,o),h=Math.min(u,p),m=Math.max(u,p),g=Math.min(r.line,t.line),f=Math.min(e.lastLine(),Math.max(r.line,t.line));g<=f;g++){var v=Qe(a,g).text,b=Y(v,h,o);h==m?i.push(new sa(st(g,b),st(g,b))):v.length>b&&i.push(new sa(st(g,b),st(g,Y(v,m,o))))}i.length||i.push(new sa(r,r)),ja(a,la(e,c.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var y,x=s,w=Cs(e,t,n.unit),z=x.anchor;lt(w.anchor,z)>0?(y=w.head,z=dt(x.from(),w.anchor)):(y=w.anchor,z=pt(x.to(),w.head));var k=c.ranges.slice(0);k[l]=_s(e,new sa(mt(a,z),y)),ja(a,la(e,k,l),X)}}var m=i.wrapper.getBoundingClientRect(),g=0;function f(t){var r=++g,o=On(e,t,!0,"rectangle"==n.unit);if(o)if(0!=lt(o,d)){e.curOp.focus=I(O(e)),h(o);var s=ni(i,a);(o.line>=s.to||o.line<s.from)&&setTimeout(Bi(e,(function(){g==r&&f(t)})),150)}else{var l=t.clientY<m.top?-20:t.clientY>m.bottom?20:0;l&&setTimeout(Bi(e,(function(){g==r&&(i.scroller.scrollTop+=l,f(t))})),50)}}function v(t){e.state.selectingText=!1,g=1/0,t&&(Ce(t),i.input.focus()),ye(i.wrapper.ownerDocument,"mousemove",b),ye(i.wrapper.ownerDocument,"mouseup",y),a.history.lastSelOrigin=null}var b=Bi(e,(function(e){0!==e.buttons&&$e(e)?f(e):v(e)})),y=Bi(e,v);e.state.selectingText=y,ve(i.wrapper.ownerDocument,"mousemove",b),ve(i.wrapper.ownerDocument,"mouseup",y)}function _s(e,t){var r=t.anchor,n=t.head,i=Qe(e.doc,r.line);if(0==lt(r,n)&&r.sticky==n.sticky)return t;var a=ge(i);if(!a)return t;var o=he(a,r.ch,r.sticky),s=a[o];if(s.from!=r.ch&&s.to!=r.ch)return t;var l,c=o+(s.from==r.ch==(1!=s.level)?0:1);if(0==c||c==a.length)return t;if(n.line!=r.line)l=(n.line-r.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=he(a,n.ch,n.sticky),p=u-o||(n.ch-r.ch)*(1==s.level?-1:1);l=u==c-1||u==c?p<0:p>0}var d=a[c+(l?-1:0)],h=l==(1==d.level),m=h?d.from:d.to,g=h?"after":"before";return r.ch==m&&r.sticky==g?t:new sa(new st(r.line,m,g),n)}function Ms(e,t,r,n){var i,a;if(t.touches)i=t.touches[0].clientX,a=t.touches[0].clientY;else try{i=t.clientX,a=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&Ce(t);var o=e.display,s=o.lineDiv.getBoundingClientRect();if(a>s.bottom||!ke(e,r))return _e(t);a-=s.top-o.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var c=o.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=i)return xe(e,r,e,it(e.doc,a),e.display.gutterSpecs[l].className,t),_e(t)}}function Ts(e,t){return Ms(e,t,"gutterClick",!0)}function $s(e,t){Ur(e.display,t)||Ls(e,t)||we(e,t,"contextmenu")||A||e.display.input.onContextMenu(t)}function Ls(e,t){return!!ke(e,"gutterContextMenu")&&Ms(e,t,"gutterContextMenu",!1)}function Es(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),mn(e)}bs.prototype.compare=function(e,t,r){return this.time+vs>e&&0==lt(t,this.pos)&&r==this.button};var Is={toString:function(){return"CodeMirror.Init"}},Bs={},Ds={};function Hs(e){var t=e.optionHandlers;function r(r,n,i,a){e.defaults[r]=n,i&&(t[r]=a?function(e,t,r){r!=Is&&i(e,t,r)}:i)}e.defineOption=r,e.Init=Is,r("value","",(function(e,t){return e.setValue(t)}),!0),r("mode",null,(function(e,t){e.doc.modeOption=t,ga(e)}),!0),r("indentUnit",2,ga,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,(function(e){fa(e),mn(e),Rn(e)}),!0),r("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var r=[],n=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var a=e.text.indexOf(t,i);if(-1==a)break;i=a+t.length,r.push(st(n,a))}n++}));for(var i=r.length-1;i>=0;i--)ao(e.doc,t,r[i],st(r[i].line,r[i].ch+t.length))}})),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,r){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),r!=Is&&e.refresh()})),r("specialCharPlaceholder",vr,(function(e){return e.refresh()}),!0),r("electricChars",!0),r("inputStyle",b?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),r("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),r("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),r("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),r("rtlMoveVisually",!w),r("wholeLineUpdateBefore",!0),r("theme","default",(function(e){Es(e),Qi(e)}),!0),r("keyMap","default",(function(e,t,r){var n=Xo(t),i=r!=Is&&Xo(r);i&&i.detach&&i.detach(e,n),n.attach&&n.attach(e,i||null)})),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,Ps,!0),r("gutters",[],(function(e,t){e.display.gutterSpecs=Ki(t,e.options.lineNumbers),Qi(e)}),!0),r("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Bn(e.display)+"px":"0",e.refresh()}),!0),r("coverGutterNextToScrollbar",!1,(function(e){return xi(e)}),!0),r("scrollbarStyle","native",(function(e){ki(e),xi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),r("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Ki(e.options.gutters,t),Qi(e)}),!0),r("firstLineNumber",1,Qi,!0),r("lineNumberFormatter",(function(e){return e}),Qi,!0),r("showCursorWhenSelecting",!1,Un,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,(function(e,t){"nocursor"==t&&(ei(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),r("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),r("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),r("dragDrop",!0,Os),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,Un,!0),r("singleCursorHeightPerLine",!0,Un,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,fa,!0),r("addModeClass",!1,fa,!0),r("pollInterval",100),r("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),r("historyEventDelay",1250),r("viewportMargin",10,(function(e){return e.refresh()}),!0),r("maxHighlightLength",1e4,fa,!0),r("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),r("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),r("autofocus",null),r("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),r("phrases",null)}function Os(e,t,r){if(!t!=!(r&&r!=Is)){var n=e.display.dragFunctions,i=t?ve:ye;i(e.display.scroller,"dragstart",n.start),i(e.display.scroller,"dragenter",n.enter),i(e.display.scroller,"dragover",n.over),i(e.display.scroller,"dragleave",n.leave),i(e.display.scroller,"drop",n.drop)}}function Ps(e){e.options.lineWrapping?(B(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(_(e.display.wrapper,"CodeMirror-wrap"),cr(e)),Hn(e),Rn(e),mn(e),setTimeout((function(){return xi(e)}),100)}function Rs(e,t){var r=this;if(!(this instanceof Rs))return new Rs(e,t);this.options=t=t?V(t):{},V(Bs,t,!1);var n=t.value;"string"==typeof n?n=new Co(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new Rs.inputStyles[t.inputStyle](this),a=this.display=new ea(e,n,i,t);for(var c in a.wrapper.CodeMirror=this,Es(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ki(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new F,keySeq:null,specialChars:null},t.autofocus&&!b&&a.input.focus(),o&&s<11&&setTimeout((function(){return r.display.input.reset(!0)}),20),Vs(this),Io(),Ci(this),this.curOp.forceUpdate=!0,xa(this,n),t.autofocus&&!b||this.hasFocus()?setTimeout((function(){r.hasFocus()&&!r.state.focused&&Qn(r)}),20):ei(this),Ds)Ds.hasOwnProperty(c)&&Ds[c](this,t[c],Is);Zi(this),t.finishInit&&t.finishInit(this);for(var u=0;u<Ns.length;++u)Ns[u](this);Si(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(a.lineDiv).textRendering&&(a.lineDiv.style.textRendering="auto")}function Vs(e){var t=e.display;ve(t.scroller,"mousedown",Bi(e,xs)),ve(t.scroller,"dblclick",o&&s<11?Bi(e,(function(t){if(!we(e,t)){var r=On(e,t);if(r&&!Ts(e,t)&&!Ur(e.display,t)){Ce(t);var n=e.findWordAt(r);Oa(e.doc,n.anchor,n.head)}}})):function(t){return we(e,t)||Ce(t)}),ve(t.scroller,"contextmenu",(function(t){return $s(e,t)})),ve(t.input.getField(),"contextmenu",(function(r){t.scroller.contains(r.target)||$s(e,r)}));var r,n={end:0};function i(){t.activeTouch&&(r=setTimeout((function(){return t.activeTouch=null}),1e3),(n=t.activeTouch).end=+new Date)}function a(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var r=t.left-e.left,n=t.top-e.top;return r*r+n*n>400}ve(t.scroller,"touchstart",(function(i){if(!we(e,i)&&!a(i)&&!Ts(e,i)){t.input.ensurePolled(),clearTimeout(r);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-n.end<=300?n:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),ve(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),ve(t.scroller,"touchend",(function(r){var n=t.activeTouch;if(n&&!Ur(t,r)&&null!=n.left&&!n.moved&&new Date-n.start<300){var a,o=e.coordsChar(t.activeTouch,"page");a=!n.prev||l(n,n.prev)?new sa(o,o):!n.prev.prev||l(n,n.prev.prev)?e.findWordAt(o):new sa(st(o.line,0),mt(e.doc,st(o.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),Ce(r)}i()})),ve(t.scroller,"touchcancel",i),ve(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(mi(e,t.scroller.scrollTop),fi(e,t.scroller.scrollLeft,!0),xe(e,"scroll",e))})),ve(t.scroller,"mousewheel",(function(t){return aa(e,t)})),ve(t.scroller,"DOMMouseScroll",(function(t){return aa(e,t)})),ve(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){we(e,t)||Me(t)},over:function(t){we(e,t)||(To(e,t),Me(t))},start:function(t){return Mo(e,t)},drop:Bi(e,_o),leave:function(t){we(e,t)||$o(e)}};var c=t.input.getField();ve(c,"keyup",(function(t){return hs.call(e,t)})),ve(c,"keydown",Bi(e,ps)),ve(c,"keypress",Bi(e,ms)),ve(c,"focus",(function(t){return Qn(e,t)})),ve(c,"blur",(function(t){return ei(e,t)}))}Rs.defaults=Bs,Rs.optionHandlers=Ds;var Ns=[];function Fs(e,t,r,n){var i,a=e.doc;null==r&&(r="add"),"smart"==r&&(a.mode.indent?i=wt(e,t).state:r="prev");var o=e.options.tabSize,s=Qe(a,t),l=N(s.text,null,o);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(n||/\S/.test(s.text)){if("smart"==r&&((c=a.mode.indent(i,s.text.slice(u.length),s.text))==U||c>150)){if(!n)return;r="prev"}}else c=0,r="not";"prev"==r?c=t>a.first?N(Qe(a,t-1).text,null,o):0:"add"==r?c=l+e.options.indentUnit:"subtract"==r?c=l-e.options.indentUnit:"number"==typeof r&&(c=l+r),c=Math.max(0,c);var p="",d=0;if(e.options.indentWithTabs)for(var h=Math.floor(c/o);h;--h)d+=o,p+="\t";if(d<c&&(p+=K(c-d)),p!=u)return ao(a,p,st(t,0),st(t,u.length),"+input"),s.stateAfter=null,!0;for(var m=0;m<a.sel.ranges.length;m++){var g=a.sel.ranges[m];if(g.head.line==t&&g.head.ch<u.length){var f=st(t,u.length);Ra(a,m,new sa(f,f));break}}}Rs.defineInitHook=function(e){return Ns.push(e)};var js=null;function qs(e){js=e}function Us(e,t,r,n,i){var a=e.doc;e.display.shift=!1,n||(n=a.sel);var o=+new Date-200,s="paste"==i||e.state.pasteIncoming>o,l=He(t),c=null;if(s&&n.ranges.length>1)if(js&&js.text.join("\n")==t){if(n.ranges.length%js.text.length==0){c=[];for(var u=0;u<js.text.length;u++)c.push(a.splitLines(js.text[u]))}}else l.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(c=Q(l,(function(e){return[e]})));for(var p=e.curOp.updateInput,d=n.ranges.length-1;d>=0;d--){var h=n.ranges[d],m=h.from(),g=h.to();h.empty()&&(r&&r>0?m=st(m.line,m.ch-r):e.state.overwrite&&!s?g=st(g.line,Math.min(Qe(a,g.line).text.length,g.ch+J(l).length)):s&&js&&js.lineWise&&js.text.join("\n")==l.join("\n")&&(m=g=st(m.line,0)));var f={from:m,to:g,text:c?c[d%c.length]:l,origin:i||(s?"paste":e.state.cutIncoming>o?"cut":"+input")};Qa(e.doc,f),$r(e,"inputRead",e,f)}t&&!s&&Xs(e,t),ci(e),e.curOp.updateInput<2&&(e.curOp.updateInput=p),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ws(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Ii(t,(function(){return Us(t,r,0,null,"paste")})),!0}function Xs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var a=e.getModeAt(i.head),o=!1;if(a.electricChars){for(var s=0;s<a.electricChars.length;s++)if(t.indexOf(a.electricChars.charAt(s))>-1){o=Fs(e,i.head.line,"smart");break}}else a.electricInput&&a.electricInput.test(Qe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(o=Fs(e,i.head.line,"smart"));o&&$r(e,"electricInput",e,i.head.line)}}}function Gs(e){for(var t=[],r=[],n=0;n<e.doc.sel.ranges.length;n++){var i=e.doc.sel.ranges[n].head.line,a={anchor:st(i,0),head:st(i+1,0)};r.push(a),t.push(e.getRange(a.anchor,a.head))}return{text:t,ranges:r}}function Ys(e,t,r,n){e.setAttribute("autocorrect",r?"on":"off"),e.setAttribute("autocapitalize",n?"on":"off"),e.setAttribute("spellcheck",!!t)}function Zs(){var e=$("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=$("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),f&&(e.style.border="1px solid black"),t}function Ks(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){P(this).focus(),this.display.input.focus()},setOption:function(e,r){var n=this.options,i=n[e];n[e]==r&&"mode"!=e||(n[e]=r,t.hasOwnProperty(e)&&Bi(this,t[e])(this,r,i),xe(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Xo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,r=0;r<t.length;++r)if(t[r]==e||t[r].name==e)return t.splice(r,1),!0},addOverlay:Di((function(t,r){var n=t.token?t:e.getMode(this.options,t);if(n.startState)throw new Error("Overlays may not be stateful.");ee(this.state.overlays,{mode:n,modeSpec:t,opaque:r&&r.opaque,priority:r&&r.priority||0},(function(e){return e.priority})),this.state.modeGen++,Rn(this)})),removeOverlay:Di((function(e){for(var t=this.state.overlays,r=0;r<t.length;++r){var n=t[r].modeSpec;if(n==e||"string"==typeof e&&n.name==e)return t.splice(r,1),this.state.modeGen++,void Rn(this)}})),indentLine:Di((function(e,t,r){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),at(this.doc,e)&&Fs(this,e,t,r)})),indentSelection:Di((function(e){for(var t=this.doc.sel.ranges,r=-1,n=0;n<t.length;n++){var i=t[n];if(i.empty())i.head.line>r&&(Fs(this,i.head.line,e,!0),r=i.head.line,n==this.doc.sel.primIndex&&ci(this));else{var a=i.from(),o=i.to(),s=Math.max(r,a.line);r=Math.min(this.lastLine(),o.line-(o.ch?0:1))+1;for(var l=s;l<r;++l)Fs(this,l,e);var c=this.doc.sel.ranges;0==a.ch&&t.length==c.length&&c[n].from().ch>0&&Ra(this.doc,n,new sa(a,c[n].to()),W)}}})),getTokenAt:function(e,t){return St(this,e,t)},getLineTokens:function(e,t){return St(this,st(e),t,!0)},getTokenTypeAt:function(e){e=mt(this.doc,e);var t,r=xt(this,Qe(this.doc,e.line)),n=0,i=(r.length-1)/2,a=e.ch;if(0==a)t=r[2];else for(;;){var o=n+i>>1;if((o?r[2*o-1]:0)>=a)i=o;else{if(!(r[2*o+1]<a)){t=r[2*o+2];break}n=o+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var r=this.doc.mode;return r.innerMode?e.innerMode(r,this.getTokenAt(t).state).mode:r},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var n=[];if(!r.hasOwnProperty(t))return n;var i=r[t],a=this.getModeAt(e);if("string"==typeof a[t])i[a[t]]&&n.push(i[a[t]]);else if(a[t])for(var o=0;o<a[t].length;o++){var s=i[a[t][o]];s&&n.push(s)}else a.helperType&&i[a.helperType]?n.push(i[a.helperType]):i[a.name]&&n.push(i[a.name]);for(var l=0;l<i._global.length;l++){var c=i._global[l];c.pred(a,this)&&-1==j(n,c.val)&&n.push(c.val)}return n},getStateAfter:function(e,t){var r=this.doc;return wt(this,(e=ht(r,null==e?r.first+r.size-1:e))+1,t).state},cursorCoords:function(e,t){var r=this.doc.sel.primary();return wn(this,null==e?r.head:"object"==typeof e?mt(this.doc,e):e?r.from():r.to(),t||"page")},charCoords:function(e,t){return xn(this,mt(this.doc,e),t||"page")},coordsChar:function(e,t){return An(this,(e=yn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=yn(this,{top:e,left:0},t||"page").top,it(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,r){var n,i=!1;if("number"==typeof e){var a=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>a&&(e=a,i=!0),n=Qe(this.doc,e)}else n=e;return bn(this,n,{top:0,left:0},t||"page",r||i).top+(i?this.doc.height-sr(n):0)},defaultTextHeight:function(){return Ln(this.display)},defaultCharWidth:function(){return En(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,r,n,i){var a=this.display,o=(e=wn(this,mt(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),a.sizer.appendChild(t),"over"==n)o=e.top;else if("above"==n||"near"==n){var l=Math.max(a.wrapper.clientHeight,this.doc.height),c=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);("above"==n||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?o=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(o=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=o+"px",t.style.left=t.style.right="","right"==i?(s=a.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(a.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),r&&oi(this,{left:s,top:o,right:s+t.offsetWidth,bottom:o+t.offsetHeight})},triggerOnKeyDown:Di(ps),triggerOnKeyPress:Di(ms),triggerOnKeyUp:hs,triggerOnMouseDown:Di(xs),execCommand:function(e){if(Qo.hasOwnProperty(e))return Qo[e].call(null,this)},triggerElectric:Di((function(e){Xs(this,e)})),findPosH:function(e,t,r,n){var i=1;t<0&&(i=-1,t=-t);for(var a=mt(this.doc,e),o=0;o<t&&!(a=Js(this.doc,a,i,r,n)).hitSide;++o);return a},moveH:Di((function(e,t){var r=this;this.extendSelectionsBy((function(n){return r.display.shift||r.doc.extend||n.empty()?Js(r.doc,n.head,e,t,r.options.rtlMoveVisually):e<0?n.from():n.to()}),G)})),deleteH:Di((function(e,t){var r=this.doc.sel,n=this.doc;r.somethingSelected()?n.replaceSelection("",null,"+delete"):Go(this,(function(r){var i=Js(n,r.head,e,t,!1);return e<0?{from:i,to:r.head}:{from:r.head,to:i}}))})),findPosV:function(e,t,r,n){var i=1,a=n;t<0&&(i=-1,t=-t);for(var o=mt(this.doc,e),s=0;s<t;++s){var l=wn(this,o,"div");if(null==a?a=l.left:l.left=a,(o=Qs(this,l,i,r)).hitSide)break}return o},moveV:Di((function(e,t){var r=this,n=this.doc,i=[],a=!this.display.shift&&!n.extend&&n.sel.somethingSelected();if(n.extendSelectionsBy((function(o){if(a)return e<0?o.from():o.to();var s=wn(r,o.head,"div");null!=o.goalColumn&&(s.left=o.goalColumn),i.push(s.left);var l=Qs(r,s,e,t);return"page"==t&&o==n.sel.primary()&&li(r,xn(r,l,"div").top-s.top),l}),G),i.length)for(var o=0;o<n.sel.ranges.length;o++)n.sel.ranges[o].goalColumn=i[o]})),findWordAt:function(e){var t=Qe(this.doc,e.line).text,r=e.ch,n=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&n!=t.length||!r?++n:--r;for(var a=t.charAt(r),o=ae(a,i)?function(e){return ae(e,i)}:/\s/.test(a)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ae(e)};r>0&&o(t.charAt(r-1));)--r;for(;n<t.length&&o(t.charAt(n));)++n}return new sa(st(e.line,r),st(e.line,n))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?B(this.display.cursorDiv,"CodeMirror-overwrite"):_(this.display.cursorDiv,"CodeMirror-overwrite"),xe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==I(O(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Di((function(e,t){ui(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Yr(this)-this.display.barHeight,width:e.scrollWidth-Yr(this)-this.display.barWidth,clientHeight:Kr(this),clientWidth:Zr(this)}},scrollIntoView:Di((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:st(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?pi(this,e):hi(this,e.from,e.to,e.margin)})),setSize:Di((function(e,t){var r=this,n=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=n(e)),null!=t&&(this.display.wrapper.style.height=n(t)),this.options.lineWrapping&&hn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Vn(r,i,"widget");break}++i})),this.curOp.forceUpdate=!0,xe(this,"refresh",this)})),operation:function(e){return Ii(this,e)},startOperation:function(){return Ci(this)},endOperation:function(){return Si(this)},refresh:Di((function(){var e=this.display.cachedTextHeight;Rn(this),this.curOp.forceUpdate=!0,mn(this),ui(this,this.doc.scrollLeft,this.doc.scrollTop),Xi(this.display),(null==e||Math.abs(e-Ln(this.display))>.5||this.options.lineWrapping)&&Hn(this),xe(this,"refresh",this)})),swapDoc:Di((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),xa(this,e),mn(this),this.display.input.reset(),ui(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,$r(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ae(e),e.registerHelper=function(t,n,i){r.hasOwnProperty(t)||(r[t]=e[t]={_global:[]}),r[t][n]=i},e.registerGlobalHelper=function(t,n,i,a){e.registerHelper(t,n,a),r[t]._global.push({pred:i,val:a})}}function Js(e,t,r,n,i){var a=t,o=r,s=Qe(e,t.line),l=i&&"rtl"==e.direction?-r:r;function c(){var r=t.line+l;return!(r<e.first||r>=e.first+e.size)&&(t=new st(r,t.ch,t.sticky),s=Qe(e,r))}function u(a){var o;if("codepoint"==n){var u=s.text.charCodeAt(t.ch+(r>0?0:-1));if(isNaN(u))o=null;else{var p=r>0?u>=55296&&u<56320:u>=56320&&u<57343;o=new st(t.line,Math.max(0,Math.min(s.text.length,t.ch+r*(p?2:1))),-r)}}else o=i?Jo(e.cm,s,t,r):Zo(s,t,r);if(null==o){if(a||!c())return!1;t=Ko(i,e.cm,s,t.line,l)}else t=o;return!0}if("char"==n||"codepoint"==n)u();else if("column"==n)u(!0);else if("word"==n||"group"==n)for(var p=null,d="group"==n,h=e.cm&&e.cm.getHelper(t,"wordChars"),m=!0;!(r<0)||u(!m);m=!1){var g=s.text.charAt(t.ch)||"\n",f=ae(g,h)?"w":d&&"\n"==g?"n":!d||/\s/.test(g)?null:"p";if(!d||m||f||(f="s"),p&&p!=f){r<0&&(r=1,u(),t.sticky="after");break}if(f&&(p=f),r>0&&!u(!m))break}var v=Ya(e,t,a,o,!0);return ct(a,v)&&(v.hitSide=!0),v}function Qs(e,t,r,n){var i,a,o=e.doc,s=t.left;if("page"==n){var l=Math.min(e.display.wrapper.clientHeight,P(e).innerHeight||o(e).documentElement.clientHeight),c=Math.max(l-.5*Ln(e.display),3);i=(r>0?t.bottom:t.top)+r*c}else"line"==n&&(i=r>0?t.bottom+3:t.top-3);for(;(a=An(e,s,i)).outside;){if(r<0?i<=0:i>=o.height){a.hitSide=!0;break}i+=5*r}return a}var el=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new F,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function tl(e,t){var r=rn(e,t.line);if(!r||r.hidden)return null;var n=Qe(e.doc,t.line),i=Qr(r,n,t.line),a=ge(n,e.doc.direction),o="left";a&&(o=he(a,t.ch)%2?"right":"left");var s=ln(i.map,t.ch,o);return s.offset="right"==s.collapse?s.end:s.start,s}function rl(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function nl(e,t){return t&&(e.bad=!0),e}function il(e,t,r,n,i){var a="",o=!1,s=e.doc.lineSeparator(),l=!1;function c(e){return function(t){return t.id==e}}function u(){o&&(a+=s,l&&(a+=s),o=l=!1)}function p(e){e&&(u(),a+=e)}function d(t){if(1==t.nodeType){var r=t.getAttribute("cm-text");if(r)return void p(r);var a,h=t.getAttribute("cm-marker");if(h){var m=e.findMarks(st(n,0),st(i+1,0),c(+h));return void(m.length&&(a=m[0].find(0))&&p(et(e.doc,a.from,a.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;g&&u();for(var f=0;f<t.childNodes.length;f++)d(t.childNodes[f]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),g&&(o=!0)}else 3==t.nodeType&&p(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;d(t),t!=r;)t=t.nextSibling,l=!1;return a}function al(e,t,r){var n;if(t==e.display.lineDiv){if(!(n=e.display.lineDiv.childNodes[r]))return nl(e.clipPos(st(e.display.viewTo-1)),!0);t=null,r=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var a=e.display.view[i];if(a.node==n)return ol(a,t,r)}}function ol(e,t,r){var n=e.text.firstChild,i=!1;if(!t||!E(n,t))return nl(st(nt(e.line),0),!0);if(t==n&&(i=!0,t=n.childNodes[r],r=0,!t)){var a=e.rest?J(e.rest):e.line;return nl(st(nt(a),a.text.length),i)}var o=3==t.nodeType?t:null,s=t;for(o||1!=t.childNodes.length||3!=t.firstChild.nodeType||(o=t.firstChild,r&&(r=o.nodeValue.length));s.parentNode!=n;)s=s.parentNode;var l=e.measure,c=l.maps;function u(t,r,n){for(var i=-1;i<(c?c.length:0);i++)for(var a=i<0?l.map:c[i],o=0;o<a.length;o+=3){var s=a[o+2];if(s==t||s==r){var u=nt(i<0?e.line:e.rest[i]),p=a[o]+n;return(n<0||s!=t)&&(p=a[o+(n?1:0)]),st(u,p)}}}var p=u(o,s,r);if(p)return nl(p,i);for(var d=s.nextSibling,h=o?o.nodeValue.length-r:0;d;d=d.nextSibling){if(p=u(d,d.firstChild,0))return nl(st(p.line,p.ch-h),i);h+=d.textContent.length}for(var m=s.previousSibling,g=r;m;m=m.previousSibling){if(p=u(m,m.firstChild,-1))return nl(st(p.line,p.ch+g),i);g+=m.textContent.length}}el.prototype.init=function(e){var t=this,r=this,n=r.cm,i=r.div=e.lineDiv;function a(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function o(e){if(a(e)&&!we(n,e)){if(n.somethingSelected())qs({lineWise:!1,text:n.getSelections()}),"cut"==e.type&&n.replaceSelection("",null,"cut");else{if(!n.options.lineWiseCopyCut)return;var t=Gs(n);qs({lineWise:!0,text:t.text}),"cut"==e.type&&n.operation((function(){n.setSelections(t.ranges,0,W),n.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var o=js.text.join("\n");if(e.clipboardData.setData("Text",o),e.clipboardData.getData("Text")==o)return void e.preventDefault()}var s=Zs(),l=s.firstChild;Ys(l),n.display.lineSpace.insertBefore(s,n.display.lineSpace.firstChild),l.value=js.text.join("\n");var c=I(i.ownerDocument);H(l),setTimeout((function(){n.display.lineSpace.removeChild(s),c.focus(),c==i&&r.showPrimarySelection()}),50)}}i.contentEditable=!0,Ys(i,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize),ve(i,"paste",(function(e){!a(e)||we(n,e)||Ws(e,n)||s<=11&&setTimeout(Bi(n,(function(){return t.updateFromDOM()})),20)})),ve(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),ve(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),ve(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),ve(i,"touchstart",(function(){return r.forceCompositionEnd()})),ve(i,"input",(function(){t.composing||t.readFromDOMSoon()})),ve(i,"copy",o),ve(i,"cut",o)},el.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},el.prototype.prepareSelection=function(){var e=Wn(this.cm,!1);return e.focus=I(this.div.ownerDocument)==this.div,e},el.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},el.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},el.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),i=n.from(),a=n.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||a.line<t.display.viewFrom)e.removeAllRanges();else{var o=al(t,e.anchorNode,e.anchorOffset),s=al(t,e.focusNode,e.focusOffset);if(!o||o.bad||!s||s.bad||0!=lt(dt(o,s),i)||0!=lt(pt(o,s),a)){var l=t.display.view,c=i.line>=t.display.viewFrom&&tl(t,i)||{node:l[0].measure.map[2],offset:0},u=a.line<t.display.viewTo&&tl(t,a);if(!u){var p=l[l.length-1].measure,d=p.maps?p.maps[p.maps.length-1]:p.map;u={node:d[d.length-1],offset:d[d.length-2]-d[d.length-3]}}if(c&&u){var h,m=e.rangeCount&&e.getRangeAt(0);try{h=S(c.node,c.offset,u.offset,u.node)}catch(e){}h&&(!r&&t.state.focused?(e.collapse(c.node,c.offset),h.collapsed||(e.removeAllRanges(),e.addRange(h))):(e.removeAllRanges(),e.addRange(h)),m&&null==e.anchorNode?e.addRange(m):r&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},el.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},el.prototype.showMultipleSelections=function(e){T(this.cm.display.cursorDiv,e.cursors),T(this.cm.display.selectionDiv,e.selection)},el.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},el.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return E(this.div,t)},el.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&I(this.div.ownerDocument)==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},el.prototype.blur=function(){this.div.blur()},el.prototype.getField=function(){return this.div},el.prototype.supportsTouch=function(){return!0},el.prototype.receivedFocus=function(){var e=this,t=this;function r(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,r))}this.selectionInEditor()?setTimeout((function(){return e.pollSelection()}),20):Ii(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,r)},el.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},el.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&u&&this.cm.display.gutterSpecs.length&&rl(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var r=al(t,e.anchorNode,e.anchorOffset),n=al(t,e.focusNode,e.focusOffset);r&&n&&Ii(t,(function(){ja(t.doc,ca(r,n),W),(r.bad||n.bad)&&(t.curOp.selectionChanged=!0)}))}}},el.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,r,n=this.cm,i=n.display,a=n.doc.sel.primary(),o=a.from(),s=a.to();if(0==o.ch&&o.line>n.firstLine()&&(o=st(o.line-1,Qe(n.doc,o.line-1).length)),s.ch==Qe(n.doc,s.line).text.length&&s.line<n.lastLine()&&(s=st(s.line+1,0)),o.line<i.viewFrom||s.line>i.viewTo-1)return!1;o.line==i.viewFrom||0==(e=Pn(n,o.line))?(t=nt(i.view[0].line),r=i.view[0].node):(t=nt(i.view[e].line),r=i.view[e-1].node.nextSibling);var l,c,u=Pn(n,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=nt(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!r)return!1;for(var p=n.doc.splitLines(il(n,r,c,t,l)),d=et(n.doc,st(t,0),st(l,Qe(n.doc,l).text.length));p.length>1&&d.length>1;)if(J(p)==J(d))p.pop(),d.pop(),l--;else{if(p[0]!=d[0])break;p.shift(),d.shift(),t++}for(var h=0,m=0,g=p[0],f=d[0],v=Math.min(g.length,f.length);h<v&&g.charCodeAt(h)==f.charCodeAt(h);)++h;for(var b=J(p),y=J(d),x=Math.min(b.length-(1==p.length?h:0),y.length-(1==d.length?h:0));m<x&&b.charCodeAt(b.length-m-1)==y.charCodeAt(y.length-m-1);)++m;if(1==p.length&&1==d.length&&t==o.line)for(;h&&h>o.ch&&b.charCodeAt(b.length-m-1)==y.charCodeAt(y.length-m-1);)h--,m++;p[p.length-1]=b.slice(0,b.length-m).replace(/^\u200b+/,""),p[0]=p[0].slice(h).replace(/\u200b+$/,"");var w=st(t,h),z=st(l,d.length?J(d).length-m:0);return p.length>1||p[0]||lt(w,z)?(ao(n.doc,p,w,z,"+input"),!0):void 0},el.prototype.ensurePolled=function(){this.forceCompositionEnd()},el.prototype.reset=function(){this.forceCompositionEnd()},el.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},el.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},el.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Ii(this.cm,(function(){return Rn(e.cm)}))},el.prototype.setUneditable=function(e){e.contentEditable="false"},el.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Bi(this.cm,Us)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},el.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},el.prototype.onContextMenu=function(){},el.prototype.resetPosition=function(){},el.prototype.needsContentAttribute=!0;var sl=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new F,this.hasSelection=!1,this.composing=null,this.resetting=!1};function ll(e,t){if((t=t?V(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var r=I(e.ownerDocument);t.autofocus=r==e||null!=e.getAttribute("autofocus")&&r==document.body}function n(){e.value=s.getValue()}var i;if(e.form&&(ve(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var a=e.form;i=a.submit;try{var o=a.submit=function(){n(),a.submit=i,a.submit(),a.submit=o}}catch(e){}}t.finishInit=function(r){r.save=n,r.getTextArea=function(){return e},r.toTextArea=function(){r.toTextArea=isNaN,n(),e.parentNode.removeChild(r.getWrapperElement()),e.style.display="",e.form&&(ye(e.form,"submit",n),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Rs((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function cl(e){e.off=ye,e.on=ve,e.wheelEventPixels=ia,e.Doc=Co,e.splitLines=He,e.countColumn=N,e.findColumn=Y,e.isWordChar=ie,e.Pass=U,e.signal=xe,e.Line=ur,e.changeEnd=ua,e.scrollbarModel=zi,e.Pos=st,e.cmpPos=lt,e.modes=Ne,e.mimeModes=Fe,e.resolveMode=Ue,e.getMode=We,e.modeExtensions=Xe,e.extendMode=Ge,e.copyState=Ye,e.startState=Ke,e.innerMode=Ze,e.commands=Qo,e.keyMap=Vo,e.keyName=Wo,e.isModifierKey=qo,e.lookupKey=jo,e.normalizeKeyMap=Fo,e.StringStream=Je,e.SharedTextMarker=yo,e.TextMarker=vo,e.LineWidget=ho,e.e_preventDefault=Ce,e.e_stopPropagation=Se,e.e_stop=Me,e.addClass=B,e.contains=E,e.rmClass=_,e.keyNames=Ho}sl.prototype.init=function(e){var t=this,r=this,n=this.cm;this.createField(e);var i=this.textarea;function a(e){if(!we(n,e)){if(n.somethingSelected())qs({lineWise:!1,text:n.getSelections()});else{if(!n.options.lineWiseCopyCut)return;var t=Gs(n);qs({lineWise:!0,text:t.text}),"cut"==e.type?n.setSelections(t.ranges,null,W):(r.prevInput="",i.value=t.text.join("\n"),H(i))}"cut"==e.type&&(n.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),f&&(i.style.width="0px"),ve(i,"input",(function(){o&&s>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()})),ve(i,"paste",(function(e){we(n,e)||Ws(e,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())})),ve(i,"cut",a),ve(i,"copy",a),ve(e.scroller,"paste",(function(t){if(!Ur(e,t)&&!we(n,t)){if(!i.dispatchEvent)return n.state.pasteIncoming=+new Date,void r.focus();var a=new Event("paste");a.clipboardData=t.clipboardData,i.dispatchEvent(a)}})),ve(e.lineSpace,"selectstart",(function(t){Ur(e,t)||Ce(t)})),ve(i,"compositionstart",(function(){var e=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:n.markText(e,n.getCursor("to"),{className:"CodeMirror-composing"})}})),ve(i,"compositionend",(function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)}))},sl.prototype.createField=function(e){this.wrapper=Zs(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Ys(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},sl.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},sl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=Wn(e);if(e.options.moveInputWithCursor){var i=wn(e,r.sel.primary().head,"div"),a=t.wrapper.getBoundingClientRect(),o=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+o.top-a.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+o.left-a.left))}return n},sl.prototype.showSelection=function(e){var t=this.cm.display;T(t.cursorDiv,e.cursors),T(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},sl.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&H(this.textarea),o&&s>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",o&&s>=9&&(this.hasSelection=null));this.resetting=!1}},sl.prototype.getField=function(){return this.textarea},sl.prototype.supportsTouch=function(){return!1},sl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!b||I(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},sl.prototype.blur=function(){this.textarea.blur()},sl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},sl.prototype.receivedFocus=function(){this.slowPoll()},sl.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},sl.prototype.fastPoll=function(){var e=!1,t=this;function r(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,r))}t.pollingFast=!0,t.polling.set(20,r)},sl.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Oe(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=r.value;if(i==n&&!t.somethingSelected())return!1;if(o&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var a=i.charCodeAt(0);if(8203!=a||n||(n=""),8666==a)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(n.length,i.length);l<c&&n.charCodeAt(l)==i.charCodeAt(l);)++l;return Ii(t,(function(){Us(t,i.slice(l),n.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?r.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},sl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},sl.prototype.onKeyPress=function(){o&&s>=9&&(this.hasSelection=null),this.fastPoll()},sl.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var a=On(r,e),c=n.scroller.scrollTop;if(a&&!d){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(a)&&Bi(r,ja)(r.doc,ca(a),W);var u,p=i.style.cssText,h=t.wrapper.style.cssText,m=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-m.top-5)+"px; left: "+(e.clientX-m.left-5)+"px;\n z-index: 1000; background: "+(o?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=i.ownerDocument.defaultView.scrollY),n.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,u),n.input.reset(),r.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll),o&&s>=9&&f(),A){Me(e);var g=function(){ye(window,"mouseup",g),setTimeout(v,20)};ve(window,"mouseup",g)}else setTimeout(v,50)}function f(){if(null!=i.selectionStart){var e=r.somethingSelected(),a=""+(e?i.value:"");i.value="⇚",i.value=a,t.prevInput=e?"":"",i.selectionStart=1,i.selectionEnd=a.length,n.selForContextMenu=r.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,i.style.cssText=p,o&&s<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=c),null!=i.selectionStart)){(!o||o&&s<9)&&f();var e=0,a=function(){n.selForContextMenu==r.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==t.prevInput?Bi(r,Ka)(r):e++<10?n.detectingSelectAll=setTimeout(a,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(a,200)}}},sl.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},sl.prototype.setUneditable=function(){},sl.prototype.needsContentAttribute=!1,Hs(Rs),Ks(Rs);var ul="iter insert remove copy getEditor constructor".split(" ");for(var pl in Co.prototype)Co.prototype.hasOwnProperty(pl)&&j(ul,pl)<0&&(Rs.prototype[pl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Co.prototype[pl]));return Ae(Co),Rs.inputStyles={textarea:sl,contenteditable:el},Rs.defineMode=function(e){Rs.defaults.mode||"null"==e||(Rs.defaults.mode=e),je.apply(this,arguments)},Rs.defineMIME=qe,Rs.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Rs.defineMIME("text/plain","null"),Rs.defineExtension=function(e,t){Rs.prototype[e]=t},Rs.defineDocExtension=function(e,t){Co.prototype[e]=t},Rs.fromTextArea=ll,cl(Rs),Rs.version="5.65.12",Rs}()}));gi((function(e,t){!function(e){var t=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,r=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,n=/[*+-]\s/;function i(e,r){var n=r.line,i=0,a=0,o=t.exec(e.getLine(n)),s=o[1];do{var l=n+(i+=1),c=e.getLine(l),u=t.exec(c);if(u){var p=u[1],d=parseInt(o[3],10)+i-a,h=parseInt(u[3],10),m=h;if(s!==p||isNaN(h)){if(s.length>p.length)return;if(s.length<p.length&&1===i)return;a+=1}else d===h&&(m=h+1),d>h&&(m=d+1),e.replaceRange(c.replace(t,p+m+u[4]+u[5]),{line:l,ch:0},{line:l,ch:c.length})}}while(u)}e.commands.newlineAndIndentContinueMarkdownList=function(a){if(a.getOption("disableInput"))return e.Pass;for(var o=a.listSelections(),s=[],l=0;l<o.length;l++){var c=o[l].head,u=a.getStateAfter(c.line),p=e.innerMode(a.getMode(),u);if("markdown"!==p.mode.name&&"markdown"!==p.mode.helperType)return void a.execCommand("newlineAndIndent");var d=!1!==(u=p.state).list,h=0!==u.quote,m=a.getLine(c.line),g=t.exec(m),f=/^\s*$/.test(m.slice(0,c.ch));if(!o[l].empty()||!d&&!h||!g||f)return void a.execCommand("newlineAndIndent");if(r.test(m)){var v=h&&/>\s*$/.test(m),b=!/>\s*$/.test(m);(v||b)&&a.replaceRange("",{line:c.line,ch:0},{line:c.line,ch:c.ch+1}),s[l]="\n"}else{var y=g[1],x=g[5],w=!(n.test(g[2])||g[2].indexOf(">")>=0),z=w?parseInt(g[3],10)+1+g[4]:g[2].replace("x"," ");s[l]="\n"+y+z+x,w&&i(a,c)}}a.replaceSelections(s)}}(uA)})),uA.commands.tabAndIndentMarkdownList=function(e){var t=e.listSelections()[0].head;if(!1!==e.getStateAfter(t.line).list)e.execCommand("indentMore");else if(e.options.indentWithTabs)e.execCommand("insertTab");else{var r=Array(e.options.tabSize+1).join(" ");e.replaceSelection(r)}},uA.commands.shiftTabAndUnindentMarkdownList=function(e){var t=e.listSelections()[0].head;if(!1!==e.getStateAfter(t.line).list)e.execCommand("indentLess");else if(e.options.indentWithTabs)e.execCommand("insertTab");else{var r=Array(e.options.tabSize+1).join(" ");e.replaceSelection(r)}},gi((function(e,t){!function(e){function t(e){var t=e.getWrapperElement();e.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:t.style.width,height:t.style.height},t.style.width="",t.style.height="auto",t.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",e.refresh()}function r(e){var t=e.getWrapperElement();t.className=t.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var r=e.state.fullScreenRestore;t.style.width=r.width,t.style.height=r.height,window.scrollTo(r.scrollLeft,r.scrollTop),e.refresh()}e.defineOption("fullScreen",!1,(function(n,i,a){a==e.Init&&(a=!1),!a!=!i&&(i?t(n):r(n))}))}(uA)}));gi((function(e,t){var r,n,i;n={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},i={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1},(r=uA).defineMode("xml",(function(e,t){var a,o,s=e.indentUnit,l={},c=t.htmlMode?n:i;for(var u in c)l[u]=c[u];for(var u in t)l[u]=t[u];function p(e,t){function r(r){return t.tokenize=r,r(e,t)}var n=e.next();return"<"==n?e.eat("!")?e.eat("[")?e.match("CDATA[")?r(m("atom","]]>")):null:e.match("--")?r(m("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),r(g(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=m("meta","?>"),"meta"):(a=e.eat("/")?"closeTag":"openTag",t.tokenize=d,"tag bracket"):"&"==n?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function d(e,t){var r=e.next();if(">"==r||"/"==r&&e.eat(">"))return t.tokenize=p,a=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return a="equals",null;if("<"==r){t.tokenize=p,t.state=x,t.tagName=t.tagStart=null;var n=t.tokenize(e,t);return n?n+" tag error":"tag error"}return/[\'\"]/.test(r)?(t.tokenize=h(r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function h(e){var t=function(t,r){for(;!t.eol();)if(t.next()==e){r.tokenize=d;break}return"string"};return t.isInAttribute=!0,t}function m(e,t){return function(r,n){for(;!r.eol();){if(r.match(t)){n.tokenize=p;break}r.next()}return e}}function g(e){return function(t,r){for(var n;null!=(n=t.next());){if("<"==n)return r.tokenize=g(e+1),r.tokenize(t,r);if(">"==n){if(1==e){r.tokenize=p;break}return r.tokenize=g(e-1),r.tokenize(t,r)}}return"meta"}}function f(e){return e&&e.toLowerCase()}function v(e,t,r){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=r,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function b(e){e.context&&(e.context=e.context.prev)}function y(e,t){for(var r;;){if(!e.context)return;if(r=e.context.tagName,!l.contextGrabbers.hasOwnProperty(f(r))||!l.contextGrabbers[f(r)].hasOwnProperty(f(t)))return;b(e)}}function x(e,t,r){return"openTag"==e?(r.tagStart=t.column(),w):"closeTag"==e?z:x}function w(e,t,r){return"word"==e?(r.tagName=t.current(),o="tag",C):l.allowMissingTagName&&"endTag"==e?(o="tag bracket",C(e,t,r)):(o="error",w)}function z(e,t,r){if("word"==e){var n=t.current();return r.context&&r.context.tagName!=n&&l.implicitlyClosed.hasOwnProperty(f(r.context.tagName))&&b(r),r.context&&r.context.tagName==n||!1===l.matchClosing?(o="tag",k):(o="tag error",A)}return l.allowMissingTagName&&"endTag"==e?(o="tag bracket",k(e,t,r)):(o="error",A)}function k(e,t,r){return"endTag"!=e?(o="error",k):(b(r),x)}function A(e,t,r){return o="error",k(e,t,r)}function C(e,t,r){if("word"==e)return o="attribute",S;if("endTag"==e||"selfcloseTag"==e){var n=r.tagName,i=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(f(n))?y(r,n):(y(r,n),r.context=new v(r,n,i==r.indented)),x}return o="error",C}function S(e,t,r){return"equals"==e?_:(l.allowMissing||(o="error"),C(e,t,r))}function _(e,t,r){return"string"==e?M:"word"==e&&l.allowUnquoted?(o="string",C):(o="error",C(e,t,r))}function M(e,t,r){return"string"==e?M:C(e,t,r)}return p.isInText=!0,{startState:function(e){var t={tokenize:p,state:x,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;a=null;var r=t.tokenize(e,t);return(r||a)&&"comment"!=r&&(o=null,t.state=t.state(a||r,e,t),o&&(r="error"==o?r+" error":o)),r},indent:function(e,t,n){var i=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+s;if(i&&i.noIndent)return r.Pass;if(e.tokenize!=d&&e.tokenize!=p)return n?n.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==l.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(t))return 0;var a=t&&/^<(\/)?([\w_:\.-]*)/.exec(t);if(a&&a[1])for(;i;){if(i.tagName==a[2]){i=i.prev;break}if(!l.implicitlyClosed.hasOwnProperty(f(i.tagName)))break;i=i.prev}else if(a)for(;i;){var o=l.contextGrabbers[f(i.tagName)];if(!o||!o.hasOwnProperty(f(a[2])))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+s:e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==_&&(e.state=C)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],r=e.context;r;r=r.prev)t.push(r.tagName);return t.reverse()}}})),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})),gi((function(e,t){!function(e){e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var t=0;t<e.modeInfo.length;t++){var r=e.modeInfo[t];r.mimes&&(r.mime=r.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var r=0;r<e.modeInfo.length;r++){var n=e.modeInfo[r];if(n.mime==t)return n;if(n.mimes)for(var i=0;i<n.mimes.length;i++)if(n.mimes[i]==t)return n}return/\+xml$/.test(t)?e.findModeByMIME("application/xml"):/\+json$/.test(t)?e.findModeByMIME("application/json"):void 0},e.findModeByExtension=function(t){t=t.toLowerCase();for(var r=0;r<e.modeInfo.length;r++){var n=e.modeInfo[r];if(n.ext)for(var i=0;i<n.ext.length;i++)if(n.ext[i]==t)return n}},e.findModeByFileName=function(t){for(var r=0;r<e.modeInfo.length;r++){var n=e.modeInfo[r];if(n.file&&n.file.test(t))return n}var i=t.lastIndexOf("."),a=i>-1&&t.substring(i+1,t.length);if(a)return e.findModeByExtension(a)},e.findModeByName=function(t){t=t.toLowerCase();for(var r=0;r<e.modeInfo.length;r++){var n=e.modeInfo[r];if(n.name.toLowerCase()==t)return n;if(n.alias)for(var i=0;i<n.alias.length;i++)if(n.alias[i].toLowerCase()==t)return n}}}(uA)})),gi((function(e,t){var r;(r=uA).defineMode("markdown",(function(e,t){var n=r.getMode(e,"text/html"),i="null"==n.name;function a(t){if(r.findModeByName){var n=r.findModeByName(t);n&&(t=n.mime||n.mimes[0])}var i=r.getMode(e,t);return"null"==i.name?null:i}void 0===t.highlightFormatting&&(t.highlightFormatting=!1),void 0===t.maxBlockquoteDepth&&(t.maxBlockquoteDepth=0),void 0===t.taskLists&&(t.taskLists=!1),void 0===t.strikethrough&&(t.strikethrough=!1),void 0===t.emoji&&(t.emoji=!1),void 0===t.fencedCodeBlockHighlighting&&(t.fencedCodeBlockHighlighting=!0),void 0===t.fencedCodeBlockDefaultMode&&(t.fencedCodeBlockDefaultMode="text/plain"),void 0===t.xml&&(t.xml=!0),void 0===t.tokenTypeOverrides&&(t.tokenTypeOverrides={});var o={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var s in o)o.hasOwnProperty(s)&&t.tokenTypeOverrides[s]&&(o[s]=t.tokenTypeOverrides[s]);var l=/^([*\-_])(?:\s*\1){2,}\s*$/,c=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,p=t.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,d=/^ {0,3}(?:\={1,}|-{2,})\s*$/,h=/^[^#!\[\]*_\\<>` "'(~:]+/,m=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,g=/^\s*\[[^\]]+?\]:.*$/,f=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,v=" ";function b(e,t,r){return t.f=t.inline=r,r(e,t)}function y(e,t,r){return t.f=t.block=r,r(e,t)}function x(e){return!e||!/\S/.test(e.string)}function w(e){if(e.linkTitle=!1,e.linkHref=!1,e.linkText=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,e.f==k){var t=i;if(!t){var a=r.innerMode(n,e.htmlState);t="xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText}t&&(e.f=_,e.block=z,e.htmlState=null)}return e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine={stream:null},null}function z(e,n){var i=e.column()===n.indentation,s=x(n.prevLine.stream),h=n.indentedCode,f=n.prevLine.hr,v=!1!==n.list,y=(n.listStack[n.listStack.length-1]||0)+3;n.indentedCode=!1;var w=n.indentation;if(null===n.indentationDiff&&(n.indentationDiff=n.indentation,v)){for(n.list=null;w<n.listStack[n.listStack.length-1];)n.listStack.pop(),n.listStack.length?n.indentation=n.listStack[n.listStack.length-1]:n.list=!1;!1!==n.list&&(n.indentationDiff=w-n.listStack[n.listStack.length-1])}var z=!(s||f||n.prevLine.header||v&&h||n.prevLine.fencedCodeEnd),k=(!1===n.list||f||s)&&n.indentation<=y&&e.match(l),S=null;if(n.indentationDiff>=4&&(h||n.prevLine.fencedCodeEnd||n.prevLine.header||s))return e.skipToEnd(),n.indentedCode=!0,o.code;if(e.eatSpace())return null;if(i&&n.indentation<=y&&(S=e.match(p))&&S[1].length<=6)return n.quote=0,n.header=S[1].length,n.thisLine.header=!0,t.highlightFormatting&&(n.formatting="header"),n.f=n.inline,C(n);if(n.indentation<=y&&e.eat(">"))return n.quote=i?1:n.quote+1,t.highlightFormatting&&(n.formatting="quote"),e.eatSpace(),C(n);if(!k&&!n.setext&&i&&n.indentation<=y&&(S=e.match(c))){var _=S[1]?"ol":"ul";return n.indentation=w+e.current().length,n.list=!0,n.quote=0,n.listStack.push(n.indentation),n.em=!1,n.strong=!1,n.code=!1,n.strikethrough=!1,t.taskLists&&e.match(u,!1)&&(n.taskList=!0),n.f=n.inline,t.highlightFormatting&&(n.formatting=["list","list-"+_]),C(n)}return i&&n.indentation<=y&&(S=e.match(m,!0))?(n.quote=0,n.fencedEndRE=new RegExp(S[1]+"+ *$"),n.localMode=t.fencedCodeBlockHighlighting&&a(S[2]||t.fencedCodeBlockDefaultMode),n.localMode&&(n.localState=r.startState(n.localMode)),n.f=n.block=A,t.highlightFormatting&&(n.formatting="code-block"),n.code=-1,C(n)):n.setext||!(z&&v||n.quote||!1!==n.list||n.code||k||g.test(e.string))&&(S=e.lookAhead(1))&&(S=S.match(d))?(n.setext?(n.header=n.setext,n.setext=0,e.skipToEnd(),t.highlightFormatting&&(n.formatting="header")):(n.header="="==S[0].charAt(0)?1:2,n.setext=n.header),n.thisLine.header=!0,n.f=n.inline,C(n)):k?(e.skipToEnd(),n.hr=!0,n.thisLine.hr=!0,o.hr):"["===e.peek()?b(e,n,E):b(e,n,n.inline)}function k(e,t){var a=n.token(e,t.htmlState);if(!i){var o=r.innerMode(n,t.htmlState);("xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText||t.md_inside&&e.current().indexOf(">")>-1)&&(t.f=_,t.block=z,t.htmlState=null)}return a}function A(e,r){var n,i=r.listStack[r.listStack.length-1]||0,a=r.indentation<i,s=i+3;return r.fencedEndRE&&r.indentation<=s&&(a||e.match(r.fencedEndRE))?(t.highlightFormatting&&(r.formatting="code-block"),a||(n=C(r)),r.localMode=r.localState=null,r.block=z,r.f=_,r.fencedEndRE=null,r.code=0,r.thisLine.fencedCodeEnd=!0,a?y(e,r,r.block):n):r.localMode?r.localMode.token(e,r.localState):(e.skipToEnd(),o.code)}function C(e){var r=[];if(e.formatting){r.push(o.formatting),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var n=0;n<e.formatting.length;n++)r.push(o.formatting+"-"+e.formatting[n]),"header"===e.formatting[n]&&r.push(o.formatting+"-"+e.formatting[n]+"-"+e.header),"quote"===e.formatting[n]&&(!t.maxBlockquoteDepth||t.maxBlockquoteDepth>=e.quote?r.push(o.formatting+"-"+e.formatting[n]+"-"+e.quote):r.push("error"))}if(e.taskOpen)return r.push("meta"),r.length?r.join(" "):null;if(e.taskClosed)return r.push("property"),r.length?r.join(" "):null;if(e.linkHref?r.push(o.linkHref,"url"):(e.strong&&r.push(o.strong),e.em&&r.push(o.em),e.strikethrough&&r.push(o.strikethrough),e.emoji&&r.push(o.emoji),e.linkText&&r.push(o.linkText),e.code&&r.push(o.code),e.image&&r.push(o.image),e.imageAltText&&r.push(o.imageAltText,"link"),e.imageMarker&&r.push(o.imageMarker)),e.header&&r.push(o.header,o.header+"-"+e.header),e.quote&&(r.push(o.quote),!t.maxBlockquoteDepth||t.maxBlockquoteDepth>=e.quote?r.push(o.quote+"-"+e.quote):r.push(o.quote+"-"+t.maxBlockquoteDepth)),!1!==e.list){var i=(e.listStack.length-1)%3;i?1===i?r.push(o.list2):r.push(o.list3):r.push(o.list1)}return e.trailingSpaceNewLine?r.push("trailing-space-new-line"):e.trailingSpace&&r.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),r.length?r.join(" "):null}function S(e,t){if(e.match(h,!0))return C(t)}function _(e,i){var a=i.text(e,i);if(void 0!==a)return a;if(i.list)return i.list=null,C(i);if(i.taskList)return" "===e.match(u,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,t.highlightFormatting&&(i.formatting="task"),i.taskList=!1,C(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&e.match(/^#+$/,!0))return t.highlightFormatting&&(i.formatting="header"),C(i);var s=e.next();if(i.linkTitle){i.linkTitle=!1;var l=s;"("===s&&(l=")");var c="^\\s*(?:[^"+(l=(l+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+l;if(e.match(new RegExp(c),!0))return o.linkHref}if("`"===s){var p=i.formatting;t.highlightFormatting&&(i.formatting="code"),e.eatWhile("`");var d=e.current().length;if(0!=i.code||i.quote&&1!=d){if(d==i.code){var h=C(i);return i.code=0,h}return i.formatting=p,C(i)}return i.code=d,C(i)}if(i.code)return C(i);if("\\"===s&&(e.next(),t.highlightFormatting)){var m=C(i),g=o.formatting+"-escape";return m?m+" "+g:g}if("!"===s&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,t.highlightFormatting&&(i.formatting="image"),C(i);if("["===s&&i.imageMarker&&e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,t.highlightFormatting&&(i.formatting="image"),C(i);if("]"===s&&i.imageAltText){t.highlightFormatting&&(i.formatting="image");var m=C(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=T,m}if("["===s&&!i.image)return i.linkText&&e.match(/^.*?\]/)||(i.linkText=!0,t.highlightFormatting&&(i.formatting="link")),C(i);if("]"===s&&i.linkText){t.highlightFormatting&&(i.formatting="link");var m=C(i);return i.linkText=!1,i.inline=i.f=e.match(/\(.*?\)| ?\[.*?\]/,!1)?T:_,m}if("<"===s&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=M,t.highlightFormatting&&(i.formatting="link"),(m=C(i))?m+=" ":m="",m+o.linkInline;if("<"===s&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=M,t.highlightFormatting&&(i.formatting="link"),(m=C(i))?m+=" ":m="",m+o.linkEmail;if(t.xml&&"<"===s&&e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var v=e.string.indexOf(">",e.pos);if(-1!=v){var b=e.string.substring(e.start,v);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(b)&&(i.md_inside=!0)}return e.backUp(1),i.htmlState=r.startState(n),y(e,i,k)}if(t.xml&&"<"===s&&e.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===s||"_"===s){for(var x=1,w=1==e.pos?" ":e.string.charAt(e.pos-2);x<3&&e.eat(s);)x++;var z=e.peek()||" ",A=!/\s/.test(z)&&(!f.test(z)||/\s/.test(w)||f.test(w)),S=!/\s/.test(w)&&(!f.test(w)||/\s/.test(z)||f.test(z)),$=null,L=null;if(x%2&&(i.em||!A||"*"!==s&&S&&!f.test(w)?i.em!=s||!S||"*"!==s&&A&&!f.test(z)||($=!1):$=!0),x>1&&(i.strong||!A||"*"!==s&&S&&!f.test(w)?i.strong!=s||!S||"*"!==s&&A&&!f.test(z)||(L=!1):L=!0),null!=L||null!=$)return t.highlightFormatting&&(i.formatting=null==$?"strong":null==L?"em":"strong em"),!0===$&&(i.em=s),!0===L&&(i.strong=s),h=C(i),!1===$&&(i.em=!1),!1===L&&(i.strong=!1),h}else if(" "===s&&(e.eat("*")||e.eat("_"))){if(" "===e.peek())return C(i);e.backUp(1)}if(t.strikethrough)if("~"===s&&e.eatWhile(s)){if(i.strikethrough)return t.highlightFormatting&&(i.formatting="strikethrough"),h=C(i),i.strikethrough=!1,h;if(e.match(/^[^\s]/,!1))return i.strikethrough=!0,t.highlightFormatting&&(i.formatting="strikethrough"),C(i)}else if(" "===s&&e.match("~~",!0)){if(" "===e.peek())return C(i);e.backUp(2)}if(t.emoji&&":"===s&&e.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,t.highlightFormatting&&(i.formatting="emoji");var E=C(i);return i.emoji=!1,E}return" "===s&&(e.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),C(i)}function M(e,r){if(">"===e.next()){r.f=r.inline=_,t.highlightFormatting&&(r.formatting="link");var n=C(r);return n?n+=" ":n="",n+o.linkInline}return e.match(/^[^>]+/,!0),o.linkInline}function T(e,r){if(e.eatSpace())return null;var n=e.next();return"("===n||"["===n?(r.f=r.inline=L("("===n?")":"]"),t.highlightFormatting&&(r.formatting="link-string"),r.linkHref=!0,C(r)):"error"}var $={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function L(e){return function(r,n){if(r.next()===e){n.f=n.inline=_,t.highlightFormatting&&(n.formatting="link-string");var i=C(n);return n.linkHref=!1,i}return r.match($[e]),n.linkHref=!0,C(n)}}function E(e,r){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(r.f=I,e.next(),t.highlightFormatting&&(r.formatting="link"),r.linkText=!0,C(r)):b(e,r,_)}function I(e,r){if(e.match("]:",!0)){r.f=r.inline=B,t.highlightFormatting&&(r.formatting="link");var n=C(r);return r.linkText=!1,n}return e.match(/^([^\]\\]|\\.)+/,!0),o.linkText}function B(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),t.f=t.inline=_,o.linkHref+" url")}var D={startState:function(){return{f:z,prevLine:{stream:null},thisLine:{stream:null},block:z,htmlState:null,indentation:0,inline:_,text:S,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(e){return{f:e.f,prevLine:e.prevLine,thisLine:e.thisLine,block:e.block,htmlState:e.htmlState&&r.copyState(n,e.htmlState),indentation:e.indentation,localMode:e.localMode,localState:e.localMode?r.copyState(e.localMode,e.localState):null,inline:e.inline,text:e.text,formatting:!1,linkText:e.linkText,linkTitle:e.linkTitle,linkHref:e.linkHref,code:e.code,em:e.em,strong:e.strong,strikethrough:e.strikethrough,emoji:e.emoji,header:e.header,setext:e.setext,hr:e.hr,taskList:e.taskList,list:e.list,listStack:e.listStack.slice(0),quote:e.quote,indentedCode:e.indentedCode,trailingSpace:e.trailingSpace,trailingSpaceNewLine:e.trailingSpaceNewLine,md_inside:e.md_inside,fencedEndRE:e.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return w(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=k)){var r=e.match(/^\s*/,!0)[0].replace(/\t/g,v).length;if(t.indentation=r,t.indentationDiff=null,r>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==k?{state:e.htmlState,mode:n}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:D}},indent:function(e,t,i){return e.block==k&&n.indent?n.indent(e.htmlState,t,i):e.localState&&e.localMode.indent?e.localMode.indent(e.localState,t,i):r.Pass},blankLine:w,getType:C,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return D}),"xml"),r.defineMIME("text/markdown","markdown"),r.defineMIME("text/x-markdown","markdown")})),gi((function(e,t){var r;(r=uA).overlayMode=function(e,t,n){return{startState:function(){return{base:r.startState(e),overlay:r.startState(t),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(n){return{base:r.copyState(e,n.base),overlay:r.copyState(t,n.overlay),basePos:n.basePos,baseCur:null,overlayPos:n.overlayPos,overlayCur:null}},token:function(r,i){return(r!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<r.start)&&(i.streamSeen=r,i.basePos=i.overlayPos=r.start),r.start==i.basePos&&(i.baseCur=e.token(r,i.base),i.basePos=r.pos),r.start==i.overlayPos&&(r.pos=r.start,i.overlayCur=t.token(r,i.overlay),i.overlayPos=r.pos),r.pos=Math.min(i.basePos,i.overlayPos),null==i.overlayCur?i.baseCur:null!=i.baseCur&&i.overlay.combineTokens||n&&null==i.overlay.combineTokens?i.baseCur+" "+i.overlayCur:i.overlayCur},indent:e.indent&&function(t,r,n){return e.indent(t.base,r,n)},electricChars:e.electricChars,innerMode:function(t){return{state:t.base,mode:e}},blankLine:function(r){var i,a;return e.blankLine&&(i=e.blankLine(r.base)),t.blankLine&&(a=t.blankLine(r.overlay)),null==a?i:n&&null!=i?i+" "+a:a}}}}));gi((function(e,t){!function(e){function t(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function r(e){t(e);var r=e.state.placeholder=document.createElement("pre");r.style.cssText="height: 0; overflow: visible",r.style.direction=e.getOption("direction"),r.className="CodeMirror-placeholder CodeMirror-line-like";var n=e.getOption("placeholder");"string"==typeof n&&(n=document.createTextNode(n)),r.appendChild(n),e.display.lineSpace.insertBefore(r,e.display.lineSpace.firstChild)}function n(e){setTimeout((function(){var n=!1;if(1==e.lineCount()){var i=e.getInputField();n="TEXTAREA"==i.nodeName?!e.getLine(0).length:!/[^\u200b]/.test(i.querySelector(".CodeMirror-line").textContent)}n?r(e):t(e)}),20)}function i(e){o(e)&&r(e)}function a(e){var n=e.getWrapperElement(),i=o(e);n.className=n.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?r(e):t(e)}function o(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",(function(r,o,s){var l=s&&s!=e.Init;if(o&&!l)r.on("blur",i),r.on("change",a),r.on("swapDoc",a),e.on(r.getInputField(),"compositionupdate",r.state.placeholderCompose=function(){n(r)}),a(r);else if(!o&&l){r.off("blur",i),r.off("change",a),r.off("swapDoc",a),e.off(r.getInputField(),"compositionupdate",r.state.placeholderCompose),t(r);var c=r.getWrapperElement();c.className=c.className.replace(" CodeMirror-empty","")}o&&!r.hasFocus()&&i(r)}))}(uA)})),gi((function(e,t){!function(e){function t(t,n){function i(){t.display.wrapper.offsetHeight?(r(t,n),t.display.lastWrapHeight!=t.display.wrapper.clientHeight&&t.refresh()):n.timeout=setTimeout(i,n.delay)}n.timeout=setTimeout(i,n.delay),n.hurry=function(){clearTimeout(n.timeout),n.timeout=setTimeout(i,50)},e.on(window,"mouseup",n.hurry),e.on(window,"keyup",n.hurry)}function r(t,r){clearTimeout(r.timeout),e.off(window,"mouseup",r.hurry),e.off(window,"keyup",r.hurry)}e.defineOption("autoRefresh",!1,(function(e,n){e.state.autoRefresh&&(r(e,e.state.autoRefresh),e.state.autoRefresh=null),n&&0==e.display.wrapper.offsetHeight&&t(e,e.state.autoRefresh={delay:n.delay||250})}))}(uA)})),gi((function(e,t){!function(e){function t(e){e.state.markedSelection&&e.operation((function(){c(e)}))}function r(e){e.state.markedSelection&&e.state.markedSelection.length&&e.operation((function(){s(e)}))}e.defineOption("styleSelectedText",!1,(function(n,i,a){var o=a&&a!=e.Init;i&&!o?(n.state.markedSelection=[],n.state.markedSelectionStyle="string"==typeof i?i:"CodeMirror-selectedtext",l(n),n.on("cursorActivity",t),n.on("change",r)):!i&&o&&(n.off("cursorActivity",t),n.off("change",r),s(n),n.state.markedSelection=n.state.markedSelectionStyle=null)}));var n=8,i=e.Pos,a=e.cmpPos;function o(e,t,r,o){if(0!=a(t,r))for(var s=e.state.markedSelection,l=e.state.markedSelectionStyle,c=t.line;;){var u=c==t.line?t:i(c,0),p=c+n,d=p>=r.line,h=d?r:i(p,0),m=e.markText(u,h,{className:l});if(null==o?s.push(m):s.splice(o++,0,m),d)break;c=p}}function s(e){for(var t=e.state.markedSelection,r=0;r<t.length;++r)t[r].clear();t.length=0}function l(e){s(e);for(var t=e.listSelections(),r=0;r<t.length;r++)o(e,t[r].from(),t[r].to())}function c(e){if(!e.somethingSelected())return s(e);if(e.listSelections().length>1)return l(e);var t=e.getCursor("start"),r=e.getCursor("end"),i=e.state.markedSelection;if(!i.length)return o(e,t,r);var c=i[0].find(),u=i[i.length-1].find();if(!c||!u||r.line-t.line<=n||a(t,u.to)>=0||a(r,c.from)<=0)return l(e);for(;a(t,c.from)>0;)i.shift().clear(),c=i[0].find();for(a(t,c.from)<0&&(c.to.line-t.line<n?(i.shift().clear(),o(e,t,c.to,0)):o(e,t,c.from,0));a(r,u.to)<0;)i.pop().clear(),u=i[i.length-1].find();a(r,u.to)>0&&(r.line-u.from.line<n?(i.pop().clear(),o(e,u.from,r)):o(e,u.to,r))}}(uA)})),gi((function(e,t){!function(e){var t,r,n=e.Pos;function i(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function a(e,t){for(var r=i(e),n=r,a=0;a<t.length;a++)-1==n.indexOf(t.charAt(a))&&(n+=t.charAt(a));return r==n?e:new RegExp(e.source,n)}function o(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function s(e,t,r){t=a(t,"g");for(var i=r.line,o=r.ch,s=e.lastLine();i<=s;i++,o=0){t.lastIndex=o;var l=e.getLine(i),c=t.exec(l);if(c)return{from:n(i,c.index),to:n(i,c.index+c[0].length),match:c}}}function l(e,t,r){if(!o(t))return s(e,t,r);t=a(t,"gm");for(var i,l=1,c=r.line,u=e.lastLine();c<=u;){for(var p=0;p<l&&!(c>u);p++){var d=e.getLine(c++);i=null==i?d:i+"\n"+d}l*=2,t.lastIndex=r.ch;var h=t.exec(i);if(h){var m=i.slice(0,h.index).split("\n"),g=h[0].split("\n"),f=r.line+m.length-1,v=m[m.length-1].length;return{from:n(f,v),to:n(f+g.length-1,1==g.length?v+g[0].length:g[g.length-1].length),match:h}}}}function c(e,t,r){for(var n,i=0;i<=e.length;){t.lastIndex=i;var a=t.exec(e);if(!a)break;var o=a.index+a[0].length;if(o>e.length-r)break;(!n||o>n.index+n[0].length)&&(n=a),i=a.index+1}return n}function u(e,t,r){t=a(t,"g");for(var i=r.line,o=r.ch,s=e.firstLine();i>=s;i--,o=-1){var l=e.getLine(i),u=c(l,t,o<0?0:l.length-o);if(u)return{from:n(i,u.index),to:n(i,u.index+u[0].length),match:u}}}function p(e,t,r){if(!o(t))return u(e,t,r);t=a(t,"gm");for(var i,s=1,l=e.getLine(r.line).length-r.ch,p=r.line,d=e.firstLine();p>=d;){for(var h=0;h<s&&p>=d;h++){var m=e.getLine(p--);i=null==i?m:m+"\n"+i}s*=2;var g=c(i,t,l);if(g){var f=i.slice(0,g.index).split("\n"),v=g[0].split("\n"),b=p+f.length,y=f[f.length-1].length;return{from:n(b,y),to:n(b+v.length-1,1==v.length?y+v[0].length:v[v.length-1].length),match:g}}}}function d(e,t,r,n){if(e.length==t.length)return r;for(var i=0,a=r+Math.max(0,e.length-t.length);;){if(i==a)return i;var o=i+a>>1,s=n(e.slice(0,o)).length;if(s==r)return o;s>r?a=o:i=o+1}}function h(e,i,a,o){if(!i.length)return null;var s=o?t:r,l=s(i).split(/\r|\n\r?/);e:for(var c=a.line,u=a.ch,p=e.lastLine()+1-l.length;c<=p;c++,u=0){var h=e.getLine(c).slice(u),m=s(h);if(1==l.length){var g=m.indexOf(l[0]);if(-1==g)continue e;return a=d(h,m,g,s)+u,{from:n(c,d(h,m,g,s)+u),to:n(c,d(h,m,g+l[0].length,s)+u)}}var f=m.length-l[0].length;if(m.slice(f)==l[0]){for(var v=1;v<l.length-1;v++)if(s(e.getLine(c+v))!=l[v])continue e;var b=e.getLine(c+l.length-1),y=s(b),x=l[l.length-1];if(y.slice(0,x.length)==x)return{from:n(c,d(h,m,f,s)+u),to:n(c+l.length-1,d(b,y,x.length,s))}}}}function m(e,i,a,o){if(!i.length)return null;var s=o?t:r,l=s(i).split(/\r|\n\r?/);e:for(var c=a.line,u=a.ch,p=e.firstLine()-1+l.length;c>=p;c--,u=-1){var h=e.getLine(c);u>-1&&(h=h.slice(0,u));var m=s(h);if(1==l.length){var g=m.lastIndexOf(l[0]);if(-1==g)continue e;return{from:n(c,d(h,m,g,s)),to:n(c,d(h,m,g+l[0].length,s))}}var f=l[l.length-1];if(m.slice(0,f.length)==f){var v=1;for(a=c-l.length+1;v<l.length-1;v++)if(s(e.getLine(a+v))!=l[v])continue e;var b=e.getLine(c+1-l.length),y=s(b);if(y.slice(y.length-l[0].length)==l[0])return{from:n(c+1-l.length,d(b,y,b.length-l[0].length,s)),to:n(c,d(h,m,f.length,s))}}}}function g(e,t,r,i){var o;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,r=r?e.clipPos(r):n(0,0),this.pos={from:r,to:r},"object"==typeof i?o=i.caseFold:(o=i,i=null),"string"==typeof t?(null==o&&(o=!1),this.matches=function(r,n){return(r?m:h)(e,t,n,o)}):(t=a(t,"gm"),i&&!1===i.multiline?this.matches=function(r,n){return(r?u:s)(e,t,n)}:this.matches=function(r,n){return(r?p:l)(e,t,n)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},r=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},r=function(e){return e}),g.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var r=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(r=n(r.line,r.ch),t?(r.ch--,r.ch<0&&(r.line--,r.ch=(this.doc.getLine(r.line)||"").length)):(r.ch++,r.ch>(this.doc.getLine(r.line)||"").length&&(r.ch=0,r.line++)),0!=e.cmpPos(r,this.doc.clipPos(r))))return this.atOccurrence=!1;var i=this.matches(t,r);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var a=n(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:a,to:a},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,r){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,r),this.pos.to=n(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,r){return new g(this.doc,e,t,r)})),e.defineDocExtension("getSearchCursor",(function(e,t,r){return new g(this,e,t,r)})),e.defineExtension("selectMatches",(function(t,r){for(var n=[],i=this.getSearchCursor(t,this.getCursor("from"),r);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)n.push({anchor:i.from(),head:i.to()});n.length&&this.setSelections(n,0)}))}(uA)})),gi((function(e,t){var r,n;n=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i,(r=uA).defineMode("gfm",(function(e,t){var i=0;function a(e){return e.code=!1,null}var o={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,r){if(r.combineTokens=null,r.codeBlock)return e.match(/^```+/)?(r.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(r.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),r.codeBlock=!0,null;if("`"===e.peek()){e.next();var a=e.pos;e.eatWhile("`");var o=1+e.pos-a;return r.code?o===i&&(r.code=!1):(i=o,r.code=!0),null}if(r.code)return e.next(),null;if(e.eatSpace())return r.ateSpace=!0,null;if((e.sol()||r.ateSpace)&&(r.ateSpace=!1,!1!==t.gitHubSpice)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return r.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return r.combineTokens=!0,"link"}return e.match(n)&&"]("!=e.string.slice(e.start-2,e.start)&&(0==e.start||/\W/.test(e.string.charAt(e.start-1)))?(r.combineTokens=!0,"link"):(e.next(),null)},blankLine:a},s={taskLists:!0,strikethrough:!0,emoji:!0};for(var l in t)s[l]=t[l];return s.name="markdown",r.overlayMode(r.getMode(e,s),o)}),"markdown"),r.defineMIME("text/x-gfm","gfm")}));var pA=mi(Object.freeze({__proto__:null,default:{}})),dA=gi((function(e){var t;t=function(e,t,r,n){n=n||{},this.dictionary=null,this.rules={},this.dictionaryTable={},this.compoundRules=[],this.compoundRuleCodes={},this.replacementTable=[],this.flags=n.flags||{},this.memoized={},this.loaded=!1;var i,a,o,s,l,c=this;function u(e,t){var r=c._readFile(e,null,n.asyncLoad);n.asyncLoad?r.then((function(e){t(e)})):t(r)}function p(e){t=e,r&&h()}function d(e){r=e,t&&h()}function h(){for(c.rules=c._parseAFF(t),c.compoundRuleCodes={},a=0,s=c.compoundRules.length;a<s;a++){var e=c.compoundRules[a];for(o=0,l=e.length;o<l;o++)c.compoundRuleCodes[e[o]]=[]}for(a in"ONLYINCOMPOUND"in c.flags&&(c.compoundRuleCodes[c.flags.ONLYINCOMPOUND]=[]),c.dictionaryTable=c._parseDIC(r),c.compoundRuleCodes)0===c.compoundRuleCodes[a].length&&delete c.compoundRuleCodes[a];for(a=0,s=c.compoundRules.length;a<s;a++){var i=c.compoundRules[a],u="";for(o=0,l=i.length;o<l;o++){var p=i[o];p in c.compoundRuleCodes?u+="("+c.compoundRuleCodes[p].join("|")+")":u+=p}c.compoundRules[a]=new RegExp(u,"i")}c.loaded=!0,n.asyncLoad&&n.loadedCallback&&n.loadedCallback(c)}return e&&(c.dictionary=e,t&&r?h():"undefined"!=typeof window&&"chrome"in window&&"extension"in window.chrome&&"getURL"in window.chrome.extension?(i=n.dictionaryPath?n.dictionaryPath:"typo/dictionaries",t||u(chrome.extension.getURL(i+"/"+e+"/"+e+".aff"),p),r||u(chrome.extension.getURL(i+"/"+e+"/"+e+".dic"),d)):(i=n.dictionaryPath?n.dictionaryPath:"undefined"!=typeof __dirname?__dirname+"/dictionaries":"./dictionaries",t||u(i+"/"+e+"/"+e+".aff",p),r||u(i+"/"+e+"/"+e+".dic",d))),this},t.prototype={load:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);return this},_readFile:function(e,t,r){if(t=t||"utf8","undefined"!=typeof XMLHttpRequest){var n,i=new XMLHttpRequest;return i.open("GET",e,r),r&&(n=new Promise((function(e,t){i.onload=function(){200===i.status?e(i.responseText):t(i.statusText)},i.onerror=function(){t(i.statusText)}}))),i.overrideMimeType&&i.overrideMimeType("text/plain; charset="+t),i.send(null),r?n:i.responseText}if(void 0!==fi){var a=pA;try{if(a.existsSync(e))return a.readFileSync(e,t);console.log("Path "+e+" does not exist.")}catch(e){return console.log(e),""}}},_parseAFF:function(e){var t,r,n,i,a,o,s,l={},c=e.split(/\r?\n/);for(i=0,o=c.length;i<o;i++)if(t=(t=this._removeAffixComments(c[i])).trim()){var u=t.split(/\s+/),p=u[0];if("PFX"==p||"SFX"==p){var d=u[1],h=u[2],m=[];for(a=i+1,s=i+1+(r=parseInt(u[3],10));a<s;a++){var g=(n=c[a].split(/\s+/))[2],f=n[3].split("/"),v=f[0];"0"===v&&(v="");var b=this.parseRuleCodes(f[1]),y=n[4],x={};x.add=v,b.length>0&&(x.continuationClasses=b),"."!==y&&(x.match="SFX"===p?new RegExp(y+"$"):new RegExp("^"+y)),"0"!=g&&(x.remove="SFX"===p?new RegExp(g+"$"):g),m.push(x)}l[d]={type:p,combineable:"Y"==h,entries:m},i+=r}else if("COMPOUNDRULE"===p){for(a=i+1,s=i+1+(r=parseInt(u[1],10));a<s;a++)n=(t=c[a]).split(/\s+/),this.compoundRules.push(n[1]);i+=r}else"REP"===p?3===(n=t.split(/\s+/)).length&&this.replacementTable.push([n[1],n[2]]):this.flags[p]=u[1]}return l},_removeAffixComments:function(e){return e.match(/^\s*#/,"")?"":e},_parseDIC:function(e){var t=(e=this._removeDicComments(e)).split(/\r?\n/),r={};function n(e,t){r.hasOwnProperty(e)||(r[e]=null),t.length>0&&(null===r[e]&&(r[e]=[]),r[e].push(t))}for(var i=1,a=t.length;i<a;i++){var o=t[i];if(o){var s=o.split("/",2),l=s[0];if(s.length>1){var c=this.parseRuleCodes(s[1]);"NEEDAFFIX"in this.flags&&-1!=c.indexOf(this.flags.NEEDAFFIX)||n(l,c);for(var u=0,p=c.length;u<p;u++){var d=c[u],h=this.rules[d];if(h)for(var m=this._applyRule(l,h),g=0,f=m.length;g<f;g++){var v=m[g];if(n(v,[]),h.combineable)for(var b=u+1;b<p;b++){var y=c[b],x=this.rules[y];if(x&&x.combineable&&h.type!=x.type)for(var w=this._applyRule(v,x),z=0,k=w.length;z<k;z++)n(w[z],[])}}d in this.compoundRuleCodes&&this.compoundRuleCodes[d].push(l)}}else n(l.trim(),[])}}return r},_removeDicComments:function(e){return e=e.replace(/^\t.*$/gm,"")},parseRuleCodes:function(e){if(e){if("FLAG"in this.flags){if("long"===this.flags.FLAG){for(var t=[],r=0,n=e.length;r<n;r+=2)t.push(e.substr(r,2));return t}return"num"===this.flags.FLAG?e.split(","):"UTF-8"===this.flags.FLAG?Array.from(e):e.split("")}return e.split("")}return[]},_applyRule:function(e,t){for(var r=t.entries,n=[],i=0,a=r.length;i<a;i++){var o=r[i];if(!o.match||e.match(o.match)){var s=e;if(o.remove&&(s=s.replace(o.remove,"")),"SFX"===t.type?s+=o.add:s=o.add+s,n.push(s),"continuationClasses"in o)for(var l=0,c=o.continuationClasses.length;l<c;l++){var u=this.rules[o.continuationClasses[l]];u&&(n=n.concat(this._applyRule(s,u)))}}}return n},check:function(e){if(!this.loaded)throw"Dictionary not loaded.";var t=e.replace(/^\s\s*/,"").replace(/\s\s*$/,"");if(this.checkExact(t))return!0;if(t.toUpperCase()===t){var r=t[0]+t.substring(1).toLowerCase();if(this.hasFlag(r,"KEEPCASE"))return!1;if(this.checkExact(r))return!0;if(this.checkExact(t.toLowerCase()))return!0}var n=t[0].toLowerCase()+t.substring(1);if(n!==t){if(this.hasFlag(n,"KEEPCASE"))return!1;if(this.checkExact(n))return!0}return!1},checkExact:function(e){if(!this.loaded)throw"Dictionary not loaded.";var t,r,n=this.dictionaryTable[e];if(void 0===n){if("COMPOUNDMIN"in this.flags&&e.length>=this.flags.COMPOUNDMIN)for(t=0,r=this.compoundRules.length;t<r;t++)if(e.match(this.compoundRules[t]))return!0}else{if(null===n)return!0;if("object"==typeof n)for(t=0,r=n.length;t<r;t++)if(!this.hasFlag(e,"ONLYINCOMPOUND",n[t]))return!0}return!1},hasFlag:function(e,t,r){if(!this.loaded)throw"Dictionary not loaded.";return!(!(t in this.flags)||(void 0===r&&(r=Array.prototype.concat.apply([],this.dictionaryTable[e])),!r||-1===r.indexOf(this.flags[t])))},alphabet:"",suggest:function(e,t){if(!this.loaded)throw"Dictionary not loaded.";if(t=t||5,this.memoized.hasOwnProperty(e)){var r=this.memoized[e].limit;if(t<=r||this.memoized[e].suggestions.length<r)return this.memoized[e].suggestions.slice(0,t)}if(this.check(e))return[];for(var n=0,i=this.replacementTable.length;n<i;n++){var a=this.replacementTable[n];if(-1!==e.indexOf(a[0])){var o=e.replace(a[0],a[1]);if(this.check(o))return[o]}}var s=this;function l(e,t){var r,n,i,a,o={},l=s.alphabet.length;if("string"==typeof e){var c=e;(e={})[c]=!0}for(var c in e)for(r=0,i=c.length+1;r<i;r++){var u=[c.substring(0,r),c.substring(r)];if(u[1]&&(a=u[0]+u[1].substring(1),t&&!s.check(a)||(a in o?o[a]+=1:o[a]=1)),u[1].length>1&&u[1][1]!==u[1][0]&&(a=u[0]+u[1][1]+u[1][0]+u[1].substring(2),t&&!s.check(a)||(a in o?o[a]+=1:o[a]=1)),u[1]){var p=u[1].substring(0,1).toUpperCase()===u[1].substring(0,1)?"uppercase":"lowercase";for(n=0;n<l;n++){var d=s.alphabet[n];"uppercase"===p&&(d=d.toUpperCase()),d!=u[1].substring(0,1)&&(a=u[0]+d+u[1].substring(1),t&&!s.check(a)||(a in o?o[a]+=1:o[a]=1))}}if(u[1])for(n=0;n<l;n++)p=u[0].substring(-1).toUpperCase()===u[0].substring(-1)&&u[1].substring(0,1).toUpperCase()===u[1].substring(0,1)?"uppercase":"lowercase",d=s.alphabet[n],"uppercase"===p&&(d=d.toUpperCase()),a=u[0]+d+u[1],t&&!s.check(a)||(a in o?o[a]+=1:o[a]=1)}return o}return s.alphabet="abcdefghijklmnopqrstuvwxyz",this.memoized[e]={suggestions:function(e){var r,n=l(e),i=l(n,!0);for(var a in n)s.check(a)&&(a in i?i[a]+=n[a]:i[a]=n[a]);var o=[];for(r in i)i.hasOwnProperty(r)&&o.push([r,i[r]]);o.sort((function(e,t){var r=e[1],n=t[1];return r<n?-1:r>n?1:t[0].localeCompare(e[0])})).reverse();var c=[],u="lowercase";e.toUpperCase()===e?u="uppercase":e.substr(0,1).toUpperCase()+e.substr(1).toLowerCase()===e&&(u="capitalized");var p=t;for(r=0;r<Math.min(p,o.length);r++)"uppercase"===u?o[r][0]=o[r][0].toUpperCase():"capitalized"===u&&(o[r][0]=o[r][0].substr(0,1).toUpperCase()+o[r][0].substr(1)),s.hasFlag(o[r][0],"NOSUGGEST")||-1!=c.indexOf(o[r][0])?p++:c.push(o[r][0]);return c}(e),limit:t},this.memoized[e].suggestions}},e.exports=t}));function hA(e){"function"==typeof(e=e||{}).codeMirrorInstance&&"function"==typeof e.codeMirrorInstance.defineMode?(String.prototype.includes||(String.prototype.includes=function(){return-1!==String.prototype.indexOf.apply(this,arguments)}),e.codeMirrorInstance.defineMode("spell-checker",(function(t){if(!hA.aff_loading){hA.aff_loading=!0;var r=new XMLHttpRequest;r.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff",!0),r.onload=function(){4===r.readyState&&200===r.status&&(hA.aff_data=r.responseText,hA.num_loaded++,2==hA.num_loaded&&(hA.typo=new dA("en_US",hA.aff_data,hA.dic_data,{platform:"any"})))},r.send(null)}if(!hA.dic_loading){hA.dic_loading=!0;var n=new XMLHttpRequest;n.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic",!0),n.onload=function(){4===n.readyState&&200===n.status&&(hA.dic_data=n.responseText,hA.num_loaded++,2==hA.num_loaded&&(hA.typo=new dA("en_US",hA.aff_data,hA.dic_data,{platform:"any"})))},n.send(null)}var i='!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~ ',a={token:function(e){var t=e.peek(),r="";if(i.includes(t))return e.next(),null;for(;null!=(t=e.peek())&&!i.includes(t);)r+=t,e.next();return hA.typo&&!hA.typo.check(r)?"spell-error":null}},o=e.codeMirrorInstance.getMode(t,t.backdrop||"text/plain");return e.codeMirrorInstance.overlayMode(o,a,!0)}))):console.log("CodeMirror Spell Checker: You must provide an instance of CodeMirror via the option `codeMirrorInstance`")}hA.num_loaded=0,hA.aff_loading=!1,hA.dic_loading=!1,hA.aff_data="",hA.dic_data="";var mA=hA,gA=gi((function(e,t){function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(i=n.key,a=void 0,a=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"==typeof a?a:String(a)),n)}var i,a}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}t.defaults={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};var o=/[&<>"']/,s=new RegExp(o.source,"g"),l=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,c=new RegExp(l.source,"g"),u={"&":"&","<":"<",">":">",'"':""","'":"'"},p=function(e){return u[e]};function d(e,t){if(t){if(o.test(e))return e.replace(s,p)}else if(l.test(e))return e.replace(c,p);return e}var h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function m(e){return e.replace(h,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var g=/(^|[^\[])\^/g;function f(e,t){e="string"==typeof e?e:e.source,t=t||"";var r={replace:function(t,n){return n=(n=n.source||n).replace(g,"$1"),e=e.replace(t,n),r},getRegex:function(){return new RegExp(e,t)}};return r}var v=/[^\w:]/g,b=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function y(e,t,r){if(e){var n;try{n=decodeURIComponent(m(r)).replace(v,"").toLowerCase()}catch(e){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!b.test(r)&&(r=function(e,t){x[" "+e]||(w.test(e)?x[" "+e]=e+"/":x[" "+e]=_(e,"/",!0));e=x[" "+e];var r=-1===e.indexOf(":");return"//"===t.substring(0,2)?r?t:e.replace(z,"$1")+t:"/"===t.charAt(0)?r?t:e.replace(k,"$1")+t:e+t}(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch(e){return null}return r}var x={},w=/^[^:]+:\/*[^/]*$/,z=/^([^:]+:)[\s\S]*$/,k=/^([^:]+:\/*[^/]*)[\s\S]*$/;var A={exec:function(){}};function C(e){for(var t,r,n=1;n<arguments.length;n++)for(r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function S(e,t){var r=e.replace(/\|/g,(function(e,t,r){for(var n=!1,i=t;--i>=0&&"\\"===r[i];)n=!n;return n?"|":" |"})).split(/ \|/),n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r}function _(e,t,r){var n=e.length;if(0===n)return"";for(var i=0;i<n;){var a=e.charAt(n-i-1);if(a!==t||r){if(a===t||!r)break;i++}else i++}return e.slice(0,n-i)}function M(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function T(e,t){if(t<1)return"";for(var r="";t>1;)1&t&&(r+=e),t>>=1,e+=e;return r+e}function $(e,t,r,n){var i=t.href,a=t.title?d(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;var s={type:"link",raw:r,href:i,title:a,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,s}return{type:"image",raw:r,href:i,title:a,text:d(o)}}var L=function(){function e(e){this.options=e||t.defaults}var r=e.prototype;return r.space=function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}},r.code=function(e){var t=this.rules.block.code.exec(e);if(t){var r=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:_(r,"\n")}}},r.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var r=t[0],n=function(e,t){var r=e.match(/^(\s+)(?:```)/);if(null===r)return t;var n=r[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=n.length?e.slice(n.length):e})).join("\n")}(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:n}}},r.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var r=t[2].trim();if(/#$/.test(r)){var n=_(r,"#");this.options.pedantic?r=n.trim():n&&!/ $/.test(n)||(r=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}},r.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},r.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var r=t[0].replace(/^ *>[ \t]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;var i=this.lexer.blockTokens(r);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:i,text:r}}},r.list=function(e){var t=this.rules.block.list.exec(e);if(t){var r,n,i,a,o,s,l,c,u,p,d,h,m=t[1].trim(),g=m.length>1,f={type:"list",raw:"",ordered:g,start:g?+m.slice(0,-1):"",loose:!1,items:[]};m=g?"\\d{1,9}\\"+m.slice(-1):"\\"+m,this.options.pedantic&&(m=g?m:"[*+-]");for(var v=new RegExp("^( {0,3}"+m+")((?:[\t ][^\\n]*)?(?:\\n|$))");e&&(h=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(r=t[0],e=e.substring(r.length),c=t[2].split("\n",1)[0].replace(/^\t+/,(function(e){return" ".repeat(3*e.length)})),u=e.split("\n",1)[0],this.options.pedantic?(a=2,d=c.trimLeft()):(a=(a=t[2].search(/[^ ]/))>4?1:a,d=c.slice(a),a+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(r+=u+"\n",e=e.substring(u.length+1),h=!0),!h)for(var b=new RegExp("^ {0,"+Math.min(3,a-1)+"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))"),y=new RegExp("^ {0,"+Math.min(3,a-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),x=new RegExp("^ {0,"+Math.min(3,a-1)+"}(?:```|~~~)"),w=new RegExp("^ {0,"+Math.min(3,a-1)+"}#");e&&(u=p=e.split("\n",1)[0],this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!x.test(u))&&!w.test(u)&&!b.test(u)&&!y.test(e);){if(u.search(/[^ ]/)>=a||!u.trim())d+="\n"+u.slice(a);else{if(s)break;if(c.search(/[^ ]/)>=4)break;if(x.test(c))break;if(w.test(c))break;if(y.test(c))break;d+="\n"+u}s||u.trim()||(s=!0),r+=p+"\n",e=e.substring(p.length+1),c=u.slice(a)}f.loose||(l?f.loose=!0:/\n *\n *$/.test(r)&&(l=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(d))&&(i="[ ] "!==n[0],d=d.replace(/^\[[ xX]\] +/,"")),f.items.push({type:"list_item",raw:r,task:!!n,checked:i,loose:!1,text:d}),f.raw+=r}f.items[f.items.length-1].raw=r.trimRight(),f.items[f.items.length-1].text=d.trimRight(),f.raw=f.raw.trimRight();var z=f.items.length;for(o=0;o<z;o++)if(this.lexer.state.top=!1,f.items[o].tokens=this.lexer.blockTokens(f.items[o].text,[]),!f.loose){var k=f.items[o].tokens.filter((function(e){return"space"===e.type})),A=k.length>0&&k.some((function(e){return/\n.*\n/.test(e.raw)}));f.loose=A}if(f.loose)for(o=0;o<z;o++)f.items[o].loose=!0;return f}},r.html=function(e){var t=this.rules.block.html.exec(e);if(t){var r={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){var n=this.options.sanitizer?this.options.sanitizer(t[0]):d(t[0]);r.type="paragraph",r.text=n,r.tokens=this.lexer.inline(n)}return r}},r.def=function(e){var t=this.rules.block.def.exec(e);if(t){var r=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:n,title:i}}},r.table=function(e){var t=this.rules.block.table.exec(e);if(t){var r={type:"table",header:S(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(r.header.length===r.align.length){r.raw=t[0];var n,i,a,o,s=r.align.length;for(n=0;n<s;n++)/^ *-+: *$/.test(r.align[n])?r.align[n]="right":/^ *:-+: *$/.test(r.align[n])?r.align[n]="center":/^ *:-+ *$/.test(r.align[n])?r.align[n]="left":r.align[n]=null;for(s=r.rows.length,n=0;n<s;n++)r.rows[n]=S(r.rows[n],r.header.length).map((function(e){return{text:e}}));for(s=r.header.length,i=0;i<s;i++)r.header[i].tokens=this.lexer.inline(r.header[i].text);for(s=r.rows.length,i=0;i<s;i++)for(o=r.rows[i],a=0;a<o.length;a++)o[a].tokens=this.lexer.inline(o[a].text);return r}}},r.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}},r.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t){var r="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}},r.text=function(e){var t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}},r.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:d(t[1])}},r.tag=function(e){var t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):d(t[0]):t[0]}},r.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var r=t[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;var n=_(r.slice(0,-1),"\\");if((r.length-n.length)%2==0)return}else{var i=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var r=e.length,n=0,i=0;i<r;i++)if("\\"===e[i])i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&--n<0)return i;return-1}(t[2],"()");if(i>-1){var a=(0===t[0].indexOf("!")?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,a).trim(),t[3]=""}}var o=t[2],s="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);l&&(o=l[1],s=l[3])}else s=t[3]?t[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(o=this.options.pedantic&&!/>$/.test(r)?o.slice(1):o.slice(1,-1)),$(t,{href:o?o.replace(this.rules.inline._escapes,"$1"):o,title:s?s.replace(this.rules.inline._escapes,"$1"):s},t[0],this.lexer)}},r.reflink=function(e,t){var r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){var n=(r[2]||r[1]).replace(/\s+/g," ");if(!(n=t[n.toLowerCase()])){var i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return $(r,n,r[0],this.lexer)}},r.emStrong=function(e,t,r){void 0===r&&(r="");var n=this.rules.inline.emStrong.lDelim.exec(e);if(n&&(!n[3]||!r.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var i=n[1]||n[2]||"";if(!i||i&&(""===r||this.rules.inline.punctuation.exec(r))){var a,o,s=n[0].length-1,l=s,c=0,u="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+s);null!=(n=u.exec(t));)if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6])if(o=a.length,n[3]||n[4])l+=o;else if(!((n[5]||n[6])&&s%3)||(s+o)%3){if(!((l-=o)>0)){o=Math.min(o,o+l+c);var p=e.slice(0,s+n.index+(n[0].length-a.length)+o);if(Math.min(s,o)%2){var d=p.slice(1,-1);return{type:"em",raw:p,text:d,tokens:this.lexer.inlineTokens(d)}}var h=p.slice(2,-2);return{type:"strong",raw:p,text:h,tokens:this.lexer.inlineTokens(h)}}}else c+=o}}},r.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var r=t[2].replace(/\n/g," "),n=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return n&&i&&(r=r.substring(1,r.length-1)),r=d(r,!0),{type:"codespan",raw:t[0],text:r}}},r.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},r.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}},r.autolink=function(e,t){var r,n,i=this.rules.inline.autolink.exec(e);if(i)return n="@"===i[2]?"mailto:"+(r=d(this.options.mangle?t(i[1]):i[1])):r=d(i[1]),{type:"link",raw:i[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}},r.url=function(e,t){var r;if(r=this.rules.inline.url.exec(e)){var n,i;if("@"===r[2])i="mailto:"+(n=d(this.options.mangle?t(r[0]):r[0]));else{var a;do{a=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(a!==r[0]);n=d(r[0]),i="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}},r.inlineText=function(e,t){var r,n=this.rules.inline.text.exec(e);if(n)return r=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):d(n[0]):n[0]:d(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:r}},e}(),E={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:A,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};E.def=f(E.def).replace("label",E._label).replace("title",E._title).getRegex(),E.bullet=/(?:[*+-]|\d{1,9}[.)])/,E.listItemStart=f(/^( *)(bull) */).replace("bull",E.bullet).getRegex(),E.list=f(E.list).replace(/bull/g,E.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+E.def.source+")").getRegex(),E._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",E._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,E.html=f(E.html,"i").replace("comment",E._comment).replace("tag",E._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),E.paragraph=f(E._paragraph).replace("hr",E.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",E._tag).getRegex(),E.blockquote=f(E.blockquote).replace("paragraph",E.paragraph).getRegex(),E.normal=C({},E),E.gfm=C({},E.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),E.gfm.table=f(E.gfm.table).replace("hr",E.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",E._tag).getRegex(),E.gfm.paragraph=f(E._paragraph).replace("hr",E.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",E.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",E._tag).getRegex(),E.pedantic=C({},E.normal,{html:f("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",E._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:A,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:f(E.normal._paragraph).replace("hr",E.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",E.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var I={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:A,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:A,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function B(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function D(e){var t,r,n="",i=e.length;for(t=0;t<i;t++)r=e.charCodeAt(t),Math.random()>.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}I._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",I.punctuation=f(I.punctuation).replace(/punctuation/g,I._punctuation).getRegex(),I.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,I.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,I._comment=f(E._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),I.emStrong.lDelim=f(I.emStrong.lDelim).replace(/punct/g,I._punctuation).getRegex(),I.emStrong.rDelimAst=f(I.emStrong.rDelimAst,"g").replace(/punct/g,I._punctuation).getRegex(),I.emStrong.rDelimUnd=f(I.emStrong.rDelimUnd,"g").replace(/punct/g,I._punctuation).getRegex(),I._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,I._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,I._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,I.autolink=f(I.autolink).replace("scheme",I._scheme).replace("email",I._email).getRegex(),I._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,I.tag=f(I.tag).replace("comment",I._comment).replace("attribute",I._attribute).getRegex(),I._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,I._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,I._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,I.link=f(I.link).replace("label",I._label).replace("href",I._href).replace("title",I._title).getRegex(),I.reflink=f(I.reflink).replace("label",I._label).replace("ref",E._label).getRegex(),I.nolink=f(I.nolink).replace("ref",E._label).getRegex(),I.reflinkSearch=f(I.reflinkSearch,"g").replace("reflink",I.reflink).replace("nolink",I.nolink).getRegex(),I.normal=C({},I),I.pedantic=C({},I.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:f(/^!?\[(label)\]\((.*?)\)/).replace("label",I._label).getRegex(),reflink:f(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",I._label).getRegex()}),I.gfm=C({},I.normal,{escape:f(I.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),I.gfm.url=f(I.gfm.url,"i").replace("email",I.gfm._extended_email).getRegex(),I.breaks=C({},I.gfm,{br:f(I.br).replace("{2,}","*").getRegex(),text:f(I.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var H=function(){function e(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||t.defaults,this.options.tokenizer=this.options.tokenizer||new L,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var r={block:E.normal,inline:I.normal};this.options.pedantic?(r.block=E.pedantic,r.inline=I.pedantic):this.options.gfm&&(r.block=E.gfm,this.options.breaks?r.inline=I.breaks:r.inline=I.gfm),this.tokenizer.rules=r}e.lex=function(t,r){return new e(r).lex(t)},e.lexInline=function(t,r){return new e(r).inlineTokens(t)};var n,i,a,o=e.prototype;return o.lex=function(e){var t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens},o.blockTokens=function(e,t){var r,n,i,a,o=this;for(void 0===t&&(t=[]),e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(function(e,t,r){return t+" ".repeat(r.length)}));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(n){return!!(r=n.call({lexer:o},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)}))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),1===r.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?t.push(r):(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else if(i=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,r=e.slice(1),n=void 0;o.options.extensions.startBlock.forEach((function(e){"number"==typeof(n=e.call({lexer:this},r))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}(),this.state.top&&(r=this.tokenizer.paragraph(i)))n=t[t.length-1],a&&"paragraph"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),a=i.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);else if(e){var s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}return this.state.top=!0,t},o.inline=function(e,t){return void 0===t&&(t=[]),this.inlineQueue.push({src:e,tokens:t}),t},o.inlineTokens=function(e,t){var r,n,i,a=this;void 0===t&&(t=[]);var o,s,l,c=e;if(this.tokens.links){var u=Object.keys(this.tokens.links);if(u.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(c));)u.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,o.index)+"["+T("a",o[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,o.index)+"["+T("a",o[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(c));)c=c.slice(0,o.index+o[0].length-2)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(s||(l=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(r=n.call({lexer:a},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)}))))if(r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e))e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,c,l))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.autolink(e,D))e=e.substring(r.raw.length),t.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(e,D))){if(i=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,r=e.slice(1),n=void 0;a.options.extensions.startInline.forEach((function(e){"number"==typeof(n=e.call({lexer:this},r))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}(),r=this.tokenizer.inlineText(i,B))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(l=r.raw.slice(-1)),s=!0,(n=t[t.length-1])&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(e){var p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}throw new Error(p)}}else e=e.substring(r.raw.length),t.push(r);return t},n=e,a=[{key:"rules",get:function(){return{block:E,inline:I}}}],(i=null)&&r(n.prototype,i),a&&r(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}(),O=function(){function e(e){this.options=e||t.defaults}var r=e.prototype;return r.code=function(e,t,r){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,n);null!=i&&i!==e&&(r=!0,e=i)}return e=e.replace(/\n$/,"")+"\n",n?'<pre><code class="'+this.options.langPrefix+d(n)+'">'+(r?e:d(e,!0))+"</code></pre>\n":"<pre><code>"+(r?e:d(e,!0))+"</code></pre>\n"},r.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},r.html=function(e){return e},r.heading=function(e,t,r,n){return this.options.headerIds?"<h"+t+' id="'+(this.options.headerPrefix+n.slug(r))+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},r.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},r.list=function(e,t,r){var n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"</"+n+">\n"},r.listitem=function(e){return"<li>"+e+"</li>\n"},r.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},r.paragraph=function(e){return"<p>"+e+"</p>\n"},r.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},r.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},r.tablecell=function(e,t){var r=t.header?"th":"td";return(t.align?"<"+r+' align="'+t.align+'">':"<"+r+">")+e+"</"+r+">\n"},r.strong=function(e){return"<strong>"+e+"</strong>"},r.em=function(e){return"<em>"+e+"</em>"},r.codespan=function(e){return"<code>"+e+"</code>"},r.br=function(){return this.options.xhtml?"<br/>":"<br>"},r.del=function(e){return"<del>"+e+"</del>"},r.link=function(e,t,r){if(null===(e=y(this.options.sanitize,this.options.baseUrl,e)))return r;var n='<a href="'+e+'"';return t&&(n+=' title="'+t+'"'),n+=">"+r+"</a>"},r.image=function(e,t,r){if(null===(e=y(this.options.sanitize,this.options.baseUrl,e)))return r;var n='<img src="'+e+'" alt="'+r+'"';return t&&(n+=' title="'+t+'"'),n+=this.options.xhtml?"/>":">"},r.text=function(e){return e},e}(),P=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,r){return""+r},t.image=function(e,t,r){return""+r},t.br=function(){return""},e}(),R=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do{r=e+"-"+ ++n}while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r},t.slug=function(e,t){void 0===t&&(t={});var r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)},e}(),V=function(){function e(e){this.options=e||t.defaults,this.options.renderer=this.options.renderer||new O,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new P,this.slugger=new R}e.parse=function(t,r){return new e(r).parse(t)},e.parseInline=function(t,r){return new e(r).parseInline(t)};var r=e.prototype;return r.parse=function(e,t){void 0===t&&(t=!0);var r,n,i,a,o,s,l,c,u,p,d,h,g,f,v,b,y,x,w,z="",k=e.length;for(r=0;r<k;r++)if(p=e[r],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type])||!1===(w=this.options.extensions.renderers[p.type].call({parser:this},p))&&["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type))switch(p.type){case"space":continue;case"hr":z+=this.renderer.hr();continue;case"heading":z+=this.renderer.heading(this.parseInline(p.tokens),p.depth,m(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":z+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(c="",l="",a=p.header.length,n=0;n<a;n++)l+=this.renderer.tablecell(this.parseInline(p.header[n].tokens),{header:!0,align:p.align[n]});for(c+=this.renderer.tablerow(l),u="",a=p.rows.length,n=0;n<a;n++){for(l="",o=(s=p.rows[n]).length,i=0;i<o;i++)l+=this.renderer.tablecell(this.parseInline(s[i].tokens),{header:!1,align:p.align[i]});u+=this.renderer.tablerow(l)}z+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(p.tokens),z+=this.renderer.blockquote(u);continue;case"list":for(d=p.ordered,h=p.start,g=p.loose,a=p.items.length,u="",n=0;n<a;n++)b=(v=p.items[n]).checked,y=v.task,f="",v.task&&(x=this.renderer.checkbox(b),g?v.tokens.length>0&&"paragraph"===v.tokens[0].type?(v.tokens[0].text=x+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=x+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:x}):f+=x),f+=this.parse(v.tokens,g),u+=this.renderer.listitem(f,y,b);z+=this.renderer.list(u,d,h);continue;case"html":z+=this.renderer.html(p.text);continue;case"paragraph":z+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(u=p.tokens?this.parseInline(p.tokens):p.text;r+1<k&&"text"===e[r+1].type;)u+="\n"+((p=e[++r]).tokens?this.parseInline(p.tokens):p.text);z+=t?this.renderer.paragraph(u):u;continue;default:var A='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(A);throw new Error(A)}else z+=w||"";return z},r.parseInline=function(e,t){t=t||this.renderer;var r,n,i,a="",o=e.length;for(r=0;r<o;r++)if(n=e[r],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type])||!1===(i=this.options.extensions.renderers[n.type].call({parser:this},n))&&["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type))switch(n.type){case"escape":case"text":a+=t.text(n.text);break;case"html":a+=t.html(n.text);break;case"link":a+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":a+=t.image(n.href,n.title,n.text);break;case"strong":a+=t.strong(this.parseInline(n.tokens,t));break;case"em":a+=t.em(this.parseInline(n.tokens,t));break;case"codespan":a+=t.codespan(n.text);break;case"br":a+=t.br();break;case"del":a+=t.del(this.parseInline(n.tokens,t));break;default:var s='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(s);throw new Error(s)}else a+=i||"";return a},e}();function N(e,t,r){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(r=t,t=null),M(t=C({},N.defaults,t||{})),r){var n,i=t.highlight;try{n=H.lex(e,t)}catch(e){return r(e)}var a=function(e){var a;if(!e)try{t.walkTokens&&N.walkTokens(n,t.walkTokens),a=V.parse(n,t)}catch(t){e=t}return t.highlight=i,e?r(e):r(null,a)};if(!i||i.length<3)return a();if(delete t.highlight,!n.length)return a();var o=0;return N.walkTokens(n,(function(e){"code"===e.type&&(o++,setTimeout((function(){i(e.text,e.lang,(function(t,r){if(t)return a(t);null!=r&&r!==e.text&&(e.text=r,e.escaped=!0),0===--o&&a()}))}),0))})),void(0===o&&a())}function s(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+d(e.message+"",!0)+"</pre>";throw e}try{var l=H.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(N.walkTokens(l,t.walkTokens)).then((function(){return V.parse(l,t)})).catch(s);N.walkTokens(l,t.walkTokens)}return V.parse(l,t)}catch(e){s(e)}}N.options=N.setOptions=function(e){var r;return C(N.defaults,e),r=N.defaults,t.defaults=r,N},N.getDefaults=a,N.defaults=t.defaults,N.use=function(){for(var e=N.defaults.extensions||{renderers:{},childTokens:{}},t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];r.forEach((function(t){var r=C({},t);if(r.async=N.defaults.async||r.async,t.extensions&&(t.extensions.forEach((function(t){if(!t.name)throw new Error("extension name required");if(t.renderer){var r=e.renderers[t.name];e.renderers[t.name]=r?function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var a=t.renderer.apply(this,n);return!1===a&&(a=r.apply(this,n)),a}:t.renderer}if(t.tokenizer){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");e[t.level]?e[t.level].unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}t.childTokens&&(e.childTokens[t.name]=t.childTokens)})),r.extensions=e),t.renderer&&function(){var e=N.defaults.renderer||new O,n=function(r){var n=e[r];e[r]=function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=t.renderer[r].apply(e,a);return!1===s&&(s=n.apply(e,a)),s}};for(var i in t.renderer)n(i);r.renderer=e}(),t.tokenizer&&function(){var e=N.defaults.tokenizer||new L,n=function(r){var n=e[r];e[r]=function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=t.tokenizer[r].apply(e,a);return!1===s&&(s=n.apply(e,a)),s}};for(var i in t.tokenizer)n(i);r.tokenizer=e}(),t.walkTokens){var n=N.defaults.walkTokens;r.walkTokens=function(e){var r=[];return r.push(t.walkTokens.call(this,e)),n&&(r=r.concat(n.call(this,e))),r}}N.setOptions(r)}))},N.walkTokens=function(e,t){for(var r,n=[],a=function(){var e=r.value;switch(n=n.concat(t.call(N,e)),e.type){case"table":for(var a,o=i(e.header);!(a=o()).done;){var s=a.value;n=n.concat(N.walkTokens(s.tokens,t))}for(var l,c=i(e.rows);!(l=c()).done;)for(var u,p=i(l.value);!(u=p()).done;){var d=u.value;n=n.concat(N.walkTokens(d.tokens,t))}break;case"list":n=n.concat(N.walkTokens(e.items,t));break;default:N.defaults.extensions&&N.defaults.extensions.childTokens&&N.defaults.extensions.childTokens[e.type]?N.defaults.extensions.childTokens[e.type].forEach((function(r){n=n.concat(N.walkTokens(e[r],t))})):e.tokens&&(n=n.concat(N.walkTokens(e.tokens,t)))}},o=i(e);!(r=o()).done;)a();return n},N.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");M(t=C({},N.defaults,t||{}));try{var r=H.lexInline(e,t);return t.walkTokens&&N.walkTokens(r,t.walkTokens),V.parseInline(r,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+d(e.message+"",!0)+"</pre>";throw e}},N.Parser=V,N.parser=V.parse,N.Renderer=O,N.TextRenderer=P,N.Lexer=H,N.lexer=H.lex,N.Tokenizer=L,N.Slugger=R,N.parse=N;var F=N.options,j=N.setOptions,q=N.use,U=N.walkTokens,W=N.parseInline,X=N,G=V.parse,Y=H.lex;t.Lexer=H,t.Parser=V,t.Renderer=O,t.Slugger=R,t.TextRenderer=P,t.Tokenizer=L,t.getDefaults=a,t.lexer=Y,t.marked=N,t.options=F,t.parse=X,t.parseInline=W,t.parser=G,t.setOptions=j,t.use=q,t.walkTokens=U})),fA=gA.marked,vA=/Mac/.test(navigator.platform),bA=new RegExp(/(<a.*?https?:\/\/.*?[^a]>)+?/g),yA={toggleBold:$A,toggleItalic:LA,drawLink:WA,toggleHeadingSmaller:DA,toggleHeadingBigger:HA,drawImage:XA,toggleBlockquote:BA,toggleOrderedList:qA,toggleUnorderedList:jA,toggleCodeBlock:IA,togglePreview:rC,toggleStrikethrough:EA,toggleHeading1:OA,toggleHeading2:PA,toggleHeading3:RA,toggleHeading4:VA,toggleHeading5:NA,toggleHeading6:FA,cleanBlock:UA,drawTable:KA,drawHorizontalRule:JA,undo:QA,redo:eC,toggleSideBySide:tC,toggleFullScreen:TA},xA={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",toggleHeading1:"Ctrl+Alt+1",toggleHeading2:"Ctrl+Alt+2",toggleHeading3:"Ctrl+Alt+3",toggleHeading4:"Ctrl+Alt+4",toggleHeading5:"Ctrl+Alt+5",toggleHeading6:"Ctrl+Alt+6",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"},wA=function(e){for(var t in yA)if(yA[t]===e)return t;return null},zA=function(){var e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e};function kA(e){return e=vA?e.replace("Ctrl","Cmd"):e.replace("Cmd","Ctrl")}function AA(e,t,r,n){var i=CA(e,!1,t,r,"button",n);i.classList.add("easymde-dropdown"),i.onclick=function(){i.focus()};var a=document.createElement("div");a.className="easymde-dropdown-content";for(var o=0;o<e.children.length;o++){var s,l=e.children[o];(s=CA("string"==typeof l&&l in hC?hC[l]:l,!0,t,r,"button",n)).addEventListener("click",(function(e){e.stopPropagation()}),!1),a.appendChild(s)}return i.appendChild(a),i}function CA(e,t,r,n,i,a){e=e||{};var o=document.createElement(i);if(e.attributes)for(var s in e.attributes)Object.prototype.hasOwnProperty.call(e.attributes,s)&&o.setAttribute(s,e.attributes[s]);var l=a.options.toolbarButtonClassPrefix?a.options.toolbarButtonClassPrefix+"-":"";o.className=l+e.name,o.setAttribute("type",i),r=null==r||r,e.text&&(o.innerText=e.text),e.name&&e.name in n&&(yA[e.name]=e.action),e.title&&r&&(o.title=function(e,t,r){var n,i=e;t&&r[n=wA(t)]&&(i+=" ("+kA(r[n])+")");return i}(e.title,e.action,n),vA&&(o.title=o.title.replace("Ctrl","⌘"),o.title=o.title.replace("Alt","⌥"))),e.title&&o.setAttribute("aria-label",e.title),e.noDisable&&o.classList.add("no-disable"),e.noMobile&&o.classList.add("no-mobile");var c=[];void 0!==e.className&&(c=e.className.split(" "));for(var u=[],p=0;p<c.length;p++){var d=c[p];d.match(/^fa([srlb]|(-[\w-]*)|$)/)?u.push(d):o.classList.add(d)}if(o.tabIndex=-1,u.length>0){for(var h=document.createElement("i"),m=0;m<u.length;m++){var g=u[m];h.classList.add(g)}o.appendChild(h)}return void 0!==e.icon&&(o.innerHTML=e.icon),e.action&&t&&("function"==typeof e.action?o.onclick=function(t){t.preventDefault(),e.action(a)}:"string"==typeof e.action&&(o.onclick=function(t){t.preventDefault(),window.open(e.action,"_blank")})),o}function SA(){var e=document.createElement("i");return e.className="separator",e.innerHTML="|",e}function _A(e,t){t=t||e.getCursor("start");var r=e.getTokenAt(t);if(!r.type)return{};for(var n,i,a=r.type.split(" "),o={},s=0;s<a.length;s++)"strong"===(n=a[s])?o.bold=!0:"variable-2"===n?(i=e.getLine(t.line),/^\s*\d+\.\s/.test(i)?o["ordered-list"]=!0:o["unordered-list"]=!0):"atom"===n?o.quote=!0:"em"===n?o.italic=!0:"quote"===n?o.quote=!0:"strikethrough"===n?o.strikethrough=!0:"comment"===n?o.code=!0:"link"!==n||o.image?"image"===n?o.image=!0:n.match(/^header(-[1-6])?$/)&&(o[n.replace("header","heading")]=!0):o.link=!0;return o}var MA="";function TA(e){var t=e.codemirror;t.setOption("fullScreen",!t.getOption("fullScreen")),t.getOption("fullScreen")?(MA=document.body.style.overflow,document.body.style.overflow="hidden"):document.body.style.overflow=MA;var r=t.getWrapperElement(),n=r.nextSibling;if(n.classList.contains("editor-preview-active-side"))if(!1===e.options.sideBySideFullscreen){var i=r.parentNode;t.getOption("fullScreen")?i.classList.remove("sided--no-fullscreen"):i.classList.add("sided--no-fullscreen")}else tC(e);(e.options.onToggleFullScreen&&e.options.onToggleFullScreen(t.getOption("fullScreen")||!1),void 0!==e.options.maxHeight&&(t.getOption("fullScreen")?(t.getScrollerElement().style.removeProperty("height"),n.style.removeProperty("height")):(t.getScrollerElement().style.height=e.options.maxHeight,e.setPreviewMaxHeight())),e.toolbar_div.classList.toggle("fullscreen"),e.toolbarElements&&e.toolbarElements.fullscreen)&&e.toolbarElements.fullscreen.classList.toggle("active")}function $A(e){sC(e,"bold",e.options.blockStyles.bold)}function LA(e){sC(e,"italic",e.options.blockStyles.italic)}function EA(e){sC(e,"strikethrough","~~")}function IA(e){var t=e.options.blockStyles.code;function r(e){if("object"!=typeof e)throw"fencing_line() takes a 'line' object (not a line number, or line text). Got: "+typeof e+": "+e;return e.styles&&e.styles[2]&&-1!==e.styles[2].indexOf("formatting-code-block")}function n(e){return e.state.base.base||e.state.base}function i(e,t,i,a,o){i=i||e.getLineHandle(t),a=a||e.getTokenAt({line:t,ch:1}),o=o||!!i.text&&e.getTokenAt({line:t,ch:i.text.length-1});var s=a.type?a.type.split(" "):[];return o&&n(o).indentedCode?"indented":-1!==s.indexOf("comment")&&(n(a).fencedChars||n(o).fencedChars||r(i)?"fenced":"single")}var a,o,s,l=e.codemirror,c=l.getCursor("start"),u=l.getCursor("end"),p=l.getTokenAt({line:c.line,ch:c.ch||1}),d=l.getLineHandle(c.line),h=i(l,c.line,d,p);if("single"===h){var m=d.text.slice(0,c.ch).replace("`",""),g=d.text.slice(c.ch).replace("`","");l.replaceRange(m+g,{line:c.line,ch:0},{line:c.line,ch:99999999999999}),c.ch--,c!==u&&u.ch--,l.setSelection(c,u),l.focus()}else if("fenced"===h)if(c.line!==u.line||c.ch!==u.ch){for(a=c.line;a>=0&&!r(d=l.getLineHandle(a));a--);var f,v,b,y,x=n(l.getTokenAt({line:a,ch:1})).fencedChars;r(l.getLineHandle(c.line))?(f="",v=c.line):r(l.getLineHandle(c.line-1))?(f="",v=c.line-1):(f=x+"\n",v=c.line),r(l.getLineHandle(u.line))?(b="",y=u.line,0===u.ch&&(y+=1)):0!==u.ch&&r(l.getLineHandle(u.line+1))?(b="",y=u.line+1):(b=x+"\n",y=u.line+1),0===u.ch&&(y-=1),l.operation((function(){l.replaceRange(b,{line:y,ch:0},{line:y+(b?0:1),ch:0}),l.replaceRange(f,{line:v,ch:0},{line:v+(f?0:1),ch:0})})),l.setSelection({line:v+(f?1:0),ch:0},{line:y+(f?1:-1),ch:0}),l.focus()}else{var w=c.line;if(r(l.getLineHandle(c.line))&&("fenced"===i(l,c.line+1)?(a=c.line,w=c.line+1):(o=c.line,w=c.line-1)),void 0===a)for(a=w;a>=0&&!r(d=l.getLineHandle(a));a--);if(void 0===o)for(s=l.lineCount(),o=w;o<s&&!r(d=l.getLineHandle(o));o++);l.operation((function(){l.replaceRange("",{line:a,ch:0},{line:a+1,ch:0}),l.replaceRange("",{line:o-1,ch:0},{line:o,ch:0})})),l.focus()}else if("indented"===h){if(c.line!==u.line||c.ch!==u.ch)a=c.line,o=u.line,0===u.ch&&o--;else{for(a=c.line;a>=0;a--)if(!(d=l.getLineHandle(a)).text.match(/^\s*$/)&&"indented"!==i(l,a,d)){a+=1;break}for(s=l.lineCount(),o=c.line;o<s;o++)if(!(d=l.getLineHandle(o)).text.match(/^\s*$/)&&"indented"!==i(l,o,d)){o-=1;break}}var z=l.getLineHandle(o+1),k=z&&l.getTokenAt({line:o+1,ch:z.text.length-1});k&&n(k).indentedCode&&l.replaceRange("\n",{line:o+1,ch:0});for(var A=a;A<=o;A++)l.indentLine(A,"subtract");l.focus()}else{var C=c.line===u.line&&c.ch===u.ch&&0===c.ch,S=c.line!==u.line;C||S?function(e,t,r,n){var i=t.line+1,a=r.line+1,o=t.line!==r.line,s=n+"\n",l="\n"+n;o&&a++,o&&0===r.ch&&(l=n+"\n",a--),nC(e,!1,[s,l]),e.setSelection({line:i,ch:0},{line:a,ch:0})}(l,c,u,t):nC(l,!1,["`","`"])}}function BA(e){aC(e.codemirror,"quote")}function DA(e){iC(e.codemirror,"smaller")}function HA(e){iC(e.codemirror,"bigger")}function OA(e){iC(e.codemirror,void 0,1)}function PA(e){iC(e.codemirror,void 0,2)}function RA(e){iC(e.codemirror,void 0,3)}function VA(e){iC(e.codemirror,void 0,4)}function NA(e){iC(e.codemirror,void 0,5)}function FA(e){iC(e.codemirror,void 0,6)}function jA(e){var t=e.codemirror,r="*";["-","+","*"].includes(e.options.unorderedListStyle)&&(r=e.options.unorderedListStyle),aC(t,"unordered-list",r)}function qA(e){aC(e.codemirror,"ordered-list")}function UA(e){!function(e){if(e.getWrapperElement().lastChild.classList.contains("editor-preview-active"))return;for(var t,r=e.getCursor("start"),n=e.getCursor("end"),i=r.line;i<=n.line;i++)t=(t=e.getLine(i)).replace(/^[ ]*([# ]+|\*|-|[> ]+|[0-9]+(.|\)))[ ]*/,""),e.replaceRange(t,{line:i,ch:0},{line:i,ch:99999999999999})}(e.codemirror)}function WA(e){var t=e.options,r="https://";if(t.promptURLs){var n=prompt(t.promptTexts.link,r);if(!n)return!1;r=GA(n)}oC(e,"link",t.insertTexts.link,r)}function XA(e){var t=e.options,r="https://";if(t.promptURLs){var n=prompt(t.promptTexts.image,r);if(!n)return!1;r=GA(n)}oC(e,"image",t.insertTexts.image,r)}function GA(e){return encodeURI(e).replace(/([\\()])/g,"\\$1")}function YA(e){e.openBrowseFileWindow()}function ZA(e,t){var r=e.codemirror,n=_A(r),i=e.options,a=t.substr(t.lastIndexOf("/")+1),o=a.substring(a.lastIndexOf(".")+1).replace(/\?.*$/,"").toLowerCase();if(["png","jpg","jpeg","gif","svg","apng","avif","webp"].includes(o))nC(r,n.image,i.insertTexts.uploadedImage,t);else{var s=i.insertTexts.link;s[0]="["+a,nC(r,n.link,s,t)}e.updateStatusBar("upload-image",e.options.imageTexts.sbOnUploaded.replace("#image_name#",a)),setTimeout((function(){e.updateStatusBar("upload-image",e.options.imageTexts.sbInit)}),1e3)}function KA(e){var t=e.codemirror,r=_A(t),n=e.options;nC(t,r.table,n.insertTexts.table)}function JA(e){var t=e.codemirror,r=_A(t),n=e.options;nC(t,r.image,n.insertTexts.horizontalRule)}function QA(e){var t=e.codemirror;t.undo(),t.focus()}function eC(e){var t=e.codemirror;t.redo(),t.focus()}function tC(e){var t=e.codemirror,r=t.getWrapperElement(),n=r.nextSibling,i=e.toolbarElements&&e.toolbarElements["side-by-side"],a=!1,o=r.parentNode;n.classList.contains("editor-preview-active-side")?(!1===e.options.sideBySideFullscreen&&o.classList.remove("sided--no-fullscreen"),n.classList.remove("editor-preview-active-side"),i&&i.classList.remove("active"),r.classList.remove("CodeMirror-sided")):(setTimeout((function(){t.getOption("fullScreen")||(!1===e.options.sideBySideFullscreen?o.classList.add("sided--no-fullscreen"):TA(e)),n.classList.add("editor-preview-active-side")}),1),i&&i.classList.add("active"),r.classList.add("CodeMirror-sided"),a=!0);var s=r.lastChild;if(s.classList.contains("editor-preview-active")){s.classList.remove("editor-preview-active");var l=e.toolbarElements.preview,c=e.toolbar_div;l.classList.remove("active"),c.classList.remove("disabled-for-preview")}if(t.sideBySideRenderingFunction||(t.sideBySideRenderingFunction=function(){var t=e.options.previewRender(e.value(),n);null!=t&&(n.innerHTML=t)}),a){var u=e.options.previewRender(e.value(),n);null!=u&&(n.innerHTML=u),t.on("update",t.sideBySideRenderingFunction)}else t.off("update",t.sideBySideRenderingFunction);t.refresh()}function rC(e){var t=e.codemirror,r=t.getWrapperElement(),n=e.toolbar_div,i=!!e.options.toolbar&&e.toolbarElements.preview,a=r.lastChild;if(t.getWrapperElement().nextSibling.classList.contains("editor-preview-active-side")&&tC(e),!a||!a.classList.contains("editor-preview-full")){if((a=document.createElement("div")).className="editor-preview-full",e.options.previewClass)if(Array.isArray(e.options.previewClass))for(var o=0;o<e.options.previewClass.length;o++)a.classList.add(e.options.previewClass[o]);else"string"==typeof e.options.previewClass&&a.classList.add(e.options.previewClass);r.appendChild(a)}a.classList.contains("editor-preview-active")?(a.classList.remove("editor-preview-active"),i&&(i.classList.remove("active"),n.classList.remove("disabled-for-preview"))):(setTimeout((function(){a.classList.add("editor-preview-active")}),1),i&&(i.classList.add("active"),n.classList.add("disabled-for-preview")));var s=e.options.previewRender(e.value(),a);null!==s&&(a.innerHTML=s)}function nC(e,t,r,n){if(!e.getWrapperElement().lastChild.classList.contains("editor-preview-active")){var i,a=r[0],o=r[1],s={},l={};Object.assign(s,e.getCursor("start")),Object.assign(l,e.getCursor("end")),n&&(a=a.replace("#url#",n),o=o.replace("#url#",n)),t?(a=(i=e.getLine(s.line)).slice(0,s.ch),o=i.slice(s.ch),e.replaceRange(a+o,{line:s.line,ch:0})):(i=e.getSelection(),e.replaceSelection(a+i+o),s.ch+=a.length,s!==l&&(l.ch+=a.length)),e.setSelection(s,l),e.focus()}}function iC(e,t,r){if(!e.getWrapperElement().lastChild.classList.contains("editor-preview-active")){for(var n=e.getCursor("start"),i=e.getCursor("end"),a=n.line;a<=i.line;a++)!function(n){var i=e.getLine(n),a=i.search(/[^#]/);i=void 0!==t?a<=0?"bigger"==t?"###### "+i:"# "+i:6==a&&"smaller"==t?i.substr(7):1==a&&"bigger"==t?i.substr(2):"bigger"==t?i.substr(1):"#"+i:a<=0?"#".repeat(r)+" "+i:a==r?i.substr(a+1):"#".repeat(r)+" "+i.substr(a+1),e.replaceRange(i,{line:n,ch:0},{line:n,ch:99999999999999})}(a);e.focus()}}function aC(e,t,r){if(!e.getWrapperElement().lastChild.classList.contains("editor-preview-active")){for(var n=/^(\s*)(\*|-|\+|\d*\.)(\s+)/,i=/^\s*/,a=_A(e),o=e.getCursor("start"),s=e.getCursor("end"),l={quote:/^(\s*)>\s+/,"unordered-list":n,"ordered-list":n},c=function(e,t,a){var o=n.exec(t),s=function(e,t){return{quote:">","unordered-list":r,"ordered-list":"%%i."}[e].replace("%%i",t)}(e,u);return null!==o?(function(e,t){var n=new RegExp({quote:">","unordered-list":"\\"+r,"ordered-list":"\\d+."}[e]);return t&&n.test(t)}(e,o[2])&&(s=""),t=o[1]+s+o[3]+t.replace(i,"").replace(l[e],"$1")):0==a&&(t=s+" "+t),t},u=1,p=o.line;p<=s.line;p++)!function(r){var n=e.getLine(r);a[t]?n=n.replace(l[t],"$1"):("unordered-list"==t&&(n=c("ordered-list",n,!0)),n=c(t,n,!1),u+=1),e.replaceRange(n,{line:r,ch:0},{line:r,ch:99999999999999})}(p);e.focus()}}function oC(e,t,r,n){if(e.codemirror&&!e.isPreviewActive()){var i=e.codemirror,a=_A(i)[t];if(a){var o=i.getCursor("start"),s=i.getCursor("end"),l=i.getLine(o.line),c=l.slice(0,o.ch),u=l.slice(o.ch);"link"==t?c=c.replace(/(.*)[^!]\[/,"$1"):"image"==t&&(c=c.replace(/(.*)!\[$/,"$1")),u=u.replace(/]\(.*?\)/,""),i.replaceRange(c+u,{line:o.line,ch:0},{line:o.line,ch:99999999999999}),o.ch-=r[0].length,o!==s&&(s.ch-=r[0].length),i.setSelection(o,s),i.focus()}else nC(i,a,r,n)}}function sC(e,t,r,n){if(e.codemirror&&!e.isPreviewActive()){n=void 0===n?r:n;var i,a=e.codemirror,o=_A(a),s=r,l=n,c=a.getCursor("start"),u=a.getCursor("end");o[t]?(s=(i=a.getLine(c.line)).slice(0,c.ch),l=i.slice(c.ch),"bold"==t?(s=s.replace(/(\*\*|__)(?![\s\S]*(\*\*|__))/,""),l=l.replace(/(\*\*|__)/,"")):"italic"==t?(s=s.replace(/(\*|_)(?![\s\S]*(\*|_))/,""),l=l.replace(/(\*|_)/,"")):"strikethrough"==t&&(s=s.replace(/(\*\*|~~)(?![\s\S]*(\*\*|~~))/,""),l=l.replace(/(\*\*|~~)/,"")),a.replaceRange(s+l,{line:c.line,ch:0},{line:c.line,ch:99999999999999}),"bold"==t||"strikethrough"==t?(c.ch-=2,c!==u&&(u.ch-=2)):"italic"==t&&(c.ch-=1,c!==u&&(u.ch-=1))):(i=a.getSelection(),"bold"==t?i=(i=i.split("**").join("")).split("__").join(""):"italic"==t?i=(i=i.split("*").join("")).split("_").join(""):"strikethrough"==t&&(i=i.split("~~").join("")),a.replaceSelection(s+i+l),c.ch+=r.length,u.ch=c.ch+i.length),a.setSelection(c,u),a.focus()}}function lC(e,t){if(Math.abs(e)<1024)return""+e+t[0];var r=0;do{e/=1024,++r}while(Math.abs(e)>=1024&&r<t.length);return""+e.toFixed(1)+t[r]}function cC(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]instanceof Array?e[r]=t[r].concat(e[r]instanceof Array?e[r]:[]):null!==t[r]&&"object"==typeof t[r]&&t[r].constructor===Object?e[r]=cC(e[r]||{},t[r]):e[r]=t[r]);return e}function uC(e){for(var t=1;t<arguments.length;t++)e=cC(e,arguments[t]);return e}function pC(e){var t=e.match(/[a-zA-Z0-9_\u00A0-\u02AF\u0392-\u03c9\u0410-\u04F9]+|[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g),r=0;if(null===t)return r;for(var n=0;n<t.length;n++)t[n].charCodeAt(0)>=19968?r+=t[n].length:r+=1;return r}var dC={bold:"fa fa-bold",italic:"fa fa-italic",strikethrough:"fa fa-strikethrough",heading:"fa fa-header fa-heading","heading-smaller":"fa fa-header fa-heading header-smaller","heading-bigger":"fa fa-header fa-heading header-bigger","heading-1":"fa fa-header fa-heading header-1","heading-2":"fa fa-header fa-heading header-2","heading-3":"fa fa-header fa-heading header-3",code:"fa fa-code",quote:"fa fa-quote-left","ordered-list":"fa fa-list-ol","unordered-list":"fa fa-list-ul","clean-block":"fa fa-eraser",link:"fa fa-link",image:"fa fa-image","upload-image":"fa fa-image",table:"fa fa-table","horizontal-rule":"fa fa-minus",preview:"fa fa-eye","side-by-side":"fa fa-columns",fullscreen:"fa fa-arrows-alt",guide:"fa fa-question-circle",undo:"fa fa-undo",redo:"fa fa-repeat fa-redo"},hC={bold:{name:"bold",action:$A,className:dC.bold,title:"Bold",default:!0},italic:{name:"italic",action:LA,className:dC.italic,title:"Italic",default:!0},strikethrough:{name:"strikethrough",action:EA,className:dC.strikethrough,title:"Strikethrough"},heading:{name:"heading",action:DA,className:dC.heading,title:"Heading",default:!0},"heading-smaller":{name:"heading-smaller",action:DA,className:dC["heading-smaller"],title:"Smaller Heading"},"heading-bigger":{name:"heading-bigger",action:HA,className:dC["heading-bigger"],title:"Bigger Heading"},"heading-1":{name:"heading-1",action:OA,className:dC["heading-1"],title:"Big Heading"},"heading-2":{name:"heading-2",action:PA,className:dC["heading-2"],title:"Medium Heading"},"heading-3":{name:"heading-3",action:RA,className:dC["heading-3"],title:"Small Heading"},"separator-1":{name:"separator-1"},code:{name:"code",action:IA,className:dC.code,title:"Code"},quote:{name:"quote",action:BA,className:dC.quote,title:"Quote",default:!0},"unordered-list":{name:"unordered-list",action:jA,className:dC["unordered-list"],title:"Generic List",default:!0},"ordered-list":{name:"ordered-list",action:qA,className:dC["ordered-list"],title:"Numbered List",default:!0},"clean-block":{name:"clean-block",action:UA,className:dC["clean-block"],title:"Clean block"},"separator-2":{name:"separator-2"},link:{name:"link",action:WA,className:dC.link,title:"Create Link",default:!0},image:{name:"image",action:XA,className:dC.image,title:"Insert Image",default:!0},"upload-image":{name:"upload-image",action:YA,className:dC["upload-image"],title:"Import an image"},table:{name:"table",action:KA,className:dC.table,title:"Insert Table"},"horizontal-rule":{name:"horizontal-rule",action:JA,className:dC["horizontal-rule"],title:"Insert Horizontal Line"},"separator-3":{name:"separator-3"},preview:{name:"preview",action:rC,className:dC.preview,noDisable:!0,title:"Toggle Preview",default:!0},"side-by-side":{name:"side-by-side",action:tC,className:dC["side-by-side"],noDisable:!0,noMobile:!0,title:"Toggle Side by Side",default:!0},fullscreen:{name:"fullscreen",action:TA,className:dC.fullscreen,noDisable:!0,noMobile:!0,title:"Toggle Fullscreen",default:!0},"separator-4":{name:"separator-4"},guide:{name:"guide",action:"https://www.markdownguide.org/basic-syntax/",className:dC.guide,noDisable:!0,title:"Markdown Guide",default:!0},"separator-5":{name:"separator-5"},undo:{name:"undo",action:QA,className:dC.undo,noDisable:!0,title:"Undo"},redo:{name:"redo",action:eC,className:dC.redo,noDisable:!0,title:"Redo"}},mC={link:["[","](#url#)"],image:[""],uploadedImage:["",""],table:["","\n\n| Column 1 | Column 2 | Column 3 |\n| -------- | -------- | -------- |\n| Text | Text | Text |\n\n"],horizontalRule:["","\n\n-----\n\n"]},gC={link:"URL for the link:",image:"URL of the image:"},fC={locale:"en-US",format:{hour:"2-digit",minute:"2-digit"}},vC={bold:"**",code:"```",italic:"*"},bC={sbInit:"Attach files by drag and dropping or pasting from clipboard.",sbOnDragEnter:"Drop image to upload it.",sbOnDrop:"Uploading image #images_names#...",sbProgress:"Uploading #file_name#: #progress#%",sbOnUploaded:"Uploaded #image_name#",sizeUnits:" B, KB, MB"},yC={noFileGiven:"You must select a file.",typeNotAllowed:"This image type is not allowed.",fileTooLarge:"Image #image_name# is too big (#image_size#).\nMaximum file size is #image_max_size#.",importError:"Something went wrong when uploading the image #image_name#."};function xC(e){(e=e||{}).parent=this;var t=!0;if(!1===e.autoDownloadFontAwesome&&(t=!1),!0!==e.autoDownloadFontAwesome)for(var r=document.styleSheets,n=0;n<r.length;n++)r[n].href&&r[n].href.indexOf("//maxcdn.bootstrapcdn.com/font-awesome/")>-1&&(t=!1);if(t){var i=document.createElement("link");i.rel="stylesheet",i.href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css",document.getElementsByTagName("head")[0].appendChild(i)}if(e.element)this.element=e.element;else if(null===e.element)return void console.log("EasyMDE: Error. No element was found.");if(void 0===e.toolbar)for(var a in e.toolbar=[],hC)Object.prototype.hasOwnProperty.call(hC,a)&&(-1!=a.indexOf("separator-")&&e.toolbar.push("|"),(!0===hC[a].default||e.showIcons&&e.showIcons.constructor===Array&&-1!=e.showIcons.indexOf(a))&&e.toolbar.push(a));if(Object.prototype.hasOwnProperty.call(e,"previewClass")||(e.previewClass="editor-preview"),Object.prototype.hasOwnProperty.call(e,"status")||(e.status=["autosave","lines","words","cursor"],e.uploadImage&&e.status.unshift("upload-image")),e.previewRender||(e.previewRender=function(e){return this.parent.markdown(e)}),e.parsingConfig=uC({highlightFormatting:!0},e.parsingConfig||{}),e.insertTexts=uC({},mC,e.insertTexts||{}),e.promptTexts=uC({},gC,e.promptTexts||{}),e.blockStyles=uC({},vC,e.blockStyles||{}),null!=e.autosave&&(e.autosave.timeFormat=uC({},fC,e.autosave.timeFormat||{})),e.iconClassMap=uC({},dC,e.iconClassMap||{}),e.shortcuts=uC({},xA,e.shortcuts||{}),e.maxHeight=e.maxHeight||void 0,e.direction=e.direction||"ltr",void 0!==e.maxHeight?e.minHeight=e.maxHeight:e.minHeight=e.minHeight||"300px",e.errorCallback=e.errorCallback||function(e){alert(e)},e.uploadImage=e.uploadImage||!1,e.imageMaxSize=e.imageMaxSize||2097152,e.imageAccept=e.imageAccept||"image/png, image/jpeg, image/gif, image/avif",e.imageTexts=uC({},bC,e.imageTexts||{}),e.errorMessages=uC({},yC,e.errorMessages||{}),e.imagePathAbsolute=e.imagePathAbsolute||!1,e.imageCSRFName=e.imageCSRFName||"csrfmiddlewaretoken",e.imageCSRFHeader=e.imageCSRFHeader||!1,null!=e.autosave&&null!=e.autosave.unique_id&&""!=e.autosave.unique_id&&(e.autosave.uniqueId=e.autosave.unique_id),e.overlayMode&&void 0===e.overlayMode.combine&&(e.overlayMode.combine=!0),this.options=e,this.render(),!e.initialValue||this.options.autosave&&!0===this.options.autosave.foundSavedValue||this.value(e.initialValue),e.uploadImage){var o=this;this.codemirror.on("dragenter",(function(e,t){o.updateStatusBar("upload-image",o.options.imageTexts.sbOnDragEnter),t.stopPropagation(),t.preventDefault()})),this.codemirror.on("dragend",(function(e,t){o.updateStatusBar("upload-image",o.options.imageTexts.sbInit),t.stopPropagation(),t.preventDefault()})),this.codemirror.on("dragleave",(function(e,t){o.updateStatusBar("upload-image",o.options.imageTexts.sbInit),t.stopPropagation(),t.preventDefault()})),this.codemirror.on("dragover",(function(e,t){o.updateStatusBar("upload-image",o.options.imageTexts.sbOnDragEnter),t.stopPropagation(),t.preventDefault()})),this.codemirror.on("drop",(function(t,r){r.stopPropagation(),r.preventDefault(),e.imageUploadFunction?o.uploadImagesUsingCustomFunction(e.imageUploadFunction,r.dataTransfer.files):o.uploadImages(r.dataTransfer.files)})),this.codemirror.on("paste",(function(t,r){e.imageUploadFunction?o.uploadImagesUsingCustomFunction(e.imageUploadFunction,r.clipboardData.files):o.uploadImages(r.clipboardData.files)}))}}function wC(){if("object"!=typeof localStorage)return!1;try{localStorage.setItem("smde_localStorage",1),localStorage.removeItem("smde_localStorage")}catch(e){return!1}return!0}xC.prototype.uploadImages=function(e,t,r){if(0!==e.length){for(var n=[],i=0;i<e.length;i++)n.push(e[i].name),this.uploadImage(e[i],t,r);this.updateStatusBar("upload-image",this.options.imageTexts.sbOnDrop.replace("#images_names#",n.join(", ")))}},xC.prototype.uploadImagesUsingCustomFunction=function(e,t){if(0!==t.length){for(var r=[],n=0;n<t.length;n++)r.push(t[n].name),this.uploadImageUsingCustomFunction(e,t[n]);this.updateStatusBar("upload-image",this.options.imageTexts.sbOnDrop.replace("#images_names#",r.join(", ")))}},xC.prototype.updateStatusBar=function(e,t){if(this.gui.statusbar){var r=this.gui.statusbar.getElementsByClassName(e);1===r.length?this.gui.statusbar.getElementsByClassName(e)[0].textContent=t:0===r.length?console.log("EasyMDE: status bar item "+e+" was not found."):console.log("EasyMDE: Several status bar items named "+e+" was found.")}},xC.prototype.markdown=function(e){if(fA){var t;if(t=this.options&&this.options.renderingConfig&&this.options.renderingConfig.markedOptions?this.options.renderingConfig.markedOptions:{},this.options&&this.options.renderingConfig&&!1===this.options.renderingConfig.singleLineBreaks?t.breaks=!1:t.breaks=!0,this.options&&this.options.renderingConfig&&!0===this.options.renderingConfig.codeSyntaxHighlighting){var r=this.options.renderingConfig.hljs||window.hljs;r&&(t.highlight=function(e,t){return t&&r.getLanguage(t)?r.highlight(t,e).value:r.highlightAuto(e).value})}fA.setOptions(t);var n=fA.parse(e);return this.options.renderingConfig&&"function"==typeof this.options.renderingConfig.sanitizerFunction&&(n=this.options.renderingConfig.sanitizerFunction.call(this,n)),n=function(e){for(var t=(new DOMParser).parseFromString(e,"text/html"),r=t.getElementsByTagName("li"),n=0;n<r.length;n++)for(var i=r[n],a=0;a<i.children.length;a++){var o=i.children[a];o instanceof HTMLInputElement&&"checkbox"===o.type&&(i.style.marginLeft="-1.5em",i.style.listStyleType="none")}return t.documentElement.innerHTML}(n=function(e){for(var t;null!==(t=bA.exec(e));){var r=t[0];if(-1===r.indexOf("target=")){var n=r.replace(/>$/,' target="_blank">');e=e.replace(r,n)}}return e}(n)),n}},xC.prototype.render=function(e){if(e||(e=this.element||document.getElementsByTagName("textarea")[0]),!this._rendered||this._rendered!==e){this.element=e;var t,r,n=this.options,i=this,a={};for(var o in n.shortcuts)null!==n.shortcuts[o]&&null!==yA[o]&&function(e){a[kA(n.shortcuts[e])]=function(){var t=yA[e];"function"==typeof t?t(i):"string"==typeof t&&window.open(t,"_blank")}}(o);if(a.Enter="newlineAndIndentContinueMarkdownList",a.Tab="tabAndIndentMarkdownList",a["Shift-Tab"]="shiftTabAndUnindentMarkdownList",a.Esc=function(e){e.getOption("fullScreen")&&TA(i)},this.documentOnKeyDown=function(e){27==(e=e||window.event).keyCode&&i.codemirror.getOption("fullScreen")&&TA(i)},document.addEventListener("keydown",this.documentOnKeyDown,!1),n.overlayMode?(uA.defineMode("overlay-mode",(function(e){return uA.overlayMode(uA.getMode(e,!1!==n.spellChecker?"spell-checker":"gfm"),n.overlayMode.mode,n.overlayMode.combine)})),t="overlay-mode",(r=n.parsingConfig).gitHubSpice=!1):((t=n.parsingConfig).name="gfm",t.gitHubSpice=!1),!1!==n.spellChecker&&(t="spell-checker",(r=n.parsingConfig).name="gfm",r.gitHubSpice=!1,"function"==typeof n.spellChecker?n.spellChecker({codeMirrorInstance:uA}):mA({codeMirrorInstance:uA})),this.codemirror=uA.fromTextArea(e,{mode:t,backdrop:r,theme:null!=n.theme?n.theme:"easymde",tabSize:null!=n.tabSize?n.tabSize:2,indentUnit:null!=n.tabSize?n.tabSize:2,indentWithTabs:!1!==n.indentWithTabs,lineNumbers:!0===n.lineNumbers,autofocus:!0===n.autofocus,extraKeys:a,direction:n.direction,lineWrapping:!1!==n.lineWrapping,allowDropFileTypes:["text/plain"],placeholder:n.placeholder||e.getAttribute("placeholder")||"",styleSelectedText:null!=n.styleSelectedText?n.styleSelectedText:!zA(),scrollbarStyle:null!=n.scrollbarStyle?n.scrollbarStyle:"native",configureMouse:function(e,t,r){return{addNew:!1}},inputStyle:null!=n.inputStyle?n.inputStyle:zA()?"contenteditable":"textarea",spellcheck:null==n.nativeSpellcheck||n.nativeSpellcheck,autoRefresh:null!=n.autoRefresh&&n.autoRefresh}),this.codemirror.getScrollerElement().style.minHeight=n.minHeight,void 0!==n.maxHeight&&(this.codemirror.getScrollerElement().style.height=n.maxHeight),!0===n.forceSync){var s=this.codemirror;s.on("change",(function(){s.save()}))}this.gui={};var l=document.createElement("div");l.classList.add("EasyMDEContainer"),l.setAttribute("role","application");var c=this.codemirror.getWrapperElement();c.parentNode.insertBefore(l,c),l.appendChild(c),!1!==n.toolbar&&(this.gui.toolbar=this.createToolbar()),!1!==n.status&&(this.gui.statusbar=this.createStatusbar()),null!=n.autosave&&!0===n.autosave.enabled&&(this.autosave(),this.codemirror.on("change",(function(){clearTimeout(i._autosave_timeout),i._autosave_timeout=setTimeout((function(){i.autosave()}),i.options.autosave.submit_delay||i.options.autosave.delay||1e3)})));var u=this;this.codemirror.on("update",(function(){n.previewImagesInEditor&&l.querySelectorAll(".cm-image-marker").forEach((function(e){var t=e.parentElement;if(t.innerText.match(/^!\[.*?\]\(.*\)/g)&&!t.hasAttribute("data-img-src")){var r=t.innerText.match("\\((.*)\\)");if(window.EMDEimagesCache||(window.EMDEimagesCache={}),r&&r.length>=2){var i=r[1];if(n.imagesPreviewHandler){var a=n.imagesPreviewHandler(r[1]);"string"==typeof a&&(i=a)}if(window.EMDEimagesCache[i])d(t,window.EMDEimagesCache[i]);else{var o=document.createElement("img");o.onload=function(){window.EMDEimagesCache[i]={naturalWidth:o.naturalWidth,naturalHeight:o.naturalHeight,url:i},d(t,window.EMDEimagesCache[i])},o.src=i}}}}))})),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element,(!0===n.autofocus||e.autofocus)&&this.codemirror.focus();var p=this.codemirror;setTimeout(function(){p.refresh()}.bind(p),0)}function d(e,t){var r,n;e.setAttribute("data-img-src",t.url),e.setAttribute("style","--bg-image:url("+t.url+");--width:"+t.naturalWidth+"px;--height:"+(r=t.naturalWidth,n=t.naturalHeight,r<window.getComputedStyle(document.querySelector(".CodeMirror-sizer")).width.replace("px","")?n+"px":n/r*100+"%")),u.codemirror.setSize()}},xC.prototype.cleanup=function(){document.removeEventListener("keydown",this.documentOnKeyDown)},xC.prototype.autosave=function(){if(wC()){var e=this;if(null==this.options.autosave.uniqueId||""==this.options.autosave.uniqueId)return void console.log("EasyMDE: You must set a uniqueId to use the autosave feature");!0!==this.options.autosave.binded&&(null!=e.element.form&&null!=e.element.form&&e.element.form.addEventListener("submit",(function(){clearTimeout(e.autosaveTimeoutId),e.autosaveTimeoutId=void 0,localStorage.removeItem("smde_"+e.options.autosave.uniqueId)})),this.options.autosave.binded=!0),!0!==this.options.autosave.loaded&&("string"==typeof localStorage.getItem("smde_"+this.options.autosave.uniqueId)&&""!=localStorage.getItem("smde_"+this.options.autosave.uniqueId)&&(this.codemirror.setValue(localStorage.getItem("smde_"+this.options.autosave.uniqueId)),this.options.autosave.foundSavedValue=!0),this.options.autosave.loaded=!0);var t=e.value();""!==t?localStorage.setItem("smde_"+this.options.autosave.uniqueId,t):localStorage.removeItem("smde_"+this.options.autosave.uniqueId);var r=document.getElementById("autosaved");if(null!=r&&null!=r&&""!=r){var n=new Date,i=new Intl.DateTimeFormat([this.options.autosave.timeFormat.locale,"en-US"],this.options.autosave.timeFormat.format).format(n),a=null==this.options.autosave.text?"Autosaved: ":this.options.autosave.text;r.innerHTML=a+i}}else console.log("EasyMDE: localStorage not available, cannot autosave")},xC.prototype.clearAutosavedValue=function(){if(wC()){if(null==this.options.autosave||null==this.options.autosave.uniqueId||""==this.options.autosave.uniqueId)return void console.log("EasyMDE: You must set a uniqueId to clear the autosave value");localStorage.removeItem("smde_"+this.options.autosave.uniqueId)}else console.log("EasyMDE: localStorage not available, cannot autosave")},xC.prototype.openBrowseFileWindow=function(e,t){var r=this,n=this.gui.toolbar.getElementsByClassName("imageInput")[0];n.click(),n.addEventListener("change",(function i(a){r.options.imageUploadFunction?r.uploadImagesUsingCustomFunction(r.options.imageUploadFunction,a.target.files):r.uploadImages(a.target.files,e,t),n.removeEventListener("change",i)}))},xC.prototype.uploadImage=function(e,t,r){var n=this;function i(e){n.updateStatusBar("upload-image",e),setTimeout((function(){n.updateStatusBar("upload-image",n.options.imageTexts.sbInit)}),1e4),r&&"function"==typeof r&&r(e),n.options.errorCallback(e)}function a(t){var r=n.options.imageTexts.sizeUnits.split(",");return t.replace("#image_name#",e.name).replace("#image_size#",lC(e.size,r)).replace("#image_max_size#",lC(n.options.imageMaxSize,r))}if(t=t||function(e){ZA(n,e)},e.size>this.options.imageMaxSize)i(a(this.options.errorMessages.fileTooLarge));else{var o=new FormData;o.append("image",e),n.options.imageCSRFToken&&!n.options.imageCSRFHeader&&o.append(n.options.imageCSRFName,n.options.imageCSRFToken);var s=new XMLHttpRequest;s.upload.onprogress=function(t){if(t.lengthComputable){var r=""+Math.round(100*t.loaded/t.total);n.updateStatusBar("upload-image",n.options.imageTexts.sbProgress.replace("#file_name#",e.name).replace("#progress#",r))}},s.open("POST",this.options.imageUploadEndpoint),n.options.imageCSRFToken&&n.options.imageCSRFHeader&&s.setRequestHeader(n.options.imageCSRFName,n.options.imageCSRFToken),s.onload=function(){try{var e=JSON.parse(this.responseText)}catch(e){return console.error("EasyMDE: The server did not return a valid json."),void i(a(n.options.errorMessages.importError))}200===this.status&&e&&!e.error&&e.data&&e.data.filePath?t((n.options.imagePathAbsolute?"":window.location.origin+"/")+e.data.filePath):e.error&&e.error in n.options.errorMessages?i(a(n.options.errorMessages[e.error])):e.error?i(a(e.error)):(console.error("EasyMDE: Received an unexpected response after uploading the image."+this.status+" ("+this.statusText+")"),i(a(n.options.errorMessages.importError)))},s.onerror=function(e){console.error("EasyMDE: An unexpected error occurred when trying to upload the image."+e.target.status+" ("+e.target.statusText+")"),i(n.options.errorMessages.importError)},s.send(o)}},xC.prototype.uploadImageUsingCustomFunction=function(e,t){var r=this;e.apply(this,[t,function(e){ZA(r,e)},function(e){var n=function(e){var n=r.options.imageTexts.sizeUnits.split(",");return e.replace("#image_name#",t.name).replace("#image_size#",lC(t.size,n)).replace("#image_max_size#",lC(r.options.imageMaxSize,n))}(e);r.updateStatusBar("upload-image",n),setTimeout((function(){r.updateStatusBar("upload-image",r.options.imageTexts.sbInit)}),1e4),r.options.errorCallback(n)}])},xC.prototype.setPreviewMaxHeight=function(){var e=this.codemirror.getWrapperElement(),t=e.nextSibling,r=parseInt(window.getComputedStyle(e).paddingTop),n=parseInt(window.getComputedStyle(e).borderTopWidth),i=(parseInt(this.options.maxHeight)+2*r+2*n).toString()+"px";t.style.height=i},xC.prototype.createSideBySide=function(){var e=this.codemirror,t=e.getWrapperElement(),r=t.nextSibling;if(!r||!r.classList.contains("editor-preview-side")){if((r=document.createElement("div")).className="editor-preview-side",this.options.previewClass)if(Array.isArray(this.options.previewClass))for(var n=0;n<this.options.previewClass.length;n++)r.classList.add(this.options.previewClass[n]);else"string"==typeof this.options.previewClass&&r.classList.add(this.options.previewClass);t.parentNode.insertBefore(r,t.nextSibling)}if(void 0!==this.options.maxHeight&&this.setPreviewMaxHeight(),!1===this.options.syncSideBySidePreviewScroll)return r;var i=!1,a=!1;return e.on("scroll",(function(e){if(i)i=!1;else{a=!0;var t=e.getScrollInfo().height-e.getScrollInfo().clientHeight,n=parseFloat(e.getScrollInfo().top)/t,o=(r.scrollHeight-r.clientHeight)*n;r.scrollTop=o}})),r.onscroll=function(){if(a)a=!1;else{i=!0;var t=r.scrollHeight-r.clientHeight,n=parseFloat(r.scrollTop)/t,o=(e.getScrollInfo().height-e.getScrollInfo().clientHeight)*n;e.scrollTo(0,o)}},r},xC.prototype.createToolbar=function(e){if((e=e||this.options.toolbar)&&0!==e.length){var t;for(t=0;t<e.length;t++)null!=hC[e[t]]&&(e[t]=hC[e[t]]);var r=document.createElement("div");r.className="editor-toolbar",r.setAttribute("role","toolbar");var n=this,i={};for(n.toolbar=e,t=0;t<e.length;t++)if(("guide"!=e[t].name||!1!==n.options.toolbarGuideIcon)&&!(n.options.hideIcons&&-1!=n.options.hideIcons.indexOf(e[t].name)||("fullscreen"==e[t].name||"side-by-side"==e[t].name)&&zA())){if("|"===e[t]){for(var a=!1,o=t+1;o<e.length;o++)"|"===e[o]||n.options.hideIcons&&-1!=n.options.hideIcons.indexOf(e[o].name)||(a=!0);if(!a)continue}!function(e){var t;if(t="|"===e?SA():e.children?AA(e,n.options.toolbarTips,n.options.shortcuts,n):CA(e,!0,n.options.toolbarTips,n.options.shortcuts,"button",n),i[e.name||e]=t,r.appendChild(t),"upload-image"===e.name){var a=document.createElement("input");a.className="imageInput",a.type="file",a.multiple=!0,a.name="image",a.accept=n.options.imageAccept,a.style.display="none",a.style.opacity=0,r.appendChild(a)}}(e[t])}n.toolbar_div=r,n.toolbarElements=i;var s=this.codemirror;s.on("cursorActivity",(function(){var e=_A(s);for(var t in i)!function(t){var r=i[t];e[t]?r.classList.add("active"):"fullscreen"!=t&&"side-by-side"!=t&&r.classList.remove("active")}(t)}));var l=s.getWrapperElement();return l.parentNode.insertBefore(r,l),r}},xC.prototype.createStatusbar=function(e){e=e||this.options.status;var t=this.options,r=this.codemirror;if(e&&0!==e.length){var n,i,a,o,s=[];for(n=0;n<e.length;n++)if(i=void 0,a=void 0,o=void 0,"object"==typeof e[n])s.push({className:e[n].className,defaultValue:e[n].defaultValue,onUpdate:e[n].onUpdate,onActivity:e[n].onActivity});else{var l=e[n];"words"===l?(o=function(e){e.innerHTML=pC(r.getValue())},i=function(e){e.innerHTML=pC(r.getValue())}):"lines"===l?(o=function(e){e.innerHTML=r.lineCount()},i=function(e){e.innerHTML=r.lineCount()}):"cursor"===l?(o=function(e){e.innerHTML="1:1"},a=function(e){var t=r.getCursor(),n=t.line+1,i=t.ch+1;e.innerHTML=n+":"+i}):"autosave"===l?o=function(e){null!=t.autosave&&!0===t.autosave.enabled&&e.setAttribute("id","autosaved")}:"upload-image"===l&&(o=function(e){e.innerHTML=t.imageTexts.sbInit}),s.push({className:l,defaultValue:o,onUpdate:i,onActivity:a})}var c=document.createElement("div");for(c.className="editor-statusbar",n=0;n<s.length;n++){var u=s[n],p=document.createElement("span");p.className=u.className,"function"==typeof u.defaultValue&&u.defaultValue(p),"function"==typeof u.onUpdate&&this.codemirror.on("update",function(e,t){return function(){t.onUpdate(e)}}(p,u)),"function"==typeof u.onActivity&&this.codemirror.on("cursorActivity",function(e,t){return function(){t.onActivity(e)}}(p,u)),c.appendChild(p)}var d=this.codemirror.getWrapperElement();return d.parentNode.insertBefore(c,d.nextSibling),c}},xC.prototype.value=function(e){var t=this.codemirror;if(void 0===e)return t.getValue();if(t.getDoc().setValue(e),this.isPreviewActive()){var r=t.getWrapperElement().lastChild,n=this.options.previewRender(e,r);null!==n&&(r.innerHTML=n)}return this},xC.toggleBold=$A,xC.toggleItalic=LA,xC.toggleStrikethrough=EA,xC.toggleBlockquote=BA,xC.toggleHeadingSmaller=DA,xC.toggleHeadingBigger=HA,xC.toggleHeading1=OA,xC.toggleHeading2=PA,xC.toggleHeading3=RA,xC.toggleHeading4=VA,xC.toggleHeading5=NA,xC.toggleHeading6=FA,xC.toggleCodeBlock=IA,xC.toggleUnorderedList=jA,xC.toggleOrderedList=qA,xC.cleanBlock=UA,xC.drawLink=WA,xC.drawImage=XA,xC.drawUploadedImage=YA,xC.drawTable=KA,xC.drawHorizontalRule=JA,xC.undo=QA,xC.redo=eC,xC.togglePreview=rC,xC.toggleSideBySide=tC,xC.toggleFullScreen=TA,xC.prototype.toggleBold=function(){$A(this)},xC.prototype.toggleItalic=function(){LA(this)},xC.prototype.toggleStrikethrough=function(){EA(this)},xC.prototype.toggleBlockquote=function(){BA(this)},xC.prototype.toggleHeadingSmaller=function(){DA(this)},xC.prototype.toggleHeadingBigger=function(){HA(this)},xC.prototype.toggleHeading1=function(){OA(this)},xC.prototype.toggleHeading2=function(){PA(this)},xC.prototype.toggleHeading3=function(){RA(this)},xC.prototype.toggleHeading4=function(){VA(this)},xC.prototype.toggleHeading5=function(){NA(this)},xC.prototype.toggleHeading6=function(){FA(this)},xC.prototype.toggleCodeBlock=function(){IA(this)},xC.prototype.toggleUnorderedList=function(){jA(this)},xC.prototype.toggleOrderedList=function(){qA(this)},xC.prototype.cleanBlock=function(){UA(this)},xC.prototype.drawLink=function(){WA(this)},xC.prototype.drawImage=function(){XA(this)},xC.prototype.drawUploadedImage=function(){YA(this)},xC.prototype.drawTable=function(){KA(this)},xC.prototype.drawHorizontalRule=function(){JA(this)},xC.prototype.undo=function(){QA(this)},xC.prototype.redo=function(){eC(this)},xC.prototype.togglePreview=function(){rC(this)},xC.prototype.toggleSideBySide=function(){tC(this)},xC.prototype.toggleFullScreen=function(){TA(this)},xC.prototype.isPreviewActive=function(){return this.codemirror.getWrapperElement().lastChild.classList.contains("editor-preview-active")},xC.prototype.isSideBySideActive=function(){return this.codemirror.getWrapperElement().nextSibling.classList.contains("editor-preview-active-side")},xC.prototype.isFullscreenActive=function(){return this.codemirror.getOption("fullScreen")},xC.prototype.getState=function(){return _A(this.codemirror)},xC.prototype.toTextArea=function(){var e=this.codemirror,t=e.getWrapperElement(),r=t.parentNode;r&&(this.gui.toolbar&&r.removeChild(this.gui.toolbar),this.gui.statusbar&&r.removeChild(this.gui.statusbar),this.gui.sideBySide&&r.removeChild(this.gui.sideBySide)),r.parentNode.insertBefore(t,r),r.remove(),e.toTextArea(),this.autosaveTimeoutId&&(clearTimeout(this.autosaveTimeoutId),this.autosaveTimeoutId=void 0,this.clearAutosavedValue())};var zC=xC;Gt('/**\n * easymde v2.18.0\n * Copyright Jeroen Akkerman\n * @link https://github.com/ionaru/easy-markdown-editor\n * @license MIT\n */\n.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:0 0}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:0 0}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:red}.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:0;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none;outline:0}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:0 0!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:0 0;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:0}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:\'\'}span.CodeMirror-selectedtext{background:0 0}.EasyMDEContainer{display:block}.CodeMirror-rtl pre{direction:rtl}.EasyMDEContainer.sided--no-fullscreen{display:flex;flex-direction:row;flex-wrap:wrap}.EasyMDEContainer .CodeMirror{box-sizing:border-box;height:auto;border:1px solid #ced4da;border-bottom-left-radius:4px;border-bottom-right-radius:4px;padding:10px;font:inherit;z-index:0;word-wrap:break-word}.EasyMDEContainer .CodeMirror-scroll{cursor:text}.EasyMDEContainer .CodeMirror-fullscreen{background:#fff;position:fixed!important;top:50px;left:0;right:0;bottom:0;height:auto;z-index:8;border-right:none!important;border-bottom-right-radius:0!important}.EasyMDEContainer .CodeMirror-sided{width:50%!important}.EasyMDEContainer.sided--no-fullscreen .CodeMirror-sided{border-right:none!important;border-bottom-right-radius:0;position:relative;flex:1 1 auto}.EasyMDEContainer .CodeMirror-placeholder{opacity:.5}.EasyMDEContainer .CodeMirror-focused .CodeMirror-selected{background:#d9d9d9}.editor-toolbar{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;padding:9px 10px;border-top:1px solid #ced4da;border-left:1px solid #ced4da;border-right:1px solid #ced4da;border-top-left-radius:4px;border-top-right-radius:4px}.editor-toolbar.fullscreen{width:100%;height:50px;padding-top:10px;padding-bottom:10px;box-sizing:border-box;background:#fff;border:0;position:fixed;top:0;left:0;opacity:1;z-index:9}.editor-toolbar.fullscreen::before{width:20px;height:50px;background:-moz-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0,#fff),color-stop(100%,rgba(255,255,255,0)));background:-webkit-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:-o-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:-ms-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:linear-gradient(to right,#fff 0,rgba(255,255,255,0) 100%);position:fixed;top:0;left:0;margin:0;padding:0}.editor-toolbar.fullscreen::after{width:20px;height:50px;background:-moz-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0,rgba(255,255,255,0)),color-stop(100%,#fff));background:-webkit-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:-o-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:-ms-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:linear-gradient(to right,rgba(255,255,255,0) 0,#fff 100%);position:fixed;top:0;right:0;margin:0;padding:0}.EasyMDEContainer.sided--no-fullscreen .editor-toolbar{width:100%}.editor-toolbar .easymde-dropdown,.editor-toolbar button{background:0 0;display:inline-block;text-align:center;text-decoration:none!important;height:30px;margin:0;padding:0;border:1px solid transparent;border-radius:3px;cursor:pointer}.editor-toolbar button{font-weight:700;min-width:30px;padding:0 6px;white-space:nowrap}.editor-toolbar button.active,.editor-toolbar button:hover{background:#fcfcfc;border-color:#95a5a6}.editor-toolbar i.separator{display:inline-block;width:0;border-left:1px solid #d9d9d9;border-right:1px solid #fff;color:transparent;text-indent:-10px;margin:0 6px}.editor-toolbar button:after{font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:65%;vertical-align:text-bottom;position:relative;top:2px}.editor-toolbar button.heading-1:after{content:"1"}.editor-toolbar button.heading-2:after{content:"2"}.editor-toolbar button.heading-3:after{content:"3"}.editor-toolbar button.heading-bigger:after{content:"▲"}.editor-toolbar button.heading-smaller:after{content:"▼"}.editor-toolbar.disabled-for-preview button:not(.no-disable){opacity:.6;pointer-events:none}@media only screen and (max-width:700px){.editor-toolbar i.no-mobile{display:none}}.editor-statusbar{padding:8px 10px;font-size:12px;color:#959694;text-align:right}.EasyMDEContainer.sided--no-fullscreen .editor-statusbar{width:100%}.editor-statusbar span{display:inline-block;min-width:4em;margin-left:1em}.editor-statusbar .lines:before{content:\'lines: \'}.editor-statusbar .words:before{content:\'words: \'}.editor-statusbar .characters:before{content:\'characters: \'}.editor-preview-full{position:absolute;width:100%;height:100%;top:0;left:0;z-index:7;overflow:auto;display:none;box-sizing:border-box}.editor-preview-side{position:fixed;bottom:0;width:50%;top:50px;right:0;z-index:9;overflow:auto;display:none;box-sizing:border-box;border:1px solid #ddd;word-wrap:break-word}.editor-preview-active-side{display:block}.EasyMDEContainer.sided--no-fullscreen .editor-preview-active-side{flex:1 1 auto;height:auto;position:static}.editor-preview-active{display:block}.editor-preview{padding:10px;background:#fafafa}.editor-preview>p{margin-top:0}.editor-preview pre{background:#eee;margin-bottom:10px}.editor-preview table td,.editor-preview table th{border:1px solid #ddd;padding:5px}.cm-s-easymde .cm-tag{color:#63a35c}.cm-s-easymde .cm-attribute{color:#795da3}.cm-s-easymde .cm-string{color:#183691}.cm-s-easymde .cm-header-1{font-size:calc(1.375rem + 1.5vw)}.cm-s-easymde .cm-header-2{font-size:calc(1.325rem + .9vw)}.cm-s-easymde .cm-header-3{font-size:calc(1.3rem + .6vw)}.cm-s-easymde .cm-header-4{font-size:calc(1.275rem + .3vw)}.cm-s-easymde .cm-header-5{font-size:1.25rem}.cm-s-easymde .cm-header-6{font-size:1rem}.cm-s-easymde .cm-header-1,.cm-s-easymde .cm-header-2,.cm-s-easymde .cm-header-3,.cm-s-easymde .cm-header-4,.cm-s-easymde .cm-header-5,.cm-s-easymde .cm-header-6{margin-bottom:.5rem;line-height:1.2}.cm-s-easymde .cm-comment{background:rgba(0,0,0,.05);border-radius:2px}.cm-s-easymde .cm-link{color:#7f8c8d}.cm-s-easymde .cm-url{color:#aab2b3}.cm-s-easymde .cm-quote{color:#7f8c8d;font-style:italic}.editor-toolbar .easymde-dropdown{position:relative;background:linear-gradient(to bottom right,#fff 0,#fff 84%,#333 50%,#333 100%);border-radius:0;border:1px solid #fff}.editor-toolbar .easymde-dropdown:hover{background:linear-gradient(to bottom right,#fff 0,#fff 84%,#333 50%,#333 100%)}.easymde-dropdown-content{display:block;visibility:hidden;position:absolute;background-color:#f9f9f9;box-shadow:0 8px 16px 0 rgba(0,0,0,.2);padding:8px;z-index:2;top:30px}.easymde-dropdown:active .easymde-dropdown-content,.easymde-dropdown:focus .easymde-dropdown-content,.easymde-dropdown:focus-within .easymde-dropdown-content{visibility:visible}.easymde-dropdown-content button{display:block}span[data-img-src]::after{content:\'\';background-image:var(--bg-image);display:block;max-height:100%;max-width:100%;background-size:contain;height:0;padding-top:var(--height);width:var(--width);background-repeat:no-repeat}.CodeMirror .cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word){background:rgba(255,0,0,.15)}');function kC(e){let r,n;return{c(){r=Y("div"),n=Y("textarea"),n.disabled=!0,ie(n,"id",e[0]),ie(r,"style",e[3]),ie(r,"class","svelte-1888jbe"),ye(r,"disabled",e[1])},m(t,i){U(t,r,i),V(r,n),e[9](n)},p(e,[t]){1&t&&ie(n,"id",e[0]),8&t&&ie(r,"style",e[3]),2&t&&ye(r,"disabled",e[1])},i:t,o:t,d(t){t&&X(r),e[9](null)}}}function AC(e,t,r){let n,i,{height:a=null}=t,{scroll:o=!0}=t,{easyMDEOptions:s=null}=t,{mde:l=null}=t,{id:c=null}=t,{fullScreenOffset:u=null}=t,{disabled:p=!1}=t;Ee((()=>(r(4,a=a||"200px"),r(5,l=new zC({element:i,spellChecker:!1,status:!1,unorderedListStyle:"-",maxHeight:o?a:void 0,minHeight:o?void 0:a,...s})),()=>{l.toTextArea()})));return e.$$set=e=>{"height"in e&&r(4,a=e.height),"scroll"in e&&r(6,o=e.scroll),"easyMDEOptions"in e&&r(7,s=e.easyMDEOptions),"mde"in e&&r(5,l=e.mde),"id"in e&&r(0,c=e.id),"fullScreenOffset"in e&&r(8,u=e.fullScreenOffset),"disabled"in e&&r(1,p=e.disabled)},e.$$.update=()=>{256&e.$$.dirty&&r(3,n=(e=>{let t="";return t+=`--fullscreen-offset-x:${e?.x||"0px"};`,t+=`--fullscreen-offset-y:${e?.y||"0px"};`,t})(u))},[c,p,i,n,a,l,o,s,u,function(e){Fe[e?"unshift":"push"]((()=>{i=e,r(2,i)}))}]}Gt(".disabled.svelte-1888jbe textarea{display:none}.disabled.svelte-1888jbe .CodeMirror-cursor{display:none}.disabled.svelte-1888jbe .EasyMDEContainer{pointer-events:none}.disabled.svelte-1888jbe .editor-toolbar button i{color:var(--spectrum-global-color-gray-400)}.disabled.svelte-1888jbe .CodeMirror{color:var(--spectrum-global-color-gray-600)}.EasyMDEContainer .editor-toolbar{background:var(--spectrum-global-color-gray-50);border-top:1px solid var(--spectrum-alias-border-color);border-left:1px solid var(--spectrum-alias-border-color);border-right:1px solid var(--spectrum-alias-border-color)}.EasyMDEContainer .CodeMirror{border:1px solid var(--spectrum-alias-border-color);background:var(--spectrum-global-color-gray-50);color:var(--spectrum-alias-text-color)}.EasyMDEContainer .editor-toolbar button.active{background:var(--spectrum-global-color-gray-200);border-color:var(--spectrum-global-color-gray-400)}.EasyMDEContainer .editor-toolbar button:hover{background:var(--spectrum-global-color-gray-200);border-color:var(--spectrum-global-color-gray-400)}.EasyMDEContainer .editor-toolbar button{color:var(--spectrum-global-color-gray-800)}.EasyMDEContainer .editor-toolbar i.separator{border-color:var(--spectrum-global-color-gray-300)}.EasyMDEContainer .CodeMirror-cursor{border-color:var(--spectrum-alias-text-color)}.EasyMDEContainer .CodeMirror-selectedtext{background:var(--spectrum-global-color-gray-400) !important}.EasyMDEContainer .CodeMirror-selected{background:var(--spectrum-global-color-gray-400) !important}.EasyMDEContainer .cm-s-easymde .cm-link{color:var(--spectrum-global-color-gray-600)}.EasyMDEContainer .cm-s-easymde .cm-url{color:var(--spectrum-global-color-gray-500)}.EasyMDEContainer .editor-preview{background:var(--spectrum-global-color-gray-50)}.EasyMDEContainer .editor-preview{border:1px solid var(--spectrum-alias-border-color)}.EasyMDEContainer .cm-s-easymde .cm-comment{background:var(--spectrum-global-color-gray-100)}.EasyMDEContainer pre{background:var(--spectrum-global-color-gray-100);padding:4px;border-radius:4px}.EasyMDEContainer code{color:#e83e8c}.EasyMDEContainer pre code{color:var(--spectrum-alias-text-color)}.EasyMDEContainer blockquote{border-left:4px solid var(--spectrum-global-color-gray-400);color:var(--spectrum-global-color-gray-700);margin-left:0;padding-left:20px}.EasyMDEContainer hr{background-color:var(--spectrum-global-color-gray-300);border:none;height:2px}.EasyMDEContainer td, .EasyMDEContainer th{border-color:var(--spectrum-alias-border-color) !important}.EasyMDEContainer a{color:var(--primaryColor)}.EasyMDEContainer a:hover{color:var(--primaryColorHover)}.EasyMDEContainer .editor-toolbar.fullscreen{left:var(--fullscreen-offset-x);top:var(--fullscreen-offset-y)}.EasyMDEContainer .CodeMirror-fullscreen{left:var(--fullscreen-offset-x);top:calc(50px + var(--fullscreen-offset-y))}.EasyMDEContainer .CodeMirror-fullscreen.CodeMirror-sided{width:calc((100% - var(--fullscreen-offset-x)) / 2) !important}.EasyMDEContainer .editor-preview-side{left:calc(50% + (var(--fullscreen-offset-x) / 2));top:calc(50px + var(--fullscreen-offset-y));width:calc((100% - var(--fullscreen-offset-x)) / 2) !important}");class CC extends Ot{constructor(e){super(),Ht(this,e,AC,kC,c,{height:4,scroll:6,easyMDEOptions:7,mde:5,id:0,fullScreenOffset:8,disabled:1})}}function SC(e){let t,r,n;function i(t){e[9](t)}let a={scroll:!0,height:e[1],id:e[3],fullScreenOffset:e[4],disabled:e[5],easyMDEOptions:{initialValue:e[0],placeholder:e[2],toolbar:!e[5]&&!e[6]&&void 0,...e[7]}};return void 0!==e[8]&&(a.mde=e[8]),t=new CC({props:a}),Fe.push((()=>Et(t,"mde",i))),{c(){It(t.$$.fragment)},m(e,r){Bt(t,e,r),n=!0},p(e,n){const i={};2&n&&(i.height=e[1]),8&n&&(i.id=e[3]),16&n&&(i.fullScreenOffset=e[4]),32&n&&(i.disabled=e[5]),229&n&&(i.easyMDEOptions={initialValue:e[0],placeholder:e[2],toolbar:!e[5]&&!e[6]&&void 0,...e[7]}),!r&&256&n&&(r=!0,i.mde=e[8],Ze((()=>r=!1))),t.$set(i)},i(e){n||(lt(t.$$.fragment,e),n=!0)},o(e){ct(t.$$.fragment,e),n=!1},d(e){Dt(t,e)}}}function _C(e){let r,n,i=e[1],a=SC(e);return{c(){a.c(),r=Q()},m(e,t){a.m(e,t),U(e,r,t),n=!0},p(e,[n]){2&n&&c(i,i=e[1])?(ot(),ct(a,1,1,t),st(),a=SC(e),a.c(),lt(a,1),a.m(r.parentNode,r)):a.p(e,n)},i(e){n||(lt(a),n=!0)},o(e){ct(a),n=!1},d(e){e&&X(r),a.d(e)}}}function MC(e,t,r){let{value:n=null}=t,{height:i=null}=t,{placeholder:a=null}=t,{id:o=null}=t,{fullScreenOffset:s=0}=t,{disabled:l=!1}=t,{readonly:c=!1}=t,{easyMDEOptions:u}=t;const p=De();let d,h;const m=((e,t)=>{let r;return()=>{clearTimeout(r),r=setTimeout(e,t)}})((()=>{d=h.value(),p("change",d)}),250);return e.$$set=e=>{"value"in e&&r(0,n=e.value),"height"in e&&r(1,i=e.height),"placeholder"in e&&r(2,a=e.placeholder),"id"in e&&r(3,o=e.id),"fullScreenOffset"in e&&r(4,s=e.fullScreenOffset),"disabled"in e&&r(5,l=e.disabled),"readonly"in e&&r(6,c=e.readonly),"easyMDEOptions"in e&&r(7,u=e.easyMDEOptions)},e.$$.update=()=>{var t;1&e.$$.dirty&&(t=n,h&&t!==d&&h.value(t)),256&e.$$.dirty&&h?.codemirror.on("change",m),352&e.$$.dirty&&(c||l)&&h?.togglePreview()},[n,i,a,o,s,l,c,u,h,function(e){h=e,r(8,h)}]}class TC extends Ot{constructor(e){super(),Ht(this,e,MC,_C,c,{value:0,height:1,placeholder:2,id:3,fullScreenOffset:4,disabled:5,readonly:6,easyMDEOptions:7})}}function $C(e){let t,r,n,i;function a(t){e[3](t)}let o={scroll:!1,easyMDEOptions:{initialValue:e[0],toolbar:!1}};return void 0!==e[2]&&(o.mde=e[2]),r=new CC({props:o}),Fe.push((()=>Et(r,"mde",a))),{c(){t=Y("div"),It(r.$$.fragment),ie(t,"class","markdown-viewer svelte-digdb7"),fe(t,"height",e[1])},m(e,n){U(e,t,n),Bt(r,t,null),i=!0},p(e,[a]){const o={};1&a&&(o.easyMDEOptions={initialValue:e[0],toolbar:!1}),!n&&4&a&&(n=!0,o.mde=e[2],Ze((()=>n=!1))),r.$set(o),(!i||2&a)&&fe(t,"height",e[1])},i(e){i||(lt(r.$$.fragment,e),i=!0)},o(e){ct(r.$$.fragment,e),i=!1},d(e){e&&X(t),Dt(r)}}}function LC(e,t,r){let n,{value:i}=t,{height:a}=t;return e.$$set=e=>{"value"in e&&r(0,i=e.value),"height"in e&&r(1,a=e.height)},e.$$.update=()=>{5&e.$$.dirty&&n&&n.value(i||""),4&e.$$.dirty&&n&&!n.isPreviewActive()&&n.togglePreview()},[i,a,n,function(e){n=e,r(2,n)}]}Gt(".markdown-viewer.svelte-digdb7{overflow:auto}.markdown-viewer.svelte-digdb7 .editor-preview{padding:0;border:none;background:transparent}.markdown-viewer.svelte-digdb7 .CodeMirror{border:none;background:transparent;padding:0}.markdown-viewer.svelte-digdb7 .EasyMDEContainer{background:transparent}.markdown-viewer.svelte-digdb7 .CodeMirror-scroll{display:none}.markdown-viewer.svelte-digdb7 .CodeMirror-vscrollbar{display:none !important}.markdown-viewer.svelte-digdb7 .editor-preview-full{position:relative}.markdown-viewer.svelte-digdb7 .editor-preview-full > :first-child{margin-top:0}.markdown-viewer.svelte-digdb7 .editor-preview-full > :last-child{margin-bottom:0}.markdown-viewer.svelte-digdb7 .editor-preview-full pre{background:var(--spectrum-global-color-gray-200)}");class EC extends Ot{constructor(e){super(),Ht(this,e,LC,$C,c,{value:0,height:1})}}function IC(e){let t,r,n;return r=new TC({props:{value:e[0],placeholder:e[1],height:e[5],id:e[6],fullScreenOffset:e[7],disabled:e[2],easyMDEOptions:e[8],readonly:e[3]}}),r.$on("change",e[9]),{c(){t=Y("div"),It(r.$$.fragment),ie(t,"class","svelte-rs8sig"),ye(t,"error",e[4])},m(e,i){U(e,t,i),Bt(r,t,null),n=!0},p(e,[n]){const i={};1&n&&(i.value=e[0]),2&n&&(i.placeholder=e[1]),32&n&&(i.height=e[5]),64&n&&(i.id=e[6]),128&n&&(i.fullScreenOffset=e[7]),4&n&&(i.disabled=e[2]),256&n&&(i.easyMDEOptions=e[8]),8&n&&(i.readonly=e[3]),r.$set(i),16&n&&ye(t,"error",e[4])},i(e){n||(lt(r.$$.fragment,e),n=!0)},o(e){ct(r.$$.fragment,e),n=!1},d(e){e&&X(t),Dt(r)}}}function BC(e,t,r){let{value:n=""}=t,{placeholder:i=null}=t,{disabled:a=!1}=t,{readonly:o=!1}=t,{error:s=null}=t,{height:l=null}=t,{id:c=null}=t,{fullScreenOffset:u=null}=t,{easyMDEOptions:p=null}=t;return e.$$set=e=>{"value"in e&&r(0,n=e.value),"placeholder"in e&&r(1,i=e.placeholder),"disabled"in e&&r(2,a=e.disabled),"readonly"in e&&r(3,o=e.readonly),"error"in e&&r(4,s=e.error),"height"in e&&r(5,l=e.height),"id"in e&&r(6,c=e.id),"fullScreenOffset"in e&&r(7,u=e.fullScreenOffset),"easyMDEOptions"in e&&r(8,p=e.easyMDEOptions)},[n,i,a,o,s,l,c,u,p,function(t){Ve.call(this,e,t)}]}Gt(".error.svelte-rs8sig .EasyMDEContainer .editor-toolbar{border-top-color:var(--spectrum-semantic-negative-color-default);border-left-color:var(--spectrum-semantic-negative-color-default);border-right-color:var(--spectrum-semantic-negative-color-default)}.error.svelte-rs8sig .EasyMDEContainer .CodeMirror{border-bottom-color:var(--spectrum-semantic-negative-color-default);border-left-color:var(--spectrum-semantic-negative-color-default);border-right-color:var(--spectrum-semantic-negative-color-default)}.error.svelte-rs8sig .EasyMDEContainer .editor-preview-side{border-bottom-color:var(--spectrum-semantic-negative-color-default);border-right-color:var(--spectrum-semantic-negative-color-default)}");class DC extends Ot{constructor(e){super(),Ht(this,e,BC,IC,c,{value:0,placeholder:1,disabled:2,readonly:3,error:4,height:5,id:6,fullScreenOffset:7,easyMDEOptions:8})}}Gt(".title.svelte-glsrm{margin-bottom:6px}.list-items.svelte-glsrm{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch}");Gt(".list-item.svelte-1u1xks8{padding:0 16px;height:56px;background:var(--spectrum-global-color-gray-50);display:flex;flex-direction:row;justify-content:space-between;border:1px solid var(--spectrum-global-color-gray-300);transition:background 130ms ease-out;gap:var(--spacing-m)}.list-item.svelte-1u1xks8:not(:first-child){border-top:none}.list-item.svelte-1u1xks8:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-item.svelte-1u1xks8:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.hoverable.svelte-1u1xks8:hover{cursor:pointer;background:var(--spectrum-global-color-gray-75)}.left.svelte-1u1xks8,.right.svelte-1u1xks8{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-xl)}.left.svelte-1u1xks8{width:0;flex:1 1 auto}.right.svelte-1u1xks8{flex:0 0 auto}.list-item.svelte-1u1xks8 .spectrum-Icon,.list-item.svelte-1u1xks8 .spectrum-Avatar{flex:0 0 auto}.list-item.svelte-1u1xks8 .spectrum-Body{color:var(--spectrum-global-color-gray-900)}.list-item.svelte-1u1xks8 .spectrum-Body{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}");Gt(".icon-side-nav.svelte-krsn3q{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding:var(--spacing-s);gap:var(--spacing-xs)}");Gt(".icon-side-nav-item.svelte-12yq719{width:36px;height:36px;display:grid;place-items:center;border-radius:4px;position:relative;cursor:pointer;transition:background 130ms ease-out}.icon-side-nav-item.svelte-12yq719:hover svg,.active.svelte-12yq719 svg{color:var(--spectrum-global-color-gray-900)}.active.svelte-12yq719{background:var(--spectrum-global-color-gray-300)}.tooltip.svelte-12yq719{position:absolute;pointer-events:none;left:calc(100% - 4px);top:50%;white-space:nowrap;transform:translateY(-50%);z-index:1}");Gt('.spectrum-Slider {\n --spectrum-slider-handle-border-size: var(--spectrum-slider-m-handle-border-size, var(--spectrum-alias-border-size-thick));\n --spectrum-slider-handle-border-size-down: var(--spectrum-slider-m-handle-border-size-down, var(--spectrum-global-dimension-size-75));\n --spectrum-slider-track-border-radius: var(--spectrum-slider-m-track-border-radius, var(--spectrum-global-dimension-static-size-10));\n --spectrum-slider-track-height: var(--spectrum-slider-m-track-height, var(--spectrum-alias-border-size-thick));\n --spectrum-slider-handle-gap: var(--spectrum-slider-m-handle-gap, var(--spectrum-alias-border-size-thicker));\n --spectrum-slider-animation-duration: var(--spectrum-slider-m-animation-duration, var(--spectrum-global-animation-duration-100));\n --spectrum-slider-height: var(--spectrum-slider-m-height, var(--spectrum-alias-item-height-m));\n --spectrum-slider-min-width: var(--spectrum-slider-m-min-width, var(--spectrum-global-dimension-size-1250));\n --spectrum-slider-handle-width: var(--spectrum-slider-m-handle-width, var(--spectrum-alias-item-control-2-size-l));\n --spectrum-slider-handle-height: var(--spectrum-slider-m-handle-height, var(--spectrum-alias-item-control-2-size-l));\n --spectrum-slider-handle-border-radius: var(--spectrum-slider-m-handle-border-radius, var(--spectrum-global-dimension-size-100));\n --spectrum-slider-label-gap-x: var(--spectrum-slider-m-label-gap-x, var(--spectrum-alias-item-control-gap-m));\n --spectrum-slider-tick-mark-width: var(--spectrum-slider-tick-m-mark-width, var(--spectrum-alias-border-size-thick));\n --spectrum-slider-tick-mark-border-radius: var(--spectrum-slider-tick-m-mark-border-radius, var(--spectrum-alias-border-radius-xsmall));\n --spectrum-slider-tick-mark-height: var(--spectrum-slider-tick-m-mark-height, var(--spectrum-global-dimension-size-125));\n --spectrum-slider-label-gap-y: var(--spectrum-global-dimension-size-85);\n\n --spectrum-slider-controls-margin: calc(var(--spectrum-slider-handle-width) / 2);\n --spectrum-slider-track-margin-offset: calc(var(--spectrum-slider-controls-margin) * -1);\n\n --spectrum-slider-handle-margin-top: calc(var(--spectrum-slider-handle-width) / -2);\n --spectrum-slider-handle-margin-left: calc(var(--spectrum-slider-handle-width) / -2);\n\n --spectrum-slider-track-handleoffset: var(--spectrum-slider-handle-gap);\n --spectrum-slider-track-middle-handleoffset: calc(var(--spectrum-slider-handle-gap) + var(--spectrum-slider-handle-width) / 2);\n\n --spectrum-slider-input-top: calc(var(--spectrum-slider-handle-margin-top) / 4);\n --spectrum-slider-input-left: calc(var(--spectrum-slider-handle-margin-left) / 4);\n\n --spectrum-slider-ramp-margin-top: 0;\n --spectrum-slider-range-track-reset: 0;\n --spectrum-slide-label-text-size: var(--spectrum-global-dimension-font-size-75);\n --spectrum-slide-label-text-line-height: var(--spectrum-global-font-line-height-small, 1.3);\n}\n\n.spectrum-Slider {\n position: relative;\n z-index: 1;\n display: block;\n min-height: var(--spectrum-slider-height);\n min-width: var(--spectrum-slider-min-width);\n\n -webkit-user-select: none;\n\n -moz-user-select: none;\n\n -ms-user-select: none;\n\n user-select: none;\n}\n\n[dir="ltr"] .spectrum-Slider-controls {\n margin-left: var(--spectrum-slider-controls-margin);\n}\n\n[dir="rtl"] .spectrum-Slider-controls {\n margin-right: var(--spectrum-slider-controls-margin);\n}\n\n.spectrum-Slider-controls {\n display: inline-block;\n box-sizing: border-box;\n\n position: relative;\n z-index: auto;\n width: calc(100% - var(--spectrum-slider-controls-margin) * 2);\n min-height: var(--spectrum-slider-height);\n\n vertical-align: top;\n}\n\n[dir="ltr"] .spectrum-Slider-track,[dir="ltr"] \n.spectrum-Slider-fill {\n left: 0;\n}\n\n[dir="rtl"] .spectrum-Slider-track,[dir="rtl"] \n.spectrum-Slider-fill {\n right: 0;\n}\n\n[dir="ltr"] .spectrum-Slider-track,[dir="ltr"] \n.spectrum-Slider-fill {\n right: auto;\n}\n\n[dir="rtl"] .spectrum-Slider-track,[dir="rtl"] \n.spectrum-Slider-fill {\n left: auto;\n}\n\n.spectrum-Slider-track,\n.spectrum-Slider-fill {\n height: var(--spectrum-slider-track-height);\n box-sizing: border-box;\n\n position: absolute;\n z-index: 1;\n top: calc(var(--spectrum-slider-height) / 2);\n\n margin-top: calc(var(--spectrum-slider-track-height) / -2);\n\n pointer-events: none;\n}\n\n[dir="ltr"] .spectrum-Slider-track,[dir="ltr"] \n.spectrum-Slider-fill {\n padding-left: 0;\n padding-right: var(--spectrum-slider-track-handleoffset);\n}\n\n[dir="rtl"] .spectrum-Slider-track,[dir="rtl"] \n.spectrum-Slider-fill {\n padding-right: 0;\n padding-left: var(--spectrum-slider-track-handleoffset);\n}\n\n[dir="ltr"] .spectrum-Slider-track,[dir="ltr"] \n.spectrum-Slider-fill {\n margin-left: var(--spectrum-slider-track-margin-offset);\n}\n\n[dir="rtl"] .spectrum-Slider-track,[dir="rtl"] \n.spectrum-Slider-fill {\n margin-right: var(--spectrum-slider-track-margin-offset);\n}\n\n.spectrum-Slider-track,\n.spectrum-Slider-fill {\n padding-top: 0;\n padding-bottom: 0;\n}\n\n.spectrum-Slider-track::before, .spectrum-Slider-fill::before {\n content: "";\n display: block;\n height: 100%;\n\n border-radius: var(--spectrum-slider-track-border-radius);\n }\n\n[dir="ltr"] .spectrum-Slider-fill {\n margin-left: 0;\n}\n\n[dir="rtl"] .spectrum-Slider-fill {\n margin-right: 0;\n}\n\n[dir="ltr"] .spectrum-Slider-fill {\n padding-left: calc(var(--spectrum-slider-controls-margin) + var(--spectrum-slider-track-handleoffset));\n padding-right: 0;\n}\n\n[dir="rtl"] .spectrum-Slider-fill {\n padding-right: calc(var(--spectrum-slider-controls-margin) + var(--spectrum-slider-track-handleoffset));\n padding-left: 0;\n}\n\n.spectrum-Slider-fill {\n padding-top: 0;\n padding-bottom: 0;\n}\n\n[dir="ltr"] .spectrum-Slider-fill--right {\n padding-left: 0;\n padding-right: calc(var(--spectrum-slider-controls-margin) + var(--spectrum-slider-track-handleoffset));\n}\n\n[dir="rtl"] .spectrum-Slider-fill--right {\n padding-right: 0;\n padding-left: calc(var(--spectrum-slider-controls-margin) + var(--spectrum-slider-track-handleoffset));\n}\n\n.spectrum-Slider-fill--right {\n padding-top: 0;\n padding-bottom: 0;\n}\n\n[dir="ltr"] .spectrum-Slider-track ~ .spectrum-Slider-track {\n left: auto;\n}\n\n[dir="rtl"] .spectrum-Slider-track ~ .spectrum-Slider-track {\n right: auto;\n}\n\n[dir="ltr"] .spectrum-Slider-track ~ .spectrum-Slider-track {\n right: var(--spectrum-slider-range-track-reset);\n}\n\n[dir="rtl"] .spectrum-Slider-track ~ .spectrum-Slider-track {\n left: var(--spectrum-slider-range-track-reset);\n}\n\n[dir="ltr"] .spectrum-Slider-track ~ .spectrum-Slider-track {\n padding-left: var(--spectrum-slider-track-handleoffset);\n padding-right: 0;\n}\n\n[dir="rtl"] .spectrum-Slider-track ~ .spectrum-Slider-track {\n padding-right: var(--spectrum-slider-track-handleoffset);\n padding-left: 0;\n}\n\n[dir="ltr"] .spectrum-Slider-track ~ .spectrum-Slider-track {\n margin-left: var(--spectrum-slider-range-track-reset);\n}\n\n[dir="rtl"] .spectrum-Slider-track ~ .spectrum-Slider-track {\n margin-right: var(--spectrum-slider-range-track-reset);\n}\n\n[dir="ltr"] .spectrum-Slider-track ~ .spectrum-Slider-track {\n margin-right: var(--spectrum-slider-track-margin-offset);\n}\n\n[dir="rtl"] .spectrum-Slider-track ~ .spectrum-Slider-track {\n margin-left: var(--spectrum-slider-track-margin-offset);\n}\n\n.spectrum-Slider-track ~ .spectrum-Slider-track {\n padding-top: 0;\n padding-bottom: 0;\n}\n\n.spectrum-Slider--range .spectrum-Slider-value {\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n }\n\n[dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track:first-of-type {\n padding-left: 0;\n padding-right: var(--spectrum-slider-track-handleoffset);\n}\n\n[dir="rtl"] .spectrum-Slider--range .spectrum-Slider-track:first-of-type {\n padding-right: 0;\n padding-left: var(--spectrum-slider-track-handleoffset);\n}\n\n[dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track:first-of-type {\n left: var(--spectrum-slider-range-track-reset);\n}\n\n[dir="rtl"] .spectrum-Slider--range .spectrum-Slider-track:first-of-type {\n right: var(--spectrum-slider-range-track-reset);\n}\n\n[dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track:first-of-type {\n right: auto;\n}\n\n[dir="rtl"] .spectrum-Slider--range .spectrum-Slider-track:first-of-type {\n left: auto;\n}\n\n[dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track:first-of-type {\n margin-left: var(--spectrum-slider-track-margin-offset);\n}\n\n[dir="rtl"] .spectrum-Slider--range .spectrum-Slider-track:first-of-type {\n margin-right: var(--spectrum-slider-track-margin-offset);\n}\n\n.spectrum-Slider--range .spectrum-Slider-track:first-of-type {\n padding-top: 0;\n padding-bottom: 0;\n }\n\n[dir="ltr"] [dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track,[dir="ltr"] [dir="rtl"] \n .spectrum-Slider--range .spectrum-Slider-track {\n left: auto;\n}\n\n[dir="rtl"] [dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track,[dir="rtl"] [dir="rtl"] \n .spectrum-Slider--range .spectrum-Slider-track {\n right: auto;\n}\n\n[dir="ltr"] [dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track,[dir="ltr"] [dir="rtl"] \n .spectrum-Slider--range .spectrum-Slider-track {\n right: auto;\n}\n\n[dir="rtl"] [dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track,[dir="rtl"] [dir="rtl"] \n .spectrum-Slider--range .spectrum-Slider-track {\n left: auto;\n}\n\n[dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track,[dir="rtl"] \n .spectrum-Slider--range .spectrum-Slider-track {\n padding-top: 0;\n padding-bottom: 0;\n padding-left: var(--spectrum-slider-track-middle-handleoffset);\n padding-right: var(--spectrum-slider-track-middle-handleoffset);\n margin-left: var(--spectrum-slider-range-track-reset);\n margin-right: var(--spectrum-slider-range-track-reset);\n margin-top: var(--spectrum-slider-range-track-reset);\n margin-bottom: var(--spectrum-slider-range-track-reset);\n }\n\n[dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track:last-of-type {\n padding-left: var(--spectrum-slider-track-handleoffset);\n padding-right: 0;\n}\n\n[dir="rtl"] .spectrum-Slider--range .spectrum-Slider-track:last-of-type {\n padding-right: var(--spectrum-slider-track-handleoffset);\n padding-left: 0;\n}\n\n[dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track:last-of-type {\n left: auto;\n}\n\n[dir="rtl"] .spectrum-Slider--range .spectrum-Slider-track:last-of-type {\n right: auto;\n}\n\n[dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track:last-of-type {\n right: var(--spectrum-slider-range-track-reset);\n}\n\n[dir="rtl"] .spectrum-Slider--range .spectrum-Slider-track:last-of-type {\n left: var(--spectrum-slider-range-track-reset);\n}\n\n[dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track:last-of-type {\n margin-right: var(--spectrum-slider-track-margin-offset);\n}\n\n[dir="rtl"] .spectrum-Slider--range .spectrum-Slider-track:last-of-type {\n margin-left: var(--spectrum-slider-track-margin-offset);\n}\n\n.spectrum-Slider--range .spectrum-Slider-track:last-of-type {\n padding-top: 0;\n padding-bottom: 0;\n }\n\n[dir="ltr"] .spectrum-Slider-ramp {\n left: var(--spectrum-slider-track-margin-offset);\n}\n\n[dir="rtl"] .spectrum-Slider-ramp {\n right: var(--spectrum-slider-track-margin-offset);\n}\n\n[dir="ltr"] .spectrum-Slider-ramp {\n right: var(--spectrum-slider-track-margin-offset);\n}\n\n[dir="rtl"] .spectrum-Slider-ramp {\n left: var(--spectrum-slider-track-margin-offset);\n}\n\n.spectrum-Slider-ramp {\n margin-top: var(--spectrum-slider-ramp-margin-top);\n height: var(--spectrum-slider-ramp-track-height, var(--spectrum-global-dimension-static-size-200));\n\n position: absolute;\n top: calc(var(--spectrum-slider-ramp-track-height, var(--spectrum-global-dimension-static-size-200)) / 2);\n}\n\n[dir="rtl"] .spectrum-Slider-ramp svg { transform: matrix(-1, 0, 0, 1, 0, 0) ; }\n\n.spectrum-Slider-ramp svg {\n width: 100%;\n height: 100%;\n }\n\n[dir="ltr"] .spectrum-Slider-handle {\n left: 0;\n}\n\n[dir="rtl"] .spectrum-Slider-handle {\n right: 0;\n}\n\n[dir="ltr"] .spectrum-Slider-handle {\n margin-left: calc(var(--spectrum-slider-handle-width) / -2);\n margin-right: 0;\n}\n\n[dir="rtl"] .spectrum-Slider-handle {\n margin-right: calc(var(--spectrum-slider-handle-width) / -2);\n margin-left: 0;\n}\n\n.spectrum-Slider-handle {\n position: absolute;\n top: calc(var(--spectrum-slider-height) / 2);\n z-index: 2;\n\n display: inline-block;\n box-sizing: border-box;\n\n width: var(--spectrum-slider-handle-width);\n height: var(--spectrum-slider-handle-height);\n\n margin-top: var(--spectrum-slider-handle-margin-top);\n\n margin-bottom: 0;\n\n border-width: var(--spectrum-slider-handle-border-size);\n border-style: solid;\n\n border-radius: var(--spectrum-slider-handle-border-radius);\n\n transition: border-width var(--spectrum-slider-animation-duration) ease-in-out;\n\n outline: none;\n}\n\n.spectrum-Slider-handle:active,\n .spectrum-Slider-handle.is-focused,\n .spectrum-Slider-handle.is-dragged {\n border-width: var(--spectrum-slider-handle-border-size-down);\n }\n\n.spectrum-Slider-handle:active,\n .spectrum-Slider-handle.is-focused,\n .spectrum-Slider-handle.is-dragged,\n .spectrum-Slider-handle.is-tophandle {\n z-index: 3;\n }\n\n.spectrum-Slider-handle:before {\n content: " ";\n display: block;\n position: absolute;\n left: 50%;\n top: 50%;\n\n transition: box-shadow var(--spectrum-global-animation-duration-100, 130ms)\n ease-out,\n width var(--spectrum-global-animation-duration-100, 130ms) ease-out,\n height var(--spectrum-global-animation-duration-100, 130ms) ease-out;\n\n width: var(--spectrum-slider-handle-width);\n height: var(--spectrum-slider-handle-height);\n\n transform: translate(-50%, -50%);\n\n border-radius: 100%;\n }\n\n.spectrum-Slider-handle.is-focused:before {\n width: calc(var(--spectrum-slider-handle-width) + var(--spectrum-alias-focus-ring-gap, var(--spectrum-global-dimension-static-size-25)) * 2);\n height: calc(var(--spectrum-slider-handle-height) + var(--spectrum-alias-focus-ring-gap, var(--spectrum-global-dimension-static-size-25)) * 2);\n }\n\n[dir="ltr"] .spectrum-Slider-input {\n left: var(--spectrum-slider-input-left);\n}\n\n[dir="rtl"] .spectrum-Slider-input {\n right: var(--spectrum-slider-input-left);\n}\n\n.spectrum-Slider-input {\n margin: 0;\n\n width: var(--spectrum-slider-handle-width);\n height: var(--spectrum-slider-handle-height);\n padding: 0;\n position: absolute;\n top: var(--spectrum-slider-input-top);\n overflow: hidden;\n opacity: 0.000001;\n cursor: default;\n -webkit-appearance: none;\n border: 0;\n pointer-events: none;\n}\n\n.spectrum-Slider-input:focus {\n outline: none;\n }\n\n.spectrum-Slider-labelContainer {\n display: -ms-flexbox;\n display: flex;\n position: relative;\n\n width: auto;\n\n padding-top: var(--spectrum-fieldlabel-m-padding-top, var(--spectrum-global-dimension-size-50));\n\n font-size: var(--spectrum-slide-label-text-size);\n line-height: var(--spectrum-slide-label-text-line-height);\n}\n\n[dir="ltr"] .spectrum-Slider-label {\n padding-left: 0;\n}\n\n[dir="rtl"] .spectrum-Slider-label {\n padding-right: 0;\n}\n\n.spectrum-Slider-label {\n -ms-flex-positive: 1;\n flex-grow: 1;\n}\n\n[dir="ltr"] .spectrum-Slider-value {\n padding-right: 0;\n}\n\n[dir="rtl"] .spectrum-Slider-value {\n padding-left: 0;\n}\n\n[dir="ltr"] .spectrum-Slider-value {\n text-align: right;\n}\n\n[dir="rtl"] .spectrum-Slider-value {\n text-align: left;\n}\n\n.spectrum-Slider-value {\n -ms-flex-positive: 0;\n flex-grow: 0;\n cursor: default;\n font-feature-settings: "tnum";\n}\n\n[dir="ltr"] .spectrum-Slider-value {\n margin-left: var(--spectrum-slider-label-gap-x);\n}\n\n[dir="rtl"] .spectrum-Slider-value {\n margin-right: var(--spectrum-slider-label-gap-x);\n}\n\n.spectrum-Slider-ticks {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n\n z-index: 0;\n\n margin: 0 var(--spectrum-slider-track-margin-offset);\n margin-top: calc(var(--spectrum-slider-tick-mark-height) + var(--spectrum-slider-track-height) / 2);\n}\n\n.spectrum-Slider-tick {\n position: relative;\n\n width: var(--spectrum-slider-tick-mark-width);\n}\n\n[dir="ltr"] .spectrum-Slider-tick:after {\n left: calc(50% - var(--spectrum-slider-tick-mark-width) / 2);\n}\n\n[dir="rtl"] .spectrum-Slider-tick:after {\n right: calc(50% - var(--spectrum-slider-tick-mark-width) / 2);\n}\n\n.spectrum-Slider-tick:after {\n display: block;\n position: absolute;\n top: 0;\n content: "";\n width: var(--spectrum-slider-tick-mark-width);\n height: var(--spectrum-slider-tick-mark-height);\n\n border-radius: var(--spectrum-slider-tick-mark-border-radius);\n }\n\n.spectrum-Slider-tick .spectrum-Slider-tickLabel {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n\n margin-top: calc(var(--spectrum-slider-label-gap-y) + var(--spectrum-slider-tick-mark-height));\n\n margin-bottom: 0;\n margin-left: calc(var(--spectrum-slider-label-gap-x) * -1);\n margin-right: calc(var(--spectrum-slider-label-gap-x) * -1);\n\n font-size: var(--spectrum-slide-label-text-size);\n line-height: var(--spectrum-slide-label-text-line-height);\n }\n\n.spectrum-Slider-tick:first-of-type .spectrum-Slider-tickLabel, .spectrum-Slider-tick:last-of-type .spectrum-Slider-tickLabel {\n display: block;\n position: absolute;\n margin-left: 0;\n margin-right: 0;\n }\n\n[dir="ltr"] .spectrum-Slider-tick:first-of-type .spectrum-Slider-tickLabel {\n left: 0;\n}\n\n[dir="rtl"] .spectrum-Slider-tick:first-of-type .spectrum-Slider-tickLabel {\n right: 0;\n}\n\n[dir="ltr"] .spectrum-Slider-tick:last-of-type .spectrum-Slider-tickLabel {\n right: 0;\n}\n\n[dir="rtl"] .spectrum-Slider-tick:last-of-type .spectrum-Slider-tickLabel {\n left: 0;\n}\n\n.spectrum-Slider.is-disabled {\n cursor: default;\n }\n\n.spectrum-Slider.is-disabled .spectrum-Slider-handle {\n cursor: default;\n pointer-events: none;\n }\n\n.spectrum-Slider {\n --spectrum-slider-m-focus-ring-size-key-focus: var(--spectrum-alias-focus-ring-size, var(--spectrum-global-dimension-static-size-25));\n --spectrum-slider-m-handle-border-color-key-focus: var(\n --spectrum-global-color-gray-800\n );\n --spectrum-slider-m-handle-focus-ring-color-key-focus: var(--spectrum-alias-focus-color, var(--spectrum-global-color-blue-400));\n --spectrum-slider-m-label-text-color: var(--spectrum-alias-label-text-color, var(--spectrum-global-color-gray-700));\n\n --spectrum-slider-m-label-text-color-disabled: var(--spectrum-alias-text-color-disabled, var(--spectrum-global-color-gray-500));\n}\n\n.spectrum-Slider-track::before {\n background: var(--spectrum-slider-m-track-color, var(--spectrum-global-color-gray-400));\n }\n\n.spectrum-Slider-labelContainer {\n color: var(--spectrum-slider-m-label-text-color);\n}\n\n.spectrum-Slider--filled .spectrum-Slider-track:first-child::before {\n background: var(--spectrum-slider-m-track-fill-color, var(--spectrum-global-color-gray-700));\n }\n\n.spectrum-Slider-fill::before {\n background: var(--spectrum-slider-m-track-fill-color, var(--spectrum-global-color-gray-700));\n }\n\n.spectrum-Slider-ramp path {\n fill: var(--spectrum-slider-m-track-color, var(--spectrum-global-color-gray-400));\n }\n\n.spectrum-Slider-handle {\n border-color: var(--spectrum-slider-m-handle-border-color, var(--spectrum-global-color-gray-700));\n background: var(--spectrum-slider-m-handle-background-color, var(--spectrum-alias-background-color-transparent));\n}\n\n.spectrum-Slider-handle:hover {\n border-color: var(--spectrum-slider-m-handle-border-color-hover, var(--spectrum-global-color-gray-800));\n }\n\n.spectrum-Slider-handle.is-focused {\n border-color: var(--spectrum-slider-m-handle-border-color-key-focus, var(--spectrum-global-color-gray-800));\n }\n\n.spectrum-Slider-handle.is-focused:before {\n box-shadow: 0 0 0 var(--spectrum-slider-m-focus-ring-size-key-focus, var(--spectrum-alias-focus-ring-size))\n var(--spectrum-slider-m-handle-focus-ring-color-key-focus);\n }\n\n.spectrum-Slider-handle:active,\n .spectrum-Slider-handle.is-dragged {\n border-color: var(--spectrum-slider-m-handle-border-color-down, var(--spectrum-global-color-gray-800));\n }\n\n.spectrum-Slider--ramp .spectrum-Slider-handle {\n box-shadow: 0 0 0 4px var(--spectrum-alias-background-color-default, var(--spectrum-global-color-gray-100));\n }\n\n.spectrum-Slider-input {\n background: transparent;\n}\n\n.spectrum-Slider-tick:after {\n background-color: var(--spectrum-slider-tick-m-mark-color, var(--spectrum-alias-track-color-default));\n }\n\n.spectrum-Slider-handle.is-dragged {\n border-color: var(--spectrum-slider-m-handle-border-color-down, var(--spectrum-global-color-gray-800));\n background: var(--spectrum-slider-m-handle-background-color-down, var(--spectrum-alias-background-color-transparent));\n }\n\n.spectrum-Slider--range .spectrum-Slider-track:not(:first-of-type):not(:last-of-type):before {\n background: var(--spectrum-slider-m-track-fill-color, var(--spectrum-global-color-gray-700));\n }\n\n.spectrum-Slider.is-disabled .spectrum-Slider-labelContainer {\n color: var(--spectrum-slider-m-label-text-color-disabled);\n }\n\n.spectrum-Slider.is-disabled .spectrum-Slider-handle {\n border-color: var(--spectrum-slider-m-handle-border-color-disabled, var(--spectrum-global-color-gray-400));\n background: var(--spectrum-alias-background-color-default, var(--spectrum-global-color-gray-100));\n }\n\n.spectrum-Slider.is-disabled .spectrum-Slider-handle:hover,\n .spectrum-Slider.is-disabled .spectrum-Slider-handle:active {\n border-color: var(--spectrum-slider-m-handle-border-color-disabled, var(--spectrum-global-color-gray-400));\n background: var(--spectrum-slider-m-handle-background-color, var(--spectrum-alias-background-color-transparent));\n }\n\n.spectrum-Slider.is-disabled .spectrum-Slider-track::before {\n background: var(--spectrum-slider-m-track-color-disabled, var(--spectrum-global-color-gray-300));\n }\n\n.spectrum-Slider.is-disabled.spectrum-Slider--filled .spectrum-Slider-track:first-child::before {\n background: var(--spectrum-slider-m-track-fill-color-disabled, var(--spectrum-global-color-gray-300));\n }\n\n.spectrum-Slider.is-disabled .spectrum-Slider-fill::before {\n background: var(--spectrum-slider-m-track-fill-color-disabled, var(--spectrum-global-color-gray-300));\n }\n\n.spectrum-Slider.is-disabled .spectrum-Slider-ramp path {\n fill: var(--spectrum-slider-ramp-track-color-disabled, var(--spectrum-global-color-gray-200));\n }\n\n.spectrum-Slider.is-disabled.spectrum-Slider--range .spectrum-Slider-track:not(:first-of-type):not(:last-of-type):before {\n background: var(--spectrum-slider-m-track-fill-color-disabled, var(--spectrum-global-color-gray-300));\n }\n');Gt('div.svelte-13v9q49{display:grid;place-items:center}input.svelte-13v9q49{width:100%;padding:0;margin:0;-webkit-appearance:none;background:transparent}input.svelte-13v9q49::-webkit-slider-thumb{-webkit-appearance:none}input.svelte-13v9q49:focus{outline:none}input[type="range"].svelte-13v9q49::-webkit-slider-thumb{-webkit-appearance:none;border:2px solid var(--spectrum-global-color-gray-700);height:16px;width:16px;border-radius:50%;background:var(--background);cursor:pointer;transition:background 130ms ease-out;margin-top:-7px}input[type="range"].svelte-13v9q49::-moz-range-thumb{border:2px solid var(--spectrum-global-color-gray-700);height:12px;width:12px;border-radius:50%;background:var(--background);cursor:pointer;transition:background 130ms ease-out}input[type="range"].svelte-13v9q49::-webkit-slider-runnable-track{width:100%;height:2px;cursor:pointer;background:var(--spectrum-global-color-gray-300);border-radius:2px}input[type="range"].svelte-13v9q49::-moz-range-track{width:100%;height:2px;cursor:pointer;background:var(--spectrum-global-color-gray-300);border-radius:2px}');Gt('.spectrum-Accordion {\n --spectrum-accordion-item-title-padding-y: var(\n --spectrum-global-dimension-size-150\n );\n --spectrum-accordion-animation-duration: var(--spectrum-global-animation-duration-100, 130ms);\n}\n\n.spectrum-Accordion {\n display: block;\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\n[dir="ltr"] .spectrum-Accordion-itemIndicator {\n left: var(--spectrum-accordion-item-padding-x, var(--spectrum-global-dimension-size-225));\n}\n\n[dir="rtl"] .spectrum-Accordion-itemIndicator {\n right: var(--spectrum-accordion-item-padding-x, var(--spectrum-global-dimension-size-225));\n}\n\n[dir="rtl"] .spectrum-Accordion-itemIndicator { transform: matrix(-1, 0, 0, 1, 0, 0) ; }\n\n.spectrum-Accordion-itemIndicator {\n display: block;\n\n position: absolute;\n top: calc(50% - var(--spectrum-accordion-icon-height, var(--spectrum-global-dimension-size-125)) / 2);\n\n transition: transform ease var(--spectrum-accordion-animation-duration);\n}\n\n.spectrum-Accordion-item {\n z-index: inherit;\n position: relative;\n\n display: list-item;\n margin: 0;\n\n border-bottom: var(--spectrum-accordion-item-border-size, var(--spectrum-alias-border-size-thin)) solid transparent;\n}\n\n.spectrum-Accordion-item:first-of-type {\n border-top: var(--spectrum-accordion-item-border-size, var(--spectrum-alias-border-size-thin)) solid\n transparent;\n }\n\n.spectrum-Accordion-itemHeading {\n margin: 0;\n position: relative;\n box-sizing: border-box;\n}\n\n[dir="ltr"] .spectrum-Accordion-itemHeader {\n padding-left: calc(var(--spectrum-accordion-item-padding-x, var(--spectrum-global-dimension-size-225)) + var(--spectrum-accordion-icon-height, var(--spectrum-global-dimension-size-125)) + var(--spectrum-accordion-icon-gap, var(--spectrum-global-dimension-size-100)) + var(--spectrum-accordion-item-border-left-size, var(--spectrum-alias-border-size-thick)));\n}\n\n[dir="rtl"] .spectrum-Accordion-itemHeader {\n padding-right: calc(var(--spectrum-accordion-item-padding-x, var(--spectrum-global-dimension-size-225)) + var(--spectrum-accordion-icon-height, var(--spectrum-global-dimension-size-125)) + var(--spectrum-accordion-icon-gap, var(--spectrum-global-dimension-size-100)) + var(--spectrum-accordion-item-border-left-size, var(--spectrum-alias-border-size-thick)));\n}\n\n[dir="ltr"] .spectrum-Accordion-itemHeader {\n padding-right: var(--spectrum-accordion-item-padding-x, var(--spectrum-global-dimension-size-225));\n}\n\n[dir="rtl"] .spectrum-Accordion-itemHeader {\n padding-left: var(--spectrum-accordion-item-padding-x, var(--spectrum-global-dimension-size-225));\n}\n\n[dir="ltr"] .spectrum-Accordion-itemHeader {\n text-align: left;\n}\n\n[dir="rtl"] .spectrum-Accordion-itemHeader {\n text-align: right;\n}\n\n.spectrum-Accordion-itemHeader {\n position: relative;\n\n display: -ms-flexbox;\n\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: start;\n justify-content: flex-start;\n\n box-sizing: border-box;\n padding-top: var(--spectrum-accordion-item-title-padding-y);\n padding-bottom: var(--spectrum-accordion-item-title-padding-y);\n margin: 0;\n\n min-height: calc(100% - var(--spectrum-accordion-item-border-size, var(--spectrum-alias-border-size-thin)));\n\n font-size: var(--spectrum-accordion-item-title-text-size, var(--spectrum-global-dimension-font-size-50));\n line-height: var(--spectrum-accordion-text-line-height, var(--spectrum-alias-component-text-line-height));\n text-transform: uppercase;\n letter-spacing: calc(var(--spectrum-accordion-item-title-tracking, var(--spectrum-global-font-letter-spacing-medium)) / 100);\n\n text-overflow: ellipsis;\n cursor: pointer;\n font-weight: 500;\n -webkit-appearance: none;\n appearance: none;\n background-color: inherit;\n border: 0;\n font-family: inherit;\n width: 100%;\n}\n\n.spectrum-Accordion-itemHeader:focus {\n outline: none;\n }\n\n[dir="ltr"] .spectrum-Accordion-itemHeader:focus::after {\n left: 0;\n}\n\n[dir="rtl"] .spectrum-Accordion-itemHeader:focus::after {\n right: 0;\n}\n\n.spectrum-Accordion-itemHeader:focus::after {\n content: "";\n\n position: absolute;\n top: calc(-1 * var(--spectrum-accordion-item-border-size, var(--spectrum-alias-border-size-thin)));\n bottom: calc(-1 * var(--spectrum-accordion-item-border-size, var(--spectrum-alias-border-size-thin)));\n\n width: var(--spectrum-accordion-item-border-left-size, var(--spectrum-alias-border-size-thick));\n }\n\n.spectrum-Accordion-itemContent {\n padding-top: 0;\n padding-bottom: var(--spectrum-accordion-item-content-padding, var(--spectrum-global-dimension-size-200));\n padding-left: var(--spectrum-accordion-item-content-padding, var(--spectrum-global-dimension-size-200));\n padding-right: var(--spectrum-accordion-item-content-padding, var(--spectrum-global-dimension-size-200));\n display: none;\n}\n\n[dir="ltr"] .spectrum-Accordion-item.is-open > .spectrum-Accordion-itemHeading > .spectrum-Accordion-itemIndicator { transform: rotate(90deg); }\n\n[dir="rtl"] .spectrum-Accordion-item.is-open > .spectrum-Accordion-itemHeading > .spectrum-Accordion-itemIndicator { transform: matrix(-1, 0, 0, 1, 0, 0) rotate(90deg); }\n\n[dir="ltr"] .spectrum-Accordion-item.is-open > .spectrum-Accordion-itemIndicator { transform: rotate(90deg); }\n\n[dir="rtl"] .spectrum-Accordion-item.is-open > .spectrum-Accordion-itemIndicator { transform: matrix(-1, 0, 0, 1, 0, 0) rotate(90deg); }\n\n.spectrum-Accordion-item.is-open > .spectrum-Accordion-itemHeader::after {\n height: calc(100% - var(--spectrum-accordion-item-border-size, var(--spectrum-alias-border-size-thin)));\n }\n\n.spectrum-Accordion-item.is-open > .spectrum-Accordion-itemContent {\n display: block;\n }\n\n.spectrum-Accordion-item.is-disabled .spectrum-Accordion-itemHeader {\n cursor: default;\n }\n\n.spectrum-Accordion-item {\n border-color: var(--spectrum-accordion-border-color, var(--spectrum-global-color-gray-300));\n}\n\n.spectrum-Accordion-itemIndicator {\n color: var(--spectrum-accordion-icon-color, var(--spectrum-global-color-gray-600));\n}\n\n.spectrum-Accordion-itemHeader {\n color: var(--spectrum-accordion-text-color, var(--spectrum-global-color-gray-700));\n}\n\n.spectrum-Accordion-itemHeader:hover {\n color: var(--spectrum-accordion-text-color-hover, var(--spectrum-global-color-gray-900));\n\n background-color: var(--spectrum-accordion-item-background-color-hover, var(--spectrum-global-color-gray-200));\n }\n\n.spectrum-Accordion-itemHeader:hover + .spectrum-Accordion-itemIndicator {\n color: var(--spectrum-accordion-icon-color-hover, var(--spectrum-alias-icon-color-hover));\n }\n\n.spectrum-Accordion-itemHeader.focus-ring:after {\n background-color: var(--spectrum-accordion-item-border-left-color-key-focus, var(--spectrum-alias-border-color-key-focus));\n }\n\n.spectrum-Accordion-item.is-open .spectrum-Accordion-itemHeader:hover {\n background-color: transparent;\n }\n\n.spectrum-Accordion-item.is-disabled .spectrum-Accordion-itemHeader,\n .spectrum-Accordion-item.is-disabled .spectrum-Accordion-itemHeader:hover,\n .spectrum-Accordion-item.is-disabled .spectrum-Accordion-itemHeader.focus-ring {\n color: var(--spectrum-accordion-text-color-disabled, var(--spectrum-global-color-gray-500));\n background-color: transparent;\n }\n\n.spectrum-Accordion-item.is-disabled .spectrum-Accordion-itemHeader + .spectrum-Accordion-itemIndicator {\n color: var(--spectrum-accordion-icon-color-disabled, var(--spectrum-alias-icon-color-disabled));\n }\n\n@media (forced-colors: active) {\n .spectrum-Accordion-itemHeader.focus-ring {\n outline: 3px solid CanvasText;\n }\n}\n');Gt(".spectrum-Accordion.svelte-11prom{margin-left:-20px}.spectrum-Accordion-item.svelte-11prom{border:none}.spectrum-Accordion-itemContent.svelte-11prom{width:97%;padding-left:30px}.spectrum-Accordion-itemHeader.svelte-11prom{text-transform:none;font-weight:bold;font-size:0.875rem}");function HC(e,t,r){const n=e.slice();n[10]=t[r];const i=n[7](n[10]);return n[11]=i,n}function OC(e){let t,r=e[2],n=[];for(let t=0;t<r.length;t+=1)n[t]=PC(HC(e,r,t));return{c(){for(let e=0;e<n.length;e+=1)n[e].c();t=Q()},m(e,r){for(let t=0;t<n.length;t+=1)n[t].m(e,r);U(e,t,r)},p(e,i){if(510&i){let a;for(r=e[2],a=0;a<r.length;a+=1){const o=HC(e,r,a);n[a]?n[a].p(o,i):(n[a]=PC(o),n[a].c(),n[a].m(t.parentNode,t))}for(;a<n.length;a+=1)n[a].d(1);n.length=r.length}},d(e){G(n,e),e&&X(t)}}}function PC(e){let t,r,n,i,a,o,s,l,c,u,p,d,h,m,g=e[6](e[10])+"";return{c(){t=Y("div"),r=Y("label"),n=Y("input"),o=J(),s=Y("span"),s.innerHTML='<svg class="spectrum-Icon spectrum-UIIcon-Checkmark100 spectrum-Checkbox-checkmark" focusable="false" aria-hidden="true"><use xlink:href="#spectrum-css-icon-Checkmark100"></use></svg>',l=J(),c=Y("span"),u=K(g),p=J(),ie(n,"type","checkbox"),ie(n,"class","spectrum-Checkbox-input svelte-urlxzj"),n.value=i=e[11],n.checked=a=e[1].includes(e[11]),n.disabled=e[4],ie(s,"class","spectrum-Checkbox-box"),ie(c,"class","spectrum-Checkbox-label"),ie(r,"class","spectrum-Checkbox spectrum-Checkbox--sizeM spectrum-FieldGroup-item"),ie(t,"title",d=e[6](e[10])),ie(t,"class","spectrum-Checkbox spectrum-FieldGroup-item svelte-urlxzj"),ye(t,"is-invalid",!!e[3]),ye(t,"readonly",e[5])},m(i,a){U(i,t,a),V(t,r),V(r,n),V(r,o),V(r,s),V(r,l),V(r,c),V(c,u),V(t,p),h||(m=ee(n,"change",e[8]),h=!0)},p(e,r){132&r&&i!==(i=e[11])&&(n.value=i),134&r&&a!==(a=e[1].includes(e[11]))&&(n.checked=a),16&r&&(n.disabled=e[4]),68&r&&g!==(g=e[6](e[10])+"")&&me(u,g),68&r&&d!==(d=e[6](e[10]))&&ie(t,"title",d),8&r&&ye(t,"is-invalid",!!e[3]),32&r&&ye(t,"readonly",e[5])},d(e){e&&X(t),h=!1,m()}}}function RC(e){let r,n,i=e[2]&&Array.isArray(e[2]),a=i&&OC(e);return{c(){r=Y("div"),a&&a.c(),ie(r,"class",n=A(`spectrum-FieldGroup spectrum-FieldGroup--${e[0]}`)+" svelte-urlxzj")},m(e,t){U(e,r,t),a&&a.m(r,null)},p(e,[t]){4&t&&(i=e[2]&&Array.isArray(e[2])),i?a?a.p(e,t):(a=OC(e),a.c(),a.m(r,null)):a&&(a.d(1),a=null),1&t&&n!==(n=A(`spectrum-FieldGroup spectrum-FieldGroup--${e[0]}`)+" svelte-urlxzj")&&ie(r,"class",n)},i:t,o:t,d(e){e&&X(r),a&&a.d()}}}function VC(e,t,r){let{direction:n="vertical"}=t,{value:i=[]}=t,{options:a=[]}=t,{error:o=null}=t,{disabled:s=!1}=t,{readonly:l=!1}=t,{getOptionLabel:c=(e=>e)}=t,{getOptionValue:u=(e=>e)}=t;const p=De();return e.$$set=e=>{"direction"in e&&r(0,n=e.direction),"value"in e&&r(1,i=e.value),"options"in e&&r(2,a=e.options),"error"in e&&r(3,o=e.error),"disabled"in e&&r(4,s=e.disabled),"readonly"in e&&r(5,l=e.readonly),"getOptionLabel"in e&&r(6,c=e.getOptionLabel),"getOptionValue"in e&&r(7,u=e.getOptionValue)},[n,i,a,o,s,l,c,u,e=>{const t=e.target.value;e.target.checked&&!i.includes(t)?p("change",[...i,t]):p("change",i.filter((e=>e!==t)))}]}Gt(".spectrum-Checkbox-input.svelte-urlxzj{opacity:0}.readonly.svelte-urlxzj{pointer-events:none}");class NC extends Ot{constructor(e){super(),Ht(this,e,VC,RC,c,{direction:0,value:1,options:2,error:3,disabled:4,readonly:5,getOptionLabel:6,getOptionValue:7})}}Gt('.field.svelte-hy829z{display:flex;gap:var(--spacing-m)}.file-view.svelte-hy829z{display:flex;gap:var(--spacing-l);align-items:center;border:1px solid var(--spectrum-alias-border-color);border-radius:var(--spectrum-global-dimension-size-50);padding:0px var(--spectrum-alias-item-padding-m)}input[type="file"].svelte-hy829z{display:none}.delete-button.svelte-hy829z{transition:all 0.3s;margin-left:10px;display:flex}.delete-button.svelte-hy829z:hover{cursor:pointer;color:var(--red)}.filesize.svelte-hy829z{white-space:nowrap}.filename.svelte-hy829z{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.preview.svelte-hy829z{height:1.5em}');Gt('.action-container.svelte-1e17jzv.svelte-1e17jzv{background-color:var(--spectrum-alias-background-color-primary);border-radius:0px;border:1px solid var(--spectrum-global-color-gray-300);transition:background-color 130ms ease-in-out, color 130ms ease-in-out,\n border-color 130ms ease-in-out;display:flex;flex-direction:row;align-items:center}.no-border.svelte-1e17jzv.svelte-1e17jzv{border-bottom:none}.action-container.svelte-1e17jzv.svelte-1e17jzv:last-child{border-bottom:1px solid var(--spectrum-global-color-gray-300) !important}.child.svelte-1e17jzv.svelte-1e17jzv{height:30px}.child.svelte-1e17jzv.svelte-1e17jzv:hover,.child.svelte-1e17jzv.svelte-1e17jzv:focus{background:var(--spectrum-global-color-gray-200)}.add-option.svelte-1e17jzv.svelte-1e17jzv{display:flex;flex-direction:row;align-items:center;padding:var(--spacing-m);gap:var(--spacing-m);cursor:pointer}.input-field.svelte-1e17jzv.svelte-1e17jzv{border:none;outline:none;background-color:transparent;width:100%;color:var(--text)}.child.svelte-1e17jzv input[type="text"].svelte-1e17jzv{padding-left:10px}.input-field.svelte-1e17jzv.svelte-1e17jzv:hover,.input-field.svelte-1e17jzv.svelte-1e17jzv:focus{background:var(--spectrum-global-color-gray-200)}.action-container.svelte-1e17jzv>.svelte-1e17jzv:nth-child(1){flex-grow:1;justify-content:center;display:flex}.action-container.svelte-1e17jzv>.svelte-1e17jzv:nth-child(2){flex-grow:1;display:flex;justify-content:center;align-items:center}.action-container.svelte-1e17jzv>.svelte-1e17jzv:nth-child(3){flex-grow:4;display:flex}.action-container.svelte-1e17jzv>.svelte-1e17jzv:nth-child(4){flex-grow:1;justify-content:center;display:flex}.circle.svelte-1e17jzv.svelte-1e17jzv{height:20px;width:20px;background-color:var(--color);border-radius:50%;display:inline-block;box-sizing:border-box}.circle-hover.svelte-1e17jzv.svelte-1e17jzv:hover{border:1px solid var(--spectrum-global-color-blue-400);cursor:pointer}.colors.svelte-1e17jzv.svelte-1e17jzv{display:grid;grid-template-columns:1fr 1fr 1fr;gap:var(--spacing-xl);justify-items:center;margin:var(--spacing-m)}');Gt(".bold.svelte-9amtlb{font-weight:bold;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--max-cell-width)}");Gt("code.svelte-e82i3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--max-cell-width)}");Gt(".error-message.svelte-wciay3{background:var(--spectrum-global-color-red-400);color:white;font-size:14px;padding:6px 16px;font-weight:500}");Gt(".fancy-field.svelte-17ywq9.svelte-17ywq9{background:var(--spectrum-global-color-gray-75);border:1px solid var(--spectrum-global-color-gray-300);border-radius:4px;box-sizing:border-box;transition:border-color 130ms ease-out, background 130ms ease-out,\n background 130ms ease-out;color:var(--spectrum-global-color-gray-800);--padding:16px;--height:64px}.fancy-field.compact.svelte-17ywq9.svelte-17ywq9{--padding:8px;--height:36px}.fancy-field.svelte-17ywq9.svelte-17ywq9:hover{border-color:var(--spectrum-global-color-gray-400)}.fancy-field.clickable.svelte-17ywq9.svelte-17ywq9:hover{background:var(--spectrum-global-color-gray-200);cursor:pointer}.fancy-field.focused.svelte-17ywq9.svelte-17ywq9{border-color:var(--spectrum-global-color-blue-400)}.fancy-field.error.svelte-17ywq9.svelte-17ywq9{border-color:var(--spectrum-global-color-red-400)}.fancy-field.disabled.svelte-17ywq9.svelte-17ywq9{background:var(--spectrum-global-color-gray-200);color:var(--spectrum-global-color-gray-400);border:1px solid var(--spectrum-global-color-gray-300);pointer-events:none}.content.svelte-17ywq9.svelte-17ywq9{position:relative;height:var(--height);padding:0 var(--padding)}.fancy-field.auto-height.svelte-17ywq9 .content.svelte-17ywq9{height:auto}.content.svelte-17ywq9.svelte-17ywq9,.field.svelte-17ywq9.svelte-17ywq9{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:var(--padding)}.field.svelte-17ywq9.svelte-17ywq9{flex:1 1 auto}.error-icon.svelte-17ywq9.svelte-17ywq9{flex:0 0 auto}.error-icon.svelte-17ywq9 .spectrum-Icon{fill:var(--spectrum-global-color-red-400)}");Gt("div.svelte-1yrw3p{font-size:14px;line-height:15px;font-weight:500;position:absolute;top:10px;color:var(--spectrum-global-color-gray-600);transition:font-size 130ms ease-out, top 130ms ease-out,\n transform 130ms ease-out}div.placeholder.svelte-1yrw3p{top:50%;font-size:15px;transform:translateY(-50%)}");Gt("input.svelte-1xkimai{width:100%;transition:transform 130ms ease-out;transform:translateY(9px);background:transparent;font-size:15px;line-height:17px;font-family:var(--font-sans);color:var(--spectrum-global-color-gray-900);outline:none;border:none;padding:0;margin:0}input.placeholder.svelte-1xkimai{transform:translateY(0);position:absolute;top:0;left:0;height:100%}.suffix.svelte-1xkimai{color:var(--spectrum-global-color-gray-600);transform:translateY(9px);font-size:15px;line-height:17px;font-family:var(--font-sans)}input.svelte-1xkimai:-webkit-autofill{border-radius:2px;-webkit-box-shadow:0 0 0 100px var(--spectrum-global-color-gray-300) inset;-webkit-text-fill-color:var(--spectrum-global-color-gray-900);transition:-webkit-box-shadow 130ms 200ms, background-color 0s 86400s;padding:3px 8px 4px 8px}");Gt("span.svelte-14uwzyc{pointer-events:none}.text.svelte-14uwzyc{font-size:15px;line-height:17px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}.text.compact.svelte-14uwzyc{font-size:13px;line-height:15px}.text.svelte-14uwzyc>*{font-size:inherit !important}");Gt("#picker-wrapper.svelte-18t7xb4 .spectrum-Picker{display:none}.value.svelte-18t7xb4{display:block;flex:1 1 auto;font-size:15px;line-height:17px;color:var(--spectrum-global-color-gray-900);transition:transform 130ms ease-out, opacity 130ms ease-out;opacity:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:0;transform:translateY(9px)}.align.svelte-18t7xb4{display:block;font-size:15px;line-height:17px;color:var(--spectrum-global-color-gray-900);transition:transform 130ms ease-out, opacity 130ms ease-out;transform:translateY(9px)}.arrow-alignment.svelte-18t7xb4{transform:translateY(-2px)}.value.placeholder.svelte-18t7xb4{transform:translateY(0);opacity:0;pointer-events:none;margin-top:0}");Gt("img.svelte-14pbp5s{width:22px}div.svelte-14pbp5s{font-size:var(--font-size-l)}");Gt(".fancy-form.svelte-1wjd4hl .fancy-field:not(:first-of-type){border-top-left-radius:0;border-top-right-radius:0}.fancy-form.svelte-1wjd4hl .fancy-field:not(:last-of-type){border-bottom-left-radius:0;border-bottom-right-radius:0}");Gt(".options.svelte-1mys7zf{margin-top:34px;margin-bottom:14px;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:6px;flex-wrap:wrap}.options.svelte-1mys7zf .spectrum-ActionButton{font-size:15px;line-height:17px;height:auto;padding:6px 10px}");Gt(".checkbox-group.has-select-all.svelte-2g5wlw .fancy-field:first-of-type{background:var(--spectrum-global-color-gray-100)}.checkbox-group.has-select-all.svelte-2g5wlw .fancy-field:first-of-type:hover{background:var(--spectrum-global-color-gray-200)}");function FC(e){let t,r,n;return{c(){t=Z("svg"),r=Z("use"),se(r,"xlink:href",n="#spectrum-icon-18-"+e[1]),ie(t,"class","spectrum-Icon spectrum-Icon--sizeM spectrum-Toast-typeIcon"),ie(t,"focusable","false"),ie(t,"aria-hidden","true")},m(e,n){U(e,t,n),V(t,r)},p(e,t){2&t&&n!==(n="#spectrum-icon-18-"+e[1])&&se(r,"xlink:href",n)},d(e){e&&X(t)}}}function jC(e){let t,r;return t=new eo({props:{quiet:!0,emphasized:!0,$$slots:{default:[qC]},$$scope:{ctx:e}}}),t.$on("click",e[8]),{c(){It(t.$$.fragment)},m(e,n){Bt(t,e,n),r=!0},p(e,r){const n={};1040&r&&(n.$$scope={dirty:r,ctx:e}),t.$set(n)},i(e){r||(lt(t.$$.fragment,e),r=!0)},o(e){ct(t.$$.fragment,e),r=!1},d(e){Dt(t,e)}}}function qC(e){let t,r;return{c(){t=Y("div"),r=K(e[4]),fe(t,"color","white"),fe(t,"font-weight","600")},m(e,n){U(e,t,n),V(t,r)},p(e,t){16&t&&me(r,e[4])},d(e){e&&X(t)}}}function UC(e){let r,n,i,a;return{c(){r=Y("div"),n=Y("button"),n.innerHTML='<div class="spectrum-ClearButton-fill"><svg class="spectrum-ClearButton-icon spectrum-Icon spectrum-UIIcon-Cross100" focusable="false" aria-hidden="true"><use xlink:href="#spectrum-css-icon-Cross100"></use></svg></div>',ie(n,"class","spectrum-ClearButton spectrum-ClearButton--overBackground spectrum-ClearButton--sizeM"),ie(r,"class","spectrum-Toast-buttons")},m(t,o){U(t,r,o),V(r,n),i||(a=ee(n,"click",e[9]),i=!0)},p:t,d(e){e&&X(r),i=!1,a()}}}function WC(e){let t,r,n,i,a,o,s,l,c,u=(e[2]||"")+"",p=e[1]&&FC(e),d=e[5]&&jC(e),h=e[3]&&UC(e);return{c(){t=Y("div"),p&&p.c(),r=J(),n=Y("div"),i=Y("div"),a=K(u),o=J(),d&&d.c(),s=J(),h&&h.c(),ie(i,"class","wrap spectrum-Toast-content svelte-cfyuun"),ie(n,"class","spectrum-Toast-body svelte-cfyuun"),ye(n,"actionBody",!!e[5]),ie(t,"class",l="spectrum-Toast spectrum-Toast--"+e[0]+" svelte-cfyuun"),ye(t,"wide",e[6])},m(e,l){U(e,t,l),p&&p.m(t,null),V(t,r),V(t,n),V(n,i),V(i,a),V(n,o),d&&d.m(n,null),V(t,s),h&&h.m(t,null),c=!0},p(e,[i]){e[1]?p?p.p(e,i):(p=FC(e),p.c(),p.m(t,r)):p&&(p.d(1),p=null),(!c||4&i)&&u!==(u=(e[2]||"")+"")&&me(a,u),e[5]?d?(d.p(e,i),32&i&<(d,1)):(d=jC(e),d.c(),lt(d,1),d.m(n,null)):d&&(ot(),ct(d,1,1,(()=>{d=null})),st()),32&i&&ye(n,"actionBody",!!e[5]),e[3]?h?h.p(e,i):(h=UC(e),h.c(),h.m(t,null)):h&&(h.d(1),h=null),(!c||1&i&&l!==(l="spectrum-Toast spectrum-Toast--"+e[0]+" svelte-cfyuun"))&&ie(t,"class",l),65&i&&ye(t,"wide",e[6])},i(e){c||(lt(d),c=!0)},o(e){ct(d),c=!1},d(e){e&&X(t),p&&p.d(),d&&d.d(),h&&h.d()}}}function XC(e,t,r){let{type:n="info"}=t,{icon:i="Info"}=t,{message:a=""}=t,{dismissable:o=!1}=t,{actionMessage:s=null}=t,{action:l=null}=t,{wide:c=!1}=t;const u=De();return e.$$set=e=>{"type"in e&&r(0,n=e.type),"icon"in e&&r(1,i=e.icon),"message"in e&&r(2,a=e.message),"dismissable"in e&&r(3,o=e.dismissable),"actionMessage"in e&&r(4,s=e.actionMessage),"action"in e&&r(5,l=e.action),"wide"in e&&r(6,c=e.wide)},[n,i,a,o,s,l,c,u,()=>l((()=>u("dismiss"))),()=>u("dismiss")]}Gt(".wrap.svelte-cfyuun{overflow-wrap:anywhere}.spectrum-Toast.svelte-cfyuun{pointer-events:all}.wide.svelte-cfyuun{width:100%}.actionBody.svelte-cfyuun{justify-content:space-between;display:flex;width:100%;align-items:center}");class GC extends Ot{constructor(e){super(),Ht(this,e,XC,WC,c,{type:0,icon:1,message:2,dismissable:3,actionMessage:4,action:5,wide:6})}}Gt(".notifications.svelte-1m17u8b{position:fixed;bottom:40px;left:0;right:0;margin:0 auto;padding:0;z-index:9999;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;pointer-events:none;gap:10px}");var YC='<?xml version="1.0"?>\n<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 48 48" height="48px" viewBox="0 0 48 48" width="48px" xml:space="preserve">\n <g>\n <g>\n <path d="M9,42H3c-0.552,0-1-0.449-1-1v-3.5C2,37.224,2.224,37,2.5,37S3,37.224,3,37.5V41h6 c0.276,0,0.5,0.224,0.5,0.5S9.276,42,9,42z"/>\n <path d="M45,42h-6c-0.276,0-0.5-0.224-0.5-0.5S38.724,41,39,41h6V13H3v27c0,0.276-0.224,0.5-0.5,0.5S2,40.276,2,40 V12h44v29C46,41.551,45.552,42,45,42z"/>\n <g>\n <path d="M45.5,13h-43C2.224,13,2,12.776,2,12.5v-5C2,6.673,2.673,6,3.5,6h41C45.327,6,46,6.673,46,7.5v5 C46,12.776,45.776,13,45.5,13z M3,12h42V7.5C45,7.224,44.775,7,44.5,7h-41C3.225,7,3,7.224,3,7.5V12z"/>\n </g>\n <g>\n <g>\n <path d="M16.5,11c-0.827,0-1.5-0.673-1.5-1.5S15.673,8,16.5,8S18,8.673,18,9.5S17.327,11,16.5,11z M16.5,9 C16.225,9,16,9.224,16,9.5s0.225,0.5,0.5,0.5S17,9.776,17,9.5S16.775,9,16.5,9z"/>\n </g>\n <g>\n <path d="M11.5,11c-0.827,0-1.5-0.673-1.5-1.5S10.673,8,11.5,8S13,8.673,13,9.5S12.327,11,11.5,11z M11.5,9 C11.225,9,11,9.224,11,9.5s0.225,0.5,0.5,0.5S12,9.776,12,9.5S11.775,9,11.5,9z"/>\n </g>\n <g>\n <path d="M6.5,11C5.673,11,5,10.327,5,9.5S5.673,8,6.5,8S8,8.673,8,9.5S7.327,11,6.5,11z M6.5,9 C6.225,9,6,9.224,6,9.5S6.225,10,6.5,10S7,9.776,7,9.5S6.775,9,6.5,9z"/>\n </g>\n </g>\n </g>\n <g>\n <g>\n <path d="M35.696,44H12.304c-0.728,0-1.313-0.284-1.605-0.779c-0.289-0.489-0.259-1.126,0.084-1.749L22.58,19.996 c0.709-1.285,2.132-1.285,2.839,0l11.799,21.477v0c0.343,0.623,0.373,1.26,0.084,1.749C37.01,43.716,36.424,44,35.696,44z M24,20 c-0.176,0-0.379,0.179-0.544,0.478L11.659,41.954c-0.168,0.306-0.205,0.582-0.101,0.758C11.667,42.895,11.938,43,12.304,43 h23.393c0.365,0,0.637-0.105,0.745-0.288c0.104-0.177,0.067-0.453-0.101-0.758v0L24.543,20.478C24.379,20.179,24.176,20,24,20z"/>\n </g>\n <g>\n <path d="M24,36L24,36c-0.225,0-0.421-0.15-0.481-0.366C23.456,35.412,22,30.169,22,28c0-1.103,0.897-2,2-2 s2,0.897,2,2c0,2.232-1.457,7.417-1.519,7.636C24.42,35.851,24.224,36,24,36z M24,27c-0.552,0-1,0.449-1,1 c0,1.266,0.569,3.793,1.002,5.531C24.435,31.806,25,29.301,25,28C25,27.449,24.552,27,24,27z"/>\n </g>\n <g>\n <path d="M24,41c-1.103,0-2-0.897-2-2s0.897-2,2-2s2,0.897,2,2S25.103,41,24,41z M24,38c-0.552,0-1,0.449-1,1 s0.448,1,1,1s1-0.449,1-1S24.552,38,24,38z"/>\n </g>\n </g>\n </g>\n</svg>',ZC=gi((function(e){var t,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o={};((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(o,{APP_QUOTA_NAMES:()=>it,AccountSSOProvider:()=>ie,AccountSSOProviderType:()=>ne,AnalyticsEvent:()=>G,AppBackupStatus:()=>Ne,AppBackupTrigger:()=>Fe,AppBackupType:()=>Ve,AppEnvironment:()=>U,AsyncEvents:()=>u,AuditLogResourceStatus:()=>pt,AuditLogSystemUser:()=>ct,AuditedEventFriendlyName:()=>p,AuthType:()=>se,AutoFieldSubTypes:()=>Ce,AutoReason:()=>Ae,AutomationActionStepId:()=>de,AutomationCustomIOType:()=>ce,AutomationFeature:()=>me,AutomationIOType:()=>le,AutomationStatus:()=>fe,AutomationStepIdArray:()=>he,AutomationStepStatus:()=>ge,AutomationStepType:()=>pe,AutomationTriggerStepId:()=>ue,BREAKDOWN_QUOTA_NAMES:()=>at,BreakdownQuotaName:()=>nt,CommandWord:()=>W,ConfigType:()=>Ye,ConstantQuotaName:()=>w,DatasourceFeature:()=>H,DatasourceFieldType:()=>E,DocumentType:()=>He,DocumentTypesToImport:()=>Oe,EmptyFilterOption:()=>O,Event:()=>l,EventPublishType:()=>dt,Feature:()=>C,FeatureFlag:()=>q,FieldSubtype:()=>we,FieldType:()=>xe,FieldTypeSubtypes:()=>ze,FilterType:()=>D,FormulaTypes:()=>Se,GroupType:()=>d,Hosting:()=>s,INTERNAL_TABLE_SOURCE_ID:()=>be,IdentityType:()=>h,IncludeRelationship:()=>B,InitType:()=>X,InternalTable:()=>Pe,LockName:()=>R,LockType:()=>P,MigrationName:()=>_,MigrationType:()=>S,MonthlyQuotaName:()=>x,Operation:()=>T,PASSWORD_REPLACEMENT:()=>M,PLUGIN_TYPE_ARR:()=>rt,PermissionLevel:()=>Y,PermissionSource:()=>K,PermissionType:()=>Z,PingSource:()=>ut,PlanModel:()=>f,PlanType:()=>m,PluginSource:()=>tt,PluginType:()=>et,PriceDuration:()=>g,QueryType:()=>L,QuotaType:()=>b,QuotaUsageType:()=>v,RelationshipType:()=>ke,RestAuthType:()=>ve,SEPARATOR:()=>Ie,SSOProviderType:()=>Ze,ScheduleRepeatPeriod:()=>st,ScheduleType:()=>ot,SearchIndex:()=>V,SearchQueryOperators:()=>gt,ServiceType:()=>ft,SortDirection:()=>$,SortOption:()=>N,SortOrder:()=>ht,SortType:()=>mt,SourceName:()=>I,StaticQuotaName:()=>y,TableSourceType:()=>ye,TenantResolutionStrategy:()=>j,UNICODE_MAX:()=>Be,UserGroupSyncEvents:()=>c,UserStatus:()=>Je,ViewCalculation:()=>Ee,VirtualDocumentType:()=>Re,WebhookActionType:()=>je,isAppBackupMetadata:()=>lt,isBBReferenceField:()=>Le,isCloudAccount:()=>ee,isConstantQuota:()=>A,isCreatePasswordAccount:()=>J,isDocument:()=>F,isGoogleConfig:()=>We,isManyToMany:()=>Me,isManyToOne:()=>$e,isMonthlyQuota:()=>k,isOIDCConfig:()=>Xe,isOneToMany:()=>Te,isPasswordAccount:()=>Q,isRelationshipField:()=>_e,isSCIMConfig:()=>Ge,isSMTPConfig:()=>Ue,isSSOAccount:()=>re,isSSOUser:()=>Ke,isSelfHostAccount:()=>te,isSettingsConfig:()=>qe,isStaticQuota:()=>z,isUser:()=>Qe,isVerifiableSSOProvider:()=>oe,prefixed:()=>De}),e.exports=(t=o,((e,t,o,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of i(t))a.call(e,l)||l===o||r(e,l,{get:()=>t[l],enumerable:!(s=n(t,l))||s.enumerable});return e})(r({},"__esModule",{value:!0}),t));var s=(e=>(e.CLOUD="cloud",e.SELF="self",e))(s||{}),l=(e=>(e.USER_CREATED="user:created",e.USER_UPDATED="user:updated",e.USER_DELETED="user:deleted",e.USER_ONBOARDING_COMPLETE="user:onboarding:complete",e.USER_PERMISSION_ADMIN_ASSIGNED="user:admin:assigned",e.USER_PERMISSION_ADMIN_REMOVED="user:admin:removed",e.USER_PERMISSION_BUILDER_ASSIGNED="user:builder:assigned",e.USER_PERMISSION_BUILDER_REMOVED="user:builder:removed",e.USER_INVITED="user:invited",e.USER_INVITED_ACCEPTED="user:invite:accepted",e.USER_PASSWORD_FORCE_RESET="user:password:force:reset",e.USER_PASSWORD_UPDATED="user:password:updated",e.USER_PASSWORD_RESET_REQUESTED="user:password:reset:requested",e.USER_PASSWORD_RESET="user:password:reset",e.USER_DATA_COLLABORATION="user:data:collaboration",e.EMAIL_SMTP_CREATED="email:smtp:created",e.EMAIL_SMTP_UPDATED="email:smtp:updated",e.AUTH_SSO_CREATED="auth:sso:created",e.AUTH_SSO_UPDATED="auth:sso:updated",e.AUTH_SSO_ACTIVATED="auth:sso:activated",e.AUTH_SSO_DEACTIVATED="auth:sso:deactivated",e.AUTH_LOGIN="auth:login",e.AUTH_LOGOUT="auth:logout",e.ORG_NAME_UPDATED="org:info:name:updated",e.ORG_LOGO_UPDATED="org:info:logo:updated",e.ORG_PLATFORM_URL_UPDATED="org:platformurl:updated",e.INSTALLATION_VERSION_CHECKED="installation:version:checked",e.INSTALLATION_VERSION_UPGRADED="installation:version:upgraded",e.INSTALLATION_VERSION_DOWNGRADED="installation:version:downgraded",e.INSTALLATION_FIRST_STARTUP="installation:firstStartup",e.ANALYTICS_OPT_OUT="analytics:opt:out",e.ANALYTICS_OPT_IN="analytics:opt:in",e.APP_CREATED="app:created",e.APP_UPDATED="app:updated",e.APP_DELETED="app:deleted",e.APP_PUBLISHED="app:published",e.APP_UNPUBLISHED="app:unpublished",e.APP_TEMPLATE_IMPORTED="app:template:imported",e.APP_FILE_IMPORTED="app:file:imported",e.APP_VERSION_UPDATED="app:version:updated",e.APP_VERSION_REVERTED="app:version:reverted",e.APP_REVERTED="app:reverted",e.APP_EXPORTED="app:exported",e.ROLE_CREATED="role:created",e.ROLE_UPDATED="role:updated",e.ROLE_DELETED="role:deleted",e.ROLE_ASSIGNED="role:assigned",e.ROLE_UNASSIGNED="role:unassigned",e.SERVED_BUILDER="served:builder",e.SERVED_APP="served:app",e.SERVED_APP_PREVIEW="served:app:preview",e.DATASOURCE_CREATED="datasource:created",e.DATASOURCE_UPDATED="datasource:updated",e.DATASOURCE_DELETED="datasource:deleted",e.QUERY_CREATED="query:created",e.QUERY_UPDATED="query:updated",e.QUERY_DELETED="query:deleted",e.QUERY_IMPORT="query:import",e.QUERIES_RUN="queries:run",e.QUERY_PREVIEWED="query:previewed",e.TABLE_CREATED="table:created",e.TABLE_UPDATED="table:updated",e.TABLE_DELETED="table:deleted",e.TABLE_EXPORTED="table:exported",e.TABLE_IMPORTED="table:imported",e.TABLE_DATA_IMPORTED="table:data:imported",e.VIEW_CREATED="view:created",e.VIEW_UPDATED="view:updated",e.VIEW_DELETED="view:deleted",e.VIEW_EXPORTED="view:exported",e.VIEW_FILTER_CREATED="view:filter:created",e.VIEW_FILTER_UPDATED="view:filter:updated",e.VIEW_FILTER_DELETED="view:filter:deleted",e.VIEW_CALCULATION_CREATED="view:calculation:created",e.VIEW_CALCULATION_UPDATED="view:calculation:updated",e.VIEW_CALCULATION_DELETED="view:calculation:deleted",e.ROWS_CREATED="rows:created",e.ROWS_IMPORTED="rows:imported",e.COMPONENT_CREATED="component:created",e.COMPONENT_DELETED="component:deleted",e.SCREEN_CREATED="screen:created",e.SCREEN_DELETED="screen:deleted",e.LAYOUT_CREATED="layout:created",e.LAYOUT_DELETED="layout:deleted",e.AUTOMATION_CREATED="automation:created",e.AUTOMATION_DELETED="automation:deleted",e.AUTOMATION_TESTED="automation:tested",e.AUTOMATIONS_RUN="automations:run",e.AUTOMATION_STEP_CREATED="automation:step:created",e.AUTOMATION_STEP_DELETED="automation:step:deleted",e.AUTOMATION_TRIGGER_UPDATED="automation:trigger:updated",e.LICENSE_PLAN_CHANGED="license:plan:changed",e.LICENSE_ACTIVATED="license:activated",e.LICENSE_PAYMENT_FAILED="license:payment:failed",e.LICENSE_PAYMENT_RECOVERED="license:payment:recovered",e.LICENSE_CHECKOUT_OPENED="license:checkout:opened",e.LICENSE_CHECKOUT_SUCCESS="license:checkout:success",e.LICENSE_PORTAL_OPENED="license:portal:opened",e.ACCOUNT_CREATED="account:created",e.ACCOUNT_DELETED="account:deleted",e.ACCOUNT_VERIFIED="account:verified",e.APP_BACKFILL_SUCCEEDED="app:backfill:succeeded",e.APP_BACKFILL_FAILED="app:backfill:failed",e.TENANT_BACKFILL_SUCCEEDED="tenant:backfill:succeeded",e.TENANT_BACKFILL_FAILED="tenant:backfill:failed",e.INSTALLATION_BACKFILL_SUCCEEDED="installation:backfill:succeeded",e.INSTALLATION_BACKFILL_FAILED="installation:backfill:failed",e.USER_GROUP_CREATED="user_group:created",e.USER_GROUP_UPDATED="user_group:updated",e.USER_GROUP_DELETED="user_group:deleted",e.USER_GROUP_USERS_ADDED="user_group:user_added",e.USER_GROUP_USERS_REMOVED="user_group:users_deleted",e.USER_GROUP_PERMISSIONS_EDITED="user_group:permissions_edited",e.USER_GROUP_ONBOARDING="user_group:onboarding_added",e.PLUGIN_INIT="plugin:init",e.PLUGIN_IMPORTED="plugin:imported",e.PLUGIN_DELETED="plugin:deleted",e.APP_BACKUP_RESTORED="app:backup:restored",e.APP_BACKUP_TRIGGERED="app:backup:triggered",e.ENVIRONMENT_VARIABLE_CREATED="environment_variable:created",e.ENVIRONMENT_VARIABLE_DELETED="environment_variable:deleted",e.ENVIRONMENT_VARIABLE_UPGRADE_PANEL_OPENED="environment_variable:upgrade_panel_opened",e.AUDIT_LOGS_FILTERED="audit_log:filtered",e.AUDIT_LOGS_DOWNLOADED="audit_log:downloaded",e))(l||{}),c=["user:created","user:updated","user:deleted","user:admin:assigned","user:admin:removed","user:builder:assigned","user:builder:removed","user_group:created","user_group:updated","user_group:deleted","user_group:user_added","user_group:users_deleted","user_group:permissions_edited"],u=[...c],p={"user:created":'User "{{ email }}" created{{#if viaScim}} via SCIM{{/if}}',"user:updated":'User "{{ email }}" updated{{#if viaScim}} via SCIM{{/if}}',"user:deleted":'User "{{ email }}" deleted{{#if viaScim}} via SCIM{{/if}}',"user:admin:assigned":'User "{{ email }}" admin role assigned',"user:admin:removed":'User "{{ email }}" admin role removed',"user:builder:assigned":'User "{{ email }}" builder role assigned',"user:builder:removed":'User "{{ email }}" builder role removed',"user:invited":'User "{{ email }}" invited',"user:invite:accepted":'User "{{ email }}" accepted invite',"user:password:updated":'User "{{ email }}" password updated',"user:password:reset:requested":'User "{{ email }}" password reset requested',"user:password:reset":'User "{{ email }}" password reset',"user_group:created":'User group "{{ name }}" created{{#if viaScim}} via SCIM{{/if}}',"user_group:updated":'User group "{{ name }}" updated{{#if viaScim}} via SCIM{{/if}}',"user_group:deleted":'User group "{{ name }}" deleted{{#if viaScim}} via SCIM{{/if}}',"user_group:user_added":'User group "{{ name }}" {{ count }} users added{{#if viaScim}} via SCIM{{/if}}',"user_group:users_deleted":'User group "{{ name }}" {{ count }} users removed{{#if viaScim}} via SCIM{{/if}}',"user_group:permissions_edited":'User group "{{ name }}" permissions edited',"user:password:force:reset":void 0,"user_group:onboarding_added":void 0,"user:onboarding:complete":void 0,"user:data:collaboration":void 0,"email:smtp:created":"Email configuration created","email:smtp:updated":"Email configuration updated","auth:sso:created":"SSO configuration created","auth:sso:updated":"SSO configuration updated","auth:sso:activated":"SSO configuration activated","auth:sso:deactivated":"SSO configuration deactivated","auth:login":'User "{{ email }}" logged in',"auth:logout":'User "{{ email }}" logged out',"org:info:name:updated":"Organisation name updated","org:info:logo:updated":"Organisation logo updated","org:platformurl:updated":"Organisation platform URL updated","app:created":'App "{{ name }}" created',"app:updated":'App "{{ name }}" updated',"app:deleted":'App "{{ name }}" deleted',"app:published":'App "{{ name }}" published',"app:unpublished":'App "{{ name }}" unpublished',"app:template:imported":'App "{{ name }}" template imported',"app:file:imported":'App "{{ name }}" file imported',"app:version:updated":'App "{{ name }}" version updated',"app:version:reverted":'App "{{ name }}" version reverted',"app:reverted":'App "{{ name }}" reverted',"app:exported":'App "{{ name }}" exported',"app:backup:restored":'App backup "{{ name }}" restored',"app:backup:triggered":'App backup "{{ name }}" triggered',"datasource:created":"Datasource created","datasource:updated":"Datasource updated","datasource:deleted":"Datasource deleted","query:created":"Query created","query:updated":"Query updated","query:deleted":"Query deleted","query:import":"Query import","queries:run":void 0,"query:previewed":void 0,"table:created":'Table "{{ name }}" created',"table:updated":'Table "{{ name }}" updated',"table:deleted":'Table "{{ name }}" deleted',"table:exported":'Table "{{ name }}" exported',"table:imported":'Table "{{ name }}" imported',"table:data:imported":"Data imported to table","rows:created":"Rows created","rows:imported":"Rows imported","automation:created":'Automation "{{ name }}" created',"automation:deleted":'Automation "{{ name }}" deleted',"automation:step:created":'Automation "{{ name }}" step added',"automation:step:deleted":'Automation "{{ name }}" step removed',"automation:tested":void 0,"automations:run":void 0,"automation:trigger:updated":void 0,"screen:created":'Screen "{{ name }}" created',"screen:deleted":'Screen "{{ name }}" deleted',"component:created":"Component created","component:deleted":"Component deleted","environment_variable:created":"Environment variable created","environment_variable:deleted":"Environment variable deleted","environment_variable:upgrade_panel_opened":void 0,"plugin:imported":"Plugin imported","plugin:deleted":"Plugin deleted","plugin:init":void 0,"role:created":void 0,"role:updated":void 0,"role:deleted":void 0,"role:assigned":void 0,"role:unassigned":void 0,"license:plan:changed":void 0,"license:activated":void 0,"license:payment:failed":void 0,"license:payment:recovered":void 0,"license:checkout:opened":void 0,"license:checkout:success":void 0,"license:portal:opened":void 0,"account:created":void 0,"account:deleted":void 0,"account:verified":void 0,"app:backfill:succeeded":void 0,"app:backfill:failed":void 0,"tenant:backfill:succeeded":void 0,"tenant:backfill:failed":void 0,"installation:backfill:succeeded":void 0,"installation:backfill:failed":void 0,"layout:created":void 0,"layout:deleted":void 0,"view:created":void 0,"view:updated":void 0,"view:deleted":void 0,"view:exported":void 0,"view:filter:created":void 0,"view:filter:updated":void 0,"view:filter:deleted":void 0,"view:calculation:created":void 0,"view:calculation:updated":void 0,"view:calculation:deleted":void 0,"served:builder":void 0,"served:app":void 0,"served:app:preview":void 0,"analytics:opt:out":void 0,"analytics:opt:in":void 0,"installation:version:checked":void 0,"installation:version:upgraded":void 0,"installation:version:downgraded":void 0,"installation:firstStartup":void 0,"audit_log:filtered":void 0,"audit_log:downloaded":void 0},d=(e=>(e.TENANT="tenant",e.INSTALLATION="installation",e))(d||{}),h=(e=>(e.USER="user",e.TENANT="tenant",e.INSTALLATION="installation",e))(h||{}),m=(e=>(e.FREE="free",e.PRO="pro",e.TEAM="team",e.PREMIUM="premium",e.PREMIUM_PLUS="premium_plus",e.BUSINESS="business",e.ENTERPRISE_BASIC="enterprise_basic",e.ENTERPRISE="enterprise",e))(m||{}),g=(e=>(e.MONTHLY="monthly",e.YEARLY="yearly",e))(g||{}),f=(e=>(e.PER_USER="perUser",e.PER_CREATOR_PER_USER="per_creator_per_user",e.DAY_PASS="dayPass",e))(f||{}),v=(e=>(e.STATIC="static",e.MONTHLY="monthly",e))(v||{}),b=(e=>(e.USAGE="usage",e.CONSTANT="constant",e))(b||{}),y=(e=>(e.ROWS="rows",e.APPS="apps",e.USERS="users",e.CREATORS="creators",e.USER_GROUPS="userGroups",e.PLUGINS="plugins",e))(y||{}),x=(e=>(e.QUERIES="queries",e.AUTOMATIONS="automations",e.DAY_PASSES="dayPasses",e))(x||{}),w=(e=>(e.AUTOMATION_LOG_RETENTION_DAYS="automationLogRetentionDays",e.APP_BACKUPS_RETENTION_DAYS="appBackupRetentionDays",e))(w||{}),z=(e,t,r)=>"usage"===e&&"static"===t,k=(e,t,r)=>"usage"===e&&"monthly"===t,A=(e,t)=>"constant"===e,C=(e=>(e.USER_GROUPS="userGroups",e.APP_BACKUPS="appBackups",e.ENVIRONMENT_VARIABLES="environmentVariables",e.AUDIT_LOGS="auditLogs",e.ENFORCEABLE_SSO="enforceableSSO",e.BRANDING="branding",e.SCIM="scim",e.SYNC_AUTOMATIONS="syncAutomations",e.APP_BUILDERS="appBuilders",e.OFFLINE="offline",e.EXPANDED_PUBLIC_API="expandedPublicApi",e.VIEW_PERMISSIONS="viewPermissions",e))(C||{}),S=(e=>(e.GLOBAL="global",e.APP="app",e.INSTALLATION="installation",e))(S||{}),_=(e=>(e.USER_EMAIL_VIEW_CASING="user_email_view_casing",e.APP_URLS="app_urls",e.EVENT_APP_BACKFILL="event_app_backfill",e.EVENT_GLOBAL_BACKFILL="event_global_backfill",e.EVENT_INSTALLATION_BACKFILL="event_installation_backfill",e.GLOBAL_INFO_SYNC_USERS="global_info_sync_users",e.TABLE_SETTINGS_LINKS_TO_ACTIONS="table_settings_links_to_actions",e.SYNC_QUOTAS="sync_quotas_2",e))(_||{}),M="--secret-value--",T=(e=>(e.CREATE="CREATE",e.READ="READ",e.UPDATE="UPDATE",e.DELETE="DELETE",e.BULK_CREATE="BULK_CREATE",e.CREATE_TABLE="CREATE_TABLE",e.UPDATE_TABLE="UPDATE_TABLE",e.DELETE_TABLE="DELETE_TABLE",e))(T||{}),$=(e=>(e.ASCENDING="ASCENDING",e.DESCENDING="DESCENDING",e))($||{}),L=(e=>(e.SQL="sql",e.JSON="json",e.FIELDS="fields",e))(L||{}),E=(e=>(e.STRING="string",e.CODE="code",e.LONGFORM="longForm",e.BOOLEAN="boolean",e.NUMBER="number",e.PASSWORD="password",e.LIST="list",e.OBJECT="object",e.JSON="json",e.FILE="file",e.FIELD_GROUP="fieldGroup",e.SELECT="select",e))(E||{}),I=(e=>(e.POSTGRES="POSTGRES",e.DYNAMODB="DYNAMODB",e.MONGODB="MONGODB",e.ELASTICSEARCH="ELASTICSEARCH",e.COUCHDB="COUCHDB",e.SQL_SERVER="SQL_SERVER",e.S3="S3",e.AIRTABLE="AIRTABLE",e.MYSQL="MYSQL",e.ARANGODB="ARANGODB",e.REST="REST",e.ORACLE="ORACLE",e.GOOGLE_SHEETS="GOOGLE_SHEETS",e.FIRESTORE="FIRESTORE",e.REDIS="REDIS",e.SNOWFLAKE="SNOWFLAKE",e))(I||{}),B=(e=>(e[e.INCLUDE=1]="INCLUDE",e[e.EXCLUDE=0]="EXCLUDE",e))(B||{}),D=(e=>(e.STRING="string",e.FUZZY="fuzzy",e.RANGE="range",e.EQUAL="equal",e.NOT_EQUAL="notEqual",e.EMPTY="empty",e.NOT_EMPTY="notEmpty",e.ONE_OF="oneOf",e))(D||{}),H=(e=>(e.CONNECTION_CHECKING="connection",e.FETCH_TABLE_NAMES="fetch_table_names",e.EXPORT_SCHEMA="export_schema",e))(H||{}),O=(e=>(e.RETURN_ALL="all",e.RETURN_NONE="none",e))(O||{}),P=(e=>(e.TRY_ONCE="try_once",e.TRY_TWICE="try_twice",e.DEFAULT="default",e.DELAY_500="delay_500",e.CUSTOM="custom",e))(P||{}),R=(e=>(e.MIGRATIONS="migrations",e.TRIGGER_QUOTA="trigger_quota",e.SYNC_ACCOUNT_LICENSE="sync_account_license",e.UPDATE_TENANTS_DOC="update_tenants_doc",e.PERSIST_WRITETHROUGH="persist_writethrough",e.QUOTA_USAGE_EVENT="quota_usage_event",e))(R||{}),V=(e=>(e.ROWS="rows",e.AUDIT="audit",e.USER="user",e))(V||{}),N=(e=>(e.ASCENDING="asc",e.DESCENDING="desc",e))(N||{}),F=e=>"object"==typeof e&&e._id&&e._rev,j=(e=>(e.USER="user",e.HEADER="header",e.QUERY="query",e.SUBDOMAIN="subdomain",e.PATH="path",e))(j||{}),q=(e=>(e.LICENSING="LICENSING",e.PER_CREATOR_PER_USER_PRICE="PER_CREATOR_PER_USER_PRICE",e.PER_CREATOR_PER_USER_PRICE_ALERT="PER_CREATOR_PER_USER_PRICE_ALERT",e))(q||{}),U=(e=>(e.PRODUCTION="production",e.DEVELOPMENT="development",e))(U||{}),W=(e=>(e.BACKUPS="backups",e.HOSTING="hosting",e.ANALYTICS="analytics",e.HELP="help",e.PLUGIN="plugins",e))(W||{}),X=(e=>(e.QUICK="quick",e.DIGITAL_OCEAN="do",e))(X||{}),G={OptOut:"analytics:opt:out",OptIn:"analytics:opt:in",SelfHostInit:"hosting:init",PluginInit:"plugin:init"},Y=(e=>(e.READ="read",e.WRITE="write",e.EXECUTE="execute",e.ADMIN="admin",e))(Y||{}),Z=(e=>(e.APP="app",e.TABLE="table",e.USER="user",e.AUTOMATION="automation",e.WEBHOOK="webhook",e.BUILDER="builder",e.GLOBAL_BUILDER="globalBuilder",e.QUERY="query",e.VIEW="view",e.LEGACY_VIEW="legacy_view",e))(Z||{}),K=(e=>(e.EXPLICIT="EXPLICIT",e.INHERITED="INHERITED",e.BASE="BASE",e))(K||{}),J=e=>"password"===e.authType,Q=e=>"password"===e.authType&&"self"===e.hosting,ee=e=>"cloud"===e.hosting,te=e=>"self"===e.hosting,re=e=>"sso"===e.authType,ne=(e=>(e.GOOGLE="google",e.MICROSOFT="microsoft",e))(ne||{}),ie=(e=>(e.GOOGLE="google",e.MICROSOFT="microsoft",e))(ie||{}),ae=["microsoft"];function oe(e){return ae.includes(e)}var se=(e=>(e.SSO="sso",e.PASSWORD="password",e))(se||{}),le=(e=>(e.OBJECT="object",e.STRING="string",e.BOOLEAN="boolean",e.NUMBER="number",e.ARRAY="array",e.JSON="json",e.DATE="date",e))(le||{}),ce=(e=>(e.TABLE="table",e.ROW="row",e.ROWS="rows",e.WIDE="wide",e.QUERY="query",e.QUERY_PARAMS="queryParams",e.QUERY_LIMIT="queryLimit",e.LOOP_OPTION="loopOption",e.ITEM="item",e.CODE="code",e.FILTERS="filters",e.COLUMN="column",e.TRIGGER_SCHEMA="triggerSchema",e.CRON="cron",e.WEBHOOK_URL="webhookUrl",e))(ce||{}),ue=(e=>(e.ROW_SAVED="ROW_SAVED",e.ROW_UPDATED="ROW_UPDATED",e.ROW_DELETED="ROW_DELETED",e.WEBHOOK="WEBHOOK",e.APP="APP",e.CRON="CRON",e))(ue||{}),pe=(e=>(e.LOGIC="LOGIC",e.ACTION="ACTION",e.TRIGGER="TRIGGER",e))(pe||{}),de=(e=>(e.SEND_EMAIL_SMTP="SEND_EMAIL_SMTP",e.CREATE_ROW="CREATE_ROW",e.UPDATE_ROW="UPDATE_ROW",e.DELETE_ROW="DELETE_ROW",e.EXECUTE_BASH="EXECUTE_BASH",e.OUTGOING_WEBHOOK="OUTGOING_WEBHOOK",e.EXECUTE_SCRIPT="EXECUTE_SCRIPT",e.EXECUTE_QUERY="EXECUTE_QUERY",e.SERVER_LOG="SERVER_LOG",e.DELAY="DELAY",e.FILTER="FILTER",e.QUERY_ROWS="QUERY_ROWS",e.LOOP="LOOP",e.COLLECT="COLLECT",e.OPENAI="OPENAI",e.discord="discord",e.slack="slack",e.zapier="zapier",e.integromat="integromat",e))(de||{}),he=[...Object.values(de),...Object.values(ue)],me=(e=>(e.LOOPING="LOOPING",e))(me||{}),ge=(e=>(e.NO_ITERATIONS="no_iterations",e))(ge||{}),fe=(e=>(e.SUCCESS="success",e.ERROR="error",e.STOPPED="stopped",e.STOPPED_ERROR="stopped_error",e))(fe||{}),ve=(e=>(e.BASIC="basic",e.BEARER="bearer",e))(ve||{}),be="bb_internal",ye=(e=>(e.EXTERNAL="external",e.INTERNAL="internal",e))(ye||{}),xe=(e=>(e.STRING="string",e.LONGFORM="longform",e.OPTIONS="options",e.NUMBER="number",e.BOOLEAN="boolean",e.ARRAY="array",e.DATETIME="datetime",e.ATTACHMENT="attachment",e.LINK="link",e.FORMULA="formula",e.AUTO="auto",e.JSON="json",e.INTERNAL="internal",e.BARCODEQR="barcodeqr",e.BIGINT="bigint",e.BB_REFERENCE="bb_reference",e))(xe||{}),we=(e=>(e.USER="user",e.USERS="users",e))(we||{}),ze={BB_REFERENCE:{USER:"user",USERS:"users"}},ke=(e=>(e.ONE_TO_MANY="one-to-many",e.MANY_TO_ONE="many-to-one",e.MANY_TO_MANY="many-to-many",e))(ke||{}),Ae=(e=>(e.FOREIGN_KEY="foreign_key",e))(Ae||{}),Ce=(e=>(e.CREATED_BY="createdBy",e.CREATED_AT="createdAt",e.UPDATED_BY="updatedBy",e.UPDATED_AT="updatedAt",e.AUTO_ID="autoID",e))(Ce||{}),Se=(e=>(e.STATIC="static",e.DYNAMIC="dynamic",e))(Se||{});function _e(e){return"link"===e.type}function Me(e){return"many-to-many"===e.relationshipType}function Te(e){return"one-to-many"===e.relationshipType}function $e(e){return"many-to-one"===e.relationshipType}function Le(e){return"bb_reference"===e.type}var Ee=(e=>(e.SUM="sum",e.COUNT="count",e.STATISTICS="stats",e))(Ee||{}),Ie="_",Be="",De=e=>`${e}${Ie}`,He=(e=>(e.USER="us",e.GROUP="gr",e.WORKSPACE="workspace",e.CONFIG="config",e.TEMPLATE="template",e.APP="app",e.DEV="dev",e.APP_DEV="app_dev",e.APP_METADATA="app_metadata",e.ROLE="role",e.MIGRATIONS="migrations",e.DEV_INFO="devinfo",e.AUTOMATION_LOG="log_au",e.ACCOUNT_METADATA="acc_metadata",e.PLUGIN="plg",e.DATASOURCE="datasource",e.DATASOURCE_PLUS="datasource_plus",e.APP_BACKUP="backup",e.TABLE="ta",e.ROW="ro",e.AUTOMATION="au",e.LINK="li",e.WEBHOOK="wh",e.INSTANCE="inst",e.LAYOUT="layout",e.SCREEN="screen",e.QUERY="query",e.DEPLOYMENTS="deployments",e.METADATA="metadata",e.MEM_VIEW="view",e.USER_FLAG="flag",e.AUTOMATION_METADATA="meta_au",e.AUDIT_LOG="al",e))(He||{}),Oe=["role","datasource","datasource_plus","ta","au","wh","screen","query","metadata","view","inst","layout"],Pe=(e=>(e.USER_METADATA="ta_users",e))(Pe||{}),Re=(e=>(e.VIEW="view",e))(Re||{}),Ve=(e=>(e.BACKUP="backup",e.RESTORE="restore",e))(Ve||{}),Ne=(e=>(e.STARTED="started",e.PENDING="pending",e.COMPLETE="complete",e.FAILED="failed",e))(Ne||{}),Fe=(e=>(e.PUBLISH="publish",e.MANUAL="manual",e.SCHEDULED="scheduled",e.RESTORING="restoring",e))(Fe||{}),je=(e=>(e.AUTOMATION="automation",e))(je||{}),qe=e=>"settings"===e.type,Ue=e=>"smtp"===e.type,We=e=>"google"===e.type,Xe=e=>"oidc"===e.type,Ge=e=>"scim"===e.type,Ye=(e=>(e.SETTINGS="settings",e.ACCOUNT="account",e.SMTP="smtp",e.GOOGLE="google",e.OIDC="oidc",e.OIDC_LOGOS="logos_oidc",e.SCIM="scim",e))(Ye||{}),Ze=(e=>(e.OIDC="oidc",e.GOOGLE="google",e))(Ze||{});function Ke(e){return!!e.providerType}var Je=(e=>(e.ACTIVE="active",e.INACTIVE="inactive",e))(Je||{});function Qe(e){return!!e.roles}var et=(e=>(e.DATASOURCE="datasource",e.COMPONENT="component",e.AUTOMATION="automation",e))(et||{}),tt=(e=>(e.NPM="NPM",e.GITHUB="Github",e.URL="URL",e.FILE="File Upload",e))(tt||{}),rt=Object.values(et),nt=(e=>(e.ROW_QUERIES="rowQueries",e.DATASOURCE_QUERIES="datasourceQueries",e.AUTOMATIONS="automations",e))(nt||{}),it=["rows","queries","automations"],at=["queries","automations"],ot=(e=>(e.APP_BACKUP="app_backup",e))(ot||{}),st=(e=>(e.DAILY="daily",e.WEEKLY="weekly",e.MONTHLY="monthly",e))(st||{}),lt=(e,t)=>"app_backup"===e,ct="SYSTEM",ut=(e=>(e.BUILDER="builder",e.APP="app",e))(ut||{}),pt=(e=>(e.DELETED="deleted",e))(pt||{}),dt=(e=>(e.ENVIRONMENT_VARIABLE_UPGRADE_PANEL_OPENED="environment_variable_upgrade_panel_opened",e))(dt||{}),ht=(e=>(e.ASCENDING="ascending",e.DESCENDING="descending",e))(ht||{}),mt=(e=>(e.STRING="string",e.number="number",e))(mt||{}),gt=(e=>(e.STRING="string",e.FUZZY="fuzzy",e.RANGE="range",e.EQUAL="equal",e.NOT_EQUAL="notEqual",e.EMPTY="empty",e.NOT_EMPTY="notEmpty",e.ONE_OF="oneOf",e.CONTAINS="contains",e.NOT_CONTAINS="notContains",e.CONTAINS_ANY="containsAny",e))(gt||{}),ft=(e=>(e.WORKER="worker",e.APPS="apps",e))(ft||{})}));const KC="budibase:returnurl",JC={USERS:"ta_users"},QC="free",eS="ADMIN",tS="POWER",rS="BASIC",nS="PUBLIC",iS="CREATOR",aS=[{class:"lightest",name:"Lightest"},{class:"light",name:"Light"},{class:"dark",name:"Dark"},{class:"darkest",name:"Darkest"},{class:"nord",name:"Nord",base:"darkest"},{class:"midnight",name:"Midnight",base:"darkest"}],oS=e=>({getAnalyticsStatus:async()=>await e.get({url:"/api/bbtel"}),analyticsPing:async({source:t,embedded:r})=>{const n=Intl.DateTimeFormat().resolvedOptions().timeZone;return await e.post({url:"/api/bbtel/ping",body:{source:t,timezone:n,embedded:r}})}}),sS=e=>({fetchAppPackage:async t=>await e.get({url:`/api/applications/${t}/appPackage`}),saveAppMetadata:async({appId:t,metadata:r})=>await e.put({url:`/api/applications/${t}`,body:r}),publishAppChanges:async t=>await e.post({url:`/api/applications/${t}/publish`}),revertAppChanges:async t=>await e.post({url:`/api/dev/${t}/revert`}),updateAppClientVersion:async t=>await e.post({url:`/api/applications/${t}/client/update`}),revertAppClientVersion:async t=>await e.post({url:`/api/applications/${t}/client/revert`}),getAppDeployments:async()=>await e.get({url:"/api/deployments"}),createApp:async t=>await e.post({url:"/api/applications",body:t,json:!1}),updateAppFromExport:async(t,r)=>{const n=vi.sdk.applications.getDevAppID(t);return await e.post({url:`/api/applications/${n}/import`,body:r,json:!1})},importApps:async t=>await e.post({url:"/api/cloud/import",body:t,json:!1}),unpublishApp:async t=>await e.post({url:`/api/applications/${t}/unpublish`}),deleteApp:async t=>await e.delete({url:`/api/applications/${t}`}),releaseAppLock:async t=>await e.delete({url:`/api/dev/${t}/lock`}),fetchSystemDebugInfo:async()=>await e.get({url:"/api/debug/diagnostics"}),syncApp:async t=>await e.post({url:`/api/applications/${t}/sync`}),getApps:async()=>await e.get({url:"/api/applications?status=all"}),fetchComponentLibDefinitions:async t=>await e.get({url:`/api/${t}/components/definitions`}),addSampleData:async t=>await e.post({url:`/api/applications/${t}/sample`})}),lS=e=>{const t=async({datasourceId:t,bucket:r,key:n})=>await e.post({url:`/api/attachments/${t}/url`,body:{bucket:r,key:n}});return{getSignedDatasourceURL:t,uploadAttachment:async({data:t,tableId:r})=>await e.post({url:`/api/attachments/${r}/upload`,body:t,json:!1}),uploadBuilderAttachment:async t=>await e.post({url:"/api/attachments/process",body:t,json:!1}),externalUpload:async({datasourceId:r,bucket:n,key:i,data:a})=>{const{signedUrl:o,publicUrl:s}=await t({datasourceId:r,bucket:n,key:i});return await e.put({url:o,body:a,json:!1,external:!0}),{publicUrl:s}},deleteAttachments:async({keys:t,tableId:r})=>await e.post({url:`/api/attachments/${r}/delete`,body:{keys:t}}),deleteBuilderAttachments:async t=>await e.post({url:"/api/attachments/delete",body:{keys:t}})}},cS=e=>({logIn:async({tenantId:t,username:r,password:n})=>await e.post({url:`/api/global/auth/${t}/login`,body:{username:r,password:n}}),logOut:async()=>await e.post({url:"/api/global/auth/logout"}),setInitInfo:async t=>await e.post({url:"/api/global/auth/init",body:t}),getInitInfo:async()=>await e.get({url:"/api/global/auth/init"}),requestForgotPassword:async({tenantId:t,email:r})=>await e.post({url:`/api/global/auth/${t}/reset`,body:{email:r}}),resetPassword:async({tenantId:t,password:r,resetCode:n})=>await e.post({url:`/api/global/auth/${t}/reset/update`,body:{password:r,resetCode:n}})}),uS=e=>({triggerAutomation:async({automationId:t,fields:r,timeout:n})=>await e.post({url:`/api/automations/${t}/trigger`,body:{fields:r,timeout:n}}),testAutomation:async({automationId:t,testData:r})=>await e.post({url:`/api/automations/${t}/test`,body:r}),getAutomations:async()=>await e.get({url:"/api/automations"}),getAutomationDefinitions:async()=>await e.get({url:"/api/automations/definitions/list"}),createAutomation:async t=>await e.post({url:"/api/automations",body:t}),updateAutomation:async t=>await e.put({url:"/api/automations",body:t}),deleteAutomation:async({automationId:t,automationRev:r})=>await e.delete({url:`/api/automations/${t}/${r}`}),getAutomationLogs:async({automationId:t,startDate:r,status:n,page:i})=>await e.post({url:"/api/automations/logs/search",body:{automationId:t,startDate:r,status:n,page:i}}),clearAutomationLogErrors:async({automationId:t,appId:r})=>await e.delete({url:"/api/automations/logs",body:{appId:r,automationId:t}})}),pS=e=>({saveConfig:async t=>await e.post({url:"/api/global/configs",body:t}),getConfig:async t=>await e.get({url:`/api/global/configs/${t}`}),deleteConfig:async({id:t,rev:r})=>await e.delete({url:`/api/global/configs/${t}/${r}`}),getTenantConfig:async t=>await e.get({url:`/api/global/configs/public?tenantId=${t}`}),getOIDCConfig:async t=>await e.get({url:`/api/global/configs/public/oidc?tenantId=${t}`}),getChecklist:async t=>await e.get({url:`/api/global/configs/checklist?tenantId=${t}`}),uploadLogo:async t=>await e.post({url:"/api/global/configs/upload/settings/logoUrl",body:t,json:!1}),uploadFavicon:async t=>await e.post({url:"/api/global/configs/upload/settings/faviconUrl",body:t,json:!1}),uploadOIDCLogo:async({name:t,data:r})=>await e.post({url:`/api/global/configs/upload/logos_oidc/${t}`,body:r,json:!1}),getOIDCLogos:async()=>await e.get({url:"/api/global/configs/logos_oidc"})}),dS=e=>({getDatasources:async()=>await e.get({url:"/api/datasources"}),buildDatasourceSchema:async({datasourceId:t,tablesFilter:r})=>await e.post({url:`/api/datasources/${t}/schema`,body:{tablesFilter:r}}),createDatasource:async({datasource:t,fetchSchema:r,tablesFilter:n})=>await e.post({url:"/api/datasources",body:{datasource:t,fetchSchema:r,tablesFilter:n}}),updateDatasource:async t=>await e.put({url:`/api/datasources/${t._id}`,body:t}),deleteDatasource:async({datasourceId:t,datasourceRev:r})=>await e.delete({url:`/api/datasources/${t}/${r}`}),validateDatasource:async t=>await e.post({url:"/api/datasources/verify",body:{datasource:t}}),fetchInfoForDatasource:async t=>await e.post({url:"/api/datasources/info",body:{datasource:t}}),fetchExternalSchema:async t=>await e.get({url:`/api/datasources/${t}/schema/external`})}),hS=e=>({getFlags:async()=>await e.get({url:"/api/users/flags"}),updateFlag:async({flag:t,value:r})=>await e.post({url:"/api/users/flags",body:{flag:t,value:r}}),toggleUiFeature:async({value:t})=>await e.post({url:`/api/beta/${t}`})}),mS=e=>({getHostingURLs:async()=>await e.get({url:"/api/hosting/urls"}),getDeployedApps:async()=>await e.get({url:"/api/hosting/apps"})}),gS=e=>({saveLayout:async t=>await e.post({url:"/api/layouts",body:t}),deleteLayout:async({layoutId:t,layoutRev:r})=>await e.delete({url:`/api/layouts/${t}/${r}`})}),fS=e=>({getEnvironment:async()=>await e.get({url:"/api/system/environment"}),getSystemStatus:async()=>await e.get({url:"/api/system/status"}),getIntegrations:async()=>await e.get({url:"/api/integrations"}),getBudibaseVersion:async()=>(await e.get({url:"/api/dev/version"})).version,getBasePermissions:async()=>await e.get({url:"/api/permission/builtin"}),checkBetaAccess:async t=>await e.get({url:`/api/beta/access?email=${t}`,external:!0})}),vS=e=>({getPermissionForResource:async t=>await e.get({url:`/api/permission/${t}`}),updatePermissionForResource:async({resourceId:t,roleId:r,level:n})=>await e.post({url:`/api/permission/${r}/${t}/${n}`}),removePermissionFromResource:async({resourceId:t,roleId:r,level:n})=>await e.delete({url:`/api/permission/${r}/${t}/${n}`}),getDependants:async t=>await e.get({url:`/api/permission/${t}/dependants`})}),bS=e=>({executeQuery:async({queryId:t,pagination:r,parameters:n})=>await e.post({url:`/api/v2/queries/${t}`,body:{parameters:n,pagination:r}}),fetchQueryDefinition:async t=>await e.get({url:`/api/queries/${t}`,cache:!0}),getQueries:async()=>await e.get({url:"/api/queries"}),saveQuery:async t=>await e.post({url:"/api/queries",body:t}),deleteQuery:async({queryId:t,queryRev:r})=>await e.delete({url:`/api/queries/${t}/${r}`}),importQueries:async({datasourceId:t,data:r})=>await e.post({url:"/api/queries/import",body:{datasourceId:t,data:r}}),previewQuery:async t=>await e.post({url:"/api/queries/preview",body:t})}),yS=e=>({fetchRelationshipData:async({tableId:t,rowId:r,fieldName:n})=>{if(!t||!r)return[];const i=await e.get({url:`/api/${t}/${r}/enrich?field=${n}`});return n?i[n]||[]:i||[]}}),xS=e=>({deleteRole:async({roleId:t,roleRev:r})=>await e.delete({url:`/api/roles/${t}/${r}`}),saveRole:async t=>await e.post({url:"/api/roles",body:t}),getRoles:async()=>await e.get({url:"/api/roles"}),getRolesForApp:async t=>await e.get({url:`/api/global/roles/${t}`}),getAccessibleRoles:async()=>await e.get({url:"/api/roles/accessible"})}),wS=e=>({fetchClientAppRoutes:async()=>await e.get({url:"/api/routing/client"}),fetchAppRoutes:async()=>await e.get({url:"/api/routing"})}),zS=e=>({fetchRow:async({tableId:t,rowId:r})=>t&&r?await e.get({url:`/api/${t}/rows/${r}`}):null,saveRow:async(t,r=!1)=>{if(t?.tableId)return await e.post({url:`/api/${t._viewId||t.tableId}/rows`,body:t,suppressErrors:r})},patchRow:async(t,r=!1)=>{if(t?.tableId||t?._viewId)return await e.patch({url:`/api/${t._viewId||t.tableId}/rows`,body:t,suppressErrors:r})},deleteRow:async({tableId:t,rowId:r,revId:n})=>{if(t&&r)return await e.delete({url:`/api/${t}/rows`,body:{_id:r,_rev:n}})},deleteRows:async({tableId:t,rows:r})=>(r?.forEach((e=>{delete e?._viewId})),await e.delete({url:`/api/${t}/rows`,body:{rows:r}})),exportRows:async({tableId:t,rows:r,format:n,columns:i,search:a})=>await e.post({url:`/api/${t}/rows/exportRows?format=${n}`,body:{rows:r,columns:i,...a},parseResponse:async e=>await e.text()})}),kS=e=>({saveScreen:async t=>await e.post({url:"/api/screens",body:t}),deleteScreen:async({screenId:t,screenRev:r})=>await e.delete({url:`/api/screens/${t}/${r}`})}),AS=e=>({fetchTableDefinition:async t=>await e.get({url:`/api/tables/${t}`,cache:!0}),fetchTableData:async t=>await e.get({url:`/api/${t}/rows`}),searchTable:async({tableId:t,query:r,bookmark:n,limit:i,sort:a,sortOrder:o,sortType:s,paginate:l})=>t&&r?await e.post({url:`/api/${t}/search`,body:{query:r,bookmark:n,limit:i,sort:a,sortOrder:o,sortType:s,paginate:l}}):{rows:[]},importTableData:async({tableId:t,rows:r,identifierFields:n})=>await e.post({url:`/api/tables/${t}/import`,body:{rows:r,identifierFields:n}}),csvToJson:async t=>await e.post({url:"/api/convert/csvToJson",body:{csvString:t}}),getTables:async()=>await e.get({url:"/api/tables"}),getTable:async t=>await e.get({url:`/api/tables/${t}`}),saveTable:async t=>await e.post({url:"/api/tables",body:t}),deleteTable:async({tableId:t,tableRev:r})=>await e.delete({url:`/api/tables/${t}/${r}`}),validateNewTableImport:async({rows:t,schema:r})=>await e.post({url:"/api/tables/validateNewTableImport",body:{rows:t,schema:r}}),validateExistingTableImport:async({rows:t,tableId:r})=>await e.post({url:"/api/tables/validateExistingTableImport",body:{rows:t,tableId:r}}),migrateColumn:async({tableId:t,oldColumn:r,newColumn:n})=>await e.post({url:`/api/tables/${t}/migrate`,body:{oldColumn:r,newColumn:n}})}),CS=e=>({getEmailTemplateDefinitions:async()=>await e.get({url:"/api/global/template/definitions"}),getEmailTemplates:async()=>await e.get({url:"/api/global/template/email"}),saveEmailTemplate:async t=>await e.post({url:"/api/global/template",body:t}),getAppTemplates:async()=>await e.get({url:"/api/templates"})}),SS=e=>({getUsers:async()=>await e.get({url:"/api/global/users"}),searchUsers:async({paginate:t,bookmark:r,query:n,appId:i,limit:a}={})=>{const o={};return r&&(o.bookmark=r),n&&(o.query=n),i&&(o.appId=i),"boolean"==typeof t&&(o.paginate=t),a&&(o.limit=a),await e.post({url:"/api/global/users/search",body:o})},getUser:async t=>await e.get({url:`/api/global/users/${t}`}),createAppUser:async t=>await e.post({url:"/api/users/metadata",body:t}),updateOwnMetadata:async t=>await e.post({url:"/api/users/metadata/self",body:t}),createAdminUser:async t=>await e.post({url:"/api/global/users/init",body:t}),saveUser:async t=>await e.post({url:"/api/global/users",body:t}),createUsers:async({users:t,groups:r})=>(await e.post({url:"/api/global/users/bulk",body:{create:{users:t,groups:r}}})).created,deleteUser:async t=>await e.delete({url:`/api/global/users/${t}`}),deleteUsers:async t=>(await e.post({url:"/api/global/users/bulk",body:{delete:{userIds:t}}})).deleted,inviteUser:async({email:t,builder:r,admin:n,apps:i})=>await e.post({url:"/api/global/users/invite",body:{email:t,userInfo:{admin:n?.global?{global:!0}:void 0,builder:r?.global?{global:!0}:void 0,apps:i||void 0}}}),onboardUsers:async t=>await e.post({url:"/api/global/users/onboard",body:t.map((e=>{const{email:t,admin:r,builder:n,apps:i}=e;return{email:t,userInfo:{admin:r,builder:n,apps:i||void 0}}}))}),updateUserInvite:async t=>{await e.post({url:`/api/global/users/invite/update/${t.code}`,body:{apps:t.apps,builder:t.builder}})},getUserInvite:async t=>await e.get({url:`/api/global/users/invite/${t}`}),getUserInvites:async()=>await e.get({url:"/api/global/users/invites"}),inviteUsers:async t=>await e.post({url:"/api/global/users/multi/invite",body:t.map((e=>({email:e.email,userInfo:{admin:e.admin?{global:!0}:void 0,builder:e.admin||e.builder?{global:!0}:void 0,userGroups:e.groups,roles:e.apps?e.apps:void 0}})))}),acceptInvite:async({inviteCode:t,password:r,firstName:n,lastName:i})=>await e.post({url:"/api/global/users/invite/accept",body:{inviteCode:t,password:r,firstName:n,lastName:i}}),getUserCountByApp:async({appId:t})=>await e.get({url:`/api/global/users/count/${t}`}),addAppBuilder:async({userId:t,appId:r})=>await e.post({url:`/api/global/users/${t}/app/${r}/builder`}),removeAppBuilder:async({userId:t,appId:r})=>await e.delete({url:`/api/global/users/${t}/app/${r}/builder`})}),_S=e=>({generateAPIKey:async()=>{const t=await e.post({url:"/api/global/self/api_key"});return t?.apiKey},fetchDeveloperInfo:async()=>e.get({url:"/api/global/self/api_key"}),fetchSelf:async()=>await e.get({url:"/api/self"}),fetchBuilderSelf:async()=>await e.get({url:"/api/global/self"}),updateSelf:async t=>await e.post({url:"/api/global/self",body:t})}),MS=e=>({fetchViewData:async({name:t,field:r,groupBy:n,calculation:i})=>{const a=new URLSearchParams;i&&(a.set("field",r),a.set("calculation",i)),n&&a.set("group",n);const o=r?`/api/views/${encodeURIComponent(t)}?${a}`:`/api/views/${encodeURIComponent(t)}`;return await e.get({url:o})},exportView:async({viewName:t,format:r})=>{const n=encodeURIComponent(t);return await e.get({url:`/api/views/export?view=${n}&format=${r}`,parseResponse:async e=>await e.text()})},saveView:async t=>await e.post({url:"/api/views",body:t}),deleteView:async t=>await e.delete({url:`/api/views/${encodeURIComponent(t)}`})}),TS=e=>({fetchDefinition:async t=>await e.get({url:`/api/v2/views/${t}`}),create:async t=>await e.post({url:"/api/v2/views",body:t}),update:async t=>await e.put({url:`/api/v2/views/${t.id}`,body:t}),fetch:async({viewId:t,query:r,paginate:n,limit:i,bookmark:a,sort:o,sortOrder:s,sortType:l})=>await e.post({url:`/api/v2/views/${t}/search`,body:{query:r,paginate:n,limit:i,bookmark:a,sort:o,sortOrder:s,sortType:l}}),delete:async t=>await e.delete({url:`/api/v2/views/${t}`})}),$S=e=>({activateLicenseKey:async t=>e.post({url:"/api/global/license/key",body:t}),deleteLicenseKey:async()=>e.delete({url:"/api/global/license/key"}),getLicenseKey:async()=>{try{return await e.get({url:"/api/global/license/key"})}catch(e){if(404!==e.status)throw e}},activateOfflineLicense:async({offlineLicenseToken:t})=>e.post({url:"/api/global/license/offline",body:{offlineLicenseToken:t}}),deleteOfflineLicense:async()=>e.delete({url:"/api/global/license/offline"}),getOfflineLicense:async()=>{try{return await e.get({url:"/api/global/license/offline"})}catch(e){if(404!==e.status)throw e}},getOfflineLicenseIdentifier:async()=>await e.get({url:"/api/global/license/offline/identifier"}),refreshLicense:async()=>e.post({url:"/api/global/license/refresh"}),getQuotaUsage:async()=>e.get({url:"/api/global/license/usage"})}),LS=e=>{async function t(t,r,n,i){return Array.isArray(i)||(i=[i]),await e.post({url:`/api/global/groups/${t}/${r}`,body:{[n]:i}})}return{saveGroup:async t=>await e.post({url:"/api/global/groups",body:t}),getGroups:async()=>await e.get({url:"/api/global/groups"}),getGroup:async t=>await e.get({url:`/api/global/groups/${t}`}),deleteGroup:async({id:t,rev:r})=>await e.delete({url:`/api/global/groups/${t}/${r}`}),getGroupUsers:async({id:t,bookmark:r,emailSearch:n})=>{let i=`/api/global/groups/${t}/users?`;return r&&(i+=`bookmark=${r}&`),n&&(i+=`emailSearch=${n}&`),await e.get({url:i})},addUsersToGroup:async(e,r)=>t(e,"users","add",r),removeUsersFromGroup:async(e,r)=>t(e,"users","remove",r),addAppsToGroup:async(e,r)=>t(e,"apps","add",r),removeAppsFromGroup:async(e,r)=>t(e,"apps","remove",r),addGroupAppBuilder:async({groupId:t,appId:r})=>await e.post({url:`/api/global/groups/${t}/app/${r}/builder`}),removeGroupAppBuilder:async({groupId:t,appId:r})=>await e.delete({url:`/api/global/groups/${t}/app/${r}/builder`})}},ES=e=>({uploadPlugin:async t=>await e.post({url:"/api/plugin/upload",body:t,json:!1}),createPlugin:async t=>await e.post({url:"/api/plugin",body:t}),getPlugins:async()=>await e.get({url:"/api/plugin"}),deletePlugin:async t=>await e.delete({url:`/api/plugin/${t}`})}),IS=e=>({searchBackups:async({appId:t,trigger:r,type:n,page:i,startDate:a,endDate:o})=>{const s={};return i&&(s.page=i),r&&n&&(s.trigger=r.toLowerCase(),s.type=n.toLowerCase()),a&&o&&(s.startDate=a,s.endDate=o),await e.post({url:`/api/apps/${t}/backups/search`,body:s})},createManualBackup:async({appId:t})=>await e.post({url:`/api/apps/${t}/backups`}),deleteBackup:async({appId:t,backupId:r})=>await e.delete({url:`/api/apps/${t}/backups/${r}`}),updateBackup:async({appId:t,backupId:r,name:n})=>await e.patch({url:`/api/apps/${t}/backups/${r}`,body:{name:n}}),restoreBackup:async({appId:t,backupId:r,name:n})=>await e.post({url:`/api/apps/${t}/backups/${r}/import`,body:{name:n}})}),BS=e=>({checkEnvironmentVariableStatus:async()=>await e.get({url:"/api/env/variables/status"}),fetchEnvironmentVariables:async()=>await e.get({url:"/api/env/variables",json:!1}),createEnvironmentVariable:async t=>await e.post({url:"/api/env/variables",body:t}),deleteEnvironmentVariable:async t=>await e.delete({url:`/api/env/variables/${t}`}),updateEnvironmentVariable:async t=>await e.patch({url:`/api/env/variables/${t.name}`,body:t})}),DS=e=>({publishEvent:async t=>await e.post({url:"/api/global/event/publish",body:{type:t}})}),HS=({bookmark:e,userIds:t,appIds:r,startDate:n,endDate:i,fullSearch:a,events:o})=>{const s={};return e&&(s.bookmark=e),n&&i?(s.startDate=n,s.endDate=i):n&&!i&&(s.startDate=n),a&&(s.fullSearch=a),o.length&&(s.events=o),t.length&&(s.userIds=t),r.length&&(s.appIds=r),s},OS=e=>({searchAuditLogs:async t=>await e.post({url:"/api/global/auditlogs/search",body:HS(t)}),getEventDefinitions:async()=>await e.get({url:"/api/global/auditlogs/definitions"}),getDownloadUrl:e=>`/api/global/auditlogs/download?query=${encodeURIComponent(JSON.stringify(e))}`}),PS=e=>({getSystemLogs:async()=>await e.get({url:"/api/system/logs",json:!1,parseResponse:async e=>e})}),RS=yi(),VS={enableCaching:!1,attachHeaders:null,onError:null},NS=e=>{e={...VS,...e};let t={};const r=(e,t)=>({message:e,json:null,status:400,url:t?.url,method:t?.method,handled:!0}),n=async({method:n,url:i,body:a,json:o=!0,external:s=!1,parseResponse:l,suppressErrors:c=!1})=>{o=o&&"GET"!==n;let u={Accept:"application/json"};u["x-budibase-session-id"]=RS,s||(u["x-budibase-api-version"]="1"),o&&(u["Content-Type"]="application/json"),e?.attachHeaders&&e.attachHeaders(u);let p,d=a;if(o)try{d=JSON.stringify(a)}catch(e){throw r("Invalid JSON body",{url:i,method:n})}try{p=await fetch(i,{method:n,headers:u,body:d,credentials:"same-origin"})}catch(e){throw delete t[i],r("Failed to send request",{url:i,method:n})}if(!(p.status>=200&&p.status<400))throw delete t[i],await(async(e,t,r=!1)=>{let n=e.statusText,i=null;try{i=await e.json(),i?.message?n=i.message:i?.error&&(n=i.error)}catch(e){}return{message:n,json:i,status:e.status,url:e.url,method:t,handled:!0,suppressErrors:r}})(p,n,c);try{return l?await l(p):await p.json()}catch(e){return delete t[i],null}},i=async e=>{const r=e.url;return r?(t[r]||(t[r]=n(e),t[r]=await t[r]),await t[r]):null},a=t=>async r=>{try{let{url:a,cache:o=!1,external:s=!1}=r;s||(a=`/${a}`.replace("//","/"));const l=o&&e?.enableCaching?i:n,c={...r,method:t,url:a};return await l(c)}catch(t){throw e?.onError&&e.onError(t),t}};let o={post:a("POST"),get:a("GET"),patch:a("PATCH"),delete:a("DELETE"),put:a("PUT"),error:e=>{throw r(e)},invalidateCache:()=>{t={}},getAppID:()=>{let t={};return e?.attachHeaders(t),t?.["x-budibase-app-id"]}};return{...o,...oS(o),...sS(o),...lS(o),...cS(o),...uS(o),...pS(o),...dS(o),...hS(o),...mS(o),...gS(o),...fS(o),...vS(o),...bS(o),...yS(o),...xS(o),...wS(o),...zS(o),...kS(o),...AS(o),...CS(o),...SS(o),...MS(o),..._S(o),...$S(o),...LS(o),...ES(o),...IS(o),...BS(o),...DS(o),...OS(o),...PS(o),viewV2:TS(o)}};
|
|
19
|
+
*/function Dv(e,t){return{}.hasOwnProperty.call(e,t)}var Hv=Object.prototype.toString,Ov=function(e){if(void 0===e)return"undefined";if(null===e)return"null";if(!0===e||!1===e||e instanceof Boolean)return"boolean";if("string"==typeof e||e instanceof String)return"string";if("number"==typeof e||e instanceof Number)return"number";if("function"==typeof e||e instanceof Function)return"function";if(void 0!==Array.isArray&&Array.isArray(e))return"array";if(e instanceof RegExp)return"regexp";if(e instanceof Date)return"date";var t=Hv.call(e);return"[object RegExp]"===t?"regexp":"[object Date]"===t?"date":"[object Arguments]"===t?"arguments":"[object Error]"===t?"error":em(e)?"buffer":"[object Set]"===t?"set":"[object WeakSet]"===t?"weakset":"[object Map]"===t?"map":"[object WeakMap]"===t?"weakmap":"[object Symbol]"===t?"symbol":"[object Int8Array]"===t?"int8array":"[object Uint8Array]"===t?"uint8array":"[object Uint8ClampedArray]"===t?"uint8clampedarray":"[object Int16Array]"===t?"int16array":"[object Uint16Array]"===t?"uint16array":"[object Int32Array]"===t?"int32array":"[object Uint32Array]"===t?"uint32array":"[object Float32Array]"===t?"float32array":"[object Float64Array]"===t?"float64array":"object"},Pv={configurable:"boolean",enumerable:"boolean",writable:"boolean"},Rv=function(e,t){return"object"===function(e){var t=typeof e;return"undefined"===t?"undefined":null===e?"null":!0===e||!1===e||e instanceof Boolean?"boolean":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?void 0!==e.constructor.name&&"Generator"===e.constructor.name.slice(0,9)?"generatorfunction":"function":void 0!==Array.isArray&&Array.isArray(e)?"array":e instanceof RegExp?"regexp":e instanceof Date?"date":"[object RegExp]"===(t=Lv.call(e))?"regexp":"[object Date]"===t?"date":"[object Arguments]"===t?"arguments":"[object Error]"===t?"error":"[object Promise]"===t?"promise":function(e){return e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}(e)?"buffer":"[object Set]"===t?"set":"[object WeakSet]"===t?"weakset":"[object Map]"===t?"map":"[object WeakMap]"===t?"weakmap":"[object Symbol]"===t?"symbol":"[object Map Iterator]"===t?"mapiterator":"[object Set Iterator]"===t?"setiterator":"[object String Iterator]"===t?"stringiterator":"[object Array Iterator]"===t?"arrayiterator":"[object Int8Array]"===t?"int8array":"[object Uint8Array]"===t?"uint8array":"[object Uint8ClampedArray]"===t?"uint8clampedarray":"[object Int16Array]"===t?"int16array":"[object Uint16Array]"===t?"uint16array":"[object Int32Array]"===t?"int32array":"[object Uint32Array]"===t?"uint32array":"[object Float32Array]"===t?"float32array":"[object Float64Array]"===t?"float64array":"object"}(e)&&("get"in e?function(e,t){if("string"==typeof t)return void 0!==Object.getOwnPropertyDescriptor(e,t);if("object"!==Iv(e))return!1;if(Dv(e,"value")||Dv(e,"writable"))return!1;if(!Dv(e,"get")||"function"!=typeof e.get)return!1;if(Dv(e,"set")&&"function"!=typeof e[r]&&void 0!==e[r])return!1;for(var r in e)if(Bv.hasOwnProperty(r)&&Iv(e[r])!==Bv[r]&&void 0!==e[r])return!1;return!0}(e,t):function(e,t){if("object"!==Ov(e))return!1;if("string"==typeof t)return void 0!==Object.getOwnPropertyDescriptor(e,t);if(!("value"in e)&&!("writable"in e))return!1;for(var r in e)if("value"!==r&&Pv.hasOwnProperty(r)&&Ov(e[r])!==Pv[r]&&void 0!==e[r])return!1;return!0}(e,t))},Vv=function(e,t,r){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("expected an object or function.");if("string"!=typeof t)throw new TypeError("expected `prop` to be a string.");return Rv(r)&&("set"in r||"get"in r)?Object.defineProperty(e,t,r):Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:r})},Nv=Object.prototype.toString,Fv=function(e){if(void 0===e)return"undefined";if(null===e)return"null";if(!0===e||!1===e||e instanceof Boolean)return"boolean";if("string"==typeof e||e instanceof String)return"string";if("number"==typeof e||e instanceof Number)return"number";if("function"==typeof e||e instanceof Function)return"function";if(void 0!==Array.isArray&&Array.isArray(e))return"array";if(e instanceof RegExp)return"regexp";if(e instanceof Date)return"date";var t=Nv.call(e);return"[object RegExp]"===t?"regexp":"[object Date]"===t?"date":"[object Arguments]"===t?"arguments":"[object Error]"===t?"error":em(e)?"buffer":"[object Set]"===t?"set":"[object WeakSet]"===t?"weakset":"[object Map]"===t?"map":"[object WeakMap]"===t?"weakmap":"[object Symbol]"===t?"symbol":"[object Int8Array]"===t?"int8array":"[object Uint8Array]"===t?"uint8array":"[object Uint8ClampedArray]"===t?"uint8clampedarray":"[object Int16Array]"===t?"int16array":"[object Uint16Array]"===t?"uint16array":"[object Int32Array]"===t?"int32array":"[object Uint32Array]"===t?"uint32array":"[object Float32Array]"===t?"float32array":"[object Float64Array]"===t?"float64array":"object"},jv=function(e,t,r,n){if(qv(t)||"function"==typeof t||(n=r,r=t,t=e),!qv(e)&&"function"!=typeof e)throw new TypeError("expected the first argument to be an object");if(!qv(t)&&"function"!=typeof t)throw new TypeError("expected provider to be an object");if("string"!=typeof n&&(n=r),"string"!=typeof r)throw new TypeError("expected key to be a string");if(!(r in t))throw new Error('property "'+r+'" does not exist');var i=Object.getOwnPropertyDescriptor(t,r);i&&Object.defineProperty(e,n,i)};function qv(e){return"[object Object]"==={}.toString.call(e)}function Uv(e){return"object"===Fv(e)||"function"==typeof e}function Wv(e,t){var r=(t=Xv(t)).length;if(Uv(e)){for(var n in e)if(t.indexOf(n)>-1)return!0;return Wv(Gv(e),t)}if(Array.isArray(e)){for(var i=e;r--;)if(i.indexOf(t[r])>-1)return!0;return!1}throw new TypeError("expected an array or object.")}function Xv(e){return e?Array.isArray(e)?e:[e]:[]}function Gv(e){return function(e){return Uv(e)&&void 0!==e.constructor}(e)?Object.getOwnPropertyNames(e):[]}var Yv=function(e,t,r){if(!Uv(e))throw new TypeError("expected receiving object to be an object.");if(!Uv(t))throw new TypeError("expected providing object to be an object.");var n=Gv(t),i=Object.keys(t),a=n.length;for(r=Xv(r);a--;){var o=n[a];Wv(i,o)?Vv(e,o,t[o]):o in e||Wv(r,o)||jv(e,t,o)}};Yv.has=Wv;var Zv=function e(t,r){if("function"!=typeof t)throw new TypeError("expected Parent to be a function.");return function(n,i){if("function"!=typeof n)throw new TypeError("expected Ctor to be a function.");if(sm.inherits(n,t),Yv(n,t),"object"==typeof i){var a=Object.create(i);for(var o in a)n.prototype[o]=a[o]}Vv(n.prototype,"_parent_",{configurable:!0,set:function(){},get:function(){return t.prototype}}),"function"==typeof r&&r(n,t),n.extend=e(n,r)}},Kv=Mc((function(e){var t=e.exports;t.isObject=function(e){return Np(e)||"function"==typeof e},t.has=function(e,r){var n=(r=t.arrayify(r)).length;if(t.isObject(e)){for(var i in e)if(r.indexOf(i)>-1)return!0;var a=t.nativeKeys(e);return t.has(a,r)}if(Array.isArray(e)){for(var o=e;n--;)if(o.indexOf(r[n])>-1)return!0;return!1}throw new TypeError("expected an array or object.")},t.hasAll=function(e,r){for(var n=(r=t.arrayify(r)).length;n--;)if(!t.has(e,r[n]))return!1;return!0},t.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},t.noop=function(){},t.identity=function(e){return e},t.hasConstructor=function(e){return t.isObject(e)&&void 0!==e.constructor},t.nativeKeys=function(e){if(!t.hasConstructor(e))return[];var r=Object.getOwnPropertyNames(e);return"caller"in e&&r.push("caller"),r},t.getDescriptor=function(e,r){if(!t.isObject(e))throw new TypeError("expected an object.");if("string"!=typeof r)throw new TypeError("expected key to be a string.");return Object.getOwnPropertyDescriptor(e,r)},t.copyDescriptor=function(e,r,n){if(!t.isObject(e))throw new TypeError("expected receiving object to be an object.");if(!t.isObject(r))throw new TypeError("expected providing object to be an object.");if("string"!=typeof n)throw new TypeError("expected name to be a string.");var i=t.getDescriptor(r,n);i&&Object.defineProperty(e,n,i)},t.copy=function(e,r,n){if(!t.isObject(e))throw new TypeError("expected receiving object to be an object.");if(!t.isObject(r))throw new TypeError("expected providing object to be an object.");var i,a=Object.getOwnPropertyNames(r),o=Object.keys(r),s=a.length;for(n=t.arrayify(n);s--;)i=a[s],t.has(o,i)?Vv(e,i,r[i]):i in e||t.has(n,i)||t.copyDescriptor(e,r,i)},t.inherit=function(e,r,n){if(!t.isObject(e))throw new TypeError("expected receiving object to be an object.");if(!t.isObject(r))throw new TypeError("expected providing object to be an object.");var i=[];for(var a in r)i.push(a),e[a]=r[a];i=i.concat(t.arrayify(n));var o=r.prototype||r,s=e.prototype||e;t.copy(s,o,i)},t.extend=function(){return Zv.apply(null,arguments)},t.bubble=function(e,r){r=r||[],e.bubble=function(n,i){Array.isArray(i)&&(r=hv([],r,i));for(var a=r.length,o=-1;++o<a;){var s=r[o];e.on(s,n.emit.bind(n,s))}t.bubble(n,r)}}}));function Jv(e){var t=e?Av.namespace(e):Av,r=[];function n(e,r){if(!(this instanceof n))return new n(e,r);t.call(this,e),this.is("base"),this.initBase(e,r)}return sm.inherits(n,t),nv(n),n.prototype.initBase=function(t,i){this.options=$v({},this.options,i),this.cache=this.cache||{},this.define("registered",{}),e&&(this[e]={}),this.define("_callbacks",this._callbacks),Np(t)&&this.visit("set",t),n.run(this,"use",r)},n.prototype.is=function(e){if("string"!=typeof e)throw new TypeError("expected name to be a string");return this.define("is"+function(e){if("string"!=typeof e)throw new TypeError("expected a string.");return 1===(e=e.replace(/([A-Z])/g," $1")).length?e.toUpperCase():(e=(e=e.replace(/^[\W_]+|[\W_]+$/g,"").toLowerCase()).charAt(0).toUpperCase()+e.slice(1)).replace(/[\W_]+(\w|$)/g,(function(e,t){return t.toUpperCase()}))}(e),!0),this.define("_name",e),this.define("_appname",e),this},n.prototype.isRegistered=function(e,t){return!!this.registered.hasOwnProperty(e)||(!1!==t&&(this.registered[e]=!0,this.emit("plugin",e)),!1)},n.prototype.use=function(e){return e.call(this,this),this},n.prototype.define=function(e,t){return Np(e)?this.visit("define",e):(rv(this,e,t),this)},n.prototype.mixin=function(e,t){return n.prototype[e]=t,this},n.prototype.mixins=n.prototype.mixins||[],Object.defineProperty(n.prototype,"base",{configurable:!0,get:function(){return this.parent?this.parent.base:this}}),rv(n,"use",(function(e){return r.push(e),n})),rv(n,"run",(function(e,t,r){for(var i=r.length,a=0;i--;)e[t](r[a++]);return n})),rv(n,"extend",Kv.extend(n,(function(e,t){return e.prototype.mixins=e.prototype.mixins||[],rv(e,"mixin",(function(t){var r=t(e.prototype,e);return"function"==typeof r&&e.prototype.mixins.push(r),e})),rv(e,"mixins",(function(t){return n.run(t,"mixin",e.prototype.mixins),e})),e.prototype.mixin=function(t,r){return e.prototype[t]=r,this},n}))),rv(n,"mixin",(function(e){var t=e(n.prototype,n);return"function"==typeof t&&n.prototype.mixins.push(t),n})),rv(n,"mixins",(function(e){return n.run(e,"mixin",n.prototype.mixins),n})),rv(n,"inherit",Kv.inherit),rv(n,"bubble",Kv.bubble),n}var Qv=Jv(),eb=Jv;Qv.namespace=eb;var tb=function e(t,r){if(!rb(t)&&"function"!=typeof t)throw new TypeError("expected an object or function");var n=rb(r)?r:{},i="string"==typeof n.prop?n.prop:"fns";function a(e,r,a){var o=1;if("string"==typeof e||Array.isArray(e)?(r=function(e,t){return function r(){return this.type===e?t.apply(this,arguments):r}}(e,r),o++):(a=r,r=e),"function"!=typeof r)throw new TypeError("expected a function");var s=this||t,l=s[i],c=[].slice.call(arguments,o);c.unshift(s),"function"==typeof n.hook&&n.hook.apply(s,c);var u=r.apply(s,c);return"function"==typeof u&&-1===l.indexOf(u)&&l.push(u),s}return Array.isArray(t[i])||nb(t,i,[]),nb(t,"use",a),nb(t,"run",(function(r){if(rb(r)){r.use&&r.run||(nb(r,i,r[i]||[]),nb(r,"use",a)),r[i]&&-1!==r[i].indexOf(e)||r.use(e);for(var n=(this||t)[i],o=n.length,s=-1;++s<o;)r.use(n[s]);return r}})),t};function rb(e){return e&&"object"==typeof e&&!Array.isArray(e)}function nb(e,t,r){Object.defineProperty(e,t,{configurable:!0,writable:!0,value:r})}var ib=1e3,ab=6e4,ob=60*ab,sb=24*ob,lb=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"days":case"day":case"d":return r*sb;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ob;case"minutes":case"minute":case"mins":case"min":case"m":return r*ab;case"seconds":case"second":case"secs":case"sec":case"s":return r*ib;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===r&&!1===isNaN(e))return t.long?function(e){return cb(e,sb,"day")||cb(e,ob,"hour")||cb(e,ab,"minute")||cb(e,ib,"second")||e+" ms"}(e):function(e){return e>=sb?Math.round(e/sb)+"d":e>=ob?Math.round(e/ob)+"h":e>=ab?Math.round(e/ab)+"m":e>=ib?Math.round(e/ib)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function cb(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}var ub=Mc((function(e,t){var r;function n(e){function n(){if(n.enabled){var e=n,i=+new Date,a=i-(r||i);e.diff=a,e.prev=r,e.curr=i,r=i;for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var l=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(r,n){if("%%"===r)return r;l++;var i=t.formatters[n];if("function"==typeof i){var a=o[l];r=i.call(e,a),o.splice(l,1),l--}return r})),t.formatArgs.call(e,o),(n.log||t.log||console.log.bind(console)).apply(e,o)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var r,n=0;for(r in e)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=n.debug=n.default=n).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length,i=0;i<n;i++)r[i]&&("-"===(e=r[i].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=lb,t.names=[],t.skips=[],t.formatters={}})),pb=Mc((function(e,t){function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==vh&&"env"in vh&&(e=vh.env.DEBUG),e}(t=e.exports=ub).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),r){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0,a=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(i++,"%c"===e&&(a=i))})),e.splice(a,0,n)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())})),db="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),hb=function(e){if(0<=e&&e<db.length)return db[e];throw new TypeError("Must be between 0 and 63: "+e)},mb=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1},gb=function(e){var t,r="",n=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&n,(n>>>=5)>0&&(t|=32),r+=hb(t)}while(n>0);return r},fb=function(e,t,r){var n,i,a,o,s=e.length,l=0,c=0;do{if(t>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=mb(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));n=!!(32&i),l+=(i&=31)<<c,c+=5}while(n);r.value=(o=(a=l)>>1,1==(1&a)?-o:o),r.rest=t},vb=Mc((function(e,t){t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,n=/^data:.+\,.+$/;function i(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var r=e,n=i(e);if(n){if(!n.path)return e;r=n.path}for(var o,s=t.isAbsolute(r),l=r.split(/\/+/),c=0,u=l.length-1;u>=0;u--)"."===(o=l[u])?l.splice(u,1):".."===o?c++:c>0&&(""===o?(l.splice(u+1,c),c=0):(l.splice(u,2),c--));return""===(r=l.join("/"))&&(r=s?"/":"."),n?(n.path=r,a(n)):r}t.urlParse=i,t.urlGenerate=a,t.normalize=o,t.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),s=i(e);if(s&&(e=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),a(r);if(r||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var l="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=l,a(s)):l},t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(r)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var s=!("__proto__"in Object.create(null));function l(e){return e}function c(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function u(e,t){return e===t?0:e>t?1:-1}t.toSetString=s?l:function(e){return c(e)?"$"+e:e},t.fromSetString=s?l:function(e){return c(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=e.source-t.source;return 0!==n||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)||r||0!=(n=e.generatedColumn-t.generatedColumn)||0!=(n=e.generatedLine-t.generatedLine)?n:e.name-t.name},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||r||0!=(n=e.source-t.source)||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:e.name-t.name},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||0!==(r=u(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:u(e.name,t.name)}})),bb=Object.prototype.hasOwnProperty,yb="undefined"!=typeof Map;function xb(){this._array=[],this._set=yb?new Map:Object.create(null)}xb.fromArray=function(e,t){for(var r=new xb,n=0,i=e.length;n<i;n++)r.add(e[n],t);return r},xb.prototype.size=function(){return yb?this._set.size:Object.getOwnPropertyNames(this._set).length},xb.prototype.add=function(e,t){var r=yb?e:vb.toSetString(e),n=yb?this.has(e):bb.call(this._set,r),i=this._array.length;n&&!t||this._array.push(e),n||(yb?this._set.set(e,i):this._set[r]=i)},xb.prototype.has=function(e){if(yb)return this._set.has(e);var t=vb.toSetString(e);return bb.call(this._set,t)},xb.prototype.indexOf=function(e){if(yb){var t=this._set.get(e);if(t>=0)return t}else{var r=vb.toSetString(e);if(bb.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},xb.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},xb.prototype.toArray=function(){return this._array.slice()};var wb=xb;function zb(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}zb.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},zb.prototype.add=function(e){var t,r,n,i,a,o;r=e,n=(t=this._last).generatedLine,i=r.generatedLine,a=t.generatedColumn,o=r.generatedColumn,i>n||i==n&&o>=a||vb.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},zb.prototype.toArray=function(){return this._sorted||(this._array.sort(vb.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};var kb=wb,Ab={MappingList:zb}.MappingList;function Cb(e){e||(e={}),this._file=vb.getArg(e,"file",null),this._sourceRoot=vb.getArg(e,"sourceRoot",null),this._skipValidation=vb.getArg(e,"skipValidation",!1),this._sources=new kb,this._names=new kb,this._mappings=new Ab,this._sourcesContents=null}Cb.prototype._version=3,Cb.fromSourceMap=function(e){var t=e.sourceRoot,r=new Cb({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=vb.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&r.setSourceContent(t,n)})),r},Cb.prototype.addMapping=function(e){var t=vb.getArg(e,"generated"),r=vb.getArg(e,"original",null),n=vb.getArg(e,"source",null),i=vb.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,i),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:i})},Cb.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=vb.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[vb.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[vb.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},Cb.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var i=this._sourceRoot;null!=i&&(n=vb.relative(i,n));var a=new kb,o=new kb;this._mappings.unsortedForEach((function(t){if(t.source===n&&null!=t.originalLine){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=s.source&&(t.source=s.source,null!=r&&(t.source=vb.join(r,t.source)),null!=i&&(t.source=vb.relative(i,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.name))}var l=t.source;null==l||a.has(l)||a.add(l);var c=t.name;null==c||o.has(c)||o.add(c)}),this),this._sources=a,this._names=o,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=vb.join(r,t)),null!=i&&(t=vb.relative(i,t)),this.setSourceContent(t,n))}),this)},Cb.prototype._validateMapping=function(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},Cb.prototype._serializeMappings=function(){for(var e,t,r,n,i=0,a=1,o=0,s=0,l=0,c=0,u="",p=this._mappings.toArray(),d=0,h=p.length;d<h;d++){if(e="",(t=p[d]).generatedLine!==a)for(i=0;t.generatedLine!==a;)e+=";",a++;else if(d>0){if(!vb.compareByGeneratedPositionsInflated(t,p[d-1]))continue;e+=","}e+=gb(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=gb(n-c),c=n,e+=gb(t.originalLine-1-s),s=t.originalLine-1,e+=gb(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=gb(r-l),l=r)),u+=e}return u},Cb.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=vb.relative(t,e));var r=vb.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},Cb.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},Cb.prototype.toString=function(){return JSON.stringify(this.toJSON())};var Sb={SourceMapGenerator:Cb},_b=Mc((function(e,t){function r(e,n,i,a,o,s){var l=Math.floor((n-e)/2)+e,c=o(i,a[l],!0);return 0===c?l:c>0?n-l>1?r(l,n,i,a,o,s):s==t.LEAST_UPPER_BOUND?n<a.length?n:-1:l:l-e>1?r(e,l,i,a,o,s):s==t.LEAST_UPPER_BOUND?l:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,i,a){if(0===n.length)return-1;var o=r(-1,n.length,e,n,i,a||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===i(n[o],n[o-1],!0);)--o;return o}}));function Mb(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Tb(e,t,r,n){if(r<n){var i=r-1;Mb(e,(l=r,c=n,Math.round(l+Math.random()*(c-l))),n);for(var a=e[n],o=r;o<n;o++)t(e[o],a)<=0&&Mb(e,i+=1,o);Mb(e,i+1,o);var s=i+1;Tb(e,t,r,s-1),Tb(e,t,s+1,n)}var l,c}var $b=wb,Lb=function(e,t){Tb(e,t,0,e.length-1)};function Eb(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new Ob(t):new Bb(t)}Eb.fromSourceMap=function(e){return Bb.fromSourceMap(e)},Eb.prototype._version=3,Eb.prototype.__generatedMappings=null,Object.defineProperty(Eb.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),Eb.prototype.__originalMappings=null,Object.defineProperty(Eb.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),Eb.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return";"===r||","===r},Eb.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},Eb.GENERATED_ORDER=1,Eb.ORIGINAL_ORDER=2,Eb.GREATEST_LOWER_BOUND=1,Eb.LEAST_UPPER_BOUND=2,Eb.prototype.eachMapping=function(e,t,r){var n,i=t||null;switch(r||Eb.GENERATED_ORDER){case Eb.GENERATED_ORDER:n=this._generatedMappings;break;case Eb.ORIGINAL_ORDER:n=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;n.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=a&&(t=vb.join(a,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,i)},Eb.prototype.allGeneratedPositionsFor=function(e){var t=vb.getArg(e,"line"),r={source:vb.getArg(e,"source"),originalLine:t,originalColumn:vb.getArg(e,"column",0)};if(null!=this.sourceRoot&&(r.source=vb.relative(this.sourceRoot,r.source)),!this._sources.has(r.source))return[];r.source=this._sources.indexOf(r.source);var n=[],i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",vb.compareByOriginalPositions,_b.LEAST_UPPER_BOUND);if(i>=0){var a=this._originalMappings[i];if(void 0===e.column)for(var o=a.originalLine;a&&a.originalLine===o;)n.push({line:vb.getArg(a,"generatedLine",null),column:vb.getArg(a,"generatedColumn",null),lastColumn:vb.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var s=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==s;)n.push({line:vb.getArg(a,"generatedLine",null),column:vb.getArg(a,"generatedColumn",null),lastColumn:vb.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i]}return n};var Ib=Eb;function Bb(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=vb.getArg(t,"version"),n=vb.getArg(t,"sources"),i=vb.getArg(t,"names",[]),a=vb.getArg(t,"sourceRoot",null),o=vb.getArg(t,"sourcesContent",null),s=vb.getArg(t,"mappings"),l=vb.getArg(t,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);n=n.map(String).map(vb.normalize).map((function(e){return a&&vb.isAbsolute(a)&&vb.isAbsolute(e)?vb.relative(a,e):e})),this._names=$b.fromArray(i.map(String),!0),this._sources=$b.fromArray(n,!0),this.sourceRoot=a,this.sourcesContent=o,this._mappings=s,this.file=l}function Db(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}Bb.prototype=Object.create(Eb.prototype),Bb.prototype.consumer=Eb,Bb.fromSourceMap=function(e){var t=Object.create(Bb.prototype),r=t._names=$b.fromArray(e._names.toArray(),!0),n=t._sources=$b.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var i=e._mappings.toArray().slice(),a=t.__generatedMappings=[],o=t.__originalMappings=[],s=0,l=i.length;s<l;s++){var c=i[s],u=new Db;u.generatedLine=c.generatedLine,u.generatedColumn=c.generatedColumn,c.source&&(u.source=n.indexOf(c.source),u.originalLine=c.originalLine,u.originalColumn=c.originalColumn,c.name&&(u.name=r.indexOf(c.name)),o.push(u)),a.push(u)}return Lb(t.__originalMappings,vb.compareByOriginalPositions),t},Bb.prototype._version=3,Object.defineProperty(Bb.prototype,"sources",{get:function(){return this._sources.toArray().map((function(e){return null!=this.sourceRoot?vb.join(this.sourceRoot,e):e}),this)}}),Bb.prototype._parseMappings=function(e,t){for(var r,n,i,a,o,s=1,l=0,c=0,u=0,p=0,d=0,h=e.length,m=0,g={},f={},v=[],b=[];m<h;)if(";"===e.charAt(m))s++,m++,l=0;else if(","===e.charAt(m))m++;else{for((r=new Db).generatedLine=s,a=m;a<h&&!this._charIsMappingSeparator(e,a);a++);if(i=g[n=e.slice(m,a)])m+=n.length;else{for(i=[];m<a;)fb(e,m,f),o=f.value,m=f.rest,i.push(o);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");g[n]=i}r.generatedColumn=l+i[0],l=r.generatedColumn,i.length>1&&(r.source=p+i[1],p+=i[1],r.originalLine=c+i[2],c=r.originalLine,r.originalLine+=1,r.originalColumn=u+i[3],u=r.originalColumn,i.length>4&&(r.name=d+i[4],d+=i[4])),b.push(r),"number"==typeof r.originalLine&&v.push(r)}Lb(b,vb.compareByGeneratedPositionsDeflated),this.__generatedMappings=b,Lb(v,vb.compareByOriginalPositions),this.__originalMappings=v},Bb.prototype._findMapping=function(e,t,r,n,i,a){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return _b.search(e,t,i,a)},Bb.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},Bb.prototype.originalPositionFor=function(e){var t={generatedLine:vb.getArg(e,"line"),generatedColumn:vb.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",vb.compareByGeneratedPositionsDeflated,vb.getArg(e,"bias",Eb.GREATEST_LOWER_BOUND));if(r>=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var i=vb.getArg(n,"source",null);null!==i&&(i=this._sources.at(i),null!=this.sourceRoot&&(i=vb.join(this.sourceRoot,i)));var a=vb.getArg(n,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:vb.getArg(n,"originalLine",null),column:vb.getArg(n,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},Bb.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},Bb.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=vb.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var r;if(null!=this.sourceRoot&&(r=vb.urlParse(this.sourceRoot))){var n=e.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(n))return this.sourcesContent[this._sources.indexOf(n)];if((!r.path||"/"==r.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},Bb.prototype.generatedPositionFor=function(e){var t=vb.getArg(e,"source");if(null!=this.sourceRoot&&(t=vb.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var r={source:t=this._sources.indexOf(t),originalLine:vb.getArg(e,"line"),originalColumn:vb.getArg(e,"column")},n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",vb.compareByOriginalPositions,vb.getArg(e,"bias",Eb.GREATEST_LOWER_BOUND));if(n>=0){var i=this._originalMappings[n];if(i.source===r.source)return{line:vb.getArg(i,"generatedLine",null),column:vb.getArg(i,"generatedColumn",null),lastColumn:vb.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var Hb=Bb;function Ob(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=vb.getArg(t,"version"),n=vb.getArg(t,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new $b,this._names=new $b;var i={line:-1,column:0};this._sections=n.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=vb.getArg(e,"offset"),r=vb.getArg(t,"line"),n=vb.getArg(t,"column");if(r<i.line||r===i.line&&n<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=t,{generatedOffset:{generatedLine:r+1,generatedColumn:n+1},consumer:new Eb(vb.getArg(e,"map"))}}))}Ob.prototype=Object.create(Eb.prototype),Ob.prototype.constructor=Eb,Ob.prototype._version=3,Object.defineProperty(Ob.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}}),Ob.prototype.originalPositionFor=function(e){var t={generatedLine:vb.getArg(e,"line"),generatedColumn:vb.getArg(e,"column")},r=_b.search(t,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),n=this._sections[r];return n?n.consumer.originalPositionFor({line:t.generatedLine-(n.generatedOffset.generatedLine-1),column:t.generatedColumn-(n.generatedOffset.generatedLine===t.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},Ob.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},Ob.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r].consumer.sourceContentFor(e,!0);if(n)return n}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},Ob.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(-1!==r.consumer.sources.indexOf(vb.getArg(e,"source"))){var n=r.consumer.generatedPositionFor(e);if(n)return{line:n.line+(r.generatedOffset.generatedLine-1),column:n.column+(r.generatedOffset.generatedLine===n.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},Ob.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var n=this._sections[r],i=n.consumer._generatedMappings,a=0;a<i.length;a++){var o=i[a],s=n.consumer._sources.at(o.source);null!==n.consumer.sourceRoot&&(s=vb.join(n.consumer.sourceRoot,s)),this._sources.add(s),s=this._sources.indexOf(s);var l=n.consumer._names.at(o.name);this._names.add(l),l=this._names.indexOf(l);var c={source:s,generatedLine:o.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:o.generatedColumn+(n.generatedOffset.generatedLine===o.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:o.originalLine,originalColumn:o.originalColumn,name:l};this.__generatedMappings.push(c),"number"==typeof c.originalLine&&this.__originalMappings.push(c)}Lb(this.__generatedMappings,vb.compareByGeneratedPositionsDeflated),Lb(this.__originalMappings,vb.compareByOriginalPositions)};var Pb={SourceMapConsumer:Ib,BasicSourceMapConsumer:Hb,IndexedSourceMapConsumer:Ob},Rb=Sb.SourceMapGenerator,Vb=/(\r?\n)/,Nb="$$$isSourceNode$$$";function Fb(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[Nb]=!0,null!=n&&this.add(n)}Fb.fromStringWithSourceMap=function(e,t,r){var n=new Fb,i=e.split(Vb),a=0,o=function(){return e()+(e()||"");function e(){return a<i.length?i[a++]:void 0}},s=1,l=0,c=null;return t.eachMapping((function(e){if(null!==c){if(!(s<e.generatedLine)){var t=(r=i[a]).substr(0,e.generatedColumn-l);return i[a]=r.substr(e.generatedColumn-l),l=e.generatedColumn,u(c,t),void(c=e)}u(c,o()),s++,l=0}for(;s<e.generatedLine;)n.add(o()),s++;if(l<e.generatedColumn){var r=i[a];n.add(r.substr(0,e.generatedColumn)),i[a]=r.substr(e.generatedColumn),l=e.generatedColumn}c=e}),this),a<i.length&&(c&&u(c,o()),n.add(i.splice(a).join(""))),t.sources.forEach((function(e){var i=t.sourceContentFor(e);null!=i&&(null!=r&&(e=vb.join(r,e)),n.setSourceContent(e,i))})),n;function u(e,t){if(null===e||void 0===e.source)n.add(t);else{var i=r?vb.join(r,e.source):e.source;n.add(new Fb(e.originalLine,e.originalColumn,i,t,e.name))}}},Fb.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[Nb]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},Fb.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[Nb]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},Fb.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r<n;r++)(t=this.children[r])[Nb]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},Fb.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},Fb.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[Nb]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},Fb.prototype.setSourceContent=function(e,t){this.sourceContents[vb.toSetString(e)]=t},Fb.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][Nb]&&this.children[t].walkSourceContents(e);var n=Object.keys(this.sourceContents);for(t=0,r=n.length;t<r;t++)e(vb.fromSetString(n[t]),this.sourceContents[n[t]])},Fb.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},Fb.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new Rb(e),n=!1,i=null,a=null,o=null,s=null;return this.walk((function(e,l){t.code+=e,null!==l.source&&null!==l.line&&null!==l.column?(i===l.source&&a===l.line&&o===l.column&&s===l.name||r.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:t.line,column:t.column},name:l.name}),i=l.source,a=l.line,o=l.column,s=l.name,n=!0):n&&(r.addMapping({generated:{line:t.line,column:t.column}}),i=null,n=!1);for(var c=0,u=e.length;c<u;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===u?(i=null,n=!1):n&&r.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:t.line,column:t.column},name:l.name})):t.column++})),this.walkSourceContents((function(e,t){r.setSourceContent(e,t)})),{code:t.code,map:r}};var jb={SourceMapGenerator:Sb.SourceMapGenerator,SourceMapConsumer:Pb.SourceMapConsumer,SourceNode:{SourceNode:Fb}.SourceNode},qb=Mc((function(e,t){e.exports=function(){var e=/[#@] sourceMappingURL=([^\s'"]*)/,t=RegExp("(?:/\\*(?:\\s*\r?\n(?://)?)?(?:"+e.source+")\\s*\\*/|//(?:"+e.source+"))\\s*");return{regex:t,_innerRegex:e,getFrom:function(e){var r=e.match(t);return r?r[1]||r[2]||"":null},existsIn:function(e){return t.test(e)},removeFrom:function(e){return e.replace(t,"")},insertBefore:function(e,r){var n=e.match(t);return n?e.slice(0,n.index)+r+e.slice(n.index):e+r}}}()})),Ub=Mc((function(e,t){e.exports=function(){var e=arguments.length;if(0===e)throw new Error("resolveUrl requires at least one argument; got none.");var t=document.createElement("base");if(t.href=arguments[0],1===e)return t.href;var r=document.getElementsByTagName("head")[0];r.insertBefore(t,r.firstChild);for(var n,i=document.createElement("a"),a=1;a<e;a++)i.href=arguments[a],n=i.href,t.href=n;return r.removeChild(t),n}})),Wb=Mc((function(e,t){var r,n;r=qb,n=Ub,e.exports=function(e,t){function r(e,t,r){setImmediate((function(){e(t,r)}))}function n(e,t){try{return JSON.parse(e.replace(/^\)\]\}'/,""))}catch(e){throw e.sourceMapData=t,e}}function i(e,t,r){var n=t;try{return String(e(n))}catch(e){throw e.sourceMapData=r,e}}function a(e,t,i,a){var o;try{o=p(e,t)}catch(e){return r(a,e)}if(!o||o.map)return r(a,null,o);i(o.url,(function(e,t){if(e)return e.sourceMapData=o,a(e);o.map=String(t);try{o.map=n(o.map,o)}catch(e){return a(e)}a(null,o)}))}function o(e,t,r){var a=p(e,t);return!a||a.map||(a.map=i(r,a.url,a),a.map=n(a.map,a)),a}var s=/^data:([^,;]*)(;[^,;]*)*(?:,(.*))?$/,l=/^(?:application|text)\/json$/,c="utf-8";function u(e){if("undefined"==typeof TextDecoder||"undefined"==typeof Uint8Array)return atob(e);var t=function(e){for(var t=atob(e),r=t.length,n=new Uint8Array(r),i=0;i<r;i++)n[i]=t.charCodeAt(i);return n}(e);return new TextDecoder(c,{fatal:!0}).decode(t)}function p(r,i){var a=e.getFrom(r);if(!a)return null;var o=a.match(s);if(o){var c=o[1]||"text/plain",p=o[2]||"",d=o[3]||"",h={sourceMappingURL:a,url:null,sourcesRelativeTo:i,map:d};if(!l.test(c)){var m=new Error("Unuseful data uri mime type: "+c);throw m.sourceMapData=h,m}try{h.map=n(";base64"===p?u(d):decodeURIComponent(d),h)}catch(m){throw m.sourceMapData=h,m}return h}var g=t(i,a);return{sourceMappingURL:a,url:g,sourcesRelativeTo:g,map:null}}function d(e,t,n,i,a){"function"==typeof i&&(a=i,i={});var o=e.sources?e.sources.length:0,s={sourcesResolved:[],sourcesContent:[]};if(0!==o){var l=function(){0==--o&&a(null,s)};g(e,t,i,(function(e,t,i){s.sourcesResolved[i]=e,"string"==typeof t?(s.sourcesContent[i]=t,r(l,null)):n(e,(function(e,t){s.sourcesContent[i]=e||String(t),l()}))}))}else r(a,null,s)}function h(e,t,r,n){var i={sourcesResolved:[],sourcesContent:[]};return e.sources&&0!==e.sources.length?(g(e,t,n,(function(e,t,n){if(i.sourcesResolved[n]=e,null!==r)if("string"==typeof t)i.sourcesContent[n]=t;else{var a=e;try{i.sourcesContent[n]=String(r(a))}catch(e){i.sourcesContent[n]=e}}})),i):i}var m=/\/?$/;function g(e,r,n,i){var a;n=n||{};for(var o=0,s=e.sources.length;o<s;o++)a=null,"string"==typeof n.sourceRoot?a=n.sourceRoot:"string"==typeof e.sourceRoot&&!1!==n.sourceRoot&&(a=e.sourceRoot),i(null===a||""===a?t(r,e.sources[o]):t(r,a.replace(m,"/"),e.sources[o]),(e.sourcesContent||[])[o],o)}return{resolveSourceMap:a,resolveSourceMapSync:o,resolveSources:d,resolveSourcesSync:h,resolve:function(e,t,r,i,o){if("function"==typeof i&&(o=i,i={}),null===e){var s={sourceMappingURL:null,url:t,sourcesRelativeTo:t,map:null};r(t,(function(e,t){if(e)return e.sourceMapData=s,o(e);s.map=String(t);try{s.map=n(s.map,s)}catch(e){return o(e)}l(s)}))}else a(e,t,r,(function(e,t){return e?o(e):t?void l(t):o(null,null)}));function l(e){d(e.map,e.sourcesRelativeTo,r,i,(function(t,r){if(t)return o(t);e.sourcesResolved=r.sourcesResolved,e.sourcesContent=r.sourcesContent,o(null,e)}))}},resolveSync:function(e,t,r,a){var s;if(null===e)(s={sourceMappingURL:null,url:t,sourcesRelativeTo:t,map:null}).map=i(r,t,s),s.map=n(s.map,s);else if(!(s=o(e,t,r)))return null;var l=h(s.map,s.sourcesRelativeTo,r,a);return s.sourcesResolved=l.sourcesResolved,s.sourcesContent=l.sourcesContent,s},parseMapToJSON:n}}(r,n)})),Xb={extend:mv,SourceMap:jb,sourceMapResolve:Wb,unixify:function(e){return e.split(/\\+/).join("/")},isString:function(e){return e&&"string"==typeof e},arrayify:function(e){return"string"==typeof e?[e]:e?Array.isArray(e)?e:[e]:[]},last:function(e,t){return e[e.length-(t||1)]}},Gb=Mc((function(e,t){e.exports=function(e){for(var r in Vv(e,"_comment",e.comment),e.map=new Xb.SourceMap.SourceMapGenerator,e.position={line:1,column:1},e.content={},e.files={},t)Vv(e,r,t[r])},t.updatePosition=function(e){var t=e.match(/\n/g);t&&(this.position.line+=t.length);var r=e.lastIndexOf("\n");this.position.column=~r?e.length-r:this.position.column+e.length},t.emit=function(e,t){var r=t.position||{},n=r.source;return n&&(r.filepath&&(n=Xb.unixify(r.filepath)),this.map.addMapping({source:n,generated:{line:this.position.line,column:Math.max(this.position.column-1,0)},original:{line:r.start.line,column:r.start.column-1}}),r.content&&this.addContent(n,r),r.filepath&&this.addFile(n,r),this.updatePosition(e),this.output+=e),e},t.addFile=function(e,t){"string"==typeof t.content&&(Object.prototype.hasOwnProperty.call(this.files,e)||(this.files[e]=t.content))},t.addContent=function(e,t){"string"==typeof t.content&&(Object.prototype.hasOwnProperty.call(this.content,e)||this.map.setSourceContent(e,t.content))},t.applySourceMaps=function(){Object.keys(this.files).forEach((function(e){var t=this.files[e];if(this.map.setSourceContent(e,t),!0===this.options.inputSourcemaps){var r=Xb.sourceMapResolve.resolveSync(t,e,Dp.readFileSync);if(r){var n=new Xb.SourceMap.SourceMapConsumer(r.map),i=r.sourcesRelativeTo;this.map.applySourceMap(n,e,Xb.unixify(Jm.dirname(i)))}}}),this)},t.comment=function(e){return/^# sourceMappingURL=/.test(e.comment)?this.emit("",e.position):this._comment(e)}})),Yb=pb("snapdragon:compiler");function Zb(e,t){Yb("initializing","/home/runner/work/budibase-deploys/budibase-deploys/node_modules/snapdragon/lib/compiler.js"),this.options=Xb.extend({source:"string"},e),this.state=t||{},this.compilers={},this.output="",this.set("eos",(function(e){return this.emit(e.val,e)})),this.set("noop",(function(e){return this.emit(e.val,e)})),this.set("bos",(function(e){return this.emit(e.val,e)})),tb(this)}Zb.prototype={error:function(e,t){var r=t.position||{start:{column:0}},n=this.options.source+" column:"+r.start.column+": "+e,i=new Error(n);if(i.reason=e,i.column=r.start.column,i.source=this.pattern,!this.options.silent)throw i;this.errors.push(i)},define:function(e,t){return Vv(this,e,t),this},emit:function(e,t){return this.output+=e,e},set:function(e,t){return this.compilers[e]=t,this},get:function(e){return this.compilers[e]},prev:function(e){return this.ast.nodes[this.idx-(e||1)]||{type:"bos",val:""}},next:function(e){return this.ast.nodes[this.idx+(e||1)]||{type:"eos",val:""}},visit:function(e,t,r){var n=this.compilers[e.type];if(this.idx=r,"function"!=typeof n)throw this.error('compiler "'+e.type+'" is not registered',e);return n.call(this,e,t,r)},mapVisit:function(e){if(!Array.isArray(e))throw new TypeError("expected an array");for(var t=e.length,r=-1;++r<t;)this.visit(e[r],e,r);return this},compile:function(e,t){var r=Xb.extend({},this.options,t);return this.ast=e,this.parsingErrors=this.ast.errors,this.output="",r.sourcemap?(Gb(this),this.mapVisit(this.ast.nodes),this.applySourceMaps(),this.map="generator"===r.sourcemap?this.map:this.map.toJSON(),this):(this.mapVisit(this.ast.nodes),this)}};var Kb=Zb,Jb=Object.prototype.hasOwnProperty,Qb=ey;function ey(e){this.__data__=e||{}}ey.prototype.set=function(e,t){return"__proto__"!==e&&(this.__data__[e]=t),this},ey.prototype.get=function(e){return"__proto__"===e?void 0:this.__data__[e]},ey.prototype.has=function(e){return"__proto__"!==e&&Jb.call(this.__data__,e)},ey.prototype.del=function(e){return this.has(e)&&delete this.__data__[e]};var ty=function(e,t){this.start=e,this.end={line:t.line,column:t.column},Vv(this,"content",t.orig),Vv(this,"source",t.options.source)},ry=pb("snapdragon:parser");function ny(e){ry("initializing","/home/runner/work/budibase-deploys/budibase-deploys/node_modules/snapdragon/lib/parser.js"),this.options=Xb.extend({source:"string"},e),this.init(this.options),tb(this)}function iy(e,t){return e.visited?e:(Vv(e,"visited",!0),e.nodes?function(e,t){for(var r=e.length,n=-1;++n<r;)iy(e[n],t)}(e.nodes,t):t(e))}function ay(e){return function(e){return e.nodes&&e.nodes[0].type===e.type+".open"}(e)&&function(e){return e.nodes&&Xb.last(e.nodes).type===e.type+".close"}(e)}ny.prototype={constructor:ny,init:function(e){this.orig="",this.input="",this.parsed="",this.column=1,this.line=1,this.regex=new Qb,this.errors=this.errors||[],this.parsers=this.parsers||{},this.types=this.types||[],this.sets=this.sets||{},this.fns=this.fns||[],this.currentType="root";var t=this.position();this.bos=t({type:"bos",val:""}),this.ast={type:"root",errors:this.errors,nodes:[this.bos]},Vv(this.bos,"parent",this.ast),this.nodes=[this.ast],this.count=0,this.setCount=0,this.stack=[]},error:function(e,t){var r=t.position||{start:{column:0,line:0}},n=r.start.line,i=r.start.column,a=this.options.source,o=new Error(a+" <line:"+n+" column:"+i+">: "+e);if(o.source=a,o.reason=e,o.pos=r,!this.options.silent)throw o;this.errors.push(o)},define:function(e,t){return Vv(this,e,t),this},position:function(){var e={line:this.line,column:this.column},t=this;return function(r){return Vv(r,"position",new ty(e,t)),r}},set:function(e,t){return-1===this.types.indexOf(e)&&this.types.push(e),this.parsers[e]=t.bind(this),this},get:function(e){return this.parsers[e]},push:function(e,t){return this.sets[e]=this.sets[e]||[],this.count++,this.stack.push(t),this.sets[e].push(t)},pop:function(e){return this.sets[e]=this.sets[e]||[],this.count--,this.stack.pop(),this.sets[e].pop()},isInside:function(e){return this.sets[e]=this.sets[e]||[],this.sets[e].length>0},isType:function(e,t){return e&&e.type===t},prev:function(e){return this.stack.length>0?Xb.last(this.stack,e):Xb.last(this.nodes,e)},consume:function(e){this.input=this.input.substr(e)},updatePosition:function(e,t){var r=e.match(/\n/g);r&&(this.line+=r.length);var n=e.lastIndexOf("\n");this.column=~n?t-n:this.column+t,this.parsed+=e,this.consume(t)},match:function(e){var t=e.exec(this.input);if(t)return this.updatePosition(t[0],t[0].length),t},capture:function(e,t){return"function"==typeof t?this.set.apply(this,arguments):(this.regex.set(e,t),this.set(e,function(){var r=this.parsed,n=this.position(),i=this.match(t);if(i&&i[0]){var a=this.prev(),o=n({type:e,val:i[0],parsed:r,rest:this.input});i[1]&&(o.inner=i[1]),Vv(o,"inside",this.stack.length>0),Vv(o,"parent",a),a.nodes.push(o)}}.bind(this)),this)},capturePair:function(e,t,r,n){return this.sets[e]=this.sets[e]||[],this.set(e+".open",(function(){var r=this.parsed,i=this.position(),a=this.match(t);if(a&&a[0]){var o=a[0];this.setCount++,this.specialChars=!0;var s=i({type:e+".open",val:o,rest:this.input});void 0!==a[1]&&(s.inner=a[1]);var l=this.prev(),c=i({type:e,nodes:[s]});Vv(c,"rest",this.input),Vv(c,"parsed",r),Vv(c,"prefix",a[1]),Vv(c,"parent",l),Vv(s,"parent",c),"function"==typeof n&&n.call(this,s,c),this.push(e,c),l.nodes.push(c)}})),this.set(e+".close",(function(){var t=this.position(),n=this.match(r);if(n&&n[0]){var i=this.pop(e),a=t({type:e+".close",rest:this.input,suffix:n[1],val:n[0]});if(!this.isType(i,e)){if(this.options.strict)throw new Error('missing opening "'+e+'"');return this.setCount--,a.escaped=!0,a}"\\"===a.suffix&&(i.escaped=!0,a.escaped=!0),i.nodes.push(a),Vv(a,"parent",i)}})),this},eos:function(){var e=this.position();if(!this.input){for(var t=this.prev();"root"!==t.type&&!t.visited;){if(!0===this.options.strict)throw new SyntaxError("invalid syntax:"+sm.inspect(t,null,2));ay(t)||(t.parent.escaped=!0,t.escaped=!0),iy(t,(function(e){ay(e.parent)||(e.parent.escaped=!0,e.escaped=!0)})),t=t.parent}var r=e({type:"eos",val:this.append||""});return Vv(r,"parent",this.ast),r}},next:function(){for(var e,t=this.parsed,r=this.types.length,n=-1;++n<r;)if(e=this.parsers[this.types[n]].call(this))return Vv(e,"rest",this.input),Vv(e,"parsed",t),this.last=e,e},parse:function(e){if("string"!=typeof e)throw new TypeError("expected a string");this.init(this.options),this.orig=e,this.input=e;var t=this;function r(){e=t.input;var r=t.next();if(r){var n=t.prev();n&&(Vv(r,"parent",n),n.nodes&&n.nodes.push(r)),t.sets.hasOwnProperty(n.type)&&(t.currentType=n.type)}if(t.input&&e===t.input)throw new Error('no parsers registered for: "'+t.input.slice(0,5)+'"')}for(;this.input;)r();if(this.stack.length&&this.options.strict){var n=this.stack.pop();throw this.error("missing opening "+n.type+': "'+this.orig+'"')}var i=this.eos();return"eos"!==this.prev().type&&this.ast.nodes.push(i),this.ast}};var oy=ny;function sy(e){Qv.call(this,null,e),this.options=Xb.extend({source:"string"},this.options),this.compiler=new Kb(this.options),this.parser=new oy(this.options),Object.defineProperty(this,"compilers",{get:function(){return this.compiler.compilers}}),Object.defineProperty(this,"parsers",{get:function(){return this.parser.parsers}}),Object.defineProperty(this,"regex",{get:function(){return this.parser.regex}})}Qv.extend(sy),sy.prototype.capture=function(){return this.parser.capture.apply(this.parser,arguments)},sy.prototype.use=function(e){return e.call(this,this),this},sy.prototype.parse=function(e,t){this.options=Xb.extend({},this.options,t);var r=this.parser.parse(e,this.options);return Vv(r,"parser",this.parser),r},sy.prototype.compile=function(e,t){this.options=Xb.extend({},this.options,t);var r=this.compiler.compile(e,this.options);return Vv(r,"compiler",this.compiler),r};var ly=sy,cy=Kb,uy=oy;function py(e){this.options=ef({},e)}ly.Compiler=cy,ly.Parser=uy,py.prototype.init=function(e){if(!this.isInitialized){this.isInitialized=!0;var t=qf.createOptions({},this.options,e);this.snapdragon=this.options.snapdragon||new ly(t),this.compiler=this.snapdragon.compiler,this.parser=this.snapdragon.parser,Uf(this.snapdragon,t),ev(this.snapdragon,t),qf.define(this.snapdragon,"parse",(function(e,t){var r=ly.prototype.parse.apply(this,arguments);this.parser.ast.input=e;for(var n=this.parser.stack;n.length;)i({type:"brace.close",val:""},n.pop());function i(e,t){qf.define(e,"parent",t),t.nodes.push(e)}return qf.define(r,"parser",this.parser),r}))}},py.prototype.parse=function(e,t){return e&&"object"==typeof e&&e.nodes?e:(this.init(t),this.snapdragon.parse(e,t))},py.prototype.compile=function(e,t){return"string"==typeof e?e=this.parse(e,t):this.init(t),this.snapdragon.compile(e,t)},py.prototype.expand=function(e){var t=this.parse(e,{expand:!0});return this.compile(t,{expand:!0})},py.prototype.optimize=function(e){var t=this.parse(e,{optimize:!0});return this.compile(t,{optimize:!0})};var dy=py,hy={};function my(e,t){var r=qf.createKey(String(e),t),n=[],i=t&&!1===t.cache;if(!i&&hy.hasOwnProperty(r))return hy[r];if(Array.isArray(e))for(var a=0;a<e.length;a++)n.push.apply(n,my.create(e[a],t));else n=my.create(e,t);return t&&!0===t.nodupes&&(n=Jg(n)),i||(hy[r]=n),n}function gy(e,t,r,n){var i=qf.createKey(e+":"+t,r);if(r&&!1===r.cache)return my.clearCache(),n(t,r);if(hy.hasOwnProperty(i))return hy[i];var a=n(t,r);return hy[i]=a,a}my.expand=function(e,t){return my.create(e,ef({},t,{expand:!0}))},my.optimize=function(e,t){return my.create(e,t)},my.create=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");var r=t&&t.maxLength||65536;if(e.length>=r)throw new Error("expected pattern to be less than "+r+" characters");return gy("create",e,t,(function(){if(""===e||e.length<3)return[e];if(qf.isEmptySets(e))return[];if(qf.isQuotedString(e))return[e.slice(1,-1)];var r=new dy(t),n=t&&!0===t.expand?r.expand(e,t):r.optimize(e,t),i=n.output;return t&&!0===t.noempty&&(i=i.filter(Boolean)),t&&!0===t.nodupes&&(i=Jg(i)),Object.defineProperty(i,"result",{enumerable:!1,value:n}),i}))},my.makeRe=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");var r=t&&t.maxLength||65536;if(e.length>=r)throw new Error("expected pattern to be less than "+r+" characters");return gy("makeRe",e,t,(function(){var r=my(e,t),n=ef({strictErrors:!1},t);return Zg(r,n)}))},my.parse=function(e,t){return new dy(t).parse(e,t)},my.compile=function(e,t){return new dy(t).compile(e,t)},my.clearCache=function(){hy=my.cache={}},my.Braces=dy,my.compilers=Uf,my.parsers=ev,my.cache=hy;var fy=my,vy=Object.assign||function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");wy(e)||(e={});for(var t=1;t<arguments.length;t++){var r=arguments[t];yy(r)&&(r=xy(r)),wy(r)&&(by(e,r),zm(e,r))}return e};function by(e,t){for(var r in t)zy(t,r)&&(e[r]=t[r])}function yy(e){return e&&"string"==typeof e}function xy(e){var t={};for(var r in e)t[r]=e[r];return t}function wy(e){return e&&"object"==typeof e||function(e){return wm(e)||"function"==typeof e||Array.isArray(e)}(e)}function zy(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var ky,Ay=function(e,t){function r(){return t&&"string"==typeof t.slash?t.slash:t&&"function"==typeof t.slash?t.slash.call(e):"\\\\/"}function n(){return t&&"string"==typeof t.star?t.star:t&&"function"==typeof t.star?t.star.call(e):"[^"+r()+"]*?"}var i=e.ast=e.parser.ast;i.state=e.parser.state,e.compiler.state=i.state,e.compiler.set("not",(function(e){var t=this.prev();return!0===this.options.nonegate||"bos"!==t.type?this.emit("\\"+e.val,e):this.emit(e.val,e)})).set("escape",(function(e){return this.options.unescape&&/^[-\w_.]/.test(e.val)?this.emit(e.val,e):this.emit("\\"+e.val,e)})).set("quoted",(function(e){return this.emit(e.val,e)})).set("dollar",(function(e){return"bracket"===e.parent.type?this.emit(e.val,e):this.emit("\\"+e.val,e)})).set("dot",(function(e){return!0===e.dotfiles&&(this.dotfiles=!0),this.emit("\\"+e.val,e)})).set("backslash",(function(e){return this.emit(e.val,e)})).set("slash",(function(e,t,n){for(var i="["+r()+"]",a=e.parent,o=this.prev();"paren"===a.type&&!a.hasSlash;)a.hasSlash=!0,a=a.parent;return o.addQmark&&(i+="?"),"\\b"===e.rest.slice(0,2)?this.emit(i,e):"**"===e.parsed||"./**"===e.parsed?(this.output="(?:"+this.output,this.emit(i+")?",e)):"!**"===e.parsed&&!0!==this.options.nonegate?this.emit(i+"?\\b",e):this.emit(i,e)})).set("bracket",(function(e){var t=e.close,r=e.escaped?"\\[":"[",n=e.negated,i=e.inner,a=e.val;return!0===e.escaped&&(i=i.replace(/\\?(\W)/g,"\\$1"),n=""),"]-"===i&&(i="\\]\\-"),n&&-1===i.indexOf(".")&&(i+="."),n&&-1===i.indexOf("/")&&(i+="/"),a=r+n+i+t,this.emit(a,e)})).set("square",(function(e){var t=(/^\W/.test(e.val)?"\\":"")+e.val;return this.emit(t,e)})).set("qmark",(function(e){var t=this.prev(),r="[^.\\\\/]";if((this.options.dot||"bos"!==t.type&&"slash"!==t.type)&&(r="[^\\\\/]"),"("===e.parsed.slice(-1)){var n=e.rest.charAt(0);if("!"===n||"="===n||":"===n)return this.emit(e.val,e)}return e.val.length>1&&(r+="{"+e.val.length+"}"),this.emit(r,e)})).set("plus",(function(e){var t=e.parsed.slice(-1);if("]"===t||")"===t)return this.emit(e.val,e);if(!this.output||/[?*+]/.test(r)&&"bracket"!==e.parent.type)return this.emit("\\+",e);var r=this.output.slice(-1);return/\w/.test(r)&&!e.inside?this.emit("+\\+?",e):this.emit("+",e)})).set("globstar",(function(e,t,i){this.output||(this.state.leadingGlobstar=!0);var a=this.prev(),o=this.prev(2),s=this.next(),l=this.next(2),c=a.type,u=e.val;"slash"===a.type&&"slash"===s.type&&"text"===o.type&&(this.output+="?","text"!==l.type&&(this.output+="\\b"));var p=e.parsed;"!"===p.charAt(0)&&(p=p.slice(1));var d=e.isInside.paren||e.isInside.brace;return u=p&&"slash"!==c&&"bos"!==c&&!d?n():!0!==this.options.dot?"(?:(?!(?:["+r()+"]|^)\\.).)*?":"(?:(?!(?:["+r()+"]|^)(?:\\.{1,2})($|["+r()+"]))(?!\\.{2}).)*?","slash"!==c&&"bos"!==c||!0===this.options.dot||(u="(?!\\.)"+u),"slash"===a.type&&"slash"===s.type&&"text"!==o.type&&("text"!==l.type&&"star"!==l.type||(e.addQmark=!0)),this.options.capture&&(u="("+u+")"),this.emit(u,e)})).set("star",(function(e,t,i){var a=t[i-2]||{},o=this.prev(),s=this.next(),l=o.type;function c(e){return"bos"===e.type||"slash"===e.type}if(""===this.output&&!0!==this.options.contains&&(this.output="(?!["+r()+"])"),"bracket"===l&&!1===this.options.bash){var u=s&&"bracket"===s.type?n():"*?";if(!o.nodes||"posix"!==o.nodes[1].type)return this.emit(u,e)}var p=this.dotfiles||"text"===l||"escape"===l?"":this.options.dot?"(?!(?:^|["+r()+"])\\.{1,2}(?:$|["+r()+"]))":"(?!\\.)";c(o)||c(a)&&"not"===l?p+="(?!\\.)"!==p?"(?!(\\.{2}|\\.["+r()+"]))(?=.)":"(?=.)":"(?!\\.)"===p&&(p=""),"not"===o.type&&"bos"===a.type&&!0===this.options.dot&&(this.output="(?!\\.)"+this.output);var d=p+n();return this.options.capture&&(d="("+d+")"),this.emit(d,e)})).set("text",(function(e){return this.emit(e.val,e)})).set("eos",(function(e){var t=this.prev(),n=e.val;return this.output="(?:\\.["+r()+"](?=.))?"+this.output,this.state.metachar&&"qmark"!==t.type&&"slash"!==t.type&&(n+=this.options.contains?"["+r()+"]?":"(?:["+r()+"]|$)"),this.emit(n,e)})),t&&"function"==typeof t.compilers&&t.compilers(e.compiler)},Cy="[\\[!*+?$^\"'.\\\\/]+",Sy=function(e){if(ky)return ky;var t={contains:!0,strictClose:!1},r=Gg.create(e,t),n=Zg("^(?:[*]\\((?=.)|"+r+")",t);return ky=n}(Cy),_y=function(e,t){var r=e.parser,n=r.options;r.state={slashes:0,paths:[]},r.ast.state=r.state,r.capture("prefix",(function(){this.parsed||this.match(/^\.[\\/]/)&&(this.state.strictOpen=!!this.options.strictOpen,this.state.addPrefix=!0)})).capture("escape",(function(){if(!this.isInside("bracket")){var e=this.position(),t=this.match(/^(?:\\(.)|([$^]))/);if(t)return e({type:"escape",val:t[2]||t[1]})}})).capture("quoted",(function(){var e=this.position(),t=this.match(/^["']/);if(t){var r=t[0];if(-1===this.input.indexOf(r))return e({type:"escape",val:r});var n=function(e,t){var r=e.charAt(0),n={len:1,val:"",esc:""},i=0;function a(){"\\"!==r&&(n.esc+="\\"+r,n.val+=r),r=e.charAt(++i),n.len++,"\\"===r&&(a(),a())}for(;r&&r!==t;)a();return n}(this.input,r);return this.consume(n.len),e({type:"quoted",val:n.esc})}})).capture("not",(function(){var e=this.parsed,t=this.position(),r=this.match(this.notRegex||/^!+/);if(r){var n=r[0],i=n.length%2==1;return""!==e||i||(n=""),""===e&&i&&!0!==this.options.nonegate&&(this.bos.val="(?!^(?:",this.append=")$).*",n=""),t({type:"not",val:n})}})).capture("dot",(function(){var e=this.parsed,t=this.position(),r=this.match(/^\.+/);if(r){var n=r[0];return this.state.dot="."===n&&(""===e||"/"===e.slice(-1)),t({type:"dot",dotfiles:this.state.dot,val:n})}})).capture("plus",/^\+(?!\()/).capture("qmark",(function(){var e=this.parsed,t=this.position(),r=this.match(/^\?+(?!\()/);if(r)return this.state.metachar=!0,this.state.qmark=!0,t({type:"qmark",parsed:e,val:r[0]})})).capture("globstar",(function(){var e=this.parsed,t=this.position();if(this.match(/^\*{2}(?![*(])(?=[,)/]|$)/)){var r=!0!==n.noglobstar?"globstar":"star",i=t({type:r,parsed:e});for(this.state.metachar=!0;"/**/"===this.input.slice(0,4);)this.input=this.input.slice(3);return i.isInside={brace:this.isInside("brace"),paren:this.isInside("paren")},"globstar"===r?(this.state.globstar=!0,i.val="**"):(this.state.star=!0,i.val="*"),i}})).capture("star",(function(){var e=this.position(),t=this.match(/^(?:\*(?![*(])|[*]{3,}(?!\()|[*]{2}(?![(/]|$)|\*(?=\*\())/);if(t)return this.state.metachar=!0,this.state.star=!0,e({type:"star",val:t[0]})})).capture("slash",(function(){var e=this.position(),t=this.match(/^\//);if(t)return this.state.slashes++,e({type:"slash",val:t[0]})})).capture("backslash",(function(){var e=this.position(),t=this.match(/^\\(?![*+?(){}[\]'"])/);if(t){var r=t[0];return this.isInside("bracket")?r="\\":r.length>1&&(r="\\\\"),e({type:"backslash",val:r})}})).capture("square",(function(){if(!this.isInside("bracket")){var e=this.position(),t=this.match(/^\[([^!^\\])\]/);if(t)return e({type:"square",val:t[1]})}})).capture("bracket",(function(){var e=this.position(),t=this.match(/^(?:\[([!^]?)([^\]]+|\]-)(\]|[^*+?]+)|\[)/);if(t){var r=t[0],n=t[1]?"^":"",i=(t[2]||"").replace(/\\\\+/,"\\\\"),a=t[3]||"";t[2]&&i.length<t[2].length&&(r=r.replace(/\\\\+/,"\\\\"));var o=this.input.slice(0,2);if(""===i&&"\\]"===o){i+=o,this.consume(2);for(var s,l=this.input,c=-1;s=l[++c];){if(this.consume(1),"]"===s){a=s;break}i+=s}}return e({type:"bracket",val:r,escaped:"]"!==a,negated:n,inner:i,close:a})}})).capture("text",(function(){if(!this.isInside("bracket")){var e=this.position(),t=this.match(Sy);if(t&&t[0])return e({type:"text",val:t[0]})}})),t&&"function"==typeof t.parsers&&t.parsers(e.parser)};_y.not=Cy;var My=Mc((function(e,t){function r(e){this.caches=e||{}}r.prototype={cache:function(e){return this.caches[e]||(this.caches[e]=new Qb)},set:function(e,t,r){var n=this.cache(e);return n.set(t,r),n},has:function(e,t){return void 0!==this.get(e,t)},get:function(e,t){var r=this.cache(e);return"string"==typeof t?r.get(t):r}},e.exports=r})),Ty=new My,$y=Mc((function(e,t){!function(r){t?e.exports=r():"undefined"!=typeof window?window.isWindows=r():void 0!==Sc?Sc.isWindows=r():"undefined"!=typeof self?self.isWindows=r():this.isWindows=r()}((function(){return function(){return vh&&("win32"===vh.platform||/^(msys|cygwin)$/.test(vh.env.OSTYPE))}}))})),Ly="undefined"!=typeof Reflect&&Reflect.defineProperty?Reflect.defineProperty:Object.defineProperty,Ey=function(e,t,r){if(!Np(e)&&"function"!=typeof e&&!Array.isArray(e))throw new TypeError("expected an object, function, or array");if("string"!=typeof t)throw new TypeError('expected "key" to be a string');return Xp(r)?(Ly(e,t,r),e):(Ly(e,t,{configurable:!0,enumerable:!1,writable:!0,value:r}),e)},Iy=function(e){for(var t=arguments.length,r=0;++r<t;)e=By(e,arguments[r]);return e};function By(e,t){if(!Array.isArray(t))return e.slice();for(var r=t.length,n=e.length,i=-1,a=[];++i<n;){for(var o=e[i],s=!1,l=0;l<r;l++)if(o===t[l]){s=!0;break}!1===s&&a.push(o)}return a}var Dy=function(e,t){if(!Np(e)&&"function"!=typeof e)return{};var r={};if("string"==typeof t)return t in e&&(r[t]=e[t]),r;for(var n=t.length,i=-1;++i<n;){var a=t[i];a in e&&(r[a]=e[a])}return r},Hy=Mc((function(e){var t=e.exports,r=$y();t.define=Ey,t.diff=Iy,t.extend=vy,t.pick=Dy,t.typeOf=jp,t.unique=Jg,t.isEmptyString=function(e){return""===String(e)||"./"===String(e)},t.isWindows=function(){return"\\"===Jm.sep||!0===r},t.last=function(e,t){return e[e.length-(t||1)]},t.instantiate=function(e,r){var n;return n="object"===t.typeOf(e)&&e.snapdragon?e.snapdragon:"object"===t.typeOf(r)&&r.snapdragon?r.snapdragon:new ly(r),t.define(n,"parse",(function(e,r){var n=ly.prototype.parse.call(this,e,r);n.input=e;var i=this.parser.stack.pop();if(i&&!0!==this.options.strictErrors){var a=i.nodes[0],o=i.nodes[1];if("bracket"===i.type)"["===o.val.charAt(0)&&(o.val="\\"+o.val);else{a.val="\\"+a.val;var s=a.parent.nodes[1];"star"===s.type&&(s.loose=!0)}}return t.define(n,"parser",this.parser),n})),n},t.createKey=function(e,t){if(void 0===t)return e;var r=e;for(var n in t)t.hasOwnProperty(n)&&(r+=";"+n+"="+String(t[n]));return r},t.arrayify=function(e){return"string"==typeof e?[e]:e?Array.isArray(e)?e:[e]:[]},t.isString=function(e){return"string"==typeof e},t.isRegex=function(e){return"regexp"===t.typeOf(e)},t.isObject=function(e){return"object"===t.typeOf(e)},t.escapeRegex=function(e){return e.replace(/[-[\]{}()^$|*+?.\\/\s]/g,"\\$&")},t.combineDupes=function(e,r){r=(r=t.arrayify(r).join("|").split("|")).map((function(e){return e.replace(/\\?([+*\\/])/g,"\\$1")}));var n=r.join("|"),i=new RegExp("("+n+")(?=\\1)","g");return e.replace(i,"")},t.hasSpecialChars=function(e){return/(?:(?:(^|\/)[!.])|[*?+()|[\]{}]|[+@]\()/.test(e)},t.toPosixPath=function(e){return e.replace(/\\+/g,"/")},t.unescape=function(e){return t.toPosixPath(e.replace(/\\(?=[*+?!.])/g,""))},t.stripDrive=function(e){return t.isWindows()?e.replace(/^[a-z]:[\\/]+?/i,"/"):e},t.stripPrefix=function(e){return"."!==e.charAt(0)||"/"!==e.charAt(1)&&"\\"!==e.charAt(1)?e:e.slice(2)},t.isSimpleChar=function(e){return""===e.trim()||"."===e},t.isSlash=function(e){return"/"===e||"\\/"===e||"\\"===e||"\\\\"===e},t.matchPath=function(e,r){return r&&r.contains?t.containsPattern(e,r):t.equalsPattern(e,r)},t._equals=function(e,t,r){return r===e||r===t},t._contains=function(e,t,r){return-1!==e.indexOf(r)||-1!==t.indexOf(r)},t.equalsPattern=function(e,r){var n=t.unixify(r);return r=r||{},function(i){var a=t._equals(i,n(i),e);if(!0===a||!0!==r.nocase)return a;var o=i.toLowerCase();return t._equals(o,n(o),e)}},t.containsPattern=function(e,r){var n=t.unixify(r);return r=r||{},function(i){var a=t._contains(i,n(i),e);if(!0===a||!0!==r.nocase)return a;var o=i.toLowerCase();return t._contains(o,n(o),e)}},t.matchBasename=function(e){return function(t){return e.test(t)||e.test(Jm.basename(t))}},t.identity=function(e){return e},t.value=function(e,t,r){return r&&!1===r.unixify?e:r&&"function"==typeof r.unixify?r.unixify(e):t(e)},t.unixify=function(e){var r=e||{};return function(e){return!1!==r.stripPrefix&&(e=t.stripPrefix(e)),!0===r.unescape&&(e=t.unescape(e)),(!0===r.unixify||t.isWindows())&&(e=t.toPosixPath(e)),e}}}));function Oy(e,t,r){t=Hy.arrayify(t),e=Hy.arrayify(e);var n=t.length;if(0===e.length||0===n)return[];if(1===n)return Oy.match(e,t[0],r);for(var i=!1,a=[],o=[],s=-1;++s<n;){var l=t[s];"string"==typeof l&&33===l.charCodeAt(0)?(a.push.apply(a,Oy.match(e,l.slice(1),r)),i=!0):o.push.apply(o,Oy.match(e,l,r))}if(i&&0===o.length)if(r&&!1===r.unixify)o=e.slice();else for(var c=Hy.unixify(r),u=0;u<e.length;u++)o.push(c(e[u]));var p=Hy.diff(o,a);return r&&!1===r.nodupes?p:Hy.unique(p)}function Py(e,t,r,n){var i=Hy.createKey(e+"="+t,r);if(r&&!1===r.cache)return n(t,r);if(Ty.has(e,i))return Ty.get(e,i);var a=n(t,r);return Ty.set(e,i,a),a}Oy.match=function(e,t,r){if(Array.isArray(t))throw new TypeError("expected pattern to be a string");for(var n=Hy.unixify(r),i=Py("match",t,r,Oy.matcher),a=[],o=(e=Hy.arrayify(e)).length,s=-1;++s<o;){var l=e[s];(l===t||i(l))&&a.push(Hy.value(l,n,r))}if(void 0===r)return Hy.unique(a);if(0===a.length){if(!0===r.failglob)throw new Error('no matches found for "'+t+'"');if(!0===r.nonull||!0===r.nullglob)return[r.unescape?Hy.unescape(t):t]}return r.ignore&&(a=Oy.not(a,r.ignore,r)),!1!==r.nodupes?Hy.unique(a):a},Oy.isMatch=function(e,t,r){if("string"!=typeof e)throw new TypeError('expected a string: "'+sm.inspect(e)+'"');return!Hy.isEmptyString(e)&&!Hy.isEmptyString(t)&&(!!Hy.equalsPattern(r)(e)||Py("isMatch",t,r,Oy.matcher)(e))},Oy.some=function(e,t,r){"string"==typeof e&&(e=[e]);for(var n=0;n<e.length;n++)if(1===Oy(e[n],t,r).length)return!0;return!1},Oy.every=function(e,t,r){"string"==typeof e&&(e=[e]);for(var n=0;n<e.length;n++)if(1!==Oy(e[n],t,r).length)return!1;return!0},Oy.any=function(e,t,r){if("string"!=typeof e)throw new TypeError('expected a string: "'+sm.inspect(e)+'"');if(Hy.isEmptyString(e)||Hy.isEmptyString(t))return!1;"string"==typeof t&&(t=[t]);for(var n=0;n<t.length;n++)if(Oy.isMatch(e,t[n],r))return!0;return!1},Oy.all=function(e,t,r){if("string"!=typeof e)throw new TypeError('expected a string: "'+sm.inspect(e)+'"');"string"==typeof t&&(t=[t]);for(var n=0;n<t.length;n++)if(!Oy.isMatch(e,t[n],r))return!1;return!0},Oy.not=function(e,t,r){var n=vy({},r),i=n.ignore;delete n.ignore,e=Hy.arrayify(e);var a=Hy.diff(e,Oy(e,t,n));return i&&(a=Hy.diff(a,Oy(e,i))),!1!==n.nodupes?Hy.unique(a):a},Oy.contains=function(e,t,r){if("string"!=typeof e)throw new TypeError('expected a string: "'+sm.inspect(e)+'"');if("string"==typeof t){if(Hy.isEmptyString(e)||Hy.isEmptyString(t))return!1;if(Hy.equalsPattern(t,r)(e))return!0;if(Hy.containsPattern(t,r)(e))return!0}var n=vy({},r,{contains:!0});return Oy.any(e,t,n)},Oy.matchBase=function(e,t){return!(e&&-1!==e.indexOf("/")||!t||!0!==t.basename&&!0!==t.matchBase)},Oy.matchKeys=function(e,t,r){if(!Hy.isObject(e))throw new TypeError("expected the first argument to be an object");var n=Oy(Object.keys(e),t,r);return Hy.pick(e,n)},Oy.matcher=function e(t,r){if(Hy.isEmptyString(t))return function(){return!1};if(Array.isArray(t))return function(e,t,r){var n;return Py("compose",String(e),t,(function(){return function(i){if(!n){n=[];for(var a=0;a<e.length;a++)n.push(r(e[a],t))}for(var o=n.length;o--;)if(!0===n[o](i))return!0;return!1}}))}(t,r,e);if(t instanceof RegExp)return i(t);if(!Hy.isString(t))throw new TypeError("expected pattern to be an array, string or regex");if(!Hy.hasSpecialChars(t))return r&&!0===r.nocase&&(t=t.toLowerCase()),Hy.matchPath(t,r);var n=Oy.makeRe(t,r);if(Oy.matchBase(t,r))return Hy.matchBasename(n,r);function i(e){var t=Hy.equalsPattern(r),n=Hy.unixify(r);return function(r){return!!t(r)||!!e.test(n(r))}}var a=i(n);return Hy.define(a,"result",n.result),a},Oy.capture=function(e,t,r){var n=Oy.makeRe(e,vy({capture:!0},r)),i=Hy.unixify(r),a=Py("capture",e,r,(function(){return function(e){var t=n.exec(i(e));return t?t.slice(1):null}}));return a(t)},Oy.makeRe=function(e,t){if(e instanceof RegExp)return e;if("string"!=typeof e)throw new TypeError("expected pattern to be a string");if(e.length>65536)throw new Error("expected pattern to be less than 65536 characters");return Py("makeRe",e,t,(function(){var r=Hy.extend({wrap:!1},t),n=Oy.create(e,r),i=Zg(n.output,r);return Hy.define(i,"result",n),i}))},Oy.create=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");return Py("create",e,t,(function(){return Oy.compile(Oy.parse(e,t),t)}))},Oy.parse=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");return Py("parse",e,t,(function(){var r=Hy.instantiate(null,t);_y(r,t);var n=r.parse(e,t);return Hy.define(n,"snapdragon",r),n.input=e,n}))},Oy.compile=function(e,t){return"string"==typeof e&&(e=Oy.parse(e,t)),Py("compile",e.input,t,(function(){var r=Hy.instantiate(e,t);return Ay(r,t),r.compile(e,t)}))},Oy.clearCache=function(){Oy.cache.__data__={}},Oy.compilers=Ay,Oy.parsers=_y,Oy.cache=Ty;var Ry,Vy=Oy,Ny={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},Fy=function(e){e.compiler.set("escape",(function(e){return this.emit("\\"+e.val.replace(/^\\/,""),e)})).set("text",(function(e){return this.emit(e.val.replace(/([{}])/g,"\\$1"),e)})).set("posix",(function(e){if("[::]"===e.val)return this.emit("\\[::\\]",e);var t=Ny[e.inner];return void 0===t&&(t="["+e.inner+"]"),this.emit(t,e)})).set("bracket",(function(e){return this.mapVisit(e.nodes)})).set("bracket.open",(function(e){return this.emit(e.val,e)})).set("bracket.inner",(function(e){var t=e.val;if("["===t||"]"===t)return this.emit("\\"+e.val,e);if("^]"===t)return this.emit("^\\]",e);if("^"===t)return this.emit("^",e);/-/.test(t)&&!/(\d-\d|\w-\w)/.test(t)&&(t=t.split("-").join("\\-"));var r="^"===t.charAt(0);return r&&-1===t.indexOf("/")&&(t+="/"),r&&-1===t.indexOf(".")&&(t+="."),t=t.replace(/\\([1-9])/g,"$1"),this.emit(t,e)})).set("bracket.close",(function(e){var t=e.val.replace(/^\\/,"");return!0===e.parent.escaped?this.emit("\\"+t,e):this.emit(t,e)}))},jy=function(e){return e[e.length-1]},qy="(\\[(?=.*\\])|\\])+",Uy=function(e,t){if(Ry)return Ry;var r,n={contains:!0,strictClose:!1},i=Gg.create(e,n);return r=Zg("string"==typeof t?"^(?:"+t+"|"+i+")":i,n),Ry=r}(qy),Wy=function(e){e.state=e.state||{},e.parser.sets.bracket=e.parser.sets.bracket||[],e.parser.capture("escape",(function(){if(!this.isInside("bracket")){var e=this.position(),t=this.match(/^\\(.)/);if(t)return e({type:"escape",val:t[0]})}})).capture("text",(function(){if(!this.isInside("bracket")){var e=this.position(),t=this.match(Uy);if(t&&t[0])return e({type:"text",val:t[0]})}})).capture("posix",(function(){var t=this.position(),r=this.match(/^\[:(.*?):\](?=.*\])/);if(r){var n=this.isInside("bracket");return n&&e.posix++,t({type:"posix",insideBracket:n,inner:r[1],val:r[0]})}})).capture("bracket",(function(){})).capture("bracket.open",(function(){var e=this.parsed,t=this.position(),r=this.match(/^\[(?=.*\])/);if(r){var n=this.prev(),i=jy(n.nodes);if("\\"===e.slice(-1)&&!this.isInside("bracket"))return i.val=i.val.slice(0,i.val.length-1),t({type:"escape",val:r[0]});var a=t({type:"bracket.open",val:r[0]});if("bracket.open"===i.type||this.isInside("bracket"))return a.val="\\"+a.val,a.type="bracket.inner",a.escaped=!0,a;var o=t({type:"bracket",nodes:[a]});Vv(o,"parent",n),Vv(a,"parent",o),this.push("bracket",o),n.nodes.push(o)}})).capture("bracket.inner",(function(){if(this.isInside("bracket")){var e=this.position(),t=this.match(Uy);if(t&&t[0]){var r=this.input.charAt(0),n=t[0],i=e({type:"bracket.inner",val:n});if("\\\\"===n)return i;var a=n.charAt(0),o=n.slice(-1);return"!"===a&&(n="^"+n.slice(1)),("\\"===o||"^"===n&&"]"===r)&&(n+=this.input[0],this.consume(1)),i.val=n,i}}})).capture("bracket.close",(function(){var e=this.parsed,t=this.position(),r=this.match(/^\]/);if(r){var n=this.prev(),i=jy(n.nodes);if("\\"===e.slice(-1)&&!this.isInside("bracket"))return i.val=i.val.slice(0,i.val.length-1),t({type:"escape",val:r[0]});var a=t({type:"bracket.close",rest:this.input,val:r[0]});if("bracket.open"===i.type)return a.type="bracket.inner",a.escaped=!0,a;var o=this.pop("bracket");if(!this.isType(o,"bracket")){if(this.options.strict)throw new Error('missing opening "["');return a.type="bracket.inner",a.escaped=!0,a}o.nodes.push(a),Vv(a,"parent",o)}}))};Wy.TEXT_REGEX=qy;var Xy=1e3,Gy=6e4,Yy=60*Gy,Zy=24*Yy,Ky=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"days":case"day":case"d":return r*Zy;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Yy;case"minutes":case"minute":case"mins":case"min":case"m":return r*Gy;case"seconds":case"second":case"secs":case"sec":case"s":return r*Xy;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===r&&!1===isNaN(e))return t.long?function(e){return Jy(e,Zy,"day")||Jy(e,Yy,"hour")||Jy(e,Gy,"minute")||Jy(e,Xy,"second")||e+" ms"}(e):function(e){return e>=Zy?Math.round(e/Zy)+"d":e>=Yy?Math.round(e/Yy)+"h":e>=Gy?Math.round(e/Gy)+"m":e>=Xy?Math.round(e/Xy)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Jy(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}var Qy=Mc((function(e,t){var r;function n(e){function n(){if(n.enabled){var e=n,i=+new Date,a=i-(r||i);e.diff=a,e.prev=r,e.curr=i,r=i;for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var l=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(r,n){if("%%"===r)return r;l++;var i=t.formatters[n];if("function"==typeof i){var a=o[l];r=i.call(e,a),o.splice(l,1),l--}return r})),t.formatArgs.call(e,o),(n.log||t.log||console.log.bind(console)).apply(e,o)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var r,n=0;for(r in e)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=n.debug=n.default=n).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length,i=0;i<n;i++)r[i]&&("-"===(e=r[i].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=Ky,t.names=[],t.skips=[],t.formatters={}})),ex=Mc((function(e,t){function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==vh&&"env"in vh&&(e=vh.env.DEBUG),e}(t=e.exports=Qy).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),r){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0,a=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(i++,"%c"===e&&(a=i))})),e.splice(a,0,n)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())})),tx=ex("expand-brackets");function rx(e,t){return tx("initializing from <%s>","/home/runner/work/budibase-deploys/budibase-deploys/node_modules/expand-brackets/index.js"),rx.create(e,t).output}rx.match=function(e,t,r){e=[].concat(e);for(var n=mv({},r),i=rx.matcher(t,n),a=e.length,o=-1,s=[];++o<a;){var l=e[o];i(l)&&s.push(l)}if(0===s.length){if(!0===n.failglob)throw new Error('no matches found for "'+t+'"');if(!0===n.nonull||!0===n.nullglob)return[t.split("\\").join("")]}return s},rx.isMatch=function(e,t,r){return rx.matcher(t,r)(e)},rx.matcher=function(e,t){var r=rx.makeRe(e,t);return function(e){return r.test(e)}},rx.makeRe=function(e,t){var r=rx.create(e,t),n=mv({strictErrors:!1},t);return Zg(r.output,n)},rx.create=function(e,t){var r=t&&t.snapdragon||new ly(t);Fy(r),Wy(r);var n=r.parse(e,t);n.input=e;var i=r.compile(n,t);return i.input=e,i},rx.compilers=Fy,rx.parsers=Wy;var nx=rx,ix=function(e){function t(){return"function"==typeof e.options.star?e.options.star.apply(this,arguments):"string"==typeof e.options.star?e.options.star:".*?"}e.use(nx.compilers),e.compiler.set("escape",(function(e){return this.emit(e.val,e)})).set("dot",(function(e){return this.emit("\\"+e.val,e)})).set("qmark",(function(e){var t="[^\\\\/.]",r=this.prev();if("("===e.parsed.slice(-1)){var n=e.rest.charAt(0);return"!"!==n&&"="!==n&&":"!==n?this.emit(t,e):this.emit(e.val,e)}return"text"===r.type&&r.val||e.val.length>1&&(t+="{"+e.val.length+"}"),this.emit(t,e)})).set("plus",(function(e){var t=e.parsed.slice(-1);if("]"===t||")"===t)return this.emit(e.val,e);var r=this.output.slice(-1);return!this.output||/[?*+]/.test(r)&&"bracket"!==e.parent.type?this.emit("\\+",e):/\w/.test(r)&&!e.inside?this.emit("+\\+?",e):this.emit("+",e)})).set("star",(function(e){var r=this.prev(),n="text"!==r.type&&"escape"!==r.type?"(?!\\.)":"";return this.emit(n+t.call(this,e),e)})).set("paren",(function(e){return this.mapVisit(e.nodes)})).set("paren.open",(function(e){var t=this.options.capture?"(":"";switch(e.parent.prefix){case"!":case"^":return this.emit(t+"(?:(?!(?:",e);case"*":case"+":case"?":case"@":return this.emit(t+"(?:",e);default:var r=e.val;return!0===this.options.bash?r="\\"+r:this.options.capture||"("!==r||"?"===e.parent.rest[0]||(r+="?:"),this.emit(r,e)}})).set("paren.close",(function(e){var r=this.options.capture?")":"";switch(e.prefix){case"!":case"^":var n=/^(\)|$)/.test(e.rest)?"$":"",i=t.call(this,e);return e.parent.hasSlash&&!this.options.star&&!1!==this.options.slash&&(i=".*?"),this.emit(n+"))"+i+")"+r,e);case"*":case"+":case"?":return this.emit(")"+e.prefix+r,e);case"@":return this.emit(")"+r,e);default:var a=(!0===this.options.bash?"\\":"")+")";return this.emit(a,e)}})).set("text",(function(e){var t=e.val.replace(/[\[\]]/g,"\\$&");return this.emit(t,e)}))},ax=function(e,t,r){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("expected an object or function.");if("string"!=typeof t)throw new TypeError("expected `prop` to be a string.");return Xp(r)&&("set"in r||"get"in r)?Object.defineProperty(e,t,r):Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:r})},ox=Mc((function(e){var t=e.exports,r=t.cache=new My;t.arrayify=function(e){return Array.isArray(e)?e:[e]},t.memoize=function(e,n,i,a){var o=t.createKey(e+n,i);if(r.has(e,o))return r.get(e,o);var s=a(n,i);return i&&!1===i.cache||r.set(e,o,s),s},t.createKey=function(e,t){var r=e;if(void 0===t)return r;for(var n in t)r+=";"+n+"="+String(t[n]);return r},t.createRegex=function(e){return Gg(e,{contains:!0,strictClose:!1})}})),sx="([!@*?+]?\\(|\\)|[*?.+\\\\]|\\[:?(?=.*\\])|:?\\])+",lx=ox.createRegex(sx),cx=function(e){e.state=e.state||{},e.use(nx.parsers),e.parser.sets.paren=e.parser.sets.paren||[],e.parser.capture("paren.open",(function(){var e=this.parsed,t=this.position(),r=this.match(/^([!@*?+])?\(/);if(r){var n=this.prev(),i=r[1],a=t({type:"paren.open",parsed:e,val:r[0]}),o=t({type:"paren",prefix:i,nodes:[a]});"!"===i&&"paren"===n.type&&"!"===n.prefix&&(n.prefix="@",o.prefix="@"),ax(o,"rest",this.input),ax(o,"parsed",e),ax(o,"parent",n),ax(a,"parent",o),this.push("paren",o),n.nodes.push(o)}})).capture("paren.close",(function(){var e=this.parsed,t=this.position(),r=this.match(/^\)/);if(r){var n=this.pop("paren"),i=t({type:"paren.close",rest:this.input,parsed:e,val:r[0]});if(!this.isType(n,"paren")){if(this.options.strict)throw new Error('missing opening paren: "("');return i.escaped=!0,i}i.prefix=n.prefix,n.nodes.push(i),ax(i,"parent",n)}})).capture("escape",(function(){var e=this.position(),t=this.match(/^\\(.)/);if(t)return e({type:"escape",val:t[0],ch:t[1]})})).capture("qmark",(function(){var t=this.parsed,r=this.position(),n=this.match(/^\?+(?!\()/);if(n)return e.state.metachar=!0,r({type:"qmark",rest:this.input,parsed:t,val:n[0]})})).capture("star",/^\*(?!\()/).capture("plus",/^\+(?!\()/).capture("dot",/^\./).capture("text",lx)};cx.TEXT_REGEX=sx;var ux=function(e){this.options=mv({source:"extglob"},e),this.snapdragon=this.options.snapdragon||new ly(this.options),this.snapdragon.patterns=this.snapdragon.patterns||{},this.compiler=this.snapdragon.compiler,this.parser=this.snapdragon.parser,ix(this.snapdragon),cx(this.snapdragon),ax(this.snapdragon,"parse",(function(e,t){var r=ly.prototype.parse.apply(this,arguments);r.input=e;var n=this.parser.stack.pop();if(n&&!0!==this.options.strict){var i=n.nodes[0];i.val="\\"+i.val;var a=i.parent.nodes[1];"star"===a.type&&(a.loose=!0)}return ax(r,"parser",this.parser),r})),ax(this,"parse",(function(e,t){return this.snapdragon.parse.apply(this.snapdragon,arguments)})),ax(this,"compile",(function(e,t){return this.snapdragon.compile.apply(this.snapdragon,arguments)}))};function px(e,t){return px.create(e,t).output}px.match=function(e,t,r){if("string"!=typeof t)throw new TypeError("expected pattern to be a string");e=ox.arrayify(e);for(var n=px.matcher(t,r),i=e.length,a=-1,o=[];++a<i;){var s=e[a];n(s)&&o.push(s)}if(void 0===r)return Jg(o);if(0===o.length){if(!0===r.failglob)throw new Error('no matches found for "'+t+'"');if(!0===r.nonull||!0===r.nullglob)return[t.split("\\").join("")]}return!1!==r.nodupes?Jg(o):o},px.isMatch=function(e,t,r){if("string"!=typeof t)throw new TypeError("expected pattern to be a string");if("string"!=typeof e)throw new TypeError("expected a string");return t===e||(""===t||" "===t||"."===t?t===e:ox.memoize("isMatch",t,r,px.matcher)(e))},px.contains=function(e,t,r){if("string"!=typeof e)throw new TypeError("expected a string");if(""===t||" "===t||"."===t)return t===e;var n=mv({},r,{contains:!0});return n.strictClose=!1,n.strictOpen=!1,px.isMatch(e,t,n)},px.matcher=function(e,t){if("string"!=typeof e)throw new TypeError("expected pattern to be a string");return ox.memoize("matcher",e,t,(function(){var r=px.makeRe(e,t);return function(e){return r.test(e)}}))},px.create=function(e,t){if("string"!=typeof e)throw new TypeError("expected pattern to be a string");return ox.memoize("create",e,t,(function(){var r=new ux(t),n=r.parse(e,t);return r.compile(n,t)}))},px.capture=function(e,t,r){var n=px.makeRe(e,mv({capture:!0},r)),i=ox.memoize("capture",e,r,(function(){return function(e){var t=n.exec(e);return t?t.slice(1):null}}));return i(t)},px.makeRe=function(e,t){if(e instanceof RegExp)return e;if("string"!=typeof e)throw new TypeError("expected pattern to be a string");if(e.length>65536)throw new Error("expected pattern to be less than 65536 characters");var r=ox.memoize("makeRe",e,t,(function(){var r=mv({strictErrors:!1},t);!0===r.strictErrors&&(r.strict=!0);var n=px.create(e,r);return Zg(n.output,r)}));if(r.source.length>65536)throw new SyntaxError("potentially malicious regex detected");return r},px.cache=ox.cache,px.clearCache=function(){px.cache.__data__={}},px.Extglob=ux,px.compilers=ix,px.parsers=cx;var dx,hx=px,mx=function(e){var t=e.compiler.compilers,r=e.options;e.use(Vy.compilers);var n=t.escape,i=t.qmark,a=t.slash,o=t.star,s=t.text,l=t.plus,c=t.dot;!1===r.extglob||!0===r.noext?e.compiler.use(gx):e.use(hx.compilers),e.use((function(){this.options.star=this.options.star||function(){return"[^\\\\/]*?"}})),e.compiler.set("dot",c).set("escape",n).set("plus",l).set("slash",a).set("qmark",i).set("star",o).set("text",s)};function gx(e){function t(e,r){return e.nodes?function(e,r){for(var n=e.length,i=-1;++i<n;)t(e[i],r)}(e.nodes,r):r(e)}e.set("paren",(function(e){var r="";return t(e,(function(e){e.val&&(r+=(/^\W/.test(e.val)?"\\":"")+e.val)})),this.emit(r,e)}))}var fx=function(e){var t=e.parser.parsers;e.use(Vy.parsers);var r=t.escape,n=t.slash,i=t.qmark,a=t.plus,o=t.star,s=t.dot;e.use(hx.parsers),e.parser.use((function(){this.notRegex=/^\!+(?!\()/})).capture("escape",r).capture("slash",n).capture("qmark",i).capture("star",o).capture("plus",a).capture("dot",s).capture("text",(function(){if(!this.isInside("bracket")){var e=this.position(),t=this.match(function(e){return dx||(t=Gg.create("([!@*?+]?\\(|\\)|\\[:?(?=.*?:?\\])|:?\\]|[*+?!^$.\\\\/])+",{contains:!0,strictClose:!1}),dx=Zg("(?:[\\^]|\\\\|"+t+")",{strictClose:!1}));var t}(this.options));if(t&&t[0])return e({type:"text",val:t[0].replace(/([[\]^$])/g,"\\$1")})}}))},vx=new My,bx=Mc((function(e){var t=e.exports;t.define=Yp,t.diff=Iy,t.extend=km,t.pick=Dy,t.typeOf=jp,t.unique=Jg,t.isWindows=function(){return"\\"===Jm.sep||"win32"===vh.platform},t.instantiate=function(e,r){var n;return n="object"===t.typeOf(e)&&e.snapdragon?e.snapdragon:"object"===t.typeOf(r)&&r.snapdragon?r.snapdragon:new ly(r),t.define(n,"parse",(function(e,r){var n=ly.prototype.parse.apply(this,arguments);n.input=e;var i=this.parser.stack.pop();if(i&&!0!==this.options.strictErrors){var a=i.nodes[0],o=i.nodes[1];if("bracket"===i.type)"["===o.val.charAt(0)&&(o.val="\\"+o.val);else{a.val="\\"+a.val;var s=a.parent.nodes[1];"star"===s.type&&(s.loose=!0)}}return t.define(n,"parser",this.parser),n})),n},t.createKey=function(e,r){if("object"!==t.typeOf(r))return e;for(var n=e,i=Object.keys(r),a=0;a<i.length;a++){var o=i[a];n+=";"+o+"="+String(r[o])}return n},t.arrayify=function(e){return"string"==typeof e?[e]:e?Array.isArray(e)?e:[e]:[]},t.isString=function(e){return"string"==typeof e},t.isObject=function(e){return"object"===t.typeOf(e)},t.hasSpecialChars=function(e){return/(?:(?:(^|\/)[!.])|[*?+()|\[\]{}]|[+@]\()/.test(e)},t.escapeRegex=function(e){return e.replace(/[-[\]{}()^$|*+?.\\\/\s]/g,"\\$&")},t.toPosixPath=function(e){return e.replace(/\\+/g,"/")},t.unescape=function(e){return t.toPosixPath(e.replace(/\\(?=[*+?!.])/g,""))},t.stripPrefix=function(e){if("."!==e.charAt(0))return e;var r=e.charAt(1);return t.isSlash(r)?e.slice(2):e},t.isSlash=function(e){return"/"===e||"\\/"===e||"\\"===e||"\\\\"===e},t.matchPath=function(e,r){return r&&r.contains?t.containsPattern(e,r):t.equalsPattern(e,r)},t._equals=function(e,t,r){return r===e||r===t},t._contains=function(e,t,r){return-1!==e.indexOf(r)||-1!==t.indexOf(r)},t.equalsPattern=function(e,r){var n=t.unixify(r);return r=r||{},function(i){var a=t._equals(i,n(i),e);if(!0===a||!0!==r.nocase)return a;var o=i.toLowerCase();return t._equals(o,n(o),e)}},t.containsPattern=function(e,r){var n=t.unixify(r);return r=r||{},function(i){var a=t._contains(i,n(i),e);if(!0===a||!0!==r.nocase)return a;var o=i.toLowerCase();return t._contains(o,n(o),e)}},t.matchBasename=function(e){return function(t){return e.test(Jm.basename(t))}},t.value=function(e,t,r){return r&&!1===r.unixify?e:t(e)},t.unixify=function(e){return e=e||{},function(r){return(t.isWindows()||!0===e.unixify)&&(r=t.toPosixPath(r)),!1!==e.stripPrefix&&(r=t.stripPrefix(r)),!0===e.unescape&&(r=t.unescape(r)),r}}}));function yx(e,t,r){t=bx.arrayify(t),e=bx.arrayify(e);var n=t.length;if(0===e.length||0===n)return[];if(1===n)return yx.match(e,t[0],r);for(var i=[],a=[],o=-1;++o<n;){var s=t[o];"string"==typeof s&&33===s.charCodeAt(0)?i.push.apply(i,yx.match(e,s.slice(1),r)):a.push.apply(a,yx.match(e,s,r))}var l=bx.diff(a,i);return r&&!1===r.nodupes?l:bx.unique(l)}function xx(e){return""===String(e)||"./"===String(e)}function wx(e,t,r,n){var i=bx.createKey(e+"="+t,r);if(r&&!1===r.cache)return n(t,r);if(vx.has(e,i))return vx.get(e,i);var a=n(t,r);return vx.set(e,i,a),a}yx.match=function(e,t,r){if(Array.isArray(t))throw new TypeError("expected pattern to be a string");for(var n=bx.unixify(r),i=wx("match",t,r,yx.matcher),a=[],o=(e=bx.arrayify(e)).length,s=-1;++s<o;){var l=e[s];(l===t||i(l))&&a.push(bx.value(l,n,r))}if(void 0===r)return bx.unique(a);if(0===a.length){if(!0===r.failglob)throw new Error('no matches found for "'+t+'"');if(!0===r.nonull||!0===r.nullglob)return[r.unescape?bx.unescape(t):t]}return r.ignore&&(a=yx.not(a,r.ignore,r)),!1!==r.nodupes?bx.unique(a):a},yx.isMatch=function(e,t,r){if("string"!=typeof e)throw new TypeError('expected a string: "'+sm.inspect(e)+'"');return!xx(e)&&!xx(t)&&(!!bx.equalsPattern(r)(e)||wx("isMatch",t,r,yx.matcher)(e))},yx.some=function(e,t,r){"string"==typeof e&&(e=[e]);for(var n=0;n<e.length;n++)if(1===yx(e[n],t,r).length)return!0;return!1},yx.every=function(e,t,r){"string"==typeof e&&(e=[e]);for(var n=0;n<e.length;n++)if(1!==yx(e[n],t,r).length)return!1;return!0},yx.any=function(e,t,r){if("string"!=typeof e)throw new TypeError('expected a string: "'+sm.inspect(e)+'"');if(xx(e)||xx(t))return!1;"string"==typeof t&&(t=[t]);for(var n=0;n<t.length;n++)if(yx.isMatch(e,t[n],r))return!0;return!1},yx.all=function(e,t,r){if("string"!=typeof e)throw new TypeError('expected a string: "'+sm.inspect(e)+'"');"string"==typeof t&&(t=[t]);for(var n=0;n<t.length;n++)if(!yx.isMatch(e,t[n],r))return!1;return!0},yx.not=function(e,t,r){var n=km({},r),i=n.ignore;delete n.ignore;var a=bx.unixify(n);e=bx.arrayify(e).map(a);var o=bx.diff(e,yx(e,t,n));return i&&(o=bx.diff(o,yx(e,i))),!1!==n.nodupes?bx.unique(o):o},yx.contains=function(e,t,r){if("string"!=typeof e)throw new TypeError('expected a string: "'+sm.inspect(e)+'"');if("string"==typeof t){if(xx(e)||xx(t))return!1;if(bx.equalsPattern(t,r)(e))return!0;if(bx.containsPattern(t,r)(e))return!0}var n=km({},r,{contains:!0});return yx.any(e,t,n)},yx.matchBase=function(e,t){return!(e&&-1!==e.indexOf("/")||!t||!0!==t.basename&&!0!==t.matchBase)},yx.matchKeys=function(e,t,r){if(!bx.isObject(e))throw new TypeError("expected the first argument to be an object");var n=yx(Object.keys(e),t,r);return bx.pick(e,n)},yx.matcher=function e(t,r){if(Array.isArray(t))return function(e,t,r){var n;return wx("compose",String(e),t,(function(){return function(i){if(!n){n=[];for(var a=0;a<e.length;a++)n.push(r(e[a],t))}for(var o=n.length;o--;)if(!0===n[o](i))return!0;return!1}}))}(t,r,e);if(t instanceof RegExp)return i(t);if(!bx.isString(t))throw new TypeError("expected pattern to be an array, string or regex");if(!bx.hasSpecialChars(t))return r&&!0===r.nocase&&(t=t.toLowerCase()),bx.matchPath(t,r);var n=yx.makeRe(t,r);if(yx.matchBase(t,r))return bx.matchBasename(n,r);function i(e){var t=bx.equalsPattern(r),n=bx.unixify(r);return function(r){return!!t(r)||!!e.test(n(r))}}var a=i(n);return Object.defineProperty(a,"result",{configurable:!0,enumerable:!1,value:n.result}),a},yx.capture=function(e,t,r){var n=yx.makeRe(e,km({capture:!0},r)),i=bx.unixify(r),a=wx("capture",e,r,(function(){return function(e){var t=n.exec(i(e));return t?t.slice(1):null}}));return a(t)},yx.makeRe=function(e,t){if("string"!=typeof e)throw new TypeError("expected pattern to be a string");if(e.length>65536)throw new Error("expected pattern to be less than 65536 characters");return wx("makeRe",e,t,(function(){var r=yx.create(e,t),n=[],i=r.map((function(e){return e.ast.state=e.state,n.push(e.ast),e.output})),a=Zg(i.join("|"),t);return Object.defineProperty(a,"result",{configurable:!0,enumerable:!1,value:n}),a}))},yx.braces=function(e,t){if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("expected pattern to be an array or string");return wx("braces",e,t,(function(){return t&&!0===t.nobrace||!/\{.*\}/.test(e)?bx.arrayify(e):fy(e,t)}))},yx.braceExpand=function(e,t){var r=km({},t,{expand:!0});return yx.braces(e,r)},yx.create=function(e,t){return wx("create",e,t,(function(){for(var r,n,i=(e=yx.braces(e,t)).length,a=-1,o=[];++a<i;)o.push((r=e[a],n=t,yx.compile(yx.parse(r,n),n)));return o}))},yx.parse=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");return wx("parse",e,t,(function(){var r=bx.instantiate(null,t);fx(r);var n=r.parse(e,t);return bx.define(n,"snapdragon",r),n.input=e,n}))},yx.compile=function(e,t){return"string"==typeof e&&(e=yx.parse(e,t)),wx("compile",e.input,t,(function(){var r=bx.instantiate(e,t);return mx(r),r.compile(e,t)}))},yx.clearCache=function(){yx.cache.caches={}},yx.compilers=mx,yx.parsers=fx,yx.caches=vx.caches;var zx=yx,kx=Mc((function(e){var t=e.exports;t.match=function(e,t,r,n){var i=lm.options(this,r,n);return"string"==typeof t&&(t=t.split(/, */)),zx(e,t,i)},t.isMatch=function(e,t,r,n){var i=lm.options(this,r,n);return zx.isMatch(e,t,i)},t.mm=function(){return console.log("the {{mm}} helper is depcrecated and will be removed"),console.log("in handlebars-helpers v1.0.0, please use the {{match}}"),console.log("helper instead."),t.match.apply(this,arguments)}})),Ax=Mc((function(e){var t=e.exports;t.abs=function(e){if(isNaN(e))throw new TypeError("expected a number");return Math.abs(e)},t.add=function(e,t){return isNaN(e)||isNaN(t)?"string"==typeof e&&"string"==typeof t?e+t:"":Number(e)+Number(t)},t.avg=function(){const e=[].concat.apply([],arguments);return e.pop(),t.sum(e)/e.length},t.ceil=function(e){if(isNaN(e))throw new TypeError("expected a number");return Math.ceil(e)},t.divide=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)/Number(t)},t.floor=function(e){if(isNaN(e))throw new TypeError("expected a number");return Math.floor(e)},t.minus=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)-Number(t)},t.modulo=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)%Number(t)},t.multiply=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)*Number(t)},t.plus=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)+Number(t)},t.random=function(e,t){if(isNaN(e))throw new TypeError("expected minimum to be a number");if(isNaN(t))throw new TypeError("expected maximum to be a number");return cg.random(e,t)},t.remainder=function(e,t){return e%t},t.round=function(e){if(isNaN(e))throw new TypeError("expected a number");return Math.round(e)},t.subtract=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)-Number(t)},t.sum=function(){for(var e=[].concat.apply([],arguments),t=e.length,r=0;t--;)isNaN(e[t])||(r+=Number(e[t]));return r}})),Cx=Mc((function(e){var t=e.exports;t.frame=function(e,t){"object"==typeof e&&e.hash&&(e=(t=e).data);var r=Tm(e);return"object"!=typeof t&&(t={}),r.extend(t.hash),t.fn(this,{data:r})},t.option=function(e,t,r){return fm(lm.options(this,t,r),e)},t.noop=function(e){return e.fn(this)},t.typeOf=jp,t.withHash=function(e){return e.hash&&Object.keys(e.hash).length?e.fn(e.hash):e.inverse(this)}})),Sx=Mc((function(e){var t=e.exports;t.bytes=function(e,t,r){if(null==e)return"0 B";if(isNaN(e)&&!(e=e.length))return"0 B";isNaN(t)&&(t=2);var n=["B","kB","MB","GB","TB","PB","EB","ZB","YB"];t=Math.pow(10,t),e=Number(e);for(var i=n.length-1;i-- >=0;){var a=Math.pow(10,3*i);if(a<=e+1){e=Math.round(e*t/a)/t,e+=" "+n[i];break}}return e},t.addCommas=function(e){return e.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")},t.phoneNumber=function(e){return"("+(e=e.toString()).substr(0,3)+") "+e.substr(3,3)+"-"+e.substr(6,4)},t.toAbbr=function(e,t){isNaN(e)&&(e=0),lm.isUndefined(t)&&(t=2),e=Number(e),t=Math.pow(10,t);for(var r=["k","m","b","t","q"],n=r.length-1;n>=0;){var i=Math.pow(10,3*(n+1));if(i<=e+1){e=Math.round(e*t/i)/t,e+=r[n];break}n--}return e},t.toExponential=function(e,t){return isNaN(e)&&(e=0),lm.isUndefined(t)&&(t=0),Number(e).toExponential(t)},t.toFixed=function(e,t){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),Number(e).toFixed(t)},t.toFloat=function(e){return parseFloat(e)},t.toInt=function(e){return parseInt(e,10)},t.toPrecision=function(e,t){return isNaN(e)&&(e=0),isNaN(t)&&(t=1),Number(e).toPrecision(t)}})),_x={}.toString,Mx=Array.isArray||function(e){return"[object Array]"==_x.call(e)},Tx=$x;function $x(e,t,r){if("string"!=typeof e)throw new TypeError("relative expects a string.");if(""==e&&!t)return e;var n=arguments.length;1===n&&(t=e,e=vh.cwd(),r=null),2===n&&"boolean"==typeof t&&(t=e,e=vh.cwd(),r=!0),2===n&&"object"==typeof t&&(r=t,t=e,e=vh.cwd());var i=t,a=Ex(e,"/"),o=Ex(t,"/");e=Lx(e),t=Lx(t),a&&(e+="/"),function(e,t){return!0===t&&(t=Ix(e)),!function(e,t){if(Ex(e,"/"))return!0;if(null===t&&(t=Ix(e)),function(e){return null!=e&&"object"==typeof e&&!1===Mx(e)}(t)&&"function"==typeof t.isDirectory)return t.isDirectory();var r=e.split("/"),n=r[r.length-1];return!n||-1===n.indexOf(".")}(e,t)}(e,r)&&(e=Jm.dirname(e));var s=Jm.relative(e,t);if(""===s)return".";var l=function(e,t){return e.slice(0,e.length-1)}(i);return o&&(s===l||Ex(s,l))&&(s+="/"),s}function Lx(e){return e.replace(/[\\\/]+/g,"/")}function Ex(e,t){return e.slice(-t.length)[0]===t}function Ix(e){try{return Dp.statSync(e)}catch(e){}return null}$x.toBase=function(e,t){e=Lx(e);var r=(t=Lx(t)).slice(e.length);return"/"===r.charAt(0)&&(r=r.slice(1)),r};var Bx=Mc((function(e){var t=e.exports;t.absolute=function(e,t){t=t||{data:{}};var r=lm.options(this,t),n=Object.assign({},t.data.root,r).cwd||vh.cwd();return Jm.resolve(n,e)},t.dirname=function(e,t){if("string"!=typeof e)throw new TypeError(lm.expectedType("filepath","string",e));return Jm.dirname(e)},t.relative=function(e,t){if("string"!=typeof e)throw new TypeError(lm.expectedType("first path","string",e));if("string"!=typeof t)throw new TypeError(lm.expectedType("second path","string",t));return Tx(e,t)},t.basename=function(e){if("string"!=typeof e)throw new TypeError(lm.expectedType("filepath","string",e));return Jm.basename(e)},t.stem=function(e){if("string"!=typeof e)throw new TypeError(lm.expectedType("filepath","string",e));return Jm.basename(e,Jm.extname(e))},t.extname=function(e){if("string"!=typeof e)throw new TypeError(lm.expectedType("filepath","string",e));return Jm.extname(e)},t.resolve=function(e){var t=[].slice.call(arguments),r=lm.options(this,t.pop()),n=Jm.resolve(r.cwd||vh.cwd());return t.unshift(n),Jm.resolve.apply(Jm,t)},t.segments=function(e,t,r){if("string"!=typeof e)throw new TypeError(lm.expectedType("filepath","string",e));return e.split(/[\\\/]+/).slice(t,r).join("/")}})),Dx=Mc((function(e){var t=e.exports;t.toRegex=function(e,t,r){var n=lm.options({},t,r);return new RegExp(e,n.flags)},t.test=function(e,t){if("string"!=typeof e)return!1;if("regexp"!==jp(t))throw new TypeError("expected a regular expression");return t.test(e)}})),Hx=Mc((function(e,t){var r=e.exports;r.append=function(e,t){return"string"==typeof e&&"string"==typeof t?e+t:e},r.camelcase=function(e){return"string"!=typeof e?"":cg.changecase(e,(function(e){return e.toUpperCase()}))},r.capitalize=function(e){return"string"!=typeof e?"":e.charAt(0).toUpperCase()+e.slice(1)},r.capitalizeAll=function(e){return"string"!=typeof e?"":lm.isString(e)?e.replace(/\w\S*/g,(function(e){return r.capitalize(e)})):void 0},r.center=function(e,t){if("string"!=typeof e)return"";for(var r="",n=0;n<t;)r+=" ",n++;return r+e+r},r.chop=function(e){return"string"!=typeof e?"":cg.chop(e)},r.dashcase=function(e){return"string"!=typeof e?"":cg.changecase(e,(function(e){return"-"+e}))},r.dotcase=function(e){return"string"!=typeof e?"":cg.changecase(e,(function(e){return"."+e}))},r.downcase=function(){return r.lowercase.apply(this,arguments)},r.ellipsis=function(e,t){if(lm.isString(e))return e.length<=t?e:r.truncate(e,t)+"…"},r.hyphenate=function(e){return"string"!=typeof e?"":e.split(" ").join("-")},r.isString=function(e){return"string"==typeof e},r.lowercase=function(e){return lm.isObject(e)&&e.fn?e.fn(this).toLowerCase():"string"!=typeof e?"":e.toLowerCase()},r.occurrences=function(e,t){if("string"!=typeof e)return"";for(var r=t.length,n=0,i=0;(n=e.indexOf(t,n))>-1;)i++,n+=r;return i},r.pascalcase=function(e){return"string"!=typeof e?"":(e=cg.changecase(e,(function(e){return e.toUpperCase()}))).charAt(0).toUpperCase()+e.slice(1)},r.pathcase=function(e){return"string"!=typeof e?"":cg.changecase(e,(function(e){return"/"+e}))},r.plusify=function(e,t){return"string"!=typeof e?"":(lm.isString(t)||(t=" "),e.split(t).join("+"))},r.prepend=function(e,t){return"string"==typeof e&&"string"==typeof t?t+e:e},r.raw=function(e){var t=e.fn();if(!1!==lm.options(this,e).escape)for(var r=0;-1!==(r=t.indexOf("{{",r));)"\\"!==t[r-1]&&(t=t.slice(0,r)+"\\"+t.slice(r)),r+=3;return t},r.remove=function(e,t){return"string"!=typeof e?"":lm.isString(t)?e.split(t).join(""):e},r.removeFirst=function(e,t){return"string"!=typeof e?"":lm.isString(t)?e.replace(t,""):e},r.replace=function(e,t,r){return"string"!=typeof e?"":lm.isString(t)?(lm.isString(r)||(r=""),e.split(t).join(r)):e},r.replaceFirst=function(e,t,r){return"string"!=typeof e?"":lm.isString(t)?(lm.isString(r)||(r=""),e.replace(t,r)):e},r.reverse=function(e){return"string"!=typeof e?"":e.split("").reverse().join("")},r.sentence=function(e){return"string"!=typeof e?"":e.replace(/((?:\S[^\.\?\!]*)[\.\?\!]*)/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))},r.snakecase=function(e){return"string"!=typeof e?"":cg.changecase(e,(function(e){return"_"+e}))},r.split=function(e,t){return"string"!=typeof e?"":(lm.isString(t)||(t=","),e.split(t))},r.startsWith=function(e,t,r){return r=[].slice.call(arguments).pop(),lm.isString(t)&&0===t.indexOf(e)?r.fn(this):"function"==typeof r.inverse?r.inverse(this):""},r.titleize=function(e){if("string"!=typeof e)return"";for(var r=e.replace(/[- _]+/g," ").split(" "),n=r.length,i=[],a=0;n--;){var o=r[a++];i.push(t.capitalize(o))}return i.join(" ")},r.trim=function(e){return"string"==typeof e?e.trim():""},r.trimLeft=function(e){if(lm.isString(e))return e.replace(/^\s+/,"")},r.trimRight=function(e){if(lm.isString(e))return e.replace(/\s+$/,"")},r.truncate=function(e,t,r){if(lm.isString(e))return"string"!=typeof r&&(r=""),e.length>t?e.slice(0,t-r.length)+r:e},r.truncateWords=function(e,t,r){if(lm.isString(e)&&!isNaN(t)){"string"!=typeof r&&(r="…");var n=Number(t),i=e.split(/[ \t]/);return n>i.length&&(i=i.slice(0,n)),i.join(" ").trim()+r}},r.upcase=function(){return r.uppercase.apply(this,arguments)},r.uppercase=function(e){return lm.isObject(e)&&e.fn?e.fn(this).toUpperCase():"string"!=typeof e?"":e.toUpperCase()}})),Ox=2147483647,Px=36,Rx=1,Vx=26,Nx=38,Fx=700,jx=72,qx=128,Ux="-",Wx=/[^\x20-\x7E]/,Xx=/[\x2E\u3002\uFF0E\uFF61]/g,Gx={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Yx=Px-Rx,Zx=Math.floor,Kx=String.fromCharCode;function Jx(e){throw new RangeError(Gx[e])}function Qx(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function ew(e,t,r){var n=0;for(e=r?Zx(e/Fx):e>>1,e+=Zx(e/t);e>Yx*Vx>>1;n+=Px)e=Zx(e/Yx);return Zx(n+(Yx+1)*e/(e+Nx))}function tw(e){return function(e,t){var r=e.split("@"),n="";r.length>1&&(n=r[0]+"@",e=r[1]);var i=function(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}((e=e.replace(Xx,".")).split("."),(function(e){return Wx.test(e)?"xn--"+function(e){var t,r,n,i,a,o,s,l,c,u,p,d,h,m,g,f=[];for(e=function(e){for(var t,r,n=[],i=0,a=e.length;i<a;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<a?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}(e),d=e.length,t=qx,r=0,a=jx,o=0;o<d;++o)(p=e[o])<128&&f.push(Kx(p));for(n=i=f.length,i&&f.push(Ux);n<d;){for(s=Ox,o=0;o<d;++o)(p=e[o])>=t&&p<s&&(s=p);for(s-t>Zx((Ox-r)/(h=n+1))&&Jx("overflow"),r+=(s-t)*h,t=s,o=0;o<d;++o)if((p=e[o])<t&&++r>Ox&&Jx("overflow"),p==t){for(l=r,c=Px;!(l<(u=c<=a?Rx:c>=a+Vx?Vx:c-a));c+=Px)g=l-u,m=Px-u,f.push(Kx(Qx(u+g%m,0))),l=Zx(g/m);f.push(Kx(Qx(l,0))),a=ew(r,h,n==i),r=0,++n}++r,++t}return f.join("")}(e):e})).join(".");return n+i}(e)}function rw(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var nw=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function iw(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function aw(e,t,r,n){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?ow(sw(e),(function(n){var i=encodeURIComponent(iw(n))+r;return nw(e[n])?ow(e[n],(function(e){return i+encodeURIComponent(iw(e))})).join(t):i+encodeURIComponent(iw(e[n]))})).join(t):n?encodeURIComponent(iw(n))+r+encodeURIComponent(iw(e)):""}function ow(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var sw=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t};function lw(e,t,r,n){t=t||"&",r=r||"=";var i={};if("string"!=typeof e||0===e.length)return i;var a=/\+/g;e=e.split(t);var o=1e3;n&&"number"==typeof n.maxKeys&&(o=n.maxKeys);var s=e.length;o>0&&s>o&&(s=o);for(var l=0;l<s;++l){var c,u,p,d,h=e[l].replace(a,"%20"),m=h.indexOf(r);m>=0?(c=h.substr(0,m),u=h.substr(m+1)):(c=h,u=""),p=decodeURIComponent(c),d=decodeURIComponent(u),rw(i,p)?nw(i[p])?i[p].push(d):i[p]=[i[p],d]:i[p]=d}return i}var cw={encode:aw,stringify:aw,decode:lw,parse:lw},uw=Object.freeze({__proto__:null,stringify:aw,parse:lw,default:cw,encode:aw,decode:lw}),pw={parse:Sw,resolve:$w,resolveObject:Lw,format:Mw,Url:dw};function dw(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var hw=/^([a-z0-9.+-]+:)/i,mw=/:[0-9]*$/,gw=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,fw=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),vw=["'"].concat(fw),bw=["%","/","?",";","#"].concat(vw),yw=["/","?","#"],xw=255,ww=/^[+a-z0-9A-Z_-]{0,63}$/,zw=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,kw={javascript:!0,"javascript:":!0},Aw={javascript:!0,"javascript:":!0},Cw={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Sw(e,t,r){if(e&&Vh(e)&&e instanceof dw)return e;var n=new dw;return n.parse(e,t,r),n}function _w(e,t,r,n){if(!Hh(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),a=-1!==i&&i<t.indexOf("#")?"?":"#",o=t.split(a);o[0]=o[0].replace(/\\/g,"/");var s=t=o.join(a);if(s=s.trim(),!n&&1===t.split("#").length){var l=gw.exec(s);if(l)return e.path=s,e.href=s,e.pathname=l[1],l[2]?(e.search=l[2],e.query=r?lw(e.search.substr(1)):e.search.substr(1)):r&&(e.search="",e.query={}),e}var c,u,p,d,h=hw.exec(s);if(h){var m=(h=h[0]).toLowerCase();e.protocol=m,s=s.substr(h.length)}if(n||h||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var g="//"===s.substr(0,2);!g||h&&Aw[h]||(s=s.substr(2),e.slashes=!0)}if(!Aw[h]&&(g||h&&!Cw[h])){var f,v,b=-1;for(c=0;c<yw.length;c++)-1!==(u=s.indexOf(yw[c]))&&(-1===b||u<b)&&(b=u);for(-1!==(v=-1===b?s.lastIndexOf("@"):s.lastIndexOf("@",b))&&(f=s.slice(0,v),s=s.slice(v+1),e.auth=decodeURIComponent(f)),b=-1,c=0;c<bw.length;c++)-1!==(u=s.indexOf(bw[c]))&&(-1===b||u<b)&&(b=u);-1===b&&(b=s.length),e.host=s.slice(0,b),s=s.slice(b),Ew(e),e.hostname=e.hostname||"";var y="["===e.hostname[0]&&"]"===e.hostname[e.hostname.length-1];if(!y){var x=e.hostname.split(/\./);for(c=0,p=x.length;c<p;c++){var w=x[c];if(w&&!w.match(ww)){for(var z="",k=0,A=w.length;k<A;k++)w.charCodeAt(k)>127?z+="x":z+=w[k];if(!z.match(ww)){var C=x.slice(0,c),S=x.slice(c+1),_=w.match(zw);_&&(C.push(_[1]),S.unshift(_[2])),S.length&&(s="/"+S.join(".")+s),e.hostname=C.join(".");break}}}}e.hostname.length>xw?e.hostname="":e.hostname=e.hostname.toLowerCase(),y||(e.hostname=tw(e.hostname)),d=e.port?":"+e.port:"";var M=e.hostname||"";e.host=M+d,e.href+=e.host,y&&(e.hostname=e.hostname.substr(1,e.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!kw[m])for(c=0,p=vw.length;c<p;c++){var T=vw[c];if(-1!==s.indexOf(T)){var $=encodeURIComponent(T);$===T&&($=escape(T)),s=s.split(T).join($)}}var L=s.indexOf("#");-1!==L&&(e.hash=s.substr(L),s=s.slice(0,L));var E=s.indexOf("?");if(-1!==E?(e.search=s.substr(E),e.query=s.substr(E+1),r&&(e.query=lw(e.query)),s=s.slice(0,E)):r&&(e.search="",e.query={}),s&&(e.pathname=s),Cw[m]&&e.hostname&&!e.pathname&&(e.pathname="/"),e.pathname||e.search){d=e.pathname||"";var I=e.search||"";e.path=d+I}return e.href=Tw(e),e}function Mw(e){return Hh(e)&&(e=_w({},e)),Tw(e)}function Tw(e){var t=e.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var r=e.protocol||"",n=e.pathname||"",i=e.hash||"",a=!1,o="";e.host?a=t+e.host:e.hostname&&(a=t+(-1===e.hostname.indexOf(":")?e.hostname:"["+this.hostname+"]"),e.port&&(a+=":"+e.port)),e.query&&Vh(e.query)&&Object.keys(e.query).length&&(o=aw(e.query));var s=e.search||o&&"?"+o||"";return r&&":"!==r.substr(-1)&&(r+=":"),e.slashes||(!r||Cw[r])&&!1!==a?(a="//"+(a||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):a||(a=""),i&&"#"!==i.charAt(0)&&(i="#"+i),s&&"?"!==s.charAt(0)&&(s="?"+s),n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})),r+a+n+(s=s.replace("#","%23"))+i}function $w(e,t){return Sw(e,!1,!0).resolve(t)}function Lw(e,t){return e?Sw(e,!1,!0).resolveObject(t):t}function Ew(e){var t=e.host,r=mw.exec(t);r&&(":"!==(r=r[0])&&(e.port=r.substr(1)),t=t.substr(0,t.length-r.length)),t&&(e.hostname=t)}dw.prototype.parse=function(e,t,r){return _w(this,e,t,r)},dw.prototype.format=function(){return Tw(this)},dw.prototype.resolve=function(e){return this.resolveObject(Sw(e,!1,!0)).format()},dw.prototype.resolveObject=function(e){if(Hh(e)){var t=new dw;t.parse(e,!1,!0),e=t}for(var r,n=new dw,i=Object.keys(this),a=0;a<i.length;a++){var o=i[a];n[o]=this[o]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),l=0;l<s.length;l++){var c=s[l];"protocol"!==c&&(n[c]=e[c])}return Cw[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!Cw[e.protocol]){for(var u=Object.keys(e),p=0;p<u.length;p++){var d=u[p];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||Aw[e.protocol])n.pathname=e.pathname;else{for(r=(e.pathname||"").split("/");r.length&&!(e.host=r.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==r[0]&&r.unshift(""),r.length<2&&r.unshift(""),n.pathname=r.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var h=n.pathname||"",m=n.search||"";n.path=h+m}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var g,f=n.pathname&&"/"===n.pathname.charAt(0),v=e.host||e.pathname&&"/"===e.pathname.charAt(0),b=v||f||n.host&&e.pathname,y=b,x=n.pathname&&n.pathname.split("/")||[],w=n.protocol&&!Cw[n.protocol];if(r=e.pathname&&e.pathname.split("/")||[],w&&(n.hostname="",n.port=null,n.host&&(""===x[0]?x[0]=n.host:x.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===r[0]?r[0]=e.host:r.unshift(e.host)),e.host=null),b=b&&(""===r[0]||""===x[0])),v)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,x=r;else if(r.length)x||(x=[]),x.pop(),x=x.concat(r),n.search=e.search,n.query=e.query;else if(!Bh(e.search))return w&&(n.hostname=n.host=x.shift(),(g=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=g.shift(),n.host=n.hostname=g.shift())),n.search=e.search,n.query=e.query,Ih(n.pathname)&&Ih(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var z=x.slice(-1)[0],k=(n.host||e.host||x.length>1)&&("."===z||".."===z)||""===z,A=0,C=x.length;C>=0;C--)"."===(z=x[C])?x.splice(C,1):".."===z?(x.splice(C,1),A++):A&&(x.splice(C,1),A--);if(!b&&!y)for(;A--;A)x.unshift("..");!b||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),k&&"/"!==x.join("/").substr(-1)&&x.push("");var S=""===x[0]||x[0]&&"/"===x[0].charAt(0);return w&&(n.hostname=n.host=S?"":x.length?x.shift():"",(g=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=g.shift(),n.host=n.hostname=g.shift())),(b=b||n.host&&x.length)&&!S&&x.unshift(""),x.length?n.pathname=x.join("/"):(n.pathname=null,n.path=null),Ih(n.pathname)&&Ih(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},dw.prototype.parseHost=function(){return Ew(this)};var Iw=_c(Object.freeze({__proto__:null,parse:Sw,resolve:$w,resolveObject:Lw,format:Mw,default:pw,Url:dw})),Bw=_c(uw),Dw=Mc((function(e){var t=e.exports;t.encodeURI=function(e){if(lm.isString(e))return encodeURIComponent(e)},t.escape=function(e){if(lm.isString(e))return Bw.escape(e)},t.decodeURI=function(e){if(lm.isString(e))return decodeURIComponent(e)},t.urlResolve=function(e,t){return Iw.resolve(e,t)},t.urlParse=function(e){return Iw.parse(e)},t.stripQuerystring=function(e){if(lm.isString(e))return e.split("?")[0]},t.stripProtocol=function(e){if(lm.isString(e)){var t=Iw.parse(e);return t.protocol="",t.format()}}})),Hw={array:$m,code:Qm,collection:ng,comparison:hg,html:fg,i18n:vg,inflection:bg,match:kx,math:Ax,misc:Cx,number:Sx,object:rg,path:Bx,regex:Dx,string:Hx,url:Dw},Ow=Mc((function(e){e.exports=function(t,r){"string"==typeof t?t=[t]:Array.isArray(t)||(r=t,t=null);var n=(r=r||{}).handlebars||r.hbs||Op;return Yp(e.exports,"handlebars",n),t?t.forEach((function(e){n.registerHelper(Hw[e])})):Vp(Hw,(function(e,t){n.registerHelper(e)})),n.helpers},Vp(Hw,(function(t,r){Yp(e.exports,r,(function(r){var n=(r=r||{}).handlebars||r.hbs||Op;return Yp(e.exports,"handlebars",n),n.registerHelper(t),n.helpers}))})),e.exports.utils=cg})),Pw=Mc((function(e,t){e.exports=function(){var e=6e4,t=36e5,r="millisecond",n="second",i="minute",a="hour",o="day",s="week",l="month",c="quarter",u="year",p="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},f=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},v={s:f,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+f(n,2,"0")+":"+f(i,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,l),a=r-i<0,o=t.clone().add(n+(a?-1:1),l);return+(-(n+(r-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:u,w:s,d:o,D:p,h:a,m:i,s:n,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",y={};y[b]=g;var x=function(e){return e instanceof A},w=function e(t,r,n){var i;if(!t)return b;if("string"==typeof t){var a=t.toLowerCase();y[a]&&(i=a),r&&(y[a]=r,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;y[s]=t,i=s}return!n&&i&&(b=i),i||!n&&b},z=function(e,t){if(x(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new A(r)},k=v;k.l=w,k.i=x,k.w=function(e,t){return z(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var A=function(){function g(e){this.$L=w(e.locale,null,!0),this.parse(e)}var f=g.prototype;return f.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(h);if(n){var i=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},f.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},f.$utils=function(){return k},f.isValid=function(){return!(this.$d.toString()===d)},f.isSame=function(e,t){var r=z(e);return this.startOf(t)<=r&&r<=this.endOf(t)},f.isAfter=function(e,t){return z(e)<this.startOf(t)},f.isBefore=function(e,t){return this.endOf(t)<z(e)},f.$g=function(e,t,r){return k.u(e)?this[t]:this.set(r,e)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(e,t){var r=this,c=!!k.u(t)||t,d=k.p(e),h=function(e,t){var n=k.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return c?n:n.endOf(o)},m=function(e,t){return k.w(r.toDate()[e].apply(r.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},g=this.$W,f=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(d){case u:return c?h(1,0):h(31,11);case l:return c?h(1,f):h(0,f+1);case s:var y=this.$locale().weekStart||0,x=(g<y?g+7:g)-y;return h(c?v-x:v+(6-x),f);case o:case p:return m(b+"Hours",0);case a:return m(b+"Minutes",1);case i:return m(b+"Seconds",2);case n:return m(b+"Milliseconds",3);default:return this.clone()}},f.endOf=function(e){return this.startOf(e,!1)},f.$set=function(e,t){var s,c=k.p(e),d="set"+(this.$u?"UTC":""),h=(s={},s[o]=d+"Date",s[p]=d+"Date",s[l]=d+"Month",s[u]=d+"FullYear",s[a]=d+"Hours",s[i]=d+"Minutes",s[n]=d+"Seconds",s[r]=d+"Milliseconds",s)[c],m=c===o?this.$D+(t-this.$W):t;if(c===l||c===u){var g=this.clone().set(p,1);g.$d[h](m),g.init(),this.$d=g.set(p,Math.min(this.$D,g.daysInMonth())).$d}else h&&this.$d[h](m);return this.init(),this},f.set=function(e,t){return this.clone().$set(e,t)},f.get=function(e){return this[k.p(e)]()},f.add=function(r,c){var p,d=this;r=Number(r);var h=k.p(c),m=function(e){var t=z(d);return k.w(t.date(t.date()+Math.round(e*r)),d)};if(h===l)return this.set(l,this.$M+r);if(h===u)return this.set(u,this.$y+r);if(h===o)return m(1);if(h===s)return m(7);var g=(p={},p[i]=e,p[a]=t,p[n]=1e3,p)[h]||1,f=this.$d.getTime()+r*g;return k.w(f,this)},f.subtract=function(e,t){return this.add(-1*e,t)},f.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||d;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=k.z(this),a=this.$H,o=this.$m,s=this.$M,l=r.weekdays,c=r.months,u=r.meridiem,p=function(e,r,i,a){return e&&(e[r]||e(t,n))||i[r].slice(0,a)},h=function(e){return k.s(a%12||12,e,"0")},g=u||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(m,(function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return s+1;case"MM":return k.s(s+1,2,"0");case"MMM":return p(r.monthsShort,s,c,3);case"MMMM":return p(c,s);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(r.weekdaysMin,t.$W,l,2);case"ddd":return p(r.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(a);case"HH":return k.s(a,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return g(a,o,!0);case"A":return g(a,o,!1);case"m":return String(o);case"mm":return k.s(o,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(r,p,d){var h,m=this,g=k.p(p),f=z(r),v=(f.utcOffset()-this.utcOffset())*e,b=this-f,y=function(){return k.m(m,f)};switch(g){case u:h=y()/12;break;case l:h=y();break;case c:h=y()/3;break;case s:h=(b-v)/6048e5;break;case o:h=(b-v)/864e5;break;case a:h=b/t;break;case i:h=b/e;break;case n:h=b/1e3;break;default:h=b}return d?h:k.a(h)},f.daysInMonth=function(){return this.endOf(l).$D},f.$locale=function(){return y[this.$L]},f.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=w(e,t,!0);return n&&(r.$L=n),r},f.clone=function(){return k.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},g}(),C=A.prototype;return z.prototype=C,[["$ms",r],["$s",n],["$m",i],["$H",a],["$W",o],["$M",l],["$y",u],["$D",p]].forEach((function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),z.extend=function(e,t){return e.$i||(e(t,A,z),e.$i=!0),z},z.locale=w,z.isDayjs=x,z.unix=function(e){return z(1e3*e)},z.en=y[b],z.Ls=y,z.p={},z}()})),Rw=Mc((function(e,t){e.exports=function(){var e,t,r=1e3,n=6e4,i=36e5,a=864e5,o=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,l=2592e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,u={years:s,months:l,days:a,hours:i,minutes:n,seconds:r,milliseconds:1,weeks:6048e5},p=function(e){return e instanceof b},d=function(e,t,r){return new b(e,r,t.$l)},h=function(e){return t.p(e)+"s"},m=function(e){return e<0},g=function(e){return m(e)?Math.ceil(e):Math.floor(e)},f=function(e){return Math.abs(e)},v=function(e,t){return e?m(e)?{negative:!0,format:""+f(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},b=function(){function m(e,t,r){var n=this;if(this.$d={},this.$l=r,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return d(e*u[h(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){n.$d[h(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var i=e.match(c);if(i){var a=i.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var f=m.prototype;return f.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,r){return t+(e.$d[r]||0)*u[r]}),0)},f.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=g(e/s),e%=s,this.$d.months=g(e/l),e%=l,this.$d.days=g(e/a),e%=a,this.$d.hours=g(e/i),e%=i,this.$d.minutes=g(e/n),e%=n,this.$d.seconds=g(e/r),e%=r,this.$d.milliseconds=e},f.toISOString=function(){var e=v(this.$d.years,"Y"),t=v(this.$d.months,"M"),r=+this.$d.days||0;this.$d.weeks&&(r+=7*this.$d.weeks);var n=v(r,"D"),i=v(this.$d.hours,"H"),a=v(this.$d.minutes,"M"),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3);var s=v(o,"S"),l=e.negative||t.negative||n.negative||i.negative||a.negative||s.negative,c=i.format||a.format||s.format?"T":"",u=(l?"-":"")+"P"+e.format+t.format+n.format+c+i.format+a.format+s.format;return"P"===u||"-P"===u?"P0D":u},f.toJSON=function(){return this.toISOString()},f.format=function(e){var r=e||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return r.replace(o,(function(e,t){return t||String(n[e])}))},f.as=function(e){return this.$ms/u[h(e)]},f.get=function(e){var t=this.$ms,r=h(e);return"milliseconds"===r?t%=1e3:t="weeks"===r?g(t/u[r]):this.$d[r],0===t?0:t},f.add=function(e,t,r){var n;return n=t?e*u[h(t)]:p(e)?e.$ms:d(e,this).$ms,d(this.$ms+n*(r?-1:1),this)},f.subtract=function(e,t){return this.add(e,t,!0)},f.locale=function(e){var t=this.clone();return t.$l=e,t},f.clone=function(){return d(this.$ms,this)},f.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},f.valueOf=function(){return this.asMilliseconds()},f.milliseconds=function(){return this.get("milliseconds")},f.asMilliseconds=function(){return this.as("milliseconds")},f.seconds=function(){return this.get("seconds")},f.asSeconds=function(){return this.as("seconds")},f.minutes=function(){return this.get("minutes")},f.asMinutes=function(){return this.as("minutes")},f.hours=function(){return this.get("hours")},f.asHours=function(){return this.as("hours")},f.days=function(){return this.get("days")},f.asDays=function(){return this.as("days")},f.weeks=function(){return this.get("weeks")},f.asWeeks=function(){return this.as("weeks")},f.months=function(){return this.get("months")},f.asMonths=function(){return this.as("months")},f.years=function(){return this.get("years")},f.asYears=function(){return this.as("years")},m}(),y=function(e,t,r){return e.add(t.years()*r,"y").add(t.months()*r,"M").add(t.days()*r,"d").add(t.hours()*r,"h").add(t.minutes()*r,"m").add(t.seconds()*r,"s").add(t.milliseconds()*r,"ms")};return function(r,n,i){e=i,t=i().$utils(),i.duration=function(e,t){var r=i.locale();return d(e,{$l:r},t)},i.isDuration=p;var a=n.prototype.add,o=n.prototype.subtract;n.prototype.add=function(e,t){return p(e)?y(this,e,1):a.bind(this)(e,t)},n.prototype.subtract=function(e,t){return p(e)?y(this,e,-1):o.bind(this)(e,t)}}}()})),Vw=Mc((function(e,t){e.exports=function(e,t){var r=t.prototype,n=r.format;r.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return n.bind(this)(e);var i=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return r.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return r.ordinal(t.week(),"W");case"w":case"ww":return i.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return i.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return i.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return n.bind(this)(a)}}})),Nw=Mc((function(e,t){var r;e.exports=(r="day",function(e,t,n){var i=function(e){return e.add(4-e.isoWeekday(),r)},a=t.prototype;a.isoWeekYear=function(){return i(this).year()},a.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),r);var t,a,o,s=i(this),l=(t=this.isoWeekYear(),o=4-(a=(this.$u?n.utc:n)().year(t).startOf("year")).isoWeekday(),a.isoWeekday()>4&&(o+=7),a.add(o,r));return s.diff(l,"week")+1},a.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var o=a.startOf;a.startOf=function(e,t){var r=this.$utils(),n=!!r.u(t)||t;return"isoweek"===r.p(e)?n?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):o.bind(this)(e,t)}})})),Fw=Mc((function(e,t){e.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),r=this.year();return 1===t&&11===e?r+1:0===e&&t>=52?r-1:r}}})),jw=Mc((function(e,t){var r,n;e.exports=(r="week",n="year",function(e,t,i){var a=t.prototype;a.week=function(e){if(void 0===e&&(e=null),null!==e)return this.add(7*(e-this.week()),"day");var t=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var a=i(this).startOf(n).add(1,n).date(t),o=i(this).endOf(r);if(a.isBefore(o))return 1}var s=i(this).startOf(n).date(t).startOf(r).subtract(1,"millisecond"),l=this.diff(s,r,!0);return l<0?i(this).startOf("week").week():Math.ceil(l)},a.weeks=function(e){return void 0===e&&(e=null),this.week(e)}})})),qw=Mc((function(e,t){e.exports=function(e,t,r){e=e||{};var n=t.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function a(e,t,r,i){return n.fromToBase(e,t,r,i)}r.en.relativeTime=i,n.fromToBase=function(t,n,a,o,s){for(var l,c,u,p=a.$locale().relativeTime||i,d=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=d.length,m=0;m<h;m+=1){var g=d[m];g.d&&(l=o?r(t).diff(a,g.d,!0):a.diff(t,g.d,!0));var f=(e.rounding||Math.round)(Math.abs(l));if(u=l>0,f<=g.r||!g.r){f<=1&&m>0&&(g=d[m-1]);var v=p[g.l];s&&(f=s(""+f)),c="string"==typeof v?v.replace("%d",f):v(f,n,g.l,u);break}}if(n)return c;var b=u?p.future:p.past;return"function"==typeof b?b(c):b.replace("%s",c)},n.to=function(e,t){return a(e,t,this,!0)},n.from=function(e,t){return a(e,t,this)};var o=function(e){return e.$u?r.utc():r()};n.toNow=function(e){return this.to(o(this),e)},n.fromNow=function(e){return this.from(o(this),e)}}})),Uw=Mc((function(e,t){var r,n,i;e.exports=(r="minute",n=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g,function(e,t,a){var o=t.prototype;a.utc=function(e){return new t({date:e,utc:!0,args:arguments})},o.utc=function(e){var t=a(this.toDate(),{locale:this.$L,utc:!0});return e?t.add(this.utcOffset(),r):t},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=o.utcOffset;o.utcOffset=function(e,t){var a=this.$utils().u;if(a(e))return this.$u?0:a(this.$offset)?c.call(this):this.$offset;if("string"==typeof e&&(e=function(e){void 0===e&&(e="");var t=e.match(n);if(!t)return null;var r=(""+t[0]).match(i)||["-",0,0],a=r[0],o=60*+r[1]+ +r[2];return 0===o?0:"+"===a?o:-o}(e),null===e))return this;var o=Math.abs(e)<=16?60*e:e,s=this;if(t)return s.$offset=o,s.$u=0===e,s;if(0!==e){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(o+l,r)).$offset=o,s.$x.$localOffset=l}else s=this.utc();return s};var u=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var p=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var d=o.diff;o.diff=function(e,t,r){if(e&&this.$u===e.$u)return d.call(this,e,t,r);var n=this.local(),i=a(e).local();return d.call(n,i,t,r)}})})),Ww=Mc((function(e,t){var r,n;e.exports=(r={year:0,month:1,day:2,hour:3,minute:4,second:5},n={},function(e,t,i){var a,o=function(e,t,r){void 0===r&&(r={});var i=new Date(e),a=function(e,t){void 0===t&&(t={});var r=t.timeZoneName||"short",i=e+"|"+r,a=n[i];return a||(a=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),n[i]=a),a}(t,r);return a.formatToParts(i)},s=function(e,t){for(var n=o(e,t),a=[],s=0;s<n.length;s+=1){var l=n[s],c=l.type,u=l.value,p=r[c];p>=0&&(a[p]=parseInt(u,10))}var d=a[3],h=24===d?0:d,m=a[0]+"-"+a[1]+"-"+a[2]+" "+h+":"+a[4]+":"+a[5]+":000",g=+e;return(i.utc(m).valueOf()-(g-=g%1e3))/6e4},l=t.prototype;l.tz=function(e,t){void 0===e&&(e=a);var r=this.utcOffset(),n=this.toDate(),o=n.toLocaleString("en-US",{timeZone:e}),s=Math.round((n-new Date(o))/1e3/60),l=i(o).$set("millisecond",this.$ms).utcOffset(15*-Math.round(n.getTimezoneOffset()/15)-s,!0);if(t){var c=l.utcOffset();l=l.add(r-c,"minute")}return l.$x.$timezone=e,l},l.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),r=o(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return r&&r.value};var c=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var r=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(r,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,r){var n=r&&t,o=r||t||a,l=s(+i(),o);if("string"!=typeof e)return i(e).tz(o);var c=function(e,t,r){var n=e-60*t*1e3,i=s(n,r);if(t===i)return[n,t];var a=s(n-=60*(i-t)*1e3,r);return i===a?[n,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}(i.utc(e,n).valueOf(),l,o),u=c[0],p=c[1],d=i(u).utcOffset(p);return d.$x.$timezone=o,d},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){a=e}})}));function Xw(e){return"object"==typeof e&&"object"==typeof e.hash}function Gw(e){return"object"==typeof e&&"object"==typeof e.options&&"object"==typeof e.app}function Yw(e,t,r){if(Xw(e))return Yw({},t,e);if(Xw(t))return Yw(e,r,t);const n=Gw(e)?e.context:{};Xw(r=r||{})||(t=Object.assign({},t,r)),Xw(r)&&!0===r.hash.root&&(t=Object.assign({},r.data.root,t));let i=Object.assign({},n,t,r.hash);return Gw(e)||(i=Object.assign({},e,i)),Gw(e)&&e.view&&e.view.data&&(i=Object.assign({},i,e.view.data)),i}function Zw(e,t,r){return Xw(t)&&(r=t,t=null),Xw(e)&&(r=e,t=null,e=null),{str:e,pattern:t,options:r}}function Kw(e,t,r){const n=Zw(e,t,r),i=Yw(this,{lang:"en",date:new Date(n.str)},{});Pw.locale(i.lang||i.language)}Pw.extend(Rw),Pw.extend(Vw),Pw.extend(Nw),Pw.extend(Fw),Pw.extend(jw),Pw.extend(qw),Pw.extend(Uw),Pw.extend(Ww);var Jw={date:(e,t,r)=>{const n=Zw(e,t,r);if(null==n.str&&null==n.pattern)return Pw.locale("en"),Pw().format("MMMM DD, YYYY");Kw(n.str,n.pattern,n.options);let i=Pw(new Date(n.str));return i="string"==typeof n.options?"utc"===n.options.toLowerCase()?i.utc():i.tz(n.options):i.tz(Pw.tz.guess()),""===n.pattern?i.toISOString():i.format(n.pattern)},duration:(e,t,r)=>{const n=Zw(e,t);Kw(n.str,n.pattern);const i=Pw.duration(n.str,n.pattern);return Xw(r)?i.humanize():i.format(r)}},Qw={HelperFunctionBuiltin:["#if","#unless","#each","#with","lookup","log","blockHelperMissing","each","helperMissing","if","unless","log","lookup","with"],HelperFunctionNames:{OBJECT:"object",ALL:"all",LITERAL:"literal",JS:"js"},LITERAL_MARKER:"%LITERAL%"},ez=Mc((function(e,t){const{date:r,duration:n}=Jw,{HelperFunctionBuiltin:i}=Qw,a=["math","array","number","url","string","comparison","object","regex"],o={date:r,duration:n};t.externalCollections=a,t.addedHelpers=o,t.registerAll=e=>{for(let[t,r]of Object.entries(o))e.registerHelper(t,r);let r=[];for(let t of a){let n=Ow[t]();for(let e of Object.entries(n)){const t=e[0];-1===i.indexOf(t)&&-1===r.indexOf(t)&&r.push(t)}Ow[t]({handlebars:e})}t.externalHelperNames=r.concat(Object.keys(o))},t.unregisterAll=r=>{for(let e of Object.keys(o))r.unregisterHelper(e);for(let t of e.exports.externalHelperNames)r.unregisterHelper(t);t.externalHelperNames=[]},t.externalHelperNames=[]})),tz=Mc((function(e,t){const r=/^[A-Za-z0-9]+$/g;e.exports.FIND_HBS_REGEX=/{{([^{].*?)}}/g,e.exports.FIND_ANY_HBS_REGEX=/{?{{([^{].*?)}}}?/g,e.exports.FIND_TRIPLE_HBS_REGEX=/{{{([^{].*?)}}}/g,e.exports.findDoubleHbsInstances=e=>{let r=e;const n=new RegExp(t.FIND_HBS_REGEX),i=new RegExp(t.FIND_TRIPLE_HBS_REGEX),a=r.match(i);a&&a.forEach((e=>{r=r.replace(e,"")}));return r.match(n)||[]},e.exports.isAlphaNumeric=e=>e.match(r),e.exports.swapStrings=(e,t,r,n)=>e.slice(0,t)+n+e.slice(t+r),e.exports.removeHandlebarsStatements=(e,r="Invalid binding")=>{let n=new RegExp(t.FIND_HBS_REGEX),i=e.match(n);if(null==i)return e;for(let n of i){const i=e.indexOf(n);e=t.swapStrings(e,i,n.length,r)}return e},e.exports.btoa=e=>cd.from(e,"utf-8").toString("base64"),e.exports.atob=e=>cd.from(e,"base64").toString("utf-8")})),rz=Mc((function(e,t){(function(){function r(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function n(e,t,r,n){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(n,o,r(o),e)}return n}function i(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function a(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function o(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function s(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}function l(e,t){return!(null==e||!e.length)&&b(e,t,0)>-1}function c(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function u(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function p(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function d(e,t,r,n){var i=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++i]);++i<a;)r=t(r,e[i],i,e);return r}function h(e,t,r,n){var i=null==e?0:e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function m(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function g(e){return e.match(Ge)||[]}function f(e,t,r){var n;return r(e,(function(e,r,i){if(t(e,r,i))return n=r,!1})),n}function v(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function b(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}(e,t,r):v(e,x,r)}function y(e,t,r,n){for(var i=r-1,a=e.length;++i<a;)if(n(e[i],t))return i;return-1}function x(e){return e!=e}function w(e,t){var r=null==e?0:e.length;return r?C(e,t)/r:J}function z(e){return function(t){return null==t?q:t[e]}}function k(e){return function(t){return null==e?q:e[t]}}function A(e,t,r,n,i){return i(e,(function(e,i,a){r=n?(n=!1,e):t(r,e,i,a)})),r}function C(e,t){for(var r,n=-1,i=e.length;++n<i;){var a=t(e[n]);a!==q&&(r=r===q?a:r+a)}return r}function S(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function _(e){return e?e.slice(0,F(e)+1).replace(je,""):e}function M(e){return function(t){return e(t)}}function T(e,t){return u(t,(function(t){return e[t]}))}function $(e,t){return e.has(t)}function L(e,t){for(var r=-1,n=e.length;++r<n&&b(t,e[r],0)>-1;);return r}function E(e,t){for(var r=e.length;r--&&b(t,e[r],0)>-1;);return r}function I(e){return"\\"+Wt[e]}function B(e){return Vt.test(e)}function D(e){return Nt.test(e)}function H(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function O(e,t){return function(r){return e(t(r))}}function P(e,t){for(var r=-1,n=e.length,i=0,a=[];++r<n;){var o=e[r];o!==t&&o!==X||(e[r]=X,a[i++]=r)}return a}function R(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function V(e){return B(e)?function(e){for(var t=Pt.lastIndex=0;Pt.test(e);)++t;return t}(e):cr(e)}function N(e){return B(e)?function(e){return e.match(Pt)||[]}(e):function(e){return e.split("")}(e)}function F(e){for(var t=e.length;t--&&qe.test(e.charAt(t)););return t}function j(e){return e.match(Rt)||[]}var q,U="Expected a function",W="__lodash_hash_undefined__",X="__lodash_placeholder__",G=32,Y=128,Z=1/0,K=9007199254740991,J=NaN,Q=4294967295,ee=[["ary",Y],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",G],["partialRight",64],["rearg",256]],te="[object Arguments]",re="[object Array]",ne="[object Boolean]",ie="[object Date]",ae="[object Error]",oe="[object Function]",se="[object GeneratorFunction]",le="[object Map]",ce="[object Number]",ue="[object Object]",pe="[object Promise]",de="[object RegExp]",he="[object Set]",me="[object String]",ge="[object Symbol]",fe="[object WeakMap]",ve="[object ArrayBuffer]",be="[object DataView]",ye="[object Float32Array]",xe="[object Float64Array]",we="[object Int8Array]",ze="[object Int16Array]",ke="[object Int32Array]",Ae="[object Uint8Array]",Ce="[object Uint8ClampedArray]",Se="[object Uint16Array]",_e="[object Uint32Array]",Me=/\b__p \+= '';/g,Te=/\b(__p \+=) '' \+/g,$e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Le=/&(?:amp|lt|gt|quot|#39);/g,Ee=/[&<>"']/g,Ie=RegExp(Le.source),Be=RegExp(Ee.source),De=/<%-([\s\S]+?)%>/g,He=/<%([\s\S]+?)%>/g,Oe=/<%=([\s\S]+?)%>/g,Pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Re=/^\w*$/,Ve=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ne=/[\\^$.*+?()[\]{}|]/g,Fe=RegExp(Ne.source),je=/^\s+/,qe=/\s/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,We=/\{\n\/\* \[wrapped with (.+)\] \*/,Xe=/,? & /,Ge=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ye=/[()=,{}\[\]\/\s]/,Ze=/\\(\\)?/g,Ke=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Je=/\w*$/,Qe=/^[-+]0x[0-9a-f]+$/i,et=/^0b[01]+$/i,tt=/^\[object .+?Constructor\]$/,rt=/^0o[0-7]+$/i,nt=/^(?:0|[1-9]\d*)$/,it=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,at=/($^)/,ot=/['\n\r\u2028\u2029\\]/g,st="\\ud800-\\udfff",lt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ct="\\u2700-\\u27bf",ut="a-z\\xdf-\\xf6\\xf8-\\xff",pt="A-Z\\xc0-\\xd6\\xd8-\\xde",dt="\\ufe0e\\ufe0f",ht="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",mt="["+st+"]",gt="["+ht+"]",ft="["+lt+"]",vt="\\d+",bt="["+ct+"]",yt="["+ut+"]",xt="[^"+st+ht+vt+ct+ut+pt+"]",wt="\\ud83c[\\udffb-\\udfff]",zt="[^"+st+"]",kt="(?:\\ud83c[\\udde6-\\uddff]){2}",At="[\\ud800-\\udbff][\\udc00-\\udfff]",Ct="["+pt+"]",St="\\u200d",_t="(?:"+yt+"|"+xt+")",Mt="(?:"+Ct+"|"+xt+")",Tt="(?:['’](?:d|ll|m|re|s|t|ve))?",$t="(?:['’](?:D|LL|M|RE|S|T|VE))?",Lt="(?:"+ft+"|"+wt+")?",Et="["+dt+"]?",It=Et+Lt+"(?:"+St+"(?:"+[zt,kt,At].join("|")+")"+Et+Lt+")*",Bt="(?:"+[bt,kt,At].join("|")+")"+It,Dt="(?:"+[zt+ft+"?",ft,kt,At,mt].join("|")+")",Ht=RegExp("['’]","g"),Ot=RegExp(ft,"g"),Pt=RegExp(wt+"(?="+wt+")|"+Dt+It,"g"),Rt=RegExp([Ct+"?"+yt+"+"+Tt+"(?="+[gt,Ct,"$"].join("|")+")",Mt+"+"+$t+"(?="+[gt,Ct+_t,"$"].join("|")+")",Ct+"?"+_t+"+"+Tt,Ct+"+"+$t,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vt,Bt].join("|"),"g"),Vt=RegExp("["+St+st+lt+dt+"]"),Nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ft=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],jt=-1,qt={};qt[ye]=qt[xe]=qt[we]=qt[ze]=qt[ke]=qt[Ae]=qt[Ce]=qt[Se]=qt[_e]=!0,qt[te]=qt[re]=qt[ve]=qt[ne]=qt[be]=qt[ie]=qt[ae]=qt[oe]=qt[le]=qt[ce]=qt[ue]=qt[de]=qt[he]=qt[me]=qt[fe]=!1;var Ut={};Ut[te]=Ut[re]=Ut[ve]=Ut[be]=Ut[ne]=Ut[ie]=Ut[ye]=Ut[xe]=Ut[we]=Ut[ze]=Ut[ke]=Ut[le]=Ut[ce]=Ut[ue]=Ut[de]=Ut[he]=Ut[me]=Ut[ge]=Ut[Ae]=Ut[Ce]=Ut[Se]=Ut[_e]=!0,Ut[ae]=Ut[oe]=Ut[fe]=!1;var Wt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Xt=parseFloat,Gt=parseInt,Yt="object"==typeof Sc&&Sc&&Sc.Object===Object&&Sc,Zt="object"==typeof self&&self&&self.Object===Object&&self,Kt=Yt||Zt||Function("return this")(),Jt=t&&!t.nodeType&&t,Qt=Jt&&e&&!e.nodeType&&e,er=Qt&&Qt.exports===Jt,tr=er&&Yt.process,rr=function(){try{return Qt&&Qt.require&&Qt.require("util").types||tr&&tr.binding&&tr.binding("util")}catch(e){}}(),nr=rr&&rr.isArrayBuffer,ir=rr&&rr.isDate,ar=rr&&rr.isMap,or=rr&&rr.isRegExp,sr=rr&&rr.isSet,lr=rr&&rr.isTypedArray,cr=z("length"),ur=k({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),pr=k({"&":"&","<":"<",">":">",'"':""","'":"'"}),dr=k({"&":"&","<":"<",">":">",""":'"',"'":"'"}),hr=function e(t){function k(e){if(Ii(e)&&!ks(e)&&!(e instanceof st)){if(e instanceof Ge)return e;if(za.call(e,"__wrapped__"))return ai(e)}return new Ge(e)}function qe(){}function Ge(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=q}function st(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function lt(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ct(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ut(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function pt(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new ut;++t<r;)this.add(e[t])}function dt(e){this.size=(this.__data__=new ct(e)).size}function ht(e,t){var r=ks(e),n=!r&&zs(e),i=!r&&!n&&Cs(e),a=!r&&!n&&!i&&$s(e),o=r||n||i||a,s=o?S(e.length,ga):[],l=s.length;for(var c in e)!t&&!za.call(e,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||qn(c,l))||s.push(c);return s}function mt(e){var t=e.length;return t?e[Sr(0,t-1)]:q}function gt(e,t){return ri(nn(e),At(t,0,e.length))}function ft(e){return ri(nn(e))}function vt(e,t,r){(r===q||Ci(e[t],r))&&(r!==q||t in e)||zt(e,t,r)}function bt(e,t,r){var n=e[t];za.call(e,t)&&Ci(n,r)&&(r!==q||t in e)||zt(e,t,r)}function yt(e,t){for(var r=e.length;r--;)if(Ci(e[r][0],t))return r;return-1}function xt(e,t,r,n){return wo(e,(function(e,i,a){t(n,e,r(e),a)})),n}function wt(e,t){return e&&an(t,Xi(t),e)}function zt(e,t,r){"__proto__"==t&&Va?Va(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function kt(e,t){for(var r=-1,n=t.length,i=la(n),a=null==e;++r<n;)i[r]=a?q:Ui(e,t[r]);return i}function At(e,t,r){return e==e&&(r!==q&&(e=e<=r?e:r),t!==q&&(e=e>=t?e:t)),e}function Ct(e,t,r,n,a,o){var s,l=1&t,c=2&t,u=4&t;if(r&&(s=a?r(e,n,a,o):r(e)),s!==q)return s;if(!Ei(e))return e;var p=ks(e);if(p){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&za.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!l)return nn(e,s)}else{var d=Io(e),h=d==oe||d==se;if(Cs(e))return Kr(e,l);if(d==ue||d==te||h&&!a){if(s=c||h?{}:Fn(e),!l)return c?function(e,t){return an(e,Eo(e),t)}(e,function(e,t){return e&&an(t,Gi(t),e)}(s,e)):function(e,t){return an(e,Lo(e),t)}(e,wt(s,e))}else{if(!Ut[d])return a?e:{};s=function(e,t,r){var n=e.constructor;switch(t){case ve:return Jr(e);case ne:case ie:return new n(+e);case be:return function(e,t){return new e.constructor(t?Jr(e.buffer):e.buffer,e.byteOffset,e.byteLength)}(e,r);case ye:case xe:case we:case ze:case ke:case Ae:case Ce:case Se:case _e:return Qr(e,r);case le:return new n;case ce:case me:return new n(e);case de:return function(e){var t=new e.constructor(e.source,Je.exec(e));return t.lastIndex=e.lastIndex,t}(e);case he:return new n;case ge:return function(e){return bo?ha(bo.call(e)):{}}(e)}}(e,d,l)}}o||(o=new dt);var m=o.get(e);if(m)return m;o.set(e,s),Ts(e)?e.forEach((function(n){s.add(Ct(n,t,r,n,e,o))})):_s(e)&&e.forEach((function(n,i){s.set(i,Ct(n,t,r,i,e,o))}));var g=p?q:(u?c?Bn:In:c?Gi:Xi)(e);return i(g||e,(function(n,i){g&&(n=e[i=n]),bt(s,i,Ct(n,t,r,i,e,o))})),s}function St(e,t,r){var n=r.length;if(null==e)return!n;for(e=ha(e);n--;){var i=r[n],a=t[i],o=e[i];if(o===q&&!(i in e)||!a(o))return!1}return!0}function _t(e,t,r){if("function"!=typeof e)throw new fa(U);return Ho((function(){e.apply(q,r)}),t)}function Mt(e,t,r,n){var i=-1,a=l,o=!0,s=e.length,p=[],d=t.length;if(!s)return p;r&&(t=u(t,M(r))),n?(a=c,o=!1):t.length>=200&&(a=$,o=!1,t=new pt(t));e:for(;++i<s;){var h=e[i],m=null==r?h:r(h);if(h=n||0!==h?h:0,o&&m==m){for(var g=d;g--;)if(t[g]===m)continue e;p.push(h)}else a(t,m,n)||p.push(h)}return p}function Tt(e,t){var r=!0;return wo(e,(function(e,n,i){return r=!!t(e,n,i)})),r}function $t(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],o=t(a);if(null!=o&&(s===q?o==o&&!Oi(o):r(o,s)))var s=o,l=a}return l}function Lt(e,t){var r=[];return wo(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function Et(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=jn),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?Et(s,t-1,r,n,i):p(i,s):n||(i[i.length]=s)}return i}function It(e,t){return e&&ko(e,t,Xi)}function Bt(e,t){return e&&Ao(e,t,Xi)}function Dt(e,t){return s(t,(function(t){return Ti(e[t])}))}function Pt(e,t){for(var r=0,n=(t=Yr(t,e)).length;null!=e&&r<n;)e=e[ni(t[r++])];return r&&r==n?e:q}function Rt(e,t,r){var n=t(e);return ks(e)?n:p(n,r(e))}function Vt(e){return null==e?e===q?"[object Undefined]":"[object Null]":Ra&&Ra in ha(e)?function(e){var t=za.call(e,Ra),r=e[Ra];try{e[Ra]=q;var n=!0}catch(e){}var i=Ca.call(e);return n&&(t?e[Ra]=r:delete e[Ra]),i}(e):function(e){return Ca.call(e)}(e)}function Nt(e,t){return e>t}function Wt(e,t){return null!=e&&za.call(e,t)}function Yt(e,t){return null!=e&&t in ha(e)}function Zt(e,t,r){for(var n=r?c:l,i=e[0].length,a=e.length,o=a,s=la(a),p=1/0,d=[];o--;){var h=e[o];o&&t&&(h=u(h,M(t))),p=Ja(h.length,p),s[o]=!r&&(t||i>=120&&h.length>=120)?new pt(o&&h):q}h=e[0];var m=-1,g=s[0];e:for(;++m<i&&d.length<p;){var f=h[m],v=t?t(f):f;if(f=r||0!==f?f:0,!(g?$(g,v):n(d,v,r))){for(o=a;--o;){var b=s[o];if(!(b?$(b,v):n(e[o],v,r)))continue e}g&&g.push(v),d.push(f)}}return d}function Jt(e,t,n){var i=null==(e=Jn(e,t=Yr(t,e)))?e:e[ni(ui(t))];return null==i?q:r(i,e,n)}function Qt(e){return Ii(e)&&Vt(e)==te}function tr(e,t,r,n,i){return e===t||(null==e||null==t||!Ii(e)&&!Ii(t)?e!=e&&t!=t:function(e,t,r,n,i,a){var o=ks(e),s=ks(t),l=o?re:Io(e),c=s?re:Io(t),u=(l=l==te?ue:l)==ue,p=(c=c==te?ue:c)==ue,d=l==c;if(d&&Cs(e)){if(!Cs(t))return!1;o=!0,u=!1}if(d&&!u)return a||(a=new dt),o||$s(e)?Ln(e,t,r,n,i,a):function(e,t,r,n,i,a,o){switch(r){case be:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ve:return!(e.byteLength!=t.byteLength||!a(new La(e),new La(t)));case ne:case ie:case ce:return Ci(+e,+t);case ae:return e.name==t.name&&e.message==t.message;case de:case me:return e==t+"";case le:var s=H;case he:var l=1&n;if(s||(s=R),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=2,o.set(e,t);var u=Ln(s(e),s(t),n,i,a,o);return o.delete(e),u;case ge:if(bo)return bo.call(e)==bo.call(t)}return!1}(e,t,l,r,n,i,a);if(!(1&r)){var h=u&&za.call(e,"__wrapped__"),m=p&&za.call(t,"__wrapped__");if(h||m){var g=h?e.value():e,f=m?t.value():t;return a||(a=new dt),i(g,f,r,n,a)}}return!!d&&(a||(a=new dt),function(e,t,r,n,i,a){var o=1&r,s=In(e),l=s.length;if(l!=In(t).length&&!o)return!1;for(var c=l;c--;){var u=s[c];if(!(o?u in t:za.call(t,u)))return!1}var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=o;++c<l;){var g=e[u=s[c]],f=t[u];if(n)var v=o?n(f,g,u,t,e,a):n(g,f,u,e,t,a);if(!(v===q?g===f||i(g,f,r,n,a):v)){h=!1;break}m||(m="constructor"==u)}if(h&&!m){var b=e.constructor,y=t.constructor;b!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y)&&(h=!1)}return a.delete(e),a.delete(t),h}(e,t,r,n,i,a))}(e,t,r,n,tr,i))}function rr(e,t,r,n){var i=r.length,a=i,o=!n;if(null==e)return!a;for(e=ha(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var l=(s=r[i])[0],c=e[l],u=s[1];if(o&&s[2]){if(c===q&&!(l in e))return!1}else{var p=new dt;if(n)var d=n(c,u,l,e,t,p);if(!(d===q?tr(u,c,3,n,p):d))return!1}}return!0}function cr(e){return!(!Ei(e)||function(e){return!!Aa&&Aa in e}(e))&&(Ti(e)?Ma:tt).test(ii(e))}function mr(e){return"function"==typeof e?e:null==e?ta:"object"==typeof e?ks(e)?yr(e[0],e[1]):br(e):aa(e)}function gr(e){if(!Gn(e))return Za(e);var t=[];for(var r in ha(e))za.call(e,r)&&"constructor"!=r&&t.push(r);return t}function fr(e,t){return e<t}function vr(e,t){var r=-1,n=Si(e)?la(e.length):[];return wo(e,(function(e,i,a){n[++r]=t(e,i,a)})),n}function br(e){var t=Rn(e);return 1==t.length&&t[0][2]?Zn(t[0][0],t[0][1]):function(r){return r===e||rr(r,e,t)}}function yr(e,t){return Wn(e)&&Yn(t)?Zn(ni(e),t):function(r){var n=Ui(r,e);return n===q&&n===t?Wi(r,e):tr(t,n,3)}}function xr(e,t,r,n,i){e!==t&&ko(t,(function(a,o){if(i||(i=new dt),Ei(a))!function(e,t,r,n,i,a,o){var s=Qn(e,r),l=Qn(t,r),c=o.get(l);if(c)return vt(e,r,c),q;var u=a?a(s,l,r+"",e,t,o):q,p=u===q;if(p){var d=ks(l),h=!d&&Cs(l),m=!d&&!h&&$s(l);u=l,d||h||m?ks(s)?u=s:_i(s)?u=nn(s):h?(p=!1,u=Kr(l,!0)):m?(p=!1,u=Qr(l,!0)):u=[]:Di(l)||zs(l)?(u=s,zs(s)?u=ji(s):Ei(s)&&!Ti(s)||(u=Fn(l))):p=!1}p&&(o.set(l,u),i(u,l,n,a,o),o.delete(l)),vt(e,r,u)}(e,t,o,r,xr,n,i);else{var s=n?n(Qn(e,o),a,o+"",e,t,i):q;s===q&&(s=a),vt(e,o,s)}}),Gi)}function wr(e,t){var r=e.length;if(r)return qn(t+=t<0?r:0,r)?e[t]:q}function zr(e,t,r){t=t.length?u(t,(function(e){return ks(e)?function(t){return Pt(t,1===e.length?e[0]:e)}:e})):[ta];var n=-1;return t=u(t,M(On())),function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(vr(e,(function(e,r,i){return{criteria:u(t,(function(t){return t(e)})),index:++n,value:e}})),(function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,s=r.length;++n<o;){var l=en(i[n],a[n]);if(l)return n>=s?l:l*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function kr(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],s=Pt(e,o);r(s,o)&&Lr(a,Yr(o,e),s)}return a}function Ar(e,t,r,n){var i=n?y:b,a=-1,o=t.length,s=e;for(e===t&&(t=nn(t)),r&&(s=u(e,M(r)));++a<o;)for(var l=0,c=t[a],p=r?r(c):c;(l=i(s,p,l,n))>-1;)s!==e&&Ha.call(s,l,1),Ha.call(e,l,1);return e}function Cr(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==a){var a=i;qn(i)?Ha.call(e,i,1):Nr(e,i)}}return e}function Sr(e,t){return e+Ua(to()*(t-e+1))}function _r(e,t){var r="";if(!e||t<1||t>K)return r;do{t%2&&(r+=e),(t=Ua(t/2))&&(e+=e)}while(t);return r}function Mr(e,t){return Oo(Kn(e,t,ta),e+"")}function Tr(e){return mt(Zi(e))}function $r(e,t){var r=Zi(e);return ri(r,At(t,0,r.length))}function Lr(e,t,r,n){if(!Ei(e))return e;for(var i=-1,a=(t=Yr(t,e)).length,o=a-1,s=e;null!=s&&++i<a;){var l=ni(t[i]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=o){var u=s[l];(c=n?n(u,l,s):q)===q&&(c=Ei(u)?u:qn(t[i+1])?[]:{})}bt(s,l,c),s=s[l]}return e}function Er(e){return ri(Zi(e))}function Ir(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=la(i);++n<i;)a[n]=e[n+t];return a}function Br(e,t){var r;return wo(e,(function(e,n,i){return!(r=t(e,n,i))})),!!r}function Dr(e,t,r){var n=0,i=null==e?n:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;n<i;){var a=n+i>>>1,o=e[a];null!==o&&!Oi(o)&&(r?o<=t:o<t)?n=a+1:i=a}return i}return Hr(e,t,ta,r)}function Hr(e,t,r,n){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var o=(t=r(t))!=t,s=null===t,l=Oi(t),c=t===q;i<a;){var u=Ua((i+a)/2),p=r(e[u]),d=p!==q,h=null===p,m=p==p,g=Oi(p);if(o)var f=n||m;else f=c?m&&(n||d):s?m&&d&&(n||!h):l?m&&d&&!h&&(n||!g):!h&&!g&&(n?p<=t:p<t);f?i=u+1:a=u}return Ja(a,4294967294)}function Or(e,t){for(var r=-1,n=e.length,i=0,a=[];++r<n;){var o=e[r],s=t?t(o):o;if(!r||!Ci(s,l)){var l=s;a[i++]=0===o?0:o}}return a}function Pr(e){return"number"==typeof e?e:Oi(e)?J:+e}function Rr(e){if("string"==typeof e)return e;if(ks(e))return u(e,Rr)+"";if(Oi(e))return yo?yo.call(e):"";var t=e+"";return"0"==t&&1/e==-Z?"-0":t}function Vr(e,t,r){var n=-1,i=l,a=e.length,o=!0,s=[],u=s;if(r)o=!1,i=c;else if(a>=200){var p=t?null:To(e);if(p)return R(p);o=!1,i=$,u=new pt}else u=t?[]:s;e:for(;++n<a;){var d=e[n],h=t?t(d):d;if(d=r||0!==d?d:0,o&&h==h){for(var m=u.length;m--;)if(u[m]===h)continue e;t&&u.push(h),s.push(d)}else i(u,h,r)||(u!==s&&u.push(h),s.push(d))}return s}function Nr(e,t){return null==(e=Jn(e,t=Yr(t,e)))||delete e[ni(ui(t))]}function Fr(e,t,r,n){return Lr(e,t,r(Pt(e,t)),n)}function jr(e,t,r,n){for(var i=e.length,a=n?i:-1;(n?a--:++a<i)&&t(e[a],a,e););return r?Ir(e,n?0:a,n?a+1:i):Ir(e,n?a+1:0,n?i:a)}function qr(e,t){var r=e;return r instanceof st&&(r=r.value()),d(t,(function(e,t){return t.func.apply(t.thisArg,p([e],t.args))}),r)}function Ur(e,t,r){var n=e.length;if(n<2)return n?Vr(e[0]):[];for(var i=-1,a=la(n);++i<n;)for(var o=e[i],s=-1;++s<n;)s!=i&&(a[i]=Mt(a[i]||o,e[s],t,r));return Vr(Et(a,1),t,r)}function Wr(e,t,r){for(var n=-1,i=e.length,a=t.length,o={};++n<i;)r(o,e[n],n<a?t[n]:q);return o}function Xr(e){return _i(e)?e:[]}function Gr(e){return"function"==typeof e?e:ta}function Yr(e,t){return ks(e)?e:Wn(e,t)?[e]:Po(qi(e))}function Zr(e,t,r){var n=e.length;return r=r===q?n:r,!t&&r>=n?e:Ir(e,t,r)}function Kr(e,t){if(t)return e.slice();var r=e.length,n=Ea?Ea(r):new e.constructor(r);return e.copy(n),n}function Jr(e){var t=new e.constructor(e.byteLength);return new La(t).set(new La(e)),t}function Qr(e,t){return new e.constructor(t?Jr(e.buffer):e.buffer,e.byteOffset,e.length)}function en(e,t){if(e!==t){var r=e!==q,n=null===e,i=e==e,a=Oi(e),o=t!==q,s=null===t,l=t==t,c=Oi(t);if(!s&&!c&&!a&&e>t||a&&o&&l&&!s&&!c||n&&o&&l||!r&&l||!i)return 1;if(!n&&!a&&!c&&e<t||c&&r&&i&&!n&&!a||s&&r&&i||!o&&i||!l)return-1}return 0}function tn(e,t,r,n){for(var i=-1,a=e.length,o=r.length,s=-1,l=t.length,c=Ka(a-o,0),u=la(l+c),p=!n;++s<l;)u[s]=t[s];for(;++i<o;)(p||i<a)&&(u[r[i]]=e[i]);for(;c--;)u[s++]=e[i++];return u}function rn(e,t,r,n){for(var i=-1,a=e.length,o=-1,s=r.length,l=-1,c=t.length,u=Ka(a-s,0),p=la(u+c),d=!n;++i<u;)p[i]=e[i];for(var h=i;++l<c;)p[h+l]=t[l];for(;++o<s;)(d||i<a)&&(p[h+r[o]]=e[i++]);return p}function nn(e,t){var r=-1,n=e.length;for(t||(t=la(n));++r<n;)t[r]=e[r];return t}function an(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=n?n(r[s],e[s],s,r,e):q;l===q&&(l=e[s]),i?zt(r,s,l):bt(r,s,l)}return r}function on(e,t){return function(r,i){var a=ks(r)?n:xt,o=t?t():{};return a(r,e,On(i,2),o)}}function sn(e){return Mr((function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:q,o=i>2?r[2]:q;for(a=e.length>3&&"function"==typeof a?(i--,a):q,o&&Un(r[0],r[1],o)&&(a=i<3?q:a,i=1),t=ha(t);++n<i;){var s=r[n];s&&e(t,s,n,a)}return t}))}function ln(e,t){return function(r,n){if(null==r)return r;if(!Si(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=ha(r);(t?a--:++a<i)&&!1!==n(o[a],a,o););return r}}function cn(e){return function(t,r,n){for(var i=-1,a=ha(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===r(a[l],l,a))break}return t}}function un(e){return function(t){var r=B(t=qi(t))?N(t):q,n=r?r[0]:t.charAt(0),i=r?Zr(r,1).join(""):t.slice(1);return n[e]()+i}}function pn(e){return function(t){return d(Qi(Ji(t).replace(Ht,"")),e,"")}}function dn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=xo(e.prototype),n=e.apply(r,t);return Ei(n)?n:r}}function hn(e,t,n){var i=dn(e);return function a(){for(var o=arguments.length,s=la(o),l=o,c=Hn(a);l--;)s[l]=arguments[l];var u=o<3&&s[0]!==c&&s[o-1]!==c?[]:P(s,c);return(o-=u.length)<n?An(e,t,fn,a.placeholder,q,s,u,q,q,n-o):r(this&&this!==Kt&&this instanceof a?i:e,this,s)}}function mn(e){return function(t,r,n){var i=ha(t);if(!Si(t)){var a=On(r,3);t=Xi(t),r=function(e){return a(i[e],e,i)}}var o=e(t,r,n);return o>-1?i[a?t[o]:o]:q}}function gn(e){return En((function(t){var r=t.length,n=r,i=Ge.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new fa(U);if(i&&!o&&"wrapper"==Dn(a))var o=new Ge([],!0)}for(n=o?n:r;++n<r;){var s=Dn(a=t[n]),l="wrapper"==s?$o(a):q;o=l&&Xn(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?o[Dn(l[0])].apply(o,l[3]):1==a.length&&Xn(a)?o[s]():o.thru(a)}return function(){var e=arguments,n=e[0];if(o&&1==e.length&&ks(n))return o.plant(n).value();for(var i=0,a=r?t[i].apply(this,e):n;++i<r;)a=t[i].call(this,a);return a}}))}function fn(e,t,r,n,i,a,o,s,l,c){var u=t&Y,p=1&t,d=2&t,h=24&t,m=512&t,g=d?q:dn(e);return function f(){for(var v=arguments.length,b=la(v),y=v;y--;)b[y]=arguments[y];if(h)var x=Hn(f),w=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(b,x);if(n&&(b=tn(b,n,i,h)),a&&(b=rn(b,a,o,h)),v-=w,h&&v<c)return An(e,t,fn,f.placeholder,r,b,P(b,x),s,l,c-v);var z=p?r:this,k=d?z[e]:e;return v=b.length,s?b=function(e,t){for(var r=e.length,n=Ja(t.length,r),i=nn(e);n--;){var a=t[n];e[n]=qn(a,r)?i[a]:q}return e}(b,s):m&&v>1&&b.reverse(),u&&l<v&&(b.length=l),this&&this!==Kt&&this instanceof f&&(k=g||dn(k)),k.apply(z,b)}}function vn(e,t){return function(r,n){return function(e,t,r,n){return It(e,(function(e,i,a){t(n,r(e),i,a)})),n}(r,e,t(n),{})}}function bn(e,t){return function(r,n){var i;if(r===q&&n===q)return t;if(r!==q&&(i=r),n!==q){if(i===q)return n;"string"==typeof r||"string"==typeof n?(r=Rr(r),n=Rr(n)):(r=Pr(r),n=Pr(n)),i=e(r,n)}return i}}function yn(e){return En((function(t){return t=u(t,M(On())),Mr((function(n){var i=this;return e(t,(function(e){return r(e,i,n)}))}))}))}function xn(e,t){var r=(t=t===q?" ":Rr(t)).length;if(r<2)return r?_r(t,e):t;var n=_r(t,qa(e/V(t)));return B(t)?Zr(N(n),0,e).join(""):n.slice(0,e)}function wn(e,t,n,i){var a=1&t,o=dn(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=i.length,p=la(u+l),d=this&&this!==Kt&&this instanceof t?o:e;++c<u;)p[c]=i[c];for(;l--;)p[c++]=arguments[++s];return r(d,a?n:this,p)}}function zn(e){return function(t,r,n){return n&&"number"!=typeof n&&Un(t,r,n)&&(r=n=q),t=Ri(t),r===q?(r=t,t=0):r=Ri(r),function(e,t,r,n){for(var i=-1,a=Ka(qa((t-e)/(r||1)),0),o=la(a);a--;)o[n?a:++i]=e,e+=r;return o}(t,r,n=n===q?t<r?1:-1:Ri(n),e)}}function kn(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=Fi(t),r=Fi(r)),e(t,r)}}function An(e,t,r,n,i,a,o,s,l,c){var u=8&t;t|=u?G:64,4&(t&=~(u?64:G))||(t&=-4);var p=[e,t,i,u?a:q,u?o:q,u?q:a,u?q:o,s,l,c],d=r.apply(q,p);return Xn(e)&&Do(d,p),d.placeholder=n,ei(d,e,t)}function Cn(e){var t=da[e];return function(e,r){if(e=Fi(e),(r=null==r?0:Ja(Vi(r),292))&&Ga(e)){var n=(qi(e)+"e").split("e");return+((n=(qi(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}function Sn(e){return function(t){var r=Io(t);return r==le?H(t):r==he?function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}(t):function(e,t){return u(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function _n(e,t,r,n,i,a,o,s){var l=2&t;if(!l&&"function"!=typeof e)throw new fa(U);var c=n?n.length:0;if(c||(t&=-97,n=i=q),o=o===q?o:Ka(Vi(o),0),s=s===q?s:Vi(s),c-=i?i.length:0,64&t){var u=n,p=i;n=i=q}var d=l?q:$o(e),h=[e,t,r,n,i,u,p,a,o,s];if(d&&function(e,t){var r=e[1],n=t[1],i=r|n,a=i<131,o=n==Y&&8==r||n==Y&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!a&&!o)return e;1&n&&(e[2]=t[2],i|=1&r?0:4);var s=t[3];if(s){var l=e[3];e[3]=l?tn(l,s,t[4]):s,e[4]=l?P(e[3],X):t[4]}(s=t[5])&&(l=e[5],e[5]=l?rn(l,s,t[6]):s,e[6]=l?P(e[5],X):t[6]),(s=t[7])&&(e[7]=s),n&Y&&(e[8]=null==e[8]?t[8]:Ja(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(h,d),e=h[0],t=h[1],r=h[2],n=h[3],i=h[4],!(s=h[9]=h[9]===q?l?0:e.length:Ka(h[9]-c,0))&&24&t&&(t&=-25),t&&1!=t)m=8==t||16==t?hn(e,t,s):t!=G&&33!=t||i.length?fn.apply(q,h):wn(e,t,r,n);else var m=function(e,t,r){var n=1&t,i=dn(e);return function t(){return(this&&this!==Kt&&this instanceof t?i:e).apply(n?r:this,arguments)}}(e,t,r);return ei((d?Co:Do)(m,h),e,t)}function Mn(e,t,r,n){return e===q||Ci(e,ya[r])&&!za.call(n,r)?t:e}function Tn(e,t,r,n,i,a){return Ei(e)&&Ei(t)&&(a.set(t,e),xr(e,t,q,Tn,a),a.delete(t)),e}function $n(e){return Di(e)?q:e}function Ln(e,t,r,n,i,a){var o=1&r,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var p=-1,d=!0,h=2&r?new pt:q;for(a.set(e,t),a.set(t,e);++p<s;){var g=e[p],f=t[p];if(n)var v=o?n(f,g,p,t,e,a):n(g,f,p,e,t,a);if(v!==q){if(v)continue;d=!1;break}if(h){if(!m(t,(function(e,t){if(!$(h,t)&&(g===e||i(g,e,r,n,a)))return h.push(t)}))){d=!1;break}}else if(g!==f&&!i(g,f,r,n,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function En(e){return Oo(Kn(e,q,li),e+"")}function In(e){return Rt(e,Xi,Lo)}function Bn(e){return Rt(e,Gi,Eo)}function Dn(e){for(var t=e.name+"",r=uo[t],n=za.call(uo,t)?r.length:0;n--;){var i=r[n],a=i.func;if(null==a||a==e)return i.name}return t}function Hn(e){return(za.call(k,"placeholder")?k:e).placeholder}function On(){var e=k.iteratee||ra;return e=e===ra?mr:e,arguments.length?e(arguments[0],arguments[1]):e}function Pn(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function Rn(e){for(var t=Xi(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Yn(i)]}return t}function Vn(e,t){var r=function(e,t){return null==e?q:e[t]}(e,t);return cr(r)?r:q}function Nn(e,t,r){for(var n=-1,i=(t=Yr(t,e)).length,a=!1;++n<i;){var o=ni(t[n]);if(!(a=null!=e&&r(e,o)))break;e=e[o]}return a||++n!=i?a:!!(i=null==e?0:e.length)&&Li(i)&&qn(o,i)&&(ks(e)||zs(e))}function Fn(e){return"function"!=typeof e.constructor||Gn(e)?{}:xo(Ia(e))}function jn(e){return ks(e)||zs(e)||!!(Oa&&e&&e[Oa])}function qn(e,t){var r=typeof e;return!!(t=null==t?K:t)&&("number"==r||"symbol"!=r&&nt.test(e))&&e>-1&&e%1==0&&e<t}function Un(e,t,r){if(!Ei(r))return!1;var n=typeof t;return!!("number"==n?Si(r)&&qn(t,r.length):"string"==n&&t in r)&&Ci(r[t],e)}function Wn(e,t){if(ks(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Oi(e))||Re.test(e)||!Pe.test(e)||null!=t&&e in ha(t)}function Xn(e){var t=Dn(e),r=k[t];if("function"!=typeof r||!(t in st.prototype))return!1;if(e===r)return!0;var n=$o(r);return!!n&&e===n[0]}function Gn(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ya)}function Yn(e){return e==e&&!Ei(e)}function Zn(e,t){return function(r){return null!=r&&r[e]===t&&(t!==q||e in ha(r))}}function Kn(e,t,n){return t=Ka(t===q?e.length-1:t,0),function(){for(var i=arguments,a=-1,o=Ka(i.length-t,0),s=la(o);++a<o;)s[a]=i[t+a];a=-1;for(var l=la(t+1);++a<t;)l[a]=i[a];return l[t]=n(s),r(e,this,l)}}function Jn(e,t){return t.length<2?e:Pt(e,Ir(t,0,-1))}function Qn(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function ei(e,t,r){var n=t+"";return Oo(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(Ue,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return i(ee,(function(r){var n="_."+r[0];t&r[1]&&!l(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(We);return t?t[1].split(Xe):[]}(n),r)))}function ti(e){var t=0,r=0;return function(){var n=Qa(),i=16-(n-r);if(r=n,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(q,arguments)}}function ri(e,t){var r=-1,n=e.length,i=n-1;for(t=t===q?n:t;++r<t;){var a=Sr(r,i),o=e[a];e[a]=e[r],e[r]=o}return e.length=t,e}function ni(e){if("string"==typeof e||Oi(e))return e;var t=e+"";return"0"==t&&1/e==-Z?"-0":t}function ii(e){if(null!=e){try{return wa.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ai(e){if(e instanceof st)return e.clone();var t=new Ge(e.__wrapped__,e.__chain__);return t.__actions__=nn(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function oi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:Vi(r);return i<0&&(i=Ka(n+i,0)),v(e,On(t,3),i)}function si(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n-1;return r!==q&&(i=Vi(r),i=r<0?Ka(n+i,0):Ja(i,n-1)),v(e,On(t,3),i,!0)}function li(e){return null!=e&&e.length?Et(e,1):[]}function ci(e){return e&&e.length?e[0]:q}function ui(e){var t=null==e?0:e.length;return t?e[t-1]:q}function pi(e,t){return e&&e.length&&t&&t.length?Ar(e,t):e}function di(e){return null==e?e:ro.call(e)}function hi(e){if(!e||!e.length)return[];var t=0;return e=s(e,(function(e){if(_i(e))return t=Ka(e.length,t),!0})),S(t,(function(t){return u(e,z(t))}))}function mi(e,t){if(!e||!e.length)return[];var n=hi(e);return null==t?n:u(n,(function(e){return r(t,q,e)}))}function gi(e){var t=k(e);return t.__chain__=!0,t}function fi(e,t){return t(e)}function vi(e,t){return(ks(e)?i:wo)(e,On(t,3))}function bi(e,t){return(ks(e)?a:zo)(e,On(t,3))}function yi(e,t){return(ks(e)?u:vr)(e,On(t,3))}function xi(e,t,r){return t=r?q:t,t=e&&null==t?e.length:t,_n(e,Y,q,q,q,q,t)}function wi(e,t){var r;if("function"!=typeof t)throw new fa(U);return e=Vi(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=q),r}}function zi(e,t,r){function n(t){var r=l,n=c;return l=c=q,m=t,p=e.apply(n,r)}function i(e){var r=e-h;return h===q||r>=t||r<0||f&&e-m>=u}function a(){var e=ps();return i(e)?o(e):(d=Ho(a,function(e){var r=t-(e-h);return f?Ja(r,u-(e-m)):r}(e)),q)}function o(e){return d=q,v&&l?n(e):(l=c=q,p)}function s(){var e=ps(),r=i(e);if(l=arguments,c=this,h=e,r){if(d===q)return function(e){return m=e,d=Ho(a,t),g?n(e):p}(h);if(f)return Mo(d),d=Ho(a,t),n(h)}return d===q&&(d=Ho(a,t)),p}var l,c,u,p,d,h,m=0,g=!1,f=!1,v=!0;if("function"!=typeof e)throw new fa(U);return t=Fi(t)||0,Ei(r)&&(g=!!r.leading,u=(f="maxWait"in r)?Ka(Fi(r.maxWait)||0,t):u,v="trailing"in r?!!r.trailing:v),s.cancel=function(){d!==q&&Mo(d),m=0,l=h=c=d=q},s.flush=function(){return d===q?p:o(ps())},s}function ki(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new fa(U);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(ki.Cache||ut),r}function Ai(e){if("function"!=typeof e)throw new fa(U);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ci(e,t){return e===t||e!=e&&t!=t}function Si(e){return null!=e&&Li(e.length)&&!Ti(e)}function _i(e){return Ii(e)&&Si(e)}function Mi(e){if(!Ii(e))return!1;var t=Vt(e);return t==ae||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Di(e)}function Ti(e){if(!Ei(e))return!1;var t=Vt(e);return t==oe||t==se||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $i(e){return"number"==typeof e&&e==Vi(e)}function Li(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=K}function Ei(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ii(e){return null!=e&&"object"==typeof e}function Bi(e){return"number"==typeof e||Ii(e)&&Vt(e)==ce}function Di(e){if(!Ii(e)||Vt(e)!=ue)return!1;var t=Ia(e);if(null===t)return!0;var r=za.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&wa.call(r)==Sa}function Hi(e){return"string"==typeof e||!ks(e)&&Ii(e)&&Vt(e)==me}function Oi(e){return"symbol"==typeof e||Ii(e)&&Vt(e)==ge}function Pi(e){if(!e)return[];if(Si(e))return Hi(e)?N(e):nn(e);if(Pa&&e[Pa])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Pa]());var t=Io(e);return(t==le?H:t==he?R:Zi)(e)}function Ri(e){return e?(e=Fi(e))===Z||e===-Z?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Vi(e){var t=Ri(e),r=t%1;return t==t?r?t-r:t:0}function Ni(e){return e?At(Vi(e),0,Q):0}function Fi(e){if("number"==typeof e)return e;if(Oi(e))return J;if(Ei(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ei(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=_(e);var r=et.test(e);return r||rt.test(e)?Gt(e.slice(2),r?2:8):Qe.test(e)?J:+e}function ji(e){return an(e,Gi(e))}function qi(e){return null==e?"":Rr(e)}function Ui(e,t,r){var n=null==e?q:Pt(e,t);return n===q?r:n}function Wi(e,t){return null!=e&&Nn(e,t,Yt)}function Xi(e){return Si(e)?ht(e):gr(e)}function Gi(e){return Si(e)?ht(e,!0):function(e){if(!Ei(e))return function(e){var t=[];if(null!=e)for(var r in ha(e))t.push(r);return t}(e);var t=Gn(e),r=[];for(var n in e)("constructor"!=n||!t&&za.call(e,n))&&r.push(n);return r}(e)}function Yi(e,t){if(null==e)return{};var r=u(Bn(e),(function(e){return[e]}));return t=On(t),kr(e,r,(function(e,r){return t(e,r[0])}))}function Zi(e){return null==e?[]:T(e,Xi(e))}function Ki(e){return rl(qi(e).toLowerCase())}function Ji(e){return(e=qi(e))&&e.replace(it,ur).replace(Ot,"")}function Qi(e,t,r){return e=qi(e),(t=r?q:t)===q?D(e)?j(e):g(e):e.match(t)||[]}function ea(e){return function(){return e}}function ta(e){return e}function ra(e){return mr("function"==typeof e?e:Ct(e,1))}function na(e,t,r){var n=Xi(t),a=Dt(t,n);null!=r||Ei(t)&&(a.length||!n.length)||(r=t,t=e,e=this,a=Dt(t,Xi(t)));var o=!(Ei(r)&&"chain"in r&&!r.chain),s=Ti(e);return i(a,(function(r){var n=t[r];e[r]=n,s&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=nn(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,p([this.value()],arguments))})})),e}function ia(){}function aa(e){return Wn(e)?z(ni(e)):function(e){return function(t){return Pt(t,e)}}(e)}function oa(){return[]}function sa(){return!1}var la=(t=null==t?Kt:hr.defaults(Kt.Object(),t,hr.pick(Kt,Ft))).Array,ca=t.Date,ua=t.Error,pa=t.Function,da=t.Math,ha=t.Object,ma=t.RegExp,ga=t.String,fa=t.TypeError,va=la.prototype,ba=pa.prototype,ya=ha.prototype,xa=t["__core-js_shared__"],wa=ba.toString,za=ya.hasOwnProperty,ka=0,Aa=function(){var e=/[^.]+$/.exec(xa&&xa.keys&&xa.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ca=ya.toString,Sa=wa.call(ha),_a=Kt._,Ma=ma("^"+wa.call(za).replace(Ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ta=er?t.Buffer:q,$a=t.Symbol,La=t.Uint8Array,Ea=Ta?Ta.allocUnsafe:q,Ia=O(ha.getPrototypeOf,ha),Ba=ha.create,Da=ya.propertyIsEnumerable,Ha=va.splice,Oa=$a?$a.isConcatSpreadable:q,Pa=$a?$a.iterator:q,Ra=$a?$a.toStringTag:q,Va=function(){try{var e=Vn(ha,"defineProperty");return e({},"",{}),e}catch(e){}}(),Na=t.clearTimeout!==Kt.clearTimeout&&t.clearTimeout,Fa=ca&&ca.now!==Kt.Date.now&&ca.now,ja=t.setTimeout!==Kt.setTimeout&&t.setTimeout,qa=da.ceil,Ua=da.floor,Wa=ha.getOwnPropertySymbols,Xa=Ta?Ta.isBuffer:q,Ga=t.isFinite,Ya=va.join,Za=O(ha.keys,ha),Ka=da.max,Ja=da.min,Qa=ca.now,eo=t.parseInt,to=da.random,ro=va.reverse,no=Vn(t,"DataView"),io=Vn(t,"Map"),ao=Vn(t,"Promise"),oo=Vn(t,"Set"),so=Vn(t,"WeakMap"),lo=Vn(ha,"create"),co=so&&new so,uo={},po=ii(no),ho=ii(io),mo=ii(ao),go=ii(oo),fo=ii(so),vo=$a?$a.prototype:q,bo=vo?vo.valueOf:q,yo=vo?vo.toString:q,xo=function(){function e(){}return function(t){if(!Ei(t))return{};if(Ba)return Ba(t);e.prototype=t;var r=new e;return e.prototype=q,r}}();k.templateSettings={escape:De,evaluate:He,interpolate:Oe,variable:"",imports:{_:k}},k.prototype=qe.prototype,k.prototype.constructor=k,Ge.prototype=xo(qe.prototype),Ge.prototype.constructor=Ge,st.prototype=xo(qe.prototype),st.prototype.constructor=st,lt.prototype.clear=function(){this.__data__=lo?lo(null):{},this.size=0},lt.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},lt.prototype.get=function(e){var t=this.__data__;if(lo){var r=t[e];return r===W?q:r}return za.call(t,e)?t[e]:q},lt.prototype.has=function(e){var t=this.__data__;return lo?t[e]!==q:za.call(t,e)},lt.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=lo&&t===q?W:t,this},ct.prototype.clear=function(){this.__data__=[],this.size=0},ct.prototype.delete=function(e){var t=this.__data__,r=yt(t,e);return!(r<0||(r==t.length-1?t.pop():Ha.call(t,r,1),--this.size,0))},ct.prototype.get=function(e){var t=this.__data__,r=yt(t,e);return r<0?q:t[r][1]},ct.prototype.has=function(e){return yt(this.__data__,e)>-1},ct.prototype.set=function(e,t){var r=this.__data__,n=yt(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},ut.prototype.clear=function(){this.size=0,this.__data__={hash:new lt,map:new(io||ct),string:new lt}},ut.prototype.delete=function(e){var t=Pn(this,e).delete(e);return this.size-=t?1:0,t},ut.prototype.get=function(e){return Pn(this,e).get(e)},ut.prototype.has=function(e){return Pn(this,e).has(e)},ut.prototype.set=function(e,t){var r=Pn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},pt.prototype.add=pt.prototype.push=function(e){return this.__data__.set(e,W),this},pt.prototype.has=function(e){return this.__data__.has(e)},dt.prototype.clear=function(){this.__data__=new ct,this.size=0},dt.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},dt.prototype.get=function(e){return this.__data__.get(e)},dt.prototype.has=function(e){return this.__data__.has(e)},dt.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ct){var n=r.__data__;if(!io||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ut(n)}return r.set(e,t),this.size=r.size,this};var wo=ln(It),zo=ln(Bt,!0),ko=cn(),Ao=cn(!0),Co=co?function(e,t){return co.set(e,t),e}:ta,So=Va?function(e,t){return Va(e,"toString",{configurable:!0,enumerable:!1,value:ea(t),writable:!0})}:ta,_o=Mr,Mo=Na||function(e){return Kt.clearTimeout(e)},To=oo&&1/R(new oo([,-0]))[1]==Z?function(e){return new oo(e)}:ia,$o=co?function(e){return co.get(e)}:ia,Lo=Wa?function(e){return null==e?[]:(e=ha(e),s(Wa(e),(function(t){return Da.call(e,t)})))}:oa,Eo=Wa?function(e){for(var t=[];e;)p(t,Lo(e)),e=Ia(e);return t}:oa,Io=Vt;(no&&Io(new no(new ArrayBuffer(1)))!=be||io&&Io(new io)!=le||ao&&Io(ao.resolve())!=pe||oo&&Io(new oo)!=he||so&&Io(new so)!=fe)&&(Io=function(e){var t=Vt(e),r=t==ue?e.constructor:q,n=r?ii(r):"";if(n)switch(n){case po:return be;case ho:return le;case mo:return pe;case go:return he;case fo:return fe}return t});var Bo=xa?Ti:sa,Do=ti(Co),Ho=ja||function(e,t){return Kt.setTimeout(e,t)},Oo=ti(So),Po=function(e){var t=ki((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ve,(function(e,r,n,i){t.push(n?i.replace(Ze,"$1"):r||e)})),t}),(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}(),Ro=Mr((function(e,t){return _i(e)?Mt(e,Et(t,1,_i,!0)):[]})),Vo=Mr((function(e,t){var r=ui(t);return _i(r)&&(r=q),_i(e)?Mt(e,Et(t,1,_i,!0),On(r,2)):[]})),No=Mr((function(e,t){var r=ui(t);return _i(r)&&(r=q),_i(e)?Mt(e,Et(t,1,_i,!0),q,r):[]})),Fo=Mr((function(e){var t=u(e,Xr);return t.length&&t[0]===e[0]?Zt(t):[]})),jo=Mr((function(e){var t=ui(e),r=u(e,Xr);return t===ui(r)?t=q:r.pop(),r.length&&r[0]===e[0]?Zt(r,On(t,2)):[]})),qo=Mr((function(e){var t=ui(e),r=u(e,Xr);return(t="function"==typeof t?t:q)&&r.pop(),r.length&&r[0]===e[0]?Zt(r,q,t):[]})),Uo=Mr(pi),Wo=En((function(e,t){var r=null==e?0:e.length,n=kt(e,t);return Cr(e,u(t,(function(e){return qn(e,r)?+e:e})).sort(en)),n})),Xo=Mr((function(e){return Vr(Et(e,1,_i,!0))})),Go=Mr((function(e){var t=ui(e);return _i(t)&&(t=q),Vr(Et(e,1,_i,!0),On(t,2))})),Yo=Mr((function(e){var t=ui(e);return t="function"==typeof t?t:q,Vr(Et(e,1,_i,!0),q,t)})),Zo=Mr((function(e,t){return _i(e)?Mt(e,t):[]})),Ko=Mr((function(e){return Ur(s(e,_i))})),Jo=Mr((function(e){var t=ui(e);return _i(t)&&(t=q),Ur(s(e,_i),On(t,2))})),Qo=Mr((function(e){var t=ui(e);return t="function"==typeof t?t:q,Ur(s(e,_i),q,t)})),es=Mr(hi),ts=Mr((function(e){var t=e.length,r=t>1?e[t-1]:q;return r="function"==typeof r?(e.pop(),r):q,mi(e,r)})),rs=En((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,i=function(t){return kt(t,e)};return!(t>1||this.__actions__.length)&&n instanceof st&&qn(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:fi,args:[i],thisArg:q}),new Ge(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(q),e}))):this.thru(i)})),ns=on((function(e,t,r){za.call(e,r)?++e[r]:zt(e,r,1)})),is=mn(oi),as=mn(si),os=on((function(e,t,r){za.call(e,r)?e[r].push(t):zt(e,r,[t])})),ss=Mr((function(e,t,n){var i=-1,a="function"==typeof t,o=Si(e)?la(e.length):[];return wo(e,(function(e){o[++i]=a?r(t,e,n):Jt(e,t,n)})),o})),ls=on((function(e,t,r){zt(e,r,t)})),cs=on((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]})),us=Mr((function(e,t){if(null==e)return[];var r=t.length;return r>1&&Un(e,t[0],t[1])?t=[]:r>2&&Un(t[0],t[1],t[2])&&(t=[t[0]]),zr(e,Et(t,1),[])})),ps=Fa||function(){return Kt.Date.now()},ds=Mr((function(e,t,r){var n=1;if(r.length){var i=P(r,Hn(ds));n|=G}return _n(e,n,t,r,i)})),hs=Mr((function(e,t,r){var n=3;if(r.length){var i=P(r,Hn(hs));n|=G}return _n(t,n,e,r,i)})),ms=Mr((function(e,t){return _t(e,1,t)})),gs=Mr((function(e,t,r){return _t(e,Fi(t)||0,r)}));ki.Cache=ut;var fs=_o((function(e,t){var n=(t=1==t.length&&ks(t[0])?u(t[0],M(On())):u(Et(t,1),M(On()))).length;return Mr((function(i){for(var a=-1,o=Ja(i.length,n);++a<o;)i[a]=t[a].call(this,i[a]);return r(e,this,i)}))})),vs=Mr((function(e,t){return _n(e,G,q,t,P(t,Hn(vs)))})),bs=Mr((function(e,t){return _n(e,64,q,t,P(t,Hn(bs)))})),ys=En((function(e,t){return _n(e,256,q,q,q,t)})),xs=kn(Nt),ws=kn((function(e,t){return e>=t})),zs=Qt(function(){return arguments}())?Qt:function(e){return Ii(e)&&za.call(e,"callee")&&!Da.call(e,"callee")},ks=la.isArray,As=nr?M(nr):function(e){return Ii(e)&&Vt(e)==ve},Cs=Xa||sa,Ss=ir?M(ir):function(e){return Ii(e)&&Vt(e)==ie},_s=ar?M(ar):function(e){return Ii(e)&&Io(e)==le},Ms=or?M(or):function(e){return Ii(e)&&Vt(e)==de},Ts=sr?M(sr):function(e){return Ii(e)&&Io(e)==he},$s=lr?M(lr):function(e){return Ii(e)&&Li(e.length)&&!!qt[Vt(e)]},Ls=kn(fr),Es=kn((function(e,t){return e<=t})),Is=sn((function(e,t){if(Gn(t)||Si(t))return an(t,Xi(t),e),q;for(var r in t)za.call(t,r)&&bt(e,r,t[r])})),Bs=sn((function(e,t){an(t,Gi(t),e)})),Ds=sn((function(e,t,r,n){an(t,Gi(t),e,n)})),Hs=sn((function(e,t,r,n){an(t,Xi(t),e,n)})),Os=En(kt),Ps=Mr((function(e,t){e=ha(e);var r=-1,n=t.length,i=n>2?t[2]:q;for(i&&Un(t[0],t[1],i)&&(n=1);++r<n;)for(var a=t[r],o=Gi(a),s=-1,l=o.length;++s<l;){var c=o[s],u=e[c];(u===q||Ci(u,ya[c])&&!za.call(e,c))&&(e[c]=a[c])}return e})),Rs=Mr((function(e){return e.push(q,Tn),r(qs,q,e)})),Vs=vn((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ca.call(t)),e[t]=r}),ea(ta)),Ns=vn((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ca.call(t)),za.call(e,t)?e[t].push(r):e[t]=[r]}),On),Fs=Mr(Jt),js=sn((function(e,t,r){xr(e,t,r)})),qs=sn((function(e,t,r,n){xr(e,t,r,n)})),Us=En((function(e,t){var r={};if(null==e)return r;var n=!1;t=u(t,(function(t){return t=Yr(t,e),n||(n=t.length>1),t})),an(e,Bn(e),r),n&&(r=Ct(r,7,$n));for(var i=t.length;i--;)Nr(r,t[i]);return r})),Ws=En((function(e,t){return null==e?{}:function(e,t){return kr(e,t,(function(t,r){return Wi(e,r)}))}(e,t)})),Xs=Sn(Xi),Gs=Sn(Gi),Ys=pn((function(e,t,r){return t=t.toLowerCase(),e+(r?Ki(t):t)})),Zs=pn((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Ks=pn((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Js=un("toLowerCase"),Qs=pn((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()})),el=pn((function(e,t,r){return e+(r?" ":"")+rl(t)})),tl=pn((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),rl=un("toUpperCase"),nl=Mr((function(e,t){try{return r(e,q,t)}catch(e){return Mi(e)?e:new ua(e)}})),il=En((function(e,t){return i(t,(function(t){t=ni(t),zt(e,t,ds(e[t],e))})),e})),al=gn(),ol=gn(!0),sl=Mr((function(e,t){return function(r){return Jt(r,e,t)}})),ll=Mr((function(e,t){return function(r){return Jt(e,r,t)}})),cl=yn(u),ul=yn(o),pl=yn(m),dl=zn(),hl=zn(!0),ml=bn((function(e,t){return e+t}),0),gl=Cn("ceil"),fl=bn((function(e,t){return e/t}),1),vl=Cn("floor"),bl=bn((function(e,t){return e*t}),1),yl=Cn("round"),xl=bn((function(e,t){return e-t}),0);return k.after=function(e,t){if("function"!=typeof t)throw new fa(U);return e=Vi(e),function(){if(--e<1)return t.apply(this,arguments)}},k.ary=xi,k.assign=Is,k.assignIn=Bs,k.assignInWith=Ds,k.assignWith=Hs,k.at=Os,k.before=wi,k.bind=ds,k.bindAll=il,k.bindKey=hs,k.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ks(e)?e:[e]},k.chain=gi,k.chunk=function(e,t,r){t=(r?Un(e,t,r):t===q)?1:Ka(Vi(t),0);var n=null==e?0:e.length;if(!n||t<1)return[];for(var i=0,a=0,o=la(qa(n/t));i<n;)o[a++]=Ir(e,i,i+=t);return o},k.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var a=e[t];a&&(i[n++]=a)}return i},k.concat=function(){var e=arguments.length;if(!e)return[];for(var t=la(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return p(ks(r)?nn(r):[r],Et(t,1))},k.cond=function(e){var t=null==e?0:e.length,n=On();return e=t?u(e,(function(e){if("function"!=typeof e[1])throw new fa(U);return[n(e[0]),e[1]]})):[],Mr((function(n){for(var i=-1;++i<t;){var a=e[i];if(r(a[0],this,n))return r(a[1],this,n)}}))},k.conforms=function(e){return function(e){var t=Xi(e);return function(r){return St(r,e,t)}}(Ct(e,1))},k.constant=ea,k.countBy=ns,k.create=function(e,t){var r=xo(e);return null==t?r:wt(r,t)},k.curry=function e(t,r,n){var i=_n(t,8,q,q,q,q,q,r=n?q:r);return i.placeholder=e.placeholder,i},k.curryRight=function e(t,r,n){var i=_n(t,16,q,q,q,q,q,r=n?q:r);return i.placeholder=e.placeholder,i},k.debounce=zi,k.defaults=Ps,k.defaultsDeep=Rs,k.defer=ms,k.delay=gs,k.difference=Ro,k.differenceBy=Vo,k.differenceWith=No,k.drop=function(e,t,r){var n=null==e?0:e.length;return n?Ir(e,(t=r||t===q?1:Vi(t))<0?0:t,n):[]},k.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?Ir(e,0,(t=n-(t=r||t===q?1:Vi(t)))<0?0:t):[]},k.dropRightWhile=function(e,t){return e&&e.length?jr(e,On(t,3),!0,!0):[]},k.dropWhile=function(e,t){return e&&e.length?jr(e,On(t,3),!0):[]},k.fill=function(e,t,r,n){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&Un(e,t,r)&&(r=0,n=i),function(e,t,r,n){var i=e.length;for((r=Vi(r))<0&&(r=-r>i?0:i+r),(n=n===q||n>i?i:Vi(n))<0&&(n+=i),n=r>n?0:Ni(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},k.filter=function(e,t){return(ks(e)?s:Lt)(e,On(t,3))},k.flatMap=function(e,t){return Et(yi(e,t),1)},k.flatMapDeep=function(e,t){return Et(yi(e,t),Z)},k.flatMapDepth=function(e,t,r){return r=r===q?1:Vi(r),Et(yi(e,t),r)},k.flatten=li,k.flattenDeep=function(e){return null!=e&&e.length?Et(e,Z):[]},k.flattenDepth=function(e,t){return null!=e&&e.length?Et(e,t=t===q?1:Vi(t)):[]},k.flip=function(e){return _n(e,512)},k.flow=al,k.flowRight=ol,k.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n},k.functions=function(e){return null==e?[]:Dt(e,Xi(e))},k.functionsIn=function(e){return null==e?[]:Dt(e,Gi(e))},k.groupBy=os,k.initial=function(e){return null!=e&&e.length?Ir(e,0,-1):[]},k.intersection=Fo,k.intersectionBy=jo,k.intersectionWith=qo,k.invert=Vs,k.invertBy=Ns,k.invokeMap=ss,k.iteratee=ra,k.keyBy=ls,k.keys=Xi,k.keysIn=Gi,k.map=yi,k.mapKeys=function(e,t){var r={};return t=On(t,3),It(e,(function(e,n,i){zt(r,t(e,n,i),e)})),r},k.mapValues=function(e,t){var r={};return t=On(t,3),It(e,(function(e,n,i){zt(r,n,t(e,n,i))})),r},k.matches=function(e){return br(Ct(e,1))},k.matchesProperty=function(e,t){return yr(e,Ct(t,1))},k.memoize=ki,k.merge=js,k.mergeWith=qs,k.method=sl,k.methodOf=ll,k.mixin=na,k.negate=Ai,k.nthArg=function(e){return e=Vi(e),Mr((function(t){return wr(t,e)}))},k.omit=Us,k.omitBy=function(e,t){return Yi(e,Ai(On(t)))},k.once=function(e){return wi(2,e)},k.orderBy=function(e,t,r,n){return null==e?[]:(ks(t)||(t=null==t?[]:[t]),ks(r=n?q:r)||(r=null==r?[]:[r]),zr(e,t,r))},k.over=cl,k.overArgs=fs,k.overEvery=ul,k.overSome=pl,k.partial=vs,k.partialRight=bs,k.partition=cs,k.pick=Ws,k.pickBy=Yi,k.property=aa,k.propertyOf=function(e){return function(t){return null==e?q:Pt(e,t)}},k.pull=Uo,k.pullAll=pi,k.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?Ar(e,t,On(r,2)):e},k.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Ar(e,t,q,r):e},k.pullAt=Wo,k.range=dl,k.rangeRight=hl,k.rearg=ys,k.reject=function(e,t){return(ks(e)?s:Lt)(e,Ai(On(t,3)))},k.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,i=[],a=e.length;for(t=On(t,3);++n<a;){var o=e[n];t(o,n,e)&&(r.push(o),i.push(n))}return Cr(e,i),r},k.rest=function(e,t){if("function"!=typeof e)throw new fa(U);return Mr(e,t=t===q?t:Vi(t))},k.reverse=di,k.sampleSize=function(e,t,r){return t=(r?Un(e,t,r):t===q)?1:Vi(t),(ks(e)?gt:$r)(e,t)},k.set=function(e,t,r){return null==e?e:Lr(e,t,r)},k.setWith=function(e,t,r,n){return n="function"==typeof n?n:q,null==e?e:Lr(e,t,r,n)},k.shuffle=function(e){return(ks(e)?ft:Er)(e)},k.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&Un(e,t,r)?(t=0,r=n):(t=null==t?0:Vi(t),r=r===q?n:Vi(r)),Ir(e,t,r)):[]},k.sortBy=us,k.sortedUniq=function(e){return e&&e.length?Or(e):[]},k.sortedUniqBy=function(e,t){return e&&e.length?Or(e,On(t,2)):[]},k.split=function(e,t,r){return r&&"number"!=typeof r&&Un(e,t,r)&&(t=r=q),(r=r===q?Q:r>>>0)?(e=qi(e))&&("string"==typeof t||null!=t&&!Ms(t))&&!(t=Rr(t))&&B(e)?Zr(N(e),0,r):e.split(t,r):[]},k.spread=function(e,t){if("function"!=typeof e)throw new fa(U);return t=null==t?0:Ka(Vi(t),0),Mr((function(n){var i=n[t],a=Zr(n,0,t);return i&&p(a,i),r(e,this,a)}))},k.tail=function(e){var t=null==e?0:e.length;return t?Ir(e,1,t):[]},k.take=function(e,t,r){return e&&e.length?Ir(e,0,(t=r||t===q?1:Vi(t))<0?0:t):[]},k.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?Ir(e,(t=n-(t=r||t===q?1:Vi(t)))<0?0:t,n):[]},k.takeRightWhile=function(e,t){return e&&e.length?jr(e,On(t,3),!1,!0):[]},k.takeWhile=function(e,t){return e&&e.length?jr(e,On(t,3)):[]},k.tap=function(e,t){return t(e),e},k.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new fa(U);return Ei(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),zi(e,t,{leading:n,maxWait:t,trailing:i})},k.thru=fi,k.toArray=Pi,k.toPairs=Xs,k.toPairsIn=Gs,k.toPath=function(e){return ks(e)?u(e,ni):Oi(e)?[e]:nn(Po(qi(e)))},k.toPlainObject=ji,k.transform=function(e,t,r){var n=ks(e),a=n||Cs(e)||$s(e);if(t=On(t,4),null==r){var o=e&&e.constructor;r=a?n?new o:[]:Ei(e)&&Ti(o)?xo(Ia(e)):{}}return(a?i:It)(e,(function(e,n,i){return t(r,e,n,i)})),r},k.unary=function(e){return xi(e,1)},k.union=Xo,k.unionBy=Go,k.unionWith=Yo,k.uniq=function(e){return e&&e.length?Vr(e):[]},k.uniqBy=function(e,t){return e&&e.length?Vr(e,On(t,2)):[]},k.uniqWith=function(e,t){return t="function"==typeof t?t:q,e&&e.length?Vr(e,q,t):[]},k.unset=function(e,t){return null==e||Nr(e,t)},k.unzip=hi,k.unzipWith=mi,k.update=function(e,t,r){return null==e?e:Fr(e,t,Gr(r))},k.updateWith=function(e,t,r,n){return n="function"==typeof n?n:q,null==e?e:Fr(e,t,Gr(r),n)},k.values=Zi,k.valuesIn=function(e){return null==e?[]:T(e,Gi(e))},k.without=Zo,k.words=Qi,k.wrap=function(e,t){return vs(Gr(t),e)},k.xor=Ko,k.xorBy=Jo,k.xorWith=Qo,k.zip=es,k.zipObject=function(e,t){return Wr(e||[],t||[],bt)},k.zipObjectDeep=function(e,t){return Wr(e||[],t||[],Lr)},k.zipWith=ts,k.entries=Xs,k.entriesIn=Gs,k.extend=Bs,k.extendWith=Ds,na(k,k),k.add=ml,k.attempt=nl,k.camelCase=Ys,k.capitalize=Ki,k.ceil=gl,k.clamp=function(e,t,r){return r===q&&(r=t,t=q),r!==q&&(r=(r=Fi(r))==r?r:0),t!==q&&(t=(t=Fi(t))==t?t:0),At(Fi(e),t,r)},k.clone=function(e){return Ct(e,4)},k.cloneDeep=function(e){return Ct(e,5)},k.cloneDeepWith=function(e,t){return Ct(e,5,t="function"==typeof t?t:q)},k.cloneWith=function(e,t){return Ct(e,4,t="function"==typeof t?t:q)},k.conformsTo=function(e,t){return null==t||St(e,t,Xi(t))},k.deburr=Ji,k.defaultTo=function(e,t){return null==e||e!=e?t:e},k.divide=fl,k.endsWith=function(e,t,r){e=qi(e),t=Rr(t);var n=e.length,i=r=r===q?n:At(Vi(r),0,n);return(r-=t.length)>=0&&e.slice(r,i)==t},k.eq=Ci,k.escape=function(e){return(e=qi(e))&&Be.test(e)?e.replace(Ee,pr):e},k.escapeRegExp=function(e){return(e=qi(e))&&Fe.test(e)?e.replace(Ne,"\\$&"):e},k.every=function(e,t,r){var n=ks(e)?o:Tt;return r&&Un(e,t,r)&&(t=q),n(e,On(t,3))},k.find=is,k.findIndex=oi,k.findKey=function(e,t){return f(e,On(t,3),It)},k.findLast=as,k.findLastIndex=si,k.findLastKey=function(e,t){return f(e,On(t,3),Bt)},k.floor=vl,k.forEach=vi,k.forEachRight=bi,k.forIn=function(e,t){return null==e?e:ko(e,On(t,3),Gi)},k.forInRight=function(e,t){return null==e?e:Ao(e,On(t,3),Gi)},k.forOwn=function(e,t){return e&&It(e,On(t,3))},k.forOwnRight=function(e,t){return e&&Bt(e,On(t,3))},k.get=Ui,k.gt=xs,k.gte=ws,k.has=function(e,t){return null!=e&&Nn(e,t,Wt)},k.hasIn=Wi,k.head=ci,k.identity=ta,k.includes=function(e,t,r,n){e=Si(e)?e:Zi(e),r=r&&!n?Vi(r):0;var i=e.length;return r<0&&(r=Ka(i+r,0)),Hi(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&b(e,t,r)>-1},k.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:Vi(r);return i<0&&(i=Ka(n+i,0)),b(e,t,i)},k.inRange=function(e,t,r){return t=Ri(t),r===q?(r=t,t=0):r=Ri(r),function(e,t,r){return e>=Ja(t,r)&&e<Ka(t,r)}(e=Fi(e),t,r)},k.invoke=Fs,k.isArguments=zs,k.isArray=ks,k.isArrayBuffer=As,k.isArrayLike=Si,k.isArrayLikeObject=_i,k.isBoolean=function(e){return!0===e||!1===e||Ii(e)&&Vt(e)==ne},k.isBuffer=Cs,k.isDate=Ss,k.isElement=function(e){return Ii(e)&&1===e.nodeType&&!Di(e)},k.isEmpty=function(e){if(null==e)return!0;if(Si(e)&&(ks(e)||"string"==typeof e||"function"==typeof e.splice||Cs(e)||$s(e)||zs(e)))return!e.length;var t=Io(e);if(t==le||t==he)return!e.size;if(Gn(e))return!gr(e).length;for(var r in e)if(za.call(e,r))return!1;return!0},k.isEqual=function(e,t){return tr(e,t)},k.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:q)?r(e,t):q;return n===q?tr(e,t,q,r):!!n},k.isError=Mi,k.isFinite=function(e){return"number"==typeof e&&Ga(e)},k.isFunction=Ti,k.isInteger=$i,k.isLength=Li,k.isMap=_s,k.isMatch=function(e,t){return e===t||rr(e,t,Rn(t))},k.isMatchWith=function(e,t,r){return r="function"==typeof r?r:q,rr(e,t,Rn(t),r)},k.isNaN=function(e){return Bi(e)&&e!=+e},k.isNative=function(e){if(Bo(e))throw new ua("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return cr(e)},k.isNil=function(e){return null==e},k.isNull=function(e){return null===e},k.isNumber=Bi,k.isObject=Ei,k.isObjectLike=Ii,k.isPlainObject=Di,k.isRegExp=Ms,k.isSafeInteger=function(e){return $i(e)&&e>=-K&&e<=K},k.isSet=Ts,k.isString=Hi,k.isSymbol=Oi,k.isTypedArray=$s,k.isUndefined=function(e){return e===q},k.isWeakMap=function(e){return Ii(e)&&Io(e)==fe},k.isWeakSet=function(e){return Ii(e)&&"[object WeakSet]"==Vt(e)},k.join=function(e,t){return null==e?"":Ya.call(e,t)},k.kebabCase=Zs,k.last=ui,k.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return r!==q&&(i=(i=Vi(r))<0?Ka(n+i,0):Ja(i,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):v(e,x,i,!0)},k.lowerCase=Ks,k.lowerFirst=Js,k.lt=Ls,k.lte=Es,k.max=function(e){return e&&e.length?$t(e,ta,Nt):q},k.maxBy=function(e,t){return e&&e.length?$t(e,On(t,2),Nt):q},k.mean=function(e){return w(e,ta)},k.meanBy=function(e,t){return w(e,On(t,2))},k.min=function(e){return e&&e.length?$t(e,ta,fr):q},k.minBy=function(e,t){return e&&e.length?$t(e,On(t,2),fr):q},k.stubArray=oa,k.stubFalse=sa,k.stubObject=function(){return{}},k.stubString=function(){return""},k.stubTrue=function(){return!0},k.multiply=bl,k.nth=function(e,t){return e&&e.length?wr(e,Vi(t)):q},k.noConflict=function(){return Kt._===this&&(Kt._=_a),this},k.noop=ia,k.now=ps,k.pad=function(e,t,r){e=qi(e);var n=(t=Vi(t))?V(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return xn(Ua(i),r)+e+xn(qa(i),r)},k.padEnd=function(e,t,r){e=qi(e);var n=(t=Vi(t))?V(e):0;return t&&n<t?e+xn(t-n,r):e},k.padStart=function(e,t,r){e=qi(e);var n=(t=Vi(t))?V(e):0;return t&&n<t?xn(t-n,r)+e:e},k.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),eo(qi(e).replace(je,""),t||0)},k.random=function(e,t,r){if(r&&"boolean"!=typeof r&&Un(e,t,r)&&(t=r=q),r===q&&("boolean"==typeof t?(r=t,t=q):"boolean"==typeof e&&(r=e,e=q)),e===q&&t===q?(e=0,t=1):(e=Ri(e),t===q?(t=e,e=0):t=Ri(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var i=to();return Ja(e+i*(t-e+Xt("1e-"+((i+"").length-1))),t)}return Sr(e,t)},k.reduce=function(e,t,r){var n=ks(e)?d:A,i=arguments.length<3;return n(e,On(t,4),r,i,wo)},k.reduceRight=function(e,t,r){var n=ks(e)?h:A,i=arguments.length<3;return n(e,On(t,4),r,i,zo)},k.repeat=function(e,t,r){return t=(r?Un(e,t,r):t===q)?1:Vi(t),_r(qi(e),t)},k.replace=function(){var e=arguments,t=qi(e[0]);return e.length<3?t:t.replace(e[1],e[2])},k.result=function(e,t,r){var n=-1,i=(t=Yr(t,e)).length;for(i||(i=1,e=q);++n<i;){var a=null==e?q:e[ni(t[n])];a===q&&(n=i,a=r),e=Ti(a)?a.call(e):a}return e},k.round=yl,k.runInContext=e,k.sample=function(e){return(ks(e)?mt:Tr)(e)},k.size=function(e){if(null==e)return 0;if(Si(e))return Hi(e)?V(e):e.length;var t=Io(e);return t==le||t==he?e.size:gr(e).length},k.snakeCase=Qs,k.some=function(e,t,r){var n=ks(e)?m:Br;return r&&Un(e,t,r)&&(t=q),n(e,On(t,3))},k.sortedIndex=function(e,t){return Dr(e,t)},k.sortedIndexBy=function(e,t,r){return Hr(e,t,On(r,2))},k.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=Dr(e,t);if(n<r&&Ci(e[n],t))return n}return-1},k.sortedLastIndex=function(e,t){return Dr(e,t,!0)},k.sortedLastIndexBy=function(e,t,r){return Hr(e,t,On(r,2),!0)},k.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var r=Dr(e,t,!0)-1;if(Ci(e[r],t))return r}return-1},k.startCase=el,k.startsWith=function(e,t,r){return e=qi(e),r=null==r?0:At(Vi(r),0,e.length),t=Rr(t),e.slice(r,r+t.length)==t},k.subtract=xl,k.sum=function(e){return e&&e.length?C(e,ta):0},k.sumBy=function(e,t){return e&&e.length?C(e,On(t,2)):0},k.template=function(e,t,r){var n=k.templateSettings;r&&Un(e,t,r)&&(t=q),e=qi(e),t=Ds({},t,n,Mn);var i,a,o=Ds({},t.imports,n.imports,Mn),s=Xi(o),l=T(o,s),c=0,u=t.interpolate||at,p="__p += '",d=ma((t.escape||at).source+"|"+u.source+"|"+(u===Oe?Ke:at).source+"|"+(t.evaluate||at).source+"|$","g"),h="//# sourceURL="+(za.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++jt+"]")+"\n";e.replace(d,(function(t,r,n,o,s,l){return n||(n=o),p+=e.slice(c,l).replace(ot,I),r&&(i=!0,p+="' +\n__e("+r+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),p+="';\n";var m=za.call(t,"variable")&&t.variable;if(m){if(Ye.test(m))throw new ua("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(Me,""):p).replace(Te,"$1").replace($e,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=nl((function(){return pa(s,h+"return "+p).apply(q,l)}));if(g.source=p,Mi(g))throw g;return g},k.times=function(e,t){if((e=Vi(e))<1||e>K)return[];var r=Q,n=Ja(e,Q);t=On(t),e-=Q;for(var i=S(n,t);++r<e;)t(r);return i},k.toFinite=Ri,k.toInteger=Vi,k.toLength=Ni,k.toLower=function(e){return qi(e).toLowerCase()},k.toNumber=Fi,k.toSafeInteger=function(e){return e?At(Vi(e),-K,K):0===e?e:0},k.toString=qi,k.toUpper=function(e){return qi(e).toUpperCase()},k.trim=function(e,t,r){if((e=qi(e))&&(r||t===q))return _(e);if(!e||!(t=Rr(t)))return e;var n=N(e),i=N(t);return Zr(n,L(n,i),E(n,i)+1).join("")},k.trimEnd=function(e,t,r){if((e=qi(e))&&(r||t===q))return e.slice(0,F(e)+1);if(!e||!(t=Rr(t)))return e;var n=N(e);return Zr(n,0,E(n,N(t))+1).join("")},k.trimStart=function(e,t,r){if((e=qi(e))&&(r||t===q))return e.replace(je,"");if(!e||!(t=Rr(t)))return e;var n=N(e);return Zr(n,L(n,N(t))).join("")},k.truncate=function(e,t){var r=30,n="...";if(Ei(t)){var i="separator"in t?t.separator:i;r="length"in t?Vi(t.length):r,n="omission"in t?Rr(t.omission):n}var a=(e=qi(e)).length;if(B(e)){var o=N(e);a=o.length}if(r>=a)return e;var s=r-V(n);if(s<1)return n;var l=o?Zr(o,0,s).join(""):e.slice(0,s);if(i===q)return l+n;if(o&&(s+=l.length-s),Ms(i)){if(e.slice(s).search(i)){var c,u=l;for(i.global||(i=ma(i.source,qi(Je.exec(i))+"g")),i.lastIndex=0;c=i.exec(u);)var p=c.index;l=l.slice(0,p===q?s:p)}}else if(e.indexOf(Rr(i),s)!=s){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+n},k.unescape=function(e){return(e=qi(e))&&Ie.test(e)?e.replace(Le,dr):e},k.uniqueId=function(e){var t=++ka;return qi(e)+t},k.upperCase=tl,k.upperFirst=rl,k.each=vi,k.eachRight=bi,k.first=ci,na(k,function(){var e={};return It(k,(function(t,r){za.call(k.prototype,r)||(e[r]=t)})),e}(),{chain:!1}),k.VERSION="4.17.21",i(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){k[e].placeholder=k})),i(["drop","take"],(function(e,t){st.prototype[e]=function(r){r=r===q?1:Ka(Vi(r),0);var n=this.__filtered__&&!t?new st(this):this.clone();return n.__filtered__?n.__takeCount__=Ja(r,n.__takeCount__):n.__views__.push({size:Ja(r,Q),type:e+(n.__dir__<0?"Right":"")}),n},st.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),i(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;st.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:On(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),i(["head","last"],(function(e,t){var r="take"+(t?"Right":"");st.prototype[e]=function(){return this[r](1).value()[0]}})),i(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");st.prototype[e]=function(){return this.__filtered__?new st(this):this[r](1)}})),st.prototype.compact=function(){return this.filter(ta)},st.prototype.find=function(e){return this.filter(e).head()},st.prototype.findLast=function(e){return this.reverse().find(e)},st.prototype.invokeMap=Mr((function(e,t){return"function"==typeof e?new st(this):this.map((function(r){return Jt(r,e,t)}))})),st.prototype.reject=function(e){return this.filter(Ai(On(e)))},st.prototype.slice=function(e,t){e=Vi(e);var r=this;return r.__filtered__&&(e>0||t<0)?new st(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==q&&(r=(t=Vi(t))<0?r.dropRight(-t):r.take(t-e)),r)},st.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},st.prototype.toArray=function(){return this.take(Q)},It(st.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=k[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);i&&(k.prototype[t]=function(){var t=this.__wrapped__,o=n?[1]:arguments,s=t instanceof st,l=o[0],c=s||ks(t),u=function(e){var t=i.apply(k,p([e],o));return n&&d?t[0]:t};c&&r&&"function"==typeof l&&1!=l.length&&(s=c=!1);var d=this.__chain__,h=!!this.__actions__.length,m=a&&!d,g=s&&!h;if(!a&&c){t=g?t:new st(this);var f=e.apply(t,o);return f.__actions__.push({func:fi,args:[u],thisArg:q}),new Ge(f,d)}return m&&g?e.apply(this,o):(f=this.thru(u),m?n?f.value()[0]:f.value():f)})})),i(["pop","push","shift","sort","splice","unshift"],(function(e){var t=va[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);k.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(ks(i)?i:[],e)}return this[r]((function(r){return t.apply(ks(r)?r:[],e)}))}})),It(st.prototype,(function(e,t){var r=k[t];if(r){var n=r.name+"";za.call(uo,n)||(uo[n]=[]),uo[n].push({name:t,func:r})}})),uo[fn(q,2).name]=[{name:"wrapper",func:q}],st.prototype.clone=function(){var e=new st(this.__wrapped__);return e.__actions__=nn(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=nn(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=nn(this.__views__),e},st.prototype.reverse=function(){if(this.__filtered__){var e=new st(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},st.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=ks(e),n=t<0,i=r?e.length:0,a=function(e,t,r){for(var n=-1,i=r.length;++n<i;){var a=r[n],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=Ja(t,e+o);break;case"takeRight":e=Ka(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=a.start,s=a.end,l=s-o,c=n?s:o-1,u=this.__iteratees__,p=u.length,d=0,h=Ja(l,this.__takeCount__);if(!r||!n&&i==l&&h==l)return qr(e,this.__actions__);var m=[];e:for(;l--&&d<h;){for(var g=-1,f=e[c+=t];++g<p;){var v=u[g],b=v.iteratee,y=v.type,x=b(f);if(2==y)f=x;else if(!x){if(1==y)continue e;break e}}m[d++]=f}return m},k.prototype.at=rs,k.prototype.chain=function(){return gi(this)},k.prototype.commit=function(){return new Ge(this.value(),this.__chain__)},k.prototype.next=function(){this.__values__===q&&(this.__values__=Pi(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?q:this.__values__[this.__index__++]}},k.prototype.plant=function(e){for(var t,r=this;r instanceof qe;){var n=ai(r);n.__index__=0,n.__values__=q,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},k.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof st){var t=e;return this.__actions__.length&&(t=new st(this)),(t=t.reverse()).__actions__.push({func:fi,args:[di],thisArg:q}),new Ge(t,this.__chain__)}return this.thru(di)},k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=function(){return qr(this.__wrapped__,this.__actions__)},k.prototype.first=k.prototype.head,Pa&&(k.prototype[Pa]=function(){return this}),k}();Qt?((Qt.exports=hr)._=hr,Jt._=hr):Kt._=hr}).call(Sc)})),nz=Mc((function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,r=t.aliasToReal,n={};for(var i in r){var a=r[i];e.call(n,a)?n[a].push(i):n[a]=[i]}return n}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}})),iz={},az=Array.prototype.push;function oz(e,t){return 2==t?function(t,r){return e(t,r)}:function(t){return e(t)}}function sz(e){for(var t=e?e.length:0,r=Array(t);t--;)r[t]=e[t];return r}function lz(e,t){return function(){var r=arguments.length;if(r){for(var n=Array(r);r--;)n[r]=arguments[r];var i=n[0]=t.apply(void 0,n);return e.apply(void 0,n),i}}}var cz=rz.runInContext(),uz=function e(t,r,n,i){var a="function"==typeof r,o=r===Object(r);if(o&&(i=n,n=r,r=void 0),null==n)throw new TypeError;i||(i={});var s={cap:!("cap"in i)||i.cap,curry:!("curry"in i)||i.curry,fixed:!("fixed"in i)||i.fixed,immutable:!("immutable"in i)||i.immutable,rearg:!("rearg"in i)||i.rearg},l=a?n:iz,c="curry"in i&&i.curry,u="fixed"in i&&i.fixed,p="rearg"in i&&i.rearg,d=a?n.runInContext():void 0,h=a?n:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},m=h.ary,g=h.assign,f=h.clone,v=h.curry,b=h.forEach,y=h.isArray,x=h.isError,w=h.isFunction,z=h.isWeakMap,k=h.keys,A=h.rearg,C=h.toInteger,S=h.toPath,_=k(nz.aryMethod),M={castArray:function(e){return function(){var t=arguments[0];return y(t)?e(sz(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[1],r=e(arguments[0],t),n=r.length;return s.cap&&"number"==typeof t?(t=t>2?t-2:1,n&&n<=t?r:oz(r,t)):r}},mixin:function(e){return function(t){var r=this;if(!w(r))return e(r,Object(t));var n=[];return b(k(t),(function(e){w(t[e])&&n.push([e,r.prototype[e]])})),e(r,Object(t)),b(n,(function(e){var t=e[1];w(t)?r.prototype[e[0]]=t:delete r.prototype[e[0]]})),r}},nthArg:function(e){return function(t){var r=t<0?1:C(t)+1;return v(e(t),r)}},rearg:function(e){return function(t,r){var n=r?r.length:0;return v(e(t,r),n)}},runInContext:function(r){return function(n){return e(t,r(n),i)}}};function T(e,t){if(s.cap){var r=nz.iterateeRearg[e];if(r)return function(e,t){return B(e,(function(e){var r=t.length;return function(e,t){return 2==t?function(t,r){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(A(oz(e,r),t),r)}))}(t,r);var n=!a&&nz.iterateeAry[e];if(n)return function(e,t){return B(e,(function(e){return"function"==typeof e?oz(e,t):e}))}(t,n)}return t}function $(e,t,r){if(s.fixed&&(u||!nz.skipFixed[e])){var n=nz.methodSpread[e],i=n&&n.start;return void 0===i?m(t,r):function(e,t){return function(){for(var r=arguments.length,n=r-1,i=Array(r);r--;)i[r]=arguments[r];var a=i[t],o=i.slice(0,t);return a&&az.apply(o,a),t!=n&&az.apply(o,i.slice(t+1)),e.apply(this,o)}}(t,i)}return t}function L(e,t,r){return s.rearg&&r>1&&(p||!nz.skipRearg[e])?A(t,nz.methodRearg[e]||nz.aryRearg[r]):t}function E(e,t){for(var r=-1,n=(t=S(t)).length,i=n-1,a=f(Object(e)),o=a;null!=o&&++r<n;){var s=t[r],l=o[s];null==l||w(l)||x(l)||z(l)||(o[s]=f(r==i?l:Object(l))),o=o[s]}return a}function I(t,r){var n=nz.aliasToReal[t]||t,o=nz.remap[n]||n,s=i;return function(t){var i=a?d:h,l=a?d[o]:r,c=g(g({},s),t);return e(i,n,l,c)}}function B(e,t){return function(){var r=arguments.length;if(!r)return e();for(var n=Array(r);r--;)n[r]=arguments[r];var i=s.rearg?0:r-1;return n[i]=t(n[i]),e.apply(void 0,n)}}function D(e,t,r){var n,i=nz.aliasToReal[e]||e,a=t,o=M[i];return o?a=o(t):s.immutable&&(nz.mutate.array[i]?a=lz(t,sz):nz.mutate.object[i]?a=lz(t,function(e){return function(t){return e({},t)}}(t)):nz.mutate.set[i]&&(a=lz(t,E))),b(_,(function(e){return b(nz.aryMethod[e],(function(t){if(i==t){var r=nz.methodSpread[i],o=r&&r.afterRearg;return n=o?$(i,L(i,a,e),e):L(i,$(i,a,e),e),n=function(e,t,r){return c||s.curry&&r>1?v(t,r):t}(0,n=T(i,n),e),!1}})),!n})),n||(n=a),n==t&&(n=c?v(n,1):function(){return t.apply(this,arguments)}),n.convert=I(i,t),n.placeholder=t.placeholder=r,n}if(!o)return D(r,n,l);var H=n,O=[];return b(_,(function(e){b(nz.aryMethod[e],(function(e){var t=H[nz.remap[e]||e];t&&O.push([e,D(e,t,H)])}))})),b(k(H),(function(e){var t=H[e];if("function"==typeof t){for(var r=O.length;r--;)if(O[r][0]==e)return;t.convert=I(e,t),O.push([e,t])}})),b(O,(function(e){H[e[0]]=e[1]})),H.convert=function(e){return H.runInContext.convert(e)(void 0)},H.placeholder=H,b(k(H),(function(e){b(nz.realToAlias[e]||[],(function(t){H[t]=H[e]}))})),H}(cz,cz),pz={getHelperList:()=>{let e=[];for(let t of ez.externalCollections)e.push(Ow[t]());const t={};for(let r of e)for(let[e,n]of Object.entries(r))t[e]=n;for(let e of Object.keys(ez.addedHelpers))t[e]=ez.addedHelpers[e];return t}};const{atob:dz}=tz,{cloneDeep:hz}=uz,{LITERAL_MARKER:mz}=Qw,{getHelperList:gz}=pz;let fz;var vz=e=>fz=e,bz={setJSRunner:vz,processJS:(e,t)=>{if(vh&&vh.env.NO_JS)throw new Error("JS disabled in environment.");try{const r=`function run(){${dz(e)}};run();`,n={$:e=>((e,t)=>{let r=t;return e.split(".").forEach((e=>{if(null==r||"object"!=typeof r)return null;r=r[(e=>{if(!e||"string"!=typeof e)return e;const t=e.match(/\[+(.+)]+/);return t&&t[1]?t[1]:e})(e)]})),r})(e,hz(t)),helpers:gz()},i={data:fz(r,n)};return`{{${mz} js_result-${JSON.stringify(i)}}}`}catch(e){return"Error while executing JS"}}},yz=Mc((function(e){const{SafeString:t}=Op,{processJS:r}=bz,{HelperFunctionNames:n,HelperFunctionBuiltin:i,LITERAL_MARKER:a}=Qw,{getHelperList:o}=pz,s={"<":"<",">":">"},l=[new Rp(n.OBJECT,(e=>new t(JSON.stringify(e)))),new Rp(n.JS,r,!1),new Rp(n.ALL,((e,r)=>{const{__opts:n}=r;if(function(e){return null!=e&&"object"==typeof e&&("[object Object]"===e.toString()||e.length>0&&"object"==typeof e[0])}(e))return new t(JSON.stringify(e));if(n&&n.onlyFound&&null==e)return n.input;if(null==e||"string"!=typeof e)return null==e?"":e;e&&e.string&&(e=e.string);let i=e;return n&&n.escapeNewlines&&(i=e.replace(/\n/g,"\\n")),i=new t(i.replace(/&/g,"&")),null==i||"string"!=typeof i?i:i.replace(/[<>]/g,(e=>s[e]||e))})),new Rp(n.LITERAL,(e=>{if(void 0===e)return"";const t=typeof e,r="object"===t?JSON.stringify(e):e;return`{{${a} ${t}-${r}}}`}))];e.exports.HelperNames=()=>Object.values(n).concat(i,ez.externalHelperNames),e.exports.registerMinimum=e=>{for(let t of l)t.register(e)},e.exports.registerAll=t=>{e.exports.registerMinimum(t),ez.registerAll(t)},e.exports.unregisterAll=e=>{for(let t of l)t.unregister(e);ez.unregisterAll(e)},e.exports.getHelperList=o}));const{HelperNames:xz}=yz,{swapStrings:wz,isAlphaNumeric:zz}=tz,kz=["#","else","/"],Az={SWAP_TO_DOT:"swap-to-dot-notation",FIX_FUNCTIONS:"fix-functions",FINALISE:"finalise"};class Cz{constructor(e,t){this.name=e,this.fn=t}process(e,t,r){const n=this.fn(t,r),i=e.indexOf(t);return wz(e,i,t.length,n)}}var Sz={processors:[new Cz(Az.SWAP_TO_DOT,(e=>{let t=e.indexOf("["),r=0;for(;-1!==t;){zz(e.charAt(t-1))&&(e=wz(e,t+r,1,".[")),r=t+1;const n=e.substring(r+1).indexOf("[");t=n>0?r+1+n:-1}return e})),new Cz(Az.FIX_FUNCTIONS,(e=>{for(let t of kz){const r=`{ ${t}`,n=`{${t}`;e=e.replace(new RegExp(r,"g"),n)}return e})),new Cz(Az.FINALISE,((e,t)=>{const r=t&&t.noHelpers;let n=e.slice(2,e.length-2);" "===n.charAt(0)&&(n=n.slice(1))," "===n.charAt(n.length-1)&&(n=n.slice(0,n.length-1));const i=n.split(" ")[0];for(let t of kz)if(i.includes(t))return e;const a=i.trim().toLowerCase();return!r&&xz().some((e=>a===e.toLowerCase()))&&(n=`(${n})`),`{{ all ${n} }}`}))],PreprocessorNames:Az};const{LITERAL_MARKER:_z}=Qw,Mz={CONVERT_LITERALS:"convert-literals"};var Tz=Mz,$z=[new class{constructor(e,t){this.name=e,this.fn=t}process(e){return this.fn(e)}}(Mz.CONVERT_LITERALS,(e=>{if("string"!=typeof e||!e.includes(_z))return e;const t=e.indexOf("-"),r=e.substring(12,t),n=e.substring(t+1,e.length-2);switch(r){case"string":return n;case"number":return parseFloat(n);case"boolean":return"true"===n;case"object":return JSON.parse(n);case"js_result":return JSON.parse(n).data}return n}))],Lz={PostProcessorNames:Tz,processors:$z};const{FIND_HBS_REGEX:Ez}=tz;function Iz(e,t,r){for(let n of t){if("string"!=typeof e)break;let t=new RegExp(Ez),i=e.match(t);if(null!=i)for(let t of i)e=n.process(e,t,r)}return e}var Bz={math:{abs:{args:["a"],numArgs:1,example:"{{ abs 12012.1000 }} -> 12012.1",description:"<p>Return the magnitude of <code>a</code>.</p>\n"},add:{args:["a","b"],numArgs:2,example:"{{ add 1 2 }} -> 3",description:"<p>Return the sum of <code>a</code> plus <code>b</code>.</p>\n"},avg:{args:["array"],numArgs:1,example:"{{ avg 1 2 3 4 5 }} -> 3",description:"<p>Returns the average of all numbers in the given array.</p>\n"},ceil:{args:["value"],numArgs:1,example:"{{ ceil 1.2 }} -> 2",description:"<p>Get the <code>Math.ceil()</code> of the given value.</p>\n"},divide:{args:["a","b"],numArgs:2,example:"{{ divide 10 5 }} -> 2",description:"<p>Divide <code>a</code> by <code>b</code></p>\n"},floor:{args:["value"],numArgs:1,example:"{{ floor 1.2 }} -> 1",description:"<p>Get the <code>Math.floor()</code> of the given value.</p>\n"},minus:{args:["a","b"],numArgs:2,example:"{{ subtract 10 5 }} -> 5",description:"<p>Return the product of <code>a</code> minus <code>b</code>.</p>\n"},modulo:{args:["a","b"],numArgs:2,example:"{{ modulo 10 5 }} -> 0",description:"<p>Get the remainder of a division operation.</p>\n"},multiply:{args:["a","b"],numArgs:2,example:"{{ multiply 10 5 }} -> 50",description:"<p>Multiply number <code>a</code> by number <code>b</code>.</p>\n"},plus:{args:["a","b"],numArgs:2,example:"{{ plus 10 5 }} -> 15",description:"<p>Add <code>a</code> by <code>b</code>.</p>\n"},random:{args:["min","max"],numArgs:2,example:"{{ random 0 20 }} -> 10",description:"<p>Generate a random number between two values</p>\n"},remainder:{args:["a","b"],numArgs:2,example:"{{ remainder 10 6 }} -> 4",description:"<p>Get the remainder when <code>a</code> is divided by <code>b</code>.</p>\n"},round:{args:["number"],numArgs:1,example:"{{ round 10.3 }} -> 10",description:"<p>Round the given number.</p>\n"},subtract:{args:["a","b"],numArgs:2,example:"{{ subtract 10 5 }} -> 5",description:"<p>Return the product of <code>a</code> minus <code>b</code>.</p>\n"},sum:{args:["array"],numArgs:1,example:"{{ sum [1, 2, 3] }} -> 6",description:"<p>Returns the sum of all numbers in the given array.</p>\n"}},array:{after:{args:["array","n"],numArgs:2,example:"{{ after [1, 2, 3] 1}} -> [3]",description:'<p>Returns all of the items in an array after the specified index. Opposite of <a href="#before">before</a>.</p>\n'},arrayify:{args:["value"],numArgs:1,example:"{{ arrayify 'foo' }} -> ['foo']",description:"<p>Cast the given <code>value</code> to an array.</p>\n"},before:{args:["array","n"],numArgs:2,example:"{{ before [1, 2, 3] 2}} -> [1, 2]",description:'<p>Return all of the items in the collection before the specified count. Opposite of <a href="#after">after</a>.</p>\n'},eachIndex:{args:["array","options"],numArgs:2,example:"{{#eachIndex [1, 2, 3]}} {{item}} is {{index}} {{/eachIndex}}",description:"<p>Iterates the array, listing an item and the index of it.</p>\n"},filter:{args:["array","value","options"],numArgs:3,example:"{{#filter [1, 2, 3] 2}}2 Found{{else}}2 not found{{/filter}}",description:"<p>Block helper that filters the given array and renders the block for values that evaluate to <code>true</code>, otherwise the inverse block is returned.</p>\n"},first:{args:["array","n"],numArgs:2,example:"{{first [1, 2, 3, 4] 2}} -> [1, 2]",description:"<p>Returns the first item, or first <code>n</code> items of an array.</p>\n"},forEach:{args:["array"],numArgs:1,example:"{{#forEach [{ 'name': 'John' }] }} {{ name }} {{/forEach}}",description:"<p>Iterates over each item in an array and exposes the current item in the array as context to the inner block. In addition to the current array item, the helper exposes the following variables to the inner block: - <code>index</code> - <code>total</code> - <code>isFirst</code> - <code>isLast</code> Also, <code>@index</code> is exposed as a private variable, and additional private variables may be defined as hash arguments.</p>\n"},inArray:{args:["array","value","options"],numArgs:3,example:"{{#inArray [1, 2, 3] 2}} 2 exists {{else}} 2 does not exist {{/inArray}} -> 2 exists",description:"<p>Block helper that renders the block if an array has the given <code>value</code>. Optionally specify an inverse block to render when the array does not have the given value.</p>\n"},isArray:{args:["value"],numArgs:1,example:"{{isArray [1, 2]}} -> true",description:"<p>Returns true if <code>value</code> is an es5 array.</p>\n"},itemAt:{args:["array","idx"],numArgs:2,example:"{{itemAt [1, 2, 3] 1}} -> 2",description:"<p>Returns the item from <code>array</code> at index <code>idx</code>.</p>\n"},join:{args:["array","separator"],numArgs:2,example:"{{join [1, 2, 3]}} -> '1, 2, 3'",description:"<p>Join all elements of array into a string, optionally using a given separator.</p>\n"},equalsLength:{args:["value","length","options"],numArgs:3,example:"{{equalsLength '[1,2,3]' 3}} -> true",description:"<p>Returns true if the the length of the given <code>value</code> is equal to the given <code>length</code>. Can be used as a block or inline helper.</p>\n"},last:{args:["value","n"],numArgs:2,example:"{{last [1, 2, 3]}} -> 3",description:'<p>Returns the last item, or last <code>n</code> items of an array or string. Opposite of <a href="#first">first</a>.</p>\n'},length:{args:["value"],numArgs:1,example:"{{length '[1, 2, 3]'}} -> 3",description:"<p>Returns the length of the given string or array.</p>\n"},lengthEqual:{args:["value","length","options"],numArgs:3,example:"{{equalsLength '[1,2,3]' 3}} -> true",description:"<p>Returns true if the the length of the given <code>value</code> is equal to the given <code>length</code>. Can be used as a block or inline helper.</p>\n"},map:{args:["array","fn"],numArgs:2,example:"{{map [1, 2, 3] double}} -> [2, 4, 6]",description:"<p>Returns a new array, created by calling <code>function</code> on each element of the given <code>array</code>. For example,</p>\n"},pluck:{args:["collection","prop"],numArgs:2,example:"{{pluck [{ 'name': 'Bob' }] 'name' }} -> ['Bob']",description:"<p>Map over the given object or array or objects and create an array of values from the given <code>prop</code>. Dot-notation may be used (as a string) to get nested properties.</p>\n"},reverse:{args:["value"],numArgs:1,example:"{{reverse [1, 2, 3]}} -> [3, 2, 1]",description:"<p>Reverse the elements in an array, or the characters in a string.</p>\n"},some:{args:["array","iter","provided"],numArgs:3,example:"{{#some [1, 'b', 3] isString}} string found {{else}} No string found {{/some}} -> string found",description:"<p>Block helper that returns the block if the callback returns true for some value in the given array.</p>\n"},sort:{args:["array","key"],numArgs:2,example:"{{ sort ['b', 'a', 'c'] }} -> ['a', 'b', 'c']",description:"<p>Sort the given <code>array</code>. If an array of objects is passed, you may optionally pass a <code>key</code> to sort on as the second argument. You may alternatively pass a sorting function as the second argument.</p>\n"},sortBy:{args:["array","props"],numArgs:2,example:"{{ sortBy [{a: 'zzz'}, {a: 'aaa'}] 'a' }} -> [{'a':'aaa'}, {'a':'zzz'}]",description:"<p>Sort an <code>array</code>. If an array of objects is passed, you may optionally pass a <code>key</code> to sort on as the second argument. You may alternatively pass a sorting function as the second argument.</p>\n"},withAfter:{args:["array","idx","options"],numArgs:3,example:"{{ withAfter [1, 2, 3] 1 }} {{this}} {{/withAfter}}",description:'<p>Use the items in the array <em>after</em> the specified index as context inside a block. Opposite of <a href="#withBefore">withBefore</a>.</p>\n'},withBefore:{args:["array","idx","options"],numArgs:3,example:"{{ withBefore [1, 2, 3] 2 }} {{this}} {{/withBefore}}",description:'<p>Use the items in the array <em>before</em> the specified index as context inside a block. Opposite of <a href="#withAfter">withAfter</a>.</p>\n'},withFirst:{args:["array","idx","options"],numArgs:3,example:"{{ withFirst [1, 2, 3] }} {{this}} {{/withFirst}}",description:'<p>Use the first item in a collection inside a handlebars block expression. Opposite of <a href="#withLast">withLast</a>.</p>\n'},withGroup:{args:["array","size","options"],numArgs:3,example:"{{#withGroup [1, 2, 3, 4] 2}} {{#each this}} {{.}} {{each}} <br> {{/withGroup}} -> 1,2<br> 3,4<br>",description:"<p>Block helper that groups array elements by given group <code>size</code>.</p>\n"},withLast:{args:["array","idx","options"],numArgs:3,example:"{{#withLast [1, 2, 3, 4]}} {{this}} {{/withLast}} -> 4",description:'<p>Use the last item or <code>n</code> items in an array as context inside a block. Opposite of <a href="#withFirst">withFirst</a>.</p>\n'},withSort:{args:["array","prop","options"],numArgs:3,example:"{{#withSort ['b', 'a', 'c']}} {{this}} {{/withSort}} -> abc",description:"<p>Block helper that sorts a collection and exposes the sorted collection as context inside the block.</p>\n"},unique:{args:["array","options"],numArgs:2,example:"{{#each (unique ['a', 'a', 'c', 'b', 'e', 'e']) }} {{.}} {{/each}} -> acbe",description:'<p>Block helper that return an array with all duplicate values removed. Best used along with a <a href="#each">each</a> helper.</p>\n'}},number:{bytes:{args:["number"],numArgs:1,example:"{{ bytes 1386 }} -> 1.4Kb",description:"<p>Format a number to it's equivalent in bytes. If a string is passed, it's length will be formatted and returned. <strong>Examples:</strong> - <code>'foo' => 3 B</code> - <code>13661855 => 13.66 MB</code> - <code>825399 => 825.39 kB</code> - <code>1396 => 1.4 kB</code></p>\n"},addCommas:{args:["num"],numArgs:1,example:"{{ addCommas 1000000 }} -> 1,000,000",description:"<p>Add commas to numbers</p>\n"},phoneNumber:{args:["num"],numArgs:1,example:"{{ phoneNumber 8005551212 }} -> (800) 555-1212",description:"<p>Convert a string or number to a formatted phone number.</p>\n"},toAbbr:{args:["number","precision"],numArgs:2,example:"{{ toAbbr 10123 2 }} -> 10.12k",description:"<p>Abbreviate numbers to the given number of <code>precision</code>. This for general numbers, not size in bytes.</p>\n"},toExponential:{args:["number","fractionDigits"],numArgs:2,example:"{{ toExponential 10123 2 }} -> 101e+4",description:"<p>Returns a string representing the given number in exponential notation.</p>\n"},toFixed:{args:["number","digits"],numArgs:2,example:"{{ toFixed 1.1234 2 }} -> 1.12",description:"<p>Formats the given number using fixed-point notation.</p>\n"},toFloat:{args:["number"],numArgs:1,description:"<p>Convert input to a float.</p>\n"},toInt:{args:["number"],numArgs:1,description:"<p>Convert input to an integer.</p>\n"},toPrecision:{args:["number","precision"],numArgs:2,example:"{{toPrecision '1.1234' 2}}",description:"<p>Returns a string representing the <code>Number</code> object to the specified precision.</p>\n"}},url:{encodeURI:{args:["str"],numArgs:1,example:"{{ encodeURI 'https://myurl?Hello There' }} -> https://myurl?Hello%20There",description:"<p>Encodes a Uniform Resource Identifier (URI) component by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character.</p>\n"},escape:{args:["str"],numArgs:1,example:"{{ escape 'https://myurl?Hello+There' }} -> https://myurl?Hello%20There",description:"<p>Escape the given string by replacing characters with escape sequences. Useful for allowing the string to be used in a URL, etc.</p>\n"},decodeURI:{args:["str"],numArgs:1,example:"{{ decodeURI 'https://myurl?Hello%20There' }} -> https://myurl?=Hello There",description:"<p>Decode a Uniform Resource Identifier (URI) component.</p>\n"},urlResolve:{args:["base","href"],numArgs:2,example:"{{ urlResolve 'https://myurl' '/api/test' }} -> https://myurl/api/test",description:"<p>Take a base URL, and a href URL, and resolve them as a browser would for an anchor tag.</p>\n"},urlParse:{args:["str"],numArgs:1,example:"{{ urlParse 'https://myurl/api/test' }}",description:"<p>Parses a <code>url</code> string into an object.</p>\n"},stripQuerystring:{args:["url"],numArgs:1,example:"{{ stripQueryString 'https://myurl/api/test?foo=bar' }} -> 'https://myurl/api/test'",description:"<p>Strip the query string from the given <code>url</code>.</p>\n"},stripProtocol:{args:["str"],numArgs:1,example:"{{ stripProtocol 'https://myurl/api/test' }} -> 'myurl/api/test'",description:"<p>Strip protocol from a <code>url</code>. Useful for displaying media that may have an 'http' protocol on secure connections.</p>\n"}},string:{append:{args:["str","suffix"],numArgs:2,example:"{{append 'index' '.html'}} -> index.html",description:"<p>Append the specified <code>suffix</code> to the given string.</p>\n"},camelcase:{args:["string"],numArgs:1,example:"{{camelcase 'foo bar baz'}} -> fooBarBaz",description:"<p>camelCase the characters in the given <code>string</code>.</p>\n"},capitalize:{args:["str"],numArgs:1,example:"{{capitalize 'foo bar baz'}} -> Foo bar baz",description:"<p>Capitalize the first word in a sentence.</p>\n"},capitalizeAll:{args:["str"],numArgs:1,example:"{{ capitalizeAll 'foo bar baz'}} -> Foo Bar Baz",description:"<p>Capitalize all words in a string.</p>\n"},center:{args:["str","spaces"],numArgs:2,example:"{{ center 'test' 1}} -> ' test '",description:"<p>Center a string using non-breaking spaces</p>\n"},chop:{args:["string"],numArgs:1,example:"{{ chop ' ABC '}} -> 'ABC'",description:"<p>Like trim, but removes both extraneous whitespace <strong>and non-word characters</strong> from the beginning and end of a string.</p>\n"},dashcase:{args:["string"],numArgs:1,example:"{{dashcase 'a-b-c d_e'}} -> a-b-c-d-e",description:"<p>dash-case the characters in <code>string</code>. Replaces non-word characters and periods with hyphens.</p>\n"},dotcase:{args:["string"],numArgs:1,example:"{{dotcase 'a-b-c d_e'}} -> a.b.c.d.e",description:"<p>dot.case the characters in <code>string</code>.</p>\n"},downcase:{args:["string"],numArgs:1,example:"{{downcase 'aBcDeF'}} -> abcdef",description:'<p>Lowercase all of the characters in the given string. Alias for <a href="#lowercase">lowercase</a>.</p>\n'},ellipsis:{args:["str","length"],numArgs:2,example:"{{ellipsis 'foo bar baz', 7}} -> foo bar…",description:"<p>Truncates a string to the specified <code>length</code>, and appends it with an elipsis, <code>…</code>.</p>\n"},hyphenate:{args:["str"],numArgs:1,example:"{{hyphenate 'foo bar baz qux'}} -> foo-bar-baz-qux",description:"<p>Replace spaces in a string with hyphens.</p>\n"},isString:{args:["value"],numArgs:1,example:"{{isString 'foo'}} -> true",description:"<p>Return true if <code>value</code> is a string.</p>\n"},lowercase:{args:["str"],numArgs:1,example:"{{lowercase 'Foo BAR baZ'}} -> foo bar baz",description:"<p>Lowercase all characters in the given string.</p>\n"},occurrences:{args:["str","substring"],numArgs:2,example:"{{occurrences 'foo bar foo bar baz' 'foo'}} -> 2",description:"<p>Return the number of occurrences of <code>substring</code> within the given <code>string</code>.</p>\n"},pascalcase:{args:["string"],numArgs:1,example:"{{pascalcase 'foo bar baz'}} -> FooBarBaz",description:"<p>PascalCase the characters in <code>string</code>.</p>\n"},pathcase:{args:["string"],numArgs:1,example:"{{pathcase 'a-b-c d_e'}} -> a/b/c/d/e",description:"<p>path/case the characters in <code>string</code>.</p>\n"},plusify:{args:["str"],numArgs:1,example:"{{plusify 'foo bar baz'}} -> foo+bar+baz",description:"<p>Replace spaces in the given string with pluses.</p>\n"},prepend:{args:["str","prefix"],numArgs:2,example:"{{prepend 'bar' 'foo-'}} -> foo-bar",description:"<p>Prepends the given <code>string</code> with the specified <code>prefix</code>.</p>\n"},raw:{args:["options"],numArgs:1,example:"{{{{#raw}}}} {{foo}} {{{{/raw}}}} -> {{foo}}",description:"<p>Render a block without processing mustache templates inside the block.</p>\n"},remove:{args:["str","substring"],numArgs:2,example:"{{remove 'a b a b a b' 'a '}} -> b b b",description:"<p>Remove all occurrences of <code>substring</code> from the given <code>str</code>.</p>\n"},removeFirst:{args:["str","substring"],numArgs:2,example:"{{remove 'a b a b a b' 'a'}} -> b a b a b",description:"<p>Remove the first occurrence of <code>substring</code> from the given <code>str</code>.</p>\n"},replace:{args:["str","a","b"],numArgs:3,example:"{{replace 'a b a b a b' 'a' 'z'}} -> z b z b z b",description:"<p>Replace all occurrences of substring <code>a</code> with substring <code>b</code>.</p>\n"},replaceFirst:{args:["str","a","b"],numArgs:3,example:"{{replace 'a b a b a b' 'a' 'z'}} -> z b a b a b",description:"<p>Replace the first occurrence of substring <code>a</code> with substring <code>b</code>.</p>\n"},sentence:{args:["str"],numArgs:1,example:"{{sentence 'hello world. goodbye world.'}} -> Hello world. Goodbye world.",description:"<p>Sentence case the given string</p>\n"},snakecase:{args:["string"],numArgs:1,example:"{{snakecase 'a-b-c d_e'}} -> a_b_c_d_e",description:"<p>snake_case the characters in the given <code>string</code>.</p>\n"},split:{args:["string"],numArgs:1,example:"{{split 'a,b,c'}} -> ['a', 'b', 'c']",description:"<p>Split <code>string</code> by the given <code>character</code>.</p>\n"},startsWith:{args:["prefix","testString","options"],numArgs:3,example:"{{#startsWith 'Goodbye' 'Hello, world!'}} Yep {{else}} Nope {{/startsWith}} -> Nope",description:"<p>Tests whether a string begins with the given prefix.</p>\n"},titleize:{args:["str"],numArgs:1,example:"{{#titleize 'this is title case' }} -> This Is Title Case",description:"<p>Title case the given string.</p>\n"},trim:{args:["string"],numArgs:1,example:"{{trim ' ABC ' }} -> ABC",description:"<p>Removes extraneous whitespace from the beginning and end of a string.</p>\n"},trimLeft:{args:["string"],numArgs:1,example:"{{trimLeft ' ABC ' }} -> 'ABC '",description:"<p>Removes extraneous whitespace from the beginning of a string.</p>\n"},trimRight:{args:["string"],numArgs:1,example:"{{trimRight ' ABC ' }} -> ' ABC '",description:"<p>Removes extraneous whitespace from the end of a string.</p>\n"},truncate:{args:["str","limit","suffix"],numArgs:3,example:"{{truncate 'foo bar baz' 7 }} -> foo bar",description:'<p>Truncate a string to the specified <code>length</code>. Also see <a href="#ellipsis">ellipsis</a>.</p>\n'},truncateWords:{args:["str","limit","suffix"],numArgs:3,example:"{{truncateWords 'foo bar baz' 1 }} -> foo",description:'<p>Truncate a string to have the specified number of words. Also see <a href="#truncate">truncate</a>.</p>\n'},upcase:{args:["string"],numArgs:1,example:"{{upcase 'aBcDef'}} -> ABCDEF",description:'<p>Uppercase all of the characters in the given string. Alias for <a href="#uppercase">uppercase</a>.</p>\n'},uppercase:{args:["str","options"],numArgs:2,example:"{{uppercase 'aBcDef'}} -> ABCDEF",description:"<p>Uppercase all of the characters in the given string. If used as a block helper it will uppercase the entire block. This helper does not support inverse blocks.</p>\n"}},comparison:{and:{args:["a","b","options"],numArgs:3,example:"{{#and great magnificent}}both{{else}}no{{/and}}",description:"<p>Helper that renders the block if <strong>both</strong> of the given values are truthy. If an inverse block is specified it will be rendered when falsy. Works as a block helper, inline helper or subexpression.</p>\n"},compare:{args:["a","operator","b","options"],numArgs:4,example:"{{compare 10 '<' 5 }} -> true",description:"<p>Render a block when a comparison of the first and third arguments returns true. The second argument is the [arithemetic operator][operators] to use. You may also optionally specify an inverse block to render when falsy.</p>\n"},contains:{args:["collection","value","[startIndex=0]","options"],numArgs:4,example:"{{#contains ['a', 'b', 'c'] 'd'}} This will not be rendered. {{else}} This will be rendered. {{/contains}}",description:"<p>Block helper that renders the block if <code>collection</code> has the given <code>value</code>, using strict equality (<code>===</code>) for comparison, otherwise the inverse block is rendered (if specified). If a <code>startIndex</code> is specified and is negative, it is used as the offset from the end of the collection.</p>\n"},default:{args:["value","defaultValue"],numArgs:2,example:"{{default null null 'default'}} -> default",description:"<p>Returns the first value that is not undefined, otherwise the 'default' value is returned.</p>\n"},eq:{args:["a","b","options"],numArgs:3,example:"{{#eq 3 3}} equal{{else}} not equal{{/eq}} -> equal",description:"<p>Block helper that renders a block if <code>a</code> is <strong>equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n"},gt:{args:["a","b","options"],numArgs:3,example:"{{#gt 4 3}} greater than{{else}} not greater than{{/gt}} -> greater than",description:"<p>Block helper that renders a block if <code>a</code> is <strong>greater than</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n"},gte:{args:["a","b","options"],numArgs:3,example:"{{#gte 4 3}} greater than or equal{{else}} not greater than{{/gte}} -> greater than or equal",description:"<p>Block helper that renders a block if <code>a</code> is <strong>greater than or equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n"},has:{args:["val","pattern","options"],numArgs:3,example:"{{#has 'foobar' 'foo'}} has it{{else}} doesn't{{/has}} -> has it",description:"<p>Block helper that renders a block if <code>value</code> has <code>pattern</code>. If an inverse block is specified it will be rendered when falsy.</p>\n"},isFalsey:{args:["val","options"],numArgs:2,example:"{{isFalsey '' }} -> true",description:"<p>Returns true if the given <code>value</code> is falsey. Uses the [falsey][] library for comparisons. Please see that library for more information or to report bugs with this helper.</p>\n"},isTruthy:{args:["val","options"],numArgs:2,example:"{{isTruthy '12' }} -> true",description:"<p>Returns true if the given <code>value</code> is truthy. Uses the [falsey][] library for comparisons. Please see that library for more information or to report bugs with this helper.</p>\n"},ifEven:{args:["number","options"],numArgs:2,example:"{{#ifEven 2}} even {{else}} odd {{/ifEven}} -> even",description:"<p>Return true if the given value is an even number.</p>\n"},ifNth:{args:["a","b","options"],numArgs:3,example:"{{#ifNth 10 2}} remainder {{else}} no remainder {{/ifNth}} -> remainder",description:"<p>Conditionally renders a block if the remainder is zero when <code>a</code> operand is divided by <code>b</code>. If an inverse block is specified it will be rendered when the remainder is <strong>not zero</strong>.</p>\n"},ifOdd:{args:["value","options"],numArgs:2,example:"{{#ifOdd 3}} odd {{else}} even {{/ifOdd}} -> odd",description:"<p>Block helper that renders a block if <code>value</code> is <strong>an odd number</strong>. If an inverse block is specified it will be rendered when falsy.</p>\n"},is:{args:["a","b","options"],numArgs:3,example:"{{#is 3 3}} is {{else}} is not {{/is}} -> is",description:'<p>Block helper that renders a block if <code>a</code> is <strong>equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. Similar to <a href="#eq">eq</a> but does not do strict equality.</p>\n'},isnt:{args:["a","b","options"],numArgs:3,example:"{{#isnt 3 3}} isnt {{else}} is {{/isnt}} -> is",description:'<p>Block helper that renders a block if <code>a</code> is <strong>not equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. Similar to <a href="#unlesseq">unlessEq</a> but does not use strict equality for comparisons.</p>\n'},lt:{args:["context","options"],numArgs:2,example:"{{#lt 2 3}} less than {{else}} more than or equal {{/lt}} -> less than",description:"<p>Block helper that renders a block if <code>a</code> is <strong>less than</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n"},lte:{args:["a","b","options"],numArgs:3,example:"{{#lte 2 3}} less than or equal {{else}} more than {{/lte}} -> less than or equal",description:"<p>Block helper that renders a block if <code>a</code> is <strong>less than or equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n"},neither:{args:["a","b","options"],numArgs:3,example:"{{#neither null null}} both falsey {{else}} both not falsey {{/neither}} -> both falsey",description:"<p>Block helper that renders a block if <strong>neither of</strong> the given values are truthy. If an inverse block is specified it will be rendered when falsy.</p>\n"},not:{args:["val","options"],numArgs:2,example:"{{#not undefined }} falsey {{else}} not falsey {{/not}} -> falsey",description:"<p>Returns true if <code>val</code> is falsey. Works as a block or inline helper.</p>\n"},or:{args:["arguments","options"],numArgs:2,example:"{{#or 1 2 undefined }} at least one truthy {{else}} all falsey {{/or}} -> at least one truthy",description:"<p>Block helper that renders a block if <strong>any of</strong> the given values is truthy. If an inverse block is specified it will be rendered when falsy.</p>\n"},unlessEq:{args:["a","b","options"],numArgs:3,example:"{{#unlessEq 2 1 }} not equal {{else}} equal {{/unlessEq}} -> not equal",description:"<p>Block helper that always renders the inverse block <strong>unless <code>a</code> is equal to <code>b</code></strong>.</p>\n"},unlessGt:{args:["a","b","options"],numArgs:3,example:"{{#unlessGt 20 1 }} not greater than {{else}} greater than {{/unlessGt}} -> greater than",description:"<p>Block helper that always renders the inverse block <strong>unless <code>a</code> is greater than <code>b</code></strong>.</p>\n"},unlessLt:{args:["a","b","options"],numArgs:3,example:"{{#unlessLt 20 1 }} greater than or equal {{else}} less than {{/unlessLt}} -> greater than or equal",description:"<p>Block helper that always renders the inverse block <strong>unless <code>a</code> is less than <code>b</code></strong>.</p>\n"},unlessGteq:{args:["a","b","options"],numArgs:3,example:"{{#unlessGteq 20 1 }} less than {{else}} greater than or equal to {{/unlessGteq}} -> greater than or equal to",description:"<p>Block helper that always renders the inverse block <strong>unless <code>a</code> is greater than or equal to <code>b</code></strong>.</p>\n"},unlessLteq:{args:["a","b","options"],numArgs:3,example:"{{#unlessLteq 20 1 }} greater than {{else}} less than or equal to {{/unlessLteq}} -> greater than",description:"<p>Block helper that always renders the inverse block <strong>unless <code>a</code> is less than or equal to <code>b</code></strong>.</p>\n"}},object:{extend:{args:["objects"],numArgs:1,description:"<p>Extend the context with the properties of other objects. A shallow merge is performed to avoid mutating the context.</p>\n"},forIn:{args:["context","options"],numArgs:2,description:"<p>Block helper that iterates over the properties of an object, exposing each key and value on the context.</p>\n"},forOwn:{args:["obj","options"],numArgs:2,description:"<p>Block helper that iterates over the <strong>own</strong> properties of an object, exposing each key and value on the context.</p>\n"},toPath:{args:["prop"],numArgs:1,description:"<p>Take arguments and, if they are string or number, convert them to a dot-delineated object property path.</p>\n"},get:{args:["prop","context","options"],numArgs:3,description:"<p>Use property paths (<code>a.b.c</code>) to get a value or nested value from the context. Works as a regular helper or block helper.</p>\n"},getObject:{args:["prop","context"],numArgs:2,description:"<p>Use property paths (<code>a.b.c</code>) to get an object from the context. Differs from the <code>get</code> helper in that this helper will return the actual object, including the given property key. Also, this helper does not work as a block helper.</p>\n"},hasOwn:{args:["key","context"],numArgs:2,description:"<p>Return true if <code>key</code> is an own, enumerable property of the given <code>context</code> object.</p>\n"},isObject:{args:["value"],numArgs:1,description:"<p>Return true if <code>value</code> is an object.</p>\n"},JSONparse:{args:["string"],numArgs:1,description:"<p>Parses the given string using <code>JSON.parse</code>.</p>\n"},JSONstringify:{args:["obj"],numArgs:1,description:"<p>Stringify an object using <code>JSON.stringify</code>.</p>\n"},merge:{args:["object","objects"],numArgs:2,description:"<p>Deeply merge the properties of the given <code>objects</code> with the context object.</p>\n"},parseJSON:{args:["string"],numArgs:1,description:"<p>Parses the given string using <code>JSON.parse</code>.</p>\n"},pick:{args:["properties","context","options"],numArgs:3,description:"<p>Pick properties from the context object.</p>\n"},stringify:{args:["obj"],numArgs:1,description:"<p>Stringify an object using <code>JSON.stringify</code>.</p>\n"}},date:{date:{args:["datetime","format"],numArgs:2,example:'{{date now "DD-MM-YYYY" "America/New_York" }} -> 21-01-2021',description:"<p>Format a date using moment.js date formatting - the timezone is optional and uses the tz database.</p>\n"},duration:{args:["time","durationType"],numArgs:2,example:'{{duration timeLeft "seconds"}} -> a few seconds',description:"<p>Produce a humanized duration left/until given an amount of time and the type of time measurement.</p>\n"}}};const{getHelperList:Dz}=yz;function Hz(e){if(!e||"string"!=typeof e)return e;let t=!1;return[",","{",":"].forEach((r=>{e.includes(r)&&(t=!0)})),e.startsWith("[")&&t?e:isNaN(parseFloat(e))?e.startsWith("'")||e.startsWith('"')?e:`$("${e}")`:e}function Oz(e,t){function r(){return e.map((e=>e.startsWith("helper")?e:Hz(e))).join(", ")}return t?0===e.length?t:`${t}, ${r()}`:e.length>1?`${r()}`:r()}function Pz(e){const t=[];let r=null,n=null,i=0;function a(e){const r=["]"];for(;-1!==r.indexOf(e.substring(0,1));)e=e.substring(1,e.length);e.length>0&&t.push(e.trim())}const o=["[","'",'"'];for(let t=0;t<e.length;t++){const s=e[t];-1!==o.indexOf(s)&&null==r?(r=t,n="["===s?"]":s):s===n&&null!=r&&"."!==e[t+1]?(a(e.substring(r,t+1)),r=null,n=null,i=t+1):null==r&&" "===s&&(a(e.substring(i,t)),i=t)}return e.startsWith("[")&&0!==t.length||i===e.length-1||a(e.substring(i,e.length)),t}var Rz={convertHBSBlock:(e,t)=>{const r="{"===e[2]?3:2,n=function(e){let t=[];for(;e.length;){const r=e.lastIndexOf("("),n=e.indexOf(")");let i;if(-1===r||-1===n)i=e.trim(),e="";else{const t=e.substring(r,n+1);i=t.substring(1,t.length-1).trim(),e=e.slice(0,r)+e.slice(r+t.length+1,e.length)}t.push(i)}return t}(e=e.substring(r,e.length-r).trim());let i=null;const a=Dz();for(let e of n){const t=Pz(e);if(i||t.length>1){const e=t.splice(0,1);a[e]&&(i=`helpers.${e}(${Oz(t,i)})`)}else i=Hz(t[0])}return{variable:`var${t}`,value:i}}},Vz=Mc((function(e,t){const{registerAll:r,registerMinimum:n}=yz,{atob:i,btoa:a}=tz,{FIND_HBS_REGEX:o,FIND_ANY_HBS_REGEX:s,findDoubleHbsInstances:l}=tz,{convertHBSBlock:c}=Rz,u=Op.create();r(u);const p=Op.create();n(p);const d={noHelpers:!1,cacheTemplates:!1,noEscaping:!1,escapeNewlines:!1,noFinalise:!1};function h(e){try{JSON.stringify(e)}catch(e){throw"Unable to process inputs to JSON, cannot recurse"}}let m={};function g(e,r){r={...d,...r};const n=`${e}-${JSON.stringify(r)}`;if(r.cacheTemplates&&m[n])return m[n];e=((e,t)=>{let r=Sz.processors;return t.noFinalise&&(r=r.filter((e=>e.name!==Sz.PreprocessorNames.FINALISE))),Iz(e,r,t)})(e,r),r.noEscaping&&(e=t.disableEscaping(e));const i=(r.noHelpers?p:u).compile(e,{strict:!1});return m[n]=i,i}e.exports.processObject=async(t,r,n)=>{h(t);for(let i of Object.keys(t||{}))if(null!=t[i]){let a=t[i];"string"==typeof a?t[i]=await e.exports.processString(t[i],r,n):"object"==typeof a&&(t[i]=await e.exports.processObject(t[i],r,n))}return t},e.exports.processString=async(t,r,n)=>e.exports.processStringSync(t,r,n),e.exports.processObjectSync=(t,r,n)=>{h(t);for(let i of Object.keys(t||{})){let a=t[i];"string"==typeof a?t[i]=e.exports.processStringSync(t[i],r,n):"object"==typeof a&&(t[i]=e.exports.processObjectSync(t[i],r,n))}return t},e.exports.processStringSync=(e,r,n)=>{const i=e;if("string"!=typeof e)throw"Cannot process non-string types.";function a(e){const t=g(e,n),i=1e3*Math.floor(Date.now()/1e3);return(e=>Iz(e,Lz.processors))(t({now:new Date(i).toISOString(),__opts:{...n,input:e},...r}))}try{if(n&&n.onlyFound){const r=t.findHBSBlocks(e);for(let t of r){const r=a(t);e=e.replace(t,r)}return e}return a(e)}catch(e){return i}},e.exports.disableEscaping=e=>{const t=l(e);if(null==t)return e;const r=[...new Set(t)];for(let t of r){const r=new RegExp(`${t}(?!})`,"g");e=e.replace(r,`{${t}}`)}return e},e.exports.makePropSafe=e=>`[${e}]`.replace("[[","[").replace("]]","]"),e.exports.isValid=(e,t)=>{const r=["string","number","object","array","cannot read property","undefined","json at position 0"],n=["expecting '"],i={};try{return g(e,{...t,noFinalise:!0})(i),!0}catch(e){const t=e&&e.message?e.message:e;if(!t)return!1;const i=n.some((e=>t.toLowerCase().includes(e)));return r.some((e=>t.toLowerCase().includes(e)))&&!i}},e.exports.getManifest=()=>Bz,e.exports.isJSBinding=t=>null!=e.exports.decodeJSBinding(t),e.exports.encodeJSBinding=e=>`{{ js "${a(e)}" }}`,e.exports.decodeJSBinding=e=>{if(!e||"string"!=typeof e)return null;if(!e.trim().startsWith("{{ js "))return null;const t=new RegExp(/{{ js "(.*)" }}/),r=e.match(t);return!r||r.length<2?null:i(r[1])},e.exports.doesContainStrings=(e,r)=>{let n=new RegExp(o),i=e.match(n);if(null==i)return!1;for(let e of i){let n=e;t.isJSBinding(e)&&(n=t.decodeJSBinding(e));let i=!0;for(let e of r)n.includes(e)||(i=!1);if(i)return!0}return!1},e.exports.findHBSBlocks=e=>{if(!e||"string"!=typeof e)return[];let t=new RegExp(s),r=e.match(t);return null==r?[]:r},e.exports.doesContainString=(e,r)=>t.doesContainStrings(e,[r]),e.exports.convertToJS=e=>{const r=t.findHBSBlocks(e);let n="return `",i=null;const a={};0===r.length&&(n+=e);let o=1;for(let t of r){let r=e;i&&(r=r.split(i)[1]),r=r.split(t)[0],i=t;const{variable:s,value:l}=c(t,o++);a[s]=l,n+=`${r.split()}\${${s}}`}let s="";for(let[e,t]of Object.entries(a))s+=`const ${e} = ${t};\n`;return n+="`;",`${s}${n}`},e.exports.FIND_ANY_HBS_REGEX=s}));Vz.isValid;const Nz=Vz.makePropSafe;Vz.getManifest,Vz.isJSBinding,Vz.encodeJSBinding,Vz.decodeJSBinding;const Fz=Vz.processStringSync,jz=Vz.processObjectSync;Vz.processString,Vz.processObject,Vz.doesContainStrings,Vz.doesContainString,Vz.disableEscaping,Vz.findHBSBlocks,Vz.convertToJS,Vz.FIND_ANY_HBS_REGEX,process&&!process.env.NO_JS&&vz(((e,t)=>(t={...t,alert:void 0,setInterval:void 0,setTimeout:void 0},Ac.createContext(t),Ac.runInNewContext(e,t,{timeout:1e3}))));function qz(e){let t,r,n;var i=e[3];function a(e){return{props:{row:e[0],schema:e[1],value:e[4],$$slots:{default:[Uz]},$$scope:{ctx:e}}}}return i&&(r=new i(a(e)),r.$on("clickrelationship",e[9]),r.$on("buttonclick",e[10])),{c(){t=Y("div"),r&&It(r.$$.fragment),fe(t,"--max-cell-width",e[1].width?"none":"200px"),ie(t,"class","svelte-16j2cvj")},m(e,i){U(e,t,i),r&&Bt(r,t,null),n=!0},p(e,o){const s={};if(1&o&&(s.row=e[0]),2&o&&(s.schema=e[1]),16&o&&(s.value=e[4]),2048&o&&(s.$$scope={dirty:o,ctx:e}),i!==(i=e[3])){if(r){ot();const e=r;ct(e.$$.fragment,1,0,(()=>{Dt(e,1)})),st()}i?(r=new i(a(e)),r.$on("clickrelationship",e[9]),r.$on("buttonclick",e[10]),It(r.$$.fragment),lt(r.$$.fragment,1),Bt(r,t,null)):r=null}else i&&r.$set(s);(!n||2&o)&&fe(t,"--max-cell-width",e[1].width?"none":"200px")},i(e){n||(r&<(r.$$.fragment,e),n=!0)},o(e){r&&ct(r.$$.fragment,e),n=!1},d(e){e&&X(t),r&&Dt(r)}}}function Uz(e){let t;const r=e[8].default,n=f(r,e,e[11],null);return{c(){n&&n.c()},m(e,r){n&&n.m(e,r),t=!0},p(e,i){n&&n.p&&(!t||2048&i)&&y(n,r,e,e[11],t?b(r,e[11],i,null):x(e[11]),null)},i(e){t||(lt(n,e),t=!0)},o(e){ct(n,e),t=!1},d(e){n&&n.d(e)}}}function Wz(e){let t,r,n=e[3]&&(e[2]||null!=e[4]&&""!==e[4])&&qz(e);return{c(){n&&n.c(),t=Q()},m(e,i){n&&n.m(e,i),U(e,t,i),r=!0},p(e,[r]){e[3]&&(e[2]||null!=e[4]&&""!==e[4])?n?(n.p(e,r),28&r&<(n,1)):(n=qz(e),n.c(),lt(n,1),n.m(t.parentNode,t)):n&&(ot(),ct(n,1,1,(()=>{n=null})),st())},i(e){r||(lt(n),r=!0)},o(e){ct(n),r=!1},d(e){n&&n.d(e),e&&X(t)}}}function Xz(e,t,r){let n,i,a,o,{$$slots:s={},$$scope:l}=t,{row:c}=t,{schema:u}=t,{value:p}=t,{customRenderers:d=[]}=t;const h={boolean:Il,datetime:Ol,link:Ul,attachment:nc,string:$l,options:$l,number:$l,longform:$l,array:uc,internal:hc,bb_reference:Ul};return e.$$set=e=>{"row"in e&&r(0,c=e.row),"schema"in e&&r(1,u=e.schema),"value"in e&&r(5,p=e.value),"customRenderers"in e&&r(6,d=e.customRenderers),"$$scope"in e&&r(11,l=e.$$scope)},e.$$.update=()=>{2&e.$$.dirty&&r(7,n=(e=>"datetime"===e?.type&&e?.template?"string":e?.type||"string")(u)),66&e.$$.dirty&&r(2,i=d?.find((e=>e.column===u?.name))),132&e.$$.dirty&&r(3,o=i?.component??h[n]??$l),34&e.$$.dirty&&r(4,a=((e,t)=>t?Fz(t,{value:e}):e)(p,u.template))},[c,u,i,o,a,p,d,n,s,function(t){Ve.call(this,e,t)},function(t){Ve.call(this,e,t)},l]}Gt("div.svelte-16j2cvj{display:contents}");class Gz extends Ot{constructor(e){super(),Ht(this,e,Xz,Wz,c,{row:0,schema:1,value:5,customRenderers:6})}}function Yz(e){let t,r;return t=new So({props:{value:e[0]}}),{c(){It(t.$$.fragment)},m(e,n){Bt(t,e,n),r=!0},p(e,r){const n={};1&r&&(n.value=e[0]),t.$set(n)},i(e){r||(lt(t.$$.fragment,e),r=!0)},o(e){ct(t.$$.fragment,e),r=!1},d(e){Dt(t,e)}}}function Zz(e){let t,r;return t=new eo({props:{size:"S",$$slots:{default:[Kz]},$$scope:{ctx:e}}}),t.$on("click",(function(){l(e[1])&&e[1].apply(this,arguments)})),{c(){It(t.$$.fragment)},m(e,n){Bt(t,e,n),r=!0},p(r,n){e=r;const i={};16&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i)},i(e){r||(lt(t.$$.fragment,e),r=!0)},o(e){ct(t.$$.fragment,e),r=!1},d(e){Dt(t,e)}}}function Kz(e){let t;return{c(){t=K("Edit")},m(e,r){U(e,t,r)},d(e){e&&X(t)}}}function Jz(e){let t,r,n,i=e[2]&&Yz(e),a=e[3]&&Zz(e);return{c(){t=Y("div"),i&&i.c(),r=J(),a&&a.c(),ie(t,"class","svelte-1fa8hd3")},m(e,o){U(e,t,o),i&&i.m(t,null),V(t,r),a&&a.m(t,null),n=!0},p(e,[n]){e[2]?i?(i.p(e,n),4&n&<(i,1)):(i=Yz(e),i.c(),lt(i,1),i.m(t,r)):i&&(ot(),ct(i,1,1,(()=>{i=null})),st()),e[3]?a?(a.p(e,n),8&n&<(a,1)):(a=Zz(e),a.c(),lt(a,1),a.m(t,null)):a&&(ot(),ct(a,1,1,(()=>{a=null})),st())},i(e){n||(lt(i),lt(a),n=!0)},o(e){ct(i),ct(a),n=!1},d(e){e&&X(t),i&&i.d(),a&&a.d()}}}function Qz(e,t,r){let{selected:n}=t,{onEdit:i}=t,{allowSelectRows:a=!1}=t,{allowEditRows:o=!1}=t;return e.$$set=e=>{"selected"in e&&r(0,n=e.selected),"onEdit"in e&&r(1,i=e.onEdit),"allowSelectRows"in e&&r(2,a=e.allowSelectRows),"allowEditRows"in e&&r(3,o=e.allowEditRows)},[n,i,a,o]}Gt("div.svelte-1fa8hd3{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:var(--spacing-m)}");class ek extends Ot{constructor(e){super(),Ht(this,e,Qz,Jz,c,{selected:0,onEdit:1,allowSelectRows:2,allowEditRows:3})}}Gt(".wrapper.svelte-rzhjll.svelte-rzhjll{position:relative;--table-bg:var(--spectrum-global-color-gray-50);--table-border:1px solid var(--spectrum-alias-border-color-mid);--cell-padding:var(--spectrum-global-dimension-size-250);overflow:auto}.wrapper--quiet.svelte-rzhjll.svelte-rzhjll{--table-bg:var(--spectrum-alias-background-color-transparent)}.wrapper--compact.svelte-rzhjll.svelte-rzhjll{--cell-padding:var(--spectrum-global-dimension-size-150)}.loading.svelte-rzhjll.svelte-rzhjll{display:flex;align-items:center;min-height:100px;justify-content:center}.spectrum-Table.svelte-rzhjll.svelte-rzhjll{width:100%;border-radius:0;display:grid;overflow:auto}.spectrum-Table.no-scroll.svelte-rzhjll.svelte-rzhjll{overflow:visible}.spectrum-Table-head.svelte-rzhjll.svelte-rzhjll{display:contents}.spectrum-Table-head.svelte-rzhjll>.svelte-rzhjll:first-child{border-left:1px solid transparent;padding-left:var(--cell-padding)}.spectrum-Table-head.svelte-rzhjll>.svelte-rzhjll:last-child{border-right:1px solid transparent;padding-right:var(--cell-padding)}.spectrum-Table-headCell.svelte-rzhjll.svelte-rzhjll{height:var(--header-height);position:sticky;top:0;text-overflow:ellipsis;white-space:nowrap;background-color:var(--spectrum-alias-background-color-secondary);z-index:2;border-bottom:var(--table-border);padding:0 calc(var(--cell-padding) / 1.33);display:flex;flex-direction:row;justify-content:flex-start;align-items:center;user-select:none;border-top:var(--table-border)}.spectrum-Table-headCell.svelte-rzhjll.svelte-rzhjll:first-of-type{border-left:var(--table-border)}.spectrum-Table-headCell.svelte-rzhjll.svelte-rzhjll:last-of-type{border-right:var(--table-border)}.noBorderHeader.svelte-rzhjll.svelte-rzhjll{border-top:none !important;border-right:none !important;border-left:none !important}.noBorderCheckbox.svelte-rzhjll.svelte-rzhjll{border-top:none !important;border-right:none !important}.spectrum-Table-headCell--alignCenter.svelte-rzhjll.svelte-rzhjll{justify-content:center}.spectrum-Table-headCell--alignRight.svelte-rzhjll.svelte-rzhjll{justify-content:flex-end}.spectrum-Table-headCell--edit.svelte-rzhjll.svelte-rzhjll{position:sticky;left:0;z-index:3}.spectrum-Table-headCell.svelte-rzhjll .title.svelte-rzhjll{overflow:visible;text-overflow:ellipsis}.spectrum-Table-headCell.svelte-rzhjll:hover .spectrum-Table-editIcon.svelte-rzhjll{opacity:1;transition:opacity 0.2s ease}.spectrum-Table-headCell.svelte-rzhjll .spectrum-Icon.svelte-rzhjll{pointer-events:all;margin-left:var(\n --spectrum-table-header-sort-icon-gap,\n var(--spectrum-global-dimension-size-125)\n )}.spectrum-Table-editIcon.svelte-rzhjll.svelte-rzhjll,.spectrum-Table-autoIcon.svelte-rzhjll.svelte-rzhjll{width:var(--spectrum-global-dimension-size-150);height:var(--spectrum-global-dimension-size-150)}.spectrum-Table-editIcon.svelte-rzhjll.svelte-rzhjll{opacity:0}.spectrum-Table-row.svelte-rzhjll.svelte-rzhjll{display:contents;cursor:auto}.spectrum-Table-row.clickable.svelte-rzhjll.svelte-rzhjll{cursor:pointer}.spectrum-Table-row.clickable.svelte-rzhjll:hover .spectrum-Table-cell.svelte-rzhjll{background-color:var(--spectrum-global-color-gray-100)}.wrapper--quiet.svelte-rzhjll .spectrum-Table-row.svelte-rzhjll{border-left:none;border-right:none}.spectrum-Table-row.svelte-rzhjll>.svelte-rzhjll:first-child{border-left:var(--table-border);padding-left:var(--cell-padding)}.spectrum-Table-row.svelte-rzhjll>.svelte-rzhjll:last-child{border-right:var(--table-border);padding-right:var(--cell-padding)}.spectrum-Table-cell.svelte-rzhjll.svelte-rzhjll{flex:1 1 auto;padding:0 calc(var(--cell-padding) / 1.33);border-top:none;border-bottom:none;border-radius:0;text-overflow:ellipsis;white-space:nowrap;height:var(--row-height);display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:4px;border-bottom:1px solid var(--spectrum-alias-border-color-mid);background-color:var(--table-bg);z-index:auto;transition:background-color 130ms ease-out}.spectrum-Table-cell--edit.svelte-rzhjll.svelte-rzhjll{position:sticky;left:0;z-index:2}.placeholder.svelte-rzhjll.svelte-rzhjll{display:flex;flex-direction:row;justify-content:center;align-items:center;border:var(--table-border);border-top:none;grid-column:1 / -1;background-color:var(--table-bg);padding:40px}.placeholder--no-fields.svelte-rzhjll.svelte-rzhjll{border-top:var(--table-border)}.placeholder--custom.svelte-rzhjll.svelte-rzhjll{justify-content:flex-start}.wrapper--quiet.svelte-rzhjll .placeholder.svelte-rzhjll{border-left:none;border-right:none}.placeholder-content.svelte-rzhjll.svelte-rzhjll{display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(\n --spectrum-table-cell-text-color,\n var(--spectrum-alias-text-color)\n )}.placeholder-content.svelte-rzhjll div.svelte-rzhjll{margin-top:10px;font-size:var(\n --spectrum-table-cell-text-size,\n var(--spectrum-alias-font-size-default)\n );text-align:center}");const tk=e=>({}),rk=e=>({});function nk(e,t,r){const n=e.slice();return n[59]=t[r],n}function ik(e,t,r){const n=e.slice();return n[62]=t[r],n}function ak(e,t,r){const n=e.slice();return n[62]=t[r],n}const ok=e=>({}),sk=e=>({});function lk(e){let t,r,n,i,a,o,s=e[18].length&&uk(e);const l=[yk,bk],c=[];function u(e,t){return e[23]?.length?0:1}return n=u(e),i=c[n]=l[n](e),{c(){t=Y("div"),s&&s.c(),r=J(),i.c(),ie(t,"class","spectrum-Table svelte-rzhjll"),ie(t,"style",a=`${e[24]}${e[22]}`),ye(t,"no-scroll",!e[2])},m(e,i){U(e,t,i),s&&s.m(t,null),V(t,r),c[n].m(t,null),o=!0},p(e,p){e[18].length?s?(s.p(e,p),262144&p[0]&<(s,1)):(s=uk(e),s.c(),lt(s,1),s.m(t,r)):s&&(ot(),ct(s,1,1,(()=>{s=null})),st());let d=n;n=u(e),n===d?c[n].p(e,p):(ot(),ct(c[d],1,1,(()=>{c[d]=null})),st(),i=c[n],i?i.p(e,p):(i=c[n]=l[n](e),i.c()),lt(i,1),i.m(t,null)),(!o||20971520&p[0]&&a!==(a=`${e[24]}${e[22]}`))&&ie(t,"style",a),4&p[0]&&ye(t,"no-scroll",!e[2])},i(e){o||(lt(s),lt(i),o=!0)},o(e){ct(s),ct(i),o=!1},d(e){e&&X(t),s&&s.d(),c[n].d()}}}function ck(e){let t,r;const n=e[40].loadingIndicator,i=f(n,e,e[51],sk),a=i||function(e){let t,r;return t=new kn({}),{c(){It(t.$$.fragment)},m(e,n){Bt(t,e,n),r=!0},i(e){r||(lt(t.$$.fragment,e),r=!0)},o(e){ct(t.$$.fragment,e),r=!1},d(e){Dt(t,e)}}}();return{c(){t=Y("div"),a&&a.c(),ie(t,"class","loading svelte-rzhjll"),ie(t,"style",e[24])},m(e,n){U(e,t,n),a&&a.m(t,null),r=!0},p(e,a){i&&i.p&&(!r||1048576&a[1])&&y(i,n,e,e[51],r?b(n,e[51],a,ok):x(e[51]),sk),(!r||16777216&a[0])&&ie(t,"style",e[24])},i(e){r||(lt(a,e),r=!0)},o(e){ct(a,e),r=!1},d(e){e&&X(t),a&&a.d(e)}}}function uk(e){let t,r,n,i=e[17]&&pk(e),a=e[18],o=[];for(let t=0;t<a.length;t+=1)o[t]=vk(ak(e,a,t));return{c(){t=Y("div"),i&&i.c(),r=J();for(let e=0;e<o.length;e+=1)o[e].c();ie(t,"class","spectrum-Table-head svelte-rzhjll")},m(e,a){U(e,t,a),i&&i.m(t,null),V(t,r);for(let e=0;e<o.length;e+=1)o[e].m(t,null);n=!0},p(e,n){if(e[17]?i?(i.p(e,n),131072&n[0]&<(i,1)):(i=pk(e),i.c(),lt(i,1),i.m(t,r)):i&&(ot(),ct(i,1,1,(()=>{i=null})),st()),470077569&n[0]){let r;for(a=e[18],r=0;r<a.length;r+=1){const i=ak(e,a,r);o[r]?o[r].p(i,n):(o[r]=vk(i),o[r].c(),o[r].m(t,null))}for(;r<o.length;r+=1)o[r].d(1);o.length=a.length}},i(e){n||(lt(i),n=!0)},o(e){ct(i),n=!1},d(e){e&&X(t),i&&i.d(),G(o,e)}}}function pk(e){let t,r,n,i;const a=[hk,dk],o=[];function s(e,t){return e[5]?0:1}return r=s(e),n=o[r]=a[r](e),{c(){t=Y("div"),n.c(),ie(t,"class","spectrum-Table-headCell spectrum-Table-headCell--divider spectrum-Table-headCell--edit svelte-rzhjll"),ye(t,"noBorderHeader",!e[12])},m(e,n){U(e,t,n),o[r].m(t,null),i=!0},p(e,i){let l=r;r=s(e),r===l?o[r].p(e,i):(ot(),ct(o[l],1,1,(()=>{o[l]=null})),st(),n=o[r],n?n.p(e,i):(n=o[r]=a[r](e),n.c()),lt(n,1),n.m(t,null)),4096&i[0]&&ye(t,"noBorderHeader",!e[12])},i(e){i||(lt(n),i=!0)},o(e){ct(n),i=!1},d(e){e&&X(t),o[r].d()}}}function dk(e){let r;return{c(){r=K("Edit")},m(e,t){U(e,r,t)},p:t,i:t,o:t,d(e){e&&X(r)}}}function hk(e){let t,r,n;function i(t){e[41](t)}let a={};return void 0!==e[20]&&(a.value=e[20]),t=new So({props:a}),Fe.push((()=>Et(t,"value",i))),t.$on("change",e[31]),{c(){It(t.$$.fragment)},m(e,r){Bt(t,e,r),n=!0},p(e,n){const i={};!r&&1048576&n[0]&&(r=!0,i.value=e[20],Ze((()=>r=!1))),t.$set(i)},i(e){n||(lt(t.$$.fragment,e),n=!0)},o(e){ct(t.$$.fragment,e),n=!1},d(e){Dt(t,e)}}}function mk(e){let t,r;return{c(){t=Z("svg"),r=Z("use"),se(r,"xlink:href","#spectrum-icon-18-MagicWand"),ie(t,"class","spectrum-Icon spectrum-Table-autoIcon svelte-rzhjll"),ie(t,"focusable","false")},m(e,n){U(e,t,n),V(t,r)},d(e){e&&X(t)}}}function gk(e){let t,r;return{c(){t=Z("svg"),r=Z("use"),se(r,"xlink:href","#spectrum-css-icon-Arrow100"),ie(t,"class","spectrum-Icon spectrum-UIIcon-ArrowDown100 spectrum-Table-sortedIcon svelte-rzhjll"),ie(t,"focusable","false"),ie(t,"aria-hidden","true")},m(e,n){U(e,t,n),V(t,r)},d(e){e&&X(t)}}}function fk(e){let t,r,n,i;function a(...t){return e[42](e[62],...t)}return{c(){t=Z("svg"),r=Z("use"),se(r,"xlink:href","#spectrum-icon-18-Edit"),ie(t,"class","spectrum-Icon spectrum-Table-editIcon svelte-rzhjll"),ie(t,"focusable","false")},m(e,o){U(e,t,o),V(t,r),n||(i=ee(t,"click",a),n=!0)},p(t,r){e=t},d(e){e&&X(t),n=!1,i()}}}function vk(e){let t,r,n,i,a,o,s,l,c,u=e[27](e[0][e[62]])+"",p=e[0][e[62]]?.autocolumn&&mk(),d=e[14]===e[62]&&gk(),h=e[7]&&!1!==e[0][e[62]]?.editable&&fk(e);function m(){return e[43](e[62])}return{c(){t=Y("div"),r=Y("div"),n=K(u),i=J(),p&&p.c(),a=J(),d&&d.c(),o=J(),h&&h.c(),s=J(),ie(r,"class","title svelte-rzhjll"),ie(t,"class","spectrum-Table-headCell svelte-rzhjll"),ye(t,"noBorderHeader",!e[12]),ye(t,"spectrum-Table-headCell--alignCenter","Center"===e[0][e[62]].align),ye(t,"spectrum-Table-headCell--alignRight","Right"===e[0][e[62]].align),ye(t,"is-sortable",!1!==e[0][e[62]].sortable),ye(t,"is-sorted-desc",e[14]===e[62]&&"Descending"===e[15]),ye(t,"is-sorted-asc",e[14]===e[62]&&"Ascending"===e[15])},m(e,u){U(e,t,u),V(t,r),V(r,n),V(t,i),p&&p.m(t,null),V(t,a),d&&d.m(t,null),V(t,o),h&&h.m(t,null),V(t,s),l||(c=ee(t,"click",m),l=!0)},p(r,i){e=r,262145&i[0]&&u!==(u=e[27](e[0][e[62]])+"")&&me(n,u),e[0][e[62]]?.autocolumn?p||(p=mk(),p.c(),p.m(t,a)):p&&(p.d(1),p=null),e[14]===e[62]?d||(d=gk(),d.c(),d.m(t,o)):d&&(d.d(1),d=null),e[7]&&!1!==e[0][e[62]]?.editable?h?h.p(e,i):(h=fk(e),h.c(),h.m(t,s)):h&&(h.d(1),h=null),4096&i[0]&&ye(t,"noBorderHeader",!e[12]),262145&i[0]&&ye(t,"spectrum-Table-headCell--alignCenter","Center"===e[0][e[62]].align),262145&i[0]&&ye(t,"spectrum-Table-headCell--alignRight","Right"===e[0][e[62]].align),262145&i[0]&&ye(t,"is-sortable",!1!==e[0][e[62]].sortable),311296&i[0]&&ye(t,"is-sorted-desc",e[14]===e[62]&&"Descending"===e[15]),311296&i[0]&&ye(t,"is-sorted-asc",e[14]===e[62]&&"Ascending"===e[15])},d(e){e&&X(t),p&&p.d(),d&&d.d(),h&&h.d(),l=!1,c()}}}function bk(e){let t,r,n,i;const a=[wk,xk],o=[];function s(e,t){return e[11]?0:1}return r=s(e),n=o[r]=a[r](e),{c(){t=Y("div"),n.c(),ie(t,"class","placeholder svelte-rzhjll"),ye(t,"placeholder--custom",e[11]),ye(t,"placeholder--no-fields",!e[18]?.length)},m(e,n){U(e,t,n),o[r].m(t,null),i=!0},p(e,i){let l=r;r=s(e),r===l?o[r].p(e,i):(ot(),ct(o[l],1,1,(()=>{o[l]=null})),st(),n=o[r],n?n.p(e,i):(n=o[r]=a[r](e),n.c()),lt(n,1),n.m(t,null)),2048&i[0]&&ye(t,"placeholder--custom",e[11]),262144&i[0]&&ye(t,"placeholder--no-fields",!e[18]?.length)},i(e){i||(lt(n),i=!0)},o(e){ct(n),i=!1},d(e){e&&X(t),o[r].d()}}}function yk(e){let t,r,n=e[23],i=[];for(let t=0;t<n.length;t+=1)i[t]=Ck(nk(e,n,t));const a=e=>ct(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=Q()},m(e,n){for(let t=0;t<i.length;t+=1)i[t].m(e,n);U(e,t,n),r=!0},p(e,r){if(1655051107&r[0]|1048576&r[1]){let o;for(n=e[23],o=0;o<n.length;o+=1){const a=nk(e,n,o);i[o]?(i[o].p(a,r),lt(i[o],1)):(i[o]=Ck(a),i[o].c(),lt(i[o],1),i[o].m(t.parentNode,t))}for(ot(),o=n.length;o<i.length;o+=1)a(o);st()}},i(e){if(!r){for(let e=0;e<n.length;e+=1)lt(i[e]);r=!0}},o(e){i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)ct(i[e]);r=!1},d(e){G(i,e),e&&X(t)}}}function xk(e){let r,n,i,a,o,s;return{c(){r=Y("div"),n=Z("svg"),i=Z("use"),a=J(),o=Y("div"),s=K(e[13]),se(i,"xlink:href","#spectrum-icon-18-Table"),ie(n,"class","spectrum-Icon spectrum-Icon--sizeXXL"),ie(n,"focusable","false"),ie(o,"class","svelte-rzhjll"),ie(r,"class","placeholder-content svelte-rzhjll")},m(e,t){U(e,r,t),V(r,n),V(n,i),V(r,a),V(r,o),V(o,s)},p(e,t){8192&t[0]&&me(s,e[13])},i:t,o:t,d(e){e&&X(r)}}}function wk(e){let t;const r=e[40].placeholder,n=f(r,e,e[51],rk);return{c(){n&&n.c()},m(e,r){n&&n.m(e,r),t=!0},p(e,i){n&&n.p&&(!t||1048576&i[1])&&y(n,r,e,e[51],t?b(r,e[51],i,tk):x(e[51]),rk)},i(e){t||(lt(n,e),t=!0)},o(e){ct(n,e),t=!1},d(e){n&&n.d(e)}}}function zk(e){let t,r,n,i,a;function o(...t){return e[44](e[59],...t)}function s(...t){return e[45](e[59],...t)}function l(...t){return e[46](e[59],...t)}return r=new ek({props:{data:e[59],selected:-1!==e[1].findIndex(o),onEdit:s,allowSelectRows:e[5],allowEditRows:e[6]}}),{c(){t=Y("div"),It(r.$$.fragment),ie(t,"class","spectrum-Table-cell spectrum-Table-cell--divider spectrum-Table-cell--edit svelte-rzhjll"),ye(t,"noBorderCheckbox",!e[12])},m(e,o){U(e,t,o),Bt(r,t,null),n=!0,i||(a=ee(t,"click",l),i=!0)},p(n,i){e=n;const a={};8388608&i[0]&&(a.data=e[59]),8388610&i[0]&&(a.selected=-1!==e[1].findIndex(o)),8388608&i[0]&&(a.onEdit=s),32&i[0]&&(a.allowSelectRows=e[5]),64&i[0]&&(a.allowEditRows=e[6]),r.$set(a),4096&i[0]&&ye(t,"noBorderCheckbox",!e[12])},i(e){n||(lt(r.$$.fragment,e),n=!0)},o(e){ct(r.$$.fragment,e),n=!1},d(e){e&&X(t),Dt(r),i=!1,a()}}}function kk(e){let t;const r=e[40].default,n=f(r,e,e[51],null);return{c(){n&&n.c()},m(e,r){n&&n.m(e,r),t=!0},p(e,i){n&&n.p&&(!t||1048576&i[1])&&y(n,r,e,e[51],t?b(r,e[51],i,null):x(e[51]),null)},i(e){t||(lt(n,e),t=!0)},o(e){ct(n,e),t=!1},d(e){n&&n.d(e)}}}function Ak(e){let t,r,n,i,a,o;function s(){return e[49](e[62],e[59])}return r=new Gz({props:{customRenderers:e[9],row:e[59],schema:e[0][e[62]],value:bi(e[59],e[62]),$$slots:{default:[kk]},$$scope:{ctx:e}}}),r.$on("clickrelationship",e[47]),r.$on("buttonclick",e[48]),{c(){t=Y("div"),It(r.$$.fragment),ie(t,"class","spectrum-Table-cell svelte-rzhjll"),ie(t,"style",n=e[21][e[62]]),ye(t,"spectrum-Table-cell--divider",!!e[0][e[62]].divider)},m(e,n){U(e,t,n),Bt(r,t,null),i=!0,a||(o=ee(t,"click",s),a=!0)},p(a,o){e=a;const s={};512&o[0]&&(s.customRenderers=e[9]),8388608&o[0]&&(s.row=e[59]),262145&o[0]&&(s.schema=e[0][e[62]]),8650752&o[0]&&(s.value=bi(e[59],e[62])),1048576&o[1]&&(s.$$scope={dirty:o,ctx:e}),r.$set(s),(!i||2359296&o[0]&&n!==(n=e[21][e[62]]))&&ie(t,"style",n),262145&o[0]&&ye(t,"spectrum-Table-cell--divider",!!e[0][e[62]].divider)},i(e){i||(lt(r.$$.fragment,e),i=!0)},o(e){ct(r.$$.fragment,e),i=!1},d(e){e&&X(t),Dt(r),a=!1,o()}}}function Ck(e){let t,r,n,i,a=e[17]&&zk(e),o=e[18],s=[];for(let t=0;t<o.length;t+=1)s[t]=Ak(ik(e,o,t));const l=e=>ct(s[e],1,1,(()=>{s[e]=null}));return{c(){t=Y("div"),a&&a.c(),r=J();for(let e=0;e<s.length;e+=1)s[e].c();n=J(),ie(t,"class","spectrum-Table-row svelte-rzhjll"),ye(t,"clickable",e[8])},m(e,o){U(e,t,o),a&&a.m(t,null),V(t,r);for(let e=0;e<s.length;e+=1)s[e].m(t,null);V(t,n),i=!0},p(e,i){if(e[17]?a?(a.p(e,i),131072&i[0]&<(a,1)):(a=zk(e),a.c(),lt(a,1),a.m(t,r)):a&&(ot(),ct(a,1,1,(()=>{a=null})),st()),1118044673&i[0]|1048576&i[1]){let r;for(o=e[18],r=0;r<o.length;r+=1){const a=ik(e,o,r);s[r]?(s[r].p(a,i),lt(s[r],1)):(s[r]=Ak(a),s[r].c(),lt(s[r],1),s[r].m(t,n))}for(ot(),r=o.length;r<s.length;r+=1)l(r);st()}256&i[0]&&ye(t,"clickable",e[8])},i(e){if(!i){lt(a);for(let e=0;e<o.length;e+=1)lt(s[e]);i=!0}},o(e){ct(a),s=s.filter(Boolean);for(let e=0;e<s.length;e+=1)ct(s[e]);i=!1},d(e){e&&X(t),a&&a.d(),G(s,e)}}}function Sk(e){let t,r,n,i,a,o;const s=[ck,lk],l=[];function c(e,t){return e[4]?0:1}return r=c(e),n=l[r]=s[r](e),{c(){t=Y("div"),n.c(),ie(t,"class","wrapper svelte-rzhjll"),ie(t,"style",i=`--row-height: ${e[19]}px; --header-height: ${Mk}px;`),Ye((()=>e[50].call(t))),ye(t,"wrapper--quiet",e[3]),ye(t,"wrapper--compact",e[10])},m(n,i){U(n,t,i),l[r].m(t,null),a=be(t,e[50].bind(t)),o=!0},p(e,a){let u=r;r=c(e),r===u?l[r].p(e,a):(ot(),ct(l[u],1,1,(()=>{l[u]=null})),st(),n=l[r],n?n.p(e,a):(n=l[r]=s[r](e),n.c()),lt(n,1),n.m(t,null)),(!o||524288&a[0]&&i!==(i=`--row-height: ${e[19]}px; --header-height: ${Mk}px;`))&&ie(t,"style",i),8&a[0]&&ye(t,"wrapper--quiet",e[3]),1024&a[0]&&ye(t,"wrapper--compact",e[10])},i(e){o||(lt(n),o=!0)},o(e){ct(n),o=!1},d(e){e&&X(t),l[r].d(),a()}}}function _k(e){let r,n,i=e[18]?.length,a=Sk(e);return{c(){a.c(),r=Q()},m(e,t){a.m(e,t),U(e,r,t),n=!0},p(e,n){262144&n[0]&&c(i,i=e[18]?.length)?(ot(),ct(a,1,1,t),st(),a=Sk(e),a.c(),lt(a,1),a.m(r.parentNode,r)):a.p(e,n)},i(e){n||(lt(a),n=!0)},o(e){ct(a),n=!1},d(e){e&&X(r),a.d(e)}}}const Mk=36;function Tk(e,t,r){let n,i,a,o,s,l,c,u,p,d,{$$slots:h={},$$scope:m}=t,{data:g=[]}=t,{schema:f={}}=t,{showAutoColumns:v=!1}=t,{rowCount:b=0}=t,{quiet:y=!1}=t,{loading:x=!1}=t,{allowSelectRows:w}=t,{allowEditRows:z=!0}=t,{allowEditColumns:k=!0}=t,{allowClickRows:A=!0}=t,{selectedRows:C=[]}=t,{customRenderers:S=[]}=t,{disableSorting:_=!1}=t,{autoSortColumns:M=!0}=t,{compact:T=!1}=t,{customPlaceholder:$=!1}=t,{showHeaderBorder:L=!0}=t,{placeholderText:E="No rows found"}=t;const I=De();let B,D,H=0,O=!1,P=!1;const R=e=>{!1!==e.sortable&&(e.name===B?r(15,D="Descending"===D?"Ascending":"Descending"):(r(14,B=e.name),r(15,D="Descending")),I("sort",{column:B,order:D}))},V=e=>{let t=e?.displayName;return e&&void 0===t&&(t=e.name),t||""},N=(e,t)=>{e.stopPropagation(),I("editcolumn",t)},F=(e,t)=>{e.stopPropagation(),I("editrow",zi(t))},j=e=>{w&&(C.some((t=>t._id===e._id))?r(1,C=C.filter((t=>t._id!==e._id))):r(1,C=[...C,e]))};return e.$$set=e=>{"data"in e&&r(32,g=e.data),"schema"in e&&r(0,f=e.schema),"showAutoColumns"in e&&r(33,v=e.showAutoColumns),"rowCount"in e&&r(2,b=e.rowCount),"quiet"in e&&r(3,y=e.quiet),"loading"in e&&r(4,x=e.loading),"allowSelectRows"in e&&r(5,w=e.allowSelectRows),"allowEditRows"in e&&r(6,z=e.allowEditRows),"allowEditColumns"in e&&r(7,k=e.allowEditColumns),"allowClickRows"in e&&r(8,A=e.allowClickRows),"selectedRows"in e&&r(1,C=e.selectedRows),"customRenderers"in e&&r(9,S=e.customRenderers),"disableSorting"in e&&r(34,_=e.disableSorting),"autoSortColumns"in e&&r(35,M=e.autoSortColumns),"compact"in e&&r(10,T=e.compact),"customPlaceholder"in e&&r(11,$=e.customPlaceholder),"showHeaderBorder"in e&&r(12,L=e.showHeaderBorder),"placeholderText"in e&&r(13,E=e.placeholderText),"$$scope"in e&&r(51,m=e.$$scope)},e.$$.update=()=>{if(1024&e.$$.dirty[0]&&r(19,n=T?46:55),1&e.$$.dirty[0]&&r(0,f=(e=>{let t={};return Object.entries(e||{}).forEach((([e,r])=>{t[e]="string"==typeof r?{type:r,name:e}:{...r,name:e};const n=t[e].width;null!=n&&`${n}`.trim().match(/^[0-9]+$/)&&delete t[e].width})),t})(f)),16&e.$$.dirty[0]&&(x||r(36,O=!0)),1&e.$$.dirty[0]|20&e.$$.dirty[1]&&r(18,i=((e,t,r)=>{let n=[],i=[];return Object.entries(e||{}).forEach((([e,a])=>{e&&a&&(r&&a?.autocolumn?t&&i.push(a):n.push(a))})),n.sort(((e,t)=>{if(e.divider)return e;if(t.divider)return t;const r=e.order||Number.MAX_SAFE_INTEGER,n=t.order||Number.MAX_SAFE_INTEGER,i=V(e),a=V(t);return r!==n?r<n?e:t:i<a?e:t})).concat(i).map((e=>e.name))})(f,v,M)),262144&e.$$.dirty[0]|2&e.$$.dirty[1]&&r(37,a=i?.length&&g||[]),64&e.$$.dirty[1]&&r(38,o=a?.length||0),589828&e.$$.dirty[0]|96&e.$$.dirty[1]&&r(39,s=((e,t,r,n,i)=>e?n?Math.min(r,n):Math.min(r,Math.ceil(t/i)):n||0)(O,H,a.length,b,n)),524308&e.$$.dirty[0]|384&e.$$.dirty[1]&&r(24,l=((e,t,r,n,i)=>i?`height: ${Mk+e*n}px;`:!t||!e||r<=t?"":`height: ${Mk+e*n}px;`)(s,b,o,n,x)),49152&e.$$.dirty[0]|64&e.$$.dirty[1]&&r(23,c=((e,t,r)=>t&&r&&!_?e.slice().sort(((e,n)=>{const i=e[t],a=n[t];return"Descending"===r?i>a?-1:1:i>a?1:-1})):e)(a,B,D)),96&e.$$.dirty[0]&&r(17,p=z||w),393217&e.$$.dirty[0]&&r(22,u=((e,t,r)=>{let n="grid-template-columns:";return r&&(n+=" auto"),e?.forEach((e=>{const r=t[e];r.width&&"string"==typeof r.width?n+=` ${r.width}`:n+=" minmax(auto, 1fr)"})),n+=";",n})(i,f,p)),1&e.$$.dirty[0]&&r(21,d=(e=>{let t={};return Object.keys(e||{}).forEach((r=>{t[r]="",e[r].color&&(t[r]+=`color: ${e[r].color};`),e[r].background&&(t[r]+=`background-color: ${e[r].background};`),"Center"===e[r].align&&(t[r]+="justify-content: center; text-align: center;"),"Right"===e[r].align&&(t[r]+="justify-content: flex-end; text-align: right;"),e[r].borderLeft&&(t[r]+="border-left: 1px solid var(--spectrum-global-color-gray-200);"),e[r].borderLeft&&(t[r]+="border-right: 1px solid var(--spectrum-global-color-gray-200);"),e[r].minWidth&&(t[r]+=`min-width: ${e[r].minWidth};`)})),t})(f)),2&e.$$.dirty[0]|64&e.$$.dirty[1]){0===a.filter((e=>C.some((t=>e._id===t._id)))).length&&r(20,P=!1)}},[f,C,b,y,x,w,z,k,A,S,T,$,L,E,B,D,H,p,i,n,P,d,u,c,l,I,R,V,N,F,j,e=>{!!e.detail?a.forEach((e=>{-1===C.findIndex((t=>t._id===e._id))&&C.push(e)})):r(1,C=C.filter((e=>a.every((t=>t._id!==e._id)))))},g,v,_,M,O,a,o,s,h,function(e){P=e,r(20,P),r(37,a),r(1,C),r(18,i),r(32,g),r(0,f),r(33,v),r(35,M)},(e,t)=>N(t,e),e=>R(f[e]),(e,t)=>t._id===e._id,(e,t)=>F(t,e),(e,t)=>{j(e),t.stopPropagation()},function(t){Ve.call(this,e,t)},function(t){Ve.call(this,e,t)},(e,t)=>{f[e]?.preventSelectRow||(I("click",t),j(t))},function(){H=this.offsetHeight,r(16,H)},m]}class $k extends Ot{constructor(e){super(),Ht(this,e,Tk,_k,c,{data:32,schema:0,showAutoColumns:33,rowCount:2,quiet:3,loading:4,allowSelectRows:5,allowEditRows:6,allowEditColumns:7,allowClickRows:8,selectedRows:1,customRenderers:9,disableSorting:34,autoSortColumns:35,compact:10,customPlaceholder:11,showHeaderBorder:12,placeholderText:13},null,[-1,-1,-1])}}Gt('.spectrum-Tabs--sizeS {\n --spectrum-tabs-quiet-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-s-quiet-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-quiet-textonly-divider-background-color: var(--spectrum-tabs-s-quiet-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-quiet));\n --spectrum-tabs-quiet-textonly-tabitem-icon-gap: var(--spectrum-tabs-s-quiet-textonly-tabitem-icon-gap, var(--spectrum-global-dimension-size-85));\n --spectrum-tabs-quiet-textonly-tabitem-focus-ring-padding-x: var(--spectrum-tabs-s-quiet-textonly-tabitem-focus-ring-padding-x, var(--spectrum-global-dimension-size-85));\n --spectrum-tabs-quiet-textonly-tabitem-height: var(--spectrum-tabs-s-quiet-textonly-tabitem-height, var(--spectrum-global-dimension-size-500));\n --spectrum-tabs-quiet-textonly-divider-size: var(--spectrum-tabs-s-quiet-textonly-divider-size, var(--spectrum-alias-border-size-thick));\n --spectrum-tabs-emphasized-texticon-tabitem-icon-color-selected: var(--spectrum-tabs-s-emphasized-texticon-tabitem-icon-color-selected, var(--spectrum-alias-tabitem-text-color-emphasized-selected-default));\n --spectrum-tabs-emphasized-texticon-tabitem-text-color-selected: var(--spectrum-tabs-s-emphasized-texticon-tabitem-text-color-selected, var(--spectrum-alias-tabitem-text-color-emphasized-selected-default));\n --spectrum-tabs-emphasized-texticon-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-s-emphasized-texticon-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-selection-indicator-color-emphasized));\n --spectrum-tabs-emphasized-textonly-divider-background-color: var(--spectrum-tabs-s-emphasized-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-texticon-tabitem-text-size: var(--spectrum-tabs-s-texticon-tabitem-text-size, var(--spectrum-global-dimension-font-size-75));\n --spectrum-tabs-texticon-tabitem-selection-indicator-animation-duration: var(--spectrum-tabs-s-texticon-tabitem-selection-indicator-animation-duration, var(--spectrum-global-animation-duration-100));\n --spectrum-tabs-texticon-tabitem-selection-indicator-animation-ease: var(--spectrum-tabs-s-texticon-tabitem-selection-indicator-animation-ease, var(--spectrum-global-animation-ease-in-out));\n --spectrum-tabs-textonly-tabitem-icon-color-selected: var(--spectrum-tabs-s-textonly-tabitem-icon-color-selected, var(--spectrum-alias-tabitem-icon-color-selected));\n --spectrum-tabs-textonly-tabitem-text-color-selected: var(--spectrum-tabs-s-textonly-tabitem-text-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-s-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-textonly-tabitem-icon-color-selected-key-focus: var(--spectrum-tabs-s-textonly-tabitem-icon-color-selected-key-focus, var(--spectrum-alias-tabitem-icon-color-selected));\n --spectrum-tabs-textonly-tabitem-text-color-selected-key-focus: var(--spectrum-tabs-s-textonly-tabitem-text-color-selected-key-focus, var(--spectrum-alias-tabitem-text-color-selected-key-focus));\n --spectrum-tabs-textonly-tabitem-icon-color-disabled: var(--spectrum-tabs-s-textonly-tabitem-icon-color-disabled, var(--spectrum-alias-tabitem-icon-color-disabled));\n --spectrum-tabs-textonly-tabitem-text-color-disabled: var(--spectrum-tabs-s-textonly-tabitem-text-color-disabled, var(--spectrum-alias-text-color-disabled));\n --spectrum-tabs-textonly-tabitem-icon-color: var(--spectrum-tabs-s-textonly-tabitem-icon-color, var(--spectrum-alias-tabitem-icon-color-default));\n --spectrum-tabs-textonly-tabitem-text-color: var(--spectrum-tabs-s-textonly-tabitem-text-color, var(--spectrum-alias-tabitem-text-color-default));\n --spectrum-tabs-textonly-tabitem-icon-color-hover: var(--spectrum-tabs-s-textonly-tabitem-icon-color-hover, var(--spectrum-alias-tabitem-icon-color-hover));\n --spectrum-tabs-textonly-tabitem-text-color-hover: var(--spectrum-tabs-s-textonly-tabitem-text-color-hover, var(--spectrum-alias-tabitem-text-color-hover));\n --spectrum-tabs-textonly-tabitem-focus-ring-border-color-key-focus: var(--spectrum-tabs-s-textonly-tabitem-focus-ring-border-color-key-focus, var(--spectrum-alias-focus-ring-color));\n --spectrum-tabs-textonly-divider-background-color: var(--spectrum-tabs-s-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-textonly-tabitem-text-font-weight: var(--spectrum-tabs-s-textonly-tabitem-text-font-weight, var(--spectrum-alias-body-text-font-weight));\n --spectrum-tabs-textonly-tabitem-focus-ring-size: var(--spectrum-tabs-s-textonly-tabitem-focus-ring-size, var(--spectrum-alias-focus-ring-size));\n --spectrum-tabs-textonly-tabitem-focus-ring-height: var(--spectrum-tabs-s-textonly-tabitem-focus-ring-height, var(--spectrum-global-dimension-size-300));\n --spectrum-tabs-textonly-tabitem-focus-ring-padding-x: var(--spectrum-tabs-s-textonly-tabitem-focus-ring-padding-x, var(--spectrum-global-dimension-size-85));\n --spectrum-tabs-textonly-tabitem-focus-ring-border-radius: var(--spectrum-tabs-s-textonly-tabitem-focus-ring-border-radius, var(--spectrum-alias-border-radius-regular));\n --spectrum-tabs-textonly-tabitem-margin-right: var(--spectrum-tabs-s-textonly-tabitem-margin-right, var(--spectrum-global-dimension-size-300));\n --spectrum-tabs-textonly-divider-border-radius: var(--spectrum-tabs-s-textonly-divider-border-radius, var(--spectrum-global-dimension-static-size-10));\n --spectrum-tabs-vertical-quiet-textonly-divider-background-color: var(--spectrum-tabs-s-vertical-quiet-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-quiet));\n --spectrum-tabs-vertical-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-s-vertical-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-vertical-textonly-divider-background-color: var(--spectrum-tabs-s-vertical-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-vertical-textonly-tabitem-height: var(--spectrum-tabs-s-vertical-textonly-tabitem-height, var(--spectrum-global-dimension-size-450));\n --spectrum-tabs-vertical-textonly-tabitem-gap: var(--spectrum-tabs-s-vertical-textonly-tabitem-gap, var(--spectrum-global-dimension-size-85));\n --spectrum-tabs-compact-textonly-divider-size: var(--spectrum-tabs-s-compact-textonly-divider-size, var(--spectrum-alias-border-size-thick));\n --spectrum-tabs-compact-textonly-height: var(--spectrum-tabs-s-compact-textonly-height, var(--spectrum-global-dimension-size-300));\n --spectrum-tabs-compact-vertical-textonly-tabitem-height: var(--spectrum-tabs-s-compact-vertical-textonly-tabitem-height, var(--spectrum-global-dimension-size-300));\n --spectrum-tabs-compact-vertical-textonly-tabitem-gap: var(--spectrum-tabs-s-compact-vertical-textonly-tabitem-gap, var(--spectrum-global-dimension-size-85));\n}\n\n.spectrum-Tabs--sizeM {\n --spectrum-tabs-quiet-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-m-quiet-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-quiet-textonly-divider-background-color: var(--spectrum-tabs-m-quiet-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-quiet));\n --spectrum-tabs-quiet-textonly-tabitem-icon-gap: var(--spectrum-tabs-m-quiet-textonly-tabitem-icon-gap, var(--spectrum-global-dimension-size-100));\n --spectrum-tabs-quiet-textonly-tabitem-focus-ring-padding-x: var(--spectrum-tabs-m-quiet-textonly-tabitem-focus-ring-padding-x, var(--spectrum-global-dimension-size-100));\n --spectrum-tabs-quiet-textonly-tabitem-height: var(--spectrum-tabs-m-quiet-textonly-tabitem-height, var(--spectrum-global-dimension-size-600));\n --spectrum-tabs-quiet-textonly-divider-size: var(--spectrum-tabs-m-quiet-textonly-divider-size, var(--spectrum-alias-border-size-thick));\n --spectrum-tabs-emphasized-texticon-tabitem-icon-color-selected: var(--spectrum-tabs-m-emphasized-texticon-tabitem-icon-color-selected, var(--spectrum-alias-tabitem-text-color-emphasized-selected-default));\n --spectrum-tabs-emphasized-texticon-tabitem-text-color-selected: var(--spectrum-tabs-m-emphasized-texticon-tabitem-text-color-selected, var(--spectrum-alias-tabitem-text-color-emphasized-selected-default));\n --spectrum-tabs-emphasized-texticon-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-m-emphasized-texticon-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-selection-indicator-color-emphasized));\n --spectrum-tabs-emphasized-textonly-divider-background-color: var(--spectrum-tabs-m-emphasized-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-texticon-tabitem-text-size: var(--spectrum-tabs-m-texticon-tabitem-text-size, var(--spectrum-global-dimension-font-size-100));\n --spectrum-tabs-texticon-tabitem-selection-indicator-animation-duration: var(--spectrum-tabs-m-texticon-tabitem-selection-indicator-animation-duration, var(--spectrum-global-animation-duration-100));\n --spectrum-tabs-texticon-tabitem-selection-indicator-animation-ease: var(--spectrum-tabs-m-texticon-tabitem-selection-indicator-animation-ease, var(--spectrum-global-animation-ease-in-out));\n --spectrum-tabs-textonly-tabitem-icon-color-selected: var(--spectrum-tabs-m-textonly-tabitem-icon-color-selected, var(--spectrum-alias-tabitem-icon-color-selected));\n --spectrum-tabs-textonly-tabitem-text-color-selected: var(--spectrum-tabs-m-textonly-tabitem-text-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-m-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-textonly-tabitem-icon-color-selected-key-focus: var(--spectrum-tabs-m-textonly-tabitem-icon-color-selected-key-focus, var(--spectrum-alias-tabitem-icon-color-selected));\n --spectrum-tabs-textonly-tabitem-text-color-selected-key-focus: var(--spectrum-tabs-m-textonly-tabitem-text-color-selected-key-focus, var(--spectrum-alias-tabitem-text-color-selected-key-focus));\n --spectrum-tabs-textonly-tabitem-icon-color-disabled: var(--spectrum-tabs-m-textonly-tabitem-icon-color-disabled, var(--spectrum-alias-tabitem-icon-color-disabled));\n --spectrum-tabs-textonly-tabitem-text-color-disabled: var(--spectrum-tabs-m-textonly-tabitem-text-color-disabled, var(--spectrum-alias-text-color-disabled));\n --spectrum-tabs-textonly-tabitem-icon-color: var(--spectrum-tabs-m-textonly-tabitem-icon-color, var(--spectrum-alias-tabitem-icon-color-default));\n --spectrum-tabs-textonly-tabitem-text-color: var(--spectrum-tabs-m-textonly-tabitem-text-color, var(--spectrum-alias-tabitem-text-color-default));\n --spectrum-tabs-textonly-tabitem-icon-color-hover: var(--spectrum-tabs-m-textonly-tabitem-icon-color-hover, var(--spectrum-alias-tabitem-icon-color-hover));\n --spectrum-tabs-textonly-tabitem-text-color-hover: var(--spectrum-tabs-m-textonly-tabitem-text-color-hover, var(--spectrum-alias-tabitem-text-color-hover));\n --spectrum-tabs-textonly-tabitem-focus-ring-border-color-key-focus: var(--spectrum-tabs-m-textonly-tabitem-focus-ring-border-color-key-focus, var(--spectrum-alias-focus-ring-color));\n --spectrum-tabs-textonly-divider-background-color: var(--spectrum-tabs-m-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-textonly-tabitem-text-font-weight: var(--spectrum-tabs-m-textonly-tabitem-text-font-weight, var(--spectrum-alias-body-text-font-weight));\n --spectrum-tabs-textonly-tabitem-focus-ring-size: var(--spectrum-tabs-m-textonly-tabitem-focus-ring-size, var(--spectrum-alias-focus-ring-size));\n --spectrum-tabs-textonly-tabitem-focus-ring-height: var(--spectrum-tabs-m-textonly-tabitem-focus-ring-height, var(--spectrum-global-dimension-size-400));\n --spectrum-tabs-textonly-tabitem-focus-ring-padding-x: var(--spectrum-tabs-m-textonly-tabitem-focus-ring-padding-x, var(--spectrum-global-dimension-size-100));\n --spectrum-tabs-textonly-tabitem-focus-ring-border-radius: var(--spectrum-tabs-m-textonly-tabitem-focus-ring-border-radius, var(--spectrum-alias-border-radius-regular));\n --spectrum-tabs-textonly-tabitem-margin-right: var(--spectrum-tabs-m-textonly-tabitem-margin-right, var(--spectrum-global-dimension-size-300));\n --spectrum-tabs-textonly-divider-border-radius: var(--spectrum-tabs-m-textonly-divider-border-radius, var(--spectrum-global-dimension-static-size-10));\n --spectrum-tabs-vertical-quiet-textonly-divider-background-color: var(--spectrum-tabs-m-vertical-quiet-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-quiet));\n --spectrum-tabs-vertical-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-m-vertical-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-vertical-textonly-divider-background-color: var(--spectrum-tabs-m-vertical-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-vertical-textonly-tabitem-height: var(--spectrum-tabs-m-vertical-textonly-tabitem-height, var(--spectrum-global-dimension-size-550));\n --spectrum-tabs-vertical-textonly-tabitem-gap: var(--spectrum-tabs-m-vertical-textonly-tabitem-gap, var(--spectrum-global-dimension-size-100));\n --spectrum-tabs-compact-textonly-divider-size: var(--spectrum-tabs-m-compact-textonly-divider-size, var(--spectrum-alias-border-size-thick));\n --spectrum-tabs-compact-textonly-height: var(--spectrum-tabs-m-compact-textonly-height, var(--spectrum-global-dimension-size-400));\n --spectrum-tabs-compact-vertical-textonly-tabitem-height: var(--spectrum-tabs-m-compact-vertical-textonly-tabitem-height, var(--spectrum-global-dimension-size-400));\n --spectrum-tabs-compact-vertical-textonly-tabitem-gap: var(--spectrum-tabs-m-compact-vertical-textonly-tabitem-gap, var(--spectrum-global-dimension-size-100));\n}\n\n.spectrum-Tabs--sizeL {\n --spectrum-tabs-quiet-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-l-quiet-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-quiet-textonly-divider-background-color: var(--spectrum-tabs-l-quiet-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-quiet));\n --spectrum-tabs-quiet-textonly-tabitem-icon-gap: var(--spectrum-tabs-l-quiet-textonly-tabitem-icon-gap, var(--spectrum-global-dimension-size-115));\n --spectrum-tabs-quiet-textonly-tabitem-focus-ring-padding-x: var(--spectrum-tabs-l-quiet-textonly-tabitem-focus-ring-padding-x, var(--spectrum-global-dimension-size-115));\n --spectrum-tabs-quiet-textonly-tabitem-height: var(--spectrum-tabs-l-quiet-textonly-tabitem-height, var(--spectrum-global-dimension-size-700));\n --spectrum-tabs-quiet-textonly-divider-size: var(--spectrum-tabs-l-quiet-textonly-divider-size, var(--spectrum-alias-border-size-thick));\n --spectrum-tabs-emphasized-texticon-tabitem-icon-color-selected: var(--spectrum-tabs-l-emphasized-texticon-tabitem-icon-color-selected, var(--spectrum-alias-tabitem-text-color-emphasized-selected-default));\n --spectrum-tabs-emphasized-texticon-tabitem-text-color-selected: var(--spectrum-tabs-l-emphasized-texticon-tabitem-text-color-selected, var(--spectrum-alias-tabitem-text-color-emphasized-selected-default));\n --spectrum-tabs-emphasized-texticon-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-l-emphasized-texticon-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-selection-indicator-color-emphasized));\n --spectrum-tabs-emphasized-textonly-divider-background-color: var(--spectrum-tabs-l-emphasized-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-texticon-tabitem-text-size: var(--spectrum-tabs-l-texticon-tabitem-text-size, var(--spectrum-global-dimension-font-size-200));\n --spectrum-tabs-texticon-tabitem-selection-indicator-animation-duration: var(--spectrum-tabs-l-texticon-tabitem-selection-indicator-animation-duration, var(--spectrum-global-animation-duration-100));\n --spectrum-tabs-texticon-tabitem-selection-indicator-animation-ease: var(--spectrum-tabs-l-texticon-tabitem-selection-indicator-animation-ease, var(--spectrum-global-animation-ease-in-out));\n --spectrum-tabs-textonly-tabitem-icon-color-selected: var(--spectrum-tabs-l-textonly-tabitem-icon-color-selected, var(--spectrum-alias-tabitem-icon-color-selected));\n --spectrum-tabs-textonly-tabitem-text-color-selected: var(--spectrum-tabs-l-textonly-tabitem-text-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-l-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-textonly-tabitem-icon-color-selected-key-focus: var(--spectrum-tabs-l-textonly-tabitem-icon-color-selected-key-focus, var(--spectrum-alias-tabitem-icon-color-selected));\n --spectrum-tabs-textonly-tabitem-text-color-selected-key-focus: var(--spectrum-tabs-l-textonly-tabitem-text-color-selected-key-focus, var(--spectrum-alias-tabitem-text-color-selected-key-focus));\n --spectrum-tabs-textonly-tabitem-icon-color-disabled: var(--spectrum-tabs-l-textonly-tabitem-icon-color-disabled, var(--spectrum-alias-tabitem-icon-color-disabled));\n --spectrum-tabs-textonly-tabitem-text-color-disabled: var(--spectrum-tabs-l-textonly-tabitem-text-color-disabled, var(--spectrum-alias-text-color-disabled));\n --spectrum-tabs-textonly-tabitem-icon-color: var(--spectrum-tabs-l-textonly-tabitem-icon-color, var(--spectrum-alias-tabitem-icon-color-default));\n --spectrum-tabs-textonly-tabitem-text-color: var(--spectrum-tabs-l-textonly-tabitem-text-color, var(--spectrum-alias-tabitem-text-color-default));\n --spectrum-tabs-textonly-tabitem-icon-color-hover: var(--spectrum-tabs-l-textonly-tabitem-icon-color-hover, var(--spectrum-alias-tabitem-icon-color-hover));\n --spectrum-tabs-textonly-tabitem-text-color-hover: var(--spectrum-tabs-l-textonly-tabitem-text-color-hover, var(--spectrum-alias-tabitem-text-color-hover));\n --spectrum-tabs-textonly-tabitem-focus-ring-border-color-key-focus: var(--spectrum-tabs-l-textonly-tabitem-focus-ring-border-color-key-focus, var(--spectrum-alias-focus-ring-color));\n --spectrum-tabs-textonly-divider-background-color: var(--spectrum-tabs-l-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-textonly-tabitem-text-font-weight: var(--spectrum-tabs-l-textonly-tabitem-text-font-weight, var(--spectrum-alias-body-text-font-weight));\n --spectrum-tabs-textonly-tabitem-focus-ring-size: var(--spectrum-tabs-l-textonly-tabitem-focus-ring-size, var(--spectrum-alias-focus-ring-size));\n --spectrum-tabs-textonly-tabitem-focus-ring-height: var(--spectrum-tabs-l-textonly-tabitem-focus-ring-height, var(--spectrum-global-dimension-size-500));\n --spectrum-tabs-textonly-tabitem-focus-ring-padding-x: var(--spectrum-tabs-l-textonly-tabitem-focus-ring-padding-x, var(--spectrum-global-dimension-size-115));\n --spectrum-tabs-textonly-tabitem-focus-ring-border-radius: var(--spectrum-tabs-l-textonly-tabitem-focus-ring-border-radius, var(--spectrum-alias-border-radius-regular));\n --spectrum-tabs-textonly-tabitem-margin-right: var(--spectrum-tabs-l-textonly-tabitem-margin-right, var(--spectrum-global-dimension-size-300));\n --spectrum-tabs-textonly-divider-border-radius: var(--spectrum-tabs-l-textonly-divider-border-radius, var(--spectrum-global-dimension-static-size-10));\n --spectrum-tabs-vertical-quiet-textonly-divider-background-color: var(--spectrum-tabs-l-vertical-quiet-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-quiet));\n --spectrum-tabs-vertical-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-l-vertical-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-vertical-textonly-divider-background-color: var(--spectrum-tabs-l-vertical-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-vertical-textonly-tabitem-height: var(--spectrum-tabs-l-vertical-textonly-tabitem-height, var(--spectrum-global-dimension-size-650));\n --spectrum-tabs-vertical-textonly-tabitem-gap: var(--spectrum-tabs-l-vertical-textonly-tabitem-gap, var(--spectrum-global-dimension-size-115));\n --spectrum-tabs-compact-textonly-divider-size: var(--spectrum-tabs-l-compact-textonly-divider-size, var(--spectrum-alias-border-size-thick));\n --spectrum-tabs-compact-textonly-height: var(--spectrum-tabs-l-compact-textonly-height, var(--spectrum-global-dimension-size-500));\n --spectrum-tabs-compact-vertical-textonly-tabitem-height: var(--spectrum-tabs-l-compact-vertical-textonly-tabitem-height, var(--spectrum-global-dimension-size-500));\n --spectrum-tabs-compact-vertical-textonly-tabitem-gap: var(--spectrum-tabs-l-compact-vertical-textonly-tabitem-gap, var(--spectrum-global-dimension-size-115));\n}\n\n.spectrum-Tabs--sizeXL {\n --spectrum-tabs-quiet-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-xl-quiet-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-quiet-textonly-divider-background-color: var(--spectrum-tabs-xl-quiet-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-quiet));\n --spectrum-tabs-quiet-textonly-tabitem-icon-gap: var(--spectrum-tabs-xl-quiet-textonly-tabitem-icon-gap, var(--spectrum-global-dimension-size-125));\n --spectrum-tabs-quiet-textonly-tabitem-focus-ring-padding-x: var(--spectrum-tabs-xl-quiet-textonly-tabitem-focus-ring-padding-x, var(--spectrum-global-dimension-size-125));\n --spectrum-tabs-quiet-textonly-tabitem-height: var(--spectrum-tabs-xl-quiet-textonly-tabitem-height, var(--spectrum-global-dimension-size-800));\n --spectrum-tabs-quiet-textonly-divider-size: var(--spectrum-tabs-xl-quiet-textonly-divider-size, var(--spectrum-alias-border-size-thick));\n --spectrum-tabs-emphasized-texticon-tabitem-icon-color-selected: var(--spectrum-tabs-xl-emphasized-texticon-tabitem-icon-color-selected, var(--spectrum-alias-tabitem-text-color-emphasized-selected-default));\n --spectrum-tabs-emphasized-texticon-tabitem-text-color-selected: var(--spectrum-tabs-xl-emphasized-texticon-tabitem-text-color-selected, var(--spectrum-alias-tabitem-text-color-emphasized-selected-default));\n --spectrum-tabs-emphasized-texticon-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-xl-emphasized-texticon-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-selection-indicator-color-emphasized));\n --spectrum-tabs-emphasized-textonly-divider-background-color: var(--spectrum-tabs-xl-emphasized-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-texticon-tabitem-text-size: var(--spectrum-tabs-xl-texticon-tabitem-text-size, var(--spectrum-global-dimension-font-size-300));\n --spectrum-tabs-texticon-tabitem-selection-indicator-animation-duration: var(--spectrum-tabs-xl-texticon-tabitem-selection-indicator-animation-duration, var(--spectrum-global-animation-duration-100));\n --spectrum-tabs-texticon-tabitem-selection-indicator-animation-ease: var(--spectrum-tabs-xl-texticon-tabitem-selection-indicator-animation-ease, var(--spectrum-global-animation-ease-in-out));\n --spectrum-tabs-textonly-tabitem-icon-color-selected: var(--spectrum-tabs-xl-textonly-tabitem-icon-color-selected, var(--spectrum-alias-tabitem-icon-color-selected));\n --spectrum-tabs-textonly-tabitem-text-color-selected: var(--spectrum-tabs-xl-textonly-tabitem-text-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-xl-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-textonly-tabitem-icon-color-selected-key-focus: var(--spectrum-tabs-xl-textonly-tabitem-icon-color-selected-key-focus, var(--spectrum-alias-tabitem-icon-color-selected));\n --spectrum-tabs-textonly-tabitem-text-color-selected-key-focus: var(--spectrum-tabs-xl-textonly-tabitem-text-color-selected-key-focus, var(--spectrum-alias-tabitem-text-color-selected-key-focus));\n --spectrum-tabs-textonly-tabitem-icon-color-disabled: var(--spectrum-tabs-xl-textonly-tabitem-icon-color-disabled, var(--spectrum-alias-tabitem-icon-color-disabled));\n --spectrum-tabs-textonly-tabitem-text-color-disabled: var(--spectrum-tabs-xl-textonly-tabitem-text-color-disabled, var(--spectrum-alias-text-color-disabled));\n --spectrum-tabs-textonly-tabitem-icon-color: var(--spectrum-tabs-xl-textonly-tabitem-icon-color, var(--spectrum-alias-tabitem-icon-color-default));\n --spectrum-tabs-textonly-tabitem-text-color: var(--spectrum-tabs-xl-textonly-tabitem-text-color, var(--spectrum-alias-tabitem-text-color-default));\n --spectrum-tabs-textonly-tabitem-icon-color-hover: var(--spectrum-tabs-xl-textonly-tabitem-icon-color-hover, var(--spectrum-alias-tabitem-icon-color-hover));\n --spectrum-tabs-textonly-tabitem-text-color-hover: var(--spectrum-tabs-xl-textonly-tabitem-text-color-hover, var(--spectrum-alias-tabitem-text-color-hover));\n --spectrum-tabs-textonly-tabitem-focus-ring-border-color-key-focus: var(--spectrum-tabs-xl-textonly-tabitem-focus-ring-border-color-key-focus, var(--spectrum-alias-focus-ring-color));\n --spectrum-tabs-textonly-divider-background-color: var(--spectrum-tabs-xl-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-textonly-tabitem-text-font-weight: var(--spectrum-tabs-xl-textonly-tabitem-text-font-weight, var(--spectrum-alias-body-text-font-weight));\n --spectrum-tabs-textonly-tabitem-focus-ring-size: var(--spectrum-tabs-xl-textonly-tabitem-focus-ring-size, var(--spectrum-alias-focus-ring-size));\n --spectrum-tabs-textonly-tabitem-focus-ring-height: var(--spectrum-tabs-xl-textonly-tabitem-focus-ring-height, var(--spectrum-global-dimension-size-600));\n --spectrum-tabs-textonly-tabitem-focus-ring-padding-x: var(--spectrum-tabs-xl-textonly-tabitem-focus-ring-padding-x, var(--spectrum-global-dimension-size-125));\n --spectrum-tabs-textonly-tabitem-focus-ring-border-radius: var(--spectrum-tabs-xl-textonly-tabitem-focus-ring-border-radius, var(--spectrum-alias-border-radius-regular));\n --spectrum-tabs-textonly-tabitem-margin-right: var(--spectrum-tabs-xl-textonly-tabitem-margin-right, var(--spectrum-global-dimension-size-300));\n --spectrum-tabs-textonly-divider-border-radius: var(--spectrum-tabs-xl-textonly-divider-border-radius, var(--spectrum-global-dimension-static-size-10));\n --spectrum-tabs-vertical-quiet-textonly-divider-background-color: var(--spectrum-tabs-xl-vertical-quiet-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-quiet));\n --spectrum-tabs-vertical-textonly-tabitem-selection-indicator-background-color-selected: var(--spectrum-tabs-xl-vertical-textonly-tabitem-selection-indicator-background-color-selected, var(--spectrum-alias-tabitem-text-color-selected-default));\n --spectrum-tabs-vertical-textonly-divider-background-color: var(--spectrum-tabs-xl-vertical-textonly-divider-background-color, var(--spectrum-alias-tabs-divider-background-color-default));\n --spectrum-tabs-vertical-textonly-tabitem-height: var(--spectrum-tabs-xl-vertical-textonly-tabitem-height, var(--spectrum-global-dimension-size-750));\n --spectrum-tabs-vertical-textonly-tabitem-gap: var(--spectrum-tabs-xl-vertical-textonly-tabitem-gap, var(--spectrum-global-dimension-size-125));\n --spectrum-tabs-compact-textonly-divider-size: var(--spectrum-tabs-xl-compact-textonly-divider-size, var(--spectrum-alias-border-size-thick));\n --spectrum-tabs-compact-textonly-height: var(--spectrum-tabs-xl-compact-textonly-height, var(--spectrum-global-dimension-size-600));\n --spectrum-tabs-compact-vertical-textonly-tabitem-height: var(--spectrum-tabs-xl-compact-vertical-textonly-tabitem-height, var(--spectrum-global-dimension-size-600));\n --spectrum-tabs-compact-vertical-textonly-tabitem-gap: var(--spectrum-tabs-xl-compact-vertical-textonly-tabitem-gap, var(--spectrum-global-dimension-size-125));\n}\n\n.spectrum-Tabs {\n --spectrum-tabs-compact-item-height: calc(var(--spectrum-tabs-compact-textonly-height) - var(--spectrum-tabs-compact-textonly-divider-size));\n}\n\n.spectrum-Tabs {\n display: -ms-flexbox;\n display: flex;\n position: relative;\n z-index: 0;\n\n margin: 0;\n padding-top: 0;\n padding-bottom: 0;\n vertical-align: top;\n}\n\n.spectrum-Tabs-item {\n position: relative;\n\n box-sizing: border-box;\n\n height: var(--spectrum-tabs-quiet-textonly-tabitem-height);\n line-height: var(--spectrum-tabs-quiet-textonly-tabitem-height);\n z-index: 1;\n\n text-decoration: none;\n white-space: nowrap;\n\n transition: color var(--spectrum-tabs-texticon-tabitem-selection-indicator-animation-duration) ease-out;\n cursor: pointer;\n outline: none;\n}\n\n.spectrum-Tabs-item.is-disabled {\n cursor: default;\n }\n\n.spectrum-Tabs-item.is-disabled .spectrum-Tabs-itemLabel {\n cursor: default;\n }\n\n.spectrum-Tabs-item .spectrum-Icon {\n height: var(--spectrum-tabs-quiet-textonly-tabitem-height);\n }\n\n[dir="ltr"] .spectrum-Tabs-item .spectrum-Icon + .spectrum-Tabs-itemLabel {\n margin-left: calc(var(--spectrum-tabs-quiet-textonly-tabitem-icon-gap) - var(--spectrum-global-dimension-size-40));\n}\n\n[dir="rtl"] .spectrum-Tabs-item .spectrum-Icon + .spectrum-Tabs-itemLabel {\n margin-right: calc(var(--spectrum-tabs-quiet-textonly-tabitem-icon-gap) - var(--spectrum-global-dimension-size-40));\n}\n\n[dir="ltr"] .spectrum-Tabs-item::before {\n\n left: calc(-1 * var(--spectrum-tabs-textonly-tabitem-focus-ring-padding-x));\n}\n\n[dir="rtl"] .spectrum-Tabs-item::before {\n\n right: calc(-1 * var(--spectrum-tabs-textonly-tabitem-focus-ring-padding-x));\n}\n\n[dir="ltr"] .spectrum-Tabs-item::before {\n right: calc(-1 * var(--spectrum-tabs-textonly-tabitem-focus-ring-padding-x));\n}\n\n[dir="rtl"] .spectrum-Tabs-item::before {\n left: calc(-1 * var(--spectrum-tabs-textonly-tabitem-focus-ring-padding-x));\n}\n\n.spectrum-Tabs-item::before {\n content: \'\';\n position: absolute;\n top: 50%;\n\n box-sizing: border-box;\n\n height: var(--spectrum-tabs-textonly-tabitem-focus-ring-height);\n margin-top: calc(var(--spectrum-tabs-textonly-tabitem-focus-ring-height) / -2);\n \n border: var(--spectrum-tabs-textonly-tabitem-focus-ring-size) solid transparent;\n border-radius: var(--spectrum-tabs-textonly-tabitem-focus-ring-border-radius);\n\n pointer-events: none;\n }\n\n.spectrum-Tabs-itemLabel {\n cursor: pointer;\n vertical-align: top;\n display: inline-block;\n\n font-size: var(--spectrum-tabs-texticon-tabitem-text-size);\n font-weight: var(--spectrum-tabs-textonly-tabitem-text-font-weight);\n text-decoration: none;\n}\n\n.spectrum-Tabs-itemLabel:empty {\n display: none;\n }\n\n[dir="ltr"] .spectrum-Tabs-selectionIndicator {\n left: 0;\n}\n\n[dir="rtl"] .spectrum-Tabs-selectionIndicator {\n right: 0;\n}\n\n.spectrum-Tabs-selectionIndicator {\n position: absolute;\n z-index: 0;\n \n transition: transform var(--spectrum-tabs-texticon-tabitem-selection-indicator-animation-duration) var(--spectrum-tabs-texticon-tabitem-selection-indicator-animation-ease);\n transform-origin: top left;\n\n border-radius: var(--spectrum-tabs-textonly-divider-border-radius);\n}\n\n.spectrum-Tabs--compact .spectrum-Tabs-item {\n height: var(--spectrum-tabs-compact-item-height);\n line-height: var(--spectrum-tabs-compact-item-height);\n }\n\n.spectrum-Tabs--compact .spectrum-Tabs-item .spectrum-Icon {\n height: var(--spectrum-tabs-compact-item-height);\n }\n\n.spectrum-Tabs--horizontal {\n -ms-flex-align: center;\n align-items: center;\n\n border-bottom: var(--spectrum-tabs-quiet-textonly-divider-size) solid;\n}\n\n.spectrum-Tabs--horizontal .spectrum-Tabs-item {\n vertical-align: top;\n }\n\n[dir="ltr"] .spectrum-Tabs--horizontal .spectrum-Tabs-item + *:not(.spectrum-Tabs-selectionIndicator) {\n margin-left: var(--spectrum-tabs-textonly-tabitem-margin-right);\n}\n\n[dir="rtl"] .spectrum-Tabs--horizontal .spectrum-Tabs-item + *:not(.spectrum-Tabs-selectionIndicator) {\n margin-right: var(--spectrum-tabs-textonly-tabitem-margin-right);\n}\n\n.spectrum-Tabs--horizontal .spectrum-Tabs-selectionIndicator {\n position: absolute;\n bottom: 0;\n height: var(--spectrum-tabs-quiet-textonly-divider-size);\n\n bottom: calc(-1 * var(--spectrum-tabs-quiet-textonly-divider-size));\n }\n\n.spectrum-Tabs--horizontal.spectrum-Tabs--compact {\n box-sizing: content-box;\n height: var(--spectrum-tabs-compact-item-height);\n -ms-flex-align: end;\n align-items: end;\n }\n\n.spectrum-Tabs--quiet {\n display: -ms-inline-flexbox;\n display: inline-flex;\n}\n\n[dir="ltr"] .spectrum-Tabs--vertical {\n border-left: var(--spectrum-tabs-quiet-textonly-divider-size) solid;\n}\n\n[dir="rtl"] .spectrum-Tabs--vertical {\n border-right: var(--spectrum-tabs-quiet-textonly-divider-size) solid;\n}\n\n.spectrum-Tabs--vertical {\n display: -ms-inline-flexbox;\n display: inline-flex;\n -ms-flex-direction: column;\n flex-direction: column;\n padding: 0;\n}\n\n[dir="ltr"] .spectrum-Tabs--vertical .spectrum-Tabs-item {\n margin-left: calc(var(--spectrum-tabs-vertical-textonly-tabitem-gap) / 2);\n}\n\n[dir="rtl"] .spectrum-Tabs--vertical .spectrum-Tabs-item {\n margin-right: calc(var(--spectrum-tabs-vertical-textonly-tabitem-gap) / 2);\n}\n\n.spectrum-Tabs--vertical .spectrum-Tabs-item {\n height: var(--spectrum-tabs-vertical-textonly-tabitem-height);\n line-height: var(--spectrum-tabs-vertical-textonly-tabitem-height);\n padding-top: 0;\n padding-bottom: 0;\n padding-left: var(--spectrum-tabs-quiet-textonly-tabitem-focus-ring-padding-x);\n padding-right: var(--spectrum-tabs-quiet-textonly-tabitem-focus-ring-padding-x);\n \n margin-bottom: var(--spectrum-tabs-vertical-textonly-tabitem-gap);\n }\n\n[dir="ltr"] .spectrum-Tabs--vertical .spectrum-Tabs-item::before {\n left: calc(-1 * var(--spectrum-tabs-textonly-tabitem-focus-ring-size));\n}\n\n[dir="rtl"] .spectrum-Tabs--vertical .spectrum-Tabs-item::before {\n right: calc(-1 * var(--spectrum-tabs-textonly-tabitem-focus-ring-size));\n}\n\n[dir="ltr"] .spectrum-Tabs--vertical .spectrum-Tabs-item::before {\n right: calc(-1 * var(--spectrum-tabs-textonly-tabitem-focus-ring-size));\n}\n\n[dir="rtl"] .spectrum-Tabs--vertical .spectrum-Tabs-item::before {\n left: calc(-1 * var(--spectrum-tabs-textonly-tabitem-focus-ring-size));\n}\n\n.spectrum-Tabs--vertical .spectrum-Icon {\n height: var(--spectrum-tabs-vertical-textonly-tabitem-height);\n line-height: var(--spectrum-tabs-vertical-textonly-tabitem-height);\n }\n\n.spectrum-Tabs--vertical.spectrum-Tabs--compact .spectrum-Tabs-item {\n height: var(--spectrum-tabs-compact-vertical-textonly-tabitem-height);\n line-height: var(--spectrum-tabs-compact-vertical-textonly-tabitem-height);\n margin-bottom: var(--spectrum-tabs-compact-vertical-textonly-tabitem-gap);\n }\n\n.spectrum-Tabs--vertical.spectrum-Tabs--compact .spectrum-Tabs-item .spectrum-Icon {\n height: var(--spectrum-tabs-compact-vertical-textonly-tabitem-height);\n }\n\n[dir="ltr"] .spectrum-Tabs--vertical .spectrum-Tabs-selectionIndicator {\n left: 0px;\n}\n\n[dir="rtl"] .spectrum-Tabs--vertical .spectrum-Tabs-selectionIndicator {\n right: 0px;\n}\n\n[dir="ltr"] .spectrum-Tabs--vertical .spectrum-Tabs-selectionIndicator {\n\n left: calc(-1 * var(--spectrum-tabs-quiet-textonly-divider-size));\n}\n\n[dir="rtl"] .spectrum-Tabs--vertical .spectrum-Tabs-selectionIndicator {\n\n right: calc(-1 * var(--spectrum-tabs-quiet-textonly-divider-size));\n}\n\n.spectrum-Tabs--vertical .spectrum-Tabs-selectionIndicator {\n position: absolute;\n width: var(--spectrum-tabs-quiet-textonly-divider-size);\n }\n\n.spectrum-Tabs {\n border-bottom-color: var(--spectrum-tabs-textonly-divider-background-color);\n}\n\n[dir="ltr"] .spectrum-Tabs--vertical {\n border-left-color: var(--spectrum-tabs-vertical-textonly-divider-background-color);\n}\n\n[dir="rtl"] .spectrum-Tabs--vertical {\n border-right-color: var(--spectrum-tabs-vertical-textonly-divider-background-color);\n}\n\n.spectrum-Tabs-selectionIndicator {\n background-color: var(--spectrum-tabs-textonly-tabitem-selection-indicator-background-color-selected);\n}\n\n.spectrum-Tabs--emphasized .spectrum-Tabs-selectionIndicator {\n background-color: var(--spectrum-tabs-emphasized-texticon-tabitem-selection-indicator-background-color-selected);\n }\n\n.spectrum-Tabs-item {\n color: var(--spectrum-tabs-textonly-tabitem-text-color);\n}\n\n.spectrum-Tabs-item .spectrum-Icon {\n color: var(--spectrum-tabs-textonly-tabitem-icon-color)\n }\n\n.spectrum-Tabs-item:hover {\n color: var(--spectrum-tabs-textonly-tabitem-text-color-hover);\n }\n\n.spectrum-Tabs-item:hover .spectrum-Icon {\n color: var(--spectrum-tabs-textonly-tabitem-icon-color-hover)\n }\n\n.spectrum-Tabs-item.is-selected {\n color: var(--spectrum-tabs-textonly-tabitem-text-color-selected);\n }\n\n.spectrum-Tabs-item.is-selected .spectrum-Icon {\n color: var(--spectrum-tabs-textonly-tabitem-icon-color-selected);\n }\n\n.spectrum-Tabs-item.focus-ring {\n color: var(--spectrum-tabs-textonly-tabitem-text-color-selected-key-focus);\n }\n\n.spectrum-Tabs-item.focus-ring::before {\n border-color: var(--spectrum-tabs-textonly-tabitem-focus-ring-border-color-key-focus);\n }\n\n.spectrum-Tabs-item.focus-ring .spectrum-Icon {\n color: var(--spectrum-tabs-textonly-tabitem-icon-color-selected-key-focus)\n }\n\n.spectrum-Tabs-item.is-disabled {\n color: var(--spectrum-tabs-textonly-tabitem-text-color-disabled);\n }\n\n.spectrum-Tabs-item.is-disabled .spectrum-Icon {\n color: var(--spectrum-tabs-textonly-tabitem-icon-color-disabled)\n }\n\n.spectrum-Tabs--emphasized .spectrum-Tabs-item.is-selected {\n color: var(--spectrum-tabs-emphasized-texticon-tabitem-text-color-selected);\n }\n\n.spectrum-Tabs--emphasized .spectrum-Tabs-item.is-selected .spectrum-Icon {\n color: var(--spectrum-tabs-emphasized-texticon-tabitem-icon-color-selected);\n }\n\n.spectrum-Tabs--quiet {\n border-bottom-color: var(--spectrum-tabs-quiet-textonly-divider-background-color);\n}\n\n.spectrum-Tabs--quiet .spectrum-Tabs-selectionIndicator {\n background-color: var(--spectrum-tabs-quiet-textonly-tabitem-selection-indicator-background-color-selected);\n }\n\n.spectrum-Tabs--quiet.spectrum-Tabs--emphasized .spectrum-Tabs-selectionIndicator {\n background-color: var(--spectrum-tabs-emphasized-texticon-tabitem-selection-indicator-background-color-selected);\n }\n\n[dir="ltr"] .spectrum-Tabs--vertical.spectrum-Tabs--quiet,[dir="ltr"] \n .spectrum-Tabs--vertical.spectrum-Tabs--compact {\n border-left-color: var(--spectrum-tabs-vertical-quiet-textonly-divider-background-color);\n}\n\n[dir="rtl"] .spectrum-Tabs--vertical.spectrum-Tabs--quiet,[dir="rtl"] \n .spectrum-Tabs--vertical.spectrum-Tabs--compact {\n border-right-color: var(--spectrum-tabs-vertical-quiet-textonly-divider-background-color);\n}\n\n.spectrum-Tabs--vertical.spectrum-Tabs--quiet .spectrum-Tabs-selectionIndicator, .spectrum-Tabs--vertical.spectrum-Tabs--compact .spectrum-Tabs-selectionIndicator {\n background-color: var(--spectrum-tabs-vertical-textonly-tabitem-selection-indicator-background-color-selected);\n }\n\n[dir="ltr"] .spectrum-Tabs--vertical.spectrum-Tabs--emphasized {\n border-left-color: var(--spectrum-tabs-emphasized-textonly-divider-background-color);\n}\n\n[dir="rtl"] .spectrum-Tabs--vertical.spectrum-Tabs--emphasized {\n border-right-color: var(--spectrum-tabs-emphasized-textonly-divider-background-color);\n}\n\n.spectrum-Tabs--vertical.spectrum-Tabs--emphasized .spectrum-Tabs-selectionIndicator {\n background-color: var(--spectrum-tabs-emphasized-texticon-tabitem-selection-indicator-background-color-selected);\n }\n\n@media (forced-colors: active) {\n .spectrum-Tabs {\n --spectrum-tabs-emphasized-texticon-tabitem-icon-color-selected: HighlightText;\n --spectrum-tabs-emphasized-texticon-tabitem-selection-indicator-background-color-selected: Highlight;\n --spectrum-tabs-emphasized-texticon-tabitem-text-color-selected: HighlightText;\n --spectrum-tabs-emphasized-textonly-divider-background-color: transparent;\n --spectrum-tabs-quiet-textonly-divider-background-color: transparent;\n --spectrum-tabs-quiet-textonly-tabitem-selection-indicator-background-color-selected: Highlight;\n --spectrum-tabs-textonly-divider-background-color: transparent;\n --spectrum-tabs-textonly-tabitem-focus-ring-border-color-key-focus: ButtonText;\n --spectrum-tabs-textonly-tabitem-icon-color-disabled: GrayText;\n --spectrum-tabs-textonly-tabitem-icon-color-hover: ButtonText;\n --spectrum-tabs-textonly-tabitem-icon-color-selected-key-focus: ButtonText;\n --spectrum-tabs-textonly-tabitem-icon-color-selected: HighlightText;\n --spectrum-tabs-textonly-tabitem-selection-indicator-background-color-selected: Highlight;\n --spectrum-tabs-textonly-tabitem-text-color-disabled: GrayText;\n --spectrum-tabs-textonly-tabitem-text-color-hover: ButtonText;\n --spectrum-tabs-textonly-tabitem-text-color-selected-key-focus: ButtonText;\n --spectrum-tabs-textonly-tabitem-text-color-selected: HighlightText;\n --spectrum-tabs-textonly-tabitem-text-color: ButtonText;\n --spectrum-tabs-vertical-quiet-textonly-divider-background-color: transparent;\n --spectrum-tabs-vertical-textonly-divider-background-color: transparent;\n --spectrum-tabs-vertical-textonly-tabitem-selection-indicator-background-color-selected: Highlight;\n forced-color-adjust: none;\n }\n .spectrum-Tabs .spectrum-Tabs-item:before {\n background-color: ButtonFace;\n }\n\n .spectrum-Tabs .spectrum-Tabs-item .spectrum-Icon {\n z-index: 1;\n position: relative;\n }\n\n .spectrum-Tabs .spectrum-Tabs-item .spectrum-Tabs-itemLabel {\n position: relative;\n z-index: 1;\n }\n\n .spectrum-Tabs .is-selected {\n color: HighlightText;\n }\n\n .spectrum-Tabs .is-selected .spectrum-Icon {\n color: HighlightText;\n }\n\n .spectrum-Tabs .is-selected:before {\n background-color: Highlight;\n color: HighlightText;\n }\n\n .spectrum-Tabs .is-selected .spectrum-Tabs-itemLabel {\n color: HighlightText;\n }\n .spectrum-Tabs.spectrum-Tabs--emphasized .spectrum-Tabs-item:before {\n background-color: ButtonFace;\n }\n\n .spectrum-Tabs.spectrum-Tabs--emphasized .spectrum-Tabs-item .spectrum-Icon {\n z-index: 1;\n position: relative;\n }\n\n .spectrum-Tabs.spectrum-Tabs--emphasized .spectrum-Tabs-item .spectrum-Tabs-itemLabel {\n position: relative;\n z-index: 1;\n }\n\n .spectrum-Tabs.spectrum-Tabs--emphasized .is-selected {\n color: HighlightText;\n }\n\n .spectrum-Tabs.spectrum-Tabs--emphasized .is-selected .spectrum-Icon {\n color: HighlightText;\n }\n\n .spectrum-Tabs.spectrum-Tabs--emphasized .is-selected:before {\n background-color: Highlight;\n color: HighlightText;\n }\n\n .spectrum-Tabs.spectrum-Tabs--emphasized .is-selected .spectrum-Tabs-itemLabel {\n color: HighlightText;\n }\n}\n');function Lk(e){let t;return{c(){t=Y("div"),ie(t,"class","spectrum-Tabs-selectionIndicator svelte-jku8bn"),fe(t,"width",e[11]),fe(t,"height",e[12]),fe(t,"left",e[10]),fe(t,"top",e[9]),ye(t,"emphasized",e[4])},m(e,r){U(e,t,r)},p(e,r){2048&r&&fe(t,"width",e[11]),4096&r&&fe(t,"height",e[12]),1024&r&&fe(t,"left",e[10]),512&r&&fe(t,"top",e[9]),16&r&&ye(t,"emphasized",e[4])},d(e){e&&X(t)}}}function Ek(e){let t,r,n,i,a,o;const s=e[19].default,l=f(s,e,e[18],null);let c=e[7].info&&Lk(e);return{c(){t=Y("div"),l&&l.c(),r=J(),c&&c.c(),i=J(),a=Y("div"),ie(t,"class",n="spectrum-Tabs spectrum-Tabs--size"+e[6]+" svelte-jku8bn"),ye(t,"spectrum-Tabs--quiet",e[3]),ye(t,"noHorizPadding",e[2]),ye(t,"onTop",e[5]),ye(t,"spectrum-Tabs--vertical",e[0]),ye(t,"spectrum-Tabs--horizontal",!e[0]),ie(a,"class","spectrum-Tabs-content spectrum-Tabs-content-"+e[13]+" svelte-jku8bn"),ye(a,"noPadding",e[1])},m(n,s){U(n,t,s),l&&l.m(t,null),V(t,r),c&&c.m(t,null),e[20](t),U(n,i,s),U(n,a,s),o=!0},p(e,[r]){l&&l.p&&(!o||262144&r)&&y(l,s,e,e[18],o?b(s,e[18],r,null):x(e[18]),null),e[7].info?c?c.p(e,r):(c=Lk(e),c.c(),c.m(t,null)):c&&(c.d(1),c=null),(!o||64&r&&n!==(n="spectrum-Tabs spectrum-Tabs--size"+e[6]+" svelte-jku8bn"))&&ie(t,"class",n),72&r&&ye(t,"spectrum-Tabs--quiet",e[3]),68&r&&ye(t,"noHorizPadding",e[2]),96&r&&ye(t,"onTop",e[5]),65&r&&ye(t,"spectrum-Tabs--vertical",e[0]),65&r&&ye(t,"spectrum-Tabs--horizontal",!e[0]),2&r&&ye(a,"noPadding",e[1])},i(e){o||(lt(l,e),o=!0)},o(e){ct(l,e),o=!1},d(r){r&&X(t),l&&l.d(r),c&&c.d(),e[20](null),r&&X(i),r&&X(a)}}}function Ik(e,t,r){let n,i,{$$slots:a={},$$scope:o}=t,{selected:s}=t,{vertical:l=!1}=t,{noPadding:c=!1}=t,{noHorizPadding:u=!1}=t,{quiet:p=!1}=t,{emphasized:d=!1}=t,{onTop:h=!1}=t,{size:m="M"}=t,{beforeSwitch:f=null}=t,v="_"+Math.random().toString(36).slice(2,9);const b=Ut({title:s,id:v,emphasized:d});let y;g(e,b,(e=>r(7,n=e))),He("tab",b);const x=De();let w,z,k,A;function C(){l?r(12,A=n.info?.height+4+"px"):r(11,k=n.info?.width+"px")}function S(){l?r(9,w=n.info?.top-y?.getBoundingClientRect().top+"px"):r(10,z=n.info?.left-y?.getBoundingClientRect().left+"px")}return Ee((()=>{C(),S()})),e.$$set=e=>{"selected"in e&&r(15,s=e.selected),"vertical"in e&&r(0,l=e.vertical),"noPadding"in e&&r(1,c=e.noPadding),"noHorizPadding"in e&&r(2,u=e.noHorizPadding),"quiet"in e&&r(3,p=e.quiet),"emphasized"in e&&r(4,d=e.emphasized),"onTop"in e&&r(5,h=e.onTop),"size"in e&&r(6,m=e.size),"beforeSwitch"in e&&r(16,f=e.beforeSwitch),"$$scope"in e&&r(18,o=e.$$scope)},e.$$.update=()=>{if(229504&e.$$.dirty){if(i!==s)r(17,i=s),x("select",i);else if(n.title!==i)if("function"==typeof f){f(n.title)&&(r(17,i=n.title),r(15,s=n.title),x("select",i))}else r(17,i=n.title),r(15,s=n.title),x("select",i);n.title!==i&&b.update((e=>(e.title=i,e)))}128&e.$$.dirty&&C(),128&e.$$.dirty&&S()},[l,c,u,p,d,h,m,n,y,w,z,k,A,v,b,s,f,i,o,a,function(e){Fe[e?"unshift":"push"]((()=>{y=e,r(8,y)}))}]}Gt(".spectrum-Tabs--quiet.svelte-jku8bn.svelte-jku8bn{border-bottom:none !important}.spectrum-Tabs.svelte-jku8bn.svelte-jku8bn{padding-left:var(--spacing-xl);padding-right:var(--spacing-xl);position:relative;border-bottom-color:var(--spectrum-global-color-gray-200)}.spectrum-Tabs-content.svelte-jku8bn.svelte-jku8bn{margin-top:var(--spectrum-global-dimension-static-size-150)}.spectrum-Tabs-selectionIndicator.svelte-jku8bn.svelte-jku8bn{transition:all 200ms;background-color:var(--spectrum-global-color-gray-900)}.spectrum-Tabs-selectionIndicator.emphasized.svelte-jku8bn.svelte-jku8bn{background-color:var(--spectrum-global-color-blue-400)}.noHorizPadding.svelte-jku8bn.svelte-jku8bn{padding:0}.noPadding.svelte-jku8bn.svelte-jku8bn{margin:0}.onTop.svelte-jku8bn.svelte-jku8bn{z-index:100}");class Bk extends Ot{constructor(e){super(),Ht(this,e,Ik,Ek,c,{selected:15,vertical:0,noPadding:1,noHorizPadding:2,quiet:3,emphasized:4,onTop:5,size:6,beforeSwitch:16})}}function Dk(e){let t,r,n;return{c(){t=Z("svg"),r=Z("use"),se(r,"xlink:href",n="#spectrum-icon-18-"+e[1]),ie(t,"class","spectrum-Icon spectrum-Icon--sizeM"),ie(t,"focusable","false"),ie(t,"aria-hidden","true"),ie(t,"aria-label","Folder")},m(e,n){U(e,t,n),V(t,r)},p(e,t){2&t&&n!==(n="#spectrum-icon-18-"+e[1])&&se(r,"xlink:href",n)},d(e){e&&X(t)}}}function Hk(e){let t,r;return t=new Wr({props:{target:".spectrum-Tabs-content-"+e[4].id,$$slots:{default:[Ok]},$$scope:{ctx:e}}}),{c(){It(t.$$.fragment)},m(e,n){Bt(t,e,n),r=!0},p(e,r){const n={};16&r&&(n.target=".spectrum-Tabs-content-"+e[4].id),512&r&&(n.$$scope={dirty:r,ctx:e}),t.$set(n)},i(e){r||(lt(t.$$.fragment,e),r=!0)},o(e){ct(t.$$.fragment,e),r=!1},d(e){Dt(t,e)}}}function Ok(e){let t;const r=e[7].default,n=f(r,e,e[9],null);return{c(){n&&n.c()},m(e,r){n&&n.m(e,r),t=!0},p(e,i){n&&n.p&&(!t||512&i)&&y(n,r,e,e[9],t?b(r,e[9],i,null):x(e[9]),null)},i(e){t||(lt(n,e),t=!0)},o(e){ct(n,e),t=!1},d(e){n&&n.d(e)}}}function Pk(e){let t,r,n,i,a,o,s,l,c,u=e[1]&&Dk(e),p=e[4].title===e[0]&&Hk(e);return{c(){t=Y("div"),u&&u.c(),r=J(),n=Y("span"),i=K(e[0]),a=J(),p&&p.c(),o=Q(),ie(n,"class","spectrum-Tabs-itemLabel"),ie(t,"id",e[2]),ie(t,"class","spectrum-Tabs-item svelte-l8f5vh"),ie(t,"tabindex","0"),ye(t,"is-selected",e[4].title===e[0]),ye(t,"emphasized",e[4].title===e[0]&&e[4].emphasized)},m(d,h){U(d,t,h),u&&u.m(t,null),V(t,r),V(t,n),V(n,i),e[8](t),U(d,a,h),p&&p.m(d,h),U(d,o,h),s=!0,l||(c=ee(t,"click",e[6]),l=!0)},p(e,[n]){e[1]?u?u.p(e,n):(u=Dk(e),u.c(),u.m(t,r)):u&&(u.d(1),u=null),(!s||1&n)&&me(i,e[0]),(!s||4&n)&&ie(t,"id",e[2]),17&n&&ye(t,"is-selected",e[4].title===e[0]),17&n&&ye(t,"emphasized",e[4].title===e[0]&&e[4].emphasized),e[4].title===e[0]?p?(p.p(e,n),17&n&<(p,1)):(p=Hk(e),p.c(),lt(p,1),p.m(o.parentNode,o)):p&&(ot(),ct(p,1,1,(()=>{p=null})),st())},i(e){s||(lt(p),s=!0)},o(e){ct(p),s=!1},d(r){r&&X(t),u&&u.d(),e[8](null),r&&X(a),p&&p.d(r),r&&X(o),l=!1,c()}}}function Rk(e,t,r){let n,{$$slots:i={},$$scope:a}=t,{title:o}=t,{icon:s=""}=t,{id:l}=t;const c=De();let u,p,d=Oe("tab");g(e,d,(e=>r(4,n=e)));const h=()=>{setTimeout((()=>{p=u?.getBoundingClientRect(),p&&n.title===o&&C(d,n.info=p,n)}),0)};Ee((()=>{h()}));return e.$$set=e=>{"title"in e&&r(0,o=e.title),"icon"in e&&r(1,s=e.icon),"id"in e&&r(2,l=e.id),"$$scope"in e&&r(9,a=e.$$scope)},e.$$.update=()=>{25&e.$$.dirty&&n.title===o&&u&&n.info?.left!==u.getBoundingClientRect().left&&h()},[o,s,l,u,n,d,()=>{C(d,n={...n,title:o,info:u.getBoundingClientRect()},n),c("click")},i,function(e){Fe[e?"unshift":"push"]((()=>{u=e,r(3,u)}))},a]}Gt(".emphasized.svelte-l8f5vh{color:var(--spectrum-global-color-blue-600)}.spectrum-Tabs-item.svelte-l8f5vh{color:var(--spectrum-global-color-gray-600)}.spectrum-Tabs-item.is-selected.svelte-l8f5vh,.spectrum-Tabs-item.svelte-l8f5vh:hover{color:var(--spectrum-global-color-gray-900)}");class Vk extends Ot{constructor(e){super(),Ht(this,e,Rk,Pk,c,{title:0,icon:1,id:2})}}Gt('.spectrum-TreeView {\n --spectrum-treeview-item-min-height: var(--spectrum-global-dimension-size-400);\n --spectrum-treeview-item-padding-y: var(--spectrum-global-dimension-size-75);\n --spectrum-treeview-item-icon-margin-right: var(--spectrum-global-dimension-size-125);\n --spectrum-treeview-item-affordance-width: var(--spectrum-global-dimension-size-400);\n --spectrum-treeview-item-indentation: var(--spectrum-global-dimension-size-200);\n --spectrum-treeview-heading-font-weight: var(--spectrum-global-font-weight-bold, 700);\n --spectrum-treeview-item-hover-offset: var(--spectrum-global-dimension-size-25);\n --spectrum-treeview-item-border-size-selected: var(--spectrum-alias-border-size-thin, var(--spectrum-global-dimension-static-size-10));\n\n --spectrum-treeview-item-height-layers: var(--spectrum-global-dimension-size-550);\n}\n\n.spectrum-TreeView {\n display: block;\n position: relative;\n\n padding: 0;\n\n list-style: none;\n outline: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.spectrum-TreeView-item {\n overflow: hidden;\n}\n\n[dir="ltr"] .spectrum-TreeView-item.is-open > .spectrum-TreeView-itemLink > .spectrum-TreeView-itemIndicator { transform: rotate(90deg); }\n\n[dir="rtl"] .spectrum-TreeView-item.is-open > .spectrum-TreeView-itemLink > .spectrum-TreeView-itemIndicator { transform: matrix(-1, 0, 0, 1, 0, 0) rotate(90deg); }\n\n.spectrum-TreeView-item.is-open > .spectrum-TreeView {\n height: auto;\n visibility: visible;\n }\n\n.spectrum-TreeView-item.is-drop-target .spectrum-TreeView-itemLink:before {\n border-width: var(--spectrum-treeview-item-border-size, var(--spectrum-global-dimension-static-size-25));\n }\n\n.spectrum-TreeView-item.is-selected .spectrum-TreeView-itemLink:not(.focus-ring):before {\n border-width: var(--spectrum-treeview-item-border-size-selected);\n }\n\n.spectrum-TreeView-itemLabel {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.spectrum-TreeView-itemLink {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n\n box-sizing: border-box;\n cursor: pointer;\n\n padding-top: var(--spectrum-treeview-item-padding-y, var(--spectrum-global-dimension-static-size-100));\n\n padding-bottom: var(--spectrum-treeview-item-padding-y, var(--spectrum-global-dimension-static-size-100));\n padding-left: var(--spectrum-treeview-item-affordance-width);\n padding-right: var(--spectrum-treeview-item-affordance-width);\n\n text-decoration: none;\n\n height: var(--spectrum-treeview-item-min-height);\n white-space: nowrap;\n overflow: hidden;\n\n outline: none;\n}\n\n[dir="ltr"] .spectrum-TreeView-itemLink .spectrum-TreeView-itemIcon {\n margin-right: var(--spectrum-treeview-item-icon-margin-right);\n}\n\n[dir="rtl"] .spectrum-TreeView-itemLink .spectrum-TreeView-itemIcon {\n margin-left: var(--spectrum-treeview-item-icon-margin-right);\n}\n\n.spectrum-TreeView-itemLink .spectrum-TreeView-itemIcon {\n vertical-align: top;\n }\n\n[dir="ltr"] .spectrum-TreeView-itemLink:before {\n left: var(--spectrum-treeview-item-border-size, var(--spectrum-global-dimension-static-size-25));\n}\n\n[dir="rtl"] .spectrum-TreeView-itemLink:before {\n right: var(--spectrum-treeview-item-border-size, var(--spectrum-global-dimension-static-size-25));\n}\n\n[dir="ltr"] .spectrum-TreeView-itemLink:before {\n right: 0;\n}\n\n[dir="rtl"] .spectrum-TreeView-itemLink:before {\n left: 0;\n}\n\n.spectrum-TreeView-itemLink:before {\n content: \'\';\n\n box-sizing: border-box;\n\n position: absolute;\n\n height: calc(var(--spectrum-treeview-item-height, var(--spectrum-global-dimension-size-450)) - var(--spectrum-treeview-item-hover-offset) * 2);\n\n border-style: solid;\n border-color: transparent;\n border-width: var(--spectrum-treeview-item-border-size, var(--spectrum-global-dimension-static-size-25)) 0 var(--spectrum-treeview-item-border-size, var(--spectrum-global-dimension-static-size-25)) 0;\n background-color: transparent;\n }\n\n.spectrum-TreeView-itemLink.focus-ring:before {\n border-width: var(--spectrum-treeview-item-border-size, var(--spectrum-global-dimension-static-size-25));\n }\n\n.spectrum-TreeView--standalone .spectrum-TreeView-itemLink:before {\n border-radius: var(--spectrum-treeview-item-border-radius, var(--spectrum-alias-border-radius-regular));\n border-width: var(--spectrum-treeview-item-border-size, var(--spectrum-global-dimension-static-size-25));\n }\n\n[dir="ltr"] .spectrum-TreeView--thumbnail .spectrum-TreeView-itemThumbnail {\n margin-right: var(--spectrum-treeview-item-icon-margin-right);\n}\n\n[dir="rtl"] .spectrum-TreeView--thumbnail .spectrum-TreeView-itemThumbnail {\n margin-left: var(--spectrum-treeview-item-icon-margin-right);\n}\n\n.spectrum-TreeView--thumbnail .spectrum-TreeView-itemLink {\n height: var(--spectrum-treeview-item-height-layers);\n }\n\n.spectrum-TreeView--thumbnail .spectrum-TreeView-itemLink:before {\n height: var(--spectrum-treeview-item-height-layers);\n }\n\n[dir="ltr"] .spectrum-TreeView-itemIndicator {\n\n float: left;\n}\n\n[dir="rtl"] .spectrum-TreeView-itemIndicator {\n\n float: right;\n}\n\n[dir="ltr"] .spectrum-TreeView-itemIndicator {\n\n left: var(--spectrum-global-dimension-size-125);\n}\n\n[dir="rtl"] .spectrum-TreeView-itemIndicator {\n\n right: var(--spectrum-global-dimension-size-125);\n}\n\n[dir="ltr"] .spectrum-TreeView-itemIndicator {\n margin-left: calc(-1 * var(--spectrum-global-dimension-size-500));\n}\n\n[dir="rtl"] .spectrum-TreeView-itemIndicator {\n margin-right: calc(-1 * var(--spectrum-global-dimension-size-500));\n}\n\n[dir="ltr"] .spectrum-TreeView-itemIndicator {\n margin-right: var(--spectrum-global-dimension-size-85);\n}\n\n[dir="rtl"] .spectrum-TreeView-itemIndicator {\n margin-left: var(--spectrum-global-dimension-size-85);\n}\n\n[dir="rtl"] .spectrum-TreeView-itemIndicator { transform: matrix(-1, 0, 0, 1, 0, 0) ; }\n\n.spectrum-TreeView-itemIndicator {\n display: block;\n box-sizing: content-box;\n position: relative;\n z-index: 1;\n top: calc(-1 * var(--spectrum-global-dimension-size-65));\n margin-bottom: calc(-1 * var(--spectrum-global-dimension-size-125));\n\n padding-left: var(--spectrum-global-dimension-size-150);\n\n padding-right: var(--spectrum-global-dimension-size-150);\n padding-top: var(--spectrum-global-dimension-size-125);\n padding-bottom: var(--spectrum-global-dimension-size-125);\n transition: transform ease var(--spectrum-global-animation-duration-100, 130ms);\n\n pointer-events: all !important;\n}\n\n[dir="ltr"] .spectrum-TreeView .spectrum-TreeView {\n\n padding-left: var(--spectrum-treeview-item-indentation);\n}\n\n[dir="rtl"] .spectrum-TreeView .spectrum-TreeView {\n\n padding-right: var(--spectrum-treeview-item-indentation);\n}\n\n.spectrum-TreeView .spectrum-TreeView {\n position: static;\n height: 0;\n visibility: hidden;\n}\n\n[dir="ltr"] .spectrum-TreeView-item--indent1 {\n padding-left: var(--spectrum-treeview-item-indentation);\n}\n\n[dir="rtl"] .spectrum-TreeView-item--indent1 {\n padding-right: var(--spectrum-treeview-item-indentation);\n}\n\n[dir="ltr"] .spectrum-TreeView-item--indent2 {\n padding-left: calc(2 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="rtl"] .spectrum-TreeView-item--indent2 {\n padding-right: calc(2 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="ltr"] .spectrum-TreeView-item--indent3 {\n padding-left: calc(3 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="rtl"] .spectrum-TreeView-item--indent3 {\n padding-right: calc(3 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="ltr"] .spectrum-TreeView-item--indent4 {\n padding-left: calc(4 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="rtl"] .spectrum-TreeView-item--indent4 {\n padding-right: calc(4 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="ltr"] .spectrum-TreeView-item--indent5 {\n padding-left: calc(5 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="rtl"] .spectrum-TreeView-item--indent5 {\n padding-right: calc(5 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="ltr"] .spectrum-TreeView-item--indent6 {\n padding-left: calc(6 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="rtl"] .spectrum-TreeView-item--indent6 {\n padding-right: calc(6 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="ltr"] .spectrum-TreeView-item--indent7 {\n padding-left: calc(7 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="rtl"] .spectrum-TreeView-item--indent7 {\n padding-right: calc(7 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="ltr"] .spectrum-TreeView-item--indent8 {\n padding-left: calc(8 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="rtl"] .spectrum-TreeView-item--indent8 {\n padding-right: calc(8 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="ltr"] .spectrum-TreeView-item--indent9 {\n padding-left: calc(9 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="rtl"] .spectrum-TreeView-item--indent9 {\n padding-right: calc(9 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="ltr"] .spectrum-TreeView-item--indent10 {\n padding-left: calc(10 * var(--spectrum-treeview-item-indentation));\n}\n\n[dir="rtl"] .spectrum-TreeView-item--indent10 {\n padding-right: calc(10 * var(--spectrum-treeview-item-indentation));\n}\n\n.spectrum-TreeView-heading {\n padding: var(--spectrum-treeview-item-padding-y, var(--spectrum-global-dimension-static-size-100));\n font-weight: var(--spectrum-treeview-heading-font-weight);\n}\n\n.spectrum-TreeView-heading:not(:first-child) {\n margin-top: var(--spectrum-global-dimension-size-200);\n }\n\n.spectrum-TreeView {\n --spectrum-treeview-item-background-color-selected: var(--spectrum-alias-highlight-selected);\n\n --spectrum-treeview-item-background-color-quiet-selected: var(--spectrum-alias-highlight-hover);\n --spectrum-treeview-item-icon-color: var(--spectrum-alias-icon-color, var(--spectrum-global-color-gray-700));\n --spectrum-treeview-item-icon-color-hover: var(--spectrum-alias-icon-color-hover, var(--spectrum-global-color-gray-900));\n --spectrum-treeview-item-icon-color-focus: var(--spectrum-alias-icon-color-focus, var(--spectrum-global-color-gray-900));\n --spectrum-treeview-item-icon-color-selected: var(--spectrum-alias-icon-color-selected-neutral, var(--spectrum-global-color-gray-900));\n --spectrum-treeview-item-icon-color-disabled: var(--spectrum-alias-icon-color-disabled, var(--spectrum-global-color-gray-400));\n --spectrum-treeview-item-text-color-focus: var(--spectrum-alias-text-color-down, var(--spectrum-global-color-gray-900));\n --spectrum-treeview-item-text-color-selected: var(--spectrum-alias-text-color-selected-neutral, var(--spectrum-global-color-gray-900));\n --spectrum-treeview-item-text-color-disabled: var(--spectrum-alias-text-color-disabled, var(--spectrum-global-color-gray-500));\n}\n\n.spectrum-TreeView-item.is-disabled > .spectrum-TreeView-itemLink {\n color: var(--spectrum-treeview-item-text-color-disabled);\n }\n\n.spectrum-TreeView-item.is-disabled > .spectrum-TreeView-itemLink .spectrum-Icon {\n color: var(--spectrum-treeview-item-icon-color-disabled);\n }\n\n.spectrum-TreeView-item.is-selected > .spectrum-TreeView-itemLink {\n color: var(--spectrum-treeview-item-text-color-selected);\n }\n\n.spectrum-TreeView-item.is-selected > .spectrum-TreeView-itemLink:before {\n background-color: var(--spectrum-treeview-item-background-color-selected);\n border-color: var(--spectrum-treeview-item-border-color-key-focus, var(--spectrum-alias-focus-color));\n }\n\n.spectrum-TreeView-item.is-selected > .spectrum-TreeView-itemLink .spectrum-TreeView-itemIcon {\n color: var(--spectrum-treeview-item-icon-color-selected);\n }\n\n.spectrum-TreeView-item.is-drop-target > .spectrum-TreeView-itemLink:before {\n background-color: var(--spectrum-alias-highlight-selected);\n border-color: var(--spectrum-treeview-item-border-color-key-focus, var(--spectrum-alias-focus-color));\n }\n\n.spectrum-TreeView--quiet .spectrum-TreeView-item.is-selected > .spectrum-TreeView-itemLink:before {\n background-color: var(--spectrum-treeview-item-background-color-quiet-selected);\n border-color: transparent;\n }\n\n.spectrum-TreeView--quiet .spectrum-TreeView-item.is-selected > .spectrum-TreeView-itemLink.focus-ring:before {\n border-color: var(--spectrum-treeview-item-border-color-key-focus, var(--spectrum-alias-focus-color));\n }\n\n.spectrum-TreeView-itemIcon {\n color: var(--spectrum-treeview-item-icon-color);\n}\n\n.spectrum-TreeView-itemLink {\n color: var(--spectrum-treeview-item-text-color, var(--spectrum-global-color-gray-800));\n}\n\n.spectrum-TreeView-itemLink:hover {\n color: var(--spectrum-treeview-item-text-color-hover, var(--spectrum-global-color-gray-900));\n }\n\n.spectrum-TreeView-itemLink:hover:before {\n background-color: var(--spectrum-treeview-item-background-color-hover, var(--spectrum-alias-background-color-hover-overlay));\n }\n\n.spectrum-TreeView-itemLink:hover .spectrum-TreeView-itemIcon {\n color: var(--spectrum-treeview-item-icon-color-hover);\n }\n\n.spectrum-TreeView-itemLink.focus-ring {\n color: var(--spectrum-treeview-item-text-color-focus);\n }\n\n.spectrum-TreeView-itemLink.focus-ring::before {\n background-color: var(--spectrum-treeview-item-background-color-key-focus, var(--spectrum-alias-background-color-hover-overlay));\n\n border-color: var(--spectrum-treeview-item-border-color-key-focus, var(--spectrum-alias-focus-color));\n }\n\n.spectrum-TreeView-itemLink.focus-ring .spectrum-TreeView-itemIcon {\n color: var(--spectrum-treeview-item-icon-color-focus);\n }\n');Gt('.spectrum-Pagination--explicit,\n.spectrum-Pagination--listing {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.spectrum-Pagination-textfield {\n width: var(--spectrum-pagination-textfield-width, var(--spectrum-global-dimension-size-600));\n min-width: var(--spectrum-pagination-textfield-width, var(--spectrum-global-dimension-size-600));\n}\n\n[dir="ltr"] .spectrum-Pagination-counter {\n margin-left: var(--spectrum-pagination-counter-margin-left, var(--spectrum-global-dimension-size-65));\n}\n\n[dir="rtl"] .spectrum-Pagination-counter {\n margin-right: var(--spectrum-pagination-counter-margin-left, var(--spectrum-global-dimension-size-65));\n}\n\n[dir="ltr"] .spectrum-Pagination-prevButton {\n margin-right: var(--spectrum-pagination-page-button-margin-horizontal, var(--spectrum-global-dimension-size-65));\n}\n\n[dir="rtl"] .spectrum-Pagination-prevButton {\n margin-left: var(--spectrum-pagination-page-button-margin-horizontal, var(--spectrum-global-dimension-size-65));\n}\n\n[dir="ltr"] .spectrum-Pagination-nextButton {\n margin-left: var(--spectrum-pagination-page-button-margin-horizontal, var(--spectrum-global-dimension-size-65));\n}\n\n[dir="rtl"] .spectrum-Pagination-nextButton {\n margin-right: var(--spectrum-pagination-page-button-margin-horizontal, var(--spectrum-global-dimension-size-65));\n}\n\n[dir="rtl"] .spectrum-Pagination-prevButton .spectrum-Icon,[dir="rtl"] .spectrum-Pagination-nextButton .spectrum-Icon { transform: matrix(-1, 0, 0, 1, 0, 0) ; }\n\n.spectrum-Pagination-pageButton:hover {\n background-color: var(--spectrum-pagination-page-button-background-color-hover, var(--spectrum-alias-background-color-hover-overlay));\n }\n\n.spectrum-Pagination-pageButton:focus {\n border-color: var(--spectrum-pagination-page-button-border-color-key-focus, var(--spectrum-alias-focus-color));\n }\n\n.spectrum-Pagination-pageButton.is-selected {\n background-color: var(--spectrum-pagination-page-button-background-color-down, var(--spectrum-global-color-gray-800));\n color: var(--spectrum-pagination-page-button-text-color-down, var(--spectrum-global-color-static-white));\n }\n\n.spectrum-Pagination-counter {\n color: var(--spectrum-alias-label-text-color, var(--spectrum-global-color-gray-700));\n}\n');function Nk(e){let r,n,i,a,o,c,u,p,d,h;return{c(){r=Y("nav"),n=Y("div"),n.innerHTML='<svg class="spectrum-Icon spectrum-UIIcon-ChevronLeft100" focusable="false" aria-hidden="true" aria-label="ChevronLeft"><use xlink:href="#spectrum-css-icon-Chevron100"></use></svg>',i=J(),a=Y("span"),o=K("Page "),c=K(e[0]),u=J(),p=Y("div"),p.innerHTML='<svg class="spectrum-Icon spectrum-UIIcon-ChevronRight100" focusable="false" aria-hidden="true" aria-label="ChevronLeft"><use xlink:href="#spectrum-css-icon-Chevron100"></use></svg>',ie(n,"href","#"),ie(n,"class","spectrum-ActionButton spectrum-ActionButton--sizeM spectrum-ActionButton--quiet spectrum-Pagination-prevButton svelte-1w0vi9g"),ye(n,"is-disabled",!e[3]),ie(a,"class","spectrum-Body--secondary spectrum-Pagination-counter svelte-1w0vi9g"),ie(p,"href","#"),ie(p,"class","spectrum-ActionButton spectrum-ActionButton--sizeM spectrum-ActionButton--quiet spectrum-Pagination-nextButton svelte-1w0vi9g"),ye(p,"is-disabled",!e[4]),ie(r,"class","spectrum-Pagination spectrum-Pagination--explicit")},m(t,s){U(t,r,s),V(r,n),V(r,i),V(r,a),V(a,o),V(a,c),V(r,u),V(r,p),d||(h=[ee(n,"click",(function(){l(e[3]?e[1]:null)&&(e[3]?e[1]:null).apply(this,arguments)})),ee(p,"click",(function(){l(e[4]?e[2]:null)&&(e[4]?e[2]:null).apply(this,arguments)}))],d=!0)},p(t,[r]){e=t,8&r&&ye(n,"is-disabled",!e[3]),1&r&&me(c,e[0]),16&r&&ye(p,"is-disabled",!e[4])},i:t,o:t,d(e){e&&X(r),d=!1,s(h)}}}function Fk(e,t,r){let{page:n}=t,{goToPrevPage:i}=t,{goToNextPage:a}=t,{hasPrevPage:o=!0}=t,{hasNextPage:s=!0}=t;return e.$$set=e=>{"page"in e&&r(0,n=e.page),"goToPrevPage"in e&&r(1,i=e.goToPrevPage),"goToNextPage"in e&&r(2,a=e.goToNextPage),"hasPrevPage"in e&&r(3,o=e.hasPrevPage),"hasNextPage"in e&&r(4,s=e.hasNextPage)},[n,i,a,o,s]}Gt(".spectrum-Pagination-counter.svelte-1w0vi9g{margin-left:0;user-select:none}.is-disabled.svelte-1w0vi9g:hover{cursor:initial}");class jk extends Ot{constructor(e){super(),Ht(this,e,Fk,Nk,c,{page:0,goToPrevPage:1,goToNextPage:2,hasPrevPage:3,hasNextPage:4})}}function qk(e,t,r){const n=e.slice();return n[21]=t[r],n}function Uk(e,t,r){const n=e.slice();return n[24]=t[r],n}function Wk(e){let t,r;return t=new sr({props:{name:"Checkmark",size:"S"}}),{c(){It(t.$$.fragment)},m(e,n){Bt(t,e,n),r=!0},i(e){r||(lt(t.$$.fragment,e),r=!0)},o(e){ct(t.$$.fragment,e),r=!1},d(e){Dt(t,e)}}}function Xk(e){let t,r,n,i,a,o,s=e[0]===`var(--spectrum-global-color-${e[24]})`&&Wk();function l(){return e[14](e[24])}return{c(){t=Y("div"),r=Y("div"),s&&s.c(),ie(r,"class",n="fill "+(e[2]||"")+" svelte-ss6nt4"),fe(r,"background","var(--spectrum-global-color-"+e[24]+")"),fe(r,"color",e[7]),ie(t,"class","color svelte-ss6nt4"),ie(t,"title",e[11](e[24]))},m(e,n){U(e,t,n),V(t,r),s&&s.m(r,null),i=!0,a||(o=ee(t,"click",l),a=!0)},p(t,a){(e=t)[0]===`var(--spectrum-global-color-${e[24]})`?s?1&a&<(s,1):(s=Wk(),s.c(),lt(s,1),s.m(r,null)):s&&(ot(),ct(s,1,1,(()=>{s=null})),st()),(!i||4&a&&n!==(n="fill "+(e[2]||"")+" svelte-ss6nt4"))&&ie(r,"class",n),(!i||128&a)&&fe(r,"color",e[7])},i(e){i||(lt(s),i=!0)},o(e){ct(s),i=!1},d(e){e&&X(t),s&&s.d(),a=!1,o()}}}function Gk(e){let t,r,n,i,a,o,s=e[21].label+"",l=e[21].colors,c=[];for(let t=0;t<l.length;t+=1)c[t]=Xk(Uk(e,l,t));const u=e=>ct(c[e],1,1,(()=>{c[e]=null}));return{c(){t=Y("div"),r=Y("div"),n=K(s),i=J(),a=Y("div");for(let e=0;e<c.length;e+=1)c[e].c();ie(r,"class","heading svelte-ss6nt4"),ie(a,"class","colors svelte-ss6nt4"),ie(t,"class","category")},m(e,s){U(e,t,s),V(t,r),V(r,n),V(t,i),V(t,a);for(let e=0;e<c.length;e+=1)c[e].m(a,null);o=!0},p(e,t){if(3717&t){let r;for(l=e[21].colors,r=0;r<l.length;r+=1){const n=Uk(e,l,r);c[r]?(c[r].p(n,t),lt(c[r],1)):(c[r]=Xk(n),c[r].c(),lt(c[r],1),c[r].m(a,null))}for(ot(),r=l.length;r<c.length;r+=1)u(r);st()}},i(e){if(!o){for(let e=0;e<l.length;e+=1)lt(c[e]);o=!0}},o(e){c=c.filter(Boolean);for(let e=0;e<c.length;e+=1)ct(c[e]);o=!1},d(e){e&&X(t),G(c,e)}}}function Yk(e){let t,r,n,i,a,o,s,l,c,u,p=e[9],d=[];for(let t=0;t<p.length;t+=1)d[t]=Gk(qk(e,p,t));const h=e=>ct(d[e],1,1,(()=>{d[e]=null}));return s=new Tr({props:{updateOnChange:!1,quiet:!0,placeholder:"Hex, RGB, HSL...",value:e[8]}}),s.$on("change",e[15]),c=new sr({props:{size:"S",name:"Close",hoverable:!0}}),c.$on("click",e[16]),{c(){t=Y("div");for(let e=0;e<d.length;e+=1)d[e].c();r=J(),n=Y("div"),i=Y("div"),i.textContent="Custom",a=J(),o=Y("div"),It(s.$$.fragment),l=J(),It(c.$$.fragment),ie(i,"class","heading svelte-ss6nt4"),ie(o,"class","custom svelte-ss6nt4"),ie(n,"class","category category--custom svelte-ss6nt4"),ie(t,"class","container svelte-ss6nt4")},m(e,p){U(e,t,p);for(let e=0;e<d.length;e+=1)d[e].m(t,null);V(t,r),V(t,n),V(n,i),V(n,a),V(n,o),Bt(s,o,null),V(o,l),Bt(c,o,null),u=!0},p(e,n){if(3717&n){let i;for(p=e[9],i=0;i<p.length;i+=1){const a=qk(e,p,i);d[i]?(d[i].p(a,n),lt(d[i],1)):(d[i]=Gk(a),d[i].c(),lt(d[i],1),d[i].m(t,r))}for(ot(),i=p.length;i<d.length;i+=1)h(i);st()}const i={};256&n&&(i.value=e[8]),s.$set(i)},i(e){if(!u){for(let e=0;e<p.length;e+=1)lt(d[e]);lt(s.$$.fragment,e),lt(c.$$.fragment,e),u=!0}},o(e){d=d.filter(Boolean);for(let e=0;e<d.length;e+=1)ct(d[e]);ct(s.$$.fragment,e),ct(c.$$.fragment,e),u=!1},d(e){e&&X(t),G(d,e),Dt(s),Dt(c)}}}function Zk(e){let t,r;return t=new Ho({props:{paddingX:"XL",paddingY:"L",$$slots:{default:[Yk]},$$scope:{ctx:e}}}),{c(){It(t.$$.fragment)},m(e,n){Bt(t,e,n),r=!0},p(e,r){const n={};134218117&r&&(n.$$scope={dirty:r,ctx:e}),t.$set(n)},i(e){r||(lt(t.$$.fragment,e),r=!0)},o(e){ct(t.$$.fragment,e),r=!1},d(e){Dt(t,e)}}}function Kk(e){let t,r,n,i,a,o,s,l,c,u,p={anchor:e[6],maxHeight:320,offset:e[3],align:e[4],$$slots:{default:[Zk]},$$scope:{ctx:e}};return s=new tn({props:p}),e[17](s),{c(){t=Y("div"),r=Y("div"),o=J(),It(s.$$.fragment),ie(r,"class",n="fill "+(e[2]||"")+" svelte-ss6nt4"),ie(r,"style",i=e[0]?`background: ${e[0]};`:""),ye(r,"placeholder",!e[0]),ie(t,"class",a="preview size--"+(e[1]||"M")+" svelte-ss6nt4")},m(n,i){U(n,t,i),V(t,r),e[12](t),U(n,o,i),Bt(s,n,i),l=!0,c||(u=ee(t,"click",e[13]),c=!0)},p(e,[o]){(!l||4&o&&n!==(n="fill "+(e[2]||"")+" svelte-ss6nt4"))&&ie(r,"class",n),(!l||1&o&&i!==(i=e[0]?`background: ${e[0]};`:""))&&ie(r,"style",i),5&o&&ye(r,"placeholder",!e[0]),(!l||2&o&&a!==(a="preview size--"+(e[1]||"M")+" svelte-ss6nt4"))&&ie(t,"class",a);const c={};64&o&&(c.anchor=e[6]),8&o&&(c.offset=e[3]),16&o&&(c.align=e[4]),134218117&o&&(c.$$scope={dirty:o,ctx:e}),s.$set(c)},i(e){l||(lt(s.$$.fragment,e),l=!0)},o(e){ct(s.$$.fragment,e),l=!1},d(r){r&&X(t),e[12](null),r&&X(o),e[17](null),Dt(s,r),c=!1,u()}}}function Jk(e,t,r){let n,i,a,o,{value:s}=t,{size:l="M"}=t,{spectrumTheme:c}=t,{offset:u}=t,{align:p}=t;const d=De(),h=[{label:"Theme",colors:["gray-50","gray-75","gray-100","gray-200","gray-300","gray-400","gray-500","gray-600","gray-700","gray-800","gray-900"]},{label:"Colors",colors:["red-400","orange-400","yellow-400","green-400","seafoam-400","blue-400","indigo-400","magenta-400","red-500","orange-500","yellow-500","green-500","seafoam-500","blue-500","indigo-500","magenta-500","red-600","orange-600","yellow-600","green-600","seafoam-600","blue-600","indigo-600","magenta-600","red-700","orange-700","yellow-700","green-700","seafoam-700","blue-700","indigo-700","magenta-700","static-white","static-black"]}],m=e=>{d("change",e),a.hide()};return e.$$set=e=>{"value"in e&&r(0,s=e.value),"size"in e&&r(1,l=e.size),"spectrumTheme"in e&&r(2,c=e.spectrumTheme),"offset"in e&&r(3,u=e.offset),"align"in e&&r(4,p=e.align)},e.$$.update=()=>{1&e.$$.dirty&&r(8,n=(e=>{if(!e)return e;let t=!1;const r=e.substring(28,e.length-1);for(let e of h)if(t=e.colors.includes(r),t)break;return t?null:e})(s)),1&e.$$.dirty&&r(7,i=(e=>e?.includes("gray")?/^.*(gray-(50|75|100|200|300|400|500))\)$/.test(e)?"var(--spectrum-global-color-gray-900)":"var(--spectrum-global-color-gray-50)":e?.includes("static-black")?"var(--spectrum-global-color-static-gray-50)":"var(--spectrum-global-color-static-gray-900)")(s))},[s,l,c,u,p,a,o,i,n,h,m,e=>{return(t=e.split("-").join(" "))?t.substring(0,1).toUpperCase()+t.substring(1):t;var t},function(e){Fe[e?"unshift":"push"]((()=>{o=e,r(6,o)}))},()=>{a.toggle()},e=>{m(`var(--spectrum-global-color-${e})`)},function(t){Ve.call(this,e,t)},()=>m(null),function(e){Fe[e?"unshift":"push"]((()=>{a=e,r(5,a)}))}]}Gt(".container.svelte-ss6nt4.svelte-ss6nt4{position:relative}.preview.svelte-ss6nt4.svelte-ss6nt4{width:32px;height:32px;border-radius:100%;position:relative;transition:border-color 130ms ease-in-out;box-shadow:0 0 0 1px var(--spectrum-global-color-gray-400)}.preview.svelte-ss6nt4.svelte-ss6nt4:hover{cursor:pointer;box-shadow:0 0 2px 2px var(--spectrum-global-color-gray-400)}.fill.svelte-ss6nt4.svelte-ss6nt4{width:100%;height:100%;border-radius:100%;position:absolute;top:0;left:0;display:grid;place-items:center}.fill.placeholder.svelte-ss6nt4.svelte-ss6nt4{background-position:0 0, 10px 10px;background-size:20px 20px;background-image:linear-gradient(\n 45deg,\n #eee 25%,\n transparent 25%,\n transparent 75%,\n #eee 75%,\n #eee 100%\n ),\n linear-gradient(\n 45deg,\n #eee 25%,\n white 25%,\n white 75%,\n #eee 75%,\n #eee 100%\n )}.size--S.svelte-ss6nt4.svelte-ss6nt4{width:20px;height:20px}.size--M.svelte-ss6nt4.svelte-ss6nt4{width:32px;height:32px}.size--L.svelte-ss6nt4.svelte-ss6nt4{width:48px;height:48px}.colors.svelte-ss6nt4.svelte-ss6nt4{display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;gap:var(--spacing-xs)}.heading.svelte-ss6nt4.svelte-ss6nt4{font-size:var(--font-size-s);font-weight:600;letter-spacing:0.14px;flex:1 1 auto;text-transform:uppercase;grid-column:1 / 5;margin-bottom:var(--spacing-s)}.color.svelte-ss6nt4.svelte-ss6nt4{height:16px;width:16px;border-radius:100%;box-shadow:0 0 0 1px var(--spectrum-global-color-gray-300);position:relative}.color.svelte-ss6nt4.svelte-ss6nt4:hover{cursor:pointer;box-shadow:0 0 2px 2px var(--spectrum-global-color-gray-300)}.custom.svelte-ss6nt4.svelte-ss6nt4{display:grid;grid-template-columns:1fr auto;align-items:center;gap:var(--spacing-m);margin-right:var(--spacing-xs)}.category--custom.svelte-ss6nt4 .heading.svelte-ss6nt4{margin-bottom:var(--spacing-xs)}.container.svelte-ss6nt4.svelte-ss6nt4{display:flex;flex-direction:column;gap:var(--spacing-xl)}.spectrum-wrapper.svelte-ss6nt4.svelte-ss6nt4{background-color:transparent}");class Qk extends Ot{constructor(e){super(),Ht(this,e,Jk,Kk,c,{value:0,size:1,spectrumTheme:2,offset:3,align:4})}}Gt(".container.svelte-r1sbsa{position:relative}.preview.svelte-r1sbsa{width:32px;height:32px;position:relative;box-shadow:0 0 0 1px var(--spectrum-global-color-gray-400)}.preview.svelte-r1sbsa:hover{cursor:pointer}.fill.svelte-r1sbsa{width:100%;height:100%;position:absolute;top:0;left:0;display:grid;place-items:center}.size--S.svelte-r1sbsa{width:20px;height:20px}.size--M.svelte-r1sbsa{width:32px;height:32px}.size--L.svelte-r1sbsa{width:48px;height:48px}.spectrum-Popover.svelte-r1sbsa{width:210px;z-index:999;top:100%;padding:var(--spacing-l) var(--spacing-xl);display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:var(--spacing-xl)}.spectrum-Popover--align-right.svelte-r1sbsa{right:0}.icons.svelte-r1sbsa{display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr;gap:var(--spacing-m)}.heading.svelte-r1sbsa{font-size:var(--font-size-s);font-weight:600;letter-spacing:0.14px;flex:1 1 auto;text-transform:uppercase;grid-column:1 / 5;margin-bottom:var(--spacing-s)}.icon.svelte-r1sbsa{height:16px;width:16px;border-radius:100%;box-shadow:0 0 0 1px var(--spectrum-global-color-gray-300);position:relative}.icon.svelte-r1sbsa:hover{cursor:pointer;box-shadow:0 0 2px 2px var(--spectrum-global-color-gray-300)}.custom.svelte-r1sbsa{display:grid;grid-template-columns:1fr auto;align-items:center;gap:var(--spacing-m);margin-right:var(--spacing-xs)}.spectrum-wrapper.svelte-r1sbsa{background-color:transparent}");Gt('.spectrum-InLineAlert {\n --spectrum-inlinealert-neutral-title-height: 38px;\n --spectrum-inlinealert-neutral-corner-radius: 4px;\n --spectrum-inlinealert-neutral-border-width: 2px;\n}\n\n.spectrum-InLineAlert {\n position: relative;\n\n display: inline-block;\n box-sizing: border-box;\n min-width: var(--spectrum-inlinealert-neutral-min-width, var(--spectrum-global-dimension-static-size-4600));\n min-height: var(--spectrum-inlinealert-neutral-title-height);\n margin-top: 8px;\n margin-bottom: 8px;\n margin-left: 0;\n margin-right: 0;\n padding-top: var(--spectrum-inlinealert-neutral-padding-y, var(--spectrum-global-dimension-static-size-250));\n padding-bottom: var(--spectrum-inlinealert-neutral-padding-y, var(--spectrum-global-dimension-static-size-250));\n padding-left: var(--spectrum-inlinealert-neutral-padding-x, var(--spectrum-global-dimension-static-size-250));\n padding-right: var(--spectrum-inlinealert-neutral-padding-x, var(--spectrum-global-dimension-static-size-250));\n\n border-width: var(--spectrum-inlinealert-neutral-border-width);\n border-style: solid;\n border-radius: var(--spectrum-inlinealert-neutral-corner-radius);\n}\n\n[dir="ltr"] .spectrum-InLineAlert-icon {\n right: 20px;\n}\n\n[dir="rtl"] .spectrum-InLineAlert-icon {\n left: 20px;\n}\n\n.spectrum-InLineAlert-icon {\n position: absolute;\n display: block;\n top: 20px;\n}\n\n[dir="ltr"] .spectrum-InLineAlert-header {\n padding-right: 30px;\n}\n\n[dir="rtl"] .spectrum-InLineAlert-header {\n padding-left: 30px;\n}\n\n.spectrum-InLineAlert-header {\n display: inline-block;\n height: auto;\n min-height: 0;\n margin: 0;\n padding: 0;\n\n font-size: 14px;\n font-weight: 700;\n font-style: normal;\n line-height: 14px;\n text-transform: none;\n}\n\n.spectrum-InLineAlert-content {\n display: block;\n margin: var(--spectrum-inlinealert-neutral-content-margin-top, var(--spectrum-global-dimension-static-size-100)) 0 0 0;\n padding: 0;\n\n font-size: 14px;\n word-wrap: break-word;\n}\n\n[dir="ltr"] .spectrum-InLineAlert-footer {\n\n text-align: right;\n}\n\n[dir="rtl"] .spectrum-InLineAlert-footer {\n\n text-align: left;\n}\n\n.spectrum-InLineAlert-footer {\n display: block;\n\n padding-top: 0.5rem;\n}\n\n.spectrum-InLineAlert-footer:empty {\n display: none;\n }\n\n[dir="ltr"] .spectrum-InLineAlert-footer .spectrum-Button {\n margin-right: 0;\n}\n\n[dir="rtl"] .spectrum-InLineAlert-footer .spectrum-Button {\n margin-left: 0;\n}\n\n[dir="ltr"] .spectrum-InLineAlert-footer .spectrum-Button {\n margin-left: 0.75rem;\n}\n\n[dir="rtl"] .spectrum-InLineAlert-footer .spectrum-Button {\n margin-right: 0.75rem;\n}\n\n.spectrum-InLineAlert {\n background-color: var(--spectrum-inlinealert-neutral-background-color, var(--spectrum-global-color-gray-50));\n color: var(--spectrum-inlinealert-neutral-text-color, var(--spectrum-global-color-gray-700));\n}\n\n.spectrum-InLineAlert-header {\n color: var(--spectrum-inlinealert-neutral-title-text-color, var(--spectrum-global-color-gray-900));\n}\n\n.spectrum-InLineAlert-content {\n color: var(--spectrum-inlinealert-neutral-text-color, var(--spectrum-global-color-gray-700));\n}\n\n.spectrum-InLineAlert--info {\n border-color: var(--spectrum-inlinealert-info-border-color, var(--spectrum-semantic-informative-border-color));\n}\n\n.spectrum-InLineAlert--info .spectrum-InLineAlert-icon {\n color: var(--spectrum-inlinealert-info-icon-color, var(--spectrum-semantic-informative-icon-color));\n }\n\n.spectrum-InLineAlert--help {\n border-color: var(--spectrum-inlinealert-info-border-color, var(--spectrum-semantic-informative-border-color));\n}\n\n.spectrum-InLineAlert--help .spectrum-InLineAlert-icon {\n color: var(--spectrum-inlinealert-info-icon-color, var(--spectrum-semantic-informative-icon-color));\n }\n\n.spectrum-InLineAlert--error {\n border-color: var(--spectrum-inlinealert-error-border-color, var(--spectrum-semantic-negative-border-color));\n}\n\n.spectrum-InLineAlert--error .spectrum-InLineAlert-icon {\n color: var(--spectrum-inlinealert-error-icon-color, var(--spectrum-semantic-negative-icon-color));\n }\n\n.spectrum-InLineAlert--success {\n border-color: var(--spectrum-inlinealert-success-border-color, var(--spectrum-semantic-positive-border-color));\n}\n\n.spectrum-InLineAlert--success .spectrum-InLineAlert-icon {\n color: var(--spectrum-inlinealert-success-icon-color, var(--spectrum-semantic-positive-icon-color));\n }\n\n.spectrum-InLineAlert--negative {\n border-color: var(--spectrum-inlinealert-negative-border-color, var(--spectrum-semantic-notice-border-color));\n}\n\n.spectrum-InLineAlert--negative .spectrum-InLineAlert-icon {\n color: var(--spectrum-inlinealert-negative-icon-color, var(--spectrum-semantic-notice-icon-color));\n }\n');function eA(e,t,r){const n=e.slice();return n[8]=t[r],n}function tA(e){let t,r,n=e[8]+"";return{c(){t=Y("div"),r=K(n),ie(t,"class","spectrum-InLineAlert-content")},m(e,n){U(e,t,n),V(t,r)},p(e,t){32&t&&n!==(n=e[8]+"")&&me(r,n)},d(e){e&&X(t)}}}function rA(e){let t,r,n;return r=new za({props:{cta:e[4],secondary:!e[4],$$slots:{default:[nA]},$$scope:{ctx:e}}}),r.$on("click",(function(){l(e[2])&&e[2].apply(this,arguments)})),{c(){t=Y("div"),It(r.$$.fragment),ie(t,"class","spectrum-InLineAlert-footer button svelte-1dxkzv")},m(e,i){U(e,t,i),Bt(r,t,null),n=!0},p(t,n){e=t;const i={};16&n&&(i.cta=e[4]),16&n&&(i.secondary=!e[4]),2056&n&&(i.$$scope={dirty:n,ctx:e}),r.$set(i)},i(e){n||(lt(r.$$.fragment,e),n=!0)},o(e){ct(r.$$.fragment,e),n=!1},d(e){e&&X(t),Dt(r)}}}function nA(e){let t,r=(e[3]||"OK")+"";return{c(){t=K(r)},m(e,r){U(e,t,r)},p(e,n){8&n&&r!==(r=(e[3]||"OK")+"")&&me(t,r)},d(e){e&&X(t)}}}function iA(e){let t,r,n,i,a,o,s,l,c,u,p,d=e[5],h=[];for(let t=0;t<d.length;t+=1)h[t]=tA(eA(e,d,t));let m=e[2]&&rA(e);return{c(){t=Y("div"),r=Z("svg"),n=Z("use"),a=J(),o=Y("div"),s=K(e[1]),l=J();for(let e=0;e<h.length;e+=1)h[e].c();c=J(),m&&m.c(),se(n,"xlink:href",i="#spectrum-icon-18-"+e[6]),ie(r,"class","spectrum-Icon spectrum-Icon--sizeM spectrum-InLineAlert-icon"),ie(r,"focusable","false"),ie(r,"aria-hidden","true"),ie(o,"class","spectrum-InLineAlert-header"),ie(t,"class",u="spectrum-InLineAlert spectrum-InLineAlert--"+e[0]+" svelte-1dxkzv")},m(e,i){U(e,t,i),V(t,r),V(r,n),V(t,a),V(t,o),V(o,s),V(t,l);for(let e=0;e<h.length;e+=1)h[e].m(t,null);V(t,c),m&&m.m(t,null),p=!0},p(e,[r]){if((!p||64&r&&i!==(i="#spectrum-icon-18-"+e[6]))&&se(n,"xlink:href",i),(!p||2&r)&&me(s,e[1]),32&r){let n;for(d=e[5],n=0;n<d.length;n+=1){const i=eA(e,d,n);h[n]?h[n].p(i,r):(h[n]=tA(i),h[n].c(),h[n].m(t,c))}for(;n<h.length;n+=1)h[n].d(1);h.length=d.length}e[2]?m?(m.p(e,r),4&r&<(m,1)):(m=rA(e),m.c(),lt(m,1),m.m(t,null)):m&&(ot(),ct(m,1,1,(()=>{m=null})),st()),(!p||1&r&&u!==(u="spectrum-InLineAlert spectrum-InLineAlert--"+e[0]+" svelte-1dxkzv"))&&ie(t,"class",u)},i(e){p||(lt(m),p=!0)},o(e){ct(m),p=!1},d(e){e&&X(t),G(h,e),m&&m.d()}}}function aA(e,t,r){let n,i,{type:a="info"}=t,{header:o=""}=t,{message:s=""}=t,{onConfirm:l}=t,{buttonText:c=""}=t,{cta:u=!1}=t;return e.$$set=e=>{"type"in e&&r(0,a=e.type),"header"in e&&r(1,o=e.header),"message"in e&&r(7,s=e.message),"onConfirm"in e&&r(2,l=e.onConfirm),"buttonText"in e&&r(3,c=e.buttonText),"cta"in e&&r(4,u=e.cta)},e.$$.update=()=>{1&e.$$.dirty&&r(6,n=function(e){switch(e){case"error":case"negative":return"Alert";case"success":return"CheckmarkCircle";case"help":return"Help";default:return"Info"}}(a)),128&e.$$.dirty&&r(5,i=s.split("\n"))},[a,o,l,c,u,i,n,s]}Gt(".button.svelte-1dxkzv{margin-top:10px}.spectrum-InLineAlert.svelte-1dxkzv{--spectrum-semantic-negative-border-color:#e34850;--spectrum-semantic-positive-border-color:#2d9d78;--spectrum-semantic-positive-icon-color:#2d9d78;--spectrum-semantic-negative-icon-color:#e34850;min-width:100px;margin:0;border-width:1px}");class oA extends Ot{constructor(e){super(),Ht(this,e,aA,iA,c,{type:0,header:1,message:7,onConfirm:2,buttonText:3,cta:4})}}Gt(".spectrum-Toast.svelte-16khpst{pointer-events:all;width:100%}.spectrum-Toast--neutral.svelte-16khpst{background-color:var(--grey-2)}.spectrum-Button.svelte-16khpst{border:1px solid rgba(255, 255, 255, 0.2)}");Gt("div.svelte-bmyadj{position:relative}.icon.svelte-bmyadj{right:1px;bottom:1px;position:absolute;justify-content:center;align-items:center;display:flex;flex-direction:row;box-sizing:border-box;border-left:1px solid var(--spectrum-alias-border-color);border-top-right-radius:var(--spectrum-alias-border-radius-regular);border-bottom-right-radius:var(--spectrum-alias-border-radius-regular);width:31px;color:var(--spectrum-alias-text-color);background-color:var(--spectrum-global-color-gray-75);transition:background-color\n var(--spectrum-global-animation-duration-100, 130ms),\n box-shadow var(--spectrum-global-animation-duration-100, 130ms),\n border-color var(--spectrum-global-animation-duration-100, 130ms);height:calc(var(--spectrum-alias-item-height-m) - 2px)}.icon.svelte-bmyadj:hover{cursor:pointer;color:var(--spectrum-alias-text-color-hover);background-color:var(--spectrum-global-color-gray-50);border-color:var(--spectrum-alias-border-color-hover)}");const sA="info",lA="negative",cA="warning";!function(){const e=Ut({messages:[]}),t=async t=>{const r={[lA]:0,[cA]:1,[sA]:2};e.update((e=>{const n=[...e.messages,...t].sort(((e,t)=>r[e.type]==r[t.type]?0:r[e.type]<r[t.type]?-1:1));return{...e,messages:n}}))};e.subscribe}();Gt(".banner.svelte-j1ssay{pointer-events:none;width:100%}");var uA=gi((function(e,t){e.exports=function(){var e=navigator.userAgent,t=navigator.platform,r=/gecko\/\d/i.test(e),n=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),a=/Edge\/(\d+)/.exec(e),o=n||i||a,s=o&&(n?document.documentMode||6:+(a||i)[1]),l=!a&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!a&&/Chrome\/(\d+)/.exec(e),p=u&&+u[1],d=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),m=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),g=/PhantomJS/.test(e),f=h&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),b=f||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=f||/Mac/.test(t),x=/\bCrOS\b/.test(e),w=/win/i.test(t),z=d&&e.match(/Version\/(\d*\.\d*)/);z&&(z=Number(z[1])),z&&z>=15&&(d=!1,l=!0);var k=y&&(c||d&&(null==z||z<12.11)),A=r||o&&s>=9;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,_=function(e,t){var r=e.className,n=C(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function M(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function T(e,t){return M(e).appendChild(t)}function $(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var a=0;a<t.length;++a)i.appendChild(t[a]);return i}function L(e,t,r,n){var i=$(e,t,r,n);return i.setAttribute("role","presentation"),i}function E(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function I(e){var t;try{t=e.activeElement}catch(r){t=e.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function B(e,t){var r=e.className;C(t).test(r)||(e.className+=(r?" ":"")+t)}function D(e,t){for(var r=e.split(" "),n=0;n<r.length;n++)r[n]&&!C(r[n]).test(t)&&(t+=" "+r[n]);return t}S=document.createRange?function(e,t,r,n){var i=document.createRange();return i.setEnd(n||e,r),i.setStart(e,t),i}:function(e,t,r){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(e){return n}return n.collapse(!0),n.moveEnd("character",r),n.moveStart("character",t),n};var H=function(e){e.select()};function O(e){return e.display.wrapper.ownerDocument}function P(e){return O(e).defaultView}function R(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function V(e,t,r){for(var n in t||(t={}),e)!e.hasOwnProperty(n)||!1===r&&t.hasOwnProperty(n)||(t[n]=e[n]);return t}function N(e,t,r,n,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var a=n||0,o=i||0;;){var s=e.indexOf("\t",a);if(s<0||s>=t)return o+(t-a);o+=s-a,o+=r-o%r,a=s+1}}f?H=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:o&&(H=function(e){try{e.select()}catch(e){}});var F=function(){this.id=null,this.f=null,this.time=0,this.handler=R(this.onTimeout,this)};function j(e,t){for(var r=0;r<e.length;++r)if(e[r]==t)return r;return-1}F.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},F.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=r)};var q=50,U={toString:function(){return"CodeMirror.Pass"}},W={scroll:!1},X={origin:"*mouse"},G={origin:"+move"};function Y(e,t,r){for(var n=0,i=0;;){var a=e.indexOf("\t",n);-1==a&&(a=e.length);var o=a-n;if(a==e.length||i+o>=t)return n+Math.min(o,t-i);if(i+=a-n,n=a+1,(i+=r-i%r)>=t)return n}}var Z=[""];function K(e){for(;Z.length<=e;)Z.push(J(Z)+" ");return Z[e]}function J(e){return e[e.length-1]}function Q(e,t){for(var r=[],n=0;n<e.length;n++)r[n]=t(e[n],n);return r}function ee(e,t,r){for(var n=0,i=r(t);n<e.length&&r(e[n])<=i;)n++;e.splice(n,0,t)}function te(){}function re(e,t){var r;return Object.create?r=Object.create(e):(te.prototype=e,r=new te),t&&V(t,r),r}var ne=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ie(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||ne.test(e))}function ae(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ie(e))||t.test(e):ie(e)}function oe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var se=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function le(e){return e.charCodeAt(0)>=768&&se.test(e)}function ce(e,t,r){for(;(r<0?t>0:t<e.length)&&le(e.charAt(t));)t+=r;return t}function ue(e,t,r){for(var n=t>r?-1:1;;){if(t==r)return t;var i=(t+r)/2,a=n<0?Math.ceil(i):Math.floor(i);if(a==t)return e(a)?t:r;e(a)?r=a:t=a+n}}function pe(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,a=0;a<e.length;++a){var o=e[a];(o.from<r&&o.to>t||t==r&&o.to==t)&&(n(Math.max(o.from,t),Math.min(o.to,r),1==o.level?"rtl":"ltr",a),i=!0)}i||n(t,r,"ltr")}var de=null;function he(e,t,r){var n;de=null;for(var i=0;i<e.length;++i){var a=e[i];if(a.from<t&&a.to>t)return i;a.to==t&&(a.from!=a.to&&"before"==r?n=i:de=i),a.from==t&&(a.from!=a.to&&"before"!=r?n=i:de=i)}return null!=n?n:de}var me=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(r){return r<=247?e.charAt(r):1424<=r&&r<=1524?"R":1536<=r&&r<=1785?t.charAt(r-1536):1774<=r&&r<=2220?"r":8192<=r&&r<=8203?"w":8204==r?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,o=/[Lb1n]/,s=/[1n]/;function l(e,t,r){this.level=e,this.from=t,this.to=r}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!n.test(e))return!1;for(var u=e.length,p=[],d=0;d<u;++d)p.push(r(e.charCodeAt(d)));for(var h=0,m=c;h<u;++h){var g=p[h];"m"==g?p[h]=m:m=g}for(var f=0,v=c;f<u;++f){var b=p[f];"1"==b&&"r"==v?p[f]="n":a.test(b)&&(v=b,"r"==b&&(p[f]="R"))}for(var y=1,x=p[0];y<u-1;++y){var w=p[y];"+"==w&&"1"==x&&"1"==p[y+1]?p[y]="1":","!=w||x!=p[y+1]||"1"!=x&&"n"!=x||(p[y]=x),x=w}for(var z=0;z<u;++z){var k=p[z];if(","==k)p[z]="N";else if("%"==k){var A=void 0;for(A=z+1;A<u&&"%"==p[A];++A);for(var C=z&&"!"==p[z-1]||A<u&&"1"==p[A]?"1":"N",S=z;S<A;++S)p[S]=C;z=A-1}}for(var _=0,M=c;_<u;++_){var T=p[_];"L"==M&&"1"==T?p[_]="L":a.test(T)&&(M=T)}for(var $=0;$<u;++$)if(i.test(p[$])){var L=void 0;for(L=$+1;L<u&&i.test(p[L]);++L);for(var E="L"==($?p[$-1]:c),I=E==("L"==(L<u?p[L]:c))?E?"L":"R":c,B=$;B<L;++B)p[B]=I;$=L-1}for(var D,H=[],O=0;O<u;)if(o.test(p[O])){var P=O;for(++O;O<u&&o.test(p[O]);++O);H.push(new l(0,P,O))}else{var R=O,V=H.length,N="rtl"==t?1:0;for(++O;O<u&&"L"!=p[O];++O);for(var F=R;F<O;)if(s.test(p[F])){R<F&&(H.splice(V,0,new l(1,R,F)),V+=N);var j=F;for(++F;F<O&&s.test(p[F]);++F);H.splice(V,0,new l(2,j,F)),V+=N,R=F}else++F;R<O&&H.splice(V,0,new l(1,R,O))}return"ltr"==t&&(1==H[0].level&&(D=e.match(/^\s+/))&&(H[0].from=D[0].length,H.unshift(new l(0,0,D[0].length))),1==J(H).level&&(D=e.match(/\s+$/))&&(J(H).to-=D[0].length,H.push(new l(0,u-D[0].length,u)))),"rtl"==t?H.reverse():H}}();function ge(e,t){var r=e.order;return null==r&&(r=e.order=me(e.text,t)),r}var fe=[],ve=function(e,t,r){if(e.addEventListener)e.addEventListener(t,r,!1);else if(e.attachEvent)e.attachEvent("on"+t,r);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||fe).concat(r)}};function be(e,t){return e._handlers&&e._handlers[t]||fe}function ye(e,t,r){if(e.removeEventListener)e.removeEventListener(t,r,!1);else if(e.detachEvent)e.detachEvent("on"+t,r);else{var n=e._handlers,i=n&&n[t];if(i){var a=j(i,r);a>-1&&(n[t]=i.slice(0,a).concat(i.slice(a+1)))}}}function xe(e,t){var r=be(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i<r.length;++i)r[i].apply(null,n)}function we(e,t,r){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),xe(e,r||t.type,e,t),_e(t)||t.codemirrorIgnore}function ze(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var r=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)-1==j(r,t[n])&&r.push(t[n])}function ke(e,t){return be(e,t).length>0}function Ae(e){e.prototype.on=function(e,t){ve(this,e,t)},e.prototype.off=function(e,t){ye(this,e,t)}}function Ce(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Se(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function _e(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Me(e){Ce(e),Se(e)}function Te(e){return e.target||e.srcElement}function $e(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var Le,Ee,Ie=function(){if(o&&s<9)return!1;var e=$("div");return"draggable"in e||"dragDrop"in e}();function Be(e){if(null==Le){var t=$("span","");T(e,$("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Le=t.offsetWidth<=1&&t.offsetHeight>2&&!(o&&s<8))}var r=Le?$("span",""):$("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function De(e){if(null!=Ee)return Ee;var t=T(e,document.createTextNode("AخA")),r=S(t,0,1).getBoundingClientRect(),n=S(t,1,2).getBoundingClientRect();return M(e),!(!r||r.left==r.right)&&(Ee=n.right-r.right<3)}var He=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var a=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),o=a.indexOf("\r");-1!=o?(r.push(a.slice(0,o)),t+=o+1):(r.push(a),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},Oe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Pe=function(){var e=$("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Re=null;function Ve(e){if(null!=Re)return Re;var t=T(e,$("span","x")),r=t.getBoundingClientRect(),n=S(t,0,1).getBoundingClientRect();return Re=Math.abs(r.left-n.left)>1}var Ne={},Fe={};function je(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ne[e]=t}function qe(e,t){Fe[e]=t}function Ue(e){if("string"==typeof e&&Fe.hasOwnProperty(e))e=Fe[e];else if(e&&"string"==typeof e.name&&Fe.hasOwnProperty(e.name)){var t=Fe[e.name];"string"==typeof t&&(t={name:t}),(e=re(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ue("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ue("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function We(e,t){t=Ue(t);var r=Ne[t.name];if(!r)return We(e,"text/plain");var n=r(e,t);if(Xe.hasOwnProperty(t.name)){var i=Xe[t.name];for(var a in i)i.hasOwnProperty(a)&&(n.hasOwnProperty(a)&&(n["_"+a]=n[a]),n[a]=i[a])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)n[o]=t.modeProps[o];return n}var Xe={};function Ge(e,t){V(t,Xe.hasOwnProperty(e)?Xe[e]:Xe[e]={})}function Ye(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function Ze(e,t){for(var r;e.innerMode&&(r=e.innerMode(t))&&r.mode!=e;)t=r.state,e=r.mode;return r||{mode:e,state:t}}function Ke(e,t,r){return!e.startState||e.startState(t,r)}var Je=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};function Qe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],a=i.chunkSize();if(t<a){r=i;break}t-=a}return r.lines[t]}function et(e,t,r){var n=[],i=t.line;return e.iter(t.line,r.line+1,(function(e){var a=e.text;i==r.line&&(a=a.slice(0,r.ch)),i==t.line&&(a=a.slice(t.ch)),n.push(a),++i})),n}function tt(e,t,r){var n=[];return e.iter(t,r,(function(e){n.push(e.text)})),n}function rt(e,t){var r=t-e.height;if(r)for(var n=e;n;n=n.parent)n.height+=r}function nt(e){if(null==e.parent)return null;for(var t=e.parent,r=j(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var i=0;n.children[i]!=t;++i)r+=n.children[i].chunkSize();return r+t.first}function it(e,t){var r=e.first;e:do{for(var n=0;n<e.children.length;++n){var i=e.children[n],a=i.height;if(t<a){e=i;continue e}t-=a,r+=i.chunkSize()}return r}while(!e.lines);for(var o=0;o<e.lines.length;++o){var s=e.lines[o].height;if(t<s)break;t-=s}return r+o}function at(e,t){return t>=e.first&&t<e.first+e.size}function ot(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function st(e,t,r){if(void 0===r&&(r=null),!(this instanceof st))return new st(e,t,r);this.line=e,this.ch=t,this.sticky=r}function lt(e,t){return e.line-t.line||e.ch-t.ch}function ct(e,t){return e.sticky==t.sticky&&0==lt(e,t)}function ut(e){return st(e.line,e.ch)}function pt(e,t){return lt(e,t)<0?t:e}function dt(e,t){return lt(e,t)<0?e:t}function ht(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function mt(e,t){if(t.line<e.first)return st(e.first,0);var r=e.first+e.size-1;return t.line>r?st(r,Qe(e,r).text.length):gt(t,Qe(e,t.line).text.length)}function gt(e,t){var r=e.ch;return null==r||r>t?st(e.line,t):r<0?st(e.line,0):e}function ft(e,t){for(var r=[],n=0;n<t.length;n++)r[n]=mt(e,t[n]);return r}Je.prototype.eol=function(){return this.pos>=this.string.length},Je.prototype.sol=function(){return this.pos==this.lineStart},Je.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Je.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Je.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Je.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Je.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Je.prototype.skipToEnd=function(){this.pos=this.string.length},Je.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Je.prototype.backUp=function(e){this.pos-=e},Je.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=N(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?N(this.string,this.lineStart,this.tabSize):0)},Je.prototype.indentation=function(){return N(this.string,null,this.tabSize)-(this.lineStart?N(this.string,this.lineStart,this.tabSize):0)},Je.prototype.match=function(e,t,r){if("string"!=typeof e){var n=this.string.slice(this.pos).match(e);return n&&n.index>0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}var i=function(e){return r?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Je.prototype.current=function(){return this.string.slice(this.start,this.pos)},Je.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Je.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Je.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var vt=function(e,t){this.state=e,this.lookAhead=t},bt=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};function yt(e,t,r,n){var i=[e.state.modeGen],a={};Mt(e,t.text,e.doc.mode,r,(function(e,t){return i.push(e,t)}),a,n);for(var o=r.state,s=function(n){r.baseTokens=i;var s=e.state.overlays[n],l=1,c=0;r.state=!0,Mt(e,t.text,s.mode,r,(function(e,t){for(var r=l;c<e;){var n=i[l];n>e&&i.splice(l,1,e,i[l+1],n),l+=2,c=Math.min(e,n)}if(t)if(s.opaque)i.splice(r,l-r,e,"overlay "+t),l=r+2;else for(;r<l;r+=2){var a=i[r+1];i[r+1]=(a?a+" ":"")+"overlay "+t}}),a),r.state=o,r.baseTokens=null,r.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:a.bgClass||a.textClass?a:null}}function xt(e,t,r){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=wt(e,nt(t)),i=t.text.length>e.options.maxHighlightLength&&Ye(e.doc.mode,n.state),a=yt(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=a.styles,a.classes?t.styleClasses=a.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function wt(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new bt(n,!0,t);var a=Tt(e,t,r),o=a>n.first&&Qe(n,a-1).stateAfter,s=o?bt.fromSaved(n,o,a):new bt(n,Ke(n.mode),a);return n.iter(a,t,(function(r){zt(e,r.text,s);var n=s.line;r.stateAfter=n==t-1||n%5==0||n>=i.viewFrom&&n<i.viewTo?s.save():null,s.nextLine()})),r&&(n.modeFrontier=s.line),s}function zt(e,t,r,n){var i=e.doc.mode,a=new Je(t,e.options.tabSize,r);for(a.start=a.pos=n||0,""==t&&kt(i,r.state);!a.eol();)At(i,a,r.state),a.start=a.pos}function kt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var r=Ze(e,t);return r.mode.blankLine?r.mode.blankLine(r.state):void 0}}function At(e,t,r,n){for(var i=0;i<10;i++){n&&(n[0]=Ze(e,r).mode);var a=e.token(t,r);if(t.pos>t.start)return a}throw new Error("Mode "+e.name+" failed to advance stream.")}bt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},bt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},bt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},bt.fromSaved=function(e,t,r){return t instanceof vt?new bt(e,Ye(e.mode,t.state),r,t.lookAhead):new bt(e,Ye(e.mode,t),r)},bt.prototype.save=function(e){var t=!1!==e?Ye(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new vt(t,this.maxLookAhead):t};var Ct=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function St(e,t,r,n){var i,a,o=e.doc,s=o.mode,l=Qe(o,(t=mt(o,t)).line),c=wt(e,t.line,r),u=new Je(l.text,e.options.tabSize,c);for(n&&(a=[]);(n||u.pos<t.ch)&&!u.eol();)u.start=u.pos,i=At(s,u,c.state),n&&a.push(new Ct(u,i,Ye(o.mode,c.state)));return n?a:new Ct(u,i,c.state)}function _t(e,t){if(e)for(;;){var r=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!r)break;e=e.slice(0,r.index)+e.slice(r.index+r[0].length);var n=r[1]?"bgClass":"textClass";null==t[n]?t[n]=r[2]:new RegExp("(?:^|\\s)"+r[2]+"(?:$|\\s)").test(t[n])||(t[n]+=" "+r[2])}return e}function Mt(e,t,r,n,i,a,o){var s=r.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,c=0,u=null,p=new Je(t,e.options.tabSize,n),d=e.options.addModeClass&&[null];for(""==t&&_t(kt(r,n.state),a);!p.eol();){if(p.pos>e.options.maxHighlightLength?(s=!1,o&&zt(e,t,n,p.pos),p.pos=t.length,l=null):l=_t(At(r,p,n.state,d),a),d){var h=d[0].name;h&&(l="m-"+(l?h+" "+l:h))}if(!s||u!=l){for(;c<p.start;)i(c=Math.min(p.start,c+5e3),u);u=l}p.start=p.pos}for(;c<p.pos;){var m=Math.min(p.pos,c+5e3);i(m,u),c=m}}function Tt(e,t,r){for(var n,i,a=e.doc,o=r?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>o;--s){if(s<=a.first)return a.first;var l=Qe(a,s-1),c=l.stateAfter;if(c&&(!r||s+(c instanceof vt?c.lookAhead:0)<=a.modeFrontier))return s;var u=N(l.text,null,e.options.tabSize);(null==i||n>u)&&(i=s-1,n=u)}return i}function $t(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var r=e.first,n=t-1;n>r;n--){var i=Qe(e,n).stateAfter;if(i&&(!(i instanceof vt)||n+i.lookAhead<t)){r=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,r)}}var Lt=!1,Et=!1;function It(){Lt=!0}function Bt(){Et=!0}function Dt(e,t,r){this.marker=e,this.from=t,this.to=r}function Ht(e,t){if(e)for(var r=0;r<e.length;++r){var n=e[r];if(n.marker==t)return n}}function Ot(e,t){for(var r,n=0;n<e.length;++n)e[n]!=t&&(r||(r=[])).push(e[n]);return r}function Pt(e,t,r){var n=r&&window.WeakSet&&(r.markedSpans||(r.markedSpans=new WeakSet));n&&e.markedSpans&&n.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],n&&n.add(e.markedSpans)),t.marker.attachLine(e)}function Rt(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var a=e[i],o=a.marker;if(null==a.from||(o.inclusiveLeft?a.from<=t:a.from<t)||a.from==t&&"bookmark"==o.type&&(!r||!a.marker.insertLeft)){var s=null==a.to||(o.inclusiveRight?a.to>=t:a.to>t);(n||(n=[])).push(new Dt(o,a.from,s?null:a.to))}}return n}function Vt(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var a=e[i],o=a.marker;if(null==a.to||(o.inclusiveRight?a.to>=t:a.to>t)||a.from==t&&"bookmark"==o.type&&(!r||a.marker.insertLeft)){var s=null==a.from||(o.inclusiveLeft?a.from<=t:a.from<t);(n||(n=[])).push(new Dt(o,s?null:a.from-t,null==a.to?null:a.to-t))}}return n}function Nt(e,t){if(t.full)return null;var r=at(e,t.from.line)&&Qe(e,t.from.line).markedSpans,n=at(e,t.to.line)&&Qe(e,t.to.line).markedSpans;if(!r&&!n)return null;var i=t.from.ch,a=t.to.ch,o=0==lt(t.from,t.to),s=Rt(r,i,o),l=Vt(n,a,o),c=1==t.text.length,u=J(t.text).length+(c?i:0);if(s)for(var p=0;p<s.length;++p){var d=s[p];if(null==d.to){var h=Ht(l,d.marker);h?c&&(d.to=null==h.to?null:h.to+u):d.to=i}}if(l)for(var m=0;m<l.length;++m){var g=l[m];null!=g.to&&(g.to+=u),null==g.from?Ht(s,g.marker)||(g.from=u,c&&(s||(s=[])).push(g)):(g.from+=u,c&&(s||(s=[])).push(g))}s&&(s=Ft(s)),l&&l!=s&&(l=Ft(l));var f=[s];if(!c){var v,b=t.text.length-2;if(b>0&&s)for(var y=0;y<s.length;++y)null==s[y].to&&(v||(v=[])).push(new Dt(s[y].marker,null,null));for(var x=0;x<b;++x)f.push(v);f.push(l)}return f}function Ft(e){for(var t=0;t<e.length;++t){var r=e[t];null!=r.from&&r.from==r.to&&!1!==r.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function jt(e,t,r){var n=null;if(e.iter(t.line,r.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var r=e.markedSpans[t].marker;!r.readOnly||n&&-1!=j(n,r)||(n||(n=[])).push(r)}})),!n)return null;for(var i=[{from:t,to:r}],a=0;a<n.length;++a)for(var o=n[a],s=o.find(0),l=0;l<i.length;++l){var c=i[l];if(!(lt(c.to,s.from)<0||lt(c.from,s.to)>0)){var u=[l,1],p=lt(c.from,s.from),d=lt(c.to,s.to);(p<0||!o.inclusiveLeft&&!p)&&u.push({from:c.from,to:s.from}),(d>0||!o.inclusiveRight&&!d)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}function qt(e){var t=e.markedSpans;if(t){for(var r=0;r<t.length;++r)t[r].marker.detachLine(e);e.markedSpans=null}}function Ut(e,t){if(t){for(var r=0;r<t.length;++r)t[r].marker.attachLine(e);e.markedSpans=t}}function Wt(e){return e.inclusiveLeft?-1:0}function Xt(e){return e.inclusiveRight?1:0}function Gt(e,t){var r=e.lines.length-t.lines.length;if(0!=r)return r;var n=e.find(),i=t.find(),a=lt(n.from,i.from)||Wt(e)-Wt(t);if(a)return-a;var o=lt(n.to,i.to)||Xt(e)-Xt(t);return o||t.id-e.id}function Yt(e,t){var r,n=Et&&e.markedSpans;if(n)for(var i=void 0,a=0;a<n.length;++a)(i=n[a]).marker.collapsed&&null==(t?i.from:i.to)&&(!r||Gt(r,i.marker)<0)&&(r=i.marker);return r}function Zt(e){return Yt(e,!0)}function Kt(e){return Yt(e,!1)}function Jt(e,t){var r,n=Et&&e.markedSpans;if(n)for(var i=0;i<n.length;++i){var a=n[i];a.marker.collapsed&&(null==a.from||a.from<t)&&(null==a.to||a.to>t)&&(!r||Gt(r,a.marker)<0)&&(r=a.marker)}return r}function Qt(e,t,r,n,i){var a=Qe(e,t),o=Et&&a.markedSpans;if(o)for(var s=0;s<o.length;++s){var l=o[s];if(l.marker.collapsed){var c=l.marker.find(0),u=lt(c.from,r)||Wt(l.marker)-Wt(i),p=lt(c.to,n)||Xt(l.marker)-Xt(i);if(!(u>=0&&p<=0||u<=0&&p>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?lt(c.to,r)>=0:lt(c.to,r)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?lt(c.from,n)<=0:lt(c.from,n)<0)))return!0}}}function er(e){for(var t;t=Zt(e);)e=t.find(-1,!0).line;return e}function tr(e){for(var t;t=Kt(e);)e=t.find(1,!0).line;return e}function rr(e){for(var t,r;t=Kt(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function nr(e,t){var r=Qe(e,t),n=er(r);return r==n?t:nt(n)}function ir(e,t){if(t>e.lastLine())return t;var r,n=Qe(e,t);if(!ar(e,n))return t;for(;r=Kt(n);)n=r.find(1,!0).line;return nt(n)+1}function ar(e,t){var r=Et&&t.markedSpans;if(r)for(var n=void 0,i=0;i<r.length;++i)if((n=r[i]).marker.collapsed){if(null==n.from)return!0;if(!n.marker.widgetNode&&0==n.from&&n.marker.inclusiveLeft&&or(e,t,n))return!0}}function or(e,t,r){if(null==r.to){var n=r.marker.find(1,!0);return or(e,n.line,Ht(n.line.markedSpans,r.marker))}if(r.marker.inclusiveRight&&r.to==t.text.length)return!0;for(var i=void 0,a=0;a<t.markedSpans.length;++a)if((i=t.markedSpans[a]).marker.collapsed&&!i.marker.widgetNode&&i.from==r.to&&(null==i.to||i.to!=r.from)&&(i.marker.inclusiveLeft||r.marker.inclusiveRight)&&or(e,t,i))return!0}function sr(e){for(var t=0,r=(e=er(e)).parent,n=0;n<r.lines.length;++n){var i=r.lines[n];if(i==e)break;t+=i.height}for(var a=r.parent;a;a=(r=a).parent)for(var o=0;o<a.children.length;++o){var s=a.children[o];if(s==r)break;t+=s.height}return t}function lr(e){if(0==e.height)return 0;for(var t,r=e.text.length,n=e;t=Zt(n);){var i=t.find(0,!0);n=i.from.line,r+=i.from.ch-i.to.ch}for(n=e;t=Kt(n);){var a=t.find(0,!0);r-=n.text.length-a.from.ch,r+=(n=a.to.line).text.length-a.to.ch}return r}function cr(e){var t=e.display,r=e.doc;t.maxLine=Qe(r,r.first),t.maxLineLength=lr(t.maxLine),t.maxLineChanged=!0,r.iter((function(e){var r=lr(e);r>t.maxLineLength&&(t.maxLineLength=r,t.maxLine=e)}))}var ur=function(e,t,r){this.text=e,Ut(this,t),this.height=r?r(this):1};function pr(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),qt(e),Ut(e,r);var i=n?n(e):1;i!=e.height&&rt(e,i)}function dr(e){e.parent=null,qt(e)}ur.prototype.lineNo=function(){return nt(this)},Ae(ur);var hr={},mr={};function gr(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?mr:hr;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function fr(e,t){var r=L("span",null,null,l?"padding-right: .1px":null),n={pre:L("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var a=i?t.rest[i-1]:t.line,o=void 0;n.pos=0,n.addToken=br,De(e.display.measure)&&(o=ge(a,e.doc.direction))&&(n.addToken=xr(n.addToken,o)),n.map=[],zr(a,n,xt(e,a,t!=e.display.externalMeasured&&nt(a))),a.styleClasses&&(a.styleClasses.bgClass&&(n.bgClass=D(a.styleClasses.bgClass,n.bgClass||"")),a.styleClasses.textClass&&(n.textClass=D(a.styleClasses.textClass,n.textClass||""))),0==n.map.length&&n.map.push(0,0,n.content.appendChild(Be(e.display.measure))),0==i?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=n.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return xe(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=D(n.pre.className,n.textClass||"")),n}function vr(e){var t=$("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function br(e,t,r,n,i,a,l){if(t){var c,u=e.splitSpaces?yr(t,e.trailingSpace):t,p=e.cm.state.specialChars,d=!1;if(p.test(t)){c=document.createDocumentFragment();for(var h=0;;){p.lastIndex=h;var m=p.exec(t),g=m?m.index-h:t.length-h;if(g){var f=document.createTextNode(u.slice(h,h+g));o&&s<9?c.appendChild($("span",[f])):c.appendChild(f),e.map.push(e.pos,e.pos+g,f),e.col+=g,e.pos+=g}if(!m)break;h+=g+1;var v=void 0;if("\t"==m[0]){var b=e.cm.options.tabSize,y=b-e.col%b;(v=c.appendChild($("span",K(y),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=y}else"\r"==m[0]||"\n"==m[0]?((v=c.appendChild($("span","\r"==m[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",m[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(m[0])).setAttribute("cm-text",m[0]),o&&s<9?c.appendChild($("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),o&&s<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),r||n||i||d||a||l){var x=r||"";n&&(x+=n),i&&(x+=i);var w=$("span",[c],x,a);if(l)for(var z in l)l.hasOwnProperty(z)&&"style"!=z&&"class"!=z&&w.setAttribute(z,l[z]);return e.content.appendChild(w)}e.content.appendChild(c)}}function yr(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",i=0;i<e.length;i++){var a=e.charAt(i);" "!=a||!r||i!=e.length-1&&32!=e.charCodeAt(i+1)||(a=" "),n+=a,r=" "==a}return n}function xr(e,t){return function(r,n,i,a,o,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var c=r.pos,u=c+n.length;;){for(var p=void 0,d=0;d<t.length&&!((p=t[d]).to>c&&p.from<=c);d++);if(p.to>=u)return e(r,n,i,a,o,s,l);e(r,n.slice(0,p.to-c),i,a,null,s,l),a=null,n=n.slice(p.to-c),c=p.to}}}function wr(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function zr(e,t,r){var n=e.markedSpans,i=e.text,a=0;if(n)for(var o,s,l,c,u,p,d,h=i.length,m=0,g=1,f="",v=0;;){if(v==m){l=c=u=s="",d=null,p=null,v=1/0;for(var b=[],y=void 0,x=0;x<n.length;++x){var w=n[x],z=w.marker;if("bookmark"==z.type&&w.from==m&&z.widgetNode)b.push(z);else if(w.from<=m&&(null==w.to||w.to>m||z.collapsed&&w.to==m&&w.from==m)){if(null!=w.to&&w.to!=m&&v>w.to&&(v=w.to,c=""),z.className&&(l+=" "+z.className),z.css&&(s=(s?s+";":"")+z.css),z.startStyle&&w.from==m&&(u+=" "+z.startStyle),z.endStyle&&w.to==v&&(y||(y=[])).push(z.endStyle,w.to),z.title&&((d||(d={})).title=z.title),z.attributes)for(var k in z.attributes)(d||(d={}))[k]=z.attributes[k];z.collapsed&&(!p||Gt(p.marker,z)<0)&&(p=w)}else w.from>m&&v>w.from&&(v=w.from)}if(y)for(var A=0;A<y.length;A+=2)y[A+1]==v&&(c+=" "+y[A]);if(!p||p.from==m)for(var C=0;C<b.length;++C)wr(t,0,b[C]);if(p&&(p.from||0)==m){if(wr(t,(null==p.to?h+1:p.to)-m,p.marker,null==p.from),null==p.to)return;p.to==m&&(p=!1)}}if(m>=h)break;for(var S=Math.min(h,v);;){if(f){var _=m+f.length;if(!p){var M=_>S?f.slice(0,S-m):f;t.addToken(t,M,o?o+l:l,u,m+M.length==v?c:"",s,d)}if(_>=S){f=f.slice(S-m),m=S;break}m=_,u=""}f=i.slice(a,a=r[g++]),o=gr(r[g++],t.cm.options)}}else for(var T=1;T<r.length;T+=2)t.addToken(t,i.slice(a,a=r[T]),gr(r[T+1],t.cm.options))}function kr(e,t,r){this.line=t,this.rest=rr(t),this.size=this.rest?nt(J(this.rest))-r+1:1,this.node=this.text=null,this.hidden=ar(e,t)}function Ar(e,t,r){for(var n,i=[],a=t;a<r;a=n){var o=new kr(e.doc,Qe(e.doc,a),a);n=a+o.size,i.push(o)}return i}var Cr=null;function Sr(e){Cr?Cr.ops.push(e):e.ownsGroup=Cr={ops:[e],delayedCallbacks:[]}}function _r(e){var t=e.delayedCallbacks,r=0;do{for(;r<t.length;r++)t[r].call(null);for(var n=0;n<e.ops.length;n++){var i=e.ops[n];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(r<t.length)}function Mr(e,t){var r=e.ownsGroup;if(r)try{_r(r)}finally{Cr=null,t(r)}}var Tr=null;function $r(e,t){var r=be(e,t);if(r.length){var n,i=Array.prototype.slice.call(arguments,2);Cr?n=Cr.delayedCallbacks:Tr?n=Tr:(n=Tr=[],setTimeout(Lr,0));for(var a=function(e){n.push((function(){return r[e].apply(null,i)}))},o=0;o<r.length;++o)a(o)}}function Lr(){var e=Tr;Tr=null;for(var t=0;t<e.length;++t)e[t]()}function Er(e,t,r,n){for(var i=0;i<t.changes.length;i++){var a=t.changes[i];"text"==a?Hr(e,t):"gutter"==a?Pr(e,t,r,n):"class"==a?Or(e,t):"widget"==a&&Rr(e,t,n)}t.changes=null}function Ir(e){return e.node==e.text&&(e.node=$("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),o&&s<8&&(e.node.style.zIndex=2)),e.node}function Br(e,t){var r=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(r&&(r+=" CodeMirror-linebackground"),t.background)r?t.background.className=r:(t.background.parentNode.removeChild(t.background),t.background=null);else if(r){var n=Ir(t);t.background=n.insertBefore($("div",null,r),n.firstChild),e.display.input.setUneditable(t.background)}}function Dr(e,t){var r=e.display.externalMeasured;return r&&r.line==t.line?(e.display.externalMeasured=null,t.measure=r.measure,r.built):fr(e,t)}function Hr(e,t){var r=t.text.className,n=Dr(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,Or(e,t)):r&&(t.text.className=r)}function Or(e,t){Br(e,t),t.line.wrapClass?Ir(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var r=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=r||""}function Pr(e,t,r,n){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=Ir(t);t.gutterBackground=$("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var a=t.line.gutterMarkers;if(e.options.lineNumbers||a){var o=Ir(t),s=t.gutter=$("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),o.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||a&&a["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild($("div",ot(e.options,r),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),a)for(var l=0;l<e.display.gutterSpecs.length;++l){var c=e.display.gutterSpecs[l].className,u=a.hasOwnProperty(c)&&a[c];u&&s.appendChild($("div",[u],"CodeMirror-gutter-elt","left: "+n.gutterLeft[c]+"px; width: "+n.gutterWidth[c]+"px"))}}}function Rr(e,t,r){t.alignable&&(t.alignable=null);for(var n=C("CodeMirror-linewidget"),i=t.node.firstChild,a=void 0;i;i=a)a=i.nextSibling,n.test(i.className)&&t.node.removeChild(i);Nr(e,t,r)}function Vr(e,t,r,n){var i=Dr(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Or(e,t),Pr(e,t,r,n),Nr(e,t,n),t.node}function Nr(e,t,r){if(Fr(e,t.line,t,r,!0),t.rest)for(var n=0;n<t.rest.length;n++)Fr(e,t.rest[n],t,r,!1)}function Fr(e,t,r,n,i){if(t.widgets)for(var a=Ir(r),o=0,s=t.widgets;o<s.length;++o){var l=s[o],c=$("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),jr(l,c,r,n),e.display.input.setUneditable(c),i&&l.above?a.insertBefore(c,r.gutter||r.text):a.appendChild(c),$r(l,"redraw")}}function jr(e,t,r,n){if(e.noHScroll){(r.alignable||(r.alignable=[])).push(t);var i=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(i-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function qr(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!E(document.body,e.node)){var r="position: relative;";e.coverGutter&&(r+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(r+="width: "+t.display.wrapper.clientWidth+"px;"),T(t.display.measure,$("div",[e.node],null,r))}return e.height=e.node.parentNode.offsetHeight}function Ur(e,t){for(var r=Te(t);r!=e.wrapper;r=r.parentNode)if(!r||1==r.nodeType&&"true"==r.getAttribute("cm-ignore-events")||r.parentNode==e.sizer&&r!=e.mover)return!0}function Wr(e){return e.lineSpace.offsetTop}function Xr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Gr(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=T(e.measure,$("pre","x","CodeMirror-line-like")),r=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(r.paddingLeft),right:parseInt(r.paddingRight)};return isNaN(n.left)||isNaN(n.right)||(e.cachedPaddingH=n),n}function Yr(e){return q-e.display.nativeBarWidth}function Zr(e){return e.display.scroller.clientWidth-Yr(e)-e.display.barWidth}function Kr(e){return e.display.scroller.clientHeight-Yr(e)-e.display.barHeight}function Jr(e,t,r){var n=e.options.lineWrapping,i=n&&Zr(e);if(!t.measure.heights||n&&t.measure.width!=i){var a=t.measure.heights=[];if(n){t.measure.width=i;for(var o=t.text.firstChild.getClientRects(),s=0;s<o.length-1;s++){var l=o[s],c=o[s+1];Math.abs(l.bottom-c.bottom)>2&&a.push((l.bottom+c.top)/2-r.top)}}a.push(r.bottom-r.top)}}function Qr(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var i=0;i<e.rest.length;i++)if(nt(e.rest[i])>r)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function en(e,t){var r=nt(t=er(t)),n=e.display.externalMeasured=new kr(e.doc,t,r);n.lineN=r;var i=n.built=fr(e,n);return n.text=i.pre,T(e.display.lineMeasure,i.pre),n}function tn(e,t,r,n){return an(e,nn(e,t),r,n)}function rn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Pn(e,t)];var r=e.display.externalMeasured;return r&&t>=r.lineN&&t<r.lineN+r.size?r:void 0}function nn(e,t){var r=nt(t),n=rn(e,r);n&&!n.text?n=null:n&&n.changes&&(Er(e,n,r,In(e)),e.curOp.forceUpdate=!0),n||(n=en(e,t));var i=Qr(n,t,r);return{line:t,view:n,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function an(e,t,r,n,i){t.before&&(r=-1);var a,o=r+(n||"");return t.cache.hasOwnProperty(o)?a=t.cache[o]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Jr(e,t.view,t.rect),t.hasHeights=!0),(a=un(e,t,r,n)).bogus||(t.cache[o]=a)),{left:a.left,right:a.right,top:i?a.rtop:a.top,bottom:i?a.rbottom:a.bottom}}var on,sn={left:0,right:0,top:0,bottom:0};function ln(e,t,r){for(var n,i,a,o,s,l,c=0;c<e.length;c+=3)if(s=e[c],l=e[c+1],t<s?(i=0,a=1,o="left"):t<l?a=1+(i=t-s):(c==e.length-3||t==l&&e[c+3]>t)&&(i=(a=l-s)-1,t>=l&&(o="right")),null!=i){if(n=e[c+2],s==l&&r==(n.insertLeft?"left":"right")&&(o=r),"left"==r&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)n=e[2+(c-=3)],o="left";if("right"==r&&i==l-s)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)n=e[(c+=3)+2],o="right";break}return{node:n,start:i,end:a,collapse:o,coverStart:s,coverEnd:l}}function cn(e,t){var r=sn;if("left"==t)for(var n=0;n<e.length&&(r=e[n]).left==r.right;n++);else for(var i=e.length-1;i>=0&&(r=e[i]).left==r.right;i--);return r}function un(e,t,r,n){var i,a=ln(t.map,r,n),l=a.node,c=a.start,u=a.end,p=a.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;c&&le(t.line.text.charAt(a.coverStart+c));)--c;for(;a.coverStart+u<a.coverEnd&&le(t.line.text.charAt(a.coverStart+u));)++u;if((i=o&&s<9&&0==c&&u==a.coverEnd-a.coverStart?l.parentNode.getBoundingClientRect():cn(S(l,c,u).getClientRects(),n)).left||i.right||0==c)break;u=c,c-=1,p="right"}o&&s<11&&(i=pn(e.display.measure,i))}else{var h;c>0&&(p=n="right"),i=e.options.lineWrapping&&(h=l.getClientRects()).length>1?h["right"==n?h.length-1:0]:l.getBoundingClientRect()}if(o&&s<9&&!c&&(!i||!i.left&&!i.right)){var m=l.parentNode.getClientRects()[0];i=m?{left:m.left,right:m.left+En(e.display),top:m.top,bottom:m.bottom}:sn}for(var g=i.top-t.rect.top,f=i.bottom-t.rect.top,v=(g+f)/2,b=t.view.measure.heights,y=0;y<b.length-1&&!(v<b[y]);y++);var x=y?b[y-1]:0,w=b[y],z={left:("right"==p?i.right:i.left)-t.rect.left,right:("left"==p?i.left:i.right)-t.rect.left,top:x,bottom:w};return i.left||i.right||(z.bogus=!0),e.options.singleCursorHeightPerLine||(z.rtop=g,z.rbottom=f),z}function pn(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Ve(e))return t;var r=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*r,right:t.right*r,top:t.top*n,bottom:t.bottom*n}}function dn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function hn(e){e.display.externalMeasure=null,M(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)dn(e.display.view[t])}function mn(e){hn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function gn(e){return u&&v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function fn(e){return u&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function vn(e){var t=er(e).widgets,r=0;if(t)for(var n=0;n<t.length;++n)t[n].above&&(r+=qr(t[n]));return r}function bn(e,t,r,n,i){if(!i){var a=vn(t);r.top+=a,r.bottom+=a}if("line"==n)return r;n||(n="local");var o=sr(t);if("local"==n?o+=Wr(e.display):o-=e.display.viewOffset,"page"==n||"window"==n){var s=e.display.lineSpace.getBoundingClientRect();o+=s.top+("window"==n?0:fn(O(e)));var l=s.left+("window"==n?0:gn(O(e)));r.left+=l,r.right+=l}return r.top+=o,r.bottom+=o,r}function yn(e,t,r){if("div"==r)return t;var n=t.left,i=t.top;if("page"==r)n-=gn(O(e)),i-=fn(O(e));else if("local"==r||!r){var a=e.display.sizer.getBoundingClientRect();n+=a.left,i+=a.top}var o=e.display.lineSpace.getBoundingClientRect();return{left:n-o.left,top:i-o.top}}function xn(e,t,r,n,i){return n||(n=Qe(e.doc,t.line)),bn(e,n,tn(e,n,t.ch,i),r)}function wn(e,t,r,n,i,a){function o(t,o){var s=an(e,i,t,o?"right":"left",a);return o?s.left=s.right:s.right=s.left,bn(e,n,s,r)}n=n||Qe(e.doc,t.line),i||(i=nn(e,n));var s=ge(n,e.doc.direction),l=t.ch,c=t.sticky;if(l>=n.text.length?(l=n.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return o("before"==c?l-1:l,"before"==c);function u(e,t,r){return o(r?e-1:e,1==s[t].level!=r)}var p=he(s,l,c),d=de,h=u(l,p,"before"==c);return null!=d&&(h.other=u(l,d,"before"!=c)),h}function zn(e,t){var r=0;t=mt(e.doc,t),e.options.lineWrapping||(r=En(e.display)*t.ch);var n=Qe(e.doc,t.line),i=sr(n)+Wr(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function kn(e,t,r,n,i){var a=st(e,t,r);return a.xRel=i,n&&(a.outside=n),a}function An(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return kn(n.first,0,null,-1,-1);var i=it(n,r),a=n.first+n.size-1;if(i>a)return kn(n.first+n.size-1,Qe(n,a).text.length,null,1,1);t<0&&(t=0);for(var o=Qe(n,i);;){var s=Mn(e,o,i,t,r),l=Jt(o,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;o=Qe(n,i=c.line)}}function Cn(e,t,r,n){n-=vn(t);var i=t.text.length,a=ue((function(t){return an(e,r,t-1).bottom<=n}),i,0);return i=ue((function(t){return an(e,r,t).top>n}),a,i),{begin:a,end:i}}function Sn(e,t,r,n){return r||(r=nn(e,t)),Cn(e,t,r,bn(e,t,an(e,r,n),"line").top)}function _n(e,t,r,n){return!(e.bottom<=r)&&(e.top>r||(n?e.left:e.right)>t)}function Mn(e,t,r,n,i){i-=sr(t);var a=nn(e,t),o=vn(t),s=0,l=t.text.length,c=!0,u=ge(t,e.doc.direction);if(u){var p=(e.options.lineWrapping?$n:Tn)(e,t,r,a,u,n,i);s=(c=1!=p.level)?p.from:p.to-1,l=c?p.to:p.from-1}var d,h,m=null,g=null,f=ue((function(t){var r=an(e,a,t);return r.top+=o,r.bottom+=o,!!_n(r,n,i,!1)&&(r.top<=i&&r.left<=n&&(m=t,g=r),!0)}),s,l),v=!1;if(g){var b=n-g.left<g.right-n,y=b==c;f=m+(y?0:1),h=y?"after":"before",d=b?g.left:g.right}else{c||f!=l&&f!=s||f++,h=0==f?"after":f==t.text.length?"before":an(e,a,f-(c?1:0)).bottom+o<=i==c?"after":"before";var x=wn(e,st(r,f,h),"line",t,a);d=x.left,v=i<x.top?-1:i>=x.bottom?1:0}return kn(r,f=ce(t.text,f,1),h,v,n-d)}function Tn(e,t,r,n,i,a,o){var s=ue((function(s){var l=i[s],c=1!=l.level;return _n(wn(e,st(r,c?l.to:l.from,c?"before":"after"),"line",t,n),a,o,!0)}),0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=wn(e,st(r,c?l.from:l.to,c?"after":"before"),"line",t,n);_n(u,a,o,!0)&&u.top>o&&(l=i[s-1])}return l}function $n(e,t,r,n,i,a,o){var s=Cn(e,t,n,o),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,p=null,d=0;d<i.length;d++){var h=i[d];if(!(h.from>=c||h.to<=l)){var m=an(e,n,1!=h.level?Math.min(c,h.to)-1:Math.max(l,h.from)).right,g=m<a?a-m+1e9:m-a;(!u||p>g)&&(u=h,p=g)}}return u||(u=i[i.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function Ln(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==on){on=$("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)on.appendChild(document.createTextNode("x")),on.appendChild($("br"));on.appendChild(document.createTextNode("x"))}T(e.measure,on);var r=on.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),M(e.measure),r||1}function En(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=$("span","xxxxxxxxxx"),r=$("pre",[t],"CodeMirror-line-like");T(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function In(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,a=t.gutters.firstChild,o=0;a;a=a.nextSibling,++o){var s=e.display.gutterSpecs[o].className;r[s]=a.offsetLeft+a.clientLeft+i,n[s]=a.clientWidth}return{fixedPos:Bn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Bn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Dn(e){var t=Ln(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/En(e.display)-3);return function(i){if(ar(e.doc,i))return 0;var a=0;if(i.widgets)for(var o=0;o<i.widgets.length;o++)i.widgets[o].height&&(a+=i.widgets[o].height);return r?a+(Math.ceil(i.text.length/n)||1)*t:a+t}}function Hn(e){var t=e.doc,r=Dn(e);t.iter((function(e){var t=r(e);t!=e.height&&rt(e,t)}))}function On(e,t,r,n){var i=e.display;if(!r&&"true"==Te(t).getAttribute("cm-not-content"))return null;var a,o,s=i.lineSpace.getBoundingClientRect();try{a=t.clientX-s.left,o=t.clientY-s.top}catch(e){return null}var l,c=An(e,a,o);if(n&&c.xRel>0&&(l=Qe(e.doc,c.line).text).length==c.ch){var u=N(l,l.length,e.options.tabSize)-l.length;c=st(c.line,Math.max(0,Math.round((a-Gr(e.display).left)/En(e.display))-u))}return c}function Pn(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;n<r.length;n++)if((t-=r[n].size)<0)return n}function Rn(e,t,r,n){null==t&&(t=e.doc.first),null==r&&(r=e.doc.first+e.doc.size),n||(n=0);var i=e.display;if(n&&r<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Et&&nr(e.doc,t)<i.viewTo&&Nn(e);else if(r<=i.viewFrom)Et&&ir(e.doc,r+n)>i.viewFrom?Nn(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)Nn(e);else if(t<=i.viewFrom){var a=Fn(e,r,r+n,1);a?(i.view=i.view.slice(a.index),i.viewFrom=a.lineN,i.viewTo+=n):Nn(e)}else if(r>=i.viewTo){var o=Fn(e,t,t,-1);o?(i.view=i.view.slice(0,o.index),i.viewTo=o.lineN):Nn(e)}else{var s=Fn(e,t,t,-1),l=Fn(e,r,r+n,1);s&&l?(i.view=i.view.slice(0,s.index).concat(Ar(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=n):Nn(e)}var c=i.externalMeasured;c&&(r<c.lineN?c.lineN+=n:t<c.lineN+c.size&&(i.externalMeasured=null))}function Vn(e,t,r){e.curOp.viewChanged=!0;var n=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(n.externalMeasured=null),!(t<n.viewFrom||t>=n.viewTo)){var a=n.view[Pn(e,t)];if(null!=a.node){var o=a.changes||(a.changes=[]);-1==j(o,r)&&o.push(r)}}}function Nn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Fn(e,t,r,n){var i,a=Pn(e,t),o=e.display.view;if(!Et||r==e.doc.first+e.doc.size)return{index:a,lineN:r};for(var s=e.display.viewFrom,l=0;l<a;l++)s+=o[l].size;if(s!=t){if(n>0){if(a==o.length-1)return null;i=s+o[a].size-t,a++}else i=s-t;t+=i,r+=i}for(;nr(e.doc,r)!=r;){if(a==(n<0?0:o.length-1))return null;r+=n*o[a-(n<0?1:0)].size,a+=n}return{index:a,lineN:r}}function jn(e,t,r){var n=e.display;0==n.view.length||t>=n.viewTo||r<=n.viewFrom?(n.view=Ar(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=Ar(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(Pn(e,t))),n.viewFrom=t,n.viewTo<r?n.view=n.view.concat(Ar(e,n.viewTo,r)):n.viewTo>r&&(n.view=n.view.slice(0,Pn(e,r)))),n.viewTo=r}function qn(e){for(var t=e.display.view,r=0,n=0;n<t.length;n++){var i=t[n];i.hidden||i.node&&!i.changes||++r}return r}function Un(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Wn(e,t){void 0===t&&(t=!0);var r=e.doc,n={},i=n.cursors=document.createDocumentFragment(),a=n.selection=document.createDocumentFragment(),o=e.options.$customCursor;o&&(t=!0);for(var s=0;s<r.sel.ranges.length;s++)if(t||s!=r.sel.primIndex){var l=r.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var c=l.empty();if(o){var u=o(e,l);u&&Xn(e,u,i)}else(c||e.options.showCursorWhenSelecting)&&Xn(e,l.head,i);c||Yn(e,l,a)}}return n}function Xn(e,t,r){var n=wn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=r.appendChild($("div"," ","CodeMirror-cursor"));if(i.style.left=n.left+"px",i.style.top=n.top+"px",i.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var a=xn(e,t,"div",null,null),o=a.right-a.left;i.style.width=(o>0?o:e.defaultCharWidth())+"px"}if(n.other){var s=r.appendChild($("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=n.other.left+"px",s.style.top=n.other.top+"px",s.style.height=.85*(n.other.bottom-n.other.top)+"px"}}function Gn(e,t){return e.top-t.top||e.left-t.left}function Yn(e,t,r){var n=e.display,i=e.doc,a=document.createDocumentFragment(),o=Gr(e.display),s=o.left,l=Math.max(n.sizerWidth,Zr(e)-n.sizer.offsetLeft)-o.right,c="ltr"==i.direction;function u(e,t,r,n){t<0&&(t=0),t=Math.round(t),n=Math.round(n),a.appendChild($("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==r?l-e:r)+"px;\n height: "+(n-t)+"px"))}function p(t,r,n){var a,o,p=Qe(i,t),d=p.text.length;function h(r,n){return xn(e,st(t,r),"div",p,n)}function m(t,r,n){var i=Sn(e,p,null,t),a="ltr"==r==("after"==n)?"left":"right";return h("after"==n?i.begin:i.end-(/\s/.test(p.text.charAt(i.end-1))?2:1),a)[a]}var g=ge(p,i.direction);return pe(g,r||0,null==n?d:n,(function(e,t,i,p){var f="ltr"==i,v=h(e,f?"left":"right"),b=h(t-1,f?"right":"left"),y=null==r&&0==e,x=null==n&&t==d,w=0==p,z=!g||p==g.length-1;if(b.top-v.top<=3){var k=(c?x:y)&&z,A=(c?y:x)&&w?s:(f?v:b).left,C=k?l:(f?b:v).right;u(A,v.top,C-A,v.bottom)}else{var S,_,M,T;f?(S=c&&y&&w?s:v.left,_=c?l:m(e,i,"before"),M=c?s:m(t,i,"after"),T=c&&x&&z?l:b.right):(S=c?m(e,i,"before"):s,_=!c&&y&&w?l:v.right,M=!c&&x&&z?s:b.left,T=c?m(t,i,"after"):l),u(S,v.top,_-S,v.bottom),v.bottom<b.top&&u(s,v.bottom,null,b.top),u(M,b.top,T-M,b.bottom)}(!a||Gn(v,a)<0)&&(a=v),Gn(b,a)<0&&(a=b),(!o||Gn(v,o)<0)&&(o=v),Gn(b,o)<0&&(o=b)})),{start:a,end:o}}var d=t.from(),h=t.to();if(d.line==h.line)p(d.line,d.ch,h.ch);else{var m=Qe(i,d.line),g=Qe(i,h.line),f=er(m)==er(g),v=p(d.line,d.ch,f?m.text.length+1:null).end,b=p(h.line,f?0:null,h.ch).start;f&&(v.top<b.top-2?(u(v.right,v.top,null,v.bottom),u(s,b.top,b.left,b.bottom)):u(v.right,v.top,b.left-v.right,v.bottom)),v.bottom<b.top&&u(s,v.bottom,null,b.top)}r.appendChild(a)}function Zn(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var r=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||ei(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Kn(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Qn(e))}function Jn(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&ei(e))}),100)}function Qn(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(xe(e,"focus",e,t),e.state.focused=!0,B(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Zn(e))}function ei(e,t){e.state.delayingBlurEvent||(e.state.focused&&(xe(e,"blur",e,t),e.state.focused=!1,_(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function ti(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,a=0,l=0;l<t.view.length;l++){var c=t.view[l],u=e.options.lineWrapping,p=void 0,d=0;if(!c.hidden){if(i+=c.line.height,o&&s<8){var h=c.node.offsetTop+c.node.offsetHeight;p=h-r,r=h}else{var m=c.node.getBoundingClientRect();p=m.bottom-m.top,!u&&c.text.firstChild&&(d=c.text.firstChild.getBoundingClientRect().right-m.left-1)}var g=c.line.height-p;if((g>.005||g<-.005)&&(i<n&&(a-=g),rt(c.line,p),ri(c.line),c.rest))for(var f=0;f<c.rest.length;f++)ri(c.rest[f]);if(d>e.display.sizerWidth){var v=Math.ceil(d/En(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=c.line,e.display.maxLineChanged=!0)}}}Math.abs(a)>2&&(t.scroller.scrollTop+=a)}function ri(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var r=e.widgets[t],n=r.node.parentNode;n&&(r.height=n.offsetHeight)}}function ni(e,t,r){var n=r&&null!=r.top?Math.max(0,r.top):e.scroller.scrollTop;n=Math.floor(n-Wr(e));var i=r&&null!=r.bottom?r.bottom:n+e.wrapper.clientHeight,a=it(t,n),o=it(t,i);if(r&&r.ensure){var s=r.ensure.from.line,l=r.ensure.to.line;s<a?(a=s,o=it(t,sr(Qe(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=o&&(a=it(t,sr(Qe(t,l))-e.wrapper.clientHeight),o=l)}return{from:a,to:Math.max(o,a+1)}}function ii(e,t){if(!we(e,"scrollCursorIntoView")){var r=e.display,n=r.sizer.getBoundingClientRect(),i=null,a=r.wrapper.ownerDocument;if(t.top+n.top<0?i=!0:t.bottom+n.top>(a.defaultView.innerHeight||a.documentElement.clientHeight)&&(i=!1),null!=i&&!g){var o=$("div","",null,"position: absolute;\n top: "+(t.top-r.viewOffset-Wr(e.display))+"px;\n height: "+(t.bottom-t.top+Yr(e)+r.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function ai(e,t,r,n){var i;null==n&&(n=0),e.options.lineWrapping||t!=r||(r="before"==t.sticky?st(t.line,t.ch+1,"before"):t,t=t.ch?st(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var a=0;a<5;a++){var o=!1,s=wn(e,t),l=r&&r!=t?wn(e,r):s,c=si(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-n,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+n}),u=e.doc.scrollTop,p=e.doc.scrollLeft;if(null!=c.scrollTop&&(mi(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(o=!0)),null!=c.scrollLeft&&(fi(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-p)>1&&(o=!0)),!o)break}return i}function oi(e,t){var r=si(e,t);null!=r.scrollTop&&mi(e,r.scrollTop),null!=r.scrollLeft&&fi(e,r.scrollLeft)}function si(e,t){var r=e.display,n=Ln(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:r.scroller.scrollTop,a=Kr(e),o={};t.bottom-t.top>a&&(t.bottom=t.top+a);var s=e.doc.height+Xr(r),l=t.top<n,c=t.bottom>s-n;if(t.top<i)o.scrollTop=l?0:t.top;else if(t.bottom>i+a){var u=Math.min(t.top,(c?s:t.bottom)-a);u!=i&&(o.scrollTop=u)}var p=e.options.fixedGutter?0:r.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft-p,h=Zr(e)-r.gutters.offsetWidth,m=t.right-t.left>h;return m&&(t.right=t.left+h),t.left<10?o.scrollLeft=0:t.left<d?o.scrollLeft=Math.max(0,t.left+p-(m?0:10)):t.right>h+d-3&&(o.scrollLeft=t.right+(m?0:10)-h),o}function li(e,t){null!=t&&(di(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ci(e){di(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ui(e,t,r){null==t&&null==r||di(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function pi(e,t){di(e),e.curOp.scrollToPos=t}function di(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,hi(e,zn(e,t.from),zn(e,t.to),t.margin))}function hi(e,t,r,n){var i=si(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});ui(e,i.scrollLeft,i.scrollTop)}function mi(e,t){Math.abs(e.doc.scrollTop-t)<2||(r||Ui(e,{top:t}),gi(e,t,!0),r&&Ui(e),Oi(e,100))}function gi(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function fi(e,t,r,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,Yi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function vi(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+Xr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+Yr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var bi=function(e,t,r){this.cm=r;var n=this.vert=$("div",[$("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=$("div",[$("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),ve(n,"scroll",(function(){n.clientHeight&&t(n.scrollTop,"vertical")})),ve(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,o&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};bi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var a=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+a)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==n&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},bi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},bi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},bi.prototype.zeroWidthHack=function(){var e=y&&!m?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new F,this.disableVert=new F},bi.prototype.enableZeroWidthBar=function(e,t,r){function n(){var i=e.getBoundingClientRect();("vert"==r?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,n)}e.style.visibility="",t.set(1e3,n)},bi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var yi=function(){};function xi(e,t){t||(t=vi(e));var r=e.display.barWidth,n=e.display.barHeight;wi(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&ti(e),wi(e,vi(e)),r=e.display.barWidth,n=e.display.barHeight}function wi(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}yi.prototype.update=function(){return{bottom:0,right:0}},yi.prototype.setScrollLeft=function(){},yi.prototype.setScrollTop=function(){},yi.prototype.clear=function(){};var zi={native:bi,null:yi};function ki(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&_(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new zi[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ve(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,r){"horizontal"==r?fi(e,t):mi(e,t)}),e),e.display.scrollbars.addClass&&B(e.display.wrapper,e.display.scrollbars.addClass)}var Ai=0;function Ci(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ai,markArrays:null},Sr(e.curOp)}function Si(e){var t=e.curOp;t&&Mr(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;_i(e)}))}function _i(e){for(var t=e.ops,r=0;r<t.length;r++)Mi(t[r]);for(var n=0;n<t.length;n++)Ti(t[n]);for(var i=0;i<t.length;i++)$i(t[i]);for(var a=0;a<t.length;a++)Li(t[a]);for(var o=0;o<t.length;o++)Ei(t[o])}function Mi(e){var t=e.cm,r=t.display;Vi(t),e.updateMaxLine&&cr(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<r.viewFrom||e.scrollToPos.to.line>=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Ri(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ti(e){e.updatedDisplay=e.mustUpdate&&ji(e.cm,e.update)}function $i(e){var t=e.cm,r=t.display;e.updatedDisplay&&ti(t),e.barMeasure=vi(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=tn(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Yr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Zr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function Li(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&fi(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var r=e.focus&&e.focus==I(O(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,r),(e.updatedDisplay||e.startHeight!=t.doc.height)&&xi(t,e.barMeasure),e.updatedDisplay&&Gi(t,e.barMeasure),e.selectionChanged&&Zn(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),r&&Kn(e.cm)}function Ei(e){var t=e.cm,r=t.display,n=t.doc;e.updatedDisplay&&qi(t,e.update),null==r.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(r.wheelStartX=r.wheelStartY=null),null!=e.scrollTop&&gi(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&fi(t,e.scrollLeft,!0,!0),e.scrollToPos&&ii(t,ai(t,mt(n,e.scrollToPos.from),mt(n,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(i)for(var o=0;o<i.length;++o)i[o].lines.length||xe(i[o],"hide");if(a)for(var s=0;s<a.length;++s)a[s].lines.length&&xe(a[s],"unhide");r.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&xe(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Ii(e,t){if(e.curOp)return t();Ci(e);try{return t()}finally{Si(e)}}function Bi(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Ci(e);try{return t.apply(e,arguments)}finally{Si(e)}}}function Di(e){return function(){if(this.curOp)return e.apply(this,arguments);Ci(this);try{return e.apply(this,arguments)}finally{Si(this)}}}function Hi(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Ci(t);try{return e.apply(this,arguments)}finally{Si(t)}}}function Oi(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,R(Pi,e))}function Pi(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var r=+new Date+e.options.workTime,n=wt(e,t.highlightFrontier),i=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(a){if(n.line>=e.display.viewFrom){var o=a.styles,s=a.text.length>e.options.maxHighlightLength?Ye(t.mode,n.state):null,l=yt(e,a,n,!0);s&&(n.state=s),a.styles=l.styles;var c=a.styleClasses,u=l.classes;u?a.styleClasses=u:c&&(a.styleClasses=null);for(var p=!o||o.length!=a.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),d=0;!p&&d<o.length;++d)p=o[d]!=a.styles[d];p&&i.push(n.line),a.stateAfter=n.save(),n.nextLine()}else a.text.length<=e.options.maxHighlightLength&&zt(e,a.text,n),a.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>r)return Oi(e,e.options.workDelay),!0})),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&Ii(e,(function(){for(var t=0;t<i.length;t++)Vn(e,i[t],"text")}))}}var Ri=function(e,t,r){var n=e.display;this.viewport=t,this.visible=ni(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=Zr(e),this.force=r,this.dims=In(e),this.events=[]};function Vi(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Yr(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Yr(e)+"px",t.scrollbarsClipped=!0)}function Ni(e){if(e.hasFocus())return null;var t=I(O(e));if(!t||!E(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=P(e).getSelection();n.anchorNode&&n.extend&&E(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}function Fi(e){if(e&&e.activeElt&&e.activeElt!=I(e.activeElt.ownerDocument)&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&E(document.body,e.anchorNode)&&E(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,r=t.defaultView.getSelection(),n=t.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),r.removeAllRanges(),r.addRange(n),r.extend(e.focusNode,e.focusOffset)}}function ji(e,t){var r=e.display,n=e.doc;if(t.editorIsHidden)return Nn(e),!1;if(!t.force&&t.visible.from>=r.viewFrom&&t.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==qn(e))return!1;Zi(e)&&(Nn(e),t.dims=In(e));var i=n.first+n.size,a=Math.max(t.visible.from-e.options.viewportMargin,n.first),o=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFrom<a&&a-r.viewFrom<20&&(a=Math.max(n.first,r.viewFrom)),r.viewTo>o&&r.viewTo-o<20&&(o=Math.min(i,r.viewTo)),Et&&(a=nr(e.doc,a),o=ir(e.doc,o));var s=a!=r.viewFrom||o!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;jn(e,a,o),r.viewOffset=sr(Qe(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var l=qn(e);if(!s&&0==l&&!t.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var c=Ni(e);return l>4&&(r.lineDiv.style.display="none"),Wi(e,r.updateLineNumbers,t.dims),l>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,Fi(c),M(r.cursorDiv),M(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,s&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,Oi(e,400)),r.updateLineNumbers=null,!0}function qi(e,t){for(var r=t.viewport,n=!0;;n=!1){if(n&&e.options.lineWrapping&&t.oldDisplayWidth!=Zr(e))n&&(t.visible=ni(e.display,e.doc,r));else if(r&&null!=r.top&&(r={top:Math.min(e.doc.height+Xr(e.display)-Kr(e),r.top)}),t.visible=ni(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!ji(e,t))break;ti(e);var i=vi(e);Un(e),xi(e,i),Gi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ui(e,t){var r=new Ri(e,t);if(ji(e,r)){ti(e),qi(e,r);var n=vi(e);Un(e),xi(e,n),Gi(e,n),r.finish()}}function Wi(e,t,r){var n=e.display,i=e.options.lineNumbers,a=n.lineDiv,o=a.firstChild;function s(t){var r=t.nextSibling;return l&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),r}for(var c=n.view,u=n.viewFrom,p=0;p<c.length;p++){var d=c[p];if(d.hidden);else if(d.node&&d.node.parentNode==a){for(;o!=d.node;)o=s(o);var h=i&&null!=t&&t<=u&&d.lineNumber;d.changes&&(j(d.changes,"gutter")>-1&&(h=!1),Er(e,d,u,r)),h&&(M(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(ot(e.options,u)))),o=d.node.nextSibling}else{var m=Vr(e,d,u,r);a.insertBefore(m,o)}u+=d.size}for(;o;)o=s(o)}function Xi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",$r(e,"gutterChanged",e)}function Gi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Yr(e)+"px"}function Yi(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=Bn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,a=n+"px",o=0;o<r.length;o++)if(!r[o].hidden){e.options.fixedGutter&&(r[o].gutter&&(r[o].gutter.style.left=a),r[o].gutterBackground&&(r[o].gutterBackground.style.left=a));var s=r[o].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=a}e.options.fixedGutter&&(t.gutters.style.left=n+i+"px")}}function Zi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,r=ot(e.options,t.first+t.size-1),n=e.display;if(r.length!=n.lineNumChars){var i=n.measure.appendChild($("div",[$("div",r)],"CodeMirror-linenumber CodeMirror-gutter-elt")),a=i.firstChild.offsetWidth,o=i.offsetWidth-a;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(a,n.lineGutter.offsetWidth-o)+1,n.lineNumWidth=n.lineNumInnerWidth+o,n.lineNumChars=n.lineNumInnerWidth?r.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",Xi(e.display),!0}return!1}function Ki(e,t){for(var r=[],n=!1,i=0;i<e.length;i++){var a=e[i],o=null;if("string"!=typeof a&&(o=a.style,a=a.className),"CodeMirror-linenumbers"==a){if(!t)continue;n=!0}r.push({className:a,style:o})}return t&&!n&&r.push({className:"CodeMirror-linenumbers",style:null}),r}function Ji(e){var t=e.gutters,r=e.gutterSpecs;M(t),e.lineGutter=null;for(var n=0;n<r.length;++n){var i=r[n],a=i.className,o=i.style,s=t.appendChild($("div",null,"CodeMirror-gutter "+a));o&&(s.style.cssText=o),"CodeMirror-linenumbers"==a&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=r.length?"":"none",Xi(e)}function Qi(e){Ji(e.display),Rn(e),Yi(e)}function ea(e,t,n,i){var a=this;this.input=n,a.scrollbarFiller=$("div",null,"CodeMirror-scrollbar-filler"),a.scrollbarFiller.setAttribute("cm-not-content","true"),a.gutterFiller=$("div",null,"CodeMirror-gutter-filler"),a.gutterFiller.setAttribute("cm-not-content","true"),a.lineDiv=L("div",null,"CodeMirror-code"),a.selectionDiv=$("div",null,null,"position: relative; z-index: 1"),a.cursorDiv=$("div",null,"CodeMirror-cursors"),a.measure=$("div",null,"CodeMirror-measure"),a.lineMeasure=$("div",null,"CodeMirror-measure"),a.lineSpace=L("div",[a.measure,a.lineMeasure,a.selectionDiv,a.cursorDiv,a.lineDiv],null,"position: relative; outline: none");var c=L("div",[a.lineSpace],"CodeMirror-lines");a.mover=$("div",[c],null,"position: relative"),a.sizer=$("div",[a.mover],"CodeMirror-sizer"),a.sizerWidth=null,a.heightForcer=$("div",null,null,"position: absolute; height: "+q+"px; width: 1px;"),a.gutters=$("div",null,"CodeMirror-gutters"),a.lineGutter=null,a.scroller=$("div",[a.sizer,a.heightForcer,a.gutters],"CodeMirror-scroll"),a.scroller.setAttribute("tabIndex","-1"),a.wrapper=$("div",[a.scrollbarFiller,a.gutterFiller,a.scroller],"CodeMirror"),u&&p>=105&&(a.wrapper.style.clipPath="inset(0px)"),a.wrapper.setAttribute("translate","no"),o&&s<8&&(a.gutters.style.zIndex=-1,a.scroller.style.paddingRight=0),l||r&&b||(a.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(a.wrapper):e(a.wrapper)),a.viewFrom=a.viewTo=t.first,a.reportedViewFrom=a.reportedViewTo=t.first,a.view=[],a.renderedView=null,a.externalMeasured=null,a.viewOffset=0,a.lastWrapHeight=a.lastWrapWidth=0,a.updateLineNumbers=null,a.nativeBarWidth=a.barHeight=a.barWidth=0,a.scrollbarsClipped=!1,a.lineNumWidth=a.lineNumInnerWidth=a.lineNumChars=null,a.alignWidgets=!1,a.cachedCharWidth=a.cachedTextHeight=a.cachedPaddingH=null,a.maxLine=null,a.maxLineLength=0,a.maxLineChanged=!1,a.wheelDX=a.wheelDY=a.wheelStartX=a.wheelStartY=null,a.shift=!1,a.selForContextMenu=null,a.activeTouch=null,a.gutterSpecs=Ki(i.gutters,i.lineNumbers),Ji(a),n.init(a)}Ri.prototype.signal=function(e,t){ke(e,t)&&this.events.push(arguments)},Ri.prototype.finish=function(){for(var e=0;e<this.events.length;e++)xe.apply(null,this.events[e])};var ta=0,ra=null;function na(e){var t=e.wheelDeltaX,r=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==r&&e.detail&&e.axis==e.VERTICAL_AXIS?r=e.detail:null==r&&(r=e.wheelDelta),{x:t,y:r}}function ia(e){var t=na(e);return t.x*=ra,t.y*=ra,t}function aa(e,t){u&&102==p&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout((function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""}),100));var n=na(t),i=n.x,a=n.y,o=ra;0===t.deltaMode&&(i=t.deltaX,a=t.deltaY,o=1);var s=e.display,c=s.scroller,h=c.scrollWidth>c.clientWidth,m=c.scrollHeight>c.clientHeight;if(i&&h||a&&m){if(a&&y&&l)e:for(var g=t.target,f=s.view;g!=c;g=g.parentNode)for(var v=0;v<f.length;v++)if(f[v].node==g){e.display.currentWheelTarget=g;break e}if(i&&!r&&!d&&null!=o)return a&&m&&mi(e,Math.max(0,c.scrollTop+a*o)),fi(e,Math.max(0,c.scrollLeft+i*o)),(!a||a&&m)&&Ce(t),void(s.wheelStartX=null);if(a&&null!=o){var b=a*o,x=e.doc.scrollTop,w=x+s.wrapper.clientHeight;b<0?x=Math.max(0,x+b-50):w=Math.min(e.doc.height,w+b+50),Ui(e,{top:x,bottom:w})}ta<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=c.scrollLeft,s.wheelStartY=c.scrollTop,s.wheelDX=i,s.wheelDY=a,setTimeout((function(){if(null!=s.wheelStartX){var e=c.scrollLeft-s.wheelStartX,t=c.scrollTop-s.wheelStartY,r=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,r&&(ra=(ra*ta+r)/(ta+1),++ta)}}),200)):(s.wheelDX+=i,s.wheelDY+=a))}}o?ra=-.53:r?ra=15:u?ra=-.7:h&&(ra=-1/3);var oa=function(e,t){this.ranges=e,this.primIndex=t};oa.prototype.primary=function(){return this.ranges[this.primIndex]},oa.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var r=this.ranges[t],n=e.ranges[t];if(!ct(r.anchor,n.anchor)||!ct(r.head,n.head))return!1}return!0},oa.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new sa(ut(this.ranges[t].anchor),ut(this.ranges[t].head));return new oa(e,this.primIndex)},oa.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},oa.prototype.contains=function(e,t){t||(t=e);for(var r=0;r<this.ranges.length;r++){var n=this.ranges[r];if(lt(t,n.from())>=0&<(e,n.to())<=0)return r}return-1};var sa=function(e,t){this.anchor=e,this.head=t};function la(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort((function(e,t){return lt(e.from(),t.from())})),r=j(t,i);for(var a=1;a<t.length;a++){var o=t[a],s=t[a-1],l=lt(s.to(),o.from());if(n&&!o.empty()?l>0:l>=0){var c=dt(s.from(),o.from()),u=pt(s.to(),o.to()),p=s.empty()?o.from()==o.head:s.from()==s.head;a<=r&&--r,t.splice(--a,2,new sa(p?u:c,p?c:u))}}return new oa(t,r)}function ca(e,t){return new oa([new sa(e,t||e)],0)}function ua(e){return e.text?st(e.from.line+e.text.length-1,J(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function pa(e,t){if(lt(e,t.from)<0)return e;if(lt(e,t.to)<=0)return ua(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=ua(t).ch-t.to.ch),st(r,n)}function da(e,t){for(var r=[],n=0;n<e.sel.ranges.length;n++){var i=e.sel.ranges[n];r.push(new sa(pa(i.anchor,t),pa(i.head,t)))}return la(e.cm,r,e.sel.primIndex)}function ha(e,t,r){return e.line==t.line?st(r.line,e.ch-t.ch+r.ch):st(r.line+(e.line-t.line),e.ch)}function ma(e,t,r){for(var n=[],i=st(e.first,0),a=i,o=0;o<t.length;o++){var s=t[o],l=ha(s.from,i,a),c=ha(ua(s),i,a);if(i=s.to,a=c,"around"==r){var u=e.sel.ranges[o],p=lt(u.head,u.anchor)<0;n[o]=new sa(p?c:l,p?l:c)}else n[o]=new sa(l,l)}return new oa(n,e.sel.primIndex)}function ga(e){e.doc.mode=We(e.options,e.doc.modeOption),fa(e)}function fa(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Oi(e,100),e.state.modeGen++,e.curOp&&Rn(e)}function va(e,t){return 0==t.from.ch&&0==t.to.ch&&""==J(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ba(e,t,r,n){function i(e){return r?r[e]:null}function a(e,r,i){pr(e,r,i,n),$r(e,"change",e,t)}function o(e,t){for(var r=[],a=e;a<t;++a)r.push(new ur(c[a],i(a),n));return r}var s=t.from,l=t.to,c=t.text,u=Qe(e,s.line),p=Qe(e,l.line),d=J(c),h=i(c.length-1),m=l.line-s.line;if(t.full)e.insert(0,o(0,c.length)),e.remove(c.length,e.size-c.length);else if(va(e,t)){var g=o(0,c.length-1);a(p,p.text,h),m&&e.remove(s.line,m),g.length&&e.insert(s.line,g)}else if(u==p)if(1==c.length)a(u,u.text.slice(0,s.ch)+d+u.text.slice(l.ch),h);else{var f=o(1,c.length-1);f.push(new ur(d+u.text.slice(l.ch),h,n)),a(u,u.text.slice(0,s.ch)+c[0],i(0)),e.insert(s.line+1,f)}else if(1==c.length)a(u,u.text.slice(0,s.ch)+c[0]+p.text.slice(l.ch),i(0)),e.remove(s.line+1,m);else{a(u,u.text.slice(0,s.ch)+c[0],i(0)),a(p,d+p.text.slice(l.ch),h);var v=o(1,c.length-1);m>1&&e.remove(s.line+1,m-1),e.insert(s.line+1,v)}$r(e,"change",e,t)}function ya(e,t,r){function n(e,i,a){if(e.linked)for(var o=0;o<e.linked.length;++o){var s=e.linked[o];if(s.doc!=i){var l=a&&s.sharedHist;r&&!l||(t(s.doc,l),n(s.doc,e,l))}}}n(e,null,!0)}function xa(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Hn(e),ga(e),wa(e),e.options.direction=t.direction,e.options.lineWrapping||cr(e),e.options.mode=t.modeOption,Rn(e)}function wa(e){("rtl"==e.doc.direction?B:_)(e.display.lineDiv,"CodeMirror-rtl")}function za(e){Ii(e,(function(){wa(e),Rn(e)}))}function ka(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Aa(e,t){var r={from:ut(t.from),to:ua(t),text:et(e,t.from,t.to)};return La(e,r,t.from.line,t.to.line+1),ya(e,(function(e){return La(e,r,t.from.line,t.to.line+1)}),!0),r}function Ca(e){for(;e.length&&J(e).ranges;)e.pop()}function Sa(e,t){return t?(Ca(e.done),J(e.done)):e.done.length&&!J(e.done).ranges?J(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),J(e.done)):void 0}function _a(e,t,r,n){var i=e.history;i.undone.length=0;var a,o,s=+new Date;if((i.lastOp==n||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(a=Sa(i,i.lastOp==n)))o=J(a.changes),0==lt(t.from,t.to)&&0==lt(t.from,o.to)?o.to=ua(t):a.changes.push(Aa(e,t));else{var l=J(i.done);for(l&&l.ranges||$a(e.sel,i.done),a={changes:[Aa(e,t)],generation:i.generation},i.done.push(a);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,o||xe(e,"historyAdded")}function Ma(e,t,r,n){var i=t.charAt(0);return"*"==i||"+"==i&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Ta(e,t,r,n){var i=e.history,a=n&&n.origin;r==i.lastSelOp||a&&i.lastSelOrigin==a&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==a||Ma(e,a,J(i.done),t))?i.done[i.done.length-1]=t:$a(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=a,i.lastSelOp=r,n&&!1!==n.clearRedo&&Ca(i.undone)}function $a(e,t){var r=J(t);r&&r.ranges&&r.equals(e)||t.push(e)}function La(e,t,r,n){var i=t["spans_"+e.id],a=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),(function(r){r.markedSpans&&((i||(i=t["spans_"+e.id]={}))[a]=r.markedSpans),++a}))}function Ea(e){if(!e)return null;for(var t,r=0;r<e.length;++r)e[r].marker.explicitlyCleared?t||(t=e.slice(0,r)):t&&t.push(e[r]);return t?t.length?t:null:e}function Ia(e,t){var r=t["spans_"+e.id];if(!r)return null;for(var n=[],i=0;i<t.text.length;++i)n.push(Ea(r[i]));return n}function Ba(e,t){var r=Ia(e,t),n=Nt(e,t);if(!r)return n;if(!n)return r;for(var i=0;i<r.length;++i){var a=r[i],o=n[i];if(a&&o)e:for(var s=0;s<o.length;++s){for(var l=o[s],c=0;c<a.length;++c)if(a[c].marker==l.marker)continue e;a.push(l)}else o&&(r[i]=o)}return r}function Da(e,t,r){for(var n=[],i=0;i<e.length;++i){var a=e[i];if(a.ranges)n.push(r?oa.prototype.deepCopy.call(a):a);else{var o=a.changes,s=[];n.push({changes:s});for(var l=0;l<o.length;++l){var c=o[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var p in c)(u=p.match(/^spans_(\d+)$/))&&j(t,Number(u[1]))>-1&&(J(s)[p]=c[p],delete c[p])}}}return n}function Ha(e,t,r,n){if(n){var i=e.anchor;if(r){var a=lt(t,i)<0;a!=lt(r,i)<0?(i=t,t=r):a!=lt(t,r)<0&&(t=r)}return new sa(i,t)}return new sa(r||t,t)}function Oa(e,t,r,n,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),ja(e,new oa([Ha(e.sel.primary(),t,r,i)],0),n)}function Pa(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),a=0;a<e.sel.ranges.length;a++)n[a]=Ha(e.sel.ranges[a],t[a],null,i);ja(e,la(e.cm,n,e.sel.primIndex),r)}function Ra(e,t,r,n){var i=e.sel.ranges.slice(0);i[t]=r,ja(e,la(e.cm,i,e.sel.primIndex),n)}function Va(e,t,r,n){ja(e,ca(t,r),n)}function Na(e,t,r){var n={ranges:t.ranges,update:function(t){this.ranges=[];for(var r=0;r<t.length;r++)this.ranges[r]=new sa(mt(e,t[r].anchor),mt(e,t[r].head))},origin:r&&r.origin};return xe(e,"beforeSelectionChange",e,n),e.cm&&xe(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?la(e.cm,n.ranges,n.ranges.length-1):t}function Fa(e,t,r){var n=e.history.done,i=J(n);i&&i.ranges?(n[n.length-1]=t,qa(e,t,r)):ja(e,t,r)}function ja(e,t,r){qa(e,t,r),Ta(e,e.sel,e.cm?e.cm.curOp.id:NaN,r)}function qa(e,t,r){(ke(e,"beforeSelectionChange")||e.cm&&ke(e.cm,"beforeSelectionChange"))&&(t=Na(e,t,r));var n=r&&r.bias||(lt(t.primary().head,e.sel.primary().head)<0?-1:1);Ua(e,Xa(e,t,n,!0)),r&&!1===r.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||ci(e.cm)}function Ua(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ze(e.cm)),$r(e,"cursorActivity",e))}function Wa(e){Ua(e,Xa(e,e.sel,null,!1))}function Xa(e,t,r,n){for(var i,a=0;a<t.ranges.length;a++){var o=t.ranges[a],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[a],l=Ya(e,o.anchor,s&&s.anchor,r,n),c=o.head==o.anchor?l:Ya(e,o.head,s&&s.head,r,n);(i||l!=o.anchor||c!=o.head)&&(i||(i=t.ranges.slice(0,a)),i[a]=new sa(l,c))}return i?la(e.cm,i,t.primIndex):t}function Ga(e,t,r,n,i){var a=Qe(e,t.line);if(a.markedSpans)for(var o=0;o<a.markedSpans.length;++o){var s=a.markedSpans[o],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(u?s.to>=t.ch:s.to>t.ch))){if(i&&(xe(l,"beforeCursorEnter"),l.explicitlyCleared)){if(a.markedSpans){--o;continue}break}if(!l.atomic)continue;if(r){var p=l.find(n<0?1:-1),d=void 0;if((n<0?u:c)&&(p=Za(e,p,-n,p&&p.line==t.line?a:null)),p&&p.line==t.line&&(d=lt(p,r))&&(n<0?d<0:d>0))return Ga(e,p,t,n,i)}var h=l.find(n<0?-1:1);return(n<0?c:u)&&(h=Za(e,h,n,h.line==t.line?a:null)),h?Ga(e,h,t,n,i):null}}return t}function Ya(e,t,r,n,i){var a=n||1,o=Ga(e,t,r,a,i)||!i&&Ga(e,t,r,a,!0)||Ga(e,t,r,-a,i)||!i&&Ga(e,t,r,-a,!0);return o||(e.cantEdit=!0,st(e.first,0))}function Za(e,t,r,n){return r<0&&0==t.ch?t.line>e.first?mt(e,st(t.line-1)):null:r>0&&t.ch==(n||Qe(e,t.line)).text.length?t.line<e.first+e.size-1?st(t.line+1,0):null:new st(t.line,t.ch+r)}function Ka(e){e.setSelection(st(e.firstLine(),0),st(e.lastLine()),W)}function Ja(e,t,r){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return r&&(n.update=function(t,r,i,a){t&&(n.from=mt(e,t)),r&&(n.to=mt(e,r)),i&&(n.text=i),void 0!==a&&(n.origin=a)}),xe(e,"beforeChange",e,n),e.cm&&xe(e.cm,"beforeChange",e.cm,n),n.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function Qa(e,t,r){if(e.cm){if(!e.cm.curOp)return Bi(e.cm,Qa)(e,t,r);if(e.cm.state.suppressEdits)return}if(!(ke(e,"beforeChange")||e.cm&&ke(e.cm,"beforeChange"))||(t=Ja(e,t,!0))){var n=Lt&&!r&&jt(e,t.from,t.to);if(n)for(var i=n.length-1;i>=0;--i)eo(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else eo(e,t)}}function eo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=lt(t.from,t.to)){var r=da(e,t);_a(e,t,r,e.cm?e.cm.curOp.id:NaN),no(e,t,r,Nt(e,t));var n=[];ya(e,(function(e,r){r||-1!=j(n,e.history)||(lo(e.history,t),n.push(e.history)),no(e,t,null,Nt(e,t))}))}}function to(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!n||r){for(var i,a=e.history,o=e.sel,s="undo"==t?a.done:a.undone,l="undo"==t?a.undone:a.done,c=0;c<s.length&&(i=s[c],r?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=s.length){for(a.lastOrigin=a.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(n)return void s.push(i);break}if($a(i,l),r&&!i.equals(e.sel))return void ja(e,i,{clearRedo:!1});o=i}var u=[];$a(o,l),l.push({changes:u,generation:a.generation}),a.generation=i.generation||++a.maxGeneration;for(var p=ke(e,"beforeChange")||e.cm&&ke(e.cm,"beforeChange"),d=function(r){var n=i.changes[r];if(n.origin=t,p&&!Ja(e,n,!1))return s.length=0,{};u.push(Aa(e,n));var a=r?da(e,n):J(s);no(e,n,a,Ba(e,n)),!r&&e.cm&&e.cm.scrollIntoView({from:n.from,to:ua(n)});var o=[];ya(e,(function(e,t){t||-1!=j(o,e.history)||(lo(e.history,n),o.push(e.history)),no(e,n,null,Ba(e,n))}))},h=i.changes.length-1;h>=0;--h){var m=d(h);if(m)return m.v}}}}function ro(e,t){if(0!=t&&(e.first+=t,e.sel=new oa(Q(e.sel.ranges,(function(e){return new sa(st(e.anchor.line+t,e.anchor.ch),st(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Rn(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;n<r.viewTo;n++)Vn(e.cm,n,"gutter")}}function no(e,t,r,n){if(e.cm&&!e.cm.curOp)return Bi(e.cm,no)(e,t,r,n);if(t.to.line<e.first)ro(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);ro(e,i),t={from:st(e.first,0),to:st(t.to.line+i,t.to.ch),text:[J(t.text)],origin:t.origin}}var a=e.lastLine();t.to.line>a&&(t={from:t.from,to:st(a,Qe(e,a).text.length),text:[t.text[0]],origin:t.origin}),t.removed=et(e,t.from,t.to),r||(r=da(e,t)),e.cm?io(e.cm,t,n):ba(e,t,n),qa(e,r,W),e.cantEdit&&Ya(e,st(e.firstLine(),0))&&(e.cantEdit=!1)}}function io(e,t,r){var n=e.doc,i=e.display,a=t.from,o=t.to,s=!1,l=a.line;e.options.lineWrapping||(l=nt(er(Qe(n,a.line))),n.iter(l,o.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),n.sel.contains(t.from,t.to)>-1&&ze(e),ba(n,t,r,Dn(e)),e.options.lineWrapping||(n.iter(l,a.line+t.text.length,(function(e){var t=lr(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),$t(n,a.line),Oi(e,400);var c=t.text.length-(o.line-a.line)-1;t.full?Rn(e):a.line!=o.line||1!=t.text.length||va(e.doc,t)?Rn(e,a.line,o.line+1,c):Vn(e,a.line,"text");var u=ke(e,"changes"),p=ke(e,"change");if(p||u){var d={from:a,to:o,text:t.text,removed:t.removed,origin:t.origin};p&&$r(e,"change",e,d),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function ao(e,t,r,n,i){var a;n||(n=r),lt(n,r)<0&&(r=(a=[n,r])[0],n=a[1]),"string"==typeof t&&(t=e.splitLines(t)),Qa(e,{from:r,to:n,text:t,origin:i})}function oo(e,t,r,n){r<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function so(e,t,r,n){for(var i=0;i<e.length;++i){var a=e[i],o=!0;if(a.ranges){a.copied||((a=e[i]=a.deepCopy()).copied=!0);for(var s=0;s<a.ranges.length;s++)oo(a.ranges[s].anchor,t,r,n),oo(a.ranges[s].head,t,r,n)}else{for(var l=0;l<a.changes.length;++l){var c=a.changes[l];if(r<c.from.line)c.from=st(c.from.line+n,c.from.ch),c.to=st(c.to.line+n,c.to.ch);else if(t<=c.to.line){o=!1;break}}o||(e.splice(0,i+1),i=0)}}}function lo(e,t){var r=t.from.line,n=t.to.line,i=t.text.length-(n-r)-1;so(e.done,r,n,i),so(e.undone,r,n,i)}function co(e,t,r,n){var i=t,a=t;return"number"==typeof t?a=Qe(e,ht(e,t)):i=nt(t),null==i?null:(n(a,i)&&e.cm&&Vn(e.cm,i,r),a)}function uo(e){this.lines=e,this.parent=null;for(var t=0,r=0;r<e.length;++r)e[r].parent=this,t+=e[r].height;this.height=t}function po(e){this.children=e;for(var t=0,r=0,n=0;n<e.length;++n){var i=e[n];t+=i.chunkSize(),r+=i.height,i.parent=this}this.size=t,this.height=r,this.parent=null}sa.prototype.from=function(){return dt(this.anchor,this.head)},sa.prototype.to=function(){return pt(this.anchor,this.head)},sa.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},uo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var r=e,n=e+t;r<n;++r){var i=this.lines[r];this.height-=i.height,dr(i),$r(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,r){this.height+=r,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var n=0;n<t.length;++n)t[n].parent=this},iterN:function(e,t,r){for(var n=e+t;e<n;++e)if(r(this.lines[e]))return!0}},po.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var r=0;r<this.children.length;++r){var n=this.children[r],i=n.chunkSize();if(e<i){var a=Math.min(t,i-e),o=n.height;if(n.removeInner(e,a),this.height-=o-n.height,i==a&&(this.children.splice(r--,1),n.parent=null),0==(t-=a))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof uo))){var s=[];this.collapse(s),this.children=[new uo(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,r){this.size+=t.length,this.height+=r;for(var n=0;n<this.children.length;++n){var i=this.children[n],a=i.chunkSize();if(e<=a){if(i.insertInner(e,t,r),i.lines&&i.lines.length>50){for(var o=i.lines.length%25+25,s=o;s<i.lines.length;){var l=new uo(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++n,0,l),l.parent=this}i.lines=i.lines.slice(0,o),this.maybeSpill()}break}e-=a}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new po(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var r=j(e.parent.children,e);e.parent.children.splice(r+1,0,t)}else{var n=new po(e.children);n.parent=e,e.children=[n,t],e=n}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;n<this.children.length;++n){var i=this.children[n],a=i.chunkSize();if(e<a){var o=Math.min(t,a-e);if(i.iterN(e,o,r))return!0;if(0==(t-=o))break;e=0}else e-=a}}};var ho=function(e,t,r){if(r)for(var n in r)r.hasOwnProperty(n)&&(this[n]=r[n]);this.doc=e,this.node=t};function mo(e,t,r){sr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&li(e,r)}function go(e,t,r,n){var i=new ho(e,r,n),a=e.cm;return a&&i.noHScroll&&(a.display.alignWidgets=!0),co(e,t,"widget",(function(t){var r=t.widgets||(t.widgets=[]);if(null==i.insertAt?r.push(i):r.splice(Math.min(r.length,Math.max(0,i.insertAt)),0,i),i.line=t,a&&!ar(e,t)){var n=sr(t)<e.scrollTop;rt(t,t.height+qr(i)),n&&li(a,i.height),a.curOp.forceUpdate=!0}return!0})),a&&$r(a,"lineWidgetAdded",a,i,"number"==typeof t?t:nt(t)),i}ho.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,r=this.line,n=nt(r);if(null!=n&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(r.widgets=null);var a=qr(this);rt(r,Math.max(0,r.height-a)),e&&(Ii(e,(function(){mo(e,r,-a),Vn(e,n,"widget")})),$r(e,"lineWidgetCleared",e,this,n))}},ho.prototype.changed=function(){var e=this,t=this.height,r=this.doc.cm,n=this.line;this.height=null;var i=qr(this)-t;i&&(ar(this.doc,n)||rt(n,n.height+i),r&&Ii(r,(function(){r.curOp.forceUpdate=!0,mo(r,n,i),$r(r,"lineWidgetChanged",r,e,nt(n))})))},Ae(ho);var fo=0,vo=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++fo};function bo(e,t,r,n,i){if(n&&n.shared)return xo(e,t,r,n,i);if(e.cm&&!e.cm.curOp)return Bi(e.cm,bo)(e,t,r,n,i);var a=new vo(e,i),o=lt(t,r);if(n&&V(n,a,!1),o>0||0==o&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=L("span",[a.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(Qt(e,t.line,t,r,a)||t.line!=r.line&&Qt(e,r.line,t,r,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");Bt()}a.addToHistory&&_a(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,r.line+1,(function(n){c&&a.collapsed&&!c.options.lineWrapping&&er(n)==c.display.maxLine&&(s=!0),a.collapsed&&l!=t.line&&rt(n,0),Pt(n,new Dt(a,l==t.line?t.ch:null,l==r.line?r.ch:null),e.cm&&e.cm.curOp),++l})),a.collapsed&&e.iter(t.line,r.line+1,(function(t){ar(e,t)&&rt(t,0)})),a.clearOnEnter&&ve(a,"beforeCursorEnter",(function(){return a.clear()})),a.readOnly&&(It(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++fo,a.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),a.collapsed)Rn(c,t.line,r.line+1);else if(a.className||a.startStyle||a.endStyle||a.css||a.attributes||a.title)for(var u=t.line;u<=r.line;u++)Vn(c,u,"text");a.atomic&&Wa(c.doc),$r(c,"markerAdded",c,a)}return a}vo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ci(e),ke(this,"clear")){var r=this.find();r&&$r(this,"clear",r.from,r.to)}for(var n=null,i=null,a=0;a<this.lines.length;++a){var o=this.lines[a],s=Ht(o.markedSpans,this);e&&!this.collapsed?Vn(e,nt(o),"text"):e&&(null!=s.to&&(i=nt(o)),null!=s.from&&(n=nt(o))),o.markedSpans=Ot(o.markedSpans,s),null==s.from&&this.collapsed&&!ar(this.doc,o)&&e&&rt(o,Ln(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=er(this.lines[l]),u=lr(c);u>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=n&&e&&this.collapsed&&Rn(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Wa(e.doc)),e&&$r(e,"markerCleared",e,this,n,i),t&&Si(e),this.parent&&this.parent.clear()}},vo.prototype.find=function(e,t){var r,n;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var a=this.lines[i],o=Ht(a.markedSpans,this);if(null!=o.from&&(r=st(t?a:nt(a),o.from),-1==e))return r;if(null!=o.to&&(n=st(t?a:nt(a),o.to),1==e))return n}return r&&{from:r,to:n}},vo.prototype.changed=function(){var e=this,t=this.find(-1,!0),r=this,n=this.doc.cm;t&&n&&Ii(n,(function(){var i=t.line,a=nt(t.line),o=rn(n,a);if(o&&(dn(o),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!ar(r.doc,i)&&null!=r.height){var s=r.height;r.height=null;var l=qr(r)-s;l&&rt(i,i.height+l)}$r(n,"markerChanged",n,e)}))},vo.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=j(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},vo.prototype.detachLine=function(e){if(this.lines.splice(j(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Ae(vo);var yo=function(e,t){this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=this};function xo(e,t,r,n,i){(n=V(n)).shared=!1;var a=[bo(e,t,r,n,i)],o=a[0],s=n.widgetNode;return ya(e,(function(e){s&&(n.widgetNode=s.cloneNode(!0)),a.push(bo(e,mt(e,t),mt(e,r),n,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;o=J(a)})),new yo(a,o)}function wo(e){return e.findMarks(st(e.first,0),e.clipPos(st(e.lastLine())),(function(e){return e.parent}))}function zo(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=n.find(),a=e.clipPos(i.from),o=e.clipPos(i.to);if(lt(a,o)){var s=bo(e,a,o,n.primary,n.primary.type);n.markers.push(s),s.parent=n}}}function ko(e){for(var t=function(t){var r=e[t],n=[r.primary.doc];ya(r.primary.doc,(function(e){return n.push(e)}));for(var i=0;i<r.markers.length;i++){var a=r.markers[i];-1==j(n,a.doc)&&(a.parent=null,r.markers.splice(i--,1))}},r=0;r<e.length;r++)t(r)}yo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();$r(this,"clear")}},yo.prototype.find=function(e,t){return this.primary.find(e,t)},Ae(yo);var Ao=0,Co=function(e,t,r,n,i){if(!(this instanceof Co))return new Co(e,t,r,n,i);null==r&&(r=0),po.call(this,[new uo([new ur("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var a=st(r,0);this.sel=ca(a),this.history=new ka(null),this.id=++Ao,this.modeOption=t,this.lineSep=n,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),ba(this,{from:a,to:a,text:e}),ja(this,ca(a),W)};Co.prototype=re(po.prototype,{constructor:Co,iter:function(e,t,r){r?this.iterN(e-this.first,t-e,r):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var r=0,n=0;n<t.length;++n)r+=t[n].height;this.insertInner(e-this.first,t,r)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=tt(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Hi((function(e){var t=st(this.first,0),r=this.first+this.size-1;Qa(this,{from:t,to:st(r,Qe(this,r).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&ui(this.cm,0,0),ja(this,ca(t),W)})),replaceRange:function(e,t,r,n){ao(this,e,t=mt(this,t),r=r?mt(this,r):t,n)},getRange:function(e,t,r){var n=et(this,mt(this,e),mt(this,t));return!1===r?n:""===r?n.join(""):n.join(r||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(at(this,e))return Qe(this,e)},getLineNumber:function(e){return nt(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Qe(this,e)),er(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return mt(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Hi((function(e,t,r){Va(this,mt(this,"number"==typeof e?st(e,t||0):e),null,r)})),setSelection:Hi((function(e,t,r){Va(this,mt(this,e),mt(this,t||e),r)})),extendSelection:Hi((function(e,t,r){Oa(this,mt(this,e),t&&mt(this,t),r)})),extendSelections:Hi((function(e,t){Pa(this,ft(this,e),t)})),extendSelectionsBy:Hi((function(e,t){Pa(this,ft(this,Q(this.sel.ranges,e)),t)})),setSelections:Hi((function(e,t,r){if(e.length){for(var n=[],i=0;i<e.length;i++)n[i]=new sa(mt(this,e[i].anchor),mt(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),ja(this,la(this.cm,n,t),r)}})),addSelection:Hi((function(e,t,r){var n=this.sel.ranges.slice(0);n.push(new sa(mt(this,e),mt(this,t||e))),ja(this,la(this.cm,n,n.length-1),r)})),getSelection:function(e){for(var t,r=this.sel.ranges,n=0;n<r.length;n++){var i=et(this,r[n].from(),r[n].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],r=this.sel.ranges,n=0;n<r.length;n++){var i=et(this,r[n].from(),r[n].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[n]=i}return t},replaceSelection:function(e,t,r){for(var n=[],i=0;i<this.sel.ranges.length;i++)n[i]=e;this.replaceSelections(n,t,r||"+input")},replaceSelections:Hi((function(e,t,r){for(var n=[],i=this.sel,a=0;a<i.ranges.length;a++){var o=i.ranges[a];n[a]={from:o.from(),to:o.to(),text:this.splitLines(e[a]),origin:r}}for(var s=t&&"end"!=t&&ma(this,n,t),l=n.length-1;l>=0;l--)Qa(this,n[l]);s?Fa(this,s):this.cm&&ci(this.cm)})),undo:Hi((function(){to(this,"undo")})),redo:Hi((function(){to(this,"redo")})),undoSelection:Hi((function(){to(this,"undo",!0)})),redoSelection:Hi((function(){to(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++r;return{undo:t,redo:r}},clearHistory:function(){var e=this;this.history=new ka(this.history),ya(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Da(this.history.done),undone:Da(this.history.undone)}},setHistory:function(e){var t=this.history=new ka(this.history);t.done=Da(e.done.slice(0),null,!0),t.undone=Da(e.undone.slice(0),null,!0)},setGutterMarker:Hi((function(e,t,r){return co(this,e,"gutter",(function(e){var n=e.gutterMarkers||(e.gutterMarkers={});return n[t]=r,!r&&oe(n)&&(e.gutterMarkers=null),!0}))})),clearGutter:Hi((function(e){var t=this;this.iter((function(r){r.gutterMarkers&&r.gutterMarkers[e]&&co(t,r,"gutter",(function(){return r.gutterMarkers[e]=null,oe(r.gutterMarkers)&&(r.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!at(this,e))return null;if(t=e,!(e=Qe(this,e)))return null}else if(null==(t=nt(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Hi((function(e,t,r){return co(this,e,"gutter"==t?"gutter":"class",(function(e){var n="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[n]){if(C(r).test(e[n]))return!1;e[n]+=" "+r}else e[n]=r;return!0}))})),removeLineClass:Hi((function(e,t,r){return co(this,e,"gutter"==t?"gutter":"class",(function(e){var n="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[n];if(!i)return!1;if(null==r)e[n]=null;else{var a=i.match(C(r));if(!a)return!1;var o=a.index+a[0].length;e[n]=i.slice(0,a.index)+(a.index&&o!=i.length?" ":"")+i.slice(o)||null}return!0}))})),addLineWidget:Hi((function(e,t,r){return go(this,e,t,r)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,r){return bo(this,mt(this,e),mt(this,t),r,r&&r.type||"range")},setBookmark:function(e,t){var r={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return bo(this,e=mt(this,e),e,r,"bookmark")},findMarksAt:function(e){var t=[],r=Qe(this,(e=mt(this,e)).line).markedSpans;if(r)for(var n=0;n<r.length;++n){var i=r[n];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=mt(this,e),t=mt(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,(function(a){var o=a.markedSpans;if(o)for(var s=0;s<o.length;s++){var l=o[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||r&&!r(l.marker)||n.push(l.marker.parent||l.marker)}++i})),n},getAllMarks:function(){var e=[];return this.iter((function(t){var r=t.markedSpans;if(r)for(var n=0;n<r.length;++n)null!=r[n].from&&e.push(r[n].marker)})),e},posFromIndex:function(e){var t,r=this.first,n=this.lineSeparator().length;return this.iter((function(i){var a=i.text.length+n;if(a>e)return t=e,!0;e-=a,++r})),mt(this,st(r,t))},indexFromPos:function(e){var t=(e=mt(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var r=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+r})),t},copy:function(e){var t=new Co(tt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,r=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<r&&(r=e.to);var n=new Co(tt(this,t,r),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],zo(n,wo(this)),n},unlinkDoc:function(e){if(e instanceof Rs&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),ko(wo(this));break}if(e.history==this.history){var r=[e.id];ya(e,(function(e){return r.push(e.id)}),!0),e.history=new ka(null),e.history.done=Da(this.history.done,r),e.history.undone=Da(this.history.undone,r)}},iterLinkedDocs:function(e){ya(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):He(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Hi((function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&za(this.cm))}))}),Co.prototype.eachLine=Co.prototype.iter;var So=0;function _o(e){var t=this;if($o(t),!we(t,e)&&!Ur(t.display,e)){Ce(e),o&&(So=+new Date);var r=On(t,e,!0),n=e.dataTransfer.files;if(r&&!t.isReadOnly())if(n&&n.length&&window.FileReader&&window.File)for(var i=n.length,a=Array(i),s=0,l=function(){++s==i&&Bi(t,(function(){var e={from:r=mt(t.doc,r),to:r,text:t.doc.splitLines(a.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};Qa(t.doc,e),Fa(t.doc,ca(mt(t.doc,r),mt(t.doc,ua(e))))}))()},c=function(e,r){if(t.options.allowDropFileTypes&&-1==j(t.options.allowDropFileTypes,e.type))l();else{var n=new FileReader;n.onerror=function(){return l()},n.onload=function(){var e=n.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(a[r]=e),l()},n.readAsText(e)}},u=0;u<n.length;u++)c(n[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(r)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var p=e.dataTransfer.getData("Text");if(p){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),qa(t.doc,ca(r,r)),d)for(var h=0;h<d.length;++h)ao(t.doc,"",d[h].anchor,d[h].head,"drag");t.replaceSelection(p,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Mo(e,t){if(o&&(!e.state.draggingText||+new Date-So<100))Me(t);else if(!we(e,t)&&!Ur(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!h)){var r=$("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),d&&r.parentNode.removeChild(r)}}function To(e,t){var r=On(e,t);if(r){var n=document.createDocumentFragment();Xn(e,r,n),e.display.dragCursor||(e.display.dragCursor=$("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),T(e.display.dragCursor,n)}}function $o(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Lo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),r=[],n=0;n<t.length;n++){var i=t[n].CodeMirror;i&&r.push(i)}r.length&&r[0].operation((function(){for(var t=0;t<r.length;t++)e(r[t])}))}}var Eo=!1;function Io(){Eo||(Bo(),Eo=!0)}function Bo(){var e;ve(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Lo(Do)}),100))})),ve(window,"blur",(function(){return Lo(ei)}))}function Do(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Ho={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Oo=0;Oo<10;Oo++)Ho[Oo+48]=Ho[Oo+96]=String(Oo);for(var Po=65;Po<=90;Po++)Ho[Po]=String.fromCharCode(Po);for(var Ro=1;Ro<=12;Ro++)Ho[Ro+111]=Ho[Ro+63235]="F"+Ro;var Vo={};function No(e){var t,r,n,i,a=e.split(/-(?!$)/);e=a[a.length-1];for(var o=0;o<a.length-1;o++){var s=a[o];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))r=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);n=!0}}return t&&(e="Alt-"+e),r&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),n&&(e="Shift-"+e),e}function Fo(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(/^(name|fallthrough|(de|at)tach)$/.test(r))continue;if("..."==n){delete e[r];continue}for(var i=Q(r.split(" "),No),a=0;a<i.length;a++){var o=void 0,s=void 0;a==i.length-1?(s=i.join(" "),o=n):(s=i.slice(0,a+1).join(" "),o="...");var l=t[s];if(l){if(l!=o)throw new Error("Inconsistent bindings for "+s)}else t[s]=o}delete e[r]}for(var c in t)e[c]=t[c];return e}function jo(e,t,r,n){var i=(t=Xo(t)).call?t.call(e,n):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&r(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return jo(e,t.fallthrough,r,n);for(var a=0;a<t.fallthrough.length;a++){var o=jo(e,t.fallthrough[a],r,n);if(o)return o}}}function qo(e){var t="string"==typeof e?e:Ho[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Uo(e,t,r){var n=e;return t.altKey&&"Alt"!=n&&(e="Alt-"+e),(k?t.metaKey:t.ctrlKey)&&"Ctrl"!=n&&(e="Ctrl-"+e),(k?t.ctrlKey:t.metaKey)&&"Mod"!=n&&(e="Cmd-"+e),!r&&t.shiftKey&&"Shift"!=n&&(e="Shift-"+e),e}function Wo(e,t){if(d&&34==e.keyCode&&e.char)return!1;var r=Ho[e.keyCode];return null!=r&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(r=e.code),Uo(r,e,t))}function Xo(e){return"string"==typeof e?Vo[e]:e}function Go(e,t){for(var r=e.doc.sel.ranges,n=[],i=0;i<r.length;i++){for(var a=t(r[i]);n.length&<(a.from,J(n).to)<=0;){var o=n.pop();if(lt(o.from,a.from)<0){a.from=o.from;break}}n.push(a)}Ii(e,(function(){for(var t=n.length-1;t>=0;t--)ao(e.doc,"",n[t].from,n[t].to,"+delete");ci(e)}))}function Yo(e,t,r){var n=ce(e.text,t+r,r);return n<0||n>e.text.length?null:n}function Zo(e,t,r){var n=Yo(e,t.ch,r);return null==n?null:new st(t.line,n,r<0?"after":"before")}function Ko(e,t,r,n,i){if(e){"rtl"==t.doc.direction&&(i=-i);var a=ge(r,t.doc.direction);if(a){var o,s=i<0?J(a):a[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=nn(t,r);o=i<0?r.text.length-1:0;var u=an(t,c,o).top;o=ue((function(e){return an(t,c,e).top==u}),i<0==(1==s.level)?s.from:s.to-1,o),"before"==l&&(o=Yo(r,o,1))}else o=i<0?s.to:s.from;return new st(n,o,l)}}return new st(n,i<0?r.text.length:0,i<0?"before":"after")}function Jo(e,t,r,n){var i=ge(t,e.doc.direction);if(!i)return Zo(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var a=he(i,r.ch,r.sticky),o=i[a];if("ltr"==e.doc.direction&&o.level%2==0&&(n>0?o.to>r.ch:o.from<r.ch))return Zo(t,r,n);var s,l=function(e,r){return Yo(t,e instanceof st?e.ch:e,r)},c=function(r){return e.options.lineWrapping?(s=s||nn(e,t),Sn(e,t,s,r)):{begin:0,end:t.text.length}},u=c("before"==r.sticky?l(r,-1):r.ch);if("rtl"==e.doc.direction||1==o.level){var p=1==o.level==n<0,d=l(r,p?1:-1);if(null!=d&&(p?d<=o.to&&d<=u.end:d>=o.from&&d>=u.begin)){var h=p?"before":"after";return new st(r.line,d,h)}}var m=function(e,t,n){for(var a=function(e,t){return t?new st(r.line,l(e,1),"before"):new st(r.line,e,"after")};e>=0&&e<i.length;e+=t){var o=i[e],s=t>0==(1!=o.level),c=s?n.begin:l(n.end,-1);if(o.from<=c&&c<o.to)return a(c,s);if(c=s?o.from:l(o.to,-1),n.begin<=c&&c<n.end)return a(c,s)}},g=m(a+n,n,u);if(g)return g;var f=n>0?u.end:l(u.begin,-1);return null==f||n>0&&f==t.text.length||!(g=m(n>0?0:i.length-1,n,c(f)))?null:g}Vo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Vo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Vo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Vo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Vo.default=y?Vo.macDefault:Vo.pcDefault;var Qo={selectAll:Ka,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),W)},killLine:function(e){return Go(e,(function(t){if(t.empty()){var r=Qe(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line<e.lastLine()?{from:t.head,to:st(t.head.line+1,0)}:{from:t.head,to:st(t.head.line,r)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Go(e,(function(t){return{from:st(t.from().line,0),to:mt(e.doc,st(t.to().line+1,0))}}))},delLineLeft:function(e){return Go(e,(function(e){return{from:st(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Go(e,(function(t){var r=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:r},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Go(e,(function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div");return{from:t.from(),to:n}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(st(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(st(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return es(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return rs(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return ts(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div")}),G)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:r},"div")}),G)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var r=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:r},"div");return n.ch<e.getLine(n.line).search(/\S/)?rs(e,t.head):n}),G)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],r=e.listSelections(),n=e.options.tabSize,i=0;i<r.length;i++){var a=r[i].from(),o=N(e.getLine(a.line),a.ch,n);t.push(K(n-o%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ii(e,(function(){for(var t=e.listSelections(),r=[],n=0;n<t.length;n++)if(t[n].empty()){var i=t[n].head,a=Qe(e.doc,i.line).text;if(a)if(i.ch==a.length&&(i=new st(i.line,i.ch-1)),i.ch>0)i=new st(i.line,i.ch+1),e.replaceRange(a.charAt(i.ch-1)+a.charAt(i.ch-2),st(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var o=Qe(e.doc,i.line-1).text;o&&(i=new st(i.line,1),e.replaceRange(a.charAt(0)+e.doc.lineSeparator()+o.charAt(o.length-1),st(i.line-1,o.length-1),i,"+transpose"))}r.push(new sa(i,i))}e.setSelections(r)}))},newlineAndIndent:function(e){return Ii(e,(function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);ci(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function es(e,t){var r=Qe(e.doc,t),n=er(r);return n!=r&&(t=nt(n)),Ko(!0,e,n,t,1)}function ts(e,t){var r=Qe(e.doc,t),n=tr(r);return n!=r&&(t=nt(n)),Ko(!0,e,r,t,-1)}function rs(e,t){var r=es(e,t.line),n=Qe(e.doc,r.line),i=ge(n,e.doc.direction);if(!i||0==i[0].level){var a=Math.max(r.ch,n.text.search(/\S/)),o=t.line==r.line&&t.ch<=a&&t.ch;return st(r.line,o?0:a,r.sticky)}return r}function ns(e,t,r){if("string"==typeof t&&!(t=Qo[t]))return!1;e.display.input.ensurePolled();var n=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r&&(e.display.shift=!1),i=t(e)!=U}finally{e.display.shift=n,e.state.suppressEdits=!1}return i}function is(e,t,r){for(var n=0;n<e.state.keyMaps.length;n++){var i=jo(t,e.state.keyMaps[n],r,e);if(i)return i}return e.options.extraKeys&&jo(t,e.options.extraKeys,r,e)||jo(t,e.options.keyMap,r,e)}var as=new F;function os(e,t,r,n){var i=e.state.keySeq;if(i){if(qo(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:as.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),ss(e,i+" "+t,r,n))return!0}return ss(e,t,r,n)}function ss(e,t,r,n){var i=is(e,t,n);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&$r(e,"keyHandled",e,t,r),"handled"!=i&&"multi"!=i||(Ce(r),Zn(e)),!!i}function ls(e,t){var r=Wo(t,!0);return!!r&&(t.shiftKey&&!e.state.keySeq?os(e,"Shift-"+r,t,(function(t){return ns(e,t,!0)}))||os(e,r,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ns(e,t)})):os(e,r,t,(function(t){return ns(e,t)})))}function cs(e,t,r){return os(e,"'"+r+"'",t,(function(t){return ns(e,t,!0)}))}var us=null;function ps(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=I(O(t)),we(t,e)))){o&&s<11&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var i=ls(t,e);d&&(us=i?n:null,i||88!=n||Pe||!(y?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),r&&!y&&!i&&46==n&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||ds(t)}}function ds(e){var t=e.display.lineDiv;function r(e){18!=e.keyCode&&e.altKey||(_(t,"CodeMirror-crosshair"),ye(document,"keyup",r),ye(document,"mouseover",r))}B(t,"CodeMirror-crosshair"),ve(document,"keyup",r),ve(document,"mouseover",r)}function hs(e){16==e.keyCode&&(this.doc.sel.shift=!1),we(this,e)}function ms(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Ur(t.display,e)||we(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var r=e.keyCode,n=e.charCode;if(d&&r==us)return us=null,void Ce(e);if(!d||e.which&&!(e.which<10)||!ls(t,e)){var i=String.fromCharCode(null==n?r:n);"\b"!=i&&(cs(t,e,i)||t.display.input.onKeyPress(e))}}}var gs,fs,vs=400,bs=function(e,t,r){this.time=e,this.pos=t,this.button=r};function ys(e,t){var r=+new Date;return fs&&fs.compare(r,e,t)?(gs=fs=null,"triple"):gs&&gs.compare(r,e,t)?(fs=new bs(r,e,t),gs=null,"double"):(gs=new bs(r,e,t),fs=null,"single")}function xs(e){var t=this,r=t.display;if(!(we(t,e)||r.activeTouch&&r.input.supportsTouch()))if(r.input.ensurePolled(),r.shift=e.shiftKey,Ur(r,e))l||(r.scroller.draggable=!1,setTimeout((function(){return r.scroller.draggable=!0}),100));else if(!Ts(t,e)){var n=On(t,e),i=$e(e),a=n?ys(n,i):"single";P(t).focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),n&&ws(t,i,n,a,e)||(1==i?n?ks(t,n,a,e):Te(e)==r.scroller&&Ce(e):2==i?(n&&Oa(t.doc,n),setTimeout((function(){return r.input.focus()}),20)):3==i&&(A?t.display.input.onContextMenu(e):Jn(t)))}}function ws(e,t,r,n,i){var a="Click";return"double"==n?a="Double"+a:"triple"==n&&(a="Triple"+a),os(e,Uo(a=(1==t?"Left":2==t?"Middle":"Right")+a,i),i,(function(t){if("string"==typeof t&&(t=Qo[t]),!t)return!1;var n=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n=t(e,r)!=U}finally{e.state.suppressEdits=!1}return n}))}function zs(e,t,r){var n=e.getOption("configureMouse"),i=n?n(e,t,r):{};if(null==i.unit){var a=x?r.shiftKey&&r.metaKey:r.altKey;i.unit=a?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||r.shiftKey),null==i.addNew&&(i.addNew=y?r.metaKey:r.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(y?r.altKey:r.ctrlKey)),i}function ks(e,t,r,n){o?setTimeout(R(Kn,e),0):e.curOp.focus=I(O(e));var i,a=zs(e,r,n),s=e.doc.sel;e.options.dragDrop&&Ie&&!e.isReadOnly()&&"single"==r&&(i=s.contains(t))>-1&&(lt((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(lt(i.to(),t)>0||t.xRel<0)?As(e,n,t,a):Ss(e,n,t,a)}function As(e,t,r,n){var i=e.display,a=!1,c=Bi(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Jn(e)),ye(i.wrapper.ownerDocument,"mouseup",c),ye(i.wrapper.ownerDocument,"mousemove",u),ye(i.scroller,"dragstart",p),ye(i.scroller,"drop",c),a||(Ce(t),n.addNew||Oa(e.doc,r,null,null,n.extend),l&&!h||o&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(e){a=a||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},p=function(){return a=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!n.moveOnDrag,ve(i.wrapper.ownerDocument,"mouseup",c),ve(i.wrapper.ownerDocument,"mousemove",u),ve(i.scroller,"dragstart",p),ve(i.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Cs(e,t,r){if("char"==r)return new sa(t,t);if("word"==r)return e.findWordAt(t);if("line"==r)return new sa(st(t.line,0),mt(e.doc,st(t.line+1,0)));var n=r(e,t);return new sa(n.from,n.to)}function Ss(e,t,r,n){o&&Jn(e);var i=e.display,a=e.doc;Ce(t);var s,l,c=a.sel,u=c.ranges;if(n.addNew&&!n.extend?(l=a.sel.contains(r),s=l>-1?u[l]:new sa(r,r)):(s=a.sel.primary(),l=a.sel.primIndex),"rectangle"==n.unit)n.addNew||(s=new sa(r,r)),r=On(e,t,!0,!0),l=-1;else{var p=Cs(e,r,n.unit);s=n.extend?Ha(s,p.anchor,p.head,n.extend):p}n.addNew?-1==l?(l=u.length,ja(a,la(e,u.concat([s]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==n.unit&&!n.extend?(ja(a,la(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=a.sel):Ra(a,l,s,X):(l=0,ja(a,new oa([s],0),X),c=a.sel);var d=r;function h(t){if(0!=lt(d,t))if(d=t,"rectangle"==n.unit){for(var i=[],o=e.options.tabSize,u=N(Qe(a,r.line).text,r.ch,o),p=N(Qe(a,t.line).text,t.ch,o),h=Math.min(u,p),m=Math.max(u,p),g=Math.min(r.line,t.line),f=Math.min(e.lastLine(),Math.max(r.line,t.line));g<=f;g++){var v=Qe(a,g).text,b=Y(v,h,o);h==m?i.push(new sa(st(g,b),st(g,b))):v.length>b&&i.push(new sa(st(g,b),st(g,Y(v,m,o))))}i.length||i.push(new sa(r,r)),ja(a,la(e,c.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var y,x=s,w=Cs(e,t,n.unit),z=x.anchor;lt(w.anchor,z)>0?(y=w.head,z=dt(x.from(),w.anchor)):(y=w.anchor,z=pt(x.to(),w.head));var k=c.ranges.slice(0);k[l]=_s(e,new sa(mt(a,z),y)),ja(a,la(e,k,l),X)}}var m=i.wrapper.getBoundingClientRect(),g=0;function f(t){var r=++g,o=On(e,t,!0,"rectangle"==n.unit);if(o)if(0!=lt(o,d)){e.curOp.focus=I(O(e)),h(o);var s=ni(i,a);(o.line>=s.to||o.line<s.from)&&setTimeout(Bi(e,(function(){g==r&&f(t)})),150)}else{var l=t.clientY<m.top?-20:t.clientY>m.bottom?20:0;l&&setTimeout(Bi(e,(function(){g==r&&(i.scroller.scrollTop+=l,f(t))})),50)}}function v(t){e.state.selectingText=!1,g=1/0,t&&(Ce(t),i.input.focus()),ye(i.wrapper.ownerDocument,"mousemove",b),ye(i.wrapper.ownerDocument,"mouseup",y),a.history.lastSelOrigin=null}var b=Bi(e,(function(e){0!==e.buttons&&$e(e)?f(e):v(e)})),y=Bi(e,v);e.state.selectingText=y,ve(i.wrapper.ownerDocument,"mousemove",b),ve(i.wrapper.ownerDocument,"mouseup",y)}function _s(e,t){var r=t.anchor,n=t.head,i=Qe(e.doc,r.line);if(0==lt(r,n)&&r.sticky==n.sticky)return t;var a=ge(i);if(!a)return t;var o=he(a,r.ch,r.sticky),s=a[o];if(s.from!=r.ch&&s.to!=r.ch)return t;var l,c=o+(s.from==r.ch==(1!=s.level)?0:1);if(0==c||c==a.length)return t;if(n.line!=r.line)l=(n.line-r.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=he(a,n.ch,n.sticky),p=u-o||(n.ch-r.ch)*(1==s.level?-1:1);l=u==c-1||u==c?p<0:p>0}var d=a[c+(l?-1:0)],h=l==(1==d.level),m=h?d.from:d.to,g=h?"after":"before";return r.ch==m&&r.sticky==g?t:new sa(new st(r.line,m,g),n)}function Ms(e,t,r,n){var i,a;if(t.touches)i=t.touches[0].clientX,a=t.touches[0].clientY;else try{i=t.clientX,a=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&Ce(t);var o=e.display,s=o.lineDiv.getBoundingClientRect();if(a>s.bottom||!ke(e,r))return _e(t);a-=s.top-o.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var c=o.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=i)return xe(e,r,e,it(e.doc,a),e.display.gutterSpecs[l].className,t),_e(t)}}function Ts(e,t){return Ms(e,t,"gutterClick",!0)}function $s(e,t){Ur(e.display,t)||Ls(e,t)||we(e,t,"contextmenu")||A||e.display.input.onContextMenu(t)}function Ls(e,t){return!!ke(e,"gutterContextMenu")&&Ms(e,t,"gutterContextMenu",!1)}function Es(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),mn(e)}bs.prototype.compare=function(e,t,r){return this.time+vs>e&&0==lt(t,this.pos)&&r==this.button};var Is={toString:function(){return"CodeMirror.Init"}},Bs={},Ds={};function Hs(e){var t=e.optionHandlers;function r(r,n,i,a){e.defaults[r]=n,i&&(t[r]=a?function(e,t,r){r!=Is&&i(e,t,r)}:i)}e.defineOption=r,e.Init=Is,r("value","",(function(e,t){return e.setValue(t)}),!0),r("mode",null,(function(e,t){e.doc.modeOption=t,ga(e)}),!0),r("indentUnit",2,ga,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,(function(e){fa(e),mn(e),Rn(e)}),!0),r("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var r=[],n=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var a=e.text.indexOf(t,i);if(-1==a)break;i=a+t.length,r.push(st(n,a))}n++}));for(var i=r.length-1;i>=0;i--)ao(e.doc,t,r[i],st(r[i].line,r[i].ch+t.length))}})),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,r){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),r!=Is&&e.refresh()})),r("specialCharPlaceholder",vr,(function(e){return e.refresh()}),!0),r("electricChars",!0),r("inputStyle",b?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),r("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),r("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),r("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),r("rtlMoveVisually",!w),r("wholeLineUpdateBefore",!0),r("theme","default",(function(e){Es(e),Qi(e)}),!0),r("keyMap","default",(function(e,t,r){var n=Xo(t),i=r!=Is&&Xo(r);i&&i.detach&&i.detach(e,n),n.attach&&n.attach(e,i||null)})),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,Ps,!0),r("gutters",[],(function(e,t){e.display.gutterSpecs=Ki(t,e.options.lineNumbers),Qi(e)}),!0),r("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Bn(e.display)+"px":"0",e.refresh()}),!0),r("coverGutterNextToScrollbar",!1,(function(e){return xi(e)}),!0),r("scrollbarStyle","native",(function(e){ki(e),xi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),r("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Ki(e.options.gutters,t),Qi(e)}),!0),r("firstLineNumber",1,Qi,!0),r("lineNumberFormatter",(function(e){return e}),Qi,!0),r("showCursorWhenSelecting",!1,Un,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,(function(e,t){"nocursor"==t&&(ei(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),r("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),r("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),r("dragDrop",!0,Os),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,Un,!0),r("singleCursorHeightPerLine",!0,Un,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,fa,!0),r("addModeClass",!1,fa,!0),r("pollInterval",100),r("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),r("historyEventDelay",1250),r("viewportMargin",10,(function(e){return e.refresh()}),!0),r("maxHighlightLength",1e4,fa,!0),r("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),r("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),r("autofocus",null),r("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),r("phrases",null)}function Os(e,t,r){if(!t!=!(r&&r!=Is)){var n=e.display.dragFunctions,i=t?ve:ye;i(e.display.scroller,"dragstart",n.start),i(e.display.scroller,"dragenter",n.enter),i(e.display.scroller,"dragover",n.over),i(e.display.scroller,"dragleave",n.leave),i(e.display.scroller,"drop",n.drop)}}function Ps(e){e.options.lineWrapping?(B(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(_(e.display.wrapper,"CodeMirror-wrap"),cr(e)),Hn(e),Rn(e),mn(e),setTimeout((function(){return xi(e)}),100)}function Rs(e,t){var r=this;if(!(this instanceof Rs))return new Rs(e,t);this.options=t=t?V(t):{},V(Bs,t,!1);var n=t.value;"string"==typeof n?n=new Co(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new Rs.inputStyles[t.inputStyle](this),a=this.display=new ea(e,n,i,t);for(var c in a.wrapper.CodeMirror=this,Es(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ki(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new F,keySeq:null,specialChars:null},t.autofocus&&!b&&a.input.focus(),o&&s<11&&setTimeout((function(){return r.display.input.reset(!0)}),20),Vs(this),Io(),Ci(this),this.curOp.forceUpdate=!0,xa(this,n),t.autofocus&&!b||this.hasFocus()?setTimeout((function(){r.hasFocus()&&!r.state.focused&&Qn(r)}),20):ei(this),Ds)Ds.hasOwnProperty(c)&&Ds[c](this,t[c],Is);Zi(this),t.finishInit&&t.finishInit(this);for(var u=0;u<Ns.length;++u)Ns[u](this);Si(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(a.lineDiv).textRendering&&(a.lineDiv.style.textRendering="auto")}function Vs(e){var t=e.display;ve(t.scroller,"mousedown",Bi(e,xs)),ve(t.scroller,"dblclick",o&&s<11?Bi(e,(function(t){if(!we(e,t)){var r=On(e,t);if(r&&!Ts(e,t)&&!Ur(e.display,t)){Ce(t);var n=e.findWordAt(r);Oa(e.doc,n.anchor,n.head)}}})):function(t){return we(e,t)||Ce(t)}),ve(t.scroller,"contextmenu",(function(t){return $s(e,t)})),ve(t.input.getField(),"contextmenu",(function(r){t.scroller.contains(r.target)||$s(e,r)}));var r,n={end:0};function i(){t.activeTouch&&(r=setTimeout((function(){return t.activeTouch=null}),1e3),(n=t.activeTouch).end=+new Date)}function a(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var r=t.left-e.left,n=t.top-e.top;return r*r+n*n>400}ve(t.scroller,"touchstart",(function(i){if(!we(e,i)&&!a(i)&&!Ts(e,i)){t.input.ensurePolled(),clearTimeout(r);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-n.end<=300?n:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),ve(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),ve(t.scroller,"touchend",(function(r){var n=t.activeTouch;if(n&&!Ur(t,r)&&null!=n.left&&!n.moved&&new Date-n.start<300){var a,o=e.coordsChar(t.activeTouch,"page");a=!n.prev||l(n,n.prev)?new sa(o,o):!n.prev.prev||l(n,n.prev.prev)?e.findWordAt(o):new sa(st(o.line,0),mt(e.doc,st(o.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),Ce(r)}i()})),ve(t.scroller,"touchcancel",i),ve(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(mi(e,t.scroller.scrollTop),fi(e,t.scroller.scrollLeft,!0),xe(e,"scroll",e))})),ve(t.scroller,"mousewheel",(function(t){return aa(e,t)})),ve(t.scroller,"DOMMouseScroll",(function(t){return aa(e,t)})),ve(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){we(e,t)||Me(t)},over:function(t){we(e,t)||(To(e,t),Me(t))},start:function(t){return Mo(e,t)},drop:Bi(e,_o),leave:function(t){we(e,t)||$o(e)}};var c=t.input.getField();ve(c,"keyup",(function(t){return hs.call(e,t)})),ve(c,"keydown",Bi(e,ps)),ve(c,"keypress",Bi(e,ms)),ve(c,"focus",(function(t){return Qn(e,t)})),ve(c,"blur",(function(t){return ei(e,t)}))}Rs.defaults=Bs,Rs.optionHandlers=Ds;var Ns=[];function Fs(e,t,r,n){var i,a=e.doc;null==r&&(r="add"),"smart"==r&&(a.mode.indent?i=wt(e,t).state:r="prev");var o=e.options.tabSize,s=Qe(a,t),l=N(s.text,null,o);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(n||/\S/.test(s.text)){if("smart"==r&&((c=a.mode.indent(i,s.text.slice(u.length),s.text))==U||c>150)){if(!n)return;r="prev"}}else c=0,r="not";"prev"==r?c=t>a.first?N(Qe(a,t-1).text,null,o):0:"add"==r?c=l+e.options.indentUnit:"subtract"==r?c=l-e.options.indentUnit:"number"==typeof r&&(c=l+r),c=Math.max(0,c);var p="",d=0;if(e.options.indentWithTabs)for(var h=Math.floor(c/o);h;--h)d+=o,p+="\t";if(d<c&&(p+=K(c-d)),p!=u)return ao(a,p,st(t,0),st(t,u.length),"+input"),s.stateAfter=null,!0;for(var m=0;m<a.sel.ranges.length;m++){var g=a.sel.ranges[m];if(g.head.line==t&&g.head.ch<u.length){var f=st(t,u.length);Ra(a,m,new sa(f,f));break}}}Rs.defineInitHook=function(e){return Ns.push(e)};var js=null;function qs(e){js=e}function Us(e,t,r,n,i){var a=e.doc;e.display.shift=!1,n||(n=a.sel);var o=+new Date-200,s="paste"==i||e.state.pasteIncoming>o,l=He(t),c=null;if(s&&n.ranges.length>1)if(js&&js.text.join("\n")==t){if(n.ranges.length%js.text.length==0){c=[];for(var u=0;u<js.text.length;u++)c.push(a.splitLines(js.text[u]))}}else l.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(c=Q(l,(function(e){return[e]})));for(var p=e.curOp.updateInput,d=n.ranges.length-1;d>=0;d--){var h=n.ranges[d],m=h.from(),g=h.to();h.empty()&&(r&&r>0?m=st(m.line,m.ch-r):e.state.overwrite&&!s?g=st(g.line,Math.min(Qe(a,g.line).text.length,g.ch+J(l).length)):s&&js&&js.lineWise&&js.text.join("\n")==l.join("\n")&&(m=g=st(m.line,0)));var f={from:m,to:g,text:c?c[d%c.length]:l,origin:i||(s?"paste":e.state.cutIncoming>o?"cut":"+input")};Qa(e.doc,f),$r(e,"inputRead",e,f)}t&&!s&&Xs(e,t),ci(e),e.curOp.updateInput<2&&(e.curOp.updateInput=p),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ws(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Ii(t,(function(){return Us(t,r,0,null,"paste")})),!0}function Xs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var a=e.getModeAt(i.head),o=!1;if(a.electricChars){for(var s=0;s<a.electricChars.length;s++)if(t.indexOf(a.electricChars.charAt(s))>-1){o=Fs(e,i.head.line,"smart");break}}else a.electricInput&&a.electricInput.test(Qe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(o=Fs(e,i.head.line,"smart"));o&&$r(e,"electricInput",e,i.head.line)}}}function Gs(e){for(var t=[],r=[],n=0;n<e.doc.sel.ranges.length;n++){var i=e.doc.sel.ranges[n].head.line,a={anchor:st(i,0),head:st(i+1,0)};r.push(a),t.push(e.getRange(a.anchor,a.head))}return{text:t,ranges:r}}function Ys(e,t,r,n){e.setAttribute("autocorrect",r?"on":"off"),e.setAttribute("autocapitalize",n?"on":"off"),e.setAttribute("spellcheck",!!t)}function Zs(){var e=$("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=$("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),f&&(e.style.border="1px solid black"),t}function Ks(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){P(this).focus(),this.display.input.focus()},setOption:function(e,r){var n=this.options,i=n[e];n[e]==r&&"mode"!=e||(n[e]=r,t.hasOwnProperty(e)&&Bi(this,t[e])(this,r,i),xe(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Xo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,r=0;r<t.length;++r)if(t[r]==e||t[r].name==e)return t.splice(r,1),!0},addOverlay:Di((function(t,r){var n=t.token?t:e.getMode(this.options,t);if(n.startState)throw new Error("Overlays may not be stateful.");ee(this.state.overlays,{mode:n,modeSpec:t,opaque:r&&r.opaque,priority:r&&r.priority||0},(function(e){return e.priority})),this.state.modeGen++,Rn(this)})),removeOverlay:Di((function(e){for(var t=this.state.overlays,r=0;r<t.length;++r){var n=t[r].modeSpec;if(n==e||"string"==typeof e&&n.name==e)return t.splice(r,1),this.state.modeGen++,void Rn(this)}})),indentLine:Di((function(e,t,r){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),at(this.doc,e)&&Fs(this,e,t,r)})),indentSelection:Di((function(e){for(var t=this.doc.sel.ranges,r=-1,n=0;n<t.length;n++){var i=t[n];if(i.empty())i.head.line>r&&(Fs(this,i.head.line,e,!0),r=i.head.line,n==this.doc.sel.primIndex&&ci(this));else{var a=i.from(),o=i.to(),s=Math.max(r,a.line);r=Math.min(this.lastLine(),o.line-(o.ch?0:1))+1;for(var l=s;l<r;++l)Fs(this,l,e);var c=this.doc.sel.ranges;0==a.ch&&t.length==c.length&&c[n].from().ch>0&&Ra(this.doc,n,new sa(a,c[n].to()),W)}}})),getTokenAt:function(e,t){return St(this,e,t)},getLineTokens:function(e,t){return St(this,st(e),t,!0)},getTokenTypeAt:function(e){e=mt(this.doc,e);var t,r=xt(this,Qe(this.doc,e.line)),n=0,i=(r.length-1)/2,a=e.ch;if(0==a)t=r[2];else for(;;){var o=n+i>>1;if((o?r[2*o-1]:0)>=a)i=o;else{if(!(r[2*o+1]<a)){t=r[2*o+2];break}n=o+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var r=this.doc.mode;return r.innerMode?e.innerMode(r,this.getTokenAt(t).state).mode:r},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var n=[];if(!r.hasOwnProperty(t))return n;var i=r[t],a=this.getModeAt(e);if("string"==typeof a[t])i[a[t]]&&n.push(i[a[t]]);else if(a[t])for(var o=0;o<a[t].length;o++){var s=i[a[t][o]];s&&n.push(s)}else a.helperType&&i[a.helperType]?n.push(i[a.helperType]):i[a.name]&&n.push(i[a.name]);for(var l=0;l<i._global.length;l++){var c=i._global[l];c.pred(a,this)&&-1==j(n,c.val)&&n.push(c.val)}return n},getStateAfter:function(e,t){var r=this.doc;return wt(this,(e=ht(r,null==e?r.first+r.size-1:e))+1,t).state},cursorCoords:function(e,t){var r=this.doc.sel.primary();return wn(this,null==e?r.head:"object"==typeof e?mt(this.doc,e):e?r.from():r.to(),t||"page")},charCoords:function(e,t){return xn(this,mt(this.doc,e),t||"page")},coordsChar:function(e,t){return An(this,(e=yn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=yn(this,{top:e,left:0},t||"page").top,it(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,r){var n,i=!1;if("number"==typeof e){var a=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>a&&(e=a,i=!0),n=Qe(this.doc,e)}else n=e;return bn(this,n,{top:0,left:0},t||"page",r||i).top+(i?this.doc.height-sr(n):0)},defaultTextHeight:function(){return Ln(this.display)},defaultCharWidth:function(){return En(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,r,n,i){var a=this.display,o=(e=wn(this,mt(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),a.sizer.appendChild(t),"over"==n)o=e.top;else if("above"==n||"near"==n){var l=Math.max(a.wrapper.clientHeight,this.doc.height),c=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);("above"==n||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?o=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(o=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=o+"px",t.style.left=t.style.right="","right"==i?(s=a.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(a.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),r&&oi(this,{left:s,top:o,right:s+t.offsetWidth,bottom:o+t.offsetHeight})},triggerOnKeyDown:Di(ps),triggerOnKeyPress:Di(ms),triggerOnKeyUp:hs,triggerOnMouseDown:Di(xs),execCommand:function(e){if(Qo.hasOwnProperty(e))return Qo[e].call(null,this)},triggerElectric:Di((function(e){Xs(this,e)})),findPosH:function(e,t,r,n){var i=1;t<0&&(i=-1,t=-t);for(var a=mt(this.doc,e),o=0;o<t&&!(a=Js(this.doc,a,i,r,n)).hitSide;++o);return a},moveH:Di((function(e,t){var r=this;this.extendSelectionsBy((function(n){return r.display.shift||r.doc.extend||n.empty()?Js(r.doc,n.head,e,t,r.options.rtlMoveVisually):e<0?n.from():n.to()}),G)})),deleteH:Di((function(e,t){var r=this.doc.sel,n=this.doc;r.somethingSelected()?n.replaceSelection("",null,"+delete"):Go(this,(function(r){var i=Js(n,r.head,e,t,!1);return e<0?{from:i,to:r.head}:{from:r.head,to:i}}))})),findPosV:function(e,t,r,n){var i=1,a=n;t<0&&(i=-1,t=-t);for(var o=mt(this.doc,e),s=0;s<t;++s){var l=wn(this,o,"div");if(null==a?a=l.left:l.left=a,(o=Qs(this,l,i,r)).hitSide)break}return o},moveV:Di((function(e,t){var r=this,n=this.doc,i=[],a=!this.display.shift&&!n.extend&&n.sel.somethingSelected();if(n.extendSelectionsBy((function(o){if(a)return e<0?o.from():o.to();var s=wn(r,o.head,"div");null!=o.goalColumn&&(s.left=o.goalColumn),i.push(s.left);var l=Qs(r,s,e,t);return"page"==t&&o==n.sel.primary()&&li(r,xn(r,l,"div").top-s.top),l}),G),i.length)for(var o=0;o<n.sel.ranges.length;o++)n.sel.ranges[o].goalColumn=i[o]})),findWordAt:function(e){var t=Qe(this.doc,e.line).text,r=e.ch,n=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&n!=t.length||!r?++n:--r;for(var a=t.charAt(r),o=ae(a,i)?function(e){return ae(e,i)}:/\s/.test(a)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ae(e)};r>0&&o(t.charAt(r-1));)--r;for(;n<t.length&&o(t.charAt(n));)++n}return new sa(st(e.line,r),st(e.line,n))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?B(this.display.cursorDiv,"CodeMirror-overwrite"):_(this.display.cursorDiv,"CodeMirror-overwrite"),xe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==I(O(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Di((function(e,t){ui(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Yr(this)-this.display.barHeight,width:e.scrollWidth-Yr(this)-this.display.barWidth,clientHeight:Kr(this),clientWidth:Zr(this)}},scrollIntoView:Di((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:st(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?pi(this,e):hi(this,e.from,e.to,e.margin)})),setSize:Di((function(e,t){var r=this,n=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=n(e)),null!=t&&(this.display.wrapper.style.height=n(t)),this.options.lineWrapping&&hn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Vn(r,i,"widget");break}++i})),this.curOp.forceUpdate=!0,xe(this,"refresh",this)})),operation:function(e){return Ii(this,e)},startOperation:function(){return Ci(this)},endOperation:function(){return Si(this)},refresh:Di((function(){var e=this.display.cachedTextHeight;Rn(this),this.curOp.forceUpdate=!0,mn(this),ui(this,this.doc.scrollLeft,this.doc.scrollTop),Xi(this.display),(null==e||Math.abs(e-Ln(this.display))>.5||this.options.lineWrapping)&&Hn(this),xe(this,"refresh",this)})),swapDoc:Di((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),xa(this,e),mn(this),this.display.input.reset(),ui(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,$r(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ae(e),e.registerHelper=function(t,n,i){r.hasOwnProperty(t)||(r[t]=e[t]={_global:[]}),r[t][n]=i},e.registerGlobalHelper=function(t,n,i,a){e.registerHelper(t,n,a),r[t]._global.push({pred:i,val:a})}}function Js(e,t,r,n,i){var a=t,o=r,s=Qe(e,t.line),l=i&&"rtl"==e.direction?-r:r;function c(){var r=t.line+l;return!(r<e.first||r>=e.first+e.size)&&(t=new st(r,t.ch,t.sticky),s=Qe(e,r))}function u(a){var o;if("codepoint"==n){var u=s.text.charCodeAt(t.ch+(r>0?0:-1));if(isNaN(u))o=null;else{var p=r>0?u>=55296&&u<56320:u>=56320&&u<57343;o=new st(t.line,Math.max(0,Math.min(s.text.length,t.ch+r*(p?2:1))),-r)}}else o=i?Jo(e.cm,s,t,r):Zo(s,t,r);if(null==o){if(a||!c())return!1;t=Ko(i,e.cm,s,t.line,l)}else t=o;return!0}if("char"==n||"codepoint"==n)u();else if("column"==n)u(!0);else if("word"==n||"group"==n)for(var p=null,d="group"==n,h=e.cm&&e.cm.getHelper(t,"wordChars"),m=!0;!(r<0)||u(!m);m=!1){var g=s.text.charAt(t.ch)||"\n",f=ae(g,h)?"w":d&&"\n"==g?"n":!d||/\s/.test(g)?null:"p";if(!d||m||f||(f="s"),p&&p!=f){r<0&&(r=1,u(),t.sticky="after");break}if(f&&(p=f),r>0&&!u(!m))break}var v=Ya(e,t,a,o,!0);return ct(a,v)&&(v.hitSide=!0),v}function Qs(e,t,r,n){var i,a,o=e.doc,s=t.left;if("page"==n){var l=Math.min(e.display.wrapper.clientHeight,P(e).innerHeight||o(e).documentElement.clientHeight),c=Math.max(l-.5*Ln(e.display),3);i=(r>0?t.bottom:t.top)+r*c}else"line"==n&&(i=r>0?t.bottom+3:t.top-3);for(;(a=An(e,s,i)).outside;){if(r<0?i<=0:i>=o.height){a.hitSide=!0;break}i+=5*r}return a}var el=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new F,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function tl(e,t){var r=rn(e,t.line);if(!r||r.hidden)return null;var n=Qe(e.doc,t.line),i=Qr(r,n,t.line),a=ge(n,e.doc.direction),o="left";a&&(o=he(a,t.ch)%2?"right":"left");var s=ln(i.map,t.ch,o);return s.offset="right"==s.collapse?s.end:s.start,s}function rl(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function nl(e,t){return t&&(e.bad=!0),e}function il(e,t,r,n,i){var a="",o=!1,s=e.doc.lineSeparator(),l=!1;function c(e){return function(t){return t.id==e}}function u(){o&&(a+=s,l&&(a+=s),o=l=!1)}function p(e){e&&(u(),a+=e)}function d(t){if(1==t.nodeType){var r=t.getAttribute("cm-text");if(r)return void p(r);var a,h=t.getAttribute("cm-marker");if(h){var m=e.findMarks(st(n,0),st(i+1,0),c(+h));return void(m.length&&(a=m[0].find(0))&&p(et(e.doc,a.from,a.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;g&&u();for(var f=0;f<t.childNodes.length;f++)d(t.childNodes[f]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),g&&(o=!0)}else 3==t.nodeType&&p(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;d(t),t!=r;)t=t.nextSibling,l=!1;return a}function al(e,t,r){var n;if(t==e.display.lineDiv){if(!(n=e.display.lineDiv.childNodes[r]))return nl(e.clipPos(st(e.display.viewTo-1)),!0);t=null,r=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var a=e.display.view[i];if(a.node==n)return ol(a,t,r)}}function ol(e,t,r){var n=e.text.firstChild,i=!1;if(!t||!E(n,t))return nl(st(nt(e.line),0),!0);if(t==n&&(i=!0,t=n.childNodes[r],r=0,!t)){var a=e.rest?J(e.rest):e.line;return nl(st(nt(a),a.text.length),i)}var o=3==t.nodeType?t:null,s=t;for(o||1!=t.childNodes.length||3!=t.firstChild.nodeType||(o=t.firstChild,r&&(r=o.nodeValue.length));s.parentNode!=n;)s=s.parentNode;var l=e.measure,c=l.maps;function u(t,r,n){for(var i=-1;i<(c?c.length:0);i++)for(var a=i<0?l.map:c[i],o=0;o<a.length;o+=3){var s=a[o+2];if(s==t||s==r){var u=nt(i<0?e.line:e.rest[i]),p=a[o]+n;return(n<0||s!=t)&&(p=a[o+(n?1:0)]),st(u,p)}}}var p=u(o,s,r);if(p)return nl(p,i);for(var d=s.nextSibling,h=o?o.nodeValue.length-r:0;d;d=d.nextSibling){if(p=u(d,d.firstChild,0))return nl(st(p.line,p.ch-h),i);h+=d.textContent.length}for(var m=s.previousSibling,g=r;m;m=m.previousSibling){if(p=u(m,m.firstChild,-1))return nl(st(p.line,p.ch+g),i);g+=m.textContent.length}}el.prototype.init=function(e){var t=this,r=this,n=r.cm,i=r.div=e.lineDiv;function a(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function o(e){if(a(e)&&!we(n,e)){if(n.somethingSelected())qs({lineWise:!1,text:n.getSelections()}),"cut"==e.type&&n.replaceSelection("",null,"cut");else{if(!n.options.lineWiseCopyCut)return;var t=Gs(n);qs({lineWise:!0,text:t.text}),"cut"==e.type&&n.operation((function(){n.setSelections(t.ranges,0,W),n.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var o=js.text.join("\n");if(e.clipboardData.setData("Text",o),e.clipboardData.getData("Text")==o)return void e.preventDefault()}var s=Zs(),l=s.firstChild;Ys(l),n.display.lineSpace.insertBefore(s,n.display.lineSpace.firstChild),l.value=js.text.join("\n");var c=I(i.ownerDocument);H(l),setTimeout((function(){n.display.lineSpace.removeChild(s),c.focus(),c==i&&r.showPrimarySelection()}),50)}}i.contentEditable=!0,Ys(i,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize),ve(i,"paste",(function(e){!a(e)||we(n,e)||Ws(e,n)||s<=11&&setTimeout(Bi(n,(function(){return t.updateFromDOM()})),20)})),ve(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),ve(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),ve(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),ve(i,"touchstart",(function(){return r.forceCompositionEnd()})),ve(i,"input",(function(){t.composing||t.readFromDOMSoon()})),ve(i,"copy",o),ve(i,"cut",o)},el.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},el.prototype.prepareSelection=function(){var e=Wn(this.cm,!1);return e.focus=I(this.div.ownerDocument)==this.div,e},el.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},el.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},el.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),i=n.from(),a=n.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||a.line<t.display.viewFrom)e.removeAllRanges();else{var o=al(t,e.anchorNode,e.anchorOffset),s=al(t,e.focusNode,e.focusOffset);if(!o||o.bad||!s||s.bad||0!=lt(dt(o,s),i)||0!=lt(pt(o,s),a)){var l=t.display.view,c=i.line>=t.display.viewFrom&&tl(t,i)||{node:l[0].measure.map[2],offset:0},u=a.line<t.display.viewTo&&tl(t,a);if(!u){var p=l[l.length-1].measure,d=p.maps?p.maps[p.maps.length-1]:p.map;u={node:d[d.length-1],offset:d[d.length-2]-d[d.length-3]}}if(c&&u){var h,m=e.rangeCount&&e.getRangeAt(0);try{h=S(c.node,c.offset,u.offset,u.node)}catch(e){}h&&(!r&&t.state.focused?(e.collapse(c.node,c.offset),h.collapsed||(e.removeAllRanges(),e.addRange(h))):(e.removeAllRanges(),e.addRange(h)),m&&null==e.anchorNode?e.addRange(m):r&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},el.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},el.prototype.showMultipleSelections=function(e){T(this.cm.display.cursorDiv,e.cursors),T(this.cm.display.selectionDiv,e.selection)},el.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},el.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return E(this.div,t)},el.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&I(this.div.ownerDocument)==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},el.prototype.blur=function(){this.div.blur()},el.prototype.getField=function(){return this.div},el.prototype.supportsTouch=function(){return!0},el.prototype.receivedFocus=function(){var e=this,t=this;function r(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,r))}this.selectionInEditor()?setTimeout((function(){return e.pollSelection()}),20):Ii(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,r)},el.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},el.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&u&&this.cm.display.gutterSpecs.length&&rl(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var r=al(t,e.anchorNode,e.anchorOffset),n=al(t,e.focusNode,e.focusOffset);r&&n&&Ii(t,(function(){ja(t.doc,ca(r,n),W),(r.bad||n.bad)&&(t.curOp.selectionChanged=!0)}))}}},el.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,r,n=this.cm,i=n.display,a=n.doc.sel.primary(),o=a.from(),s=a.to();if(0==o.ch&&o.line>n.firstLine()&&(o=st(o.line-1,Qe(n.doc,o.line-1).length)),s.ch==Qe(n.doc,s.line).text.length&&s.line<n.lastLine()&&(s=st(s.line+1,0)),o.line<i.viewFrom||s.line>i.viewTo-1)return!1;o.line==i.viewFrom||0==(e=Pn(n,o.line))?(t=nt(i.view[0].line),r=i.view[0].node):(t=nt(i.view[e].line),r=i.view[e-1].node.nextSibling);var l,c,u=Pn(n,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=nt(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!r)return!1;for(var p=n.doc.splitLines(il(n,r,c,t,l)),d=et(n.doc,st(t,0),st(l,Qe(n.doc,l).text.length));p.length>1&&d.length>1;)if(J(p)==J(d))p.pop(),d.pop(),l--;else{if(p[0]!=d[0])break;p.shift(),d.shift(),t++}for(var h=0,m=0,g=p[0],f=d[0],v=Math.min(g.length,f.length);h<v&&g.charCodeAt(h)==f.charCodeAt(h);)++h;for(var b=J(p),y=J(d),x=Math.min(b.length-(1==p.length?h:0),y.length-(1==d.length?h:0));m<x&&b.charCodeAt(b.length-m-1)==y.charCodeAt(y.length-m-1);)++m;if(1==p.length&&1==d.length&&t==o.line)for(;h&&h>o.ch&&b.charCodeAt(b.length-m-1)==y.charCodeAt(y.length-m-1);)h--,m++;p[p.length-1]=b.slice(0,b.length-m).replace(/^\u200b+/,""),p[0]=p[0].slice(h).replace(/\u200b+$/,"");var w=st(t,h),z=st(l,d.length?J(d).length-m:0);return p.length>1||p[0]||lt(w,z)?(ao(n.doc,p,w,z,"+input"),!0):void 0},el.prototype.ensurePolled=function(){this.forceCompositionEnd()},el.prototype.reset=function(){this.forceCompositionEnd()},el.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},el.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},el.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Ii(this.cm,(function(){return Rn(e.cm)}))},el.prototype.setUneditable=function(e){e.contentEditable="false"},el.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Bi(this.cm,Us)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},el.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},el.prototype.onContextMenu=function(){},el.prototype.resetPosition=function(){},el.prototype.needsContentAttribute=!0;var sl=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new F,this.hasSelection=!1,this.composing=null,this.resetting=!1};function ll(e,t){if((t=t?V(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var r=I(e.ownerDocument);t.autofocus=r==e||null!=e.getAttribute("autofocus")&&r==document.body}function n(){e.value=s.getValue()}var i;if(e.form&&(ve(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var a=e.form;i=a.submit;try{var o=a.submit=function(){n(),a.submit=i,a.submit(),a.submit=o}}catch(e){}}t.finishInit=function(r){r.save=n,r.getTextArea=function(){return e},r.toTextArea=function(){r.toTextArea=isNaN,n(),e.parentNode.removeChild(r.getWrapperElement()),e.style.display="",e.form&&(ye(e.form,"submit",n),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Rs((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function cl(e){e.off=ye,e.on=ve,e.wheelEventPixels=ia,e.Doc=Co,e.splitLines=He,e.countColumn=N,e.findColumn=Y,e.isWordChar=ie,e.Pass=U,e.signal=xe,e.Line=ur,e.changeEnd=ua,e.scrollbarModel=zi,e.Pos=st,e.cmpPos=lt,e.modes=Ne,e.mimeModes=Fe,e.resolveMode=Ue,e.getMode=We,e.modeExtensions=Xe,e.extendMode=Ge,e.copyState=Ye,e.startState=Ke,e.innerMode=Ze,e.commands=Qo,e.keyMap=Vo,e.keyName=Wo,e.isModifierKey=qo,e.lookupKey=jo,e.normalizeKeyMap=Fo,e.StringStream=Je,e.SharedTextMarker=yo,e.TextMarker=vo,e.LineWidget=ho,e.e_preventDefault=Ce,e.e_stopPropagation=Se,e.e_stop=Me,e.addClass=B,e.contains=E,e.rmClass=_,e.keyNames=Ho}sl.prototype.init=function(e){var t=this,r=this,n=this.cm;this.createField(e);var i=this.textarea;function a(e){if(!we(n,e)){if(n.somethingSelected())qs({lineWise:!1,text:n.getSelections()});else{if(!n.options.lineWiseCopyCut)return;var t=Gs(n);qs({lineWise:!0,text:t.text}),"cut"==e.type?n.setSelections(t.ranges,null,W):(r.prevInput="",i.value=t.text.join("\n"),H(i))}"cut"==e.type&&(n.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),f&&(i.style.width="0px"),ve(i,"input",(function(){o&&s>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()})),ve(i,"paste",(function(e){we(n,e)||Ws(e,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())})),ve(i,"cut",a),ve(i,"copy",a),ve(e.scroller,"paste",(function(t){if(!Ur(e,t)&&!we(n,t)){if(!i.dispatchEvent)return n.state.pasteIncoming=+new Date,void r.focus();var a=new Event("paste");a.clipboardData=t.clipboardData,i.dispatchEvent(a)}})),ve(e.lineSpace,"selectstart",(function(t){Ur(e,t)||Ce(t)})),ve(i,"compositionstart",(function(){var e=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:n.markText(e,n.getCursor("to"),{className:"CodeMirror-composing"})}})),ve(i,"compositionend",(function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)}))},sl.prototype.createField=function(e){this.wrapper=Zs(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Ys(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},sl.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},sl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=Wn(e);if(e.options.moveInputWithCursor){var i=wn(e,r.sel.primary().head,"div"),a=t.wrapper.getBoundingClientRect(),o=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+o.top-a.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+o.left-a.left))}return n},sl.prototype.showSelection=function(e){var t=this.cm.display;T(t.cursorDiv,e.cursors),T(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},sl.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&H(this.textarea),o&&s>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",o&&s>=9&&(this.hasSelection=null));this.resetting=!1}},sl.prototype.getField=function(){return this.textarea},sl.prototype.supportsTouch=function(){return!1},sl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!b||I(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},sl.prototype.blur=function(){this.textarea.blur()},sl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},sl.prototype.receivedFocus=function(){this.slowPoll()},sl.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},sl.prototype.fastPoll=function(){var e=!1,t=this;function r(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,r))}t.pollingFast=!0,t.polling.set(20,r)},sl.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Oe(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=r.value;if(i==n&&!t.somethingSelected())return!1;if(o&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var a=i.charCodeAt(0);if(8203!=a||n||(n=""),8666==a)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(n.length,i.length);l<c&&n.charCodeAt(l)==i.charCodeAt(l);)++l;return Ii(t,(function(){Us(t,i.slice(l),n.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?r.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},sl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},sl.prototype.onKeyPress=function(){o&&s>=9&&(this.hasSelection=null),this.fastPoll()},sl.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var a=On(r,e),c=n.scroller.scrollTop;if(a&&!d){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(a)&&Bi(r,ja)(r.doc,ca(a),W);var u,p=i.style.cssText,h=t.wrapper.style.cssText,m=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-m.top-5)+"px; left: "+(e.clientX-m.left-5)+"px;\n z-index: 1000; background: "+(o?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=i.ownerDocument.defaultView.scrollY),n.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,u),n.input.reset(),r.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll),o&&s>=9&&f(),A){Me(e);var g=function(){ye(window,"mouseup",g),setTimeout(v,20)};ve(window,"mouseup",g)}else setTimeout(v,50)}function f(){if(null!=i.selectionStart){var e=r.somethingSelected(),a=""+(e?i.value:"");i.value="⇚",i.value=a,t.prevInput=e?"":"",i.selectionStart=1,i.selectionEnd=a.length,n.selForContextMenu=r.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,i.style.cssText=p,o&&s<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=c),null!=i.selectionStart)){(!o||o&&s<9)&&f();var e=0,a=function(){n.selForContextMenu==r.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==t.prevInput?Bi(r,Ka)(r):e++<10?n.detectingSelectAll=setTimeout(a,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(a,200)}}},sl.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},sl.prototype.setUneditable=function(){},sl.prototype.needsContentAttribute=!1,Hs(Rs),Ks(Rs);var ul="iter insert remove copy getEditor constructor".split(" ");for(var pl in Co.prototype)Co.prototype.hasOwnProperty(pl)&&j(ul,pl)<0&&(Rs.prototype[pl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Co.prototype[pl]));return Ae(Co),Rs.inputStyles={textarea:sl,contenteditable:el},Rs.defineMode=function(e){Rs.defaults.mode||"null"==e||(Rs.defaults.mode=e),je.apply(this,arguments)},Rs.defineMIME=qe,Rs.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Rs.defineMIME("text/plain","null"),Rs.defineExtension=function(e,t){Rs.prototype[e]=t},Rs.defineDocExtension=function(e,t){Co.prototype[e]=t},Rs.fromTextArea=ll,cl(Rs),Rs.version="5.65.12",Rs}()}));gi((function(e,t){!function(e){var t=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,r=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,n=/[*+-]\s/;function i(e,r){var n=r.line,i=0,a=0,o=t.exec(e.getLine(n)),s=o[1];do{var l=n+(i+=1),c=e.getLine(l),u=t.exec(c);if(u){var p=u[1],d=parseInt(o[3],10)+i-a,h=parseInt(u[3],10),m=h;if(s!==p||isNaN(h)){if(s.length>p.length)return;if(s.length<p.length&&1===i)return;a+=1}else d===h&&(m=h+1),d>h&&(m=d+1),e.replaceRange(c.replace(t,p+m+u[4]+u[5]),{line:l,ch:0},{line:l,ch:c.length})}}while(u)}e.commands.newlineAndIndentContinueMarkdownList=function(a){if(a.getOption("disableInput"))return e.Pass;for(var o=a.listSelections(),s=[],l=0;l<o.length;l++){var c=o[l].head,u=a.getStateAfter(c.line),p=e.innerMode(a.getMode(),u);if("markdown"!==p.mode.name&&"markdown"!==p.mode.helperType)return void a.execCommand("newlineAndIndent");var d=!1!==(u=p.state).list,h=0!==u.quote,m=a.getLine(c.line),g=t.exec(m),f=/^\s*$/.test(m.slice(0,c.ch));if(!o[l].empty()||!d&&!h||!g||f)return void a.execCommand("newlineAndIndent");if(r.test(m)){var v=h&&/>\s*$/.test(m),b=!/>\s*$/.test(m);(v||b)&&a.replaceRange("",{line:c.line,ch:0},{line:c.line,ch:c.ch+1}),s[l]="\n"}else{var y=g[1],x=g[5],w=!(n.test(g[2])||g[2].indexOf(">")>=0),z=w?parseInt(g[3],10)+1+g[4]:g[2].replace("x"," ");s[l]="\n"+y+z+x,w&&i(a,c)}}a.replaceSelections(s)}}(uA)})),uA.commands.tabAndIndentMarkdownList=function(e){var t=e.listSelections()[0].head;if(!1!==e.getStateAfter(t.line).list)e.execCommand("indentMore");else if(e.options.indentWithTabs)e.execCommand("insertTab");else{var r=Array(e.options.tabSize+1).join(" ");e.replaceSelection(r)}},uA.commands.shiftTabAndUnindentMarkdownList=function(e){var t=e.listSelections()[0].head;if(!1!==e.getStateAfter(t.line).list)e.execCommand("indentLess");else if(e.options.indentWithTabs)e.execCommand("insertTab");else{var r=Array(e.options.tabSize+1).join(" ");e.replaceSelection(r)}},gi((function(e,t){!function(e){function t(e){var t=e.getWrapperElement();e.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:t.style.width,height:t.style.height},t.style.width="",t.style.height="auto",t.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",e.refresh()}function r(e){var t=e.getWrapperElement();t.className=t.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var r=e.state.fullScreenRestore;t.style.width=r.width,t.style.height=r.height,window.scrollTo(r.scrollLeft,r.scrollTop),e.refresh()}e.defineOption("fullScreen",!1,(function(n,i,a){a==e.Init&&(a=!1),!a!=!i&&(i?t(n):r(n))}))}(uA)}));gi((function(e,t){var r,n,i;n={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},i={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1},(r=uA).defineMode("xml",(function(e,t){var a,o,s=e.indentUnit,l={},c=t.htmlMode?n:i;for(var u in c)l[u]=c[u];for(var u in t)l[u]=t[u];function p(e,t){function r(r){return t.tokenize=r,r(e,t)}var n=e.next();return"<"==n?e.eat("!")?e.eat("[")?e.match("CDATA[")?r(m("atom","]]>")):null:e.match("--")?r(m("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),r(g(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=m("meta","?>"),"meta"):(a=e.eat("/")?"closeTag":"openTag",t.tokenize=d,"tag bracket"):"&"==n?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function d(e,t){var r=e.next();if(">"==r||"/"==r&&e.eat(">"))return t.tokenize=p,a=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return a="equals",null;if("<"==r){t.tokenize=p,t.state=x,t.tagName=t.tagStart=null;var n=t.tokenize(e,t);return n?n+" tag error":"tag error"}return/[\'\"]/.test(r)?(t.tokenize=h(r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function h(e){var t=function(t,r){for(;!t.eol();)if(t.next()==e){r.tokenize=d;break}return"string"};return t.isInAttribute=!0,t}function m(e,t){return function(r,n){for(;!r.eol();){if(r.match(t)){n.tokenize=p;break}r.next()}return e}}function g(e){return function(t,r){for(var n;null!=(n=t.next());){if("<"==n)return r.tokenize=g(e+1),r.tokenize(t,r);if(">"==n){if(1==e){r.tokenize=p;break}return r.tokenize=g(e-1),r.tokenize(t,r)}}return"meta"}}function f(e){return e&&e.toLowerCase()}function v(e,t,r){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=r,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function b(e){e.context&&(e.context=e.context.prev)}function y(e,t){for(var r;;){if(!e.context)return;if(r=e.context.tagName,!l.contextGrabbers.hasOwnProperty(f(r))||!l.contextGrabbers[f(r)].hasOwnProperty(f(t)))return;b(e)}}function x(e,t,r){return"openTag"==e?(r.tagStart=t.column(),w):"closeTag"==e?z:x}function w(e,t,r){return"word"==e?(r.tagName=t.current(),o="tag",C):l.allowMissingTagName&&"endTag"==e?(o="tag bracket",C(e,t,r)):(o="error",w)}function z(e,t,r){if("word"==e){var n=t.current();return r.context&&r.context.tagName!=n&&l.implicitlyClosed.hasOwnProperty(f(r.context.tagName))&&b(r),r.context&&r.context.tagName==n||!1===l.matchClosing?(o="tag",k):(o="tag error",A)}return l.allowMissingTagName&&"endTag"==e?(o="tag bracket",k(e,t,r)):(o="error",A)}function k(e,t,r){return"endTag"!=e?(o="error",k):(b(r),x)}function A(e,t,r){return o="error",k(e,t,r)}function C(e,t,r){if("word"==e)return o="attribute",S;if("endTag"==e||"selfcloseTag"==e){var n=r.tagName,i=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(f(n))?y(r,n):(y(r,n),r.context=new v(r,n,i==r.indented)),x}return o="error",C}function S(e,t,r){return"equals"==e?_:(l.allowMissing||(o="error"),C(e,t,r))}function _(e,t,r){return"string"==e?M:"word"==e&&l.allowUnquoted?(o="string",C):(o="error",C(e,t,r))}function M(e,t,r){return"string"==e?M:C(e,t,r)}return p.isInText=!0,{startState:function(e){var t={tokenize:p,state:x,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;a=null;var r=t.tokenize(e,t);return(r||a)&&"comment"!=r&&(o=null,t.state=t.state(a||r,e,t),o&&(r="error"==o?r+" error":o)),r},indent:function(e,t,n){var i=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+s;if(i&&i.noIndent)return r.Pass;if(e.tokenize!=d&&e.tokenize!=p)return n?n.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==l.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(t))return 0;var a=t&&/^<(\/)?([\w_:\.-]*)/.exec(t);if(a&&a[1])for(;i;){if(i.tagName==a[2]){i=i.prev;break}if(!l.implicitlyClosed.hasOwnProperty(f(i.tagName)))break;i=i.prev}else if(a)for(;i;){var o=l.contextGrabbers[f(i.tagName)];if(!o||!o.hasOwnProperty(f(a[2])))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+s:e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==_&&(e.state=C)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],r=e.context;r;r=r.prev)t.push(r.tagName);return t.reverse()}}})),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})),gi((function(e,t){!function(e){e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var t=0;t<e.modeInfo.length;t++){var r=e.modeInfo[t];r.mimes&&(r.mime=r.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var r=0;r<e.modeInfo.length;r++){var n=e.modeInfo[r];if(n.mime==t)return n;if(n.mimes)for(var i=0;i<n.mimes.length;i++)if(n.mimes[i]==t)return n}return/\+xml$/.test(t)?e.findModeByMIME("application/xml"):/\+json$/.test(t)?e.findModeByMIME("application/json"):void 0},e.findModeByExtension=function(t){t=t.toLowerCase();for(var r=0;r<e.modeInfo.length;r++){var n=e.modeInfo[r];if(n.ext)for(var i=0;i<n.ext.length;i++)if(n.ext[i]==t)return n}},e.findModeByFileName=function(t){for(var r=0;r<e.modeInfo.length;r++){var n=e.modeInfo[r];if(n.file&&n.file.test(t))return n}var i=t.lastIndexOf("."),a=i>-1&&t.substring(i+1,t.length);if(a)return e.findModeByExtension(a)},e.findModeByName=function(t){t=t.toLowerCase();for(var r=0;r<e.modeInfo.length;r++){var n=e.modeInfo[r];if(n.name.toLowerCase()==t)return n;if(n.alias)for(var i=0;i<n.alias.length;i++)if(n.alias[i].toLowerCase()==t)return n}}}(uA)})),gi((function(e,t){var r;(r=uA).defineMode("markdown",(function(e,t){var n=r.getMode(e,"text/html"),i="null"==n.name;function a(t){if(r.findModeByName){var n=r.findModeByName(t);n&&(t=n.mime||n.mimes[0])}var i=r.getMode(e,t);return"null"==i.name?null:i}void 0===t.highlightFormatting&&(t.highlightFormatting=!1),void 0===t.maxBlockquoteDepth&&(t.maxBlockquoteDepth=0),void 0===t.taskLists&&(t.taskLists=!1),void 0===t.strikethrough&&(t.strikethrough=!1),void 0===t.emoji&&(t.emoji=!1),void 0===t.fencedCodeBlockHighlighting&&(t.fencedCodeBlockHighlighting=!0),void 0===t.fencedCodeBlockDefaultMode&&(t.fencedCodeBlockDefaultMode="text/plain"),void 0===t.xml&&(t.xml=!0),void 0===t.tokenTypeOverrides&&(t.tokenTypeOverrides={});var o={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var s in o)o.hasOwnProperty(s)&&t.tokenTypeOverrides[s]&&(o[s]=t.tokenTypeOverrides[s]);var l=/^([*\-_])(?:\s*\1){2,}\s*$/,c=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,p=t.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,d=/^ {0,3}(?:\={1,}|-{2,})\s*$/,h=/^[^#!\[\]*_\\<>` "'(~:]+/,m=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,g=/^\s*\[[^\]]+?\]:.*$/,f=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,v=" ";function b(e,t,r){return t.f=t.inline=r,r(e,t)}function y(e,t,r){return t.f=t.block=r,r(e,t)}function x(e){return!e||!/\S/.test(e.string)}function w(e){if(e.linkTitle=!1,e.linkHref=!1,e.linkText=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,e.f==k){var t=i;if(!t){var a=r.innerMode(n,e.htmlState);t="xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText}t&&(e.f=_,e.block=z,e.htmlState=null)}return e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine={stream:null},null}function z(e,n){var i=e.column()===n.indentation,s=x(n.prevLine.stream),h=n.indentedCode,f=n.prevLine.hr,v=!1!==n.list,y=(n.listStack[n.listStack.length-1]||0)+3;n.indentedCode=!1;var w=n.indentation;if(null===n.indentationDiff&&(n.indentationDiff=n.indentation,v)){for(n.list=null;w<n.listStack[n.listStack.length-1];)n.listStack.pop(),n.listStack.length?n.indentation=n.listStack[n.listStack.length-1]:n.list=!1;!1!==n.list&&(n.indentationDiff=w-n.listStack[n.listStack.length-1])}var z=!(s||f||n.prevLine.header||v&&h||n.prevLine.fencedCodeEnd),k=(!1===n.list||f||s)&&n.indentation<=y&&e.match(l),S=null;if(n.indentationDiff>=4&&(h||n.prevLine.fencedCodeEnd||n.prevLine.header||s))return e.skipToEnd(),n.indentedCode=!0,o.code;if(e.eatSpace())return null;if(i&&n.indentation<=y&&(S=e.match(p))&&S[1].length<=6)return n.quote=0,n.header=S[1].length,n.thisLine.header=!0,t.highlightFormatting&&(n.formatting="header"),n.f=n.inline,C(n);if(n.indentation<=y&&e.eat(">"))return n.quote=i?1:n.quote+1,t.highlightFormatting&&(n.formatting="quote"),e.eatSpace(),C(n);if(!k&&!n.setext&&i&&n.indentation<=y&&(S=e.match(c))){var _=S[1]?"ol":"ul";return n.indentation=w+e.current().length,n.list=!0,n.quote=0,n.listStack.push(n.indentation),n.em=!1,n.strong=!1,n.code=!1,n.strikethrough=!1,t.taskLists&&e.match(u,!1)&&(n.taskList=!0),n.f=n.inline,t.highlightFormatting&&(n.formatting=["list","list-"+_]),C(n)}return i&&n.indentation<=y&&(S=e.match(m,!0))?(n.quote=0,n.fencedEndRE=new RegExp(S[1]+"+ *$"),n.localMode=t.fencedCodeBlockHighlighting&&a(S[2]||t.fencedCodeBlockDefaultMode),n.localMode&&(n.localState=r.startState(n.localMode)),n.f=n.block=A,t.highlightFormatting&&(n.formatting="code-block"),n.code=-1,C(n)):n.setext||!(z&&v||n.quote||!1!==n.list||n.code||k||g.test(e.string))&&(S=e.lookAhead(1))&&(S=S.match(d))?(n.setext?(n.header=n.setext,n.setext=0,e.skipToEnd(),t.highlightFormatting&&(n.formatting="header")):(n.header="="==S[0].charAt(0)?1:2,n.setext=n.header),n.thisLine.header=!0,n.f=n.inline,C(n)):k?(e.skipToEnd(),n.hr=!0,n.thisLine.hr=!0,o.hr):"["===e.peek()?b(e,n,E):b(e,n,n.inline)}function k(e,t){var a=n.token(e,t.htmlState);if(!i){var o=r.innerMode(n,t.htmlState);("xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText||t.md_inside&&e.current().indexOf(">")>-1)&&(t.f=_,t.block=z,t.htmlState=null)}return a}function A(e,r){var n,i=r.listStack[r.listStack.length-1]||0,a=r.indentation<i,s=i+3;return r.fencedEndRE&&r.indentation<=s&&(a||e.match(r.fencedEndRE))?(t.highlightFormatting&&(r.formatting="code-block"),a||(n=C(r)),r.localMode=r.localState=null,r.block=z,r.f=_,r.fencedEndRE=null,r.code=0,r.thisLine.fencedCodeEnd=!0,a?y(e,r,r.block):n):r.localMode?r.localMode.token(e,r.localState):(e.skipToEnd(),o.code)}function C(e){var r=[];if(e.formatting){r.push(o.formatting),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var n=0;n<e.formatting.length;n++)r.push(o.formatting+"-"+e.formatting[n]),"header"===e.formatting[n]&&r.push(o.formatting+"-"+e.formatting[n]+"-"+e.header),"quote"===e.formatting[n]&&(!t.maxBlockquoteDepth||t.maxBlockquoteDepth>=e.quote?r.push(o.formatting+"-"+e.formatting[n]+"-"+e.quote):r.push("error"))}if(e.taskOpen)return r.push("meta"),r.length?r.join(" "):null;if(e.taskClosed)return r.push("property"),r.length?r.join(" "):null;if(e.linkHref?r.push(o.linkHref,"url"):(e.strong&&r.push(o.strong),e.em&&r.push(o.em),e.strikethrough&&r.push(o.strikethrough),e.emoji&&r.push(o.emoji),e.linkText&&r.push(o.linkText),e.code&&r.push(o.code),e.image&&r.push(o.image),e.imageAltText&&r.push(o.imageAltText,"link"),e.imageMarker&&r.push(o.imageMarker)),e.header&&r.push(o.header,o.header+"-"+e.header),e.quote&&(r.push(o.quote),!t.maxBlockquoteDepth||t.maxBlockquoteDepth>=e.quote?r.push(o.quote+"-"+e.quote):r.push(o.quote+"-"+t.maxBlockquoteDepth)),!1!==e.list){var i=(e.listStack.length-1)%3;i?1===i?r.push(o.list2):r.push(o.list3):r.push(o.list1)}return e.trailingSpaceNewLine?r.push("trailing-space-new-line"):e.trailingSpace&&r.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),r.length?r.join(" "):null}function S(e,t){if(e.match(h,!0))return C(t)}function _(e,i){var a=i.text(e,i);if(void 0!==a)return a;if(i.list)return i.list=null,C(i);if(i.taskList)return" "===e.match(u,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,t.highlightFormatting&&(i.formatting="task"),i.taskList=!1,C(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&e.match(/^#+$/,!0))return t.highlightFormatting&&(i.formatting="header"),C(i);var s=e.next();if(i.linkTitle){i.linkTitle=!1;var l=s;"("===s&&(l=")");var c="^\\s*(?:[^"+(l=(l+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+l;if(e.match(new RegExp(c),!0))return o.linkHref}if("`"===s){var p=i.formatting;t.highlightFormatting&&(i.formatting="code"),e.eatWhile("`");var d=e.current().length;if(0!=i.code||i.quote&&1!=d){if(d==i.code){var h=C(i);return i.code=0,h}return i.formatting=p,C(i)}return i.code=d,C(i)}if(i.code)return C(i);if("\\"===s&&(e.next(),t.highlightFormatting)){var m=C(i),g=o.formatting+"-escape";return m?m+" "+g:g}if("!"===s&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,t.highlightFormatting&&(i.formatting="image"),C(i);if("["===s&&i.imageMarker&&e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,t.highlightFormatting&&(i.formatting="image"),C(i);if("]"===s&&i.imageAltText){t.highlightFormatting&&(i.formatting="image");var m=C(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=T,m}if("["===s&&!i.image)return i.linkText&&e.match(/^.*?\]/)||(i.linkText=!0,t.highlightFormatting&&(i.formatting="link")),C(i);if("]"===s&&i.linkText){t.highlightFormatting&&(i.formatting="link");var m=C(i);return i.linkText=!1,i.inline=i.f=e.match(/\(.*?\)| ?\[.*?\]/,!1)?T:_,m}if("<"===s&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=M,t.highlightFormatting&&(i.formatting="link"),(m=C(i))?m+=" ":m="",m+o.linkInline;if("<"===s&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=M,t.highlightFormatting&&(i.formatting="link"),(m=C(i))?m+=" ":m="",m+o.linkEmail;if(t.xml&&"<"===s&&e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var v=e.string.indexOf(">",e.pos);if(-1!=v){var b=e.string.substring(e.start,v);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(b)&&(i.md_inside=!0)}return e.backUp(1),i.htmlState=r.startState(n),y(e,i,k)}if(t.xml&&"<"===s&&e.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===s||"_"===s){for(var x=1,w=1==e.pos?" ":e.string.charAt(e.pos-2);x<3&&e.eat(s);)x++;var z=e.peek()||" ",A=!/\s/.test(z)&&(!f.test(z)||/\s/.test(w)||f.test(w)),S=!/\s/.test(w)&&(!f.test(w)||/\s/.test(z)||f.test(z)),$=null,L=null;if(x%2&&(i.em||!A||"*"!==s&&S&&!f.test(w)?i.em!=s||!S||"*"!==s&&A&&!f.test(z)||($=!1):$=!0),x>1&&(i.strong||!A||"*"!==s&&S&&!f.test(w)?i.strong!=s||!S||"*"!==s&&A&&!f.test(z)||(L=!1):L=!0),null!=L||null!=$)return t.highlightFormatting&&(i.formatting=null==$?"strong":null==L?"em":"strong em"),!0===$&&(i.em=s),!0===L&&(i.strong=s),h=C(i),!1===$&&(i.em=!1),!1===L&&(i.strong=!1),h}else if(" "===s&&(e.eat("*")||e.eat("_"))){if(" "===e.peek())return C(i);e.backUp(1)}if(t.strikethrough)if("~"===s&&e.eatWhile(s)){if(i.strikethrough)return t.highlightFormatting&&(i.formatting="strikethrough"),h=C(i),i.strikethrough=!1,h;if(e.match(/^[^\s]/,!1))return i.strikethrough=!0,t.highlightFormatting&&(i.formatting="strikethrough"),C(i)}else if(" "===s&&e.match("~~",!0)){if(" "===e.peek())return C(i);e.backUp(2)}if(t.emoji&&":"===s&&e.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,t.highlightFormatting&&(i.formatting="emoji");var E=C(i);return i.emoji=!1,E}return" "===s&&(e.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),C(i)}function M(e,r){if(">"===e.next()){r.f=r.inline=_,t.highlightFormatting&&(r.formatting="link");var n=C(r);return n?n+=" ":n="",n+o.linkInline}return e.match(/^[^>]+/,!0),o.linkInline}function T(e,r){if(e.eatSpace())return null;var n=e.next();return"("===n||"["===n?(r.f=r.inline=L("("===n?")":"]"),t.highlightFormatting&&(r.formatting="link-string"),r.linkHref=!0,C(r)):"error"}var $={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function L(e){return function(r,n){if(r.next()===e){n.f=n.inline=_,t.highlightFormatting&&(n.formatting="link-string");var i=C(n);return n.linkHref=!1,i}return r.match($[e]),n.linkHref=!0,C(n)}}function E(e,r){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(r.f=I,e.next(),t.highlightFormatting&&(r.formatting="link"),r.linkText=!0,C(r)):b(e,r,_)}function I(e,r){if(e.match("]:",!0)){r.f=r.inline=B,t.highlightFormatting&&(r.formatting="link");var n=C(r);return r.linkText=!1,n}return e.match(/^([^\]\\]|\\.)+/,!0),o.linkText}function B(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),t.f=t.inline=_,o.linkHref+" url")}var D={startState:function(){return{f:z,prevLine:{stream:null},thisLine:{stream:null},block:z,htmlState:null,indentation:0,inline:_,text:S,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(e){return{f:e.f,prevLine:e.prevLine,thisLine:e.thisLine,block:e.block,htmlState:e.htmlState&&r.copyState(n,e.htmlState),indentation:e.indentation,localMode:e.localMode,localState:e.localMode?r.copyState(e.localMode,e.localState):null,inline:e.inline,text:e.text,formatting:!1,linkText:e.linkText,linkTitle:e.linkTitle,linkHref:e.linkHref,code:e.code,em:e.em,strong:e.strong,strikethrough:e.strikethrough,emoji:e.emoji,header:e.header,setext:e.setext,hr:e.hr,taskList:e.taskList,list:e.list,listStack:e.listStack.slice(0),quote:e.quote,indentedCode:e.indentedCode,trailingSpace:e.trailingSpace,trailingSpaceNewLine:e.trailingSpaceNewLine,md_inside:e.md_inside,fencedEndRE:e.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return w(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=k)){var r=e.match(/^\s*/,!0)[0].replace(/\t/g,v).length;if(t.indentation=r,t.indentationDiff=null,r>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==k?{state:e.htmlState,mode:n}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:D}},indent:function(e,t,i){return e.block==k&&n.indent?n.indent(e.htmlState,t,i):e.localState&&e.localMode.indent?e.localMode.indent(e.localState,t,i):r.Pass},blankLine:w,getType:C,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return D}),"xml"),r.defineMIME("text/markdown","markdown"),r.defineMIME("text/x-markdown","markdown")})),gi((function(e,t){var r;(r=uA).overlayMode=function(e,t,n){return{startState:function(){return{base:r.startState(e),overlay:r.startState(t),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(n){return{base:r.copyState(e,n.base),overlay:r.copyState(t,n.overlay),basePos:n.basePos,baseCur:null,overlayPos:n.overlayPos,overlayCur:null}},token:function(r,i){return(r!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<r.start)&&(i.streamSeen=r,i.basePos=i.overlayPos=r.start),r.start==i.basePos&&(i.baseCur=e.token(r,i.base),i.basePos=r.pos),r.start==i.overlayPos&&(r.pos=r.start,i.overlayCur=t.token(r,i.overlay),i.overlayPos=r.pos),r.pos=Math.min(i.basePos,i.overlayPos),null==i.overlayCur?i.baseCur:null!=i.baseCur&&i.overlay.combineTokens||n&&null==i.overlay.combineTokens?i.baseCur+" "+i.overlayCur:i.overlayCur},indent:e.indent&&function(t,r,n){return e.indent(t.base,r,n)},electricChars:e.electricChars,innerMode:function(t){return{state:t.base,mode:e}},blankLine:function(r){var i,a;return e.blankLine&&(i=e.blankLine(r.base)),t.blankLine&&(a=t.blankLine(r.overlay)),null==a?i:n&&null!=i?i+" "+a:a}}}}));gi((function(e,t){!function(e){function t(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function r(e){t(e);var r=e.state.placeholder=document.createElement("pre");r.style.cssText="height: 0; overflow: visible",r.style.direction=e.getOption("direction"),r.className="CodeMirror-placeholder CodeMirror-line-like";var n=e.getOption("placeholder");"string"==typeof n&&(n=document.createTextNode(n)),r.appendChild(n),e.display.lineSpace.insertBefore(r,e.display.lineSpace.firstChild)}function n(e){setTimeout((function(){var n=!1;if(1==e.lineCount()){var i=e.getInputField();n="TEXTAREA"==i.nodeName?!e.getLine(0).length:!/[^\u200b]/.test(i.querySelector(".CodeMirror-line").textContent)}n?r(e):t(e)}),20)}function i(e){o(e)&&r(e)}function a(e){var n=e.getWrapperElement(),i=o(e);n.className=n.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?r(e):t(e)}function o(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",(function(r,o,s){var l=s&&s!=e.Init;if(o&&!l)r.on("blur",i),r.on("change",a),r.on("swapDoc",a),e.on(r.getInputField(),"compositionupdate",r.state.placeholderCompose=function(){n(r)}),a(r);else if(!o&&l){r.off("blur",i),r.off("change",a),r.off("swapDoc",a),e.off(r.getInputField(),"compositionupdate",r.state.placeholderCompose),t(r);var c=r.getWrapperElement();c.className=c.className.replace(" CodeMirror-empty","")}o&&!r.hasFocus()&&i(r)}))}(uA)})),gi((function(e,t){!function(e){function t(t,n){function i(){t.display.wrapper.offsetHeight?(r(t,n),t.display.lastWrapHeight!=t.display.wrapper.clientHeight&&t.refresh()):n.timeout=setTimeout(i,n.delay)}n.timeout=setTimeout(i,n.delay),n.hurry=function(){clearTimeout(n.timeout),n.timeout=setTimeout(i,50)},e.on(window,"mouseup",n.hurry),e.on(window,"keyup",n.hurry)}function r(t,r){clearTimeout(r.timeout),e.off(window,"mouseup",r.hurry),e.off(window,"keyup",r.hurry)}e.defineOption("autoRefresh",!1,(function(e,n){e.state.autoRefresh&&(r(e,e.state.autoRefresh),e.state.autoRefresh=null),n&&0==e.display.wrapper.offsetHeight&&t(e,e.state.autoRefresh={delay:n.delay||250})}))}(uA)})),gi((function(e,t){!function(e){function t(e){e.state.markedSelection&&e.operation((function(){c(e)}))}function r(e){e.state.markedSelection&&e.state.markedSelection.length&&e.operation((function(){s(e)}))}e.defineOption("styleSelectedText",!1,(function(n,i,a){var o=a&&a!=e.Init;i&&!o?(n.state.markedSelection=[],n.state.markedSelectionStyle="string"==typeof i?i:"CodeMirror-selectedtext",l(n),n.on("cursorActivity",t),n.on("change",r)):!i&&o&&(n.off("cursorActivity",t),n.off("change",r),s(n),n.state.markedSelection=n.state.markedSelectionStyle=null)}));var n=8,i=e.Pos,a=e.cmpPos;function o(e,t,r,o){if(0!=a(t,r))for(var s=e.state.markedSelection,l=e.state.markedSelectionStyle,c=t.line;;){var u=c==t.line?t:i(c,0),p=c+n,d=p>=r.line,h=d?r:i(p,0),m=e.markText(u,h,{className:l});if(null==o?s.push(m):s.splice(o++,0,m),d)break;c=p}}function s(e){for(var t=e.state.markedSelection,r=0;r<t.length;++r)t[r].clear();t.length=0}function l(e){s(e);for(var t=e.listSelections(),r=0;r<t.length;r++)o(e,t[r].from(),t[r].to())}function c(e){if(!e.somethingSelected())return s(e);if(e.listSelections().length>1)return l(e);var t=e.getCursor("start"),r=e.getCursor("end"),i=e.state.markedSelection;if(!i.length)return o(e,t,r);var c=i[0].find(),u=i[i.length-1].find();if(!c||!u||r.line-t.line<=n||a(t,u.to)>=0||a(r,c.from)<=0)return l(e);for(;a(t,c.from)>0;)i.shift().clear(),c=i[0].find();for(a(t,c.from)<0&&(c.to.line-t.line<n?(i.shift().clear(),o(e,t,c.to,0)):o(e,t,c.from,0));a(r,u.to)<0;)i.pop().clear(),u=i[i.length-1].find();a(r,u.to)>0&&(r.line-u.from.line<n?(i.pop().clear(),o(e,u.from,r)):o(e,u.to,r))}}(uA)})),gi((function(e,t){!function(e){var t,r,n=e.Pos;function i(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function a(e,t){for(var r=i(e),n=r,a=0;a<t.length;a++)-1==n.indexOf(t.charAt(a))&&(n+=t.charAt(a));return r==n?e:new RegExp(e.source,n)}function o(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function s(e,t,r){t=a(t,"g");for(var i=r.line,o=r.ch,s=e.lastLine();i<=s;i++,o=0){t.lastIndex=o;var l=e.getLine(i),c=t.exec(l);if(c)return{from:n(i,c.index),to:n(i,c.index+c[0].length),match:c}}}function l(e,t,r){if(!o(t))return s(e,t,r);t=a(t,"gm");for(var i,l=1,c=r.line,u=e.lastLine();c<=u;){for(var p=0;p<l&&!(c>u);p++){var d=e.getLine(c++);i=null==i?d:i+"\n"+d}l*=2,t.lastIndex=r.ch;var h=t.exec(i);if(h){var m=i.slice(0,h.index).split("\n"),g=h[0].split("\n"),f=r.line+m.length-1,v=m[m.length-1].length;return{from:n(f,v),to:n(f+g.length-1,1==g.length?v+g[0].length:g[g.length-1].length),match:h}}}}function c(e,t,r){for(var n,i=0;i<=e.length;){t.lastIndex=i;var a=t.exec(e);if(!a)break;var o=a.index+a[0].length;if(o>e.length-r)break;(!n||o>n.index+n[0].length)&&(n=a),i=a.index+1}return n}function u(e,t,r){t=a(t,"g");for(var i=r.line,o=r.ch,s=e.firstLine();i>=s;i--,o=-1){var l=e.getLine(i),u=c(l,t,o<0?0:l.length-o);if(u)return{from:n(i,u.index),to:n(i,u.index+u[0].length),match:u}}}function p(e,t,r){if(!o(t))return u(e,t,r);t=a(t,"gm");for(var i,s=1,l=e.getLine(r.line).length-r.ch,p=r.line,d=e.firstLine();p>=d;){for(var h=0;h<s&&p>=d;h++){var m=e.getLine(p--);i=null==i?m:m+"\n"+i}s*=2;var g=c(i,t,l);if(g){var f=i.slice(0,g.index).split("\n"),v=g[0].split("\n"),b=p+f.length,y=f[f.length-1].length;return{from:n(b,y),to:n(b+v.length-1,1==v.length?y+v[0].length:v[v.length-1].length),match:g}}}}function d(e,t,r,n){if(e.length==t.length)return r;for(var i=0,a=r+Math.max(0,e.length-t.length);;){if(i==a)return i;var o=i+a>>1,s=n(e.slice(0,o)).length;if(s==r)return o;s>r?a=o:i=o+1}}function h(e,i,a,o){if(!i.length)return null;var s=o?t:r,l=s(i).split(/\r|\n\r?/);e:for(var c=a.line,u=a.ch,p=e.lastLine()+1-l.length;c<=p;c++,u=0){var h=e.getLine(c).slice(u),m=s(h);if(1==l.length){var g=m.indexOf(l[0]);if(-1==g)continue e;return a=d(h,m,g,s)+u,{from:n(c,d(h,m,g,s)+u),to:n(c,d(h,m,g+l[0].length,s)+u)}}var f=m.length-l[0].length;if(m.slice(f)==l[0]){for(var v=1;v<l.length-1;v++)if(s(e.getLine(c+v))!=l[v])continue e;var b=e.getLine(c+l.length-1),y=s(b),x=l[l.length-1];if(y.slice(0,x.length)==x)return{from:n(c,d(h,m,f,s)+u),to:n(c+l.length-1,d(b,y,x.length,s))}}}}function m(e,i,a,o){if(!i.length)return null;var s=o?t:r,l=s(i).split(/\r|\n\r?/);e:for(var c=a.line,u=a.ch,p=e.firstLine()-1+l.length;c>=p;c--,u=-1){var h=e.getLine(c);u>-1&&(h=h.slice(0,u));var m=s(h);if(1==l.length){var g=m.lastIndexOf(l[0]);if(-1==g)continue e;return{from:n(c,d(h,m,g,s)),to:n(c,d(h,m,g+l[0].length,s))}}var f=l[l.length-1];if(m.slice(0,f.length)==f){var v=1;for(a=c-l.length+1;v<l.length-1;v++)if(s(e.getLine(a+v))!=l[v])continue e;var b=e.getLine(c+1-l.length),y=s(b);if(y.slice(y.length-l[0].length)==l[0])return{from:n(c+1-l.length,d(b,y,b.length-l[0].length,s)),to:n(c,d(h,m,f.length,s))}}}}function g(e,t,r,i){var o;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,r=r?e.clipPos(r):n(0,0),this.pos={from:r,to:r},"object"==typeof i?o=i.caseFold:(o=i,i=null),"string"==typeof t?(null==o&&(o=!1),this.matches=function(r,n){return(r?m:h)(e,t,n,o)}):(t=a(t,"gm"),i&&!1===i.multiline?this.matches=function(r,n){return(r?u:s)(e,t,n)}:this.matches=function(r,n){return(r?p:l)(e,t,n)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},r=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},r=function(e){return e}),g.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var r=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(r=n(r.line,r.ch),t?(r.ch--,r.ch<0&&(r.line--,r.ch=(this.doc.getLine(r.line)||"").length)):(r.ch++,r.ch>(this.doc.getLine(r.line)||"").length&&(r.ch=0,r.line++)),0!=e.cmpPos(r,this.doc.clipPos(r))))return this.atOccurrence=!1;var i=this.matches(t,r);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var a=n(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:a,to:a},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,r){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,r),this.pos.to=n(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,r){return new g(this.doc,e,t,r)})),e.defineDocExtension("getSearchCursor",(function(e,t,r){return new g(this,e,t,r)})),e.defineExtension("selectMatches",(function(t,r){for(var n=[],i=this.getSearchCursor(t,this.getCursor("from"),r);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)n.push({anchor:i.from(),head:i.to()});n.length&&this.setSelections(n,0)}))}(uA)})),gi((function(e,t){var r,n;n=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i,(r=uA).defineMode("gfm",(function(e,t){var i=0;function a(e){return e.code=!1,null}var o={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,r){if(r.combineTokens=null,r.codeBlock)return e.match(/^```+/)?(r.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(r.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),r.codeBlock=!0,null;if("`"===e.peek()){e.next();var a=e.pos;e.eatWhile("`");var o=1+e.pos-a;return r.code?o===i&&(r.code=!1):(i=o,r.code=!0),null}if(r.code)return e.next(),null;if(e.eatSpace())return r.ateSpace=!0,null;if((e.sol()||r.ateSpace)&&(r.ateSpace=!1,!1!==t.gitHubSpice)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return r.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return r.combineTokens=!0,"link"}return e.match(n)&&"]("!=e.string.slice(e.start-2,e.start)&&(0==e.start||/\W/.test(e.string.charAt(e.start-1)))?(r.combineTokens=!0,"link"):(e.next(),null)},blankLine:a},s={taskLists:!0,strikethrough:!0,emoji:!0};for(var l in t)s[l]=t[l];return s.name="markdown",r.overlayMode(r.getMode(e,s),o)}),"markdown"),r.defineMIME("text/x-gfm","gfm")}));var pA=mi(Object.freeze({__proto__:null,default:{}})),dA=gi((function(e){var t;t=function(e,t,r,n){n=n||{},this.dictionary=null,this.rules={},this.dictionaryTable={},this.compoundRules=[],this.compoundRuleCodes={},this.replacementTable=[],this.flags=n.flags||{},this.memoized={},this.loaded=!1;var i,a,o,s,l,c=this;function u(e,t){var r=c._readFile(e,null,n.asyncLoad);n.asyncLoad?r.then((function(e){t(e)})):t(r)}function p(e){t=e,r&&h()}function d(e){r=e,t&&h()}function h(){for(c.rules=c._parseAFF(t),c.compoundRuleCodes={},a=0,s=c.compoundRules.length;a<s;a++){var e=c.compoundRules[a];for(o=0,l=e.length;o<l;o++)c.compoundRuleCodes[e[o]]=[]}for(a in"ONLYINCOMPOUND"in c.flags&&(c.compoundRuleCodes[c.flags.ONLYINCOMPOUND]=[]),c.dictionaryTable=c._parseDIC(r),c.compoundRuleCodes)0===c.compoundRuleCodes[a].length&&delete c.compoundRuleCodes[a];for(a=0,s=c.compoundRules.length;a<s;a++){var i=c.compoundRules[a],u="";for(o=0,l=i.length;o<l;o++){var p=i[o];p in c.compoundRuleCodes?u+="("+c.compoundRuleCodes[p].join("|")+")":u+=p}c.compoundRules[a]=new RegExp(u,"i")}c.loaded=!0,n.asyncLoad&&n.loadedCallback&&n.loadedCallback(c)}return e&&(c.dictionary=e,t&&r?h():"undefined"!=typeof window&&"chrome"in window&&"extension"in window.chrome&&"getURL"in window.chrome.extension?(i=n.dictionaryPath?n.dictionaryPath:"typo/dictionaries",t||u(chrome.extension.getURL(i+"/"+e+"/"+e+".aff"),p),r||u(chrome.extension.getURL(i+"/"+e+"/"+e+".dic"),d)):(i=n.dictionaryPath?n.dictionaryPath:"undefined"!=typeof __dirname?__dirname+"/dictionaries":"./dictionaries",t||u(i+"/"+e+"/"+e+".aff",p),r||u(i+"/"+e+"/"+e+".dic",d))),this},t.prototype={load:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);return this},_readFile:function(e,t,r){if(t=t||"utf8","undefined"!=typeof XMLHttpRequest){var n,i=new XMLHttpRequest;return i.open("GET",e,r),r&&(n=new Promise((function(e,t){i.onload=function(){200===i.status?e(i.responseText):t(i.statusText)},i.onerror=function(){t(i.statusText)}}))),i.overrideMimeType&&i.overrideMimeType("text/plain; charset="+t),i.send(null),r?n:i.responseText}if(void 0!==fi){var a=pA;try{if(a.existsSync(e))return a.readFileSync(e,t);console.log("Path "+e+" does not exist.")}catch(e){return console.log(e),""}}},_parseAFF:function(e){var t,r,n,i,a,o,s,l={},c=e.split(/\r?\n/);for(i=0,o=c.length;i<o;i++)if(t=(t=this._removeAffixComments(c[i])).trim()){var u=t.split(/\s+/),p=u[0];if("PFX"==p||"SFX"==p){var d=u[1],h=u[2],m=[];for(a=i+1,s=i+1+(r=parseInt(u[3],10));a<s;a++){var g=(n=c[a].split(/\s+/))[2],f=n[3].split("/"),v=f[0];"0"===v&&(v="");var b=this.parseRuleCodes(f[1]),y=n[4],x={};x.add=v,b.length>0&&(x.continuationClasses=b),"."!==y&&(x.match="SFX"===p?new RegExp(y+"$"):new RegExp("^"+y)),"0"!=g&&(x.remove="SFX"===p?new RegExp(g+"$"):g),m.push(x)}l[d]={type:p,combineable:"Y"==h,entries:m},i+=r}else if("COMPOUNDRULE"===p){for(a=i+1,s=i+1+(r=parseInt(u[1],10));a<s;a++)n=(t=c[a]).split(/\s+/),this.compoundRules.push(n[1]);i+=r}else"REP"===p?3===(n=t.split(/\s+/)).length&&this.replacementTable.push([n[1],n[2]]):this.flags[p]=u[1]}return l},_removeAffixComments:function(e){return e.match(/^\s*#/,"")?"":e},_parseDIC:function(e){var t=(e=this._removeDicComments(e)).split(/\r?\n/),r={};function n(e,t){r.hasOwnProperty(e)||(r[e]=null),t.length>0&&(null===r[e]&&(r[e]=[]),r[e].push(t))}for(var i=1,a=t.length;i<a;i++){var o=t[i];if(o){var s=o.split("/",2),l=s[0];if(s.length>1){var c=this.parseRuleCodes(s[1]);"NEEDAFFIX"in this.flags&&-1!=c.indexOf(this.flags.NEEDAFFIX)||n(l,c);for(var u=0,p=c.length;u<p;u++){var d=c[u],h=this.rules[d];if(h)for(var m=this._applyRule(l,h),g=0,f=m.length;g<f;g++){var v=m[g];if(n(v,[]),h.combineable)for(var b=u+1;b<p;b++){var y=c[b],x=this.rules[y];if(x&&x.combineable&&h.type!=x.type)for(var w=this._applyRule(v,x),z=0,k=w.length;z<k;z++)n(w[z],[])}}d in this.compoundRuleCodes&&this.compoundRuleCodes[d].push(l)}}else n(l.trim(),[])}}return r},_removeDicComments:function(e){return e=e.replace(/^\t.*$/gm,"")},parseRuleCodes:function(e){if(e){if("FLAG"in this.flags){if("long"===this.flags.FLAG){for(var t=[],r=0,n=e.length;r<n;r+=2)t.push(e.substr(r,2));return t}return"num"===this.flags.FLAG?e.split(","):"UTF-8"===this.flags.FLAG?Array.from(e):e.split("")}return e.split("")}return[]},_applyRule:function(e,t){for(var r=t.entries,n=[],i=0,a=r.length;i<a;i++){var o=r[i];if(!o.match||e.match(o.match)){var s=e;if(o.remove&&(s=s.replace(o.remove,"")),"SFX"===t.type?s+=o.add:s=o.add+s,n.push(s),"continuationClasses"in o)for(var l=0,c=o.continuationClasses.length;l<c;l++){var u=this.rules[o.continuationClasses[l]];u&&(n=n.concat(this._applyRule(s,u)))}}}return n},check:function(e){if(!this.loaded)throw"Dictionary not loaded.";var t=e.replace(/^\s\s*/,"").replace(/\s\s*$/,"");if(this.checkExact(t))return!0;if(t.toUpperCase()===t){var r=t[0]+t.substring(1).toLowerCase();if(this.hasFlag(r,"KEEPCASE"))return!1;if(this.checkExact(r))return!0;if(this.checkExact(t.toLowerCase()))return!0}var n=t[0].toLowerCase()+t.substring(1);if(n!==t){if(this.hasFlag(n,"KEEPCASE"))return!1;if(this.checkExact(n))return!0}return!1},checkExact:function(e){if(!this.loaded)throw"Dictionary not loaded.";var t,r,n=this.dictionaryTable[e];if(void 0===n){if("COMPOUNDMIN"in this.flags&&e.length>=this.flags.COMPOUNDMIN)for(t=0,r=this.compoundRules.length;t<r;t++)if(e.match(this.compoundRules[t]))return!0}else{if(null===n)return!0;if("object"==typeof n)for(t=0,r=n.length;t<r;t++)if(!this.hasFlag(e,"ONLYINCOMPOUND",n[t]))return!0}return!1},hasFlag:function(e,t,r){if(!this.loaded)throw"Dictionary not loaded.";return!(!(t in this.flags)||(void 0===r&&(r=Array.prototype.concat.apply([],this.dictionaryTable[e])),!r||-1===r.indexOf(this.flags[t])))},alphabet:"",suggest:function(e,t){if(!this.loaded)throw"Dictionary not loaded.";if(t=t||5,this.memoized.hasOwnProperty(e)){var r=this.memoized[e].limit;if(t<=r||this.memoized[e].suggestions.length<r)return this.memoized[e].suggestions.slice(0,t)}if(this.check(e))return[];for(var n=0,i=this.replacementTable.length;n<i;n++){var a=this.replacementTable[n];if(-1!==e.indexOf(a[0])){var o=e.replace(a[0],a[1]);if(this.check(o))return[o]}}var s=this;function l(e,t){var r,n,i,a,o={},l=s.alphabet.length;if("string"==typeof e){var c=e;(e={})[c]=!0}for(var c in e)for(r=0,i=c.length+1;r<i;r++){var u=[c.substring(0,r),c.substring(r)];if(u[1]&&(a=u[0]+u[1].substring(1),t&&!s.check(a)||(a in o?o[a]+=1:o[a]=1)),u[1].length>1&&u[1][1]!==u[1][0]&&(a=u[0]+u[1][1]+u[1][0]+u[1].substring(2),t&&!s.check(a)||(a in o?o[a]+=1:o[a]=1)),u[1]){var p=u[1].substring(0,1).toUpperCase()===u[1].substring(0,1)?"uppercase":"lowercase";for(n=0;n<l;n++){var d=s.alphabet[n];"uppercase"===p&&(d=d.toUpperCase()),d!=u[1].substring(0,1)&&(a=u[0]+d+u[1].substring(1),t&&!s.check(a)||(a in o?o[a]+=1:o[a]=1))}}if(u[1])for(n=0;n<l;n++)p=u[0].substring(-1).toUpperCase()===u[0].substring(-1)&&u[1].substring(0,1).toUpperCase()===u[1].substring(0,1)?"uppercase":"lowercase",d=s.alphabet[n],"uppercase"===p&&(d=d.toUpperCase()),a=u[0]+d+u[1],t&&!s.check(a)||(a in o?o[a]+=1:o[a]=1)}return o}return s.alphabet="abcdefghijklmnopqrstuvwxyz",this.memoized[e]={suggestions:function(e){var r,n=l(e),i=l(n,!0);for(var a in n)s.check(a)&&(a in i?i[a]+=n[a]:i[a]=n[a]);var o=[];for(r in i)i.hasOwnProperty(r)&&o.push([r,i[r]]);o.sort((function(e,t){var r=e[1],n=t[1];return r<n?-1:r>n?1:t[0].localeCompare(e[0])})).reverse();var c=[],u="lowercase";e.toUpperCase()===e?u="uppercase":e.substr(0,1).toUpperCase()+e.substr(1).toLowerCase()===e&&(u="capitalized");var p=t;for(r=0;r<Math.min(p,o.length);r++)"uppercase"===u?o[r][0]=o[r][0].toUpperCase():"capitalized"===u&&(o[r][0]=o[r][0].substr(0,1).toUpperCase()+o[r][0].substr(1)),s.hasFlag(o[r][0],"NOSUGGEST")||-1!=c.indexOf(o[r][0])?p++:c.push(o[r][0]);return c}(e),limit:t},this.memoized[e].suggestions}},e.exports=t}));function hA(e){"function"==typeof(e=e||{}).codeMirrorInstance&&"function"==typeof e.codeMirrorInstance.defineMode?(String.prototype.includes||(String.prototype.includes=function(){return-1!==String.prototype.indexOf.apply(this,arguments)}),e.codeMirrorInstance.defineMode("spell-checker",(function(t){if(!hA.aff_loading){hA.aff_loading=!0;var r=new XMLHttpRequest;r.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff",!0),r.onload=function(){4===r.readyState&&200===r.status&&(hA.aff_data=r.responseText,hA.num_loaded++,2==hA.num_loaded&&(hA.typo=new dA("en_US",hA.aff_data,hA.dic_data,{platform:"any"})))},r.send(null)}if(!hA.dic_loading){hA.dic_loading=!0;var n=new XMLHttpRequest;n.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic",!0),n.onload=function(){4===n.readyState&&200===n.status&&(hA.dic_data=n.responseText,hA.num_loaded++,2==hA.num_loaded&&(hA.typo=new dA("en_US",hA.aff_data,hA.dic_data,{platform:"any"})))},n.send(null)}var i='!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~ ',a={token:function(e){var t=e.peek(),r="";if(i.includes(t))return e.next(),null;for(;null!=(t=e.peek())&&!i.includes(t);)r+=t,e.next();return hA.typo&&!hA.typo.check(r)?"spell-error":null}},o=e.codeMirrorInstance.getMode(t,t.backdrop||"text/plain");return e.codeMirrorInstance.overlayMode(o,a,!0)}))):console.log("CodeMirror Spell Checker: You must provide an instance of CodeMirror via the option `codeMirrorInstance`")}hA.num_loaded=0,hA.aff_loading=!1,hA.dic_loading=!1,hA.aff_data="",hA.dic_data="";var mA=hA,gA=gi((function(e,t){function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(i=n.key,a=void 0,a=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"==typeof a?a:String(a)),n)}var i,a}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}t.defaults={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};var o=/[&<>"']/,s=new RegExp(o.source,"g"),l=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,c=new RegExp(l.source,"g"),u={"&":"&","<":"<",">":">",'"':""","'":"'"},p=function(e){return u[e]};function d(e,t){if(t){if(o.test(e))return e.replace(s,p)}else if(l.test(e))return e.replace(c,p);return e}var h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function m(e){return e.replace(h,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var g=/(^|[^\[])\^/g;function f(e,t){e="string"==typeof e?e:e.source,t=t||"";var r={replace:function(t,n){return n=(n=n.source||n).replace(g,"$1"),e=e.replace(t,n),r},getRegex:function(){return new RegExp(e,t)}};return r}var v=/[^\w:]/g,b=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function y(e,t,r){if(e){var n;try{n=decodeURIComponent(m(r)).replace(v,"").toLowerCase()}catch(e){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!b.test(r)&&(r=function(e,t){x[" "+e]||(w.test(e)?x[" "+e]=e+"/":x[" "+e]=_(e,"/",!0));e=x[" "+e];var r=-1===e.indexOf(":");return"//"===t.substring(0,2)?r?t:e.replace(z,"$1")+t:"/"===t.charAt(0)?r?t:e.replace(k,"$1")+t:e+t}(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch(e){return null}return r}var x={},w=/^[^:]+:\/*[^/]*$/,z=/^([^:]+:)[\s\S]*$/,k=/^([^:]+:\/*[^/]*)[\s\S]*$/;var A={exec:function(){}};function C(e){for(var t,r,n=1;n<arguments.length;n++)for(r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function S(e,t){var r=e.replace(/\|/g,(function(e,t,r){for(var n=!1,i=t;--i>=0&&"\\"===r[i];)n=!n;return n?"|":" |"})).split(/ \|/),n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r}function _(e,t,r){var n=e.length;if(0===n)return"";for(var i=0;i<n;){var a=e.charAt(n-i-1);if(a!==t||r){if(a===t||!r)break;i++}else i++}return e.slice(0,n-i)}function M(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function T(e,t){if(t<1)return"";for(var r="";t>1;)1&t&&(r+=e),t>>=1,e+=e;return r+e}function $(e,t,r,n){var i=t.href,a=t.title?d(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;var s={type:"link",raw:r,href:i,title:a,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,s}return{type:"image",raw:r,href:i,title:a,text:d(o)}}var L=function(){function e(e){this.options=e||t.defaults}var r=e.prototype;return r.space=function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}},r.code=function(e){var t=this.rules.block.code.exec(e);if(t){var r=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:_(r,"\n")}}},r.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var r=t[0],n=function(e,t){var r=e.match(/^(\s+)(?:```)/);if(null===r)return t;var n=r[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=n.length?e.slice(n.length):e})).join("\n")}(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:n}}},r.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var r=t[2].trim();if(/#$/.test(r)){var n=_(r,"#");this.options.pedantic?r=n.trim():n&&!/ $/.test(n)||(r=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}},r.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},r.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var r=t[0].replace(/^ *>[ \t]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;var i=this.lexer.blockTokens(r);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:i,text:r}}},r.list=function(e){var t=this.rules.block.list.exec(e);if(t){var r,n,i,a,o,s,l,c,u,p,d,h,m=t[1].trim(),g=m.length>1,f={type:"list",raw:"",ordered:g,start:g?+m.slice(0,-1):"",loose:!1,items:[]};m=g?"\\d{1,9}\\"+m.slice(-1):"\\"+m,this.options.pedantic&&(m=g?m:"[*+-]");for(var v=new RegExp("^( {0,3}"+m+")((?:[\t ][^\\n]*)?(?:\\n|$))");e&&(h=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(r=t[0],e=e.substring(r.length),c=t[2].split("\n",1)[0].replace(/^\t+/,(function(e){return" ".repeat(3*e.length)})),u=e.split("\n",1)[0],this.options.pedantic?(a=2,d=c.trimLeft()):(a=(a=t[2].search(/[^ ]/))>4?1:a,d=c.slice(a),a+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(r+=u+"\n",e=e.substring(u.length+1),h=!0),!h)for(var b=new RegExp("^ {0,"+Math.min(3,a-1)+"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))"),y=new RegExp("^ {0,"+Math.min(3,a-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),x=new RegExp("^ {0,"+Math.min(3,a-1)+"}(?:```|~~~)"),w=new RegExp("^ {0,"+Math.min(3,a-1)+"}#");e&&(u=p=e.split("\n",1)[0],this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!x.test(u))&&!w.test(u)&&!b.test(u)&&!y.test(e);){if(u.search(/[^ ]/)>=a||!u.trim())d+="\n"+u.slice(a);else{if(s)break;if(c.search(/[^ ]/)>=4)break;if(x.test(c))break;if(w.test(c))break;if(y.test(c))break;d+="\n"+u}s||u.trim()||(s=!0),r+=p+"\n",e=e.substring(p.length+1),c=u.slice(a)}f.loose||(l?f.loose=!0:/\n *\n *$/.test(r)&&(l=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(d))&&(i="[ ] "!==n[0],d=d.replace(/^\[[ xX]\] +/,"")),f.items.push({type:"list_item",raw:r,task:!!n,checked:i,loose:!1,text:d}),f.raw+=r}f.items[f.items.length-1].raw=r.trimRight(),f.items[f.items.length-1].text=d.trimRight(),f.raw=f.raw.trimRight();var z=f.items.length;for(o=0;o<z;o++)if(this.lexer.state.top=!1,f.items[o].tokens=this.lexer.blockTokens(f.items[o].text,[]),!f.loose){var k=f.items[o].tokens.filter((function(e){return"space"===e.type})),A=k.length>0&&k.some((function(e){return/\n.*\n/.test(e.raw)}));f.loose=A}if(f.loose)for(o=0;o<z;o++)f.items[o].loose=!0;return f}},r.html=function(e){var t=this.rules.block.html.exec(e);if(t){var r={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){var n=this.options.sanitizer?this.options.sanitizer(t[0]):d(t[0]);r.type="paragraph",r.text=n,r.tokens=this.lexer.inline(n)}return r}},r.def=function(e){var t=this.rules.block.def.exec(e);if(t){var r=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:n,title:i}}},r.table=function(e){var t=this.rules.block.table.exec(e);if(t){var r={type:"table",header:S(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(r.header.length===r.align.length){r.raw=t[0];var n,i,a,o,s=r.align.length;for(n=0;n<s;n++)/^ *-+: *$/.test(r.align[n])?r.align[n]="right":/^ *:-+: *$/.test(r.align[n])?r.align[n]="center":/^ *:-+ *$/.test(r.align[n])?r.align[n]="left":r.align[n]=null;for(s=r.rows.length,n=0;n<s;n++)r.rows[n]=S(r.rows[n],r.header.length).map((function(e){return{text:e}}));for(s=r.header.length,i=0;i<s;i++)r.header[i].tokens=this.lexer.inline(r.header[i].text);for(s=r.rows.length,i=0;i<s;i++)for(o=r.rows[i],a=0;a<o.length;a++)o[a].tokens=this.lexer.inline(o[a].text);return r}}},r.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}},r.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t){var r="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}},r.text=function(e){var t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}},r.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:d(t[1])}},r.tag=function(e){var t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):d(t[0]):t[0]}},r.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var r=t[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;var n=_(r.slice(0,-1),"\\");if((r.length-n.length)%2==0)return}else{var i=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var r=e.length,n=0,i=0;i<r;i++)if("\\"===e[i])i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&--n<0)return i;return-1}(t[2],"()");if(i>-1){var a=(0===t[0].indexOf("!")?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,a).trim(),t[3]=""}}var o=t[2],s="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);l&&(o=l[1],s=l[3])}else s=t[3]?t[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(o=this.options.pedantic&&!/>$/.test(r)?o.slice(1):o.slice(1,-1)),$(t,{href:o?o.replace(this.rules.inline._escapes,"$1"):o,title:s?s.replace(this.rules.inline._escapes,"$1"):s},t[0],this.lexer)}},r.reflink=function(e,t){var r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){var n=(r[2]||r[1]).replace(/\s+/g," ");if(!(n=t[n.toLowerCase()])){var i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return $(r,n,r[0],this.lexer)}},r.emStrong=function(e,t,r){void 0===r&&(r="");var n=this.rules.inline.emStrong.lDelim.exec(e);if(n&&(!n[3]||!r.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var i=n[1]||n[2]||"";if(!i||i&&(""===r||this.rules.inline.punctuation.exec(r))){var a,o,s=n[0].length-1,l=s,c=0,u="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+s);null!=(n=u.exec(t));)if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6])if(o=a.length,n[3]||n[4])l+=o;else if(!((n[5]||n[6])&&s%3)||(s+o)%3){if(!((l-=o)>0)){o=Math.min(o,o+l+c);var p=e.slice(0,s+n.index+(n[0].length-a.length)+o);if(Math.min(s,o)%2){var d=p.slice(1,-1);return{type:"em",raw:p,text:d,tokens:this.lexer.inlineTokens(d)}}var h=p.slice(2,-2);return{type:"strong",raw:p,text:h,tokens:this.lexer.inlineTokens(h)}}}else c+=o}}},r.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var r=t[2].replace(/\n/g," "),n=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return n&&i&&(r=r.substring(1,r.length-1)),r=d(r,!0),{type:"codespan",raw:t[0],text:r}}},r.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},r.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}},r.autolink=function(e,t){var r,n,i=this.rules.inline.autolink.exec(e);if(i)return n="@"===i[2]?"mailto:"+(r=d(this.options.mangle?t(i[1]):i[1])):r=d(i[1]),{type:"link",raw:i[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}},r.url=function(e,t){var r;if(r=this.rules.inline.url.exec(e)){var n,i;if("@"===r[2])i="mailto:"+(n=d(this.options.mangle?t(r[0]):r[0]));else{var a;do{a=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(a!==r[0]);n=d(r[0]),i="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}},r.inlineText=function(e,t){var r,n=this.rules.inline.text.exec(e);if(n)return r=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):d(n[0]):n[0]:d(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:r}},e}(),E={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:A,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};E.def=f(E.def).replace("label",E._label).replace("title",E._title).getRegex(),E.bullet=/(?:[*+-]|\d{1,9}[.)])/,E.listItemStart=f(/^( *)(bull) */).replace("bull",E.bullet).getRegex(),E.list=f(E.list).replace(/bull/g,E.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+E.def.source+")").getRegex(),E._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",E._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,E.html=f(E.html,"i").replace("comment",E._comment).replace("tag",E._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),E.paragraph=f(E._paragraph).replace("hr",E.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",E._tag).getRegex(),E.blockquote=f(E.blockquote).replace("paragraph",E.paragraph).getRegex(),E.normal=C({},E),E.gfm=C({},E.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),E.gfm.table=f(E.gfm.table).replace("hr",E.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",E._tag).getRegex(),E.gfm.paragraph=f(E._paragraph).replace("hr",E.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",E.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",E._tag).getRegex(),E.pedantic=C({},E.normal,{html:f("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",E._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:A,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:f(E.normal._paragraph).replace("hr",E.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",E.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var I={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:A,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:A,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function B(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function D(e){var t,r,n="",i=e.length;for(t=0;t<i;t++)r=e.charCodeAt(t),Math.random()>.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}I._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",I.punctuation=f(I.punctuation).replace(/punctuation/g,I._punctuation).getRegex(),I.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,I.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,I._comment=f(E._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),I.emStrong.lDelim=f(I.emStrong.lDelim).replace(/punct/g,I._punctuation).getRegex(),I.emStrong.rDelimAst=f(I.emStrong.rDelimAst,"g").replace(/punct/g,I._punctuation).getRegex(),I.emStrong.rDelimUnd=f(I.emStrong.rDelimUnd,"g").replace(/punct/g,I._punctuation).getRegex(),I._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,I._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,I._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,I.autolink=f(I.autolink).replace("scheme",I._scheme).replace("email",I._email).getRegex(),I._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,I.tag=f(I.tag).replace("comment",I._comment).replace("attribute",I._attribute).getRegex(),I._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,I._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,I._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,I.link=f(I.link).replace("label",I._label).replace("href",I._href).replace("title",I._title).getRegex(),I.reflink=f(I.reflink).replace("label",I._label).replace("ref",E._label).getRegex(),I.nolink=f(I.nolink).replace("ref",E._label).getRegex(),I.reflinkSearch=f(I.reflinkSearch,"g").replace("reflink",I.reflink).replace("nolink",I.nolink).getRegex(),I.normal=C({},I),I.pedantic=C({},I.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:f(/^!?\[(label)\]\((.*?)\)/).replace("label",I._label).getRegex(),reflink:f(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",I._label).getRegex()}),I.gfm=C({},I.normal,{escape:f(I.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),I.gfm.url=f(I.gfm.url,"i").replace("email",I.gfm._extended_email).getRegex(),I.breaks=C({},I.gfm,{br:f(I.br).replace("{2,}","*").getRegex(),text:f(I.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var H=function(){function e(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||t.defaults,this.options.tokenizer=this.options.tokenizer||new L,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var r={block:E.normal,inline:I.normal};this.options.pedantic?(r.block=E.pedantic,r.inline=I.pedantic):this.options.gfm&&(r.block=E.gfm,this.options.breaks?r.inline=I.breaks:r.inline=I.gfm),this.tokenizer.rules=r}e.lex=function(t,r){return new e(r).lex(t)},e.lexInline=function(t,r){return new e(r).inlineTokens(t)};var n,i,a,o=e.prototype;return o.lex=function(e){var t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens},o.blockTokens=function(e,t){var r,n,i,a,o=this;for(void 0===t&&(t=[]),e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(function(e,t,r){return t+" ".repeat(r.length)}));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(n){return!!(r=n.call({lexer:o},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)}))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),1===r.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?t.push(r):(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else if(i=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,r=e.slice(1),n=void 0;o.options.extensions.startBlock.forEach((function(e){"number"==typeof(n=e.call({lexer:this},r))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}(),this.state.top&&(r=this.tokenizer.paragraph(i)))n=t[t.length-1],a&&"paragraph"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),a=i.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);else if(e){var s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}return this.state.top=!0,t},o.inline=function(e,t){return void 0===t&&(t=[]),this.inlineQueue.push({src:e,tokens:t}),t},o.inlineTokens=function(e,t){var r,n,i,a=this;void 0===t&&(t=[]);var o,s,l,c=e;if(this.tokens.links){var u=Object.keys(this.tokens.links);if(u.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(c));)u.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,o.index)+"["+T("a",o[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,o.index)+"["+T("a",o[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(c));)c=c.slice(0,o.index+o[0].length-2)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(s||(l=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(r=n.call({lexer:a},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)}))))if(r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e))e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,c,l))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.autolink(e,D))e=e.substring(r.raw.length),t.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(e,D))){if(i=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,r=e.slice(1),n=void 0;a.options.extensions.startInline.forEach((function(e){"number"==typeof(n=e.call({lexer:this},r))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}(),r=this.tokenizer.inlineText(i,B))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(l=r.raw.slice(-1)),s=!0,(n=t[t.length-1])&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(e){var p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}throw new Error(p)}}else e=e.substring(r.raw.length),t.push(r);return t},n=e,a=[{key:"rules",get:function(){return{block:E,inline:I}}}],(i=null)&&r(n.prototype,i),a&&r(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}(),O=function(){function e(e){this.options=e||t.defaults}var r=e.prototype;return r.code=function(e,t,r){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,n);null!=i&&i!==e&&(r=!0,e=i)}return e=e.replace(/\n$/,"")+"\n",n?'<pre><code class="'+this.options.langPrefix+d(n)+'">'+(r?e:d(e,!0))+"</code></pre>\n":"<pre><code>"+(r?e:d(e,!0))+"</code></pre>\n"},r.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},r.html=function(e){return e},r.heading=function(e,t,r,n){return this.options.headerIds?"<h"+t+' id="'+(this.options.headerPrefix+n.slug(r))+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},r.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},r.list=function(e,t,r){var n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"</"+n+">\n"},r.listitem=function(e){return"<li>"+e+"</li>\n"},r.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},r.paragraph=function(e){return"<p>"+e+"</p>\n"},r.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},r.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},r.tablecell=function(e,t){var r=t.header?"th":"td";return(t.align?"<"+r+' align="'+t.align+'">':"<"+r+">")+e+"</"+r+">\n"},r.strong=function(e){return"<strong>"+e+"</strong>"},r.em=function(e){return"<em>"+e+"</em>"},r.codespan=function(e){return"<code>"+e+"</code>"},r.br=function(){return this.options.xhtml?"<br/>":"<br>"},r.del=function(e){return"<del>"+e+"</del>"},r.link=function(e,t,r){if(null===(e=y(this.options.sanitize,this.options.baseUrl,e)))return r;var n='<a href="'+e+'"';return t&&(n+=' title="'+t+'"'),n+=">"+r+"</a>"},r.image=function(e,t,r){if(null===(e=y(this.options.sanitize,this.options.baseUrl,e)))return r;var n='<img src="'+e+'" alt="'+r+'"';return t&&(n+=' title="'+t+'"'),n+=this.options.xhtml?"/>":">"},r.text=function(e){return e},e}(),P=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,r){return""+r},t.image=function(e,t,r){return""+r},t.br=function(){return""},e}(),R=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do{r=e+"-"+ ++n}while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r},t.slug=function(e,t){void 0===t&&(t={});var r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)},e}(),V=function(){function e(e){this.options=e||t.defaults,this.options.renderer=this.options.renderer||new O,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new P,this.slugger=new R}e.parse=function(t,r){return new e(r).parse(t)},e.parseInline=function(t,r){return new e(r).parseInline(t)};var r=e.prototype;return r.parse=function(e,t){void 0===t&&(t=!0);var r,n,i,a,o,s,l,c,u,p,d,h,g,f,v,b,y,x,w,z="",k=e.length;for(r=0;r<k;r++)if(p=e[r],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type])||!1===(w=this.options.extensions.renderers[p.type].call({parser:this},p))&&["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type))switch(p.type){case"space":continue;case"hr":z+=this.renderer.hr();continue;case"heading":z+=this.renderer.heading(this.parseInline(p.tokens),p.depth,m(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":z+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(c="",l="",a=p.header.length,n=0;n<a;n++)l+=this.renderer.tablecell(this.parseInline(p.header[n].tokens),{header:!0,align:p.align[n]});for(c+=this.renderer.tablerow(l),u="",a=p.rows.length,n=0;n<a;n++){for(l="",o=(s=p.rows[n]).length,i=0;i<o;i++)l+=this.renderer.tablecell(this.parseInline(s[i].tokens),{header:!1,align:p.align[i]});u+=this.renderer.tablerow(l)}z+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(p.tokens),z+=this.renderer.blockquote(u);continue;case"list":for(d=p.ordered,h=p.start,g=p.loose,a=p.items.length,u="",n=0;n<a;n++)b=(v=p.items[n]).checked,y=v.task,f="",v.task&&(x=this.renderer.checkbox(b),g?v.tokens.length>0&&"paragraph"===v.tokens[0].type?(v.tokens[0].text=x+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=x+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:x}):f+=x),f+=this.parse(v.tokens,g),u+=this.renderer.listitem(f,y,b);z+=this.renderer.list(u,d,h);continue;case"html":z+=this.renderer.html(p.text);continue;case"paragraph":z+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(u=p.tokens?this.parseInline(p.tokens):p.text;r+1<k&&"text"===e[r+1].type;)u+="\n"+((p=e[++r]).tokens?this.parseInline(p.tokens):p.text);z+=t?this.renderer.paragraph(u):u;continue;default:var A='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(A);throw new Error(A)}else z+=w||"";return z},r.parseInline=function(e,t){t=t||this.renderer;var r,n,i,a="",o=e.length;for(r=0;r<o;r++)if(n=e[r],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type])||!1===(i=this.options.extensions.renderers[n.type].call({parser:this},n))&&["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type))switch(n.type){case"escape":case"text":a+=t.text(n.text);break;case"html":a+=t.html(n.text);break;case"link":a+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":a+=t.image(n.href,n.title,n.text);break;case"strong":a+=t.strong(this.parseInline(n.tokens,t));break;case"em":a+=t.em(this.parseInline(n.tokens,t));break;case"codespan":a+=t.codespan(n.text);break;case"br":a+=t.br();break;case"del":a+=t.del(this.parseInline(n.tokens,t));break;default:var s='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(s);throw new Error(s)}else a+=i||"";return a},e}();function N(e,t,r){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(r=t,t=null),M(t=C({},N.defaults,t||{})),r){var n,i=t.highlight;try{n=H.lex(e,t)}catch(e){return r(e)}var a=function(e){var a;if(!e)try{t.walkTokens&&N.walkTokens(n,t.walkTokens),a=V.parse(n,t)}catch(t){e=t}return t.highlight=i,e?r(e):r(null,a)};if(!i||i.length<3)return a();if(delete t.highlight,!n.length)return a();var o=0;return N.walkTokens(n,(function(e){"code"===e.type&&(o++,setTimeout((function(){i(e.text,e.lang,(function(t,r){if(t)return a(t);null!=r&&r!==e.text&&(e.text=r,e.escaped=!0),0===--o&&a()}))}),0))})),void(0===o&&a())}function s(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+d(e.message+"",!0)+"</pre>";throw e}try{var l=H.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(N.walkTokens(l,t.walkTokens)).then((function(){return V.parse(l,t)})).catch(s);N.walkTokens(l,t.walkTokens)}return V.parse(l,t)}catch(e){s(e)}}N.options=N.setOptions=function(e){var r;return C(N.defaults,e),r=N.defaults,t.defaults=r,N},N.getDefaults=a,N.defaults=t.defaults,N.use=function(){for(var e=N.defaults.extensions||{renderers:{},childTokens:{}},t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];r.forEach((function(t){var r=C({},t);if(r.async=N.defaults.async||r.async,t.extensions&&(t.extensions.forEach((function(t){if(!t.name)throw new Error("extension name required");if(t.renderer){var r=e.renderers[t.name];e.renderers[t.name]=r?function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var a=t.renderer.apply(this,n);return!1===a&&(a=r.apply(this,n)),a}:t.renderer}if(t.tokenizer){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");e[t.level]?e[t.level].unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}t.childTokens&&(e.childTokens[t.name]=t.childTokens)})),r.extensions=e),t.renderer&&function(){var e=N.defaults.renderer||new O,n=function(r){var n=e[r];e[r]=function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=t.renderer[r].apply(e,a);return!1===s&&(s=n.apply(e,a)),s}};for(var i in t.renderer)n(i);r.renderer=e}(),t.tokenizer&&function(){var e=N.defaults.tokenizer||new L,n=function(r){var n=e[r];e[r]=function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=t.tokenizer[r].apply(e,a);return!1===s&&(s=n.apply(e,a)),s}};for(var i in t.tokenizer)n(i);r.tokenizer=e}(),t.walkTokens){var n=N.defaults.walkTokens;r.walkTokens=function(e){var r=[];return r.push(t.walkTokens.call(this,e)),n&&(r=r.concat(n.call(this,e))),r}}N.setOptions(r)}))},N.walkTokens=function(e,t){for(var r,n=[],a=function(){var e=r.value;switch(n=n.concat(t.call(N,e)),e.type){case"table":for(var a,o=i(e.header);!(a=o()).done;){var s=a.value;n=n.concat(N.walkTokens(s.tokens,t))}for(var l,c=i(e.rows);!(l=c()).done;)for(var u,p=i(l.value);!(u=p()).done;){var d=u.value;n=n.concat(N.walkTokens(d.tokens,t))}break;case"list":n=n.concat(N.walkTokens(e.items,t));break;default:N.defaults.extensions&&N.defaults.extensions.childTokens&&N.defaults.extensions.childTokens[e.type]?N.defaults.extensions.childTokens[e.type].forEach((function(r){n=n.concat(N.walkTokens(e[r],t))})):e.tokens&&(n=n.concat(N.walkTokens(e.tokens,t)))}},o=i(e);!(r=o()).done;)a();return n},N.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");M(t=C({},N.defaults,t||{}));try{var r=H.lexInline(e,t);return t.walkTokens&&N.walkTokens(r,t.walkTokens),V.parseInline(r,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+d(e.message+"",!0)+"</pre>";throw e}},N.Parser=V,N.parser=V.parse,N.Renderer=O,N.TextRenderer=P,N.Lexer=H,N.lexer=H.lex,N.Tokenizer=L,N.Slugger=R,N.parse=N;var F=N.options,j=N.setOptions,q=N.use,U=N.walkTokens,W=N.parseInline,X=N,G=V.parse,Y=H.lex;t.Lexer=H,t.Parser=V,t.Renderer=O,t.Slugger=R,t.TextRenderer=P,t.Tokenizer=L,t.getDefaults=a,t.lexer=Y,t.marked=N,t.options=F,t.parse=X,t.parseInline=W,t.parser=G,t.setOptions=j,t.use=q,t.walkTokens=U})),fA=gA.marked,vA=/Mac/.test(navigator.platform),bA=new RegExp(/(<a.*?https?:\/\/.*?[^a]>)+?/g),yA={toggleBold:$A,toggleItalic:LA,drawLink:WA,toggleHeadingSmaller:DA,toggleHeadingBigger:HA,drawImage:XA,toggleBlockquote:BA,toggleOrderedList:qA,toggleUnorderedList:jA,toggleCodeBlock:IA,togglePreview:rC,toggleStrikethrough:EA,toggleHeading1:OA,toggleHeading2:PA,toggleHeading3:RA,toggleHeading4:VA,toggleHeading5:NA,toggleHeading6:FA,cleanBlock:UA,drawTable:KA,drawHorizontalRule:JA,undo:QA,redo:eC,toggleSideBySide:tC,toggleFullScreen:TA},xA={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",toggleHeading1:"Ctrl+Alt+1",toggleHeading2:"Ctrl+Alt+2",toggleHeading3:"Ctrl+Alt+3",toggleHeading4:"Ctrl+Alt+4",toggleHeading5:"Ctrl+Alt+5",toggleHeading6:"Ctrl+Alt+6",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"},wA=function(e){for(var t in yA)if(yA[t]===e)return t;return null},zA=function(){var e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e};function kA(e){return e=vA?e.replace("Ctrl","Cmd"):e.replace("Cmd","Ctrl")}function AA(e,t,r,n){var i=CA(e,!1,t,r,"button",n);i.classList.add("easymde-dropdown"),i.onclick=function(){i.focus()};var a=document.createElement("div");a.className="easymde-dropdown-content";for(var o=0;o<e.children.length;o++){var s,l=e.children[o];(s=CA("string"==typeof l&&l in hC?hC[l]:l,!0,t,r,"button",n)).addEventListener("click",(function(e){e.stopPropagation()}),!1),a.appendChild(s)}return i.appendChild(a),i}function CA(e,t,r,n,i,a){e=e||{};var o=document.createElement(i);if(e.attributes)for(var s in e.attributes)Object.prototype.hasOwnProperty.call(e.attributes,s)&&o.setAttribute(s,e.attributes[s]);var l=a.options.toolbarButtonClassPrefix?a.options.toolbarButtonClassPrefix+"-":"";o.className=l+e.name,o.setAttribute("type",i),r=null==r||r,e.text&&(o.innerText=e.text),e.name&&e.name in n&&(yA[e.name]=e.action),e.title&&r&&(o.title=function(e,t,r){var n,i=e;t&&r[n=wA(t)]&&(i+=" ("+kA(r[n])+")");return i}(e.title,e.action,n),vA&&(o.title=o.title.replace("Ctrl","⌘"),o.title=o.title.replace("Alt","⌥"))),e.title&&o.setAttribute("aria-label",e.title),e.noDisable&&o.classList.add("no-disable"),e.noMobile&&o.classList.add("no-mobile");var c=[];void 0!==e.className&&(c=e.className.split(" "));for(var u=[],p=0;p<c.length;p++){var d=c[p];d.match(/^fa([srlb]|(-[\w-]*)|$)/)?u.push(d):o.classList.add(d)}if(o.tabIndex=-1,u.length>0){for(var h=document.createElement("i"),m=0;m<u.length;m++){var g=u[m];h.classList.add(g)}o.appendChild(h)}return void 0!==e.icon&&(o.innerHTML=e.icon),e.action&&t&&("function"==typeof e.action?o.onclick=function(t){t.preventDefault(),e.action(a)}:"string"==typeof e.action&&(o.onclick=function(t){t.preventDefault(),window.open(e.action,"_blank")})),o}function SA(){var e=document.createElement("i");return e.className="separator",e.innerHTML="|",e}function _A(e,t){t=t||e.getCursor("start");var r=e.getTokenAt(t);if(!r.type)return{};for(var n,i,a=r.type.split(" "),o={},s=0;s<a.length;s++)"strong"===(n=a[s])?o.bold=!0:"variable-2"===n?(i=e.getLine(t.line),/^\s*\d+\.\s/.test(i)?o["ordered-list"]=!0:o["unordered-list"]=!0):"atom"===n?o.quote=!0:"em"===n?o.italic=!0:"quote"===n?o.quote=!0:"strikethrough"===n?o.strikethrough=!0:"comment"===n?o.code=!0:"link"!==n||o.image?"image"===n?o.image=!0:n.match(/^header(-[1-6])?$/)&&(o[n.replace("header","heading")]=!0):o.link=!0;return o}var MA="";function TA(e){var t=e.codemirror;t.setOption("fullScreen",!t.getOption("fullScreen")),t.getOption("fullScreen")?(MA=document.body.style.overflow,document.body.style.overflow="hidden"):document.body.style.overflow=MA;var r=t.getWrapperElement(),n=r.nextSibling;if(n.classList.contains("editor-preview-active-side"))if(!1===e.options.sideBySideFullscreen){var i=r.parentNode;t.getOption("fullScreen")?i.classList.remove("sided--no-fullscreen"):i.classList.add("sided--no-fullscreen")}else tC(e);(e.options.onToggleFullScreen&&e.options.onToggleFullScreen(t.getOption("fullScreen")||!1),void 0!==e.options.maxHeight&&(t.getOption("fullScreen")?(t.getScrollerElement().style.removeProperty("height"),n.style.removeProperty("height")):(t.getScrollerElement().style.height=e.options.maxHeight,e.setPreviewMaxHeight())),e.toolbar_div.classList.toggle("fullscreen"),e.toolbarElements&&e.toolbarElements.fullscreen)&&e.toolbarElements.fullscreen.classList.toggle("active")}function $A(e){sC(e,"bold",e.options.blockStyles.bold)}function LA(e){sC(e,"italic",e.options.blockStyles.italic)}function EA(e){sC(e,"strikethrough","~~")}function IA(e){var t=e.options.blockStyles.code;function r(e){if("object"!=typeof e)throw"fencing_line() takes a 'line' object (not a line number, or line text). Got: "+typeof e+": "+e;return e.styles&&e.styles[2]&&-1!==e.styles[2].indexOf("formatting-code-block")}function n(e){return e.state.base.base||e.state.base}function i(e,t,i,a,o){i=i||e.getLineHandle(t),a=a||e.getTokenAt({line:t,ch:1}),o=o||!!i.text&&e.getTokenAt({line:t,ch:i.text.length-1});var s=a.type?a.type.split(" "):[];return o&&n(o).indentedCode?"indented":-1!==s.indexOf("comment")&&(n(a).fencedChars||n(o).fencedChars||r(i)?"fenced":"single")}var a,o,s,l=e.codemirror,c=l.getCursor("start"),u=l.getCursor("end"),p=l.getTokenAt({line:c.line,ch:c.ch||1}),d=l.getLineHandle(c.line),h=i(l,c.line,d,p);if("single"===h){var m=d.text.slice(0,c.ch).replace("`",""),g=d.text.slice(c.ch).replace("`","");l.replaceRange(m+g,{line:c.line,ch:0},{line:c.line,ch:99999999999999}),c.ch--,c!==u&&u.ch--,l.setSelection(c,u),l.focus()}else if("fenced"===h)if(c.line!==u.line||c.ch!==u.ch){for(a=c.line;a>=0&&!r(d=l.getLineHandle(a));a--);var f,v,b,y,x=n(l.getTokenAt({line:a,ch:1})).fencedChars;r(l.getLineHandle(c.line))?(f="",v=c.line):r(l.getLineHandle(c.line-1))?(f="",v=c.line-1):(f=x+"\n",v=c.line),r(l.getLineHandle(u.line))?(b="",y=u.line,0===u.ch&&(y+=1)):0!==u.ch&&r(l.getLineHandle(u.line+1))?(b="",y=u.line+1):(b=x+"\n",y=u.line+1),0===u.ch&&(y-=1),l.operation((function(){l.replaceRange(b,{line:y,ch:0},{line:y+(b?0:1),ch:0}),l.replaceRange(f,{line:v,ch:0},{line:v+(f?0:1),ch:0})})),l.setSelection({line:v+(f?1:0),ch:0},{line:y+(f?1:-1),ch:0}),l.focus()}else{var w=c.line;if(r(l.getLineHandle(c.line))&&("fenced"===i(l,c.line+1)?(a=c.line,w=c.line+1):(o=c.line,w=c.line-1)),void 0===a)for(a=w;a>=0&&!r(d=l.getLineHandle(a));a--);if(void 0===o)for(s=l.lineCount(),o=w;o<s&&!r(d=l.getLineHandle(o));o++);l.operation((function(){l.replaceRange("",{line:a,ch:0},{line:a+1,ch:0}),l.replaceRange("",{line:o-1,ch:0},{line:o,ch:0})})),l.focus()}else if("indented"===h){if(c.line!==u.line||c.ch!==u.ch)a=c.line,o=u.line,0===u.ch&&o--;else{for(a=c.line;a>=0;a--)if(!(d=l.getLineHandle(a)).text.match(/^\s*$/)&&"indented"!==i(l,a,d)){a+=1;break}for(s=l.lineCount(),o=c.line;o<s;o++)if(!(d=l.getLineHandle(o)).text.match(/^\s*$/)&&"indented"!==i(l,o,d)){o-=1;break}}var z=l.getLineHandle(o+1),k=z&&l.getTokenAt({line:o+1,ch:z.text.length-1});k&&n(k).indentedCode&&l.replaceRange("\n",{line:o+1,ch:0});for(var A=a;A<=o;A++)l.indentLine(A,"subtract");l.focus()}else{var C=c.line===u.line&&c.ch===u.ch&&0===c.ch,S=c.line!==u.line;C||S?function(e,t,r,n){var i=t.line+1,a=r.line+1,o=t.line!==r.line,s=n+"\n",l="\n"+n;o&&a++,o&&0===r.ch&&(l=n+"\n",a--),nC(e,!1,[s,l]),e.setSelection({line:i,ch:0},{line:a,ch:0})}(l,c,u,t):nC(l,!1,["`","`"])}}function BA(e){aC(e.codemirror,"quote")}function DA(e){iC(e.codemirror,"smaller")}function HA(e){iC(e.codemirror,"bigger")}function OA(e){iC(e.codemirror,void 0,1)}function PA(e){iC(e.codemirror,void 0,2)}function RA(e){iC(e.codemirror,void 0,3)}function VA(e){iC(e.codemirror,void 0,4)}function NA(e){iC(e.codemirror,void 0,5)}function FA(e){iC(e.codemirror,void 0,6)}function jA(e){var t=e.codemirror,r="*";["-","+","*"].includes(e.options.unorderedListStyle)&&(r=e.options.unorderedListStyle),aC(t,"unordered-list",r)}function qA(e){aC(e.codemirror,"ordered-list")}function UA(e){!function(e){if(e.getWrapperElement().lastChild.classList.contains("editor-preview-active"))return;for(var t,r=e.getCursor("start"),n=e.getCursor("end"),i=r.line;i<=n.line;i++)t=(t=e.getLine(i)).replace(/^[ ]*([# ]+|\*|-|[> ]+|[0-9]+(.|\)))[ ]*/,""),e.replaceRange(t,{line:i,ch:0},{line:i,ch:99999999999999})}(e.codemirror)}function WA(e){var t=e.options,r="https://";if(t.promptURLs){var n=prompt(t.promptTexts.link,r);if(!n)return!1;r=GA(n)}oC(e,"link",t.insertTexts.link,r)}function XA(e){var t=e.options,r="https://";if(t.promptURLs){var n=prompt(t.promptTexts.image,r);if(!n)return!1;r=GA(n)}oC(e,"image",t.insertTexts.image,r)}function GA(e){return encodeURI(e).replace(/([\\()])/g,"\\$1")}function YA(e){e.openBrowseFileWindow()}function ZA(e,t){var r=e.codemirror,n=_A(r),i=e.options,a=t.substr(t.lastIndexOf("/")+1),o=a.substring(a.lastIndexOf(".")+1).replace(/\?.*$/,"").toLowerCase();if(["png","jpg","jpeg","gif","svg","apng","avif","webp"].includes(o))nC(r,n.image,i.insertTexts.uploadedImage,t);else{var s=i.insertTexts.link;s[0]="["+a,nC(r,n.link,s,t)}e.updateStatusBar("upload-image",e.options.imageTexts.sbOnUploaded.replace("#image_name#",a)),setTimeout((function(){e.updateStatusBar("upload-image",e.options.imageTexts.sbInit)}),1e3)}function KA(e){var t=e.codemirror,r=_A(t),n=e.options;nC(t,r.table,n.insertTexts.table)}function JA(e){var t=e.codemirror,r=_A(t),n=e.options;nC(t,r.image,n.insertTexts.horizontalRule)}function QA(e){var t=e.codemirror;t.undo(),t.focus()}function eC(e){var t=e.codemirror;t.redo(),t.focus()}function tC(e){var t=e.codemirror,r=t.getWrapperElement(),n=r.nextSibling,i=e.toolbarElements&&e.toolbarElements["side-by-side"],a=!1,o=r.parentNode;n.classList.contains("editor-preview-active-side")?(!1===e.options.sideBySideFullscreen&&o.classList.remove("sided--no-fullscreen"),n.classList.remove("editor-preview-active-side"),i&&i.classList.remove("active"),r.classList.remove("CodeMirror-sided")):(setTimeout((function(){t.getOption("fullScreen")||(!1===e.options.sideBySideFullscreen?o.classList.add("sided--no-fullscreen"):TA(e)),n.classList.add("editor-preview-active-side")}),1),i&&i.classList.add("active"),r.classList.add("CodeMirror-sided"),a=!0);var s=r.lastChild;if(s.classList.contains("editor-preview-active")){s.classList.remove("editor-preview-active");var l=e.toolbarElements.preview,c=e.toolbar_div;l.classList.remove("active"),c.classList.remove("disabled-for-preview")}if(t.sideBySideRenderingFunction||(t.sideBySideRenderingFunction=function(){var t=e.options.previewRender(e.value(),n);null!=t&&(n.innerHTML=t)}),a){var u=e.options.previewRender(e.value(),n);null!=u&&(n.innerHTML=u),t.on("update",t.sideBySideRenderingFunction)}else t.off("update",t.sideBySideRenderingFunction);t.refresh()}function rC(e){var t=e.codemirror,r=t.getWrapperElement(),n=e.toolbar_div,i=!!e.options.toolbar&&e.toolbarElements.preview,a=r.lastChild;if(t.getWrapperElement().nextSibling.classList.contains("editor-preview-active-side")&&tC(e),!a||!a.classList.contains("editor-preview-full")){if((a=document.createElement("div")).className="editor-preview-full",e.options.previewClass)if(Array.isArray(e.options.previewClass))for(var o=0;o<e.options.previewClass.length;o++)a.classList.add(e.options.previewClass[o]);else"string"==typeof e.options.previewClass&&a.classList.add(e.options.previewClass);r.appendChild(a)}a.classList.contains("editor-preview-active")?(a.classList.remove("editor-preview-active"),i&&(i.classList.remove("active"),n.classList.remove("disabled-for-preview"))):(setTimeout((function(){a.classList.add("editor-preview-active")}),1),i&&(i.classList.add("active"),n.classList.add("disabled-for-preview")));var s=e.options.previewRender(e.value(),a);null!==s&&(a.innerHTML=s)}function nC(e,t,r,n){if(!e.getWrapperElement().lastChild.classList.contains("editor-preview-active")){var i,a=r[0],o=r[1],s={},l={};Object.assign(s,e.getCursor("start")),Object.assign(l,e.getCursor("end")),n&&(a=a.replace("#url#",n),o=o.replace("#url#",n)),t?(a=(i=e.getLine(s.line)).slice(0,s.ch),o=i.slice(s.ch),e.replaceRange(a+o,{line:s.line,ch:0})):(i=e.getSelection(),e.replaceSelection(a+i+o),s.ch+=a.length,s!==l&&(l.ch+=a.length)),e.setSelection(s,l),e.focus()}}function iC(e,t,r){if(!e.getWrapperElement().lastChild.classList.contains("editor-preview-active")){for(var n=e.getCursor("start"),i=e.getCursor("end"),a=n.line;a<=i.line;a++)!function(n){var i=e.getLine(n),a=i.search(/[^#]/);i=void 0!==t?a<=0?"bigger"==t?"###### "+i:"# "+i:6==a&&"smaller"==t?i.substr(7):1==a&&"bigger"==t?i.substr(2):"bigger"==t?i.substr(1):"#"+i:a<=0?"#".repeat(r)+" "+i:a==r?i.substr(a+1):"#".repeat(r)+" "+i.substr(a+1),e.replaceRange(i,{line:n,ch:0},{line:n,ch:99999999999999})}(a);e.focus()}}function aC(e,t,r){if(!e.getWrapperElement().lastChild.classList.contains("editor-preview-active")){for(var n=/^(\s*)(\*|-|\+|\d*\.)(\s+)/,i=/^\s*/,a=_A(e),o=e.getCursor("start"),s=e.getCursor("end"),l={quote:/^(\s*)>\s+/,"unordered-list":n,"ordered-list":n},c=function(e,t,a){var o=n.exec(t),s=function(e,t){return{quote:">","unordered-list":r,"ordered-list":"%%i."}[e].replace("%%i",t)}(e,u);return null!==o?(function(e,t){var n=new RegExp({quote:">","unordered-list":"\\"+r,"ordered-list":"\\d+."}[e]);return t&&n.test(t)}(e,o[2])&&(s=""),t=o[1]+s+o[3]+t.replace(i,"").replace(l[e],"$1")):0==a&&(t=s+" "+t),t},u=1,p=o.line;p<=s.line;p++)!function(r){var n=e.getLine(r);a[t]?n=n.replace(l[t],"$1"):("unordered-list"==t&&(n=c("ordered-list",n,!0)),n=c(t,n,!1),u+=1),e.replaceRange(n,{line:r,ch:0},{line:r,ch:99999999999999})}(p);e.focus()}}function oC(e,t,r,n){if(e.codemirror&&!e.isPreviewActive()){var i=e.codemirror,a=_A(i)[t];if(a){var o=i.getCursor("start"),s=i.getCursor("end"),l=i.getLine(o.line),c=l.slice(0,o.ch),u=l.slice(o.ch);"link"==t?c=c.replace(/(.*)[^!]\[/,"$1"):"image"==t&&(c=c.replace(/(.*)!\[$/,"$1")),u=u.replace(/]\(.*?\)/,""),i.replaceRange(c+u,{line:o.line,ch:0},{line:o.line,ch:99999999999999}),o.ch-=r[0].length,o!==s&&(s.ch-=r[0].length),i.setSelection(o,s),i.focus()}else nC(i,a,r,n)}}function sC(e,t,r,n){if(e.codemirror&&!e.isPreviewActive()){n=void 0===n?r:n;var i,a=e.codemirror,o=_A(a),s=r,l=n,c=a.getCursor("start"),u=a.getCursor("end");o[t]?(s=(i=a.getLine(c.line)).slice(0,c.ch),l=i.slice(c.ch),"bold"==t?(s=s.replace(/(\*\*|__)(?![\s\S]*(\*\*|__))/,""),l=l.replace(/(\*\*|__)/,"")):"italic"==t?(s=s.replace(/(\*|_)(?![\s\S]*(\*|_))/,""),l=l.replace(/(\*|_)/,"")):"strikethrough"==t&&(s=s.replace(/(\*\*|~~)(?![\s\S]*(\*\*|~~))/,""),l=l.replace(/(\*\*|~~)/,"")),a.replaceRange(s+l,{line:c.line,ch:0},{line:c.line,ch:99999999999999}),"bold"==t||"strikethrough"==t?(c.ch-=2,c!==u&&(u.ch-=2)):"italic"==t&&(c.ch-=1,c!==u&&(u.ch-=1))):(i=a.getSelection(),"bold"==t?i=(i=i.split("**").join("")).split("__").join(""):"italic"==t?i=(i=i.split("*").join("")).split("_").join(""):"strikethrough"==t&&(i=i.split("~~").join("")),a.replaceSelection(s+i+l),c.ch+=r.length,u.ch=c.ch+i.length),a.setSelection(c,u),a.focus()}}function lC(e,t){if(Math.abs(e)<1024)return""+e+t[0];var r=0;do{e/=1024,++r}while(Math.abs(e)>=1024&&r<t.length);return""+e.toFixed(1)+t[r]}function cC(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]instanceof Array?e[r]=t[r].concat(e[r]instanceof Array?e[r]:[]):null!==t[r]&&"object"==typeof t[r]&&t[r].constructor===Object?e[r]=cC(e[r]||{},t[r]):e[r]=t[r]);return e}function uC(e){for(var t=1;t<arguments.length;t++)e=cC(e,arguments[t]);return e}function pC(e){var t=e.match(/[a-zA-Z0-9_\u00A0-\u02AF\u0392-\u03c9\u0410-\u04F9]+|[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g),r=0;if(null===t)return r;for(var n=0;n<t.length;n++)t[n].charCodeAt(0)>=19968?r+=t[n].length:r+=1;return r}var dC={bold:"fa fa-bold",italic:"fa fa-italic",strikethrough:"fa fa-strikethrough",heading:"fa fa-header fa-heading","heading-smaller":"fa fa-header fa-heading header-smaller","heading-bigger":"fa fa-header fa-heading header-bigger","heading-1":"fa fa-header fa-heading header-1","heading-2":"fa fa-header fa-heading header-2","heading-3":"fa fa-header fa-heading header-3",code:"fa fa-code",quote:"fa fa-quote-left","ordered-list":"fa fa-list-ol","unordered-list":"fa fa-list-ul","clean-block":"fa fa-eraser",link:"fa fa-link",image:"fa fa-image","upload-image":"fa fa-image",table:"fa fa-table","horizontal-rule":"fa fa-minus",preview:"fa fa-eye","side-by-side":"fa fa-columns",fullscreen:"fa fa-arrows-alt",guide:"fa fa-question-circle",undo:"fa fa-undo",redo:"fa fa-repeat fa-redo"},hC={bold:{name:"bold",action:$A,className:dC.bold,title:"Bold",default:!0},italic:{name:"italic",action:LA,className:dC.italic,title:"Italic",default:!0},strikethrough:{name:"strikethrough",action:EA,className:dC.strikethrough,title:"Strikethrough"},heading:{name:"heading",action:DA,className:dC.heading,title:"Heading",default:!0},"heading-smaller":{name:"heading-smaller",action:DA,className:dC["heading-smaller"],title:"Smaller Heading"},"heading-bigger":{name:"heading-bigger",action:HA,className:dC["heading-bigger"],title:"Bigger Heading"},"heading-1":{name:"heading-1",action:OA,className:dC["heading-1"],title:"Big Heading"},"heading-2":{name:"heading-2",action:PA,className:dC["heading-2"],title:"Medium Heading"},"heading-3":{name:"heading-3",action:RA,className:dC["heading-3"],title:"Small Heading"},"separator-1":{name:"separator-1"},code:{name:"code",action:IA,className:dC.code,title:"Code"},quote:{name:"quote",action:BA,className:dC.quote,title:"Quote",default:!0},"unordered-list":{name:"unordered-list",action:jA,className:dC["unordered-list"],title:"Generic List",default:!0},"ordered-list":{name:"ordered-list",action:qA,className:dC["ordered-list"],title:"Numbered List",default:!0},"clean-block":{name:"clean-block",action:UA,className:dC["clean-block"],title:"Clean block"},"separator-2":{name:"separator-2"},link:{name:"link",action:WA,className:dC.link,title:"Create Link",default:!0},image:{name:"image",action:XA,className:dC.image,title:"Insert Image",default:!0},"upload-image":{name:"upload-image",action:YA,className:dC["upload-image"],title:"Import an image"},table:{name:"table",action:KA,className:dC.table,title:"Insert Table"},"horizontal-rule":{name:"horizontal-rule",action:JA,className:dC["horizontal-rule"],title:"Insert Horizontal Line"},"separator-3":{name:"separator-3"},preview:{name:"preview",action:rC,className:dC.preview,noDisable:!0,title:"Toggle Preview",default:!0},"side-by-side":{name:"side-by-side",action:tC,className:dC["side-by-side"],noDisable:!0,noMobile:!0,title:"Toggle Side by Side",default:!0},fullscreen:{name:"fullscreen",action:TA,className:dC.fullscreen,noDisable:!0,noMobile:!0,title:"Toggle Fullscreen",default:!0},"separator-4":{name:"separator-4"},guide:{name:"guide",action:"https://www.markdownguide.org/basic-syntax/",className:dC.guide,noDisable:!0,title:"Markdown Guide",default:!0},"separator-5":{name:"separator-5"},undo:{name:"undo",action:QA,className:dC.undo,noDisable:!0,title:"Undo"},redo:{name:"redo",action:eC,className:dC.redo,noDisable:!0,title:"Redo"}},mC={link:["[","](#url#)"],image:[""],uploadedImage:["",""],table:["","\n\n| Column 1 | Column 2 | Column 3 |\n| -------- | -------- | -------- |\n| Text | Text | Text |\n\n"],horizontalRule:["","\n\n-----\n\n"]},gC={link:"URL for the link:",image:"URL of the image:"},fC={locale:"en-US",format:{hour:"2-digit",minute:"2-digit"}},vC={bold:"**",code:"```",italic:"*"},bC={sbInit:"Attach files by drag and dropping or pasting from clipboard.",sbOnDragEnter:"Drop image to upload it.",sbOnDrop:"Uploading image #images_names#...",sbProgress:"Uploading #file_name#: #progress#%",sbOnUploaded:"Uploaded #image_name#",sizeUnits:" B, KB, MB"},yC={noFileGiven:"You must select a file.",typeNotAllowed:"This image type is not allowed.",fileTooLarge:"Image #image_name# is too big (#image_size#).\nMaximum file size is #image_max_size#.",importError:"Something went wrong when uploading the image #image_name#."};function xC(e){(e=e||{}).parent=this;var t=!0;if(!1===e.autoDownloadFontAwesome&&(t=!1),!0!==e.autoDownloadFontAwesome)for(var r=document.styleSheets,n=0;n<r.length;n++)r[n].href&&r[n].href.indexOf("//maxcdn.bootstrapcdn.com/font-awesome/")>-1&&(t=!1);if(t){var i=document.createElement("link");i.rel="stylesheet",i.href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css",document.getElementsByTagName("head")[0].appendChild(i)}if(e.element)this.element=e.element;else if(null===e.element)return void console.log("EasyMDE: Error. No element was found.");if(void 0===e.toolbar)for(var a in e.toolbar=[],hC)Object.prototype.hasOwnProperty.call(hC,a)&&(-1!=a.indexOf("separator-")&&e.toolbar.push("|"),(!0===hC[a].default||e.showIcons&&e.showIcons.constructor===Array&&-1!=e.showIcons.indexOf(a))&&e.toolbar.push(a));if(Object.prototype.hasOwnProperty.call(e,"previewClass")||(e.previewClass="editor-preview"),Object.prototype.hasOwnProperty.call(e,"status")||(e.status=["autosave","lines","words","cursor"],e.uploadImage&&e.status.unshift("upload-image")),e.previewRender||(e.previewRender=function(e){return this.parent.markdown(e)}),e.parsingConfig=uC({highlightFormatting:!0},e.parsingConfig||{}),e.insertTexts=uC({},mC,e.insertTexts||{}),e.promptTexts=uC({},gC,e.promptTexts||{}),e.blockStyles=uC({},vC,e.blockStyles||{}),null!=e.autosave&&(e.autosave.timeFormat=uC({},fC,e.autosave.timeFormat||{})),e.iconClassMap=uC({},dC,e.iconClassMap||{}),e.shortcuts=uC({},xA,e.shortcuts||{}),e.maxHeight=e.maxHeight||void 0,e.direction=e.direction||"ltr",void 0!==e.maxHeight?e.minHeight=e.maxHeight:e.minHeight=e.minHeight||"300px",e.errorCallback=e.errorCallback||function(e){alert(e)},e.uploadImage=e.uploadImage||!1,e.imageMaxSize=e.imageMaxSize||2097152,e.imageAccept=e.imageAccept||"image/png, image/jpeg, image/gif, image/avif",e.imageTexts=uC({},bC,e.imageTexts||{}),e.errorMessages=uC({},yC,e.errorMessages||{}),e.imagePathAbsolute=e.imagePathAbsolute||!1,e.imageCSRFName=e.imageCSRFName||"csrfmiddlewaretoken",e.imageCSRFHeader=e.imageCSRFHeader||!1,null!=e.autosave&&null!=e.autosave.unique_id&&""!=e.autosave.unique_id&&(e.autosave.uniqueId=e.autosave.unique_id),e.overlayMode&&void 0===e.overlayMode.combine&&(e.overlayMode.combine=!0),this.options=e,this.render(),!e.initialValue||this.options.autosave&&!0===this.options.autosave.foundSavedValue||this.value(e.initialValue),e.uploadImage){var o=this;this.codemirror.on("dragenter",(function(e,t){o.updateStatusBar("upload-image",o.options.imageTexts.sbOnDragEnter),t.stopPropagation(),t.preventDefault()})),this.codemirror.on("dragend",(function(e,t){o.updateStatusBar("upload-image",o.options.imageTexts.sbInit),t.stopPropagation(),t.preventDefault()})),this.codemirror.on("dragleave",(function(e,t){o.updateStatusBar("upload-image",o.options.imageTexts.sbInit),t.stopPropagation(),t.preventDefault()})),this.codemirror.on("dragover",(function(e,t){o.updateStatusBar("upload-image",o.options.imageTexts.sbOnDragEnter),t.stopPropagation(),t.preventDefault()})),this.codemirror.on("drop",(function(t,r){r.stopPropagation(),r.preventDefault(),e.imageUploadFunction?o.uploadImagesUsingCustomFunction(e.imageUploadFunction,r.dataTransfer.files):o.uploadImages(r.dataTransfer.files)})),this.codemirror.on("paste",(function(t,r){e.imageUploadFunction?o.uploadImagesUsingCustomFunction(e.imageUploadFunction,r.clipboardData.files):o.uploadImages(r.clipboardData.files)}))}}function wC(){if("object"!=typeof localStorage)return!1;try{localStorage.setItem("smde_localStorage",1),localStorage.removeItem("smde_localStorage")}catch(e){return!1}return!0}xC.prototype.uploadImages=function(e,t,r){if(0!==e.length){for(var n=[],i=0;i<e.length;i++)n.push(e[i].name),this.uploadImage(e[i],t,r);this.updateStatusBar("upload-image",this.options.imageTexts.sbOnDrop.replace("#images_names#",n.join(", ")))}},xC.prototype.uploadImagesUsingCustomFunction=function(e,t){if(0!==t.length){for(var r=[],n=0;n<t.length;n++)r.push(t[n].name),this.uploadImageUsingCustomFunction(e,t[n]);this.updateStatusBar("upload-image",this.options.imageTexts.sbOnDrop.replace("#images_names#",r.join(", ")))}},xC.prototype.updateStatusBar=function(e,t){if(this.gui.statusbar){var r=this.gui.statusbar.getElementsByClassName(e);1===r.length?this.gui.statusbar.getElementsByClassName(e)[0].textContent=t:0===r.length?console.log("EasyMDE: status bar item "+e+" was not found."):console.log("EasyMDE: Several status bar items named "+e+" was found.")}},xC.prototype.markdown=function(e){if(fA){var t;if(t=this.options&&this.options.renderingConfig&&this.options.renderingConfig.markedOptions?this.options.renderingConfig.markedOptions:{},this.options&&this.options.renderingConfig&&!1===this.options.renderingConfig.singleLineBreaks?t.breaks=!1:t.breaks=!0,this.options&&this.options.renderingConfig&&!0===this.options.renderingConfig.codeSyntaxHighlighting){var r=this.options.renderingConfig.hljs||window.hljs;r&&(t.highlight=function(e,t){return t&&r.getLanguage(t)?r.highlight(t,e).value:r.highlightAuto(e).value})}fA.setOptions(t);var n=fA.parse(e);return this.options.renderingConfig&&"function"==typeof this.options.renderingConfig.sanitizerFunction&&(n=this.options.renderingConfig.sanitizerFunction.call(this,n)),n=function(e){for(var t=(new DOMParser).parseFromString(e,"text/html"),r=t.getElementsByTagName("li"),n=0;n<r.length;n++)for(var i=r[n],a=0;a<i.children.length;a++){var o=i.children[a];o instanceof HTMLInputElement&&"checkbox"===o.type&&(i.style.marginLeft="-1.5em",i.style.listStyleType="none")}return t.documentElement.innerHTML}(n=function(e){for(var t;null!==(t=bA.exec(e));){var r=t[0];if(-1===r.indexOf("target=")){var n=r.replace(/>$/,' target="_blank">');e=e.replace(r,n)}}return e}(n)),n}},xC.prototype.render=function(e){if(e||(e=this.element||document.getElementsByTagName("textarea")[0]),!this._rendered||this._rendered!==e){this.element=e;var t,r,n=this.options,i=this,a={};for(var o in n.shortcuts)null!==n.shortcuts[o]&&null!==yA[o]&&function(e){a[kA(n.shortcuts[e])]=function(){var t=yA[e];"function"==typeof t?t(i):"string"==typeof t&&window.open(t,"_blank")}}(o);if(a.Enter="newlineAndIndentContinueMarkdownList",a.Tab="tabAndIndentMarkdownList",a["Shift-Tab"]="shiftTabAndUnindentMarkdownList",a.Esc=function(e){e.getOption("fullScreen")&&TA(i)},this.documentOnKeyDown=function(e){27==(e=e||window.event).keyCode&&i.codemirror.getOption("fullScreen")&&TA(i)},document.addEventListener("keydown",this.documentOnKeyDown,!1),n.overlayMode?(uA.defineMode("overlay-mode",(function(e){return uA.overlayMode(uA.getMode(e,!1!==n.spellChecker?"spell-checker":"gfm"),n.overlayMode.mode,n.overlayMode.combine)})),t="overlay-mode",(r=n.parsingConfig).gitHubSpice=!1):((t=n.parsingConfig).name="gfm",t.gitHubSpice=!1),!1!==n.spellChecker&&(t="spell-checker",(r=n.parsingConfig).name="gfm",r.gitHubSpice=!1,"function"==typeof n.spellChecker?n.spellChecker({codeMirrorInstance:uA}):mA({codeMirrorInstance:uA})),this.codemirror=uA.fromTextArea(e,{mode:t,backdrop:r,theme:null!=n.theme?n.theme:"easymde",tabSize:null!=n.tabSize?n.tabSize:2,indentUnit:null!=n.tabSize?n.tabSize:2,indentWithTabs:!1!==n.indentWithTabs,lineNumbers:!0===n.lineNumbers,autofocus:!0===n.autofocus,extraKeys:a,direction:n.direction,lineWrapping:!1!==n.lineWrapping,allowDropFileTypes:["text/plain"],placeholder:n.placeholder||e.getAttribute("placeholder")||"",styleSelectedText:null!=n.styleSelectedText?n.styleSelectedText:!zA(),scrollbarStyle:null!=n.scrollbarStyle?n.scrollbarStyle:"native",configureMouse:function(e,t,r){return{addNew:!1}},inputStyle:null!=n.inputStyle?n.inputStyle:zA()?"contenteditable":"textarea",spellcheck:null==n.nativeSpellcheck||n.nativeSpellcheck,autoRefresh:null!=n.autoRefresh&&n.autoRefresh}),this.codemirror.getScrollerElement().style.minHeight=n.minHeight,void 0!==n.maxHeight&&(this.codemirror.getScrollerElement().style.height=n.maxHeight),!0===n.forceSync){var s=this.codemirror;s.on("change",(function(){s.save()}))}this.gui={};var l=document.createElement("div");l.classList.add("EasyMDEContainer"),l.setAttribute("role","application");var c=this.codemirror.getWrapperElement();c.parentNode.insertBefore(l,c),l.appendChild(c),!1!==n.toolbar&&(this.gui.toolbar=this.createToolbar()),!1!==n.status&&(this.gui.statusbar=this.createStatusbar()),null!=n.autosave&&!0===n.autosave.enabled&&(this.autosave(),this.codemirror.on("change",(function(){clearTimeout(i._autosave_timeout),i._autosave_timeout=setTimeout((function(){i.autosave()}),i.options.autosave.submit_delay||i.options.autosave.delay||1e3)})));var u=this;this.codemirror.on("update",(function(){n.previewImagesInEditor&&l.querySelectorAll(".cm-image-marker").forEach((function(e){var t=e.parentElement;if(t.innerText.match(/^!\[.*?\]\(.*\)/g)&&!t.hasAttribute("data-img-src")){var r=t.innerText.match("\\((.*)\\)");if(window.EMDEimagesCache||(window.EMDEimagesCache={}),r&&r.length>=2){var i=r[1];if(n.imagesPreviewHandler){var a=n.imagesPreviewHandler(r[1]);"string"==typeof a&&(i=a)}if(window.EMDEimagesCache[i])d(t,window.EMDEimagesCache[i]);else{var o=document.createElement("img");o.onload=function(){window.EMDEimagesCache[i]={naturalWidth:o.naturalWidth,naturalHeight:o.naturalHeight,url:i},d(t,window.EMDEimagesCache[i])},o.src=i}}}}))})),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element,(!0===n.autofocus||e.autofocus)&&this.codemirror.focus();var p=this.codemirror;setTimeout(function(){p.refresh()}.bind(p),0)}function d(e,t){var r,n;e.setAttribute("data-img-src",t.url),e.setAttribute("style","--bg-image:url("+t.url+");--width:"+t.naturalWidth+"px;--height:"+(r=t.naturalWidth,n=t.naturalHeight,r<window.getComputedStyle(document.querySelector(".CodeMirror-sizer")).width.replace("px","")?n+"px":n/r*100+"%")),u.codemirror.setSize()}},xC.prototype.cleanup=function(){document.removeEventListener("keydown",this.documentOnKeyDown)},xC.prototype.autosave=function(){if(wC()){var e=this;if(null==this.options.autosave.uniqueId||""==this.options.autosave.uniqueId)return void console.log("EasyMDE: You must set a uniqueId to use the autosave feature");!0!==this.options.autosave.binded&&(null!=e.element.form&&null!=e.element.form&&e.element.form.addEventListener("submit",(function(){clearTimeout(e.autosaveTimeoutId),e.autosaveTimeoutId=void 0,localStorage.removeItem("smde_"+e.options.autosave.uniqueId)})),this.options.autosave.binded=!0),!0!==this.options.autosave.loaded&&("string"==typeof localStorage.getItem("smde_"+this.options.autosave.uniqueId)&&""!=localStorage.getItem("smde_"+this.options.autosave.uniqueId)&&(this.codemirror.setValue(localStorage.getItem("smde_"+this.options.autosave.uniqueId)),this.options.autosave.foundSavedValue=!0),this.options.autosave.loaded=!0);var t=e.value();""!==t?localStorage.setItem("smde_"+this.options.autosave.uniqueId,t):localStorage.removeItem("smde_"+this.options.autosave.uniqueId);var r=document.getElementById("autosaved");if(null!=r&&null!=r&&""!=r){var n=new Date,i=new Intl.DateTimeFormat([this.options.autosave.timeFormat.locale,"en-US"],this.options.autosave.timeFormat.format).format(n),a=null==this.options.autosave.text?"Autosaved: ":this.options.autosave.text;r.innerHTML=a+i}}else console.log("EasyMDE: localStorage not available, cannot autosave")},xC.prototype.clearAutosavedValue=function(){if(wC()){if(null==this.options.autosave||null==this.options.autosave.uniqueId||""==this.options.autosave.uniqueId)return void console.log("EasyMDE: You must set a uniqueId to clear the autosave value");localStorage.removeItem("smde_"+this.options.autosave.uniqueId)}else console.log("EasyMDE: localStorage not available, cannot autosave")},xC.prototype.openBrowseFileWindow=function(e,t){var r=this,n=this.gui.toolbar.getElementsByClassName("imageInput")[0];n.click(),n.addEventListener("change",(function i(a){r.options.imageUploadFunction?r.uploadImagesUsingCustomFunction(r.options.imageUploadFunction,a.target.files):r.uploadImages(a.target.files,e,t),n.removeEventListener("change",i)}))},xC.prototype.uploadImage=function(e,t,r){var n=this;function i(e){n.updateStatusBar("upload-image",e),setTimeout((function(){n.updateStatusBar("upload-image",n.options.imageTexts.sbInit)}),1e4),r&&"function"==typeof r&&r(e),n.options.errorCallback(e)}function a(t){var r=n.options.imageTexts.sizeUnits.split(",");return t.replace("#image_name#",e.name).replace("#image_size#",lC(e.size,r)).replace("#image_max_size#",lC(n.options.imageMaxSize,r))}if(t=t||function(e){ZA(n,e)},e.size>this.options.imageMaxSize)i(a(this.options.errorMessages.fileTooLarge));else{var o=new FormData;o.append("image",e),n.options.imageCSRFToken&&!n.options.imageCSRFHeader&&o.append(n.options.imageCSRFName,n.options.imageCSRFToken);var s=new XMLHttpRequest;s.upload.onprogress=function(t){if(t.lengthComputable){var r=""+Math.round(100*t.loaded/t.total);n.updateStatusBar("upload-image",n.options.imageTexts.sbProgress.replace("#file_name#",e.name).replace("#progress#",r))}},s.open("POST",this.options.imageUploadEndpoint),n.options.imageCSRFToken&&n.options.imageCSRFHeader&&s.setRequestHeader(n.options.imageCSRFName,n.options.imageCSRFToken),s.onload=function(){try{var e=JSON.parse(this.responseText)}catch(e){return console.error("EasyMDE: The server did not return a valid json."),void i(a(n.options.errorMessages.importError))}200===this.status&&e&&!e.error&&e.data&&e.data.filePath?t((n.options.imagePathAbsolute?"":window.location.origin+"/")+e.data.filePath):e.error&&e.error in n.options.errorMessages?i(a(n.options.errorMessages[e.error])):e.error?i(a(e.error)):(console.error("EasyMDE: Received an unexpected response after uploading the image."+this.status+" ("+this.statusText+")"),i(a(n.options.errorMessages.importError)))},s.onerror=function(e){console.error("EasyMDE: An unexpected error occurred when trying to upload the image."+e.target.status+" ("+e.target.statusText+")"),i(n.options.errorMessages.importError)},s.send(o)}},xC.prototype.uploadImageUsingCustomFunction=function(e,t){var r=this;e.apply(this,[t,function(e){ZA(r,e)},function(e){var n=function(e){var n=r.options.imageTexts.sizeUnits.split(",");return e.replace("#image_name#",t.name).replace("#image_size#",lC(t.size,n)).replace("#image_max_size#",lC(r.options.imageMaxSize,n))}(e);r.updateStatusBar("upload-image",n),setTimeout((function(){r.updateStatusBar("upload-image",r.options.imageTexts.sbInit)}),1e4),r.options.errorCallback(n)}])},xC.prototype.setPreviewMaxHeight=function(){var e=this.codemirror.getWrapperElement(),t=e.nextSibling,r=parseInt(window.getComputedStyle(e).paddingTop),n=parseInt(window.getComputedStyle(e).borderTopWidth),i=(parseInt(this.options.maxHeight)+2*r+2*n).toString()+"px";t.style.height=i},xC.prototype.createSideBySide=function(){var e=this.codemirror,t=e.getWrapperElement(),r=t.nextSibling;if(!r||!r.classList.contains("editor-preview-side")){if((r=document.createElement("div")).className="editor-preview-side",this.options.previewClass)if(Array.isArray(this.options.previewClass))for(var n=0;n<this.options.previewClass.length;n++)r.classList.add(this.options.previewClass[n]);else"string"==typeof this.options.previewClass&&r.classList.add(this.options.previewClass);t.parentNode.insertBefore(r,t.nextSibling)}if(void 0!==this.options.maxHeight&&this.setPreviewMaxHeight(),!1===this.options.syncSideBySidePreviewScroll)return r;var i=!1,a=!1;return e.on("scroll",(function(e){if(i)i=!1;else{a=!0;var t=e.getScrollInfo().height-e.getScrollInfo().clientHeight,n=parseFloat(e.getScrollInfo().top)/t,o=(r.scrollHeight-r.clientHeight)*n;r.scrollTop=o}})),r.onscroll=function(){if(a)a=!1;else{i=!0;var t=r.scrollHeight-r.clientHeight,n=parseFloat(r.scrollTop)/t,o=(e.getScrollInfo().height-e.getScrollInfo().clientHeight)*n;e.scrollTo(0,o)}},r},xC.prototype.createToolbar=function(e){if((e=e||this.options.toolbar)&&0!==e.length){var t;for(t=0;t<e.length;t++)null!=hC[e[t]]&&(e[t]=hC[e[t]]);var r=document.createElement("div");r.className="editor-toolbar",r.setAttribute("role","toolbar");var n=this,i={};for(n.toolbar=e,t=0;t<e.length;t++)if(("guide"!=e[t].name||!1!==n.options.toolbarGuideIcon)&&!(n.options.hideIcons&&-1!=n.options.hideIcons.indexOf(e[t].name)||("fullscreen"==e[t].name||"side-by-side"==e[t].name)&&zA())){if("|"===e[t]){for(var a=!1,o=t+1;o<e.length;o++)"|"===e[o]||n.options.hideIcons&&-1!=n.options.hideIcons.indexOf(e[o].name)||(a=!0);if(!a)continue}!function(e){var t;if(t="|"===e?SA():e.children?AA(e,n.options.toolbarTips,n.options.shortcuts,n):CA(e,!0,n.options.toolbarTips,n.options.shortcuts,"button",n),i[e.name||e]=t,r.appendChild(t),"upload-image"===e.name){var a=document.createElement("input");a.className="imageInput",a.type="file",a.multiple=!0,a.name="image",a.accept=n.options.imageAccept,a.style.display="none",a.style.opacity=0,r.appendChild(a)}}(e[t])}n.toolbar_div=r,n.toolbarElements=i;var s=this.codemirror;s.on("cursorActivity",(function(){var e=_A(s);for(var t in i)!function(t){var r=i[t];e[t]?r.classList.add("active"):"fullscreen"!=t&&"side-by-side"!=t&&r.classList.remove("active")}(t)}));var l=s.getWrapperElement();return l.parentNode.insertBefore(r,l),r}},xC.prototype.createStatusbar=function(e){e=e||this.options.status;var t=this.options,r=this.codemirror;if(e&&0!==e.length){var n,i,a,o,s=[];for(n=0;n<e.length;n++)if(i=void 0,a=void 0,o=void 0,"object"==typeof e[n])s.push({className:e[n].className,defaultValue:e[n].defaultValue,onUpdate:e[n].onUpdate,onActivity:e[n].onActivity});else{var l=e[n];"words"===l?(o=function(e){e.innerHTML=pC(r.getValue())},i=function(e){e.innerHTML=pC(r.getValue())}):"lines"===l?(o=function(e){e.innerHTML=r.lineCount()},i=function(e){e.innerHTML=r.lineCount()}):"cursor"===l?(o=function(e){e.innerHTML="1:1"},a=function(e){var t=r.getCursor(),n=t.line+1,i=t.ch+1;e.innerHTML=n+":"+i}):"autosave"===l?o=function(e){null!=t.autosave&&!0===t.autosave.enabled&&e.setAttribute("id","autosaved")}:"upload-image"===l&&(o=function(e){e.innerHTML=t.imageTexts.sbInit}),s.push({className:l,defaultValue:o,onUpdate:i,onActivity:a})}var c=document.createElement("div");for(c.className="editor-statusbar",n=0;n<s.length;n++){var u=s[n],p=document.createElement("span");p.className=u.className,"function"==typeof u.defaultValue&&u.defaultValue(p),"function"==typeof u.onUpdate&&this.codemirror.on("update",function(e,t){return function(){t.onUpdate(e)}}(p,u)),"function"==typeof u.onActivity&&this.codemirror.on("cursorActivity",function(e,t){return function(){t.onActivity(e)}}(p,u)),c.appendChild(p)}var d=this.codemirror.getWrapperElement();return d.parentNode.insertBefore(c,d.nextSibling),c}},xC.prototype.value=function(e){var t=this.codemirror;if(void 0===e)return t.getValue();if(t.getDoc().setValue(e),this.isPreviewActive()){var r=t.getWrapperElement().lastChild,n=this.options.previewRender(e,r);null!==n&&(r.innerHTML=n)}return this},xC.toggleBold=$A,xC.toggleItalic=LA,xC.toggleStrikethrough=EA,xC.toggleBlockquote=BA,xC.toggleHeadingSmaller=DA,xC.toggleHeadingBigger=HA,xC.toggleHeading1=OA,xC.toggleHeading2=PA,xC.toggleHeading3=RA,xC.toggleHeading4=VA,xC.toggleHeading5=NA,xC.toggleHeading6=FA,xC.toggleCodeBlock=IA,xC.toggleUnorderedList=jA,xC.toggleOrderedList=qA,xC.cleanBlock=UA,xC.drawLink=WA,xC.drawImage=XA,xC.drawUploadedImage=YA,xC.drawTable=KA,xC.drawHorizontalRule=JA,xC.undo=QA,xC.redo=eC,xC.togglePreview=rC,xC.toggleSideBySide=tC,xC.toggleFullScreen=TA,xC.prototype.toggleBold=function(){$A(this)},xC.prototype.toggleItalic=function(){LA(this)},xC.prototype.toggleStrikethrough=function(){EA(this)},xC.prototype.toggleBlockquote=function(){BA(this)},xC.prototype.toggleHeadingSmaller=function(){DA(this)},xC.prototype.toggleHeadingBigger=function(){HA(this)},xC.prototype.toggleHeading1=function(){OA(this)},xC.prototype.toggleHeading2=function(){PA(this)},xC.prototype.toggleHeading3=function(){RA(this)},xC.prototype.toggleHeading4=function(){VA(this)},xC.prototype.toggleHeading5=function(){NA(this)},xC.prototype.toggleHeading6=function(){FA(this)},xC.prototype.toggleCodeBlock=function(){IA(this)},xC.prototype.toggleUnorderedList=function(){jA(this)},xC.prototype.toggleOrderedList=function(){qA(this)},xC.prototype.cleanBlock=function(){UA(this)},xC.prototype.drawLink=function(){WA(this)},xC.prototype.drawImage=function(){XA(this)},xC.prototype.drawUploadedImage=function(){YA(this)},xC.prototype.drawTable=function(){KA(this)},xC.prototype.drawHorizontalRule=function(){JA(this)},xC.prototype.undo=function(){QA(this)},xC.prototype.redo=function(){eC(this)},xC.prototype.togglePreview=function(){rC(this)},xC.prototype.toggleSideBySide=function(){tC(this)},xC.prototype.toggleFullScreen=function(){TA(this)},xC.prototype.isPreviewActive=function(){return this.codemirror.getWrapperElement().lastChild.classList.contains("editor-preview-active")},xC.prototype.isSideBySideActive=function(){return this.codemirror.getWrapperElement().nextSibling.classList.contains("editor-preview-active-side")},xC.prototype.isFullscreenActive=function(){return this.codemirror.getOption("fullScreen")},xC.prototype.getState=function(){return _A(this.codemirror)},xC.prototype.toTextArea=function(){var e=this.codemirror,t=e.getWrapperElement(),r=t.parentNode;r&&(this.gui.toolbar&&r.removeChild(this.gui.toolbar),this.gui.statusbar&&r.removeChild(this.gui.statusbar),this.gui.sideBySide&&r.removeChild(this.gui.sideBySide)),r.parentNode.insertBefore(t,r),r.remove(),e.toTextArea(),this.autosaveTimeoutId&&(clearTimeout(this.autosaveTimeoutId),this.autosaveTimeoutId=void 0,this.clearAutosavedValue())};var zC=xC;Gt('/**\n * easymde v2.18.0\n * Copyright Jeroen Akkerman\n * @link https://github.com/ionaru/easy-markdown-editor\n * @license MIT\n */\n.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:0 0}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:0 0}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:red}.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:0;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none;outline:0}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:0 0!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:0 0;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:0}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:\'\'}span.CodeMirror-selectedtext{background:0 0}.EasyMDEContainer{display:block}.CodeMirror-rtl pre{direction:rtl}.EasyMDEContainer.sided--no-fullscreen{display:flex;flex-direction:row;flex-wrap:wrap}.EasyMDEContainer .CodeMirror{box-sizing:border-box;height:auto;border:1px solid #ced4da;border-bottom-left-radius:4px;border-bottom-right-radius:4px;padding:10px;font:inherit;z-index:0;word-wrap:break-word}.EasyMDEContainer .CodeMirror-scroll{cursor:text}.EasyMDEContainer .CodeMirror-fullscreen{background:#fff;position:fixed!important;top:50px;left:0;right:0;bottom:0;height:auto;z-index:8;border-right:none!important;border-bottom-right-radius:0!important}.EasyMDEContainer .CodeMirror-sided{width:50%!important}.EasyMDEContainer.sided--no-fullscreen .CodeMirror-sided{border-right:none!important;border-bottom-right-radius:0;position:relative;flex:1 1 auto}.EasyMDEContainer .CodeMirror-placeholder{opacity:.5}.EasyMDEContainer .CodeMirror-focused .CodeMirror-selected{background:#d9d9d9}.editor-toolbar{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;padding:9px 10px;border-top:1px solid #ced4da;border-left:1px solid #ced4da;border-right:1px solid #ced4da;border-top-left-radius:4px;border-top-right-radius:4px}.editor-toolbar.fullscreen{width:100%;height:50px;padding-top:10px;padding-bottom:10px;box-sizing:border-box;background:#fff;border:0;position:fixed;top:0;left:0;opacity:1;z-index:9}.editor-toolbar.fullscreen::before{width:20px;height:50px;background:-moz-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0,#fff),color-stop(100%,rgba(255,255,255,0)));background:-webkit-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:-o-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:-ms-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:linear-gradient(to right,#fff 0,rgba(255,255,255,0) 100%);position:fixed;top:0;left:0;margin:0;padding:0}.editor-toolbar.fullscreen::after{width:20px;height:50px;background:-moz-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0,rgba(255,255,255,0)),color-stop(100%,#fff));background:-webkit-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:-o-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:-ms-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:linear-gradient(to right,rgba(255,255,255,0) 0,#fff 100%);position:fixed;top:0;right:0;margin:0;padding:0}.EasyMDEContainer.sided--no-fullscreen .editor-toolbar{width:100%}.editor-toolbar .easymde-dropdown,.editor-toolbar button{background:0 0;display:inline-block;text-align:center;text-decoration:none!important;height:30px;margin:0;padding:0;border:1px solid transparent;border-radius:3px;cursor:pointer}.editor-toolbar button{font-weight:700;min-width:30px;padding:0 6px;white-space:nowrap}.editor-toolbar button.active,.editor-toolbar button:hover{background:#fcfcfc;border-color:#95a5a6}.editor-toolbar i.separator{display:inline-block;width:0;border-left:1px solid #d9d9d9;border-right:1px solid #fff;color:transparent;text-indent:-10px;margin:0 6px}.editor-toolbar button:after{font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:65%;vertical-align:text-bottom;position:relative;top:2px}.editor-toolbar button.heading-1:after{content:"1"}.editor-toolbar button.heading-2:after{content:"2"}.editor-toolbar button.heading-3:after{content:"3"}.editor-toolbar button.heading-bigger:after{content:"▲"}.editor-toolbar button.heading-smaller:after{content:"▼"}.editor-toolbar.disabled-for-preview button:not(.no-disable){opacity:.6;pointer-events:none}@media only screen and (max-width:700px){.editor-toolbar i.no-mobile{display:none}}.editor-statusbar{padding:8px 10px;font-size:12px;color:#959694;text-align:right}.EasyMDEContainer.sided--no-fullscreen .editor-statusbar{width:100%}.editor-statusbar span{display:inline-block;min-width:4em;margin-left:1em}.editor-statusbar .lines:before{content:\'lines: \'}.editor-statusbar .words:before{content:\'words: \'}.editor-statusbar .characters:before{content:\'characters: \'}.editor-preview-full{position:absolute;width:100%;height:100%;top:0;left:0;z-index:7;overflow:auto;display:none;box-sizing:border-box}.editor-preview-side{position:fixed;bottom:0;width:50%;top:50px;right:0;z-index:9;overflow:auto;display:none;box-sizing:border-box;border:1px solid #ddd;word-wrap:break-word}.editor-preview-active-side{display:block}.EasyMDEContainer.sided--no-fullscreen .editor-preview-active-side{flex:1 1 auto;height:auto;position:static}.editor-preview-active{display:block}.editor-preview{padding:10px;background:#fafafa}.editor-preview>p{margin-top:0}.editor-preview pre{background:#eee;margin-bottom:10px}.editor-preview table td,.editor-preview table th{border:1px solid #ddd;padding:5px}.cm-s-easymde .cm-tag{color:#63a35c}.cm-s-easymde .cm-attribute{color:#795da3}.cm-s-easymde .cm-string{color:#183691}.cm-s-easymde .cm-header-1{font-size:calc(1.375rem + 1.5vw)}.cm-s-easymde .cm-header-2{font-size:calc(1.325rem + .9vw)}.cm-s-easymde .cm-header-3{font-size:calc(1.3rem + .6vw)}.cm-s-easymde .cm-header-4{font-size:calc(1.275rem + .3vw)}.cm-s-easymde .cm-header-5{font-size:1.25rem}.cm-s-easymde .cm-header-6{font-size:1rem}.cm-s-easymde .cm-header-1,.cm-s-easymde .cm-header-2,.cm-s-easymde .cm-header-3,.cm-s-easymde .cm-header-4,.cm-s-easymde .cm-header-5,.cm-s-easymde .cm-header-6{margin-bottom:.5rem;line-height:1.2}.cm-s-easymde .cm-comment{background:rgba(0,0,0,.05);border-radius:2px}.cm-s-easymde .cm-link{color:#7f8c8d}.cm-s-easymde .cm-url{color:#aab2b3}.cm-s-easymde .cm-quote{color:#7f8c8d;font-style:italic}.editor-toolbar .easymde-dropdown{position:relative;background:linear-gradient(to bottom right,#fff 0,#fff 84%,#333 50%,#333 100%);border-radius:0;border:1px solid #fff}.editor-toolbar .easymde-dropdown:hover{background:linear-gradient(to bottom right,#fff 0,#fff 84%,#333 50%,#333 100%)}.easymde-dropdown-content{display:block;visibility:hidden;position:absolute;background-color:#f9f9f9;box-shadow:0 8px 16px 0 rgba(0,0,0,.2);padding:8px;z-index:2;top:30px}.easymde-dropdown:active .easymde-dropdown-content,.easymde-dropdown:focus .easymde-dropdown-content,.easymde-dropdown:focus-within .easymde-dropdown-content{visibility:visible}.easymde-dropdown-content button{display:block}span[data-img-src]::after{content:\'\';background-image:var(--bg-image);display:block;max-height:100%;max-width:100%;background-size:contain;height:0;padding-top:var(--height);width:var(--width);background-repeat:no-repeat}.CodeMirror .cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word){background:rgba(255,0,0,.15)}');function kC(e){let r,n;return{c(){r=Y("div"),n=Y("textarea"),n.disabled=!0,ie(n,"id",e[0]),ie(r,"style",e[3]),ie(r,"class","svelte-1888jbe"),ye(r,"disabled",e[1])},m(t,i){U(t,r,i),V(r,n),e[9](n)},p(e,[t]){1&t&&ie(n,"id",e[0]),8&t&&ie(r,"style",e[3]),2&t&&ye(r,"disabled",e[1])},i:t,o:t,d(t){t&&X(r),e[9](null)}}}function AC(e,t,r){let n,i,{height:a=null}=t,{scroll:o=!0}=t,{easyMDEOptions:s=null}=t,{mde:l=null}=t,{id:c=null}=t,{fullScreenOffset:u=null}=t,{disabled:p=!1}=t;Ee((()=>(r(4,a=a||"200px"),r(5,l=new zC({element:i,spellChecker:!1,status:!1,unorderedListStyle:"-",maxHeight:o?a:void 0,minHeight:o?void 0:a,...s})),()=>{l.toTextArea()})));return e.$$set=e=>{"height"in e&&r(4,a=e.height),"scroll"in e&&r(6,o=e.scroll),"easyMDEOptions"in e&&r(7,s=e.easyMDEOptions),"mde"in e&&r(5,l=e.mde),"id"in e&&r(0,c=e.id),"fullScreenOffset"in e&&r(8,u=e.fullScreenOffset),"disabled"in e&&r(1,p=e.disabled)},e.$$.update=()=>{256&e.$$.dirty&&r(3,n=(e=>{let t="";return t+=`--fullscreen-offset-x:${e?.x||"0px"};`,t+=`--fullscreen-offset-y:${e?.y||"0px"};`,t})(u))},[c,p,i,n,a,l,o,s,u,function(e){Fe[e?"unshift":"push"]((()=>{i=e,r(2,i)}))}]}Gt(".disabled.svelte-1888jbe textarea{display:none}.disabled.svelte-1888jbe .CodeMirror-cursor{display:none}.disabled.svelte-1888jbe .EasyMDEContainer{pointer-events:none}.disabled.svelte-1888jbe .editor-toolbar button i{color:var(--spectrum-global-color-gray-400)}.disabled.svelte-1888jbe .CodeMirror{color:var(--spectrum-global-color-gray-600)}.EasyMDEContainer .editor-toolbar{background:var(--spectrum-global-color-gray-50);border-top:1px solid var(--spectrum-alias-border-color);border-left:1px solid var(--spectrum-alias-border-color);border-right:1px solid var(--spectrum-alias-border-color)}.EasyMDEContainer .CodeMirror{border:1px solid var(--spectrum-alias-border-color);background:var(--spectrum-global-color-gray-50);color:var(--spectrum-alias-text-color)}.EasyMDEContainer .editor-toolbar button.active{background:var(--spectrum-global-color-gray-200);border-color:var(--spectrum-global-color-gray-400)}.EasyMDEContainer .editor-toolbar button:hover{background:var(--spectrum-global-color-gray-200);border-color:var(--spectrum-global-color-gray-400)}.EasyMDEContainer .editor-toolbar button{color:var(--spectrum-global-color-gray-800)}.EasyMDEContainer .editor-toolbar i.separator{border-color:var(--spectrum-global-color-gray-300)}.EasyMDEContainer .CodeMirror-cursor{border-color:var(--spectrum-alias-text-color)}.EasyMDEContainer .CodeMirror-selectedtext{background:var(--spectrum-global-color-gray-400) !important}.EasyMDEContainer .CodeMirror-selected{background:var(--spectrum-global-color-gray-400) !important}.EasyMDEContainer .cm-s-easymde .cm-link{color:var(--spectrum-global-color-gray-600)}.EasyMDEContainer .cm-s-easymde .cm-url{color:var(--spectrum-global-color-gray-500)}.EasyMDEContainer .editor-preview{background:var(--spectrum-global-color-gray-50)}.EasyMDEContainer .editor-preview{border:1px solid var(--spectrum-alias-border-color)}.EasyMDEContainer .cm-s-easymde .cm-comment{background:var(--spectrum-global-color-gray-100)}.EasyMDEContainer pre{background:var(--spectrum-global-color-gray-100);padding:4px;border-radius:4px}.EasyMDEContainer code{color:#e83e8c}.EasyMDEContainer pre code{color:var(--spectrum-alias-text-color)}.EasyMDEContainer blockquote{border-left:4px solid var(--spectrum-global-color-gray-400);color:var(--spectrum-global-color-gray-700);margin-left:0;padding-left:20px}.EasyMDEContainer hr{background-color:var(--spectrum-global-color-gray-300);border:none;height:2px}.EasyMDEContainer td, .EasyMDEContainer th{border-color:var(--spectrum-alias-border-color) !important}.EasyMDEContainer a{color:var(--primaryColor)}.EasyMDEContainer a:hover{color:var(--primaryColorHover)}.EasyMDEContainer .editor-toolbar.fullscreen{left:var(--fullscreen-offset-x);top:var(--fullscreen-offset-y)}.EasyMDEContainer .CodeMirror-fullscreen{left:var(--fullscreen-offset-x);top:calc(50px + var(--fullscreen-offset-y))}.EasyMDEContainer .CodeMirror-fullscreen.CodeMirror-sided{width:calc((100% - var(--fullscreen-offset-x)) / 2) !important}.EasyMDEContainer .editor-preview-side{left:calc(50% + (var(--fullscreen-offset-x) / 2));top:calc(50px + var(--fullscreen-offset-y));width:calc((100% - var(--fullscreen-offset-x)) / 2) !important}");class CC extends Ot{constructor(e){super(),Ht(this,e,AC,kC,c,{height:4,scroll:6,easyMDEOptions:7,mde:5,id:0,fullScreenOffset:8,disabled:1})}}function SC(e){let t,r,n;function i(t){e[9](t)}let a={scroll:!0,height:e[1],id:e[3],fullScreenOffset:e[4],disabled:e[5],easyMDEOptions:{initialValue:e[0],placeholder:e[2],toolbar:!e[5]&&!e[6]&&void 0,...e[7]}};return void 0!==e[8]&&(a.mde=e[8]),t=new CC({props:a}),Fe.push((()=>Et(t,"mde",i))),{c(){It(t.$$.fragment)},m(e,r){Bt(t,e,r),n=!0},p(e,n){const i={};2&n&&(i.height=e[1]),8&n&&(i.id=e[3]),16&n&&(i.fullScreenOffset=e[4]),32&n&&(i.disabled=e[5]),229&n&&(i.easyMDEOptions={initialValue:e[0],placeholder:e[2],toolbar:!e[5]&&!e[6]&&void 0,...e[7]}),!r&&256&n&&(r=!0,i.mde=e[8],Ze((()=>r=!1))),t.$set(i)},i(e){n||(lt(t.$$.fragment,e),n=!0)},o(e){ct(t.$$.fragment,e),n=!1},d(e){Dt(t,e)}}}function _C(e){let r,n,i=e[1],a=SC(e);return{c(){a.c(),r=Q()},m(e,t){a.m(e,t),U(e,r,t),n=!0},p(e,[n]){2&n&&c(i,i=e[1])?(ot(),ct(a,1,1,t),st(),a=SC(e),a.c(),lt(a,1),a.m(r.parentNode,r)):a.p(e,n)},i(e){n||(lt(a),n=!0)},o(e){ct(a),n=!1},d(e){e&&X(r),a.d(e)}}}function MC(e,t,r){let{value:n=null}=t,{height:i=null}=t,{placeholder:a=null}=t,{id:o=null}=t,{fullScreenOffset:s=0}=t,{disabled:l=!1}=t,{readonly:c=!1}=t,{easyMDEOptions:u}=t;const p=De();let d,h;const m=((e,t)=>{let r;return()=>{clearTimeout(r),r=setTimeout(e,t)}})((()=>{d=h.value(),p("change",d)}),250);return e.$$set=e=>{"value"in e&&r(0,n=e.value),"height"in e&&r(1,i=e.height),"placeholder"in e&&r(2,a=e.placeholder),"id"in e&&r(3,o=e.id),"fullScreenOffset"in e&&r(4,s=e.fullScreenOffset),"disabled"in e&&r(5,l=e.disabled),"readonly"in e&&r(6,c=e.readonly),"easyMDEOptions"in e&&r(7,u=e.easyMDEOptions)},e.$$.update=()=>{var t;1&e.$$.dirty&&(t=n,h&&t!==d&&h.value(t)),256&e.$$.dirty&&h?.codemirror.on("change",m),352&e.$$.dirty&&(c||l)&&h?.togglePreview()},[n,i,a,o,s,l,c,u,h,function(e){h=e,r(8,h)}]}class TC extends Ot{constructor(e){super(),Ht(this,e,MC,_C,c,{value:0,height:1,placeholder:2,id:3,fullScreenOffset:4,disabled:5,readonly:6,easyMDEOptions:7})}}function $C(e){let t,r,n,i;function a(t){e[3](t)}let o={scroll:!1,easyMDEOptions:{initialValue:e[0],toolbar:!1}};return void 0!==e[2]&&(o.mde=e[2]),r=new CC({props:o}),Fe.push((()=>Et(r,"mde",a))),{c(){t=Y("div"),It(r.$$.fragment),ie(t,"class","markdown-viewer svelte-digdb7"),fe(t,"height",e[1])},m(e,n){U(e,t,n),Bt(r,t,null),i=!0},p(e,[a]){const o={};1&a&&(o.easyMDEOptions={initialValue:e[0],toolbar:!1}),!n&&4&a&&(n=!0,o.mde=e[2],Ze((()=>n=!1))),r.$set(o),(!i||2&a)&&fe(t,"height",e[1])},i(e){i||(lt(r.$$.fragment,e),i=!0)},o(e){ct(r.$$.fragment,e),i=!1},d(e){e&&X(t),Dt(r)}}}function LC(e,t,r){let n,{value:i}=t,{height:a}=t;return e.$$set=e=>{"value"in e&&r(0,i=e.value),"height"in e&&r(1,a=e.height)},e.$$.update=()=>{5&e.$$.dirty&&n&&n.value(i||""),4&e.$$.dirty&&n&&!n.isPreviewActive()&&n.togglePreview()},[i,a,n,function(e){n=e,r(2,n)}]}Gt(".markdown-viewer.svelte-digdb7{overflow:auto}.markdown-viewer.svelte-digdb7 .editor-preview{padding:0;border:none;background:transparent}.markdown-viewer.svelte-digdb7 .CodeMirror{border:none;background:transparent;padding:0}.markdown-viewer.svelte-digdb7 .EasyMDEContainer{background:transparent}.markdown-viewer.svelte-digdb7 .CodeMirror-scroll{display:none}.markdown-viewer.svelte-digdb7 .CodeMirror-vscrollbar{display:none !important}.markdown-viewer.svelte-digdb7 .editor-preview-full{position:relative}.markdown-viewer.svelte-digdb7 .editor-preview-full > :first-child{margin-top:0}.markdown-viewer.svelte-digdb7 .editor-preview-full > :last-child{margin-bottom:0}.markdown-viewer.svelte-digdb7 .editor-preview-full pre{background:var(--spectrum-global-color-gray-200)}");class EC extends Ot{constructor(e){super(),Ht(this,e,LC,$C,c,{value:0,height:1})}}function IC(e){let t,r,n;return r=new TC({props:{value:e[0],placeholder:e[1],height:e[5],id:e[6],fullScreenOffset:e[7],disabled:e[2],easyMDEOptions:e[8],readonly:e[3]}}),r.$on("change",e[9]),{c(){t=Y("div"),It(r.$$.fragment),ie(t,"class","svelte-rs8sig"),ye(t,"error",e[4])},m(e,i){U(e,t,i),Bt(r,t,null),n=!0},p(e,[n]){const i={};1&n&&(i.value=e[0]),2&n&&(i.placeholder=e[1]),32&n&&(i.height=e[5]),64&n&&(i.id=e[6]),128&n&&(i.fullScreenOffset=e[7]),4&n&&(i.disabled=e[2]),256&n&&(i.easyMDEOptions=e[8]),8&n&&(i.readonly=e[3]),r.$set(i),16&n&&ye(t,"error",e[4])},i(e){n||(lt(r.$$.fragment,e),n=!0)},o(e){ct(r.$$.fragment,e),n=!1},d(e){e&&X(t),Dt(r)}}}function BC(e,t,r){let{value:n=""}=t,{placeholder:i=null}=t,{disabled:a=!1}=t,{readonly:o=!1}=t,{error:s=null}=t,{height:l=null}=t,{id:c=null}=t,{fullScreenOffset:u=null}=t,{easyMDEOptions:p=null}=t;return e.$$set=e=>{"value"in e&&r(0,n=e.value),"placeholder"in e&&r(1,i=e.placeholder),"disabled"in e&&r(2,a=e.disabled),"readonly"in e&&r(3,o=e.readonly),"error"in e&&r(4,s=e.error),"height"in e&&r(5,l=e.height),"id"in e&&r(6,c=e.id),"fullScreenOffset"in e&&r(7,u=e.fullScreenOffset),"easyMDEOptions"in e&&r(8,p=e.easyMDEOptions)},[n,i,a,o,s,l,c,u,p,function(t){Ve.call(this,e,t)}]}Gt(".error.svelte-rs8sig .EasyMDEContainer .editor-toolbar{border-top-color:var(--spectrum-semantic-negative-color-default);border-left-color:var(--spectrum-semantic-negative-color-default);border-right-color:var(--spectrum-semantic-negative-color-default)}.error.svelte-rs8sig .EasyMDEContainer .CodeMirror{border-bottom-color:var(--spectrum-semantic-negative-color-default);border-left-color:var(--spectrum-semantic-negative-color-default);border-right-color:var(--spectrum-semantic-negative-color-default)}.error.svelte-rs8sig .EasyMDEContainer .editor-preview-side{border-bottom-color:var(--spectrum-semantic-negative-color-default);border-right-color:var(--spectrum-semantic-negative-color-default)}");class DC extends Ot{constructor(e){super(),Ht(this,e,BC,IC,c,{value:0,placeholder:1,disabled:2,readonly:3,error:4,height:5,id:6,fullScreenOffset:7,easyMDEOptions:8})}}Gt(".title.svelte-glsrm{margin-bottom:6px}.list-items.svelte-glsrm{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch}");Gt(".list-item.svelte-1u1xks8{padding:0 16px;height:56px;background:var(--spectrum-global-color-gray-50);display:flex;flex-direction:row;justify-content:space-between;border:1px solid var(--spectrum-global-color-gray-300);transition:background 130ms ease-out;gap:var(--spacing-m)}.list-item.svelte-1u1xks8:not(:first-child){border-top:none}.list-item.svelte-1u1xks8:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-item.svelte-1u1xks8:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.hoverable.svelte-1u1xks8:hover{cursor:pointer;background:var(--spectrum-global-color-gray-75)}.left.svelte-1u1xks8,.right.svelte-1u1xks8{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-xl)}.left.svelte-1u1xks8{width:0;flex:1 1 auto}.right.svelte-1u1xks8{flex:0 0 auto}.list-item.svelte-1u1xks8 .spectrum-Icon,.list-item.svelte-1u1xks8 .spectrum-Avatar{flex:0 0 auto}.list-item.svelte-1u1xks8 .spectrum-Body{color:var(--spectrum-global-color-gray-900)}.list-item.svelte-1u1xks8 .spectrum-Body{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}");Gt(".icon-side-nav.svelte-krsn3q{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding:var(--spacing-s);gap:var(--spacing-xs)}");Gt(".icon-side-nav-item.svelte-12yq719{width:36px;height:36px;display:grid;place-items:center;border-radius:4px;position:relative;cursor:pointer;transition:background 130ms ease-out}.icon-side-nav-item.svelte-12yq719:hover svg,.active.svelte-12yq719 svg{color:var(--spectrum-global-color-gray-900)}.active.svelte-12yq719{background:var(--spectrum-global-color-gray-300)}.tooltip.svelte-12yq719{position:absolute;pointer-events:none;left:calc(100% - 4px);top:50%;white-space:nowrap;transform:translateY(-50%);z-index:1}");Gt('.spectrum-Slider {\n --spectrum-slider-handle-border-size: var(--spectrum-slider-m-handle-border-size, var(--spectrum-alias-border-size-thick));\n --spectrum-slider-handle-border-size-down: var(--spectrum-slider-m-handle-border-size-down, var(--spectrum-global-dimension-size-75));\n --spectrum-slider-track-border-radius: var(--spectrum-slider-m-track-border-radius, var(--spectrum-global-dimension-static-size-10));\n --spectrum-slider-track-height: var(--spectrum-slider-m-track-height, var(--spectrum-alias-border-size-thick));\n --spectrum-slider-handle-gap: var(--spectrum-slider-m-handle-gap, var(--spectrum-alias-border-size-thicker));\n --spectrum-slider-animation-duration: var(--spectrum-slider-m-animation-duration, var(--spectrum-global-animation-duration-100));\n --spectrum-slider-height: var(--spectrum-slider-m-height, var(--spectrum-alias-item-height-m));\n --spectrum-slider-min-width: var(--spectrum-slider-m-min-width, var(--spectrum-global-dimension-size-1250));\n --spectrum-slider-handle-width: var(--spectrum-slider-m-handle-width, var(--spectrum-alias-item-control-2-size-l));\n --spectrum-slider-handle-height: var(--spectrum-slider-m-handle-height, var(--spectrum-alias-item-control-2-size-l));\n --spectrum-slider-handle-border-radius: var(--spectrum-slider-m-handle-border-radius, var(--spectrum-global-dimension-size-100));\n --spectrum-slider-label-gap-x: var(--spectrum-slider-m-label-gap-x, var(--spectrum-alias-item-control-gap-m));\n --spectrum-slider-tick-mark-width: var(--spectrum-slider-tick-m-mark-width, var(--spectrum-alias-border-size-thick));\n --spectrum-slider-tick-mark-border-radius: var(--spectrum-slider-tick-m-mark-border-radius, var(--spectrum-alias-border-radius-xsmall));\n --spectrum-slider-tick-mark-height: var(--spectrum-slider-tick-m-mark-height, var(--spectrum-global-dimension-size-125));\n --spectrum-slider-label-gap-y: var(--spectrum-global-dimension-size-85);\n\n --spectrum-slider-controls-margin: calc(var(--spectrum-slider-handle-width) / 2);\n --spectrum-slider-track-margin-offset: calc(var(--spectrum-slider-controls-margin) * -1);\n\n --spectrum-slider-handle-margin-top: calc(var(--spectrum-slider-handle-width) / -2);\n --spectrum-slider-handle-margin-left: calc(var(--spectrum-slider-handle-width) / -2);\n\n --spectrum-slider-track-handleoffset: var(--spectrum-slider-handle-gap);\n --spectrum-slider-track-middle-handleoffset: calc(var(--spectrum-slider-handle-gap) + var(--spectrum-slider-handle-width) / 2);\n\n --spectrum-slider-input-top: calc(var(--spectrum-slider-handle-margin-top) / 4);\n --spectrum-slider-input-left: calc(var(--spectrum-slider-handle-margin-left) / 4);\n\n --spectrum-slider-ramp-margin-top: 0;\n --spectrum-slider-range-track-reset: 0;\n --spectrum-slide-label-text-size: var(--spectrum-global-dimension-font-size-75);\n --spectrum-slide-label-text-line-height: var(--spectrum-global-font-line-height-small, 1.3);\n}\n\n.spectrum-Slider {\n position: relative;\n z-index: 1;\n display: block;\n min-height: var(--spectrum-slider-height);\n min-width: var(--spectrum-slider-min-width);\n\n -webkit-user-select: none;\n\n -moz-user-select: none;\n\n -ms-user-select: none;\n\n user-select: none;\n}\n\n[dir="ltr"] .spectrum-Slider-controls {\n margin-left: var(--spectrum-slider-controls-margin);\n}\n\n[dir="rtl"] .spectrum-Slider-controls {\n margin-right: var(--spectrum-slider-controls-margin);\n}\n\n.spectrum-Slider-controls {\n display: inline-block;\n box-sizing: border-box;\n\n position: relative;\n z-index: auto;\n width: calc(100% - var(--spectrum-slider-controls-margin) * 2);\n min-height: var(--spectrum-slider-height);\n\n vertical-align: top;\n}\n\n[dir="ltr"] .spectrum-Slider-track,[dir="ltr"] \n.spectrum-Slider-fill {\n left: 0;\n}\n\n[dir="rtl"] .spectrum-Slider-track,[dir="rtl"] \n.spectrum-Slider-fill {\n right: 0;\n}\n\n[dir="ltr"] .spectrum-Slider-track,[dir="ltr"] \n.spectrum-Slider-fill {\n right: auto;\n}\n\n[dir="rtl"] .spectrum-Slider-track,[dir="rtl"] \n.spectrum-Slider-fill {\n left: auto;\n}\n\n.spectrum-Slider-track,\n.spectrum-Slider-fill {\n height: var(--spectrum-slider-track-height);\n box-sizing: border-box;\n\n position: absolute;\n z-index: 1;\n top: calc(var(--spectrum-slider-height) / 2);\n\n margin-top: calc(var(--spectrum-slider-track-height) / -2);\n\n pointer-events: none;\n}\n\n[dir="ltr"] .spectrum-Slider-track,[dir="ltr"] \n.spectrum-Slider-fill {\n padding-left: 0;\n padding-right: var(--spectrum-slider-track-handleoffset);\n}\n\n[dir="rtl"] .spectrum-Slider-track,[dir="rtl"] \n.spectrum-Slider-fill {\n padding-right: 0;\n padding-left: var(--spectrum-slider-track-handleoffset);\n}\n\n[dir="ltr"] .spectrum-Slider-track,[dir="ltr"] \n.spectrum-Slider-fill {\n margin-left: var(--spectrum-slider-track-margin-offset);\n}\n\n[dir="rtl"] .spectrum-Slider-track,[dir="rtl"] \n.spectrum-Slider-fill {\n margin-right: var(--spectrum-slider-track-margin-offset);\n}\n\n.spectrum-Slider-track,\n.spectrum-Slider-fill {\n padding-top: 0;\n padding-bottom: 0;\n}\n\n.spectrum-Slider-track::before, .spectrum-Slider-fill::before {\n content: "";\n display: block;\n height: 100%;\n\n border-radius: var(--spectrum-slider-track-border-radius);\n }\n\n[dir="ltr"] .spectrum-Slider-fill {\n margin-left: 0;\n}\n\n[dir="rtl"] .spectrum-Slider-fill {\n margin-right: 0;\n}\n\n[dir="ltr"] .spectrum-Slider-fill {\n padding-left: calc(var(--spectrum-slider-controls-margin) + var(--spectrum-slider-track-handleoffset));\n padding-right: 0;\n}\n\n[dir="rtl"] .spectrum-Slider-fill {\n padding-right: calc(var(--spectrum-slider-controls-margin) + var(--spectrum-slider-track-handleoffset));\n padding-left: 0;\n}\n\n.spectrum-Slider-fill {\n padding-top: 0;\n padding-bottom: 0;\n}\n\n[dir="ltr"] .spectrum-Slider-fill--right {\n padding-left: 0;\n padding-right: calc(var(--spectrum-slider-controls-margin) + var(--spectrum-slider-track-handleoffset));\n}\n\n[dir="rtl"] .spectrum-Slider-fill--right {\n padding-right: 0;\n padding-left: calc(var(--spectrum-slider-controls-margin) + var(--spectrum-slider-track-handleoffset));\n}\n\n.spectrum-Slider-fill--right {\n padding-top: 0;\n padding-bottom: 0;\n}\n\n[dir="ltr"] .spectrum-Slider-track ~ .spectrum-Slider-track {\n left: auto;\n}\n\n[dir="rtl"] .spectrum-Slider-track ~ .spectrum-Slider-track {\n right: auto;\n}\n\n[dir="ltr"] .spectrum-Slider-track ~ .spectrum-Slider-track {\n right: var(--spectrum-slider-range-track-reset);\n}\n\n[dir="rtl"] .spectrum-Slider-track ~ .spectrum-Slider-track {\n left: var(--spectrum-slider-range-track-reset);\n}\n\n[dir="ltr"] .spectrum-Slider-track ~ .spectrum-Slider-track {\n padding-left: var(--spectrum-slider-track-handleoffset);\n padding-right: 0;\n}\n\n[dir="rtl"] .spectrum-Slider-track ~ .spectrum-Slider-track {\n padding-right: var(--spectrum-slider-track-handleoffset);\n padding-left: 0;\n}\n\n[dir="ltr"] .spectrum-Slider-track ~ .spectrum-Slider-track {\n margin-left: var(--spectrum-slider-range-track-reset);\n}\n\n[dir="rtl"] .spectrum-Slider-track ~ .spectrum-Slider-track {\n margin-right: var(--spectrum-slider-range-track-reset);\n}\n\n[dir="ltr"] .spectrum-Slider-track ~ .spectrum-Slider-track {\n margin-right: var(--spectrum-slider-track-margin-offset);\n}\n\n[dir="rtl"] .spectrum-Slider-track ~ .spectrum-Slider-track {\n margin-left: var(--spectrum-slider-track-margin-offset);\n}\n\n.spectrum-Slider-track ~ .spectrum-Slider-track {\n padding-top: 0;\n padding-bottom: 0;\n}\n\n.spectrum-Slider--range .spectrum-Slider-value {\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n }\n\n[dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track:first-of-type {\n padding-left: 0;\n padding-right: var(--spectrum-slider-track-handleoffset);\n}\n\n[dir="rtl"] .spectrum-Slider--range .spectrum-Slider-track:first-of-type {\n padding-right: 0;\n padding-left: var(--spectrum-slider-track-handleoffset);\n}\n\n[dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track:first-of-type {\n left: var(--spectrum-slider-range-track-reset);\n}\n\n[dir="rtl"] .spectrum-Slider--range .spectrum-Slider-track:first-of-type {\n right: var(--spectrum-slider-range-track-reset);\n}\n\n[dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track:first-of-type {\n right: auto;\n}\n\n[dir="rtl"] .spectrum-Slider--range .spectrum-Slider-track:first-of-type {\n left: auto;\n}\n\n[dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track:first-of-type {\n margin-left: var(--spectrum-slider-track-margin-offset);\n}\n\n[dir="rtl"] .spectrum-Slider--range .spectrum-Slider-track:first-of-type {\n margin-right: var(--spectrum-slider-track-margin-offset);\n}\n\n.spectrum-Slider--range .spectrum-Slider-track:first-of-type {\n padding-top: 0;\n padding-bottom: 0;\n }\n\n[dir="ltr"] [dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track,[dir="ltr"] [dir="rtl"] \n .spectrum-Slider--range .spectrum-Slider-track {\n left: auto;\n}\n\n[dir="rtl"] [dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track,[dir="rtl"] [dir="rtl"] \n .spectrum-Slider--range .spectrum-Slider-track {\n right: auto;\n}\n\n[dir="ltr"] [dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track,[dir="ltr"] [dir="rtl"] \n .spectrum-Slider--range .spectrum-Slider-track {\n right: auto;\n}\n\n[dir="rtl"] [dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track,[dir="rtl"] [dir="rtl"] \n .spectrum-Slider--range .spectrum-Slider-track {\n left: auto;\n}\n\n[dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track,[dir="rtl"] \n .spectrum-Slider--range .spectrum-Slider-track {\n padding-top: 0;\n padding-bottom: 0;\n padding-left: var(--spectrum-slider-track-middle-handleoffset);\n padding-right: var(--spectrum-slider-track-middle-handleoffset);\n margin-left: var(--spectrum-slider-range-track-reset);\n margin-right: var(--spectrum-slider-range-track-reset);\n margin-top: var(--spectrum-slider-range-track-reset);\n margin-bottom: var(--spectrum-slider-range-track-reset);\n }\n\n[dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track:last-of-type {\n padding-left: var(--spectrum-slider-track-handleoffset);\n padding-right: 0;\n}\n\n[dir="rtl"] .spectrum-Slider--range .spectrum-Slider-track:last-of-type {\n padding-right: var(--spectrum-slider-track-handleoffset);\n padding-left: 0;\n}\n\n[dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track:last-of-type {\n left: auto;\n}\n\n[dir="rtl"] .spectrum-Slider--range .spectrum-Slider-track:last-of-type {\n right: auto;\n}\n\n[dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track:last-of-type {\n right: var(--spectrum-slider-range-track-reset);\n}\n\n[dir="rtl"] .spectrum-Slider--range .spectrum-Slider-track:last-of-type {\n left: var(--spectrum-slider-range-track-reset);\n}\n\n[dir="ltr"] .spectrum-Slider--range .spectrum-Slider-track:last-of-type {\n margin-right: var(--spectrum-slider-track-margin-offset);\n}\n\n[dir="rtl"] .spectrum-Slider--range .spectrum-Slider-track:last-of-type {\n margin-left: var(--spectrum-slider-track-margin-offset);\n}\n\n.spectrum-Slider--range .spectrum-Slider-track:last-of-type {\n padding-top: 0;\n padding-bottom: 0;\n }\n\n[dir="ltr"] .spectrum-Slider-ramp {\n left: var(--spectrum-slider-track-margin-offset);\n}\n\n[dir="rtl"] .spectrum-Slider-ramp {\n right: var(--spectrum-slider-track-margin-offset);\n}\n\n[dir="ltr"] .spectrum-Slider-ramp {\n right: var(--spectrum-slider-track-margin-offset);\n}\n\n[dir="rtl"] .spectrum-Slider-ramp {\n left: var(--spectrum-slider-track-margin-offset);\n}\n\n.spectrum-Slider-ramp {\n margin-top: var(--spectrum-slider-ramp-margin-top);\n height: var(--spectrum-slider-ramp-track-height, var(--spectrum-global-dimension-static-size-200));\n\n position: absolute;\n top: calc(var(--spectrum-slider-ramp-track-height, var(--spectrum-global-dimension-static-size-200)) / 2);\n}\n\n[dir="rtl"] .spectrum-Slider-ramp svg { transform: matrix(-1, 0, 0, 1, 0, 0) ; }\n\n.spectrum-Slider-ramp svg {\n width: 100%;\n height: 100%;\n }\n\n[dir="ltr"] .spectrum-Slider-handle {\n left: 0;\n}\n\n[dir="rtl"] .spectrum-Slider-handle {\n right: 0;\n}\n\n[dir="ltr"] .spectrum-Slider-handle {\n margin-left: calc(var(--spectrum-slider-handle-width) / -2);\n margin-right: 0;\n}\n\n[dir="rtl"] .spectrum-Slider-handle {\n margin-right: calc(var(--spectrum-slider-handle-width) / -2);\n margin-left: 0;\n}\n\n.spectrum-Slider-handle {\n position: absolute;\n top: calc(var(--spectrum-slider-height) / 2);\n z-index: 2;\n\n display: inline-block;\n box-sizing: border-box;\n\n width: var(--spectrum-slider-handle-width);\n height: var(--spectrum-slider-handle-height);\n\n margin-top: var(--spectrum-slider-handle-margin-top);\n\n margin-bottom: 0;\n\n border-width: var(--spectrum-slider-handle-border-size);\n border-style: solid;\n\n border-radius: var(--spectrum-slider-handle-border-radius);\n\n transition: border-width var(--spectrum-slider-animation-duration) ease-in-out;\n\n outline: none;\n}\n\n.spectrum-Slider-handle:active,\n .spectrum-Slider-handle.is-focused,\n .spectrum-Slider-handle.is-dragged {\n border-width: var(--spectrum-slider-handle-border-size-down);\n }\n\n.spectrum-Slider-handle:active,\n .spectrum-Slider-handle.is-focused,\n .spectrum-Slider-handle.is-dragged,\n .spectrum-Slider-handle.is-tophandle {\n z-index: 3;\n }\n\n.spectrum-Slider-handle:before {\n content: " ";\n display: block;\n position: absolute;\n left: 50%;\n top: 50%;\n\n transition: box-shadow var(--spectrum-global-animation-duration-100, 130ms)\n ease-out,\n width var(--spectrum-global-animation-duration-100, 130ms) ease-out,\n height var(--spectrum-global-animation-duration-100, 130ms) ease-out;\n\n width: var(--spectrum-slider-handle-width);\n height: var(--spectrum-slider-handle-height);\n\n transform: translate(-50%, -50%);\n\n border-radius: 100%;\n }\n\n.spectrum-Slider-handle.is-focused:before {\n width: calc(var(--spectrum-slider-handle-width) + var(--spectrum-alias-focus-ring-gap, var(--spectrum-global-dimension-static-size-25)) * 2);\n height: calc(var(--spectrum-slider-handle-height) + var(--spectrum-alias-focus-ring-gap, var(--spectrum-global-dimension-static-size-25)) * 2);\n }\n\n[dir="ltr"] .spectrum-Slider-input {\n left: var(--spectrum-slider-input-left);\n}\n\n[dir="rtl"] .spectrum-Slider-input {\n right: var(--spectrum-slider-input-left);\n}\n\n.spectrum-Slider-input {\n margin: 0;\n\n width: var(--spectrum-slider-handle-width);\n height: var(--spectrum-slider-handle-height);\n padding: 0;\n position: absolute;\n top: var(--spectrum-slider-input-top);\n overflow: hidden;\n opacity: 0.000001;\n cursor: default;\n -webkit-appearance: none;\n border: 0;\n pointer-events: none;\n}\n\n.spectrum-Slider-input:focus {\n outline: none;\n }\n\n.spectrum-Slider-labelContainer {\n display: -ms-flexbox;\n display: flex;\n position: relative;\n\n width: auto;\n\n padding-top: var(--spectrum-fieldlabel-m-padding-top, var(--spectrum-global-dimension-size-50));\n\n font-size: var(--spectrum-slide-label-text-size);\n line-height: var(--spectrum-slide-label-text-line-height);\n}\n\n[dir="ltr"] .spectrum-Slider-label {\n padding-left: 0;\n}\n\n[dir="rtl"] .spectrum-Slider-label {\n padding-right: 0;\n}\n\n.spectrum-Slider-label {\n -ms-flex-positive: 1;\n flex-grow: 1;\n}\n\n[dir="ltr"] .spectrum-Slider-value {\n padding-right: 0;\n}\n\n[dir="rtl"] .spectrum-Slider-value {\n padding-left: 0;\n}\n\n[dir="ltr"] .spectrum-Slider-value {\n text-align: right;\n}\n\n[dir="rtl"] .spectrum-Slider-value {\n text-align: left;\n}\n\n.spectrum-Slider-value {\n -ms-flex-positive: 0;\n flex-grow: 0;\n cursor: default;\n font-feature-settings: "tnum";\n}\n\n[dir="ltr"] .spectrum-Slider-value {\n margin-left: var(--spectrum-slider-label-gap-x);\n}\n\n[dir="rtl"] .spectrum-Slider-value {\n margin-right: var(--spectrum-slider-label-gap-x);\n}\n\n.spectrum-Slider-ticks {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n\n z-index: 0;\n\n margin: 0 var(--spectrum-slider-track-margin-offset);\n margin-top: calc(var(--spectrum-slider-tick-mark-height) + var(--spectrum-slider-track-height) / 2);\n}\n\n.spectrum-Slider-tick {\n position: relative;\n\n width: var(--spectrum-slider-tick-mark-width);\n}\n\n[dir="ltr"] .spectrum-Slider-tick:after {\n left: calc(50% - var(--spectrum-slider-tick-mark-width) / 2);\n}\n\n[dir="rtl"] .spectrum-Slider-tick:after {\n right: calc(50% - var(--spectrum-slider-tick-mark-width) / 2);\n}\n\n.spectrum-Slider-tick:after {\n display: block;\n position: absolute;\n top: 0;\n content: "";\n width: var(--spectrum-slider-tick-mark-width);\n height: var(--spectrum-slider-tick-mark-height);\n\n border-radius: var(--spectrum-slider-tick-mark-border-radius);\n }\n\n.spectrum-Slider-tick .spectrum-Slider-tickLabel {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n\n margin-top: calc(var(--spectrum-slider-label-gap-y) + var(--spectrum-slider-tick-mark-height));\n\n margin-bottom: 0;\n margin-left: calc(var(--spectrum-slider-label-gap-x) * -1);\n margin-right: calc(var(--spectrum-slider-label-gap-x) * -1);\n\n font-size: var(--spectrum-slide-label-text-size);\n line-height: var(--spectrum-slide-label-text-line-height);\n }\n\n.spectrum-Slider-tick:first-of-type .spectrum-Slider-tickLabel, .spectrum-Slider-tick:last-of-type .spectrum-Slider-tickLabel {\n display: block;\n position: absolute;\n margin-left: 0;\n margin-right: 0;\n }\n\n[dir="ltr"] .spectrum-Slider-tick:first-of-type .spectrum-Slider-tickLabel {\n left: 0;\n}\n\n[dir="rtl"] .spectrum-Slider-tick:first-of-type .spectrum-Slider-tickLabel {\n right: 0;\n}\n\n[dir="ltr"] .spectrum-Slider-tick:last-of-type .spectrum-Slider-tickLabel {\n right: 0;\n}\n\n[dir="rtl"] .spectrum-Slider-tick:last-of-type .spectrum-Slider-tickLabel {\n left: 0;\n}\n\n.spectrum-Slider.is-disabled {\n cursor: default;\n }\n\n.spectrum-Slider.is-disabled .spectrum-Slider-handle {\n cursor: default;\n pointer-events: none;\n }\n\n.spectrum-Slider {\n --spectrum-slider-m-focus-ring-size-key-focus: var(--spectrum-alias-focus-ring-size, var(--spectrum-global-dimension-static-size-25));\n --spectrum-slider-m-handle-border-color-key-focus: var(\n --spectrum-global-color-gray-800\n );\n --spectrum-slider-m-handle-focus-ring-color-key-focus: var(--spectrum-alias-focus-color, var(--spectrum-global-color-blue-400));\n --spectrum-slider-m-label-text-color: var(--spectrum-alias-label-text-color, var(--spectrum-global-color-gray-700));\n\n --spectrum-slider-m-label-text-color-disabled: var(--spectrum-alias-text-color-disabled, var(--spectrum-global-color-gray-500));\n}\n\n.spectrum-Slider-track::before {\n background: var(--spectrum-slider-m-track-color, var(--spectrum-global-color-gray-400));\n }\n\n.spectrum-Slider-labelContainer {\n color: var(--spectrum-slider-m-label-text-color);\n}\n\n.spectrum-Slider--filled .spectrum-Slider-track:first-child::before {\n background: var(--spectrum-slider-m-track-fill-color, var(--spectrum-global-color-gray-700));\n }\n\n.spectrum-Slider-fill::before {\n background: var(--spectrum-slider-m-track-fill-color, var(--spectrum-global-color-gray-700));\n }\n\n.spectrum-Slider-ramp path {\n fill: var(--spectrum-slider-m-track-color, var(--spectrum-global-color-gray-400));\n }\n\n.spectrum-Slider-handle {\n border-color: var(--spectrum-slider-m-handle-border-color, var(--spectrum-global-color-gray-700));\n background: var(--spectrum-slider-m-handle-background-color, var(--spectrum-alias-background-color-transparent));\n}\n\n.spectrum-Slider-handle:hover {\n border-color: var(--spectrum-slider-m-handle-border-color-hover, var(--spectrum-global-color-gray-800));\n }\n\n.spectrum-Slider-handle.is-focused {\n border-color: var(--spectrum-slider-m-handle-border-color-key-focus, var(--spectrum-global-color-gray-800));\n }\n\n.spectrum-Slider-handle.is-focused:before {\n box-shadow: 0 0 0 var(--spectrum-slider-m-focus-ring-size-key-focus, var(--spectrum-alias-focus-ring-size))\n var(--spectrum-slider-m-handle-focus-ring-color-key-focus);\n }\n\n.spectrum-Slider-handle:active,\n .spectrum-Slider-handle.is-dragged {\n border-color: var(--spectrum-slider-m-handle-border-color-down, var(--spectrum-global-color-gray-800));\n }\n\n.spectrum-Slider--ramp .spectrum-Slider-handle {\n box-shadow: 0 0 0 4px var(--spectrum-alias-background-color-default, var(--spectrum-global-color-gray-100));\n }\n\n.spectrum-Slider-input {\n background: transparent;\n}\n\n.spectrum-Slider-tick:after {\n background-color: var(--spectrum-slider-tick-m-mark-color, var(--spectrum-alias-track-color-default));\n }\n\n.spectrum-Slider-handle.is-dragged {\n border-color: var(--spectrum-slider-m-handle-border-color-down, var(--spectrum-global-color-gray-800));\n background: var(--spectrum-slider-m-handle-background-color-down, var(--spectrum-alias-background-color-transparent));\n }\n\n.spectrum-Slider--range .spectrum-Slider-track:not(:first-of-type):not(:last-of-type):before {\n background: var(--spectrum-slider-m-track-fill-color, var(--spectrum-global-color-gray-700));\n }\n\n.spectrum-Slider.is-disabled .spectrum-Slider-labelContainer {\n color: var(--spectrum-slider-m-label-text-color-disabled);\n }\n\n.spectrum-Slider.is-disabled .spectrum-Slider-handle {\n border-color: var(--spectrum-slider-m-handle-border-color-disabled, var(--spectrum-global-color-gray-400));\n background: var(--spectrum-alias-background-color-default, var(--spectrum-global-color-gray-100));\n }\n\n.spectrum-Slider.is-disabled .spectrum-Slider-handle:hover,\n .spectrum-Slider.is-disabled .spectrum-Slider-handle:active {\n border-color: var(--spectrum-slider-m-handle-border-color-disabled, var(--spectrum-global-color-gray-400));\n background: var(--spectrum-slider-m-handle-background-color, var(--spectrum-alias-background-color-transparent));\n }\n\n.spectrum-Slider.is-disabled .spectrum-Slider-track::before {\n background: var(--spectrum-slider-m-track-color-disabled, var(--spectrum-global-color-gray-300));\n }\n\n.spectrum-Slider.is-disabled.spectrum-Slider--filled .spectrum-Slider-track:first-child::before {\n background: var(--spectrum-slider-m-track-fill-color-disabled, var(--spectrum-global-color-gray-300));\n }\n\n.spectrum-Slider.is-disabled .spectrum-Slider-fill::before {\n background: var(--spectrum-slider-m-track-fill-color-disabled, var(--spectrum-global-color-gray-300));\n }\n\n.spectrum-Slider.is-disabled .spectrum-Slider-ramp path {\n fill: var(--spectrum-slider-ramp-track-color-disabled, var(--spectrum-global-color-gray-200));\n }\n\n.spectrum-Slider.is-disabled.spectrum-Slider--range .spectrum-Slider-track:not(:first-of-type):not(:last-of-type):before {\n background: var(--spectrum-slider-m-track-fill-color-disabled, var(--spectrum-global-color-gray-300));\n }\n');Gt('div.svelte-13v9q49{display:grid;place-items:center}input.svelte-13v9q49{width:100%;padding:0;margin:0;-webkit-appearance:none;background:transparent}input.svelte-13v9q49::-webkit-slider-thumb{-webkit-appearance:none}input.svelte-13v9q49:focus{outline:none}input[type="range"].svelte-13v9q49::-webkit-slider-thumb{-webkit-appearance:none;border:2px solid var(--spectrum-global-color-gray-700);height:16px;width:16px;border-radius:50%;background:var(--background);cursor:pointer;transition:background 130ms ease-out;margin-top:-7px}input[type="range"].svelte-13v9q49::-moz-range-thumb{border:2px solid var(--spectrum-global-color-gray-700);height:12px;width:12px;border-radius:50%;background:var(--background);cursor:pointer;transition:background 130ms ease-out}input[type="range"].svelte-13v9q49::-webkit-slider-runnable-track{width:100%;height:2px;cursor:pointer;background:var(--spectrum-global-color-gray-300);border-radius:2px}input[type="range"].svelte-13v9q49::-moz-range-track{width:100%;height:2px;cursor:pointer;background:var(--spectrum-global-color-gray-300);border-radius:2px}');Gt('.spectrum-Accordion {\n --spectrum-accordion-item-title-padding-y: var(\n --spectrum-global-dimension-size-150\n );\n --spectrum-accordion-animation-duration: var(--spectrum-global-animation-duration-100, 130ms);\n}\n\n.spectrum-Accordion {\n display: block;\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\n[dir="ltr"] .spectrum-Accordion-itemIndicator {\n left: var(--spectrum-accordion-item-padding-x, var(--spectrum-global-dimension-size-225));\n}\n\n[dir="rtl"] .spectrum-Accordion-itemIndicator {\n right: var(--spectrum-accordion-item-padding-x, var(--spectrum-global-dimension-size-225));\n}\n\n[dir="rtl"] .spectrum-Accordion-itemIndicator { transform: matrix(-1, 0, 0, 1, 0, 0) ; }\n\n.spectrum-Accordion-itemIndicator {\n display: block;\n\n position: absolute;\n top: calc(50% - var(--spectrum-accordion-icon-height, var(--spectrum-global-dimension-size-125)) / 2);\n\n transition: transform ease var(--spectrum-accordion-animation-duration);\n}\n\n.spectrum-Accordion-item {\n z-index: inherit;\n position: relative;\n\n display: list-item;\n margin: 0;\n\n border-bottom: var(--spectrum-accordion-item-border-size, var(--spectrum-alias-border-size-thin)) solid transparent;\n}\n\n.spectrum-Accordion-item:first-of-type {\n border-top: var(--spectrum-accordion-item-border-size, var(--spectrum-alias-border-size-thin)) solid\n transparent;\n }\n\n.spectrum-Accordion-itemHeading {\n margin: 0;\n position: relative;\n box-sizing: border-box;\n}\n\n[dir="ltr"] .spectrum-Accordion-itemHeader {\n padding-left: calc(var(--spectrum-accordion-item-padding-x, var(--spectrum-global-dimension-size-225)) + var(--spectrum-accordion-icon-height, var(--spectrum-global-dimension-size-125)) + var(--spectrum-accordion-icon-gap, var(--spectrum-global-dimension-size-100)) + var(--spectrum-accordion-item-border-left-size, var(--spectrum-alias-border-size-thick)));\n}\n\n[dir="rtl"] .spectrum-Accordion-itemHeader {\n padding-right: calc(var(--spectrum-accordion-item-padding-x, var(--spectrum-global-dimension-size-225)) + var(--spectrum-accordion-icon-height, var(--spectrum-global-dimension-size-125)) + var(--spectrum-accordion-icon-gap, var(--spectrum-global-dimension-size-100)) + var(--spectrum-accordion-item-border-left-size, var(--spectrum-alias-border-size-thick)));\n}\n\n[dir="ltr"] .spectrum-Accordion-itemHeader {\n padding-right: var(--spectrum-accordion-item-padding-x, var(--spectrum-global-dimension-size-225));\n}\n\n[dir="rtl"] .spectrum-Accordion-itemHeader {\n padding-left: var(--spectrum-accordion-item-padding-x, var(--spectrum-global-dimension-size-225));\n}\n\n[dir="ltr"] .spectrum-Accordion-itemHeader {\n text-align: left;\n}\n\n[dir="rtl"] .spectrum-Accordion-itemHeader {\n text-align: right;\n}\n\n.spectrum-Accordion-itemHeader {\n position: relative;\n\n display: -ms-flexbox;\n\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: start;\n justify-content: flex-start;\n\n box-sizing: border-box;\n padding-top: var(--spectrum-accordion-item-title-padding-y);\n padding-bottom: var(--spectrum-accordion-item-title-padding-y);\n margin: 0;\n\n min-height: calc(100% - var(--spectrum-accordion-item-border-size, var(--spectrum-alias-border-size-thin)));\n\n font-size: var(--spectrum-accordion-item-title-text-size, var(--spectrum-global-dimension-font-size-50));\n line-height: var(--spectrum-accordion-text-line-height, var(--spectrum-alias-component-text-line-height));\n text-transform: uppercase;\n letter-spacing: calc(var(--spectrum-accordion-item-title-tracking, var(--spectrum-global-font-letter-spacing-medium)) / 100);\n\n text-overflow: ellipsis;\n cursor: pointer;\n font-weight: 500;\n -webkit-appearance: none;\n appearance: none;\n background-color: inherit;\n border: 0;\n font-family: inherit;\n width: 100%;\n}\n\n.spectrum-Accordion-itemHeader:focus {\n outline: none;\n }\n\n[dir="ltr"] .spectrum-Accordion-itemHeader:focus::after {\n left: 0;\n}\n\n[dir="rtl"] .spectrum-Accordion-itemHeader:focus::after {\n right: 0;\n}\n\n.spectrum-Accordion-itemHeader:focus::after {\n content: "";\n\n position: absolute;\n top: calc(-1 * var(--spectrum-accordion-item-border-size, var(--spectrum-alias-border-size-thin)));\n bottom: calc(-1 * var(--spectrum-accordion-item-border-size, var(--spectrum-alias-border-size-thin)));\n\n width: var(--spectrum-accordion-item-border-left-size, var(--spectrum-alias-border-size-thick));\n }\n\n.spectrum-Accordion-itemContent {\n padding-top: 0;\n padding-bottom: var(--spectrum-accordion-item-content-padding, var(--spectrum-global-dimension-size-200));\n padding-left: var(--spectrum-accordion-item-content-padding, var(--spectrum-global-dimension-size-200));\n padding-right: var(--spectrum-accordion-item-content-padding, var(--spectrum-global-dimension-size-200));\n display: none;\n}\n\n[dir="ltr"] .spectrum-Accordion-item.is-open > .spectrum-Accordion-itemHeading > .spectrum-Accordion-itemIndicator { transform: rotate(90deg); }\n\n[dir="rtl"] .spectrum-Accordion-item.is-open > .spectrum-Accordion-itemHeading > .spectrum-Accordion-itemIndicator { transform: matrix(-1, 0, 0, 1, 0, 0) rotate(90deg); }\n\n[dir="ltr"] .spectrum-Accordion-item.is-open > .spectrum-Accordion-itemIndicator { transform: rotate(90deg); }\n\n[dir="rtl"] .spectrum-Accordion-item.is-open > .spectrum-Accordion-itemIndicator { transform: matrix(-1, 0, 0, 1, 0, 0) rotate(90deg); }\n\n.spectrum-Accordion-item.is-open > .spectrum-Accordion-itemHeader::after {\n height: calc(100% - var(--spectrum-accordion-item-border-size, var(--spectrum-alias-border-size-thin)));\n }\n\n.spectrum-Accordion-item.is-open > .spectrum-Accordion-itemContent {\n display: block;\n }\n\n.spectrum-Accordion-item.is-disabled .spectrum-Accordion-itemHeader {\n cursor: default;\n }\n\n.spectrum-Accordion-item {\n border-color: var(--spectrum-accordion-border-color, var(--spectrum-global-color-gray-300));\n}\n\n.spectrum-Accordion-itemIndicator {\n color: var(--spectrum-accordion-icon-color, var(--spectrum-global-color-gray-600));\n}\n\n.spectrum-Accordion-itemHeader {\n color: var(--spectrum-accordion-text-color, var(--spectrum-global-color-gray-700));\n}\n\n.spectrum-Accordion-itemHeader:hover {\n color: var(--spectrum-accordion-text-color-hover, var(--spectrum-global-color-gray-900));\n\n background-color: var(--spectrum-accordion-item-background-color-hover, var(--spectrum-global-color-gray-200));\n }\n\n.spectrum-Accordion-itemHeader:hover + .spectrum-Accordion-itemIndicator {\n color: var(--spectrum-accordion-icon-color-hover, var(--spectrum-alias-icon-color-hover));\n }\n\n.spectrum-Accordion-itemHeader.focus-ring:after {\n background-color: var(--spectrum-accordion-item-border-left-color-key-focus, var(--spectrum-alias-border-color-key-focus));\n }\n\n.spectrum-Accordion-item.is-open .spectrum-Accordion-itemHeader:hover {\n background-color: transparent;\n }\n\n.spectrum-Accordion-item.is-disabled .spectrum-Accordion-itemHeader,\n .spectrum-Accordion-item.is-disabled .spectrum-Accordion-itemHeader:hover,\n .spectrum-Accordion-item.is-disabled .spectrum-Accordion-itemHeader.focus-ring {\n color: var(--spectrum-accordion-text-color-disabled, var(--spectrum-global-color-gray-500));\n background-color: transparent;\n }\n\n.spectrum-Accordion-item.is-disabled .spectrum-Accordion-itemHeader + .spectrum-Accordion-itemIndicator {\n color: var(--spectrum-accordion-icon-color-disabled, var(--spectrum-alias-icon-color-disabled));\n }\n\n@media (forced-colors: active) {\n .spectrum-Accordion-itemHeader.focus-ring {\n outline: 3px solid CanvasText;\n }\n}\n');Gt(".spectrum-Accordion.svelte-11prom{margin-left:-20px}.spectrum-Accordion-item.svelte-11prom{border:none}.spectrum-Accordion-itemContent.svelte-11prom{width:97%;padding-left:30px}.spectrum-Accordion-itemHeader.svelte-11prom{text-transform:none;font-weight:bold;font-size:0.875rem}");function HC(e,t,r){const n=e.slice();n[10]=t[r];const i=n[7](n[10]);return n[11]=i,n}function OC(e){let t,r=e[2],n=[];for(let t=0;t<r.length;t+=1)n[t]=PC(HC(e,r,t));return{c(){for(let e=0;e<n.length;e+=1)n[e].c();t=Q()},m(e,r){for(let t=0;t<n.length;t+=1)n[t].m(e,r);U(e,t,r)},p(e,i){if(510&i){let a;for(r=e[2],a=0;a<r.length;a+=1){const o=HC(e,r,a);n[a]?n[a].p(o,i):(n[a]=PC(o),n[a].c(),n[a].m(t.parentNode,t))}for(;a<n.length;a+=1)n[a].d(1);n.length=r.length}},d(e){G(n,e),e&&X(t)}}}function PC(e){let t,r,n,i,a,o,s,l,c,u,p,d,h,m,g=e[6](e[10])+"";return{c(){t=Y("div"),r=Y("label"),n=Y("input"),o=J(),s=Y("span"),s.innerHTML='<svg class="spectrum-Icon spectrum-UIIcon-Checkmark100 spectrum-Checkbox-checkmark" focusable="false" aria-hidden="true"><use xlink:href="#spectrum-css-icon-Checkmark100"></use></svg>',l=J(),c=Y("span"),u=K(g),p=J(),ie(n,"type","checkbox"),ie(n,"class","spectrum-Checkbox-input svelte-urlxzj"),n.value=i=e[11],n.checked=a=e[1].includes(e[11]),n.disabled=e[4],ie(s,"class","spectrum-Checkbox-box"),ie(c,"class","spectrum-Checkbox-label"),ie(r,"class","spectrum-Checkbox spectrum-Checkbox--sizeM spectrum-FieldGroup-item"),ie(t,"title",d=e[6](e[10])),ie(t,"class","spectrum-Checkbox spectrum-FieldGroup-item svelte-urlxzj"),ye(t,"is-invalid",!!e[3]),ye(t,"readonly",e[5])},m(i,a){U(i,t,a),V(t,r),V(r,n),V(r,o),V(r,s),V(r,l),V(r,c),V(c,u),V(t,p),h||(m=ee(n,"change",e[8]),h=!0)},p(e,r){132&r&&i!==(i=e[11])&&(n.value=i),134&r&&a!==(a=e[1].includes(e[11]))&&(n.checked=a),16&r&&(n.disabled=e[4]),68&r&&g!==(g=e[6](e[10])+"")&&me(u,g),68&r&&d!==(d=e[6](e[10]))&&ie(t,"title",d),8&r&&ye(t,"is-invalid",!!e[3]),32&r&&ye(t,"readonly",e[5])},d(e){e&&X(t),h=!1,m()}}}function RC(e){let r,n,i=e[2]&&Array.isArray(e[2]),a=i&&OC(e);return{c(){r=Y("div"),a&&a.c(),ie(r,"class",n=A(`spectrum-FieldGroup spectrum-FieldGroup--${e[0]}`)+" svelte-urlxzj")},m(e,t){U(e,r,t),a&&a.m(r,null)},p(e,[t]){4&t&&(i=e[2]&&Array.isArray(e[2])),i?a?a.p(e,t):(a=OC(e),a.c(),a.m(r,null)):a&&(a.d(1),a=null),1&t&&n!==(n=A(`spectrum-FieldGroup spectrum-FieldGroup--${e[0]}`)+" svelte-urlxzj")&&ie(r,"class",n)},i:t,o:t,d(e){e&&X(r),a&&a.d()}}}function VC(e,t,r){let{direction:n="vertical"}=t,{value:i=[]}=t,{options:a=[]}=t,{error:o=null}=t,{disabled:s=!1}=t,{readonly:l=!1}=t,{getOptionLabel:c=(e=>e)}=t,{getOptionValue:u=(e=>e)}=t;const p=De();return e.$$set=e=>{"direction"in e&&r(0,n=e.direction),"value"in e&&r(1,i=e.value),"options"in e&&r(2,a=e.options),"error"in e&&r(3,o=e.error),"disabled"in e&&r(4,s=e.disabled),"readonly"in e&&r(5,l=e.readonly),"getOptionLabel"in e&&r(6,c=e.getOptionLabel),"getOptionValue"in e&&r(7,u=e.getOptionValue)},[n,i,a,o,s,l,c,u,e=>{const t=e.target.value;e.target.checked&&!i.includes(t)?p("change",[...i,t]):p("change",i.filter((e=>e!==t)))}]}Gt(".spectrum-Checkbox-input.svelte-urlxzj{opacity:0}.readonly.svelte-urlxzj{pointer-events:none}");class NC extends Ot{constructor(e){super(),Ht(this,e,VC,RC,c,{direction:0,value:1,options:2,error:3,disabled:4,readonly:5,getOptionLabel:6,getOptionValue:7})}}Gt('.field.svelte-hy829z{display:flex;gap:var(--spacing-m)}.file-view.svelte-hy829z{display:flex;gap:var(--spacing-l);align-items:center;border:1px solid var(--spectrum-alias-border-color);border-radius:var(--spectrum-global-dimension-size-50);padding:0px var(--spectrum-alias-item-padding-m)}input[type="file"].svelte-hy829z{display:none}.delete-button.svelte-hy829z{transition:all 0.3s;margin-left:10px;display:flex}.delete-button.svelte-hy829z:hover{cursor:pointer;color:var(--red)}.filesize.svelte-hy829z{white-space:nowrap}.filename.svelte-hy829z{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.preview.svelte-hy829z{height:1.5em}');Gt('.action-container.svelte-1e17jzv.svelte-1e17jzv{background-color:var(--spectrum-alias-background-color-primary);border-radius:0px;border:1px solid var(--spectrum-global-color-gray-300);transition:background-color 130ms ease-in-out, color 130ms ease-in-out,\n border-color 130ms ease-in-out;display:flex;flex-direction:row;align-items:center}.no-border.svelte-1e17jzv.svelte-1e17jzv{border-bottom:none}.action-container.svelte-1e17jzv.svelte-1e17jzv:last-child{border-bottom:1px solid var(--spectrum-global-color-gray-300) !important}.child.svelte-1e17jzv.svelte-1e17jzv{height:30px}.child.svelte-1e17jzv.svelte-1e17jzv:hover,.child.svelte-1e17jzv.svelte-1e17jzv:focus{background:var(--spectrum-global-color-gray-200)}.add-option.svelte-1e17jzv.svelte-1e17jzv{display:flex;flex-direction:row;align-items:center;padding:var(--spacing-m);gap:var(--spacing-m);cursor:pointer}.input-field.svelte-1e17jzv.svelte-1e17jzv{border:none;outline:none;background-color:transparent;width:100%;color:var(--text)}.child.svelte-1e17jzv input[type="text"].svelte-1e17jzv{padding-left:10px}.input-field.svelte-1e17jzv.svelte-1e17jzv:hover,.input-field.svelte-1e17jzv.svelte-1e17jzv:focus{background:var(--spectrum-global-color-gray-200)}.action-container.svelte-1e17jzv>.svelte-1e17jzv:nth-child(1){flex-grow:1;justify-content:center;display:flex}.action-container.svelte-1e17jzv>.svelte-1e17jzv:nth-child(2){flex-grow:1;display:flex;justify-content:center;align-items:center}.action-container.svelte-1e17jzv>.svelte-1e17jzv:nth-child(3){flex-grow:4;display:flex}.action-container.svelte-1e17jzv>.svelte-1e17jzv:nth-child(4){flex-grow:1;justify-content:center;display:flex}.circle.svelte-1e17jzv.svelte-1e17jzv{height:20px;width:20px;background-color:var(--color);border-radius:50%;display:inline-block;box-sizing:border-box}.circle-hover.svelte-1e17jzv.svelte-1e17jzv:hover{border:1px solid var(--spectrum-global-color-blue-400);cursor:pointer}.colors.svelte-1e17jzv.svelte-1e17jzv{display:grid;grid-template-columns:1fr 1fr 1fr;gap:var(--spacing-xl);justify-items:center;margin:var(--spacing-m)}');Gt(".bold.svelte-9amtlb{font-weight:bold;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--max-cell-width)}");Gt("code.svelte-e82i3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--max-cell-width)}");Gt(".error-message.svelte-wciay3{background:var(--spectrum-global-color-red-400);color:white;font-size:14px;padding:6px 16px;font-weight:500}");Gt(".fancy-field.svelte-17ywq9.svelte-17ywq9{background:var(--spectrum-global-color-gray-75);border:1px solid var(--spectrum-global-color-gray-300);border-radius:4px;box-sizing:border-box;transition:border-color 130ms ease-out, background 130ms ease-out,\n background 130ms ease-out;color:var(--spectrum-global-color-gray-800);--padding:16px;--height:64px}.fancy-field.compact.svelte-17ywq9.svelte-17ywq9{--padding:8px;--height:36px}.fancy-field.svelte-17ywq9.svelte-17ywq9:hover{border-color:var(--spectrum-global-color-gray-400)}.fancy-field.clickable.svelte-17ywq9.svelte-17ywq9:hover{background:var(--spectrum-global-color-gray-200);cursor:pointer}.fancy-field.focused.svelte-17ywq9.svelte-17ywq9{border-color:var(--spectrum-global-color-blue-400)}.fancy-field.error.svelte-17ywq9.svelte-17ywq9{border-color:var(--spectrum-global-color-red-400)}.fancy-field.disabled.svelte-17ywq9.svelte-17ywq9{background:var(--spectrum-global-color-gray-200);color:var(--spectrum-global-color-gray-400);border:1px solid var(--spectrum-global-color-gray-300);pointer-events:none}.content.svelte-17ywq9.svelte-17ywq9{position:relative;height:var(--height);padding:0 var(--padding)}.fancy-field.auto-height.svelte-17ywq9 .content.svelte-17ywq9{height:auto}.content.svelte-17ywq9.svelte-17ywq9,.field.svelte-17ywq9.svelte-17ywq9{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:var(--padding)}.field.svelte-17ywq9.svelte-17ywq9{flex:1 1 auto}.error-icon.svelte-17ywq9.svelte-17ywq9{flex:0 0 auto}.error-icon.svelte-17ywq9 .spectrum-Icon{fill:var(--spectrum-global-color-red-400)}");Gt("div.svelte-1yrw3p{font-size:14px;line-height:15px;font-weight:500;position:absolute;top:10px;color:var(--spectrum-global-color-gray-600);transition:font-size 130ms ease-out, top 130ms ease-out,\n transform 130ms ease-out}div.placeholder.svelte-1yrw3p{top:50%;font-size:15px;transform:translateY(-50%)}");Gt("input.svelte-1xkimai{width:100%;transition:transform 130ms ease-out;transform:translateY(9px);background:transparent;font-size:15px;line-height:17px;font-family:var(--font-sans);color:var(--spectrum-global-color-gray-900);outline:none;border:none;padding:0;margin:0}input.placeholder.svelte-1xkimai{transform:translateY(0);position:absolute;top:0;left:0;height:100%}.suffix.svelte-1xkimai{color:var(--spectrum-global-color-gray-600);transform:translateY(9px);font-size:15px;line-height:17px;font-family:var(--font-sans)}input.svelte-1xkimai:-webkit-autofill{border-radius:2px;-webkit-box-shadow:0 0 0 100px var(--spectrum-global-color-gray-300) inset;-webkit-text-fill-color:var(--spectrum-global-color-gray-900);transition:-webkit-box-shadow 130ms 200ms, background-color 0s 86400s;padding:3px 8px 4px 8px}");Gt("span.svelte-14uwzyc{pointer-events:none}.text.svelte-14uwzyc{font-size:15px;line-height:17px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}.text.compact.svelte-14uwzyc{font-size:13px;line-height:15px}.text.svelte-14uwzyc>*{font-size:inherit !important}");Gt("#picker-wrapper.svelte-18t7xb4 .spectrum-Picker{display:none}.value.svelte-18t7xb4{display:block;flex:1 1 auto;font-size:15px;line-height:17px;color:var(--spectrum-global-color-gray-900);transition:transform 130ms ease-out, opacity 130ms ease-out;opacity:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:0;transform:translateY(9px)}.align.svelte-18t7xb4{display:block;font-size:15px;line-height:17px;color:var(--spectrum-global-color-gray-900);transition:transform 130ms ease-out, opacity 130ms ease-out;transform:translateY(9px)}.arrow-alignment.svelte-18t7xb4{transform:translateY(-2px)}.value.placeholder.svelte-18t7xb4{transform:translateY(0);opacity:0;pointer-events:none;margin-top:0}");Gt("img.svelte-14pbp5s{width:22px}div.svelte-14pbp5s{font-size:var(--font-size-l)}");Gt(".fancy-form.svelte-1wjd4hl .fancy-field:not(:first-of-type){border-top-left-radius:0;border-top-right-radius:0}.fancy-form.svelte-1wjd4hl .fancy-field:not(:last-of-type){border-bottom-left-radius:0;border-bottom-right-radius:0}");Gt(".options.svelte-1mys7zf{margin-top:34px;margin-bottom:14px;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:6px;flex-wrap:wrap}.options.svelte-1mys7zf .spectrum-ActionButton{font-size:15px;line-height:17px;height:auto;padding:6px 10px}");Gt(".checkbox-group.has-select-all.svelte-2g5wlw .fancy-field:first-of-type{background:var(--spectrum-global-color-gray-100)}.checkbox-group.has-select-all.svelte-2g5wlw .fancy-field:first-of-type:hover{background:var(--spectrum-global-color-gray-200)}");function FC(e){let t,r,n;return{c(){t=Z("svg"),r=Z("use"),se(r,"xlink:href",n="#spectrum-icon-18-"+e[1]),ie(t,"class","spectrum-Icon spectrum-Icon--sizeM spectrum-Toast-typeIcon"),ie(t,"focusable","false"),ie(t,"aria-hidden","true")},m(e,n){U(e,t,n),V(t,r)},p(e,t){2&t&&n!==(n="#spectrum-icon-18-"+e[1])&&se(r,"xlink:href",n)},d(e){e&&X(t)}}}function jC(e){let t,r;return t=new eo({props:{quiet:!0,emphasized:!0,$$slots:{default:[qC]},$$scope:{ctx:e}}}),t.$on("click",e[8]),{c(){It(t.$$.fragment)},m(e,n){Bt(t,e,n),r=!0},p(e,r){const n={};1040&r&&(n.$$scope={dirty:r,ctx:e}),t.$set(n)},i(e){r||(lt(t.$$.fragment,e),r=!0)},o(e){ct(t.$$.fragment,e),r=!1},d(e){Dt(t,e)}}}function qC(e){let t,r;return{c(){t=Y("div"),r=K(e[4]),fe(t,"color","white"),fe(t,"font-weight","600")},m(e,n){U(e,t,n),V(t,r)},p(e,t){16&t&&me(r,e[4])},d(e){e&&X(t)}}}function UC(e){let r,n,i,a;return{c(){r=Y("div"),n=Y("button"),n.innerHTML='<div class="spectrum-ClearButton-fill"><svg class="spectrum-ClearButton-icon spectrum-Icon spectrum-UIIcon-Cross100" focusable="false" aria-hidden="true"><use xlink:href="#spectrum-css-icon-Cross100"></use></svg></div>',ie(n,"class","spectrum-ClearButton spectrum-ClearButton--overBackground spectrum-ClearButton--sizeM"),ie(r,"class","spectrum-Toast-buttons")},m(t,o){U(t,r,o),V(r,n),i||(a=ee(n,"click",e[9]),i=!0)},p:t,d(e){e&&X(r),i=!1,a()}}}function WC(e){let t,r,n,i,a,o,s,l,c,u=(e[2]||"")+"",p=e[1]&&FC(e),d=e[5]&&jC(e),h=e[3]&&UC(e);return{c(){t=Y("div"),p&&p.c(),r=J(),n=Y("div"),i=Y("div"),a=K(u),o=J(),d&&d.c(),s=J(),h&&h.c(),ie(i,"class","wrap spectrum-Toast-content svelte-cfyuun"),ie(n,"class","spectrum-Toast-body svelte-cfyuun"),ye(n,"actionBody",!!e[5]),ie(t,"class",l="spectrum-Toast spectrum-Toast--"+e[0]+" svelte-cfyuun"),ye(t,"wide",e[6])},m(e,l){U(e,t,l),p&&p.m(t,null),V(t,r),V(t,n),V(n,i),V(i,a),V(n,o),d&&d.m(n,null),V(t,s),h&&h.m(t,null),c=!0},p(e,[i]){e[1]?p?p.p(e,i):(p=FC(e),p.c(),p.m(t,r)):p&&(p.d(1),p=null),(!c||4&i)&&u!==(u=(e[2]||"")+"")&&me(a,u),e[5]?d?(d.p(e,i),32&i&<(d,1)):(d=jC(e),d.c(),lt(d,1),d.m(n,null)):d&&(ot(),ct(d,1,1,(()=>{d=null})),st()),32&i&&ye(n,"actionBody",!!e[5]),e[3]?h?h.p(e,i):(h=UC(e),h.c(),h.m(t,null)):h&&(h.d(1),h=null),(!c||1&i&&l!==(l="spectrum-Toast spectrum-Toast--"+e[0]+" svelte-cfyuun"))&&ie(t,"class",l),65&i&&ye(t,"wide",e[6])},i(e){c||(lt(d),c=!0)},o(e){ct(d),c=!1},d(e){e&&X(t),p&&p.d(),d&&d.d(),h&&h.d()}}}function XC(e,t,r){let{type:n="info"}=t,{icon:i="Info"}=t,{message:a=""}=t,{dismissable:o=!1}=t,{actionMessage:s=null}=t,{action:l=null}=t,{wide:c=!1}=t;const u=De();return e.$$set=e=>{"type"in e&&r(0,n=e.type),"icon"in e&&r(1,i=e.icon),"message"in e&&r(2,a=e.message),"dismissable"in e&&r(3,o=e.dismissable),"actionMessage"in e&&r(4,s=e.actionMessage),"action"in e&&r(5,l=e.action),"wide"in e&&r(6,c=e.wide)},[n,i,a,o,s,l,c,u,()=>l((()=>u("dismiss"))),()=>u("dismiss")]}Gt(".wrap.svelte-cfyuun{overflow-wrap:anywhere}.spectrum-Toast.svelte-cfyuun{pointer-events:all}.wide.svelte-cfyuun{width:100%}.actionBody.svelte-cfyuun{justify-content:space-between;display:flex;width:100%;align-items:center}");class GC extends Ot{constructor(e){super(),Ht(this,e,XC,WC,c,{type:0,icon:1,message:2,dismissable:3,actionMessage:4,action:5,wide:6})}}Gt(".notifications.svelte-1m17u8b{position:fixed;bottom:40px;left:0;right:0;margin:0 auto;padding:0;z-index:9999;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;pointer-events:none;gap:10px}");var YC='<?xml version="1.0"?>\n<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 48 48" height="48px" viewBox="0 0 48 48" width="48px" xml:space="preserve">\n <g>\n <g>\n <path d="M9,42H3c-0.552,0-1-0.449-1-1v-3.5C2,37.224,2.224,37,2.5,37S3,37.224,3,37.5V41h6 c0.276,0,0.5,0.224,0.5,0.5S9.276,42,9,42z"/>\n <path d="M45,42h-6c-0.276,0-0.5-0.224-0.5-0.5S38.724,41,39,41h6V13H3v27c0,0.276-0.224,0.5-0.5,0.5S2,40.276,2,40 V12h44v29C46,41.551,45.552,42,45,42z"/>\n <g>\n <path d="M45.5,13h-43C2.224,13,2,12.776,2,12.5v-5C2,6.673,2.673,6,3.5,6h41C45.327,6,46,6.673,46,7.5v5 C46,12.776,45.776,13,45.5,13z M3,12h42V7.5C45,7.224,44.775,7,44.5,7h-41C3.225,7,3,7.224,3,7.5V12z"/>\n </g>\n <g>\n <g>\n <path d="M16.5,11c-0.827,0-1.5-0.673-1.5-1.5S15.673,8,16.5,8S18,8.673,18,9.5S17.327,11,16.5,11z M16.5,9 C16.225,9,16,9.224,16,9.5s0.225,0.5,0.5,0.5S17,9.776,17,9.5S16.775,9,16.5,9z"/>\n </g>\n <g>\n <path d="M11.5,11c-0.827,0-1.5-0.673-1.5-1.5S10.673,8,11.5,8S13,8.673,13,9.5S12.327,11,11.5,11z M11.5,9 C11.225,9,11,9.224,11,9.5s0.225,0.5,0.5,0.5S12,9.776,12,9.5S11.775,9,11.5,9z"/>\n </g>\n <g>\n <path d="M6.5,11C5.673,11,5,10.327,5,9.5S5.673,8,6.5,8S8,8.673,8,9.5S7.327,11,6.5,11z M6.5,9 C6.225,9,6,9.224,6,9.5S6.225,10,6.5,10S7,9.776,7,9.5S6.775,9,6.5,9z"/>\n </g>\n </g>\n </g>\n <g>\n <g>\n <path d="M35.696,44H12.304c-0.728,0-1.313-0.284-1.605-0.779c-0.289-0.489-0.259-1.126,0.084-1.749L22.58,19.996 c0.709-1.285,2.132-1.285,2.839,0l11.799,21.477v0c0.343,0.623,0.373,1.26,0.084,1.749C37.01,43.716,36.424,44,35.696,44z M24,20 c-0.176,0-0.379,0.179-0.544,0.478L11.659,41.954c-0.168,0.306-0.205,0.582-0.101,0.758C11.667,42.895,11.938,43,12.304,43 h23.393c0.365,0,0.637-0.105,0.745-0.288c0.104-0.177,0.067-0.453-0.101-0.758v0L24.543,20.478C24.379,20.179,24.176,20,24,20z"/>\n </g>\n <g>\n <path d="M24,36L24,36c-0.225,0-0.421-0.15-0.481-0.366C23.456,35.412,22,30.169,22,28c0-1.103,0.897-2,2-2 s2,0.897,2,2c0,2.232-1.457,7.417-1.519,7.636C24.42,35.851,24.224,36,24,36z M24,27c-0.552,0-1,0.449-1,1 c0,1.266,0.569,3.793,1.002,5.531C24.435,31.806,25,29.301,25,28C25,27.449,24.552,27,24,27z"/>\n </g>\n <g>\n <path d="M24,41c-1.103,0-2-0.897-2-2s0.897-2,2-2s2,0.897,2,2S25.103,41,24,41z M24,38c-0.552,0-1,0.449-1,1 s0.448,1,1,1s1-0.449,1-1S24.552,38,24,38z"/>\n </g>\n </g>\n </g>\n</svg>',ZC=gi((function(e){var t,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o={};((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(o,{APP_QUOTA_NAMES:()=>it,AccountSSOProvider:()=>ie,AccountSSOProviderType:()=>ne,AnalyticsEvent:()=>G,AppBackupStatus:()=>Ne,AppBackupTrigger:()=>Fe,AppBackupType:()=>Ve,AppEnvironment:()=>U,AsyncEvents:()=>u,AuditLogResourceStatus:()=>pt,AuditLogSystemUser:()=>ct,AuditedEventFriendlyName:()=>p,AuthType:()=>se,AutoFieldSubTypes:()=>Ce,AutoReason:()=>Ae,AutomationActionStepId:()=>de,AutomationCustomIOType:()=>ce,AutomationFeature:()=>me,AutomationIOType:()=>le,AutomationStatus:()=>fe,AutomationStepIdArray:()=>he,AutomationStepStatus:()=>ge,AutomationStepType:()=>pe,AutomationTriggerStepId:()=>ue,BREAKDOWN_QUOTA_NAMES:()=>at,BreakdownQuotaName:()=>nt,CommandWord:()=>W,ConfigType:()=>Ye,ConstantQuotaName:()=>w,DatasourceFeature:()=>H,DatasourceFieldType:()=>E,DocumentType:()=>He,DocumentTypesToImport:()=>Oe,EmptyFilterOption:()=>O,Event:()=>l,EventPublishType:()=>dt,Feature:()=>C,FeatureFlag:()=>q,FieldSubtype:()=>we,FieldType:()=>xe,FieldTypeSubtypes:()=>ze,FilterType:()=>D,FormulaTypes:()=>Se,GroupType:()=>d,Hosting:()=>s,INTERNAL_TABLE_SOURCE_ID:()=>be,IdentityType:()=>h,IncludeRelationship:()=>B,InitType:()=>X,InternalTable:()=>Pe,LockName:()=>R,LockType:()=>P,MigrationName:()=>_,MigrationType:()=>S,MonthlyQuotaName:()=>x,Operation:()=>T,PASSWORD_REPLACEMENT:()=>M,PLUGIN_TYPE_ARR:()=>rt,PermissionLevel:()=>Y,PermissionSource:()=>K,PermissionType:()=>Z,PingSource:()=>ut,PlanModel:()=>f,PlanType:()=>m,PluginSource:()=>tt,PluginType:()=>et,PriceDuration:()=>g,QueryType:()=>L,QuotaType:()=>b,QuotaUsageType:()=>v,RelationshipType:()=>ke,RestAuthType:()=>ve,SEPARATOR:()=>Ie,SSOProviderType:()=>Ze,ScheduleRepeatPeriod:()=>st,ScheduleType:()=>ot,SearchIndex:()=>V,SearchQueryOperators:()=>gt,ServiceType:()=>ft,SortDirection:()=>$,SortOption:()=>N,SortOrder:()=>ht,SortType:()=>mt,SourceName:()=>I,StaticQuotaName:()=>y,TableSourceType:()=>ye,TenantResolutionStrategy:()=>j,UNICODE_MAX:()=>Be,UserGroupSyncEvents:()=>c,UserStatus:()=>Je,ViewCalculation:()=>Ee,VirtualDocumentType:()=>Re,WebhookActionType:()=>je,isAppBackupMetadata:()=>lt,isBBReferenceField:()=>Le,isCloudAccount:()=>ee,isConstantQuota:()=>A,isCreatePasswordAccount:()=>J,isDocument:()=>F,isGoogleConfig:()=>We,isManyToMany:()=>Me,isManyToOne:()=>$e,isMonthlyQuota:()=>k,isOIDCConfig:()=>Xe,isOneToMany:()=>Te,isPasswordAccount:()=>Q,isRelationshipField:()=>_e,isSCIMConfig:()=>Ge,isSMTPConfig:()=>Ue,isSSOAccount:()=>re,isSSOUser:()=>Ke,isSelfHostAccount:()=>te,isSettingsConfig:()=>qe,isStaticQuota:()=>z,isUser:()=>Qe,isVerifiableSSOProvider:()=>oe,prefixed:()=>De}),e.exports=(t=o,((e,t,o,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of i(t))a.call(e,l)||l===o||r(e,l,{get:()=>t[l],enumerable:!(s=n(t,l))||s.enumerable});return e})(r({},"__esModule",{value:!0}),t));var s=(e=>(e.CLOUD="cloud",e.SELF="self",e))(s||{}),l=(e=>(e.USER_CREATED="user:created",e.USER_UPDATED="user:updated",e.USER_DELETED="user:deleted",e.USER_ONBOARDING_COMPLETE="user:onboarding:complete",e.USER_PERMISSION_ADMIN_ASSIGNED="user:admin:assigned",e.USER_PERMISSION_ADMIN_REMOVED="user:admin:removed",e.USER_PERMISSION_BUILDER_ASSIGNED="user:builder:assigned",e.USER_PERMISSION_BUILDER_REMOVED="user:builder:removed",e.USER_INVITED="user:invited",e.USER_INVITED_ACCEPTED="user:invite:accepted",e.USER_PASSWORD_FORCE_RESET="user:password:force:reset",e.USER_PASSWORD_UPDATED="user:password:updated",e.USER_PASSWORD_RESET_REQUESTED="user:password:reset:requested",e.USER_PASSWORD_RESET="user:password:reset",e.USER_DATA_COLLABORATION="user:data:collaboration",e.EMAIL_SMTP_CREATED="email:smtp:created",e.EMAIL_SMTP_UPDATED="email:smtp:updated",e.AUTH_SSO_CREATED="auth:sso:created",e.AUTH_SSO_UPDATED="auth:sso:updated",e.AUTH_SSO_ACTIVATED="auth:sso:activated",e.AUTH_SSO_DEACTIVATED="auth:sso:deactivated",e.AUTH_LOGIN="auth:login",e.AUTH_LOGOUT="auth:logout",e.ORG_NAME_UPDATED="org:info:name:updated",e.ORG_LOGO_UPDATED="org:info:logo:updated",e.ORG_PLATFORM_URL_UPDATED="org:platformurl:updated",e.INSTALLATION_VERSION_CHECKED="installation:version:checked",e.INSTALLATION_VERSION_UPGRADED="installation:version:upgraded",e.INSTALLATION_VERSION_DOWNGRADED="installation:version:downgraded",e.INSTALLATION_FIRST_STARTUP="installation:firstStartup",e.ANALYTICS_OPT_OUT="analytics:opt:out",e.ANALYTICS_OPT_IN="analytics:opt:in",e.APP_CREATED="app:created",e.APP_UPDATED="app:updated",e.APP_DELETED="app:deleted",e.APP_PUBLISHED="app:published",e.APP_UNPUBLISHED="app:unpublished",e.APP_TEMPLATE_IMPORTED="app:template:imported",e.APP_FILE_IMPORTED="app:file:imported",e.APP_VERSION_UPDATED="app:version:updated",e.APP_VERSION_REVERTED="app:version:reverted",e.APP_REVERTED="app:reverted",e.APP_EXPORTED="app:exported",e.ROLE_CREATED="role:created",e.ROLE_UPDATED="role:updated",e.ROLE_DELETED="role:deleted",e.ROLE_ASSIGNED="role:assigned",e.ROLE_UNASSIGNED="role:unassigned",e.SERVED_BUILDER="served:builder",e.SERVED_APP="served:app",e.SERVED_APP_PREVIEW="served:app:preview",e.DATASOURCE_CREATED="datasource:created",e.DATASOURCE_UPDATED="datasource:updated",e.DATASOURCE_DELETED="datasource:deleted",e.QUERY_CREATED="query:created",e.QUERY_UPDATED="query:updated",e.QUERY_DELETED="query:deleted",e.QUERY_IMPORT="query:import",e.QUERIES_RUN="queries:run",e.QUERY_PREVIEWED="query:previewed",e.TABLE_CREATED="table:created",e.TABLE_UPDATED="table:updated",e.TABLE_DELETED="table:deleted",e.TABLE_EXPORTED="table:exported",e.TABLE_IMPORTED="table:imported",e.TABLE_DATA_IMPORTED="table:data:imported",e.VIEW_CREATED="view:created",e.VIEW_UPDATED="view:updated",e.VIEW_DELETED="view:deleted",e.VIEW_EXPORTED="view:exported",e.VIEW_FILTER_CREATED="view:filter:created",e.VIEW_FILTER_UPDATED="view:filter:updated",e.VIEW_FILTER_DELETED="view:filter:deleted",e.VIEW_CALCULATION_CREATED="view:calculation:created",e.VIEW_CALCULATION_UPDATED="view:calculation:updated",e.VIEW_CALCULATION_DELETED="view:calculation:deleted",e.ROWS_CREATED="rows:created",e.ROWS_IMPORTED="rows:imported",e.COMPONENT_CREATED="component:created",e.COMPONENT_DELETED="component:deleted",e.SCREEN_CREATED="screen:created",e.SCREEN_DELETED="screen:deleted",e.LAYOUT_CREATED="layout:created",e.LAYOUT_DELETED="layout:deleted",e.AUTOMATION_CREATED="automation:created",e.AUTOMATION_DELETED="automation:deleted",e.AUTOMATION_TESTED="automation:tested",e.AUTOMATIONS_RUN="automations:run",e.AUTOMATION_STEP_CREATED="automation:step:created",e.AUTOMATION_STEP_DELETED="automation:step:deleted",e.AUTOMATION_TRIGGER_UPDATED="automation:trigger:updated",e.LICENSE_PLAN_CHANGED="license:plan:changed",e.LICENSE_ACTIVATED="license:activated",e.LICENSE_PAYMENT_FAILED="license:payment:failed",e.LICENSE_PAYMENT_RECOVERED="license:payment:recovered",e.LICENSE_CHECKOUT_OPENED="license:checkout:opened",e.LICENSE_CHECKOUT_SUCCESS="license:checkout:success",e.LICENSE_PORTAL_OPENED="license:portal:opened",e.ACCOUNT_CREATED="account:created",e.ACCOUNT_DELETED="account:deleted",e.ACCOUNT_VERIFIED="account:verified",e.APP_BACKFILL_SUCCEEDED="app:backfill:succeeded",e.APP_BACKFILL_FAILED="app:backfill:failed",e.TENANT_BACKFILL_SUCCEEDED="tenant:backfill:succeeded",e.TENANT_BACKFILL_FAILED="tenant:backfill:failed",e.INSTALLATION_BACKFILL_SUCCEEDED="installation:backfill:succeeded",e.INSTALLATION_BACKFILL_FAILED="installation:backfill:failed",e.USER_GROUP_CREATED="user_group:created",e.USER_GROUP_UPDATED="user_group:updated",e.USER_GROUP_DELETED="user_group:deleted",e.USER_GROUP_USERS_ADDED="user_group:user_added",e.USER_GROUP_USERS_REMOVED="user_group:users_deleted",e.USER_GROUP_PERMISSIONS_EDITED="user_group:permissions_edited",e.USER_GROUP_ONBOARDING="user_group:onboarding_added",e.PLUGIN_INIT="plugin:init",e.PLUGIN_IMPORTED="plugin:imported",e.PLUGIN_DELETED="plugin:deleted",e.APP_BACKUP_RESTORED="app:backup:restored",e.APP_BACKUP_TRIGGERED="app:backup:triggered",e.ENVIRONMENT_VARIABLE_CREATED="environment_variable:created",e.ENVIRONMENT_VARIABLE_DELETED="environment_variable:deleted",e.ENVIRONMENT_VARIABLE_UPGRADE_PANEL_OPENED="environment_variable:upgrade_panel_opened",e.AUDIT_LOGS_FILTERED="audit_log:filtered",e.AUDIT_LOGS_DOWNLOADED="audit_log:downloaded",e))(l||{}),c=["user:created","user:updated","user:deleted","user:admin:assigned","user:admin:removed","user:builder:assigned","user:builder:removed","user_group:created","user_group:updated","user_group:deleted","user_group:user_added","user_group:users_deleted","user_group:permissions_edited"],u=[...c],p={"user:created":'User "{{ email }}" created{{#if viaScim}} via SCIM{{/if}}',"user:updated":'User "{{ email }}" updated{{#if viaScim}} via SCIM{{/if}}',"user:deleted":'User "{{ email }}" deleted{{#if viaScim}} via SCIM{{/if}}',"user:admin:assigned":'User "{{ email }}" admin role assigned',"user:admin:removed":'User "{{ email }}" admin role removed',"user:builder:assigned":'User "{{ email }}" builder role assigned',"user:builder:removed":'User "{{ email }}" builder role removed',"user:invited":'User "{{ email }}" invited',"user:invite:accepted":'User "{{ email }}" accepted invite',"user:password:updated":'User "{{ email }}" password updated',"user:password:reset:requested":'User "{{ email }}" password reset requested',"user:password:reset":'User "{{ email }}" password reset',"user_group:created":'User group "{{ name }}" created{{#if viaScim}} via SCIM{{/if}}',"user_group:updated":'User group "{{ name }}" updated{{#if viaScim}} via SCIM{{/if}}',"user_group:deleted":'User group "{{ name }}" deleted{{#if viaScim}} via SCIM{{/if}}',"user_group:user_added":'User group "{{ name }}" {{ count }} users added{{#if viaScim}} via SCIM{{/if}}',"user_group:users_deleted":'User group "{{ name }}" {{ count }} users removed{{#if viaScim}} via SCIM{{/if}}',"user_group:permissions_edited":'User group "{{ name }}" permissions edited',"user:password:force:reset":void 0,"user_group:onboarding_added":void 0,"user:onboarding:complete":void 0,"user:data:collaboration":void 0,"email:smtp:created":"Email configuration created","email:smtp:updated":"Email configuration updated","auth:sso:created":"SSO configuration created","auth:sso:updated":"SSO configuration updated","auth:sso:activated":"SSO configuration activated","auth:sso:deactivated":"SSO configuration deactivated","auth:login":'User "{{ email }}" logged in',"auth:logout":'User "{{ email }}" logged out',"org:info:name:updated":"Organisation name updated","org:info:logo:updated":"Organisation logo updated","org:platformurl:updated":"Organisation platform URL updated","app:created":'App "{{ name }}" created',"app:updated":'App "{{ name }}" updated',"app:deleted":'App "{{ name }}" deleted',"app:published":'App "{{ name }}" published',"app:unpublished":'App "{{ name }}" unpublished',"app:template:imported":'App "{{ name }}" template imported',"app:file:imported":'App "{{ name }}" file imported',"app:version:updated":'App "{{ name }}" version updated',"app:version:reverted":'App "{{ name }}" version reverted',"app:reverted":'App "{{ name }}" reverted',"app:exported":'App "{{ name }}" exported',"app:backup:restored":'App backup "{{ name }}" restored',"app:backup:triggered":'App backup "{{ name }}" triggered',"datasource:created":"Datasource created","datasource:updated":"Datasource updated","datasource:deleted":"Datasource deleted","query:created":"Query created","query:updated":"Query updated","query:deleted":"Query deleted","query:import":"Query import","queries:run":void 0,"query:previewed":void 0,"table:created":'Table "{{ name }}" created',"table:updated":'Table "{{ name }}" updated',"table:deleted":'Table "{{ name }}" deleted',"table:exported":'Table "{{ name }}" exported',"table:imported":'Table "{{ name }}" imported',"table:data:imported":"Data imported to table","rows:created":"Rows created","rows:imported":"Rows imported","automation:created":'Automation "{{ name }}" created',"automation:deleted":'Automation "{{ name }}" deleted',"automation:step:created":'Automation "{{ name }}" step added',"automation:step:deleted":'Automation "{{ name }}" step removed',"automation:tested":void 0,"automations:run":void 0,"automation:trigger:updated":void 0,"screen:created":'Screen "{{ name }}" created',"screen:deleted":'Screen "{{ name }}" deleted',"component:created":"Component created","component:deleted":"Component deleted","environment_variable:created":"Environment variable created","environment_variable:deleted":"Environment variable deleted","environment_variable:upgrade_panel_opened":void 0,"plugin:imported":"Plugin imported","plugin:deleted":"Plugin deleted","plugin:init":void 0,"role:created":void 0,"role:updated":void 0,"role:deleted":void 0,"role:assigned":void 0,"role:unassigned":void 0,"license:plan:changed":void 0,"license:activated":void 0,"license:payment:failed":void 0,"license:payment:recovered":void 0,"license:checkout:opened":void 0,"license:checkout:success":void 0,"license:portal:opened":void 0,"account:created":void 0,"account:deleted":void 0,"account:verified":void 0,"app:backfill:succeeded":void 0,"app:backfill:failed":void 0,"tenant:backfill:succeeded":void 0,"tenant:backfill:failed":void 0,"installation:backfill:succeeded":void 0,"installation:backfill:failed":void 0,"layout:created":void 0,"layout:deleted":void 0,"view:created":void 0,"view:updated":void 0,"view:deleted":void 0,"view:exported":void 0,"view:filter:created":void 0,"view:filter:updated":void 0,"view:filter:deleted":void 0,"view:calculation:created":void 0,"view:calculation:updated":void 0,"view:calculation:deleted":void 0,"served:builder":void 0,"served:app":void 0,"served:app:preview":void 0,"analytics:opt:out":void 0,"analytics:opt:in":void 0,"installation:version:checked":void 0,"installation:version:upgraded":void 0,"installation:version:downgraded":void 0,"installation:firstStartup":void 0,"audit_log:filtered":void 0,"audit_log:downloaded":void 0},d=(e=>(e.TENANT="tenant",e.INSTALLATION="installation",e))(d||{}),h=(e=>(e.USER="user",e.TENANT="tenant",e.INSTALLATION="installation",e))(h||{}),m=(e=>(e.FREE="free",e.PRO="pro",e.TEAM="team",e.PREMIUM="premium",e.PREMIUM_PLUS="premium_plus",e.BUSINESS="business",e.ENTERPRISE_BASIC="enterprise_basic",e.ENTERPRISE="enterprise",e))(m||{}),g=(e=>(e.MONTHLY="monthly",e.YEARLY="yearly",e))(g||{}),f=(e=>(e.PER_USER="perUser",e.PER_CREATOR_PER_USER="per_creator_per_user",e.DAY_PASS="dayPass",e))(f||{}),v=(e=>(e.STATIC="static",e.MONTHLY="monthly",e))(v||{}),b=(e=>(e.USAGE="usage",e.CONSTANT="constant",e))(b||{}),y=(e=>(e.ROWS="rows",e.APPS="apps",e.USERS="users",e.CREATORS="creators",e.USER_GROUPS="userGroups",e.PLUGINS="plugins",e))(y||{}),x=(e=>(e.QUERIES="queries",e.AUTOMATIONS="automations",e.DAY_PASSES="dayPasses",e))(x||{}),w=(e=>(e.AUTOMATION_LOG_RETENTION_DAYS="automationLogRetentionDays",e.APP_BACKUPS_RETENTION_DAYS="appBackupRetentionDays",e))(w||{}),z=(e,t,r)=>"usage"===e&&"static"===t,k=(e,t,r)=>"usage"===e&&"monthly"===t,A=(e,t)=>"constant"===e,C=(e=>(e.USER_GROUPS="userGroups",e.APP_BACKUPS="appBackups",e.ENVIRONMENT_VARIABLES="environmentVariables",e.AUDIT_LOGS="auditLogs",e.ENFORCEABLE_SSO="enforceableSSO",e.BRANDING="branding",e.SCIM="scim",e.SYNC_AUTOMATIONS="syncAutomations",e.APP_BUILDERS="appBuilders",e.OFFLINE="offline",e.EXPANDED_PUBLIC_API="expandedPublicApi",e.VIEW_PERMISSIONS="viewPermissions",e))(C||{}),S=(e=>(e.GLOBAL="global",e.APP="app",e.INSTALLATION="installation",e))(S||{}),_=(e=>(e.USER_EMAIL_VIEW_CASING="user_email_view_casing",e.APP_URLS="app_urls",e.EVENT_APP_BACKFILL="event_app_backfill",e.EVENT_GLOBAL_BACKFILL="event_global_backfill",e.EVENT_INSTALLATION_BACKFILL="event_installation_backfill",e.GLOBAL_INFO_SYNC_USERS="global_info_sync_users",e.TABLE_SETTINGS_LINKS_TO_ACTIONS="table_settings_links_to_actions",e.SYNC_QUOTAS="sync_quotas_2",e))(_||{}),M="--secret-value--",T=(e=>(e.CREATE="CREATE",e.READ="READ",e.UPDATE="UPDATE",e.DELETE="DELETE",e.BULK_CREATE="BULK_CREATE",e.CREATE_TABLE="CREATE_TABLE",e.UPDATE_TABLE="UPDATE_TABLE",e.DELETE_TABLE="DELETE_TABLE",e))(T||{}),$=(e=>(e.ASCENDING="ASCENDING",e.DESCENDING="DESCENDING",e))($||{}),L=(e=>(e.SQL="sql",e.JSON="json",e.FIELDS="fields",e))(L||{}),E=(e=>(e.STRING="string",e.CODE="code",e.LONGFORM="longForm",e.BOOLEAN="boolean",e.NUMBER="number",e.PASSWORD="password",e.LIST="list",e.OBJECT="object",e.JSON="json",e.FILE="file",e.FIELD_GROUP="fieldGroup",e.SELECT="select",e))(E||{}),I=(e=>(e.POSTGRES="POSTGRES",e.DYNAMODB="DYNAMODB",e.MONGODB="MONGODB",e.ELASTICSEARCH="ELASTICSEARCH",e.COUCHDB="COUCHDB",e.SQL_SERVER="SQL_SERVER",e.S3="S3",e.AIRTABLE="AIRTABLE",e.MYSQL="MYSQL",e.ARANGODB="ARANGODB",e.REST="REST",e.ORACLE="ORACLE",e.GOOGLE_SHEETS="GOOGLE_SHEETS",e.FIRESTORE="FIRESTORE",e.REDIS="REDIS",e.SNOWFLAKE="SNOWFLAKE",e))(I||{}),B=(e=>(e[e.INCLUDE=1]="INCLUDE",e[e.EXCLUDE=0]="EXCLUDE",e))(B||{}),D=(e=>(e.STRING="string",e.FUZZY="fuzzy",e.RANGE="range",e.EQUAL="equal",e.NOT_EQUAL="notEqual",e.EMPTY="empty",e.NOT_EMPTY="notEmpty",e.ONE_OF="oneOf",e))(D||{}),H=(e=>(e.CONNECTION_CHECKING="connection",e.FETCH_TABLE_NAMES="fetch_table_names",e.EXPORT_SCHEMA="export_schema",e))(H||{}),O=(e=>(e.RETURN_ALL="all",e.RETURN_NONE="none",e))(O||{}),P=(e=>(e.TRY_ONCE="try_once",e.TRY_TWICE="try_twice",e.DEFAULT="default",e.DELAY_500="delay_500",e.CUSTOM="custom",e))(P||{}),R=(e=>(e.MIGRATIONS="migrations",e.TRIGGER_QUOTA="trigger_quota",e.SYNC_ACCOUNT_LICENSE="sync_account_license",e.UPDATE_TENANTS_DOC="update_tenants_doc",e.PERSIST_WRITETHROUGH="persist_writethrough",e.QUOTA_USAGE_EVENT="quota_usage_event",e))(R||{}),V=(e=>(e.ROWS="rows",e.AUDIT="audit",e.USER="user",e))(V||{}),N=(e=>(e.ASCENDING="asc",e.DESCENDING="desc",e))(N||{}),F=e=>"object"==typeof e&&e._id&&e._rev,j=(e=>(e.USER="user",e.HEADER="header",e.QUERY="query",e.SUBDOMAIN="subdomain",e.PATH="path",e))(j||{}),q=(e=>(e.LICENSING="LICENSING",e.PER_CREATOR_PER_USER_PRICE="PER_CREATOR_PER_USER_PRICE",e.PER_CREATOR_PER_USER_PRICE_ALERT="PER_CREATOR_PER_USER_PRICE_ALERT",e))(q||{}),U=(e=>(e.PRODUCTION="production",e.DEVELOPMENT="development",e))(U||{}),W=(e=>(e.BACKUPS="backups",e.HOSTING="hosting",e.ANALYTICS="analytics",e.HELP="help",e.PLUGIN="plugins",e))(W||{}),X=(e=>(e.QUICK="quick",e.DIGITAL_OCEAN="do",e))(X||{}),G={OptOut:"analytics:opt:out",OptIn:"analytics:opt:in",SelfHostInit:"hosting:init",PluginInit:"plugin:init"},Y=(e=>(e.READ="read",e.WRITE="write",e.EXECUTE="execute",e.ADMIN="admin",e))(Y||{}),Z=(e=>(e.APP="app",e.TABLE="table",e.USER="user",e.AUTOMATION="automation",e.WEBHOOK="webhook",e.BUILDER="builder",e.GLOBAL_BUILDER="globalBuilder",e.QUERY="query",e.VIEW="view",e.LEGACY_VIEW="legacy_view",e))(Z||{}),K=(e=>(e.EXPLICIT="EXPLICIT",e.INHERITED="INHERITED",e.BASE="BASE",e))(K||{}),J=e=>"password"===e.authType,Q=e=>"password"===e.authType&&"self"===e.hosting,ee=e=>"cloud"===e.hosting,te=e=>"self"===e.hosting,re=e=>"sso"===e.authType,ne=(e=>(e.GOOGLE="google",e.MICROSOFT="microsoft",e))(ne||{}),ie=(e=>(e.GOOGLE="google",e.MICROSOFT="microsoft",e))(ie||{}),ae=["microsoft"];function oe(e){return ae.includes(e)}var se=(e=>(e.SSO="sso",e.PASSWORD="password",e))(se||{}),le=(e=>(e.OBJECT="object",e.STRING="string",e.BOOLEAN="boolean",e.NUMBER="number",e.ARRAY="array",e.JSON="json",e.DATE="date",e))(le||{}),ce=(e=>(e.TABLE="table",e.ROW="row",e.ROWS="rows",e.WIDE="wide",e.QUERY="query",e.QUERY_PARAMS="queryParams",e.QUERY_LIMIT="queryLimit",e.LOOP_OPTION="loopOption",e.ITEM="item",e.CODE="code",e.FILTERS="filters",e.COLUMN="column",e.TRIGGER_SCHEMA="triggerSchema",e.CRON="cron",e.WEBHOOK_URL="webhookUrl",e))(ce||{}),ue=(e=>(e.ROW_SAVED="ROW_SAVED",e.ROW_UPDATED="ROW_UPDATED",e.ROW_DELETED="ROW_DELETED",e.WEBHOOK="WEBHOOK",e.APP="APP",e.CRON="CRON",e))(ue||{}),pe=(e=>(e.LOGIC="LOGIC",e.ACTION="ACTION",e.TRIGGER="TRIGGER",e))(pe||{}),de=(e=>(e.SEND_EMAIL_SMTP="SEND_EMAIL_SMTP",e.CREATE_ROW="CREATE_ROW",e.UPDATE_ROW="UPDATE_ROW",e.DELETE_ROW="DELETE_ROW",e.EXECUTE_BASH="EXECUTE_BASH",e.OUTGOING_WEBHOOK="OUTGOING_WEBHOOK",e.EXECUTE_SCRIPT="EXECUTE_SCRIPT",e.EXECUTE_QUERY="EXECUTE_QUERY",e.SERVER_LOG="SERVER_LOG",e.DELAY="DELAY",e.FILTER="FILTER",e.QUERY_ROWS="QUERY_ROWS",e.LOOP="LOOP",e.COLLECT="COLLECT",e.OPENAI="OPENAI",e.discord="discord",e.slack="slack",e.zapier="zapier",e.integromat="integromat",e))(de||{}),he=[...Object.values(de),...Object.values(ue)],me=(e=>(e.LOOPING="LOOPING",e))(me||{}),ge=(e=>(e.NO_ITERATIONS="no_iterations",e))(ge||{}),fe=(e=>(e.SUCCESS="success",e.ERROR="error",e.STOPPED="stopped",e.STOPPED_ERROR="stopped_error",e))(fe||{}),ve=(e=>(e.BASIC="basic",e.BEARER="bearer",e))(ve||{}),be="bb_internal",ye=(e=>(e.EXTERNAL="external",e.INTERNAL="internal",e))(ye||{}),xe=(e=>(e.STRING="string",e.LONGFORM="longform",e.OPTIONS="options",e.NUMBER="number",e.BOOLEAN="boolean",e.ARRAY="array",e.DATETIME="datetime",e.ATTACHMENT="attachment",e.LINK="link",e.FORMULA="formula",e.AUTO="auto",e.JSON="json",e.INTERNAL="internal",e.BARCODEQR="barcodeqr",e.BIGINT="bigint",e.BB_REFERENCE="bb_reference",e))(xe||{}),we=(e=>(e.USER="user",e.USERS="users",e))(we||{}),ze={BB_REFERENCE:{USER:"user",USERS:"users"}},ke=(e=>(e.ONE_TO_MANY="one-to-many",e.MANY_TO_ONE="many-to-one",e.MANY_TO_MANY="many-to-many",e))(ke||{}),Ae=(e=>(e.FOREIGN_KEY="foreign_key",e))(Ae||{}),Ce=(e=>(e.CREATED_BY="createdBy",e.CREATED_AT="createdAt",e.UPDATED_BY="updatedBy",e.UPDATED_AT="updatedAt",e.AUTO_ID="autoID",e))(Ce||{}),Se=(e=>(e.STATIC="static",e.DYNAMIC="dynamic",e))(Se||{});function _e(e){return"link"===e.type}function Me(e){return"many-to-many"===e.relationshipType}function Te(e){return"one-to-many"===e.relationshipType}function $e(e){return"many-to-one"===e.relationshipType}function Le(e){return"bb_reference"===e.type}var Ee=(e=>(e.SUM="sum",e.COUNT="count",e.STATISTICS="stats",e))(Ee||{}),Ie="_",Be="",De=e=>`${e}${Ie}`,He=(e=>(e.USER="us",e.GROUP="gr",e.WORKSPACE="workspace",e.CONFIG="config",e.TEMPLATE="template",e.APP="app",e.DEV="dev",e.APP_DEV="app_dev",e.APP_METADATA="app_metadata",e.ROLE="role",e.MIGRATIONS="migrations",e.DEV_INFO="devinfo",e.AUTOMATION_LOG="log_au",e.ACCOUNT_METADATA="acc_metadata",e.PLUGIN="plg",e.DATASOURCE="datasource",e.DATASOURCE_PLUS="datasource_plus",e.APP_BACKUP="backup",e.TABLE="ta",e.ROW="ro",e.AUTOMATION="au",e.LINK="li",e.WEBHOOK="wh",e.INSTANCE="inst",e.LAYOUT="layout",e.SCREEN="screen",e.QUERY="query",e.DEPLOYMENTS="deployments",e.METADATA="metadata",e.MEM_VIEW="view",e.USER_FLAG="flag",e.AUTOMATION_METADATA="meta_au",e.AUDIT_LOG="al",e))(He||{}),Oe=["role","datasource","datasource_plus","ta","au","wh","screen","query","metadata","view","inst","layout"],Pe=(e=>(e.USER_METADATA="ta_users",e))(Pe||{}),Re=(e=>(e.VIEW="view",e))(Re||{}),Ve=(e=>(e.BACKUP="backup",e.RESTORE="restore",e))(Ve||{}),Ne=(e=>(e.STARTED="started",e.PENDING="pending",e.COMPLETE="complete",e.FAILED="failed",e))(Ne||{}),Fe=(e=>(e.PUBLISH="publish",e.MANUAL="manual",e.SCHEDULED="scheduled",e.RESTORING="restoring",e))(Fe||{}),je=(e=>(e.AUTOMATION="automation",e))(je||{}),qe=e=>"settings"===e.type,Ue=e=>"smtp"===e.type,We=e=>"google"===e.type,Xe=e=>"oidc"===e.type,Ge=e=>"scim"===e.type,Ye=(e=>(e.SETTINGS="settings",e.ACCOUNT="account",e.SMTP="smtp",e.GOOGLE="google",e.OIDC="oidc",e.OIDC_LOGOS="logos_oidc",e.SCIM="scim",e))(Ye||{}),Ze=(e=>(e.OIDC="oidc",e.GOOGLE="google",e))(Ze||{});function Ke(e){return!!e.providerType}var Je=(e=>(e.ACTIVE="active",e.INACTIVE="inactive",e))(Je||{});function Qe(e){return!!e.roles}var et=(e=>(e.DATASOURCE="datasource",e.COMPONENT="component",e.AUTOMATION="automation",e))(et||{}),tt=(e=>(e.NPM="NPM",e.GITHUB="Github",e.URL="URL",e.FILE="File Upload",e))(tt||{}),rt=Object.values(et),nt=(e=>(e.ROW_QUERIES="rowQueries",e.DATASOURCE_QUERIES="datasourceQueries",e.AUTOMATIONS="automations",e))(nt||{}),it=["rows","queries","automations"],at=["queries","automations"],ot=(e=>(e.APP_BACKUP="app_backup",e))(ot||{}),st=(e=>(e.DAILY="daily",e.WEEKLY="weekly",e.MONTHLY="monthly",e))(st||{}),lt=(e,t)=>"app_backup"===e,ct="SYSTEM",ut=(e=>(e.BUILDER="builder",e.APP="app",e))(ut||{}),pt=(e=>(e.DELETED="deleted",e))(pt||{}),dt=(e=>(e.ENVIRONMENT_VARIABLE_UPGRADE_PANEL_OPENED="environment_variable_upgrade_panel_opened",e))(dt||{}),ht=(e=>(e.ASCENDING="ascending",e.DESCENDING="descending",e))(ht||{}),mt=(e=>(e.STRING="string",e.number="number",e))(mt||{}),gt=(e=>(e.STRING="string",e.FUZZY="fuzzy",e.RANGE="range",e.EQUAL="equal",e.NOT_EQUAL="notEqual",e.EMPTY="empty",e.NOT_EMPTY="notEmpty",e.ONE_OF="oneOf",e.CONTAINS="contains",e.NOT_CONTAINS="notContains",e.CONTAINS_ANY="containsAny",e))(gt||{}),ft=(e=>(e.WORKER="worker",e.APPS="apps",e))(ft||{})}));const KC="budibase:returnurl",JC={USERS:"ta_users"},QC="free",eS="ADMIN",tS="POWER",rS="BASIC",nS="PUBLIC",iS="CREATOR",aS=[{class:"lightest",name:"Lightest"},{class:"light",name:"Light"},{class:"dark",name:"Dark"},{class:"darkest",name:"Darkest"},{class:"nord",name:"Nord",base:"darkest"},{class:"midnight",name:"Midnight",base:"darkest"}],oS=e=>({getAnalyticsStatus:async()=>await e.get({url:"/api/bbtel"}),analyticsPing:async({source:t,embedded:r})=>{const n=Intl.DateTimeFormat().resolvedOptions().timeZone;return await e.post({url:"/api/bbtel/ping",body:{source:t,timezone:n,embedded:r}})}}),sS=e=>({fetchAppPackage:async t=>await e.get({url:`/api/applications/${t}/appPackage`}),saveAppMetadata:async({appId:t,metadata:r})=>await e.put({url:`/api/applications/${t}`,body:r}),publishAppChanges:async t=>await e.post({url:`/api/applications/${t}/publish`}),revertAppChanges:async t=>await e.post({url:`/api/dev/${t}/revert`}),updateAppClientVersion:async t=>await e.post({url:`/api/applications/${t}/client/update`}),revertAppClientVersion:async t=>await e.post({url:`/api/applications/${t}/client/revert`}),getAppDeployments:async()=>await e.get({url:"/api/deployments"}),createApp:async t=>await e.post({url:"/api/applications",body:t,json:!1}),updateAppFromExport:async(t,r)=>{const n=vi.sdk.applications.getDevAppID(t);return await e.post({url:`/api/applications/${n}/import`,body:r,json:!1})},importApps:async t=>await e.post({url:"/api/cloud/import",body:t,json:!1}),unpublishApp:async t=>await e.post({url:`/api/applications/${t}/unpublish`}),deleteApp:async t=>await e.delete({url:`/api/applications/${t}`}),releaseAppLock:async t=>await e.delete({url:`/api/dev/${t}/lock`}),fetchSystemDebugInfo:async()=>await e.get({url:"/api/debug/diagnostics"}),syncApp:async t=>await e.post({url:`/api/applications/${t}/sync`}),getApps:async()=>await e.get({url:"/api/applications?status=all"}),fetchComponentLibDefinitions:async t=>await e.get({url:`/api/${t}/components/definitions`}),addSampleData:async t=>await e.post({url:`/api/applications/${t}/sample`})}),lS=e=>{const t=async({datasourceId:t,bucket:r,key:n})=>await e.post({url:`/api/attachments/${t}/url`,body:{bucket:r,key:n}});return{getSignedDatasourceURL:t,uploadAttachment:async({data:t,tableId:r})=>await e.post({url:`/api/attachments/${r}/upload`,body:t,json:!1}),uploadBuilderAttachment:async t=>await e.post({url:"/api/attachments/process",body:t,json:!1}),externalUpload:async({datasourceId:r,bucket:n,key:i,data:a})=>{const{signedUrl:o,publicUrl:s}=await t({datasourceId:r,bucket:n,key:i});return await e.put({url:o,body:a,json:!1,external:!0}),{publicUrl:s}},deleteAttachments:async({keys:t,tableId:r})=>await e.post({url:`/api/attachments/${r}/delete`,body:{keys:t}}),deleteBuilderAttachments:async t=>await e.post({url:"/api/attachments/delete",body:{keys:t}})}},cS=e=>({logIn:async({tenantId:t,username:r,password:n})=>await e.post({url:`/api/global/auth/${t}/login`,body:{username:r,password:n}}),logOut:async()=>await e.post({url:"/api/global/auth/logout"}),setInitInfo:async t=>await e.post({url:"/api/global/auth/init",body:t}),getInitInfo:async()=>await e.get({url:"/api/global/auth/init"}),requestForgotPassword:async({tenantId:t,email:r})=>await e.post({url:`/api/global/auth/${t}/reset`,body:{email:r}}),resetPassword:async({tenantId:t,password:r,resetCode:n})=>await e.post({url:`/api/global/auth/${t}/reset/update`,body:{password:r,resetCode:n}})}),uS=e=>({triggerAutomation:async({automationId:t,fields:r,timeout:n})=>await e.post({url:`/api/automations/${t}/trigger`,body:{fields:r,timeout:n}}),testAutomation:async({automationId:t,testData:r})=>await e.post({url:`/api/automations/${t}/test`,body:r}),getAutomations:async()=>await e.get({url:"/api/automations"}),getAutomationDefinitions:async()=>await e.get({url:"/api/automations/definitions/list"}),createAutomation:async t=>await e.post({url:"/api/automations",body:t}),updateAutomation:async t=>await e.put({url:"/api/automations",body:t}),deleteAutomation:async({automationId:t,automationRev:r})=>await e.delete({url:`/api/automations/${t}/${r}`}),getAutomationLogs:async({automationId:t,startDate:r,status:n,page:i})=>await e.post({url:"/api/automations/logs/search",body:{automationId:t,startDate:r,status:n,page:i}}),clearAutomationLogErrors:async({automationId:t,appId:r})=>await e.delete({url:"/api/automations/logs",body:{appId:r,automationId:t}})}),pS=e=>({saveConfig:async t=>await e.post({url:"/api/global/configs",body:t}),getConfig:async t=>await e.get({url:`/api/global/configs/${t}`}),deleteConfig:async({id:t,rev:r})=>await e.delete({url:`/api/global/configs/${t}/${r}`}),getTenantConfig:async t=>await e.get({url:`/api/global/configs/public?tenantId=${t}`}),getOIDCConfig:async t=>await e.get({url:`/api/global/configs/public/oidc?tenantId=${t}`}),getChecklist:async t=>await e.get({url:`/api/global/configs/checklist?tenantId=${t}`}),uploadLogo:async t=>await e.post({url:"/api/global/configs/upload/settings/logoUrl",body:t,json:!1}),uploadFavicon:async t=>await e.post({url:"/api/global/configs/upload/settings/faviconUrl",body:t,json:!1}),uploadOIDCLogo:async({name:t,data:r})=>await e.post({url:`/api/global/configs/upload/logos_oidc/${t}`,body:r,json:!1}),getOIDCLogos:async()=>await e.get({url:"/api/global/configs/logos_oidc"})}),dS=e=>({getDatasources:async()=>await e.get({url:"/api/datasources"}),buildDatasourceSchema:async({datasourceId:t,tablesFilter:r})=>await e.post({url:`/api/datasources/${t}/schema`,body:{tablesFilter:r}}),createDatasource:async({datasource:t,fetchSchema:r,tablesFilter:n})=>await e.post({url:"/api/datasources",body:{datasource:t,fetchSchema:r,tablesFilter:n}}),updateDatasource:async t=>await e.put({url:`/api/datasources/${t._id}`,body:t}),deleteDatasource:async({datasourceId:t,datasourceRev:r})=>await e.delete({url:`/api/datasources/${t}/${r}`}),validateDatasource:async t=>await e.post({url:"/api/datasources/verify",body:{datasource:t}}),fetchInfoForDatasource:async t=>await e.post({url:"/api/datasources/info",body:{datasource:t}}),fetchExternalSchema:async t=>await e.get({url:`/api/datasources/${t}/schema/external`})}),hS=e=>({getFlags:async()=>await e.get({url:"/api/users/flags"}),updateFlag:async({flag:t,value:r})=>await e.post({url:"/api/users/flags",body:{flag:t,value:r}}),toggleUiFeature:async({value:t})=>await e.post({url:`/api/beta/${t}`})}),mS=e=>({getHostingURLs:async()=>await e.get({url:"/api/hosting/urls"}),getDeployedApps:async()=>await e.get({url:"/api/hosting/apps"})}),gS=e=>({saveLayout:async t=>await e.post({url:"/api/layouts",body:t}),deleteLayout:async({layoutId:t,layoutRev:r})=>await e.delete({url:`/api/layouts/${t}/${r}`})}),fS=e=>({getEnvironment:async()=>await e.get({url:"/api/system/environment"}),getSystemStatus:async()=>await e.get({url:"/api/system/status"}),getIntegrations:async()=>await e.get({url:"/api/integrations"}),getBudibaseVersion:async()=>(await e.get({url:"/api/dev/version"})).version,getBasePermissions:async()=>await e.get({url:"/api/permission/builtin"}),checkBetaAccess:async t=>await e.get({url:`/api/beta/access?email=${t}`,external:!0})}),vS=e=>({getPermissionForResource:async t=>await e.get({url:`/api/permission/${t}`}),updatePermissionForResource:async({resourceId:t,roleId:r,level:n})=>await e.post({url:`/api/permission/${r}/${t}/${n}`}),removePermissionFromResource:async({resourceId:t,roleId:r,level:n})=>await e.delete({url:`/api/permission/${r}/${t}/${n}`}),getDependants:async t=>await e.get({url:`/api/permission/${t}/dependants`})}),bS=e=>({executeQuery:async({queryId:t,pagination:r,parameters:n})=>await e.post({url:`/api/v2/queries/${t}`,body:{parameters:n,pagination:r}}),fetchQueryDefinition:async t=>await e.get({url:`/api/queries/${t}`,cache:!0}),getQueries:async()=>await e.get({url:"/api/queries"}),saveQuery:async t=>await e.post({url:"/api/queries",body:t}),deleteQuery:async({queryId:t,queryRev:r})=>await e.delete({url:`/api/queries/${t}/${r}`}),importQueries:async({datasourceId:t,data:r})=>await e.post({url:"/api/queries/import",body:{datasourceId:t,data:r}}),previewQuery:async t=>await e.post({url:"/api/queries/preview",body:t})}),yS=e=>({fetchRelationshipData:async({tableId:t,rowId:r,fieldName:n})=>{if(!t||!r)return[];const i=await e.get({url:`/api/${t}/${r}/enrich?field=${n}`});return n?i[n]||[]:i||[]}}),xS=e=>({deleteRole:async({roleId:t,roleRev:r})=>await e.delete({url:`/api/roles/${t}/${r}`}),saveRole:async t=>await e.post({url:"/api/roles",body:t}),getRoles:async()=>await e.get({url:"/api/roles"}),getRolesForApp:async t=>await e.get({url:`/api/global/roles/${t}`}),getAccessibleRoles:async()=>await e.get({url:"/api/roles/accessible"})}),wS=e=>({fetchClientAppRoutes:async()=>await e.get({url:"/api/routing/client"}),fetchAppRoutes:async()=>await e.get({url:"/api/routing"})}),zS=e=>({fetchRow:async({tableId:t,rowId:r})=>t&&r?await e.get({url:`/api/${t}/rows/${r}`}):null,saveRow:async(t,r=!1)=>{if(t?.tableId)return await e.post({url:`/api/${t._viewId||t.tableId}/rows`,body:t,suppressErrors:r})},patchRow:async(t,r=!1)=>{if(t?.tableId||t?._viewId)return await e.patch({url:`/api/${t._viewId||t.tableId}/rows`,body:t,suppressErrors:r})},deleteRow:async({tableId:t,rowId:r,revId:n})=>{if(t&&r)return await e.delete({url:`/api/${t}/rows`,body:{_id:r,_rev:n}})},deleteRows:async({tableId:t,rows:r})=>(r?.forEach((e=>{delete e?._viewId})),await e.delete({url:`/api/${t}/rows`,body:{rows:r}})),exportRows:async({tableId:t,rows:r,format:n,columns:i,search:a})=>await e.post({url:`/api/${t}/rows/exportRows?format=${n}`,body:{rows:r,columns:i,...a},parseResponse:async e=>await e.text()})}),kS=e=>({saveScreen:async t=>await e.post({url:"/api/screens",body:t}),deleteScreen:async({screenId:t,screenRev:r})=>await e.delete({url:`/api/screens/${t}/${r}`})}),AS=e=>({fetchTableDefinition:async t=>await e.get({url:`/api/tables/${t}`,cache:!0}),fetchTableData:async t=>await e.get({url:`/api/${t}/rows`}),searchTable:async({tableId:t,query:r,bookmark:n,limit:i,sort:a,sortOrder:o,sortType:s,paginate:l})=>t&&r?await e.post({url:`/api/${t}/search`,body:{query:r,bookmark:n,limit:i,sort:a,sortOrder:o,sortType:s,paginate:l}}):{rows:[]},importTableData:async({tableId:t,rows:r,identifierFields:n})=>await e.post({url:`/api/tables/${t}/import`,body:{rows:r,identifierFields:n}}),csvToJson:async t=>await e.post({url:"/api/convert/csvToJson",body:{csvString:t}}),getTables:async()=>await e.get({url:"/api/tables"}),getTable:async t=>await e.get({url:`/api/tables/${t}`}),saveTable:async t=>await e.post({url:"/api/tables",body:t}),deleteTable:async({tableId:t,tableRev:r})=>await e.delete({url:`/api/tables/${t}/${r}`}),validateNewTableImport:async({rows:t,schema:r})=>await e.post({url:"/api/tables/validateNewTableImport",body:{rows:t,schema:r}}),validateExistingTableImport:async({rows:t,tableId:r})=>await e.post({url:"/api/tables/validateExistingTableImport",body:{rows:t,tableId:r}}),migrateColumn:async({tableId:t,oldColumn:r,newColumn:n})=>await e.post({url:`/api/tables/${t}/migrate`,body:{oldColumn:r,newColumn:n}})}),CS=e=>({getEmailTemplateDefinitions:async()=>await e.get({url:"/api/global/template/definitions"}),getEmailTemplates:async()=>await e.get({url:"/api/global/template/email"}),saveEmailTemplate:async t=>await e.post({url:"/api/global/template",body:t}),getAppTemplates:async()=>await e.get({url:"/api/templates"})}),SS=e=>({getUsers:async()=>await e.get({url:"/api/global/users"}),searchUsers:async({paginate:t,bookmark:r,query:n,appId:i,limit:a}={})=>{const o={};return r&&(o.bookmark=r),n&&(o.query=n),i&&(o.appId=i),"boolean"==typeof t&&(o.paginate=t),a&&(o.limit=a),await e.post({url:"/api/global/users/search",body:o})},getUser:async t=>await e.get({url:`/api/global/users/${t}`}),createAppUser:async t=>await e.post({url:"/api/users/metadata",body:t}),updateOwnMetadata:async t=>await e.post({url:"/api/users/metadata/self",body:t}),createAdminUser:async t=>await e.post({url:"/api/global/users/init",body:t}),saveUser:async t=>await e.post({url:"/api/global/users",body:t}),createUsers:async({users:t,groups:r})=>(await e.post({url:"/api/global/users/bulk",body:{create:{users:t,groups:r}}})).created,deleteUser:async t=>await e.delete({url:`/api/global/users/${t}`}),deleteUsers:async t=>(await e.post({url:"/api/global/users/bulk",body:{delete:{userIds:t}}})).deleted,inviteUser:async({email:t,builder:r,admin:n,apps:i})=>await e.post({url:"/api/global/users/invite",body:{email:t,userInfo:{admin:n?.global?{global:!0}:void 0,builder:r?.global?{global:!0}:void 0,apps:i||void 0}}}),onboardUsers:async t=>await e.post({url:"/api/global/users/onboard",body:t.map((e=>{const{email:t,admin:r,builder:n,apps:i}=e;return{email:t,userInfo:{admin:r,builder:n,apps:i||void 0}}}))}),updateUserInvite:async t=>{await e.post({url:`/api/global/users/invite/update/${t.code}`,body:{apps:t.apps,builder:t.builder}})},getUserInvite:async t=>await e.get({url:`/api/global/users/invite/${t}`}),getUserInvites:async()=>await e.get({url:"/api/global/users/invites"}),inviteUsers:async t=>await e.post({url:"/api/global/users/multi/invite",body:t.map((e=>({email:e.email,userInfo:{admin:e.admin?{global:!0}:void 0,builder:e.admin||e.builder?{global:!0}:void 0,userGroups:e.groups,roles:e.apps?e.apps:void 0}})))}),acceptInvite:async({inviteCode:t,password:r,firstName:n,lastName:i})=>await e.post({url:"/api/global/users/invite/accept",body:{inviteCode:t,password:r,firstName:n,lastName:i}}),getUserCountByApp:async({appId:t})=>await e.get({url:`/api/global/users/count/${t}`}),addAppBuilder:async({userId:t,appId:r})=>await e.post({url:`/api/global/users/${t}/app/${r}/builder`}),removeAppBuilder:async({userId:t,appId:r})=>await e.delete({url:`/api/global/users/${t}/app/${r}/builder`})}),_S=e=>({generateAPIKey:async()=>{const t=await e.post({url:"/api/global/self/api_key"});return t?.apiKey},fetchDeveloperInfo:async()=>e.get({url:"/api/global/self/api_key"}),fetchSelf:async()=>await e.get({url:"/api/self"}),fetchBuilderSelf:async()=>await e.get({url:"/api/global/self"}),updateSelf:async t=>await e.post({url:"/api/global/self",body:t})}),MS=e=>({fetchViewData:async({name:t,field:r,groupBy:n,calculation:i})=>{const a=new URLSearchParams;i&&(a.set("field",r),a.set("calculation",i)),n&&a.set("group",n);const o=r?`/api/views/${encodeURIComponent(t)}?${a}`:`/api/views/${encodeURIComponent(t)}`;return await e.get({url:o})},exportView:async({viewName:t,format:r})=>{const n=encodeURIComponent(t);return await e.get({url:`/api/views/export?view=${n}&format=${r}`,parseResponse:async e=>await e.text()})},saveView:async t=>await e.post({url:"/api/views",body:t}),deleteView:async t=>await e.delete({url:`/api/views/${encodeURIComponent(t)}`})}),TS=e=>({fetchDefinition:async t=>await e.get({url:`/api/v2/views/${encodeURIComponent(t)}`}),create:async t=>await e.post({url:"/api/v2/views",body:t}),update:async t=>await e.put({url:`/api/v2/views/${encodeURIComponent(t.id)}`,body:t}),fetch:async({viewId:t,query:r,paginate:n,limit:i,bookmark:a,sort:o,sortOrder:s,sortType:l})=>await e.post({url:`/api/v2/views/${encodeURIComponent(t)}/search`,body:{query:r,paginate:n,limit:i,bookmark:a,sort:o,sortOrder:s,sortType:l}}),delete:async t=>await e.delete({url:`/api/v2/views/${encodeURIComponent(t)}`})}),$S=e=>({activateLicenseKey:async t=>e.post({url:"/api/global/license/key",body:t}),deleteLicenseKey:async()=>e.delete({url:"/api/global/license/key"}),getLicenseKey:async()=>{try{return await e.get({url:"/api/global/license/key"})}catch(e){if(404!==e.status)throw e}},activateOfflineLicense:async({offlineLicenseToken:t})=>e.post({url:"/api/global/license/offline",body:{offlineLicenseToken:t}}),deleteOfflineLicense:async()=>e.delete({url:"/api/global/license/offline"}),getOfflineLicense:async()=>{try{return await e.get({url:"/api/global/license/offline"})}catch(e){if(404!==e.status)throw e}},getOfflineLicenseIdentifier:async()=>await e.get({url:"/api/global/license/offline/identifier"}),refreshLicense:async()=>e.post({url:"/api/global/license/refresh"}),getQuotaUsage:async()=>e.get({url:"/api/global/license/usage"})}),LS=e=>{async function t(t,r,n,i){return Array.isArray(i)||(i=[i]),await e.post({url:`/api/global/groups/${t}/${r}`,body:{[n]:i}})}return{saveGroup:async t=>await e.post({url:"/api/global/groups",body:t}),getGroups:async()=>await e.get({url:"/api/global/groups"}),getGroup:async t=>await e.get({url:`/api/global/groups/${t}`}),deleteGroup:async({id:t,rev:r})=>await e.delete({url:`/api/global/groups/${t}/${r}`}),getGroupUsers:async({id:t,bookmark:r,emailSearch:n})=>{let i=`/api/global/groups/${t}/users?`;return r&&(i+=`bookmark=${r}&`),n&&(i+=`emailSearch=${n}&`),await e.get({url:i})},addUsersToGroup:async(e,r)=>t(e,"users","add",r),removeUsersFromGroup:async(e,r)=>t(e,"users","remove",r),addAppsToGroup:async(e,r)=>t(e,"apps","add",r),removeAppsFromGroup:async(e,r)=>t(e,"apps","remove",r),addGroupAppBuilder:async({groupId:t,appId:r})=>await e.post({url:`/api/global/groups/${t}/app/${r}/builder`}),removeGroupAppBuilder:async({groupId:t,appId:r})=>await e.delete({url:`/api/global/groups/${t}/app/${r}/builder`})}},ES=e=>({uploadPlugin:async t=>await e.post({url:"/api/plugin/upload",body:t,json:!1}),createPlugin:async t=>await e.post({url:"/api/plugin",body:t}),getPlugins:async()=>await e.get({url:"/api/plugin"}),deletePlugin:async t=>await e.delete({url:`/api/plugin/${t}`})}),IS=e=>({searchBackups:async({appId:t,trigger:r,type:n,page:i,startDate:a,endDate:o})=>{const s={};return i&&(s.page=i),r&&n&&(s.trigger=r.toLowerCase(),s.type=n.toLowerCase()),a&&o&&(s.startDate=a,s.endDate=o),await e.post({url:`/api/apps/${t}/backups/search`,body:s})},createManualBackup:async({appId:t})=>await e.post({url:`/api/apps/${t}/backups`}),deleteBackup:async({appId:t,backupId:r})=>await e.delete({url:`/api/apps/${t}/backups/${r}`}),updateBackup:async({appId:t,backupId:r,name:n})=>await e.patch({url:`/api/apps/${t}/backups/${r}`,body:{name:n}}),restoreBackup:async({appId:t,backupId:r,name:n})=>await e.post({url:`/api/apps/${t}/backups/${r}/import`,body:{name:n}})}),BS=e=>({checkEnvironmentVariableStatus:async()=>await e.get({url:"/api/env/variables/status"}),fetchEnvironmentVariables:async()=>await e.get({url:"/api/env/variables",json:!1}),createEnvironmentVariable:async t=>await e.post({url:"/api/env/variables",body:t}),deleteEnvironmentVariable:async t=>await e.delete({url:`/api/env/variables/${t}`}),updateEnvironmentVariable:async t=>await e.patch({url:`/api/env/variables/${t.name}`,body:t})}),DS=e=>({publishEvent:async t=>await e.post({url:"/api/global/event/publish",body:{type:t}})}),HS=({bookmark:e,userIds:t,appIds:r,startDate:n,endDate:i,fullSearch:a,events:o})=>{const s={};return e&&(s.bookmark=e),n&&i?(s.startDate=n,s.endDate=i):n&&!i&&(s.startDate=n),a&&(s.fullSearch=a),o.length&&(s.events=o),t.length&&(s.userIds=t),r.length&&(s.appIds=r),s},OS=e=>({searchAuditLogs:async t=>await e.post({url:"/api/global/auditlogs/search",body:HS(t)}),getEventDefinitions:async()=>await e.get({url:"/api/global/auditlogs/definitions"}),getDownloadUrl:e=>`/api/global/auditlogs/download?query=${encodeURIComponent(JSON.stringify(e))}`}),PS=e=>({getSystemLogs:async()=>await e.get({url:"/api/system/logs",json:!1,parseResponse:async e=>e})}),RS=yi(),VS={enableCaching:!1,attachHeaders:null,onError:null},NS=e=>{e={...VS,...e};let t={};const r=(e,t)=>({message:e,json:null,status:400,url:t?.url,method:t?.method,handled:!0}),n=async({method:n,url:i,body:a,json:o=!0,external:s=!1,parseResponse:l,suppressErrors:c=!1})=>{o=o&&"GET"!==n;let u={Accept:"application/json"};u["x-budibase-session-id"]=RS,s||(u["x-budibase-api-version"]="1"),o&&(u["Content-Type"]="application/json"),e?.attachHeaders&&e.attachHeaders(u);let p,d=a;if(o)try{d=JSON.stringify(a)}catch(e){throw r("Invalid JSON body",{url:i,method:n})}try{p=await fetch(i,{method:n,headers:u,body:d,credentials:"same-origin"})}catch(e){throw delete t[i],r("Failed to send request",{url:i,method:n})}if(!(p.status>=200&&p.status<400))throw delete t[i],await(async(e,t,r=!1)=>{let n=e.statusText,i=null;try{i=await e.json(),i?.message?n=i.message:i?.error&&(n=i.error)}catch(e){}return{message:n,json:i,status:e.status,url:e.url,method:t,handled:!0,suppressErrors:r}})(p,n,c);try{return l?await l(p):await p.json()}catch(e){return delete t[i],null}},i=async e=>{const r=e.url;return r?(t[r]||(t[r]=n(e),t[r]=await t[r]),await t[r]):null},a=t=>async r=>{try{let{url:a,cache:o=!1,external:s=!1}=r;s||(a=`/${a}`.replace("//","/"));const l=o&&e?.enableCaching?i:n,c={...r,method:t,url:a};return await l(c)}catch(t){throw e?.onError&&e.onError(t),t}};let o={post:a("POST"),get:a("GET"),patch:a("PATCH"),delete:a("DELETE"),put:a("PUT"),error:e=>{throw r(e)},invalidateCache:()=>{t={}},getAppID:()=>{let t={};return e?.attachHeaders(t),t?.["x-budibase-app-id"]}};return{...o,...oS(o),...sS(o),...lS(o),...cS(o),...uS(o),...pS(o),...dS(o),...hS(o),...mS(o),...gS(o),...fS(o),...vS(o),...bS(o),...yS(o),...xS(o),...wS(o),...zS(o),...kS(o),...AS(o),...CS(o),...SS(o),...MS(o),..._S(o),...$S(o),...LS(o),...ES(o),...IS(o),...BS(o),...DS(o),...OS(o),...PS(o),viewV2:TS(o)}};
|
|
20
20
|
/**
|
|
21
21
|
* @license
|
|
22
22
|
* Lodash <https://lodash.com/>
|