irest-app-test 3.2.2 → 3.4.2
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.
- package/.env.prod +1 -1
- package/dist/{819.cb120b34.css → 819.bf48228f.css} +1 -1
- package/dist/{819.cb120b34.css.map → 819.bf48228f.css.map} +1 -1
- package/dist/{819.cb120b340691388e18ed.js → 819.bf48228f4ca85ca930e9.js} +2 -2
- package/dist/{819.cb120b340691388e18ed.js.map → 819.bf48228f4ca85ca930e9.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.cb120b34.css → main.bf48228f.css} +1 -1
- package/dist/{main.cb120b34.css.map → main.bf48228f.css.map} +1 -1
- package/dist/{main.cb120b340691388e18ed.js → main.bf48228f4ca85ca930e9.js} +2 -2
- package/dist/{main.cb120b340691388e18ed.js.map → main.bf48228f4ca85ca930e9.js.map} +1 -1
- package/dist/manifest.json +8 -8
- package/package.json +2 -2
- package/logs/.c5e344dfa745f7db92a00d51a0be685ef059380e-audit.json +0 -15
- package/logs/.ccf6974fe26cb9a94e88203a06c252fb190847b9-audit.json +0 -15
- package/logs/exceptions.log +0 -0
- package/logs/irest-2025-08-27-00.log +0 -8
- /package/dist/{819.cb120b340691388e18ed.js.LICENSE.txt → 819.bf48228f4ca85ca930e9.js.LICENSE.txt} +0 -0
- /package/dist/{main.cb120b340691388e18ed.js.LICENSE.txt → main.bf48228f4ca85ca930e9.js.LICENSE.txt} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! For license information please see 819.
|
|
1
|
+
/*! For license information please see 819.bf48228f4ca85ca930e9.js.LICENSE.txt */
|
|
2
2
|
(self.webpackChunkclient=self.webpackChunkclient||[]).push([[819],{23:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},122:(e,t,r)=>{"use strict";var n=r(46518),i=r(44576),o=r(91955),s=r(79306),a=r(22812),l=r(79039),c=r(43724);n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:l(function(){return c&&1!==Object.getOwnPropertyDescriptor(i,"queueMicrotask").value.length})},{queueMicrotask:function(e){a(arguments.length,1),o(s(e))}})},221:(e,t,r)=>{"use strict";var n=r(46518),i=r(79039),o=r(20034),s=r(22195),a=r(15652),l=Object.isSealed;n({target:"Object",stat:!0,forced:a||i(function(){l(1)})},{isSealed:function(e){return!o(e)||!(!a||"ArrayBuffer"!==s(e))||!!l&&l(e)}})},244:(e,t,r)=>{"use strict";function n(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}r.d(t,{A:()=>n})},373:(e,t,r)=>{"use strict";var n=r(44576),i=r(27476),o=r(79039),s=r(79306),a=r(74488),l=r(94644),c=r(13709),u=r(13763),d=r(39519),h=r(3607),p=l.aTypedArray,f=l.exportTypedArrayMethod,m=n.Uint16Array,g=m&&i(m.prototype.sort),y=!(!g||o(function(){g(new m(2),null)})&&o(function(){g(new m(2),{})})),v=!!g&&!o(function(){if(d)return d<74;if(c)return c<67;if(u)return!0;if(h)return h<602;var e,t,r=new m(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(g(r,function(e,t){return(e/4|0)-(t/4|0)}),e=0;e<516;e++)if(r[e]!==n[e])return!0});f("sort",function(e){return void 0!==e&&s(e),v?g(this,e):a(p(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))},!v||y)},411:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,I:()=>s});var n=r(96540),i=r(74848);const o=n.createContext(),s=()=>n.useContext(o)??!1,a=function({value:e,...t}){return(0,i.jsx)(o.Provider,{value:e??!0,...t})}},655:(e,t,r)=>{"use strict";var n=r(36955),i=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},659:(e,t,r)=>{var n=r(51873),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var i=s.call(e);return n&&(t?e[a]=r:delete e[a]),i}},836:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,Q:()=>o});var n=r(96540),i=r(54405);function o(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function s(e){if(n.isValidElement(e)||(0,i.Hy)(e)||!o(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=s(e[r])}),t}function a(e,t,r={clone:!0}){const l=r.clone?{...e}:e;return o(e)&&o(t)&&Object.keys(t).forEach(c=>{n.isValidElement(t[c])||(0,i.Hy)(t[c])?l[c]=t[c]:o(t[c])&&Object.prototype.hasOwnProperty.call(e,c)&&o(e[c])?l[c]=a(e[c],t[c],r):r.clone?l[c]=o(t[c])?s(t[c]):t[c]:l[c]=t[c]}),l}},887:(e,t,r)=>{var n=r(16993),i=r(11791);e.exports=function(e,t,r,o,s){return new i(n().w(e,t,r,o),s||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},1103:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},1152:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(97164).A},1321:(e,t,r)=>{"use strict";function n(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||"string"!=typeof e[r])return!1;return!0}(t,e)}r.d(t,{A:()=>n})},1469:(e,t,r)=>{"use strict";var n=r(87433);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},1480:(e,t,r)=>{"use strict";var n=r(46518),i=r(79039),o=r(10298).f;n({target:"Object",stat:!0,forced:i(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:o})},1548:(e,t,r)=>{"use strict";var n=r(44576),i=r(79039),o=r(39519),s=r(84215),a=n.structuredClone;e.exports=!!a&&!i(function(){if("DENO"===s&&o>92||"NODE"===s&&o>94||"BROWSER"===s&&o>97)return!1;var e=new ArrayBuffer(8),t=a(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength})},1625:(e,t,r)=>{"use strict";var n=r(79504);e.exports=n({}.isPrototypeOf)},1659:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(19750),i=r(37498);function o({props:e,name:t,defaultTheme:r,themeId:o}){let s=(0,i.A)(r);return o&&(s=s[o]||s),function(e){const{theme:t,name:r,props:i}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,n.A)(t.components[r].defaultProps,i):i}({theme:s,name:t,props:e})}},1688:(e,t,r)=>{"use strict";var n=r(46518),i=r(70380);n({target:"Date",proto:!0,forced:Date.prototype.toISOString!==i},{toISOString:i})},1713:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(96540).createContext(void 0)},1767:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},1812:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(9792),i=r(74848);const o=(0,n.A)((0,i.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown")},1882:(e,t,r)=>{var n=r(72552),i=r(23805);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1886:(e,t,r)=>{"use strict";var n=r(69565),i=r(24074),o=r(28551),s=r(70081),a=r(1767),l=r(55966),c=r(78227)("asyncIterator");e.exports=function(e,t){var r=arguments.length<2?l(e,c):t;return r?o(n(r,e)):new i(a(s(e)))}},1908:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>o});var n=r(61626);const i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function o(e,t,r="Mui"){const o=i[t];return o?`${r}-${o}`:`${n.A.generate(e)}-${t}`}},1951:(e,t,r)=>{"use strict";var n=r(78227);t.f=n},2008:(e,t,r)=>{"use strict";var n=r(46518),i=r(59213).filter;n({target:"Array",proto:!0,forced:!r(70597)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},2087:(e,t,r)=>{"use strict";var n=r(20034),i=Math.floor;e.exports=Number.isInteger||function(e){return!n(e)&&isFinite(e)&&i(e)===e}},2222:(e,t,r)=>{"use strict";var n=r(46518),i=r(97751),o=r(79039),s=r(22812),a=r(655),l=r(67416),c=i("URL"),u=l&&o(function(){c.canParse()}),d=o(function(){return 1!==c.canParse.length});n({target:"URL",stat:!0,forced:!u||d},{canParse:function(e){var t=s(arguments.length,1),r=a(e),n=t<2||void 0===arguments[1]?void 0:a(arguments[1]);try{return!!new c(r,n)}catch(e){return!1}}})},2259:(e,t,r)=>{"use strict";r(70511)("iterator")},2293:(e,t,r)=>{"use strict";var n=r(28551),i=r(35548),o=r(64117),s=r(78227)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||o(r=n(a)[s])?t:i(r)}},2360:(e,t,r)=>{"use strict";var n,i=r(28551),o=r(96801),s=r(88727),a=r(30421),l=r(20397),c=r(4055),u=r(66119),d="prototype",h="script",p=u("IE_PROTO"),f=function(){},m=function(e){return"<"+h+">"+e+"</"+h+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;y="undefined"!=typeof document?document.domain&&n?g(n):(t=c("iframe"),r="java"+h+":",t.style.display="none",l.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(n);for(var i=s.length;i--;)delete y[d][s[i]];return y()};a[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f[d]=i(e),r=new f,f[d]=null,r[p]=e):r=y(),void 0===t?r:o.f(r,t)}},2404:(e,t,r)=>{var n=r(60270);e.exports=function(e,t){return n(e,t)}},2478:(e,t,r)=>{"use strict";var n=r(79504),i=r(48981),o=Math.floor,s=n("".charAt),a=n("".replace),l=n("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,d,h){var p=r+e.length,f=n.length,m=u;return void 0!==d&&(d=i(d),m=c),a(h,m,function(i,a){var c;switch(s(a,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,r);case"'":return l(t,p);case"<":c=d[l(a,1,-1)];break;default:var u=+a;if(0===u)return i;if(u>f){var h=o(u/10);return 0===h?i:h<=f?void 0===n[h-1]?s(a,1):n[h-1]+s(a,1):i}c=n[u-1]}return void 0===c?"":c})}},2518:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(14292).A},2523:e=>{e.exports=function(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},2543:function(e,t,r){var n;e=r.nmd(e),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=32,c=128,u=1/0,d=9007199254740991,h=NaN,p=4294967295,f=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",y="[object Boolean]",v="[object Date]",b="[object Error]",w="[object Function]",x="[object GeneratorFunction]",A="[object Map]",C="[object Number]",S="[object Object]",I="[object Promise]",k="[object RegExp]",E="[object Set]",T="[object String]",$="[object Symbol]",_="[object WeakMap]",R="[object ArrayBuffer]",O="[object DataView]",P="[object Float32Array]",M="[object Float64Array]",L="[object Int8Array]",j="[object Int16Array]",N="[object Int32Array]",F="[object Uint8Array]",D="[object Uint8ClampedArray]",B="[object Uint16Array]",z="[object Uint32Array]",W=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,Z=RegExp(G.source),K=RegExp(U.source),Y=/<%-([\s\S]+?)%>/g,q=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,re=RegExp(te.source),ne=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,we=/['\n\r\u2028\u2029\\]/g,xe="\\ud800-\\udfff",Ae="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Ie="A-Z\\xc0-\\xd6\\xd8-\\xde",ke="\\ufe0e\\ufe0f",Ee="\\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",Te="["+xe+"]",$e="["+Ee+"]",_e="["+Ae+"]",Re="\\d+",Oe="["+Ce+"]",Pe="["+Se+"]",Me="[^"+xe+Ee+Re+Ce+Se+Ie+"]",Le="\\ud83c[\\udffb-\\udfff]",je="[^"+xe+"]",Ne="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",De="["+Ie+"]",Be="\\u200d",ze="(?:"+Pe+"|"+Me+")",We="(?:"+De+"|"+Me+")",He="(?:['’](?:d|ll|m|re|s|t|ve))?",Ve="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+_e+"|"+Le+")?",Ue="["+ke+"]?",Ze=Ue+Ge+"(?:"+Be+"(?:"+[je,Ne,Fe].join("|")+")"+Ue+Ge+")*",Ke="(?:"+[Oe,Ne,Fe].join("|")+")"+Ze,Ye="(?:"+[je+_e+"?",_e,Ne,Fe,Te].join("|")+")",qe=RegExp("['’]","g"),Xe=RegExp(_e,"g"),Je=RegExp(Le+"(?="+Le+")|"+Ye+Ze,"g"),Qe=RegExp([De+"?"+Pe+"+"+He+"(?="+[$e,De,"$"].join("|")+")",We+"+"+Ve+"(?="+[$e,De+ze,"$"].join("|")+")",De+"?"+ze+"+"+He,De+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,Ke].join("|"),"g"),et=RegExp("["+Be+xe+Ae+ke+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["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"],nt=-1,it={};it[P]=it[M]=it[L]=it[j]=it[N]=it[F]=it[D]=it[B]=it[z]=!0,it[m]=it[g]=it[R]=it[y]=it[O]=it[v]=it[b]=it[w]=it[A]=it[C]=it[S]=it[k]=it[E]=it[T]=it[_]=!1;var ot={};ot[m]=ot[g]=ot[R]=ot[O]=ot[y]=ot[v]=ot[P]=ot[M]=ot[L]=ot[j]=ot[N]=ot[A]=ot[C]=ot[S]=ot[k]=ot[E]=ot[T]=ot[$]=ot[F]=ot[D]=ot[B]=ot[z]=!0,ot[b]=ot[w]=ot[_]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,lt=parseInt,ct="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,ut="object"==typeof self&&self&&self.Object===Object&&self,dt=ct||ut||Function("return this")(),ht=t&&!t.nodeType&&t,pt=ht&&e&&!e.nodeType&&e,ft=pt&&pt.exports===ht,mt=ft&&ct.process,gt=function(){try{return pt&&pt.require&&pt.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),yt=gt&>.isArrayBuffer,vt=gt&>.isDate,bt=gt&>.isMap,wt=gt&>.isRegExp,xt=gt&>.isSet,At=gt&>.isTypedArray;function Ct(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 St(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(n,s,r(s),e)}return n}function It(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function kt(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function Et(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 Tt(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}function $t(e,t){return!(null==e||!e.length)&&Dt(e,t,0)>-1}function _t(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 Rt(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 Ot(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function Pt(e,t,r,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function Mt(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 Lt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var jt=Ht("length");function Nt(e,t,r){var n;return r(e,function(e,r,i){if(t(e,r,i))return n=r,!1}),n}function Ft(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Dt(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):Ft(e,zt,r)}function Bt(e,t,r,n){for(var i=r-1,o=e.length;++i<o;)if(n(e[i],t))return i;return-1}function zt(e){return e!=e}function Wt(e,t){var r=null==e?0:e.length;return r?Ut(e,t)/r:h}function Ht(e){return function(t){return null==t?i:t[e]}}function Vt(e){return function(t){return null==e?i:e[t]}}function Gt(e,t,r,n,i){return i(e,function(e,i,o){r=n?(n=!1,e):t(r,e,i,o)}),r}function Ut(e,t){for(var r,n=-1,o=e.length;++n<o;){var s=t(e[n]);s!==i&&(r=r===i?s:r+s)}return r}function Zt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Kt(e){return e?e.slice(0,dr(e)+1).replace(ne,""):e}function Yt(e){return function(t){return e(t)}}function qt(e,t){return Rt(t,function(t){return e[t]})}function Xt(e,t){return e.has(t)}function Jt(e,t){for(var r=-1,n=e.length;++r<n&&Dt(t,e[r],0)>-1;);return r}function Qt(e,t){for(var r=e.length;r--&&Dt(t,e[r],0)>-1;);return r}var er=Vt({À:"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"}),tr=Vt({"&":"&","<":"<",">":">",'"':""","'":"'"});function rr(e){return"\\"+st[e]}function nr(e){return et.test(e)}function ir(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function or(e,t){return function(r){return e(t(r))}}function sr(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var s=e[r];s!==t&&s!==a||(e[r]=a,o[i++]=r)}return o}function ar(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function lr(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=[e,e]}),r}function cr(e){return nr(e)?function(e){for(var t=Je.lastIndex=0;Je.test(e);)++t;return t}(e):jt(e)}function ur(e){return nr(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.split("")}(e)}function dr(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var hr=Vt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),pr=function e(t){var r,n=(t=null==t?dt:pr.defaults(dt.Object(),t,pr.pick(dt,rt))).Array,ie=t.Date,xe=t.Error,Ae=t.Function,Ce=t.Math,Se=t.Object,Ie=t.RegExp,ke=t.String,Ee=t.TypeError,Te=n.prototype,$e=Ae.prototype,_e=Se.prototype,Re=t["__core-js_shared__"],Oe=$e.toString,Pe=_e.hasOwnProperty,Me=0,Le=(r=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",je=_e.toString,Ne=Oe.call(Se),Fe=dt._,De=Ie("^"+Oe.call(Pe).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=ft?t.Buffer:i,ze=t.Symbol,We=t.Uint8Array,He=Be?Be.allocUnsafe:i,Ve=or(Se.getPrototypeOf,Se),Ge=Se.create,Ue=_e.propertyIsEnumerable,Ze=Te.splice,Ke=ze?ze.isConcatSpreadable:i,Ye=ze?ze.iterator:i,Je=ze?ze.toStringTag:i,et=function(){try{var e=lo(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),st=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ct=ie&&ie.now!==dt.Date.now&&ie.now,ut=t.setTimeout!==dt.setTimeout&&t.setTimeout,ht=Ce.ceil,pt=Ce.floor,mt=Se.getOwnPropertySymbols,gt=Be?Be.isBuffer:i,jt=t.isFinite,Vt=Te.join,fr=or(Se.keys,Se),mr=Ce.max,gr=Ce.min,yr=ie.now,vr=t.parseInt,br=Ce.random,wr=Te.reverse,xr=lo(t,"DataView"),Ar=lo(t,"Map"),Cr=lo(t,"Promise"),Sr=lo(t,"Set"),Ir=lo(t,"WeakMap"),kr=lo(Se,"create"),Er=Ir&&new Ir,Tr={},$r=No(xr),_r=No(Ar),Rr=No(Cr),Or=No(Sr),Pr=No(Ir),Mr=ze?ze.prototype:i,Lr=Mr?Mr.valueOf:i,jr=Mr?Mr.toString:i;function Nr(e){if(ea(e)&&!Hs(e)&&!(e instanceof zr)){if(e instanceof Br)return e;if(Pe.call(e,"__wrapped__"))return Fo(e)}return new Br(e)}var Fr=function(){function e(){}return function(t){if(!Qs(t))return{};if(Ge)return Ge(t);e.prototype=t;var r=new e;return e.prototype=i,r}}();function Dr(){}function Br(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function zr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Wr(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 Hr(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 Vr(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 Gr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Vr;++t<r;)this.add(e[t])}function Ur(e){var t=this.__data__=new Hr(e);this.size=t.size}function Zr(e,t){var r=Hs(e),n=!r&&Ws(e),i=!r&&!n&&Zs(e),o=!r&&!n&&!i&&la(e),s=r||n||i||o,a=s?Zt(e.length,ke):[],l=a.length;for(var c in e)!t&&!Pe.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||go(c,l))||a.push(c);return a}function Kr(e){var t=e.length;return t?e[Gn(0,t-1)]:i}function Yr(e,t){return Oo(ki(e),on(t,0,e.length))}function qr(e){return Oo(ki(e))}function Xr(e,t,r){(r!==i&&!Ds(e[t],r)||r===i&&!(t in e))&&rn(e,t,r)}function Jr(e,t,r){var n=e[t];Pe.call(e,t)&&Ds(n,r)&&(r!==i||t in e)||rn(e,t,r)}function Qr(e,t){for(var r=e.length;r--;)if(Ds(e[r][0],t))return r;return-1}function en(e,t,r,n){return un(e,function(e,i,o){t(n,e,r(e),o)}),n}function tn(e,t){return e&&Ei(t,_a(t),e)}function rn(e,t,r){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function nn(e,t){for(var r=-1,o=t.length,s=n(o),a=null==e;++r<o;)s[r]=a?i:Ia(e,t[r]);return s}function on(e,t,r){return e==e&&(r!==i&&(e=e<=r?e:r),t!==i&&(e=e>=t?e:t)),e}function sn(e,t,r,n,o,s){var a,l=1&t,c=2&t,u=4&t;if(r&&(a=o?r(e,n,o,s):r(e)),a!==i)return a;if(!Qs(e))return e;var d=Hs(e);if(d){if(a=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Pe.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!l)return ki(e,a)}else{var h=ho(e),p=h==w||h==x;if(Zs(e))return wi(e,l);if(h==S||h==m||p&&!o){if(a=c||p?{}:fo(e),!l)return c?function(e,t){return Ei(e,uo(e),t)}(e,function(e,t){return e&&Ei(t,Ra(t),e)}(a,e)):function(e,t){return Ei(e,co(e),t)}(e,tn(a,e))}else{if(!ot[h])return o?e:{};a=function(e,t,r){var n,i=e.constructor;switch(t){case R:return xi(e);case y:case v:return new i(+e);case O:return function(e,t){var r=t?xi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case P:case M:case L:case j:case N:case F:case D:case B:case z:return Ai(e,r);case A:return new i;case C:case T:return new i(e);case k:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case E:return new i;case $:return n=e,Lr?Se(Lr.call(n)):{}}}(e,h,l)}}s||(s=new Ur);var f=s.get(e);if(f)return f;s.set(e,a),oa(e)?e.forEach(function(n){a.add(sn(n,t,r,n,e,s))}):ta(e)&&e.forEach(function(n,i){a.set(i,sn(n,t,r,i,e,s))});var g=d?i:(u?c?to:eo:c?Ra:_a)(e);return It(g||e,function(n,i){g&&(n=e[i=n]),Jr(a,i,sn(n,t,r,i,e,s))}),a}function an(e,t,r){var n=r.length;if(null==e)return!n;for(e=Se(e);n--;){var o=r[n],s=t[o],a=e[o];if(a===i&&!(o in e)||!s(a))return!1}return!0}function ln(e,t,r){if("function"!=typeof e)throw new Ee(o);return To(function(){e.apply(i,r)},t)}function cn(e,t,r,n){var i=-1,o=$t,s=!0,a=e.length,l=[],c=t.length;if(!a)return l;r&&(t=Rt(t,Yt(r))),n?(o=_t,s=!1):t.length>=200&&(o=Xt,s=!1,t=new Gr(t));e:for(;++i<a;){var u=e[i],d=null==r?u:r(u);if(u=n||0!==u?u:0,s&&d==d){for(var h=c;h--;)if(t[h]===d)continue e;l.push(u)}else o(t,d,n)||l.push(u)}return l}Nr.templateSettings={escape:Y,evaluate:q,interpolate:X,variable:"",imports:{_:Nr}},Nr.prototype=Dr.prototype,Nr.prototype.constructor=Nr,Br.prototype=Fr(Dr.prototype),Br.prototype.constructor=Br,zr.prototype=Fr(Dr.prototype),zr.prototype.constructor=zr,Wr.prototype.clear=function(){this.__data__=kr?kr(null):{},this.size=0},Wr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wr.prototype.get=function(e){var t=this.__data__;if(kr){var r=t[e];return r===s?i:r}return Pe.call(t,e)?t[e]:i},Wr.prototype.has=function(e){var t=this.__data__;return kr?t[e]!==i:Pe.call(t,e)},Wr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=kr&&t===i?s:t,this},Hr.prototype.clear=function(){this.__data__=[],this.size=0},Hr.prototype.delete=function(e){var t=this.__data__,r=Qr(t,e);return!(r<0||(r==t.length-1?t.pop():Ze.call(t,r,1),--this.size,0))},Hr.prototype.get=function(e){var t=this.__data__,r=Qr(t,e);return r<0?i:t[r][1]},Hr.prototype.has=function(e){return Qr(this.__data__,e)>-1},Hr.prototype.set=function(e,t){var r=this.__data__,n=Qr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Vr.prototype.clear=function(){this.size=0,this.__data__={hash:new Wr,map:new(Ar||Hr),string:new Wr}},Vr.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},Vr.prototype.get=function(e){return so(this,e).get(e)},Vr.prototype.has=function(e){return so(this,e).has(e)},Vr.prototype.set=function(e,t){var r=so(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Gr.prototype.add=Gr.prototype.push=function(e){return this.__data__.set(e,s),this},Gr.prototype.has=function(e){return this.__data__.has(e)},Ur.prototype.clear=function(){this.__data__=new Hr,this.size=0},Ur.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Ur.prototype.get=function(e){return this.__data__.get(e)},Ur.prototype.has=function(e){return this.__data__.has(e)},Ur.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Hr){var n=r.__data__;if(!Ar||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Vr(n)}return r.set(e,t),this.size=r.size,this};var un=_i(vn),dn=_i(bn,!0);function hn(e,t){var r=!0;return un(e,function(e,n,i){return r=!!t(e,n,i)}),r}function pn(e,t,r){for(var n=-1,o=e.length;++n<o;){var s=e[n],a=t(s);if(null!=a&&(l===i?a==a&&!aa(a):r(a,l)))var l=a,c=s}return c}function fn(e,t){var r=[];return un(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function mn(e,t,r,n,i){var o=-1,s=e.length;for(r||(r=mo),i||(i=[]);++o<s;){var a=e[o];t>0&&r(a)?t>1?mn(a,t-1,r,n,i):Ot(i,a):n||(i[i.length]=a)}return i}var gn=Ri(),yn=Ri(!0);function vn(e,t){return e&&gn(e,t,_a)}function bn(e,t){return e&&yn(e,t,_a)}function wn(e,t){return Tt(t,function(t){return qs(e[t])})}function xn(e,t){for(var r=0,n=(t=gi(t,e)).length;null!=e&&r<n;)e=e[jo(t[r++])];return r&&r==n?e:i}function An(e,t,r){var n=t(e);return Hs(e)?n:Ot(n,r(e))}function Cn(e){return null==e?e===i?"[object Undefined]":"[object Null]":Je&&Je in Se(e)?function(e){var t=Pe.call(e,Je),r=e[Je];try{e[Je]=i;var n=!0}catch(e){}var o=je.call(e);return n&&(t?e[Je]=r:delete e[Je]),o}(e):function(e){return je.call(e)}(e)}function Sn(e,t){return e>t}function In(e,t){return null!=e&&Pe.call(e,t)}function kn(e,t){return null!=e&&t in Se(e)}function En(e,t,r){for(var o=r?_t:$t,s=e[0].length,a=e.length,l=a,c=n(a),u=1/0,d=[];l--;){var h=e[l];l&&t&&(h=Rt(h,Yt(t))),u=gr(h.length,u),c[l]=!r&&(t||s>=120&&h.length>=120)?new Gr(l&&h):i}h=e[0];var p=-1,f=c[0];e:for(;++p<s&&d.length<u;){var m=h[p],g=t?t(m):m;if(m=r||0!==m?m:0,!(f?Xt(f,g):o(d,g,r))){for(l=a;--l;){var y=c[l];if(!(y?Xt(y,g):o(e[l],g,r)))continue e}f&&f.push(g),d.push(m)}}return d}function Tn(e,t,r){var n=null==(e=Io(e,t=gi(t,e)))?e:e[jo(Yo(t))];return null==n?i:Ct(n,e,r)}function $n(e){return ea(e)&&Cn(e)==m}function _n(e,t,r,n,o){return e===t||(null==e||null==t||!ea(e)&&!ea(t)?e!=e&&t!=t:function(e,t,r,n,o,s){var a=Hs(e),l=Hs(t),c=a?g:ho(e),u=l?g:ho(t),d=(c=c==m?S:c)==S,h=(u=u==m?S:u)==S,p=c==u;if(p&&Zs(e)){if(!Zs(t))return!1;a=!0,d=!1}if(p&&!d)return s||(s=new Ur),a||la(e)?Ji(e,t,r,n,o,s):function(e,t,r,n,i,o,s){switch(r){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!o(new We(e),new We(t)));case y:case v:case C:return Ds(+e,+t);case b:return e.name==t.name&&e.message==t.message;case k:case T:return e==t+"";case A:var a=ir;case E:var l=1&n;if(a||(a=ar),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;n|=2,s.set(e,t);var u=Ji(a(e),a(t),n,i,o,s);return s.delete(e),u;case $:if(Lr)return Lr.call(e)==Lr.call(t)}return!1}(e,t,c,r,n,o,s);if(!(1&r)){var f=d&&Pe.call(e,"__wrapped__"),w=h&&Pe.call(t,"__wrapped__");if(f||w){var x=f?e.value():e,I=w?t.value():t;return s||(s=new Ur),o(x,I,r,n,s)}}return!!p&&(s||(s=new Ur),function(e,t,r,n,o,s){var a=1&r,l=eo(e),c=l.length;if(c!=eo(t).length&&!a)return!1;for(var u=c;u--;){var d=l[u];if(!(a?d in t:Pe.call(t,d)))return!1}var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var f=!0;s.set(e,t),s.set(t,e);for(var m=a;++u<c;){var g=e[d=l[u]],y=t[d];if(n)var v=a?n(y,g,d,t,e,s):n(g,y,d,e,t,s);if(!(v===i?g===y||o(g,y,r,n,s):v)){f=!1;break}m||(m="constructor"==d)}if(f&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(f=!1)}return s.delete(e),s.delete(t),f}(e,t,r,n,o,s))}(e,t,r,n,_n,o))}function Rn(e,t,r,n){var o=r.length,s=o,a=!n;if(null==e)return!s;for(e=Se(e);o--;){var l=r[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var c=(l=r[o])[0],u=e[c],d=l[1];if(a&&l[2]){if(u===i&&!(c in e))return!1}else{var h=new Ur;if(n)var p=n(u,d,c,e,t,h);if(!(p===i?_n(d,u,3,n,h):p))return!1}}return!0}function On(e){return!(!Qs(e)||(t=e,Le&&Le in t))&&(qs(e)?De:me).test(No(e));var t}function Pn(e){return"function"==typeof e?e:null==e?rl:"object"==typeof e?Hs(e)?Fn(e[0],e[1]):Nn(e):dl(e)}function Mn(e){if(!xo(e))return fr(e);var t=[];for(var r in Se(e))Pe.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Ln(e,t){return e<t}function jn(e,t){var r=-1,i=Gs(e)?n(e.length):[];return un(e,function(e,n,o){i[++r]=t(e,n,o)}),i}function Nn(e){var t=ao(e);return 1==t.length&&t[0][2]?Co(t[0][0],t[0][1]):function(r){return r===e||Rn(r,e,t)}}function Fn(e,t){return vo(e)&&Ao(t)?Co(jo(e),t):function(r){var n=Ia(r,e);return n===i&&n===t?ka(r,e):_n(t,n,3)}}function Dn(e,t,r,n,o){e!==t&&gn(t,function(s,a){if(o||(o=new Ur),Qs(s))!function(e,t,r,n,o,s,a){var l=ko(e,r),c=ko(t,r),u=a.get(c);if(u)Xr(e,r,u);else{var d=s?s(l,c,r+"",e,t,a):i,h=d===i;if(h){var p=Hs(c),f=!p&&Zs(c),m=!p&&!f&&la(c);d=c,p||f||m?Hs(l)?d=l:Us(l)?d=ki(l):f?(h=!1,d=wi(c,!0)):m?(h=!1,d=Ai(c,!0)):d=[]:na(c)||Ws(c)?(d=l,Ws(l)?d=ga(l):Qs(l)&&!qs(l)||(d=fo(c))):h=!1}h&&(a.set(c,d),o(d,c,n,s,a),a.delete(c)),Xr(e,r,d)}}(e,t,a,r,Dn,n,o);else{var l=n?n(ko(e,a),s,a+"",e,t,o):i;l===i&&(l=s),Xr(e,a,l)}},Ra)}function Bn(e,t){var r=e.length;if(r)return go(t+=t<0?r:0,r)?e[t]:i}function zn(e,t,r){t=t.length?Rt(t,function(e){return Hs(e)?function(t){return xn(t,1===e.length?e[0]:e)}:e}):[rl];var n=-1;t=Rt(t,Yt(oo()));var i=jn(e,function(e,r,i){var o=Rt(t,function(t){return t(e)});return{criteria:o,index:++n,value:e}});return function(e){var t=e.length;for(e.sort(function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,o=t.criteria,s=i.length,a=r.length;++n<s;){var l=Ci(i[n],o[n]);if(l)return n>=a?l:l*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)});t--;)e[t]=e[t].value;return e}(i)}function Wn(e,t,r){for(var n=-1,i=t.length,o={};++n<i;){var s=t[n],a=xn(e,s);r(a,s)&&qn(o,gi(s,e),a)}return o}function Hn(e,t,r,n){var i=n?Bt:Dt,o=-1,s=t.length,a=e;for(e===t&&(t=ki(t)),r&&(a=Rt(e,Yt(r)));++o<s;)for(var l=0,c=t[o],u=r?r(c):c;(l=i(a,u,l,n))>-1;)a!==e&&Ze.call(a,l,1),Ze.call(e,l,1);return e}function Vn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;go(i)?Ze.call(e,i,1):li(e,i)}}return e}function Gn(e,t){return e+pt(br()*(t-e+1))}function Un(e,t){var r="";if(!e||t<1||t>d)return r;do{t%2&&(r+=e),(t=pt(t/2))&&(e+=e)}while(t);return r}function Zn(e,t){return $o(So(e,t,rl),e+"")}function Kn(e){return Kr(Da(e))}function Yn(e,t){var r=Da(e);return Oo(r,on(t,0,r.length))}function qn(e,t,r,n){if(!Qs(e))return e;for(var o=-1,s=(t=gi(t,e)).length,a=s-1,l=e;null!=l&&++o<s;){var c=jo(t[o]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var d=l[c];(u=n?n(d,c,l):i)===i&&(u=Qs(d)?d:go(t[o+1])?[]:{})}Jr(l,c,u),l=l[c]}return e}var Xn=Er?function(e,t){return Er.set(e,t),e}:rl,Jn=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Qa(t),writable:!0})}:rl;function Qn(e){return Oo(Da(e))}function ei(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=n(o);++i<o;)s[i]=e[i+t];return s}function ti(e,t){var r;return un(e,function(e,n,i){return!(r=t(e,n,i))}),!!r}function ri(e,t,r){var n=0,i=null==e?n:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;n<i;){var o=n+i>>>1,s=e[o];null!==s&&!aa(s)&&(r?s<=t:s<t)?n=o+1:i=o}return i}return ni(e,t,rl,r)}function ni(e,t,r,n){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=r(t))!=t,l=null===t,c=aa(t),u=t===i;o<s;){var d=pt((o+s)/2),h=r(e[d]),p=h!==i,f=null===h,m=h==h,g=aa(h);if(a)var y=n||m;else y=u?m&&(n||p):l?m&&p&&(n||!f):c?m&&p&&!f&&(n||!g):!f&&!g&&(n?h<=t:h<t);y?o=d+1:s=d}return gr(s,4294967294)}function ii(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var s=e[r],a=t?t(s):s;if(!r||!Ds(a,l)){var l=a;o[i++]=0===s?0:s}}return o}function oi(e){return"number"==typeof e?e:aa(e)?h:+e}function si(e){if("string"==typeof e)return e;if(Hs(e))return Rt(e,si)+"";if(aa(e))return jr?jr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ai(e,t,r){var n=-1,i=$t,o=e.length,s=!0,a=[],l=a;if(r)s=!1,i=_t;else if(o>=200){var c=t?null:Ui(e);if(c)return ar(c);s=!1,i=Xt,l=new Gr}else l=t?[]:a;e:for(;++n<o;){var u=e[n],d=t?t(u):u;if(u=r||0!==u?u:0,s&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),a.push(u)}else i(l,d,r)||(l!==a&&l.push(d),a.push(u))}return a}function li(e,t){return null==(e=Io(e,t=gi(t,e)))||delete e[jo(Yo(t))]}function ci(e,t,r,n){return qn(e,t,r(xn(e,t)),n)}function ui(e,t,r,n){for(var i=e.length,o=n?i:-1;(n?o--:++o<i)&&t(e[o],o,e););return r?ei(e,n?0:o,n?o+1:i):ei(e,n?o+1:0,n?i:o)}function di(e,t){var r=e;return r instanceof zr&&(r=r.value()),Pt(t,function(e,t){return t.func.apply(t.thisArg,Ot([e],t.args))},r)}function hi(e,t,r){var i=e.length;if(i<2)return i?ai(e[0]):[];for(var o=-1,s=n(i);++o<i;)for(var a=e[o],l=-1;++l<i;)l!=o&&(s[o]=cn(s[o]||a,e[l],t,r));return ai(mn(s,1),t,r)}function pi(e,t,r){for(var n=-1,o=e.length,s=t.length,a={};++n<o;){var l=n<s?t[n]:i;r(a,e[n],l)}return a}function fi(e){return Us(e)?e:[]}function mi(e){return"function"==typeof e?e:rl}function gi(e,t){return Hs(e)?e:vo(e,t)?[e]:Lo(ya(e))}var yi=Zn;function vi(e,t,r){var n=e.length;return r=r===i?n:r,!t&&r>=n?e:ei(e,t,r)}var bi=st||function(e){return dt.clearTimeout(e)};function wi(e,t){if(t)return e.slice();var r=e.length,n=He?He(r):new e.constructor(r);return e.copy(n),n}function xi(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Ai(e,t){var r=t?xi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Ci(e,t){if(e!==t){var r=e!==i,n=null===e,o=e==e,s=aa(e),a=t!==i,l=null===t,c=t==t,u=aa(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||n&&a&&c||!r&&c||!o)return 1;if(!n&&!s&&!u&&e<t||u&&r&&o&&!n&&!s||l&&r&&o||!a&&o||!c)return-1}return 0}function Si(e,t,r,i){for(var o=-1,s=e.length,a=r.length,l=-1,c=t.length,u=mr(s-a,0),d=n(c+u),h=!i;++l<c;)d[l]=t[l];for(;++o<a;)(h||o<s)&&(d[r[o]]=e[o]);for(;u--;)d[l++]=e[o++];return d}function Ii(e,t,r,i){for(var o=-1,s=e.length,a=-1,l=r.length,c=-1,u=t.length,d=mr(s-l,0),h=n(d+u),p=!i;++o<d;)h[o]=e[o];for(var f=o;++c<u;)h[f+c]=t[c];for(;++a<l;)(p||o<s)&&(h[f+r[a]]=e[o++]);return h}function ki(e,t){var r=-1,i=e.length;for(t||(t=n(i));++r<i;)t[r]=e[r];return t}function Ei(e,t,r,n){var o=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var l=t[s],c=n?n(r[l],e[l],l,r,e):i;c===i&&(c=e[l]),o?rn(r,l,c):Jr(r,l,c)}return r}function Ti(e,t){return function(r,n){var i=Hs(r)?St:en,o=t?t():{};return i(r,e,oo(n,2),o)}}function $i(e){return Zn(function(t,r){var n=-1,o=r.length,s=o>1?r[o-1]:i,a=o>2?r[2]:i;for(s=e.length>3&&"function"==typeof s?(o--,s):i,a&&yo(r[0],r[1],a)&&(s=o<3?i:s,o=1),t=Se(t);++n<o;){var l=r[n];l&&e(t,l,n,s)}return t})}function _i(e,t){return function(r,n){if(null==r)return r;if(!Gs(r))return e(r,n);for(var i=r.length,o=t?i:-1,s=Se(r);(t?o--:++o<i)&&!1!==n(s[o],o,s););return r}}function Ri(e){return function(t,r,n){for(var i=-1,o=Se(t),s=n(t),a=s.length;a--;){var l=s[e?a:++i];if(!1===r(o[l],l,o))break}return t}}function Oi(e){return function(t){var r=nr(t=ya(t))?ur(t):i,n=r?r[0]:t.charAt(0),o=r?vi(r,1).join(""):t.slice(1);return n[e]()+o}}function Pi(e){return function(t){return Pt(qa(Wa(t).replace(qe,"")),e,"")}}function Mi(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=Fr(e.prototype),n=e.apply(r,t);return Qs(n)?n:r}}function Li(e){return function(t,r,n){var o=Se(t);if(!Gs(t)){var s=oo(r,3);t=_a(t),r=function(e){return s(o[e],e,o)}}var a=e(t,r,n);return a>-1?o[s?t[a]:a]:i}}function ji(e){return Qi(function(t){var r=t.length,n=r,s=Br.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new Ee(o);if(s&&!l&&"wrapper"==no(a))var l=new Br([],!0)}for(n=l?n:r;++n<r;){var c=no(a=t[n]),u="wrapper"==c?ro(a):i;l=u&&bo(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[no(u[0])].apply(l,u[3]):1==a.length&&bo(a)?l[c]():l.thru(a)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&Hs(n))return l.plant(n).value();for(var i=0,o=r?t[i].apply(this,e):n;++i<r;)o=t[i].call(this,o);return o}})}function Ni(e,t,r,o,s,a,l,u,d,h){var p=t&c,f=1&t,m=2&t,g=24&t,y=512&t,v=m?i:Mi(e);return function c(){for(var b=arguments.length,w=n(b),x=b;x--;)w[x]=arguments[x];if(g)var A=io(c),C=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(w,A);if(o&&(w=Si(w,o,s,g)),a&&(w=Ii(w,a,l,g)),b-=C,g&&b<h){var S=sr(w,A);return Vi(e,t,Ni,c.placeholder,r,w,S,u,d,h-b)}var I=f?r:this,k=m?I[e]:e;return b=w.length,u?w=function(e,t){for(var r=e.length,n=gr(t.length,r),o=ki(e);n--;){var s=t[n];e[n]=go(s,r)?o[s]:i}return e}(w,u):y&&b>1&&w.reverse(),p&&d<b&&(w.length=d),this&&this!==dt&&this instanceof c&&(k=v||Mi(k)),k.apply(I,w)}}function Fi(e,t){return function(r,n){return function(e,t,r,n){return vn(e,function(e,i,o){t(n,r(e),i,o)}),n}(r,e,t(n),{})}}function Di(e,t){return function(r,n){var o;if(r===i&&n===i)return t;if(r!==i&&(o=r),n!==i){if(o===i)return n;"string"==typeof r||"string"==typeof n?(r=si(r),n=si(n)):(r=oi(r),n=oi(n)),o=e(r,n)}return o}}function Bi(e){return Qi(function(t){return t=Rt(t,Yt(oo())),Zn(function(r){var n=this;return e(t,function(e){return Ct(e,n,r)})})})}function zi(e,t){var r=(t=t===i?" ":si(t)).length;if(r<2)return r?Un(t,e):t;var n=Un(t,ht(e/cr(t)));return nr(t)?vi(ur(n),0,e).join(""):n.slice(0,e)}function Wi(e){return function(t,r,o){return o&&"number"!=typeof o&&yo(t,r,o)&&(r=o=i),t=ha(t),r===i?(r=t,t=0):r=ha(r),function(e,t,r,i){for(var o=-1,s=mr(ht((t-e)/(r||1)),0),a=n(s);s--;)a[i?s:++o]=e,e+=r;return a}(t,r,o=o===i?t<r?1:-1:ha(o),e)}}function Hi(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=ma(t),r=ma(r)),e(t,r)}}function Vi(e,t,r,n,o,s,a,c,u,d){var h=8&t;t|=h?l:64,4&(t&=~(h?64:l))||(t&=-4);var p=[e,t,o,h?s:i,h?a:i,h?i:s,h?i:a,c,u,d],f=r.apply(i,p);return bo(e)&&Eo(f,p),f.placeholder=n,_o(f,e,t)}function Gi(e){var t=Ce[e];return function(e,r){if(e=ma(e),(r=null==r?0:gr(pa(r),292))&&jt(e)){var n=(ya(e)+"e").split("e");return+((n=(ya(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Ui=Sr&&1/ar(new Sr([,-0]))[1]==u?function(e){return new Sr(e)}:al;function Zi(e){return function(t){var r=ho(t);return r==A?ir(t):r==E?lr(t):function(e,t){return Rt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Ki(e,t,r,s,u,d,h,p){var f=2&t;if(!f&&"function"!=typeof e)throw new Ee(o);var m=s?s.length:0;if(m||(t&=-97,s=u=i),h=h===i?h:mr(pa(h),0),p=p===i?p:pa(p),m-=u?u.length:0,64&t){var g=s,y=u;s=u=i}var v=f?i:ro(e),b=[e,t,r,s,u,g,y,d,h,p];if(v&&function(e,t){var r=e[1],n=t[1],i=r|n,o=i<131,s=n==c&&8==r||n==c&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!o&&!s)return e;1&n&&(e[2]=t[2],i|=1&r?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Si(u,l,t[4]):l,e[4]=u?sr(e[3],a):t[4]}(l=t[5])&&(u=e[5],e[5]=u?Ii(u,l,t[6]):l,e[6]=u?sr(e[5],a):t[6]),(l=t[7])&&(e[7]=l),n&c&&(e[8]=null==e[8]?t[8]:gr(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(b,v),e=b[0],t=b[1],r=b[2],s=b[3],u=b[4],!(p=b[9]=b[9]===i?f?0:e.length:mr(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,r){var o=Mi(e);return function s(){for(var a=arguments.length,l=n(a),c=a,u=io(s);c--;)l[c]=arguments[c];var d=a<3&&l[0]!==u&&l[a-1]!==u?[]:sr(l,u);return(a-=d.length)<r?Vi(e,t,Ni,s.placeholder,i,l,d,i,i,r-a):Ct(this&&this!==dt&&this instanceof s?o:e,this,l)}}(e,t,p):t!=l&&33!=t||u.length?Ni.apply(i,b):function(e,t,r,i){var o=1&t,s=Mi(e);return function t(){for(var a=-1,l=arguments.length,c=-1,u=i.length,d=n(u+l),h=this&&this!==dt&&this instanceof t?s:e;++c<u;)d[c]=i[c];for(;l--;)d[c++]=arguments[++a];return Ct(h,o?r:this,d)}}(e,t,r,s);else var w=function(e,t,r){var n=1&t,i=Mi(e);return function t(){return(this&&this!==dt&&this instanceof t?i:e).apply(n?r:this,arguments)}}(e,t,r);return _o((v?Xn:Eo)(w,b),e,t)}function Yi(e,t,r,n){return e===i||Ds(e,_e[r])&&!Pe.call(n,r)?t:e}function qi(e,t,r,n,o,s){return Qs(e)&&Qs(t)&&(s.set(t,e),Dn(e,t,i,qi,s),s.delete(t)),e}function Xi(e){return na(e)?i:e}function Ji(e,t,r,n,o,s){var a=1&r,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var h=-1,p=!0,f=2&r?new Gr:i;for(s.set(e,t),s.set(t,e);++h<l;){var m=e[h],g=t[h];if(n)var y=a?n(g,m,h,t,e,s):n(m,g,h,e,t,s);if(y!==i){if(y)continue;p=!1;break}if(f){if(!Lt(t,function(e,t){if(!Xt(f,t)&&(m===e||o(m,e,r,n,s)))return f.push(t)})){p=!1;break}}else if(m!==g&&!o(m,g,r,n,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function Qi(e){return $o(So(e,i,Vo),e+"")}function eo(e){return An(e,_a,co)}function to(e){return An(e,Ra,uo)}var ro=Er?function(e){return Er.get(e)}:al;function no(e){for(var t=e.name+"",r=Tr[t],n=Pe.call(Tr,t)?r.length:0;n--;){var i=r[n],o=i.func;if(null==o||o==e)return i.name}return t}function io(e){return(Pe.call(Nr,"placeholder")?Nr:e).placeholder}function oo(){var e=Nr.iteratee||nl;return e=e===nl?Pn:e,arguments.length?e(arguments[0],arguments[1]):e}function so(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function ao(e){for(var t=_a(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Ao(i)]}return t}function lo(e,t){var r=function(e,t){return null==e?i:e[t]}(e,t);return On(r)?r:i}var co=mt?function(e){return null==e?[]:(e=Se(e),Tt(mt(e),function(t){return Ue.call(e,t)}))}:fl,uo=mt?function(e){for(var t=[];e;)Ot(t,co(e)),e=Ve(e);return t}:fl,ho=Cn;function po(e,t,r){for(var n=-1,i=(t=gi(t,e)).length,o=!1;++n<i;){var s=jo(t[n]);if(!(o=null!=e&&r(e,s)))break;e=e[s]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&Js(i)&&go(s,i)&&(Hs(e)||Ws(e))}function fo(e){return"function"!=typeof e.constructor||xo(e)?{}:Fr(Ve(e))}function mo(e){return Hs(e)||Ws(e)||!!(Ke&&e&&e[Ke])}function go(e,t){var r=typeof e;return!!(t=null==t?d:t)&&("number"==r||"symbol"!=r&&ye.test(e))&&e>-1&&e%1==0&&e<t}function yo(e,t,r){if(!Qs(r))return!1;var n=typeof t;return!!("number"==n?Gs(r)&&go(t,r.length):"string"==n&&t in r)&&Ds(r[t],e)}function vo(e,t){if(Hs(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!aa(e))||Q.test(e)||!J.test(e)||null!=t&&e in Se(t)}function bo(e){var t=no(e),r=Nr[t];if("function"!=typeof r||!(t in zr.prototype))return!1;if(e===r)return!0;var n=ro(r);return!!n&&e===n[0]}(xr&&ho(new xr(new ArrayBuffer(1)))!=O||Ar&&ho(new Ar)!=A||Cr&&ho(Cr.resolve())!=I||Sr&&ho(new Sr)!=E||Ir&&ho(new Ir)!=_)&&(ho=function(e){var t=Cn(e),r=t==S?e.constructor:i,n=r?No(r):"";if(n)switch(n){case $r:return O;case _r:return A;case Rr:return I;case Or:return E;case Pr:return _}return t});var wo=Re?qs:ml;function xo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||_e)}function Ao(e){return e==e&&!Qs(e)}function Co(e,t){return function(r){return null!=r&&r[e]===t&&(t!==i||e in Se(r))}}function So(e,t,r){return t=mr(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=mr(i.length-t,0),a=n(s);++o<s;)a[o]=i[t+o];o=-1;for(var l=n(t+1);++o<t;)l[o]=i[o];return l[t]=r(a),Ct(e,this,l)}}function Io(e,t){return t.length<2?e:xn(e,ei(t,0,-1))}function ko(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Eo=Ro(Xn),To=ut||function(e,t){return dt.setTimeout(e,t)},$o=Ro(Jn);function _o(e,t,r){var n=t+"";return $o(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(oe,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return It(f,function(r){var n="_."+r[0];t&r[1]&&!$t(e,n)&&e.push(n)}),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(n),r)))}function Ro(e){var t=0,r=0;return function(){var n=yr(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Oo(e,t){var r=-1,n=e.length,o=n-1;for(t=t===i?n:t;++r<t;){var s=Gn(r,o),a=e[s];e[s]=e[r],e[r]=a}return e.length=t,e}var Po,Mo,Lo=(Po=Ps(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,function(e,r,n,i){t.push(n?i.replace(ue,"$1"):r||e)}),t},function(e){return 500===Mo.size&&Mo.clear(),e}),Mo=Po.cache,Po);function jo(e){if("string"==typeof e||aa(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function No(e){if(null!=e){try{return Oe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fo(e){if(e instanceof zr)return e.clone();var t=new Br(e.__wrapped__,e.__chain__);return t.__actions__=ki(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Do=Zn(function(e,t){return Us(e)?cn(e,mn(t,1,Us,!0)):[]}),Bo=Zn(function(e,t){var r=Yo(t);return Us(r)&&(r=i),Us(e)?cn(e,mn(t,1,Us,!0),oo(r,2)):[]}),zo=Zn(function(e,t){var r=Yo(t);return Us(r)&&(r=i),Us(e)?cn(e,mn(t,1,Us,!0),i,r):[]});function Wo(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:pa(r);return i<0&&(i=mr(n+i,0)),Ft(e,oo(t,3),i)}function Ho(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n-1;return r!==i&&(o=pa(r),o=r<0?mr(n+o,0):gr(o,n-1)),Ft(e,oo(t,3),o,!0)}function Vo(e){return null!=e&&e.length?mn(e,1):[]}function Go(e){return e&&e.length?e[0]:i}var Uo=Zn(function(e){var t=Rt(e,fi);return t.length&&t[0]===e[0]?En(t):[]}),Zo=Zn(function(e){var t=Yo(e),r=Rt(e,fi);return t===Yo(r)?t=i:r.pop(),r.length&&r[0]===e[0]?En(r,oo(t,2)):[]}),Ko=Zn(function(e){var t=Yo(e),r=Rt(e,fi);return(t="function"==typeof t?t:i)&&r.pop(),r.length&&r[0]===e[0]?En(r,i,t):[]});function Yo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var qo=Zn(Xo);function Xo(e,t){return e&&e.length&&t&&t.length?Hn(e,t):e}var Jo=Qi(function(e,t){var r=null==e?0:e.length,n=nn(e,t);return Vn(e,Rt(t,function(e){return go(e,r)?+e:e}).sort(Ci)),n});function Qo(e){return null==e?e:wr.call(e)}var es=Zn(function(e){return ai(mn(e,1,Us,!0))}),ts=Zn(function(e){var t=Yo(e);return Us(t)&&(t=i),ai(mn(e,1,Us,!0),oo(t,2))}),rs=Zn(function(e){var t=Yo(e);return t="function"==typeof t?t:i,ai(mn(e,1,Us,!0),i,t)});function ns(e){if(!e||!e.length)return[];var t=0;return e=Tt(e,function(e){if(Us(e))return t=mr(e.length,t),!0}),Zt(t,function(t){return Rt(e,Ht(t))})}function is(e,t){if(!e||!e.length)return[];var r=ns(e);return null==t?r:Rt(r,function(e){return Ct(t,i,e)})}var os=Zn(function(e,t){return Us(e)?cn(e,t):[]}),ss=Zn(function(e){return hi(Tt(e,Us))}),as=Zn(function(e){var t=Yo(e);return Us(t)&&(t=i),hi(Tt(e,Us),oo(t,2))}),ls=Zn(function(e){var t=Yo(e);return t="function"==typeof t?t:i,hi(Tt(e,Us),i,t)}),cs=Zn(ns),us=Zn(function(e){var t=e.length,r=t>1?e[t-1]:i;return r="function"==typeof r?(e.pop(),r):i,is(e,r)});function ds(e){var t=Nr(e);return t.__chain__=!0,t}function hs(e,t){return t(e)}var ps=Qi(function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(t){return nn(t,e)};return!(t>1||this.__actions__.length)&&n instanceof zr&&go(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:hs,args:[o],thisArg:i}),new Br(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)}),fs=Ti(function(e,t,r){Pe.call(e,r)?++e[r]:rn(e,r,1)}),ms=Li(Wo),gs=Li(Ho);function ys(e,t){return(Hs(e)?It:un)(e,oo(t,3))}function vs(e,t){return(Hs(e)?kt:dn)(e,oo(t,3))}var bs=Ti(function(e,t,r){Pe.call(e,r)?e[r].push(t):rn(e,r,[t])}),ws=Zn(function(e,t,r){var i=-1,o="function"==typeof t,s=Gs(e)?n(e.length):[];return un(e,function(e){s[++i]=o?Ct(t,e,r):Tn(e,t,r)}),s}),xs=Ti(function(e,t,r){rn(e,r,t)});function As(e,t){return(Hs(e)?Rt:jn)(e,oo(t,3))}var Cs=Ti(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]}),Ss=Zn(function(e,t){if(null==e)return[];var r=t.length;return r>1&&yo(e,t[0],t[1])?t=[]:r>2&&yo(t[0],t[1],t[2])&&(t=[t[0]]),zn(e,mn(t,1),[])}),Is=ct||function(){return dt.Date.now()};function ks(e,t,r){return t=r?i:t,t=e&&null==t?e.length:t,Ki(e,c,i,i,i,i,t)}function Es(e,t){var r;if("function"!=typeof t)throw new Ee(o);return e=pa(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var Ts=Zn(function(e,t,r){var n=1;if(r.length){var i=sr(r,io(Ts));n|=l}return Ki(e,n,t,r,i)}),$s=Zn(function(e,t,r){var n=3;if(r.length){var i=sr(r,io($s));n|=l}return Ki(t,n,e,r,i)});function _s(e,t,r){var n,s,a,l,c,u,d=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new Ee(o);function m(t){var r=n,o=s;return n=s=i,d=t,l=e.apply(o,r)}function g(e){var r=e-u;return u===i||r>=t||r<0||p&&e-d>=a}function y(){var e=Is();if(g(e))return v(e);c=To(y,function(e){var r=t-(e-u);return p?gr(r,a-(e-d)):r}(e))}function v(e){return c=i,f&&n?m(e):(n=s=i,l)}function b(){var e=Is(),r=g(e);if(n=arguments,s=this,u=e,r){if(c===i)return function(e){return d=e,c=To(y,t),h?m(e):l}(u);if(p)return bi(c),c=To(y,t),m(u)}return c===i&&(c=To(y,t)),l}return t=ma(t)||0,Qs(r)&&(h=!!r.leading,a=(p="maxWait"in r)?mr(ma(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f),b.cancel=function(){c!==i&&bi(c),d=0,n=u=s=c=i},b.flush=function(){return c===i?l:v(Is())},b}var Rs=Zn(function(e,t){return ln(e,1,t)}),Os=Zn(function(e,t,r){return ln(e,ma(t)||0,r)});function Ps(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ee(o);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Ps.Cache||Vr),r}function Ms(e){if("function"!=typeof e)throw new Ee(o);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)}}Ps.Cache=Vr;var Ls=yi(function(e,t){var r=(t=1==t.length&&Hs(t[0])?Rt(t[0],Yt(oo())):Rt(mn(t,1),Yt(oo()))).length;return Zn(function(n){for(var i=-1,o=gr(n.length,r);++i<o;)n[i]=t[i].call(this,n[i]);return Ct(e,this,n)})}),js=Zn(function(e,t){var r=sr(t,io(js));return Ki(e,l,i,t,r)}),Ns=Zn(function(e,t){var r=sr(t,io(Ns));return Ki(e,64,i,t,r)}),Fs=Qi(function(e,t){return Ki(e,256,i,i,i,t)});function Ds(e,t){return e===t||e!=e&&t!=t}var Bs=Hi(Sn),zs=Hi(function(e,t){return e>=t}),Ws=$n(function(){return arguments}())?$n:function(e){return ea(e)&&Pe.call(e,"callee")&&!Ue.call(e,"callee")},Hs=n.isArray,Vs=yt?Yt(yt):function(e){return ea(e)&&Cn(e)==R};function Gs(e){return null!=e&&Js(e.length)&&!qs(e)}function Us(e){return ea(e)&&Gs(e)}var Zs=gt||ml,Ks=vt?Yt(vt):function(e){return ea(e)&&Cn(e)==v};function Ys(e){if(!ea(e))return!1;var t=Cn(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!na(e)}function qs(e){if(!Qs(e))return!1;var t=Cn(e);return t==w||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xs(e){return"number"==typeof e&&e==pa(e)}function Js(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function Qs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ea(e){return null!=e&&"object"==typeof e}var ta=bt?Yt(bt):function(e){return ea(e)&&ho(e)==A};function ra(e){return"number"==typeof e||ea(e)&&Cn(e)==C}function na(e){if(!ea(e)||Cn(e)!=S)return!1;var t=Ve(e);if(null===t)return!0;var r=Pe.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Oe.call(r)==Ne}var ia=wt?Yt(wt):function(e){return ea(e)&&Cn(e)==k},oa=xt?Yt(xt):function(e){return ea(e)&&ho(e)==E};function sa(e){return"string"==typeof e||!Hs(e)&&ea(e)&&Cn(e)==T}function aa(e){return"symbol"==typeof e||ea(e)&&Cn(e)==$}var la=At?Yt(At):function(e){return ea(e)&&Js(e.length)&&!!it[Cn(e)]},ca=Hi(Ln),ua=Hi(function(e,t){return e<=t});function da(e){if(!e)return[];if(Gs(e))return sa(e)?ur(e):ki(e);if(Ye&&e[Ye])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ye]());var t=ho(e);return(t==A?ir:t==E?ar:Da)(e)}function ha(e){return e?(e=ma(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function pa(e){var t=ha(e),r=t%1;return t==t?r?t-r:t:0}function fa(e){return e?on(pa(e),0,p):0}function ma(e){if("number"==typeof e)return e;if(aa(e))return h;if(Qs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var r=fe.test(e);return r||ge.test(e)?lt(e.slice(2),r?2:8):pe.test(e)?h:+e}function ga(e){return Ei(e,Ra(e))}function ya(e){return null==e?"":si(e)}var va=$i(function(e,t){if(xo(t)||Gs(t))Ei(t,_a(t),e);else for(var r in t)Pe.call(t,r)&&Jr(e,r,t[r])}),ba=$i(function(e,t){Ei(t,Ra(t),e)}),wa=$i(function(e,t,r,n){Ei(t,Ra(t),e,n)}),xa=$i(function(e,t,r,n){Ei(t,_a(t),e,n)}),Aa=Qi(nn),Ca=Zn(function(e,t){e=Se(e);var r=-1,n=t.length,o=n>2?t[2]:i;for(o&&yo(t[0],t[1],o)&&(n=1);++r<n;)for(var s=t[r],a=Ra(s),l=-1,c=a.length;++l<c;){var u=a[l],d=e[u];(d===i||Ds(d,_e[u])&&!Pe.call(e,u))&&(e[u]=s[u])}return e}),Sa=Zn(function(e){return e.push(i,qi),Ct(Pa,i,e)});function Ia(e,t,r){var n=null==e?i:xn(e,t);return n===i?r:n}function ka(e,t){return null!=e&&po(e,t,kn)}var Ea=Fi(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),e[t]=r},Qa(rl)),Ta=Fi(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),Pe.call(e,t)?e[t].push(r):e[t]=[r]},oo),$a=Zn(Tn);function _a(e){return Gs(e)?Zr(e):Mn(e)}function Ra(e){return Gs(e)?Zr(e,!0):function(e){if(!Qs(e))return function(e){var t=[];if(null!=e)for(var r in Se(e))t.push(r);return t}(e);var t=xo(e),r=[];for(var n in e)("constructor"!=n||!t&&Pe.call(e,n))&&r.push(n);return r}(e)}var Oa=$i(function(e,t,r){Dn(e,t,r)}),Pa=$i(function(e,t,r,n){Dn(e,t,r,n)}),Ma=Qi(function(e,t){var r={};if(null==e)return r;var n=!1;t=Rt(t,function(t){return t=gi(t,e),n||(n=t.length>1),t}),Ei(e,to(e),r),n&&(r=sn(r,7,Xi));for(var i=t.length;i--;)li(r,t[i]);return r}),La=Qi(function(e,t){return null==e?{}:function(e,t){return Wn(e,t,function(t,r){return ka(e,r)})}(e,t)});function ja(e,t){if(null==e)return{};var r=Rt(to(e),function(e){return[e]});return t=oo(t),Wn(e,r,function(e,r){return t(e,r[0])})}var Na=Zi(_a),Fa=Zi(Ra);function Da(e){return null==e?[]:qt(e,_a(e))}var Ba=Pi(function(e,t,r){return t=t.toLowerCase(),e+(r?za(t):t)});function za(e){return Ya(ya(e).toLowerCase())}function Wa(e){return(e=ya(e))&&e.replace(ve,er).replace(Xe,"")}var Ha=Pi(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Va=Pi(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Ga=Oi("toLowerCase"),Ua=Pi(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}),Za=Pi(function(e,t,r){return e+(r?" ":"")+Ya(t)}),Ka=Pi(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Ya=Oi("toUpperCase");function qa(e,t,r){return e=ya(e),(t=r?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Xa=Zn(function(e,t){try{return Ct(e,i,t)}catch(e){return Ys(e)?e:new xe(e)}}),Ja=Qi(function(e,t){return It(t,function(t){t=jo(t),rn(e,t,Ts(e[t],e))}),e});function Qa(e){return function(){return e}}var el=ji(),tl=ji(!0);function rl(e){return e}function nl(e){return Pn("function"==typeof e?e:sn(e,1))}var il=Zn(function(e,t){return function(r){return Tn(r,e,t)}}),ol=Zn(function(e,t){return function(r){return Tn(e,r,t)}});function sl(e,t,r){var n=_a(t),i=wn(t,n);null!=r||Qs(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=wn(t,_a(t)));var o=!(Qs(r)&&"chain"in r&&!r.chain),s=qs(e);return It(i,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__=ki(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Ot([this.value()],arguments))})}),e}function al(){}var ll=Bi(Rt),cl=Bi(Et),ul=Bi(Lt);function dl(e){return vo(e)?Ht(jo(e)):function(e){return function(t){return xn(t,e)}}(e)}var hl=Wi(),pl=Wi(!0);function fl(){return[]}function ml(){return!1}var gl,yl=Di(function(e,t){return e+t},0),vl=Gi("ceil"),bl=Di(function(e,t){return e/t},1),wl=Gi("floor"),xl=Di(function(e,t){return e*t},1),Al=Gi("round"),Cl=Di(function(e,t){return e-t},0);return Nr.after=function(e,t){if("function"!=typeof t)throw new Ee(o);return e=pa(e),function(){if(--e<1)return t.apply(this,arguments)}},Nr.ary=ks,Nr.assign=va,Nr.assignIn=ba,Nr.assignInWith=wa,Nr.assignWith=xa,Nr.at=Aa,Nr.before=Es,Nr.bind=Ts,Nr.bindAll=Ja,Nr.bindKey=$s,Nr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Hs(e)?e:[e]},Nr.chain=ds,Nr.chunk=function(e,t,r){t=(r?yo(e,t,r):t===i)?1:mr(pa(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,a=0,l=n(ht(o/t));s<o;)l[a++]=ei(e,s,s+=t);return l},Nr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var o=e[t];o&&(i[n++]=o)}return i},Nr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Ot(Hs(r)?ki(r):[r],mn(t,1))},Nr.cond=function(e){var t=null==e?0:e.length,r=oo();return e=t?Rt(e,function(e){if("function"!=typeof e[1])throw new Ee(o);return[r(e[0]),e[1]]}):[],Zn(function(r){for(var n=-1;++n<t;){var i=e[n];if(Ct(i[0],this,r))return Ct(i[1],this,r)}})},Nr.conforms=function(e){return function(e){var t=_a(e);return function(r){return an(r,e,t)}}(sn(e,1))},Nr.constant=Qa,Nr.countBy=fs,Nr.create=function(e,t){var r=Fr(e);return null==t?r:tn(r,t)},Nr.curry=function e(t,r,n){var o=Ki(t,8,i,i,i,i,i,r=n?i:r);return o.placeholder=e.placeholder,o},Nr.curryRight=function e(t,r,n){var o=Ki(t,16,i,i,i,i,i,r=n?i:r);return o.placeholder=e.placeholder,o},Nr.debounce=_s,Nr.defaults=Ca,Nr.defaultsDeep=Sa,Nr.defer=Rs,Nr.delay=Os,Nr.difference=Do,Nr.differenceBy=Bo,Nr.differenceWith=zo,Nr.drop=function(e,t,r){var n=null==e?0:e.length;return n?ei(e,(t=r||t===i?1:pa(t))<0?0:t,n):[]},Nr.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?ei(e,0,(t=n-(t=r||t===i?1:pa(t)))<0?0:t):[]},Nr.dropRightWhile=function(e,t){return e&&e.length?ui(e,oo(t,3),!0,!0):[]},Nr.dropWhile=function(e,t){return e&&e.length?ui(e,oo(t,3),!0):[]},Nr.fill=function(e,t,r,n){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&yo(e,t,r)&&(r=0,n=o),function(e,t,r,n){var o=e.length;for((r=pa(r))<0&&(r=-r>o?0:o+r),(n=n===i||n>o?o:pa(n))<0&&(n+=o),n=r>n?0:fa(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},Nr.filter=function(e,t){return(Hs(e)?Tt:fn)(e,oo(t,3))},Nr.flatMap=function(e,t){return mn(As(e,t),1)},Nr.flatMapDeep=function(e,t){return mn(As(e,t),u)},Nr.flatMapDepth=function(e,t,r){return r=r===i?1:pa(r),mn(As(e,t),r)},Nr.flatten=Vo,Nr.flattenDeep=function(e){return null!=e&&e.length?mn(e,u):[]},Nr.flattenDepth=function(e,t){return null!=e&&e.length?mn(e,t=t===i?1:pa(t)):[]},Nr.flip=function(e){return Ki(e,512)},Nr.flow=el,Nr.flowRight=tl,Nr.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},Nr.functions=function(e){return null==e?[]:wn(e,_a(e))},Nr.functionsIn=function(e){return null==e?[]:wn(e,Ra(e))},Nr.groupBy=bs,Nr.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},Nr.intersection=Uo,Nr.intersectionBy=Zo,Nr.intersectionWith=Ko,Nr.invert=Ea,Nr.invertBy=Ta,Nr.invokeMap=ws,Nr.iteratee=nl,Nr.keyBy=xs,Nr.keys=_a,Nr.keysIn=Ra,Nr.map=As,Nr.mapKeys=function(e,t){var r={};return t=oo(t,3),vn(e,function(e,n,i){rn(r,t(e,n,i),e)}),r},Nr.mapValues=function(e,t){var r={};return t=oo(t,3),vn(e,function(e,n,i){rn(r,n,t(e,n,i))}),r},Nr.matches=function(e){return Nn(sn(e,1))},Nr.matchesProperty=function(e,t){return Fn(e,sn(t,1))},Nr.memoize=Ps,Nr.merge=Oa,Nr.mergeWith=Pa,Nr.method=il,Nr.methodOf=ol,Nr.mixin=sl,Nr.negate=Ms,Nr.nthArg=function(e){return e=pa(e),Zn(function(t){return Bn(t,e)})},Nr.omit=Ma,Nr.omitBy=function(e,t){return ja(e,Ms(oo(t)))},Nr.once=function(e){return Es(2,e)},Nr.orderBy=function(e,t,r,n){return null==e?[]:(Hs(t)||(t=null==t?[]:[t]),Hs(r=n?i:r)||(r=null==r?[]:[r]),zn(e,t,r))},Nr.over=ll,Nr.overArgs=Ls,Nr.overEvery=cl,Nr.overSome=ul,Nr.partial=js,Nr.partialRight=Ns,Nr.partition=Cs,Nr.pick=La,Nr.pickBy=ja,Nr.property=dl,Nr.propertyOf=function(e){return function(t){return null==e?i:xn(e,t)}},Nr.pull=qo,Nr.pullAll=Xo,Nr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?Hn(e,t,oo(r,2)):e},Nr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Hn(e,t,i,r):e},Nr.pullAt=Jo,Nr.range=hl,Nr.rangeRight=pl,Nr.rearg=Fs,Nr.reject=function(e,t){return(Hs(e)?Tt:fn)(e,Ms(oo(t,3)))},Nr.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,i=[],o=e.length;for(t=oo(t,3);++n<o;){var s=e[n];t(s,n,e)&&(r.push(s),i.push(n))}return Vn(e,i),r},Nr.rest=function(e,t){if("function"!=typeof e)throw new Ee(o);return Zn(e,t=t===i?t:pa(t))},Nr.reverse=Qo,Nr.sampleSize=function(e,t,r){return t=(r?yo(e,t,r):t===i)?1:pa(t),(Hs(e)?Yr:Yn)(e,t)},Nr.set=function(e,t,r){return null==e?e:qn(e,t,r)},Nr.setWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:qn(e,t,r,n)},Nr.shuffle=function(e){return(Hs(e)?qr:Qn)(e)},Nr.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&yo(e,t,r)?(t=0,r=n):(t=null==t?0:pa(t),r=r===i?n:pa(r)),ei(e,t,r)):[]},Nr.sortBy=Ss,Nr.sortedUniq=function(e){return e&&e.length?ii(e):[]},Nr.sortedUniqBy=function(e,t){return e&&e.length?ii(e,oo(t,2)):[]},Nr.split=function(e,t,r){return r&&"number"!=typeof r&&yo(e,t,r)&&(t=r=i),(r=r===i?p:r>>>0)?(e=ya(e))&&("string"==typeof t||null!=t&&!ia(t))&&!(t=si(t))&&nr(e)?vi(ur(e),0,r):e.split(t,r):[]},Nr.spread=function(e,t){if("function"!=typeof e)throw new Ee(o);return t=null==t?0:mr(pa(t),0),Zn(function(r){var n=r[t],i=vi(r,0,t);return n&&Ot(i,n),Ct(e,this,i)})},Nr.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},Nr.take=function(e,t,r){return e&&e.length?ei(e,0,(t=r||t===i?1:pa(t))<0?0:t):[]},Nr.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?ei(e,(t=n-(t=r||t===i?1:pa(t)))<0?0:t,n):[]},Nr.takeRightWhile=function(e,t){return e&&e.length?ui(e,oo(t,3),!1,!0):[]},Nr.takeWhile=function(e,t){return e&&e.length?ui(e,oo(t,3)):[]},Nr.tap=function(e,t){return t(e),e},Nr.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new Ee(o);return Qs(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),_s(e,t,{leading:n,maxWait:t,trailing:i})},Nr.thru=hs,Nr.toArray=da,Nr.toPairs=Na,Nr.toPairsIn=Fa,Nr.toPath=function(e){return Hs(e)?Rt(e,jo):aa(e)?[e]:ki(Lo(ya(e)))},Nr.toPlainObject=ga,Nr.transform=function(e,t,r){var n=Hs(e),i=n||Zs(e)||la(e);if(t=oo(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:Qs(e)&&qs(o)?Fr(Ve(e)):{}}return(i?It:vn)(e,function(e,n,i){return t(r,e,n,i)}),r},Nr.unary=function(e){return ks(e,1)},Nr.union=es,Nr.unionBy=ts,Nr.unionWith=rs,Nr.uniq=function(e){return e&&e.length?ai(e):[]},Nr.uniqBy=function(e,t){return e&&e.length?ai(e,oo(t,2)):[]},Nr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ai(e,i,t):[]},Nr.unset=function(e,t){return null==e||li(e,t)},Nr.unzip=ns,Nr.unzipWith=is,Nr.update=function(e,t,r){return null==e?e:ci(e,t,mi(r))},Nr.updateWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:ci(e,t,mi(r),n)},Nr.values=Da,Nr.valuesIn=function(e){return null==e?[]:qt(e,Ra(e))},Nr.without=os,Nr.words=qa,Nr.wrap=function(e,t){return js(mi(t),e)},Nr.xor=ss,Nr.xorBy=as,Nr.xorWith=ls,Nr.zip=cs,Nr.zipObject=function(e,t){return pi(e||[],t||[],Jr)},Nr.zipObjectDeep=function(e,t){return pi(e||[],t||[],qn)},Nr.zipWith=us,Nr.entries=Na,Nr.entriesIn=Fa,Nr.extend=ba,Nr.extendWith=wa,sl(Nr,Nr),Nr.add=yl,Nr.attempt=Xa,Nr.camelCase=Ba,Nr.capitalize=za,Nr.ceil=vl,Nr.clamp=function(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=(r=ma(r))==r?r:0),t!==i&&(t=(t=ma(t))==t?t:0),on(ma(e),t,r)},Nr.clone=function(e){return sn(e,4)},Nr.cloneDeep=function(e){return sn(e,5)},Nr.cloneDeepWith=function(e,t){return sn(e,5,t="function"==typeof t?t:i)},Nr.cloneWith=function(e,t){return sn(e,4,t="function"==typeof t?t:i)},Nr.conformsTo=function(e,t){return null==t||an(e,t,_a(t))},Nr.deburr=Wa,Nr.defaultTo=function(e,t){return null==e||e!=e?t:e},Nr.divide=bl,Nr.endsWith=function(e,t,r){e=ya(e),t=si(t);var n=e.length,o=r=r===i?n:on(pa(r),0,n);return(r-=t.length)>=0&&e.slice(r,o)==t},Nr.eq=Ds,Nr.escape=function(e){return(e=ya(e))&&K.test(e)?e.replace(U,tr):e},Nr.escapeRegExp=function(e){return(e=ya(e))&&re.test(e)?e.replace(te,"\\$&"):e},Nr.every=function(e,t,r){var n=Hs(e)?Et:hn;return r&&yo(e,t,r)&&(t=i),n(e,oo(t,3))},Nr.find=ms,Nr.findIndex=Wo,Nr.findKey=function(e,t){return Nt(e,oo(t,3),vn)},Nr.findLast=gs,Nr.findLastIndex=Ho,Nr.findLastKey=function(e,t){return Nt(e,oo(t,3),bn)},Nr.floor=wl,Nr.forEach=ys,Nr.forEachRight=vs,Nr.forIn=function(e,t){return null==e?e:gn(e,oo(t,3),Ra)},Nr.forInRight=function(e,t){return null==e?e:yn(e,oo(t,3),Ra)},Nr.forOwn=function(e,t){return e&&vn(e,oo(t,3))},Nr.forOwnRight=function(e,t){return e&&bn(e,oo(t,3))},Nr.get=Ia,Nr.gt=Bs,Nr.gte=zs,Nr.has=function(e,t){return null!=e&&po(e,t,In)},Nr.hasIn=ka,Nr.head=Go,Nr.identity=rl,Nr.includes=function(e,t,r,n){e=Gs(e)?e:Da(e),r=r&&!n?pa(r):0;var i=e.length;return r<0&&(r=mr(i+r,0)),sa(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Dt(e,t,r)>-1},Nr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:pa(r);return i<0&&(i=mr(n+i,0)),Dt(e,t,i)},Nr.inRange=function(e,t,r){return t=ha(t),r===i?(r=t,t=0):r=ha(r),function(e,t,r){return e>=gr(t,r)&&e<mr(t,r)}(e=ma(e),t,r)},Nr.invoke=$a,Nr.isArguments=Ws,Nr.isArray=Hs,Nr.isArrayBuffer=Vs,Nr.isArrayLike=Gs,Nr.isArrayLikeObject=Us,Nr.isBoolean=function(e){return!0===e||!1===e||ea(e)&&Cn(e)==y},Nr.isBuffer=Zs,Nr.isDate=Ks,Nr.isElement=function(e){return ea(e)&&1===e.nodeType&&!na(e)},Nr.isEmpty=function(e){if(null==e)return!0;if(Gs(e)&&(Hs(e)||"string"==typeof e||"function"==typeof e.splice||Zs(e)||la(e)||Ws(e)))return!e.length;var t=ho(e);if(t==A||t==E)return!e.size;if(xo(e))return!Mn(e).length;for(var r in e)if(Pe.call(e,r))return!1;return!0},Nr.isEqual=function(e,t){return _n(e,t)},Nr.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:i)?r(e,t):i;return n===i?_n(e,t,i,r):!!n},Nr.isError=Ys,Nr.isFinite=function(e){return"number"==typeof e&&jt(e)},Nr.isFunction=qs,Nr.isInteger=Xs,Nr.isLength=Js,Nr.isMap=ta,Nr.isMatch=function(e,t){return e===t||Rn(e,t,ao(t))},Nr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:i,Rn(e,t,ao(t),r)},Nr.isNaN=function(e){return ra(e)&&e!=+e},Nr.isNative=function(e){if(wo(e))throw new xe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return On(e)},Nr.isNil=function(e){return null==e},Nr.isNull=function(e){return null===e},Nr.isNumber=ra,Nr.isObject=Qs,Nr.isObjectLike=ea,Nr.isPlainObject=na,Nr.isRegExp=ia,Nr.isSafeInteger=function(e){return Xs(e)&&e>=-9007199254740991&&e<=d},Nr.isSet=oa,Nr.isString=sa,Nr.isSymbol=aa,Nr.isTypedArray=la,Nr.isUndefined=function(e){return e===i},Nr.isWeakMap=function(e){return ea(e)&&ho(e)==_},Nr.isWeakSet=function(e){return ea(e)&&"[object WeakSet]"==Cn(e)},Nr.join=function(e,t){return null==e?"":Vt.call(e,t)},Nr.kebabCase=Ha,Nr.last=Yo,Nr.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n;return r!==i&&(o=(o=pa(r))<0?mr(n+o,0):gr(o,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,o):Ft(e,zt,o,!0)},Nr.lowerCase=Va,Nr.lowerFirst=Ga,Nr.lt=ca,Nr.lte=ua,Nr.max=function(e){return e&&e.length?pn(e,rl,Sn):i},Nr.maxBy=function(e,t){return e&&e.length?pn(e,oo(t,2),Sn):i},Nr.mean=function(e){return Wt(e,rl)},Nr.meanBy=function(e,t){return Wt(e,oo(t,2))},Nr.min=function(e){return e&&e.length?pn(e,rl,Ln):i},Nr.minBy=function(e,t){return e&&e.length?pn(e,oo(t,2),Ln):i},Nr.stubArray=fl,Nr.stubFalse=ml,Nr.stubObject=function(){return{}},Nr.stubString=function(){return""},Nr.stubTrue=function(){return!0},Nr.multiply=xl,Nr.nth=function(e,t){return e&&e.length?Bn(e,pa(t)):i},Nr.noConflict=function(){return dt._===this&&(dt._=Fe),this},Nr.noop=al,Nr.now=Is,Nr.pad=function(e,t,r){e=ya(e);var n=(t=pa(t))?cr(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return zi(pt(i),r)+e+zi(ht(i),r)},Nr.padEnd=function(e,t,r){e=ya(e);var n=(t=pa(t))?cr(e):0;return t&&n<t?e+zi(t-n,r):e},Nr.padStart=function(e,t,r){e=ya(e);var n=(t=pa(t))?cr(e):0;return t&&n<t?zi(t-n,r)+e:e},Nr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),vr(ya(e).replace(ne,""),t||0)},Nr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&yo(e,t,r)&&(t=r=i),r===i&&("boolean"==typeof t?(r=t,t=i):"boolean"==typeof e&&(r=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ha(e),t===i?(t=e,e=0):t=ha(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var o=br();return gr(e+o*(t-e+at("1e-"+((o+"").length-1))),t)}return Gn(e,t)},Nr.reduce=function(e,t,r){var n=Hs(e)?Pt:Gt,i=arguments.length<3;return n(e,oo(t,4),r,i,un)},Nr.reduceRight=function(e,t,r){var n=Hs(e)?Mt:Gt,i=arguments.length<3;return n(e,oo(t,4),r,i,dn)},Nr.repeat=function(e,t,r){return t=(r?yo(e,t,r):t===i)?1:pa(t),Un(ya(e),t)},Nr.replace=function(){var e=arguments,t=ya(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Nr.result=function(e,t,r){var n=-1,o=(t=gi(t,e)).length;for(o||(o=1,e=i);++n<o;){var s=null==e?i:e[jo(t[n])];s===i&&(n=o,s=r),e=qs(s)?s.call(e):s}return e},Nr.round=Al,Nr.runInContext=e,Nr.sample=function(e){return(Hs(e)?Kr:Kn)(e)},Nr.size=function(e){if(null==e)return 0;if(Gs(e))return sa(e)?cr(e):e.length;var t=ho(e);return t==A||t==E?e.size:Mn(e).length},Nr.snakeCase=Ua,Nr.some=function(e,t,r){var n=Hs(e)?Lt:ti;return r&&yo(e,t,r)&&(t=i),n(e,oo(t,3))},Nr.sortedIndex=function(e,t){return ri(e,t)},Nr.sortedIndexBy=function(e,t,r){return ni(e,t,oo(r,2))},Nr.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=ri(e,t);if(n<r&&Ds(e[n],t))return n}return-1},Nr.sortedLastIndex=function(e,t){return ri(e,t,!0)},Nr.sortedLastIndexBy=function(e,t,r){return ni(e,t,oo(r,2),!0)},Nr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var r=ri(e,t,!0)-1;if(Ds(e[r],t))return r}return-1},Nr.startCase=Za,Nr.startsWith=function(e,t,r){return e=ya(e),r=null==r?0:on(pa(r),0,e.length),t=si(t),e.slice(r,r+t.length)==t},Nr.subtract=Cl,Nr.sum=function(e){return e&&e.length?Ut(e,rl):0},Nr.sumBy=function(e,t){return e&&e.length?Ut(e,oo(t,2)):0},Nr.template=function(e,t,r){var n=Nr.templateSettings;r&&yo(e,t,r)&&(t=i),e=ya(e),t=wa({},t,n,Yi);var o,s,a=wa({},t.imports,n.imports,Yi),l=_a(a),c=qt(a,l),u=0,d=t.interpolate||be,h="__p += '",p=Ie((t.escape||be).source+"|"+d.source+"|"+(d===X?de:be).source+"|"+(t.evaluate||be).source+"|$","g"),f="//# sourceURL="+(Pe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nt+"]")+"\n";e.replace(p,function(t,r,n,i,a,l){return n||(n=i),h+=e.slice(u,l).replace(we,rr),r&&(o=!0,h+="' +\n__e("+r+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),n&&(h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=l+t.length,t}),h+="';\n";var m=Pe.call(t,"variable")&&t.variable;if(m){if(ce.test(m))throw new xe("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(W,""):h).replace(H,"$1").replace(V,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Xa(function(){return Ae(l,f+"return "+h).apply(i,c)});if(g.source=h,Ys(g))throw g;return g},Nr.times=function(e,t){if((e=pa(e))<1||e>d)return[];var r=p,n=gr(e,p);t=oo(t),e-=p;for(var i=Zt(n,t);++r<e;)t(r);return i},Nr.toFinite=ha,Nr.toInteger=pa,Nr.toLength=fa,Nr.toLower=function(e){return ya(e).toLowerCase()},Nr.toNumber=ma,Nr.toSafeInteger=function(e){return e?on(pa(e),-9007199254740991,d):0===e?e:0},Nr.toString=ya,Nr.toUpper=function(e){return ya(e).toUpperCase()},Nr.trim=function(e,t,r){if((e=ya(e))&&(r||t===i))return Kt(e);if(!e||!(t=si(t)))return e;var n=ur(e),o=ur(t);return vi(n,Jt(n,o),Qt(n,o)+1).join("")},Nr.trimEnd=function(e,t,r){if((e=ya(e))&&(r||t===i))return e.slice(0,dr(e)+1);if(!e||!(t=si(t)))return e;var n=ur(e);return vi(n,0,Qt(n,ur(t))+1).join("")},Nr.trimStart=function(e,t,r){if((e=ya(e))&&(r||t===i))return e.replace(ne,"");if(!e||!(t=si(t)))return e;var n=ur(e);return vi(n,Jt(n,ur(t))).join("")},Nr.truncate=function(e,t){var r=30,n="...";if(Qs(t)){var o="separator"in t?t.separator:o;r="length"in t?pa(t.length):r,n="omission"in t?si(t.omission):n}var s=(e=ya(e)).length;if(nr(e)){var a=ur(e);s=a.length}if(r>=s)return e;var l=r-cr(n);if(l<1)return n;var c=a?vi(a,0,l).join(""):e.slice(0,l);if(o===i)return c+n;if(a&&(l+=c.length-l),ia(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=Ie(o.source,ya(he.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var h=u.index;c=c.slice(0,h===i?l:h)}}else if(e.indexOf(si(o),l)!=l){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+n},Nr.unescape=function(e){return(e=ya(e))&&Z.test(e)?e.replace(G,hr):e},Nr.uniqueId=function(e){var t=++Me;return ya(e)+t},Nr.upperCase=Ka,Nr.upperFirst=Ya,Nr.each=ys,Nr.eachRight=vs,Nr.first=Go,sl(Nr,(gl={},vn(Nr,function(e,t){Pe.call(Nr.prototype,t)||(gl[t]=e)}),gl),{chain:!1}),Nr.VERSION="4.17.21",It(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Nr[e].placeholder=Nr}),It(["drop","take"],function(e,t){zr.prototype[e]=function(r){r=r===i?1:mr(pa(r),0);var n=this.__filtered__&&!t?new zr(this):this.clone();return n.__filtered__?n.__takeCount__=gr(r,n.__takeCount__):n.__views__.push({size:gr(r,p),type:e+(n.__dir__<0?"Right":"")}),n},zr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),It(["filter","map","takeWhile"],function(e,t){var r=t+1,n=1==r||3==r;zr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),It(["head","last"],function(e,t){var r="take"+(t?"Right":"");zr.prototype[e]=function(){return this[r](1).value()[0]}}),It(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");zr.prototype[e]=function(){return this.__filtered__?new zr(this):this[r](1)}}),zr.prototype.compact=function(){return this.filter(rl)},zr.prototype.find=function(e){return this.filter(e).head()},zr.prototype.findLast=function(e){return this.reverse().find(e)},zr.prototype.invokeMap=Zn(function(e,t){return"function"==typeof e?new zr(this):this.map(function(r){return Tn(r,e,t)})}),zr.prototype.reject=function(e){return this.filter(Ms(oo(e)))},zr.prototype.slice=function(e,t){e=pa(e);var r=this;return r.__filtered__&&(e>0||t<0)?new zr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(r=(t=pa(t))<0?r.dropRight(-t):r.take(t-e)),r)},zr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},zr.prototype.toArray=function(){return this.take(p)},vn(zr.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=Nr[n?"take"+("last"==t?"Right":""):t],s=n||/^find/.test(t);o&&(Nr.prototype[t]=function(){var t=this.__wrapped__,a=n?[1]:arguments,l=t instanceof zr,c=a[0],u=l||Hs(t),d=function(e){var t=o.apply(Nr,Ot([e],a));return n&&h?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,p=!!this.__actions__.length,f=s&&!h,m=l&&!p;if(!s&&u){t=m?t:new zr(this);var g=e.apply(t,a);return g.__actions__.push({func:hs,args:[d],thisArg:i}),new Br(g,h)}return f&&m?e.apply(this,a):(g=this.thru(d),f?n?g.value()[0]:g.value():g)})}),It(["pop","push","shift","sort","splice","unshift"],function(e){var t=Te[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Nr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(Hs(i)?i:[],e)}return this[r](function(r){return t.apply(Hs(r)?r:[],e)})}}),vn(zr.prototype,function(e,t){var r=Nr[t];if(r){var n=r.name+"";Pe.call(Tr,n)||(Tr[n]=[]),Tr[n].push({name:t,func:r})}}),Tr[Ni(i,2).name]=[{name:"wrapper",func:i}],zr.prototype.clone=function(){var e=new zr(this.__wrapped__);return e.__actions__=ki(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ki(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ki(this.__views__),e},zr.prototype.reverse=function(){if(this.__filtered__){var e=new zr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},zr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Hs(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n<i;){var o=r[n],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=gr(t,e+s);break;case"takeRight":e=mr(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=o.start,a=o.end,l=a-s,c=n?a:s-1,u=this.__iteratees__,d=u.length,h=0,p=gr(l,this.__takeCount__);if(!r||!n&&i==l&&p==l)return di(e,this.__actions__);var f=[];e:for(;l--&&h<p;){for(var m=-1,g=e[c+=t];++m<d;){var y=u[m],v=y.iteratee,b=y.type,w=v(g);if(2==b)g=w;else if(!w){if(1==b)continue e;break e}}f[h++]=g}return f},Nr.prototype.at=ps,Nr.prototype.chain=function(){return ds(this)},Nr.prototype.commit=function(){return new Br(this.value(),this.__chain__)},Nr.prototype.next=function(){this.__values__===i&&(this.__values__=da(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Nr.prototype.plant=function(e){for(var t,r=this;r instanceof Dr;){var n=Fo(r);n.__index__=0,n.__values__=i,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t},Nr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof zr){var t=e;return this.__actions__.length&&(t=new zr(this)),(t=t.reverse()).__actions__.push({func:hs,args:[Qo],thisArg:i}),new Br(t,this.__chain__)}return this.thru(Qo)},Nr.prototype.toJSON=Nr.prototype.valueOf=Nr.prototype.value=function(){return di(this.__wrapped__,this.__actions__)},Nr.prototype.first=Nr.prototype.head,Ye&&(Nr.prototype[Ye]=function(){return this}),Nr}();dt._=pr,(n=function(){return pr}.call(t,r,t,e))===i||(e.exports=n)}.call(this)},2694:(e,t,r)=>{"use strict";var n=r(6925);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},2892:(e,t,r)=>{"use strict";var n=r(46518),i=r(96395),o=r(43724),s=r(44576),a=r(19167),l=r(79504),c=r(92796),u=r(39297),d=r(23167),h=r(1625),p=r(10757),f=r(72777),m=r(79039),g=r(38480).f,y=r(77347).f,v=r(24913).f,b=r(31240),w=r(43802).trim,x="Number",A=s[x],C=a[x],S=A.prototype,I=s.TypeError,k=l("".slice),E=l("".charCodeAt),T=c(x,!A(" 0o1")||!A("0b1")||A("+0x1")),$=function(e){var t,r=arguments.length<1?0:A(function(e){var t=f(e,"number");return"bigint"==typeof t?t:function(e){var t,r,n,i,o,s,a,l,c=f(e,"number");if(p(c))throw new I("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=w(c),43===(t=E(c,0))||45===t){if(88===(r=E(c,2))||120===r)return NaN}else if(48===t){switch(E(c,1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+c}for(s=(o=k(c,2)).length,a=0;a<s;a++)if((l=E(o,a))<48||l>i)return NaN;return parseInt(o,n)}return+c}(t)}(e));return h(S,t=this)&&m(function(){b(t)})?d(Object(r),this,$):r};$.prototype=S,T&&!i&&(S.constructor=$),n({global:!0,constructor:!0,wrap:!0,forced:T},{Number:$});var _=function(e,t){for(var r,n=o?g(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;n.length>i;i++)u(t,r=n[i])&&!u(e,r)&&v(e,r,y(t,r))};i&&C&&_(a[x],C),(T||i)&&_(a[x],A)},2945:(e,t,r)=>{"use strict";var n=r(46518),i=r(44576),o=r(97751),s=r(79504),a=r(69565),l=r(79039),c=r(655),u=r(22812),d=r(92804).c2i,h=/[^\d+/a-z]/i,p=/[\t\n\f\r ]+/g,f=/[=]{1,2}$/,m=o("atob"),g=String.fromCharCode,y=s("".charAt),v=s("".replace),b=s(h.exec),w=!!m&&!l(function(){return"hi"!==m("aGk=")}),x=w&&l(function(){return""!==m(" ")}),A=w&&!l(function(){m("a")}),C=w&&!l(function(){m()}),S=w&&1!==m.length;n({global:!0,bind:!0,enumerable:!0,forced:!w||x||A||C||S},{atob:function(e){if(u(arguments.length,1),w&&!x&&!A)return a(m,i,e);var t,r,n,s=v(c(e),p,""),l="",C=0,S=0;if(s.length%4==0&&(s=v(s,f,"")),(t=s.length)%4==1||b(h,s))throw new(o("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;C<t;)r=y(s,C++),n=S%4?64*n+d[r]:d[r],S++%4&&(l+=g(255&n>>(-2*S&6)));return l}})},3072:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case o:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case g:case m:case l:return e;default:return t}}case i:return t}}}function A(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return A(e)||x(e)===u},t.isConcurrentMode=A,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===a||e===s||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=x},3238:(e,t,r)=>{"use strict";var n=r(44576),i=r(77811),o=r(67394),s=n.DataView;e.exports=function(e){if(!i||0!==o(e))return!1;try{return new s(e),!1}catch(e){return!0}}},3296:(e,t,r)=>{"use strict";r(45806)},3362:(e,t,r)=>{"use strict";r(10436),r(16499),r(82003),r(7743),r(51481),r(40280)},3451:(e,t,r)=>{"use strict";var n=r(46518),i=r(79504),o=r(30421),s=r(20034),a=r(39297),l=r(24913).f,c=r(38480),u=r(10298),d=r(34124),h=r(33392),p=r(92744),f=!1,m=h("meta"),g=0,y=function(e){l(e,m,{value:{objectID:"O"+g++,weakData:{}}})},v=e.exports={enable:function(){v.enable=function(){},f=!0;var e=c.f,t=i([].splice),r={};r[m]=1,e(r).length&&(c.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===m){t(n,i,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,m)){if(!d(e))return"F";if(!t)return"E";y(e)}return e[m].objectID},getWeakData:function(e,t){if(!a(e,m)){if(!d(e))return!0;if(!t)return!1;y(e)}return e[m].weakData},onFreeze:function(e){return p&&f&&d(e)&&!a(e,m)&&y(e),e}};o[m]=!0},3470:e=>{"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},3576:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(96540);const i="undefined"!=typeof window?n.useLayoutEffect:n.useEffect},3607:(e,t,r)=>{"use strict";var n=r(82839).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},3650:(e,t,r)=>{var n=r(74335)(Object.keys,Object);e.exports=n},3656:(e,t,r)=>{e=r.nmd(e);var n=r(9325),i=r(89935),o=t&&!t.nodeType&&t,s=o&&e&&!e.nodeType&&e,a=s&&s.exports===o?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||i;e.exports=l},3690:(e,t,r)=>{"use strict";r(15823)("Uint16",function(e){return function(t,r,n){return e(this,t,r,n)}})},3717:(e,t,r)=>{"use strict";var n=r(79504),i=2147483647,o=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",l=RangeError,c=n(s.exec),u=Math.floor,d=String.fromCharCode,h=n("".charCodeAt),p=n([].join),f=n([].push),m=n("".replace),g=n("".split),y=n("".toLowerCase),v=function(e){return e+22+75*(e<26)},b=function(e,t,r){var n=0;for(e=r?u(e/700):e>>1,e+=u(e/t);e>455;)e=u(e/35),n+=36;return u(n+36*e/(e+38))},w=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=h(e,r++);if(i>=55296&&i<=56319&&r<n){var o=h(e,r++);56320==(64512&o)?f(t,((1023&i)<<10)+(1023&o)+65536):(f(t,i),r--)}else f(t,i)}return t}(e);var r,n,o=e.length,s=128,c=0,m=72;for(r=0;r<e.length;r++)(n=e[r])<128&&f(t,d(n));var g=t.length,y=g;for(g&&f(t,"-");y<o;){var w=i;for(r=0;r<e.length;r++)(n=e[r])>=s&&n<w&&(w=n);var x=y+1;if(w-s>u((i-c)/x))throw new l(a);for(c+=(w-s)*x,s=w,r=0;r<e.length;r++){if((n=e[r])<s&&++c>i)throw new l(a);if(n===s){for(var A=c,C=36;;){var S=C<=m?1:C>=m+26?26:C-m;if(A<S)break;var I=A-S,k=36-S;f(t,d(v(S+I%k))),A=u(I/k),C+=36}f(t,d(v(A))),m=b(c,x,y===g),c=0,y++}}c++,s++}return p(t,"")};e.exports=function(e){var t,r,n=[],i=g(m(y(e),s,"."),".");for(t=0;t<i.length;t++)r=i[t],f(n,c(o,r)?"xn--"+w(r):r);return p(n,".")}},3753:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(9792),i=r(74848);const o=(0,n.A)((0,i.jsx)("path",{d:"m11 9 1.42 1.42L8.83 14H18V4h2v12H8.83l3.59 3.58L11 21l-6-6z"}),"SubdirectoryArrowLeft")},3764:(e,t,r)=>{"use strict";function n(e){return String(parseFloat(e)).length===String(e).length}function i(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function o(e){return parseFloat(e)}function s(e){return(t,r)=>{const n=i(t);if(n===r)return t;let s=o(t);"px"!==n&&("em"===n||"rem"===n)&&(s=o(t)*o(e));let a=s;if("px"!==r)if("em"===r)a=s/o(e);else{if("rem"!==r)return t;a=s/o(e)}return parseFloat(a.toFixed(5))+r}}function a({size:e,grid:t}){const r=e-e%t,n=r+t;return e-r<n-e?r:n}function l({lineHeight:e,pixels:t,htmlFontSize:r}){return t/(e*r)}function c({cssProperty:e,min:t,max:r,unit:n="rem",breakpoints:i=[600,900,1200],transform:o=null}){const s={[e]:`${t}${n}`},a=(r-t)/i[i.length-1];return i.forEach(r=>{let i=t+a*r;null!==o&&(i=o(i)),s[`@media (min-width:${r}px)`]={[e]:`${Math.round(1e4*i)/1e4}${n}`}}),s}r.d(t,{I3:()=>s,VR:()=>a,a9:()=>n,db:()=>o,l_:()=>i,qW:()=>l,yL:()=>c})},3797:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"}},3995:(e,t,r)=>{"use strict";var n=r(46518),i=r(79504),o=r(24194),s=r(57696),a=r(67787),l=r(53602),c=Math.pow,u=1024,d=i(DataView.prototype.setUint16);n({target:"DataView",proto:!0},{setFloat16:function(e,t){d(o(this),s(e),function(e){if(e!=e)return 32256;if(0===e)return(1/e==-1/0)<<15;var t=e<0;if(t&&(e=-e),e>=65520)return t<<15|31744;if(e<61005353927612305e-21)return t<<15|l(16777216*e);var r=0|a(e);if(-15===r)return t<<15|u;var n=l((e*c(2,-r)-1)*u);return n===u?t<<15|r+16<<10:t<<15|r+15<<10|n}(+t),arguments.length>2&&arguments[2])}})},4055:(e,t,r)=>{"use strict";var n=r(44576),i=r(20034),o=n.document,s=i(o)&&i(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},4076:(e,t,r)=>{"use strict";function n(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>r.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${r} for the full message.`}r.d(t,{A:()=>n})},4146:(e,t,r)=>{"use strict";var n=r(73404),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?s:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(f){var i=p(r);i&&i!==f&&e(t,i,n)}var s=u(r);d&&(s=s.concat(d(r)));for(var a=l(t),m=l(r),g=0;g<s.length;++g){var y=s[g];if(!(o[y]||n&&n[y]||m&&m[y]||a&&a[y])){var v=h(r,y);try{c(t,y,v)}catch(e){}}}}return t}},4294:(e,t,r)=>{"use strict";var n=r(46518),i=r(97751),o=r(18745),s=r(79039),a=r(14601),l="AggregateError",c=i(l),u=!s(function(){return 1!==c([1]).errors[0]})&&s(function(){return 7!==c([1],l,{cause:7}).cause});n({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:a(l,function(e){return function(t,r){return o(e,this,arguments)}},u,!0)})},4360:(e,t,r)=>{"use strict";var n=r(46518),i=r(33164);n({target:"Math",stat:!0},{f16round:function(e){return i(e,.0009765625,65504,6103515625e-14)}})},4373:e=>{e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},4477:(e,t)=>{"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(!(0<o(i,t)))break e;e[n]=t,e[r]=i,r=n}}function n(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length,s=i>>>1;n<s;){var a=2*(n+1)-1,l=e[a],c=a+1,u=e[c];if(0>o(l,r))c<i&&0>o(u,l)?(e[n]=u,e[c]=r,n=c):(e[n]=l,e[a]=r,n=a);else{if(!(c<i&&0>o(u,r)))break e;e[n]=u,e[c]=r,n=c}}}return t}function o(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var c=[],u=[],d=1,h=null,p=3,f=!1,m=!1,g=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=n(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,r(c,t)}t=n(u)}}function A(e){if(g=!1,x(e),!m)if(null!==n(c))m=!0,S||(S=!0,C());else{var t=n(u);null!==t&&O(A,t.startTime-e)}}var C,S=!1,I=-1,k=5,E=-1;function T(){return!(!y&&t.unstable_now()-E<k)}function $(){if(y=!1,S){var e=t.unstable_now();E=e;var r=!0;try{e:{m=!1,g&&(g=!1,b(I),I=-1),f=!0;var o=p;try{t:{for(x(e),h=n(c);null!==h&&!(h.expirationTime>e&&T());){var s=h.callback;if("function"==typeof s){h.callback=null,p=h.priorityLevel;var a=s(h.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof a){h.callback=a,x(e),r=!0;break t}h===n(c)&&i(c),x(e)}else i(c);h=n(c)}if(null!==h)r=!0;else{var l=n(u);null!==l&&O(A,l.startTime-e),r=!1}}break e}finally{h=null,p=o,f=!1}r=void 0}}finally{r?C():S=!1}}}if("function"==typeof w)C=function(){w($)};else if("undefined"!=typeof MessageChannel){var _=new MessageChannel,R=_.port2;_.port1.onmessage=$,C=function(){R.postMessage(null)}}else C=function(){v($,0)};function O(e,r){I=v(function(){e(t.unstable_now())},r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var r=p;p=t;try{return e()}finally{p=r}},t.unstable_requestPaint=function(){y=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=p;p=e;try{return t()}finally{p=r}},t.unstable_scheduleCallback=function(e,i,o){var s=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?s+o:s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:a=o+a,sortIndex:-1},o>s?(e.sortIndex=o,r(u,e),null===n(c)&&e===n(u)&&(g?(b(I),I=-1):g=!0,O(A,o-s))):(e.sortIndex=a,r(c,e),m||f||(m=!0,S||(S=!0,C()))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=p;return function(){var r=p;p=t;try{return e.apply(this,arguments)}finally{p=r}}}},4495:(e,t,r)=>{"use strict";var n=r(39519),i=r(79039),o=r(44576).String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},4509:(e,t,r)=>{var n=r(12651);e.exports=function(e){return n(this,e).has(e)}},4633:(e,t,r)=>{var n=r(25172),i=r(16993),o=r(55869),s=r(887),a=r(11791),l=r(4373),c=r(30579);function u(){"use strict";var t=i(),r=t.m(u),d=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function h(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var p={throw:1,return:2,break:3,continue:3};function f(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,p[e],t)},delegateYield:function(e,i,o){return t.resultName=i,r(n.d,c(e),o)},finish:function(e){return r(n.f,e)}},r=function(e,r,i){n.p=t.prev,n.n=t.next;try{return e(r,i)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=u=function(){return{wrap:function(e,r,n,i){return t.w(f(e),r,n,i&&i.reverse())},isGeneratorFunction:h,mark:t.m,awrap:function(e,t){return new n(e,t)},AsyncIterator:a,async:function(e,t,r,n,i){return(h(t)?s:o)(f(e),t,r,n,i)},keys:l,values:c}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},4664:(e,t,r)=>{var n=r(79770),i=r(63345),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:(e=Object(e),n(s(e),function(t){return o.call(e,t)}))}:i;e.exports=a},4676:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(9792),i=r(74848);const o=(0,n.A)((0,i.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight")},4718:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(9792),i=r(74848);const o=(0,n.A)((0,i.jsx)("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline")},4731:(e,t,r)=>{"use strict";var n=r(44576);r(10687)(n.JSON,"JSON",!0)},4894:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(46416).A)()},4901:(e,t,r)=>{var n=r(72552),i=r(30294),o=r(40346),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!s[n(e)]}},5063:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(9792),i=r(74848);const o=(0,n.A)((0,i.jsx)("path",{d:"M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-2.24-5-5-5M7 15c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3"}),"ToggleOff")},5076:(e,t,r)=>{"use strict";r.d(t,{A:()=>S});var n=r(96540),i=r(34164),o=r(82777),s=r(21362),a=r(49450),l=r(39407),c=r(26739),u=r(53356),d=r(39241),h=r(1321),p=r(13202),f=r(35124),m=r(96148),g=r(1908);function y(e){return(0,g.Ay)("MuiLink",e)}const v=(0,m.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var b=r(39612);const w=({theme:e,ownerState:t})=>{const r=t.color,n=(0,b.Yn)(e,`palette.${r}.main`,!1)||(0,b.Yn)(e,`palette.${r}`,!1)||t.color,i=(0,b.Yn)(e,`palette.${r}.mainChannel`)||(0,b.Yn)(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:(0,o.X4)(n,.4)};var x=r(74848);const A={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},C=(0,c.Ay)(f.A,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${(0,l.A)(r.underline)}`],"button"===r.component&&t.button]}})((0,d.A)(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:t})=>"always"===e&&"inherit"!==t.color,style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter((0,h.A)()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:(0,o.X4)(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,o.X4)(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:(0,o.X4)(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${v.focusVisible}`]:{outline:"auto"}}}]}))),S=n.forwardRef(function(e,t){const r=(0,p.b)({props:e,name:"MuiLink"}),o=(0,u.A)(),{className:c,color:d="primary",component:h="a",onBlur:f,onFocus:m,TypographyClasses:g,underline:v="always",variant:b="inherit",sx:S,...I}=r,[k,E]=n.useState(!1),T={...r,color:d,component:h,focusVisible:k,underline:v,variant:b},$=(e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,o={root:["root",`underline${(0,l.A)(i)}`,"button"===r&&"button",n&&"focusVisible"]};return(0,s.A)(o,y,t)})(T);return(0,x.jsx)(C,{color:d,className:(0,i.A)($.root,c),classes:g,component:h,onBlur:e=>{(0,a.A)(e.target)||E(!1),f&&f(e)},onFocus:e=>{(0,a.A)(e.target)&&E(!0),m&&m(e)},ref:t,ownerState:T,variant:b,...I,sx:[...void 0===A[d]?[{color:d}]:[],...Array.isArray(S)?S:[S]],style:{...I.style,..."always"===v&&"inherit"!==d&&!A[d]&&{"--Link-underlineColor":w({theme:o,ownerState:T})}}})})},5128:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(9792),i=r(74848);const o=(0,n.A)((0,i.jsx)("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"}),"FileDownloadOutlined")},5240:(e,t,r)=>{"use strict";r(16468)("WeakSet",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},r(91625))},5338:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(31247)},5506:(e,t,r)=>{"use strict";var n=r(46518),i=r(32357).entries;n({target:"Object",stat:!0},{entries:function(e){return i(e)}})},5556:(e,t,r)=>{e.exports=r(2694)()},5744:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(96540),i=r(34164),o=r(21362),s=r(26739),a=r(39241),l=r(13202),c=r(39407),u=r(1321),d=r(49565),h=r(96148),p=r(1908);function f(e){return(0,p.Ay)("MuiAppBar",e)}(0,h.A)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);var m=r(74848);const g=(e,t)=>e?`${e?.replace(")","")}, ${t})`:t,y=(0,s.Ay)(d.A,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${(0,c.A)(r.position)}`],t[`color${(0,c.A)(r.color)}`]]}})((0,a.A)(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter((0,u.A)(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:e=>!0===e.enableColorOnDark&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:e=>!1===e.enableColorOnDark&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?g(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?g(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),v=n.forwardRef(function(e,t){const r=(0,l.b)({props:e,name:"MuiAppBar"}),{className:n,color:s="primary",enableColorOnDark:a=!1,position:u="fixed",...d}=r,h={...r,color:s,position:u,enableColorOnDark:a},p=(e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${(0,c.A)(t)}`,`position${(0,c.A)(r)}`]};return(0,o.A)(i,f,n)})(h);return(0,m.jsx)(y,{square:!0,component:"header",ownerState:h,elevation:4,className:(0,i.A)(p.root,n,"fixed"===u&&"mui-fixed"),ref:t,...d})})},5745:(e,t,r)=>{"use strict";var n=r(46518),i=r(77240);n({target:"String",proto:!0,forced:r(23061)("bold")},{bold:function(){return i(this,"b","","")}})},5746:(e,t,r)=>{"use strict";var n=r(69565),i=r(89228),o=r(28551),s=r(20034),a=r(67750),l=r(3470),c=r(655),u=r(55966),d=r(56682);i("search",function(e,t,r){return[function(t){var r=a(this),i=s(t)?u(t,e):void 0;return i?n(i,t,r):new RegExp(t)[e](c(r))},function(e){var n=o(this),i=c(e),s=r(t,n,i);if(s.done)return s.value;var a=n.lastIndex;l(a,0)||(n.lastIndex=0);var u=d(n,i);return l(n.lastIndex,a)||(n.lastIndex=a),null===u?-1:u.index}]})},5861:(e,t,r)=>{var n=r(55580),i=r(68223),o=r(32804),s=r(76545),a=r(28303),l=r(72552),c=r(47473),u="[object Map]",d="[object Promise]",h="[object Set]",p="[object WeakMap]",f="[object DataView]",m=c(n),g=c(i),y=c(o),v=c(s),b=c(a),w=l;(n&&w(new n(new ArrayBuffer(1)))!=f||i&&w(new i)!=u||o&&w(o.resolve())!=d||s&&w(new s)!=h||a&&w(new a)!=p)&&(w=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case m:return f;case g:return u;case y:return d;case v:return h;case b:return p}return t}),e.exports=w},5914:(e,t,r)=>{"use strict";r(46518)({target:"Math",stat:!0},{sign:r(77782)})},6221:(e,t,r)=>{"use strict";var n=r(96540);function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},a=Symbol.for("react.portal"),l=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(i(299));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:a,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.flushSync=function(e){var t=l.T,r=s.p;try{if(l.T=null,s.p=2,e)return e()}finally{l.T=t,s.p=r,s.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,s.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&s.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var r=t.as,n=c(r,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,o="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===r?s.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:n,integrity:i,fetchPriority:o}):"script"===r&&s.d.X(e,{crossOrigin:n,integrity:i,fetchPriority:o,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var r=c(t.as,t.crossOrigin);s.d.M(e,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&s.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var r=t.as,n=c(r,t.crossOrigin);s.d.L(e,r,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var r=c(t.as,t.crossOrigin);s.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else s.d.m(e)},t.requestFormReset=function(e){s.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,r){return l.H.useFormState(e,t,r)},t.useFormStatus=function(){return l.H.useHostTransitionStatus()},t.version="19.1.0"},6372:(e,t,r)=>{"use strict";var n=r(46518),i=r(97751),o=r(20034),s=r(36955),a=r(79039),l="Error",c="DOMException",u=Object.setPrototypeOf||{}.__proto__,d=i(c),h=Error,p=h.isError;n({target:"Error",stat:!0,sham:!0,forced:!p||!u||a(function(){return d&&!p(new d(c))||!p(new h(l,{cause:function(){}}))||p(i("Object","create")(h.prototype))})},{isError:function(e){if(!o(e))return!1;var t=s(e);return t===l||t===c}})},6469:(e,t,r)=>{"use strict";var n=r(78227),i=r(2360),o=r(24913).f,s=n("unscopables"),a=Array.prototype;void 0===a[s]&&o(a,s,{configurable:!0,value:i(null)}),e.exports=function(e){a[s][e]=!0}},6747:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(96540),i=r(24684),o=r(47923),s=r(65047),a=r(74848);const l=new Map,c={insert:void 0},u=(e,t)=>{const r=(0,o.A)(e);return r.sheet=new t({key:r.key,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy,prepend:r.sheet.prepend,insertionPoint:r.sheet.insertionPoint}),r};let d;if("object"==typeof document&&(d=document.querySelector('[name="emotion-insertion-point"]'),!d)){d=document.createElement("meta"),d.setAttribute("name","emotion-insertion-point"),d.setAttribute("content","");const e=document.querySelector("head");e&&e.prepend(d)}function h(e){const{injectFirst:t,enableCssLayer:r,children:o}=e,h=n.useMemo(()=>{const e=`${t}-${r}`;if(l.has(e))return l.get(e);const n=function(e,t){if(e||t){class r extends s.v{insert(e,t){return c.insert?c.insert(e,t):(this.key&&this.key.endsWith("global")&&(this.before=d),super.insert(e,t))}}const n=u({key:"css",insertionPoint:e?d:void 0},r);if(t){const e=n.insert;n.insert=(...t)=>(t[1].styles.startsWith("@layer")||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return n}}(t,r);return l.set(e,n),n},[t,r]);return h?(0,a.jsx)(i.C,{value:h,children:o}):o}},6761:(e,t,r)=>{"use strict";var n=r(46518),i=r(44576),o=r(69565),s=r(79504),a=r(96395),l=r(43724),c=r(4495),u=r(79039),d=r(39297),h=r(1625),p=r(28551),f=r(25397),m=r(56969),g=r(655),y=r(6980),v=r(2360),b=r(71072),w=r(38480),x=r(10298),A=r(33717),C=r(77347),S=r(24913),I=r(96801),k=r(48773),E=r(36840),T=r(62106),$=r(25745),_=r(66119),R=r(30421),O=r(33392),P=r(78227),M=r(1951),L=r(70511),j=r(58242),N=r(10687),F=r(91181),D=r(59213).forEach,B=_("hidden"),z="Symbol",W="prototype",H=F.set,V=F.getterFor(z),G=Object[W],U=i.Symbol,Z=U&&U[W],K=i.RangeError,Y=i.TypeError,q=i.QObject,X=C.f,J=S.f,Q=x.f,ee=k.f,te=s([].push),re=$("symbols"),ne=$("op-symbols"),ie=$("wks"),oe=!q||!q[W]||!q[W].findChild,se=function(e,t,r){var n=X(G,t);n&&delete G[t],J(e,t,r),n&&e!==G&&J(G,t,n)},ae=l&&u(function(){return 7!==v(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a})?se:J,le=function(e,t){var r=re[e]=v(Z);return H(r,{type:z,tag:e,description:t}),l||(r.description=t),r},ce=function(e,t,r){e===G&&ce(ne,t,r),p(e);var n=m(t);return p(r),d(re,n)?(r.enumerable?(d(e,B)&&e[B][n]&&(e[B][n]=!1),r=v(r,{enumerable:y(0,!1)})):(d(e,B)||J(e,B,y(1,v(null))),e[B][n]=!0),ae(e,n,r)):J(e,n,r)},ue=function(e,t){p(e);var r=f(t),n=b(r).concat(fe(r));return D(n,function(t){l&&!o(de,r,t)||ce(e,t,r[t])}),e},de=function(e){var t=m(e),r=o(ee,this,t);return!(this===G&&d(re,t)&&!d(ne,t))&&(!(r||!d(this,t)||!d(re,t)||d(this,B)&&this[B][t])||r)},he=function(e,t){var r=f(e),n=m(t);if(r!==G||!d(re,n)||d(ne,n)){var i=X(r,n);return!i||!d(re,n)||d(r,B)&&r[B][n]||(i.enumerable=!0),i}},pe=function(e){var t=Q(f(e)),r=[];return D(t,function(e){d(re,e)||d(R,e)||te(r,e)}),r},fe=function(e){var t=e===G,r=Q(t?ne:f(e)),n=[];return D(r,function(e){!d(re,e)||t&&!d(G,e)||te(n,re[e])}),n};c||(E(Z=(U=function(){if(h(Z,this))throw new Y("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=O(e),r=function(e){var n=void 0===this?i:this;n===G&&o(r,ne,e),d(n,B)&&d(n[B],t)&&(n[B][t]=!1);var s=y(1,e);try{ae(n,t,s)}catch(e){if(!(e instanceof K))throw e;se(n,t,s)}};return l&&oe&&ae(G,t,{configurable:!0,set:r}),le(t,e)})[W],"toString",function(){return V(this).tag}),E(U,"withoutSetter",function(e){return le(O(e),e)}),k.f=de,S.f=ce,I.f=ue,C.f=he,w.f=x.f=pe,A.f=fe,M.f=function(e){return le(P(e),e)},l&&(T(Z,"description",{configurable:!0,get:function(){return V(this).description}}),a||E(G,"propertyIsEnumerable",de,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:U}),D(b(ie),function(e){L(e)}),n({target:z,stat:!0,forced:!c},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!l},{create:function(e,t){return void 0===t?v(e):ue(v(e),t)},defineProperty:ce,defineProperties:ue,getOwnPropertyDescriptor:he}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:pe}),j(),N(U,z),R[B]=!0},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6980:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7040:(e,t,r)=>{"use strict";var n=r(4495);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7087:(e,t,r)=>{"use strict";r.d(t,{hb:()=>I});var n,i,o=r(96540),s=(r(74848),Object.create),a=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,h=(n=(e,t)=>{var n,i;n=e,i=function(e){var t,r=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,n=536870912,i=2*n,o=new WeakMap,s=function(e,t){return function(o){var s=t.get(o),a=void 0===s?o.size:s<i?s+1:0;if(!o.has(a))return e(o,a);if(o.size<n){for(;o.has(a);)a=Math.floor(Math.random()*i);return e(o,a)}if(o.size>r)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;o.has(a);)a=Math.floor(Math.random()*r);return e(o,a)}}((t=o,function(e,r){return t.set(e,r),r}),o),a=function(e){return function(t){var r=e(t);return t.add(r),r}}(s);e.addUniqueNumber=a,e.generateUniqueNumber=s},"object"==typeof e&&typeof t<"u"?i(e):"function"==typeof define&&r.amdO?define(["exports"],i):i((n=typeof globalThis<"u"?globalThis:n||self).fastUniqueNumbers={})},()=>(i||n((i={exports:{}}).exports,i),i.exports));o.Component;((e,t,r)=>{r=null!=e?s(u(e)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of c(t))!d.call(e,r)&&undefined!==r&&a(e,r,{get:()=>t[r],enumerable:!(n=l(t,r))||n.enumerable})})(e&&e.__esModule?r:a(r,"default",{value:e,enumerable:!0}),e)})(h());var p="object"==(typeof window>"u"?"undefined":typeof window),f={setTimeout:p?setTimeout.bind(window):setTimeout,clearTimeout:p?clearTimeout.bind(window):clearTimeout,setInterval:p?setInterval.bind(window):setInterval,clearInterval:p?clearInterval.bind(window):clearInterval},m={},g=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,m[e]=m[e]||[],m[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw new Error("InvalidStateError");let t=JSON.stringify(e),r=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(r,t),f.setTimeout(()=>{window.localStorage.removeItem(r)},500),m[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=m[this.name].indexOf(this);m[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}};function y(){return Math.random().toString(36).substring(2)}var v=class{options;channel;token=y();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:r,action:n}=t.data;r!==this.token&&(0===n&&r>this.token&&(e=!0),1===n&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise(t=>f.setTimeout(t,e))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise(r=>{let n=()=>{if(e)return;e=!0;try{f.clearInterval(t)}catch{}let n=this.intervals.indexOf(t);n>=0&&this.intervals.splice(n,1),this.channel.removeEventListener("message",i),r()};t=f.setInterval(()=>{this.apply().then(()=>{this.isLeader&&n()})},this.options.fallbackInterval),this.intervals.push(t);let i=e=>{let{action:t}=e.data;2===t&&this.apply().then(()=>{this.isLeader&&n()})};this.channel.addEventListener("message",i)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>f.clearInterval(e))}catch{}}}},b=class{channel;options;elector;token=y();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;if(this.options=e,this.channel=new g(t),this.registry.set(this.token,1),e.leaderElection){let e={fallbackInterval:2e3,responseTime:100};this.elector=new v(this.channel,e),this.elector.waitForLeadership()}this.channel.addEventListener("message",e=>{let{action:t,token:r,data:n}=e.data;switch(t){case 3:this.registry.set(r,2);break;case 4:this.registry.delete(r);break;case 5:this.idle(r);break;case 6:this.active(r);break;case 7:this.prompt(r);break;case 8:this.start(r);break;case 9:this.reset(r);break;case 10:this.activate(r);break;case 11:this.pause(r);break;case 12:this.resume(r);break;case 13:this.options.onMessage(n)}}),this.send(3)}get isLeader(){if(!this.elector)throw new Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},w=p?document:null,x=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function A(e,t){let r=0;return function(...n){let i=(new Date).getTime();if(!(i-r<t))return r=i,e(...n)}}var C=()=>Date.now(),S=2147483647;function I({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:r=0,element:n=w,events:i=x,timers:s,immediateEvents:a=[],onPresenceChange:l=()=>{},onPrompt:c=()=>{},onIdle:u=()=>{},onActive:d=()=>{},onAction:h=()=>{},onMessage:m=()=>{},debounce:g=0,throttle:y=0,eventsThrottle:v=200,startOnMount:I=!0,startManually:k=!1,stopOnIdle:E=!1,crossTab:T=!1,name:$="idle-timer",syncTimers:_=0,leaderElection:R=!1,disabled:O=!1}={}){let P=(0,o.useRef)(C()),M=(0,o.useRef)(C()),L=(0,o.useRef)(null),j=(0,o.useRef)(null),N=(0,o.useRef)(0),F=(0,o.useRef)(0),D=(0,o.useRef)(0),B=(0,o.useRef)(0),z=(0,o.useRef)(!1),W=(0,o.useRef)(!1),H=(0,o.useRef)(!1),V=(0,o.useRef)(!0),G=(0,o.useRef)(!1),U=(0,o.useRef)(null),Z=(0,o.useRef)(null),K=(0,o.useRef)(e),Y=(0,o.useRef)(0);(0,o.useEffect)(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),r&&t)throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=S)throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${S}.`);if(t>=S)throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${S}.`);if(r>=S)throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${S}.`);if(r>=e)throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(r?(K.current=e-r,Y.current=r):(K.current=e,Y.current=t),!V.current){if(k||O)return;z.current&&(ie.current(null,De),Z.current&&Z.current.active()),be()}},[e,t,r,k,O]);let q=(0,o.useRef)(E);(0,o.useEffect)(()=>{q.current=E},[E]);let X=(0,o.useRef)(a),J=(0,o.useRef)(n),Q=(0,o.useRef)([...new Set([...i,...a]).values()]),ee=(0,o.useRef)(O);(0,o.useEffect)(()=>{ee.current=O,!V.current&&(O?Ae():k||be())},[O]);let te=(0,o.useRef)(l);(0,o.useEffect)(()=>{te.current=l},[l]);let re=(0,o.useRef)(c);(0,o.useEffect)(()=>{re.current=c},[c]);let ne=(0,o.useRef)(u);(0,o.useEffect)(()=>{ne.current=u},[u]);let ie=(0,o.useRef)(d);(0,o.useEffect)(()=>{ie.current=d},[d]);let oe=(0,o.useRef)(h);(0,o.useEffect)(()=>{oe.current=h},[h]);let se=(0,o.useRef)(m);(0,o.useEffect)(()=>{se.current=m},[m]);let ae=(0,o.useMemo)(()=>{let e=(e,t)=>oe.current(e,t);return g>0?function(e,t){let r;function n(...n){r&&clearTimeout(r),r=setTimeout(()=>{e(...n),r=null},t)}return n.cancel=function(){clearTimeout(r)},n}(e,g):y>0?A(e,y):e},[y,g]),le=(0,o.useRef)();(0,o.useEffect)(()=>{T&&_&&(le.current=A(()=>{Z.current.active()},_))},[T,_]);let ce=()=>{null!==U.current&&(f.clearTimeout(U.current),U.current=null)},ue=(e,t=!0)=>{ce(),U.current=f.setTimeout(fe,e||K.current),t&&(j.current=C())},de=e=>{!W.current&&!z.current&&(re.current(e,De),te.current({type:"active",prompted:!0},De)),B.current=0,D.current=C(),W.current=!0,ue(Y.current,!1)},he=()=>{ce(),z.current||(ne.current(null,De),te.current({type:"idle"},De)),z.current=!0,L.current=C(),q.current?ve():W.current&&(D.current=0,W.current=!1)},pe=e=>{ce(),(z.current||W.current)&&(ie.current(e,De),te.current({type:"active",prompted:!1},De)),W.current=!1,D.current=0,z.current=!1,N.current+=C()-L.current,F.current+=C()-L.current,ye(),ue()},fe=e=>{if(!z.current){ae.cancel&&ae.cancel();let t=C()-j.current;return K.current+Y.current<t||!(Y.current>0)||W.current?void(Z.current?Z.current.idle():he()):void(Z.current?Z.current.prompt():de(e))}Z.current?Z.current.active():pe(e)},me=e=>{if(!I&&!j.current&&(j.current=C(),ie.current(null,De)),ae(e,De),W.current)return;if(ce(),!z.current&&X.current.includes(e.type))return void fe(e);let t=C()-j.current;z.current&&!E||!z.current&&t>=K.current?fe(e):(H.current=!1,B.current=0,D.current=0,ue(),T&&_&&le.current())},ge=(0,o.useRef)(me);(0,o.useEffect)(()=>{let e=G.current;e&&ve(),ge.current=v>0?A(me,v):me,e&&ye()},[v,y,g,oe,T,_]);let ye=()=>{p&&J.current&&(G.current||(Q.current.forEach(e=>{J.current.addEventListener(e,ge.current,{capture:!0,passive:!0})}),G.current=!0))},ve=(e=!1)=>{p&&J.current&&(G.current||e)&&(Q.current.forEach(e=>{J.current.removeEventListener(e,ge.current,{capture:!0})}),G.current=!1)},be=(0,o.useCallback)(e=>!ee.current&&(ce(),ye(),z.current=!1,W.current=!1,H.current=!1,B.current=0,D.current=0,Z.current&&!e&&Z.current.start(),ue(),!0),[U,z,ee,K,Z]),we=(0,o.useCallback)(e=>!ee.current&&(ce(),ye(),M.current=C(),N.current+=C()-L.current,F.current+=C()-L.current,N.current=0,z.current=!1,W.current=!1,H.current=!1,B.current=0,D.current=0,Z.current&&!e&&Z.current.reset(),k||ue(),!0),[U,z,K,k,ee,Z]),xe=(0,o.useCallback)(e=>!ee.current&&(ce(),ye(),(z.current||W.current)&&pe(),z.current=!1,W.current=!1,H.current=!1,B.current=0,D.current=0,M.current=C(),Z.current&&!e&&Z.current.activate(),ue(),!0),[U,z,W,ee,K,Z]),Ae=(0,o.useCallback)((e=!1)=>!ee.current&&!H.current&&(B.current=_e(),H.current=!0,ve(),ce(),Z.current&&!e&&Z.current.pause(),!0),[U,ee,Z]),Ce=(0,o.useCallback)((e=!1)=>!(ee.current||!H.current||(H.current=!1,W.current||ye(),z.current||ue(B.current),D.current&&(D.current=C()),Z.current&&!e&&Z.current.resume(),0)),[U,K,ee,B,Z]),Se=(0,o.useCallback)((e,t)=>(Z.current?(t&&se.current(e,De),Z.current.message(e)):t&&se.current(e,De),!0),[m]),Ie=(0,o.useCallback)(()=>z.current,[z]),ke=(0,o.useCallback)(()=>W.current,[W]),Ee=(0,o.useCallback)(()=>Z.current?Z.current.isLeader:null,[Z]),Te=(0,o.useCallback)(()=>Z.current?Z.current.isLastActive:null,[Z]),$e=(0,o.useCallback)(()=>Z.current?Z.current.token:null,[Z]),_e=(0,o.useCallback)(()=>{if(H.current)return B.current;let e=B.current?B.current:Y.current+K.current,t=j.current?C()-j.current:0,r=Math.floor(e-t);return r<0?0:Math.abs(r)},[K,Y,W,B,j]),Re=(0,o.useCallback)(()=>Math.round(C()-M.current),[M]),Oe=(0,o.useCallback)(()=>Math.round(C()-P.current),[P]),Pe=(0,o.useCallback)(()=>L.current?new Date(L.current):null,[L]),Me=(0,o.useCallback)(()=>j.current?new Date(j.current):null,[j]),Le=(0,o.useCallback)(()=>z.current?Math.round(C()-L.current+N.current):Math.round(N.current),[L,N]),je=(0,o.useCallback)(()=>z.current?Math.round(C()-L.current+F.current):Math.round(F.current),[L,F]),Ne=(0,o.useCallback)(()=>{let e=Math.round(Re()-Le());return e>=0?e:0},[L,N]),Fe=(0,o.useCallback)(()=>{let e=Math.round(Oe()-je());return e>=0?e:0},[L,N]);(0,o.useEffect)(()=>{if(g>0&&y>0)throw new Error("❌ onAction can either be throttled or debounced, not both.");s&&function(e){f.setTimeout=e.setTimeout,f.clearTimeout=e.clearTimeout,f.setInterval=e.setInterval,f.clearInterval=e.clearInterval}(s);let e=()=>{Z.current&&Z.current.close(),ae.cancel&&ae.cancel(),ce(),ve(!0)};return p&&window.addEventListener("beforeunload",e),()=>{p&&window.removeEventListener("beforeunload",e),Z.current&&Z.current.close(),ae.cancel&&ae.cancel(),ce(),ve(!0)}},[]),(0,o.useEffect)(()=>{Z.current&&Z.current.close(),Z.current=T?new b({channelName:$,leaderElection:R,onPrompt:()=>{de()},onIdle:()=>{he()},onActive:()=>{pe()},onMessage:e=>{se.current(e,De)},start:be,reset:we,activate:xe,pause:Ae,resume:Ce}):null},[T,$,R,re,ne,ie,se,be,we,Ae,Ce]),(0,o.useEffect)(()=>{V.current||(ce(),ve(!0)),!k&&!O&&(I?be():ye())},[k,I,O,V]),(0,o.useEffect)(()=>{if(!V.current){let e=[...new Set([...i,...a]).values()];if(ve(),Q.current=e,J.current=n,X.current=a,k||O)return;I?be():ye()}},[n,JSON.stringify(i),JSON.stringify(a),V,O,k,I]),(0,o.useEffect)(()=>{V.current&&(V.current=!1)},[V]);let De={message:Se,start:be,reset:we,activate:xe,pause:Ae,resume:Ce,isIdle:Ie,isPrompted:ke,isLeader:Ee,isLastActiveTab:Te,getTabId:$e,getRemainingTime:_e,getElapsedTime:Re,getTotalElapsedTime:Oe,getLastIdleTime:Pe,getLastActiveTime:Me,getIdleTime:Le,getTotalIdleTime:je,getActiveTime:Ne,getTotalActiveTime:Fe,setOnPresenceChange:e=>{l=e,te.current=e},setOnPrompt:e=>{c=e,re.current=e},setOnIdle:e=>{u=e,ne.current=e},setOnActive:e=>{d=e,ie.current=e},setOnAction:e=>{h=e,oe.current=e},setOnMessage:e=>{m=e,se.current=e}};return De}(0,o.createContext)(null).Consumer},7196:(e,t,r)=>{"use strict";r.d(t,{EU:()=>c,NI:()=>l,iZ:()=>d,kW:()=>h,vf:()=>u,zu:()=>o});var n=r(836),i=r(63132);const o={xs:0,sm:600,md:900,lg:1200,xl:1536},s={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`},a={containerQueries:e=>({up:t=>{let r="number"==typeof t?t:o[t]||t;return"number"==typeof r&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function l(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||s;return t.reduce((n,i,o)=>(n[e.up(e.keys[o])]=r(t[o]),n),{})}if("object"==typeof t){const e=n.breakpoints||s;return Object.keys(t).reduce((s,l)=>{if((0,i.ob)(e.keys,l)){const e=(0,i.CT)(n.containerQueries?n:a,l);e&&(s[e]=r(t[l],l))}else if(Object.keys(e.values||o).includes(l))s[e.up(l)]=r(t[l],l);else{const e=l;s[e]=t[e]}return s},{})}return r(t)}function c(e={}){const t=e.keys?.reduce((t,r)=>(t[e.up(r)]={},t),{});return t||{}}function u(e,t){return e.reduce((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e},t)}function d(e,...t){const r=c(e),i=[r,...t].reduce((e,t)=>(0,n.A)(e,t),{});return u(Object.keys(r),i)}function h({values:e,breakpoints:t,base:r}){const n=r||function(e,t){if("object"!=typeof e)return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((t,n)=>{n<e.length&&(r[t]=!0)}):n.forEach(t=>{null!=e[t]&&(r[t]=!0)}),r}(e,t),i=Object.keys(n);if(0===i.length)return e;let o;return i.reduce((t,r,n)=>(Array.isArray(e)?(t[r]=null!=e[n]?e[n]:e[o],o=n):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[o],o=r):t[r]=e,t),{})}},7452:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,s=Object.create(o.prototype),a=new _(n||[]);return i(s,"_invoke",{value:k(e,r,a)}),s}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var h="suspendedStart",p="suspendedYield",f="executing",m="completed",g={};function y(){}function v(){}function b(){}var w={};c(w,s,function(){return this});var x=Object.getPrototypeOf,A=x&&x(x(R([])));A&&A!==r&&n.call(A,s)&&(w=A);var C=b.prototype=y.prototype=Object.create(w);function S(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function I(e,t){function r(i,o,s,a){var l=d(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then(function(e){r("next",e,s,a)},function(e){r("throw",e,s,a)}):t.resolve(u).then(function(e){c.value=e,s(c)},function(e){return r("throw",e,s,a)})}a(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t(function(t,i){r(e,n,t,i)})}return o=o?o.then(i,i):i()}})}function k(e,r,n){var i=h;return function(o,s){if(i===f)throw new Error("Generator is already running");if(i===m){if("throw"===o)throw s;return{value:t,done:!0}}for(n.method=o,n.arg=s;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var c=d(e,r,n);if("normal"===c.type){if(i=n.done?m:p,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=m,n.method="throw",n.arg=c.arg)}}}function E(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,E(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=d(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var s=o.arg;return s?s.done?(r[e.resultName]=s.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function $(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function R(e){if(null!=e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return v.prototype=b,i(C,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:v,configurable:!0}),v.displayName=c(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},S(I.prototype),c(I.prototype,a,function(){return this}),e.AsyncIterator=I,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var s=new I(u(t,r,n,i),o);return e.isGeneratorFunction(r)?s:s.next().then(function(e){return e.done?e.value:s.next()})},S(C),c(C,l,"Generator"),c(C,s,function(){return this}),c(C,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=R,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return a.type="throw",a.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var l=n.call(s,"catchLoc"),c=n.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),$(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;$(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},7588:(e,t,r)=>{"use strict";var n=r(46518),i=r(69565),o=r(72652),s=r(79306),a=r(28551),l=r(1767),c=r(9539),u=r(84549)("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{forEach:function(e){a(this);try{s(e)}catch(e){c(this,"throw",e)}if(u)return i(u,this,e);var t=l(this),r=0;o(t,function(t){e(t,r++)},{IS_RECORD:!0})}})},7740:e=>{"use strict";var t=Math.log;e.exports=Math.log1p||function(e){var r=+e;return r>-1e-8&&r<1e-8?r-r*r/2:t(1+r)}},7743:(e,t,r)=>{"use strict";var n=r(46518),i=r(69565),o=r(79306),s=r(36043),a=r(1103),l=r(72652);n({target:"Promise",stat:!0,forced:r(90537)},{race:function(e){var t=this,r=s.f(t),n=r.reject,c=a(function(){var s=o(t.resolve);l(e,function(e){i(s,t,e).then(r.resolve,n)})});return c.error&&n(c.value),r.promise}})},7860:(e,t,r)=>{"use strict";var n=r(82839);e.exports=/web0s(?!.*chrome)/i.test(n)},7904:(e,t,r)=>{"use strict";var n=r(46518),i=r(43724),o=r(42551),s=r(48981),a=r(56969),l=r(42787),c=r(77347).f;i&&n({target:"Object",proto:!0,forced:o},{__lookupSetter__:function(e){var t,r=s(this),n=a(e);do{if(t=c(r,n))return t.set}while(r=l(r))}})},7915:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(9792),i=r(74848);const o=(0,n.A)((0,i.jsx)("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos")},7960:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var n=r(96540),i=r(34164),o=r(21362),s=r(96148),a=r(1908);function l(e){return(0,a.Ay)("MuiPagination",e)}(0,s.A)("MuiPagination",["root","ul","outlined","text"]);var c=r(97164),u=r(69026),d=r(26739),h=r(13202),p=r(74848);const f=(0,d.Ay)("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),m=(0,d.Ay)("ul",{name:"MuiPagination",slot:"Ul"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function g(e,t,r){return"page"===e?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const y=n.forwardRef(function(e,t){const r=(0,h.b)({props:e,name:"MuiPagination"}),{boundaryCount:n=1,className:s,color:a="standard",count:d=1,defaultPage:y=1,disabled:v=!1,getItemAriaLabel:b=g,hideNextButton:w=!1,hidePrevButton:x=!1,onChange:A,page:C,renderItem:S=e=>(0,p.jsx)(u.A,{...e}),shape:I="circular",showFirstButton:k=!1,showLastButton:E=!1,siblingCount:T=1,size:$="medium",variant:_="text",...R}=r,{items:O}=function(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:i=1,disabled:o=!1,hideNextButton:s=!1,hidePrevButton:a=!1,onChange:l,page:u,showFirstButton:d=!1,showLastButton:h=!1,siblingCount:p=1,...f}=e,[m,g]=(0,c.A)({controlled:u,default:i,name:r,state:"page"}),y=(e,t)=>{u||g(t),l&&l(e,t)},v=(e,t)=>{const r=t-e+1;return Array.from({length:r},(t,r)=>e+r)},b=v(1,Math.min(t,n)),w=v(Math.max(n-t+1,t+1),n),x=Math.max(Math.min(m-p,n-t-2*p-1),t+2),A=Math.min(Math.max(m+p,t+2*p+2),n-t-1),C=[...d?["first"]:[],...a?[]:["previous"],...b,...x>t+2?["start-ellipsis"]:t+1<n-t?[t+1]:[],...v(x,A),...A<n-t-1?["end-ellipsis"]:n-t>t?[n-t]:[],...w,...s?[]:["next"],...h?["last"]:[]],S=e=>{switch(e){case"first":return 1;case"previous":return m-1;case"next":return m+1;case"last":return n;default:return null}};return{items:C.map(e=>"number"==typeof e?{onClick:t=>{y(t,e)},type:"page",page:e,selected:e===m,disabled:o,"aria-current":e===m?"page":void 0}:{onClick:t=>{y(t,S(e))},type:e,page:S(e),selected:!1,disabled:o||!e.includes("ellipsis")&&("next"===e||"last"===e?m>=n:m<=1)}),...f}}({...r,componentName:"Pagination"}),P={...r,boundaryCount:n,color:a,count:d,defaultPage:y,disabled:v,getItemAriaLabel:b,hideNextButton:w,hidePrevButton:x,renderItem:S,shape:I,showFirstButton:k,showLastButton:E,siblingCount:T,size:$,variant:_},M=(e=>{const{classes:t,variant:r}=e,n={root:["root",r],ul:["ul"]};return(0,o.A)(n,l,t)})(P);return(0,p.jsx)(f,{"aria-label":"pagination navigation",className:(0,i.A)(M.root,s),ownerState:P,ref:t,...R,children:(0,p.jsx)(m,{className:M.ul,ownerState:P,children:O.map((e,t)=>(0,p.jsx)("li",{children:S({...e,color:a,"aria-label":b(e.type,e.page,e.selected),shape:I,size:$,variant:_})},t))})})})},8045:(e,t,r)=>{"use strict";var n=r(76080),i=r(79504),o=r(48981),s=r(33517),a=r(1886),l=r(70081),c=r(1767),u=r(50851),d=r(55966),h=r(97751),p=r(44124),f=r(78227),m=r(24074),g=r(36639).toArray,y=f("asyncIterator"),v=i(p("Array","values")),b=i(v([]).next),w=function(){return new x(this)},x=function(e){this.iterator=v(e)};x.prototype.next=function(){return b(this.iterator)},e.exports=function(e){var t=this,r=arguments.length,i=r>1?arguments[1]:void 0,p=r>2?arguments[2]:void 0;return new(h("Promise"))(function(r){var h=o(e);void 0!==i&&(i=n(i,p));var f=d(h,y),v=f?void 0:u(h)||w,b=s(t)?new t:[],x=f?a(h,f):new m(c(l(h,v)));r(g(x,i,b))})}},8085:(e,t,r)=>{"use strict";var n=r(46518),i=Math.floor,o=Math.log,s=Math.LOG2E;n({target:"Math",stat:!0},{clz32:function(e){var t=e>>>0;return t?31-i(o(t+.5)*s):32}})},8344:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(96540),i=r(34164),o=r(21362),s=r(26739),a=r(39241),l=r(13202),c=r(9792),u=r(74848);const d=(0,c.A)((0,u.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var h=r(96148),p=r(1908);function f(e){return(0,p.Ay)("MuiAvatar",e)}(0,h.A)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);var m=r(85078);const g=(0,s.Ay)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})((0,a.A)(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),y=(0,s.Ay)("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),v=(0,s.Ay)(d,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"}),b=n.forwardRef(function(e,t){const r=(0,l.b)({props:e,name:"MuiAvatar"}),{alt:s,children:a,className:c,component:d="div",slots:h={},slotProps:p={},imgProps:b,sizes:w,src:x,srcSet:A,variant:C="circular",...S}=r;let I=null;const k={...r,component:d,variant:C},E=function({crossOrigin:e,referrerPolicy:t,src:r,srcSet:i}){const[o,s]=n.useState(!1);return n.useEffect(()=>{if(!r&&!i)return;s(!1);let n=!0;const o=new Image;return o.onload=()=>{n&&s("loaded")},o.onerror=()=>{n&&s("error")},o.crossOrigin=e,o.referrerPolicy=t,o.src=r,i&&(o.srcset=i),()=>{n=!1}},[e,t,r,i]),o}({...b,..."function"==typeof p.img?p.img(k):p.img,src:x,srcSet:A}),T=x||A,$=T&&"error"!==E;k.colorDefault=!$,delete k.ownerState;const _=(e=>{const{classes:t,variant:r,colorDefault:n}=e,i={root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,o.A)(i,f,t)})(k),[R,O]=(0,m.A)("root",{ref:t,className:(0,i.A)(_.root,c),elementType:g,externalForwardedProps:{slots:h,slotProps:p,component:d,...S},ownerState:k}),[P,M]=(0,m.A)("img",{className:_.img,elementType:y,externalForwardedProps:{slots:h,slotProps:{img:{...b,...p.img}}},additionalProps:{alt:s,src:x,srcSet:A,sizes:w},ownerState:k}),[L,j]=(0,m.A)("fallback",{className:_.fallback,elementType:v,externalForwardedProps:{slots:h,slotProps:p},shouldForwardComponentProp:!0,ownerState:k});return I=$?(0,u.jsx)(P,{...M}):a||0===a?a:T&&s?s[0]:(0,u.jsx)(L,{...j}),(0,u.jsx)(R,{...O,children:I})})},8379:(e,t,r)=>{"use strict";var n=r(18745),i=r(25397),o=r(91291),s=r(26198),a=r(34598),l=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,d=a("lastIndexOf"),h=u||!d;e.exports=h?function(e){if(u)return n(c,this,arguments)||0;var t=i(this),r=s(t);if(0===r)return-1;var a=r-1;for(arguments.length>1&&(a=l(a,o(arguments[1]))),a<0&&(a=r+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:c},8861:(e,t,r)=>{"use strict";r.d(t,{A:()=>C});var n=r(96540),i=r(34164),o=r(21362),s=r(17437),a=r(26739),l=r(39241),c=r(13202),u=r(39407),d=r(1321),h=r(96148),p=r(1908);function f(e){return(0,p.Ay)("MuiCircularProgress",e)}(0,h.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var m=r(74848);const g=s.i7`
|
|
3
3
|
0% {
|
|
4
4
|
transform: rotate(0deg);
|
|
@@ -4043,4 +4043,4 @@ pre[class*="language-"] {
|
|
|
4043
4043
|
animation: ${y} 2s linear 0.5s infinite;
|
|
4044
4044
|
}
|
|
4045
4045
|
`:null,w=(0,c.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!1!==r.animation&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})((0,u.A)(({theme:e})=>{const t=(0,s.l_)(e.shape.borderRadius)||"px",r=(0,s.db)(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,a.X4)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${t}/${Math.round(r/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:e})=>e.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:e})=>e.hasChildren&&!e.width,style:{maxWidth:"fit-content"}},{props:({ownerState:e})=>e.hasChildren&&!e.height,style:{height:"auto"}},{props:{animation:"pulse"},style:v||{animation:`${g} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(\n 90deg,\n transparent,\n ${(e.vars||e).palette.action.hover},\n transparent\n )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:b||{"&::after":{animation:`${y} 2s linear 0.5s infinite`}}}]}})),x=n.forwardRef(function(e,t){const r=(0,d.b)({props:e,name:"MuiSkeleton"}),{animation:n="pulse",className:s,component:a="span",height:l,style:c,variant:u="text",width:h,...p}=r,g={...r,animation:n,component:a,variant:u,hasChildren:Boolean(p.children)},y=(e=>{const{classes:t,variant:r,animation:n,hasChildren:i,width:s,height:a}=e,l={root:["root",r,n,i&&"withChildren",i&&!s&&"fitContent",i&&!a&&"heightAuto"]};return(0,o.A)(l,f,t)})(g);return(0,m.jsx)(w,{as:a,ref:t,className:(0,i.A)(y.root,s),ownerState:g,...p,style:{width:h,height:l,...c}})})},84428:(e,t,r)=>{"use strict";var n=r(78227)("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[n]=function(){return this},Array.from(s,function(){throw 2})}catch(e){}e.exports=function(e,t){try{if(!t&&!i)return!1}catch(e){return!1}var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(e){}return r}},84549:(e,t,r)=>{"use strict";var n=r(44576);e.exports=function(e,t){var r=n.Iterator,i=r&&r.prototype,o=i&&i[e],s=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){s=!0}},-1)}catch(e){e instanceof t||(s=!1)}if(!s)return o}},84606:(e,t,r)=>{"use strict";var n=r(16823),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+n(t)+" of "+n(e))}},84634:(e,t,r)=>{"use strict";var n=r(46518),i=r(28551),o=r(34124);n({target:"Reflect",stat:!0},{isExtensible:function(e){return i(e),o(e)}})},84864:(e,t,r)=>{"use strict";var n=r(43724),i=r(44576),o=r(79504),s=r(92796),a=r(23167),l=r(66699),c=r(2360),u=r(38480).f,d=r(1625),h=r(60788),p=r(655),f=r(61034),m=r(58429),g=r(11056),y=r(36840),v=r(79039),b=r(39297),w=r(91181).enforce,x=r(87633),A=r(78227),C=r(83635),S=r(18814),I=A("match"),k=i.RegExp,E=k.prototype,T=i.SyntaxError,$=o(E.exec),_=o("".charAt),R=o("".replace),O=o("".indexOf),P=o("".slice),M=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,j=/a/g,N=new k(L)!==L,F=m.MISSED_STICKY,D=m.UNSUPPORTED_Y;if(s("RegExp",n&&(!N||F||C||S||v(function(){return j[I]=!1,k(L)!==L||k(j)===j||"/a/i"!==String(k(L,"i"))})))){for(var B=function(e,t){var r,n,i,o,s,u,m=d(E,this),g=h(e),y=void 0===t,v=[],x=e;if(!m&&g&&y&&e.constructor===B)return e;if((g||d(E,e))&&(e=e.source,y&&(t=f(x))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),x=e,C&&"dotAll"in L&&(n=!!t&&O(t,"s")>-1)&&(t=R(t,/s/g,"")),r=t,F&&"sticky"in L&&(i=!!t&&O(t,"y")>-1)&&D&&(t=R(t,/y/g,"")),S&&(o=function(e){for(var t,r=e.length,n=0,i="",o=[],s=c(null),a=!1,l=!1,u=0,d="";n<=r;n++){if("\\"===(t=_(e,n)))t+=_(e,++n);else if("]"===t)a=!1;else if(!a)switch(!0){case"["===t:a=!0;break;case"("===t:if(i+=t,"?:"===P(e,n+1,n+3))continue;$(M,P(e,n+1))&&(n+=2,l=!0),u++;continue;case">"===t&&l:if(""===d||b(s,d))throw new T("Invalid capture group name");s[d]=!0,o[o.length]=[d,u],l=!1,d="";continue}l?d+=t:i+=t}return[i,o]}(e),e=o[0],v=o[1]),s=a(k(e,t),m?this:E,B),(n||i||v.length)&&(u=w(s),n&&(u.dotAll=!0,u.raw=B(function(e){for(var t,r=e.length,n=0,i="",o=!1;n<=r;n++)"\\"!==(t=_(e,n))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+_(e,++n);return i}(e),r)),i&&(u.sticky=!0),v.length&&(u.groups=v)),e!==x)try{l(s,"source",""===x?"(?:)":x)}catch(e){}return s},z=u(k),W=0;z.length>W;)g(B,k,z[W++]);E.constructor=B,B.prototype=E,y(i,"RegExp",B,{constructor:!0})}x("RegExp")},84916:(e,t,r)=>{"use strict";var n=r(97751),i=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},o=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var r=n("Set");try{(new r)[e](i(0));try{return(new r)[e](i(-1)),!1}catch(n){if(!t)return!0;try{return(new r)[e](o(-1/0)),!1}catch(n){var s=new r;return s.add(1),s.add(2),t(s[e](o(1/0)))}}}catch(e){return!1}}},85078:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(24902),i=r(92296),o=r(33044),s=r(82227);function a(e,t){const{className:r,elementType:a,ownerState:l,externalForwardedProps:c,internalForwardedProps:u,shouldForwardComponentProp:d=!1,...h}=t,{component:p,slots:f={[e]:void 0},slotProps:m={[e]:void 0},...g}=c,y=f[e]||a,v=(0,o.A)(m[e],l),{props:{component:b,...w},internalRef:x}=(0,s.A)({className:r,...h,externalForwardedProps:"root"===e?g:void 0,externalSlotProps:v}),A=(0,n.A)(x,v?.ref,t.ref),C="root"===e?b||p:b;return[y,(0,i.A)(y,{..."root"===e&&!p&&!f[e]&&u,..."root"!==e&&!f[e]&&u,...w,...C&&!d&&{as:C},...C&&d&&{component:C},ref:A},l)]}},85160:(e,t,r)=>{"use strict";var n=r(96540),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,s=n.useRef,a=n.useEffect,l=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,u){var d=s(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;d=l(function(){function e(e){if(!a){if(a=!0,o=e,e=n(e),void 0!==u&&h.hasValue){var t=h.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var r=n(e);return void 0!==u&&u(t,r)?(o=e,t):(o=e,s=r)}var o,s,a=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,n,u]);var p=o(e,d[0],d[1]);return a(function(){h.hasValue=!0,h.value=p},[p]),c(p),p}},85342:(e,t,r)=>{"use strict";r.d(t,{A:()=>j});var n=r(96540),i=r(34164),o=r(14292),s=r(1908),a=r(21362),l=r(14808),c=r(1659),u=r(37498),d=r(57514),h=r(65387);const p=(e,t,r)=>{const n=e.keys[0];var i,o;Array.isArray(t)?t.forEach((t,n)=>{r((t,r)=>{n<=e.keys.length-1&&(0===n?Object.assign(t,r):t[e.up(e.keys[n])]=r)},t)}):t&&"object"==typeof t?(Object.keys(t).length>e.keys.length?e.keys:(i=e.keys,o=Object.keys(t),i.filter(e=>o.includes(e)))).forEach(i=>{if(e.keys.includes(i)){const o=t[i];void 0!==o&&r((t,r)=>{n===i?Object.assign(t,r):t[e.up(i)]=r},o)}}):"number"!=typeof t&&"string"!=typeof t||r((e,t)=>{Object.assign(e,t)},t)};function f(e){return`--Grid-${e}Spacing`}function m(e){return`--Grid-parent-${e}Spacing`}const g="--Grid-columns",y="--Grid-parent-columns",v=({theme:e,ownerState:t})=>{const r={};return p(e.breakpoints,t.size,(e,t)=>{let n={};"grow"===t&&(n={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===t&&(n={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof t&&(n={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${t} / var(${y}) - (var(${y}) - ${t}) * (var(${m("column")}) / var(${y})))`}),e(r,n)}),r},b=({theme:e,ownerState:t})=>{const r={};return p(e.breakpoints,t.offset,(e,t)=>{let n={};"auto"===t&&(n={marginLeft:"auto"}),"number"==typeof t&&(n={marginLeft:0===t?"0px":`calc(100% * ${t} / var(${y}) + var(${m("column")}) * ${t} / var(${y}))`}),e(r,n)}),r},w=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={[g]:12};return p(e.breakpoints,t.columns,(e,t)=>{const n=t??12;e(r,{[g]:n,"> *":{[y]:n}})}),r},x=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return p(e.breakpoints,t.rowSpacing,(t,n)=>{const i="string"==typeof n?n:e.spacing?.(n);t(r,{[f("row")]:i,"> *":{[m("row")]:i}})}),r},A=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return p(e.breakpoints,t.columnSpacing,(t,n)=>{const i="string"==typeof n?n:e.spacing?.(n);t(r,{[f("column")]:i,"> *":{[m("column")]:i}})}),r},C=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return p(e.breakpoints,t.direction,(e,t)=>{e(r,{flexDirection:t})}),r},S=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},gap:`var(${f("row")}) var(${f("column")})`}}),I=e=>{const t=[];return Object.entries(e).forEach(([e,r])=>{!1!==r&&void 0!==r&&t.push(`grid-${e}-${String(r)}`)}),t},k=(e,t="xs")=>{function r(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(r(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach(([e,n])=>{r(n)&&t.push(`spacing-${e}-${String(n)}`)}),t}return[]},E=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`];var T=r(74848);const $=(0,h.A)(),_=(0,l.A)("div",{name:"MuiGrid",slot:"Root"});function R(e){return(0,c.A)({props:e,name:"MuiGrid",defaultTheme:$})}var O=r(26739),P=r(13202),M=r(53356);const L=function(e={}){const{createStyledComponent:t=_,useThemeProps:r=R,useTheme:l=u.A,componentName:c="MuiGrid"}=e;function h(e,t,r=()=>!0){const n={};return null===e||(Array.isArray(e)?e.forEach((e,i)=>{null!==e&&r(e)&&t.keys[i]&&(n[t.keys[i]]=e)}):"object"==typeof e?Object.keys(e).forEach(t=>{const i=e[t];null!=i&&r(i)&&(n[t]=i)}):n[t.keys[0]]=e),n}const p=t(w,A,x,v,C,S,b),f=n.forwardRef(function(e,t){const u=l(),f=r(e),m=(0,d.A)(f);!function(e,t){const r=[];void 0!==e.item&&(delete e.item,r.push("item")),void 0!==e.zeroMinWidth&&(delete e.zeroMinWidth,r.push("zeroMinWidth")),t.keys.forEach(t=>{void 0!==e[t]&&(r.push(t),delete e[t])})}(m,u.breakpoints);const{className:g,children:y,columns:v=12,container:b=!1,component:w="div",direction:x="row",wrap:A="wrap",size:C={},offset:S={},spacing:$=0,rowSpacing:_=$,columnSpacing:R=$,unstable_level:O=0,...P}=m,M=h(C,u.breakpoints,e=>!1!==e),L=h(S,u.breakpoints),j=e.columns??(O?void 0:v),N=e.spacing??(O?void 0:$),F=e.rowSpacing??e.spacing??(O?void 0:_),D=e.columnSpacing??e.spacing??(O?void 0:R),B={...m,level:O,columns:j,container:b,direction:x,wrap:A,spacing:N,rowSpacing:F,columnSpacing:D,size:M,offset:L},z=((e,t)=>{const{container:r,direction:n,spacing:i,wrap:o,size:l}=e,u={root:["root",r&&"container","wrap"!==o&&`wrap-xs-${String(o)}`,...E(n),...I(l),...r?k(i,t.breakpoints.keys[0]):[]]};return(0,a.A)(u,e=>(0,s.Ay)(c,e),{})})(B,u);return(0,T.jsx)(p,{ref:t,as:w,ownerState:B,className:(0,i.A)(z.root,g),...P,children:n.Children.map(y,e=>n.isValidElement(e)&&(0,o.A)(e,["Grid"])&&b&&e.props.container?n.cloneElement(e,{unstable_level:e.props?.unstable_level??O+1}):e)})});return f.muiName="Grid",f}({createStyledComponent:(0,O.Ay)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>(0,P.b)({props:e,name:"MuiGrid"}),useTheme:M.A}),j=L},85463:e=>{e.exports=function(e){return e!=e}},85501:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(63662);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,n.A)(e,t)}},85788:(e,t,r)=>{"use strict";r.d(t,{BV:()=>he,C5:()=>le,Kd:()=>Me,N_:()=>je,Zp:()=>Y,g:()=>X,qh:()=>ue,sv:()=>ce,zy:()=>U});var n=r(96540),i=(r(28232),"popstate");function o(e={}){return function(e,t,r,n={}){let{window:o=document.defaultView,v5Compat:a=!1}=n,d=o.history,h="POP",p=null,f=m();function m(){return(d.state||{idx:null}).idx}function g(){h="POP";let e=m(),t=null==e?null:e-f;f=e,p&&p({action:h,location:v.location,delta:t})}function y(e){return function(e,t=!1){let r="http://localhost";"undefined"!=typeof window&&(r="null"!==window.location.origin?window.location.origin:window.location.href),s(r,"No window.location.(origin|href) available to create URL");let n="string"==typeof e?e:u(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}(e)}null==f&&(f=0,d.replaceState({...d.state,idx:f},""));let v={get action(){return h},get location(){return e(o,d)},listen(e){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(i,g),p=e,()=>{o.removeEventListener(i,g),p=null}},createHref:e=>t(o,e),createURL:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h="PUSH";let n=c(v.location,e,t);r&&r(n,e),f=m()+1;let i=l(n,f),s=v.createHref(n);try{d.pushState(i,"",s)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(s)}a&&p&&p({action:h,location:v.location,delta:1})},replace:function(e,t){h="REPLACE";let n=c(v.location,e,t);r&&r(n,e),f=m();let i=l(n,f),o=v.createHref(n);d.replaceState(i,"",o),a&&p&&p({action:h,location:v.location,delta:0})},go:e=>d.go(e)};return v}(function(e,t){let{pathname:r,search:n,hash:i}=e.location;return c("",{pathname:r,search:n,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:u(t)},null,e)}function s(e,t){if(!1===e||null==e)throw new Error(t)}function a(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function l(e,t){return{usr:e.state,key:e.key,idx:t}}function c(e,t,r=null,n){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?d(t):t,state:r,key:t&&t.key||n||Math.random().toString(36).substring(2,10)}}function u({pathname:e="/",search:t="",hash:r=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(e+="#"===r.charAt(0)?r:"#"+r),e}function d(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function h(e,t,r="/"){return function(e,t,r,n){let i=k(("string"==typeof t?d(t):t).pathname||"/",r);if(null==i)return null;let o=p(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(o);let s=null;for(let e=0;null==s&&e<o.length;++e){let t=I(i);s=C(o[e],t,n)}return s}(e,t,r,!1)}function p(e,t=[],r=[],n=""){let i=(e,i,o)=>{let a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(s(a.relativePath.startsWith(n),`Absolute route path "${a.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),a.relativePath=a.relativePath.slice(n.length));let l=_([n,a.relativePath]),c=r.concat(a);e.children&&e.children.length>0&&(s(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),p(e.children,t,c,l)),(null!=e.path||e.index)&&t.push({path:l,score:A(l,e.index),routesMeta:c})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let r of f(e.path))i(e,t,r);else i(e,t)}),t}function f(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===n.length)return i?[o,""]:[o];let s=f(n.join("/")),a=[];return a.push(...s.map(e=>""===e?o:[o,e].join("/"))),i&&a.push(...s),a.map(t=>e.startsWith("/")&&""===t?"/":t)}new WeakMap;var m=/^:[\w-]+$/,g=3,y=2,v=1,b=10,w=-2,x=e=>"*"===e;function A(e,t){let r=e.split("/"),n=r.length;return r.some(x)&&(n+=w),t&&(n+=y),r.filter(e=>!x(e)).reduce((e,t)=>e+(m.test(t)?g:""===t?v:b),n)}function C(e,t,r=!1){let{routesMeta:n}=e,i={},o="/",s=[];for(let e=0;e<n.length;++e){let a=n[e],l=e===n.length-1,c="/"===o?t:t.slice(o.length)||"/",u=S({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},c),d=a.route;if(!u&&l&&r&&!n[n.length-1].route.index&&(u=S({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},c)),!u)return null;Object.assign(i,u.params),s.push({params:i,pathname:_([o,u.pathname]),pathnameBase:R(_([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=_([o,u.pathnameBase]))}return s}function S(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t=!1,r=!0){a("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:n.reduce((e,{paramName:t,isOptional:r},n)=>{if("*"===t){let e=l[n]||"";s=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const i=l[n];return e[t]=r&&!i?void 0:(i||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:s,pattern:e}}function I(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return a(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function k(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function E(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function T(e){let t=function(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}(e);return t.map((e,r)=>r===t.length-1?e.pathname:e.pathnameBase)}function $(e,t,r,n=!1){let i;"string"==typeof e?i=d(e):(i={...e},s(!i.pathname||!i.pathname.includes("?"),E("?","pathname","search",i)),s(!i.pathname||!i.pathname.includes("#"),E("#","pathname","hash",i)),s(!i.search||!i.search.includes("#"),E("#","search","hash",i)));let o,a=""===e||""===i.pathname,l=a?"/":i.pathname;if(null==l)o=r;else{let e=t.length-1;if(!n&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let c=function(e,t="/"){let{pathname:r,search:n="",hash:i=""}="string"==typeof e?d(e):e,o=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:o,search:O(n),hash:P(i)}}(i,o),u=l&&"/"!==l&&l.endsWith("/"),h=(a||"."===l)&&r.endsWith("/");return c.pathname.endsWith("/")||!u&&!h||(c.pathname+="/"),c}var _=e=>e.join("/").replace(/\/\/+/g,"/"),R=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),O=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",P=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function M(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var L=["POST","PUT","PATCH","DELETE"],j=(new Set(L),["GET",...L]);new Set(j),Symbol("ResetLoaderData");var N=n.createContext(null);N.displayName="DataRouter";var F=n.createContext(null);F.displayName="DataRouterState";var D=n.createContext({isTransitioning:!1});D.displayName="ViewTransition",n.createContext(new Map).displayName="Fetchers",n.createContext(null).displayName="Await";var B=n.createContext(null);B.displayName="Navigation";var z=n.createContext(null);z.displayName="Location";var W=n.createContext({outlet:null,matches:[],isDataRoute:!1});W.displayName="Route";var H=n.createContext(null);H.displayName="RouteError";var V=!0;function G(){return null!=n.useContext(z)}function U(){return s(G(),"useLocation() may be used only in the context of a <Router> component."),n.useContext(z).location}var Z="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function K(e){n.useContext(B).static||n.useLayoutEffect(e)}function Y(){let{isDataRoute:e}=n.useContext(W);return e?function(){let{router:e}=function(e){let t=n.useContext(N);return s(t,ie(e)),t}("useNavigate"),t=oe("useNavigate"),r=n.useRef(!1);return K(()=>{r.current=!0}),n.useCallback(async(n,i={})=>{a(r.current,Z),r.current&&("number"==typeof n?e.navigate(n):await e.navigate(n,{fromRouteId:t,...i}))},[e,t])}():function(){s(G(),"useNavigate() may be used only in the context of a <Router> component.");let e=n.useContext(N),{basename:t,navigator:r}=n.useContext(B),{matches:i}=n.useContext(W),{pathname:o}=U(),l=JSON.stringify(T(i)),c=n.useRef(!1);return K(()=>{c.current=!0}),n.useCallback((n,i={})=>{if(a(c.current,Z),!c.current)return;if("number"==typeof n)return void r.go(n);let s=$(n,JSON.parse(l),o,"path"===i.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:_([t,s.pathname])),(i.replace?r.replace:r.push)(s,i.state,i)},[t,r,l,o,e])}()}var q=n.createContext(null);function X(){let{matches:e}=n.useContext(W),t=e[e.length-1];return t?t.params:{}}function J(e,{relative:t}={}){let{matches:r}=n.useContext(W),{pathname:i}=U(),o=JSON.stringify(T(r));return n.useMemo(()=>$(e,JSON.parse(o),i,"path"===t),[e,o,i,t])}function Q(e,t,r,i){s(G(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=n.useContext(B),{matches:l}=n.useContext(W),c=l[l.length-1],u=c?c.params:{},p=c?c.pathname:"/",f=c?c.pathnameBase:"/",m=c&&c.route;if(V){let e=m&&m.path||"";ae(p,!m||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let g,y=U();if(t){let e="string"==typeof t?d(t):t;s("/"===f||e.pathname?.startsWith(f),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${e.pathname}" was given in the \`location\` prop.`),g=e}else g=y;let v=g.pathname||"/",b=v;if("/"!==f){let e=f.replace(/^\//,"").split("/");b="/"+v.replace(/^\//,"").split("/").slice(e.length).join("/")}let w=h(e,{pathname:b});V&&(a(m||null!=w,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),a(null==w||void 0!==w[w.length-1].route.element||void 0!==w[w.length-1].route.Component||void 0!==w[w.length-1].route.lazy,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let x=function(e,t=[],r=null){if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let i=e,o=r?.errors;if(null!=o){let e=i.findIndex(e=>e.route.id&&void 0!==o?.[e.route.id]);s(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let a=!1,l=-1;if(r)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:n}=r,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!n||void 0===n[t.route.id]);if(t.route.lazy||o){a=!0,i=l>=0?i.slice(0,l+1):[i[0]];break}}}return i.reduceRight((e,s,c)=>{let u,d=!1,h=null,p=null;r&&(u=o&&s.route.id?o[s.route.id]:void 0,h=s.route.errorElement||te,a&&(l<0&&0===c?(ae("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):l===c&&(d=!0,p=s.route.hydrateFallbackElement||null)));let f=t.concat(i.slice(0,c+1)),m=()=>{let t;return t=u?h:d?p:s.route.Component?n.createElement(s.route.Component,null):s.route.element?s.route.element:e,n.createElement(ne,{match:s,routeContext:{outlet:e,matches:f,isDataRoute:null!=r},children:t})};return r&&(s.route.ErrorBoundary||s.route.errorElement||0===c)?n.createElement(re,{location:r.location,revalidation:r.revalidation,component:h,error:u,children:m(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):m()},null)}(w&&w.map(e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:_([f,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:_([f,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),l,r,i);return t&&x?n.createElement(z.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},x):x}function ee(){let e=function(){let e=n.useContext(H),t=function(e){let t=n.useContext(F);return s(t,ie(e)),t}("useRouteError"),r=oe("useRouteError");return void 0!==e?e:t.errors?.[r]}(),t=M(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:i},a={padding:"2px 4px",backgroundColor:i},l=null;return V&&(console.error("Error handled by React Router default ErrorBoundary:",e),l=n.createElement(n.Fragment,null,n.createElement("p",null,"💿 Hey developer 👋"),n.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",n.createElement("code",{style:a},"ErrorBoundary")," or"," ",n.createElement("code",{style:a},"errorElement")," prop on your route."))),n.createElement(n.Fragment,null,n.createElement("h2",null,"Unexpected Application Error!"),n.createElement("h3",{style:{fontStyle:"italic"}},t),r?n.createElement("pre",{style:o},r):null,l)}var te=n.createElement(ee,null),re=class extends n.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?n.createElement(W.Provider,{value:this.props.routeContext},n.createElement(H.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ne({routeContext:e,match:t,children:r}){let i=n.useContext(N);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),n.createElement(W.Provider,{value:e},r)}function ie(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function oe(e){let t=function(e){let t=n.useContext(W);return s(t,ie(e)),t}(e),r=t.matches[t.matches.length-1];return s(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}var se={};function ae(e,t,r){t||se[e]||(se[e]=!0,a(!1,r))}function le({to:e,replace:t,state:r,relative:i}){s(G(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=n.useContext(B);a(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:l}=n.useContext(W),{pathname:c}=U(),u=Y(),d=$(e,T(l),c,"path"===i),h=JSON.stringify(d);return n.useEffect(()=>{u(JSON.parse(h),{replace:t,state:r,relative:i})},[u,h,i,t,r]),null}function ce(e){return function(e){let t=n.useContext(W).outlet;return t?n.createElement(q.Provider,{value:e},t):t}(e.context)}function ue(e){s(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function de({basename:e="/",children:t=null,location:r,navigationType:i="POP",navigator:o,static:l=!1}){s(!G(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),u=n.useMemo(()=>({basename:c,navigator:o,static:l,future:{}}),[c,o,l]);"string"==typeof r&&(r=d(r));let{pathname:h="/",search:p="",hash:f="",state:m=null,key:g="default"}=r,y=n.useMemo(()=>{let e=k(h,c);return null==e?null:{location:{pathname:e,search:p,hash:f,state:m,key:g},navigationType:i}},[c,h,p,f,m,g,i]);return a(null!=y,`<Router basename="${c}"> is not able to match the URL "${h}${p}${f}" because it does not start with the basename, so the <Router> won't render anything.`),null==y?null:n.createElement(B.Provider,{value:u},n.createElement(z.Provider,{children:t,value:y}))}function he({children:e,location:t}){return Q(pe(e),t)}function pe(e,t=[]){let r=[];return n.Children.forEach(e,(e,i)=>{if(!n.isValidElement(e))return;let o=[...t,i];if(e.type===n.Fragment)return void r.push.apply(r,pe(e.props.children,o));s(e.type===ue,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),s(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=pe(e.props.children,o)),r.push(a)}),r}n.memo(function({routes:e,future:t,state:r}){return Q(e,void 0,r,t)}),n.Component;var fe="get",me="application/x-www-form-urlencoded";function ge(e){return null!=e&&"string"==typeof e.tagName}var ye=null,ve=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function be(e){return null==e||ve.has(e)?e:(a(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${me}"`),null)}function we(e,t){if(!1===e||null==e)throw new Error(t)}function xe(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function Ae(e,t,r,n,i,o){let s=(e,t)=>!r[t]||e.route.id!==r[t].route.id,a=(e,t)=>r[t].pathname!==e.pathname||r[t].route.path?.endsWith("*")&&r[t].params["*"]!==e.params["*"];return"assets"===o?t.filter((e,t)=>s(e,t)||a(e,t)):"data"===o?t.filter((t,o)=>{let l=n.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(s(t,o)||a(t,o))return!0;if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof n)return n}return!0}):[]}function Ce(e,t,{includeHydrateFallback:r}={}){return n=e.map(e=>{let n=t.routes[e.route.id];if(!n)return[];let i=[n.module];return n.clientActionModule&&(i=i.concat(n.clientActionModule)),n.clientLoaderModule&&(i=i.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(i=i.concat(n.hydrateFallbackModule)),n.imports&&(i=i.concat(n.imports)),i}).flat(1),[...new Set(n)];var n}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis,Symbol("SingleFetchRedirect");function Se(){let e=n.useContext(N);return we(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Ie(){let e=n.useContext(F);return we(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}n.Component;var ke=n.createContext(void 0);function Ee(){let e=n.useContext(ke);return we(e,"You must render this element inside a <HydratedRouter> element"),e}function Te(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function $e({page:e,...t}){let{router:r}=Se(),i=n.useMemo(()=>h(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?n.createElement(Re,{page:e,matches:i,...t}):null}function _e(e){let{manifest:t,routeModules:r}=Ee(),[i,o]=n.useState([]);return n.useEffect(()=>{let n=!1;return async function(e,t,r){return function(e,t){let r=new Set,n=new Set(t);return e.reduce((e,i)=>{if(t&&(null==(o=i)||"string"!=typeof o.page)&&"script"===i.as&&i.href&&n.has(i.href))return e;var o;let s=JSON.stringify(function(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}(i));return r.has(s)||(r.add(s),e.push({key:s,link:i})),e},[])}((await Promise.all(e.map(async e=>{let n=t.routes[e.route.id];if(n){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}(n,r);return e.links?e.links():[]}return[]}))).flat(1).filter(xe).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,r).then(e=>{n||o(e)}),()=>{n=!0}},[e,t,r]),i}function Re({page:e,matches:t,...r}){let i=U(),{manifest:o,routeModules:s}=Ee(),{basename:a}=Se(),{loaderData:l,matches:c}=Ie(),u=n.useMemo(()=>Ae(e,t,c,o,i,"data"),[e,t,c,o,i]),d=n.useMemo(()=>Ae(e,t,c,o,i,"assets"),[e,t,c,o,i]),h=n.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let r=new Set,n=!1;if(t.forEach(e=>{let t=o.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in l&&s[e.route.id]?.shouldRevalidate||t.hasClientLoader?n=!0:r.add(e.route.id))}),0===r.size)return[];let c=function(e,t){let r="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===r.pathname?r.pathname="_root.data":t&&"/"===k(r.pathname,t)?r.pathname=`${t.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}(e,a);return n&&r.size>0&&c.searchParams.set("_routes",t.filter(e=>r.has(e.route.id)).map(e=>e.route.id).join(",")),[c.pathname+c.search]},[a,l,i,o,u,t,e,s]),p=n.useMemo(()=>Ce(d,o),[d,o]),f=_e(d);return n.createElement(n.Fragment,null,h.map(e=>n.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})),p.map(e=>n.createElement("link",{key:e,rel:"modulepreload",href:e,...r})),f.map(({key:e,link:t})=>n.createElement("link",{key:e,...t})))}ke.displayName="FrameworkContext";function Oe(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}var Pe="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Pe&&(window.__reactRouterVersion="7.6.3")}catch(e){}function Me({basename:e,children:t,window:r}){let i=n.useRef();null==i.current&&(i.current=o({window:r,v5Compat:!0}));let s=i.current,[a,l]=n.useState({action:s.action,location:s.location}),c=n.useCallback(e=>{n.startTransition(()=>l(e))},[l]);return n.useLayoutEffect(()=>s.listen(c),[s,c]),n.createElement(de,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:s})}var Le=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,je=n.forwardRef(function({onClick:e,discover:t="render",prefetch:r="none",relative:i,reloadDocument:o,replace:l,state:c,target:d,to:h,preventScrollReset:p,viewTransition:f,...m},g){let y,{basename:v}=n.useContext(B),b="string"==typeof h&&Le.test(h),w=!1;if("string"==typeof h&&b&&(y=h,Pe))try{let e=new URL(window.location.href),t=h.startsWith("//")?new URL(e.protocol+h):new URL(h),r=k(t.pathname,v);t.origin===e.origin&&null!=r?h=r+t.search+t.hash:w=!0}catch(e){a(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=function(e,{relative:t}={}){s(G(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=n.useContext(B),{hash:o,pathname:a,search:l}=J(e,{relative:t}),c=a;return"/"!==r&&(c="/"===a?r:_([r,a])),i.createHref({pathname:c,search:l,hash:o})}(h,{relative:i}),[A,C,S]=function(e,t){let r=n.useContext(ke),[i,o]=n.useState(!1),[s,a]=n.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:h}=t,p=n.useRef(null);n.useEffect(()=>{if("render"===e&&a(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{a(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),n.useEffect(()=>{if(i){let e=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(e)}}},[i]);let f=()=>{o(!0)},m=()=>{o(!1),a(!1)};return r?"intent"!==e?[s,p,{}]:[s,p,{onFocus:Te(l,f),onBlur:Te(c,m),onMouseEnter:Te(u,f),onMouseLeave:Te(d,m),onTouchStart:Te(h,f)}]:[!1,p,{}]}(r,m),I=function(e,{target:t,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:a}={}){let l=Y(),c=U(),d=J(e,{relative:s});return n.useCallback(n=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(n,t)){n.preventDefault();let t=void 0!==r?r:u(c)===u(d);l(e,{replace:t,state:i,preventScrollReset:o,relative:s,viewTransition:a})}},[c,l,d,r,i,t,e,o,s,a])}(h,{replace:l,state:c,target:d,preventScrollReset:p,relative:i,viewTransition:f}),E=n.createElement("a",{...m,...S,href:y||x,onClick:w||o?e:function(t){e&&e(t),t.defaultPrevented||I(t)},ref:Oe(g,C),target:d,"data-discover":b||"render"!==t?void 0:"true"});return A&&!b?n.createElement(n.Fragment,null,E,n.createElement($e,{page:x})):E});function Ne(e){let t=n.useContext(N);return s(t,function(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}je.displayName="Link",n.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:r="",end:i=!1,style:o,to:a,viewTransition:l,children:c,...u},d){let h=J(a,{relative:u.relative}),p=U(),f=n.useContext(F),{navigator:m,basename:g}=n.useContext(B),y=null!=f&&function(e,t={}){let r=n.useContext(D);s(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Ne("useViewTransitionState"),o=J(e,{relative:t.relative});if(!r.isTransitioning)return!1;let a=k(r.currentLocation.pathname,i)||r.currentLocation.pathname,l=k(r.nextLocation.pathname,i)||r.nextLocation.pathname;return null!=S(o.pathname,l)||null!=S(o.pathname,a)}(h)&&!0===l,v=m.encodeLocation?m.encodeLocation(h).pathname:h.pathname,b=p.pathname,w=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,v=v.toLowerCase()),w&&g&&(w=k(w,g)||w);const x="/"!==v&&v.endsWith("/")?v.length-1:v.length;let A,C=b===v||!i&&b.startsWith(v)&&"/"===b.charAt(x),I=null!=w&&(w===v||!i&&w.startsWith(v)&&"/"===w.charAt(v.length)),E={isActive:C,isPending:I,isTransitioning:y},T=C?e:void 0;A="function"==typeof r?r(E):[r,C?"active":null,I?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let $="function"==typeof o?o(E):o;return n.createElement(je,{...u,"aria-current":T,className:A,ref:d,style:$,to:a,viewTransition:l},"function"==typeof c?c(E):c)}).displayName="NavLink",n.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:i,replace:o,state:a,method:l=fe,action:c,onSubmit:d,relative:h,preventScrollReset:p,viewTransition:f,...m},g)=>{let y=function(){let{router:e}=Ne("useSubmit"),{basename:t}=n.useContext(B),r=oe("useRouteId");return n.useCallback(async(n,i={})=>{let{action:o,method:s,encType:a,formData:l,body:c}=function(e,t){let r,n,i,o,s;if(ge(a=e)&&"form"===a.tagName.toLowerCase()){let s=e.getAttribute("action");n=s?k(s,t):null,r=e.getAttribute("method")||fe,i=be(e.getAttribute("enctype"))||me,o=new FormData(e)}else if(function(e){return ge(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return ge(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let s=e.form;if(null==s)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=e.getAttribute("formaction")||s.getAttribute("action");if(n=a?k(a,t):null,r=e.getAttribute("formmethod")||s.getAttribute("method")||fe,i=be(e.getAttribute("formenctype"))||be(s.getAttribute("enctype"))||me,o=new FormData(s,e),!function(){if(null===ye)try{new FormData(document.createElement("form"),0),ye=!1}catch(e){ye=!0}return ye}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,n)}}else{if(ge(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=fe,n=null,i=me,s=e}var a;return o&&"text/plain"===i&&(s=o,o=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:o,body:s}}(n,t);if(!1===i.navigate){let t=i.fetcherKey||De();await e.fetch(t,r,i.action||o,{preventScrollReset:i.preventScrollReset,formData:l,body:c,formMethod:i.method||s,formEncType:i.encType||a,flushSync:i.flushSync})}else await e.navigate(i.action||o,{preventScrollReset:i.preventScrollReset,formData:l,body:c,formMethod:i.method||s,formEncType:i.encType||a,replace:i.replace,state:i.state,fromRouteId:r,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,r])}(),v=function(e,{relative:t}={}){let{basename:r}=n.useContext(B),i=n.useContext(W);s(i,"useFormAction must be used inside a RouteContext");let[o]=i.matches.slice(-1),a={...J(e||".",{relative:t})},l=U();if(null==e){a.search=l.search;let e=new URLSearchParams(a.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();a.search=r?`?${r}`:""}}return e&&"."!==e||!o.route.index||(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),"/"!==r&&(a.pathname="/"===a.pathname?r:_([r,a.pathname])),u(a)}(c,{relative:h}),b="get"===l.toLowerCase()?"get":"post",w="string"==typeof c&&Le.test(c);return n.createElement("form",{ref:g,method:b,action:v,onSubmit:i?d:e=>{if(d&&d(e),e.defaultPrevented)return;e.preventDefault();let n=e.nativeEvent.submitter,i=n?.getAttribute("formmethod")||l;y(n||e.currentTarget,{fetcherKey:t,method:i,navigate:r,replace:o,state:a,relative:h,preventScrollReset:p,viewTransition:f})},...m,"data-discover":w||"render"!==e?void 0:"true"})}).displayName="Form";var Fe=0,De=()=>`__${String(++Fe)}__`},85906:(e,t,r)=>{"use strict";var n=r(46518),i=r(79504),o=r(25397),s=r(48981),a=r(655),l=r(26198),c=i([].push),u=i([].join);n({target:"String",stat:!0},{raw:function(e){var t=o(s(e).raw),r=l(t);if(!r)return"";for(var n=arguments.length,i=[],d=0;;){if(c(i,a(t[d++])),d===r)return u(i,"");d<n&&c(i,a(arguments[d]))}}})},85916:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(96540),i=r(34164),o=r(21362),s=r(35124),a=r(26739),l=r(13202),c=r(21942),u=r(58503),d=r(74848);const h=(0,a.Ay)(s.A,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),p=n.forwardRef(function(e,t){const r=(0,l.b)({props:e,name:"MuiDialogTitle"}),{className:s,id:a,...p}=r,f=r,m=(e=>{const{classes:t}=e;return(0,o.A)({root:["root"]},c.t,t)})(f),{titleId:g=a}=n.useContext(u.A);return(0,d.jsx)(h,{component:"h2",className:(0,i.A)(m.root,s),ownerState:f,ref:t,variant:"h6",id:a??g,...p})})},86009:(e,t,r)=>{e=r.nmd(e);var n=r(34840),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},86122:(e,t,r)=>{var n=r(80322);"string"==typeof n&&(n=[[e.id,n,""]]);r(53027)(n,{hmr:!0,transform:void 0,insertInto:void 0}),n.locals&&(e.exports=n.locals)},86368:(e,t,r)=>{"use strict";var n=r(46518),i=r(44576),o=r(59225).clear;n({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==o},{clearImmediate:o})},86565:(e,t,r)=>{"use strict";var n=r(46518),i=r(28551),o=r(42787);n({target:"Reflect",stat:!0,sham:!r(12211)},{getPrototypeOf:function(e){return o(i(e))}})},86614:(e,t,r)=>{"use strict";var n=r(94644),i=r(18014),o=r(35610),s=n.aTypedArray,a=n.getTypedArrayConstructor;(0,n.exportTypedArrayMethod)("subarray",function(e,t){var r=s(this),n=r.length,l=o(e,n);return new(a(r))(r.buffer,r.byteOffset+l*r.BYTES_PER_ELEMENT,i((void 0===t?n:o(t,n))-l))})},86700:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(96540),i=r(34164),o=r(21362),s=r(80625),a=r(26739),l=r(13202),c=r(96148),u=r(1908);function d(e){return(0,u.Ay)("MuiTableHead",e)}(0,c.A)("MuiTableHead",["root"]);var h=r(74848);const p=(0,a.Ay)("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),f={variant:"head"},m="thead",g=n.forwardRef(function(e,t){const r=(0,l.b)({props:e,name:"MuiTableHead"}),{className:n,component:a=m,...c}=r,u={...r,component:a},g=(e=>{const{classes:t}=e;return(0,o.A)({root:["root"]},d,t)})(u);return(0,h.jsx)(s.A.Provider,{value:f,children:(0,h.jsx)(p,{as:a,className:(0,i.A)(g.root,n),ref:t,role:a===m?null:"rowgroup",ownerState:u,...c})})})},86860:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(9792),i=r(74848);const o=(0,n.A)((0,i.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2"}),"Circle")},86938:(e,t,r)=>{"use strict";var n=r(2360),i=r(62106),o=r(56279),s=r(76080),a=r(90679),l=r(64117),c=r(72652),u=r(51088),d=r(62529),h=r(87633),p=r(43724),f=r(3451).fastKey,m=r(91181),g=m.set,y=m.getterFor;e.exports={getConstructor:function(e,t,r,u){var d=e(function(e,i){a(e,h),g(e,{type:t,index:n(null),first:null,last:null,size:0}),p||(e.size=0),l(i)||c(i,e[u],{that:e,AS_ENTRIES:r})}),h=d.prototype,m=y(t),v=function(e,t,r){var n,i,o=m(e),s=b(e,t);return s?s.value=r:(o.last=s={index:i=f(t,!0),key:t,value:r,previous:n=o.last,next:null,removed:!1},o.first||(o.first=s),n&&(n.next=s),p?o.size++:e.size++,"F"!==i&&(o.index[i]=s)),e},b=function(e,t){var r,n=m(e),i=f(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key===t)return r};return o(h,{clear:function(){for(var e=m(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=n(null),p?e.size=0:this.size=0},delete:function(e){var t=this,r=m(t),n=b(t,e);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first===n&&(r.first=i),r.last===n&&(r.last=o),p?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=m(this),n=s(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),o(h,r?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),p&&i(h,"size",{configurable:!0,get:function(){return m(this).size}}),d},setStrong:function(e,t,r){var n=t+" Iterator",i=y(t),o=y(n);u(e,t,function(e,t){g(this,{type:n,target:e,state:i(e),kind:t,last:null})},function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?d("keys"===t?r.key:"values"===t?r.value:[r.key,r.value],!1):(e.target=null,d(void 0,!0))},r?"entries":"values",!r,!0),h(t)}}},86964:(e,t,r)=>{"use strict";r(70511)("match")},87068:(e,t,r)=>{var n=r(37217),i=r(25911),o=r(21986),s=r(50689),a=r(5861),l=r(56449),c=r(3656),u=r(37167),d="[object Arguments]",h="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,g,y){var v=l(e),b=l(t),w=v?h:a(e),x=b?h:a(t),A=(w=w==d?p:w)==p,C=(x=x==d?p:x)==p,S=w==x;if(S&&c(e)){if(!c(t))return!1;v=!0,A=!1}if(S&&!A)return y||(y=new n),v||u(e)?i(e,t,r,m,g,y):o(e,t,w,r,m,g,y);if(!(1&r)){var I=A&&f.call(e,"__wrapped__"),k=C&&f.call(t,"__wrapped__");if(I||k){var E=I?e.value():e,T=k?t.value():t;return y||(y=new n),g(E,T,r,m,y)}}return!!S&&(y||(y=new n),s(e,t,r,m,g,y))}},87220:(e,t,r)=>{"use strict";var n=r(46518),i=r(33904);n({target:"Number",stat:!0,forced:Number.parseFloat!==i},{parseFloat:i})},87296:(e,t,r)=>{var n,i=r(55481),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},87411:(e,t,r)=>{"use strict";var n=r(46518),i=r(43724),o=r(28551),s=r(56969),a=r(24913);n({target:"Reflect",stat:!0,forced:r(79039)(function(){Reflect.defineProperty(a.f({},1,{value:1}),1,{value:2})}),sham:!i},{defineProperty:function(e,t,r){o(e);var n=s(t);o(r);try{return a.f(e,n,r),!0}catch(e){return!1}}})},87433:(e,t,r)=>{"use strict";var n=r(34376),i=r(33517),o=r(20034),s=r(78227)("species"),a=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(i(t)&&(t===a||n(t.prototype))||o(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?a:t}},87478:(e,t,r)=>{"use strict";r(87633)("Array")},87607:(e,t,r)=>{"use strict";var n=r(46518),i=r(43724),o=r(42551),s=r(79306),a=r(48981),l=r(24913);i&&n({target:"Object",proto:!0,forced:o},{__defineSetter__:function(e,t){l.f(a(this),e,{set:s(t),enumerable:!0,configurable:!0})}})},87633:(e,t,r)=>{"use strict";var n=r(97751),i=r(62106),o=r(78227),s=r(43724),a=o("species");e.exports=function(e){var t=n(e);s&&t&&!t[a]&&i(t,a,{configurable:!0,get:function(){return this}})}},87714:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(96540),i=r(34164),o=r(21362),s=r(93583),a=r(76761),l=r(26739),c=r(39241),u=r(13202),d=r(39407),h=r(96148),p=r(1908);function f(e){return(0,p.Ay)("MuiFormHelperText",e)}const m=(0,h.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var g,y=r(74848);const v=(0,l.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${(0,d.A)(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})((0,c.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${m.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${m.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),b=n.forwardRef(function(e,t){const r=(0,u.b)({props:e,name:"MuiFormHelperText"}),{children:n,className:l,component:c="p",disabled:h,error:p,filled:m,focused:b,margin:w,required:x,variant:A,...C}=r,S=(0,a.A)(),I=(0,s.A)({props:r,muiFormControl:S,states:["variant","size","disabled","error","filled","focused","required"]}),k={...r,component:c,contained:"filled"===I.variant||"outlined"===I.variant,variant:I.variant,size:I.size,disabled:I.disabled,error:I.error,filled:I.filled,focused:I.focused,required:I.required};delete k.ownerState;const E=(e=>{const{classes:t,contained:r,size:n,disabled:i,error:s,filled:a,focused:l,required:c}=e,u={root:["root",i&&"disabled",s&&"error",n&&`size${(0,d.A)(n)}`,r&&"contained",l&&"focused",a&&"filled",c&&"required"]};return(0,o.A)(u,f,t)})(k);return(0,y.jsx)(v,{as:c,className:(0,i.A)(E.root,l),ref:t,...C,ownerState:k,children:" "===n?g||(g=(0,y.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""})):n})})},87745:(e,t,r)=>{"use strict";var n=r(43724),i=r(58429).MISSED_STICKY,o=r(22195),s=r(62106),a=r(91181).get,l=RegExp.prototype,c=TypeError;n&&i&&s(l,"sticky",{configurable:!0,get:function(){if(this!==l){if("RegExp"===o(this))return!!a(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},87788:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var n=r(96540),i=r(34164),o=r(21362),s=r(76761),a=r(26739),l=r(39241),c=r(13202),u=r(35124),d=r(39407),h=r(96148),p=r(1908);function f(e){return(0,p.Ay)("MuiFormControlLabel",e)}const m=(0,h.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var g=r(93583),y=r(85078),v=r(74848);const b=(0,a.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${m.label}`]:t.label},t.root,t[`labelPlacement${(0,d.A)(r.labelPlacement)}`]]}})((0,l.A)(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${m.disabled}`]:{cursor:"default"},[`& .${m.label}`]:{[`&.${m.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>"start"===e||"top"===e||"bottom"===e,style:{marginLeft:16}}]}))),w=(0,a.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk"})((0,l.A)(({theme:e})=>({[`&.${m.error}`]:{color:(e.vars||e).palette.error.main}}))),x=n.forwardRef(function(e,t){const r=(0,c.b)({props:e,name:"MuiFormControlLabel"}),{checked:a,className:l,componentsProps:h={},control:p,disabled:m,disableTypography:x,inputRef:A,label:C,labelPlacement:S="end",name:I,onChange:k,required:E,slots:T={},slotProps:$={},value:_,...R}=r,O=(0,s.A)(),P=m??p.props.disabled??O?.disabled,M=E??p.props.required,L={disabled:P,required:M};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===p.props[e]&&void 0!==r[e]&&(L[e]=r[e])});const j=(0,g.A)({props:r,muiFormControl:O,states:["error"]}),N={...r,disabled:P,labelPlacement:S,required:M,error:j.error},F=(e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:s}=e,a={root:["root",r&&"disabled",`labelPlacement${(0,d.A)(n)}`,i&&"error",s&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return(0,o.A)(a,f,t)})(N),D={slots:T,slotProps:{...h,...$}},[B,z]=(0,y.A)("typography",{elementType:u.A,externalForwardedProps:D,ownerState:N});let W=C;return null==W||W.type===u.A||x||(W=(0,v.jsx)(B,{component:"span",...z,className:(0,i.A)(F.label,z?.className),children:W})),(0,v.jsxs)(b,{className:(0,i.A)(F.root,l),ownerState:N,ref:t,...R,children:[n.cloneElement(p,L),M?(0,v.jsxs)("div",{children:[W,(0,v.jsxs)(w,{ownerState:N,"aria-hidden":!0,className:F.asterisk,children:[" ","*"]})]}):W]})})},88267:(e,t,r)=>{"use strict";var n=r(46518),i=r(79504),o=r(655),s=String.fromCharCode,a=i("".charAt),l=i(/./.exec),c=i("".slice),u=/^[\da-f]{2}$/i,d=/^[\da-f]{4}$/i;n({global:!0},{unescape:function(e){for(var t,r,n=o(e),i="",h=n.length,p=0;p<h;){if("%"===(t=a(n,p++)))if("u"===a(n,p)){if(r=c(n,p+1,p+5),l(d,r)){i+=s(parseInt(r,16)),p+=5;continue}}else if(r=c(n,p,p+2),l(u,r)){i+=s(parseInt(r,16)),p+=2;continue}i+=t}return i}})},88358:e=>{self,e.exports=function(){return t={359:function(e,t,r){r.d(t,{V:function(){return o},e:function(){return s}}),t=r(9151);var n=r.n(t),i=r(6237);function o(e,t){var r,n=t.sort,o=t.filter,s=(t=t.projection,"");return o?(r="@"!==o.field?["0"].concat((0,i.parsePath)("."+o.field)):["0"],r="string"==typeof(0,i.get)(e,r)?o.value:(0,i.parseString)(o.value),s+="[? "+o.field+" "+o.relation+" `"+JSON.stringify(r)+"`]"):s+=Array.isArray(e)?"[*]":"@",n&&("desc"===n.direction?s+=" | reverse(sort_by(@, &"+n.field+"))":s+=" | sort_by(@, &"+n.field+")"),t&&("]"!==s[s.length-1]&&(s+=" | [*]"),1===t.fields.length?s+="."+t.fields[0]:1<t.fields.length&&(s+=".{"+t.fields.map(function(e){var t=e.split(".");return t[t.length-1]+": "+e}).join(", ")+"}")),s}function s(e,t){return n().search(e,t)}},413:function(e,t,r){var n=/^[a-z_$][a-z0-9_$-]*$/i,i=r(8050),o=r(9407);e.exports={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!n.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var o=t.type;if(Array.isArray(o))for(var s=0;s<o.length;s++)l(e,o[s],t);else l(e,o,t);var a=t.metaSchema;a&&(t.$data&&this._opts.$data&&(a={anyOf:[a,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(a,!0))}function l(e,t,n){for(var o,s=0;s<r.length;s++){var a=r[s];if(a.type==t){o=a;break}}o||r.push(o={type:t,rules:[]}),n={keyword:e,definition:n,custom:!0,code:i,implements:n.implements},o.rules.push(n),r.custom[e]=n}return r.keywords[e]=r.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var r=0;r<t.length;r++)for(var n=t[r].rules,i=0;i<n.length;i++)if(n[i].keyword==e){n.splice(i,1);break}return this},validate:function e(t,r){e.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(o,!0);if(n(t))return!0;if(e.errors=n.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));return!1}}},600:function(e,t,r){var n=r(3689).MissingRef;e.exports=function e(t,r,i){var o=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(i=r,r=void 0);var s=a(t).then(function(){var e=o._addSchema(t,void 0,r);return e.validate||function e(t){try{return o._compile(t)}catch(i){if(i instanceof n)return function(n){var i=n.missingSchema;if(l(i))throw new Error("Schema "+i+" is loaded but "+n.missingRef+" cannot be resolved");return(n=o._loadingSchemas[i])||(n=o._loadingSchemas[i]=o._opts.loadSchema(i)).then(s,s),n.then(function(e){if(!l(i))return a(e).then(function(){l(i)||o.addSchema(e,i,void 0,r)})}).then(function(){return e(t)});function s(){delete o._loadingSchemas[i]}function l(e){return o._refs[e]||o._schemas[e]}}(i);throw i}}(e)});return i&&s.then(function(e){i(null,e)},i),s;function a(t){return(t=t.$schema)&&!o.getSchema(t)?e.call(o,{$ref:t},!0):Promise.resolve()}}},611:function(e){e.exports=function(e){for(var t,r=0,n=e.length,i=0;i<n;)r++,55296<=(t=e.charCodeAt(i++))&&t<=56319&&i<n&&56320==(64512&e.charCodeAt(i))&&i++;return r}},660:function(e,t,r){r.d(t,{Oq:function(){return i},SC:function(){return s},ai:function(){return n},hJ:function(){return o}});var n=document.body,i=10485760,o=2e4,s=2147483648},812:function(e){e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(o||""),d=e.opts.$data&&s&&s.$data;if(o=d?(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ","schema"+i):s,!d&&"number"!=typeof s)throw new Error(t+" must be number");return n+="var division"+i+";if (",d&&(n+=" "+o+" !== undefined && ( typeof "+o+" != 'number' || "),n+=" (division"+i+" = "+u+" / "+o+", ",e.opts.multipleOfPrecision?n+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" ":n+=" division"+i+" !== parseInt(division"+i+") ",n+=" ) ",d&&(n+=" ) "),(t=[]).push(n+=" ) { "),n="",!1!==e.createErrors?(n+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { multipleOf: "+o+" } ",!1!==e.opts.messages&&(n=n+" , message: 'should be multiple of "+(d?"' + "+o:o+"'")),e.opts.verbose&&(n=(n+=" , schema: ")+(d?"validate.schema"+a:""+s)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",i=n,n=t.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+i+"]); ":n+=" validate.errors = ["+i+"]; return false; ":n+=" var err = "+i+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}},1004:function(e){e.exports=function(e,t,r){var n,i,o=" ",s=e.level,a=e.dataLevel,l=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=(t=e.errSchemaPath+"/"+t,!e.opts.allErrors),d=(a="data"+(a||""),s="errs__"+s,e.util.copy(e)),h=(d.level++,"valid"+d.level);return(e.opts.strictKeywords?"object"==typeof l&&0<Object.keys(l).length||!1===l:e.util.schemaHasRules(l,e.RULES.all))?(d.schema=l,d.schemaPath=c,d.errSchemaPath=t,o+=" var "+s+" = errors; ",l=e.compositeRule,e.compositeRule=d.compositeRule=!0,d.createErrors=!1,d.opts.allErrors&&(i=d.opts.allErrors,d.opts.allErrors=!1),o+=" "+e.validate(d)+" ",d.createErrors=!0,i&&(d.opts.allErrors=i),e.compositeRule=d.compositeRule=l,(n=n||[]).push(o+=" if ("+h+") { "),o="",!1!==e.createErrors?(o+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(t)+" , params: {} ",!1!==e.opts.messages&&(o+=" , message: 'should NOT be valid' "),e.opts.verbose&&(o+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+a+" "),o+=" } "):o+=" {} ",i=o,o=n.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+i+"]); ":o+=" validate.errors = ["+i+"]; return false; ":o+=" var err = "+i+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else { errors = "+s+"; if (vErrors !== null) { if ("+s+") vErrors.length = "+s+"; else vErrors = null; } ",e.opts.allErrors&&(o+=" } ")):(o+=" var err = ",!1!==e.createErrors?(o+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(t)+" , params: {} ",!1!==e.opts.messages&&(o+=" , message: 'should NOT be valid' "),e.opts.verbose&&(o+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+a+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(o+=" if (false) { ")),o}},1035:function(e){e.exports=function(e,t,r){var n="",i=!0===e.schema.$async,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),s=e.self._getId(e.schema);if(e.opts.strictKeywords&&($=e.util.schemaUnknownRules(e.schema,e.RULES.keywords))){if($="unknown keyword: "+$,"log"!==e.opts.strictKeywords)throw new Error($);e.logger.warn($)}if(e.isTop&&(n+=" var validate = ",i&&(e.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",s)&&(e.opts.sourceCode||e.opts.processCode)&&(n+=" /*# sourceURL="+s+" */ "),"boolean"==typeof e.schema||!o&&!e.schema.$ref)l=e.level,c=e.dataLevel,P=e.schema[t="false schema"],w=e.schemaPath+e.util.getProperty(t),x=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,u="data"+(c||""),h="valid"+l,!1===e.schema?(e.isTop?p=!0:n+=" var "+h+" = false; ",(W=W||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(x)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'boolean schema is false' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",T=n,n=W.pop(),!e.compositeRule&&p?e.async?n+=" throw new ValidationError(["+T+"]); ":n+=" validate.errors = ["+T+"]; return false; ":n+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "):e.isTop?n+=i?" return data; ":" validate.errors = null; return true; ":n+=" var "+h+" = true; ",e.isTop&&(n+=" }; return validate; ");else{if(e.isTop){var a=e.isTop,l=e.level=0,c=e.dataLevel=0,u="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var d="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(d);e.logger.warn(d)}n=(n+=" var vErrors = null; ")+" var errors = 0; if (rootData === undefined) rootData = data; "}else{if(l=e.level,u="data"+((c=e.dataLevel)||""),s&&(e.baseId=e.resolve.url(e.baseId,s)),i&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+l+" = errors;"}var h="valid"+l,p=!e.opts.allErrors,f="",m="",g=e.schema.type,y=Array.isArray(g);if(g&&e.opts.nullable&&!0===e.schema.nullable&&(y?-1==g.indexOf("null")&&(g=g.concat("null")):"null"!=g&&(g=[g,"null"],y=!0)),y&&1==g.length&&(g=g[0],y=!1),e.schema.$ref&&o){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(n+=" "+e.RULES.all.$comment.code(e,"$comment")),g){e.opts.coerceTypes&&(v=e.util.coerceToTypes(e.opts.coerceTypes,g));var v,b=e.RULES.types[g];if(v||y||!0===b||b&&!Z(b)){var w=e.schemaPath+".type",x=e.errSchemaPath+"/type";if(w=e.schemaPath+".type",x=e.errSchemaPath+"/type",n+=" if ("+e.util[y?"checkDataTypes":"checkDataType"](g,u,e.opts.strictNumbers,!0)+") { ",v){var A="dataType"+l,C="coerced"+l,S=(n+=" var "+A+" = typeof "+u+"; var "+C+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+A+" == 'object' && Array.isArray("+u+") && "+u+".length == 1) { "+u+" = "+u+"[0]; "+A+" = typeof "+u+"; if ("+e.util.checkDataType(e.schema.type,u,e.opts.strictNumbers)+") "+C+" = "+u+"; } "),n+=" if ("+C+" !== undefined) ; ",v);if(S)for(var I,k=-1,E=S.length-1;k<E;)"string"==(I=S[k+=1])?n+=" else if ("+A+" == 'number' || "+A+" == 'boolean') "+C+" = '' + "+u+"; else if ("+u+" === null) "+C+" = ''; ":"number"==I||"integer"==I?(n+=" else if ("+A+" == 'boolean' || "+u+" === null || ("+A+" == 'string' && "+u+" && "+u+" == +"+u+" ","integer"==I&&(n+=" && !("+u+" % 1)"),n+=")) "+C+" = +"+u+"; "):"boolean"==I?n+=" else if ("+u+" === 'false' || "+u+" === 0 || "+u+" === null) "+C+" = false; else if ("+u+" === 'true' || "+u+" === 1) "+C+" = true; ":"null"==I?n+=" else if ("+u+" === '' || "+u+" === 0 || "+u+" === false) "+C+" = null; ":"array"==e.opts.coerceTypes&&"array"==I&&(n+=" else if ("+A+" == 'string' || "+A+" == 'number' || "+A+" == 'boolean' || "+u+" == null) "+C+" = ["+u+"]; ");(W=W||[]).push(n+=" else { "),n="",!1!==e.createErrors?(n=(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(x)+" , params: { type: '")+(y?""+g.join(","):""+g)+"' } ",!1!==e.opts.messages&&(n=(n+=" , message: 'should be ")+(y?""+g.join(","):""+g)+"' "),e.opts.verbose&&(n+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var T=n,$=(n=W.pop(),!e.compositeRule&&p?e.async?n+=" throw new ValidationError(["+T+"]); ":n+=" validate.errors = ["+T+"]; return false; ":n+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c?"data"+(c-1||""):"parentData");n=n+" } if ("+C+" !== undefined) { "+u+" = "+C+"; ",c||(n+="if ("+$+" !== undefined)"),n+=" "+$+"["+(c?e.dataPathArr[c]:"parentDataProperty")+"] = "+C+"; } "}else(W=W||[]).push(n),n="",!1!==e.createErrors?(n=(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(x)+" , params: { type: '")+(y?""+g.join(","):""+g)+"' } ",!1!==e.opts.messages&&(n=(n+=" , message: 'should be ")+(y?""+g.join(","):""+g)+"' "),e.opts.verbose&&(n+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",T=n,n=W.pop(),!e.compositeRule&&p?e.async?n+=" throw new ValidationError(["+T+"]); ":n+=" validate.errors = ["+T+"]; return false; ":n+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";n+=" } "}}if(e.schema.$ref&&!o)n+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",p&&(n=(n+=" } if (errors === ")+(a?"0":"errs_"+l)+") { ",m+="}");else{var _=e.RULES;if(_)for(var R=-1,O=_.length-1;R<O;)if(Z(b=_[R+=1])){if(b.type&&(n+=" if ("+e.util.checkDataType(b.type,u,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==b.type&&e.schema.properties){var P=e.schema.properties,M=Object.keys(P);if(M)for(var L,j=-1,N=M.length-1;j<N;)if(void 0!==(B=P[L=M[j+=1]]).default){var F=u+e.util.getProperty(L);if(e.compositeRule){if(e.opts.strictDefaults){if(d="default is ignored for: "+F,"log"!==e.opts.strictDefaults)throw new Error(d);e.logger.warn(d)}}else n+=" if ("+F+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+F+" === null || "+F+" === '' "),n+=" ) "+F+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(B.default)+" ":n+=" "+JSON.stringify(B.default)+" ",n+="; "}}else if("array"==b.type&&Array.isArray(e.schema.items)){var D=e.schema.items;if(D){k=-1;for(var B,z=D.length-1;k<z;)if(void 0!==(B=D[k+=1]).default)if(F=u+"["+k+"]",e.compositeRule){if(e.opts.strictDefaults){if(d="default is ignored for: "+F,"log"!==e.opts.strictDefaults)throw new Error(d);e.logger.warn(d)}}else n+=" if ("+F+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+F+" === null || "+F+" === '' "),n+=" ) "+F+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(B.default)+" ":n+=" "+JSON.stringify(B.default)+" ",n+="; "}}var W,H=b.rules;if(H)for(var V,G=-1,U=H.length-1;G<U;)K(V=H[G+=1])&&(V=V.code(e,V.keyword,b.type))&&(n+=" "+V+" ",p)&&(f+="}");p&&(n+=" "+f+" ",f=""),b.type&&(n+=" } ",g)&&g===b.type&&!v&&(n+=" else { ",w=e.schemaPath+".type",x=e.errSchemaPath+"/type",(W=W||[]).push(n),n="",!1!==e.createErrors?(n=(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(x)+" , params: { type: '")+(y?""+g.join(","):""+g)+"' } ",!1!==e.opts.messages&&(n=(n+=" , message: 'should be ")+(y?""+g.join(","):""+g)+"' "),e.opts.verbose&&(n+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",T=n,n=W.pop(),!e.compositeRule&&p?e.async?n+=" throw new ValidationError(["+T+"]); ":n+=" validate.errors = ["+T+"]; return false; ":n+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } "),p&&(n=(n+=" if (errors === ")+(a?"0":"errs_"+l)+") { ",m+="}")}}p&&(n+=" "+m+" "),a?n=n+(i?" if (errors === 0) return data; else throw new ValidationError(vErrors); ":" validate.errors = vErrors; return errors === 0; ")+" }; return validate;":n+=" var "+h+" = errors === errs_"+l+";"}return n;function Z(e){for(var t=e.rules,r=0;r<t.length;r++)if(K(t[r]))return 1}function K(t){return void 0!==e.schema[t.keyword]||t.implements&&(t=>{for(var r=t.implements,n=0;n<r.length;n++)if(void 0!==e.schema[r[n]])return 1})(t)}}},1081:function(){function e(e){void 0===e||"remove"in e||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){void 0!==this.parentNode&&this.parentNode.removeChild(this)}})}"undefined"!=typeof Element&&(void 0!==window.Element&&e(window.Element.prototype),void 0!==window.CharacterData&&e(window.CharacterData.prototype),void 0!==window.DocumentType)&&e(window.DocumentType.prototype),Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(e){for(var t=0;t<this.length;t++){var r=this[t];if(e.call(this,r,t,this))return t}return-1},configurable:!0,writable:!0}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){return this[e=this.findIndex(e)]},configurable:!0,writable:!0}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")})},1292:function(e){e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=(t=e.errSchemaPath+"/"+t,!e.opts.allErrors),c=(o="data"+(o||""),"valid"+i),u="errs__"+i,d=e.util.copy(e),h=(d.level++,"valid"+d.level),p=(i="i"+i,d.dataLevel=e.dataLevel+1),f="data"+p,m=e.baseId,g=e.opts.strictKeywords?"object"==typeof s&&0<Object.keys(s).length||!1===s:e.util.schemaHasRules(s,e.RULES.all);return(n+="var "+u+" = errors;var "+c+";",g?(c=e.compositeRule,e.compositeRule=d.compositeRule=!0,d.schema=s,d.schemaPath=a,d.errSchemaPath=t,n+=" var "+h+" = false; for (var "+i+" = 0; "+i+" < "+o+".length; "+i+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,i,e.opts.jsonPointers,!0),s=o+"["+i+"]",d.dataPathArr[p]=i,p=e.validate(d),d.baseId=m,e.util.varOccurences(p,f)<2?n+=" "+e.util.varReplace(p,f,s)+" ":n+=" var "+f+" = "+s+"; "+p+" ",n+=" if ("+h+") break; } ",e.compositeRule=d.compositeRule=c,n+=" if (!"+h+") {"):n+=" if ("+o+".length == 0) {",i=[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(t)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+o+" "),n+=" } "):n+=" {} ",m=n,n=i.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+m+"]); ":n+=" validate.errors = ["+m+"]; return false; ":n+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",g&&(n+=" errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}},1342:function(e){e.exports=function e(t,r){function n(t){return e.insensitive&&(""+t).toLowerCase()||""+t}var i,o,s=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,a=/(^[ ]*|[ ]*$)/g,l=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,c=/^0x[0-9a-f]+$/i,u=/^0/,d=(t=n(t).replace(a,"")||"",r=n(r).replace(a,"")||"",t.replace(s,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0")),h=r.replace(s,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0");if(a=parseInt(t.match(c),16)||1!==d.length&&t.match(l)&&Date.parse(t),s=parseInt(r.match(c),16)||a&&r.match(l)&&Date.parse(r)||null){if(a<s)return-1;if(s<a)return 1}for(var p=0,f=Math.max(d.length,h.length);p<f;p++){if(i=!(d[p]||"").match(u)&&parseFloat(d[p])||d[p]||0,o=!(h[p]||"").match(u)&&parseFloat(h[p])||h[p]||0,isNaN(i)!==isNaN(o))return isNaN(i)?1:-1;if(typeof i!=typeof o&&(i+="",o+=""),i<o)return-1;if(o<i)return 1}return 0}},1346:function(e,t,r){var n=r(7413),i=r(1746),o=r(5633).treeModeMixins,s=r(1948).textModeMixins,a=r(7483).previewModeMixins,l=(p=r(6237)).clear,c=p.extend,u=p.getInnerText,d=p.getInternetExplorerVersion,h=p.parse,p=r(2870).tryRequireAjv,f=r(5609).showTransformModal,m=r(2915).showSortModal,g=p();function y(e,t,r){if(!(this instanceof y))throw new Error('JSONEditor constructor called without "new".');var n=d();if(-1!==n&&n<9)throw new Error("Unsupported browser, IE9 or newer required. Please install the newest version of your browser.");t&&(t.error&&(console.warn('Option "error" has been renamed to "onError"'),t.onError=t.error,delete t.error),t.change&&(console.warn('Option "change" has been renamed to "onChange"'),t.onChange=t.change,delete t.change),t.editable&&(console.warn('Option "editable" has been renamed to "onEditable"'),t.onEditable=t.editable,delete t.editable),t.onChangeJSON&&("text"===t.mode||"code"===t.mode||t.modes&&(-1!==t.modes.indexOf("text")||-1!==t.modes.indexOf("code")))&&console.warn('Option "onChangeJSON" is not applicable to modes "text" and "code". Use "onChangeText" or "onChange" instead.'),t)&&Object.keys(t).forEach(function(e){-1===y.VALID_OPTIONS.indexOf(e)&&console.warn('Unknown option "'+e+'". This option will be ignored')}),arguments.length&&this._create(e,t,r)}"undefined"==typeof Promise&&console.error("Promise undefined. Please load a Promise polyfill in the browser in order to use JSONEditor"),y.modes={},y.prototype.DEBOUNCE_INTERVAL=150,y.VALID_OPTIONS=["ajv","schema","schemaRefs","templates","ace","theme","autocomplete","onChange","onChangeJSON","onChangeText","onExpand","onEditable","onError","onEvent","onModeChange","onNodeName","onValidate","onCreateMenu","onSelectionChange","onTextSelectionChange","onClassName","onFocus","onBlur","colorPicker","onColorPicker","timestampTag","timestampFormat","escapeUnicode","history","search","mode","modes","name","indentation","sortObjectKeys","navigationBar","statusBar","mainMenuBar","languages","language","enableSort","enableTransform","limitDragging","maxVisibleChilds","onValidationError","modalAnchor","popupAnchor","createQuery","executeQuery","queryDescription","allowSchemaSuggestions","showErrorTable"],y.prototype._create=function(e,t,r){this.container=e,this.options=t||{},this.json=r||{},e=this.options.mode||this.options.modes&&this.options.modes[0]||"tree",this.setMode(e)},y.prototype.destroy=function(){},y.prototype.set=function(e){this.json=e},y.prototype.get=function(){return this.json},y.prototype.setText=function(e){this.json=h(e)},y.prototype.getText=function(){return JSON.stringify(this.json)},y.prototype.setName=function(e){this.options||(this.options={}),this.options.name=e},y.prototype.getName=function(){return this.options&&this.options.name},y.prototype.setMode=function(e){if(e!==this.options.mode||!this.create){var t=this.container,r=c({},this.options),n=r.mode,i=y.modes[r.mode=e];if(!i)throw new Error('Unknown mode "'+r.mode+'"');var o="text"===i.data,s=this.getName(),a=this[o?"getText":"get"]();if(this.destroy(),l(this),c(this,i.mixin),this.create(t,r),this.setName(s),this[o?"setText":"set"](a),"function"==typeof i.load)try{i.load.call(this)}catch(e){console.error(e)}if("function"==typeof r.onModeChange&&e!==n)try{r.onModeChange(e,n)}catch(e){console.error(e)}}},y.prototype.getMode=function(){return this.options.mode},y.prototype._onError=function(e){this.options&&"function"==typeof this.options.onError?this.options.onError(e):window.alert(e.toString())},y.prototype.setSchema=function(e,t){if(e){var n;try{this.options.ajv?n=this.options.ajv:((n=g({allErrors:!0,verbose:!0,schemaId:"auto",$data:!0})).addMetaSchema(r(5207)),n.addMetaSchema(r(6801)))}catch(e){console.warn("Failed to create an instance of Ajv, JSON Schema validation is not available. Please use a JSONEditor bundle including Ajv, or pass an instance of Ajv as via the configuration option `ajv`.")}if(n){if(t){for(var i in t)n.removeSchema(i),t[i]&&n.addSchema(t[i],i);this.options.schemaRefs=t}this.validateSchema=n.compile(e),this.options.schema=e,this.options.schemaRefs=t,this.validate()}}else this.validateSchema=null,this.options.schema=null,this.options.schemaRefs=null,this.validate();this.refresh(),"function"==typeof this._onSchemaChange&&this._onSchemaChange(e,t)},y.prototype.validate=function(){},y.prototype.refresh=function(){},(y.registerMode=function(e){var t;if(Array.isArray(e))for(i=0;i<e.length;i++)y.registerMode(e[i]);else{if(!("mode"in e))throw new Error('Property "mode" missing');if(!("mixin"in e))throw new Error('Property "mixin" missing');if(!("data"in e))throw new Error('Property "data" missing');var r=e.mode;if(r in y.modes)throw new Error('Mode "'+r+'" already registered');if("function"!=typeof e.mixin.create)throw new Error('Required function "create" missing on mixin');for(var n=["setMode","registerMode","modes"],i=0;i<n.length;i++)if((t=n[i])in e.mixin)throw new Error('Reserved property "'+t+'" not allowed in mixin');y.modes[r]=e}})(o),y.registerMode(s),y.registerMode(a),y.ace=n,y.Ajv=g,y.VanillaPicker=i,y.showTransformModal=f,y.showSortModal=m,y.getInnerText=u,e.exports=y.default=y},1389:function(e,t,r){r.d(t,{n:function(){return a}});var n=r(6545),i=r(3057);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(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,(e=>(e=(e=>{if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);if("object"!=o(t=t.call(e,"string")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")})(e),"symbol"==o(e)?e:e+""))(n.key),n)}}var a=(()=>{return e=function e(t,r,o,s){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");for(var a={code:{text:(0,i.Tl)("modeCodeText"),title:(0,i.Tl)("modeCodeTitle"),click:function(){s("code")}},form:{text:(0,i.Tl)("modeFormText"),title:(0,i.Tl)("modeFormTitle"),click:function(){s("form")}},text:{text:(0,i.Tl)("modeTextText"),title:(0,i.Tl)("modeTextTitle"),click:function(){s("text")}},tree:{text:(0,i.Tl)("modeTreeText"),title:(0,i.Tl)("modeTreeTitle"),click:function(){s("tree")}},view:{text:(0,i.Tl)("modeViewText"),title:(0,i.Tl)("modeViewTitle"),click:function(){s("view")}},preview:{text:(0,i.Tl)("modePreviewText"),title:(0,i.Tl)("modePreviewTitle"),click:function(){s("preview")}}},l=[],c=0;c<r.length;c++){var u=r[c],d=a[u];if(!d)throw new Error('Unknown mode "'+u+'"');d.className="jsoneditor-type-modes"+(o===u?" jsoneditor-selected":""),l.push(d)}if(!(h=a[o]))throw new Error('Unknown mode "'+o+'"');var h=h.text,p=document.createElement("button");(p.type="button",p.className="jsoneditor-modes jsoneditor-separator",p.textContent=h+" ▾",p.title=(0,i.Tl)("modeEditorTitle"),p.onclick=function(){new n.t(l).show(p,t)},h=document.createElement("div")).className="jsoneditor-modes",h.style.position="relative",h.appendChild(p),t.appendChild(h),this.dom={container:t,box:p,frame:h}},(t=[{key:"focus",value:function(){this.dom.box.focus()}},{key:"destroy",value:function(){this.dom&&this.dom.frame&&this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom=null}}])&&s(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t})()},1678:function(e){e.exports=function(e,t,r){var n,i=" ",o=e.level,s=e.dataLevel,a=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=(t=e.errSchemaPath+"/"+t,!e.opts.allErrors),u=(s="data"+(s||""),"valid"+o),d="errs__"+o,h=e.util.copy(e),p=(h.level++,"valid"+h.level),f=e.schema.then,m=e.schema.else,g=(f=void 0!==f&&(e.opts.strictKeywords?"object"==typeof f&&0<Object.keys(f).length||!1===f:e.util.schemaHasRules(f,e.RULES.all)),m=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&0<Object.keys(m).length||!1===m:e.util.schemaHasRules(m,e.RULES.all)),h.baseId);return f||m?(h.createErrors=!1,h.schema=a,h.schemaPath=l,h.errSchemaPath=t,i+=" var "+d+" = errors; var "+u+" = true; ",a=e.compositeRule,e.compositeRule=h.compositeRule=!0,i+=" "+e.validate(h)+" ",h.baseId=g,h.createErrors=!0,i+=" errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.compositeRule=h.compositeRule=a,f?(i+=" if ("+p+") { ",h.schema=e.schema.then,h.schemaPath=e.schemaPath+".then",h.errSchemaPath=e.errSchemaPath+"/then",i+=" "+e.validate(h)+" ",h.baseId=g,i+=" "+u+" = "+p+"; ",f&&m?i+=" var "+(n="ifClause"+o)+" = 'then'; ":n="'then'",i+=" } ",m&&(i+=" else { ")):i+=" if (!"+p+") { ",m&&(h.schema=e.schema.else,h.schemaPath=e.schemaPath+".else",h.errSchemaPath=e.errSchemaPath+"/else",i+=" "+e.validate(h)+" ",h.baseId=g,i+=" "+u+" = "+p+"; ",f&&m?i+=" var "+(n="ifClause"+o)+" = 'else'; ":n="'else'",i+=" } "),i+=" if (!"+u+") { var err = ",!1!==e.createErrors?(i+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(t)+" , params: { failingKeyword: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should match \"' + "+n+" + '\" schema' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+s+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } ",c&&(i+=" else { ")):c&&(i+=" if (true) { "),i}},1746:function(e,t,r){var n;if(window.Picker)n=window.Picker;else try{n=r(7598)}catch(e){}e.exports=n},1765:function(e){e.exports=function(e,t,r){var n,i,o,s,a,l=" ",c=e.level,u=e.dataLevel,d=e.schema[t],h=e.schemaPath+e.util.getProperty(t),p=e.errSchemaPath+"/"+t,f=!e.opts.allErrors,m="data"+(u||""),g=e.opts.$data&&d&&d.$data,y=g?(l+=" var schema"+c+" = "+e.util.getData(d.$data,u,e.dataPathArr)+"; ","schema"+c):d,v="maximum"==t,b=v?"exclusiveMaximum":"exclusiveMinimum",w=e.schema[b],x=e.opts.$data&&w&&w.$data,A=v?"<":">",C=v?">":"<",S=void 0;if(!g&&"number"!=typeof d&&void 0!==d)throw new Error(t+" must be number");if(!x&&void 0!==w&&"number"!=typeof w&&"boolean"!=typeof w)throw new Error(b+" must be number or boolean");x?(u=e.util.getData(w.$data,u,e.dataPathArr),o="exclIsNumber"+c,s="' + "+(a="op"+c)+" + '",S=b,(I=I||[]).push(l=l+" var schemaExcl"+c+" = "+u+"; var "+(n="exclusive"+c)+"; var "+(i="exclType"+c)+" = typeof "+(u="schemaExcl"+c)+"; if ("+i+" != 'boolean' && "+i+" != 'undefined' && "+i+" != 'number') { "),l="",!1!==e.createErrors?(l+=" { keyword: '"+(S||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: {} ",!1!==e.opts.messages&&(l+=" , message: '"+b+" should be boolean' "),e.opts.verbose&&(l+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),l+=" } "):l+=" {} ",k=l,l=I.pop(),!e.compositeRule&&f?e.async?l+=" throw new ValidationError(["+k+"]); ":l+=" validate.errors = ["+k+"]; return false; ":l+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l+=" } else if ( ",g&&(l+=" ("+y+" !== undefined && typeof "+y+" != 'number') || "),l+=" "+i+" == 'number' ? ( ("+n+" = "+y+" === undefined || "+u+" "+A+"= "+y+") ? "+m+" "+C+"= "+u+" : "+m+" "+C+" "+y+" ) : ( ("+n+" = "+u+" === true) ? "+m+" "+C+"= "+y+" : "+m+" "+C+" "+y+" ) || "+m+" !== "+m+") { var op"+c+" = "+n+" ? '"+A+"' : '"+A+"='; ",void 0===d&&(p=e.errSchemaPath+"/"+(S=b),y=u,g=x)):(s=A,(o="number"==typeof w)&&g?(a="'"+s+"'",l+=" if ( ",g&&(l+=" ("+y+" !== undefined && typeof "+y+" != 'number') || "),l+=" ( "+y+" === undefined || "+w+" "+A+"= "+y+" ? "+m+" "+C+"= "+w+" : "+m+" "+C+" "+y+" ) || "+m+" !== "+m+") { "):(o&&void 0===d?(n=!0,p=e.errSchemaPath+"/"+(S=b),y=w,C+="="):(o&&(y=Math[v?"min":"max"](w,d)),w===(!o||y)?(n=!0,p=e.errSchemaPath+"/"+(S=b),C+="="):(n=!1,s+="=")),a="'"+s+"'",l+=" if ( ",g&&(l+=" ("+y+" !== undefined && typeof "+y+" != 'number') || "),l+=" "+m+" "+C+" "+y+" || "+m+" !== "+m+") { ")),S=S||t,(I=I||[]).push(l),l="",!1!==e.createErrors?(l+=" { keyword: '"+(S||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { comparison: "+a+", limit: "+y+", exclusive: "+n+" } ",!1!==e.opts.messages&&(l=l+" , message: 'should be "+s+" "+(g?"' + "+y:y+"'")),e.opts.verbose&&(l=(l+=" , schema: ")+(g?"validate.schema"+h:""+d)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),l+=" } "):l+=" {} ";var I,k=l;return l=I.pop(),!e.compositeRule&&f?e.async?l+=" throw new ValidationError(["+k+"]); ":l+=" validate.errors = ["+k+"]; return false; ":l+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l+=" } ",f&&(l+=" else { "),l}},1925:function(e,t,r){r.d(t,{p:function(){return i}});var n=r(6237);function i(e,t,r){var i,o=3<arguments.length&&void 0!==arguments[3]&&arguments[3],s="function"==typeof(l=e).getRootNode?l.getRootNode():window,a={},l=e.getBoundingClientRect(),c=t.getBoundingClientRect(),u=document.createElement("div");function d(){if(u&&u.parentNode){for(var t in u.parentNode.removeChild(u),a)i=t,Object.prototype.hasOwnProperty.call(a,i)&&((i=a[t])&&(0,n.removeEventListener)(s,t,i),delete a[t]);"function"==typeof r&&r(e)}var i}function h(e){(e=e.target)===u||(0,n.isChildOf)(e,u)||d()}return u.className="jsoneditor-anchor",u.style.position="absolute",u.style.left=l.left-c.left+"px",u.style.top=l.top-c.top+"px",u.style.width=l.width-2+"px",u.style.height=l.height-2+"px",u.style.boxSizing="border-box",t.appendChild(u),a.mousedown=(0,n.addEventListener)(s,"mousedown",h),a.mousewheel=(0,n.addEventListener)(s,"mousewheel",h),o&&(i=null,u.onmouseover=function(){clearTimeout(i),i=null},u.onmouseout=function(){i=i||setTimeout(d,200)}),u.destroy=d,u}},1948:function(e,t,r){r.r(t),r.d(t,{textModeMixins:function(){return A}});var n=r(9857),i=(t=r(7413),r.n(t)),o=r(660),s=r(2115),a=r(2877),l=r(3057),c=r(359),u=r(1389),d=r(2915),h=r(5609),p=r(5467),f=r(3094),m=r(6237);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(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,(e=>(e=(e=>{if("object"!=g(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);if("object"!=g(t=t.call(e,"string")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")})(e),"symbol"==g(e)?e:e+""))(n.key),n)}}var v=(()=>{return e=function e(t,r){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.schema=t,this.schemaRefs=r||{},this.suggestions={},this.suggestionsRefs={},this._buildSuggestions()},(t=[{key:"_buildSuggestions",value:function(){for(var e in this._handleSchemaEntry("",this.schema,this.suggestions),this.schemaRefs)this.suggestionsRefs[e]={},this._handleSchemaEntry("",this.schemaRefs[e],this.suggestionsRefs[e])}},{key:"_handleRef",value:function(e,t,r){r[e]=r[e]||{},r[e].refs=r[e].refs||[],r[e].refs=(0,m.uniqueMergeArrays)(r[e].refs,[t])}},{key:"_handleSchemaEntry",value:function(e,t,r){if(t)if(t.$ref)this._handleRef(e,t.$ref,r);else{var n=this._checkOfConditon(t);if(n)this._handleOfCondition(e,t[n],r);else switch(t.type){case"object":this._handleObject(e,t,r);break;case"string":case"number":case"integer":this._handlePrimitive(e,t,r);break;case"boolean":this._handleBoolean(e,t,r);break;case"array":this._handleArray(e,t,r)}}else console.error("SchemaTextCompleter: schema node is missing for path",e)}},{key:"_handleObject",value:function(e,t,r){var n,i=this;(0,m.isObject)(t.properties)&&(n=Object.keys(t.properties),r[e]=r[e]||{},r[e].props=r[e].props||[],r[e].props=(0,m.uniqueMergeArrays)(r[e].props,n),n.forEach(function(n){(0,m.asyncExec)(function(){i._handleSchemaEntry("".concat(e,"/").concat(n),t.properties[n],r)})}))}},{key:"_handlePrimitive",value:function(e,t,r){r[e]=r[e]||{},(0,m.isArray)(t.examples)&&(r[e].examples=r[e].examples||[],r[e].examples=(0,m.uniqueMergeArrays)(r[e].examples,t.examples)),(0,m.isArray)(t.enum)&&(r[e].enum=r[e].enum||[],r[e].enum=(0,m.uniqueMergeArrays)(r[e].enum,t.enum))}},{key:"_handleBoolean",value:function(e,t,r){r[e]||(r[e]={bool:[!0,!1]})}},{key:"_handleArray",value:function(e,t,r){var n=this;t.items&&(0,m.asyncExec)(function(){n._handleSchemaEntry("".concat(e,"/\\d+"),t.items,r)})}},{key:"_handleOfCondition",value:function(e,t,r){var n=this;t&&t.length&&t.forEach(function(t){(0,m.asyncExec)(function(){n._handleSchemaEntry(e,t,r)})})}},{key:"_checkOfConditon",value:function(e){if(e)return e.oneOf?"oneOf":e.anyOf?"anyOf":e.allOf?"allOf":void 0}},{key:"getCompletions",value:function(e,t,r,n,i){var o=this;try{var s=f.parse(t.getValue()).pointers||{};Object.keys(s).forEach(function(e){(0,m.asyncExec)(function(){var t,n;(null==(n=s[e].key)?void 0:n.line)===r.row&&r.column>=s[e].key.column&&r.column<=s[e].keyEnd.column&&(t=e.slice(0,e.lastIndexOf("/"))),(t=(null==(n=s[e].value)?void 0:n.line)===r.row&&(null==(n=s[e].value)?void 0:n.line)===(null==(n=s[e].valueEnd)?void 0:n.line)&&r.column>=s[e].value.column&&r.column<=s[e].valueEnd.column?e:t)&&(n=function e(t,r,n){var i,s=Object.keys(r).reduce(function(e,r){return new RegExp("^".concat(n).concat(r)).test(t)&&(!e||e.length<r.length)?r:e},null);if("string"==typeof s){if(null!=(i=r[s])&&null!=(i=i.refs)&&i.length){var a,l={};for(a in r[s].refs){var c=r[s].refs[a];o.suggestionsRefs[c]&&(null!=(c=e(t,o.suggestionsRefs[c],"".concat(n).concat(s)))&&c.enum&&(l.enum=(0,m.uniqueMergeArrays)(l.enum,c.enum)),null!=c&&c.examples&&(l.examples=(0,m.uniqueMergeArrays)(l.examples,c.examples)),null!=c&&c.bool&&(l.bool=(0,m.uniqueMergeArrays)(l.bool,c.bool)),null!=c)&&c.props&&(l.props=(0,m.uniqueMergeArrays)(l.props,c.props))}return l}if(new RegExp("^".concat(n).concat(s,"$")).test(t))return r[s]}}(t,o.suggestions,""),function(e){function t(t){var i,o={props:"property",enum:"enum",bool:"boolean",examples:"examples"};e&&null!=(i=e[t])&&i.length&&(r=r.concat(e[t].map(function(e){return{caption:e+"",meta:"schema [".concat(o[t],"]"),score:n++,value:e+""}})))}var r=[],n=0;t("props"),t("enum"),t("bool"),t("examples"),r.length&&i(null,r)}(n))})})}catch(e){}}}])&&y(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t})();function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var w="ace/theme/jsoneditor";function x(){try{this.format()}catch(e){}}(t={}).create=function(e){var t,r,n,o=this,d=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},h=(void 0===d.statusBar&&(d.statusBar=!0),d.mainMenuBar=!1!==d.mainMenuBar,d.enableSort=!1!==d.enableSort,d.enableTransform=!1!==d.enableTransform,d.createQuery=d.createQuery||c.V,d.executeQuery=d.executeQuery||c.e,d.showErrorTable=void 0!==d.showErrorTable?d.showErrorTable:["text","preview"],this.options=d,this.indentation="number"==typeof d.indentation?Number(d.indentation):2,(0,l.AI)(this.options.languages),(0,l.xC)(this.options.language),d.ace||i()),f=(this.mode="code"===d.mode?"code":"text","code"===this.mode&&void 0===h&&(this.mode="text",console.warn("Failed to load Ace editor, falling back to plain text mode. Please use a JSONEditor bundle including Ace, or pass Ace as via the configuration option `ace`.")),this.theme=d.theme||w,this.theme===w&&h&&(0,p.J)(),d.onTextSelectionChange&&this.onTextSelectionChange(d.onTextSelectionChange),this);this.container=e,this.dom={},this.aceEditor=void 0,this.textarea=void 0,this.validateSchema=null,this.annotations=[],this.lastSchemaErrors=void 0,this._debouncedValidate=(0,m.debounce)(this._validateAndCatch.bind(this),this.DEBOUNCE_INTERVAL),this.width=e.clientWidth,this.height=e.clientHeight,this.frame=document.createElement("div"),this.frame.className="jsoneditor jsoneditor-mode-"+this.options.mode,this.frame.onclick=function(e){e.preventDefault()},this.frame.onkeydown=function(e){f._onKeyDown(e)},e={target:this.frame,onFocus:this.options.onFocus||null,onBlur:this.options.onBlur||null},this.frameFocusTracker=new a.$(e),this.content=document.createElement("div"),this.content.className="jsoneditor-outer",this.options.mainMenuBar&&((0,m.addClassName)(this.content,"has-main-menu-bar"),this.menu=document.createElement("div"),this.menu.className="jsoneditor-menu",this.frame.appendChild(this.menu),(e=document.createElement("button")).type="button",e.className="jsoneditor-format",e.title=(0,l.Tl)("formatTitle"),this.menu.appendChild(e),e.onclick=function(){try{f.format(),f._onChange()}catch(e){f._onError(e)}},(e=document.createElement("button")).type="button",e.className="jsoneditor-compact",e.title=(0,l.Tl)("compactTitle"),this.menu.appendChild(e),e.onclick=function(){try{f.compact(),f._onChange()}catch(e){f._onError(e)}},this.options.enableSort&&((e=document.createElement("button")).type="button",e.className="jsoneditor-sort",e.title=(0,l.Tl)("sortTitleShort"),e.onclick=function(){f._showSortModal()},this.menu.appendChild(e)),this.options.enableTransform&&((e=document.createElement("button")).type="button",e.title=(0,l.Tl)("transformTitleShort"),e.className="jsoneditor-transform",e.onclick=function(){f._showTransformModal()},this.menu.appendChild(e)),(e=document.createElement("button")).type="button",e.className="jsoneditor-repair",e.title=(0,l.Tl)("repairTitle"),this.menu.appendChild(e),e.onclick=function(){try{f.repair(),f._onChange()}catch(e){f._onError(e)}},"code"===this.mode&&((e=document.createElement("button")).type="button",e.className="jsoneditor-undo jsoneditor-separator",e.title=(0,l.Tl)("undo"),e.onclick=function(){o.aceEditor.getSession().getUndoManager().undo()},this.menu.appendChild(e),this.dom.undo=e,(e=document.createElement("button")).type="button",e.className="jsoneditor-redo",e.title=(0,l.Tl)("redo"),e.onclick=function(){o.aceEditor.getSession().getUndoManager().redo()},this.menu.appendChild(e),this.dom.redo=e),this.options&&this.options.modes&&this.options.modes.length&&(this.modeSwitcher=new u.n(this.menu,this.options.modes,this.options.mode,function(e){try{f.setMode(e),f.modeSwitcher.focus()}catch(e){f._onError(e)}})),"code"===this.mode)&&((t=document.createElement("a")).appendChild(document.createTextNode("powered by ace")),t.href="https://ace.c9.io/",t.target="_blank",t.className="jsoneditor-poweredBy",t.onclick=function(){window.open(t.href,t.target,"noreferrer")},this.menu.appendChild(t)),e=this.options.onEditable&&b("function"===this.options.onEditable)&&!this.options.onEditable({}),this.frame.appendChild(this.content),this.container.appendChild(this.frame),"code"===this.mode?(this.editorDom=document.createElement("div"),this.editorDom.style.height="100%",this.editorDom.style.width="100%",this.content.appendChild(this.editorDom),n=(h=h.edit(this.editorDom)).getSession(),h.$blockScrolling=1/0,h.setTheme(this.theme),h.setOptions({readOnly:e}),h.setShowPrintMargin(!1),h.setFontSize("14px"),n.setMode("ace/mode/json"),n.setTabSize(this.indentation),n.setUseSoftTabs(!0),n.setUseWrapMode(!0),r=n.setAnnotations,n.setAnnotations=function(e){r.call(this,e&&e.length?e:f.annotations)},h.commands.bindKey("Ctrl-L",null),h.commands.bindKey("Command-L",null),h.commands.bindKey("Ctrl-\\",null),h.commands.bindKey("Command-\\",null),h.commands.bindKey("Ctrl-Shift-\\",null),h.commands.bindKey("Command-Shift-\\",null),(this.aceEditor=h).on("change",this._onChange.bind(this)),h.on("changeSelection",this._onSelect.bind(this))):((n=document.createElement("textarea")).className="jsoneditor-text",n.spellcheck=!1,this.content.appendChild(n),this.textarea=n,this.textarea.readOnly=e,null===this.textarea.oninput?this.textarea.oninput=this._onChange.bind(this):this.textarea.onchange=this._onChange.bind(this),n.onselect=this._onSelect.bind(this),n.onmousedown=this._onMouseDown.bind(this),n.onblur=this._onBlur.bind(this)),this._updateHistoryButtons(),h=Array.isArray(this.options.showErrorTable)?this.options.showErrorTable.includes(this.mode):!0===this.options.showErrorTable,this.errorTable=new s.N({errorTableVisible:h,onToggleVisibility:function(){f._validateAndCatch()},onFocusLine:function(e){f.isFocused=!0,isNaN(e)||f.setTextSelection({row:e,column:1},{row:e,column:1e3})},onChangeHeight:function(e){e=e+(f.dom.statusBar?f.dom.statusBar.clientHeight:0)+1,f.content.style.marginBottom=-e+"px",f.content.style.paddingBottom=e+"px"}}),this.frame.appendChild(this.errorTable.getErrorTable()),d.statusBar&&((0,m.addClassName)(this.content,"has-status-bar"),this.curserInfoElements={},e=document.createElement("div"),(this.dom.statusBar=e).className="jsoneditor-statusbar",this.frame.appendChild(e),(n=document.createElement("span")).className="jsoneditor-curserinfo-label",n.innerText="Ln:",(h=document.createElement("span")).className="jsoneditor-curserinfo-val",h.innerText="1",e.appendChild(n),e.appendChild(h),(d=document.createElement("span")).className="jsoneditor-curserinfo-label",d.innerText="Col:",(n=document.createElement("span")).className="jsoneditor-curserinfo-val",n.innerText="1",e.appendChild(d),e.appendChild(n),this.curserInfoElements.colVal=n,this.curserInfoElements.lnVal=h,(d=document.createElement("span")).className="jsoneditor-curserinfo-label",d.innerText="characters selected",d.style.display="none",(n=document.createElement("span")).className="jsoneditor-curserinfo-count",n.innerText="0",n.style.display="none",this.curserInfoElements.countLabel=d,this.curserInfoElements.countVal=n,e.appendChild(n),e.appendChild(d),e.appendChild(this.errorTable.getErrorCounter()),e.appendChild(this.errorTable.getWarningIcon()),e.appendChild(this.errorTable.getErrorIcon())),this.setSchema(this.options.schema,this.options.schemaRefs)},t._onSchemaChange=function(e,t){this.aceEditor&&(this.options.allowSchemaSuggestions&&e?(this.aceEditor.setOption("enableBasicAutocompletion",[new v(e,t)]),this.aceEditor.setOption("enableLiveAutocompletion",!0)):(this.aceEditor.setOption("enableBasicAutocompletion",void 0),this.aceEditor.setOption("enableLiveAutocompletion",!1)))},t._onChange=function(){var e=this;if(!this.onChangeDisabled){if(setTimeout(function(){e._updateHistoryButtons&&e._updateHistoryButtons()}),this._debouncedValidate(),this.options.onChange)try{this.options.onChange()}catch(e){console.error("Error in onChange callback: ",e)}if(this.options.onChangeText)try{this.options.onChangeText(this.getText())}catch(e){console.error("Error in onChangeText callback: ",e)}}},t._updateHistoryButtons=function(){var e;this.aceEditor&&this.dom.undo&&this.dom.redo&&(e=this.aceEditor.getSession().getUndoManager())&&e.hasUndo&&e.hasRedo&&(this.dom.undo.disabled=!e.hasUndo(),this.dom.redo.disabled=!e.hasRedo())},t._showSortModal=function(){try{var e=this,t=this.options.modalAnchor||o.ai,r=this.get();(0,d.showSortModal)(t,r,function(t){var n;Array.isArray(r)&&(n=(0,m.sort)(r,t.path,t.direction),e.sortedBy=t,e.update(n)),(0,m.isObject)(r)&&(n=(0,m.sortObjectKeys)(r,t.direction),e.sortedBy=t,e.update(n))},e.sortedBy)}catch(t){this._onError(t)}},t._showTransformModal=function(){var e=this;try{var t=this.options,r=t.modalAnchor,n=t.createQuery,i=t.executeQuery,s=t.queryDescription,a=this.get();(0,h.showTransformModal)({container:r||o.ai,json:a,queryDescription:s,createQuery:n,executeQuery:i,onTransform:function(t){t=i(a,t),e.update(t)}})}catch(t){this._onError(t)}},t._onSelect=function(){this._updateCursorInfo(),this._emitSelectionChange()},t._onKeyDown=function(e){var t=!1;73===(e.which||e.keyCode)&&e.ctrlKey&&(e.shiftKey?this.compact():this.format(),this._onChange(),t=!0),t&&(e.preventDefault(),e.stopPropagation()),this._updateCursorInfo(),this._emitSelectionChange()},t._onMouseDown=function(){this._updateCursorInfo(),this._emitSelectionChange()},t._onBlur=function(){var e=this;setTimeout(function(){e.isFocused||(e._updateCursorInfo(),e._emitSelectionChange()),e.isFocused=!1})},t._updateCursorInfo=function(){var e,t,r,n,i,o=this;function s(){o.curserInfoElements.countVal.innerText!==i&&(o.curserInfoElements.countVal.innerText=i,o.curserInfoElements.countVal.style.display=i?"inline":"none",o.curserInfoElements.countLabel.style.display=i?"inline":"none"),o.curserInfoElements.lnVal.innerText=r,o.curserInfoElements.colVal.innerText=n}this.textarea?setTimeout(function(){var e=(0,m.getInputSelection)(o.textarea);e.startIndex!==e.endIndex&&(i=e.endIndex-e.startIndex),n=(i&&o.cursorInfo&&o.cursorInfo.line===e.end.row&&o.cursorInfo.column===e.end.column?(r=e.start.row,e.start):(r=e.end.row,e.end)).column,o.cursorInfo={line:r,column:n,count:i},o.options.statusBar&&s()},0):this.aceEditor&&this.curserInfoElements&&(e=this.aceEditor.getCursorPosition(),t=this.aceEditor.getSelectedText(),r=e.row+1,n=e.column+1,i=t.length,o.cursorInfo={line:r,column:n,count:i},this.options.statusBar)&&s()},t._emitSelectionChange=function(){var e;this._selectionChangedHandler&&(e=this.getTextSelection(),this._selectionChangedHandler(e.start,e.end,e.text))},t._refreshAnnotations=function(){var e,t=this.aceEditor&&this.aceEditor.getSession();t&&(e=t.getAnnotations().filter(function(e){return"error"===e.type}),t.setAnnotations(e))},t.destroy=function(){this.aceEditor&&(this.aceEditor.destroy(),this.aceEditor=null),this.frame&&this.container&&this.frame.parentNode===this.container&&this.container.removeChild(this.frame),this.modeSwitcher&&(this.modeSwitcher.destroy(),this.modeSwitcher=null),this.textarea=null,this._debouncedValidate=null,this.frameFocusTracker.destroy()},t.compact=function(){var e=this.get();e=JSON.stringify(e),this.updateText(e)},t.format=function(){var e=this.get();e=JSON.stringify(e,null,this.indentation),this.updateText(e)},t.repair=function(){var e=this.getText();try{var t=(0,n.m)(e);this.updateText(t)}catch(e){}},t.focus=function(){this.textarea&&this.textarea.focus(),this.aceEditor&&this.aceEditor.focus()},t.resize=function(){this.aceEditor&&this.aceEditor.resize(!1)},t.set=function(e){this.setText(JSON.stringify(e,null,this.indentation))},t.update=function(e){this.updateText(JSON.stringify(e,null,this.indentation))},t.get=function(){var e=this.getText();return(0,m.parse)(e)},t.getText=function(){return this.textarea?this.textarea.value:this.aceEditor?this.aceEditor.getValue():""},t._setText=function(e,t){var r,n=this;e=!0===this.options.escapeUnicode?(0,m.escapeUnicodeChars)(e):e,this.textarea&&(this.textarea.value=e),this.aceEditor&&(this.onChangeDisabled=!0,this.aceEditor.setValue(e,-1),this.onChangeDisabled=!1,t&&(r=this,setTimeout(function(){r.aceEditor&&r.aceEditor.session.getUndoManager().reset()})),setTimeout(function(){n._updateHistoryButtons&&n._updateHistoryButtons()})),this._debouncedValidate()},t.setText=function(e){this._setText(e,!0)},t.updateText=function(e){this.getText()!==e&&this._setText(e,!1)},t.validate=function(){var e,t=this,r=[],n=[];try{var i=this.get(),o=(this.validateSchema&&!this.validateSchema(i)&&(r=this.validateSchema.errors.map(function(e){return e.type="validation",(0,m.improveSchemaError)(e)})),this.validationSequence=(this.validationSequence||0)+1,this),s=this.validationSequence;return((e,t)=>{if(!t)return Promise.resolve([]);try{var r=t(e);return((0,m.isPromise)(r)?r:Promise.resolve(r)).then(function(e){return Array.isArray(e)?e.filter(function(e){var t=(0,m.isValidValidationError)(e);return t||console.warn('Ignoring a custom validation error with invalid structure. Expected structure: {path: [...], message: "..."}. Actual error:',e),t}).map(function(e){return{dataPath:(0,m.stringifyPath)(e.path),message:e.message,type:"customValidation"}}):[]})}catch(e){return Promise.reject(e)}})(i,this.options.onValidate).then(function(e){return s===o.validationSequence&&(e=r.concat(n).concat(e),o._renderErrors(e),"function"==typeof t.options.onValidationError&&(0,m.isValidationErrorChanged)(e,t.lastSchemaErrors)&&t.options.onValidationError.call(t,e),t.lastSchemaErrors=e),t.lastSchemaErrors})}catch(t){return this.getText()&&((i=/\w*line\s*(\d+)\w*/g.exec(t.message))&&(e=+i[1]),n=[{type:"error",message:t.message.replace(/\n/g,"<br>"),line:e}]),this._renderErrors(n),"function"==typeof this.options.onValidationError&&(0,m.isValidationErrorChanged)(n,this.lastSchemaErrors)&&this.options.onValidationError.call(this,n),this.lastSchemaErrors=n,Promise.resolve(this.lastSchemaErrors)}},t._validateAndCatch=function(){this.validate().catch(function(e){console.error("Error running validation:",e)})},t._renderErrors=function(e){var t=this.getText(),r=[];e.reduce(function(e,t){return"string"==typeof t.dataPath&&-1===e.indexOf(t.dataPath)&&e.push(t.dataPath),e},r),t=(0,m.getPositionForPath)(t,r),this.aceEditor&&(this.annotations=t.map(function(t){var r=e.filter(function(e){return e.dataPath===t.path}),n=r.map(function(e){return e.message}).join("\n");return n?{row:t.line,column:t.column,text:"Schema validation error"+(1!==r.length?"s":"")+": \n"+n,type:"warning",source:"jsoneditor"}:{}}),this._refreshAnnotations()),this.errorTable.setErrors(e,t),this.aceEditor&&this.aceEditor.resize(!1)},t.getTextSelection=function(){var e,t,r,n={};return this.textarea?(r=(0,m.getInputSelection)(this.textarea),this.cursorInfo&&this.cursorInfo.line===r.end.row&&this.cursorInfo.column===r.end.column?(n.start=r.end,n.end=r.start):n=r,{start:n.start,end:n.end,text:this.textarea.value.substring(r.startIndex,r.endIndex)}):this.aceEditor?(r=this.aceEditor.getSelection(),e=this.aceEditor.getSelectedText(),t=r.getRange(),(r=r.getSelectionLead()).row===t.end.row&&r.column===t.end.column?n=t:(n.start=t.end,n.end=t.start),{start:{row:n.start.row+1,column:n.start.column+1},end:{row:n.end.row+1,column:n.end.column+1},text:e}):void 0},t.onTextSelectionChange=function(e){"function"==typeof e&&(this._selectionChangedHandler=(0,m.debounce)(e,this.DEBOUNCE_INTERVAL))},t.setTextSelection=function(e,t){var r,n,i;e&&t&&(this.textarea?(r=(0,m.getIndexForPosition)(this.textarea,e.row,e.column),i=(0,m.getIndexForPosition)(this.textarea,t.row,t.column),-1<r&&-1<i&&(this.textarea.setSelectionRange?(this.textarea.focus(),this.textarea.setSelectionRange(r,i)):this.textarea.createTextRange&&((n=this.textarea.createTextRange()).collapse(!0),n.moveEnd("character",i),n.moveStart("character",r),n.select()),i=(this.textarea.value.match(/\n/g)||[]).length+1,r=this.textarea.scrollHeight/i,n=e.row*r,this.textarea.scrollTop=n>this.textarea.clientHeight?n-this.textarea.clientHeight/2:0)):this.aceEditor&&(i={start:{row:e.row-1,column:e.column-1},end:{row:t.row-1,column:t.column-1}},this.aceEditor.selection.setRange(i),this.aceEditor.scrollToLine(e.row-1,!0)))};var A=[{mode:"text",mixin:t,data:"text",load:x},{mode:"code",mixin:t,data:"text",load:x}]},2e3:function(e){e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=(t=!e.opts.allErrors,"data"+(o||"")),u="valid"+i,d=e.opts.$data&&s&&s.$data;if(d&&(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; "),o="schema"+i,!d)if(s.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var h=[],p=s;if(p)for(var f=-1,m=p.length-1;f<m;){var g=p[f+=1],y=e.schema.properties[g];y&&(e.opts.strictKeywords?"object"==typeof y&&0<Object.keys(y).length||!1===y:e.util.schemaHasRules(y,e.RULES.all))||(h[h.length]=g)}}else h=s;if(d||h.length){var v=e.errorPath,b=(s=d||h.length>=e.opts.loopRequired,e.opts.ownProperties);if(t){if(n+=" var missing"+i+"; ",s){d||(n+=" var "+o+" = validate.schema"+a+"; ");var w="' + "+(k="schema"+i+"["+(S="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(v,k,e.opts.jsonPointers)),n+=" var "+u+" = true; ",d&&(n+=" if (schema"+i+" === undefined) "+u+" = true; else if (!Array.isArray(schema"+i+")) "+u+" = false; else {"),n+=" for (var "+S+" = 0; "+S+" < "+o+".length; "+S+"++) { "+u+" = "+c+"["+o+"["+S+"]] !== undefined ",b&&(n+=" && Object.prototype.hasOwnProperty.call("+c+", "+o+"["+S+"]) "),n+="; if (!"+u+") break; } ",d&&(n+=" } "),(A=A||[]).push(n+=" if (!"+u+") { "),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+w+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+w+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ";var x=n;n=A.pop()}else{n+=" if ( ";var A,C=h;if(C)for(var S=-1,I=C.length-1;S<I;)T=C[S+=1],S&&(n+=" || "),n+=" ( ( "+(O=c+(R=e.util.getProperty(T)))+" === undefined ",b&&(n+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(T)+"') "),n+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?T:R)+") ) ";n+=") { ",w="' + "+(k="missing"+i)+" + '",e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(v,k,!0):v+" + "+k),(A=A||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+w+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+w+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ",x=n,n=A.pop()}!e.compositeRule&&t?e.async?n+=" throw new ValidationError(["+x+"]); ":n+=" validate.errors = ["+x+"]; return false; ":n+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(s){var k;d||(n+=" var "+o+" = validate.schema"+a+"; "),w="' + "+(k="schema"+i+"["+(S="i"+i)+"]")+" + '",e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(v,k,e.opts.jsonPointers)),d&&(n+=" if ("+o+" && !Array.isArray("+o+")) { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+w+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+w+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+o+" !== undefined) { "),n+=" for (var "+S+" = 0; "+S+" < "+o+".length; "+S+"++) { if ("+c+"["+o+"["+S+"]] === undefined ",b&&(n+=" || ! Object.prototype.hasOwnProperty.call("+c+", "+o+"["+S+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+w+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+w+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",d&&(n+=" } ")}else{var E=h;if(E)for(var T,$=-1,_=E.length-1;$<_;){T=E[$+=1];var R=e.util.getProperty(T),O=(w=e.util.escapeQuotes(T),c+R);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(v,T,e.opts.jsonPointers)),n+=" if ( "+O+" === undefined ",b&&(n+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(T)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+w+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+w+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=v}else t&&(n+=" if (true) {");return n}},2079:function(e){e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=(t=e.errSchemaPath+"/"+t,!e.opts.allErrors),c="data"+(o||""),u=e.opts.$data&&s&&s.$data,d=(o=u?(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ","schema"+i):s,i=u?"(new RegExp("+o+"))":e.usePattern(s),n+="if ( ",u&&(n+=" ("+o+" !== undefined && typeof "+o+" != 'string') || "),[]);return d.push(n+=" !"+i+".test("+c+") ) { "),n="",!1!==e.createErrors?(n=(n+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(t)+" , params: { pattern: ")+(u?""+o:""+e.util.toQuotedString(s))+" } ",!1!==e.opts.messages&&(n=(n+=" , message: 'should match pattern \"")+(u?"' + "+o+" + '":""+e.util.escapeQuotes(s))+"\"' "),e.opts.verbose&&(n=(n=(n+=" , schema: ")+(u?"validate.schema"+a:""+e.util.toQuotedString(s)))+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ",i=n,n=d.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+i+"]); ":n+=" validate.errors = ["+i+"]; return false; ":n+=" var err = "+i+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",l&&(n+=" else { "),n}},2084:function(e,t,r){var n=r(6862),i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31],s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,a=(r=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i),l=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,c=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,u=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,d=/^(?:\/(?:[^~/]|~0|~1)*)*$/,h=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,p=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function f(e){return n.copy(f[e="full"==e?"full":"fast"])}function m(e){var t,r;return!!(e=e.match(i))&&(t=+e[1],r=+e[3],1<=(e=+e[2]))&&e<=12&&1<=r&&r<=(2!=e||(r=t)%4!=0||r%100==0&&r%400!=0?o[e]:29)}function g(e,t){var r,n,i;return!!(e=e.match(s))&&(r=e[1],n=e[2],i=e[3],r<=23&&n<=59&&i<=59||23==r&&59==n&&60==i)&&(!t||e[5])}(e.exports=f).fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":l,url:c,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:r,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:u,"json-pointer":d,"json-pointer-uri-fragment":h,"relative-json-pointer":p},f.full={date:m,time:g,"date-time":function(e){return 2==(e=e.split(y)).length&&m(e[0])&&g(e[1],!0)},uri:function(e){return v.test(e)&&a.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":l,url:c,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:r,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:u,"json-pointer":d,"json-pointer-uri-fragment":h,"relative-json-pointer":p};var y=/t|\s/i,v=/\/|:/,b=/[^\\]\\Z/;function w(e){if(b.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},2115:function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(e=>(e=(e=>{if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);if("object"!=n(t=t.call(e,"string")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")})(e),"symbol"==n(e)?e:e+""))(i.key),i)}}r.d(t,{N:function(){return o}});var o=(()=>{return e=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var r;this.errorTableVisible=t.errorTableVisible,this.onToggleVisibility=t.onToggleVisibility,this.onFocusLine=t.onFocusLine||function(){},this.onChangeHeight=t.onChangeHeight,this.dom={},((t=document.createElement("div")).className="jsoneditor-validation-errors-container",this.dom.validationErrorsContainer=t,r=document.createElement("div")).style.display="none",r.className="jsoneditor-additional-errors fadein",r.textContent="Scroll for more ▿",this.dom.additionalErrorsIndication=r,t.appendChild(r),((t=document.createElement("span")).className="jsoneditor-validation-error-icon",t.style.display="none",this.dom.validationErrorIcon=t,r=document.createElement("span")).className="jsoneditor-validation-error-count",r.style.display="none",this.dom.validationErrorCount=r,this.dom.parseErrorIndication=document.createElement("span"),this.dom.parseErrorIndication.className="jsoneditor-parse-error-icon",this.dom.parseErrorIndication.style.display="none"},(t=[{key:"getErrorTable",value:function(){return this.dom.validationErrorsContainer}},{key:"getErrorCounter",value:function(){return this.dom.validationErrorCount}},{key:"getWarningIcon",value:function(){return this.dom.validationErrorIcon}},{key:"getErrorIcon",value:function(){return this.dom.parseErrorIndication}},{key:"toggleTableVisibility",value:function(){this.errorTableVisible=!this.errorTableVisible,this.onToggleVisibility(this.errorTableVisible)}},{key:"setErrors",value:function(e,t){var r,n,i=this,o=(this.dom.validationErrors&&(this.dom.validationErrors.parentNode.removeChild(this.dom.validationErrors),this.dom.validationErrors=null,this.dom.additionalErrorsIndication.style.display="none"),this.errorTableVisible&&0<e.length?((o=document.createElement("div")).className="jsoneditor-validation-errors",(n=document.createElement("table")).className="jsoneditor-text-errors",o.appendChild(n),r=document.createElement("tbody"),n.appendChild(r),e.forEach(function(e){isNaN(e.line)?e.dataPath&&(s=t.find(function(t){return t.path===e.dataPath}))&&(n=s.line+1):n=e.line;var n,o,s=document.createElement("tr"),a=(s.className=isNaN(n)?"":"jump-to-line","error"===e.type?s.className+=" parse-error":s.className+=" validation-error",document.createElement("td"));((o=document.createElement("button")).className="jsoneditor-schema-error",a.appendChild(o),s.appendChild(a),o=document.createElement("td")).style="white-space: nowrap;",o.textContent=isNaN(n)?"":"Ln "+n,s.appendChild(o),"string"==typeof e?((a=document.createElement("td")).colSpan=2,(o=document.createElement("pre")).appendChild(document.createTextNode(e)),a.appendChild(o),s.appendChild(a)):((o=document.createElement("td")).appendChild(document.createTextNode(e.dataPath||"")),s.appendChild(o),a=document.createElement("td"),(o=document.createElement("pre")).appendChild(document.createTextNode(e.message.replace(/<br>/gi,"\n"))),a.appendChild(o),s.appendChild(a)),s.onclick=function(){i.onFocusLine(n)},r.appendChild(s)}),this.dom.validationErrors=o,this.dom.validationErrorsContainer.appendChild(o),this.dom.additionalErrorsIndication.title=e.length+" errors total",this.dom.validationErrorsContainer.clientHeight<this.dom.validationErrorsContainer.scrollHeight?(this.dom.additionalErrorsIndication.style.display="block",this.dom.validationErrorsContainer.onscroll=function(){i.dom.additionalErrorsIndication.style.display=0<i.dom.validationErrorsContainer.clientHeight&&0===i.dom.validationErrorsContainer.scrollTop?"block":"none"}):this.dom.validationErrorsContainer.onscroll=void 0,n=this.dom.validationErrorsContainer.clientHeight+(this.dom.statusBar?this.dom.statusBar.clientHeight:0),this.onChangeHeight(n)):this.onChangeHeight(0),e.filter(function(e){return"error"!==e.type}).length);0<o?(this.dom.validationErrorCount.style.display="inline",this.dom.validationErrorCount.innerText=o,this.dom.validationErrorCount.onclick=this.toggleTableVisibility.bind(this),this.dom.validationErrorIcon.style.display="inline",this.dom.validationErrorIcon.title=o+" schema validation error(s) found",this.dom.validationErrorIcon.onclick=this.toggleTableVisibility.bind(this)):(this.dom.validationErrorCount.style.display="none",this.dom.validationErrorIcon.style.display="none"),e.some(function(e){return"error"===e.type})?(n=e[0].line,this.dom.parseErrorIndication.style.display="block",this.dom.parseErrorIndication.title=isNaN(n)?"parse error - check that the json is valid":"parse error on line "+n,this.dom.parseErrorIndication.onclick=this.toggleTableVisibility.bind(this)):this.dom.parseErrorIndication.style.display="none"}}])&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t})()},2124:function(e){e.exports=function(e,t,r){var n,i=" ",o=e.level,s=e.dataLevel,a=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,d="data"+(s||""),h=(t="errs__"+o,e.util.copy(e)),p="",f=(h.level++,"valid"+h.level),m="key"+o,g="idx"+o,y=h.dataLevel=e.dataLevel+1,v="data"+y,b="dataProperties"+o,w=(s=Object.keys(a||{}).filter(R),e.schema.patternProperties||{}),x=Object.keys(w).filter(R),A=e.schema.additionalProperties,C=s.length||x.length,S=!1===A,I="object"==typeof A&&Object.keys(A).length,k=e.opts.removeAdditional,E=S||I||k,T=e.opts.ownProperties,$=e.baseId,_=e.schema.required;function R(e){return"__proto__"!==e}if(_&&(!e.opts.$data||!_.$data)&&_.length<e.opts.loopRequired&&(n=e.util.toHash(_)),i+="var "+t+" = errors;var "+f+" = true;",T&&(i+=" var "+b+" = undefined;"),E){if(i+=T?" "+b+" = "+b+" || Object.keys("+d+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+d+") { ",C){if(i+=" var isAdditional"+o+" = !(false ",s.length)if(8<s.length)i+=" || validate.schema"+l+".hasOwnProperty("+m+") ";else{var O=s;if(O)for(var P=-1,M=O.length-1;P<M;)B=O[P+=1],i+=" || "+m+" == "+e.util.toQuotedString(B)+" "}if(x.length){var L=x;if(L)for(var j=-1,N=L.length-1;j<N;)J=L[j+=1],i+=" || "+e.usePattern(J)+".test("+m+") "}i+=" ); if (isAdditional"+o+") { "}"all"==k?i+=" delete "+d+"["+m+"]; ":(G=e.errorPath,_="' + "+m+" + '",e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),S?k?i+=" delete "+d+"["+m+"]; ":(U=c,c=e.errSchemaPath+"/additionalProperties",(K=K||[]).push(i+=" "+f+" = false; "),i="",!1!==e.createErrors?(i+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { additionalProperty: '"+_+"' } ",!1!==e.opts.messages&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is an invalid additional property":i+="should NOT have additional properties",i+="' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ",Y=i,i=K.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+Y+"]); ":i+=" validate.errors = ["+Y+"]; return false; ":i+=" var err = "+Y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=U,u&&(i+=" break; ")):I&&("failing"==k?(i+=" var "+t+" = errors; ",E=e.compositeRule,e.compositeRule=h.compositeRule=!0,h.schema=A,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers),te=d+"["+m+"]",h.dataPathArr[y]=m,re=e.validate(h),h.baseId=$,e.util.varOccurences(re,v)<2?i+=" "+e.util.varReplace(re,v,te)+" ":i+=" var "+v+" = "+te+"; "+re+" ",i+=" if (!"+f+") { errors = "+t+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+d+"["+m+"]; } ",e.compositeRule=h.compositeRule=E):(h.schema=A,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers),te=d+"["+m+"]",h.dataPathArr[y]=m,re=e.validate(h),h.baseId=$,e.util.varOccurences(re,v)<2?i+=" "+e.util.varReplace(re,v,te)+" ":i+=" var "+v+" = "+te+"; "+re+" ",u&&(i+=" if (!"+f+") break; "))),e.errorPath=G),C&&(i+=" } "),i+=" } ",u&&(i+=" if ("+f+") { ",p+="}")}var F=e.opts.useDefaults&&!e.compositeRule;if(s.length){var D=s;if(D)for(var B,z=-1,W=D.length-1;z<W;){var H,V,G,U,Z,K,Y,q=a[B=D[z+=1]];(e.opts.strictKeywords?"object"==typeof q&&0<Object.keys(q).length||!1===q:e.util.schemaHasRules(q,e.RULES.all))&&(te=d+(Z=e.util.getProperty(B)),H=F&&void 0!==q.default,h.schema=q,h.schemaPath=l+Z,h.errSchemaPath=c+"/"+e.util.escapeFragment(B),h.errorPath=e.util.getPath(e.errorPath,B,e.opts.jsonPointers),h.dataPathArr[y]=e.util.toQuotedString(B),re=e.validate(h),h.baseId=$,e.util.varOccurences(re,v)<2?(re=e.util.varReplace(re,v,te),V=te):i+=" var "+(V=v)+" = "+te+"; ",H?i+=" "+re+" ":(n&&n[B]?(i+=" if ( "+V+" === undefined ",T&&(i+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(B)+"') "),i+=") { "+f+" = false; ",G=e.errorPath,U=c,Z=e.util.escapeQuotes(B),e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(G,B,e.opts.jsonPointers)),c=e.errSchemaPath+"/required",(K=K||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+Z+"' } ",!1!==e.opts.messages&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+Z+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ",Y=i,i=K.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+Y+"]); ":i+=" validate.errors = ["+Y+"]; return false; ":i+=" var err = "+Y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=U,e.errorPath=G,i+=" } else { "):u?(i+=" if ( "+V+" === undefined ",T&&(i+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(B)+"') "),i+=") { "+f+" = true; } else { "):(i+=" if ("+V+" !== undefined ",T&&(i+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(B)+"') "),i+=" ) { "),i+=" "+re+" } ")),u&&(i+=" if ("+f+") { ",p+="}")}}if(x.length){var X=x;if(X)for(var J,Q=-1,ee=X.length-1;Q<ee;){var te,re;q=w[J=X[Q+=1]],(e.opts.strictKeywords?"object"==typeof q&&0<Object.keys(q).length||!1===q:e.util.schemaHasRules(q,e.RULES.all))&&(h.schema=q,h.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(J),h.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(J),i=(i+=T?" "+b+" = "+b+" || Object.keys("+d+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+d+") { ")+" if ("+e.usePattern(J)+".test("+m+")) { ",h.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers),te=d+"["+m+"]",h.dataPathArr[y]=m,re=e.validate(h),h.baseId=$,e.util.varOccurences(re,v)<2?i+=" "+e.util.varReplace(re,v,te)+" ":i+=" var "+v+" = "+te+"; "+re+" ",u&&(i+=" if (!"+f+") break; "),i+=" } ",u&&(i+=" else "+f+" = true; "),i+=" } ",u)&&(i+=" if ("+f+") { ",p+="}")}}return u&&(i+=" "+p+" if ("+t+" == errors) {"),i}},2229:function(e,t,r){var n=r(2620),i=r(4292),o=r(9336),s=r(4427),a=r(9306),l=r(2084),c=r(3483),u=r(8852),d=r(6862),h=((e.exports=m).prototype.validate=function(e,t){var r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else r=(e=this._addSchema(e)).validate||this._compile(e);return e=r(t),!0!==r.$async&&(this.errors=r.errors),e},m.prototype.compile=function(e,t){return(e=this._addSchema(e,void 0,t)).validate||this._compile(e)},m.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e))for(var o=0;o<e.length;o++)this.addSchema(e[o],void 0,r,n);else{var s=this._getId(e);if(void 0!==s&&"string"!=typeof s)throw new Error("schema id must be string");x(this,t=i.normalizeId(t||s)),this._schemas[t]=this._addSchema(e,r,n,!0)}return this},m.prototype.addMetaSchema=function(e,t,r){return this.addSchema(e,t,r,!0),this},m.prototype.validateSchema=function(e,t){var r=e.$schema;if(void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(!(r=r||this._opts.defaultMeta||(e=>{var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(h)?h:void 0,e._opts.defaultMeta})(this)))return this.logger.warn("meta-schema not available"),!(this.errors=null);if(!(r=this.validate(r,e))&&t){if(e="schema is invalid: "+this.errorsText(),"log"!=this._opts.validateSchema)throw new Error(e);this.logger.error(e)}return r},m.prototype.getSchema=function(e){var t=g(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return((e,t)=>{var r,o,a,l=i.schema.call(e,{schema:{}},t);if(l)return r=l.schema,o=l.root,l=l.baseId,a=n.call(e,r,o,void 0,l),e._fragments[t]=new s({ref:t,fragment:!0,schema:r,root:o,baseId:l,validate:a}),a})(this,e)}},m.prototype.removeSchema=function(e){if(e instanceof RegExp)y(this,this._schemas,e),y(this,this._refs,e);else switch(typeof e){case"undefined":return y(this,this._schemas),y(this,this._refs),this._cache.clear(),this;case"string":var t=g(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":t=(t=this._opts.serialize)?t(e):e,this._cache.del(t),(t=this._getId(e))&&(t=i.normalizeId(t),delete this._schemas[t],delete this._refs[t])}return this},m.prototype.addFormat=function(e,t){return"string"==typeof t&&(t=new RegExp(t)),this._formats[e]=t,this},m.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var r=void 0===(t=t||{}).separator?", ":t.separator,n=void 0===t.dataVar?"data":t.dataVar,i="",o=0;o<e.length;o++){var s=e[o];s&&(i+=n+s.dataPath+" "+s.message+r)}return i.slice(0,-r.length)},m.prototype._addSchema=function(e,t,r,n){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var o,a=(a=this._opts.serialize)?a(e):e,l=this._cache.get(a);if(l)return l;n=n||!1!==this._opts.addUsedSchema,(l=i.normalizeId(this._getId(e)))&&n&&x(this,l),(t=!1!==this._opts.validateSchema&&!t)&&!(o=l&&l==i.normalizeId(e.$schema))&&this.validateSchema(e,!0);var c=i.ids.call(this,e);return c=new s({id:l,schema:e,localRefs:c,cacheKey:a,meta:r}),"#"!=l[0]&&n&&(this._refs[l]=c),this._cache.put(a,c),t&&o&&this.validateSchema(e,!0),c},m.prototype._compile=function(e,t){if(e.compiling)return(e.validate=o).schema=e.schema,o.errors=null,o.root=t||o,!0===e.schema.$async&&(o.$async=!0),o;var r,i;e.compiling=!0,e.meta&&(r=this._opts,this._opts=this._metaOpts);try{i=n.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=r)}return e.validate=i,e.refs=i.refs,e.refVal=i.refVal,e.root=i.root,i;function o(){var t=e.validate,r=t.apply(this,arguments);return o.errors=t.errors,r}},m.prototype.compileAsync=r(600),e=r(413),m.prototype.addKeyword=e.add,m.prototype.getKeyword=e.get,m.prototype.removeKeyword=e.remove,m.prototype.validateKeyword=e.validate,e=r(3689),m.ValidationError=e.Validation,m.MissingRefError=e.MissingRef,m.$dataMetaSchema=u,"http://json-schema.org/draft-07/schema"),p=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],f=["/properties"];function m(e){if(!(this instanceof m))return new m(e);e=this._opts=d.copy(e)||{};var t=(S=this)._opts.logger;if(!1===t)S.logger={log:A,warn:A,error:A};else{if(!("object"==typeof(t=void 0===t?console:t)&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");S.logger=t}if(this._schemas={},this._refs={},this._fragments={},this._formats=l(e.format),this._cache=e.cache||new o,this._loadingSchemas={},this._compilations=[],this.RULES=c(),this._getId=(e=>{switch(e.schemaId){case"auto":return w;case"id":return v;default:return b}})(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=a),this._metaOpts=(e=>{for(var t=d.copy(e._opts),r=0;r<p.length;r++)delete t[p[r]];return t})(this),e.formats){var n,i=this;for(n in i._opts.formats){var s=i._opts.formats[n];i.addFormat(n,s)}}if(e.keywords){var g,y=this;for(g in y._opts.keywords){var x=y._opts.keywords[g];y.addKeyword(g,x)}}var C,S,I=((S=this)._opts.$data&&(C=r(3420),S.addMetaSchema(C,C.$id,!0)),!1!==S._opts.meta&&(C=r(8198),S._opts.$data&&(C=u(C,f)),S.addMetaSchema(C,h,!0),S._refs["http://json-schema.org/schema"]=h),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),this),k=I._opts.schemas;if(k)if(Array.isArray(k))I.addSchema(k);else for(var E in k)I.addSchema(k[E],E)}function g(e,t){return t=i.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function y(e,t,r){for(var n in t){var i=t[n];i.meta||r&&!r.test(n)||(e._cache.del(i.cacheKey),delete t[n])}}function v(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function b(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function w(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function x(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function A(){}},2620:function(e,t,r){var n=r(4292),i=r(6862),o=r(3689),s=r(9306),a=r(1035),l=i.ucs2length,c=r(5215),u=o.Validation;function d(e,t,r){for(var n=0;n<this._compilations.length;n++){var i=this._compilations[n];if(i.schema==e&&i.root==t&&i.baseId==r)return n}return-1}function h(e,t){return"var pattern"+e+" = new RegExp("+i.toQuotedString(t[e])+");"}function p(e){return"var default"+e+" = defaults["+e+"];"}function f(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function m(e){return"var customRule"+e+" = customRules["+e+"];"}function g(e,t){if(!e.length)return"";for(var r="",n=0;n<e.length;n++)r+=t(n,e);return r}e.exports=function e(t,r,y,v){var b=this,w=this._opts,x=[void 0],A={},C=[],S={},I=[],k={},E=[],T=function(e,t,r){var n=d.call(this,e,t,r);return 0<=n?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:e,root:t,baseId:r},{index:n,compiling:!1})}.call(this,t,r=r||{schema:t,refVal:x,refs:A},v),$=this._compilations[T.index];if(T.compiling)return $.callValidate=function e(){var t=$.validate,r=t.apply(this,arguments);return e.errors=t.errors,r};var _=this._formats,R=this.RULES;try{var O=M(t,r,y,v),P=($.validate=O,$.callValidate);return P&&(P.schema=O.schema,P.errors=null,P.refs=O.refs,P.refVal=O.refVal,P.root=O.root,P.$async=O.$async,w.sourceCode)&&(P.source=O.source),O}finally{(function(e,t,r){0<=(e=d.call(this,e,t,r))&&this._compilations.splice(e,1)}).call(this,t,r,v)}function M(t,s,d,y){var v=!s||s.schema==t;if(s.schema!=r.schema)return e.call(b,t,s,d,y);d=!0===t.$async,y=a({isTop:!0,schema:t,isRoot:v,baseId:y,root:s,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:o.MissingRef,RULES:R,validate:a,util:i,resolve:n,resolveRef:L,usePattern:F,useDefault:D,useCustomRule:B,opts:w,formats:_,logger:b.logger,self:b}),y=g(x,f)+g(C,h)+g(I,p)+g(E,m)+y,w.processCode&&(y=w.processCode(y,t));try{var S=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",y)(b,R,_,r,x,I,E,c,l,u);x[0]=S}catch(t){throw b.logger.error("Error compiling schema, function code:",y),t}return S.schema=t,S.errors=null,S.refs=A,S.refVal=x,S.root=v?S:s,d&&(S.$async=!0),!0===w.sourceCode&&(S.source={code:y,patterns:C,defaults:I}),S}function L(t,i,o){i=n.url(t,i);var s=A[i];if(void 0!==s)return N(a=x[s],l="refVal["+s+"]");if(!o&&r.refs&&void 0!==(s=r.refs[i]))return N(a=r.refVal[s],l=j(i,a));var a,l=j(i);if(void 0!==(o=void 0===(o=n.call(b,M,r,i))&&(s=y&&y[i])?n.inlineRef(s,w.inlineRefs)?s:e.call(b,s,r,y,t):o))return a=o,s=A[s=i],x[s]=a,N(o,l);delete A[i]}function j(e,t){var r=x.length;return x[r]=t,"refVal"+(A[e]=r)}function N(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function F(e){var t=S[e];return void 0===t&&(t=S[e]=C.length,C[t]=e),"pattern"+t}function D(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return i.toQuotedString(e);case"object":var t,r;return null===e?"null":(t=s(e),void 0===(r=k[t])&&(r=k[t]=I.length,I[r]=e),"default"+r)}}function B(e,t,r,n){if(!1!==b._opts.validateSchema){if((o=e.definition.dependencies)&&!o.every(function(e){return Object.prototype.hasOwnProperty.call(r,e)}))throw new Error("parent schema must have all required keywords: "+o.join(","));if((o=e.definition.validateSchema)&&!o(t)){if(o="keyword schema is invalid: "+b.errorsText(o.errors),"log"!=b._opts.validateSchema)throw new Error(o);b.logger.error(o)}}var i,o=e.definition.compile,s=e.definition.inline,a=e.definition.macro;if(o)i=o.call(b,t,r,n);else if(a)i=a.call(b,t,r,n),!1!==w.validateSchema&&b.validateSchema(i,!0);else if(s)i=s.call(b,n,e.keyword,t,r);else if(!(i=e.definition.validate))return;if(void 0===i)throw new Error('custom keyword "'+e.keyword+'"failed to compile');return{code:"customRule"+(o=E.length),validate:E[o]=i}}}},2860:function(e){e.exports=function(e,t,r){var n,i=" ",o=e.level,s=e.dataLevel,a=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,d="data"+(s||""),h=(t="errs__"+o,e.util.copy(e)),p="",f=(h.level++,"valid"+h.level),m={},g={},y=e.opts.ownProperties;for(R in a)"__proto__"!=R&&(P=a[R],(n=Array.isArray(P)?g:m)[R]=P);var v=e.errorPath;for(R in i=i+"var "+t+" = errors;var missing"+o+";",g)if((n=g[R]).length){if(i+=" if ( "+d+e.util.getProperty(R)+" !== undefined ",y&&(i+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(R)+"') "),u){i+=" && ( ";var b=n;if(b)for(var w=-1,x=b.length-1;w<x;)k=b[w+=1],w&&(i+=" || "),i+=" ( ( "+(_=d+($=e.util.getProperty(k)))+" === undefined ",y&&(i+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(k)+"') "),i+=") && (missing"+o+" = "+e.util.toQuotedString(e.opts.jsonPointers?k:$)+") ) ";i+=")) { ";var A="' + "+(S="missing"+o)+" + '",C=(e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(v,S,!0):v+" + "+S),C||[]),S=(C.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(R)+"', missingProperty: '"+A+"', depsCount: "+n.length+", deps: '"+e.util.escapeQuotes(1==n.length?n[0]:n.join(", "))+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should have ",1==n.length?i+="property "+e.util.escapeQuotes(n[0]):i+="properties "+e.util.escapeQuotes(n.join(", ")),i+=" when property "+e.util.escapeQuotes(R)+" is present' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ",i);i=C.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+S+"]); ":i+=" validate.errors = ["+S+"]; return false; ":i+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{i+=" ) { ";var I=n;if(I)for(var k,E=-1,T=I.length-1;E<T;){k=I[E+=1];var $=e.util.getProperty(k),_=(A=e.util.escapeQuotes(k),d+$);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(v,k,e.opts.jsonPointers)),i+=" if ( "+_+" === undefined ",y&&(i+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(k)+"') "),i+=") { var err = ",!1!==e.createErrors?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(R)+"', missingProperty: '"+A+"', depsCount: "+n.length+", deps: '"+e.util.escapeQuotes(1==n.length?n[0]:n.join(", "))+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should have ",1==n.length?i+="property "+e.util.escapeQuotes(n[0]):i+="properties "+e.util.escapeQuotes(n.join(", ")),i+=" when property "+e.util.escapeQuotes(R)+" is present' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}i+=" } ",u&&(p+="}",i+=" else { ")}e.errorPath=v;var R,O=h.baseId;for(R in m){var P=m[R];(e.opts.strictKeywords?"object"==typeof P&&0<Object.keys(P).length||!1===P:e.util.schemaHasRules(P,e.RULES.all))&&(i+=" "+f+" = true; if ( "+d+e.util.getProperty(R)+" !== undefined ",y&&(i+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(R)+"') "),i+=") { ",h.schema=P,h.schemaPath=l+e.util.getProperty(R),h.errSchemaPath=c+"/"+e.util.escapeFragment(R),i+=" "+e.validate(h)+" ",h.baseId=O,i+=" } ",u)&&(i+=" if ("+f+") { ",p+="}")}return u&&(i+=" "+p+" if ("+t+" == errors) {"),i}},2870:function(e,t,r){t.tryRequireAjv=function(){try{return r(2229)}catch(e){}}},2877:function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(e=>(e=(e=>{if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);if("object"!=n(t=t.call(e,"string")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")})(e),"symbol"==n(e)?e:e+""))(i.key),i)}}r.d(t,{$:function(){return o}});var o=(()=>{return e=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");if(this.target=t.target||null,!this.target)throw new Error('FocusTracker constructor called without a "target" to track.');this.onFocus="function"==typeof t.onFocus?t.onFocus:null,this.onBlur="function"==typeof t.onBlur?t.onBlur:null,this._onClick=this._onEvent.bind(this),this._onKeyUp=function(e){9!==e.which&&9!==e.keyCode||this._onEvent(e)}.bind(this),this._onBlur=this._onEvent.bind(this),this.focusFlag=!1,this.firstEventFlag=!0,(this.onFocus||this.onBlur)&&(document.addEventListener("click",this._onClick),document.addEventListener("keyup",this._onKeyUp),document.addEventListener("blur",this._onBlur))},(t=[{key:"destroy",value:function(){document.removeEventListener("click",this._onClick),document.removeEventListener("keyup",this._onKeyUp),document.removeEventListener("blur",this._onBlur),this._onEvent({target:document.body})}},{key:"_onEvent",value:function(e){(e=(e=e.target)===this.target||!(!this.target.contains(e)&&!this.target.contains(document.activeElement)))?this.focusFlag||(this.onFocus&&this.onFocus({type:"focus",target:this.target}),this.focusFlag=!0):(this.focusFlag||this.firstEventFlag)&&(this.onBlur&&this.onBlur({type:"blur",target:this.target}),this.focusFlag=!1,this.firstEventFlag)&&(this.firstEventFlag=!1)}}])&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t})()},2915:function(e,t,r){r.r(t),r.d(t,{showSortModal:function(){return s}}),t=r(8340);var n=r.n(t),i=r(3057),o=r(6237);function s(e,t,r,s){var a=Array.isArray(t)?(0,o.getChildPaths)(t):[""],l=s&&s.path&&(0,o.contains)(a,s.path)?s.path:a[0],c=s&&s.direction||"asc";t='<div class="pico-modal-contents"><div class="pico-modal-header">'+(0,i.Tl)("sort")+"</div><form><table><tbody><tr> <td>"+(0,i.Tl)("sortFieldLabel")+' </td> <td class="jsoneditor-modal-input"> <div class="jsoneditor-select-wrapper"> <select id="field" title="'+(0,i.Tl)("sortFieldTitle")+'"> </select> </div> </td></tr><tr> <td>'+(0,i.Tl)("sortDirectionLabel")+' </td> <td class="jsoneditor-modal-input"> <div id="direction" class="jsoneditor-button-group"><input type="button" value="'+(0,i.Tl)("sortAscending")+'" title="'+(0,i.Tl)("sortAscendingTitle")+'" data-value="asc" class="jsoneditor-button-first jsoneditor-button-asc"/><input type="button" value="'+(0,i.Tl)("sortDescending")+'" title="'+(0,i.Tl)("sortDescendingTitle")+'" data-value="desc" class="jsoneditor-button-last jsoneditor-button-desc"/> </div> </td></tr><tr><td colspan="2" class="jsoneditor-modal-input jsoneditor-modal-actions"> <input type="submit" id="ok" value="'+(0,i.Tl)("ok")+'" /></td></tr></tbody></table></form></div>',n()({parent:e,content:t,overlayClass:"jsoneditor-modal-overlay",overlayStyles:{backgroundColor:"rgb(1,1,1)",opacity:.3},modalClass:"jsoneditor-modal jsoneditor-modal-sort"}).afterCreate(function(e){var t=e.modalElem().querySelector("form"),n=e.modalElem().querySelector("#ok"),i=e.modalElem().querySelector("#field"),o=e.modalElem().querySelector("#direction");function s(e){o.value=e,o.className="jsoneditor-button-group jsoneditor-button-group-value-"+o.value}a.forEach(function(e){var t,r=document.createElement("option");r.text=""===(t=e)?"@":"."===t[0]?t.slice(1):t,r.value=e,i.appendChild(r)}),i.value=l||a[0],s(c||"asc"),o.onclick=function(e){s(e.target.getAttribute("data-value"))},n.onclick=function(t){t.preventDefault(),t.stopPropagation(),e.close(),r({path:i.value,direction:o.value})},t&&(t.onsubmit=n.onclick)}).afterClose(function(e){e.destroy()}).show()}},3057:function(e,t,r){r.d(t,{AI:function(){return c},Tl:function(){return u},xC:function(){return l}}),r(1081);var n={en:{array:"Array",auto:"Auto",appendText:"Append",appendTitle:"Append a new field with type 'auto' after this field (Ctrl+Shift+Ins)",appendSubmenuTitle:"Select the type of the field to be appended",appendTitleAuto:"Append a new field with type 'auto' (Ctrl+Shift+Ins)",ascending:"Ascending",ascendingTitle:"Sort the childs of this ${type} in ascending order",actionsMenu:"Click to open the actions menu (Ctrl+M)",cannotParseFieldError:"Cannot parse field into JSON",cannotParseValueError:"Cannot parse value into JSON",collapseAll:"Collapse all fields",compactTitle:"Compact JSON data, remove all whitespaces (Ctrl+Shift+I)",descending:"Descending",descendingTitle:"Sort the childs of this ${type} in descending order",drag:"Drag to move this field (Alt+Shift+Arrows)",duplicateKey:"duplicate key",duplicateText:"Duplicate",duplicateTitle:"Duplicate selected fields (Ctrl+D)",duplicateField:"Duplicate this field (Ctrl+D)",duplicateFieldError:"Duplicate field name",empty:"empty",expandAll:"Expand all fields",expandTitle:"Click to expand/collapse this field (Ctrl+E). \nCtrl+Click to expand/collapse including all childs.",formatTitle:"Format JSON data, with proper indentation and line feeds (Ctrl+I)",insert:"Insert",insertTitle:"Insert a new field with type 'auto' before this field (Ctrl+Ins)",insertSub:"Select the type of the field to be inserted",object:"Object",ok:"Ok",redo:"Redo (Ctrl+Shift+Z)",removeText:"Remove",removeTitle:"Remove selected fields (Ctrl+Del)",removeField:"Remove this field (Ctrl+Del)",repairTitle:"Repair JSON: fix quotes and escape characters, remove comments and JSONP notation, turn JavaScript objects into JSON.",searchTitle:"Search fields and values",searchNextResultTitle:"Next result (Enter)",searchPreviousResultTitle:"Previous result (Shift + Enter)",selectNode:"Select a node...",showAll:"show all",showMore:"show more",showMoreStatus:"displaying ${visibleChilds} of ${totalChilds} items.",sort:"Sort",sortTitle:"Sort the childs of this ${type}",sortTitleShort:"Sort contents",sortFieldLabel:"Field:",sortDirectionLabel:"Direction:",sortFieldTitle:"Select the nested field by which to sort the array or object",sortAscending:"Ascending",sortAscendingTitle:"Sort the selected field in ascending order",sortDescending:"Descending",sortDescendingTitle:"Sort the selected field in descending order",string:"String",transform:"Transform",transformTitle:"Filter, sort, or transform the childs of this ${type}",transformTitleShort:"Filter, sort, or transform contents",extract:"Extract",extractTitle:"Extract this ${type}",transformQueryTitle:"Enter a JMESPath query",transformWizardLabel:"Wizard",transformWizardFilter:"Filter",transformWizardSortBy:"Sort by",transformWizardSelectFields:"Select fields",transformQueryLabel:"Query",transformPreviewLabel:"Preview",type:"Type",typeTitle:"Change the type of this field",openUrl:"Ctrl+Click or Ctrl+Enter to open url in new window",undo:"Undo last action (Ctrl+Z)",validationCannotMove:"Cannot move a field into a child of itself",autoType:'Field type "auto". The field type is automatically determined from the value and can be a string, number, boolean, or null.',objectType:'Field type "object". An object contains an unordered set of key/value pairs.',arrayType:'Field type "array". An array contains an ordered collection of values.',stringType:'Field type "string". Field type is not determined from the value, but always returned as string.',modeEditorTitle:"Switch Editor Mode",modeCodeText:"Code",modeCodeTitle:"Switch to code highlighter",modeFormText:"Form",modeFormTitle:"Switch to form editor",modeTextText:"Text",modeTextTitle:"Switch to plain text editor",modeTreeText:"Tree",modeTreeTitle:"Switch to tree editor",modeViewText:"View",modeViewTitle:"Switch to tree view",modePreviewText:"Preview",modePreviewTitle:"Switch to preview mode",examples:"Examples",default:"Default",containsInvalidProperties:"Contains invalid properties",containsInvalidItems:"Contains invalid items"},es:{array:"Matriz",auto:"Auto",appendText:"Agregar",appendTitle:"Agregue un nuevo campo con el tipo 'auto' después de este campo (Ctrl + Shift + Ins)",appendSubmenuTitle:"Seleccione el tipo de campo que se agregará",appendTitleAuto:"Agregue un nuevo campo con el tipo 'auto' (Ctrl + Shift + Ins)",ascending:"Ascendente",ascendingTitle:"Ordene los elementos secundarios de este ${type} en orden ascendente",actionsMenu:"Haga clic para abrir el menú de acciones (Ctrl + M)",cannotParseFieldError:"No se puede parsear el campo en JSON",cannotParseValueError:"No se puede parsear el valor en JSON",collapseAll:"Contraer todos los campos",compactTitle:"Compactar datos JSON, eliminar todos los espacios en blanco (Ctrl + Shift + I)",descending:"Descendente",descendingTitle:"Ordene los hijos de este ${type} en orden descendente",drag:"Arrastre para mover este campo (Alt + Mayús + Flechas)",duplicateKey:"llave duplicada",duplicateText:"Duplicar",duplicateTitle:"Duplicar campos seleccionados (Ctrl + D)",duplicateField:"Duplicar este campo (Ctrl + D)",duplicateFieldError:"Nombre de campo duplicado",empty:"vacio",expandAll:"Expandir todos los campos",expandTitle:"Haga clic para expandir/contraer este campo (Ctrl + E). \n Ctrl+Clic para expandir/contraer incluyendo todos los niños.",formatTitle:"Formatee los datos JSON, con la sangría y los avances de línea adecuados (Ctrl + I)",insert:"Insertar",insertTitle:"Inserte un nuevo campo con el tipo 'auto' antes de este campo (Ctrl + Ins)",insertSub:"Seleccione el tipo de campo a insertar",object:"Objeto",ok:"Ok",redo:"Rehacer (Ctrl+Mayús+Z)",removeText:"Eliminar",removeTitle:"Eliminar campos seleccionados (Ctrl+Supr)",removeField:"Eliminar este campo (Ctrl+Supr)",repairTitle:"Reparar JSON: corrija comillas y caracteres de escape, elimine comentarios y notación JSONP, convierta objetos JavaScript en JSON.",searchTitle:"Campos de búsqueda y valores",searchNextResultTitle:"Siguiente resultado (Entrar)",searchPreviousResultTitle:"Resultado anterior (Shift + Enter)",selectNode:"Seleccione un nodo...",showAll:"mostrar todo",showMore:"mostrar más",showMoreStatus:"mostrando ${visibleChilds} de ${totalChilds} elementos.",sort:"Ordenar",sortTitle:"Ordene los hijos de este ${type}",sortTitleShort:"Ordenar contenidos",sortFieldLabel:"Campo:",sortDirectionLabel:"Dirección:",sortFieldTitle:"Seleccione el campo anidado por el cual ordenar la matriz u objeto",sortAscending:"Ascendente",sortAscendingTitle:"Ordenar el campo seleccionado en orden ascendente",sortDescending:"Descendente",sortDescendingTitle:"Ordenar por el campo seleccionado, en orden descendente",string:"Texto",transform:"Transformar",transformTitle:"Filtrar, ordenar o transformar los hijos de este ${type}",transformTitleShort:"Filtrar, ordenar o transformar contenidos",extract:"Extraer",extractTitle:"Extrae este ${type}",transformQueryTitle:"Ingrese una consulta JMESPath",transformWizardLabel:"Wizard",transformWizardFilter:"Filtro",transformWizardSortBy:"Ordenar por",transformWizardSelectFields:"Seleccione un campo",transformQueryLabel:"Consulta",transformPreviewLabel:"Vista Previa",type:"Tipo",typeTitle:"Cambiar el tipo de campo",openUrl:"Ctrl+Click o Ctrl+Enter para abrir la URL en una nueva ventana",undo:"Deshacer la última acción (Ctrl+Z)",validationCannotMove:"No se puede mover un campo a un hijo de sí mismo.",autoType:'Tipo de campo "auto". El tipo de campo se determina automáticamente a partir del valor y puede ser una cadena, un número, un booleano o un valor nulo.',objectType:'Tipo de campo "objeto". Un objeto contiene un conjunto desordenado de pares clave/valor.',arrayType:'Tipo de campo "matriz". Una matriz contiene una colección ordenada de valores.',stringType:'Tipo de campo "cadena". El tipo de campo no se determina a partir del valor, pero siempre se devuelve como una cadena.',modeEditorTitle:"Cambiar modo de editor",modeCodeText:"Código",modeCodeTitle:"Cambiar al resaltador de código",modeFormText:"Formulario",modeFormTitle:"Cambiar al editor de formularios",modeTextText:"Texto",modeTextTitle:"Cambiar al editor de texto sin formato",modeTreeText:"Árbol",modeTreeTitle:"Cambiar al editor de árbol",modeViewText:"Vista",modeViewTitle:"Cambiar a la vista de árbol",modePreviewText:"Vista Previa",modePreviewTitle:"Cambiar al modo de vista previa",examples:"Ejemplos",default:"Predeterminado",containsInvalidProperties:"Contiene propiedades no válidas",containsInvalidItems:"Contiene ítems no válidos"},"zh-CN":{array:"数组",auto:"自动",appendText:"追加",appendTitle:"在此字段后追加一个类型为“auto”的新字段 (Ctrl+Shift+Ins)",appendSubmenuTitle:"选择要追加的字段类型",appendTitleAuto:"追加类型为“auto”的新字段 (Ctrl+Shift+Ins)",ascending:"升序",ascendingTitle:"升序排列${type}的子节点",actionsMenu:"点击打开动作菜单(Ctrl+M)",cannotParseFieldError:"无法将字段解析为JSON",cannotParseValueError:"无法将值解析为JSON",collapseAll:"缩进所有字段",compactTitle:"压缩JSON数据,删除所有空格 (Ctrl+Shift+I)",descending:"降序",descendingTitle:"降序排列${type}的子节点",drag:"拖拽移动该节点(Alt+Shift+Arrows)",duplicateKey:"重复键",duplicateText:"复制",duplicateTitle:"复制选中字段(Ctrl+D)",duplicateField:"复制该字段(Ctrl+D)",duplicateFieldError:"重复的字段名称",empty:"清空",expandAll:"展开所有字段",expandTitle:"点击 展开/收缩 该字段(Ctrl+E). \nCtrl+Click 展开/收缩 包含所有子节点.",formatTitle:"使用适当的缩进和换行符格式化JSON数据 (Ctrl+I)",insert:"插入",insertTitle:"在此字段前插入类型为“auto”的新字段 (Ctrl+Ins)",insertSub:"选择要插入的字段类型",object:"对象",ok:"Ok",redo:"重做 (Ctrl+Shift+Z)",removeText:"移除",removeTitle:"移除选中字段 (Ctrl+Del)",removeField:"移除该字段 (Ctrl+Del)",repairTitle:"修复JSON:修复引号和转义符,删除注释和JSONP表示法,将JavaScript对象转换为JSON。",selectNode:"选择一个节点...",showAll:"展示全部",showMore:"展示更多",showMoreStatus:"显示${totalChilds}的${visibleChilds}项目.",sort:"排序",sortTitle:"排序${type}的子节点",sortTitleShort:"内容排序",sortFieldLabel:"字段:",sortDirectionLabel:"方向:",sortFieldTitle:"选择用于对数组或对象排序的嵌套字段",sortAscending:"升序排序",sortAscendingTitle:"按照该字段升序排序",sortDescending:"降序排序",sortDescendingTitle:"按照该字段降序排序",string:"字符串",transform:"变换",transformTitle:"筛选,排序,或者转换${type}的子节点",transformTitleShort:"筛选,排序,或者转换内容",extract:"提取",extractTitle:"提取这个 ${type}",transformQueryTitle:"输入JMESPath查询",transformWizardLabel:"向导",transformWizardFilter:"筛选",transformWizardSortBy:"排序",transformWizardSelectFields:"选择字段",transformQueryLabel:"查询",transformPreviewLabel:"预览",type:"类型",typeTitle:"更改字段类型",openUrl:"Ctrl+Click 或者 Ctrl+Enter 在新窗口打开链接",undo:"撤销上次动作 (Ctrl+Z)",validationCannotMove:"无法将字段移入其子节点",autoType:'字段类型 "auto". 字段类型由值自动确定 可以为 string,number,boolean,或者 null.',objectType:'字段类型 "object". 对象包含一组无序的键/值对.',arrayType:'字段类型 "array". 数组包含值的有序集合.',stringType:'字段类型 "string". 字段类型由值自动确定,但始终作为字符串返回.',modeCodeText:"代码",modeCodeTitle:"切换至代码高亮",modeFormText:"表单",modeFormTitle:"切换至表单编辑",modeTextText:"文本",modeTextTitle:"切换至文本编辑",modeTreeText:"树",modeTreeTitle:"切换至树编辑",modeViewText:"视图",modeViewTitle:"切换至树视图",modePreviewText:"预览",modePreviewTitle:"切换至预览模式",examples:"例子",default:"缺省",containsInvalidProperties:"包含无效的属性",containsInvalidItems:"包含无效项目"},"pt-BR":{array:"Lista",auto:"Automatico",appendText:"Adicionar",appendTitle:"Adicionar novo campo com tipo 'auto' depois deste campo (Ctrl+Shift+Ins)",appendSubmenuTitle:"Selecione o tipo do campo a ser adicionado",appendTitleAuto:"Adicionar novo campo com tipo 'auto' (Ctrl+Shift+Ins)",ascending:"Ascendente",ascendingTitle:"Organizar filhor do tipo ${type} em crescente",actionsMenu:"Clique para abrir o menu de ações (Ctrl+M)",cannotParseFieldError:"Não é possível analisar o campo no JSON",cannotParseValueError:"Não é possível analisar o valor em JSON",collapseAll:"Fechar todos campos",compactTitle:"Dados JSON compactos, remova todos os espaços em branco (Ctrl+Shift+I)",descending:"Descendente",descendingTitle:"Organizar o filhos do tipo ${type} em decrescente",duplicateKey:"chave duplicada",drag:"Arraste para mover este campo (Alt+Shift+Arrows)",duplicateText:"Duplicar",duplicateTitle:"Duplicar campos selecionados (Ctrl+D)",duplicateField:"Duplicar este campo (Ctrl+D)",duplicateFieldError:"Nome do campo duplicado",empty:"vazio",expandAll:"Expandir todos campos",expandTitle:"Clique para expandir/encolher este campo (Ctrl+E). \nCtrl+Click para expandir/encolher incluindo todos os filhos.",formatTitle:"Formate dados JSON, com recuo e feeds de linha adequados (Ctrl+I)",insert:"Inserir",insertTitle:"Inserir um novo campo do tipo 'auto' antes deste campo (Ctrl+Ins)",insertSub:"Selecionar o tipo de campo a ser inserido",object:"Objeto",ok:"Ok",redo:"Refazer (Ctrl+Shift+Z)",removeText:"Remover",removeTitle:"Remover campos selecionados (Ctrl+Del)",removeField:"Remover este campo (Ctrl+Del)",repairTitle:"Repare JSON: corrija aspas e caracteres de escape, remova comentários e notação JSONP, transforme objetos JavaScript em JSON.",selectNode:"Selecione um nódulo...",showAll:"mostrar todos",showMore:"mostrar mais",showMoreStatus:"exibindo ${visibleChilds} de ${totalChilds} itens.",sort:"Organizar",sortTitle:"Organizar os filhos deste ${type}",sortTitleShort:"Organizar os filhos",sortFieldLabel:"Campo:",sortDirectionLabel:"Direção:",sortFieldTitle:"Selecione um campo filho pelo qual ordenar o array ou objeto",sortAscending:"Ascendente",sortAscendingTitle:"Ordenar o campo selecionado por ordem ascendente",sortDescending:"Descendente",sortDescendingTitle:"Ordenar o campo selecionado por ordem descendente",string:"Texto",transform:"Transformar",transformTitle:"Filtrar, ordenar ou transformar os filhos deste ${type}",transformTitleShort:"Filtrar, ordenar ou transformar conteúdos",transformQueryTitle:"Insira uma expressão JMESPath",transformWizardLabel:"Assistente",transformWizardFilter:"Filtro",transformWizardSortBy:"Ordenar por",transformWizardSelectFields:"Selecionar campos",transformQueryLabel:"Expressão",transformPreviewLabel:"Visualizar",type:"Tipo",typeTitle:"Mudar o tipo deste campo",openUrl:"Ctrl+Click ou Ctrl+Enter para abrir link em nova janela",undo:"Desfazer último ação (Ctrl+Z)",validationCannotMove:"Não pode mover um campo como filho dele mesmo",autoType:'Campo do tipo "auto". O tipo do campo é determinao automaticamente a partir do seu valor e pode ser texto, número, verdade/falso ou nulo.',objectType:'Campo do tipo "objeto". Um objeto contém uma lista de pares com chave e valor.',arrayType:'Campo do tipo "lista". Uma lista contem uma coleção de valores ordenados.',stringType:'Campo do tipo "string". Campo do tipo nao é determinado através do seu valor, mas sempre retornara um texto.',examples:"Exemplos",default:"Revelia",containsInvalidProperties:"Contém propriedades inválidas",containsInvalidItems:"Contém itens inválidos"},tr:{array:"Dizin",auto:"Otomatik",appendText:"Ekle",appendTitle:"Bu alanın altına 'otomatik' tipinde yeni bir alan ekle (Ctrl+Shift+Ins)",appendSubmenuTitle:"Eklenecek alanın tipini seç",appendTitleAuto:"'Otomatik' tipinde yeni bir alan ekle (Ctrl+Shift+Ins)",ascending:"Artan",ascendingTitle:"${type}'ın alt tiplerini artan düzende sırala",actionsMenu:"Aksiyon menüsünü açmak için tıklayın (Ctrl+M)",collapseAll:"Tüm alanları kapat",descending:"Azalan",descendingTitle:"${type}'ın alt tiplerini azalan düzende sırala",drag:"Bu alanı taşımak için sürükleyin (Alt+Shift+Arrows)",duplicateKey:"Var olan anahtar",duplicateText:"Aşağıya kopyala",duplicateTitle:"Seçili alanlardan bir daha oluştur (Ctrl+D)",duplicateField:"Bu alandan bir daha oluştur (Ctrl+D)",duplicateFieldError:"Duplicate field name",cannotParseFieldError:"Alan JSON'a ayrıştırılamıyor",cannotParseValueError:"JSON'a değer ayrıştırılamıyor",empty:"boş",expandAll:"Tüm alanları aç",expandTitle:"Bu alanı açmak/kapatmak için tıkla (Ctrl+E). \nAlt alanlarda dahil tüm alanları açmak için Ctrl+Click ",insert:"Ekle",insertTitle:"Bu alanın üstüne 'otomatik' tipinde yeni bir alan ekle (Ctrl+Ins)",insertSub:"Araya eklenecek alanın tipini seç",object:"Nesne",ok:"Tamam",redo:"Yeniden yap (Ctrl+Shift+Z)",removeText:"Kaldır",removeTitle:"Seçilen alanları kaldır (Ctrl+Del)",removeField:"Bu alanı kaldır (Ctrl+Del)",selectNode:"Bir nesne seç...",showAll:"tümünü göster",showMore:"daha fazla göster",showMoreStatus:"${totalChilds} alanın ${visibleChilds} alt alanları gösteriliyor",sort:"Sırala",sortTitle:"${type}'ın alt alanlarını sırala",sortTitleShort:"İçerikleri sırala",sortFieldLabel:"Alan:",sortDirectionLabel:"Yön:",sortFieldTitle:"Diziyi veya nesneyi sıralamak için iç içe geçmiş alanı seçin",sortAscending:"Artan",sortAscendingTitle:"Seçili alanı artan düzende sırala",sortDescending:"Azalan",sortDescendingTitle:"Seçili alanı azalan düzende sırala",string:"Karakter Dizisi",transform:"Dönüştür",transformTitle:"${type}'ın alt alanlarını filtrele, sırala veya dönüştür",transformTitleShort:"İçerikleri filterele, sırala veya dönüştür",transformQueryTitle:"JMESPath sorgusu gir",transformWizardLabel:"Sihirbaz",transformWizardFilter:"Filtre",transformWizardSortBy:"Sırala",transformWizardSelectFields:"Alanları seç",transformQueryLabel:"Sorgu",transformPreviewLabel:"Önizleme",type:"Tip",typeTitle:"Bu alanın tipini değiştir",openUrl:"URL'i yeni bir pencerede açmak için Ctrl+Click veya Ctrl+Enter",undo:"Son değişikliği geri al (Ctrl+Z)",validationCannotMove:"Alt alan olarak taşınamıyor",autoType:'Alan tipi "otomatik". Alan türü otomatik olarak değerden belirlenirve bir dize, sayı, boolean veya null olabilir.',objectType:'Alan tipi "nesne". Bir nesne, sıralanmamış bir anahtar / değer çifti kümesi içerir.',arrayType:'Alan tipi "dizi". Bir dizi, düzenli değerler koleksiyonu içerir.',stringType:'Alan tipi "karakter dizisi". Alan türü değerden belirlenmez,ancak her zaman karakter dizisi olarak döndürülür.',modeCodeText:"Kod",modeCodeTitle:"Kod vurgulayıcıya geç",modeFormText:"Form",modeFormTitle:"Form düzenleyiciye geç",modeTextText:"Metin",modeTextTitle:"Düz metin düzenleyiciye geç",modeTreeText:"Ağaç",modeTreeTitle:"Ağaç düzenleyiciye geç",modeViewText:"Görünüm",modeViewTitle:"Ağaç görünümüne geç",examples:"Örnekler",default:"Varsayılan",containsInvalidProperties:"Geçersiz özellikler içeriyor",containsInvalidItems:"Geçersiz öğeler içeriyor"},ja:{array:"配列",auto:"オート",appendText:"追加",appendTitle:'次のフィールドに"オート"のフィールドを追加 (Ctrl+Shift+Ins)',appendSubmenuTitle:"追加するフィールドの型を選択してください",appendTitleAuto:'"オート"のフィールドを追加 (Ctrl+Shift+Ins)',ascending:"昇順",ascendingTitle:"${type}の子要素を昇順に並べ替え",actionsMenu:"クリックしてアクションメニューを開く (Ctrl+M)",collapseAll:"すべてを折りたたむ",descending:"降順",descendingTitle:"${type}の子要素を降順に並べ替え",drag:"ドラッグして選択中のフィールドを移動 (Alt+Shift+Arrows)",duplicateKey:"複製キー",duplicateText:"複製",duplicateTitle:"選択中のフィールドを複製 (Ctrl+D)",duplicateField:"選択中のフィールドを複製 (Ctrl+D)",duplicateFieldError:"フィールド名が重複しています",cannotParseFieldError:"JSONのフィールドを解析できません",cannotParseValueError:"JSONの値を解析できません",empty:"空",expandAll:"すべてを展開",expandTitle:"クリックしてフィールドを展開/折りたたむ (Ctrl+E). \nCtrl+Click ですべての子要素を展開/折りたたむ",insert:"挿入",insertTitle:"選択中のフィールドの前に新しいフィールドを挿入 (Ctrl+Ins)",insertSub:"挿入するフィールドの型を選択",object:"オブジェクト",ok:"実行",redo:"やり直す (Ctrl+Shift+Z)",removeText:"削除",removeTitle:"選択中のフィールドを削除 (Ctrl+Del)",removeField:"選択中のフィールドを削除 (Ctrl+Del)",selectNode:"ノードを選択...",showAll:"すべてを表示",showMore:"もっと見る",showMoreStatus:"${totalChilds}個のアイテムのうち ${visibleChilds}個を表示しています。",sort:"並べ替え",sortTitle:"${type}の子要素を並べ替え",sortTitleShort:"並べ替え",sortFieldLabel:"フィールド:",sortDirectionLabel:"順序:",sortFieldTitle:"配列またはオブジェクトを並び替えるためのフィールドを選択",sortAscending:"昇順",sortAscendingTitle:"選択中のフィールドを昇順に並び替え",sortDescending:"降順",sortDescendingTitle:"選択中のフィールドを降順に並び替え",string:"文字列",transform:"変換",transformTitle:"${type}の子要素をフィルター・並び替え・変換する",transformTitleShort:"内容をフィルター・並び替え・変換する",extract:"抽出",extractTitle:"${type}を抽出",transformQueryTitle:"JMESPathクエリを入力",transformWizardLabel:"ウィザード",transformWizardFilter:"フィルター",transformWizardSortBy:"並び替え",transformWizardSelectFields:"フィールドを選択",transformQueryLabel:"クエリ",transformPreviewLabel:"プレビュー",type:"型",typeTitle:"選択中のフィールドの型を変更",openUrl:"Ctrl+Click または Ctrl+Enter で 新規ウィンドウでURLを開く",undo:"元に戻す (Ctrl+Z)",validationCannotMove:"子要素に移動できません ",autoType:"オート: フィールドの型は値から自動的に決定されます。 (文字列・数値・ブール・null)",objectType:"オブジェクト: オブジェクトは順序が決まっていないキーと値のペア組み合わせです。",arrayType:"配列: 配列は順序が決まっている値の集合体です。",stringType:"文字列: フィールド型は値から決定されませんが、常に文字列として返されます。",modeCodeText:"コードモード",modeCodeTitle:"ハイライトモードに切り替え",modeFormText:"フォームモード",modeFormTitle:"フォームモードに切り替え",modeTextText:"テキストモード",modeTextTitle:"テキストモードに切り替え",modeTreeText:"ツリーモード",modeTreeTitle:"ツリーモードに切り替え",modeViewText:"ビューモード",modeViewTitle:"ビューモードに切り替え",modePreviewText:"プレビュー",modePreviewTitle:"プレビューに切り替え",examples:"例",default:"デフォルト",containsInvalidProperties:"無効なプロパティが含まれています",containsInvalidItems:"無効なアイテムが含まれています"},"fr-FR":{array:"Liste",auto:"Auto",appendText:"Ajouter",appendTitle:"Ajouter un champ de type 'auto' après ce champ (Ctrl+Shift+Ins)",appendSubmenuTitle:"Sélectionner le type du champ à ajouter",appendTitleAuto:"Ajouter un champ de type 'auto' (Ctrl+Shift+Ins)",ascending:"Ascendant",ascendingTitle:"Trier les enfants de ce ${type} par ordre ascendant",actionsMenu:"Ouvrir le menu des actions (Ctrl+M)",collapseAll:"Regrouper",descending:"Descendant",descendingTitle:"Trier les enfants de ce ${type} par ordre descendant",drag:"Déplacer (Alt+Shift+Arrows)",duplicateKey:"Dupliquer la clé",duplicateText:"Dupliquer",duplicateTitle:"Dupliquer les champs sélectionnés (Ctrl+D)",duplicateField:"Dupliquer ce champ (Ctrl+D)",duplicateFieldError:"Dupliquer le nom de champ",cannotParseFieldError:"Champ impossible à parser en JSON",cannotParseValueError:"Valeur impossible à parser en JSON",empty:"vide",expandAll:"Étendre",expandTitle:"Étendre/regrouper ce champ (Ctrl+E). \nCtrl+Click pour étendre/regrouper avec tous les champs.",insert:"Insérer",insertTitle:"Insérer un champ de type 'auto' avant ce champ (Ctrl+Ins)",insertSub:"Sélectionner le type de champ à insérer",object:"Objet",ok:"Ok",redo:"Rejouer (Ctrl+Shift+Z)",removeText:"Supprimer",removeTitle:"Supprimer les champs sélectionnés (Ctrl+Del)",removeField:"Supprimer ce champ (Ctrl+Del)",searchTitle:"Rechercher champs et valeurs",searchNextResultTitle:"Résultat suivant (Enter)",searchPreviousResultTitle:"Résultat précédent (Shift + Enter)",selectNode:"Sélectionner un nœud...",showAll:"voir tout",showMore:"voir plus",showMoreStatus:"${visibleChilds} éléments affichés de ${totalChilds}.",sort:"Trier",sortTitle:"Trier les champs de ce ${type}",sortTitleShort:"Trier",sortFieldLabel:"Champ:",sortDirectionLabel:"Direction:",sortFieldTitle:"Sélectionner les champs permettant de trier les listes et objet",sortAscending:"Ascendant",sortAscendingTitle:"Trier les champs sélectionnés par ordre ascendant",sortDescending:"Descendant",sortDescendingTitle:"Trier les champs sélectionnés par ordre descendant",string:"Chaîne",transform:"Transformer",transformTitle:"Filtrer, trier, or transformer les enfants de ce ${type}",transformTitleShort:"Filtrer, trier ou transformer le contenu",extract:"Extraire",extractTitle:"Extraire ce ${type}",transformQueryTitle:"Saisir une requête JMESPath",transformWizardLabel:"Assistant",transformWizardFilter:"Filtrer",transformWizardSortBy:"Trier par",transformWizardSelectFields:"Sélectionner les champs",transformQueryLabel:"Requête",transformPreviewLabel:"Prévisualisation",type:"Type",typeTitle:"Changer le type de ce champ",openUrl:"Ctrl+Click ou Ctrl+Enter pour ouvrir l'url dans une autre fenêtre",undo:"Annuler la dernière action (Ctrl+Z)",validationCannotMove:"Cannot move a field into a child of itself",autoType:'Champe de type "auto". Ce type de champ est automatiquement déterminé en fonction de la valeur et peut être de type "chaîne", "nombre", "booléen" ou null.',objectType:'Champ de type "objet". Un objet contient un ensemble non ordonné de paires clé/valeur.',arrayType:'Champ de type "liste". Une liste contient une collection ordonnée de valeurs.',stringType:'Champ de type "chaîne". Ce type de champ n\'est pas déterminé en fonction de la valeur, mais retourne systématiquement une chaîne de caractères.',modeEditorTitle:"Changer mode d'édition",modeCodeText:"Code",modeCodeTitle:"Activer surlignage code",modeFormText:"Formulaire",modeFormTitle:"Activer formulaire",modeTextText:"Texte",modeTextTitle:"Activer éditeur texte",modeTreeText:"Arbre",modeTreeTitle:"Activer éditeur arbre",modeViewText:"Lecture seule",modeViewTitle:"Activer vue arbre",modePreviewText:"Prévisualisation",modePreviewTitle:"Activer mode prévisualiser",examples:"Exemples",default:"Défaut",containsInvalidProperties:"Contient des propriétés non valides",containsInvalidItems:"Contient des éléments invalides"},de:{array:"Auflistung",auto:"Auto",appendText:"anhängen",appendTitle:"Fügen Sie nach diesem Feld ein neues Feld mit dem Typ 'auto' ein (Strg+Umschalt+Ein)",appendSubmenuTitle:"Wählen Sie den Typ des neuen Feldes",appendTitleAuto:"Ein neues Feld vom Typ 'auto' hinzufügen (Strg+Umschalt+Ein)",ascending:"Aufsteigend",ascendingTitle:"Sortieren Sie die Elemente dieses ${type} in aufsteigender Reihenfolge",actionsMenu:"Klicken Sie zum Öffnen des Aktionsmenüs (Strg+M)",cannotParseFieldError:"Feld kann nicht in JSON geparst werden",cannotParseValueError:"Wert kann nicht in JSON geparst werden",collapseAll:"Alle Felder zuklappen",compactTitle:"JSON-Daten verdichten, alle Leerzeichen entfernen (Strg+Umschalt+\\)",descending:"Absteigend",descendingTitle:"Sortieren Sie die Elemente dieses ${type} in absteigender Reihenfolge",drag:"Ziehen, um dieses Feld zu verschieben (Alt+Umschalt+Pfeile)",duplicateKey:"Doppelter Schlüssel",duplicateText:"Duplikat",duplicateTitle:"Ausgewählte Felder duplizieren (Strg+D)",duplicateField:"Dieses Feld duplizieren (Strg+D)",duplicateFieldError:"Doppelter Feldname",empty:"leer",expandAll:"Alle Felder anzeigen",expandTitle:"Klicken Sie, um dieses Feld zu erweitern/zu kollabieren (Strg+E). \nStrg+Klicken Sie, um dieses Feld einschließlich aller Elemente zu erweitern/zu kollabieren.",formatTitle:"JSON-Daten mit korrekter Einrückung und Zeilenvorschüben formatieren (Strg+\\)",insert:"einfügen",insertTitle:"Fügen Sie vor diesem Feld ein neues Feld mit dem Typ 'auto' ein (Strg+Einfg)",insertSub:"Wählen Sie den Typ des neuen Feldes",object:"Objekt",ok:"Ok",redo:"Wiederholen (Strg+Umschalt+Z)",removeText:"entfernen",removeTitle:"Ausgewählte Felder entfernen (Strg+Entf)",removeField:"Dieses Feld entfernen (Strg+Entf)",repairTitle:"JSON reparieren: Anführungszeichen und Escape-Zeichen korrigieren, Kommentare und JSONP-Notation entfernen, JavaScript-Objekte in JSON umwandeln.",searchTitle:"Suchfelder und Werte",searchNextResultTitle:"Nächstes Ergebnis (Enter)",searchPreviousResultTitle:"Vorheriges Ergebnis (Umschalt + Eingabe)",selectNode:"Wählen Sie einen Knoten aus...",showAll:"alle anzeigen",showMore:"mehr anzeigen",showMoreStatus:"Anzeige von ${visibleChilds} von ${totalChilds}-Elementen.",sort:"Sortieren",sortTitle:"Sortieren Sie die Elemente dieses ${type}",sortTitleShort:"Inhalt sortieren",sortFieldLabel:"Feld:",sortDirectionLabel:"Richtung:",sortFieldTitle:"Wählen Sie das verschachtelte Feld, nach dem das Array oder Objekt sortiert werden soll.",sortAscending:"Aufsteigend",sortAscendingTitle:"Sortieren Sie das ausgewählte Feld in aufsteigender Reihenfolge",sortDescending:"Absteigend",sortDescendingTitle:"Sortieren Sie das ausgewählte Feld in absteigender Reihenfolge",string:"Zeichenfolge",transform:"Verwandeln",transformTitle:"Die Elemente dieses ${type} filtern, sortieren oder transformieren",transformTitleShort:"Inhalte filtern, sortieren oder transformieren",extract:"Auszug",extractTitle:"Extrahieren Sie diesen ${type}",transformQueryTitle:"Eine JMESPath-Abfrage eingeben",transformWizardLabel:"Zauberer",transformWizardFilter:"Filter",transformWizardSortBy:"Sortieren nach",transformWizardSelectFields:"Felder auswählen",transformQueryLabel:"Anfrage",transformPreviewLabel:"Vorschau",type:"Geben Sie ein.",typeTitle:"Ändern Sie den Typ dieses Feldes",openUrl:"Strg+Klicken oder Strg+Eingabe, um die URL in einem neuen Fenster zu öffnen",undo:"Letzte Aktion rückgängig machen (Strg+Z)",validationCannotMove:"Kann ein Feld nicht in ein Kind seiner selbst verschieben",autoType:'Feldtyp "auto". Der Feldtyp wird automatisch aus dem Wert bestimmt und kann ein String, eine Zahl, boolesch oder null sein.',objectType:'Feldtyp "Objekt". Ein Objekt enthält eine ungeordnete Menge von Schlüssel/Wert-Paaren.',arrayType:'Feldtyp "Array". Ein Array enthält eine geordnete Sammlung von Werten.',stringType:'Feldtyp "Zeichenfolge". Der Feldtyp wird nicht aus dem Wert bestimmt, sondern immer als Zeichenfolge zurückgegeben.',modeEditorTitle:"Editor-Modus umschalten",modeCodeText:"Code",modeCodeTitle:"Umschalten auf Code-Highlighter",modeFormText:"Formular",modeFormTitle:"Zum Formular-Editor wechseln",modeTextText:"Text",modeTextTitle:"Zum Editor für einfachen Text wechseln",modeTreeText:"Baum",modeTreeTitle:"Zum Baum-Editor wechseln",modeViewText:"Siehe",modeViewTitle:"Zur Baumansicht wechseln",modePreviewText:"Vorschau",modePreviewTitle:"In den Vorschau-Modus wechseln",examples:"Beispiele",default:"Standardmäßig",containsInvalidProperties:"Enthält ungültige Eigenschaften",containsInvalidItems:"Enthält ungültige Elemente"},ru:{array:"Массив",auto:"Авто",appendText:"Добавить",appendTitle:"Добавить новое поле с типом 'авто' после этого поля (Ctrl+Shift+Ins)",appendSubmenuTitle:"Выбрать тип поля для добавления",appendTitleAuto:"Добавить новое поле с типом 'авто' (Ctrl+Shift+Ins)",ascending:"По возрастанию",ascendingTitle:"Сортировать ${type} по возрастанию",actionsMenu:"Нажмите для открытия меню действий (Ctrl+M)",cannotParseFieldError:"Невозможно преобразовать поле в JSON",cannotParseValueError:"Невозможно преобразовать значение в JSON",collapseAll:"Свернуть все",compactTitle:"Минификация JSON (Ctrl+Shift+I)",descending:"По убыванию",descendingTitle:"Сортировать ${type} по убыванию",drag:"Потяните для перемещения этого поля (Alt+Shift+Arrows)",duplicateKey:"повторяющийся ключ",duplicateText:"Дублировать",duplicateTitle:"Дублирование полей (Ctrl+D)",duplicateField:"Дублировать поле (Ctrl+D)",duplicateFieldError:"Дублирование названия поля",empty:"пустой",expandAll:"Развернуть все",expandTitle:"Нажмите для раскрытия/скрытия поля (Ctrl+E)\nили Ctrl+Click для раскрытия/скрытия всех потомков.",formatTitle:"Форматирование JSON (Ctrl+I)",insert:"Вставить",insertTitle:"Вставить новое поле с типом 'авто' перед этим полем (Ctrl+Ins)",insertSub:"Выбрать тип поля для вставки",object:"Объект",ok:"ОК",redo:"Повторить (Ctrl+Shift+Z)",removeText:"Удалить",removeTitle:"Удалить выбранные поля (Ctrl+Del)",removeField:"Удалить поле (Ctrl+Del)",repairTitle:"Восстановите JSON: исправьте кавычки и escape-символы, удалите комментарии и нотацию JSONP, модифицируйте объекты JavaScript в JSON.",searchTitle:"Поиск",searchNextResultTitle:"Следующий результат (Enter)",searchPreviousResultTitle:"Предыдущий результат (Shift + Enter)",selectNode:"Выбор узла...",showAll:"показать все",showMore:"больше",showMoreStatus:"${visibleChilds} из ${totalChilds}",sort:"Сортировка",sortTitle:"Сортировка потомков типа ${type}",sortTitleShort:"Сортировка содержимого",sortFieldLabel:"Поле:",sortDirectionLabel:"Направление:",sortFieldTitle:"Выберите поле для сортировки массива или объекта",sortAscending:"По возрастанию",sortAscendingTitle:"Сортировка выбранного поря по возрастанию",sortDescending:"По убыванию",sortDescendingTitle:"Сортировка выбранного поря по убыванию",string:"Строка",transform:"Модификация",transformTitle:"Фильтрация, сортировка или модификация данных типа ${type}",transformTitleShort:"Фильтрация, сортировка или модификация данных",extract:"Извлечение",extractTitle:"Извлечь тип ${type}",transformQueryTitle:"Введите JMESpath запрос",transformWizardLabel:"Мастер",transformWizardFilter:"Фильтр",transformWizardSortBy:"Сортировка",transformWizardSelectFields:"Поля",transformQueryLabel:"Запрос",transformPreviewLabel:"Просмотр",type:"Тип",typeTitle:"Изменить тип этого поля",openUrl:"Ctrl+Click или Ctrl+Enter для открытия url в новом окне",undo:"Отменить (Ctrl+Z)",validationCannotMove:"Поле не может быть перемещено в потомка",autoType:"Тип поля автоматически определяется по значению и может быть строкой, числом, логическим значением или null.",objectType:"Объект содержит неупорядоченный набор пар ключ/значение.",arrayType:"Массив содержит упорядоченный набор значений.",stringType:"Тип поля не определяется из значения, но всегда возвращается как строка.",modeEditorTitle:"Переключение режима редактора",modeCodeText:"Код",modeCodeTitle:"Переключить в режим редактора кода",modeFormText:"Форма",modeFormTitle:"Переключить в режим формы",modeTextText:"Текст",modeTextTitle:"Переключить в режим редактора текста",modeTreeText:"Дерево",modeTreeTitle:"Переключить в режим редактора дерева",modeViewText:"Просмотр дерева",modeViewTitle:"Переключить в режим просмотра дерева",modePreviewText:"Просмотр",modePreviewTitle:"Переключить в режим просмотра",examples:"Примеры",default:"По умолчанию",containsInvalidProperties:"Содержит недопустимые свойства",containsInvalidItems:"Содержит недопустимые элементы"},ko:{array:"배열",auto:"자동",appendText:"추가",appendTitle:'선택한 요소 아래에 "자동" 요소를 추가합니다. (Ctrl + Shift + Ins)',appendSubmenuTitle:"추가할 요소의 유형을 선택해주세요.",appendTitleAuto:'"자동" 요소를 추가합니다. (Ctrl + Shift + Ins)',ascending:"오름차순",ascendingTitle:"선택한 ${type}의 하위 요소를 오름차순 정렬합니다.",actionsMenu:"메뉴 열기 (Ctrl + M)",cannotParseFieldError:"JSON의 요소를 해석할 수 없습니다.",cannotParseValueError:"JSON의 값을 해석할 수 없습니다.",collapseAll:"모두 접기",compactTitle:"모든 공백을 제거하여 JSON 데이터를 작게 만듭니다. (Ctrl + Shift + I)",descending:"내림차순",descendingTitle:"선택한 ${type}의 하위 요소를 내림차순으로 정렬",drag:"드래그하여 요소를 이동합니다. (Alt + Shift + Arrows)",duplicateKey:"복제키",duplicateText:"복제",duplicateTitle:"선택한 요소를 복제합니다. (Ctrl + D)",duplicateField:"선택한 요소를 복제합니다. (Ctrl + D)",duplicateFieldError:"요소 이름이 중복되었습니다.",empty:"비어있음",expandAll:"모두 열기",expandTitle:"클릭하여 요소를 열거나 닫습니다. (Ctrl + E) \nCtrl + Click으로 모든 하위 요소를 열거나 닫습니다.",formatTitle:"적절한 들여쓰기 및 줄바꿈으로 JSON 데이터를 정형화합니다. (Ctrl + I)",insert:"삽입",insertTitle:"선택한 요소 위에 새요소를 삽입합니다. (Ctrl + Ins)",insertSub:"삽입할 요소의 유형을 선택해주세요.",object:"객체",ok:"확인",redo:"다시 실행 (Ctrl + Shift + Z)",removeText:"삭제",removeTitle:"선택한 요소를 삭제합니다. (Ctrl + Del)",removeField:"선택한 요소를 삭제합니다. (Ctrl + Del)",repairTitle:"JSON 교정: JSON 내의 주석과 JSONP 표기법을 지우고 따옴표와 이스케이프 문자를 수정합니다.",searchTitle:"요소 또는 값 찾기",searchNextResultTitle:"다음으로 찾기 (Enter)",searchPreviousResultTitle:"이전으로 찾기 (Shift + Enter)",selectNode:"요소를 선택해주세요...",showAll:"모두보기",showMore:"더보기",showMoreStatus:"${totalChilds} 개의 항목 중 ${visibleChilds} 개를 표시합니다.",sort:"정렬",sortTitle:"선택한 ${type}의 하위 요소를 정렬합니다.",sortTitleShort:"정렬",sortFieldLabel:"요소:",sortDirectionLabel:"순서:",sortFieldTitle:"배열이나 객체를 정렬하는 요소를 선택해주세요.",sortAscending:"오름차순",sortAscendingTitle:"선택한 요소를 오름차순으로 정렬합니다.",sortDescending:"내림차순",sortDescendingTitle:"선택한 요소를 내림차순으로 정렬합니다.",string:"문자",transform:"변환",transformTitle:"선택한 ${type}의 하위 요소를 필터하거나 정렬 또는 변환합니다.",transformTitleShort:"내용을 필터하거나 정렬 또는 변환합니다.",extract:"추출",extractTitle:"선택한 ${type}의 값을 최상위에 위치시킵니다.",transformQueryTitle:"JMESPath 쿼리를 입력해주세요.",transformWizardLabel:"마법사",transformWizardFilter:"필터",transformWizardSortBy:"정렬",transformWizardSelectFields:"요소를 선택해주세요.",transformQueryLabel:"쿼리",transformPreviewLabel:"미리보기",type:"유형",typeTitle:"선택한 요소의 유형을 변경합니다.",openUrl:"Ctrl + Click 또는 Ctrl + Enter로 새 창에서 URL 열기",undo:"실행 취소 (Ctrl + Z)",validationCannotMove:"하위 요소로 이동할 수 없습니다.",autoType:"자동: 요소의 형식이 값의 유형으로 결정됩니다. 문자, 숫자, 부울, 또는 null만 허용됩니다.",objectType:"객체: 순서대로 나열되지 않은 이름/값 쌍으로 이루어진 집합입니다.",arrayType:"배열: 순서대로 나열된 값의 집합입니다.",stringType:"문자: 요소의 유형이 값에서 결정되지 않지만 항상 문자로 반환됩니다.",modeEditorTitle:"편집기 유형 변경",modeCodeText:"코드",modeCodeTitle:"형식 교정을 도와주는 기능이 포함된 문자 편집기",modeFormText:"입력 양식",modeFormTitle:"정해진 요소에 값을 입력하는 편집기",modeTextText:"문자",modeTextTitle:"단순 문자 편집기",modeTreeText:"트리",modeTreeTitle:"트리 구조로 표시되는 편집기",modeViewText:"보기",modeViewTitle:"읽기전용 트리 구조로 JSON을 표시",modePreviewText:"미리보기",modePreviewTitle:"읽기전용 문자로 JSON을 표시",examples:"예제",default:"기본값",containsInvalidProperties:"잘못된 속성이 포함되어 있습니다.",containsInvalidItems:"잘못된 항목이 포함되어 있습니다"}},i=Object.keys(n),o="en",s="undefined"!=typeof navigator?navigator.language||navigator.userLanguage:void 0,a=i.find(function(e){return e===s})||o;function l(e){var t;e&&((t=i.find(function(t){return t===e}))?a=t:console.error("Language not found"))}function c(e){if(e)for(var t in e)(t=>{i.find(function(e){return e===t})||i.push(t),n[t]=Object.assign({},n[o],n[t],e[t])})(t)}function u(e,t,r){var i=n[r=r||a][e]||n[o][e]||e;if(t)for(var s in t)i=i.replace("${"+s+"}",t[s]);return i}},3094:function(e,t){var r={b:"\b",f:"\f",n:"\n",r:"\r",t:"\t",'"':'"',"/":"/","\\":"\\"},n="a".charCodeAt(),i=(t.parse=function(e,t,i){var o={},s=0,a=0,l=0,c=i&&i.bigint&&"undefined"!=typeof BigInt;return{data:function t(r,n){u(),y(r,"value");var i,o=p();switch(o){case"t":h("rue"),i=!0;break;case"f":h("alse"),i=!1;break;case"n":h("ull"),i=null;break;case'"':i=d();break;case"[":i=(e=>{u();var r=[],n=0;if("]"!=p())for(f();;){r.push(t(e+"/"+n)),u();var i=p();if("]"==i)break;","!=i&&x(),u(),n++}return r})(r);break;case"{":i=(e=>{u();var r={};if("}"!=p())for(f();;){var n=b(),i=('"'!=p()&&x(),d()),o=e+"/"+m(i);if("}"==(v(o,"key",n),y(o,"keyEnd"),u(),":"!=p()&&x(),u(),r[i]=t(o),u(),n=p()))break;","!=n&&x(),u()}return r})(r);break;default:f(),0<="-0123456789".indexOf(o)?i=(()=>{var t="",r=!0,n=("-"==e[l]&&(t+=p()),t+=("0"==e[l]?p:g)(),"."==e[l]&&(t+=p()+g(),r=!1),"e"!=e[l]&&"E"!=e[l]||(t+=p(),"+"!=e[l]&&"-"!=e[l]||(t+=p()),t+=g(),r=!1),+t);return c&&r&&(n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER)?BigInt(t):n})():w()}return y(r,"valueEnd"),u(),n&&l<e.length&&w(),i}("",!0),pointers:o};function u(){e:for(;l<e.length;){switch(e[l]){case" ":a++;break;case"\t":a+=4;break;case"\r":a=0;break;case"\n":a=0,s++;break;default:break e}l++}}function d(){for(var e,t="";'"'!=(e=p());)"\\"==e?(e=p())in r?t+=r[e]:"u"==e?t+=(()=>{for(var e=4,t=0;e--;){t<<=4;var r=p().toLowerCase();"a"<=r&&r<="f"?t+=r.charCodeAt()-n+10:"0"<=r&&r<="9"?t+=+r:x()}return String.fromCharCode(t)})():x():t+=e;return t}function h(e){for(var t=0;t<e.length;t++)p()!==e[t]&&x()}function p(){A();var t=e[l];return l++,a++,t}function f(){l--,a--}function g(){for(var t="";"0"<=e[l]&&e[l]<="9";)t+=p();if(t.length)return t;A(),w()}function y(e,t){v(e,t,b())}function v(e,t,r){o[e]=o[e]||{},o[e][t]=r}function b(){return{line:s,column:a,pos:l}}function w(){throw new SyntaxError("Unexpected token "+e[l]+" in JSON at position "+l)}function x(){f(),w()}function A(){if(l>=e.length)throw new SyntaxError("Unexpected end of JSON input")}},t.stringify=function(e,t,r){if(o(e)){var n=0;switch(typeof(s="object"==typeof r?r.space:r)){case"number":var i=10<s?10:s<0?0:Math.floor(s),s=i&&x(i," "),a=i,l=i;break;case"string":s=s.slice(0,10);for(var c=l=a=0;c<s.length;c++){switch(s[c]){case" ":l++;break;case"\t":l+=4;break;case"\r":l=0;break;case"\n":l=0,n++;break;default:throw new Error("whitespace characters not allowed in JSON")}a++}break;default:s=void 0}var u="",d={},p=0,f=0,g=0,y=r&&r.es6&&"function"==typeof Map;return function e(t,r,n){switch(w(n,"value"),typeof t){case"number":case"bigint":case"boolean":v(""+t);break;case"string":v(h(t));break;case"object":null===t?v("null"):"function"==typeof t.toJSON?v(h(t.toJSON())):Array.isArray(t)?i():y?t.constructor.BYTES_PER_ELEMENT?i():t instanceof Map?l():t instanceof Set?l(!0):a():a()}function i(){if(t.length){v("[");for(var i=r+1,s=0;s<t.length;s++){s&&v(","),b(i);var a=o(t[s])?t[s]:null;e(a,i,n+"/"+s)}b(r),v("]")}else v("[]")}function a(){var i=Object.keys(t);if(i.length){v("{");for(var a=r+1,l=0;l<i.length;l++){var c,u=i[l],d=t[u];o(d)&&(l&&v(","),c=n+"/"+m(u),b(a),w(c,"key"),v(h(u)),w(c,"keyEnd"),v(":"),s&&v(" "),e(d,a,c))}b(r),v("}")}else v("{}")}function l(i){if(t.size){v("{");for(var a=r+1,l=!0,c=t.entries(),u=c.next();!u.done;){var d,p,f=(p=u.value)[0];o(p=!!i||p[1])&&(l||v(","),l=!1,d=n+"/"+m(f),b(a),w(d,"key"),v(h(f)),w(d,"keyEnd"),v(":"),s&&v(" "),e(p,a,d)),u=c.next()}b(r),v("}")}else v("{}")}w(n,"valueEnd")}(e,0,""),{json:u,pointers:d}}function v(e){f+=e.length,g+=e.length,u+=e}function b(e){if(s){for(u+="\n"+x(e,s),p++,f=0;e--;)n?(p+=n,f=l):f+=l,g+=a;g+=1}}function w(e,t){d[e]=d[e]||{},d[e][t]={line:p,column:f,pos:g}}function x(e,t){return Array(e+1).join(t)}},["number","bigint","boolean","string","object"]);function o(e){return 0<=i.indexOf(typeof e)}var s=/"|\\/g,a=/[\b]/g,l=/\f/g,c=/\n/g,u=/\r/g,d=/\t/g;function h(e){return'"'+(e=e.replace(s,"\\$&").replace(l,"\\f").replace(a,"\\b").replace(c,"\\n").replace(u,"\\r").replace(d,"\\t"))+'"'}var p=/~/g,f=/\//g;function m(e){return e.replace(p,"~0").replace(f,"~1")}},3420:function(e){e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},3483:function(e,t,r){var n=r(8161),i=r(6862).toHash;e.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=i(t),e.types=i(["number","integer","string","array","object","boolean","null"]),e.forEach(function(r){r.rules=r.rules.map(function(r){var i,o;return"object"==typeof r&&(o=r[i=Object.keys(r)[0]],r=i,o.forEach(function(r){t.push(r),e.all[r]=!0})),t.push(r),e.all[r]={keyword:r,code:n[r],implements:o}}),e.all.$comment={keyword:"$comment",code:n.$comment},r.type&&(e.types[r.type]=r)}),e.keywords=i(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},3531:function(e){e.exports=function(e,t,r){var n=" ",i=e.schema[t],o=e.schemaPath+e.util.getProperty(t),s=e.errSchemaPath+"/"+t,a=!e.opts.allErrors,l=e.util.copy(e),c="",u=(l.level++,"valid"+l.level),d=l.baseId,h=!0,p=i;if(p)for(var f,m=-1,g=p.length-1;m<g;)f=p[m+=1],(e.opts.strictKeywords?"object"==typeof f&&0<Object.keys(f).length||!1===f:e.util.schemaHasRules(f,e.RULES.all))&&(h=!1,l.schema=f,l.schemaPath=o+"["+m+"]",l.errSchemaPath=s+"/"+m,n+=" "+e.validate(l)+" ",l.baseId=d,a)&&(n+=" if ("+u+") { ",c+="}");return a&&(n+=h?" if (true) { ":" "+c.slice(0,-1)+" "),n}},3689:function(e,t,r){var n=r(4292);function i(e,t,r){this.message=r||i.message(e,t),this.missingRef=n.url(e,t),this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function o(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}e.exports={Validation:o(function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0}),MissingRef:o(i)},i.message=function(e,t){return"can't resolve reference "+t+" from id "+e}},3913:function(e){e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(o||""),d=(t="valid"+i,o="errs__"+i,e.util.copy(e)),h="",p=(d.level++,"valid"+d.level),f=(i="i"+i,d.dataLevel=e.dataLevel+1),m="data"+f,g=e.baseId;if(n+="var "+o+" = errors;var "+t+";",Array.isArray(s)){var y,v,b=e.schema.additionalItems,w=(!1===b&&(n+=" "+t+" = "+u+".length <= "+s.length+"; ",y=l,l=e.errSchemaPath+"/additionalItems",(v=v||[]).push(n+=" if (!"+t+") { "),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+s.length+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have more than "+s.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",t=n,n=v.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+t+"]); ":n+=" validate.errors = ["+t+"]; return false; ":n+=" var err = "+t+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",l=y,c)&&(h+="}",n+=" else { "),s);if(w)for(var x=-1,A=w.length-1;x<A;){var C,S,I=w[x+=1];(e.opts.strictKeywords?"object"==typeof I&&0<Object.keys(I).length||!1===I:e.util.schemaHasRules(I,e.RULES.all))&&(n+=" "+p+" = true; if ("+u+".length > "+x+") { ",C=u+"["+x+"]",d.schema=I,d.schemaPath=a+"["+x+"]",d.errSchemaPath=l+"/"+x,d.errorPath=e.util.getPathExpr(e.errorPath,x,e.opts.jsonPointers,!0),d.dataPathArr[f]=x,S=e.validate(d),d.baseId=g,e.util.varOccurences(S,m)<2?n+=" "+e.util.varReplace(S,m,C)+" ":n+=" var "+m+" = "+C+"; "+S+" ",n+=" } ",c)&&(n+=" if ("+p+") { ",h+="}")}"object"==typeof b&&(e.opts.strictKeywords?"object"==typeof b&&0<Object.keys(b).length||!1===b:e.util.schemaHasRules(b,e.RULES.all))&&(d.schema=b,d.schemaPath=e.schemaPath+".additionalItems",d.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+p+" = true; if ("+u+".length > "+s.length+") { for (var "+i+" = "+s.length+"; "+i+" < "+u+".length; "+i+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,i,e.opts.jsonPointers,!0),C=u+"["+i+"]",d.dataPathArr[f]=i,S=e.validate(d),d.baseId=g,e.util.varOccurences(S,m)<2?n+=" "+e.util.varReplace(S,m,C)+" ":n+=" var "+m+" = "+C+"; "+S+" ",c&&(n+=" if (!"+p+") break; "),n+=" } } ",c)&&(n+=" if ("+p+") { ",h+="}")}else(e.opts.strictKeywords?"object"==typeof s&&0<Object.keys(s).length||!1===s:e.util.schemaHasRules(s,e.RULES.all))&&(d.schema=s,d.schemaPath=a,d.errSchemaPath=l,n+=" for (var "+i+" = 0; "+i+" < "+u+".length; "+i+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,i,e.opts.jsonPointers,!0),C=u+"["+i+"]",d.dataPathArr[f]=i,S=e.validate(d),d.baseId=g,e.util.varOccurences(S,m)<2?n+=" "+e.util.varReplace(S,m,C)+" ":n+=" var "+m+" = "+C+"; "+S+" ",c&&(n+=" if (!"+p+") break; "),n+=" }");return c&&(n+=" "+h+" if ("+o+" == errors) {"),n}},4221:function(e,t,r){e=r.nmd(e),ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,r){function n(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}}var i=e("../lib/oop");e=e("./text_highlight_rules").TextHighlightRules,i.inherits(n,e),t.JsonHighlightRules=n}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,r){function n(){}var i=e("../range").Range;(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var r,n=e.getLine(t).match(/^(\s*\})/);return n&&(n=n[1].length,r=e.findMatchingBracket({row:t,column:n}))&&r.row!=t?(r=this.$getIndent(e.getLine(r.row)),void e.replace(new i(t,0,t,n-1),r)):0},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(n.prototype),t.MatchingBraceOutdent=n}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,r){var n=e("../../lib/oop"),i=e("../../range").Range;e=e("./fold_mode").FoldMode,t=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))},n.inherits(t,e),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,r){var n=e.getLine(r);return!this.singleLineBlockCommentRe.test(n)||this.startRegionRe.test(n)||this.tripleStarBlockCommentRe.test(n)?!(e=this._getFoldWidgetBase(e,t,r))&&this.startRegionRe.test(n)?"start":e:""},this.getFoldWidgetRange=function(e,t,r,n){var i,o,s,a=e.getLine(r);return this.startRegionRe.test(a)?this.getCommentRegionBlock(e,a,r):(o=a.match(this.foldingStartMarker))?(s=o.index,o[1]?this.openingBracketBlock(e,o[1],r,s):((i=e.getCommentFoldRange(r,s+o[0].length,1))&&!i.isMultiLine()&&(n?i=this.getSectionRange(e,r):"all"!=t&&(i=null)),i)):"markbegin"!==t&&(o=a.match(this.foldingStopMarker))?(s=o.index+o[0].length,o[1]?this.closingBracketBlock(e,o[1],r,s):e.getCommentFoldRange(r,s,-1)):void 0},this.getSectionRange=function(e,t){for(var r=(l=e.getLine(t)).search(/\S/),n=t,o=l.length,s=t+=1,a=e.getLength();++t<a;){var l,c=(l=e.getLine(t)).search(/\S/);if(-1!==c){if(c<r)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=n)break;if(u.isMultiLine())t=u.end.row;else if(r==c)break}s=t}}return new i(n,o,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,r){for(var n=t.search(/\s*$/),o=e.getLength(),s=r,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++r<o;){t=e.getLine(r);var c=a.exec(t);if(c&&(c[1]?l--:l++,!l))break}if(s<r)return new i(s,n,r,t.length)}}.call(t.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,t,r){function n(){this.HighlightRules=s,this.$outdent=new a,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new l}var i=e("../lib/oop"),o=e("./text").Mode,s=e("./json_highlight_rules").JsonHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,l=e("./folding/cstyle").FoldMode,c=e("../worker/worker_client").WorkerClient;i.inherits(n,o),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,r){var n=this.$getIndent(t);return"start"==e&&t.match(/^.*[\{\(\[]\s*$/)&&(n+=r),n},this.checkOutdent=function(e,t,r){return this.$outdent.checkOutdent(t,r)},this.autoOutdent=function(e,t,r){this.$outdent.autoOutdent(t,r)},this.createWorker=function(e){var t=new c(["ace"],"ace/mode/json_worker","JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(t){e.setAnnotations(t.data)}),t.on("terminate",function(){e.clearAnnotations()}),t},this.$id="ace/mode/json"}.call(n.prototype),t.Mode=n}),ace.require(["ace/mode/json"],function(t){e&&(e.exports=t)})},4292:function(e,t,r){var n=r(6777),i=r(5215),o=r(6862),s=r(4427),a=r(4316);function l(e,t,r){var n,i,o,a=this._refs[r];if("string"==typeof a){if(!this._refs[a])return l.call(this,e,t,a);a=this._refs[a]}return(a=a||this._schemas[r])instanceof s?p(a.schema,this._opts.inlineRefs)?a.schema:a.validate||this._compile(a):((a=c.call(this,t,r))&&(n=a.schema,t=a.root,o=a.baseId),n instanceof s?i=n.validate||e.call(this,n.schema,t,void 0,o):void 0!==n&&(i=p(n,this._opts.inlineRefs)?n:e.call(this,n,t,void 0,o)),i)}function c(e,t){var r=n.parse(t),i=m(r),o=f(this._getId(e.schema));if(0===Object.keys(e.schema).length||i!==o){i=y(i);var a=this._refs[i];if("string"==typeof a)return function(e,t,r){var n,i;if(t=c.call(this,e,t))return n=t.schema,i=t.baseId,e=t.root,(t=this._getId(n))&&(i=v(i,t)),d.call(this,r,i,n,e)}.call(this,e,a,r);if(a instanceof s)a.validate||this._compile(a);else{if(!((a=this._schemas[i])instanceof s))return;if(a.validate||this._compile(a),i==y(t))return{schema:a,root:e,baseId:o}}if(!(e=a).schema)return;o=f(this._getId(e.schema))}return d.call(this,r,o,e.schema,e)}(e.exports=l).normalizeId=y,l.fullPath=f,l.url=v,l.ids=function(e){var t=y(this._getId(e)),r={"":t},s={"":f(t,!1)},l={},c=this;return a(e,{allKeys:!0},function(e,t,a,u,d,h,p){if(""!==t){var f=c._getId(e),m=r[u];if(u=s[u]+"/"+d,void 0!==p&&(u+="/"+("number"==typeof p?p:o.escapeFragment(p))),"string"==typeof f)if(f=m=y(m?n.resolve(m,f):f),(d="string"==typeof(d=c._refs[f])?c._refs[d]:d)&&d.schema){if(!i(e,d.schema))throw new Error('id "'+f+'" resolves to more than one schema')}else if(f!=y(u))if("#"==f[0]){if(l[f]&&!i(e,l[f]))throw new Error('id "'+f+'" resolves to more than one schema');l[f]=e}else c._refs[f]=u;r[t]=m,s[t]=u}}),l},l.inlineRef=p,l.schema=c;var u=o.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function d(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var i=e.fragment.split("/"),s=1;s<i.length;s++){var a=i[s];if(a){if(void 0===(r=r[a=o.unescapeFragment(a)]))break;u[a]||((a=this._getId(r))&&(t=v(t,a)),r.$ref&&(a=v(t,r.$ref),a=c.call(this,n,a))&&(r=a.schema,n=a.root,t=a.baseId))}}return void 0!==r&&r!==n.schema?{schema:r,root:n,baseId:t}:void 0}}var h=o.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function p(e,t){return!1!==t&&(void 0===t||!0===t?function e(t){var r;if(Array.isArray(t)){for(var n=0;n<t.length;n++)if("object"==typeof(r=t[n])&&!e(r))return!1}else for(var i in t){if("$ref"==i)return!1;if("object"==typeof(r=t[i])&&!e(r))return!1}return!0}(e):t?function e(t){var r,n=0;if(Array.isArray(t)){for(var i=0;i<t.length;i++)if("object"==typeof(r=t[i])&&(n+=e(r)),n==1/0)return 1/0}else for(var o in t){if("$ref"==o)return 1/0;if(h[o])n++;else if("object"==typeof(r=t[o])&&(n+=e(r)+1),n==1/0)return 1/0}return n}(e)<=t:void 0)}function f(e,t){return!1!==t&&(e=y(e)),m(n.parse(e))}function m(e){return n.serialize(e).split("#")[0]+"#"}var g=/#\/?$/;function y(e){return e?e.replace(g,""):""}function v(e,t){return t=y(t),n.resolve(e,t)}},4316:function(e){var t=e.exports=function(e,n,i){"function"==typeof n&&(i=n,n={}),function e(n,i,o,s,a,l,c,u,d,h){if(s&&"object"==typeof s&&!Array.isArray(s)){for(var p in i(s,a,l,c,u,d,h),s){var f=s[p];if(Array.isArray(f)){if(p in t.arrayKeywords)for(var m=0;m<f.length;m++)e(n,i,o,f[m],a+"/"+p+"/"+m,l,a,p,s,m)}else if(p in t.propsKeywords){if(f&&"object"==typeof f)for(var g in f)e(n,i,o,f[g],a+"/"+p+"/"+r(g),l,a,p,s,g)}else(p in t.keywords||n.allKeys&&!(p in t.skipKeywords))&&e(n,i,o,f,a+"/"+p,l,a,p,s)}o(s,a,l,c,u,d,h)}}(n,"function"==typeof(i=n.cb||i)?i:i.pre||function(){},i.post||function(){},e,"",e)};function r(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},4427:function(e,t,r){var n=r(6862);e.exports=function(e){n.copy(e,this)}},4682:function(e){e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=(t=e.errSchemaPath+"/"+t,!e.opts.allErrors),c="data"+(o||"");if(!1===e.opts.format)l&&(n+=" if (true) { ");else{var u,d=e.opts.$data&&s&&s.$data,h=(o=d?(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ","schema"+i):s,e.opts.unknownFormats),p=Array.isArray(h);if(d)n+=" var "+(u="format"+i)+" = formats["+o+"]; var "+(f="isObject"+i)+" = typeof "+u+" == 'object' && !("+u+" instanceof RegExp) && "+u+".validate; var "+(g="formatType"+i)+" = "+f+" && "+u+".type || 'string'; if ("+f+") { ",e.async&&(n+=" var async"+i+" = "+u+".async; "),n+=" "+u+" = "+u+".validate; } if ( ",d&&(n+=" ("+o+" !== undefined && typeof "+o+" != 'string') || "),n+=" (","ignore"!=h&&(n+=" ("+o+" && !"+u+" ",p&&(n+=" && self._opts.unknownFormats.indexOf("+o+") == -1 "),n+=") || "),n=(n+=" ("+u+" && "+g+" == '"+r+"' && !(typeof "+u+" == 'function' ? ")+(e.async?" (async"+i+" ? await "+u+"("+c+") : "+u+"("+c+")) ":" "+u+"("+c+") ")+" : "+u+".test("+c+"))))) {";else{if(!(u=e.formats[s])){if("ignore"==h)return e.logger.warn('unknown format "'+s+'" ignored in schema at path "'+e.errSchemaPath+'"'),l&&(n+=" if (true) { "),n;if(p&&0<=h.indexOf(s))return l&&(n+=" if (true) { "),n;throw new Error('unknown format "'+s+'" is used in schema at path "'+e.errSchemaPath+'"')}var f,m,g=(f="object"==typeof u&&!(u instanceof RegExp)&&u.validate)&&u.type||"string";if(f&&(m=!0===u.async,u=u.validate),g!=r)return l&&(n+=" if (true) { "),n;if(m){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(y="formats"+e.util.getProperty(s)+".validate")+"("+c+"))) { "}else{n+=" if (! ";var y="formats"+e.util.getProperty(s);f&&(y+=".validate"),n=n+("function"==typeof u?" "+y+"("+c+") ":" "+y+".test("+c+") ")+") { "}}(i=[]).push(n),n="",!1!==e.createErrors?(n=(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(t)+" , params: { format: ")+(d?""+o:""+e.util.toQuotedString(s))+" } ",!1!==e.opts.messages&&(n=(n+=" , message: 'should match format \"")+(d?"' + "+o+" + '":""+e.util.escapeQuotes(s))+"\"' "),e.opts.verbose&&(n=(n=(n+=" , schema: ")+(d?"validate.schema"+a:""+e.util.toQuotedString(s)))+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ",p=n,n=i.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+p+"]); ":n+=" validate.errors = ["+p+"]; return false; ":n+=" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",l&&(n+=" else { ")}return n}},4772:function(e){function t(){}t.prototype={on:function(e,t){this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(t)},off:function(e,t){this._events=this._events||{},e in this._events!=0&&this._events[e].splice(this._events[e].indexOf(t),1)},emit:function(e){if(this._events=this._events||{},e in this._events!=0)for(var t=0;t<this._events[e].length;t++)this._events[e][t].apply(this,Array.prototype.slice.call(arguments,1))}},t.mixin=function(e){for(var r=["on","off","emit"],n=0;n<r.length;n++)"function"==typeof e?e.prototype[r[n]]=t.prototype[r[n]]:e[r[n]]=t.prototype[r[n]];return e};var r={escapeRegExp:function(e){var t=/[\\^$.*+?()[\]{}|]/g,r=new RegExp(t.source);return e&&r.test(e)?e.replace(t,"\\$&"):e},extend:function(e,t){for(var n in t){var i;t.hasOwnProperty(n)&&((i=t[n])&&"[object Object]"===Object.prototype.toString.call(i)?(e[n]=e[n]||{},r.extend(e[n],i)):e[n]=i)}return e},each:function(e,t,r){if("[object Object]"===Object.prototype.toString.call(e))for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.call(r,n,e[n],e);else for(var i=0,o=e.length;i<o;i++)t.call(r,i,e[i],e)},createElement:function(e,t){var r,n=document.createElement(e);if(t&&"[object Object]"===Object.prototype.toString.call(t))for(r in t)r in n?n[r]=t[r]:"html"===r?n.innerHTML=t[r]:n.setAttribute(r,t[r]);return n},hasClass:function(e,t){if(e)return e.classList?e.classList.contains(t):!!e.className&&!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))},addClass:function(e,t){r.hasClass(e,t)||(e.classList?e.classList.add(t):e.className=e.className.trim()+" "+t)},removeClass:function(e,t){r.hasClass(e,t)&&(e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," "))},closest:function(e,t){return e&&e!==document.body&&(t(e)?e:r.closest(e.parentNode,t))},isInt:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},debounce:function(e,t,r){var n;return function(){var i=this,o=arguments,s=r&&!n;clearTimeout(n),n=setTimeout(function(){n=null,r||e.apply(i,o)},t),s&&e.apply(i,o)}},rect:function(e,t){var r=window,n=(e=e.getBoundingClientRect(),t?r.pageXOffset:0);return t=t?r.pageYOffset:0,{bottom:e.bottom+t,height:e.height,left:e.left+n,right:e.right+n,top:e.top+t,width:e.width}},includes:function(e,t){return-1<e.indexOf(t)},startsWith:function(e,t){return e.substr(0,t.length)===t},truncate:function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}};function n(e,t){return e.hasOwnProperty(t)&&(!0===e[t]||e[t].length)}function i(e,t,n){e.parentNode?e.parentNode.parentNode||t.appendChild(e.parentNode):t.appendChild(e),r.removeClass(e,"excluded"),n||(e.textContent=e.textContent)}function o(){var e,t;this.items.length&&(e=document.createDocumentFragment(),this.config.pagination?(t=this.pages.slice(0,this.pageIndex),r.each(t,function(t,n){r.each(n,function(t,r){i(r,e,this.customOption)},this)},this)):r.each(this.items,function(t,r){i(r,e,this.customOption)},this),e.childElementCount&&(r.removeClass(this.items[this.navIndex],"active"),this.navIndex=(e.querySelector(".selectr-option.selected")||e.querySelector(".selectr-option")).idx,r.addClass(this.items[this.navIndex],"active")),this.tree.appendChild(e))}function s(e,t){t=t||e;var n={class:"selectr-option",role:"treeitem","aria-selected":!1};return this.customOption?n.html=this.config.renderOption(t):n.textContent=e.textContent,(t=r.createElement("li",n)).idx=e.idx,this.items.push(t),e.defaultSelected&&this.defaultSelected.push(e.idx),e.disabled&&(t.disabled=!0,r.addClass(t,"disabled")),t}function a(){var e,t=this.tree,n=t.scrollTop;t.scrollHeight-t.offsetHeight<=n&&this.pageIndex<this.pages.length&&(e=document.createDocumentFragment(),r.each(this.pages[this.pageIndex],function(t,r){i(r,e,this.customOption)},this),t.appendChild(e),this.pageIndex++,this.emit("selectr.paginate",{items:this.items.length,total:this.data.length,page:this.pageIndex,pages:this.pages.length}))}function l(){(this.config.searchable||this.config.taggable)&&(this.input.value=null,this.searching=!1,this.config.searchable&&r.removeClass(this.inputContainer,"active"),r.hasClass(this.container,"notice")&&(r.removeClass(this.container,"notice"),r.addClass(this.container,"open"),this.input.focus()),r.each(this.items,function(e,t){r.removeClass(t,"excluded"),this.customOption||(t.textContent=t.textContent)},this))}function c(e,t){if(!e)throw new Error("You must supply either a HTMLSelectElement or a CSS3 selector string.");if("string"==typeof(this.el=e)&&(this.el=document.querySelector(e)),null===this.el)throw new Error("The element you passed to Selectr can not be found.");if("select"!==this.el.nodeName.toLowerCase())throw new Error("The element you passed to Selectr is not a HTMLSelectElement.");this.render(t)}c.prototype.render=function(e){var i;this.rendered||((this.el.selectr=this).config=r.extend({defaultSelected:!0,width:"auto",disabled:!1,disabledMobile:!1,searchable:!0,clearable:!1,sortSelected:!1,allowDeselect:!1,closeOnScroll:!1,nativeDropdown:!1,nativeKeyboard:!1,placeholder:"Select an option...",taggable:!1,tagPlaceholder:"Enter a tag...",messages:{noResults:"No results.",noOptions:"No options available.",maxSelections:"A maximum of {max} items can be selected.",tagDuplicate:"That tag is already in use.",searchPlaceholder:"Search options..."}},e),this.originalType=this.el.type,this.originalIndex=this.el.tabIndex,this.defaultSelected=[],this.originalOptionCount=this.el.options.length,(this.config.multiple||this.config.taggable)&&(this.el.multiple=!0),this.disabled=n(this.config,"disabled"),this.opened=!1,this.config.taggable&&(this.config.searchable=!1),this.navigating=!1,this.mobileDevice=!1,!this.config.disabledMobile&&/Android|webOS|iPhone|iPad|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile/i.test(navigator.userAgent)&&(this.mobileDevice=!0),this.customOption=this.config.hasOwnProperty("renderOption")&&"function"==typeof this.config.renderOption,this.customSelected=this.config.hasOwnProperty("renderSelection")&&"function"==typeof this.config.renderSelection,this.supportsEventPassiveOption=this.detectEventPassiveOption(),t.mixin(this),function(){this.requiresPagination=this.config.pagination&&0<this.config.pagination,n(this.config,"width")&&(r.isInt(this.config.width)?this.width=this.config.width+"px":"auto"===this.config.width?this.width="100%":r.includes(this.config.width,"%")&&(this.width=this.config.width)),this.container=r.createElement("div",{class:"selectr-container"}),this.config.customClass&&r.addClass(this.container,this.config.customClass),this.mobileDevice?r.addClass(this.container,"selectr-mobile"):r.addClass(this.container,"selectr-desktop"),this.el.tabIndex=-1,this.config.nativeDropdown||this.mobileDevice?r.addClass(this.el,"selectr-visible"):r.addClass(this.el,"selectr-hidden"),this.selected=r.createElement("div",{class:"selectr-selected",disabled:this.disabled,tabIndex:0,"aria-expanded":!1}),this.label=r.createElement(this.el.multiple?"ul":"span",{class:"selectr-label"});var e=r.createElement("div",{class:"selectr-options-container"});if(this.tree=r.createElement("ul",{class:"selectr-options",role:"tree","aria-hidden":!0,"aria-expanded":!1}),this.notice=r.createElement("div",{class:"selectr-notice"}),this.el.setAttribute("aria-hidden",!0),this.disabled&&(this.el.disabled=!0),this.el.multiple?(r.addClass(this.label,"selectr-tags"),r.addClass(this.container,"multiple"),this.tags=[],this.selectedValues=this.config.defaultSelected?this.getSelectedProperties("value"):[],this.selectedIndexes=this.getSelectedProperties("idx")):(this.selectedValue=null,this.selectedIndex=-1),this.selected.appendChild(this.label),this.config.clearable&&(this.selectClear=r.createElement("button",{class:"selectr-clear",type:"button"}),this.container.appendChild(this.selectClear),r.addClass(this.container,"clearable")),this.config.taggable){var t=r.createElement("li",{class:"input-tag"});if(this.input=r.createElement("input",{class:"selectr-tag-input",placeholder:this.config.tagPlaceholder,tagIndex:0,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",role:"textbox",type:"search"}),t.appendChild(this.input),this.label.appendChild(t),r.addClass(this.container,"taggable"),this.tagSeperators=[","],this.config.tagSeperators){this.tagSeperators=this.tagSeperators.concat(this.config.tagSeperators);for(var i=[],o=0;o<this.tagSeperators.length;o++)i.push(r.escapeRegExp(this.tagSeperators[o]));this.tagSeperatorsRegex=new RegExp(i.join("|"),"i")}else this.tagSeperatorsRegex=new RegExp(",","i")}this.config.searchable&&(this.input=r.createElement("input",{class:"selectr-input",tagIndex:-1,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",role:"textbox",type:"search",placeholder:this.config.messages.searchPlaceholder}),this.inputClear=r.createElement("button",{class:"selectr-input-clear",type:"button"}),this.inputContainer=r.createElement("div",{class:"selectr-input-container"}),this.inputContainer.appendChild(this.input),this.inputContainer.appendChild(this.inputClear),e.appendChild(this.inputContainer)),e.appendChild(this.notice),e.appendChild(this.tree),this.items=[],this.options=[],this.el.options.length&&(this.options=[].slice.call(this.el.options));var a,l,c,u=!1,d=0;this.el.children.length&&r.each(this.el.children,function(e,t){"OPTGROUP"===t.nodeName?(u=r.createElement("ul",{class:"selectr-optgroup",role:"group",html:"<li class='selectr-optgroup--label'>"+t.label+"</li>"}),r.each(t.children,function(e,t){t.idx=d,u.appendChild(s.call(this,t,u)),d++},this)):(t.idx=d,s.call(this,t),d++)},this),this.config.data&&Array.isArray(this.config.data)&&(a=!(this.data=[]),u=!1,d=0,r.each(this.config.data,function(e,t){n(t,"children")?(a=r.createElement("optgroup",{label:t.text}),u=r.createElement("ul",{class:"selectr-optgroup",role:"group",html:"<li class='selectr-optgroup--label'>"+t.text+"</li>"}),r.each(t.children,function(e,t){(l=new Option(t.text,t.value,!1,t.hasOwnProperty("selected")&&!0===t.selected)).disabled=n(t,"disabled"),this.options.push(l),a.appendChild(l),l.idx=d,u.appendChild(s.call(this,l,t)),this.data[d]=t,d++},this),this.el.appendChild(a)):((l=new Option(t.text,t.value,!1,t.hasOwnProperty("selected")&&!0===t.selected)).disabled=n(t,"disabled"),this.options.push(l),l.idx=d,s.call(this,l,t),this.data[d]=t,d++)},this)),this.setSelected(!0);for(var h=this.navIndex=0;h<this.items.length;h++)if(c=this.items[h],!r.hasClass(c,"disabled")){r.addClass(c,"active"),this.navIndex=h;break}this.requiresPagination&&(this.pageIndex=1,this.paginate()),this.container.appendChild(this.selected),this.container.appendChild(e),this.placeEl=r.createElement("div",{class:"selectr-placeholder"}),this.setPlaceholder(),this.selected.appendChild(this.placeEl),this.disabled&&this.disable(),this.el.parentNode.insertBefore(this.container,this.el),this.container.appendChild(this.el)}.call(this),this.bindEvents(),this.update(),this.optsRect=r.rect(this.tree),this.rendered=!0,this.el.multiple||(this.el.selectedIndex=this.selectedIndex),i=this,setTimeout(function(){i.emit("selectr.init")},20))},c.prototype.getSelected=function(){return this.el.querySelectorAll("option:checked")},c.prototype.getSelectedProperties=function(e){var t=this.getSelected();return[].slice.call(t).map(function(t){return t[e]}).filter(function(e){return null!=e})},c.prototype.detectEventPassiveOption=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e},c.prototype.bindEvents=function(){var e,t=this;this.events={},this.events.dismiss=function(e){e=e.target,this.container.contains(e)||!this.opened&&!r.hasClass(this.container,"notice")||this.close()}.bind(this),this.events.navigate=function(e){if(e=e||window.event,this.items.length&&this.opened&&r.includes([13,38,40],e.which)){if(e.preventDefault(),13===e.which)return!(this.noResults||this.config.taggable&&0<this.input.value.length)&&this.change(this.navIndex);var t,n=this.items[this.navIndex],i=this.navIndex;switch(e.which){case 38:(t=0)<this.navIndex&&this.navIndex--;break;case 40:this.navIndex<this.items.length-(t=1)&&this.navIndex++}for(this.navigating=!0;r.hasClass(this.items[this.navIndex],"disabled")||r.hasClass(this.items[this.navIndex],"excluded");){if(!(0<this.navIndex&&this.navIndex<this.items.length-1)){this.navIndex=i;break}if(t?this.navIndex++:this.navIndex--,this.searching){if(this.navIndex>this.tree.lastElementChild.idx){this.navIndex=this.tree.lastElementChild.idx;break}if(this.navIndex<this.tree.firstElementChild.idx){this.navIndex=this.tree.firstElementChild.idx;break}}}e=r.rect(this.items[this.navIndex]),t?(0===this.navIndex?this.tree.scrollTop=0:e.top+e.height>this.optsRect.top+this.optsRect.height&&(this.tree.scrollTop=this.tree.scrollTop+(e.top+e.height-(this.optsRect.top+this.optsRect.height))),this.navIndex===this.tree.childElementCount-1&&this.requiresPagination&&a.call(this)):0===this.navIndex?this.tree.scrollTop=0:e.top-this.optsRect.top<0&&(this.tree.scrollTop=this.tree.scrollTop+(e.top-this.optsRect.top)),n&&r.removeClass(n,"active"),r.addClass(this.items[this.navIndex],"active")}else this.navigating=!1}.bind(this),this.events.reset=this.reset.bind(this),(this.config.nativeDropdown||this.mobileDevice)&&(this.container.addEventListener("touchstart",function(e){e.changedTouches[0].target===t.el&&t.toggle()},!!this.supportsEventPassiveOption&&{passive:!0}),this.container.addEventListener("click",function(e){e.target===t.el&&t.toggle()}),this.el.addEventListener("change",function(e){e.__selfTriggered||(t.el.multiple?(e=t.getSelectedProperties("idx"),e=((e,t)=>{for(var r,n=[],i=e.slice(0),o=0;o<t.length;o++)-1<(r=i.indexOf(t[o]))?i.splice(r,1):n.push(t[o]);return[n,i]})(t.selectedIndexes,e),r.each(e[0],function(e,r){t.select(r)},t),r.each(e[1],function(e,r){t.deselect(r)},t)):-1<t.el.selectedIndex&&t.select(t.el.selectedIndex))})),this.config.nativeDropdown&&this.container.addEventListener("keydown",function(e){"Enter"===e.key&&t.selected===document.activeElement&&(t.toggle(),setTimeout(function(){t.el.focus()},200))}),this.selected.addEventListener("click",function(e){t.disabled||t.toggle(),e.preventDefault()}),this.config.nativeKeyboard&&(e="",this.selected.addEventListener("keydown",function(r){var n;t.disabled||t.selected!==document.activeElement||r.altKey||r.ctrlKey||r.metaKey||(" "===r.key||!t.opened&&-1<["Enter","ArrowUp","ArrowDown"].indexOf(r.key)?(t.toggle(),r.preventDefault(),r.stopPropagation()):r.key.length<=2&&String[String.fromCodePoint?"fromCodePoint":"fromCharCode"](r.key[String.codePointAt?"codePointAt":"charCodeAt"](0))===r.key&&(t.config.multiple?(t.open(),t.config.searchable&&(t.input.value=r.key,t.input.focus(),t.search(null,!0))):(e+=r.key,(n=t.search(e,!0))&&n.length&&(t.clear(),t.setValue(n[0].value)),setTimeout(function(){e=""},1e3)),r.preventDefault(),r.stopPropagation()))}),this.container.addEventListener("keyup",function(e){t.opened&&"Escape"===e.key&&(t.close(),e.stopPropagation(),t.selected.focus())})),this.label.addEventListener("click",function(e){r.hasClass(e.target,"selectr-tag-remove")&&t.deselect(e.target.parentNode.idx)}),this.selectClear&&this.selectClear.addEventListener("click",this.clear.bind(this)),this.tree.addEventListener("mousedown",function(e){e.preventDefault()}),this.tree.addEventListener("click",function(e){var n=r.closest(e.target,function(e){return e&&r.hasClass(e,"selectr-option")});n&&!r.hasClass(n,"disabled")&&(r.hasClass(n,"selected")?(t.el.multiple||!t.el.multiple&&t.config.allowDeselect)&&t.deselect(n.idx):t.select(n.idx),t.opened&&!t.el.multiple)&&t.close(),e.preventDefault(),e.stopPropagation()}),this.tree.addEventListener("mouseover",function(e){!r.hasClass(e.target,"selectr-option")||r.hasClass(e.target,"disabled")||(r.removeClass(t.items[t.navIndex],"active"),r.addClass(e.target,"active"),t.navIndex=[].slice.call(t.items).indexOf(e.target))}),this.config.searchable&&(this.input.addEventListener("focus",function(e){t.searching=!0}),this.input.addEventListener("blur",function(e){t.searching=!1}),this.input.addEventListener("keyup",function(e){t.search(),t.config.taggable||(this.value.length?r.addClass(this.parentNode,"active"):r.removeClass(this.parentNode,"active"))}),this.inputClear.addEventListener("click",function(e){t.input.value=null,l.call(t),t.tree.childElementCount||o.call(t)})),this.config.taggable&&this.input.addEventListener("keyup",function(e){var n,i;t.search(),t.config.taggable&&this.value.length&&(n=this.value.trim()).length&&(13===e.which||t.tagSeperatorsRegex.test(n))&&(e=n.replace(t.tagSeperatorsRegex,""),(i=(e=(e=r.escapeRegExp(e)).trim()).length?t.add({value:e,textContent:e,selected:!0},!0):i)?(t.close(),l.call(t)):(this.value="",t.setMessage(t.config.messages.tagDuplicate)))}),this.update=r.debounce(function(){t.opened&&t.config.closeOnScroll&&t.close(),t.width&&(t.container.style.width=t.width),t.invert()},50),this.requiresPagination&&(this.paginateItems=r.debounce(function(){a.call(this)},50),this.tree.addEventListener("scroll",this.paginateItems.bind(this))),document.addEventListener("click",this.events.dismiss),window.addEventListener("keydown",this.events.navigate),window.addEventListener("resize",this.update),window.addEventListener("scroll",this.update),this.on("selectr.destroy",function(){document.removeEventListener("click",this.events.dismiss),window.removeEventListener("keydown",this.events.navigate),window.removeEventListener("resize",this.update),window.removeEventListener("scroll",this.update)}),this.el.form&&(this.el.form.addEventListener("reset",this.events.reset),this.on("selectr.destroy",function(){this.el.form.removeEventListener("reset",this.events.reset)}))},c.prototype.setSelected=function(e){var t;this.config.data||this.el.multiple||!this.el.options.length||(0!==this.el.selectedIndex||this.el.options[0].defaultSelected||this.config.defaultSelected||(this.el.selectedIndex=-1),this.selectedIndex=this.el.selectedIndex,-1<this.selectedIndex&&this.select(this.selectedIndex)),this.config.multiple&&"select-one"===this.originalType&&!this.config.data&&this.el.options[0].selected&&!this.el.options[0].defaultSelected&&(this.el.options[0].selected=!1),r.each(this.options,function(e,t){t.selected&&t.defaultSelected&&this.select(t.idx)},this),this.config.selectedValue&&this.setValue(this.config.selectedValue),this.config.data&&(!this.el.multiple&&this.config.defaultSelected&&this.el.selectedIndex<0&&0<this.config.data.length&&this.select(0),t=0,r.each(this.config.data,function(e,i){n(i,"children")?r.each(i.children,function(e,r){r.hasOwnProperty("selected")&&!0===r.selected&&this.select(t),t++},this):(i.hasOwnProperty("selected")&&!0===i.selected&&this.select(t),t++)},this))},c.prototype.destroy=function(){this.rendered&&(this.emit("selectr.destroy"),"select-one"===this.originalType&&(this.el.multiple=!1),this.config.data&&(this.el.innerHTML=""),r.removeClass(this.el,"selectr-hidden"),this.container.parentNode.replaceChild(this.el,this.container),this.rendered=!1,delete this.el.selectr)},c.prototype.change=function(e){var t=this.items[e],n=this.options[e];n.disabled||(n.selected&&r.hasClass(t,"selected")?this.deselect(e):this.select(e),this.opened&&!this.el.multiple&&this.close())},c.prototype.select=function(e){var t=this.items[e],n=[].slice.call(this.el.options),i=this.options[e];if(this.el.multiple){if(r.includes(this.selectedIndexes,e))return!1;if(this.config.maxSelections&&this.tags.length===this.config.maxSelections)return this.setMessage(this.config.messages.maxSelections.replace("{max}",this.config.maxSelections),!0),!1;this.selectedValues.push(i.value),this.selectedIndexes.push(e),function(e){var t,n=this,i=document.createDocumentFragment(),o=this.options[e.idx],s=this.data?this.data[e.idx]:o,a={class:"selectr-tag"};this.customSelected?a.html=this.config.renderSelection(s):a.textContent=o.textContent,s=r.createElement("li",a),a=r.createElement("button",{class:"selectr-tag-remove",type:"button"}),s.appendChild(a),s.idx=e.idx,s.tag=o.value,this.tags.push(s),this.config.sortSelected?(a=this.tags.slice(),t=function(e,t){e.replace(/(\d+)|(\D+)/g,function(e,r,n){t.push([r||1/0,n||""])})},a.sort(function(e,r){var i,o,s=[],a=[];for(!0===n.config.sortSelected?(i=e.tag,o=r.tag):"text"===n.config.sortSelected&&(i=e.textContent,o=r.textContent),t(i,s),t(o,a);s.length&&a.length;){var l=s.shift(),c=a.shift();if(l=l[0]-c[0]||l[1].localeCompare(c[1]))return l}return s.length-a.length}),r.each(a,function(e,t){i.appendChild(t)}),this.label.innerHTML=""):i.appendChild(s),this.config.taggable?this.label.insertBefore(i,this.input.parentNode):this.label.appendChild(i)}.call(this,t)}else{var o=this.data?this.data[e]:i;this.customSelected?this.label.innerHTML=this.config.renderSelection(o):this.label.textContent=i.textContent,this.selectedValue=i.value,this.selectedIndex=e,r.each(this.options,function(t,n){var i=this.items[t];t!==e&&(i&&r.removeClass(i,"selected"),n.selected=!1,n.removeAttribute("selected"))},this)}r.includes(n,i)||this.el.add(i),t.setAttribute("aria-selected",!0),r.addClass(t,"selected"),r.addClass(this.container,"has-selected"),i.selected=!0,i.setAttribute("selected",""),this.emit("selectr.change",i),this.emit("selectr.select",i),"createEvent"in document?((o=document.createEvent("HTMLEvents")).initEvent("change",!0,!0),o.__selfTriggered=!0,this.el.dispatchEvent(o)):this.el.fireEvent("onchange")},c.prototype.deselect=function(e,t){var n=this.items[e],i=this.options[e];if(this.el.multiple){var o=this.selectedIndexes.indexOf(e);this.selectedIndexes.splice(o,1),o=this.selectedValues.indexOf(i.value),this.selectedValues.splice(o,1),function(e){var t=!1;r.each(this.tags,function(r,n){n.idx===e.idx&&(t=n)},this),t&&(this.label.removeChild(t),this.tags.splice(this.tags.indexOf(t),1))}.call(this,n),this.tags.length||r.removeClass(this.container,"has-selected")}else{if(!t&&!this.config.clearable&&!this.config.allowDeselect)return!1;this.label.innerHTML="",this.selectedValue=null,this.el.selectedIndex=this.selectedIndex=-1,r.removeClass(this.container,"has-selected")}this.items[e].setAttribute("aria-selected",!1),r.removeClass(this.items[e],"selected"),i.selected=!1,i.removeAttribute("selected"),this.emit("selectr.change",null),this.emit("selectr.deselect",i),"createEvent"in document?((o=document.createEvent("HTMLEvents")).initEvent("change",!0,!0),o.__selfTriggered=!0,this.el.dispatchEvent(o)):this.el.fireEvent("onchange")},c.prototype.setValue=function(e){var t=Array.isArray(e);if(t||(e=e.toString().trim()),!this.el.multiple&&t)return!1;r.each(this.options,function(r,n){(t&&-1<e.indexOf(n.value)||n.value===e)&&this.change(n.idx)},this)},c.prototype.getValue=function(e,t){var n,i;return this.el.multiple?e?this.selectedIndexes.length&&(i={values:[]},r.each(this.selectedIndexes,function(e,t){t=this.options[t],i.values[e]={value:t.value,text:t.textContent}},this)):i=this.selectedValues.slice():i=e?{value:(n=this.options[this.selectedIndex]).value,text:n.textContent}:this.selectedValue,i=e&&t?JSON.stringify(i):i},c.prototype.add=function(e,t){if(e){if(this.data=this.data||[],this.items=this.items||[],this.options=this.options||[],Array.isArray(e))r.each(e,function(e,r){this.add(r,t)},this);else if("[object Object]"===Object.prototype.toString.call(e)){if(t){var n=!1;if(r.each(this.options,function(t,r){r.value.toLowerCase()===e.value.toLowerCase()&&(n=!0)}),n)return!1}var i=r.createElement("option",e);return this.data.push(e),this.mobileDevice&&this.el.add(i),this.options.push(i),i.idx=0<this.options.length?this.options.length-1:0,s.call(this,i),e.selected&&this.select(i.idx),this.setPlaceholder(),i}return this.config.pagination&&this.paginate(),!0}},c.prototype.remove=function(e){var t,n=[];Array.isArray(e)?r.each(e,function(e,t){r.isInt(t)?n.push(this.getOptionByIndex(t)):"string"==typeof t&&n.push(this.getOptionByValue(t))},this):r.isInt(e)?n.push(this.getOptionByIndex(e)):"string"==typeof e&&n.push(this.getOptionByValue(e)),n.length&&(r.each(n,function(e,n){t=n.idx,this.el.remove(n),this.options.splice(t,1),(n=this.items[t].parentNode)&&n.removeChild(this.items[t]),this.items.splice(t,1),r.each(this.options,function(e,t){t.idx=e,this.items[e].idx=e},this)},this),this.setPlaceholder(),this.config.pagination)&&this.paginate()},c.prototype.removeAll=function(){this.clear(!0),r.each(this.el.options,function(e,t){this.el.remove(t)},this),r.truncate(this.tree),this.items=[],this.options=[],this.data=[],this.navIndex=0,this.requiresPagination&&(this.requiresPagination=!1,this.pageIndex=1,this.pages=[]),this.setPlaceholder()},c.prototype.search=function(e,t){var n,s,a,l,c;if(!this.navigating)return n=!1,e||(e=this.input.value,n=!0,this.removeMessage(),r.truncate(this.tree)),s=[],a=document.createDocumentFragment(),0<(e=e.trim().toLowerCase()).length?(l=t?r.startsWith:r.includes,r.each(this.options,function(t,o){var c,u,d,h,p=this.items[o.idx];l(o.textContent.trim().toLowerCase(),e)&&!o.disabled?(s.push({text:o.textContent,value:o.value}),n&&(i(p,a,this.customOption),r.removeClass(p,"excluded"),!this.customOption)&&(c=e,d=o.textContent,h=(c=new RegExp(c,"ig")).exec(d))&&(o.innerHTML="",(u=document.createElement("span")).classList.add("selectr-match"),u.textContent=h[0],o.appendChild(document.createTextNode(d.substring(0,h.index))),o.appendChild(u),o.appendChild(document.createTextNode(d.substring(c.lastIndex))))):n&&r.addClass(p,"excluded")},this),n&&(a.childElementCount?(t=this.items[this.navIndex],c=a.querySelector(".selectr-option:not(.excluded)"),this.noResults=!1,r.removeClass(t,"active"),this.navIndex=c.idx,r.addClass(c,"active")):this.config.taggable||(this.noResults=!0,this.setMessage(this.config.messages.noResults)),this.tree.appendChild(a))):o.call(this),s},c.prototype.toggle=function(){this.disabled||(this.opened?this.close():this.open())},c.prototype.open=function(){var e=this;if(!this.options.length)return!1;this.opened||this.emit("selectr.open"),this.opened=!0,this.mobileDevice||this.config.nativeDropdown?(r.addClass(this.container,"native-open"),this.config.data&&r.each(this.options,function(e,t){this.el.add(t)},this)):(r.addClass(this.container,"open"),o.call(this),this.invert(),this.tree.scrollTop=0,r.removeClass(this.container,"notice"),this.selected.setAttribute("aria-expanded",!0),this.tree.setAttribute("aria-hidden",!1),this.tree.setAttribute("aria-expanded",!0),this.config.searchable&&!this.config.taggable&&setTimeout(function(){e.input.focus(),e.input.tabIndex=0},10))},c.prototype.close=function(){var e;this.opened&&this.emit("selectr.close"),this.opened=!1,this.navigating=!1,this.mobileDevice||this.config.nativeDropdown?r.removeClass(this.container,"native-open"):(e=r.hasClass(this.container,"notice"),this.config.searchable&&!e&&(this.input.blur(),this.input.tabIndex=-1,this.searching=!1),e&&(r.removeClass(this.container,"notice"),this.notice.textContent=""),r.removeClass(this.container,"open"),r.removeClass(this.container,"native-open"),this.selected.setAttribute("aria-expanded",!1),this.tree.setAttribute("aria-hidden",!0),this.tree.setAttribute("aria-expanded",!1),r.truncate(this.tree),l.call(this))},c.prototype.enable=function(){this.disabled=!1,this.el.disabled=!1,this.selected.tabIndex=this.originalIndex,this.el.multiple&&r.each(this.tags,function(e,t){t.lastElementChild.tabIndex=0}),r.removeClass(this.container,"selectr-disabled")},c.prototype.disable=function(e){e||(this.el.disabled=!0),this.selected.tabIndex=-1,this.el.multiple&&r.each(this.tags,function(e,t){t.lastElementChild.tabIndex=-1}),this.disabled=!0,r.addClass(this.container,"selectr-disabled")},c.prototype.reset=function(){this.disabled||(this.clear(),this.setSelected(!0),r.each(this.defaultSelected,function(e,t){this.select(t)},this),this.emit("selectr.reset"))},c.prototype.clear=function(e,t){var n;this.el.multiple?this.selectedIndexes.length&&(n=this.selectedIndexes.slice(),t?this.deselect(n.slice(-1)[0]):r.each(n,function(e,t){this.deselect(t)},this)):-1<this.selectedIndex&&this.deselect(this.selectedIndex,e),this.emit("selectr.clear")},c.prototype.serialise=function(e){var t=[];return r.each(this.options,function(e,r){var n={value:r.value,text:r.textContent};r.selected&&(n.selected=!0),r.disabled&&(n.disabled=!0),t[e]=n}),e?JSON.stringify(t):t},c.prototype.serialize=function(e){return this.serialise(e)},c.prototype.setPlaceholder=function(e){e=e||this.config.placeholder||this.el.getAttribute("placeholder"),this.options.length||(e=this.config.messages.noOptions),this.placeEl.innerHTML=e},c.prototype.paginate=function(){var e;if(this.items.length)return(e=this).pages=this.items.map(function(t,r){return r%e.config.pagination==0?e.items.slice(r,r+e.config.pagination):null}).filter(function(e){return e}),this.pages},c.prototype.setMessage=function(e,t){t&&this.close(),r.addClass(this.container,"notice"),this.notice.textContent=e},c.prototype.removeMessage=function(){r.removeClass(this.container,"notice"),this.notice.innerHTML=""},c.prototype.invert=function(){var e=r.rect(this.selected),t=this.tree.parentNode.offsetHeight,n=window.innerHeight;e.top+e.height+t>n?(r.addClass(this.container,"inverted"),this.isInverted=!0):(r.removeClass(this.container,"inverted"),this.isInverted=!1),this.optsRect=r.rect(this.tree)},c.prototype.getOptionByIndex=function(e){return this.options[e]},c.prototype.getOptionByValue=function(e){for(var t=!1,r=0,n=this.options.length;r<n;r++)if(this.options[r].value.trim()===e.toString().trim()){t=this.options[r];break}return t},e.exports=c},4926:function(e){e.exports=function(e,t,r){var n,i,o,s,a,l,c,u=" ",d=e.level,h=e.dataLevel,p=e.schema[t],f=e.schemaPath+e.util.getProperty(t),m=(t=e.errSchemaPath+"/"+t,!e.opts.allErrors),g=(h="data"+(h||""),"errs__"+d),y=e.util.copy(e),v=(y.level++,"valid"+y.level);return u+="var "+g+" = errors;",(e.opts.strictKeywords?"object"==typeof p&&0<Object.keys(p).length||!1===p:e.util.schemaHasRules(p,e.RULES.all))&&(y.schema=p,y.schemaPath=f,y.errSchemaPath=t,p="idx"+d,i="i"+d,o="' + "+(n="key"+d)+" + '",s="data"+(y.dataLevel=e.dataLevel+1),c="dataProperties"+d,l=e.opts.ownProperties,a=e.baseId,l&&(u+=" var "+c+" = undefined; "),u=u+(l?" "+c+" = "+c+" || Object.keys("+h+"); for (var "+p+"=0; "+p+"<"+c+".length; "+p+"++) { var "+n+" = "+c+"["+p+"]; ":" for (var "+n+" in "+h+") { ")+" var startErrs"+d+" = errors; ",l=n,c=e.compositeRule,e.compositeRule=y.compositeRule=!0,p=e.validate(y),y.baseId=a,e.util.varOccurences(p,s)<2?u+=" "+e.util.varReplace(p,s,l)+" ":u+=" var "+s+" = "+l+"; "+p+" ",e.compositeRule=y.compositeRule=c,u+=" if (!"+v+") { for (var "+i+"=startErrs"+d+"; "+i+"<errors; "+i+"++) { vErrors["+i+"].propertyName = "+n+"; } var err = ",!1!==e.createErrors?(u+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(t)+" , params: { propertyName: '"+o+"' } ",!1!==e.opts.messages&&(u+=" , message: 'property name \\'"+o+"\\' is invalid' "),e.opts.verbose&&(u+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),u+=" } "):u+=" {} ",u+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&m&&(e.async?u+=" throw new ValidationError(vErrors); ":u+=" validate.errors = vErrors; return false; "),m&&(u+=" break; "),u+=" } }"),m&&(u+=" if ("+g+" == errors) {"),u}},5207:function(e){e.exports=JSON.parse('{"id":"http://json-schema.org/draft-04/schema#","$schema":"http://json-schema.org/draft-04/schema#","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string"},"$schema":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}}')},5215:function(e){e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1}else{if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var s=o[i];if(!e(t[s],r[s]))return!1}}return!0}return t!=t&&r!=r}},5433:function(e){e.exports=function(e,t,r){var n,i=" ",o=e.level,s=e.dataLevel,a=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,d="data"+(s||""),h=e.opts.$data&&a&&a.$data;if(s=h?(i+=" var schema"+o+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ","schema"+o):a,h||"number"==typeof a)return i+="if ( ",h&&(i+=" ("+s+" !== undefined && typeof "+s+" != 'number') || "),!1===e.opts.unicode?i+=" "+d+".length ":i+=" ucs2length("+d+") ",(o=[]).push(i+=" "+("maxLength"==(n=t)?">":"<")+" "+s+") { "),i="",!1!==e.createErrors?(i+=" { keyword: '"+(n||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+s+" } ",!1!==e.opts.messages&&(i=(i=(i+=" , message: 'should NOT be ")+("maxLength"==t?"longer":"shorter")+" than ")+(h?"' + "+s+" + '":""+a)+" characters' "),e.opts.verbose&&(i=(i+=" , schema: ")+(h?"validate.schema"+l:""+a)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ",n=i,i=o.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+n+"]); ":i+=" validate.errors = ["+n+"]; return false; ":i+=" var err = "+n+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i;throw new Error(t+" must be number")}},5467:function(e,t,r){t.J=function(){try{r(9762)}catch(e){console.error(e)}}},5477:function(e){e.exports="data:application/javascript;base64,Im5vIHVzZSBzdHJpY3QiOwohKGZ1bmN0aW9uKHdpbmRvdykgewppZiAodHlwZW9mIHdpbmRvdy53aW5kb3cgIT0gInVuZGVmaW5lZCIgJiYgd2luZG93LmRvY3VtZW50KQogICAgcmV0dXJuOwppZiAod2luZG93LnJlcXVpcmUgJiYgd2luZG93LmRlZmluZSkKICAgIHJldHVybjsKCmlmICghd2luZG93LmNvbnNvbGUpIHsKICAgIHdpbmRvdy5jb25zb2xlID0gZnVuY3Rpb24oKSB7CiAgICAgICAgdmFyIG1zZ3MgPSBBcnJheS5wcm90b3R5cGUuc2xpY2UuY2FsbChhcmd1bWVudHMsIDApOwogICAgICAgIHBvc3RNZXNzYWdlKHt0eXBlOiAibG9nIiwgZGF0YTogbXNnc30pOwogICAgfTsKICAgIHdpbmRvdy5jb25zb2xlLmVycm9yID0KICAgIHdpbmRvdy5jb25zb2xlLndhcm4gPSAKICAgIHdpbmRvdy5jb25zb2xlLmxvZyA9CiAgICB3aW5kb3cuY29uc29sZS50cmFjZSA9IHdpbmRvdy5jb25zb2xlOwp9CndpbmRvdy53aW5kb3cgPSB3aW5kb3c7CndpbmRvdy5hY2UgPSB3aW5kb3c7Cgp3aW5kb3cub25lcnJvciA9IGZ1bmN0aW9uKG1lc3NhZ2UsIGZpbGUsIGxpbmUsIGNvbCwgZXJyKSB7CiAgICBwb3N0TWVzc2FnZSh7dHlwZTogImVycm9yIiwgZGF0YTogewogICAgICAgIG1lc3NhZ2U6IG1lc3NhZ2UsCiAgICAgICAgZGF0YTogZXJyICYmIGVyci5kYXRhLAogICAgICAgIGZpbGU6IGZpbGUsCiAgICAgICAgbGluZTogbGluZSwgCiAgICAgICAgY29sOiBjb2wsCiAgICAgICAgc3RhY2s6IGVyciAmJiBlcnIuc3RhY2sKICAgIH19KTsKfTsKCndpbmRvdy5ub3JtYWxpemVNb2R1bGUgPSBmdW5jdGlvbihwYXJlbnRJZCwgbW9kdWxlTmFtZSkgewogICAgLy8gbm9ybWFsaXplIHBsdWdpbiByZXF1aXJlcwogICAgaWYgKG1vZHVsZU5hbWUuaW5kZXhPZigiISIpICE9PSAtMSkgewogICAgICAgIHZhciBjaHVua3MgPSBtb2R1bGVOYW1lLnNwbGl0KCIhIik7CiAgICAgICAgcmV0dXJuIHdpbmRvdy5ub3JtYWxpemVNb2R1bGUocGFyZW50SWQsIGNodW5rc1swXSkgKyAiISIgKyB3aW5kb3cubm9ybWFsaXplTW9kdWxlKHBhcmVudElkLCBjaHVua3NbMV0pOwogICAgfQogICAgLy8gbm9ybWFsaXplIHJlbGF0aXZlIHJlcXVpcmVzCiAgICBpZiAobW9kdWxlTmFtZS5jaGFyQXQoMCkgPT0gIi4iKSB7CiAgICAgICAgdmFyIGJhc2UgPSBwYXJlbnRJZC5zcGxpdCgiLyIpLnNsaWNlKDAsIC0xKS5qb2luKCIvIik7CiAgICAgICAgbW9kdWxlTmFtZSA9IChiYXNlID8gYmFzZSArICIvIiA6ICIiKSArIG1vZHVsZU5hbWU7CiAgICAgICAgCiAgICAgICAgd2hpbGUgKG1vZHVsZU5hbWUuaW5kZXhPZigiLiIpICE9PSAtMSAmJiBwcmV2aW91cyAhPSBtb2R1bGVOYW1lKSB7CiAgICAgICAgICAgIHZhciBwcmV2aW91cyA9IG1vZHVsZU5hbWU7CiAgICAgICAgICAgIG1vZHVsZU5hbWUgPSBtb2R1bGVOYW1lLnJlcGxhY2UoL15cLlwvLywgIiIpLnJlcGxhY2UoL1wvXC5cLy8sICIvIikucmVwbGFjZSgvW15cL10rXC9cLlwuXC8vLCAiIik7CiAgICAgICAgfQogICAgfQogICAgCiAgICByZXR1cm4gbW9kdWxlTmFtZTsKfTsKCndpbmRvdy5yZXF1aXJlID0gZnVuY3Rpb24gcmVxdWlyZShwYXJlbnRJZCwgaWQpIHsKICAgIGlmICghaWQpIHsKICAgICAgICBpZCA9IHBhcmVudElkOwogICAgICAgIHBhcmVudElkID0gbnVsbDsKICAgIH0KICAgIGlmICghaWQuY2hhckF0KQogICAgICAgIHRocm93IG5ldyBFcnJvcigid29ya2VyLmpzIHJlcXVpcmUoKSBhY2NlcHRzIG9ubHkgKHBhcmVudElkLCBpZCkgYXMgYXJndW1lbnRzIik7CgogICAgaWQgPSB3aW5kb3cubm9ybWFsaXplTW9kdWxlKHBhcmVudElkLCBpZCk7CgogICAgdmFyIG1vZHVsZSA9IHdpbmRvdy5yZXF1aXJlLm1vZHVsZXNbaWRdOwogICAgaWYgKG1vZHVsZSkgewogICAgICAgIGlmICghbW9kdWxlLmluaXRpYWxpemVkKSB7CiAgICAgICAgICAgIG1vZHVsZS5pbml0aWFsaXplZCA9IHRydWU7CiAgICAgICAgICAgIG1vZHVsZS5leHBvcnRzID0gbW9kdWxlLmZhY3RvcnkoKS5leHBvcnRzOwogICAgICAgIH0KICAgICAgICByZXR1cm4gbW9kdWxlLmV4cG9ydHM7CiAgICB9CiAgIAogICAgaWYgKCF3aW5kb3cucmVxdWlyZS50bG5zKQogICAgICAgIHJldHVybiBjb25zb2xlLmxvZygidW5hYmxlIHRvIGxvYWQgIiArIGlkKTsKICAgIAogICAgdmFyIHBhdGggPSByZXNvbHZlTW9kdWxlSWQoaWQsIHdpbmRvdy5yZXF1aXJlLnRsbnMpOwogICAgaWYgKHBhdGguc2xpY2UoLTMpICE9ICIuanMiKSBwYXRoICs9ICIuanMiOwogICAgCiAgICB3aW5kb3cucmVxdWlyZS5pZCA9IGlkOwogICAgd2luZG93LnJlcXVpcmUubW9kdWxlc1tpZF0gPSB7fTsgLy8gcHJldmVudCBpbmZpbml0ZSBsb29wIG9uIGJyb2tlbiBtb2R1bGVzCiAgICBpbXBvcnRTY3JpcHRzKHBhdGgpOwogICAgcmV0dXJuIHdpbmRvdy5yZXF1aXJlKHBhcmVudElkLCBpZCk7Cn07CmZ1bmN0aW9uIHJlc29sdmVNb2R1bGVJZChpZCwgcGF0aHMpIHsKICAgIHZhciB0ZXN0UGF0aCA9IGlkLCB0YWlsID0gIiI7CiAgICB3aGlsZSAodGVzdFBhdGgpIHsKICAgICAgICB2YXIgYWxpYXMgPSBwYXRoc1t0ZXN0UGF0aF07CiAgICAgICAgaWYgKHR5cGVvZiBhbGlhcyA9PSAic3RyaW5nIikgewogICAgICAgICAgICByZXR1cm4gYWxpYXMgKyB0YWlsOwogICAgICAgIH0gZWxzZSBpZiAoYWxpYXMpIHsKICAgICAgICAgICAgcmV0dXJuICBhbGlhcy5sb2NhdGlvbi5yZXBsYWNlKC9cLyokLywgIi8iKSArICh0YWlsIHx8IGFsaWFzLm1haW4gfHwgYWxpYXMubmFtZSk7CiAgICAgICAgfSBlbHNlIGlmIChhbGlhcyA9PT0gZmFsc2UpIHsKICAgICAgICAgICAgcmV0dXJuICIiOwogICAgICAgIH0KICAgICAgICB2YXIgaSA9IHRlc3RQYXRoLmxhc3RJbmRleE9mKCIvIik7CiAgICAgICAgaWYgKGkgPT09IC0xKSBicmVhazsKICAgICAgICB0YWlsID0gdGVzdFBhdGguc3Vic3RyKGkpICsgdGFpbDsKICAgICAgICB0ZXN0UGF0aCA9IHRlc3RQYXRoLnNsaWNlKDAsIGkpOwogICAgfQogICAgcmV0dXJuIGlkOwp9CndpbmRvdy5yZXF1aXJlLm1vZHVsZXMgPSB7fTsKd2luZG93LnJlcXVpcmUudGxucyA9IHt9OwoKd2luZG93LmRlZmluZSA9IGZ1bmN0aW9uKGlkLCBkZXBzLCBmYWN0b3J5KSB7CiAgICBpZiAoYXJndW1lbnRzLmxlbmd0aCA9PSAyKSB7CiAgICAgICAgZmFjdG9yeSA9IGRlcHM7CiAgICAgICAgaWYgKHR5cGVvZiBpZCAhPSAic3RyaW5nIikgewogICAgICAgICAgICBkZXBzID0gaWQ7CiAgICAgICAgICAgIGlkID0gd2luZG93LnJlcXVpcmUuaWQ7CiAgICAgICAgfQogICAgfSBlbHNlIGlmIChhcmd1bWVudHMubGVuZ3RoID09IDEpIHsKICAgICAgICBmYWN0b3J5ID0gaWQ7CiAgICAgICAgZGVwcyA9IFtdOwogICAgICAgIGlkID0gd2luZG93LnJlcXVpcmUuaWQ7CiAgICB9CiAgICAKICAgIGlmICh0eXBlb2YgZmFjdG9yeSAhPSAiZnVuY3Rpb24iKSB7CiAgICAgICAgd2luZG93LnJlcXVpcmUubW9kdWxlc1tpZF0gPSB7CiAgICAgICAgICAgIGV4cG9ydHM6IGZhY3RvcnksCiAgICAgICAgICAgIGluaXRpYWxpemVkOiB0cnVlCiAgICAgICAgfTsKICAgICAgICByZXR1cm47CiAgICB9CgogICAgaWYgKCFkZXBzLmxlbmd0aCkKICAgICAgICAvLyBJZiB0aGVyZSBpcyBubyBkZXBlbmRlbmNpZXMsIHdlIGluamVjdCAicmVxdWlyZSIsICJleHBvcnRzIiBhbmQKICAgICAgICAvLyAibW9kdWxlIiBhcyBkZXBlbmRlbmNpZXMsIHRvIHByb3ZpZGUgQ29tbW9uSlMgY29tcGF0aWJpbGl0eS4KICAgICAgICBkZXBzID0gWyJyZXF1aXJlIiwgImV4cG9ydHMiLCAibW9kdWxlIl07CgogICAgdmFyIHJlcSA9IGZ1bmN0aW9uKGNoaWxkSWQpIHsKICAgICAgICByZXR1cm4gd2luZG93LnJlcXVpcmUoaWQsIGNoaWxkSWQpOwogICAgfTsKCiAgICB3aW5kb3cucmVxdWlyZS5tb2R1bGVzW2lkXSA9IHsKICAgICAgICBleHBvcnRzOiB7fSwKICAgICAgICBmYWN0b3J5OiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgdmFyIG1vZHVsZSA9IHRoaXM7CiAgICAgICAgICAgIHZhciByZXR1cm5FeHBvcnRzID0gZmFjdG9yeS5hcHBseSh0aGlzLCBkZXBzLnNsaWNlKDAsIGZhY3RvcnkubGVuZ3RoKS5tYXAoZnVuY3Rpb24oZGVwKSB7CiAgICAgICAgICAgICAgICBzd2l0Y2ggKGRlcCkgewogICAgICAgICAgICAgICAgICAgIC8vIEJlY2F1c2UgInJlcXVpcmUiLCAiZXhwb3J0cyIgYW5kICJtb2R1bGUiIGFyZW4ndCBhY3R1YWwKICAgICAgICAgICAgICAgICAgICAvLyBkZXBlbmRlbmNpZXMsIHdlIG11c3QgaGFuZGxlIHRoZW0gc2VwZXJhdGVseS4KICAgICAgICAgICAgICAgICAgICBjYXNlICJyZXF1aXJlIjogcmV0dXJuIHJlcTsKICAgICAgICAgICAgICAgICAgICBjYXNlICJleHBvcnRzIjogcmV0dXJuIG1vZHVsZS5leHBvcnRzOwogICAgICAgICAgICAgICAgICAgIGNhc2UgIm1vZHVsZSI6ICByZXR1cm4gbW9kdWxlOwogICAgICAgICAgICAgICAgICAgIC8vIEJ1dCBmb3IgYWxsIG90aGVyIGRlcGVuZGVuY2llcywgd2UgY2FuIGp1c3QgZ28gYWhlYWQgYW5kCiAgICAgICAgICAgICAgICAgICAgLy8gcmVxdWlyZSB0aGVtLgogICAgICAgICAgICAgICAgICAgIGRlZmF1bHQ6ICAgICAgICByZXR1cm4gcmVxKGRlcCk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pKTsKICAgICAgICAgICAgaWYgKHJldHVybkV4cG9ydHMpCiAgICAgICAgICAgICAgICBtb2R1bGUuZXhwb3J0cyA9IHJldHVybkV4cG9ydHM7CiAgICAgICAgICAgIHJldHVybiBtb2R1bGU7CiAgICAgICAgfQogICAgfTsKfTsKd2luZG93LmRlZmluZS5hbWQgPSB7fTsKd2luZG93LnJlcXVpcmUudGxucyA9IHt9Owp3aW5kb3cuaW5pdEJhc2VVcmxzICA9IGZ1bmN0aW9uIGluaXRCYXNlVXJscyh0b3BMZXZlbE5hbWVzcGFjZXMpIHsKICAgIGZvciAodmFyIGkgaW4gdG9wTGV2ZWxOYW1lc3BhY2VzKQogICAgICAgIHRoaXMucmVxdWlyZS50bG5zW2ldID0gdG9wTGV2ZWxOYW1lc3BhY2VzW2ldOwp9OwoKd2luZG93LmluaXRTZW5kZXIgPSBmdW5jdGlvbiBpbml0U2VuZGVyKCkgewoKICAgIHZhciBFdmVudEVtaXR0ZXIgPSB3aW5kb3cucmVxdWlyZSgiYWNlL2xpYi9ldmVudF9lbWl0dGVyIikuRXZlbnRFbWl0dGVyOwogICAgdmFyIG9vcCA9IHdpbmRvdy5yZXF1aXJlKCJhY2UvbGliL29vcCIpOwogICAgCiAgICB2YXIgU2VuZGVyID0gZnVuY3Rpb24oKSB7fTsKICAgIAogICAgKGZ1bmN0aW9uKCkgewogICAgICAgIAogICAgICAgIG9vcC5pbXBsZW1lbnQodGhpcywgRXZlbnRFbWl0dGVyKTsKICAgICAgICAgICAgICAgIAogICAgICAgIHRoaXMuY2FsbGJhY2sgPSBmdW5jdGlvbihkYXRhLCBjYWxsYmFja0lkKSB7CiAgICAgICAgICAgIHBvc3RNZXNzYWdlKHsKICAgICAgICAgICAgICAgIHR5cGU6ICJjYWxsIiwKICAgICAgICAgICAgICAgIGlkOiBjYWxsYmFja0lkLAogICAgICAgICAgICAgICAgZGF0YTogZGF0YQogICAgICAgICAgICB9KTsKICAgICAgICB9OwogICAgCiAgICAgICAgdGhpcy5lbWl0ID0gZnVuY3Rpb24obmFtZSwgZGF0YSkgewogICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICB0eXBlOiAiZXZlbnQiLAogICAgICAgICAgICAgICAgbmFtZTogbmFtZSwKICAgICAgICAgICAgICAgIGRhdGE6IGRhdGEKICAgICAgICAgICAgfSk7CiAgICAgICAgfTsKICAgICAgICAKICAgIH0pLmNhbGwoU2VuZGVyLnByb3RvdHlwZSk7CiAgICAKICAgIHJldHVybiBuZXcgU2VuZGVyKCk7Cn07Cgp2YXIgbWFpbiA9IHdpbmRvdy5tYWluID0gbnVsbDsKdmFyIHNlbmRlciA9IHdpbmRvdy5zZW5kZXIgPSBudWxsOwoKd2luZG93Lm9ubWVzc2FnZSA9IGZ1bmN0aW9uKGUpIHsKICAgIHZhciBtc2cgPSBlLmRhdGE7CiAgICBpZiAobXNnLmV2ZW50ICYmIHNlbmRlcikgewogICAgICAgIHNlbmRlci5fc2lnbmFsKG1zZy5ldmVudCwgbXNnLmRhdGEpOwogICAgfQogICAgZWxzZSBpZiAobXNnLmNvbW1hbmQpIHsKICAgICAgICBpZiAobWFpblttc2cuY29tbWFuZF0pCiAgICAgICAgICAgIG1haW5bbXNnLmNvbW1hbmRdLmFwcGx5KG1haW4sIG1zZy5hcmdzKTsKICAgICAgICBlbHNlIGlmICh3aW5kb3dbbXNnLmNvbW1hbmRdKQogICAgICAgICAgICB3aW5kb3dbbXNnLmNvbW1hbmRdLmFwcGx5KHdpbmRvdywgbXNnLmFyZ3MpOwogICAgICAgIGVsc2UKICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCJVbmtub3duIGNvbW1hbmQ6IiArIG1zZy5jb21tYW5kKTsKICAgIH0KICAgIGVsc2UgaWYgKG1zZy5pbml0KSB7CiAgICAgICAgd2luZG93LmluaXRCYXNlVXJscyhtc2cudGxucyk7CiAgICAgICAgc2VuZGVyID0gd2luZG93LnNlbmRlciA9IHdpbmRvdy5pbml0U2VuZGVyKCk7CiAgICAgICAgdmFyIGNsYXp6ID0gdGhpcy5yZXF1aXJlKG1zZy5tb2R1bGUpW21zZy5jbGFzc25hbWVdOwogICAgICAgIG1haW4gPSB3aW5kb3cubWFpbiA9IG5ldyBjbGF6eihzZW5kZXIpOwogICAgfQp9Owp9KSh0aGlzKTsKCmFjZS5kZWZpbmUoImFjZS9saWIvb29wIixbXSwgZnVuY3Rpb24ocmVxdWlyZSwgZXhwb3J0cywgbW9kdWxlKXsidXNlIHN0cmljdCI7CmV4cG9ydHMuaW5oZXJpdHMgPSBmdW5jdGlvbiAoY3Rvciwgc3VwZXJDdG9yKSB7CiAgICBjdG9yLnN1cGVyXyA9IHN1cGVyQ3RvcjsKICAgIGN0b3IucHJvdG90eXBlID0gT2JqZWN0LmNyZWF0ZShzdXBlckN0b3IucHJvdG90eXBlLCB7CiAgICAgICAgY29uc3RydWN0b3I6IHsKICAgICAgICAgICAgdmFsdWU6IGN0b3IsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfQogICAgfSk7Cn07CmV4cG9ydHMubWl4aW4gPSBmdW5jdGlvbiAob2JqLCBtaXhpbikgewogICAgZm9yICh2YXIga2V5IGluIG1peGluKSB7CiAgICAgICAgb2JqW2tleV0gPSBtaXhpbltrZXldOwogICAgfQogICAgcmV0dXJuIG9iajsKfTsKZXhwb3J0cy5pbXBsZW1lbnQgPSBmdW5jdGlvbiAocHJvdG8sIG1peGluKSB7CiAgICBleHBvcnRzLm1peGluKHByb3RvLCBtaXhpbik7Cn07Cgp9KTsKCmFjZS5kZWZpbmUoImFjZS9hcHBseV9kZWx0YSIsW10sIGZ1bmN0aW9uKHJlcXVpcmUsIGV4cG9ydHMsIG1vZHVsZSl7InVzZSBzdHJpY3QiOwpmdW5jdGlvbiB0aHJvd0RlbHRhRXJyb3IoZGVsdGEsIGVycm9yVGV4dCkgewogICAgY29uc29sZS5sb2coIkludmFsaWQgRGVsdGE6IiwgZGVsdGEpOwogICAgdGhyb3cgIkludmFsaWQgRGVsdGE6ICIgKyBlcnJvclRleHQ7Cn0KZnVuY3Rpb24gcG9zaXRpb25JbkRvY3VtZW50KGRvY0xpbmVzLCBwb3NpdGlvbikgewogICAgcmV0dXJuIHBvc2l0aW9uLnJvdyA+PSAwICYmIHBvc2l0aW9uLnJvdyA8IGRvY0xpbmVzLmxlbmd0aCAmJgogICAgICAgIHBvc2l0aW9uLmNvbHVtbiA+PSAwICYmIHBvc2l0aW9uLmNvbHVtbiA8PSBkb2NMaW5lc1twb3NpdGlvbi5yb3ddLmxlbmd0aDsKfQpmdW5jdGlvbiB2YWxpZGF0ZURlbHRhKGRvY0xpbmVzLCBkZWx0YSkgewogICAgaWYgKGRlbHRhLmFjdGlvbiAhPSAiaW5zZXJ0IiAmJiBkZWx0YS5hY3Rpb24gIT0gInJlbW92ZSIpCiAgICAgICAgdGhyb3dEZWx0YUVycm9yKGRlbHRhLCAiZGVsdGEuYWN0aW9uIG11c3QgYmUgJ2luc2VydCcgb3IgJ3JlbW92ZSciKTsKICAgIGlmICghKGRlbHRhLmxpbmVzIGluc3RhbmNlb2YgQXJyYXkpKQogICAgICAgIHRocm93RGVsdGFFcnJvcihkZWx0YSwgImRlbHRhLmxpbmVzIG11c3QgYmUgYW4gQXJyYXkiKTsKICAgIGlmICghZGVsdGEuc3RhcnQgfHwgIWRlbHRhLmVuZCkKICAgICAgICB0aHJvd0RlbHRhRXJyb3IoZGVsdGEsICJkZWx0YS5zdGFydC9lbmQgbXVzdCBiZSBhbiBwcmVzZW50Iik7CiAgICB2YXIgc3RhcnQgPSBkZWx0YS5zdGFydDsKICAgIGlmICghcG9zaXRpb25JbkRvY3VtZW50KGRvY0xpbmVzLCBkZWx0YS5zdGFydCkpCiAgICAgICAgdGhyb3dEZWx0YUVycm9yKGRlbHRhLCAiZGVsdGEuc3RhcnQgbXVzdCBiZSBjb250YWluZWQgaW4gZG9jdW1lbnQiKTsKICAgIHZhciBlbmQgPSBkZWx0YS5lbmQ7CiAgICBpZiAoZGVsdGEuYWN0aW9uID09ICJyZW1vdmUiICYmICFwb3NpdGlvbkluRG9jdW1lbnQoZG9jTGluZXMsIGVuZCkpCiAgICAgICAgdGhyb3dEZWx0YUVycm9yKGRlbHRhLCAiZGVsdGEuZW5kIG11c3QgY29udGFpbmVkIGluIGRvY3VtZW50IGZvciAncmVtb3ZlJyBhY3Rpb25zIik7CiAgICB2YXIgbnVtUmFuZ2VSb3dzID0gZW5kLnJvdyAtIHN0YXJ0LnJvdzsKICAgIHZhciBudW1SYW5nZUxhc3RMaW5lQ2hhcnMgPSAoZW5kLmNvbHVtbiAtIChudW1SYW5nZVJvd3MgPT0gMCA/IHN0YXJ0LmNvbHVtbiA6IDApKTsKICAgIGlmIChudW1SYW5nZVJvd3MgIT0gZGVsdGEubGluZXMubGVuZ3RoIC0gMSB8fCBkZWx0YS5saW5lc1tudW1SYW5nZVJvd3NdLmxlbmd0aCAhPSBudW1SYW5nZUxhc3RMaW5lQ2hhcnMpCiAgICAgICAgdGhyb3dEZWx0YUVycm9yKGRlbHRhLCAiZGVsdGEucmFuZ2UgbXVzdCBtYXRjaCBkZWx0YSBsaW5lcyIpOwp9CmV4cG9ydHMuYXBwbHlEZWx0YSA9IGZ1bmN0aW9uIChkb2NMaW5lcywgZGVsdGEsIGRvTm90VmFsaWRhdGUpIHsKICAgIHZhciByb3cgPSBkZWx0YS5zdGFydC5yb3c7CiAgICB2YXIgc3RhcnRDb2x1bW4gPSBkZWx0YS5zdGFydC5jb2x1bW47CiAgICB2YXIgbGluZSA9IGRvY0xpbmVzW3Jvd10gfHwgIiI7CiAgICBzd2l0Y2ggKGRlbHRhLmFjdGlvbikgewogICAgICAgIGNhc2UgImluc2VydCI6CiAgICAgICAgICAgIHZhciBsaW5lcyA9IGRlbHRhLmxpbmVzOwogICAgICAgICAgICBpZiAobGluZXMubGVuZ3RoID09PSAxKSB7CiAgICAgICAgICAgICAgICBkb2NMaW5lc1tyb3ddID0gbGluZS5zdWJzdHJpbmcoMCwgc3RhcnRDb2x1bW4pICsgZGVsdGEubGluZXNbMF0gKyBsaW5lLnN1YnN0cmluZyhzdGFydENvbHVtbik7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSB7CiAgICAgICAgICAgICAgICB2YXIgYXJncyA9IFtyb3csIDFdLmNvbmNhdChkZWx0YS5saW5lcyk7CiAgICAgICAgICAgICAgICBkb2NMaW5lcy5zcGxpY2UuYXBwbHkoZG9jTGluZXMsIGFyZ3MpOwogICAgICAgICAgICAgICAgZG9jTGluZXNbcm93XSA9IGxpbmUuc3Vic3RyaW5nKDAsIHN0YXJ0Q29sdW1uKSArIGRvY0xpbmVzW3Jvd107CiAgICAgICAgICAgICAgICBkb2NMaW5lc1tyb3cgKyBkZWx0YS5saW5lcy5sZW5ndGggLSAxXSArPSBsaW5lLnN1YnN0cmluZyhzdGFydENvbHVtbik7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgY2FzZSAicmVtb3ZlIjoKICAgICAgICAgICAgdmFyIGVuZENvbHVtbiA9IGRlbHRhLmVuZC5jb2x1bW47CiAgICAgICAgICAgIHZhciBlbmRSb3cgPSBkZWx0YS5lbmQucm93OwogICAgICAgICAgICBpZiAocm93ID09PSBlbmRSb3cpIHsKICAgICAgICAgICAgICAgIGRvY0xpbmVzW3Jvd10gPSBsaW5lLnN1YnN0cmluZygwLCBzdGFydENvbHVtbikgKyBsaW5lLnN1YnN0cmluZyhlbmRDb2x1bW4pOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGVsc2UgewogICAgICAgICAgICAgICAgZG9jTGluZXMuc3BsaWNlKHJvdywgZW5kUm93IC0gcm93ICsgMSwgbGluZS5zdWJzdHJpbmcoMCwgc3RhcnRDb2x1bW4pICsgZG9jTGluZXNbZW5kUm93XS5zdWJzdHJpbmcoZW5kQ29sdW1uKSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgYnJlYWs7CiAgICB9Cn07Cgp9KTsKCmFjZS5kZWZpbmUoImFjZS9saWIvZXZlbnRfZW1pdHRlciIsW10sIGZ1bmN0aW9uKHJlcXVpcmUsIGV4cG9ydHMsIG1vZHVsZSl7InVzZSBzdHJpY3QiOwp2YXIgRXZlbnRFbWl0dGVyID0ge307CnZhciBzdG9wUHJvcGFnYXRpb24gPSBmdW5jdGlvbiAoKSB7IHRoaXMucHJvcGFnYXRpb25TdG9wcGVkID0gdHJ1ZTsgfTsKdmFyIHByZXZlbnREZWZhdWx0ID0gZnVuY3Rpb24gKCkgeyB0aGlzLmRlZmF1bHRQcmV2ZW50ZWQgPSB0cnVlOyB9OwpFdmVudEVtaXR0ZXIuX2VtaXQgPQogICAgRXZlbnRFbWl0dGVyLl9kaXNwYXRjaEV2ZW50ID0gZnVuY3Rpb24gKGV2ZW50TmFtZSwgZSkgewogICAgICAgIHRoaXMuX2V2ZW50UmVnaXN0cnkgfHwgKHRoaXMuX2V2ZW50UmVnaXN0cnkgPSB7fSk7CiAgICAgICAgdGhpcy5fZGVmYXVsdEhhbmRsZXJzIHx8ICh0aGlzLl9kZWZhdWx0SGFuZGxlcnMgPSB7fSk7CiAgICAgICAgdmFyIGxpc3RlbmVycyA9IHRoaXMuX2V2ZW50UmVnaXN0cnlbZXZlbnROYW1lXSB8fCBbXTsKICAgICAgICB2YXIgZGVmYXVsdEhhbmRsZXIgPSB0aGlzLl9kZWZhdWx0SGFuZGxlcnNbZXZlbnROYW1lXTsKICAgICAgICBpZiAoIWxpc3RlbmVycy5sZW5ndGggJiYgIWRlZmF1bHRIYW5kbGVyKQogICAgICAgICAgICByZXR1cm47CiAgICAgICAgaWYgKHR5cGVvZiBlICE9ICJvYmplY3QiIHx8ICFlKQogICAgICAgICAgICBlID0ge307CiAgICAgICAgaWYgKCFlLnR5cGUpCiAgICAgICAgICAgIGUudHlwZSA9IGV2ZW50TmFtZTsKICAgICAgICBpZiAoIWUuc3RvcFByb3BhZ2F0aW9uKQogICAgICAgICAgICBlLnN0b3BQcm9wYWdhdGlvbiA9IHN0b3BQcm9wYWdhdGlvbjsKICAgICAgICBpZiAoIWUucHJldmVudERlZmF1bHQpCiAgICAgICAgICAgIGUucHJldmVudERlZmF1bHQgPSBwcmV2ZW50RGVmYXVsdDsKICAgICAgICBsaXN0ZW5lcnMgPSBsaXN0ZW5lcnMuc2xpY2UoKTsKICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGxpc3RlbmVycy5sZW5ndGg7IGkrKykgewogICAgICAgICAgICBsaXN0ZW5lcnNbaV0oZSwgdGhpcyk7CiAgICAgICAgICAgIGlmIChlLnByb3BhZ2F0aW9uU3RvcHBlZCkKICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgIH0KICAgICAgICBpZiAoZGVmYXVsdEhhbmRsZXIgJiYgIWUuZGVmYXVsdFByZXZlbnRlZCkKICAgICAgICAgICAgcmV0dXJuIGRlZmF1bHRIYW5kbGVyKGUsIHRoaXMpOwogICAgfTsKRXZlbnRFbWl0dGVyLl9zaWduYWwgPSBmdW5jdGlvbiAoZXZlbnROYW1lLCBlKSB7CiAgICB2YXIgbGlzdGVuZXJzID0gKHRoaXMuX2V2ZW50UmVnaXN0cnkgfHwge30pW2V2ZW50TmFtZV07CiAgICBpZiAoIWxpc3RlbmVycykKICAgICAgICByZXR1cm47CiAgICBsaXN0ZW5lcnMgPSBsaXN0ZW5lcnMuc2xpY2UoKTsKICAgIGZvciAodmFyIGkgPSAwOyBpIDwgbGlzdGVuZXJzLmxlbmd0aDsgaSsrKQogICAgICAgIGxpc3RlbmVyc1tpXShlLCB0aGlzKTsKfTsKRXZlbnRFbWl0dGVyLm9uY2UgPSBmdW5jdGlvbiAoZXZlbnROYW1lLCBjYWxsYmFjaykgewogICAgdmFyIF9zZWxmID0gdGhpczsKICAgIHRoaXMub24oZXZlbnROYW1lLCBmdW5jdGlvbiBuZXdDYWxsYmFjaygpIHsKICAgICAgICBfc2VsZi5vZmYoZXZlbnROYW1lLCBuZXdDYWxsYmFjayk7CiAgICAgICAgY2FsbGJhY2suYXBwbHkobnVsbCwgYXJndW1lbnRzKTsKICAgIH0pOwogICAgaWYgKCFjYWxsYmFjaykgewogICAgICAgIHJldHVybiBuZXcgUHJvbWlzZShmdW5jdGlvbiAocmVzb2x2ZSkgewogICAgICAgICAgICBjYWxsYmFjayA9IHJlc29sdmU7CiAgICAgICAgfSk7CiAgICB9Cn07CkV2ZW50RW1pdHRlci5zZXREZWZhdWx0SGFuZGxlciA9IGZ1bmN0aW9uIChldmVudE5hbWUsIGNhbGxiYWNrKSB7CiAgICB2YXIgaGFuZGxlcnMgPSB0aGlzLl9kZWZhdWx0SGFuZGxlcnM7CiAgICBpZiAoIWhhbmRsZXJzKQogICAgICAgIGhhbmRsZXJzID0gdGhpcy5fZGVmYXVsdEhhbmRsZXJzID0geyBfZGlzYWJsZWRfOiB7fSB9OwogICAgaWYgKGhhbmRsZXJzW2V2ZW50TmFtZV0pIHsKICAgICAgICB2YXIgb2xkID0gaGFuZGxlcnNbZXZlbnROYW1lXTsKICAgICAgICB2YXIgZGlzYWJsZWQgPSBoYW5kbGVycy5fZGlzYWJsZWRfW2V2ZW50TmFtZV07CiAgICAgICAgaWYgKCFkaXNhYmxlZCkKICAgICAgICAgICAgaGFuZGxlcnMuX2Rpc2FibGVkX1tldmVudE5hbWVdID0gZGlzYWJsZWQgPSBbXTsKICAgICAgICBkaXNhYmxlZC5wdXNoKG9sZCk7CiAgICAgICAgdmFyIGkgPSBkaXNhYmxlZC5pbmRleE9mKGNhbGxiYWNrKTsKICAgICAgICBpZiAoaSAhPSAtMSkKICAgICAgICAgICAgZGlzYWJsZWQuc3BsaWNlKGksIDEpOwogICAgfQogICAgaGFuZGxlcnNbZXZlbnROYW1lXSA9IGNhbGxiYWNrOwp9OwpFdmVudEVtaXR0ZXIucmVtb3ZlRGVmYXVsdEhhbmRsZXIgPSBmdW5jdGlvbiAoZXZlbnROYW1lLCBjYWxsYmFjaykgewogICAgdmFyIGhhbmRsZXJzID0gdGhpcy5fZGVmYXVsdEhhbmRsZXJzOwogICAgaWYgKCFoYW5kbGVycykKICAgICAgICByZXR1cm47CiAgICB2YXIgZGlzYWJsZWQgPSBoYW5kbGVycy5fZGlzYWJsZWRfW2V2ZW50TmFtZV07CiAgICBpZiAoaGFuZGxlcnNbZXZlbnROYW1lXSA9PSBjYWxsYmFjaykgewogICAgICAgIGlmIChkaXNhYmxlZCkKICAgICAgICAgICAgdGhpcy5zZXREZWZhdWx0SGFuZGxlcihldmVudE5hbWUsIGRpc2FibGVkLnBvcCgpKTsKICAgIH0KICAgIGVsc2UgaWYgKGRpc2FibGVkKSB7CiAgICAgICAgdmFyIGkgPSBkaXNhYmxlZC5pbmRleE9mKGNhbGxiYWNrKTsKICAgICAgICBpZiAoaSAhPSAtMSkKICAgICAgICAgICAgZGlzYWJsZWQuc3BsaWNlKGksIDEpOwogICAgfQp9OwpFdmVudEVtaXR0ZXIub24gPQogICAgRXZlbnRFbWl0dGVyLmFkZEV2ZW50TGlzdGVuZXIgPSBmdW5jdGlvbiAoZXZlbnROYW1lLCBjYWxsYmFjaywgY2FwdHVyaW5nKSB7CiAgICAgICAgdGhpcy5fZXZlbnRSZWdpc3RyeSA9IHRoaXMuX2V2ZW50UmVnaXN0cnkgfHwge307CiAgICAgICAgdmFyIGxpc3RlbmVycyA9IHRoaXMuX2V2ZW50UmVnaXN0cnlbZXZlbnROYW1lXTsKICAgICAgICBpZiAoIWxpc3RlbmVycykKICAgICAgICAgICAgbGlzdGVuZXJzID0gdGhpcy5fZXZlbnRSZWdpc3RyeVtldmVudE5hbWVdID0gW107CiAgICAgICAgaWYgKGxpc3RlbmVycy5pbmRleE9mKGNhbGxiYWNrKSA9PSAtMSkKICAgICAgICAgICAgbGlzdGVuZXJzW2NhcHR1cmluZyA/ICJ1bnNoaWZ0IiA6ICJwdXNoIl0oY2FsbGJhY2spOwogICAgICAgIHJldHVybiBjYWxsYmFjazsKICAgIH07CkV2ZW50RW1pdHRlci5vZmYgPQogICAgRXZlbnRFbWl0dGVyLnJlbW92ZUxpc3RlbmVyID0KICAgICAgICBFdmVudEVtaXR0ZXIucmVtb3ZlRXZlbnRMaXN0ZW5lciA9IGZ1bmN0aW9uIChldmVudE5hbWUsIGNhbGxiYWNrKSB7CiAgICAgICAgICAgIHRoaXMuX2V2ZW50UmVnaXN0cnkgPSB0aGlzLl9ldmVudFJlZ2lzdHJ5IHx8IHt9OwogICAgICAgICAgICB2YXIgbGlzdGVuZXJzID0gdGhpcy5fZXZlbnRSZWdpc3RyeVtldmVudE5hbWVdOwogICAgICAgICAgICBpZiAoIWxpc3RlbmVycykKICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgdmFyIGluZGV4ID0gbGlzdGVuZXJzLmluZGV4T2YoY2FsbGJhY2spOwogICAgICAgICAgICBpZiAoaW5kZXggIT09IC0xKQogICAgICAgICAgICAgICAgbGlzdGVuZXJzLnNwbGljZShpbmRleCwgMSk7CiAgICAgICAgfTsKRXZlbnRFbWl0dGVyLnJlbW92ZUFsbExpc3RlbmVycyA9IGZ1bmN0aW9uIChldmVudE5hbWUpIHsKICAgIGlmICghZXZlbnROYW1lKQogICAgICAgIHRoaXMuX2V2ZW50UmVnaXN0cnkgPSB0aGlzLl9kZWZhdWx0SGFuZGxlcnMgPSB1bmRlZmluZWQ7CiAgICBpZiAodGhpcy5fZXZlbnRSZWdpc3RyeSkKICAgICAgICB0aGlzLl9ldmVudFJlZ2lzdHJ5W2V2ZW50TmFtZV0gPSB1bmRlZmluZWQ7CiAgICBpZiAodGhpcy5fZGVmYXVsdEhhbmRsZXJzKQogICAgICAgIHRoaXMuX2RlZmF1bHRIYW5kbGVyc1tldmVudE5hbWVdID0gdW5kZWZpbmVkOwp9OwpleHBvcnRzLkV2ZW50RW1pdHRlciA9IEV2ZW50RW1pdHRlcjsKCn0pOwoKYWNlLmRlZmluZSgiYWNlL3JhbmdlIixbXSwgZnVuY3Rpb24ocmVxdWlyZSwgZXhwb3J0cywgbW9kdWxlKXsidXNlIHN0cmljdCI7CnZhciBSYW5nZSA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHsKICAgIGZ1bmN0aW9uIFJhbmdlKHN0YXJ0Um93LCBzdGFydENvbHVtbiwgZW5kUm93LCBlbmRDb2x1bW4pIHsKICAgICAgICB0aGlzLnN0YXJ0ID0gewogICAgICAgICAgICByb3c6IHN0YXJ0Um93LAogICAgICAgICAgICBjb2x1bW46IHN0YXJ0Q29sdW1uCiAgICAgICAgfTsKICAgICAgICB0aGlzLmVuZCA9IHsKICAgICAgICAgICAgcm93OiBlbmRSb3csCiAgICAgICAgICAgIGNvbHVtbjogZW5kQ29sdW1uCiAgICAgICAgfTsKICAgIH0KICAgIFJhbmdlLnByb3RvdHlwZS5pc0VxdWFsID0gZnVuY3Rpb24gKHJhbmdlKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuc3RhcnQucm93ID09PSByYW5nZS5zdGFydC5yb3cgJiYKICAgICAgICAgICAgdGhpcy5lbmQucm93ID09PSByYW5nZS5lbmQucm93ICYmCiAgICAgICAgICAgIHRoaXMuc3RhcnQuY29sdW1uID09PSByYW5nZS5zdGFydC5jb2x1bW4gJiYKICAgICAgICAgICAgdGhpcy5lbmQuY29sdW1uID09PSByYW5nZS5lbmQuY29sdW1uOwogICAgfTsKICAgIFJhbmdlLnByb3RvdHlwZS50b1N0cmluZyA9IGZ1bmN0aW9uICgpIHsKICAgICAgICByZXR1cm4gKCJSYW5nZTogWyIgKyB0aGlzLnN0YXJ0LnJvdyArICIvIiArIHRoaXMuc3RhcnQuY29sdW1uICsKICAgICAgICAgICAgIl0gLT4gWyIgKyB0aGlzLmVuZC5yb3cgKyAiLyIgKyB0aGlzLmVuZC5jb2x1bW4gKyAiXSIpOwogICAgfTsKICAgIFJhbmdlLnByb3RvdHlwZS5jb250YWlucyA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIHJldHVybiB0aGlzLmNvbXBhcmUocm93LCBjb2x1bW4pID09IDA7CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmNvbXBhcmVSYW5nZSA9IGZ1bmN0aW9uIChyYW5nZSkgewogICAgICAgIHZhciBjbXAsIGVuZCA9IHJhbmdlLmVuZCwgc3RhcnQgPSByYW5nZS5zdGFydDsKICAgICAgICBjbXAgPSB0aGlzLmNvbXBhcmUoZW5kLnJvdywgZW5kLmNvbHVtbik7CiAgICAgICAgaWYgKGNtcCA9PSAxKSB7CiAgICAgICAgICAgIGNtcCA9IHRoaXMuY29tcGFyZShzdGFydC5yb3csIHN0YXJ0LmNvbHVtbik7CiAgICAgICAgICAgIGlmIChjbXAgPT0gMSkgewogICAgICAgICAgICAgICAgcmV0dXJuIDI7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSBpZiAoY21wID09IDApIHsKICAgICAgICAgICAgICAgIHJldHVybiAxOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGVsc2UgewogICAgICAgICAgICAgICAgcmV0dXJuIDA7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgZWxzZSBpZiAoY21wID09IC0xKSB7CiAgICAgICAgICAgIHJldHVybiAtMjsKICAgICAgICB9CiAgICAgICAgZWxzZSB7CiAgICAgICAgICAgIGNtcCA9IHRoaXMuY29tcGFyZShzdGFydC5yb3csIHN0YXJ0LmNvbHVtbik7CiAgICAgICAgICAgIGlmIChjbXAgPT0gLTEpIHsKICAgICAgICAgICAgICAgIHJldHVybiAtMTsKICAgICAgICAgICAgfQogICAgICAgICAgICBlbHNlIGlmIChjbXAgPT0gMSkgewogICAgICAgICAgICAgICAgcmV0dXJuIDQyOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGVsc2UgewogICAgICAgICAgICAgICAgcmV0dXJuIDA7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmNvbXBhcmVQb2ludCA9IGZ1bmN0aW9uIChwKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuY29tcGFyZShwLnJvdywgcC5jb2x1bW4pOwogICAgfTsKICAgIFJhbmdlLnByb3RvdHlwZS5jb250YWluc1JhbmdlID0gZnVuY3Rpb24gKHJhbmdlKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuY29tcGFyZVBvaW50KHJhbmdlLnN0YXJ0KSA9PSAwICYmIHRoaXMuY29tcGFyZVBvaW50KHJhbmdlLmVuZCkgPT0gMDsKICAgIH07CiAgICBSYW5nZS5wcm90b3R5cGUuaW50ZXJzZWN0cyA9IGZ1bmN0aW9uIChyYW5nZSkgewogICAgICAgIHZhciBjbXAgPSB0aGlzLmNvbXBhcmVSYW5nZShyYW5nZSk7CiAgICAgICAgcmV0dXJuIChjbXAgPT0gLTEgfHwgY21wID09IDAgfHwgY21wID09IDEpOwogICAgfTsKICAgIFJhbmdlLnByb3RvdHlwZS5pc0VuZCA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIHJldHVybiB0aGlzLmVuZC5yb3cgPT0gcm93ICYmIHRoaXMuZW5kLmNvbHVtbiA9PSBjb2x1bW47CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmlzU3RhcnQgPSBmdW5jdGlvbiAocm93LCBjb2x1bW4pIHsKICAgICAgICByZXR1cm4gdGhpcy5zdGFydC5yb3cgPT0gcm93ICYmIHRoaXMuc3RhcnQuY29sdW1uID09IGNvbHVtbjsKICAgIH07CiAgICBSYW5nZS5wcm90b3R5cGUuc2V0U3RhcnQgPSBmdW5jdGlvbiAocm93LCBjb2x1bW4pIHsKICAgICAgICBpZiAodHlwZW9mIHJvdyA9PSAib2JqZWN0IikgewogICAgICAgICAgICB0aGlzLnN0YXJ0LmNvbHVtbiA9IHJvdy5jb2x1bW47CiAgICAgICAgICAgIHRoaXMuc3RhcnQucm93ID0gcm93LnJvdzsKICAgICAgICB9CiAgICAgICAgZWxzZSB7CiAgICAgICAgICAgIHRoaXMuc3RhcnQucm93ID0gcm93OwogICAgICAgICAgICB0aGlzLnN0YXJ0LmNvbHVtbiA9IGNvbHVtbjsKICAgICAgICB9CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLnNldEVuZCA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIGlmICh0eXBlb2Ygcm93ID09ICJvYmplY3QiKSB7CiAgICAgICAgICAgIHRoaXMuZW5kLmNvbHVtbiA9IHJvdy5jb2x1bW47CiAgICAgICAgICAgIHRoaXMuZW5kLnJvdyA9IHJvdy5yb3c7CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICB0aGlzLmVuZC5yb3cgPSByb3c7CiAgICAgICAgICAgIHRoaXMuZW5kLmNvbHVtbiA9IGNvbHVtbjsKICAgICAgICB9CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmluc2lkZSA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIGlmICh0aGlzLmNvbXBhcmUocm93LCBjb2x1bW4pID09IDApIHsKICAgICAgICAgICAgaWYgKHRoaXMuaXNFbmQocm93LCBjb2x1bW4pIHx8IHRoaXMuaXNTdGFydChyb3csIGNvbHVtbikpIHsKICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICAgICAgfQogICAgICAgICAgICBlbHNlIHsKICAgICAgICAgICAgICAgIHJldHVybiB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBmYWxzZTsKICAgIH07CiAgICBSYW5nZS5wcm90b3R5cGUuaW5zaWRlU3RhcnQgPSBmdW5jdGlvbiAocm93LCBjb2x1bW4pIHsKICAgICAgICBpZiAodGhpcy5jb21wYXJlKHJvdywgY29sdW1uKSA9PSAwKSB7CiAgICAgICAgICAgIGlmICh0aGlzLmlzRW5kKHJvdywgY29sdW1uKSkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGVsc2UgewogICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgfTsKICAgIFJhbmdlLnByb3RvdHlwZS5pbnNpZGVFbmQgPSBmdW5jdGlvbiAocm93LCBjb2x1bW4pIHsKICAgICAgICBpZiAodGhpcy5jb21wYXJlKHJvdywgY29sdW1uKSA9PSAwKSB7CiAgICAgICAgICAgIGlmICh0aGlzLmlzU3RhcnQocm93LCBjb2x1bW4pKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSB7CiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gZmFsc2U7CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmNvbXBhcmUgPSBmdW5jdGlvbiAocm93LCBjb2x1bW4pIHsKICAgICAgICBpZiAoIXRoaXMuaXNNdWx0aUxpbmUoKSkgewogICAgICAgICAgICBpZiAocm93ID09PSB0aGlzLnN0YXJ0LnJvdykgewogICAgICAgICAgICAgICAgcmV0dXJuIGNvbHVtbiA8IHRoaXMuc3RhcnQuY29sdW1uID8gLTEgOiAoY29sdW1uID4gdGhpcy5lbmQuY29sdW1uID8gMSA6IDApOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGlmIChyb3cgPCB0aGlzLnN0YXJ0LnJvdykKICAgICAgICAgICAgcmV0dXJuIC0xOwogICAgICAgIGlmIChyb3cgPiB0aGlzLmVuZC5yb3cpCiAgICAgICAgICAgIHJldHVybiAxOwogICAgICAgIGlmICh0aGlzLnN0YXJ0LnJvdyA9PT0gcm93KQogICAgICAgICAgICByZXR1cm4gY29sdW1uID49IHRoaXMuc3RhcnQuY29sdW1uID8gMCA6IC0xOwogICAgICAgIGlmICh0aGlzLmVuZC5yb3cgPT09IHJvdykKICAgICAgICAgICAgcmV0dXJuIGNvbHVtbiA8PSB0aGlzLmVuZC5jb2x1bW4gPyAwIDogMTsKICAgICAgICByZXR1cm4gMDsKICAgIH07CiAgICBSYW5nZS5wcm90b3R5cGUuY29tcGFyZVN0YXJ0ID0gZnVuY3Rpb24gKHJvdywgY29sdW1uKSB7CiAgICAgICAgaWYgKHRoaXMuc3RhcnQucm93ID09IHJvdyAmJiB0aGlzLnN0YXJ0LmNvbHVtbiA9PSBjb2x1bW4pIHsKICAgICAgICAgICAgcmV0dXJuIC0xOwogICAgICAgIH0KICAgICAgICBlbHNlIHsKICAgICAgICAgICAgcmV0dXJuIHRoaXMuY29tcGFyZShyb3csIGNvbHVtbik7CiAgICAgICAgfQogICAgfTsKICAgIFJhbmdlLnByb3RvdHlwZS5jb21wYXJlRW5kID0gZnVuY3Rpb24gKHJvdywgY29sdW1uKSB7CiAgICAgICAgaWYgKHRoaXMuZW5kLnJvdyA9PSByb3cgJiYgdGhpcy5lbmQuY29sdW1uID09IGNvbHVtbikgewogICAgICAgICAgICByZXR1cm4gMTsKICAgICAgICB9CiAgICAgICAgZWxzZSB7CiAgICAgICAgICAgIHJldHVybiB0aGlzLmNvbXBhcmUocm93LCBjb2x1bW4pOwogICAgICAgIH0KICAgIH07CiAgICBSYW5nZS5wcm90b3R5cGUuY29tcGFyZUluc2lkZSA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIGlmICh0aGlzLmVuZC5yb3cgPT0gcm93ICYmIHRoaXMuZW5kLmNvbHVtbiA9PSBjb2x1bW4pIHsKICAgICAgICAgICAgcmV0dXJuIDE7CiAgICAgICAgfQogICAgICAgIGVsc2UgaWYgKHRoaXMuc3RhcnQucm93ID09IHJvdyAmJiB0aGlzLnN0YXJ0LmNvbHVtbiA9PSBjb2x1bW4pIHsKICAgICAgICAgICAgcmV0dXJuIC0xOwogICAgICAgIH0KICAgICAgICBlbHNlIHsKICAgICAgICAgICAgcmV0dXJuIHRoaXMuY29tcGFyZShyb3csIGNvbHVtbik7CiAgICAgICAgfQogICAgfTsKICAgIFJhbmdlLnByb3RvdHlwZS5jbGlwUm93cyA9IGZ1bmN0aW9uIChmaXJzdFJvdywgbGFzdFJvdykgewogICAgICAgIGlmICh0aGlzLmVuZC5yb3cgPiBsYXN0Um93KQogICAgICAgICAgICB2YXIgZW5kID0geyByb3c6IGxhc3RSb3cgKyAxLCBjb2x1bW46IDAgfTsKICAgICAgICBlbHNlIGlmICh0aGlzLmVuZC5yb3cgPCBmaXJzdFJvdykKICAgICAgICAgICAgdmFyIGVuZCA9IHsgcm93OiBmaXJzdFJvdywgY29sdW1uOiAwIH07CiAgICAgICAgaWYgKHRoaXMuc3RhcnQucm93ID4gbGFzdFJvdykKICAgICAgICAgICAgdmFyIHN0YXJ0ID0geyByb3c6IGxhc3RSb3cgKyAxLCBjb2x1bW46IDAgfTsKICAgICAgICBlbHNlIGlmICh0aGlzLnN0YXJ0LnJvdyA8IGZpcnN0Um93KQogICAgICAgICAgICB2YXIgc3RhcnQgPSB7IHJvdzogZmlyc3RSb3csIGNvbHVtbjogMCB9OwogICAgICAgIHJldHVybiBSYW5nZS5mcm9tUG9pbnRzKHN0YXJ0IHx8IHRoaXMuc3RhcnQsIGVuZCB8fCB0aGlzLmVuZCk7CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmV4dGVuZCA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIHZhciBjbXAgPSB0aGlzLmNvbXBhcmUocm93LCBjb2x1bW4pOwogICAgICAgIGlmIChjbXAgPT0gMCkKICAgICAgICAgICAgcmV0dXJuIHRoaXM7CiAgICAgICAgZWxzZSBpZiAoY21wID09IC0xKQogICAgICAgICAgICB2YXIgc3RhcnQgPSB7IHJvdzogcm93LCBjb2x1bW46IGNvbHVtbiB9OwogICAgICAgIGVsc2UKICAgICAgICAgICAgdmFyIGVuZCA9IHsgcm93OiByb3csIGNvbHVtbjogY29sdW1uIH07CiAgICAgICAgcmV0dXJuIFJhbmdlLmZyb21Qb2ludHMoc3RhcnQgfHwgdGhpcy5zdGFydCwgZW5kIHx8IHRoaXMuZW5kKTsKICAgIH07CiAgICBSYW5nZS5wcm90b3R5cGUuaXNFbXB0eSA9IGZ1bmN0aW9uICgpIHsKICAgICAgICByZXR1cm4gKHRoaXMuc3RhcnQucm93ID09PSB0aGlzLmVuZC5yb3cgJiYgdGhpcy5zdGFydC5jb2x1bW4gPT09IHRoaXMuZW5kLmNvbHVtbik7CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmlzTXVsdGlMaW5lID0gZnVuY3Rpb24gKCkgewogICAgICAgIHJldHVybiAodGhpcy5zdGFydC5yb3cgIT09IHRoaXMuZW5kLnJvdyk7CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmNsb25lID0gZnVuY3Rpb24gKCkgewogICAgICAgIHJldHVybiBSYW5nZS5mcm9tUG9pbnRzKHRoaXMuc3RhcnQsIHRoaXMuZW5kKTsKICAgIH07CiAgICBSYW5nZS5wcm90b3R5cGUuY29sbGFwc2VSb3dzID0gZnVuY3Rpb24gKCkgewogICAgICAgIGlmICh0aGlzLmVuZC5jb2x1bW4gPT0gMCkKICAgICAgICAgICAgcmV0dXJuIG5ldyBSYW5nZSh0aGlzLnN0YXJ0LnJvdywgMCwgTWF0aC5tYXgodGhpcy5zdGFydC5yb3csIHRoaXMuZW5kLnJvdyAtIDEpLCAwKTsKICAgICAgICBlbHNlCiAgICAgICAgICAgIHJldHVybiBuZXcgUmFuZ2UodGhpcy5zdGFydC5yb3csIDAsIHRoaXMuZW5kLnJvdywgMCk7CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLnRvU2NyZWVuUmFuZ2UgPSBmdW5jdGlvbiAoc2Vzc2lvbikgewogICAgICAgIHZhciBzY3JlZW5Qb3NTdGFydCA9IHNlc3Npb24uZG9jdW1lbnRUb1NjcmVlblBvc2l0aW9uKHRoaXMuc3RhcnQpOwogICAgICAgIHZhciBzY3JlZW5Qb3NFbmQgPSBzZXNzaW9uLmRvY3VtZW50VG9TY3JlZW5Qb3NpdGlvbih0aGlzLmVuZCk7CiAgICAgICAgcmV0dXJuIG5ldyBSYW5nZShzY3JlZW5Qb3NTdGFydC5yb3csIHNjcmVlblBvc1N0YXJ0LmNvbHVtbiwgc2NyZWVuUG9zRW5kLnJvdywgc2NyZWVuUG9zRW5kLmNvbHVtbik7CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLm1vdmVCeSA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIHRoaXMuc3RhcnQucm93ICs9IHJvdzsKICAgICAgICB0aGlzLnN0YXJ0LmNvbHVtbiArPSBjb2x1bW47CiAgICAgICAgdGhpcy5lbmQucm93ICs9IHJvdzsKICAgICAgICB0aGlzLmVuZC5jb2x1bW4gKz0gY29sdW1uOwogICAgfTsKICAgIHJldHVybiBSYW5nZTsKfSgpKTsKUmFuZ2UuZnJvbVBvaW50cyA9IGZ1bmN0aW9uIChzdGFydCwgZW5kKSB7CiAgICByZXR1cm4gbmV3IFJhbmdlKHN0YXJ0LnJvdywgc3RhcnQuY29sdW1uLCBlbmQucm93LCBlbmQuY29sdW1uKTsKfTsKUmFuZ2UuY29tcGFyZVBvaW50cyA9IGZ1bmN0aW9uIChwMSwgcDIpIHsKICAgIHJldHVybiBwMS5yb3cgLSBwMi5yb3cgfHwgcDEuY29sdW1uIC0gcDIuY29sdW1uOwp9OwpleHBvcnRzLlJhbmdlID0gUmFuZ2U7Cgp9KTsKCmFjZS5kZWZpbmUoImFjZS9hbmNob3IiLFtdLCBmdW5jdGlvbihyZXF1aXJlLCBleHBvcnRzLCBtb2R1bGUpeyJ1c2Ugc3RyaWN0IjsKdmFyIG9vcCA9IHJlcXVpcmUoIi4vbGliL29vcCIpOwp2YXIgRXZlbnRFbWl0dGVyID0gcmVxdWlyZSgiLi9saWIvZXZlbnRfZW1pdHRlciIpLkV2ZW50RW1pdHRlcjsKdmFyIEFuY2hvciA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHsKICAgIGZ1bmN0aW9uIEFuY2hvcihkb2MsIHJvdywgY29sdW1uKSB7CiAgICAgICAgdGhpcy4kb25DaGFuZ2UgPSB0aGlzLm9uQ2hhbmdlLmJpbmQodGhpcyk7CiAgICAgICAgdGhpcy5hdHRhY2goZG9jKTsKICAgICAgICBpZiAodHlwZW9mIHJvdyAhPSAibnVtYmVyIikKICAgICAgICAgICAgdGhpcy5zZXRQb3NpdGlvbihyb3cucm93LCByb3cuY29sdW1uKTsKICAgICAgICBlbHNlCiAgICAgICAgICAgIHRoaXMuc2V0UG9zaXRpb24ocm93LCBjb2x1bW4pOwogICAgfQogICAgQW5jaG9yLnByb3RvdHlwZS5nZXRQb3NpdGlvbiA9IGZ1bmN0aW9uICgpIHsKICAgICAgICByZXR1cm4gdGhpcy4kY2xpcFBvc2l0aW9uVG9Eb2N1bWVudCh0aGlzLnJvdywgdGhpcy5jb2x1bW4pOwogICAgfTsKICAgIEFuY2hvci5wcm90b3R5cGUuZ2V0RG9jdW1lbnQgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuZG9jdW1lbnQ7CiAgICB9OwogICAgQW5jaG9yLnByb3RvdHlwZS5vbkNoYW5nZSA9IGZ1bmN0aW9uIChkZWx0YSkgewogICAgICAgIGlmIChkZWx0YS5zdGFydC5yb3cgPT0gZGVsdGEuZW5kLnJvdyAmJiBkZWx0YS5zdGFydC5yb3cgIT0gdGhpcy5yb3cpCiAgICAgICAgICAgIHJldHVybjsKICAgICAgICBpZiAoZGVsdGEuc3RhcnQucm93ID4gdGhpcy5yb3cpCiAgICAgICAgICAgIHJldHVybjsKICAgICAgICB2YXIgcG9pbnQgPSAkZ2V0VHJhbnNmb3JtZWRQb2ludChkZWx0YSwgeyByb3c6IHRoaXMucm93LCBjb2x1bW46IHRoaXMuY29sdW1uIH0sIHRoaXMuJGluc2VydFJpZ2h0KTsKICAgICAgICB0aGlzLnNldFBvc2l0aW9uKHBvaW50LnJvdywgcG9pbnQuY29sdW1uLCB0cnVlKTsKICAgIH07CiAgICBBbmNob3IucHJvdG90eXBlLnNldFBvc2l0aW9uID0gZnVuY3Rpb24gKHJvdywgY29sdW1uLCBub0NsaXApIHsKICAgICAgICB2YXIgcG9zOwogICAgICAgIGlmIChub0NsaXApIHsKICAgICAgICAgICAgcG9zID0gewogICAgICAgICAgICAgICAgcm93OiByb3csCiAgICAgICAgICAgICAgICBjb2x1bW46IGNvbHVtbgogICAgICAgICAgICB9OwogICAgICAgIH0KICAgICAgICBlbHNlIHsKICAgICAgICAgICAgcG9zID0gdGhpcy4kY2xpcFBvc2l0aW9uVG9Eb2N1bWVudChyb3csIGNvbHVtbik7CiAgICAgICAgfQogICAgICAgIGlmICh0aGlzLnJvdyA9PSBwb3Mucm93ICYmIHRoaXMuY29sdW1uID09IHBvcy5jb2x1bW4pCiAgICAgICAgICAgIHJldHVybjsKICAgICAgICB2YXIgb2xkID0gewogICAgICAgICAgICByb3c6IHRoaXMucm93LAogICAgICAgICAgICBjb2x1bW46IHRoaXMuY29sdW1uCiAgICAgICAgfTsKICAgICAgICB0aGlzLnJvdyA9IHBvcy5yb3c7CiAgICAgICAgdGhpcy5jb2x1bW4gPSBwb3MuY29sdW1uOwogICAgICAgIHRoaXMuX3NpZ25hbCgiY2hhbmdlIiwgewogICAgICAgICAgICBvbGQ6IG9sZCwKICAgICAgICAgICAgdmFsdWU6IHBvcwogICAgICAgIH0pOwogICAgfTsKICAgIEFuY2hvci5wcm90b3R5cGUuZGV0YWNoID0gZnVuY3Rpb24gKCkgewogICAgICAgIHRoaXMuZG9jdW1lbnQub2ZmKCJjaGFuZ2UiLCB0aGlzLiRvbkNoYW5nZSk7CiAgICB9OwogICAgQW5jaG9yLnByb3RvdHlwZS5hdHRhY2ggPSBmdW5jdGlvbiAoZG9jKSB7CiAgICAgICAgdGhpcy5kb2N1bWVudCA9IGRvYyB8fCB0aGlzLmRvY3VtZW50OwogICAgICAgIHRoaXMuZG9jdW1lbnQub24oImNoYW5nZSIsIHRoaXMuJG9uQ2hhbmdlKTsKICAgIH07CiAgICBBbmNob3IucHJvdG90eXBlLiRjbGlwUG9zaXRpb25Ub0RvY3VtZW50ID0gZnVuY3Rpb24gKHJvdywgY29sdW1uKSB7CiAgICAgICAgdmFyIHBvcyA9IHt9OwogICAgICAgIGlmIChyb3cgPj0gdGhpcy5kb2N1bWVudC5nZXRMZW5ndGgoKSkgewogICAgICAgICAgICBwb3Mucm93ID0gTWF0aC5tYXgoMCwgdGhpcy5kb2N1bWVudC5nZXRMZW5ndGgoKSAtIDEpOwogICAgICAgICAgICBwb3MuY29sdW1uID0gdGhpcy5kb2N1bWVudC5nZXRMaW5lKHBvcy5yb3cpLmxlbmd0aDsKICAgICAgICB9CiAgICAgICAgZWxzZSBpZiAocm93IDwgMCkgewogICAgICAgICAgICBwb3Mucm93ID0gMDsKICAgICAgICAgICAgcG9zLmNvbHVtbiA9IDA7CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICBwb3Mucm93ID0gcm93OwogICAgICAgICAgICBwb3MuY29sdW1uID0gTWF0aC5taW4odGhpcy5kb2N1bWVudC5nZXRMaW5lKHBvcy5yb3cpLmxlbmd0aCwgTWF0aC5tYXgoMCwgY29sdW1uKSk7CiAgICAgICAgfQogICAgICAgIGlmIChjb2x1bW4gPCAwKQogICAgICAgICAgICBwb3MuY29sdW1uID0gMDsKICAgICAgICByZXR1cm4gcG9zOwogICAgfTsKICAgIHJldHVybiBBbmNob3I7Cn0oKSk7CkFuY2hvci5wcm90b3R5cGUuJGluc2VydFJpZ2h0ID0gZmFsc2U7Cm9vcC5pbXBsZW1lbnQoQW5jaG9yLnByb3RvdHlwZSwgRXZlbnRFbWl0dGVyKTsKZnVuY3Rpb24gJHBvaW50c0luT3JkZXIocG9pbnQxLCBwb2ludDIsIGVxdWFsUG9pbnRzSW5PcmRlcikgewogICAgdmFyIGJDb2xJc0FmdGVyID0gZXF1YWxQb2ludHNJbk9yZGVyID8gcG9pbnQxLmNvbHVtbiA8PSBwb2ludDIuY29sdW1uIDogcG9pbnQxLmNvbHVtbiA8IHBvaW50Mi5jb2x1bW47CiAgICByZXR1cm4gKHBvaW50MS5yb3cgPCBwb2ludDIucm93KSB8fCAocG9pbnQxLnJvdyA9PSBwb2ludDIucm93ICYmIGJDb2xJc0FmdGVyKTsKfQpmdW5jdGlvbiAkZ2V0VHJhbnNmb3JtZWRQb2ludChkZWx0YSwgcG9pbnQsIG1vdmVJZkVxdWFsKSB7CiAgICB2YXIgZGVsdGFJc0luc2VydCA9IGRlbHRhLmFjdGlvbiA9PSAiaW5zZXJ0IjsKICAgIHZhciBkZWx0YVJvd1NoaWZ0ID0gKGRlbHRhSXNJbnNlcnQgPyAxIDogLTEpICogKGRlbHRhLmVuZC5yb3cgLSBkZWx0YS5zdGFydC5yb3cpOwogICAgdmFyIGRlbHRhQ29sU2hpZnQgPSAoZGVsdGFJc0luc2VydCA/IDEgOiAtMSkgKiAoZGVsdGEuZW5kLmNvbHVtbiAtIGRlbHRhLnN0YXJ0LmNvbHVtbik7CiAgICB2YXIgZGVsdGFTdGFydCA9IGRlbHRhLnN0YXJ0OwogICAgdmFyIGRlbHRhRW5kID0gZGVsdGFJc0luc2VydCA/IGRlbHRhU3RhcnQgOiBkZWx0YS5lbmQ7IC8vIENvbGxhcHNlIGluc2VydCByYW5nZS4KICAgIGlmICgkcG9pbnRzSW5PcmRlcihwb2ludCwgZGVsdGFTdGFydCwgbW92ZUlmRXF1YWwpKSB7CiAgICAgICAgcmV0dXJuIHsKICAgICAgICAgICAgcm93OiBwb2ludC5yb3csCiAgICAgICAgICAgIGNvbHVtbjogcG9pbnQuY29sdW1uCiAgICAgICAgfTsKICAgIH0KICAgIGlmICgkcG9pbnRzSW5PcmRlcihkZWx0YUVuZCwgcG9pbnQsICFtb3ZlSWZFcXVhbCkpIHsKICAgICAgICByZXR1cm4gewogICAgICAgICAgICByb3c6IHBvaW50LnJvdyArIGRlbHRhUm93U2hpZnQsCiAgICAgICAgICAgIGNvbHVtbjogcG9pbnQuY29sdW1uICsgKHBvaW50LnJvdyA9PSBkZWx0YUVuZC5yb3cgPyBkZWx0YUNvbFNoaWZ0IDogMCkKICAgICAgICB9OwogICAgfQogICAgcmV0dXJuIHsKICAgICAgICByb3c6IGRlbHRhU3RhcnQucm93LAogICAgICAgIGNvbHVtbjogZGVsdGFTdGFydC5jb2x1bW4KICAgIH07Cn0KZXhwb3J0cy5BbmNob3IgPSBBbmNob3I7Cgp9KTsKCmFjZS5kZWZpbmUoImFjZS9kb2N1bWVudCIsW10sIGZ1bmN0aW9uKHJlcXVpcmUsIGV4cG9ydHMsIG1vZHVsZSl7InVzZSBzdHJpY3QiOwp2YXIgb29wID0gcmVxdWlyZSgiLi9saWIvb29wIik7CnZhciBhcHBseURlbHRhID0gcmVxdWlyZSgiLi9hcHBseV9kZWx0YSIpLmFwcGx5RGVsdGE7CnZhciBFdmVudEVtaXR0ZXIgPSByZXF1aXJlKCIuL2xpYi9ldmVudF9lbWl0dGVyIikuRXZlbnRFbWl0dGVyOwp2YXIgUmFuZ2UgPSByZXF1aXJlKCIuL3JhbmdlIikuUmFuZ2U7CnZhciBBbmNob3IgPSByZXF1aXJlKCIuL2FuY2hvciIpLkFuY2hvcjsKdmFyIERvY3VtZW50ID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkgewogICAgZnVuY3Rpb24gRG9jdW1lbnQodGV4dE9yTGluZXMpIHsKICAgICAgICB0aGlzLiRsaW5lcyA9IFsiIl07CiAgICAgICAgaWYgKHRleHRPckxpbmVzLmxlbmd0aCA9PT0gMCkgewogICAgICAgICAgICB0aGlzLiRsaW5lcyA9IFsiIl07CiAgICAgICAgfQogICAgICAgIGVsc2UgaWYgKEFycmF5LmlzQXJyYXkodGV4dE9yTGluZXMpKSB7CiAgICAgICAgICAgIHRoaXMuaW5zZXJ0TWVyZ2VkTGluZXMoeyByb3c6IDAsIGNvbHVtbjogMCB9LCB0ZXh0T3JMaW5lcyk7CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICB0aGlzLmluc2VydCh7IHJvdzogMCwgY29sdW1uOiAwIH0sIHRleHRPckxpbmVzKTsKICAgICAgICB9CiAgICB9CiAgICBEb2N1bWVudC5wcm90b3R5cGUuc2V0VmFsdWUgPSBmdW5jdGlvbiAodGV4dCkgewogICAgICAgIHZhciBsZW4gPSB0aGlzLmdldExlbmd0aCgpIC0gMTsKICAgICAgICB0aGlzLnJlbW92ZShuZXcgUmFuZ2UoMCwgMCwgbGVuLCB0aGlzLmdldExpbmUobGVuKS5sZW5ndGgpKTsKICAgICAgICB0aGlzLmluc2VydCh7IHJvdzogMCwgY29sdW1uOiAwIH0sIHRleHQgfHwgIiIpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5nZXRWYWx1ZSA9IGZ1bmN0aW9uICgpIHsKICAgICAgICByZXR1cm4gdGhpcy5nZXRBbGxMaW5lcygpLmpvaW4odGhpcy5nZXROZXdMaW5lQ2hhcmFjdGVyKCkpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5jcmVhdGVBbmNob3IgPSBmdW5jdGlvbiAocm93LCBjb2x1bW4pIHsKICAgICAgICByZXR1cm4gbmV3IEFuY2hvcih0aGlzLCByb3csIGNvbHVtbik7CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLiRkZXRlY3ROZXdMaW5lID0gZnVuY3Rpb24gKHRleHQpIHsKICAgICAgICB2YXIgbWF0Y2ggPSB0ZXh0Lm1hdGNoKC9eLio/KFxyXG58XHJ8XG4pL20pOwogICAgICAgIHRoaXMuJGF1dG9OZXdMaW5lID0gbWF0Y2ggPyBtYXRjaFsxXSA6ICJcbiI7CiAgICAgICAgdGhpcy5fc2lnbmFsKCJjaGFuZ2VOZXdMaW5lTW9kZSIpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5nZXROZXdMaW5lQ2hhcmFjdGVyID0gZnVuY3Rpb24gKCkgewogICAgICAgIHN3aXRjaCAodGhpcy4kbmV3TGluZU1vZGUpIHsKICAgICAgICAgICAgY2FzZSAid2luZG93cyI6CiAgICAgICAgICAgICAgICByZXR1cm4gIlxyXG4iOwogICAgICAgICAgICBjYXNlICJ1bml4IjoKICAgICAgICAgICAgICAgIHJldHVybiAiXG4iOwogICAgICAgICAgICBkZWZhdWx0OgogICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuJGF1dG9OZXdMaW5lIHx8ICJcbiI7CiAgICAgICAgfQogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5zZXROZXdMaW5lTW9kZSA9IGZ1bmN0aW9uIChuZXdMaW5lTW9kZSkgewogICAgICAgIGlmICh0aGlzLiRuZXdMaW5lTW9kZSA9PT0gbmV3TGluZU1vZGUpCiAgICAgICAgICAgIHJldHVybjsKICAgICAgICB0aGlzLiRuZXdMaW5lTW9kZSA9IG5ld0xpbmVNb2RlOwogICAgICAgIHRoaXMuX3NpZ25hbCgiY2hhbmdlTmV3TGluZU1vZGUiKTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuZ2V0TmV3TGluZU1vZGUgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuJG5ld0xpbmVNb2RlOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5pc05ld0xpbmUgPSBmdW5jdGlvbiAodGV4dCkgewogICAgICAgIHJldHVybiAodGV4dCA9PSAiXHJcbiIgfHwgdGV4dCA9PSAiXHIiIHx8IHRleHQgPT0gIlxuIik7CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLmdldExpbmUgPSBmdW5jdGlvbiAocm93KSB7CiAgICAgICAgcmV0dXJuIHRoaXMuJGxpbmVzW3Jvd10gfHwgIiI7CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLmdldExpbmVzID0gZnVuY3Rpb24gKGZpcnN0Um93LCBsYXN0Um93KSB7CiAgICAgICAgcmV0dXJuIHRoaXMuJGxpbmVzLnNsaWNlKGZpcnN0Um93LCBsYXN0Um93ICsgMSk7CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLmdldEFsbExpbmVzID0gZnVuY3Rpb24gKCkgewogICAgICAgIHJldHVybiB0aGlzLmdldExpbmVzKDAsIHRoaXMuZ2V0TGVuZ3RoKCkpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5nZXRMZW5ndGggPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuJGxpbmVzLmxlbmd0aDsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuZ2V0VGV4dFJhbmdlID0gZnVuY3Rpb24gKHJhbmdlKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuZ2V0TGluZXNGb3JSYW5nZShyYW5nZSkuam9pbih0aGlzLmdldE5ld0xpbmVDaGFyYWN0ZXIoKSk7CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLmdldExpbmVzRm9yUmFuZ2UgPSBmdW5jdGlvbiAocmFuZ2UpIHsKICAgICAgICB2YXIgbGluZXM7CiAgICAgICAgaWYgKHJhbmdlLnN0YXJ0LnJvdyA9PT0gcmFuZ2UuZW5kLnJvdykgewogICAgICAgICAgICBsaW5lcyA9IFt0aGlzLmdldExpbmUocmFuZ2Uuc3RhcnQucm93KS5zdWJzdHJpbmcocmFuZ2Uuc3RhcnQuY29sdW1uLCByYW5nZS5lbmQuY29sdW1uKV07CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICBsaW5lcyA9IHRoaXMuZ2V0TGluZXMocmFuZ2Uuc3RhcnQucm93LCByYW5nZS5lbmQucm93KTsKICAgICAgICAgICAgbGluZXNbMF0gPSAobGluZXNbMF0gfHwgIiIpLnN1YnN0cmluZyhyYW5nZS5zdGFydC5jb2x1bW4pOwogICAgICAgICAgICB2YXIgbCA9IGxpbmVzLmxlbmd0aCAtIDE7CiAgICAgICAgICAgIGlmIChyYW5nZS5lbmQucm93IC0gcmFuZ2Uuc3RhcnQucm93ID09IGwpCiAgICAgICAgICAgICAgICBsaW5lc1tsXSA9IGxpbmVzW2xdLnN1YnN0cmluZygwLCByYW5nZS5lbmQuY29sdW1uKTsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIGxpbmVzOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5pbnNlcnRMaW5lcyA9IGZ1bmN0aW9uIChyb3csIGxpbmVzKSB7CiAgICAgICAgY29uc29sZS53YXJuKCJVc2Ugb2YgZG9jdW1lbnQuaW5zZXJ0TGluZXMgaXMgZGVwcmVjYXRlZC4gVXNlIHRoZSBpbnNlcnRGdWxsTGluZXMgbWV0aG9kIGluc3RlYWQuIik7CiAgICAgICAgcmV0dXJuIHRoaXMuaW5zZXJ0RnVsbExpbmVzKHJvdywgbGluZXMpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5yZW1vdmVMaW5lcyA9IGZ1bmN0aW9uIChmaXJzdFJvdywgbGFzdFJvdykgewogICAgICAgIGNvbnNvbGUud2FybigiVXNlIG9mIGRvY3VtZW50LnJlbW92ZUxpbmVzIGlzIGRlcHJlY2F0ZWQuIFVzZSB0aGUgcmVtb3ZlRnVsbExpbmVzIG1ldGhvZCBpbnN0ZWFkLiIpOwogICAgICAgIHJldHVybiB0aGlzLnJlbW92ZUZ1bGxMaW5lcyhmaXJzdFJvdywgbGFzdFJvdyk7CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLmluc2VydE5ld0xpbmUgPSBmdW5jdGlvbiAocG9zaXRpb24pIHsKICAgICAgICBjb25zb2xlLndhcm4oIlVzZSBvZiBkb2N1bWVudC5pbnNlcnROZXdMaW5lIGlzIGRlcHJlY2F0ZWQuIFVzZSBpbnNlcnRNZXJnZWRMaW5lcyhwb3NpdGlvbiwgWycnLCAnJ10pIGluc3RlYWQuIik7CiAgICAgICAgcmV0dXJuIHRoaXMuaW5zZXJ0TWVyZ2VkTGluZXMocG9zaXRpb24sIFsiIiwgIiJdKTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuaW5zZXJ0ID0gZnVuY3Rpb24gKHBvc2l0aW9uLCB0ZXh0KSB7CiAgICAgICAgaWYgKHRoaXMuZ2V0TGVuZ3RoKCkgPD0gMSkKICAgICAgICAgICAgdGhpcy4kZGV0ZWN0TmV3TGluZSh0ZXh0KTsKICAgICAgICByZXR1cm4gdGhpcy5pbnNlcnRNZXJnZWRMaW5lcyhwb3NpdGlvbiwgdGhpcy4kc3BsaXQodGV4dCkpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5pbnNlcnRJbkxpbmUgPSBmdW5jdGlvbiAocG9zaXRpb24sIHRleHQpIHsKICAgICAgICB2YXIgc3RhcnQgPSB0aGlzLmNsaXBwZWRQb3MocG9zaXRpb24ucm93LCBwb3NpdGlvbi5jb2x1bW4pOwogICAgICAgIHZhciBlbmQgPSB0aGlzLnBvcyhwb3NpdGlvbi5yb3csIHBvc2l0aW9uLmNvbHVtbiArIHRleHQubGVuZ3RoKTsKICAgICAgICB0aGlzLmFwcGx5RGVsdGEoewogICAgICAgICAgICBzdGFydDogc3RhcnQsCiAgICAgICAgICAgIGVuZDogZW5kLAogICAgICAgICAgICBhY3Rpb246ICJpbnNlcnQiLAogICAgICAgICAgICBsaW5lczogW3RleHRdCiAgICAgICAgfSwgdHJ1ZSk7CiAgICAgICAgcmV0dXJuIHRoaXMuY2xvbmVQb3MoZW5kKTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuY2xpcHBlZFBvcyA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIHZhciBsZW5ndGggPSB0aGlzLmdldExlbmd0aCgpOwogICAgICAgIGlmIChyb3cgPT09IHVuZGVmaW5lZCkgewogICAgICAgICAgICByb3cgPSBsZW5ndGg7CiAgICAgICAgfQogICAgICAgIGVsc2UgaWYgKHJvdyA8IDApIHsKICAgICAgICAgICAgcm93ID0gMDsKICAgICAgICB9CiAgICAgICAgZWxzZSBpZiAocm93ID49IGxlbmd0aCkgewogICAgICAgICAgICByb3cgPSBsZW5ndGggLSAxOwogICAgICAgICAgICBjb2x1bW4gPSB1bmRlZmluZWQ7CiAgICAgICAgfQogICAgICAgIHZhciBsaW5lID0gdGhpcy5nZXRMaW5lKHJvdyk7CiAgICAgICAgaWYgKGNvbHVtbiA9PSB1bmRlZmluZWQpCiAgICAgICAgICAgIGNvbHVtbiA9IGxpbmUubGVuZ3RoOwogICAgICAgIGNvbHVtbiA9IE1hdGgubWluKE1hdGgubWF4KGNvbHVtbiwgMCksIGxpbmUubGVuZ3RoKTsKICAgICAgICByZXR1cm4geyByb3c6IHJvdywgY29sdW1uOiBjb2x1bW4gfTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuY2xvbmVQb3MgPSBmdW5jdGlvbiAocG9zKSB7CiAgICAgICAgcmV0dXJuIHsgcm93OiBwb3Mucm93LCBjb2x1bW46IHBvcy5jb2x1bW4gfTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUucG9zID0gZnVuY3Rpb24gKHJvdywgY29sdW1uKSB7CiAgICAgICAgcmV0dXJuIHsgcm93OiByb3csIGNvbHVtbjogY29sdW1uIH07CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLiRjbGlwUG9zaXRpb24gPSBmdW5jdGlvbiAocG9zaXRpb24pIHsKICAgICAgICB2YXIgbGVuZ3RoID0gdGhpcy5nZXRMZW5ndGgoKTsKICAgICAgICBpZiAocG9zaXRpb24ucm93ID49IGxlbmd0aCkgewogICAgICAgICAgICBwb3NpdGlvbi5yb3cgPSBNYXRoLm1heCgwLCBsZW5ndGggLSAxKTsKICAgICAgICAgICAgcG9zaXRpb24uY29sdW1uID0gdGhpcy5nZXRMaW5lKGxlbmd0aCAtIDEpLmxlbmd0aDsKICAgICAgICB9CiAgICAgICAgZWxzZSB7CiAgICAgICAgICAgIHBvc2l0aW9uLnJvdyA9IE1hdGgubWF4KDAsIHBvc2l0aW9uLnJvdyk7CiAgICAgICAgICAgIHBvc2l0aW9uLmNvbHVtbiA9IE1hdGgubWluKE1hdGgubWF4KHBvc2l0aW9uLmNvbHVtbiwgMCksIHRoaXMuZ2V0TGluZShwb3NpdGlvbi5yb3cpLmxlbmd0aCk7CiAgICAgICAgfQogICAgICAgIHJldHVybiBwb3NpdGlvbjsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuaW5zZXJ0RnVsbExpbmVzID0gZnVuY3Rpb24gKHJvdywgbGluZXMpIHsKICAgICAgICByb3cgPSBNYXRoLm1pbihNYXRoLm1heChyb3csIDApLCB0aGlzLmdldExlbmd0aCgpKTsKICAgICAgICB2YXIgY29sdW1uID0gMDsKICAgICAgICBpZiAocm93IDwgdGhpcy5nZXRMZW5ndGgoKSkgewogICAgICAgICAgICBsaW5lcyA9IGxpbmVzLmNvbmNhdChbIiJdKTsKICAgICAgICAgICAgY29sdW1uID0gMDsKICAgICAgICB9CiAgICAgICAgZWxzZSB7CiAgICAgICAgICAgIGxpbmVzID0gWyIiXS5jb25jYXQobGluZXMpOwogICAgICAgICAgICByb3ctLTsKICAgICAgICAgICAgY29sdW1uID0gdGhpcy4kbGluZXNbcm93XS5sZW5ndGg7CiAgICAgICAgfQogICAgICAgIHRoaXMuaW5zZXJ0TWVyZ2VkTGluZXMoeyByb3c6IHJvdywgY29sdW1uOiBjb2x1bW4gfSwgbGluZXMpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5pbnNlcnRNZXJnZWRMaW5lcyA9IGZ1bmN0aW9uIChwb3NpdGlvbiwgbGluZXMpIHsKICAgICAgICB2YXIgc3RhcnQgPSB0aGlzLmNsaXBwZWRQb3MocG9zaXRpb24ucm93LCBwb3NpdGlvbi5jb2x1bW4pOwogICAgICAgIHZhciBlbmQgPSB7CiAgICAgICAgICAgIHJvdzogc3RhcnQucm93ICsgbGluZXMubGVuZ3RoIC0gMSwKICAgICAgICAgICAgY29sdW1uOiAobGluZXMubGVuZ3RoID09IDEgPyBzdGFydC5jb2x1bW4gOiAwKSArIGxpbmVzW2xpbmVzLmxlbmd0aCAtIDFdLmxlbmd0aAogICAgICAgIH07CiAgICAgICAgdGhpcy5hcHBseURlbHRhKHsKICAgICAgICAgICAgc3RhcnQ6IHN0YXJ0LAogICAgICAgICAgICBlbmQ6IGVuZCwKICAgICAgICAgICAgYWN0aW9uOiAiaW5zZXJ0IiwKICAgICAgICAgICAgbGluZXM6IGxpbmVzCiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIHRoaXMuY2xvbmVQb3MoZW5kKTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUucmVtb3ZlID0gZnVuY3Rpb24gKHJhbmdlKSB7CiAgICAgICAgdmFyIHN0YXJ0ID0gdGhpcy5jbGlwcGVkUG9zKHJhbmdlLnN0YXJ0LnJvdywgcmFuZ2Uuc3RhcnQuY29sdW1uKTsKICAgICAgICB2YXIgZW5kID0gdGhpcy5jbGlwcGVkUG9zKHJhbmdlLmVuZC5yb3csIHJhbmdlLmVuZC5jb2x1bW4pOwogICAgICAgIHRoaXMuYXBwbHlEZWx0YSh7CiAgICAgICAgICAgIHN0YXJ0OiBzdGFydCwKICAgICAgICAgICAgZW5kOiBlbmQsCiAgICAgICAgICAgIGFjdGlvbjogInJlbW92ZSIsCiAgICAgICAgICAgIGxpbmVzOiB0aGlzLmdldExpbmVzRm9yUmFuZ2UoeyBzdGFydDogc3RhcnQsIGVuZDogZW5kIH0pCiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIHRoaXMuY2xvbmVQb3Moc3RhcnQpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5yZW1vdmVJbkxpbmUgPSBmdW5jdGlvbiAocm93LCBzdGFydENvbHVtbiwgZW5kQ29sdW1uKSB7CiAgICAgICAgdmFyIHN0YXJ0ID0gdGhpcy5jbGlwcGVkUG9zKHJvdywgc3RhcnRDb2x1bW4pOwogICAgICAgIHZhciBlbmQgPSB0aGlzLmNsaXBwZWRQb3Mocm93LCBlbmRDb2x1bW4pOwogICAgICAgIHRoaXMuYXBwbHlEZWx0YSh7CiAgICAgICAgICAgIHN0YXJ0OiBzdGFydCwKICAgICAgICAgICAgZW5kOiBlbmQsCiAgICAgICAgICAgIGFjdGlvbjogInJlbW92ZSIsCiAgICAgICAgICAgIGxpbmVzOiB0aGlzLmdldExpbmVzRm9yUmFuZ2UoeyBzdGFydDogc3RhcnQsIGVuZDogZW5kIH0pCiAgICAgICAgfSwgdHJ1ZSk7CiAgICAgICAgcmV0dXJuIHRoaXMuY2xvbmVQb3Moc3RhcnQpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5yZW1vdmVGdWxsTGluZXMgPSBmdW5jdGlvbiAoZmlyc3RSb3csIGxhc3RSb3cpIHsKICAgICAgICBmaXJzdFJvdyA9IE1hdGgubWluKE1hdGgubWF4KDAsIGZpcnN0Um93KSwgdGhpcy5nZXRMZW5ndGgoKSAtIDEpOwogICAgICAgIGxhc3RSb3cgPSBNYXRoLm1pbihNYXRoLm1heCgwLCBsYXN0Um93KSwgdGhpcy5nZXRMZW5ndGgoKSAtIDEpOwogICAgICAgIHZhciBkZWxldGVGaXJzdE5ld0xpbmUgPSBsYXN0Um93ID09IHRoaXMuZ2V0TGVuZ3RoKCkgLSAxICYmIGZpcnN0Um93ID4gMDsKICAgICAgICB2YXIgZGVsZXRlTGFzdE5ld0xpbmUgPSBsYXN0Um93IDwgdGhpcy5nZXRMZW5ndGgoKSAtIDE7CiAgICAgICAgdmFyIHN0YXJ0Um93ID0gKGRlbGV0ZUZpcnN0TmV3TGluZSA/IGZpcnN0Um93IC0gMSA6IGZpcnN0Um93KTsKICAgICAgICB2YXIgc3RhcnRDb2wgPSAoZGVsZXRlRmlyc3ROZXdMaW5lID8gdGhpcy5nZXRMaW5lKHN0YXJ0Um93KS5sZW5ndGggOiAwKTsKICAgICAgICB2YXIgZW5kUm93ID0gKGRlbGV0ZUxhc3ROZXdMaW5lID8gbGFzdFJvdyArIDEgOiBsYXN0Um93KTsKICAgICAgICB2YXIgZW5kQ29sID0gKGRlbGV0ZUxhc3ROZXdMaW5lID8gMCA6IHRoaXMuZ2V0TGluZShlbmRSb3cpLmxlbmd0aCk7CiAgICAgICAgdmFyIHJhbmdlID0gbmV3IFJhbmdlKHN0YXJ0Um93LCBzdGFydENvbCwgZW5kUm93LCBlbmRDb2wpOwogICAgICAgIHZhciBkZWxldGVkTGluZXMgPSB0aGlzLiRsaW5lcy5zbGljZShmaXJzdFJvdywgbGFzdFJvdyArIDEpOwogICAgICAgIHRoaXMuYXBwbHlEZWx0YSh7CiAgICAgICAgICAgIHN0YXJ0OiByYW5nZS5zdGFydCwKICAgICAgICAgICAgZW5kOiByYW5nZS5lbmQsCiAgICAgICAgICAgIGFjdGlvbjogInJlbW92ZSIsCiAgICAgICAgICAgIGxpbmVzOiB0aGlzLmdldExpbmVzRm9yUmFuZ2UocmFuZ2UpCiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGRlbGV0ZWRMaW5lczsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUucmVtb3ZlTmV3TGluZSA9IGZ1bmN0aW9uIChyb3cpIHsKICAgICAgICBpZiAocm93IDwgdGhpcy5nZXRMZW5ndGgoKSAtIDEgJiYgcm93ID49IDApIHsKICAgICAgICAgICAgdGhpcy5hcHBseURlbHRhKHsKICAgICAgICAgICAgICAgIHN0YXJ0OiB0aGlzLnBvcyhyb3csIHRoaXMuZ2V0TGluZShyb3cpLmxlbmd0aCksCiAgICAgICAgICAgICAgICBlbmQ6IHRoaXMucG9zKHJvdyArIDEsIDApLAogICAgICAgICAgICAgICAgYWN0aW9uOiAicmVtb3ZlIiwKICAgICAgICAgICAgICAgIGxpbmVzOiBbIiIsICIiXQogICAgICAgICAgICB9KTsKICAgICAgICB9CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLnJlcGxhY2UgPSBmdW5jdGlvbiAocmFuZ2UsIHRleHQpIHsKICAgICAgICBpZiAoIShyYW5nZSBpbnN0YW5jZW9mIFJhbmdlKSkKICAgICAgICAgICAgcmFuZ2UgPSBSYW5nZS5mcm9tUG9pbnRzKHJhbmdlLnN0YXJ0LCByYW5nZS5lbmQpOwogICAgICAgIGlmICh0ZXh0Lmxlbmd0aCA9PT0gMCAmJiByYW5nZS5pc0VtcHR5KCkpCiAgICAgICAgICAgIHJldHVybiByYW5nZS5zdGFydDsKICAgICAgICBpZiAodGV4dCA9PSB0aGlzLmdldFRleHRSYW5nZShyYW5nZSkpCiAgICAgICAgICAgIHJldHVybiByYW5nZS5lbmQ7CiAgICAgICAgdGhpcy5yZW1vdmUocmFuZ2UpOwogICAgICAgIHZhciBlbmQ7CiAgICAgICAgaWYgKHRleHQpIHsKICAgICAgICAgICAgZW5kID0gdGhpcy5pbnNlcnQocmFuZ2Uuc3RhcnQsIHRleHQpOwogICAgICAgIH0KICAgICAgICBlbHNlIHsKICAgICAgICAgICAgZW5kID0gcmFuZ2Uuc3RhcnQ7CiAgICAgICAgfQogICAgICAgIHJldHVybiBlbmQ7CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLmFwcGx5RGVsdGFzID0gZnVuY3Rpb24gKGRlbHRhcykgewogICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgZGVsdGFzLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgIHRoaXMuYXBwbHlEZWx0YShkZWx0YXNbaV0pOwogICAgICAgIH0KICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUucmV2ZXJ0RGVsdGFzID0gZnVuY3Rpb24gKGRlbHRhcykgewogICAgICAgIGZvciAodmFyIGkgPSBkZWx0YXMubGVuZ3RoIC0gMTsgaSA+PSAwOyBpLS0pIHsKICAgICAgICAgICAgdGhpcy5yZXZlcnREZWx0YShkZWx0YXNbaV0pOwogICAgICAgIH0KICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuYXBwbHlEZWx0YSA9IGZ1bmN0aW9uIChkZWx0YSwgZG9Ob3RWYWxpZGF0ZSkgewogICAgICAgIHZhciBpc0luc2VydCA9IGRlbHRhLmFjdGlvbiA9PSAiaW5zZXJ0IjsKICAgICAgICBpZiAoaXNJbnNlcnQgPyBkZWx0YS5saW5lcy5sZW5ndGggPD0gMSAmJiAhZGVsdGEubGluZXNbMF0KICAgICAgICAgICAgOiAhUmFuZ2UuY29tcGFyZVBvaW50cyhkZWx0YS5zdGFydCwgZGVsdGEuZW5kKSkgewogICAgICAgICAgICByZXR1cm47CiAgICAgICAgfQogICAgICAgIGlmIChpc0luc2VydCAmJiBkZWx0YS5saW5lcy5sZW5ndGggPiAyMDAwMCkgewogICAgICAgICAgICB0aGlzLiRzcGxpdEFuZGFwcGx5TGFyZ2VEZWx0YShkZWx0YSwgMjAwMDApOwogICAgICAgIH0KICAgICAgICBlbHNlIHsKICAgICAgICAgICAgYXBwbHlEZWx0YSh0aGlzLiRsaW5lcywgZGVsdGEsIGRvTm90VmFsaWRhdGUpOwogICAgICAgICAgICB0aGlzLl9zaWduYWwoImNoYW5nZSIsIGRlbHRhKTsKICAgICAgICB9CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLiRzYWZlQXBwbHlEZWx0YSA9IGZ1bmN0aW9uIChkZWx0YSkgewogICAgICAgIHZhciBkb2NMZW5ndGggPSB0aGlzLiRsaW5lcy5sZW5ndGg7CiAgICAgICAgaWYgKGRlbHRhLmFjdGlvbiA9PSAicmVtb3ZlIiAmJiBkZWx0YS5zdGFydC5yb3cgPCBkb2NMZW5ndGggJiYgZGVsdGEuZW5kLnJvdyA8IGRvY0xlbmd0aAogICAgICAgICAgICB8fCBkZWx0YS5hY3Rpb24gPT0gImluc2VydCIgJiYgZGVsdGEuc3RhcnQucm93IDw9IGRvY0xlbmd0aCkgewogICAgICAgICAgICB0aGlzLmFwcGx5RGVsdGEoZGVsdGEpOwogICAgICAgIH0KICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuJHNwbGl0QW5kYXBwbHlMYXJnZURlbHRhID0gZnVuY3Rpb24gKGRlbHRhLCBNQVgpIHsKICAgICAgICB2YXIgbGluZXMgPSBkZWx0YS5saW5lczsKICAgICAgICB2YXIgbCA9IGxpbmVzLmxlbmd0aCAtIE1BWCArIDE7CiAgICAgICAgdmFyIHJvdyA9IGRlbHRhLnN0YXJ0LnJvdzsKICAgICAgICB2YXIgY29sdW1uID0gZGVsdGEuc3RhcnQuY29sdW1uOwogICAgICAgIGZvciAodmFyIGZyb20gPSAwLCB0byA9IDA7IGZyb20gPCBsOyBmcm9tID0gdG8pIHsKICAgICAgICAgICAgdG8gKz0gTUFYIC0gMTsKICAgICAgICAgICAgdmFyIGNodW5rID0gbGluZXMuc2xpY2UoZnJvbSwgdG8pOwogICAgICAgICAgICBjaHVuay5wdXNoKCIiKTsKICAgICAgICAgICAgdGhpcy5hcHBseURlbHRhKHsKICAgICAgICAgICAgICAgIHN0YXJ0OiB0aGlzLnBvcyhyb3cgKyBmcm9tLCBjb2x1bW4pLAogICAgICAgICAgICAgICAgZW5kOiB0aGlzLnBvcyhyb3cgKyB0bywgY29sdW1uID0gMCksCiAgICAgICAgICAgICAgICBhY3Rpb246IGRlbHRhLmFjdGlvbiwKICAgICAgICAgICAgICAgIGxpbmVzOiBjaHVuawogICAgICAgICAgICB9LCB0cnVlKTsKICAgICAgICB9CiAgICAgICAgZGVsdGEubGluZXMgPSBsaW5lcy5zbGljZShmcm9tKTsKICAgICAgICBkZWx0YS5zdGFydC5yb3cgPSByb3cgKyBmcm9tOwogICAgICAgIGRlbHRhLnN0YXJ0LmNvbHVtbiA9IGNvbHVtbjsKICAgICAgICB0aGlzLmFwcGx5RGVsdGEoZGVsdGEsIHRydWUpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5yZXZlcnREZWx0YSA9IGZ1bmN0aW9uIChkZWx0YSkgewogICAgICAgIHRoaXMuJHNhZmVBcHBseURlbHRhKHsKICAgICAgICAgICAgc3RhcnQ6IHRoaXMuY2xvbmVQb3MoZGVsdGEuc3RhcnQpLAogICAgICAgICAgICBlbmQ6IHRoaXMuY2xvbmVQb3MoZGVsdGEuZW5kKSwKICAgICAgICAgICAgYWN0aW9uOiAoZGVsdGEuYWN0aW9uID09ICJpbnNlcnQiID8gInJlbW92ZSIgOiAiaW5zZXJ0IiksCiAgICAgICAgICAgIGxpbmVzOiBkZWx0YS5saW5lcy5zbGljZSgpCiAgICAgICAgfSk7CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLmluZGV4VG9Qb3NpdGlvbiA9IGZ1bmN0aW9uIChpbmRleCwgc3RhcnRSb3cpIHsKICAgICAgICB2YXIgbGluZXMgPSB0aGlzLiRsaW5lcyB8fCB0aGlzLmdldEFsbExpbmVzKCk7CiAgICAgICAgdmFyIG5ld2xpbmVMZW5ndGggPSB0aGlzLmdldE5ld0xpbmVDaGFyYWN0ZXIoKS5sZW5ndGg7CiAgICAgICAgZm9yICh2YXIgaSA9IHN0YXJ0Um93IHx8IDAsIGwgPSBsaW5lcy5sZW5ndGg7IGkgPCBsOyBpKyspIHsKICAgICAgICAgICAgaW5kZXggLT0gbGluZXNbaV0ubGVuZ3RoICsgbmV3bGluZUxlbmd0aDsKICAgICAgICAgICAgaWYgKGluZGV4IDwgMCkKICAgICAgICAgICAgICAgIHJldHVybiB7IHJvdzogaSwgY29sdW1uOiBpbmRleCArIGxpbmVzW2ldLmxlbmd0aCArIG5ld2xpbmVMZW5ndGggfTsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIHsgcm93OiBsIC0gMSwgY29sdW1uOiBpbmRleCArIGxpbmVzW2wgLSAxXS5sZW5ndGggKyBuZXdsaW5lTGVuZ3RoIH07CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLnBvc2l0aW9uVG9JbmRleCA9IGZ1bmN0aW9uIChwb3MsIHN0YXJ0Um93KSB7CiAgICAgICAgdmFyIGxpbmVzID0gdGhpcy4kbGluZXMgfHwgdGhpcy5nZXRBbGxMaW5lcygpOwogICAgICAgIHZhciBuZXdsaW5lTGVuZ3RoID0gdGhpcy5nZXROZXdMaW5lQ2hhcmFjdGVyKCkubGVuZ3RoOwogICAgICAgIHZhciBpbmRleCA9IDA7CiAgICAgICAgdmFyIHJvdyA9IE1hdGgubWluKHBvcy5yb3csIGxpbmVzLmxlbmd0aCk7CiAgICAgICAgZm9yICh2YXIgaSA9IHN0YXJ0Um93IHx8IDA7IGkgPCByb3c7ICsraSkKICAgICAgICAgICAgaW5kZXggKz0gbGluZXNbaV0ubGVuZ3RoICsgbmV3bGluZUxlbmd0aDsKICAgICAgICByZXR1cm4gaW5kZXggKyBwb3MuY29sdW1uOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS4kc3BsaXQgPSBmdW5jdGlvbiAodGV4dCkgewogICAgICAgIHJldHVybiB0ZXh0LnNwbGl0KC9cclxufFxyfFxuLyk7CiAgICB9OwogICAgcmV0dXJuIERvY3VtZW50Owp9KCkpOwpEb2N1bWVudC5wcm90b3R5cGUuJGF1dG9OZXdMaW5lID0gIiI7CkRvY3VtZW50LnByb3RvdHlwZS4kbmV3TGluZU1vZGUgPSAiYXV0byI7Cm9vcC5pbXBsZW1lbnQoRG9jdW1lbnQucHJvdG90eXBlLCBFdmVudEVtaXR0ZXIpOwpleHBvcnRzLkRvY3VtZW50ID0gRG9jdW1lbnQ7Cgp9KTsKCmFjZS5kZWZpbmUoImFjZS9saWIvZGVlcF9jb3B5IixbXSwgZnVuY3Rpb24ocmVxdWlyZSwgZXhwb3J0cywgbW9kdWxlKXtleHBvcnRzLmRlZXBDb3B5ID0gZnVuY3Rpb24gZGVlcENvcHkob2JqKSB7CiAgICBpZiAodHlwZW9mIG9iaiAhPT0gIm9iamVjdCIgfHwgIW9iaikKICAgICAgICByZXR1cm4gb2JqOwogICAgdmFyIGNvcHk7CiAgICBpZiAoQXJyYXkuaXNBcnJheShvYmopKSB7CiAgICAgICAgY29weSA9IFtdOwogICAgICAgIGZvciAodmFyIGtleSA9IDA7IGtleSA8IG9iai5sZW5ndGg7IGtleSsrKSB7CiAgICAgICAgICAgIGNvcHlba2V5XSA9IGRlZXBDb3B5KG9ialtrZXldKTsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIGNvcHk7CiAgICB9CiAgICBpZiAoT2JqZWN0LnByb3RvdHlwZS50b1N0cmluZy5jYWxsKG9iaikgIT09ICJbb2JqZWN0IE9iamVjdF0iKQogICAgICAgIHJldHVybiBvYmo7CiAgICBjb3B5ID0ge307CiAgICBmb3IgKHZhciBrZXkgaW4gb2JqKQogICAgICAgIGNvcHlba2V5XSA9IGRlZXBDb3B5KG9ialtrZXldKTsKICAgIHJldHVybiBjb3B5Owp9OwoKfSk7CgphY2UuZGVmaW5lKCJhY2UvbGliL2xhbmciLFtdLCBmdW5jdGlvbihyZXF1aXJlLCBleHBvcnRzLCBtb2R1bGUpeyJ1c2Ugc3RyaWN0IjsKZXhwb3J0cy5sYXN0ID0gZnVuY3Rpb24gKGEpIHsKICAgIHJldHVybiBhW2EubGVuZ3RoIC0gMV07Cn07CmV4cG9ydHMuc3RyaW5nUmV2ZXJzZSA9IGZ1bmN0aW9uIChzdHJpbmcpIHsKICAgIHJldHVybiBzdHJpbmcuc3BsaXQoIiIpLnJldmVyc2UoKS5qb2luKCIiKTsKfTsKZXhwb3J0cy5zdHJpbmdSZXBlYXQgPSBmdW5jdGlvbiAoc3RyaW5nLCBjb3VudCkgewogICAgdmFyIHJlc3VsdCA9ICcnOwogICAgd2hpbGUgKGNvdW50ID4gMCkgewogICAgICAgIGlmIChjb3VudCAmIDEpCiAgICAgICAgICAgIHJlc3VsdCArPSBzdHJpbmc7CiAgICAgICAgaWYgKGNvdW50ID4+PSAxKQogICAgICAgICAgICBzdHJpbmcgKz0gc3RyaW5nOwogICAgfQogICAgcmV0dXJuIHJlc3VsdDsKfTsKdmFyIHRyaW1CZWdpblJlZ2V4cCA9IC9eXHNccyovOwp2YXIgdHJpbUVuZFJlZ2V4cCA9IC9cc1xzKiQvOwpleHBvcnRzLnN0cmluZ1RyaW1MZWZ0ID0gZnVuY3Rpb24gKHN0cmluZykgewogICAgcmV0dXJuIHN0cmluZy5yZXBsYWNlKHRyaW1CZWdpblJlZ2V4cCwgJycpOwp9OwpleHBvcnRzLnN0cmluZ1RyaW1SaWdodCA9IGZ1bmN0aW9uIChzdHJpbmcpIHsKICAgIHJldHVybiBzdHJpbmcucmVwbGFjZSh0cmltRW5kUmVnZXhwLCAnJyk7Cn07CmV4cG9ydHMuY29weU9iamVjdCA9IGZ1bmN0aW9uIChvYmopIHsKICAgIHZhciBjb3B5ID0ge307CiAgICBmb3IgKHZhciBrZXkgaW4gb2JqKSB7CiAgICAgICAgY29weVtrZXldID0gb2JqW2tleV07CiAgICB9CiAgICByZXR1cm4gY29weTsKfTsKZXhwb3J0cy5jb3B5QXJyYXkgPSBmdW5jdGlvbiAoYXJyYXkpIHsKICAgIHZhciBjb3B5ID0gW107CiAgICBmb3IgKHZhciBpID0gMCwgbCA9IGFycmF5Lmxlbmd0aDsgaSA8IGw7IGkrKykgewogICAgICAgIGlmIChhcnJheVtpXSAmJiB0eXBlb2YgYXJyYXlbaV0gPT0gIm9iamVjdCIpCiAgICAgICAgICAgIGNvcHlbaV0gPSB0aGlzLmNvcHlPYmplY3QoYXJyYXlbaV0pOwogICAgICAgIGVsc2UKICAgICAgICAgICAgY29weVtpXSA9IGFycmF5W2ldOwogICAgfQogICAgcmV0dXJuIGNvcHk7Cn07CmV4cG9ydHMuZGVlcENvcHkgPSByZXF1aXJlKCIuL2RlZXBfY29weSIpLmRlZXBDb3B5OwpleHBvcnRzLmFycmF5VG9NYXAgPSBmdW5jdGlvbiAoYXJyKSB7CiAgICB2YXIgbWFwID0ge307CiAgICBmb3IgKHZhciBpID0gMDsgaSA8IGFyci5sZW5ndGg7IGkrKykgewogICAgICAgIG1hcFthcnJbaV1dID0gMTsKICAgIH0KICAgIHJldHVybiBtYXA7Cn07CmV4cG9ydHMuY3JlYXRlTWFwID0gZnVuY3Rpb24gKHByb3BzKSB7CiAgICB2YXIgbWFwID0gT2JqZWN0LmNyZWF0ZShudWxsKTsKICAgIGZvciAodmFyIGkgaW4gcHJvcHMpIHsKICAgICAgICBtYXBbaV0gPSBwcm9wc1tpXTsKICAgIH0KICAgIHJldHVybiBtYXA7Cn07CmV4cG9ydHMuYXJyYXlSZW1vdmUgPSBmdW5jdGlvbiAoYXJyYXksIHZhbHVlKSB7CiAgICBmb3IgKHZhciBpID0gMDsgaSA8PSBhcnJheS5sZW5ndGg7IGkrKykgewogICAgICAgIGlmICh2YWx1ZSA9PT0gYXJyYXlbaV0pIHsKICAgICAgICAgICAgYXJyYXkuc3BsaWNlKGksIDEpOwogICAgICAgIH0KICAgIH0KfTsKZXhwb3J0cy5lc2NhcGVSZWdFeHAgPSBmdW5jdGlvbiAoc3RyKSB7CiAgICByZXR1cm4gc3RyLnJlcGxhY2UoLyhbLiorP14ke30oKXxbXF1cL1xcXSkvZywgJ1xcJDEnKTsKfTsKZXhwb3J0cy5lc2NhcGVIVE1MID0gZnVuY3Rpb24gKHN0cikgewogICAgcmV0dXJuICgiIiArIHN0cikucmVwbGFjZSgvJi9nLCAiJiMzODsiKS5yZXBsYWNlKC8iL2csICImIzM0OyIpLnJlcGxhY2UoLycvZywgIiYjMzk7IikucmVwbGFjZSgvPC9nLCAiJiM2MDsiKTsKfTsKZXhwb3J0cy5nZXRNYXRjaE9mZnNldHMgPSBmdW5jdGlvbiAoc3RyaW5nLCByZWdFeHApIHsKICAgIHZhciBtYXRjaGVzID0gW107CiAgICBzdHJpbmcucmVwbGFjZShyZWdFeHAsIGZ1bmN0aW9uIChzdHIpIHsKICAgICAgICBtYXRjaGVzLnB1c2goewogICAgICAgICAgICBvZmZzZXQ6IGFyZ3VtZW50c1thcmd1bWVudHMubGVuZ3RoIC0gMl0sCiAgICAgICAgICAgIGxlbmd0aDogc3RyLmxlbmd0aAogICAgICAgIH0pOwogICAgfSk7CiAgICByZXR1cm4gbWF0Y2hlczsKfTsKZXhwb3J0cy5kZWZlcnJlZENhbGwgPSBmdW5jdGlvbiAoZmNuKSB7CiAgICB2YXIgdGltZXIgPSBudWxsOwogICAgdmFyIGNhbGxiYWNrID0gZnVuY3Rpb24gKCkgewogICAgICAgIHRpbWVyID0gbnVsbDsKICAgICAgICBmY24oKTsKICAgIH07CiAgICB2YXIgZGVmZXJyZWQgPSBmdW5jdGlvbiAodGltZW91dCkgewogICAgICAgIGRlZmVycmVkLmNhbmNlbCgpOwogICAgICAgIHRpbWVyID0gc2V0VGltZW91dChjYWxsYmFjaywgdGltZW91dCB8fCAwKTsKICAgICAgICByZXR1cm4gZGVmZXJyZWQ7CiAgICB9OwogICAgZGVmZXJyZWQuc2NoZWR1bGUgPSBkZWZlcnJlZDsKICAgIGRlZmVycmVkLmNhbGwgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgdGhpcy5jYW5jZWwoKTsKICAgICAgICBmY24oKTsKICAgICAgICByZXR1cm4gZGVmZXJyZWQ7CiAgICB9OwogICAgZGVmZXJyZWQuY2FuY2VsID0gZnVuY3Rpb24gKCkgewogICAgICAgIGNsZWFyVGltZW91dCh0aW1lcik7CiAgICAgICAgdGltZXIgPSBudWxsOwogICAgICAgIHJldHVybiBkZWZlcnJlZDsKICAgIH07CiAgICBkZWZlcnJlZC5pc1BlbmRpbmcgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgcmV0dXJuIHRpbWVyOwogICAgfTsKICAgIHJldHVybiBkZWZlcnJlZDsKfTsKZXhwb3J0cy5kZWxheWVkQ2FsbCA9IGZ1bmN0aW9uIChmY24sIGRlZmF1bHRUaW1lb3V0KSB7CiAgICB2YXIgdGltZXIgPSBudWxsOwogICAgdmFyIGNhbGxiYWNrID0gZnVuY3Rpb24gKCkgewogICAgICAgIHRpbWVyID0gbnVsbDsKICAgICAgICBmY24oKTsKICAgIH07CiAgICB2YXIgX3NlbGYgPSBmdW5jdGlvbiAodGltZW91dCkgewogICAgICAgIGlmICh0aW1lciA9PSBudWxsKQogICAgICAgICAgICB0aW1lciA9IHNldFRpbWVvdXQoY2FsbGJhY2ssIHRpbWVvdXQgfHwgZGVmYXVsdFRpbWVvdXQpOwogICAgfTsKICAgIF9zZWxmLmRlbGF5ID0gZnVuY3Rpb24gKHRpbWVvdXQpIHsKICAgICAgICB0aW1lciAmJiBjbGVhclRpbWVvdXQodGltZXIpOwogICAgICAgIHRpbWVyID0gc2V0VGltZW91dChjYWxsYmFjaywgdGltZW91dCB8fCBkZWZhdWx0VGltZW91dCk7CiAgICB9OwogICAgX3NlbGYuc2NoZWR1bGUgPSBfc2VsZjsKICAgIF9zZWxmLmNhbGwgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgdGhpcy5jYW5jZWwoKTsKICAgICAgICBmY24oKTsKICAgIH07CiAgICBfc2VsZi5jYW5jZWwgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgdGltZXIgJiYgY2xlYXJUaW1lb3V0KHRpbWVyKTsKICAgICAgICB0aW1lciA9IG51bGw7CiAgICB9OwogICAgX3NlbGYuaXNQZW5kaW5nID0gZnVuY3Rpb24gKCkgewogICAgICAgIHJldHVybiB0aW1lcjsKICAgIH07CiAgICByZXR1cm4gX3NlbGY7Cn07CmV4cG9ydHMuc3VwcG9ydHNMb29rYmVoaW5kID0gZnVuY3Rpb24gKCkgewogICAgdHJ5IHsKICAgICAgICBuZXcgUmVnRXhwKCcoPzw9LiknKTsKICAgIH0KICAgIGNhdGNoIChlKSB7CiAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgfQogICAgcmV0dXJuIHRydWU7Cn07CmV4cG9ydHMuc2tpcEVtcHR5TWF0Y2ggPSBmdW5jdGlvbiAobGluZSwgbGFzdCwgc3VwcG9ydHNVbmljb2RlRmxhZykgewogICAgcmV0dXJuIHN1cHBvcnRzVW5pY29kZUZsYWcgJiYgbGluZS5jb2RlUG9pbnRBdChsYXN0KSA+IDB4ZmZmZiA/IDIgOiAxOwp9OwoKfSk7CgphY2UuZGVmaW5lKCJhY2Uvd29ya2VyL21pcnJvciIsW10sIGZ1bmN0aW9uKHJlcXVpcmUsIGV4cG9ydHMsIG1vZHVsZSkgewoidXNlIHN0cmljdCI7Cgp2YXIgRG9jdW1lbnQgPSByZXF1aXJlKCIuLi9kb2N1bWVudCIpLkRvY3VtZW50Owp2YXIgbGFuZyA9IHJlcXVpcmUoIi4uL2xpYi9sYW5nIik7CiAgICAKdmFyIE1pcnJvciA9IGV4cG9ydHMuTWlycm9yID0gZnVuY3Rpb24oc2VuZGVyKSB7CiAgICB0aGlzLnNlbmRlciA9IHNlbmRlcjsKICAgIHZhciBkb2MgPSB0aGlzLmRvYyA9IG5ldyBEb2N1bWVudCgiIik7CiAgICAKICAgIHZhciBkZWZlcnJlZFVwZGF0ZSA9IHRoaXMuZGVmZXJyZWRVcGRhdGUgPSBsYW5nLmRlbGF5ZWRDYWxsKHRoaXMub25VcGRhdGUuYmluZCh0aGlzKSk7CiAgICAKICAgIHZhciBfc2VsZiA9IHRoaXM7CiAgICBzZW5kZXIub24oImNoYW5nZSIsIGZ1bmN0aW9uKGUpIHsKICAgICAgICB2YXIgZGF0YSA9IGUuZGF0YTsKICAgICAgICBpZiAoZGF0YVswXS5zdGFydCkgewogICAgICAgICAgICBkb2MuYXBwbHlEZWx0YXMoZGF0YSk7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBkYXRhLmxlbmd0aDsgaSArPSAyKSB7CiAgICAgICAgICAgICAgICB2YXIgZCwgZXJyOyAKICAgICAgICAgICAgICAgIGlmIChBcnJheS5pc0FycmF5KGRhdGFbaSsxXSkpIHsKICAgICAgICAgICAgICAgICAgICBkID0ge2FjdGlvbjogImluc2VydCIsIHN0YXJ0OiBkYXRhW2ldLCBsaW5lczogZGF0YVtpKzFdfTsKICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgZCA9IHthY3Rpb246ICJyZW1vdmUiLCBzdGFydDogZGF0YVtpXSwgZW5kOiBkYXRhW2krMV19OwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICBpZiAoKGQuYWN0aW9uID09ICJpbnNlcnQiID8gZC5zdGFydCA6IGQuZW5kKS5yb3cgPj0gZG9jLiRsaW5lcy5sZW5ndGgpIHsKICAgICAgICAgICAgICAgICAgICBlcnIgPSBuZXcgRXJyb3IoIkludmFsaWQgZGVsdGEiKTsKICAgICAgICAgICAgICAgICAgICBlcnIuZGF0YSA9IHsKICAgICAgICAgICAgICAgICAgICAgICAgcGF0aDogX3NlbGYuJHBhdGgsCiAgICAgICAgICAgICAgICAgICAgICAgIGxpbmVzTGVuZ3RoOiBkb2MuJGxpbmVzLmxlbmd0aCwKICAgICAgICAgICAgICAgICAgICAgICAgc3RhcnQ6IGQuc3RhcnQsCiAgICAgICAgICAgICAgICAgICAgICAgIGVuZDogZC5lbmQKICAgICAgICAgICAgICAgICAgICB9OwogICAgICAgICAgICAgICAgICAgIHRocm93IGVycjsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICBkb2MuYXBwbHlEZWx0YShkLCB0cnVlKTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBpZiAoX3NlbGYuJHRpbWVvdXQpCiAgICAgICAgICAgIHJldHVybiBkZWZlcnJlZFVwZGF0ZS5zY2hlZHVsZShfc2VsZi4kdGltZW91dCk7CiAgICAgICAgX3NlbGYub25VcGRhdGUoKTsKICAgIH0pOwp9OwoKKGZ1bmN0aW9uKCkgewogICAgCiAgICB0aGlzLiR0aW1lb3V0ID0gNTAwOwogICAgCiAgICB0aGlzLnNldFRpbWVvdXQgPSBmdW5jdGlvbih0aW1lb3V0KSB7CiAgICAgICAgdGhpcy4kdGltZW91dCA9IHRpbWVvdXQ7CiAgICB9OwogICAgCiAgICB0aGlzLnNldFZhbHVlID0gZnVuY3Rpb24odmFsdWUpIHsKICAgICAgICB0aGlzLmRvYy5zZXRWYWx1ZSh2YWx1ZSk7CiAgICAgICAgdGhpcy5kZWZlcnJlZFVwZGF0ZS5zY2hlZHVsZSh0aGlzLiR0aW1lb3V0KTsKICAgIH07CiAgICAKICAgIHRoaXMuZ2V0VmFsdWUgPSBmdW5jdGlvbihjYWxsYmFja0lkKSB7CiAgICAgICAgdGhpcy5zZW5kZXIuY2FsbGJhY2sodGhpcy5kb2MuZ2V0VmFsdWUoKSwgY2FsbGJhY2tJZCk7CiAgICB9OwogICAgCiAgICB0aGlzLm9uVXBkYXRlID0gZnVuY3Rpb24oKSB7CiAgICB9OwogICAgCiAgICB0aGlzLmlzUGVuZGluZyA9IGZ1bmN0aW9uKCkgewogICAgICAgIHJldHVybiB0aGlzLmRlZmVycmVkVXBkYXRlLmlzUGVuZGluZygpOwogICAgfTsKICAgIAp9KS5jYWxsKE1pcnJvci5wcm90b3R5cGUpOwoKfSk7CgphY2UuZGVmaW5lKCJhY2UvbW9kZS9qc29uL2pzb25fcGFyc2UiLFtdLCBmdW5jdGlvbihyZXF1aXJlLCBleHBvcnRzLCBtb2R1bGUpIHsKInVzZSBzdHJpY3QiOwoKICAgIHZhciBhdCwgICAgIC8vIFRoZSBpbmRleCBvZiB0aGUgY3VycmVudCBjaGFyYWN0ZXIKICAgICAgICBjaCwgICAgIC8vIFRoZSBjdXJyZW50IGNoYXJhY3RlcgogICAgICAgIGVzY2FwZWUgPSB7CiAgICAgICAgICAgICciJzogICciJywKICAgICAgICAgICAgJ1xcJzogJ1xcJywKICAgICAgICAgICAgJy8nOiAgJy8nLAogICAgICAgICAgICBiOiAgICAnXGInLAogICAgICAgICAgICBmOiAgICAnXGYnLAogICAgICAgICAgICBuOiAgICAnXG4nLAogICAgICAgICAgICByOiAgICAnXHInLAogICAgICAgICAgICB0OiAgICAnXHQnCiAgICAgICAgfSwKICAgICAgICB0ZXh0LAoKICAgICAgICBlcnJvciA9IGZ1bmN0aW9uIChtKSB7CgogICAgICAgICAgICB0aHJvdyB7CiAgICAgICAgICAgICAgICBuYW1lOiAgICAnU3ludGF4RXJyb3InLAogICAgICAgICAgICAgICAgbWVzc2FnZTogbSwKICAgICAgICAgICAgICAgIGF0OiAgICAgIGF0LAogICAgICAgICAgICAgICAgdGV4dDogICAgdGV4dAogICAgICAgICAgICB9OwogICAgICAgIH0sCgogICAgICAgIG5leHQgPSBmdW5jdGlvbiAoYykgewoKICAgICAgICAgICAgaWYgKGMgJiYgYyAhPT0gY2gpIHsKICAgICAgICAgICAgICAgIGVycm9yKCJFeHBlY3RlZCAnIiArIGMgKyAiJyBpbnN0ZWFkIG9mICciICsgY2ggKyAiJyIpOwogICAgICAgICAgICB9CgogICAgICAgICAgICBjaCA9IHRleHQuY2hhckF0KGF0KTsKICAgICAgICAgICAgYXQgKz0gMTsKICAgICAgICAgICAgcmV0dXJuIGNoOwogICAgICAgIH0sCgogICAgICAgIG51bWJlciA9IGZ1bmN0aW9uICgpIHsKCiAgICAgICAgICAgIHZhciBudW1iZXIsCiAgICAgICAgICAgICAgICBzdHJpbmcgPSAnJzsKCiAgICAgICAgICAgIGlmIChjaCA9PT0gJy0nKSB7CiAgICAgICAgICAgICAgICBzdHJpbmcgPSAnLSc7CiAgICAgICAgICAgICAgICBuZXh0KCctJyk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgd2hpbGUgKGNoID49ICcwJyAmJiBjaCA8PSAnOScpIHsKICAgICAgICAgICAgICAgIHN0cmluZyArPSBjaDsKICAgICAgICAgICAgICAgIG5leHQoKTsKICAgICAgICAgICAgfQogICAgICAgICAgICBpZiAoY2ggPT09ICcuJykgewogICAgICAgICAgICAgICAgc3RyaW5nICs9ICcuJzsKICAgICAgICAgICAgICAgIHdoaWxlIChuZXh0KCkgJiYgY2ggPj0gJzAnICYmIGNoIDw9ICc5JykgewogICAgICAgICAgICAgICAgICAgIHN0cmluZyArPSBjaDsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBpZiAoY2ggPT09ICdlJyB8fCBjaCA9PT0gJ0UnKSB7CiAgICAgICAgICAgICAgICBzdHJpbmcgKz0gY2g7CiAgICAgICAgICAgICAgICBuZXh0KCk7CiAgICAgICAgICAgICAgICBpZiAoY2ggPT09ICctJyB8fCBjaCA9PT0gJysnKSB7CiAgICAgICAgICAgICAgICAgICAgc3RyaW5nICs9IGNoOwogICAgICAgICAgICAgICAgICAgIG5leHQoKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIHdoaWxlIChjaCA+PSAnMCcgJiYgY2ggPD0gJzknKSB7CiAgICAgICAgICAgICAgICAgICAgc3RyaW5nICs9IGNoOwogICAgICAgICAgICAgICAgICAgIG5leHQoKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBudW1iZXIgPSArc3RyaW5nOwogICAgICAgICAgICBpZiAoaXNOYU4obnVtYmVyKSkgewogICAgICAgICAgICAgICAgZXJyb3IoIkJhZCBudW1iZXIiKTsKICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIHJldHVybiBudW1iZXI7CiAgICAgICAgICAgIH0KICAgICAgICB9LAoKICAgICAgICBzdHJpbmcgPSBmdW5jdGlvbiAoKSB7CgogICAgICAgICAgICB2YXIgaGV4LAogICAgICAgICAgICAgICAgaSwKICAgICAgICAgICAgICAgIHN0cmluZyA9ICcnLAogICAgICAgICAgICAgICAgdWZmZmY7CgogICAgICAgICAgICBpZiAoY2ggPT09ICciJykgewogICAgICAgICAgICAgICAgd2hpbGUgKG5leHQoKSkgewogICAgICAgICAgICAgICAgICAgIGlmIChjaCA9PT0gJyInKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIG5leHQoKTsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHN0cmluZzsKICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKGNoID09PSAnXFwnKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIG5leHQoKTsKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGNoID09PSAndScpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVmZmZmID0gMDsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvciAoaSA9IDA7IGkgPCA0OyBpICs9IDEpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoZXggPSBwYXJzZUludChuZXh0KCksIDE2KTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoIWlzRmluaXRlKGhleCkpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVmZmZmID0gdWZmZmYgKiAxNiArIGhleDsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cmluZyArPSBTdHJpbmcuZnJvbUNoYXJDb2RlKHVmZmZmKTsKICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmICh0eXBlb2YgZXNjYXBlZVtjaF0gPT09ICdzdHJpbmcnKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdHJpbmcgKz0gZXNjYXBlZVtjaF07CiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoY2ggPT0gIlxuIiB8fCBjaCA9PSAiXHIiKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHN0cmluZyArPSBjaDsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZXJyb3IoIkJhZCBzdHJpbmciKTsKICAgICAgICB9LAoKICAgICAgICB3aGl0ZSA9IGZ1bmN0aW9uICgpIHsKCiAgICAgICAgICAgIHdoaWxlIChjaCAmJiBjaCA8PSAnICcpIHsKICAgICAgICAgICAgICAgIG5leHQoKTsKICAgICAgICAgICAgfQogICAgICAgIH0sCgogICAgICAgIHdvcmQgPSBmdW5jdGlvbiAoKSB7CgogICAgICAgICAgICBzd2l0Y2ggKGNoKSB7CiAgICAgICAgICAgIGNhc2UgJ3QnOgogICAgICAgICAgICAgICAgbmV4dCgndCcpOwogICAgICAgICAgICAgICAgbmV4dCgncicpOwogICAgICAgICAgICAgICAgbmV4dCgndScpOwogICAgICAgICAgICAgICAgbmV4dCgnZScpOwogICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgICAgIGNhc2UgJ2YnOgogICAgICAgICAgICAgICAgbmV4dCgnZicpOwogICAgICAgICAgICAgICAgbmV4dCgnYScpOwogICAgICAgICAgICAgICAgbmV4dCgnbCcpOwogICAgICAgICAgICAgICAgbmV4dCgncycpOwogICAgICAgICAgICAgICAgbmV4dCgnZScpOwogICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICBjYXNlICduJzoKICAgICAgICAgICAgICAgIG5leHQoJ24nKTsKICAgICAgICAgICAgICAgIG5leHQoJ3UnKTsKICAgICAgICAgICAgICAgIG5leHQoJ2wnKTsKICAgICAgICAgICAgICAgIG5leHQoJ2wnKTsKICAgICAgICAgICAgICAgIHJldHVybiBudWxsOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGVycm9yKCJVbmV4cGVjdGVkICciICsgY2ggKyAiJyIpOwogICAgICAgIH0sCgogICAgICAgIHZhbHVlLCAgLy8gUGxhY2UgaG9sZGVyIGZvciB0aGUgdmFsdWUgZnVuY3Rpb24uCgogICAgICAgIGFycmF5ID0gZnVuY3Rpb24gKCkgewoKICAgICAgICAgICAgdmFyIGFycmF5ID0gW107CgogICAgICAgICAgICBpZiAoY2ggPT09ICdbJykgewogICAgICAgICAgICAgICAgbmV4dCgnWycpOwogICAgICAgICAgICAgICAgd2hpdGUoKTsKICAgICAgICAgICAgICAgIGlmIChjaCA9PT0gJ10nKSB7CiAgICAgICAgICAgICAgICAgICAgbmV4dCgnXScpOwogICAgICAgICAgICAgICAgICAgIHJldHVybiBhcnJheTsgICAvLyBlbXB0eSBhcnJheQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgd2hpbGUgKGNoKSB7CiAgICAgICAgICAgICAgICAgICAgYXJyYXkucHVzaCh2YWx1ZSgpKTsKICAgICAgICAgICAgICAgICAgICB3aGl0ZSgpOwogICAgICAgICAgICAgICAgICAgIGlmIChjaCA9PT0gJ10nKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIG5leHQoJ10nKTsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGFycmF5OwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICBuZXh0KCcsJyk7CiAgICAgICAgICAgICAgICAgICAgd2hpdGUoKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBlcnJvcigiQmFkIGFycmF5Iik7CiAgICAgICAgfSwKCiAgICAgICAgb2JqZWN0ID0gZnVuY3Rpb24gKCkgewoKICAgICAgICAgICAgdmFyIGtleSwKICAgICAgICAgICAgICAgIG9iamVjdCA9IHt9OwoKICAgICAgICAgICAgaWYgKGNoID09PSAneycpIHsKICAgICAgICAgICAgICAgIG5leHQoJ3snKTsKICAgICAgICAgICAgICAgIHdoaXRlKCk7CiAgICAgICAgICAgICAgICBpZiAoY2ggPT09ICd9JykgewogICAgICAgICAgICAgICAgICAgIG5leHQoJ30nKTsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gb2JqZWN0OyAgIC8vIGVtcHR5IG9iamVjdAogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgd2hpbGUgKGNoKSB7CiAgICAgICAgICAgICAgICAgICAga2V5ID0gc3RyaW5nKCk7CiAgICAgICAgICAgICAgICAgICAgd2hpdGUoKTsKICAgICAgICAgICAgICAgICAgICBuZXh0KCc6Jyk7CiAgICAgICAgICAgICAgICAgICAgaWYgKE9iamVjdC5oYXNPd25Qcm9wZXJ0eS5jYWxsKG9iamVjdCwga2V5KSkgewogICAgICAgICAgICAgICAgICAgICAgICBlcnJvcignRHVwbGljYXRlIGtleSAiJyArIGtleSArICciJyk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIG9iamVjdFtrZXldID0gdmFsdWUoKTsKICAgICAgICAgICAgICAgICAgICB3aGl0ZSgpOwogICAgICAgICAgICAgICAgICAgIGlmIChjaCA9PT0gJ30nKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIG5leHQoJ30nKTsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG9iamVjdDsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgbmV4dCgnLCcpOwogICAgICAgICAgICAgICAgICAgIHdoaXRlKCk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZXJyb3IoIkJhZCBvYmplY3QiKTsKICAgICAgICB9OwoKICAgIHZhbHVlID0gZnVuY3Rpb24gKCkgewoKICAgICAgICB3aGl0ZSgpOwogICAgICAgIHN3aXRjaCAoY2gpIHsKICAgICAgICBjYXNlICd7JzoKICAgICAgICAgICAgcmV0dXJuIG9iamVjdCgpOwogICAgICAgIGNhc2UgJ1snOgogICAgICAgICAgICByZXR1cm4gYXJyYXkoKTsKICAgICAgICBjYXNlICciJzoKICAgICAgICAgICAgcmV0dXJuIHN0cmluZygpOwogICAgICAgIGNhc2UgJy0nOgogICAgICAgICAgICByZXR1cm4gbnVtYmVyKCk7CiAgICAgICAgZGVmYXVsdDoKICAgICAgICAgICAgcmV0dXJuIGNoID49ICcwJyAmJiBjaCA8PSAnOScgPyBudW1iZXIoKSA6IHdvcmQoKTsKICAgICAgICB9CiAgICB9OwoKICAgIHJldHVybiBmdW5jdGlvbiAoc291cmNlLCByZXZpdmVyKSB7CiAgICAgICAgdmFyIHJlc3VsdDsKCiAgICAgICAgdGV4dCA9IHNvdXJjZTsKICAgICAgICBhdCA9IDA7CiAgICAgICAgY2ggPSAnICc7CiAgICAgICAgcmVzdWx0ID0gdmFsdWUoKTsKICAgICAgICB3aGl0ZSgpOwogICAgICAgIGlmIChjaCkgewogICAgICAgICAgICBlcnJvcigiU3ludGF4IGVycm9yIik7CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gdHlwZW9mIHJldml2ZXIgPT09ICdmdW5jdGlvbicgPyBmdW5jdGlvbiB3YWxrKGhvbGRlciwga2V5KSB7CiAgICAgICAgICAgIHZhciBrLCB2LCB2YWx1ZSA9IGhvbGRlcltrZXldOwogICAgICAgICAgICBpZiAodmFsdWUgJiYgdHlwZW9mIHZhbHVlID09PSAnb2JqZWN0JykgewogICAgICAgICAgICAgICAgZm9yIChrIGluIHZhbHVlKSB7CiAgICAgICAgICAgICAgICAgICAgaWYgKE9iamVjdC5oYXNPd25Qcm9wZXJ0eS5jYWxsKHZhbHVlLCBrKSkgewogICAgICAgICAgICAgICAgICAgICAgICB2ID0gd2Fsayh2YWx1ZSwgayk7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh2ICE9PSB1bmRlZmluZWQpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlW2tdID0gdjsKICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlbGV0ZSB2YWx1ZVtrXTsKICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gcmV2aXZlci5jYWxsKGhvbGRlciwga2V5LCB2YWx1ZSk7CiAgICAgICAgfSh7Jyc6IHJlc3VsdH0sICcnKSA6IHJlc3VsdDsKICAgIH07Cn0pOwoKYWNlLmRlZmluZSgiYWNlL21vZGUvanNvbl93b3JrZXIiLFtdLCBmdW5jdGlvbihyZXF1aXJlLCBleHBvcnRzLCBtb2R1bGUpIHsKInVzZSBzdHJpY3QiOwoKdmFyIG9vcCA9IHJlcXVpcmUoIi4uL2xpYi9vb3AiKTsKdmFyIE1pcnJvciA9IHJlcXVpcmUoIi4uL3dvcmtlci9taXJyb3IiKS5NaXJyb3I7CnZhciBwYXJzZSA9IHJlcXVpcmUoIi4vanNvbi9qc29uX3BhcnNlIik7Cgp2YXIgSnNvbldvcmtlciA9IGV4cG9ydHMuSnNvbldvcmtlciA9IGZ1bmN0aW9uKHNlbmRlcikgewogICAgTWlycm9yLmNhbGwodGhpcywgc2VuZGVyKTsKICAgIHRoaXMuc2V0VGltZW91dCgyMDApOwp9OwoKb29wLmluaGVyaXRzKEpzb25Xb3JrZXIsIE1pcnJvcik7CgooZnVuY3Rpb24oKSB7CgogICAgdGhpcy5vblVwZGF0ZSA9IGZ1bmN0aW9uKCkgewogICAgICAgIHZhciB2YWx1ZSA9IHRoaXMuZG9jLmdldFZhbHVlKCk7CiAgICAgICAgdmFyIGVycm9ycyA9IFtdOwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIGlmICh2YWx1ZSkKICAgICAgICAgICAgICAgIHBhcnNlKHZhbHVlKTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHZhciBwb3MgPSB0aGlzLmRvYy5pbmRleFRvUG9zaXRpb24oZS5hdC0xKTsKICAgICAgICAgICAgZXJyb3JzLnB1c2goewogICAgICAgICAgICAgICAgcm93OiBwb3Mucm93LAogICAgICAgICAgICAgICAgY29sdW1uOiBwb3MuY29sdW1uLAogICAgICAgICAgICAgICAgdGV4dDogZS5tZXNzYWdlLAogICAgICAgICAgICAgICAgdHlwZTogImVycm9yIgogICAgICAgICAgICB9KTsKICAgICAgICB9CiAgICAgICAgdGhpcy5zZW5kZXIuZW1pdCgiYW5ub3RhdGUiLCBlcnJvcnMpOwogICAgfTsKCn0pLmNhbGwoSnNvbldvcmtlci5wcm90b3R5cGUpOwoKfSk7Cg=="},5609:function(e,t,r){r.r(t),r.d(t,{showTransformModal:function(){return h}}),t=r(8340);var n=r.n(t),i=(t=r(4772),r.n(t)),o=r(3057);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t,r,n){if("boolean"==typeof e||e instanceof Boolean||null===e||"number"==typeof e||e instanceof Number||"string"==typeof e||e instanceof String||e instanceof Date)return JSON.stringify(e);if(Array.isArray(e)){for(var i=e,o=t,l=r,c=n,u=o?l+o:void 0,d=o?"[\n":"[",h=0;h<i.length;h++){var p=i[h];if(o&&(d+=u),d+=void 0!==p&&"function"!=typeof p?a(p,o,u,c):"null",h<i.length-1&&(d+=o?",\n":","),d.length>c)return d+"..."}return d+(o?"\n"+l+"]":"]")}if(e&&"object"===s(e)){var f,m=e,g=t,y=(l=r,n),v=g?l+g:void 0,b=!0,w=g?"{\n":"{";if("function"==typeof m.toJSON)return a(m.toJSON(),g,l,y);for(f in m)if(((e,t)=>Object.prototype.hasOwnProperty.call(e,t))(m,f)&&(b?b=!1:w+=g?",\n":",",(w=(w+=g?v+'"'+f+'": ':'"'+f+'":')+a(m[f],g,v,y)).length>y))return w+"...";return w+(g?"\n"+l+"}":"}")}}function l(e,t){for(var r="";0<t--;)r+=e;return r}var c=r(6237),u=r(660),d='Enter a <a href="http://jmespath.org" target="_blank">JMESPath</a> query to filter, sort, or transform the JSON data.<br/>To learn JMESPath, go to <a href="http://jmespath.org/tutorial.html" target="_blank">the interactive tutorial</a>.';function h(e){var t=e.container,r=e.json,s=void 0===(s=e.queryDescription)?d:s,h=e.createQuery,p=e.executeQuery,f=e.onTransform,m=r;e='<div class="pico-modal-contents"><div class="pico-modal-header">'+(0,o.Tl)("transform")+"</div><p>"+s+'</p><div class="jsoneditor-jmespath-label">'+(0,o.Tl)("transformWizardLabel")+' </div><div id="wizard" class="jsoneditor-jmespath-block jsoneditor-jmespath-wizard"> <table class="jsoneditor-jmespath-wizard-table"> <tbody> <tr> <th>'+(0,o.Tl)("transformWizardFilter")+'</th> <td class="jsoneditor-jmespath-filter"> <div class="jsoneditor-inline jsoneditor-jmespath-filter-field" > <select id="filterField"> </select> </div> <div class="jsoneditor-inline jsoneditor-jmespath-filter-relation" > <select id="filterRelation"> <option value="==">==</option> <option value="!=">!=</option> <option value="<"><</option> <option value="<="><=</option> <option value=">">></option> <option value=">=">>=</option> </select> </div> <div class="jsoneditor-inline jsoneditor-jmespath-filter-value" > <input type="text" class="value" placeholder="value..." id="filterValue" /> </div> </td> </tr> <tr> <th>'+(0,o.Tl)("transformWizardSortBy")+'</th> <td class="jsoneditor-jmespath-filter"> <div class="jsoneditor-inline jsoneditor-jmespath-sort-field"> <select id="sortField"> </select> </div> <div class="jsoneditor-inline jsoneditor-jmespath-sort-order" > <select id="sortOrder"> <option value="asc">Ascending</option> <option value="desc">Descending</option> </select> </div> </td> </tr> <tr id="selectFieldsPart"> <th>'+(0,o.Tl)("transformWizardSelectFields")+'</th> <td class="jsoneditor-jmespath-filter"> <select class="jsoneditor-jmespath-select-fields" id="selectFields" multiple></select> </td> </tr> </tbody> </table></div><div class="jsoneditor-jmespath-label">'+(0,o.Tl)("transformQueryLabel")+' </div><div class="jsoneditor-jmespath-block"> <textarea id="query" rows="4" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" title="'+(0,o.Tl)("transformQueryTitle")+'">[*]</textarea></div><div class="jsoneditor-jmespath-label">'+(0,o.Tl)("transformPreviewLabel")+' </div><div class="jsoneditor-jmespath-block"> <textarea id="preview" class="jsoneditor-transform-preview" readonly> </textarea></div><div class="jsoneditor-jmespath-block jsoneditor-modal-actions"> <input type="submit" id="ok" value="'+(0,o.Tl)("ok")+'" autofocus /></div></div>',n()({parent:t,content:e,overlayClass:"jsoneditor-modal-overlay",overlayStyles:{backgroundColor:"rgb(1,1,1)",opacity:.3},modalClass:"jsoneditor-modal jsoneditor-modal-transform",focus:!1}).afterCreate(function(e){var t=e.modalElem(),n=t.querySelector("#wizard"),o=t.querySelector("#ok"),s=t.querySelector("#filterField"),d=t.querySelector("#filterRelation"),g=t.querySelector("#filterValue"),y=t.querySelector("#sortField"),v=t.querySelector("#sortOrder"),b=t.querySelector("#selectFields"),w=t.querySelector("#query"),x=t.querySelector("#preview");Array.isArray(m)||(n.style.fontStyle="italic",n.textContent="(wizard not available for objects, only for arrays)"),(0,c.getChildPaths)(r).forEach(function(e){var t;e=k(e),((t=document.createElement("option")).text=e,t.value=e,s.appendChild(t),t=document.createElement("option")).text=e,t.value=e,y.appendChild(t)}),n=(0,c.getChildPaths)(r,!0).filter(function(e){return""!==e}),0<n.length?n.forEach(function(e){e=k(e);var t=document.createElement("option");t.text=e,t.value=e,b.appendChild(t)}):(n=t.querySelector("#selectFieldsPart"))&&(n.style.display="none"),n=new(i())(s,{defaultSelected:!1,clearable:!0,allowDeselect:!0,placeholder:"field..."});var A=new(i())(d,{defaultSelected:!1,clearable:!0,allowDeselect:!0,placeholder:"compare..."}),C=new(i())(y,{defaultSelected:!1,clearable:!0,allowDeselect:!0,placeholder:"field..."}),S=new(i())(v,{defaultSelected:!1,clearable:!0,allowDeselect:!0,placeholder:"order..."}),I=new(i())(b,{multiple:!0,clearable:!0,defaultSelected:!1,placeholder:"select fields..."});function k(e){return""===e?"@":"."===e[0]?e.slice(1):e}n.on("selectr.change",$),A.on("selectr.change",$),g.oninput=$,C.on("selectr.change",$),S.on("selectr.change",$),I.on("selectr.change",$),t.querySelector(".pico-modal-contents").onclick=function(e){"A"!==e.target.nodeName&&e.preventDefault()};var E=(0,c.debounce)(function(){try{var e=p(m,w.value);x.className="jsoneditor-transform-preview",x.value=(t=e,r=2,n=u.hJ,"number"==typeof r?10<r?i=l(" ",10):1<=r&&(i=l(" ",r)):"string"==typeof r&&""!==r&&(i=r),(r=a(t,i,"",n)).length>n?(t=r,("number"==typeof(i=n)?t.slice(0,i):t)+"..."):r),o.disabled=!1}catch(e){x.className="jsoneditor-transform-preview jsoneditor-error",x.value=e.toString(),o.disabled=!0}var t,r,n,i},300);function T(e,t){try{w.value=h(e,t),o.disabled=!1,E()}catch(t){e='Error: an error happened when executing "createQuery": '+(t.message||t.toString()),w.value="",o.disabled=!0,x.className="jsoneditor-transform-preview jsoneditor-error",x.value=e}}function $(){var e={};if(s.value&&d.value&&g.value&&(e.filter={field:s.value,relation:d.value,value:g.value}),y.value&&v.value&&(e.sort={field:y.value,direction:v.value}),b.value){for(var t,n=[],i=0;i<b.options.length;i++)b.options[i].selected&&(t=b.options[i].value,n.push(t));e.projection={fields:n}}T(r,e)}w.oninput=E,o.onclick=function(t){t.preventDefault(),t.stopPropagation(),e.close(),f(w.value)},T(r,{}),setTimeout(function(){w.select(),w.focus(),w.selectionStart=3,w.selectionEnd=3})}).afterClose(function(e){e.destroy()}).show()}},5633:function(e,t,r){r.r(t),r.d(t,{treeModeMixins:function(){return W}});var n={start:function(e,t,r){return 0===t.indexOf(e)},contain:function(e,t,r){return-1<t.indexOf(e)}},i=r(6545),o=r(2877);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(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,(e=>(e=(e=>{if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);if("object"!=s(t=t.call(e,"string")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")})(e),"symbol"==s(e)?e:e+""))(n.key),n)}}var l=(()=>{return e=function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.locked=!1},(t=[{key:"highlight",value:function(e){this.locked||(this.node!==e&&(this.node&&this.node.setHighlight(!1),this.node=e,this.node.setHighlight(!0)),this._cancelUnhighlight())}},{key:"unhighlight",value:function(){var e;this.locked||(e=this).node&&(this._cancelUnhighlight(),this.unhighlightTimer=setTimeout(function(){e.node.setHighlight(!1),e.node=void 0,e.unhighlightTimer=void 0},0))}},{key:"_cancelUnhighlight",value:function(){this.unhighlightTimer&&(clearTimeout(this.unhighlightTimer),this.unhighlightTimer=void 0)}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}}])&&a(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t})(),c=r(3057),u=r(359),d=r(1389),h=(t=r(1342),r.n(t)),p=r(1925),f=r(6237),m=r(2915),g=r(5609),y=r(660);function v(e,t){var r,n,i,o,s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return i=!(n=!0),{s:function(){s=s.call(e)},n:function(){var e=s.next();return n=e.done,e},e:function(e){i=!0,r=e},f:function(){try{n||null==s.return||s.return()}finally{if(i)throw r}}};if(Array.isArray(e)||(s=b(e))||t&&e&&"number"==typeof e.length)return s&&(e=s),o=0,{s:t=function(){},n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:t};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 b(e,t){var r;if(e)return"string"==typeof e?w(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(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,(e=>(e=(e=>{if("object"!=x(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);if("object"!=x(t=t.call(e,"string")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")})(e),"symbol"==x(e)?e:e+""))(n.key),n)}}var C=(()=>{function e(t,r){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.editor=t,this.dom={},this.expanded=!1,r&&r instanceof Object?(this.setField(r.field,r.fieldEditable),"value"in r&&this.setValue(r.value,r.type),"internalValue"in r&&this.setInternalValue(r.internalValue)):(this.setField(""),this.setValue(null)),this._debouncedOnChangeValue=(0,f.debounce)(this._onChangeValue.bind(this),e.prototype.DEBOUNCE_INTERVAL),this._debouncedOnChangeField=(0,f.debounce)(this._onChangeField.bind(this),e.prototype.DEBOUNCE_INTERVAL),this.visibleChilds=this.getMaxVisibleChilds()}return t=e,(r=[{key:"getMaxVisibleChilds",value:function(){return this.editor&&this.editor.options&&this.editor.options.maxVisibleChilds?this.editor.options.maxVisibleChilds:S}},{key:"_updateEditability",value:function(){var e,t;this.editable={field:!0,value:!0},this.editor&&(this.editable.field="tree"===this.editor.options.mode,this.editable.value="view"!==this.editor.options.mode,"tree"!==this.editor.options.mode&&"form"!==this.editor.options.mode||"function"!=typeof this.editor.options.onEditable||(e=this.getValue.bind(this),"boolean"==typeof(t=this.editor.options.onEditable({field:this.field,get value(){return e()},path:this.getPath()}))?(this.editable.field=t,this.editable.value=t):"object"===x(t)&&null!==t?("boolean"==typeof t.field&&(this.editable.field=t.field),"boolean"==typeof t.value&&(this.editable.value=t.value)):(console.error("Invalid return value for function onEditable.","Actual value:",t,".","Either a boolean or object { field: boolean, value: boolean } expected."),this.editable.field=!1,this.editable.value=!1)))}},{key:"getPath",value:function(){for(var e=this,t=[];e;){var r=e.getName();void 0!==r&&t.unshift(r),e=e.parent}return t}},{key:"getInternalPath",value:function(){for(var e=this,t=[];e;)e.parent&&t.unshift(e.getIndex()),e=e.parent;return t}},{key:"getName",value:function(){return this.parent?"array"!==this.parent.type?this.field:this.index:void 0}},{key:"findNodeByPath",value:function(e){if(e){if(0===e.length)return this;if(e.length&&this.childs&&this.childs.length)for(var t=0;t<this.childs.length;++t)if(""+e[0]==""+this.childs[t].getName())return this.childs[t].findNodeByPath(e.slice(1))}}},{key:"findNodeByInternalPath",value:function(e){if(e){for(var t=this,r=0;r<e.length&&t;r++)t=t.childs[e[r]];return t}}},{key:"serialize",value:function(){return{value:this.getValue(),path:this.getPath()}}},{key:"findNode",value:function(e){for(var t=(0,f.parsePath)(e),r=this;r&&0<t.length;)(()=>{var e=t.shift();if("number"==typeof e){if("array"!==r.type)throw new Error("Cannot get child node at index "+e+": node is no array");r=r.childs[e]}else{if("object"!==r.type)throw new Error("Cannot get child node "+e+": node is no object");r=r.childs.filter(function(t){return t.field===e})[0]}})();return r}},{key:"findParents",value:function(){for(var e=[],t=this.parent;t;)e.unshift(t),t=t.parent;return e}},{key:"setError",value:function(e,t){this.error=e,this.errorChild=t,this.dom&&this.dom.tr&&this.updateError()}},{key:"updateError",value:function(){var e=this,t=this.fieldError||this.valueError||this.error,r=this.dom.tdError;if(t&&this.dom&&this.dom.tr){(0,f.addClassName)(this.dom.tr,"jsoneditor-validation-error"),r||(r=document.createElement("td"),this.dom.tdError=r,this.dom.tdValue.parentNode.appendChild(r));var n=document.createElement("button"),i=(n.type="button",n.className="jsoneditor-button jsoneditor-schema-error",function(){e.dom.popupAnchor&&e.dom.popupAnchor.destroy()}),o=function(){delete e.dom.popupAnchor},s=function(r){var i=e.editor.frame;e.dom.popupAnchor=(0,p.p)(n,e.editor.getPopupAnchor(),o,r),r=n.getBoundingClientRect(),i=120<i.getBoundingClientRect().width-r.x?"jsoneditor-above":"jsoneditor-left",(r=document.createElement("div")).className="jsoneditor-popover "+i,r.appendChild(document.createTextNode(t.message)),e.dom.popupAnchor.appendChild(r)},a=(n.onmouseover=function(){e.dom.popupAnchor||s(!0)},n.onfocus=function(){i(),s(!1)},n.onblur=function(){i()},this.errorChild);for(a&&(n.onclick=function(){a.findParents().forEach(function(e){e.expand(!1)}),a.scrollTo(function(){a.focus()})});r.firstChild;)r.removeChild(r.firstChild);r.appendChild(n)}else this.dom.tr&&(0,f.removeClassName)(this.dom.tr,"jsoneditor-validation-error"),r&&(this.dom.tdError.parentNode.removeChild(this.dom.tdError),delete this.dom.tdError)}},{key:"getIndex",value:function(){var e;return this.parent?-1!==(e=this.parent.childs.indexOf(this))?e:null:-1}},{key:"setParent",value:function(e){this.parent=e}},{key:"setField",value:function(e,t){this.field=e,this.previousField=e,this.fieldEditable=!0===t}},{key:"getField",value:function(){return void 0===this.field&&this._getDomField(),this.field}},{key:"setValue",value:function(t,r){var n,i,o,s,a,l,c=this.childs;if(this.type=this._getType(t),r&&r!==this.type){if("string"!==r||"auto"!==this.type)throw new Error('Type mismatch: cannot cast value of type "'+this.type+' to the specified type "'+r+'"');this.type=r}if("array"===this.type){for(this.childs||(this.childs=[]),n=0;n<t.length;n++)void 0===(a=t[n])||a instanceof Function||(n<this.childs.length?((o=this.childs[n]).fieldEditable=!1,o.index=n,o.setValue(a)):(o=new e(this.editor,{value:a}),s=n<this.getMaxVisibleChilds(),this.appendChild(o,s,!1)));for(i=this.childs.length;i>=t.length;i--)this.removeChild(this.childs[i],!1)}else if("object"===this.type){for(this.childs||(this.childs=[]),i=this.childs.length-1;0<=i;i--)E(t,this.childs[i].field)||this.removeChild(this.childs[i],!1);for(var u in n=0,t)E(t,u)&&(void 0===(a=t[u])||a instanceof Function||((l=this.findChildByProperty(u))?(l.setField(u,!0),l.setValue(a)):(l=new e(this.editor,{field:u,value:a}),u=n<this.getMaxVisibleChilds(),this.appendChild(l,u,!1))),n++);!(this.value="")===this.editor.options.sortObjectKeys&&this.sort([],"asc",!1)}else this.hideChilds(),delete this.append,delete this.showMore,delete this.expanded,delete this.childs,this.value=t;Array.isArray(c)!==Array.isArray(this.childs)&&this.recreateDom(),this.updateDom({updateIndexes:!0}),this.previousValue=this.value}},{key:"setInternalValue",value:function(t){var r,n,i,o,s,a=this.childs;if(this.type=t.type,"array"===t.type){for(this.childs||(this.childs=[]),o=0;o<t.childs.length;o++)void 0===(r=t.childs[o])||r instanceof Function||(o<this.childs.length?((n=this.childs[o]).fieldEditable=!1,n.index=o,n.setInternalValue(r)):(n=new e(this.editor,{internalValue:r}),i=o<this.getMaxVisibleChilds(),this.appendChild(n,i,!1)));for(s=this.childs.length;s>=t.childs.length;s--)this.removeChild(this.childs[s],!1)}else if("object"===t.type){for(this.childs||(this.childs=[]),o=0;o<t.childs.length;o++)void 0===(r=t.childs[o])||r instanceof Function||(o<this.childs.length?(delete(n=this.childs[o]).index,n.setField(r.field,!0),n.setInternalValue(r.value)):(n=new e(this.editor,{field:r.field,internalValue:r.value}),i=o<this.getMaxVisibleChilds(),this.appendChild(n,i,!1)));for(s=this.childs.length;s>=t.childs.length;s--)this.removeChild(this.childs[s],!1)}else this.hideChilds(),delete this.append,delete this.showMore,delete this.expanded,delete this.childs,this.value=t.value;Array.isArray(a)!==Array.isArray(this.childs)&&this.recreateDom(),this.updateDom({updateIndexes:!0}),this.previousValue=this.value}},{key:"recreateDom",value:function(){var e;this.dom&&this.dom.tr&&this.dom.tr.parentNode?(e=this._detachFromDom(),this.clearDom(),this._attachToDom(e)):this.clearDom()}},{key:"getValue",value:function(){var e,t;return"array"===this.type?(e=[],this.childs.forEach(function(t){e.push(t.getValue())}),e):"object"===this.type?(t={},this.childs.forEach(function(e){t[e.getField()]=e.getValue()}),t):(void 0===this.value&&this._getDomValue(),this.value)}},{key:"getInternalValue",value:function(){return"array"===this.type?{type:this.type,childs:this.childs.map(function(e){return e.getInternalValue()})}:"object"===this.type?{type:this.type,childs:this.childs.map(function(e){return{field:e.getField(),value:e.getInternalValue()}})}:(void 0===this.value&&this._getDomValue(),{type:this.type,value:this.value})}},{key:"getLevel",value:function(){return this.parent?this.parent.getLevel()+1:0}},{key:"getNodePath",value:function(){var e=this.parent?this.parent.getNodePath():[];return e.push(this),e}},{key:"clone",value:function(){var t,r;return(t=new e(this.editor)).type=this.type,t.field=this.field,t.fieldInnerText=this.fieldInnerText,t.fieldEditable=this.fieldEditable,t.previousField=this.previousField,t.value=this.value,t.valueInnerText=this.valueInnerText,t.previousValue=this.previousValue,t.expanded=this.expanded,t.visibleChilds=this.visibleChilds,this.childs?(r=[],this.childs.forEach(function(e){(e=e.clone()).setParent(t),r.push(e)}),t.childs=r):t.childs=void 0,t}},{key:"expand",value:function(e){this.childs&&(this.expanded=!0,this.dom.expand&&(this.dom.expand.className="jsoneditor-button jsoneditor-expanded"),this.showChilds(),!1!==e&&this.childs.forEach(function(t){t.expand(e)}),this.updateDom({recurse:!1}))}},{key:"collapse",value:function(e){this.childs&&(this.hideChilds(),!1!==e&&this.childs.forEach(function(t){t.collapse(e)}),this.dom.expand&&(this.dom.expand.className="jsoneditor-button jsoneditor-collapsed"),this.expanded=!1,this.updateDom({recurse:!1}))}},{key:"showChilds",value:function(){if((e=this.childs)&&this.expanded){var e,t=(e=this.dom.tr)?e.parentNode:void 0;if(t){for(var r=this.getAppendDom(),n=(r.parentNode||((i=e.nextSibling)?t.insertBefore(r,i):t.appendChild(r)),Math.min(this.childs.length,this.visibleChilds)),i=this._getNextTr(),o=0;o<n;o++){var s=this.childs[o];s.getDom().parentNode||t.insertBefore(s.getDom(),i),s.showChilds()}e=this.getShowMoreDom(),i=this._getNextTr(),e.parentNode||t.insertBefore(e,i),this.showMore.updateDom()}}}},{key:"_getNextTr",value:function(){return this.showMore&&this.showMore.getDom().parentNode?this.showMore.getDom():this.append&&this.append.getDom().parentNode?this.append.getDom():void 0}},{key:"hide",value:function(e){var t=this.dom.tr,r=t?t.parentNode:void 0;r&&r.removeChild(t),this.dom.popupAnchor&&this.dom.popupAnchor.destroy(),this.hideChilds(e)}},{key:"hideChilds",value:function(e){var t;this.childs&&this.expanded&&((t=this.getAppendDom()).parentNode&&t.parentNode.removeChild(t),this.childs.forEach(function(e){e.hide()}),(t=this.getShowMoreDom()).parentNode&&t.parentNode.removeChild(t),e&&!e.resetVisibleChilds||(this.visibleChilds=this.getMaxVisibleChilds()))}},{key:"_updateCssClassName",value:function(){var e,t;this.dom.field&&this.editor&&this.editor.options&&"function"==typeof this.editor.options.onClassName&&this.dom.tree&&((0,f.removeAllClassNames)(this.dom.tree),e=this.getValue.bind(this),t=this.editor.options.onClassName({path:this.getPath(),field:this.field,get value(){return e()}})||"",(0,f.addClassName)(this.dom.tree,"jsoneditor-values "+t))}},{key:"recursivelyUpdateCssClassesOnNodes",value:function(){if(this._updateCssClassName(),Array.isArray(this.childs))for(var e=0;e<this.childs.length;e++)this.childs[e].recursivelyUpdateCssClassesOnNodes()}},{key:"expandTo",value:function(){for(var e=this.parent;e;)e.expanded||e.expand(),e=e.parent}},{key:"appendChild",value:function(e,t,r){var n,i;this._hasChilds()&&(e.setParent(this),e.fieldEditable="object"===this.type,"array"===this.type&&(e.index=this.childs.length),"object"===this.type&&void 0===e.field&&e.setField(""),this.childs.push(e),this.expanded&&!1!==t&&(t=e.getDom(),i=(n=this._getNextTr())?n.parentNode:void 0,n&&i&&i.insertBefore(t,n),e.showChilds(),this.visibleChilds++),!1!==r)&&(this.updateDom({updateIndexes:!0}),e.updateDom({recurse:!0}))}},{key:"moveBefore",value:function(e,t,r){var n,i,o;this._hasChilds()&&((n=this.dom.tr?this.dom.tr.parentNode:void 0)&&((i=document.createElement("tr")).style.height=n.clientHeight+"px",n.appendChild(i)),e.parent&&e.parent.removeChild(e),t instanceof T||!t?this.childs.length+1>this.visibleChilds?(o=this.childs[this.visibleChilds-1],this.insertBefore(e,o,r)):this.appendChild(e,!0,r):this.insertBefore(e,t,r),n)&&i&&n.removeChild(i)}},{key:"insertBefore",value:function(e,t,r){if(this._hasChilds()){if(this.visibleChilds++,"object"===this.type&&void 0===e.field&&e.setField(""),t===this.append)e.setParent(this),e.fieldEditable="object"===this.type,this.childs.push(e);else{var n=this.childs.indexOf(t);if(-1===n)throw new Error("Node not found");e.setParent(this),e.fieldEditable="object"===this.type,this.childs.splice(n,0,e)}var i;this.expanded&&(n=e.getDom(),i=(t=t.getDom())?t.parentNode:void 0,t&&i&&i.insertBefore(n,t),e.showChilds(),this.showChilds()),!1!==r&&(this.updateDom({updateIndexes:!0}),e.updateDom({recurse:!0}))}}},{key:"insertAfter",value:function(e,t){this._hasChilds()&&(t=this.childs.indexOf(t),(t=this.childs[t+1])?this.insertBefore(e,t):this.appendChild(e))}},{key:"search",value:function(e,t){Array.isArray(t)||(t=[]);var r=e?e.toLowerCase():void 0;return delete this.searchField,delete this.searchValue,void 0!==this.field&&t.length<=this.MAX_SEARCH_RESULTS&&(-1!==String(this.field).toLowerCase().indexOf(r)&&(this.searchField=!0,t.push({node:this,elem:"field"})),this._updateDomField()),this._hasChilds()?this.childs&&this.childs.forEach(function(r){r.search(e,t)}):void 0!==this.value&&t.length<=this.MAX_SEARCH_RESULTS&&(-1!==String(this.value).toLowerCase().indexOf(r)&&(this.searchValue=!0,t.push({node:this,elem:"value"})),this._updateDomValue()),t}},{key:"scrollTo",value:function(e){this.expandPathToNode(),this.dom.tr&&this.dom.tr.parentNode&&this.editor.scrollTo(this.dom.tr.offsetTop,e)}},{key:"expandPathToNode",value:function(){for(var e=this;e&&e.parent;){for(var t="array"===e.parent.type?e.index:e.parent.childs.indexOf(e);e.parent.visibleChilds<t+1;)e.parent.visibleChilds+=this.getMaxVisibleChilds();e.parent.expand(!1),e=e.parent}}},{key:"focus",value:function(t){if(e.focusElement=t,this.dom.tr&&this.dom.tr.parentNode){var r=this.dom;switch(t){case"drag":(r.drag||r.menu).focus();break;case"menu":r.menu.focus();break;case"expand":this._hasChilds()?r.expand.focus():r.field&&this.fieldEditable?(r.field.focus(),(0,f.selectContentEditable)(r.field)):r.value&&!this._hasChilds()?(r.value.focus(),(0,f.selectContentEditable)(r.value)):r.menu.focus();break;case"field":r.field&&this.fieldEditable?(r.field.focus(),(0,f.selectContentEditable)(r.field)):r.value&&!this._hasChilds()?(r.value.focus(),(0,f.selectContentEditable)(r.value)):(this._hasChilds()?r.expand:r.menu).focus();break;default:r.select?r.select.focus():r.value&&!this._hasChilds()?(r.value.focus(),(0,f.selectContentEditable)(r.value)):r.field&&this.fieldEditable?(r.field.focus(),(0,f.selectContentEditable)(r.field)):(this._hasChilds()?r.expand:r.menu).focus()}}}},{key:"containsNode",value:function(e){if(this===e)return!0;var t=this.childs;if(t)for(var r=0,n=t.length;r<n;r++)if(t[r].containsNode(e))return!0;return!1}},{key:"removeChild",value:function(e,t){if(this.childs){var r=this.childs.indexOf(e);if(-1!==r)return r<this.visibleChilds&&this.expanded&&this.visibleChilds--,e.hide(),delete e.searchField,delete e.searchValue,(e=this.childs.splice(r,1)[0]).parent=null,!1!==t&&this.updateDom({updateIndexes:!0}),e}}},{key:"_remove",value:function(e){this.removeChild(e)}},{key:"changeType",value:function(e){var t,r=this.type;r!==e&&("string"!==e&&"auto"!==e||"string"!==r&&"auto"!==r?(t=this._detachFromDom(),this.clearDom(),"object"===(this.type=e)?(this.childs||(this.childs=[]),this.childs.forEach(function(e){e.clearDom(),delete e.index,e.fieldEditable=!0,void 0===e.field&&(e.field="")}),"string"!==r&&"auto"!==r||(this.expanded=!0)):"array"===e?(this.childs||(this.childs=[]),this.childs.forEach(function(e,t){e.clearDom(),e.fieldEditable=!1,e.index=t}),"string"!==r&&"auto"!==r||(this.expanded=!0)):this.expanded=!1,this._attachToDom(t)):this.type=e,"auto"!==e&&"string"!==e||(this.value="string"===e?String(this.value):(0,f.parseString)(String(this.value)),this.focus()),this.updateDom({updateIndexes:!0}))}},{key:"deepEqual",value:function(e){var t;if("array"===this.type){if(!Array.isArray(e))return!1;if(this.childs.length!==e.length)return!1;for(t=0;t<this.childs.length;t++)if(!this.childs[t].deepEqual(e[t]))return!1}else if("object"===this.type){if("object"!==x(e)||!e)return!1;var r=Object.keys(e);if(this.childs.length!==r.length)return!1;for(t=0;t<r.length;t++){var n=this.childs[t];if(n.field!==r[t]||!n.deepEqual(e[n.field]))return!1}}else if(this.value!==e)return!1;return!0}},{key:"_getDomValue",value:function(){if(this._clearValueError(),this.dom.value&&"array"!==this.type&&"object"!==this.type&&(this.valueInnerText=(0,f.getInnerText)(this.dom.value),""===this.valueInnerText)&&""!==this.dom.value.innerHTML&&(this.dom.value.textContent=""),void 0!==this.valueInnerText)try{var e,t;(t="string"===this.type?this._unescapeHTML(this.valueInnerText):(e=this._unescapeHTML(this.valueInnerText),(0,f.parseString)(e)))!==this.value&&(this.value=t,this._debouncedOnChangeValue())}catch(e){this._setValueError((0,c.Tl)("cannotParseValueError"))}}},{key:"_setValueError",value:function(e){this.valueError={message:e},this.updateError()}},{key:"_clearValueError",value:function(){this.valueError&&(this.valueError=null,this.updateError())}},{key:"_setFieldError",value:function(e){this.fieldError={message:e},this.updateError()}},{key:"_clearFieldError",value:function(){this.fieldError&&(this.fieldError=null,this.updateError())}},{key:"_onChangeValue",value:function(){var e,t=this.editor.getDomSelection(),r=(t.range&&(r=(0,f.textDiff)(String(this.value),String(this.previousValue)),t.range.startOffset=r.start,t.range.endOffset=r.end),this.editor.getDomSelection());r.range&&(e=(0,f.textDiff)(String(this.previousValue),String(this.value)),r.range.startOffset=e.start,r.range.endOffset=e.end),this.editor._onAction("editValue",{path:this.getInternalPath(),oldValue:this.previousValue,newValue:this.value,oldSelection:t,newSelection:r}),this.previousValue=this.value}},{key:"_onChangeField",value:function(){var e=this.editor.getDomSelection(),t=this.previousField||"",r=(e.range&&(r=(0,f.textDiff)(this.field,t),e.range.startOffset=r.start,e.range.endOffset=r.end),this.editor.getDomSelection());r.range&&(t=(0,f.textDiff)(t,this.field),r.range.startOffset=t.start,r.range.endOffset=t.end),this.editor._onAction("editField",{parentPath:this.parent.getInternalPath(),index:this.getIndex(),oldValue:this.previousField,newValue:this.field,oldSelection:e,newSelection:r}),this.previousField=this.field}},{key:"_updateDomValue",value:function(){var e=this.dom.value;if(e){var t=["jsoneditor-value"],r=this.value,n="auto"===this.type?(0,f.getType)(r):this.type,i="string"===n&&(0,f.isUrl)(r);if(t.push("jsoneditor-"+n),i&&t.push("jsoneditor-url"),""===String(this.value)&&"array"!==this.type&&"object"!==this.type&&t.push("jsoneditor-empty"),this.searchValueActive&&t.push("jsoneditor-highlight-active"),this.searchValue&&t.push("jsoneditor-highlight"),e.className=t.join(" "),"array"===n||"object"===n?(t=this.childs?this.childs.length:0,e.title=this.type+" containing "+t+" items"):i&&this.editable.value?e.title=(0,c.Tl)("openUrl"):e.title="","boolean"===n&&this.editable.value?(this.dom.checkbox||(this.dom.checkbox=document.createElement("input"),this.dom.checkbox.type="checkbox",this.dom.tdCheckbox=document.createElement("td"),this.dom.tdCheckbox.className="jsoneditor-tree",this.dom.tdCheckbox.appendChild(this.dom.checkbox),this.dom.tdValue.parentNode.insertBefore(this.dom.tdCheckbox,this.dom.tdValue)),this.dom.checkbox.checked=this.value):this.dom.tdCheckbox&&(this.dom.tdCheckbox.parentNode.removeChild(this.dom.tdCheckbox),delete this.dom.tdCheckbox,delete this.dom.checkbox),this.enum&&this.editable.value?(this.dom.select||(this.dom.select=document.createElement("select"),this.id=this.field+"_"+(new Date).getUTCMilliseconds(),this.dom.select.id=this.id,this.dom.select.name=this.dom.select.id,(t=document.createElement("option")).value="",t.textContent="--",this.dom.select.appendChild(t),this._updateEnumOptions(),this.dom.tdSelect=document.createElement("td"),this.dom.tdSelect.className="jsoneditor-tree",this.dom.tdSelect.appendChild(this.dom.select),this.dom.tdValue.parentNode.insertBefore(this.dom.tdSelect,this.dom.tdValue)),this.dom.select.value=-1!==this.enum.indexOf(this.value)?this.value:"",!this.schema||E(this.schema,"oneOf")||E(this.schema,"anyOf")||E(this.schema,"allOf")?delete this.valueFieldHTML:(this.valueFieldHTML=this.dom.tdValue.innerHTML,this.dom.tdValue.style.visibility="hidden",this.dom.tdValue.textContent="")):this.dom.tdSelect&&(this.dom.tdSelect.parentNode.removeChild(this.dom.tdSelect),delete this.dom.tdSelect,delete this.dom.select,this.dom.tdValue.innerHTML=this.valueFieldHTML,this.dom.tdValue.style.visibility="",delete this.valueFieldHTML,this.dom.tdValue.appendChild(this.dom.value)),this.editor.options.colorPicker&&"string"==typeof r&&(0,f.isValidColor)(r)?(this.dom.color||(this.dom.color=document.createElement("div"),this.dom.color.className="jsoneditor-color",this.dom.tdColor=document.createElement("td"),this.dom.tdColor.className="jsoneditor-tree",this.dom.tdColor.appendChild(this.dom.color),this.dom.tdValue.parentNode.insertBefore(this.dom.tdColor,this.dom.tdValue)),(0,f.addClassName)(this.dom.value,"jsoneditor-color-value"),(this.editable.value?f.removeClassName:f.addClassName)(this.dom.color,"jsoneditor-color-readonly"),this.dom.color.style.backgroundColor=r):this._deleteDomColor(),this._showTimestampTag()){if(this.dom.date||(this.dom.date=document.createElement("div"),this.dom.date.className="jsoneditor-date",this.dom.value.parentNode.appendChild(this.dom.date)),i=null,i="function"==typeof this.editor.options.timestampFormat?this.editor.options.timestampFormat({field:this.field,value:this.value,path:this.getPath()}):i){for(;this.dom.date.firstChild;)this.dom.date.removeChild(this.dom.date.firstChild);this.dom.date.appendChild(document.createTextNode(i))}else this.dom.date.textContent=new Date(r).toISOString();this.dom.date.title=new Date(r).toString()}else this.dom.date&&(this.dom.date.parentNode.removeChild(this.dom.date),delete this.dom.date);(0,f.stripFormatting)(e),this._updateDomDefault()}}},{key:"_updateEnumOptions",value:function(){if(this.enum&&this.dom.select){this.dom.select.innerHTML="";for(var e=0;e<this.enum.length;e++){var t=document.createElement("option");t.value=this.enum[e],t.textContent=this.enum[e],this.dom.select.appendChild(t)}}}},{key:"_deleteDomColor",value:function(){this.dom.color&&(this.dom.tdColor.parentNode.removeChild(this.dom.tdColor),delete this.dom.tdColor,delete this.dom.color,(0,f.removeClassName)(this.dom.value,"jsoneditor-color-value"))}},{key:"_updateDomField",value:function(){var e,t=this.dom.field;t&&((e=(0,f.makeFieldTooltip)(this.schema,this.editor.options.language))&&(t.title=e),(""===String(this.field)&&this.parent&&"array"!==this.parent.type?f.addClassName:f.removeClassName)(t,"jsoneditor-empty"),(this.searchFieldActive?f.addClassName:f.removeClassName)(t,"jsoneditor-highlight-active"),(this.searchField?f.addClassName:f.removeClassName)(t,"jsoneditor-highlight"),(0,f.stripFormatting)(t))}},{key:"_getDomField",value:function(e){if(this._clearFieldError(),this.dom.field&&this.fieldEditable&&(this.fieldInnerText=(0,f.getInnerText)(this.dom.field),""===this.fieldInnerText)&&""!==this.dom.field.innerHTML&&(this.dom.field.textContent=""),void 0!==this.fieldInnerText)try{var t=this._unescapeHTML(this.fieldInnerText),r=this.parent.getFieldNames(this);-1!==r.indexOf(t)?e?(t=(0,f.findUniqueName)(t,r))!==this.field&&(this.field=t,this._debouncedOnChangeField()):this._setFieldError((0,c.Tl)("duplicateFieldError")):t!==this.field&&(this.field=t,this._debouncedOnChangeField())}catch(e){this._setFieldError((0,c.Tl)("cannotParseFieldError"))}}},{key:"_updateDomDefault",value:function(){var e;this.schema&&void 0!==this.schema.default&&!this._hasChilds()&&(e=this.dom.select||this.dom.value)&&(this.value===this.schema.default?(e.title=(0,c.Tl)("default"),(0,f.addClassName)(e,"jsoneditor-is-default"),f.removeClassName):(e.removeAttribute("title"),(0,f.removeClassName)(e,"jsoneditor-is-default"),f.addClassName))(e,"jsoneditor-is-not-default")}},{key:"_showTimestampTag",value:function(){var e,t;return"number"==typeof this.value&&("function"==typeof(e=this.editor.options.timestampTag)?"boolean"==typeof(t=e({field:this.field,value:this.value,path:this.getPath()}))?t:(0,f.isTimestamp)(this.field,this.value):!0===e&&(0,f.isTimestamp)(this.field,this.value))}},{key:"clearDom",value:function(){this.dom={}}},{key:"getDom",value:function(){var e,t,r=this.dom;return r.tr||(this._updateEditability(),r.tr=document.createElement("tr"),"tree"===(r.tr.node=this).editor.options.mode&&(t=document.createElement("td"),this.editable.field&&this.parent&&((e=document.createElement("button")).type="button",(r.drag=e).className="jsoneditor-button jsoneditor-dragarea",e.title=(0,c.Tl)("drag"),t.appendChild(e)),r.tr.appendChild(t),e=document.createElement("td"),(t=document.createElement("button")).type="button",(r.menu=t).className="jsoneditor-button jsoneditor-contextmenu-button",t.title=(0,c.Tl)("actionsMenu"),e.appendChild(r.menu),r.tr.appendChild(e)),t=document.createElement("td"),r.tr.appendChild(t),r.tree=this._createDomTree(),t.appendChild(r.tree),this.updateDom({updateIndexes:!0})),r.tr}},{key:"isVisible",value:function(){return this.dom&&this.dom.tr&&this.dom.tr.parentNode||!1}},{key:"isDescendantOf",value:function(e){for(var t=this.parent;t;){if(t===e)return!0;t=t.parent}return!1}},{key:"_createDomField",value:function(){return document.createElement("div")}},{key:"setHighlight",value:function(e){this.dom.tr&&((e?f.addClassName:f.removeClassName)(this.dom.tr,"jsoneditor-highlight"),this.append&&this.append.setHighlight(e),this.childs)&&this.childs.forEach(function(t){t.setHighlight(e)})}},{key:"setSelected",value:function(e,t){this.selected=e,this.dom.tr&&((e?f.addClassName:f.removeClassName)(this.dom.tr,"jsoneditor-selected"),(t?f.addClassName:f.removeClassName)(this.dom.tr,"jsoneditor-first"),this.append&&this.append.setSelected(e),this.showMore&&this.showMore.setSelected(e),this.childs)&&this.childs.forEach(function(t){t.setSelected(e)})}},{key:"updateValue",value:function(e){this.value=e,this.previousValue=e,this.valueError=void 0,this.updateDom()}},{key:"updateField",value:function(e){this.field=e,this.previousField=e,this.fieldError=void 0,this.updateDom()}},{key:"updateDom",value:function(t){var r,n;(n=this.dom.tree)&&(n.style.marginLeft=24*this.getLevel()+"px"),(n=this.dom.field)&&(this.fieldEditable?(n.contentEditable=this.editable.field,n.spellcheck=!1,n.className="jsoneditor-field"):(n.contentEditable=!1,n.className="jsoneditor-readonly"),r=void 0!==this.index?this.index:void 0!==this.field?this.field:(r=this.editor.options.schema?e._findSchema(this.editor.options.schema,this.editor.options.schemaRefs||{},this.getPath()):void 0)&&r.title?r.title:this._hasChilds()?this.type:"",r=this._escapeHTML(r),document.activeElement!==n&&r!==this._unescapeHTML((0,f.getInnerText)(n))&&(n.innerHTML=r),this._updateSchema(),this._updateEnumOptions()),(n=this.dom.value)&&("array"===this.type||"object"===this.type?this.updateNodeName():(r=this._escapeHTML(this.value),document.activeElement!==n&&r!==this._unescapeHTML((0,f.getInnerText)(n))&&(n.innerHTML=r))),(n=this.dom.tr)&&("array"===this.type||"object"===this.type?((0,f.addClassName)(n,"jsoneditor-expandable"),this.expanded?((0,f.addClassName)(n,"jsoneditor-expanded"),(0,f.removeClassName)(n,"jsoneditor-collapsed")):((0,f.addClassName)(n,"jsoneditor-collapsed"),(0,f.removeClassName)(n,"jsoneditor-expanded"))):((0,f.removeClassName)(n,"jsoneditor-expandable"),(0,f.removeClassName)(n,"jsoneditor-expanded"),(0,f.removeClassName)(n,"jsoneditor-collapsed"))),this._updateDomField(),this._updateDomValue(),t&&!0===t.updateIndexes&&this._updateDomIndexes(),t&&!0===t.recurse&&this.childs&&this.childs.forEach(function(e){e.updateDom(t)}),this.error&&this.updateError(),this.append&&this.append.updateDom(),this.showMore&&this.showMore.updateDom(),this._updateCssClassName()}},{key:"_updateSchema",value:function(){this.editor&&this.editor.options&&(this.schema=this.editor.options.schema?e._findSchema(this.editor.options.schema,this.editor.options.schemaRefs||{},this.getPath()):null,this.schema?this.enum=e._findEnum(this.schema):delete this.enum)}},{key:"_updateDomIndexes",value:function(){var e=this.dom.value,t=this.childs;e&&t&&("array"===this.type?t.forEach(function(e,t){e.index=t,(e=e.dom.field)&&(e.textContent=t)}):"object"===this.type&&t.forEach(function(e){void 0!==e.index&&(delete e.index,void 0===e.field)&&(e.field="")}))}},{key:"_createDomValue",value:function(){var e;return"array"===this.type?(e=document.createElement("div")).textContent="[...]":"object"===this.type?(e=document.createElement("div")).textContent="{...}":(!this.editable.value&&(0,f.isUrl)(this.value)?(e=document.createElement("a")).href=this.value:((e=document.createElement("div")).contentEditable=this.editable.value,e.spellcheck=!1),e.innerHTML=this._escapeHTML(this.value)),e}},{key:"_createDomExpandButton",value:function(){var e=document.createElement("button");return e.type="button",this._hasChilds()?(e.className=this.expanded?"jsoneditor-button jsoneditor-expanded":"jsoneditor-button jsoneditor-collapsed",e.title=(0,c.Tl)("expandTitle")):(e.className="jsoneditor-button jsoneditor-invisible",e.title=""),e}},{key:"_createDomTree",value:function(){var e=this.dom,t=document.createElement("table"),r=document.createElement("tbody"),n=(t.style.borderCollapse="collapse",t.className="jsoneditor-values",t.appendChild(r),document.createElement("tr"));return((((r.appendChild(n),r=document.createElement("td")).className="jsoneditor-tree",n.appendChild(r),e.expand=this._createDomExpandButton(),r.appendChild(e.expand),e.tdExpand=r,r=document.createElement("td")).className="jsoneditor-tree",n.appendChild(r),e.field=this._createDomField(),r.appendChild(e.field),e.tdField=r,r=document.createElement("td")).className="jsoneditor-tree",n.appendChild(r),"object"!==this.type&&"array"!==this.type&&(r.appendChild(document.createTextNode(":")),r.className="jsoneditor-separator"),e.tdSeparator=r,r=document.createElement("td")).className="jsoneditor-tree",n.appendChild(r),e.value=this._createDomValue(),r.appendChild(e.value),e.tdValue=r,t}},{key:"onEvent",value:function(e){var t,r=e.type,n=e.target||e.srcElement,i=this.dom,o=this,s=this._hasChilds(),a=(n!==i.drag&&n!==i.menu||("mouseover"===r?this.editor.highlighter.highlight(this):"mouseout"===r&&this.editor.highlighter.unhighlight()),"click"===r&&n===i.menu&&((t=o.editor.highlighter).highlight(o),t.lock(),(0,f.addClassName)(i.menu,"jsoneditor-selected"),this.showContextMenu(i.menu,function(){(0,f.removeClassName)(i.menu,"jsoneditor-selected"),t.unlock(),t.unhighlight()})),"click"===r&&n===i.expand&&s&&(d=e.ctrlKey,this._onExpand(d)),"click"!==r||e.target!==o.dom.tdColor&&e.target!==o.dom.color||!this.editable.value||this._showColorPicker(),"change"===r&&n===i.checkbox&&(this.dom.value.textContent=String(!this.value),this._getDomValue(),this._updateDomDefault()),"change"===r&&n===i.select&&(this.dom.value.innerHTML=this._escapeHTML(i.select.value),this._getDomValue(),this._updateDomValue()),i.value);if(n===a)switch(r){case"blur":case"change":this._getDomValue(),this._clearValueError(),this._updateDomValue();var l=this._escapeHTML(this.value);l!==this._unescapeHTML((0,f.getInnerText)(a))&&(a.innerHTML=l);break;case"input":case"keyup":this._getDomValue(),this._updateDomValue();break;case"keydown":case"mousedown":this.editor.selection=this.editor.getDomSelection();break;case"click":e.ctrlKey&&this.editable.value&&(0,f.isUrl)(this.value)&&(e.preventDefault(),window.open(this.value,"_blank","noreferrer"));break;case"cut":case"paste":setTimeout(function(){o._getDomValue(),o._updateDomValue()},1)}var c=i.field;if(n===c)switch(r){case"blur":this._getDomField(!0),this._updateDomField();var u=this._escapeHTML(this.field);u!==this._unescapeHTML((0,f.getInnerText)(c))&&(c.innerHTML=u);break;case"input":this._getDomField(),this._updateSchema(),this._updateDomField(),this._updateDomValue();break;case"keydown":case"mousedown":this.editor.selection=this.editor.getDomSelection();break;case"keyup":this._getDomField(),this._updateDomField();break;case"cut":case"paste":setTimeout(function(){o._getDomField(),o._updateDomField()},1)}var d=i.tree;d&&n===d.parentNode&&"click"===r&&!e.hasMoved&&((void 0!==e.offsetX?e.offsetX<24*(this.getLevel()+1):e.pageX<(0,f.getAbsoluteLeft)(i.tdSeparator))||s?c&&((0,f.setEndOfContentEditable)(c),c.focus()):a&&!this.enum&&((0,f.setEndOfContentEditable)(a),a.focus())),(n!==i.tdExpand||s)&&n!==i.tdField&&n!==i.tdSeparator||"click"!==r||e.hasMoved||c&&((0,f.setEndOfContentEditable)(c),c.focus()),"keydown"===r&&this.onKeyDown(e),"function"==typeof this.editor.options.onEvent&&this._onEvent(e)}},{key:"_onEvent",value:function(e){var t=(r=e.target)===this.dom.field,r=r===this.dom.value||r===this.dom.checkbox||r===this.dom.select;(t||r)&&(t={field:this.getField(),path:this.getPath()},r&&!this._hasChilds()&&(t.value=this.getValue()),this.editor.options.onEvent(t,e))}},{key:"onKeyDown",value:function(t){var r,n,i,o,s,a,l,c,u,d,h,p,m,g,y=t.which||t.keyCode,v=t.target||t.srcElement,b=t.ctrlKey,w=t.shiftKey,x=t.altKey,A=!1,C="tree"===this.editor.options.mode,S=0<this.editor.multiselection.nodes.length?this.editor.multiselection.nodes:[this],I=S[0],E=S[S.length-1];13===y?v===this.dom.value?this.editable.value&&!t.ctrlKey||(0,f.isUrl)(this.value)&&(window.open(this.value,"_blank","noreferrer"),A=!0):v===this.dom.expand&&this._hasChilds()&&(m=t.ctrlKey,this._onExpand(m),v.focus(),A=!0):68===y?b&&C&&(e.onDuplicate(S),A=!0):69===y?b&&(this._onExpand(w),v.focus(),A=!0):77===y&&C?b&&(this.showContextMenu(v),A=!0):46===y&&C?b&&(e.onRemove(S),A=!0):45===y&&C?b&&!w?(this._onInsertBefore(),A=!0):b&&w&&(this._onInsertAfter(),A=!0):35===y?x&&((m=this._lastNode())&&m.focus(e.focusElement||this._getElementName(v)),A=!0):36===y?x&&((m=this._firstNode())&&m.focus(e.focusElement||this._getElementName(v)),A=!0):37===y?x&&!w?((m=this._previousElement(v))&&this.focus(this._getElementName(m)),A=!0):x&&w&&C&&(m=E.expanded?(m=E.getAppendDom())?m.nextSibling:void 0:E.getDom().nextSibling)&&(h=e.getNodeFromTarget(m),m=m.nextSibling,p=e.getNodeFromTarget(m),h)&&h instanceof T&&1!==E.parent.childs.length&&p&&p.parent&&(n=this.editor.getDomSelection(),i=(o=I.parent).childs[E.getIndex()+1]||o.append,s=I.getIndex(),a=p.getIndex(),l=o.getInternalPath(),c=p.parent.getInternalPath(),S.forEach(function(e){p.parent.moveBefore(e,p)}),this.focus(e.focusElement||this._getElementName(v)),this.editor._onAction("moveNodes",{count:S.length,fieldNames:S.map(k),oldParentPath:o.getInternalPath(),newParentPath:I.parent.getInternalPath(),oldIndex:i.getIndex(),newIndex:I.getIndex(),oldIndexRedo:s,newIndexRedo:a,oldParentPathRedo:l,newParentPathRedo:c,oldSelection:n,newSelection:this.editor.getDomSelection()})):38===y?x&&!w?((r=this._previousNode())&&(this.editor.deselect(!0),r.focus(e.focusElement||this._getElementName(v))),A=!0):!x&&b&&w&&C?((r=this._previousNode())&&((d=this.editor.multiselection).start=d.start||this,d.end=r,u=this.editor._findTopLevelNodes(d.start,d.end),this.editor.select(u),r.focus("field")),A=!0):x&&w&&C&&((r=I._previousNode())&&r.parent&&(n=this.editor.getDomSelection(),i=(o=I.parent).childs[E.getIndex()+1]||o.append,s=I.getIndex(),a=r.getIndex(),l=o.getInternalPath(),c=r.parent.getInternalPath(),S.forEach(function(e){r.parent.moveBefore(e,r)}),this.focus(e.focusElement||this._getElementName(v)),this.editor._onAction("moveNodes",{count:S.length,fieldNames:S.map(k),oldParentPath:o.getInternalPath(),newParentPath:I.parent.getInternalPath(),oldIndex:i.getIndex(),newIndex:I.getIndex(),oldIndexRedo:s,newIndexRedo:a,oldParentPathRedo:l,newParentPathRedo:c,oldSelection:n,newSelection:this.editor.getDomSelection()})),A=!0):39===y?x&&!w?((m=this._nextElement(v))&&this.focus(this._getElementName(m)),A=!0):x&&w&&C&&(m=I.getDom().previousSibling)&&(r=e.getNodeFromTarget(m))&&r.parent&&!r.isVisible()&&(n=this.editor.getDomSelection(),i=(o=I.parent).childs[E.getIndex()+1]||o.append,s=I.getIndex(),a=r.getIndex(),l=o.getInternalPath(),c=r.parent.getInternalPath(),S.forEach(function(e){r.parent.moveBefore(e,r)}),this.focus(e.focusElement||this._getElementName(v)),this.editor._onAction("moveNodes",{count:S.length,fieldNames:S.map(k),oldParentPath:o.getInternalPath(),newParentPath:I.parent.getInternalPath(),oldIndex:i.getIndex(),newIndex:I.getIndex(),oldIndexRedo:s,newIndexRedo:a,oldParentPathRedo:l,newParentPathRedo:c,oldSelection:n,newSelection:this.editor.getDomSelection()})):40===y&&(x&&!w?((h=this._nextNode())&&(this.editor.deselect(!0),h.focus(e.focusElement||this._getElementName(v))),A=!0):!x&&b&&w&&C?((h=this._nextNode())&&((d=this.editor.multiselection).start=d.start||this,d.end=h,u=this.editor._findTopLevelNodes(d.start,d.end),this.editor.select(u),h.focus("field")),A=!0):x&&w&&C&&((g=(h=(h=(h=E.expanded?E.append?E.append._nextNode():void 0:E._nextNode())&&!h.isVisible()?h.parent.showMore:h)&&h instanceof T?E:h)&&(h._nextNode()||h.parent.append))&&g.parent&&(n=this.editor.getDomSelection(),i=(o=I.parent).childs[E.getIndex()+1]||o.append,s=I.getIndex(),a=g.getIndex(),l=o.getInternalPath(),c=g.parent.getInternalPath(),S.forEach(function(e){g.parent.moveBefore(e,g)}),this.focus(e.focusElement||this._getElementName(v)),this.editor._onAction("moveNodes",{count:S.length,fieldNames:S.map(k),oldParentPath:o.getInternalPath(),newParentPath:I.parent.getInternalPath(),oldParentPathRedo:l,newParentPathRedo:c,oldIndexRedo:s,newIndexRedo:a,oldIndex:i.getIndex(),newIndex:I.getIndex(),oldSelection:n,newSelection:this.editor.getDomSelection()})),A=!0)),A&&(t.preventDefault(),t.stopPropagation())}},{key:"_onExpand",value:function(e){var t,r,n;e&&(n=(r=(t=this.dom.tr.parentNode).parentNode).scrollTop,r.removeChild(t)),this.expanded?this.collapse(e):this.expand(e),e&&(r.appendChild(t),r.scrollTop=n),"function"==typeof this.editor.options.onExpand&&this.editor.options.onExpand({path:this.getPath(),isExpand:this.expanded,recursive:e})}},{key:"_showColorPicker",value:function(){var e,t;"function"==typeof this.editor.options.onColorPicker&&this.dom.color&&((e=this)._deleteDomColor(),e.updateDom(),t=(0,p.p)(this.dom.color,this.editor.getPopupAnchor()),this.editor.options.onColorPicker(t,this.value,function(t){"string"==typeof t&&t!==e.value&&(e._deleteDomColor(),e.value=t,e.updateDom(),e._debouncedOnChangeValue())}))}},{key:"getFieldNames",value:function(e){return"object"===this.type?this.childs.filter(function(t){return t!==e}).map(function(e){return e.field}):[]}},{key:"_onInsertBefore",value:function(t,r,n){var i=this.editor.getDomSelection();(t=new e(this.editor,{field:void 0!==t?t:"",value:void 0!==r?r:"",type:n})).expand(!0),r=this.getInternalPath(),this.parent.insertBefore(t,this),this.editor.highlighter.unhighlight(),t.focus("field"),n=this.editor.getDomSelection(),this.editor._onAction("insertBeforeNodes",{nodes:[t],paths:[t.getInternalPath()],beforePath:r,parentPath:this.parent.getInternalPath(),oldSelection:i,newSelection:n})}},{key:"_onInsertAfter",value:function(t,r,n){var i=this.editor.getDomSelection();(t=new e(this.editor,{field:void 0!==t?t:"",value:void 0!==r?r:"",type:n})).expand(!0),this.parent.insertAfter(t,this),this.editor.highlighter.unhighlight(),t.focus("field"),r=this.editor.getDomSelection(),this.editor._onAction("insertAfterNodes",{nodes:[t],paths:[t.getInternalPath()],afterPath:this.getInternalPath(),parentPath:this.parent.getInternalPath(),oldSelection:i,newSelection:r})}},{key:"_onAppend",value:function(t,r,n){var i=this.editor.getDomSelection();(t=new e(this.editor,{field:void 0!==t?t:"",value:void 0!==r?r:"",type:n})).expand(!0),this.parent.appendChild(t),this.editor.highlighter.unhighlight(),t.focus("field"),r=this.editor.getDomSelection(),this.editor._onAction("appendNodes",{nodes:[t],paths:[t.getInternalPath()],parentPath:this.parent.getInternalPath(),oldSelection:i,newSelection:r})}},{key:"_onChangeType",value:function(e){var t,r,n=this.type;e!==n&&(t=this.editor.getDomSelection(),this.changeType(e),r=this.editor.getDomSelection(),this.editor._onAction("changeType",{path:this.getInternalPath(),oldType:n,newType:e,oldSelection:t,newSelection:r}))}},{key:"sort",value:function(e,t){var r,n,i=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];"string"==typeof e&&(e=(0,f.parsePath)(e)),this._hasChilds()&&(this.hideChilds(),r=this.childs,this.childs=this.childs.concat(),n="desc"===t?-1:1,"object"===this.type?this.childs.sort(function(e,t){return n*h()(e.field,t.field)}):this.childs.sort(function(t,r){return t=t.getNestedChild(e),r=r.getNestedChild(e),t?r?(t=t.value,r=r.value,"string"!=typeof t&&"string"!=typeof r?r<t?n:t<r?-n:0:n*h()(t,r)):-n:n}),this._updateDomIndexes(),this.showChilds(),!0===i)&&this.editor._onAction("sort",{path:this.getInternalPath(),oldChilds:r,newChilds:this.childs})}},{key:"update",value:function(e){var t=this.getInternalValue();this.setValue(e),this.editor._onAction("transform",{path:this.getInternalPath(),oldValue:t,newValue:this.getInternalValue()})}},{key:"_detachFromDom",value:function(){var e=this.dom.tr?this.dom.tr.parentNode:void 0,t=(t=this.expanded?this.getAppendDom():this.getDom())&&t.parentNode?t.nextSibling:void 0;return this.hide({resetVisibleChilds:!1}),{table:e,nextTr:t}}},{key:"_attachToDom",value:function(e){e.table&&(e.nextTr?e.table.insertBefore(this.getDom(),e.nextTr):e.table.appendChild(this.getDom())),this.expanded&&this.showChilds()}},{key:"transform",value:function(e){if(this._hasChilds()){this.hideChilds();try{var t=this.getInternalValue(),r=this.getValue(),n=this.editor.options.executeQuery(r,e),i=(this.setValue(n),this.getInternalValue());this.editor._onAction("transform",{path:this.getInternalPath(),oldValue:t,newValue:i}),this.showChilds()}catch(e){this.showChilds(),this.editor._onError(e)}}}},{key:"extract",value:function(){this.editor.node.hideChilds(),this.hideChilds();try{var e=this.editor.node.getInternalValue(),t=(this.editor._setRoot(this),this.editor.node.getInternalValue());this.editor._onAction("transform",{path:this.editor.node.getInternalPath(),oldValue:e,newValue:t})}catch(e){this.editor._onError(e)}finally{this.updateDom({recurse:!0}),this.showChilds()}}},{key:"getNestedChild",value:function(e){for(var t=0,r=this;r&&t<e.length;)r=r.findChildByProperty(e[t]),t++;return r}},{key:"findChildByProperty",value:function(e){if("object"===this.type)return this.childs.find(function(t){return t.field===e})}},{key:"getAppendDom",value:function(){return this.append||(this.append=new T(this.editor),this.append.setParent(this)),this.append.getDom()}},{key:"getShowMoreDom",value:function(){return this.showMore||(this.showMore=new _(this.editor,this)),this.showMore.getDom()}},{key:"nextSibling",value:function(){var e=this.parent.childs.indexOf(this);return this.parent.childs[e+1]||this.parent.append}},{key:"_previousNode",value:function(){var t=null,r=this.getDom();if(r&&r.parentNode)for(var n=r;n=n.previousSibling,t=e.getNodeFromTarget(n),n&&t&&t instanceof T&&!t.isVisible(););return t}},{key:"_nextNode",value:function(){var t=null,r=this.getDom();if(r&&r.parentNode)for(var n=r;n=n.nextSibling,t=e.getNodeFromTarget(n),n&&t&&t instanceof T&&!t.isVisible(););return t}},{key:"_firstNode",value:function(){var t=null,r=this.getDom();return r&&r.parentNode&&(r=r.parentNode.firstChild,t=e.getNodeFromTarget(r)),t}},{key:"_lastNode",value:function(){var t=null,r=this.getDom();if(r&&r.parentNode){var n=r.parentNode.lastChild;for(t=e.getNodeFromTarget(n);n&&t&&!t.isVisible();)n=n.previousSibling,t=e.getNodeFromTarget(n)}return t}},{key:"_previousElement",value:function(e){var t=this.dom;switch(e){case t.value:if(this.fieldEditable)return t.field;case t.field:if(this._hasChilds())return t.expand;case t.expand:return t.menu;case t.menu:if(t.drag)return t.drag;default:return null}}},{key:"_nextElement",value:function(e){var t=this.dom;switch(e){case t.drag:return t.menu;case t.menu:if(this._hasChilds())return t.expand;case t.expand:if(this.fieldEditable)return t.field;case t.field:if(!this._hasChilds())return t.value;default:return null}}},{key:"_getElementName",value:function(e){var t=this;return Object.keys(this.dom).find(function(r){return t.dom[r]===e})}},{key:"_hasChilds",value:function(){return"array"===this.type||"object"===this.type}},{key:"addTemplates",value:function(e,t){var r=this,n=r.editor.options.templates;null!=n&&(n.length&&e.push({type:"separator"}),n.forEach(function(n){e.push({text:n.text,className:n.className||"jsoneditor-type-object",title:n.title,click:(t?function(e,t){r._onAppend(e,t)}:function(e,t){r._onInsertBefore(e,t)}).bind(this,n.field,n.value)})}))}},{key:"showContextMenu",value:function(t,r){var n,o=this,s=[];this.editable.value&&s.push({text:(0,c.Tl)("type"),title:(0,c.Tl)("typeTitle"),className:"jsoneditor-type-"+this.type,submenu:[{text:(0,c.Tl)("auto"),className:"jsoneditor-type-auto"+("auto"===this.type?" jsoneditor-selected":""),title:(0,c.Tl)("autoType"),click:function(){o._onChangeType("auto")}},{text:(0,c.Tl)("array"),className:"jsoneditor-type-array"+("array"===this.type?" jsoneditor-selected":""),title:(0,c.Tl)("arrayType"),click:function(){o._onChangeType("array")}},{text:(0,c.Tl)("object"),className:"jsoneditor-type-object"+("object"===this.type?" jsoneditor-selected":""),title:(0,c.Tl)("objectType"),click:function(){o._onChangeType("object")}},{text:(0,c.Tl)("string"),className:"jsoneditor-type-string"+("string"===this.type?" jsoneditor-selected":""),title:(0,c.Tl)("stringType"),click:function(){o._onChangeType("string")}}]}),this._hasChilds()&&(this.editor.options.enableSort&&s.push({text:(0,c.Tl)("sort"),title:(0,c.Tl)("sortTitle",{type:this.type}),className:"jsoneditor-sort-asc",click:function(){o.showSortModal()}}),this.editor.options.enableTransform&&s.push({text:(0,c.Tl)("transform"),title:(0,c.Tl)("transformTitle",{type:this.type}),className:"jsoneditor-transform",click:function(){o.showTransformModal()}}),this.parent)&&s.push({text:(0,c.Tl)("extract"),title:(0,c.Tl)("extractTitle",{type:this.type}),className:"jsoneditor-extract",click:function(){o.extract()}}),this.parent&&this.parent._hasChilds()&&(s.length&&s.push({type:"separator"}),n=o.parent.childs,o===n[n.length-1]&&(n=[{text:(0,c.Tl)("auto"),className:"jsoneditor-type-auto",title:(0,c.Tl)("autoType"),click:function(){o._onAppend("","","auto")}},{text:(0,c.Tl)("array"),className:"jsoneditor-type-array",title:(0,c.Tl)("arrayType"),click:function(){o._onAppend("",[])}},{text:(0,c.Tl)("object"),className:"jsoneditor-type-object",title:(0,c.Tl)("objectType"),click:function(){o._onAppend("",{})}},{text:(0,c.Tl)("string"),className:"jsoneditor-type-string",title:(0,c.Tl)("stringType"),click:function(){o._onAppend("","","string")}}],o.addTemplates(n,!0),s.push({text:(0,c.Tl)("appendText"),title:(0,c.Tl)("appendTitle"),submenuTitle:(0,c.Tl)("appendSubmenuTitle"),className:"jsoneditor-append",click:function(){o._onAppend("","","auto")},submenu:n})),n=[{text:(0,c.Tl)("auto"),className:"jsoneditor-type-auto",title:(0,c.Tl)("autoType"),click:function(){o._onInsertBefore("","","auto")}},{text:(0,c.Tl)("array"),className:"jsoneditor-type-array",title:(0,c.Tl)("arrayType"),click:function(){o._onInsertBefore("",[])}},{text:(0,c.Tl)("object"),className:"jsoneditor-type-object",title:(0,c.Tl)("objectType"),click:function(){o._onInsertBefore("",{})}},{text:(0,c.Tl)("string"),className:"jsoneditor-type-string",title:(0,c.Tl)("stringType"),click:function(){o._onInsertBefore("","","string")}}],o.addTemplates(n,!1),s.push({text:(0,c.Tl)("insert"),title:(0,c.Tl)("insertTitle"),submenuTitle:(0,c.Tl)("insertSub"),className:"jsoneditor-insert",click:function(){o._onInsertBefore("","","auto")},submenu:n}),this.editable.field)&&(s.push({text:(0,c.Tl)("duplicateText"),title:(0,c.Tl)("duplicateField"),className:"jsoneditor-duplicate",click:function(){e.onDuplicate(o)}}),s.push({text:(0,c.Tl)("removeText"),title:(0,c.Tl)("removeField"),className:"jsoneditor-remove",click:function(){e.onRemove(o)}})),this.editor.options.onCreateMenu&&(n=o.getPath(),s=this.editor.options.onCreateMenu(s,{type:"single",path:n,paths:[n]})),new i.t(s,{close:r}).show(t,this.editor.getPopupAnchor())}},{key:"showSortModal",value:function(){var e=this,t=this.editor.options.modalAnchor||y.ai,r=this.getValue();(0,m.showSortModal)(t,r,function(t){var r=t.path;r=(0,f.parsePath)(r),e.sortedBy=t,e.sort(r,t.direction)},e.sortedBy)}},{key:"showTransformModal",value:function(){var e=this,t=(i=this.editor.options).modalAnchor,r=i.createQuery,n=i.executeQuery,i=i.queryDescription,o=this.getValue();(0,g.showTransformModal)({container:t||y.ai,json:o,queryDescription:i,createQuery:r,executeQuery:n,onTransform:function(t){e.transform(t)}})}},{key:"_getType",value:function(e){return e instanceof Array?"array":e instanceof Object?"object":"string"==typeof e&&"string"!=typeof(0,f.parseString)(e)?"string":"auto"}},{key:"_escapeHTML",value:function(e){return"string"!=typeof e?String(e):(e=String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/ {2}/g," ").replace(/^ /," ").replace(/ $/," "),e=(e=JSON.stringify(e)).substring(1,e.length-1),!0===this.editor.options.escapeUnicode?(0,f.escapeUnicodeChars)(e):e)}},{key:"_unescapeHTML",value:function(e){return e='"'+this._escapeJSON(e)+'"',(0,f.parse)(e).replace(/</g,"<").replace(/>/g,">").replace(/ |\u00A0/g," ").replace(/&/g,"&")}},{key:"_escapeJSON",value:function(e){for(var t="",r=0;r<e.length;){var n=e.charAt(r);"\n"===n?t+="\\n":"\\"===n?(t+=n,r++,""!==(n=e.charAt(r))&&-1!=='"\\/bfnrtu'.indexOf(n)||(t+="\\"),t+=n):t+='"'===n?'\\"':n,r++}return t}},{key:"updateNodeName",value:function(){var e=this.childs?this.childs.length:0;if("object"===this.type||"array"===this.type){if(this.editor.options.onNodeName)try{var t=this.getValue.bind(this),r=this.editor.options.onNodeName({path:this.getPath(),size:e,type:this.type,get value(){return t()}})}catch(e){console.error("Error in onNodeName callback: ",e)}this.dom.value.textContent="object"===this.type?"{"+(r||e)+"}":"["+(r||e)+"]"}}},{key:"recursivelyUpdateNodeName",value:function(){if(this.expanded&&(this.updateNodeName(),"undefined"!==this.childs))for(var e in this.childs)this.childs[e].recursivelyUpdateNodeName()}}])&&A(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r})(),S=(C.prototype.DEBOUNCE_INTERVAL=150,C.prototype.MAX_SEARCH_RESULTS=999,100);function I(e){return e.getInternalPath()}function k(e){return e.getField()}function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}C.focusElement=void 0,C.select=function(e){setTimeout(function(){(0,f.selectContentEditable)(e)},0)},C.onDragStart=function(e,t){if(!Array.isArray(e))return C.onDragStart([e],t);var r,n,i,o,s;0!==e.length&&(n=e[e.length-1],i=(r=e[0]).parent,s=C.getNodeFromTarget(t.target),o=r.editor,s=(0,f.getAbsoluteTop)(s.dom.tr)-(0,f.getAbsoluteTop)(r.dom.tr),o.mousemove||(o.mousemove=(0,f.addEventListener)(t.view,"mousemove",function(t){C.onDrag(e,t)})),o.mouseup||(o.mouseup=(0,f.addEventListener)(t.view,"mouseup",function(t){C.onDragEnd(e,t)})),o.highlighter.lock(),o.drag={oldCursor:document.body.style.cursor,oldSelection:o.getDomSelection(),oldPaths:e.map(I),oldParent:i,oldNextNode:i.childs[n.getIndex()+1]||i.append,oldParentPathRedo:i.getInternalPath(),oldIndexRedo:r.getIndex(),mouseX:t.pageX,offsetY:s,level:r.getLevel()},document.body.style.cursor="move",t.preventDefault())},C.onDrag=function(e,t){if(!Array.isArray(e))return C.onDrag([e],t);if(0!==e.length){var r,n,i,o,s,a=e[0].editor,l=t.pageY-a.drag.offsetY,c=t.pageX,u=!1,d=e[0],h=d.dom.tr,p=(0,f.getAbsoluteTop)(h),m=h.offsetHeight;if(l<p){for(b=h;b=b.previousSibling,w=C.getNodeFromTarget(b),i=b?(0,f.getAbsoluteTop)(b):0,b&&l<i;);(w=w&&!w.parent?void 0:w)||(b=(h=h.parentNode.firstChild)?h.nextSibling:void 0,(w=C.getNodeFromTarget(b))===d&&(w=void 0)),!(w=w&&w.isVisible()&&(i=(b=w.dom.tr)?(0,f.getAbsoluteTop)(b):0)+m<l?void 0:w)||!1!==a.options.limitDragging&&w.parent!==e[0].parent||(e.forEach(function(e){w.parent.moveBefore(e,w)}),u=!0)}else{var g=e[e.length-1];if(m=(h=g.expanded&&g.append?g.append.getDom():g.dom.tr)?h.nextSibling:void 0){for(o=(0,f.getAbsoluteTop)(m),r=m;n=C.getNodeFromTarget(r),r&&(s=r.nextSibling?(0,f.getAbsoluteTop)(r.nextSibling):0,s=r?s-o:0,n&&n.parent.childs.length===e.length&&n.parent.childs[e.length-1]===g&&(p+=27),r=r.nextSibling),r&&p+s<l;);if(n&&n.parent){m=c-a.drag.mouseX,m=Math.round(m/24/2);for(var y=a.drag.level+m,v=n.getLevel(),b=n.dom.tr&&n.dom.tr.previousSibling;v<y&&b;){var w=C.getNodeFromTarget(b),x=e.some(function(e){return e===w||w.isDescendantOf(e)});if(!x){if(!(w instanceof T))break;if((x=w.parent.childs).length===e.length&&x[e.length-1]===g)break;v=(n=C.getNodeFromTarget(b)).getLevel()}b=b.previousSibling}(n=n instanceof T&&!n.isVisible()&&n.parent.showMore.isVisible()?n._nextNode():n)&&(!1===a.options.limitDragging||n.parent===e[0].parent)&&n.dom.tr&&n.dom.tr!==h.nextSibling&&(e.forEach(function(e){n.parent.moveBefore(e,n)}),u=!0)}}}u&&(a.drag.mouseX=c,a.drag.level=d.getLevel()),a.startAutoScroll(l),t.preventDefault()}},C.onDragEnd=function(e,t){if(!Array.isArray(e))return C.onDrag([e],t);var r,n,i,o,s,a,l,c,u;0!==e.length&&(r=(a=e[0]).editor,a&&a.dom.menu&&a.dom.menu.focus(),n=r.drag.oldParent.getInternalPath(),i=a.parent.getInternalPath(),o=r.drag.oldParent===a.parent,s=r.drag.oldNextNode.getIndex(),a=a.getIndex(),l=r.drag.oldParentPathRedo,c=r.drag.oldIndexRedo,u=o&&c<a?a+e.length:a,o&&c===a||r._onAction("moveNodes",{count:e.length,fieldNames:e.map(k),oldParentPath:n,newParentPath:i,oldIndex:s,newIndex:a,oldIndexRedo:c,newIndexRedo:u,oldParentPathRedo:l,newParentPathRedo:null,oldSelection:r.drag.oldSelection,newSelection:r.getDomSelection()}),document.body.style.cursor=r.drag.oldCursor,r.highlighter.unlock(),e.forEach(function(e){e.updateDom(),t.target!==e.dom.drag&&t.target!==e.dom.menu&&r.highlighter.unhighlight()}),delete r.drag,r.mousemove&&((0,f.removeEventListener)(t.view,"mousemove",r.mousemove),delete r.mousemove),r.mouseup&&((0,f.removeEventListener)(t.view,"mouseup",r.mouseup),delete r.mouseup),r.stopAutoScroll(),t.preventDefault())},C._findEnum=function(e){return e.enum?e.enum:(e=e.oneOf||e.anyOf||e.allOf)&&0<(e=e.filter(function(e){return e.enum})).length?e[0].enum:null},C._findOneSchema=function(e,t,r,n){var i=r.slice(1,r.length),o=r[0];if("object"===x(n)&&"$ref"in n&&"string"==typeof n.$ref){var s=n.$ref;if(s in t)n=t[s];else{if(!s.startsWith("#/")){if(1===(null==(r=s.match(/#\//g))?void 0:r.length)){var a,l=(r=function(e,t){return(e=>{if(Array.isArray(e))return e})(e)||((e,t)=>{var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}})(e,t)||b(e,t)||(()=>{throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}(s.split("#/"),2))[0];if(r=r[1],l in t)return l=t[l],r={$ref:"#/".concat(r)},(a=[]).push(o),0<i.length&&a.push.apply(a,function(e){return(e=>{if(Array.isArray(e))return w(e)})(e)||(e=>{if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)})(e)||b(e)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}(i)),C._findSchema(l,t,a,r)}throw Error("Unable to resolve reference ".concat(s))}n=e;var c,u=v(s.substring(2).split("/"));try{for(u.s();!(c=u.n()).done;){var d=c.value;if(!(d in n))throw Error("Unable to resolve reference ".concat(s));n=n[d]}}catch(e){u.e(e)}finally{u.f()}}}if(void 0===o)return n;if("string"!=typeof o)return"number"==typeof o&&"object"===x(n.items)&&null!==n.items?(n=n.items,C._findSchema(e,t,i,n)):null;if("object"===x(n.properties)&&null!==n.properties&&o in n.properties)return n=n.properties[o],C._findSchema(e,t,i,n);if("object"===x(n.patternProperties)&&null!==n.patternProperties)for(var h in n.patternProperties)if(o.match(h))return n=n.patternProperties[h],C._findSchema(e,t,i,n);return"object"===x(n.additionalProperties)?(n=n.additionalProperties,C._findSchema(e,t,i,n)):null},C._findSchema=function(e,t,r){for(var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:e,i=[n],o=0,s=[n.oneOf,n.anyOf,n.allOf];o<s.length;o++){var a=s[o];Array.isArray(a)&&(i=i.concat(a))}var l,c=null,u=v(i);try{for(u.s();!(l=u.n()).done;){var d=l.value,h=C._findOneSchema(e,t,r,d);if(!0===h)c=!0;else if(null!==h)return h}}catch(e){u.e(e)}finally{u.f()}return c},C.onRemove=function(e){if(!Array.isArray(e))return C.onRemove([e]);var t,r,n,i,o,s;e&&0<e.length&&(t=(n=e[0]).parent,r=n.editor,n=n.getIndex(),r.highlighter.unhighlight(),i=r.getDomSelection(),C.blurNodes(e),o=r.getDomSelection(),s=e.map(I),e.forEach(function(e){e.parent._remove(e)}),r._onAction("removeNodes",{nodes:e,paths:s,parentPath:t.getInternalPath(),index:n,oldSelection:i,newSelection:o}))},C.onDuplicate=function(e){if(!Array.isArray(e))return C.onDuplicate([e]);var t,r,n,i,o,s,a;e&&0<e.length&&(t=e[e.length-1],r=t.parent,(n=t.editor).deselect(n.multiselection.nodes),i=n.getDomSelection(),o=t,s=e.map(function(e){var t,n=e.clone();return"object"===e.parent.type&&(t=e.parent.getFieldNames(),n.field=(0,f.findUniqueName)(e.field,t)),r.insertAfter(n,o),o=n}),1===e.length?"object"===s[0].parent.type?(s[0].dom.field.innerHTML=e[0]._escapeHTML(e[0].field),s[0].focus("field")):s[0].focus():n.select(s),a=n.getDomSelection(),n._onAction("duplicateNodes",{paths:e.map(I),clonePaths:s.map(I),afterPath:t.getInternalPath(),parentPath:r.getInternalPath(),oldSelection:i,newSelection:a}))},C.getNodeFromTarget=function(e){for(;e;){if(e.node)return e.node;e=e.parentNode}},C.targetIsColorPicker=function(e){var t=C.getNodeFromTarget(e);if(t)for(var r=e&&e.parentNode;r;){if(r===t.dom.color)return!0;r=r.parentNode}return!1},C.blurNodes=function(e){var t,r;Array.isArray(e)?(t=(r=e[0]).parent,r=r.getIndex(),(t.childs[r+e.length]?t.childs[r+e.length]:t.childs[r-1]||t).focus()):C.blurNodes([e])},($.prototype=new C).getDom=function(){var e=this.dom;if(e.tr)return e.tr;this._updateEditability();var t=document.createElement("tr"),r=(t.className="jsoneditor-append",t.node=this,e.tr=t,"tree"===this.editor.options.mode&&(e.tdDrag=document.createElement("td"),n=document.createElement("td"),e.tdMenu=n,(r=document.createElement("button")).type="button",r.className="jsoneditor-button jsoneditor-contextmenu-button",r.title="Click to open the actions menu (Ctrl+M)",e.menu=r,n.appendChild(e.menu)),document.createElement("td")),n=document.createElement("div");return n.appendChild(document.createTextNode("("+(0,c.Tl)("empty")+")")),n.className="jsoneditor-readonly",r.appendChild(n),e.td=r,e.text=n,this.updateDom(),t},$.prototype.getPath=function(){return null},$.prototype.getIndex=function(){return null},$.prototype.updateDom=function(e){var t=this.dom,r=t.td,n=(r&&(r.style.paddingLeft=24*this.getLevel()+26+"px"),(n=t.text)&&(n.firstChild.nodeValue="("+(0,c.Tl)("empty")+" "+this.parent.type+")"),t.tr);this.isVisible()?t.tr.firstChild||(t.tdDrag&&n.appendChild(t.tdDrag),t.tdMenu&&n.appendChild(t.tdMenu),n.appendChild(r)):t.tr.firstChild&&(t.tdDrag&&n.removeChild(t.tdDrag),t.tdMenu&&n.removeChild(t.tdMenu),n.removeChild(r))},$.prototype.isVisible=function(){return 0===this.parent.childs.length},$.prototype.showContextMenu=function(e,t){var r,n=this,o=[{text:(0,c.Tl)("auto"),className:"jsoneditor-type-auto",title:(0,c.Tl)("autoType"),click:function(){n._onAppend("","","auto")}},{text:(0,c.Tl)("array"),className:"jsoneditor-type-array",title:(0,c.Tl)("arrayType"),click:function(){n._onAppend("",[])}},{text:(0,c.Tl)("object"),className:"jsoneditor-type-object",title:(0,c.Tl)("objectType"),click:function(){n._onAppend("",{})}},{text:(0,c.Tl)("string"),className:"jsoneditor-type-string",title:(0,c.Tl)("stringType"),click:function(){n._onAppend("","","string")}}];n.addTemplates(o,!0),o=[{text:(0,c.Tl)("appendText"),title:(0,c.Tl)("appendTitleAuto"),submenuTitle:(0,c.Tl)("appendSubmenuTitle"),className:"jsoneditor-insert",click:function(){n._onAppend("","","auto")},submenu:o}],this.editor.options.onCreateMenu&&(r=n.parent.getPath(),o=this.editor.options.onCreateMenu(o,{type:"append",path:r,paths:[r]})),new i.t(o,{close:t}).show(e,this.editor.getPopupAnchor())},$.prototype.onEvent=function(e){var t,r=e.type,n=e.target||e.srcElement,i=this.dom;n===i.menu&&("mouseover"===r?this.editor.highlighter.highlight(this.parent):"mouseout"===r&&this.editor.highlighter.unhighlight()),"click"===r&&n===i.menu&&((t=this.editor.highlighter).highlight(this.parent),t.lock(),(0,f.addClassName)(i.menu,"jsoneditor-selected"),this.showContextMenu(i.menu,function(){(0,f.removeClassName)(i.menu,"jsoneditor-selected"),t.unlock(),t.unhighlight()})),"keydown"===r&&this.onKeyDown(e)};var T=$;function $(e){this.editor=e,this.dom={}}(R.prototype=new C).getDom=function(){var e,t,r,n,i,o;return this.dom.tr||(this._updateEditability(),this.dom.tr||(t=(e=this).parent,(i=document.createElement("a")).appendChild(document.createTextNode((0,c.Tl)("showMore"))),i.href="#",i.onclick=function(r){return t.visibleChilds=Math.floor(t.visibleChilds/t.getMaxVisibleChilds()+1)*t.getMaxVisibleChilds(),e.updateDom(),t.showChilds(),r.preventDefault(),!1},(o=document.createElement("a")).appendChild(document.createTextNode((0,c.Tl)("showAll"))),o.href="#",o.onclick=function(r){return t.visibleChilds=1/0,e.updateDom(),t.showChilds(),r.preventDefault(),!1},r=document.createElement("div"),n=document.createTextNode(this._getShowMoreText()),r.className="jsoneditor-show-more",r.appendChild(n),r.appendChild(i),r.appendChild(document.createTextNode(". ")),r.appendChild(o),r.appendChild(document.createTextNode(". ")),(i=document.createElement("td")).appendChild(r),o=document.createElement("tr"),"tree"===this.editor.options.mode&&(o.appendChild(document.createElement("td")),o.appendChild(document.createElement("td"))),o.appendChild(i),o.className="jsoneditor-show-more",this.dom.tr=o,this.dom.moreContents=r,this.dom.moreText=n),this.updateDom()),this.dom.tr},R.prototype.updateDom=function(e){var t;this.isVisible()?(this.dom.tr.node=this.parent.childs[this.parent.visibleChilds],this.dom.tr.parentNode||(t=this.parent._getNextTr())&&t.parentNode.insertBefore(this.dom.tr,t),this.dom.moreText.nodeValue=this._getShowMoreText(),this.dom.moreContents.style.marginLeft=24*(this.getLevel()+1)+"px"):this.dom.tr&&this.dom.tr.parentNode&&this.dom.tr.parentNode.removeChild(this.dom.tr)},R.prototype._getShowMoreText=function(){return(0,c.Tl)("showMoreStatus",{visibleChilds:this.parent.visibleChilds,totalChilds:this.parent.childs.length})+" "},R.prototype.isVisible=function(){return this.parent.expanded&&this.parent.childs.length>this.parent.visibleChilds},R.prototype.onEvent=function(e){"keydown"===e.type&&this.onKeyDown(e)};var _=R;function R(e,t){this.editor=e,this.parent=t,this.dom={}}function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(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,(e=>(e=(e=>{if("object"!=O(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);if("object"!=O(t=t.call(e,"string")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")})(e),"symbol"==O(e)?e:e+""))(n.key),n)}}var M=(()=>{return e=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");function r(e){return t.node.findNodeByInternalPath(e)}this.editor=t,this.history=[],this.index=-1,this.clear(),this.actions={editField:{undo:function(e){r(e.parentPath).childs[e.index].updateField(e.oldValue)},redo:function(e){r(e.parentPath).childs[e.index].updateField(e.newValue)}},editValue:{undo:function(e){r(e.path).updateValue(e.oldValue)},redo:function(e){r(e.path).updateValue(e.newValue)}},changeType:{undo:function(e){r(e.path).changeType(e.oldType)},redo:function(e){r(e.path).changeType(e.newType)}},appendNodes:{undo:function(e){var t=r(e.parentPath);e.paths.map(r).forEach(function(e){t.removeChild(e)})},redo:function(e){var t=r(e.parentPath);e.nodes.forEach(function(e){t.appendChild(e)})}},insertBeforeNodes:{undo:function(e){var t=r(e.parentPath);e.paths.map(r).forEach(function(e){t.removeChild(e)})},redo:function(e){var t=r(e.parentPath),n=r(e.beforePath);e.nodes.forEach(function(e){t.insertBefore(e,n)})}},insertAfterNodes:{undo:function(e){var t=r(e.parentPath);e.paths.map(r).forEach(function(e){t.removeChild(e)})},redo:function(e){var t=r(e.parentPath),n=r(e.afterPath);e.nodes.forEach(function(e){t.insertAfter(e,n),n=e})}},removeNodes:{undo:function(e){var t=r(e.parentPath),n=t.childs[e.index]||t.append;e.nodes.forEach(function(e){t.insertBefore(e,n)})},redo:function(e){var t=r(e.parentPath);e.paths.map(r).forEach(function(e){t.removeChild(e)})}},duplicateNodes:{undo:function(e){var t=r(e.parentPath);e.clonePaths.map(r).forEach(function(e){t.removeChild(e)})},redo:function(e){var t=r(e.parentPath),n=r(e.afterPath);e.paths.map(r).forEach(function(e){var r,i=e.clone();"object"===t.type&&(r=t.getFieldNames(),i.field=(0,f.findUniqueName)(e.field,r)),t.insertAfter(i,n),n=i})}},moveNodes:{undo:function(e){var t=r(e.oldParentPath),n=r(e.newParentPath),i=t.childs[e.oldIndex]||t.append;n.childs.slice(e.newIndex,e.newIndex+e.count).forEach(function(r,n){r.field=e.fieldNames[n],t.moveBefore(r,i)}),null===e.newParentPathRedo&&(e.newParentPathRedo=n.getInternalPath())},redo:function(e){var t=r(e.oldParentPathRedo),n=r(e.newParentPathRedo),i=n.childs[e.newIndexRedo]||n.append;t.childs.slice(e.oldIndexRedo,e.oldIndexRedo+e.count).forEach(function(t,r){t.field=e.fieldNames[r],n.moveBefore(t,i)})}},sort:{undo:function(e){var t=r(e.path);t.hideChilds(),t.childs=e.oldChilds,t.updateDom({updateIndexes:!0}),t.showChilds()},redo:function(e){var t=r(e.path);t.hideChilds(),t.childs=e.newChilds,t.updateDom({updateIndexes:!0}),t.showChilds()}},transform:{undo:function(e){r(e.path).setInternalValue(e.oldValue)},redo:function(e){r(e.path).setInternalValue(e.newValue)}}}},(t=[{key:"onChange",value:function(){}},{key:"add",value:function(e,t){this.index++,this.history[this.index]={action:e,params:t,timestamp:new Date},this.index<this.history.length-1&&this.history.splice(this.index+1,this.history.length-this.index-1),this.onChange()}},{key:"clear",value:function(){this.history=[],this.index=-1,this.onChange()}},{key:"canUndo",value:function(){return 0<=this.index}},{key:"canRedo",value:function(){return this.index<this.history.length-1}},{key:"undo",value:function(){if(this.canUndo()){var e=this.history[this.index];if(e){var t=this.actions[e.action];if(t&&t.undo){if(t.undo(e.params),e.params.oldSelection)try{this.editor.setDomSelection(e.params.oldSelection)}catch(e){console.error(e)}}else console.error(new Error('unknown action "'+e.action+'"'))}this.index--,this.onChange()}}},{key:"redo",value:function(){if(this.canRedo()){this.index++;var e=this.history[this.index];if(e){var t=this.actions[e.action];if(t&&t.redo){if(t.redo(e.params),e.params.newSelection)try{this.editor.setDomSelection(e.params.newSelection)}catch(e){console.error(e)}}else console.error(new Error('unknown action "'+e.action+'"'))}this.onChange()}}},{key:"destroy",value:function(){this.editor=null,this.history=[],this.index=-1}}])&&P(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t})();function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(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,(e=>(e=(e=>{if("object"!=L(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);if("object"!=L(t=t.call(e,"string")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")})(e),"symbol"==L(e)?e:e+""))(n.key),n)}}var N=(()=>{return e=function e(t,r){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var n=this,i=(this.editor=t,this.timeout=void 0,this.delay=200,this.lastText=void 0,this.results=null,this.dom={},this.dom.container=r,t=document.createElement("div"),(this.dom.wrapper=t).className="jsoneditor-search",r.appendChild(t),r=document.createElement("div"),(this.dom.results=r).className="jsoneditor-results",t.appendChild(r),r=document.createElement("div"),((this.dom.input=r).className="jsoneditor-frame",r.title=(0,c.Tl)("searchTitle"),t.appendChild(r),t=document.createElement("button")).type="button",t.className="jsoneditor-refresh",r.appendChild(t),document.createElement("input"));((i.type="text",(this.dom.search=i).oninput=function(e){n._onDelayedSearch(e)},i.onchange=function(e){n._onSearch()},i.onkeydown=function(e){n._onKeyDown(e)},i.onkeyup=function(e){n._onKeyUp(e)},t.onclick=function(e){i.select()},r.appendChild(i),t=document.createElement("button")).type="button",t.title=(0,c.Tl)("searchNextResultTitle"),t.className="jsoneditor-next",t.onclick=function(){n.next()},r.appendChild(t),t=document.createElement("button")).type="button",t.title=(0,c.Tl)("searchPreviousResultTitle"),t.className="jsoneditor-previous",t.onclick=function(){n.previous()},r.appendChild(t)},(t=[{key:"next",value:function(e){var t;this.results&&((t=null!==this.resultIndex?this.resultIndex+1:0)>this.results.length-1&&(t=0),this._setActiveResult(t,e))}},{key:"previous",value:function(e){var t,r;this.results&&(t=this.results.length-1,r=null!==this.resultIndex?this.resultIndex-1:t,this._setActiveResult(r=r<0?t:r,e))}},{key:"_setActiveResult",value:function(e,t){var r,n,i;this.activeResult&&(r=this.activeResult.node,"field"===this.activeResult.elem?delete r.searchFieldActive:delete r.searchValueActive,r.updateDom()),this.results&&this.results[e]?(this.resultIndex=e,n=this.results[this.resultIndex].node,"field"===(i=this.results[this.resultIndex].elem)?n.searchFieldActive=!0:n.searchValueActive=!0,this.activeResult=this.results[this.resultIndex],n.updateDom(),n.scrollTo(function(){t&&n.focus(i)})):(this.resultIndex=void 0,this.activeResult=void 0)}},{key:"_clearDelay",value:function(){void 0!==this.timeout&&(clearTimeout(this.timeout),delete this.timeout)}},{key:"_onDelayedSearch",value:function(e){this._clearDelay();var t=this;this.timeout=setTimeout(function(e){t._onSearch()},this.delay)}},{key:"_onSearch",value:function(e){var t;if(this._clearDelay(),(t=0<(t=this.dom.search.value).length?t:void 0)!==this.lastText||e){this.lastText=t,this.results=this.editor.search(t),e=this.results[0]?this.results[0].node.MAX_SEARCH_RESULTS:1/0;var r=0;if(this.activeResult)for(var n=0;n<this.results.length;n++)if(this.results[n].node===this.activeResult.node){r=n;break}this._setActiveResult(r,!1),void 0!==t?(t=this.results.length,this.dom.results.textContent=0===t?"no results":1===t?"1 result":e<t?e+"+ results":t+" results"):this.dom.results.textContent=""}}},{key:"_onKeyDown",value:function(e){var t=e.which;27===t?(this.dom.search.value="",this._onSearch(),e.preventDefault(),e.stopPropagation()):13===t&&(e.ctrlKey?this._onSearch(!0):e.shiftKey?this.previous():this.next(),e.preventDefault(),e.stopPropagation())}},{key:"_onKeyUp",value:function(e){var t=e.keyCode;27!==t&&13!==t&&this._onDelayedSearch(e)}},{key:"clear",value:function(){this.dom.search.value="",this._onSearch()}},{key:"forceSearch",value:function(){this._onSearch(!0)}},{key:"isEmpty",value:function(){return""===this.dom.search.value}},{key:"destroy",value:function(){this.editor=null,this.dom.container.removeChild(this.dom.wrapper),this.dom=null,this.results=null,this.activeResult=null,this._clearDelay()}}])&&j(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t})();function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(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,(e=>(e=(e=>{if("object"!=F(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);if("object"!=F(t=t.call(e,"string")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")})(e),"symbol"==F(e)?e:e+""))(n.key),n)}}var B=(()=>{return e=function e(t,r){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");t&&(this.root=r,this.path=document.createElement("div"),this.path.className="jsoneditor-treepath",this.path.setAttribute("tabindex",0),this.contentMenuClicked=!1,t.appendChild(this.path),this.reset())},(t=[{key:"reset",value:function(){this.path.textContent=(0,c.Tl)("selectNode")}},{key:"setPath",value:function(e){var t=this;this.path.textContent="",e&&e.length&&e.forEach(function(r,n){var o,s=document.createElement("span");s.className="jsoneditor-treepath-element",s.innerText=r.name,s.onclick=function(e){this.selectionCallback&&this.selectionCallback(e)}.bind(t,r),t.path.appendChild(s),r.children.length&&((o=document.createElement("span")).className="jsoneditor-treepath-seperator",o.textContent="►",o.onclick=function(){t.contentMenuClicked=!0;var s=[];r.children.forEach(function(i){s.push({text:i.name,className:"jsoneditor-type-modes"+(e[n+1]+1&&e[n+1].name===i.name?" jsoneditor-selected":""),click:function(e,t){this.contextMenuCallback&&this.contextMenuCallback(e,t)}.bind(t,r,i.name)})}),new i.t(s,{limitHeight:!0}).show(o,t.root,!0)},t.path.appendChild(o)),n===e.length-1&&(s=(o||s).getBoundingClientRect().right,t.path.offsetWidth<s&&(t.path.scrollLeft=s),t.path.scrollLeft)&&((s=document.createElement("span")).className="jsoneditor-treepath-show-all-btn",s.title="show all path",s.textContent="...",s.onclick=function(e){(t.contentMenuClicked=!1,f.addClassName)(t.path,"show-all"),t.path.style.width=t.path.parentNode.getBoundingClientRect().width-10+"px",t.path.onblur=function(){t.contentMenuClicked?(t.contentMenuClicked=!1,t.path.focus()):((0,f.removeClassName)(t.path,"show-all"),t.path.onblur=void 0,t.path.style.width="",t.setPath(e))}}.bind(t,e),t.path.insertBefore(s,t.path.firstChild))})}},{key:"onSectionSelected",value:function(e){"function"==typeof e&&(this.selectionCallback=e)}},{key:"onContextMenuItemSelected",value:function(e){"function"==typeof e&&(this.contextMenuCallback=e)}}])&&D(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t})(),z=(t=r(1746),r.n(t)),W=((r={}).create=function(e,t){if(!e)throw new Error("No container element provided.");function r(e){var t,r;document.createRange?((t=document.createRange()).selectNodeContents(e),t.collapse(!1),(r=window.getSelection()).removeAllRanges(),r.addRange(t)):document.selection&&((t=document.body.createTextRange()).moveToElementText(e),t.collapse(!1),t.select())}function i(e){return void 0===u&&((u=document.createElement("span")).style.visibility="hidden",u.style.position="fixed",u.style.outline="0",u.style.margin="0",u.style.padding="0",u.style.border="0",u.style.left="0",u.style.whiteSpace="pre",u.style.fontSize=h,u.style.fontFamily=p,u.style.fontWeight="normal",document.body.appendChild(u)),u.textContent=e,u.getBoundingClientRect().right}function o(){this.style.backgroundColor="#ddd"}function s(){this.style.backgroundColor=""}function a(){w.hide(),w.onmouseselection(this.__hint,w.rs)}var c,u,d,h,p,f,m,g,y,v,b,w,x,A,C,S;this.container=e,this.dom={},this.highlighter=new l,this.selection=void 0,this.multiselection={nodes:[]},this.validateSchema=null,this.validationSequence=0,this.errorNodes=[],this.lastSchemaErrors=void 0,this.node=null,this.focusTarget=null,this._setOptions(t),t.autocomplete&&(this.autocomplete=((c=(c=t.autocomplete)||{}).filter=c.filter||"start",c.trigger=c.trigger||"keydown",c.confirmKeys=c.confirmKeys||[39,35,9],c.caseSensitive=c.caseSensitive||!1,p=h="",(f=document.createElement("div")).style.position="relative",f.style.outline="0",f.style.border="0",f.style.margin="0",f.style.padding="0",(m=document.createElement("div")).className="autocomplete dropdown",m.style.position="absolute",m.style.visibility="hidden",g=m,y=[],b=-1,A=w={rs:x={onArrowDown:function(){},onArrowUp:function(){},onEnter:function(){},onTab:function(){},startFrom:v=0,options:[],element:null,elementHint:null,elementStyle:null,wrapper:f,show:function(e,t,r){var n=this;this.startFrom=t,this.wrapper.remove(),this.elementHint&&(this.elementHint.remove(),this.elementHint=null),""===h&&(h=window.getComputedStyle(e).getPropertyValue("font-size")),""===p&&(p=window.getComputedStyle(e).getPropertyValue("font-family")),m.style.marginLeft="0",m.style.marginTop=e.getBoundingClientRect().height+"px",this.options=r.map(String),this.element!==e&&(this.element=e,this.elementStyle={zIndex:this.element.style.zIndex,position:this.element.style.position,backgroundColor:this.element.style.backgroundColor,borderColor:this.element.style.borderColor}),this.element.style.zIndex=3,this.element.style.position="relative",this.element.style.backgroundColor="transparent",this.element.style.borderColor="transparent",this.elementHint=e.cloneNode(),this.elementHint.className="autocomplete hint",this.elementHint.style.zIndex=2,this.elementHint.style.position="absolute",this.elementHint.onfocus=function(){n.element.focus()},this.element.addEventListener&&(this.element.removeEventListener("keydown",C),this.element.addEventListener("keydown",C,!1),this.element.removeEventListener("blur",S),this.element.addEventListener("blur",S,!1)),f.appendChild(this.elementHint),f.appendChild(m),e.parentElement.appendChild(f),this.repaint(e)},setText:function(e){this.element.innerText=e},getText:function(){return this.element.innerText},hideDropDown:function(){this.wrapper.remove(),this.elementHint&&(this.elementHint.remove(),this.elementHint=null,A.hide(),this.element.style.zIndex=this.elementStyle.zIndex,this.element.style.position=this.elementStyle.position,this.element.style.backgroundColor=this.elementStyle.backgroundColor,this.element.style.borderColor=this.elementStyle.borderColor)},repaint:function(e){e=(e=e.innerText).replace("\n","");var t=this.options.length,r=e.substring(this.startFrom);d=e.substring(0,this.startFrom);for(var n=0;n<t;n++){var o=this.options[n];if(!c.caseSensitive&&0===o.toLowerCase().indexOf(r.toLowerCase())||c.caseSensitive&&0===o.indexOf(r)){this.elementHint.innerText=d+r+o.substring(r.length),this.elementHint.realInnerText=d+o;break}}m.style.left=i(d)+"px",A.refresh(r,this.options),this.elementHint.style.width=i(this.elementHint.innerText)+10+"px","hidden"!==m.style.visibility&&(this.elementHint.style.width=i(this.elementHint.innerText)+m.clientWidth+"px")}},hide:function(){g.style.visibility="hidden"},refresh:function(e,t){g.style.visibility="hidden",v=0,g.textContent="";var r=window.innerHeight||document.documentElement.clientHeight,i=(u=g.parentNode.getBoundingClientRect()).top-6,l=(r=r-u.bottom-6,y=[],"function"==typeof c.filter?c.filter:n[c.filter]),u=l?t.filter(function(t){return l(c.caseSensitive?e:e.toLowerCase(),c.caseSensitive?t:t.toLowerCase(),c)}):[];0===(y=u.map(function(t){var r=document.createElement("div"),n=(r.className="item",r.onmouseover=o,r.onmouseout=s,r.onmousedown=a,r.__hint=t,r.textContent="",r.appendChild(document.createTextNode(t.substring(0,e.length))),document.createElement("b"));return n.appendChild(document.createTextNode(t.substring(e.length))),r.appendChild(n),g.appendChild(r),r})).length||1===y.length&&(e.toLowerCase()===y[0].__hint.toLowerCase()&&!c.caseSensitive||e===y[0].__hint&&c.caseSensitive)||y.length<2||(w.highlight(0),3*r<i?(g.style.maxHeight=i+"px",g.style.top="",g.style.bottom="100%"):(g.style.top="100%",g.style.bottom="",g.style.maxHeight=r+"px"),g.style.visibility="visible")},highlight:function(e){-1!==b&&y[b]&&(y[b].className="item"),y[e].className="item hover",b=e},move:function(e){return"hidden"===g.style.visibility?"":(v+e!==-1&&v+e!==y.length&&(v+=e,w.highlight(v)),y[v].__hint)},onmouseselection:function(){}},C=function(e){var t=(e=e||window.event).keyCode;if(null!=this.elementHint&&33!==t&&34!==t)if(27===t)x.hideDropDown(),x.element.focus(),e.preventDefault(),e.stopPropagation();else{var n,i=(i=this.element.innerText).replace("\n","");if(0<=c.confirmKeys.indexOf(t))9===t&&0===this.elementHint.innerText.length&&x.onTab(),0<this.elementHint.innerText.length&&this.element.innerText!==this.elementHint.realInnerText&&(this.element.innerText=this.elementHint.realInnerText,x.hideDropDown(),r(this.element),9===t)&&(x.element.focus(),e.preventDefault(),e.stopPropagation());else if(13===t)if(0===this.elementHint.innerText.length)x.onEnter();else{var o="hidden"===m.style.visibility;if(A.hide(),o)return x.hideDropDown(),x.element.focus(),void x.onEnter();this.element.innerText=this.elementHint.realInnerText,x.hideDropDown(),r(this.element),e.preventDefault(),e.stopPropagation()}else 40===t?(o=i.substring(this.startFrom),""===(n=A.move(1))&&x.onArrowDown(),this.elementHint.innerText=d+o+n.substring(o.length),this.elementHint.realInnerText=d+n,e.preventDefault(),e.stopPropagation()):38===t&&(o=i.substring(this.startFrom),""===(n=A.move(-1))&&x.onArrowUp(),this.elementHint.innerText=d+o+n.substring(o.length),this.elementHint.realInnerText=d+n,e.preventDefault(),e.stopPropagation())}}.bind(x),S=function(e){x.hideDropDown()},A.onmouseselection=function(e,t){t.element.innerText=t.elementHint.innerText=d+e,t.hideDropDown(),window.setTimeout(function(){t.element.focus(),r(t.element)},1)},x)),this.options.history&&"view"!==this.options.mode&&(this.history=new M(this)),this._createFrame(),this._createTable()},r.destroy=function(){this.frame&&this.container&&this.frame.parentNode===this.container&&(this.container.removeChild(this.frame),this.frame=null),this.container=null,this.dom=null,this.clear(),this.node=null,this.focusTarget=null,this.selection=null,this.multiselection=null,this.errorNodes=null,this.validateSchema=null,this._debouncedValidate=null,this.history&&(this.history.destroy(),this.history=null),this.searchBox&&(this.searchBox.destroy(),this.searchBox=null),this.modeSwitcher&&(this.modeSwitcher.destroy(),this.modeSwitcher=null),this.frameFocusTracker.destroy()},r._setOptions=function(e){var t=this;this.options={search:!0,history:!0,mode:"tree",name:void 0,schema:null,schemaRefs:null,autocomplete:null,navigationBar:!0,mainMenuBar:!0,limitDragging:!1,onSelectionChange:null,colorPicker:!0,onColorPicker:function(e,t,r){var n;z()?(n=e.getBoundingClientRect().top,n=(0,f.getWindow)(e).innerHeight-n<300&&300<n,new(z())({parent:e,color:t,popup:n?"top":"bottom",onDone:function(e){e=1===e.rgba[3]?e.hex.substr(0,7):e.hex,r(e)}}).show()):console.warn("Cannot open color picker: the `vanilla-picker` library is not included in the bundle. Either use the full bundle or implement your own color picker using `onColorPicker`.")},timestampTag:!0,timestampFormat:null,createQuery:u.V,executeQuery:u.e,onEvent:null,enableSort:!0,enableTransform:!0},e&&(Object.keys(e).forEach(function(r){t.options[r]=e[r]}),null==e.limitDragging)&&null!=e.schema&&(this.options.limitDragging=!0),this.setSchema(this.options.schema,this.options.schemaRefs),this._debouncedValidate=(0,f.debounce)(this._validateAndCatch.bind(this),this.DEBOUNCE_INTERVAL),e.onSelectionChange&&this.onSelectionChange(e.onSelectionChange),(0,c.AI)(this.options.languages),(0,c.xC)(this.options.language)},r.set=function(e){e instanceof Function||void 0===e?this.clear():(this.content.removeChild(this.table),e={field:this.options.name,value:e},e=new C(this,e),this._setRoot(e),this._validateAndCatch(),this.node.expand(!1),this.content.appendChild(this.table)),this.history&&this.history.clear(),this.searchBox&&this.searchBox.clear()},r.update=function(e){var t,r;this.node.deepEqual(e)||(t=this.getSelection(),this.onChangeDisabled=!0,this.node.update(e),this.onChangeDisabled=!1,this._validateAndCatch(),this.searchBox&&!this.searchBox.isEmpty()&&this.searchBox.forceSearch(),t&&t.start&&t.end&&(e=this.node.findNodeByPath(t.start.path),r=this.node.findNodeByPath(t.end.path),e)&&r?this.setSelection(t.start,t.end):this.setSelection({},{}))},r.get=function(){if(this.node)return this.node.getValue()},r.getText=function(){return JSON.stringify(this.get())},r.setText=function(e){try{this.set((0,f.parse)(e))}catch(t){e=(0,f.tryJsonRepair)(e),this.set((0,f.parse)(e))}},r.updateText=function(e){try{this.update((0,f.parse)(e))}catch(t){e=(0,f.tryJsonRepair)(e),this.update((0,f.parse)(e))}},r.setName=function(e){this.options.name=e,this.node&&this.node.updateField(this.options.name)},r.getName=function(){return this.options.name},r.focus=function(){var e=this.scrollableContent.querySelector("[contenteditable=true]");e?e.focus():this.node.dom.expand?this.node.dom.expand.focus():this.node.dom.menu?this.node.dom.menu.focus():(e=this.frame.querySelector("button"))&&e.focus()},r.clear=function(){this.node&&(this.node.hide(),delete this.node),this.treePath&&this.treePath.reset()},r._setRoot=function(e){this.clear(),(this.node=e).setParent(null),e.setField(this.getName(),!1),delete e.index,this.tbody.appendChild(e.getDom())},r.search=function(e){var t;return this.node?(this.content.removeChild(this.table),t=this.node.search(e),this.content.appendChild(this.table)):t=[],t},r.expandAll=function(){this.node&&(this.content.removeChild(this.table),this.node.expand(),this.content.appendChild(this.table))},r.collapseAll=function(){this.node&&(this.content.removeChild(this.table),this.node.collapse(),this.content.appendChild(this.table))},r.expand=function(e){var t;e&&(t=this.node?this.node.findNodeByPath(e.path):null)&&(e.isExpand?t.expand(e.recursive):t.collapse(e.recursive))},r._onAction=function(e,t){this.history&&this.history.add(e,t),this._onChange()},r._onChange=function(){if(!this.onChangeDisabled){var e;if(this.selection=this.getDomSelection(),this._debouncedValidate(),this.treePath&&((e=this.node&&this.selection?this.node.findNodeByInternalPath(this.selection.path):this.multiselection?this.multiselection.nodes[0]:void 0)?this._updateTreePath(e.getNodePath()):this.treePath.reset()),this.options.onChange)try{this.options.onChange()}catch(e){console.error("Error in onChange callback: ",e)}if(this.options.onChangeJSON)try{this.options.onChangeJSON(this.get())}catch(e){console.error("Error in onChangeJSON callback: ",e)}if(this.options.onChangeText)try{this.options.onChangeText(this.getText())}catch(e){console.error("Error in onChangeText callback: ",e)}if(this.options.onClassName&&this.node.recursivelyUpdateCssClassesOnNodes(),this.options.onNodeName&&this.node.childs)try{this.node.recursivelyUpdateNodeName()}catch(e){console.error("Error in onNodeName callback: ",e)}}},r.validate=function(){var e=this,t=this.node;if(t){var r=t.getValue(),n=[];this.validateSchema&&!this.validateSchema(r)&&(n=this.validateSchema.errors.map(function(e){return(0,f.improveSchemaError)(e)}).map(function(e){return{node:t.findNode(e.dataPath),error:e,type:"validation"}}).filter(function(e){return null!=e.node}));try{this.validationSequence++;var i=this,o=this.validationSequence;return this._validateCustom(r).then(function(t){return o===i.validationSequence&&(t=[].concat(n,t||[]),i._renderValidationErrors(t),"function"==typeof e.options.onValidationError&&(0,f.isValidationErrorChanged)(t,e.lastSchemaErrors)&&e.options.onValidationError.call(e,t),e.lastSchemaErrors=t),e.lastSchemaErrors})}catch(r){return Promise.reject(r)}}},r._validateAndCatch=function(){this.validate().catch(function(e){console.error("Error running validation:",e)})},r._renderValidationErrors=function(e){this.errorNodes&&this.errorNodes.forEach(function(e){e.setError(null)});var t=e.reduce(function(e,t){return t.node.findParents().filter(function(t){return!e.some(function(e){return e[0]===t})}).map(function(e){return[e,t.node]}).concat(e)},[]);this.errorNodes=t.map(function(e){return{node:e[0],child:e[1],error:{message:"object"===e[0].type?(0,c.Tl)("containsInvalidProperties"):(0,c.Tl)("containsInvalidItems")}}}).concat(e).map(function(e){return e.node.setError(e.error,e.child),e.node})},r._validateCustom=function(e){try{var t,r;if(this.options.onValidate)return t=this.node,r=this.options.onValidate(e),((0,f.isPromise)(r)?r:Promise.resolve(r)).then(function(e){return Array.isArray(e)?e.filter(function(e){var t=(0,f.isValidValidationError)(e);return t||console.warn('Ignoring a custom validation error with invalid structure. Expected structure: {path: [...], message: "..."}. Actual error:',e),t}).map(function(e){var r;try{r=e&&e.path?t.findNodeByPath(e.path):null}catch(e){}return r||console.warn("Ignoring validation error: node not found. Path:",e.path,"Error:",e),{node:r,error:e,type:"customValidation"}}).filter(function(e){return e&&e.node&&e.error&&e.error.message}):null})}catch(e){return Promise.reject(e)}return Promise.resolve(null)},r.refresh=function(){this.node&&this.node.updateDom({recurse:!0})},r.startAutoScroll=function(e){var t=this,r=this.scrollableContent,n=(0,f.getAbsoluteTop)(r),i=r.clientHeight,o=n+i;e<n+24&&0<r.scrollTop?this.autoScrollStep=(n+24-e)/3:o-24<e&&i+r.scrollTop<r.scrollHeight?this.autoScrollStep=(o-24-e)/3:this.autoScrollStep=void 0,this.autoScrollStep?this.autoScrollTimer||(this.autoScrollTimer=setInterval(function(){t.autoScrollStep?r.scrollTop-=t.autoScrollStep:t.stopAutoScroll()},50)):this.stopAutoScroll()},r.stopAutoScroll=function(){this.autoScrollTimer&&(clearTimeout(this.autoScrollTimer),delete this.autoScrollTimer),this.autoScrollStep&&delete this.autoScrollStep},r.setDomSelection=function(e){var t,r,n;e&&("scrollTop"in e&&this.scrollableContent&&(this.scrollableContent.scrollTop=e.scrollTop),e.paths?(t=this,r=e.paths.map(function(e){return t.node.findNodeByInternalPath(e)}),this.select(r)):(n=(r=e.path?this.node.findNodeByInternalPath(e.path):null)&&e.domName?r.dom[e.domName]:null,e.range&&n?(e=Object.assign({},e.range,{container:n}),(0,f.setSelectionOffset)(e)):r&&r.focus()))},r.getDomSelection=function(){var e=C.getNodeFromTarget(this.focusTarget),t=this.focusTarget,r=e?Object.keys(e.dom).find(function(r){return e.dom[r]===t}):null,n=(0,f.getSelectionOffset)();return(n=(n=n&&"DIV"!==n.container.nodeName?null:n)&&n.container!==t?null:n)&&delete n.container,{path:e?e.getInternalPath():null,domName:r,range:n,paths:0<this.multiselection.length?this.multiselection.nodes.map(function(e){return e.getInternalPath()}):null,scrollTop:this.scrollableContent?this.scrollableContent.scrollTop:0}},r.scrollTo=function(e,t){var r,n,i,o,s,a=this.scrollableContent;a?((r=this).animateTimeout&&(clearTimeout(r.animateTimeout),delete r.animateTimeout),r.animateCallback&&(r.animateCallback(!1),delete r.animateCallback),n=a.clientHeight,i=a.scrollHeight-n,o=Math.min(Math.max(e-n/4,0),i),(s=function(){var e=a.scrollTop;e=o-e,3<Math.abs(e)?(a.scrollTop+=e/3,r.animateCallback=t,r.animateTimeout=setTimeout(s,50)):(t&&t(!0),a.scrollTop=o,delete r.animateTimeout,delete r.animateCallback)})()):t&&t(!1)},r._createFrame=function(){var e=this,t=(this.frame=document.createElement("div"),this.frame.className="jsoneditor jsoneditor-mode-"+this.options.mode,this.container.appendChild(this.frame),this.contentOuter=document.createElement("div"),this.contentOuter.className="jsoneditor-outer",this);function r(e){t._onEvent&&t._onEvent(e)}var n,i,s,a={target:this.frame,onFocus:this.options.onFocus||null,onBlur:this.options.onBlur||null};this.frameFocusTracker=new o.$(a),this.frame.onclick=function(e){var t=e.target;r(e),"BUTTON"===t.nodeName&&e.preventDefault()},this.frame.oninput=r,this.frame.onchange=r,this.frame.onkeydown=r,this.frame.onkeyup=r,this.frame.oncut=r,this.frame.onpaste=r,this.frame.onmousedown=r,this.frame.onmouseup=r,this.frame.onmouseover=r,this.frame.onmouseout=r,(0,f.addEventListener)(this.frame,"focus",r,!0),(0,f.addEventListener)(this.frame,"blur",r,!0),this.frame.onfocusin=r,this.frame.onfocusout=r,this.options.mainMenuBar&&((0,f.addClassName)(this.contentOuter,"has-main-menu-bar"),this.menu=document.createElement("div"),this.menu.className="jsoneditor-menu",this.frame.appendChild(this.menu),(a=document.createElement("button")).type="button",a.className="jsoneditor-expand-all",a.title=(0,c.Tl)("expandAll"),a.onclick=function(){t.expandAll(),"function"==typeof e.options.onExpand&&e.options.onExpand({path:[],isExpand:!0,recursive:!0})},this.menu.appendChild(a),(a=document.createElement("button")).type="button",a.title=(0,c.Tl)("collapseAll"),a.className="jsoneditor-collapse-all",a.onclick=function(){t.collapseAll(),"function"==typeof e.options.onExpand&&e.options.onExpand({path:[],isExpand:!1,recursive:!0})},this.menu.appendChild(a),this.options.enableSort&&((a=document.createElement("button")).type="button",a.className="jsoneditor-sort",a.title=(0,c.Tl)("sortTitleShort"),a.onclick=function(){t.node.showSortModal()},this.menu.appendChild(a)),this.options.enableTransform&&((a=document.createElement("button")).type="button",a.title=(0,c.Tl)("transformTitleShort"),a.className="jsoneditor-transform",a.onclick=function(){t.node.showTransformModal()},this.menu.appendChild(a)),this.history&&((n=document.createElement("button")).type="button",n.className="jsoneditor-undo jsoneditor-separator",n.title=(0,c.Tl)("undo"),n.onclick=function(){t._onUndo()},this.menu.appendChild(n),this.dom.undo=n,(i=document.createElement("button")).type="button",i.className="jsoneditor-redo",i.title=(0,c.Tl)("redo"),i.onclick=function(){t._onRedo()},this.menu.appendChild(i),this.dom.redo=i,this.history.onChange=function(){n.disabled=!t.history.canUndo(),i.disabled=!t.history.canRedo()},this.history.onChange()),this.options&&this.options.modes&&this.options.modes.length&&((s=this).modeSwitcher=new d.n(this.menu,this.options.modes,this.options.mode,function(e){try{s.setMode(e),s.modeSwitcher.focus()}catch(e){s._onError(e)}})),this.options.search)&&(this.searchBox=new N(this,this.menu)),this.options.navigationBar&&(this.navBar=document.createElement("div"),this.navBar.className="jsoneditor-navigation-bar nav-bar-empty",this.frame.appendChild(this.navBar),this.treePath=new B(this.navBar,this.getPopupAnchor()),this.treePath.onSectionSelected(this._onTreePathSectionSelected.bind(this)),this.treePath.onContextMenuItemSelected(this._onTreePathMenuItemSelected.bind(this)))},r._onUndo=function(){this.history&&(this.history.undo(),this._onChange())},r._onRedo=function(){this.history&&(this.history.redo(),this._onChange())},r._onEvent=function(e){if(!C.targetIsColorPicker(e.target)){var t,r=C.getNodeFromTarget(e.target);if("keydown"===e.type&&this._onKeyDown(e),r&&"focus"===e.type&&(this.focusTarget=e.target,this.options.autocomplete)&&"focus"===this.options.autocomplete.trigger&&this._showAutoComplete(e.target),"mousedown"===e.type&&this._startDragDistance(e),"mousemove"!==e.type&&"mouseup"!==e.type&&"click"!==e.type||this._updateDragDistance(e),r&&this.options&&this.options.navigationBar&&r&&("keydown"===e.type||"mousedown"===e.type)&&(t=this,setTimeout(function(){t._updateTreePath(r.getNodePath())})),r&&r.selected){if("click"===e.type){if(e.target===r.dom.menu)return void this.showContextMenu(e.target);e.hasMoved||this.deselect()}"mousedown"===e.type&&C.onDragStart(this.multiselection.nodes,e)}else"mousedown"===e.type&&(0,f.hasParentNode)(e.target,this.content)&&(this.deselect(),r&&e.target===r.dom.drag?C.onDragStart(r,e):r&&(e.target===r.dom.field||e.target===r.dom.value||e.target===r.dom.select)||this._onMultiSelectStart(e));r&&r.onEvent(e)}},r._updateTreePath=function(e){var t;function r(e){return e.parent?"array"===e.parent.type?e.index:e.field:e.field||e.type}e&&e.length?((0,f.removeClassName)(this.navBar,"nav-bar-empty"),t=[],e.forEach(function(e){var n={name:r(e),node:e,children:[]};e.childs&&e.childs.length&&e.childs.forEach(function(e){n.children.push({name:r(e),node:e})}),t.push(n)}),this.treePath.setPath(t)):(0,f.addClassName)(this.navBar,"nav-bar-empty")},r._onTreePathSectionSelected=function(e){e&&e.node&&(e.node.expandTo(),e.node.focus())},r._onTreePathMenuItemSelected=function(e,t){e&&e.children.length&&(e=e.children.find(function(e){return e.name===t}))&&e.node&&(this._updateTreePath(e.node.getNodePath()),e.node.expandTo(),e.node.focus())},r._startDragDistance=function(e){this.dragDistanceEvent={initialTarget:e.target,initialPageX:e.pageX,initialPageY:e.pageY,dragDistance:0,hasMoved:!1}},r._updateDragDistance=function(e){this.dragDistanceEvent||this._startDragDistance(e);var t=e.pageX-this.dragDistanceEvent.initialPageX,r=e.pageY-this.dragDistanceEvent.initialPageY;return this.dragDistanceEvent.dragDistance=Math.sqrt(t*t+r*r),this.dragDistanceEvent.hasMoved=this.dragDistanceEvent.hasMoved||10<this.dragDistanceEvent.dragDistance,e.dragDistance=this.dragDistanceEvent.dragDistance,e.hasMoved=this.dragDistanceEvent.hasMoved,e.dragDistance},r._onMultiSelectStart=function(e){var t,r=C.getNodeFromTarget(e.target);"tree"===this.options.mode&&void 0===this.options.onEditable&&(this.multiselection={start:r||null,end:null,nodes:[]},this._startDragDistance(e),(t=this).mousemove||(this.mousemove=(0,f.addEventListener)(e.view,"mousemove",function(e){t._onMultiSelect(e)})),this.mouseup||(this.mouseup=(0,f.addEventListener)(e.view,"mouseup",function(e){t._onMultiSelectEnd(e)})),e.preventDefault())},r._onMultiSelect=function(e){var t;e.preventDefault(),this._updateDragDistance(e),e.hasMoved&&((e=C.getNodeFromTarget(e.target))&&(null==this.multiselection.start&&(this.multiselection.start=e),this.multiselection.end=e),this.deselect(),e=this.multiselection.start,t=this.multiselection.end||this.multiselection.start,e)&&t&&(this.multiselection.nodes=this._findTopLevelNodes(e,t),this.multiselection.nodes&&this.multiselection.nodes.length&&(e=this.multiselection.nodes[0],this.multiselection.start===e||this.multiselection.start.isDescendantOf(e)?this.multiselection.direction="down":this.multiselection.direction="up"),this.select(this.multiselection.nodes))},r._onMultiSelectEnd=function(e){var t=this.multiselection.nodes[0];t&&t.dom.menu&&t.dom.menu.focus(),this.multiselection.start=null,this.multiselection.end=null,this.mousemove&&((0,f.removeEventListener)(e.view,"mousemove",this.mousemove),delete this.mousemove),this.mouseup&&((0,f.removeEventListener)(e.view,"mouseup",this.mouseup),delete this.mouseup)},r.deselect=function(e){var t=!!this.multiselection.nodes.length;this.multiselection.nodes.forEach(function(e){e.setSelected(!1)}),this.multiselection.nodes=[],e&&(this.multiselection.start=null,this.multiselection.end=null),t&&this._selectionChangedHandler&&this._selectionChangedHandler()},r.select=function(e){if(!Array.isArray(e))return this.select([e]);var t;e&&(this.deselect(),this.multiselection.nodes=e.slice(0),t=e[0],e.forEach(function(e){e.expandPathToNode(),e.setSelected(!0,e===t)}),this._selectionChangedHandler)&&(e=this.getSelection(),this._selectionChangedHandler(e.start,e.end))},r._findTopLevelNodes=function(e,t){for(var r=e.getNodePath(),n=t.getNodePath(),i=0;i<r.length&&r[i]===n[i];)i++;e=r[i-1],t=r[i];var o,s=n[i];return t&&s||(e.parent?e=(s=t=e).parent:(t=e.childs[0],s=e.childs[e.childs.length-1])),e&&t&&s?(t=e.childs.indexOf(t),s=e.childs.indexOf(s),o=Math.min(t,s),t=Math.max(t,s),e.childs.slice(o,t+1)):[]},r._showAutoComplete=function(e){var t,r=C.getNodeFromTarget(e),n="";0<=e.className.indexOf("jsoneditor-value")&&(n="value"),""!==(n=0<=e.className.indexOf("jsoneditor-field")?"field":n)&&(t=this,setTimeout(function(){var i;r&&("focus"===t.options.autocomplete.trigger||0<e.innerText.length)&&null!==(i=t.options.autocomplete.getOptions(e.innerText,r.getPath(),n,r.editor))?"function"==typeof i.then?i.then(function(r){null===r?t.autocomplete.hideDropDown():r.options?t.autocomplete.show(e,r.startFrom,r.options):t.autocomplete.show(e,0,r)}).catch(function(e){console.error(e)}):i.options?t.autocomplete.show(e,i.startFrom,i.options):t.autocomplete.show(e,0,i):t.autocomplete.hideDropDown()},50))},r._onKeyDown=function(e){var t,r=e.which||e.keyCode,n=e.altKey,i=e.ctrlKey,o=e.metaKey,s=e.shiftKey,a=!1,l=this.focusTarget;9===r&&(t=this,setTimeout(function(){t.focusTarget!==l&&(0,f.selectContentEditable)(t.focusTarget)},0)),this.searchBox&&(i&&70===r?(this.searchBox.dom.search.focus(),this.searchBox.dom.search.select(),a=!0):(114===r||i&&71===r)&&(s?this.searchBox.previous(!0):this.searchBox.next(!0),a=!0)),this.history&&(i&&!s&&90===r?(this._onUndo(),a=!0):i&&s&&90===r&&(this._onRedo(),a=!0)),!this.options.autocomplete||a||i||n||o||1!==e.key.length&&8!==r&&46!==r||(a=!1,this._showAutoComplete(e.target)),a&&(e.preventDefault(),e.stopPropagation())},r._createTable=function(){var e;this.options.navigationBar&&(0,f.addClassName)(this.contentOuter,"has-nav-bar"),this.scrollableContent=document.createElement("div"),this.scrollableContent.className="jsoneditor-tree",this.contentOuter.appendChild(this.scrollableContent),this.content=document.createElement("div"),this.content.className="jsoneditor-tree-inner",this.scrollableContent.appendChild(this.content),this.table=document.createElement("table"),this.table.className="jsoneditor-tree",this.content.appendChild(this.table),this.colgroupContent=document.createElement("colgroup"),"tree"===this.options.mode&&((e=document.createElement("col")).width="24px",this.colgroupContent.appendChild(e)),(e=document.createElement("col")).width="24px",this.colgroupContent.appendChild(e),e=document.createElement("col"),this.colgroupContent.appendChild(e),this.table.appendChild(this.colgroupContent),this.tbody=document.createElement("tbody"),this.table.appendChild(this.tbody),this.frame.appendChild(this.contentOuter)},r.showContextMenu=function(e,t){var r,n=[],o=this.multiselection.nodes.slice();n.push({text:(0,c.Tl)("duplicateText"),title:(0,c.Tl)("duplicateTitle"),className:"jsoneditor-duplicate",click:function(){C.onDuplicate(o)}}),n.push({text:(0,c.Tl)("remove"),title:(0,c.Tl)("removeTitle"),className:"jsoneditor-remove",click:function(){C.onRemove(o)}}),this.options.onCreateMenu&&(r=o.map(function(e){return e.getPath()}),n=this.options.onCreateMenu(n,{type:"multiple",path:r[0],paths:r})),new i.t(n,{close:t}).show(e,this.getPopupAnchor())},r.getPopupAnchor=function(){return this.options.popupAnchor||this.frame},r.getSelection=function(){var e,t,r={start:null,end:null};return this.multiselection.nodes&&this.multiselection.nodes.length&&(e=this.multiselection.nodes[0],t=this.multiselection.nodes[this.multiselection.nodes.length-1],"down"===this.multiselection.direction?(r.start=e.serialize(),r.end=t.serialize()):(r.start=t.serialize(),r.end=e.serialize())),r},r.onSelectionChange=function(e){"function"==typeof e&&(this._selectionChangedHandler=(0,f.debounce)(e,this.DEBOUNCE_INTERVAL))},r.setSelection=function(e,t){e&&e.dom&&e.range&&(console.warn("setSelection/getSelection usage for text selection is deprecated and should not be used, see documentation for supported selection options"),this.setDomSelection(e)),(e=this._getNodeInstancesByRange(e,t)).forEach(function(e){e.expandTo()}),this.select(e)},r._getNodeInstancesByRange=function(e,t){e&&e.path&&(r=this.node.findNodeByPath(e.path),t)&&t.path&&(n=this.node.findNodeByPath(t.path));var r,n,i=[];if(r instanceof C)if(n instanceof C&&n!==r)if(r.parent===n.parent){t=r.getIndex()<n.getIndex()?(e=r,n):(e=n,r);var o=e;for(i.push(o);o=o.nextSibling(),i.push(o),o&&o!==t;);}else i=this._findTopLevelNodes(r,n);else i.push(r);return i},r.getNodesByRange=function(e,t){e=this._getNodeInstancesByRange(e,t);var r=[];return e.forEach(function(e){r.push(e.serialize())}),r},[{mode:"tree",mixin:r,data:"json"},{mode:"view",mixin:r,data:"json"},{mode:"form",mixin:r,data:"json"}])},5736:function(e,t){var r;(r={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(e,t,r,n,i,o,s){var a=o.length-1;switch(i){case 1:this.$=e.replace(/\\(\\|")/g,"$1").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(e);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=o[a-1];case 13:this.$={};break;case 14:case 19:this.$=o[a-1];break;case 15:this.$=[o[a-2],o[a]];break;case 16:this.$={},this.$[o[a][0]]=o[a][1];break;case 17:this.$=o[a-2],o[a-2][o[a][0]]=o[a][1];break;case 18:this.$=[];break;case 20:this.$=[o[a]];break;case 21:this.$=o[a-2],o[a-2].push(o[a])}},table:[{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],12:1,13:2,15:7,16:8,17:[1,14],23:[1,15]},{1:[3]},{14:[1,16]},{14:[2,7],18:[2,7],22:[2,7],24:[2,7]},{14:[2,8],18:[2,8],22:[2,8],24:[2,8]},{14:[2,9],18:[2,9],22:[2,9],24:[2,9]},{14:[2,10],18:[2,10],22:[2,10],24:[2,10]},{14:[2,11],18:[2,11],22:[2,11],24:[2,11]},{14:[2,12],18:[2,12],22:[2,12],24:[2,12]},{14:[2,3],18:[2,3],22:[2,3],24:[2,3]},{14:[2,4],18:[2,4],22:[2,4],24:[2,4]},{14:[2,5],18:[2,5],22:[2,5],24:[2,5]},{14:[2,1],18:[2,1],21:[2,1],22:[2,1],24:[2,1]},{14:[2,2],18:[2,2],22:[2,2],24:[2,2]},{3:20,4:[1,12],18:[1,17],19:18,20:19},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:23,15:7,16:8,17:[1,14],23:[1,15],24:[1,21],25:22},{1:[2,6]},{14:[2,13],18:[2,13],22:[2,13],24:[2,13]},{18:[1,24],22:[1,25]},{18:[2,16],22:[2,16]},{21:[1,26]},{14:[2,18],18:[2,18],22:[2,18],24:[2,18]},{22:[1,28],24:[1,27]},{22:[2,20],24:[2,20]},{14:[2,14],18:[2,14],22:[2,14],24:[2,14]},{3:20,4:[1,12],20:29},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:30,15:7,16:8,17:[1,14],23:[1,15]},{14:[2,19],18:[2,19],22:[2,19],24:[2,19]},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:31,15:7,16:8,17:[1,14],23:[1,15]},{18:[2,17],22:[2,17]},{18:[2,15],22:[2,15]},{22:[2,21],24:[2,21]}],defaultActions:{16:[2,6]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=this,r=[0],n=[null],i=[],o=this.table,s="",a=0,l=0,c=0,u=(this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,void 0===this.lexer.yylloc&&(this.lexer.yylloc={}),this.lexer.yylloc);function d(){var e=t.lexer.lex()||1;return"number"!=typeof e&&t.symbols_[e]||e}i.push(u),"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var h,p,f,m,g,y,v,b,w={};;){if(f=r[r.length-1],void 0===(m=this.defaultActions[f]||(null==h&&(h=d()),o[f]&&o[f][h]))||!m.length||!m[0]){if(!c){for(g in b=[],o[f])this.terminals_[g]&&2<g&&b.push("'"+this.terminals_[g]+"'");var x="";x=this.lexer.showPosition?"Parse error on line "+(a+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+b.join(", ")+", got '"+this.terminals_[h]+"'":"Parse error on line "+(a+1)+": Unexpected "+(1==h?"end of input":"'"+(this.terminals_[h]||h)+"'"),this.parseError(x,{text:this.lexer.match,token:this.terminals_[h]||h,line:this.lexer.yylineno,loc:u,expected:b})}if(3==c){if(1==h)throw new Error(x||"Parsing halted.");l=this.lexer.yyleng,s=this.lexer.yytext,a=this.lexer.yylineno,u=this.lexer.yylloc,h=d()}for(;!(2..toString()in o[f]);){if(0==f)throw new Error(x||"Parsing halted.");r.length=r.length-2,n.length=n.length-1,i.length=i.length-1,f=r[r.length-1]}p=h,h=2,m=o[f=r[r.length-1]]&&o[f][2],c=3}if(m[0]instanceof Array&&1<m.length)throw new Error("Parse Error: multiple actions possible at state: "+f+", token: "+h);switch(m[0]){case 1:r.push(h),n.push(this.lexer.yytext),i.push(this.lexer.yylloc),r.push(m[1]),h=null,p?(h=p,p=null):(l=this.lexer.yyleng,s=this.lexer.yytext,a=this.lexer.yylineno,u=this.lexer.yylloc,0<c&&c--);break;case 2:if(y=this.productions_[m[1]][1],w.$=n[n.length-y],w._$={first_line:i[i.length-(y||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(y||1)].first_column,last_column:i[i.length-1].last_column},void 0!==(v=this.performAction.call(w,s,l,a,this.yy,m[1],n,i)))return v;y&&(r=r.slice(0,-1*y*2),n=n.slice(0,-1*y),i=i.slice(0,-1*y)),r.push(this.productions_[m[1]][0]),n.push(w.$),i.push(w._$),v=o[r[r.length-2]][r[r.length-1]],r.push(v);break;case 3:return!0}}return!0}}).lexer={EOF:1,parseError:function(e,t){if(!this.yy.parseError)throw new Error(e);this.yy.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.match+=e,this.matched+=e,e.match(/\n/)&&this.yylineno++,this._input=this._input.slice(1),e},unput:function(e){return this._input=e+this._input,this},more:function(){return this._more=!0,this},less:function(e){this._input=this.match.slice(e)+this._input},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var e,t,r,n,i=this._currentRules(),o=0;o<i.length&&(!(t=this._input.match(this.rules[i[o]]))||e&&!(t[0].length>e[0].length)||(e=t,r=o,this.options.flex));o++);return e?((n=e[0].match(/\n.*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-1:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,i[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n||void 0):""===this._input?this.EOF:void this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},options:{},performAction:function(e,t,r,n){switch(r){case 0:break;case 1:return 6;case 2:return t.yytext=t.yytext.substr(1,t.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}},t.parser=r,t.parse=r.parse.bind(r)},6237:function(e,t,r){r.r(t),r.d(t,{addClassName:function(){return I},addEventListener:function(){return z},asyncExec:function(){return ve},clear:function(){return y},compileJSONPointer:function(){return te},contains:function(){return me},debounce:function(){return q},escapeUnicodeChars:function(){return f},extend:function(){return g},findUniqueName:function(){return se},formatSize:function(){return he},get:function(){return oe},getAbsoluteLeft:function(){return C},getAbsoluteTop:function(){return S},getChildPaths:function(){return ae},getColorCSS:function(){return re},getIndexForPosition:function(){return Q},getInnerText:function(){return L},getInputSelection:function(){return J},getInternetExplorerVersion:function(){return F},getPositionForPath:function(){return ee},getSelection:function(){return R},getSelectionOffset:function(){return P},getType:function(){return v},getWindow:function(){return A},hasParentNode:function(){return N},improveSchemaError:function(){return U},insideRect:function(){return Y},isArray:function(){return x},isChildOf:function(){return H},isFirefox:function(){return B},isObject:function(){return fe},isPromise:function(){return Z},isTimestamp:function(){return de},isUrl:function(){return w},isValidColor:function(){return ne},isValidValidationError:function(){return K},isValidationErrorChanged:function(){return ge},limitCharacters:function(){return pe},makeFieldTooltip:function(){return ie},parse:function(){return h},parsePath:function(){return V},parseString:function(){return ue},removeAllClassNames:function(){return k},removeClassName:function(){return E},removeEventListener:function(){return W},removeReturnsAndSurroundingWhitespace:function(){return j},selectContentEditable:function(){return _},setEndOfContentEditable:function(){return $},setSelection:function(){return O},setSelectionOffset:function(){return M},sort:function(){return le},sortObjectKeys:function(){return ce},stringifyPath:function(){return G},stripFormatting:function(){return T},textDiff:function(){return X},tryJsonRepair:function(){return p},uniqueMergeArrays:function(){return ye},validate:function(){return m}}),r(1081),t=r(1342);var n=r.n(t),i=r(9857),o=r(5736),s=r(3094),a=r(3057);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=1e4,d=9466848e5;function h(e){try{return JSON.parse(e)}catch(t){throw m(e),t}}function p(e){try{return(0,i.m)(e)}catch(t){return e}}function f(e){return e.replace(/[\u007F-\uFFFF]/g,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})}function m(e){(void 0!==o?o:JSON).parse(e)}function g(e,t){for(var r in t)be(t,r)&&(e[r]=t[r]);return e}function y(e){for(var t in e)be(e,t)&&delete e[t];return e}function v(e){return null===e?"null":void 0===e?"undefined":e instanceof Number||"number"==typeof e?"number":e instanceof String||"string"==typeof e?"string":e instanceof Boolean||"boolean"==typeof e?"boolean":e instanceof RegExp?"regexp":x(e)?"array":"object"}var b=/^https?:\/\/\S+$/;function w(e){return("string"==typeof e||e instanceof String)&&b.test(e)}function x(e){return"[object Array]"===Object.prototype.toString.call(e)}function A(e){return e.ownerDocument.defaultView}function C(e){return e.getBoundingClientRect().left+window.pageXOffset||document.scrollLeft||0}function S(e){return e.getBoundingClientRect().top+window.pageYOffset||document.scrollTop||0}function I(e,t){var r=e.className.split(" ");-1===r.indexOf(t)&&(r.push(t),e.className=r.join(" "))}function k(e){e.className=""}function E(e,t){var r=e.className.split(" ");-1!==(t=r.indexOf(t))&&(r.splice(t,1),e.className=r.join(" "))}function T(e){for(var t=e.childNodes,r=0,n=t.length;r<n;r++){var i=t[r],o=(i.style&&i.removeAttribute("style"),i.attributes);if(o)for(var s=o.length-1;0<=s;s--){var a=o[s];!0===a.specified&&i.removeAttribute(a.name)}T(i)}}function $(e){var t;document.createRange&&((t=document.createRange()).selectNodeContents(e),t.collapse(!1),(e=window.getSelection()).removeAllRanges(),e.addRange(t))}function _(e){var t;e&&"DIV"===e.nodeName&&window.getSelection&&document.createRange&&((t=document.createRange()).selectNodeContents(e),(e=window.getSelection()).removeAllRanges(),e.addRange(t))}function R(){if(window.getSelection){var e=window.getSelection();if(e.getRangeAt&&e.rangeCount)return e.getRangeAt(0)}return null}function O(e){var t;e&&window.getSelection&&((t=window.getSelection()).removeAllRanges(),t.addRange(e))}function P(){var e=R();return e&&"startOffset"in e&&"endOffset"in e&&e.startContainer&&e.startContainer===e.endContainer?{startOffset:e.startOffset,endOffset:e.endOffset,container:e.startContainer.parentNode}:null}function M(e){var t;document.createRange&&window.getSelection&&window.getSelection()&&(t=document.createRange(),e.container.firstChild||e.container.appendChild(document.createTextNode("")),t.setStart(e.container.firstChild,e.startOffset),t.setEnd(e.container.firstChild,e.endOffset),O(t))}function L(e,t){var r;if(void 0===t&&(t={_text:"",flush:function(){var e=this._text;return this._text="",e},set:function(e){this._text=e}}),e.nodeValue)return""!==(r=j(e.nodeValue))?t.flush()+r:"";if(e.hasChildNodes()){for(var n=e.childNodes,i="",o=0,s=n.length;o<s;o++){var a,l=n[o];"DIV"===l.nodeName||"P"===l.nodeName?((a=(a=n[o-1])?a.nodeName:void 0)&&"DIV"!==a&&"P"!==a&&"BR"!==a&&(""!==i&&(i+="\n"),t.flush()),i+=L(l,t),t.set("\n")):"BR"===l.nodeName?(i+=t.flush(),t.set("\n")):i+=L(l,t)}return i}return""}function j(e){return e.replace(/(\b|^)\s*(\b|$)/g,function(e){return/\n/.exec(e)?"":e})}function N(e,t){for(var r=e?e.parentNode:void 0;r;){if(r===t)return!0;r=r.parentNode}return!1}function F(){var e;return-1===D&&(e=-1,"undefined"!=typeof navigator&&"Microsoft Internet Explorer"===navigator.appName&&null!=/MSIE ([0-9]+[.0-9]+)/.exec(navigator.userAgent)&&(e=parseFloat(RegExp.$1)),D=e),D}var D=-1;function B(){return"undefined"!=typeof navigator&&-1!==navigator.userAgent.indexOf("Firefox")}function z(e,t,r,n){return e.addEventListener?(void 0===n&&(n=!1),"mousewheel"===t&&B()&&(t="DOMMouseScroll"),e.addEventListener(t,r,n),r):e.attachEvent?(e.attachEvent("on"+t,n=function(){return r.call(e,window.event)}),n):void 0}function W(e,t,r,n){e.removeEventListener?(void 0===n&&(n=!1),"mousewheel"===t&&B()&&(t="DOMMouseScroll"),e.removeEventListener(t,r,n)):e.detachEvent&&e.detachEvent("on"+t,r)}function H(e,t){for(var r=e.parentNode;r;){if(r===t)return!0;r=r.parentNode}return!1}function V(e){var t=[],r=0;function n(t){for(var n="";void 0!==e[r]&&e[r]!==t;)n+=e[r],r++;if(e[r]!==t)throw new Error("Invalid JSON path: unexpected end, character "+t+" expected");return n}for(;void 0!==e[r];)if("."===e[r])r++,t.push((()=>{for(var t="";void 0!==e[r]&&/[\w$]/.test(e[r]);)t+=e[r],r++;if(""===t)throw new Error("Invalid JSON path: property name expected at index "+r);return t})());else{if("["!==e[r])throw new Error('Invalid JSON path: unexpected character "'+e[r]+'" at index '+r);if("'"===e[++r]||'"'===e[r]){var i=e[r];if(r++,t.push(n(i)),e[r]!==i)throw new Error("Invalid JSON path: closing quote ' expected at index "+r);r++}else{if(0===(i=n("]").trim()).length)throw new Error("Invalid JSON path: array value expected at index "+r);i="*"===i?i:JSON.parse(i),t.push(i)}if("]"!==e[r])throw new Error("Invalid JSON path: closing bracket ] expected at index "+r);r++}return t}function G(e){return e.map(function(e){return"number"==typeof e?"["+e+"]":"string"==typeof e&&e.match(/^[A-Za-z0-9_$]+$/)?"."+e:'["'+e+'"]'}).join("")}function U(e){var t,r;return"enum"===e.keyword&&Array.isArray(e.schema)&&(r=e.schema)&&(5<(r=r.map(function(e){return JSON.stringify(e)})).length&&(t=["("+(r.length-5)+" more...)"],(r=r.slice(0,5)).push(t)),e.message="should be equal to one of: "+r.join(", ")),"additionalProperties"===e.keyword&&(e.message="should NOT have additional property: "+e.params.additionalProperty),e}function Z(e){return e&&"function"==typeof e.then&&"function"==typeof e.catch}function K(e){return"object"===c(e)&&Array.isArray(e.path)&&"string"==typeof e.message}function Y(e,t,r){return r=void 0!==r?r:0,t.left-r>=e.left&&t.right+r<=e.right&&t.top-r>=e.top&&t.bottom+r<=e.bottom}function q(e,t,r){var n;return function(){var i=this,o=arguments,s=r&&!n;clearTimeout(n),n=setTimeout(function(){n=null,r||e.apply(i,o)},t),s&&e.apply(i,o)}}function X(e,t){for(var r=t.length,n=0,i=e.length,o=t.length;t.charAt(n)===e.charAt(n)&&n<r;)n++;for(;t.charAt(o-1)===e.charAt(i-1)&&n<o&&0<i;)o--,i--;return{start:n,end:o}}function J(e){var t,r,n,i,o=0,s=0;return"number"==typeof e.selectionStart&&"number"==typeof e.selectionEnd?(o=e.selectionStart,s=e.selectionEnd):(i=document.selection.createRange())&&i.parentElement()===e&&(n=e.value.length,t=e.value.replace(/\r\n/g,"\n"),(r=e.createTextRange()).moveToBookmark(i.getBookmark()),(i=e.createTextRange()).collapse(!1),-1<r.compareEndPoints("StartToEnd",i)?o=s=n:(o=-r.moveStart("character",-n),o+=t.slice(0,o).split("\n").length-1,-1<r.compareEndPoints("EndToEnd",i)?s=n:(s=-r.moveEnd("character",-n),s+=t.slice(0,s).split("\n").length-1))),{startIndex:o,endIndex:s,start:a(o),end:a(s)};function a(t){return{row:((t=e.value.substring(0,t)).match(/\n/g)||[]).length+1,column:t.length-t.lastIndexOf("\n")}}}function Q(e,t,r){return e=e.value||"",0<t&&0<r?(e=e.split("\n",t),t=Math.min(e.length,t),r=Math.min(e[t-1].length,r-1),r=1===t?r:r+1,e.slice(0,t-1).join("\n").length+r):-1}function ee(e,t){var r,n=[];if(t&&t.length){try{r=s.parse(e)}catch(e){return n}t.forEach(function(e){var t=te(V(e));(t=r.pointers[t])&&n.push({path:e,line:t.key?t.key.line:t.value?t.value.line:0,column:t.key?t.key.column:t.value?t.value.column:0})})}return n}function te(e){return e.map(function(e){return"/"+String(e).replace(/~/g,"~0").replace(/\//g,"~1")}).join("")}function re(e){var t=document.createElement("div");return t.style.color=e,t.style.color.split(/\s+/).join("").toLowerCase()||null}function ne(e){return!!re(e)}function ie(e,t){var r;return e?(r="",e.title&&(r+=e.title),e.description&&(0<r.length&&(r+="\n"),r+=e.description),e.default&&(0<r.length&&(r+="\n\n"),r=(r+=(0,a.Tl)("default",void 0,t)+"\n")+JSON.stringify(e.default,null,2)),Array.isArray(e.examples)&&0<e.examples.length&&(0<r.length&&(r+="\n\n"),r+=(0,a.Tl)("examples",void 0,t)+"\n",e.examples.forEach(function(t,n){r+=JSON.stringify(t,null,2),n!==e.examples.length-1&&(r+="\n")})),r):""}function oe(e,t){for(var r=e,n=0;n<t.length&&null!=r;n++)r=r[t[n]];return r}function se(e,t){if(-1===t.indexOf(e))return e;for(var r=e.replace(/ \(copy( \d+)?\)$/,""),n=r,i=1;-1!==t.indexOf(n);)n=r+" (copy"+(1<i?" "+i:"")+")",i++;return n}function ae(e,t){var r={};if(Array.isArray(e))for(var n=Math.min(e.length,u),i=0;i<n;i++)!function e(t,r,n,i){(Array.isArray(t)||fe(t))&&!i||(r[n||""]=!0),fe(t)&&Object.keys(t).forEach(function(o){e(t[o],r,n+"."+o,i)})}(e[i],r,"",t);else r[""]=!0;return Object.keys(r).sort()}function le(e,t,r){var n=t&&"."!==t?V(t):[],i="desc"===r?-1:1;return(t=e.slice()).sort(function(e,t){return e=oe(e,n),t=oe(t,n),i*(t<e?1:e<t?-1:0)}),t}function ce(e,t){var r="desc"===t?-1:1,i=(t=Object.keys(e).sort(function(e,t){return r*n()(e,t)}),{});return t.forEach(function(t){i[t]=e[t]}),i}function ue(e){var t,r,n,i;return""===e?"":"null"===(t=e.toLowerCase())?null:"true"===t||"false"!==t&&(/^0\d+$/.test(e)||/^0[xbo]/i.test(e)||(t=Number(e),r=parseFloat(e),r=!isNaN(t)&&!isNaN(r)&&isFinite(t),n=t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER,i=/^\d+$/.test(e),!r)||!n&&i?e:t)}function de(e,t){return"number"==typeof t&&d<t&&isFinite(t)&&Math.floor(t)===t&&!isNaN(new Date(t).valueOf())}function he(e){return e<900?e.toFixed()+" B":(e/=1e3)<900?e.toFixed(1)+" KB":(e/=1e3)<900?e.toFixed(1)+" MB":(e/=1e3)<900?e.toFixed(1)+" GB":(e/1e3).toFixed(1)+" TB"}function pe(e,t){return e.length<=t?e:e.slice(0,t)+"..."}function fe(e){return"object"===c(e)&&null!==e&&!Array.isArray(e)}function me(e,t){return-1!==e.indexOf(t)}function ge(e,t){if(e||t){if(!Array.isArray(e)||!Array.isArray(t)||t.length!==e.length)return!0;for(var r=0;r<e.length;r++){var n=e[r],i=t[r];if(n.type!==i.type||JSON.stringify(n.error)!==JSON.stringify(i.error))return!0}}return!1}function ye(e,t){return e=null!=e&&e.length?e:[],t=null!=t&&t.length?t:[],function(e){return(e=>{if(Array.isArray(e))return l(e)})(e)||(e=>{if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)})(e)||((e,t)=>{var r;if(e)return"string"==typeof e?l(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0})(e)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}(new Set(e.concat(t)))}function ve(e){setTimeout(e)}function be(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},6288:function(e){e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=(t=!e.opts.allErrors,o="data"+(o||""),"valid"+i),u="errs__"+i,d=e.util.copy(e),h="",p=(d.level++,"valid"+d.level),f=d.baseId,m="prevValid"+i,g="passingSchemas"+i,y=(n+="var "+u+" = errors , "+m+" = false , "+c+" = false , "+g+" = null; ",i=e.compositeRule,e.compositeRule=d.compositeRule=!0,s);if(y)for(var v,b=-1,w=y.length-1;b<w;)v=y[b+=1],(e.opts.strictKeywords?"object"==typeof v&&0<Object.keys(v).length||!1===v:e.util.schemaHasRules(v,e.RULES.all))?(d.schema=v,d.schemaPath=a+"["+b+"]",d.errSchemaPath=l+"/"+b,n+=" "+e.validate(d)+" ",d.baseId=f):n+=" var "+p+" = true; ",b&&(n+=" if ("+p+" && "+m+") { "+c+" = false; "+g+" = ["+g+", "+b+"]; } else { ",h+="}"),n+=" if ("+p+") { "+c+" = "+m+" = true; "+g+" = "+b+"; }";return e.compositeRule=d.compositeRule=i,n+=h+"if (!"+c+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { passingSchemas: "+g+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+o+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&t&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n}},6489:function(e,t,r){e=r.nmd(e),ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(e,t,r){var n=e("./lib/dom"),i=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,s=e("./lib/lang"),a=e("./range").Range,l=e("./range_list").RangeList,c=e("./keyboard/hash_handler").HashHandler,u=e("./tokenizer").Tokenizer,d=e("./clipboard"),h={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,r){return e=e.session.getTextRange(),r?e.replace(/\n\r?([ \t]*\S)/g,"\n"+r+"$1"):e},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(e){return d.getText&&d.getText()},FILENAME:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^/\\]*$/,"")},FILEPATH:function(e){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(e){return(e=e.session.$mode||{}).blockComment&&e.blockComment.start||""},BLOCK_COMMENT_END:function(e){return(e=e.session.$mode||{}).blockComment&&e.blockComment.end||""},LINE_COMMENT:function(e){return(e.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:p.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:p.bind(null,{year:"2-digit"}),CURRENT_MONTH:p.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:p.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:p.bind(null,{month:"short"}),CURRENT_DATE:p.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:p.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:p.bind(null,{weekday:"short"}),CURRENT_HOUR:p.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:p.bind(null,{minute:"2-digit"}),CURRENT_SECOND:p.bind(null,{second:"2-digit"})};function p(e){return 1==(e=(new Date).toLocaleString("en-us",e)).length?"0"+e:e}h.SELECTED_TEXT=h.SELECTION,m.prototype.getTokenizer=function(){return m.$tokenizer||this.createTokenizer()},m.prototype.createTokenizer=function(){function e(e){return e=e.substr(1),/^\d+$/.test(e)?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function t(e){return"(?:[^\\\\"+e+"]|\\\\.)"}var r={regex:"/("+t("/")+"+)/",onMatch:function(e,t,r){return(r=r[0]).fmtString=!0,r.guard=e.slice(1,-1),r.flag=""},next:"formatString"};return m.$tokenizer=new u({start:[{regex:/\\./,onMatch:function(e,t,r){var n=e[1];return[e="}"==n&&r.length||-1!="`$\\".indexOf(n)?n:e]}},{regex:/}/,onMatch:function(e,t,r){return[r.length?r.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(t,r,n){return t=e(t.substr(1)),n.unshift(t[0]),t},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(e,t,r){return e=e.slice(1,-1).replace(/\\[,|\\]|,/g,function(e){return 2==e.length?e[1]:"\0"}).split("\0").map(function(e){return{value:e}}),[(r[0].choices=e)[0]]},next:"start"},r,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(e,t,r){return r.length&&r[0].expectElse?(r[0].expectElse=!1,r[0].ifEnd={elseEnd:r[0]},[r[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(e,t,r){var n=e[1];return"}"==n&&r.length||-1!="`$\\".indexOf(n)?e=n:"n"==n?e="\n":"t"==n?e="\t":-1!="ulULE".indexOf(n)&&(e={changeCase:n,local:"a"<n}),[e]}},{regex:"/\\w*}",onMatch:function(e,t,r){return(r=r.shift())&&(r.flag=e.slice(1,-1)),this.next=r&&r.tabstopId?"start":"",[r||e]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(e,t,r){return[{text:e.slice(1)}]}},{regex:/\${\w+/,onMatch:function(e,t,r){return e={text:e.slice(2)},r.unshift(e),[e]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(e,t,r){return r=r.shift(),this.next=r&&r.tabstopId?"start":"",[r||e]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(e,t,r){return r[0].formatFunction=e.slice(2,-1),[r.shift()]},next:"formatString"},r,{regex:/:[\?\-+]?/,onMatch:function(e,t,r){"+"==e[1]&&(r[0].ifEnd=r[0]),"?"==e[1]&&(r[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]})},m.prototype.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map(function(e){return e.value||e})},m.prototype.getVariableValue=function(e,t,r){var n;return/^\d+$/.test(t)?(this.variables.__||{})[t]||"":/^[A-Z]\d+$/.test(t)?(this.variables[t[0]+"__"]||{})[t.substr(1)]||"":(t=t.replace(/^TM_/,""),this.variables.hasOwnProperty(t)&&null!=(n="function"==typeof(n=this.variables[t])?this.variables[t](e,t,r):n)?n:"")},m.prototype.tmStrFormat=function(e,t,r){var n,i,o;return t.fmt?(n=t.guard,n=new RegExp(n,(t.flag||"").replace(/[^gim]/g,"")),i="string"==typeof t.fmt?this.tokenizeTmSnippet(t.fmt,"formatString"):t.fmt,o=this,e.replace(n,function(){for(var e=o.variables.__,t=(o.variables.__=[].slice.call(arguments),o.resolveVariables(i,r)),n="E",s=0;s<t.length;s++){var a,l=t[s];"object"==typeof l?(t[s]="",l.changeCase&&l.local?(a=t[s+1])&&"string"==typeof a&&("u"==l.changeCase?t[s]=a[0].toUpperCase():t[s]=a[0].toLowerCase(),t[s+1]=a.substr(1)):l.changeCase&&(n=l.changeCase)):"U"==n?t[s]=l.toUpperCase():"L"==n&&(t[s]=l.toLowerCase())}return o.variables.__=e,t.join("")})):e},m.prototype.tmFormatFunction=function(e,t,r){return"upcase"==t.formatFunction?e.toUpperCase():"downcase"==t.formatFunction?e.toLowerCase():e},m.prototype.resolveVariables=function(e,t){for(var r=[],n="",i=!0,o=0;o<e.length;o++){var s,a=e[o];"string"==typeof a?(r.push(a),"\n"==a?(i=!0,n=""):i&&(n=/^\t*/.exec(a)[0],i=/\S/.test(a))):a&&(i=!1,a.fmtString&&(-1==(s=e.indexOf(a,o+1))&&(s=e.length),a.fmt=e.slice(o+1,s),o=s),a.text?(s=this.getVariableValue(t,a.text,n)+"",a.fmtString&&(s=this.tmStrFormat(s,a,t)),(s=a.formatFunction?this.tmFormatFunction(s,a,t):s)&&!a.ifEnd?(r.push(s),l(a)):!s&&a.ifEnd&&l(a.ifEnd)):a.elseEnd?l(a.elseEnd):null==a.tabstopId&&null==a.changeCase||r.push(a))}function l(t){-1!=(t=e.indexOf(t,o+1))&&(o=t)}return r},m.prototype.getDisplayTextForSnippet=function(e,t){return g.call(this,e,t).text},m.prototype.insertSnippetForSelection=function(e,t,r){t=g.call(this,e,t,r=void 0===r?{}:r),r=e.getSelectionRange();var n=e.session.replace(r,t.text),i=new y(e);e=e.inVirtualSelectionMode&&e.selection.index,i.addTabstops(t.tabstops,r.start,n,e)},m.prototype.insertSnippet=function(e,t,r){void 0===r&&(r={});var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t,r);e.forEachSelection(function(){n.insertSnippetForSelection(e,t,r)},null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},m.prototype.$getScope=function(e){var t,r=e.session.$mode.$id||"";return"html"!==(r=r.split("/").pop())&&"php"!==r||("php"!==r||e.session.$mode.inlinePhp||(r="html"),t=e.getCursorPosition(),(e="object"==typeof(e=e.session.getState(t.row))?e[0]:e).substring&&("js-"==e.substring(0,3)?r="javascript":"css-"==e.substring(0,4)?r="css":"php-"==e.substring(0,4)&&(r="php"))),r},m.prototype.getActiveScopes=function(e){var t=[e=this.$getScope(e)],r=this.snippetMap;return r[e]&&r[e].includeScopes&&t.push.apply(t,r[e].includeScopes),t.push("_"),t},m.prototype.expandWithTab=function(e,t){var r=this,n=e.forEachSelection(function(){return r.expandSnippetForSelection(e,t)},null,{keepOrder:!0});return n&&e.tabstopManager&&e.tabstopManager.tabNext(),n},m.prototype.expandSnippetForSelection=function(e,t){var r,n=e.getCursorPosition(),i=e.session.getLine(n.row),o=i.substring(0,n.column),s=i.substr(n.column),a=this.snippetMap;return this.getActiveScopes(e).some(function(e){return e=a[e],!!(r=e?this.findMatchingSnippet(e,o,s):r)},this),!!r&&(t&&t.dryRun||(e.session.doc.removeInLine(n.row,n.column-r.replaceBefore.length,n.column+r.replaceAfter.length),this.variables.M__=r.matchBefore,this.variables.T__=r.matchAfter,this.insertSnippetForSelection(e,r.content),this.variables.M__=this.variables.T__=null),!0)},m.prototype.findMatchingSnippet=function(e,t,r){for(var n=e.length;n--;){var i=e[n];if((!i.startRe||i.startRe.test(t))&&(!i.endRe||i.endRe.test(r))&&(i.startRe||i.endRe))return i.matchBefore=i.startRe?i.startRe.exec(t):[""],i.matchAfter=i.endRe?i.endRe.exec(r):[""],i.replaceBefore=i.triggerRe?i.triggerRe.exec(t)[0]:"",i.replaceAfter=i.endTriggerRe?i.endTriggerRe.exec(r)[0]:"",i}},m.prototype.register=function(e,t){var r=this.snippetMap,n=this.snippetNameMap,i=this;function o(e){return(e=e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)?"(?:"+e+")":e)||""}function a(e,t,r){return e=o(e),t=o(t),r?(e=t+e)&&"$"!=e[e.length-1]&&(e+="$"):(e+=t)&&"^"!=e[0]&&(e="^"+e),new RegExp(e)}function l(e){e.scope||(e.scope=t||"_"),r[t=e.scope]||(r[t]=[],n[t]={});var o,l=n[t];e.name&&((o=l[e.name])&&i.unregister(o),l[e.name]=e),r[t].push(e),e.prefix&&(e.tabTrigger=e.prefix),!e.content&&e.body&&(e.content=Array.isArray(e.body)?e.body.join("\n"):e.body),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=s.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=a(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger),e.endRe=a(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger))}e=e||[],Array.isArray(e)?e.forEach(l):Object.keys(e).forEach(function(t){l(e[t])}),this._signal("registerSnippets",{scope:t})},m.prototype.unregister=function(e,t){var r=this.snippetMap,n=this.snippetNameMap;function i(e){var i=n[e.scope||t];i&&i[e.name]&&(delete i[e.name],0<=(e=(i=r[e.scope||t])&&i.indexOf(e)))&&i.splice(e,1)}e.content?i(e):Array.isArray(e)&&e.forEach(i)},m.prototype.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var t,r,n,i=[],o={},s=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;r=s.exec(e);){if(r[1])try{o=JSON.parse(r[1]),i.push(o)}catch(e){}r[4]?(o.content=r[4].replace(/^\t/gm,""),i.push(o),o={}):(t=r[2],r=r[3],"regex"==t?(o.guard=(n=/\/((?:[^\/\\]|\\.)*)|$/g).exec(r)[1],o.trigger=n.exec(r)[1],o.endTrigger=n.exec(r)[1],o.endGuard=n.exec(r)[1]):"snippet"==t?(o.tabTrigger=r.match(/^\S*/)[0],o.name||(o.name=r)):t&&(o[t]=r))}return i},m.prototype.getSnippetByName=function(e,t){var r,n=this.snippetNameMap;return this.getActiveScopes(t).some(function(t){return t=n[t],!!(r=t?t[e]:r)},this),r};var f=m;function m(){this.snippetMap={},this.snippetNameMap={},this.variables=h}i.implement(f.prototype,o);var g=function(e,t,r){void 0===r&&(r={});for(var n=e.getCursorPosition(),i=e.session.getLine(n.row),o=e.session.getTabString(),s=i.match(/^\s*/)[0],a=(n.column<s.length&&(s=s.slice(0,n.column)),t=t.replace(/\r/g,""),this.tokenizeTmSnippet(t)),l=(a=(a=this.resolveVariables(a,e)).map(function(e){return"\n"!=e||r.excludeExtraIndent?"string"==typeof e?e.replace(/\t/g,o):e:e+s}),[]),c=(a.forEach(function(e,t){var r,n,i;"object"==typeof e&&(i=e.tabstopId,(r=l[i])||((r=l[i]=[]).index=i,r.value="",r.parents={}),-1===r.indexOf(e))&&(e.choices&&!r.choices&&(r.choices=e.choices),r.push(e),-1!==(n=a.indexOf(e,t+1)))&&((i=a.slice(t+1,n)).some(function(e){return"object"==typeof e})&&!r.value?r.value=i:!i.length||r.value&&"string"==typeof r.value||(r.value=i.join("")))}),l.forEach(function(e){e.length=0}),{}),u=0;u<a.length;u++){var d,h,p,f=a[u];"object"==typeof f&&(p=f.tabstopId,d=l[p],h=a.indexOf(f,u+1),c[p]?c[p]===f&&(delete c[p],Object.keys(c).forEach(function(e){d.parents[e]=!0})):(c[p]=f,"string"!=typeof(p=d.value)?p=(e=>{for(var t=[],r=0;r<e.length;r++){if("object"==typeof(n=e[r])){if(c[n.tabstopId])continue;var n=t[e.lastIndexOf(n,r-1)]||{tabstopId:n.tabstopId}}t[r]=n}return t})(p):f.fmt&&(p=this.tmStrFormat(p,f,e)),a.splice.apply(a,[u+1,Math.max(0,h-u)].concat(p,f)),-1===d.indexOf(f)&&d.push(f)))}var m=0,g=0,y="";return a.forEach(function(e){var t;"string"==typeof e?(1<(t=e.split("\n")).length?(g=t[t.length-1].length,m+=t.length-1):g+=e.length,y+=e):e&&(e.start?e.end={row:m,column:g}:e.start={row:m,column:g})}),{text:y,tabstops:l,tokens:a}},y=(v.prototype.attach=function(e){this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.session=e.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},v.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},v.prototype.onChange=function(e){for(var t="r"==e.action[0],r=this.selectedTabstop||{},n=r.parents||{},i=this.tabstops.slice(),o=0;o<i.length;o++){var s=i[o],a=s==r||n[s.index];if(s.rangeList.$bias=a?0:1,"remove"==e.action&&s!==r){a=s.parents&&s.parents[r.index];for(var l=(l=s.rangeList.pointIndex(e.start,a))<0?-l-1:l+1,c=(a=s.rangeList.pointIndex(e.end,a),s.rangeList.ranges.slice(l,a<0?-a-1:a-1)),u=0;u<c.length;u++)this.removeRange(c[u])}s.rangeList.$onChange(e)}var d=this.session;this.$inChange||!t||1!=d.getLength()||d.getValue()||this.detach()},v.prototype.updateLinkedFields=function(){var e=this.selectedTabstop;if(e&&e.hasLinkedRanges&&e.firstNonLinked){this.$inChange=!0;for(var r=this.session,n=r.getTextRange(e.firstNonLinked),i=0;i<e.length;i++){var o,s=e[i];s.linked&&(o=t.snippetManager.tmStrFormat(n,s.original,this.editor),r.replace(s,o))}this.$inChange=!1}},v.prototype.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},v.prototype.onChangeSelection=function(){if(this.editor){for(var e=this.editor.selection.lead,t=this.editor.selection.anchor,r=this.editor.selection.isEmpty(),n=0;n<this.ranges.length;n++)if(!this.ranges[n].linked){var i=this.ranges[n].contains(e.row,e.column),o=r||this.ranges[n].contains(t.row,t.column);if(i&&o)return}this.detach()}},v.prototype.onChangeSession=function(){this.detach()},v.prototype.tabNext=function(e){var t=this.tabstops.length;e=this.index+(e||1),e=Math.min(Math.max(e,1),t),this.selectTabstop(e=e==t?0:e),this.updateTabstopMarkers(),0===e&&this.detach()},v.prototype.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];if(t&&this.addTabstopMarkers(t),this.index=e,(t=this.tabstops[this.index])&&t.length){if(e=(this.selectedTabstop=t).firstNonLinked||t,t.choices&&(e.cursor=e.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(e);else{var r=this.editor.multiSelect;r.toSingleRange(e);for(var n=0;n<t.length;n++)t.hasLinkedRanges&&t[n].linked||r.addRange(t[n].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},v.prototype.addTabstops=function(e,t,r){var n=this.useLink||!this.editor.getOption("enableMultiselect");this.$openTabstops||(this.$openTabstops=[]),e[0]||(r=a.fromPoints(r,r),w(r.start,t),w(r.end,t),e[0]=[r],e[0].index=0);var i=[this.index+1,0],o=this.ranges,s=this.snippetId=(this.snippetId||0)+1;e.forEach(function(e,r){var c=this.$openTabstops[r]||e;c.snippetId=s;for(var u=0;u<e.length;u++){var d=e[u],h=a.fromPoints(d.start,d.end||d.start);b(h.start,t),b(h.end,t),h.original=d,h.tabstop=c,o.push(h),c!=e?c.unshift(h):c[u]=h,d.fmtString||c.firstNonLinked&&n?(h.linked=!0,c.hasLinkedRanges=!0):c.firstNonLinked||(c.firstNonLinked=h)}c.firstNonLinked||(c.hasLinkedRanges=!1),c===e&&(i.push(c),this.$openTabstops[r]=c),this.addTabstopMarkers(c),c.rangeList=c.rangeList||new l,c.rangeList.$bias=0,c.rangeList.addList(c)},this),2<i.length&&(this.tabstops.length&&i.push(i.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,i))},v.prototype.addTabstopMarkers=function(e){var t=this.session;e.forEach(function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))})},v.prototype.removeTabstopMarkers=function(e){var t=this.session;e.forEach(function(e){t.removeMarker(e.markerId),e.markerId=null})},v.prototype.updateTabstopMarkers=function(){var e;this.selectedTabstop&&(e=this.selectedTabstop.snippetId,0===this.selectedTabstop.index&&e--,this.tabstops.forEach(function(t){t.snippetId===e?this.addTabstopMarkers(t):this.removeTabstopMarkers(t)},this))},v.prototype.removeRange=function(e){var t=e.tabstop.indexOf(e);-1!=t&&e.tabstop.splice(t,1),-1!=(t=this.ranges.indexOf(e))&&this.ranges.splice(t,1),-1!=(t=e.tabstop.rangeList.ranges.indexOf(e))&&e.tabstop.splice(t,1),this.session.removeMarker(e.markerId),e.tabstop.length||(-1!=(t=this.tabstops.indexOf(e.tabstop))&&this.tabstops.splice(t,1),this.tabstops.length)||this.detach()},v);function v(e){if(this.index=0,this.ranges=[],this.tabstops=[],e.tabstopManager)return e.tabstopManager;(e.tabstopManager=this).$onChange=this.onChange.bind(this),this.$onChangeSelection=s.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)}y.prototype.keyboardHandler=new c,y.prototype.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||(e.tabstopManager.tabNext(1),e.renderer.scrollCursorIntoView())},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1),e.renderer.scrollCursorIntoView()},Esc:function(e){e.tabstopManager.detach()}});var b=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},w=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};n.importCssString("\n.ace_snippet-marker {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n background: rgba(194, 193, 208, 0.09);\n border: 1px dotted rgba(211, 208, 235, 0.62);\n position: absolute;\n}","snippets.css",!1),t.snippetManager=new f,i=e("./editor").Editor,function(){this.insertSnippet=function(e,r){return t.snippetManager.insertSnippet(this,e,r)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}.call(i.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(e,t,r){function n(e){return"suggest-aria-id:".concat(e)}function i(e){return(e=new o(e)).$maxLines=4,(e=new s(e)).setHighlightActiveLine(!1),e.setShowPrintMargin(!1),e.renderer.setShowGutter(!1),e.renderer.setHighlightGutterLine(!1),e.$mouseHandler.$focusTimeout=0,e.$highlightTagPending=!0,e}var o=e("../virtual_renderer").VirtualRenderer,s=e("../editor").Editor,a=e("../range").Range,l=e("../lib/event"),c=e("../lib/lang"),u=e("../lib/dom"),d=e("../config").nls,h=(e=e("./../lib/useragent")).isSafari?"menu":"listbox",p=e.isSafari?"menuitem":"option",f=e.isSafari?"aria-current":"aria-selected";u.importCssString('\n.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background-color: #CAD6FA;\n z-index: 1;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background-color: #3a674e;\n}\n.ace_editor.ace_autocomplete .ace_line-hover {\n border: 1px solid #abbffe;\n margin-top: -1px;\n background: rgba(233,233,253,0.4);\n position: absolute;\n z-index: 2;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {\n border: 1px solid rgba(109, 150, 13, 0.8);\n background: rgba(58, 103, 78, 0.62);\n}\n.ace_completion-meta {\n opacity: 0.5;\n margin-left: 0.9em;\n}\n.ace_completion-message {\n margin-left: 0.9em;\n color: blue;\n}\n.ace_editor.ace_autocomplete .ace_completion-highlight{\n color: #2d69c7;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{\n color: #93ca12;\n}\n.ace_editor.ace_autocomplete {\n width: 300px;\n z-index: 200000;\n border: 1px lightgray solid;\n position: fixed;\n box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n line-height: 1.4;\n background: #fefefe;\n color: #111;\n}\n.ace_dark.ace_editor.ace_autocomplete {\n border: 1px #484747 solid;\n box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);\n line-height: 1.4;\n background: #25282c;\n color: #c1c1c1;\n}\n.ace_autocomplete .ace_text-layer {\n width: calc(100% - 8px);\n}\n.ace_autocomplete .ace_line {\n display: flex;\n align-items: center;\n}\n.ace_autocomplete .ace_line > * {\n min-width: 0;\n flex: 0 0 auto;\n}\n.ace_autocomplete .ace_line .ace_ {\n flex: 0 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.ace_autocomplete .ace_completion-spacer {\n flex: 1;\n}\n.ace_autocomplete.ace_loading:after {\n content: "";\n position: absolute;\n top: 0px;\n height: 2px;\n width: 8%;\n background: blue;\n z-index: 100;\n animation: ace_progress 3s infinite linear;\n animation-delay: 300ms;\n transform: translateX(-100%) scaleX(1);\n}\n@keyframes ace_progress {\n 0% { transform: translateX(-100%) scaleX(1) }\n 50% { transform: translateX(625%) scaleX(2) } \n 100% { transform: translateX(1500%) scaleX(3) } \n}\n@media (prefers-reduced-motion) {\n .ace_autocomplete.ace_loading:after {\n transform: translateX(625%) scaleX(2);\n animation: none;\n }\n}\n',"autocompletion.css",!1),t.AcePopup=function(e){function t(){}function r(){v(-1)}var o,s=u.createElement("div"),m=i(s),g=(e&&e.appendChild(s),s.style.display="none",m.renderer.content.style.cursor="default",m.renderer.setStyle("ace_autocomplete"),m.renderer.$textLayer.element.setAttribute("role",h),m.renderer.$textLayer.element.setAttribute("aria-roledescription",d("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),m.renderer.$textLayer.element.setAttribute("aria-label",d("autocomplete.popup.aria-label","Autocomplete suggestions")),m.renderer.textarea.setAttribute("aria-hidden","true"),m.setOption("displayIndentGuides",!1),m.setOption("dragDelay",150),m.focus=t,m.$isFocused=!0,m.renderer.$cursorLayer.restartTimer=t,m.renderer.$cursorLayer.element.style.opacity="0",m.renderer.$maxLines=8,m.renderer.$keepTextAreaAtCursor=!1,m.setHighlightActiveLine(!1),m.session.highlight(""),m.session.$searchHighlight.clazz="ace_highlight-marker",m.on("mousedown",function(e){var t=e.getDocumentPosition();m.selection.moveToPosition(t),y.start.row=y.end.row=t.row,e.stop()}),new a(-1,0,-1,1/0)),y=new a(-1,0,-1,1/0),v=(y.id=m.session.addMarker(y,"ace_active-line","fullLine"),m.setSelectOnHover=function(e){e?g.id&&(m.session.removeMarker(g.id),g.id=null):g.id=m.session.addMarker(g,"ace_line-hover","fullLine")},m.setSelectOnHover(!1),m.on("mousemove",function(e){var t;o?o.x==e.x&&o.y==e.y||((o=e).scrollTop=m.renderer.scrollTop,m.isMouseOver=!0,t=o.getDocumentPosition().row,g.start.row!=t&&(g.id||m.setRow(t),v(t))):o=e}),m.renderer.on("beforeRender",function(){var e;o&&-1!=g.start.row&&(o.$pos=null,e=o.getDocumentPosition().row,g.id||m.setRow(e),v(e,!0))}),m.renderer.on("afterRender",function(){for(var e=m.renderer.$textLayer,t=e.config.firstRow,r=e.config.lastRow;t<=r;t++){var n=e.element.childNodes[t-e.config.firstRow],i=m.getData(t);i="".concat(i.caption||i.value).concat(i.meta?", ".concat(i.meta):""),n.setAttribute("role",p),n.setAttribute("aria-roledescription",d("autocomplete.popup.item.aria-roledescription","item")),n.setAttribute("aria-label",i),n.setAttribute("aria-setsize",m.data.length),n.setAttribute("aria-describedby","doc-tooltip"),n.setAttribute("aria-posinset",t+1),n.querySelectorAll(".ace_completion-highlight").forEach(function(e){e.setAttribute("role","mark")})}}),m.renderer.on("afterRender",function(){var e=m.getRow(),t=m.renderer.$textLayer,r=t.element.childNodes[e-t.config.firstRow],i=document.activeElement;r!==m.selectedNode&&m.selectedNode&&(u.removeCssClass(m.selectedNode,"ace_selected"),m.selectedNode.removeAttribute(f),m.selectedNode.removeAttribute("id")),i.removeAttribute("aria-activedescendant"),(m.selectedNode=r)&&(e=n(e),u.addCssClass(r,"ace_selected"),r.id=e,t.element.setAttribute("aria-activedescendant",e),i.setAttribute("aria-activedescendant",e),r.setAttribute(f,"true"))}),function(e,t){e!==g.start.row&&(g.start.row=g.end.row=e,t||m.session._emit("changeBackMarker"),m._emit("changeHoverMarker"))});return m.getHoveredRow=function(){return g.start.row},l.addListener(m.container,"mouseout",function(){m.isMouseOver=!1,r()}),m.on("hide",r),m.on("changeSelection",r),m.session.doc.getLength=function(){return m.data.length},m.session.doc.getLine=function(e){return"string"==typeof(e=m.data[e])?e:e&&e.value||""},(e=m.session.bgTokenizer).$tokenizeRow=function(e){var t=m.data[e],r=[];if(t){for(var n,i,o=(t="string"==typeof t?{value:t}:t).caption||t.value||t.name,s=o.toLowerCase(),a=(m.filterText||"").toLowerCase(),l=0,c=0,u=0;u<=a.length;u++)u!=c&&(t.matchMask&1<<u||u==a.length)&&(n=a.slice(c,u),c=u,-1!=(i=s.indexOf(n,l)))&&(d(o.slice(l,i),""),l=i+n.length,d(o.slice(i,l),"completion-highlight"));d(o.slice(l,o.length),""),r.push({type:"completion-spacer",value:" "}),t.meta&&r.push({type:"completion-meta",value:t.meta}),t.message&&r.push({type:"completion-message",value:t.message})}return r;function d(e,n){e&&r.push({type:(t.className||"")+(n||""),value:e})}},e.$updateOnChange=t,e.start=t,m.session.$computeWidth=function(){return this.screenWidth=0},m.isOpen=!1,m.isTopdown=!1,m.autoSelect=!0,m.filterText="",m.isMouseOver=!1,m.data=[],m.setData=function(e,t){m.filterText=t||"",m.setValue(c.stringRepeat("\n",e.length),-1),m.data=e||[],m.setRow(0)},m.getData=function(e){return m.data[e]},m.getRow=function(){return y.start.row},m.setRow=function(e){e=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,e)),y.start.row!=e&&(m.selection.clearSelection(),y.start.row=y.end.row=e||0,m.session._emit("changeBackMarker"),m.moveCursorTo(e||0,0),m.isOpen)&&m._signal("select")},m.on("changeSelection",function(){m.isOpen&&m.setRow(m.selection.lead.row),m.renderer.scrollCursorIntoView()}),m.hide=function(){this.container.style.display="none",m.anchorPos=null,m.anchor=null,m.isOpen&&(m.isOpen=!1,this._signal("hide"))},m.tryShow=function(e,t,r,n){if(n||!m.isOpen||!m.anchorPos||!m.anchor||m.anchorPos.top!==e.top||m.anchorPos.left!==e.left||m.anchor!==r){var i=this.container,s=window.innerHeight,a=window.innerWidth,l=this.renderer,c=l.$maxLines*t*1.4,u={top:0,bottom:0,left:0},d=s-e.top-3*this.$borderSize-t,h=e.top-3*this.$borderSize;if("top"===(r=r||(h<=d||c<=d?"bottom":"top"))?(u.bottom=e.top-this.$borderSize,u.top=u.bottom-c):"bottom"===r&&(u.top=e.top+t+this.$borderSize,u.bottom=u.top+c),t=0<=u.top&&u.bottom<=s,!n&&!t)return!1;l.$maxPixelHeight=t?null:"top"===r?h:d,"top"===r?(i.style.top="",i.style.bottom=s-u.bottom+"px",m.isTopdown=!1):(i.style.top=u.top+"px",i.style.bottom="",m.isTopdown=!0),i.style.display="",a<(c=e.left)+i.offsetWidth&&(c=a-i.offsetWidth),i.style.left=c+"px",i.style.right="",m.isOpen||(m.isOpen=!0,this._signal("show"),o=null),m.anchorPos=e,m.anchor=r}return!0},m.show=function(e,t,r){this.tryShow(e,t,r?"bottom":void 0,!0)},m.goTo=function(e){var t=this.getRow(),r=this.session.getLength()-1;switch(e){case"up":t=t<=0?r:t-1;break;case"down":t=r<=t?-1:t+1;break;case"start":t=0;break;case"end":t=r}this.setRow(t)},m.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},m.$imageSize=0,m.$borderSize=1,m},t.$singleLineEditor=i,t.getAriaId=n}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(e,t,r){function n(e){this.editor=e,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}n.prototype.setScreenReaderContent=function(e){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",function(){var e=this.popup.getRow(),t=this.popup.renderer.$textLayer;if(e=t.element.childNodes[e-t.config.firstRow]){for(var r="doc-tooltip ",n=0;n<this._lines.length;n++)r+="ace-inline-screenreader-line-".concat(n," ");e.setAttribute("aria-describedby",r)}}.bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=e.split(/\r\n|\r|\n/),e=this.createCodeBlock(),this.screenReaderDiv.appendChild(e)},n.prototype.destroy=function(){this.screenReaderDiv.remove()},n.prototype.createCodeBlock=function(){var e=document.createElement("pre");e.setAttribute("id","ace-inline-screenreader");for(var t=0;t<this._lines.length;t++){var r=document.createElement("code"),n=(r.setAttribute("id","ace-inline-screenreader-line-".concat(t)),document.createTextNode(this._lines[t]));r.appendChild(n),e.appendChild(r)}return e},t.AceInlineScreenReader=n}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(e,t,r){var n=e("../snippets").snippetManager,i=e("./inline_screenreader").AceInlineScreenReader;function o(){this.editor=null}o.prototype.show=function(e,t,r){if(r=r||"",e&&this.editor&&this.editor!==e&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!e||!t)return!1;this.inlineScreenReader||(this.inlineScreenReader=new i(e));var o=t.snippet?n.getDisplayTextForSnippet(e,t.snippet):t.value;return!(t.hideInlinePreview||!o||!o.startsWith(r)||(this.editor=e,this.inlineScreenReader.setScreenReaderContent(o),""===(o=o.slice(r.length))?e.removeGhostText():e.setGhostText(o),0))},o.prototype.isOpen=function(){return!!this.editor&&!!this.editor.renderer.$ghostText},o.prototype.hide=function(){return!!this.editor&&(this.editor.removeGhostText(),!0)},o.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},t.AceInline=o}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,t,r){t.parForEach=function(e,t,r){var n=0,i=e.length;0===i&&r();for(var o=0;o<i;o++)t(e[o],function(e,t){++n===i&&r(e,t)})};var n=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;t.retrievePrecedingIdentifier=function(e,t,r){r=r||n;for(var i=[],o=t-1;0<=o&&r.test(e[o]);o--)i.push(e[o]);return i.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,r){r=r||n;for(var i=[],o=t;o<e.length&&r.test(e[o]);o++)i.push(e[o]);return i},t.getCompletionPrefix=function(e){var t,r=e.getCursorPosition(),n=e.session.getLine(r.row);return e.completers.forEach(function(e){e.identifierRegexps&&e.identifierRegexps.forEach(function(e){!t&&e&&(t=this.retrievePrecedingIdentifier(n,r.column,e))}.bind(this))}.bind(this)),t||this.retrievePrecedingIdentifier(n,r.column)},t.triggerAutocomplete=function(e,t){return t=null==t?e.session.getPrecedingCharacter():t,e.completers.some(function(e){if(e.triggerCharacters&&Array.isArray(e.triggerCharacters))return e.triggerCharacters.includes(t)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(e,t,r){function n(e,t){t.completer&&t.completer.destroy()}var i=e("./keyboard/hash_handler").HashHandler,o=e("./autocomplete/popup").AcePopup,s=e("./autocomplete/inline").AceInline,a=e("./autocomplete/popup").getAriaId,l=e("./autocomplete/util"),c=e("./lib/lang"),u=e("./lib/dom"),d=e("./snippets").snippetManager,h=e("./config"),p=e("./lib/event"),f=e("./lib/scroll").preventParentScroll,m=(Object.defineProperty(g,"completionsForLoading",{get:function(){return[{caption:h.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),g.prototype.$init=function(){return this.popup=new o(this.parentNode||document.body||document.documentElement),this.popup.on("click",function(e){this.insertMatch(),e.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),p.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},g.prototype.$initInline=function(){if(this.inlineEnabled&&!this.inlineRenderer)return this.inlineRenderer=new s,this.inlineRenderer},g.prototype.getPopup=function(){return this.popup||this.$init()},g.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},g.prototype.$seen=function(e){!this.hasSeen.has(e)&&e&&e.completer&&e.completer.onSeen&&"function"==typeof e.completer.onSeen&&(e.completer.onSeen(this.editor,e),this.hasSeen.add(e))},g.prototype.$onPopupChange=function(e){this.inlineRenderer&&this.inlineEnabled?(e=e?null:this.popup.getData(this.popup.getRow()),this.$updateGhostText(e),this.popup.isMouseOver&&this.setSelectOnHover?this.tooltipTimer.call(null,null):(this.popupTimer.schedule(),this.tooltipTimer.schedule())):(this.popupTimer.call(null,null),this.tooltipTimer.call(null,null))},g.prototype.$updateGhostText=function(e){var t=this.base.row,r=this.base.column,n=this.editor.getCursorPosition().column;t=this.editor.session.getLine(t).slice(r,n),this.inlineRenderer.show(this.editor,e,t)?this.$seen(e):this.inlineRenderer.hide()},g.prototype.$onPopupRender=function(){var e=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&0<this.completions.filtered.length)for(var t=this.popup.getFirstVisibleRow();t<=this.popup.getLastVisibleRow();t++){var r=this.popup.getData(t);!r||e&&!r.hideInlinePreview||this.$seen(r)}},g.prototype.$onPopupShow=function(e){this.$onPopupChange(e),this.stickySelection=!1,0<=this.stickySelectionDelay&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},g.prototype.observeLayoutChanges=function(){if(!this.$elements&&this.editor){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var e=this.editor.container.parentNode,t=[];e;)t.push(e),e.addEventListener("scroll",this.onLayoutChange,{passive:!0}),e=e.parentNode;this.$elements=t}},g.prototype.unObserveLayoutChanges=function(){var e=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(t){t.removeEventListener("scroll",e.onLayoutChange,{passive:!0})}),this.$elements=null},g.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},g.prototype.$updatePopupPosition=function(){var e=this.editor,t=(i=e.renderer).layerConfig.lineHeight,r=i.$cursorLayer.getPixelPosition(this.base,!0),n=(r.left-=this.popup.getTextLeftOffset(),e.container.getBoundingClientRect()),i=(r.top+=n.top-i.layerConfig.offset,r.left+=n.left-e.renderer.scrollLeft,r.left+=i.gutterWidth,n={top:r.top,left:r.left},i.$ghostText&&i.$ghostTextWidget&&this.base.row===i.$ghostText.position.row&&(n.top+=i.$ghostTextWidget.el.offsetHeight),e.container.getBoundingClientRect().bottom-t);this.popup.tryShow(i<n.top?{top:i,left:n.left}:n,t,"bottom")||this.popup.tryShow(r,t,"top")||this.popup.show(r,t)},g.prototype.openPopup=function(e,t,r){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var n,i=this.popup.getRow(),o=this.popup.data[i];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:a(this.popup.getRow()),inline:this.inlineEnabled}),e.keyBinding.addKeyboardHandler(this.keyboardHandler),(n=this.stickySelection?this.popup.data.indexOf(o):n)&&-1!==n||(n=0),this.popup.setRow(this.autoSelect?n:-1),n===i&&o!==this.completions.filtered[n]&&this.$onPopupChange(),o=this.inlineRenderer&&this.inlineEnabled,n===i&&o&&(n=this.popup.getData(this.popup.getRow()),this.$updateGhostText(n)),r||(this.popup.setTheme(e.getTheme()),this.popup.setFontSize(e.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},g.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},g.prototype.changeListener=function(e){var t=this.editor.selection.lead;(t.row!=this.base.row||t.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},g.prototype.blurListener=function(e){var t=document.activeElement,r=this.editor.textInput.getElement(),n=e.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(e.relatedTarget),i=this.popup&&this.popup.container;t==r||t.parentNode==i||n||t==this.tooltipNode||e.relatedTarget==r||this.detach()},g.prototype.mousedownListener=function(e){this.detach()},g.prototype.mousewheelListener=function(e){this.popup&&!this.popup.isMouseOver&&this.detach()},g.prototype.mouseOutListener=function(e){this.popup.isOpen&&this.$updatePopupPosition()},g.prototype.goTo=function(e){this.popup.goTo(e)},g.prototype.insertMatch=function(e,t){var r;return!!(e=e||this.popup.getData(this.popup.getRow()))&&(""===e.value?this.detach():(r=this.completions,e=this.getCompletionProvider().insertMatch(this.editor,e,r.filterText,t),this.completions==r&&this.detach(),e))},g.prototype.showPopup=function(e,t){this.editor&&this.detach(),this.activated=!0,(this.editor=e).completer!=this&&(e.completer&&e.completer.detach(),e.completer=this),e.on("changeSelection",this.changeListener),e.on("blur",this.blurListener),e.on("mousedown",this.mousedownListener),e.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,t)},g.prototype.getCompletionProvider=function(e){return this.completionProvider||(this.completionProvider=new y(e)),this.completionProvider},g.prototype.gatherCompletions=function(e,t){return this.getCompletionProvider().gatherCompletions(e,t)},g.prototype.updateCompletions=function(e,t){var r,n;return e&&this.base&&this.completions?(r=this.editor.getCursorPosition(),(n=this.editor.session.getTextRange({start:this.base,end:r}))==this.completions.filterText?void 0:(this.completions.setFilter(n),this.completions.filtered.length&&(1!=this.completions.filtered.length||this.completions.filtered[0].value!=n||this.completions.filtered[0].snippet)?void this.openPopup(this.editor,n,e):this.detach())):t&&t.matches?(r=this.editor.getSelectionRange().start,this.base=this.editor.session.doc.createAnchor(r.row,r.column),this.base.$insertRight=!0,this.completions=new b(t.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",e)):(t=this.editor.getSession(),r=this.editor.getCursorPosition(),n=l.getCompletionPrefix(this.editor),this.base=t.doc.createAnchor(r.row,r.column-n.length),this.base.$insertRight=!0,t={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption},this.getCompletionProvider({prefix:n,pos:r}).provideCompletions(this.editor,t,function(t,r,n){var i,o=r.filtered,s=l.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),n){if(!o.length)return(i="function"==typeof(i=!this.autoShown&&this.emptyMessage)?this.emptyMessage(s):i)?(this.completions=new b([{caption:i,value:""}]),this.openPopup(this.editor,s,e),this.popup.renderer.setStyle("ace_loading",!1),void this.popup.renderer.setStyle("ace_empty-message",!0)):this.detach();if(1==o.length&&o[0].value==s&&!o[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&1==o.length)return this.insertMatch(o[0])}this.completions=!n&&this.showLoadingState?new b(g.completionsForLoading.concat(o),r.filterText):r,this.openPopup(this.editor,s,e),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!n)}.bind(this)),void(!this.showLoadingState||this.autoShown||this.popup&&this.popup.isOpen||this.$firstOpenTimer.delay(this.stickySelectionDelay/2)))},g.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},g.prototype.updateDocTooltip=function(){var e=this.popup,t=this.completions.filtered,r=t&&(t[e.getHoveredRow()]||t[e.getRow()]),n=null;if(!r||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var i=this.editor.completers.length,o=0;o<i;o++){var s=this.editor.completers[o];if(s.getDocTooltip&&r.completerId===s.id){n=s.getDocTooltip(r);break}}if(!(n="string"==typeof(n=n||"string"==typeof r?n:r)?{docText:n}:n)||!n.docHTML&&!n.docText)return this.hideDocTooltip();this.showDocTooltip(n)},g.prototype.showDocTooltip=function(e){this.tooltipNode||(this.tooltipNode=u.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",f));var t=this.editor.renderer.theme,r=(this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(t.isDark?"ace_dark ":"")+(t.cssClass||""),t=this.tooltipNode,(e.docHTML?t.innerHTML=e.docHTML:e.docText&&(t.textContent=e.docText),t.parentNode||this.popup.container.appendChild(this.tooltipNode),e=this.popup).container.getBoundingClientRect());t.style.top=e.container.style.top,t.style.bottom=e.container.style.bottom,t.style.display="block",window.innerWidth-r.right<320?r.left<320?(e.isTopdown?t.style.top=r.bottom+"px":t.style.top=e.container.offsetTop-t.offsetHeight+"px",t.style.left=r.left+"px",t.style.right="",t.style.bottom=""):(t.style.right=window.innerWidth-r.left+"px",t.style.left=""):(t.style.left=r.right+1+"px",t.style.right="")},g.prototype.hideDocTooltip=function(){var e;this.tooltipTimer.cancel(),this.tooltipNode&&(e=this.tooltipNode,this.editor.isFocused()||document.activeElement!=e||this.editor.focus(),this.tooltipNode=null,e.parentNode)&&e.parentNode.removeChild(e)},g.prototype.onTooltipClick=function(e){for(var t=e.target;t&&t!=this.tooltipNode;){if("A"==t.nodeName&&t.href){t.rel="noreferrer",t.target="_blank";break}t=t.parentNode}},g.prototype.destroy=function(){var e;this.detach(),this.popup&&(this.popup.destroy(),e=this.popup.container)&&e.parentNode&&e.parentNode.removeChild(e),this.editor&&this.editor.completer==this&&(this.editor.off("destroy",n),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},g.for=function(e){return e.completer instanceof g||(e.completer&&(e.completer.destroy(),e.completer=null),h.get("sharedPopups")?(g.$sharedInstance||(g.$sharedInstance=new g),e.completer=g.$sharedInstance):(e.completer=new g,e.once("destroy",n))),e.completer},g);function g(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new i,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=c.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=c.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=c.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=c.delayedCall(function(){this.stickySelection=!0}.bind(this),this.stickySelectionDelay),this.$firstOpenTimer=c.delayedCall(function(){var e=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!e||0===this.editor.completers.length||(this.completions=new b(g.completionsForLoading),this.openPopup(this.editor,e.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}.bind(this),this.stickySelectionDelay)}m.prototype.commands={Up:function(e){e.completer.goTo("up")},Down:function(e){e.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(e){e.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(e){e.completer.goTo("end")},Esc:function(e){e.completer.detach()},Return:function(e){return e.completer.insertMatch()},"Shift-Return":function(e){e.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(e){var t=e.completer.insertMatch();if(t||e.tabstopManager)return t;e.completer.goTo("down")},Backspace:function(e){e.execCommand("backspace"),!l.getCompletionPrefix(e)&&e.completer&&e.completer.detach()},PageUp:function(e){e.completer.popup.gotoPageUp()},PageDown:function(e){e.completer.popup.gotoPageDown()}},m.startCommand={name:"startAutocomplete",exec:function(e,t){var r=m.for(e);r.autoInsert=!1,r.autoSelect=!0,r.autoShown=!1,r.showPopup(e,t),r.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"},v.prototype.insertByIndex=function(e,t,r){return!(!this.completions||!this.completions.filtered)&&this.insertMatch(e,this.completions.filtered[t],r)},v.prototype.insertMatch=function(e,t,r){if(!t)return!1;if(e.startOperation({command:{name:"insertMatch"}}),t.completer&&t.completer.insertMatch)t.completer.insertMatch(e,t);else{if(!this.completions)return!1;var n=this.completions.filterText.length,i=0;if(t.range&&t.range.start.row===t.range.end.row&&(n=(n-=this.initialPosition.prefix.length)+(this.initialPosition.pos.column-t.range.start.column),i+=t.range.end.column-this.initialPosition.pos.column),n||i)for(var o,s=e.selection.getAllRanges?e.selection.getAllRanges():[e.getSelectionRange()],a=0;o=s[a];a++)o.start.column-=n,o.end.column+=i,e.session.remove(o);t.snippet?d.insertSnippet(e,t.snippet):this.$insertString(e,t),t.completer&&t.completer.onInsert&&"function"==typeof t.completer.onInsert&&t.completer.onInsert(e,t),t.command&&"startAutocomplete"===t.command&&e.execCommand(t.command)}return e.endOperation(),!0},v.prototype.$insertString=function(e,t){t=t.value||t,e.execCommand("insertstring",t)},v.prototype.gatherCompletions=function(e,t){var r=e.getSession(),n=e.getCursorPosition(),i=l.getCompletionPrefix(e),o=[],s=(this.completers=e.completers,e.completers.length);return e.completers.forEach(function(a,c){a.getCompletions(e,r,n,i,function(r,n){a.hideInlinePreview&&(n=n.map(function(e){return Object.assign(e,{hideInlinePreview:a.hideInlinePreview})})),!r&&n&&(o=o.concat(n)),t(null,{prefix:l.getCompletionPrefix(e),matches:o,finished:0==--s})})}),!0},v.prototype.provideCompletions=function(e,t,r){var n=function(e){var n=e.prefix;this.completions=new b(e.matches),t.exactMatch&&(this.completions.exactMatch=!0),t.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(n),(e.finished||this.completions.filtered.length)&&r(null,this.completions,e.finished)}.bind(this),i=!0,o=null;this.gatherCompletions(e,function(e,t){this.active&&(e&&(r(e,[],!0),this.detach()),0===t.prefix.indexOf(t.prefix))&&(i?o=t:n(t))}.bind(this)),i=!1,o&&(e=o,o=null,n(e))},v.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(e){"function"==typeof e.cancel&&e.cancel()})};var y=v;function v(e){this.initialPosition=e,this.active=!0}w.prototype.setFilter=function(e){t=e.length>this.filterText&&0===e.lastIndexOf(this.filterText,0)?this.filtered:this.all,this.filterText=e,t=(t=this.filterCompletions(t,this.filterText)).sort(function(e,t){return t.exactMatch-e.exactMatch||t.$score-e.$score||(e.caption||e.value).localeCompare(t.caption||t.value)});var t,r=null;t=t.filter(function(e){return(e=e.snippet||e.caption||e.value)!==r&&(r=e,!0)}),this.filtered=t},w.prototype.filterCompletions=function(e,t){var r=[],n=t.toUpperCase(),i=t.toLowerCase();e:for(var o,s=0;o=e[s];s++)if(o.skipFilter)r.push(o);else{var a=!this.ignoreCaption&&o.caption||o.value||o.snippet;if(a){var l=-1,c=0,u=0;if(this.exactMatch){if(t!==a.substr(0,t.length))continue}else{var d=a.toLowerCase().indexOf(i);if(-1<d)u=d;else for(var h=0;h<t.length;h++){var p=a.indexOf(i[h],l+1),f=a.indexOf(n[h],l+1);if((p=0<=p&&(f<0||p<f)?p:f)<0)continue e;0<(f=p-l-1)&&(-1===l&&(u+=10),u+=f,c|=1<<h),l=p}}o.matchMask=c,o.exactMatch=u?0:1,o.$score=(o.score||0)-u,r.push(o)}}return r};var b=w;function w(e,t){this.all=e,this.filtered=e,this.filterText=t||"",this.exactMatch=!1,this.ignoreCaption=!1}t.Autocomplete=m,t.CompletionProvider=y,t.FilteredList=b}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,t,r){var n=e("../range").Range,i=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;t.getCompletions=function(e,t,r,o,s){var a=function(e,t){var r=e.getTextRange(n.fromPoints({row:0,column:0},t)).split(i).length-1,o=e.getValue().split(i),s=Object.create(null),a=o[r];return o.forEach(function(e,t){e&&e!==a&&(t=Math.abs(r-t),t=o.length-t,s[e]?s[e]=Math.max(t,s[e]):s[e]=t)}),s}(t,r);s(null,Object.keys(a).map(function(e){return{caption:e,value:e,score:a[e],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,t,r){function n(e,t){g(t.session.$mode)}function i(e){var t=e.editor,r=t.completer&&t.completer.activated;"backspace"===e.command.name?r&&!u.getCompletionPrefix(t)&&t.completer.detach():"insertstring"!==e.command.name||r||((t=(o=e).editor.$liveAutocompletionDelay)?v.delay(t):b(e))}var o,s=e("../snippets").snippetManager,a=e("../autocomplete").Autocomplete,l=e("../config"),c=e("../lib/lang"),u=e("../autocomplete/util"),d=e("../autocomplete/text_completer"),h={getCompletions:function(e,t,r,n,i){if(t.$mode.completer)return t.$mode.completer.getCompletions(e,t,r,n,i);e=e.session.getState(r.row),i(null,t.$mode.getCompletions(e,t,r,n).map(function(e){return e.completerId=h.id,e}))},id:"keywordCompleter"},p={getCompletions:function(e,t,r,n,i){var o=[],a=((t=t.getTokenAt(r.row,r.column))&&t.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?o.push("html-tag"):o=s.getActiveScopes(e),s.snippetMap),l=[];o.forEach(function(e){for(var t=a[e]||[],r=t.length;r--;){var n=t[r],i=n.name||n.tabTrigger;i&&l.push({caption:i,snippet:n.content,meta:n.tabTrigger&&!n.name?n.tabTrigger+"⇥ ":"snippet",completerId:p.id})}},this),i(null,l)},getDocTooltip:function(e){var t;e.snippet&&!e.docHTML&&(e.docHTML=["<b>",c.escapeHTML(e.caption),"</b>","<hr></hr>",c.escapeHTML((e=e.snippet,t={},e.replace(/\${(\d+)(:(.*?))?}/g,function(e,r,n,i){return t[r]=i||""}).replace(/\$(\d+?)/g,function(e,r){return t[r]})))].join(""))},id:"snippetCompleter"},f=[p,d,h],m=(t.setCompleters=function(e){f.length=0,e&&f.push.apply(f,e)},t.addCompleter=function(e){f.push(e)},t.textCompleter=d,t.keyWordCompleter=h,t.snippetCompleter=p,{name:"expandSnippet",exec:function(e){return s.expandWithTab(e)},bindKey:"Tab"}),g=function(e){(e="string"==typeof e?l.$modes[e]:e)&&(s.files||(s.files={}),y(e.$id,e.snippetFileId),e.modes)&&e.modes.forEach(g)},y=function(e,t){t&&e&&!s.files[e]&&(s.files[e]={},l.loadModule(t,function(t){t&&(!(s.files[e]=t).snippets&&t.snippetText&&(t.snippets=s.parseSnippetFile(t.snippetText)),s.register(t.snippets||[],t.scope),t.includeScopes)&&(s.snippetMap[t.scope].includeScopes=t.includeScopes,t.includeScopes.forEach(function(e){g("ace/mode/"+e)}))}))},v=c.delayedCall(function(){b(o)},0),b=function(e){var t=e.editor,r=u.getCompletionPrefix(t);e=e.args,e=u.triggerAutocomplete(t,e),(r&&r.length>=t.$liveAutocompletionThreshold||e)&&((r=a.for(t)).autoShown=!0,r.showPopup(t))};d=e("../editor").Editor,e("../config").defineOptions(d.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:f),this.commands.addCommand(a.startCommand)):this.commands.removeCommand(a.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:f),this.commands.on("afterExec",i)):this.commands.off("afterExec",i)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(e){e?(this.commands.addCommand(m),this.on("changeMode",n),n(0,this)):(this.commands.removeCommand(m),this.off("changeMode",n))},value:!1}})}),ace.require(["ace/ext/language_tools"],function(t){e&&(e.exports=t)})},6534:function(e,t,r){e=r.nmd(e),ace.define("ace/ext/searchbox-css",["require","exports","module"],function(e,t,r){r.exports='\n\n/* ------------------------------------------------------------------------------------------\n * Editor Search Form\n * --------------------------------------------------------------------------------------- */\n.ace_search {\n background-color: #ddd;\n color: #666;\n border: 1px solid #cbcbcb;\n border-top: 0 none;\n overflow: hidden;\n margin: 0;\n padding: 4px 6px 0 4px;\n position: absolute;\n top: 0;\n z-index: 99;\n white-space: normal;\n}\n.ace_search.left {\n border-left: 0 none;\n border-radius: 0px 0px 5px 0px;\n left: 0;\n}\n.ace_search.right {\n border-radius: 0px 0px 0px 5px;\n border-right: 0 none;\n right: 0;\n}\n\n.ace_search_form, .ace_replace_form {\n margin: 0 20px 4px 0;\n overflow: hidden;\n line-height: 1.9;\n}\n.ace_replace_form {\n margin-right: 0;\n}\n.ace_search_form.ace_nomatch {\n outline: 1px solid red;\n}\n\n.ace_search_field {\n border-radius: 3px 0 0 3px;\n background-color: white;\n color: black;\n border: 1px solid #cbcbcb;\n border-right: 0 none;\n outline: 0;\n padding: 0;\n font-size: inherit;\n margin: 0;\n line-height: inherit;\n padding: 0 6px;\n min-width: 17em;\n vertical-align: top;\n min-height: 1.8em;\n box-sizing: content-box;\n}\n.ace_searchbtn {\n border: 1px solid #cbcbcb;\n line-height: inherit;\n display: inline-block;\n padding: 0 6px;\n background: #fff;\n border-right: 0 none;\n border-left: 1px solid #dcdcdc;\n cursor: pointer;\n margin: 0;\n position: relative;\n color: #666;\n}\n.ace_searchbtn:last-child {\n border-radius: 0 3px 3px 0;\n border-right: 1px solid #cbcbcb;\n}\n.ace_searchbtn:disabled {\n background: none;\n cursor: default;\n}\n.ace_searchbtn:hover {\n background-color: #eef1f6;\n}\n.ace_searchbtn.prev, .ace_searchbtn.next {\n padding: 0px 0.7em\n}\n.ace_searchbtn.prev:after, .ace_searchbtn.next:after {\n content: "";\n border: solid 2px #888;\n width: 0.5em;\n height: 0.5em;\n border-width: 2px 0 0 2px;\n display:inline-block;\n transform: rotate(-45deg);\n}\n.ace_searchbtn.next:after {\n border-width: 0 2px 2px 0 ;\n}\n.ace_searchbtn_close {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;\n border-radius: 50%;\n border: 0 none;\n color: #656565;\n cursor: pointer;\n font: 16px/16px Arial;\n padding: 0;\n height: 14px;\n width: 14px;\n top: 9px;\n right: 7px;\n position: absolute;\n}\n.ace_searchbtn_close:hover {\n background-color: #656565;\n background-position: 50% 100%;\n color: white;\n}\n\n.ace_button {\n margin-left: 2px;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -o-user-select: none;\n -ms-user-select: none;\n user-select: none;\n overflow: hidden;\n opacity: 0.7;\n border: 1px solid rgba(100,100,100,0.23);\n padding: 1px;\n box-sizing: border-box!important;\n color: black;\n}\n\n.ace_button:hover {\n background-color: #eee;\n opacity:1;\n}\n.ace_button:active {\n background-color: #ddd;\n}\n\n.ace_button.checked {\n border-color: #3399ff;\n opacity:1;\n}\n\n.ace_search_options{\n margin-bottom: 3px;\n text-align: right;\n -webkit-user-select: none;\n -moz-user-select: none;\n -o-user-select: none;\n -ms-user-select: none;\n user-select: none;\n clear: both;\n}\n\n.ace_search_counter {\n float: left;\n font-family: arial;\n padding: 0 8px;\n}'}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(e,t,r){var n=e("../lib/dom"),i=e("../lib/lang"),o=e("../lib/event"),s=e("./searchbox-css"),a=e("../keyboard/hash_handler").HashHandler,l=e("../lib/keys"),c=e("../config").nls,u=(n.importCssString(s,"ace_searchbox",!1),d.prototype.setEditor=function(e){e.searchBox=this,e.renderer.scroller.appendChild(this.element),this.editor=e},d.prototype.setSession=function(e){this.searchRange=null,this.$syncOptions(!0)},d.prototype.$initElements=function(e){this.searchBox=e.querySelector(".ace_search_form"),this.replaceBox=e.querySelector(".ace_replace_form"),this.searchOption=e.querySelector("[action=searchInSelection]"),this.replaceOption=e.querySelector("[action=toggleReplace]"),this.regExpOption=e.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=e.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=e.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=e.querySelector(".ace_search_counter")},d.prototype.$init=function(){var e=this.element,t=(this.$initElements(e),this);o.addListener(e,"mousedown",function(e){setTimeout(function(){t.activeInput.focus()},0),o.stopPropagation(e)}),o.addListener(e,"click",function(e){var r=(e.target||e.srcElement).getAttribute("action");r&&t[r]?t[r]():t.$searchBarKb.commands[r]&&t.$searchBarKb.commands[r].exec(t),o.stopPropagation(e)}),o.addCommandKeyListener(e,function(e,r,n){n=l.keyCodeToString(n),(r=t.$searchBarKb.findKeyCommand(r,n))&&r.exec&&(r.exec(t),o.stopEvent(e))}),this.$onChange=i.delayedCall(function(){t.find(!1,!1)}),o.addListener(this.searchInput,"input",function(){t.$onChange.schedule(20)}),o.addListener(this.searchInput,"focus",function(){t.activeInput=t.searchInput,t.searchInput.value&&t.highlight()}),o.addListener(this.replaceInput,"focus",function(){t.activeInput=t.replaceInput,t.searchInput.value&&t.highlight()})},d.prototype.setSearchRange=function(e){(this.searchRange=e)?this.searchRangeMarker=this.editor.session.addMarker(e,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},d.prototype.$syncOptions=function(e){n.setCssClass(this.replaceOption,"checked",this.searchRange),n.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",n.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),n.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),n.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var t=this.editor.getReadOnly();this.replaceOption.style.display=t?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!t?"":"none",this.find(!1,!1,e)},d.prototype.highlight=function(e){this.editor.session.highlight(e||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},d.prototype.find=function(e,t,r){e=!this.editor.find(this.searchInput.value,{skipCurrent:e,backwards:t,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:r,range:this.searchRange})&&this.searchInput.value,n.setCssClass(this.searchBox,"ace_nomatch",e),this.editor._emit("findSearchBox",{match:!e}),this.highlight(),this.updateCounter()},d.prototype.updateCounter=function(){var e=this.editor,t=e.$search.$options.re,r=t.unicode,n=0,o=0;if(t){var s,a,l=this.searchRange?e.session.getTextRange(this.searchRange):e.getValue(),u=e.session.doc.positionToIndex(e.selection.anchor);for(this.searchRange&&(u-=e.session.doc.positionToIndex(this.searchRange.start)),t.lastIndex=0;(a=t.exec(l))&&((s=a.index)<=u&&o++,!(999<++n))&&(a[0]||(t.lastIndex=s+=i.skipEmptyMatch(l,s,r),!(s>=l.length))););}this.searchCounter.textContent=c("search-box.search-counter","$0 of $1",[o,999<n?"999+":n])},d.prototype.findNext=function(){this.find(!0,!1)},d.prototype.findPrev=function(){this.find(!0,!0)},d.prototype.findAll=function(){var e=!this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked})&&this.searchInput.value;n.setCssClass(this.searchBox,"ace_nomatch",e),this.editor._emit("findSearchBox",{match:!e}),this.highlight(),this.hide()},d.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},d.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},d.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},d.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},d.prototype.show=function(e,t){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=t,e&&(this.searchInput.value=e),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},d.prototype.isFocused=function(){var e=document.activeElement;return e==this.searchInput||e==this.replaceInput},d);function d(e,t,r){this.activeInput;var i=n.createElement("div");n.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:c("search-box.find.placeholder","Search for"),spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},""],["span",{action:"findNext",class:"ace_searchbtn next"},""],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},c("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:c("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},c("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},c("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:c("search-box.toggle-replace.title","Toggle Replace mode"),style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:c("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:c("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:c("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:c("search-box.toggle-in-selection.title","Search In Selection")},"S"]]],i),this.element=i.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(e),n.importCssString(s,"ace_searchbox",e.container)}(e=new a).bindKeys({"Ctrl-f|Command-f":function(e){var t=e.isReplace=!e.isReplace;e.replaceBox.style.display=t?"":"none",e.replaceOption.checked=!1,e.$syncOptions(),e.searchInput.focus()},"Ctrl-H|Command-Option-F":function(e){e.editor.getReadOnly()||(e.replaceOption.checked=!0,e.$syncOptions(),e.replaceInput.focus())},"Ctrl-G|Command-G":function(e){e.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(e){e.findPrev()},esc:function(e){setTimeout(function(){e.hide()})},Return:function(e){e.activeInput==e.replaceInput&&e.replace(),e.findNext()},"Shift-Return":function(e){e.activeInput==e.replaceInput&&e.replace(),e.findPrev()},"Alt-Return":function(e){e.activeInput==e.replaceInput&&e.replaceAll(),e.findAll()},Tab:function(e){(e.activeInput==e.replaceInput?e.searchInput:e.replaceInput).focus()}}),e.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(e){e.regExpOption.checked=!e.regExpOption.checked,e.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(e){e.caseSensitiveOption.checked=!e.caseSensitiveOption.checked,e.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(e){e.wholeWordOption.checked=!e.wholeWordOption.checked,e.$syncOptions()}},{name:"toggleReplace",exec:function(e){e.replaceOption.checked=!e.replaceOption.checked,e.$syncOptions()}},{name:"searchInSelection",exec:function(e){e.searchOption.checked=!e.searchRange,e.setSearchRange(e.searchOption.checked&&e.editor.getSelectionRange()),e.$syncOptions()}}]),a=new a([{bindKey:"Esc",name:"closeSearchBar",exec:function(e){e.searchBox.hide()}}]),u.prototype.$searchBarKb=e,u.prototype.$closeSearchBarKb=a,t.SearchBox=u,t.Search=function(e,t){(e.searchBox||new u(e)).show(e.session.getTextRange(),t)}}),ace.require(["ace/ext/searchbox"],function(t){e&&(e.exports=t)})},6545:function(e,t,r){r.d(t,{t:function(){return l}});var n=r(1925),i=r(6237),o=r(3057);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(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,(e=>(e=(e=>{if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);if("object"!=s(t=t.call(e,"string")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")})(e),"symbol"==s(e)?e:e+""))(n.key),n)}}var l=(()=>{function e(t,r){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.dom={};var n=this,i=this.dom,s=((this.anchor=void 0,this.items=t,this.eventListeners={},this.selection=void 0,this.onClose=r?r.close:void 0,this.limitHeight=!!r&&r.limitHeight,r=document.createElement("div")).className="jsoneditor-contextmenu-root",i.root=r,document.createElement("div"));(s.className="jsoneditor-contextmenu",i.menu=s,r.appendChild(s),r=document.createElement("ul")).className="jsoneditor-menu",s.appendChild(r),i.list=r,i.items=[],((s=document.createElement("button")).type="button",i.focusButton=s,i=document.createElement("li")).style.overflow="hidden",i.style.height="0",i.appendChild(s),r.appendChild(i),function e(t,r,i){i.forEach(function(i){var s,a,l,c,u,d;"separator"===i.type?((u=document.createElement("div")).className="jsoneditor-separator",(a=document.createElement("li")).appendChild(u),t.appendChild(a)):(s={},u=document.createElement("li"),t.appendChild(u),(a=document.createElement("button")).type="button",a.className=i.className,s.button=a,i.title&&(a.title=i.title),i.click&&(a.onclick=function(e){e.preventDefault(),n.hide(),i.click()}),u.appendChild(a),i.submenu?((c=document.createElement("div")).className="jsoneditor-icon",a.appendChild(c),(c=document.createElement("div")).className="jsoneditor-text"+(i.click?"":" jsoneditor-right-margin"),c.appendChild(document.createTextNode(i.text)),a.appendChild(c),(l=i.click?(a.className+=" jsoneditor-default",(c=document.createElement("button")).type="button",(s.buttonExpand=c).className="jsoneditor-expand",(d=document.createElement("div")).className="jsoneditor-expand",c.appendChild(d),u.appendChild(c),i.submenuTitle&&(c.title=i.submenuTitle),c):((d=document.createElement("div")).className="jsoneditor-expand",a.appendChild(d),a)).onclick=function(e){e.preventDefault(),n._onExpandItem(s),l.focus()},s.subItems=c=[],d=document.createElement("ul"),(s.ul=d).className="jsoneditor-menu",d.style.height="0",u.appendChild(d),e(d,c,i.submenu)):((u=document.createElement("div")).className="jsoneditor-icon",a.appendChild(u),(d=document.createElement("div")).className="jsoneditor-text",d.appendChild(document.createTextNode((0,o.Tl)(i.text))),a.appendChild(d)),r.push(s))})}(r,this.dom.items,t),this.maxHeight=0,t.forEach(function(e){e=24*(t.length+(e.submenu?e.submenu.length:0)),n.maxHeight=Math.max(n.maxHeight,e)})}return t=e,(r=[{key:"_getVisibleButtons",value:function(){var e=[],t=this;return this.dom.items.forEach(function(r){e.push(r.button),r.buttonExpand&&e.push(r.buttonExpand),r.subItems&&r===t.expandedItem&&r.subItems.forEach(function(t){e.push(t.button),t.buttonExpand&&e.push(t.buttonExpand)})}),e}},{key:"show",value:function(t,r,o){this.hide();var s=!0,a=t.parentNode,l=t.getBoundingClientRect(),c=(a=a.getBoundingClientRect(),r.getBoundingClientRect()),u=this;this.dom.absoluteAnchor=(0,n.p)(t,r,function(){u.hide()}),l.bottom+this.maxHeight<c.bottom||l.top-this.maxHeight>c.top&&(s=!1),r=o?0:l.top-a.top,s?(o=t.offsetHeight,this.dom.menu.style.left="0",this.dom.menu.style.top=r+o+"px",this.dom.menu.style.bottom=""):(this.dom.menu.style.left="0",this.dom.menu.style.top="",this.dom.menu.style.bottom="0px"),this.limitHeight&&(a=s?c.bottom-l.bottom-10:l.top-c.top-10,this.dom.list.style.maxHeight=a+"px",this.dom.list.style.overflowY="auto"),this.dom.absoluteAnchor.appendChild(this.dom.root),this.selection=(0,i.getSelection)(),this.anchor=t,setTimeout(function(){u.dom.focusButton.focus()},0),e.visibleMenu&&e.visibleMenu.hide(),e.visibleMenu=this}},{key:"hide",value:function(){this.dom.absoluteAnchor&&(this.dom.absoluteAnchor.destroy(),delete this.dom.absoluteAnchor),this.dom.root.parentNode&&(this.dom.root.parentNode.removeChild(this.dom.root),this.onClose)&&this.onClose(),e.visibleMenu===this&&(e.visibleMenu=void 0)}},{key:"_onExpandItem",value:function(e){var t,r=this,n=e===this.expandedItem,o=this.expandedItem;o&&(o.ul.style.height="0",o.ul.style.padding="",setTimeout(function(){r.expandedItem!==o&&(o.ul.style.display="",i.removeClassName)(o.ul.parentNode,"jsoneditor-selected")},300),this.expandedItem=void 0),n||((t=e.ul).style.display="block",setTimeout(function(){if(r.expandedItem===e){for(var n=0,i=0;i<t.childNodes.length;i++)n+=t.childNodes[i].clientHeight;t.style.height=n+"px",t.style.padding="5px 10px"}},0),(0,i.addClassName)(t.parentNode,"jsoneditor-selected"),this.expandedItem=e)}},{key:"_onKeyDown",value:function(e){var t,r,n,o,s=e.target,a=e.which,l=!1;27===a?(this.selection&&(0,i.setSelection)(this.selection),this.anchor&&this.anchor.focus(),this.hide(),l=!0):9===a?e.shiftKey?0===(r=(t=this._getVisibleButtons()).indexOf(s))&&(t[t.length-1].focus(),l=!0):(r=(t=this._getVisibleButtons()).indexOf(s))===t.length-1&&(t[0].focus(),l=!0):37===a?("jsoneditor-expand"===s.className&&(r=(t=this._getVisibleButtons()).indexOf(s),n=t[r-1])&&n.focus(),l=!0):38===a?(r=(t=this._getVisibleButtons()).indexOf(s),(n=(n=(n=t[r-1])&&"jsoneditor-expand"===n.className?t[r-2]:n)||t[t.length-1])&&n.focus(),l=!0):39===a?(r=(t=this._getVisibleButtons()).indexOf(s),(o=t[r+1])&&"jsoneditor-expand"===o.className&&o.focus(),l=!0):40===a&&(r=(t=this._getVisibleButtons()).indexOf(s),(o=(o=(o=t[r+1])&&"jsoneditor-expand"===o.className?t[r+2]:o)||t[0])&&(o.focus(),l=!0),l=!0),l&&(e.stopPropagation(),e.preventDefault())}}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r})();l.visibleMenu=void 0},6777:function(e,t){(e=>{function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1<t.length){t[0]=t[0].slice(0,-1);for(var n=t.length-1,i=1;i<n;++i)t[i]=t[i].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function i(e){return e.toUpperCase()}function o(e){var n="[A-Za-z]",i="[0-9]",o=t(i,"[A-Fa-f]"),s=r(r("%[EFef]"+o+"%"+o+o+"%"+o+o)+"|"+r("%[89A-Fa-f]"+o+"%"+o+o)+"|"+r("%"+o+o)),a="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",l=t("[\\:\\/\\?\\#\\[\\]\\@]",a),c=e?"[\\uE000-\\uF8FF]":"[]",u=(e=t(n,i,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),r(n+t(n,i,"[\\+\\-\\.]")+"*"),r(r(s+"|"+t(e,a,"[\\:]"))+"*"),"(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9][0-9])|(?:0?[1-9][0-9])|0?0?[0-9])"),d=(u=r(u+"\\."+u+"\\."+u+"\\."+u),r(o+"{1,4}")),h=r(r(d+"\\:"+d)+"|"+u),p=r(r(d+"\\:")+"{6}"+h),f=r("\\:\\:"+r(d+"\\:")+"{5}"+h),m=r(r(d)+"?\\:\\:"+r(d+"\\:")+"{4}"+h),g=r(r(r(d+"\\:")+"{0,1}"+d)+"?\\:\\:"+r(d+"\\:")+"{3}"+h),y=r(r(r(d+"\\:")+"{0,2}"+d)+"?\\:\\:"+r(d+"\\:")+"{2}"+h),v=r(r(r(d+"\\:")+"{0,3}"+d)+"?\\:\\:"+d+"\\:"+h),b=(h=r(r(r(d+"\\:")+"{0,4}"+d)+"?\\:\\:"+h),r(r(r(d+"\\:")+"{0,5}"+d)+"?\\:\\:"+d));return d=r(r(r(d+"\\:")+"{0,6}"+d)+"?\\:\\:"),p=r([p,f,m,g,y,v,h,b,d].join("|")),f=r(r(e+"|"+s)+"+"),r("[vV]"+o+"+\\."+t(e,a,"[\\:]")+"+"),r(r(s+"|"+t(e,a))+"*"),m=r(s+"|"+t(e,a,"[\\:\\@]")),r(r(s+"|"+t(e,a,"[\\@]"))+"+"),r(r(m+"|"+t("[\\/\\?]",c))+"*"),{NOT_SCHEME:new RegExp(t("[^]",n,i,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",e,a),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",e,a),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",e,a),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",e,a),"g"),NOT_QUERY:new RegExp(t("[^\\%]",e,a,"[\\:\\@\\/\\?]",c),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",e,a,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",e,a),"g"),UNRESERVED:new RegExp(e,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",e,l),"g"),PCT_ENCODED:new RegExp(s,"g"),IPV4ADDRESS:new RegExp("^("+u+")$"),IPV6ADDRESS:new RegExp("^\\[?("+p+")"+r(r("\\%25|\\%(?!"+o+"{2})")+"("+f+")")+"?\\]?$")}}var s=o(!1),a=o(!0),l=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var r=t,n=[],i=!0,o=void(t=!1);try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!r||n.length!==r);i=!0);}catch(e){t=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(t)throw o}}return n}throw new TypeError("Invalid attempt to destructure non-iterable instance")},c=2147483647,u=36,d=/^xn--/,h=/[^\0-\x7E]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=Math.floor,g=String.fromCharCode;function y(e){throw new RangeError(f[e])}function v(e,t){var r="",n=(1<(n=e.split("@")).length&&(r=n[0]+"@",e=n[1]),(e=e.replace(p,".")).split("."));return r+((e,t)=>{for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r})(n,t).join(".")}function b(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,r){var n=0;for(e=r?m(e/700):e>>1,e+=m(e/t);455<e;n+=u)e=m(e/35);return m(n+36*e/(e+38))}var x=function(e){return v(e,function(e){return h.test(e)?"xn--"+function(e){var t=[],r=(e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i,o=e.charCodeAt(r++);55296<=o&&o<=56319&&r<n?56320==(64512&(i=e.charCodeAt(r++)))?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),r--):t.push(o)}return t}(e)).length,n=128,i=0,o=72,s=!0,a=!1,l=void 0;try{for(var d,h=e[Symbol.iterator]();!(s=(d=h.next()).done);s=!0){var p=d.value;p<128&&t.push(g(p))}}catch(e){a=!0,l=e}finally{try{!s&&h.return&&h.return()}finally{if(a)throw l}}var f=t.length,v=f;for(f&&t.push("-");v<r;){var x=c,A=!0,C=!1,S=void 0;try{for(var I,k=e[Symbol.iterator]();!(A=(I=k.next()).done);A=!0){var E=I.value;n<=E&&E<x&&(x=E)}}catch(e){C=!0,S=e}finally{try{!A&&k.return&&k.return()}finally{if(C)throw S}}var T=v+1,$=(x-n>m((c-i)/T)&&y("overflow"),i+=(x-n)*T,n=x,!0);C=!1,S=void 0;try{for(var _,R=e[Symbol.iterator]();!($=(_=R.next()).done);$=!0){var O=_.value;if(O<n&&++i>c&&y("overflow"),O==n){for(var P=i,M=u;;M+=u){var L=M<=o?1:o+26<=M?26:M-o;if(P<L)break;var j=P-L,N=u-L;t.push(g(b(L+j%N,0))),P=m(j/N)}t.push(g(b(P,0))),o=w(i,T,v==f),i=0,++v}}}catch(e){C=!0,S=e}finally{try{!$&&R.return&&R.return()}finally{if(C)throw S}}++i,++n}return t.join("")}(e):e})},A=function(e){return v(e,function(e){return d.test(e)?function(e){var t=[],r=e.length,n=0,i=128,o=72,s=e.lastIndexOf("-");s<0&&(s=0);for(var a=0;a<s;++a)128<=e.charCodeAt(a)&&y("not-basic"),t.push(e.charCodeAt(a));for(var l=0<s?s+1:0;l<r;){for(var d=n,h=1,p=u;;p+=u){r<=l&&y("invalid-input");var f=(f=e.charCodeAt(l++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:u,g=((u<=f||f>m((c-n)/h))&&y("overflow"),n+=f*h,p<=o?1:o+26<=p?26:p-o);if(f<g)break;h>m(c/(f=u-g))&&y("overflow"),h*=f}var v=t.length+1;o=w(n-d,v,0==d),m(n/v)>c-i&&y("overflow"),i+=m(n/v),n%=v,t.splice(n++,0,i)}return String.fromCodePoint.apply(String,t)}(e.slice(4).toLowerCase()):e})},C={};function S(e){return(e=e.charCodeAt(0))<16?"%0"+e.toString(16).toUpperCase():e<128?"%"+e.toString(16).toUpperCase():e<2048?"%"+(e>>6|192).toString(16).toUpperCase()+"%"+(63&e|128).toString(16).toUpperCase():"%"+(e>>12|224).toString(16).toUpperCase()+"%"+(e>>6&63|128).toString(16).toUpperCase()+"%"+(63&e|128).toString(16).toUpperCase()}function I(e){for(var t="",r=0,n=e.length;r<n;){var i,o,s=parseInt(e.substr(r+1,2),16);s<128?(t+=String.fromCharCode(s),r+=3):194<=s&&s<224?(6<=n-r?(i=parseInt(e.substr(r+4,2),16),t+=String.fromCharCode((31&s)<<6|63&i)):t+=e.substr(r,6),r+=6):224<=s?(9<=n-r?(i=parseInt(e.substr(r+4,2),16),o=parseInt(e.substr(r+7,2),16),t+=String.fromCharCode((15&s)<<12|(63&i)<<6|63&o)):t+=e.substr(r,9),r+=9):(t+=e.substr(r,3),r+=3)}return t}function k(e,t){function r(e){var r=I(e);return r.match(t.UNRESERVED)?r:e}e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,S).replace(t.PCT_ENCODED,i)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,S).replace(t.PCT_ENCODED,i)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,S).replace(t.PCT_ENCODED,i)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,S).replace(t.PCT_ENCODED,i)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,S).replace(t.PCT_ENCODED,i))}function E(e){return e.replace(/^0*(.*)/,"$1")||"0"}function T(e,t){return t=e.match(t.IPV4ADDRESS)||[],(t=l(t,2)[1])?t.split(".").map(E).join("."):e}function $(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=(r=l(r,3))[1];if(r=r[2],n){n=n.toLowerCase().split("::").reverse();for(var i=(n=l(n,2))[0],o=(n=n[1])?n.split(":").map(E):[],s=i.split(":").map(E),a=(n=t.IPV4ADDRESS.test(s[s.length-1]))?7:8,c=s.length-a,u=Array(a),d=0;d<a;++d)u[d]=o[d]||s[c+d]||"";return n&&(u[a-1]=T(u[a-1],t)),i=u.reduce(function(e,t,r){return t&&"0"!==t||((t=e[e.length-1])&&t.index+t.length===r?t.length++:e.push({index:r,length:1})),e},[]).sort(function(e,t){return t.length-e.length})[0],n=void 0,n=i&&1<i.length?(t=u.slice(0,i.index),i=u.slice(i.index+i.length),t.join(":")+"::"+i.join(":")):u.join(":"),r&&(n+="%"+r),n}return e}var _=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,R=void 0==="".match(/(){0}/)[1];function O(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?a:s,i=(e="suffix"===t.reference?(t.scheme?t.scheme+":":"")+"//"+e:e).match(_);if(i){if(R?(r.scheme=i[1],r.userinfo=i[3],r.host=i[4],r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=i[7],r.fragment=i[8],isNaN(r.port)&&(r.port=i[5])):(r.scheme=i[1]||void 0,r.userinfo=-1!==e.indexOf("@")?i[3]:void 0,r.host=-1!==e.indexOf("//")?i[4]:void 0,r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=-1!==e.indexOf("?")?i[7]:void 0,r.fragment=-1!==e.indexOf("#")?i[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:void 0)),r.host&&(r.host=$(T(r.host,n),n)),r.reference=void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?"relative":void 0===r.fragment?"absolute":"uri":"same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference."),e=C[(t.scheme||r.scheme||"").toLowerCase()],t.unicodeSupport||e&&e.unicodeSupport)k(r,n);else{if(r.host&&(t.domainHost||e&&e.domainHost))try{r.host=x(r.host.replace(n.PCT_ENCODED,I).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}k(r,s)}e&&e.parse&&e.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}var P=/^\.\.?\//,M=/^\/\.(\/|$)/,L=/^\/\.\.(\/|$)/,j=/^\/?(?:.|\n)*?(?=\/|$)/;function N(e){for(var t=[];e.length;)if(e.match(P))e=e.replace(P,"");else if(e.match(M))e=e.replace(M,"/");else if(e.match(L))e=e.replace(L,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(j);if(!r)throw new Error("Unexpected dot segment condition");r=r[0],e=e.slice(r.length),t.push(r)}return t.join("")}function F(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?a:s,n=[],i=C[(t.scheme||e.scheme||"").toLowerCase()];if(i&&i.serialize&&i.serialize(e,t),e.host&&!r.IPV6ADDRESS.test(e.host)&&(t.domainHost||i&&i.domainHost))try{e.host=t.iri?A(e.host):x(e.host.replace(r.PCT_ENCODED,I).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}k(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":")),r=e,l=!1!==(l=t).iri?a:s,o=[],void 0!==r.userinfo&&(o.push(r.userinfo),o.push("@")),void 0!==r.host&&o.push($(T(String(r.host),l),l).replace(l.IPV6ADDRESS,function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"})),"number"!=typeof r.port&&"string"!=typeof r.port||(o.push(":"),o.push(String(r.port)));var o,l=o.length?o.join(""):void 0;return void 0!==l&&("suffix"!==t.reference&&n.push("//"),n.push(l),e.path)&&"/"!==e.path.charAt(0)&&n.push("/"),void 0!==e.path&&(r=e.path,t.absolutePath||i&&i.absolutePath||(r=N(r)),void 0===l&&(r=r.replace(/^\/\//,"/%2F")),n.push(r)),void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function D(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=O(F(e,r),r),t=O(F(t,r),r)),!(r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=N(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=N(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=N(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=N(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function B(e,t){return e&&e.toString().replace((t&&t.iri?a:s).PCT_ENCODED,I)}var z={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},W={scheme:"https",domainHost:z.domainHost,parse:z.parse,serialize:z.serialize};function H(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var V={scheme:"ws",domainHost:!0,parse:function(e,t){return e.secure=H(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e,t){var r,n;return e.port!==(H(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName&&(n=e.resourceName.split("?"),r=(n=l(n,2))[0],n=n[1],e.path=r&&"/"!==r?r:void 0,e.query=n,e.resourceName=void 0),e.fragment=void 0,e}},G={scheme:"wss",domainHost:V.domainHost,parse:V.parse,serialize:V.serialize},U={},Z="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",K=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Y=new RegExp(Z,"g"),q=new RegExp("(?:(?:%[EFef][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f])|(?:%[89A-Fa-f][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f])|(?:%[0-9A-Fa-f][0-9A-Fa-f]))","g"),X=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',K),"g"),J=new RegExp(t("[^]",Z,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),Q=J;function ee(e){var t=I(e);return t.match(Y)?t:e}K={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var i=!1,o={},s=r.query.split("&"),a=0,l=s.length;a<l;++a){var c=s[a].split("=");switch(c[0]){case"to":for(var u=c[1].split(","),d=0,h=u.length;d<h;++d)n.push(u[d]);break;case"subject":r.subject=B(c[1],t);break;case"body":r.body=B(c[1],t);break;default:i=!0,o[B(c[0],t)]=B(c[1],t)}}i&&(r.headers=o)}r.query=void 0;for(var p=0,f=n.length;p<f;++p){var m=n[p].split("@");if(m[0]=B(m[0]),t.unicodeSupport)m[1]=B(m[1],t).toLowerCase();else try{m[1]=x(B(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[p]=m.join("@")}return r},serialize:function(e,t){var r,n=e,o=null!=(r=e.to)?r instanceof Array?r:"number"!=typeof r.length||r.split||r.setInterval||r.call?[r]:Array.prototype.slice.call(r):[];if(o){for(var s=0,a=o.length;s<a;++s){var l=(u=String(o[s])).lastIndexOf("@"),c=u.slice(0,l).replace(q,ee).replace(q,i).replace(X,S),u=u.slice(l+1);try{u=t.iri?A(u):x(B(u,t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}o[s]=c+"@"+u}n.path=o.join(",")}var d,h=e.headers=e.headers||{},p=(e.subject&&(h.subject=e.subject),e.body&&(h.body=e.body),[]);for(d in h)h[d]!==U[d]&&p.push(d.replace(q,ee).replace(q,i).replace(J,S)+"="+h[d].replace(q,ee).replace(q,i).replace(Q,S));return p.length&&(n.query=p.join("&")),n}};var te=/^([^\:]+)\:(.*)/,re=(Z={scheme:"urn",parse:function(e,t){var r,n,i=e.path&&e.path.match(te);return i?(n=t.scheme||e.scheme||"urn",r=i[1].toLowerCase(),i=i[2],n=n+":"+(t.nid||r),n=C[n],e.nid=r,e.nss=i,e.path=void 0,n&&(e=n.parse(e,t))):e.error=e.error||"URN can not be parsed.",e},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid;return r=e=(r=C[r+":"+(t.nid||n)])?r.serialize(e,t):e,e=e.nss,r.path=(n||t.nid)+":"+e,r}},/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/),ne={scheme:"urn:uuid",parse:function(e,t){return e.uuid=e.nss,e.nss=void 0,t.tolerant||e.uuid&&e.uuid.match(re)||(e.error=e.error||"UUID is not valid."),e},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};C[z.scheme]=z,C[W.scheme]=W,C[V.scheme]=V,C[G.scheme]=G,C[K.scheme]=K,C[Z.scheme]=Z,C[ne.scheme]=ne,e.SCHEMES=C,e.pctEncChar=S,e.pctDecChars=I,e.parse=O,e.removeDotSegments=N,e.serialize=F,e.resolveComponents=D,e.resolve=function(e,t,r){return r=((e,t)=>{var r={scheme:"null"};if(t)for(var n in t)r[n]=t[n];return r})(0,r),F(D(O(e,r),O(t,r),r,!0),r)},e.normalize=function(e,t){return"string"==typeof e?e=F(O(e,t),t):"object"===n(e)&&(e=O(F(e,t),t)),e},e.equal=function(e,t,r){return"string"==typeof e?e=F(O(e,r),r):"object"===n(e)&&(e=F(e,r)),"string"==typeof t?t=F(O(t,r),r):"object"===n(t)&&(t=F(t,r)),e===t},e.escapeComponent=function(e,t){return e&&e.toString().replace((t&&t.iri?a:s).ESCAPE,S)},e.unescapeComponent=B,Object.defineProperty(e,"__esModule",{value:!0})})(t)},6801:function(e){e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-06/schema#","$id":"http://json-schema.org/draft-06/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"examples":{"type":"array","items":{}},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":{},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":{}}')},6862:function(e,t,r){function n(e,t,r,n){var i=n?" !== ":" === ",o=n?" || ":" && ",s=n?"!":"",a=n?"":"!";switch(e){case"null":return t+i+"null";case"array":return s+"Array.isArray("+t+")";case"object":return"("+s+t+o+"typeof "+t+i+'"object"'+o+a+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+i+'"number"'+o+a+"("+t+" % 1)"+o+t+i+t+(r?o+s+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+i+'"'+e+'"'+(r?o+s+"isFinite("+t+")":"")+")";default:return"typeof "+t+i+'"'+e+'"'}}e.exports={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:n,checkDataTypes:function(e,t,r){if(1===e.length)return n(e[0],t,r,!0);var i,s="";for(i in(e=o(e)).array&&e.object&&(s=e.null?"(":"(!"+t+" || ",s+="typeof "+t+' !== "object")',delete e.null,delete e.array,delete e.object),e.number&&delete e.integer,e)s+=(s?" && ":"")+n(i,t,r,!0);return s},coerceToTypes:function(e,t){if(!Array.isArray(t))return i[t]?[t]:"array"===e&&"array"===t?["array"]:void 0;for(var r=[],n=0;n<t.length;n++){var o=t[n];(i[o]||"array"===e&&"array"===o)&&(r[r.length]=o)}return r.length?r:void 0},toHash:o,getProperty:l,escapeQuotes:c,equal:r(5215),ucs2length:r(611),varOccurences:function(e,t){return t+="[^0-9]",(e=e.match(new RegExp(t,"g")))?e.length:0},varReplace:function(e,t,r){return t+="([^0-9])",r=r.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),r+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var r in e)if(t[r])return!0},schemaHasRulesExcept:function(e,t,r){if("boolean"==typeof e)return!e&&"not"!=r;for(var n in e)if(n!=r&&t[n])return!0},schemaUnknownRules:function(e,t){if("boolean"!=typeof e)for(var r in e)if(!t[r])return r},toQuotedString:u,getPathExpr:function(e,t,r,n){return p(e,r?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,r){return p(e,r=u(r?"/"+f(t):l(t)))},getData:function(e,t,r){var n,i,o;if(""===e)return"rootData";if("/"==e[0]){if(!d.test(e))throw new Error("Invalid JSON-pointer: "+e);n=e,i="rootData"}else{if(!(o=e.match(h)))throw new Error("Invalid JSON-pointer: "+e);if(e=+o[1],"#"==(n=o[2])){if(t<=e)throw new Error("Cannot access property/index "+e+" levels up, current level is "+t);return r[t-e]}if(t<e)throw new Error("Cannot access data "+e+" levels up, current level is "+t);if(i="data"+(t-e||""),!n)return i}for(var s=i,a=n.split("/"),c=0;c<a.length;c++){var u=a[c];u&&(s+=" && "+(i+=l(m(u))))}return s},unescapeFragment:function(e){return m(decodeURIComponent(e))},unescapeJsonPointer:m,escapeFragment:function(e){return encodeURIComponent(f(e))},escapeJsonPointer:f};var i=o(["string","number","integer","boolean","null"]);function o(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var s=/^[a-z$_][a-z$_0-9]*$/i,a=/'|\\/g;function l(e){return"number"==typeof e?"["+e+"]":s.test(e)?"."+e:"['"+c(e)+"']"}function c(e){return e.replace(a,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function u(e){return"'"+c(e)+"'"}var d=/^\/(?:[^~]|~0|~1)*$/,h=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function p(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function f(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function m(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},6990:function(e,t,r){var n,i,o,s,a,l,c,u;e=r.nmd(e),(o=function(){return this}())||"undefined"==typeof window||(o=window),(s=function(e,t,r){"string"!=typeof e?s.original?s.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace()):(2==arguments.length&&(r=t),s.modules[e]||(s.payloads[e]=r,s.modules[e]=null))}).modules={},s.payloads={},a=function(e,t,r){if("string"==typeof t){var n=u(e,t);if(null!=n)return r&&r(),n}else if("[object Array]"===Object.prototype.toString.call(t)){for(var i=[],o=0,s=t.length;o<s;++o){var a=u(e,t[o]);if(null==a&&l.original)return;i.push(a)}return r&&r.apply(null,i)||!0}},l=function(e,t){return null==(e=a("",e,t))&&l.original?l.original.apply(this,arguments):e},c=function(e,t){var r;if(-1!==t.indexOf("!"))return r=t.split("!"),c(e,r[0])+"!"+c(e,r[1]);if("."==t.charAt(0))for(t=e.split("/").slice(0,-1).join("/")+"/"+t;-1!==t.indexOf(".")&&n!=t;){var n=t;t=t.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return t},u=function(e,t){var r,n;return t=c(e,t),(e=s.modules[t])||("function"==typeof(e=s.payloads[t])&&(r={id:t,uri:"",exports:n={},packaged:!0},n=e(function(e,r){return a(t,e,r)},n,r)||r.exports,s.modules[t]=n,delete s.payloads[t]),e=s.modules[t]=n||e),e},i=o,(n="ace")&&(o[n]||(o[n]={}),i=o[n]),i.define&&i.define.packaged||(s.original=i.define,i.define=s,i.define.packaged=!0),i.require&&i.require.packaged||(l.original=i.require,i.require=l,i.require.packaged=!0),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,t,r){function n(e,t,r){Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||n(String.prototype,"startsWith",function(e,t){return this.lastIndexOf(e,t=t||0)===t}),String.prototype.endsWith||n(String.prototype,"endsWith",function(e,t){return(void 0===t||t>this.length)&&(t=this.length),t-=e.length,-1!==(e=this.indexOf(e,t))&&e===t}),String.prototype.repeat||n(String.prototype,"repeat",function(e){for(var t="",r=this;0<e;)1&e&&(t+=r),(e>>=1)&&(r+=r);return t}),String.prototype.includes||n(String.prototype,"includes",function(e,t){return-1!=this.indexOf(e,t)}),Object.assign||(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1;r<arguments.length;r++){var n=arguments[r];null!=n&&Object.keys(n).forEach(function(e){t[e]=n[e]})}return t}),Object.values||(Object.values=function(e){return Object.keys(e).map(function(t){return e[t]})}),Array.prototype.find||n(Array.prototype,"find",function(e){for(var t=this.length,r=arguments[1],n=0;n<t;n++){var i=this[n];if(e.call(r,i,n,this))return i}}),Array.prototype.findIndex||n(Array.prototype,"findIndex",function(e){for(var t=this.length,r=arguments[1],n=0;n<t;n++){var i=this[n];if(e.call(r,i,n,this))return n}}),Array.prototype.includes||n(Array.prototype,"includes",function(e,t){return-1!=this.indexOf(e,t)}),Array.prototype.fill||n(Array.prototype,"fill",function(e){for(var t,r=this.length>>>0,n=(t=0|arguments[1])<0?Math.max(r+t,0):Math.min(t,r),i=(t=void 0===(t=arguments[2])?r:0|t)<0?Math.max(r+t,0):Math.min(t,r);n<i;)this[n]=e,n++;return this}),Array.of||n(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(e,t,r){e("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(e,t,r){t.deepCopy=function e(t){if("object"!=typeof t||!t)return t;if(Array.isArray(t))for(var r=[],n=0;n<t.length;n++)r[n]=e(t[n]);else{if("[object Object]"!==Object.prototype.toString.call(t))return t;for(var n in r={},t)r[n]=e(t[n])}return r}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,t,r){t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){for(var r="";0<t;)1&t&&(r+=e),(t>>=1)&&(e+=e);return r};var n=/^\s\s*/,i=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(n,"")},t.stringTrimRight=function(e){return e.replace(i,"")},t.copyObject=function(e){var t,r={};for(t in e)r[t]=e[t];return r},t.copyArray=function(e){for(var t=[],r=0,n=e.length;r<n;r++)e[r]&&"object"==typeof e[r]?t[r]=this.copyObject(e[r]):t[r]=e[r];return t},t.deepCopy=e("./deep_copy").deepCopy,t.arrayToMap=function(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=1;return t},t.createMap=function(e){var t,r=Object.create(null);for(t in e)r[t]=e[t];return r},t.arrayRemove=function(e,t){for(var r=0;r<=e.length;r++)t===e[r]&&e.splice(r,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return(""+e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},t.getMatchOffsets=function(e,t){var r=[];return e.replace(t,function(e){r.push({offset:arguments[arguments.length-2],length:e.length})}),r},t.deferredCall=function(e){function t(){n=null,e()}function r(e){return r.cancel(),n=setTimeout(t,e||0),r}var n=null;return(r.schedule=r).call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(n),n=null,r},r.isPending=function(){return n},r},t.delayedCall=function(e,t){function r(){i=null,e()}function n(e){null==i&&(i=setTimeout(r,e||t))}var i=null;return n.delay=function(e){i&&clearTimeout(i),i=setTimeout(r,e||t)},(n.schedule=n).call=function(){this.cancel(),e()},n.cancel=function(){i&&clearTimeout(i),i=null},n.isPending=function(){return i},n},t.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch(e){return!1}return!0},t.skipEmptyMatch=function(e,t,r){return r&&65535<e.codePointAt(t)?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,t,r){t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS};var n="object"==typeof navigator?navigator:{},i=(/mac|win|linux/i.exec(n.platform)||["other"])[0].toLowerCase(),o=n.userAgent||"";n=n.appName||"",t.isWin="win"==i,t.isMac="mac"==i,t.isLinux="linux"==i,t.isIE="Microsoft Internet Explorer"==n||0<=n.indexOf("MSAppHost")?parseFloat((o.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((o.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=o.match(/ Gecko\/\d+/),t.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(o.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(o.split(" Chrome/")[1])||void 0,t.isSafari=parseFloat(o.split(" Safari/")[1])&&!t.isChrome||void 0,t.isEdge=parseFloat(o.split(" Edge/")[1])||void 0,t.isAIR=0<=o.indexOf("AdobeAIR"),t.isAndroid=0<=o.indexOf("Android"),t.isChromeOS=0<=o.indexOf(" CrOS "),t.isIOS=/iPad|iPhone|iPod/.test(o)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIOS||t.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,t,r){e=e("./useragent");var n,i,o=(t.buildDom=function e(t,r,n){if("string"==typeof t&&t)return c=document.createTextNode(t),r&&r.appendChild(c),c;if(!Array.isArray(t))return t&&t.appendChild&&r&&r.appendChild(t),t;if("string"!=typeof t[0]||!t[0]){for(var i=[],o=0;o<t.length;o++){var s=e(t[o],r,n);s&&i.push(s)}return i}var a=document.createElement(t[0]),l=t[1],c=1;for(o=c=l&&"object"==typeof l&&!Array.isArray(l)?2:c;o<t.length;o++)e(t[o],a,n);return 2==c&&Object.keys(l).forEach(function(e){var t=l[e];"class"===e?a.className=Array.isArray(t)?t.join(" "):t:"function"==typeof t||"value"==e||"$"==e[0]?a[e]=t:"ref"===e?n&&(n[t]=a):"style"===e?"string"==typeof t&&(a.style.cssText=t):null!=t&&a.setAttribute(e,t)}),r&&r.appendChild(a),a},t.getDocumentHead=function(e){return(e=e||document).head||e.getElementsByTagName("head")[0]||e.documentElement},t.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||"http://www.w3.org/1999/xhtml",e):document.createElement(e)},t.removeChildren=function(e){e.innerHTML=""},t.createTextNode=function(e,t){return(t?t.ownerDocument:document).createTextNode(e)},t.createFragment=function(e){return(e?e.ownerDocument:document).createDocumentFragment()},t.hasCssClass=function(e,t){return-1!==(e.className+"").split(/\s+/g).indexOf(t)},t.addCssClass=function(e,r){t.hasCssClass(e,r)||(e.className+=" "+r)},t.removeCssClass=function(e,t){for(var r=e.className.split(/\s+/g);;){var n=r.indexOf(t);if(-1==n)break;r.splice(n,1)}e.className=r.join(" ")},t.toggleCssClass=function(e,t){for(var r=e.className.split(/\s+/g),n=!0;;){var i=r.indexOf(t);if(-1==i)break;n=!1,r.splice(i,1)}return n&&r.push(t),e.className=r.join(" "),n},t.setCssClass=function(e,r,n){n?t.addCssClass(e,r):t.removeCssClass(e,r)},t.hasCssString=function(e,t){var r,n=0;if(r=(t=t||document).querySelectorAll("style"))for(;n<r.length;)if(r[n++].id===e)return!0},t.removeElementById=function(e,t){(t=t||document).getElementById(e)&&t.getElementById(e).remove()},[]);function s(){var e=o;o=null,e&&e.forEach(function(e){a(e[0],e[1])})}function a(e,r,i){if("undefined"!=typeof document){if(o)if(i)s();else if(!1===i)return o.push([e,r]);if(!n){var a=i;if(i=(a=i&&i.getRootNode&&(a=i.getRootNode())&&a!=i?a:document).ownerDocument||a,r&&t.hasCssString(r,a))return null;r&&(e+="\n/*# sourceURL=ace/css/"+r+" */");var l=t.createElement("style");l.appendChild(i.createTextNode(e)),r&&(l.id=r),(a=a==i?t.getDocumentHead(i):a).insertBefore(l,a.firstChild)}}}t.useStrictCSP=function(e){0==(n=e)?s():o=o||[]},t.importCssString=a,t.importCssStylsheet=function(e,r){t.buildDom(["link",{rel:"stylesheet",href:e}],t.getDocumentHead(r))},t.scrollbarWidth=function(e){var r=t.createElement("ace_inner"),n=(r.style.width="100%",r.style.minWidth="0px",r.style.height="200px",r.style.display="block",t.createElement("ace_outer"));if((i=n.style).position="absolute",i.left="-10000px",i.overflow="hidden",i.width="200px",i.minWidth="0px",i.height="150px",i.display="block",n.appendChild(r),!(e=e&&e.documentElement||document&&document.documentElement))return 0;e.appendChild(n);var i,o=r.offsetWidth;return o===(i.overflow="scroll",i=r.offsetWidth)&&(i=n.clientWidth),e.removeChild(n),o-i},t.computedStyle=function(e,t){return window.getComputedStyle(e,"")||{}},t.setStyle=function(e,t,r){e[t]!==r&&(e[t]=r)},t.HAS_CSS_ANIMATION=!1,t.HAS_CSS_TRANSFORMS=!1,t.HI_DPI=!e.isWin||"undefined"!=typeof window&&1.5<=window.devicePixelRatio,e.isChromeOS&&(t.HI_DPI=!1),"undefined"!=typeof document&&(i=document.createElement("div"),t.HI_DPI&&void 0!==i.style.transform&&(t.HAS_CSS_TRANSFORMS=!0),e.isEdge||void 0===i.style.animationName||(t.HAS_CSS_ANIMATION=!0),i=null),t.translate=t.HAS_CSS_TRANSFORMS?function(e,t,r){e.style.transform="translate("+Math.round(t)+"px, "+Math.round(r)+"px)"}:function(e,t,r){e.style.top=Math.round(r)+"px",e.style.left=Math.round(t)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,t,r){var n=e("./dom");t.get=function(e,t){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4===r.readyState&&t(r.responseText)},r.send(null)},t.loadScript=function(e,t){var r=n.getDocumentHead(),i=document.createElement("script");i.src=e,r.appendChild(i),i.onload=i.onreadystatechange=function(e,r){!r&&i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(i=i.onload=i.onreadystatechange=null,r)||t()}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(e,t,r){t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var r in t)e[r]=t[r];return e},t.implement=function(e,r){t.mixin(e,r)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t,r){function n(){this.propagationStopped=!0}function i(){this.defaultPrevented=!0}var o={};o._emit=o._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var r=this._eventRegistry[e]||[],o=this._defaultHandlers[e];if(r.length||o){(t="object"==typeof t&&t?t:{}).type||(t.type=e),t.stopPropagation||(t.stopPropagation=n),t.preventDefault||(t.preventDefault=i),r=r.slice();for(var s=0;s<r.length&&(r[s](t,this),!t.propagationStopped);s++);return o&&!t.defaultPrevented?o(t,this):void 0}},o._signal=function(e,t){if(r=(this._eventRegistry||{})[e])for(var r=r.slice(),n=0;n<r.length;n++)r[n](t,this)},o.once=function(e,t){var r=this;if(this.on(e,function n(){r.off(e,n),t.apply(null,arguments)}),!t)return new Promise(function(e){t=e})},o.setDefaultHandler=function(e,t){var r,n,i=this._defaultHandlers;(i=i||(this._defaultHandlers={_disabled_:{}}))[e]&&(n=i[e],(r=i._disabled_[e])||(i._disabled_[e]=r=[]),r.push(n),-1!=(n=r.indexOf(t)))&&r.splice(n,1),i[e]=t},o.removeDefaultHandler=function(e,t){var r,n=this._defaultHandlers;n&&(r=n._disabled_[e],n[e]==t?r&&this.setDefaultHandler(e,r.pop()):r&&-1!=(n=r.indexOf(t))&&r.splice(n,1))},o.on=o.addEventListener=function(e,t,r){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];return-1==(n=n||(this._eventRegistry[e]=[])).indexOf(t)&&n[r?"unshift":"push"](t),t},o.off=o.removeListener=o.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{},(e=this._eventRegistry[e])&&-1!==(t=e.indexOf(t))&&e.splice(t,1)},o.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[e]=void 0),this._defaultHandlers&&(this._defaultHandlers[e]=void 0)},t.EventEmitter=o}),ace.define("ace/lib/report_error",["require","exports","module"],function(e,t,r){t.reportError=function(e,t){var r=new Error(e);r.data=t,"object"==typeof console&&console.error&&console.error(r),setTimeout(function(){throw r})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(e,t,r){t.defaultEnglishMessages={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor gutter","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages","gutter.annotation.aria-label.security":"Security finding, read annotations row $0","gutter.annotation.aria-label.hint":"Suggestion, read annotations row $0","gutter-tooltip.aria-label.security.singular":"security finding","gutter-tooltip.aria-label.security.plural":"security findings","gutter-tooltip.aria-label.hint.singular":"suggestion","gutter-tooltip.aria-label.hint.plural":"suggestions"}}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(e,t,r){var n,i,o=e("./oop"),s=e("./event_emitter").EventEmitter,a=e("./report_error").reportError,l=e("./default_english_messages").defaultEnglishMessages,c={setOptions:function(e){Object.keys(e).forEach(function(t){this.setOption(t,e[t])},this)},getOptions:function(e){var t,r={};return e?Array.isArray(e)||(r=e,e=Object.keys(r)):(t=this.$options,e=Object.keys(t).filter(function(e){return!t[e].hidden})),e.forEach(function(e){r[e]=this.getOption(e)},this),r},setOption:function(e,t){var r;if(this["$"+e]!==t)return(r=this.$options[e])?r.forwardTo?this[r.forwardTo]&&this[r.forwardTo].setOption(e,t):(r.handlesSet||(this["$"+e]=t),void(r&&r.set&&r.set.call(this,t))):u('misspelled option "'+e+'"')},getOption:function(e){var t=this.$options[e];return t?t.forwardTo?this[t.forwardTo]&&this[t.forwardTo].getOption(e):t&&t.get?t.get.call(this):this["$"+e]:u('misspelled option "'+e+'"')}};function u(e){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}function d(){this.$defaultOptions={},n=l,i="dollarSigns"}d.prototype.defineOptions=function(e,t,r){return e.$options||(this.$defaultOptions[t]=e.$options={}),Object.keys(r).forEach(function(t){var n=r[t];(n="string"==typeof n?{forwardTo:n}:n).name||(n.name=t),"initialValue"in(e.$options[n.name]=n)&&(e["$"+n.name]=n.initialValue)}),o.implement(e,c),this},d.prototype.resetOptions=function(e){Object.keys(e.$options).forEach(function(t){var r=e.$options[t];"value"in r&&e.setOption(t,r.value)})},d.prototype.setDefaultValue=function(e,t,r){if(!e){for(e in this.$defaultOptions)if(this.$defaultOptions[e][t])break;if(!this.$defaultOptions[e][t])return!1}var n=this.$defaultOptions[e]||(this.$defaultOptions[e]={});n[t]&&(n.forwardTo?this.setDefaultValue(n.forwardTo,t,r):n[t].value=r)},d.prototype.setDefaultValues=function(e,t){Object.keys(t).forEach(function(r){this.setDefaultValue(e,r,t[r])},this)},d.prototype.setMessages=function(e,t){n=e,t&&t.placeholders&&(i=t.placeholders)},d.prototype.nls=function(e,t,r){return n[e]||(u("No message found for the key '"+e+"' in messages with id "+n.$id+", trying to find a translation for the default string '"+t+"'."),n[t])||u("No message found for the default string '"+t+"' in the provided messages. Falling back to the default English message."),e=n[e]||n[t]||t,r&&("dollarSigns"===i&&(e=e.replace(/\$(\$|[\d]+)/g,function(e,t){return"$"==t?"$":r[t]})),"curlyBrackets"===i)?e.replace(/\{([^\}]+)\}/g,function(e,t){return r[t]}):e},(e=d).prototype.warn=u,e.prototype.reportError=a,o.implement(e.prototype,s),t.AppConfig=e}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(e,t,r){r.exports='.ace-tm .ace_gutter {\n background: #f0f0f0;\n color: #333;\n}\n\n.ace-tm .ace_print-margin {\n width: 1px;\n background: #e8e8e8;\n}\n\n.ace-tm .ace_fold {\n background-color: #6B72E6;\n}\n\n.ace-tm {\n background-color: #FFFFFF;\n color: black;\n}\n\n.ace-tm .ace_cursor {\n color: black;\n}\n \n.ace-tm .ace_invisible {\n color: rgb(191, 191, 191);\n}\n\n.ace-tm .ace_storage,\n.ace-tm .ace_keyword {\n color: blue;\n}\n\n.ace-tm .ace_constant {\n color: rgb(197, 6, 11);\n}\n\n.ace-tm .ace_constant.ace_buildin {\n color: rgb(88, 72, 246);\n}\n\n.ace-tm .ace_constant.ace_language {\n color: rgb(88, 92, 246);\n}\n\n.ace-tm .ace_constant.ace_library {\n color: rgb(6, 150, 14);\n}\n\n.ace-tm .ace_invalid {\n background-color: rgba(255, 0, 0, 0.1);\n color: red;\n}\n\n.ace-tm .ace_support.ace_function {\n color: rgb(60, 76, 114);\n}\n\n.ace-tm .ace_support.ace_constant {\n color: rgb(6, 150, 14);\n}\n\n.ace-tm .ace_support.ace_type,\n.ace-tm .ace_support.ace_class {\n color: rgb(109, 121, 222);\n}\n\n.ace-tm .ace_keyword.ace_operator {\n color: rgb(104, 118, 135);\n}\n\n.ace-tm .ace_string {\n color: rgb(3, 106, 7);\n}\n\n.ace-tm .ace_comment {\n color: rgb(76, 136, 107);\n}\n\n.ace-tm .ace_comment.ace_doc {\n color: rgb(0, 102, 255);\n}\n\n.ace-tm .ace_comment.ace_doc.ace_tag {\n color: rgb(128, 159, 191);\n}\n\n.ace-tm .ace_constant.ace_numeric {\n color: rgb(0, 0, 205);\n}\n\n.ace-tm .ace_variable {\n color: rgb(49, 132, 149);\n}\n\n.ace-tm .ace_xml-pe {\n color: rgb(104, 104, 91);\n}\n\n.ace-tm .ace_entity.ace_name.ace_function {\n color: #0000A2;\n}\n\n\n.ace-tm .ace_heading {\n color: rgb(12, 7, 255);\n}\n\n.ace-tm .ace_list {\n color:rgb(185, 6, 144);\n}\n\n.ace-tm .ace_meta.ace_tag {\n color:rgb(0, 22, 142);\n}\n\n.ace-tm .ace_string.ace_regex {\n color: rgb(255, 0, 0)\n}\n\n.ace-tm .ace_marker-layer .ace_selection {\n background: rgb(181, 213, 255);\n}\n.ace-tm.ace_multiselect .ace_selection.ace_start {\n box-shadow: 0 0 3px 0px white;\n}\n.ace-tm .ace_marker-layer .ace_step {\n background: rgb(252, 255, 0);\n}\n\n.ace-tm .ace_marker-layer .ace_stack {\n background: rgb(164, 229, 101);\n}\n\n.ace-tm .ace_marker-layer .ace_bracket {\n margin: -1px 0 0 -1px;\n border: 1px solid rgb(192, 192, 192);\n}\n\n.ace-tm .ace_marker-layer .ace_active-line {\n background: rgba(0, 0, 0, 0.07);\n}\n\n.ace-tm .ace_gutter-active-line {\n background-color : #dcdcdc;\n}\n\n.ace-tm .ace_marker-layer .ace_selected-word {\n background: rgb(250, 250, 255);\n border: 1px solid rgb(200, 200, 250);\n}\n\n.ace-tm .ace_indent-guide {\n background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;\n}\n\n.ace-tm .ace_indent-guide-active {\n background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;\n}\n'}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(e,t,r){t.isDark=!1,t.cssClass="ace-tm",t.cssText=e("./textmate-css"),t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(e,t,r){var n,i=e("./lib/lang"),o=e("./lib/net"),s=e("./lib/dom"),a=e("./lib/app_config").AppConfig,l=(r.exports=t=new a,{packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null}),c=(t.get=function(e){if(l.hasOwnProperty(e))return l[e];throw new Error("Unknown config key: "+e)},t.set=function(e,t){if(l.hasOwnProperty(e))l[e]=t;else if(0==this.setDefaultValue("",e,t))throw new Error("Unknown config key: "+e);"useStrictCSP"==e&&s.useStrictCSP(t)},t.all=function(){return i.copyObject(l)},t.$modes={},t.moduleUrl=function(e,t){var r,n,i;return l.$moduleUrls[e]||(e=e.split("/"),r="snippets"==(t=t||e[e.length-2]||"")?"/":"-",n=e[e.length-1],"worker"==t&&"-"==r&&(i=new RegExp("^"+t+"[\\-_]|[\\-_]"+t+"$","g"),n=n.replace(i,"")),(!n||n==t)&&1<e.length&&(n=e[e.length-2]),null==(i=l[t+"Path"])?i=l.basePath:"/"==r&&(t=r=""),i&&"/"!=i.slice(-1)&&(i+="/"),i+t+r+n+this.get("suffix"))},t.setModuleUrl=function(e,t){return l.$moduleUrls[e]=t},t.setLoader=function(e){n=e},t.dynamicModules=Object.create(null),t.$loading={},t.$loaded={},t.loadModule=function(r,i){function s(r){if(r&&!t.$loading[u])return i&&i(r);if(t.$loading[u]||(t.$loading[u]=[]),t.$loading[u].push(i),!(1<t.$loading[u].length)){if(r=function(){var r,i;i=function(e,r){r&&(t.$loaded[u]=r),t._emit("load.module",{name:u,module:r});var n=t.$loading[u];t.$loading[u]=null,n.forEach(function(e){e&&e(r)})},"ace/theme/textmate"===(r=u)||"./theme/textmate"===r?i(0,e("./theme/textmate")):n?n(r,i):console.error("loader is not configured")},!t.get("packaged"))return r();o.loadScript(t.moduleUrl(u,l),r),c()}}var a,l,u;if(Array.isArray(r)?(l=r[0],u=r[1]):"string"==typeof r&&(u=r),t.dynamicModules[u])t.dynamicModules[u]().then(function(e){e.default?s(e.default):s(e)});else{try{a=this.$require(u)}catch(r){}s(a||t.$loaded[u])}},t.$require=function(e){if("function"==typeof r.require)return r.require(e)},t.setModuleLoader=function(e,r){t.dynamicModules[e]=r},function(){l.basePath||l.workerPath||l.modePath||l.themePath||Object.keys(l.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),c=function(){})});t.version="1.38.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(e,t,n){e("./lib/fixoldbrowsers");var i=e("./config"),o=(i.setLoader(function(t,r){e([t],function(e){r(null,e)})}),function(){return this||"undefined"!=typeof window&&window}());function s(t){if(o&&o.document){i.set("packaged",t||e.packaged||n.packaged||o.define&&r.amdD.packaged);for(var s,a={},l="",c=(t=document.currentScript||document._currentScript)&&t.ownerDocument||document,u=(t&&t.src&&(l=t.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||""),c.getElementsByTagName("script")),d=0;d<u.length;d++){var h=u[d],p=h.src||h.getAttribute("src");if(p){for(var f=h.attributes,m=0,g=f.length;m<g;m++){var y=f[m];0===y.name.indexOf("data-ace-")&&(a[y.name.replace(/^data-ace-/,"").replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=y.value)}(h=p.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/))&&(l=h[1])}}for(s in l&&(a.base=a.base||l,a.packaged=!0),a.basePath=a.base,a.workerPath=a.workerPath||a.base,a.modePath=a.modePath||a.base,a.themePath=a.themePath||a.base,delete a.base,a)void 0!==a[s]&&i.set(s,a[s])}}n.exports=function(t){i.init=s,i.$require=e,t.require=e,t.define=r.amdD},s(!0)}),ace.define("ace/range",["require","exports","module"],function(e,t,r){i.prototype.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},i.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},i.prototype.contains=function(e,t){return 0==this.compare(e,t)},i.prototype.compareRange=function(e){var t=e.end;return e=e.start,1==(t=this.compare(t.row,t.column))?1==(t=this.compare(e.row,e.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(e.row,e.column))?-1:1==t?42:0},i.prototype.comparePoint=function(e){return this.compare(e.row,e.column)},i.prototype.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},i.prototype.intersects=function(e){return-1==(e=this.compareRange(e))||0==e||1==e},i.prototype.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},i.prototype.isStart=function(e,t){return this.start.row==e&&this.start.column==t},i.prototype.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},i.prototype.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},i.prototype.inside=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)&&!this.isStart(e,t)},i.prototype.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},i.prototype.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},i.prototype.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row!==e||t<=this.end.column?0:1:t<this.start.column?-1:t>this.end.column?1:0},i.prototype.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},i.prototype.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},i.prototype.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},i.prototype.clipRows=function(e,t){var r,n;return this.end.row>t?r={row:t+1,column:0}:this.end.row<e&&(r={row:e,column:0}),this.start.row>t?n={row:t+1,column:0}:this.start.row<e&&(n={row:e,column:0}),i.fromPoints(n||this.start,r||this.end)},i.prototype.extend=function(e,t){var r,n,o=this.compare(e,t);return 0==o?this:(-1==o?r={row:e,column:t}:n={row:e,column:t},i.fromPoints(r||this.start,n||this.end))},i.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},i.prototype.isMultiLine=function(){return this.start.row!==this.end.row},i.prototype.clone=function(){return i.fromPoints(this.start,this.end)},i.prototype.collapseRows=function(){return 0==this.end.column?new i(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new i(this.start.row,0,this.end.row,0)},i.prototype.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start);return e=e.documentToScreenPosition(this.end),new i(t.row,t.column,e.row,e.column)},i.prototype.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t};var n=i;function i(e,t,r,n){this.start={row:e,column:t},this.end={row:r,column:n}}n.fromPoints=function(e,t){return new n(e.row,e.column,t.row,t.column)},n.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=n}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,t,r){e=e("./oop");for(var n={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},i={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},o=0;o<10;o++)i["Digit"+o]=48+o,i["Numpad"+o]=96+o,n.PRINTABLE_KEYS[48+o]=""+o,n.FUNCTION_KEYS[96+o]="Numpad"+o;for(o=65;o<91;o++){var s=String.fromCharCode(o+32);i["Key"+s.toUpperCase()]=o,n.PRINTABLE_KEYS[o]=s}for(o=1;o<13;o++)i["F"+o]=111+o,n.FUNCTION_KEYS[111+o]="F"+o;var a,l,c={Shift:16,Control:17,Alt:18,Meta:224};for(a in c)i[a]=i[a+"Left"]=i[a+"Right"]=c[a];for(l in t.$codeToKeyCode=i,n.PRINTABLE_KEYS[173]="-",n.FUNCTION_KEYS){var u=n.FUNCTION_KEYS[l].toLowerCase();n[u]=parseInt(l,10)}for(l in n.PRINTABLE_KEYS)u=n.PRINTABLE_KEYS[l].toLowerCase(),n[u]=parseInt(l,10);e.mixin(n,n.MODIFIER_KEYS),e.mixin(n,n.PRINTABLE_KEYS),e.mixin(n,n.FUNCTION_KEYS),n.enter=n.return,n.escape=n.esc,n.del=n.delete;for(var d=["cmd","ctrl","alt","shift"],h=Math.pow(2,d.length);h--;)n.KEY_MODS[h]=d.filter(function(e){return h&n.KEY_MODS[e]}).join("-")+"-";n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",e.mixin(t,n),(t.default=t).keyCodeToString=function(e){var t=n[e];return(t="string"!=typeof t?String.fromCharCode(e):t).toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,r){var n,i=e("./keys"),o=e("./useragent"),s=null,a=0;function l(){if(null==n){n=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return n={passive:!1},!0}})}catch(e){}}return n}function c(e,t,r){this.elem=e,this.type=t,this.callback=r}c.prototype.destroy=function(){h(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var u,d=t.addListener=function(e,t,r,n){e.addEventListener(t,r,l()),n&&n.$toDestroy.push(new c(e,t,r))},h=t.removeListener=function(e,t,r){e.removeEventListener(t,r,l())};function p(e){return(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)}function f(){s=Object.create(null)}t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation&&e.stopPropagation()},t.preventDefault=function(e){e.preventDefault&&e.preventDefault()},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||o.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.button},t.capture=function(e,t,r){var n=e&&e.ownerDocument||document;function i(e){t&&t(e),r&&r(e),h(n,"mousemove",t),h(n,"mouseup",i),h(n,"dragstart",i)}return d(n,"mousemove",t),d(n,"mouseup",i),d(n,"dragstart",i),i},t.addMouseWheelListener=function(e,t,r){d(e,"wheel",function(e){var r=e.deltaX||0,n=e.deltaY||0;switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=.15*r,e.wheelY=.15*n;break;case e.DOM_DELTA_LINE:e.wheelX=15*r,e.wheelY=15*n;break;case e.DOM_DELTA_PAGE:e.wheelX=150*r,e.wheelY=150*n}t(e)},r)},t.addMultiMouseDownListener=function(e,r,n,i,s){var a,l,c,u=0,h={2:"dblclick",3:"tripleclick",4:"quadclick"};function p(e){var s;if(0!==t.getButton(e)?u=0:1<e.detail&&!(4<++u)||(u=1),o.isIE&&(s=5<Math.abs(e.clientX-a)||5<Math.abs(e.clientY-l),c&&!s||(u=1),c&&clearTimeout(c),c=setTimeout(function(){c=null},r[u-1]||600),1==u)&&(a=e.clientX,l=e.clientY),e._clicks=u,n[i]("mousedown",e),4<u)u=0;else if(1<u)return n[i](h[u],e)}(e=Array.isArray(e)?e:[e]).forEach(function(e){d(e,"mousedown",p,s)})},t.getModifierString=function(e){return i.KEY_MODS[p(e)]},t.addCommandKeyListener=function(e,r,n){var l=null;d(e,"keydown",function(e){s[e.keyCode]=(s[e.keyCode]||0)+1;var t=((e,t,r)=>{var n,l=p(t);if(!r&&t.code&&(r=i.$codeToKeyCode[t.code]||r),!o.isMac&&s){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(l|=8),s.altGr){if(!(3&~l))return;s.altGr=0}18!==r&&17!==r||(n=t.location,17===r&&1===n?1==s[r]&&(a=t.timeStamp):18===r&&3===l&&2===n&&t.timeStamp-a<50&&(s.altGr=!0))}if(r in i.MODIFIER_KEYS&&(r=-1),l||13!==r||3!==t.location||(e(t,l,-r),!t.defaultPrevented)){if(o.isChromeOS&&8&l){if(e(t,l,r),t.defaultPrevented)return;l&=-9}return!!(l||r in i.FUNCTION_KEYS||r in i.PRINTABLE_KEYS)&&e(t,l,r)}})(r,e,e.keyCode);return l=e.defaultPrevented,t},n),d(e,"keypress",function(e){l&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),l=null)},n),d(e,"keyup",function(e){s[e.keyCode]=null},n),s||(f(),d(window,"focus",f))},"object"==typeof window&&window.postMessage&&!o.isOldIE&&(u=1,t.nextTick=function(e,r){r=r||window;var n="zero-timeout-message-"+u++;d(r,"message",function i(o){o.data==n&&(t.stopPropagation(o),h(r,"message",i),e())}),r.postMessage(n,"*")}),t.$idleBlocked=!1,t.onIdle=function(e,r){return setTimeout(function r(){t.$idleBlocked?setTimeout(r,100):e()},r)},t.$idleBlockId=null,t.blockIdle=function(e){t.$idleBlockId&&clearTimeout(t.$idleBlockId),t.$idleBlocked=!0,t.$idleBlockId=setTimeout(function(){t.$idleBlocked=!1},e||100)},t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame=t.nextFrame?t.nextFrame.bind(window):function(e){setTimeout(e,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(e,t,r){var n;r.exports={lineMode:!1,pasteCancelled:function(){return!!(n&&n>Date.now()-50)||(n=!1)},cancel:function(){n=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(e,t,r){var n=e("../lib/event"),i=e("../config").nls,o=e("../lib/useragent"),s=e("../lib/dom"),a=e("../lib/lang"),l=e("../clipboard"),c=o.isChrome<18,u=o.isIE,d=63<o.isChrome,h=e("../lib/keys"),p=h.KEY_MODS,f=o.isIOS,m=f?/\s/:/\n/,g=o.isMobile;t.TextInput=function(e,t){var r=s.createElement("textarea"),y=(r.className="ace_text-input",r.setAttribute("wrap","off"),r.setAttribute("autocorrect","off"),r.setAttribute("autocapitalize","off"),r.setAttribute("spellcheck","false"),r.style.opacity="0",e.insertBefore(r,e.firstChild),!1),v=!1,b=!1,w=!1,x="",A=(g||(r.style.fontSize="1px"),!1),C=!1,S="",I=0,k=0,E=0,T=Number.MAX_SAFE_INTEGER,$=Number.MIN_SAFE_INTEGER,_=0;try{var R=document.activeElement===r}catch(e){}function O(e,r){for(var n=r,i=1;i<=e-T&&i<2*_+1;i++)n+=t.session.getLine(e-i).length+1;return n}function P(e){H(e,!0)}function M(e){H(e,!1)}function L(e){var i=W(e);l.pasteCancelled()||("string"==typeof i?(i&&t.onPaste(i,e),o.isIE&&setTimeout(j),n.preventDefault(e)):(r.value="",v=!0))}this.setNumberOfExtraLines=function(e){T=Number.MAX_SAFE_INTEGER,$=Number.MIN_SAFE_INTEGER,_=e<0?0:e},this.setAriaLabel=function(){var e,n="";t.$textInputAriaLabel&&(n+="".concat(t.$textInputAriaLabel,", ")),t.session&&(e=t.session.selection.cursor.row,n+=i("text-input.aria-label","Cursor at row $0",[e+1])),r.setAttribute("aria-label",n)},this.setAriaOptions=function(e){e.activeDescendant?(r.setAttribute("aria-haspopup","true"),r.setAttribute("aria-autocomplete",e.inline?"both":"list"),r.setAttribute("aria-activedescendant",e.activeDescendant)):(r.setAttribute("aria-haspopup","false"),r.setAttribute("aria-autocomplete","both"),r.removeAttribute("aria-activedescendant")),e.role&&r.setAttribute("role",e.role),e.setLabel&&(r.setAttribute("aria-roledescription",i("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),n.addListener(r,"blur",function(e){C||(t.onBlur(e),R=!1)},t),n.addListener(r,"focus",function(e){if(!C){if(R=!0,o.isEdge)try{if(!document.hasFocus())return}catch(e){}t.onFocus(e),o.isEdge?setTimeout(j):j()}},t),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:t.renderer.enableKeyboardAccessibility}),x||d||"browser"==this.$focusScroll)return r.focus({preventScroll:!0});var e=r.style.top;r.style.position="fixed",r.style.top="0px";try{var n=0!=r.getBoundingClientRect().top}catch(e){return}var i=[];if(n)for(var o=r.parentElement;o&&1==o.nodeType;)i.push(o),o.setAttribute("ace_nocontext","true"),o=!o.parentElement&&o.getRootNode?o.getRootNode().host:o.parentElement;r.focus({preventScroll:!0}),n&&i.forEach(function(e){e.removeAttribute("ace_nocontext")}),setTimeout(function(){r.style.position="","0px"==r.style.top&&(r.style.top=e)},0)},this.blur=function(){r.blur()},this.isFocused=function(){return R},t.on("beforeEndOperation",function(){var e=t.curOp,n=e&&e.command&&e.command.name;"insertstring"!=n&&(n=n&&(e.docChanged||e.selectionChanged),b&&n&&(S=r.value="",G()),j())}),t.on("changeSelection",this.setAriaLabel);var j=f?function(e){var n;!R||y&&!e||w||((n="\n ab"+(e=e||"")+"cde fg\n")!=r.value&&(r.value=S=n),n=4+(e.length||(t.selection.isEmpty()?0:1)),4==I&&k==n||r.setSelectionRange(4,n),I=4,k=n)}:function(){if(!b&&!w&&(R||D)){b=!0;var e=0,n=0,i="";if(t.session){for(var o,s,a=(s=t.selection).getRange(),l=((s=s.cursor.row)===$+1?$=(T=$+1)+2*_:s===T-1?T=($=T-1)-2*_:(s<T-1||$+1<s)&&(T=_<s?s-_:0,$=_<s?s+_:2*_),[]),c=T;c<=$;c++)l.push(t.session.getLine(c));i=l.join("\n"),e=O(a.start.row,a.start.column),n=O(a.end.row,a.end.column),a.start.row<T?(o=t.session.getLine(T-1),e=a.start.row<T-1?0:e,n+=o.length+1,i=o+"\n"+i):a.end.row>$?(o=t.session.getLine($+1),n=a.end.row>$+1?o.length:a.end.column,n+=i.length+1,i=i+"\n"+o):g&&0<s&&(i="\n"+i,n+=1,e+=1),400<i.length&&(e<400&&n<400?i=i.slice(0,400):(i="\n",e==n?e=n=0:(e=0,n=1))),(a=i+"\n\n")!=S&&(r.value=S=a,I=k=a.length)}if(D&&(I=r.selectionStart,k=r.selectionEnd),k!=n||I!=e||r.selectionEnd!=k)try{r.setSelectionRange(e,n),I=e,k=n}catch(e){}b=!1}},N=(this.resetSelection=j,R&&t.onFocus(),function(e){return 0===e.selectionStart&&e.selectionEnd>=S.length&&e.value===S&&S&&e.selectionEnd!==k}),F=null,D=(this.setInputHandler=function(e){F=e},!(this.getInputHandler=function(){return F})),B=function(e,n){if(D=D&&!1,v)return j(),e&&t.onPaste(e),v=!1,"";for(var i=r.selectionStart,s=r.selectionEnd,a=I,l=S.length-k,c=e,u=e.length-i,d=e.length-s,h=0;0<a&&S[h]==e[h];)h++,a--;for(c=c.slice(h),h=1;0<l&&S.length-h>I-1&&S[S.length-h]==e[e.length-h];)h++,l--;u-=h-1,d-=h-1;var p=c.length-h+1;return p<0&&(a=-p,p=0),c=c.slice(0,p),n||c||u||a||l||d?(p=!(w=!0),o.isAndroid&&". "==c&&(c=" ",p=!0),c&&!a&&!l&&!u&&!d||A?t.onTextInput(c):t.onTextInput(c,{extendLeft:a,extendRight:l,restoreStart:u,restoreEnd:d}),w=!1,S=e,I=i,k=s,E=d,p?"\n":c):""},z=function(e){if(b)return V();if(e&&e.inputType){if("historyUndo"==e.inputType)return t.execCommand("undo");if("historyRedo"==e.inputType)return t.execCommand("redo")}e=r.value;var n=B(e,!0);(500<e.length||m.test(n)||g&&I<1&&I==k)&&j()},W=function(e,t,r){var n=e.clipboardData||window.clipboardData;if(n&&!c){var i=u||r?"Text":"text/plain";try{return t?!1!==n.setData(i,t):n.getData(i)}catch(e){if(!r)return W(e,t,!0)}}},H=function(e,i){var o=t.getCopyText();if(!o)return n.preventDefault(e);W(e,o)?(f&&(j(o),y=o,setTimeout(function(){y=!1},10)),i?t.onCut():t.onCopy(),n.preventDefault(e)):(y=!0,r.value=o,r.select(),setTimeout(function(){y=!1,j(),i?t.onCut():t.onCopy()}))},V=(n.addCommandKeyListener(r,function(e,r,n){if(!b)return t.onCommandKey(e,r,n)},t),n.addListener(r,"select",function(e){b||(y?y=!1:N(r)?(t.selectAll(),j()):g&&r.selectionStart!=I&&j())},t),n.addListener(r,"input",z,t),n.addListener(r,"cut",P,t),n.addListener(r,"copy",M,t),n.addListener(r,"paste",L,t),"oncut"in r&&"oncopy"in r&&"onpaste"in r||n.addListener(e,"keydown",function(e){if((!o.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:M(e);break;case 86:L(e);break;case 88:P(e)}},t),function(){var e;if(b&&t.onCompositionUpdate&&!t.$readOnly)return A?U():void(b.useTextareaForIME?t.onCompositionUpdate(r.value):(e=r.value,B(e),b.markerRange&&(b.context&&(b.markerRange.start.column=b.selectionStart=b.context.compositionStartOffset),b.markerRange.end.column=b.markerRange.start.column+k-b.selectionStart+E)))}),G=function(e){t.onCompositionEnd&&!t.$readOnly&&(b=!1,t.onCompositionEnd(),t.off("mousedown",U),e)&&z()};function U(){C=!0,r.blur(),r.focus(),C=!1}var Z,K=a.delayedCall(V,50).schedule.bind(null,null);function Y(){clearTimeout(Z),Z=setTimeout(function(){x&&(r.style.cssText=x,x=""),t.renderer.$isMousePressed=!1,t.renderer.$keepTextAreaAtCursor&&t.renderer.$moveTextAreaToCursor()},0)}function q(e){t.textInput.onContextMenu(e),Y()}if(n.addListener(r,"compositionstart",function(e){b||!t.onCompositionStart||t.$readOnly||(b={},A)||(e.data&&(b.useTextareaForIME=!1),setTimeout(V,0),t._signal("compositionStart"),t.on("mousedown",U),(e=t.getSelectionRange()).end.row=e.start.row,e.end.column=e.start.column,b.markerRange=e,b.selectionStart=I,t.onCompositionStart(b),b.useTextareaForIME?(S=r.value="",k=I=0):(r.msGetInputContext&&(b.context=r.msGetInputContext()),r.getInputContext&&(b.context=r.getInputContext())))},t),n.addListener(r,"compositionupdate",V,t),n.addListener(r,"keyup",function(e){27==e.keyCode&&r.value.length<r.selectionStart&&(b||(S=r.value),I=k=-1,j()),K()},t),n.addListener(r,"keydown",K,t),n.addListener(r,"compositionend",G,t),this.getElement=function(){return r},this.setCommandMode=function(e){A=e,r.readOnly=!1},this.setReadOnly=function(e){A||(r.readOnly=e)},this.setCopyWithEmptySelection=function(e){},this.onContextMenu=function(e){D=!0,j(),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,i){function a(e){s.translate(r,e.clientX-u-2,Math.min(e.clientY-c-2,d))}x=x||r.style.cssText,r.style.cssText=(i?"z-index:100000;":"")+(o.isIE?"opacity:0.1;":"")+"text-indent: -"+(I+k)*t.renderer.characterWidth*.5+"px;",i=t.container.getBoundingClientRect();var l=s.computedStyle(t.container),c=i.top+(parseInt(l.borderTopWidth)||0),u=i.left+(parseInt(l.borderLeftWidth)||0),d=i.bottom-c-r.clientHeight-2;a(e),"mousedown"==e.type&&(t.renderer.$isMousePressed=!0,clearTimeout(Z),o.isWin)&&n.capture(t.container,a,Y)},this.onContextMenuClose=Y,n.addListener(r,"mouseup",q,t),n.addListener(r,"mousedown",function(e){e.preventDefault(),Y()},t),n.addListener(t.renderer.scroller,"contextmenu",q,t),n.addListener(r,"contextmenu",q,t),f){var X=t,J=r;function Q(e){var t,r,n,i;document.activeElement!==J||te||b||X.$mouseHandler.isMousePressed||y||(t=J.selectionStart,r=J.selectionEnd,n=null,(i=0)==t?n=h.up:1==t?n=h.home:k<r&&"\n"==S[r]?n=h.end:t<I&&" "==S[t-1]?(n=h.left,i=p.option):t<I||t==I&&k!=I&&t==r?n=h.left:k<r&&2<S.slice(0,r).split("\n").length?n=h.down:k<r&&" "==S[r-1]?(n=h.right,i=p.option):(k<r||r==k&&k!=I&&t==r)&&(n=h.right),t!==r&&(i|=p.shift),n&&(!X.onCommandKey({},i,n)&&X.commands&&(n=h.keyCodeToString(n),i=X.commands.findKeyCommand(i,n))&&X.execCommand(i),I=t,k=r,j("")))}var ee=null,te=!1;J.addEventListener("keydown",function(e){ee&&clearTimeout(ee),te=!0},!0),J.addEventListener("keyup",function(e){ee=setTimeout(function(){te=!1},100)},!0),document.addEventListener("selectionchange",Q),X.on("destroy",function(){document.removeEventListener("selectionchange",Q)})}this.destroy=function(){r.parentElement&&r.parentElement.removeChild(r)}},t.$setUserAgentForTests=function(e,t){g=e,f=t}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,t,r){var n=e("../lib/useragent");function i(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e)),["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach(function(t){e[t]=this[t]},this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function o(e,t){return(e.start.row==e.end.row?2*t.column-e.start.column-e.end.column:e.start.row!=e.end.row-1||e.start.column||e.end.column?2*t.row-e.start.row-e.end.row:t.column-4)<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}i.prototype.onMouseDown=function(e){var t=e.inSelection(),r=e.getDocumentPosition(),i=(this.mousedownEvent=e,this.editor),o=e.getButton();if(0!==o)!i.getSelectionRange().isEmpty()&&1!=o||i.selection.moveToPosition(r),2==o&&(i.textInput.onContextMenu(e.domEvent),n.isMozilla||e.preventDefault());else{if(this.mousedownEvent.time=Date.now(),!t||i.isFocused()||(i.focus(),!this.$focusTimeout)||this.$clickSelection||i.inMultiSelectMode)return this.captureMouse(e),this.startSelect(r,1<e.domEvent._clicks),e.preventDefault();this.setState("focusWait"),this.captureMouse(e)}},i.prototype.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var r=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?r.selection.selectToPosition(e):t||r.selection.moveToPosition(e),t||this.select(),r.setStyle("ace_selecting"),this.setState("select"))},i.prototype.select=function(){var e,t=this.editor,r=t.renderer.screenToTextCoordinates(this.x,this.y);this.$clickSelection&&(e=-1==(e=this.$clickSelection.comparePoint(r))?this.$clickSelection.end:1==e?this.$clickSelection.start:(r=(e=o(this.$clickSelection,r)).cursor,e.anchor),t.selection.setSelectionAnchor(e.row,e.column)),t.selection.selectToPosition(r),t.renderer.scrollCursorIntoView()},i.prototype.extendSelectionBy=function(e){var t,r,n,i=this.editor,s=i.renderer.screenToTextCoordinates(this.x,this.y);e=i.selection[e](s.row,s.column),this.$clickSelection&&(r=this.$clickSelection.comparePoint(e.start),t=this.$clickSelection.comparePoint(e.end),-1==r&&t<=0?(n=this.$clickSelection.end,e.end.row==s.row&&e.end.column==s.column||(s=e.start)):1==t&&0<=r?(n=this.$clickSelection.start,e.start.row==s.row&&e.start.column==s.column||(s=e.end)):n=-1==r&&1==t?(s=e.end,e.start):(s=(r=o(this.$clickSelection,s)).cursor,r.anchor),i.selection.setSelectionAnchor(n.row,n.column)),i.selection.selectToPosition(s),i.renderer.scrollCursorIntoView()},i.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},i.prototype.focusWait=function(){n=this.mousedownEvent.x,e=this.mousedownEvent.y,r=this.x,t=this.y;var e,t,r=Math.sqrt(Math.pow(r-n,2)+Math.pow(t-e,2)),n=Date.now();(0<r||n-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},i.prototype.onDoubleClick=function(e){e=e.getDocumentPosition();var t=this.editor,r=t.session.getBracketRange(e);r?(r.isEmpty()&&(r.start.column--,r.end.column++),this.setState("select")):(r=t.selection.getWordRange(e.row,e.column),this.setState("selectByWords")),this.$clickSelection=r,this.select()},i.prototype.onTripleClick=function(e){e=e.getDocumentPosition();var t=this.editor,r=(this.setState("selectByLines"),t.getSelectionRange());r.isMultiLine()&&r.contains(e.row,e.column)?(this.$clickSelection=t.selection.getLineRange(r.start.row),this.$clickSelection.end=t.selection.getLineRange(r.end.row).end):this.$clickSelection=t.selection.getLineRange(e.row),this.select()},i.prototype.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},i.prototype.onMouseWheel=function(e){var t,r,n,i,o,s,a;if(!e.getAccelKey())return e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0),t=this.editor,this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0}),r=this.$lastScroll,i=(a=(n=e.domEvent.timeStamp)-r.t)?e.wheelX/a:r.vx,o=a?e.wheelY/a:r.vy,a<550&&(i=(i+r.vx)/2,o=(o+r.vy)/2),a=!1,1<=(s=Math.abs(i/o))&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(a=!0),(a=!!(s<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed))||a)?r.allowed=n:n-r.allowed<550&&(Math.abs(i)<=1.5*Math.abs(r.vx)&&Math.abs(o)<=1.5*Math.abs(r.vy)?(a=!0,r.allowed=n):r.allowed=0),r.t=n,r.vx=i,r.vy=o,a?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0},(e=i).prototype.selectEnd=e.prototype.selectByLinesEnd,e.prototype.selectAllEnd=e.prototype.selectByLinesEnd,e.prototype.selectByWordsEnd=e.prototype.selectByLinesEnd,t.DefaultHandlers=e}),ace.define("ace/lib/scroll",["require","exports","module"],function(e,t,r){t.preventParentScroll=function(e){e.stopPropagation();var t=e.currentTarget;t.scrollHeight>t.clientHeight||e.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=e("./lib/dom"),a=(e("./lib/event"),e("./range").Range),l=e("./lib/scroll").preventParentScroll,c="ace_tooltip";function u(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}function d(){this.popups=[]}u.prototype.$init=function(){return this.$element=s.createElement("div"),this.$element.className=c,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},u.prototype.getElement=function(){return this.$element||this.$init()},u.prototype.setText=function(e){this.getElement().textContent=e},u.prototype.setHtml=function(e){this.getElement().innerHTML=e},u.prototype.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},u.prototype.setClassName=function(e){s.addCssClass(this.getElement(),e)},u.prototype.setTheme=function(e){this.$element.className=c+" "+(e.isDark?"ace_dark ":"")+(e.cssClass||"")},u.prototype.show=function(e,t,r){null!=e&&this.setText(e),null!=t&&null!=r&&this.setPosition(t,r),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},u.prototype.hide=function(e){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=c,this.isOpen=!1)},u.prototype.getHeight=function(){return this.getElement().offsetHeight},u.prototype.getWidth=function(){return this.getElement().offsetWidth},u.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},e=u,d.prototype.addPopup=function(e){this.popups.push(e),this.updatePopups()},d.prototype.removePopup=function(e){-1!==(e=this.popups.indexOf(e))&&(this.popups.splice(e,1),this.updatePopups())},d.prototype.updatePopups=function(){this.popups.sort(function(e,t){return t.priority-e.priority});var e,t,r,n,i=[];try{for(var s=o(this.popups),a=s.next();!a.done;a=s.next()){var l=a.value,c=!0;try{r=void 0;for(var u=o(i),d=u.next();!d.done;d=u.next()){var h=d.value;if(this.doPopupsOverlap(h,l)){c=!1;break}}}catch(t){r={error:t}}finally{try{d&&!d.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}c?i.push(l):l.hide()}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}},d.prototype.doPopupsOverlap=function(e,t){return e=e.getElement().getBoundingClientRect(),t=t.getElement().getBoundingClientRect(),e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top};var h,p=new d;function f(e){void 0===e&&(e=document.body);var t=((e=h.call(this,e)||this).timeout=void 0,e.lastT=0,e.idleTime=350,e.lastEvent=void 0,e.onMouseOut=e.onMouseOut.bind(e),e.onMouseMove=e.onMouseMove.bind(e),e.waitForHover=e.waitForHover.bind(e),e.hide=e.hide.bind(e),e.getElement());return t.style.whiteSpace="pre-wrap",t.style.pointerEvents="auto",t.addEventListener("mouseout",e.onMouseOut),t.tabIndex=-1,t.addEventListener("blur",function(){t.contains(document.activeElement)||this.hide()}.bind(e)),t.addEventListener("wheel",l),e}t.popupManager=p,i(f,h=t.Tooltip=e),f.prototype.addToEditor=function(e){e.on("mousemove",this.onMouseMove),e.on("mousedown",this.hide),e.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},f.prototype.removeFromEditor=function(e){e.off("mousemove",this.onMouseMove),e.off("mousedown",this.hide),e.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},f.prototype.onMouseMove=function(e,t){var r;this.lastEvent=e,this.lastT=Date.now(),t=t.$mouseHandler.isMousePressed,this.isOpen&&(r=this.lastEvent&&this.lastEvent.getDocumentPosition(),this.range&&this.range.contains(r.row,r.column)&&!t&&!this.isOutsideOfText(this.lastEvent)||this.hide()),this.timeout||t||(this.lastEvent=e,this.timeout=setTimeout(this.waitForHover,this.idleTime))},f.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var e=Date.now()-this.lastT;10<this.idleTime-e?this.timeout=setTimeout(this.waitForHover,this.idleTime-e):(this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor))},f.prototype.isOutsideOfText=function(e){var t=e.editor,r=e.getDocumentPosition(),n=t.session.getLine(r.row);return r.column==n.length&&(n=t.renderer.pixelToScreenCoordinates(e.clientX,e.clientY),(e=t.session.documentToScreenPosition(r.row,r.column)).column!=n.column||e.row!=n.row)},f.prototype.setDataProvider=function(e){this.$gatherData=e},f.prototype.showForRange=function(e,t,r,n){var i,o,s;n&&n!=this.lastEvent||this.isOpen&&document.activeElement==this.getElement()||(n=e.renderer,this.isOpen||(p.addPopup(this),this.$registerCloseEvents(),this.setTheme(n.theme)),this.isOpen=!0,this.addMarker(t,e.session),this.range=a.fromPoints(t.start,t.end),e=n.textToScreenCoordinates(t.start.row,t.start.column),t=n.scroller.getBoundingClientRect(),e.pageX<t.left&&(e.pageX=t.left),(t=this.getElement()).innerHTML="",t.appendChild(r),t.style.maxHeight="",t.style.display="block",r=t.clientHeight,i=t.clientWidth,o=window.innerHeight-e.pageY-n.lineHeight,s=!0,e.pageY-r<0&&e.pageY<o&&(s=!1),t.style.maxHeight=(s?e.pageY:o)-10+"px",t.style.top=s?"":e.pageY+n.lineHeight+"px",t.style.bottom=s?window.innerHeight-e.pageY+"px":"",t.style.left=Math.min(e.pageX,window.innerWidth-i-10)+"px")},f.prototype.addMarker=function(e,t){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=t,this.marker=t&&t.addMarker(e,"ace_highlight-marker","text")},f.prototype.hide=function(e){!e&&document.activeElement==this.getElement()||e&&e.target&&("keydown"!=e.type||e.ctrlKey||e.metaKey)&&this.$element.contains(e.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,p.removePopup(this)))},f.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},f.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},f.prototype.onMouseOut=function(e){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,!this.isOpen||!e.relatedTarget||this.getElement().contains(e.relatedTarget)||e&&e.currentTarget.contains(e.relatedTarget)||e.relatedTarget.classList.contains("ace_content")||this.hide()},i=f,t.HoverTooltip=i}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config","ace/lib/lang"],function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=e("../lib/dom"),a=e("../lib/event"),l=e("../tooltip").Tooltip,c=e("../config").nls;e("../lib/lang"),t.GutterHandler=function(e){var t,r,n=e.editor,i=n.renderer.$gutterLayer,o=new d(n);function l(){t=t&&clearTimeout(t),o.isOpen&&(o.hideTooltip(),n.off("mousewheel",l))}function c(e){o.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",function(t){if(n.isFocused()&&0==t.getButton()&&"foldWidgets"!=(r=i.getRegion(t))){var r=t.getDocumentPosition().row,o=n.session.selection;if(t.getShiftKey())o.selectTo(r,0);else{if(2==t.domEvent.detail)return n.selectAll(),t.preventDefault();e.$clickSelection=n.selection.getLineRange(r)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}}),e.editor.setDefaultHandler("guttermousemove",function(a){var u=a.domEvent.target||a.domEvent.srcElement;if(s.hasCssClass(u,"ace_fold-widget"))return l();o.isOpen&&e.$tooltipFollowsMouse&&c(a),r=a,t=t||setTimeout(function(){if(t=null,r&&!e.isMousePressed){var s=r.getDocumentPosition().row;if(s==n.session.getLength()){var a=n.renderer.pixelToScreenCoordinates(0,r.y).row,u=r.$pos;if(a>n.session.documentToScreenRow(u.row,u.column))return void l()}o.showTooltip(s),o.isOpen&&(n.on("mousewheel",l),!e.$tooltipFollowsMouse&&(a=r.getGutterRow(),u=i.$lines.get(a))?(s=u.element.querySelector(".ace_gutter_annotation").getBoundingClientRect(),(a=o.getElement().style).left=s.right+"px",a.top=s.bottom+"px"):c(r))}else l()},50)}),a.addListener(n.renderer.$gutter,"mouseout",function(e){r=null,o.isOpen&&(t=t||setTimeout(function(){t=null,l()},50))},n),n.on("changeSession",l),n.on("input",l)},i(h,u=l),h.prototype.setPosition=function(e,t){var r=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,i=this.getWidth(),o=this.getHeight();r<(e+=15)+i&&(e-=e+i-r),n<(t+=15)+o&&(t-=20+o),l.prototype.setPosition.call(this,e,t)},Object.defineProperty(h,"annotationLabels",{get:function(){return{error:{singular:c("gutter-tooltip.aria-label.error.singular","error"),plural:c("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:c("gutter-tooltip.aria-label.security.singular","security finding"),plural:c("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:c("gutter-tooltip.aria-label.warning.singular","warning"),plural:c("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:c("gutter-tooltip.aria-label.info.singular","information message"),plural:c("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:c("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:c("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),h.prototype.showTooltip=function(e){var t,r=this.editor.renderer.$gutterLayer,n=r.$annotations[e],i=n?{displayText:Array.from(n.displayText),type:Array.from(n.type)}:{displayText:[],type:[]},o=r.session.getFoldLine(e);if(o&&r.$showFoldedAnnotations){for(var a,l={error:[],security:[],warning:[],info:[],hint:[]},c={error:1,security:2,warning:3,info:4,hint:5},u=e+1;u<=o.end.row;u++)if(r.$annotations[u])for(var d=0;d<r.$annotations[u].text.length;d++){var p=r.$annotations[u].type[d];l[p].push(r.$annotations[u].text[d]),(!a||c[p]<c[a])&&(a=p)}["error","security","warning"].includes(a)&&(n="".concat(h.annotationsToSummaryString(l)," in folded code."),i.displayText.push(n),i.type.push(a+"_fold"))}if(0===i.displayText.length)return this.hideTooltip();var f={error:[],security:[],warning:[],info:[],hint:[]},m=r.$useSvgGutterIcons?"ace_icon_svg":"ace_icon";for(u=0;u<i.displayText.length;u++){var g=s.createElement("span"),y=s.createElement("span");(t=y.classList).add.apply(t,["ace_".concat(i.type[u]),m]),y.setAttribute("aria-label","".concat(h.annotationLabels[i.type[u].replace("_fold","")].singular)),y.setAttribute("role","img"),y.appendChild(s.createTextNode(" ")),g.appendChild(y),g.appendChild(s.createTextNode(i.displayText[u])),g.appendChild(s.createElement("br")),f[i.type[u].replace("_fold","")].push(g)}var v=this.getElement();s.removeChildren(v),f.error.forEach(function(e){return v.appendChild(e)}),f.security.forEach(function(e){return v.appendChild(e)}),f.warning.forEach(function(e){return v.appendChild(e)}),f.info.forEach(function(e){return v.appendChild(e)}),f.hint.forEach(function(e){return v.appendChild(e)}),v.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.visibleTooltipRow=e,this.editor._signal("showGutterTooltip",this)},h.prototype.hideTooltip=function(){this.isOpen&&(this.$element.removeAttribute("aria-live"),this.hide(),this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this))},h.annotationsToSummaryString=function(e){var t,r,n=[];try{for(var i=o(["error","security","warning","info","hint"]),s=i.next();!s.done;s=i.next()){var a,l=s.value;e[l].length&&(a=1===e[l].length?h.annotationLabels[l].singular:h.annotationLabels[l].plural,n.push("".concat(e[l].length," ").concat(a)))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n.join(", ")};var u,d=h;function h(e){var t=u.call(this,e.container)||this;return t.editor=e,t}t.GutterTooltip=d}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,r){var n=e("../lib/event"),i=e("../lib/useragent");function o(e,t){this.speed,this.wheelX,this.wheelY,this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}o.prototype.stopPropagation=function(){n.stopPropagation(this.domEvent),this.propagationStopped=!0},o.prototype.preventDefault=function(){n.preventDefault(this.domEvent),this.defaultPrevented=!0},o.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},o.prototype.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},o.prototype.getGutterRow=function(){var e=this.getDocumentPosition().row;return this.editor.session.documentToScreenRow(e,0)-this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0)},o.prototype.inSelection=function(){var e,t;return null===this.$inSelection&&((e=this.editor.getSelectionRange()).isEmpty()?this.$inSelection=!1:(t=this.getDocumentPosition(),this.$inSelection=e.contains(t.row,t.column))),this.$inSelection},o.prototype.getButton=function(){return n.getButton(this.domEvent)},o.prototype.getShiftKey=function(){return this.domEvent.shiftKey},o.prototype.getAccelKey=function(){return i.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},t.MouseEvent=o}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,t,r){var n=e("../lib/dom"),i=e("../lib/event"),o=e("../lib/useragent");function s(e){var t,r,s,l,c,u,d,h,p,f,m,g=e.editor,y=n.createElement("div"),v=(y.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",y.textContent=" ",["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(t){e[t]=this[t]},this),g.on("mousedown",this.onMouseDown.bind(e)),g.container),b=0;function w(){var e,t,n,i,o,l,c,d,h=u;n=u=g.renderer.screenToTextCoordinates(r,s),t=h,i=Date.now(),e=!t||n.row!=t.row,t=!t||n.column!=t.column,!f||e||t?(g.moveCursorToPosition(n),f=i,m={x:r,y:s}):5<a(m.x,m.y,r,s)?f=null:200<=i-f&&(g.renderer.scrollCursorIntoView(),f=null),e=u,t=h,n=Date.now(),i=g.renderer.layerConfig.lineHeight,h=g.renderer.layerConfig.characterWidth,o=g.renderer.scroller.getBoundingClientRect(),o={x:{left:r-o.left,right:o.right-r},y:{top:s-o.top,bottom:o.bottom-s}},l=Math.min(o.x.left,o.x.right),c=Math.min(o.y.top,o.y.bottom),d={row:e.row,column:e.column},l/h<=2&&(d.column+=o.x.left<o.x.right?-3:2),c/i<=1&&(d.row+=o.y.top<o.y.bottom?-1:1),l=!t||e.row!=t.row,e.row!=d.row||e.column!=d.column&&!l?p?200<=n-p&&g.renderer.scrollCursorIntoView(d):p=n:p=null}function x(){c=g.selection.toOrientedRange(),t=g.session.addMarker(c,"ace_selection",g.getSelectionStyle()),g.clearSelection(),g.isFocused()&&g.renderer.$cursorLayer.setBlinking(!1),clearInterval(l),w(),l=setInterval(w,20),b=0,i.addListener(document,"mousemove",S)}function A(){clearInterval(l),g.session.removeMarker(t),t=null,g.selection.fromOrientedRange(c),g.isFocused()&&!h&&g.$resetCursorStyle(),b=0,f=p=u=c=null,i.removeListener(document,"mousemove",S)}this.onDragStart=function(e){var t;if(this.cancelDrag||!v.draggable)return t=this,setTimeout(function(){t.startSelect(),t.captureMouse(e)},0),e.preventDefault();c=g.getSelectionRange();var r=e.dataTransfer;r.effectAllowed=g.getReadOnly()?"copy":"copyMove",g.container.appendChild(y),r.setDragImage&&r.setDragImage(y,0,0),setTimeout(function(){g.container.removeChild(y)}),r.clearData(),r.setData("Text",g.session.getTextRange()),h=!0,this.setState("drag")},this.onDragEnd=function(e){v.draggable=!1,h=!1,this.setState(null),g.getReadOnly()||(e=e.dataTransfer.dropEffect,d||"move"!=e||g.session.remove(g.getSelectionRange()),g.$resetCursorStyle()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!g.getReadOnly()&&I(e.dataTransfer))return r=e.clientX,s=e.clientY,t||x(),b++,e.dataTransfer.dropEffect=d=k(e),i.preventDefault(e)},this.onDragOver=function(e){if(!g.getReadOnly()&&I(e.dataTransfer))return r=e.clientX,s=e.clientY,t||(x(),b++),null!==C&&(C=null),e.dataTransfer.dropEffect=d=k(e),i.preventDefault(e)},this.onDragLeave=function(e){if(--b<=0&&t)return A(),d=null,i.preventDefault(e)},this.onDrop=function(e){if(u){var t=e.dataTransfer;if(h)switch(d){case"move":c=c.contains(u.row,u.column)?{start:u,end:u}:g.moveText(c,u);break;case"copy":c=g.moveText(c,u,!0)}else t=t.getData("Text"),c={start:u,end:g.session.insert(u,t)},g.focus(),d=null;return A(),i.preventDefault(e)}},i.addListener(v,"dragstart",this.onDragStart.bind(e),g),i.addListener(v,"dragend",this.onDragEnd.bind(e),g),i.addListener(v,"dragenter",this.onDragEnter.bind(e),g),i.addListener(v,"dragover",this.onDragOver.bind(e),g),i.addListener(v,"dragleave",this.onDragLeave.bind(e),g),i.addListener(v,"drop",this.onDrop.bind(e),g);var C=null;function S(){null==C&&(C=setTimeout(function(){null!=C&&t&&A()},20))}function I(e){return!(e=e.types)||Array.prototype.some.call(e,function(e){return"text/plain"==e||"Text"==e})}function k(e){var t=["copy","copymove","all","uninitialized"],r=o.isMac?e.altKey:e.ctrlKey,n="uninitialized";try{n=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var i="none";return r&&0<=t.indexOf(n)?i="copy":0<=["move","copymove","linkmove","all","uninitialized"].indexOf(n)?i="move":0<=t.indexOf(n)&&(i="copy"),i}}function a(e,t,r,n){return Math.sqrt(Math.pow(r-e,2)+Math.pow(n-t,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=(e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging"),o.isWin?"default":"move");e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;o.isIE&&"dragReady"==this.state&&3<a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&t.dragDrop(),"dragWait"===this.state&&0<a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))},this.onMouseDown=function(e){var t,r,n;this.$dragEnabled&&(this.mousedownEvent=e,t=this.editor,r=e.inSelection(),n=e.getButton(),1!==(e.domEvent.detail||1)||0!==n||!r||e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey())||(this.mousedownEvent.time=Date.now(),"unselectable"in(n=e.domEvent.target||e.domEvent.srcElement)&&(n.unselectable="on"),t.getDragDelay()?(o.isWebKit&&(this.cancelDrag=!0,t.container.draggable=!0),this.setState("dragWait")):this.startDrag(),this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0))}}).call(s.prototype),t.DragdropHandler=s}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,t,r){var n=e("./mouse_event").MouseEvent,i=e("../lib/event"),o=e("../lib/dom");t.addTouchListeners=function(e,t){var r,s,a,l,c,u,d,h,p,f="scroll",m=0,g=0,y=0,v=0;function b(){var e,r,n,i;t.getOption("enableMobileMenu")?(p||function(){function e(e){var s,a=e.target.getAttribute("action");"more"!=a&&n?("paste"==a?r.readText().then(function(e){t.execCommand(a,e)}):a&&("cut"!=a&&"copy"!=a||(r?r.writeText(t.getCopyText()):document.execCommand("copy")),t.execCommand(a)),p.firstChild.style.display="none",n=!1,"openCommandPalette"!=a&&t.focus()):(n=!n,e=t.getCopyText(),s=t.session.getUndoManager().hasUndo(),p.replaceChild(o.buildDom(n?["span",!e&&i("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],e&&i("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],e&&i("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],r&&i("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],s&&i("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],i("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],i("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),p.firstChild))}var r=window.navigator&&window.navigator.clipboard,n=!1,i=function(e){return t.commands.canExecute(e,t)};p=o.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(e){f="menu",e.stopPropagation(),e.preventDefault(),t.textInput.focus()},ontouchend:function(t){t.stopPropagation(),t.preventDefault(),e(t)},onclick:e},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],t.container)}(),e=t.selection.cursor,e=t.renderer.textToScreenCoordinates(e.row,e.column),r=t.renderer.textToScreenCoordinates(0,0).pageX,n=t.renderer.scrollLeft,i=t.container.getBoundingClientRect(),p.style.top=e.pageY-i.top-3+"px",e.pageX-i.left<i.width-70?(p.style.left="",p.style.right="10px"):(p.style.right="",p.style.left=r+n-i.left+"px"),p.style.display="",p.firstChild.style.display="none",t.on("input",w)):p&&w()}function w(e){p&&(p.style.display="none"),t.off("input",w)}function x(){c=null,clearTimeout(c);var e=t.selection.getRange(),r=e.contains(d.row,d.column);!e.isEmpty()&&r||(t.selection.moveToPosition(d),t.selection.selectWord()),f="wait",b()}i.addListener(e,"contextmenu",function(e){h&&t.textInput.getElement().focus()},t),i.addListener(e,"touchstart",function(e){var i=e.touches;if(c||1<i.length)clearTimeout(c),c=null,a=-1,f="zoom";else{h=t.$mouseHandler.isMousePressed=!0;var o=t.renderer.layerConfig.lineHeight,u=t.renderer.layerConfig.lineHeight,p=e.timeStamp,b=(l=p,w=i[0]).clientX,w=w.clientY;if(Math.abs(r-b)+Math.abs(s-w)>o&&(a=-1),r=e.clientX=b,s=e.clientY=w,y=v=0,b=new n(e,t),d=b.getDocumentPosition(),p-a<500&&1==i.length&&!m)g++,e.preventDefault(),e.button=0,c=null,clearTimeout(c),t.selection.moveToPosition(d),(w=2<=g?t.selection.getLineRange(d.row):t.session.getBracketRange(d))&&!w.isEmpty()?t.selection.setRange(w):t.selection.selectWord(),f="wait";else{g=0,b=t.selection.cursor,i=t.selection.isEmpty()?b:t.selection.anchor,w=t.renderer.$cursorLayer.getPixelPosition(b,!0),b=t.renderer.$cursorLayer.getPixelPosition(i,!0),i=t.renderer.scroller.getBoundingClientRect();var A=t.renderer.layerConfig.offset,C=t.renderer.scrollLeft,S=function(e,t){return(e/=u)*e+(t=t/o-.75)*t};if(e.clientX<i.left)return void(f="zoom");w=S(e.clientX-i.left-w.left+C,e.clientY-i.top-w.top+A),S=S(e.clientX-i.left-b.left+C,e.clientY-i.top-b.top+A),w<3.5&&S<3.5&&(f=S<w?"cursor":"anchor"),f=S<3.5?"anchor":w<3.5?"cursor":"scroll",c=setTimeout(x,450)}a=p}},t),i.addListener(e,"touchend",function(e){h=t.$mouseHandler.isMousePressed=!1,u&&clearInterval(u),"zoom"==f?(f="",m=0):(c?(t.selection.moveToPosition(d),m=0,b):"scroll"==f?(m+=60,u=setInterval(function(){m--<=0&&(clearInterval(u),u=null),Math.abs(y)<.01&&(y=0),Math.abs(v)<.01&&(v=0),m<20&&(y*=.9),m<20&&(v*=.9);var e=t.session.getScrollTop();t.renderer.scrollBy(10*y,10*v),e==t.session.getScrollTop()&&(m=0)},10),w):b)(),clearTimeout(c),c=null},t),i.addListener(e,"touchmove",function(e){if(c&&(clearTimeout(c),c=null),!(1<(i=e.touches).length||"zoom"==f)){var i=i[0],o=r-i.clientX,a=s-i.clientY;if("wait"==f){if(!(4<o*o+a*a))return e.preventDefault();f="cursor"}r=i.clientX,s=i.clientY,e.clientX=i.clientX,e.clientY=i.clientY;var u=(i=e.timeStamp)-l;l=i,"scroll"==f?((i=new n(e,t)).speed=1,i.wheelX=o,i.wheelY=a,10*Math.abs(o)<Math.abs(a)&&(o=0),10*Math.abs(a)<Math.abs(o)&&(a=0),0!=u&&(y=o/u,v=a/u),t._emit("mousewheel",i),i.propagationStopped||(y=v=0)):(o=new n(e,t).getDocumentPosition(),"cursor"==f?t.selection.moveCursorToPosition(o):"anchor"==f&&t.selection.setSelectionAnchor(o.row,o.column),t.renderer.scrollCursorIntoView(o),e.preventDefault())}},t)}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(e,t,r){var n=e("../lib/event"),i=e("../lib/useragent"),o=e("./default_handlers").DefaultHandlers,s=e("./default_gutter_handler").GutterHandler,a=e("./mouse_event").MouseEvent,l=e("./dragdrop_handler").DragdropHandler,c=e("./touch_handler").addTouchListeners,u=(e=e("../config"),d.prototype.onMouseEvent=function(e,t){this.editor.session&&this.editor._emit(e,new a(t,this.editor))},d.prototype.onMouseMove=function(e,t){var r=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;r&&r.length&&this.editor._emit(e,new a(t,this.editor))},d.prototype.onMouseWheel=function(e,t){var r=new a(t,this.editor);r.speed=2*this.$scrollSpeed,r.wheelX=t.wheelX,r.wheelY=t.wheelY,this.editor._emit(e,r)},d.prototype.setState=function(e){this.state=e},d.prototype.captureMouse=function(e,t){function r(e){if(e){if(i.isWebKit&&!e.which&&u.releaseMouse)return u.releaseMouse();u.x=e.clientX,u.y=e.clientY,t&&t(e),u.mouseEvent=new a(e,u.editor),u.$mouseMoved=!0}}function o(e){l.off("beforeEndOperation",d),clearInterval(h),l.session&&s(),u[u.state+"End"]&&u[u.state+"End"](e),u.state="",u.isMousePressed=c.$isMousePressed=!1,c.$keepTextAreaAtCursor&&c.$moveTextAreaToCursor(),u.$onCaptureMouseMove=u.releaseMouse=null,e&&u.onMouseEvent("mouseup",e),l.endOperation()}function s(){u[u.state]&&u[u.state](),u.$mouseMoved=!1}this.x=e.x,this.y=e.y,this.isMousePressed=!0;var l=this.editor,c=this.editor.renderer,u=(c.$isMousePressed=!0,this);if(i.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout(function(){o(e)});var d=function(e){u.releaseMouse&&l.curOp.command.name&&l.curOp.selectionChanged&&(u[u.state+"End"]&&u[u.state+"End"](),u.state="",u.releaseMouse())},h=(l.on("beforeEndOperation",d),l.startOperation({command:{name:"mouse"}}),u.$onCaptureMouseMove=r,u.releaseMouse=n.capture(this.editor.container,r,o),setInterval(s,20))},d.prototype.cancelContextMenu=function(){var e=function(t){t&&t.domEvent&&"contextmenu"!=t.domEvent.type||(this.editor.off("nativecontextmenu",e),t&&t.domEvent&&n.stopEvent(t.domEvent))}.bind(this);setTimeout(e,10),this.editor.on("nativecontextmenu",e)},d.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},d);function d(e){function t(t){document.hasFocus&&document.hasFocus()&&(e.isFocused()||document.activeElement!=(e.textInput&&e.textInput.getElement()))||window.focus(),e.focus(),setTimeout(function(){e.isFocused()||e.focus()})}this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var r=this,a=(this.editor=e,new o(this),new s(this),new l(this),e.renderer.getMouseEventTarget()),u=(n.addListener(a,"click",this.onMouseEvent.bind(this,"click"),e),n.addListener(a,"mousemove",this.onMouseMove.bind(this,"mousemove"),e),n.addMultiMouseDownListener([a,e.renderer.scrollBarV&&e.renderer.scrollBarV.inner,e.renderer.scrollBarH&&e.renderer.scrollBarH.inner,e.textInput&&e.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",e),n.addMouseWheelListener(e.container,this.onMouseWheel.bind(this,"mousewheel"),e),c(e.container,e),e.renderer.$gutter);n.addListener(u,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),e),n.addListener(u,"click",this.onMouseEvent.bind(this,"gutterclick"),e),n.addListener(u,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),e),n.addListener(u,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),e),n.addListener(a,"mousedown",t,e),n.addListener(u,"mousedown",t,e),i.isIE&&e.renderer.scrollBarV&&(n.addListener(e.renderer.scrollBarV.element,"mousedown",t,e),n.addListener(e.renderer.scrollBarH.element,"mousedown",t,e)),e.on("mousemove",function(t){var n,i;r.state||r.$dragDelay||!r.$dragEnabled||(t=e.renderer.screenToTextCoordinates(t.x,t.y),n=e.session.selection.getRange(),i=e.renderer,!n.isEmpty()&&n.insideStart(t.row,t.column)?i.setCursorStyle("default"):i.setCursorStyle(""))},e)}u.prototype.releaseMouse=null,e.defineOptions(u.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:i.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=u}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,t,r){var n=e("../lib/dom");t.FoldHandler=function(e){e.on("click",function(t){var r=t.getDocumentPosition(),i=e.session;(r=i.getFoldAt(r.row,r.column,1))&&(t.getAccelKey()?i.removeFold(r):i.expandFold(r),t.stop()),(r=t.domEvent&&t.domEvent.target)&&n.hasCssClass(r,"ace_inline_button")&&n.hasCssClass(r,"ace_toggle_wrap")&&(i.setOption("wrap",!i.getUseWrapMode()),e.renderer.scrollCursorIntoView())}),e.on("gutterclick",function(t){var r,n;"foldWidgets"==e.renderer.$gutterLayer.getRegion(t)&&(r=t.getDocumentPosition().row,(n=e.session).foldWidgets&&n.foldWidgets[r]&&e.session.onFoldWidgetClick(r,t),e.isFocused()||e.focus(),t.stop())}),e.on("gutterdblclick",function(t){var r,n,i;"foldWidgets"==e.renderer.$gutterLayer.getRegion(t)&&(i=t.getDocumentPosition().row,(n=(n=(r=e.session).getParentFoldRangeData(i,!0)).range||n.firstRange)&&(i=n.start.row,(i=r.getFoldAt(i,r.getLine(i).length,1))?r.removeFold(i):(r.addFold("...",n),e.renderer.scrollCursorIntoView({row:n.start.row,column:0}))),t.stop())})}}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,t,r){var n=e("../lib/keys"),i=e("../lib/event");function o(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)}o.prototype.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},o.prototype.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){for(;t[t.length-1]&&t[t.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},o.prototype.addKeyboardHandler=function(e,t){var r;e&&("function"!=typeof e||e.handleKeyboard||(e.handleKeyboard=e),-1!=(r=this.$handlers.indexOf(e))&&this.$handlers.splice(r,1),null==t?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==r)&&e.attach&&e.attach(this.$editor)},o.prototype.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},o.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},o.prototype.getStatusText=function(){var e=this.$data,t=e.editor;return this.$handlers.map(function(r){return r.getStatusText&&r.getStatusText(t,e)||""}).filter(Boolean).join(" ")},o.prototype.$callKeyboardHandlers=function(e,t,r,n){for(var o,s=!1,a=this.$editor.commands,l=this.$handlers.length;l--&&!((o=this.$handlers[l].handleKeyboard(this.$data,e,t,r,n))&&o.command&&((s="null"==o.command||a.exec(o.command,this.$editor,o.args,n))&&n&&-1!=e&&1!=o.passEvent&&1!=o.command.passEvent&&i.stopEvent(n),s)););return s||-1!=e||(o={command:"insertstring"},s=a.exec("insertstring",this.$editor,t)),s&&this.$editor._signal&&this.$editor._signal("keyboardActivity",o),s},o.prototype.onCommandKey=function(e,t,r){var i=n.keyCodeToString(r);return this.$callKeyboardHandlers(t,i,r,e)},o.prototype.onTextInput=function(e){return this.$callKeyboardHandlers(-1,e)},t.KeyBinding=o}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,t,r){var n=0,i=0,o=!1,s=!1,a=!1,l=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],c=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u=11,d=18,h=[d,d,d,d,d,d,d,d,d,6,5,6,8,5,d,d,d,d,d,d,d,d,d,d,d,d,d,d,5,5,5,6,8,4,4,u,u,u,4,4,4,4,4,10,9,10,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,d,d,d,d,d,d,5,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,9,4,u,u,u,u,4,4,4,4,0,4,4,d,4,4,u,u,2,2,4,0,4,4,4,2,0,4,4,4,4,4],p=[8,8,8,8,8,8,8,8,8,8,8,d,d,d,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,u,u,u,u,u,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8];function f(e,t,r){if(!(i<e))if(1!=e||1!=n||s)for(var o,a,l,c,u=r.length,d=0;d<u;){if(t[d]>=e){for(o=d+1;o<u&&t[o]>=e;)o++;for(a=d,l=o-1;a<l;a++,l--)c=r[a],r[a]=r[l],r[l]=c;d=o}d++}else r.reverse()}function m(e){var t=e.charCodeAt(0),r=t>>8;return 0==r?191<t?0:h[t]:5==r?/[\u0591-\u05f4]/.test(e)?1:0:6==r?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?12:/[\u0660-\u0669\u066b-\u066c]/.test(e)?3:1642==t?u:/[\u06f0-\u06f9]/.test(e)?2:7:32==r&&t<=8287?p[255&t]:254==r&&65136<=t?7:4}t.L=0,t.R=1,t.EN=2,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.RLE=7,t.DOT="·",t.doBidiReorder=function(e,r,h){if(e.length<2)return{};var p=e.split(""),g=new Array(p.length),y=new Array(p.length),v=[];n=h?1:0,function(e,t,r,h){var p,f,g,y=n?c:l,v=0,b=-1,w=null,x=null,A=[];if(!h)for(w=0,h=[];w<r;w++)h[w]=m(e[w]);for(i=n,a=s=o=!1,x=0;x<r;x++){if(g=v,A[x]=p=((e,t,r,i)=>{var l,c,h,p=t[i];switch(p){case 0:case 1:o=!1;case 4:case 3:return p;case 2:return o?3:2;case 7:return o=!0,1;case 8:return 4;case 9:return i<1||i+1>=t.length||2!=(l=r[i-1])&&3!=l||2!=(f=t[i+1])&&3!=f?4:(f=o?3:f)==l?f:4;case 10:return 2==(l=0<i?r[i-1]:5)&&i+1<t.length&&2==t[i+1]?2:4;case u:if(0<i&&2==r[i-1])return 2;if(o)return 4;for(h=i+1,c=t.length;h<c&&t[h]==u;)h++;return h<c&&2==t[h]?2:4;case 12:for(c=t.length,h=i+1;h<c&&12==t[h];)h++;if(h<c){var f=1425<=(f=e[i])&&f<=2303||64286==f;if(l=t[h],f&&(1==l||7==l))return 1}return i<1||5==(l=t[i-1])?4:r[i-1];case 5:return s=!(o=!1),n;case 6:return a=!0,4;case 13:case 14:case 16:case 17:case 15:o=!1;case d:return 4}})(e,h,A,x),g=240&(v=y[g][p]),v&=15,t[x]=f=y[v][5],0<g){if(16==g)for(w=b;w<x;w++)t[w]=1;b=-1}if(y[v][6])-1==b&&(b=x);else if(-1<b){for(w=b;w<x;w++)t[w]=f;b=-1}5==h[x]&&(t[x]=0),i|=f}if(a)for(w=0;w<r;w++)if(6==h[w]){t[w]=n;for(var C=w-1;0<=C&&8==h[C];C--)t[C]=n}}(p,v,p.length,r);for(var b=0;b<g.length;g[b]=b,b++);for(f(2,v,g),f(1,v,g),b=0;b<g.length-1;b++)3===r[b]?v[b]=t.AN:1===v[b]&&(r[b]>7&&r[b]<13||4===r[b]||r[b]===d)?v[b]=t.ON_R:0<b&&"ل"===p[b-1]&&/\u0622|\u0623|\u0625|\u0627/.test(p[b])&&(v[b-1]=v[b]=t.R_H,b++);for(p[p.length-1]===t.DOT&&(v[p.length-1]=t.B),""===p[0]&&(v[0]=t.RLE),b=0;b<g.length;b++)y[b]=v[g[b]];return{logicalFromVisual:g,bidiLevels:y}},t.hasBidiCharacters=function(e,t){for(var r=!1,n=0;n<e.length;n++)t[n]=m(e.charAt(n)),r||1!=t[n]&&7!=t[n]&&3!=t[n]||(r=!0);return r},t.getVisualFromLogicalIdx=function(e,t){for(var r=0;r<t.logicalFromVisual.length;r++)if(t.logicalFromVisual[r]==e)return r;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,t,r){var n=e("./lib/bidiutil"),i=e("./lib/lang"),o=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/;function s(e){this.session=e,this.bidiMap={},this.currentRow=null,this.bidiUtil=n,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=o.test(e.getValue())}s.prototype.isBidiRow=function(e,t,r){return!!this.seenBidi&&(e!==this.currentRow&&(this.currentRow=e,this.updateRowLine(t,r),this.updateBidiMap()),this.bidiMap.bidiLevels)},s.prototype.onChange=function(e){this.seenBidi?this.currentRow=null:"insert"==e.action&&o.test(e.lines.join("\n"))&&(this.seenBidi=!0,this.currentRow=null)},s.prototype.getDocumentRow=function(){var e=this.session.$screenRowCache;return e.length&&0<=(e=this.session.$getRowCacheIndex(e,this.currentRow))?this.session.$docRowCache[e]:0},s.prototype.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var r,n=this.session.$getRowCacheIndex(t,this.currentRow);0<this.currentRow-e&&(r=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===n;)n=r,e++;else e=this.currentRow;return e},s.prototype.updateRowLine=function(e,t){var r,o=(e=void 0===e?this.getDocumentRow():e)===this.session.getLength()-1?this.EOF:this.EOL,s=(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,(!this.session.$useWrapMode||(e=this.session.$wrapData[e])&&(0<(t=void 0===t?this.getSplitIndex():t)&&e.length?(this.wrapIndent=e.indent,this.wrapOffset=this.wrapIndent*this.charWidths[n.L],this.line=t<e.length?this.line.substring(e[t-1],e[t]):this.line.substring(e[e.length-1])):this.line=this.line.substring(0,e[t]),t==e.length))&&(this.line+=this.showInvisibles?o:n.DOT),this.session),a=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(e,t){return"\t"===e||s.isFullWidth(e.charCodeAt(0))?(r="\t"===e?s.getScreenTabSize(t+a):2,a+=r-1,i.stringRepeat(n.DOT,r)):e}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==n.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},s.prototype.updateBidiMap=function(){var e=[];n.hasBidiCharacters(this.line,e)||this.isRtlDir?this.bidiMap=n.doBidiReorder(this.line,e,this.isRtlDir):this.bidiMap={}},s.prototype.markAsDirty=function(){this.currentRow=null},s.prototype.updateCharacterWidths=function(e){var t;this.characterWidth!==e.$characterSize.width&&(this.fontMetrics=e,t=this.characterWidth=e.$characterSize.width,e=e.$measureCharWidth("ה"),this.charWidths[n.L]=this.charWidths[n.EN]=this.charWidths[n.ON_R]=t,this.charWidths[n.R]=this.charWidths[n.AN]=e,this.charWidths[n.R_H]=.45*e,this.charWidths[n.B]=this.charWidths[n.RLE]=0,this.currentRow=null)},s.prototype.setShowInvisibles=function(e){this.showInvisibles=e,this.currentRow=null},s.prototype.setEolChar=function(e){this.EOL=e},s.prototype.setContentWidth=function(e){this.contentWidth=e},s.prototype.isRtlLine=function(e){return!!this.$isRtl||(null!=e?this.session.getLine(e).charAt(0)==this.RLE:this.isRtlDir)},s.prototype.setRtlDirection=function(e,t){for(var r=e.getCursorPosition(),n=e.selection.getSelectionAnchor().row;n<=r.row;n++)t||e.session.getLine(n).charAt(0)!==e.session.$bidiHandler.RLE?t&&e.session.getLine(n).charAt(0)!==e.session.$bidiHandler.RLE&&e.session.doc.insert({column:0,row:n},e.session.$bidiHandler.RLE):e.session.doc.removeInLine(n,0,1)},s.prototype.getPosLeft=function(e){e-=this.wrapIndent;var t=this.line.charAt(0)===this.RLE?1:0,r=t<e?this.session.getOverwrite()?e:e-1:t,i=n.getVisualFromLogicalIdx(r,this.bidiMap),o=this.bidiMap.bidiLevels,s=0;!this.session.getOverwrite()&&e<=t&&o[i]%2!=0&&i++;for(var a=0;a<i;a++)s+=this.charWidths[o[a]];return!this.session.getOverwrite()&&t<e&&o[i]%2==0&&(s+=this.charWidths[o[i]]),this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(s+=this.rtlLineOffset),s},s.prototype.getSelections=function(e,t){var r,n=this.bidiMap,i=n.bidiLevels,o=[],s=0,a=Math.min(e,t)-this.wrapIndent,l=Math.max(e,t)-this.wrapIndent,c=!1,u=!1,d=0;this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var h,p=0;p<i.length;p++)h=n.logicalFromVisual[p],r=i[p],(c=a<=h&&h<l)&&!u?d=s:!c&&u&&o.push({left:d,width:s-d}),s+=this.charWidths[r],u=c;if(c&&p===i.length&&o.push({left:d,width:s-d}),this.isRtlDir)for(var f=0;f<o.length;f++)o[f].left+=this.rtlLineOffset;return o},s.prototype.offsetToCol=function(e){this.isRtlDir&&(e-=this.rtlLineOffset);var t=0,r=(e=Math.max(e,0),0),n=0,i=this.bidiMap.bidiLevels,o=this.charWidths[i[n]];for(this.wrapIndent&&(e-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);r+o/2<e;){if(r+=o,n===i.length-1){o=0;break}o=this.charWidths[i[++n]]}return 0===(t=0<n&&i[n-1]%2!=0&&i[n]%2==0?(e<r&&n--,this.bidiMap.logicalFromVisual[n]):0<n&&i[n-1]%2==0&&i[n]%2!=0?1+(r<e?this.bidiMap.logicalFromVisual[n]:this.bidiMap.logicalFromVisual[n-1]):this.isRtlDir&&n===i.length-1&&0===o&&i[n-1]%2==0||!this.isRtlDir&&0===n&&i[n]%2!=0?1+this.bidiMap.logicalFromVisual[n]:(0<n&&i[n-1]%2!=0&&0!==o&&n--,this.bidiMap.logicalFromVisual[n]))&&this.isRtlDir&&t++,t+this.wrapIndent},t.BidiHandler=s}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(e,t,r){var n=e("./lib/oop"),i=e("./lib/lang"),o=e("./lib/event_emitter").EventEmitter,s=e("./range").Range;function a(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),t.$isEmpty||t.$silent||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)}),this.anchor.on("change",function(){t.$anchorChanged=!0,t.$isEmpty||t.$silent||t._emit("changeSelection")})}a.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},a.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},a.prototype.getCursor=function(){return this.lead.getPosition()},a.prototype.setAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},a.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},a.prototype.getSelectionLead=function(){return this.lead.getPosition()},a.prototype.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},a.prototype.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?s.fromPoints(t,t):this.isBackwards()?s.fromPoints(t,e):s.fromPoints(e,t)},a.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},a.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},a.prototype.setRange=function(e,t){var r=t?e.end:e.start;t=t?e.start:e.end,this.$setSelection(r.row,r.column,t.row,t.column)},a.prototype.$setSelection=function(e,t,r,n){var i,o;!this.$silent&&(i=this.$isEmpty,o=this.inMultiSelectMode,this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(r,n),this.$isEmpty=!s.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),this.$cursorChanged||this.$anchorChanged||i!=this.$isEmpty||o)&&this._emit("changeSelection")},a.prototype.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},a.prototype.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})},a.prototype.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})},a.prototype.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},a.prototype.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},a.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},a.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},a.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},a.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},a.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},a.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},a.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},a.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},a.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},a.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},a.prototype.getWordRange=function(e,t){var r;return void 0===t&&(e=(r=e||this.lead).row,t=r.column),this.session.getWordRange(e,t)},a.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},a.prototype.selectAWord=function(){var e=this.getCursor();e=this.session.getAWordRange(e.row,e.column),this.setSelectionRange(e)},a.prototype.getLineRange=function(e,t){e="number"==typeof e?e:this.lead.row;var r=(r=this.session.getFoldLine(e))?(e=r.start.row,r.end.row):e;return!0===t?new s(e,0,r,this.session.getLine(r).length):new s(e,0,r+1,0)},a.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},a.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},a.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},a.prototype.wouldMoveIntoSoftTab=function(e,t,r){var n=e.column,i=e.column+t;return r<0&&(n=e.column-t,i=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(n,i).split(" ").length-1==t},a.prototype.moveCursorLeft=function(){var e,t=this.lead.getPosition();(e=this.session.getFoldAt(t.row,t.column,-1))?this.moveCursorTo(e.start.row,e.start.column):0===t.column?0<t.row&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length):(e=this.session.getTabSize(),this.wouldMoveIntoSoftTab(t,e,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-e):this.moveCursorBy(0,-1))},a.prototype.moveCursorRight=function(){var e,t=this.lead.getPosition();(e=this.session.getFoldAt(t.row,t.column,1))?this.moveCursorTo(e.end.row,e.end.column):this.lead.column==this.doc.getLine(this.lead.row).length?this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0):(e=this.session.getTabSize(),t=this.lead,this.wouldMoveIntoSoftTab(t,e,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,e):this.moveCursorBy(0,1))},a.prototype.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,r=this.session.documentToScreenRow(e,t);r=this.session.screenToDocumentPosition(r,0),(e=this.session.getDisplayLine(e,null,r.row,r.column).match(/^\s*/))[0].length==t||this.session.$useEmacsStyleLineStart||(r.column+=e[0].length),this.moveCursorToPosition(r)},a.prototype.moveCursorLineEnd=function(){var e,t=this.lead;t=this.session.getDocumentLastRowColumnPosition(t.row,t.column),this.lead.column==t.column&&(e=this.session.getLine(t.row),t.column==e.length)&&0<(e=e.search(/\s+$/))&&(t.column=e),this.moveCursorTo(t.row,t.column)},a.prototype.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},a.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},a.prototype.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,r=this.doc.getLine(e),n=r.substring(t),i=(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.getFoldAt(e,t,1));i?this.moveCursorTo(i.end.row,i.end.column):(this.session.nonTokenRe.exec(n)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,n=r.substring(t)),t>=r.length?(this.moveCursorTo(e,r.length),this.moveCursorRight(),e<this.doc.getLength()-1&&this.moveCursorWordRight()):(this.session.tokenRe.exec(n)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)))},a.prototype.moveCursorLongWordLeft=function(){var e,t=this.lead.row,r=this.lead.column;(e=this.session.getFoldAt(t,r,-1))?this.moveCursorTo(e.start.row,e.start.column):(null==(e=this.session.getFoldStringAt(t,r,-1))&&(e=this.doc.getLine(t).substring(0,r)),e=i.stringReverse(e),this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(e)&&(r-=this.session.nonTokenRe.lastIndex,e=e.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),r<=0?(this.moveCursorTo(t,0),this.moveCursorLeft(),0<t&&this.moveCursorWordLeft()):(this.session.tokenRe.exec(e)&&(r-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,r)))},a.prototype.$shortWordEndIndex=function(e){var t,r=0,n=/\s/,i=this.session.tokenRe;if(i.lastIndex=0,this.session.tokenRe.exec(e))r=this.session.tokenRe.lastIndex;else{for(;(t=e[r])&&n.test(t);)r++;if(r<1)for(i.lastIndex=0;(t=e[r])&&!i.test(t);)if(i.lastIndex=0,r++,n.test(t)){if(2<r){r--;break}for(;(t=e[r])&&n.test(t);)r++;if(2<r)break}}return i.lastIndex=0,r},a.prototype.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,r=this.doc.getLine(e),n=r.substring(t),i=this.session.getFoldAt(e,t,1);if(i)return this.moveCursorTo(i.end.row,i.end.column);if(t==r.length){for(var o=this.doc.getLength();n=this.doc.getLine(++e),e<o&&/^\s*$/.test(n););/^\s+/.test(n)||(n=""),t=0}i=this.$shortWordEndIndex(n),this.moveCursorTo(e,t+i)},a.prototype.moveCursorShortWordLeft=function(){var e=this.lead.row,t=this.lead.column;if(n=this.session.getFoldAt(e,t,-1))return this.moveCursorTo(n.start.row,n.start.column);var r=this.session.getLine(e).substring(0,t);if(0===t){for(;r=this.doc.getLine(--e),0<e&&/^\s*$/.test(r););t=r.length,/\s+$/.test(r)||(r="")}var n=i.stringReverse(r);return n=this.$shortWordEndIndex(n),this.moveCursorTo(e,t-n)},a.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},a.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},a.prototype.moveCursorBy=function(e,t){var r,n=this.session.documentToScreenPosition(this.lead.row,this.lead.column),i=(0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(n.row,this.lead.row)?(r=this.session.$bidiHandler.getPosLeft(n.column),n.column=Math.round(r/this.session.$bidiHandler.charWidths[0])):r=n.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?n.column=this.$desiredColumn:this.$desiredColumn=n.column),0!=e&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]&&(i=this.session.lineWidgets[this.lead.row],e<0?e-=i.rowsAbove||0:0<e&&(e+=i.rowCount-(i.rowsAbove||0))),this.session.screenToDocumentPosition(n.row+e,n.column,r));0!==e&&0===t&&i.row===this.lead.row&&(i.column,this.lead.column),this.moveCursorTo(i.row,i.column+t,0===t)},a.prototype.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},a.prototype.moveCursorTo=function(e,t,r){var n=((n=this.session.getFoldAt(e,t,1))&&(e=n.start.row,t=n.start.column),this.$keepDesiredColumnOnChange=!0,this.session.getLine(e));/[\uDC00-\uDFFF]/.test(n.charAt(t))&&n.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,r||(this.$desiredColumn=null)},a.prototype.moveCursorToScreen=function(e,t,r){e=this.session.screenToDocumentPosition(e,t),this.moveCursorTo(e.row,e.column,r)},a.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},a.prototype.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},a.prototype.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},a.prototype.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var r=this.getCursor();return s.fromPoints(t,r)}catch(e){return s.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},a.prototype.toJSON=function(){var e;return this.rangeCount?e=this.ranges.map(function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t}):(e=this.getRange()).isBackwards=this.isBackwards(),e},a.prototype.fromJSON=function(e){if(null==e.start){if(this.rangeList&&1<e.length){this.toSingleRange(e[0]);for(var t=e.length;t--;){var r=s.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(r.cursor=r.start),this.addRange(r,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},a.prototype.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0},(e=a).prototype.setSelectionAnchor=e.prototype.setAnchor,e.prototype.getSelectionAnchor=e.prototype.getAnchor,e.prototype.setSelectionRange=e.prototype.setRange,n.implement(e.prototype,o),t.Selection=e}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(e,t,r){e=e("./lib/report_error").reportError;var n=2e3,i=(o.prototype.$setMaxTokenCount=function(e){n=0|e},o.prototype.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),r=this.token.apply(this,t);if("string"==typeof r)return[{type:r,value:e}];for(var n=[],i=0,o=r.length;i<o;i++)t[i]&&(n[n.length]={type:r[i],value:t[i]});return n},o.prototype.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var r=[],n=this.tokenArray,i=0,o=n.length;i<o;i++)t[i+1]&&(r[r.length]={type:n[i],value:t[i+1]});return r},o.prototype.removeCapturingGroups=function(e){return e.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(e,t){return t?"(?:":e})},o.prototype.createSplitterRegexp=function(e,t){var r,n,i;return"$"!=(e="^"!=(e=-1!=e.indexOf("(?=")&&(r=0,n=!1,i={},e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(e,t,o,s,a,l){return n?n="]"!=a:a?n=!0:s?(r==i.stack&&(i.end=l+1,i.stack=-1),r--):o&&(r++,1!=o.length)&&(i.stack=r,i.start=l),e}),null!=i.end)&&/^\)*$/.test(e.substr(i.end))?e.substring(0,i.start)+e.substr(i.end):e).charAt(0)?"^"+e:e).charAt(e.length-1)&&(e+="$"),new RegExp(e,(t||"").replace("g",""))},o.prototype.getLineTokens=function(e,t){t&&"string"!=typeof t?"#tmp"===(t=(r=t.slice(0))[0])&&(r.shift(),t=r.shift()):r=[];for(var r,i,o=t||"start",s=(s=this.states[o])||this.states[o="start"],a=this.matchMappings[o],l=this.regExps[o],c=[],u=l.lastIndex=0,d=0,h={type:null,value:""};i=l.exec(e);){var p,f=a.defaultToken,m=null,g=i[0],y=l.lastIndex;y-g.length>u&&(p=e.substring(u,y-g.length),h.type==f?h.value+=p:(h.type&&c.push(h),h={type:f,value:p}));for(var v=0;v<i.length-2;v++)if(void 0!==i[v+1]){f=(m=s[a[v]]).onMatch?m.onMatch(g,o,r,e):m.token,m.next&&(o="string"==typeof m.next?m.next:m.next(o,r),(s=this.states[o])||(this.reportError("state doesn't exist",o),s=this.states[o="start"]),a=this.matchMappings[o],(l=this.regExps[o]).lastIndex=u=y),m.consumeLineEnd&&(u=y);break}if(g)if("string"==typeof f)m&&!1===m.merge||h.type!==f?(h.type&&c.push(h),h={type:f,value:g}):h.value+=g;else if(f)for(h.type&&c.push(h),h={type:null,value:""},v=0;v<f.length;v++)c.push(f[v]);if(u==e.length)break;if(u=y,d++>n){for(d>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});u<e.length;)h.type&&c.push(h),h={value:e.substring(u,u+=500),type:"overflow"};o="start",r=[];break}}return h.type&&c.push(h),1<r.length&&r[0]!==o&&r.unshift("#tmp",o),{tokens:c,state:r.length?r:o}},o);function o(e){for(var t in this.splitRegex,this.states=e,this.regExps={},this.matchMappings={},this.states){for(var r=this.states[t],n=[],i=0,o=this.matchMappings[t]={defaultToken:"text"},s="g",a=[],l=0;l<r.length;l++){var c,u,d=r[l];d.defaultToken&&(o.defaultToken=d.defaultToken),d.caseInsensitive&&-1===s.indexOf("i")&&(s+="i"),d.unicode&&-1===s.indexOf("u")&&(s+="u"),null==d.regex||(d.regex instanceof RegExp&&(d.regex=d.regex.toString().slice(1,-1)),c=d.regex,u=new RegExp("(?:("+c+")|(.))").exec("a").length-2,Array.isArray(d.token)?1==d.token.length||1==u?d.token=d.token[0]:u-1!=d.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:d,groupCount:u-1}),d.token=d.token[0]):(d.tokenArray=d.token,d.token=null,d.onMatch=this.$arrayTokens):"function"!=typeof d.token||d.onMatch||(d.onMatch=1<u?this.$applyToken:d.token),1<u&&(c=/\\\d/.test(d.regex)?d.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+i+1)}):(u=1,this.removeCapturingGroups(d.regex)),d.splitRegex||"string"==typeof d.token||a.push(d)),o[i]=l,i+=u,n.push(c),d.onMatch)||(d.onMatch=null)}n.length||(o[0]=0,n.push("$")),a.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,s)},this),this.regExps[t]=new RegExp("("+n.join(")|(")+")|($)",s)}}i.prototype.reportError=e,t.Tokenizer=i}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(e,t,r){var n=e("../lib/deep_copy").deepCopy;(function(){function e(e,t){return"start"==e&&!t.length||t.unshift(this.nextState,e),this.nextState}function t(e,t){return t.shift(),t.shift()||"start"}this.addRules=function(e,t){if(t)for(var r in e){for(var n=e[r],i=0;i<n.length;i++){var o=n[i];(o.next||o.onMatch)&&("string"==typeof o.next&&0!==o.next.indexOf(t)&&(o.next=t+o.next),o.nextState)&&0!==o.nextState.indexOf(t)&&(o.nextState=t+o.nextState)}this.$rules[t+r]=n}else for(var r in e)this.$rules[r]=e[r]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,r,i,o){if(e="function"==typeof e?(new e).getRules():e,i)for(var s=0;s<i.length;s++)i[s]=t+i[s];else for(var a in i=[],e)i.push(t+a);if(this.addRules(e,t),r){var l=Array.prototype[o?"push":"unshift"];for(s=0;s<i.length;s++)l.apply(this.$rules[i[s]],n(r))}this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds},this.normalizeRules=function(){var r=0,n=this.$rules;Object.keys(n).forEach(function i(o){var s=n[o];s.processed=!0;for(var a=0;a<s.length;a++){var l=s[a],c=null,u=(Array.isArray(l)&&(c=l,l={}),!l.regex&&l.start&&(l.regex=l.start,l.next||(l.next=[]),l.next.push({defaultToken:l.token},{token:l.token+".end",regex:l.end||l.start,next:"pop"}),l.token=l.token+".start",l.push=!0),l.next||l.push);if(u&&Array.isArray(u)?((h=l.stateName)||("string"!=typeof(h=l.token)&&(h=h[0]||""),n[h]&&(h+=r++)),n[h]=u,i(l.next=h)):"pop"==u&&(l.next=t),l.push&&(l.nextState=l.next||l.push,l.next=e,delete l.push),l.rules)for(var d in l.rules)n[d]?n[d].push&&n[d].push.apply(n[d],l.rules[d]):n[d]=l.rules[d];var h="string"==typeof l?l:l.include;h&&("$self"===h&&(h="start"),c=Array.isArray(h)?h.map(function(e){return n[e]}):n[h]),c&&(u=[a,1].concat(c),l.noEscape&&(u=u.filter(function(e){return!e.next})),s.splice.apply(s,u),a--),l.keywordMap&&(l.token=this.createKeywordMapper(l.keywordMap,l.defaultToken||"text",l.caseInsensitive),delete l.defaultToken)}},this)},this.createKeywordMapper=function(e,t,r,n){var i=Object.create(null);return this.$keywordList=[],Object.keys(e).forEach(function(t){for(var o=e[t].split(n||"|"),s=o.length;s--;){var a=o[s];this.$keywordList.push(a),r&&(a=a.toLowerCase()),i[a]=t}},this),e=null,r?function(e){return i[e.toLowerCase()]||t}:function(e){return i[e]||t}},this.getKeywords=function(){return this.$keywords}}).call((e=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}}).prototype),t.TextHighlightRules=e}),ace.define("ace/mode/behaviour",["require","exports","module"],function(e,t,r){var n=function(){this.$behaviours={}};(function(){this.add=function(e,t,r){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=r},this.addBehaviours=function(e){for(var t in e)for(var r in e[t])this.add(t,r,e[t][r])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){e=("function"==typeof e?new e:e).getBehaviours(t),this.addBehaviours(e)},this.getBehaviours=function(e){if(e){for(var t={},r=0;r<e.length;r++)this.$behaviours[e[r]]&&(t[e[r]]=this.$behaviours[e[r]]);return t}return this.$behaviours}}).call(n.prototype),t.Behaviour=n}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(e,t,r){var n=e("./range").Range;function i(e,t,r){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t),e=e.getTokenAt(t,r),this.$tokenIndex=e?e.index:-1}i.prototype.stepBackward=function(){for(--this.$tokenIndex;this.$tokenIndex<0;){if(--this.$row,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},i.prototype.stepForward=function(){var e;for(this.$tokenIndex+=1;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,e=e||this.$session.getLength(),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},i.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},i.prototype.getCurrentTokenRow=function(){return this.$row},i.prototype.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,r=e[t].start;if(void 0===r)for(r=0;0<t;)r+=e[--t].value.length;return r},i.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},i.prototype.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new n(this.$row,t,this.$row,t+e.value.length)},t.TokenIterator=i}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,t,r){function n(e){var t=-1;if((h=e.multiSelect&&(t=e.selection.index,h.rangeCount!=e.multiSelect.rangeCount)?{rangeCount:e.multiSelect.rangeCount}:h)[t])return o=h[t];o=h[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}}function i(e,t,r,n){var i=e.end.row-e.start.row;return{text:r+t+n,selection:[0,e.start.column+1,i,e.end.column+(i?0:1)]}}var o,s=e("../../lib/oop"),a=e("../behaviour").Behaviour,l=e("../../token_iterator").TokenIterator,c=e("../../lib/lang"),u=["text","paren.rparen","rparen","paren","punctuation.operator"],d=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],h={},p={'"':'"',"'":"'"},f=function(e){e=e||{},this.add("braces","insertion",function(t,r,s,a,l){var u=s.getCursorPosition(),d=a.doc.getLine(u.row);if("{"==l){n(s);var h=s.getSelectionRange(),p=a.doc.getTextRange(h),m=a.getTokenAt(u.row,u.column);if(""!==p&&"{"!==p&&s.getWrapBehavioursEnabled())return i(h,p,"{","}");if(m&&/(?:string)\.quasi|\.xml/.test(m.type)){if(!([/tag\-(?:open|name)/,/attribute\-name/].some(function(e){return e.test(m.type)})||/(string)\.quasi/.test(m.type)&&"$"!==m.value[u.column-m.start-1]))return f.recordAutoInsert(s,a,"}"),{text:"{}",selection:[1,1]}}else if(f.isSaneInsertion(s,a))return/[\]\}\)]/.test(d[u.column])||s.inMultiSelectMode||e.braces?(f.recordAutoInsert(s,a,"}"),{text:"{}",selection:[1,1]}):(f.recordMaybeInsert(s,a,"{"),{text:"{",selection:[1,1]})}else if("}"==l){n(s);var g=d.substring(u.column,u.column+1);if("}"==g&&null!==a.$findOpeningBracket("}",{column:u.column+1,row:u.row})&&f.isAutoInsertedClosing(u,d,l))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==l||"\r\n"==l){if(n(s),h="",f.isMaybeInsertedClosing(u,d)&&(h=c.stringRepeat("}",o.maybeInsertedBrackets),f.clearMaybeInsertedClosing()),"}"===(g=d.substring(u.column,u.column+1))){if(!(p=a.findMatchingBracket({row:u.row,column:u.column+1},"}")))return null;var y=this.$getIndent(a.getLine(p.row))}else{if(!h)return void f.clearMaybeInsertedClosing();y=this.$getIndent(d)}return{text:"\n"+(l=y+a.getTabString())+"\n"+y+h,selection:[1,l.length,1,l.length]}}f.clearMaybeInsertedClosing()}}),this.add("braces","deletion",function(e,t,r,i,s){var a=i.doc.getTextRange(s);if(!s.isMultiLine()&&"{"==a){if(n(r),"}"==i.doc.getLine(s.start.row).substring(s.end.column,s.end.column+1))return s.end.column++,s;o.maybeInsertedBrackets--}}),this.add("parens","insertion",function(e,t,r,o,s){if("("==s)return n(r),a=r.getSelectionRange(),""!==(l=o.doc.getTextRange(a))&&r.getWrapBehavioursEnabled()?i(a,l,"(",")"):f.isSaneInsertion(r,o)?(f.recordAutoInsert(r,o,")"),{text:"()",selection:[1,1]}):void 0;if(")"==s){n(r);var a=r.getCursorPosition(),l=o.doc.getLine(a.row);if(")"==(r=l.substring(a.column,a.column+1))&&null!==o.$findOpeningBracket(")",{column:a.column+1,row:a.row})&&f.isAutoInsertedClosing(a,l,s))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("parens","deletion",function(e,t,r,i,o){var s=i.doc.getTextRange(o);if(!o.isMultiLine()&&"("==s&&(n(r),")"==i.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o}),this.add("brackets","insertion",function(e,t,r,o,s){if("["==s)return n(r),a=r.getSelectionRange(),""!==(l=o.doc.getTextRange(a))&&r.getWrapBehavioursEnabled()?i(a,l,"[","]"):f.isSaneInsertion(r,o)?(f.recordAutoInsert(r,o,"]"),{text:"[]",selection:[1,1]}):void 0;if("]"==s){n(r);var a=r.getCursorPosition(),l=o.doc.getLine(a.row);if("]"==(r=l.substring(a.column,a.column+1))&&null!==o.$findOpeningBracket("]",{column:a.column+1,row:a.row})&&f.isAutoInsertedClosing(a,l,s))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("brackets","deletion",function(e,t,r,i,o){var s=i.doc.getTextRange(o);if(!o.isMultiLine()&&"["==s&&(n(r),"]"==i.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o}),this.add("string_dquotes","insertion",function(e,t,r,o,s){var a=o.$mode.$quotes||p;if(1==s.length&&a[s]&&(!this.lineCommentStart||-1==this.lineCommentStart.indexOf(s))){n(r);var l=r.getSelectionRange();if(!(""===(c=o.doc.getTextRange(l))||1==c.length&&a[c])&&r.getWrapBehavioursEnabled())return i(l,c,s,s);if(!c){a=r.getCursorPosition();var c=(l=o.doc.getLine(a.row)).substring(a.column-1,a.column),u=(r=l.substring(a.column,a.column+1),o.getTokenAt(a.row,a.column)),d=o.getTokenAt(a.row,a.column+1);if("\\"==c&&u&&/escape/.test(u.type))return null;u=u&&/string|escape/.test(u.type);var h,f=!d||/string|escape/.test(d.type);if(r==s)(h=u!==f)&&/string\.end/.test(d.type)&&(h=!1);else{if(u&&!f)return null;if(u&&f)return null;if((d=o.$mode.tokenRe).lastIndex=0,u=d.test(c),d.lastIndex=0,f=d.test(r),!((o=o.$mode.$pairQuotesAfter)&&o[s]&&o[s].test(c))&&u||f)return null;if(r&&!/[\s;,.})\]\\]/.test(r))return null;if(o=l[a.column-2],c==s&&(o==s||d.test(o)))return null;h=!0}return{text:h?s+s:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(e,t,r,i,o){var s=i.$mode.$quotes||p,a=i.doc.getTextRange(o);if(!o.isMultiLine()&&s.hasOwnProperty(a)&&(n(r),i.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)==a))return o.end.column++,o}),!1!==e.closeDocComment&&this.add("doc comment end","insertion",function(e,t,r,n,i){if("doc-start"===e&&("\n"===i||"\r\n"===i)&&r.selection.isEmpty()){var o=r.getCursorPosition();if(0!==o.column){e=n.doc.getLine(o.row),r=n.doc.getLine(o.row+1);for(var s=n.getTokens(o.row),a=0,l=0;l<s.length;l++){a+=s[l].value.length;var c=s[l];if(a>=o.column){if(a===o.column){if(!/\.doc/.test(c.type))return;if(/\*\//.test(c.value)&&(!(u=s[l+1])||!/\.doc/.test(u.type)))return}var u=o.column-(a-c.value.length),d=c.value.indexOf("*/"),h=c.value.indexOf("/**",-1<d?d+2:0);if(-1!==h&&h<u&&u<h+3)return;if(-1!==d&&-1!==h&&d<=u&&u<=h||!/\.doc/.test(c.type))return;break}}return n=this.$getIndent(e),/\s*\*/.test(r)?/^\s*\*/.test(e)?{text:i+n+"* ",selection:[1,2+n.length,1,2+n.length]}:{text:i+n+" * ",selection:[1,3+n.length,1,3+n.length]}:/\/\*\*/.test(e.substring(0,o.column))?{text:i+n+" * "+i+" "+n+"*/",selection:[1,4+n.length,1,4+n.length]}:void 0}}})};f.isSaneInsertion=function(e,t){var r=e.getCursorPosition(),n=new l(t,r.row,r.column);if(!this.$matchTokenType(n.getCurrentToken()||"text",u)){if(/[)}\]]/.test(e.session.getLine(r.row)[r.column]))return!0;if(e=new l(t,r.row,r.column+1),!this.$matchTokenType(e.getCurrentToken()||"text",u))return!1}return n.stepForward(),n.getCurrentTokenRow()!==r.row||this.$matchTokenType(n.getCurrentToken()||"text",d)},f.$matchTokenType=function(e,t){return-1<t.indexOf(e.type||e)},f.recordAutoInsert=function(e,t,r){e=e.getCursorPosition(),t=t.doc.getLine(e.row),this.isAutoInsertedClosing(e,t,o.autoInsertedLineEnd[0])||(o.autoInsertedBrackets=0),o.autoInsertedRow=e.row,o.autoInsertedLineEnd=r+t.substr(e.column),o.autoInsertedBrackets++},f.recordMaybeInsert=function(e,t,r){e=e.getCursorPosition(),t=t.doc.getLine(e.row),this.isMaybeInsertedClosing(e,t)||(o.maybeInsertedBrackets=0),o.maybeInsertedRow=e.row,o.maybeInsertedLineStart=t.substr(0,e.column)+r,o.maybeInsertedLineEnd=t.substr(e.column),o.maybeInsertedBrackets++},f.isAutoInsertedClosing=function(e,t,r){return 0<o.autoInsertedBrackets&&e.row===o.autoInsertedRow&&r===o.autoInsertedLineEnd[0]&&t.substr(e.column)===o.autoInsertedLineEnd},f.isMaybeInsertedClosing=function(e,t){return 0<o.maybeInsertedBrackets&&e.row===o.maybeInsertedRow&&t.substr(e.column)===o.maybeInsertedLineEnd&&t.substr(0,e.column)==o.maybeInsertedLineStart},f.popAutoInsertedClosing=function(){o.autoInsertedLineEnd=o.autoInsertedLineEnd.substr(1),o.autoInsertedBrackets--},f.clearMaybeInsertedClosing=function(){o&&(o.maybeInsertedBrackets=0,o.maybeInsertedRow=-1)},s.inherits(f,a),t.CstyleBehaviour=f}),ace.define("ace/unicode",["require","exports","module"],function(e,t,r){for(var n=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],i=0,o=[],s=0;s<n.length;s+=2)o.push(i+=n[s]),n[s+1]&&o.push(45,i+=n[s+1]);t.wordChars=String.fromCharCode.apply(null,o)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(e,t,r){var n=e("../config"),i=e("../tokenizer").Tokenizer,o=e("./text_highlight_rules").TextHighlightRules,s=e("./behaviour/cstyle").CstyleBehaviour,a=e("../unicode"),l=e("../lib/lang"),c=e("../token_iterator").TokenIterator,u=e("../range").Range;(function(){this.$defaultBehaviour=new s,this.tokenRe=new RegExp("^["+a.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+a.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new i(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,t,r,n){var i=t.doc,o=!0,s=!0,a=1/0,c=t.getTabSize(),u=!1;if(this.lineCommentStart){g=Array.isArray(this.lineCommentStart)?(v=this.lineCommentStart.map(l.escapeRegExp).join("|"),this.lineCommentStart[0]):(v=l.escapeRegExp(this.lineCommentStart),this.lineCommentStart),v=new RegExp("^(\\s*)(?:"+v+") ?"),u=t.getUseSoftTabs();var d=function(e,t){var r,n,o=e.match(v);o&&(r=o[1].length,n=o[0].length,m(e,r,n)||" "!=o[0][n-1]||n--,i.removeInLine(t,r,n))},h=g+" ",p=function(e,t){o&&!/\S/.test(e)||(m(e,a,a)?i.insertInLine({row:t,column:a},h):i.insertInLine({row:t,column:a},g))},f=function(e,t){return v.test(e)},m=function(e,t,r){for(var n=0;t--&&" "==e.charAt(t);)n++;if(n%c!=0)return!1;for(n=0;" "==e.charAt(r++);)n++;return 2<c?n%c!=c-1:n%c==0}}else{if(!this.blockComment)return!1;var g=this.blockComment.start,y=this.blockComment.end,v=new RegExp("^(\\s*)(?:"+l.escapeRegExp(g)+")"),b=new RegExp("(?:"+l.escapeRegExp(y)+")\\s*$");p=function(e,t){f(e,t)||o&&!/\S/.test(e)||(i.insertInLine({row:t,column:e.length},y),i.insertInLine({row:t,column:a},g))},d=function(e,t){var r;(r=e.match(b))&&i.removeInLine(t,e.length-r[0].length,e.length),(r=e.match(v))&&i.removeInLine(t,r[1].length,r[0].length)},f=function(e,r){if(v.test(e))return!0;for(var n=t.getTokens(r),i=0;i<n.length;i++)if("comment"===n[i].type)return!0}}function w(e){for(var t=r;t<=n;t++)e(i.getLine(t),t)}var x=1/0;w(function(e,t){var r=e.search(/\S/);-1!==r?(r<a&&(a=r),s&&!f(e,t)&&(s=!1)):x>e.length&&(x=e.length)}),a==1/0&&(a=x,s=o=!1),u&&a%c!=0&&(a=Math.floor(a/c)*c),w(s?d:p)},this.toggleBlockComment=function(e,t,r,n){var i=this.blockComment;if(i){!i.start&&i[0]&&(i=i[0]);var o,s,a=(f=new c(t,n.row,n.column)).getCurrentToken(),l=(t.selection,t.selection.toOrientedRange());if(a&&/comment/.test(a.type)){for(;a&&/comment/.test(a.type);){if(-1!=(m=a.value.indexOf(i.start))){var d=f.getCurrentTokenRow(),h=f.getCurrentTokenColumn()+m,p=new u(d,h,d,h+i.start.length);break}a=f.stepBackward()}var f,m;for(a=(f=new c(t,n.row,n.column)).getCurrentToken();a&&/comment/.test(a.type);){if(-1!=(m=a.value.indexOf(i.end))){d=f.getCurrentTokenRow(),h=f.getCurrentTokenColumn()+m;var g=new u(d,h,d,h+i.end.length);break}a=f.stepForward()}g&&t.remove(g),p&&(t.remove(p),o=p.start.row,s=-i.start.length)}else s=i.start.length,o=r.start.row,t.insert(r.end,i.end),t.insert(r.start,i.start);l.start.row==o&&(l.start.column+=s),l.end.row==o&&(l.end.column+=s),t.selection.fromOrientedRange(l)}},this.getNextLineIndent=function(e,t,r){return this.$getIndent(t)},this.checkOutdent=function(e,t,r){return!1},this.autoOutdent=function(e,t,r){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e){var r,i,o;e[t]&&(i=(r=e[t]).prototype.$id,(o=n.$modes[i])||(n.$modes[i]=o=new r),n.$modes[t]||(n.$modes[t]=o),this.$embeds.push(t),this.$modes[t]=o)}var s=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],a=this;for(t=0;t<s.length;t++)(e=>{var t,r;r=a[t=s[e]],a[s[e]]=function(){return this.$delegator(t,arguments,r)}})(t)},this.$delegator=function(e,t,r){var n=t[0]||"start";if("string"!=typeof n){if(Array.isArray(n[2])){var i=n[2][n[2].length-1];if(s=this.$modes[i])return s[e].apply(s,[n[1]].concat([].slice.call(t,1)))}n=n[0]||"start"}for(var o=0;o<this.$embeds.length;o++)if(this.$modes[this.$embeds[o]]){var s,a=n.split(this.$embeds[o]);if(!a[0]&&a[1])return t[0]=a[1],(s=this.$modes[this.$embeds[o]])[e].apply(s,t)}return i=r.apply(this,t),r?i:void 0},this.transformAction=function(e,t,r,n,i){if(this.$behaviour){var o,s=this.$behaviour.getBehaviours();for(o in s)if(s[o][t]){var a=s[o][t].apply(this,arguments);if(a)return a}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,r=[];for(s in t)for(var n=t[s],i=0,o=n.length;i<o;i++)if("string"==typeof n[i].token)/keyword|support|storage/.test(n[i].token)&&r.push(n[i].regex);else if("object"==typeof n[i].token)for(var s,a=0,l=n[i].token.length;a<l;a++)/keyword|support|storage/.test(n[i].token[a])&&(s=n[i].regex.match(/\(.+?\)/g)[a],r.push(s.substr(1,s.length-2)));this.completionKeywords=r}return e?r.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(e,t,r,n){return(this.$keywordList||this.$createKeywordList()).map(function(e){return{name:e,value:e,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call((e=function(){this.HighlightRules=o}).prototype),t.Mode=e}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,t,r){var n=e("./lib/dom");function i(e){this.session=e,(this.session.widgetManager=this).session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}i.prototype.getRowLength=function(e){var t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},i.prototype.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach(function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)}),e},i.prototype.$onChangeEditor=function(e){this.attach(e.editor)},i.prototype.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e)&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets))},i.prototype.detach=function(e){var t=this.editor;t&&(this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets),t=this.session.lineWidgets)&&t.forEach(function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))})},i.prototype.updateOnFold=function(e,t){var r=t.lineWidgets;if(r&&e.action){for(var n=(t=e.data).start.row,i=t.end.row,o="add"==e.action,s=n+1;s<i;s++)r[s]&&(r[s].hidden=o);r[i]&&(o?r[n]?r[i].hidden=o:r[n]=r[i]:(r[n]==r[i]&&(r[n]=void 0),r[i].hidden=o))}},i.prototype.updateOnChange=function(e){var t,r,n,i=this.session.lineWidgets;i&&(t=e.start.row,0!=(r=e.end.row-t))&&("remove"==e.action?(n=i.splice(t+1,r),!i[t]&&n[n.length-1]&&(i[t]=n.pop()),n.forEach(function(e){e&&this.removeLineWidget(e)},this)):(n=new Array(r),i[t]&&null!=i[t].column&&e.start.column>i[t].column&&t++,n.unshift(t,0),i.splice.apply(i,n)),this.$updateRows())},i.prototype.$updateRows=function(){var e,t=this.session.lineWidgets;t&&(e=!0,t.forEach(function(t,r){if(t)for(e=!1,t.row=r;t.$oldWidget;)t.$oldWidget.row=r,t=t.$oldWidget}),e)&&(this.session.lineWidgets=null)},i.prototype.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t).el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1),this.session.lineWidgets[e.row]=e},i.prototype.addLineWidget=function(e){var t,r,i;return this.$registerLineWidget(e),e.session=this.session,this.editor&&(t=this.editor.renderer,e.html&&!e.el&&(e.el=n.createElement("div"),e.el.innerHTML=e.html),e.text&&!e.el&&(e.el=n.createElement("div"),e.el.textContent=e.text),e.el&&(n.addCssClass(e.el,"ace_lineWidgetContainer"),e.className&&n.addCssClass(e.el,e.className),e.el.style.position="absolute",e.el.style.zIndex="5",t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex="3"),null==e.pixelHeight)&&(e.pixelHeight=e.el.offsetHeight),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight),r=this.session.getFoldAt(e.row,0),(e.$fold=r)&&(i=this.session.lineWidgets,e.row!=r.end.row||i[r.start.row]?e.hidden=!0:i[r.start.row]=e),this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e)),e},i.prototype.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},i.prototype.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,r=t&&t[e],n=[];r;)n.push(r),r=r.$oldWidget;return n},i.prototype.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},i.prototype.measureWidgets=function(e,t){var r=this.session._changedWidgets,n=t.layerConfig;if(r&&r.length){for(var i=1/0,o=0;o<r.length;o++){var s=r[o];if(s&&s.el&&s.session==this.session){if(!s._inDocument){if(this.session.lineWidgets[s.row]!=s)continue;s._inDocument=!0,t.container.appendChild(s.el)}s.h=s.el.offsetHeight,s.fixedWidth||(s.w=s.el.offsetWidth,s.screenWidth=Math.ceil(s.w/n.characterWidth));var a=s.h/n.lineHeight;s.coverLine&&(a-=this.session.getRowLineCount(s.row))<0&&(a=0),s.rowCount!=a&&(s.rowCount=a,s.row<i)&&(i=s.row)}}i!=1/0&&(this.session._emit("changeFold",{data:{start:{row:i}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},i.prototype.renderWidgets=function(e,t){var r=t.layerConfig,n=this.session.lineWidgets;if(n){for(var i=Math.min(this.firstRow,r.firstRow),o=Math.max(this.lastRow,r.lastRow,n.length);0<i&&!n[i];)i--;this.firstRow=r.firstRow,this.lastRow=r.lastRow,t.$cursorLayer.config=r;for(var s=i;s<=o;s++){var a,l=n[s];l&&l.el&&(l.hidden?l.el.style.top=-100-(l.pixelHeight||0)+"px":(l._inDocument||(l._inDocument=!0,t.container.appendChild(l.el)),a=t.$cursorLayer.getPixelPosition({row:s,column:0},!0).top,l.coverLine||(a+=r.lineHeight*this.session.getRowLineCount(l.row)),l.el.style.top=a-r.offset+"px",a=l.coverGutter?0:t.gutterWidth,l.fixedWidth||(a-=t.scrollLeft),l.el.style.left=a+"px",l.fullWidth&&l.screenWidth&&(l.el.style.minWidth=r.width+2*r.padding+"px"),l.fixedWidth?l.el.style.right=t.scrollBar.getWidth()+"px":l.el.style.right=""))}}},t.LineWidgets=i}),ace.define("ace/apply_delta",["require","exports","module"],function(e,t,r){t.applyDelta=function(e,t,r){var n=t.start.row,i=t.start.column,o=e[n]||"";switch(t.action){case"insert":1===t.lines.length?e[n]=o.substring(0,i)+t.lines[0]+o.substring(i):(s=[n,1].concat(t.lines),e.splice.apply(e,s),e[n]=o.substring(0,i)+e[n],e[n+t.lines.length-1]+=o.substring(i));break;case"remove":var s=t.end.column,a=t.end.row;n===a?e[n]=o.substring(0,i)+o.substring(s):e.splice(n,a-n+1,o.substring(0,i)+e[a].substring(s))}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t,r){var n=e("./lib/oop"),i=(e=e("./lib/event_emitter").EventEmitter,o.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},o.prototype.getDocument=function(){return this.document},o.prototype.onChange=function(e){e.start.row==e.end.row&&e.start.row!=this.row||e.start.row>this.row||(e=((e,t,r)=>{var n=((a="insert"==e.action)?1:-1)*(e.end.row-e.start.row),i=(a?1:-1)*(e.end.column-e.start.column),o=e.start,a=a?o:e.end;return s(t,o,r)?{row:t.row,column:t.column}:s(a,t,!r)?{row:t.row+n,column:t.column+(t.row==a.row?i:0)}:{row:o.row,column:o.column}})(e,{row:this.row,column:this.column},this.$insertRight),this.setPosition(e.row,e.column,!0))},o.prototype.setPosition=function(e,t,r){r=r?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row==r.row&&this.column==r.column||(e={row:this.row,column:this.column},this.row=r.row,this.column=r.column,this._signal("change",{old:e,value:r}))},o.prototype.detach=function(){this.document.off("change",this.$onChange)},o.prototype.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},o.prototype.$clipPositionToDocument=function(e,t){var r={};return e>=this.document.getLength()?(r.row=Math.max(0,this.document.getLength()-1),r.column=this.document.getLine(r.row).length):e<0?(r.row=0,r.column=0):(r.row=e,r.column=Math.min(this.document.getLine(r.row).length,Math.max(0,t))),t<0&&(r.column=0),r},o);function o(e,t,r){this.$onChange=this.onChange.bind(this),this.attach(e),"number"!=typeof t?this.setPosition(t.row,t.column):this.setPosition(t,r)}function s(e,t,r){return r=r?e.column<=t.column:e.column<t.column,e.row<t.row||e.row==t.row&&r}i.prototype.$insertRight=!1,n.implement(i.prototype,e),t.Anchor=i}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t,r){var n=e("./lib/oop"),i=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,s=e("./range").Range,a=e("./anchor").Anchor;function l(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)}l.prototype.setValue=function(e){var t=this.getLength()-1;this.remove(new s(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e||"")},l.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},l.prototype.createAnchor=function(e,t){return new a(this,e,t)},l.prototype.$detectNewLine=function(e){e=e.match(/^.*?(\r\n|\r|\n)/m),this.$autoNewLine=e?e[1]:"\n",this._signal("changeNewLineMode")},l.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},l.prototype.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},l.prototype.getNewLineMode=function(){return this.$newLineMode},l.prototype.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},l.prototype.getLine=function(e){return this.$lines[e]||""},l.prototype.getLines=function(e,t){return this.$lines.slice(e,t+1)},l.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},l.prototype.getLength=function(){return this.$lines.length},l.prototype.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},l.prototype.getLinesForRange=function(e){var t,r;return e.start.row===e.end.row?t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)]:((t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column),r=t.length-1,e.end.row-e.start.row==r&&(t[r]=t[r].substring(0,e.end.column))),t},l.prototype.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},l.prototype.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},l.prototype.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},l.prototype.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},l.prototype.insertInLine=function(e,t){var r=this.clippedPos(e.row,e.column);return e=this.pos(e.row,e.column+t.length),this.applyDelta({start:r,end:e,action:"insert",lines:[t]},!0),this.clonePos(e)},l.prototype.clippedPos=function(e,t){var r=this.getLength();return void 0===e?e=r:e<0?e=0:r<=e&&(e=r-1,t=void 0),r=this.getLine(e),null==t&&(t=r.length),{row:e,column:t=Math.min(Math.max(t,0),r.length)}},l.prototype.clonePos=function(e){return{row:e.row,column:e.column}},l.prototype.pos=function(e,t){return{row:e,column:t}},l.prototype.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},l.prototype.insertFullLines=function(e,t){var r;r=(e=Math.min(Math.max(e,0),this.getLength()))<this.getLength()?(t=t.concat([""]),0):(t=[""].concat(t),this.$lines[--e].length),this.insertMergedLines({row:e,column:r},t)},l.prototype.insertMergedLines=function(e,t){var r={row:(e=this.clippedPos(e.row,e.column)).row+t.length-1,column:(1==t.length?e.column:0)+t[t.length-1].length};return this.applyDelta({start:e,end:r,action:"insert",lines:t}),this.clonePos(r)},l.prototype.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column);return e=this.clippedPos(e.end.row,e.end.column),this.applyDelta({start:t,end:e,action:"remove",lines:this.getLinesForRange({start:t,end:e})}),this.clonePos(t)},l.prototype.removeInLine=function(e,t,r){return t=this.clippedPos(e,t),e=this.clippedPos(e,r),this.applyDelta({start:t,end:e,action:"remove",lines:this.getLinesForRange({start:t,end:e})},!0),this.clonePos(t)},l.prototype.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1);var r=(t=Math.min(Math.max(0,t),this.getLength()-1))==this.getLength()-1&&0<e,n=t<this.getLength()-1,i=r?e-1:e,o=(r=r?this.getLine(i).length:0,n?t+1:t);return n=n?0:this.getLine(o).length,i=new s(i,r,o,n),r=this.$lines.slice(e,t+1),this.applyDelta({start:i.start,end:i.end,action:"remove",lines:this.getLinesForRange(i)}),r},l.prototype.removeNewLine=function(e){e<this.getLength()-1&&0<=e&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},l.prototype.replace=function(e,t){return e instanceof s||(e=s.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},l.prototype.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},l.prototype.revertDeltas=function(e){for(var t=e.length-1;0<=t;t--)this.revertDelta(e[t])},l.prototype.applyDelta=function(e,t){var r="insert"==e.action;(r?e.lines.length<=1&&!e.lines[0]:!s.comparePoints(e.start,e.end))||(r&&2e4<e.lines.length?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal("change",e)))},l.prototype.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row<t&&e.end.row<t||"insert"==e.action&&e.start.row<=t)&&this.applyDelta(e)},l.prototype.$splitAndapplyLargeDelta=function(e,t){for(var r=e.lines,n=r.length-t+1,i=e.start.row,o=e.start.column,s=0,a=0;s<n;s=a){a+=t-1;var l=r.slice(s,a);l.push(""),this.applyDelta({start:this.pos(i+s,o),end:this.pos(i+a,o=0),action:e.action,lines:l},!0)}e.lines=r.slice(s),e.start.row=i+s,e.start.column=o,this.applyDelta(e,!0)},l.prototype.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},l.prototype.indexToPosition=function(e,t){for(var r=this.$lines||this.getAllLines(),n=this.getNewLineCharacter().length,i=t||0,o=r.length;i<o;i++)if((e-=r[i].length+n)<0)return{row:i,column:e+r[i].length+n};return{row:o-1,column:e+r[o-1].length+n}},l.prototype.positionToIndex=function(e,t){for(var r=this.$lines||this.getAllLines(),n=this.getNewLineCharacter().length,i=0,o=Math.min(e.row,r.length),s=t||0;s<o;++s)i+=r[s].length+n;return i+e.column},l.prototype.$split=function(e){return e.split(/\r\n|\r|\n/)},(e=l).prototype.$autoNewLine="",e.prototype.$newLineMode="auto",n.implement(e.prototype,o),t.Document=e}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t,r){var n=e("./lib/oop"),i=(e=e("./lib/event_emitter").EventEmitter,o.prototype.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},o.prototype.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},o.prototype.fireUpdateEvent=function(e,t){this._signal("update",{data:{first:e,last:t}})},o.prototype.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},o.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},o.prototype.$updateOnChange=function(e){var t=e.start.row,r=e.end.row-t;0==r?this.lines[t]=null:"remove"==e.action?(this.lines.splice(t,1+r,null),this.states.splice(t,1+r,null)):((e=Array(1+r)).unshift(t,1),this.lines.splice.apply(this.lines,e),this.states.splice.apply(this.states,e)),this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},o.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},o.prototype.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},o.prototype.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},o.prototype.$tokenizeRow=function(e){var t=this.doc.getLine(e),r=this.states[e-1];return t=this.tokenizer.getLineTokens(t,r,e),this.states[e]+""!=t.state+""?(this.states[e]=t.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=t.tokens},o.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},o);function o(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var r=this;this.$worker=function(){if(r.running){for(var e=new Date,t=r.currentLine,n=-1,i=r.doc,o=t;r.lines[t];)t++;var s=i.getLength(),a=0;for(r.running=!1;t<s;){for(r.$tokenizeRow(t),n=t;t++,r.lines[t];);if(++a%5==0&&20<new Date-e){r.running=setTimeout(r.$worker,20);break}}r.currentLine=t,o<=(n=-1==n?t:n)&&r.fireUpdateEvent(o,n)}}}n.implement(i.prototype,e),t.BackgroundTokenizer=i}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(e,t,r){var n=e("./lib/lang"),i=e("./range").Range;function o(e,t,r){void 0===r&&(r="text"),this.setRegexp(e),this.clazz=t,this.type=r}o.prototype.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},o.prototype.update=function(e,t,r,o){if(this.regExp)for(var s=o.firstRow,a=o.lastRow,l={},c=s;c<=a;c++){var u=this.cache[c];null==u&&(u=(u=(u=n.getMatchOffsets(r.getLine(c),this.regExp)).length>this.MAX_RANGES?u.slice(0,this.MAX_RANGES):u).map(function(e){return new i(c,e.offset,c,e.offset+e.length)}),this.cache[c]=u.length?u:"");for(var d=u.length;d--;){var h=u[d].toScreenRange(r),p=h.toString();l[p]||(l[p]=!0,t.drawSingleLineMarker(e,h,this.clazz,o))}}},(e=o).prototype.MAX_RANGES=500,t.SearchHighlight=e}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(e,t,r){i.prototype.addSession=function(e){this.$session=e},i.prototype.add=function(e,t,r){this.$fromUndo||e!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),!1!==t&&this.lastDeltas||(this.lastDeltas=[],(t=this.$undoStack.length)>this.$undoDepth-1&&this.$undoStack.splice(0,t-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),e.id=this.$rev=++this.$maxRev),"remove"!=e.action&&"insert"!=e.action||(this.$lastDelta=e),this.lastDeltas.push(e))},i.prototype.addSelection=function(e,t){this.selections.push({value:e,rev:t||this.$rev})},i.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},i.prototype.markIgnored=function(e,t){null==t&&(t=this.$rev+1);for(var r=this.$undoStack,n=r.length;n--;){var i=r[n][0];if(i.id<=e)break;i.id<t&&(i.ignore=!0)}this.lastDeltas=null},i.prototype.getSelection=function(e,t){for(var r=this.selections,n=r.length;n--;){var i=r[n];if(i.rev<e)return t?r[n+1]:i}},i.prototype.getRevision=function(){return this.$rev},i.prototype.getDeltas=function(e,t){null==t&&(t=this.$rev+1);for(var r=this.$undoStack,n=null,i=0,o=r.length;o--;){var s=r[o][0];if(s.id<t&&!n&&(n=o+1),s.id<=e){i=o+1;break}}return r.slice(i,n)},i.prototype.getChangedRanges=function(e,t){null==t&&this.$rev},i.prototype.getChangedLines=function(e,t){null==t&&this.$rev},i.prototype.undo=function(e,t){this.lastDeltas=null;var r,n=this.$undoStack;if(((e,t)=>{for(var r=t;r--;){var n=e[r];if(n&&!n[0].ignore){for(;r<t-1;){var i=((e,t)=>{for(var r=e.length;r--;)for(var n=0;n<t.length;n++)if(!u(e[r],t[n])){for(;r<e.length;){for(;n--;)u(t[n],e[r]);n=t.length,r++}return[e,t]}return e.selectionBefore=t.selectionBefore=e.selectionAfter=t.selectionAfter=null,[t,e]})(e[r],e[r+1]);e[r]=i[0],e[r+1]=i[1],r++}return 1}}})(n,n.length))return e=e||this.$session,this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0,r=null,(n=n.pop())&&(r=e.undoChanges(n,t),this.$redoStack.push(n),this.$syncRev()),this.$fromUndo=!1,r},i.prototype.redo=function(e,t){if(this.lastDeltas=null,e=e||this.$session,this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){for(var r=this.getDeltas(this.$redoStackBaseRev,this.$rev+1),n=this.$redoStack,i=r,l=0;l<i.length;l++)for(var c=i[l],u=0;u<c.length;u++){f=void 0,m=void 0,g=void 0,y=void 0,v=void 0,b=void 0;var f=n,m=c[u];m=(e=>({start:a(e.start),end:a(e.end),action:e.action,lines:e.lines.slice()}))(m);for(var g=f.length;g--;){for(var y=f[g],v=0;v<y.length;v++){var b=((e,t)=>{var r,n,i="insert"==e.action,a="insert"==t.action;if(i&&a)s(e.start,t.start)<0?d(t,e,1):d(e,t,1);else if(i&&!a)0<=s(e.start,t.end)?d(e,t,-1):(s(e.start,t.start)<=0||d(e,o.fromPoints(t.start,e.start),-1),d(t,e,1));else if(!i&&a)0<=s(t.start,e.end)?d(t,e,-1):(s(t.start,e.start)<=0||d(t,o.fromPoints(e.start,t.start),-1),d(e,t,1));else if(!i&&!a)if(0<=s(t.start,e.end))d(t,e,-1);else{if(!(s(t.end,e.start)<=0))return s(e.start,t.start)<0&&(e=p(r=e,t.start)),0<s(e.end,t.end)&&(n=p(e,t.end)),h(t.end,e.start,e.end,-1),n&&!r&&(e.lines=n.lines,e.start=n.start,e.end=n.end,n=e),[t,r,n].filter(Boolean);d(e,t,-1)}return[t,e]})(y[v],m);m=b[0],2!=b.length&&(b[2]?(y.splice(v+1,1,b[1],b[2]),v++):b[1]||(y.splice(v,1),v--))}y.length||f.splice(g,1)}}this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(e){e[0].id=++this.$maxRev},this)}var w=null;return(r=this.$redoStack.pop())&&(w=e.redoChanges(r,t),this.$undoStack.push(r),this.$syncRev()),this.$fromUndo=!1,w},i.prototype.$syncRev=function(){var e=(e=(e=this.$undoStack)[e.length-1])&&e[0].id||0;this.$redoStackBaseRev=e,this.$rev=e},i.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},i.prototype.canUndo=function(){return 0<this.$undoStack.length},i.prototype.canRedo=function(){return 0<this.$redoStack.length},i.prototype.bookmark=function(e){null==e&&(e=this.$rev),this.mark=e},i.prototype.isAtBookmark=function(){return this.$rev===this.mark},i.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},i.prototype.fromJSON=function(e){this.reset(),this.$undoStack=e.$undoStack,this.$redoStack=e.$redoStack},i.prototype.$prettyPrint=function(e){return e?l(e):l(this.$undoStack)+"\n---\n"+l(this.$redoStack)};var n=i;function i(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}n.prototype.hasUndo=n.prototype.canUndo,n.prototype.hasRedo=n.prototype.canRedo,n.prototype.isClean=n.prototype.isAtBookmark,n.prototype.markClean=n.prototype.bookmark;var o=e("./range").Range,s=o.comparePoints;function a(e){return{row:e.row,column:e.column}}function l(e){var t;return e=e||this,Array.isArray(e)?e.map(l).join("\n"):(t="",e.action?(t="insert"==e.action?"+":"-",t+="["+e.lines+"]"):e.value&&(t=Array.isArray(e.value)?e.value.map(c).join("\n"):c(e.value)),e.start&&(t+=c(e)),(e.id||e.rev)&&(t+="\t("+(e.id||e.rev)+")"),t)}function c(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function u(e,t){var r="insert"==e.action,n="insert"==t.action;if(r&&n)if(0<=s(t.start,e.end))d(t,e,-1);else{if(!(s(t.start,e.start)<=0))return;d(e,t,1)}else if(r&&!n)if(0<=s(t.start,e.end))d(t,e,-1);else{if(!(s(t.end,e.start)<=0))return;d(e,t,-1)}else if(!r&&n)if(0<=s(t.start,e.start))d(t,e,1);else{if(!(s(t.start,e.start)<=0))return;d(e,t,1)}else if(!r&&!n)if(0<=s(t.start,e.start))d(t,e,1);else{if(!(s(t.end,e.start)<=0))return;d(e,t,-1)}return 1}function d(e,t,r){h(e.start,t.start,t.end,r),h(e.end,t.start,t.end,r)}function h(e,t,r,n){e.row==(1==n?t:r).row&&(e.column+=n*(r.column-t.column)),e.row+=n*(r.row-t.row)}function p(e,t){var r=e.lines,n=e.end,i=(e.end=a(t),e.end.row-e.start.row),o=r.splice(i,r.length);return i=i?t.column:t.column-e.start.column,r.push(o[0].substring(0,i)),o[0]=o[0].substr(i),{start:a(t),end:n,lines:o,action:e.action}}t.UndoManager=n}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,t,r){var n=e("../range").Range;function i(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t],e=t[t.length-1],this.range=new n(t[0].start.row,t[0].start.column,e.end.row,e.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(e){e.setFoldLine(this)},this)}i.prototype.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach(function(t){t.start.row+=e,t.end.row+=e})},i.prototype.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)}),0<this.range.compareEnd(e.start.row,e.start.column)?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},i.prototype.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},i.prototype.walk=function(e,t,r){var n,i,o=0,s=this.folds,a=!0;null==t&&(t=this.end.row,r=this.end.column);for(var l=0;l<s.length;l++){if(-1==(i=(n=s[l]).range.compareStart(t,r)))return void e(null,t,r,o,a);if(!e(null,n.start.row,n.start.column,o,a)&&e(n.placeholder,n.start.row,n.start.column,o)||0===i)return;a=!n.sameRow,o=n.end.column}e(null,t,r,o,a)},i.prototype.getNextFoldTo=function(e,t){for(var r,n,i=0;i<this.folds.length;i++){if(-1==(n=(r=this.folds[i]).range.compareEnd(e,t)))return{fold:r,kind:"after"};if(0===n)return{fold:r,kind:"inside"}}return null},i.prototype.addRemoveChars=function(e,t,r){var n,i=this.getNextFoldTo(e,t);if(i)if(n=i.fold,"inside"==i.kind&&n.start.column!=t&&n.start.row!=e)window.console&&window.console.log(e,t,n);else if(n.start.row==e){var o,s=(o=this.folds).indexOf(n);for(0===s&&(this.start.column+=r);s<o.length;s++){if((n=o[s]).start.column+=r,!n.sameRow)return;n.end.column+=r}this.end.column+=r}},i.prototype.split=function(e,t){var r,n;return(e=this.getNextFoldTo(e,t))&&"inside"!=e.kind?(t=e.fold,e=this.folds,r=this.foldData,t=e.indexOf(t),n=e[t-1],this.end.row=n.end.row,this.end.column=n.end.column,n=new i(r,e=e.splice(t,e.length-t)),r.splice(r.indexOf(this)+1,0,n),n):null},i.prototype.merge=function(e){for(var t=e.folds,r=0;r<t.length;r++)this.addFold(t[r]);var n=this.foldData;n.splice(n.indexOf(e),1)},i.prototype.toString=function(){var e=[this.range.toString()+": ["];return this.folds.forEach(function(t){e.push(" "+t.toString())}),e.push("]"),e.join("\n")},i.prototype.idxToPosition=function(e){for(var t=0,r=0;r<this.folds.length;r++){var n=this.folds[r];if((e-=n.start.column-t)<0)return{row:n.start.row,column:n.start.column+e};if((e-=n.placeholder.length)<0)return n.start;t=n.end.column}return{row:this.end.row,column:this.end.column+e}},t.FoldLine=i}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(e,t,r){var n=e("./range").Range.comparePoints;function i(){this.ranges=[],this.$bias=1}i.prototype.pointIndex=function(e,t,r){for(var i=this.ranges,o=r||0;o<i.length;o++){var s=i[o],a=n(e,s.end);if(!(0<a))return s=n(e,s.start),0===a?t&&0!==s?-o-2:o:0<s||0===s&&!t?o:-o-1}return-o-1},i.prototype.add=function(e){var t=!e.isEmpty(),r=this.pointIndex(e.start,t);return(t=this.pointIndex(e.end,t,r=r<0?-r-1:r))<0?t=-t-1:t++,this.ranges.splice(r,t-r,e)},i.prototype.addList=function(e){for(var t=[],r=e.length;r--;)t.push.apply(t,this.add(e[r]));return t},i.prototype.substractPoint=function(e){if(0<=(e=this.pointIndex(e)))return this.ranges.splice(e,1)},i.prototype.merge=function(){for(var e=[],t=this.ranges,r=(t=t.sort(function(e,t){return n(e.start,t.start)}))[0],i=1;i<t.length;i++){var o=r,s=(r=t[i],n(o.end,r.start));s<0||(0!=s||o.isEmpty()||r.isEmpty())&&(n(o.end,r.end)<0&&(o.end.row=r.end.row,o.end.column=r.end.column),t.splice(i,1),e.push(r),r=o,i--)}return this.ranges=t,e},i.prototype.contains=function(e,t){return 0<=this.pointIndex({row:e,column:t})},i.prototype.containsPoint=function(e){return 0<=this.pointIndex(e)},i.prototype.rangeAtPoint=function(e){if(0<=(e=this.pointIndex(e)))return this.ranges[e]},i.prototype.clipRows=function(e,t){var r=this.ranges;if(r[0].start.row>t||r[r.length-1].start.row<e)return[];e=this.pointIndex({row:e,column:0});for(var n=this.pointIndex({row:t,column:0},e=e<0?-e-1:e),i=(n<0&&(n=-n-1),[]),o=e;o<n;o++)i.push(r[o]);return i},i.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},i.prototype.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},i.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},i.prototype.$onChange=function(e){for(var t=e.start,r=e.end,n=t.row,i=r.row,o=this.ranges,s=0,a=o.length;s<a&&!((l=o[s]).end.row>=n);s++);var l;if("insert"==e.action)for(var c=i-n,u=-t.column+r.column;s<a&&!((l=o[s]).start.row>n);s++)l.start.row==n&&l.start.column>=t.column&&(l.start.column==t.column&&this.$bias<=0||(l.start.column+=u,l.start.row+=c)),l.end.row==n&&l.end.column>=t.column&&(l.end.column==t.column&&this.$bias<0||(l.end.column==t.column&&0<u&&s<a-1&&l.end.column>l.start.column&&l.end.column==o[s+1].start.column&&(l.end.column-=u),l.end.column+=u,l.end.row+=c));else for(c=n-i,u=t.column-r.column;s<a&&!((l=o[s]).start.row>i);s++)l.end.row<i&&(n<l.end.row||n==l.end.row&&t.column<l.end.column)?(l.end.row=n,l.end.column=t.column):l.end.row==i?l.end.column<=r.column?(c||l.end.column>t.column)&&(l.end.column=t.column,l.end.row=t.row):(l.end.column+=u,l.end.row+=c):l.end.row>i&&(l.end.row+=c),l.start.row<i&&(n<l.start.row||n==l.start.row&&t.column<l.start.column)?(l.start.row=n,l.start.column=t.column):l.start.row==i?l.start.column<=r.column?(c||l.start.column>t.column)&&(l.start.column=t.column,l.start.row=t.row):(l.start.column+=u,l.start.row+=c):l.start.row>i&&(l.start.row+=c);if(0!=c&&s<a)for(;s<a;s++)(l=o[s]).start.row+=c,l.end.row+=c},(e=i).prototype.comparePoints=n,t.RangeList=e}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(e,t,r){var n,i,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});function s(e,t){var r=i.call(this)||this;return r.foldLine=null,r.placeholder=t,r.range=e,r.start=e.start,r.end=e.end,r.sameRow=e.start.row==e.end.row,r.subFolds=r.ranges=[],r}function a(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function l(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}e=e("../range_list").RangeList,o(s,i=e),s.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},s.prototype.setFoldLine=function(e){this.foldLine=e,this.subFolds.forEach(function(t){t.setFoldLine(e)})},s.prototype.clone=function(){var e=new s(this.range.clone(),this.placeholder);return this.subFolds.forEach(function(t){e.subFolds.push(t.clone())}),e.collapseChildren=this.collapseChildren,e},s.prototype.addSubFold=function(e){if(!this.range.isEqual(e)){o=e,s=this.start,a(o.start,s),a(o.end,s);for(var t=e.start.row,r=e.start.column,n=0,i=-1;n<this.subFolds.length&&1==(i=this.subFolds[n].range.compare(t,r));n++);var o=this.subFolds[n],s=0;if(0==i){if(o.range.containsRange(e))return o.addSubFold(e);s=1}t=e.range.end.row,r=e.range.end.column;var l=n;for(i=-1;l<this.subFolds.length&&1==(i=this.subFolds[l].range.compare(t,r));l++);0==i&&l++;for(var c=this.subFolds.splice(n,l-n,e),u=0==i?c.length-1:c.length,d=s;d<u;d++)e.addSubFold(c[d]);return e.setFoldLine(this.foldLine),e}},s.prototype.restoreRange=function(e){return t=this.start,l(e.start,t),void l(e.end,t);var t},o=s,t.Fold=o}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(e,t,r){var n=e("../range").Range,i=e("./fold_line").FoldLine,o=e("./fold").Fold,s=e("../token_iterator").TokenIterator,a=e("../mouse/mouse_event").MouseEvent;t.Folding=function(){this.getFoldAt=function(e,t,r){var n=this.getFoldLine(e);if(!n)return null;for(var i=n.folds,o=0;o<i.length;o++){var s=i[o].range;if(s.contains(e,t)&&(1!=r||!s.isEnd(e,t)||s.isEmpty())&&(-1!=r||!s.isStart(e,t)||s.isEmpty()))return i[o]}},this.getFoldsInRange=function(e){var t=e.start,r=e.end,n=this.$foldData,i=[];t.column+=1,--r.column;for(var o=0;o<n.length;o++){var s=n[o].range.compareRange(e);if(2!=s){if(-2==s)break;for(var a=n[o].folds,l=0;l<a.length;l++){var c=a[l];if(-2==(s=c.range.compareRange(e)))break;if(2!=s){if(42==s)break;i.push(c)}}}}return--t.column,r.column+=1,i},this.getFoldsInRangeList=function(e){var t;return Array.isArray(e)?(t=[],e.forEach(function(e){t=t.concat(this.getFoldsInRange(e))},this)):t=this.getFoldsInRange(e),t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,r=0;r<t.length;r++)for(var n=0;n<t[r].folds.length;n++)e.push(t[r].folds[n]);return e},this.getFoldStringAt=function(e,t,r,n){if(!(n=n||this.getFoldLine(e)))return null;for(var i,o={end:{column:0}},s=0;s<n.folds.length;s++){var a,l=(a=n.folds[s]).range.compareEnd(e,t);if(-1==l){i=this.getLine(a.start.row).substring(o.end.column,a.start.column);break}if(0===l)return null;o=a}return i=i||this.getLine(a.start.row).substring(o.end.column),-1==r?i.substring(0,t-o.end.column):1==r?i.substring(t-o.end.column):i},this.getFoldLine=function(e,t){var r=this.$foldData,n=0;for(-1==(n=t?r.indexOf(t):n)&&(n=0);n<r.length;n++){var i=r[n];if(i.start.row<=e&&i.end.row>=e)return i;if(i.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var r=this.$foldData,n=0;for(-1==(n=t?r.indexOf(t):n)&&(n=0);n<r.length;n++){var i=r[n];if(i.end.row>=e)return i}return null},this.getFoldedRowCount=function(e,t){for(var r=this.$foldData,n=t-e+1,i=0;i<r.length;i++){var o=(s=r[i]).end.row,s=s.start.row;if(t<=o){s<t&&(e<=s?n-=t-s:n=0);break}e<=o&&(n-=e<=s?o-s:o-e+1)}return n},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort(function(e,t){return e.start.row-t.start.row}),e},this.addFold=function(e,t){var r,n=this.$foldData,s=!1,a=(e instanceof o?r=e:(r=new o(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(r.range),r.start.row),l=(e=r.start.column,r.end.row),c=(t=r.end.column,this.getFoldAt(a,e,1)),u=this.getFoldAt(l,t,-1);if(c&&u==c)return c.addSubFold(r);c&&!c.range.isStart(a,e)&&this.removeFold(c),u&&!u.range.isEnd(l,t)&&this.removeFold(u),0<(e=this.getFoldsInRange(r.range)).length&&(this.removeFolds(e),r.collapseChildren||e.forEach(function(e){r.addSubFold(e)}));for(var d=0;d<n.length;d++){var h=n[d];if(l==h.start.row){h.addFold(r),s=!0;break}if(a==h.end.row){if(h.addFold(r),s=!0,!r.sameRow){var p=n[d+1];if(p&&p.start.row==l){h.merge(p);break}}break}if(l<=h.start.row)break}return s||(h=this.$addFoldLine(new i(this.$foldData,r))),this.$useWrapMode?this.$updateWrapData(h.start.row,h.start.row):this.$updateRowLengthCache(h.start.row,h.start.row),this.$modified=!0,this._signal("changeFold",{data:r,action:"add"}),r},this.addFolds=function(e){e.forEach(function(e){this.addFold(e)},this)},this.removeFold=function(e){var t=e.foldLine,r=t.start.row,n=t.end.row,i=this.$foldData,o=t.folds;1==o.length?i.splice(i.indexOf(t),1):t.range.isEnd(e.end.row,e.end.column)?(o.pop(),t.end.row=o[o.length-1].end.row,t.end.column=o[o.length-1].end.column):t.range.isStart(e.start.row,e.start.column)?(o.shift(),t.start.row=o[0].start.row,t.start.column=o[0].start.column):e.sameRow?o.splice(o.indexOf(e),1):((o=(i=t.split(e.start.row,e.start.column)).folds).shift(),i.start.row=o[0].start.row,i.start.column=o[0].start.column),this.$updating||(this.$useWrapMode?this.$updateWrapData(r,n):this.$updateRowLengthCache(r,n)),this.$modified=!0,this._signal("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r]);t.forEach(function(e){this.removeFold(e)},this),this.$modified=!0},this.expandFold=function(e){this.removeFold(e),e.subFolds.forEach(function(t){e.restoreRange(t),this.addFold(t)},this),0<e.collapseChildren&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach(function(e){this.expandFold(e)},this)},this.unfold=function(e,t){var r,i;if(null==e)r=new n(0,0,this.getLength(),0),null==t&&(t=!0);else if("number"==typeof e)r=new n(e,0,e,this.getLine(e).length);else if("row"in e)r=n.fromPoints(e,e);else{if(Array.isArray(e))return i=[],e.forEach(function(e){i=i.concat(this.unfold(e))},this),i;r=e}for(e=i=this.getFoldsInRangeList(r);1==i.length&&n.comparePoints(i[0].start,r.start)<0&&0<n.comparePoints(i[0].end,r.end);)this.expandFolds(i),i=this.getFoldsInRangeList(r);if(0!=t?this.removeFolds(i):this.expandFolds(i),e.length)return e},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){return(t=this.getFoldLine(e,t))?t.end.row:e},this.getRowFoldStart=function(e,t){return(t=this.getFoldLine(e,t))?t.start.row:e},this.getFoldDisplayLine=function(e,t,r,n,i){null==n&&(n=e.start.row),null==i&&(i=0),null==t&&(t=e.end.row),null==r&&(r=this.getLine(t).length);var o=this.doc,s="";return e.walk(function(e,t,r,a){if(!(t<n)){if(t==n){if(r<i)return;a=Math.max(i,a)}s+=null!=e?e:o.getLine(t).substring(a,r)}},t,r),s},this.getDisplayLine=function(e,t,r,n){var i=this.getFoldLine(e);return i?this.getFoldDisplayLine(i,e,t,r,n):(i=this.doc.getLine(e)).substring(n||0,t||i.length)},this.$cloneFoldData=function(){var e=[];return e=this.$foldData.map(function(t){return t=t.folds.map(function(e){return e.clone()}),new i(e,t)})},this.toggleFold=function(e){var t=this.selection.getRange();if(t.isEmpty()){var r,n=t.start;if(r=this.getFoldAt(n.row,n.column))return void this.expandFold(r);(i=this.findMatchingBracket(n))?1==t.comparePoint(i)?t.end=i:(t.start=i,t.start.column++,t.end.column--):(i=this.findMatchingBracket({row:n.row,column:n.column+1}))?(1==t.comparePoint(i)?t.end=i:t.start=i,t.start.column++):t=this.getCommentFoldRange(n.row,n.column)||t}else{var i=this.getFoldsInRange(t);if(e&&i.length)return void this.expandFolds(i);1==i.length&&(r=i[0])}if((r=r||this.getFoldAt(t.start.row,t.start.column))&&r.range.toString()==t.toString())this.expandFold(r);else{if(n="...",!t.isMultiLine()){if((n=this.getTextRange(t)).length<4)return;n=n.trim().substring(0,2)+".."}this.addFold(n,t)}},this.getCommentFoldRange=function(e,t,r){var i=(l=new s(this,e,t)).getCurrentToken(),o=i&&i.type;if(i&&/^comment|string/.test(o)){"comment"==(o=o.match(/comment|string/)[0])&&(o+="|doc-start|\\.doc");var a=new RegExp(o);if(o=new n,1!=r){for(;(i=l.stepBackward())&&a.test(i.type););i=l.stepForward()}o.start.row=l.getCurrentTokenRow(),o.start.column=l.getCurrentTokenColumn()+i.value.length;var l=new s(this,e,t),c=this.getState(l.$row);if(-1!=r){var u=-1;do{if(i=l.stepForward(),-1==u){var d=this.getState(l.$row);c.toString()!==d.toString()&&(u=l.$row)}else if(l.$row>u)break}while(i&&a.test(i.type));i=l.stepBackward()}else i=l.getCurrentToken();return o.end.row=l.getCurrentTokenRow(),o.end.column=l.getCurrentTokenColumn(),o}},this.foldAll=function(e,t,r,n){null==r&&(r=1e5);var i=this.foldWidgets;if(i){t=t||this.getLength();for(var o,s=e=e||0;s<t;s++)null==i[s]&&(i[s]=this.getFoldWidget(s)),"start"!=i[s]||n&&!n(s)||(o=this.getFoldWidgetRange(s))&&o.isMultiLine()&&o.end.row<=t&&o.start.row>=e&&(s=o.end.row,o.collapseChildren=r,this.addFold("...",o))}},this.foldToLevel=function(e){for(this.foldAll();0<e--;)this.unfold(null,!1)},this.foldAllComments=function(){var e=this;this.foldAll(null,null,null,function(t){for(var r=e.getTokens(t),n=0;n<r.length;n++){var i=r[n];if("text"!=i.type||!/^\s+$/.test(i.value))return!!/comment/.test(i.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");this.$foldStyle!=e&&("manual"==(this.$foldStyle=e)&&this.unfold(),e=this.$foldMode,this.$setFolding(null),this.$setFolding(e))},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var r=this.foldWidgets;if(!r||t&&r[e])return{};for(var n=e-1;0<=n;){var i=r[n];if("start"==(i=null==i?r[n]=this.getFoldWidget(n):i)){var o=this.getFoldWidgetRange(n),s=s||o;if(o&&o.end.row>=e)break}n--}return{range:-1!==n&&o,firstRange:s}},this.onFoldWidgetClick=function(e,t){var r={children:(t=t instanceof a?t.domEvent:t).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};this.$toggleFoldWidget(e,r)||(e=t.target||t.srcElement)&&/ace_fold-widget/.test(e.className)&&(e.className+=" ace_invalid")},this.$toggleFoldWidget=function(e,t){var r,n,i,o;if(this.getFoldWidget)return r=this.getFoldWidget(e),n=this.getLine(e),(n=this.getFoldAt(e,-1==(r="end"===r?-1:1)?0:n.length,r))?(t.children||t.all?this.removeFold(n):this.expandFold(n),n):(r=this.getFoldWidgetRange(e,!0))&&!r.isMultiLine()&&(n=this.getFoldAt(r.start.row,r.start.column,1))&&r.isEqual(n.range)?(this.removeFold(n),n):(t.siblings?((n=this.getParentFoldRangeData(e)).range&&(i=n.range.start.row+1,o=n.range.end.row),this.foldAll(i,o,t.all?1e4:0)):t.children?(o=r?r.end.row:this.getLength(),this.foldAll(e+1,o,t.all?1e4:0)):r&&(t.all&&(r.collapseChildren=1e4),this.addFold("...",r)),r)},this.toggleFoldWidget=function(e){var t,r=this.selection.getCursor().row;r=this.getRowFoldStart(r),!this.$toggleFoldWidget(r,{})&&(t=(t=this.getParentFoldRangeData(r,!0)).range||t.firstRange)&&(r=t.start.row,(r=this.getFoldAt(r,this.getLine(r).length,1))?this.removeFold(r):this.addFold("...",t))},this.updateFoldWidgets=function(e){var t=e.start.row,r=e.end.row-t;0==r?this.foldWidgets[t]=null:"remove"==e.action?this.foldWidgets.splice(t,1+r,null):((e=Array(1+r)).unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,e))},this.tokenizerUpdateFoldWidgets=function(e){(e=e.data).first!=e.last&&this.foldWidgets.length>e.first&&this.foldWidgets.splice(e.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,t,r){var n=e("../token_iterator").TokenIterator,i=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){return 0!=e.column&&""!=(t=t||this.getLine(e.row).charAt(e.column-1))&&(t=t.match(/([\(\[\{])|([\)\]\}])/))?t[1]?this.$findClosingBracket(t[1],e):this.$findOpeningBracket(t[2],e):null},this.getBracketRange=function(e){var t,r,n=this.getLine(e.row),o=!0,s=n.charAt(e.column-1),a=s&&s.match(/([\(\[\{])|([\)\]\}])/);if(a||(s=n.charAt(e.column),e={row:e.row,column:e.column+1},a=s&&s.match(/([\(\[\{])|([\)\]\}])/),o=!1),!a)return null;if(a[1]){if(!(r=this.$findClosingBracket(a[1],e)))return null;t=i.fromPoints(e,r),o||(t.end.column++,t.start.column--),t.cursor=t.end}else{if(!(r=this.$findOpeningBracket(a[2],e)))return null;t=i.fromPoints(r,e),o||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e,t){var r=this.getLine(e.row),n=/([\(\[\{])|([\)\]\}])/,o=!t&&r.charAt(e.column-1),s=o&&o.match(n);return s||(o=(void 0===t||t)&&r.charAt(e.column),e={row:e.row,column:e.column+1},s=o&&o.match(n)),s?(t=new i(e.row,e.column-1,e.row,e.column),(r=s[1]?this.$findClosingBracket(s[1],e):this.$findOpeningBracket(s[2],e))?[t,new i(r.row,r.column,r.row,r.column+1)]:[t]):null},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,r){var i=this.$brackets[e],o=1,s=new n(this,t.row,t.column),a=s.getCurrentToken();if(a=a||s.stepForward()){r=r||new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+");for(var l=t.column-s.getCurrentTokenColumn()-2,c=a.value;;){for(;0<=l;){var u=c.charAt(l);if(u==i){if(0==--o)return{row:s.getCurrentTokenRow(),column:l+s.getCurrentTokenColumn()}}else u==e&&(o+=1);--l}for(;(a=s.stepBackward())&&!r.test(a.type););if(null==a)break;l=(c=a.value).length-1}return null}},this.$findClosingBracket=function(e,t,r){var i=this.$brackets[e],o=1,s=new n(this,t.row,t.column),a=s.getCurrentToken();if(a=a||s.stepForward()){r=r||new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+");for(var l=t.column-s.getCurrentTokenColumn();;){for(var c=a.value,u=c.length;l<u;){var d=c.charAt(l);if(d==i){if(0==--o)return{row:s.getCurrentTokenRow(),column:l+s.getCurrentTokenColumn()}}else d==e&&(o+=1);l+=1}for(;(a=s.stepForward())&&!r.test(a.type););if(null==a)break;l=0}return null}},this.getMatchingTags=function(e){e=new n(this,e.row,e.column);var t=this.$findTagName(e);if(t)return"<"===e.stepBackward().value?this.$findClosingTag(e,t):this.$findOpeningTag(e,t)},this.$findTagName=function(e){var t=e.getCurrentToken(),r=!1,n=!1;if(t&&-1===t.type.indexOf("tag-name"))for(;(t=n?e.stepBackward():e.stepForward())&&("/>"===t.value?n=!0:-1!==t.type.indexOf("tag-name")&&(r=!0)),t&&!r;);return t},this.$findClosingTag=function(e,t){var r=t.value,n=t.value,o=0,s=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1),a=(t=e.stepForward(),new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length)),l=!1;do{var c,u=t;if(-1===u.type.indexOf("tag-close")||l||(c=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1),l=!0),t=e.stepForward())if(">"!==t.value||l||(c=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1),l=!0),-1!==t.type.indexOf("tag-name")){if(n===(r=t.value))if("<"===u.value)o++;else if("</"===u.value&&--o<0){e.stepBackward();var d=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+2),h=(t=e.stepForward(),new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length));if(!(t=-1===t.type.indexOf("tag-close")?e.stepForward():t)||">"!==t.value)return;var p=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1)}}else n===r&&"/>"===t.value&&--o<0&&(p=h=d=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+2),c=new i(a.end.row,a.end.column,a.end.row,a.end.column+1))}while(t&&0<=o);if(s&&c&&d&&p&&a&&h)return{openTag:new i(s.start.row,s.start.column,c.end.row,c.end.column),closeTag:new i(d.start.row,d.start.column,p.end.row,p.end.column),openTagName:a,closeTagName:h}},this.$findOpeningTag=function(e,t){var r,n=e.getCurrentToken(),o=t.value,s=0,a=e.getCurrentTokenRow(),l=e.getCurrentTokenColumn(),c=new i(a,l,a,l+2),u=(e.stepForward(),new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length));if((t=-1===t.type.indexOf("tag-close")?e.stepForward():t)&&">"===t.value){var d=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);e.stepBackward(),e.stepBackward();do{if(t=n,a=e.getCurrentTokenRow(),r=(l=e.getCurrentTokenColumn())+t.value.length,n=e.stepBackward(),t)if(-1!==t.type.indexOf("tag-name")){if(o===t.value)if("<"===n.value){if(0<++s){for(var h=new i(a,l,a,r),p=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);(t=e.stepForward())&&">"!==t.value;);var f=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1)}}else"</"===n.value&&s--}else if("/>"===t.value){for(var m=0,g=n;g;){if(-1!==g.type.indexOf("tag-name")&&g.value===o){s--;break}if("<"===g.value)break;g=e.stepBackward(),m++}for(var y=0;y<m;y++)e.stepForward()}}while(n&&s<=0);return p&&f&&c&&d&&h&&u?{openTag:new i(p.start.row,p.start.column,f.end.row,f.end.column),closeTag:new i(c.start.row,c.start.column,d.end.row,d.end.column),openTagName:h,closeTagName:u}:void 0}}}}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/line_widgets","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(e,t,r){var n=e("./lib/oop"),i=e("./lib/lang"),o=e("./bidihandler").BidiHandler,s=e("./config"),a=e("./lib/event_emitter").EventEmitter,l=e("./selection").Selection,c=e("./mode/text").Mode,u=e("./range").Range,d=e("./line_widgets").LineWidgets,h=e("./document").Document,p=e("./background_tokenizer").BackgroundTokenizer,f=e("./search_highlight").SearchHighlight,m=e("./undomanager").UndoManager,g=(y.prototype.$initOperationListeners=function(){var e=this;this.curOp=null,this.on("change",function(){e.curOp||(e.startOperation(),e.curOp.selectionBefore=e.$lastSel),e.curOp.docChanged=!0},!0),this.on("changeSelection",function(){e.curOp||(e.startOperation(),e.curOp.selectionBefore=e.$lastSel),e.curOp.selectionChanged=!0},!0),this.$operationResetTimer=i.delayedCall(this.endOperation.bind(this,!0))},y.prototype.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e=e||{},this.$operationResetTimer.schedule(),this.curOp={command:e.command||{},args:e.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",e)},y.prototype.endOperation=function(e){var t;this.curOp&&(e&&!1===e.returnValue?(this.curOp=null,this._signal("endOperation",e)):1==e&&this.curOp.command&&"mouse"==this.curOp.command.name||(t=this.selection.toJSON(),this.curOp.selectionAfter=t,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection(t),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",e)))},y.prototype.setDocument=function(e){this.doc&&this.doc.off("change",this.$onChange),(this.doc=e).on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},y.prototype.getDocument=function(){return this.doc},Object.defineProperty(y.prototype,"widgetManager",{get:function(){var e=new d(this);return this.widgetManager=e,this.$editor&&e.attach(this.$editor),e},set:function(e){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:e})},enumerable:!1,configurable:!0}),y.prototype.$resetRowCache=function(e){var t;e?(t=this.$docRowCache.length,(e=this.$getRowCacheIndex(this.$docRowCache,e)+1)<t&&(this.$docRowCache.splice(e,t),this.$screenRowCache.splice(e,t))):(this.$docRowCache=[],this.$screenRowCache=[])},y.prototype.$getRowCacheIndex=function(e,t){for(var r=0,n=e.length-1;r<=n;){var i=r+n>>1,o=e[i];if(o<t)r=1+i;else{if(!(t<o))return i;n=i-1}}return r-1},y.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},y.prototype.onChangeFold=function(e){e=e.data,this.$resetRowCache(e.start.row)},y.prototype.onChange=function(e){this.$modified=!0,this.$bidiHandler.onChange(e),this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);!this.$fromUndo&&this.$undoManager&&(t&&t.length&&(this.$undoManager.add({action:"removeFolds",folds:t},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(e,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},y.prototype.onSelectionChange=function(){this._signal("changeSelection")},y.prototype.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},y.fromJSON=function(e){"string"==typeof e&&(e=JSON.parse(e));var t=new m,r=(t.$undoStack=e.history.undo,t.$redoStack=e.history.redo,t.mark=e.history.mark,t.$rev=e.history.rev,new y(e.value));return e.folds.forEach(function(e){r.addFold("...",u.fromPoints(e.start,e.end))}),r.setAnnotations(e.annotations),r.setBreakpoints(e.breakpoints),r.setMode(e.mode),r.setScrollLeft(e.scrollLeft),r.setScrollTop(e.scrollTop),r.setUndoManager(t),r.selection.fromJSON(e.selection),r},y.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(e){return e.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},y.prototype.toString=function(){return this.doc.getValue()},y.prototype.getSelection=function(){return this.selection},y.prototype.getState=function(e){return this.bgTokenizer.getState(e)},y.prototype.getTokens=function(e){return this.bgTokenizer.getTokens(e)},y.prototype.getTokenAt=function(e,t){var r=this.bgTokenizer.getTokens(e),n=0;if(null==t){var i=r.length-1;n=this.getLine(e).length}else for(i=0;i<r.length&&!(t<=(n+=r[i].value.length));i++);return(e=r[i])?(e.index=i,e.start=n-e.value.length,e):null},y.prototype.setUndoManager=function(e){var t;this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e?(e.addSession(t=this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=i.delayedCall(this.$syncInformUndoManager)):this.$syncInformUndoManager=function(){}},y.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},y.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},y.prototype.getTabString=function(){return this.getUseSoftTabs()?i.stringRepeat(" ",this.getTabSize()):"\t"},y.prototype.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},y.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},y.prototype.setTabSize=function(e){this.setOption("tabSize",e)},y.prototype.getTabSize=function(){return this.$tabSize},y.prototype.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},y.prototype.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},y.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},y.prototype.setOverwrite=function(e){this.setOption("overwrite",e)},y.prototype.getOverwrite=function(){return this.$overwrite},y.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},y.prototype.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},y.prototype.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},y.prototype.getBreakpoints=function(){return this.$breakpoints},y.prototype.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},y.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},y.prototype.setBreakpoint=function(e,t){(t=void 0===t?"ace_breakpoint":t)?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},y.prototype.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},y.prototype.addMarker=function(e,t,r,n){var i=this.$markerId++;return e={range:e,type:r||"line",renderer:"function"==typeof r?r:null,clazz:t,inFront:!!n,id:i},n?(this.$frontMarkers[i]=e,this._signal("changeFrontMarker")):(this.$backMarkers[i]=e,this._signal("changeBackMarker")),i},y.prototype.addDynamicMarker=function(e,t){var r;if(e.update)return r=this.$markerId++,e.id=r,e.inFront=!!t,t?(this.$frontMarkers[r]=e,this._signal("changeFrontMarker")):(this.$backMarkers[r]=e,this._signal("changeBackMarker")),e},y.prototype.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];t&&(delete(t.inFront?this.$frontMarkers:this.$backMarkers)[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker"))},y.prototype.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},y.prototype.highlight=function(e){var t;this.$searchHighlight||(t=new f(null,"ace_selected-word","text"),this.$searchHighlight=this.addDynamicMarker(t)),this.$searchHighlight.setRegexp(e)},y.prototype.highlightLines=function(e,t,r,n){return"number"!=typeof t&&(r=t,t=e),r=r||"ace_step",(e=new u(e,0,t,1/0)).id=this.addMarker(e,r,"fullLine",n),e},y.prototype.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},y.prototype.getAnnotations=function(){return this.$annotations||[]},y.prototype.clearAnnotations=function(){this.setAnnotations([])},y.prototype.$detectNewLine=function(e){e=e.match(/^.*?(\r?\n)/m),this.$autoNewLine=e?e[1]:"\n"},y.prototype.getWordRange=function(e,t){var r,n=this.getLine(e),i=!1,o=(r=(i=(i=0<t?!!n.charAt(t-1).match(this.tokenRe):i)||!!n.charAt(t).match(this.tokenRe))?this.tokenRe:/^\s+$/.test(n.slice(t-1,t+1))?/\s/:this.nonTokenRe,t);if(0<o){for(;0<=--o&&n.charAt(o).match(r););o++}for(var s=t;s<n.length&&n.charAt(s).match(r);)s++;return new u(e,o,e,s)},y.prototype.getAWordRange=function(e,t){for(var r=this.getWordRange(e,t),n=this.getLine(r.end.row);n.charAt(r.end.column).match(/[ \t]/);)r.end.column+=1;return r},y.prototype.setNewLineMode=function(e){this.doc.setNewLineMode(e)},y.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},y.prototype.setUseWorker=function(e){this.setOption("useWorker",e)},y.prototype.getUseWorker=function(){return this.$useWorker},y.prototype.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},y.prototype.setMode=function(e,t){if(e&&"object"==typeof e){if(e.getTokenizer)return this.$onChangeMode(e);var r=e,n=r.path}else n=e||"ace/mode/text";this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new c),this.$modes[n]&&!r?(this.$onChangeMode(this.$modes[n]),t&&t()):(this.$modeId=n,s.loadModule(["mode",n],function(e){if(!this.destroyed){if(this.$modeId!==n)return t&&t();this.$modes[n]&&!r?this.$onChangeMode(this.$modes[n]):e&&e.Mode&&(e=new e.Mode(r),r||((this.$modes[n]=e).$id=n),this.$onChangeMode(e)),t&&t()}}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0))},y.prototype.$onChangeMode=function(e,t){var r,n,i;t||(this.$modeId=e.$id),this.$mode===e||(r=this.$mode,this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker(),void 0!==(n=e.getTokenizer()).on&&(i=this.onReloadTokenizer.bind(this),n.on("update",i)),this.bgTokenizer.setTokenizer(n),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t)||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:r,mode:e}))},y.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},y.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){s.warn("Could not load worker",e),this.$worker=null}},y.prototype.getMode=function(){return this.$mode},y.prototype.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},y.prototype.getScrollTop=function(){return this.$scrollTop},y.prototype.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},y.prototype.getScrollLeft=function(){return this.$scrollLeft},y.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},y.prototype.getLineWidgetMaxWidth=function(){var e;return null!=this.lineWidgetsWidth?this.lineWidgetsWidth:(e=0,this.lineWidgets.forEach(function(t){t&&t.screenWidth>e&&(e=t.screenWidth)}),this.lineWidgetWidth=e)},y.prototype.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),r=this.$rowLengthCache,n=0,i=0,o=this.$foldData[i],s=o?o.start.row:1/0,a=t.length,l=0;l<a;l++){if(s<l){if(a<=(l=o.end.row+1))break;s=(o=this.$foldData[i++])?o.start.row:1/0}null==r[l]&&(r[l]=this.$getStringScreenWidth(t[l])[0]),r[l]>n&&(n=r[l])}this.screenWidth=n}},y.prototype.getLine=function(e){return this.doc.getLine(e)},y.prototype.getLines=function(e,t){return this.doc.getLines(e,t)},y.prototype.getLength=function(){return this.doc.getLength()},y.prototype.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},y.prototype.insert=function(e,t){return this.doc.insert(e,t)},y.prototype.remove=function(e){return this.doc.remove(e)},y.prototype.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},y.prototype.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var r=e.length-1;-1!=r;r--){var n=e[r];"insert"==n.action||"remove"==n.action?this.doc.revertDelta(n):n.folds&&this.addFolds(n.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},y.prototype.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var r=0;r<e.length;r++){var n=e[r];"insert"!=n.action&&"remove"!=n.action||this.doc.$safeApplyDelta(n)}!t&&this.$undoSelect&&(e.selectionAfter?this.selection.fromJSON(e.selectionAfter):this.selection.setRange(this.$getUndoSelection(e,!1))),this.$fromUndo=!1}},y.prototype.setUndoSelect=function(e){this.$undoSelect=e},y.prototype.$getUndoSelection=function(e,t){function r(e){return t?"insert"!==e.action:"insert"===e.action}for(var n,i,o=0;o<e.length;o++){var s=e[o];s.start&&(n?r(s)?(i=s.start,-1==n.compare(i.row,i.column)&&n.setStart(i),i=s.end,1==n.compare(i.row,i.column)&&n.setEnd(i)):(i=s.start,-1==n.compare(i.row,i.column)&&(n=u.fromPoints(s.start,s.start))):n=r(s)?u.fromPoints(s.start,s.end):u.fromPoints(s.start,s.start))}return n},y.prototype.replace=function(e,t){return this.doc.replace(e,t)},y.prototype.moveText=function(e,t,r){var n,i,o,s=this.getTextRange(e),a=this.getFoldsInRange(e);return t=u.fromPoints(t,t),r||(this.remove(e),i=e.start.row-e.end.row,(o=i?-e.end.column:e.start.column-e.end.column)&&(t.start.row==e.end.row&&t.start.column>e.end.column&&(t.start.column+=o),t.end.row==e.end.row)&&t.end.column>e.end.column&&(t.end.column+=o),i&&t.start.row>=e.end.row&&(t.start.row+=i,t.end.row+=i)),t.end=this.insert(t.start,s),a.length&&(n=e.start,r=t.start,i=r.row-n.row,o=r.column-n.column,this.addFolds(a.map(function(e){return(e=e.clone()).start.row==n.row&&(e.start.column+=o),e.end.row==n.row&&(e.end.column+=o),e.start.row+=i,e.end.row+=i,e}))),t},y.prototype.indentRows=function(e,t,r){r=r.replace(/\t/g,this.getTabString());for(var n=e;n<=t;n++)this.doc.insertInLine({row:n,column:0},r)},y.prototype.outdentRows=function(e){for(var t=e.collapseRows(),r=new u(0,0,0,0),n=this.getTabSize(),i=t.start.row;i<=t.end.row;++i){var o=this.getLine(i);r.start.row=i,r.end.row=i;for(var s=0;s<n&&" "==o.charAt(s);++s);s<n&&"\t"==o.charAt(s)?(r.start.column=s,r.end.column=s+1):(r.start.column=0,r.end.column=s),this.remove(r)}},y.prototype.$moveLines=function(e,t,r){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),r<0){if((i=this.getRowFoldStart(e+r))<0)return 0;var n=i-e}else if(0<r){if((i=this.getRowFoldEnd(t+r))>this.doc.getLength()-1)return 0;n=i-t}else e=this.$clipRowToDocument(e),n=(t=this.$clipRowToDocument(t))-e+1;var i=new u(e,0,t,Number.MAX_VALUE);return i=this.getFoldsInRange(i).map(function(e){return(e=e.clone()).start.row+=n,e.end.row+=n,e}),r=0==r?this.doc.getLines(e,t):this.doc.removeFullLines(e,t),this.doc.insertFullLines(e+n,r),i.length&&this.addFolds(i),n},y.prototype.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},y.prototype.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},y.prototype.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},y.prototype.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},y.prototype.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},y.prototype.$clipPositionToDocument=function(e,t){var r;return t=Math.max(0,t),t=e<0?e=0:(r=this.doc.getLength())<=e?this.doc.getLine(e=r-1).length:Math.min(this.doc.getLine(e).length,t),{row:e,column:t}},y.prototype.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},y.prototype.setUseWrapMode=function(e){e!=this.$useWrapMode&&(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e&&(e=this.getLength(),this.$wrapData=Array(e),this.$updateWrapData(0,e-1)),this._signal("changeWrapMode"))},y.prototype.getUseWrapMode=function(){return this.$useWrapMode},y.prototype.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},y.prototype.adjustWrapLimit=function(e,t){var r=this.$wrapLimitRange;return r.max<0&&(r={min:t,max:t}),(t=this.$constrainWrapLimit(e,r.min,r.max))!=this.$wrapLimit&&1<t&&(this.$wrapLimit=t,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},y.prototype.$constrainWrapLimit=function(e,t,r){return t&&(e=Math.max(t,e)),r?Math.min(r,e):e},y.prototype.getWrapLimit=function(){return this.$wrapLimit},y.prototype.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},y.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},y.prototype.$updateInternalDataOnChange=function(e){var t,r=this.$useWrapMode,n=e.action,i=e.start,o=e.end,s=i.row,a=o.row,l=a-s,c=null;if(this.$updating=!0,0!=l)if("remove"===n){this[r?"$wrapData":"$rowLengthCache"].splice(s,l);var u=this.$foldData;c=this.getFoldsInRange(e),this.removeFolds(c);var d=0;for((t=this.getFoldLine(o.row))&&(t.addRemoveChars(o.row,o.column,i.column-o.column),t.shiftRow(-l),(h=this.getFoldLine(s))&&h!==t&&(h.merge(t),t=h),d=u.indexOf(t)+1);d<u.length;d++)(t=u[d]).start.row>=o.row&&t.shiftRow(-l);a=s}else{var h=Array(l),p=(h.unshift(s,0),r?this.$wrapData:this.$rowLengthCache);for(p.splice.apply(p,h),u=this.$foldData,d=0,(t=this.getFoldLine(s))&&(0==(p=t.range.compareInside(i.row,i.column))?(t=t.split(i.row,i.column))&&(t.shiftRow(l),t.addRemoveChars(a,0,o.column-i.column)):-1==p&&(t.addRemoveChars(s,0,o.column-i.column),t.shiftRow(l)),d=u.indexOf(t)+1);d<u.length;d++)(t=u[d]).start.row>=s&&t.shiftRow(l)}else l=Math.abs(e.start.column-e.end.column),"remove"===n&&(c=this.getFoldsInRange(e),this.removeFolds(c),l=-l),(t=this.getFoldLine(s))&&t.addRemoveChars(s,i.column,l);return r&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,r?this.$updateWrapData(s,a):this.$updateRowLengthCache(s,a),c},y.prototype.$updateRowLengthCache=function(e,t){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},y.prototype.$updateWrapData=function(e,t){var r,n,i=this.doc.getAllLines(),o=this.getTabSize(),s=this.$wrapData,a=this.$wrapLimit,l=e;for(t=Math.min(t,i.length-1);l<=t;)(n=this.getFoldLine(l,n))?(r=[],n.walk(function(e,t,n,o){var s;if(null!=e){(s=this.$getDisplayTokens(e,r.length))[0]=w;for(var a=1;a<s.length;a++)s[a]=x}else s=this.$getDisplayTokens(i[t].substring(o,n),r.length);r=r.concat(s)}.bind(this),n.end.row,i[n.end.row].length+1),s[n.start.row]=this.$computeWrapSplits(r,a,o),l=n.end.row+1):(r=this.$getDisplayTokens(i[l]),s[l]=this.$computeWrapSplits(r,a,o),l++)},y.prototype.$computeWrapSplits=function(e,t,r){if(0==e.length)return[];var n=[],i=e.length,o=0,s=0,a=this.$wrapAsCode,l=this.$indentedSoftWrap,c=t<=Math.max(2*r,8)||!1===l?0:Math.floor(t/2);function u(t){for(var i=t-o,u=o;u<t;u++){var h=e[u];12!==h&&2!==h||--i}n.length||(d=(()=>{var t=0;if(0===c)return t;if(l)for(var n=0;n<e.length;n++){var i=e[n];if(i==C)t+=1;else if(i==S)t+=r;else if(i!=I)break}return a&&!1!==l&&(t+=r),Math.min(t,c)})(),n.indent=d),s+=i,n.push(s),o=t}for(var d=0;t-d<i-o;){var h=o+t-d;if(e[h-1]>=C&&e[h]>=C)u(h);else if(e[h]==w||e[h]==x){for(;h!=o-1&&e[h]!=w;h--);if(o<h);else{for(h=o+t;h<e.length&&e[h]==x;h++);if(h==e.length)break}u(h)}else{for(var p=Math.max(h-(t-(t>>2)),o-1);p<h&&e[h]<w;)h--;if(a){for(;p<h&&e[h]<w;)h--;for(;p<h&&e[h]==A;)h--}else for(;p<h&&e[h]<C;)h--;p<h?u(++h):(e[h=o+t]==b&&h--,u(h-d))}}return n},y.prototype.$getDisplayTokens=function(e,t){var r,n=[];t=t||0;for(var i=0;i<e.length;i++){var o=e.charCodeAt(i);if(9==o){r=this.getScreenTabSize(n.length+t),n.push(S);for(var s=1;s<r;s++)n.push(I)}else 32==o?n.push(C):39<o&&o<48||57<o&&o<64?n.push(A):4352<=o&&k(o)?n.push(v,b):n.push(v)}return n},y.prototype.$getStringScreenWidth=function(e,t,r){if(0==t)return[0,0];var n,i;for(null==t&&(t=1/0),r=r||0,i=0;i<e.length&&(9==(n=e.charCodeAt(i))?r+=this.getScreenTabSize(r):4352<=n&&k(n)?r+=2:r+=1,!(t<r));i++);return[r,i]},y.prototype.getRowLength=function(e){var t=1;return this.lineWidgets&&(t+=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0),this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+t:t},y.prototype.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},y.prototype.getRowWrapIndent=function(e){var t;return this.$useWrapMode&&(e=this.screenToDocumentPosition(e,Number.MAX_VALUE),(t=this.$wrapData[e.row]).length)&&t[0]<e.column?t.indent:0},y.prototype.getScreenLastRowColumn=function(e){return e=this.screenToDocumentPosition(e,Number.MAX_VALUE),this.documentToScreenColumn(e.row,e.column)},y.prototype.getDocumentLastRowColumn=function(e,t){return e=this.documentToScreenRow(e,t),this.getScreenLastRowColumn(e)},y.prototype.getDocumentLastRowColumnPosition=function(e,t){return e=this.documentToScreenRow(e,t),this.screenToDocumentPosition(e,Number.MAX_VALUE/10)},y.prototype.getRowSplitData=function(e){if(this.$useWrapMode)return this.$wrapData[e]},y.prototype.getScreenTabSize=function(e){return this.$tabSize-(e%this.$tabSize|0)},y.prototype.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},y.prototype.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},y.prototype.screenToDocumentPosition=function(e,t,r){if(e<0)return{row:0,column:0};for(var n,i,o,s=0,a=0,l=0,c=0,u=this.$screenRowCache,d=this.$getRowCacheIndex(u,e),h=u.length,p=(o=h&&0<=d?(l=u[d],s=this.$docRowCache[d],e>u[h-1]):!h,this.getLength()-1),f=this.getNextFoldLine(s),m=f?f.start.row:1/0;l<=e&&!(e<l+(c=this.getRowLength(s))||p<=s);)l+=c,m<++s&&(s=f.end.row+1,m=(f=this.getNextFoldLine(s,f))?f.start.row:1/0),o&&(this.$docRowCache.push(s),this.$screenRowCache.push(l));if(f&&f.start.row<=s)n=this.getFoldDisplayLine(f),s=f.start.row;else{if(l+c<=e||p<s)return{row:p,column:this.getLine(p).length};n=this.getLine(s),f=null}return d=0,u=Math.floor(e-l),this.$useWrapMode&&(h=this.$wrapData[s])&&(i=h[u],0<u)&&h.length&&(d=h.indent,a=h[u-1]||h[h.length-1],n=n.substring(a)),void 0!==r&&this.$bidiHandler.isBidiRow(l+u,s,u)&&(t=this.$bidiHandler.offsetToCol(r)),a+=this.$getStringScreenWidth(n,t-d)[1],this.$useWrapMode&&i<=a&&(a=i-1),f?f.idxToPosition(a):{row:s,column:a}},y.prototype.documentToScreenPosition=function(e,t){var r=(e=(n=void 0===t?this.$clipPositionToDocument(e.row,e.column):this.$clipPositionToDocument(e,t)).row,t=n.column,0),n=null;(a=this.getFoldAt(e,t,1))&&(e=a.start.row,t=a.start.column);for(var i,o,s=0,a=this.$docRowCache,l=this.$getRowCacheIndex(a,e),c=a.length,u=(o=c&&0<=l?(s=a[l],r=this.$screenRowCache[l],e>a[c-1]):!c,this.getNextFoldLine(s)),d=u?u.start.row:1/0;s<e;){if(d<=s){if(e<(i=u.end.row+1))break;d=(u=this.getNextFoldLine(i,u))?u.start.row:1/0}else i=s+1;r+=this.getRowLength(s),s=i,o&&(this.$docRowCache.push(s),this.$screenRowCache.push(r))}var h="";if(n=u&&d<=s?(h=this.getFoldDisplayLine(u,e,t),u.start.row):(h=this.getLine(e).substring(0,t),e),l=0,this.$useWrapMode){var p=this.$wrapData[n];if(p){for(var f=0;h.length>=p[f];)r++,f++;h=h.substring(p[f-1]||0,h.length),l=0<f?p.indent:0}}return this.lineWidgets&&this.lineWidgets[s]&&this.lineWidgets[s].rowsAbove&&(r+=this.lineWidgets[s].rowsAbove),{row:r,column:l+this.$getStringScreenWidth(h)[0]}},y.prototype.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},y.prototype.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},y.prototype.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var r=this.$wrapData.length,n=0,i=0,o=(t=this.$foldData[i++])?t.start.row:1/0;n<r;){var s=this.$wrapData[n];e+=s?s.length+1:1,o<++n&&(n=t.end.row+1,o=(t=this.$foldData[i++])?t.start.row:1/0)}else{e=this.getLength();var a=this.$foldData;for(i=0;i<a.length;i++)e-=(t=a[i]).end.row-t.start.row}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},y.prototype.$setFontMetrics=function(e){this.$enableVarChar&&(this.$getStringScreenWidth=function(t,r,n){if(0===r)return[0,0];var i,o;for(r=r||1/0,n=n||0,o=0;o<t.length&&!(r<(n+="\t"===(i=t.charAt(o))?this.getScreenTabSize(n):e.getCharacterWidth(i)));o++);return[n,o]})},y.prototype.getPrecedingCharacter=function(){var e=this.selection.getCursor();return 0===e.column?0===e.row?"":this.doc.getNewLineCharacter():this.getLine(e.row)[e.column-1]},y.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.endOperation(),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection&&(this.selection.off("changeCursor",this.$onSelectionChange),this.selection.off("changeSelection",this.$onSelectionChange)),this.selection.detach()},y);function y(e,t){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$editor=null,this.prevOp={},this.$foldData=[],this.id="session"+ ++y.$uid,this.$foldData.toString=function(){return this.join("\n")},this.bgTokenizer=new p((new c).getTokenizer(),this);var r=this;this.bgTokenizer.on("update",function(e){r._signal("tokenizerUpdate",e)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof e&&e.getLine||(e=new h(e)),this.setDocument(e),this.selection=new l(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new o(this),s.resetOptions(this),this.setMode(t),s._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}g.$uid=0,g.prototype.$modes=s.$modes,g.prototype.getValue=g.prototype.toString,g.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},g.prototype.$overwrite=!1,g.prototype.$mode=null,g.prototype.$modeId=null,g.prototype.$scrollTop=0,g.prototype.$scrollLeft=0,g.prototype.$wrapLimit=80,g.prototype.$useWrapMode=!1,g.prototype.$wrapLimitRange={min:null,max:null},g.prototype.lineWidgets=null,g.prototype.isFullWidth=k,n.implement(g.prototype,a);var v=1,b=2,w=3,x=4,A=9,C=10,S=11,I=12;function k(e){return!(e<4352)&&(4352<=e&&e<=4447||4515<=e&&e<=4519||4602<=e&&e<=4607||9001<=e&&e<=9002||11904<=e&&e<=11929||11931<=e&&e<=12019||12032<=e&&e<=12245||12272<=e&&e<=12283||12288<=e&&e<=12350||12353<=e&&e<=12438||12441<=e&&e<=12543||12549<=e&&e<=12589||12593<=e&&e<=12686||12688<=e&&e<=12730||12736<=e&&e<=12771||12784<=e&&e<=12830||12832<=e&&e<=12871||12880<=e&&e<=13054||13056<=e&&e<=19903||19968<=e&&e<=42124||42128<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||55216<=e&&e<=55238||55243<=e&&e<=55291||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65106||65108<=e&&e<=65126||65128<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510)}e("./edit_session/folding").Folding.call(g.prototype),e("./edit_session/bracket_match").BracketMatch.call(g.prototype),s.defineOptions(g.prototype,"session",{wrap:{set:function(e){e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e&&((this.$wrap=e)?(this.setWrapLimitRange(e="number"==typeof e?e:null,e),this.setUseWrapMode(!0)):this.setUseWrapMode(!1))},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode)&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){0<(e=parseInt(e))&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=g}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,r){var n=e("./lib/lang"),i=e("./lib/oop"),o=e("./range").Range;function s(){this.$options={}}s.prototype.set=function(e){return i.mixin(this.$options,e),this},s.prototype.getOptions=function(){return n.copyObject(this.$options)},s.prototype.setOptions=function(e){this.$options=e},s.prototype.find=function(e){var t,r=this.$options;return!!(e=this.$matchIterator(e,r))&&(t=null,e.forEach(function(e,n,i,s){return t=new o(e,n,i,s),!(n==s&&r.start&&r.start.start&&0!=r.skipCurrent&&t.isEqual(r.start)&&(t=null,1))}),t)},s.prototype.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var r=t.range,i=r?e.getLines(r.start.row,r.end.row):e.doc.getAllLines(),s=[],a=t.re;if(t.$isMultiLine){var l,c=a.length,u=i.length-c;e:for(var d=a.offset||0;d<=u;d++){for(var h=0;h<c;h++)if(-1==i[d+h].search(a[h]))continue e;var p=i[d],f=i[d+c-1];p=p.length-p.match(a[0])[0].length,f=f.match(a[c-1])[0].length,l&&l.end.row===d&&l.end.column>p||(s.push(l=new o(d,p,d+c-1,f)),2<c&&(d=d+c-2))}}else for(var m=0;m<i.length;m++){var g=n.getMatchOffsets(i[m],a);for(h=0;h<g.length;h++){var y=g[h];s.push(new o(m,y.offset,m,y.offset+y.length))}}if(r){var v=r.start.column,b=r.end.column;for(m=0,h=s.length-1;m<h&&s[m].start.column<v&&0==s[m].start.row;)m++;for(var w=r.end.row-r.start.row;m<h&&s[h].end.column>b&&s[h].end.row==w;)h--;for(s=s.slice(m,h+1),m=0,h=s.length;m<h;m++)s[m].start.row+=r.start.row,s[m].end.row+=r.start.row}return s},s.prototype.replace=function(e,t){var r=this.$options,n=this.$assembleRegExp(r);if(r.$isMultiLine)return t;if(n){var i=n.exec(e);if(!i||i[0].length!=e.length)return null;if(r.regExp||(t=t.replace(/\$/g,"$$$$")),t=e.replace(n,t),r.preserveCase){t=t.split("");for(var o=Math.min(e.length,e.length);o--;){var s=e[o];s&&s.toLowerCase()!=s?t[o]=t[o].toUpperCase():t[o]=t[o].toLowerCase()}t=t.join("")}return t}},s.prototype.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var r=e.needle;if(!e.needle)return e.re=!1;e.regExp||(r=n.escapeRegExp(r));var i,o,s,a,l,c=e.caseSensitive?"gm":"gmi";try{new RegExp(r,"u"),e.$supportsUnicodeFlag=!0,c+="u"}catch(t){e.$supportsUnicodeFlag=!1}function u(e,t){return void 0===t&&(t=!0),(s&&o.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w")).test(e)||o.regExp?s&&o.$supportsUnicodeFlag?t?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}if(e.wholeWord&&(i=r,o=e,s=n.supportsLookbehind(),l=(a=Array.from(i))[0],a=a[a.length-1],r=u(l)+i+u(a,!1)),e.$isMultiLine=!t&&/[\n\r]/.test(r),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(r,c);try{var d=new RegExp(r,c)}catch(t){d=!1}return e.re=d},s.prototype.$assembleMultilineRegExp=function(e,t){for(var r=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),n=[],i=0;i<r.length;i++)try{n.push(new RegExp(r[i],t))}catch(e){return!1}return n},s.prototype.$matchIterator=function(e,t){var r,i,o,s,a,l,c,u,d,h=this.$assembleRegExp(t);return!!h&&(r=1==t.backwards,i=0!=t.skipCurrent,o=h.unicode,s=t.range,(a=(a=t.start)||(s?s[r?"end":"start"]:e.selection.getRange())).start&&(a=a[i!=r?"end":"start"]),l=s?s.start.row:0,c=s?s.end.row:e.getLength()-1,d=t.$isMultiLine?(u=h.length,function(t,n,i){var o=r?t-u+1:t;if(!(o<0||o+u>e.getLength())){var s=e.getLine(o);if(t=s.search(h[0]),!(!r&&t<n||-1===t)){for(var a=1;a<u;a++)if(-1==(s=e.getLine(o+a)).search(h[a]))return;var l=s.match(h[u-1])[0].length;if(!(r&&n<l))return!!i(o,t,o+u-1,l)||void 0}}}):r?function(t,r,i){var s,a=e.getLine(t),l=[];for(h.lastIndex=0;s=h.exec(a);){var c=s[0].length,u=s.index;if(!c){if(u>=a.length)break;h.lastIndex=u+=n.skipEmptyMatch(a,u,o)}if(r<s.index+c)break;l.push(s.index,c)}for(var d=l.length-1;0<=d;d-=2){var p=l[d-1];if(i(t,p,t,p+(c=l[d])))return!0}}:function(t,r,i){var s=e.getLine(t);for(h.lastIndex=r;a=h.exec(s);){var a,l=a[0].length;if(i(t,a=a.index,t,a+l))return!0;if(!l&&(h.lastIndex=a+=n.skipEmptyMatch(s,a,o),a>=s.length))return!1}},{forEach:r?function(e){var r=a.row;if(!d(r,a.column,e)){for(r--;l<=r;r--)if(d(r,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(r=c,l=a.row;l<=r;r--)if(d(r,Number.MAX_VALUE,e))return}}:function(e){var r=a.row;if(!d(r,a.column,e)){for(r+=1;r<=c;r++)if(d(r,0,e))return;if(0!=t.wrap)for(r=l,c=a.row;r<=c;r++)if(d(r,0,e))return}}})},t.Search=s}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,r){var n,i,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=e("../lib/keys"),a=e("../lib/useragent"),l=s.KEY_MODS,c=(u.prototype.$init=function(e,t,r){this.platform=t||(a.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=r},u.prototype.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),(this.commands[e.name]=e).bindKey&&this._buildKeyHash(e)},u.prototype.removeCommand=function(e,t){var r,n=e&&("string"==typeof e?e:e.name),i=(e=this.commands[n],t||delete this.commands[n],this.commandKeyBinding);for(r in i){var o,s=i[r];s==e?delete i[r]:Array.isArray(s)&&-1!=(o=s.indexOf(e))&&(s.splice(o,1),1==s.length)&&(i[r]=s[0])}},u.prototype.bindKey=function(e,t,r){if("object"==typeof e&&e&&(null==r&&(r=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach(function(e){var n="",i=(-1!=e.indexOf(" ")&&(e=(i=e.split(/\s+/)).pop(),i.forEach(function(e){e=this.parseKeys(e),e=l[e.hashId]+e.key,n+=(n?" ":"")+e,this._addCommandToBinding(n,"chainKeys")},this),n+=" "),this.parseKeys(e));e=l[i.hashId]+i.key,this._addCommandToBinding(n+e,t,r)},this)},u.prototype._addCommandToBinding=function(e,t,r){var n=this.commandKeyBinding;if(t)if(!n[e]||this.$singleCommand)n[e]=t;else{Array.isArray(n[e])?-1!=(o=n[e].indexOf(t))&&n[e].splice(o,1):n[e]=[n[e]],"number"!=typeof r&&(r=d(t));for(var i=n[e],o=0;o<i.length&&!(r<d(i[o]));o++);i.splice(o,0,t)}else delete n[e]},u.prototype.addCommands=function(e){e&&Object.keys(e).forEach(function(t){var r=e[t];if(r){if("string"==typeof r)return this.bindKey(r,t);"object"==typeof(r="function"==typeof r?{exec:r}:r)&&(r.name||(r.name=t),this.addCommand(r))}},this)},u.prototype.removeCommands=function(e){Object.keys(e).forEach(function(t){this.removeCommand(e[t])},this)},u.prototype.bindKeys=function(e){Object.keys(e).forEach(function(t){this.bindKey(t,e[t])},this)},u.prototype._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},u.prototype.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(e){return e}),r=t.pop(),n=s[r];if(s.FUNCTION_KEYS[n])r=s.FUNCTION_KEYS[n].toLowerCase();else{if(!t.length)return{key:r,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:r.toUpperCase(),hashId:-1}}for(var i=0,o=t.length;o--;){var a=s.KEY_MODS[t[o]];if(null==a)return"undefined"!=typeof console&&console.error("invalid modifier "+t[o]+" in "+e),!1;i|=a}return{key:r,hashId:i}},u.prototype.findKeyCommand=function(e,t){return e=l[e]+t,this.commandKeyBinding[e]},u.prototype.handleKeyboard=function(e,t,r,n){var i,o;if(!(n<0))return i=l[t]+r,o=this.commandKeyBinding[i],e.$keyChain&&(e.$keyChain+=" "+i,o=this.commandKeyBinding[e.$keyChain]||o),!o||"chainKeys"!=o&&"chainKeys"!=o[o.length-1]?(e.$keyChain&&(t&&4!=t||1!=r.length?(-1==t||0<n)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-i.length-1)),{command:o}):(e.$keyChain=e.$keyChain||i,{command:"null"})},u.prototype.getStatusText=function(e,t){return t.$keyChain||""},u);function u(e,t){this.$init(e,t,!1)}function d(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}function h(e,t){return(e=i.call(this,e,t)||this).$singleCommand=!0,e}o(h,i=c),(e=h).call=function(e,t,r){c.prototype.$init.call(e,t,r,!0)},c.call=function(e,t,r){c.prototype.$init.call(e,t,r,!1)},t.HashHandler=e,t.MultiHashHandler=c}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,t,r){var n,i,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=e("../lib/oop"),a=e("../keyboard/hash_handler").MultiHashHandler;function l(e,t){return(t=i.call(this,t,e)||this).byName=t.commands,t.setDefaultHandler("exec",function(e){return e.args?e.command.exec(e.editor,e.args,e.event,!1):e.command.exec(e.editor,{},e.event,!0)}),t}e=e("../lib/event_emitter").EventEmitter,o(l,i=a),l.prototype.exec=function(e,t,r){if(Array.isArray(e)){for(var n=e.length;n--;)if(this.exec(e[n],t,r))return!0;return!1}var i;return"string"==typeof e&&(e=this.commands[e]),!!this.canExecute(e,t)&&((i={editor:t,command:e,args:r}).returnValue=this._emit("exec",i),this._signal("afterExec",i),!1!==i.returnValue)},l.prototype.canExecute=function(e,t){return!!(e="string"==typeof e?this.commands[e]:e)&&!(t&&t.$readOnly&&!e.readOnly||0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))},l.prototype.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},l.prototype.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach(function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])},this)}finally{this.$inReplay=!1}}},l.prototype.trimMacro=function(e){return e.map(function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]?e:e[0]})},o=l,s.implement(o.prototype,e),t.CommandManager=o}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,t,r){var n=e("../lib/lang"),i=e("../config"),o=e("../range").Range;function s(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:s("Ctrl-,","Command-,"),exec:function(e){i.loadModule("ace/ext/settings_menu",function(t){t.init(e),e.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:s("Alt-E","F4"),exec:function(e){i.loadModule("ace/ext/error_marker",function(t){t.showErrorMarker(e,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:s("Alt-Shift-E","Shift-F4"),exec:function(e){i.loadModule("ace/ext/error_marker",function(t){t.showErrorMarker(e,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:s("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:s(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:s("Ctrl-L","Command-L"),exec:function(e,t){"number"!=typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:s("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:s("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:s("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:s("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:s("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:s("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:s("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:s("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:s("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:s("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:s("Ctrl-F","Command-F"),exec:function(e){i.loadModule("ace/ext/searchbox",function(t){t.Search(e)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:s("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:s("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:s("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:s("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:s("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:s("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:s("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:s("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:s("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:s("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:s("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:s("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:s("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:s("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:s("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:s("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:s("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:s("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:s("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:s("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:s(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:s("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:s(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:s("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:s("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:s("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:s("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:s("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:s("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:s("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:s(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty()?e.selection.getLineRange():e.selection.getRange();e._emit("cut",t),t.isEmpty()||e.session.remove(t),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:s("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:s("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:s("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:s("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:s("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:s("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:s("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:s("Ctrl-H","Command-Option-F"),exec:function(e){i.loadModule("ace/ext/searchbox",function(t){t.Search(e,!0)})}},{name:"undo",description:"Undo",bindKey:s("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:s("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:s("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:s("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:s("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:s("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:s("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:s("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:s("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:s("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:s("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:s("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:s("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:s("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:s("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:s("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:s("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:s("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:s("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(n.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:s(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:s("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:s("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:s("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:s(null,null),exec:function(e){e.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:s("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:s("Ctrl+F3","F3"),exec:function(e){e.openLink()}},{name:"joinlines",description:"Join lines",bindKey:s(null,null),exec:function(e){for(var t=(i=e.selection.isBackwards())?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),r=i?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),i=e.session.doc.getLine(t.row).length,s=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,a=e.session.doc.getLine(t.row),l=t.row+1;l<=r.row+1;l++){var c=n.stringTrimLeft(n.stringTrimRight(e.session.doc.getLine(l)));a+=c=0!==c.length?" "+c:c}r.row+1<e.session.doc.getLength()-1&&(a+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new o(t.row,0,r.row+2,0),a),0<s?(e.selection.moveCursorTo(t.row,t.column),e.selection.selectTo(t.row,t.column+s)):(i=e.session.doc.getLine(t.row).length>i?i+1:i,e.selection.moveCursorTo(t.row,i))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(null,null),exec:function(e){var t=e.session.doc.getLength()-1,r=e.session.doc.getLine(t).length,n=e.selection.rangeList.ranges,i=[];n.length<1&&(n=[e.selection.getRange()]);for(var s=0;s<n.length;s++)s!=n.length-1||n[s].end.row===t&&n[s].end.column===r||i.push(new o(n[s].end.row,n[s].end.column,t,r)),0===s?0===n[s].start.row&&0===n[s].start.column||i.push(new o(0,0,n[s].start.row,n[s].start.column)):i.push(new o(n[s-1].end.row,n[s-1].end.column,n[s].start.row,n[s].start.column));for(e.exitMultiSelectMode(),e.clearSelection(),s=0;s<i.length;s++)e.selection.addRange(i[s],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(e){e.selection.clearSelection(),e.navigateLineEnd(),e.insert("\n")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(e){e.selection.clearSelection();var t=e.getCursorPosition();e.selection.moveTo(t.row-1,Number.MAX_VALUE),e.insert("\n"),0===t.row&&e.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(e){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),e.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:s("F1","F1"),exec:function(e){e.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:s(null,null),exec:function(e){e.prompt({$type:"modes"})},readOnly:!0}];for(var a=1;a<9;a++)t.commands.push({name:"foldToLevel"+a,description:"Fold To Level "+a,level:a,exec:function(e){e.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(e,t,r){var n=e("../lib/keys"),i=e("../mouse/default_gutter_handler").GutterTooltip;function o(e){this.editor=e,this.gutterLayer=e.renderer.$gutterLayer,this.element=e.renderer.$gutter,this.lines=e.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new i(this.editor)}o.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},o.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},o.prototype.$onGutterKeyDown=function(e){var t;this.annotationTooltip.isOpen?(e.preventDefault(),e.keyCode===n.escape&&this.annotationTooltip.hideTooltip()):e.target===this.element?e.keyCode==n.enter&&(e.preventDefault(),t=this.editor.getCursorPosition().row,this.editor.isRowVisible(t)||this.editor.scrollToLine(t,!0,!0),setTimeout(function(){var e=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),t=this.$findNearestFoldWidget(e),r=this.$findNearestAnnotation(e);null===t&&null===r||(null===t&&null!==r||(null===t||null!==r)&&Math.abs(r-e)<Math.abs(t-e)?(this.activeRowIndex=r,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex)):(this.activeRowIndex=t,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex)))}.bind(this),10)):(this.$handleGutterKeyboardInteraction(e),setTimeout(function(){this.editor._signal("gutterkeydown",new s(e,this))}.bind(this),10))},o.prototype.$handleGutterKeyboardInteraction=function(e){if(e.keyCode===n.tab)e.preventDefault();else if(e.keyCode===n.escape)e.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;else if(e.keyCode===n.up)switch(e.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp()}else if(e.keyCode===n.down)switch(e.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown()}else if(e.keyCode===n.left)e.preventDefault(),this.$switchLane("annotation");else if(e.keyCode===n.right)e.preventDefault(),this.$switchLane("fold");else if(e.keyCode===n.enter||e.keyCode===n.space)switch(e.preventDefault(),this.activeLane){case"fold":if("start"===this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]){var t=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),e),setTimeout(function(){this.$rowIndexToRow(this.activeRowIndex)!==t&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(t),this.$focusFoldWidget(this.activeRowIndex))}.bind(this),10);break}if("end"===this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)])break;return;case"annotation":var r=this.lines.cells[this.activeRowIndex].element.childNodes[2].getBoundingClientRect(),i=this.annotationTooltip.getElement().style;i.left=r.right+"px",i.top=r.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex))}},o.prototype.$blurGutter=function(){if(null!==this.activeRowIndex)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex)}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},o.prototype.$isFoldWidgetVisible=function(e){var t=this.editor.isRowFullyVisible(this.$rowIndexToRow(e));return e="none"!==this.$getFoldWidget(e).style.display,t&&e},o.prototype.$isAnnotationVisible=function(e){var t=this.editor.isRowFullyVisible(this.$rowIndexToRow(e));return e="none"!==this.$getAnnotation(e).style.display,t&&e},o.prototype.$getFoldWidget=function(e){return this.lines.get(e).element.childNodes[1]},o.prototype.$getAnnotation=function(e){return this.lines.get(e).element.childNodes[2]},o.prototype.$findNearestFoldWidget=function(e){if(this.$isFoldWidgetVisible(e))return e;for(var t=0;0<e-t||e+t<this.lines.getLength()-1;){if(0<=e-++t&&this.$isFoldWidgetVisible(e-t))return e-t;if(e+t<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(e+t))return e+t}return null},o.prototype.$findNearestAnnotation=function(e){if(this.$isAnnotationVisible(e))return e;for(var t=0;0<e-t||e+t<this.lines.getLength()-1;){if(0<=e-++t&&this.$isAnnotationVisible(e-t))return e-t;if(e+t<=this.lines.getLength()-1&&this.$isAnnotationVisible(e+t))return e+t}return null},o.prototype.$focusFoldWidget=function(e){null!=e&&((e=this.$getFoldWidget(e)).classList.add(this.editor.renderer.keyboardFocusClassName),e.focus())},o.prototype.$focusAnnotation=function(e){null!=e&&((e=this.$getAnnotation(e)).classList.add(this.editor.renderer.keyboardFocusClassName),e.focus())},o.prototype.$blurFoldWidget=function(e){(e=this.$getFoldWidget(e)).classList.remove(this.editor.renderer.keyboardFocusClassName),e.blur()},o.prototype.$blurAnnotation=function(e){(e=this.$getAnnotation(e)).classList.remove(this.editor.renderer.keyboardFocusClassName),e.blur()},o.prototype.$moveFoldWidgetUp=function(){for(var e=this.activeRowIndex;0<e;)if(this.$isFoldWidgetVisible(--e))return this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=e,void this.$focusFoldWidget(this.activeRowIndex)},o.prototype.$moveFoldWidgetDown=function(){for(var e=this.activeRowIndex;e<this.lines.getLength()-1;)if(this.$isFoldWidgetVisible(++e))return this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=e,void this.$focusFoldWidget(this.activeRowIndex)},o.prototype.$moveAnnotationUp=function(){for(var e=this.activeRowIndex;0<e;)if(this.$isAnnotationVisible(--e))return this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=e,void this.$focusAnnotation(this.activeRowIndex)},o.prototype.$moveAnnotationDown=function(){for(var e=this.activeRowIndex;e<this.lines.getLength()-1;)if(this.$isAnnotationVisible(++e))return this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=e,void this.$focusAnnotation(this.activeRowIndex)},o.prototype.$switchLane=function(e){switch(e){case"annotation":"annotation"!==this.activeLane&&null!=(t=this.$findNearestAnnotation(this.activeRowIndex))&&(this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=t,this.$focusAnnotation(this.activeRowIndex));break;case"fold":var t;"fold"!==this.activeLane&&null!=(t=this.$findNearestFoldWidget(this.activeRowIndex))&&(this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=t,this.$focusFoldWidget(this.activeRowIndex))}},o.prototype.$rowIndexToRow=function(e){return(e=this.lines.get(e))?e.row:null},o.prototype.$rowToRowIndex=function(e){for(var t=0;t<this.lines.getLength();t++)if(this.lines.get(t).row==e)return t;return null},t.GutterKeyboardHandler=o,a.prototype.getKey=function(){return n.keyCodeToString(this.domEvent.keyCode)},a.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},a.prototype.isInAnnotationLane=function(){return"annotation"===this.gutterKeyboardHandler.activeLane},a.prototype.isInFoldLane=function(){return"fold"===this.gutterKeyboardHandler.activeLane};var s=a;function a(e,t){this.gutterKeyboardHandler=t,this.domEvent=e}t.GutterKeyboardEvent=s}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys"],function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=e("./lib/oop"),o=e("./lib/dom"),s=e("./lib/lang"),a=e("./lib/useragent"),l=e("./keyboard/textinput").TextInput,c=e("./mouse/mouse_handler").MouseHandler,u=e("./mouse/fold_handler").FoldHandler,d=e("./keyboard/keybinding").KeyBinding,h=e("./edit_session").EditSession,p=e("./search").Search,f=e("./range").Range,m=e("./lib/event_emitter").EventEmitter,g=e("./commands/command_manager").CommandManager,y=e("./commands/default_commands").commands,v=e("./config"),b=e("./token_iterator").TokenIterator,w=e("./keyboard/gutter_handler").GutterKeyboardHandler,x=e("./config").nls,A=e("./clipboard"),C=e("./lib/keys");function S(e,t,r){this.session,this.$toDestroy=[];var n=e.getContainerElement();this.container=n,this.renderer=e,this.id="editor"+ ++S.$uid,this.commands=new g(a.isMac?"mac":"win",y),"object"==typeof document&&(this.textInput=new l(e.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new c(this),new u(this)),this.keyBinding=new d(this),this.$search=(new p).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=s.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(e,t){t._$emitInputEvent.schedule(31)}),this.setSession(t||r&&r.session||new h("")),v.resetOptions(this),r&&this.setOptions(r),v._signal("editor",this)}S.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},S.prototype.startOperation=function(e){this.session.startOperation(e)},S.prototype.endOperation=function(e){this.session.endOperation(e)},S.prototype.onStartOperation=function(e){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,e||(this.previousCommand=null)},S.prototype.onEndOperation=function(e){if(this.curOp&&this.session)if(e&&!1===e.returnValue)this.curOp=null;else if(this._signal("beforeEndOperation"),this.curOp){var t=(e=this.curOp.command)&&e.scrollIntoView;if(t){switch(t){case"center-animate":t="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var r=this.selection.getRange(),n=this.renderer.layerConfig;(r.start.row>=n.lastRow||r.end.row<=n.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==t&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},S.prototype.$historyTracker=function(e){var t,r,n,i;this.$mergeUndoDeltas&&(t=this.prevOp,r=this.$mergeableCommands,n=t.command&&e.command.name==t.command.name,"insertstring"==e.command.name?(i=e.args,void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),n=n&&this.mergeNextCommand&&(!/\s/.test(i)||/\s/.test(t.args)),this.mergeNextCommand=!0):n=n&&-1!==r.indexOf(e.command.name),(n=!("always"!=this.$mergeUndoDeltas&&2e3<Date.now()-this.sequenceStartTime)&&n)?this.session.mergeUndoDeltas=!0:-1!==r.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now()))},S.prototype.setKeyboardHandler=function(e,t){var r;e&&"string"==typeof e&&"ace"!=e?(this.$keybindingId=e,r=this,v.loadModule(["keybinding",e],function(n){r.$keybindingId==e&&r.keyBinding.setKeyboardHandler(n&&n.handler),t&&t()})):(this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t())},S.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},S.prototype.setSession=function(e){var t,r;this.session!=e&&(this.curOp&&this.endOperation(),this.curOp={},(t=this.session)&&(this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),this.session.off("startOperation",this.$onStartOperation),this.session.off("endOperation",this.$onEndOperation),(r=this.session.getSelection()).off("changeCursor",this.$onCursorChange),r.off("changeSelection",this.$onSelectionChange)),(this.session=e)?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),t&&(t.$editor=null),e&&e._signal("changeEditor",{editor:this}),e&&(e.$editor=this),e)&&!e.destroyed&&e.bgTokenizer.scheduleStart()},S.prototype.getSession=function(){return this.session},S.prototype.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},S.prototype.getValue=function(){return this.session.getValue()},S.prototype.getSelection=function(){return this.selection},S.prototype.resize=function(e){this.renderer.onResize(e)},S.prototype.setTheme=function(e,t){this.renderer.setTheme(e,t)},S.prototype.getTheme=function(){return this.renderer.getTheme()},S.prototype.setStyle=function(e){this.renderer.setStyle(e)},S.prototype.unsetStyle=function(e){this.renderer.unsetStyle(e)},S.prototype.getFontSize=function(){return this.getOption("fontSize")||o.computedStyle(this.container).fontSize},S.prototype.setFontSize=function(e){this.setOption("fontSize",e)},S.prototype.$highlightBrackets=function(){var e;this.$highlightPending||((e=this).$highlightPending=!0,setTimeout(function(){e.$highlightPending=!1;var t,r,n,i,o=e.session;o&&!o.destroyed&&(o.$bracketHighlight&&(o.$bracketHighlight.markerIds.forEach(function(e){o.removeMarker(e)}),o.$bracketHighlight=null),t=e.getCursorPosition(),r=(r=e.getKeyboardHandler())&&r.$getDirectionForHighlight&&r.$getDirectionForHighlight(e),(r=o.getMatchingBracketRanges(t,r))||(n=new b(o,t.row,t.column).getCurrentToken())&&/\b(?:tag-open|tag-name)/.test(n.type)&&(n=o.getMatchingTags(t))&&(r=[n.openTagName.isEmpty()?n.openTag:n.openTagName,n.closeTagName.isEmpty()?n.closeTag:n.closeTagName]),(r=!r&&o.$mode.getMatching?o.$mode.getMatching(e.session):r)&&(i="ace_bracket",Array.isArray(r)?1==r.length&&(i="ace_error_bracket"):r=[r],2==r.length&&(0==f.comparePoints(r[0].end,r[1].start)?r=[f.fromPoints(r[0].start,r[1].end)]:0==f.comparePoints(r[0].start,r[1].end)&&(r=[f.fromPoints(r[1].start,r[0].end)])),o.$bracketHighlight={ranges:r,markerIds:r.map(function(e){return o.addMarker(e,i,"text")})}),e.getHighlightIndentGuides())&&e.renderer.$textLayer.$highlightIndentGuide()},50))},S.prototype.focus=function(){this.textInput.focus()},S.prototype.isFocused=function(){return this.textInput.isFocused()},S.prototype.blur=function(){this.textInput.blur()},S.prototype.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},S.prototype.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},S.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},S.prototype.onDocumentChange=function(e){var t=this.session.$useWrapMode,r=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,r,t),this._signal("change",e),this.$cursorChange()},S.prototype.onTokenizerUpdate=function(e){e=e.data,this.renderer.updateLines(e.first,e.last)},S.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},S.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},S.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},S.prototype.$updateHighlightActiveLine=function(){var e,t,r=this.getSession();this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(e=!1),!this.renderer.$maxLines||1!==this.session.getLength()||1<this.renderer.$minLines||(e=!1)),r.$highlightLineMarker&&!e?(r.removeMarker(r.$highlightLineMarker.id),r.$highlightLineMarker=null):!r.$highlightLineMarker&&e?((t=new f(e.row,e.column,e.row,1/0)).id=r.addMarker(t,"ace_active-line","screenLine"),r.$highlightLineMarker=t):e&&(r.$highlightLineMarker.start.row=e.row,r.$highlightLineMarker.end.row=e.row,r.$highlightLineMarker.start.column=e.column,r._signal("changeBackMarker"))},S.prototype.onSelectionChange=function(e){var t,r,n=((n=this.session).$selectionMarker&&n.removeMarker(n.$selectionMarker),n.$selectionMarker=null,this.selection.isEmpty()?this.$updateHighlightActiveLine():(t=this.selection.getRange(),r=this.getSelectionStyle(),n.$selectionMarker=n.addMarker(t,"ace_selection",r)),this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp());this.session.highlight(n),this._signal("changeSelection")},S.prototype.$getSelectionHighLightRegexp=function(){var e=this.session;if(!(t=this.getSelectionRange()).isEmpty()&&!t.isMultiLine()){var t,r=t.start.column,n=t.end.column;if(!(5e3<(t=(e=e.getLine(t.start.row)).substring(r,n)).length)&&/[\w\d]/.test(t)&&(t=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:t}),e=e.substring(r-1,n+1),t.test(e)))return t}},S.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},S.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},S.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},S.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},S.prototype.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},S.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},S.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},S.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},S.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},S.prototype.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),r=!1;if(!e&&this.$copyWithEmptySelection){r=!0;for(var n=this.selection.getAllRanges(),i=0;i<n.length;i++){var o=n[i];i&&n[i-1].start.row==o.start.row||(e+=this.session.getLine(o.start.row)+t)}}var s={text:e};return this._signal("copy",s),A.lineMode=!!r&&s.text,s.text},S.prototype.onCopy=function(){this.commands.exec("copy",this)},S.prototype.onCut=function(){this.commands.exec("cut",this)},S.prototype.onPaste=function(e,t){this.commands.exec("paste",this,{text:e,event:t})},S.prototype.$handlePaste=function(e){this._signal("paste",e="string"==typeof e?{text:e}:e);var t=e.text,r=(e=t===A.lineMode,this.session);if(!this.inMultiSelectMode||this.inVirtualSelectionMode)e?r.insert({row:this.selection.lead.row,column:0},t):this.insert(t);else if(e)this.selection.rangeList.ranges.forEach(function(e){r.insert({row:e.start.row,column:0},t)});else{var n=t.split(/\r\n|\r|\n/),i=this.selection.rangeList.ranges;if(e=!(2!=n.length||n[0]&&n[1]),n.length!=i.length||e)return this.commands.exec("insertstring",this,t);for(var o=i.length;o--;){var s=i[o];s.isEmpty()||r.remove(s),r.insert(s.start,n[o])}}},S.prototype.execCommand=function(e,t){return this.commands.exec(e,this,t)},S.prototype.insert=function(e,t){var r,n=this.session,i=n.getMode(),o=this.getCursorPosition(),s=(this.getBehavioursEnabled()&&!t&&(r=i.transformAction(n.getState(o.row),"insertion",this,n,e))&&(e===r.text||this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1),e=r.text),"\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty()?this.session.getOverwrite()&&-1==e.indexOf("\n")&&((s=f.fromPoints(o,o)).end.column+=e.length,this.session.remove(s)):(s=this.getSelectionRange(),o=this.session.remove(s),this.clearSelection()),"\n"!=e&&"\r\n"!=e||(a=n.getLine(o.row),o.column>a.search(/\S|$/)&&(t=a.substr(o.column).search(/\S|$/),n.doc.removeInLine(o.row,o.column,o.column+t))),this.clearSelection(),o.column),a=(t=n.getState(o.row),n.getLine(o.row)),l=i.checkOutdent(t,a,e);n.insert(o,e),r&&r.selection&&(2==r.selection.length?this.selection.setSelectionRange(new f(o.row,s+r.selection[0],o.row,s+r.selection[1])):this.selection.setSelectionRange(new f(o.row+r.selection[0],r.selection[1],o.row+r.selection[2],r.selection[3]))),this.$enableAutoIndent&&(n.getDocument().isNewLine(e)&&(s=i.getNextLineIndent(t,a.slice(0,o.column),n.getTabString()),n.insert({row:o.row+1,column:0},s)),l)&&i.autoOutdent(t,n,o.row)},S.prototype.autoIndent=function(){for(var e=this.session,t=e.getMode(),r=this.selection.isEmpty()?[new f(0,0,e.doc.getLength()-1,0)]:this.selection.getAllRanges(),n="",i="",o=e.getTabString(),s=0;s<r.length;s++)for(var a=r[s].start.row,l=r[s].end.row,c=a;c<=l;c++){0<c&&(n=e.getState(c-1),u=e.getLine(c-1),i=t.getNextLineIndent(n,u,o));var u=e.getLine(c),d=t.$getIndent(u);i!==d&&(0<d.length&&(d=new f(c,0,c,d.length),e.remove(d)),0<i.length)&&e.insert({row:c,column:0},i),t.autoOutdent(n,e,c)}},S.prototype.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}}),e=this.applyComposition.bind(this,e,t),this.selection.rangeCount?this.forEachSelection(e):e(),this.endOperation()},S.prototype.applyComposition=function(e,t){var r;(t.extendLeft||t.extendRight)&&((r=this.selection.getRange()).start.column-=t.extendLeft,r.end.column+=t.extendRight,r.start.column<0&&(r.start.row--,r.start.column+=this.session.getLine(r.start.row).length+1),this.selection.setRange(r),e||r.isEmpty()||this.remove()),!e&&this.selection.isEmpty()||this.insert(e,!0),(t.restoreStart||t.restoreEnd)&&((r=this.selection.getRange()).start.column-=t.restoreStart,r.end.column-=t.restoreEnd,this.selection.setRange(r))},S.prototype.onCommandKey=function(e,t,r){return this.keyBinding.onCommandKey(e,t,r)},S.prototype.setOverwrite=function(e){this.session.setOverwrite(e)},S.prototype.getOverwrite=function(){return this.session.getOverwrite()},S.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},S.prototype.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},S.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},S.prototype.setDragDelay=function(e){this.setOption("dragDelay",e)},S.prototype.getDragDelay=function(){return this.getOption("dragDelay")},S.prototype.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},S.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},S.prototype.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},S.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},S.prototype.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},S.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},S.prototype.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},S.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},S.prototype.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},S.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},S.prototype.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},S.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},S.prototype.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},S.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},S.prototype.setHighlightIndentGuides=function(e){this.renderer.setHighlightIndentGuides(e)},S.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},S.prototype.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},S.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},S.prototype.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},S.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},S.prototype.setReadOnly=function(e){this.setOption("readOnly",e)},S.prototype.getReadOnly=function(){return this.getOption("readOnly")},S.prototype.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},S.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},S.prototype.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},S.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},S.prototype.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},S.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},S.prototype.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},S.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},S.prototype.remove=function(e){var t,r,n;this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight()),e=this.getSelectionRange(),this.getBehavioursEnabled()&&(r=(t=this.session).getState(e.start.row),r=t.getMode().transformAction(r,"deletion",this,t,e),0===e.end.column&&"\n"==(n=t.getTextRange(e))[n.length-1]&&(n=t.getLine(e.end.row),/^\s+$/.test(n))&&(e.end.column=n.length),r)&&(e=r),this.session.remove(e),this.clearSelection()},S.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},S.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},S.prototype.setGhostText=function(e,t){this.renderer.setGhostText(e,t)},S.prototype.removeGhostText=function(){this.renderer.removeGhostText()},S.prototype.transposeLetters=function(){var e,t,r,n;this.selection.isEmpty()&&0!==(t=(e=this.getCursorPosition()).column)&&(n=t<(n=this.session.getLine(e.row)).length?(r=n.charAt(t)+n.charAt(t-1),new f(e.row,t-1,e.row,t+1)):(r=n.charAt(t-1)+n.charAt(t-2),new f(e.row,t-2,e.row,t)),this.session.replace(n,r),this.session.selection.moveToPosition(n.end))},S.prototype.toLowerCase=function(){var e=this.getSelectionRange(),t=(this.selection.isEmpty()&&this.selection.selectWord(),this.getSelectionRange()),r=this.session.getTextRange(t);this.session.replace(t,r.toLowerCase()),this.selection.setSelectionRange(e)},S.prototype.toUpperCase=function(){var e=this.getSelectionRange(),t=(this.selection.isEmpty()&&this.selection.selectWord(),this.getSelectionRange()),r=this.session.getTextRange(t);this.session.replace(t,r.toUpperCase()),this.selection.setSelectionRange(e)},S.prototype.indent=function(){var e=this.session,t=this.getSelectionRange();if(!(t.start.row<t.end.row)){if(t.start.column<t.end.column){var r,n=e.getTextRange(t);if(!/^\s+$/.test(n))return r=this.$getSelectedRows(),void e.indentRows(r.first,r.last,"\t")}var i=e.getLine(t.start.row),o=(n=t.start,e.getTabSize());if(n=e.documentToScreenColumn(n.row,n.column),this.session.getUseSoftTabs())var a=o-n%o,l=s.stringRepeat(" ",a);else{for(a=n%o;" "==i[t.start.column-1]&&a;)t.start.column--,a--;this.selection.setSelectionRange(t),l="\t"}return this.insert(l)}r=this.$getSelectedRows(),e.indentRows(r.first,r.last,"\t")},S.prototype.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},S.prototype.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},S.prototype.sortLines=function(){for(var e=this.$getSelectedRows(),t=this.session,r=[],n=e.first;n<=e.last;n++)r.push(t.getLine(n));r.sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0});var i=new f(0,0,0,0);for(n=e.first;n<=e.last;n++){var o=t.getLine(n);i.start.row=n,i.end.row=n,i.end.column=o.length,t.replace(i,r[n-e.first])}},S.prototype.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},S.prototype.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),r=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,r,e)},S.prototype.getNumberAt=function(e,t){for(var r=/[\-]?[0-9]+(?:\.[0-9]+)?/g,n=(r.lastIndex=0,this.session.getLine(e));r.lastIndex<t;){var i=r.exec(n);if(i.index<=t&&i.index+i[0].length>=t)return{value:i[0],start:i.index,end:i.index+i[0].length}}return null},S.prototype.modifyNumber=function(e){var t,r,n,i=this.selection.getCursor().row,o=this.selection.getCursor().column,s=new f(i,o-1,i,o);s=this.session.getTextRange(s),!isNaN(parseFloat(s))&&isFinite(s)?(s=this.getNumberAt(i,o))&&(n=0<=s.value.indexOf(".")?s.start+s.value.indexOf(".")+1:s.end,t=s.start+s.value.length-n,r=parseFloat(s.value),r*=Math.pow(10,t),n!==s.end&&o<n?e*=Math.pow(10,s.end-o-1):e*=Math.pow(10,s.end-o),n=(r=(r+=e)/Math.pow(10,t)).toFixed(t),e=new f(i,s.start,i,s.end),this.session.replace(e,n),this.moveCursorTo(i,Math.max(s.start+1,o+n.length-s.value.length))):this.toggleWord()},S.prototype.toggleWord=function(){for(var e,t=this.selection.getCursor().row,r=this.selection.getCursor().column,n=(this.selection.selectWord(),this.getSelectedText()),i=this.selection.getWordRange().start.column,o=n.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),a=r-i-1,l=(a<0&&(a=0),0),c=this,u=(n.match(/[A-Za-z0-9_]+/)&&o.forEach(function(r,o){e=l+r.length,l<=a&&a<=e&&(n=r,c.selection.clearSelection(),c.moveCursorTo(t,l+i),c.selection.selectTo(t,e+i)),l=e}),this.$toggleWordPairs),d=0;d<u.length;d++)for(var h=u[d],p=0;p<=1;p++){var f=+!p,m=n.match(new RegExp("^\\s?_?("+s.escapeRegExp(h[p])+")\\s?$","i"));m&&n.match(new RegExp("([_]|^|\\s)("+s.escapeRegExp(m[1])+")($|\\s)","g"))&&(m=n.replace(new RegExp(s.escapeRegExp(h[p]),"i"),function(e){var t=h[f];return e.toUpperCase()==e?t=t.toUpperCase():e.charAt(0).toUpperCase()==e.charAt(0)&&(t=t.substr(0,0)+h[f].charAt(0).toUpperCase()+t.substr(1)),t}),this.insert(m))}},S.prototype.findLinkAt=function(e,t){e=this.session.getLine(e).split(/((?:https?|ftp):\/\/[\S]+)/);var r,i,o,s=t,a=(s<0&&(s=0),0);try{for(var l=n(e),c=l.next();!c.done;c=l.next()){var u=c.value,d=a+u.length;if(a<=s&&s<=d&&u.match(/((?:https?|ftp):\/\/[\S]+)/)){o=u.replace(/[\s:.,'";}\]]+$/,"");break}a=d}}catch(e){r={error:e}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return o},S.prototype.openLink=function(){var e=this.selection.getCursor();return(e=this.findLinkAt(e.row,e.column))&&window.open(e,"_blank"),null!=e},S.prototype.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},S.prototype.duplicateSelection=function(){var e,t=this.selection,r=this.session,n=t.getRange(),i=t.isBackwards();n.isEmpty()?(e=n.start.row,r.duplicateLines(e,e)):(e=i?n.start:n.end,r=r.insert(e,r.getTextRange(n)),n.start=e,n.end=r,t.setSelectionRange(n,i))},S.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},S.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},S.prototype.moveText=function(e,t,r){return this.session.moveText(e,t,r)},S.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},S.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},S.prototype.$moveLines=function(e,t){var r=this.selection;if(!r.inMultiSelectMode||this.inVirtualSelectionMode){var n=r.toOrientedRange(),i=this.$getSelectedRows(n),o=this.session.$moveLines(i.first,i.last,t?0:e);n.moveBy(o=t&&-1==e?0:o,0),r.fromOrientedRange(n)}else{for(var s=r.rangeList.ranges,a=(r.rangeList.detach(this.session),this.inVirtualSelectionMode=!0,0),l=0,c=s.length,u=0;u<c;u++){for(var d=u,h=(s[u].moveBy(a,0),(i=this.$getSelectedRows(s[u])).first),p=i.last;++u<c;){l&&s[u].moveBy(l,0);var f=this.$getSelectedRows(s[u]);if(t&&f.first!=p)break;if(!t&&f.first>p+1)break;p=f.last}for(u--,a=this.session.$moveLines(h,p,t?0:e),t&&-1==e&&(d=u+1);d<=u;)s[d].moveBy(a,0),d++;l+=a=t?a:0}r.fromOrientedRange(r.ranges[0]),r.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},S.prototype.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},S.prototype.onCompositionStart=function(e){this.renderer.showComposition(e)},S.prototype.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},S.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},S.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},S.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},S.prototype.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},S.prototype.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},S.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},S.prototype.$moveByPage=function(e,t){var r=this.renderer,n=this.renderer.layerConfig,i=e*Math.floor(n.height/n.lineHeight);!0===t?this.selection.$moveSelection(function(){this.moveCursorBy(i,0)}):!1===t&&(this.selection.moveCursorBy(i,0),this.selection.clearSelection()),e=r.scrollTop,r.scrollBy(0,i*n.lineHeight),null!=t&&r.scrollCursorIntoView(null,.5),r.animateScrolling(e)},S.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},S.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},S.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},S.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},S.prototype.scrollPageDown=function(){this.$moveByPage(1)},S.prototype.scrollPageUp=function(){this.$moveByPage(-1)},S.prototype.scrollToRow=function(e){this.renderer.scrollToRow(e)},S.prototype.scrollToLine=function(e,t,r,n){this.renderer.scrollToLine(e,t,r,n)},S.prototype.centerSelection=function(){var e=this.getSelectionRange();e={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)},this.renderer.alignCursor(e,.5)},S.prototype.getCursorPosition=function(){return this.selection.getCursor()},S.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},S.prototype.getSelectionRange=function(){return this.selection.getRange()},S.prototype.selectAll=function(){this.selection.selectAll()},S.prototype.clearSelection=function(){this.selection.clearSelection()},S.prototype.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},S.prototype.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},S.prototype.jumpToMatching=function(e,t){var r=this.getCursorPosition(),n=new b(this.session,r.row,r.column),i=n.getCurrentToken(),o=0,s=(i=i&&-1!==i.type.indexOf("tag-name")?n.stepBackward():i)||n.stepForward();if(s){var a,l,c=!1,u={},d=r.column-s.start,h={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(s.value.match(/[{}()\[\]]/g)){for(;d<s.value.length&&!c;d++)if(h[s.value[d]])switch(l=h[s.value[d]]+"."+s.type.replace("rparen","lparen"),isNaN(u[l])&&(u[l]=0),s.value[d]){case"(":case"[":case"{":u[l]++;break;case")":case"]":case"}":u[l]--,-1===u[l]&&(a="bracket",c=!0)}}else-1!==s.type.indexOf("tag-name")&&(isNaN(u[s.value])&&(u[s.value]=0),"<"===i.value&&1<o?u[s.value]++:"</"===i.value&&u[s.value]--,-1===u[s.value])&&(a="tag",c=!0)}while(c||(i=s,o++,s=n.stepForward(),d=0),s&&!c);if(a){if("bracket"===a)!(m=this.session.getBracketRange(r))&&(g=(m=new f(n.getCurrentTokenRow(),n.getCurrentTokenColumn()+d-1,n.getCurrentTokenRow(),n.getCurrentTokenColumn()+d-1)).start,t||g.row===r.row&&Math.abs(g.column-r.column)<2)&&(m=this.session.getBracketRange(g));else if("tag"===a){if(!s||-1===s.type.indexOf("tag-name"))return;var p,m,g=(g=0===(m=new f(n.getCurrentTokenRow(),n.getCurrentTokenColumn()-2,n.getCurrentTokenRow(),n.getCurrentTokenColumn()-2)).compare(r.row,r.column)&&(p=this.session.getMatchingTags(r))?p.openTag.contains(r.row,r.column)?(m=p.closeTag).start:(m=p.openTag,p.closeTag.start.row===r.row&&p.closeTag.start.column===r.column?m.end:m.start):g)||m.start}(g=m&&m.cursor||g)&&(e?m&&t?this.selection.setRange(m):m&&m.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(g.row,g.column):this.selection.moveTo(g.row,g.column))}}},S.prototype.gotoLine=function(e,t,r){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,r)},S.prototype.navigateTo=function(e,t){this.selection.moveTo(e,t)},S.prototype.navigateUp=function(e){var t;if(this.selection.isMultiLine()&&!this.selection.isBackwards())return t=this.selection.anchor.getPosition(),this.moveCursorToPosition(t);this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},S.prototype.navigateDown=function(e){var t;if(this.selection.isMultiLine()&&this.selection.isBackwards())return t=this.selection.anchor.getPosition(),this.moveCursorToPosition(t);this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},S.prototype.navigateLeft=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorLeft();else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},S.prototype.navigateRight=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorRight();else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},S.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},S.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},S.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},S.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},S.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},S.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},S.prototype.replace=function(e,t){t&&this.$search.set(t);var r=0;return(t=this.$search.find(this.session))&&(this.$tryReplace(t,e)&&(r=1),this.selection.setSelectionRange(t),this.renderer.scrollSelectionIntoView(t.start,t.end)),r},S.prototype.replaceAll=function(e,t){t&&this.$search.set(t);var r=this.$search.findAll(this.session),n=0;if(r.length){t=this.getSelectionRange(),this.selection.moveTo(0,0);for(var i=r.length-1;0<=i;--i)this.$tryReplace(r[i],e)&&n++;this.selection.setSelectionRange(t)}return n},S.prototype.$tryReplace=function(e,t){var r=this.session.getTextRange(e);return null!==(t=this.$search.replace(r,t))?(e.end=this.session.replace(e,t),e):null},S.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},S.prototype.find=function(e,t,r){t=t||{},"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&i.mixin(t,e);var n=this.selection.getRange();return null==t.needle&&((e=this.session.getTextRange(n)||this.$search.$options.needle)||(n=this.session.getWordRange(n.start.row,n.start.column),e=this.session.getTextRange(n)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:n}),e=this.$search.find(this.session),t.preventScroll?e:e?(this.revealRange(e,r),e):(t.backwards?n.start=n.end:n.end=n.start,void this.selection.setRange(n))},S.prototype.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},S.prototype.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},S.prototype.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var r=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(r)},S.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},S.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},S.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(e){e.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},S.prototype.setAutoScrollEditorIntoView=function(e){var t,r,n,i,o,s,a;e&&(n=!1,(r=this).$scrollAnchor||(this.$scrollAnchor=document.createElement("div")),(i=this.$scrollAnchor).style.cssText="position:absolute",this.container.insertBefore(i,this.container.firstChild),o=this.on("changeSelection",function(){n=!0}),s=this.renderer.on("beforeRender",function(){n&&(t=r.renderer.container.getBoundingClientRect())}),a=this.renderer.on("afterRender",function(){var e,o,s;n&&t&&(r.isFocused()||r.searchBox&&r.searchBox.isFocused())&&(s=(e=(o=r.renderer).$cursorLayer.$pixelPos).top-(o=o.layerConfig).offset,null!=(n=0<=e.top&&s+t.top<0||!(e.top<o.height&&e.top+t.top+o.lineHeight>window.innerHeight)&&null)&&(i.style.top=s+"px",i.style.left=e.left+"px",i.style.height=o.lineHeight+"px",i.scrollIntoView(n)),n=t=null)}),this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",o),this.renderer.off("afterRender",a),this.renderer.off("beforeRender",s))})},S.prototype.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,o.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},S.prototype.prompt=function(e,t,r){var n=this;v.loadModule("ace/ext/prompt",function(i){i.prompt(n,e,t,r)})},(e=S).$uid=0,e.prototype.curOp=null,e.prototype.prevOp={},e.prototype.$mergeableCommands=["backspace","del","insertstring"],e.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],i.implement(e.prototype,m),v.defineOptions(e.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?I.attach(this):I.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?I.attach(this):I.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||1<this.session.getLength()||0<this.session.getLine(0).length);e&&this.renderer.placeholderNode?(this.renderer.off("afterRender",this.$updatePlaceholder),o.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null):e||this.renderer.placeholderNode?!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||""):(this.renderer.on("afterRender",this.$updatePlaceholder),o.addCssClass(this.container,"ace_hasPlaceholder"),(e=o.createElement("div")).className="ace_placeholder",e.textContent=this.$placeholder||"",this.renderer.placeholderNode=e,this.renderer.content.appendChild(this.renderer.placeholderNode))}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(e){function t(e){e.target==this.renderer.scroller&&e.keyCode===C.enter&&(e.preventDefault(),e=this.getCursorPosition().row,this.isRowVisible(e)||this.scrollToLine(e,!0,!0),this.focus())}var r,n={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(e){e.blur(),e.renderer.scroller.focus()},readOnly:!0};e?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(a.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",x("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",x("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",t.bind(this)),this.commands.addCommand(n),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",x("editor.gutter.aria-roledescription","editor gutter")),this.renderer.$gutter.setAttribute("aria-label",x("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),(r=r||new w(this)).addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",t.bind(this)),this.commands.removeCommand(n),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),r&&r.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(e){this.$textInputAriaLabel=e},initialValue:""},enableMobileMenu:{set:function(e){this.$enableMobileMenu=e},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var I={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,r){return Math.max(t.toString().length,(r.lastRow+1).toString().length,2)*r.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}};t.Editor=e}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(e,t,r){var n=e("../lib/dom");function i(e,t){this.element=e,this.canvasHeight=t||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}i.prototype.moveContainer=function(e){n.translate(this.element,0,-e.firstRowScreen*e.lineHeight%this.canvasHeight-e.offset*this.$offsetCoefficient)},i.prototype.pageChanged=function(e,t){return Math.floor(e.firstRowScreen*e.lineHeight/this.canvasHeight)!==Math.floor(t.firstRowScreen*t.lineHeight/this.canvasHeight)},i.prototype.computeLineTop=function(e,t,r){var n=t.firstRowScreen*t.lineHeight;return n=Math.floor(n/this.canvasHeight),r.documentToScreenRow(e,0)*t.lineHeight-n*this.canvasHeight},i.prototype.computeLineHeight=function(e,t,r){return t.lineHeight*r.getRowLineCount(e)},i.prototype.getLength=function(){return this.cells.length},i.prototype.get=function(e){return this.cells[e]},i.prototype.shift=function(){this.$cacheCell(this.cells.shift())},i.prototype.pop=function(){this.$cacheCell(this.cells.pop())},i.prototype.push=function(e){if(Array.isArray(e)){this.cells.push.apply(this.cells,e);for(var t=n.createFragment(this.element),r=0;r<e.length;r++)t.appendChild(e[r].element);this.element.appendChild(t)}else this.cells.push(e),this.element.appendChild(e.element)},i.prototype.unshift=function(e){if(Array.isArray(e)){this.cells.unshift.apply(this.cells,e);for(var t=n.createFragment(this.element),r=0;r<e.length;r++)t.appendChild(e[r].element);this.element.firstChild?this.element.insertBefore(t,this.element.firstChild):this.element.appendChild(t)}else this.cells.unshift(e),this.element.insertAdjacentElement("afterbegin",e.element)},i.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},i.prototype.$cacheCell=function(e){e&&(e.element.remove(),this.cellCache.push(e))},i.prototype.createCell=function(e,t,r,i){var o,s=this.cellCache.pop();return s||(o=n.createElement("div"),i&&i(o),this.element.appendChild(o),s={element:o,text:"",row:e}),s.row=e,s},t.Lines=i}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(e,t,r){var n=e("../lib/dom"),i=e("../lib/oop"),o=e("../lib/lang"),s=e("../lib/event_emitter").EventEmitter,a=e("./lines").Lines,l=e("../config").nls;function c(e){this.element=n.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new a(this.element),this.$lines.$offsetCoefficient=1}function u(e){var t=document.createTextNode(""),r=(e.appendChild(t),t=n.createElement("span"),e.appendChild(t),t=n.createElement("span"),e.appendChild(t),n.createElement("span"));return t.appendChild(r),e}c.prototype.setSession=function(e){this.session&&this.session.off("change",this.$updateAnnotations),(this.session=e)&&e.on("change",this.$updateAnnotations)},c.prototype.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},c.prototype.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},c.prototype.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var r=e[t],n=r.row,i=(i=this.$annotations[n])||(this.$annotations[n]={text:[],type:[],displayText:[]}),s=(n=r.text,r.type),a=(a=r.text)?o.escapeHTML(a):r.html||"";n=n||r.html||"",-1===i.text.indexOf(a)&&(i.text.push(a),i.type.push(s),i.displayText.push(n)),(a=r.className)?i.className=a:"error"===s?i.className=" ace_error":"security"!==s||/\bace_error\b/.test(i.className)?"warning"!==s||/\bace_(error|security)\b/.test(i.className)?"info"!==s||i.className?"hint"!==s||i.className||(i.className=" ace_hint"):i.className=" ace_info":i.className=" ace_warning":i.className=" ace_security"}},c.prototype.$updateAnnotations=function(e){var t,r;this.$annotations.length&&(t=e.start.row,0!=(r=e.end.row-t))&&("remove"==e.action?this.$annotations.splice(t,1+r,null):((e=new Array(1+r)).unshift(t,1),this.$annotations.splice.apply(this.$annotations,e)))},c.prototype.update=function(e){this.config=e;for(var t=this.session,r=e.firstRow,n=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1),i=(this.oldLastRow=n,this.config=e,this.$lines.moveContainer(e),this.$updateCursorRow(),t.getNextFoldLine(r)),o=i?i.start.row:1/0,s=null,a=-1,l=r;;){if(o<l&&(l=i.end.row+1,o=(i=t.getNextFoldLine(l,i))?i.start.row:1/0),n<l){for(;this.$lines.getLength()>a+1;)this.$lines.pop();break}(s=this.$lines.get(++a))?s.row=l:(s=this.$lines.createCell(l,e,this.session,u),this.$lines.push(s)),this.$renderCell(s,e,i,l),l++}this._signal("afterRender"),this.$updateGutterWidth(e)},c.prototype.$updateGutterWidth=function(e){var t=this.session,r=t.gutterRenderer||this.$renderer,n=t.$firstLineNumber,i=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||t.$useWrapMode)&&(i=t.getLength()+n-1),n=r?r.getWidth(t,i,e):i.toString().length*e.characterWidth,(n+=(r=this.$padding||this.$computePadding()).left+r.right)===this.gutterWidth||isNaN(n)||(this.gutterWidth=n,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",n))},c.prototype.$updateCursorRow=function(){var e;this.$highlightGutterLine&&(e=this.session.selection.getCursor(),this.$cursorRow!==e.row)&&(this.$cursorRow=e.row)},c.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var r=0;r<t.length;r++){var n=t[r];if(n.row>=this.$cursorRow){if(n.row>this.$cursorRow){var i=this.session.getFoldLine(this.$cursorRow);if(!(0<r&&i&&i.start.row==t[r-1].row))break;n=t[r-1]}n.element.className="ace_gutter-active-line "+n.element.className,this.$cursorCell=n;break}}}}},c.prototype.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var r=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),n=this.oldLastRow;if(this.oldLastRow=r,!t||n<e.firstRow)return this.update(e);if(r<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var i=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);0<i;i--)this.$lines.shift();if(r<n)for(i=this.session.getFoldedRowCount(r+1,n);0<i;i--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLines(e,e.firstRow,t.firstRow-1)),n<r&&this.$lines.push(this.$renderLines(e,n+1,r)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},c.prototype.$renderLines=function(e,t,r){for(var n=[],i=t,o=this.session.getNextFoldLine(i),s=o?o.start.row:1/0;s<i&&(i=o.end.row+1,s=(o=this.session.getNextFoldLine(i,o))?o.start.row:1/0),!(r<i);){var a=this.$lines.createCell(i,e,this.session,u);this.$renderCell(a,e,o,i),n.push(a),i++}return n},c.prototype.$renderCell=function(e,t,r,i){var o,s,a=e.element,c=this.session,u=a.childNodes[0],d=a.childNodes[1],h=a.childNodes[2],p=h.firstChild,f=c.$firstLineNumber,m=c.$breakpoints,g=c.$decorations,y=c.gutterRenderer||this.$renderer,v=this.$showFoldWidgets&&c.foldWidgets,b=r?r.start.row:Number.MAX_VALUE,w=t.lineHeight+"px",x=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",A=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",C=(y?y.getText(c,i):i+f).toString();if(this.$highlightGutterLine&&(i==this.$cursorRow||r&&i<this.$cursorRow&&b<=i&&this.$cursorRow<=r.end.row)&&(x+="ace_gutter-active-line ",this.$cursorCell!=e)&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e),m[i]&&(x+=m[i]),g[i]&&(x+=g[i]),this.$annotations[i]&&i!==b&&(x+=this.$annotations[i].className),o=v&&null==(o=v[i])?v[i]=c.getFoldWidget(i):o){if(y="ace_fold-widget ace_"+o,f="start"==o&&i==b&&i<r.end.row){y+=" ace_closed";for(var S="",I=!1,k=i+1;k<=r.end.row;k++)if(this.$annotations[k]){if(" ace_error"===this.$annotations[k].className){I=!0,S=" ace_error_fold";break}" ace_security"===this.$annotations[k].className?(I=!0,S=" ace_security_fold"):" ace_warning"===this.$annotations[k].className&&" ace_security_fold"!==S&&(I=!0,S=" ace_warning_fold")}x+=S}else y+=" ace_open";d.className!=y&&(d.className=y),n.setStyle(d.style,"height",w),n.setStyle(d.style,"display","inline-block"),d.setAttribute("role","button"),d.setAttribute("tabindex","-1"),(m=c.getFoldWidgetRange(i))?d.setAttribute("aria-label",l("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[m.start.row+1,m.end.row+1])):r?d.setAttribute("aria-label",l("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[r.start.row+1,r.end.row+1])):d.setAttribute("aria-label",l("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[i+1])),f?(d.setAttribute("aria-expanded","false"),d.setAttribute("title",l("gutter.code-folding.closed.title","Unfold code"))):(d.setAttribute("aria-expanded","true"),d.setAttribute("title",l("gutter.code-folding.open.title","Fold code")))}else d&&(n.setStyle(d.style,"display","none"),d.setAttribute("tabindex","0"),d.removeAttribute("role"),d.removeAttribute("aria-label"));if(I&&this.$showFoldedAnnotations){switch(h.className="ace_gutter_annotation",p.className=A,p.className+=S,n.setStyle(p.style,"height",w),n.setStyle(h.style,"display","block"),n.setStyle(h.style,"height",w),S){case" ace_error_fold":s=l("gutter.annotation.aria-label.error","Error, read annotations row $0",[C]);break;case" ace_security_fold":s=l("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[C]);break;case" ace_warning_fold":s=l("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[C])}h.setAttribute("aria-label",s),h.setAttribute("tabindex","-1"),h.setAttribute("role","button")}else if(this.$annotations[i]){switch(h.className="ace_gutter_annotation",p.className=A,this.$useSvgGutterIcons?p.className+=this.$annotations[i].className:a.classList.add(this.$annotations[i].className.replace(" ","")),n.setStyle(p.style,"height",w),n.setStyle(h.style,"display","block"),n.setStyle(h.style,"height",w),this.$annotations[i].className){case" ace_error":s=l("gutter.annotation.aria-label.error","Error, read annotations row $0",[C]);break;case" ace_security":s=l("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[C]);break;case" ace_warning":s=l("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[C]);break;case" ace_info":s=l("gutter.annotation.aria-label.info","Info, read annotations row $0",[C]);break;case" ace_hint":s=l("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[C])}h.setAttribute("aria-label",s),h.setAttribute("tabindex","-1"),h.setAttribute("role","button")}else n.setStyle(h.style,"display","none"),h.removeAttribute("aria-label"),h.removeAttribute("role"),h.setAttribute("tabindex","0");return C!==u.data&&(u.data=C),a.className!=x&&(a.className=x),n.setStyle(e.element.style,"height",this.$lines.computeLineHeight(i,t,c)+"px"),n.setStyle(e.element.style,"top",this.$lines.computeLineTop(i,t,c)+"px"),e.text=C,"none"===h.style.display&&"none"===d.style.display?e.element.setAttribute("aria-hidden",!0):e.element.setAttribute("aria-hidden",!1),e},c.prototype.setHighlightGutterLine=function(e){this.$highlightGutterLine=e},c.prototype.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return 0},getText:function(){return""}}},c.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},c.prototype.setShowFoldWidgets=function(e){e?n.addCssClass(this.element,"ace_folding-enabled"):n.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},c.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},c.prototype.$computePadding=function(){var e;return this.element.firstChild?(e=n.computedStyle(this.element.firstChild),this.$padding={},this.$padding.left=(parseInt(e.borderLeftWidth)||0)+(parseInt(e.paddingLeft)||0)+1,this.$padding.right=(parseInt(e.borderRightWidth)||0)+(parseInt(e.paddingRight)||0),this.$padding):{left:0,right:0}},c.prototype.getRegion=function(e){var t=this.$padding||this.$computePadding(),r=this.element.getBoundingClientRect();return e.x<t.left+r.left?"markers":this.$showFoldWidgets&&e.x>r.right-t.right?"foldWidgets":void 0},(e=c).prototype.$fixedWidth=!1,e.prototype.$highlightGutterLine=!0,e.prototype.$renderer="",e.prototype.$showLineNumbers=!0,e.prototype.$showFoldWidgets=!0,i.implement(e.prototype,s),t.Gutter=e}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,t,r){var n=e("../range").Range,i=e("../lib/dom");function o(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)}o.prototype.setPadding=function(e){this.$padding=e},o.prototype.setSession=function(e){this.session=e},o.prototype.setMarkers=function(e){this.markers=e},o.prototype.elt=function(e,t){var r=-1!=this.i&&this.element.childNodes[this.i];r?this.i++:(r=document.createElement("div"),this.element.appendChild(r),this.i=-1),r.style.cssText=t,r.className=e},o.prototype.update=function(e){if(e){var t,r;for(r in this.config=e,this.i=0,this.markers){var n,i,o,s=this.markers[r];s.range?(o=s.range.clipRows(e.firstRow,e.lastRow)).isEmpty()||(o=o.toScreenRange(this.session),s.renderer?(n=this.$getTop(o.start.row,e),i=this.$padding+o.start.column*e.characterWidth,s.renderer(t,o,i,n,e)):"fullLine"==s.type?this.drawFullLineMarker(t,o,s.clazz,e):"screenLine"==s.type?this.drawScreenLineMarker(t,o,s.clazz,e):o.isMultiLine()?"text"==s.type?this.drawTextMarker(t,o,s.clazz,e):this.drawMultiLineMarker(t,o,s.clazz,e):this.drawSingleLineMarker(t,o,s.clazz+" ace_start ace_br15",e)):s.update(t,this,this.session,e)}if(-1!=this.i)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},o.prototype.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},o.prototype.drawTextMarker=function(e,t,r,i,o){for(var s,a=this.session,l=t.start.row,c=t.end.row,u=l,d=0,h=a.getScreenLastRowColumn(u),p=new n(u,t.start.column,u,d);u<=c;u++)p.start.row=p.end.row=u,p.start.column=u==l?t.start.column:a.getRowWrapIndent(u),p.end.column=h,s=d,d=h,h=u+1<c?a.getScreenLastRowColumn(u+1):u==c?0:t.end.column,this.drawSingleLineMarker(e,p,r+(u==l?" ace_start":"")+" ace_br"+((u==l||u==l+1&&t.start.column?1:0)|(s<d?2:0)|(h<d?4:0)|(u==c?8:0)),i,u==c?0:1,o)},o.prototype.drawMultiLineMarker=function(e,t,r,n,i){var o,s=this.$padding,a=n.lineHeight,l=this.$getTop(t.start.row,n),c=s+t.start.column*n.characterWidth;i=i||"",this.session.$bidiHandler.isBidiRow(t.start.row)?((o=t.clone()).end.row=o.start.row,o.end.column=this.session.getLine(o.start.row).length,this.drawBidiSingleLineMarker(e,o,r+" ace_br1 ace_start",n,null,i)):this.elt(r+" ace_br1 ace_start","height:"+a+"px;right:"+s+"px;top:"+l+"px;left:"+c+"px;"+(i||"")),this.session.$bidiHandler.isBidiRow(t.end.row)?((o=t.clone()).start.row=o.end.row,o.start.column=0,this.drawBidiSingleLineMarker(e,o,r+" ace_br12",n,null,i)):(l=this.$getTop(t.end.row,n),c=t.end.column*n.characterWidth,this.elt(r+" ace_br12","height:"+a+"px;width:"+c+"px;top:"+l+"px;left:"+s+"px;"+(i||""))),(a=(t.end.row-t.start.row-1)*n.lineHeight)<=0||(l=this.$getTop(t.start.row+1,n),e=(t.start.column?1:0)|(t.end.column?0:8),this.elt(r+(e?" ace_br"+e:""),"height:"+a+"px;right:"+s+"px;top:"+l+"px;left:"+s+"px;"+(i||"")))},o.prototype.drawSingleLineMarker=function(e,t,r,n,i,o){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,r,n,i,o);e=n.lineHeight,i=(t.end.column+(i||0)-t.start.column)*n.characterWidth;var s=this.$getTop(t.start.row,n);t=this.$padding+t.start.column*n.characterWidth,this.elt(r,"height:"+e+"px;width:"+i+"px;top:"+s+"px;left:"+t+"px;"+(o||""))},o.prototype.drawBidiSingleLineMarker=function(e,t,r,n,i,o){var s=n.lineHeight,a=this.$getTop(t.start.row,n),l=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach(function(e){this.elt(r,"height:"+s+"px;width:"+(e.width+(i||0))+"px;top:"+a+"px;left:"+(l+e.left)+"px;"+(o||""))},this)},o.prototype.drawFullLineMarker=function(e,t,r,n,i){var o=this.$getTop(t.start.row,n),s=n.lineHeight;t.start.row!=t.end.row&&(s+=this.$getTop(t.end.row,n)-o),this.elt(r,"height:"+s+"px;top:"+o+"px;left:0;right:0;"+(i||""))},o.prototype.drawScreenLineMarker=function(e,t,r,n,i){t=this.$getTop(t.start.row,n),n=n.lineHeight,this.elt(r,"height:"+n+"px;top:"+t+"px;left:0;right:0;"+(i||""))},(e=o).prototype.$padding=0,t.Marker=e}),ace.define("ace/layer/text_util",["require","exports","module"],function(e,t,r){var n=new Set(["text","rparen","lparen"]);t.isTextToken=function(e){return n.has(e)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(e,t,r){var n=e("../lib/oop"),i=e("../lib/dom"),o=e("../lib/lang"),s=e("./lines").Lines,a=e("../lib/event_emitter").EventEmitter,l=e("../config").nls,c=e("./text_util").isTextToken;function u(e){this.dom=i,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)}u.prototype.$updateEolChar=function(){var e="\n"==(e=this.session.doc).getNewLineCharacter()&&"windows"!=e.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=e)return this.EOL_CHAR=e,!0},u.prototype.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},u.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},u.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},u.prototype.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},u.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},u.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},u.prototype.setSession=function(e){(this.session=e)&&this.$computeTabString()},u.prototype.setShowInvisibles=function(e){return this.showInvisibles!=e&&("string"==typeof(this.showInvisibles=e)?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},u.prototype.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},u.prototype.setHighlightIndentGuides=function(e){return this.$highlightIndentGuides!==e&&(this.$highlightIndentGuides=e)},u.prototype.$computeTabString=function(){for(var e,t,r,n,i,s,a=this.session.getTabSize(),l=(this.tabSize=a,this.$tabStrings=[0]),c=1;c<a+1;c++)this.showTabs?((s=this.dom.createElement("span")).className="ace_invisible ace_invisible_tab",s.textContent=o.stringRepeat(this.TAB_CHAR,c),l.push(s)):l.push(this.dom.createTextNode(o.stringRepeat(" ",c),this.element));this.displayIndentGuides&&(this.$indentGuideRe=/\s\S| \t|\t |\s$/,e="ace_indent-guide",t=this.showSpaces?" ace_invisible ace_invisible_space":"",r=this.showSpaces?o.stringRepeat(this.SPACE_CHAR,this.tabSize):o.stringRepeat(" ",this.tabSize),n=this.showTabs?" ace_invisible ace_invisible_tab":"",i=this.showTabs?o.stringRepeat(this.TAB_CHAR,this.tabSize):r,(s=this.dom.createElement("span")).className=e+t,s.textContent=r,this.$tabStrings[" "]=s,(s=this.dom.createElement("span")).className=e+n,s.textContent=i,this.$tabStrings["\t"]=s)},u.prototype.updateLines=function(e,t,r){if(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)return this.update(e);this.config=e;for(var n=Math.max(t,e.firstRow),i=Math.min(r,e.lastRow),o=this.element.childNodes,s=0,a=e.firstRow;a<n;a++){if(l=this.session.getFoldLine(a)){if(l.containsRow(n)){n=l.start.row;break}a=l.end.row}s++}for(var l,c=!1,u=(a=n,(l=this.session.getNextFoldLine(a))?l.start.row:1/0);u<a&&(a=l.end.row+1,u=(l=this.session.getNextFoldLine(a,l))?l.start.row:1/0),!(i<a);){var d,h=o[s++];h&&(this.dom.removeChildren(h),this.$renderLine(h,a,a==u&&l),c&&(h.style.top=this.$lines.computeLineTop(a,e,this.session)+"px"),d=e.lineHeight*this.session.getRowLength(a)+"px",h.style.height!=d)&&(c=!0,h.style.height=d),a++}if(c)for(;s<this.$lines.cells.length;){var p=this.$lines.cells[s++];p.element.style.top=this.$lines.computeLineTop(p.row,e,this.session)+"px"}},u.prototype.scrollLines=function(e){var t=this.config;if(this.config=e,this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var r=e.lastRow,n=t?t.lastRow:-1;if(!t||n<e.firstRow)return this.update(e);if(r<t.firstRow)return this.update(e);if(!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var i=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);0<i;i--)this.$lines.shift();if(t.lastRow>e.lastRow)for(i=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);0<i;i--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLinesFragment(e,e.firstRow,t.firstRow-1)),e.lastRow>t.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow)),this.$highlightIndentGuide()},u.prototype.$renderLinesFragment=function(e,t,r){for(var n=[],o=t,s=this.session.getNextFoldLine(o),a=s?s.start.row:1/0;a<o&&(o=s.end.row+1,a=(s=this.session.getNextFoldLine(o,s))?s.start.row:1/0),!(r<o);){var l=this.$lines.createCell(o,e,this.session),c=l.element;this.dom.removeChildren(c),i.setStyle(c.style,"height",this.$lines.computeLineHeight(o,e,this.session)+"px"),i.setStyle(c.style,"top",this.$lines.computeLineTop(o,e,this.session)+"px"),this.$renderLine(c,o,o==a&&s),this.$useLineGroups()?c.className="ace_line_group":c.className="ace_line",n.push(l),o++}return n},u.prototype.update=function(e){this.$lines.moveContainer(e);for(var t=(this.config=e).firstRow,r=e.lastRow,n=this.$lines;n.getLength();)n.pop();n.push(this.$renderLinesFragment(e,t,r))},u.prototype.$renderToken=function(e,t,r,n){for(var i,s,a=this,u=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069\u2060\u2061\u2062\u2063\u2064\u206A\u206B\u206B\u206C\u206D\u206E\u206F]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,d=this.dom.createFragment(this.element),h=0;i=u.exec(n);){var p,f,m=i[1],g=i[2],y=i[3],v=i[4],b=i[5];!a.showSpaces&&g||(p=h!=i.index?n.slice(h,i.index):"",h=i.index+i[0].length,p&&d.appendChild(this.dom.createTextNode(p,this.element)),m?(p=a.session.getScreenTabSize(t+i.index),d.appendChild(a.$tabStrings[p].cloneNode(!0)),t+=p-1):g?a.showSpaces?((f=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",f.textContent=o.stringRepeat(a.SPACE_CHAR,g.length),d.appendChild(f)):d.appendChild(this.dom.createTextNode(g,this.element)):y?((f=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",f.textContent=o.stringRepeat(a.SPACE_CHAR,y.length),d.appendChild(f)):v?(t+=1,(f=this.dom.createElement("span")).style.width=2*a.config.characterWidth+"px",f.className=a.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",f.textContent=a.showSpaces?a.SPACE_CHAR:v,d.appendChild(f)):b&&(t+=1,(f=this.dom.createElement("span")).style.width=2*a.config.characterWidth+"px",f.className="ace_cjk",f.textContent=b,d.appendChild(f)))}return d.appendChild(this.dom.createTextNode(h?n.slice(h):n,this.element)),c(r.type)?e.appendChild(d):(s="ace_"+r.type.replace(/\./g," ace_"),f=this.dom.createElement("span"),"fold"==r.type&&(f.style.width=r.value.length*this.config.characterWidth+"px",f.setAttribute("title",l("inline-fold.closed.title","Unfold code"))),f.className=s,f.appendChild(d),e.appendChild(f)),t+n.length},u.prototype.renderIndentGuide=function(e,t,r){var n=t.search(this.$indentGuideRe);if(!(n<=0||r<=n)){if(" "==t[0]){for(var i=(n-=n%this.tabSize)/this.tabSize,o=0;o<i;o++)e.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),t.substr(n)}if("\t"==t[0]){for(o=0;o<n;o++)e.appendChild(this.$tabStrings["\t"].cloneNode(!0));return this.$highlightIndentGuide(),t.substr(n)}this.$highlightIndentGuide()}return t},u.prototype.$highlightIndentGuide=function(){if(this.$highlightIndentGuides&&this.displayIndentGuides){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var e=this.session.doc.$lines;if(e){var t=this.session.selection.getCursor(),r=/^\s*/.exec(this.session.doc.getLine(t.row))[0].length,n=Math.floor(r/this.tabSize);if(this.$highlightIndentGuideMarker={indentLevel:n,start:t.row},this.session.$bracketHighlight)for(var i=this.session.$bracketHighlight.ranges,o=0;o<i.length;o++)if(t.row!==i[o].start.row){this.$highlightIndentGuideMarker.end=i[o].start.row+1,t.row>i[o].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}if(!this.$highlightIndentGuideMarker.end&&""!==e[t.row]&&t.column===e[t.row].length)for(this.$highlightIndentGuideMarker.dir=1,o=t.row+1;o<e.length;o++){var s=e[o],a=/^\s*/.exec(s)[0].length;if(""!==s&&(this.$highlightIndentGuideMarker.end=o,a<=r))break}this.$renderHighlightIndentGuide()}}},u.prototype.$clearActiveIndentGuide=function(){this.element.querySelectorAll(".ace_indent-guide-active").forEach(function(e){e.classList.remove("ace_indent-guide-active")})},u.prototype.$setIndentGuideActive=function(e,t){if(""!==this.session.doc.getLine(e.row)){var r=e.element;if(e.element.classList&&e.element.classList.contains("ace_line_group")){if(!(0<e.element.childNodes.length))return;r=e.element.childNodes[0]}(e=r.childNodes)&&(r=e[t-1])&&r.classList&&r.classList.contains("ace_indent-guide")&&r.classList.add("ace_indent-guide-active")}},u.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var e=this.$lines.cells,t=(this.$clearActiveIndentGuide(),this.$highlightIndentGuideMarker.indentLevel);if(0!==t)if(1===this.$highlightIndentGuideMarker.dir)for(var r=0;r<e.length;r++){var n=e[r];if(this.$highlightIndentGuideMarker.end&&n.row>=this.$highlightIndentGuideMarker.start+1){if(n.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(n,t)}}else for(r=e.length-1;0<=r;r--)if(n=e[r],this.$highlightIndentGuideMarker.end&&n.row<this.$highlightIndentGuideMarker.start){if(n.row<this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(n,t)}}},u.prototype.$createLineElement=function(e){var t=this.dom.createElement("div");return t.className="ace_line",t.style.height=this.config.lineHeight+"px",t},u.prototype.$renderWrappedLine=function(e,t,r){var n=0,i=0,s=r[0],a=0,l=this.$createLineElement();e.appendChild(l);for(var c=0;c<t.length;c++){var u=t[c],d=u.value;if(0==c&&this.displayIndentGuides){if(n=d.length,!(d=this.renderIndentGuide(l,d,s)))continue;n-=d.length}if(n+d.length<s)a=this.$renderToken(l,a,u,d),n+=d.length;else{for(;n+d.length>=s;)a=this.$renderToken(l,a,u,d.substring(0,s-n)),d=d.substring(s-n),n=s,l=this.$createLineElement(),e.appendChild(l),l.appendChild(this.dom.createTextNode(o.stringRepeat(" ",r.indent),this.element)),a=0,s=r[++i]||Number.MAX_VALUE;0!=d.length&&(n+=d.length,a=this.$renderToken(l,a,u,d))}}r[r.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(l,a,null,"",!0)},u.prototype.$renderSimpleLine=function(e,t){for(var r=0,n=0;n<t.length;n++){var i=t[n],o=i.value;if(0!=n||!this.displayIndentGuides||(o=this.renderIndentGuide(e,o))){if(r+o.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,r,i,o);r=this.$renderToken(e,r,i,o)}}},u.prototype.$renderOverflowMessage=function(e,t,r,n,i){r&&this.$renderToken(e,t,r,n.slice(0,this.MAX_LINE_LENGTH-t)),(r=this.dom.createElement("span")).className="ace_inline_button ace_keyword ace_toggle_wrap",r.textContent=i?"<hide>":"<click to see more...>",e.appendChild(r)},u.prototype.$renderLine=function(e,t,r){var n,i,o=e;(n=(r=r||0==r?r:this.session.getFoldLine(t))?this.$getFoldLineTokens(t,r):this.session.getTokens(t)).length?(i=this.session.getRowSplitData(t))&&i.length?(this.$renderWrappedLine(e,n,i),o=e.lastChild):(o=e,this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o)),this.$renderSimpleLine(o,n)):this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o)),this.showEOL&&o&&(r&&(t=r.end.row),(i=this.dom.createElement("span")).className="ace_invisible ace_invisible_eol",i.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,o.appendChild(i))},u.prototype.$getFoldLineTokens=function(e,t){var r=this.session,n=[],i=r.getTokens(e);return t.walk(function(e,t,o,s,a){if(null!=e)n.push({type:"fold",value:e});else if((i=a?r.getTokens(t):i).length){for(var l,c=i,u=s,d=o,h=0,p=0;p+c[h].value.length<u;)if(p+=c[h].value.length,++h==c.length)return;for(p!=u&&((l=c[h].value.substring(u-p)).length>d-u&&(l=l.substring(0,d-u)),n.push({type:c[h].type,value:l}),p=u+l.length,h+=1);p<d&&h<c.length;)(l=c[h].value).length+p>d?n.push({type:c[h].type,value:l.substring(0,d-p)}):n.push(c[h]),p+=l.length,h+=1}},t.end.row,this.session.getLine(t.end.row).length),n},u.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},(e=u).prototype.EOF_CHAR="¶",e.prototype.EOL_CHAR_LF="¬",e.prototype.EOL_CHAR_CRLF="¤",e.prototype.EOL_CHAR=e.prototype.EOL_CHAR_LF,e.prototype.TAB_CHAR="—",e.prototype.SPACE_CHAR="·",e.prototype.$padding=0,e.prototype.MAX_LINE_LENGTH=1e4,e.prototype.showInvisibles=!1,e.prototype.showSpaces=!1,e.prototype.showTabs=!1,e.prototype.showEOL=!1,e.prototype.displayIndentGuides=!0,e.prototype.$highlightIndentGuides=!0,e.prototype.$tabStrings=[],e.prototype.destroy={},e.prototype.onChangeTabSize=e.prototype.$computeTabString,n.implement(e.prototype,a),t.Text=e}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,t,r){var n=e("../lib/dom");function i(e){this.element=n.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),n.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}i.prototype.$updateOpacity=function(e){for(var t=this.cursors,r=t.length;r--;)n.setStyle(t[r].style,"opacity",e?"":"0")},i.prototype.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&n.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},i.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,n.removeCssClass(this.element,"ace_animate-blinking")},i.prototype.setPadding=function(e){this.$padding=e},i.prototype.setSession=function(e){this.session=e},i.prototype.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},i.prototype.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},i.prototype.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,n.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},i.prototype.addCursor=function(){var e=n.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},i.prototype.removeCursor=function(){var e;if(1<this.cursors.length)return(e=this.cursors.pop()).parentNode.removeChild(e),e},i.prototype.hideCursor=function(){this.isVisible=!1,n.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},i.prototype.showCursor=function(){this.isVisible=!0,n.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},i.prototype.restartTimer=function(){var e,t=this.$updateCursors;clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,n.removeCssClass(this.element,"ace_smooth-blinking")),t(!0),this.isBlinking&&this.blinkInterval&&this.isVisible?(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&n.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),n.HAS_CSS_ANIMATION?this.$startCssAnimation():(e=function(){this.timeoutId=setTimeout(function(){t(!1)},.6*this.blinkInterval)}.bind(this),this.intervalId=setInterval(function(){t(!0),e()},this.blinkInterval),e())):this.$stopCssAnimation()},i.prototype.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e=e||this.session.selection.getCursor();var r=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(r.row,e.row)?this.session.$bidiHandler.getPosLeft(r.column):r.column*this.config.characterWidth),top:(r.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},i.prototype.isCursorInView=function(e,t){return 0<=e.top&&e.top<t.maxHeight},i.prototype.update=function(e){this.config=e;for(var t=this.session.$selectionMarkers,r=0,i=0,o=(r=0,(t=void 0!==t&&0!==t.length?t:[{cursor:null}]).length);r<o;r++){var s,a,l=this.getPixelPosition(t[r].cursor,!0);(l.top>e.height+e.offset||l.top<0)&&1<r||(a=(s=this.cursors[i++]||this.addCursor()).style,this.drawCursor?this.drawCursor(s,l,e,t[r],this.session):this.isCursorInView(l,e)?(n.setStyle(a,"display","block"),n.translate(s,l.left,l.top),n.setStyle(a,"width",Math.round(e.characterWidth)+"px"),n.setStyle(a,"height",e.lineHeight+"px")):n.setStyle(a,"display","none"))}for(;this.cursors.length>i;)this.removeCursor();var c=this.session.getOverwrite();this.$setOverwrite(c),this.$pixelPos=l,this.restartTimer()},i.prototype.$setOverwrite=function(e){e!=this.overwrite&&((this.overwrite=e)?n.addCssClass(this.element,"ace_overwrite-cursors"):n.removeCssClass(this.element,"ace_overwrite-cursors"))},i.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},(e=i).prototype.$padding=0,e.prototype.drawCursor=null,t.Cursor=e}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,t,r){var n,i,o,s=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=e("./lib/oop"),l=e("./lib/dom"),c=e("./lib/event"),u=(e=e("./lib/event_emitter").EventEmitter,d.prototype.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1},d);function d(e,t){this.element=l.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+t,this.inner=l.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,c.addListener(this.element,"scroll",this.onScroll.bind(this)),c.addListener(this.element,"mousedown",c.preventDefault)}function h(e,t){var r=i.call(this,e,"-v")||this;return r.scrollTop=0,r.scrollHeight=0,t.$scrollbarWidth=r.width=l.scrollbarWidth(e.ownerDocument),r.inner.style.width=r.element.style.width=(r.width||15)+5+"px",r.$minWidth=0,r}function p(e,t){return(e=o.call(this,e,"-h")||this).scrollLeft=0,e.height=t.$scrollbarWidth,e.inner.style.height=e.element.style.height=(e.height||15)+5+"px",e}a.implement(u.prototype,e),s(h,i=u),h.prototype.onScroll=function(){var e;this.skipEvent||(this.scrollTop=this.element.scrollTop,1!=this.coeff&&(e=this.element.clientHeight/this.scrollHeight,this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)),this._emit("scroll",{data:this.scrollTop})),this.skipEvent=!1},h.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},h.prototype.setHeight=function(e){this.element.style.height=e+"px"},h.prototype.setScrollHeight=function(e){32768<(this.scrollHeight=e)?(this.coeff=32768/e,e=32768):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},h.prototype.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)},(a=h).prototype.setInnerHeight=a.prototype.setScrollHeight,s(p,o=u),p.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},p.prototype.getHeight=function(){return this.isVisible?this.height:0},p.prototype.setWidth=function(e){this.element.style.width=e+"px"},p.prototype.setInnerWidth=function(e){this.inner.style.width=e+"px"},p.prototype.setScrollWidth=function(e){this.inner.style.width=e+"px"},p.prototype.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)},e=p,t.ScrollBar=a,t.ScrollBarV=a,t.ScrollBarH=e,t.VScrollBar=a,t.HScrollBar=e}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,t,r){var n,i,o,s=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=e("./lib/oop"),l=e("./lib/dom"),c=e("./lib/event"),u=(e=e("./lib/event_emitter").EventEmitter,l.importCssString(".ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{\n position: absolute;\n background: rgba(128, 128, 128, 0.6);\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n border: 1px solid #bbb;\n border-radius: 2px;\n z-index: 8;\n}\n.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {\n position: absolute;\n z-index: 6;\n background: none;\n overflow: hidden!important;\n}\n.ace_editor>.ace_sb-v {\n z-index: 6;\n right: 0;\n top: 0;\n width: 12px;\n}\n.ace_editor>.ace_sb-v div {\n z-index: 8;\n right: 0;\n width: 100%;\n}\n.ace_editor>.ace_sb-h {\n bottom: 0;\n left: 0;\n height: 12px;\n}\n.ace_editor>.ace_sb-h div {\n bottom: 0;\n height: 100%;\n}\n.ace_editor>.ace_sb_grabbed {\n z-index: 8;\n background: #000;\n}","ace_scrollbar.css",!1),d.prototype.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1},d);function d(e,t){this.element=l.createElement("div"),this.element.className="ace_sb"+t,this.inner=l.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,c.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}function h(e,t){var r=i.call(this,e,"-v")||this;return r.scrollTop=0,r.scrollHeight=0,r.parent=e,r.width=r.VScrollWidth,r.renderer=t,r.inner.style.width=r.element.style.width=(r.width||15)+"px",r.$minWidth=0,r}function p(e,t){return(e=o.call(this,e,"-h")||this).scrollLeft=0,e.scrollWidth=0,e.height=e.HScrollHeight,e.inner.style.height=e.element.style.height=(e.height||12)+"px",e.renderer=t,e}a.implement(u.prototype,e),s(h,i=u),h.prototype.onMouseDown=function(e,t){var r,n,i,o,s;if("mousedown"===e&&0===c.getButton(t)&&2!==t.detail)return t.target===this.inner?(r=this,n=t.clientY,i=t.clientY,o=this.thumbTop,c.capture(this.inner,function(e){n=e.clientY},function(){clearInterval(s)}),s=setInterval(function(){var e;void 0!==n&&(e=r.scrollTopFromThumbTop(o+n-i))!==r.scrollTop&&r._emit("scroll",{data:e})},20)):(e=t.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2,this._emit("scroll",{data:this.scrollTopFromThumbTop(e)})),c.preventDefault(t)},h.prototype.getHeight=function(){return this.height},h.prototype.scrollTopFromThumbTop=function(e){return e=e*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight),(e>>=0)<0?e=0:e>this.pageHeight-this.viewHeight&&(e=this.pageHeight-this.viewHeight),e},h.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},h.prototype.setHeight=function(e){this.height=Math.max(0,e),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},h.prototype.setScrollHeight=function(e,t){(this.pageHeight!==e||t)&&(this.pageHeight=e,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight)&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop}))},h.prototype.setScrollTop=function(e){this.scrollTop=e,this.thumbTop=(e=e<0?0:e)*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},(a=h).prototype.setInnerHeight=a.prototype.setScrollHeight,s(p,o=u),p.prototype.onMouseDown=function(e,t){var r,n,i,o,s;if("mousedown"===e&&0===c.getButton(t)&&2!==t.detail)return t.target===this.inner?(r=this,n=t.clientX,i=t.clientX,o=this.thumbLeft,c.capture(this.inner,function(e){n=e.clientX},function(){clearInterval(s)}),s=setInterval(function(){var e;void 0!==n&&(e=r.scrollLeftFromThumbLeft(o+n-i))!==r.scrollLeft&&r._emit("scroll",{data:e})},20)):(e=t.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2,this._emit("scroll",{data:this.scrollLeftFromThumbLeft(e)})),c.preventDefault(t)},p.prototype.getHeight=function(){return this.isVisible?this.height:0},p.prototype.scrollLeftFromThumbLeft=function(e){return e=e*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth),(e>>=0)<0?e=0:e>this.pageWidth-this.viewWidth&&(e=this.pageWidth-this.viewWidth),e},p.prototype.setWidth=function(e){this.width=Math.max(0,e),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},p.prototype.setScrollWidth=function(e,t){(this.pageWidth!==e||t)&&(this.pageWidth=e,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth)&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft}))},p.prototype.setScrollLeft=function(e){this.scrollLeft=e,this.thumbLeft=(e=e<0?0:e)*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},(e=p).prototype.setInnerWidth=e.prototype.setScrollWidth,t.ScrollBar=a,t.ScrollBarV=a,t.ScrollBarH=e,t.VScrollBar=a,t.HScrollBar=e}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,t,r){var n=e("./lib/event");function i(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var r=this;this._flush=function(e){r.pending=!1;var t=r.changes;t&&(n.blockIdle(100),r.changes=0,r.onRender(t)),r.changes?r.$recursionLimit--<0||r.schedule():r.$recursionLimit=2}}i.prototype.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(n.nextFrame(this._flush),this.pending=!0)},i.prototype.clear=function(e){var t=this.changes;return this.changes=0,t},t.RenderLoop=i}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(e,t,r){var n=e("../lib/oop"),i=e("../lib/dom"),o=e("../lib/lang"),s=e("../lib/event"),a=e("../lib/useragent"),l=(e=e("../lib/event_emitter").EventEmitter,"function"==typeof ResizeObserver),c=(u.prototype.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",a.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},u.prototype.checkForSizeChanges=function(e){var t;!(e=void 0===e?this.$measureSizes():e)||this.$characterSize.width===e.width&&this.$characterSize.height===e.height||(this.$measureNode.style.fontWeight="bold",t=this.$measureSizes(),this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e}))},u.prototype.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver(function(t){e.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},u.prototype.$pollSizeChanges=function(){var e;return this.$pollSizeChangesTimer||this.$observer?this.$pollSizeChangesTimer:(e=this).$pollSizeChangesTimer=s.onIdle(function t(){e.checkForSizeChanges(),s.onIdle(t,500)},500)},u.prototype.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},u.prototype.$measureSizes=function(e){return 0===(e={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/512}).width||0===e.height?null:e},u.prototype.$measureCharWidth=function(e){return this.$main.textContent=o.stringRepeat(e,512),this.$main.getBoundingClientRect().width/512},u.prototype.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t?this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width:t},u.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},u.prototype.$getZoom=function(e){return e&&e.parentElement?(Number(window.getComputedStyle(e).zoom)||1)*this.$getZoom(e.parentElement):1},u.prototype.$initTransformMeasureNodes=function(){function e(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]}this.els=i.buildDom([e(0,0),e(200,0),e(0,200),e(200,200)],this.el)},u.prototype.transformCoordinates=function(e,t){function r(e,t,r){var n=e[1]*t[0]-e[0]*t[1];return[(-t[1]*r[0]+t[0]*r[1])/n,(+e[1]*r[0]-e[0]*r[1])/n]}function n(e,t){return[e[0]-t[0],e[1]-t[1]]}function i(e,t){return[e[0]+t[0],e[1]+t[1]]}function o(e,t){return[e*t[0],e*t[1]]}function s(e){return[(e=e.getBoundingClientRect()).left,e.top]}e=e&&o(1/this.$getZoom(this.el),e),this.els||this.$initTransformMeasureNodes();var a,l,c=s(this.els[0]),u=s(this.els[1]),d=s(this.els[2]);return u=o(1+(l=r(n(l=s(this.els[3]),u),n(l,d),n(i(u,d),i(l,c))))[0],n(u,c)),d=o(1+l[1],n(d,c)),t?(a=l[0]*t[0]/200+l[1]*t[1]/200+1,t=i(o(t[0],u),o(t[1],d)),i(o(1/a/200,t),c)):(a=n(e,c),t=r(n(u,o(l[0],a)),n(d,o(l[1],a)),a),o(200,t))},u);function u(e){this.el=i.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=i.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=i.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=o.stringRepeat("X",512),this.$characterSize={width:0,height:0},l?this.$addObserver():this.checkForSizeChanges()}c.prototype.$characterSize={width:0,height:0},n.implement(c.prototype,e),t.FontMetrics=c}),ace.define("ace/css/editor-css",["require","exports","module"],function(e,t,r){r.exports='\n.ace_br1 {border-top-left-radius : 3px;}\n.ace_br2 {border-top-right-radius : 3px;}\n.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}\n.ace_br4 {border-bottom-right-radius: 3px;}\n.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}\n.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}\n.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}\n.ace_br8 {border-bottom-left-radius : 3px;}\n.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}\n.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}\n.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n\n\n.ace_editor {\n position: relative;\n overflow: hidden;\n padding: 0;\n font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'Source Code Pro\', \'source-code-pro\', monospace;\n direction: ltr;\n text-align: left;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n forced-color-adjust: none;\n}\n\n.ace_scroller {\n position: absolute;\n overflow: hidden;\n top: 0;\n bottom: 0;\n background-color: inherit;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n cursor: text;\n}\n\n.ace_content {\n position: absolute;\n box-sizing: border-box;\n min-width: 100%;\n contain: style size layout;\n font-variant-ligatures: no-common-ligatures;\n}\n\n.ace_keyboard-focus:focus {\n box-shadow: inset 0 0 0 2px #5E9ED6;\n outline: none;\n}\n\n.ace_dragging .ace_scroller:before{\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n content: \'\';\n background: rgba(250, 250, 250, 0.01);\n z-index: 1000;\n}\n.ace_dragging.ace_dark .ace_scroller:before{\n background: rgba(0, 0, 0, 0.01);\n}\n\n.ace_gutter {\n position: absolute;\n overflow : hidden;\n width: auto;\n top: 0;\n bottom: 0;\n left: 0;\n cursor: default;\n z-index: 4;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n contain: style size layout;\n}\n\n.ace_gutter-active-line {\n position: absolute;\n left: 0;\n right: 0;\n}\n\n.ace_scroller.ace_scroll-left:after {\n content: "";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;\n pointer-events: none;\n}\n\n.ace_gutter-cell, .ace_gutter-cell_svg-icons {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n padding-left: 19px;\n padding-right: 6px;\n background-repeat: no-repeat;\n}\n\n.ace_gutter-cell_svg-icons .ace_gutter_annotation {\n margin-left: -14px;\n float: left;\n}\n\n.ace_gutter-cell .ace_gutter_annotation {\n margin-left: -19px;\n float: left;\n}\n\n.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold, .ace_gutter-cell.ace_security, .ace_icon.ace_security, .ace_icon.ace_security_fold {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n\n.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info, .ace_dark .ace_gutter-cell.ace_hint, .ace_dark .ace_icon.ace_hint {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");\n}\n\n.ace_icon_svg.ace_error {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");\n background-color: crimson;\n}\n.ace_icon_svg.ace_security {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");\n background-color: crimson;\n}\n.ace_icon_svg.ace_warning {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");\n background-color: darkorange;\n}\n.ace_icon_svg.ace_info {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");\n background-color: royalblue;\n}\n.ace_icon_svg.ace_hint {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");\n background-color: silver;\n}\n\n.ace_icon_svg.ace_error_fold {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");\n background-color: crimson;\n}\n.ace_icon_svg.ace_security_fold {\n -webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");\n background-color: crimson;\n}\n.ace_icon_svg.ace_warning_fold {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");\n background-color: darkorange;\n}\n\n.ace_scrollbar {\n contain: strict;\n position: absolute;\n right: 0;\n bottom: 0;\n z-index: 6;\n}\n\n.ace_scrollbar-inner {\n position: absolute;\n cursor: text;\n left: 0;\n top: 0;\n}\n\n.ace_scrollbar-v{\n overflow-x: hidden;\n overflow-y: scroll;\n top: 0;\n}\n\n.ace_scrollbar-h {\n overflow-x: scroll;\n overflow-y: hidden;\n left: 0;\n}\n\n.ace_print-margin {\n position: absolute;\n height: 100%;\n}\n\n.ace_text-input {\n position: absolute;\n z-index: 0;\n width: 0.5em;\n height: 1em;\n opacity: 0;\n background: transparent;\n -moz-appearance: none;\n appearance: none;\n border: none;\n resize: none;\n outline: none;\n overflow: hidden;\n font: inherit;\n padding: 0 1px;\n margin: 0 -1px;\n contain: strict;\n -ms-user-select: text;\n -moz-user-select: text;\n -webkit-user-select: text;\n user-select: text;\n /*with `pre-line` chrome inserts instead of space*/\n white-space: pre!important;\n}\n.ace_text-input.ace_composition {\n background: transparent;\n color: inherit;\n z-index: 1000;\n opacity: 1;\n}\n.ace_composition_placeholder { color: transparent }\n.ace_composition_marker { \n border-bottom: 1px solid;\n position: absolute;\n border-radius: 0;\n margin-top: 1px;\n}\n\n[ace_nocontext=true] {\n transform: none!important;\n filter: none!important;\n clip-path: none!important;\n mask : none!important;\n contain: none!important;\n perspective: none!important;\n mix-blend-mode: initial!important;\n z-index: auto;\n}\n\n.ace_layer {\n z-index: 1;\n position: absolute;\n overflow: hidden;\n /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/\n word-wrap: normal;\n white-space: pre;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n /* setting pointer-events: auto; on node under the mouse, which changes\n during scroll, will break mouse wheel scrolling in Safari */\n pointer-events: none;\n}\n\n.ace_gutter-layer {\n position: relative;\n width: auto;\n text-align: right;\n pointer-events: auto;\n height: 1000000px;\n contain: style size layout;\n}\n\n.ace_text-layer {\n font: inherit !important;\n position: absolute;\n height: 1000000px;\n width: 1000000px;\n contain: style size layout;\n}\n\n.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {\n contain: style size layout;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n}\n\n.ace_hidpi .ace_text-layer,\n.ace_hidpi .ace_gutter-layer,\n.ace_hidpi .ace_content,\n.ace_hidpi .ace_gutter {\n contain: strict;\n}\n.ace_hidpi .ace_text-layer > .ace_line, \n.ace_hidpi .ace_text-layer > .ace_line_group {\n contain: strict;\n}\n\n.ace_cjk {\n display: inline-block;\n text-align: center;\n}\n\n.ace_cursor-layer {\n z-index: 4;\n}\n\n.ace_cursor {\n z-index: 4;\n position: absolute;\n box-sizing: border-box;\n border-left: 2px solid;\n /* workaround for smooth cursor repaintng whole screen in chrome */\n transform: translatez(0);\n}\n\n.ace_multiselect .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_slim-cursors .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_overwrite-cursors .ace_cursor {\n border-left-width: 0;\n border-bottom: 1px solid;\n}\n\n.ace_hidden-cursors .ace_cursor {\n opacity: 0.2;\n}\n\n.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {\n opacity: 0;\n}\n\n.ace_smooth-blinking .ace_cursor {\n transition: opacity 0.18s;\n}\n\n.ace_animate-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: step-end;\n animation-name: blink-ace-animate;\n animation-iteration-count: infinite;\n}\n\n.ace_animate-blinking.ace_smooth-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: ease-in-out;\n animation-name: blink-ace-animate-smooth;\n}\n \n@keyframes blink-ace-animate {\n from, to { opacity: 1; }\n 60% { opacity: 0; }\n}\n\n@keyframes blink-ace-animate-smooth {\n from, to { opacity: 1; }\n 45% { opacity: 1; }\n 60% { opacity: 0; }\n 85% { opacity: 0; }\n}\n\n.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {\n position: absolute;\n z-index: 3;\n}\n\n.ace_marker-layer .ace_selection {\n position: absolute;\n z-index: 5;\n}\n\n.ace_marker-layer .ace_bracket {\n position: absolute;\n z-index: 6;\n}\n\n.ace_marker-layer .ace_error_bracket {\n position: absolute;\n border-bottom: 1px solid #DE5555;\n border-radius: 0;\n}\n\n.ace_marker-layer .ace_active-line {\n position: absolute;\n z-index: 2;\n}\n\n.ace_marker-layer .ace_selected-word {\n position: absolute;\n z-index: 4;\n box-sizing: border-box;\n}\n\n.ace_line .ace_fold {\n box-sizing: border-box;\n\n display: inline-block;\n height: 11px;\n margin-top: -2px;\n vertical-align: middle;\n\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");\n background-repeat: no-repeat, repeat-x;\n background-position: center center, top left;\n color: transparent;\n\n border: 1px solid black;\n border-radius: 2px;\n\n cursor: pointer;\n pointer-events: auto;\n}\n\n.ace_dark .ace_fold {\n}\n\n.ace_fold:hover{\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");\n}\n\n.ace_tooltip {\n background-color: #f5f5f5;\n border: 1px solid gray;\n border-radius: 1px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\n color: black;\n max-width: 100%;\n padding: 3px 4px;\n position: fixed;\n z-index: 999999;\n box-sizing: border-box;\n cursor: default;\n white-space: pre-wrap;\n word-wrap: break-word;\n line-height: normal;\n font-style: normal;\n font-weight: normal;\n letter-spacing: normal;\n pointer-events: none;\n overflow: auto;\n max-width: min(60em, 66vw);\n overscroll-behavior: contain;\n}\n.ace_tooltip pre {\n white-space: pre-wrap;\n}\n\n.ace_tooltip.ace_dark {\n background-color: #636363;\n color: #fff;\n}\n\n.ace_tooltip:focus {\n outline: 1px solid #5E9ED6;\n}\n\n.ace_icon {\n display: inline-block;\n width: 18px;\n vertical-align: top;\n}\n\n.ace_icon_svg {\n display: inline-block;\n width: 12px;\n vertical-align: top;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-size: 12px;\n -webkit-mask-position: center;\n}\n\n.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {\n padding-right: 13px;\n}\n\n.ace_fold-widget {\n box-sizing: border-box;\n\n margin: 0 -12px 0 1px;\n display: none;\n width: 11px;\n vertical-align: top;\n\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: center;\n\n border-radius: 3px;\n \n border: 1px solid transparent;\n cursor: pointer;\n}\n\n.ace_folding-enabled .ace_fold-widget {\n display: inline-block; \n}\n\n.ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");\n}\n\n.ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");\n}\n\n.ace_fold-widget:hover {\n border: 1px solid rgba(0, 0, 0, 0.3);\n background-color: rgba(255, 255, 255, 0.2);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);\n}\n\n.ace_fold-widget:active {\n border: 1px solid rgba(0, 0, 0, 0.4);\n background-color: rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);\n}\n/**\n * Dark version for fold widgets\n */\n.ace_dark .ace_fold-widget {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");\n}\n.ace_dark .ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget:hover {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n background-color: rgba(255, 255, 255, 0.1);\n}\n.ace_dark .ace_fold-widget:active {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n}\n\n.ace_inline_button {\n border: 1px solid lightgray;\n display: inline-block;\n margin: -1px 8px;\n padding: 0 5px;\n pointer-events: auto;\n cursor: pointer;\n}\n.ace_inline_button:hover {\n border-color: gray;\n background: rgba(200,200,200,0.2);\n display: inline-block;\n pointer-events: auto;\n}\n\n.ace_fold-widget.ace_invalid {\n background-color: #FFB4B4;\n border-color: #DE5555;\n}\n\n.ace_fade-fold-widgets .ace_fold-widget {\n transition: opacity 0.4s ease 0.05s;\n opacity: 0;\n}\n\n.ace_fade-fold-widgets:hover .ace_fold-widget {\n transition: opacity 0.05s ease 0.05s;\n opacity:1;\n}\n\n.ace_underline {\n text-decoration: underline;\n}\n\n.ace_bold {\n font-weight: bold;\n}\n\n.ace_nobold .ace_bold {\n font-weight: normal;\n}\n\n.ace_italic {\n font-style: italic;\n}\n\n\n.ace_error-marker {\n background-color: rgba(255, 0, 0,0.2);\n position: absolute;\n z-index: 9;\n}\n\n.ace_highlight-marker {\n background-color: rgba(255, 255, 0,0.2);\n position: absolute;\n z-index: 8;\n}\n\n.ace_mobile-menu {\n position: absolute;\n line-height: 1.5;\n border-radius: 4px;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n background: white;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #dcdcdc;\n color: black;\n}\n.ace_dark > .ace_mobile-menu {\n background: #333;\n color: #ccc;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #444;\n\n}\n.ace_mobile-button {\n padding: 2px;\n cursor: pointer;\n overflow: hidden;\n}\n.ace_mobile-button:hover {\n background-color: #eee;\n opacity:1;\n}\n.ace_mobile-button:active {\n background-color: #ddd;\n}\n\n.ace_placeholder {\n position: relative;\n font-family: arial;\n transform: scale(0.9);\n transform-origin: left;\n white-space: pre;\n opacity: 0.7;\n margin: 0 10px;\n z-index: 1;\n}\n\n.ace_ghost_text {\n opacity: 0.5;\n font-style: italic;\n}\n\n.ace_ghost_text_container > div {\n white-space: pre;\n}\n\n.ghost_text_line_wrapped::after {\n content: "↩";\n position: absolute;\n}\n\n.ace_lineWidgetContainer.ace_ghost_text {\n margin: 0px 4px\n}\n\n.ace_screenreader-only {\n position:absolute;\n left:-10000px;\n top:auto;\n width:1px;\n height:1px;\n overflow:hidden;\n}\n\n.ace_hidden_token {\n display: none;\n}'}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(e,t,r){var n=e("../lib/dom"),i=e("../lib/oop"),o=(e=e("../lib/event_emitter").EventEmitter,s.prototype.$updateDecorators=function(e){var t=!0===this.renderer.theme.isDark?this.colors.dark:this.colors.light,r=(e&&(this.maxHeight=e.maxHeight,this.lineHeight=e.lineHeight,this.canvasHeight=e.height,(e.lastRow+1)*this.lineHeight<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight),this.canvas.getContext("2d")),n=this.renderer.session.$annotations;if(r.clearRect(0,0,this.canvas.width,this.canvas.height),n)for(var i={info:1,warning:2,error:3},o=(n.forEach(function(e){e.priority=i[e.type]||null}),n=n.sort(function(e,t){return e.priority<t.priority?-1:t.priority<e.priority?1:0}),this.renderer.session.$foldData),s=0;s<n.length;s++){var a,l=n[s].row,c=this.compensateFoldRows(l,o),u=Math.round((l-c)*this.lineHeight*this.heightRatio),d=Math.round((l-c)*this.lineHeight*this.heightRatio);(l=Math.round(((l-c)*this.lineHeight+this.lineHeight)*this.heightRatio))-d<this.minDecorationHeight&&((a=(d+l)/2|0)<this.halfMinDecorationHeight?a=this.halfMinDecorationHeight:a+this.halfMinDecorationHeight>this.canvasHeight&&(a=this.canvasHeight-this.halfMinDecorationHeight),d=Math.round(a-this.halfMinDecorationHeight),l=Math.round(a+this.halfMinDecorationHeight)),r.fillStyle=t[n[s].type]||null,r.fillRect(0,u,this.canvasWidth,l-d)}(e=this.renderer.session.selection.getCursor())&&(c=this.compensateFoldRows(e.row,o),u=Math.round((e.row-c)*this.lineHeight*this.heightRatio),r.fillStyle="rgba(0, 0, 0, 0.5)",r.fillRect(0,u,this.canvasWidth,2))},s.prototype.compensateFoldRows=function(e,t){var r=0;if(t&&0<t.length)for(var n=0;n<t.length;n++)e>t[n].start.row&&e<t[n].end.row?r+=e-t[n].start.row:e>=t[n].end.row&&(r+=t[n].end.row-t[n].start.row);return r},s);function s(e,t){this.canvas=n.createElement("canvas"),this.renderer=t,this.pixelRatio=1,this.maxHeight=t.layerConfig.maxHeight,this.lineHeight=t.layerConfig.lineHeight,this.canvasHeight=e.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=e.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},e.element.appendChild(this.canvas)}i.implement(o.prototype,e),t.Decorator=o}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent","ace/layer/text_util"],function(e,t,r){var n=e("./lib/oop"),i=e("./lib/dom"),o=e("./lib/lang"),s=e("./config"),a=e("./layer/gutter").Gutter,l=e("./layer/marker").Marker,c=e("./layer/text").Text,u=e("./layer/cursor").Cursor,d=e("./scrollbar").HScrollBar,h=e("./scrollbar").VScrollBar,p=e("./scrollbar_custom").HScrollBar,f=e("./scrollbar_custom").VScrollBar,m=e("./renderloop").RenderLoop,g=e("./layer/font_metrics").FontMetrics,y=e("./lib/event_emitter").EventEmitter,v=e("./css/editor-css"),b=e("./layer/decorators").Decorator,w=e("./lib/useragent"),x=e("./layer/text_util").isTextToken;function A(e,t){var r=this;this.container=e||i.createElement("div"),i.addCssClass(this.container,"ace_editor"),i.HI_DPI&&i.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),null==s.get("useStrictCSP")&&s.set("useStrictCSP",!1),this.$gutter=i.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=i.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=i.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new l(this.content),e=this.$textLayer=new c(this.content),this.canvas=e.element,this.$markerFront=new l(this.content),this.$cursorLayer=new u(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new h(this.container,this),this.scrollBarH=new d(this.container,this),this.scrollBarV.on("scroll",function(e){r.$scrollAnimation||r.session.setScrollTop(e.data-r.scrollMargin.top)}),this.scrollBarH.on("scroll",function(e){r.$scrollAnimation||r.session.setScrollLeft(e.data-r.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new g(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(e){r.updateCharacterSize(),r.onResize(!0,r.gutterWidth,r.$size.width,r.$size.height),r._signal("changeCharacterSize",e)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!w.isIOS,this.$loop=new m(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),s.resetOptions(this),s._signal("renderer",this)}i.importCssString(v,"ace_editor.css",!1),A.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),i.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},A.prototype.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),(this.session=e)&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},A.prototype.updateLines=function(e,t,r){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!r)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},A.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},A.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},A.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},A.prototype.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},A.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},A.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},A.prototype.onResize=function(e,t,r,n){if(!(2<this.resizing)){0<this.resizing?this.resizing++:this.resizing=e?1:0;var i=this.container;if(!(n=n||i.clientHeight||i.scrollHeight)&&this.$maxLines&&1<this.lineHeight&&(i.style.height&&"0px"!=i.style.height||(i.style.height="1px",n=i.clientHeight||i.scrollHeight)),r=r||i.clientWidth||i.scrollWidth,i=this.$updateCachedSize(e,t,r,n),this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!r&&!n)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(i|this.$changes,!0):this.$loop.schedule(i|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},A.prototype.$updateCachedSize=function(e,t,r,n){n-=this.$extraHeight||0;var o=0,s=this.$size,a={width:s.width,height:s.height,scrollerHeight:s.scrollerHeight,scrollerWidth:s.scrollerWidth};return n&&(e||s.height!=n)&&(s.height=n,o|=this.CHANGE_SIZE,s.scrollerHeight=s.height,this.$horizScroll&&(s.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(s.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",o|=this.CHANGE_SCROLL),r&&(e||s.width!=r)&&(o|=this.CHANGE_SIZE,s.width=r,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,i.setStyle(this.scrollBarH.element.style,"left",t+"px"),i.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),s.scrollerWidth=Math.max(0,r-t-this.scrollBarV.getWidth()-this.margin.h),i.setStyle(this.$gutter.style,"left",this.margin.left+"px"),t=this.scrollBarV.getWidth()+"px",i.setStyle(this.scrollBarH.element.style,"right",t),i.setStyle(this.scroller.style,"right",t),i.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(s.scrollerWidth),this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(o|=this.CHANGE_FULL),s.$dirty=!r||!n,o&&this._signal("resize",a),o},A.prototype.onGutterResize=function(e){(e=this.$showGutter?e:0)!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,e,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},A.prototype.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding;return e=Math.floor(e/this.characterWidth),this.session.adjustWrapLimit(e,this.$showPrintMargin&&this.$printMarginColumn)},A.prototype.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},A.prototype.getAnimatedScroll=function(){return this.$animatedScroll},A.prototype.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},A.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},A.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},A.prototype.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},A.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},A.prototype.setHighlightIndentGuides=function(e){this.setOption("highlightIndentGuides",e)},A.prototype.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},A.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},A.prototype.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},A.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},A.prototype.getShowGutter=function(){return this.getOption("showGutter")},A.prototype.setShowGutter=function(e){return this.setOption("showGutter",e)},A.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},A.prototype.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},A.prototype.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},A.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},A.prototype.$updatePrintMargin=function(){var e;(this.$showPrintMargin||this.$printMarginEl)&&(this.$printMarginEl||((e=i.createElement("div")).className="ace_layer ace_print-margin-layer",this.$printMarginEl=i.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)),(e=this.$printMarginEl.style).left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",e.visibility=this.$showPrintMargin?"visible":"hidden",this.session)&&-1==this.session.$wrap&&this.adjustWrapLimit()},A.prototype.getContainerElement=function(){return this.container},A.prototype.getMouseEventTarget=function(){return this.scroller},A.prototype.getTextAreaContainer=function(){return this.container},A.prototype.$moveTextAreaToCursor=function(){var e,t,r,n,o,s,a;this.$isMousePressed||(e=this.textarea.style,s=this.$composition,this.$keepTextAreaAtCursor||s?(r=this.$cursorLayer.$pixelPos)&&(s&&s.markerRange&&(r=this.$cursorLayer.getPixelPosition(s.markerRange.start,!0)),a=this.layerConfig,t=r.top,r=r.left,t-=a.offset,n=s&&s.useTextareaForIME||w.isMobile?this.lineHeight:1,t<0||t>a.height-n?i.translate(this.textarea,0,0):(a=1,o=this.$size.height-n,s?s.useTextareaForIME?(s=this.textarea.value,a=this.characterWidth*this.session.$getStringScreenWidth(s)[0]):t+=this.lineHeight+2:t+=this.lineHeight,(r-=this.scrollLeft)>this.$size.scrollerWidth-a&&(r=this.$size.scrollerWidth-a),r+=this.gutterWidth+this.margin.left,i.setStyle(e,"height",n+"px"),i.setStyle(e,"width",a+"px"),i.translate(this.textarea,Math.min(r,this.$size.scrollerWidth-a),Math.min(t,o)))):i.translate(this.textarea,-100,0))},A.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},A.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},A.prototype.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},A.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},A.prototype.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},A.prototype.setScrollMargin=function(e,t,r,n){var i=this.scrollMargin;i.top=0|e,i.bottom=0|t,i.right=0|n,i.left=0|r,i.v=i.top+i.bottom,i.h=i.left+i.right,i.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-i.top),this.updateFull()},A.prototype.setMargin=function(e,t,r,n){var i=this.margin;i.top=0|e,i.bottom=0|t,i.right=0|n,i.left=0|r,i.v=i.top+i.bottom,i.h=i.left+i.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},A.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},A.prototype.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},A.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},A.prototype.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},A.prototype.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t)&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},A.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},A.prototype.freeze=function(){this.$frozen=!0},A.prototype.unfreeze=function(){this.$frozen=!1},A.prototype.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);var r,n;this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics),t=this.layerConfig,(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL)&&(e|=this.$computeLayerConfig()|this.$loop.clear(),t.firstRow!=this.layerConfig.firstRow&&t.firstRowScreen==this.layerConfig.firstRowScreen&&0<(r=this.scrollTop+(t.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight)&&(this.scrollTop=r,e=(e|=this.CHANGE_SCROLL)|this.$computeLayerConfig()|this.$loop.clear()),t=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),i.translate(this.content,-this.scrollLeft,-t.offset),r=t.width+2*this.$padding+"px",n=t.minHeight+"px",i.setStyle(this.content.style,"width",r),i.setStyle(this.content.style,"height",n)),e&this.CHANGE_H_SCROLL&&(i.translate(this.content,-this.scrollLeft,-t.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility)&&(this.scroller.className+=this.keyboardFocusClassName),e&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(t),this.$showGutter&&this.$gutterLayer.update(t),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(t),this.$markerBack.update(t),this.$markerFront.update(t),this.$cursorLayer.update(t),this.$moveTextAreaToCursor()):e&this.CHANGE_SCROLL?(this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(t):this.$textLayer.scrollLines(t),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(t):this.$gutterLayer.scrollLines(t)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(t),this.$markerBack.update(t),this.$markerFront.update(t),this.$cursorLayer.update(t),this.$moveTextAreaToCursor()):(e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(t),this.$showGutter&&this.$gutterLayer.update(t),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(t)):e&this.CHANGE_LINES?((this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(t),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(t)):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(t),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(t)):e&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(t),this.$customScrollbar)&&this.$scrollDecorator.$updateDecorators(t),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(t),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(t),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(t)),this._signal("afterRender",e)}else this.$changes|=e},A.prototype.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,r=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(r+=this.scrollBarH.getHeight()),t=!((r=this.$maxPixelHeight&&r>this.$maxPixelHeight?this.$maxPixelHeight:r)<=2*this.lineHeight)&&t<e,r==this.desiredHeight&&this.$size.height==this.desiredHeight&&t==this.$vScroll||(t!=this.$vScroll&&(this.$vScroll=t,this.scrollBarV.setVisible(t)),e=this.container.clientWidth,this.container.style.height=r+"px",this.$updateCachedSize(!0,this.$gutterWidth,e,r),this.desiredHeight=r,this._signal("autosize"))},A.prototype.$computeLayerConfig=function(){var e,t,r=this.session,n=this.$size,i=n.height<=2*this.lineHeight,o=this.session.getScreenLength()*this.lineHeight,s=this.$getLongestLine(),a=!i&&(this.$hScrollBarAlwaysVisible||n.scrollerWidth-s-2*this.$padding<0),l=this.$horizScroll!==a,c=(l&&(this.$horizScroll=a,this.scrollBarH.setVisible(a)),a=this.$vScroll,this.$maxLines&&1<this.lineHeight&&(this.$autosize(),i=n.height<=2*this.lineHeight),n.scrollerHeight+this.lineHeight),u=(o+=t=!this.$maxLines&&this.$scrollPastEnd?(n.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0,this.scrollMargin),d=((t=a!==(this.session.setScrollTop(Math.max(-u.top,Math.min(this.scrollTop,o-n.scrollerHeight+u.bottom))),this.session.setScrollLeft(Math.max(-u.left,Math.min(this.scrollLeft,s+2*this.$padding-n.scrollerWidth+u.right))),i=!i&&(this.$vScrollBarAlwaysVisible||n.scrollerHeight-o+t<0||this.scrollTop>u.top)))&&(this.$vScroll=i,this.scrollBarV.setVisible(i)),u=this.scrollTop%this.lineHeight,a=Math.ceil(c/this.lineHeight)-1,a=(i=Math.max(0,Math.round((this.scrollTop-u)/this.lineHeight)))+a,this.lineHeight),h=(i=r.screenToDocumentRow(i,0),r.getFoldLine(i));return h&&(i=h.start.row),h=r.documentToScreenRow(i,0),e=r.getRowLength(i)*d,a=Math.min(r.screenToDocumentRow(a,0),r.getLength()-1),c=n.scrollerHeight+r.getRowLength(a)*d+e,u=this.scrollTop-h*d,r=0,this.layerConfig.width==s&&!l||(r=this.CHANGE_H_SCROLL),(l||t)&&(r|=this.$updateCachedSize(!0,this.gutterWidth,n.width,n.height),this._signal("scrollbarVisibilityChanged"),t)&&(s=this.$getLongestLine()),this.layerConfig={width:s,padding:this.$padding,firstRow:i,firstRowScreen:h,lastRow:a,lineHeight:d,characterWidth:this.characterWidth,minHeight:c,maxHeight:o,offset:u,gutterOffset:d?Math.max(0,Math.ceil((u+n.height-n.scrollerHeight)/d)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(s-this.$padding),r},A.prototype.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow,r=(this.$changedLines=null,this.layerConfig);if(!(e>r.lastRow+1||t<r.firstRow)){if(t!==1/0)return this.$textLayer.updateLines(r,e,t),!0;this.$showGutter&&this.$gutterLayer.update(r),this.$textLayer.update(r)}}},A.prototype.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),this.$textLayer&&e>this.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},A.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},A.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},A.prototype.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},A.prototype.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},A.prototype.updateBreakpoints=function(e){this._rows=e,this.$loop.schedule(this.CHANGE_GUTTER)},A.prototype.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},A.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},A.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},A.prototype.showCursor=function(){this.$cursorLayer.showCursor()},A.prototype.scrollSelectionIntoView=function(e,t,r){this.scrollCursorIntoView(e,r),this.scrollCursorIntoView(t,r)},A.prototype.scrollCursorIntoView=function(e,t,r){var n,i,o;0!==this.$size.scrollerHeight&&(n=(e=this.$cursorLayer.getPixelPosition(e)).left,e=e.top,i=r&&r.top||0,r=r&&r.bottom||0,this.$scrollAnimation&&(this.$stopAnimation=!0),e<(o=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop)+i?(t&&o+i>e+this.lineHeight&&(e-=t*this.$size.scrollerHeight),0===e&&(e=-this.scrollMargin.top),this.session.setScrollTop(e)):o+this.$size.scrollerHeight-r<e+this.lineHeight&&(t&&o+this.$size.scrollerHeight-r<e-this.lineHeight&&(e+=t*this.$size.scrollerHeight),this.session.setScrollTop(e+this.lineHeight+r-this.$size.scrollerHeight)),i=this.scrollLeft,n-(o=2*this.layerConfig.characterWidth)<i?((n-=o)<this.$padding+o&&(n=-this.scrollMargin.left),this.session.setScrollLeft(n)):i+this.$size.scrollerWidth<(n+=o)+this.characterWidth?this.session.setScrollLeft(Math.round(n+this.characterWidth-this.$size.scrollerWidth)):i<=this.$padding&&n-i<this.characterWidth&&this.session.setScrollLeft(0))},A.prototype.getScrollTop=function(){return this.session.getScrollTop()},A.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},A.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},A.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},A.prototype.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},A.prototype.alignCursor=function(e,t){e=this.$cursorLayer.getPixelPosition(e="number"==typeof e?{row:e,column:0}:e);var r=this.$size.scrollerHeight-this.lineHeight;return e=e.top-r*(t||0),this.session.setScrollTop(e),e},A.prototype.$calcSteps=function(e,t){var r,n,i=0,o=this.STEPS,s=[];for(i=0;i<o;++i)s.push((r=i/this.STEPS,(t-(n=e))*(Math.pow(r-1,3)+1)+n));return s},A.prototype.scrollToLine=function(e,t,r,n){e=this.$cursorLayer.getPixelPosition({row:e,column:0}).top,t&&(e-=this.$size.scrollerHeight/2),t=this.scrollTop,this.session.setScrollTop(e),!1!==r&&this.animateScrolling(t,n)},A.prototype.animateScrolling=function(e,t){var r=this.scrollTop;if(this.$animatedScroll){var n=this;if(e!=r){if(this.$scrollAnimation){var i=this.$scrollAnimation.steps;if(i.length&&(e=i[0])==r)return}var o=n.$calcSteps(e,r);this.$scrollAnimation={from:e,to:r,steps:o},clearInterval(this.$timer),n.session.setScrollTop(o.shift()),n.session.$scrollTop=r,this.$timer=setInterval(function(){if(!n.$stopAnimation)return n.session?void(o.length?(n.session.setScrollTop(o.shift()),n.session.$scrollTop=r):null!=r?(n.session.$scrollTop=-1,n.session.setScrollTop(r),r=null):s()):clearInterval(n.$timer);s()},10)}}function s(){n.$timer=clearInterval(n.$timer),n.$scrollAnimation=null,n.$stopAnimation=!1,t&&t()}},A.prototype.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},A.prototype.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},A.prototype.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(e)},A.prototype.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},A.prototype.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||0<t&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||0<e&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0},A.prototype.pixelToScreenCoordinates=function(e,t){this.$hasCssTransforms?(n={top:0,left:0},e=(r=this.$fontMetrics.transformCoordinates([e,t]))[1]-this.gutterWidth-this.margin.left,t=r[0]):n=this.scroller.getBoundingClientRect();var r=e+this.scrollLeft-n.left-this.$padding,n=(e=r/this.characterWidth,t=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),this.$blockCursor?Math.floor(e):Math.round(e));return{row:t,column:n,side:0<e-n?1:-1,offsetX:r}},A.prototype.screenToTextCoordinates=function(e,t){this.$hasCssTransforms?(r={top:0,left:0},e=(n=this.$fontMetrics.transformCoordinates([e,t]))[1]-this.gutterWidth-this.margin.left,t=n[0]):r=this.scroller.getBoundingClientRect();var r,n=e+this.scrollLeft-r.left-this.$padding;return e=n/this.characterWidth,e=this.$blockCursor?Math.floor(e):Math.round(e),t=Math.floor((t+this.scrollTop-r.top)/this.lineHeight),this.session.screenToDocumentPosition(t,Math.max(e,0),n)},A.prototype.textToScreenCoordinates=function(e,t){var r=this.scroller.getBoundingClientRect();return t=this.session.documentToScreenPosition(e,t),e=this.$padding+(this.session.$bidiHandler.isBidiRow(t.row,e)?this.session.$bidiHandler.getPosLeft(t.column):Math.round(t.column*this.characterWidth)),t=t.row*this.lineHeight,{pageX:r.left+e-this.scrollLeft,pageY:r.top+t-this.scrollTop}},A.prototype.visualizeFocus=function(){i.addCssClass(this.container,"ace_focus")},A.prototype.visualizeBlur=function(){i.removeCssClass(this.container,"ace_focus")},A.prototype.showComposition=function(e){(this.$composition=e).cssText||(e.cssText=this.textarea.style.cssText),null==e.useTextareaForIME&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(i.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},A.prototype.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},A.prototype.hideComposition=function(){var e;this.$composition&&(this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),i.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText,e=this.session.selection.cursor,this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display="")},A.prototype.setGhostText=function(e,t){var r,n,o,s=this.session.selection.cursor,a=(t=t||{row:s.row,column:s.column},this.removeGhostText(),s=this.$calculateWrappedTextChunks(e,t),this.addToken(s[0].text,"ghost_text",t.row,t.column),this.$ghostText={text:e,position:{row:t.row,column:t.column}},i.createElement("div"));1<s.length&&(e=this.hideTokensAfterPosition(t.row,t.column),s.slice(1).forEach(function(e){var t=i.createElement("div"),n=i.createElement("span");n.className="ace_ghost_text",e.wrapped&&(t.className="ghost_text_line_wrapped"),0===e.text.length&&(e.text=" "),n.appendChild(i.createTextNode(e.text)),t.appendChild(n),a.appendChild(t),r=t}),e.forEach(function(e){var t=i.createElement("span");x(e.type)||(t.className="ace_"+e.type.replace(/\./g," ace_")),t.appendChild(i.createTextNode(e.value)),r.appendChild(t)}),this.$ghostTextWidget={el:a,row:t.row,column:t.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget),e=this.$cursorLayer.getPixelPosition(t,!0),n=this.container.getBoundingClientRect().height,(o=s.length*this.lineHeight)<n-e.top||(o<n?this.scrollBy(0,(s.length-1)*this.lineHeight):this.scrollToRow(t.row)))},A.prototype.$calculateWrappedTextChunks=function(e,t){for(var r=this.$size.scrollerWidth-2*this.$padding,n=(n=Math.floor(r/this.characterWidth)-2)<=0?60:n,i=e.split(/\r?\n/),o=[],s=0;s<i.length;s++){var a=this.session.$getDisplayTokens(i[s],t.column),l=this.session.$computeWrapSplits(a,n,this.session.$tabSize);if(0<l.length){var c=0;l.push(i[s].length);for(var u=0;u<l.length;u++){var d=i[s].slice(c,l[u]);o.push({text:d,wrapped:!0}),c=l[u]}}else o.push({text:i[s],wrapped:!1})}return o},A.prototype.removeGhostText=function(){var e;this.$ghostText&&(e=this.$ghostText.position,this.removeExtraToken(e.row,e.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null)},A.prototype.addToken=function(e,t,r,n){var i=this.session,o=(i.bgTokenizer.lines[r]=null,{type:t,value:e}),s=i.getTokens(r);if(null!=n&&s.length)for(var a=0,l=0;l<s.length;l++){var c=s[l];if(n<=(a+=c.value.length)){var u=c.value.length-(a-n),d=c.value.slice(0,u);u=c.value.slice(u),s.splice(l,1,{type:c.type,value:d},o,{type:c.type,value:u});break}}else s.push(o);this.updateLines(r,r)},A.prototype.hideTokensAfterPosition=function(e,t){for(var r=this.session.getTokens(e),n=0,i=!1,o=[],s=0;s<r.length;s++){var a=r[s];n+=a.value.length,"ghost_text"!==a.type&&(i?(o.push({type:a.type,value:a.value}),a.type="hidden_token"):n===t&&(i=!0))}return this.updateLines(e,e),o},A.prototype.removeExtraToken=function(e,t){this.session.bgTokenizer.lines[e]=null,this.updateLines(e,e)},A.prototype.setTheme=function(e,t){var r,n=this;function o(r){if(n.$themeId!=e)return t&&t();if(!r||!r.cssClass)throw new Error("couldn't load module "+e+" or it didn't call define");r.$id&&(n.$themeId=r.$id),i.importCssString(r.cssText,r.cssClass,n.container),n.theme&&i.removeCssClass(n.container,n.theme.cssClass);var o="padding"in r?r.padding:"padding"in(n.theme||{})?4:n.$padding;n.$padding&&o!=n.$padding&&n.setPadding(o),n.$theme=r.cssClass,n.theme=r,i.addCssClass(n.container,r.cssClass),i.setCssClass(n.container,"ace_dark",r.isDark),n.$size&&(n.$size.width=0,n.$updateSizeAsync()),n._dispatchEvent("themeLoaded",{theme:r}),t&&t(),w.isSafari&&n.scroller&&(n.scroller.style.background="red",n.scroller.style.background="")}this.$themeId=e,n._dispatchEvent("themeChange",{theme:e}),e&&"string"!=typeof e?o(e):(r=e||this.$options.theme.initialValue,s.loadModule(["theme",r],o))},A.prototype.getTheme=function(){return this.$themeId},A.prototype.setStyle=function(e,t){i.setCssClass(this.container,e,!1!==t)},A.prototype.unsetStyle=function(e){i.removeCssClass(this.container,e)},A.prototype.setCursorStyle=function(e){i.setStyle(this.scroller.style,"cursor",e)},A.prototype.setMouseCursor=function(e){i.setStyle(this.scroller.style,"cursor",e)},A.prototype.attachToShadowRoot=function(){i.importCssString(v,"ace_editor.css",this.container)},A.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},A.prototype.$updateCustomScrollbar=function(e){var t=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,!0===e?(this.scrollBarV=new f(this.container,this),this.scrollBarH=new p(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(e){t.$scrollAnimation||t.session.setScrollTop(e.data-t.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(e){t.$scrollAnimation||t.session.setScrollLeft(e.data-t.scrollMargin.left)}),this.$scrollDecorator=new b(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new h(this.container,this),this.scrollBarH=new d(this.container,this),this.scrollBarV.addEventListener("scroll",function(e){t.$scrollAnimation||t.session.setScrollTop(e.data-t.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(e){t.$scrollAnimation||t.session.setScrollLeft(e.data-t.scrollMargin.left)}))},A.prototype.$addResizeObserver=function(){var e;window.ResizeObserver&&!this.$resizeObserver&&((e=this).$resizeTimer=o.delayedCall(function(){e.destroyed||e.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(t){var r=t[0].contentRect.width;t=t[0].contentRect.height,1<Math.abs(e.$size.width-r)||1<Math.abs(e.$size.height-t)?e.$resizeTimer.delay():e.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container))},(e=A).prototype.CHANGE_CURSOR=1,e.prototype.CHANGE_MARKER=2,e.prototype.CHANGE_GUTTER=4,e.prototype.CHANGE_SCROLL=8,e.prototype.CHANGE_LINES=16,e.prototype.CHANGE_TEXT=32,e.prototype.CHANGE_SIZE=64,e.prototype.CHANGE_MARKER_BACK=128,e.prototype.CHANGE_MARKER_FRONT=256,e.prototype.CHANGE_FULL=512,e.prototype.CHANGE_H_SCROLL=1024,e.prototype.$changes=0,e.prototype.$padding=null,e.prototype.$frozen=!1,e.prototype.STEPS=8,n.implement(e.prototype,y),s.defineOptions(e.prototype,"renderer",{useResizeObserver:{set:function(e){!e&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):e&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(e){this.$gutterLayer.$useSvgGutterIcons=e},initialValue:!1},showFoldedAnnotations:{set:function(e){this.$gutterLayer.$showFoldedAnnotations=e},initialValue:!1},fadeFoldWidgets:{set:function(e){i.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(e){1==this.$textLayer.setHighlightIndentGuides(e)?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(e){this.$gutterLayer.setHighlightGutterLine(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(e){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){this.$scrollPastEnd!=(e=+e||0)&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(e){this.$updateCustomScrollbar(e)},initialValue:!1},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!w.isMobile&&!w.isIE}}),t.VirtualRenderer=e}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(e,t,r){var n=e("../lib/oop"),i=e("../lib/net"),o=e("../lib/event_emitter").EventEmitter,s=e("../config");function a(e){var t;return"undefined"==typeof Worker?{postMessage:function(){},terminate:function(){}}:s.get("loadWorkerFromBlob")?(t=(e=>{e="importScripts('"+i.qualifyURL(e)+"');";try{return new Blob([e],{type:"application/javascript"})}catch(r){var t=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return t.append(e),t.getBlob("application/javascript")}})(e),t=(window.URL||window.webkitURL).createObjectURL(t),new Worker(t)):new Worker(e)}function l(e){e.postMessage||(e=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=e,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage}(function(){n.implement(this,o),this.$createWorkerFromOldConfig=function(t,r,n,i,o){var l,c;return e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),s.get("packaged")||!e.toUrl?i=i||s.moduleUrl(r,"worker"):(l=this.$normalizePath,i=i||l(e.toUrl("ace/worker/worker.js",null,"_")),c={},t.forEach(function(t){c[t]=l(e.toUrl(t,null,"_").replace(/(\.js)?(\?.*)?$/,""))})),this.$worker=a(i),o&&this.send("importScripts",o),this.$worker.postMessage({init:!0,tlns:c,module:r,classname:n}),this.$worker},this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var r=this.callbacks[t.id];r&&(r(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data)}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return i.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(e){e.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,r){var n;r&&(n=this.callbackId++,this.callbacks[n]=r,t.push(n)),this.send(e,t)},this.emit=function(e,t){try{t.data&&t.data.err&&(t.data.err={message:t.data.err.message,stack:t.data.err.stack,code:t.data.err.code}),this.$worker&&this.$worker.postMessage({event:e,data:{data:t.data}})}catch(e){console.error(e.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener,!0)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,50<e.length&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(l.prototype),t.UIWorkerClient=function(e,t,r){var n=null,i=!1,a=Object.create(o),c=[],u=new l({messageBuffer:c,terminate:function(){},postMessage:function(e){c.push(e),n&&(i?setTimeout(d):d())}}),d=(u.setEmitSync=function(e){i=e},function(){var e=c.shift();e.command?n[e.command].apply(n,e.args):e.event&&a._signal(e.event,e.data)});return a.postMessage=function(e){u.onMessage({data:e})},a.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},a.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},s.loadModule(["worker",t],function(e){for(n=new e[r](a);c.length;)d()}),u},t.WorkerClient=l,t.createWorker=a}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,t,r){var n=e("./range").Range,i=e("./lib/event_emitter").EventEmitter,o=(e=e("./lib/oop"),s.prototype.setup=function(){var e=this,t=this.doc,r=this.session,i=(this.selectionBefore=r.selection.toJSON(),r.selection.inMultiSelectMode&&r.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column),this.pos);i.$insertRight=!0,i.detach(),i.markerId=r.addMarker(new n(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(r){(r=t.createAnchor(r.row,r.column)).$insertRight=!0,r.detach(),e.others.push(r)}),r.setUndoSelect(!1)},s.prototype.showOtherMarkers=function(){var e,t;this.othersActive||(e=this.session,(t=this).othersActive=!0,this.others.forEach(function(r){r.markerId=e.addMarker(new n(r.row,r.column,r.row,r.column+t.length),t.othersClass,null,!1)}))},s.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},s.prototype.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row===t.end.row&&t.start.row===this.pos.row){this.$updating=!0;var r="insert"===e.action?t.end.column-t.start.column:t.start.column-t.end.column,i=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,o=t.start.column-this.pos.column;if(this.updateAnchors(e),i&&(this.length+=r),i&&!this.session.$fromUndo)if("insert"===e.action)for(var s=this.others.length-1;0<=s;s--){var a={row:(l=this.others[s]).row,column:l.column+o};this.doc.insertMergedLines(a,e.lines)}else if("remove"===e.action)for(s=this.others.length-1;0<=s;s--){var l;a={row:(l=this.others[s]).row,column:l.column+o},this.doc.remove(new n(a.row,a.column,a.row,a.column-r))}this.$updating=!1,this.updateMarkers()}},s.prototype.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},s.prototype.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,r=function(r,i){t.removeMarker(r.markerId),r.markerId=t.addMarker(new n(r.row,r.column,r.row,r.column+e.length),i,null,!1)};r(this.pos,this.mainClass);for(var i=this.others.length;i--;)r(this.others[i],this.othersClass)}},s.prototype.onCursorChange=function(e){var t;!this.$updating&&this.session&&((t=this.session.selection.getCursor()).row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e)))},s.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},s.prototype.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,r=0;r<t;r++)e.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},s);function s(e,t,r,n,i,o){var s=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=i,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=n,this.$onCursorChange=function(){setTimeout(function(){s.onCursorChange()})},this.$pos=r,t=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1},this.$undoStackDepth=t.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)}e.implement(o.prototype,i),t.PlaceHolder=o}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,r){var n=e("../lib/event"),i=e("../lib/useragent");function o(e,t){return e.row==t.row&&e.column==t.column}t.onMouseDown=function(e){var t=e.domEvent,r=t.altKey,s=t.shiftKey,a=t.ctrlKey,l=e.getAccelKey(),c=e.getButton();if(a&&i.isMac&&(c=t.button),e.editor.inMultiSelectMode&&2==c)e.editor.textInput.onContextMenu(e.domEvent);else if(a||r||l){if(0===c){var u,d,h,p,f,m,g,y,v=e.editor,b=v.selection,w=v.inMultiSelectMode,x=e.getDocumentPosition(),A=b.getCursor(),C=(A=e.inSelection()||b.isEmpty()&&o(x,A),e.x),S=e.y,I=v.session,k=v.renderer.pixelToScreenCoordinates(C,S),E=k;if(v.$mouseHandler.$enableJumpToDef)a&&r||l&&r?u=s?"block":"add":r&&v.$blockSelectEnabled&&(u="block");else if(l&&!r){if(u="add",!w&&s)return}else r&&v.$blockSelectEnabled&&(u="block");if(u&&i.isMac&&t.ctrlKey&&v.$mouseHandler.cancelContextMenu(),"add"==u)!w&&A||(w||(d=b.toOrientedRange(),v.addSelectionMarker(d)),h=b.rangeList.rangeAtPoint(x),v.inVirtualSelectionMode=!0,s&&(h=null,d=b.ranges[0]||d,v.removeSelectionMarker(d)),v.once("mouseup",function(){var e=b.toOrientedRange();h&&e.isEmpty()&&o(h.cursor,e.cursor)?b.substractPoint(e.cursor):(s?b.substractPoint(d.cursor):d&&(v.removeSelectionMarker(d),b.addRange(d)),b.addRange(e)),v.inVirtualSelectionMode=!1}));else if("block"==u)return e.stop(),v.inVirtualSelectionMode=!0,f=[],m=function(){var e=v.renderer.pixelToScreenCoordinates(C,S),t=I.screenToDocumentPosition(e.row,e.column,e.offsetX);o(E,e)&&o(t,b.lead)||(E=e,v.selection.moveToPosition(t),v.renderer.scrollCursorIntoView(),v.removeSelectionMarkers(f),f=b.rectangularRangeBlock(E,k),v.$mouseHandler.$clickSelection&&1==f.length&&f[0].isEmpty()&&(f[0]=v.$mouseHandler.$clickSelection.clone()),f.forEach(v.addSelectionMarker,v),v.updateSelectionMarkers())},w&&!l?b.toSingleRange():!w&&l&&(p=b.toOrientedRange(),v.addSelectionMarker(p)),s?k=I.documentToScreenPosition(b.lead):b.moveToPosition(x),E={row:-1,column:-1},g=m,n.capture(v.container,function(e){C=e.clientX,S=e.clientY},function(e){m(),clearInterval(y),v.removeSelectionMarkers(f),f.length||(f=[b.toOrientedRange()]),p&&(v.removeSelectionMarker(p),b.toSingleRange(p));for(var t=0;t<f.length;t++)b.addRange(f[t]);v.inVirtualSelectionMode=!1,v.$mouseHandler.$clickSelection=null}),y=setInterval(function(){g()},20),e.preventDefault()}}else 0===c&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(e,t,r){t.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(e){e.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(e){e.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(e){1<e.multiSelect.rangeCount?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}],e=e("../keyboard/hash_handler").HashHandler,t.keyboardHandler=new e(t.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(e,t,r){var n=e("./range_list").RangeList,i=e("./range").Range,o=e("./selection").Selection,s=e("./mouse/multi_select_handler").onMouseDown,a=e("./lib/event"),l=e("./lib/lang"),c=e("./commands/multi_select_commands");t.commands=c.defaultCommands.concat(c.multiSelectCommands);var u=new(e("./search").Search),d=e("./edit_session").EditSession;function h(e){var r,n;function i(e){n&&(r.renderer.setMouseCursor(""),n=!1)}e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",s),e.commands.addCommands(c.defaultCommands),(r=e).textInput&&(e=r.textInput.getElement(),n=!1,a.addListener(e,"keydown",function(e){e=18==e.keyCode&&!(e.ctrlKey||e.shiftKey||e.metaKey),r.$blockSelectEnabled&&e?n||(r.renderer.setMouseCursor("crosshair"),n=!0):n&&i()},r),a.addListener(e,"keyup",i,r),a.addListener(e,"blur",i,r)))}(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(d.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var r=this.toOrientedRange();if(this.rangeList.add(r),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(r),this.$onAddRange(r)}return e.cursor||(e.cursor=e.end),r=this.rangeList.add(e),this.$onAddRange(e),r.length&&this.$onRemoveRange(r),1<this.rangeCount&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){if(e=this.rangeList.substractPoint(e))return this.$onRemoveRange(e),e[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){var t;this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode&&(t=this.rangeList.ranges.pop(),e.push(t),this.rangeCount=0);for(var r=e.length;r--;){var n=this.ranges.indexOf(e[r]);this.ranges.splice(n,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new n,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var e=this.ranges.length?this.ranges:[this.getRange()],t=[],r=0;r<e.length;r++){var n=e[r],o=n.start.row,s=n.end.row;if(o===s)t.push(n.clone());else{for(t.push(new i(o,n.start.column,o,this.session.getLine(o).length));++o<s;)t.push(this.getLineRange(o,!0));t.push(new i(s,0,s,n.end.column))}0!=r||this.isBackwards()||(t=t.reverse())}for(this.toSingleRange(),r=t.length;r--;)this.addRange(t[r])},this.joinSelections=function(){var e=(t=this.rangeList.ranges)[t.length-1],t=i.fromPoints(t[0].start,e.end);this.toSingleRange(),this.setSelectionRange(t,e.cursor==e.start)},this.toggleBlockSelection=function(){var e,t;1<this.rangeCount?(t=(e=this.rangeList.ranges)[e.length-1],e=i.fromPoints(e[0].start,t.end),this.toSingleRange(),this.setSelectionRange(e,t.cursor==t.start)):(e=this.session.documentToScreenPosition(this.cursor),t=this.session.documentToScreenPosition(this.anchor),this.rectangularRangeBlock(e,t).forEach(this.addRange,this))},this.rectangularRangeBlock=function(e,t,r){var n,o,s,a,l,c,u,d=[],h=e.column<t.column,p=(a=(h?(n=e.column,o=t.column,s=e.offsetX,t):(n=t.column,o=e.column,s=t.offsetX,e)).offsetX,e.row<t.row);c=(p?(l=e.row,t):(l=t.row,e)).row,n<0&&(n=0),(l=l<0?0:l)==c&&(r=!0);for(var f,m,g=l;g<=c;g++){var y=i.fromPoints(this.session.screenToDocumentPosition(g,n,s),this.session.screenToDocumentPosition(g,o,a));if(y.isEmpty()){if(u&&(m=u,(f=y.end).row==m.row)&&f.column==m.column)break;u=y.end}y.cursor=h?y.start:y.end,d.push(y)}if(p&&d.reverse(),!r){for(var v=d.length-1;d[v].isEmpty()&&0<v;)v--;if(0<v)for(var b=0;d[b].isEmpty();)b++;for(var w=v;b<=w;w--)d[w].isEmpty()&&d.splice(w,1)}return d}}.call(o.prototype),d=e("./editor").Editor,function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){e.marker&&(this.session.removeMarker(e.marker),-1!=(e=this.session.$selectionMarkers.indexOf(e))&&this.session.$selectionMarkers.splice(e,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length)},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,r=e.length;r--;){var n=e[r];n.marker&&(this.session.removeMarker(n.marker),-1!=(n=t.indexOf(n)))&&t.splice(n,1)}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(c.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(c.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t,r=e.command,n=e.editor;if(n.multiSelect)return r.multiSelectAction?t="forEach"==r.multiSelectAction?n.forEachSelection(r,e.args):"forEachLine"==r.multiSelectAction?n.forEachSelection(r,e.args,!0):"single"==r.multiSelectAction?(n.exitMultiSelectMode(),r.exec(n,e.args||{})):r.multiSelectAction(n,e.args||{}):(t=r.exec(n,e.args||{}),n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()),t},this.forEachSelection=function(e,t,r){if(!this.inVirtualSelectionMode){var n,i=r&&r.keepOrder,s=1==r||r&&r.$byLines,a=this.session,l=(r=this.selection).rangeList,c=(i?r:l).ranges;if(!c.length)return e.exec?e.exec(this,t||{}):e(this,t||{});i=r._eventRegistry;var u=(r._eventRegistry={},new o(a));this.inVirtualSelectionMode=!0;for(var d=c.length;d--;){if(s)for(;0<d&&c[d].start.row==c[d-1].end.row;)d--;u.fromOrientedRange(c[d]),u.index=d,this.selection=a.selection=u;var h=e.exec?e.exec(this,t||{}):e(this,t||{});n||void 0===h||(n=h),u.toOrientedRange(c[d])}return u.detach(),this.selection=a.selection=r,this.inVirtualSelectionMode=!1,r._eventRegistry=i,r.mergeOverlappingRanges(),r.ranges[0]&&r.fromOrientedRange(r.ranges[0]),l=this.renderer.$scrollAnimation,this.onCursorChange(),this.onSelectionChange(),l&&l.from==l.to&&this.renderer.animateScrolling(l.from),n}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,r=[],n=0;n<t.length;n++)r.push(this.session.getTextRange(t[n]));var i=this.session.getDocument().getNewLineCharacter();(e=r.join(i)).length==(r.length-1)*i.length&&(e="")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){var r;this.inMultiSelectMode&&!this.inVirtualSelectionMode&&(r=this.multiSelect.ranges[0],this.multiSelect.isEmpty()&&t==this.multiSelect.anchor||((r=t==this.multiSelect.anchor?r.cursor==r.start?r.end:r.start:r.cursor).row!=t.row||this.session.$clipPositionToDocument(r.row,r.column).column!=t.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()))},this.findAll=function(e,t,r){(t=t||{}).needle=e||t.needle,null==t.needle&&(n=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange(),t.needle=this.session.getTextRange(n)),this.$search.set(t);var n,i=this.$search.findAll(this.session);if(!i.length)return 0;var o=this.multiSelect;r||o.toSingleRange(i[0]);for(var s=i.length;s--;)o.addRange(i[s],!0);return n&&o.rangeList.rangeAtPoint(n.start)&&o.addRange(n,!0),i.length},this.selectMoreLines=function(e,t){var r,n,o,s=this.selection.toOrientedRange(),a=s.cursor==s.end,l=this.session.documentToScreenPosition(s.cursor),c=(this.selection.$desiredColumn&&(l.column=this.selection.$desiredColumn),this.session.screenToDocumentPosition(l.row+e,l.column));e=s.isEmpty()?c:(r=this.session.documentToScreenPosition(a?s.end:s.start),this.session.screenToDocumentPosition(r.row+e,r.column)),a?(n=i.fromPoints(c,e)).cursor=n.start:(n=i.fromPoints(e,c)).cursor=n.end,n.desiredColumn=l.column,this.selection.inMultiSelectMode?t&&(o=s.cursor):this.selection.addRange(s),this.selection.addRange(n),o&&this.selection.substractPoint(o)},this.transposeSelections=function(e){for(var t,r=this.session,n=r.multiSelect,i=n.ranges,o=i.length;o--;)(a=i[o]).isEmpty()&&(t=r.getWordRange(a.start.row,a.start.column),a.start.row=t.start.row,a.start.column=t.start.column,a.end.row=t.end.row,a.end.column=t.end.column);n.mergeOverlappingRanges();var s=[];for(o=i.length;o--;){var a=i[o];s.unshift(r.getTextRange(a))}for(e<0?s.unshift(s.pop()):s.push(s.shift()),o=i.length;o--;){var l=(a=i[o]).clone();r.replace(a,s[o]),a.start.row=l.start.row,a.start.column=l.start.column}n.fromOrientedRange(n.ranges[0])},this.selectMore=function(e,t,r){var n,i=this.session,o=i.multiSelect.toOrientedRange();o.isEmpty()&&((o=i.getWordRange(o.start.row,o.start.column)).cursor=-1==e?o.start:o.end,this.multiSelect.addRange(o),r)||(r=i.getTextRange(o),n=e,u.$options.wrap=!0,u.$options.needle=r,u.$options.backwards=-1==n,(r=u.find(i))&&(r.cursor=-1==e?r.start:r.end,this.session.unfold(r),this.multiSelect.addRange(r),this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(o.cursor))},this.alignCursors=function(){var e=this.session,t=e.multiSelect,r=t.ranges,n=-1,o=r.filter(function(e){if(e.cursor.row==n)return!0;n=e.cursor.row});if(r.length&&o.length!=r.length-1){o.forEach(function(e){t.substractPoint(e.cursor)});var s=0,a=1/0,c=r.map(function(t){t=t.cursor;var r=e.getLine(t.row).substr(t.column).search(/\S/g);return t.column>s&&(s=t.column),(r=-1==r?0:r)<a&&(a=r),r});r.forEach(function(t,r){var n=t.cursor,o=s-n.column;(r=c[r]-a)<o?e.insert(n,l.stringRepeat(" ",o-r)):e.remove(new i(n.row,n.column,n.row,n.column-o+r)),t.start.column=t.end.column=s,t.start.row=t.end.row=n.row,t.cursor=t.end}),t.fromOrientedRange(r[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var u=(o=this.selection.getRange()).start.row,d=o.end.row;if(r=u==d){for(var h,p=this.session.getLength();h=this.session.getLine(d),/[=:]/.test(h)&&++d<p;);for(;h=this.session.getLine(u),/[=:]/.test(h)&&0<--u;);u<0&&(u=0),p<=d&&(d=p-1)}var f=this.session.removeFullLines(u,d);f=this.$reAlignText(f,r),this.session.insert({row:u,column:0},f.join("\n")+"\n"),r||(o.start.column=0,o.end.column=f[f.length-1].length),this.selection.setRange(o)}},this.$reAlignText=function(e,t){var r,n,i,o=!0,s=!0;return e.map(function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?(null==r?(r=t[1].length,n=t[2].length,i=t[3].length):(r+n+i!=t[1].length+t[2].length+t[3].length&&(s=!1),r!=t[1].length&&(o=!1),r>t[1].length&&(r=t[1].length),n<t[2].length&&(n=t[2].length),i>t[3].length&&(i=t[3].length)),t):[e]}).map(t?c:o?s?function(e){return e[2]?a(r+n-e[2].length)+e[2]+a(i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:c:function(e){return e[2]?a(r)+e[2]+a(i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]});function a(e){return l.stringRepeat(" ",e)}function c(e){return e[2]?a(r)+e[2]+a(n-e[2].length+i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}.call(d.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect,(e=e.oldSession)&&(e.multiSelect.off("addRange",this.$onAddRange),e.multiSelect.off("removeRange",this.$onRemoveRange),e.multiSelect.off("multiSelect",this.$onMultiSelect),e.multiSelect.off("singleSelect",this.$onSingleSelect),e.multiSelect.lead.off("change",this.$checkMultiselectChange),e.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=h,e("./config").defineOptions(d.prototype,"editor",{enableMultiselect:{set:function(e){h(this),e?this.on("mousedown",s):this.off("mousedown",s)},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,t,r){var n=e("../../range").Range;e=t.FoldMode=function(){},function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,r){return e=e.getLine(r),this.foldingStartMarker.test(e)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(e)?"end":""},this.getFoldWidgetRange=function(e,t,r){return null},this.indentationBlock=function(e,t,r){var i=/\S/,o=(l=e.getLine(t)).search(i);if(-1!=o){r=r||l.length;for(var s,a=e.getLength(),l=t,c=t;++t<a;){var u=e.getLine(t).search(i);if(-1!=u){if(u<=o&&(!(u=e.getTokenAt(t,0))||"string"!==u.type))break;c=t}}return l<c?(s=e.getLine(c).length,new n(l,r,c,s)):void 0}},this.openingBracketBlock=function(e,t,r,i,o){if(r={row:r,column:i+1},i=e.$findClosingBracket(t,r,o))return"start"==(t=null==(t=e.foldWidgets[i.row])?e.getFoldWidget(i.row):t)&&i.row>r.row&&(i.row--,i.column=e.getLine(i.row).length),n.fromPoints(r,i)},this.closingBracketBlock=function(e,t,r,i,o){if(r={row:r,column:i},i=e.$findOpeningBracket(t,r))return i.column++,r.column--,n.fromPoints(i,r)}}.call(e.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(e,t,r){var n=e("../lib/dom"),i=e("../range").Range,o=e("../config").nls;function s(e,t,r){var n=e.getAnnotations().sort(i.comparePoints);if(n.length){var o=((e,t,r)=>{for(var n=0,i=e.length-1;n<=i;){var o=n+i>>1,s=r(t,e[o]);if(0<s)n=1+o;else{if(!(s<0))return o;i=o-1}}return-(n+1)})(n,{row:t,column:-1},i.comparePoints),s=(n.length<=(o=o<0?-o-1:o)?o=0<r?0:n.length-1:0===o&&r<0&&(o=n.length-1),n[o]);if(s&&r){if(s.row===t){for(;(s=n[o+=r])&&s.row===t;);if(!s)return n.slice()}var a=[];for(t=s.row;a[r<0?"unshift":"push"](s),(s=n[o+=r])&&s.row==t;);return a.length&&a}}}t.showErrorMarker=function(e,t){var r,i=e.session,a=e.getCursorPosition(),l=a.row,c=i.widgetManager.getWidgetsAtRow(l).filter(function(e){return"errorMarker"==e.type})[0];if(c?c.destroy():l-=t,l=s(i,l,t))t=l[0],a.column=(t.pos&&"number"!=typeof t.column?t.pos.sc:t.column)||0,a.row=t.row,r=e.renderer.$gutterLayer.$annotations[a.row];else{if(c)return;r={displayText:[o("error-marker.good-state","Looks good!")],className:"ace_ok"}}function u(e,t,r){if(0===t&&("esc"===r||"return"===r))return d.destroy(),{command:"null"}}e.session.unfold(a.row),e.selection.moveToPosition(a);var d={row:a.row,fixedWidth:!0,coverGutter:!0,el:n.createElement("div"),type:"errorMarker"},h=d.el.appendChild(n.createElement("div"));(l=d.el.appendChild(n.createElement("div"))).className="error_widget_arrow "+r.className,t=e.renderer.$cursorLayer.getPixelPosition(a).left,l.style.left=t+e.renderer.gutterWidth-5+"px",d.el.className="error_widget_wrapper",h.className="error_widget "+r.className,r.displayText.forEach(function(e,t){h.appendChild(n.createTextNode(e)),t<r.displayText.length-1&&h.appendChild(n.createElement("br"))}),h.appendChild(n.createElement("div")),d.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(u),i.widgetManager.removeLineWidget(d),e.off("changeSelection",d.destroy),e.off("changeSession",d.destroy),e.off("mouseup",d.destroy),e.off("change",d.destroy))},e.keyBinding.addKeyboardHandler(u),e.on("changeSelection",d.destroy),e.on("changeSession",d.destroy),e.on("mouseup",d.destroy),e.on("change",d.destroy),e.session.widgetManager.addLineWidget(d),d.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:d.el.offsetHeight})},n.importCssString("\n .error_widget_wrapper {\n background: inherit;\n color: inherit;\n border:none\n }\n .error_widget {\n border-top: solid 2px;\n border-bottom: solid 2px;\n margin: 5px 0;\n padding: 10px 40px;\n white-space: pre-wrap;\n }\n .error_widget.ace_error, .error_widget_arrow.ace_error{\n border-color: #ff5a5a\n }\n .error_widget.ace_warning, .error_widget_arrow.ace_warning{\n border-color: #F1D817\n }\n .error_widget.ace_info, .error_widget_arrow.ace_info{\n border-color: #5a5a5a\n }\n .error_widget.ace_ok, .error_widget_arrow.ace_ok{\n border-color: #5aaa5a\n }\n .error_widget_arrow {\n position: absolute;\n border: solid 5px;\n border-top-color: transparent!important;\n border-right-color: transparent!important;\n border-left-color: transparent!important;\n top: -5px;\n }\n","error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(e,t,r){e("./loader_build")(t);var n=e("./lib/dom"),i=e("./range").Range,o=e("./editor").Editor,s=e("./edit_session").EditSession,a=e("./undomanager").UndoManager,l=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.edit=function(e,r){if("string"==typeof e){var i=e;if(!(e=document.getElementById(i)))throw new Error("ace.edit can't find div #"+i)}var s,a;return e&&e.env&&e.env.editor instanceof o?e.env.editor:(i="",e&&/input|textarea/i.test(e.tagName)?(i=(s=e).value,e=n.createElement("pre"),s.parentNode.replaceChild(e,s)):e&&(i=e.textContent,e.innerHTML=""),i=t.createEditSession(i),e=new o(new l(e),i,r),a={document:i,editor:e,onResize:e.resize.bind(e,null)},s&&(a.textarea=s),e.on("destroy",function(){a.editor.container.env=null}),e.container.env=e.env=a,e)},t.createEditSession=function(e,t){return(e=new s(e,t)).setUndoManager(new a),e},t.Range=i,t.Editor=o,t.EditSession=s,t.UndoManager=a,t.VirtualRenderer=l,e=t.config.version,t.version=e}),ace.require(["ace/ace"],function(t){t&&(t.config.init(!0),t.define=ace.define);var r,n=function(){return this}();for(r in(n=(n=n||"undefined"==typeof window?n:window)||"undefined"==typeof self?n:self).ace||(n.ace=t),t)t.hasOwnProperty(r)&&(n.ace[r]=t[r]);n.ace.default=n.ace,e&&(e.exports=n.ace)})},7096:function(e){e.exports=function(e,t,r){var n,i,o,s=" ",a=e.level,l=e.dataLevel,c=e.schema[t],u=(t=e.errSchemaPath+"/"+t,!e.opts.allErrors),d="data"+(l||"");if(a="valid"+a,"#"==c||"#/"==c)i=e.isRoot?(n=e.async,"validate"):(n=!0===e.root.schema.$async,"root.refVal[0]");else{var h=e.resolveRef(e.baseId,c,e.isRoot);if(void 0===h){var p=e.MissingRefError.message(e.baseId,c);if("fail"==e.opts.missingRefs)e.logger.error(p),(o=o||[]).push(s),s="",!1!==e.createErrors?(s+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(t)+" , params: { ref: '"+e.util.escapeQuotes(c)+"' } ",!1!==e.opts.messages&&(s+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(c)+"' "),e.opts.verbose&&(s+=" , schema: "+e.util.toQuotedString(c)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ",t=s,s=o.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+t+"]); ":s+=" validate.errors = ["+t+"]; return false; ":s+=" var err = "+t+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(s+=" if (false) { ");else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,c,p);e.logger.warn(p),u&&(s+=" if (true) { ")}}else h.inline?((t=e.util.copy(e)).level++,p="valid"+t.level,t.schema=h.schema,t.schemaPath="",t.errSchemaPath=c,s+=" "+e.validate(t).replace(/validate\.schema/g,h.code)+" ",u&&(s+=" if ("+p+") { ")):(n=!0===h.$async||e.async&&!1!==h.$async,i=h.code)}if(i)if((o=o||[]).push(s),s="",e.opts.passContext?s+=" "+i+".call(this, ":s+=" "+i+"( ",s+=" "+d+", (dataPath || '')",'""'!=e.errorPath&&(s+=" + "+e.errorPath),t=s+=" , "+(c=l?"data"+(l-1||""):"parentData")+" , "+(l?e.dataPathArr[l]:"parentDataProperty")+", rootData) ",s=o.pop(),n){if(!e.async)throw new Error("async schema referenced by sync schema");u&&(s+=" var "+a+"; "),s+=" try { await "+t+"; ",u&&(s+=" "+a+" = true; "),s+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(s+=" "+a+" = false; "),s+=" } ",u&&(s+=" if ("+a+") { ")}else s+=" if (!"+t+") { if (vErrors === null) vErrors = "+i+".errors; else vErrors = vErrors.concat("+i+".errors); errors = vErrors.length; } ",u&&(s+=" else { ");return s}},7112:function(e){e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=(t=e.errSchemaPath+"/"+t,!e.opts.allErrors),c="data"+(o||""),u="valid"+i,d=e.opts.$data&&s&&s.$data;return d&&(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; "),o="schema"+i,(d||(n+=" var "+o+" = validate.schema"+a+";"),n+="var "+u+";",d&&(n+=" if (schema"+i+" === undefined) "+u+" = true; else if (!Array.isArray(schema"+i+")) "+u+" = false; else {"),n+=u+" = false;for (var "+(s="i"+i)+"=0; "+s+"<"+o+".length; "+s+"++) if (equal("+c+", "+o+"["+s+"])) { "+u+" = true; break; }",d&&(n+=" } "),o=[]).push(n+=" if (!"+u+") { "),n="",!1!==e.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(t)+" , params: { allowedValues: schema"+i+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ",s=n,n=o.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+s+"]); ":n+=" validate.errors = ["+s+"]; return false; ":n+=" var err = "+s+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",l&&(n+=" else { "),n}},7413:function(e,t,r){var n;if(window.ace)n=window.ace;else try{n=r(6990),r(4221),r(6534),r(6489);var i=r(5477);n.config.setModuleUrl("ace/mode/json_worker",i)}catch(e){}e.exports=n},7483:function(e,t,r){r.r(t),r.d(t,{previewModeMixins:function(){return g}});var n=r(9857),i=r(660),o=r(2115),s=r(2877);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(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,(e=>(e=(e=>{if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);if("object"!=a(t=t.call(e,"string")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")})(e),"symbol"==a(e)?e:e+""))(n.key),n)}}var c=(()=>{return e=function e(t,r,n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.onChange=t,this.calculateItemSize=r||function(){return 1},this.limit=n,this.items=[],this.index=-1},(t=[{key:"add",value:function(e){for(;this._calculateHistorySize()>this.limit&&1<this.items.length;)this.items.shift(),this.index--;this.items=this.items.slice(0,this.index+1),this.items.push(e),this.index++,this.onChange()}},{key:"_calculateHistorySize",value:function(){var e=this.calculateItemSize,t=0;return this.items.forEach(function(r){t+=e(r)}),t}},{key:"undo",value:function(){if(this.canUndo())return this.index--,this.onChange(),this.items[this.index]}},{key:"redo",value:function(){if(this.canRedo())return this.index++,this.onChange(),this.items[this.index]}},{key:"canUndo",value:function(){return 0<this.index}},{key:"canRedo",value:function(){return this.index<this.items.length-1}},{key:"clear",value:function(){this.items=[],this.index=-1,this.onChange()}}])&&l(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t})(),u=r(3057),d=r(359),h=r(1389),p=r(2915),f=r(5609),m=(t=r(1948),r(6237)),g=(r=t.textModeMixins[0].mixin,t={create:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=(void 0===t.statusBar&&(t.statusBar=!0),t.mainMenuBar=!1!==t.mainMenuBar,t.enableSort=!1!==t.enableSort,t.enableTransform=!1!==t.enableTransform,t.createQuery=t.createQuery||d.V,t.executeQuery=t.executeQuery||d.e,this.options=t,this.indentation="number"==typeof t.indentation?Number(t.indentation):2,(0,u.AI)(this.options.languages),(0,u.xC)(this.options.language),this.mode="preview",this);this.container=e,this.dom={},this.json=void 0,this.text="",this._debouncedValidate=(0,m.debounce)(this.validate.bind(this),this.DEBOUNCE_INTERVAL),this.width=e.clientWidth,this.height=e.clientHeight,this.frame=document.createElement("div"),this.frame.className="jsoneditor jsoneditor-mode-preview",this.frame.onclick=function(e){e.preventDefault()},e={target:this.frame,onFocus:this.options.onFocus||null,onBlur:this.options.onBlur||null},this.frameFocusTracker=new s.$(e),this.content=document.createElement("div"),this.content.className="jsoneditor-outer",this.dom.busy=document.createElement("div"),this.dom.busy.className="jsoneditor-busy",this.dom.busyContent=document.createElement("span"),this.dom.busyContent.textContent="busy...",this.dom.busy.appendChild(this.dom.busyContent),this.content.appendChild(this.dom.busy),this.dom.previewContent=document.createElement("pre"),this.dom.previewContent.className="jsoneditor-preview",this.dom.previewText=document.createTextNode(""),this.dom.previewContent.appendChild(this.dom.previewText),this.content.appendChild(this.dom.previewContent),this.options.mainMenuBar&&((0,m.addClassName)(this.content,"has-main-menu-bar"),this.menu=document.createElement("div"),this.menu.className="jsoneditor-menu",this.frame.appendChild(this.menu),(e=document.createElement("button")).type="button",e.className="jsoneditor-format",e.title=(0,u.Tl)("formatTitle"),this.menu.appendChild(e),e.onclick=function(){r.executeWithBusyMessage(function(){try{r.format()}catch(e){r._onError(e)}},"formatting...")},(e=document.createElement("button")).type="button",e.className="jsoneditor-compact",e.title=(0,u.Tl)("compactTitle"),this.menu.appendChild(e),e.onclick=function(){r.executeWithBusyMessage(function(){try{r.compact()}catch(e){r._onError(e)}},"compacting...")},this.options.enableSort&&((e=document.createElement("button")).type="button",e.className="jsoneditor-sort",e.title=(0,u.Tl)("sortTitleShort"),e.onclick=function(){r._showSortModal()},this.menu.appendChild(e)),this.options.enableTransform&&((e=document.createElement("button")).type="button",e.title=(0,u.Tl)("transformTitleShort"),e.className="jsoneditor-transform",e.onclick=function(){r._showTransformModal()},this.dom.transform=e,this.menu.appendChild(e)),(e=document.createElement("button")).type="button",e.className="jsoneditor-repair",e.title=(0,u.Tl)("repairTitle"),this.menu.appendChild(e),!(e.onclick=function(){void 0===r.json&&r.executeWithBusyMessage(function(){try{r.repair()}catch(e){r._onError(e)}},"repairing...")})!==this.options.history&&(this.history=new c(function(){r.dom.undo.disabled=!r.history.canUndo(),r.dom.redo.disabled=!r.history.canRedo()},function(e){return 2*e.text.length},i.SC),(e=document.createElement("button")).type="button",e.className="jsoneditor-undo jsoneditor-separator",e.title=(0,u.Tl)("undo"),e.onclick=function(){var e=r.history.undo();e&&r._applyHistory(e)},this.menu.appendChild(e),this.dom.undo=e,(e=document.createElement("button")).type="button",e.className="jsoneditor-redo",e.title=(0,u.Tl)("redo"),e.onclick=function(){var e=r.history.redo();e&&r._applyHistory(e)},this.menu.appendChild(e),this.dom.redo=e,this.history.onChange()),this.options)&&this.options.modes&&this.options.modes.length&&(this.modeSwitcher=new h.n(this.menu,this.options.modes,this.options.mode,function(e){try{r.setMode(e),r.modeSwitcher.focus()}catch(e){r._onError(e)}})),e=Array.isArray(this.options.showErrorTable)?this.options.showErrorTable.includes(this.mode):!0===this.options.showErrorTable,this.errorTable=new o.N({errorTableVisible:e,onToggleVisibility:function(){r.validate()},onFocusLine:null,onChangeHeight:function(e){e=e+(r.dom.statusBar?r.dom.statusBar.clientHeight:0)+1,r.content.style.marginBottom=-e+"px",r.content.style.paddingBottom=e+"px"}}),this.frame.appendChild(this.content),this.frame.appendChild(this.errorTable.getErrorTable()),this.container.appendChild(this.frame),t.statusBar&&((0,m.addClassName)(this.content,"has-status-bar"),e=document.createElement("div"),(this.dom.statusBar=e).className="jsoneditor-statusbar",this.frame.appendChild(e),this.dom.fileSizeInfo=document.createElement("span"),this.dom.fileSizeInfo.className="jsoneditor-size-info",this.dom.fileSizeInfo.innerText="",e.appendChild(this.dom.fileSizeInfo),this.dom.arrayInfo=document.createElement("span"),this.dom.arrayInfo.className="jsoneditor-size-info",this.dom.arrayInfo.innerText="",e.appendChild(this.dom.arrayInfo),e.appendChild(this.errorTable.getErrorCounter()),e.appendChild(this.errorTable.getWarningIcon()),e.appendChild(this.errorTable.getErrorIcon())),this._renderPreview(),this.setSchema(this.options.schema,this.options.schemaRefs)},_renderPreview:function(){var e=this.getText();this.dom.previewText.nodeValue=(0,m.limitCharacters)(e,i.hJ),this.dom.fileSizeInfo&&(this.dom.fileSizeInfo.innerText="Size: "+(0,m.formatSize)(e.length)),this.dom.arrayInfo&&(Array.isArray(this.json)?this.dom.arrayInfo.innerText="Array: "+this.json.length+" items":this.dom.arrayInfo.innerText="")},_onChange:function(){if(this._debouncedValidate(),this.options.onChange)try{this.options.onChange()}catch(e){console.error("Error in onChange callback: ",e)}if(this.options.onChangeJSON)try{this.options.onChangeJSON(this.get())}catch(e){console.error("Error in onChangeJSON callback: ",e)}if(this.options.onChangeText)try{this.options.onChangeText(this.getText())}catch(e){console.error("Error in onChangeText callback: ",e)}}},t._showSortModal=function(){var e=this;this.executeWithBusyMessage(function(){var t=e.options.modalAnchor||i.ai,r=e.get();e._renderPreview(),(0,p.showSortModal)(t,r,function(t){e.executeWithBusyMessage(function(){var n,i,o;n=r,i=t,Array.isArray(n)&&(o=(0,m.sort)(n,i.path,i.direction),e.sortedBy=i,e._setAndFireOnChange(o)),(0,m.isObject)(n)&&(o=(0,m.sortObjectKeys)(n,i.direction),e.sortedBy=i,e._setAndFireOnChange(o))},"sorting...")},e.sortedBy)},"parsing...")},t._showTransformModal=function(){var e=this;this.executeWithBusyMessage(function(){var t=(o=e.options).createQuery,r=o.executeQuery,n=o.modalAnchor,o=o.queryDescription,s=e.get();e._renderPreview(),(0,f.showTransformModal)({container:n||i.ai,json:s,queryDescription:o,createQuery:t,executeQuery:r,onTransform:function(t){e.executeWithBusyMessage(function(){var n=r(s,t);e._setAndFireOnChange(n)},"transforming...")}})},"parsing...")},t.destroy=function(){this.frame&&this.container&&this.frame.parentNode===this.container&&this.container.removeChild(this.frame),this.modeSwitcher&&(this.modeSwitcher.destroy(),this.modeSwitcher=null),this._debouncedValidate=null,this.history&&(this.history.clear(),this.history=null),this.frameFocusTracker.destroy()},t.compact=function(){var e=this.get(),t=JSON.stringify(e);this._setTextAndFireOnChange(t,e)},t.format=function(){var e=this.get(),t=JSON.stringify(e,null,this.indentation);this._setTextAndFireOnChange(t,e)},t.repair=function(){var e=this.getText();try{var t=(0,n.m)(e);this._setTextAndFireOnChange(t)}catch(e){}},t.focus=function(){this.dom.transform.focus()},t.set=function(e){this.history&&this.history.clear(),this._set(e)},t.update=function(e){this._set(e)},t._set=function(e){this.text=void 0,this.json=e,this._renderPreview(),this._pushHistory(),this._debouncedValidate()},t._setAndFireOnChange=function(e){this._set(e),this._onChange()},t.get=function(){var e;return void 0===this.json&&(e=this.getText(),this.json=(0,m.parse)(e)),this.json},t.getText=function(){return void 0===this.text&&(this.text=JSON.stringify(this.json,null,this.indentation),!0===this.options.escapeUnicode)&&(this.text=(0,m.escapeUnicodeChars)(this.text)),this.text},t.setText=function(e){this.history&&this.history.clear(),this._setText(e)},t.updateText=function(e){this.getText()!==e&&this._setText(e)},t._setText=function(e,t){var r;!0===this.options.escapeUnicode?this.text=(0,m.escapeUnicodeChars)(e):this.text=e,this.json=t,this._renderPreview(),void 0===this.json?(r=this).executeWithBusyMessage(function(){try{r.json=r.get(),r._renderPreview(),r._pushHistory()}catch(e){}},"parsing..."):this._pushHistory(),this._debouncedValidate()},t._setTextAndFireOnChange=function(e,t){this._setText(e,t),this._onChange()},t._applyHistory=function(e){this.json=e.json,this.text=e.text,this._renderPreview(),this._debouncedValidate()},t._pushHistory=function(){var e;this.history&&(e={text:this.text,json:this.json},this.history.add(e))},t.executeWithBusyMessage=function(e,t){var r;this.getText().length>i.Oq?((0,m.addClassName)((r=this).frame,"busy"),r.dom.busyContent.innerText=t,setTimeout(function(){e(),(0,m.removeClassName)(r.frame,"busy"),r.dom.busyContent.innerText=""},100)):e()},t.validate=r.validate,t._renderErrors=r._renderErrors,[{mode:"preview",mixin:t,data:"json"}])},7598:function(e){e.exports=(()=>{function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var t=(()=>{function e(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,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}})(),r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var r=t,n=[],i=!0,o=void(t=!1);try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!r||n.length!==r);i=!0);}catch(e){t=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(t)throw o}}return n}throw new TypeError("Invalid attempt to destructure non-iterable instance")},n=(String.prototype.startsWith=String.prototype.startsWith||function(e){return 0===this.indexOf(e)},String.prototype.padStart=String.prototype.padStart||function(e,t){for(var r=this;r.length<e;)r=t+r;return r},{cb:"0f8ff",tqw:"aebd7",q:"-ffff",qmrn:"7fffd4",zr:"0ffff",bg:"5f5dc",bsq:"e4c4",bck:"---",nch:"ebcd",b:"--ff",bvt:"8a2be2",brwn:"a52a2a",brw:"deb887",ctb:"5f9ea0",hrt:"7fff-",chcT:"d2691e",cr:"7f50",rnw:"6495ed",crns:"8dc",crms:"dc143c",cn:"-ffff",Db:"--8b",Dcn:"-8b8b",Dgnr:"b8860b",Dgr:"a9a9a9",Dgrn:"-64-",Dkhk:"bdb76b",Dmgn:"8b-8b",Dvgr:"556b2f",Drng:"8c-",Drch:"9932cc",Dr:"8b--",Dsmn:"e9967a",Dsgr:"8fbc8f",DsTb:"483d8b",DsTg:"2f4f4f",Dtrq:"-ced1",Dvt:"94-d3",ppnk:"1493",pskb:"-bfff",mgr:"696969",grb:"1e90ff",rbrc:"b22222",rwht:"af0",stg:"228b22",chs:"-ff",gnsb:"dcdcdc",st:"8f8ff",g:"d7-",gnr:"daa520",gr:"808080",grn:"-8-0",grnw:"adff2f",hnw:"0fff0",htpn:"69b4",nnr:"cd5c5c",ng:"4b-82",vr:"0",khk:"0e68c",vnr:"e6e6fa",nrb:"0f5",wngr:"7cfc-",mnch:"acd",Lb:"add8e6",Lcr:"08080",Lcn:"e0ffff",Lgnr:"afad2",Lgr:"d3d3d3",Lgrn:"90ee90",Lpnk:"b6c1",Lsmn:"a07a",Lsgr:"20b2aa",Lskb:"87cefa",LsTg:"778899",Lstb:"b0c4de",Lw:"e0",m:"-ff-",mgrn:"32cd32",nn:"af0e6",mgnt:"-ff",mrn:"8--0",mqm:"66cdaa",mmb:"--cd",mmrc:"ba55d3",mmpr:"9370db",msg:"3cb371",mmsT:"7b68ee","":"-fa9a",mtr:"48d1cc",mmvt:"c71585",mnLb:"191970",ntc:"5fffa",mstr:"e4e1",mccs:"e4b5",vjw:"dead",nv:"--80",c:"df5e6",v:"808-0",vrb:"6b8e23",rng:"a5-",rngr:"45-",rch:"da70d6",pgnr:"eee8aa",pgrn:"98fb98",ptrq:"afeeee",pvtr:"db7093",ppwh:"efd5",pchp:"dab9",pr:"cd853f",pnk:"c0cb",pm:"dda0dd",pwrb:"b0e0e6",prp:"8-080",cc:"663399",r:"--",sbr:"bc8f8f",rb:"4169e1",sbrw:"8b4513",smn:"a8072",nbr:"4a460",sgrn:"2e8b57",ssh:"5ee",snn:"a0522d",svr:"c0c0c0",skb:"87ceeb",sTb:"6a5acd",sTgr:"708090",snw:"afa",n:"-ff7f",stb:"4682b4",tn:"d2b48c",t:"-8080",thst:"d8bfd8",tmT:"6347",trqs:"40e0d0",vt:"ee82ee",whT:"5deb3",wht:"",hts:"5f5f5",w:"-",wgrn:"9acd32"});function i(e,t){return(0<(t=1<arguments.length&&void 0!==t?t:1)?e.toFixed(t).replace(/0+$/,"").replace(/\.$/,""):e.toString())||"0"}var o=(()=>{function o(t,n,i,s){e(this,o);var a,l,c,u,d,h=this;void 0!==t&&(Array.isArray(t)?this.rgba=t:void 0===i?(a=t&&""+t)&&((a=a.toLowerCase()).startsWith("hsl")?(u=a.match(/([\-\d\.e]+)/g).map(Number),d=(u=r(u,4))[0],l=u[1],c=u[2],h.hsla=[d/=360,l/=100,c/=100,d=void 0===(d=u[3])?1:d]):a.startsWith("rgb")?(l=a.match(/([\-\d\.e]+)/g).map(Number),u=(c=r(l,4))[0],h.rgba=[u,c[1],c[2],d=void 0===(d=c[3])?1:d]):a.startsWith("#")?h.rgba=o.hexToRgb(a):h.rgba=o.nameToRgb(a)||o.hexToRgb(a)):this.rgba=[t,n,i,void 0===s?1:s])}return t(o,[{key:"printRGB",value:function(e){var t=(e?this.rgba:this.rgba.slice(0,3)).map(function(e,t){return i(e,3===t?3:0)});return e?"rgba("+t+")":"rgb("+t+")"}},{key:"printHSL",value:function(e){var t=[360,100,100,1],r=["","%","%",""],n=(e?this.hsla:this.hsla.slice(0,3)).map(function(e,n){return i(e*t[n],3===n?3:1)+r[n]});return e?"hsla("+n+")":"hsl("+n+")"}},{key:"printHex",value:function(e){var t=this.hex;return e?t:t.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(this._hsla)return this._rgba=o.hslToRgb(this._hsla);throw new Error("No color is set")},set:function(e){3===e.length&&(e[3]=1),this._rgba=e,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(this._rgba)return this._hsla=o.rgbToHsl(this._rgba);throw new Error("No color is set")},set:function(e){3===e.length&&(e[3]=1),this._hsla=e,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){return"#"+this.rgba.map(function(e,t){return(t<3?e:Math.round(255*e)).toString(16)}).map(function(e){return e.padStart(2,"0")}).join("")},set:function(e){this.rgba=o.hexToRgb(e)}}],[{key:"hexToRgb",value:function(e){var t=(e.startsWith("#")?e.slice(1):e).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(t.match(/^([0-9a-fA-F]{8})$/))return(t=t.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(e){return parseInt(e,16)}))[3]=t[3]/255,t;throw new Error("Unknown hex color; "+e)}},{key:"nameToRgb",value:function(e){return e=e.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),void 0===(e=n[e])?e:o.hexToRgb(e.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(e){var t=(e=r(e,4))[0],n=e[1],i=e[2],o=(e=e[3],t/=255,n/=255,i/=255,Math.max(t,n,i)),s=Math.min(t,n,i),a=void 0,l=void 0,c=(o+s)/2;if(o===s)a=l=0;else{var u=o-s;switch(l=.5<c?u/(2-o-s):u/(o+s),o){case t:a=(n-i)/u+(n<i?6:0);break;case n:a=(i-t)/u+2;break;case i:a=(t-n)/u+4}a/=6}return[a,l,c,e]}},{key:"hslToRgb",value:function(e){var t=(e=r(e,4))[0],n=e[1],i=e[2],o=void(e=e[3]),s=void 0,a=void 0,l=(0===n?o=s=a=i:(o=(l=function(e,t,r){return r<0&&(r+=1),1<r&&--r,r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e})(n=2*i-(i=i<.5?i*(1+n):i+n-i*n),i,t+1/3),s=l(n,i,t),a=l(n,i,t-1/3)),[255*o,255*s,255*a].map(Math.round));return l[3]=e,l}}]),o})(),s=(()=>{function r(){e(this,r),this._events=[]}return t(r,[{key:"add",value:function(e,t,r){e.addEventListener(t,r,!1),this._events.push({target:e,type:t,handler:r})}},{key:"remove",value:function(e,t,n){this._events=this._events.filter(function(i){var o=!0;return e&&e!==i.target&&(o=!1),t&&t!==i.type&&(o=!1),(o=(!n||n===i.handler)&&o)&&r._doRemove(i.target,i.type,i.handler),!o})}},{key:"destroy",value:function(){this._events.forEach(function(e){return r._doRemove(e.target,e.type,e.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(e,t,r){e.removeEventListener(t,r,!1)}}]),r})();function a(e,t,r){var n=!1;function i(e,t,r){return Math.max(t,Math.min(e,r))}function o(e,o,s){var a,l;(n=!!s||n)&&(e.preventDefault(),e=(s=t.getBoundingClientRect()).width,a=s.height,l=o.clientX,o=o.clientY,l=i(l-s.left,0,e),o=i(o-s.top,0,a),r(l/e,o/a))}function s(e,t){1===(void 0===e.buttons?e.which:e.buttons)?o(e,e,t):n=!1}function a(e,t){1===e.touches.length?o(e,e.touches[0],t):n=!1}e.add(t,"mousedown",function(e){s(e,!0)}),e.add(t,"touchstart",function(e){a(e,!0)}),e.add(window,"mousemove",s),e.add(t,"touchmove",a),e.add(window,"mouseup",function(e){n=!1}),e.add(t,"touchend",function(e){n=!1}),e.add(t,"touchcancel",function(e){n=!1})}var l="mousedown",c="focusin";function u(e,t){return(t||document).querySelector(e)}function d(e){e.preventDefault(),e.stopPropagation()}function h(e,t,r,n,i){e.add(t,"keydown",function(e){0<=r.indexOf(e.key)&&(i&&d(e),n(e))})}var p=(()=>{function r(t){e(this,r),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new s,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(t)}return t(r,[{key:"setOptions",value:function(e){var t=this;if(e){var r,n=this.settings;if(e instanceof HTMLElement)n.parent=e;else{n.parent&&e.parent&&n.parent!==e.parent&&(this._events.remove(n.parent),this._popupInited=!1);var i,o,s=e,a=n;for(i in s)a[i]=s[i];e.onChange&&(this.onChange=e.onChange),e.onDone&&(this.onDone=e.onDone),e.onOpen&&(this.onOpen=e.onOpen),e.onClose&&(this.onClose=e.onClose),(o=e.color||e.colour)&&this._setColor(o)}(o=n.parent)&&n.popup&&!this._popupInited?(this._events.add(o,"click",r=function(e){return t.openHandler(e)}),h(this._events,o,[" ","Spacebar","Enter"],r),this._popupInited=!0):e.parent&&!n.popup&&this.show()}}},{key:"openHandler",value:function(e){var t;this.show()&&(e&&e.preventDefault(),this.settings.parent.style.pointerEvents="none",t=e&&"keydown"===e.type?this._domEdit:this.domElement,setTimeout(function(){return t.focus()},100),this.onOpen)&&this.onOpen(this.colour)}},{key:"closeHandler",value:function(e){var t,r=e&&e.type,n=!1;e?r===l||r===c?(t=(this.__containedEvent||0)+100,e.timeStamp>t&&(n=!0)):(d(e),n=!0):n=!0,n&&this.hide()&&(this.settings.parent.style.pointerEvents="",r!==l&&this.settings.parent.focus(),this.onClose)&&this.onClose(this.colour)}},{key:"movePopup",value:function(e,t){this.closeHandler(),this.setOptions(e),t&&this.openHandler()}},{key:"setColor",value:function(e,t){this._setColor(e,{silent:t})}},{key:"_setColor",value:function(e,t){if(e="string"==typeof e?e.trim():e){t=t||{};var r=void 0;try{r=new o(e)}catch(e){if(t.failSilently)return;throw e}this.settings.alpha||((e=r.hsla)[3]=1,r.hsla=e),this.colour=this.color=r,this._setHSLA(null,null,null,null,t)}}},{key:"setColour",value:function(e,t){this.setColor(e,t)}},{key:"show",value:function(){var e,t,r;return!!this.settings.parent&&(this.domElement?(t=this._toggleDOM(!0),this._setPosition(),t):(t=this.settings.template||'<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>',(r=document.createElement("div")).innerHTML=t,e=r.firstElementChild,this.domElement=e,this._domH=u(".picker_hue",e),this._domSL=u(".picker_sl",e),this._domA=u(".picker_alpha",e),this._domEdit=u(".picker_editor input",e),this._domSample=u(".picker_sample",e),this._domOkay=u(".picker_done button",e),this._domCancel=u(".picker_cancel button",e),e.classList.add("layout_"+this.settings.layout),this.settings.alpha||e.classList.add("no_alpha"),this.settings.editor||e.classList.add("no_editor"),this.settings.cancelButton||e.classList.add("no_cancel"),this._ifPopup(function(){return e.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0))}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var e=this,t=this,r=this.domElement,n=this._events;function i(e,t,r){n.add(e,t,r)}function o(t){e._ifPopup(function(){return e.closeHandler(t)}),e.onDone&&e.onDone(e.colour)}i(r,"click",function(e){return e.preventDefault()}),a(n,this._domH,function(e,r){t._setHSLA(e)}),a(n,this._domSL,function(e,r){t._setHSLA(null,e,1-r)}),this.settings.alpha&&a(n,this._domA,function(e,r){t._setHSLA(null,null,null,1-r)});var s=this._domEdit;i(s,"input",function(e){t._setColor(this.value,{fromEditor:!0,failSilently:!0})}),i(s,"focus",function(e){this.selectionStart===this.selectionEnd&&this.select()}),this._ifPopup(function(){function t(t){return e.closeHandler(t)}function o(t){e.__containedEvent=t.timeStamp}i(window,l,t),i(window,c,t),h(n,r,["Esc","Escape"],t),i(r,l,o),i(r,c,o),i(e._domCancel,"click",t)}),i(this._domOkay,"click",o),h(n,r,["Enter"],o)}},{key:"_setPosition",value:function(){var e=this.settings.parent,t=this.domElement;e!==t.parentNode&&e.appendChild(t),this._ifPopup(function(r){"static"===getComputedStyle(e).position&&(e.style.position="relative");var n=!0===r?"popup_right":"popup_"+r;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(e){e===n?t.classList.add(e):t.classList.remove(e)}),t.classList.add(n)})}},{key:"_setHSLA",value:function(e,t,r,n,i){i=i||{};var o=this.colour,s=o.hsla;[e,t,r,n].forEach(function(e,t){!e&&0!==e||(s[t]=e)}),o.hsla=s,this._updateUI(i),this.onChange&&!i.silent&&this.onChange(o)}},{key:"_updateUI",value:function(e){if(this.domElement){e=e||{};var t=this.colour,r=t.hsla,n="hsl("+360*r[0]+", 100%, 50%)",i=t.hslString,o=t.hslaString,s=this._domH,a=this._domSL,l=this._domA,c=(s=u(".picker_selector",s),u(".picker_selector",a));if(l=u(".picker_selector",l),n=(p(0,s,r[0]),this._domSL.style.backgroundColor=this._domH.style.color=n,p(0,c,r[1]),f(0,c,1-r[2]),a.style.color=i,f(0,l,1-r[3]),s=i).replace("hsl","hsla").replace(")",", 0)"),this._domA.style.background="linear-gradient("+[s,n]+"), linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,\n linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em",!e.fromEditor){c=this.settings.editorFormat;var d=this.settings.alpha,h=void 0;switch(c){case"rgb":h=t.printRGB(d);break;case"hsl":h=t.printHSL(d);break;default:h=t.printHex(d)}this._domEdit.value=h}this._domSample.style.color=o}function p(e,t,r){t.style.left=100*r+"%"}function f(e,t,r){t.style.top=100*r+"%"}}},{key:"_ifPopup",value:function(e,t){this.settings.parent&&this.settings.popup?e&&e(this.settings.popup):t&&t()}},{key:"_toggleDOM",value:function(e){var t,r=this.domElement;return!!r&&((t=r.style.display!==(e=e?"":"none"))&&(r.style.display=e),t)}}]),r})(),f=document.createElement("style");return f.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(f),p.StyleElement=f,p})()},7724:function(e){e.exports=function(e,t,r){var n,i=" ",o=e.level,s=e.dataLevel,a=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,d="data"+(s||""),h=e.opts.$data&&a&&a.$data;if(s=h?(i+=" var schema"+o+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ","schema"+o):a,h||"number"==typeof a)return i+="if ( ",h&&(i+=" ("+s+" !== undefined && typeof "+s+" != 'number') || "),(o=[]).push(i+=" Object.keys("+d+").length "+("maxProperties"==(n=t)?">":"<")+" "+s+") { "),i="",!1!==e.createErrors?(i+=" { keyword: '"+(n||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+s+" } ",!1!==e.opts.messages&&(i=(i=(i+=" , message: 'should NOT have ")+("maxProperties"==t?"more":"fewer")+" than ")+(h?"' + "+s+" + '":""+a)+" properties' "),e.opts.verbose&&(i=(i+=" , schema: ")+(h?"validate.schema"+l:""+a)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ",n=i,i=o.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+n+"]); ":i+=" validate.errors = ["+n+"]; return false; ":i+=" var err = "+n+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i;throw new Error(t+" must be number")}},7812:function(e){e.exports=function(e,t,r){var n,i=" ",o=e.level,s=e.dataLevel,a=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=(t=e.errSchemaPath+"/"+t,!e.opts.allErrors),u="data"+(s||""),d="valid"+o,h=e.opts.$data&&a&&a.$data;return s=h?(i+=" var schema"+o+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ","schema"+o):a,(a||h)&&!1!==e.opts.uniqueItems?(h&&(i+=" var "+d+"; if ("+s+" === false || "+s+" === undefined) "+d+" = true; else if (typeof "+s+" != 'boolean') "+d+" = false; else { "),i+=" var i = "+u+".length , "+d+" = true , j; if (i > 1) { ",o=e.schema.items&&e.schema.items.type,s=Array.isArray(o),!o||"object"==o||"array"==o||s&&(0<=o.indexOf("object")||0<=o.indexOf("array"))?i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+u+"[i], "+u+"[j])) { "+d+" = false; break outer; } } } ":(i=(i+=" var itemIndices = {}, item; for (;i--;) { var item = "+u+"[i]; ")+" if ("+e.util["checkDataType"+(s?"s":"")](o,"item",e.opts.strictNumbers,!0)+") continue; ",s&&(i+=" if (typeof item == 'string') item = '\"' + item; "),i+=" if (typeof itemIndices[item] == 'number') { "+d+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "),i+=" } ",h&&(i+=" } "),(n=n||[]).push(i+=" if (!"+d+") { "),i="",!1!==e.createErrors?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(t)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(i=(i+=" , schema: ")+(h?"validate.schema"+l:""+a)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ",o=i,i=n.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+o+"]); ":i+=" validate.errors = ["+o+"]; return false; ":i+=" var err = "+o+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",c&&(i+=" else { ")):c&&(i+=" if (true) { "),i}},8050:function(e){e.exports=function(e,t,r){var n,i,o,s=" ",a=e.level,l=e.dataLevel,c=e.schema[t],u=e.schemaPath+e.util.getProperty(t),d=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,p="data"+(l||""),f="valid"+a,m="errs__"+a,g=e.opts.$data&&c&&c.$data,y=g?(s+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ","schema"+a):c,v="definition"+a,b=this.definition,w="";if(g&&b.$data){var x="keywordValidate"+a,A=b.validateSchema;s+=" var "+v+" = RULES.custom['"+t+"'].definition; var "+x+" = "+v+".validate;"}else{if(!(k=e.useCustomRule(this,c,e.schema,e)))return;y="validate.schema"+u,x=k.code,n=b.compile,i=b.inline,o=b.macro}t=x+".errors",c="i"+a;var C,S,I,k,E,T="ruleErr"+a,$=b.async;if($&&!e.async)throw new Error("async keyword in sync schema");return i||o||(s+=t+" = null;"),s+="var "+m+" = errors;var "+f+";",g&&b.$data&&(w+="}",s+=" if ("+y+" === undefined) { "+f+" = true; } else { ",A)&&(w+="}",s+=" "+f+" = "+v+".validateSchema("+y+"); if ("+f+") { "),i?b.statements?s+=" "+k.validate+" ":s+=" "+f+" = "+k.validate+"; ":o?(w="",(g=e.util.copy(e)).level++,C="valid"+g.level,g.schema=k.validate,g.schemaPath="",A=e.compositeRule,e.compositeRule=g.compositeRule=!0,v=e.validate(g).replace(/validate\.schema/g,x),e.compositeRule=g.compositeRule=A,s+=" "+v):((E=E||[]).push(s),s="",s+=" "+x+".call( ",e.opts.passContext?s+="this":s+="self",n||!1===b.schema?s+=" , "+p+" ":s+=" , "+y+" , "+p+" , validate.schema"+e.schemaPath+" ",s+=" , (dataPath || '')",'""'!=e.errorPath&&(s+=" + "+e.errorPath),k=s+=" , "+(S=l?"data"+(l-1||""):"parentData")+" , "+(I=l?e.dataPathArr[l]:"parentDataProperty")+" , rootData ) ",s=E.pop(),!1===b.errors?(s+=" "+f+" = ",$&&(s+="await "),s+=k+"; "):s+=$?" var "+(t="customErrors"+a)+" = null; try { "+f+" = await "+k+"; } catch (e) { "+f+" = false; if (e instanceof ValidationError) "+t+" = e.errors; else throw e; } ":" "+t+" = null; "+f+" = "+k+"; "),b.modifying&&(s+=" if ("+S+") "+p+" = "+S+"["+I+"];"),s+=""+w,b.valid?h&&(s+=" if (true) { "):(s+=" if ( ",void 0===b.valid?s=s+" !"+(o?""+C:f):s+=" "+!b.valid+" ",g=this.keyword,(E=E||[]).push(s+=") { "),(E=E||[]).push(s=""),s="",!1!==e.createErrors?(s+=" { keyword: '"+(g||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+this.keyword+"' } ",!1!==e.opts.messages&&(s+=" , message: 'should pass \""+this.keyword+"\" keyword validation' "),e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ",A=s,s=E.pop(),!e.compositeRule&&h?e.async?s+=" throw new ValidationError(["+A+"]); ":s+=" validate.errors = ["+A+"]; return false; ":s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",v=s,s=E.pop(),i?b.errors?"full"!=b.errors&&(s+=" for (var "+c+"="+m+"; "+c+"<errors; "+c+"++) { var "+T+" = vErrors["+c+"]; if ("+T+".dataPath === undefined) "+T+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+T+".schemaPath === undefined) { "+T+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(s+=" "+T+".schema = "+y+"; "+T+".data = "+p+"; "),s+=" } "):!1===b.errors?s+=" "+v+" ":(s+=" if ("+m+" == errors) { "+v+" } else { for (var "+c+"="+m+"; "+c+"<errors; "+c+"++) { var "+T+" = vErrors["+c+"]; if ("+T+".dataPath === undefined) "+T+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+T+".schemaPath === undefined) { "+T+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(s+=" "+T+".schema = "+y+"; "+T+".data = "+p+"; "),s+=" } } "):o?(s+=" var err = ",!1!==e.createErrors?(s+=" { keyword: '"+(g||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+this.keyword+"' } ",!1!==e.opts.messages&&(s+=" , message: 'should pass \""+this.keyword+"\" keyword validation' "),e.opts.verbose&&(s+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&h&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; ")):!1===b.errors?s+=" "+v+" ":(s+=" if (Array.isArray("+t+")) { if (vErrors === null) vErrors = "+t+"; else vErrors = vErrors.concat("+t+"); errors = vErrors.length; for (var "+c+"="+m+"; "+c+"<errors; "+c+"++) { var "+T+" = vErrors["+c+"]; if ("+T+".dataPath === undefined) "+T+".dataPath = (dataPath || '') + "+e.errorPath+"; "+T+'.schemaPath = "'+d+'"; ',e.opts.verbose&&(s+=" "+T+".schema = "+y+"; "+T+".data = "+p+"; "),s+=" } } else { "+v+" } "),s+=" } ",h&&(s+=" else { ")),s}},8161:function(e,t,r){e.exports={$ref:r(7096),allOf:r(3531),anyOf:r(8854),$comment:r(8372),const:r(9650),contains:r(1292),dependencies:r(2860),enum:r(7112),format:r(4682),if:r(1678),items:r(3913),maximum:r(1765),minimum:r(1765),maxItems:r(9337),minItems:r(9337),maxLength:r(5433),minLength:r(5433),maxProperties:r(7724),minProperties:r(7724),multipleOf:r(812),not:r(1004),oneOf:r(6288),pattern:r(2079),properties:r(2124),propertyNames:r(4926),required:r(2e3),uniqueItems:r(7812),validate:r(1035)}},8198:function(e){e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},8340:function(e,t){var r;void 0!==(t="function"==typeof(r=function(){"use strict";function e(e){return"object"==typeof Node?e instanceof Node:e&&"object"==typeof e&&"number"==typeof e.nodeType}function t(){var e=[];return{watch:e.push.bind(e),trigger:function(t,r){for(var n=!0,i={detail:r,preventDefault:function(){n=!1}},o=0;o<e.length;o++)e[o](t,i);return n}}}function r(e){return"none"===window.getComputedStyle(e).display}function n(e){this.elem=e}function i(e,t){return n.make(e("parent")).clazz("pico-overlay").clazz(e("overlayClass","")).stylize({display:"none",position:"fixed",top:"0px",left:"0px",height:"100%",width:"100%",zIndex:1e4}).stylize(e("overlayStyles",{opacity:.5,background:"#000"})).onClick(function(){e("overlayClose",!0)&&t()})}n.make=function(e,t){"string"==typeof e&&(e=document.querySelector(e));var r=document.createElement(t||"div");return(e||document.body).appendChild(r),new n(r)},n.prototype={child:function(e){return n.make(this.elem,e)},stylize:function(e){for(var t in void 0!==(e=e||{}).opacity&&(e.filter="alpha(opacity="+100*e.opacity+")"),e)e.hasOwnProperty(t)&&(this.elem.style[t]=e[t]);return this},clazz:function(e){return this.elem.className+=" "+e,this},html:function(t){return e(t)?this.elem.appendChild(t):this.elem.innerHTML=t,this},onClick:function(e){return this.elem.addEventListener("click",e),this},destroy:function(){this.elem.parentNode.removeChild(this.elem)},hide:function(){this.elem.style.display="none"},show:function(){this.elem.style.display="block"},attr:function(e,t){return void 0!==t&&this.elem.setAttribute(e,t),this},anyAncestor:function(e){for(var t=this.elem;t;){if(e(new n(t)))return!0;t=t.parentNode}return!1},isVisible:function(){return!r(this.elem)}};var o=1;function s(e,t){var r=e("width","auto");"number"==typeof r&&(r+="px");var i=e("modalId","pico-"+o++);return n.make(e("parent")).clazz("pico-content").clazz(e("modalClass","")).stylize({display:"none",position:"fixed",zIndex:10001,left:"50%",top:"38.1966%",maxHeight:"90%",boxSizing:"border-box",width:r,"-ms-transform":"translate(-50%,-38.1966%)","-moz-transform":"translate(-50%,-38.1966%)","-webkit-transform":"translate(-50%,-38.1966%)","-o-transform":"translate(-50%,-38.1966%)",transform:"translate(-50%,-38.1966%)"}).stylize(e("modalStyles",{overflow:"auto",backgroundColor:"white",padding:"20px",borderRadius:"5px"})).html(e("content")).attr("id",i).attr("role","dialog").attr("aria-labelledby",e("ariaLabelledBy")).attr("aria-describedby",e("ariaDescribedBy",i)).onClick(function(e){new n(e.target).anyAncestor(function(e){return/\bpico-close\b/.test(e.elem.className)})&&t()})}function a(e,t){if(t("closeButton",!0))return e.child("button").html(t("closeHtml","×")).clazz("pico-close").clazz(t("closeClass","")).stylize(t("closeStyles",{borderRadius:"2px",border:0,padding:0,cursor:"pointer",height:"15px",width:"15px",position:"absolute",top:"5px",right:"5px",fontSize:"16px",textAlign:"center",lineHeight:"15px",background:"#CCC"})).attr("aria-label",t("close-label","Close"))}function l(e){return function(){return e().elem}}var c=t(),u=t();function d(e,t){function n(e,t){return(e.msMatchesSelector||e.webkitMatchesSelector||e.matches).call(e,t)}function i(e){return!(r(e)||n(e,":disabled")||e.hasAttribute("contenteditable"))&&(e.hasAttribute("tabindex")||n(e,"input,select,textarea,button,a[href],area[href],iframe"))}function o(e){for(var t=e.getElementsByTagName("*"),r=0;r<t.length;r++)if(i(t[r]))return t[r]}function s(e){for(var t=e.getElementsByTagName("*"),r=t.length;r--;)if(i(t[r]))return t[r]}var a;e.beforeShow(function(){a=document.activeElement}),e.afterShow(function(){if(t()){var r=o(e.modalElem());r&&r.focus()}}),e.afterClose(function(){t()&&a&&a.focus(),a=null}),u.watch(function(r){if(t()&&e.isVisible()){var n=o(e.modalElem()),i=s(e.modalElem());(r.shiftKey?n:i)===document.activeElement&&((r.shiftKey?i:n).focus(),r.preventDefault())}})}function h(e,t){var r,i=new n(document.body);e.beforeShow(function(){r=i.elem.style.overflow,t()&&i.stylize({overflow:"hidden"})}),e.afterClose(function(){i.stylize({overflow:r})})}return document.documentElement.addEventListener("keydown",function(e){var t=e.which||e.keyCode;27===t?c.trigger():9===t&&u.trigger(e)}),function(r){(function(e){return"string"==typeof e}(r)||e(r))&&(r={content:r});var n=t(),o=t(),u=t(),p=t(),f=t();function m(e,t){var n=r[e];return"function"==typeof n&&(n=n(t)),void 0===n?t:n}var g,y,v=S.bind(window,"modal"),b=S.bind(window,"overlay"),w=S.bind(window,"close");function x(e){b().hide(),v().hide(),f.trigger(g,e)}function A(e){p.trigger(g,e)&&x(e)}function C(e){return function(){return e.apply(this,arguments),g}}function S(e,t){if(!y){var r=s(m,A);y={modal:r,overlay:i(m,A),close:a(r,m)},n.trigger(g,t)}return y[e]}return g={modalElem:l(v),closeElem:l(w),overlayElem:l(b),buildDom:C(S.bind(null,null)),isVisible:function(){return!!(y&&v&&v().isVisible())},show:function(e){return o.trigger(g,e)&&(b().show(),w(),v().show(),u.trigger(g,e)),this},close:C(A),forceClose:C(x),destroy:function(){v().destroy(),b().destroy(),b=v=w=void 0},options:function(e){Object.keys(e).map(function(t){r[t]=e[t]})},afterCreate:C(n.watch),beforeShow:C(o.watch),afterShow:C(u.watch),beforeClose:C(p.watch),afterClose:C(f.watch)},d(g,m.bind(null,"focus",!0)),h(g,m.bind(null,"bodyOverflow",!0)),c.watch(function(){m("escCloses",!0)&&g.isVisible()&&g.close()}),g}})?r.apply(t,[]):r)&&(e.exports=t)},8372:function(e){e.exports=function(e,t,r){var n=" ",i=e.schema[t];return t=e.errSchemaPath+"/"+t,e.opts.allErrors,i=e.util.toQuotedString(i),!0===e.opts.$comment?n+=" console.log("+i+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+i+", "+e.util.toQuotedString(t)+", validate.root.schema);"),n}},8852:function(e){var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,r){for(var n=0;n<r.length;n++){e=JSON.parse(JSON.stringify(e));for(var i=r[n].split("/"),o=e,s=1;s<i.length;s++)o=o[i[s]];for(s=0;s<t.length;s++){var a=t[s],l=o[a];l&&(o[a]={anyOf:[l,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}},8854:function(e){e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=(t=!e.opts.allErrors,o="data"+(o||""),"valid"+i),u=(i="errs__"+i,e.util.copy(e)),d="",h=(u.level++,"valid"+u.level);if(s.every(function(t){return e.opts.strictKeywords?"object"==typeof t&&0<Object.keys(t).length||!1===t:e.util.schemaHasRules(t,e.RULES.all)})){var p=u.baseId,f=(n+=" var "+i+" = errors; var "+c+" = false; ",e.compositeRule),m=(e.compositeRule=u.compositeRule=!0,s);if(m)for(var g,y=-1,v=m.length-1;y<v;)g=m[y+=1],u.schema=g,u.schemaPath=a+"["+y+"]",u.errSchemaPath=l+"/"+y,n+=" "+e.validate(u)+" ",u.baseId=p,n+=" "+c+" = "+c+" || "+h+"; if (!"+c+") { ",d+="}";e.compositeRule=u.compositeRule=f,n+=" "+d+" if (!"+c+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+o+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&t&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+i+"; if (vErrors !== null) { if ("+i+") vErrors.length = "+i+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else t&&(n+=" if (true) { ");return n}},9151:function(e,t){function r(e){return null!==e&&"[object Array]"===Object.prototype.toString.call(e)}function n(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e,t){if(e!==t){if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(t))return!1;if(!0===r(e)){if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(!1===i(e[o],t[o]))return!1}else{if(!0!==n(e))return!1;var s,a,l={};for(s in e)if(hasOwnProperty.call(e,s)){if(!1===i(e[s],t[s]))return!1;l[s]=!0}for(a in t)if(hasOwnProperty.call(t,a)&&!0!==l[a])return!1}}return!0}function o(e){if(""===e||!1===e||null===e)return!0;if(r(e)&&0===e.length)return!0;if(n(e)){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}return!1}function s(e){return"0"<=e&&e<="9"||"-"===e}function a(){}function l(){}function c(e){this.runtime=e}function u(e){this._interpreter=e,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[0]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[0]}]},contains:{_func:this._functionContains,_signature:[{types:[2,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[2]},{types:[2]}]},floor:{_func:this._functionFloor,_signature:[{types:[0]}]},length:{_func:this._functionLength,_signature:[{types:[2,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[2]},{types:[2]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[2]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[2,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}var d,h,p,f,m,g,y,v,b,w,x,A,C,S,I,k,E,T,$,_,R,O,P,M;d="function"==typeof String.prototype.trimLeft?function(e){return e.trimLeft()}:function(e){return e.match(/^\s*(.*)/)[1]},h={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},p="UnquotedIdentifier",f="QuotedIdentifier",w="Number",A="Expref",C="Pipe",S="Flatten",k="Filter",T="Lbracket",_="Literal",R={".":"Dot","*":I="Star",",":y="Comma",":":v="Colon","{":E="Lbrace","}":b="Rbrace","]":m="Rbracket","(":$="Lparen",")":g="Rparen","@":x="Current"},O={"<":!0,">":!0,"=":!0,"!":!0},P={" ":!0,"\t":!0,"\n":!0},a.prototype={tokenize:function(e){var t,r,n=[];for(this._current=0;this._current<e.length;)if("a"<=(o=e[this._current])&&o<="z"||"A"<=o&&o<="Z"||"_"===o)i=this._current,t=this._consumeUnquotedIdentifier(e),n.push({type:p,value:t,start:i});else if(void 0!==R[e[this._current]])n.push({type:R[e[this._current]],value:e[this._current],start:this._current}),this._current++;else if(s(e[this._current]))r=this._consumeNumber(e),n.push(r);else if("["===e[this._current])r=this._consumeLBracket(e),n.push(r);else if('"'===e[this._current])i=this._current,t=this._consumeQuotedIdentifier(e),n.push({type:f,value:t,start:i});else if("'"===e[this._current])i=this._current,t=this._consumeRawStringLiteral(e),n.push({type:_,value:t,start:i});else if("`"===e[this._current]){var i=this._current,o=this._consumeLiteral(e);n.push({type:_,value:o,start:i})}else if(void 0!==O[e[this._current]])n.push(this._consumeOperator(e));else if(void 0!==P[e[this._current]])this._current++;else if("&"===e[this._current])i=this._current,this._current++,"&"===e[this._current]?(this._current++,n.push({type:"And",value:"&&",start:i})):n.push({type:A,value:"&",start:i});else{if("|"!==e[this._current])throw(o=new Error("Unknown character:"+e[this._current])).name="LexerError",o;i=this._current,this._current++,"|"===e[this._current]?(this._current++,n.push({type:"Or",value:"||",start:i})):n.push({type:C,value:"|",start:i})}return n},_consumeUnquotedIdentifier:function(e){var t,r=this._current;for(this._current++;this._current<e.length&&("a"<=(t=e[this._current])&&t<="z"||"A"<=t&&t<="Z"||"0"<=t&&t<="9"||"_"===t);)this._current++;return e.slice(r,this._current)},_consumeQuotedIdentifier:function(e){for(var t=this._current,r=(this._current++,e.length);'"'!==e[this._current]&&this._current<r;){var n=this._current;"\\"!==e[n]||"\\"!==e[n+1]&&'"'!==e[n+1]?n++:n+=2,this._current=n}return this._current++,JSON.parse(e.slice(t,this._current))},_consumeRawStringLiteral:function(e){for(var t=this._current,r=(this._current++,e.length);"'"!==e[this._current]&&this._current<r;){var n=this._current;"\\"!==e[n]||"\\"!==e[n+1]&&"'"!==e[n+1]?n++:n+=2,this._current=n}return this._current++,e.slice(t+1,this._current-1).replace("\\'","'")},_consumeNumber:function(e){for(var t=this._current,r=(this._current++,e.length);s(e[this._current])&&this._current<r;)this._current++;var n=parseInt(e.slice(t,this._current));return{type:w,value:n,start:t}},_consumeLBracket:function(e){var t=this._current;return this._current++,"?"===e[this._current]?(this._current++,{type:k,value:"[?",start:t}):"]"===e[this._current]?(this._current++,{type:S,value:"[]",start:t}):{type:T,value:"[",start:t}},_consumeOperator:function(e){var t=this._current,r=e[t];return this._current++,"!"===r?"="===e[this._current]?(this._current++,{type:"NE",value:"!=",start:t}):{type:"Not",value:"!",start:t}:"<"===r?"="===e[this._current]?(this._current++,{type:"LTE",value:"<=",start:t}):{type:"LT",value:"<",start:t}:">"===r?"="===e[this._current]?(this._current++,{type:"GTE",value:">=",start:t}):{type:"GT",value:">",start:t}:"="===r&&"="===e[this._current]?(this._current++,{type:"EQ",value:"==",start:t}):void 0},_consumeLiteral:function(e){this._current++;for(var t=this._current,r=e.length;"`"!==e[this._current]&&this._current<r;){var n=this._current;"\\"!==e[n]||"\\"!==e[n+1]&&"`"!==e[n+1]?n++:n+=2,this._current=n}return t=(t=d(e.slice(t,this._current))).replace("\\`","`"),t=this._looksLikeJSON(t)?JSON.parse(t):JSON.parse('"'+t+'"'),this._current++,t},_looksLikeJSON:function(e){if(""===e)return!1;if(0<='[{"'.indexOf(e[0]))return!0;if(0<=["true","false","null"].indexOf(e))return!0;if(!(0<="-0123456789".indexOf(e[0])))return!1;try{return JSON.parse(e),!0}catch(e){return!1}}},M={EOF:0,UnquotedIdentifier:0,QuotedIdentifier:0,Rbracket:0,Rparen:0,Comma:0,Rbrace:0,Number:0,Current:0,Expref:0,Pipe:1,Or:2,And:3,EQ:5,GT:5,LT:5,GTE:5,LTE:5,NE:5,Flatten:9,Star:20,Filter:21,Dot:40,Not:45,Lbrace:50,Lbracket:55,Lparen:60},l.prototype={parse:function(e){var t;if(this._loadTokens(e),this.index=0,e=this.expression(0),"EOF"!==this._lookahead(0))throw t=this._lookaheadToken(0),(t=new Error("Unexpected token type: "+t.type+", value: "+t.value)).name="ParserError",t;return e},_loadTokens:function(e){var t=(new a).tokenize(e);t.push({type:"EOF",value:"",start:e.length}),this.tokens=t},expression:function(e){for(var t=this._lookaheadToken(0),r=(this._advance(),this.nud(t)),n=this._lookahead(0);e<M[n];)this._advance(),r=this.led(n,r),n=this._lookahead(0);return r},_lookahead:function(e){return this.tokens[this.index+e].type},_lookaheadToken:function(e){return this.tokens[this.index+e]},_advance:function(){this.index++},nud:function(e){var t,r;switch(e.type){case _:return{type:"Literal",value:e.value};case p:return{type:"Field",name:e.value};case f:var n={type:"Field",name:e.value};if(this._lookahead(0)===$)throw new Error("Quoted identifier not allowed for function names.");return n;case"Not":return{type:"NotExpression",children:[t=this.expression(M.Not)]};case I:return t=null,{type:"ValueProjection",children:[{type:"Identity"},t=this._lookahead(0)===m?{type:"Identity"}:this._parseProjectionRHS(M.Star)]};case k:return this.led(e.type,{type:"Identity"});case E:return this._parseMultiselectHash();case S:return{type:"Projection",children:[{type:S,children:[{type:"Identity"}]},t=this._parseProjectionRHS(M.Flatten)]};case T:return this._lookahead(0)===w||this._lookahead(0)===v?(t=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},t)):this._lookahead(0)===I&&this._lookahead(1)===m?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},t=this._parseProjectionRHS(M.Star)]}):this._parseMultiselectList();case x:return{type:x};case A:return{type:"ExpressionReference",children:[r=this.expression(M.Expref)]};case $:for(var i=[];this._lookahead(0)!==g;)this._lookahead(0)===x?(r={type:x},this._advance()):r=this.expression(0),i.push(r);return this._match(g),i[0];default:this._errorToken(e)}},led:function(e,t){var r;switch(e){case"Dot":var n=M.Dot;return this._lookahead(0)!==I?{type:"Subexpression",children:[t,r=this._parseDotRHS(n)]}:(this._advance(),{type:"ValueProjection",children:[t,r=this._parseProjectionRHS(n)]});case C:return r=this.expression(M.Pipe),{type:C,children:[t,r]};case"Or":return{type:"OrExpression",children:[t,r=this.expression(M.Or)]};case"And":return{type:"AndExpression",children:[t,r=this.expression(M.And)]};case $:n=t.name;for(var i,o=[];this._lookahead(0)!==g;)this._lookahead(0)===x?(i={type:x},this._advance()):i=this.expression(0),this._lookahead(0)===y&&this._match(y),o.push(i);return this._match(g),{type:"Function",name:n,children:o};case k:return n=this.expression(0),this._match(m),{type:"FilterProjection",children:[t,r=this._lookahead(0)===S?{type:"Identity"}:this._parseProjectionRHS(M.Filter),n]};case S:return{type:"Projection",children:[{type:S,children:[t]},this._parseProjectionRHS(M.Flatten)]};case"EQ":case"NE":case"GT":case"GTE":case"LT":case"LTE":return this._parseComparator(t,e);case T:return(n=this._lookaheadToken(0)).type===w||n.type===v?(r=this._parseIndexExpression(),this._projectIfSlice(t,r)):(this._match(I),this._match(m),{type:"Projection",children:[t,r=this._parseProjectionRHS(M.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(e){var t;if(this._lookahead(0)!==e)throw t=this._lookaheadToken(0),(e=new Error("Expected "+e+", got: "+t.type)).name="ParserError",e;this._advance()},_errorToken:function(e){throw(e=new Error("Invalid token ("+e.type+'): "'+e.value+'"')).name="ParserError",e},_parseIndexExpression:function(){var e;return this._lookahead(0)===v||this._lookahead(1)===v?this._parseSliceExpression():(e={type:"Index",value:this._lookaheadToken(0).value},this._advance(),this._match(m),e)},_projectIfSlice:function(e,t){return e={type:"IndexExpression",children:[e,t]},"Slice"===t.type?{type:"Projection",children:[e,this._parseProjectionRHS(M.Star)]}:e},_parseSliceExpression:function(){for(var e,t=[null,null,null],r=0,n=this._lookahead(0);n!==m&&r<3;){if(n===v)r++;else{if(n!==w)throw e=this._lookahead(0),(e=new Error("Syntax error, unexpected token: "+e.value+"("+e.type+")")).name="Parsererror",e;t[r]=this._lookaheadToken(0).value}this._advance(),n=this._lookahead(0)}return this._match(m),{type:"Slice",children:t}},_parseComparator:function(e,t){return{type:"Comparator",name:t,children:[e,this.expression(M[t])]}},_parseDotRHS:function(e){var t=this._lookahead(0);return 0<=[p,f,I].indexOf(t)?this.expression(e):t===T?(this._match(T),this._parseMultiselectList()):t===E?(this._match(E),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(e){var t,r;if(M[this._lookahead(0)]<10)t={type:"Identity"};else if(this._lookahead(0)===T)t=this.expression(e);else if(this._lookahead(0)===k)t=this.expression(e);else{if("Dot"!==this._lookahead(0))throw r=this._lookaheadToken(0),(r=new Error("Sytanx error, unexpected token: "+r.value+"("+r.type+")")).name="ParserError",r;this._match("Dot"),t=this._parseDotRHS(e)}return t},_parseMultiselectList:function(){for(var e=[];this._lookahead(0)!==m;){var t=this.expression(0);if(e.push(t),this._lookahead(0)===y&&(this._match(y),this._lookahead(0)===m))throw new Error("Unexpected token Rbracket")}return this._match(m),{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){for(var e,t,r=[],n=[p,f];;){if(e=this._lookaheadToken(0),n.indexOf(e.type)<0)throw new Error("Expecting an identifier token, got: "+e.type);if(e=e.value,this._advance(),this._match(v),t=this.expression(0),r.push({type:"KeyValuePair",name:e,value:t}),this._lookahead(0)===y)this._match(y);else if(this._lookahead(0)===b){this._match(b);break}}return{type:"MultiSelectHash",children:r}}},c.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,t){var s,a,l,c,u,d;switch(e.type){case"Field":return null!==t&&n(t)?void 0===(h=t[e.name])?null:h:null;case"Subexpression":for(g=this.visit(e.children[0],t),w=1;w<e.children.length;w++)if(null===(g=this.visit(e.children[1],g)))return null;return g;case"IndexExpression":return u=this.visit(e.children[0],t),this.visit(e.children[1],u);case"Index":return r(t)?void 0===(g=t[h=(h=e.value)<0?t.length+h:h])?null:g:null;case"Slice":if(!r(t))return null;var h=e.children.slice(0),p=(h=this.computeSliceParams(t.length,h))[0],f=h[1],m=h[2],g=[];if(0<m)for(w=p;w<f;w+=m)g.push(t[w]);else for(w=p;f<w;w+=m)g.push(t[w]);return g;case"Projection":var y=this.visit(e.children[0],t);if(!r(y))return null;for(v=[],w=0;w<y.length;w++)null!==(a=this.visit(e.children[1],y[w]))&&v.push(a);return v;case"ValueProjection":if(!n(y=this.visit(e.children[0],t)))return null;for(var v=[],b=(e=>{for(var t=Object.keys(e),r=[],n=0;n<t.length;n++)r.push(e[t[n]]);return r})(y),w=0;w<b.length;w++)null!==(a=this.visit(e.children[1],b[w]))&&v.push(a);return v;case"FilterProjection":if(!r(y=this.visit(e.children[0],t)))return null;var I=[],k=[];for(w=0;w<y.length;w++)o(s=this.visit(e.children[2],y[w]))||I.push(y[w]);for(var E=0;E<I.length;E++)null!==(a=this.visit(e.children[1],I[E]))&&k.push(a);return k;case"Comparator":switch(l=this.visit(e.children[0],t),c=this.visit(e.children[1],t),e.name){case"EQ":g=i(l,c);break;case"NE":g=!i(l,c);break;case"GT":g=c<l;break;case"GTE":g=c<=l;break;case"LT":g=l<c;break;case"LTE":g=l<=c;break;default:throw new Error("Unknown comparator: "+e.name)}return g;case S:var T=this.visit(e.children[0],t);if(!r(T))return null;var $=[];for(w=0;w<T.length;w++)r(a=T[w])?$.push.apply($,a):$.push(a);return $;case"Identity":return t;case"MultiSelectList":if(null===t)return null;for(v=[],w=0;w<e.children.length;w++)v.push(this.visit(e.children[w],t));return v;case"MultiSelectHash":if(null===t)return null;for(v={},w=0;w<e.children.length;w++)v[(d=e.children[w]).name]=this.visit(d.value,t);return v;case"OrExpression":return o(s=this.visit(e.children[0],t))?this.visit(e.children[1],t):s;case"AndExpression":return!0===o(l=this.visit(e.children[0],t))?l:this.visit(e.children[1],t);case"NotExpression":return o(l=this.visit(e.children[0],t));case"Literal":return e.value;case C:return u=this.visit(e.children[0],t),this.visit(e.children[1],u);case x:return t;case"Function":var _=[];for(w=0;w<e.children.length;w++)_.push(this.visit(e.children[w],t));return this.runtime.callFunction(e.name,_);case"ExpressionReference":return(h=e.children[0]).jmespathType=A,h;default:throw new Error("Unknown node type: "+e.type)}},computeSliceParams:function(e,t){var r=t[0],n=t[1],i=[null,null,null];if(null===(t=t[2]))t=1;else if(0===t)throw(o=new Error("Invalid slice, step cannot be 0")).name="RuntimeError",o;var o=t<0;return r=null===r?o?e-1:0:this.capSliceRange(e,r,t),n=null===n?o?-1:e:this.capSliceRange(e,n,t),i[0]=r,i[1]=n,i[2]=t,i},capSliceRange:function(e,t,r){return t<0?(t+=e)<0&&(t=r<0?-1:0):e<=t&&(t=r<0?e-1:e),t}},u.prototype={callFunction:function(e,t){var r=this.functionTable[e];if(void 0===r)throw new Error("Unknown function: "+e+"()");return this._validateArgs(e,t,r._signature),r._func.call(this,t)},_validateArgs:function(e,t,r){var n;if(r[r.length-1].variadic){if(t.length<r.length)throw n=1===r.length?" argument":" arguments",new Error("ArgumentError: "+e+"() takes at least"+r.length+n+" but received "+t.length)}else if(t.length!==r.length)throw n=1===r.length?" argument":" arguments",new Error("ArgumentError: "+e+"() takes "+r.length+n+" but received "+t.length);for(var i=0;i<r.length;i++){for(var o,s=!1,a=r[i].types,l=this._getTypeName(t[i]),c=0;c<a.length;c++)if(this._typeMatches(l,a[c],t[i])){s=!0;break}if(!s)throw o=a.map(function(e){return h[e]}).join(","),new Error("TypeError: "+e+"() expected argument "+(i+1)+" to be type "+o+" but received type "+h[l]+" instead.")}},_typeMatches:function(e,t,r){if(1===t)return!0;if(9!==t&&8!==t&&3!==t)return e===t;if(3===t)return 3===e;if(3===e){var n;8===t?n=0:9===t&&(n=2);for(var i=0;i<r.length;i++)if(!this._typeMatches(this._getTypeName(r[i]),n,r[i]))return!1;return!0}},_getTypeName:function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return 2;case"[object Number]":return 0;case"[object Array]":return 3;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return e.jmespathType===A?6:4}},_functionStartsWith:function(e){return 0===e[0].lastIndexOf(e[1])},_functionEndsWith:function(e){var t=e[0];return e=e[1],-1!==t.indexOf(e,t.length-e.length)},_functionReverse:function(e){var t;if(2!==this._getTypeName(e[0]))return(t=e[0].slice(0)).reverse(),t;for(var r=e[0],n="",i=r.length-1;0<=i;i--)n+=r[i];return n},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){for(var t=0,r=e[0],n=0;n<r.length;n++)t+=r[n];return t/r.length},_functionContains:function(e){return 0<=e[0].indexOf(e[1])},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){return(n(e[0])?Object.keys(e[0]):e[0]).length},_functionMap:function(e){for(var t=[],r=this._interpreter,n=e[0],i=e[1],o=0;o<i.length;o++)t.push(r.visit(n,i[o]));return t},_functionMerge:function(e){for(var t={},r=0;r<e.length;r++){var n,i=e[r];for(n in i)t[n]=i[n]}return t},_functionMax:function(e){if(0<e[0].length){if(0===this._getTypeName(e[0][0]))return Math.max.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;n<t.length;n++)r.localeCompare(t[n])<0&&(r=t[n]);return r}return null},_functionMin:function(e){if(0<e[0].length){if(0===this._getTypeName(e[0][0]))return Math.min.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;n<t.length;n++)t[n].localeCompare(r)<0&&(r=t[n]);return r}return null},_functionSum:function(e){for(var t=0,r=e[0],n=0;n<r.length;n++)t+=r[n];return t},_functionType:function(e){switch(this._getTypeName(e[0])){case 0:return"number";case 2:return"string";case 3:return"array";case 4:return"object";case 5:return"boolean";case 6:return"expref";case 7:return"null"}},_functionKeys:function(e){return Object.keys(e[0])},_functionValues:function(e){for(var t=e[0],r=Object.keys(t),n=[],i=0;i<r.length;i++)n.push(t[r[i]]);return n},_functionJoin:function(e){var t=e[0];return e[1].join(t)},_functionToArray:function(e){return 3===this._getTypeName(e[0])?e[0]:[e[0]]},_functionToString:function(e){return 2===this._getTypeName(e[0])?e[0]:JSON.stringify(e[0])},_functionToNumber:function(e){var t=this._getTypeName(e[0]);return 0===t?e[0]:2!==t||(t=+e[0],isNaN(t))?null:t},_functionNotNull:function(e){for(var t=0;t<e.length;t++)if(7!==this._getTypeName(e[t]))return e[t];return null},_functionSort:function(e){return(e=e[0].slice(0)).sort(),e},_functionSortBy:function(e){var t=e[0].slice(0);if(0!==t.length){var r=this._interpreter,n=e[1],i=this._getTypeName(r.visit(n,t[0]));if([0,2].indexOf(i)<0)throw new Error("TypeError");for(var o=this,s=[],a=0;a<t.length;a++)s.push([a,t[a]]);s.sort(function(e,t){var s=r.visit(n,e[1]),a=r.visit(n,t[1]);if(o._getTypeName(s)!==i)throw new Error("TypeError: expected "+i+", received "+o._getTypeName(s));if(o._getTypeName(a)!==i)throw new Error("TypeError: expected "+i+", received "+o._getTypeName(a));return a<s?1:s<a?-1:e[0]-t[0]});for(var l=0;l<s.length;l++)t[l]=s[l][1]}return t},_functionMaxBy:function(e){for(var t,r,n=e[1],i=e[0],o=this.createKeyFunction(n,[0,2]),s=-1/0,a=0;a<i.length;a++)s<(r=o(i[a]))&&(s=r,t=i[a]);return t},_functionMinBy:function(e){for(var t,r,n=e[1],i=e[0],o=this.createKeyFunction(n,[0,2]),s=1/0,a=0;a<i.length;a++)(r=o(i[a]))<s&&(s=r,t=i[a]);return t},createKeyFunction:function(e,t){var r=this,n=this._interpreter;return function(i){var o;if(i=n.visit(e,i),t.indexOf(r._getTypeName(i))<0)throw o="TypeError: expected one of "+t+", received "+r._getTypeName(i),new Error(o);return i}}},t.tokenize=function(e){return(new a).tokenize(e)},t.compile=function(e){return(new l).parse(e)},t.search=function(e,t){var r=new l,n=new c(i=new u),i=(i._interpreter=n,r.parse(t));return n.search(i,e)},t.strictDeepEqual=i},9306:function(e){e.exports=function(e,t){var r,n="boolean"==typeof(t="function"==typeof(t=t||{})?{cmp:t}:t).cycles&&t.cycles,i=t.cmp&&(r=t.cmp,function(e){return function(t,n){return t={key:t,value:e[t]},r(t,{key:n,value:e[n]})}}),o=[];return function e(t){if(void 0!==(t=t&&t.toJSON&&"function"==typeof t.toJSON?t.toJSON():t)){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);if(Array.isArray(t)){for(a="[",l=0;l<t.length;l++)l&&(a+=","),a+=e(t[l])||"null";return a+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}for(var r=o.push(t)-1,s=Object.keys(t).sort(i&&i(t)),a="",l=0;l<s.length;l++){var c=s[l],u=e(t[c]);u&&(a&&(a+=","),a+=JSON.stringify(c)+":"+u)}return o.splice(r,1),"{"+a+"}"}}(e)}},9336:function(e){(e=e.exports=function(){this._cache={}}).prototype.put=function(e,t){this._cache[e]=t},e.prototype.get=function(e){return this._cache[e]},e.prototype.del=function(e){delete this._cache[e]},e.prototype.clear=function(){this._cache={}}},9337:function(e){e.exports=function(e,t,r){var n,i=" ",o=e.level,s=e.dataLevel,a=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,d="data"+(s||""),h=e.opts.$data&&a&&a.$data;if(s=h?(i+=" var schema"+o+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ","schema"+o):a,h||"number"==typeof a)return i+="if ( ",h&&(i+=" ("+s+" !== undefined && typeof "+s+" != 'number') || "),(o=[]).push(i+=" "+d+".length "+("maxItems"==(n=t)?">":"<")+" "+s+") { "),i="",!1!==e.createErrors?(i+=" { keyword: '"+(n||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+s+" } ",!1!==e.opts.messages&&(i=(i=(i+=" , message: 'should NOT have ")+("maxItems"==t?"more":"fewer")+" than ")+(h?"' + "+s+" + '":""+a)+" items' "),e.opts.verbose&&(i=(i+=" , schema: ")+(h?"validate.schema"+l:""+a)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ",n=i,i=o.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+n+"]); ":i+=" validate.errors = ["+n+"]; return false; ":i+=" var err = "+n+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i;throw new Error(t+" must be number")}},9407:function(e,t,r){r=r(8198),e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:r.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:r.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},9650:function(e){e.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=(t=e.errSchemaPath+"/"+t,!e.opts.allErrors),c="data"+(o||""),u="valid"+i,d=e.opts.$data&&s&&s.$data;return(d&&(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; "),d||(n+=" var schema"+i+" = validate.schema"+a+";"),s=[]).push(n+="var "+u+" = equal("+c+", schema"+i+"); if (!"+u+") { "),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(t)+" , params: { allowedValue: schema"+i+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ",o=n,n=s.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+o+"]); ":n+=" validate.errors = ["+o+"]; return false; ":n+=" var err = "+o+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",l&&(n+=" else { "),n}},9762:function(){window.ace.define("ace/theme/jsoneditor",["require","exports","module","ace/lib/dom"],function(e,t,r){t.isDark=!1,t.cssClass="ace-jsoneditor",t.cssText='.ace-jsoneditor .ace_gutter {\nbackground: #ebebeb;\ncolor: #333\n}\n\n.ace-jsoneditor.ace_editor {\nline-height: 1.3;\nbackground-color: #fff;\n}\n.ace-jsoneditor .ace_print-margin {\nwidth: 1px;\nbackground: #e8e8e8\n}\n.ace-jsoneditor .ace_scroller {\nbackground-color: #FFFFFF\n}\n.ace-jsoneditor .ace_text-layer {\ncolor: gray\n}\n.ace-jsoneditor .ace_variable {\ncolor: #1a1a1a\n}\n.ace-jsoneditor .ace_cursor {\nborder-left: 2px solid #000000\n}\n.ace-jsoneditor .ace_overwrite-cursors .ace_cursor {\nborder-left: 0px;\nborder-bottom: 1px solid #000000\n}\n.ace-jsoneditor .ace_marker-layer .ace_selection {\nbackground: lightgray\n}\n.ace-jsoneditor.ace_multiselect .ace_selection.ace_start {\nbox-shadow: 0 0 3px 0px #FFFFFF;\nborder-radius: 2px\n}\n.ace-jsoneditor .ace_marker-layer .ace_step {\nbackground: rgb(255, 255, 0)\n}\n.ace-jsoneditor .ace_marker-layer .ace_bracket {\nmargin: -1px 0 0 -1px;\nborder: 1px solid #BFBFBF\n}\n.ace-jsoneditor .ace_marker-layer .ace_active-line {\nbackground: #FFFBD1\n}\n.ace-jsoneditor .ace_gutter-active-line {\nbackground-color : #dcdcdc\n}\n.ace-jsoneditor .ace_marker-layer .ace_selected-word {\nborder: 1px solid lightgray\n}\n.ace-jsoneditor .ace_invisible {\ncolor: #BFBFBF\n}\n.ace-jsoneditor .ace_keyword,\n.ace-jsoneditor .ace_meta,\n.ace-jsoneditor .ace_support.ace_constant.ace_property-value {\ncolor: #AF956F\n}\n.ace-jsoneditor .ace_keyword.ace_operator {\ncolor: #484848\n}\n.ace-jsoneditor .ace_keyword.ace_other.ace_unit {\ncolor: #96DC5F\n}\n.ace-jsoneditor .ace_constant.ace_language {\ncolor: darkorange\n}\n.ace-jsoneditor .ace_constant.ace_numeric {\ncolor: red\n}\n.ace-jsoneditor .ace_constant.ace_character.ace_entity {\ncolor: #BF78CC\n}\n.ace-jsoneditor .ace_invalid {\ncolor: #FFFFFF;\nbackground-color: #FF002A;\n}\n.ace-jsoneditor .ace_fold {\nbackground-color: #AF956F;\nborder-color: #000000\n}\n.ace-jsoneditor .ace_storage,\n.ace-jsoneditor .ace_support.ace_class,\n.ace-jsoneditor .ace_support.ace_function,\n.ace-jsoneditor .ace_support.ace_other,\n.ace-jsoneditor .ace_support.ace_type {\ncolor: #C52727\n}\n.ace-jsoneditor .ace_string {\ncolor: green\n}\n.ace-jsoneditor .ace_comment {\ncolor: #BCC8BA\n}\n.ace-jsoneditor .ace_entity.ace_name.ace_tag,\n.ace-jsoneditor .ace_entity.ace_other.ace_attribute-name {\ncolor: #606060\n}\n.ace-jsoneditor .ace_markup.ace_underline {\ntext-decoration: underline\n}\n.ace-jsoneditor .ace_indent-guide {\nbackground: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y\n}',e("../lib/dom").importCssString(t.cssText,t.cssClass)})},9857:function(e,t,r){r.d(t,{m:function(){return M}});class n extends Error{constructor(e,t){super("".concat(e," at position ").concat(t)),this.position=t}}let i=32,o=10,s=9,a=13,l=160,c=8192,u=8202,d=8239,h=8287,p=12288;function f(e){return"0"<=e&&e<="9"}function m(e){return",:[]/{}()\n+".includes(e)}function g(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e}function y(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e||"0"<=e&&e<="9"}let v=/^(http|https|ftp|mailto|file|data|irc):\/\/$/,b=/^[A-Za-z0-9-._~:/?#@!$&'()*+;=]$/;function w(e){return",[]/{}\n+".includes(e)}function x(e){return I(e)||A.test(e)}let A=/^[[{\w-]$/;function C(e,t){return(e=e.charCodeAt(t))===i||e===o||e===s||e===a}function S(e,t){return(e=e.charCodeAt(t))===i||e===s||e===a}function I(e){return k(e)||T(e)}function k(e){return'"'===e||"“"===e||"”"===e}function E(e){return'"'===e}function T(e){return"'"===e||"‘"===e||"’"===e||"`"===e||"´"===e}function $(e){return"'"===e}function _(e,t,r){return r=2<arguments.length&&void 0!==r&&r,-1!==(t=e.lastIndexOf(t))?e.substring(0,t)+(r?"":e.substring(t+1)):e}function R(e,t){let r=e.length;if(!C(e,r-1))return e+t;for(;C(e,r-1);)r--;return e.substring(0,r)+t+e.substring(r)}let O={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},P={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function M(e){let t=0,r="";if(A(),!o())throw new n("Unexpected end of json string",e.length);A();var i=M(",");if(i&&s(),x(e[t])&&/[,\n][ \t\r]*$/.test(r)){i||(r=R(r,","));{let e=!0,t=!0;for(;t;)e?e=!1:M(",")||(r=R(r,",")),t=o();t||(r=_(r,",")),r="[\n".concat(r,"\n]")}}else i&&(r=_(r,","));for(;"}"===e[t]||"]"===e[t];)t++,s();if(t>=e.length)return r;throw new n("Unexpected character ".concat(JSON.stringify(e[t])),t);function o(){s();var i=(()=>{if("{"!==e[t])return!1;{r+="{",t++,s(),L(",")&&s();let l=!0;for(;t<e.length&&"}"!==e[t];){let c;if(l?(c=!0,l=!1):((c=M(","))||(r=R(r,",")),s()),j(),!N()&&!B(!0)){"}"===e[t]||"{"===e[t]||"]"===e[t]||"["===e[t]||void 0===e[t]?r=_(r,","):(()=>{throw new n("Object key expected",t)})();break}s();var i=M(":"),a=t>=e.length;i||(x(e[t])||a?r=R(r,":"):V()),o()||(i||a?r+="null":V())}return"}"===e[t]?(r+="}",t++):r=R(r,"}"),!0}})()||(()=>{if("["!==e[t])return!1;{r+="[",t++,s(),L(",")&&s();let n=!0;for(;t<e.length&&"]"!==e[t];)if(n?n=!1:M(",")||(r=R(r,",")),j(),!o()){r=_(r,",");break}return"]"===e[t]?(r+="]",t++):r=R(r,"]"),!0}})()||N()||(()=>{var n,i,o=t;if("-"===e[t]){if(t++,W())return H(o),!0;if(!f(e[t]))return t=o,!1}for(;f(e[t]);)t++;if("."===e[t]){if(t++,W())return H(o),!0;if(!f(e[t]))return t=o,!1;for(;f(e[t]);)t++}if("e"===e[t]||"E"===e[t]){if(t++,"-"!==e[t]&&"+"!==e[t]||t++,W())return H(o),!0;if(!f(e[t]))return t=o,!1;for(;f(e[t]);)t++}if(W()){if(t>o)return n=e.slice(o,t),i=/^0\d/.test(n),r+=i?'"'.concat(n,'"'):n,!0}else t=o;return!1})()||D("true","true")||D("false","false")||D("null","null")||D("True","true")||D("False","false")||D("None","null")||B(!1)||(()=>{if("/"===e[t]){var n=t;for(t++;t<e.length&&("/"!==e[t]||"\\"===e[t-1]);)t++;return t++,r+='"'.concat(e.substring(n,t),'"'),!0}})();return s(),i}function s(r){var n=!(0<arguments.length&&void 0!==r)||r;let i=a(n);for(;i=(i=(()=>{if("/"===e[t]&&"*"===e[t+1]){for(;t<e.length&&!((e,t)=>"*"===e[t]&&"/"===e[t+1])(e,t);)t++;t+=2}else{if("/"!==e[t]||"/"!==e[t+1])return!1;for(;t<e.length&&"\n"!==e[t];)t++}return!0})())&&a(n););}function a(n){var i,o,s=n?C:S;let a="";for(;;){if(s(e,t))a+=e[t];else{if(o=t,!((i=(i=e).charCodeAt(o))===l||i>=c&&i<=u||i===d||i===h||i===p))break;a+=" "}t++}return 0<a.length&&(r+=a,!0)}function A(){if("```"===e.slice(t,t+3)){if(t+=3,g(e[t]))for(;t<e.length&&y(e[t]);)t++;s()}}function M(n){return e[t]===n&&(r+=e[t],t++,!0)}function L(r){return e[t]===r&&(t++,!0)}function j(){s(),"."===e[t]&&"."===e[t+1]&&"."===e[t+2]&&(t+=3,s(),L(","))}function N(i,o){var a=0<arguments.length&&void 0!==i&&i,l=1<arguments.length&&void 0!==o?o:-1;let c="\\"===e[t];if(c&&(t++,c=!0),I(e[t])){var u=E(e[t])?E:$(e[t])?$:T(e[t])?T:k,d=t,h=r.length;let i='"';for(t++;;){if(t>=e.length)return p=z(t-1),!a&&m(e.charAt(p))?(t=d,r=r.substring(0,h),N(!0)):(i=R(i,'"'),r+=i,!0);if(t===l)return i=R(i,'"'),r+=i,!0;if(u(e[t])){var p=t,g=i.length;if(i+='"',t++,r+=i,s(!1),a||t>=e.length||m(e[t])||I(e[t])||f(e[t]))return F(),!0;var y=z(p-1),x=e.charAt(y);if(","===x)return t=d,r=r.substring(0,h),N(!1,y);if(m(x))return t=d,r=r.substring(0,h),N(!0);r=r.substring(0,h),t=p+1,i="".concat(i.substring(0,g),"\\").concat(i.substring(g))}else{if(a&&w(e[t])){if(":"===e[t-1]&&v.test(e.substring(d+1,t+2)))for(;t<e.length&&b.test(e[t]);)i+=e[t],t++;return i=R(i,'"'),r+=i,F(),!0}if("\\"===e[t])if(y=e.charAt(t+1),void 0!==P[y])i+=e.slice(t,t+2),t+=2;else if("u"===y){let r=2;for(;r<6&&/^[0-9A-Fa-f]$/.test(e[t+r]);)r++;if(6===r)i+=e.slice(t,t+6),t+=6;else{if(!(t+r>=e.length))throw x=void 0,x=e.slice(t,t+6),new n('Invalid unicode character "'.concat(x,'"'),t);t=e.length}}else i+=y,t+=2;else{var A;if('"'===(g=e.charAt(t))&&"\\"!==e[t-1])i+="\\".concat(g);else if("\n"===(A=g)||"\r"===A||"\t"===A||"\b"===A||"\f"===A)i+=O[g];else{if(!(" "<=g))throw A=void 0,A=g,new n("Invalid character ".concat(JSON.stringify(A)),t);i+=g}t++}}c&&L("\\")}}return!1}function F(){let n=!1;for(s();"+"===e[t];){n=!0,t++,s();var i=(r=_(r,'"',!0)).length,o=N();r=o?(o=r).substring(0,i)+o.substring(i+1):R(r,'"')}}function D(n,i){return e.slice(t,t+n.length)===n&&(r+=i,t+=n.length,!0)}function B(n){var i=t;if(g(e[t])){for(;t<e.length&&y(e[t]);)t++;let r=t;for(;C(e,r);)r++;if("("===e[r])return t=r+1,o(),")"===e[t]&&(t++,";"===e[t])&&t++,!0}for(;t<e.length&&!w(e[t])&&!I(e[t])&&(!n||":"!==e[t]);)t++;if(":"===e[t-1]&&v.test(e.substring(i,t+2)))for(;t<e.length&&b.test(e[t]);)t++;if(t>i){for(;C(e,t-1)&&0<t;)t--;return i=e.slice(i,t),r+="undefined"===i?"null":JSON.stringify(i),'"'===e[t]&&t++,!0}}function z(t){let r=t;for(;0<r&&C(e,r);)r--;return r}function W(){return t>=e.length||m(e[t])||C(e,t)}function H(n){r+="".concat(e.slice(n,t),"0")}function V(){throw new n("Colon expected",t)}}}},r={},e.amdD=function(){throw new Error("define cannot be used indirect")},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,{a:r}),r},e.d=function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},e(1346);function e(n){var i=r[n];return void 0!==i||(i=r[n]={id:n,loaded:!1,exports:{}},t[n].call(i.exports,i,i.exports,e),i.loaded=!0),i.exports}var t,r}()},88431:(e,t,r)=>{"use strict";var n=r(46518),i=r(59213).every;n({target:"Array",proto:!0,forced:!r(34598)("every")},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},88490:e=>{"use strict";var t=Array,r=Math.abs,n=Math.pow,i=Math.floor,o=Math.log,s=Math.LN2;e.exports={pack:function(e,a,l){var c,u,d,h=t(l),p=8*l-a-1,f=(1<<p)-1,m=f>>1,g=23===a?n(2,-24)-n(2,-77):0,y=e<0||0===e&&1/e<0?1:0,v=0;for((e=r(e))!=e||e===1/0?(u=e!=e?1:0,c=f):(c=i(o(e)/s),e*(d=n(2,-c))<1&&(c--,d*=2),(e+=c+m>=1?g/d:g*n(2,1-m))*d>=2&&(c++,d/=2),c+m>=f?(u=0,c=f):c+m>=1?(u=(e*d-1)*n(2,a),c+=m):(u=e*n(2,m-1)*n(2,a),c=0));a>=8;)h[v++]=255&u,u/=256,a-=8;for(c=c<<a|u,p+=a;p>0;)h[v++]=255&c,c/=256,p-=8;return h[v-1]|=128*y,h},unpack:function(e,t){var r,i=e.length,o=8*i-t-1,s=(1<<o)-1,a=s>>1,l=o-7,c=i-1,u=e[c--],d=127&u;for(u>>=7;l>0;)d=256*d+e[c--],l-=8;for(r=d&(1<<-l)-1,d>>=-l,l+=t;l>0;)r=256*r+e[c--],l-=8;if(0===d)d=1-a;else{if(d===s)return r?NaN:u?-1/0:1/0;r+=n(2,t),d-=a}return(u?-1:1)*r*n(2,d-t)}}},88612:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(10644);function i(e){return(0,n.A)(e).defaultView||window}},88629:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(9792),i=r(74848);const o=(0,n.A)((0,i.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},88634:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var n=r(96540),i=r(34164),o=r(21362),s=r(39407),a=r(35124),l=r(1713),c=r(76761),u=r(26739),d=r(39241),h=r(13202),p=r(96148),f=r(1908);function m(e){return(0,f.Ay)("MuiInputAdornment",e)}const g=(0,p.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var y,v=r(74848);const b=(0,u.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${(0,s.A)(r.position)}`],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((0,d.A)(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${g.positionStart}&:not(.${g.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),w=n.forwardRef(function(e,t){const r=(0,h.b)({props:e,name:"MuiInputAdornment"}),{children:u,className:d,component:p="div",disablePointerEvents:f=!1,disableTypography:g=!1,position:w,variant:x,...A}=r,C=(0,c.A)()||{};let S=x;x&&C.variant,C&&!S&&(S=C.variant);const I={...r,hiddenLabel:C.hiddenLabel,size:C.size,disablePointerEvents:f,position:w,variant:S},k=(e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:i,size:a,variant:l}=e,c={root:["root",r&&"disablePointerEvents",i&&`position${(0,s.A)(i)}`,l,n&&"hiddenLabel",a&&`size${(0,s.A)(a)}`]};return(0,o.A)(c,m,t)})(I);return(0,v.jsx)(l.A.Provider,{value:null,children:(0,v.jsx)(b,{as:p,ownerState:I,className:(0,i.A)(k.root,d),ref:t,...A,children:"string"!=typeof u||g?(0,v.jsxs)(n.Fragment,{children:["start"===w?y||(y=(0,v.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""})):null,u]}):(0,v.jsx)(a.A,{color:"textSecondary",children:u})})})})},88727:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},88747:(e,t,r)=>{"use strict";var n=r(94644),i=n.aTypedArray,o=n.exportTypedArrayMethod,s=Math.floor;o("reverse",function(){for(var e,t=this,r=i(t).length,n=s(r/2),o=0;o<n;)e=t[o],t[o++]=t[--r],t[r]=e;return t})},88868:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>p});var n=r(96540),i=r(16285),o=r(13202),s=r(74848);const a="function"==typeof(0,i.Dp)({}),l=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),c=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),u=(e,t=!1)=>{const r={};t&&e.colorSchemes&&"function"==typeof e.getColorSchemeSelector&&Object.entries(e.colorSchemes).forEach(([t,n])=>{const i=e.getColorSchemeSelector(t);i.startsWith("@")?r[i]={":root":{colorScheme:n.palette?.mode}}:r[i.replace(/\s*&/,"")]={colorScheme:n.palette?.mode}});let n={html:l(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...c(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...r};const i=e.components?.MuiCssBaseline?.styleOverrides;return i&&(n=[n,i]),n},d="mui-ecs",h=(0,i.Dp)(a?({theme:e,enableColorScheme:t})=>u(e,t):({theme:e})=>(e=>{const t=u(e,!1),r=Array.isArray(t)?t[0]:t;return!e.vars&&r&&(r.html[`:root:has(${d})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,n])=>{const i=e.getColorSchemeSelector(t);i.startsWith("@")?r[i]={[`:root:not(:has(.${d}))`]:{colorScheme:n.palette?.mode}}:r[i.replace(/\s*&/,"")]={[`&:not(:has(.${d}))`]:{colorScheme:n.palette?.mode}}}),t})(e)),p=function(e){const t=(0,o.b)({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:i=!1}=t;return(0,s.jsxs)(n.Fragment,{children:[a&&(0,s.jsx)(h,{enableColorScheme:i}),!a&&!i&&(0,s.jsx)("span",{className:d,style:{display:"none"}}),r]})}},88940:(e,t,r)=>{"use strict";var n=r(46518),i=r(44576),o=r(1625),s=r(42787),a=r(52967),l=r(77740),c=r(2360),u=r(66699),d=r(6980),h=r(80747),p=r(32603),f=r(78227),m=r(79039),g=r(96395),y=i.SuppressedError,v=f("toStringTag"),b=Error,w=!!y&&3!==y.length,x=!!y&&m(function(){return 4===new y(1,2,3,{cause:4}).cause}),A=w||x,C=function(e,t,r){var n,i=o(S,this);return a?n=!A||i&&s(this)!==S?a(new b,i?s(this):S):new y:(n=i?this:c(S),u(n,v,"Error")),void 0!==r&&u(n,"message",p(r)),h(n,C,n.stack,1),u(n,"error",e),u(n,"suppressed",t),n};a?a(C,b):l(C,b,{name:!0});var S=C.prototype=A?y.prototype:c(b.prototype,{constructor:d(1,C),message:d(1,""),name:d(1,"SuppressedError")});A&&!g&&(S.constructor=C),n({global:!0,constructor:!0,arity:3,forced:A},{SuppressedError:C})},88984:(e,t,r)=>{var n=r(55527),i=r(3650),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},89195:(e,t,r)=>{"use strict";var n=r(46518),i=r(77240);n({target:"String",proto:!0,forced:r(23061)("small")},{small:function(){return i(this,"small","","")}})},89228:(e,t,r)=>{"use strict";r(27495);var n=r(69565),i=r(36840),o=r(57323),s=r(79039),a=r(78227),l=r(66699),c=a("species"),u=RegExp.prototype;e.exports=function(e,t,r,d){var h=a(e),p=!s(function(){var t={};return t[h]=function(){return 7},7!==""[e](t)}),f=p&&!s(function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[h]=/./[h]),r.exec=function(){return t=!0,null},r[h](""),!t});if(!p||!f||r){var m=/./[h],g=t(h,""[e],function(e,t,r,i,s){var a=t.exec;return a===o||a===u.exec?p&&!s?{done:!0,value:n(m,t,r,i)}:{done:!0,value:n(e,r,t,i)}:{done:!1}});i(String.prototype,e,g[0]),i(u,h,g[1])}d&&l(u[h],"sham",!0)}},89286:(e,t,r)=>{"use strict";var n=r(94402),i=r(38469),o=n.Set,s=n.add;e.exports=function(e){var t=new o;return i(e,function(e){s(t,e)}),t}},89429:(e,t,r)=>{"use strict";var n=r(44576),i=r(38574);e.exports=function(e){if(i){try{return n.process.getBuiltinModule(e)}catch(e){}try{return Function('return require("'+e+'")')()}catch(e){}}}},89463:(e,t,r)=>{"use strict";var n=r(46518),i=r(43724),o=r(44576),s=r(79504),a=r(39297),l=r(94901),c=r(1625),u=r(655),d=r(62106),h=r(77740),p=o.Symbol,f=p&&p.prototype;if(i&&l(p)&&(!("description"in f)||void 0!==p().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=c(f,this)?new p(e):void 0===e?p():p(e);return""===e&&(m[t]=!0),t};h(g,p),g.prototype=f,f.constructor=g;var y="Symbol(description detection)"===String(p("description detection")),v=s(f.valueOf),b=s(f.toString),w=/^Symbol\((.*)\)[^)]+$/,x=s("".replace),A=s("".slice);d(f,"description",{configurable:!0,get:function(){var e=v(this);if(a(m,e))return"";var t=b(e),r=y?A(t,7,-1):x(t,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:g})}},89544:(e,t,r)=>{"use strict";var n=r(82839);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},89572:(e,t,r)=>{"use strict";var n=r(39297),i=r(36840),o=r(53640),s=r(78227)("toPrimitive"),a=Date.prototype;n(a,s)||i(a,s,o)},89907:(e,t,r)=>{"use strict";var n=r(46518),i=r(77240);n({target:"String",proto:!0,forced:r(23061)("anchor")},{anchor:function(e){return i(this,"a","name",e)}})},89935:e=>{e.exports=function(){return!1}},89955:(e,t,r)=>{"use strict";var n=r(94644),i=r(59213).findIndex,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},90235:(e,t,r)=>{"use strict";var n=r(59213).forEach,i=r(34598)("forEach");e.exports=i?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},90289:(e,t,r)=>{var n=r(12651);e.exports=function(e){return n(this,e).get(e)}},90537:(e,t,r)=>{"use strict";var n=r(80550),i=r(84428),o=r(10916).CONSTRUCTOR;e.exports=o||!i(function(e){n.all(e).then(void 0,function(){})})},90679:(e,t,r)=>{"use strict";var n=r(1625),i=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new i("Incorrect invocation")}},90729:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(96540).createContext({})},90744:(e,t,r)=>{"use strict";var n=r(69565),i=r(79504),o=r(89228),s=r(28551),a=r(20034),l=r(67750),c=r(2293),u=r(57829),d=r(18014),h=r(655),p=r(55966),f=r(56682),m=r(58429),g=r(79039),y=m.UNSUPPORTED_Y,v=Math.min,b=i([].push),w=i("".slice),x=!g(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}),A="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;o("split",function(e,t,r){var i="0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:n(t,this,e,r)}:t;return[function(t,r){var o=l(this),s=a(t)?p(t,e):void 0;return s?n(s,t,o,r):n(i,h(o),t,r)},function(e,n){var o=s(this),a=h(e);if(!A){var l=r(i,o,a,n,i!==t);if(l.done)return l.value}var p=c(o,RegExp),m=o.unicode,g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(y?"g":"y"),x=new p(y?"^(?:"+o.source+")":o,g),C=void 0===n?4294967295:n>>>0;if(0===C)return[];if(0===a.length)return null===f(x,a)?[a]:[];for(var S=0,I=0,k=[];I<a.length;){x.lastIndex=y?0:I;var E,T=f(x,y?w(a,I):a);if(null===T||(E=v(d(x.lastIndex+(y?I:0)),a.length))===S)I=u(a,I,m);else{if(b(k,w(a,S,I)),k.length===C)return k;for(var $=1;$<=T.length-1;$++)if(b(k,T[$]),k.length===C)return k;I=S=E}}return b(k,w(a,S)),k}]},A||!x,y)},90757:e=>{"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},90906:(e,t,r)=>{"use strict";r(27495);var n,i,o=r(46518),s=r(69565),a=r(94901),l=r(28551),c=r(655),u=(n=!1,(i=/[ac]/).exec=function(){return n=!0,/./.exec.apply(this,arguments)},!0===i.test("abc")&&n),d=/./.test;o({target:"RegExp",proto:!0,forced:!u},{test:function(e){var t=l(this),r=c(e),n=t.exec;if(!a(n))return s(d,t,r);var i=s(n,t,r);return null!==i&&(l(i),!0)}})},90938:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},91018:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(9792),i=r(74848);const o=(0,n.A)((0,i.jsx)("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"}),"Tune")},91021:(e,t,r)=>{"use strict";var n=r(97751),i=r(69565),o=r(79504),s=r(76080),a=r(28551),l=r(79306),c=r(64117),u=r(55966),d=r(78227),h=d("asyncDispose"),p=d("dispose"),f=o([].push),m=function(e,t,r){return arguments.length<3&&!c(e)&&(r=l(function(e,t){if("async-dispose"===t){var r=u(e,h);return void 0!==r||void 0===(r=u(e,p))?r:function(){var e=this;return new(n("Promise"))(function(t){i(r,e),t(void 0)})}}return u(e,p)}(a(e),t))),void 0===r?function(){}:s(r,e)};e.exports=function(e,t,r,n){var i;if(arguments.length<4){if(c(t)&&"sync-dispose"===r)return;i=m(t,r)}else i=m(void 0,r,n);f(e.stack,i)}},91092:(e,t,r)=>{"use strict";var n;r.d(t,{A:()=>a});var i=r(96540);let o=0;const s={...n||(n=r.t(i,2))}.useId;function a(e){if(void 0!==s){const t=s();return e??t}return function(e){const[t,r]=i.useState(e),n=e||t;return i.useEffect(()=>{null==t&&(o+=1,r(`mui-${o}`))},[t]),n}(e)}},91134:(e,t,r)=>{"use strict";var n=r(94644),i=r(43839).findLastIndex,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLastIndex",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},91181:(e,t,r)=>{"use strict";var n,i,o,s=r(58622),a=r(44576),l=r(20034),c=r(66699),u=r(39297),d=r(77629),h=r(66119),p=r(30421),f="Object already initialized",m=a.TypeError,g=a.WeakMap;if(s||d.state){var y=d.state||(d.state=new g);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw new m(f);return t.facade=e,y.set(e,t),t},i=function(e){return y.get(e)||{}},o=function(e){return y.has(e)}}else{var v=h("state");p[v]=!0,n=function(e,t){if(u(e,v))throw new m(f);return t.facade=e,c(e,v,t),t},i=function(e){return u(e,v)?e[v]:{}},o=function(e){return u(e,v)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=i(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return r}}}},91191:(e,t,r)=>{"use strict";var n=r(46518),i=r(79504),o=r(91291),s=Date.prototype,a=i(s.getTime),l=i(s.setFullYear);n({target:"Date",proto:!0},{setYear:function(e){a(this);var t=o(e);return l(this,t>=0&&t<=99?t+1900:t)}})},91291:(e,t,r)=>{"use strict";var n=r(80741);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},91296:(e,t,r)=>{"use strict";var n=r(4495);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},91385:(e,t,r)=>{"use strict";var n=r(9539);e.exports=function(e,t,r){for(var i=e.length-1;i>=0;i--)if(void 0!==e[i])try{r=n(e[i].iterator,t,r)}catch(e){t="throw",r=e}if("throw"===t)throw r;return r}},91625:(e,t,r)=>{"use strict";var n=r(79504),i=r(56279),o=r(3451).getWeakData,s=r(90679),a=r(28551),l=r(64117),c=r(20034),u=r(72652),d=r(59213),h=r(39297),p=r(91181),f=p.set,m=p.getterFor,g=d.find,y=d.findIndex,v=n([].splice),b=0,w=function(e){return e.frozen||(e.frozen=new x)},x=function(){this.entries=[]},A=function(e,t){return g(e.entries,function(e){return e[0]===t})};x.prototype={get:function(e){var t=A(this,e);if(t)return t[1]},has:function(e){return!!A(this,e)},set:function(e,t){var r=A(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=y(this.entries,function(t){return t[0]===e});return~t&&v(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,r,n){var d=e(function(e,i){s(e,p),f(e,{type:t,id:b++,frozen:null}),l(i)||u(i,e[n],{that:e,AS_ENTRIES:r})}),p=d.prototype,g=m(t),y=function(e,t,r){var n=g(e),i=o(a(t),!0);return!0===i?w(n).set(t,r):i[n.id]=r,e};return i(p,{delete:function(e){var t=g(this);if(!c(e))return!1;var r=o(e);return!0===r?w(t).delete(e):r&&h(r,t.id)&&delete r[t.id]},has:function(e){var t=g(this);if(!c(e))return!1;var r=o(e);return!0===r?w(t).has(e):r&&h(r,t.id)}}),i(p,r?{get:function(e){var t=g(this);if(c(e)){var r=o(e);if(!0===r)return w(t).get(e);if(r)return r[t.id]}},set:function(e,t){return y(this,e,t)}}:{add:function(e){return y(this,e,!0)}}),d}}},91790:(e,t,r)=>{"use strict";r.d(t,{A:()=>s,y:()=>o});var n=r(96148),i=r(1908);function o(e){return(0,i.Ay)("MuiTypography",e)}const s=(0,n.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"])},91799:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var n=r(96540),i=r(34164),o=r(21362),s=r(26739),a=r(13202),l=r(99692),c=r(39407),u=r(2518),d=r(1713),h=r(96148),p=r(1908);function f(e){return(0,p.Ay)("MuiFormControl",e)}(0,h.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var m=r(74848);const g=(0,s.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${(0,c.A)(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),y=n.forwardRef(function(e,t){const r=(0,a.b)({props:e,name:"MuiFormControl"}),{children:s,className:h,color:p="primary",component:y="div",disabled:v=!1,error:b=!1,focused:w,fullWidth:x=!1,hiddenLabel:A=!1,margin:C="none",required:S=!1,size:I="medium",variant:k="outlined",...E}=r,T={...r,color:p,component:y,disabled:v,error:b,fullWidth:x,hiddenLabel:A,margin:C,required:S,size:I,variant:k},$=(e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root","none"!==r&&`margin${(0,c.A)(r)}`,n&&"fullWidth"]};return(0,o.A)(i,f,t)})(T),[_,R]=n.useState(()=>{let e=!1;return s&&n.Children.forEach(s,t=>{if(!(0,u.A)(t,["Input","Select"]))return;const r=(0,u.A)(t,["Select"])?t.props.input:t;r&&(0,l.gr)(r.props)&&(e=!0)}),e}),[O,P]=n.useState(()=>{let e=!1;return s&&n.Children.forEach(s,t=>{(0,u.A)(t,["Input","Select"])&&((0,l.lq)(t.props,!0)||(0,l.lq)(t.props.inputProps,!0))&&(e=!0)}),e}),[M,L]=n.useState(!1);v&&M&&L(!1);const j=void 0===w||v?M:w;let N;n.useRef(!1);const F=n.useCallback(()=>{P(!0)},[]),D=n.useCallback(()=>{P(!1)},[]),B=n.useMemo(()=>({adornedStart:_,setAdornedStart:R,color:p,disabled:v,error:b,filled:O,focused:j,fullWidth:x,hiddenLabel:A,size:I,onBlur:()=>{L(!1)},onFocus:()=>{L(!0)},onEmpty:D,onFilled:F,registerEffect:N,required:S,variant:k}),[_,p,v,b,O,j,x,A,N,D,F,S,I,k]);return(0,m.jsx)(d.A.Provider,{value:B,children:(0,m.jsx)(g,{as:y,ownerState:T,className:(0,i.A)($.root,h),ref:t,...E,children:s})})})},91955:(e,t,r)=>{"use strict";var n,i,o,s,a,l=r(44576),c=r(93389),u=r(76080),d=r(59225).set,h=r(18265),p=r(89544),f=r(44265),m=r(7860),g=r(38574),y=l.MutationObserver||l.WebKitMutationObserver,v=l.document,b=l.process,w=l.Promise,x=c("queueMicrotask");if(!x){var A=new h,C=function(){var e,t;for(g&&(e=b.domain)&&e.exit();t=A.get();)try{t()}catch(e){throw A.head&&n(),e}e&&e.enter()};p||g||m||!y||!v?!f&&w&&w.resolve?((s=w.resolve(void 0)).constructor=w,a=u(s.then,s),n=function(){a(C)}):g?n=function(){b.nextTick(C)}:(d=u(d,l),n=function(){d(C)}):(i=!0,o=v.createTextNode(""),new y(C).observe(o,{characterData:!0}),n=function(){o.data=i=!i}),x=function(e){A.head||n(),A.add(e)}}e.exports=x},92140:(e,t,r)=>{"use strict";var n={};n[r(78227)("toStringTag")]="z",e.exports="[object z]"===String(n)},92168:(e,t,r)=>{"use strict";r(70511)("isConcatSpreadable")},92173:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(9792),i=r(74848);const o=(0,n.A)((0,i.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutlineOutlined")},92296:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e,t,r){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...r}}}},92405:(e,t,r)=>{"use strict";r(16468)("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},r(86938))},92744:(e,t,r)=>{"use strict";var n=r(79039);e.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},92796:(e,t,r)=>{"use strict";var n=r(79039),i=r(94901),o=/#|\.prototype\./,s=function(e,t){var r=l[a(e)];return r===u||r!==c&&(i(t)?n(t):!!t)},a=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";e.exports=s},92804:e=>{"use strict";var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=t+"+/",n=t+"-_",i=function(e){for(var t={},r=0;r<64;r++)t[e.charAt(r)]=r;return t};e.exports={i2c:r,c2i:i(r),i2cUrl:n,c2iUrl:i(n)}},92901:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(20816);function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,n.A)(i.key),i)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}},93153:(e,t,r)=>{"use strict";var n=r(46518),i=r(7740),o=Math.acosh,s=Math.log,a=Math.sqrt,l=Math.LN2;n({target:"Math",stat:!0,forced:!o||710!==Math.floor(o(Number.MAX_VALUE))||o(1/0)!==1/0},{acosh:function(e){var t=+e;return t<1?NaN:t>94906265.62425156?s(t)+l:i(t-1+a(t-1)*a(t+1))}})},93389:(e,t,r)=>{"use strict";var n=r(44576),i=r(43724),o=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!i)return n[e];var t=o(n,e);return t&&t.value}},93438:(e,t,r)=>{"use strict";var n=r(28551),i=r(20034),o=r(36043);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},93445:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(836);const i={textTransform:"uppercase"},o='"Roboto", "Helvetica", "Arial", sans-serif';function s(e,t){const{fontFamily:r=o,fontSize:s=14,fontWeightLight:a=300,fontWeightRegular:l=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:h,pxToRem:p,...f}="function"==typeof t?t(e):t,m=s/14,g=p||(e=>e/d*m+"rem"),y=(e,t,n,i,s)=>{return{fontFamily:r,fontWeight:e,fontSize:g(t),lineHeight:n,...r===o?{letterSpacing:(a=i/t,Math.round(1e5*a)/1e5+"em")}:{},...s,...h};var a},v={h1:y(a,96,1.167,-1.5),h2:y(a,60,1.2,-.5),h3:y(l,48,1.167,0),h4:y(l,34,1.235,.25),h5:y(l,24,1.334,0),h6:y(c,20,1.6,.15),subtitle1:y(l,16,1.75,.15),subtitle2:y(c,14,1.57,.1),body1:y(l,16,1.5,.15),body2:y(l,14,1.43,.15),button:y(c,14,1.75,.4,i),caption:y(l,12,1.66,.4),overline:y(l,12,2.66,1,i),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,n.A)({htmlFontSize:d,pxToRem:g,fontFamily:r,fontSize:s,fontWeightLight:a,fontWeightRegular:l,fontWeightMedium:c,fontWeightBold:u,...v},f,{clone:!1})}},93514:(e,t,r)=>{"use strict";r(6469)("flat")},93515:(e,t,r)=>{"use strict";r(46518)({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},93518:(e,t,r)=>{"use strict";var n=r(46518),i=r(69565),o=r(79306),s=r(97751),a=r(36043),l=r(1103),c=r(72652),u=r(90537),d="No one promise resolved";n({target:"Promise",stat:!0,forced:u},{any:function(e){var t=this,r=s("AggregateError"),n=a.f(t),u=n.resolve,h=n.reject,p=l(function(){var n=o(t.resolve),s=[],a=0,l=1,p=!1;c(e,function(e){var o=a++,c=!1;l++,i(n,t,e).then(function(e){c||p||(p=!0,u(e))},function(e){c||p||(c=!0,s[o]=e,--l||h(new r(s,d)))})}),--l||h(new r(s,d))});return p.error&&h(p.value),n.promise}})},93577:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(9792),i=r(74848);const o=(0,n.A)((0,i.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92"}),"Share")},93583:(e,t,r)=>{"use strict";function n({props:e,states:t,muiFormControl:r}){return t.reduce((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t),{})}r.d(t,{A:()=>n})},93781:(e,t,r)=>{"use strict";r.d(t,{LX:()=>f,MA:()=>p,_W:()=>m,Lc:()=>y,Ms:()=>v});var n=r(7196),i=r(39612),o=r(49900);const s={m:"margin",p:"padding"},a={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(){const e={};return t=>(void 0===e[t]&&(e[t]=(e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,r]=e.split(""),n=s[t],i=a[r]||"";return Array.isArray(i)?i.map(e=>n+e):[n+i]})(t)),e[t])}(),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],h=[...u,...d];function p(e,t,r,n){const o=(0,i.Yn)(e,t,!0)??r;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),r=o[t];return e>=0?r:"number"==typeof r?-r:"string"==typeof r&&r.startsWith("var(")?`calc(-1 * ${r})`:`-${r}`}:"function"==typeof o?o:()=>{}}function f(e){return p(e,"spacing",8)}function m(e,t){return"string"==typeof t||null==t?t:e(t)}function g(e,t){const r=f(e.theme);return Object.keys(e).map(i=>function(e,t,r,i){if(!t.includes(r))return null;const o=function(e,t){return r=>e.reduce((e,n)=>(e[n]=m(t,r),e),{})}(c(r),i),s=e[r];return(0,n.NI)(e,s,o)}(e,t,i,r)).reduce(o.A,{})}function y(e){return g(e,u)}function v(e){return g(e,d)}function b(e){return g(e,h)}y.propTypes={},y.filterProps=u,v.propTypes={},v.filterProps=d,b.propTypes={},b.filterProps=h},93855:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(9792),i=r(74848);const o=(0,n.A)((0,i.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"}),"Lock")},93941:(e,t,r)=>{"use strict";var n=r(46518),i=r(20034),o=r(3451).onFreeze,s=r(92744),a=r(79039),l=Object.seal;n({target:"Object",stat:!0,forced:a(function(){l(1)}),sham:!s},{seal:function(e){return l&&i(e)?l(o(e)):e}})},93967:(e,t,r)=>{"use strict";var n=r(46518),i=r(20034),o=r(3451).onFreeze,s=r(92744),a=r(79039),l=Object.preventExtensions;n({target:"Object",stat:!0,forced:a(function(){l(1)}),sham:!s},{preventExtensions:function(e){return l&&i(e)?l(o(e)):e}})},94003:(e,t,r)=>{"use strict";var n=r(46518),i=r(79039),o=r(20034),s=r(22195),a=r(15652),l=Object.isFrozen;n({target:"Object",stat:!0,forced:a||i(function(){l(1)})},{isFrozen:function(e){return!o(e)||!(!a||"ArrayBuffer"!==s(e))||!!l&&l(e)}})},94052:(e,t,r)=>{"use strict";var n=r(46518),i=r(34124);n({target:"Object",stat:!0,forced:Object.isExtensible!==i},{isExtensible:i})},94170:(e,t,r)=>{"use strict";var n=r(46518),i=r(30566);n({target:"Function",proto:!0,forced:Function.bind!==i},{bind:i})},94298:(e,t,r)=>{"use strict";var n=r(46518),i=r(77240);n({target:"String",proto:!0,forced:r(23061)("fixed")},{fixed:function(){return i(this,"tt","","")}})},94299:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateV7State=void 0;const n=r(52291),i=r(76011),o={};function s(e,t,r){return e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=r[6]<<23|r[7]<<16|r[8]<<8|r[9],e.msecs=t):(e.seq=e.seq+1|0,0===e.seq&&e.msecs++),e}function a(e,t,r,n,i=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(n){if(i<0||i+16>n.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`)}else n=new Uint8Array(16),i=0;return t??=Date.now(),r??=127*e[6]<<24|e[7]<<16|e[8]<<8|e[9],n[i++]=t/1099511627776&255,n[i++]=t/4294967296&255,n[i++]=t/16777216&255,n[i++]=t/65536&255,n[i++]=t/256&255,n[i++]=255&t,n[i++]=112|r>>>28&15,n[i++]=r>>>20&255,n[i++]=128|r>>>14&63,n[i++]=r>>>6&255,n[i++]=r<<2&255|3&e[10],n[i++]=e[11],n[i++]=e[12],n[i++]=e[13],n[i++]=e[14],n[i++]=e[15],n}t.updateV7State=s,t.default=function(e,t,r){let l;if(e)l=a(e.random??e.rng?.()??(0,n.default)(),e.msecs,e.seq,t,r);else{const e=Date.now(),i=(0,n.default)();s(o,e,i),l=a(i,o.msecs,o.seq,t,r)}return t??(0,i.unsafeStringify)(l)}},94402:(e,t,r)=>{"use strict";var n=r(79504),i=Set.prototype;e.exports={Set,add:n(i.add),has:n(i.has),remove:n(i.delete),proto:i}},94483:(e,t,r)=>{"use strict";var n,i,o,s,a=r(44576),l=r(89429),c=r(1548),u=a.structuredClone,d=a.ArrayBuffer,h=a.MessageChannel,p=!1;if(c)p=function(e){u(e,{transfer:[e]})};else if(d)try{h||(n=l("worker_threads"))&&(h=n.MessageChannel),h&&(i=new h,o=new d(2),s=function(e){i.port1.postMessage(null,[e])},2===o.byteLength&&(s(o),0===o.byteLength&&(p=s)))}catch(e){}e.exports=p},94490:(e,t,r)=>{"use strict";var n=r(46518),i=r(79504),o=r(34376),s=i([].reverse),a=[1,2];n({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),s(this)}})},94644:(e,t,r)=>{"use strict";var n,i,o,s=r(77811),a=r(43724),l=r(44576),c=r(94901),u=r(20034),d=r(39297),h=r(36955),p=r(16823),f=r(66699),m=r(36840),g=r(62106),y=r(1625),v=r(42787),b=r(52967),w=r(78227),x=r(33392),A=r(91181),C=A.enforce,S=A.get,I=l.Int8Array,k=I&&I.prototype,E=l.Uint8ClampedArray,T=E&&E.prototype,$=I&&v(I),_=k&&v(k),R=Object.prototype,O=l.TypeError,P=w("toStringTag"),M=x("TYPED_ARRAY_TAG"),L="TypedArrayConstructor",j=s&&!!b&&"Opera"!==h(l.opera),N=!1,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},D={BigInt64Array:8,BigUint64Array:8},B=function(e){var t=v(e);if(u(t)){var r=S(t);return r&&d(r,L)?r[L]:B(t)}},z=function(e){if(!u(e))return!1;var t=h(e);return d(F,t)||d(D,t)};for(n in F)(o=(i=l[n])&&i.prototype)?C(o)[L]=i:j=!1;for(n in D)(o=(i=l[n])&&i.prototype)&&(C(o)[L]=i);if((!j||!c($)||$===Function.prototype)&&($=function(){throw new O("Incorrect invocation")},j))for(n in F)l[n]&&b(l[n],$);if((!j||!_||_===R)&&(_=$.prototype,j))for(n in F)l[n]&&b(l[n].prototype,_);if(j&&v(T)!==_&&b(T,_),a&&!d(_,P))for(n in N=!0,g(_,P,{configurable:!0,get:function(){return u(this)?this[M]:void 0}}),F)l[n]&&f(l[n],M,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:j,TYPED_ARRAY_TAG:N&&M,aTypedArray:function(e){if(z(e))return e;throw new O("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!b||y($,e)))return e;throw new O(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(a){if(r)for(var i in F){var o=l[i];if(o&&d(o.prototype,e))try{delete o.prototype[e]}catch(r){try{o.prototype[e]=t}catch(e){}}}_[e]&&!r||m(_,e,r?t:j&&k[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,i;if(a){if(b){if(r)for(n in F)if((i=l[n])&&d(i,e))try{delete i[e]}catch(e){}if($[e]&&!r)return;try{return m($,e,r?t:j&&$[e]||t)}catch(e){}}for(n in F)!(i=l[n])||i[e]&&!r||m(i,e,t)}},getTypedArrayConstructor:B,isView:function(e){if(!u(e))return!1;var t=h(e);return"DataView"===t||d(F,t)||d(D,t)},isTypedArray:z,TypedArray:$,TypedArrayPrototype:_}},94901:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},94963:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(96540),i=r(34164),o=r(21362),s=r(82777),a=r(39407),l=r(16613),c=r(80625),u=r(26739),d=r(39241),h=r(13202),p=r(96148),f=r(1908);function m(e){return(0,f.Ay)("MuiTableCell",e)}const g=(0,p.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var y=r(74848);const v=(0,u.Ay)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${(0,a.A)(r.size)}`],"normal"!==r.padding&&t[`padding${(0,a.A)(r.padding)}`],"inherit"!==r.align&&t[`align${(0,a.A)(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((0,d.A)(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?(0,s.a)((0,s.X4)(e.palette.divider,1),.88):(0,s.e$)((0,s.X4)(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${g.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),b=n.forwardRef(function(e,t){const r=(0,h.b)({props:e,name:"MuiTableCell"}),{align:s="inherit",className:u,component:d,padding:p,scope:f,size:g,sortDirection:b,variant:w,...x}=r,A=n.useContext(l.A),C=n.useContext(c.A),S=C&&"head"===C.variant;let I;I=d||(S?"th":"td");let k=f;"td"===I?k=void 0:!k&&S&&(k="col");const E=w||C&&C.variant,T={...r,align:s,component:I,padding:p||(A&&A.padding?A.padding:"normal"),size:g||(A&&A.size?A.size:"medium"),sortDirection:b,stickyHeader:"head"===E&&A&&A.stickyHeader,variant:E},$=(e=>{const{classes:t,variant:r,align:n,padding:i,size:s,stickyHeader:l}=e,c={root:["root",r,l&&"stickyHeader","inherit"!==n&&`align${(0,a.A)(n)}`,"normal"!==i&&`padding${(0,a.A)(i)}`,`size${(0,a.A)(s)}`]};return(0,o.A)(c,m,t)})(T);let _=null;return b&&(_="asc"===b?"ascending":"descending"),(0,y.jsx)(v,{as:I,ref:t,className:(0,i.A)($.root,u),"aria-sort":_,scope:k,ownerState:T,...x})})},95117:(e,t,r)=>{"use strict";r.d(t,{E:()=>s,A:()=>a});var n=r(15870),i=r(96540);const o=[];class s{static create(){return new s}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function a(){const e=(0,n.A)(s.create).current;var t;return t=e.disposeEffect,i.useEffect(t,o),e}},95477:(e,t,r)=>{"use strict";r(15823)("Int32",function(e){return function(t,r,n){return e(this,t,r,n)}})},95505:(e,t,r)=>{"use strict";r.d(t,{A:()=>j});var n=r(96540),i=r(34164),o=r(21362),s=r(24902),a=r(10644),l=r(17726),c=r(74848);const u=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function d(e){const t=[],r=[];return Array.from(e.querySelectorAll(u)).forEach((e,n)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===i?t.push(e):r.push({documentOrder:n,tabIndex:i,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function h(){return!0}const p=function(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:i=!1,disableRestoreFocus:o=!1,getTabbable:u=d,isEnabled:p=h,open:f}=e,m=n.useRef(!1),g=n.useRef(null),y=n.useRef(null),v=n.useRef(null),b=n.useRef(null),w=n.useRef(!1),x=n.useRef(null),A=(0,s.A)((0,l.A)(t),x),C=n.useRef(null);n.useEffect(()=>{f&&x.current&&(w.current=!r)},[r,f]),n.useEffect(()=>{if(!f||!x.current)return;const e=(0,a.A)(x.current);return x.current.contains(e.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),w.current&&x.current.focus()),()=>{o||(v.current&&v.current.focus&&(m.current=!0,v.current.focus()),v.current=null)}},[f]),n.useEffect(()=>{if(!f||!x.current)return;const e=(0,a.A)(x.current),t=t=>{C.current=t,!i&&p()&&"Tab"===t.key&&e.activeElement===x.current&&t.shiftKey&&(m.current=!0,y.current&&y.current.focus())},r=()=>{const t=x.current;if(null===t)return;if(!e.hasFocus()||!p()||m.current)return void(m.current=!1);if(t.contains(e.activeElement))return;if(i&&e.activeElement!==g.current&&e.activeElement!==y.current)return;if(e.activeElement!==b.current)b.current=null;else if(null!==b.current)return;if(!w.current)return;let r=[];if(e.activeElement!==g.current&&e.activeElement!==y.current||(r=u(x.current)),r.length>0){const e=Boolean(C.current?.shiftKey&&"Tab"===C.current?.key),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,i,o,p,f,u]);const S=e=>{null===v.current&&(v.current=e.relatedTarget),w.current=!0};return(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)("div",{tabIndex:f?0:-1,onFocus:S,ref:g,"data-testid":"sentinelStart"}),n.cloneElement(t,{ref:A,onFocus:e=>{null===v.current&&(v.current=e.relatedTarget),w.current=!0,b.current=e.target;const r=t.props.onFocus;r&&r(e)}}),(0,c.jsx)("div",{tabIndex:f?0:-1,onFocus:S,ref:y,"data-testid":"sentinelEnd"})]})};var f=r(97350),m=r(26739),g=r(39241),y=r(13202),v=r(30016),b=r(78854),w=r(67160),x=r(52658),A=r(88612),C=r(244);function S(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function I(e){return parseInt((0,A.A)(e).getComputedStyle(e).paddingRight,10)||0}function k(e,t,r,n,i){const o=[t,r,...n];[].forEach.call(e.children,e=>{const t=!o.includes(e),r=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&S(e,i)})}function E(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}const T=()=>{},$=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&S(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);k(t,e.mount,e.modalRef,n,!0);const i=E(this.containers,e=>e.container===t);return-1!==i?(this.containers[i].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=E(this.containers,t=>t.modals.includes(e)),n=this.containers[r];n.restore||(n.restore=function(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,a.A)(e);return t.body===e?(0,A.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=(0,C.A)((0,A.A)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${I(n)+e}px`;const t=(0,a.A)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${I(t)+e}px`})}let e;if(n.parentNode instanceof DocumentFragment)e=(0,a.A)(n).body;else{const t=n.parentElement,r=(0,A.A)(n);e="HTML"===t?.nodeName&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=E(this.containers,t=>t.modals.includes(e)),i=this.containers[n];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(r,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&S(e.modalRef,t),k(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&S(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};var _=r(96148),R=r(1908);function O(e){return(0,R.Ay)("MuiModal",e)}(0,_.A)("MuiModal",["root","hidden","backdrop"]);var P=r(85078);const M=(0,m.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((0,g.A)(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),L=(0,m.Ay)(v.A,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),j=n.forwardRef(function(e,t){const r=(0,y.b)({name:"MuiModal",props:e}),{BackdropComponent:l=L,BackdropProps:u,classes:d,className:h,closeAfterTransition:m=!1,children:g,container:v,component:A,components:C={},componentsProps:I={},disableAutoFocus:k=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:_=!1,disablePortal:R=!1,disableRestoreFocus:j=!1,disableScrollLock:N=!1,hideBackdrop:F=!1,keepMounted:D=!1,onClose:B,onTransitionEnter:z,onTransitionExited:W,open:H,slotProps:V={},slots:G={},theme:U,...Z}=r,K={...r,closeAfterTransition:m,disableAutoFocus:k,disableEnforceFocus:E,disableEscapeKeyDown:_,disablePortal:R,disableRestoreFocus:j,disableScrollLock:N,hideBackdrop:F,keepMounted:D},{getRootProps:Y,getBackdropProps:q,getTransitionProps:X,portalRef:J,isTopModal:Q,exited:ee,hasTransition:te}=function(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:i=!1,closeAfterTransition:o=!1,onTransitionEnter:l,onTransitionExited:c,children:u,onClose:d,open:h,rootRef:p}=e,f=n.useRef({}),m=n.useRef(null),g=n.useRef(null),y=(0,s.A)(g,p),[v,A]=n.useState(!h),C=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let I=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(I=!1);const k=()=>(f.current.modalRef=g.current,f.current.mount=m.current,f.current),E=()=>{$.mount(k(),{disableScrollLock:i}),g.current&&(g.current.scrollTop=0)},_=(0,b.A)(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||(0,a.A)(m.current).body;$.add(k(),e),g.current&&E()}),R=()=>$.isTopModal(k()),O=(0,b.A)(e=>{m.current=e,e&&(h&&R()?E():g.current&&S(g.current,I))}),P=n.useCallback(()=>{$.remove(k(),I)},[I]);n.useEffect(()=>()=>{P()},[P]),n.useEffect(()=>{h?_():C&&o||P()},[h,P,C,o,_]);const M=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&R()&&(r||(t.stopPropagation(),d&&d(t,"escapeKeyDown")))},L=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&d&&d(t,"backdropClick")};return{getRootProps:(t={})=>{const r=(0,x.A)(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n={...r,...t};return{role:"presentation",...n,onKeyDown:M(n),ref:y}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:L(t),open:h}},getTransitionProps:()=>({onEnter:(0,w.A)(()=>{A(!1),l&&l()},u?.props.onEnter??T),onExited:(0,w.A)(()=>{A(!0),c&&c(),o&&P()},u?.props.onExited??T)}),rootRef:y,portalRef:O,isTopModal:R,exited:v,hasTransition:C}}({...K,rootRef:t}),re={...K,exited:ee},ne=(e=>{const{open:t,exited:r,classes:n}=e,i={root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]};return(0,o.A)(i,O,n)})(re),ie={};if(void 0===g.props.tabIndex&&(ie.tabIndex="-1"),te){const{onEnter:e,onExited:t}=X();ie.onEnter=e,ie.onExited=t}const oe={slots:{root:C.Root,backdrop:C.Backdrop,...G},slotProps:{...I,...V}},[se,ae]=(0,P.A)("root",{ref:t,elementType:M,externalForwardedProps:{...oe,...Z,component:A},getSlotProps:Y,ownerState:re,className:(0,i.A)(h,ne?.root,!re.open&&re.exited&&ne?.hidden)}),[le,ce]=(0,P.A)("backdrop",{ref:u?.ref,elementType:l,externalForwardedProps:oe,shouldForwardComponentProp:!0,additionalProps:u,getSlotProps:e=>q({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:(0,i.A)(u?.className,ne?.backdrop),ownerState:re});return D||H||te&&!ee?(0,c.jsx)(f.A,{ref:J,container:v,disablePortal:R,children:(0,c.jsxs)(se,{...ae,children:[!F&&l?(0,c.jsx)(le,{...ce}):null,(0,c.jsx)(p,{disableEnforceFocus:E,disableAutoFocus:k,disableRestoreFocus:j,isEnabled:Q,open:H,children:n.cloneElement(g,ie)})]})}):null})},95548:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(97102),i=r(49900),o=r(39612),s=r(7196),a=r(63132),l=r(98762);const c=function(){function e(e,t,r,i){const a={[e]:t,theme:r},l=i[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:h}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const p=(0,o.Yn)(r,u)||{};return h?h(a):(0,s.NI)(a,t,t=>{let r=(0,o.BO)(p,d,t);return t===r&&"string"==typeof t&&(r=(0,o.BO)(p,d,`${e}${"default"===t?"":(0,n.A)(t)}`,t)),!1===c?r:{[c]:r}})}return function t(r){const{sx:n,theme:o={}}=r||{};if(!n)return null;const c=o.unstable_sxConfig??l.A;function u(r){let n=r;if("function"==typeof r)n=r(o);else if("object"!=typeof r)return r;if(!n)return null;const l=(0,s.EU)(o.breakpoints),u=Object.keys(l);let d=l;return Object.keys(n).forEach(r=>{const a="function"==typeof(l=n[r])?l(o):l;var l;if(null!=a)if("object"==typeof a)if(c[r])d=(0,i.A)(d,e(r,a,o,c));else{const e=(0,s.NI)({theme:o},a,e=>({[r]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)}(e,a)?d=(0,i.A)(d,e):d[r]=t({sx:a,theme:o})}else d=(0,i.A)(d,e(r,a,o,c))}),(0,a._S)(o,(0,s.vf)(u,d))}return Array.isArray(n)?n.map(u):u(n)}}();c.filterProps=["sx"];const u=c},95636:(e,t,r)=>{"use strict";var n=r(44576),i=r(79504),o=r(46706),s=r(57696),a=r(55169),l=r(67394),c=r(94483),u=r(1548),d=n.structuredClone,h=n.ArrayBuffer,p=n.DataView,f=Math.min,m=h.prototype,g=p.prototype,y=i(m.slice),v=o(m,"resizable","get"),b=o(m,"maxByteLength","get"),w=i(g.getInt8),x=i(g.setInt8);e.exports=(u||c)&&function(e,t,r){var n,i=l(e),o=void 0===t?i:s(t),m=!v||!v(e);if(a(e),u&&(e=d(e,{transfer:[e]}),i===o&&(r||m)))return e;if(i>=o&&(!r||m))n=y(e,0,o);else{var g=r&&!m&&b?{maxByteLength:b(e)}:void 0;n=new h(o,g);for(var A=new p(e),C=new p(n),S=f(o,i),I=0;I<S;I++)x(C,I,w(A,I))}return u||c(e),n}},95950:(e,t,r)=>{var n=r(70695),i=r(88984),o=r(64894);e.exports=function(e){return o(e)?n(e):i(e)}},96069:(e,t,r)=>{"use strict";var n=r(46518),i=r(79504),o=r(63463),s=r(39297),a=r(60533).start,l=r(47452),c=Array,u=RegExp.escape,d=i("".charAt),h=i("".charCodeAt),p=i(1.1.toString),f=i([].join),m=/^[0-9a-z]/i,g=/^[$()*+./?[\\\]^{|}]/,y=RegExp("^[!\"#%&',\\-:;<=>@`~"+l+"]"),v=i(m.exec),b={"\t":"t","\n":"n","\v":"v","\f":"f","\r":"r"},w=function(e){var t=p(h(e,0),16);return t.length<3?"\\x"+a(t,2,"0"):"\\u"+a(t,4,"0")};n({target:"RegExp",stat:!0,forced:!u||"\\x61b"!==u("ab")},{escape:function(e){o(e);for(var t=e.length,r=c(t),n=0;n<t;n++){var i=d(e,n);if(0===n&&v(m,i))r[n]=w(i);else if(s(b,i))r[n]="\\"+b[i];else if(v(g,i))r[n]="\\"+i;else if(v(y,i))r[n]=w(i);else{var a=h(i,0);55296!=(63488&a)?r[n]=i:a>=56320||n+1>=t||56320!=(64512&h(e,n+1))?r[n]=w(i):(r[n]=i,r[++n]=d(e,n))}}return f(r,"")}})},96120:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(96540),i=r(34164),o=r(21362),s=r(26739),a=r(13202),l=r(96148),c=r(1908);function u(e){return(0,c.Ay)("MuiTableContainer",e)}(0,l.A)("MuiTableContainer",["root"]);var d=r(74848);const h=(0,s.Ay)("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),p=n.forwardRef(function(e,t){const r=(0,a.b)({props:e,name:"MuiTableContainer"}),{className:n,component:s="div",...l}=r,c={...r,component:s},p=(e=>{const{classes:t}=e;return(0,o.A)({root:["root"]},u,t)})(c);return(0,d.jsx)(h,{ref:t,as:s,className:(0,i.A)(p.root,n),ownerState:c,...l})})},96131:(e,t,r)=>{var n=r(2523),i=r(85463),o=r(76959);e.exports=function(e,t,r){return t==t?o(e,t,r):n(e,i,r)}},96148:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(1908);function i(e,t,r="Mui"){const i={};return t.forEach(t=>{i[t]=(0,n.Ay)(e,t,r)}),i}},96167:(e,t,r)=>{"use strict";var n=r(46518),i=r(69565),o=r(79306),s=r(36043),a=r(1103),l=r(72652);n({target:"Promise",stat:!0,forced:r(90537)},{allSettled:function(e){var t=this,r=s.f(t),n=r.resolve,c=r.reject,u=a(function(){var r=o(t.resolve),s=[],a=0,c=1;l(e,function(e){var o=a++,l=!1;c++,i(r,t,e).then(function(e){l||(l=!0,s[o]={status:"fulfilled",value:e},--c||n(s))},function(e){l||(l=!0,s[o]={status:"rejected",reason:e},--c||n(s))})}),--c||n(s)});return u.error&&c(u.value),r.promise}})},96224:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(96540),i=r(34164),o=r(21362),s=r(26739),a=r(39241),l=r(13202),c=r(96148),u=r(1908);function d(e){return(0,u.Ay)("MuiToolbar",e)}(0,c.A)("MuiToolbar",["root","gutters","regular","dense"]);var h=r(74848);const p=(0,s.Ay)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})((0,a.A)(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),f=n.forwardRef(function(e,t){const r=(0,l.b)({props:e,name:"MuiToolbar"}),{className:n,component:s="div",disableGutters:a=!1,variant:c="regular",...u}=r,f={...r,component:s,disableGutters:a,variant:c},m=(e=>{const{classes:t,disableGutters:r,variant:n}=e,i={root:["root",!r&&"gutters",n]};return(0,o.A)(i,d,t)})(f);return(0,h.jsx)(p,{as:s,className:(0,i.A)(m.root,n),ref:t,ownerState:f,...u})})},96319:(e,t,r)=>{"use strict";var n=r(28551),i=r(9539);e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){i(e,"throw",t)}}},96395:e=>{"use strict";e.exports=!1},96540:(e,t,r)=>{"use strict";e.exports=r(29869)},96568:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(31797),i=r(76011);t.default=function(e){const t=(r="string"==typeof e?(0,n.default)(e):e,Uint8Array.of((15&r[6])<<4|r[7]>>4&15,(15&r[7])<<4|(240&r[4])>>4,(15&r[4])<<4|(240&r[5])>>4,(15&r[5])<<4|(240&r[0])>>4,(15&r[0])<<4|(240&r[1])>>4,(15&r[1])<<4|(240&r[2])>>4,96|15&r[2],r[3],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15]));var r;return"string"==typeof e?(0,i.unsafeStringify)(t):t}},96801:(e,t,r)=>{"use strict";var n=r(43724),i=r(48686),o=r(24913),s=r(28551),a=r(25397),l=r(71072);t.f=n&&!i?Object.defineProperties:function(e,t){s(e);for(var r,n=a(t),i=l(t),c=i.length,u=0;c>u;)o.f(e,r=i[u++],n[r]);return e}},96837:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},97040:(e,t,r)=>{"use strict";var n=r(43724),i=r(24913),o=r(6980);e.exports=function(e,t,r){n?i.f(e,t,o(0,r)):e[t]=r}},97080:(e,t,r)=>{"use strict";var n=r(94402).has;e.exports=function(e){return n(e),e}},97102:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(4076);function i(e){if("string"!=typeof e)throw new Error((0,n.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},97164:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(96540);function i(e){const{controlled:t,default:r,name:i,state:o="value"}=e,{current:s}=n.useRef(void 0!==t),[a,l]=n.useState(r);return[s?t:a,n.useCallback(e=>{s||l(e)},[])]}},97324:(e,t,r)=>{"use strict";var n=r(44576),i=r(70511),o=r(24913).f,s=r(77347).f,a=n.Symbol;if(i("dispose"),a){var l=s(a,"dispose");l.enumerable&&l.configurable&&l.writable&&o(a,"dispose",{value:l.value,enumerable:!1,configurable:!1,writable:!1})}},97350:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(96540),i=r(40961),o=r(3576),s=r(24902);function a(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var l=r(17726);const c=n.forwardRef(function(e,t){const{children:r,container:c,disablePortal:u=!1}=e,[d,h]=n.useState(null),p=(0,s.A)(n.isValidElement(r)?(0,l.A)(r):null,t);if((0,o.A)(()=>{u||h(function(e){return"function"==typeof e?e():e}(c)||document.body)},[c,u]),(0,o.A)(()=>{if(d&&!u)return a(t,d),()=>{a(t,null)}},[t,d,u]),u){if(n.isValidElement(r)){const e={ref:p};return n.cloneElement(r,e)}return r}return d?i.createPortal(r,d):d})},97639:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(9792),i=r(74848);const o=(0,n.A)((0,i.jsx)("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}),"FileUpload")},97751:(e,t,r)=>{"use strict";var n=r(44576),i=r(94901);e.exports=function(e,t){return arguments.length<2?(r=n[e],i(r)?r:void 0):n[e]&&n[e][t];var r}},97812:(e,t,r)=>{"use strict";var n=r(46518),i=r(39297),o=r(10757),s=r(16823),a=r(25745),l=r(91296),c=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!o(e))throw new TypeError(s(e)+" is not a symbol");if(i(c,e))return c[e]}})},97916:(e,t,r)=>{"use strict";var n=r(76080),i=r(69565),o=r(48981),s=r(96319),a=r(44209),l=r(33517),c=r(26198),u=r(97040),d=r(70081),h=r(50851),p=Array;e.exports=function(e){var t=o(e),r=l(this),f=arguments.length,m=f>1?arguments[1]:void 0,g=void 0!==m;g&&(m=n(m,f>2?arguments[2]:void 0));var y,v,b,w,x,A,C=h(t),S=0;if(!C||this===p&&a(C))for(y=c(t),v=r?new this(y):p(y);y>S;S++)A=g?m(t[S],S):t[S],u(v,S,A);else for(v=r?new this:[],x=(w=d(t,C)).next;!(b=i(x,w)).done;S++)A=g?s(w,m,[b.value,S],!0):b.value,u(v,S,A);return v.length=S,v}},98406:(e,t,r)=>{"use strict";r(23792),r(27337);var n=r(46518),i=r(44576),o=r(93389),s=r(97751),a=r(69565),l=r(79504),c=r(43724),u=r(67416),d=r(36840),h=r(62106),p=r(56279),f=r(10687),m=r(33994),g=r(91181),y=r(90679),v=r(94901),b=r(39297),w=r(76080),x=r(36955),A=r(28551),C=r(20034),S=r(655),I=r(2360),k=r(6980),E=r(70081),T=r(50851),$=r(62529),_=r(22812),R=r(78227),O=r(74488),P=R("iterator"),M="URLSearchParams",L=M+"Iterator",j=g.set,N=g.getterFor(M),F=g.getterFor(L),D=o("fetch"),B=o("Request"),z=o("Headers"),W=B&&B.prototype,H=z&&z.prototype,V=i.TypeError,G=i.encodeURIComponent,U=String.fromCharCode,Z=s("String","fromCodePoint"),K=parseInt,Y=l("".charAt),q=l([].join),X=l([].push),J=l("".replace),Q=l([].shift),ee=l([].splice),te=l("".split),re=l("".slice),ne=l(/./.exec),ie=/\+/g,oe=/^[0-9a-f]+$/i,se=function(e,t){var r=re(e,t,t+2);return ne(oe,r)?K(r,16):NaN},ae=function(e){for(var t=0,r=128;r>0&&0!==(e&r);r>>=1)t++;return t},le=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},ce=function(e){for(var t=(e=J(e,ie," ")).length,r="",n=0;n<t;){var i=Y(e,n);if("%"===i){if("%"===Y(e,n+1)||n+3>t){r+="%",n++;continue}var o=se(e,n+1);if(o!=o){r+=i,n++;continue}n+=2;var s=ae(o);if(0===s)i=U(o);else{if(1===s||s>4){r+="�",n++;continue}for(var a=[o],l=1;l<s&&!(3+ ++n>t||"%"!==Y(e,n));){var c=se(e,n+1);if(c!=c){n+=3;break}if(c>191||c<128)break;X(a,c),n+=2,l++}if(a.length!==s){r+="�";continue}var u=le(a);null===u?r+="�":i=Z(u)}}r+=i,n++}return r},ue=/[!'()~]|%20/g,de={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},he=function(e){return de[e]},pe=function(e){return J(G(e),ue,he)},fe=m(function(e,t){j(this,{type:L,target:N(e).entries,index:0,kind:t})},M,function(){var e=F(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,$(void 0,!0);var n=t[r];switch(e.kind){case"keys":return $(n.key,!1);case"values":return $(n.value,!1)}return $([n.key,n.value],!1)},!0),me=function(e){this.entries=[],this.url=null,void 0!==e&&(C(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Y(e,0)?re(e,1):e:S(e)))};me.prototype={type:M,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,s,l,c=this.entries,u=T(e);if(u)for(r=(t=E(e,u)).next;!(n=a(r,t)).done;){if(o=(i=E(A(n.value))).next,(s=a(o,i)).done||(l=a(o,i)).done||!a(o,i).done)throw new V("Expected sequence with length 2");X(c,{key:S(s.value),value:S(l.value)})}else for(var d in e)b(e,d)&&X(c,{key:d,value:S(e[d])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=te(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(r=te(t,"="),X(n,{key:ce(Q(r)),value:ce(q(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],X(r,pe(e.key)+"="+pe(e.value));return q(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ge=function(){y(this,ye);var e=j(this,new me(arguments.length>0?arguments[0]:void 0));c||(this.size=e.entries.length)},ye=ge.prototype;if(p(ye,{append:function(e,t){var r=N(this);_(arguments.length,2),X(r.entries,{key:S(e),value:S(t)}),c||this.length++,r.updateURL()},delete:function(e){for(var t=N(this),r=_(arguments.length,1),n=t.entries,i=S(e),o=r<2?void 0:arguments[1],s=void 0===o?o:S(o),a=0;a<n.length;){var l=n[a];if(l.key!==i||void 0!==s&&l.value!==s)a++;else if(ee(n,a,1),void 0!==s)break}c||(this.size=n.length),t.updateURL()},get:function(e){var t=N(this).entries;_(arguments.length,1);for(var r=S(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=N(this).entries;_(arguments.length,1);for(var r=S(e),n=[],i=0;i<t.length;i++)t[i].key===r&&X(n,t[i].value);return n},has:function(e){for(var t=N(this).entries,r=_(arguments.length,1),n=S(e),i=r<2?void 0:arguments[1],o=void 0===i?i:S(i),s=0;s<t.length;){var a=t[s++];if(a.key===n&&(void 0===o||a.value===o))return!0}return!1},set:function(e,t){var r=N(this);_(arguments.length,1);for(var n,i=r.entries,o=!1,s=S(e),a=S(t),l=0;l<i.length;l++)(n=i[l]).key===s&&(o?ee(i,l--,1):(o=!0,n.value=a));o||X(i,{key:s,value:a}),c||(this.size=i.length),r.updateURL()},sort:function(){var e=N(this);O(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=N(this).entries,n=w(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new fe(this,"keys")},values:function(){return new fe(this,"values")},entries:function(){return new fe(this,"entries")}},{enumerable:!0}),d(ye,P,ye.entries,{name:"entries"}),d(ye,"toString",function(){return N(this).serialize()},{enumerable:!0}),c&&h(ye,"size",{get:function(){return N(this).entries.length},configurable:!0,enumerable:!0}),f(ge,M),n({global:!0,constructor:!0,forced:!u},{URLSearchParams:ge}),!u&&v(z)){var ve=l(H.has),be=l(H.set),we=function(e){if(C(e)){var t,r=e.body;if(x(r)===M)return t=e.headers?new z(e.headers):new z,ve(t,"content-type")||be(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),I(e,{body:k(0,S(r)),headers:k(0,t)})}return e};if(v(D)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return D(e,arguments.length>1?we(arguments[1]):{})}}),v(B)){var xe=function(e){return y(this,W),new B(e,arguments.length>1?we(arguments[1]):{})};W.constructor=xe,xe.prototype=W,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:xe})}}e.exports={URLSearchParams:ge,getState:N}},98587:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}r.d(t,{A:()=>n})},98663:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(34164);function i(e,t){if(!e)return t;function r(e,t){const r={};return Object.keys(t).forEach(n=>{(function(e,t){const r=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&r>=65&&r<=90&&"function"==typeof t})(n,t[n])&&"function"==typeof e[n]&&(r[n]=(...r)=>{e[n](...r),t[n](...r)})}),r}if("function"==typeof e||"function"==typeof t)return i=>{const o="function"==typeof t?t(i):t,s="function"==typeof e?e({...i,...o}):e,a=(0,n.A)(i?.className,o?.className,s?.className),l=r(s,o);return{...o,...s,...l,...!!a&&{className:a},...o?.style&&s?.style&&{style:{...o.style,...s.style}},...o?.sx&&s?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(s.sx)?s.sx:[s.sx]]}}};const i=t,o=r(e,i),s=(0,n.A)(i?.className,e?.className);return{...t,...e,...o,...!!s&&{className:s},...i?.style&&e?.style&&{style:{...i.style,...e.style}},...i?.sx&&e?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}},98690:(e,t,r)=>{"use strict";var n=r(46518),i=r(53250),o=Math.exp;n({target:"Math",stat:!0},{tanh:function(e){var t=+e,r=i(t),n=i(-t);return r===1/0?1:n===1/0?-1:(r-n)/(o(t)+o(-t))}})},98721:(e,t,r)=>{"use strict";var n=r(43724),i=r(79504),o=r(62106),s=URLSearchParams.prototype,a=i(s.forEach);n&&!("size"in s)&&o(s,"size",{get:function(){var e=0;return a(this,function(){e++}),e},configurable:!0,enumerable:!0})},98762:(e,t,r)=>{"use strict";r.d(t,{A:()=>M});var n=r(93781),i=r(39612),o=r(49900);const s=function(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?(0,o.A)(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r};var a=r(7196);function l(e){return"number"!=typeof e?e:`${e}px solid`}function c(e,t){return(0,i.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),h=c("borderRight",l),p=c("borderBottom",l),f=c("borderLeft",l),m=c("borderColor"),g=c("borderTopColor"),y=c("borderRightColor"),v=c("borderBottomColor"),b=c("borderLeftColor"),w=c("outline",l),x=c("outlineColor"),A=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,n.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:(0,n._W)(t,e)});return(0,a.NI)(e,e.borderRadius,r)}return null};A.propTypes={},A.filterProps=["borderRadius"],s(u,d,h,p,f,m,g,y,v,b,A,w,x);const C=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,n.MA)(e.theme,"spacing",8,"gap"),r=e=>({gap:(0,n._W)(t,e)});return(0,a.NI)(e,e.gap,r)}return null};C.propTypes={},C.filterProps=["gap"];const S=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,n.MA)(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:(0,n._W)(t,e)});return(0,a.NI)(e,e.columnGap,r)}return null};S.propTypes={},S.filterProps=["columnGap"];const I=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,n.MA)(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:(0,n._W)(t,e)});return(0,a.NI)(e,e.rowGap,r)}return null};function k(e,t){return"grey"===t?t:e}function E(e){return e<=1&&0!==e?100*e+"%":e}I.propTypes={},I.filterProps=["rowGap"],s(C,S,I,(0,i.Ay)({prop:"gridColumn"}),(0,i.Ay)({prop:"gridRow"}),(0,i.Ay)({prop:"gridAutoFlow"}),(0,i.Ay)({prop:"gridAutoColumns"}),(0,i.Ay)({prop:"gridAutoRows"}),(0,i.Ay)({prop:"gridTemplateColumns"}),(0,i.Ay)({prop:"gridTemplateRows"}),(0,i.Ay)({prop:"gridTemplateAreas"}),(0,i.Ay)({prop:"gridArea"})),s((0,i.Ay)({prop:"color",themeKey:"palette",transform:k}),(0,i.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:k}),(0,i.Ay)({prop:"backgroundColor",themeKey:"palette",transform:k}));const T=(0,i.Ay)({prop:"width",transform:E}),$=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const r=e.theme?.breakpoints?.values?.[t]||a.zu[t];return r?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:E(t)}};return(0,a.NI)(e,e.maxWidth,t)}return null};$.filterProps=["maxWidth"];const _=(0,i.Ay)({prop:"minWidth",transform:E}),R=(0,i.Ay)({prop:"height",transform:E}),O=(0,i.Ay)({prop:"maxHeight",transform:E}),P=(0,i.Ay)({prop:"minHeight",transform:E}),M=((0,i.Ay)({prop:"size",cssProperty:"width",transform:E}),(0,i.Ay)({prop:"size",cssProperty:"height",transform:E}),s(T,$,_,R,O,P,(0,i.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:A},color:{themeKey:"palette",transform:k},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:k},backgroundColor:{themeKey:"palette",transform:k},p:{style:n.Ms},pt:{style:n.Ms},pr:{style:n.Ms},pb:{style:n.Ms},pl:{style:n.Ms},px:{style:n.Ms},py:{style:n.Ms},padding:{style:n.Ms},paddingTop:{style:n.Ms},paddingRight:{style:n.Ms},paddingBottom:{style:n.Ms},paddingLeft:{style:n.Ms},paddingX:{style:n.Ms},paddingY:{style:n.Ms},paddingInline:{style:n.Ms},paddingInlineStart:{style:n.Ms},paddingInlineEnd:{style:n.Ms},paddingBlock:{style:n.Ms},paddingBlockStart:{style:n.Ms},paddingBlockEnd:{style:n.Ms},m:{style:n.Lc},mt:{style:n.Lc},mr:{style:n.Lc},mb:{style:n.Lc},ml:{style:n.Lc},mx:{style:n.Lc},my:{style:n.Lc},margin:{style:n.Lc},marginTop:{style:n.Lc},marginRight:{style:n.Lc},marginBottom:{style:n.Lc},marginLeft:{style:n.Lc},marginX:{style:n.Lc},marginY:{style:n.Lc},marginInline:{style:n.Lc},marginInlineStart:{style:n.Lc},marginInlineEnd:{style:n.Lc},marginBlock:{style:n.Lc},marginBlockStart:{style:n.Lc},marginBlockEnd:{style:n.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:C},rowGap:{style:I},columnGap:{style:S},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:E},maxWidth:{style:$},minWidth:{transform:E},height:{transform:E},maxHeight:{transform:E},minHeight:{transform:E},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},98855:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(23);const i=e=>(0,n.A)(e)&&"classes"!==e},99449:(e,t,r)=>{"use strict";var n,i=r(46518),o=r(27476),s=r(77347).f,a=r(18014),l=r(655),c=r(60511),u=r(67750),d=r(41436),h=r(96395),p=o("".slice),f=Math.min,m=d("endsWith");i({target:"String",proto:!0,forced:!(!h&&!m&&(n=s(String.prototype,"endsWith"),n&&!n.writable)||m)},{endsWith:function(e){var t=l(u(this));c(e);var r=arguments.length>1?arguments[1]:void 0,n=t.length,i=void 0===r?n:f(a(r),n),o=l(e);return p(t,i-o.length,i)===o}})},99590:(e,t,r)=>{"use strict";var n=r(91291),i=RangeError;e.exports=function(e){var t=n(e);if(t<0)throw new i("The argument can't be less than 0");return t}},99692:(e,t,r)=>{"use strict";function n(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function i(e,t=!1){return e&&(n(e.value)&&""!==e.value||t&&n(e.defaultValue)&&""!==e.defaultValue)}function o(e){return e.startAdornment}r.d(t,{gr:()=>o,lq:()=>i})},99798:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(96540),i=r(37353),o=r(17726),s=r(53356),a=r(24337),l=r(30301),c=r(74848);const u={entering:{opacity:1},entered:{opacity:1}},d=n.forwardRef(function(e,t){const r=(0,s.A)(),d={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:h,appear:p=!0,children:f,easing:m,in:g,onEnter:y,onEntered:v,onEntering:b,onExit:w,onExited:x,onExiting:A,style:C,timeout:S=d,TransitionComponent:I=i.Ay,...k}=e,E=n.useRef(null),T=(0,l.A)(E,(0,o.A)(f),t),$=e=>t=>{if(e){const r=E.current;void 0===t?e(r):e(r,t)}},_=$(b),R=$((e,t)=>{(0,a.q)(e);const n=(0,a.c)({style:C,timeout:S,easing:m},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),y&&y(e,t)}),O=$(v),P=$(A),M=$(e=>{const t=(0,a.c)({style:C,timeout:S,easing:m},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),w&&w(e)}),L=$(x);return(0,c.jsx)(I,{appear:p,in:g,nodeRef:E,onEnter:R,onEntered:O,onEntering:_,onExit:M,onExited:L,onExiting:P,addEndListener:e=>{h&&h(E.current,e)},timeout:S,...k,children:(e,{ownerState:t,...r})=>n.cloneElement(f,{style:{opacity:0,visibility:"exited"!==e||g?void 0:"hidden",...u[e],...C,...f.props.style},ref:T,...r})})})}}]);
|
|
4046
|
-
//# sourceMappingURL=819.
|
|
4046
|
+
//# sourceMappingURL=819.bf48228f4ca85ca930e9.js.map
|