openc3-cosmos-demo 5.20.0 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,1417 @@
1
- (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define(["vue"],e):"object"===typeof exports?exports["BigWidget"]=e(require("vue")):t["BigWidget"]=e(t["vue"])})("undefined"!==typeof self?self:this,(t=>(()=>{var e={6857:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(6758),i=n.n(r),o=n(935),s=n.n(o),a=s()(i());a.push([t.id,".label[data-v-18fc7350]{font-weight:700;text-transform:capitalize}[data-v-18fc7350] .v-input--selection-controls{padding:0;margin:0}",""]);const c=a},7619:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(6758),i=n.n(r),o=n(935),s=n.n(o),a=s()(i());a.push([t.id,".value-widget-container[data-v-2426130b]{min-height:100px}.value[data-v-2426130b] div{min-height:88px!important;display:flex!important;align-items:center!important}.value-widget-container[data-v-2426130b] input{max-height:none!important;line-height:70px!important;font-size:60px!important}.openc3-green[data-v-2426130b] input{color:#00c800}.openc3-yellow[data-v-2426130b] input{color:#ffdc00}.openc3-red[data-v-2426130b] input{color:#ff2d2d}.openc3-blue[data-v-2426130b] input{color:#09f}.openc3-purple[data-v-2426130b] input{color:#c800c8}.openc3-black[data-v-2426130b] input{color:#000}.openc3-white[data-v-2426130b] input{color:#fff}",""]);const c=a},935:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r="undefined"!==typeof e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,o){"string"===typeof t&&(t=[[null,t,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(s[c]=!0)}for(var u=0;u<t.length;u++){var l=[].concat(t[u]);r&&s[l[0]]||("undefined"!==typeof o&&("undefined"===typeof l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},6758:t=>{"use strict";t.exports=function(t){return t[1]}},9471:(t,e,n)=>{var r;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function o(t){return a(u(t),arguments)}function s(t,e){return o.apply(null,[t].concat(e||[]))}function a(t,e){var n,r,s,a,c,u,l,f,d,h=1,p=t.length,m="";for(r=0;r<p;r++)if("string"===typeof t[r])m+=t[r];else if("object"===typeof t[r]){if(a=t[r],a.keys)for(n=e[h],s=0;s<a.keys.length;s++){if(void 0==n)throw new Error(o('[sprintf] Cannot access property "%s" of undefined value "%s"',a.keys[s],a.keys[s-1]));n=n[a.keys[s]]}else n=a.param_no?e[a.param_no]:e[h++];if(i.not_type.test(a.type)&&i.not_primitive.test(a.type)&&n instanceof Function&&(n=n()),i.numeric_arg.test(a.type)&&"number"!==typeof n&&isNaN(n))throw new TypeError(o("[sprintf] expecting number but found %T",n));switch(i.number.test(a.type)&&(f=n>=0),a.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,a.width?parseInt(a.width):0);break;case"e":n=a.precision?parseFloat(n).toExponential(a.precision):parseFloat(n).toExponential();break;case"f":n=a.precision?parseFloat(n).toFixed(a.precision):parseFloat(n);break;case"g":n=a.precision?String(Number(n.toPrecision(a.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=a.precision?n.substring(0,a.precision):n;break;case"t":n=String(!!n),n=a.precision?n.substring(0,a.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=a.precision?n.substring(0,a.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=a.precision?n.substring(0,a.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase();break}i.json.test(a.type)?m+=n:(!i.number.test(a.type)||f&&!a.sign?d="":(d=f?"+":"-",n=n.toString().replace(i.sign,"")),u=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",l=a.width-(d+n).length,c=a.width&&l>0?u.repeat(l):"",m+=a.align?d+n+c:"0"===u?d+c+n:c+d+n)}return m}var c=Object.create(null);function u(t){if(c[t])return c[t];var e,n=t,r=[],o=0;while(n){if(null!==(e=i.text.exec(n)))r.push(e[0]);else if(null!==(e=i.modulo.exec(n)))r.push("%");else{if(null===(e=i.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(e[2]){o|=1;var s=[],a=e[2],u=[];if(null===(u=i.key.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");s.push(u[1]);while(""!==(a=a.substring(u[0].length)))if(null!==(u=i.key_access.exec(a)))s.push(u[1]);else{if(null===(u=i.index_access.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");s.push(u[1])}e[2]=s}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:e[0],param_no:e[1],keys:e[2],sign:e[3],pad_char:e[4],align:e[5],width:e[6],precision:e[7],type:e[8]})}n=n.substring(e[0].length)}return c[t]=r}"undefined"!==typeof window&&(window["sprintf"]=o,window["vsprintf"]=s,r=function(){return{sprintf:o,vsprintf:s}}.call(e,n,e,t),void 0===r||(t.exports=r))}()},4849:(t,e,n)=>{var r=n(6857);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);var i=n(4825).A;i("7adc6a5a",r,!0,{sourceMap:!1,shadowMode:!1})},8746:(t,e,n)=>{var r=n(7619);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);var i=n(4825).A;i("5121761c",r,!0,{sourceMap:!1,shadowMode:!1})},4825:(t,e,n)=>{"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],s=o[0],a=o[1],c=o[2],u=o[3],l={id:t+":"+i,css:a,media:c,sourceMap:u};r[s]?r[s].parts.push(l):n.push(r[s]={id:s,parts:[l]})}return n}n.d(e,{A:()=>p});var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},s=i&&(document.head||document.getElementsByTagName("head")[0]),a=null,c=0,u=!1,l=function(){},f=null,d="data-vue-ssr-id",h="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,n,i){u=n,f=i||{};var s=r(t,e);return m(s),function(e){for(var n=[],i=0;i<s.length;i++){var a=s[i],c=o[a.id];c.refs--,n.push(c)}e?(s=r(t,e),m(s)):s=[];for(i=0;i<n.length;i++){c=n[i];if(0===c.refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete o[c.id]}}}}function m(t){for(var e=0;e<t.length;e++){var n=t[e],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(v(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var s=[];for(i=0;i<n.parts.length;i++)s.push(v(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:s}}}}function g(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function v(t){var e,n,r=document.querySelector("style["+d+'~="'+t.id+'"]');if(r){if(u)return l;r.parentNode.removeChild(r)}if(h){var i=c++;r=a||(a=g()),e=w.bind(null,r,i,!1),n=w.bind(null,r,i,!0)}else r=g(),e=b.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function w(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=y(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function b(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),f.ssrId&&t.setAttribute(d,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},2380:e=>{"use strict";e.exports=t},4977:(t,e,n)=>{"use strict";var r=n(4188),i=n(3174),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a function")}},1361:(t,e,n)=>{"use strict";var r=n(866),i=n(3174),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a constructor")}},4121:(t,e,n)=>{"use strict";var r=n(6712),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw new o("Can't set "+i(t)+" as a prototype")}},154:(t,e,n)=>{"use strict";var r=n(4212).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},286:(t,e,n)=>{"use strict";var r=n(4578),i=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new i("Incorrect invocation")}},3770:(t,e,n)=>{"use strict";var r=n(831),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not an object")}},8732:t=>{"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},1617:(t,e,n)=>{"use strict";var r=n(9117),i=n(1025),o=n(8689),s=r.ArrayBuffer,a=r.TypeError;t.exports=s&&i(s.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==o(t))throw new a("ArrayBuffer expected");return t.byteLength}},6821:(t,e,n)=>{"use strict";var r=n(9117),i=n(5691),o=n(1617),s=r.ArrayBuffer,a=s&&s.prototype,c=a&&i(a.slice);t.exports=function(t){if(0!==o(t))return!1;if(!c)return!1;try{return c(t,0,0),!1}catch(e){return!0}}},2676:(t,e,n)=>{"use strict";var r=n(6821),i=TypeError;t.exports=function(t){if(r(t))throw new i("ArrayBuffer is detached");return t}},5677:(t,e,n)=>{"use strict";var r=n(9117),i=n(6881),o=n(1025),s=n(4579),a=n(2676),c=n(1617),u=n(8850),l=n(9059),f=r.structuredClone,d=r.ArrayBuffer,h=r.DataView,p=Math.min,m=d.prototype,g=h.prototype,v=i(m.slice),y=o(m,"resizable","get"),w=o(m,"maxByteLength","get"),b=i(g.getInt8),_=i(g.setInt8);t.exports=(l||u)&&function(t,e,n){var r,i=c(t),o=void 0===e?i:s(e),m=!y||!y(t);if(a(t),l&&(t=f(t,{transfer:[t]}),i===o&&(n||m)))return t;if(i>=o&&(!n||m))r=v(t,0,o);else{var g=n&&!m&&w?{maxByteLength:w(t)}:void 0;r=new d(o,g);for(var x=new h(t),T=new h(r),S=p(o,i),E=0;E<S;E++)_(T,E,b(x,E))}return l||u(t),r}},7223:(t,e,n)=>{"use strict";var r,i,o,s=n(8732),a=n(6893),c=n(9117),u=n(4188),l=n(831),f=n(4418),d=n(5438),h=n(3174),p=n(8088),m=n(7509),g=n(997),v=n(4578),y=n(1786),w=n(5054),b=n(4282),_=n(6209),x=n(3086),T=x.enforce,S=x.get,E=c.Int8Array,O=E&&E.prototype,A=c.Uint8ClampedArray,N=A&&A.prototype,C=E&&y(E),R=O&&y(O),D=Object.prototype,I=c.TypeError,k=b("toStringTag"),M=_("TYPED_ARRAY_TAG"),P="TypedArrayConstructor",j=s&&!!w&&"Opera"!==d(c.opera),F=!1,L={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},B=function(t){if(!l(t))return!1;var e=d(t);return"DataView"===e||f(L,e)||f(U,e)},W=function(t){var e=y(t);if(l(e)){var n=S(e);return n&&f(n,P)?n[P]:W(e)}},H=function(t){if(!l(t))return!1;var e=d(t);return f(L,e)||f(U,e)},$=function(t){if(H(t))return t;throw new I("Target is not a typed array")},z=function(t){if(u(t)&&(!w||v(C,t)))return t;throw new I(h(t)+" is not a typed array constructor")},Y=function(t,e,n,r){if(a){if(n)for(var i in L){var o=c[i];if(o&&f(o.prototype,t))try{delete o.prototype[t]}catch(s){try{o.prototype[t]=e}catch(u){}}}R[t]&&!n||m(R,t,n?e:j&&O[t]||e,r)}},V=function(t,e,n){var r,i;if(a){if(w){if(n)for(r in L)if(i=c[r],i&&f(i,t))try{delete i[t]}catch(o){}if(C[t]&&!n)return;try{return m(C,t,n?e:j&&C[t]||e)}catch(o){}}for(r in L)i=c[r],!i||i[t]&&!n||m(i,t,e)}};for(r in L)i=c[r],o=i&&i.prototype,o?T(o)[P]=i:j=!1;for(r in U)i=c[r],o=i&&i.prototype,o&&(T(o)[P]=i);if((!j||!u(C)||C===Function.prototype)&&(C=function(){throw new I("Incorrect invocation")},j))for(r in L)c[r]&&w(c[r],C);if((!j||!R||R===D)&&(R=C.prototype,j))for(r in L)c[r]&&w(c[r].prototype,R);if(j&&y(N)!==R&&w(N,R),a&&!f(R,k))for(r in F=!0,g(R,k,{configurable:!0,get:function(){return l(this)?this[M]:void 0}}),L)c[r]&&p(c[r],M,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:j,TYPED_ARRAY_TAG:F&&M,aTypedArray:$,aTypedArrayConstructor:z,exportTypedArrayMethod:Y,exportTypedArrayStaticMethod:V,getTypedArrayConstructor:W,isView:B,isTypedArray:H,TypedArray:C,TypedArrayPrototype:R}},8633:(t,e,n)=>{"use strict";var r=n(9117),i=n(6881),o=n(6893),s=n(8732),a=n(2735),c=n(8088),u=n(997),l=n(4320),f=n(5234),d=n(286),h=n(6744),p=n(7611),m=n(4579),g=n(2420),v=n(6103),y=n(1786),w=n(5054),b=n(8150),_=n(7825),x=n(4166),T=n(8657),S=n(3754),E=n(3086),O=a.PROPER,A=a.CONFIGURABLE,N="ArrayBuffer",C="DataView",R="prototype",D="Wrong length",I="Wrong index",k=E.getterFor(N),M=E.getterFor(C),P=E.set,j=r[N],F=j,L=F&&F[R],U=r[C],B=U&&U[R],W=Object.prototype,H=r.Array,$=r.RangeError,z=i(b),Y=i([].reverse),V=v.pack,q=v.unpack,G=function(t){return[255&t]},X=function(t){return[255&t,t>>8&255]},Z=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},J=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},K=function(t){return V(g(t),23,4)},Q=function(t){return V(t,52,8)},tt=function(t,e,n){u(t[R],e,{configurable:!0,get:function(){return n(this)[e]}})},et=function(t,e,n,r){var i=M(t),o=m(n),s=!!r;if(o+e>i.byteLength)throw new $(I);var a=i.bytes,c=o+i.byteOffset,u=_(a,c,c+e);return s?u:Y(u)},nt=function(t,e,n,r,i,o){var s=M(t),a=m(n),c=r(+i),u=!!o;if(a+e>s.byteLength)throw new $(I);for(var l=s.bytes,f=a+s.byteOffset,d=0;d<e;d++)l[f+d]=c[u?d:e-d-1]};if(s){var rt=O&&j.name!==N;f((function(){j(1)}))&&f((function(){new j(-1)}))&&!f((function(){return new j,new j(1.5),new j(NaN),1!==j.length||rt&&!A}))?rt&&A&&c(j,"name",N):(F=function(t){return d(this,L),x(new j(m(t)),this,F)},F[R]=L,L.constructor=F,T(F,j)),w&&y(B)!==W&&w(B,W);var it=new U(new F(2)),ot=i(B.setInt8);it.setInt8(0,2147483648),it.setInt8(1,2147483649),!it.getInt8(0)&&it.getInt8(1)||l(B,{setInt8:function(t,e){ot(this,t,e<<24>>24)},setUint8:function(t,e){ot(this,t,e<<24>>24)}},{unsafe:!0})}else F=function(t){d(this,L);var e=m(t);P(this,{type:N,bytes:z(H(e),0),byteLength:e}),o||(this.byteLength=e,this.detached=!1)},L=F[R],U=function(t,e,n){d(this,B),d(t,L);var r=k(t),i=r.byteLength,s=h(e);if(s<0||s>i)throw new $("Wrong offset");if(n=void 0===n?i-s:p(n),s+n>i)throw new $(D);P(this,{type:C,buffer:t,byteLength:n,byteOffset:s,bytes:r.bytes}),o||(this.buffer=t,this.byteLength=n,this.byteOffset=s)},B=U[R],o&&(tt(F,"byteLength",k),tt(U,"buffer",M),tt(U,"byteLength",M),tt(U,"byteOffset",M)),l(B,{getInt8:function(t){return et(this,1,t)[0]<<24>>24},getUint8:function(t){return et(this,1,t)[0]},getInt16:function(t){var e=et(this,2,t,arguments.length>1&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=et(this,2,t,arguments.length>1&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return J(et(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function(t){return J(et(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(t){return q(et(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function(t){return q(et(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function(t,e){nt(this,1,t,G,e)},setUint8:function(t,e){nt(this,1,t,G,e)},setInt16:function(t,e){nt(this,2,t,X,e,arguments.length>2&&arguments[2])},setUint16:function(t,e){nt(this,2,t,X,e,arguments.length>2&&arguments[2])},setInt32:function(t,e){nt(this,4,t,Z,e,arguments.length>2&&arguments[2])},setUint32:function(t,e){nt(this,4,t,Z,e,arguments.length>2&&arguments[2])},setFloat32:function(t,e){nt(this,4,t,K,e,arguments.length>2&&arguments[2])},setFloat64:function(t,e){nt(this,8,t,Q,e,arguments.length>2&&arguments[2])}});S(F,N),S(U,C),t.exports={ArrayBuffer:F,DataView:U}},8150:(t,e,n)=>{"use strict";var r=n(3628),i=n(675),o=n(9389);t.exports=function(t){var e=r(this),n=o(e),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),c=s>2?arguments[2]:void 0,u=void 0===c?n:i(c,n);while(u>a)e[a++]=t;return e}},6759:(t,e,n)=>{"use strict";var r=n(9389);t.exports=function(t,e,n){var i=0,o=arguments.length>2?n:r(e),s=new t(o);while(o>i)s[i]=e[i++];return s}},1458:(t,e,n)=>{"use strict";var r=n(380),i=n(675),o=n(9389),s=function(t){return function(e,n,s){var a=r(e),c=o(a);if(0===c)return!t&&-1;var u,l=i(s,c);if(t&&n!==n){while(c>l)if(u=a[l++],u!==u)return!0}else for(;c>l;l++)if((t||l in a)&&a[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},710:(t,e,n)=>{"use strict";var r=n(5821),i=n(7568),o=n(3628),s=n(9389),a=function(t){var e=1===t;return function(n,a,c){var u,l,f=o(n),d=i(f),h=s(d),p=r(a,c);while(h-- >0)if(u=d[h],l=p(u,h,f),l)switch(t){case 0:return u;case 1:return h}return e?-1:void 0}};t.exports={findLast:a(0),findLastIndex:a(1)}},4104:(t,e,n)=>{"use strict";var r=n(5821),i=n(6881),o=n(7568),s=n(3628),a=n(9389),c=n(5022),u=i([].push),l=function(t){var e=1===t,n=2===t,i=3===t,l=4===t,f=6===t,d=7===t,h=5===t||f;return function(p,m,g,v){for(var y,w,b=s(p),_=o(b),x=a(_),T=r(m,g),S=0,E=v||c,O=e?E(p,x):n||d?E(p,0):void 0;x>S;S++)if((h||S in _)&&(y=_[S],w=T(y,S,b),t))if(e)O[S]=w;else if(w)switch(t){case 3:return!0;case 5:return y;case 6:return S;case 2:u(O,y)}else switch(t){case 4:return!1;case 7:u(O,y)}return f?-1:i||l?l:O}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},4224:(t,e,n)=>{"use strict";var r=n(6893),i=n(6719),o=TypeError,s=Object.getOwnPropertyDescriptor,a=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(i(t)&&!s(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},7825:(t,e,n)=>{"use strict";var r=n(6881);t.exports=r([].slice)},9295:(t,e,n)=>{"use strict";var r=n(7825),i=Math.floor,o=function(t,e){var n=t.length;if(n<8){var s,a,c=1;while(c<n){a=c,s=t[c];while(a&&e(t[a-1],s)>0)t[a]=t[--a];a!==c++&&(t[a]=s)}}else{var u=i(n/2),l=o(r(t,0,u),e),f=o(r(t,u),e),d=l.length,h=f.length,p=0,m=0;while(p<d||m<h)t[p+m]=p<d&&m<h?e(l[p],f[m])<=0?l[p++]:f[m++]:p<d?l[p++]:f[m++]}return t};t.exports=o},9980:(t,e,n)=>{"use strict";var r=n(6719),i=n(866),o=n(831),s=n(4282),a=s("species"),c=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,i(e)&&(e===c||r(e.prototype))?e=void 0:o(e)&&(e=e[a],null===e&&(e=void 0))),void 0===e?c:e}},5022:(t,e,n)=>{"use strict";var r=n(9980);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},1433:(t,e,n)=>{"use strict";var r=n(9389);t.exports=function(t,e){for(var n=r(t),i=new e(n),o=0;o<n;o++)i[o]=t[n-o-1];return i}},6803:(t,e,n)=>{"use strict";var r=n(9389),i=n(6744),o=RangeError;t.exports=function(t,e,n,s){var a=r(t),c=i(n),u=c<0?a+c:c;if(u>=a||u<0)throw new o("Incorrect index");for(var l=new e(a),f=0;f<a;f++)l[f]=f===u?s:t[f];return l}},7283:(t,e,n)=>{"use strict";var r=n(4282),i=r("iterator"),o=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){o=!0}};a[i]=function(){return this},Array.from(a,(function(){throw 2}))}catch(c){}t.exports=function(t,e){try{if(!e&&!o)return!1}catch(c){return!1}var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(c){}return n}},8689:(t,e,n)=>{"use strict";var r=n(6881),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},5438:(t,e,n)=>{"use strict";var r=n(9345),i=n(4188),o=n(8689),s=n(4282),a=s("toStringTag"),c=Object,u="Arguments"===o(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(n){}};t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=l(e=c(t),a))?n:u?o(e):"Object"===(r=o(e))&&i(e.callee)?"Arguments":r}},8657:(t,e,n)=>{"use strict";var r=n(4418),i=n(3168),o=n(9304),s=n(4466);t.exports=function(t,e,n){for(var a=i(e),c=s.f,u=o.f,l=0;l<a.length;l++){var f=a[l];r(t,f)||n&&r(n,f)||c(t,f,u(e,f))}}},680:(t,e,n)=>{"use strict";var r=n(5234);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},8088:(t,e,n)=>{"use strict";var r=n(6893),i=n(4466),o=n(9123);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9123:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},997:(t,e,n)=>{"use strict";var r=n(4530),i=n(4466);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),i.f(t,e,n)}},7509:(t,e,n)=>{"use strict";var r=n(4188),i=n(4466),o=n(4530),s=n(4798);t.exports=function(t,e,n,a){a||(a={});var c=a.enumerable,u=void 0!==a.name?a.name:e;if(r(n)&&o(n,u,a),a.global)c?t[e]=n:s(e,n);else{try{a.unsafe?t[e]&&(c=!0):delete t[e]}catch(l){}c?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},4320:(t,e,n)=>{"use strict";var r=n(7509);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},4798:(t,e,n)=>{"use strict";var r=n(9117),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},1305:(t,e,n)=>{"use strict";var r=n(3174),i=TypeError;t.exports=function(t,e){if(!delete t[e])throw new i("Cannot delete property "+r(e)+" of "+r(t))}},6893:(t,e,n)=>{"use strict";var r=n(5234);t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8850:(t,e,n)=>{"use strict";var r,i,o,s,a=n(9117),c=n(9822),u=n(9059),l=a.structuredClone,f=a.ArrayBuffer,d=a.MessageChannel,h=!1;if(u)h=function(t){l(t,{transfer:[t]})};else if(f)try{d||(r=c("worker_threads"),r&&(d=r.MessageChannel)),d&&(i=new d,o=new f(2),s=function(t){i.port1.postMessage(null,[t])},2===o.byteLength&&(s(o),0===o.byteLength&&(h=s)))}catch(p){}t.exports=h},5926:(t,e,n)=>{"use strict";var r=n(9117),i=n(831),o=r.document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},2197:t=>{"use strict";var e=TypeError,n=9007199254740991;t.exports=function(t){if(t>n)throw e("Maximum allowed index exceeded");return t}},1274:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2222:(t,e,n)=>{"use strict";var r=n(8060),i=r.match(/firefox\/(\d+)/i);t.exports=!!i&&+i[1]},4598:(t,e,n)=>{"use strict";var r=n(8060);t.exports=/MSIE|Trident/.test(r)},3940:(t,e,n)=>{"use strict";var r=n(1078);t.exports="NODE"===r},8060:(t,e,n)=>{"use strict";var r=n(9117),i=r.navigator,o=i&&i.userAgent;t.exports=o?String(o):""},3008:(t,e,n)=>{"use strict";var r,i,o=n(9117),s=n(8060),a=o.process,c=o.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(r=l.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(r=s.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),t.exports=i},7340:(t,e,n)=>{"use strict";var r=n(8060),i=r.match(/AppleWebKit\/(\d+)\./);t.exports=!!i&&+i[1]},1078:(t,e,n)=>{"use strict";var r=n(9117),i=n(8060),o=n(8689),s=function(t){return i.slice(0,t.length)===t};t.exports=function(){return s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"}()},7308:(t,e,n)=>{"use strict";var r=n(6881),i=Error,o=r("".replace),s=function(t){return String(new i(t).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(s);t.exports=function(t,e){if(c&&"string"==typeof t&&!i.prepareStackTrace)while(e--)t=o(t,a,"");return t}},5382:(t,e,n)=>{"use strict";var r=n(8088),i=n(7308),o=n(4582),s=Error.captureStackTrace;t.exports=function(t,e,n,a){o&&(s?s(t,e):r(t,"stack",i(n,a)))}},4582:(t,e,n)=>{"use strict";var r=n(5234),i=n(9123);t.exports=!r((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},5613:(t,e,n)=>{"use strict";var r=n(9117),i=n(9304).f,o=n(8088),s=n(7509),a=n(4798),c=n(8657),u=n(8489);t.exports=function(t,e){var n,l,f,d,h,p,m=t.target,g=t.global,v=t.stat;if(l=g?r:v?r[m]||a(m,{}):r[m]&&r[m].prototype,l)for(f in e){if(h=e[f],t.dontCallGetSet?(p=i(l,f),d=p&&p.value):d=l[f],n=u(g?f:m+(v?".":"#")+f,t.forced),!n&&void 0!==d){if(typeof h==typeof d)continue;c(h,d)}(t.sham||d&&d.sham)&&o(h,"sham",!0),s(l,f,h,t)}}},5234:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},467:(t,e,n)=>{"use strict";n(8376);var r=n(9944),i=n(7509),o=n(9342),s=n(5234),a=n(4282),c=n(8088),u=a("species"),l=RegExp.prototype;t.exports=function(t,e,n,f){var d=a(t),h=!s((function(){var e={};return e[d]=function(){return 7},7!==""[t](e)})),p=h&&!s((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[u]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return e=!0,null},n[d](""),!e}));if(!h||!p||n){var m=/./[d],g=e(d,""[t],(function(t,e,n,i,s){var a=e.exec;return a===o||a===l.exec?h&&!s?{done:!0,value:r(m,e,n,i)}:{done:!0,value:r(t,n,e,i)}:{done:!1}}));i(String.prototype,t,g[0]),i(l,d,g[1])}f&&c(l[d],"sham",!0)}},646:(t,e,n)=>{"use strict";var r=n(9055),i=Function.prototype,o=i.apply,s=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(o):function(){return s.apply(o,arguments)})},5821:(t,e,n)=>{"use strict";var r=n(5691),i=n(4977),o=n(9055),s=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?s(t,e):function(){return t.apply(e,arguments)}}},9055:(t,e,n)=>{"use strict";var r=n(5234);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9944:(t,e,n)=>{"use strict";var r=n(9055),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},2735:(t,e,n)=>{"use strict";var r=n(6893),i=n(4418),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),c=a&&"something"===function(){}.name,u=a&&(!r||r&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},1025:(t,e,n)=>{"use strict";var r=n(6881),i=n(4977);t.exports=function(t,e,n){try{return r(i(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(o){}}},5691:(t,e,n)=>{"use strict";var r=n(8689),i=n(6881);t.exports=function(t){if("Function"===r(t))return i(t)}},6881:(t,e,n)=>{"use strict";var r=n(9055),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);t.exports=r?s:function(t){return function(){return o.apply(t,arguments)}}},9822:(t,e,n)=>{"use strict";var r=n(9117),i=n(3940);t.exports=function(t){if(i){try{return r.process.getBuiltinModule(t)}catch(e){}try{return Function('return require("'+t+'")')()}catch(e){}}}},5604:(t,e,n)=>{"use strict";var r=n(9117),i=n(4188),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},9874:(t,e,n)=>{"use strict";var r=n(5438),i=n(2913),o=n(4318),s=n(9164),a=n(4282),c=a("iterator");t.exports=function(t){if(!o(t))return i(t,c)||i(t,"@@iterator")||s[r(t)]}},2350:(t,e,n)=>{"use strict";var r=n(9944),i=n(4977),o=n(3770),s=n(3174),a=n(9874),c=TypeError;t.exports=function(t,e){var n=arguments.length<2?a(t):e;if(i(n))return o(r(n,t));throw new c(s(t)+" is not iterable")}},2913:(t,e,n)=>{"use strict";var r=n(4977),i=n(4318);t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},1113:(t,e,n)=>{"use strict";var r=n(6881),i=n(3628),o=Math.floor,s=r("".charAt),a=r("".replace),c=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,d){var h=n+t.length,p=r.length,m=l;return void 0!==f&&(f=i(f),m=u),a(d,m,(function(i,a){var u;switch(s(a,0)){case"$":return"$";case"&":return t;case"`":return c(e,0,n);case"'":return c(e,h);case"<":u=f[c(a,1,-1)];break;default:var l=+a;if(0===l)return i;if(l>p){var d=o(l/10);return 0===d?i:d<=p?void 0===r[d-1]?s(a,1):r[d-1]+s(a,1):i}u=r[l-1]}return void 0===u?"":u}))}},9117:function(t,e,n){"use strict";var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4418:(t,e,n)=>{"use strict";var r=n(6881),i=n(3628),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},7588:t=>{"use strict";t.exports={}},7458:(t,e,n)=>{"use strict";var r=n(5604);t.exports=r("document","documentElement")},9622:(t,e,n)=>{"use strict";var r=n(6893),i=n(5234),o=n(5926);t.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},6103:t=>{"use strict";var e=Array,n=Math.abs,r=Math.pow,i=Math.floor,o=Math.log,s=Math.LN2,a=function(t,a,c){var u,l,f,d=e(c),h=8*c-a-1,p=(1<<h)-1,m=p>>1,g=23===a?r(2,-24)-r(2,-77):0,v=t<0||0===t&&1/t<0?1:0,y=0;t=n(t),t!==t||t===1/0?(l=t!==t?1:0,u=p):(u=i(o(t)/s),f=r(2,-u),t*f<1&&(u--,f*=2),t+=u+m>=1?g/f:g*r(2,1-m),t*f>=2&&(u++,f/=2),u+m>=p?(l=0,u=p):u+m>=1?(l=(t*f-1)*r(2,a),u+=m):(l=t*r(2,m-1)*r(2,a),u=0));while(a>=8)d[y++]=255&l,l/=256,a-=8;u=u<<a|l,h+=a;while(h>0)d[y++]=255&u,u/=256,h-=8;return d[y-1]|=128*v,d},c=function(t,e){var n,i=t.length,o=8*i-e-1,s=(1<<o)-1,a=s>>1,c=o-7,u=i-1,l=t[u--],f=127&l;l>>=7;while(c>0)f=256*f+t[u--],c-=8;n=f&(1<<-c)-1,f>>=-c,c+=e;while(c>0)n=256*n+t[u--],c-=8;if(0===f)f=1-a;else{if(f===s)return n?NaN:l?-1/0:1/0;n+=r(2,e),f-=a}return(l?-1:1)*n*r(2,f-e)};t.exports={pack:a,unpack:c}},7568:(t,e,n)=>{"use strict";var r=n(6881),i=n(5234),o=n(8689),s=Object,a=r("".split);t.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?a(t,""):s(t)}:s},4166:(t,e,n)=>{"use strict";var r=n(4188),i=n(831),o=n(5054);t.exports=function(t,e,n){var s,a;return o&&r(s=e.constructor)&&s!==n&&i(a=s.prototype)&&a!==n.prototype&&o(t,a),t}},3029:(t,e,n)=>{"use strict";var r=n(6881),i=n(4188),o=n(2694),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},8257:(t,e,n)=>{"use strict";var r=n(831),i=n(8088);t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},3086:(t,e,n)=>{"use strict";var r,i,o,s=n(5945),a=n(9117),c=n(831),u=n(8088),l=n(4418),f=n(2694),d=n(168),h=n(7588),p="Object already initialized",m=a.TypeError,g=a.WeakMap,v=function(t){return o(t)?i(t):r(t,{})},y=function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return n}};if(s||f.state){var w=f.state||(f.state=new g);w.get=w.get,w.has=w.has,w.set=w.set,r=function(t,e){if(w.has(t))throw new m(p);return e.facade=t,w.set(t,e),e},i=function(t){return w.get(t)||{}},o=function(t){return w.has(t)}}else{var b=d("state");h[b]=!0,r=function(t,e){if(l(t,b))throw new m(p);return e.facade=t,u(t,b,e),e},i=function(t){return l(t,b)?t[b]:{}},o=function(t){return l(t,b)}}t.exports={set:r,get:i,has:o,enforce:v,getterFor:y}},8146:(t,e,n)=>{"use strict";var r=n(4282),i=n(9164),o=r("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||s[o]===t)}},6719:(t,e,n)=>{"use strict";var r=n(8689);t.exports=Array.isArray||function(t){return"Array"===r(t)}},5448:(t,e,n)=>{"use strict";var r=n(5438);t.exports=function(t){var e=r(t);return"BigInt64Array"===e||"BigUint64Array"===e}},4188:t=>{"use strict";var e="object"==typeof document&&document.all;t.exports="undefined"==typeof e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},866:(t,e,n)=>{"use strict";var r=n(6881),i=n(5234),o=n(4188),s=n(5438),a=n(5604),c=n(3029),u=function(){},l=a("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),h=!f.test(u),p=function(t){if(!o(t))return!1;try{return l(u,[],t),!0}catch(e){return!1}},m=function(t){if(!o(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!d(f,c(t))}catch(e){return!0}};m.sham=!0,t.exports=!l||i((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?m:p},8489:(t,e,n)=>{"use strict";var r=n(5234),i=n(4188),o=/#|\.prototype\./,s=function(t,e){var n=c[a(t)];return n===l||n!==u&&(i(e)?r(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},4752:(t,e,n)=>{"use strict";var r=n(831),i=Math.floor;t.exports=Number.isInteger||function(t){return!r(t)&&isFinite(t)&&i(t)===t}},4318:t=>{"use strict";t.exports=function(t){return null===t||void 0===t}},831:(t,e,n)=>{"use strict";var r=n(4188);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},6712:(t,e,n)=>{"use strict";var r=n(831);t.exports=function(t){return r(t)||null===t}},1942:t=>{"use strict";t.exports=!1},473:(t,e,n)=>{"use strict";var r=n(831),i=n(8689),o=n(4282),s=o("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[s])?!!e:"RegExp"===i(t))}},6032:(t,e,n)=>{"use strict";var r=n(5604),i=n(4188),o=n(4578),s=n(9809),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,a(t))}},9164:t=>{"use strict";t.exports={}},9389:(t,e,n)=>{"use strict";var r=n(7611);t.exports=function(t){return r(t.length)}},4530:(t,e,n)=>{"use strict";var r=n(6881),i=n(5234),o=n(4188),s=n(4418),a=n(6893),c=n(2735).CONFIGURABLE,u=n(3029),l=n(3086),f=l.enforce,d=l.get,h=String,p=Object.defineProperty,m=r("".slice),g=r("".replace),v=r([].join),y=a&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),w=String(String).split("String"),b=t.exports=function(t,e,n){"Symbol("===m(h(e),0,7)&&(e="["+g(h(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!s(t,"name")||c&&t.name!==e)&&(a?p(t,"name",{value:e,configurable:!0}):t.name=e),y&&n&&s(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var r=f(t);return s(r,"source")||(r.source=v(w,"string"==typeof e?e:"")),t};Function.prototype.toString=b((function(){return o(this)&&d(this).source||u(this)}),"toString")},2871:(t,e,n)=>{"use strict";var r=n(579),i=Math.abs,o=2220446049250313e-31,s=1/o,a=function(t){return t+s-s};t.exports=function(t,e,n,s){var c=+t,u=i(c),l=r(c);if(u<s)return l*a(u/s/e)*s*e;var f=(1+e/o)*u,d=f-(f-u);return d>n||d!==d?l*(1/0):l*d}},2420:(t,e,n)=>{"use strict";var r=n(2871),i=1.1920928955078125e-7,o=34028234663852886e22,s=11754943508222875e-54;t.exports=Math.fround||function(t){return r(t,i,o,s)}},579:t=>{"use strict";t.exports=Math.sign||function(t){var e=+t;return 0===e||e!==e?e:e<0?-1:1}},142:t=>{"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},9866:(t,e,n)=>{"use strict";var r=n(2618);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},7065:(t,e,n)=>{"use strict";var r,i=n(3770),o=n(30),s=n(1274),a=n(7588),c=n(7458),u=n(5926),l=n(168),f=">",d="<",h="prototype",p="script",m=l("IE_PROTO"),g=function(){},v=function(t){return d+p+f+t+d+"/"+p+f},y=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},w=function(){var t,e=u("iframe"),n="java"+p+":";return e.style.display="none",c.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(v("document.F=Object")),t.close(),t.F},b=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}b="undefined"!=typeof document?document.domain&&r?y(r):w():y(r);var t=s.length;while(t--)delete b[h][s[t]];return b()};a[m]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(g[h]=i(t),n=new g,g[h]=null,n[m]=t):n=b(),void 0===e?n:o.f(n,e)}},30:(t,e,n)=>{"use strict";var r=n(6893),i=n(3315),o=n(4466),s=n(3770),a=n(380),c=n(7137);e.f=r&&!i?Object.defineProperties:function(t,e){s(t);var n,r=a(e),i=c(e),u=i.length,l=0;while(u>l)o.f(t,n=i[l++],r[n]);return t}},4466:(t,e,n)=>{"use strict";var r=n(6893),i=n(9622),o=n(3315),s=n(3770),a=n(2344),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",h="writable";e.f=r?o?function(t,e,n){if(s(t),e=a(e),s(n),"function"===typeof t&&"prototype"===e&&"value"in n&&h in n&&!n[h]){var r=l(t,e);r&&r[h]&&(t[e]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:f in n?n[f]:r[f],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(s(t),e=a(e),s(n),i)try{return u(t,e,n)}catch(r){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},9304:(t,e,n)=>{"use strict";var r=n(6893),i=n(9944),o=n(4416),s=n(9123),a=n(380),c=n(2344),u=n(4418),l=n(9622),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=c(e),l)try{return f(t,e)}catch(n){}if(u(t,e))return s(!i(o.f,t,e),t[e])}},5629:(t,e,n)=>{"use strict";var r=n(1843),i=n(1274),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},156:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},1786:(t,e,n)=>{"use strict";var r=n(4418),i=n(4188),o=n(3628),s=n(168),a=n(680),c=s("IE_PROTO"),u=Object,l=u.prototype;t.exports=a?u.getPrototypeOf:function(t){var e=o(t);if(r(e,c))return e[c];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof u?l:null}},4578:(t,e,n)=>{"use strict";var r=n(6881);t.exports=r({}.isPrototypeOf)},1843:(t,e,n)=>{"use strict";var r=n(6881),i=n(4418),o=n(380),s=n(1458).indexOf,a=n(7588),c=r([].push);t.exports=function(t,e){var n,r=o(t),u=0,l=[];for(n in r)!i(a,n)&&i(r,n)&&c(l,n);while(e.length>u)i(r,n=e[u++])&&(~s(l,n)||c(l,n));return l}},7137:(t,e,n)=>{"use strict";var r=n(1843),i=n(1274);t.exports=Object.keys||function(t){return r(t,i)}},4416:(t,e)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},5054:(t,e,n)=>{"use strict";var r=n(1025),i=n(831),o=n(9509),s=n(4121);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(a){}return function(n,r){return o(n),s(r),i(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0)},2287:(t,e,n)=>{"use strict";var r=n(9944),i=n(4188),o=n(831),s=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&i(n=t.toString)&&!o(a=r(n,t)))return a;if(i(n=t.valueOf)&&!o(a=r(n,t)))return a;if("string"!==e&&i(n=t.toString)&&!o(a=r(n,t)))return a;throw new s("Can't convert object to primitive value")}},3168:(t,e,n)=>{"use strict";var r=n(5604),i=n(6881),o=n(5629),s=n(156),a=n(3770),c=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=s.f;return n?c(e,n(t)):e}},8679:(t,e,n)=>{"use strict";var r=n(4466).f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},4721:(t,e,n)=>{"use strict";var r=n(9944),i=n(3770),o=n(4188),s=n(8689),a=n(9342),c=TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var u=r(n,t,e);return null!==u&&i(u),u}if("RegExp"===s(t))return r(a,t,e);throw new c("RegExp#exec called on incompatible receiver")}},9342:(t,e,n)=>{"use strict";var r=n(9944),i=n(6881),o=n(2618),s=n(4932),a=n(5976),c=n(746),u=n(7065),l=n(3086).get,f=n(6676),d=n(4609),h=c("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,m=p,g=i("".charAt),v=i("".indexOf),y=i("".replace),w=i("".slice),b=function(){var t=/a/,e=/b*/g;return r(p,t,"a"),r(p,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),_=a.BROKEN_CARET,x=void 0!==/()??/.exec("")[1],T=b||x||_||f||d;T&&(m=function(t){var e,n,i,a,c,f,d,T=this,S=l(T),E=o(t),O=S.raw;if(O)return O.lastIndex=T.lastIndex,e=r(m,O,E),T.lastIndex=O.lastIndex,e;var A=S.groups,N=_&&T.sticky,C=r(s,T),R=T.source,D=0,I=E;if(N&&(C=y(C,"y",""),-1===v(C,"g")&&(C+="g"),I=w(E,T.lastIndex),T.lastIndex>0&&(!T.multiline||T.multiline&&"\n"!==g(E,T.lastIndex-1))&&(R="(?: "+R+")",I=" "+I,D++),n=new RegExp("^(?:"+R+")",C)),x&&(n=new RegExp("^"+R+"$(?!\\s)",C)),b&&(i=T.lastIndex),a=r(p,N?n:T,I),N?a?(a.input=w(a.input,D),a[0]=w(a[0],D),a.index=T.lastIndex,T.lastIndex+=a[0].length):T.lastIndex=0:b&&a&&(T.lastIndex=T.global?a.index+a[0].length:i),x&&a&&a.length>1&&r(h,a[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(a[c]=void 0)})),a&&A)for(a.groups=f=u(null),c=0;c<A.length;c++)d=A[c],f[d[0]]=a[d[1]];return a}),t.exports=m},4932:(t,e,n)=>{"use strict";var r=n(3770);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},3113:(t,e,n)=>{"use strict";var r=n(9944),i=n(4418),o=n(4578),s=n(4932),a=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in a||i(t,"flags")||!o(a,t)?e:r(s,t)}},5976:(t,e,n)=>{"use strict";var r=n(5234),i=n(9117),o=i.RegExp,s=r((function(){var t=o("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),a=s||r((function(){return!o("a","y").sticky})),c=s||r((function(){var t=o("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));t.exports={BROKEN_CARET:c,MISSED_STICKY:a,UNSUPPORTED_Y:s}},6676:(t,e,n)=>{"use strict";var r=n(5234),i=n(9117),o=i.RegExp;t.exports=r((function(){var t=o(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}))},4609:(t,e,n)=>{"use strict";var r=n(5234),i=n(9117),o=i.RegExp;t.exports=r((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},9509:(t,e,n)=>{"use strict";var r=n(4318),i=TypeError;t.exports=function(t){if(r(t))throw new i("Can't call method on "+t);return t}},3900:(t,e,n)=>{"use strict";var r=n(5604),i=n(997),o=n(4282),s=n(6893),a=o("species");t.exports=function(t){var e=r(t);s&&e&&!e[a]&&i(e,a,{configurable:!0,get:function(){return this}})}},3754:(t,e,n)=>{"use strict";var r=n(4466).f,i=n(4418),o=n(4282),s=o("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,s)&&r(t,s,{configurable:!0,value:e})}},168:(t,e,n)=>{"use strict";var r=n(746),i=n(6209),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},2694:(t,e,n)=>{"use strict";var r=n(1942),i=n(9117),o=n(4798),s="__core-js_shared__",a=t.exports=i[s]||o(s,{});(a.versions||(a.versions=[])).push({version:"3.38.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},746:(t,e,n)=>{"use strict";var r=n(2694);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},4212:(t,e,n)=>{"use strict";var r=n(6881),i=n(6744),o=n(2618),s=n(9509),a=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(t){return function(e,n){var r,l,f=o(s(e)),d=i(n),h=f.length;return d<0||d>=h?t?"":void 0:(r=c(f,d),r<55296||r>56319||d+1===h||(l=c(f,d+1))<56320||l>57343?t?a(f,d):r:t?u(f,d,d+2):l-56320+(r-55296<<10)+65536)}};t.exports={codeAt:l(!1),charAt:l(!0)}},9059:(t,e,n)=>{"use strict";var r=n(9117),i=n(5234),o=n(3008),s=n(1078),a=r.structuredClone;t.exports=!!a&&!i((function(){if("DENO"===s&&o>92||"NODE"===s&&o>94||"BROWSER"===s&&o>97)return!1;var t=new ArrayBuffer(8),e=a(t,{transfer:[t]});return 0!==t.byteLength||8!==e.byteLength}))},8944:(t,e,n)=>{"use strict";var r=n(3008),i=n(5234),o=n(9117),s=o.String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!s(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},675:(t,e,n)=>{"use strict";var r=n(6744),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},7429:(t,e,n)=>{"use strict";var r=n(290),i=TypeError;t.exports=function(t){var e=r(t,"number");if("number"==typeof e)throw new i("Can't convert number to bigint");return BigInt(e)}},4579:(t,e,n)=>{"use strict";var r=n(6744),i=n(7611),o=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=i(e);if(e!==n)throw new o("Wrong length or index");return n}},380:(t,e,n)=>{"use strict";var r=n(7568),i=n(9509);t.exports=function(t){return r(i(t))}},6744:(t,e,n)=>{"use strict";var r=n(142);t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},7611:(t,e,n)=>{"use strict";var r=n(6744),i=Math.min;t.exports=function(t){var e=r(t);return e>0?i(e,9007199254740991):0}},3628:(t,e,n)=>{"use strict";var r=n(9509),i=Object;t.exports=function(t){return i(r(t))}},7584:(t,e,n)=>{"use strict";var r=n(939),i=RangeError;t.exports=function(t,e){var n=r(t);if(n%e)throw new i("Wrong offset");return n}},939:(t,e,n)=>{"use strict";var r=n(6744),i=RangeError;t.exports=function(t){var e=r(t);if(e<0)throw new i("The argument can't be less than 0");return e}},290:(t,e,n)=>{"use strict";var r=n(9944),i=n(831),o=n(6032),s=n(2913),a=n(2287),c=n(4282),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,c=s(t,l);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!i(n)||o(n))return n;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},2344:(t,e,n)=>{"use strict";var r=n(290),i=n(6032);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},9345:(t,e,n)=>{"use strict";var r=n(4282),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},2618:(t,e,n)=>{"use strict";var r=n(5438),i=String;t.exports=function(t){if("Symbol"===r(t))throw new TypeError("Cannot convert a Symbol value to a string");return i(t)}},4108:t=>{"use strict";var e=Math.round;t.exports=function(t){var n=e(t);return n<0?0:n>255?255:255&n}},3174:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(n){return"Object"}}},3978:(t,e,n)=>{"use strict";var r=n(5613),i=n(9117),o=n(9944),s=n(6893),a=n(5772),c=n(7223),u=n(8633),l=n(286),f=n(9123),d=n(8088),h=n(4752),p=n(7611),m=n(4579),g=n(7584),v=n(4108),y=n(2344),w=n(4418),b=n(5438),_=n(831),x=n(6032),T=n(7065),S=n(4578),E=n(5054),O=n(5629).f,A=n(3292),N=n(4104).forEach,C=n(3900),R=n(997),D=n(4466),I=n(9304),k=n(6759),M=n(3086),P=n(4166),j=M.get,F=M.set,L=M.enforce,U=D.f,B=I.f,W=i.RangeError,H=u.ArrayBuffer,$=H.prototype,z=u.DataView,Y=c.NATIVE_ARRAY_BUFFER_VIEWS,V=c.TYPED_ARRAY_TAG,q=c.TypedArray,G=c.TypedArrayPrototype,X=c.isTypedArray,Z="BYTES_PER_ELEMENT",J="Wrong length",K=function(t,e){R(t,e,{configurable:!0,get:function(){return j(this)[e]}})},Q=function(t){var e;return S($,t)||"ArrayBuffer"===(e=b(t))||"SharedArrayBuffer"===e},tt=function(t,e){return X(t)&&!x(e)&&e in t&&h(+e)&&e>=0},et=function(t,e){return e=y(e),tt(t,e)?f(2,t[e]):B(t,e)},nt=function(t,e,n){return e=y(e),!(tt(t,e)&&_(n)&&w(n,"value"))||w(n,"get")||w(n,"set")||n.configurable||w(n,"writable")&&!n.writable||w(n,"enumerable")&&!n.enumerable?U(t,e,n):(t[e]=n.value,t)};s?(Y||(I.f=et,D.f=nt,K(G,"buffer"),K(G,"byteOffset"),K(G,"byteLength"),K(G,"length")),r({target:"Object",stat:!0,forced:!Y},{getOwnPropertyDescriptor:et,defineProperty:nt}),t.exports=function(t,e,n){var s=t.match(/\d+/)[0]/8,c=t+(n?"Clamped":"")+"Array",u="get"+t,f="set"+t,h=i[c],y=h,w=y&&y.prototype,b={},x=function(t,e){var n=j(t);return n.view[u](e*s+n.byteOffset,!0)},S=function(t,e,r){var i=j(t);i.view[f](e*s+i.byteOffset,n?v(r):r,!0)},R=function(t,e){U(t,e,{get:function(){return x(this,e)},set:function(t){return S(this,e,t)},enumerable:!0})};Y?a&&(y=e((function(t,e,n,r){return l(t,w),P(function(){return _(e)?Q(e)?void 0!==r?new h(e,g(n,s),r):void 0!==n?new h(e,g(n,s)):new h(e):X(e)?k(y,e):o(A,y,e):new h(m(e))}(),t,y)})),E&&E(y,q),N(O(h),(function(t){t in y||d(y,t,h[t])})),y.prototype=w):(y=e((function(t,e,n,r){l(t,w);var i,a,c,u=0,f=0;if(_(e)){if(!Q(e))return X(e)?k(y,e):o(A,y,e);i=e,f=g(n,s);var d=e.byteLength;if(void 0===r){if(d%s)throw new W(J);if(a=d-f,a<0)throw new W(J)}else if(a=p(r)*s,a+f>d)throw new W(J);c=a/s}else c=m(e),a=c*s,i=new H(a);F(t,{buffer:i,byteOffset:f,byteLength:a,length:c,view:new z(i)});while(u<c)R(t,u++)})),E&&E(y,q),w=y.prototype=T(G)),w.constructor!==y&&d(w,"constructor",y),L(w).TypedArrayConstructor=y,V&&d(w,V,c);var D=y!==h;b[c]=y,r({global:!0,constructor:!0,forced:D,sham:!Y},b),Z in y||d(y,Z,s),Z in w||d(w,Z,s),C(c)}):t.exports=function(){}},5772:(t,e,n)=>{"use strict";var r=n(9117),i=n(5234),o=n(7283),s=n(7223).NATIVE_ARRAY_BUFFER_VIEWS,a=r.ArrayBuffer,c=r.Int8Array;t.exports=!s||!i((function(){c(1)}))||!i((function(){new c(-1)}))||!o((function(t){new c,new c(null),new c(1.5),new c(t)}),!0)||i((function(){return 1!==new c(new a(2),1,void 0).length}))},3292:(t,e,n)=>{"use strict";var r=n(5821),i=n(9944),o=n(1361),s=n(3628),a=n(9389),c=n(2350),u=n(9874),l=n(8146),f=n(5448),d=n(7223).aTypedArrayConstructor,h=n(7429);t.exports=function(t){var e,n,p,m,g,v,y,w,b=o(this),_=s(t),x=arguments.length,T=x>1?arguments[1]:void 0,S=void 0!==T,E=u(_);if(E&&!l(E)){y=c(_,E),w=y.next,_=[];while(!(v=i(w,y)).done)_.push(v.value)}for(S&&x>2&&(T=r(T,arguments[2])),n=a(_),p=new(d(b))(n),m=f(p),e=0;n>e;e++)g=S?T(_[e],e):_[e],p[e]=m?h(g):+g;return p}},6209:(t,e,n)=>{"use strict";var r=n(6881),i=0,o=Math.random(),s=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+o,36)}},9809:(t,e,n)=>{"use strict";var r=n(8944);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3315:(t,e,n)=>{"use strict";var r=n(6893),i=n(5234);t.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5945:(t,e,n)=>{"use strict";var r=n(9117),i=n(4188),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},4282:(t,e,n)=>{"use strict";var r=n(9117),i=n(746),o=n(4418),s=n(6209),a=n(8944),c=n(9809),u=r.Symbol,l=i("wks"),f=c?u["for"]||u:u&&u.withoutSetter||s;t.exports=function(t){return o(l,t)||(l[t]=a&&o(u,t)?u[t]:f("Symbol."+t)),l[t]}},6208:(t,e,n)=>{"use strict";var r=n(5604),i=n(4418),o=n(8088),s=n(4578),a=n(5054),c=n(8657),u=n(8679),l=n(4166),f=n(9866),d=n(8257),h=n(5382),p=n(6893),m=n(1942);t.exports=function(t,e,n,g){var v="stackTraceLimit",y=g?2:1,w=t.split("."),b=w[w.length-1],_=r.apply(null,w);if(_){var x=_.prototype;if(!m&&i(x,"cause")&&delete x.cause,!n)return _;var T=r("Error"),S=e((function(t,e){var n=f(g?e:t,void 0),r=g?new _(t):new _;return void 0!==n&&o(r,"message",n),h(r,S,r.stack,2),this&&s(x,this)&&l(r,this,S),arguments.length>y&&d(r,arguments[y]),r}));if(S.prototype=x,"Error"!==b?a?a(S,T):c(S,T,{name:!0}):p&&v in _&&(u(S,_,v),u(S,_,"prepareStackTrace")),c(S,_),!m)try{x.name!==b&&o(x,"name",b),x.constructor=S}catch(E){}return S}}},2482:(t,e,n)=>{"use strict";var r=n(6893),i=n(997),o=n(6821),s=ArrayBuffer.prototype;r&&!("detached"in s)&&i(s,"detached",{configurable:!0,get:function(){return o(this)}})},4147:(t,e,n)=>{"use strict";var r=n(5613),i=n(5677);i&&r({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return i(this,arguments.length?arguments[0]:void 0,!1)}})},7067:(t,e,n)=>{"use strict";var r=n(5613),i=n(5677);i&&r({target:"ArrayBuffer",proto:!0},{transfer:function(){return i(this,arguments.length?arguments[0]:void 0,!0)}})},9375:(t,e,n)=>{"use strict";var r=n(5613),i=n(3628),o=n(9389),s=n(4224),a=n(2197),c=n(5234),u=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},f=u||!l();r({target:"Array",proto:!0,arity:1,forced:f},{push:function(t){var e=i(this),n=o(e),r=arguments.length;a(n+r);for(var c=0;c<r;c++)e[n]=arguments[c],n++;return s(e,n),n}})},7534:(t,e,n)=>{"use strict";var r=n(5613),i=n(3628),o=n(9389),s=n(4224),a=n(1305),c=n(2197),u=1!==[].unshift(0),l=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}},f=u||!l();r({target:"Array",proto:!0,arity:1,forced:f},{unshift:function(t){var e=i(this),n=o(e),r=arguments.length;if(r){c(n+r);var u=n;while(u--){var l=u+r;u in e?e[l]=e[u]:a(e,l)}for(var f=0;f<r;f++)e[f]=arguments[f]}return s(e,n+r)}})},7107:(t,e,n)=>{"use strict";var r=n(5613),i=n(9117),o=n(646),s=n(6208),a="WebAssembly",c=i[a],u=7!==new Error("e",{cause:7}).cause,l=function(t,e){var n={};n[t]=s(t,e,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},f=function(t,e){if(c&&c[t]){var n={};n[t]=s(a+"."+t,e,u),r({target:a,stat:!0,constructor:!0,arity:1,forced:u},n)}};l("Error",(function(t){return function(e){return o(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),l("URIError",(function(t){return function(e){return o(t,this,arguments)}})),f("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),f("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),f("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},8376:(t,e,n)=>{"use strict";var r=n(5613),i=n(9342);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},8715:(t,e,n)=>{"use strict";var r=n(5613),i=n(9944),o=n(6881),s=n(9509),a=n(4188),c=n(4318),u=n(473),l=n(2618),f=n(2913),d=n(3113),h=n(1113),p=n(4282),m=n(1942),g=p("replace"),v=TypeError,y=o("".indexOf),w=o("".replace),b=o("".slice),_=Math.max;r({target:"String",proto:!0},{replaceAll:function(t,e){var n,r,o,p,x,T,S,E,O,A,N=s(this),C=0,R="";if(!c(t)){if(n=u(t),n&&(r=l(s(d(t))),!~y(r,"g")))throw new v("`.replaceAll` does not allow non-global regexes");if(o=f(t,g),o)return i(o,t,N,e);if(m&&n)return w(l(N),t,e)}p=l(N),x=l(t),T=a(e),T||(e=l(e)),S=x.length,E=_(1,S),O=y(p,x);while(-1!==O)A=T?l(e(x,O,p)):h(x,p,O,[],void 0,e),R+=b(p,C,O)+A,C=O+S,O=O+E>p.length?-1:y(p,x,O+E);return C<p.length&&(R+=b(p,C)),R}})},4293:(t,e,n)=>{"use strict";var r=n(646),i=n(9944),o=n(6881),s=n(467),a=n(5234),c=n(3770),u=n(4188),l=n(4318),f=n(6744),d=n(7611),h=n(2618),p=n(9509),m=n(154),g=n(2913),v=n(1113),y=n(4721),w=n(4282),b=w("replace"),_=Math.max,x=Math.min,T=o([].concat),S=o([].push),E=o("".indexOf),O=o("".slice),A=function(t){return void 0===t?t:String(t)},N=function(){return"$0"==="a".replace(/./,"$0")}(),C=function(){return!!/./[b]&&""===/./[b]("a","$0")}(),R=!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));s("replace",(function(t,e,n){var o=C?"$":"$0";return[function(t,n){var r=p(this),o=l(t)?void 0:g(t,b);return o?i(o,t,r,n):i(e,h(r),t,n)},function(t,i){var s=c(this),a=h(t);if("string"==typeof i&&-1===E(i,o)&&-1===E(i,"$<")){var l=n(e,s,a,i);if(l.done)return l.value}var p=u(i);p||(i=h(i));var g,w=s.global;w&&(g=s.unicode,s.lastIndex=0);var b,N=[];while(1){if(b=y(s,a),null===b)break;if(S(N,b),!w)break;var C=h(b[0]);""===C&&(s.lastIndex=m(a,d(s.lastIndex),g))}for(var R="",D=0,I=0;I<N.length;I++){b=N[I];for(var k,M=h(b[0]),P=_(x(f(b.index),a.length),0),j=[],F=1;F<b.length;F++)S(j,A(b[F]));var L=b.groups;if(p){var U=T([M],j,P,a);void 0!==L&&S(U,L),k=h(r(i,void 0,U))}else k=v(M,a,P,j,L,i);P>=D&&(R+=O(a,D,P)+k,D=P+M.length)}return R+O(a,D)}]}),!R||!N||C)},785:(t,e,n)=>{"use strict";var r=n(7223),i=n(9389),o=n(6744),s=r.aTypedArray,a=r.exportTypedArrayMethod;a("at",(function(t){var e=s(this),n=i(e),r=o(t),a=r>=0?r:n+r;return a<0||a>=n?void 0:e[a]}))},8357:(t,e,n)=>{"use strict";var r=n(7223),i=n(8150),o=n(7429),s=n(5438),a=n(9944),c=n(6881),u=n(5234),l=r.aTypedArray,f=r.exportTypedArrayMethod,d=c("".slice),h=u((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t}));f("fill",(function(t){var e=arguments.length;l(this);var n="Big"===d(s(this),0,3)?o(t):+t;return a(i,this,n,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),h)},821:(t,e,n)=>{"use strict";var r=n(7223),i=n(710).findLastIndex,o=r.aTypedArray,s=r.exportTypedArrayMethod;s("findLastIndex",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},6196:(t,e,n)=>{"use strict";var r=n(7223),i=n(710).findLast,o=r.aTypedArray,s=r.exportTypedArrayMethod;s("findLast",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},6554:(t,e,n)=>{"use strict";var r=n(9117),i=n(9944),o=n(7223),s=n(9389),a=n(7584),c=n(3628),u=n(5234),l=r.RangeError,f=r.Int8Array,d=f&&f.prototype,h=d&&d.set,p=o.aTypedArray,m=o.exportTypedArrayMethod,g=!u((function(){var t=new Uint8ClampedArray(2);return i(h,t,{length:1,0:3},1),3!==t[1]})),v=g&&o.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var t=new f(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));m("set",(function(t){p(this);var e=a(arguments.length>1?arguments[1]:void 0,1),n=c(t);if(g)return i(h,this,n,e);var r=this.length,o=s(n),u=0;if(o+e>r)throw new l("Wrong length");while(u<o)this[e+u]=n[u++]}),!g||v)},8472:(t,e,n)=>{"use strict";var r=n(9117),i=n(5691),o=n(5234),s=n(4977),a=n(9295),c=n(7223),u=n(2222),l=n(4598),f=n(3008),d=n(7340),h=c.aTypedArray,p=c.exportTypedArrayMethod,m=r.Uint16Array,g=m&&i(m.prototype.sort),v=!!g&&!(o((function(){g(new m(2),null)}))&&o((function(){g(new m(2),{})}))),y=!!g&&!o((function(){if(f)return f<74;if(u)return u<67;if(l)return!0;if(d)return d<602;var t,e,n=new m(516),r=Array(516);for(t=0;t<516;t++)e=t%4,n[t]=515-t,r[t]=t-2*e+3;for(g(n,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(n[t]!==r[t])return!0})),w=function(t){return function(e,n){return void 0!==t?+t(e,n)||0:n!==n?-1:e!==e?1:0===e&&0===n?1/e>0&&1/n<0?1:-1:e>n}};p("sort",(function(t){return void 0!==t&&s(t),y?g(this,t):a(h(this),w(t))}),!y||v)},7404:(t,e,n)=>{"use strict";var r=n(1433),i=n(7223),o=i.aTypedArray,s=i.exportTypedArrayMethod,a=i.getTypedArrayConstructor;s("toReversed",(function(){return r(o(this),a(this))}))},5803:(t,e,n)=>{"use strict";var r=n(7223),i=n(6881),o=n(4977),s=n(6759),a=r.aTypedArray,c=r.getTypedArrayConstructor,u=r.exportTypedArrayMethod,l=i(r.TypedArrayPrototype.sort);u("toSorted",(function(t){void 0!==t&&o(t);var e=a(this),n=s(c(e),e);return l(n,t)}))},2682:(t,e,n)=>{"use strict";var r=n(3978);r("Uint8",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},3912:(t,e,n)=>{"use strict";var r=n(6803),i=n(7223),o=n(5448),s=n(6744),a=n(7429),c=i.aTypedArray,u=i.getTypedArrayConstructor,l=i.exportTypedArrayMethod,f=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();l("with",{with:function(t,e){var n=c(this),i=s(t),l=o(n)?a(e):+e;return r(n,u(n),i,l)}}["with"],!f)}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={id:t,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.exports}(()=>{r.n=t=>{var e=t&&t.__esModule?()=>t["default"]:()=>t;return r.d(e,{a:e}),e}})(),(()=>{r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}})(),(()=>{r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()})(),(()=>{r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e)})(),(()=>{r.r=t=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}})(),(()=>{r.p=""})();var i={};return(()=>{"use strict";r.d(i,{default:()=>es});var t={};if(r.r(t),r.d(t,{hasBrowserEnv:()=>ri,hasStandardBrowserEnv:()=>oi,hasStandardBrowserWebWorkerEnv:()=>si,navigator:()=>ii,origin:()=>ai}),"undefined"!==typeof window){var e=window.document.currentScript,n=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);n&&(r.p=n[1])}function o(){var t="/openc3/plugins/packages/openc3-cosmos-demo/src/BigWidget.vue",e="fe346723f59fab8952966a401cdebfb931b830ae",n=new Function("return this")(),r="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-demo/src/BigWidget.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1303}},4:{start:{line:1,column:216},end:{line:1,column:512}},5:{start:{line:1,column:735},end:{line:1,column:759}},6:{start:{line:1,column:859},end:{line:1,column:1050}},7:{start:{line:1,column:923},end:{line:1,column:948}},8:{start:{line:1,column:948},end:{line:1,column:989}},9:{start:{line:1,column:1251},end:{line:1,column:1270}},10:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:192},end:{line:1,column:193}},loc:{start:{line:1,column:215},end:{line:1,column:513}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:719},end:{line:1,column:720}},loc:{start:{line:1,column:734},end:{line:1,column:760}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:838},end:{line:1,column:839}},loc:{start:{line:1,column:858},end:{line:1,column:1051}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:906},end:{line:1,column:907}},loc:{start:{line:1,column:922},end:{line:1,column:990}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1235},end:{line:1,column:1236}},loc:{start:{line:1,column:1250},end:{line:1,column:1271}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"fe346723f59fab8952966a401cdebfb931b830ae"},s=n[r]||(n[r]={});s[t]&&s[t].hash===e||(s[t]=i);var a=s[t];return o=function(){return a},a}o(),o().s[0]++;var s=function(){o().f[0]++;var t=(o().s[1]++,this),e=(o().s[2]++,t._self._c);return o().s[3]++,e("div",{staticClass:"value-widget-container"},[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function({on:n,attrs:r}){return o().f[1]++,o().s[4]++,[e("v-text-field",t._g(t._b({class:t.valueClass,style:t.computedStyle,attrs:{solo:"",dense:"",readonly:"","single-line":"","hide-no-data":"","hide-details":"",value:t._value,"data-test":"value"},on:{contextmenu:t.showContextMenu}},"v-text-field",r,!1),n))]}}])},[t._v(" "),e("span",[t._v(t._s(t.fullName))])]),t._v(" "),e("v-menu",{attrs:{"position-x":t.x,"position-y":t.y,absolute:"","offset-y":""},model:{value:t.contextMenuShown,callback:function(e){o().f[2]++,o().s[5]++,t.contextMenuShown=e},expression:"contextMenuShown"}},[e("v-list",t._l(t.contextMenuOptions,(function(n,r){return o().f[3]++,o().s[6]++,e("v-list-item",{key:r,on:{click:function(t){return o().f[4]++,o().s[7]++,t.stopPropagation(),o().s[8]++,n.action.apply(null,arguments)}}},[e("v-list-item-title",[t._v(t._s(n.title))])],1)})),1)],1),t._v(" "),e("details-dialog",{attrs:{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2]},model:{value:t.viewDetails,callback:function(e){o().f[5]++,o().s[9]++,t.viewDetails=e},expression:"viewDetails"}})],1)},a=(o().s[10]++,[]);r(4293),r(8715);const c={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},u=(t,e,n)=>{let r;const i=c[t];return r="string"===typeof i?i:1===e?i.one:i.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function l(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}const f={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},d={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},h={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},p={date:l({formats:f,defaultWidth:"full"}),time:l({formats:d,defaultWidth:"full"}),dateTime:l({formats:h,defaultWidth:"full"})},m={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},g=(t,e,n,r)=>m[t];function v(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let i;if("formatting"===r&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,r=n?.width?String(n.width):e;i=t.formattingValues[r]||t.formattingValues[e]}else{const e=t.defaultWidth,r=n?.width?String(n.width):t.defaultWidth;i=t.values[r]||t.values[e]}const o=t.argumentCallback?t.argumentCallback(e):e;return i[o]}}const y={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},w={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},b={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},_={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},x={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},T={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},S=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},E={ordinalNumber:S,era:v({values:y,defaultWidth:"wide"}),quarter:v({values:w,defaultWidth:"wide",argumentCallback:t=>t-1}),month:v({values:b,defaultWidth:"wide"}),day:v({values:_,defaultWidth:"wide"}),dayPeriod:v({values:x,defaultWidth:"wide",formattingValues:T,defaultFormattingWidth:"wide"})};function O(t){return(e,n={})=>{const r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;const s=o[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(a)?N(a,(t=>t.test(s))):A(a,(t=>t.test(s)));let u;u=t.valueCallback?t.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;const l=e.slice(s.length);return{value:u,rest:l}}}function A(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function N(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function C(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const i=r[0],o=e.match(t.parsePattern);if(!o)return null;let s=t.valueCallback?t.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;const a=e.slice(i.length);return{value:s,rest:a}}}const R=/^(\d+)(th|st|nd|rd)?/i,D=/\d+/i,I={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},k={any:[/^b/i,/^(a|c)/i]},M={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},P={any:[/1/i,/2/i,/3/i,/4/i]},j={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},F={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},L={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},U={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},B={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},W={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},H={ordinalNumber:C({matchPattern:R,parsePattern:D,valueCallback:t=>parseInt(t,10)}),era:O({matchPatterns:I,defaultMatchWidth:"wide",parsePatterns:k,defaultParseWidth:"any"}),quarter:O({matchPatterns:M,defaultMatchWidth:"wide",parsePatterns:P,defaultParseWidth:"any",valueCallback:t=>t+1}),month:O({matchPatterns:j,defaultMatchWidth:"wide",parsePatterns:F,defaultParseWidth:"any"}),day:O({matchPatterns:L,defaultMatchWidth:"wide",parsePatterns:U,defaultParseWidth:"any"}),dayPeriod:O({matchPatterns:B,defaultMatchWidth:"any",parsePatterns:W,defaultParseWidth:"any"})},$={code:"en-US",formatDistance:u,formatLong:p,formatRelative:g,localize:E,match:H,options:{weekStartsOn:0,firstWeekContainsDate:1}};let z={};function Y(){return z}Math.pow(10,8);const V=6048e5,q=864e5,G=6e4,X=36e5,Z=Symbol.for("constructDateFrom");function J(t,e){return"function"===typeof t?t(e):t&&"object"===typeof t&&Z in t?t[Z](e):t instanceof Date?new t.constructor(e):new Date(e)}function K(t,e){return J(e||t,t)}function Q(t){const e=K(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function tt(t,...e){const n=J.bind(null,t||e.find((t=>"object"===typeof t)));return e.map(n)}function et(t,e){const n=K(t,e?.in);return n.setHours(0,0,0,0),n}function nt(t,e,n){const[r,i]=tt(n?.in,t,e),o=et(r),s=et(i),a=+o-Q(o),c=+s-Q(s);return Math.round((a-c)/q)}function rt(t,e){const n=K(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function it(t,e){const n=K(t,e?.in),r=nt(n,rt(n)),i=r+1;return i}function ot(t,e){const n=Y(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=K(t,e?.in),o=i.getDay(),s=(o<r?7:0)+o-r;return i.setDate(i.getDate()-s),i.setHours(0,0,0,0),i}function st(t,e){return ot(t,{...e,weekStartsOn:1})}function at(t,e){const n=K(t,e?.in),r=n.getFullYear(),i=J(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=st(i),s=J(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const a=st(s);return n.getTime()>=o.getTime()?r+1:n.getTime()>=a.getTime()?r:r-1}function ct(t,e){const n=at(t,e),r=J(e?.in||t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),st(r)}function ut(t,e){const n=K(t,e?.in),r=+st(n)-+ct(n);return Math.round(r/V)+1}function lt(t,e){const n=K(t,e?.in),r=n.getFullYear(),i=Y(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,s=J(e?.in||t,0);s.setFullYear(r+1,0,o),s.setHours(0,0,0,0);const a=ot(s,e),c=J(e?.in||t,0);c.setFullYear(r,0,o),c.setHours(0,0,0,0);const u=ot(c,e);return+n>=+a?r+1:+n>=+u?r:r-1}function ft(t,e){const n=Y(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=lt(t,e),o=J(e?.in||t,0);o.setFullYear(i,0,r),o.setHours(0,0,0,0);const s=ot(o,e);return s}function dt(t,e){const n=K(t,e?.in),r=+ot(n,e)-+ft(n,e);return Math.round(r/V)+1}function ht(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const pt={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return ht("yy"===e?r%100:r,e.length)},M(t,e){const n=t.getMonth();return"M"===e?String(n+1):ht(n+1,2)},d(t,e){return ht(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h(t,e){return ht(t.getHours()%12||12,e.length)},H(t,e){return ht(t.getHours(),e.length)},m(t,e){return ht(t.getMinutes(),e.length)},s(t,e){return ht(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return ht(i,e.length)}},mt={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},gt={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){const e=t.getFullYear(),r=e>0?e:1-e;return n.ordinalNumber(r,{unit:"year"})}return pt.y(t,e)},Y:function(t,e,n,r){const i=lt(t,r),o=i>0?i:1-i;if("YY"===e){const t=o%100;return ht(t,2)}return"Yo"===e?n.ordinalNumber(o,{unit:"year"}):ht(o,e.length)},R:function(t,e){const n=at(t);return ht(n,e.length)},u:function(t,e){const n=t.getFullYear();return ht(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return ht(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return ht(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return pt.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return ht(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const i=dt(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):ht(i,e.length)},I:function(t,e,n){const r=ut(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):ht(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getDate(),{unit:"date"}):pt.d(t,e)},D:function(t,e,n){const r=it(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):ht(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const i=t.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return ht(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const i=t.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return ht(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),i=0===r?7:r;switch(e){case"i":return String(i);case"ii":return ht(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const r=t.getHours(),i=r/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let i;switch(i=12===r?mt.noon:0===r?mt.midnight:r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let i;switch(i=r>=17?mt.evening:r>=12?mt.afternoon:r>=4?mt.morning:mt.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),n.ordinalNumber(e,{unit:"hour"})}return pt.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getHours(),{unit:"hour"}):pt.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):ht(r,e.length)},k:function(t,e,n){let r=t.getHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):ht(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):pt.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getSeconds(),{unit:"second"}):pt.s(t,e)},S:function(t,e){return pt.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return yt(r);case"XXXX":case"XX":return wt(r);case"XXXXX":case"XXX":default:return wt(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return yt(r);case"xxxx":case"xx":return wt(r);case"xxxxx":case"xxx":default:return wt(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+vt(r,":");case"OOOO":default:return"GMT"+wt(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+vt(r,":");case"zzzz":default:return"GMT"+wt(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return ht(r,e.length)},T:function(t,e,n){return ht(+t,e.length)}};function vt(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Math.trunc(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+e+ht(o,2)}function yt(t,e){if(t%60===0){const e=t>0?"-":"+";return e+ht(Math.abs(t)/60,2)}return wt(t,e)}function wt(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=ht(Math.trunc(r/60),2),o=ht(r%60,2);return n+i+e+o}const bt=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},_t=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},xt=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return bt(t,e);let o;switch(r){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;case"PPPP":default:o=e.dateTime({width:"full"});break}return o.replace("{{date}}",bt(r,e)).replace("{{time}}",_t(i,e))},Tt={p:_t,P:xt},St=/^D+$/,Et=/^Y+$/,Ot=["D","DD","YY","YYYY"];function At(t){return St.test(t)}function Nt(t){return Et.test(t)}function Ct(t,e,n){const r=Rt(t,e,n);if(console.warn(r),Ot.includes(t))throw new RangeError(r)}function Rt(t,e,n){const r="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function Dt(t){return t instanceof Date||"object"===typeof t&&"[object Date]"===Object.prototype.toString.call(t)}function It(t){return!(!Dt(t)&&"number"!==typeof t||isNaN(+K(t)))}const kt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Mt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pt=/^'([^]*?)'?$/,jt=/''/g,Ft=/[a-zA-Z]/;function Lt(t,e,n){const r=Y(),i=n?.locale??r.locale??$,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=K(t,n?.in);if(!It(a))throw new RangeError("Invalid time value");let c=e.match(Mt).map((t=>{const e=t[0];if("p"===e||"P"===e){const n=Tt[e];return n(t,i.formatLong)}return t})).join("").match(kt).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:Ut(t)};if(gt[e])return{isToken:!0,value:t};if(e.match(Ft))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));i.localize.preprocessor&&(c=i.localize.preprocessor(a,c));const u={firstWeekContainsDate:o,weekStartsOn:s,locale:i};return c.map((r=>{if(!r.isToken)return r.value;const o=r.value;(!n?.useAdditionalWeekYearTokens&&Nt(o)||!n?.useAdditionalDayOfYearTokens&&At(o))&&Ct(o,e,String(t));const s=gt[o[0]];return s(a,o,i.localize,u)})).join("")}function Ut(t){const e=t.match(Pt);return e?e[1].replace(jt,"'"):t}function Bt(t,e,n){const r=K(t,n?.in);return r.setTime(r.getTime()+e*G),r}function Wt(t,e,n){return Bt(t,-e,n)}function Ht(t,e){const n=()=>J(e?.in,NaN),r=e?.additionalDigits??2,i=qt(t);let o;if(i.date){const t=Gt(i.date,r);o=Xt(t.restDateString,t.year)}if(!o||isNaN(+o))return n();const s=+o;let a,c=0;if(i.time&&(c=Jt(i.time),isNaN(c)))return n();if(!i.timezone){const t=new Date(s+c),n=K(0,e?.in);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}return a=Qt(i.timezone),isNaN(a)?n():K(s+c+a,e?.in)}const $t={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},zt=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Yt=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Vt=/^([+-])(\d{2})(?::?(\d{2}))?$/;function qt(t){const e={},n=t.split($t.dateTimeDelimiter);let r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],$t.timeZoneDelimiter.test(e.date)&&(e.date=t.split($t.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){const t=$t.timezone.exec(r);t?(e.time=r.replace(t[1],""),e.timezone=t[1]):e.time=r}return e}function Gt(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:t.slice((r[1]||r[2]).length)}}function Xt(t,e){if(null===e)return new Date(NaN);const n=t.match(zt);if(!n)return new Date(NaN);const r=!!n[4],i=Zt(n[1]),o=Zt(n[2])-1,s=Zt(n[3]),a=Zt(n[4]),c=Zt(n[5])-1;if(r)return oe(e,a,c)?te(e,a,c):new Date(NaN);{const t=new Date(0);return re(e,o,s)&&ie(e,i)?(t.setUTCFullYear(e,o,Math.max(i,s)),t):new Date(NaN)}}function Zt(t){return t?parseInt(t):1}function Jt(t){const e=t.match(Yt);if(!e)return NaN;const n=Kt(e[1]),r=Kt(e[2]),i=Kt(e[3]);return se(n,r,i)?n*X+r*G+1e3*i:NaN}function Kt(t){return t&&parseFloat(t.replace(",","."))||0}function Qt(t){if("Z"===t)return 0;const e=t.match(Vt);if(!e)return 0;const n="+"===e[1]?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return ae(r,i)?n*(r*X+i*G):NaN}function te(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const i=r.getUTCDay()||7,o=7*(e-1)+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const ee=[31,null,31,30,31,30,31,31,30,31,30,31];function ne(t){return t%400===0||t%4===0&&t%100!==0}function re(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(ee[e]||(ne(t)?29:28))}function ie(t,e){return e>=1&&e<=(ne(t)?366:365)}function oe(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function se(t,e,n){return 24===t?0===e&&0===n:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function ae(t,e){return e>=0&&e<=59}function ce(){return Object.assign({},Y())}function ue(t,e,n){const r=ce(),i=de(t,n.timeZone,n.locale??r.locale);return"formatToParts"in i?le(i,e):fe(i,e)}function le(t,e){const n=t.formatToParts(e);for(let r=n.length-1;r>=0;--r)if("timeZoneName"===n[r].type)return n[r].value}function fe(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function de(t,e,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:e,timeZoneName:t})}function he(t,e){const n=be(e);return"formatToParts"in n?me(n,t):ge(n,t)}const pe={year:0,month:1,day:2,hour:3,minute:4,second:5};function me(t,e){try{const n=t.formatToParts(e),r=[];for(let t=0;t<n.length;t++){const e=pe[n[t].type];void 0!==e&&(r[e]=parseInt(n[t].value,10))}return r}catch(n){if(n instanceof RangeError)return[NaN];throw n}}function ge(t,e){const n=t.format(e),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const ve={},ye=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),we="06/25/2014, 00:00:00"===ye||"‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00"===ye;function be(t){return ve[t]||(ve[t]=we?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),ve[t]}function _e(t,e,n,r,i,o,s){const a=new Date(0);return a.setUTCFullYear(t,e,n),a.setUTCHours(r,i,o,s),a}const xe=36e5,Te=6e4,Se={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Ee(t,e,n){if(!t)return 0;let r,i,o=Se.timezoneZ.exec(t);if(o)return 0;if(o=Se.timezoneHH.exec(t),o)return r=parseInt(o[1],10),Ce(r)?-r*xe:NaN;if(o=Se.timezoneHHMM.exec(t),o){r=parseInt(o[2],10);const t=parseInt(o[3],10);return Ce(r,t)?(i=Math.abs(r)*xe+t*Te,"+"===o[1]?-i:i):NaN}if(De(t)){e=new Date(e||Date.now());const r=n?e:Oe(e),i=Ae(r,t),o=n?i:Ne(e,i,t);return-o}return NaN}function Oe(t){return _e(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function Ae(t,e){const n=he(t,e),r=_e(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime();let i=t.getTime();const o=i%1e3;return i-=o>=0?o:1e3+o,r-i}function Ne(t,e,n){const r=t.getTime();let i=r-e;const o=Ae(new Date(i),n);if(e===o)return e;i-=o-e;const s=Ae(new Date(i),n);return o===s?o:Math.max(o,s)}function Ce(t,e){return-23<=t&&t<=23&&(null==e||0<=e&&e<=59)}const Re={};function De(t){if(Re[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),Re[t]=!0,!0}catch(e){return!1}}const Ie=6e4,ke={X:function(t,e,n){const r=Me(n.timeZone,t);if(0===r)return"Z";switch(e){case"X":return Fe(r);case"XXXX":case"XX":return je(r);case"XXXXX":case"XXX":default:return je(r,":")}},x:function(t,e,n){const r=Me(n.timeZone,t);switch(e){case"x":return Fe(r);case"xxxx":case"xx":return je(r);case"xxxxx":case"xxx":default:return je(r,":")}},O:function(t,e,n){const r=Me(n.timeZone,t);switch(e){case"O":case"OO":case"OOO":return"GMT"+Le(r,":");case"OOOO":default:return"GMT"+je(r,":")}},z:function(t,e,n){switch(e){case"z":case"zz":case"zzz":return ue("short",t,n);case"zzzz":default:return ue("long",t,n)}}};function Me(t,e){const n=t?Ee(t,e,!0)/Ie:e?.getTimezoneOffset()??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+t);return n}function Pe(t,e){const n=t<0?"-":"";let r=Math.abs(t).toString();while(r.length<e)r="0"+r;return n+r}function je(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Pe(Math.floor(r/60),2),o=Pe(Math.floor(r%60),2);return n+i+e+o}function Fe(t,e){if(t%60===0){const e=t>0?"-":"+";return e+Pe(Math.abs(t)/60,2)}return je(t,e)}function Le(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+e+Pe(o,2)}function Ue(t){const e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),+t-+e}const Be=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,We=36e5,He=6e4,$e=2,ze={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:Be};function Ye(t,e={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===t)return new Date(NaN);const n=null==e.additionalDigits?$e:Number(e.additionalDigits);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if(t instanceof Date||"object"===typeof t&&"[object Date]"===Object.prototype.toString.call(t))return new Date(t.getTime());if("number"===typeof t||"[object Number]"===Object.prototype.toString.call(t))return new Date(t);if("[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);const r=Ve(t),{year:i,restDateString:o}=qe(r.date,n),s=Ge(o,i);if(null===s||isNaN(s.getTime()))return new Date(NaN);if(s){const t=s.getTime();let n,i=0;if(r.time&&(i=Xe(r.time),null===i||isNaN(i)))return new Date(NaN);if(r.timeZone||e.timeZone){if(n=Ee(r.timeZone||e.timeZone,new Date(t+i)),isNaN(n))return new Date(NaN)}else n=Ue(new Date(t+i)),n=Ue(new Date(t+i+n));return new Date(t+i+n)}return new Date(NaN)}function Ve(t){const e={};let n,r=ze.dateTimePattern.exec(t);if(r?(e.date=r[1],n=r[3]):(r=ze.datePattern.exec(t),r?(e.date=r[1],n=r[2]):(e.date=null,n=t)),n){const t=ze.timeZone.exec(n);t?(e.time=n.replace(t[1],""),e.timeZone=t[1].trim()):e.time=n}return e}function qe(t,e){if(t){const n=ze.YYY[e],r=ze.YYYYY[e];let i=ze.YYYY.exec(t)||r.exec(t);if(i){const e=i[1];return{year:parseInt(e,10),restDateString:t.slice(e.length)}}if(i=ze.YY.exec(t)||n.exec(t),i){const e=i[1];return{year:100*parseInt(e,10),restDateString:t.slice(e.length)}}}return{year:null}}function Ge(t,e){if(null===e)return null;let n,r,i;if(!t||!t.length)return n=new Date(0),n.setUTCFullYear(e),n;let o=ze.MM.exec(t);if(o)return n=new Date(0),r=parseInt(o[1],10)-1,tn(e,r)?(n.setUTCFullYear(e,r),n):new Date(NaN);if(o=ze.DDD.exec(t),o){n=new Date(0);const t=parseInt(o[1],10);return en(e,t)?(n.setUTCFullYear(e,0,t),n):new Date(NaN)}if(o=ze.MMDD.exec(t),o){n=new Date(0),r=parseInt(o[1],10)-1;const t=parseInt(o[2],10);return tn(e,r,t)?(n.setUTCFullYear(e,r,t),n):new Date(NaN)}if(o=ze.Www.exec(t),o)return i=parseInt(o[1],10)-1,nn(i)?Ze(e,i):new Date(NaN);if(o=ze.WwwD.exec(t),o){i=parseInt(o[1],10)-1;const t=parseInt(o[2],10)-1;return nn(i,t)?Ze(e,i,t):new Date(NaN)}return null}function Xe(t){let e,n,r=ze.HH.exec(t);if(r)return e=parseFloat(r[1].replace(",",".")),rn(e)?e%24*We:NaN;if(r=ze.HHMM.exec(t),r)return e=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),rn(e,n)?e%24*We+n*He:NaN;if(r=ze.HHMMSS.exec(t),r){e=parseInt(r[1],10),n=parseInt(r[2],10);const t=parseFloat(r[3].replace(",","."));return rn(e,n,t)?e%24*We+n*He+1e3*t:NaN}return null}function Ze(t,e,n){e=e||0,n=n||0;const r=new Date(0);r.setUTCFullYear(t,0,4);const i=r.getUTCDay()||7,o=7*e+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const Je=[31,28,31,30,31,30,31,31,30,31,30,31],Ke=[31,29,31,30,31,30,31,31,30,31,30,31];function Qe(t){return t%400===0||t%4===0&&t%100!==0}function tn(t,e,n){if(e<0||e>11)return!1;if(null!=n){if(n<1)return!1;const r=Qe(t);if(r&&n>Ke[e])return!1;if(!r&&n>Je[e])return!1}return!0}function en(t,e){if(e<1)return!1;const n=Qe(t);return!(n&&e>366)&&!(!n&&e>365)}function nn(t,e){return!(t<0||t>52)&&(null==e||!(e<0||e>6))}function rn(t,e,n){return!(t<0||t>=25)&&((null==e||!(e<0||e>=60))&&(null==n||!(n<0||n>=60)))}const on=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function sn(t,e,n={}){e=String(e);const r=e.match(on);if(r){const i=Ye(n.originalDate||t,n);e=r.reduce((function(t,e){if("'"===e[0])return t;const r=t.indexOf(e),o="'"===t[r-1],s=t.replace(e,"'"+ke[e[0]](i,e,n)+"'");return o?s.substring(0,r-1)+s.substring(r+1):s}),e)}return Lt(t,e,n)}function an(t,e,n){t=Ye(t,n);const r=Ee(e,t,!0),i=new Date(t.getTime()-r),o=new Date(0);return o.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),o.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),o}function cn(t,e,n,r){return r={...r,timeZone:e,originalDate:t},sn(an(t,e,{timeZone:r.timeZone}),n,r)}const un="yyyy-MM-dd",ln="HH:mm:ss.SSS",fn="HH:mm:ss",dn=`${un} ${ln}`,hn={methods:{parseDateTime(t,e){return t.includes(" ")&&(t=t.replace(" ","T")),e&&"UTC"===e&&(t+="Z"),Date.parse(t)},formatUtcToLocal(t,e){return Lt(e&&"local"!==e?t:Wt(t,t.getTimezoneOffset()),dn)},formatDateTime(t,e){return e&&"local"!==e?cn(t,e,dn):Lt(t,dn)},formatDate:function(t,e){return e&&"local"!==e?cn(t,this.timeZone,un):Lt(t,un)},formatTime:function(t,e,n=ln){return e&&"local"!==e?cn(t,this.timeZone,n):Lt(t,n)},formatTimeHMS:function(t,e){return this.formatTime(t,e,fn)},formatTimestamp(t,e){return this.formatDateTime(Ht(t),e)},formatSeconds(t,e){return this.formatDateTime(new Date(1e3*t),e)},formatNanoseconds(t,e){return this.formatDateTime(new Date(parseInt(t)/1e6),e)}}};r(9375),r(7534);function pn(t){return pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn(t)}r(7107);function mn(t,e){if("object"!=pn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=pn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function gn(t){var e=mn(t,"string");return"symbol"==pn(e)?e:e+""}function vn(t,e,n){return(e=gn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class yn{constructor(t,e,n="",r=""){this.keyword=t.keyword,this.parameters=t.parameters,this.filename=t.filename,this.line=t.line,this.lineNumber=t.lineNumber,this.message=e,this.usage=n,this.url=r}}const wn={props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{screen:null,style:{}}},computed:{computedStyle(){return this.settings.forEach((t=>{const e=parseInt(t[0]);if(null!==this.widgetIndex){if(this.widgetIndex!==e)return;t=t.slice(1)}this.applySetting(this.style,t)})),void 0===this.style["width"]&&(this.style["flex"]="0 10 100%"),this.style}},created(){this.settings.forEach((t=>{"__SCREEN__"===t[0]&&(this.screen=t[1])})),this.settings=this.settings.map((t=>{const e=parseInt(t[0]);return isNaN(e)||null===this.widgetIndex?t:this.widgetIndex===e?t.slice(1):void 0})).filter((t=>void 0!==t))},methods:{applySetting(t,e){switch(e[0]){case"TEXTALIGN":t["text-align"]=e[1].toLowerCase()+" !important",t["--text-align"]=e[1].toLowerCase();break;case"PADDING":isNaN(Number(e[1]))||(e[1]+="px"),t["padding"]=e[1]+" !important";break;case"MARGIN":isNaN(Number(e[1]))||(e[1]+="px"),t["margin"]=e[1]+" !important";break;case"BACKCOLOR":t["background-color"]=this.getColor(e.slice(1))+" !important";break;case"TEXTCOLOR":t["color"]=this.getColor(e.slice(1))+" !important";break;case"BORDERCOLOR":t["border-width"]="1px!important",t["border-style"]="solid!important",t["border-color"]=this.getColor(e.slice(1))+" !important";break;case"WIDTH":isNaN(Number(e[1]))||(e[1]+="px"),t["width"]=e[1]+" !important";break;case"HEIGHT":isNaN(Number(e[1]))||(e[1]+="px"),t["height"]=e[1]+" !important";break;case"RAW":t[e[1].toLowerCase()]=e[2]+" !important";break}},verifyNumParams(t,e,n,r=""){let i={line:this.line,lineNumber:this.lineNumber,keyword:t,parameters:this.parameters};for(let o=1;o<=e;o++)if(void 0===this.parameters[o-1])throw new yn(i,`Not enough parameters for ${t}.`,r,"https://docs.openc3.com/docs/configuration");if(null!==n&&this.parameters.length>n)throw new yn(i,`Too many parameters for ${t}.`,r,"https://docs.openc3.com/docs/configuration")},setWidth(t,e="px",n="120"){let r=null;if(r=null!==this.widgetIndex?this.settings.find((t=>parseInt(t[0])===this.widgetIndex&&"WIDTH"===t[1])):this.settings.find((t=>"WIDTH"===t[0])),r)return r["WIDTH"];if(t){let n=["WIDTH",`${t}${e}`];return null!==this.widgetIndex&&n.unshift(this.widgetIndex),this.settings.push(n),parseInt(t)}{let t=["WIDTH",`${n}${e}`];return null!==this.widgetIndex&&t.unshift(this.widgetIndex),this.settings.push(t),parseInt(n)}},setHeight(t,e="px",n="20"){let r=null;if(r=null!==this.widgetIndex?this.settings.find((t=>parseInt(t[0])===this.widgetIndex&&"HEIGHT"===t[1])):this.settings.find((t=>"HEIGHT"===t[0])),r)return r["HEIGHT"];if(t){let n=["HEIGHT",`${t}${e}`];return null!==this.widgetIndex&&n.unshift(this.widgetIndex),this.settings.push(n),parseInt(t)}{let t=["HEIGHT",`${n}${e}`];return null!==this.widgetIndex&&t.unshift(this.widgetIndex),this.settings.push(t),parseInt(n)}},getColor(t){switch(t.length){case 1:return t[0].toLowerCase();case 3:return`rgb(${t[0]},${t[1]},${t[2]})`}}}};r(9471);const bn={mixins:[wn,hn],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},data(){return{curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+this.parameters[0]+"/"+this.parameters[1]+"/"+this.parameters[2],"_blank")}}]}},watch:{_counter:function(t,e){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,null===this.curValue&&(this.screen?this.screen.screenValues[this.valueId]&&(null!==this.arrayIndex&&this.screen.screenValues[this.valueId][0]?this.curValue=this.screen.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screen.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let t=this.limitsState;return null===t&&(this.screen?this.screen.screenValues[this.valueId]&&(t=this.screen.screenValues[this.valueId][1]):t=null),t},_counter:function(){let t=this.counter;return null===t&&(this.screen?this.screen.screenValues[this.valueId]&&(t=this.screen.screenValues[this.valueId][2]):t=null),t},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroIcon(){switch(this.limitsColor){case"green":return"$vuetify.icons.astro-status-normal";case"yellow":return"$vuetify.icons.astro-status-caution";case"red":return"$vuetify.icons.astro-status-critical";case"blue":return"$vuetify.icons.astro-status-standby";default:return null}},limitsColor(){let t=this._limitsState;if(null!=t)switch(t){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let t=this._limitsState;if(null!=t){let e=t.charAt(0);return t.endsWith("_LOW")&&(e=e.toLowerCase()),e}return""}},created(){if(null===this.value||null===this.limitsState){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let t=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(t[1]),this.parameters[2]=this.parameters[2].replace(t[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.screen&&(this.screen.addItem(this.valueId),this.timeZone=this.screen.timeZone)}},destroyed(){null!==this.value&&null!==this.limitsState||this.screen&&this.screen.deleteItem(this.valueId)},methods:{getType(){let t="WITH_UNITS";return this.parameters[3]&&(t=this.parameters[3]),t},formatValue(t){if(t&&this.valueId&&(this.valueId.includes("PACKET_TIMEFORMATTED")||this.valueId.includes("RECEIVED_TIMEFORMATTED")))return t=t.replaceAll("/","-"),this.formatUtcToLocal(new Date(t),this.timeZone);if(t&&"String"===t["json_class"]&&void 0!==t["raw"]){let e=Array.from(t["raw"].slice(0,32),(function(t){return("0"+(255&t).toString(16)).slice(-2)})).join(" ").toUpperCase();return t["raw"].length>32&&(e+="..."),e}if("Array"===Object.prototype.toString.call(t).slice(8,-1)){let e="[";for(let n=0;n<t.length;n++)"String"===Object.prototype.toString.call(t[n]).slice(8,-1)?e+='"'+t[n]+'"':e+=t[n],n!=t.length-1&&(e+=", ");return e+="]",e}return"Object"===Object.prototype.toString.call(t).slice(8,-1)?"":this.formatString&&t?sprintf(this.formatString,t):""+t},showContextMenu(t){t.preventDefault(),this.contextMenuShown=!1,this.x=t.clientX,this.y=t.clientY,this.$nextTick((()=>{this.contextMenuShown=!0}))}}};var _n=function(){var t=this,e=t._self._c;return e("v-dialog",{attrs:{width:"600"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),t._v(" "),e("span",[t._v(" Details ")]),t._v(" "),e("v-spacer")],1),t._v(" "),e("v-card-title",[t._v("\n "+t._s(t.targetName)+" "+t._s(t.packetName)+" "+t._s(t.itemName)+"\n ")]),t._v(" "),e("v-card-subtitle",[t._v(t._s(t.details.description))]),t._v(" "),e("v-card-text",[e("v-container",{attrs:{fluid:""}},["tlm"===t.type?e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"3"}},[t._v("Item Values")]),t._v(" "),e("v-col"),t._v(" "),e("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},[e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"4"}},[t._v("Raw Value")]),t._v(" "),e("v-col",[t._v(t._s(t.rawValue))])],1),t._v(" "),e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"4"}},[t._v("Converted Value")]),t._v(" "),e("v-col",[t._v(t._s(t.convertedValue))])],1),t._v(" "),e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"4"}},[t._v("Formatted Value")]),t._v(" "),e("v-col",[t._v(t._s(t.formattedValue))])],1),t._v(" "),e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"4"}},[t._v("With Units Value")]),t._v(" "),e("v-col",[t._v(t._s(t.unitsValue))])],1)],1)],1):t._e(),t._v(" "),e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"3"}},[t._v("Bit Offset")]),t._v(" "),e("v-col",[t._v(t._s(t.details.bit_offset))])],1),t._v(" "),e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"3"}},[t._v("Bit Size")]),t._v(" "),e("v-col",[t._v(t._s(t.details.bit_size))])],1),t._v(" "),t.details.array_size?e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"3"}},[t._v("Array Size")]),t._v(" "),e("v-col",[t._v(t._s(t.details.array_size))])],1):t._e(),t._v(" "),e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"3"}},[t._v("Data Type")]),t._v(" "),e("v-col",[t._v(t._s(t.details.data_type))])],1),t._v(" "),"cmd"===t.type?e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"3"}},[t._v("Minimum")]),t._v(" "),e("v-col",[t._v(t._s(t.details.minimum))])],1):t._e(),t._v(" "),"cmd"===t.type?e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"3"}},[t._v("Maximum")]),t._v(" "),e("v-col",[t._v(t._s(t.details.maximum))])],1):t._e(),t._v(" "),"cmd"===t.type?e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"3"}},[t._v("Default")]),t._v(" "),e("v-col",[t._v(t._s(t.details.default))])],1):t._e(),t._v(" "),e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"3"}},[t._v("Format String")]),t._v(" "),e("v-col",[t._v(t._s(t.details.format_string))])],1),t._v(" "),e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"3"}},[t._v("Read Conversion")]),t._v(" "),t.details.read_conversion?e("v-col",[t._v("\n Class: "+t._s(t.details.read_conversion.class)+"\n "),e("br"),t._v("\n Params:\n "+t._s(t.details.read_conversion.params)+"\n ")]):e("v-col")],1),t._v(" "),e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"3"}},[t._v("Write Conversion")]),t._v(" "),t.details.write_conversion?e("v-col",[t._v("\n Class: "+t._s(t.details.write_conversion.class)+"\n "),e("br"),t._v("\n Params:\n "+t._s(t.details.write_conversion.params)+"\n ")]):e("v-col")],1),t._v(" "),e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"3"}},[t._v("Id Value")]),t._v(" "),e("v-col",[t._v(t._s(t.details.id_value))])],1),t._v(" "),e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"3"}},[t._v("Units Full")]),t._v(" "),e("v-col",[t._v(t._s(t.details.units_full))])],1),t._v(" "),e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"3"}},[t._v("Units Abbr")]),t._v(" "),e("v-col",[t._v(t._s(t.details.units))])],1),t._v(" "),e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"3"}},[t._v("Endianness")]),t._v(" "),e("v-col",[t._v(t._s(t.details.endianness))])],1),t._v(" "),t.details.states?e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"3"}},[t._v("States")]),t._v(" "),e("v-col"),t._v(" "),e("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},t._l(t.details.states,(function(n,r){return e("v-row",{key:r,attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"4"}},[t._v(t._s(r))]),t._v(" "),e("v-col",[t._v(t._s(n.value))])],1)})),1)],1):e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"3"}},[t._v("States")]),t._v(" "),e("v-col",[t._v("None")])],1),t._v(" "),t.details.limits?e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"3"}},[t._v("Limits")]),t._v(" "),e("v-col"),t._v(" "),e("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},t._l(t.details.limits,(function(n,r){return e("v-row",{key:r,attrs:{"no-gutters":""}},["enabled"===r?e("v-col",{staticClass:"label",attrs:{cols:"4"}},[t._v("Enabled")]):t._e(),t._v(" "),"enabled"===r?e("v-switch",{attrs:{dense:"","hide-details":""},on:{change:t.changeLimitsEnabled},model:{value:t.details.limits.enabled,callback:function(e){t.$set(t.details.limits,"enabled",e)},expression:"details.limits.enabled"}}):t._e(),t._v(" "),"enabled"!==r?e("v-col",{staticClass:"label",attrs:{cols:"4"}},[t._v(t._s(r))]):t._e(),t._v(" "),"enabled"!==r?e("div",[t._v(t._s(t.formatLimit(n)))]):t._e(),t._v(" "),e("v-col")],1)})),1)],1):e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"3"}},[t._v("Limits")]),t._v(" "),e("v-col",[t._v("None")])],1),t._v(" "),t.details.meta?e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"3"}},[t._v("Meta")]),t._v(" "),e("v-col"),t._v(" "),e("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},t._l(t.details.meta,(function(n,r){return e("v-row",{key:r,attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"4"}},[t._v(t._s(r))]),t._v(" "),e("v-col",[t._v(t._s(n))])],1)})),1)],1):e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{staticClass:"label",attrs:{cols:"3"}},[t._v("Meta")]),t._v(" "),e("v-col",[t._v("None")])],1)],1)],1)],1)],1)},xn=[];r(2482),r(7067),r(4147),r(2682),r(785),r(8357),r(6196),r(821),r(6554),r(8472),r(7404),r(5803),r(3912);function Tn(t,e){return function(){return t.apply(e,arguments)}}const{toString:Sn}=Object.prototype,{getPrototypeOf:En}=Object,On=(t=>e=>{const n=Sn.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),An=t=>(t=t.toLowerCase(),e=>On(e)===t),Nn=t=>e=>typeof e===t,{isArray:Cn}=Array,Rn=Nn("undefined");function Dn(t){return null!==t&&!Rn(t)&&null!==t.constructor&&!Rn(t.constructor)&&Pn(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const In=An("ArrayBuffer");function kn(t){let e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&In(t.buffer),e}const Mn=Nn("string"),Pn=Nn("function"),jn=Nn("number"),Fn=t=>null!==t&&"object"===typeof t,Ln=t=>!0===t||!1===t,Un=t=>{if("object"!==On(t))return!1;const e=En(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Bn=An("Date"),Wn=An("File"),Hn=An("Blob"),$n=An("FileList"),zn=t=>Fn(t)&&Pn(t.pipe),Yn=t=>{let e;return t&&("function"===typeof FormData&&t instanceof FormData||Pn(t.append)&&("formdata"===(e=On(t))||"object"===e&&Pn(t.toString)&&"[object FormData]"===t.toString()))},Vn=An("URLSearchParams"),[qn,Gn,Xn,Zn]=["ReadableStream","Request","Response","Headers"].map(An),Jn=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kn(t,e,{allOwnKeys:n=!1}={}){if(null===t||"undefined"===typeof t)return;let r,i;if("object"!==typeof t&&(t=[t]),Cn(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let s;for(r=0;r<o;r++)s=i[r],e.call(null,t[s],s,t)}}function Qn(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,i=n.length;while(i-- >0)if(r=n[i],e===r.toLowerCase())return r;return null}const tr=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),er=t=>!Rn(t)&&t!==tr;function nr(){const{caseless:t}=er(this)&&this||{},e={},n=(n,r)=>{const i=t&&Qn(e,r)||r;Un(e[i])&&Un(n)?e[i]=nr(e[i],n):Un(n)?e[i]=nr({},n):Cn(n)?e[i]=n.slice():e[i]=n};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Kn(arguments[r],n);return e}const rr=(t,e,n,{allOwnKeys:r}={})=>(Kn(e,((e,r)=>{n&&Pn(e)?t[r]=Tn(e,n):t[r]=e}),{allOwnKeys:r}),t),ir=t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),or=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},sr=(t,e,n,r)=>{let i,o,s;const a={};if(e=e||{},null==t)return e;do{i=Object.getOwnPropertyNames(t),o=i.length;while(o-- >0)s=i[o],r&&!r(s,t,e)||a[s]||(e[s]=t[s],a[s]=!0);t=!1!==n&&En(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},ar=(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},cr=t=>{if(!t)return null;if(Cn(t))return t;let e=t.length;if(!jn(e))return null;const n=new Array(e);while(e-- >0)n[e]=t[e];return n},ur=(t=>e=>t&&e instanceof t)("undefined"!==typeof Uint8Array&&En(Uint8Array)),lr=(t,e)=>{const n=t&&t[Symbol.iterator],r=n.call(t);let i;while((i=r.next())&&!i.done){const n=i.value;e.call(t,n[0],n[1])}},fr=(t,e)=>{let n;const r=[];while(null!==(n=t.exec(e)))r.push(n);return r},dr=An("HTMLFormElement"),hr=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),pr=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),mr=An("RegExp"),gr=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Kn(n,((n,i)=>{let o;!1!==(o=e(n,i,t))&&(r[i]=o||n)})),Object.defineProperties(t,r)},vr=t=>{gr(t,((e,n)=>{if(Pn(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];Pn(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},yr=(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return Cn(t)?r(t):r(String(t).split(e)),n},wr=()=>{},br=(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,_r="abcdefghijklmnopqrstuvwxyz",xr="0123456789",Tr={DIGIT:xr,ALPHA:_r,ALPHA_DIGIT:_r+_r.toUpperCase()+xr},Sr=(t=16,e=Tr.ALPHA_DIGIT)=>{let n="";const{length:r}=e;while(t--)n+=e[Math.random()*r|0];return n};function Er(t){return!!(t&&Pn(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])}const Or=t=>{const e=new Array(10),n=(t,r)=>{if(Fn(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const i=Cn(t)?[]:{};return Kn(t,((t,e)=>{const o=n(t,r+1);!Rn(o)&&(i[e]=o)})),e[r]=void 0,i}}return t};return n(t,0)},Ar=An("AsyncFunction"),Nr=t=>t&&(Fn(t)||Pn(t))&&Pn(t.then)&&Pn(t.catch),Cr=((t,e)=>t?setImmediate:e?((t,e)=>(tr.addEventListener("message",(({source:n,data:r})=>{n===tr&&r===t&&e.length&&e.shift()()}),!1),n=>{e.push(n),tr.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))("function"===typeof setImmediate,Pn(tr.postMessage)),Rr="undefined"!==typeof queueMicrotask?queueMicrotask.bind(tr):"undefined"!==typeof process&&process.nextTick||Cr,Dr={isArray:Cn,isArrayBuffer:In,isBuffer:Dn,isFormData:Yn,isArrayBufferView:kn,isString:Mn,isNumber:jn,isBoolean:Ln,isObject:Fn,isPlainObject:Un,isReadableStream:qn,isRequest:Gn,isResponse:Xn,isHeaders:Zn,isUndefined:Rn,isDate:Bn,isFile:Wn,isBlob:Hn,isRegExp:mr,isFunction:Pn,isStream:zn,isURLSearchParams:Vn,isTypedArray:ur,isFileList:$n,forEach:Kn,merge:nr,extend:rr,trim:Jn,stripBOM:ir,inherits:or,toFlatObject:sr,kindOf:On,kindOfTest:An,endsWith:ar,toArray:cr,forEachEntry:lr,matchAll:fr,isHTMLForm:dr,hasOwnProperty:pr,hasOwnProp:pr,reduceDescriptors:gr,freezeMethods:vr,toObjectSet:yr,toCamelCase:hr,noop:wr,toFiniteNumber:br,findKey:Qn,global:tr,isContextDefined:er,ALPHABET:Tr,generateString:Sr,isSpecCompliantForm:Er,toJSONObject:Or,isAsyncFn:Ar,isThenable:Nr,setImmediate:Cr,asap:Rr};function Ir(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Dr.inherits(Ir,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Dr.toJSONObject(this.config),code:this.code,status:this.status}}});const kr=Ir.prototype,Mr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{Mr[t]={value:t}})),Object.defineProperties(Ir,Mr),Object.defineProperty(kr,"isAxiosError",{value:!0}),Ir.from=(t,e,n,r,i,o)=>{const s=Object.create(kr);return Dr.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),Ir.call(s,t.message,e,n,r,i),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};const Pr=Ir,jr=null;function Fr(t){return Dr.isPlainObject(t)||Dr.isArray(t)}function Lr(t){return Dr.endsWith(t,"[]")?t.slice(0,-2):t}function Ur(t,e,n){return t?t.concat(e).map((function(t,e){return t=Lr(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}function Br(t){return Dr.isArray(t)&&!t.some(Fr)}const Wr=Dr.toFlatObject(Dr,{},null,(function(t){return/^is[A-Z]/.test(t)}));function Hr(t,e,n){if(!Dr.isObject(t))throw new TypeError("target must be an object");e=e||new(jr||FormData),n=Dr.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!Dr.isUndefined(e[t])}));const r=n.metaTokens,i=n.visitor||l,o=n.dots,s=n.indexes,a=n.Blob||"undefined"!==typeof Blob&&Blob,c=a&&Dr.isSpecCompliantForm(e);if(!Dr.isFunction(i))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(Dr.isDate(t))return t.toISOString();if(!c&&Dr.isBlob(t))throw new Pr("Blob is not supported. Use a Buffer instead.");return Dr.isArrayBuffer(t)||Dr.isTypedArray(t)?c&&"function"===typeof Blob?new Blob([t]):Buffer.from(t):t}function l(t,n,i){let a=t;if(t&&!i&&"object"===typeof t)if(Dr.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(Dr.isArray(t)&&Br(t)||(Dr.isFileList(t)||Dr.endsWith(n,"[]"))&&(a=Dr.toArray(t)))return n=Lr(n),a.forEach((function(t,r){!Dr.isUndefined(t)&&null!==t&&e.append(!0===s?Ur([n],r,o):null===s?n:n+"[]",u(t))})),!1;return!!Fr(t)||(e.append(Ur(i,n,o),u(t)),!1)}const f=[],d=Object.assign(Wr,{defaultVisitor:l,convertValue:u,isVisitable:Fr});function h(t,n){if(!Dr.isUndefined(t)){if(-1!==f.indexOf(t))throw Error("Circular reference detected in "+n.join("."));f.push(t),Dr.forEach(t,(function(t,r){const o=!(Dr.isUndefined(t)||null===t)&&i.call(e,t,Dr.isString(r)?r.trim():r,n,d);!0===o&&h(t,n?n.concat(r):[r])})),f.pop()}}if(!Dr.isObject(t))throw new TypeError("data must be an object");return h(t),e}const $r=Hr;function zr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function Yr(t,e){this._pairs=[],t&&$r(t,this,e)}const Vr=Yr.prototype;Vr.append=function(t,e){this._pairs.push([t,e])},Vr.toString=function(t){const e=t?function(e){return t.call(this,e,zr)}:zr;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const qr=Yr;function Gr(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Xr(t,e,n){if(!e)return t;const r=n&&n.encode||Gr,i=n&&n.serialize;let o;if(o=i?i(e,n):Dr.isURLSearchParams(e)?e.toString():new qr(e,n).toString(r),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}class Zr{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Dr.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}const Jr=Zr,Kr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qr="undefined"!==typeof URLSearchParams?URLSearchParams:qr,ti="undefined"!==typeof FormData?FormData:null,ei="undefined"!==typeof Blob?Blob:null,ni={isBrowser:!0,classes:{URLSearchParams:Qr,FormData:ti,Blob:ei},protocols:["http","https","file","blob","url","data"]},ri="undefined"!==typeof window&&"undefined"!==typeof document,ii="object"===typeof navigator&&navigator||void 0,oi=ri&&(!ii||["ReactNative","NativeScript","NS"].indexOf(ii.product)<0),si=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),ai=ri&&window.location.href||"http://localhost",ci={...t,...ni};function ui(t,e){return $r(t,new ci.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return ci.isNode&&Dr.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}function li(t){return Dr.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}function fi(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}function di(t){function e(t,n,r,i){let o=t[i++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=i>=t.length;if(o=!o&&Dr.isArray(r)?r.length:o,a)return Dr.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!s;r[o]&&Dr.isObject(r[o])||(r[o]=[]);const c=e(t,n,r[o],i);return c&&Dr.isArray(r[o])&&(r[o]=fi(r[o])),!s}if(Dr.isFormData(t)&&Dr.isFunction(t.entries)){const n={};return Dr.forEachEntry(t,((t,r)=>{e(li(t),r,n,0)})),n}return null}const hi=di;function pi(t,e,n){if(Dr.isString(t))try{return(e||JSON.parse)(t),Dr.trim(t)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(t)}const mi={transitional:Kr,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,i=Dr.isObject(t);i&&Dr.isHTMLForm(t)&&(t=new FormData(t));const o=Dr.isFormData(t);if(o)return r?JSON.stringify(hi(t)):t;if(Dr.isArrayBuffer(t)||Dr.isBuffer(t)||Dr.isStream(t)||Dr.isFile(t)||Dr.isBlob(t)||Dr.isReadableStream(t))return t;if(Dr.isArrayBufferView(t))return t.buffer;if(Dr.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return ui(t,this.formSerializer).toString();if((s=Dr.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return $r(s?{"files[]":t}:t,e&&new e,this.formSerializer)}}return i||r?(e.setContentType("application/json",!1),pi(t)):t}],transformResponse:[function(t){const e=this.transitional||mi.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(Dr.isResponse(t)||Dr.isReadableStream(t))return t;if(t&&Dr.isString(t)&&(n&&!this.responseType||r)){const n=e&&e.silentJSONParsing,o=!n&&r;try{return JSON.parse(t)}catch(i){if(o){if("SyntaxError"===i.name)throw Pr.from(i,Pr.ERR_BAD_RESPONSE,this,null,this.response);throw i}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ci.classes.FormData,Blob:ci.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Dr.forEach(["delete","get","head","post","put","patch"],(t=>{mi.headers[t]={}}));const gi=mi,vi=Dr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),yi=t=>{const e={};let n,r,i;return t&&t.split("\n").forEach((function(t){i=t.indexOf(":"),n=t.substring(0,i).trim().toLowerCase(),r=t.substring(i+1).trim(),!n||e[n]&&vi[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e},wi=Symbol("internals");function bi(t){return t&&String(t).trim().toLowerCase()}function _i(t){return!1===t||null==t?t:Dr.isArray(t)?t.map(_i):String(t)}function xi(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;while(r=n.exec(t))e[r[1]]=r[2];return e}const Ti=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Si(t,e,n,r,i){return Dr.isFunction(r)?r.call(this,e,n):(i&&(e=n),Dr.isString(e)?Dr.isString(r)?-1!==e.indexOf(r):Dr.isRegExp(r)?r.test(e):void 0:void 0)}function Ei(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}function Oi(t,e){const n=Dr.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,i){return this[r].call(this,e,t,n,i)},configurable:!0})}))}class Ai{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function i(t,e,n){const i=bi(e);if(!i)throw new Error("header name must be a non-empty string");const o=Dr.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||e]=_i(t))}const o=(t,e)=>Dr.forEach(t,((t,n)=>i(t,n,e)));if(Dr.isPlainObject(t)||t instanceof this.constructor)o(t,e);else if(Dr.isString(t)&&(t=t.trim())&&!Ti(t))o(yi(t),e);else if(Dr.isHeaders(t))for(const[s,a]of t.entries())i(a,s,n);else null!=t&&i(e,t,n);return this}get(t,e){if(t=bi(t),t){const n=Dr.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return xi(t);if(Dr.isFunction(e))return e.call(this,t,n);if(Dr.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=bi(t),t){const n=Dr.findKey(this,t);return!(!n||void 0===this[n]||e&&!Si(this,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function i(t){if(t=bi(t),t){const i=Dr.findKey(n,t);!i||e&&!Si(n,n[i],i,e)||(delete n[i],r=!0)}}return Dr.isArray(t)?t.forEach(i):i(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;while(n--){const i=e[n];t&&!Si(this,this[i],i,t,!0)||(delete this[i],r=!0)}return r}normalize(t){const e=this,n={};return Dr.forEach(this,((r,i)=>{const o=Dr.findKey(n,i);if(o)return e[o]=_i(r),void delete e[i];const s=t?Ei(i):String(i).trim();s!==i&&delete e[i],e[s]=_i(r),n[s]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return Dr.forEach(this,((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&Dr.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=this[wi]=this[wi]={accessors:{}},n=e.accessors,r=this.prototype;function i(t){const e=bi(t);n[e]||(Oi(r,t),n[e]=!0)}return Dr.isArray(t)?t.forEach(i):i(t),this}}Ai.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Dr.reduceDescriptors(Ai.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),Dr.freezeMethods(Ai);const Ni=Ai;function Ci(t,e){const n=this||gi,r=e||n,i=Ni.from(r.headers);let o=r.data;return Dr.forEach(t,(function(t){o=t.call(n,o,i.normalize(),e?e.status:void 0)})),i.normalize(),o}function Ri(t){return!(!t||!t.__CANCEL__)}function Di(t,e,n){Pr.call(this,null==t?"canceled":t,Pr.ERR_CANCELED,e,n),this.name="CanceledError"}Dr.inherits(Di,Pr,{__CANCEL__:!0});const Ii=Di;function ki(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new Pr("Request failed with status code "+n.status,[Pr.ERR_BAD_REQUEST,Pr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}function Mi(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Pi(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i,o=0,s=0;return e=void 0!==e?e:1e3,function(a){const c=Date.now(),u=r[s];i||(i=c),n[o]=a,r[o]=c;let l=s,f=0;while(l!==o)f+=n[l++],l%=t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),c-i<e)return;const d=u&&c-u;return d?Math.round(1e3*f/d):void 0}}const ji=Pi;function Fi(t,e){let n,r,i=0,o=1e3/e;const s=(e,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),t.apply(null,e)},a=(...t)=>{const e=Date.now(),a=e-i;a>=o?s(t,e):(n=t,r||(r=setTimeout((()=>{r=null,s(n)}),o-a)))},c=()=>n&&s(n);return[a,c]}const Li=Fi,Ui=(t,e,n=3)=>{let r=0;const i=ji(50,250);return Li((n=>{const o=n.loaded,s=n.lengthComputable?n.total:void 0,a=o-r,c=i(a),u=o<=s;r=o;const l={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&u?(s-o)/c:void 0,event:n,lengthComputable:null!=s,[e?"download":"upload"]:!0};t(l)}),n)},Bi=(t,e)=>{const n=null!=t;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Wi=t=>(...e)=>Dr.asap((()=>t(...e))),Hi=ci.hasStandardBrowserEnv?function(){const t=ci.navigator&&/(msie|trident)/i.test(ci.navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=Dr.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return function(){return!0}}(),$i=ci.hasStandardBrowserEnv?{write(t,e,n,r,i,o){const s=[t+"="+encodeURIComponent(e)];Dr.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Dr.isString(r)&&s.push("path="+r),Dr.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zi(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Yi(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Vi(t,e){return t&&!zi(e)?Yi(t,e):e}const qi=t=>t instanceof Ni?{...t}:t;function Gi(t,e){e=e||{};const n={};function r(t,e,n){return Dr.isPlainObject(t)&&Dr.isPlainObject(e)?Dr.merge.call({caseless:n},t,e):Dr.isPlainObject(e)?Dr.merge({},e):Dr.isArray(e)?e.slice():e}function i(t,e,n){return Dr.isUndefined(e)?Dr.isUndefined(t)?void 0:r(void 0,t,n):r(t,e,n)}function o(t,e){if(!Dr.isUndefined(e))return r(void 0,e)}function s(t,e){return Dr.isUndefined(e)?Dr.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function a(n,i,o){return o in e?r(n,i):o in t?r(void 0,n):void 0}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(t,e)=>i(qi(t),qi(e),!0)};return Dr.forEach(Object.keys(Object.assign({},t,e)),(function(r){const o=c[r]||i,s=o(t[r],e[r],r);Dr.isUndefined(s)&&o!==a||(n[r]=s)})),n}const Xi=t=>{const e=Gi({},t);let n,{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:c}=e;if(e.headers=a=Ni.from(a),e.url=Xr(Vi(e.baseURL,e.url),t.params,t.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Dr.isFormData(r))if(ci.hasStandardBrowserEnv||ci.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[t,...e]=n?n.split(";").map((t=>t.trim())).filter(Boolean):[];a.setContentType([t||"multipart/form-data",...e].join("; "))}if(ci.hasStandardBrowserEnv&&(i&&Dr.isFunction(i)&&(i=i(e)),i||!1!==i&&Hi(e.url))){const t=o&&s&&$i.read(s);t&&a.set(o,t)}return e},Zi="undefined"!==typeof XMLHttpRequest,Ji=Zi&&function(t){return new Promise((function(e,n){const r=Xi(t);let i=r.data;const o=Ni.from(r.headers).normalize();let s,a,c,u,l,{responseType:f,onUploadProgress:d,onDownloadProgress:h}=r;function p(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Ni.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),i=f&&"text"!==f&&"json"!==f?m.response:m.responseText,o={data:i,status:m.status,statusText:m.statusText,headers:r,config:t,request:m};ki((function(t){e(t),p()}),(function(t){n(t),p()}),o),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new Pr("Request aborted",Pr.ECONNABORTED,t,m)),m=null)},m.onerror=function(){n(new Pr("Network Error",Pr.ERR_NETWORK,t,m)),m=null},m.ontimeout=function(){let e=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||Kr;r.timeoutErrorMessage&&(e=r.timeoutErrorMessage),n(new Pr(e,i.clarifyTimeoutError?Pr.ETIMEDOUT:Pr.ECONNABORTED,t,m)),m=null},void 0===i&&o.setContentType(null),"setRequestHeader"in m&&Dr.forEach(o.toJSON(),(function(t,e){m.setRequestHeader(e,t)})),Dr.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),f&&"json"!==f&&(m.responseType=r.responseType),h&&([c,l]=Ui(h,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,u]=Ui(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(s=e=>{m&&(n(!e||e.type?new Ii(null,t,m):e),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const v=Mi(r.url);v&&-1===ci.protocols.indexOf(v)?n(new Pr("Unsupported protocol "+v+":",Pr.ERR_BAD_REQUEST,t)):m.send(i||null)}))},Ki=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let n,r=new AbortController;const i=function(t){if(!n){n=!0,s();const e=t instanceof Error?t:this.reason;r.abort(e instanceof Pr?e:new Ii(e instanceof Error?e.message:e))}};let o=e&&setTimeout((()=>{o=null,i(new Pr(`timeout ${e} of ms exceeded`,Pr.ETIMEDOUT))}),e);const s=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(i):t.removeEventListener("abort",i)})),t=null)};t.forEach((t=>t.addEventListener("abort",i)));const{signal:a}=r;return a.unsubscribe=()=>Dr.asap(s),a}},Qi=Ki,to=function*(t,e){let n=t.byteLength;if(!e||n<e)return void(yield t);let r,i=0;while(i<n)r=i+e,yield t.slice(i,r),i=r},eo=async function*(t,e){for await(const n of no(t))yield*to(n,e)},no=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},ro=(t,e,n,r)=>{const i=eo(t,e);let o,s=0,a=t=>{o||(o=!0,r&&r(t))};return new ReadableStream({async pull(t){try{const{done:e,value:r}=await i.next();if(e)return a(),void t.close();let o=r.byteLength;if(n){let t=s+=o;n(t)}t.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel(t){return a(t),i.return()}},{highWaterMark:2})},io="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,oo=io&&"function"===typeof ReadableStream,so=io&&("function"===typeof TextEncoder?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ao=(t,...e)=>{try{return!!t(...e)}catch(n){return!1}},co=oo&&ao((()=>{let t=!1;const e=new Request(ci.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})),uo=65536,lo=oo&&ao((()=>Dr.isReadableStream(new Response("").body))),fo={stream:lo&&(t=>t.body)};io&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!fo[e]&&(fo[e]=Dr.isFunction(t[e])?t=>t[e]():(t,n)=>{throw new Pr(`Response type '${e}' is not supported`,Pr.ERR_NOT_SUPPORT,n)})}))})(new Response);const ho=async t=>{if(null==t)return 0;if(Dr.isBlob(t))return t.size;if(Dr.isSpecCompliantForm(t)){const e=new Request(ci.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return Dr.isArrayBufferView(t)||Dr.isArrayBuffer(t)?t.byteLength:(Dr.isURLSearchParams(t)&&(t+=""),Dr.isString(t)?(await so(t)).byteLength:void 0)},po=async(t,e)=>{const n=Dr.toFiniteNumber(t.getContentLength());return null==n?ho(e):n},mo=io&&(async t=>{let{url:e,method:n,data:r,signal:i,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:d}=Xi(t);u=u?(u+"").toLowerCase():"text";let h,p=Qi([i,o&&o.toAbortSignal()],s);const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(c&&co&&"get"!==n&&"head"!==n&&0!==(g=await po(l,r))){let t,n=new Request(e,{method:"POST",body:r,duplex:"half"});if(Dr.isFormData(r)&&(t=n.headers.get("content-type"))&&l.setContentType(t),n.body){const[t,e]=Bi(g,Ui(Wi(c)));r=ro(n.body,uo,t,e)}}Dr.isString(f)||(f=f?"include":"omit");const i="credentials"in Request.prototype;h=new Request(e,{...d,signal:p,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:i?f:void 0});let o=await fetch(h);const s=lo&&("stream"===u||"response"===u);if(lo&&(a||s&&m)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=o[e]}));const e=Dr.toFiniteNumber(o.headers.get("content-length")),[n,r]=a&&Bi(e,Ui(Wi(a),!0))||[];o=new Response(ro(o.body,uo,n,(()=>{r&&r(),m&&m()})),t)}u=u||"text";let v=await fo[Dr.findKey(fo,u)||"text"](o,t);return!s&&m&&m(),await new Promise(((e,n)=>{ki(e,n,{data:v,headers:Ni.from(o.headers),status:o.status,statusText:o.statusText,config:t,request:h})}))}catch(v){if(m&&m(),v&&"TypeError"===v.name&&/fetch/i.test(v.message))throw Object.assign(new Pr("Network Error",Pr.ERR_NETWORK,t,h),{cause:v.cause||v});throw Pr.from(v,v&&v.code,t,h)}}),go={http:jr,xhr:Ji,fetch:mo};Dr.forEach(go,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(n){}Object.defineProperty(t,"adapterName",{value:e})}}));const vo=t=>`- ${t}`,yo=t=>Dr.isFunction(t)||null===t||!1===t,wo={getAdapter:t=>{t=Dr.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let o=0;o<e;o++){let e;if(n=t[o],r=n,!yo(n)&&(r=go[(e=String(n)).toLowerCase()],void 0===r))throw new Pr(`Unknown adapter '${e}'`);if(r)break;i[e||"#"+o]=r}if(!r){const t=Object.entries(i).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let n=e?t.length>1?"since :\n"+t.map(vo).join("\n"):" "+vo(t[0]):"as no adapter specified";throw new Pr("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r},adapters:go};function bo(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ii(null,t)}function _o(t){bo(t),t.headers=Ni.from(t.headers),t.data=Ci.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);const e=wo.getAdapter(t.adapter||gi.adapter);return e(t).then((function(e){return bo(t),e.data=Ci.call(t,t.transformResponse,e),e.headers=Ni.from(e.headers),e}),(function(e){return Ri(e)||(bo(t),e&&e.response&&(e.response.data=Ci.call(t,t.transformResponse,e.response),e.response.headers=Ni.from(e.response.headers))),Promise.reject(e)}))}const xo="1.7.7",To={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{To[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const So={};function Eo(t,e,n){if("object"!==typeof t)throw new Pr("options must be an object",Pr.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;while(i-- >0){const o=r[i],s=e[o];if(s){const e=t[o],n=void 0===e||s(e,o,t);if(!0!==n)throw new Pr("option "+o+" must be "+n,Pr.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Pr("Unknown option "+o,Pr.ERR_BAD_OPTION)}}To.transitional=function(t,e,n){function r(t,e){return"[Axios v"+xo+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,i,o)=>{if(!1===t)throw new Pr(r(i," has been removed"+(e?" in "+e:"")),Pr.ERR_DEPRECATED);return e&&!So[i]&&(So[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,i,o)}};const Oo={assertOptions:Eo,validators:To},Ao=Oo.validators;class No{constructor(t){this.defaults=t,this.interceptors={request:new Jr,response:new Jr}}async request(t,e){try{return await this._request(t,e)}catch(n){if(n instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const e=t.stack?t.stack.replace(/^.+\n/,""):"";try{n.stack?e&&!String(n.stack).endsWith(e.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+e):n.stack=e}catch(r){}}throw n}}_request(t,e){"string"===typeof t?(e=e||{},e.url=t):e=t||{},e=Gi(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:i}=e;void 0!==n&&Oo.assertOptions(n,{silentJSONParsing:Ao.transitional(Ao.boolean),forcedJSONParsing:Ao.transitional(Ao.boolean),clarifyTimeoutError:Ao.transitional(Ao.boolean)},!1),null!=r&&(Dr.isFunction(r)?e.paramsSerializer={serialize:r}:Oo.assertOptions(r,{encode:Ao.function,serialize:Ao.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=i&&Dr.merge(i.common,i[e.method]);i&&Dr.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete i[t]})),e.headers=Ni.concat(o,i);const s=[];let a=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let l,f=0;if(!a){const t=[_o.bind(this),void 0];t.unshift.apply(t,s),t.push.apply(t,c),l=t.length,u=Promise.resolve(e);while(f<l)u=u.then(t[f++],t[f++]);return u}l=s.length;let d=e;f=0;while(f<l){const t=s[f++],e=s[f++];try{d=t(d)}catch(h){e.call(this,h);break}}try{u=_o.call(this,d)}catch(h){return Promise.reject(h)}f=0,l=c.length;while(f<l)u=u.then(c[f++],c[f++]);return u}getUri(t){t=Gi(this.defaults,t);const e=Vi(t.baseURL,t.url);return Xr(e,t.params,t.paramsSerializer)}}Dr.forEach(["delete","get","head","options"],(function(t){No.prototype[t]=function(e,n){return this.request(Gi(n||{},{method:t,url:e,data:(n||{}).data}))}})),Dr.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,i){return this.request(Gi(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}No.prototype[t]=e(),No.prototype[t+"Form"]=e(!0)}));const Co=No;class Ro{constructor(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;while(e-- >0)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,i){n.reason||(n.reason=new Ii(t,r,i),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;const e=new Ro((function(e){t=e}));return{token:e,cancel:t}}}const Do=Ro;function Io(t){return function(e){return t.apply(null,e)}}function ko(t){return Dr.isObject(t)&&!0===t.isAxiosError}const Mo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Mo).forEach((([t,e])=>{Mo[e]=t}));const Po=Mo;function jo(t){const e=new Co(t),n=Tn(Co.prototype.request,e);return Dr.extend(n,Co.prototype,e,{allOwnKeys:!0}),Dr.extend(n,e,null,{allOwnKeys:!0}),n.create=function(e){return jo(Gi(t,e))},n}const Fo=jo(gi);Fo.Axios=Co,Fo.CanceledError=Ii,Fo.CancelToken=Do,Fo.isCancel=Ri,Fo.VERSION=xo,Fo.toFormData=$r,Fo.AxiosError=Pr,Fo.Cancel=Fo.CanceledError,Fo.all=function(t){return Promise.all(t)},Fo.spread=Io,Fo.isAxiosError=ko,Fo.mergeConfig=Gi,Fo.AxiosHeaders=Ni,Fo.formToJSON=t=>hi(Dr.isHTMLForm(t)?new FormData(t):t),Fo.getAdapter=wo.getAdapter,Fo.HttpStatusCode=Po,Fo.default=Fo;const Lo=Fo;var Uo=r(2380),Bo=r.n(Uo);const Wo=new(Bo()),Ho=Lo.create({baseURL:location.origin,timeout:6e4,params:{}});Ho.interceptors.response.use((t=>t),(t=>{if(t.response){if(401===t.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(t){t&&OpenC3Auth.setTokens()})),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let e=`HTTP ${t.response.status} - `;throw t.response?.statusText&&(e+=`${t.response.statusText} `),t.response?.config?.data&&(e+=`${t.response.config.data} `),t.response?.data?.message?e+=`${t.response.data.message}`:t.response?.data?.exception?e+=`${t.response.data.exception}`:t.response?.data?.error?.message?(t.response.data.error.class&&(e+=`${t.response.data.error.class} `),e+=`${t.response.data.error.message}`):e+=`${t.response?.data}`,Wo.$notify&&Wo.$notify.serious({title:"Network error",body:e}),t}throw t}));const $o=Ho;class zo{constructor(){vn(this,"id",1)}async exec(t,e,n={},r={},i=6e4){try{let t=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);t&&OpenC3Auth.setTokens()}catch(o){OpenC3Auth.login()}this.id=this.id+1;try{n["scope"]=window.openc3Scope,r["manual"]=!0;const o=await $o.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:e,id:this.id,keyword_params:n},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...r},timeout:i});return o.data.result}catch(o){let t=new Error;throw o.response?(t.name=o.response.data.error.data.class,t.message=o.response.data.error.data.message,t.object=o.response.data.error):o.request?(t.name="Request error",t.message="Request error, no response received"):t.name="Unknown error",t}}decode_openc3_type(t){if(null!==t&&"object"===typeof t&&"Float"==t.json_class&&t.raw){if("NaN"==t.raw)return NaN;if("Infinity"==t.raw)return 1/0;if("-Infinity"==t.raw)return-1/0}return null}encode_openc3_type(t){return Number.isNaN(t)?{json_class:"Float",raw:"NaN"}:t==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:t==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then((t=>{t&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then((()=>{delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(t){return this.exec("set_offline_access",[t])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(t,e){return this.exec("map_target_to_interface",[t,e])}connect_interface(t,...e){return e.length>0?this.exec("connect_interface",[t,...e]):this.exec("connect_interface",[t])}disconnect_interface(t){return this.exec("disconnect_interface",[t])}interface_cmd(t,e,...n){return this.exec("interface_cmd",[t,e,...n])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(t){return this.exec("connect_router",[t])}disconnect_router(t){return this.exec("disconnect_router",[t])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_all_target_info(){return this.exec("get_all_target_info",[])}get_tlm_cnts(t){return this.exec("get_tlm_cnts",[t])}get_item(t,e,n){return this.exec("get_item",[t,e,n])}get_param(t,e,n){return this.exec("get_param",[t,e,n])}get_parameter(t,e,n){return this.exec("get_parameter",[t,e,n])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(t){return this.exec("set_limits_set",[t])}get_target(t){return this.exec("get_target",[t])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_list",[])}get_tlm(t,e){return this.exec("get_tlm",[t,e])}get_telemetry(t,e){return this.exec("get_telemetry",[t,e])}get_all_tlm(t){return this.exec("get_all_tlm",[t])}get_all_telemetry(t){return this.exec("get_all_telemetry",[t])}get_all_tlm_names(t,e=!1){return this.exec("get_all_tlm_names",[t],{hidden:e})}get_all_telemetry_names(t){return this.exec("get_all_telemetry_names",[t])}async get_tlm_packet(t,e,n,r=30){const i=await this.exec("get_tlm_packet",[t,e],{type:n,stale_time:r});if(null!=i){let t=i.length,e=null;for(let n=0;n<t;n++)e=this.decode_openc3_type(i[n][1]),null!==e&&(i[n][1]=e)}return i}get_packet_derived_items(t,e){return this.exec("get_packet_derived_items",[t,e])}get_tlm_buffer(t,e){return this.exec("get_tlm_buffer",[t,e])}async get_tlm_values(t,e=30,n=null){let r={stale_time:e};null!==n&&(r["cache_timeout"]=n);const i=await this.exec("get_tlm_values",[t],r,{},1e4);let o=i[0].length,s=null;for(let a=0;a<o;a++)s=this.decode_openc3_type(i[0][a]),null!==s&&(i[0][a]=s);return i}get_limits(t,e,n){return this.exec("get_limits",[t,e,n])}async tlm(t,e,n,r="CONVERTED"){let i=null;if(void 0===e)i=await this.exec("tlm",[t]);else if(void 0===n){if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(e)){let t=new Error;throw t.name="TypeError",t.message=`Invalid data type ${e}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,t}i=await this.exec("tlm",[t],{type:e})}else i=await this.exec("tlm",[t,e,n],{type:r});let o=this.decode_openc3_type(i);return null!==o&&(i=o),i}async inject_tlm(t,e,n=null,r="CONVERTED"){data=await this.exec("inject_tlm",[t,e,n],{type:r})}set_tlm(t,e,n,r){return this.exec("set_tlm",[t,e,n],{type:r})}override_tlm(t,e,n,r){return this.exec("override_tlm",[t,e,n],{type:r})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(t,e,n,r){return this.exec("normalize_tlm",[t,e,n],{type:r})}get_all_cmds(t){return this.exec("get_all_cmds",[t])}get_all_commands(t){return this.exec("get_all_commands",[t])}get_all_cmd_names(t,e=!1){return this.exec("get_all_cmd_names",[t],{hidden:e})}get_all_command_names(t){return this.exec("get_all_command_names",[t])}get_cmd(t,e){return this.exec("get_cmd",[t,e])}get_command(t,e){return this.exec("get_command",[t,e])}get_cmd_cnts(t){return this.exec("get_cmd_cnts",[t])}get_cmd_value(t,e,n,r="CONVERTED"){return this.exec("get_cmd_value",[t,e,n,r])}get_cmd_buffer(t,e){return this.exec("get_cmd_buffer",[t,e])}_cmd(t,e,n,r,i){let o=null;for(let s in r)Object.prototype.hasOwnProperty.call(r,s)&&(o=this.encode_openc3_type(r[s]),null!==o&&(r[s]=o));return this.exec(t,[e,n,r],{},i)}get_cmd_hazardous(t,e,n,r={}){return void 0===e?this.exec("get_cmd_hazardous",t,{},r):this._cmd("get_cmd_hazardous",t,e,n,r)}cmd(t,e,n,r={}){return void 0===e?this.exec("cmd",t,{},r):this._cmd("cmd",t,e,n,r)}cmd_no_range_check(t,e,n,r={}){return void 0===e?this.exec("cmd_no_range_check",t,{},r):this._cmd("cmd_no_range_check",t,e,n,r)}cmd_raw(t,e,n,r={}){return void 0===e?this.exec("cmd_raw",t,{},r):this._cmd("cmd_raw",t,e,n,r)}cmd_raw_no_range_check(t,e,n,r={}){return void 0===e?this.exec("cmd_raw_no_range_check",t,{},r):this._cmd("cmd_raw_no_range_check",t,e,n,r)}cmd_no_hazardous_check(t,e,n,r={}){return void 0===e?this.exec("cmd_no_hazardous_check",t,{},r):this._cmd("cmd_no_hazardous_check",t,e,n,r)}cmd_no_checks(t,e,n,r={}){return void 0===e?this.exec("cmd_no_checks",t,{},r):this._cmd("cmd_no_checks",t,e,n,r)}cmd_raw_no_hazardous_check(t,e,n,r={}){return void 0===e?this.exec("cmd_raw_no_hazardous_check",t,{},r):this._cmd("cmd_raw_no_hazardous_check",t,e,n,r)}cmd_raw_no_checks(t,e,n,r={}){return void 0===e?this.exec("cmd_raw_no_checks",t,{},r):this._cmd("cmd_raw_no_checks",t,e,n,r)}build_cmd(t,e,n){return void 0===e?this.exec("build_cmd",t):this._cmd("build_cmd",t,e,n)}build_command(t,e,n){return void 0===e?this.exec("build_command",t):this._cmd("build_command",t,e,n)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(t,e){return this.exec("send_raw",[t,e])}list_configs(t){return this.exec("list_configs",[t])}load_config(t,e){return this.exec("load_config",[t,e])}save_config(t,e,n){return this.exec("save_config",[t,e,n])}delete_config(t,e){return this.exec("delete_config",[t,e])}enable_limits(t,e,n){return this.exec("enable_limits",[t,e,n])}disable_limits(t,e,n){return this.exec("disable_limits",[t,e,n])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(t){return this.exec("get_overall_limits_state",[t])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(t){return this.exec("get_setting",[t])}get_settings(t){return this.exec("get_settings",t)}set_setting(t,e){return this.exec("set_setting",[t,e])}save_setting(t,e){return this.exec("save_setting",[t,e])}get_metrics(){return this.exec("get_metrics",[])}async hashString(t){if(window.isSecureContext){const e=(new TextEncoder).encode(t),n=await crypto.subtle.digest("SHA-256",e),r=new Uint8Array(n);return Array.from(r).map((t=>t.toString(16).padStart(2,"0"))).join("")}}}const Yo={props:{type:{default:"tlm",validator:function(t){return-1!==["cmd","tlm"].indexOf(t)}},targetName:String,packetName:String,itemName:String,value:Boolean},data(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get(){return this.value},set(t){this.$emit("input",t)}}},created(){this.api=new zo},beforeDestroy(){clearInterval(this.updater),this.updater=null},watch:{value:function(t,e){t?(this.requestDetails(),"tlm"===this.type&&(this.updater=setInterval((()=>{this.api.get_tlm_values([`${this.targetName}__${this.packetName}__${this.itemName}__RAW`,`${this.targetName}__${this.packetName}__${this.itemName}__CONVERTED`,`${this.targetName}__${this.packetName}__${this.itemName}__FORMATTED`,`${this.targetName}__${this.packetName}__${this.itemName}__WITH_UNITS`]).then((t=>{for(var e=0;e<t.length;e++){let n=null;if("String"===t[e][0]["json_class"]&&void 0!==t[e][0]["raw"]?n=t[e][0]["raw"]:"BLOCK"===this.details.data_type&&(n=t[e][0]),null!==n){n=n.slice(0,parseInt(this.details.bit_size)/8);let r=!1;n.length>64&&(r=!0),t[e][0]=Array.from(n.slice(0,64),(function(t){return" "===t?"20":("0"+(255&t).toString(16)).slice(-2)})).join(" ").toUpperCase(),r&&(t[e][0]+="...")}}this.details.data_type.includes("INT")&&!this.details.array_size?this.rawValue=`${t[0][0]} (0x${t[0][0].toString(16).toUpperCase()})`:this.rawValue=t[0][0],this.convertedValue=t[1][0],this.formattedValue=t[2][0],this.unitsValue=t[3][0]}))}),1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{async requestDetails(){"tlm"===this.type?await this.api.get_item(this.targetName,this.packetName,this.itemName).then((t=>{if(this.details=t,0===Object.keys(t.limits).length)this.details.limits=null;else{let e=!1;t.limits.enabled&&(e=!0,delete t.limits.enabled),this.details.limits={enabled:e,...t.limits}}})):await this.api.get_parameter(this.targetName,this.packetName,this.itemName).then((t=>{this.details=t}))},async changeLimitsEnabled(){this.details.limits.enabled?await this.api.enable_limits(this.targetName,this.packetName,this.itemName):await this.api.disable_limits(this.targetName,this.packetName,this.itemName)},formatLimit(t){return t.hasOwnProperty("green_low")?"RL/"+t.red_low+" YL/"+t.yellow_low+" YH/"+t.yellow_high+" RH/"+t.red_high+" GL/"+t.green_low+" GH/"+t.green_high:t.hasOwnProperty("red_low")?"RL/"+t.red_low+" YL/"+t.yellow_low+" YH/"+t.yellow_high+" RH/"+t.red_high:t}}},Vo=Yo;r(4849);function qo(t,e,n,r,i,o,s,a){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=c):i&&(c=a?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:u}}var Go=qo(Vo,_n,xn,!1,null,"18fc7350",null);const Xo=Go.exports;function Zo(){var t="/openc3/plugins/packages/openc3-cosmos-demo/src/BigWidget.vue",e="b971378cb29a5561a1b5fd06fc30592c9a17c40c",n=new Function("return this")(),r="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-demo/src/BigWidget.vue",statementMap:{0:{start:{line:12,column:6},end:{line:14,column:7}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:11,column:4},end:{line:11,column:5}},loc:{start:{line:11,column:15},end:{line:15,column:5}},line:11}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,sources:["BigWidget.vue"],names:[],mappings:";AAwEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"BigWidget.vue",sourceRoot:"src",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2024, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div class="value-widget-container">\n <v-tooltip bottom>\n <template v-slot:activator="{ on, attrs }">\n <v-text-field\n solo\n dense\n readonly\n single-line\n hide-no-data\n hide-details\n :value="_value"\n :class="valueClass"\n :style="computedStyle"\n data-test="value"\n @contextmenu="showContextMenu"\n v-bind="attrs"\n v-on="on"\n />\n </template>\n <span>{{ fullName }}</span>\n </v-tooltip>\n <v-menu\n v-model="contextMenuShown"\n :position-x="x"\n :position-y="y"\n absolute\n offset-y\n >\n <v-list>\n <v-list-item\n v-for="(item, index) in contextMenuOptions"\n :key="index"\n @click.stop="item.action"\n >\n <v-list-item-title>{{ item.title }}</v-list-item-title>\n </v-list-item>\n </v-list>\n </v-menu>\n\n <details-dialog\n :target-name="parameters[0]"\n :packet-name="parameters[1]"\n :item-name="parameters[2]"\n v-model="viewDetails"\n />\n </div>\n</template>\n\n<script>\nimport VWidget from \'@openc3/tool-common/src/components/widgets/VWidget\'\nimport DetailsDialog from \'@openc3/tool-common/src/components/DetailsDialog\'\n\nexport default {\n components: {\n DetailsDialog,\n },\n mixins: [VWidget],\n computed: {\n fullName() {\n return (\n this.parameters[0] + \' \' + this.parameters[1] + \' \' + this.parameters[2]\n )\n },\n },\n}\n<\/script>\n\n<style lang="scss" scoped>\n.value-widget-container {\n min-height: 100px;\n}\n.value :deep(div) {\n min-height: 88px !important;\n display: flex !important;\n align-items: center !important;\n}\n.value-widget-container :deep(input) {\n max-height: none !important;\n line-height: 70px !important;\n font-size: 60px !important;\n}\n// TODO: These openc3 styles are also defined in assets/stylesheets/layout/_overrides.scss\n// Can they somehow be reused here? We need to force the style down into the input\n.openc3-green :deep(input) {\n color: rgb(0, 200, 0);\n}\n.openc3-yellow :deep(input) {\n color: rgb(255, 220, 0);\n}\n.openc3-red :deep(input) {\n color: rgb(255, 45, 45);\n}\n.openc3-blue :deep(input) {\n color: rgb(0, 153, 255);\n}\n.openc3-purple :deep(input) {\n color: rgb(200, 0, 200);\n}\n.openc3-black :deep(input) {\n color: black;\n}\n.openc3-white :deep(input) {\n color: white;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b971378cb29a5561a1b5fd06fc30592c9a17c40c"},o=n[r]||(n[r]={});o[t]&&o[t].hash===e||(o[t]=i);var s=o[t];return Zo=function(){return s},s}Zo();const Jo={components:{DetailsDialog:Xo},mixins:[bn],computed:{fullName(){return Zo().f[0]++,Zo().s[0]++,this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]}}},Ko=Jo;r(8746);var Qo=qo(Ko,s,a,!1,null,"2426130b",null);const ts=Qo.exports,es=ts})(),i=i["default"],i})()));
2
- //# sourceMappingURL=BigWidget.umd.min.js.map
1
+ (function(){ try {var elementStyle = document.createElement('style'); elementStyle.appendChild(document.createTextNode(".value-widget-container[data-v-6cb32412]{min-height:100px}.value[data-v-6cb32412] div{min-height:88px!important;display:flex!important;align-items:center!important}.value-widget-container[data-v-6cb32412] input{max-height:none!important;line-height:70px!important;font-size:60px!important}.value-widget-container[data-v-6cb32412] .v-field__loader{display:none!important}.openc3-green[data-v-6cb32412] input{color:#00c800}.openc3-yellow[data-v-6cb32412] input{color:#ffdc00}.openc3-red[data-v-6cb32412] input{color:#ff2d2d}.openc3-blue[data-v-6cb32412] input{color:#09f}.openc3-purple[data-v-6cb32412] input{color:#c800c8}.openc3-black[data-v-6cb32412] input{color:#000}.openc3-white[data-v-6cb32412] input{color:#fff}")); document.head.appendChild(elementStyle);} catch(e) {console.error('vite-plugin-css-injected-by-js', e);} })();(function(e,vn){typeof exports=="object"&&typeof module<"u"?module.exports=vn(require("vue")):typeof define=="function"&&define.amd?define(["vue"],vn):(e=typeof globalThis<"u"?globalThis:e||self,e.BigWidget=vn(e.vue))})(this,function(vue){"use strict";const s$2=(e,vn)=>{const _n=e.__vccOpts||e;for(const[kn,qn]of vn)_n[kn]=qn;return _n},$e$3=6e4,ze$3=36e5,Ue$3=1e3,q$3=Symbol.for("constructDateFrom");function y$b(e,vn){return typeof e=="function"?e(vn):e&&typeof e=="object"&&q$3 in e?e[q$3](vn):e instanceof Date?new e.constructor(vn):new Date(vn)}function l$3(e,vn){return y$b(vn||e,e)}let B$7={};function v$a(){return B$7}function x$3(e,vn){var _n,kn,qn,Hn;const Kn=v$a(),Qn=(vn==null?void 0:vn.weekStartsOn)??((kn=(_n=vn==null?void 0:vn.locale)==null?void 0:_n.options)==null?void 0:kn.weekStartsOn)??Kn.weekStartsOn??((Hn=(qn=Kn.locale)==null?void 0:qn.options)==null?void 0:Hn.weekStartsOn)??0,zn=l$3(e,vn==null?void 0:vn.in),Wn=zn.getDay(),Nn=(Wn<Qn?7:0)+Wn-Qn;return zn.setDate(zn.getDate()-Nn),zn.setHours(0,0,0,0),zn}function D$3(e,vn){return x$3(e,{...vn,weekStartsOn:1})}function j$3(e,vn){const _n=l$3(e,void 0),kn=_n.getFullYear(),qn=y$b(_n,0);qn.setFullYear(kn+1,0,4),qn.setHours(0,0,0,0);const Hn=D$3(qn),Kn=y$b(_n,0);Kn.setFullYear(kn,0,4),Kn.setHours(0,0,0,0);const Qn=D$3(Kn);return _n.getTime()>=Hn.getTime()?kn+1:_n.getTime()>=Qn.getTime()?kn:kn-1}function N$5(e){const vn=l$3(e),_n=new Date(Date.UTC(vn.getFullYear(),vn.getMonth(),vn.getDate(),vn.getHours(),vn.getMinutes(),vn.getSeconds(),vn.getMilliseconds()));return _n.setUTCFullYear(vn.getFullYear()),+e-+_n}function A$5(e,...vn){const _n=y$b.bind(null,vn.find(kn=>typeof kn=="object"));return vn.map(_n)}function H$3(e,vn){const _n=l$3(e,void 0);return _n.setHours(0,0,0,0),_n}function R$4(e,vn,_n){const[kn,qn]=A$5(void 0,e,vn),Hn=H$3(kn),Kn=H$3(qn),Qn=+Hn-N$5(Hn),zn=+Kn-N$5(Kn);return Math.round((Qn-zn)/864e5)}function V$4(e,vn){const _n=j$3(e),kn=y$b(e,0);return kn.setFullYear(_n,0,4),kn.setHours(0,0,0,0),D$3(kn)}function J$1(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function $$8(e){return!(!J$1(e)&&typeof e!="number"||isNaN(+l$3(e)))}function z$9(e,vn){const _n=l$3(e,void 0);return _n.setFullYear(_n.getFullYear(),0,1),_n.setHours(0,0,0,0),_n}const U$5={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},K$3=(e,vn,_n)=>{let kn;const qn=U$5[e];return typeof qn=="string"?kn=qn:vn===1?kn=qn.one:kn=qn.other.replace("{{count}}",vn.toString()),_n!=null&&_n.addSuffix?_n.comparison&&_n.comparison>0?"in "+kn:kn+" ago":kn};function Y$2(e){return(vn={})=>{const _n=vn.width?String(vn.width):e.defaultWidth;return e.formats[_n]||e.formats[e.defaultWidth]}}const Z$3={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},p$c={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ee$2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},te$2={date:Y$2({formats:Z$3,defaultWidth:"full"}),time:Y$2({formats:p$c,defaultWidth:"full"}),dateTime:Y$2({formats:ee$2,defaultWidth:"full"})},ne$3={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},re$3=(e,vn,_n,kn)=>ne$3[e];function k$9(e){return(vn,_n)=>{const kn=_n!=null&&_n.context?String(_n.context):"standalone";let qn;if(kn==="formatting"&&e.formattingValues){const Kn=e.defaultFormattingWidth||e.defaultWidth,Qn=_n!=null&&_n.width?String(_n.width):Kn;qn=e.formattingValues[Qn]||e.formattingValues[Kn]}else{const Kn=e.defaultWidth,Qn=_n!=null&&_n.width?String(_n.width):e.defaultWidth;qn=e.values[Qn]||e.values[Kn]}const Hn=e.argumentCallback?e.argumentCallback(vn):vn;return qn[Hn]}}const ae$3={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ie$2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},se$2={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ue$5={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ce$3={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},oe$3={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},de$4=(e,vn)=>{const _n=Number(e),kn=_n%100;if(kn>20||kn<10)switch(kn%10){case 1:return _n+"st";case 2:return _n+"nd";case 3:return _n+"rd"}return _n+"th"},fe$4={ordinalNumber:de$4,era:k$9({values:ae$3,defaultWidth:"wide"}),quarter:k$9({values:ie$2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:k$9({values:se$2,defaultWidth:"wide"}),day:k$9({values:ue$5,defaultWidth:"wide"}),dayPeriod:k$9({values:ce$3,defaultWidth:"wide",formattingValues:oe$3,defaultFormattingWidth:"wide"})};function W$3(e){return(vn,_n={})=>{const kn=_n.width,qn=kn&&e.matchPatterns[kn]||e.matchPatterns[e.defaultMatchWidth],Hn=vn.match(qn);if(!Hn)return null;const Kn=Hn[0],Qn=kn&&e.parsePatterns[kn]||e.parsePatterns[e.defaultParseWidth],zn=Array.isArray(Qn)?me$4(Qn,Dn=>Dn.test(Kn)):he$4(Qn,Dn=>Dn.test(Kn));let Wn;Wn=e.valueCallback?e.valueCallback(zn):zn,Wn=_n.valueCallback?_n.valueCallback(Wn):Wn;const Nn=vn.slice(Kn.length);return{value:Wn,rest:Nn}}}function he$4(e,vn){for(const _n in e)if(Object.prototype.hasOwnProperty.call(e,_n)&&vn(e[_n]))return _n}function me$4(e,vn){for(let _n=0;_n<e.length;_n++)if(vn(e[_n]))return _n}function le$4(e){return(vn,_n={})=>{const kn=vn.match(e.matchPattern);if(!kn)return null;const qn=kn[0],Hn=vn.match(e.parsePattern);if(!Hn)return null;let Kn=e.valueCallback?e.valueCallback(Hn[0]):Hn[0];Kn=_n.valueCallback?_n.valueCallback(Kn):Kn;const Qn=vn.slice(qn.length);return{value:Kn,rest:Qn}}}const ge$4=/^(\d+)(th|st|nd|rd)?/i,we$4=/\d+/i,ye$4={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},be$4={any:[/^b/i,/^(a|c)/i]},Me$3={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Pe$3={any:[/1/i,/2/i,/3/i,/4/i]},Oe$3={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ke$2={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},We$3={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},xe$3={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},De$4={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ve$4={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Se$4={ordinalNumber:le$4({matchPattern:ge$4,parsePattern:we$4,valueCallback:e=>parseInt(e,10)}),era:W$3({matchPatterns:ye$4,defaultMatchWidth:"wide",parsePatterns:be$4,defaultParseWidth:"any"}),quarter:W$3({matchPatterns:Me$3,defaultMatchWidth:"wide",parsePatterns:Pe$3,defaultParseWidth:"any",valueCallback:e=>e+1}),month:W$3({matchPatterns:Oe$3,defaultMatchWidth:"wide",parsePatterns:ke$2,defaultParseWidth:"any"}),day:W$3({matchPatterns:We$3,defaultMatchWidth:"wide",parsePatterns:xe$3,defaultParseWidth:"any"}),dayPeriod:W$3({matchPatterns:De$4,defaultMatchWidth:"any",parsePatterns:ve$4,defaultParseWidth:"any"})},Ye$4={code:"en-US",formatDistance:K$3,formatLong:te$2,formatRelative:re$3,localize:fe$4,match:Se$4,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Te$4(e,vn){const _n=l$3(e,void 0);return R$4(_n,z$9(_n))+1}function Fe$3(e,vn){const _n=l$3(e,void 0),kn=+D$3(_n)-+V$4(_n);return Math.round(kn/6048e5)+1}function L$5(e,vn){var _n,kn,qn,Hn;const Kn=l$3(e,vn==null?void 0:vn.in),Qn=Kn.getFullYear(),zn=v$a(),Wn=(vn==null?void 0:vn.firstWeekContainsDate)??((kn=(_n=vn==null?void 0:vn.locale)==null?void 0:_n.options)==null?void 0:kn.firstWeekContainsDate)??zn.firstWeekContainsDate??((Hn=(qn=zn.locale)==null?void 0:qn.options)==null?void 0:Hn.firstWeekContainsDate)??1,Nn=y$b((vn==null?void 0:vn.in)||e,0);Nn.setFullYear(Qn+1,0,Wn),Nn.setHours(0,0,0,0);const Dn=x$3(Nn,vn),In=y$b((vn==null?void 0:vn.in)||e,0);In.setFullYear(Qn,0,Wn),In.setHours(0,0,0,0);const Bn=x$3(In,vn);return+Kn>=+Dn?Qn+1:+Kn>=+Bn?Qn:Qn-1}function Ee$3(e,vn){var _n,kn,qn,Hn;const Kn=v$a(),Qn=(vn==null?void 0:vn.firstWeekContainsDate)??((kn=(_n=vn==null?void 0:vn.locale)==null?void 0:_n.options)==null?void 0:kn.firstWeekContainsDate)??Kn.firstWeekContainsDate??((Hn=(qn=Kn.locale)==null?void 0:qn.options)==null?void 0:Hn.firstWeekContainsDate)??1,zn=L$5(e,vn),Wn=y$b((vn==null?void 0:vn.in)||e,0);return Wn.setFullYear(zn,0,Qn),Wn.setHours(0,0,0,0),x$3(Wn,vn)}function Ce$3(e,vn){const _n=l$3(e,vn==null?void 0:vn.in),kn=+x$3(_n,vn)-+Ee$3(_n,vn);return Math.round(kn/6048e5)+1}function u$e(e,vn){const _n=e<0?"-":"",kn=Math.abs(e).toString().padStart(vn,"0");return _n+kn}const w$6={y(e,vn){const _n=e.getFullYear(),kn=_n>0?_n:1-_n;return u$e(vn==="yy"?kn%100:kn,vn.length)},M(e,vn){const _n=e.getMonth();return vn==="M"?String(_n+1):u$e(_n+1,2)},d(e,vn){return u$e(e.getDate(),vn.length)},a(e,vn){const _n=e.getHours()/12>=1?"pm":"am";switch(vn){case"a":case"aa":return _n.toUpperCase();case"aaa":return _n;case"aaaaa":return _n[0];case"aaaa":default:return _n==="am"?"a.m.":"p.m."}},h(e,vn){return u$e(e.getHours()%12||12,vn.length)},H(e,vn){return u$e(e.getHours(),vn.length)},m(e,vn){return u$e(e.getMinutes(),vn.length)},s(e,vn){return u$e(e.getSeconds(),vn.length)},S(e,vn){const _n=vn.length,kn=e.getMilliseconds(),qn=Math.trunc(kn*Math.pow(10,_n-3));return u$e(qn,vn.length)}},M$3={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Q$2={G:function(e,vn,_n){const kn=e.getFullYear()>0?1:0;switch(vn){case"G":case"GG":case"GGG":return _n.era(kn,{width:"abbreviated"});case"GGGGG":return _n.era(kn,{width:"narrow"});case"GGGG":default:return _n.era(kn,{width:"wide"})}},y:function(e,vn,_n){if(vn==="yo"){const kn=e.getFullYear(),qn=kn>0?kn:1-kn;return _n.ordinalNumber(qn,{unit:"year"})}return w$6.y(e,vn)},Y:function(e,vn,_n,kn){const qn=L$5(e,kn),Hn=qn>0?qn:1-qn;if(vn==="YY"){const Kn=Hn%100;return u$e(Kn,2)}return vn==="Yo"?_n.ordinalNumber(Hn,{unit:"year"}):u$e(Hn,vn.length)},R:function(e,vn){const _n=j$3(e);return u$e(_n,vn.length)},u:function(e,vn){const _n=e.getFullYear();return u$e(_n,vn.length)},Q:function(e,vn,_n){const kn=Math.ceil((e.getMonth()+1)/3);switch(vn){case"Q":return String(kn);case"QQ":return u$e(kn,2);case"Qo":return _n.ordinalNumber(kn,{unit:"quarter"});case"QQQ":return _n.quarter(kn,{width:"abbreviated",context:"formatting"});case"QQQQQ":return _n.quarter(kn,{width:"narrow",context:"formatting"});case"QQQQ":default:return _n.quarter(kn,{width:"wide",context:"formatting"})}},q:function(e,vn,_n){const kn=Math.ceil((e.getMonth()+1)/3);switch(vn){case"q":return String(kn);case"qq":return u$e(kn,2);case"qo":return _n.ordinalNumber(kn,{unit:"quarter"});case"qqq":return _n.quarter(kn,{width:"abbreviated",context:"standalone"});case"qqqqq":return _n.quarter(kn,{width:"narrow",context:"standalone"});case"qqqq":default:return _n.quarter(kn,{width:"wide",context:"standalone"})}},M:function(e,vn,_n){const kn=e.getMonth();switch(vn){case"M":case"MM":return w$6.M(e,vn);case"Mo":return _n.ordinalNumber(kn+1,{unit:"month"});case"MMM":return _n.month(kn,{width:"abbreviated",context:"formatting"});case"MMMMM":return _n.month(kn,{width:"narrow",context:"formatting"});case"MMMM":default:return _n.month(kn,{width:"wide",context:"formatting"})}},L:function(e,vn,_n){const kn=e.getMonth();switch(vn){case"L":return String(kn+1);case"LL":return u$e(kn+1,2);case"Lo":return _n.ordinalNumber(kn+1,{unit:"month"});case"LLL":return _n.month(kn,{width:"abbreviated",context:"standalone"});case"LLLLL":return _n.month(kn,{width:"narrow",context:"standalone"});case"LLLL":default:return _n.month(kn,{width:"wide",context:"standalone"})}},w:function(e,vn,_n,kn){const qn=Ce$3(e,kn);return vn==="wo"?_n.ordinalNumber(qn,{unit:"week"}):u$e(qn,vn.length)},I:function(e,vn,_n){const kn=Fe$3(e);return vn==="Io"?_n.ordinalNumber(kn,{unit:"week"}):u$e(kn,vn.length)},d:function(e,vn,_n){return vn==="do"?_n.ordinalNumber(e.getDate(),{unit:"date"}):w$6.d(e,vn)},D:function(e,vn,_n){const kn=Te$4(e);return vn==="Do"?_n.ordinalNumber(kn,{unit:"dayOfYear"}):u$e(kn,vn.length)},E:function(e,vn,_n){const kn=e.getDay();switch(vn){case"E":case"EE":case"EEE":return _n.day(kn,{width:"abbreviated",context:"formatting"});case"EEEEE":return _n.day(kn,{width:"narrow",context:"formatting"});case"EEEEEE":return _n.day(kn,{width:"short",context:"formatting"});case"EEEE":default:return _n.day(kn,{width:"wide",context:"formatting"})}},e:function(e,vn,_n,kn){const qn=e.getDay(),Hn=(qn-kn.weekStartsOn+8)%7||7;switch(vn){case"e":return String(Hn);case"ee":return u$e(Hn,2);case"eo":return _n.ordinalNumber(Hn,{unit:"day"});case"eee":return _n.day(qn,{width:"abbreviated",context:"formatting"});case"eeeee":return _n.day(qn,{width:"narrow",context:"formatting"});case"eeeeee":return _n.day(qn,{width:"short",context:"formatting"});case"eeee":default:return _n.day(qn,{width:"wide",context:"formatting"})}},c:function(e,vn,_n,kn){const qn=e.getDay(),Hn=(qn-kn.weekStartsOn+8)%7||7;switch(vn){case"c":return String(Hn);case"cc":return u$e(Hn,vn.length);case"co":return _n.ordinalNumber(Hn,{unit:"day"});case"ccc":return _n.day(qn,{width:"abbreviated",context:"standalone"});case"ccccc":return _n.day(qn,{width:"narrow",context:"standalone"});case"cccccc":return _n.day(qn,{width:"short",context:"standalone"});case"cccc":default:return _n.day(qn,{width:"wide",context:"standalone"})}},i:function(e,vn,_n){const kn=e.getDay(),qn=kn===0?7:kn;switch(vn){case"i":return String(qn);case"ii":return u$e(qn,vn.length);case"io":return _n.ordinalNumber(qn,{unit:"day"});case"iii":return _n.day(kn,{width:"abbreviated",context:"formatting"});case"iiiii":return _n.day(kn,{width:"narrow",context:"formatting"});case"iiiiii":return _n.day(kn,{width:"short",context:"formatting"});case"iiii":default:return _n.day(kn,{width:"wide",context:"formatting"})}},a:function(e,vn,_n){const kn=e.getHours()/12>=1?"pm":"am";switch(vn){case"a":case"aa":return _n.dayPeriod(kn,{width:"abbreviated",context:"formatting"});case"aaa":return _n.dayPeriod(kn,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return _n.dayPeriod(kn,{width:"narrow",context:"formatting"});case"aaaa":default:return _n.dayPeriod(kn,{width:"wide",context:"formatting"})}},b:function(e,vn,_n){const kn=e.getHours();let qn;switch(kn===12?qn=M$3.noon:kn===0?qn=M$3.midnight:qn=kn/12>=1?"pm":"am",vn){case"b":case"bb":return _n.dayPeriod(qn,{width:"abbreviated",context:"formatting"});case"bbb":return _n.dayPeriod(qn,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return _n.dayPeriod(qn,{width:"narrow",context:"formatting"});case"bbbb":default:return _n.dayPeriod(qn,{width:"wide",context:"formatting"})}},B:function(e,vn,_n){const kn=e.getHours();let qn;switch(kn>=17?qn=M$3.evening:kn>=12?qn=M$3.afternoon:kn>=4?qn=M$3.morning:qn=M$3.night,vn){case"B":case"BB":case"BBB":return _n.dayPeriod(qn,{width:"abbreviated",context:"formatting"});case"BBBBB":return _n.dayPeriod(qn,{width:"narrow",context:"formatting"});case"BBBB":default:return _n.dayPeriod(qn,{width:"wide",context:"formatting"})}},h:function(e,vn,_n){if(vn==="ho"){let kn=e.getHours()%12;return kn===0&&(kn=12),_n.ordinalNumber(kn,{unit:"hour"})}return w$6.h(e,vn)},H:function(e,vn,_n){return vn==="Ho"?_n.ordinalNumber(e.getHours(),{unit:"hour"}):w$6.H(e,vn)},K:function(e,vn,_n){const kn=e.getHours()%12;return vn==="Ko"?_n.ordinalNumber(kn,{unit:"hour"}):u$e(kn,vn.length)},k:function(e,vn,_n){let kn=e.getHours();return kn===0&&(kn=24),vn==="ko"?_n.ordinalNumber(kn,{unit:"hour"}):u$e(kn,vn.length)},m:function(e,vn,_n){return vn==="mo"?_n.ordinalNumber(e.getMinutes(),{unit:"minute"}):w$6.m(e,vn)},s:function(e,vn,_n){return vn==="so"?_n.ordinalNumber(e.getSeconds(),{unit:"second"}):w$6.s(e,vn)},S:function(e,vn){return w$6.S(e,vn)},X:function(e,vn,_n){const kn=e.getTimezoneOffset();if(kn===0)return"Z";switch(vn){case"X":return _$8(kn);case"XXXX":case"XX":return b$8(kn);case"XXXXX":case"XXX":default:return b$8(kn,":")}},x:function(e,vn,_n){const kn=e.getTimezoneOffset();switch(vn){case"x":return _$8(kn);case"xxxx":case"xx":return b$8(kn);case"xxxxx":case"xxx":default:return b$8(kn,":")}},O:function(e,vn,_n){const kn=e.getTimezoneOffset();switch(vn){case"O":case"OO":case"OOO":return"GMT"+X$2(kn,":");case"OOOO":default:return"GMT"+b$8(kn,":")}},z:function(e,vn,_n){const kn=e.getTimezoneOffset();switch(vn){case"z":case"zz":case"zzz":return"GMT"+X$2(kn,":");case"zzzz":default:return"GMT"+b$8(kn,":")}},t:function(e,vn,_n){const kn=Math.trunc(+e/1e3);return u$e(kn,vn.length)},T:function(e,vn,_n){return u$e(+e,vn.length)}};function X$2(e,vn=""){const _n=e>0?"-":"+",kn=Math.abs(e),qn=Math.trunc(kn/60),Hn=kn%60;return Hn===0?_n+String(qn):_n+String(qn)+vn+u$e(Hn,2)}function _$8(e,vn){return e%60===0?(e>0?"-":"+")+u$e(Math.abs(e)/60,2):b$8(e,vn)}function b$8(e,vn=""){const _n=e>0?"-":"+",kn=Math.abs(e),qn=u$e(Math.trunc(kn/60),2),Hn=u$e(kn%60,2);return _n+qn+vn+Hn}const I$4=(e,vn)=>{switch(e){case"P":return vn.date({width:"short"});case"PP":return vn.date({width:"medium"});case"PPP":return vn.date({width:"long"});case"PPPP":default:return vn.date({width:"full"})}},G$1=(e,vn)=>{switch(e){case"p":return vn.time({width:"short"});case"pp":return vn.time({width:"medium"});case"ppp":return vn.time({width:"long"});case"pppp":default:return vn.time({width:"full"})}},qe$2=(e,vn)=>{const _n=e.match(/(P+)(p+)?/)||[],kn=_n[1],qn=_n[2];if(!qn)return I$4(e,vn);let Hn;switch(kn){case"P":Hn=vn.dateTime({width:"short"});break;case"PP":Hn=vn.dateTime({width:"medium"});break;case"PPP":Hn=vn.dateTime({width:"long"});break;case"PPPP":default:Hn=vn.dateTime({width:"full"});break}return Hn.replace("{{date}}",I$4(kn,vn)).replace("{{time}}",G$1(qn,vn))},Ne$3={p:G$1,P:qe$2},He$3=/^D+$/,Qe$2=/^Y+$/,Xe$3=["D","DD","YY","YYYY"];function _e$3(e){return He$3.test(e)}function Ie$3(e){return Qe$2.test(e)}function je$2(e,vn,_n){const kn=Le$3(e,vn,_n);if(console.warn(kn),Xe$3.includes(e))throw new RangeError(kn)}function Le$3(e,vn,_n){const kn=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${vn}\`) for formatting ${kn} to the input \`${_n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Ge$2=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Be$2=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ae$3=/^'([^]*?)'?$/,Re$2=/''/g,Ve$2=/[a-zA-Z]/;function pe$3(e,vn,_n){var kn,qn,Hn,Kn,Qn,zn,Wn,Nn;const Dn=v$a(),In=(_n==null?void 0:_n.locale)??Dn.locale??Ye$4,Bn=(_n==null?void 0:_n.firstWeekContainsDate)??((qn=(kn=_n==null?void 0:_n.locale)==null?void 0:kn.options)==null?void 0:qn.firstWeekContainsDate)??Dn.firstWeekContainsDate??((Kn=(Hn=Dn.locale)==null?void 0:Hn.options)==null?void 0:Kn.firstWeekContainsDate)??1,Ln=(_n==null?void 0:_n.weekStartsOn)??((zn=(Qn=_n==null?void 0:_n.locale)==null?void 0:Qn.options)==null?void 0:zn.weekStartsOn)??Dn.weekStartsOn??((Nn=(Wn=Dn.locale)==null?void 0:Wn.options)==null?void 0:Nn.weekStartsOn)??0,Pn=l$3(e,_n==null?void 0:_n.in);if(!$$8(Pn))throw new RangeError("Invalid time value");let Zn=vn.match(Be$2).map(Xn=>{const mi=Xn[0];if(mi==="p"||mi==="P"){const ci=Ne$3[mi];return ci(Xn,In.formatLong)}return Xn}).join("").match(Ge$2).map(Xn=>{if(Xn==="''")return{isToken:!1,value:"'"};const mi=Xn[0];if(mi==="'")return{isToken:!1,value:Je$2(Xn)};if(Q$2[mi])return{isToken:!0,value:Xn};if(mi.match(Ve$2))throw new RangeError("Format string contains an unescaped latin alphabet character `"+mi+"`");return{isToken:!1,value:Xn}});In.localize.preprocessor&&(Zn=In.localize.preprocessor(Pn,Zn));const Jn={firstWeekContainsDate:Bn,weekStartsOn:Ln,locale:In};return Zn.map(Xn=>{if(!Xn.isToken)return Xn.value;const mi=Xn.value;(!(_n!=null&&_n.useAdditionalWeekYearTokens)&&Ie$3(mi)||!(_n!=null&&_n.useAdditionalDayOfYearTokens)&&_e$3(mi))&&je$2(mi,vn,String(e));const ci=Q$2[mi[0]];return ci(Pn,mi,In.localize,Jn)}).join("")}function Je$2(e){const vn=e.match(Ae$3);return vn?vn[1].replace(Re$2,"'"):e}var hr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ua(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uc={exports:{}},Nd;function Yb(){return Nd||(Nd=1,function(e,vn){(function(){var _n="ace",kn=function(){return this}();!kn&&typeof window<"u"&&(kn=window);var qn=function(Nn,Dn,In){if(typeof Nn!="string"){qn.original?qn.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(In=Dn),qn.modules[Nn]||(qn.payloads[Nn]=In,qn.modules[Nn]=null)};qn.modules={},qn.payloads={};var Hn=function(Nn,Dn,In){if(typeof Dn=="string"){var Bn=zn(Nn,Dn);if(Bn!=null)return In&&In(),Bn}else if(Object.prototype.toString.call(Dn)==="[object Array]"){for(var Ln=[],Pn=0,Zn=Dn.length;Pn<Zn;++Pn){var Jn=zn(Nn,Dn[Pn]);if(Jn==null&&Kn.original)return;Ln.push(Jn)}return In&&In.apply(null,Ln)||!0}},Kn=function(Nn,Dn){var In=Hn("",Nn,Dn);return In==null&&Kn.original?Kn.original.apply(this,arguments):In},Qn=function(Nn,Dn){if(Dn.indexOf("!")!==-1){var In=Dn.split("!");return Qn(Nn,In[0])+"!"+Qn(Nn,In[1])}if(Dn.charAt(0)=="."){var Bn=Nn.split("/").slice(0,-1).join("/");for(Dn=Bn+"/"+Dn;Dn.indexOf(".")!==-1&&Ln!=Dn;){var Ln=Dn;Dn=Dn.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return Dn},zn=function(Nn,Dn){Dn=Qn(Nn,Dn);var In=qn.modules[Dn];if(!In){if(In=qn.payloads[Dn],typeof In=="function"){var Bn={},Ln={id:Dn,uri:"",exports:Bn,packaged:!0},Pn=function(Jn,Xn){return Hn(Dn,Jn,Xn)},Zn=In(Pn,Bn,Ln);Bn=Zn||Ln.exports,qn.modules[Dn]=Bn,delete qn.payloads[Dn]}In=qn.modules[Dn]=Bn||In}return In};function Wn(Nn){var Dn=kn;kn[Nn]||(kn[Nn]={}),Dn=kn[Nn],(!Dn.define||!Dn.define.packaged)&&(qn.original=Dn.define,Dn.define=qn,Dn.define.packaged=!0),(!Dn.require||!Dn.require.packaged)&&(Kn.original=Dn.require,Dn.require=Kn,Dn.require.packaged=!0)}Wn(_n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(_n,kn,qn){function Hn(Kn,Qn,zn){Object.defineProperty(Kn,Qn,{value:zn,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||Hn(String.prototype,"startsWith",function(Kn,Qn){return Qn=Qn||0,this.lastIndexOf(Kn,Qn)===Qn}),String.prototype.endsWith||Hn(String.prototype,"endsWith",function(Kn,Qn){var zn=this;(Qn===void 0||Qn>zn.length)&&(Qn=zn.length),Qn-=Kn.length;var Wn=zn.indexOf(Kn,Qn);return Wn!==-1&&Wn===Qn}),String.prototype.repeat||Hn(String.prototype,"repeat",function(Kn){for(var Qn="",zn=this;Kn>0;)Kn&1&&(Qn+=zn),(Kn>>=1)&&(zn+=zn);return Qn}),String.prototype.includes||Hn(String.prototype,"includes",function(Kn,Qn){return this.indexOf(Kn,Qn)!=-1}),Object.assign||(Object.assign=function(Kn){if(Kn==null)throw new TypeError("Cannot convert undefined or null to object");for(var Qn=Object(Kn),zn=1;zn<arguments.length;zn++){var Wn=arguments[zn];Wn!=null&&Object.keys(Wn).forEach(function(Nn){Qn[Nn]=Wn[Nn]})}return Qn}),Object.values||(Object.values=function(Kn){return Object.keys(Kn).map(function(Qn){return Kn[Qn]})}),Array.prototype.find||Hn(Array.prototype,"find",function(Kn){for(var Qn=this.length,zn=arguments[1],Wn=0;Wn<Qn;Wn++){var Nn=this[Wn];if(Kn.call(zn,Nn,Wn,this))return Nn}}),Array.prototype.findIndex||Hn(Array.prototype,"findIndex",function(Kn){for(var Qn=this.length,zn=arguments[1],Wn=0;Wn<Qn;Wn++){var Nn=this[Wn];if(Kn.call(zn,Nn,Wn,this))return Wn}}),Array.prototype.includes||Hn(Array.prototype,"includes",function(Kn,Qn){return this.indexOf(Kn,Qn)!=-1}),Array.prototype.fill||Hn(Array.prototype,"fill",function(Kn){for(var Qn=this,zn=Qn.length>>>0,Wn=arguments[1],Nn=Wn>>0,Dn=Nn<0?Math.max(zn+Nn,0):Math.min(Nn,zn),In=arguments[2],Bn=In===void 0?zn:In>>0,Ln=Bn<0?Math.max(zn+Bn,0):Math.min(Bn,zn);Dn<Ln;)Qn[Dn]=Kn,Dn++;return Qn}),Array.of||Hn(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(_n,kn,qn){_n("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(_n,kn,qn){kn.deepCopy=function Hn(Kn){if(typeof Kn!="object"||!Kn)return Kn;var Qn;if(Array.isArray(Kn)){Qn=[];for(var zn=0;zn<Kn.length;zn++)Qn[zn]=Hn(Kn[zn]);return Qn}if(Object.prototype.toString.call(Kn)!=="[object Object]")return Kn;Qn={};for(var zn in Kn)Qn[zn]=Hn(Kn[zn]);return Qn}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(_n,kn,qn){kn.last=function(Qn){return Qn[Qn.length-1]},kn.stringReverse=function(Qn){return Qn.split("").reverse().join("")},kn.stringRepeat=function(Qn,zn){for(var Wn="";zn>0;)zn&1&&(Wn+=Qn),(zn>>=1)&&(Qn+=Qn);return Wn};var Hn=/^\s\s*/,Kn=/\s\s*$/;kn.stringTrimLeft=function(Qn){return Qn.replace(Hn,"")},kn.stringTrimRight=function(Qn){return Qn.replace(Kn,"")},kn.copyObject=function(Qn){var zn={};for(var Wn in Qn)zn[Wn]=Qn[Wn];return zn},kn.copyArray=function(Qn){for(var zn=[],Wn=0,Nn=Qn.length;Wn<Nn;Wn++)Qn[Wn]&&typeof Qn[Wn]=="object"?zn[Wn]=this.copyObject(Qn[Wn]):zn[Wn]=Qn[Wn];return zn},kn.deepCopy=_n("./deep_copy").deepCopy,kn.arrayToMap=function(Qn){for(var zn={},Wn=0;Wn<Qn.length;Wn++)zn[Qn[Wn]]=1;return zn},kn.createMap=function(Qn){var zn=Object.create(null);for(var Wn in Qn)zn[Wn]=Qn[Wn];return zn},kn.arrayRemove=function(Qn,zn){for(var Wn=0;Wn<=Qn.length;Wn++)zn===Qn[Wn]&&Qn.splice(Wn,1)},kn.escapeRegExp=function(Qn){return Qn.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},kn.escapeHTML=function(Qn){return(""+Qn).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},kn.getMatchOffsets=function(Qn,zn){var Wn=[];return Qn.replace(zn,function(Nn){Wn.push({offset:arguments[arguments.length-2],length:Nn.length})}),Wn},kn.deferredCall=function(Qn){var zn=null,Wn=function(){zn=null,Qn()},Nn=function(Dn){return Nn.cancel(),zn=setTimeout(Wn,Dn||0),Nn};return Nn.schedule=Nn,Nn.call=function(){return this.cancel(),Qn(),Nn},Nn.cancel=function(){return clearTimeout(zn),zn=null,Nn},Nn.isPending=function(){return zn},Nn},kn.delayedCall=function(Qn,zn){var Wn=null,Nn=function(){Wn=null,Qn()},Dn=function(In){Wn==null&&(Wn=setTimeout(Nn,In||zn))};return Dn.delay=function(In){Wn&&clearTimeout(Wn),Wn=setTimeout(Nn,In||zn)},Dn.schedule=Dn,Dn.call=function(){this.cancel(),Qn()},Dn.cancel=function(){Wn&&clearTimeout(Wn),Wn=null},Dn.isPending=function(){return Wn},Dn},kn.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},kn.skipEmptyMatch=function(Qn,zn,Wn){return Wn&&Qn.codePointAt(zn)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(_n,kn,qn){kn.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},kn.getOS=function(){return kn.isMac?kn.OS.MAC:kn.isLinux?kn.OS.LINUX:kn.OS.WINDOWS};var Hn=typeof navigator=="object"?navigator:{},Kn=(/mac|win|linux/i.exec(Hn.platform)||["other"])[0].toLowerCase(),Qn=Hn.userAgent||"",zn=Hn.appName||"";kn.isWin=Kn=="win",kn.isMac=Kn=="mac",kn.isLinux=Kn=="linux",kn.isIE=zn=="Microsoft Internet Explorer"||zn.indexOf("MSAppHost")>=0?parseFloat((Qn.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((Qn.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),kn.isOldIE=kn.isIE&&kn.isIE<9,kn.isGecko=kn.isMozilla=Qn.match(/ Gecko\/\d+/),kn.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",kn.isWebKit=parseFloat(Qn.split("WebKit/")[1])||void 0,kn.isChrome=parseFloat(Qn.split(" Chrome/")[1])||void 0,kn.isSafari=parseFloat(Qn.split(" Safari/")[1])&&!kn.isChrome||void 0,kn.isEdge=parseFloat(Qn.split(" Edge/")[1])||void 0,kn.isAIR=Qn.indexOf("AdobeAIR")>=0,kn.isAndroid=Qn.indexOf("Android")>=0,kn.isChromeOS=Qn.indexOf(" CrOS ")>=0,kn.isIOS=/iPad|iPhone|iPod/.test(Qn)&&!window.MSStream,kn.isIOS&&(kn.isMac=!0),kn.isMobile=kn.isIOS||kn.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(_n,kn,qn){var Hn=_n("./useragent"),Kn="http://www.w3.org/1999/xhtml";kn.buildDom=function In(Bn,Ln,Pn){if(typeof Bn=="string"&&Bn){var Zn=document.createTextNode(Bn);return Ln&&Ln.appendChild(Zn),Zn}if(!Array.isArray(Bn))return Bn&&Bn.appendChild&&Ln&&Ln.appendChild(Bn),Bn;if(typeof Bn[0]!="string"||!Bn[0]){for(var Jn=[],Xn=0;Xn<Bn.length;Xn++){var mi=In(Bn[Xn],Ln,Pn);mi&&Jn.push(mi)}return Jn}var ci=document.createElement(Bn[0]),oi=Bn[1],ei=1;oi&&typeof oi=="object"&&!Array.isArray(oi)&&(ei=2);for(var Xn=ei;Xn<Bn.length;Xn++)In(Bn[Xn],ci,Pn);return ei==2&&Object.keys(oi).forEach(function(fi){var gi=oi[fi];fi==="class"?ci.className=Array.isArray(gi)?gi.join(" "):gi:typeof gi=="function"||fi=="value"||fi[0]=="$"?ci[fi]=gi:fi==="ref"?Pn&&(Pn[gi]=ci):fi==="style"?typeof gi=="string"&&(ci.style.cssText=gi):gi!=null&&ci.setAttribute(fi,gi)}),Ln&&Ln.appendChild(ci),ci},kn.getDocumentHead=function(In){return In||(In=document),In.head||In.getElementsByTagName("head")[0]||In.documentElement},kn.createElement=function(In,Bn){return document.createElementNS?document.createElementNS(Bn||Kn,In):document.createElement(In)},kn.removeChildren=function(In){In.innerHTML=""},kn.createTextNode=function(In,Bn){var Ln=Bn?Bn.ownerDocument:document;return Ln.createTextNode(In)},kn.createFragment=function(In){var Bn=In?In.ownerDocument:document;return Bn.createDocumentFragment()},kn.hasCssClass=function(In,Bn){var Ln=(In.className+"").split(/\s+/g);return Ln.indexOf(Bn)!==-1},kn.addCssClass=function(In,Bn){kn.hasCssClass(In,Bn)||(In.className+=" "+Bn)},kn.removeCssClass=function(In,Bn){for(var Ln=In.className.split(/\s+/g);;){var Pn=Ln.indexOf(Bn);if(Pn==-1)break;Ln.splice(Pn,1)}In.className=Ln.join(" ")},kn.toggleCssClass=function(In,Bn){for(var Ln=In.className.split(/\s+/g),Pn=!0;;){var Zn=Ln.indexOf(Bn);if(Zn==-1)break;Pn=!1,Ln.splice(Zn,1)}return Pn&&Ln.push(Bn),In.className=Ln.join(" "),Pn},kn.setCssClass=function(In,Bn,Ln){Ln?kn.addCssClass(In,Bn):kn.removeCssClass(In,Bn)},kn.hasCssString=function(In,Bn){var Ln=0,Pn;if(Bn=Bn||document,Pn=Bn.querySelectorAll("style")){for(;Ln<Pn.length;)if(Pn[Ln++].id===In)return!0}},kn.removeElementById=function(In,Bn){Bn=Bn||document,Bn.getElementById(In)&&Bn.getElementById(In).remove()};var Qn,zn=[];kn.useStrictCSP=function(In){Qn=In,In==!1?Wn():zn||(zn=[])};function Wn(){var In=zn;zn=null,In&&In.forEach(function(Bn){Nn(Bn[0],Bn[1])})}function Nn(In,Bn,Ln){if(!(typeof document>"u")){if(zn){if(Ln)Wn();else if(Ln===!1)return zn.push([In,Bn])}if(!Qn){var Pn=Ln;!Ln||!Ln.getRootNode?Pn=document:(Pn=Ln.getRootNode(),(!Pn||Pn==Ln)&&(Pn=document));var Zn=Pn.ownerDocument||Pn;if(Bn&&kn.hasCssString(Bn,Pn))return null;Bn&&(In+=`
2
+ /*# sourceURL=ace/css/`+Bn+" */");var Jn=kn.createElement("style");Jn.appendChild(Zn.createTextNode(In)),Bn&&(Jn.id=Bn),Pn==Zn&&(Pn=kn.getDocumentHead(Zn)),Pn.insertBefore(Jn,Pn.firstChild)}}}if(kn.importCssString=Nn,kn.importCssStylsheet=function(In,Bn){kn.buildDom(["link",{rel:"stylesheet",href:In}],kn.getDocumentHead(Bn))},kn.scrollbarWidth=function(In){var Bn=kn.createElement("ace_inner");Bn.style.width="100%",Bn.style.minWidth="0px",Bn.style.height="200px",Bn.style.display="block";var Ln=kn.createElement("ace_outer"),Pn=Ln.style;Pn.position="absolute",Pn.left="-10000px",Pn.overflow="hidden",Pn.width="200px",Pn.minWidth="0px",Pn.height="150px",Pn.display="block",Ln.appendChild(Bn);var Zn=In&&In.documentElement||document&&document.documentElement;if(!Zn)return 0;Zn.appendChild(Ln);var Jn=Bn.offsetWidth;Pn.overflow="scroll";var Xn=Bn.offsetWidth;return Jn===Xn&&(Xn=Ln.clientWidth),Zn.removeChild(Ln),Jn-Xn},kn.computedStyle=function(In,Bn){return window.getComputedStyle(In,"")||{}},kn.setStyle=function(In,Bn,Ln){In[Bn]!==Ln&&(In[Bn]=Ln)},kn.HAS_CSS_ANIMATION=!1,kn.HAS_CSS_TRANSFORMS=!1,kn.HI_DPI=Hn.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,Hn.isChromeOS&&(kn.HI_DPI=!1),typeof document<"u"){var Dn=document.createElement("div");kn.HI_DPI&&Dn.style.transform!==void 0&&(kn.HAS_CSS_TRANSFORMS=!0),!Hn.isEdge&&typeof Dn.style.animationName<"u"&&(kn.HAS_CSS_ANIMATION=!0),Dn=null}kn.HAS_CSS_TRANSFORMS?kn.translate=function(In,Bn,Ln){In.style.transform="translate("+Math.round(Bn)+"px, "+Math.round(Ln)+"px)"}:kn.translate=function(In,Bn,Ln){In.style.top=Math.round(Ln)+"px",In.style.left=Math.round(Bn)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(_n,kn,qn){/*
3
+ * based on code from:
4
+ *
5
+ * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
6
+ * Available via the MIT or new BSD license.
7
+ * see: http://github.com/jrburke/requirejs for details
8
+ */var Hn=_n("./dom");kn.get=function(Kn,Qn){var zn=new XMLHttpRequest;zn.open("GET",Kn,!0),zn.onreadystatechange=function(){zn.readyState===4&&Qn(zn.responseText)},zn.send(null)},kn.loadScript=function(Kn,Qn){var zn=Hn.getDocumentHead(),Wn=document.createElement("script");Wn.src=Kn,zn.appendChild(Wn),Wn.onload=Wn.onreadystatechange=function(Nn,Dn){(Dn||!Wn.readyState||Wn.readyState=="loaded"||Wn.readyState=="complete")&&(Wn=Wn.onload=Wn.onreadystatechange=null,Dn||Qn())}},kn.qualifyURL=function(Kn){var Qn=document.createElement("a");return Qn.href=Kn,Qn.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(_n,kn,qn){kn.inherits=function(Hn,Kn){Hn.super_=Kn,Hn.prototype=Object.create(Kn.prototype,{constructor:{value:Hn,enumerable:!1,writable:!0,configurable:!0}})},kn.mixin=function(Hn,Kn){for(var Qn in Kn)Hn[Qn]=Kn[Qn];return Hn},kn.implement=function(Hn,Kn){kn.mixin(Hn,Kn)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(_n,kn,qn){var Hn={},Kn=function(){this.propagationStopped=!0},Qn=function(){this.defaultPrevented=!0};Hn._emit=Hn._dispatchEvent=function(zn,Wn){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var Nn=this._eventRegistry[zn]||[],Dn=this._defaultHandlers[zn];if(!(!Nn.length&&!Dn)){(typeof Wn!="object"||!Wn)&&(Wn={}),Wn.type||(Wn.type=zn),Wn.stopPropagation||(Wn.stopPropagation=Kn),Wn.preventDefault||(Wn.preventDefault=Qn),Nn=Nn.slice();for(var In=0;In<Nn.length&&(Nn[In](Wn,this),!Wn.propagationStopped);In++);if(Dn&&!Wn.defaultPrevented)return Dn(Wn,this)}},Hn._signal=function(zn,Wn){var Nn=(this._eventRegistry||{})[zn];if(Nn){Nn=Nn.slice();for(var Dn=0;Dn<Nn.length;Dn++)Nn[Dn](Wn,this)}},Hn.once=function(zn,Wn){var Nn=this;if(this.on(zn,function Dn(){Nn.off(zn,Dn),Wn.apply(null,arguments)}),!Wn)return new Promise(function(Dn){Wn=Dn})},Hn.setDefaultHandler=function(zn,Wn){var Nn=this._defaultHandlers;if(Nn||(Nn=this._defaultHandlers={_disabled_:{}}),Nn[zn]){var Dn=Nn[zn],In=Nn._disabled_[zn];In||(Nn._disabled_[zn]=In=[]),In.push(Dn);var Bn=In.indexOf(Wn);Bn!=-1&&In.splice(Bn,1)}Nn[zn]=Wn},Hn.removeDefaultHandler=function(zn,Wn){var Nn=this._defaultHandlers;if(Nn){var Dn=Nn._disabled_[zn];if(Nn[zn]==Wn)Dn&&this.setDefaultHandler(zn,Dn.pop());else if(Dn){var In=Dn.indexOf(Wn);In!=-1&&Dn.splice(In,1)}}},Hn.on=Hn.addEventListener=function(zn,Wn,Nn){this._eventRegistry=this._eventRegistry||{};var Dn=this._eventRegistry[zn];return Dn||(Dn=this._eventRegistry[zn]=[]),Dn.indexOf(Wn)==-1&&Dn[Nn?"unshift":"push"](Wn),Wn},Hn.off=Hn.removeListener=Hn.removeEventListener=function(zn,Wn){this._eventRegistry=this._eventRegistry||{};var Nn=this._eventRegistry[zn];if(Nn){var Dn=Nn.indexOf(Wn);Dn!==-1&&Nn.splice(Dn,1)}},Hn.removeAllListeners=function(zn){zn||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[zn]=void 0),this._defaultHandlers&&(this._defaultHandlers[zn]=void 0)},kn.EventEmitter=Hn}),ace.define("ace/lib/report_error",["require","exports","module"],function(_n,kn,qn){kn.reportError=function(Hn,Kn){var Qn=new Error(Hn);Qn.data=Kn,typeof console=="object"&&console.error&&console.error(Qn),setTimeout(function(){throw Qn})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(_n,kn,qn){var Hn={"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","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"};kn.defaultEnglishMessages=Hn}),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(_n,kn,qn){"no use strict";var Hn=_n("./oop"),Kn=_n("./event_emitter").EventEmitter,Qn=_n("./report_error").reportError,zn=_n("./default_english_messages").defaultEnglishMessages,Wn={setOptions:function(Ln){Object.keys(Ln).forEach(function(Pn){this.setOption(Pn,Ln[Pn])},this)},getOptions:function(Ln){var Pn={};if(Ln)Array.isArray(Ln)||(Pn=Ln,Ln=Object.keys(Pn));else{var Zn=this.$options;Ln=Object.keys(Zn).filter(function(Jn){return!Zn[Jn].hidden})}return Ln.forEach(function(Jn){Pn[Jn]=this.getOption(Jn)},this),Pn},setOption:function(Ln,Pn){if(this["$"+Ln]!==Pn){var Zn=this.$options[Ln];if(!Zn)return Nn('misspelled option "'+Ln+'"');if(Zn.forwardTo)return this[Zn.forwardTo]&&this[Zn.forwardTo].setOption(Ln,Pn);Zn.handlesSet||(this["$"+Ln]=Pn),Zn&&Zn.set&&Zn.set.call(this,Pn)}},getOption:function(Ln){var Pn=this.$options[Ln];return Pn?Pn.forwardTo?this[Pn.forwardTo]&&this[Pn.forwardTo].getOption(Ln):Pn&&Pn.get?Pn.get.call(this):this["$"+Ln]:Nn('misspelled option "'+Ln+'"')}};function Nn(Ln){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var Dn,In,Bn=function(){function Ln(){this.$defaultOptions={},Dn=zn,In="dollarSigns"}return Ln.prototype.defineOptions=function(Pn,Zn,Jn){return Pn.$options||(this.$defaultOptions[Zn]=Pn.$options={}),Object.keys(Jn).forEach(function(Xn){var mi=Jn[Xn];typeof mi=="string"&&(mi={forwardTo:mi}),mi.name||(mi.name=Xn),Pn.$options[mi.name]=mi,"initialValue"in mi&&(Pn["$"+mi.name]=mi.initialValue)}),Hn.implement(Pn,Wn),this},Ln.prototype.resetOptions=function(Pn){Object.keys(Pn.$options).forEach(function(Zn){var Jn=Pn.$options[Zn];"value"in Jn&&Pn.setOption(Zn,Jn.value)})},Ln.prototype.setDefaultValue=function(Pn,Zn,Jn){if(!Pn){for(Pn in this.$defaultOptions)if(this.$defaultOptions[Pn][Zn])break;if(!this.$defaultOptions[Pn][Zn])return!1}var Xn=this.$defaultOptions[Pn]||(this.$defaultOptions[Pn]={});Xn[Zn]&&(Xn.forwardTo?this.setDefaultValue(Xn.forwardTo,Zn,Jn):Xn[Zn].value=Jn)},Ln.prototype.setDefaultValues=function(Pn,Zn){Object.keys(Zn).forEach(function(Jn){this.setDefaultValue(Pn,Jn,Zn[Jn])},this)},Ln.prototype.setMessages=function(Pn,Zn){Dn=Pn,Zn&&Zn.placeholders&&(In=Zn.placeholders)},Ln.prototype.nls=function(Pn,Zn,Jn){Dn[Pn]||(Nn("No message found for the key '"+Pn+"' in messages with id "+Dn.$id+", trying to find a translation for the default string '"+Zn+"'."),Dn[Zn]||Nn("No message found for the default string '"+Zn+"' in the provided messages. Falling back to the default English message."));var Xn=Dn[Pn]||Dn[Zn]||Zn;return Jn&&(In==="dollarSigns"&&(Xn=Xn.replace(/\$(\$|[\d]+)/g,function(mi,ci){return ci=="$"?"$":Jn[ci]})),In==="curlyBrackets"&&(Xn=Xn.replace(/\{([^\}]+)\}/g,function(mi,ci){return Jn[ci]}))),Xn},Ln}();Bn.prototype.warn=Nn,Bn.prototype.reportError=Qn,Hn.implement(Bn.prototype,Kn),kn.AppConfig=Bn}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(_n,kn,qn){qn.exports=`.ace-tm .ace_gutter {
9
+ background: #f0f0f0;
10
+ color: #333;
11
+ }
12
+
13
+ .ace-tm .ace_print-margin {
14
+ width: 1px;
15
+ background: #e8e8e8;
16
+ }
17
+
18
+ .ace-tm .ace_fold {
19
+ background-color: #6B72E6;
20
+ }
21
+
22
+ .ace-tm {
23
+ background-color: #FFFFFF;
24
+ color: black;
25
+ }
26
+
27
+ .ace-tm .ace_cursor {
28
+ color: black;
29
+ }
30
+
31
+ .ace-tm .ace_invisible {
32
+ color: rgb(191, 191, 191);
33
+ }
34
+
35
+ .ace-tm .ace_storage,
36
+ .ace-tm .ace_keyword {
37
+ color: blue;
38
+ }
39
+
40
+ .ace-tm .ace_constant {
41
+ color: rgb(197, 6, 11);
42
+ }
43
+
44
+ .ace-tm .ace_constant.ace_buildin {
45
+ color: rgb(88, 72, 246);
46
+ }
47
+
48
+ .ace-tm .ace_constant.ace_language {
49
+ color: rgb(88, 92, 246);
50
+ }
51
+
52
+ .ace-tm .ace_constant.ace_library {
53
+ color: rgb(6, 150, 14);
54
+ }
55
+
56
+ .ace-tm .ace_invalid {
57
+ background-color: rgba(255, 0, 0, 0.1);
58
+ color: red;
59
+ }
60
+
61
+ .ace-tm .ace_support.ace_function {
62
+ color: rgb(60, 76, 114);
63
+ }
64
+
65
+ .ace-tm .ace_support.ace_constant {
66
+ color: rgb(6, 150, 14);
67
+ }
68
+
69
+ .ace-tm .ace_support.ace_type,
70
+ .ace-tm .ace_support.ace_class {
71
+ color: rgb(109, 121, 222);
72
+ }
73
+
74
+ .ace-tm .ace_keyword.ace_operator {
75
+ color: rgb(104, 118, 135);
76
+ }
77
+
78
+ .ace-tm .ace_string {
79
+ color: rgb(3, 106, 7);
80
+ }
81
+
82
+ .ace-tm .ace_comment {
83
+ color: rgb(76, 136, 107);
84
+ }
85
+
86
+ .ace-tm .ace_comment.ace_doc {
87
+ color: rgb(0, 102, 255);
88
+ }
89
+
90
+ .ace-tm .ace_comment.ace_doc.ace_tag {
91
+ color: rgb(128, 159, 191);
92
+ }
93
+
94
+ .ace-tm .ace_constant.ace_numeric {
95
+ color: rgb(0, 0, 205);
96
+ }
97
+
98
+ .ace-tm .ace_variable {
99
+ color: rgb(49, 132, 149);
100
+ }
101
+
102
+ .ace-tm .ace_xml-pe {
103
+ color: rgb(104, 104, 91);
104
+ }
105
+
106
+ .ace-tm .ace_entity.ace_name.ace_function {
107
+ color: #0000A2;
108
+ }
109
+
110
+
111
+ .ace-tm .ace_heading {
112
+ color: rgb(12, 7, 255);
113
+ }
114
+
115
+ .ace-tm .ace_list {
116
+ color:rgb(185, 6, 144);
117
+ }
118
+
119
+ .ace-tm .ace_meta.ace_tag {
120
+ color:rgb(0, 22, 142);
121
+ }
122
+
123
+ .ace-tm .ace_string.ace_regex {
124
+ color: rgb(255, 0, 0)
125
+ }
126
+
127
+ .ace-tm .ace_marker-layer .ace_selection {
128
+ background: rgb(181, 213, 255);
129
+ }
130
+ .ace-tm.ace_multiselect .ace_selection.ace_start {
131
+ box-shadow: 0 0 3px 0px white;
132
+ }
133
+ .ace-tm .ace_marker-layer .ace_step {
134
+ background: rgb(252, 255, 0);
135
+ }
136
+
137
+ .ace-tm .ace_marker-layer .ace_stack {
138
+ background: rgb(164, 229, 101);
139
+ }
140
+
141
+ .ace-tm .ace_marker-layer .ace_bracket {
142
+ margin: -1px 0 0 -1px;
143
+ border: 1px solid rgb(192, 192, 192);
144
+ }
145
+
146
+ .ace-tm .ace_marker-layer .ace_active-line {
147
+ background: rgba(0, 0, 0, 0.07);
148
+ }
149
+
150
+ .ace-tm .ace_gutter-active-line {
151
+ background-color : #dcdcdc;
152
+ }
153
+
154
+ .ace-tm .ace_marker-layer .ace_selected-word {
155
+ background: rgb(250, 250, 255);
156
+ border: 1px solid rgb(200, 200, 250);
157
+ }
158
+
159
+ .ace-tm .ace_indent-guide {
160
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
161
+ }
162
+
163
+ .ace-tm .ace_indent-guide-active {
164
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
165
+ }
166
+ `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(_n,kn,qn){kn.isDark=!1,kn.cssClass="ace-tm",kn.cssText=_n("./textmate-css"),kn.$id="ace/theme/textmate";var Hn=_n("../lib/dom");Hn.importCssString(kn.cssText,kn.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(_n,kn,qn){"no use strict";var Hn=_n("./lib/lang"),Kn=_n("./lib/net"),Qn=_n("./lib/dom"),zn=_n("./lib/app_config").AppConfig;qn.exports=kn=new zn;var Wn={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};kn.get=function(Bn){if(!Wn.hasOwnProperty(Bn))throw new Error("Unknown config key: "+Bn);return Wn[Bn]},kn.set=function(Bn,Ln){if(Wn.hasOwnProperty(Bn))Wn[Bn]=Ln;else if(this.setDefaultValue("",Bn,Ln)==!1)throw new Error("Unknown config key: "+Bn);Bn=="useStrictCSP"&&Qn.useStrictCSP(Ln)},kn.all=function(){return Hn.copyObject(Wn)},kn.$modes={},kn.moduleUrl=function(Bn,Ln){if(Wn.$moduleUrls[Bn])return Wn.$moduleUrls[Bn];var Pn=Bn.split("/");Ln=Ln||Pn[Pn.length-2]||"";var Zn=Ln=="snippets"?"/":"-",Jn=Pn[Pn.length-1];if(Ln=="worker"&&Zn=="-"){var Xn=new RegExp("^"+Ln+"[\\-_]|[\\-_]"+Ln+"$","g");Jn=Jn.replace(Xn,"")}(!Jn||Jn==Ln)&&Pn.length>1&&(Jn=Pn[Pn.length-2]);var mi=Wn[Ln+"Path"];return mi==null?mi=Wn.basePath:Zn=="/"&&(Ln=Zn=""),mi&&mi.slice(-1)!="/"&&(mi+="/"),mi+Ln+Zn+Jn+this.get("suffix")},kn.setModuleUrl=function(Bn,Ln){return Wn.$moduleUrls[Bn]=Ln};var Nn=function(Bn,Ln){if(Bn==="ace/theme/textmate"||Bn==="./theme/textmate")return Ln(null,_n("./theme/textmate"));if(Dn)return Dn(Bn,Ln);console.error("loader is not configured")},Dn;kn.setLoader=function(Bn){Dn=Bn},kn.dynamicModules=Object.create(null),kn.$loading={},kn.$loaded={},kn.loadModule=function(Bn,Ln){var Pn;if(Array.isArray(Bn))var Zn=Bn[0],Jn=Bn[1];else if(typeof Bn=="string")var Jn=Bn;var Xn=function(mi){if(mi&&!kn.$loading[Jn])return Ln&&Ln(mi);if(kn.$loading[Jn]||(kn.$loading[Jn]=[]),kn.$loading[Jn].push(Ln),!(kn.$loading[Jn].length>1)){var ci=function(){Nn(Jn,function(oi,ei){ei&&(kn.$loaded[Jn]=ei),kn._emit("load.module",{name:Jn,module:ei});var fi=kn.$loading[Jn];kn.$loading[Jn]=null,fi.forEach(function(gi){gi&&gi(ei)})})};if(!kn.get("packaged"))return ci();Kn.loadScript(kn.moduleUrl(Jn,Zn),ci),In()}};if(kn.dynamicModules[Jn])kn.dynamicModules[Jn]().then(function(mi){mi.default?Xn(mi.default):Xn(mi)});else{try{Pn=this.$require(Jn)}catch{}Xn(Pn||kn.$loaded[Jn])}},kn.$require=function(Bn){if(typeof qn.require=="function"){var Ln="require";return qn[Ln](Bn)}},kn.setModuleLoader=function(Bn,Ln){kn.dynamicModules[Bn]=Ln};var In=function(){!Wn.basePath&&!Wn.workerPath&&!Wn.modePath&&!Wn.themePath&&!Object.keys(Wn.$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"),In=function(){})};kn.version="1.37.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(_n,kn,qn){_n("./lib/fixoldbrowsers");var Hn=_n("./config");Hn.setLoader(function(Wn,Nn){_n([Wn],function(Dn){Nn(null,Dn)})});var Kn=function(){return this||typeof window<"u"&&window}();qn.exports=function(Wn){Hn.init=Qn,Hn.$require=_n,Wn.require=_n},Qn(!0);function Qn(Wn){if(!(!Kn||!Kn.document)){Hn.set("packaged",Wn||_n.packaged||qn.packaged||Kn.define&&(void 0).packaged);var Nn={},Dn="",In=document.currentScript||document._currentScript,Bn=In&&In.ownerDocument||document;In&&In.src&&(Dn=In.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var Ln=Bn.getElementsByTagName("script"),Pn=0;Pn<Ln.length;Pn++){var Zn=Ln[Pn],Jn=Zn.src||Zn.getAttribute("src");if(Jn){for(var Xn=Zn.attributes,mi=0,ci=Xn.length;mi<ci;mi++){var oi=Xn[mi];oi.name.indexOf("data-ace-")===0&&(Nn[zn(oi.name.replace(/^data-ace-/,""))]=oi.value)}var ei=Jn.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);ei&&(Dn=ei[1])}}Dn&&(Nn.base=Nn.base||Dn,Nn.packaged=!0),Nn.basePath=Nn.base,Nn.workerPath=Nn.workerPath||Nn.base,Nn.modePath=Nn.modePath||Nn.base,Nn.themePath=Nn.themePath||Nn.base,delete Nn.base;for(var fi in Nn)typeof Nn[fi]<"u"&&Hn.set(fi,Nn[fi])}}function zn(Wn){return Wn.replace(/-(.)/g,function(Nn,Dn){return Dn.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(_n,kn,qn){var Hn=function(){function Kn(Qn,zn,Wn,Nn){this.start={row:Qn,column:zn},this.end={row:Wn,column:Nn}}return Kn.prototype.isEqual=function(Qn){return this.start.row===Qn.start.row&&this.end.row===Qn.end.row&&this.start.column===Qn.start.column&&this.end.column===Qn.end.column},Kn.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},Kn.prototype.contains=function(Qn,zn){return this.compare(Qn,zn)==0},Kn.prototype.compareRange=function(Qn){var zn,Wn=Qn.end,Nn=Qn.start;return zn=this.compare(Wn.row,Wn.column),zn==1?(zn=this.compare(Nn.row,Nn.column),zn==1?2:zn==0?1:0):zn==-1?-2:(zn=this.compare(Nn.row,Nn.column),zn==-1?-1:zn==1?42:0)},Kn.prototype.comparePoint=function(Qn){return this.compare(Qn.row,Qn.column)},Kn.prototype.containsRange=function(Qn){return this.comparePoint(Qn.start)==0&&this.comparePoint(Qn.end)==0},Kn.prototype.intersects=function(Qn){var zn=this.compareRange(Qn);return zn==-1||zn==0||zn==1},Kn.prototype.isEnd=function(Qn,zn){return this.end.row==Qn&&this.end.column==zn},Kn.prototype.isStart=function(Qn,zn){return this.start.row==Qn&&this.start.column==zn},Kn.prototype.setStart=function(Qn,zn){typeof Qn=="object"?(this.start.column=Qn.column,this.start.row=Qn.row):(this.start.row=Qn,this.start.column=zn)},Kn.prototype.setEnd=function(Qn,zn){typeof Qn=="object"?(this.end.column=Qn.column,this.end.row=Qn.row):(this.end.row=Qn,this.end.column=zn)},Kn.prototype.inside=function(Qn,zn){return this.compare(Qn,zn)==0?!(this.isEnd(Qn,zn)||this.isStart(Qn,zn)):!1},Kn.prototype.insideStart=function(Qn,zn){return this.compare(Qn,zn)==0?!this.isEnd(Qn,zn):!1},Kn.prototype.insideEnd=function(Qn,zn){return this.compare(Qn,zn)==0?!this.isStart(Qn,zn):!1},Kn.prototype.compare=function(Qn,zn){return!this.isMultiLine()&&Qn===this.start.row?zn<this.start.column?-1:zn>this.end.column?1:0:Qn<this.start.row?-1:Qn>this.end.row?1:this.start.row===Qn?zn>=this.start.column?0:-1:this.end.row===Qn?zn<=this.end.column?0:1:0},Kn.prototype.compareStart=function(Qn,zn){return this.start.row==Qn&&this.start.column==zn?-1:this.compare(Qn,zn)},Kn.prototype.compareEnd=function(Qn,zn){return this.end.row==Qn&&this.end.column==zn?1:this.compare(Qn,zn)},Kn.prototype.compareInside=function(Qn,zn){return this.end.row==Qn&&this.end.column==zn?1:this.start.row==Qn&&this.start.column==zn?-1:this.compare(Qn,zn)},Kn.prototype.clipRows=function(Qn,zn){if(this.end.row>zn)var Wn={row:zn+1,column:0};else if(this.end.row<Qn)var Wn={row:Qn,column:0};if(this.start.row>zn)var Nn={row:zn+1,column:0};else if(this.start.row<Qn)var Nn={row:Qn,column:0};return Kn.fromPoints(Nn||this.start,Wn||this.end)},Kn.prototype.extend=function(Qn,zn){var Wn=this.compare(Qn,zn);if(Wn==0)return this;if(Wn==-1)var Nn={row:Qn,column:zn};else var Dn={row:Qn,column:zn};return Kn.fromPoints(Nn||this.start,Dn||this.end)},Kn.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},Kn.prototype.isMultiLine=function(){return this.start.row!==this.end.row},Kn.prototype.clone=function(){return Kn.fromPoints(this.start,this.end)},Kn.prototype.collapseRows=function(){return this.end.column==0?new Kn(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Kn(this.start.row,0,this.end.row,0)},Kn.prototype.toScreenRange=function(Qn){var zn=Qn.documentToScreenPosition(this.start),Wn=Qn.documentToScreenPosition(this.end);return new Kn(zn.row,zn.column,Wn.row,Wn.column)},Kn.prototype.moveBy=function(Qn,zn){this.start.row+=Qn,this.start.column+=zn,this.end.row+=Qn,this.end.column+=zn},Kn}();Hn.fromPoints=function(Kn,Qn){return new Hn(Kn.row,Kn.column,Qn.row,Qn.column)},Hn.comparePoints=function(Kn,Qn){return Kn.row-Qn.row||Kn.column-Qn.column},kn.Range=Hn}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(_n,kn,qn){for(var Hn=_n("./oop"),Kn={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:"*"}},Qn={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},zn=0;zn<10;zn++)Qn["Digit"+zn]=48+zn,Qn["Numpad"+zn]=96+zn,Kn.PRINTABLE_KEYS[48+zn]=""+zn,Kn.FUNCTION_KEYS[96+zn]="Numpad"+zn;for(var zn=65;zn<91;zn++){var Wn=String.fromCharCode(zn+32);Qn["Key"+Wn.toUpperCase()]=zn,Kn.PRINTABLE_KEYS[zn]=Wn}for(var zn=1;zn<13;zn++)Qn["F"+zn]=111+zn,Kn.FUNCTION_KEYS[111+zn]="F"+zn;var Nn={Shift:16,Control:17,Alt:18,Meta:224};for(var Dn in Nn)Qn[Dn]=Qn[Dn+"Left"]=Qn[Dn+"Right"]=Nn[Dn];kn.$codeToKeyCode=Qn,Kn.PRINTABLE_KEYS[173]="-";for(var In in Kn.FUNCTION_KEYS){var Bn=Kn.FUNCTION_KEYS[In].toLowerCase();Kn[Bn]=parseInt(In,10)}for(var In in Kn.PRINTABLE_KEYS){var Bn=Kn.PRINTABLE_KEYS[In].toLowerCase();Kn[Bn]=parseInt(In,10)}Hn.mixin(Kn,Kn.MODIFIER_KEYS),Hn.mixin(Kn,Kn.PRINTABLE_KEYS),Hn.mixin(Kn,Kn.FUNCTION_KEYS),Kn.enter=Kn.return,Kn.escape=Kn.esc,Kn.del=Kn.delete,function(){for(var Ln=["cmd","ctrl","alt","shift"],Pn=Math.pow(2,Ln.length);Pn--;)Kn.KEY_MODS[Pn]=Ln.filter(function(Zn){return Pn&Kn.KEY_MODS[Zn]}).join("-")+"-"}(),Kn.KEY_MODS[0]="",Kn.KEY_MODS[-1]="input-",Hn.mixin(kn,Kn),kn.default=kn,kn.keyCodeToString=function(Ln){var Pn=Kn[Ln];return typeof Pn!="string"&&(Pn=String.fromCharCode(Ln)),Pn.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(_n,kn,qn){var Hn=_n("./keys"),Kn=_n("./useragent"),Qn=null,zn=0,Wn;function Nn(){Wn=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return Wn={passive:!1},!0}})}catch{}}function Dn(){return Wn==null&&Nn(),Wn}function In(mi,ci,oi){this.elem=mi,this.type=ci,this.callback=oi}In.prototype.destroy=function(){Ln(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var Bn=kn.addListener=function(mi,ci,oi,ei){mi.addEventListener(ci,oi,Dn()),ei&&ei.$toDestroy.push(new In(mi,ci,oi))},Ln=kn.removeListener=function(mi,ci,oi){mi.removeEventListener(ci,oi,Dn())};kn.stopEvent=function(mi){return kn.stopPropagation(mi),kn.preventDefault(mi),!1},kn.stopPropagation=function(mi){mi.stopPropagation&&mi.stopPropagation()},kn.preventDefault=function(mi){mi.preventDefault&&mi.preventDefault()},kn.getButton=function(mi){return mi.type=="dblclick"?0:mi.type=="contextmenu"||Kn.isMac&&mi.ctrlKey&&!mi.altKey&&!mi.shiftKey?2:mi.button},kn.capture=function(mi,ci,oi){var ei=mi&&mi.ownerDocument||document;function fi(gi){ci&&ci(gi),oi&&oi(gi),Ln(ei,"mousemove",ci),Ln(ei,"mouseup",fi),Ln(ei,"dragstart",fi)}return Bn(ei,"mousemove",ci),Bn(ei,"mouseup",fi),Bn(ei,"dragstart",fi),fi},kn.addMouseWheelListener=function(mi,ci,oi){Bn(mi,"wheel",function(ei){var fi=.15,gi=ei.deltaX||0,yi=ei.deltaY||0;switch(ei.deltaMode){case ei.DOM_DELTA_PIXEL:ei.wheelX=gi*fi,ei.wheelY=yi*fi;break;case ei.DOM_DELTA_LINE:var pi=15;ei.wheelX=gi*pi,ei.wheelY=yi*pi;break;case ei.DOM_DELTA_PAGE:var $i=150;ei.wheelX=gi*$i,ei.wheelY=yi*$i;break}ci(ei)},oi)},kn.addMultiMouseDownListener=function(mi,ci,oi,ei,fi){var gi=0,yi,pi,$i,si={2:"dblclick",3:"tripleclick",4:"quadclick"};function ti(ai){if(kn.getButton(ai)!==0?gi=0:ai.detail>1?(gi++,gi>4&&(gi=1)):gi=1,Kn.isIE){var vi=Math.abs(ai.clientX-yi)>5||Math.abs(ai.clientY-pi)>5;(!$i||vi)&&(gi=1),$i&&clearTimeout($i),$i=setTimeout(function(){$i=null},ci[gi-1]||600),gi==1&&(yi=ai.clientX,pi=ai.clientY)}if(ai._clicks=gi,oi[ei]("mousedown",ai),gi>4)gi=0;else if(gi>1)return oi[ei](si[gi],ai)}Array.isArray(mi)||(mi=[mi]),mi.forEach(function(ai){Bn(ai,"mousedown",ti,fi)})};function Pn(mi){return 0|(mi.ctrlKey?1:0)|(mi.altKey?2:0)|(mi.shiftKey?4:0)|(mi.metaKey?8:0)}kn.getModifierString=function(mi){return Hn.KEY_MODS[Pn(mi)]};function Zn(mi,ci,oi){var ei=Pn(ci);if(!oi&&ci.code&&(oi=Hn.$codeToKeyCode[ci.code]||oi),!Kn.isMac&&Qn){if(ci.getModifierState&&(ci.getModifierState("OS")||ci.getModifierState("Win"))&&(ei|=8),Qn.altGr)if((3&ei)!=3)Qn.altGr=0;else return;if(oi===18||oi===17){var fi=ci.location;if(oi===17&&fi===1)Qn[oi]==1&&(zn=ci.timeStamp);else if(oi===18&&ei===3&&fi===2){var gi=ci.timeStamp-zn;gi<50&&(Qn.altGr=!0)}}}if(oi in Hn.MODIFIER_KEYS&&(oi=-1),!(!ei&&oi===13&&ci.location===3&&(mi(ci,ei,-oi),ci.defaultPrevented))){if(Kn.isChromeOS&&ei&8){if(mi(ci,ei,oi),ci.defaultPrevented)return;ei&=-9}return!ei&&!(oi in Hn.FUNCTION_KEYS)&&!(oi in Hn.PRINTABLE_KEYS)?!1:mi(ci,ei,oi)}}kn.addCommandKeyListener=function(mi,ci,oi){var ei=null;Bn(mi,"keydown",function(fi){Qn[fi.keyCode]=(Qn[fi.keyCode]||0)+1;var gi=Zn(ci,fi,fi.keyCode);return ei=fi.defaultPrevented,gi},oi),Bn(mi,"keypress",function(fi){ei&&(fi.ctrlKey||fi.altKey||fi.shiftKey||fi.metaKey)&&(kn.stopEvent(fi),ei=null)},oi),Bn(mi,"keyup",function(fi){Qn[fi.keyCode]=null},oi),Qn||(Jn(),Bn(window,"focus",Jn))};function Jn(){Qn=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!Kn.isOldIE){var Xn=1;kn.nextTick=function(mi,ci){ci=ci||window;var oi="zero-timeout-message-"+Xn++,ei=function(fi){fi.data==oi&&(kn.stopPropagation(fi),Ln(ci,"message",ei),mi())};Bn(ci,"message",ei),ci.postMessage(oi,"*")}}kn.$idleBlocked=!1,kn.onIdle=function(mi,ci){return setTimeout(function oi(){kn.$idleBlocked?setTimeout(oi,100):mi()},ci)},kn.$idleBlockId=null,kn.blockIdle=function(mi){kn.$idleBlockId&&clearTimeout(kn.$idleBlockId),kn.$idleBlocked=!0,kn.$idleBlockId=setTimeout(function(){kn.$idleBlocked=!1},mi||100)},kn.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),kn.nextFrame?kn.nextFrame=kn.nextFrame.bind(window):kn.nextFrame=function(mi){setTimeout(mi,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(_n,kn,qn){var Hn;qn.exports={lineMode:!1,pasteCancelled:function(){return Hn&&Hn>Date.now()-50?!0:Hn=!1},cancel:function(){Hn=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(_n,kn,qn){var Hn=_n("../lib/event"),Kn=_n("../config").nls,Qn=_n("../lib/useragent"),zn=_n("../lib/dom"),Wn=_n("../lib/lang"),Nn=_n("../clipboard"),Dn=Qn.isChrome<18,In=Qn.isIE,Bn=Qn.isChrome>63,Ln=400,Pn=_n("../lib/keys"),Zn=Pn.KEY_MODS,Jn=Qn.isIOS,Xn=Jn?/\s/:/\n/,mi=Qn.isMobile,ci;ci=function(oi,ei){var fi=zn.createElement("textarea");fi.className="ace_text-input",fi.setAttribute("wrap","off"),fi.setAttribute("autocorrect","off"),fi.setAttribute("autocapitalize","off"),fi.setAttribute("spellcheck","false"),fi.style.opacity="0",oi.insertBefore(fi,oi.firstChild);var gi=!1,yi=!1,pi=!1,$i=!1,si="";mi||(fi.style.fontSize="1px");var ti=!1,ai=!1,vi="",wi=0,xi=0,Si=0,Ei=Number.MAX_SAFE_INTEGER,Ri=Number.MIN_SAFE_INTEGER,Ni=0;try{var Fi=document.activeElement===fi}catch{}this.setNumberOfExtraLines=function(Ji){if(Ei=Number.MAX_SAFE_INTEGER,Ri=Number.MIN_SAFE_INTEGER,Ji<0){Ni=0;return}Ni=Ji},this.setAriaLabel=function(){var Ji="";if(ei.$textInputAriaLabel&&(Ji+="".concat(ei.$textInputAriaLabel,", ")),ei.session){var xr=ei.session.selection.cursor.row;Ji+=Kn("text-input.aria-label","Cursor at row $0",[xr+1])}fi.setAttribute("aria-label",Ji)},this.setAriaOptions=function(Ji){Ji.activeDescendant?(fi.setAttribute("aria-haspopup","true"),fi.setAttribute("aria-autocomplete",Ji.inline?"both":"list"),fi.setAttribute("aria-activedescendant",Ji.activeDescendant)):(fi.setAttribute("aria-haspopup","false"),fi.setAttribute("aria-autocomplete","both"),fi.removeAttribute("aria-activedescendant")),Ji.role&&fi.setAttribute("role",Ji.role),Ji.setLabel&&(fi.setAttribute("aria-roledescription",Kn("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),Hn.addListener(fi,"blur",function(Ji){ai||(ei.onBlur(Ji),Fi=!1)},ei),Hn.addListener(fi,"focus",function(Ji){if(!ai){if(Fi=!0,Qn.isEdge)try{if(!document.hasFocus())return}catch{}ei.onFocus(Ji),Qn.isEdge?setTimeout(Vi):Vi()}},ei),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:ei.renderer.enableKeyboardAccessibility}),si||Bn||this.$focusScroll=="browser")return fi.focus({preventScroll:!0});var Ji=fi.style.top;fi.style.position="fixed",fi.style.top="0px";try{var xr=fi.getBoundingClientRect().top!=0}catch{return}var kr=[];if(xr)for(var Gr=fi.parentElement;Gr&&Gr.nodeType==1;)kr.push(Gr),Gr.setAttribute("ace_nocontext","true"),!Gr.parentElement&&Gr.getRootNode?Gr=Gr.getRootNode().host:Gr=Gr.parentElement;fi.focus({preventScroll:!0}),xr&&kr.forEach(function(qr){qr.removeAttribute("ace_nocontext")}),setTimeout(function(){fi.style.position="",fi.style.top=="0px"&&(fi.style.top=Ji)},0)},this.blur=function(){fi.blur()},this.isFocused=function(){return Fi},ei.on("beforeEndOperation",function(){var Ji=ei.curOp,xr=Ji&&Ji.command&&Ji.command.name;if(xr!="insertstring"){var kr=xr&&(Ji.docChanged||Ji.selectionChanged);pi&&kr&&(vi=fi.value="",Uo()),Vi()}}),ei.on("changeSelection",this.setAriaLabel);var Ii=function(Ji,xr){for(var kr=xr,Gr=1;Gr<=Ji-Ei&&Gr<2*Ni+1;Gr++)kr+=ei.session.getLine(Ji-Gr).length+1;return kr},Vi=Jn?function(Ji){if(!(!Fi||gi&&!Ji||$i)){Ji||(Ji="");var xr=`
167
+ ab`+Ji+`cde fg
168
+ `;xr!=fi.value&&(fi.value=vi=xr);var kr=4,Gr=4+(Ji.length||(ei.selection.isEmpty()?0:1));(wi!=kr||xi!=Gr)&&fi.setSelectionRange(kr,Gr),wi=kr,xi=Gr}}:function(){if(!(pi||$i)&&!(!Fi&&!lr)){pi=!0;var Ji=0,xr=0,kr="";if(ei.session){var Gr=ei.selection,qr=Gr.getRange(),$o=Gr.cursor.row;$o===Ri+1?(Ei=Ri+1,Ri=Ei+2*Ni):$o===Ei-1?(Ri=Ei-1,Ei=Ri-2*Ni):($o<Ei-1||$o>Ri+1)&&(Ei=$o>Ni?$o-Ni:0,Ri=$o>Ni?$o+Ni:2*Ni);for(var ko=[],oo=Ei;oo<=Ri;oo++)ko.push(ei.session.getLine(oo));if(kr=ko.join(`
169
+ `),Ji=Ii(qr.start.row,qr.start.column),xr=Ii(qr.end.row,qr.end.column),qr.start.row<Ei){var so=ei.session.getLine(Ei-1);Ji=qr.start.row<Ei-1?0:Ji,xr+=so.length+1,kr=so+`
170
+ `+kr}else if(qr.end.row>Ri){var eo=ei.session.getLine(Ri+1);xr=qr.end.row>Ri+1?eo.length:qr.end.column,xr+=kr.length+1,kr=kr+`
171
+ `+eo}else mi&&$o>0&&(kr=`
172
+ `+kr,xr+=1,Ji+=1);kr.length>Ln&&(Ji<Ln&&xr<Ln?kr=kr.slice(0,Ln):(kr=`
173
+ `,Ji==xr?Ji=xr=0:(Ji=0,xr=1)));var Ho=kr+`
174
+
175
+ `;Ho!=vi&&(fi.value=vi=Ho,wi=xi=Ho.length)}if(lr&&(wi=fi.selectionStart,xi=fi.selectionEnd),xi!=xr||wi!=Ji||fi.selectionEnd!=xi)try{fi.setSelectionRange(Ji,xr),wi=Ji,xi=xr}catch{}pi=!1}};this.resetSelection=Vi,Fi&&ei.onFocus();var Gi=function(Ji){return Ji.selectionStart===0&&Ji.selectionEnd>=vi.length&&Ji.value===vi&&vi&&Ji.selectionEnd!==xi},Pi=function(Ji){pi||(gi?gi=!1:Gi(fi)?(ei.selectAll(),Vi()):mi&&fi.selectionStart!=wi&&Vi())},Zi=null;this.setInputHandler=function(Ji){Zi=Ji},this.getInputHandler=function(){return Zi};var lr=!1,gr=function(Ji,xr){if(lr&&(lr=!1),yi)return Vi(),Ji&&ei.onPaste(Ji),yi=!1,"";for(var kr=fi.selectionStart,Gr=fi.selectionEnd,qr=wi,$o=vi.length-xi,ko=Ji,oo=Ji.length-kr,so=Ji.length-Gr,eo=0;qr>0&&vi[eo]==Ji[eo];)eo++,qr--;for(ko=ko.slice(eo),eo=1;$o>0&&vi.length-eo>wi-1&&vi[vi.length-eo]==Ji[Ji.length-eo];)eo++,$o--;oo-=eo-1,so-=eo-1;var Ho=ko.length-eo+1;if(Ho<0&&(qr=-Ho,Ho=0),ko=ko.slice(0,Ho),!xr&&!ko&&!oo&&!qr&&!$o&&!so)return"";$i=!0;var Rs=!1;return Qn.isAndroid&&ko==". "&&(ko=" ",Rs=!0),ko&&!qr&&!$o&&!oo&&!so||ti?ei.onTextInput(ko):ei.onTextInput(ko,{extendLeft:qr,extendRight:$o,restoreStart:oo,restoreEnd:so}),$i=!1,vi=Ji,wi=kr,xi=Gr,Si=so,Rs?`
176
+ `:ko},or=function(Ji){if(pi)return Do();if(Ji&&Ji.inputType){if(Ji.inputType=="historyUndo")return ei.execCommand("undo");if(Ji.inputType=="historyRedo")return ei.execCommand("redo")}var xr=fi.value,kr=gr(xr,!0);(xr.length>Ln+100||Xn.test(kr)||mi&&wi<1&&wi==xi)&&Vi()},yr=function(Ji,xr,kr){var Gr=Ji.clipboardData||window.clipboardData;if(!(!Gr||Dn)){var qr=In||kr?"Text":"text/plain";try{return xr?Gr.setData(qr,xr)!==!1:Gr.getData(qr)}catch($o){if(!kr)return yr($o,xr,!0)}}},io=function(Ji,xr){var kr=ei.getCopyText();if(!kr)return Hn.preventDefault(Ji);yr(Ji,kr)?(Jn&&(Vi(kr),gi=kr,setTimeout(function(){gi=!1},10)),xr?ei.onCut():ei.onCopy(),Hn.preventDefault(Ji)):(gi=!0,fi.value=kr,fi.select(),setTimeout(function(){gi=!1,Vi(),xr?ei.onCut():ei.onCopy()}))},Po=function(Ji){io(Ji,!0)},lo=function(Ji){io(Ji,!1)},So=function(Ji){var xr=yr(Ji);Nn.pasteCancelled()||(typeof xr=="string"?(xr&&ei.onPaste(xr,Ji),Qn.isIE&&setTimeout(Vi),Hn.preventDefault(Ji)):(fi.value="",yi=!0))};Hn.addCommandKeyListener(fi,function(Ji,xr,kr){if(!pi)return ei.onCommandKey(Ji,xr,kr)},ei),Hn.addListener(fi,"select",Pi,ei),Hn.addListener(fi,"input",or,ei),Hn.addListener(fi,"cut",Po,ei),Hn.addListener(fi,"copy",lo,ei),Hn.addListener(fi,"paste",So,ei),(!("oncut"in fi)||!("oncopy"in fi)||!("onpaste"in fi))&&Hn.addListener(oi,"keydown",function(Ji){if(!(Qn.isMac&&!Ji.metaKey||!Ji.ctrlKey))switch(Ji.keyCode){case 67:lo(Ji);break;case 86:So(Ji);break;case 88:Po(Ji);break}},ei);var Xo=function(Ji){if(!(pi||!ei.onCompositionStart||ei.$readOnly)&&(pi={},!ti)){Ji.data&&(pi.useTextareaForIME=!1),setTimeout(Do,0),ei._signal("compositionStart"),ei.on("mousedown",va);var xr=ei.getSelectionRange();xr.end.row=xr.start.row,xr.end.column=xr.start.column,pi.markerRange=xr,pi.selectionStart=wi,ei.onCompositionStart(pi),pi.useTextareaForIME?(vi=fi.value="",wi=0,xi=0):(fi.msGetInputContext&&(pi.context=fi.msGetInputContext()),fi.getInputContext&&(pi.context=fi.getInputContext()))}},Do=function(){if(!(!pi||!ei.onCompositionUpdate||ei.$readOnly)){if(ti)return va();if(pi.useTextareaForIME)ei.onCompositionUpdate(fi.value);else{var Ji=fi.value;gr(Ji),pi.markerRange&&(pi.context&&(pi.markerRange.start.column=pi.selectionStart=pi.context.compositionStartOffset),pi.markerRange.end.column=pi.markerRange.start.column+xi-pi.selectionStart+Si)}}},Uo=function(Ji){!ei.onCompositionEnd||ei.$readOnly||(pi=!1,ei.onCompositionEnd(),ei.off("mousedown",va),Ji&&or())};function va(){ai=!0,fi.blur(),fi.focus(),ai=!1}var ss=Wn.delayedCall(Do,50).schedule.bind(null,null);function Ko(Ji){Ji.keyCode==27&&fi.value.length<fi.selectionStart&&(pi||(vi=fi.value),wi=xi=-1,Vi()),ss()}Hn.addListener(fi,"compositionstart",Xo,ei),Hn.addListener(fi,"compositionupdate",Do,ei),Hn.addListener(fi,"keyup",Ko,ei),Hn.addListener(fi,"keydown",ss,ei),Hn.addListener(fi,"compositionend",Uo,ei),this.getElement=function(){return fi},this.setCommandMode=function(Ji){ti=Ji,fi.readOnly=!1},this.setReadOnly=function(Ji){ti||(fi.readOnly=Ji)},this.setCopyWithEmptySelection=function(Ji){},this.onContextMenu=function(Ji){lr=!0,Vi(),ei._emit("nativecontextmenu",{target:ei,domEvent:Ji}),this.moveToMouse(Ji,!0)},this.moveToMouse=function(Ji,xr){si||(si=fi.style.cssText),fi.style.cssText=(xr?"z-index:100000;":"")+(Qn.isIE?"opacity:0.1;":"")+"text-indent: -"+(wi+xi)*ei.renderer.characterWidth*.5+"px;";var kr=ei.container.getBoundingClientRect(),Gr=zn.computedStyle(ei.container),qr=kr.top+(parseInt(Gr.borderTopWidth)||0),$o=kr.left+(parseInt(kr.borderLeftWidth)||0),ko=kr.bottom-qr-fi.clientHeight-2,oo=function(so){zn.translate(fi,so.clientX-$o-2,Math.min(so.clientY-qr-2,ko))};oo(Ji),Ji.type=="mousedown"&&(ei.renderer.$isMousePressed=!0,clearTimeout(Mr),Qn.isWin&&Hn.capture(ei.container,oo,Vr))},this.onContextMenuClose=Vr;var Mr;function Vr(){clearTimeout(Mr),Mr=setTimeout(function(){si&&(fi.style.cssText=si,si=""),ei.renderer.$isMousePressed=!1,ei.renderer.$keepTextAreaAtCursor&&ei.renderer.$moveTextAreaToCursor()},0)}var Zo=function(Ji){ei.textInput.onContextMenu(Ji),Vr()};Hn.addListener(fi,"mouseup",Zo,ei),Hn.addListener(fi,"mousedown",function(Ji){Ji.preventDefault(),Vr()},ei),Hn.addListener(ei.renderer.scroller,"contextmenu",Zo,ei),Hn.addListener(fi,"contextmenu",Zo,ei),Jn&&Hr(oi,ei,fi);function Hr(Ji,xr,kr){var Gr=null,qr=!1;kr.addEventListener("keydown",function(ko){Gr&&clearTimeout(Gr),qr=!0},!0),kr.addEventListener("keyup",function(ko){Gr=setTimeout(function(){qr=!1},100)},!0);var $o=function(ko){if(document.activeElement===kr&&!(qr||pi||xr.$mouseHandler.isMousePressed)&&!gi){var oo=kr.selectionStart,so=kr.selectionEnd,eo=null,Ho=0;if(oo==0?eo=Pn.up:oo==1?eo=Pn.home:so>xi&&vi[so]==`
177
+ `?eo=Pn.end:oo<wi&&vi[oo-1]==" "?(eo=Pn.left,Ho=Zn.option):oo<wi||oo==wi&&xi!=wi&&oo==so?eo=Pn.left:so>xi&&vi.slice(0,so).split(`
178
+ `).length>2?eo=Pn.down:so>xi&&vi[so-1]==" "?(eo=Pn.right,Ho=Zn.option):(so>xi||so==xi&&xi!=wi&&oo==so)&&(eo=Pn.right),oo!==so&&(Ho|=Zn.shift),eo){var Rs=xr.onCommandKey({},Ho,eo);if(!Rs&&xr.commands){eo=Pn.keyCodeToString(eo);var ol=xr.commands.findKeyCommand(Ho,eo);ol&&xr.execCommand(ol)}wi=oo,xi=so,Vi("")}}};document.addEventListener("selectionchange",$o),xr.on("destroy",function(){document.removeEventListener("selectionchange",$o)})}this.destroy=function(){fi.parentElement&&fi.parentElement.removeChild(fi)}},kn.TextInput=ci,kn.$setUserAgentForTests=function(oi,ei){mi=oi,Jn=ei}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(_n,kn,qn){var Hn=_n("../lib/useragent"),Kn=0,Qn=550,zn=function(){function Dn(In){In.$clickSelection=null;var Bn=In.editor;Bn.setDefaultHandler("mousedown",this.onMouseDown.bind(In)),Bn.setDefaultHandler("dblclick",this.onDoubleClick.bind(In)),Bn.setDefaultHandler("tripleclick",this.onTripleClick.bind(In)),Bn.setDefaultHandler("quadclick",this.onQuadClick.bind(In)),Bn.setDefaultHandler("mousewheel",this.onMouseWheel.bind(In));var Ln=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];Ln.forEach(function(Pn){In[Pn]=this[Pn]},this),In.selectByLines=this.extendSelectionBy.bind(In,"getLineRange"),In.selectByWords=this.extendSelectionBy.bind(In,"getWordRange")}return Dn.prototype.onMouseDown=function(In){var Bn=In.inSelection(),Ln=In.getDocumentPosition();this.mousedownEvent=In;var Pn=this.editor,Zn=In.getButton();if(Zn!==0){var Jn=Pn.getSelectionRange(),Xn=Jn.isEmpty();(Xn||Zn==1)&&Pn.selection.moveToPosition(Ln),Zn==2&&(Pn.textInput.onContextMenu(In.domEvent),Hn.isMozilla||In.preventDefault());return}if(this.mousedownEvent.time=Date.now(),Bn&&!Pn.isFocused()&&(Pn.focus(),this.$focusTimeout&&!this.$clickSelection&&!Pn.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(In);return}return this.captureMouse(In),this.startSelect(Ln,In.domEvent._clicks>1),In.preventDefault()},Dn.prototype.startSelect=function(In,Bn){In=In||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var Ln=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?Ln.selection.selectToPosition(In):Bn||Ln.selection.moveToPosition(In),Bn||this.select(),Ln.setStyle("ace_selecting"),this.setState("select"))},Dn.prototype.select=function(){var In,Bn=this.editor,Ln=Bn.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var Pn=this.$clickSelection.comparePoint(Ln);if(Pn==-1)In=this.$clickSelection.end;else if(Pn==1)In=this.$clickSelection.start;else{var Zn=Nn(this.$clickSelection,Ln);Ln=Zn.cursor,In=Zn.anchor}Bn.selection.setSelectionAnchor(In.row,In.column)}Bn.selection.selectToPosition(Ln),Bn.renderer.scrollCursorIntoView()},Dn.prototype.extendSelectionBy=function(In){var Bn,Ln=this.editor,Pn=Ln.renderer.screenToTextCoordinates(this.x,this.y),Zn=Ln.selection[In](Pn.row,Pn.column);if(this.$clickSelection){var Jn=this.$clickSelection.comparePoint(Zn.start),Xn=this.$clickSelection.comparePoint(Zn.end);if(Jn==-1&&Xn<=0)Bn=this.$clickSelection.end,(Zn.end.row!=Pn.row||Zn.end.column!=Pn.column)&&(Pn=Zn.start);else if(Xn==1&&Jn>=0)Bn=this.$clickSelection.start,(Zn.start.row!=Pn.row||Zn.start.column!=Pn.column)&&(Pn=Zn.end);else if(Jn==-1&&Xn==1)Pn=Zn.end,Bn=Zn.start;else{var mi=Nn(this.$clickSelection,Pn);Pn=mi.cursor,Bn=mi.anchor}Ln.selection.setSelectionAnchor(Bn.row,Bn.column)}Ln.selection.selectToPosition(Pn),Ln.renderer.scrollCursorIntoView()},Dn.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},Dn.prototype.focusWait=function(){var In=Wn(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),Bn=Date.now();(In>Kn||Bn-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},Dn.prototype.onDoubleClick=function(In){var Bn=In.getDocumentPosition(),Ln=this.editor,Pn=Ln.session,Zn=Pn.getBracketRange(Bn);Zn?(Zn.isEmpty()&&(Zn.start.column--,Zn.end.column++),this.setState("select")):(Zn=Ln.selection.getWordRange(Bn.row,Bn.column),this.setState("selectByWords")),this.$clickSelection=Zn,this.select()},Dn.prototype.onTripleClick=function(In){var Bn=In.getDocumentPosition(),Ln=this.editor;this.setState("selectByLines");var Pn=Ln.getSelectionRange();Pn.isMultiLine()&&Pn.contains(Bn.row,Bn.column)?(this.$clickSelection=Ln.selection.getLineRange(Pn.start.row),this.$clickSelection.end=Ln.selection.getLineRange(Pn.end.row).end):this.$clickSelection=Ln.selection.getLineRange(Bn.row),this.select()},Dn.prototype.onQuadClick=function(In){var Bn=this.editor;Bn.selectAll(),this.$clickSelection=Bn.getSelectionRange(),this.setState("selectAll")},Dn.prototype.onMouseWheel=function(In){if(!In.getAccelKey()){In.getShiftKey()&&In.wheelY&&!In.wheelX&&(In.wheelX=In.wheelY,In.wheelY=0);var Bn=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var Ln=this.$lastScroll,Pn=In.domEvent.timeStamp,Zn=Pn-Ln.t,Jn=Zn?In.wheelX/Zn:Ln.vx,Xn=Zn?In.wheelY/Zn:Ln.vy;Zn<Qn&&(Jn=(Jn+Ln.vx)/2,Xn=(Xn+Ln.vy)/2);var mi=Math.abs(Jn/Xn),ci=!1;if(mi>=1&&Bn.renderer.isScrollableBy(In.wheelX*In.speed,0)&&(ci=!0),mi<=1&&Bn.renderer.isScrollableBy(0,In.wheelY*In.speed)&&(ci=!0),ci)Ln.allowed=Pn;else if(Pn-Ln.allowed<Qn){var oi=Math.abs(Jn)<=1.5*Math.abs(Ln.vx)&&Math.abs(Xn)<=1.5*Math.abs(Ln.vy);oi?(ci=!0,Ln.allowed=Pn):Ln.allowed=0}if(Ln.t=Pn,Ln.vx=Jn,Ln.vy=Xn,ci)return Bn.renderer.scrollBy(In.wheelX*In.speed,In.wheelY*In.speed),In.stop()}},Dn}();zn.prototype.selectEnd=zn.prototype.selectByLinesEnd,zn.prototype.selectAllEnd=zn.prototype.selectByLinesEnd,zn.prototype.selectByWordsEnd=zn.prototype.selectByLinesEnd,kn.DefaultHandlers=zn;function Wn(Dn,In,Bn,Ln){return Math.sqrt(Math.pow(Bn-Dn,2)+Math.pow(Ln-In,2))}function Nn(Dn,In){if(Dn.start.row==Dn.end.row)var Bn=2*In.column-Dn.start.column-Dn.end.column;else if(Dn.start.row==Dn.end.row-1&&!Dn.start.column&&!Dn.end.column)var Bn=In.column-4;else var Bn=2*In.row-Dn.start.row-Dn.end.row;return Bn<0?{cursor:Dn.start,anchor:Dn.end}:{cursor:Dn.end,anchor:Dn.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(_n,kn,qn){kn.preventParentScroll=function(Hn){Hn.stopPropagation();var Kn=Hn.currentTarget,Qn=Kn.scrollHeight>Kn.clientHeight;Qn||Hn.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(_n,kn,qn){var Hn=this&&this.__extends||function(){var Pn=function(Zn,Jn){return Pn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Xn,mi){Xn.__proto__=mi}||function(Xn,mi){for(var ci in mi)Object.prototype.hasOwnProperty.call(mi,ci)&&(Xn[ci]=mi[ci])},Pn(Zn,Jn)};return function(Zn,Jn){if(typeof Jn!="function"&&Jn!==null)throw new TypeError("Class extends value "+String(Jn)+" is not a constructor or null");Pn(Zn,Jn);function Xn(){this.constructor=Zn}Zn.prototype=Jn===null?Object.create(Jn):(Xn.prototype=Jn.prototype,new Xn)}}(),Kn=this&&this.__values||function(Pn){var Zn=typeof Symbol=="function"&&Symbol.iterator,Jn=Zn&&Pn[Zn],Xn=0;if(Jn)return Jn.call(Pn);if(Pn&&typeof Pn.length=="number")return{next:function(){return Pn&&Xn>=Pn.length&&(Pn=void 0),{value:Pn&&Pn[Xn++],done:!Pn}}};throw new TypeError(Zn?"Object is not iterable.":"Symbol.iterator is not defined.")},Qn=_n("./lib/dom");_n("./lib/event");var zn=_n("./range").Range,Wn=_n("./lib/scroll").preventParentScroll,Nn="ace_tooltip",Dn=function(){function Pn(Zn){this.isOpen=!1,this.$element=null,this.$parentNode=Zn}return Pn.prototype.$init=function(){return this.$element=Qn.createElement("div"),this.$element.className=Nn,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},Pn.prototype.getElement=function(){return this.$element||this.$init()},Pn.prototype.setText=function(Zn){this.getElement().textContent=Zn},Pn.prototype.setHtml=function(Zn){this.getElement().innerHTML=Zn},Pn.prototype.setPosition=function(Zn,Jn){this.getElement().style.left=Zn+"px",this.getElement().style.top=Jn+"px"},Pn.prototype.setClassName=function(Zn){Qn.addCssClass(this.getElement(),Zn)},Pn.prototype.setTheme=function(Zn){this.$element.className=Nn+" "+(Zn.isDark?"ace_dark ":"")+(Zn.cssClass||"")},Pn.prototype.show=function(Zn,Jn,Xn){Zn!=null&&this.setText(Zn),Jn!=null&&Xn!=null&&this.setPosition(Jn,Xn),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},Pn.prototype.hide=function(Zn){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=Nn,this.isOpen=!1)},Pn.prototype.getHeight=function(){return this.getElement().offsetHeight},Pn.prototype.getWidth=function(){return this.getElement().offsetWidth},Pn.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},Pn}(),In=function(){function Pn(){this.popups=[]}return Pn.prototype.addPopup=function(Zn){this.popups.push(Zn),this.updatePopups()},Pn.prototype.removePopup=function(Zn){var Jn=this.popups.indexOf(Zn);Jn!==-1&&(this.popups.splice(Jn,1),this.updatePopups())},Pn.prototype.updatePopups=function(){var Zn,Jn,Xn,mi;this.popups.sort(function(si,ti){return ti.priority-si.priority});var ci=[];try{for(var oi=Kn(this.popups),ei=oi.next();!ei.done;ei=oi.next()){var fi=ei.value,gi=!0;try{for(var yi=(Xn=void 0,Kn(ci)),pi=yi.next();!pi.done;pi=yi.next()){var $i=pi.value;if(this.doPopupsOverlap($i,fi)){gi=!1;break}}}catch(si){Xn={error:si}}finally{try{pi&&!pi.done&&(mi=yi.return)&&mi.call(yi)}finally{if(Xn)throw Xn.error}}gi?ci.push(fi):fi.hide()}}catch(si){Zn={error:si}}finally{try{ei&&!ei.done&&(Jn=oi.return)&&Jn.call(oi)}finally{if(Zn)throw Zn.error}}},Pn.prototype.doPopupsOverlap=function(Zn,Jn){var Xn=Zn.getElement().getBoundingClientRect(),mi=Jn.getElement().getBoundingClientRect();return Xn.left<mi.right&&Xn.right>mi.left&&Xn.top<mi.bottom&&Xn.bottom>mi.top},Pn}(),Bn=new In;kn.popupManager=Bn,kn.Tooltip=Dn;var Ln=function(Pn){Hn(Zn,Pn);function Zn(Jn){Jn===void 0&&(Jn=document.body);var Xn=Pn.call(this,Jn)||this;Xn.timeout=void 0,Xn.lastT=0,Xn.idleTime=350,Xn.lastEvent=void 0,Xn.onMouseOut=Xn.onMouseOut.bind(Xn),Xn.onMouseMove=Xn.onMouseMove.bind(Xn),Xn.waitForHover=Xn.waitForHover.bind(Xn),Xn.hide=Xn.hide.bind(Xn);var mi=Xn.getElement();return mi.style.whiteSpace="pre-wrap",mi.style.pointerEvents="auto",mi.addEventListener("mouseout",Xn.onMouseOut),mi.tabIndex=-1,mi.addEventListener("blur",(function(){mi.contains(document.activeElement)||this.hide()}).bind(Xn)),mi.addEventListener("wheel",Wn),Xn}return Zn.prototype.addToEditor=function(Jn){Jn.on("mousemove",this.onMouseMove),Jn.on("mousedown",this.hide),Jn.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},Zn.prototype.removeFromEditor=function(Jn){Jn.off("mousemove",this.onMouseMove),Jn.off("mousedown",this.hide),Jn.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},Zn.prototype.onMouseMove=function(Jn,Xn){this.lastEvent=Jn,this.lastT=Date.now();var mi=Xn.$mouseHandler.isMousePressed;if(this.isOpen){var ci=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(ci.row,ci.column)||mi||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||mi||(this.lastEvent=Jn,this.timeout=setTimeout(this.waitForHover,this.idleTime))},Zn.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var Jn=Date.now()-this.lastT;if(this.idleTime-Jn>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-Jn);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},Zn.prototype.isOutsideOfText=function(Jn){var Xn=Jn.editor,mi=Jn.getDocumentPosition(),ci=Xn.session.getLine(mi.row);if(mi.column==ci.length){var oi=Xn.renderer.pixelToScreenCoordinates(Jn.clientX,Jn.clientY),ei=Xn.session.documentToScreenPosition(mi.row,mi.column);if(ei.column!=oi.column||ei.row!=oi.row)return!0}return!1},Zn.prototype.setDataProvider=function(Jn){this.$gatherData=Jn},Zn.prototype.showForRange=function(Jn,Xn,mi,ci){var oi=10;if(!(ci&&ci!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var ei=Jn.renderer;this.isOpen||(Bn.addPopup(this),this.$registerCloseEvents(),this.setTheme(ei.theme)),this.isOpen=!0,this.addMarker(Xn,Jn.session),this.range=zn.fromPoints(Xn.start,Xn.end);var fi=ei.textToScreenCoordinates(Xn.start.row,Xn.start.column),gi=ei.scroller.getBoundingClientRect();fi.pageX<gi.left&&(fi.pageX=gi.left);var yi=this.getElement();yi.innerHTML="",yi.appendChild(mi),yi.style.maxHeight="",yi.style.display="block";var pi=yi.clientHeight,$i=yi.clientWidth,si=window.innerHeight-fi.pageY-ei.lineHeight,ti=!0;fi.pageY-pi<0&&fi.pageY<si&&(ti=!1),yi.style.maxHeight=(ti?fi.pageY:si)-oi+"px",yi.style.top=ti?"":fi.pageY+ei.lineHeight+"px",yi.style.bottom=ti?window.innerHeight-fi.pageY+"px":"",yi.style.left=Math.min(fi.pageX,window.innerWidth-$i-oi)+"px"}},Zn.prototype.addMarker=function(Jn,Xn){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=Xn,this.marker=Xn&&Xn.addMarker(Jn,"ace_highlight-marker","text")},Zn.prototype.hide=function(Jn){!Jn&&document.activeElement==this.getElement()||Jn&&Jn.target&&(Jn.type!="keydown"||Jn.ctrlKey||Jn.metaKey)&&this.$element.contains(Jn.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,Bn.removePopup(this)))},Zn.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},Zn.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},Zn.prototype.onMouseOut=function(Jn){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!Jn.relatedTarget||this.getElement().contains(Jn.relatedTarget)||Jn&&Jn.currentTarget.contains(Jn.relatedTarget)||Jn.relatedTarget.classList.contains("ace_content")||this.hide())},Zn}(Dn);kn.HoverTooltip=Ln}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config","ace/lib/lang"],function(_n,kn,qn){var Hn=this&&this.__extends||function(){var Bn=function(Ln,Pn){return Bn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Zn,Jn){Zn.__proto__=Jn}||function(Zn,Jn){for(var Xn in Jn)Object.prototype.hasOwnProperty.call(Jn,Xn)&&(Zn[Xn]=Jn[Xn])},Bn(Ln,Pn)};return function(Ln,Pn){if(typeof Pn!="function"&&Pn!==null)throw new TypeError("Class extends value "+String(Pn)+" is not a constructor or null");Bn(Ln,Pn);function Zn(){this.constructor=Ln}Ln.prototype=Pn===null?Object.create(Pn):(Zn.prototype=Pn.prototype,new Zn)}}(),Kn=this&&this.__values||function(Bn){var Ln=typeof Symbol=="function"&&Symbol.iterator,Pn=Ln&&Bn[Ln],Zn=0;if(Pn)return Pn.call(Bn);if(Bn&&typeof Bn.length=="number")return{next:function(){return Bn&&Zn>=Bn.length&&(Bn=void 0),{value:Bn&&Bn[Zn++],done:!Bn}}};throw new TypeError(Ln?"Object is not iterable.":"Symbol.iterator is not defined.")},Qn=_n("../lib/dom"),zn=_n("../lib/event"),Wn=_n("../tooltip").Tooltip,Nn=_n("../config").nls;_n("../lib/lang");function Dn(Bn){var Ln=Bn.editor,Pn=Ln.renderer.$gutterLayer,Zn=new In(Ln);Bn.editor.setDefaultHandler("guttermousedown",function(ei){if(!(!Ln.isFocused()||ei.getButton()!=0)){var fi=Pn.getRegion(ei);if(fi!="foldWidgets"){var gi=ei.getDocumentPosition().row,yi=Ln.session.selection;if(ei.getShiftKey())yi.selectTo(gi,0);else{if(ei.domEvent.detail==2)return Ln.selectAll(),ei.preventDefault();Bn.$clickSelection=Ln.selection.getLineRange(gi)}return Bn.setState("selectByLines"),Bn.captureMouse(ei),ei.preventDefault()}}});var Jn,Xn;function mi(){var ei=Xn.getDocumentPosition().row,fi=Ln.session.getLength();if(ei==fi){var gi=Ln.renderer.pixelToScreenCoordinates(0,Xn.y).row,yi=Xn.$pos;if(gi>Ln.session.documentToScreenRow(yi.row,yi.column))return ci()}if(Zn.showTooltip(ei),!!Zn.isOpen)if(Ln.on("mousewheel",ci),Bn.$tooltipFollowsMouse)oi(Xn);else{var pi=Xn.getGutterRow(),$i=Pn.$lines.get(pi);if($i){var si=$i.element.querySelector(".ace_gutter_annotation"),ti=si.getBoundingClientRect(),ai=Zn.getElement().style;ai.left=ti.right+"px",ai.top=ti.bottom+"px"}else oi(Xn)}}function ci(){Jn&&(Jn=clearTimeout(Jn)),Zn.isOpen&&(Zn.hideTooltip(),Ln.off("mousewheel",ci))}function oi(ei){Zn.setPosition(ei.x,ei.y)}Bn.editor.setDefaultHandler("guttermousemove",function(ei){var fi=ei.domEvent.target||ei.domEvent.srcElement;if(Qn.hasCssClass(fi,"ace_fold-widget"))return ci();Zn.isOpen&&Bn.$tooltipFollowsMouse&&oi(ei),Xn=ei,!Jn&&(Jn=setTimeout(function(){Jn=null,Xn&&!Bn.isMousePressed?mi():ci()},50))}),zn.addListener(Ln.renderer.$gutter,"mouseout",function(ei){Xn=null,!(!Zn.isOpen||Jn)&&(Jn=setTimeout(function(){Jn=null,ci()},50))},Ln),Ln.on("changeSession",ci),Ln.on("input",ci)}kn.GutterHandler=Dn;var In=function(Bn){Hn(Ln,Bn);function Ln(Pn){var Zn=Bn.call(this,Pn.container)||this;return Zn.editor=Pn,Zn}return Ln.prototype.setPosition=function(Pn,Zn){var Jn=window.innerWidth||document.documentElement.clientWidth,Xn=window.innerHeight||document.documentElement.clientHeight,mi=this.getWidth(),ci=this.getHeight();Pn+=15,Zn+=15,Pn+mi>Jn&&(Pn-=Pn+mi-Jn),Zn+ci>Xn&&(Zn-=20+ci),Wn.prototype.setPosition.call(this,Pn,Zn)},Object.defineProperty(Ln,"annotationLabels",{get:function(){return{error:{singular:Nn("gutter-tooltip.aria-label.error.singular","error"),plural:Nn("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:Nn("gutter-tooltip.aria-label.security.singular","security finding"),plural:Nn("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:Nn("gutter-tooltip.aria-label.warning.singular","warning"),plural:Nn("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:Nn("gutter-tooltip.aria-label.info.singular","information message"),plural:Nn("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:Nn("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:Nn("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),Ln.prototype.showTooltip=function(Pn){var Zn,Jn=this.editor.renderer.$gutterLayer,Xn=Jn.$annotations[Pn],mi;Xn?mi={displayText:Array.from(Xn.displayText),type:Array.from(Xn.type)}:mi={displayText:[],type:[]};var ci=Jn.session.getFoldLine(Pn);if(ci&&Jn.$showFoldedAnnotations){for(var oi={error:[],security:[],warning:[],info:[],hint:[]},ei={error:1,security:2,warning:3,info:4,hint:5},fi,gi=Pn+1;gi<=ci.end.row;gi++)if(Jn.$annotations[gi])for(var yi=0;yi<Jn.$annotations[gi].text.length;yi++){var pi=Jn.$annotations[gi].type[yi];oi[pi].push(Jn.$annotations[gi].text[yi]),(!fi||ei[pi]<ei[fi])&&(fi=pi)}if(["error","security","warning"].includes(fi)){var $i="".concat(Ln.annotationsToSummaryString(oi)," in folded code.");mi.displayText.push($i),mi.type.push(fi+"_fold")}}if(mi.displayText.length===0)return this.hide();for(var si={error:[],security:[],warning:[],info:[],hint:[]},ti=Jn.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",gi=0;gi<mi.displayText.length;gi++){var ai=Qn.createElement("span"),vi=Qn.createElement("span");(Zn=vi.classList).add.apply(Zn,["ace_".concat(mi.type[gi]),ti]),vi.setAttribute("aria-label","".concat(Ln.annotationLabels[mi.type[gi].replace("_fold","")].singular)),vi.setAttribute("role","img"),vi.appendChild(Qn.createTextNode(" ")),ai.appendChild(vi),ai.appendChild(Qn.createTextNode(mi.displayText[gi])),ai.appendChild(Qn.createElement("br")),si[mi.type[gi].replace("_fold","")].push(ai)}var wi=this.getElement();Qn.removeChildren(wi),si.error.forEach(function(xi){return wi.appendChild(xi)}),si.security.forEach(function(xi){return wi.appendChild(xi)}),si.warning.forEach(function(xi){return wi.appendChild(xi)}),si.info.forEach(function(xi){return wi.appendChild(xi)}),si.hint.forEach(function(xi){return wi.appendChild(xi)}),wi.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},Ln.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},Ln.annotationsToSummaryString=function(Pn){var Zn,Jn,Xn=[],mi=["error","security","warning","info","hint"];try{for(var ci=Kn(mi),oi=ci.next();!oi.done;oi=ci.next()){var ei=oi.value;if(Pn[ei].length){var fi=Pn[ei].length===1?Ln.annotationLabels[ei].singular:Ln.annotationLabels[ei].plural;Xn.push("".concat(Pn[ei].length," ").concat(fi))}}}catch(gi){Zn={error:gi}}finally{try{oi&&!oi.done&&(Jn=ci.return)&&Jn.call(ci)}finally{if(Zn)throw Zn.error}}return Xn.join(", ")},Ln}(Wn);kn.GutterTooltip=In}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(_n,kn,qn){var Hn=_n("../lib/event"),Kn=_n("../lib/useragent"),Qn=function(){function zn(Wn,Nn){this.speed,this.wheelX,this.wheelY,this.domEvent=Wn,this.editor=Nn,this.x=this.clientX=Wn.clientX,this.y=this.clientY=Wn.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return zn.prototype.stopPropagation=function(){Hn.stopPropagation(this.domEvent),this.propagationStopped=!0},zn.prototype.preventDefault=function(){Hn.preventDefault(this.domEvent),this.defaultPrevented=!0},zn.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},zn.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},zn.prototype.getGutterRow=function(){var Wn=this.getDocumentPosition().row,Nn=this.editor.session.documentToScreenRow(Wn,0),Dn=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return Nn-Dn},zn.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var Wn=this.editor,Nn=Wn.getSelectionRange();if(Nn.isEmpty())this.$inSelection=!1;else{var Dn=this.getDocumentPosition();this.$inSelection=Nn.contains(Dn.row,Dn.column)}return this.$inSelection},zn.prototype.getButton=function(){return Hn.getButton(this.domEvent)},zn.prototype.getShiftKey=function(){return this.domEvent.shiftKey},zn.prototype.getAccelKey=function(){return Kn.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},zn}();kn.MouseEvent=Qn}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(_n,kn,qn){var Hn=_n("../lib/dom"),Kn=_n("../lib/event"),Qn=_n("../lib/useragent"),zn=200,Wn=200,Nn=5;function Dn(Bn){var Ln=Bn.editor,Pn=Hn.createElement("div");Pn.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",Pn.textContent=" ";var Zn=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];Zn.forEach(function(Ii){Bn[Ii]=this[Ii]},this),Ln.on("mousedown",this.onMouseDown.bind(Bn));var Jn=Ln.container,Xn,mi,ci,oi,ei,fi,gi=0,yi,pi,$i,si,ti;this.onDragStart=function(Ii){if(this.cancelDrag||!Jn.draggable){var Vi=this;return setTimeout(function(){Vi.startSelect(),Vi.captureMouse(Ii)},0),Ii.preventDefault()}ei=Ln.getSelectionRange();var Gi=Ii.dataTransfer;Gi.effectAllowed=Ln.getReadOnly()?"copy":"copyMove",Ln.container.appendChild(Pn),Gi.setDragImage&&Gi.setDragImage(Pn,0,0),setTimeout(function(){Ln.container.removeChild(Pn)}),Gi.clearData(),Gi.setData("Text",Ln.session.getTextRange()),pi=!0,this.setState("drag")},this.onDragEnd=function(Ii){if(Jn.draggable=!1,pi=!1,this.setState(null),!Ln.getReadOnly()){var Vi=Ii.dataTransfer.dropEffect;!yi&&Vi=="move"&&Ln.session.remove(Ln.getSelectionRange()),Ln.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(Ii){if(!(Ln.getReadOnly()||!Ni(Ii.dataTransfer)))return mi=Ii.clientX,ci=Ii.clientY,Xn||xi(),gi++,Ii.dataTransfer.dropEffect=yi=Fi(Ii),Kn.preventDefault(Ii)},this.onDragOver=function(Ii){if(!(Ln.getReadOnly()||!Ni(Ii.dataTransfer)))return mi=Ii.clientX,ci=Ii.clientY,Xn||(xi(),gi++),Ei!==null&&(Ei=null),Ii.dataTransfer.dropEffect=yi=Fi(Ii),Kn.preventDefault(Ii)},this.onDragLeave=function(Ii){if(gi--,gi<=0&&Xn)return Si(),yi=null,Kn.preventDefault(Ii)},this.onDrop=function(Ii){if(fi){var Vi=Ii.dataTransfer;if(pi)switch(yi){case"move":ei.contains(fi.row,fi.column)?ei={start:fi,end:fi}:ei=Ln.moveText(ei,fi);break;case"copy":ei=Ln.moveText(ei,fi,!0);break}else{var Gi=Vi.getData("Text");ei={start:fi,end:Ln.session.insert(fi,Gi)},Ln.focus(),yi=null}return Si(),Kn.preventDefault(Ii)}},Kn.addListener(Jn,"dragstart",this.onDragStart.bind(Bn),Ln),Kn.addListener(Jn,"dragend",this.onDragEnd.bind(Bn),Ln),Kn.addListener(Jn,"dragenter",this.onDragEnter.bind(Bn),Ln),Kn.addListener(Jn,"dragover",this.onDragOver.bind(Bn),Ln),Kn.addListener(Jn,"dragleave",this.onDragLeave.bind(Bn),Ln),Kn.addListener(Jn,"drop",this.onDrop.bind(Bn),Ln);function ai(Ii,Vi){var Gi=Date.now(),Pi=!Vi||Ii.row!=Vi.row,Zi=!Vi||Ii.column!=Vi.column;if(!si||Pi||Zi)Ln.moveCursorToPosition(Ii),si=Gi,ti={x:mi,y:ci};else{var lr=In(ti.x,ti.y,mi,ci);lr>Nn?si=null:Gi-si>=Wn&&(Ln.renderer.scrollCursorIntoView(),si=null)}}function vi(Ii,Vi){var Gi=Date.now(),Pi=Ln.renderer.layerConfig.lineHeight,Zi=Ln.renderer.layerConfig.characterWidth,lr=Ln.renderer.scroller.getBoundingClientRect(),gr={x:{left:mi-lr.left,right:lr.right-mi},y:{top:ci-lr.top,bottom:lr.bottom-ci}},or=Math.min(gr.x.left,gr.x.right),yr=Math.min(gr.y.top,gr.y.bottom),io={row:Ii.row,column:Ii.column};or/Zi<=2&&(io.column+=gr.x.left<gr.x.right?-3:2),yr/Pi<=1&&(io.row+=gr.y.top<gr.y.bottom?-1:1);var Po=Ii.row!=io.row,lo=Ii.column!=io.column,So=!Vi||Ii.row!=Vi.row;Po||lo&&!So?$i?Gi-$i>=zn&&Ln.renderer.scrollCursorIntoView(io):$i=Gi:$i=null}function wi(){var Ii=fi;fi=Ln.renderer.screenToTextCoordinates(mi,ci),ai(fi,Ii),vi(fi,Ii)}function xi(){ei=Ln.selection.toOrientedRange(),Xn=Ln.session.addMarker(ei,"ace_selection",Ln.getSelectionStyle()),Ln.clearSelection(),Ln.isFocused()&&Ln.renderer.$cursorLayer.setBlinking(!1),clearInterval(oi),wi(),oi=setInterval(wi,20),gi=0,Kn.addListener(document,"mousemove",Ri)}function Si(){clearInterval(oi),Ln.session.removeMarker(Xn),Xn=null,Ln.selection.fromOrientedRange(ei),Ln.isFocused()&&!pi&&Ln.$resetCursorStyle(),ei=null,fi=null,gi=0,$i=null,si=null,Kn.removeListener(document,"mousemove",Ri)}var Ei=null;function Ri(){Ei==null&&(Ei=setTimeout(function(){Ei!=null&&Xn&&Si()},20))}function Ni(Ii){var Vi=Ii.types;return!Vi||Array.prototype.some.call(Vi,function(Gi){return Gi=="text/plain"||Gi=="Text"})}function Fi(Ii){var Vi=["copy","copymove","all","uninitialized"],Gi=["move","copymove","linkmove","all","uninitialized"],Pi=Qn.isMac?Ii.altKey:Ii.ctrlKey,Zi="uninitialized";try{Zi=Ii.dataTransfer.effectAllowed.toLowerCase()}catch{}var lr="none";return Pi&&Vi.indexOf(Zi)>=0?lr="copy":Gi.indexOf(Zi)>=0?lr="move":Vi.indexOf(Zi)>=0&&(lr="copy"),lr}}(function(){this.dragWait=function(){var Bn=Date.now()-this.mousedownEvent.time;Bn>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var Bn=this.editor.container;Bn.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(Bn){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var Bn=this.editor,Ln=Bn.container;Ln.draggable=!0,Bn.renderer.$cursorLayer.setBlinking(!1),Bn.setStyle("ace_dragging");var Pn=Qn.isWin?"default":"move";Bn.renderer.setCursorStyle(Pn),this.setState("dragReady")},this.onMouseDrag=function(Bn){var Ln=this.editor.container;if(Qn.isIE&&this.state=="dragReady"){var Pn=In(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);Pn>3&&Ln.dragDrop()}if(this.state==="dragWait"){var Pn=In(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);Pn>0&&(Ln.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(Bn){if(this.$dragEnabled){this.mousedownEvent=Bn;var Ln=this.editor,Pn=Bn.inSelection(),Zn=Bn.getButton(),Jn=Bn.domEvent.detail||1;if(Jn===1&&Zn===0&&Pn){if(Bn.editor.inMultiSelectMode&&(Bn.getAccelKey()||Bn.getShiftKey()))return;this.mousedownEvent.time=Date.now();var Xn=Bn.domEvent.target||Bn.domEvent.srcElement;if("unselectable"in Xn&&(Xn.unselectable="on"),Ln.getDragDelay()){if(Qn.isWebKit){this.cancelDrag=!0;var mi=Ln.container;mi.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(Bn,this.onMouseDrag.bind(this)),Bn.defaultPrevented=!0}}}}).call(Dn.prototype);function In(Bn,Ln,Pn,Zn){return Math.sqrt(Math.pow(Pn-Bn,2)+Math.pow(Zn-Ln,2))}kn.DragdropHandler=Dn}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(_n,kn,qn){var Hn=_n("./mouse_event").MouseEvent,Kn=_n("../lib/event"),Qn=_n("../lib/dom");kn.addTouchListeners=function(zn,Wn){var Nn="scroll",Dn,In,Bn,Ln,Pn,Zn,Jn=0,Xn,mi=0,ci=0,oi=0,ei,fi;function gi(){var ai=window.navigator&&window.navigator.clipboard,vi=!1,wi=function(){var Ei=Wn.getCopyText(),Ri=Wn.session.getUndoManager().hasUndo();fi.replaceChild(Qn.buildDom(vi?["span",!Ei&&xi("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],Ei&&xi("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],Ei&&xi("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],ai&&xi("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],Ri&&xi("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],xi("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],xi("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),fi.firstChild)},xi=function(Ei){return Wn.commands.canExecute(Ei,Wn)},Si=function(Ei){var Ri=Ei.target.getAttribute("action");if(Ri=="more"||!vi)return vi=!vi,wi();Ri=="paste"?ai.readText().then(function(Ni){Wn.execCommand(Ri,Ni)}):Ri&&((Ri=="cut"||Ri=="copy")&&(ai?ai.writeText(Wn.getCopyText()):document.execCommand("copy")),Wn.execCommand(Ri)),fi.firstChild.style.display="none",vi=!1,Ri!="openCommandPalette"&&Wn.focus()};fi=Qn.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(Ei){Nn="menu",Ei.stopPropagation(),Ei.preventDefault(),Wn.textInput.focus()},ontouchend:function(Ei){Ei.stopPropagation(),Ei.preventDefault(),Si(Ei)},onclick:Si},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],Wn.container)}function yi(){if(!Wn.getOption("enableMobileMenu")){fi&&pi();return}fi||gi();var ai=Wn.selection.cursor,vi=Wn.renderer.textToScreenCoordinates(ai.row,ai.column),wi=Wn.renderer.textToScreenCoordinates(0,0).pageX,xi=Wn.renderer.scrollLeft,Si=Wn.container.getBoundingClientRect();fi.style.top=vi.pageY-Si.top-3+"px",vi.pageX-Si.left<Si.width-70?(fi.style.left="",fi.style.right="10px"):(fi.style.right="",fi.style.left=wi+xi-Si.left+"px"),fi.style.display="",fi.firstChild.style.display="none",Wn.on("input",pi)}function pi(ai){fi&&(fi.style.display="none"),Wn.off("input",pi)}function $i(){Pn=null,clearTimeout(Pn);var ai=Wn.selection.getRange(),vi=ai.contains(Xn.row,Xn.column);(ai.isEmpty()||!vi)&&(Wn.selection.moveToPosition(Xn),Wn.selection.selectWord()),Nn="wait",yi()}function si(){Pn=null,clearTimeout(Pn),Wn.selection.moveToPosition(Xn);var ai=mi>=2?Wn.selection.getLineRange(Xn.row):Wn.session.getBracketRange(Xn);ai&&!ai.isEmpty()?Wn.selection.setRange(ai):Wn.selection.selectWord(),Nn="wait"}Kn.addListener(zn,"contextmenu",function(ai){if(ei){var vi=Wn.textInput.getElement();vi.focus()}},Wn),Kn.addListener(zn,"touchstart",function(ai){var vi=ai.touches;if(Pn||vi.length>1){clearTimeout(Pn),Pn=null,Bn=-1,Nn="zoom";return}ei=Wn.$mouseHandler.isMousePressed=!0;var wi=Wn.renderer.layerConfig.lineHeight,xi=Wn.renderer.layerConfig.lineHeight,Si=ai.timeStamp;Ln=Si;var Ei=vi[0],Ri=Ei.clientX,Ni=Ei.clientY;Math.abs(Dn-Ri)+Math.abs(In-Ni)>wi&&(Bn=-1),Dn=ai.clientX=Ri,In=ai.clientY=Ni,ci=oi=0;var Fi=new Hn(ai,Wn);if(Xn=Fi.getDocumentPosition(),Si-Bn<500&&vi.length==1&&!Jn)mi++,ai.preventDefault(),ai.button=0,si();else{mi=0;var Ii=Wn.selection.cursor,Vi=Wn.selection.isEmpty()?Ii:Wn.selection.anchor,Gi=Wn.renderer.$cursorLayer.getPixelPosition(Ii,!0),Pi=Wn.renderer.$cursorLayer.getPixelPosition(Vi,!0),Zi=Wn.renderer.scroller.getBoundingClientRect(),lr=Wn.renderer.layerConfig.offset,gr=Wn.renderer.scrollLeft,or=function(Po,lo){return Po=Po/xi,lo=lo/wi-.75,Po*Po+lo*lo};if(ai.clientX<Zi.left){Nn="zoom";return}var yr=or(ai.clientX-Zi.left-Gi.left+gr,ai.clientY-Zi.top-Gi.top+lr),io=or(ai.clientX-Zi.left-Pi.left+gr,ai.clientY-Zi.top-Pi.top+lr);yr<3.5&&io<3.5&&(Nn=yr>io?"cursor":"anchor"),io<3.5?Nn="anchor":yr<3.5?Nn="cursor":Nn="scroll",Pn=setTimeout($i,450)}Bn=Si},Wn),Kn.addListener(zn,"touchend",function(ai){ei=Wn.$mouseHandler.isMousePressed=!1,Zn&&clearInterval(Zn),Nn=="zoom"?(Nn="",Jn=0):Pn?(Wn.selection.moveToPosition(Xn),Jn=0,yi()):Nn=="scroll"?(ti(),pi()):yi(),clearTimeout(Pn),Pn=null},Wn),Kn.addListener(zn,"touchmove",function(ai){Pn&&(clearTimeout(Pn),Pn=null);var vi=ai.touches;if(!(vi.length>1||Nn=="zoom")){var wi=vi[0],xi=Dn-wi.clientX,Si=In-wi.clientY;if(Nn=="wait")if(xi*xi+Si*Si>4)Nn="cursor";else return ai.preventDefault();Dn=wi.clientX,In=wi.clientY,ai.clientX=wi.clientX,ai.clientY=wi.clientY;var Ei=ai.timeStamp,Ri=Ei-Ln;if(Ln=Ei,Nn=="scroll"){var Ni=new Hn(ai,Wn);Ni.speed=1,Ni.wheelX=xi,Ni.wheelY=Si,10*Math.abs(xi)<Math.abs(Si)&&(xi=0),10*Math.abs(Si)<Math.abs(xi)&&(Si=0),Ri!=0&&(ci=xi/Ri,oi=Si/Ri),Wn._emit("mousewheel",Ni),Ni.propagationStopped||(ci=oi=0)}else{var Fi=new Hn(ai,Wn),Ii=Fi.getDocumentPosition();Nn=="cursor"?Wn.selection.moveCursorToPosition(Ii):Nn=="anchor"&&Wn.selection.setSelectionAnchor(Ii.row,Ii.column),Wn.renderer.scrollCursorIntoView(Ii),ai.preventDefault()}}},Wn);function ti(){Jn+=60,Zn=setInterval(function(){Jn--<=0&&(clearInterval(Zn),Zn=null),Math.abs(ci)<.01&&(ci=0),Math.abs(oi)<.01&&(oi=0),Jn<20&&(ci=.9*ci),Jn<20&&(oi=.9*oi);var ai=Wn.session.getScrollTop();Wn.renderer.scrollBy(10*ci,10*oi),ai==Wn.session.getScrollTop()&&(Jn=0)},10)}}}),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(_n,kn,qn){var Hn=_n("../lib/event"),Kn=_n("../lib/useragent"),Qn=_n("./default_handlers").DefaultHandlers,zn=_n("./default_gutter_handler").GutterHandler,Wn=_n("./mouse_event").MouseEvent,Nn=_n("./dragdrop_handler").DragdropHandler,Dn=_n("./touch_handler").addTouchListeners,In=_n("../config"),Bn=function(){function Ln(Pn){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var Zn=this;this.editor=Pn,new Qn(this),new zn(this),new Nn(this);var Jn=function(ci){var oi=!document.hasFocus||!document.hasFocus()||!Pn.isFocused()&&document.activeElement==(Pn.textInput&&Pn.textInput.getElement());oi&&window.focus(),Pn.focus(),setTimeout(function(){Pn.isFocused()||Pn.focus()})},Xn=Pn.renderer.getMouseEventTarget();Hn.addListener(Xn,"click",this.onMouseEvent.bind(this,"click"),Pn),Hn.addListener(Xn,"mousemove",this.onMouseMove.bind(this,"mousemove"),Pn),Hn.addMultiMouseDownListener([Xn,Pn.renderer.scrollBarV&&Pn.renderer.scrollBarV.inner,Pn.renderer.scrollBarH&&Pn.renderer.scrollBarH.inner,Pn.textInput&&Pn.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",Pn),Hn.addMouseWheelListener(Pn.container,this.onMouseWheel.bind(this,"mousewheel"),Pn),Dn(Pn.container,Pn);var mi=Pn.renderer.$gutter;Hn.addListener(mi,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),Pn),Hn.addListener(mi,"click",this.onMouseEvent.bind(this,"gutterclick"),Pn),Hn.addListener(mi,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),Pn),Hn.addListener(mi,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),Pn),Hn.addListener(Xn,"mousedown",Jn,Pn),Hn.addListener(mi,"mousedown",Jn,Pn),Kn.isIE&&Pn.renderer.scrollBarV&&(Hn.addListener(Pn.renderer.scrollBarV.element,"mousedown",Jn,Pn),Hn.addListener(Pn.renderer.scrollBarH.element,"mousedown",Jn,Pn)),Pn.on("mousemove",function(ci){if(!(Zn.state||Zn.$dragDelay||!Zn.$dragEnabled)){var oi=Pn.renderer.screenToTextCoordinates(ci.x,ci.y),ei=Pn.session.selection.getRange(),fi=Pn.renderer;!ei.isEmpty()&&ei.insideStart(oi.row,oi.column)?fi.setCursorStyle("default"):fi.setCursorStyle("")}},Pn)}return Ln.prototype.onMouseEvent=function(Pn,Zn){this.editor.session&&this.editor._emit(Pn,new Wn(Zn,this.editor))},Ln.prototype.onMouseMove=function(Pn,Zn){var Jn=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!Jn||!Jn.length||this.editor._emit(Pn,new Wn(Zn,this.editor))},Ln.prototype.onMouseWheel=function(Pn,Zn){var Jn=new Wn(Zn,this.editor);Jn.speed=this.$scrollSpeed*2,Jn.wheelX=Zn.wheelX,Jn.wheelY=Zn.wheelY,this.editor._emit(Pn,Jn)},Ln.prototype.setState=function(Pn){this.state=Pn},Ln.prototype.captureMouse=function(Pn,Zn){this.x=Pn.x,this.y=Pn.y,this.isMousePressed=!0;var Jn=this.editor,Xn=this.editor.renderer;Xn.$isMousePressed=!0;var mi=this,ci=function(yi){if(yi){if(Kn.isWebKit&&!yi.which&&mi.releaseMouse)return mi.releaseMouse();mi.x=yi.clientX,mi.y=yi.clientY,Zn&&Zn(yi),mi.mouseEvent=new Wn(yi,mi.editor),mi.$mouseMoved=!0}},oi=function(yi){Jn.off("beforeEndOperation",fi),clearInterval(gi),Jn.session&&ei(),mi[mi.state+"End"]&&mi[mi.state+"End"](yi),mi.state="",mi.isMousePressed=Xn.$isMousePressed=!1,Xn.$keepTextAreaAtCursor&&Xn.$moveTextAreaToCursor(),mi.$onCaptureMouseMove=mi.releaseMouse=null,yi&&mi.onMouseEvent("mouseup",yi),Jn.endOperation()},ei=function(){mi[mi.state]&&mi[mi.state](),mi.$mouseMoved=!1};if(Kn.isOldIE&&Pn.domEvent.type=="dblclick")return setTimeout(function(){oi(Pn)});var fi=function(yi){mi.releaseMouse&&Jn.curOp.command.name&&Jn.curOp.selectionChanged&&(mi[mi.state+"End"]&&mi[mi.state+"End"](),mi.state="",mi.releaseMouse())};Jn.on("beforeEndOperation",fi),Jn.startOperation({command:{name:"mouse"}}),mi.$onCaptureMouseMove=ci,mi.releaseMouse=Hn.capture(this.editor.container,ci,oi);var gi=setInterval(ei,20)},Ln.prototype.cancelContextMenu=function(){var Pn=(function(Zn){Zn&&Zn.domEvent&&Zn.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",Pn),Zn&&Zn.domEvent&&Hn.stopEvent(Zn.domEvent))}).bind(this);setTimeout(Pn,10),this.editor.on("nativecontextmenu",Pn)},Ln.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},Ln}();Bn.prototype.releaseMouse=null,In.defineOptions(Bn.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:Kn.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),kn.MouseHandler=Bn}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(_n,kn,qn){var Hn=_n("../lib/dom"),Kn=function(){function Qn(zn){zn.on("click",function(Wn){var Nn=Wn.getDocumentPosition(),Dn=zn.session,In=Dn.getFoldAt(Nn.row,Nn.column,1);In&&(Wn.getAccelKey()?Dn.removeFold(In):Dn.expandFold(In),Wn.stop());var Bn=Wn.domEvent&&Wn.domEvent.target;Bn&&Hn.hasCssClass(Bn,"ace_inline_button")&&Hn.hasCssClass(Bn,"ace_toggle_wrap")&&(Dn.setOption("wrap",!Dn.getUseWrapMode()),zn.renderer.scrollCursorIntoView())}),zn.on("gutterclick",function(Wn){var Nn=zn.renderer.$gutterLayer.getRegion(Wn);if(Nn=="foldWidgets"){var Dn=Wn.getDocumentPosition().row,In=zn.session;In.foldWidgets&&In.foldWidgets[Dn]&&zn.session.onFoldWidgetClick(Dn,Wn),zn.isFocused()||zn.focus(),Wn.stop()}}),zn.on("gutterdblclick",function(Wn){var Nn=zn.renderer.$gutterLayer.getRegion(Wn);if(Nn=="foldWidgets"){var Dn=Wn.getDocumentPosition().row,In=zn.session,Bn=In.getParentFoldRangeData(Dn,!0),Ln=Bn.range||Bn.firstRange;if(Ln){Dn=Ln.start.row;var Pn=In.getFoldAt(Dn,In.getLine(Dn).length,1);Pn?In.removeFold(Pn):(In.addFold("...",Ln),zn.renderer.scrollCursorIntoView({row:Ln.start.row,column:0}))}Wn.stop()}})}return Qn}();kn.FoldHandler=Kn}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(_n,kn,qn){var Hn=_n("../lib/keys"),Kn=_n("../lib/event"),Qn=function(){function zn(Wn){this.$editor=Wn,this.$data={editor:Wn},this.$handlers=[],this.setDefaultHandler(Wn.commands)}return zn.prototype.setDefaultHandler=function(Wn){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=Wn,this.addKeyboardHandler(Wn,0)},zn.prototype.setKeyboardHandler=function(Wn){var Nn=this.$handlers;if(Nn[Nn.length-1]!=Wn){for(;Nn[Nn.length-1]&&Nn[Nn.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(Nn[Nn.length-1]);this.addKeyboardHandler(Wn,1)}},zn.prototype.addKeyboardHandler=function(Wn,Nn){if(Wn){typeof Wn=="function"&&!Wn.handleKeyboard&&(Wn.handleKeyboard=Wn);var Dn=this.$handlers.indexOf(Wn);Dn!=-1&&this.$handlers.splice(Dn,1),Nn==null?this.$handlers.push(Wn):this.$handlers.splice(Nn,0,Wn),Dn==-1&&Wn.attach&&Wn.attach(this.$editor)}},zn.prototype.removeKeyboardHandler=function(Wn){var Nn=this.$handlers.indexOf(Wn);return Nn==-1?!1:(this.$handlers.splice(Nn,1),Wn.detach&&Wn.detach(this.$editor),!0)},zn.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},zn.prototype.getStatusText=function(){var Wn=this.$data,Nn=Wn.editor;return this.$handlers.map(function(Dn){return Dn.getStatusText&&Dn.getStatusText(Nn,Wn)||""}).filter(Boolean).join(" ")},zn.prototype.$callKeyboardHandlers=function(Wn,Nn,Dn,In){for(var Bn,Ln=!1,Pn=this.$editor.commands,Zn=this.$handlers.length;Zn--&&(Bn=this.$handlers[Zn].handleKeyboard(this.$data,Wn,Nn,Dn,In),!(!(!Bn||!Bn.command)&&(Bn.command=="null"?Ln=!0:Ln=Pn.exec(Bn.command,this.$editor,Bn.args,In),Ln&&In&&Wn!=-1&&Bn.passEvent!=!0&&Bn.command.passEvent!=!0&&Kn.stopEvent(In),Ln))););return!Ln&&Wn==-1&&(Bn={command:"insertstring"},Ln=Pn.exec("insertstring",this.$editor,Nn)),Ln&&this.$editor._signal&&this.$editor._signal("keyboardActivity",Bn),Ln},zn.prototype.onCommandKey=function(Wn,Nn,Dn){var In=Hn.keyCodeToString(Dn);return this.$callKeyboardHandlers(Nn,In,Dn,Wn)},zn.prototype.onTextInput=function(Wn){return this.$callKeyboardHandlers(-1,Wn)},zn}();kn.KeyBinding=Qn}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(_n,kn,qn){var Hn=0,Kn=0,Qn=!1,zn=!1,Wn=!1,Nn=[[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]],Dn=[[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]],In=0,Bn=1,Ln=0,Pn=1,Zn=2,Jn=3,Xn=4,mi=5,ci=6,oi=7,ei=8,fi=9,gi=10,yi=11,pi=12,$i=13,si=14,ti=15,ai=16,vi=17,wi=18,xi=[wi,wi,wi,wi,wi,wi,wi,wi,wi,ci,mi,ci,ei,mi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,mi,mi,mi,ci,ei,Xn,Xn,yi,yi,yi,Xn,Xn,Xn,Xn,Xn,gi,fi,gi,fi,fi,Zn,Zn,Zn,Zn,Zn,Zn,Zn,Zn,Zn,Zn,fi,Xn,Xn,Xn,Xn,Xn,Xn,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Xn,Xn,Xn,Xn,Xn,Xn,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Ln,Xn,Xn,Xn,Xn,wi,wi,wi,wi,wi,wi,mi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,wi,fi,Xn,yi,yi,yi,yi,Xn,Xn,Xn,Xn,Ln,Xn,Xn,wi,Xn,Xn,yi,yi,Zn,Zn,Xn,Ln,Xn,Xn,Xn,Zn,Ln,Xn,Xn,Xn,Xn,Xn],Si=[ei,ei,ei,ei,ei,ei,ei,ei,ei,ei,ei,wi,wi,wi,Ln,Pn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,ei,mi,$i,si,ti,ai,vi,fi,yi,yi,yi,yi,yi,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,fi,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,Xn,ei];function Ei(Ii,Vi,Gi,Pi){var Zi=Hn?Dn:Nn,lr=null,gr=null,or=null,yr=0,io=null,Po=null,lo=-1,So=null,Xo=null,Do=[];if(!Pi)for(So=0,Pi=[];So<Gi;So++)Pi[So]=Fi(Ii[So]);for(Kn=Hn,Qn=!1,zn=!1,Wn=!1,Xo=0;Xo<Gi;Xo++){if(lr=yr,Do[Xo]=gr=Ni(Ii,Pi,Do,Xo),yr=Zi[lr][gr],io=yr&240,yr&=15,Vi[Xo]=or=Zi[yr][5],io>0)if(io==16){for(So=lo;So<Xo;So++)Vi[So]=1;lo=-1}else lo=-1;if(Po=Zi[yr][6],Po)lo==-1&&(lo=Xo);else if(lo>-1){for(So=lo;So<Xo;So++)Vi[So]=or;lo=-1}Pi[Xo]==mi&&(Vi[Xo]=0),Kn|=or}if(Wn){for(So=0;So<Gi;So++)if(Pi[So]==ci){Vi[So]=Hn;for(var Uo=So-1;Uo>=0&&Pi[Uo]==ei;Uo--)Vi[Uo]=Hn}}}function Ri(Ii,Vi,Gi){if(!(Kn<Ii)){if(Ii==1&&Hn==Bn&&!zn){Gi.reverse();return}for(var Pi=Gi.length,Zi=0,lr,gr,or,yr;Zi<Pi;){if(Vi[Zi]>=Ii){for(lr=Zi+1;lr<Pi&&Vi[lr]>=Ii;)lr++;for(gr=Zi,or=lr-1;gr<or;gr++,or--)yr=Gi[gr],Gi[gr]=Gi[or],Gi[or]=yr;Zi=lr}Zi++}}}function Ni(Ii,Vi,Gi,Pi){var Zi=Vi[Pi],lr,gr,or,yr;switch(Zi){case Ln:case Pn:Qn=!1;case Xn:case Jn:return Zi;case Zn:return Qn?Jn:Zn;case oi:return Qn=!0,Pn;case ei:return Xn;case fi:return Pi<1||Pi+1>=Vi.length||(lr=Gi[Pi-1])!=Zn&&lr!=Jn||(gr=Vi[Pi+1])!=Zn&&gr!=Jn?Xn:(Qn&&(gr=Jn),gr==lr?gr:Xn);case gi:return lr=Pi>0?Gi[Pi-1]:mi,lr==Zn&&Pi+1<Vi.length&&Vi[Pi+1]==Zn?Zn:Xn;case yi:if(Pi>0&&Gi[Pi-1]==Zn)return Zn;if(Qn)return Xn;for(yr=Pi+1,or=Vi.length;yr<or&&Vi[yr]==yi;)yr++;return yr<or&&Vi[yr]==Zn?Zn:Xn;case pi:for(or=Vi.length,yr=Pi+1;yr<or&&Vi[yr]==pi;)yr++;if(yr<or){var io=Ii[Pi],Po=io>=1425&&io<=2303||io==64286;if(lr=Vi[yr],Po&&(lr==Pn||lr==oi))return Pn}return Pi<1||(lr=Vi[Pi-1])==mi?Xn:Gi[Pi-1];case mi:return Qn=!1,zn=!0,Hn;case ci:return Wn=!0,Xn;case $i:case si:case ai:case vi:case ti:Qn=!1;case wi:return Xn}}function Fi(Ii){var Vi=Ii.charCodeAt(0),Gi=Vi>>8;return Gi==0?Vi>191?Ln:xi[Vi]:Gi==5?/[\u0591-\u05f4]/.test(Ii)?Pn:Ln:Gi==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(Ii)?pi:/[\u0660-\u0669\u066b-\u066c]/.test(Ii)?Jn:Vi==1642?yi:/[\u06f0-\u06f9]/.test(Ii)?Zn:oi:Gi==32&&Vi<=8287?Si[Vi&255]:Gi==254&&Vi>=65136?oi:Xn}kn.L=Ln,kn.R=Pn,kn.EN=Zn,kn.ON_R=3,kn.AN=4,kn.R_H=5,kn.B=6,kn.RLE=7,kn.DOT="·",kn.doBidiReorder=function(Ii,Vi,Gi){if(Ii.length<2)return{};var Pi=Ii.split(""),Zi=new Array(Pi.length),lr=new Array(Pi.length),gr=[];Hn=Gi?Bn:In,Ei(Pi,gr,Pi.length,Vi);for(var or=0;or<Zi.length;Zi[or]=or,or++);Ri(2,gr,Zi),Ri(1,gr,Zi);for(var or=0;or<Zi.length-1;or++)Vi[or]===Jn?gr[or]=kn.AN:gr[or]===Pn&&(Vi[or]>oi&&Vi[or]<$i||Vi[or]===Xn||Vi[or]===wi)?gr[or]=kn.ON_R:or>0&&Pi[or-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(Pi[or])&&(gr[or-1]=gr[or]=kn.R_H,or++);Pi[Pi.length-1]===kn.DOT&&(gr[Pi.length-1]=kn.B),Pi[0]==="‫"&&(gr[0]=kn.RLE);for(var or=0;or<Zi.length;or++)lr[or]=gr[Zi[or]];return{logicalFromVisual:Zi,bidiLevels:lr}},kn.hasBidiCharacters=function(Ii,Vi){for(var Gi=!1,Pi=0;Pi<Ii.length;Pi++)Vi[Pi]=Fi(Ii.charAt(Pi)),!Gi&&(Vi[Pi]==Pn||Vi[Pi]==oi||Vi[Pi]==Jn)&&(Gi=!0);return Gi},kn.getVisualFromLogicalIdx=function(Ii,Vi){for(var Gi=0;Gi<Vi.logicalFromVisual.length;Gi++)if(Vi.logicalFromVisual[Gi]==Ii)return Gi;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(_n,kn,qn){var Hn=_n("./lib/bidiutil"),Kn=_n("./lib/lang"),Qn=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,zn=function(){function Wn(Nn){this.session=Nn,this.bidiMap={},this.currentRow=null,this.bidiUtil=Hn,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=Qn.test(Nn.getValue())}return Wn.prototype.isBidiRow=function(Nn,Dn,In){return this.seenBidi?(Nn!==this.currentRow&&(this.currentRow=Nn,this.updateRowLine(Dn,In),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},Wn.prototype.onChange=function(Nn){this.seenBidi?this.currentRow=null:Nn.action=="insert"&&Qn.test(Nn.lines.join(`
179
+ `))&&(this.seenBidi=!0,this.currentRow=null)},Wn.prototype.getDocumentRow=function(){var Nn=0,Dn=this.session.$screenRowCache;if(Dn.length){var In=this.session.$getRowCacheIndex(Dn,this.currentRow);In>=0&&(Nn=this.session.$docRowCache[In])}return Nn},Wn.prototype.getSplitIndex=function(){var Nn=0,Dn=this.session.$screenRowCache;if(Dn.length)for(var In,Bn=this.session.$getRowCacheIndex(Dn,this.currentRow);this.currentRow-Nn>0&&(In=this.session.$getRowCacheIndex(Dn,this.currentRow-Nn-1),In===Bn);)Bn=In,Nn++;else Nn=this.currentRow;return Nn},Wn.prototype.updateRowLine=function(Nn,Dn){Nn===void 0&&(Nn=this.getDocumentRow());var In=Nn===this.session.getLength()-1,Bn=In?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(Nn),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var Ln=this.session.$wrapData[Nn];Ln&&(Dn===void 0&&(Dn=this.getSplitIndex()),Dn>0&&Ln.length?(this.wrapIndent=Ln.indent,this.wrapOffset=this.wrapIndent*this.charWidths[Hn.L],this.line=Dn<Ln.length?this.line.substring(Ln[Dn-1],Ln[Dn]):this.line.substring(Ln[Ln.length-1])):this.line=this.line.substring(0,Ln[Dn]),Dn==Ln.length&&(this.line+=this.showInvisibles?Bn:Hn.DOT))}else this.line+=this.showInvisibles?Bn:Hn.DOT;var Pn=this.session,Zn=0,Jn;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(Xn,mi){return Xn===" "||Pn.isFullWidth(Xn.charCodeAt(0))?(Jn=Xn===" "?Pn.getScreenTabSize(mi+Zn):2,Zn+=Jn-1,Kn.stringRepeat(Hn.DOT,Jn)):Xn}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==Hn.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},Wn.prototype.updateBidiMap=function(){var Nn=[];Hn.hasBidiCharacters(this.line,Nn)||this.isRtlDir?this.bidiMap=Hn.doBidiReorder(this.line,Nn,this.isRtlDir):this.bidiMap={}},Wn.prototype.markAsDirty=function(){this.currentRow=null},Wn.prototype.updateCharacterWidths=function(Nn){if(this.characterWidth!==Nn.$characterSize.width){this.fontMetrics=Nn;var Dn=this.characterWidth=Nn.$characterSize.width,In=Nn.$measureCharWidth("ה");this.charWidths[Hn.L]=this.charWidths[Hn.EN]=this.charWidths[Hn.ON_R]=Dn,this.charWidths[Hn.R]=this.charWidths[Hn.AN]=In,this.charWidths[Hn.R_H]=In*.45,this.charWidths[Hn.B]=this.charWidths[Hn.RLE]=0,this.currentRow=null}},Wn.prototype.setShowInvisibles=function(Nn){this.showInvisibles=Nn,this.currentRow=null},Wn.prototype.setEolChar=function(Nn){this.EOL=Nn},Wn.prototype.setContentWidth=function(Nn){this.contentWidth=Nn},Wn.prototype.isRtlLine=function(Nn){return this.$isRtl?!0:Nn!=null?this.session.getLine(Nn).charAt(0)==this.RLE:this.isRtlDir},Wn.prototype.setRtlDirection=function(Nn,Dn){for(var In=Nn.getCursorPosition(),Bn=Nn.selection.getSelectionAnchor().row;Bn<=In.row;Bn++)!Dn&&Nn.session.getLine(Bn).charAt(0)===Nn.session.$bidiHandler.RLE?Nn.session.doc.removeInLine(Bn,0,1):Dn&&Nn.session.getLine(Bn).charAt(0)!==Nn.session.$bidiHandler.RLE&&Nn.session.doc.insert({column:0,row:Bn},Nn.session.$bidiHandler.RLE)},Wn.prototype.getPosLeft=function(Nn){Nn-=this.wrapIndent;var Dn=this.line.charAt(0)===this.RLE?1:0,In=Nn>Dn?this.session.getOverwrite()?Nn:Nn-1:Dn,Bn=Hn.getVisualFromLogicalIdx(In,this.bidiMap),Ln=this.bidiMap.bidiLevels,Pn=0;!this.session.getOverwrite()&&Nn<=Dn&&Ln[Bn]%2!==0&&Bn++;for(var Zn=0;Zn<Bn;Zn++)Pn+=this.charWidths[Ln[Zn]];return!this.session.getOverwrite()&&Nn>Dn&&Ln[Bn]%2===0&&(Pn+=this.charWidths[Ln[Bn]]),this.wrapIndent&&(Pn+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(Pn+=this.rtlLineOffset),Pn},Wn.prototype.getSelections=function(Nn,Dn){var In=this.bidiMap,Bn=In.bidiLevels,Ln,Pn=[],Zn=0,Jn=Math.min(Nn,Dn)-this.wrapIndent,Xn=Math.max(Nn,Dn)-this.wrapIndent,mi=!1,ci=!1,oi=0;this.wrapIndent&&(Zn+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var ei,fi=0;fi<Bn.length;fi++)ei=In.logicalFromVisual[fi],Ln=Bn[fi],mi=ei>=Jn&&ei<Xn,mi&&!ci?oi=Zn:!mi&&ci&&Pn.push({left:oi,width:Zn-oi}),Zn+=this.charWidths[Ln],ci=mi;if(mi&&fi===Bn.length&&Pn.push({left:oi,width:Zn-oi}),this.isRtlDir)for(var gi=0;gi<Pn.length;gi++)Pn[gi].left+=this.rtlLineOffset;return Pn},Wn.prototype.offsetToCol=function(In){this.isRtlDir&&(In-=this.rtlLineOffset);var Dn=0,In=Math.max(In,0),Bn=0,Ln=0,Pn=this.bidiMap.bidiLevels,Zn=this.charWidths[Pn[Ln]];for(this.wrapIndent&&(In-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);In>Bn+Zn/2;){if(Bn+=Zn,Ln===Pn.length-1){Zn=0;break}Zn=this.charWidths[Pn[++Ln]]}return Ln>0&&Pn[Ln-1]%2!==0&&Pn[Ln]%2===0?(In<Bn&&Ln--,Dn=this.bidiMap.logicalFromVisual[Ln]):Ln>0&&Pn[Ln-1]%2===0&&Pn[Ln]%2!==0?Dn=1+(In>Bn?this.bidiMap.logicalFromVisual[Ln]:this.bidiMap.logicalFromVisual[Ln-1]):this.isRtlDir&&Ln===Pn.length-1&&Zn===0&&Pn[Ln-1]%2===0||!this.isRtlDir&&Ln===0&&Pn[Ln]%2!==0?Dn=1+this.bidiMap.logicalFromVisual[Ln]:(Ln>0&&Pn[Ln-1]%2!==0&&Zn!==0&&Ln--,Dn=this.bidiMap.logicalFromVisual[Ln]),Dn===0&&this.isRtlDir&&Dn++,Dn+this.wrapIndent},Wn}();kn.BidiHandler=zn}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(_n,kn,qn){var Hn=_n("./lib/oop"),Kn=_n("./lib/lang"),Qn=_n("./lib/event_emitter").EventEmitter,zn=_n("./range").Range,Wn=function(){function Nn(Dn){this.session=Dn,this.doc=Dn.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var In=this;this.cursor.on("change",function(Bn){In.$cursorChanged=!0,In.$silent||In._emit("changeCursor"),!In.$isEmpty&&!In.$silent&&In._emit("changeSelection"),!In.$keepDesiredColumnOnChange&&Bn.old.column!=Bn.value.column&&(In.$desiredColumn=null)}),this.anchor.on("change",function(){In.$anchorChanged=!0,!In.$isEmpty&&!In.$silent&&In._emit("changeSelection")})}return Nn.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},Nn.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},Nn.prototype.getCursor=function(){return this.lead.getPosition()},Nn.prototype.setAnchor=function(Dn,In){this.$isEmpty=!1,this.anchor.setPosition(Dn,In)},Nn.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},Nn.prototype.getSelectionLead=function(){return this.lead.getPosition()},Nn.prototype.isBackwards=function(){var Dn=this.anchor,In=this.lead;return Dn.row>In.row||Dn.row==In.row&&Dn.column>In.column},Nn.prototype.getRange=function(){var Dn=this.anchor,In=this.lead;return this.$isEmpty?zn.fromPoints(In,In):this.isBackwards()?zn.fromPoints(In,Dn):zn.fromPoints(Dn,In)},Nn.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},Nn.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},Nn.prototype.setRange=function(Dn,In){var Bn=In?Dn.end:Dn.start,Ln=In?Dn.start:Dn.end;this.$setSelection(Bn.row,Bn.column,Ln.row,Ln.column)},Nn.prototype.$setSelection=function(Dn,In,Bn,Ln){if(!this.$silent){var Pn=this.$isEmpty,Zn=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(Dn,In),this.cursor.setPosition(Bn,Ln),this.$isEmpty=!zn.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||Pn!=this.$isEmpty||Zn)&&this._emit("changeSelection")}},Nn.prototype.$moveSelection=function(Dn){var In=this.lead;this.$isEmpty&&this.setSelectionAnchor(In.row,In.column),Dn.call(this)},Nn.prototype.selectTo=function(Dn,In){this.$moveSelection(function(){this.moveCursorTo(Dn,In)})},Nn.prototype.selectToPosition=function(Dn){this.$moveSelection(function(){this.moveCursorToPosition(Dn)})},Nn.prototype.moveTo=function(Dn,In){this.clearSelection(),this.moveCursorTo(Dn,In)},Nn.prototype.moveToPosition=function(Dn){this.clearSelection(),this.moveCursorToPosition(Dn)},Nn.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},Nn.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},Nn.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},Nn.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},Nn.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},Nn.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},Nn.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},Nn.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},Nn.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},Nn.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},Nn.prototype.getWordRange=function(Dn,In){if(typeof In>"u"){var Bn=Dn||this.lead;Dn=Bn.row,In=Bn.column}return this.session.getWordRange(Dn,In)},Nn.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},Nn.prototype.selectAWord=function(){var Dn=this.getCursor(),In=this.session.getAWordRange(Dn.row,Dn.column);this.setSelectionRange(In)},Nn.prototype.getLineRange=function(Dn,In){var Bn=typeof Dn=="number"?Dn:this.lead.row,Ln,Pn=this.session.getFoldLine(Bn);return Pn?(Bn=Pn.start.row,Ln=Pn.end.row):Ln=Bn,In===!0?new zn(Bn,0,Ln,this.session.getLine(Ln).length):new zn(Bn,0,Ln+1,0)},Nn.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},Nn.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},Nn.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},Nn.prototype.wouldMoveIntoSoftTab=function(Dn,In,Bn){var Ln=Dn.column,Pn=Dn.column+In;return Bn<0&&(Ln=Dn.column-In,Pn=Dn.column),this.session.isTabStop(Dn)&&this.doc.getLine(Dn.row).slice(Ln,Pn).split(" ").length-1==In},Nn.prototype.moveCursorLeft=function(){var Dn=this.lead.getPosition(),In;if(In=this.session.getFoldAt(Dn.row,Dn.column,-1))this.moveCursorTo(In.start.row,In.start.column);else if(Dn.column===0)Dn.row>0&&this.moveCursorTo(Dn.row-1,this.doc.getLine(Dn.row-1).length);else{var Bn=this.session.getTabSize();this.wouldMoveIntoSoftTab(Dn,Bn,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-Bn):this.moveCursorBy(0,-1)}},Nn.prototype.moveCursorRight=function(){var Dn=this.lead.getPosition(),In;if(In=this.session.getFoldAt(Dn.row,Dn.column,1))this.moveCursorTo(In.end.row,In.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var Bn=this.session.getTabSize(),Dn=this.lead;this.wouldMoveIntoSoftTab(Dn,Bn,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,Bn):this.moveCursorBy(0,1)}},Nn.prototype.moveCursorLineStart=function(){var Dn=this.lead.row,In=this.lead.column,Bn=this.session.documentToScreenRow(Dn,In),Ln=this.session.screenToDocumentPosition(Bn,0),Pn=this.session.getDisplayLine(Dn,null,Ln.row,Ln.column),Zn=Pn.match(/^\s*/);Zn[0].length!=In&&!this.session.$useEmacsStyleLineStart&&(Ln.column+=Zn[0].length),this.moveCursorToPosition(Ln)},Nn.prototype.moveCursorLineEnd=function(){var Dn=this.lead,In=this.session.getDocumentLastRowColumnPosition(Dn.row,Dn.column);if(this.lead.column==In.column){var Bn=this.session.getLine(In.row);if(In.column==Bn.length){var Ln=Bn.search(/\s+$/);Ln>0&&(In.column=Ln)}}this.moveCursorTo(In.row,In.column)},Nn.prototype.moveCursorFileEnd=function(){var Dn=this.doc.getLength()-1,In=this.doc.getLine(Dn).length;this.moveCursorTo(Dn,In)},Nn.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},Nn.prototype.moveCursorLongWordRight=function(){var Dn=this.lead.row,In=this.lead.column,Bn=this.doc.getLine(Dn),Ln=Bn.substring(In);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var Pn=this.session.getFoldAt(Dn,In,1);if(Pn){this.moveCursorTo(Pn.end.row,Pn.end.column);return}if(this.session.nonTokenRe.exec(Ln)&&(In+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,Ln=Bn.substring(In)),In>=Bn.length){this.moveCursorTo(Dn,Bn.length),this.moveCursorRight(),Dn<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(Ln)&&(In+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(Dn,In)},Nn.prototype.moveCursorLongWordLeft=function(){var Dn=this.lead.row,In=this.lead.column,Bn;if(Bn=this.session.getFoldAt(Dn,In,-1)){this.moveCursorTo(Bn.start.row,Bn.start.column);return}var Ln=this.session.getFoldStringAt(Dn,In,-1);Ln==null&&(Ln=this.doc.getLine(Dn).substring(0,In));var Pn=Kn.stringReverse(Ln);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(Pn)&&(In-=this.session.nonTokenRe.lastIndex,Pn=Pn.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),In<=0){this.moveCursorTo(Dn,0),this.moveCursorLeft(),Dn>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(Pn)&&(In-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(Dn,In)},Nn.prototype.$shortWordEndIndex=function(Dn){var In=0,Bn,Ln=/\s/,Pn=this.session.tokenRe;if(Pn.lastIndex=0,this.session.tokenRe.exec(Dn))In=this.session.tokenRe.lastIndex;else{for(;(Bn=Dn[In])&&Ln.test(Bn);)In++;if(In<1){for(Pn.lastIndex=0;(Bn=Dn[In])&&!Pn.test(Bn);)if(Pn.lastIndex=0,In++,Ln.test(Bn))if(In>2){In--;break}else{for(;(Bn=Dn[In])&&Ln.test(Bn);)In++;if(In>2)break}}}return Pn.lastIndex=0,In},Nn.prototype.moveCursorShortWordRight=function(){var Dn=this.lead.row,In=this.lead.column,Bn=this.doc.getLine(Dn),Ln=Bn.substring(In),Pn=this.session.getFoldAt(Dn,In,1);if(Pn)return this.moveCursorTo(Pn.end.row,Pn.end.column);if(In==Bn.length){var Zn=this.doc.getLength();do Dn++,Ln=this.doc.getLine(Dn);while(Dn<Zn&&/^\s*$/.test(Ln));/^\s+/.test(Ln)||(Ln=""),In=0}var Jn=this.$shortWordEndIndex(Ln);this.moveCursorTo(Dn,In+Jn)},Nn.prototype.moveCursorShortWordLeft=function(){var Dn=this.lead.row,In=this.lead.column,Bn;if(Bn=this.session.getFoldAt(Dn,In,-1))return this.moveCursorTo(Bn.start.row,Bn.start.column);var Ln=this.session.getLine(Dn).substring(0,In);if(In===0){do Dn--,Ln=this.doc.getLine(Dn);while(Dn>0&&/^\s*$/.test(Ln));In=Ln.length,/\s+$/.test(Ln)||(Ln="")}var Pn=Kn.stringReverse(Ln),Zn=this.$shortWordEndIndex(Pn);return this.moveCursorTo(Dn,In-Zn)},Nn.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},Nn.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},Nn.prototype.moveCursorBy=function(Dn,In){var Bn=this.session.documentToScreenPosition(this.lead.row,this.lead.column),Ln;if(In===0&&(Dn!==0&&(this.session.$bidiHandler.isBidiRow(Bn.row,this.lead.row)?(Ln=this.session.$bidiHandler.getPosLeft(Bn.column),Bn.column=Math.round(Ln/this.session.$bidiHandler.charWidths[0])):Ln=Bn.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?Bn.column=this.$desiredColumn:this.$desiredColumn=Bn.column),Dn!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var Pn=this.session.lineWidgets[this.lead.row];Dn<0?Dn-=Pn.rowsAbove||0:Dn>0&&(Dn+=Pn.rowCount-(Pn.rowsAbove||0))}var Zn=this.session.screenToDocumentPosition(Bn.row+Dn,Bn.column,Ln);Dn!==0&&In===0&&Zn.row===this.lead.row&&(Zn.column,this.lead.column),this.moveCursorTo(Zn.row,Zn.column+In,In===0)},Nn.prototype.moveCursorToPosition=function(Dn){this.moveCursorTo(Dn.row,Dn.column)},Nn.prototype.moveCursorTo=function(Dn,In,Bn){var Ln=this.session.getFoldAt(Dn,In,1);Ln&&(Dn=Ln.start.row,In=Ln.start.column),this.$keepDesiredColumnOnChange=!0;var Pn=this.session.getLine(Dn);/[\uDC00-\uDFFF]/.test(Pn.charAt(In))&&Pn.charAt(In-1)&&(this.lead.row==Dn&&this.lead.column==In+1?In=In-1:In=In+1),this.lead.setPosition(Dn,In),this.$keepDesiredColumnOnChange=!1,Bn||(this.$desiredColumn=null)},Nn.prototype.moveCursorToScreen=function(Dn,In,Bn){var Ln=this.session.screenToDocumentPosition(Dn,In);this.moveCursorTo(Ln.row,Ln.column,Bn)},Nn.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},Nn.prototype.fromOrientedRange=function(Dn){this.setSelectionRange(Dn,Dn.cursor==Dn.start),this.$desiredColumn=Dn.desiredColumn||this.$desiredColumn},Nn.prototype.toOrientedRange=function(Dn){var In=this.getRange();return Dn?(Dn.start.column=In.start.column,Dn.start.row=In.start.row,Dn.end.column=In.end.column,Dn.end.row=In.end.row):Dn=In,Dn.cursor=this.isBackwards()?Dn.start:Dn.end,Dn.desiredColumn=this.$desiredColumn,Dn},Nn.prototype.getRangeOfMovements=function(Dn){var In=this.getCursor();try{Dn(this);var Bn=this.getCursor();return zn.fromPoints(In,Bn)}catch{return zn.fromPoints(In,In)}finally{this.moveCursorToPosition(In)}},Nn.prototype.toJSON=function(){if(this.rangeCount)var Dn=this.ranges.map(function(In){var Bn=In.clone();return Bn.isBackwards=In.cursor==In.start,Bn});else{var Dn=this.getRange();Dn.isBackwards=this.isBackwards()}return Dn},Nn.prototype.fromJSON=function(Dn){if(Dn.start==null)if(this.rangeList&&Dn.length>1){this.toSingleRange(Dn[0]);for(var In=Dn.length;In--;){var Bn=zn.fromPoints(Dn[In].start,Dn[In].end);Dn[In].isBackwards&&(Bn.cursor=Bn.start),this.addRange(Bn,!0)}return}else Dn=Dn[0];this.rangeList&&this.toSingleRange(Dn),this.setSelectionRange(Dn,Dn.isBackwards)},Nn.prototype.isEqual=function(Dn){if((Dn.length||this.rangeCount)&&Dn.length!=this.rangeCount)return!1;if(!Dn.length||!this.ranges)return this.getRange().isEqual(Dn);for(var In=this.ranges.length;In--;)if(!this.ranges[In].isEqual(Dn[In]))return!1;return!0},Nn}();Wn.prototype.setSelectionAnchor=Wn.prototype.setAnchor,Wn.prototype.getSelectionAnchor=Wn.prototype.getAnchor,Wn.prototype.setSelectionRange=Wn.prototype.setRange,Hn.implement(Wn.prototype,Qn),kn.Selection=Wn}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(_n,kn,qn){var Hn=_n("./lib/report_error").reportError,Kn=2e3,Qn=function(){function zn(Wn){this.splitRegex,this.states=Wn,this.regExps={},this.matchMappings={};for(var Nn in this.states){for(var Dn=this.states[Nn],In=[],Bn=0,Ln=this.matchMappings[Nn]={defaultToken:"text"},Pn="g",Zn=[],Jn=0;Jn<Dn.length;Jn++){var Xn=Dn[Jn];if(Xn.defaultToken&&(Ln.defaultToken=Xn.defaultToken),Xn.caseInsensitive&&Pn.indexOf("i")===-1&&(Pn+="i"),Xn.unicode&&Pn.indexOf("u")===-1&&(Pn+="u"),Xn.regex!=null){Xn.regex instanceof RegExp&&(Xn.regex=Xn.regex.toString().slice(1,-1));var mi=Xn.regex,ci=new RegExp("(?:("+mi+")|(.))").exec("a").length-2;Array.isArray(Xn.token)?Xn.token.length==1||ci==1?Xn.token=Xn.token[0]:ci-1!=Xn.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:Xn,groupCount:ci-1}),Xn.token=Xn.token[0]):(Xn.tokenArray=Xn.token,Xn.token=null,Xn.onMatch=this.$arrayTokens):typeof Xn.token=="function"&&!Xn.onMatch&&(ci>1?Xn.onMatch=this.$applyToken:Xn.onMatch=Xn.token),ci>1&&(/\\\d/.test(Xn.regex)?mi=Xn.regex.replace(/\\([0-9]+)/g,function(oi,ei){return"\\"+(parseInt(ei,10)+Bn+1)}):(ci=1,mi=this.removeCapturingGroups(Xn.regex)),!Xn.splitRegex&&typeof Xn.token!="string"&&Zn.push(Xn)),Ln[Bn]=Jn,Bn+=ci,In.push(mi),Xn.onMatch||(Xn.onMatch=null)}}In.length||(Ln[0]=0,In.push("$")),Zn.forEach(function(oi){oi.splitRegex=this.createSplitterRegexp(oi.regex,Pn)},this),this.regExps[Nn]=new RegExp("("+In.join(")|(")+")|($)",Pn)}}return zn.prototype.$setMaxTokenCount=function(Wn){Kn=Wn|0},zn.prototype.$applyToken=function(Wn){var Nn=this.splitRegex.exec(Wn).slice(1),Dn=this.token.apply(this,Nn);if(typeof Dn=="string")return[{type:Dn,value:Wn}];for(var In=[],Bn=0,Ln=Dn.length;Bn<Ln;Bn++)Nn[Bn]&&(In[In.length]={type:Dn[Bn],value:Nn[Bn]});return In},zn.prototype.$arrayTokens=function(Wn){if(!Wn)return[];var Nn=this.splitRegex.exec(Wn);if(!Nn)return"text";for(var Dn=[],In=this.tokenArray,Bn=0,Ln=In.length;Bn<Ln;Bn++)Nn[Bn+1]&&(Dn[Dn.length]={type:In[Bn],value:Nn[Bn+1]});return Dn},zn.prototype.removeCapturingGroups=function(Wn){var Nn=Wn.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(Dn,In){return In?"(?:":Dn});return Nn},zn.prototype.createSplitterRegexp=function(Wn,Nn){if(Wn.indexOf("(?=")!=-1){var Dn=0,In=!1,Bn={};Wn.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(Ln,Pn,Zn,Jn,Xn,mi){return In?In=Xn!="]":Xn?In=!0:Jn?(Dn==Bn.stack&&(Bn.end=mi+1,Bn.stack=-1),Dn--):Zn&&(Dn++,Zn.length!=1&&(Bn.stack=Dn,Bn.start=mi)),Ln}),Bn.end!=null&&/^\)*$/.test(Wn.substr(Bn.end))&&(Wn=Wn.substring(0,Bn.start)+Wn.substr(Bn.end))}return Wn.charAt(0)!="^"&&(Wn="^"+Wn),Wn.charAt(Wn.length-1)!="$"&&(Wn+="$"),new RegExp(Wn,(Nn||"").replace("g",""))},zn.prototype.getLineTokens=function(Wn,Nn){if(Nn&&typeof Nn!="string"){var Dn=Nn.slice(0);Nn=Dn[0],Nn==="#tmp"&&(Dn.shift(),Nn=Dn.shift())}else var Dn=[];var In=Nn||"start",Bn=this.states[In];Bn||(In="start",Bn=this.states[In]);var Ln=this.matchMappings[In],Pn=this.regExps[In];Pn.lastIndex=0;for(var Zn,Jn=[],Xn=0,mi=0,ci={type:null,value:""};Zn=Pn.exec(Wn);){var oi=Ln.defaultToken,ei=null,fi=Zn[0],gi=Pn.lastIndex;if(gi-fi.length>Xn){var yi=Wn.substring(Xn,gi-fi.length);ci.type==oi?ci.value+=yi:(ci.type&&Jn.push(ci),ci={type:oi,value:yi})}for(var pi=0;pi<Zn.length-2;pi++)if(Zn[pi+1]!==void 0){ei=Bn[Ln[pi]],ei.onMatch?oi=ei.onMatch(fi,In,Dn,Wn):oi=ei.token,ei.next&&(typeof ei.next=="string"?In=ei.next:In=ei.next(In,Dn),Bn=this.states[In],Bn||(this.reportError("state doesn't exist",In),In="start",Bn=this.states[In]),Ln=this.matchMappings[In],Xn=gi,Pn=this.regExps[In],Pn.lastIndex=gi),ei.consumeLineEnd&&(Xn=gi);break}if(fi){if(typeof oi=="string")(!ei||ei.merge!==!1)&&ci.type===oi?ci.value+=fi:(ci.type&&Jn.push(ci),ci={type:oi,value:fi});else if(oi){ci.type&&Jn.push(ci),ci={type:null,value:""};for(var pi=0;pi<oi.length;pi++)Jn.push(oi[pi])}}if(Xn==Wn.length)break;if(Xn=gi,mi++>Kn){for(mi>2*Wn.length&&this.reportError("infinite loop with in ace tokenizer",{startState:Nn,line:Wn});Xn<Wn.length;)ci.type&&Jn.push(ci),ci={value:Wn.substring(Xn,Xn+=500),type:"overflow"};In="start",Dn=[];break}}return ci.type&&Jn.push(ci),Dn.length>1&&Dn[0]!==In&&Dn.unshift("#tmp",In),{tokens:Jn,state:Dn.length?Dn:In}},zn}();Qn.prototype.reportError=Hn,kn.Tokenizer=Qn}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(_n,kn,qn){var Hn=_n("../lib/deep_copy").deepCopy,Kn;Kn=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(Wn,Nn){if(!Nn){for(var Dn in Wn)this.$rules[Dn]=Wn[Dn];return}for(var Dn in Wn){for(var In=Wn[Dn],Bn=0;Bn<In.length;Bn++){var Ln=In[Bn];(Ln.next||Ln.onMatch)&&(typeof Ln.next=="string"&&Ln.next.indexOf(Nn)!==0&&(Ln.next=Nn+Ln.next),Ln.nextState&&Ln.nextState.indexOf(Nn)!==0&&(Ln.nextState=Nn+Ln.nextState))}this.$rules[Nn+Dn]=In}},this.getRules=function(){return this.$rules},this.embedRules=function(Wn,Nn,Dn,In,Bn){var Ln=typeof Wn=="function"?new Wn().getRules():Wn;if(In)for(var Pn=0;Pn<In.length;Pn++)In[Pn]=Nn+In[Pn];else{In=[];for(var Zn in Ln)In.push(Nn+Zn)}if(this.addRules(Ln,Nn),Dn)for(var Jn=Array.prototype[Bn?"push":"unshift"],Pn=0;Pn<In.length;Pn++)Jn.apply(this.$rules[In[Pn]],Hn(Dn));this.$embeds||(this.$embeds=[]),this.$embeds.push(Nn)},this.getEmbeds=function(){return this.$embeds};var Qn=function(Wn,Nn){return(Wn!="start"||Nn.length)&&Nn.unshift(this.nextState,Wn),this.nextState},zn=function(Wn,Nn){return Nn.shift(),Nn.shift()||"start"};this.normalizeRules=function(){var Wn=0,Nn=this.$rules;function Dn(In){var Bn=Nn[In];Bn.processed=!0;for(var Ln=0;Ln<Bn.length;Ln++){var Pn=Bn[Ln],Zn=null;Array.isArray(Pn)&&(Zn=Pn,Pn={}),!Pn.regex&&Pn.start&&(Pn.regex=Pn.start,Pn.next||(Pn.next=[]),Pn.next.push({defaultToken:Pn.token},{token:Pn.token+".end",regex:Pn.end||Pn.start,next:"pop"}),Pn.token=Pn.token+".start",Pn.push=!0);var Jn=Pn.next||Pn.push;if(Jn&&Array.isArray(Jn)){var Xn=Pn.stateName;Xn||(Xn=Pn.token,typeof Xn!="string"&&(Xn=Xn[0]||""),Nn[Xn]&&(Xn+=Wn++)),Nn[Xn]=Jn,Pn.next=Xn,Dn(Xn)}else Jn=="pop"&&(Pn.next=zn);if(Pn.push&&(Pn.nextState=Pn.next||Pn.push,Pn.next=Qn,delete Pn.push),Pn.rules)for(var mi in Pn.rules)Nn[mi]?Nn[mi].push&&Nn[mi].push.apply(Nn[mi],Pn.rules[mi]):Nn[mi]=Pn.rules[mi];var ci=typeof Pn=="string"?Pn:Pn.include;if(ci&&(ci==="$self"&&(ci="start"),Array.isArray(ci)?Zn=ci.map(function(ei){return Nn[ei]}):Zn=Nn[ci]),Zn){var oi=[Ln,1].concat(Zn);Pn.noEscape&&(oi=oi.filter(function(ei){return!ei.next})),Bn.splice.apply(Bn,oi),Ln--}Pn.keywordMap&&(Pn.token=this.createKeywordMapper(Pn.keywordMap,Pn.defaultToken||"text",Pn.caseInsensitive),delete Pn.defaultToken)}}Object.keys(Nn).forEach(Dn,this)},this.createKeywordMapper=function(Wn,Nn,Dn,In){var Bn=Object.create(null);return this.$keywordList=[],Object.keys(Wn).forEach(function(Ln){for(var Pn=Wn[Ln],Zn=Pn.split(In||"|"),Jn=Zn.length;Jn--;){var Xn=Zn[Jn];this.$keywordList.push(Xn),Dn&&(Xn=Xn.toLowerCase()),Bn[Xn]=Ln}},this),Wn=null,Dn?function(Ln){return Bn[Ln.toLowerCase()]||Nn}:function(Ln){return Bn[Ln]||Nn}},this.getKeywords=function(){return this.$keywords}}).call(Kn.prototype),kn.TextHighlightRules=Kn}),ace.define("ace/mode/behaviour",["require","exports","module"],function(_n,kn,qn){var Hn;Hn=function(){this.$behaviours={}},(function(){this.add=function(Kn,Qn,zn){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[Kn]:this.$behaviours[Kn]={}}this.$behaviours[Kn][Qn]=zn},this.addBehaviours=function(Kn){for(var Qn in Kn)for(var zn in Kn[Qn])this.add(Qn,zn,Kn[Qn][zn])},this.remove=function(Kn){this.$behaviours&&this.$behaviours[Kn]&&delete this.$behaviours[Kn]},this.inherit=function(Kn,Qn){if(typeof Kn=="function")var zn=new Kn().getBehaviours(Qn);else var zn=Kn.getBehaviours(Qn);this.addBehaviours(zn)},this.getBehaviours=function(Kn){if(Kn){for(var Qn={},zn=0;zn<Kn.length;zn++)this.$behaviours[Kn[zn]]&&(Qn[Kn[zn]]=this.$behaviours[Kn[zn]]);return Qn}else return this.$behaviours}}).call(Hn.prototype),kn.Behaviour=Hn}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(_n,kn,qn){var Hn=_n("./range").Range,Kn=function(){function Qn(zn,Wn,Nn){this.$session=zn,this.$row=Wn,this.$rowTokens=zn.getTokens(Wn);var Dn=zn.getTokenAt(Wn,Nn);this.$tokenIndex=Dn?Dn.index:-1}return Qn.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},Qn.prototype.stepForward=function(){this.$tokenIndex+=1;for(var zn;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,zn||(zn=this.$session.getLength()),this.$row>=zn)return this.$row=zn-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},Qn.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},Qn.prototype.getCurrentTokenRow=function(){return this.$row},Qn.prototype.getCurrentTokenColumn=function(){var zn=this.$rowTokens,Wn=this.$tokenIndex,Nn=zn[Wn].start;if(Nn!==void 0)return Nn;for(Nn=0;Wn>0;)Wn-=1,Nn+=zn[Wn].value.length;return Nn},Qn.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},Qn.prototype.getCurrentTokenRange=function(){var zn=this.$rowTokens[this.$tokenIndex],Wn=this.getCurrentTokenColumn();return new Hn(this.$row,Wn,this.$row,Wn+zn.value.length)},Qn}();kn.TokenIterator=Kn}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(_n,kn,qn){var Hn=_n("../../lib/oop"),Kn=_n("../behaviour").Behaviour,Qn=_n("../../token_iterator").TokenIterator,zn=_n("../../lib/lang"),Wn=["text","paren.rparen","rparen","paren","punctuation.operator"],Nn=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],Dn,In={},Bn={'"':'"',"'":"'"},Ln=function(Jn){var Xn=-1;if(Jn.multiSelect&&(Xn=Jn.selection.index,In.rangeCount!=Jn.multiSelect.rangeCount&&(In={rangeCount:Jn.multiSelect.rangeCount})),In[Xn])return Dn=In[Xn];Dn=In[Xn]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},Pn=function(Jn,Xn,mi,ci){var oi=Jn.end.row-Jn.start.row;return{text:mi+Xn+ci,selection:[0,Jn.start.column+1,oi,Jn.end.column+(oi?0:1)]}},Zn;Zn=function(Jn){Jn=Jn||{},this.add("braces","insertion",function(Xn,mi,ci,oi,ei){var fi=ci.getCursorPosition(),gi=oi.doc.getLine(fi.row);if(ei=="{"){Ln(ci);var yi=ci.getSelectionRange(),pi=oi.doc.getTextRange(yi),$i=oi.getTokenAt(fi.row,fi.column);if(pi!==""&&pi!=="{"&&ci.getWrapBehavioursEnabled())return Pn(yi,pi,"{","}");if($i&&/(?:string)\.quasi|\.xml/.test($i.type)){var si=[/tag\-(?:open|name)/,/attribute\-name/];return si.some(function(Ei){return Ei.test($i.type)})||/(string)\.quasi/.test($i.type)&&$i.value[fi.column-$i.start-1]!=="$"?void 0:(Zn.recordAutoInsert(ci,oi,"}"),{text:"{}",selection:[1,1]})}else if(Zn.isSaneInsertion(ci,oi))return/[\]\}\)]/.test(gi[fi.column])||ci.inMultiSelectMode||Jn.braces?(Zn.recordAutoInsert(ci,oi,"}"),{text:"{}",selection:[1,1]}):(Zn.recordMaybeInsert(ci,oi,"{"),{text:"{",selection:[1,1]})}else if(ei=="}"){Ln(ci);var ti=gi.substring(fi.column,fi.column+1);if(ti=="}"){var ai=oi.$findOpeningBracket("}",{column:fi.column+1,row:fi.row});if(ai!==null&&Zn.isAutoInsertedClosing(fi,gi,ei))return Zn.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(ei==`
180
+ `||ei==`\r
181
+ `){Ln(ci);var vi="";Zn.isMaybeInsertedClosing(fi,gi)&&(vi=zn.stringRepeat("}",Dn.maybeInsertedBrackets),Zn.clearMaybeInsertedClosing());var ti=gi.substring(fi.column,fi.column+1);if(ti==="}"){var wi=oi.findMatchingBracket({row:fi.row,column:fi.column+1},"}");if(!wi)return null;var xi=this.$getIndent(oi.getLine(wi.row))}else if(vi)var xi=this.$getIndent(gi);else{Zn.clearMaybeInsertedClosing();return}var Si=xi+oi.getTabString();return{text:`
182
+ `+Si+`
183
+ `+xi+vi,selection:[1,Si.length,1,Si.length]}}else Zn.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(Xn,mi,ci,oi,ei){var fi=oi.doc.getTextRange(ei);if(!ei.isMultiLine()&&fi=="{"){Ln(ci);var gi=oi.doc.getLine(ei.start.row),yi=gi.substring(ei.end.column,ei.end.column+1);if(yi=="}")return ei.end.column++,ei;Dn.maybeInsertedBrackets--}}),this.add("parens","insertion",function(Xn,mi,ci,oi,ei){if(ei=="("){Ln(ci);var fi=ci.getSelectionRange(),gi=oi.doc.getTextRange(fi);if(gi!==""&&ci.getWrapBehavioursEnabled())return Pn(fi,gi,"(",")");if(Zn.isSaneInsertion(ci,oi))return Zn.recordAutoInsert(ci,oi,")"),{text:"()",selection:[1,1]}}else if(ei==")"){Ln(ci);var yi=ci.getCursorPosition(),pi=oi.doc.getLine(yi.row),$i=pi.substring(yi.column,yi.column+1);if($i==")"){var si=oi.$findOpeningBracket(")",{column:yi.column+1,row:yi.row});if(si!==null&&Zn.isAutoInsertedClosing(yi,pi,ei))return Zn.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(Xn,mi,ci,oi,ei){var fi=oi.doc.getTextRange(ei);if(!ei.isMultiLine()&&fi=="("){Ln(ci);var gi=oi.doc.getLine(ei.start.row),yi=gi.substring(ei.start.column+1,ei.start.column+2);if(yi==")")return ei.end.column++,ei}}),this.add("brackets","insertion",function(Xn,mi,ci,oi,ei){if(ei=="["){Ln(ci);var fi=ci.getSelectionRange(),gi=oi.doc.getTextRange(fi);if(gi!==""&&ci.getWrapBehavioursEnabled())return Pn(fi,gi,"[","]");if(Zn.isSaneInsertion(ci,oi))return Zn.recordAutoInsert(ci,oi,"]"),{text:"[]",selection:[1,1]}}else if(ei=="]"){Ln(ci);var yi=ci.getCursorPosition(),pi=oi.doc.getLine(yi.row),$i=pi.substring(yi.column,yi.column+1);if($i=="]"){var si=oi.$findOpeningBracket("]",{column:yi.column+1,row:yi.row});if(si!==null&&Zn.isAutoInsertedClosing(yi,pi,ei))return Zn.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(Xn,mi,ci,oi,ei){var fi=oi.doc.getTextRange(ei);if(!ei.isMultiLine()&&fi=="["){Ln(ci);var gi=oi.doc.getLine(ei.start.row),yi=gi.substring(ei.start.column+1,ei.start.column+2);if(yi=="]")return ei.end.column++,ei}}),this.add("string_dquotes","insertion",function(Xn,mi,ci,oi,ei){var fi=oi.$mode.$quotes||Bn;if(ei.length==1&&fi[ei]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(ei)!=-1)return;Ln(ci);var gi=ei,yi=ci.getSelectionRange(),pi=oi.doc.getTextRange(yi);if(pi!==""&&(pi.length!=1||!fi[pi])&&ci.getWrapBehavioursEnabled())return Pn(yi,pi,gi,gi);if(!pi){var $i=ci.getCursorPosition(),si=oi.doc.getLine($i.row),ti=si.substring($i.column-1,$i.column),ai=si.substring($i.column,$i.column+1),vi=oi.getTokenAt($i.row,$i.column),wi=oi.getTokenAt($i.row,$i.column+1);if(ti=="\\"&&vi&&/escape/.test(vi.type))return null;var xi=vi&&/string|escape/.test(vi.type),Si=!wi||/string|escape/.test(wi.type),Ei;if(ai==gi)Ei=xi!==Si,Ei&&/string\.end/.test(wi.type)&&(Ei=!1);else{if(xi&&!Si||xi&&Si)return null;var Ri=oi.$mode.tokenRe;Ri.lastIndex=0;var Ni=Ri.test(ti);Ri.lastIndex=0;var Fi=Ri.test(ai),Ii=oi.$mode.$pairQuotesAfter,Vi=Ii&&Ii[gi]&&Ii[gi].test(ti);if(!Vi&&Ni||Fi||ai&&!/[\s;,.})\]\\]/.test(ai))return null;var Gi=si[$i.column-2];if(ti==gi&&(Gi==gi||Ri.test(Gi)))return null;Ei=!0}return{text:Ei?gi+gi:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(Xn,mi,ci,oi,ei){var fi=oi.$mode.$quotes||Bn,gi=oi.doc.getTextRange(ei);if(!ei.isMultiLine()&&fi.hasOwnProperty(gi)){Ln(ci);var yi=oi.doc.getLine(ei.start.row),pi=yi.substring(ei.start.column+1,ei.start.column+2);if(pi==gi)return ei.end.column++,ei}}),Jn.closeDocComment!==!1&&this.add("doc comment end","insertion",function(Xn,mi,ci,oi,ei){if(Xn==="doc-start"&&(ei===`
184
+ `||ei===`\r
185
+ `)&&ci.selection.isEmpty()){var fi=ci.getCursorPosition();if(fi.column===0)return;for(var gi=oi.doc.getLine(fi.row),yi=oi.doc.getLine(fi.row+1),pi=oi.getTokens(fi.row),$i=0,si=0;si<pi.length;si++){$i+=pi[si].value.length;var ti=pi[si];if($i>=fi.column){if($i===fi.column){if(!/\.doc/.test(ti.type))return;if(/\*\//.test(ti.value)){var ai=pi[si+1];if(!ai||!/\.doc/.test(ai.type))return}}var vi=fi.column-($i-ti.value.length),wi=ti.value.indexOf("*/"),xi=ti.value.indexOf("/**",wi>-1?wi+2:0);if(xi!==-1&&vi>xi&&vi<xi+3||wi!==-1&&xi!==-1&&vi>=wi&&vi<=xi||!/\.doc/.test(ti.type))return;break}}var Si=this.$getIndent(gi);if(/\s*\*/.test(yi))return/^\s*\*/.test(gi)?{text:ei+Si+"* ",selection:[1,2+Si.length,1,2+Si.length]}:{text:ei+Si+" * ",selection:[1,3+Si.length,1,3+Si.length]};if(/\/\*\*/.test(gi.substring(0,fi.column)))return{text:ei+Si+" * "+ei+" "+Si+"*/",selection:[1,4+Si.length,1,4+Si.length]}}})},Zn.isSaneInsertion=function(Jn,Xn){var mi=Jn.getCursorPosition(),ci=new Qn(Xn,mi.row,mi.column);if(!this.$matchTokenType(ci.getCurrentToken()||"text",Wn)){if(/[)}\]]/.test(Jn.session.getLine(mi.row)[mi.column]))return!0;var oi=new Qn(Xn,mi.row,mi.column+1);if(!this.$matchTokenType(oi.getCurrentToken()||"text",Wn))return!1}return ci.stepForward(),ci.getCurrentTokenRow()!==mi.row||this.$matchTokenType(ci.getCurrentToken()||"text",Nn)},Zn.$matchTokenType=function(Jn,Xn){return Xn.indexOf(Jn.type||Jn)>-1},Zn.recordAutoInsert=function(Jn,Xn,mi){var ci=Jn.getCursorPosition(),oi=Xn.doc.getLine(ci.row);this.isAutoInsertedClosing(ci,oi,Dn.autoInsertedLineEnd[0])||(Dn.autoInsertedBrackets=0),Dn.autoInsertedRow=ci.row,Dn.autoInsertedLineEnd=mi+oi.substr(ci.column),Dn.autoInsertedBrackets++},Zn.recordMaybeInsert=function(Jn,Xn,mi){var ci=Jn.getCursorPosition(),oi=Xn.doc.getLine(ci.row);this.isMaybeInsertedClosing(ci,oi)||(Dn.maybeInsertedBrackets=0),Dn.maybeInsertedRow=ci.row,Dn.maybeInsertedLineStart=oi.substr(0,ci.column)+mi,Dn.maybeInsertedLineEnd=oi.substr(ci.column),Dn.maybeInsertedBrackets++},Zn.isAutoInsertedClosing=function(Jn,Xn,mi){return Dn.autoInsertedBrackets>0&&Jn.row===Dn.autoInsertedRow&&mi===Dn.autoInsertedLineEnd[0]&&Xn.substr(Jn.column)===Dn.autoInsertedLineEnd},Zn.isMaybeInsertedClosing=function(Jn,Xn){return Dn.maybeInsertedBrackets>0&&Jn.row===Dn.maybeInsertedRow&&Xn.substr(Jn.column)===Dn.maybeInsertedLineEnd&&Xn.substr(0,Jn.column)==Dn.maybeInsertedLineStart},Zn.popAutoInsertedClosing=function(){Dn.autoInsertedLineEnd=Dn.autoInsertedLineEnd.substr(1),Dn.autoInsertedBrackets--},Zn.clearMaybeInsertedClosing=function(){Dn&&(Dn.maybeInsertedBrackets=0,Dn.maybeInsertedRow=-1)},Hn.inherits(Zn,Kn),kn.CstyleBehaviour=Zn}),ace.define("ace/unicode",["require","exports","module"],function(_n,kn,qn){for(var Hn=[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],Kn=0,Qn=[],zn=0;zn<Hn.length;zn+=2)Qn.push(Kn+=Hn[zn]),Hn[zn+1]&&Qn.push(45,Kn+=Hn[zn+1]);kn.wordChars=String.fromCharCode.apply(null,Qn)}),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(_n,kn,qn){var Hn=_n("../config"),Kn=_n("../tokenizer").Tokenizer,Qn=_n("./text_highlight_rules").TextHighlightRules,zn=_n("./behaviour/cstyle").CstyleBehaviour,Wn=_n("../unicode"),Nn=_n("../lib/lang"),Dn=_n("../token_iterator").TokenIterator,In=_n("../range").Range,Bn;Bn=function(){this.HighlightRules=Qn},(function(){this.$defaultBehaviour=new zn,this.tokenRe=new RegExp("^["+Wn.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+Wn.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new Kn(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(Ln,Pn,Zn,Jn){var Xn=Pn.doc,mi=!0,ci=!0,oi=1/0,ei=Pn.getTabSize(),fi=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var gi=this.lineCommentStart.map(Nn.escapeRegExp).join("|"),yi=this.lineCommentStart[0];else var gi=Nn.escapeRegExp(this.lineCommentStart),yi=this.lineCommentStart;gi=new RegExp("^(\\s*)(?:"+gi+") ?"),fi=Pn.getUseSoftTabs();var pi=function(Ei,Ri){var Ni=Ei.match(gi);if(Ni){var Fi=Ni[1].length,Ii=Ni[0].length;!ai(Ei,Fi,Ii)&&Ni[0][Ii-1]==" "&&Ii--,Xn.removeInLine(Ri,Fi,Ii)}},$i=yi+" ",si=function(Ei,Ri){(!mi||/\S/.test(Ei))&&(ai(Ei,oi,oi)?Xn.insertInLine({row:Ri,column:oi},$i):Xn.insertInLine({row:Ri,column:oi},yi))},ti=function(Ei,Ri){return gi.test(Ei)},ai=function(Ei,Ri,Ni){for(var Fi=0;Ri--&&Ei.charAt(Ri)==" ";)Fi++;if(Fi%ei!=0)return!1;for(var Fi=0;Ei.charAt(Ni++)==" ";)Fi++;return ei>2?Fi%ei!=ei-1:Fi%ei==0}}else{if(!this.blockComment)return!1;var yi=this.blockComment.start,vi=this.blockComment.end,gi=new RegExp("^(\\s*)(?:"+Nn.escapeRegExp(yi)+")"),wi=new RegExp("(?:"+Nn.escapeRegExp(vi)+")\\s*$"),si=function(Vi,Gi){ti(Vi,Gi)||(!mi||/\S/.test(Vi))&&(Xn.insertInLine({row:Gi,column:Vi.length},vi),Xn.insertInLine({row:Gi,column:oi},yi))},pi=function(Vi,Gi){var Pi;(Pi=Vi.match(wi))&&Xn.removeInLine(Gi,Vi.length-Pi[0].length,Vi.length),(Pi=Vi.match(gi))&&Xn.removeInLine(Gi,Pi[1].length,Pi[0].length)},ti=function(Vi,Gi){if(gi.test(Vi))return!0;for(var Pi=Pn.getTokens(Gi),Zi=0;Zi<Pi.length;Zi++)if(Pi[Zi].type==="comment")return!0}}function xi(Ei){for(var Ri=Zn;Ri<=Jn;Ri++)Ei(Xn.getLine(Ri),Ri)}var Si=1/0;xi(function(Ei,Ri){var Ni=Ei.search(/\S/);Ni!==-1?(Ni<oi&&(oi=Ni),ci&&!ti(Ei,Ri)&&(ci=!1)):Si>Ei.length&&(Si=Ei.length)}),oi==1/0&&(oi=Si,mi=!1,ci=!1),fi&&oi%ei!=0&&(oi=Math.floor(oi/ei)*ei),xi(ci?pi:si)},this.toggleBlockComment=function(Ln,Pn,Zn,Jn){var Xn=this.blockComment;if(Xn){!Xn.start&&Xn[0]&&(Xn=Xn[0]);var mi=new Dn(Pn,Jn.row,Jn.column),ci=mi.getCurrentToken();Pn.selection;var oi=Pn.selection.toOrientedRange(),ei,fi;if(ci&&/comment/.test(ci.type)){for(var gi,yi;ci&&/comment/.test(ci.type);){var pi=ci.value.indexOf(Xn.start);if(pi!=-1){var $i=mi.getCurrentTokenRow(),si=mi.getCurrentTokenColumn()+pi;gi=new In($i,si,$i,si+Xn.start.length);break}ci=mi.stepBackward()}for(var mi=new Dn(Pn,Jn.row,Jn.column),ci=mi.getCurrentToken();ci&&/comment/.test(ci.type);){var pi=ci.value.indexOf(Xn.end);if(pi!=-1){var $i=mi.getCurrentTokenRow(),si=mi.getCurrentTokenColumn()+pi;yi=new In($i,si,$i,si+Xn.end.length);break}ci=mi.stepForward()}yi&&Pn.remove(yi),gi&&(Pn.remove(gi),ei=gi.start.row,fi=-Xn.start.length)}else fi=Xn.start.length,ei=Zn.start.row,Pn.insert(Zn.end,Xn.end),Pn.insert(Zn.start,Xn.start);oi.start.row==ei&&(oi.start.column+=fi),oi.end.row==ei&&(oi.end.column+=fi),Pn.selection.fromOrientedRange(oi)}},this.getNextLineIndent=function(Ln,Pn,Zn){return this.$getIndent(Pn)},this.checkOutdent=function(Ln,Pn,Zn){return!1},this.autoOutdent=function(Ln,Pn,Zn){},this.$getIndent=function(Ln){return Ln.match(/^\s*/)[0]},this.createWorker=function(Ln){return null},this.createModeDelegates=function(Ln){this.$embeds=[],this.$modes={};for(var Pn in Ln)if(Ln[Pn]){var Zn=Ln[Pn],Jn=Zn.prototype.$id,Xn=Hn.$modes[Jn];Xn||(Hn.$modes[Jn]=Xn=new Zn),Hn.$modes[Pn]||(Hn.$modes[Pn]=Xn),this.$embeds.push(Pn),this.$modes[Pn]=Xn}for(var mi=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],ci=function(fi){(function(gi){var yi=mi[fi],pi=gi[yi];gi[mi[fi]]=function(){return this.$delegator(yi,arguments,pi)}})(oi)},oi=this,Pn=0;Pn<mi.length;Pn++)ci(Pn)},this.$delegator=function(Ln,Pn,Zn){var Jn=Pn[0]||"start";if(typeof Jn!="string"){if(Array.isArray(Jn[2])){var Xn=Jn[2][Jn[2].length-1],mi=this.$modes[Xn];if(mi)return mi[Ln].apply(mi,[Jn[1]].concat([].slice.call(Pn,1)))}Jn=Jn[0]||"start"}for(var ci=0;ci<this.$embeds.length;ci++)if(this.$modes[this.$embeds[ci]]){var oi=Jn.split(this.$embeds[ci]);if(!oi[0]&&oi[1]){Pn[0]=oi[1];var mi=this.$modes[this.$embeds[ci]];return mi[Ln].apply(mi,Pn)}}var ei=Zn.apply(this,Pn);return Zn?ei:void 0},this.transformAction=function(Ln,Pn,Zn,Jn,Xn){if(this.$behaviour){var mi=this.$behaviour.getBehaviours();for(var ci in mi)if(mi[ci][Pn]){var oi=mi[ci][Pn].apply(this,arguments);if(oi)return oi}}},this.getKeywords=function(Ln){if(!this.completionKeywords){var Pn=this.$tokenizer.rules,Zn=[];for(var Jn in Pn)for(var Xn=Pn[Jn],mi=0,ci=Xn.length;mi<ci;mi++)if(typeof Xn[mi].token=="string")/keyword|support|storage/.test(Xn[mi].token)&&Zn.push(Xn[mi].regex);else if(typeof Xn[mi].token=="object"){for(var oi=0,ei=Xn[mi].token.length;oi<ei;oi++)if(/keyword|support|storage/.test(Xn[mi].token[oi])){var Jn=Xn[mi].regex.match(/\(.+?\)/g)[oi];Zn.push(Jn.substr(1,Jn.length-2))}}this.completionKeywords=Zn}return Ln?Zn.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(Ln,Pn,Zn,Jn){var Xn=this.$keywordList||this.$createKeywordList();return Xn.map(function(mi){return{name:mi,value:mi,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(Bn.prototype),kn.Mode=Bn}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(_n,kn,qn){var Hn=_n("./lib/dom"),Kn=function(){function Qn(zn){this.session=zn,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return Qn.prototype.getRowLength=function(zn){var Wn;return this.lineWidgets?Wn=this.lineWidgets[zn]&&this.lineWidgets[zn].rowCount||0:Wn=0,!this.$useWrapMode||!this.$wrapData[zn]?1+Wn:this.$wrapData[zn].length+1+Wn},Qn.prototype.$getWidgetScreenLength=function(){var zn=0;return this.lineWidgets.forEach(function(Wn){Wn&&Wn.rowCount&&!Wn.hidden&&(zn+=Wn.rowCount)}),zn},Qn.prototype.$onChangeEditor=function(zn){this.attach(zn.editor)},Qn.prototype.attach=function(zn){zn&&zn.widgetManager&&zn.widgetManager!=this&&zn.widgetManager.detach(),this.editor!=zn&&(this.detach(),this.editor=zn,zn&&(zn.widgetManager=this,zn.renderer.on("beforeRender",this.measureWidgets),zn.renderer.on("afterRender",this.renderWidgets)))},Qn.prototype.detach=function(zn){var Wn=this.editor;if(Wn){this.editor=null,Wn.widgetManager=null,Wn.renderer.off("beforeRender",this.measureWidgets),Wn.renderer.off("afterRender",this.renderWidgets);var Nn=this.session.lineWidgets;Nn&&Nn.forEach(function(Dn){Dn&&Dn.el&&Dn.el.parentNode&&(Dn._inDocument=!1,Dn.el.parentNode.removeChild(Dn.el))})}},Qn.prototype.updateOnFold=function(zn,Wn){var Nn=Wn.lineWidgets;if(!(!Nn||!zn.action)){for(var Dn=zn.data,In=Dn.start.row,Bn=Dn.end.row,Ln=zn.action=="add",Pn=In+1;Pn<Bn;Pn++)Nn[Pn]&&(Nn[Pn].hidden=Ln);Nn[Bn]&&(Ln?Nn[In]?Nn[Bn].hidden=Ln:Nn[In]=Nn[Bn]:(Nn[In]==Nn[Bn]&&(Nn[In]=void 0),Nn[Bn].hidden=Ln))}},Qn.prototype.updateOnChange=function(zn){var Wn=this.session.lineWidgets;if(Wn){var Nn=zn.start.row,Dn=zn.end.row-Nn;if(Dn!==0)if(zn.action=="remove"){var In=Wn.splice(Nn+1,Dn);!Wn[Nn]&&In[In.length-1]&&(Wn[Nn]=In.pop()),In.forEach(function(Ln){Ln&&this.removeLineWidget(Ln)},this),this.$updateRows()}else{var Bn=new Array(Dn);Wn[Nn]&&Wn[Nn].column!=null&&zn.start.column>Wn[Nn].column&&Nn++,Bn.unshift(Nn,0),Wn.splice.apply(Wn,Bn),this.$updateRows()}}},Qn.prototype.$updateRows=function(){var zn=this.session.lineWidgets;if(zn){var Wn=!0;zn.forEach(function(Nn,Dn){if(Nn)for(Wn=!1,Nn.row=Dn;Nn.$oldWidget;)Nn.$oldWidget.row=Dn,Nn=Nn.$oldWidget}),Wn&&(this.session.lineWidgets=null)}},Qn.prototype.$registerLineWidget=function(zn){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var Wn=this.session.lineWidgets[zn.row];return Wn&&(zn.$oldWidget=Wn,Wn.el&&Wn.el.parentNode&&(Wn.el.parentNode.removeChild(Wn.el),Wn._inDocument=!1)),this.session.lineWidgets[zn.row]=zn,zn},Qn.prototype.addLineWidget=function(zn){if(this.$registerLineWidget(zn),zn.session=this.session,!this.editor)return zn;var Wn=this.editor.renderer;zn.html&&!zn.el&&(zn.el=Hn.createElement("div"),zn.el.innerHTML=zn.html),zn.text&&!zn.el&&(zn.el=Hn.createElement("div"),zn.el.textContent=zn.text),zn.el&&(Hn.addCssClass(zn.el,"ace_lineWidgetContainer"),zn.className&&Hn.addCssClass(zn.el,zn.className),zn.el.style.position="absolute",zn.el.style.zIndex="5",Wn.container.appendChild(zn.el),zn._inDocument=!0,zn.coverGutter||(zn.el.style.zIndex="3"),zn.pixelHeight==null&&(zn.pixelHeight=zn.el.offsetHeight)),zn.rowCount==null&&(zn.rowCount=zn.pixelHeight/Wn.layerConfig.lineHeight);var Nn=this.session.getFoldAt(zn.row,0);if(zn.$fold=Nn,Nn){var Dn=this.session.lineWidgets;zn.row==Nn.end.row&&!Dn[Nn.start.row]?Dn[Nn.start.row]=zn:zn.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:zn.row}}}),this.$updateRows(),this.renderWidgets(null,Wn),this.onWidgetChanged(zn),zn},Qn.prototype.removeLineWidget=function(zn){if(zn._inDocument=!1,zn.session=null,zn.el&&zn.el.parentNode&&zn.el.parentNode.removeChild(zn.el),zn.editor&&zn.editor.destroy)try{zn.editor.destroy()}catch{}if(this.session.lineWidgets){var Wn=this.session.lineWidgets[zn.row];if(Wn==zn)this.session.lineWidgets[zn.row]=zn.$oldWidget,zn.$oldWidget&&this.onWidgetChanged(zn.$oldWidget);else for(;Wn;){if(Wn.$oldWidget==zn){Wn.$oldWidget=zn.$oldWidget;break}Wn=Wn.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:zn.row}}}),this.$updateRows()},Qn.prototype.getWidgetsAtRow=function(zn){for(var Wn=this.session.lineWidgets,Nn=Wn&&Wn[zn],Dn=[];Nn;)Dn.push(Nn),Nn=Nn.$oldWidget;return Dn},Qn.prototype.onWidgetChanged=function(zn){this.session._changedWidgets.push(zn),this.editor&&this.editor.renderer.updateFull()},Qn.prototype.measureWidgets=function(zn,Wn){var Nn=this.session._changedWidgets,Dn=Wn.layerConfig;if(!(!Nn||!Nn.length)){for(var In=1/0,Bn=0;Bn<Nn.length;Bn++){var Ln=Nn[Bn];if(!(!Ln||!Ln.el)&&Ln.session==this.session){if(!Ln._inDocument){if(this.session.lineWidgets[Ln.row]!=Ln)continue;Ln._inDocument=!0,Wn.container.appendChild(Ln.el)}Ln.h=Ln.el.offsetHeight,Ln.fixedWidth||(Ln.w=Ln.el.offsetWidth,Ln.screenWidth=Math.ceil(Ln.w/Dn.characterWidth));var Pn=Ln.h/Dn.lineHeight;Ln.coverLine&&(Pn-=this.session.getRowLineCount(Ln.row),Pn<0&&(Pn=0)),Ln.rowCount!=Pn&&(Ln.rowCount=Pn,Ln.row<In&&(In=Ln.row))}}In!=1/0&&(this.session._emit("changeFold",{data:{start:{row:In}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},Qn.prototype.renderWidgets=function(zn,Wn){var Nn=Wn.layerConfig,Dn=this.session.lineWidgets;if(Dn){for(var In=Math.min(this.firstRow,Nn.firstRow),Bn=Math.max(this.lastRow,Nn.lastRow,Dn.length);In>0&&!Dn[In];)In--;this.firstRow=Nn.firstRow,this.lastRow=Nn.lastRow,Wn.$cursorLayer.config=Nn;for(var Ln=In;Ln<=Bn;Ln++){var Pn=Dn[Ln];if(!(!Pn||!Pn.el)){if(Pn.hidden){Pn.el.style.top=-100-(Pn.pixelHeight||0)+"px";continue}Pn._inDocument||(Pn._inDocument=!0,Wn.container.appendChild(Pn.el));var Zn=Wn.$cursorLayer.getPixelPosition({row:Ln,column:0},!0).top;Pn.coverLine||(Zn+=Nn.lineHeight*this.session.getRowLineCount(Pn.row)),Pn.el.style.top=Zn-Nn.offset+"px";var Jn=Pn.coverGutter?0:Wn.gutterWidth;Pn.fixedWidth||(Jn-=Wn.scrollLeft),Pn.el.style.left=Jn+"px",Pn.fullWidth&&Pn.screenWidth&&(Pn.el.style.minWidth=Nn.width+2*Nn.padding+"px"),Pn.fixedWidth?Pn.el.style.right=Wn.scrollBar.getWidth()+"px":Pn.el.style.right=""}}}},Qn}();kn.LineWidgets=Kn}),ace.define("ace/apply_delta",["require","exports","module"],function(_n,kn,qn){kn.applyDelta=function(Hn,Kn,Qn){var zn=Kn.start.row,Wn=Kn.start.column,Nn=Hn[zn]||"";switch(Kn.action){case"insert":var Dn=Kn.lines;if(Dn.length===1)Hn[zn]=Nn.substring(0,Wn)+Kn.lines[0]+Nn.substring(Wn);else{var In=[zn,1].concat(Kn.lines);Hn.splice.apply(Hn,In),Hn[zn]=Nn.substring(0,Wn)+Hn[zn],Hn[zn+Kn.lines.length-1]+=Nn.substring(Wn)}break;case"remove":var Bn=Kn.end.column,Ln=Kn.end.row;zn===Ln?Hn[zn]=Nn.substring(0,Wn)+Nn.substring(Bn):Hn.splice(zn,Ln-zn+1,Nn.substring(0,Wn)+Hn[Ln].substring(Bn));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(_n,kn,qn){var Hn=_n("./lib/oop"),Kn=_n("./lib/event_emitter").EventEmitter,Qn=function(){function Nn(Dn,In,Bn){this.$onChange=this.onChange.bind(this),this.attach(Dn),typeof In!="number"?this.setPosition(In.row,In.column):this.setPosition(In,Bn)}return Nn.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},Nn.prototype.getDocument=function(){return this.document},Nn.prototype.onChange=function(Dn){if(!(Dn.start.row==Dn.end.row&&Dn.start.row!=this.row)&&!(Dn.start.row>this.row)){var In=Wn(Dn,{row:this.row,column:this.column},this.$insertRight);this.setPosition(In.row,In.column,!0)}},Nn.prototype.setPosition=function(Dn,In,Bn){var Ln;if(Bn?Ln={row:Dn,column:In}:Ln=this.$clipPositionToDocument(Dn,In),!(this.row==Ln.row&&this.column==Ln.column)){var Pn={row:this.row,column:this.column};this.row=Ln.row,this.column=Ln.column,this._signal("change",{old:Pn,value:Ln})}},Nn.prototype.detach=function(){this.document.off("change",this.$onChange)},Nn.prototype.attach=function(Dn){this.document=Dn||this.document,this.document.on("change",this.$onChange)},Nn.prototype.$clipPositionToDocument=function(Dn,In){var Bn={};return Dn>=this.document.getLength()?(Bn.row=Math.max(0,this.document.getLength()-1),Bn.column=this.document.getLine(Bn.row).length):Dn<0?(Bn.row=0,Bn.column=0):(Bn.row=Dn,Bn.column=Math.min(this.document.getLine(Bn.row).length,Math.max(0,In))),In<0&&(Bn.column=0),Bn},Nn}();Qn.prototype.$insertRight=!1,Hn.implement(Qn.prototype,Kn);function zn(Nn,Dn,In){var Bn=In?Nn.column<=Dn.column:Nn.column<Dn.column;return Nn.row<Dn.row||Nn.row==Dn.row&&Bn}function Wn(Nn,Dn,In){var Bn=Nn.action=="insert",Ln=(Bn?1:-1)*(Nn.end.row-Nn.start.row),Pn=(Bn?1:-1)*(Nn.end.column-Nn.start.column),Zn=Nn.start,Jn=Bn?Zn:Nn.end;return zn(Dn,Zn,In)?{row:Dn.row,column:Dn.column}:zn(Jn,Dn,!In)?{row:Dn.row+Ln,column:Dn.column+(Dn.row==Jn.row?Pn:0)}:{row:Zn.row,column:Zn.column}}kn.Anchor=Qn}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(_n,kn,qn){var Hn=_n("./lib/oop"),Kn=_n("./apply_delta").applyDelta,Qn=_n("./lib/event_emitter").EventEmitter,zn=_n("./range").Range,Wn=_n("./anchor").Anchor,Nn=function(){function Dn(In){this.$lines=[""],In.length===0?this.$lines=[""]:Array.isArray(In)?this.insertMergedLines({row:0,column:0},In):this.insert({row:0,column:0},In)}return Dn.prototype.setValue=function(In){var Bn=this.getLength()-1;this.remove(new zn(0,0,Bn,this.getLine(Bn).length)),this.insert({row:0,column:0},In||"")},Dn.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},Dn.prototype.createAnchor=function(In,Bn){return new Wn(this,In,Bn)},Dn.prototype.$detectNewLine=function(In){var Bn=In.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=Bn?Bn[1]:`
186
+ `,this._signal("changeNewLineMode")},Dn.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
187
+ `;case"unix":return`
188
+ `;default:return this.$autoNewLine||`
189
+ `}},Dn.prototype.setNewLineMode=function(In){this.$newLineMode!==In&&(this.$newLineMode=In,this._signal("changeNewLineMode"))},Dn.prototype.getNewLineMode=function(){return this.$newLineMode},Dn.prototype.isNewLine=function(In){return In==`\r
190
+ `||In=="\r"||In==`
191
+ `},Dn.prototype.getLine=function(In){return this.$lines[In]||""},Dn.prototype.getLines=function(In,Bn){return this.$lines.slice(In,Bn+1)},Dn.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},Dn.prototype.getLength=function(){return this.$lines.length},Dn.prototype.getTextRange=function(In){return this.getLinesForRange(In).join(this.getNewLineCharacter())},Dn.prototype.getLinesForRange=function(In){var Bn;if(In.start.row===In.end.row)Bn=[this.getLine(In.start.row).substring(In.start.column,In.end.column)];else{Bn=this.getLines(In.start.row,In.end.row),Bn[0]=(Bn[0]||"").substring(In.start.column);var Ln=Bn.length-1;In.end.row-In.start.row==Ln&&(Bn[Ln]=Bn[Ln].substring(0,In.end.column))}return Bn},Dn.prototype.insertLines=function(In,Bn){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(In,Bn)},Dn.prototype.removeLines=function(In,Bn){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(In,Bn)},Dn.prototype.insertNewLine=function(In){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(In,["",""])},Dn.prototype.insert=function(In,Bn){return this.getLength()<=1&&this.$detectNewLine(Bn),this.insertMergedLines(In,this.$split(Bn))},Dn.prototype.insertInLine=function(In,Bn){var Ln=this.clippedPos(In.row,In.column),Pn=this.pos(In.row,In.column+Bn.length);return this.applyDelta({start:Ln,end:Pn,action:"insert",lines:[Bn]},!0),this.clonePos(Pn)},Dn.prototype.clippedPos=function(In,Bn){var Ln=this.getLength();In===void 0?In=Ln:In<0?In=0:In>=Ln&&(In=Ln-1,Bn=void 0);var Pn=this.getLine(In);return Bn==null&&(Bn=Pn.length),Bn=Math.min(Math.max(Bn,0),Pn.length),{row:In,column:Bn}},Dn.prototype.clonePos=function(In){return{row:In.row,column:In.column}},Dn.prototype.pos=function(In,Bn){return{row:In,column:Bn}},Dn.prototype.$clipPosition=function(In){var Bn=this.getLength();return In.row>=Bn?(In.row=Math.max(0,Bn-1),In.column=this.getLine(Bn-1).length):(In.row=Math.max(0,In.row),In.column=Math.min(Math.max(In.column,0),this.getLine(In.row).length)),In},Dn.prototype.insertFullLines=function(In,Bn){In=Math.min(Math.max(In,0),this.getLength());var Ln=0;In<this.getLength()?(Bn=Bn.concat([""]),Ln=0):(Bn=[""].concat(Bn),In--,Ln=this.$lines[In].length),this.insertMergedLines({row:In,column:Ln},Bn)},Dn.prototype.insertMergedLines=function(In,Bn){var Ln=this.clippedPos(In.row,In.column),Pn={row:Ln.row+Bn.length-1,column:(Bn.length==1?Ln.column:0)+Bn[Bn.length-1].length};return this.applyDelta({start:Ln,end:Pn,action:"insert",lines:Bn}),this.clonePos(Pn)},Dn.prototype.remove=function(In){var Bn=this.clippedPos(In.start.row,In.start.column),Ln=this.clippedPos(In.end.row,In.end.column);return this.applyDelta({start:Bn,end:Ln,action:"remove",lines:this.getLinesForRange({start:Bn,end:Ln})}),this.clonePos(Bn)},Dn.prototype.removeInLine=function(In,Bn,Ln){var Pn=this.clippedPos(In,Bn),Zn=this.clippedPos(In,Ln);return this.applyDelta({start:Pn,end:Zn,action:"remove",lines:this.getLinesForRange({start:Pn,end:Zn})},!0),this.clonePos(Pn)},Dn.prototype.removeFullLines=function(In,Bn){In=Math.min(Math.max(0,In),this.getLength()-1),Bn=Math.min(Math.max(0,Bn),this.getLength()-1);var Ln=Bn==this.getLength()-1&&In>0,Pn=Bn<this.getLength()-1,Zn=Ln?In-1:In,Jn=Ln?this.getLine(Zn).length:0,Xn=Pn?Bn+1:Bn,mi=Pn?0:this.getLine(Xn).length,ci=new zn(Zn,Jn,Xn,mi),oi=this.$lines.slice(In,Bn+1);return this.applyDelta({start:ci.start,end:ci.end,action:"remove",lines:this.getLinesForRange(ci)}),oi},Dn.prototype.removeNewLine=function(In){In<this.getLength()-1&&In>=0&&this.applyDelta({start:this.pos(In,this.getLine(In).length),end:this.pos(In+1,0),action:"remove",lines:["",""]})},Dn.prototype.replace=function(In,Bn){if(In instanceof zn||(In=zn.fromPoints(In.start,In.end)),Bn.length===0&&In.isEmpty())return In.start;if(Bn==this.getTextRange(In))return In.end;this.remove(In);var Ln;return Bn?Ln=this.insert(In.start,Bn):Ln=In.start,Ln},Dn.prototype.applyDeltas=function(In){for(var Bn=0;Bn<In.length;Bn++)this.applyDelta(In[Bn])},Dn.prototype.revertDeltas=function(In){for(var Bn=In.length-1;Bn>=0;Bn--)this.revertDelta(In[Bn])},Dn.prototype.applyDelta=function(In,Bn){var Ln=In.action=="insert";(Ln?In.lines.length<=1&&!In.lines[0]:!zn.comparePoints(In.start,In.end))||(Ln&&In.lines.length>2e4?this.$splitAndapplyLargeDelta(In,2e4):(Kn(this.$lines,In,Bn),this._signal("change",In)))},Dn.prototype.$safeApplyDelta=function(In){var Bn=this.$lines.length;(In.action=="remove"&&In.start.row<Bn&&In.end.row<Bn||In.action=="insert"&&In.start.row<=Bn)&&this.applyDelta(In)},Dn.prototype.$splitAndapplyLargeDelta=function(In,Bn){for(var Ln=In.lines,Pn=Ln.length-Bn+1,Zn=In.start.row,Jn=In.start.column,Xn=0,mi=0;Xn<Pn;Xn=mi){mi+=Bn-1;var ci=Ln.slice(Xn,mi);ci.push(""),this.applyDelta({start:this.pos(Zn+Xn,Jn),end:this.pos(Zn+mi,Jn=0),action:In.action,lines:ci},!0)}In.lines=Ln.slice(Xn),In.start.row=Zn+Xn,In.start.column=Jn,this.applyDelta(In,!0)},Dn.prototype.revertDelta=function(In){this.$safeApplyDelta({start:this.clonePos(In.start),end:this.clonePos(In.end),action:In.action=="insert"?"remove":"insert",lines:In.lines.slice()})},Dn.prototype.indexToPosition=function(In,Bn){for(var Ln=this.$lines||this.getAllLines(),Pn=this.getNewLineCharacter().length,Zn=Bn||0,Jn=Ln.length;Zn<Jn;Zn++)if(In-=Ln[Zn].length+Pn,In<0)return{row:Zn,column:In+Ln[Zn].length+Pn};return{row:Jn-1,column:In+Ln[Jn-1].length+Pn}},Dn.prototype.positionToIndex=function(In,Bn){for(var Ln=this.$lines||this.getAllLines(),Pn=this.getNewLineCharacter().length,Zn=0,Jn=Math.min(In.row,Ln.length),Xn=Bn||0;Xn<Jn;++Xn)Zn+=Ln[Xn].length+Pn;return Zn+In.column},Dn.prototype.$split=function(In){return In.split(/\r\n|\r|\n/)},Dn}();Nn.prototype.$autoNewLine="",Nn.prototype.$newLineMode="auto",Hn.implement(Nn.prototype,Qn),kn.Document=Nn}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(_n,kn,qn){var Hn=_n("./lib/oop"),Kn=_n("./lib/event_emitter").EventEmitter,Qn=function(){function zn(Wn,Nn){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=Wn;var Dn=this;this.$worker=function(){if(Dn.running){for(var In=new Date,Bn=Dn.currentLine,Ln=-1,Pn=Dn.doc,Zn=Bn;Dn.lines[Bn];)Bn++;var Jn=Pn.getLength(),Xn=0;for(Dn.running=!1;Bn<Jn;){Dn.$tokenizeRow(Bn),Ln=Bn;do Bn++;while(Dn.lines[Bn]);if(Xn++,Xn%5===0&&new Date-In>20){Dn.running=setTimeout(Dn.$worker,20);break}}Dn.currentLine=Bn,Ln==-1&&(Ln=Bn),Zn<=Ln&&Dn.fireUpdateEvent(Zn,Ln)}}}return zn.prototype.setTokenizer=function(Wn){this.tokenizer=Wn,this.lines=[],this.states=[],this.start(0)},zn.prototype.setDocument=function(Wn){this.doc=Wn,this.lines=[],this.states=[],this.stop()},zn.prototype.fireUpdateEvent=function(Wn,Nn){var Dn={first:Wn,last:Nn};this._signal("update",{data:Dn})},zn.prototype.start=function(Wn){this.currentLine=Math.min(Wn||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)},zn.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},zn.prototype.$updateOnChange=function(Wn){var Nn=Wn.start.row,Dn=Wn.end.row-Nn;if(Dn===0)this.lines[Nn]=null;else if(Wn.action=="remove")this.lines.splice(Nn,Dn+1,null),this.states.splice(Nn,Dn+1,null);else{var In=Array(Dn+1);In.unshift(Nn,1),this.lines.splice.apply(this.lines,In),this.states.splice.apply(this.states,In)}this.currentLine=Math.min(Nn,this.currentLine,this.doc.getLength()),this.stop()},zn.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},zn.prototype.getTokens=function(Wn){return this.lines[Wn]||this.$tokenizeRow(Wn)},zn.prototype.getState=function(Wn){return this.currentLine==Wn&&this.$tokenizeRow(Wn),this.states[Wn]||"start"},zn.prototype.$tokenizeRow=function(Wn){var Nn=this.doc.getLine(Wn),Dn=this.states[Wn-1],In=this.tokenizer.getLineTokens(Nn,Dn,Wn);return this.states[Wn]+""!=In.state+""?(this.states[Wn]=In.state,this.lines[Wn+1]=null,this.currentLine>Wn+1&&(this.currentLine=Wn+1)):this.currentLine==Wn&&(this.currentLine=Wn+1),this.lines[Wn]=In.tokens},zn.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},zn}();Hn.implement(Qn.prototype,Kn),kn.BackgroundTokenizer=Qn}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(_n,kn,qn){var Hn=_n("./lib/lang"),Kn=_n("./range").Range,Qn=function(){function zn(Wn,Nn,Dn){Dn===void 0&&(Dn="text"),this.setRegexp(Wn),this.clazz=Nn,this.type=Dn}return zn.prototype.setRegexp=function(Wn){this.regExp+""!=Wn+""&&(this.regExp=Wn,this.cache=[])},zn.prototype.update=function(Wn,Nn,Dn,In){if(this.regExp)for(var Bn=In.firstRow,Ln=In.lastRow,Pn={},Zn=Bn;Zn<=Ln;Zn++){var Jn=this.cache[Zn];Jn==null&&(Jn=Hn.getMatchOffsets(Dn.getLine(Zn),this.regExp),Jn.length>this.MAX_RANGES&&(Jn=Jn.slice(0,this.MAX_RANGES)),Jn=Jn.map(function(oi){return new Kn(Zn,oi.offset,Zn,oi.offset+oi.length)}),this.cache[Zn]=Jn.length?Jn:"");for(var Xn=Jn.length;Xn--;){var mi=Jn[Xn].toScreenRange(Dn),ci=mi.toString();Pn[ci]||(Pn[ci]=!0,Nn.drawSingleLineMarker(Wn,mi,this.clazz,In))}}},zn}();Qn.prototype.MAX_RANGES=500,kn.SearchHighlight=Qn}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(_n,kn,qn){var Hn=function(){function oi(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return oi.prototype.addSession=function(ei){this.$session=ei},oi.prototype.add=function(ei,fi,gi){if(!this.$fromUndo&&ei!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),fi===!1||!this.lastDeltas){this.lastDeltas=[];var yi=this.$undoStack.length;yi>this.$undoDepth-1&&this.$undoStack.splice(0,yi-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),ei.id=this.$rev=++this.$maxRev}(ei.action=="remove"||ei.action=="insert")&&(this.$lastDelta=ei),this.lastDeltas.push(ei)}},oi.prototype.addSelection=function(ei,fi){this.selections.push({value:ei,rev:fi||this.$rev})},oi.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},oi.prototype.markIgnored=function(ei,fi){fi==null&&(fi=this.$rev+1);for(var gi=this.$undoStack,yi=gi.length;yi--;){var pi=gi[yi][0];if(pi.id<=ei)break;pi.id<fi&&(pi.ignore=!0)}this.lastDeltas=null},oi.prototype.getSelection=function(ei,fi){for(var gi=this.selections,yi=gi.length;yi--;){var pi=gi[yi];if(pi.rev<ei)return fi&&(pi=gi[yi+1]),pi}},oi.prototype.getRevision=function(){return this.$rev},oi.prototype.getDeltas=function(ei,fi){fi==null&&(fi=this.$rev+1);for(var gi=this.$undoStack,yi=null,pi=0,$i=gi.length;$i--;){var si=gi[$i][0];if(si.id<fi&&!yi&&(yi=$i+1),si.id<=ei){pi=$i+1;break}}return gi.slice(pi,yi)},oi.prototype.getChangedRanges=function(ei,fi){fi==null&&(fi=this.$rev+1)},oi.prototype.getChangedLines=function(ei,fi){fi==null&&(fi=this.$rev+1)},oi.prototype.undo=function(ei,fi){this.lastDeltas=null;var gi=this.$undoStack;if(Kn(gi,gi.length)){ei||(ei=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var yi=gi.pop(),pi=null;return yi&&(pi=ei.undoChanges(yi,fi),this.$redoStack.push(yi),this.$syncRev()),this.$fromUndo=!1,pi}},oi.prototype.redo=function(ei,fi){if(this.lastDeltas=null,ei||(ei=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var gi=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);ci(this.$redoStack,gi),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function($i){$i[0].id=++this.$maxRev},this)}var yi=this.$redoStack.pop(),pi=null;return yi&&(pi=ei.redoChanges(yi,fi),this.$undoStack.push(yi),this.$syncRev()),this.$fromUndo=!1,pi},oi.prototype.$syncRev=function(){var ei=this.$undoStack,fi=ei[ei.length-1],gi=fi&&fi[0].id||0;this.$redoStackBaseRev=gi,this.$rev=gi},oi.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=[]},oi.prototype.canUndo=function(){return this.$undoStack.length>0},oi.prototype.canRedo=function(){return this.$redoStack.length>0},oi.prototype.bookmark=function(ei){ei==null&&(ei=this.$rev),this.mark=ei},oi.prototype.isAtBookmark=function(){return this.$rev===this.mark},oi.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},oi.prototype.fromJSON=function(ei){this.reset(),this.$undoStack=ei.$undoStack,this.$redoStack=ei.$redoStack},oi.prototype.$prettyPrint=function(ei){return ei?Dn(ei):Dn(this.$undoStack)+`
192
+ ---
193
+ `+Dn(this.$redoStack)},oi}();Hn.prototype.hasUndo=Hn.prototype.canUndo,Hn.prototype.hasRedo=Hn.prototype.canRedo,Hn.prototype.isClean=Hn.prototype.isAtBookmark,Hn.prototype.markClean=Hn.prototype.bookmark;function Kn(oi,ei){for(var fi=ei;fi--;){var gi=oi[fi];if(gi&&!gi[0].ignore){for(;fi<ei-1;){var yi=Ln(oi[fi],oi[fi+1]);oi[fi]=yi[0],oi[fi+1]=yi[1],fi++}return!0}}}var Qn=_n("./range").Range,zn=Qn.comparePoints;Qn.comparePoints;function Wn(oi){return{row:oi.row,column:oi.column}}function Nn(oi){return{start:Wn(oi.start),end:Wn(oi.end),action:oi.action,lines:oi.lines.slice()}}function Dn(oi){if(oi=oi||this,Array.isArray(oi))return oi.map(Dn).join(`
194
+ `);var ei="";return oi.action?(ei=oi.action=="insert"?"+":"-",ei+="["+oi.lines+"]"):oi.value&&(Array.isArray(oi.value)?ei=oi.value.map(In).join(`
195
+ `):ei=In(oi.value)),oi.start&&(ei+=In(oi)),(oi.id||oi.rev)&&(ei+=" ("+(oi.id||oi.rev)+")"),ei}function In(oi){return oi.start.row+":"+oi.start.column+"=>"+oi.end.row+":"+oi.end.column}function Bn(oi,ei){var fi=oi.action=="insert",gi=ei.action=="insert";if(fi&&gi)if(zn(ei.start,oi.end)>=0)Zn(ei,oi,-1);else if(zn(ei.start,oi.start)<=0)Zn(oi,ei,1);else return null;else if(fi&&!gi)if(zn(ei.start,oi.end)>=0)Zn(ei,oi,-1);else if(zn(ei.end,oi.start)<=0)Zn(oi,ei,-1);else return null;else if(!fi&&gi)if(zn(ei.start,oi.start)>=0)Zn(ei,oi,1);else if(zn(ei.start,oi.start)<=0)Zn(oi,ei,1);else return null;else if(!fi&&!gi)if(zn(ei.start,oi.start)>=0)Zn(ei,oi,1);else if(zn(ei.end,oi.start)<=0)Zn(oi,ei,-1);else return null;return[ei,oi]}function Ln(oi,ei){for(var fi=oi.length;fi--;)for(var gi=0;gi<ei.length;gi++)if(!Bn(oi[fi],ei[gi])){for(;fi<oi.length;){for(;gi--;)Bn(ei[gi],oi[fi]);gi=ei.length,fi++}return[oi,ei]}return oi.selectionBefore=ei.selectionBefore=oi.selectionAfter=ei.selectionAfter=null,[ei,oi]}function Pn(oi,ei){var fi=oi.action=="insert",gi=ei.action=="insert";if(fi&&gi)zn(oi.start,ei.start)<0?Zn(ei,oi,1):Zn(oi,ei,1);else if(fi&&!gi)zn(oi.start,ei.end)>=0?Zn(oi,ei,-1):(zn(oi.start,ei.start)<=0||Zn(oi,Qn.fromPoints(ei.start,oi.start),-1),Zn(ei,oi,1));else if(!fi&&gi)zn(ei.start,oi.end)>=0?Zn(ei,oi,-1):(zn(ei.start,oi.start)<=0||Zn(ei,Qn.fromPoints(oi.start,ei.start),-1),Zn(oi,ei,1));else if(!fi&&!gi)if(zn(ei.start,oi.end)>=0)Zn(ei,oi,-1);else if(zn(ei.end,oi.start)<=0)Zn(oi,ei,-1);else{var yi,pi;return zn(oi.start,ei.start)<0&&(yi=oi,oi=Xn(oi,ei.start)),zn(oi.end,ei.end)>0&&(pi=Xn(oi,ei.end)),Jn(ei.end,oi.start,oi.end,-1),pi&&!yi&&(oi.lines=pi.lines,oi.start=pi.start,oi.end=pi.end,pi=oi),[ei,yi,pi].filter(Boolean)}return[ei,oi]}function Zn(oi,ei,fi){Jn(oi.start,ei.start,ei.end,fi),Jn(oi.end,ei.start,ei.end,fi)}function Jn(oi,ei,fi,gi){oi.row==(gi==1?ei:fi).row&&(oi.column+=gi*(fi.column-ei.column)),oi.row+=gi*(fi.row-ei.row)}function Xn(oi,ei){var fi=oi.lines,gi=oi.end;oi.end=Wn(ei);var yi=oi.end.row-oi.start.row,pi=fi.splice(yi,fi.length),$i=yi?ei.column:ei.column-oi.start.column;fi.push(pi[0].substring(0,$i)),pi[0]=pi[0].substr($i);var si={start:Wn(ei),end:gi,lines:pi,action:oi.action};return si}function mi(oi,ei){ei=Nn(ei);for(var fi=oi.length;fi--;){for(var gi=oi[fi],yi=0;yi<gi.length;yi++){var pi=gi[yi],$i=Pn(pi,ei);ei=$i[0],$i.length!=2&&($i[2]?(gi.splice(yi+1,1,$i[1],$i[2]),yi++):$i[1]||(gi.splice(yi,1),yi--))}gi.length||oi.splice(fi,1)}return oi}function ci(oi,ei){for(var fi=0;fi<ei.length;fi++)for(var gi=ei[fi],yi=0;yi<gi.length;yi++)mi(oi,gi[yi])}kn.UndoManager=Hn}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(_n,kn,qn){var Hn=_n("../range").Range,Kn=function(){function Qn(zn,Wn){this.foldData=zn,Array.isArray(Wn)?this.folds=Wn:Wn=this.folds=[Wn];var Nn=Wn[Wn.length-1];this.range=new Hn(Wn[0].start.row,Wn[0].start.column,Nn.end.row,Nn.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(Dn){Dn.setFoldLine(this)},this)}return Qn.prototype.shiftRow=function(zn){this.start.row+=zn,this.end.row+=zn,this.folds.forEach(function(Wn){Wn.start.row+=zn,Wn.end.row+=zn})},Qn.prototype.addFold=function(zn){if(zn.sameRow){if(zn.start.row<this.startRow||zn.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(zn),this.folds.sort(function(Wn,Nn){return-Wn.range.compareEnd(Nn.start.row,Nn.start.column)}),this.range.compareEnd(zn.start.row,zn.start.column)>0?(this.end.row=zn.end.row,this.end.column=zn.end.column):this.range.compareStart(zn.end.row,zn.end.column)<0&&(this.start.row=zn.start.row,this.start.column=zn.start.column)}else if(zn.start.row==this.end.row)this.folds.push(zn),this.end.row=zn.end.row,this.end.column=zn.end.column;else if(zn.end.row==this.start.row)this.folds.unshift(zn),this.start.row=zn.start.row,this.start.column=zn.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");zn.foldLine=this},Qn.prototype.containsRow=function(zn){return zn>=this.start.row&&zn<=this.end.row},Qn.prototype.walk=function(zn,Wn,Nn){var Dn=0,In=this.folds,Bn,Ln,Pn,Zn=!0;Wn==null&&(Wn=this.end.row,Nn=this.end.column);for(var Jn=0;Jn<In.length;Jn++){if(Bn=In[Jn],Ln=Bn.range.compareStart(Wn,Nn),Ln==-1){zn(null,Wn,Nn,Dn,Zn);return}if(Pn=zn(null,Bn.start.row,Bn.start.column,Dn,Zn),Pn=!Pn&&zn(Bn.placeholder,Bn.start.row,Bn.start.column,Dn),Pn||Ln===0)return;Zn=!Bn.sameRow,Dn=Bn.end.column}zn(null,Wn,Nn,Dn,Zn)},Qn.prototype.getNextFoldTo=function(zn,Wn){for(var Nn,Dn,In=0;In<this.folds.length;In++){if(Nn=this.folds[In],Dn=Nn.range.compareEnd(zn,Wn),Dn==-1)return{fold:Nn,kind:"after"};if(Dn===0)return{fold:Nn,kind:"inside"}}return null},Qn.prototype.addRemoveChars=function(zn,Wn,Nn){var Dn=this.getNextFoldTo(zn,Wn),In,Bn;if(Dn){if(In=Dn.fold,Dn.kind=="inside"&&In.start.column!=Wn&&In.start.row!=zn)window.console&&window.console.log(zn,Wn,In);else if(In.start.row==zn){Bn=this.folds;var Ln=Bn.indexOf(In);for(Ln===0&&(this.start.column+=Nn),Ln;Ln<Bn.length;Ln++){if(In=Bn[Ln],In.start.column+=Nn,!In.sameRow)return;In.end.column+=Nn}this.end.column+=Nn}}},Qn.prototype.split=function(zn,Wn){var Nn=this.getNextFoldTo(zn,Wn);if(!Nn||Nn.kind=="inside")return null;var Dn=Nn.fold,In=this.folds,Bn=this.foldData,Ln=In.indexOf(Dn),Pn=In[Ln-1];this.end.row=Pn.end.row,this.end.column=Pn.end.column,In=In.splice(Ln,In.length-Ln);var Zn=new Qn(Bn,In);return Bn.splice(Bn.indexOf(this)+1,0,Zn),Zn},Qn.prototype.merge=function(zn){for(var Wn=zn.folds,Nn=0;Nn<Wn.length;Nn++)this.addFold(Wn[Nn]);var Dn=this.foldData;Dn.splice(Dn.indexOf(zn),1)},Qn.prototype.toString=function(){var zn=[this.range.toString()+": ["];return this.folds.forEach(function(Wn){zn.push(" "+Wn.toString())}),zn.push("]"),zn.join(`
196
+ `)},Qn.prototype.idxToPosition=function(zn){for(var Wn=0,Nn=0;Nn<this.folds.length;Nn++){var Dn=this.folds[Nn];if(zn-=Dn.start.column-Wn,zn<0)return{row:Dn.start.row,column:Dn.start.column+zn};if(zn-=Dn.placeholder.length,zn<0)return Dn.start;Wn=Dn.end.column}return{row:this.end.row,column:this.end.column+zn}},Qn}();kn.FoldLine=Kn}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(_n,kn,qn){var Hn=_n("./range").Range,Kn=Hn.comparePoints,Qn=function(){function zn(){this.ranges=[],this.$bias=1}return zn.prototype.pointIndex=function(Wn,Nn,Dn){for(var In=this.ranges,Bn=Dn||0;Bn<In.length;Bn++){var Ln=In[Bn],Pn=Kn(Wn,Ln.end);if(!(Pn>0)){var Zn=Kn(Wn,Ln.start);return Pn===0?Nn&&Zn!==0?-Bn-2:Bn:Zn>0||Zn===0&&!Nn?Bn:-Bn-1}}return-Bn-1},zn.prototype.add=function(Wn){var Nn=!Wn.isEmpty(),Dn=this.pointIndex(Wn.start,Nn);Dn<0&&(Dn=-Dn-1);var In=this.pointIndex(Wn.end,Nn,Dn);return In<0?In=-In-1:In++,this.ranges.splice(Dn,In-Dn,Wn)},zn.prototype.addList=function(Wn){for(var Nn=[],Dn=Wn.length;Dn--;)Nn.push.apply(Nn,this.add(Wn[Dn]));return Nn},zn.prototype.substractPoint=function(Wn){var Nn=this.pointIndex(Wn);if(Nn>=0)return this.ranges.splice(Nn,1)},zn.prototype.merge=function(){var Wn=[],Nn=this.ranges;Nn=Nn.sort(function(Pn,Zn){return Kn(Pn.start,Zn.start)});for(var Dn=Nn[0],In,Bn=1;Bn<Nn.length;Bn++){In=Dn,Dn=Nn[Bn];var Ln=Kn(In.end,Dn.start);Ln<0||Ln==0&&!In.isEmpty()&&!Dn.isEmpty()||(Kn(In.end,Dn.end)<0&&(In.end.row=Dn.end.row,In.end.column=Dn.end.column),Nn.splice(Bn,1),Wn.push(Dn),Dn=In,Bn--)}return this.ranges=Nn,Wn},zn.prototype.contains=function(Wn,Nn){return this.pointIndex({row:Wn,column:Nn})>=0},zn.prototype.containsPoint=function(Wn){return this.pointIndex(Wn)>=0},zn.prototype.rangeAtPoint=function(Wn){var Nn=this.pointIndex(Wn);if(Nn>=0)return this.ranges[Nn]},zn.prototype.clipRows=function(Wn,Nn){var Dn=this.ranges;if(Dn[0].start.row>Nn||Dn[Dn.length-1].start.row<Wn)return[];var In=this.pointIndex({row:Wn,column:0});In<0&&(In=-In-1);var Bn=this.pointIndex({row:Nn,column:0},In);Bn<0&&(Bn=-Bn-1);for(var Ln=[],Pn=In;Pn<Bn;Pn++)Ln.push(Dn[Pn]);return Ln},zn.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},zn.prototype.attach=function(Wn){this.session&&this.detach(),this.session=Wn,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},zn.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},zn.prototype.$onChange=function(Wn){for(var Nn=Wn.start,Dn=Wn.end,In=Nn.row,Bn=Dn.row,Ln=this.ranges,Pn=0,Zn=Ln.length;Pn<Zn;Pn++){var Jn=Ln[Pn];if(Jn.end.row>=In)break}if(Wn.action=="insert")for(var Xn=Bn-In,mi=-Nn.column+Dn.column;Pn<Zn;Pn++){var Jn=Ln[Pn];if(Jn.start.row>In)break;if(Jn.start.row==In&&Jn.start.column>=Nn.column&&(Jn.start.column==Nn.column&&this.$bias<=0||(Jn.start.column+=mi,Jn.start.row+=Xn)),Jn.end.row==In&&Jn.end.column>=Nn.column){if(Jn.end.column==Nn.column&&this.$bias<0)continue;Jn.end.column==Nn.column&&mi>0&&Pn<Zn-1&&Jn.end.column>Jn.start.column&&Jn.end.column==Ln[Pn+1].start.column&&(Jn.end.column-=mi),Jn.end.column+=mi,Jn.end.row+=Xn}}else for(var Xn=In-Bn,mi=Nn.column-Dn.column;Pn<Zn;Pn++){var Jn=Ln[Pn];if(Jn.start.row>Bn)break;Jn.end.row<Bn&&(In<Jn.end.row||In==Jn.end.row&&Nn.column<Jn.end.column)?(Jn.end.row=In,Jn.end.column=Nn.column):Jn.end.row==Bn?Jn.end.column<=Dn.column?(Xn||Jn.end.column>Nn.column)&&(Jn.end.column=Nn.column,Jn.end.row=Nn.row):(Jn.end.column+=mi,Jn.end.row+=Xn):Jn.end.row>Bn&&(Jn.end.row+=Xn),Jn.start.row<Bn&&(In<Jn.start.row||In==Jn.start.row&&Nn.column<Jn.start.column)?(Jn.start.row=In,Jn.start.column=Nn.column):Jn.start.row==Bn?Jn.start.column<=Dn.column?(Xn||Jn.start.column>Nn.column)&&(Jn.start.column=Nn.column,Jn.start.row=Nn.row):(Jn.start.column+=mi,Jn.start.row+=Xn):Jn.start.row>Bn&&(Jn.start.row+=Xn)}if(Xn!=0&&Pn<Zn)for(;Pn<Zn;Pn++){var Jn=Ln[Pn];Jn.start.row+=Xn,Jn.end.row+=Xn}},zn}();Qn.prototype.comparePoints=Kn,kn.RangeList=Qn}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(_n,kn,qn){var Hn=this&&this.__extends||function(){var In=function(Bn,Ln){return In=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pn,Zn){Pn.__proto__=Zn}||function(Pn,Zn){for(var Jn in Zn)Object.prototype.hasOwnProperty.call(Zn,Jn)&&(Pn[Jn]=Zn[Jn])},In(Bn,Ln)};return function(Bn,Ln){if(typeof Ln!="function"&&Ln!==null)throw new TypeError("Class extends value "+String(Ln)+" is not a constructor or null");In(Bn,Ln);function Pn(){this.constructor=Bn}Bn.prototype=Ln===null?Object.create(Ln):(Pn.prototype=Ln.prototype,new Pn)}}(),Kn=_n("../range_list").RangeList,Qn=function(In){Hn(Bn,In);function Bn(Ln,Pn){var Zn=In.call(this)||this;return Zn.foldLine=null,Zn.placeholder=Pn,Zn.range=Ln,Zn.start=Ln.start,Zn.end=Ln.end,Zn.sameRow=Ln.start.row==Ln.end.row,Zn.subFolds=Zn.ranges=[],Zn}return Bn.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},Bn.prototype.setFoldLine=function(Ln){this.foldLine=Ln,this.subFolds.forEach(function(Pn){Pn.setFoldLine(Ln)})},Bn.prototype.clone=function(){var Ln=this.range.clone(),Pn=new Bn(Ln,this.placeholder);return this.subFolds.forEach(function(Zn){Pn.subFolds.push(Zn.clone())}),Pn.collapseChildren=this.collapseChildren,Pn},Bn.prototype.addSubFold=function(Ln){if(!this.range.isEqual(Ln)){Wn(Ln,this.start);for(var Pn=Ln.start.row,Zn=Ln.start.column,Jn=0,Xn=-1;Jn<this.subFolds.length&&(Xn=this.subFolds[Jn].range.compare(Pn,Zn),Xn==1);Jn++);var mi=this.subFolds[Jn],ci=0;if(Xn==0){if(mi.range.containsRange(Ln))return mi.addSubFold(Ln);ci=1}for(var Pn=Ln.range.end.row,Zn=Ln.range.end.column,oi=Jn,Xn=-1;oi<this.subFolds.length&&(Xn=this.subFolds[oi].range.compare(Pn,Zn),Xn==1);oi++);Xn==0&&oi++;for(var ei=this.subFolds.splice(Jn,oi-Jn,Ln),fi=Xn==0?ei.length-1:ei.length,gi=ci;gi<fi;gi++)Ln.addSubFold(ei[gi]);return Ln.setFoldLine(this.foldLine),Ln}},Bn.prototype.restoreRange=function(Ln){return Dn(Ln,this.start)},Bn}(Kn);function zn(In,Bn){In.row-=Bn.row,In.row==0&&(In.column-=Bn.column)}function Wn(In,Bn){zn(In.start,Bn),zn(In.end,Bn)}function Nn(In,Bn){In.row==0&&(In.column+=Bn.column),In.row+=Bn.row}function Dn(In,Bn){Nn(In.start,Bn),Nn(In.end,Bn)}kn.Fold=Qn}),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(_n,kn,qn){var Hn=_n("../range").Range,Kn=_n("./fold_line").FoldLine,Qn=_n("./fold").Fold,zn=_n("../token_iterator").TokenIterator,Wn=_n("../mouse/mouse_event").MouseEvent;function Nn(){this.getFoldAt=function(Dn,In,Bn){var Ln=this.getFoldLine(Dn);if(!Ln)return null;for(var Pn=Ln.folds,Zn=0;Zn<Pn.length;Zn++){var Jn=Pn[Zn].range;if(Jn.contains(Dn,In)){if(Bn==1&&Jn.isEnd(Dn,In)&&!Jn.isEmpty()||Bn==-1&&Jn.isStart(Dn,In)&&!Jn.isEmpty())continue;return Pn[Zn]}}},this.getFoldsInRange=function(Dn){var In=Dn.start,Bn=Dn.end,Ln=this.$foldData,Pn=[];In.column+=1,Bn.column-=1;for(var Zn=0;Zn<Ln.length;Zn++){var Jn=Ln[Zn].range.compareRange(Dn);if(Jn!=2){if(Jn==-2)break;for(var Xn=Ln[Zn].folds,mi=0;mi<Xn.length;mi++){var ci=Xn[mi];if(Jn=ci.range.compareRange(Dn),Jn==-2)break;if(Jn!=2){if(Jn==42)break;Pn.push(ci)}}}}return In.column-=1,Bn.column+=1,Pn},this.getFoldsInRangeList=function(Dn){if(Array.isArray(Dn)){var In=[];Dn.forEach(function(Ln){In=In.concat(this.getFoldsInRange(Ln))},this)}else var In=this.getFoldsInRange(Dn);return In},this.getAllFolds=function(){for(var Dn=[],In=this.$foldData,Bn=0;Bn<In.length;Bn++)for(var Ln=0;Ln<In[Bn].folds.length;Ln++)Dn.push(In[Bn].folds[Ln]);return Dn},this.getFoldStringAt=function(Dn,In,Bn,Ln){if(Ln=Ln||this.getFoldLine(Dn),!Ln)return null;for(var Pn={end:{column:0}},Zn,Jn,Xn=0;Xn<Ln.folds.length;Xn++){Jn=Ln.folds[Xn];var mi=Jn.range.compareEnd(Dn,In);if(mi==-1){Zn=this.getLine(Jn.start.row).substring(Pn.end.column,Jn.start.column);break}else if(mi===0)return null;Pn=Jn}return Zn||(Zn=this.getLine(Jn.start.row).substring(Pn.end.column)),Bn==-1?Zn.substring(0,In-Pn.end.column):Bn==1?Zn.substring(In-Pn.end.column):Zn},this.getFoldLine=function(Dn,In){var Bn=this.$foldData,Ln=0;for(In&&(Ln=Bn.indexOf(In)),Ln==-1&&(Ln=0),Ln;Ln<Bn.length;Ln++){var Pn=Bn[Ln];if(Pn.start.row<=Dn&&Pn.end.row>=Dn)return Pn;if(Pn.end.row>Dn)return null}return null},this.getNextFoldLine=function(Dn,In){var Bn=this.$foldData,Ln=0;for(In&&(Ln=Bn.indexOf(In)),Ln==-1&&(Ln=0),Ln;Ln<Bn.length;Ln++){var Pn=Bn[Ln];if(Pn.end.row>=Dn)return Pn}return null},this.getFoldedRowCount=function(Dn,In){for(var Bn=this.$foldData,Ln=In-Dn+1,Pn=0;Pn<Bn.length;Pn++){var Zn=Bn[Pn],Jn=Zn.end.row,Xn=Zn.start.row;if(Jn>=In){Xn<In&&(Xn>=Dn?Ln-=In-Xn:Ln=0);break}else Jn>=Dn&&(Xn>=Dn?Ln-=Jn-Xn:Ln-=Jn-Dn+1)}return Ln},this.$addFoldLine=function(Dn){return this.$foldData.push(Dn),this.$foldData.sort(function(In,Bn){return In.start.row-Bn.start.row}),Dn},this.addFold=function(Dn,In){var Bn=this.$foldData,Ln=!1,Pn;Dn instanceof Qn?Pn=Dn:(Pn=new Qn(In,Dn),Pn.collapseChildren=In.collapseChildren),this.$clipRangeToDocument(Pn.range);var Zn=Pn.start.row,Jn=Pn.start.column,Xn=Pn.end.row,mi=Pn.end.column,ci=this.getFoldAt(Zn,Jn,1),oi=this.getFoldAt(Xn,mi,-1);if(ci&&oi==ci)return ci.addSubFold(Pn);ci&&!ci.range.isStart(Zn,Jn)&&this.removeFold(ci),oi&&!oi.range.isEnd(Xn,mi)&&this.removeFold(oi);var ei=this.getFoldsInRange(Pn.range);ei.length>0&&(this.removeFolds(ei),Pn.collapseChildren||ei.forEach(function(pi){Pn.addSubFold(pi)}));for(var fi=0;fi<Bn.length;fi++){var gi=Bn[fi];if(Xn==gi.start.row){gi.addFold(Pn),Ln=!0;break}else if(Zn==gi.end.row){if(gi.addFold(Pn),Ln=!0,!Pn.sameRow){var yi=Bn[fi+1];if(yi&&yi.start.row==Xn){gi.merge(yi);break}}break}else if(Xn<=gi.start.row)break}return Ln||(gi=this.$addFoldLine(new Kn(this.$foldData,Pn))),this.$useWrapMode?this.$updateWrapData(gi.start.row,gi.start.row):this.$updateRowLengthCache(gi.start.row,gi.start.row),this.$modified=!0,this._signal("changeFold",{data:Pn,action:"add"}),Pn},this.addFolds=function(Dn){Dn.forEach(function(In){this.addFold(In)},this)},this.removeFold=function(Dn){var In=Dn.foldLine,Bn=In.start.row,Ln=In.end.row,Pn=this.$foldData,Zn=In.folds;if(Zn.length==1)Pn.splice(Pn.indexOf(In),1);else if(In.range.isEnd(Dn.end.row,Dn.end.column))Zn.pop(),In.end.row=Zn[Zn.length-1].end.row,In.end.column=Zn[Zn.length-1].end.column;else if(In.range.isStart(Dn.start.row,Dn.start.column))Zn.shift(),In.start.row=Zn[0].start.row,In.start.column=Zn[0].start.column;else if(Dn.sameRow)Zn.splice(Zn.indexOf(Dn),1);else{var Jn=In.split(Dn.start.row,Dn.start.column);Zn=Jn.folds,Zn.shift(),Jn.start.row=Zn[0].start.row,Jn.start.column=Zn[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(Bn,Ln):this.$updateRowLengthCache(Bn,Ln)),this.$modified=!0,this._signal("changeFold",{data:Dn,action:"remove"})},this.removeFolds=function(Dn){for(var In=[],Bn=0;Bn<Dn.length;Bn++)In.push(Dn[Bn]);In.forEach(function(Ln){this.removeFold(Ln)},this),this.$modified=!0},this.expandFold=function(Dn){this.removeFold(Dn),Dn.subFolds.forEach(function(In){Dn.restoreRange(In),this.addFold(In)},this),Dn.collapseChildren>0&&this.foldAll(Dn.start.row+1,Dn.end.row,Dn.collapseChildren-1),Dn.subFolds=[]},this.expandFolds=function(Dn){Dn.forEach(function(In){this.expandFold(In)},this)},this.unfold=function(Dn,In){var Bn,Ln;if(Dn==null)Bn=new Hn(0,0,this.getLength(),0),In==null&&(In=!0);else if(typeof Dn=="number")Bn=new Hn(Dn,0,Dn,this.getLine(Dn).length);else if("row"in Dn)Bn=Hn.fromPoints(Dn,Dn);else{if(Array.isArray(Dn))return Ln=[],Dn.forEach(function(Zn){Ln=Ln.concat(this.unfold(Zn))},this),Ln;Bn=Dn}Ln=this.getFoldsInRangeList(Bn);for(var Pn=Ln;Ln.length==1&&Hn.comparePoints(Ln[0].start,Bn.start)<0&&Hn.comparePoints(Ln[0].end,Bn.end)>0;)this.expandFolds(Ln),Ln=this.getFoldsInRangeList(Bn);if(In!=!1?this.removeFolds(Ln):this.expandFolds(Ln),Pn.length)return Pn},this.isRowFolded=function(Dn,In){return!!this.getFoldLine(Dn,In)},this.getRowFoldEnd=function(Dn,In){var Bn=this.getFoldLine(Dn,In);return Bn?Bn.end.row:Dn},this.getRowFoldStart=function(Dn,In){var Bn=this.getFoldLine(Dn,In);return Bn?Bn.start.row:Dn},this.getFoldDisplayLine=function(Dn,In,Bn,Ln,Pn){Ln==null&&(Ln=Dn.start.row),Pn==null&&(Pn=0),In==null&&(In=Dn.end.row),Bn==null&&(Bn=this.getLine(In).length);var Zn=this.doc,Jn="";return Dn.walk(function(Xn,mi,ci,oi){if(!(mi<Ln)){if(mi==Ln){if(ci<Pn)return;oi=Math.max(Pn,oi)}Xn!=null?Jn+=Xn:Jn+=Zn.getLine(mi).substring(oi,ci)}},In,Bn),Jn},this.getDisplayLine=function(Dn,In,Bn,Ln){var Pn=this.getFoldLine(Dn);if(Pn)return this.getFoldDisplayLine(Pn,Dn,In,Bn,Ln);var Zn;return Zn=this.doc.getLine(Dn),Zn.substring(Ln||0,In||Zn.length)},this.$cloneFoldData=function(){var Dn=[];return Dn=this.$foldData.map(function(In){var Bn=In.folds.map(function(Ln){return Ln.clone()});return new Kn(Dn,Bn)}),Dn},this.toggleFold=function(Dn){var In=this.selection,Bn=In.getRange(),Ln,Pn;if(Bn.isEmpty()){var Zn=Bn.start;if(Ln=this.getFoldAt(Zn.row,Zn.column),Ln){this.expandFold(Ln);return}else(Pn=this.findMatchingBracket(Zn))?Bn.comparePoint(Pn)==1?Bn.end=Pn:(Bn.start=Pn,Bn.start.column++,Bn.end.column--):(Pn=this.findMatchingBracket({row:Zn.row,column:Zn.column+1}))?(Bn.comparePoint(Pn)==1?Bn.end=Pn:Bn.start=Pn,Bn.start.column++):Bn=this.getCommentFoldRange(Zn.row,Zn.column)||Bn}else{var Jn=this.getFoldsInRange(Bn);if(Dn&&Jn.length){this.expandFolds(Jn);return}else Jn.length==1&&(Ln=Jn[0])}if(Ln||(Ln=this.getFoldAt(Bn.start.row,Bn.start.column)),Ln&&Ln.range.toString()==Bn.toString()){this.expandFold(Ln);return}var Xn="...";if(!Bn.isMultiLine()){if(Xn=this.getTextRange(Bn),Xn.length<4)return;Xn=Xn.trim().substring(0,2)+".."}this.addFold(Xn,Bn)},this.getCommentFoldRange=function(Dn,In,Bn){var Ln=new zn(this,Dn,In),Pn=Ln.getCurrentToken(),Zn=Pn&&Pn.type;if(Pn&&/^comment|string/.test(Zn)){Zn=Zn.match(/comment|string/)[0],Zn=="comment"&&(Zn+="|doc-start|\\.doc");var Jn=new RegExp(Zn),Xn=new Hn;if(Bn!=1){do Pn=Ln.stepBackward();while(Pn&&Jn.test(Pn.type));Pn=Ln.stepForward()}Xn.start.row=Ln.getCurrentTokenRow(),Xn.start.column=Ln.getCurrentTokenColumn()+Pn.value.length,Ln=new zn(this,Dn,In);var mi=this.getState(Ln.$row);if(Bn!=-1){var ci=-1;do if(Pn=Ln.stepForward(),ci==-1){var oi=this.getState(Ln.$row);mi.toString()!==oi.toString()&&(ci=Ln.$row)}else if(Ln.$row>ci)break;while(Pn&&Jn.test(Pn.type));Pn=Ln.stepBackward()}else Pn=Ln.getCurrentToken();return Xn.end.row=Ln.getCurrentTokenRow(),Xn.end.column=Ln.getCurrentTokenColumn(),Xn}},this.foldAll=function(Dn,In,Bn,Ln){Bn==null&&(Bn=1e5);var Pn=this.foldWidgets;if(Pn){In=In||this.getLength(),Dn=Dn||0;for(var Zn=Dn;Zn<In;Zn++)if(Pn[Zn]==null&&(Pn[Zn]=this.getFoldWidget(Zn)),Pn[Zn]=="start"&&!(Ln&&!Ln(Zn))){var Jn=this.getFoldWidgetRange(Zn);Jn&&Jn.isMultiLine()&&Jn.end.row<=In&&Jn.start.row>=Dn&&(Zn=Jn.end.row,Jn.collapseChildren=Bn,this.addFold("...",Jn))}}},this.foldToLevel=function(Dn){for(this.foldAll();Dn-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var Dn=this;this.foldAll(null,null,null,function(In){for(var Bn=Dn.getTokens(In),Ln=0;Ln<Bn.length;Ln++){var Pn=Bn[Ln];if(!(Pn.type=="text"&&/^\s+$/.test(Pn.value)))return!!/comment/.test(Pn.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(Dn){if(!this.$foldStyles[Dn])throw new Error("invalid fold style: "+Dn+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=Dn){this.$foldStyle=Dn,Dn=="manual"&&this.unfold();var In=this.$foldMode;this.$setFolding(null),this.$setFolding(In)}},this.$setFolding=function(Dn){if(this.$foldMode!=Dn){if(this.$foldMode=Dn,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!Dn||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=Dn.getFoldWidget.bind(Dn,this,this.$foldStyle),this.getFoldWidgetRange=Dn.getFoldWidgetRange.bind(Dn,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.getParentFoldRangeData=function(Dn,In){var Bn=this.foldWidgets;if(!Bn||In&&Bn[Dn])return{};for(var Ln=Dn-1,Pn;Ln>=0;){var Zn=Bn[Ln];if(Zn==null&&(Zn=Bn[Ln]=this.getFoldWidget(Ln)),Zn=="start"){var Jn=this.getFoldWidgetRange(Ln);if(Pn||(Pn=Jn),Jn&&Jn.end.row>=Dn)break}Ln--}return{range:Ln!==-1&&Jn,firstRange:Pn}},this.onFoldWidgetClick=function(Dn,In){In instanceof Wn&&(In=In.domEvent);var Bn={children:In.shiftKey,all:In.ctrlKey||In.metaKey,siblings:In.altKey},Ln=this.$toggleFoldWidget(Dn,Bn);if(!Ln){var Pn=In.target||In.srcElement;Pn&&/ace_fold-widget/.test(Pn.className)&&(Pn.className+=" ace_invalid")}},this.$toggleFoldWidget=function(Dn,In){if(this.getFoldWidget){var Bn=this.getFoldWidget(Dn),Ln=this.getLine(Dn),Pn=Bn==="end"?-1:1,Zn=this.getFoldAt(Dn,Pn===-1?0:Ln.length,Pn);if(Zn)return In.children||In.all?this.removeFold(Zn):this.expandFold(Zn),Zn;var Jn=this.getFoldWidgetRange(Dn,!0);if(Jn&&!Jn.isMultiLine()&&(Zn=this.getFoldAt(Jn.start.row,Jn.start.column,1),Zn&&Jn.isEqual(Zn.range)))return this.removeFold(Zn),Zn;if(In.siblings){var Xn=this.getParentFoldRangeData(Dn);if(Xn.range)var mi=Xn.range.start.row+1,ci=Xn.range.end.row;this.foldAll(mi,ci,In.all?1e4:0)}else In.children?(ci=Jn?Jn.end.row:this.getLength(),this.foldAll(Dn+1,ci,In.all?1e4:0)):Jn&&(In.all&&(Jn.collapseChildren=1e4),this.addFold("...",Jn));return Jn}},this.toggleFoldWidget=function(Dn){var In=this.selection.getCursor().row;In=this.getRowFoldStart(In);var Bn=this.$toggleFoldWidget(In,{});if(!Bn){var Ln=this.getParentFoldRangeData(In,!0);if(Bn=Ln.range||Ln.firstRange,Bn){In=Bn.start.row;var Pn=this.getFoldAt(In,this.getLine(In).length,1);Pn?this.removeFold(Pn):this.addFold("...",Bn)}}},this.updateFoldWidgets=function(Dn){var In=Dn.start.row,Bn=Dn.end.row-In;if(Bn===0)this.foldWidgets[In]=null;else if(Dn.action=="remove")this.foldWidgets.splice(In,Bn+1,null);else{var Ln=Array(Bn+1);Ln.unshift(In,1),this.foldWidgets.splice.apply(this.foldWidgets,Ln)}},this.tokenizerUpdateFoldWidgets=function(Dn){var In=Dn.data;In.first!=In.last&&this.foldWidgets.length>In.first&&this.foldWidgets.splice(In.first,this.foldWidgets.length)}}kn.Folding=Nn}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(_n,kn,qn){var Hn=_n("../token_iterator").TokenIterator,Kn=_n("../range").Range;function Qn(){this.findMatchingBracket=function(zn,Wn){if(zn.column==0)return null;var Nn=Wn||this.getLine(zn.row).charAt(zn.column-1);if(Nn=="")return null;var Dn=Nn.match(/([\(\[\{])|([\)\]\}])/);return Dn?Dn[1]?this.$findClosingBracket(Dn[1],zn):this.$findOpeningBracket(Dn[2],zn):null},this.getBracketRange=function(zn){var Wn=this.getLine(zn.row),Nn=!0,Dn,In=Wn.charAt(zn.column-1),Bn=In&&In.match(/([\(\[\{])|([\)\]\}])/);if(Bn||(In=Wn.charAt(zn.column),zn={row:zn.row,column:zn.column+1},Bn=In&&In.match(/([\(\[\{])|([\)\]\}])/),Nn=!1),!Bn)return null;if(Bn[1]){var Ln=this.$findClosingBracket(Bn[1],zn);if(!Ln)return null;Dn=Kn.fromPoints(zn,Ln),Nn||(Dn.end.column++,Dn.start.column--),Dn.cursor=Dn.end}else{var Ln=this.$findOpeningBracket(Bn[2],zn);if(!Ln)return null;Dn=Kn.fromPoints(Ln,zn),Nn||(Dn.start.column++,Dn.end.column--),Dn.cursor=Dn.start}return Dn},this.getMatchingBracketRanges=function(zn,Wn){var Nn=this.getLine(zn.row),Dn=/([\(\[\{])|([\)\]\}])/,In=!Wn&&Nn.charAt(zn.column-1),Bn=In&&In.match(Dn);if(Bn||(In=(Wn===void 0||Wn)&&Nn.charAt(zn.column),zn={row:zn.row,column:zn.column+1},Bn=In&&In.match(Dn)),!Bn)return null;var Ln=new Kn(zn.row,zn.column-1,zn.row,zn.column),Pn=Bn[1]?this.$findClosingBracket(Bn[1],zn):this.$findOpeningBracket(Bn[2],zn);if(!Pn)return[Ln];var Zn=new Kn(Pn.row,Pn.column,Pn.row,Pn.column+1);return[Ln,Zn]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(zn,Wn,Nn){var Dn=this.$brackets[zn],In=1,Bn=new Hn(this,Wn.row,Wn.column),Ln=Bn.getCurrentToken();if(Ln||(Ln=Bn.stepForward()),!!Ln){Nn||(Nn=new RegExp("(\\.?"+Ln.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var Pn=Wn.column-Bn.getCurrentTokenColumn()-2,Zn=Ln.value;;){for(;Pn>=0;){var Jn=Zn.charAt(Pn);if(Jn==Dn){if(In-=1,In==0)return{row:Bn.getCurrentTokenRow(),column:Pn+Bn.getCurrentTokenColumn()}}else Jn==zn&&(In+=1);Pn-=1}do Ln=Bn.stepBackward();while(Ln&&!Nn.test(Ln.type));if(Ln==null)break;Zn=Ln.value,Pn=Zn.length-1}return null}},this.$findClosingBracket=function(zn,Wn,Nn){var Dn=this.$brackets[zn],In=1,Bn=new Hn(this,Wn.row,Wn.column),Ln=Bn.getCurrentToken();if(Ln||(Ln=Bn.stepForward()),!!Ln){Nn||(Nn=new RegExp("(\\.?"+Ln.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var Pn=Wn.column-Bn.getCurrentTokenColumn();;){for(var Zn=Ln.value,Jn=Zn.length;Pn<Jn;){var Xn=Zn.charAt(Pn);if(Xn==Dn){if(In-=1,In==0)return{row:Bn.getCurrentTokenRow(),column:Pn+Bn.getCurrentTokenColumn()}}else Xn==zn&&(In+=1);Pn+=1}do Ln=Bn.stepForward();while(Ln&&!Nn.test(Ln.type));if(Ln==null)break;Pn=0}return null}},this.getMatchingTags=function(zn){var Wn=new Hn(this,zn.row,zn.column),Nn=this.$findTagName(Wn);if(Nn){var Dn=Wn.stepBackward();return Dn.value==="<"?this.$findClosingTag(Wn,Nn):this.$findOpeningTag(Wn,Nn)}},this.$findTagName=function(zn){var Wn=zn.getCurrentToken(),Nn=!1,Dn=!1;if(Wn&&Wn.type.indexOf("tag-name")===-1)do Dn?Wn=zn.stepBackward():Wn=zn.stepForward(),Wn&&(Wn.value==="/>"?Dn=!0:Wn.type.indexOf("tag-name")!==-1&&(Nn=!0));while(Wn&&!Nn);return Wn},this.$findClosingTag=function(zn,Wn){var Nn,Dn=Wn.value,In=Wn.value,Bn=0,Ln=new Kn(zn.getCurrentTokenRow(),zn.getCurrentTokenColumn(),zn.getCurrentTokenRow(),zn.getCurrentTokenColumn()+1);Wn=zn.stepForward();var Pn=new Kn(zn.getCurrentTokenRow(),zn.getCurrentTokenColumn(),zn.getCurrentTokenRow(),zn.getCurrentTokenColumn()+Wn.value.length),Zn=!1;do{if(Nn=Wn,Nn.type.indexOf("tag-close")!==-1&&!Zn){var Jn=new Kn(zn.getCurrentTokenRow(),zn.getCurrentTokenColumn(),zn.getCurrentTokenRow(),zn.getCurrentTokenColumn()+1);Zn=!0}if(Wn=zn.stepForward(),Wn){if(Wn.value===">"&&!Zn){var Jn=new Kn(zn.getCurrentTokenRow(),zn.getCurrentTokenColumn(),zn.getCurrentTokenRow(),zn.getCurrentTokenColumn()+1);Zn=!0}if(Wn.type.indexOf("tag-name")!==-1){if(Dn=Wn.value,In===Dn){if(Nn.value==="<")Bn++;else if(Nn.value==="</"&&(Bn--,Bn<0)){zn.stepBackward();var Xn=new Kn(zn.getCurrentTokenRow(),zn.getCurrentTokenColumn(),zn.getCurrentTokenRow(),zn.getCurrentTokenColumn()+2);Wn=zn.stepForward();var mi=new Kn(zn.getCurrentTokenRow(),zn.getCurrentTokenColumn(),zn.getCurrentTokenRow(),zn.getCurrentTokenColumn()+Wn.value.length);if(Wn.type.indexOf("tag-close")===-1&&(Wn=zn.stepForward()),Wn&&Wn.value===">")var ci=new Kn(zn.getCurrentTokenRow(),zn.getCurrentTokenColumn(),zn.getCurrentTokenRow(),zn.getCurrentTokenColumn()+1);else return}}}else if(In===Dn&&Wn.value==="/>"&&(Bn--,Bn<0))var Xn=new Kn(zn.getCurrentTokenRow(),zn.getCurrentTokenColumn(),zn.getCurrentTokenRow(),zn.getCurrentTokenColumn()+2),mi=Xn,ci=mi,Jn=new Kn(Pn.end.row,Pn.end.column,Pn.end.row,Pn.end.column+1)}}while(Wn&&Bn>=0);if(Ln&&Jn&&Xn&&ci&&Pn&&mi)return{openTag:new Kn(Ln.start.row,Ln.start.column,Jn.end.row,Jn.end.column),closeTag:new Kn(Xn.start.row,Xn.start.column,ci.end.row,ci.end.column),openTagName:Pn,closeTagName:mi}},this.$findOpeningTag=function(zn,Wn){var Nn=zn.getCurrentToken(),Dn=Wn.value,In=0,Bn=zn.getCurrentTokenRow(),Ln=zn.getCurrentTokenColumn(),Pn=Ln+2,Zn=new Kn(Bn,Ln,Bn,Pn);zn.stepForward();var Jn=new Kn(zn.getCurrentTokenRow(),zn.getCurrentTokenColumn(),zn.getCurrentTokenRow(),zn.getCurrentTokenColumn()+Wn.value.length);if(Wn.type.indexOf("tag-close")===-1&&(Wn=zn.stepForward()),!(!Wn||Wn.value!==">")){var Xn=new Kn(zn.getCurrentTokenRow(),zn.getCurrentTokenColumn(),zn.getCurrentTokenRow(),zn.getCurrentTokenColumn()+1);zn.stepBackward(),zn.stepBackward();do if(Wn=Nn,Bn=zn.getCurrentTokenRow(),Ln=zn.getCurrentTokenColumn(),Pn=Ln+Wn.value.length,Nn=zn.stepBackward(),Wn){if(Wn.type.indexOf("tag-name")!==-1){if(Dn===Wn.value)if(Nn.value==="<"){if(In++,In>0){var mi=new Kn(Bn,Ln,Bn,Pn),ci=new Kn(zn.getCurrentTokenRow(),zn.getCurrentTokenColumn(),zn.getCurrentTokenRow(),zn.getCurrentTokenColumn()+1);do Wn=zn.stepForward();while(Wn&&Wn.value!==">");var oi=new Kn(zn.getCurrentTokenRow(),zn.getCurrentTokenColumn(),zn.getCurrentTokenRow(),zn.getCurrentTokenColumn()+1)}}else Nn.value==="</"&&In--}else if(Wn.value==="/>"){for(var ei=0,fi=Nn;fi;){if(fi.type.indexOf("tag-name")!==-1&&fi.value===Dn){In--;break}else if(fi.value==="<")break;fi=zn.stepBackward(),ei++}for(var gi=0;gi<ei;gi++)zn.stepForward()}}while(Nn&&In<=0);if(ci&&oi&&Zn&&Xn&&mi&&Jn)return{openTag:new Kn(ci.start.row,ci.start.column,oi.end.row,oi.end.column),closeTag:new Kn(Zn.start.row,Zn.start.column,Xn.end.row,Xn.end.column),openTagName:mi,closeTagName:Jn}}}}kn.BracketMatch=Qn}),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(_n,kn,qn){var Hn=_n("./lib/oop"),Kn=_n("./lib/lang"),Qn=_n("./bidihandler").BidiHandler,zn=_n("./config"),Wn=_n("./lib/event_emitter").EventEmitter,Nn=_n("./selection").Selection,Dn=_n("./mode/text").Mode,In=_n("./range").Range,Bn=_n("./line_widgets").LineWidgets,Ln=_n("./document").Document,Pn=_n("./background_tokenizer").BackgroundTokenizer,Zn=_n("./search_highlight").SearchHighlight,Jn=_n("./undomanager").UndoManager,Xn=function(){function si(ti,ai){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"+ ++si.$uid,this.$foldData.toString=function(){return this.join(`
197
+ `)},this.bgTokenizer=new Pn(new Dn().getTokenizer(),this);var vi=this;this.bgTokenizer.on("update",function(wi){vi._signal("tokenizerUpdate",wi)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof ti!="object"||!ti.getLine)&&(ti=new Ln(ti)),this.setDocument(ti),this.selection=new Nn(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new Qn(this),zn.resetOptions(this),this.setMode(ai),zn._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return si.prototype.$initOperationListeners=function(){var ti=this;this.curOp=null,this.on("change",function(){ti.curOp||(ti.startOperation(),ti.curOp.selectionBefore=ti.$lastSel),ti.curOp.docChanged=!0},!0),this.on("changeSelection",function(){ti.curOp||(ti.startOperation(),ti.curOp.selectionBefore=ti.$lastSel),ti.curOp.selectionChanged=!0},!0),this.$operationResetTimer=Kn.delayedCall(this.endOperation.bind(this,!0))},si.prototype.startOperation=function(ti){if(this.curOp){if(!ti||this.curOp.command)return;this.prevOp=this.curOp}ti||(ti={}),this.$operationResetTimer.schedule(),this.curOp={command:ti.command||{},args:ti.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",ti)},si.prototype.endOperation=function(ti){if(this.curOp){if(ti&&ti.returnValue===!1){this.curOp=null,this._signal("endOperation",ti);return}if(ti==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var ai=this.selection.toJSON();this.curOp.selectionAfter=ai,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection(ai),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",ti)}},si.prototype.setDocument=function(ti){this.doc&&this.doc.off("change",this.$onChange),this.doc=ti,ti.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},si.prototype.getDocument=function(){return this.doc},Object.defineProperty(si.prototype,"widgetManager",{get:function(){var ti=new Bn(this);return this.widgetManager=ti,this.$editor&&ti.attach(this.$editor),ti},set:function(ti){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:ti})},enumerable:!1,configurable:!0}),si.prototype.$resetRowCache=function(ti){if(!ti){this.$docRowCache=[],this.$screenRowCache=[];return}var ai=this.$docRowCache.length,vi=this.$getRowCacheIndex(this.$docRowCache,ti)+1;ai>vi&&(this.$docRowCache.splice(vi,ai),this.$screenRowCache.splice(vi,ai))},si.prototype.$getRowCacheIndex=function(ti,ai){for(var vi=0,wi=ti.length-1;vi<=wi;){var xi=vi+wi>>1,Si=ti[xi];if(ai>Si)vi=xi+1;else if(ai<Si)wi=xi-1;else return xi}return vi-1},si.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},si.prototype.onChangeFold=function(ti){var ai=ti.data;this.$resetRowCache(ai.start.row)},si.prototype.onChange=function(ti){this.$modified=!0,this.$bidiHandler.onChange(ti),this.$resetRowCache(ti.start.row);var ai=this.$updateInternalDataOnChange(ti);!this.$fromUndo&&this.$undoManager&&(ai&&ai.length&&(this.$undoManager.add({action:"removeFolds",folds:ai},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(ti,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(ti),this._signal("change",ti)},si.prototype.onSelectionChange=function(){this._signal("changeSelection")},si.prototype.setValue=function(ti){this.doc.setValue(ti),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},si.fromJSON=function(ti){typeof ti=="string"&&(ti=JSON.parse(ti));var ai=new Jn;ai.$undoStack=ti.history.undo,ai.$redoStack=ti.history.redo,ai.mark=ti.history.mark,ai.$rev=ti.history.rev;var vi=new si(ti.value);return ti.folds.forEach(function(wi){vi.addFold("...",In.fromPoints(wi.start,wi.end))}),vi.setAnnotations(ti.annotations),vi.setBreakpoints(ti.breakpoints),vi.setMode(ti.mode),vi.setScrollLeft(ti.scrollLeft),vi.setScrollTop(ti.scrollTop),vi.setUndoManager(ai),vi.selection.fromJSON(ti.selection),vi},si.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(ti){return ti.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},si.prototype.toString=function(){return this.doc.getValue()},si.prototype.getSelection=function(){return this.selection},si.prototype.getState=function(ti){return this.bgTokenizer.getState(ti)},si.prototype.getTokens=function(ti){return this.bgTokenizer.getTokens(ti)},si.prototype.getTokenAt=function(ti,ai){var vi=this.bgTokenizer.getTokens(ti),wi,xi=0;if(ai==null){var Si=vi.length-1;xi=this.getLine(ti).length}else for(var Si=0;Si<vi.length&&(xi+=vi[Si].value.length,!(xi>=ai));Si++);return wi=vi[Si],wi?(wi.index=Si,wi.start=xi-wi.value.length,wi):null},si.prototype.setUndoManager=function(ti){if(this.$undoManager=ti,this.$informUndoManager&&this.$informUndoManager.cancel(),ti){var ai=this;ti.addSession(this),this.$syncInformUndoManager=function(){ai.$informUndoManager.cancel(),ai.mergeUndoDeltas=!1},this.$informUndoManager=Kn.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},si.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},si.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},si.prototype.getTabString=function(){return this.getUseSoftTabs()?Kn.stringRepeat(" ",this.getTabSize()):" "},si.prototype.setUseSoftTabs=function(ti){this.setOption("useSoftTabs",ti)},si.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},si.prototype.setTabSize=function(ti){this.setOption("tabSize",ti)},si.prototype.getTabSize=function(){return this.$tabSize},si.prototype.isTabStop=function(ti){return this.$useSoftTabs&&ti.column%this.$tabSize===0},si.prototype.setNavigateWithinSoftTabs=function(ti){this.setOption("navigateWithinSoftTabs",ti)},si.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},si.prototype.setOverwrite=function(ti){this.setOption("overwrite",ti)},si.prototype.getOverwrite=function(){return this.$overwrite},si.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},si.prototype.addGutterDecoration=function(ti,ai){this.$decorations[ti]||(this.$decorations[ti]=""),this.$decorations[ti]+=" "+ai,this._signal("changeBreakpoint",{})},si.prototype.removeGutterDecoration=function(ti,ai){this.$decorations[ti]=(this.$decorations[ti]||"").replace(" "+ai,""),this._signal("changeBreakpoint",{})},si.prototype.getBreakpoints=function(){return this.$breakpoints},si.prototype.setBreakpoints=function(ti){this.$breakpoints=[];for(var ai=0;ai<ti.length;ai++)this.$breakpoints[ti[ai]]="ace_breakpoint";this._signal("changeBreakpoint",{})},si.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},si.prototype.setBreakpoint=function(ti,ai){ai===void 0&&(ai="ace_breakpoint"),ai?this.$breakpoints[ti]=ai:delete this.$breakpoints[ti],this._signal("changeBreakpoint",{})},si.prototype.clearBreakpoint=function(ti){delete this.$breakpoints[ti],this._signal("changeBreakpoint",{})},si.prototype.addMarker=function(ti,ai,vi,wi){var xi=this.$markerId++,Si={range:ti,type:vi||"line",renderer:typeof vi=="function"?vi:null,clazz:ai,inFront:!!wi,id:xi};return wi?(this.$frontMarkers[xi]=Si,this._signal("changeFrontMarker")):(this.$backMarkers[xi]=Si,this._signal("changeBackMarker")),xi},si.prototype.addDynamicMarker=function(ti,ai){if(ti.update){var vi=this.$markerId++;return ti.id=vi,ti.inFront=!!ai,ai?(this.$frontMarkers[vi]=ti,this._signal("changeFrontMarker")):(this.$backMarkers[vi]=ti,this._signal("changeBackMarker")),ti}},si.prototype.removeMarker=function(ti){var ai=this.$frontMarkers[ti]||this.$backMarkers[ti];if(ai){var vi=ai.inFront?this.$frontMarkers:this.$backMarkers;delete vi[ti],this._signal(ai.inFront?"changeFrontMarker":"changeBackMarker")}},si.prototype.getMarkers=function(ti){return ti?this.$frontMarkers:this.$backMarkers},si.prototype.highlight=function(ti){if(!this.$searchHighlight){var ai=new Zn(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(ai)}this.$searchHighlight.setRegexp(ti)},si.prototype.highlightLines=function(ti,ai,vi,wi){typeof ai!="number"&&(vi=ai,ai=ti),vi||(vi="ace_step");var xi=new In(ti,0,ai,1/0);return xi.id=this.addMarker(xi,vi,"fullLine",wi),xi},si.prototype.setAnnotations=function(ti){this.$annotations=ti,this._signal("changeAnnotation",{})},si.prototype.getAnnotations=function(){return this.$annotations||[]},si.prototype.clearAnnotations=function(){this.setAnnotations([])},si.prototype.$detectNewLine=function(ti){var ai=ti.match(/^.*?(\r?\n)/m);ai?this.$autoNewLine=ai[1]:this.$autoNewLine=`
198
+ `},si.prototype.getWordRange=function(ti,ai){var vi=this.getLine(ti),wi=!1;if(ai>0&&(wi=!!vi.charAt(ai-1).match(this.tokenRe)),wi||(wi=!!vi.charAt(ai).match(this.tokenRe)),wi)var xi=this.tokenRe;else if(/^\s+$/.test(vi.slice(ai-1,ai+1)))var xi=/\s/;else var xi=this.nonTokenRe;var Si=ai;if(Si>0){do Si--;while(Si>=0&&vi.charAt(Si).match(xi));Si++}for(var Ei=ai;Ei<vi.length&&vi.charAt(Ei).match(xi);)Ei++;return new In(ti,Si,ti,Ei)},si.prototype.getAWordRange=function(ti,ai){for(var vi=this.getWordRange(ti,ai),wi=this.getLine(vi.end.row);wi.charAt(vi.end.column).match(/[ \t]/);)vi.end.column+=1;return vi},si.prototype.setNewLineMode=function(ti){this.doc.setNewLineMode(ti)},si.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},si.prototype.setUseWorker=function(ti){this.setOption("useWorker",ti)},si.prototype.getUseWorker=function(){return this.$useWorker},si.prototype.onReloadTokenizer=function(ti){var ai=ti.data;this.bgTokenizer.start(ai.first),this._signal("tokenizerUpdate",ti)},si.prototype.setMode=function(ti,ai){if(ti&&typeof ti=="object"){if(ti.getTokenizer)return this.$onChangeMode(ti);var vi=ti,wi=vi.path}else wi=ti||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new Dn),this.$modes[wi]&&!vi){this.$onChangeMode(this.$modes[wi]),ai&&ai();return}this.$modeId=wi,zn.loadModule(["mode",wi],(function(xi){if(this.$modeId!==wi)return ai&&ai();this.$modes[wi]&&!vi?this.$onChangeMode(this.$modes[wi]):xi&&xi.Mode&&(xi=new xi.Mode(vi),vi||(this.$modes[wi]=xi,xi.$id=wi),this.$onChangeMode(xi)),ai&&ai()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},si.prototype.$onChangeMode=function(ti,ai){if(ai||(this.$modeId=ti.$id),this.$mode!==ti){var vi=this.$mode;this.$mode=ti,this.$stopWorker(),this.$useWorker&&this.$startWorker();var wi=ti.getTokenizer();if(wi.on!==void 0){var xi=this.onReloadTokenizer.bind(this);wi.on("update",xi)}this.bgTokenizer.setTokenizer(wi),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=ti.tokenRe,this.nonTokenRe=ti.nonTokenRe,ai||(ti.attachToSession&&ti.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(ti.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:vi,mode:ti}))}},si.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},si.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(ti){zn.warn("Could not load worker",ti),this.$worker=null}},si.prototype.getMode=function(){return this.$mode},si.prototype.setScrollTop=function(ti){this.$scrollTop===ti||isNaN(ti)||(this.$scrollTop=ti,this._signal("changeScrollTop",ti))},si.prototype.getScrollTop=function(){return this.$scrollTop},si.prototype.setScrollLeft=function(ti){this.$scrollLeft===ti||isNaN(ti)||(this.$scrollLeft=ti,this._signal("changeScrollLeft",ti))},si.prototype.getScrollLeft=function(){return this.$scrollLeft},si.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},si.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var ti=0;return this.lineWidgets.forEach(function(ai){ai&&ai.screenWidth>ti&&(ti=ai.screenWidth)}),this.lineWidgetWidth=ti},si.prototype.$computeWidth=function(ti){if(this.$modified||ti){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var ai=this.doc.getAllLines(),vi=this.$rowLengthCache,wi=0,xi=0,Si=this.$foldData[xi],Ei=Si?Si.start.row:1/0,Ri=ai.length,Ni=0;Ni<Ri;Ni++){if(Ni>Ei){if(Ni=Si.end.row+1,Ni>=Ri)break;Si=this.$foldData[xi++],Ei=Si?Si.start.row:1/0}vi[Ni]==null&&(vi[Ni]=this.$getStringScreenWidth(ai[Ni])[0]),vi[Ni]>wi&&(wi=vi[Ni])}this.screenWidth=wi}},si.prototype.getLine=function(ti){return this.doc.getLine(ti)},si.prototype.getLines=function(ti,ai){return this.doc.getLines(ti,ai)},si.prototype.getLength=function(){return this.doc.getLength()},si.prototype.getTextRange=function(ti){return this.doc.getTextRange(ti||this.selection.getRange())},si.prototype.insert=function(ti,ai){return this.doc.insert(ti,ai)},si.prototype.remove=function(ti){return this.doc.remove(ti)},si.prototype.removeFullLines=function(ti,ai){return this.doc.removeFullLines(ti,ai)},si.prototype.undoChanges=function(ti,ai){if(ti.length){this.$fromUndo=!0;for(var vi=ti.length-1;vi!=-1;vi--){var wi=ti[vi];wi.action=="insert"||wi.action=="remove"?this.doc.revertDelta(wi):wi.folds&&this.addFolds(wi.folds)}!ai&&this.$undoSelect&&(ti.selectionBefore?this.selection.fromJSON(ti.selectionBefore):this.selection.setRange(this.$getUndoSelection(ti,!0))),this.$fromUndo=!1}},si.prototype.redoChanges=function(ti,ai){if(ti.length){this.$fromUndo=!0;for(var vi=0;vi<ti.length;vi++){var wi=ti[vi];(wi.action=="insert"||wi.action=="remove")&&this.doc.$safeApplyDelta(wi)}!ai&&this.$undoSelect&&(ti.selectionAfter?this.selection.fromJSON(ti.selectionAfter):this.selection.setRange(this.$getUndoSelection(ti,!1))),this.$fromUndo=!1}},si.prototype.setUndoSelect=function(ti){this.$undoSelect=ti},si.prototype.$getUndoSelection=function(ti,ai){function vi(Ri){return ai?Ri.action!=="insert":Ri.action==="insert"}for(var wi,xi,Si=0;Si<ti.length;Si++){var Ei=ti[Si];if(Ei.start){if(!wi){vi(Ei)?wi=In.fromPoints(Ei.start,Ei.end):wi=In.fromPoints(Ei.start,Ei.start);continue}vi(Ei)?(xi=Ei.start,wi.compare(xi.row,xi.column)==-1&&wi.setStart(xi),xi=Ei.end,wi.compare(xi.row,xi.column)==1&&wi.setEnd(xi)):(xi=Ei.start,wi.compare(xi.row,xi.column)==-1&&(wi=In.fromPoints(Ei.start,Ei.start)))}}return wi},si.prototype.replace=function(ti,ai){return this.doc.replace(ti,ai)},si.prototype.moveText=function(ti,ai,vi){var wi=this.getTextRange(ti),xi=this.getFoldsInRange(ti),Si=In.fromPoints(ai,ai);if(!vi){this.remove(ti);var Ei=ti.start.row-ti.end.row,Ri=Ei?-ti.end.column:ti.start.column-ti.end.column;Ri&&(Si.start.row==ti.end.row&&Si.start.column>ti.end.column&&(Si.start.column+=Ri),Si.end.row==ti.end.row&&Si.end.column>ti.end.column&&(Si.end.column+=Ri)),Ei&&Si.start.row>=ti.end.row&&(Si.start.row+=Ei,Si.end.row+=Ei)}if(Si.end=this.insert(Si.start,wi),xi.length){var Ni=ti.start,Fi=Si.start,Ei=Fi.row-Ni.row,Ri=Fi.column-Ni.column;this.addFolds(xi.map(function(Gi){return Gi=Gi.clone(),Gi.start.row==Ni.row&&(Gi.start.column+=Ri),Gi.end.row==Ni.row&&(Gi.end.column+=Ri),Gi.start.row+=Ei,Gi.end.row+=Ei,Gi}))}return Si},si.prototype.indentRows=function(ti,ai,vi){vi=vi.replace(/\t/g,this.getTabString());for(var wi=ti;wi<=ai;wi++)this.doc.insertInLine({row:wi,column:0},vi)},si.prototype.outdentRows=function(ti){for(var ai=ti.collapseRows(),vi=new In(0,0,0,0),wi=this.getTabSize(),xi=ai.start.row;xi<=ai.end.row;++xi){var Si=this.getLine(xi);vi.start.row=xi,vi.end.row=xi;for(var Ei=0;Ei<wi&&Si.charAt(Ei)==" ";++Ei);Ei<wi&&Si.charAt(Ei)==" "?(vi.start.column=Ei,vi.end.column=Ei+1):(vi.start.column=0,vi.end.column=Ei),this.remove(vi)}},si.prototype.$moveLines=function(ti,ai,vi){if(ti=this.getRowFoldStart(ti),ai=this.getRowFoldEnd(ai),vi<0){var wi=this.getRowFoldStart(ti+vi);if(wi<0)return 0;var xi=wi-ti}else if(vi>0){var wi=this.getRowFoldEnd(ai+vi);if(wi>this.doc.getLength()-1)return 0;var xi=wi-ai}else{ti=this.$clipRowToDocument(ti),ai=this.$clipRowToDocument(ai);var xi=ai-ti+1}var Si=new In(ti,0,ai,Number.MAX_VALUE),Ei=this.getFoldsInRange(Si).map(function(Ni){return Ni=Ni.clone(),Ni.start.row+=xi,Ni.end.row+=xi,Ni}),Ri=vi==0?this.doc.getLines(ti,ai):this.doc.removeFullLines(ti,ai);return this.doc.insertFullLines(ti+xi,Ri),Ei.length&&this.addFolds(Ei),xi},si.prototype.moveLinesUp=function(ti,ai){return this.$moveLines(ti,ai,-1)},si.prototype.moveLinesDown=function(ti,ai){return this.$moveLines(ti,ai,1)},si.prototype.duplicateLines=function(ti,ai){return this.$moveLines(ti,ai,0)},si.prototype.$clipRowToDocument=function(ti){return Math.max(0,Math.min(ti,this.doc.getLength()-1))},si.prototype.$clipColumnToRow=function(ti,ai){return ai<0?0:Math.min(this.doc.getLine(ti).length,ai)},si.prototype.$clipPositionToDocument=function(ti,ai){if(ai=Math.max(0,ai),ti<0)ti=0,ai=0;else{var vi=this.doc.getLength();ti>=vi?(ti=vi-1,ai=this.doc.getLine(vi-1).length):ai=Math.min(this.doc.getLine(ti).length,ai)}return{row:ti,column:ai}},si.prototype.$clipRangeToDocument=function(ti){ti.start.row<0?(ti.start.row=0,ti.start.column=0):ti.start.column=this.$clipColumnToRow(ti.start.row,ti.start.column);var ai=this.doc.getLength()-1;return ti.end.row>ai?(ti.end.row=ai,ti.end.column=this.doc.getLine(ai).length):ti.end.column=this.$clipColumnToRow(ti.end.row,ti.end.column),ti},si.prototype.setUseWrapMode=function(ti){if(ti!=this.$useWrapMode){if(this.$useWrapMode=ti,this.$modified=!0,this.$resetRowCache(0),ti){var ai=this.getLength();this.$wrapData=Array(ai),this.$updateWrapData(0,ai-1)}this._signal("changeWrapMode")}},si.prototype.getUseWrapMode=function(){return this.$useWrapMode},si.prototype.setWrapLimitRange=function(ti,ai){(this.$wrapLimitRange.min!==ti||this.$wrapLimitRange.max!==ai)&&(this.$wrapLimitRange={min:ti,max:ai},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},si.prototype.adjustWrapLimit=function(ti,ai){var vi=this.$wrapLimitRange;vi.max<0&&(vi={min:ai,max:ai});var wi=this.$constrainWrapLimit(ti,vi.min,vi.max);return wi!=this.$wrapLimit&&wi>1?(this.$wrapLimit=wi,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},si.prototype.$constrainWrapLimit=function(ti,ai,vi){return ai&&(ti=Math.max(ai,ti)),vi&&(ti=Math.min(vi,ti)),ti},si.prototype.getWrapLimit=function(){return this.$wrapLimit},si.prototype.setWrapLimit=function(ti){this.setWrapLimitRange(ti,ti)},si.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},si.prototype.$updateInternalDataOnChange=function(ti){var ai=this.$useWrapMode,vi=ti.action,wi=ti.start,xi=ti.end,Si=wi.row,Ei=xi.row,Ri=Ei-Si,Ni=null;if(this.$updating=!0,Ri!=0)if(vi==="remove"){this[ai?"$wrapData":"$rowLengthCache"].splice(Si,Ri);var Fi=this.$foldData;Ni=this.getFoldsInRange(ti),this.removeFolds(Ni);var Ii=this.getFoldLine(xi.row),Vi=0;if(Ii){Ii.addRemoveChars(xi.row,xi.column,wi.column-xi.column),Ii.shiftRow(-Ri);var Gi=this.getFoldLine(Si);Gi&&Gi!==Ii&&(Gi.merge(Ii),Ii=Gi),Vi=Fi.indexOf(Ii)+1}for(Vi;Vi<Fi.length;Vi++){var Ii=Fi[Vi];Ii.start.row>=xi.row&&Ii.shiftRow(-Ri)}Ei=Si}else{var Pi=Array(Ri);Pi.unshift(Si,0);var Zi=ai?this.$wrapData:this.$rowLengthCache;Zi.splice.apply(Zi,Pi);var Fi=this.$foldData,Ii=this.getFoldLine(Si),Vi=0;if(Ii){var lr=Ii.range.compareInside(wi.row,wi.column);lr==0?(Ii=Ii.split(wi.row,wi.column),Ii&&(Ii.shiftRow(Ri),Ii.addRemoveChars(Ei,0,xi.column-wi.column))):lr==-1&&(Ii.addRemoveChars(Si,0,xi.column-wi.column),Ii.shiftRow(Ri)),Vi=Fi.indexOf(Ii)+1}for(Vi;Vi<Fi.length;Vi++){var Ii=Fi[Vi];Ii.start.row>=Si&&Ii.shiftRow(Ri)}}else{Ri=Math.abs(ti.start.column-ti.end.column),vi==="remove"&&(Ni=this.getFoldsInRange(ti),this.removeFolds(Ni),Ri=-Ri);var Ii=this.getFoldLine(Si);Ii&&Ii.addRemoveChars(Si,wi.column,Ri)}return ai&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,ai?this.$updateWrapData(Si,Ei):this.$updateRowLengthCache(Si,Ei),Ni},si.prototype.$updateRowLengthCache=function(ti,ai){this.$rowLengthCache[ti]=null,this.$rowLengthCache[ai]=null},si.prototype.$updateWrapData=function(ti,ai){var vi=this.doc.getAllLines(),wi=this.getTabSize(),xi=this.$wrapData,Si=this.$wrapLimit,Ei,Ri,Ni=ti;for(ai=Math.min(ai,vi.length-1);Ni<=ai;)Ri=this.getFoldLine(Ni,Ri),Ri?(Ei=[],Ri.walk((function(Fi,Ii,Vi,Gi){var Pi;if(Fi!=null){Pi=this.$getDisplayTokens(Fi,Ei.length),Pi[0]=oi;for(var Zi=1;Zi<Pi.length;Zi++)Pi[Zi]=ei}else Pi=this.$getDisplayTokens(vi[Ii].substring(Gi,Vi),Ei.length);Ei=Ei.concat(Pi)}).bind(this),Ri.end.row,vi[Ri.end.row].length+1),xi[Ri.start.row]=this.$computeWrapSplits(Ei,Si,wi),Ni=Ri.end.row+1):(Ei=this.$getDisplayTokens(vi[Ni]),xi[Ni]=this.$computeWrapSplits(Ei,Si,wi),Ni++)},si.prototype.$computeWrapSplits=function(ti,ai,vi){if(ti.length==0)return[];var wi=[],xi=ti.length,Si=0,Ei=0,Ri=this.$wrapAsCode,Ni=this.$indentedSoftWrap,Fi=ai<=Math.max(2*vi,8)||Ni===!1?0:Math.floor(ai/2);function Ii(){var lr=0;if(Fi===0)return lr;if(Ni)for(var gr=0;gr<ti.length;gr++){var or=ti[gr];if(or==gi)lr+=1;else if(or==yi)lr+=vi;else{if(or==pi)continue;break}}return Ri&&Ni!==!1&&(lr+=vi),Math.min(lr,Fi)}function Vi(lr){for(var gr=lr-Si,or=Si;or<lr;or++){var yr=ti[or];(yr===12||yr===2)&&(gr-=1)}wi.length||(Gi=Ii(),wi.indent=Gi),Ei+=gr,wi.push(Ei),Si=lr}for(var Gi=0;xi-Si>ai-Gi;){var Pi=Si+ai-Gi;if(ti[Pi-1]>=gi&&ti[Pi]>=gi){Vi(Pi);continue}if(ti[Pi]==oi||ti[Pi]==ei){for(Pi;Pi!=Si-1&&ti[Pi]!=oi;Pi--);if(Pi>Si){Vi(Pi);continue}for(Pi=Si+ai,Pi;Pi<ti.length&&ti[Pi]==ei;Pi++);if(Pi==ti.length)break;Vi(Pi);continue}for(var Zi=Math.max(Pi-(ai-(ai>>2)),Si-1);Pi>Zi&&ti[Pi]<oi;)Pi--;if(Ri){for(;Pi>Zi&&ti[Pi]<oi;)Pi--;for(;Pi>Zi&&ti[Pi]==fi;)Pi--}else for(;Pi>Zi&&ti[Pi]<gi;)Pi--;if(Pi>Zi){Vi(++Pi);continue}Pi=Si+ai,ti[Pi]==ci&&Pi--,Vi(Pi-Gi)}return wi},si.prototype.$getDisplayTokens=function(ti,ai){var vi=[],wi;ai=ai||0;for(var xi=0;xi<ti.length;xi++){var Si=ti.charCodeAt(xi);if(Si==9){wi=this.getScreenTabSize(vi.length+ai),vi.push(yi);for(var Ei=1;Ei<wi;Ei++)vi.push(pi)}else Si==32?vi.push(gi):Si>39&&Si<48||Si>57&&Si<64?vi.push(fi):Si>=4352&&$i(Si)?vi.push(mi,ci):vi.push(mi)}return vi},si.prototype.$getStringScreenWidth=function(ti,ai,vi){if(ai==0)return[0,0];ai==null&&(ai=1/0),vi=vi||0;var wi,xi;for(xi=0;xi<ti.length&&(wi=ti.charCodeAt(xi),wi==9?vi+=this.getScreenTabSize(vi):wi>=4352&&$i(wi)?vi+=2:vi+=1,!(vi>ai));xi++);return[vi,xi]},si.prototype.getRowLength=function(ti){var ai=1;return this.lineWidgets&&(ai+=this.lineWidgets[ti]&&this.lineWidgets[ti].rowCount||0),!this.$useWrapMode||!this.$wrapData[ti]?ai:this.$wrapData[ti].length+ai},si.prototype.getRowLineCount=function(ti){return!this.$useWrapMode||!this.$wrapData[ti]?1:this.$wrapData[ti].length+1},si.prototype.getRowWrapIndent=function(ti){if(this.$useWrapMode){var ai=this.screenToDocumentPosition(ti,Number.MAX_VALUE),vi=this.$wrapData[ai.row];return vi.length&&vi[0]<ai.column?vi.indent:0}else return 0},si.prototype.getScreenLastRowColumn=function(ti){var ai=this.screenToDocumentPosition(ti,Number.MAX_VALUE);return this.documentToScreenColumn(ai.row,ai.column)},si.prototype.getDocumentLastRowColumn=function(ti,ai){var vi=this.documentToScreenRow(ti,ai);return this.getScreenLastRowColumn(vi)},si.prototype.getDocumentLastRowColumnPosition=function(ti,ai){var vi=this.documentToScreenRow(ti,ai);return this.screenToDocumentPosition(vi,Number.MAX_VALUE/10)},si.prototype.getRowSplitData=function(ti){if(this.$useWrapMode)return this.$wrapData[ti]},si.prototype.getScreenTabSize=function(ti){return this.$tabSize-(ti%this.$tabSize|0)},si.prototype.screenToDocumentRow=function(ti,ai){return this.screenToDocumentPosition(ti,ai).row},si.prototype.screenToDocumentColumn=function(ti,ai){return this.screenToDocumentPosition(ti,ai).column},si.prototype.screenToDocumentPosition=function(ti,ai,vi){if(ti<0)return{row:0,column:0};var wi,Vi=0,xi=0,Si,Ii=0,Ei=0,Ri=this.$screenRowCache,Ni=this.$getRowCacheIndex(Ri,ti),Fi=Ri.length;if(Fi&&Ni>=0)var Ii=Ri[Ni],Vi=this.$docRowCache[Ni],Gi=ti>Ri[Fi-1];else var Gi=!Fi;for(var Pi=this.getLength()-1,Zi=this.getNextFoldLine(Vi),lr=Zi?Zi.start.row:1/0;Ii<=ti&&(Ei=this.getRowLength(Vi),!(Ii+Ei>ti||Vi>=Pi));)Ii+=Ei,Vi++,Vi>lr&&(Vi=Zi.end.row+1,Zi=this.getNextFoldLine(Vi,Zi),lr=Zi?Zi.start.row:1/0),Gi&&(this.$docRowCache.push(Vi),this.$screenRowCache.push(Ii));if(Zi&&Zi.start.row<=Vi)wi=this.getFoldDisplayLine(Zi),Vi=Zi.start.row;else{if(Ii+Ei<=ti||Vi>Pi)return{row:Pi,column:this.getLine(Pi).length};wi=this.getLine(Vi),Zi=null}var gr=0,or=Math.floor(ti-Ii);if(this.$useWrapMode){var yr=this.$wrapData[Vi];yr&&(Si=yr[or],or>0&&yr.length&&(gr=yr.indent,xi=yr[or-1]||yr[yr.length-1],wi=wi.substring(xi)))}return vi!==void 0&&this.$bidiHandler.isBidiRow(Ii+or,Vi,or)&&(ai=this.$bidiHandler.offsetToCol(vi)),xi+=this.$getStringScreenWidth(wi,ai-gr)[1],this.$useWrapMode&&xi>=Si&&(xi=Si-1),Zi?Zi.idxToPosition(xi):{row:Vi,column:xi}},si.prototype.documentToScreenPosition=function(ti,ai){if(typeof ai>"u")var vi=this.$clipPositionToDocument(ti.row,ti.column);else vi=this.$clipPositionToDocument(ti,ai);ti=vi.row,ai=vi.column;var Ii=0,wi=null,xi=null;xi=this.getFoldAt(ti,ai,1),xi&&(ti=xi.start.row,ai=xi.start.column);var Si,Fi=0,Ei=this.$docRowCache,Ri=this.$getRowCacheIndex(Ei,ti),Ni=Ei.length;if(Ni&&Ri>=0)var Fi=Ei[Ri],Ii=this.$screenRowCache[Ri],Vi=ti>Ei[Ni-1];else var Vi=!Ni;for(var Gi=this.getNextFoldLine(Fi),Pi=Gi?Gi.start.row:1/0;Fi<ti;){if(Fi>=Pi){if(Si=Gi.end.row+1,Si>ti)break;Gi=this.getNextFoldLine(Si,Gi),Pi=Gi?Gi.start.row:1/0}else Si=Fi+1;Ii+=this.getRowLength(Fi),Fi=Si,Vi&&(this.$docRowCache.push(Fi),this.$screenRowCache.push(Ii))}var Zi="";Gi&&Fi>=Pi?(Zi=this.getFoldDisplayLine(Gi,ti,ai),wi=Gi.start.row):(Zi=this.getLine(ti).substring(0,ai),wi=ti);var lr=0;if(this.$useWrapMode){var gr=this.$wrapData[wi];if(gr){for(var or=0;Zi.length>=gr[or];)Ii++,or++;Zi=Zi.substring(gr[or-1]||0,Zi.length),lr=or>0?gr.indent:0}}return this.lineWidgets&&this.lineWidgets[Fi]&&this.lineWidgets[Fi].rowsAbove&&(Ii+=this.lineWidgets[Fi].rowsAbove),{row:Ii,column:lr+this.$getStringScreenWidth(Zi)[0]}},si.prototype.documentToScreenColumn=function(ti,ai){return this.documentToScreenPosition(ti,ai).column},si.prototype.documentToScreenRow=function(ti,ai){return this.documentToScreenPosition(ti,ai).row},si.prototype.getScreenLength=function(){var ti=0,ai=null;if(this.$useWrapMode)for(var vi=this.$wrapData.length,wi=0,xi=0,ai=this.$foldData[xi++],Si=ai?ai.start.row:1/0;wi<vi;){var Ei=this.$wrapData[wi];ti+=Ei?Ei.length+1:1,wi++,wi>Si&&(wi=ai.end.row+1,ai=this.$foldData[xi++],Si=ai?ai.start.row:1/0)}else{ti=this.getLength();for(var Ri=this.$foldData,xi=0;xi<Ri.length;xi++)ai=Ri[xi],ti-=ai.end.row-ai.start.row}return this.lineWidgets&&(ti+=this.$getWidgetScreenLength()),ti},si.prototype.$setFontMetrics=function(ti){this.$enableVarChar&&(this.$getStringScreenWidth=function(ai,vi,wi){if(vi===0)return[0,0];vi||(vi=1/0),wi=wi||0;var xi,Si;for(Si=0;Si<ai.length&&(xi=ai.charAt(Si),xi===" "?wi+=this.getScreenTabSize(wi):wi+=ti.getCharacterWidth(xi),!(wi>vi));Si++);return[wi,Si]})},si.prototype.getPrecedingCharacter=function(){var ti=this.selection.getCursor();if(ti.column===0)return ti.row===0?"":this.doc.getNewLineCharacter();var ai=this.getLine(ti.row);return ai[ti.column-1]},si.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()},si}();Xn.$uid=0,Xn.prototype.$modes=zn.$modes,Xn.prototype.getValue=Xn.prototype.toString,Xn.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},Xn.prototype.$overwrite=!1,Xn.prototype.$mode=null,Xn.prototype.$modeId=null,Xn.prototype.$scrollTop=0,Xn.prototype.$scrollLeft=0,Xn.prototype.$wrapLimit=80,Xn.prototype.$useWrapMode=!1,Xn.prototype.$wrapLimitRange={min:null,max:null},Xn.prototype.lineWidgets=null,Xn.prototype.isFullWidth=$i,Hn.implement(Xn.prototype,Wn);var mi=1,ci=2,oi=3,ei=4,fi=9,gi=10,yi=11,pi=12;function $i(si){return si<4352?!1:si>=4352&&si<=4447||si>=4515&&si<=4519||si>=4602&&si<=4607||si>=9001&&si<=9002||si>=11904&&si<=11929||si>=11931&&si<=12019||si>=12032&&si<=12245||si>=12272&&si<=12283||si>=12288&&si<=12350||si>=12353&&si<=12438||si>=12441&&si<=12543||si>=12549&&si<=12589||si>=12593&&si<=12686||si>=12688&&si<=12730||si>=12736&&si<=12771||si>=12784&&si<=12830||si>=12832&&si<=12871||si>=12880&&si<=13054||si>=13056&&si<=19903||si>=19968&&si<=42124||si>=42128&&si<=42182||si>=43360&&si<=43388||si>=44032&&si<=55203||si>=55216&&si<=55238||si>=55243&&si<=55291||si>=63744&&si<=64255||si>=65040&&si<=65049||si>=65072&&si<=65106||si>=65108&&si<=65126||si>=65128&&si<=65131||si>=65281&&si<=65376||si>=65504&&si<=65510}_n("./edit_session/folding").Folding.call(Xn.prototype),_n("./edit_session/bracket_match").BracketMatch.call(Xn.prototype),zn.defineOptions(Xn.prototype,"session",{wrap:{set:function(si){if(!si||si=="off"?si=!1:si=="free"?si=!0:si=="printMargin"?si=-1:typeof si=="string"&&(si=parseInt(si,10)||!1),this.$wrap!=si)if(this.$wrap=si,!si)this.setUseWrapMode(!1);else{var ti=typeof si=="number"?si:null;this.setWrapLimitRange(ti,ti),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(si){si=si=="auto"?this.$mode.type!="text":si!="text",si!=this.$wrapAsCode&&(this.$wrapAsCode=si,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(si){this.$useWorker=si,this.$stopWorker(),si&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(si){si=parseInt(si),si>0&&this.$tabSize!==si&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=si,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(si){this.setFoldStyle(si)},handlesSet:!0},overwrite:{set:function(si){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(si){this.doc.setNewLineMode(si)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(si){this.setMode(si)},get:function(){return this.$modeId},handlesSet:!0}}),kn.EditSession=Xn}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(_n,kn,qn){var Hn=_n("./lib/lang"),Kn=_n("./lib/oop"),Qn=_n("./range").Range,zn=function(){function Nn(){this.$options={}}return Nn.prototype.set=function(Dn){return Kn.mixin(this.$options,Dn),this},Nn.prototype.getOptions=function(){return Hn.copyObject(this.$options)},Nn.prototype.setOptions=function(Dn){this.$options=Dn},Nn.prototype.find=function(Dn){var In=this.$options,Bn=this.$matchIterator(Dn,In);if(!Bn)return!1;var Ln=null;return Bn.forEach(function(Pn,Zn,Jn,Xn){return Ln=new Qn(Pn,Zn,Jn,Xn),Zn==Xn&&In.start&&In.start.start&&In.skipCurrent!=!1&&Ln.isEqual(In.start)?(Ln=null,!1):!0}),Ln},Nn.prototype.findAll=function(Dn){var In=this.$options;if(!In.needle)return[];this.$assembleRegExp(In);var Bn=In.range,Ln=Bn?Dn.getLines(Bn.start.row,Bn.end.row):Dn.doc.getAllLines(),Pn=[],Zn=In.re;if(In.$isMultiLine){var Jn=Zn.length,Xn=Ln.length-Jn,mi;e:for(var ci=Zn.offset||0;ci<=Xn;ci++){for(var oi=0;oi<Jn;oi++)if(Ln[ci+oi].search(Zn[oi])==-1)continue e;var ei=Ln[ci],fi=Ln[ci+Jn-1],gi=ei.length-ei.match(Zn[0])[0].length,yi=fi.match(Zn[Jn-1])[0].length;mi&&mi.end.row===ci&&mi.end.column>gi||(Pn.push(mi=new Qn(ci,gi,ci+Jn-1,yi)),Jn>2&&(ci=ci+Jn-2))}}else for(var pi=0;pi<Ln.length;pi++)for(var $i=Hn.getMatchOffsets(Ln[pi],Zn),oi=0;oi<$i.length;oi++){var si=$i[oi];Pn.push(new Qn(pi,si.offset,pi,si.offset+si.length))}if(Bn){for(var ti=Bn.start.column,ai=Bn.end.column,pi=0,oi=Pn.length-1;pi<oi&&Pn[pi].start.column<ti&&Pn[pi].start.row==0;)pi++;for(var vi=Bn.end.row-Bn.start.row;pi<oi&&Pn[oi].end.column>ai&&Pn[oi].end.row==vi;)oi--;for(Pn=Pn.slice(pi,oi+1),pi=0,oi=Pn.length;pi<oi;pi++)Pn[pi].start.row+=Bn.start.row,Pn[pi].end.row+=Bn.start.row}return Pn},Nn.prototype.replace=function(Dn,In){var Bn=this.$options,Ln=this.$assembleRegExp(Bn);if(Bn.$isMultiLine)return In;if(Ln){var Pn=Ln.exec(Dn);if(!Pn||Pn[0].length!=Dn.length)return null;if(Bn.regExp||(In=In.replace(/\$/g,"$$$$")),In=Dn.replace(Ln,In),Bn.preserveCase){In=In.split("");for(var Zn=Math.min(Dn.length,Dn.length);Zn--;){var Jn=Dn[Zn];Jn&&Jn.toLowerCase()!=Jn?In[Zn]=In[Zn].toUpperCase():In[Zn]=In[Zn].toLowerCase()}In=In.join("")}return In}},Nn.prototype.$assembleRegExp=function(Dn,In){if(Dn.needle instanceof RegExp)return Dn.re=Dn.needle;var Bn=Dn.needle;if(!Dn.needle)return Dn.re=!1;Dn.regExp||(Bn=Hn.escapeRegExp(Bn));var Ln=Dn.caseSensitive?"gm":"gmi";try{new RegExp(Bn,"u"),Dn.$supportsUnicodeFlag=!0,Ln+="u"}catch{Dn.$supportsUnicodeFlag=!1}if(Dn.wholeWord&&(Bn=Wn(Bn,Dn)),Dn.$isMultiLine=!In&&/[\n\r]/.test(Bn),Dn.$isMultiLine)return Dn.re=this.$assembleMultilineRegExp(Bn,Ln);try{var Pn=new RegExp(Bn,Ln)}catch{Pn=!1}return Dn.re=Pn},Nn.prototype.$assembleMultilineRegExp=function(Dn,In){for(var Bn=Dn.replace(/\r\n|\r|\n/g,`$
199
+ ^`).split(`
200
+ `),Ln=[],Pn=0;Pn<Bn.length;Pn++)try{Ln.push(new RegExp(Bn[Pn],In))}catch{return!1}return Ln},Nn.prototype.$matchIterator=function(Dn,In){var Bn=this.$assembleRegExp(In);if(!Bn)return!1;var Ln=In.backwards==!0,Pn=In.skipCurrent!=!1,Zn=Bn.unicode,Jn=In.range,Xn=In.start;Xn||(Xn=Jn?Jn[Ln?"end":"start"]:Dn.selection.getRange()),Xn.start&&(Xn=Xn[Pn!=Ln?"end":"start"]);var mi=Jn?Jn.start.row:0,ci=Jn?Jn.end.row:Dn.getLength()-1;if(Ln)var oi=function(gi){var yi=Xn.row;if(!fi(yi,Xn.column,gi)){for(yi--;yi>=mi;yi--)if(fi(yi,Number.MAX_VALUE,gi))return;if(In.wrap!=!1){for(yi=ci,mi=Xn.row;yi>=mi;yi--)if(fi(yi,Number.MAX_VALUE,gi))return}}};else var oi=function(gi){var yi=Xn.row;if(!fi(yi,Xn.column,gi)){for(yi=yi+1;yi<=ci;yi++)if(fi(yi,0,gi))return;if(In.wrap!=!1){for(yi=mi,ci=Xn.row;yi<=ci;yi++)if(fi(yi,0,gi))return}}};if(In.$isMultiLine)var ei=Bn.length,fi=function(gi,yi,pi){var $i=Ln?gi-ei+1:gi;if(!($i<0||$i+ei>Dn.getLength())){var si=Dn.getLine($i),ti=si.search(Bn[0]);if(!(!Ln&&ti<yi||ti===-1)){for(var ai=1;ai<ei;ai++)if(si=Dn.getLine($i+ai),si.search(Bn[ai])==-1)return;var vi=si.match(Bn[ei-1])[0].length;if(!(Ln&&vi>yi)&&pi($i,ti,$i+ei-1,vi))return!0}}};else if(Ln)var fi=function(gi,yi,pi){var $i=Dn.getLine(gi),si=[],ti,ai=0;for(Bn.lastIndex=0;ti=Bn.exec($i);){var vi=ti[0].length;if(ai=ti.index,!vi){if(ai>=$i.length)break;Bn.lastIndex=ai+=Hn.skipEmptyMatch($i,ai,Zn)}if(ti.index+vi>yi)break;si.push(ti.index,vi)}for(var wi=si.length-1;wi>=0;wi-=2){var xi=si[wi-1],vi=si[wi];if(pi(gi,xi,gi,xi+vi))return!0}};else var fi=function(gi,yi,pi){var $i=Dn.getLine(gi),si,ti;for(Bn.lastIndex=yi;ti=Bn.exec($i);){var ai=ti[0].length;if(si=ti.index,pi(gi,si,gi,si+ai))return!0;if(!ai&&(Bn.lastIndex=si+=Hn.skipEmptyMatch($i,si,Zn),si>=$i.length))return!1}};return{forEach:oi}},Nn}();function Wn(Nn,Dn){var In=Hn.supportsLookbehind();function Bn(Jn,Xn){Xn===void 0&&(Xn=!0);var mi=In&&Dn.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return mi.test(Jn)||Dn.regExp?In&&Dn.$supportsUnicodeFlag?Xn?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var Ln=Array.from(Nn),Pn=Ln[0],Zn=Ln[Ln.length-1];return Bn(Pn)+Nn+Bn(Zn,!1)}kn.Search=zn}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(_n,kn,qn){var Hn=this&&this.__extends||function(){var In=function(Bn,Ln){return In=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pn,Zn){Pn.__proto__=Zn}||function(Pn,Zn){for(var Jn in Zn)Object.prototype.hasOwnProperty.call(Zn,Jn)&&(Pn[Jn]=Zn[Jn])},In(Bn,Ln)};return function(Bn,Ln){if(typeof Ln!="function"&&Ln!==null)throw new TypeError("Class extends value "+String(Ln)+" is not a constructor or null");In(Bn,Ln);function Pn(){this.constructor=Bn}Bn.prototype=Ln===null?Object.create(Ln):(Pn.prototype=Ln.prototype,new Pn)}}(),Kn=_n("../lib/keys"),Qn=_n("../lib/useragent"),zn=Kn.KEY_MODS,Wn=function(){function In(Bn,Ln){this.$init(Bn,Ln,!1)}return In.prototype.$init=function(Bn,Ln,Pn){this.platform=Ln||(Qn.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(Bn),this.$singleCommand=Pn},In.prototype.addCommand=function(Bn){this.commands[Bn.name]&&this.removeCommand(Bn),this.commands[Bn.name]=Bn,Bn.bindKey&&this._buildKeyHash(Bn)},In.prototype.removeCommand=function(Bn,Ln){var Pn=Bn&&(typeof Bn=="string"?Bn:Bn.name);Bn=this.commands[Pn],Ln||delete this.commands[Pn];var Zn=this.commandKeyBinding;for(var Jn in Zn){var Xn=Zn[Jn];if(Xn==Bn)delete Zn[Jn];else if(Array.isArray(Xn)){var mi=Xn.indexOf(Bn);mi!=-1&&(Xn.splice(mi,1),Xn.length==1&&(Zn[Jn]=Xn[0]))}}},In.prototype.bindKey=function(Bn,Ln,Pn){if(typeof Bn=="object"&&Bn&&(Pn==null&&(Pn=Bn.position),Bn=Bn[this.platform]),!!Bn){if(typeof Ln=="function")return this.addCommand({exec:Ln,bindKey:Bn,name:Ln.name||Bn});Bn.split("|").forEach(function(Zn){var Jn="";if(Zn.indexOf(" ")!=-1){var Xn=Zn.split(/\s+/);Zn=Xn.pop(),Xn.forEach(function(oi){var ei=this.parseKeys(oi),fi=zn[ei.hashId]+ei.key;Jn+=(Jn?" ":"")+fi,this._addCommandToBinding(Jn,"chainKeys")},this),Jn+=" "}var mi=this.parseKeys(Zn),ci=zn[mi.hashId]+mi.key;this._addCommandToBinding(Jn+ci,Ln,Pn)},this)}},In.prototype._addCommandToBinding=function(Bn,Ln,Pn){var Zn=this.commandKeyBinding,Jn;if(!Ln)delete Zn[Bn];else if(!Zn[Bn]||this.$singleCommand)Zn[Bn]=Ln;else{Array.isArray(Zn[Bn])?(Jn=Zn[Bn].indexOf(Ln))!=-1&&Zn[Bn].splice(Jn,1):Zn[Bn]=[Zn[Bn]],typeof Pn!="number"&&(Pn=Nn(Ln));var Xn=Zn[Bn];for(Jn=0;Jn<Xn.length;Jn++){var mi=Xn[Jn],ci=Nn(mi);if(ci>Pn)break}Xn.splice(Jn,0,Ln)}},In.prototype.addCommands=function(Bn){Bn&&Object.keys(Bn).forEach(function(Ln){var Pn=Bn[Ln];if(Pn){if(typeof Pn=="string")return this.bindKey(Pn,Ln);typeof Pn=="function"&&(Pn={exec:Pn}),typeof Pn=="object"&&(Pn.name||(Pn.name=Ln),this.addCommand(Pn))}},this)},In.prototype.removeCommands=function(Bn){Object.keys(Bn).forEach(function(Ln){this.removeCommand(Bn[Ln])},this)},In.prototype.bindKeys=function(Bn){Object.keys(Bn).forEach(function(Ln){this.bindKey(Ln,Bn[Ln])},this)},In.prototype._buildKeyHash=function(Bn){this.bindKey(Bn.bindKey,Bn)},In.prototype.parseKeys=function(Bn){var Ln=Bn.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(ci){return ci}),Pn=Ln.pop(),Zn=Kn[Pn];if(Kn.FUNCTION_KEYS[Zn])Pn=Kn.FUNCTION_KEYS[Zn].toLowerCase();else if(Ln.length){if(Ln.length==1&&Ln[0]=="shift")return{key:Pn.toUpperCase(),hashId:-1}}else return{key:Pn,hashId:-1};for(var Jn=0,Xn=Ln.length;Xn--;){var mi=Kn.KEY_MODS[Ln[Xn]];if(mi==null)return typeof console<"u"&&console.error("invalid modifier "+Ln[Xn]+" in "+Bn),!1;Jn|=mi}return{key:Pn,hashId:Jn}},In.prototype.findKeyCommand=function(Bn,Ln){var Pn=zn[Bn]+Ln;return this.commandKeyBinding[Pn]},In.prototype.handleKeyboard=function(Bn,Ln,Pn,Zn){if(!(Zn<0)){var Jn=zn[Ln]+Pn,Xn=this.commandKeyBinding[Jn];return Bn.$keyChain&&(Bn.$keyChain+=" "+Jn,Xn=this.commandKeyBinding[Bn.$keyChain]||Xn),Xn&&(Xn=="chainKeys"||Xn[Xn.length-1]=="chainKeys")?(Bn.$keyChain=Bn.$keyChain||Jn,{command:"null"}):(Bn.$keyChain&&((!Ln||Ln==4)&&Pn.length==1?Bn.$keyChain=Bn.$keyChain.slice(0,-Jn.length-1):(Ln==-1||Zn>0)&&(Bn.$keyChain="")),{command:Xn})}},In.prototype.getStatusText=function(Bn,Ln){return Ln.$keyChain||""},In}();function Nn(In){return typeof In=="object"&&In.bindKey&&In.bindKey.position||(In.isDefault?-100:0)}var Dn=function(In){Hn(Bn,In);function Bn(Ln,Pn){var Zn=In.call(this,Ln,Pn)||this;return Zn.$singleCommand=!0,Zn}return Bn}(Wn);Dn.call=function(In,Bn,Ln){Wn.prototype.$init.call(In,Bn,Ln,!0)},Wn.call=function(In,Bn,Ln){Wn.prototype.$init.call(In,Bn,Ln,!1)},kn.HashHandler=Dn,kn.MultiHashHandler=Wn}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(_n,kn,qn){var Hn=this&&this.__extends||function(){var Nn=function(Dn,In){return Nn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Bn,Ln){Bn.__proto__=Ln}||function(Bn,Ln){for(var Pn in Ln)Object.prototype.hasOwnProperty.call(Ln,Pn)&&(Bn[Pn]=Ln[Pn])},Nn(Dn,In)};return function(Dn,In){if(typeof In!="function"&&In!==null)throw new TypeError("Class extends value "+String(In)+" is not a constructor or null");Nn(Dn,In);function Bn(){this.constructor=Dn}Dn.prototype=In===null?Object.create(In):(Bn.prototype=In.prototype,new Bn)}}(),Kn=_n("../lib/oop"),Qn=_n("../keyboard/hash_handler").MultiHashHandler,zn=_n("../lib/event_emitter").EventEmitter,Wn=function(Nn){Hn(Dn,Nn);function Dn(In,Bn){var Ln=Nn.call(this,Bn,In)||this;return Ln.byName=Ln.commands,Ln.setDefaultHandler("exec",function(Pn){return Pn.args?Pn.command.exec(Pn.editor,Pn.args,Pn.event,!1):Pn.command.exec(Pn.editor,{},Pn.event,!0)}),Ln}return Dn.prototype.exec=function(In,Bn,Ln){if(Array.isArray(In)){for(var Pn=In.length;Pn--;)if(this.exec(In[Pn],Bn,Ln))return!0;return!1}if(typeof In=="string"&&(In=this.commands[In]),!this.canExecute(In,Bn))return!1;var Zn={editor:Bn,command:In,args:Ln};return Zn.returnValue=this._emit("exec",Zn),this._signal("afterExec",Zn),Zn.returnValue!==!1},Dn.prototype.canExecute=function(In,Bn){return typeof In=="string"&&(In=this.commands[In]),!(!In||Bn&&Bn.$readOnly&&!In.readOnly||this.$checkCommandState!=!1&&In.isAvailable&&!In.isAvailable(Bn))},Dn.prototype.toggleRecording=function(In){if(!this.$inReplay)return In&&In._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(Bn){this.macro.push([Bn.command,Bn.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},Dn.prototype.replay=function(In){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(In);try{this.$inReplay=!0,this.macro.forEach(function(Bn){typeof Bn=="string"?this.exec(Bn,In):this.exec(Bn[0],In,Bn[1])},this)}finally{this.$inReplay=!1}}},Dn.prototype.trimMacro=function(In){return In.map(function(Bn){return typeof Bn[0]!="string"&&(Bn[0]=Bn[0].name),Bn[1]||(Bn=Bn[0]),Bn})},Dn}(Qn);Kn.implement(Wn.prototype,zn),kn.CommandManager=Wn}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(_n,kn,qn){var Hn=_n("../lib/lang"),Kn=_n("../config"),Qn=_n("../range").Range;function zn(Nn,Dn){return{win:Nn,mac:Dn}}kn.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:zn("Ctrl-,","Command-,"),exec:function(Nn){Kn.loadModule("ace/ext/settings_menu",function(Dn){Dn.init(Nn),Nn.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:zn("Alt-E","F4"),exec:function(Nn){Kn.loadModule("ace/ext/error_marker",function(Dn){Dn.showErrorMarker(Nn,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:zn("Alt-Shift-E","Shift-F4"),exec:function(Nn){Kn.loadModule("ace/ext/error_marker",function(Dn){Dn.showErrorMarker(Nn,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:zn("Ctrl-A","Command-A"),exec:function(Nn){Nn.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:zn(null,"Ctrl-L"),exec:function(Nn){Nn.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:zn("Ctrl-L","Command-L"),exec:function(Nn,Dn){typeof Dn=="number"&&!isNaN(Dn)&&Nn.gotoLine(Dn),Nn.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:zn("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(Nn){Nn.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:zn("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(Nn){Nn.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:zn("F2","F2"),exec:function(Nn){Nn.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:zn("Alt-F2","Alt-F2"),exec:function(Nn){Nn.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:zn(null,"Ctrl-Command-Option-0"),exec:function(Nn){Nn.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:zn(null,"Ctrl-Command-Option-0"),exec:function(Nn){Nn.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:zn("Alt-0","Command-Option-0"),exec:function(Nn){Nn.session.foldAll(),Nn.session.unfold(Nn.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:zn("Alt-Shift-0","Command-Option-Shift-0"),exec:function(Nn){Nn.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:zn("Ctrl-K","Command-G"),exec:function(Nn){Nn.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:zn("Ctrl-Shift-K","Command-Shift-G"),exec:function(Nn){Nn.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:zn("Alt-K","Ctrl-G"),exec:function(Nn){Nn.selection.isEmpty()?Nn.selection.selectWord():Nn.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:zn("Alt-Shift-K","Ctrl-Shift-G"),exec:function(Nn){Nn.selection.isEmpty()?Nn.selection.selectWord():Nn.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:zn("Ctrl-F","Command-F"),exec:function(Nn){Kn.loadModule("ace/ext/searchbox",function(Dn){Dn.Search(Nn)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(Nn){Nn.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:zn("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(Nn){Nn.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:zn("Ctrl-Home","Command-Home|Command-Up"),exec:function(Nn){Nn.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:zn("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(Nn){Nn.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:zn("Up","Up|Ctrl-P"),exec:function(Nn,Dn){Nn.navigateUp(Dn.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:zn("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(Nn){Nn.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:zn("Ctrl-End","Command-End|Command-Down"),exec:function(Nn){Nn.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:zn("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(Nn){Nn.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:zn("Down","Down|Ctrl-N"),exec:function(Nn,Dn){Nn.navigateDown(Dn.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:zn("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(Nn){Nn.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:zn("Ctrl-Left","Option-Left"),exec:function(Nn){Nn.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:zn("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(Nn){Nn.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:zn("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(Nn){Nn.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:zn("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(Nn){Nn.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:zn("Left","Left|Ctrl-B"),exec:function(Nn,Dn){Nn.navigateLeft(Dn.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:zn("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(Nn){Nn.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:zn("Ctrl-Right","Option-Right"),exec:function(Nn){Nn.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:zn("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(Nn){Nn.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:zn("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(Nn){Nn.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:zn("Shift-Right","Shift-Right"),exec:function(Nn){Nn.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:zn("Right","Right|Ctrl-F"),exec:function(Nn,Dn){Nn.navigateRight(Dn.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(Nn){Nn.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:zn(null,"Option-PageDown"),exec:function(Nn){Nn.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:zn("PageDown","PageDown|Ctrl-V"),exec:function(Nn){Nn.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(Nn){Nn.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:zn(null,"Option-PageUp"),exec:function(Nn){Nn.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(Nn){Nn.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:zn("Ctrl-Up",null),exec:function(Nn){Nn.renderer.scrollBy(0,-2*Nn.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:zn("Ctrl-Down",null),exec:function(Nn){Nn.renderer.scrollBy(0,2*Nn.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(Nn){Nn.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(Nn){Nn.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:zn("Ctrl-Alt-E","Command-Option-E"),exec:function(Nn){Nn.commands.toggleRecording(Nn)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:zn("Ctrl-Shift-E","Command-Shift-E"),exec:function(Nn){Nn.commands.replay(Nn)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:zn("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(Nn){Nn.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:zn("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(Nn){Nn.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:zn("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(Nn){Nn.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:zn(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(Nn){},readOnly:!0},{name:"cut",description:"Cut",exec:function(Nn){var Dn=Nn.$copyWithEmptySelection&&Nn.selection.isEmpty(),In=Dn?Nn.selection.getLineRange():Nn.selection.getRange();Nn._emit("cut",In),In.isEmpty()||Nn.session.remove(In),Nn.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(Nn,Dn){Nn.$handlePaste(Dn)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:zn("Ctrl-D","Command-D"),exec:function(Nn){Nn.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:zn("Ctrl-Shift-D","Command-Shift-D"),exec:function(Nn){Nn.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:zn("Ctrl-Alt-S","Command-Alt-S"),exec:function(Nn){Nn.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:zn("Ctrl-/","Command-/"),exec:function(Nn){Nn.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:zn("Ctrl-Shift-/","Command-Shift-/"),exec:function(Nn){Nn.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:zn("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(Nn){Nn.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:zn("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(Nn){Nn.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:zn("Ctrl-H","Command-Option-F"),exec:function(Nn){Kn.loadModule("ace/ext/searchbox",function(Dn){Dn.Search(Nn,!0)})}},{name:"undo",description:"Undo",bindKey:zn("Ctrl-Z","Command-Z"),exec:function(Nn){Nn.undo()}},{name:"redo",description:"Redo",bindKey:zn("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(Nn){Nn.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:zn("Alt-Shift-Up","Command-Option-Up"),exec:function(Nn){Nn.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:zn("Alt-Up","Option-Up"),exec:function(Nn){Nn.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:zn("Alt-Shift-Down","Command-Option-Down"),exec:function(Nn){Nn.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:zn("Alt-Down","Option-Down"),exec:function(Nn){Nn.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:zn("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(Nn){Nn.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:zn("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(Nn){Nn.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:zn("Shift-Delete",null),exec:function(Nn){if(Nn.selection.isEmpty())Nn.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:zn("Alt-Backspace","Command-Backspace"),exec:function(Nn){Nn.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:zn("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(Nn){Nn.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:zn("Ctrl-Shift-Backspace",null),exec:function(Nn){var Dn=Nn.selection.getRange();Dn.start.column=0,Nn.session.remove(Dn)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:zn("Ctrl-Shift-Delete",null),exec:function(Nn){var Dn=Nn.selection.getRange();Dn.end.column=Number.MAX_VALUE,Nn.session.remove(Dn)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:zn("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(Nn){Nn.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:zn("Ctrl-Delete","Alt-Delete"),exec:function(Nn){Nn.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:zn("Shift-Tab","Shift-Tab"),exec:function(Nn){Nn.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:zn("Tab","Tab"),exec:function(Nn){Nn.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:zn("Ctrl-[","Ctrl-["),exec:function(Nn){Nn.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:zn("Ctrl-]","Ctrl-]"),exec:function(Nn){Nn.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(Nn,Dn){Nn.insert(Dn)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(Nn,Dn){Nn.insert(Hn.stringRepeat(Dn.text||"",Dn.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:zn(null,"Ctrl-O"),exec:function(Nn){Nn.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:zn("Alt-Shift-X","Ctrl-T"),exec:function(Nn){Nn.transposeLetters()},multiSelectAction:function(Nn){Nn.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:zn("Ctrl-U","Ctrl-U"),exec:function(Nn){Nn.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:zn("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(Nn){Nn.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:zn(null,null),exec:function(Nn){Nn.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:zn("Ctrl-Shift-L","Command-Shift-L"),exec:function(Nn){var Dn=Nn.selection.getRange();Dn.start.column=Dn.end.column=0,Dn.end.row++,Nn.selection.setRange(Dn,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:zn("Ctrl+F3","F3"),exec:function(Nn){Nn.openLink()}},{name:"joinlines",description:"Join lines",bindKey:zn(null,null),exec:function(Nn){for(var Dn=Nn.selection.isBackwards(),In=Dn?Nn.selection.getSelectionLead():Nn.selection.getSelectionAnchor(),Bn=Dn?Nn.selection.getSelectionAnchor():Nn.selection.getSelectionLead(),Ln=Nn.session.doc.getLine(In.row).length,Pn=Nn.session.doc.getTextRange(Nn.selection.getRange()),Zn=Pn.replace(/\n\s*/," ").length,Jn=Nn.session.doc.getLine(In.row),Xn=In.row+1;Xn<=Bn.row+1;Xn++){var mi=Hn.stringTrimLeft(Hn.stringTrimRight(Nn.session.doc.getLine(Xn)));mi.length!==0&&(mi=" "+mi),Jn+=mi}Bn.row+1<Nn.session.doc.getLength()-1&&(Jn+=Nn.session.doc.getNewLineCharacter()),Nn.clearSelection(),Nn.session.doc.replace(new Qn(In.row,0,Bn.row+2,0),Jn),Zn>0?(Nn.selection.moveCursorTo(In.row,In.column),Nn.selection.selectTo(In.row,In.column+Zn)):(Ln=Nn.session.doc.getLine(In.row).length>Ln?Ln+1:Ln,Nn.selection.moveCursorTo(In.row,Ln))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:zn(null,null),exec:function(Nn){var Dn=Nn.session.doc.getLength()-1,In=Nn.session.doc.getLine(Dn).length,Bn=Nn.selection.rangeList.ranges,Ln=[];Bn.length<1&&(Bn=[Nn.selection.getRange()]);for(var Pn=0;Pn<Bn.length;Pn++)Pn==Bn.length-1&&(Bn[Pn].end.row===Dn&&Bn[Pn].end.column===In||Ln.push(new Qn(Bn[Pn].end.row,Bn[Pn].end.column,Dn,In))),Pn===0?Bn[Pn].start.row===0&&Bn[Pn].start.column===0||Ln.push(new Qn(0,0,Bn[Pn].start.row,Bn[Pn].start.column)):Ln.push(new Qn(Bn[Pn-1].end.row,Bn[Pn-1].end.column,Bn[Pn].start.row,Bn[Pn].start.column));Nn.exitMultiSelectMode(),Nn.clearSelection();for(var Pn=0;Pn<Ln.length;Pn++)Nn.selection.addRange(Ln[Pn],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(Nn){Nn.selection.clearSelection(),Nn.navigateLineEnd(),Nn.insert(`
201
+ `)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(Nn){Nn.selection.clearSelection();var Dn=Nn.getCursorPosition();Nn.selection.moveTo(Dn.row-1,Number.MAX_VALUE),Nn.insert(`
202
+ `),Dn.row===0&&Nn.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(Nn){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),Nn.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:zn("F1","F1"),exec:function(Nn){Nn.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:zn(null,null),exec:function(Nn){Nn.prompt({$type:"modes"})},readOnly:!0}];for(var Wn=1;Wn<9;Wn++)kn.commands.push({name:"foldToLevel"+Wn,description:"Fold To Level "+Wn,level:Wn,exec:function(Nn){Nn.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(_n,kn,qn){var Hn=_n("../lib/keys"),Kn=_n("../mouse/default_gutter_handler").GutterTooltip,Qn=function(){function Wn(Nn){this.editor=Nn,this.gutterLayer=Nn.renderer.$gutterLayer,this.element=Nn.renderer.$gutter,this.lines=Nn.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new Kn(this.editor)}return Wn.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))},Wn.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))},Wn.prototype.$onGutterKeyDown=function(Nn){if(this.annotationTooltip.isOpen){Nn.preventDefault(),Nn.keyCode===Hn.escape&&this.annotationTooltip.hideTooltip();return}if(Nn.target===this.element){if(Nn.keyCode!=Hn.enter)return;Nn.preventDefault();var Dn=this.editor.getCursorPosition().row;this.editor.isRowVisible(Dn)||this.editor.scrollToLine(Dn,!0,!0),setTimeout((function(){var In=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),Bn=this.$findNearestFoldWidget(In),Ln=this.$findNearestAnnotation(In);if(!(Bn===null&&Ln===null)){if(Bn===null&&Ln!==null){this.activeRowIndex=Ln,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(Bn!==null&&Ln===null){this.activeRowIndex=Bn,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(Ln-In)<Math.abs(Bn-In)){this.activeRowIndex=Ln,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=Bn,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(Nn),setTimeout((function(){this.editor._signal("gutterkeydown",new zn(Nn,this))}).bind(this),10)},Wn.prototype.$handleGutterKeyboardInteraction=function(Nn){if(Nn.keyCode===Hn.tab){Nn.preventDefault();return}if(Nn.keyCode===Hn.escape){Nn.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(Nn.keyCode===Hn.up){switch(Nn.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(Nn.keyCode===Hn.down){switch(Nn.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(Nn.keyCode===Hn.left){Nn.preventDefault(),this.$switchLane("annotation");return}if(Nn.keyCode===Hn.right){Nn.preventDefault(),this.$switchLane("fold");return}if(Nn.keyCode===Hn.enter||Nn.keyCode===Hn.space){switch(Nn.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var Dn=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),Nn),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==Dn&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(Dn),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var In=this.lines.cells[this.activeRowIndex].element.childNodes[2],Bn=In.getBoundingClientRect(),Ln=this.annotationTooltip.getElement().style;Ln.left=Bn.right+"px",Ln.top=Bn.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},Wn.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},Wn.prototype.$isFoldWidgetVisible=function(Nn){var Dn=this.editor.isRowFullyVisible(this.$rowIndexToRow(Nn)),In=this.$getFoldWidget(Nn).style.display!=="none";return Dn&&In},Wn.prototype.$isAnnotationVisible=function(Nn){var Dn=this.editor.isRowFullyVisible(this.$rowIndexToRow(Nn)),In=this.$getAnnotation(Nn).style.display!=="none";return Dn&&In},Wn.prototype.$getFoldWidget=function(Nn){var Dn=this.lines.get(Nn),In=Dn.element;return In.childNodes[1]},Wn.prototype.$getAnnotation=function(Nn){var Dn=this.lines.get(Nn),In=Dn.element;return In.childNodes[2]},Wn.prototype.$findNearestFoldWidget=function(Nn){if(this.$isFoldWidgetVisible(Nn))return Nn;for(var Dn=0;Nn-Dn>0||Nn+Dn<this.lines.getLength()-1;){if(Dn++,Nn-Dn>=0&&this.$isFoldWidgetVisible(Nn-Dn))return Nn-Dn;if(Nn+Dn<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(Nn+Dn))return Nn+Dn}return null},Wn.prototype.$findNearestAnnotation=function(Nn){if(this.$isAnnotationVisible(Nn))return Nn;for(var Dn=0;Nn-Dn>0||Nn+Dn<this.lines.getLength()-1;){if(Dn++,Nn-Dn>=0&&this.$isAnnotationVisible(Nn-Dn))return Nn-Dn;if(Nn+Dn<=this.lines.getLength()-1&&this.$isAnnotationVisible(Nn+Dn))return Nn+Dn}return null},Wn.prototype.$focusFoldWidget=function(Nn){if(Nn!=null){var Dn=this.$getFoldWidget(Nn);Dn.classList.add(this.editor.renderer.keyboardFocusClassName),Dn.focus()}},Wn.prototype.$focusAnnotation=function(Nn){if(Nn!=null){var Dn=this.$getAnnotation(Nn);Dn.classList.add(this.editor.renderer.keyboardFocusClassName),Dn.focus()}},Wn.prototype.$blurFoldWidget=function(Nn){var Dn=this.$getFoldWidget(Nn);Dn.classList.remove(this.editor.renderer.keyboardFocusClassName),Dn.blur()},Wn.prototype.$blurAnnotation=function(Nn){var Dn=this.$getAnnotation(Nn);Dn.classList.remove(this.editor.renderer.keyboardFocusClassName),Dn.blur()},Wn.prototype.$moveFoldWidgetUp=function(){for(var Nn=this.activeRowIndex;Nn>0;)if(Nn--,this.$isFoldWidgetVisible(Nn)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=Nn,this.$focusFoldWidget(this.activeRowIndex);return}},Wn.prototype.$moveFoldWidgetDown=function(){for(var Nn=this.activeRowIndex;Nn<this.lines.getLength()-1;)if(Nn++,this.$isFoldWidgetVisible(Nn)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=Nn,this.$focusFoldWidget(this.activeRowIndex);return}},Wn.prototype.$moveAnnotationUp=function(){for(var Nn=this.activeRowIndex;Nn>0;)if(Nn--,this.$isAnnotationVisible(Nn)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=Nn,this.$focusAnnotation(this.activeRowIndex);return}},Wn.prototype.$moveAnnotationDown=function(){for(var Nn=this.activeRowIndex;Nn<this.lines.getLength()-1;)if(Nn++,this.$isAnnotationVisible(Nn)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=Nn,this.$focusAnnotation(this.activeRowIndex);return}},Wn.prototype.$switchLane=function(Nn){switch(Nn){case"annotation":if(this.activeLane==="annotation")break;var Dn=this.$findNearestAnnotation(this.activeRowIndex);if(Dn==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=Dn,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var In=this.$findNearestFoldWidget(this.activeRowIndex);if(In==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=In,this.$focusFoldWidget(this.activeRowIndex);break}},Wn.prototype.$rowIndexToRow=function(Nn){var Dn=this.lines.get(Nn);return Dn?Dn.row:null},Wn.prototype.$rowToRowIndex=function(Nn){for(var Dn=0;Dn<this.lines.getLength();Dn++){var In=this.lines.get(Dn);if(In.row==Nn)return Dn}return null},Wn}();kn.GutterKeyboardHandler=Qn;var zn=function(){function Wn(Nn,Dn){this.gutterKeyboardHandler=Dn,this.domEvent=Nn}return Wn.prototype.getKey=function(){return Hn.keyCodeToString(this.domEvent.keyCode)},Wn.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},Wn.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},Wn.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},Wn}();kn.GutterKeyboardEvent=zn}),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(_n,kn,qn){var Hn=this&&this.__values||function(si){var ti=typeof Symbol=="function"&&Symbol.iterator,ai=ti&&si[ti],vi=0;if(ai)return ai.call(si);if(si&&typeof si.length=="number")return{next:function(){return si&&vi>=si.length&&(si=void 0),{value:si&&si[vi++],done:!si}}};throw new TypeError(ti?"Object is not iterable.":"Symbol.iterator is not defined.")},Kn=_n("./lib/oop"),Qn=_n("./lib/dom"),zn=_n("./lib/lang"),Wn=_n("./lib/useragent"),Nn=_n("./keyboard/textinput").TextInput,Dn=_n("./mouse/mouse_handler").MouseHandler,In=_n("./mouse/fold_handler").FoldHandler,Bn=_n("./keyboard/keybinding").KeyBinding,Ln=_n("./edit_session").EditSession,Pn=_n("./search").Search,Zn=_n("./range").Range,Jn=_n("./lib/event_emitter").EventEmitter,Xn=_n("./commands/command_manager").CommandManager,mi=_n("./commands/default_commands").commands,ci=_n("./config"),oi=_n("./token_iterator").TokenIterator,ei=_n("./keyboard/gutter_handler").GutterKeyboardHandler,fi=_n("./config").nls,gi=_n("./clipboard"),yi=_n("./lib/keys"),pi=function(){function si(ti,ai,vi){this.session,this.$toDestroy=[];var wi=ti.getContainerElement();this.container=wi,this.renderer=ti,this.id="editor"+ ++si.$uid,this.commands=new Xn(Wn.isMac?"mac":"win",mi),typeof document=="object"&&(this.textInput=new Nn(ti.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new Dn(this),new In(this)),this.keyBinding=new Bn(this),this.$search=new Pn().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=zn.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(xi,Si){Si._$emitInputEvent.schedule(31)}),this.setSession(ai||vi&&vi.session||new Ln("")),ci.resetOptions(this),vi&&this.setOptions(vi),ci._signal("editor",this)}return si.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},si.prototype.startOperation=function(ti){this.session.startOperation(ti)},si.prototype.endOperation=function(ti){this.session.endOperation(ti)},si.prototype.onStartOperation=function(ti){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,ti||(this.previousCommand=null)},si.prototype.onEndOperation=function(ti){if(this.curOp&&this.session){if(ti&&ti.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var ai=this.curOp.command,vi=ai&&ai.scrollIntoView;if(vi){switch(vi){case"center-animate":vi="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var wi=this.selection.getRange(),xi=this.renderer.layerConfig;(wi.start.row>=xi.lastRow||wi.end.row<=xi.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}vi=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},si.prototype.$historyTracker=function(ti){if(this.$mergeUndoDeltas){var ai=this.prevOp,vi=this.$mergeableCommands,wi=ai.command&&ti.command.name==ai.command.name;if(ti.command.name=="insertstring"){var xi=ti.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),wi=wi&&this.mergeNextCommand&&(!/\s/.test(xi)||/\s/.test(ai.args)),this.mergeNextCommand=!0}else wi=wi&&vi.indexOf(ti.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(wi=!1),wi?this.session.mergeUndoDeltas=!0:vi.indexOf(ti.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},si.prototype.setKeyboardHandler=function(ti,ai){if(ti&&typeof ti=="string"&&ti!="ace"){this.$keybindingId=ti;var vi=this;ci.loadModule(["keybinding",ti],function(wi){vi.$keybindingId==ti&&vi.keyBinding.setKeyboardHandler(wi&&wi.handler),ai&&ai()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(ti),ai&&ai()},si.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},si.prototype.setSession=function(ti){if(this.session!=ti){this.curOp&&this.endOperation(),this.curOp={};var ai=this.session;if(ai){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),this.session.off("startOperation",this.$onStartOperation),this.session.off("endOperation",this.$onEndOperation);var vi=this.session.getSelection();vi.off("changeCursor",this.$onCursorChange),vi.off("changeSelection",this.$onSelectionChange)}this.session=ti,ti?(this.$onDocumentChange=this.onDocumentChange.bind(this),ti.on("change",this.$onDocumentChange),this.renderer.setSession(ti),this.$onChangeMode=this.onChangeMode.bind(this),ti.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),ti.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),ti.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),ti.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),ti.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),ti.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=ti.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(ti)),this._signal("changeSession",{session:ti,oldSession:ai}),this.curOp=null,ai&&ai._signal("changeEditor",{oldEditor:this}),ai&&(ai.$editor=null),ti&&ti._signal("changeEditor",{editor:this}),ti&&(ti.$editor=this),ti&&!ti.destroyed&&ti.bgTokenizer.scheduleStart()}},si.prototype.getSession=function(){return this.session},si.prototype.setValue=function(ti,ai){return this.session.doc.setValue(ti),ai?ai==1?this.navigateFileEnd():ai==-1&&this.navigateFileStart():this.selectAll(),ti},si.prototype.getValue=function(){return this.session.getValue()},si.prototype.getSelection=function(){return this.selection},si.prototype.resize=function(ti){this.renderer.onResize(ti)},si.prototype.setTheme=function(ti,ai){this.renderer.setTheme(ti,ai)},si.prototype.getTheme=function(){return this.renderer.getTheme()},si.prototype.setStyle=function(ti){this.renderer.setStyle(ti)},si.prototype.unsetStyle=function(ti){this.renderer.unsetStyle(ti)},si.prototype.getFontSize=function(){return this.getOption("fontSize")||Qn.computedStyle(this.container).fontSize},si.prototype.setFontSize=function(ti){this.setOption("fontSize",ti)},si.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var ti=this;this.$highlightPending=!0,setTimeout(function(){ti.$highlightPending=!1;var ai=ti.session;if(!(!ai||ai.destroyed)){ai.$bracketHighlight&&(ai.$bracketHighlight.markerIds.forEach(function(Ii){ai.removeMarker(Ii)}),ai.$bracketHighlight=null);var vi=ti.getCursorPosition(),wi=ti.getKeyboardHandler(),xi=wi&&wi.$getDirectionForHighlight&&wi.$getDirectionForHighlight(ti),Si=ai.getMatchingBracketRanges(vi,xi);if(!Si){var Ei=new oi(ai,vi.row,vi.column),Ri=Ei.getCurrentToken();if(Ri&&/\b(?:tag-open|tag-name)/.test(Ri.type)){var Ni=ai.getMatchingTags(vi);Ni&&(Si=[Ni.openTagName.isEmpty()?Ni.openTag:Ni.openTagName,Ni.closeTagName.isEmpty()?Ni.closeTag:Ni.closeTagName])}}if(!Si&&ai.$mode.getMatching&&(Si=ai.$mode.getMatching(ti.session)),!Si){ti.getHighlightIndentGuides()&&ti.renderer.$textLayer.$highlightIndentGuide();return}var Fi="ace_bracket";Array.isArray(Si)?Si.length==1&&(Fi="ace_error_bracket"):Si=[Si],Si.length==2&&(Zn.comparePoints(Si[0].end,Si[1].start)==0?Si=[Zn.fromPoints(Si[0].start,Si[1].end)]:Zn.comparePoints(Si[0].start,Si[1].end)==0&&(Si=[Zn.fromPoints(Si[1].start,Si[0].end)])),ai.$bracketHighlight={ranges:Si,markerIds:Si.map(function(Ii){return ai.addMarker(Ii,Fi,"text")})},ti.getHighlightIndentGuides()&&ti.renderer.$textLayer.$highlightIndentGuide()}},50)}},si.prototype.focus=function(){this.textInput.focus()},si.prototype.isFocused=function(){return this.textInput.isFocused()},si.prototype.blur=function(){this.textInput.blur()},si.prototype.onFocus=function(ti){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",ti))},si.prototype.onBlur=function(ti){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",ti))},si.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},si.prototype.onDocumentChange=function(ti){var ai=this.session.$useWrapMode,vi=ti.start.row==ti.end.row?ti.end.row:1/0;this.renderer.updateLines(ti.start.row,vi,ai),this._signal("change",ti),this.$cursorChange()},si.prototype.onTokenizerUpdate=function(ti){var ai=ti.data;this.renderer.updateLines(ai.first,ai.last)},si.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},si.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},si.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},si.prototype.$updateHighlightActiveLine=function(){var ti=this.getSession(),ai;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(ai=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(ai=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(ai=!1)),ti.$highlightLineMarker&&!ai)ti.removeMarker(ti.$highlightLineMarker.id),ti.$highlightLineMarker=null;else if(!ti.$highlightLineMarker&&ai){var vi=new Zn(ai.row,ai.column,ai.row,1/0);vi.id=ti.addMarker(vi,"ace_active-line","screenLine"),ti.$highlightLineMarker=vi}else ai&&(ti.$highlightLineMarker.start.row=ai.row,ti.$highlightLineMarker.end.row=ai.row,ti.$highlightLineMarker.start.column=ai.column,ti._signal("changeBackMarker"))},si.prototype.onSelectionChange=function(ti){var ai=this.session;if(ai.$selectionMarker&&ai.removeMarker(ai.$selectionMarker),ai.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var vi=this.selection.getRange(),wi=this.getSelectionStyle();ai.$selectionMarker=ai.addMarker(vi,"ace_selection",wi)}var xi=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(xi),this._signal("changeSelection")},si.prototype.$getSelectionHighLightRegexp=function(){var ti=this.session,ai=this.getSelectionRange();if(!(ai.isEmpty()||ai.isMultiLine())){var vi=ai.start.column,wi=ai.end.column,xi=ti.getLine(ai.start.row),Si=xi.substring(vi,wi);if(!(Si.length>5e3||!/[\w\d]/.test(Si))){var Ei=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:Si}),Ri=xi.substring(vi-1,wi+1);if(Ei.test(Ri))return Ei}}},si.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},si.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},si.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},si.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},si.prototype.onChangeMode=function(ti){this.renderer.updateText(),this._emit("changeMode",ti)},si.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},si.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},si.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},si.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},si.prototype.getCopyText=function(){var ti=this.getSelectedText(),ai=this.session.doc.getNewLineCharacter(),vi=!1;if(!ti&&this.$copyWithEmptySelection){vi=!0;for(var wi=this.selection.getAllRanges(),xi=0;xi<wi.length;xi++){var Si=wi[xi];xi&&wi[xi-1].start.row==Si.start.row||(ti+=this.session.getLine(Si.start.row)+ai)}}var Ei={text:ti};return this._signal("copy",Ei),gi.lineMode=vi?Ei.text:!1,Ei.text},si.prototype.onCopy=function(){this.commands.exec("copy",this)},si.prototype.onCut=function(){this.commands.exec("cut",this)},si.prototype.onPaste=function(ti,ai){var vi={text:ti,event:ai};this.commands.exec("paste",this,vi)},si.prototype.$handlePaste=function(ti){typeof ti=="string"&&(ti={text:ti}),this._signal("paste",ti);var ai=ti.text,vi=ai===gi.lineMode,wi=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)vi?wi.insert({row:this.selection.lead.row,column:0},ai):this.insert(ai);else if(vi)this.selection.rangeList.ranges.forEach(function(Fi){wi.insert({row:Fi.start.row,column:0},ai)});else{var xi=ai.split(/\r\n|\r|\n/),Si=this.selection.rangeList.ranges,Ei=xi.length==2&&(!xi[0]||!xi[1]);if(xi.length!=Si.length||Ei)return this.commands.exec("insertstring",this,ai);for(var Ri=Si.length;Ri--;){var Ni=Si[Ri];Ni.isEmpty()||wi.remove(Ni),wi.insert(Ni.start,xi[Ri])}}},si.prototype.execCommand=function(ti,ai){return this.commands.exec(ti,this,ai)},si.prototype.insert=function(ti,ai){var vi=this.session,wi=vi.getMode(),xi=this.getCursorPosition();if(this.getBehavioursEnabled()&&!ai){var Si=wi.transformAction(vi.getState(xi.row),"insertion",this,vi,ti);Si&&(ti!==Si.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),ti=Si.text)}if(ti==" "&&(ti=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&ti.indexOf(`
203
+ `)==-1){var Ei=Zn.fromPoints(xi,xi);Ei.end.column+=ti.length,this.session.remove(Ei)}}else{var Ei=this.getSelectionRange();xi=this.session.remove(Ei),this.clearSelection()}if(ti==`
204
+ `||ti==`\r
205
+ `){var Ii=vi.getLine(xi.row);if(xi.column>Ii.search(/\S|$/)){var Ri=Ii.substr(xi.column).search(/\S|$/);vi.doc.removeInLine(xi.row,xi.column,xi.column+Ri)}}this.clearSelection();var Ni=xi.column,Fi=vi.getState(xi.row),Ii=vi.getLine(xi.row),Vi=wi.checkOutdent(Fi,Ii,ti);if(vi.insert(xi,ti),Si&&Si.selection&&(Si.selection.length==2?this.selection.setSelectionRange(new Zn(xi.row,Ni+Si.selection[0],xi.row,Ni+Si.selection[1])):this.selection.setSelectionRange(new Zn(xi.row+Si.selection[0],Si.selection[1],xi.row+Si.selection[2],Si.selection[3]))),this.$enableAutoIndent){if(vi.getDocument().isNewLine(ti)){var Gi=wi.getNextLineIndent(Fi,Ii.slice(0,xi.column),vi.getTabString());vi.insert({row:xi.row+1,column:0},Gi)}Vi&&wi.autoOutdent(Fi,vi,xi.row)}},si.prototype.autoIndent=function(){for(var ti=this.session,ai=ti.getMode(),vi=this.selection.isEmpty()?[new Zn(0,0,ti.doc.getLength()-1,0)]:this.selection.getAllRanges(),wi="",xi="",Si="",Ei=ti.getTabString(),Ri=0;Ri<vi.length;Ri++)for(var Ni=vi[Ri].start.row,Fi=vi[Ri].end.row,Ii=Ni;Ii<=Fi;Ii++){Ii>0&&(wi=ti.getState(Ii-1),xi=ti.getLine(Ii-1),Si=ai.getNextLineIndent(wi,xi,Ei));var Vi=ti.getLine(Ii),Gi=ai.$getIndent(Vi);if(Si!==Gi){if(Gi.length>0){var Pi=new Zn(Ii,0,Ii,Gi.length);ti.remove(Pi)}Si.length>0&&ti.insert({row:Ii,column:0},Si)}ai.autoOutdent(wi,ti,Ii)}},si.prototype.onTextInput=function(ti,ai){if(!ai)return this.keyBinding.onTextInput(ti);this.startOperation({command:{name:"insertstring"}});var vi=this.applyComposition.bind(this,ti,ai);this.selection.rangeCount?this.forEachSelection(vi):vi(),this.endOperation()},si.prototype.applyComposition=function(ti,ai){if(ai.extendLeft||ai.extendRight){var vi=this.selection.getRange();vi.start.column-=ai.extendLeft,vi.end.column+=ai.extendRight,vi.start.column<0&&(vi.start.row--,vi.start.column+=this.session.getLine(vi.start.row).length+1),this.selection.setRange(vi),!ti&&!vi.isEmpty()&&this.remove()}if((ti||!this.selection.isEmpty())&&this.insert(ti,!0),ai.restoreStart||ai.restoreEnd){var vi=this.selection.getRange();vi.start.column-=ai.restoreStart,vi.end.column-=ai.restoreEnd,this.selection.setRange(vi)}},si.prototype.onCommandKey=function(ti,ai,vi){return this.keyBinding.onCommandKey(ti,ai,vi)},si.prototype.setOverwrite=function(ti){this.session.setOverwrite(ti)},si.prototype.getOverwrite=function(){return this.session.getOverwrite()},si.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},si.prototype.setScrollSpeed=function(ti){this.setOption("scrollSpeed",ti)},si.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},si.prototype.setDragDelay=function(ti){this.setOption("dragDelay",ti)},si.prototype.getDragDelay=function(){return this.getOption("dragDelay")},si.prototype.setSelectionStyle=function(ti){this.setOption("selectionStyle",ti)},si.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},si.prototype.setHighlightActiveLine=function(ti){this.setOption("highlightActiveLine",ti)},si.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},si.prototype.setHighlightGutterLine=function(ti){this.setOption("highlightGutterLine",ti)},si.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},si.prototype.setHighlightSelectedWord=function(ti){this.setOption("highlightSelectedWord",ti)},si.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},si.prototype.setAnimatedScroll=function(ti){this.renderer.setAnimatedScroll(ti)},si.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},si.prototype.setShowInvisibles=function(ti){this.renderer.setShowInvisibles(ti)},si.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},si.prototype.setDisplayIndentGuides=function(ti){this.renderer.setDisplayIndentGuides(ti)},si.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},si.prototype.setHighlightIndentGuides=function(ti){this.renderer.setHighlightIndentGuides(ti)},si.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},si.prototype.setShowPrintMargin=function(ti){this.renderer.setShowPrintMargin(ti)},si.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},si.prototype.setPrintMarginColumn=function(ti){this.renderer.setPrintMarginColumn(ti)},si.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},si.prototype.setReadOnly=function(ti){this.setOption("readOnly",ti)},si.prototype.getReadOnly=function(){return this.getOption("readOnly")},si.prototype.setBehavioursEnabled=function(ti){this.setOption("behavioursEnabled",ti)},si.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},si.prototype.setWrapBehavioursEnabled=function(ti){this.setOption("wrapBehavioursEnabled",ti)},si.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},si.prototype.setShowFoldWidgets=function(ti){this.setOption("showFoldWidgets",ti)},si.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},si.prototype.setFadeFoldWidgets=function(ti){this.setOption("fadeFoldWidgets",ti)},si.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},si.prototype.remove=function(ti){this.selection.isEmpty()&&(ti=="left"?this.selection.selectLeft():this.selection.selectRight());var ai=this.getSelectionRange();if(this.getBehavioursEnabled()){var vi=this.session,wi=vi.getState(ai.start.row),xi=vi.getMode().transformAction(wi,"deletion",this,vi,ai);if(ai.end.column===0){var Si=vi.getTextRange(ai);if(Si[Si.length-1]==`
206
+ `){var Ei=vi.getLine(ai.end.row);/^\s+$/.test(Ei)&&(ai.end.column=Ei.length)}}xi&&(ai=xi)}this.session.remove(ai),this.clearSelection()},si.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},si.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},si.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},si.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var ti=this.getSelectionRange();ti.start.column==ti.end.column&&ti.start.row==ti.end.row&&(ti.end.column=0,ti.end.row++),this.session.remove(ti),this.clearSelection()},si.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var ti=this.getCursorPosition();this.insert(`
207
+ `),this.moveCursorToPosition(ti)},si.prototype.setGhostText=function(ti,ai){this.renderer.setGhostText(ti,ai)},si.prototype.removeGhostText=function(){this.renderer.removeGhostText()},si.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var ti=this.getCursorPosition(),ai=ti.column;if(ai!==0){var vi=this.session.getLine(ti.row),wi,xi;ai<vi.length?(wi=vi.charAt(ai)+vi.charAt(ai-1),xi=new Zn(ti.row,ai-1,ti.row,ai+1)):(wi=vi.charAt(ai-1)+vi.charAt(ai-2),xi=new Zn(ti.row,ai-2,ti.row,ai)),this.session.replace(xi,wi),this.session.selection.moveToPosition(xi.end)}}},si.prototype.toLowerCase=function(){var ti=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var ai=this.getSelectionRange(),vi=this.session.getTextRange(ai);this.session.replace(ai,vi.toLowerCase()),this.selection.setSelectionRange(ti)},si.prototype.toUpperCase=function(){var ti=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var ai=this.getSelectionRange(),vi=this.session.getTextRange(ai);this.session.replace(ai,vi.toUpperCase()),this.selection.setSelectionRange(ti)},si.prototype.indent=function(){var ti=this.session,ai=this.getSelectionRange();if(ai.start.row<ai.end.row){var vi=this.$getSelectedRows();ti.indentRows(vi.first,vi.last," ");return}else if(ai.start.column<ai.end.column){var wi=ti.getTextRange(ai);if(!/^\s+$/.test(wi)){var vi=this.$getSelectedRows();ti.indentRows(vi.first,vi.last," ");return}}var xi=ti.getLine(ai.start.row),Si=ai.start,Ei=ti.getTabSize(),Ri=ti.documentToScreenColumn(Si.row,Si.column);if(this.session.getUseSoftTabs())var Ni=Ei-Ri%Ei,Fi=zn.stringRepeat(" ",Ni);else{for(var Ni=Ri%Ei;xi[ai.start.column-1]==" "&&Ni;)ai.start.column--,Ni--;this.selection.setSelectionRange(ai),Fi=" "}return this.insert(Fi)},si.prototype.blockIndent=function(){var ti=this.$getSelectedRows();this.session.indentRows(ti.first,ti.last," ")},si.prototype.blockOutdent=function(){var ti=this.session.getSelection();this.session.outdentRows(ti.getRange())},si.prototype.sortLines=function(){for(var ti=this.$getSelectedRows(),ai=this.session,vi=[],wi=ti.first;wi<=ti.last;wi++)vi.push(ai.getLine(wi));vi.sort(function(Ei,Ri){return Ei.toLowerCase()<Ri.toLowerCase()?-1:Ei.toLowerCase()>Ri.toLowerCase()?1:0});for(var xi=new Zn(0,0,0,0),wi=ti.first;wi<=ti.last;wi++){var Si=ai.getLine(wi);xi.start.row=wi,xi.end.row=wi,xi.end.column=Si.length,ai.replace(xi,vi[wi-ti.first])}},si.prototype.toggleCommentLines=function(){var ti=this.session.getState(this.getCursorPosition().row),ai=this.$getSelectedRows();this.session.getMode().toggleCommentLines(ti,this.session,ai.first,ai.last)},si.prototype.toggleBlockComment=function(){var ti=this.getCursorPosition(),ai=this.session.getState(ti.row),vi=this.getSelectionRange();this.session.getMode().toggleBlockComment(ai,this.session,vi,ti)},si.prototype.getNumberAt=function(ti,ai){var vi=/[\-]?[0-9]+(?:\.[0-9]+)?/g;vi.lastIndex=0;for(var wi=this.session.getLine(ti);vi.lastIndex<ai;){var xi=vi.exec(wi);if(xi.index<=ai&&xi.index+xi[0].length>=ai){var Si={value:xi[0],start:xi.index,end:xi.index+xi[0].length};return Si}}return null},si.prototype.modifyNumber=function(ti){var ai=this.selection.getCursor().row,vi=this.selection.getCursor().column,wi=new Zn(ai,vi-1,ai,vi),xi=this.session.getTextRange(wi);if(!isNaN(parseFloat(xi))&&isFinite(xi)){var Si=this.getNumberAt(ai,vi);if(Si){var Ei=Si.value.indexOf(".")>=0?Si.start+Si.value.indexOf(".")+1:Si.end,Ri=Si.start+Si.value.length-Ei,Ni=parseFloat(Si.value);Ni*=Math.pow(10,Ri),Ei!==Si.end&&vi<Ei?ti*=Math.pow(10,Si.end-vi-1):ti*=Math.pow(10,Si.end-vi),Ni+=ti,Ni/=Math.pow(10,Ri);var Fi=Ni.toFixed(Ri),Ii=new Zn(ai,Si.start,ai,Si.end);this.session.replace(Ii,Fi),this.moveCursorTo(ai,Math.max(Si.start+1,vi+Fi.length-Si.value.length))}}else this.toggleWord()},si.prototype.toggleWord=function(){var ti=this.selection.getCursor().row,ai=this.selection.getCursor().column;this.selection.selectWord();var vi=this.getSelectedText(),wi=this.selection.getWordRange().start.column,xi=vi.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),Si=ai-wi-1;Si<0&&(Si=0);var Ei=0,Ri=0,Ni=this;vi.match(/[A-Za-z0-9_]+/)&&xi.forEach(function(or,yr){Ri=Ei+or.length,Si>=Ei&&Si<=Ri&&(vi=or,Ni.selection.clearSelection(),Ni.moveCursorTo(ti,Ei+wi),Ni.selection.selectTo(ti,Ri+wi)),Ei=Ri});for(var Fi=this.$toggleWordPairs,Ii,Vi=0;Vi<Fi.length;Vi++)for(var Gi=Fi[Vi],Pi=0;Pi<=1;Pi++){var Zi=+!Pi,lr=vi.match(new RegExp("^\\s?_?("+zn.escapeRegExp(Gi[Pi])+")\\s?$","i"));if(lr){var gr=vi.match(new RegExp("([_]|^|\\s)("+zn.escapeRegExp(lr[1])+")($|\\s)","g"));gr&&(Ii=vi.replace(new RegExp(zn.escapeRegExp(Gi[Pi]),"i"),function(or){var yr=Gi[Zi];return or.toUpperCase()==or?yr=yr.toUpperCase():or.charAt(0).toUpperCase()==or.charAt(0)&&(yr=yr.substr(0,0)+Gi[Zi].charAt(0).toUpperCase()+yr.substr(1)),yr}),this.insert(Ii),Ii="")}}},si.prototype.findLinkAt=function(ti,ai){var vi,wi,xi=this.session.getLine(ti),Si=xi.split(/((?:https?|ftp):\/\/[\S]+)/),Ei=ai;Ei<0&&(Ei=0);var Ri=0,Ni=0,Fi;try{for(var Ii=Hn(Si),Vi=Ii.next();!Vi.done;Vi=Ii.next()){var Gi=Vi.value;if(Ni=Ri+Gi.length,Ei>=Ri&&Ei<=Ni&&Gi.match(/((?:https?|ftp):\/\/[\S]+)/)){Fi=Gi.replace(/[\s:.,'";}\]]+$/,"");break}Ri=Ni}}catch(Pi){vi={error:Pi}}finally{try{Vi&&!Vi.done&&(wi=Ii.return)&&wi.call(Ii)}finally{if(vi)throw vi.error}}return Fi},si.prototype.openLink=function(){var ti=this.selection.getCursor(),ai=this.findLinkAt(ti.row,ti.column);return ai&&window.open(ai,"_blank"),ai!=null},si.prototype.removeLines=function(){var ti=this.$getSelectedRows();this.session.removeFullLines(ti.first,ti.last),this.clearSelection()},si.prototype.duplicateSelection=function(){var ti=this.selection,ai=this.session,vi=ti.getRange(),wi=ti.isBackwards();if(vi.isEmpty()){var xi=vi.start.row;ai.duplicateLines(xi,xi)}else{var Si=wi?vi.start:vi.end,Ei=ai.insert(Si,ai.getTextRange(vi));vi.start=Si,vi.end=Ei,ti.setSelectionRange(vi,wi)}},si.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},si.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},si.prototype.moveText=function(ti,ai,vi){return this.session.moveText(ti,ai,vi)},si.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},si.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},si.prototype.$moveLines=function(ti,ai){var vi,wi,xi=this.selection;if(!xi.inMultiSelectMode||this.inVirtualSelectionMode){var Si=xi.toOrientedRange();vi=this.$getSelectedRows(Si),wi=this.session.$moveLines(vi.first,vi.last,ai?0:ti),ai&&ti==-1&&(wi=0),Si.moveBy(wi,0),xi.fromOrientedRange(Si)}else{var Ei=xi.rangeList.ranges;xi.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var Ri=0,Ni=0,Fi=Ei.length,Ii=0;Ii<Fi;Ii++){var Vi=Ii;Ei[Ii].moveBy(Ri,0),vi=this.$getSelectedRows(Ei[Ii]);for(var Gi=vi.first,Pi=vi.last;++Ii<Fi;){Ni&&Ei[Ii].moveBy(Ni,0);var Zi=this.$getSelectedRows(Ei[Ii]);if(ai&&Zi.first!=Pi||!ai&&Zi.first>Pi+1)break;Pi=Zi.last}for(Ii--,Ri=this.session.$moveLines(Gi,Pi,ai?0:ti),ai&&ti==-1&&(Vi=Ii+1);Vi<=Ii;)Ei[Vi].moveBy(Ri,0),Vi++;ai||(Ri=0),Ni+=Ri}xi.fromOrientedRange(xi.ranges[0]),xi.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},si.prototype.$getSelectedRows=function(ti){return ti=(ti||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(ti.start.row),last:this.session.getRowFoldEnd(ti.end.row)}},si.prototype.onCompositionStart=function(ti){this.renderer.showComposition(ti)},si.prototype.onCompositionUpdate=function(ti){this.renderer.setCompositionText(ti)},si.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},si.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},si.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},si.prototype.isRowVisible=function(ti){return ti>=this.getFirstVisibleRow()&&ti<=this.getLastVisibleRow()},si.prototype.isRowFullyVisible=function(ti){return ti>=this.renderer.getFirstFullyVisibleRow()&&ti<=this.renderer.getLastFullyVisibleRow()},si.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},si.prototype.$moveByPage=function(ti,ai){var vi=this.renderer,wi=this.renderer.layerConfig,xi=ti*Math.floor(wi.height/wi.lineHeight);ai===!0?this.selection.$moveSelection(function(){this.moveCursorBy(xi,0)}):ai===!1&&(this.selection.moveCursorBy(xi,0),this.selection.clearSelection());var Si=vi.scrollTop;vi.scrollBy(0,xi*wi.lineHeight),ai!=null&&vi.scrollCursorIntoView(null,.5),vi.animateScrolling(Si)},si.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},si.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},si.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},si.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},si.prototype.scrollPageDown=function(){this.$moveByPage(1)},si.prototype.scrollPageUp=function(){this.$moveByPage(-1)},si.prototype.scrollToRow=function(ti){this.renderer.scrollToRow(ti)},si.prototype.scrollToLine=function(ti,ai,vi,wi){this.renderer.scrollToLine(ti,ai,vi,wi)},si.prototype.centerSelection=function(){var ti=this.getSelectionRange(),ai={row:Math.floor(ti.start.row+(ti.end.row-ti.start.row)/2),column:Math.floor(ti.start.column+(ti.end.column-ti.start.column)/2)};this.renderer.alignCursor(ai,.5)},si.prototype.getCursorPosition=function(){return this.selection.getCursor()},si.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},si.prototype.getSelectionRange=function(){return this.selection.getRange()},si.prototype.selectAll=function(){this.selection.selectAll()},si.prototype.clearSelection=function(){this.selection.clearSelection()},si.prototype.moveCursorTo=function(ti,ai){this.selection.moveCursorTo(ti,ai)},si.prototype.moveCursorToPosition=function(ti){this.selection.moveCursorToPosition(ti)},si.prototype.jumpToMatching=function(ti,ai){var vi=this.getCursorPosition(),wi=new oi(this.session,vi.row,vi.column),xi=wi.getCurrentToken(),Si=0;xi&&xi.type.indexOf("tag-name")!==-1&&(xi=wi.stepBackward());var Ei=xi||wi.stepForward();if(Ei){var Ri,Ni=!1,Fi={},Ii=vi.column-Ei.start,Vi,Gi={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(Ei.value.match(/[{}()\[\]]/g)){for(;Ii<Ei.value.length&&!Ni;Ii++)if(Gi[Ei.value[Ii]])switch(Vi=Gi[Ei.value[Ii]]+"."+Ei.type.replace("rparen","lparen"),isNaN(Fi[Vi])&&(Fi[Vi]=0),Ei.value[Ii]){case"(":case"[":case"{":Fi[Vi]++;break;case")":case"]":case"}":Fi[Vi]--,Fi[Vi]===-1&&(Ri="bracket",Ni=!0);break}}else Ei.type.indexOf("tag-name")!==-1&&(isNaN(Fi[Ei.value])&&(Fi[Ei.value]=0),xi.value==="<"&&Si>1?Fi[Ei.value]++:xi.value==="</"&&Fi[Ei.value]--,Fi[Ei.value]===-1&&(Ri="tag",Ni=!0));Ni||(xi=Ei,Si++,Ei=wi.stepForward(),Ii=0)}while(Ei&&!Ni);if(Ri){var Pi,Zi;if(Ri==="bracket")Pi=this.session.getBracketRange(vi),Pi||(Pi=new Zn(wi.getCurrentTokenRow(),wi.getCurrentTokenColumn()+Ii-1,wi.getCurrentTokenRow(),wi.getCurrentTokenColumn()+Ii-1),Zi=Pi.start,(ai||Zi.row===vi.row&&Math.abs(Zi.column-vi.column)<2)&&(Pi=this.session.getBracketRange(Zi)));else if(Ri==="tag"){if(!Ei||Ei.type.indexOf("tag-name")===-1)return;if(Pi=new Zn(wi.getCurrentTokenRow(),wi.getCurrentTokenColumn()-2,wi.getCurrentTokenRow(),wi.getCurrentTokenColumn()-2),Pi.compare(vi.row,vi.column)===0){var lr=this.session.getMatchingTags(vi);lr&&(lr.openTag.contains(vi.row,vi.column)?(Pi=lr.closeTag,Zi=Pi.start):(Pi=lr.openTag,lr.closeTag.start.row===vi.row&&lr.closeTag.start.column===vi.column?Zi=Pi.end:Zi=Pi.start))}Zi=Zi||Pi.start}Zi=Pi&&Pi.cursor||Zi,Zi&&(ti?Pi&&ai?this.selection.setRange(Pi):Pi&&Pi.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(Zi.row,Zi.column):this.selection.moveTo(Zi.row,Zi.column))}}},si.prototype.gotoLine=function(ti,ai,vi){this.selection.clearSelection(),this.session.unfold({row:ti-1,column:ai||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(ti-1,ai||0),this.isRowFullyVisible(ti-1)||this.scrollToLine(ti-1,!0,vi)},si.prototype.navigateTo=function(ti,ai){this.selection.moveTo(ti,ai)},si.prototype.navigateUp=function(ti){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var ai=this.selection.anchor.getPosition();return this.moveCursorToPosition(ai)}this.selection.clearSelection(),this.selection.moveCursorBy(-ti||-1,0)},si.prototype.navigateDown=function(ti){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var ai=this.selection.anchor.getPosition();return this.moveCursorToPosition(ai)}this.selection.clearSelection(),this.selection.moveCursorBy(ti||1,0)},si.prototype.navigateLeft=function(ti){if(this.selection.isEmpty())for(ti=ti||1;ti--;)this.selection.moveCursorLeft();else{var ai=this.getSelectionRange().start;this.moveCursorToPosition(ai)}this.clearSelection()},si.prototype.navigateRight=function(ti){if(this.selection.isEmpty())for(ti=ti||1;ti--;)this.selection.moveCursorRight();else{var ai=this.getSelectionRange().end;this.moveCursorToPosition(ai)}this.clearSelection()},si.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},si.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},si.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},si.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},si.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},si.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},si.prototype.replace=function(ti,ai){ai&&this.$search.set(ai);var vi=this.$search.find(this.session),wi=0;return vi&&(this.$tryReplace(vi,ti)&&(wi=1),this.selection.setSelectionRange(vi),this.renderer.scrollSelectionIntoView(vi.start,vi.end)),wi},si.prototype.replaceAll=function(ti,ai){ai&&this.$search.set(ai);var vi=this.$search.findAll(this.session),wi=0;if(!vi.length)return wi;var xi=this.getSelectionRange();this.selection.moveTo(0,0);for(var Si=vi.length-1;Si>=0;--Si)this.$tryReplace(vi[Si],ti)&&wi++;return this.selection.setSelectionRange(xi),wi},si.prototype.$tryReplace=function(ti,ai){var vi=this.session.getTextRange(ti);return ai=this.$search.replace(vi,ai),ai!==null?(ti.end=this.session.replace(ti,ai),ti):null},si.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},si.prototype.find=function(ti,ai,vi){ai||(ai={}),typeof ti=="string"||ti instanceof RegExp?ai.needle=ti:typeof ti=="object"&&Kn.mixin(ai,ti);var wi=this.selection.getRange();ai.needle==null&&(ti=this.session.getTextRange(wi)||this.$search.$options.needle,ti||(wi=this.session.getWordRange(wi.start.row,wi.start.column),ti=this.session.getTextRange(wi)),this.$search.set({needle:ti})),this.$search.set(ai),ai.start||this.$search.set({start:wi});var xi=this.$search.find(this.session);if(ai.preventScroll)return xi;if(xi)return this.revealRange(xi,vi),xi;ai.backwards?wi.start=wi.end:wi.end=wi.start,this.selection.setRange(wi)},si.prototype.findNext=function(ti,ai){this.find({skipCurrent:!0,backwards:!1},ti,ai)},si.prototype.findPrevious=function(ti,ai){this.find(ti,{skipCurrent:!0,backwards:!0},ai)},si.prototype.revealRange=function(ti,ai){this.session.unfold(ti),this.selection.setSelectionRange(ti);var vi=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(ti.start,ti.end,.5),ai!==!1&&this.renderer.animateScrolling(vi)},si.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},si.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},si.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(ti){ti.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()},si.prototype.setAutoScrollEditorIntoView=function(ti){if(ti){var ai,vi=this,wi=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var xi=this.$scrollAnchor;xi.style.cssText="position:absolute",this.container.insertBefore(xi,this.container.firstChild);var Si=this.on("changeSelection",function(){wi=!0}),Ei=this.renderer.on("beforeRender",function(){wi&&(ai=vi.renderer.container.getBoundingClientRect())}),Ri=this.renderer.on("afterRender",function(){if(wi&&ai&&(vi.isFocused()||vi.searchBox&&vi.searchBox.isFocused())){var Ni=vi.renderer,Fi=Ni.$cursorLayer.$pixelPos,Ii=Ni.layerConfig,Vi=Fi.top-Ii.offset;Fi.top>=0&&Vi+ai.top<0?wi=!0:Fi.top<Ii.height&&Fi.top+ai.top+Ii.lineHeight>window.innerHeight?wi=!1:wi=null,wi!=null&&(xi.style.top=Vi+"px",xi.style.left=Fi.left+"px",xi.style.height=Ii.lineHeight+"px",xi.scrollIntoView(wi)),wi=ai=null}});this.setAutoScrollEditorIntoView=function(Ni){Ni||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",Si),this.renderer.off("afterRender",Ri),this.renderer.off("beforeRender",Ei))}}},si.prototype.$resetCursorStyle=function(){var ti=this.$cursorStyle||"ace",ai=this.renderer.$cursorLayer;ai&&(ai.setSmoothBlinking(/smooth/.test(ti)),ai.isBlinking=!this.$readOnly&&ti!="wide",Qn.setCssClass(ai.element,"ace_slim-cursors",/slim/.test(ti)))},si.prototype.prompt=function(ti,ai,vi){var wi=this;ci.loadModule("ace/ext/prompt",function(xi){xi.prompt(wi,ti,ai,vi)})},si}();pi.$uid=0,pi.prototype.curOp=null,pi.prototype.prevOp={},pi.prototype.$mergeableCommands=["backspace","del","insertstring"],pi.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"],["&&","||"],["==","!="]],Kn.implement(pi.prototype,Jn),ci.defineOptions(pi.prototype,"editor",{selectionStyle:{set:function(si){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:si})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(si){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(si){this.textInput.setReadOnly(si),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(si){this.textInput.setCopyWithEmptySelection(si)},initialValue:!1},cursorStyle:{set:function(si){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(si){this.setAutoScrollEditorIntoView(si)}},keyboardHandler:{set:function(si){this.setKeyboardHandler(si)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(si){this.session.setValue(si)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(si){this.setSession(si)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(si){this.renderer.$gutterLayer.setShowLineNumbers(si),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),si&&this.$relativeLineNumbers?$i.attach(this):$i.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(si){this.$showLineNumbers&&si?$i.attach(this):$i.detach(this)}},placeholder:{set:function(si){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var ti=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(ti&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),Qn.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!ti&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),Qn.addCssClass(this.container,"ace_hasPlaceholder");var ai=Qn.createElement("div");ai.className="ace_placeholder",ai.textContent=this.$placeholder||"",this.renderer.placeholderNode=ai,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!ti&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(si){var ti={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(wi){wi.blur(),wi.renderer.scroller.focus()},readOnly:!0},ai=function(wi){if(wi.target==this.renderer.scroller&&wi.keyCode===yi.enter){wi.preventDefault();var xi=this.getCursorPosition().row;this.isRowVisible(xi)||this.scrollToLine(xi,!0,!0),this.focus()}},vi;si?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(Wn.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",fi("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",fi("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",ai.bind(this)),this.commands.addCommand(ti),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",fi("editor.gutter.aria-roledescription","editor")),this.renderer.$gutter.setAttribute("aria-label",fi("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),vi||(vi=new ei(this)),vi.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",ai.bind(this)),this.commands.removeCommand(ti),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),vi&&vi.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(si){this.$textInputAriaLabel=si},initialValue:""},enableMobileMenu:{set:function(si){this.$enableMobileMenu=si},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(si,ti){return(Math.abs(si.selection.lead.row-ti)||ti+1+(ti<9?"·":""))+""},getWidth:function(si,ti,ai){return Math.max(ti.toString().length,(ai.lastRow+1).toString().length,2)*ai.characterWidth},update:function(si,ti){ti.renderer.$loop.schedule(ti.renderer.CHANGE_GUTTER)},attach:function(si){si.renderer.$gutterLayer.$renderer=this,si.on("changeSelection",this.update),this.update(null,si)},detach:function(si){si.renderer.$gutterLayer.$renderer==this&&(si.renderer.$gutterLayer.$renderer=null),si.off("changeSelection",this.update),this.update(null,si)}};kn.Editor=pi}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(_n,kn,qn){var Hn=_n("../lib/dom"),Kn=function(){function Qn(zn,Wn){this.element=zn,this.canvasHeight=Wn||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return Qn.prototype.moveContainer=function(zn){Hn.translate(this.element,0,-(zn.firstRowScreen*zn.lineHeight%this.canvasHeight)-zn.offset*this.$offsetCoefficient)},Qn.prototype.pageChanged=function(zn,Wn){return Math.floor(zn.firstRowScreen*zn.lineHeight/this.canvasHeight)!==Math.floor(Wn.firstRowScreen*Wn.lineHeight/this.canvasHeight)},Qn.prototype.computeLineTop=function(zn,Wn,Nn){var Dn=Wn.firstRowScreen*Wn.lineHeight,In=Math.floor(Dn/this.canvasHeight),Bn=Nn.documentToScreenRow(zn,0)*Wn.lineHeight;return Bn-In*this.canvasHeight},Qn.prototype.computeLineHeight=function(zn,Wn,Nn){return Wn.lineHeight*Nn.getRowLineCount(zn)},Qn.prototype.getLength=function(){return this.cells.length},Qn.prototype.get=function(zn){return this.cells[zn]},Qn.prototype.shift=function(){this.$cacheCell(this.cells.shift())},Qn.prototype.pop=function(){this.$cacheCell(this.cells.pop())},Qn.prototype.push=function(zn){if(Array.isArray(zn)){this.cells.push.apply(this.cells,zn);for(var Wn=Hn.createFragment(this.element),Nn=0;Nn<zn.length;Nn++)Wn.appendChild(zn[Nn].element);this.element.appendChild(Wn)}else this.cells.push(zn),this.element.appendChild(zn.element)},Qn.prototype.unshift=function(zn){if(Array.isArray(zn)){this.cells.unshift.apply(this.cells,zn);for(var Wn=Hn.createFragment(this.element),Nn=0;Nn<zn.length;Nn++)Wn.appendChild(zn[Nn].element);this.element.firstChild?this.element.insertBefore(Wn,this.element.firstChild):this.element.appendChild(Wn)}else this.cells.unshift(zn),this.element.insertAdjacentElement("afterbegin",zn.element)},Qn.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},Qn.prototype.$cacheCell=function(zn){zn&&(zn.element.remove(),this.cellCache.push(zn))},Qn.prototype.createCell=function(zn,Wn,Nn,Dn){var In=this.cellCache.pop();if(!In){var Bn=Hn.createElement("div");Dn&&Dn(Bn),this.element.appendChild(Bn),In={element:Bn,text:"",row:zn}}return In.row=zn,In},Qn}();kn.Lines=Kn}),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(_n,kn,qn){var Hn=_n("../lib/dom"),Kn=_n("../lib/oop"),Qn=_n("../lib/lang"),zn=_n("../lib/event_emitter").EventEmitter,Wn=_n("./lines").Lines,Nn=_n("../config").nls,Dn=function(){function Bn(Ln){this.element=Hn.createElement("div"),this.element.className="ace_layer ace_gutter-layer",Ln.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new Wn(this.element),this.$lines.$offsetCoefficient=1}return Bn.prototype.setSession=function(Ln){this.session&&this.session.off("change",this.$updateAnnotations),this.session=Ln,Ln&&Ln.on("change",this.$updateAnnotations)},Bn.prototype.addGutterDecoration=function(Ln,Pn){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(Ln,Pn)},Bn.prototype.removeGutterDecoration=function(Ln,Pn){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(Ln,Pn)},Bn.prototype.setAnnotations=function(Ln){this.$annotations=[];for(var Pn=0;Pn<Ln.length;Pn++){var Zn=Ln[Pn],Jn=Zn.row,Xn=this.$annotations[Jn];Xn||(Xn=this.$annotations[Jn]={text:[],type:[],displayText:[]});var mi=Zn.text,ci=Zn.text,oi=Zn.type;mi=mi?Qn.escapeHTML(mi):Zn.html||"",ci=ci||Zn.html||"",Xn.text.indexOf(mi)===-1&&(Xn.text.push(mi),Xn.type.push(oi),Xn.displayText.push(ci));var ei=Zn.className;ei?Xn.className=ei:oi==="error"?Xn.className=" ace_error":oi==="security"&&!/\bace_error\b/.test(Xn.className)?Xn.className=" ace_security":oi==="warning"&&!/\bace_(error|security)\b/.test(Xn.className)?Xn.className=" ace_warning":oi==="info"&&!Xn.className?Xn.className=" ace_info":oi==="hint"&&!Xn.className&&(Xn.className=" ace_hint")}},Bn.prototype.$updateAnnotations=function(Ln){if(this.$annotations.length){var Pn=Ln.start.row,Zn=Ln.end.row-Pn;if(Zn!==0)if(Ln.action=="remove")this.$annotations.splice(Pn,Zn+1,null);else{var Jn=new Array(Zn+1);Jn.unshift(Pn,1),this.$annotations.splice.apply(this.$annotations,Jn)}}},Bn.prototype.update=function(Ln){this.config=Ln;var Pn=this.session,Zn=Ln.firstRow,Jn=Math.min(Ln.lastRow+Ln.gutterOffset,Pn.getLength()-1);this.oldLastRow=Jn,this.config=Ln,this.$lines.moveContainer(Ln),this.$updateCursorRow();for(var Xn=Pn.getNextFoldLine(Zn),mi=Xn?Xn.start.row:1/0,ci=null,oi=-1,ei=Zn;;){if(ei>mi&&(ei=Xn.end.row+1,Xn=Pn.getNextFoldLine(ei,Xn),mi=Xn?Xn.start.row:1/0),ei>Jn){for(;this.$lines.getLength()>oi+1;)this.$lines.pop();break}ci=this.$lines.get(++oi),ci?ci.row=ei:(ci=this.$lines.createCell(ei,Ln,this.session,In),this.$lines.push(ci)),this.$renderCell(ci,Ln,Xn,ei),ei++}this._signal("afterRender"),this.$updateGutterWidth(Ln)},Bn.prototype.$updateGutterWidth=function(Ln){var Pn=this.session,Zn=Pn.gutterRenderer||this.$renderer,Jn=Pn.$firstLineNumber,Xn=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||Pn.$useWrapMode)&&(Xn=Pn.getLength()+Jn-1);var mi=Zn?Zn.getWidth(Pn,Xn,Ln):Xn.toString().length*Ln.characterWidth,ci=this.$padding||this.$computePadding();mi+=ci.left+ci.right,mi!==this.gutterWidth&&!isNaN(mi)&&(this.gutterWidth=mi,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",mi))},Bn.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var Ln=this.session.selection.getCursor();this.$cursorRow!==Ln.row&&(this.$cursorRow=Ln.row)}},Bn.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var Ln=this.session.selection.cursor.row;if(this.$cursorRow=Ln,!(this.$cursorCell&&this.$cursorCell.row==Ln)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var Pn=this.$lines.cells;this.$cursorCell=null;for(var Zn=0;Zn<Pn.length;Zn++){var Jn=Pn[Zn];if(Jn.row>=this.$cursorRow){if(Jn.row>this.$cursorRow){var Xn=this.session.getFoldLine(this.$cursorRow);if(Zn>0&&Xn&&Xn.start.row==Pn[Zn-1].row)Jn=Pn[Zn-1];else break}Jn.element.className="ace_gutter-active-line "+Jn.element.className,this.$cursorCell=Jn;break}}}}},Bn.prototype.scrollLines=function(Ln){var Pn=this.config;if(this.config=Ln,this.$updateCursorRow(),this.$lines.pageChanged(Pn,Ln))return this.update(Ln);this.$lines.moveContainer(Ln);var Zn=Math.min(Ln.lastRow+Ln.gutterOffset,this.session.getLength()-1),Jn=this.oldLastRow;if(this.oldLastRow=Zn,!Pn||Jn<Ln.firstRow)return this.update(Ln);if(Zn<Pn.firstRow)return this.update(Ln);if(Pn.firstRow<Ln.firstRow)for(var Xn=this.session.getFoldedRowCount(Pn.firstRow,Ln.firstRow-1);Xn>0;Xn--)this.$lines.shift();if(Jn>Zn)for(var Xn=this.session.getFoldedRowCount(Zn+1,Jn);Xn>0;Xn--)this.$lines.pop();Ln.firstRow<Pn.firstRow&&this.$lines.unshift(this.$renderLines(Ln,Ln.firstRow,Pn.firstRow-1)),Zn>Jn&&this.$lines.push(this.$renderLines(Ln,Jn+1,Zn)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(Ln)},Bn.prototype.$renderLines=function(Ln,Pn,Zn){for(var Jn=[],Xn=Pn,mi=this.session.getNextFoldLine(Xn),ci=mi?mi.start.row:1/0;Xn>ci&&(Xn=mi.end.row+1,mi=this.session.getNextFoldLine(Xn,mi),ci=mi?mi.start.row:1/0),!(Xn>Zn);){var oi=this.$lines.createCell(Xn,Ln,this.session,In);this.$renderCell(oi,Ln,mi,Xn),Jn.push(oi),Xn++}return Jn},Bn.prototype.$renderCell=function(Ln,Pn,Zn,Jn){var Xn=Ln.element,mi=this.session,ci=Xn.childNodes[0],oi=Xn.childNodes[1],ei=Xn.childNodes[2],fi=ei.firstChild,gi=mi.$firstLineNumber,yi=mi.$breakpoints,pi=mi.$decorations,$i=mi.gutterRenderer||this.$renderer,si=this.$showFoldWidgets&&mi.foldWidgets,ti=Zn?Zn.start.row:Number.MAX_VALUE,ai=Pn.lineHeight+"px",vi=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",wi=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",xi=($i?$i.getText(mi,Jn):Jn+gi).toString();if(this.$highlightGutterLine&&(Jn==this.$cursorRow||Zn&&Jn<this.$cursorRow&&Jn>=ti&&this.$cursorRow<=Zn.end.row)&&(vi+="ace_gutter-active-line ",this.$cursorCell!=Ln&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=Ln)),yi[Jn]&&(vi+=yi[Jn]),pi[Jn]&&(vi+=pi[Jn]),this.$annotations[Jn]&&Jn!==ti&&(vi+=this.$annotations[Jn].className),si){var Si=si[Jn];Si==null&&(Si=si[Jn]=mi.getFoldWidget(Jn))}if(Si){var Ei="ace_fold-widget ace_"+Si,Ri=Si=="start"&&Jn==ti&&Jn<Zn.end.row;if(Ri){Ei+=" ace_closed";for(var Ni="",Fi=!1,Ii=Jn+1;Ii<=Zn.end.row;Ii++)if(this.$annotations[Ii]){if(this.$annotations[Ii].className===" ace_error"){Fi=!0,Ni=" ace_error_fold";break}this.$annotations[Ii].className===" ace_security"?(Fi=!0,Ni=" ace_security_fold"):this.$annotations[Ii].className===" ace_warning"&&Ni!==" ace_security_fold"&&(Fi=!0,Ni=" ace_warning_fold")}vi+=Ni}else Ei+=" ace_open";oi.className!=Ei&&(oi.className=Ei),Hn.setStyle(oi.style,"height",ai),Hn.setStyle(oi.style,"display","inline-block"),oi.setAttribute("role","button"),oi.setAttribute("tabindex","-1");var Vi=mi.getFoldWidgetRange(Jn);Vi?oi.setAttribute("aria-label",Nn("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[Vi.start.row+1,Vi.end.row+1])):Zn?oi.setAttribute("aria-label",Nn("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[Zn.start.row+1,Zn.end.row+1])):oi.setAttribute("aria-label",Nn("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[Jn+1])),Ri?(oi.setAttribute("aria-expanded","false"),oi.setAttribute("title",Nn("gutter.code-folding.closed.title","Unfold code"))):(oi.setAttribute("aria-expanded","true"),oi.setAttribute("title",Nn("gutter.code-folding.open.title","Fold code")))}else oi&&(Hn.setStyle(oi.style,"display","none"),oi.setAttribute("tabindex","0"),oi.removeAttribute("role"),oi.removeAttribute("aria-label"));if(Fi&&this.$showFoldedAnnotations){ei.className="ace_gutter_annotation",fi.className=wi,fi.className+=Ni,Hn.setStyle(fi.style,"height",ai),Hn.setStyle(ei.style,"display","block"),Hn.setStyle(ei.style,"height",ai);var Gi;switch(Ni){case" ace_error_fold":Gi=Nn("gutter.annotation.aria-label.error","Error, read annotations row $0",[xi]);break;case" ace_security_fold":Gi=Nn("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[xi]);break;case" ace_warning_fold":Gi=Nn("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[xi]);break}ei.setAttribute("aria-label",Gi),ei.setAttribute("tabindex","-1"),ei.setAttribute("role","button")}else if(this.$annotations[Jn]){ei.className="ace_gutter_annotation",fi.className=wi,this.$useSvgGutterIcons?fi.className+=this.$annotations[Jn].className:Xn.classList.add(this.$annotations[Jn].className.replace(" ","")),Hn.setStyle(fi.style,"height",ai),Hn.setStyle(ei.style,"display","block"),Hn.setStyle(ei.style,"height",ai);var Gi;switch(this.$annotations[Jn].className){case" ace_error":Gi=Nn("gutter.annotation.aria-label.error","Error, read annotations row $0",[xi]);break;case" ace_security":Gi=Nn("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[xi]);break;case" ace_warning":Gi=Nn("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[xi]);break;case" ace_info":Gi=Nn("gutter.annotation.aria-label.info","Info, read annotations row $0",[xi]);break;case" ace_hint":Gi=Nn("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[xi]);break}ei.setAttribute("aria-label",Gi),ei.setAttribute("tabindex","-1"),ei.setAttribute("role","button")}else Hn.setStyle(ei.style,"display","none"),ei.removeAttribute("aria-label"),ei.removeAttribute("role"),ei.setAttribute("tabindex","0");return xi!==ci.data&&(ci.data=xi),Xn.className!=vi&&(Xn.className=vi),Hn.setStyle(Ln.element.style,"height",this.$lines.computeLineHeight(Jn,Pn,mi)+"px"),Hn.setStyle(Ln.element.style,"top",this.$lines.computeLineTop(Jn,Pn,mi)+"px"),Ln.text=xi,ei.style.display==="none"&&oi.style.display==="none"?Ln.element.setAttribute("aria-hidden",!0):Ln.element.setAttribute("aria-hidden",!1),Ln},Bn.prototype.setHighlightGutterLine=function(Ln){this.$highlightGutterLine=Ln},Bn.prototype.setShowLineNumbers=function(Ln){this.$renderer=!Ln&&{getWidth:function(){return 0},getText:function(){return""}}},Bn.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},Bn.prototype.setShowFoldWidgets=function(Ln){Ln?Hn.addCssClass(this.element,"ace_folding-enabled"):Hn.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=Ln,this.$padding=null},Bn.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},Bn.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var Ln=Hn.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(Ln.borderLeftWidth)||0)+(parseInt(Ln.paddingLeft)||0)+1,this.$padding.right=(parseInt(Ln.borderRightWidth)||0)+(parseInt(Ln.paddingRight)||0),this.$padding},Bn.prototype.getRegion=function(Ln){var Pn=this.$padding||this.$computePadding(),Zn=this.element.getBoundingClientRect();if(Ln.x<Pn.left+Zn.left)return"markers";if(this.$showFoldWidgets&&Ln.x>Zn.right-Pn.right)return"foldWidgets"},Bn}();Dn.prototype.$fixedWidth=!1,Dn.prototype.$highlightGutterLine=!0,Dn.prototype.$renderer="",Dn.prototype.$showLineNumbers=!0,Dn.prototype.$showFoldWidgets=!0,Kn.implement(Dn.prototype,zn);function In(Bn){var Ln=document.createTextNode("");Bn.appendChild(Ln);var Pn=Hn.createElement("span");Bn.appendChild(Pn);var Zn=Hn.createElement("span");Bn.appendChild(Zn);var Jn=Hn.createElement("span");return Zn.appendChild(Jn),Bn}kn.Gutter=Dn}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(_n,kn,qn){var Hn=_n("../range").Range,Kn=_n("../lib/dom"),Qn=function(){function Wn(Nn){this.element=Kn.createElement("div"),this.element.className="ace_layer ace_marker-layer",Nn.appendChild(this.element)}return Wn.prototype.setPadding=function(Nn){this.$padding=Nn},Wn.prototype.setSession=function(Nn){this.session=Nn},Wn.prototype.setMarkers=function(Nn){this.markers=Nn},Wn.prototype.elt=function(Nn,Dn){var In=this.i!=-1&&this.element.childNodes[this.i];In?this.i++:(In=document.createElement("div"),this.element.appendChild(In),this.i=-1),In.style.cssText=Dn,In.className=Nn},Wn.prototype.update=function(Nn){if(Nn){this.config=Nn,this.i=0;var Dn;for(var In in this.markers){var Bn=this.markers[In];if(!Bn.range){Bn.update(Dn,this,this.session,Nn);continue}var Ln=Bn.range.clipRows(Nn.firstRow,Nn.lastRow);if(!Ln.isEmpty())if(Ln=Ln.toScreenRange(this.session),Bn.renderer){var Pn=this.$getTop(Ln.start.row,Nn),Zn=this.$padding+Ln.start.column*Nn.characterWidth;Bn.renderer(Dn,Ln,Zn,Pn,Nn)}else Bn.type=="fullLine"?this.drawFullLineMarker(Dn,Ln,Bn.clazz,Nn):Bn.type=="screenLine"?this.drawScreenLineMarker(Dn,Ln,Bn.clazz,Nn):Ln.isMultiLine()?Bn.type=="text"?this.drawTextMarker(Dn,Ln,Bn.clazz,Nn):this.drawMultiLineMarker(Dn,Ln,Bn.clazz,Nn):this.drawSingleLineMarker(Dn,Ln,Bn.clazz+" ace_start ace_br15",Nn)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},Wn.prototype.$getTop=function(Nn,Dn){return(Nn-Dn.firstRowScreen)*Dn.lineHeight},Wn.prototype.drawTextMarker=function(Nn,Dn,In,Bn,Ln){for(var Pn=this.session,Zn=Dn.start.row,Jn=Dn.end.row,Xn=Zn,mi=0,ci=0,oi=Pn.getScreenLastRowColumn(Xn),ei=new Hn(Xn,Dn.start.column,Xn,ci);Xn<=Jn;Xn++)ei.start.row=ei.end.row=Xn,ei.start.column=Xn==Zn?Dn.start.column:Pn.getRowWrapIndent(Xn),ei.end.column=oi,mi=ci,ci=oi,oi=Xn+1<Jn?Pn.getScreenLastRowColumn(Xn+1):Xn==Jn?0:Dn.end.column,this.drawSingleLineMarker(Nn,ei,In+(Xn==Zn?" ace_start":"")+" ace_br"+zn(Xn==Zn||Xn==Zn+1&&Dn.start.column,mi<ci,ci>oi,Xn==Jn),Bn,Xn==Jn?0:1,Ln)},Wn.prototype.drawMultiLineMarker=function(Nn,Dn,In,Bn,Ln){var Pn=this.$padding,Zn=Bn.lineHeight,Jn=this.$getTop(Dn.start.row,Bn),Xn=Pn+Dn.start.column*Bn.characterWidth;if(Ln=Ln||"",this.session.$bidiHandler.isBidiRow(Dn.start.row)){var mi=Dn.clone();mi.end.row=mi.start.row,mi.end.column=this.session.getLine(mi.start.row).length,this.drawBidiSingleLineMarker(Nn,mi,In+" ace_br1 ace_start",Bn,null,Ln)}else this.elt(In+" ace_br1 ace_start","height:"+Zn+"px;right:"+Pn+"px;top:"+Jn+"px;left:"+Xn+"px;"+(Ln||""));if(this.session.$bidiHandler.isBidiRow(Dn.end.row)){var mi=Dn.clone();mi.start.row=mi.end.row,mi.start.column=0,this.drawBidiSingleLineMarker(Nn,mi,In+" ace_br12",Bn,null,Ln)}else{Jn=this.$getTop(Dn.end.row,Bn);var ci=Dn.end.column*Bn.characterWidth;this.elt(In+" ace_br12","height:"+Zn+"px;width:"+ci+"px;top:"+Jn+"px;left:"+Pn+"px;"+(Ln||""))}if(Zn=(Dn.end.row-Dn.start.row-1)*Bn.lineHeight,!(Zn<=0)){Jn=this.$getTop(Dn.start.row+1,Bn);var oi=(Dn.start.column?1:0)|(Dn.end.column?0:8);this.elt(In+(oi?" ace_br"+oi:""),"height:"+Zn+"px;right:"+Pn+"px;top:"+Jn+"px;left:"+Pn+"px;"+(Ln||""))}},Wn.prototype.drawSingleLineMarker=function(Nn,Dn,In,Bn,Ln,Pn){if(this.session.$bidiHandler.isBidiRow(Dn.start.row))return this.drawBidiSingleLineMarker(Nn,Dn,In,Bn,Ln,Pn);var Zn=Bn.lineHeight,Jn=(Dn.end.column+(Ln||0)-Dn.start.column)*Bn.characterWidth,Xn=this.$getTop(Dn.start.row,Bn),mi=this.$padding+Dn.start.column*Bn.characterWidth;this.elt(In,"height:"+Zn+"px;width:"+Jn+"px;top:"+Xn+"px;left:"+mi+"px;"+(Pn||""))},Wn.prototype.drawBidiSingleLineMarker=function(Nn,Dn,In,Bn,Ln,Pn){var Zn=Bn.lineHeight,Jn=this.$getTop(Dn.start.row,Bn),Xn=this.$padding,mi=this.session.$bidiHandler.getSelections(Dn.start.column,Dn.end.column);mi.forEach(function(ci){this.elt(In,"height:"+Zn+"px;width:"+(ci.width+(Ln||0))+"px;top:"+Jn+"px;left:"+(Xn+ci.left)+"px;"+(Pn||""))},this)},Wn.prototype.drawFullLineMarker=function(Nn,Dn,In,Bn,Ln){var Pn=this.$getTop(Dn.start.row,Bn),Zn=Bn.lineHeight;Dn.start.row!=Dn.end.row&&(Zn+=this.$getTop(Dn.end.row,Bn)-Pn),this.elt(In,"height:"+Zn+"px;top:"+Pn+"px;left:0;right:0;"+(Ln||""))},Wn.prototype.drawScreenLineMarker=function(Nn,Dn,In,Bn,Ln){var Pn=this.$getTop(Dn.start.row,Bn),Zn=Bn.lineHeight;this.elt(In,"height:"+Zn+"px;top:"+Pn+"px;left:0;right:0;"+(Ln||""))},Wn}();Qn.prototype.$padding=0;function zn(Wn,Nn,Dn,In){return(Wn?1:0)|(Nn?2:0)|(Dn?4:0)|(In?8:0)}kn.Marker=Qn}),ace.define("ace/layer/text_util",["require","exports","module"],function(_n,kn,qn){var Hn=new Set(["text","rparen","lparen"]);kn.isTextToken=function(Kn){return Hn.has(Kn)}}),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(_n,kn,qn){var Hn=_n("../lib/oop"),Kn=_n("../lib/dom"),Qn=_n("../lib/lang"),zn=_n("./lines").Lines,Wn=_n("../lib/event_emitter").EventEmitter,Nn=_n("../config").nls,Dn=_n("./text_util").isTextToken,In=function(){function Bn(Ln){this.dom=Kn,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",Ln.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new zn(this.element)}return Bn.prototype.$updateEolChar=function(){var Ln=this.session.doc,Pn=Ln.getNewLineCharacter()==`
208
+ `&&Ln.getNewLineMode()!="windows",Zn=Pn?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=Zn)return this.EOL_CHAR=Zn,!0},Bn.prototype.setPadding=function(Ln){this.$padding=Ln,this.element.style.margin="0 "+Ln+"px"},Bn.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},Bn.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},Bn.prototype.$setFontMetrics=function(Ln){this.$fontMetrics=Ln,this.$fontMetrics.on("changeCharacterSize",(function(Pn){this._signal("changeCharacterSize",Pn)}).bind(this)),this.$pollSizeChanges()},Bn.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},Bn.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},Bn.prototype.setSession=function(Ln){this.session=Ln,Ln&&this.$computeTabString()},Bn.prototype.setShowInvisibles=function(Ln){return this.showInvisibles==Ln?!1:(this.showInvisibles=Ln,typeof Ln=="string"?(this.showSpaces=/tab/i.test(Ln),this.showTabs=/space/i.test(Ln),this.showEOL=/eol/i.test(Ln)):this.showSpaces=this.showTabs=this.showEOL=Ln,this.$computeTabString(),!0)},Bn.prototype.setDisplayIndentGuides=function(Ln){return this.displayIndentGuides==Ln?!1:(this.displayIndentGuides=Ln,this.$computeTabString(),!0)},Bn.prototype.setHighlightIndentGuides=function(Ln){return this.$highlightIndentGuides===Ln?!1:(this.$highlightIndentGuides=Ln,Ln)},Bn.prototype.$computeTabString=function(){var Ln=this.session.getTabSize();this.tabSize=Ln;for(var Pn=this.$tabStrings=[0],Zn=1;Zn<Ln+1;Zn++)if(this.showTabs){var Jn=this.dom.createElement("span");Jn.className="ace_invisible ace_invisible_tab",Jn.textContent=Qn.stringRepeat(this.TAB_CHAR,Zn),Pn.push(Jn)}else Pn.push(this.dom.createTextNode(Qn.stringRepeat(" ",Zn),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var Xn="ace_indent-guide",mi=this.showSpaces?" ace_invisible ace_invisible_space":"",ci=this.showSpaces?Qn.stringRepeat(this.SPACE_CHAR,this.tabSize):Qn.stringRepeat(" ",this.tabSize),oi=this.showTabs?" ace_invisible ace_invisible_tab":"",ei=this.showTabs?Qn.stringRepeat(this.TAB_CHAR,this.tabSize):ci,Jn=this.dom.createElement("span");Jn.className=Xn+mi,Jn.textContent=ci,this.$tabStrings[" "]=Jn;var Jn=this.dom.createElement("span");Jn.className=Xn+oi,Jn.textContent=ei,this.$tabStrings[" "]=Jn}},Bn.prototype.updateLines=function(Ln,Pn,Zn){if(this.config.lastRow!=Ln.lastRow||this.config.firstRow!=Ln.firstRow)return this.update(Ln);this.config=Ln;for(var Jn=Math.max(Pn,Ln.firstRow),Xn=Math.min(Zn,Ln.lastRow),mi=this.element.childNodes,ci=0,oi=Ln.firstRow;oi<Jn;oi++){var ei=this.session.getFoldLine(oi);if(ei)if(ei.containsRow(Jn)){Jn=ei.start.row;break}else oi=ei.end.row;ci++}for(var fi=!1,oi=Jn,ei=this.session.getNextFoldLine(oi),gi=ei?ei.start.row:1/0;oi>gi&&(oi=ei.end.row+1,ei=this.session.getNextFoldLine(oi,ei),gi=ei?ei.start.row:1/0),!(oi>Xn);){var yi=mi[ci++];if(yi){this.dom.removeChildren(yi),this.$renderLine(yi,oi,oi==gi?ei:!1),fi&&(yi.style.top=this.$lines.computeLineTop(oi,Ln,this.session)+"px");var pi=Ln.lineHeight*this.session.getRowLength(oi)+"px";yi.style.height!=pi&&(fi=!0,yi.style.height=pi)}oi++}if(fi)for(;ci<this.$lines.cells.length;){var $i=this.$lines.cells[ci++];$i.element.style.top=this.$lines.computeLineTop($i.row,Ln,this.session)+"px"}},Bn.prototype.scrollLines=function(Ln){var Pn=this.config;if(this.config=Ln,this.$lines.pageChanged(Pn,Ln))return this.update(Ln);this.$lines.moveContainer(Ln);var Zn=Ln.lastRow,Jn=Pn?Pn.lastRow:-1;if(!Pn||Jn<Ln.firstRow)return this.update(Ln);if(Zn<Pn.firstRow)return this.update(Ln);if(!Pn||Pn.lastRow<Ln.firstRow)return this.update(Ln);if(Ln.lastRow<Pn.firstRow)return this.update(Ln);if(Pn.firstRow<Ln.firstRow)for(var Xn=this.session.getFoldedRowCount(Pn.firstRow,Ln.firstRow-1);Xn>0;Xn--)this.$lines.shift();if(Pn.lastRow>Ln.lastRow)for(var Xn=this.session.getFoldedRowCount(Ln.lastRow+1,Pn.lastRow);Xn>0;Xn--)this.$lines.pop();Ln.firstRow<Pn.firstRow&&this.$lines.unshift(this.$renderLinesFragment(Ln,Ln.firstRow,Pn.firstRow-1)),Ln.lastRow>Pn.lastRow&&this.$lines.push(this.$renderLinesFragment(Ln,Pn.lastRow+1,Ln.lastRow)),this.$highlightIndentGuide()},Bn.prototype.$renderLinesFragment=function(Ln,Pn,Zn){for(var Jn=[],Xn=Pn,mi=this.session.getNextFoldLine(Xn),ci=mi?mi.start.row:1/0;Xn>ci&&(Xn=mi.end.row+1,mi=this.session.getNextFoldLine(Xn,mi),ci=mi?mi.start.row:1/0),!(Xn>Zn);){var oi=this.$lines.createCell(Xn,Ln,this.session),ei=oi.element;this.dom.removeChildren(ei),Kn.setStyle(ei.style,"height",this.$lines.computeLineHeight(Xn,Ln,this.session)+"px"),Kn.setStyle(ei.style,"top",this.$lines.computeLineTop(Xn,Ln,this.session)+"px"),this.$renderLine(ei,Xn,Xn==ci?mi:!1),this.$useLineGroups()?ei.className="ace_line_group":ei.className="ace_line",Jn.push(oi),Xn++}return Jn},Bn.prototype.update=function(Ln){this.$lines.moveContainer(Ln),this.config=Ln;for(var Pn=Ln.firstRow,Zn=Ln.lastRow,Jn=this.$lines;Jn.getLength();)Jn.pop();Jn.push(this.$renderLinesFragment(Ln,Pn,Zn))},Bn.prototype.$renderToken=function(Ln,Pn,Zn,Jn){for(var Xn=this,mi=/(\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,ci=this.dom.createFragment(this.element),oi,ei=0;oi=mi.exec(Jn);){var fi=oi[1],gi=oi[2],yi=oi[3],pi=oi[4],$i=oi[5];if(!(!Xn.showSpaces&&gi)){var si=ei!=oi.index?Jn.slice(ei,oi.index):"";if(ei=oi.index+oi[0].length,si&&ci.appendChild(this.dom.createTextNode(si,this.element)),fi){var ti=Xn.session.getScreenTabSize(Pn+oi.index);ci.appendChild(Xn.$tabStrings[ti].cloneNode(!0)),Pn+=ti-1}else if(gi)if(Xn.showSpaces){var ai=this.dom.createElement("span");ai.className="ace_invisible ace_invisible_space",ai.textContent=Qn.stringRepeat(Xn.SPACE_CHAR,gi.length),ci.appendChild(ai)}else ci.appendChild(this.dom.createTextNode(gi,this.element));else if(yi){var ai=this.dom.createElement("span");ai.className="ace_invisible ace_invisible_space ace_invalid",ai.textContent=Qn.stringRepeat(Xn.SPACE_CHAR,yi.length),ci.appendChild(ai)}else if(pi){Pn+=1;var ai=this.dom.createElement("span");ai.style.width=Xn.config.characterWidth*2+"px",ai.className=Xn.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",ai.textContent=Xn.showSpaces?Xn.SPACE_CHAR:pi,ci.appendChild(ai)}else if($i){Pn+=1;var ai=this.dom.createElement("span");ai.style.width=Xn.config.characterWidth*2+"px",ai.className="ace_cjk",ai.textContent=$i,ci.appendChild(ai)}}}if(ci.appendChild(this.dom.createTextNode(ei?Jn.slice(ei):Jn,this.element)),Dn(Zn.type))Ln.appendChild(ci);else{var vi="ace_"+Zn.type.replace(/\./g," ace_"),ai=this.dom.createElement("span");Zn.type=="fold"&&(ai.style.width=Zn.value.length*this.config.characterWidth+"px",ai.setAttribute("title",Nn("inline-fold.closed.title","Unfold code"))),ai.className=vi,ai.appendChild(ci),Ln.appendChild(ai)}return Pn+Jn.length},Bn.prototype.renderIndentGuide=function(Ln,Pn,Zn){var Jn=Pn.search(this.$indentGuideRe);if(Jn<=0||Jn>=Zn)return Pn;if(Pn[0]==" "){Jn-=Jn%this.tabSize;for(var Xn=Jn/this.tabSize,mi=0;mi<Xn;mi++)Ln.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),Pn.substr(Jn)}else if(Pn[0]==" "){for(var mi=0;mi<Jn;mi++)Ln.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),Pn.substr(Jn)}return this.$highlightIndentGuide(),Pn},Bn.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var Ln=this.session.doc.$lines;if(Ln){var Pn=this.session.selection.getCursor(),Zn=/^\s*/.exec(this.session.doc.getLine(Pn.row))[0].length,Jn=Math.floor(Zn/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:Jn,start:Pn.row};var Xn=this.session.$bracketHighlight;if(Xn){for(var mi=this.session.$bracketHighlight.ranges,ci=0;ci<mi.length;ci++)if(Pn.row!==mi[ci].start.row){this.$highlightIndentGuideMarker.end=mi[ci].start.row,Pn.row>mi[ci].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&Ln[Pn.row]!==""&&Pn.column===Ln[Pn.row].length){this.$highlightIndentGuideMarker.dir=1;for(var ci=Pn.row+1;ci<Ln.length;ci++){var oi=Ln[ci],ei=/^\s*/.exec(oi)[0].length;if(oi!==""&&(this.$highlightIndentGuideMarker.end=ci,ei<=Zn))break}}this.$renderHighlightIndentGuide()}}},Bn.prototype.$clearActiveIndentGuide=function(){for(var Ln=this.$lines.cells,Pn=0;Pn<Ln.length;Pn++){var Zn=Ln[Pn],Jn=Zn.element.childNodes;if(Jn.length>0){for(var Xn=0;Xn<Jn.length;Xn++)if(Jn[Xn].classList&&Jn[Xn].classList.contains("ace_indent-guide-active")){Jn[Xn].classList.remove("ace_indent-guide-active");break}}}},Bn.prototype.$setIndentGuideActive=function(Ln,Pn){var Zn=this.session.doc.getLine(Ln.row);if(Zn!==""){var Jn=Ln.element.childNodes;if(Jn){var Xn=Jn[Pn-1];Xn&&Xn.classList&&Xn.classList.contains("ace_indent-guide")&&Xn.classList.add("ace_indent-guide-active")}}},Bn.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var Ln=this.$lines.cells;this.$clearActiveIndentGuide();var Pn=this.$highlightIndentGuideMarker.indentLevel;if(Pn!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var Zn=0;Zn<Ln.length;Zn++){var Jn=Ln[Zn];if(this.$highlightIndentGuideMarker.end&&Jn.row>=this.$highlightIndentGuideMarker.start+1){if(Jn.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(Jn,Pn)}}else for(var Zn=Ln.length-1;Zn>=0;Zn--){var Jn=Ln[Zn];if(this.$highlightIndentGuideMarker.end&&Jn.row<this.$highlightIndentGuideMarker.start){if(Jn.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(Jn,Pn)}}}},Bn.prototype.$createLineElement=function(Ln){var Pn=this.dom.createElement("div");return Pn.className="ace_line",Pn.style.height=this.config.lineHeight+"px",Pn},Bn.prototype.$renderWrappedLine=function(Ln,Pn,Zn){var Jn=0,Xn=0,mi=Zn[0],ci=0,oi=this.$createLineElement();Ln.appendChild(oi);for(var ei=0;ei<Pn.length;ei++){var fi=Pn[ei],gi=fi.value;if(ei==0&&this.displayIndentGuides){if(Jn=gi.length,gi=this.renderIndentGuide(oi,gi,mi),!gi)continue;Jn-=gi.length}if(Jn+gi.length<mi)ci=this.$renderToken(oi,ci,fi,gi),Jn+=gi.length;else{for(;Jn+gi.length>=mi;)ci=this.$renderToken(oi,ci,fi,gi.substring(0,mi-Jn)),gi=gi.substring(mi-Jn),Jn=mi,oi=this.$createLineElement(),Ln.appendChild(oi),oi.appendChild(this.dom.createTextNode(Qn.stringRepeat(" ",Zn.indent),this.element)),Xn++,ci=0,mi=Zn[Xn]||Number.MAX_VALUE;gi.length!=0&&(Jn+=gi.length,ci=this.$renderToken(oi,ci,fi,gi))}}Zn[Zn.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(oi,ci,null,"",!0)},Bn.prototype.$renderSimpleLine=function(Ln,Pn){for(var Zn=0,Jn=0;Jn<Pn.length;Jn++){var Xn=Pn[Jn],mi=Xn.value;if(!(Jn==0&&this.displayIndentGuides&&(mi=this.renderIndentGuide(Ln,mi),!mi))){if(Zn+mi.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(Ln,Zn,Xn,mi);Zn=this.$renderToken(Ln,Zn,Xn,mi)}}},Bn.prototype.$renderOverflowMessage=function(Ln,Pn,Zn,Jn,Xn){Zn&&this.$renderToken(Ln,Pn,Zn,Jn.slice(0,this.MAX_LINE_LENGTH-Pn));var mi=this.dom.createElement("span");mi.className="ace_inline_button ace_keyword ace_toggle_wrap",mi.textContent=Xn?"<hide>":"<click to see more...>",Ln.appendChild(mi)},Bn.prototype.$renderLine=function(Ln,Pn,Zn){if(!Zn&&Zn!=!1&&(Zn=this.session.getFoldLine(Pn)),Zn)var Jn=this.$getFoldLineTokens(Pn,Zn);else var Jn=this.session.getTokens(Pn);var Xn=Ln;if(Jn.length){var mi=this.session.getRowSplitData(Pn);if(mi&&mi.length){this.$renderWrappedLine(Ln,Jn,mi);var Xn=Ln.lastChild}else{var Xn=Ln;this.$useLineGroups()&&(Xn=this.$createLineElement(),Ln.appendChild(Xn)),this.$renderSimpleLine(Xn,Jn)}}else this.$useLineGroups()&&(Xn=this.$createLineElement(),Ln.appendChild(Xn));if(this.showEOL&&Xn){Zn&&(Pn=Zn.end.row);var ci=this.dom.createElement("span");ci.className="ace_invisible ace_invisible_eol",ci.textContent=Pn==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,Xn.appendChild(ci)}},Bn.prototype.$getFoldLineTokens=function(Ln,Pn){var Zn=this.session,Jn=[];function Xn(ci,oi,ei){for(var fi=0,gi=0;gi+ci[fi].value.length<oi;)if(gi+=ci[fi].value.length,fi++,fi==ci.length)return;if(gi!=oi){var yi=ci[fi].value.substring(oi-gi);yi.length>ei-oi&&(yi=yi.substring(0,ei-oi)),Jn.push({type:ci[fi].type,value:yi}),gi=oi+yi.length,fi+=1}for(;gi<ei&&fi<ci.length;){var yi=ci[fi].value;yi.length+gi>ei?Jn.push({type:ci[fi].type,value:yi.substring(0,ei-gi)}):Jn.push(ci[fi]),gi+=yi.length,fi+=1}}var mi=Zn.getTokens(Ln);return Pn.walk(function(ci,oi,ei,fi,gi){ci!=null?Jn.push({type:"fold",value:ci}):(gi&&(mi=Zn.getTokens(oi)),mi.length&&Xn(mi,fi,ei))},Pn.end.row,this.session.getLine(Pn.end.row).length),Jn},Bn.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},Bn}();In.prototype.EOF_CHAR="¶",In.prototype.EOL_CHAR_LF="¬",In.prototype.EOL_CHAR_CRLF="¤",In.prototype.EOL_CHAR=In.prototype.EOL_CHAR_LF,In.prototype.TAB_CHAR="—",In.prototype.SPACE_CHAR="·",In.prototype.$padding=0,In.prototype.MAX_LINE_LENGTH=1e4,In.prototype.showInvisibles=!1,In.prototype.showSpaces=!1,In.prototype.showTabs=!1,In.prototype.showEOL=!1,In.prototype.displayIndentGuides=!0,In.prototype.$highlightIndentGuides=!0,In.prototype.$tabStrings=[],In.prototype.destroy={},In.prototype.onChangeTabSize=In.prototype.$computeTabString,Hn.implement(In.prototype,Wn),kn.Text=In}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(_n,kn,qn){var Hn=_n("../lib/dom"),Kn=function(){function Qn(zn){this.element=Hn.createElement("div"),this.element.className="ace_layer ace_cursor-layer",zn.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),Hn.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return Qn.prototype.$updateOpacity=function(zn){for(var Wn=this.cursors,Nn=Wn.length;Nn--;)Hn.setStyle(Wn[Nn].style,"opacity",zn?"":"0")},Qn.prototype.$startCssAnimation=function(){for(var zn=this.cursors,Wn=zn.length;Wn--;)zn[Wn].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&Hn.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},Qn.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,Hn.removeCssClass(this.element,"ace_animate-blinking")},Qn.prototype.setPadding=function(zn){this.$padding=zn},Qn.prototype.setSession=function(zn){this.session=zn},Qn.prototype.setBlinking=function(zn){zn!=this.isBlinking&&(this.isBlinking=zn,this.restartTimer())},Qn.prototype.setBlinkInterval=function(zn){zn!=this.blinkInterval&&(this.blinkInterval=zn,this.restartTimer())},Qn.prototype.setSmoothBlinking=function(zn){zn!=this.smoothBlinking&&(this.smoothBlinking=zn,Hn.setCssClass(this.element,"ace_smooth-blinking",zn),this.$updateCursors(!0),this.restartTimer())},Qn.prototype.addCursor=function(){var zn=Hn.createElement("div");return zn.className="ace_cursor",this.element.appendChild(zn),this.cursors.push(zn),zn},Qn.prototype.removeCursor=function(){if(this.cursors.length>1){var zn=this.cursors.pop();return zn.parentNode.removeChild(zn),zn}},Qn.prototype.hideCursor=function(){this.isVisible=!1,Hn.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},Qn.prototype.showCursor=function(){this.isVisible=!0,Hn.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},Qn.prototype.restartTimer=function(){var zn=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,Hn.removeCssClass(this.element,"ace_smooth-blinking")),zn(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&Hn.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),Hn.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var Wn=(function(){this.timeoutId=setTimeout(function(){zn(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){zn(!0),Wn()},this.blinkInterval),Wn()}},Qn.prototype.getPixelPosition=function(zn,Wn){if(!this.config||!this.session)return{left:0,top:0};zn||(zn=this.session.selection.getCursor());var Nn=this.session.documentToScreenPosition(zn),Dn=this.$padding+(this.session.$bidiHandler.isBidiRow(Nn.row,zn.row)?this.session.$bidiHandler.getPosLeft(Nn.column):Nn.column*this.config.characterWidth),In=(Nn.row-(Wn?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:Dn,top:In}},Qn.prototype.isCursorInView=function(zn,Wn){return zn.top>=0&&zn.top<Wn.maxHeight},Qn.prototype.update=function(zn){this.config=zn;var Wn=this.session.$selectionMarkers,Nn=0,Dn=0;(Wn===void 0||Wn.length===0)&&(Wn=[{cursor:null}]);for(var Nn=0,In=Wn.length;Nn<In;Nn++){var Bn=this.getPixelPosition(Wn[Nn].cursor,!0);if(!((Bn.top>zn.height+zn.offset||Bn.top<0)&&Nn>1)){var Ln=this.cursors[Dn++]||this.addCursor(),Pn=Ln.style;this.drawCursor?this.drawCursor(Ln,Bn,zn,Wn[Nn],this.session):this.isCursorInView(Bn,zn)?(Hn.setStyle(Pn,"display","block"),Hn.translate(Ln,Bn.left,Bn.top),Hn.setStyle(Pn,"width",Math.round(zn.characterWidth)+"px"),Hn.setStyle(Pn,"height",zn.lineHeight+"px")):Hn.setStyle(Pn,"display","none")}}for(;this.cursors.length>Dn;)this.removeCursor();var Zn=this.session.getOverwrite();this.$setOverwrite(Zn),this.$pixelPos=Bn,this.restartTimer()},Qn.prototype.$setOverwrite=function(zn){zn!=this.overwrite&&(this.overwrite=zn,zn?Hn.addCssClass(this.element,"ace_overwrite-cursors"):Hn.removeCssClass(this.element,"ace_overwrite-cursors"))},Qn.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},Qn}();Kn.prototype.$padding=0,Kn.prototype.drawCursor=null,kn.Cursor=Kn}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(_n,kn,qn){var Hn=this&&this.__extends||function(){var Ln=function(Pn,Zn){return Ln=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Jn,Xn){Jn.__proto__=Xn}||function(Jn,Xn){for(var mi in Xn)Object.prototype.hasOwnProperty.call(Xn,mi)&&(Jn[mi]=Xn[mi])},Ln(Pn,Zn)};return function(Pn,Zn){if(typeof Zn!="function"&&Zn!==null)throw new TypeError("Class extends value "+String(Zn)+" is not a constructor or null");Ln(Pn,Zn);function Jn(){this.constructor=Pn}Pn.prototype=Zn===null?Object.create(Zn):(Jn.prototype=Zn.prototype,new Jn)}}(),Kn=_n("./lib/oop"),Qn=_n("./lib/dom"),zn=_n("./lib/event"),Wn=_n("./lib/event_emitter").EventEmitter,Nn=32768,Dn=function(){function Ln(Pn,Zn){this.element=Qn.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+Zn,this.inner=Qn.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),Pn.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,zn.addListener(this.element,"scroll",this.onScroll.bind(this)),zn.addListener(this.element,"mousedown",zn.preventDefault)}return Ln.prototype.setVisible=function(Pn){this.element.style.display=Pn?"":"none",this.isVisible=Pn,this.coeff=1},Ln}();Kn.implement(Dn.prototype,Wn);var In=function(Ln){Hn(Pn,Ln);function Pn(Zn,Jn){var Xn=Ln.call(this,Zn,"-v")||this;return Xn.scrollTop=0,Xn.scrollHeight=0,Jn.$scrollbarWidth=Xn.width=Qn.scrollbarWidth(Zn.ownerDocument),Xn.inner.style.width=Xn.element.style.width=(Xn.width||15)+5+"px",Xn.$minWidth=0,Xn}return Pn.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var Zn=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-Zn)/(this.coeff-Zn)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},Pn.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},Pn.prototype.setHeight=function(Zn){this.element.style.height=Zn+"px"},Pn.prototype.setScrollHeight=function(Zn){this.scrollHeight=Zn,Zn>Nn?(this.coeff=Nn/Zn,Zn=Nn):this.coeff!=1&&(this.coeff=1),this.inner.style.height=Zn+"px"},Pn.prototype.setScrollTop=function(Zn){this.scrollTop!=Zn&&(this.skipEvent=!0,this.scrollTop=Zn,this.element.scrollTop=Zn*this.coeff)},Pn}(Dn);In.prototype.setInnerHeight=In.prototype.setScrollHeight;var Bn=function(Ln){Hn(Pn,Ln);function Pn(Zn,Jn){var Xn=Ln.call(this,Zn,"-h")||this;return Xn.scrollLeft=0,Xn.height=Jn.$scrollbarWidth,Xn.inner.style.height=Xn.element.style.height=(Xn.height||15)+5+"px",Xn}return Pn.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},Pn.prototype.getHeight=function(){return this.isVisible?this.height:0},Pn.prototype.setWidth=function(Zn){this.element.style.width=Zn+"px"},Pn.prototype.setInnerWidth=function(Zn){this.inner.style.width=Zn+"px"},Pn.prototype.setScrollWidth=function(Zn){this.inner.style.width=Zn+"px"},Pn.prototype.setScrollLeft=function(Zn){this.scrollLeft!=Zn&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=Zn)},Pn}(Dn);kn.ScrollBar=In,kn.ScrollBarV=In,kn.ScrollBarH=Bn,kn.VScrollBar=In,kn.HScrollBar=Bn}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(_n,kn,qn){var Hn=this&&this.__extends||function(){var Bn=function(Ln,Pn){return Bn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Zn,Jn){Zn.__proto__=Jn}||function(Zn,Jn){for(var Xn in Jn)Object.prototype.hasOwnProperty.call(Jn,Xn)&&(Zn[Xn]=Jn[Xn])},Bn(Ln,Pn)};return function(Ln,Pn){if(typeof Pn!="function"&&Pn!==null)throw new TypeError("Class extends value "+String(Pn)+" is not a constructor or null");Bn(Ln,Pn);function Zn(){this.constructor=Ln}Ln.prototype=Pn===null?Object.create(Pn):(Zn.prototype=Pn.prototype,new Zn)}}(),Kn=_n("./lib/oop"),Qn=_n("./lib/dom"),zn=_n("./lib/event"),Wn=_n("./lib/event_emitter").EventEmitter;Qn.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
209
+ position: absolute;
210
+ background: rgba(128, 128, 128, 0.6);
211
+ -moz-box-sizing: border-box;
212
+ box-sizing: border-box;
213
+ border: 1px solid #bbb;
214
+ border-radius: 2px;
215
+ z-index: 8;
216
+ }
217
+ .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
218
+ position: absolute;
219
+ z-index: 6;
220
+ background: none;
221
+ overflow: hidden!important;
222
+ }
223
+ .ace_editor>.ace_sb-v {
224
+ z-index: 6;
225
+ right: 0;
226
+ top: 0;
227
+ width: 12px;
228
+ }
229
+ .ace_editor>.ace_sb-v div {
230
+ z-index: 8;
231
+ right: 0;
232
+ width: 100%;
233
+ }
234
+ .ace_editor>.ace_sb-h {
235
+ bottom: 0;
236
+ left: 0;
237
+ height: 12px;
238
+ }
239
+ .ace_editor>.ace_sb-h div {
240
+ bottom: 0;
241
+ height: 100%;
242
+ }
243
+ .ace_editor>.ace_sb_grabbed {
244
+ z-index: 8;
245
+ background: #000;
246
+ }`,"ace_scrollbar.css",!1);var Nn=function(){function Bn(Ln,Pn){this.element=Qn.createElement("div"),this.element.className="ace_sb"+Pn,this.inner=Qn.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,Ln.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,zn.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return Bn.prototype.setVisible=function(Ln){this.element.style.display=Ln?"":"none",this.isVisible=Ln,this.coeff=1},Bn}();Kn.implement(Nn.prototype,Wn);var Dn=function(Bn){Hn(Ln,Bn);function Ln(Pn,Zn){var Jn=Bn.call(this,Pn,"-v")||this;return Jn.scrollTop=0,Jn.scrollHeight=0,Jn.parent=Pn,Jn.width=Jn.VScrollWidth,Jn.renderer=Zn,Jn.inner.style.width=Jn.element.style.width=(Jn.width||15)+"px",Jn.$minWidth=0,Jn}return Ln.prototype.onMouseDown=function(Pn,Zn){if(Pn==="mousedown"&&!(zn.getButton(Zn)!==0||Zn.detail===2)){if(Zn.target===this.inner){var Jn=this,Xn=Zn.clientY,mi=function(pi){Xn=pi.clientY},ci=function(){clearInterval(gi)},oi=Zn.clientY,ei=this.thumbTop,fi=function(){if(Xn!==void 0){var pi=Jn.scrollTopFromThumbTop(ei+Xn-oi);pi!==Jn.scrollTop&&Jn._emit("scroll",{data:pi})}};zn.capture(this.inner,mi,ci);var gi=setInterval(fi,20);return zn.preventDefault(Zn)}var yi=Zn.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(yi)}),zn.preventDefault(Zn)}},Ln.prototype.getHeight=function(){return this.height},Ln.prototype.scrollTopFromThumbTop=function(Pn){var Zn=Pn*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return Zn=Zn>>0,Zn<0?Zn=0:Zn>this.pageHeight-this.viewHeight&&(Zn=this.pageHeight-this.viewHeight),Zn},Ln.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},Ln.prototype.setHeight=function(Pn){this.height=Math.max(0,Pn),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},Ln.prototype.setScrollHeight=function(Pn,Zn){this.pageHeight===Pn&&!Zn||(this.pageHeight=Pn,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})))},Ln.prototype.setScrollTop=function(Pn){this.scrollTop=Pn,Pn<0&&(Pn=0),this.thumbTop=Pn*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},Ln}(Nn);Dn.prototype.setInnerHeight=Dn.prototype.setScrollHeight;var In=function(Bn){Hn(Ln,Bn);function Ln(Pn,Zn){var Jn=Bn.call(this,Pn,"-h")||this;return Jn.scrollLeft=0,Jn.scrollWidth=0,Jn.height=Jn.HScrollHeight,Jn.inner.style.height=Jn.element.style.height=(Jn.height||12)+"px",Jn.renderer=Zn,Jn}return Ln.prototype.onMouseDown=function(Pn,Zn){if(Pn==="mousedown"&&!(zn.getButton(Zn)!==0||Zn.detail===2)){if(Zn.target===this.inner){var Jn=this,Xn=Zn.clientX,mi=function(pi){Xn=pi.clientX},ci=function(){clearInterval(gi)},oi=Zn.clientX,ei=this.thumbLeft,fi=function(){if(Xn!==void 0){var pi=Jn.scrollLeftFromThumbLeft(ei+Xn-oi);pi!==Jn.scrollLeft&&Jn._emit("scroll",{data:pi})}};zn.capture(this.inner,mi,ci);var gi=setInterval(fi,20);return zn.preventDefault(Zn)}var yi=Zn.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(yi)}),zn.preventDefault(Zn)}},Ln.prototype.getHeight=function(){return this.isVisible?this.height:0},Ln.prototype.scrollLeftFromThumbLeft=function(Pn){var Zn=Pn*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return Zn=Zn>>0,Zn<0?Zn=0:Zn>this.pageWidth-this.viewWidth&&(Zn=this.pageWidth-this.viewWidth),Zn},Ln.prototype.setWidth=function(Pn){this.width=Math.max(0,Pn),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},Ln.prototype.setScrollWidth=function(Pn,Zn){this.pageWidth===Pn&&!Zn||(this.pageWidth=Pn,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})))},Ln.prototype.setScrollLeft=function(Pn){this.scrollLeft=Pn,Pn<0&&(Pn=0),this.thumbLeft=Pn*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},Ln}(Nn);In.prototype.setInnerWidth=In.prototype.setScrollWidth,kn.ScrollBar=Dn,kn.ScrollBarV=Dn,kn.ScrollBarH=In,kn.VScrollBar=Dn,kn.HScrollBar=In}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(_n,kn,qn){var Hn=_n("./lib/event"),Kn=function(){function Qn(zn,Wn){this.onRender=zn,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=Wn||window;var Nn=this;this._flush=function(Dn){Nn.pending=!1;var In=Nn.changes;if(In&&(Hn.blockIdle(100),Nn.changes=0,Nn.onRender(In)),Nn.changes){if(Nn.$recursionLimit--<0)return;Nn.schedule()}else Nn.$recursionLimit=2}}return Qn.prototype.schedule=function(zn){this.changes=this.changes|zn,this.changes&&!this.pending&&(Hn.nextFrame(this._flush),this.pending=!0)},Qn.prototype.clear=function(zn){var Wn=this.changes;return this.changes=0,Wn},Qn}();kn.RenderLoop=Kn}),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(_n,kn,qn){var Hn=_n("../lib/oop"),Kn=_n("../lib/dom"),Qn=_n("../lib/lang"),zn=_n("../lib/event"),Wn=_n("../lib/useragent"),Nn=_n("../lib/event_emitter").EventEmitter,Dn=512,In=typeof ResizeObserver=="function",Bn=200,Ln=function(){function Pn(Zn){this.el=Kn.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=Kn.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=Kn.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),Zn.appendChild(this.el),this.$measureNode.textContent=Qn.stringRepeat("X",Dn),this.$characterSize={width:0,height:0},In?this.$addObserver():this.checkForSizeChanges()}return Pn.prototype.$setMeasureNodeStyles=function(Zn,Jn){Zn.width=Zn.height="auto",Zn.left=Zn.top="0px",Zn.visibility="hidden",Zn.position="absolute",Zn.whiteSpace="pre",Wn.isIE<8?Zn["font-family"]="inherit":Zn.font="inherit",Zn.overflow=Jn?"hidden":"visible"},Pn.prototype.checkForSizeChanges=function(Zn){if(Zn===void 0&&(Zn=this.$measureSizes()),Zn&&(this.$characterSize.width!==Zn.width||this.$characterSize.height!==Zn.height)){this.$measureNode.style.fontWeight="bold";var Jn=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=Zn,this.charSizes=Object.create(null),this.allowBoldFonts=Jn&&Jn.width===Zn.width&&Jn.height===Zn.height,this._emit("changeCharacterSize",{data:Zn})}},Pn.prototype.$addObserver=function(){var Zn=this;this.$observer=new window.ResizeObserver(function(Jn){Zn.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},Pn.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var Zn=this;return this.$pollSizeChangesTimer=zn.onIdle(function Jn(){Zn.checkForSizeChanges(),zn.onIdle(Jn,500)},500)},Pn.prototype.setPolling=function(Zn){Zn?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},Pn.prototype.$measureSizes=function(Zn){var Jn={height:(Zn||this.$measureNode).clientHeight,width:(Zn||this.$measureNode).clientWidth/Dn};return Jn.width===0||Jn.height===0?null:Jn},Pn.prototype.$measureCharWidth=function(Zn){this.$main.textContent=Qn.stringRepeat(Zn,Dn);var Jn=this.$main.getBoundingClientRect();return Jn.width/Dn},Pn.prototype.getCharacterWidth=function(Zn){var Jn=this.charSizes[Zn];return Jn===void 0&&(Jn=this.charSizes[Zn]=this.$measureCharWidth(Zn)/this.$characterSize.width),Jn},Pn.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},Pn.prototype.$getZoom=function(Zn){return!Zn||!Zn.parentElement?1:(Number(window.getComputedStyle(Zn).zoom)||1)*this.$getZoom(Zn.parentElement)},Pn.prototype.$initTransformMeasureNodes=function(){var Zn=function(Jn,Xn){return["div",{style:"position: absolute;top:"+Jn+"px;left:"+Xn+"px;"}]};this.els=Kn.buildDom([Zn(0,0),Zn(Bn,0),Zn(0,Bn),Zn(Bn,Bn)],this.el)},Pn.prototype.transformCoordinates=function(Zn,Jn){if(Zn){var Xn=this.$getZoom(this.el);Zn=ei(1/Xn,Zn)}function mi(Ri,Ni,Fi){var Ii=Ri[1]*Ni[0]-Ri[0]*Ni[1];return[(-Ni[1]*Fi[0]+Ni[0]*Fi[1])/Ii,(+Ri[1]*Fi[0]-Ri[0]*Fi[1])/Ii]}function ci(Ri,Ni){return[Ri[0]-Ni[0],Ri[1]-Ni[1]]}function oi(Ri,Ni){return[Ri[0]+Ni[0],Ri[1]+Ni[1]]}function ei(Ri,Ni){return[Ri*Ni[0],Ri*Ni[1]]}this.els||this.$initTransformMeasureNodes();function fi(Ri){var Ni=Ri.getBoundingClientRect();return[Ni.left,Ni.top]}var gi=fi(this.els[0]),yi=fi(this.els[1]),pi=fi(this.els[2]),$i=fi(this.els[3]),si=mi(ci($i,yi),ci($i,pi),ci(oi(yi,pi),oi($i,gi))),ti=ei(1+si[0],ci(yi,gi)),ai=ei(1+si[1],ci(pi,gi));if(Jn){var vi=Jn,wi=si[0]*vi[0]/Bn+si[1]*vi[1]/Bn+1,xi=oi(ei(vi[0],ti),ei(vi[1],ai));return oi(ei(1/wi/Bn,xi),gi)}var Si=ci(Zn,gi),Ei=mi(ci(ti,ei(si[0],Si)),ci(ai,ei(si[1],Si)),Si);return ei(Bn,Ei)},Pn}();Ln.prototype.$characterSize={width:0,height:0},Hn.implement(Ln.prototype,Nn),kn.FontMetrics=Ln}),ace.define("ace/css/editor-css",["require","exports","module"],function(_n,kn,qn){qn.exports=`
247
+ .ace_br1 {border-top-left-radius : 3px;}
248
+ .ace_br2 {border-top-right-radius : 3px;}
249
+ .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
250
+ .ace_br4 {border-bottom-right-radius: 3px;}
251
+ .ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
252
+ .ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
253
+ .ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
254
+ .ace_br8 {border-bottom-left-radius : 3px;}
255
+ .ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
256
+ .ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
257
+ .ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
258
+ .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
259
+ .ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
260
+ .ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
261
+ .ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
262
+
263
+
264
+ .ace_editor {
265
+ position: relative;
266
+ overflow: hidden;
267
+ padding: 0;
268
+ font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
269
+ direction: ltr;
270
+ text-align: left;
271
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
272
+ forced-color-adjust: none;
273
+ }
274
+
275
+ .ace_scroller {
276
+ position: absolute;
277
+ overflow: hidden;
278
+ top: 0;
279
+ bottom: 0;
280
+ background-color: inherit;
281
+ -ms-user-select: none;
282
+ -moz-user-select: none;
283
+ -webkit-user-select: none;
284
+ user-select: none;
285
+ cursor: text;
286
+ }
287
+
288
+ .ace_content {
289
+ position: absolute;
290
+ box-sizing: border-box;
291
+ min-width: 100%;
292
+ contain: style size layout;
293
+ font-variant-ligatures: no-common-ligatures;
294
+ }
295
+
296
+ .ace_keyboard-focus:focus {
297
+ box-shadow: inset 0 0 0 2px #5E9ED6;
298
+ outline: none;
299
+ }
300
+
301
+ .ace_dragging .ace_scroller:before{
302
+ position: absolute;
303
+ top: 0;
304
+ left: 0;
305
+ right: 0;
306
+ bottom: 0;
307
+ content: '';
308
+ background: rgba(250, 250, 250, 0.01);
309
+ z-index: 1000;
310
+ }
311
+ .ace_dragging.ace_dark .ace_scroller:before{
312
+ background: rgba(0, 0, 0, 0.01);
313
+ }
314
+
315
+ .ace_gutter {
316
+ position: absolute;
317
+ overflow : hidden;
318
+ width: auto;
319
+ top: 0;
320
+ bottom: 0;
321
+ left: 0;
322
+ cursor: default;
323
+ z-index: 4;
324
+ -ms-user-select: none;
325
+ -moz-user-select: none;
326
+ -webkit-user-select: none;
327
+ user-select: none;
328
+ contain: style size layout;
329
+ }
330
+
331
+ .ace_gutter-active-line {
332
+ position: absolute;
333
+ left: 0;
334
+ right: 0;
335
+ }
336
+
337
+ .ace_scroller.ace_scroll-left:after {
338
+ content: "";
339
+ position: absolute;
340
+ top: 0;
341
+ right: 0;
342
+ bottom: 0;
343
+ left: 0;
344
+ box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
345
+ pointer-events: none;
346
+ }
347
+
348
+ .ace_gutter-cell, .ace_gutter-cell_svg-icons {
349
+ position: absolute;
350
+ top: 0;
351
+ left: 0;
352
+ right: 0;
353
+ padding-left: 19px;
354
+ padding-right: 6px;
355
+ background-repeat: no-repeat;
356
+ }
357
+
358
+ .ace_gutter-cell_svg-icons .ace_gutter_annotation {
359
+ margin-left: -14px;
360
+ float: left;
361
+ }
362
+
363
+ .ace_gutter-cell .ace_gutter_annotation {
364
+ margin-left: -19px;
365
+ float: left;
366
+ }
367
+
368
+ .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 {
369
+ 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==");
370
+ background-repeat: no-repeat;
371
+ background-position: 2px center;
372
+ }
373
+
374
+ .ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
375
+ 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==");
376
+ background-repeat: no-repeat;
377
+ background-position: 2px center;
378
+ }
379
+
380
+ .ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
381
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
382
+ background-repeat: no-repeat;
383
+ background-position: 2px center;
384
+ }
385
+
386
+ .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 {
387
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
388
+ }
389
+
390
+ .ace_icon_svg.ace_error {
391
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
392
+ background-color: crimson;
393
+ }
394
+ .ace_icon_svg.ace_security {
395
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
396
+ background-color: crimson;
397
+ }
398
+ .ace_icon_svg.ace_warning {
399
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
400
+ background-color: darkorange;
401
+ }
402
+ .ace_icon_svg.ace_info {
403
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
404
+ background-color: royalblue;
405
+ }
406
+ .ace_icon_svg.ace_hint {
407
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
408
+ background-color: silver;
409
+ }
410
+
411
+ .ace_icon_svg.ace_error_fold {
412
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
413
+ background-color: crimson;
414
+ }
415
+ .ace_icon_svg.ace_security_fold {
416
+ -webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
417
+ background-color: crimson;
418
+ }
419
+ .ace_icon_svg.ace_warning_fold {
420
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
421
+ background-color: darkorange;
422
+ }
423
+
424
+ .ace_scrollbar {
425
+ contain: strict;
426
+ position: absolute;
427
+ right: 0;
428
+ bottom: 0;
429
+ z-index: 6;
430
+ }
431
+
432
+ .ace_scrollbar-inner {
433
+ position: absolute;
434
+ cursor: text;
435
+ left: 0;
436
+ top: 0;
437
+ }
438
+
439
+ .ace_scrollbar-v{
440
+ overflow-x: hidden;
441
+ overflow-y: scroll;
442
+ top: 0;
443
+ }
444
+
445
+ .ace_scrollbar-h {
446
+ overflow-x: scroll;
447
+ overflow-y: hidden;
448
+ left: 0;
449
+ }
450
+
451
+ .ace_print-margin {
452
+ position: absolute;
453
+ height: 100%;
454
+ }
455
+
456
+ .ace_text-input {
457
+ position: absolute;
458
+ z-index: 0;
459
+ width: 0.5em;
460
+ height: 1em;
461
+ opacity: 0;
462
+ background: transparent;
463
+ -moz-appearance: none;
464
+ appearance: none;
465
+ border: none;
466
+ resize: none;
467
+ outline: none;
468
+ overflow: hidden;
469
+ font: inherit;
470
+ padding: 0 1px;
471
+ margin: 0 -1px;
472
+ contain: strict;
473
+ -ms-user-select: text;
474
+ -moz-user-select: text;
475
+ -webkit-user-select: text;
476
+ user-select: text;
477
+ /*with \`pre-line\` chrome inserts &nbsp; instead of space*/
478
+ white-space: pre!important;
479
+ }
480
+ .ace_text-input.ace_composition {
481
+ background: transparent;
482
+ color: inherit;
483
+ z-index: 1000;
484
+ opacity: 1;
485
+ }
486
+ .ace_composition_placeholder { color: transparent }
487
+ .ace_composition_marker {
488
+ border-bottom: 1px solid;
489
+ position: absolute;
490
+ border-radius: 0;
491
+ margin-top: 1px;
492
+ }
493
+
494
+ [ace_nocontext=true] {
495
+ transform: none!important;
496
+ filter: none!important;
497
+ clip-path: none!important;
498
+ mask : none!important;
499
+ contain: none!important;
500
+ perspective: none!important;
501
+ mix-blend-mode: initial!important;
502
+ z-index: auto;
503
+ }
504
+
505
+ .ace_layer {
506
+ z-index: 1;
507
+ position: absolute;
508
+ overflow: hidden;
509
+ /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
510
+ word-wrap: normal;
511
+ white-space: pre;
512
+ height: 100%;
513
+ width: 100%;
514
+ box-sizing: border-box;
515
+ /* setting pointer-events: auto; on node under the mouse, which changes
516
+ during scroll, will break mouse wheel scrolling in Safari */
517
+ pointer-events: none;
518
+ }
519
+
520
+ .ace_gutter-layer {
521
+ position: relative;
522
+ width: auto;
523
+ text-align: right;
524
+ pointer-events: auto;
525
+ height: 1000000px;
526
+ contain: style size layout;
527
+ }
528
+
529
+ .ace_text-layer {
530
+ font: inherit !important;
531
+ position: absolute;
532
+ height: 1000000px;
533
+ width: 1000000px;
534
+ contain: style size layout;
535
+ }
536
+
537
+ .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
538
+ contain: style size layout;
539
+ position: absolute;
540
+ top: 0;
541
+ left: 0;
542
+ right: 0;
543
+ }
544
+
545
+ .ace_hidpi .ace_text-layer,
546
+ .ace_hidpi .ace_gutter-layer,
547
+ .ace_hidpi .ace_content,
548
+ .ace_hidpi .ace_gutter {
549
+ contain: strict;
550
+ }
551
+ .ace_hidpi .ace_text-layer > .ace_line,
552
+ .ace_hidpi .ace_text-layer > .ace_line_group {
553
+ contain: strict;
554
+ }
555
+
556
+ .ace_cjk {
557
+ display: inline-block;
558
+ text-align: center;
559
+ }
560
+
561
+ .ace_cursor-layer {
562
+ z-index: 4;
563
+ }
564
+
565
+ .ace_cursor {
566
+ z-index: 4;
567
+ position: absolute;
568
+ box-sizing: border-box;
569
+ border-left: 2px solid;
570
+ /* workaround for smooth cursor repaintng whole screen in chrome */
571
+ transform: translatez(0);
572
+ }
573
+
574
+ .ace_multiselect .ace_cursor {
575
+ border-left-width: 1px;
576
+ }
577
+
578
+ .ace_slim-cursors .ace_cursor {
579
+ border-left-width: 1px;
580
+ }
581
+
582
+ .ace_overwrite-cursors .ace_cursor {
583
+ border-left-width: 0;
584
+ border-bottom: 1px solid;
585
+ }
586
+
587
+ .ace_hidden-cursors .ace_cursor {
588
+ opacity: 0.2;
589
+ }
590
+
591
+ .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
592
+ opacity: 0;
593
+ }
594
+
595
+ .ace_smooth-blinking .ace_cursor {
596
+ transition: opacity 0.18s;
597
+ }
598
+
599
+ .ace_animate-blinking .ace_cursor {
600
+ animation-duration: 1000ms;
601
+ animation-timing-function: step-end;
602
+ animation-name: blink-ace-animate;
603
+ animation-iteration-count: infinite;
604
+ }
605
+
606
+ .ace_animate-blinking.ace_smooth-blinking .ace_cursor {
607
+ animation-duration: 1000ms;
608
+ animation-timing-function: ease-in-out;
609
+ animation-name: blink-ace-animate-smooth;
610
+ }
611
+
612
+ @keyframes blink-ace-animate {
613
+ from, to { opacity: 1; }
614
+ 60% { opacity: 0; }
615
+ }
616
+
617
+ @keyframes blink-ace-animate-smooth {
618
+ from, to { opacity: 1; }
619
+ 45% { opacity: 1; }
620
+ 60% { opacity: 0; }
621
+ 85% { opacity: 0; }
622
+ }
623
+
624
+ .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
625
+ position: absolute;
626
+ z-index: 3;
627
+ }
628
+
629
+ .ace_marker-layer .ace_selection {
630
+ position: absolute;
631
+ z-index: 5;
632
+ }
633
+
634
+ .ace_marker-layer .ace_bracket {
635
+ position: absolute;
636
+ z-index: 6;
637
+ }
638
+
639
+ .ace_marker-layer .ace_error_bracket {
640
+ position: absolute;
641
+ border-bottom: 1px solid #DE5555;
642
+ border-radius: 0;
643
+ }
644
+
645
+ .ace_marker-layer .ace_active-line {
646
+ position: absolute;
647
+ z-index: 2;
648
+ }
649
+
650
+ .ace_marker-layer .ace_selected-word {
651
+ position: absolute;
652
+ z-index: 4;
653
+ box-sizing: border-box;
654
+ }
655
+
656
+ .ace_line .ace_fold {
657
+ box-sizing: border-box;
658
+
659
+ display: inline-block;
660
+ height: 11px;
661
+ margin-top: -2px;
662
+ vertical-align: middle;
663
+
664
+ background-image:
665
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
666
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
667
+ background-repeat: no-repeat, repeat-x;
668
+ background-position: center center, top left;
669
+ color: transparent;
670
+
671
+ border: 1px solid black;
672
+ border-radius: 2px;
673
+
674
+ cursor: pointer;
675
+ pointer-events: auto;
676
+ }
677
+
678
+ .ace_dark .ace_fold {
679
+ }
680
+
681
+ .ace_fold:hover{
682
+ background-image:
683
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
684
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
685
+ }
686
+
687
+ .ace_tooltip {
688
+ background-color: #f5f5f5;
689
+ border: 1px solid gray;
690
+ border-radius: 1px;
691
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
692
+ color: black;
693
+ max-width: 100%;
694
+ padding: 3px 4px;
695
+ position: fixed;
696
+ z-index: 999999;
697
+ box-sizing: border-box;
698
+ cursor: default;
699
+ white-space: pre-wrap;
700
+ word-wrap: break-word;
701
+ line-height: normal;
702
+ font-style: normal;
703
+ font-weight: normal;
704
+ letter-spacing: normal;
705
+ pointer-events: none;
706
+ overflow: auto;
707
+ max-width: min(60em, 66vw);
708
+ overscroll-behavior: contain;
709
+ }
710
+ .ace_tooltip pre {
711
+ white-space: pre-wrap;
712
+ }
713
+
714
+ .ace_tooltip.ace_dark {
715
+ background-color: #636363;
716
+ color: #fff;
717
+ }
718
+
719
+ .ace_tooltip:focus {
720
+ outline: 1px solid #5E9ED6;
721
+ }
722
+
723
+ .ace_icon {
724
+ display: inline-block;
725
+ width: 18px;
726
+ vertical-align: top;
727
+ }
728
+
729
+ .ace_icon_svg {
730
+ display: inline-block;
731
+ width: 12px;
732
+ vertical-align: top;
733
+ -webkit-mask-repeat: no-repeat;
734
+ -webkit-mask-size: 12px;
735
+ -webkit-mask-position: center;
736
+ }
737
+
738
+ .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
739
+ padding-right: 13px;
740
+ }
741
+
742
+ .ace_fold-widget {
743
+ box-sizing: border-box;
744
+
745
+ margin: 0 -12px 0 1px;
746
+ display: none;
747
+ width: 11px;
748
+ vertical-align: top;
749
+
750
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
751
+ background-repeat: no-repeat;
752
+ background-position: center;
753
+
754
+ border-radius: 3px;
755
+
756
+ border: 1px solid transparent;
757
+ cursor: pointer;
758
+ }
759
+
760
+ .ace_folding-enabled .ace_fold-widget {
761
+ display: inline-block;
762
+ }
763
+
764
+ .ace_fold-widget.ace_end {
765
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
766
+ }
767
+
768
+ .ace_fold-widget.ace_closed {
769
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
770
+ }
771
+
772
+ .ace_fold-widget:hover {
773
+ border: 1px solid rgba(0, 0, 0, 0.3);
774
+ background-color: rgba(255, 255, 255, 0.2);
775
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
776
+ }
777
+
778
+ .ace_fold-widget:active {
779
+ border: 1px solid rgba(0, 0, 0, 0.4);
780
+ background-color: rgba(0, 0, 0, 0.05);
781
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
782
+ }
783
+ /**
784
+ * Dark version for fold widgets
785
+ */
786
+ .ace_dark .ace_fold-widget {
787
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
788
+ }
789
+ .ace_dark .ace_fold-widget.ace_end {
790
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
791
+ }
792
+ .ace_dark .ace_fold-widget.ace_closed {
793
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
794
+ }
795
+ .ace_dark .ace_fold-widget:hover {
796
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
797
+ background-color: rgba(255, 255, 255, 0.1);
798
+ }
799
+ .ace_dark .ace_fold-widget:active {
800
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
801
+ }
802
+
803
+ .ace_inline_button {
804
+ border: 1px solid lightgray;
805
+ display: inline-block;
806
+ margin: -1px 8px;
807
+ padding: 0 5px;
808
+ pointer-events: auto;
809
+ cursor: pointer;
810
+ }
811
+ .ace_inline_button:hover {
812
+ border-color: gray;
813
+ background: rgba(200,200,200,0.2);
814
+ display: inline-block;
815
+ pointer-events: auto;
816
+ }
817
+
818
+ .ace_fold-widget.ace_invalid {
819
+ background-color: #FFB4B4;
820
+ border-color: #DE5555;
821
+ }
822
+
823
+ .ace_fade-fold-widgets .ace_fold-widget {
824
+ transition: opacity 0.4s ease 0.05s;
825
+ opacity: 0;
826
+ }
827
+
828
+ .ace_fade-fold-widgets:hover .ace_fold-widget {
829
+ transition: opacity 0.05s ease 0.05s;
830
+ opacity:1;
831
+ }
832
+
833
+ .ace_underline {
834
+ text-decoration: underline;
835
+ }
836
+
837
+ .ace_bold {
838
+ font-weight: bold;
839
+ }
840
+
841
+ .ace_nobold .ace_bold {
842
+ font-weight: normal;
843
+ }
844
+
845
+ .ace_italic {
846
+ font-style: italic;
847
+ }
848
+
849
+
850
+ .ace_error-marker {
851
+ background-color: rgba(255, 0, 0,0.2);
852
+ position: absolute;
853
+ z-index: 9;
854
+ }
855
+
856
+ .ace_highlight-marker {
857
+ background-color: rgba(255, 255, 0,0.2);
858
+ position: absolute;
859
+ z-index: 8;
860
+ }
861
+
862
+ .ace_mobile-menu {
863
+ position: absolute;
864
+ line-height: 1.5;
865
+ border-radius: 4px;
866
+ -ms-user-select: none;
867
+ -moz-user-select: none;
868
+ -webkit-user-select: none;
869
+ user-select: none;
870
+ background: white;
871
+ box-shadow: 1px 3px 2px grey;
872
+ border: 1px solid #dcdcdc;
873
+ color: black;
874
+ }
875
+ .ace_dark > .ace_mobile-menu {
876
+ background: #333;
877
+ color: #ccc;
878
+ box-shadow: 1px 3px 2px grey;
879
+ border: 1px solid #444;
880
+
881
+ }
882
+ .ace_mobile-button {
883
+ padding: 2px;
884
+ cursor: pointer;
885
+ overflow: hidden;
886
+ }
887
+ .ace_mobile-button:hover {
888
+ background-color: #eee;
889
+ opacity:1;
890
+ }
891
+ .ace_mobile-button:active {
892
+ background-color: #ddd;
893
+ }
894
+
895
+ .ace_placeholder {
896
+ position: relative;
897
+ font-family: arial;
898
+ transform: scale(0.9);
899
+ transform-origin: left;
900
+ white-space: pre;
901
+ opacity: 0.7;
902
+ margin: 0 10px;
903
+ z-index: 1;
904
+ }
905
+
906
+ .ace_ghost_text {
907
+ opacity: 0.5;
908
+ font-style: italic;
909
+ }
910
+
911
+ .ace_ghost_text_container > div {
912
+ white-space: pre;
913
+ }
914
+
915
+ .ghost_text_line_wrapped::after {
916
+ content: "↩";
917
+ position: absolute;
918
+ }
919
+
920
+ .ace_lineWidgetContainer.ace_ghost_text {
921
+ margin: 0px 4px
922
+ }
923
+
924
+ .ace_screenreader-only {
925
+ position:absolute;
926
+ left:-10000px;
927
+ top:auto;
928
+ width:1px;
929
+ height:1px;
930
+ overflow:hidden;
931
+ }
932
+
933
+ .ace_hidden_token {
934
+ display: none;
935
+ }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(_n,kn,qn){var Hn=_n("../lib/dom"),Kn=_n("../lib/oop"),Qn=_n("../lib/event_emitter").EventEmitter,zn=function(){function Wn(Nn,Dn){this.canvas=Hn.createElement("canvas"),this.renderer=Dn,this.pixelRatio=1,this.maxHeight=Dn.layerConfig.maxHeight,this.lineHeight=Dn.layerConfig.lineHeight,this.canvasHeight=Nn.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=Nn.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)"},Nn.element.appendChild(this.canvas)}return Wn.prototype.$updateDecorators=function(Nn){var Dn=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(Nn){this.maxHeight=Nn.maxHeight,this.lineHeight=Nn.lineHeight,this.canvasHeight=Nn.height;var In=(Nn.lastRow+1)*this.lineHeight;In<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var Bn=this.canvas.getContext("2d");function Ln($i,si){return $i.priority<si.priority?-1:$i.priority>si.priority?1:0}var Pn=this.renderer.session.$annotations;if(Bn.clearRect(0,0,this.canvas.width,this.canvas.height),Pn){var Zn={info:1,warning:2,error:3};Pn.forEach(function($i){$i.priority=Zn[$i.type]||null}),Pn=Pn.sort(Ln);for(var Jn=this.renderer.session.$foldData,Xn=0;Xn<Pn.length;Xn++){var mi=Pn[Xn].row,ci=this.compensateFoldRows(mi,Jn),oi=Math.round((mi-ci)*this.lineHeight*this.heightRatio),ei=Math.round((mi-ci)*this.lineHeight*this.heightRatio),fi=Math.round(((mi-ci)*this.lineHeight+this.lineHeight)*this.heightRatio),gi=fi-ei;if(gi<this.minDecorationHeight){var yi=(ei+fi)/2|0;yi<this.halfMinDecorationHeight?yi=this.halfMinDecorationHeight:yi+this.halfMinDecorationHeight>this.canvasHeight&&(yi=this.canvasHeight-this.halfMinDecorationHeight),ei=Math.round(yi-this.halfMinDecorationHeight),fi=Math.round(yi+this.halfMinDecorationHeight)}Bn.fillStyle=Dn[Pn[Xn].type]||null,Bn.fillRect(0,oi,this.canvasWidth,fi-ei)}}var pi=this.renderer.session.selection.getCursor();if(pi){var ci=this.compensateFoldRows(pi.row,Jn),oi=Math.round((pi.row-ci)*this.lineHeight*this.heightRatio);Bn.fillStyle="rgba(0, 0, 0, 0.5)",Bn.fillRect(0,oi,this.canvasWidth,2)}},Wn.prototype.compensateFoldRows=function(Nn,Dn){var In=0;if(Dn&&Dn.length>0)for(var Bn=0;Bn<Dn.length;Bn++)Nn>Dn[Bn].start.row&&Nn<Dn[Bn].end.row?In+=Nn-Dn[Bn].start.row:Nn>=Dn[Bn].end.row&&(In+=Dn[Bn].end.row-Dn[Bn].start.row);return In},Wn}();Kn.implement(zn.prototype,Qn),kn.Decorator=zn}),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(_n,kn,qn){var Hn=_n("./lib/oop"),Kn=_n("./lib/dom"),Qn=_n("./lib/lang"),zn=_n("./config"),Wn=_n("./layer/gutter").Gutter,Nn=_n("./layer/marker").Marker,Dn=_n("./layer/text").Text,In=_n("./layer/cursor").Cursor,Bn=_n("./scrollbar").HScrollBar,Ln=_n("./scrollbar").VScrollBar,Pn=_n("./scrollbar_custom").HScrollBar,Zn=_n("./scrollbar_custom").VScrollBar,Jn=_n("./renderloop").RenderLoop,Xn=_n("./layer/font_metrics").FontMetrics,mi=_n("./lib/event_emitter").EventEmitter,ci=_n("./css/editor-css"),oi=_n("./layer/decorators").Decorator,ei=_n("./lib/useragent"),fi=_n("./layer/text_util").isTextToken;Kn.importCssString(ci,"ace_editor.css",!1);var gi=function(){function yi(pi,$i){var si=this;this.container=pi||Kn.createElement("div"),Kn.addCssClass(this.container,"ace_editor"),Kn.HI_DPI&&Kn.addCssClass(this.container,"ace_hidpi"),this.setTheme($i),zn.get("useStrictCSP")==null&&zn.set("useStrictCSP",!1),this.$gutter=Kn.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=Kn.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=Kn.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new Wn(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new Nn(this.content);var ti=this.$textLayer=new Dn(this.content);this.canvas=ti.element,this.$markerFront=new Nn(this.content),this.$cursorLayer=new In(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new Ln(this.container,this),this.scrollBarH=new Bn(this.container,this),this.scrollBarV.on("scroll",function(ai){si.$scrollAnimation||si.session.setScrollTop(ai.data-si.scrollMargin.top)}),this.scrollBarH.on("scroll",function(ai){si.$scrollAnimation||si.session.setScrollLeft(ai.data-si.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new Xn(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(ai){si.updateCharacterSize(),si.onResize(!0,si.gutterWidth,si.$size.width,si.$size.height),si._signal("changeCharacterSize",ai)}),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=!ei.isIOS,this.$loop=new Jn(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),zn.resetOptions(this),zn._signal("renderer",this)}return yi.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(),Kn.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},yi.prototype.setSession=function(pi){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=pi,pi&&this.scrollMargin.top&&pi.getScrollTop()<=0&&pi.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(pi),this.$markerBack.setSession(pi),this.$markerFront.setSession(pi),this.$gutterLayer.setSession(pi),this.$textLayer.setSession(pi),pi&&(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))},yi.prototype.updateLines=function(pi,$i,si){if($i===void 0&&($i=1/0),this.$changedLines?(this.$changedLines.firstRow>pi&&(this.$changedLines.firstRow=pi),this.$changedLines.lastRow<$i&&(this.$changedLines.lastRow=$i)):this.$changedLines={firstRow:pi,lastRow:$i},this.$changedLines.lastRow<this.layerConfig.firstRow)if(si)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},yi.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},yi.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},yi.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},yi.prototype.updateFull=function(pi){pi?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},yi.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},yi.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},yi.prototype.onResize=function(pi,$i,si,ti){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=pi?1:0;var ai=this.container;ti||(ti=ai.clientHeight||ai.scrollHeight),!ti&&this.$maxLines&&this.lineHeight>1&&(!ai.style.height||ai.style.height=="0px")&&(ai.style.height="1px",ti=ai.clientHeight||ai.scrollHeight),si||(si=ai.clientWidth||ai.scrollWidth);var vi=this.$updateCachedSize(pi,$i,si,ti);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!si&&!ti)return this.resizing=0;pi&&(this.$gutterLayer.$padding=null),pi?this.$renderChanges(vi|this.$changes,!0):this.$loop.schedule(vi|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},yi.prototype.$updateCachedSize=function(pi,$i,si,ti){ti-=this.$extraHeight||0;var ai=0,vi=this.$size,wi={width:vi.width,height:vi.height,scrollerHeight:vi.scrollerHeight,scrollerWidth:vi.scrollerWidth};if(ti&&(pi||vi.height!=ti)&&(vi.height=ti,ai|=this.CHANGE_SIZE,vi.scrollerHeight=vi.height,this.$horizScroll&&(vi.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(vi.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",ai=ai|this.CHANGE_SCROLL),si&&(pi||vi.width!=si)){ai|=this.CHANGE_SIZE,vi.width=si,$i==null&&($i=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=$i,Kn.setStyle(this.scrollBarH.element.style,"left",$i+"px"),Kn.setStyle(this.scroller.style,"left",$i+this.margin.left+"px"),vi.scrollerWidth=Math.max(0,si-$i-this.scrollBarV.getWidth()-this.margin.h),Kn.setStyle(this.$gutter.style,"left",this.margin.left+"px");var xi=this.scrollBarV.getWidth()+"px";Kn.setStyle(this.scrollBarH.element.style,"right",xi),Kn.setStyle(this.scroller.style,"right",xi),Kn.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(vi.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||pi)&&(ai|=this.CHANGE_FULL)}return vi.$dirty=!si||!ti,ai&&this._signal("resize",wi),ai},yi.prototype.onGutterResize=function(pi){var $i=this.$showGutter?pi:0;$i!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,$i,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},yi.prototype.adjustWrapLimit=function(){var pi=this.$size.scrollerWidth-this.$padding*2,$i=Math.floor(pi/this.characterWidth);return this.session.adjustWrapLimit($i,this.$showPrintMargin&&this.$printMarginColumn)},yi.prototype.setAnimatedScroll=function(pi){this.setOption("animatedScroll",pi)},yi.prototype.getAnimatedScroll=function(){return this.$animatedScroll},yi.prototype.setShowInvisibles=function(pi){this.setOption("showInvisibles",pi),this.session.$bidiHandler.setShowInvisibles(pi)},yi.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},yi.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},yi.prototype.setDisplayIndentGuides=function(pi){this.setOption("displayIndentGuides",pi)},yi.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},yi.prototype.setHighlightIndentGuides=function(pi){this.setOption("highlightIndentGuides",pi)},yi.prototype.setShowPrintMargin=function(pi){this.setOption("showPrintMargin",pi)},yi.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},yi.prototype.setPrintMarginColumn=function(pi){this.setOption("printMarginColumn",pi)},yi.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},yi.prototype.getShowGutter=function(){return this.getOption("showGutter")},yi.prototype.setShowGutter=function(pi){return this.setOption("showGutter",pi)},yi.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},yi.prototype.setFadeFoldWidgets=function(pi){this.setOption("fadeFoldWidgets",pi)},yi.prototype.setHighlightGutterLine=function(pi){this.setOption("highlightGutterLine",pi)},yi.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},yi.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var pi=Kn.createElement("div");pi.className="ace_layer ace_print-margin-layer",this.$printMarginEl=Kn.createElement("div"),this.$printMarginEl.className="ace_print-margin",pi.appendChild(this.$printMarginEl),this.content.insertBefore(pi,this.content.firstChild)}var $i=this.$printMarginEl.style;$i.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",$i.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},yi.prototype.getContainerElement=function(){return this.container},yi.prototype.getMouseEventTarget=function(){return this.scroller},yi.prototype.getTextAreaContainer=function(){return this.container},yi.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var pi=this.textarea.style,$i=this.$composition;if(!this.$keepTextAreaAtCursor&&!$i){Kn.translate(this.textarea,-100,0);return}var si=this.$cursorLayer.$pixelPos;if(si){$i&&$i.markerRange&&(si=this.$cursorLayer.getPixelPosition($i.markerRange.start,!0));var ti=this.layerConfig,ai=si.top,vi=si.left;ai-=ti.offset;var wi=$i&&$i.useTextareaForIME||ei.isMobile?this.lineHeight:1;if(ai<0||ai>ti.height-wi){Kn.translate(this.textarea,0,0);return}var xi=1,Si=this.$size.height-wi;if(!$i)ai+=this.lineHeight;else if($i.useTextareaForIME){var Ei=this.textarea.value;xi=this.characterWidth*this.session.$getStringScreenWidth(Ei)[0]}else ai+=this.lineHeight+2;vi-=this.scrollLeft,vi>this.$size.scrollerWidth-xi&&(vi=this.$size.scrollerWidth-xi),vi+=this.gutterWidth+this.margin.left,Kn.setStyle(pi,"height",wi+"px"),Kn.setStyle(pi,"width",xi+"px"),Kn.translate(this.textarea,Math.min(vi,this.$size.scrollerWidth-xi),Math.min(ai,Si))}}},yi.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},yi.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},yi.prototype.getLastFullyVisibleRow=function(){var pi=this.layerConfig,$i=pi.lastRow,si=this.session.documentToScreenRow($i,0)*pi.lineHeight;return si-this.session.getScrollTop()>pi.height-pi.lineHeight?$i-1:$i},yi.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},yi.prototype.setPadding=function(pi){this.$padding=pi,this.$textLayer.setPadding(pi),this.$cursorLayer.setPadding(pi),this.$markerFront.setPadding(pi),this.$markerBack.setPadding(pi),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},yi.prototype.setScrollMargin=function(pi,$i,si,ti){var ai=this.scrollMargin;ai.top=pi|0,ai.bottom=$i|0,ai.right=ti|0,ai.left=si|0,ai.v=ai.top+ai.bottom,ai.h=ai.left+ai.right,ai.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-ai.top),this.updateFull()},yi.prototype.setMargin=function(pi,$i,si,ti){var ai=this.margin;ai.top=pi|0,ai.bottom=$i|0,ai.right=ti|0,ai.left=si|0,ai.v=ai.top+ai.bottom,ai.h=ai.left+ai.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},yi.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},yi.prototype.setHScrollBarAlwaysVisible=function(pi){this.setOption("hScrollBarAlwaysVisible",pi)},yi.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},yi.prototype.setVScrollBarAlwaysVisible=function(pi){this.setOption("vScrollBarAlwaysVisible",pi)},yi.prototype.$updateScrollBarV=function(){var pi=this.layerConfig.maxHeight,$i=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(pi-=($i-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>pi-$i&&(pi=this.scrollTop+$i,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(pi+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},yi.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},yi.prototype.freeze=function(){this.$frozen=!0},yi.prototype.unfreeze=function(){this.$frozen=!1},yi.prototype.$renderChanges=function(pi,$i){if(this.$changes&&(pi|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!pi&&!$i){this.$changes|=pi;return}if(this.$size.$dirty)return this.$changes|=pi,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",pi),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var si=this.layerConfig;if(pi&this.CHANGE_FULL||pi&this.CHANGE_SIZE||pi&this.CHANGE_TEXT||pi&this.CHANGE_LINES||pi&this.CHANGE_SCROLL||pi&this.CHANGE_H_SCROLL){if(pi|=this.$computeLayerConfig()|this.$loop.clear(),si.firstRow!=this.layerConfig.firstRow&&si.firstRowScreen==this.layerConfig.firstRowScreen){var ti=this.scrollTop+(si.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;ti>0&&(this.scrollTop=ti,pi=pi|this.CHANGE_SCROLL,pi|=this.$computeLayerConfig()|this.$loop.clear())}si=this.layerConfig,this.$updateScrollBarV(),pi&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),Kn.translate(this.content,-this.scrollLeft,-si.offset);var ai=si.width+2*this.$padding+"px",vi=si.minHeight+"px";Kn.setStyle(this.content.style,"width",ai),Kn.setStyle(this.content.style,"height",vi)}if(pi&this.CHANGE_H_SCROLL&&(Kn.translate(this.content,-this.scrollLeft,-si.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),pi&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(si),this.$showGutter&&this.$gutterLayer.update(si),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(si),this.$markerBack.update(si),this.$markerFront.update(si),this.$cursorLayer.update(si),this.$moveTextAreaToCursor(),this._signal("afterRender",pi);return}if(pi&this.CHANGE_SCROLL){this.$changedLines=null,pi&this.CHANGE_TEXT||pi&this.CHANGE_LINES?this.$textLayer.update(si):this.$textLayer.scrollLines(si),this.$showGutter&&(pi&this.CHANGE_GUTTER||pi&this.CHANGE_LINES?this.$gutterLayer.update(si):this.$gutterLayer.scrollLines(si)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(si),this.$markerBack.update(si),this.$markerFront.update(si),this.$cursorLayer.update(si),this.$moveTextAreaToCursor(),this._signal("afterRender",pi);return}pi&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(si),this.$showGutter&&this.$gutterLayer.update(si),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(si)):pi&this.CHANGE_LINES?((this.$updateLines()||pi&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(si),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(si)):pi&this.CHANGE_TEXT||pi&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(si),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(si)):pi&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(si),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(si)),pi&this.CHANGE_CURSOR&&(this.$cursorLayer.update(si),this.$moveTextAreaToCursor()),pi&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(si),pi&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(si),this._signal("afterRender",pi)},yi.prototype.$autosize=function(){var pi=this.session.getScreenLength()*this.lineHeight,$i=this.$maxLines*this.lineHeight,si=Math.min($i,Math.max((this.$minLines||1)*this.lineHeight,pi))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(si+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&si>this.$maxPixelHeight&&(si=this.$maxPixelHeight);var ti=si<=2*this.lineHeight,ai=!ti&&pi>$i;if(si!=this.desiredHeight||this.$size.height!=this.desiredHeight||ai!=this.$vScroll){ai!=this.$vScroll&&(this.$vScroll=ai,this.scrollBarV.setVisible(ai));var vi=this.container.clientWidth;this.container.style.height=si+"px",this.$updateCachedSize(!0,this.$gutterWidth,vi,si),this.desiredHeight=si,this._signal("autosize")}},yi.prototype.$computeLayerConfig=function(){var pi=this.session,$i=this.$size,si=$i.height<=2*this.lineHeight,ti=this.session.getScreenLength(),ai=ti*this.lineHeight,vi=this.$getLongestLine(),wi=!si&&(this.$hScrollBarAlwaysVisible||$i.scrollerWidth-vi-2*this.$padding<0),xi=this.$horizScroll!==wi;xi&&(this.$horizScroll=wi,this.scrollBarH.setVisible(wi));var Si=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var Ei=$i.scrollerHeight+this.lineHeight,Ri=!this.$maxLines&&this.$scrollPastEnd?($i.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;ai+=Ri;var Ni=this.scrollMargin;this.session.setScrollTop(Math.max(-Ni.top,Math.min(this.scrollTop,ai-$i.scrollerHeight+Ni.bottom))),this.session.setScrollLeft(Math.max(-Ni.left,Math.min(this.scrollLeft,vi+2*this.$padding-$i.scrollerWidth+Ni.right)));var Fi=!si&&(this.$vScrollBarAlwaysVisible||$i.scrollerHeight-ai+Ri<0||this.scrollTop>Ni.top),Ii=Si!==Fi;Ii&&(this.$vScroll=Fi,this.scrollBarV.setVisible(Fi));var Vi=this.scrollTop%this.lineHeight,Gi=Math.ceil(Ei/this.lineHeight)-1,Pi=Math.max(0,Math.round((this.scrollTop-Vi)/this.lineHeight)),Zi=Pi+Gi,lr,gr,or=this.lineHeight;Pi=pi.screenToDocumentRow(Pi,0);var yr=pi.getFoldLine(Pi);yr&&(Pi=yr.start.row),lr=pi.documentToScreenRow(Pi,0),gr=pi.getRowLength(Pi)*or,Zi=Math.min(pi.screenToDocumentRow(Zi,0),pi.getLength()-1),Ei=$i.scrollerHeight+pi.getRowLength(Zi)*or+gr,Vi=this.scrollTop-lr*or;var io=0;return(this.layerConfig.width!=vi||xi)&&(io=this.CHANGE_H_SCROLL),(xi||Ii)&&(io|=this.$updateCachedSize(!0,this.gutterWidth,$i.width,$i.height),this._signal("scrollbarVisibilityChanged"),Ii&&(vi=this.$getLongestLine())),this.layerConfig={width:vi,padding:this.$padding,firstRow:Pi,firstRowScreen:lr,lastRow:Zi,lineHeight:or,characterWidth:this.characterWidth,minHeight:Ei,maxHeight:ai,offset:Vi,gutterOffset:or?Math.max(0,Math.ceil((Vi+$i.height-$i.scrollerHeight)/or)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(vi-this.$padding),io},yi.prototype.$updateLines=function(){if(this.$changedLines){var pi=this.$changedLines.firstRow,$i=this.$changedLines.lastRow;this.$changedLines=null;var si=this.layerConfig;if(!(pi>si.lastRow+1)&&!($i<si.firstRow)){if($i===1/0){this.$showGutter&&this.$gutterLayer.update(si),this.$textLayer.update(si);return}return this.$textLayer.updateLines(si,pi,$i),!0}}},yi.prototype.$getLongestLine=function(){var pi=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(pi+=1),this.$textLayer&&pi>this.$textLayer.MAX_LINE_LENGTH&&(pi=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(pi*this.characterWidth))},yi.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},yi.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},yi.prototype.addGutterDecoration=function(pi,$i){this.$gutterLayer.addGutterDecoration(pi,$i)},yi.prototype.removeGutterDecoration=function(pi,$i){this.$gutterLayer.removeGutterDecoration(pi,$i)},yi.prototype.updateBreakpoints=function(pi){this._rows=pi,this.$loop.schedule(this.CHANGE_GUTTER)},yi.prototype.setAnnotations=function(pi){this.$gutterLayer.setAnnotations(pi),this.$loop.schedule(this.CHANGE_GUTTER)},yi.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},yi.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},yi.prototype.showCursor=function(){this.$cursorLayer.showCursor()},yi.prototype.scrollSelectionIntoView=function(pi,$i,si){this.scrollCursorIntoView(pi,si),this.scrollCursorIntoView($i,si)},yi.prototype.scrollCursorIntoView=function(pi,$i,si){if(this.$size.scrollerHeight!==0){var ti=this.$cursorLayer.getPixelPosition(pi),ai=ti.left,vi=ti.top,wi=si&&si.top||0,xi=si&&si.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var Si=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;Si+wi>vi?($i&&Si+wi>vi+this.lineHeight&&(vi-=$i*this.$size.scrollerHeight),vi===0&&(vi=-this.scrollMargin.top),this.session.setScrollTop(vi)):Si+this.$size.scrollerHeight-xi<vi+this.lineHeight&&($i&&Si+this.$size.scrollerHeight-xi<vi-this.lineHeight&&(vi+=$i*this.$size.scrollerHeight),this.session.setScrollTop(vi+this.lineHeight+xi-this.$size.scrollerHeight));var Ei=this.scrollLeft,Ri=2*this.layerConfig.characterWidth;ai-Ri<Ei?(ai-=Ri,ai<this.$padding+Ri&&(ai=-this.scrollMargin.left),this.session.setScrollLeft(ai)):(ai+=Ri,Ei+this.$size.scrollerWidth<ai+this.characterWidth?this.session.setScrollLeft(Math.round(ai+this.characterWidth-this.$size.scrollerWidth)):Ei<=this.$padding&&ai-Ei<this.characterWidth&&this.session.setScrollLeft(0))}},yi.prototype.getScrollTop=function(){return this.session.getScrollTop()},yi.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},yi.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},yi.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},yi.prototype.scrollToRow=function(pi){this.session.setScrollTop(pi*this.lineHeight)},yi.prototype.alignCursor=function(pi,$i){typeof pi=="number"&&(pi={row:pi,column:0});var si=this.$cursorLayer.getPixelPosition(pi),ti=this.$size.scrollerHeight-this.lineHeight,ai=si.top-ti*($i||0);return this.session.setScrollTop(ai),ai},yi.prototype.$calcSteps=function(pi,$i){var si=0,ti=this.STEPS,ai=[],vi=function(wi,xi,Si){return Si*(Math.pow(wi-1,3)+1)+xi};for(si=0;si<ti;++si)ai.push(vi(si/this.STEPS,pi,$i-pi));return ai},yi.prototype.scrollToLine=function(pi,$i,si,ti){var ai=this.$cursorLayer.getPixelPosition({row:pi,column:0}),vi=ai.top;$i&&(vi-=this.$size.scrollerHeight/2);var wi=this.scrollTop;this.session.setScrollTop(vi),si!==!1&&this.animateScrolling(wi,ti)},yi.prototype.animateScrolling=function(pi,$i){var si=this.scrollTop;if(!this.$animatedScroll)return;var ti=this;if(pi==si)return;if(this.$scrollAnimation){var ai=this.$scrollAnimation.steps;if(ai.length&&(pi=ai[0],pi==si))return}var vi=ti.$calcSteps(pi,si);this.$scrollAnimation={from:pi,to:si,steps:vi},clearInterval(this.$timer),ti.session.setScrollTop(vi.shift()),ti.session.$scrollTop=si;function wi(){ti.$timer=clearInterval(ti.$timer),ti.$scrollAnimation=null,ti.$stopAnimation=!1,$i&&$i()}this.$timer=setInterval(function(){if(ti.$stopAnimation){wi();return}if(!ti.session)return clearInterval(ti.$timer);vi.length?(ti.session.setScrollTop(vi.shift()),ti.session.$scrollTop=si):si!=null?(ti.session.$scrollTop=-1,ti.session.setScrollTop(si),si=null):wi()},10)},yi.prototype.scrollToY=function(pi){this.scrollTop!==pi&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=pi)},yi.prototype.scrollToX=function(pi){this.scrollLeft!==pi&&(this.scrollLeft=pi),this.$loop.schedule(this.CHANGE_H_SCROLL)},yi.prototype.scrollTo=function(pi,$i){this.session.setScrollTop($i),this.session.setScrollLeft(pi)},yi.prototype.scrollBy=function(pi,$i){$i&&this.session.setScrollTop(this.session.getScrollTop()+$i),pi&&this.session.setScrollLeft(this.session.getScrollLeft()+pi)},yi.prototype.isScrollableBy=function(pi,$i){if($i<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||$i>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||pi<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||pi>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},yi.prototype.pixelToScreenCoordinates=function(pi,$i){var si;if(this.$hasCssTransforms){si={top:0,left:0};var ti=this.$fontMetrics.transformCoordinates([pi,$i]);pi=ti[1]-this.gutterWidth-this.margin.left,$i=ti[0]}else si=this.scroller.getBoundingClientRect();var ai=pi+this.scrollLeft-si.left-this.$padding,vi=ai/this.characterWidth,wi=Math.floor(($i+this.scrollTop-si.top)/this.lineHeight),xi=this.$blockCursor?Math.floor(vi):Math.round(vi);return{row:wi,column:xi,side:vi-xi>0?1:-1,offsetX:ai}},yi.prototype.screenToTextCoordinates=function(pi,$i){var si;if(this.$hasCssTransforms){si={top:0,left:0};var ti=this.$fontMetrics.transformCoordinates([pi,$i]);pi=ti[1]-this.gutterWidth-this.margin.left,$i=ti[0]}else si=this.scroller.getBoundingClientRect();var ai=pi+this.scrollLeft-si.left-this.$padding,vi=ai/this.characterWidth,wi=this.$blockCursor?Math.floor(vi):Math.round(vi),xi=Math.floor(($i+this.scrollTop-si.top)/this.lineHeight);return this.session.screenToDocumentPosition(xi,Math.max(wi,0),ai)},yi.prototype.textToScreenCoordinates=function(pi,$i){var si=this.scroller.getBoundingClientRect(),ti=this.session.documentToScreenPosition(pi,$i),ai=this.$padding+(this.session.$bidiHandler.isBidiRow(ti.row,pi)?this.session.$bidiHandler.getPosLeft(ti.column):Math.round(ti.column*this.characterWidth)),vi=ti.row*this.lineHeight;return{pageX:si.left+ai-this.scrollLeft,pageY:si.top+vi-this.scrollTop}},yi.prototype.visualizeFocus=function(){Kn.addCssClass(this.container,"ace_focus")},yi.prototype.visualizeBlur=function(){Kn.removeCssClass(this.container,"ace_focus")},yi.prototype.showComposition=function(pi){this.$composition=pi,pi.cssText||(pi.cssText=this.textarea.style.cssText),pi.useTextareaForIME==null&&(pi.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(Kn.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):pi.markerId=this.session.addMarker(pi.markerRange,"ace_composition_marker","text")},yi.prototype.setCompositionText=function(pi){var $i=this.session.selection.cursor;this.addToken(pi,"composition_placeholder",$i.row,$i.column),this.$moveTextAreaToCursor()},yi.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),Kn.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var pi=this.session.selection.cursor;this.removeExtraToken(pi.row,pi.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},yi.prototype.setGhostText=function(pi,$i){var si=this.session.selection.cursor,ti=$i||{row:si.row,column:si.column};this.removeGhostText();var ai=this.$calculateWrappedTextChunks(pi,ti);this.addToken(ai[0].text,"ghost_text",ti.row,ti.column),this.$ghostText={text:pi,position:{row:ti.row,column:ti.column}};var vi=Kn.createElement("div");if(ai.length>1){var wi=this.hideTokensAfterPosition(ti.row,ti.column),xi;ai.slice(1).forEach(function(Ii){var Vi=Kn.createElement("div"),Gi=Kn.createElement("span");Gi.className="ace_ghost_text",Ii.wrapped&&(Vi.className="ghost_text_line_wrapped"),Ii.text.length===0&&(Ii.text=" "),Gi.appendChild(Kn.createTextNode(Ii.text)),Vi.appendChild(Gi),vi.appendChild(Vi),xi=Vi}),wi.forEach(function(Ii){var Vi=Kn.createElement("span");fi(Ii.type)||(Vi.className="ace_"+Ii.type.replace(/\./g," ace_")),Vi.appendChild(Kn.createTextNode(Ii.value)),xi.appendChild(Vi)}),this.$ghostTextWidget={el:vi,row:ti.row,column:ti.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var Si=this.$cursorLayer.getPixelPosition(ti,!0),Ei=this.container,Ri=Ei.getBoundingClientRect().height,Ni=ai.length*this.lineHeight,Fi=Ni<Ri-Si.top;if(Fi)return;Ni<Ri?this.scrollBy(0,(ai.length-1)*this.lineHeight):this.scrollToRow(ti.row)}},yi.prototype.$calculateWrappedTextChunks=function(pi,$i){var si=this.$size.scrollerWidth-this.$padding*2,ti=Math.floor(si/this.characterWidth)-2;ti=ti<=0?60:ti;for(var ai=pi.split(/\r?\n/),vi=[],wi=0;wi<ai.length;wi++){var xi=this.session.$getDisplayTokens(ai[wi],$i.column),Si=this.session.$computeWrapSplits(xi,ti,this.session.$tabSize);if(Si.length>0){var Ei=0;Si.push(ai[wi].length);for(var Ri=0;Ri<Si.length;Ri++){var Ni=ai[wi].slice(Ei,Si[Ri]);vi.push({text:Ni,wrapped:!0}),Ei=Si[Ri]}}else vi.push({text:ai[wi],wrapped:!1})}return vi},yi.prototype.removeGhostText=function(){if(this.$ghostText){var pi=this.$ghostText.position;this.removeExtraToken(pi.row,pi.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},yi.prototype.addToken=function(pi,$i,si,ti){var ai=this.session;ai.bgTokenizer.lines[si]=null;var vi={type:$i,value:pi},wi=ai.getTokens(si);if(ti==null||!wi.length)wi.push(vi);else for(var xi=0,Si=0;Si<wi.length;Si++){var Ei=wi[Si];if(xi+=Ei.value.length,ti<=xi){var Ri=Ei.value.length-(xi-ti),Ni=Ei.value.slice(0,Ri),Fi=Ei.value.slice(Ri);wi.splice(Si,1,{type:Ei.type,value:Ni},vi,{type:Ei.type,value:Fi});break}}this.updateLines(si,si)},yi.prototype.hideTokensAfterPosition=function(pi,$i){for(var si=this.session.getTokens(pi),ti=0,ai=!1,vi=[],wi=0;wi<si.length;wi++){var xi=si[wi];if(ti+=xi.value.length,xi.type!=="ghost_text"){if(ai){vi.push({type:xi.type,value:xi.value}),xi.type="hidden_token";continue}ti===$i&&(ai=!0)}}return this.updateLines(pi,pi),vi},yi.prototype.removeExtraToken=function(pi,$i){this.session.bgTokenizer.lines[pi]=null,this.updateLines(pi,pi)},yi.prototype.setTheme=function(pi,$i){var si=this;if(this.$themeId=pi,si._dispatchEvent("themeChange",{theme:pi}),!pi||typeof pi=="string"){var ti=pi||this.$options.theme.initialValue;zn.loadModule(["theme",ti],ai)}else ai(pi);function ai(vi){if(si.$themeId!=pi)return $i&&$i();if(!vi||!vi.cssClass)throw new Error("couldn't load module "+pi+" or it didn't call define");vi.$id&&(si.$themeId=vi.$id),Kn.importCssString(vi.cssText,vi.cssClass,si.container),si.theme&&Kn.removeCssClass(si.container,si.theme.cssClass);var wi="padding"in vi?vi.padding:"padding"in(si.theme||{})?4:si.$padding;si.$padding&&wi!=si.$padding&&si.setPadding(wi),si.$theme=vi.cssClass,si.theme=vi,Kn.addCssClass(si.container,vi.cssClass),Kn.setCssClass(si.container,"ace_dark",vi.isDark),si.$size&&(si.$size.width=0,si.$updateSizeAsync()),si._dispatchEvent("themeLoaded",{theme:vi}),$i&&$i(),ei.isSafari&&si.scroller&&(si.scroller.style.background="red",si.scroller.style.background="")}},yi.prototype.getTheme=function(){return this.$themeId},yi.prototype.setStyle=function(pi,$i){Kn.setCssClass(this.container,pi,$i!==!1)},yi.prototype.unsetStyle=function(pi){Kn.removeCssClass(this.container,pi)},yi.prototype.setCursorStyle=function(pi){Kn.setStyle(this.scroller.style,"cursor",pi)},yi.prototype.setMouseCursor=function(pi){Kn.setStyle(this.scroller.style,"cursor",pi)},yi.prototype.attachToShadowRoot=function(){Kn.importCssString(ci,"ace_editor.css",this.container)},yi.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},yi.prototype.$updateCustomScrollbar=function(pi){var $i=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,pi===!0?(this.scrollBarV=new Zn(this.container,this),this.scrollBarH=new Pn(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(si){$i.$scrollAnimation||$i.session.setScrollTop(si.data-$i.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(si){$i.$scrollAnimation||$i.session.setScrollLeft(si.data-$i.scrollMargin.left)}),this.$scrollDecorator=new oi(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new Ln(this.container,this),this.scrollBarH=new Bn(this.container,this),this.scrollBarV.addEventListener("scroll",function(si){$i.$scrollAnimation||$i.session.setScrollTop(si.data-$i.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(si){$i.$scrollAnimation||$i.session.setScrollLeft(si.data-$i.scrollMargin.left)}))},yi.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var pi=this;this.$resizeTimer=Qn.delayedCall(function(){pi.destroyed||pi.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function($i){var si=$i[0].contentRect.width,ti=$i[0].contentRect.height;Math.abs(pi.$size.width-si)>1||Math.abs(pi.$size.height-ti)>1?pi.$resizeTimer.delay():pi.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},yi}();gi.prototype.CHANGE_CURSOR=1,gi.prototype.CHANGE_MARKER=2,gi.prototype.CHANGE_GUTTER=4,gi.prototype.CHANGE_SCROLL=8,gi.prototype.CHANGE_LINES=16,gi.prototype.CHANGE_TEXT=32,gi.prototype.CHANGE_SIZE=64,gi.prototype.CHANGE_MARKER_BACK=128,gi.prototype.CHANGE_MARKER_FRONT=256,gi.prototype.CHANGE_FULL=512,gi.prototype.CHANGE_H_SCROLL=1024,gi.prototype.$changes=0,gi.prototype.$padding=null,gi.prototype.$frozen=!1,gi.prototype.STEPS=8,Hn.implement(gi.prototype,mi),zn.defineOptions(gi.prototype,"renderer",{useResizeObserver:{set:function(yi){!yi&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):yi&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(yi){this.$textLayer.setShowInvisibles(yi)&&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(yi){typeof yi=="number"&&(this.$printMarginColumn=yi),this.$showPrintMargin=!!yi,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(yi){this.$gutter.style.display=yi?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(yi){this.$gutterLayer.$useSvgGutterIcons=yi},initialValue:!1},showFoldedAnnotations:{set:function(yi){this.$gutterLayer.$showFoldedAnnotations=yi},initialValue:!1},fadeFoldWidgets:{set:function(yi){Kn.setCssClass(this.$gutter,"ace_fade-fold-widgets",yi)},initialValue:!1},showFoldWidgets:{set:function(yi){this.$gutterLayer.setShowFoldWidgets(yi),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(yi){this.$textLayer.setDisplayIndentGuides(yi)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(yi){this.$textLayer.setHighlightIndentGuides(yi)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(yi){this.$gutterLayer.setHighlightGutterLine(yi),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(yi){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(yi){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(yi){typeof yi=="number"&&(yi=yi+"px"),this.container.style.fontSize=yi,this.updateFontSize()},initialValue:12},fontFamily:{set:function(yi){this.container.style.fontFamily=yi,this.updateFontSize()}},maxLines:{set:function(yi){this.updateFull()}},minLines:{set:function(yi){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(yi){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(yi){yi=+yi||0,this.$scrollPastEnd!=yi&&(this.$scrollPastEnd=yi,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(yi){this.$gutterLayer.$fixedWidth=!!yi,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(yi){this.$updateCustomScrollbar(yi)},initialValue:!1},theme:{set:function(yi){this.setTheme(yi)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!ei.isMobile&&!ei.isIE}}),kn.VirtualRenderer=gi}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(_n,kn,qn){var Hn=_n("../lib/oop"),Kn=_n("../lib/net"),Qn=_n("../lib/event_emitter").EventEmitter,zn=_n("../config");function Wn(Bn){var Ln="importScripts('"+Kn.qualifyURL(Bn)+"');";try{return new Blob([Ln],{type:"application/javascript"})}catch{var Pn=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,Zn=new Pn;return Zn.append(Ln),Zn.getBlob("application/javascript")}}function Nn(Bn){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(zn.get("loadWorkerFromBlob")){var Ln=Wn(Bn),Pn=window.URL||window.webkitURL,Zn=Pn.createObjectURL(Ln);return new Worker(Zn)}return new Worker(Bn)}var Dn=function(Bn){Bn.postMessage||(Bn=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=Bn,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(){Hn.implement(this,Qn),this.$createWorkerFromOldConfig=function(Bn,Ln,Pn,Zn,Jn){if(_n.nameToUrl&&!_n.toUrl&&(_n.toUrl=_n.nameToUrl),zn.get("packaged")||!_n.toUrl)Zn=Zn||zn.moduleUrl(Ln,"worker");else{var Xn=this.$normalizePath;Zn=Zn||Xn(_n.toUrl("ace/worker/worker.js",null,"_"));var mi={};Bn.forEach(function(ci){mi[ci]=Xn(_n.toUrl(ci,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=Nn(Zn),Jn&&this.send("importScripts",Jn),this.$worker.postMessage({init:!0,tlns:mi,module:Ln,classname:Pn}),this.$worker},this.onMessage=function(Bn){var Ln=Bn.data;switch(Ln.type){case"event":this._signal(Ln.name,{data:Ln.data});break;case"call":var Pn=this.callbacks[Ln.id];Pn&&(Pn(Ln.data),delete this.callbacks[Ln.id]);break;case"error":this.reportError(Ln.data);break;case"log":window.console&&console.log&&console.log.apply(console,Ln.data);break}},this.reportError=function(Bn){window.console&&console.error&&console.error(Bn)},this.$normalizePath=function(Bn){return Kn.qualifyURL(Bn)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(Bn){Bn.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(Bn,Ln){this.$worker.postMessage({command:Bn,args:Ln})},this.call=function(Bn,Ln,Pn){if(Pn){var Zn=this.callbackId++;this.callbacks[Zn]=Pn,Ln.push(Zn)}this.send(Bn,Ln)},this.emit=function(Bn,Ln){try{Ln.data&&Ln.data.err&&(Ln.data.err={message:Ln.data.err.message,stack:Ln.data.err.stack,code:Ln.data.err.code}),this.$worker&&this.$worker.postMessage({event:Bn,data:{data:Ln.data}})}catch(Pn){console.error(Pn.stack)}},this.attachToDocument=function(Bn){this.$doc&&this.terminate(),this.$doc=Bn,this.call("setValue",[Bn.getValue()]),Bn.on("change",this.changeListener,!0)},this.changeListener=function(Bn){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),Bn.action=="insert"?this.deltaQueue.push(Bn.start,Bn.lines):this.deltaQueue.push(Bn.start,Bn.end)},this.$sendDeltaQueue=function(){var Bn=this.deltaQueue;Bn&&(this.deltaQueue=null,Bn.length>50&&Bn.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:Bn}))}}).call(Dn.prototype);var In=function(Bn,Ln,Pn){var Zn=null,Jn=!1,Xn=Object.create(Qn),mi=[],ci=new Dn({messageBuffer:mi,terminate:function(){},postMessage:function(ei){mi.push(ei),Zn&&(Jn?setTimeout(oi):oi())}});ci.setEmitSync=function(ei){Jn=ei};var oi=function(){var ei=mi.shift();ei.command?Zn[ei.command].apply(Zn,ei.args):ei.event&&Xn._signal(ei.event,ei.data)};return Xn.postMessage=function(ei){ci.onMessage({data:ei})},Xn.callback=function(ei,fi){this.postMessage({type:"call",id:fi,data:ei})},Xn.emit=function(ei,fi){this.postMessage({type:"event",name:ei,data:fi})},zn.loadModule(["worker",Ln],function(ei){for(Zn=new ei[Pn](Xn);mi.length;)oi()}),ci};kn.UIWorkerClient=In,kn.WorkerClient=Dn,kn.createWorker=Nn}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(_n,kn,qn){var Hn=_n("./range").Range,Kn=_n("./lib/event_emitter").EventEmitter,Qn=_n("./lib/oop"),zn=function(){function Wn(Nn,Dn,In,Bn,Ln,Pn){var Zn=this;this.length=Dn,this.session=Nn,this.doc=Nn.getDocument(),this.mainClass=Ln,this.othersClass=Pn,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=Bn,this.$onCursorChange=function(){setTimeout(function(){Zn.onCursorChange()})},this.$pos=In;var Jn=Nn.getUndoManager().$undoStack||Nn.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=Jn.length,this.setup(),Nn.selection.on("changeCursor",this.$onCursorChange)}return Wn.prototype.setup=function(){var Nn=this,Dn=this.doc,In=this.session;this.selectionBefore=In.selection.toJSON(),In.selection.inMultiSelectMode&&In.selection.toSingleRange(),this.pos=Dn.createAnchor(this.$pos.row,this.$pos.column);var Bn=this.pos;Bn.$insertRight=!0,Bn.detach(),Bn.markerId=In.addMarker(new Hn(Bn.row,Bn.column,Bn.row,Bn.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(Ln){var Pn=Dn.createAnchor(Ln.row,Ln.column);Pn.$insertRight=!0,Pn.detach(),Nn.others.push(Pn)}),In.setUndoSelect(!1)},Wn.prototype.showOtherMarkers=function(){if(!this.othersActive){var Nn=this.session,Dn=this;this.othersActive=!0,this.others.forEach(function(In){In.markerId=Nn.addMarker(new Hn(In.row,In.column,In.row,In.column+Dn.length),Dn.othersClass,null,!1)})}},Wn.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var Nn=0;Nn<this.others.length;Nn++)this.session.removeMarker(this.others[Nn].markerId)}},Wn.prototype.onUpdate=function(Nn){if(this.$updating)return this.updateAnchors(Nn);var Dn=Nn;if(Dn.start.row===Dn.end.row&&Dn.start.row===this.pos.row){this.$updating=!0;var In=Nn.action==="insert"?Dn.end.column-Dn.start.column:Dn.start.column-Dn.end.column,Bn=Dn.start.column>=this.pos.column&&Dn.start.column<=this.pos.column+this.length+1,Ln=Dn.start.column-this.pos.column;if(this.updateAnchors(Nn),Bn&&(this.length+=In),Bn&&!this.session.$fromUndo){if(Nn.action==="insert")for(var Pn=this.others.length-1;Pn>=0;Pn--){var Zn=this.others[Pn],Jn={row:Zn.row,column:Zn.column+Ln};this.doc.insertMergedLines(Jn,Nn.lines)}else if(Nn.action==="remove")for(var Pn=this.others.length-1;Pn>=0;Pn--){var Zn=this.others[Pn],Jn={row:Zn.row,column:Zn.column+Ln};this.doc.remove(new Hn(Jn.row,Jn.column,Jn.row,Jn.column-In))}}this.$updating=!1,this.updateMarkers()}},Wn.prototype.updateAnchors=function(Nn){this.pos.onChange(Nn);for(var Dn=this.others.length;Dn--;)this.others[Dn].onChange(Nn);this.updateMarkers()},Wn.prototype.updateMarkers=function(){if(!this.$updating){var Nn=this,Dn=this.session,In=function(Ln,Pn){Dn.removeMarker(Ln.markerId),Ln.markerId=Dn.addMarker(new Hn(Ln.row,Ln.column,Ln.row,Ln.column+Nn.length),Pn,null,!1)};In(this.pos,this.mainClass);for(var Bn=this.others.length;Bn--;)In(this.others[Bn],this.othersClass)}},Wn.prototype.onCursorChange=function(Nn){if(!(this.$updating||!this.session)){var Dn=this.session.selection.getCursor();Dn.row===this.pos.row&&Dn.column>=this.pos.column&&Dn.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",Nn)):(this.hideOtherMarkers(),this._emit("cursorLeave",Nn))}},Wn.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},Wn.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var Nn=this.session.getUndoManager(),Dn=(Nn.$undoStack||Nn.$undostack).length-this.$undoStackDepth,In=0;In<Dn;In++)Nn.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},Wn}();Qn.implement(zn.prototype,Kn),kn.PlaceHolder=zn}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(_n,kn,qn){var Hn=_n("../lib/event"),Kn=_n("../lib/useragent");function Qn(Wn,Nn){return Wn.row==Nn.row&&Wn.column==Nn.column}function zn(Wn){var Nn=Wn.domEvent,Dn=Nn.altKey,In=Nn.shiftKey,Bn=Nn.ctrlKey,Ln=Wn.getAccelKey(),Pn=Wn.getButton();if(Bn&&Kn.isMac&&(Pn=Nn.button),Wn.editor.inMultiSelectMode&&Pn==2){Wn.editor.textInput.onContextMenu(Wn.domEvent);return}if(!Bn&&!Dn&&!Ln){Pn===0&&Wn.editor.inMultiSelectMode&&Wn.editor.exitMultiSelectMode();return}if(Pn===0){var Zn=Wn.editor,Jn=Zn.selection,Xn=Zn.inMultiSelectMode,mi=Wn.getDocumentPosition(),ci=Jn.getCursor(),oi=Wn.inSelection()||Jn.isEmpty()&&Qn(mi,ci),ei=Wn.x,fi=Wn.y,gi=function(Ni){ei=Ni.clientX,fi=Ni.clientY},yi=Zn.session,pi=Zn.renderer.pixelToScreenCoordinates(ei,fi),$i=pi,si;if(Zn.$mouseHandler.$enableJumpToDef)Bn&&Dn||Ln&&Dn?si=In?"block":"add":Dn&&Zn.$blockSelectEnabled&&(si="block");else if(Ln&&!Dn){if(si="add",!Xn&&In)return}else Dn&&Zn.$blockSelectEnabled&&(si="block");if(si&&Kn.isMac&&Nn.ctrlKey&&Zn.$mouseHandler.cancelContextMenu(),si=="add"){if(!Xn&&oi)return;if(!Xn){var ti=Jn.toOrientedRange();Zn.addSelectionMarker(ti)}var ai=Jn.rangeList.rangeAtPoint(mi);Zn.inVirtualSelectionMode=!0,In&&(ai=null,ti=Jn.ranges[0]||ti,Zn.removeSelectionMarker(ti)),Zn.once("mouseup",function(){var Ni=Jn.toOrientedRange();ai&&Ni.isEmpty()&&Qn(ai.cursor,Ni.cursor)?Jn.substractPoint(Ni.cursor):(In?Jn.substractPoint(ti.cursor):ti&&(Zn.removeSelectionMarker(ti),Jn.addRange(ti)),Jn.addRange(Ni)),Zn.inVirtualSelectionMode=!1})}else if(si=="block"){Wn.stop(),Zn.inVirtualSelectionMode=!0;var vi,wi=[],xi=function(){var Ni=Zn.renderer.pixelToScreenCoordinates(ei,fi),Fi=yi.screenToDocumentPosition(Ni.row,Ni.column,Ni.offsetX);Qn($i,Ni)&&Qn(Fi,Jn.lead)||($i=Ni,Zn.selection.moveToPosition(Fi),Zn.renderer.scrollCursorIntoView(),Zn.removeSelectionMarkers(wi),wi=Jn.rectangularRangeBlock($i,pi),Zn.$mouseHandler.$clickSelection&&wi.length==1&&wi[0].isEmpty()&&(wi[0]=Zn.$mouseHandler.$clickSelection.clone()),wi.forEach(Zn.addSelectionMarker,Zn),Zn.updateSelectionMarkers())};Xn&&!Ln?Jn.toSingleRange():!Xn&&Ln&&(vi=Jn.toOrientedRange(),Zn.addSelectionMarker(vi)),In?pi=yi.documentToScreenPosition(Jn.lead):Jn.moveToPosition(mi),$i={row:-1,column:-1};var Si=function(Ni){xi(),clearInterval(Ri),Zn.removeSelectionMarkers(wi),wi.length||(wi=[Jn.toOrientedRange()]),vi&&(Zn.removeSelectionMarker(vi),Jn.toSingleRange(vi));for(var Fi=0;Fi<wi.length;Fi++)Jn.addRange(wi[Fi]);Zn.inVirtualSelectionMode=!1,Zn.$mouseHandler.$clickSelection=null},Ei=xi;Hn.capture(Zn.container,gi,Si);var Ri=setInterval(function(){Ei()},20);return Wn.preventDefault()}}}kn.onMouseDown=zn}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(_n,kn,qn){kn.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(Kn){Kn.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(Kn){Kn.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(Kn){Kn.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(Kn){Kn.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(Kn){Kn.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(Kn){Kn.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(Kn){Kn.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(Kn){Kn.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(Kn){Kn.multiSelect.rangeCount>1?Kn.multiSelect.joinSelections():Kn.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(Kn){Kn.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(Kn){Kn.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(Kn){Kn.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],kn.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(Kn){Kn.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(Kn){return Kn&&Kn.inMultiSelectMode}}];var Hn=_n("../keyboard/hash_handler").HashHandler;kn.keyboardHandler=new Hn(kn.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(_n,kn,qn){var Hn=_n("./range_list").RangeList,Kn=_n("./range").Range,Qn=_n("./selection").Selection,zn=_n("./mouse/multi_select_handler").onMouseDown,Wn=_n("./lib/event"),Nn=_n("./lib/lang"),Dn=_n("./commands/multi_select_commands");kn.commands=Dn.defaultCommands.concat(Dn.multiSelectCommands);var In=_n("./search").Search,Bn=new In;function Ln(ci,oi,ei){return Bn.$options.wrap=!0,Bn.$options.needle=oi,Bn.$options.backwards=ei==-1,Bn.find(ci)}var Pn=_n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(Pn.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(ci,oi){if(ci){if(!this.inMultiSelectMode&&this.rangeCount===0){var ei=this.toOrientedRange();if(this.rangeList.add(ei),this.rangeList.add(ci),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),oi||this.fromOrientedRange(ci);this.rangeList.removeAll(),this.rangeList.add(ei),this.$onAddRange(ei)}ci.cursor||(ci.cursor=ci.end);var fi=this.rangeList.add(ci);return this.$onAddRange(ci),fi.length&&this.$onRemoveRange(fi),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),oi||this.fromOrientedRange(ci)}},this.toSingleRange=function(ci){ci=ci||this.ranges[0];var oi=this.rangeList.removeAll();oi.length&&this.$onRemoveRange(oi),ci&&this.fromOrientedRange(ci)},this.substractPoint=function(ci){var oi=this.rangeList.substractPoint(ci);if(oi)return this.$onRemoveRange(oi),oi[0]},this.mergeOverlappingRanges=function(){var ci=this.rangeList.merge();ci.length&&this.$onRemoveRange(ci)},this.$onAddRange=function(ci){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(ci),this._signal("addRange",{range:ci})},this.$onRemoveRange=function(ci){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var oi=this.rangeList.ranges.pop();ci.push(oi),this.rangeCount=0}for(var ei=ci.length;ei--;){var fi=this.ranges.indexOf(ci[ei]);this.ranges.splice(fi,1)}this._signal("removeRange",{ranges:ci}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),oi=oi||this.ranges[0],oi&&!oi.isEqual(this.getRange())&&this.fromOrientedRange(oi)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new Hn,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var ci=this.ranges.length?this.ranges:[this.getRange()],oi=[],ei=0;ei<ci.length;ei++){var fi=ci[ei],gi=fi.start.row,yi=fi.end.row;if(gi===yi)oi.push(fi.clone());else{for(oi.push(new Kn(gi,fi.start.column,gi,this.session.getLine(gi).length));++gi<yi;)oi.push(this.getLineRange(gi,!0));oi.push(new Kn(yi,0,yi,fi.end.column))}ei==0&&!this.isBackwards()&&(oi=oi.reverse())}this.toSingleRange();for(var ei=oi.length;ei--;)this.addRange(oi[ei])},this.joinSelections=function(){var ci=this.rangeList.ranges,oi=ci[ci.length-1],ei=Kn.fromPoints(ci[0].start,oi.end);this.toSingleRange(),this.setSelectionRange(ei,oi.cursor==oi.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var ci=this.rangeList.ranges,oi=ci[ci.length-1],ei=Kn.fromPoints(ci[0].start,oi.end);this.toSingleRange(),this.setSelectionRange(ei,oi.cursor==oi.start)}else{var fi=this.session.documentToScreenPosition(this.cursor),gi=this.session.documentToScreenPosition(this.anchor),yi=this.rectangularRangeBlock(fi,gi);yi.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(ci,oi,ei){var fi=[],gi=ci.column<oi.column;if(gi)var yi=ci.column,pi=oi.column,$i=ci.offsetX,si=oi.offsetX;else var yi=oi.column,pi=ci.column,$i=oi.offsetX,si=ci.offsetX;var ti=ci.row<oi.row;if(ti)var ai=ci.row,vi=oi.row;else var ai=oi.row,vi=ci.row;yi<0&&(yi=0),ai<0&&(ai=0),ai==vi&&(ei=!0);for(var wi,xi=ai;xi<=vi;xi++){var Si=Kn.fromPoints(this.session.screenToDocumentPosition(xi,yi,$i),this.session.screenToDocumentPosition(xi,pi,si));if(Si.isEmpty()){if(wi&&Jn(Si.end,wi))break;wi=Si.end}Si.cursor=gi?Si.start:Si.end,fi.push(Si)}if(ti&&fi.reverse(),!ei){for(var Ei=fi.length-1;fi[Ei].isEmpty()&&Ei>0;)Ei--;if(Ei>0)for(var Ri=0;fi[Ri].isEmpty();)Ri++;for(var Ni=Ei;Ni>=Ri;Ni--)fi[Ni].isEmpty()&&fi.splice(Ni,1)}return fi}}).call(Qn.prototype);var Zn=_n("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(ci){ci.cursor||(ci.cursor=ci.end);var oi=this.getSelectionStyle();return ci.marker=this.session.addMarker(ci,"ace_selection",oi),this.session.$selectionMarkers.push(ci),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,ci},this.removeSelectionMarker=function(ci){if(ci.marker){this.session.removeMarker(ci.marker);var oi=this.session.$selectionMarkers.indexOf(ci);oi!=-1&&this.session.$selectionMarkers.splice(oi,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(ci){for(var oi=this.session.$selectionMarkers,ei=ci.length;ei--;){var fi=ci[ei];if(fi.marker){this.session.removeMarker(fi.marker);var gi=oi.indexOf(fi);gi!=-1&&oi.splice(gi,1)}}this.session.selectionMarkerCount=oi.length},this.$onAddRange=function(ci){this.addSelectionMarker(ci.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(ci){this.removeSelectionMarkers(ci.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(ci){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(Dn.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(ci){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(Dn.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(ci){var oi=ci.command,ei=ci.editor;if(ei.multiSelect){if(oi.multiSelectAction)oi.multiSelectAction=="forEach"?fi=ei.forEachSelection(oi,ci.args):oi.multiSelectAction=="forEachLine"?fi=ei.forEachSelection(oi,ci.args,!0):oi.multiSelectAction=="single"?(ei.exitMultiSelectMode(),fi=oi.exec(ei,ci.args||{})):fi=oi.multiSelectAction(ei,ci.args||{});else{var fi=oi.exec(ei,ci.args||{});ei.multiSelect.addRange(ei.multiSelect.toOrientedRange()),ei.multiSelect.mergeOverlappingRanges()}return fi}},this.forEachSelection=function(ci,oi,ei){if(!this.inVirtualSelectionMode){var fi=ei&&ei.keepOrder,gi=ei==!0||ei&&ei.$byLines,yi=this.session,pi=this.selection,$i=pi.rangeList,si=(fi?pi:$i).ranges,ti;if(!si.length)return ci.exec?ci.exec(this,oi||{}):ci(this,oi||{});var ai=pi._eventRegistry;pi._eventRegistry={};var vi=new Qn(yi);this.inVirtualSelectionMode=!0;for(var wi=si.length;wi--;){if(gi)for(;wi>0&&si[wi].start.row==si[wi-1].end.row;)wi--;vi.fromOrientedRange(si[wi]),vi.index=wi,this.selection=yi.selection=vi;var xi=ci.exec?ci.exec(this,oi||{}):ci(this,oi||{});!ti&&xi!==void 0&&(ti=xi),vi.toOrientedRange(si[wi])}vi.detach(),this.selection=yi.selection=pi,this.inVirtualSelectionMode=!1,pi._eventRegistry=ai,pi.mergeOverlappingRanges(),pi.ranges[0]&&pi.fromOrientedRange(pi.ranges[0]);var Si=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),Si&&Si.from==Si.to&&this.renderer.animateScrolling(Si.from),ti}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var ci="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var oi=this.multiSelect.rangeList.ranges,ei=[],fi=0;fi<oi.length;fi++)ei.push(this.session.getTextRange(oi[fi]));var gi=this.session.getDocument().getNewLineCharacter();ci=ei.join(gi),ci.length==(ei.length-1)*gi.length&&(ci="")}else this.selection.isEmpty()||(ci=this.session.getTextRange(this.getSelectionRange()));return ci},this.$checkMultiselectChange=function(ci,oi){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var ei=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&oi==this.multiSelect.anchor)return;var fi=oi==this.multiSelect.anchor?ei.cursor==ei.start?ei.end:ei.start:ei.cursor;fi.row!=oi.row||this.session.$clipPositionToDocument(fi.row,fi.column).column!=oi.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(ci,oi,ei){if(oi=oi||{},oi.needle=ci||oi.needle,oi.needle==null){var fi=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();oi.needle=this.session.getTextRange(fi)}this.$search.set(oi);var gi=this.$search.findAll(this.session);if(!gi.length)return 0;var yi=this.multiSelect;ei||yi.toSingleRange(gi[0]);for(var pi=gi.length;pi--;)yi.addRange(gi[pi],!0);return fi&&yi.rangeList.rangeAtPoint(fi.start)&&yi.addRange(fi,!0),gi.length},this.selectMoreLines=function(ci,oi){var ei=this.selection.toOrientedRange(),fi=ei.cursor==ei.end,gi=this.session.documentToScreenPosition(ei.cursor);this.selection.$desiredColumn&&(gi.column=this.selection.$desiredColumn);var yi=this.session.screenToDocumentPosition(gi.row+ci,gi.column);if(ei.isEmpty())var $i=yi;else var pi=this.session.documentToScreenPosition(fi?ei.end:ei.start),$i=this.session.screenToDocumentPosition(pi.row+ci,pi.column);if(fi){var si=Kn.fromPoints(yi,$i);si.cursor=si.start}else{var si=Kn.fromPoints($i,yi);si.cursor=si.end}if(si.desiredColumn=gi.column,!this.selection.inMultiSelectMode)this.selection.addRange(ei);else if(oi)var ti=ei.cursor;this.selection.addRange(si),ti&&this.selection.substractPoint(ti)},this.transposeSelections=function(ci){for(var oi=this.session,ei=oi.multiSelect,fi=ei.ranges,gi=fi.length;gi--;){var yi=fi[gi];if(yi.isEmpty()){var pi=oi.getWordRange(yi.start.row,yi.start.column);yi.start.row=pi.start.row,yi.start.column=pi.start.column,yi.end.row=pi.end.row,yi.end.column=pi.end.column}}ei.mergeOverlappingRanges();for(var $i=[],gi=fi.length;gi--;){var yi=fi[gi];$i.unshift(oi.getTextRange(yi))}ci<0?$i.unshift($i.pop()):$i.push($i.shift());for(var gi=fi.length;gi--;){var yi=fi[gi],si=yi.clone();oi.replace(yi,$i[gi]),yi.start.row=si.start.row,yi.start.column=si.start.column}ei.fromOrientedRange(ei.ranges[0])},this.selectMore=function(ci,oi,ei){var fi=this.session,gi=fi.multiSelect,yi=gi.toOrientedRange();if(!(yi.isEmpty()&&(yi=fi.getWordRange(yi.start.row,yi.start.column),yi.cursor=ci==-1?yi.start:yi.end,this.multiSelect.addRange(yi),ei))){var pi=fi.getTextRange(yi),$i=Ln(fi,pi,ci);$i&&($i.cursor=ci==-1?$i.start:$i.end,this.session.unfold($i),this.multiSelect.addRange($i),this.renderer.scrollCursorIntoView(null,.5)),oi&&this.multiSelect.substractPoint(yi.cursor)}},this.alignCursors=function(){var ci=this.session,oi=ci.multiSelect,ei=oi.ranges,fi=-1,gi=ei.filter(function(Ei){if(Ei.cursor.row==fi)return!0;fi=Ei.cursor.row});if(!ei.length||gi.length==ei.length-1){var yi=this.selection.getRange(),pi=yi.start.row,$i=yi.end.row,si=pi==$i;if(si){var ti=this.session.getLength(),ai;do ai=this.session.getLine($i);while(/[=:]/.test(ai)&&++$i<ti);do ai=this.session.getLine(pi);while(/[=:]/.test(ai)&&--pi>0);pi<0&&(pi=0),$i>=ti&&($i=ti-1)}var vi=this.session.removeFullLines(pi,$i);vi=this.$reAlignText(vi,si),this.session.insert({row:pi,column:0},vi.join(`
936
+ `)+`
937
+ `),si||(yi.start.column=0,yi.end.column=vi[vi.length-1].length),this.selection.setRange(yi)}else{gi.forEach(function(Ei){oi.substractPoint(Ei.cursor)});var wi=0,xi=1/0,Si=ei.map(function(Ei){var Ri=Ei.cursor,Ni=ci.getLine(Ri.row),Fi=Ni.substr(Ri.column).search(/\S/g);return Fi==-1&&(Fi=0),Ri.column>wi&&(wi=Ri.column),Fi<xi&&(xi=Fi),Fi});ei.forEach(function(Ei,Ri){var Ni=Ei.cursor,Fi=wi-Ni.column,Ii=Si[Ri]-xi;Fi>Ii?ci.insert(Ni,Nn.stringRepeat(" ",Fi-Ii)):ci.remove(new Kn(Ni.row,Ni.column,Ni.row,Ni.column-Fi+Ii)),Ei.start.column=Ei.end.column=wi,Ei.start.row=Ei.end.row=Ni.row,Ei.cursor=Ei.end}),oi.fromOrientedRange(ei[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(ci,oi){var ei=!0,fi=!0,gi,yi,pi;return ci.map(function(vi){var wi=vi.match(/(\s*)(.*?)(\s*)([=:].*)/);return wi?gi==null?(gi=wi[1].length,yi=wi[2].length,pi=wi[3].length,wi):(gi+yi+pi!=wi[1].length+wi[2].length+wi[3].length&&(fi=!1),gi!=wi[1].length&&(ei=!1),gi>wi[1].length&&(gi=wi[1].length),yi<wi[2].length&&(yi=wi[2].length),pi>wi[3].length&&(pi=wi[3].length),wi):[vi]}).map(oi?si:ei?fi?ti:si:ai);function $i(vi){return Nn.stringRepeat(" ",vi)}function si(vi){return vi[2]?$i(gi)+vi[2]+$i(yi-vi[2].length+pi)+vi[4].replace(/^([=:])\s+/,"$1 "):vi[0]}function ti(vi){return vi[2]?$i(gi+yi-vi[2].length)+vi[2]+$i(pi)+vi[4].replace(/^([=:])\s+/,"$1 "):vi[0]}function ai(vi){return vi[2]?$i(gi)+vi[2]+$i(pi)+vi[4].replace(/^([=:])\s+/,"$1 "):vi[0]}}}).call(Zn.prototype);function Jn(ci,oi){return ci.row==oi.row&&ci.column==oi.column}kn.onSessionChange=function(ci){var oi=ci.session;oi&&!oi.multiSelect&&(oi.$selectionMarkers=[],oi.selection.$initRangeList(),oi.multiSelect=oi.selection),this.multiSelect=oi&&oi.multiSelect;var ei=ci.oldSession;ei&&(ei.multiSelect.off("addRange",this.$onAddRange),ei.multiSelect.off("removeRange",this.$onRemoveRange),ei.multiSelect.off("multiSelect",this.$onMultiSelect),ei.multiSelect.off("singleSelect",this.$onSingleSelect),ei.multiSelect.lead.off("change",this.$checkMultiselectChange),ei.multiSelect.anchor.off("change",this.$checkMultiselectChange)),oi&&(oi.multiSelect.on("addRange",this.$onAddRange),oi.multiSelect.on("removeRange",this.$onRemoveRange),oi.multiSelect.on("multiSelect",this.$onMultiSelect),oi.multiSelect.on("singleSelect",this.$onSingleSelect),oi.multiSelect.lead.on("change",this.$checkMultiselectChange),oi.multiSelect.anchor.on("change",this.$checkMultiselectChange)),oi&&this.inMultiSelectMode!=oi.selection.inMultiSelectMode&&(oi.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function Xn(ci){ci.$multiselectOnSessionChange||(ci.$onAddRange=ci.$onAddRange.bind(ci),ci.$onRemoveRange=ci.$onRemoveRange.bind(ci),ci.$onMultiSelect=ci.$onMultiSelect.bind(ci),ci.$onSingleSelect=ci.$onSingleSelect.bind(ci),ci.$multiselectOnSessionChange=kn.onSessionChange.bind(ci),ci.$checkMultiselectChange=ci.$checkMultiselectChange.bind(ci),ci.$multiselectOnSessionChange(ci),ci.on("changeSession",ci.$multiselectOnSessionChange),ci.on("mousedown",zn),ci.commands.addCommands(Dn.defaultCommands),mi(ci))}function mi(ci){if(!ci.textInput)return;var oi=ci.textInput.getElement(),ei=!1;Wn.addListener(oi,"keydown",function(gi){var yi=gi.keyCode==18&&!(gi.ctrlKey||gi.shiftKey||gi.metaKey);ci.$blockSelectEnabled&&yi?ei||(ci.renderer.setMouseCursor("crosshair"),ei=!0):ei&&fi()},ci),Wn.addListener(oi,"keyup",fi,ci),Wn.addListener(oi,"blur",fi,ci);function fi(gi){ei&&(ci.renderer.setMouseCursor(""),ei=!1)}}kn.MultiSelect=Xn,_n("./config").defineOptions(Zn.prototype,"editor",{enableMultiselect:{set:function(ci){Xn(this),ci?this.on("mousedown",zn):this.off("mousedown",zn)},value:!0},enableBlockSelect:{set:function(ci){this.$blockSelectEnabled=ci},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(_n,kn,qn){var Hn=_n("../../range").Range,Kn=kn.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(Qn,zn,Wn){var Nn=Qn.getLine(Wn);return this.foldingStartMarker.test(Nn)?"start":zn=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(Nn)?"end":""},this.getFoldWidgetRange=function(Qn,zn,Wn){return null},this.indentationBlock=function(Qn,zn,Wn){var Nn=/\S/,Dn=Qn.getLine(zn),In=Dn.search(Nn);if(In!=-1){for(var Bn=Wn||Dn.length,Ln=Qn.getLength(),Pn=zn,Zn=zn;++zn<Ln;){var Jn=Qn.getLine(zn).search(Nn);if(Jn!=-1){if(Jn<=In){var Xn=Qn.getTokenAt(zn,0);if(!Xn||Xn.type!=="string")break}Zn=zn}}if(Zn>Pn){var mi=Qn.getLine(Zn).length;return new Hn(Pn,Bn,Zn,mi)}}},this.openingBracketBlock=function(Qn,zn,Wn,Nn,Dn){var In={row:Wn,column:Nn+1},Bn=Qn.$findClosingBracket(zn,In,Dn);if(Bn){var Ln=Qn.foldWidgets[Bn.row];return Ln==null&&(Ln=Qn.getFoldWidget(Bn.row)),Ln=="start"&&Bn.row>In.row&&(Bn.row--,Bn.column=Qn.getLine(Bn.row).length),Hn.fromPoints(In,Bn)}},this.closingBracketBlock=function(Qn,zn,Wn,Nn,Dn){var In={row:Wn,column:Nn},Bn=Qn.$findOpeningBracket(zn,In);if(Bn)return Bn.column++,In.column--,Hn.fromPoints(Bn,In)}}).call(Kn.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(_n,kn,qn){var Hn=_n("../lib/dom"),Kn=_n("../range").Range,Qn=_n("../config").nls;function zn(Nn,Dn,In){for(var Bn=0,Ln=Nn.length-1;Bn<=Ln;){var Pn=Bn+Ln>>1,Zn=In(Dn,Nn[Pn]);if(Zn>0)Bn=Pn+1;else if(Zn<0)Ln=Pn-1;else return Pn}return-(Bn+1)}function Wn(Nn,Dn,In){var Bn=Nn.getAnnotations().sort(Kn.comparePoints);if(Bn.length){var Ln=zn(Bn,{row:Dn,column:-1},Kn.comparePoints);Ln<0&&(Ln=-Ln-1),Ln>=Bn.length?Ln=In>0?0:Bn.length-1:Ln===0&&In<0&&(Ln=Bn.length-1);var Pn=Bn[Ln];if(!(!Pn||!In)){if(Pn.row===Dn){do Pn=Bn[Ln+=In];while(Pn&&Pn.row===Dn);if(!Pn)return Bn.slice()}var Zn=[];Dn=Pn.row;do Zn[In<0?"unshift":"push"](Pn),Pn=Bn[Ln+=In];while(Pn&&Pn.row==Dn);return Zn.length&&Zn}}}kn.showErrorMarker=function(Nn,Dn){var In=Nn.session,Bn=Nn.getCursorPosition(),Ln=Bn.row,Pn=In.widgetManager.getWidgetsAtRow(Ln).filter(function(gi){return gi.type=="errorMarker"})[0];Pn?Pn.destroy():Ln-=Dn;var Zn=Wn(In,Ln,Dn),Jn;if(Zn){var Xn=Zn[0];Bn.column=(Xn.pos&&typeof Xn.column!="number"?Xn.pos.sc:Xn.column)||0,Bn.row=Xn.row,Jn=Nn.renderer.$gutterLayer.$annotations[Bn.row]}else{if(Pn)return;Jn={displayText:[Qn("error-marker.good-state","Looks good!")],className:"ace_ok"}}Nn.session.unfold(Bn.row),Nn.selection.moveToPosition(Bn);var mi={row:Bn.row,fixedWidth:!0,coverGutter:!0,el:Hn.createElement("div"),type:"errorMarker"},ci=mi.el.appendChild(Hn.createElement("div")),oi=mi.el.appendChild(Hn.createElement("div"));oi.className="error_widget_arrow "+Jn.className;var ei=Nn.renderer.$cursorLayer.getPixelPosition(Bn).left;oi.style.left=ei+Nn.renderer.gutterWidth-5+"px",mi.el.className="error_widget_wrapper",ci.className="error_widget "+Jn.className,Jn.displayText.forEach(function(gi,yi){ci.appendChild(Hn.createTextNode(gi)),yi<Jn.displayText.length-1&&ci.appendChild(Hn.createElement("br"))}),ci.appendChild(Hn.createElement("div"));var fi=function(gi,yi,pi){if(yi===0&&(pi==="esc"||pi==="return"))return mi.destroy(),{command:"null"}};mi.destroy=function(){Nn.$mouseHandler.isMousePressed||(Nn.keyBinding.removeKeyboardHandler(fi),In.widgetManager.removeLineWidget(mi),Nn.off("changeSelection",mi.destroy),Nn.off("changeSession",mi.destroy),Nn.off("mouseup",mi.destroy),Nn.off("change",mi.destroy))},Nn.keyBinding.addKeyboardHandler(fi),Nn.on("changeSelection",mi.destroy),Nn.on("changeSession",mi.destroy),Nn.on("mouseup",mi.destroy),Nn.on("change",mi.destroy),Nn.session.widgetManager.addLineWidget(mi),mi.el.onmousedown=Nn.focus.bind(Nn),Nn.renderer.scrollCursorIntoView(null,.5,{bottom:mi.el.offsetHeight})},Hn.importCssString(`
938
+ .error_widget_wrapper {
939
+ background: inherit;
940
+ color: inherit;
941
+ border:none
942
+ }
943
+ .error_widget {
944
+ border-top: solid 2px;
945
+ border-bottom: solid 2px;
946
+ margin: 5px 0;
947
+ padding: 10px 40px;
948
+ white-space: pre-wrap;
949
+ }
950
+ .error_widget.ace_error, .error_widget_arrow.ace_error{
951
+ border-color: #ff5a5a
952
+ }
953
+ .error_widget.ace_warning, .error_widget_arrow.ace_warning{
954
+ border-color: #F1D817
955
+ }
956
+ .error_widget.ace_info, .error_widget_arrow.ace_info{
957
+ border-color: #5a5a5a
958
+ }
959
+ .error_widget.ace_ok, .error_widget_arrow.ace_ok{
960
+ border-color: #5aaa5a
961
+ }
962
+ .error_widget_arrow {
963
+ position: absolute;
964
+ border: solid 5px;
965
+ border-top-color: transparent!important;
966
+ border-right-color: transparent!important;
967
+ border-left-color: transparent!important;
968
+ top: -5px;
969
+ }
970
+ `,"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(_n,kn,qn){_n("./loader_build")(kn);var Hn=_n("./lib/dom"),Kn=_n("./range").Range,Qn=_n("./editor").Editor,zn=_n("./edit_session").EditSession,Wn=_n("./undomanager").UndoManager,Nn=_n("./virtual_renderer").VirtualRenderer;_n("./worker/worker_client"),_n("./keyboard/hash_handler"),_n("./placeholder"),_n("./multi_select"),_n("./mode/folding/fold_mode"),_n("./theme/textmate"),_n("./ext/error_marker"),kn.config=_n("./config"),kn.edit=function(In,Bn){if(typeof In=="string"){var Ln=In;if(In=document.getElementById(Ln),!In)throw new Error("ace.edit can't find div #"+Ln)}if(In&&In.env&&In.env.editor instanceof Qn)return In.env.editor;var Pn="";if(In&&/input|textarea/i.test(In.tagName)){var Zn=In;Pn=Zn.value,In=Hn.createElement("pre"),Zn.parentNode.replaceChild(In,Zn)}else In&&(Pn=In.textContent,In.innerHTML="");var Jn=kn.createEditSession(Pn),Xn=new Qn(new Nn(In),Jn,Bn),mi={document:Jn,editor:Xn,onResize:Xn.resize.bind(Xn,null)};return Zn&&(mi.textarea=Zn),Xn.on("destroy",function(){mi.editor.container.env=null}),Xn.container.env=Xn.env=mi,Xn},kn.createEditSession=function(In,Bn){var Ln=new zn(In,Bn);return Ln.setUndoManager(new Wn),Ln},kn.Range=Kn,kn.Editor=Qn,kn.EditSession=zn,kn.UndoManager=Wn,kn.VirtualRenderer=Nn;var Dn=kn.config.version;kn.version=Dn}),function(){ace.require(["ace/ace"],function(_n){_n&&(_n.config.init(!0),_n.define=ace.define);var kn=function(){return this}();!kn&&typeof window<"u"&&(kn=window),!kn&&typeof self<"u"&&(kn=self),kn.ace||(kn.ace=_n);for(var qn in _n)_n.hasOwnProperty(qn)&&(kn.ace[qn]=_n[qn]);kn.ace.default=kn.ace,e&&(e.exports=kn.ace)})}()}(uc)),uc.exports}Yb();var hc={exports:{}},Fd;function Zb(){return Fd||(Fd=1,function(e,vn){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(_n,kn,qn){var Hn=_n("../lib/oop"),Kn=_n("./text_highlight_rules").TextHighlightRules,Qn=kn.constantOtherSymbol={token:"constant.other.symbol.ruby",regex:"[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"};kn.qString={token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},kn.qqString={token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},kn.tString={token:"string",regex:"[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"};var zn=kn.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},Wn=kn.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},Nn=kn.constantNumericDecimal={token:"constant.numeric",regex:/\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/},Dn=kn.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},In=kn.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},Bn=kn.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},Ln=kn.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},Pn=kn.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},Zn=function(){var Jn="abort|Array|assert|assert_equal|assert_not_equal|assert_same|assert_not_same|assert_nil|assert_not_nil|assert_match|assert_no_match|assert_in_delta|assert_throws|assert_raise|assert_nothing_raised|assert_instance_of|assert_kind_of|assert_respond_to|assert_operator|assert_send|assert_difference|assert_no_difference|assert_recognizes|assert_generates|assert_response|assert_redirected_to|assert_template|assert_select|assert_select_email|assert_select_rjs|assert_select_encoded|css_select|at_exit|attr|attr_writer|attr_reader|attr_accessor|attr_accessible|autoload|binding|block_given?|callcc|caller|catch|chomp|chomp!|chop|chop!|defined?|delete_via_redirect|eval|exec|exit|exit!|fail|Float|flunk|follow_redirect!|fork|form_for|form_tag|format|gets|global_variables|gsub|gsub!|get_via_redirect|host!|https?|https!|include|Integer|lambda|link_to|link_to_unless_current|link_to_function|link_to_remote|load|local_variables|loop|open|open_session|p|print|printf|proc|putc|puts|post_via_redirect|put_via_redirect|raise|rand|raw|readline|readlines|redirect?|request_via_redirect|require|scan|select|set_trace_func|sleep|split|sprintf|srand|String|stylesheet_link_tag|syscall|system|sub|sub!|test|throw|trace_var|trap|untrace_var|atan2|cos|exp|frexp|ldexp|log|log10|sin|sqrt|tan|render|javascript_include_tag|csrf_meta_tag|label_tag|text_field_tag|submit_tag|check_box_tag|content_tag|radio_button_tag|text_area_tag|password_field_tag|hidden_field_tag|fields_for|select_tag|options_for_select|options_from_collection_for_select|collection_select|time_zone_select|select_date|select_time|select_datetime|date_select|time_select|datetime_select|select_year|select_month|select_day|select_hour|select_minute|select_second|file_field_tag|file_field|respond_to|skip_before_filter|around_filter|after_filter|verify|protect_from_forgery|rescue_from|helper_method|redirect_to|before_filter|send_data|send_file|validates_presence_of|validates_uniqueness_of|validates_length_of|validates_format_of|validates_acceptance_of|validates_associated|validates_exclusion_of|validates_inclusion_of|validates_numericality_of|validates_with|validates_each|authenticate_or_request_with_http_basic|authenticate_or_request_with_http_digest|filter_parameter_logging|match|get|post|resources|redirect|scope|assert_routing|translate|localize|extract_locale_from_tld|caches_page|expire_page|caches_action|expire_action|cache|expire_fragment|expire_cache_for|observe|cache_sweeper|has_many|has_one|belongs_to|has_and_belongs_to_many|p|warn|refine|using|module_function|extend|alias_method|private_class_method|remove_method|undef_method",Xn="alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|__FILE__|finally|for|gem|if|in|__LINE__|module|next|not|or|private|protected|public|redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield|__ENCODING__|prepend",mi="true|TRUE|false|FALSE|nil|NIL|ARGF|ARGV|DATA|ENV|RUBY_PLATFORM|RUBY_RELEASE_DATE|RUBY_VERSION|STDERR|STDIN|STDOUT|TOPLEVEL_BINDING|RUBY_PATCHLEVEL|RUBY_REVISION|RUBY_COPYRIGHT|RUBY_ENGINE|RUBY_ENGINE_VERSION|RUBY_DESCRIPTION",ci="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",oi=this.$keywords=this.createKeywordMapper({keyword:Xn,"constant.language":mi,"variable.language":ci,"support.function":Jn,"invalid.deprecated":"debugger"},"identifier"),ei=`\\\\(?:n(?:[1-7][0-7]{0,2}|0)|[nsrtvfbae'"\\\\]|c(?:\\\\M-)?.|M-(?:\\\\C-|\\\\c)?.|C-(?:\\\\M-)?.|[0-7]{3}|x[\\da-fA-F]{2}|u[\\da-fA-F]{4}|u{[\\da-fA-F]{1,6}(?:\\s[\\da-fA-F]{1,6})*})`,fi={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"comment.multiline",regex:"^=begin(?=$|\\s.*$)",next:"comment"},{token:"string.regexp",regex:/[/](?=.*\/)/,next:"regex"},[{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(")/,push:[{token:"constant.language.escape",regex:ei},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:ei},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/`/,next:"pop"},{defaultToken:"string"}]},{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(')/,push:[{token:"constant.language.escape",regex:/\\['\\]/},{token:"string.end",regex:/'/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/%[qwx]([(\[<{^|%])/,onMatch:function(gi,yi,pi){pi.length&&(pi=[]);var $i=gi[gi.length-1];return pi.unshift($i,yi),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(gi,yi,pi){pi.length&&(pi=[]);var $i=gi[gi.length-1];return pi.unshift($i,yi),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(gi,yi,pi){pi.length&&(pi=[]);var $i=gi[gi.length-1];return pi.unshift($i,yi),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(gi,yi,pi){pi.length&&(pi=[]);var $i=gi[gi.length-1];return pi.unshift($i,yi),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(gi,yi,pi){pi.length&&(pi=[]);var $i=gi[gi.length-1];return pi.unshift($i,yi),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},Pn,{token:"variable.global",regex:"[$][a-zA-Z_\\d]+"},{token:"support.class",regex:"[A-Z][a-zA-Z_\\d]*"},{token:["punctuation.operator","support.function"],regex:/(\.)([a-zA-Z_\d]+)(?=\()/},{token:["punctuation.operator","identifier"],regex:/(\.)([a-zA-Z_][a-zA-Z_\d]*)/},{token:"string.character",regex:"\\B\\?(?:"+ei+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},In,Bn,Qn,zn,Ln,Wn,Nn,Dn,{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:oi,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"punctuation.separator.key-value",regex:"=>"},{stateName:"heredoc",onMatch:function(gi,yi,pi){var $i=gi[2]=="-"||gi[2]=="~"?"indentedHeredoc":"heredoc",si=gi.split(this.splitRegex);return pi.push($i,si[3]),[{type:"constant",value:si[1]},{type:"string",value:si[2]},{type:"support.class",value:si[3]},{type:"string",value:si[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(gi,yi,pi){return gi===pi[1]?(pi.shift(),pi.shift(),this.next=pi[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(gi,yi,pi){return gi===pi[1]?(pi.shift(),pi.shift(),this.next=pi[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(gi,yi){return yi[0]==="heredoc"||yi[0]==="indentedHeredoc"?yi[0]:gi}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(gi,yi,pi){return this.next="",gi=="}"&&pi.length>1&&pi[1]!="start"&&(pi.shift(),this.next=pi.shift()),this.token}},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:/[?:,;.]/}],comment:[{token:"comment.multiline",regex:"^=end(?=$|\\s.*$)",next:"start"},{token:"comment",regex:".+"}],qStateWithInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(gi,yi,pi){return pi.length&&gi===pi[0]?(pi.unshift(gi,yi),this.token):"string"}},{token:"constant.language.escape",regex:ei},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(gi,yi,pi){return pi.length&&gi===fi[pi[0]]?(pi.shift(),this.next=pi.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(gi,yi,pi){return pi.length&&gi===pi[0]?(pi.unshift(gi,yi),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(gi,yi,pi){return pi.length&&gi===fi[pi[0]]?(pi.shift(),this.next=pi.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(gi,yi,pi){return pi.length&&gi===pi[0]?(pi.unshift(gi,yi),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(gi,yi,pi){return pi.length&&gi===fi[pi[0]]?(pi.shift(),this.next=pi.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(gi,yi,pi){return pi.length&&gi===pi[0]?(pi.unshift(gi,yi),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:ei},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(gi,yi,pi){return pi.length&&gi===fi[pi[0]]?(pi.shift(),this.next=pi.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(gi,yi,pi){return pi.length&&gi===pi[0]?(pi.unshift(gi,yi),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(gi,yi,pi){return pi.length&&gi[0]===fi[pi[0]]?(pi.shift(),this.next=pi.shift(),this.token):(this.next="","constant.language.escape")}},{include:"regex"},{defaultToken:"string.regexp"}],regex:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"constant.language.escape",regex:/\\[AGbBzZ]/},{token:"constant.language.escape",regex:/\\g<[a-zA-Z0-9]*>/},{token:["constant.language.escape","regexp.keyword","constant.language.escape"],regex:/(\\p{\^?)(Alnum|Alpha|Blank|Cntrl|Digit|Graph|Lower|Print|Punct|Space|Upper|XDigit|Word|ASCII|Any|Assigned|Arabic|Armenian|Balinese|Bengali|Bopomofo|Braille|Buginese|Buhid|Canadian_Aboriginal|Carian|Cham|Cherokee|Common|Coptic|Cuneiform|Cypriot|Cyrillic|Deseret|Devanagari|Ethiopic|Georgian|Glagolitic|Gothic|Greek|Gujarati|Gurmukhi|Han|Hangul|Hanunoo|Hebrew|Hiragana|Inherited|Kannada|Katakana|Kayah_Li|Kharoshthi|Khmer|Lao|Latin|Lepcha|Limbu|Linear_B|Lycian|Lydian|Malayalam|Mongolian|Myanmar|New_Tai_Lue|Nko|Ogham|Ol_Chiki|Old_Italic|Old_Persian|Oriya|Osmanya|Phags_Pa|Phoenician|Rejang|Runic|Saurashtra|Shavian|Sinhala|Sundanese|Syloti_Nagri|Syriac|Tagalog|Tagbanwa|Tai_Le|Tamil|Telugu|Thaana|Thai|Tibetan|Tifinagh|Ugaritic|Vai|Yi|Ll|Lm|Lt|Lu|Lo|Mn|Mc|Me|Nd|Nl|Pc|Pd|Ps|Pe|Pi|Pf|Po|No|Sm|Sc|Sk|So|Zs|Zl|Zp|Cc|Cf|Cn|Co|Cs|N|L|M|P|S|Z|C)(})/},{token:["constant.language.escape","invalid","constant.language.escape"],regex:/(\\p{\^?)([^/]*)(})/},{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:/[/][imxouesn]*/,next:"start"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?(?:[:=!>]|<'?[a-zA-Z]*'?>|<[=!])|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"regexp.keyword",regex:/\[\[:(?:alnum|alpha|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit|word|ascii):\]\]/},{token:"constant.language.escape",regex:/\[\^?/,push:"regex_character_class"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:/&?&?\[\^?/,push:"regex_character_class"},{token:"constant.language.escape",regex:"]",next:"pop"},{token:"constant.language.escape",regex:"-"},{defaultToken:"string.regexp.characterclass"}]},this.normalizeRules()};Hn.inherits(Zn,Kn),kn.RubyHighlightRules=Zn}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(_n,kn,qn){var Hn=_n("../range").Range,Kn=function(){};(function(){this.checkOutdent=function(Qn,zn){return/^\s+$/.test(Qn)?/^\s*\}/.test(zn):!1},this.autoOutdent=function(Qn,zn){var Wn=Qn.getLine(zn),Nn=Wn.match(/^(\s*\})/);if(!Nn)return 0;var Dn=Nn[1].length,In=Qn.findMatchingBracket({row:zn,column:Dn});if(!In||In.row==zn)return 0;var Bn=this.$getIndent(Qn.getLine(In.row));Qn.replace(new Hn(zn,0,zn,Dn-1),Bn)},this.$getIndent=function(Qn){return Qn.match(/^\s*/)[0]}}).call(Kn.prototype),kn.MatchingBraceOutdent=Kn}),ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(_n,kn,qn){var Hn=_n("../../lib/oop"),Kn=_n("./fold_mode").FoldMode,Qn=_n("../../range").Range,zn=_n("../../token_iterator").TokenIterator,Wn=kn.FoldMode=function(){};Hn.inherits(Wn,Kn),(function(){this.indentKeywords={class:1,def:1,module:1,do:1,unless:1,if:1,while:1,for:1,until:1,begin:1,else:0,elsif:0,rescue:0,ensure:0,when:0,end:-1,case:1,"=begin":1,"=end":-1},this.foldingStartMarker=/(?:\s|^)(def|do|while|class|unless|module|if|for|until|begin|else|elsif|case|rescue|ensure|when)\b|({\s*$)|(=begin)/,this.foldingStopMarker=/(=end(?=$|\s.*$))|(^\s*})|\b(end)\b/,this.getFoldWidget=function(Nn,Dn,In){var Bn=Nn.getLine(In),Ln=this.foldingStartMarker.test(Bn),Pn=this.foldingStopMarker.test(Bn);if(Ln&&!Pn){var Zn=Bn.match(this.foldingStartMarker);if(Zn[1]){if((Zn[1]=="if"||Zn[1]=="else"||Zn[1]=="while"||Zn[1]=="until"||Zn[1]=="unless")&&(Zn[1]=="else"&&/^\s*else\s*$/.test(Bn)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(Bn)===!1)||Zn[1]=="when"&&/\sthen\s/.test(Bn)===!0)return;if(Nn.getTokenAt(In,Zn.index+2).type==="keyword")return"start"}else if(!Zn[3]||Nn.getTokenAt(In,Zn.index+1).type==="comment.multiline")return"start"}if(Dn!="markbeginend"||!Pn||Ln&&Pn)return"";var Zn=Bn.match(this.foldingStopMarker);if(Zn[3]==="end"){if(Nn.getTokenAt(In,Zn.index+1).type==="keyword")return"end"}else if(!Zn[1]||Nn.getTokenAt(In,Zn.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(Nn,Dn,In){var Bn=Nn.doc.getLine(In),Ln=this.foldingStartMarker.exec(Bn);if(Ln)return Ln[1]||Ln[3]?this.rubyBlock(Nn,In,Ln.index+2):this.openingBracketBlock(Nn,"{",In,Ln.index);var Ln=this.foldingStopMarker.exec(Bn);if(Ln)return Ln[3]==="end"&&Nn.getTokenAt(In,Ln.index+1).type==="keyword"?this.rubyBlock(Nn,In,Ln.index+1):Ln[1]==="=end"&&Nn.getTokenAt(In,Ln.index+1).type==="comment.multiline"?this.rubyBlock(Nn,In,Ln.index+1):this.closingBracketBlock(Nn,"}",In,Ln.index+Ln[0].length)},this.rubyBlock=function(Nn,Dn,In,Bn){var Ln=new zn(Nn,Dn,In),Pn=Ln.getCurrentToken();if(!(!Pn||Pn.type!="keyword"&&Pn.type!="comment.multiline")){var Zn=Pn.value,Jn=Nn.getLine(Dn);switch(Pn.value){case"if":case"unless":case"while":case"until":var Xn=new RegExp("^\\s*"+Pn.value);if(!Xn.test(Jn))return;var mi=this.indentKeywords[Zn];break;case"when":if(/\sthen\s/.test(Jn))return;case"elsif":case"rescue":case"ensure":var mi=1;break;case"else":var Xn=new RegExp("^\\s*"+Pn.value+"\\s*$");if(!Xn.test(Jn))return;var mi=1;break;default:var mi=this.indentKeywords[Zn]}var ci=[Zn];if(mi){var oi=mi===-1?Nn.getLine(Dn-1).length:Nn.getLine(Dn).length,ei=Dn,fi=[];if(fi.push(Ln.getCurrentTokenRange()),Ln.step=mi===-1?Ln.stepBackward:Ln.stepForward,Pn.type=="comment.multiline"){for(;Pn=Ln.step();)if(Pn.type==="comment.multiline"){if(mi==1){if(oi=6,Pn.value=="=end")break}else if(Pn.value=="=begin")break}}else for(;Pn=Ln.step();){var gi=!1;if(Pn.type==="keyword"){var yi=mi*this.indentKeywords[Pn.value];switch(Jn=Nn.getLine(Ln.getCurrentTokenRow()),Pn.value){case"do":for(var pi=Ln.$tokenIndex-1;pi>=0;pi--){var $i=Ln.$rowTokens[pi];if($i&&($i.value=="while"||$i.value=="until"||$i.value=="for")){yi=0;break}}break;case"else":var Xn=new RegExp("^\\s*"+Pn.value+"\\s*$");(!Xn.test(Jn)||Zn=="case")&&(yi=0,gi=!0);break;case"if":case"unless":case"while":case"until":var Xn=new RegExp("^\\s*"+Pn.value);Xn.test(Jn)||(yi=0,gi=!0);break;case"when":(/\sthen\s/.test(Jn)||Zn=="case")&&(yi=0,gi=!0)}if(yi>0)ci.unshift(Pn.value);else if(yi<=0&&gi===!1){if(ci.shift(),!ci.length&&((Zn=="while"||Zn=="until"||Zn=="for")&&Pn.value!="do"||Pn.value=="do"&&mi==-1&&yi!=0||Pn.value!="do"))break;yi===0&&ci.unshift(Pn.value)}}}if(!Pn)return null;if(Bn)return fi.push(Ln.getCurrentTokenRange()),fi;var Dn=Ln.getCurrentTokenRow();if(mi===-1){if(Pn.type==="comment.multiline")var si=6;else var si=Nn.getLine(Dn).length;return new Qn(Dn,si,ei-1,oi)}return new Qn(ei,oi,Dn-1,Nn.getLine(Dn-1).length)}}}}).call(Wn.prototype)}),ace.define("ace/mode/ruby",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ruby_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/folding/ruby"],function(_n,kn,qn){var Hn=_n("../lib/oop"),Kn=_n("./text").Mode,Qn=_n("./ruby_highlight_rules").RubyHighlightRules,zn=_n("./matching_brace_outdent").MatchingBraceOutdent,Wn=_n("../range").Range,Nn=_n("./folding/ruby").FoldMode,Dn=function(){this.HighlightRules=Qn,this.$outdent=new zn,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new Nn,this.indentKeywords=this.foldingRules.indentKeywords};Hn.inherits(Dn,Kn),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(In,Bn,Ln){var Pn=this.$getIndent(Bn),Zn=this.getTokenizer().getLineTokens(Bn,In),Jn=Zn.tokens;if(Jn.length&&Jn[Jn.length-1].type=="comment")return Pn;if(In=="start"){var Xn=Bn.match(/^.*[\{\(\[]\s*$/),mi=Bn.match(/^\s*(class|def|module)\s.*$/),ci=Bn.match(/.*do(\s*|\s+\|.*\|\s*)$/),oi=Bn.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(Xn||mi||ci||oi)&&(Pn+=Ln)}return Pn},this.checkOutdent=function(In,Bn,Ln){return/^\s+(end|else|rescue|ensure)$/.test(Bn+Ln)||this.$outdent.checkOutdent(Bn,Ln)},this.autoOutdent=function(In,Bn,Ln){var Pn=Bn.getLine(Ln);if(/}/.test(Pn))return this.$outdent.autoOutdent(Bn,Ln);var Zn=this.$getIndent(Pn),Jn=Bn.getLine(Ln-1),Xn=this.$getIndent(Jn),mi=Bn.getTabString();Xn.length<=Zn.length&&Zn.slice(-mi.length)==mi&&Bn.remove(new Wn(Ln,Zn.length-mi.length,Ln,Zn.length))},this.getMatching=function(In,Bn,Ln){if(Bn==null){var Pn=In.selection.lead;Ln=Pn.column,Bn=Pn.row}var Zn=In.getTokenAt(Bn,Ln);if(Zn&&Zn.value in this.indentKeywords)return this.foldingRules.rubyBlock(In,Bn,Ln,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(Dn.prototype),kn.Mode=Dn}),function(){ace.require(["ace/mode/ruby"],function(_n){e&&(e.exports=_n)})}()}(hc)),hc.exports}Zb();var dc={exports:{}},Wd;function Qb(){return Wd||(Wd=1,function(e,vn){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(_n,kn,qn){var Hn=_n("../lib/oop"),Kn=_n("./text_highlight_rules").TextHighlightRules,Qn=function(){var zn="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield|async|await|nonlocal",Wn="True|False|None|NotImplemented|Ellipsis|__debug__",Nn="abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|bin|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|apply|delattr|help|next|setattr|set|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern|ascii|breakpoint|bytes",Dn=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":Nn,"variable.language":"self|cls","constant.language":Wn,keyword:zn},"identifier"),In="[uU]?",Bn="[rR]",Ln="[fF]",Pn="(?:[rR][fF]|[fF][rR])",Zn="(?:(?:[1-9]\\d*)|(?:0))",Jn="(?:0[oO]?[0-7]+)",Xn="(?:0[xX][\\dA-Fa-f]+)",mi="(?:0[bB][01]+)",ci="(?:"+Zn+"|"+Jn+"|"+Xn+"|"+mi+")",oi="(?:[eE][+-]?\\d+)",ei="(?:\\.\\d+)",fi="(?:\\d+)",gi="(?:(?:"+fi+"?"+ei+")|(?:"+fi+"\\.))",yi="(?:(?:"+gi+"|"+fi+")"+oi+")",pi="(?:"+yi+"|"+gi+")",$i=`\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})`;this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:In+'"{3}',next:"qqstring3"},{token:"string",regex:In+'"(?=.)',next:"qqstring"},{token:"string",regex:In+"'{3}",next:"qstring3"},{token:"string",regex:In+"'(?=.)",next:"qstring"},{token:"string",regex:Bn+'"{3}',next:"rawqqstring3"},{token:"string",regex:Bn+'"(?=.)',next:"rawqqstring"},{token:"string",regex:Bn+"'{3}",next:"rawqstring3"},{token:"string",regex:Bn+"'(?=.)",next:"rawqstring"},{token:"string",regex:Ln+'"{3}',next:"fqqstring3"},{token:"string",regex:Ln+'"(?=.)',next:"fqqstring"},{token:"string",regex:Ln+"'{3}",next:"fqstring3"},{token:"string",regex:Ln+"'(?=.)",next:"fqstring"},{token:"string",regex:Pn+'"{3}',next:"rfqqstring3"},{token:"string",regex:Pn+'"(?=.)',next:"rfqqstring"},{token:"string",regex:Pn+"'{3}",next:"rfqstring3"},{token:"string",regex:Pn+"'(?=.)",next:"rfqstring"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|@|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"punctuation",regex:",|:|;|\\->|\\+=|\\-=|\\*=|\\/=|\\/\\/=|%=|@=|&=|\\|=|^=|>>=|<<=|\\*\\*="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:["keyword","text","entity.name.function"],regex:"(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"},{token:"text",regex:"\\s+"},{include:"constants"}],qqstring3:[{token:"constant.language.escape",regex:$i},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:$i},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:$i},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:$i},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],rawqqstring3:[{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],rawqstring3:[{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],rawqqstring:[{token:"string",regex:"\\\\$",next:"rawqqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],rawqstring:[{token:"string",regex:"\\\\$",next:"rawqstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],fqqstring3:[{token:"constant.language.escape",regex:$i},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:$i},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:$i},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:$i},{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring3:[{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring3:[{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring:[{token:"string",regex:"\\\\$",next:"rfqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring:[{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstringParRules:[{token:"paren.lparen",regex:"[\\[\\(]"},{token:"paren.rparen",regex:"[\\]\\)]"},{token:"string",regex:"\\s+"},{token:"string",regex:"'[^']*'"},{token:"string",regex:'"[^"]*"'},{token:"function.support",regex:"(!s|!r|!a)"},{include:"constants"},{token:"paren.rparen",regex:"}",next:"pop"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"}],constants:[{token:"constant.numeric",regex:"(?:"+pi+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:pi},{token:"constant.numeric",regex:ci+"[lL]\\b"},{token:"constant.numeric",regex:ci+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:Dn,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};Hn.inherits(Qn,Kn),kn.PythonHighlightRules=Qn}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(_n,kn,qn){var Hn=_n("../../lib/oop"),Kn=_n("./fold_mode").FoldMode,Qn=kn.FoldMode=function(zn){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+zn+")(?:\\s*)(?:#.*)?$")};Hn.inherits(Qn,Kn),(function(){this.getFoldWidgetRange=function(zn,Wn,Nn){var Dn=zn.getLine(Nn),In=Dn.match(this.foldingStartMarker);if(In)return In[1]?this.openingBracketBlock(zn,In[1],Nn,In.index):In[2]?this.indentationBlock(zn,Nn,In.index+In[2].length):this.indentationBlock(zn,Nn)}}).call(Qn.prototype)}),ace.define("ace/mode/python",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/python_highlight_rules","ace/mode/folding/pythonic","ace/range"],function(_n,kn,qn){var Hn=_n("../lib/oop"),Kn=_n("./text").Mode,Qn=_n("./python_highlight_rules").PythonHighlightRules,zn=_n("./folding/pythonic").FoldMode,Wn=_n("../range").Range,Nn=function(){this.HighlightRules=Qn,this.foldingRules=new zn("\\:"),this.$behaviour=this.$defaultBehaviour};Hn.inherits(Nn,Kn),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(In,Bn,Ln){var Pn=this.$getIndent(Bn),Zn=this.getTokenizer().getLineTokens(Bn,In),Jn=Zn.tokens;if(Jn.length&&Jn[Jn.length-1].type=="comment")return Pn;if(In=="start"){var Xn=Bn.match(/^.*[\{\(\[:]\s*$/);Xn&&(Pn+=Ln)}return Pn};var Dn={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(In,Bn,Ln){if(Ln!==`\r
971
+ `&&Ln!=="\r"&&Ln!==`
972
+ `)return!1;var Pn=this.getTokenizer().getLineTokens(Bn.trim(),In).tokens;if(!Pn)return!1;do var Zn=Pn.pop();while(Zn&&(Zn.type=="comment"||Zn.type=="text"&&Zn.value.match(/^\s+$/)));return Zn?Zn.type=="keyword"&&Dn[Zn.value]:!1},this.autoOutdent=function(In,Bn,Ln){Ln+=1;var Pn=this.$getIndent(Bn.getLine(Ln)),Zn=Bn.getTabString();Pn.slice(-Zn.length)==Zn&&Bn.remove(new Wn(Ln,Pn.length-Zn.length,Ln,Pn.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(Nn.prototype),kn.Mode=Nn}),function(){ace.require(["ace/mode/python"],function(_n){e&&(e.exports=_n)})}()}(dc)),dc.exports}Qb();var fc={exports:{}},Pd;function Xb(){return Pd||(Pd=1,function(e,vn){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(_n,kn,qn){var Hn=_n("../lib/oop"),Kn=_n("./text_highlight_rules").TextHighlightRules,Qn=function(){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"}]}};Hn.inherits(Qn,Kn),kn.JsonHighlightRules=Qn}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(_n,kn,qn){var Hn=_n("../range").Range,Kn=function(){};(function(){this.checkOutdent=function(Qn,zn){return/^\s+$/.test(Qn)?/^\s*\}/.test(zn):!1},this.autoOutdent=function(Qn,zn){var Wn=Qn.getLine(zn),Nn=Wn.match(/^(\s*\})/);if(!Nn)return 0;var Dn=Nn[1].length,In=Qn.findMatchingBracket({row:zn,column:Dn});if(!In||In.row==zn)return 0;var Bn=this.$getIndent(Qn.getLine(In.row));Qn.replace(new Hn(zn,0,zn,Dn-1),Bn)},this.$getIndent=function(Qn){return Qn.match(/^\s*/)[0]}}).call(Kn.prototype),kn.MatchingBraceOutdent=Kn}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(_n,kn,qn){var Hn=_n("../../lib/oop"),Kn=_n("../../range").Range,Qn=_n("./fold_mode").FoldMode,zn=kn.FoldMode=function(Wn){Wn&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+Wn.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+Wn.end)))};Hn.inherits(zn,Qn),(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(Wn,Nn,Dn){var In=Wn.getLine(Dn);if(this.singleLineBlockCommentRe.test(In)&&!this.startRegionRe.test(In)&&!this.tripleStarBlockCommentRe.test(In))return"";var Bn=this._getFoldWidgetBase(Wn,Nn,Dn);return!Bn&&this.startRegionRe.test(In)?"start":Bn},this.getFoldWidgetRange=function(Wn,Nn,Dn,In){var Bn=Wn.getLine(Dn);if(this.startRegionRe.test(Bn))return this.getCommentRegionBlock(Wn,Bn,Dn);var Ln=Bn.match(this.foldingStartMarker);if(Ln){var Pn=Ln.index;if(Ln[1])return this.openingBracketBlock(Wn,Ln[1],Dn,Pn);var Zn=Wn.getCommentFoldRange(Dn,Pn+Ln[0].length,1);return Zn&&!Zn.isMultiLine()&&(In?Zn=this.getSectionRange(Wn,Dn):Nn!="all"&&(Zn=null)),Zn}if(Nn!=="markbegin"){var Ln=Bn.match(this.foldingStopMarker);if(Ln){var Pn=Ln.index+Ln[0].length;return Ln[1]?this.closingBracketBlock(Wn,Ln[1],Dn,Pn):Wn.getCommentFoldRange(Dn,Pn,-1)}}},this.getSectionRange=function(Wn,Nn){var Dn=Wn.getLine(Nn),In=Dn.search(/\S/),Bn=Nn,Ln=Dn.length;Nn+=1;for(var Pn=Nn,Zn=Wn.getLength();++Nn<Zn;){Dn=Wn.getLine(Nn);var Jn=Dn.search(/\S/);if(Jn!==-1){if(In>Jn)break;var Xn=this.getFoldWidgetRange(Wn,"all",Nn);if(Xn){if(Xn.start.row<=Bn)break;if(Xn.isMultiLine())Nn=Xn.end.row;else if(In==Jn)break}Pn=Nn}}return new Kn(Bn,Ln,Pn,Wn.getLine(Pn).length)},this.getCommentRegionBlock=function(Wn,Nn,Dn){for(var In=Nn.search(/\s*$/),Bn=Wn.getLength(),Ln=Dn,Pn=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,Zn=1;++Dn<Bn;){Nn=Wn.getLine(Dn);var Jn=Pn.exec(Nn);if(Jn&&(Jn[1]?Zn--:Zn++,!Zn))break}var Xn=Dn;if(Xn>Ln)return new Kn(Ln,In,Xn,Nn.length)}}).call(zn.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(_n,kn,qn){var Hn=_n("../lib/oop"),Kn=_n("./text").Mode,Qn=_n("./json_highlight_rules").JsonHighlightRules,zn=_n("./matching_brace_outdent").MatchingBraceOutdent,Wn=_n("./folding/cstyle").FoldMode,Nn=_n("../worker/worker_client").WorkerClient,Dn=function(){this.HighlightRules=Qn,this.$outdent=new zn,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new Wn};Hn.inherits(Dn,Kn),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(In,Bn,Ln){var Pn=this.$getIndent(Bn);if(In=="start"){var Zn=Bn.match(/^.*[\{\(\[]\s*$/);Zn&&(Pn+=Ln)}return Pn},this.checkOutdent=function(In,Bn,Ln){return this.$outdent.checkOutdent(Bn,Ln)},this.autoOutdent=function(In,Bn,Ln){this.$outdent.autoOutdent(Bn,Ln)},this.createWorker=function(In){var Bn=new Nn(["ace"],"ace/mode/json_worker","JsonWorker");return Bn.attachToDocument(In.getDocument()),Bn.on("annotate",function(Ln){In.setAnnotations(Ln.data)}),Bn.on("terminate",function(){In.clearAnnotations()}),Bn},this.$id="ace/mode/json"}).call(Dn.prototype),kn.Mode=Dn}),function(){ace.require(["ace/mode/json"],function(_n){e&&(e.exports=_n)})}()}(fc)),fc.exports}Xb();var pc={exports:{}},Bd;function Jb(){return Bd||(Bd=1,function(e,vn){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(_n,kn,qn){var Hn=_n("../lib/oop");_n("../lib/lang");var Kn=_n("./text_highlight_rules").TextHighlightRules,Qn=kn.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",zn=kn.supportFunction="rgb|rgba|url|attr|counter|counters",Wn=kn.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",Nn=kn.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",Dn=kn.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",In=kn.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",Bn=kn.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",Ln=kn.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",Pn=function(){var Zn=this.createKeywordMapper({"support.function":zn,"support.constant":Wn,"support.type":Qn,"support.constant.color":Nn,"support.constant.fonts":Dn},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:In},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+In+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:In},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:Bn},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:Ln},{include:"url"},{token:Zn,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{token:"paren.lparen",regex:"\\{"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};Hn.inherits(Pn,Kn),kn.CssHighlightRules=Pn}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(_n,kn,qn){var Hn=_n("../lib/oop"),Kn=_n("./text_highlight_rules").TextHighlightRules,Qn=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},Qn.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};Hn.inherits(Qn,Kn),Qn.getTagRule=function(zn){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},Qn.getStartRule=function(zn){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:zn}},Qn.getEndRule=function(zn){return{token:"comment.doc",regex:"\\*\\/",next:zn}},kn.JsDocCommentHighlightRules=Qn}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(_n,kn,qn){function Hn(){var In=Nn.replace("\\d","\\d\\-"),Bn={onMatch:function(Pn,Zn,Jn){var Xn=Pn.charAt(1)=="/"?2:1;return Xn==1?(Zn!=this.nextState?Jn.unshift(this.next,this.nextState,0):Jn.unshift(this.next),Jn[2]++):Xn==2&&Zn==this.nextState&&(Jn[1]--,(!Jn[1]||Jn[1]<0)&&(Jn.shift(),Jn.shift())),[{type:"meta.tag.punctuation."+(Xn==1?"":"end-")+"tag-open.xml",value:Pn.slice(0,Xn)},{type:"meta.tag.tag-name.xml",value:Pn.substr(Xn)}]},regex:"</?(?:"+In+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(Bn);var Ln={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[Ln,Bn,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(Pn,Zn,Jn){return Zn==Jn[0]&&Jn.shift(),Pn.length==2&&(Jn[0]==this.nextState&&Jn[1]--,(!Jn[1]||Jn[1]<0)&&Jn.splice(0,2)),this.next=Jn[0]||"start",[{type:this.token,value:Pn}]},nextState:"jsx"},Ln,Kn("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:In},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},Bn],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function Kn(In){return[{token:"comment",regex:/\/\*/,next:[zn.getTagRule(),{token:"comment",regex:"\\*\\/",next:In||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[zn.getTagRule(),{token:"comment",regex:"$|^",next:In||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var Qn=_n("../lib/oop"),zn=_n("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,Wn=_n("./text_highlight_rules").TextHighlightRules,Nn="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",Dn=function(In){var Bn={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},Ln=this.createKeywordMapper(Bn,"identifier"),Pn="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",Zn="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",Jn="(function)(\\s*)(\\*?)",Xn={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(Bn).join("|")+"\\b)"+Nn+")(\\s*)(\\()"};this.$rules={no_regex:[zn.getStartRule("doc-start"),Kn("no_regex"),Xn,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+Nn+")(\\s*)(=)(\\s*)"+Jn+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+Nn+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+Nn+")(\\s*)(:)(\\s*)"+Jn+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+Jn+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+Pn+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:Ln,regex:Nn},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:"keyword.operator",regex:/=/},{token:["storage.type","text","storage.type","text","paren.lparen"],regex:Jn+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:Nn},{regex:"",token:"empty",next:"no_regex"}],start:[zn.getStartRule("doc-start"),Kn("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[Kn("function_arguments"),{token:"variable.parameter",regex:Nn},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:Zn},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:Zn},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!In||!In.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(mi,ci,oi){if(this.next=mi=="{"?this.nextState:"",mi=="{"&&oi.length)oi.unshift("start",ci);else if(mi=="}"&&oi.length&&(oi.shift(),this.next=oi.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return mi=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:Zn},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+Nn+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=[^\\(]+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!In||In.jsx!=0)&&Hn.call(this)),this.embedRules(zn,"doc-",[zn.getEndRule("no_regex")]),this.normalizeRules()};Qn.inherits(Dn,Wn),kn.JavaScriptHighlightRules=Dn}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(_n,kn,qn){var Hn=_n("../lib/oop"),Kn=_n("./text_highlight_rules").TextHighlightRules,Qn=function(zn){var Wn="[_:a-zA-ZÀ-￿][-_:.a-zA-Z0-9À-￿]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+Wn+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:Wn},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+Wn+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+Wn+":)?"+Wn+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:Wn},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===Qn&&this.normalizeRules()};(function(){this.embedTagRules=function(zn,Wn,Nn){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+Nn+".tag-name.xml"],regex:"(<)("+Nn+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:Wn+"start"}]}),this.$rules[Nn+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(Dn,In,Bn){return Bn.splice(0),this.token}}],this.embedRules(zn,Wn,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+Nn+".tag-name.xml"],regex:"(</)("+Nn+"(?=\\s|>|$))",next:Nn+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(Kn.prototype),Hn.inherits(Qn,Kn),kn.XmlHighlightRules=Qn}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(_n,kn,qn){var Hn=_n("../lib/oop"),Kn=_n("../lib/lang"),Qn=_n("./css_highlight_rules").CssHighlightRules,zn=_n("./javascript_highlight_rules").JavaScriptHighlightRules,Wn=_n("./xml_highlight_rules").XmlHighlightRules,Nn=Kn.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),Dn=function(){Wn.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(In,Bn){var Ln=Nn[Bn];return["meta.tag.punctuation."+(In=="<"?"":"end-")+"tag-open.xml","meta.tag"+(Ln?"."+Ln:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(Qn,"css-","style"),this.embedTagRules(new zn({jsx:!1}).getRules(),"js-","script"),this.constructor===Dn&&this.normalizeRules()};Hn.inherits(Dn,Wn),kn.HtmlHighlightRules=Dn}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(_n,kn,qn){var Hn=_n("../config").$modes,Kn=_n("../lib/oop"),Qn=_n("../lib/lang"),zn=_n("./text_highlight_rules").TextHighlightRules,Wn=_n("./html_highlight_rules").HtmlHighlightRules,Nn=function(In){return"(?:[^"+Qn.escapeRegExp(In)+"\\\\]|\\\\.)*"},Dn=function(){Wn.call(this);var In={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(Ln,Pn,Zn,Jn){var Xn=Ln.match(/^(\s*)([`~]+)(.*)/),mi=/[\w-]+|$/.exec(Xn[3])[0];return Hn[mi]||(mi=""),Zn.unshift("githubblock",[],[Xn[1],Xn[2],mi],Pn),this.token},next:"githubblock"},Bn=[{token:"support.function",regex:".*",onMatch:function(Ln,Pn,Zn,Jn){var Xn=Zn[1],mi=Zn[2][0],ci=Zn[2][1],oi=Zn[2][2],ei=/^(\s*)(`+|~+)\s*$/.exec(Ln);if(ei&&ei[1].length<mi.length+3&&ei[2].length>=ci.length&&ei[2][0]==ci[0])return Zn.splice(0,3),this.next=Zn.shift(),this.token;if(this.next="",oi&&Hn[oi]){var fi=Hn[oi].getTokenizer().getLineTokens(Ln,Xn.slice(0));return Zn[1]=fi.state,fi.tokens}return this.token}}];this.$rules.start.unshift({token:"empty_line",regex:"^$",next:"allowBlock"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.2",regex:"^\\-+(?=\\s*$)"},{token:function(Ln){return"markup.heading."+Ln.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},In,{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{token:"constant",regex:"^ {0,3}(?:(?:\\* ?){3,}|(?:\\- ?){3,}|(?:\\_ ?){3,})\\s*$",next:"allowBlock"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic"}),this.addRules({basic:[{token:"constant.language.escape",regex:/\\[\\`*_{}\[\]()#+\-.!]/},{token:"support.function",regex:"(`+)(.*?[^`])(\\1)"},{token:["text","constant","text","url","string","text"],regex:'^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:["][^"]+["])?(\\s*))$'},{token:["text","string","text","constant","text"],regex:"(\\[)("+Nn("]")+")(\\]\\s*\\[)("+Nn("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+Nn("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+Nn('"')+'"\\s*)?(\\))'},{token:"string.strong",regex:"([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"},{token:"string.emphasis",regex:"([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"},{token:["text","url","text"],regex:`(<)((?:https?|ftp|dict):[^'">\\s]+|(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+)(>)`}],allowBlock:[{token:"support.function",regex:"^ {4}.+",next:"allowBlock"},{token:"empty_line",regex:"^$",next:"allowBlock"},{token:"empty",regex:"",next:"start"}],header:[{regex:"$",next:"start"},{include:"basic"},{defaultToken:"heading"}],"listblock-start":[{token:"support.variable",regex:/(?:\[[ x]\])?/,next:"listblock"}],listblock:[{token:"empty_line",regex:"^$",next:"start"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic",noEscape:!0},In,{defaultToken:"list"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{include:"basic",noEscape:!0},{defaultToken:"string.blockquote"}],githubblock:Bn}),this.normalizeRules()};Kn.inherits(Dn,zn),kn.MarkdownHighlightRules=Dn}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(_n,kn,qn){var Hn=_n("../../lib/oop"),Kn=_n("./fold_mode").FoldMode,Qn=_n("../../range").Range,zn=kn.FoldMode=function(){};Hn.inherits(zn,Kn),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(Wn,Nn,Dn){var In=Wn.getLine(Dn);return this.foldingStartMarker.test(In)?In[0]=="`"&&Wn.bgTokenizer.getState(Dn)=="start"?"end":"start":""},this.getFoldWidgetRange=function(Wn,Nn,Dn){function In(gi){return mi=Wn.getTokens(gi)[0],mi&&mi.type.lastIndexOf(ci,0)===0}function Bn(){var gi=mi.value[0];return gi=="="?6:gi=="-"?5:7-mi.value.search(/[^#]|$/)}var Ln=Wn.getLine(Dn),Pn=Ln.length,Zn=Wn.getLength(),Jn=Dn,Xn=Dn;if(Ln.match(this.foldingStartMarker)){if(Ln[0]=="`"){if(Wn.bgTokenizer.getState(Dn)!=="start"){for(;++Dn<Zn&&(Ln=Wn.getLine(Dn),!(Ln[0]=="`"&Ln.substring(0,3)=="```")););return new Qn(Jn,Pn,Dn,0)}for(;Dn-- >0&&(Ln=Wn.getLine(Dn),!(Ln[0]=="`"&Ln.substring(0,3)=="```")););return new Qn(Dn,Ln.length,Jn,0)}var mi,ci="markup.heading";if(In(Dn)){for(var oi=Bn();++Dn<Zn;)if(In(Dn)){var ei=Bn();if(ei>=oi)break}if(Xn=Dn-(!mi||["=","-"].indexOf(mi.value[0])==-1?1:2),Xn>Jn)for(;Xn>Jn&&/^\s*$/.test(Wn.getLine(Xn));)Xn--;if(Xn>Jn){var fi=Wn.getLine(Xn).length;return new Qn(Jn,Pn,Xn,fi)}}}}}).call(zn.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(_n,kn,qn){var Hn=_n("../range").Range,Kn=function(){};(function(){this.checkOutdent=function(Qn,zn){return/^\s+$/.test(Qn)?/^\s*\}/.test(zn):!1},this.autoOutdent=function(Qn,zn){var Wn=Qn.getLine(zn),Nn=Wn.match(/^(\s*\})/);if(!Nn)return 0;var Dn=Nn[1].length,In=Qn.findMatchingBracket({row:zn,column:Dn});if(!In||In.row==zn)return 0;var Bn=this.$getIndent(Qn.getLine(In.row));Qn.replace(new Hn(zn,0,zn,Dn-1),Bn)},this.$getIndent=function(Qn){return Qn.match(/^\s*/)[0]}}).call(Kn.prototype),kn.MatchingBraceOutdent=Kn}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(_n,kn,qn){function Hn(Nn,Dn){return Nn&&Nn.type.lastIndexOf(Dn+".xml")>-1}var Kn=_n("../../lib/oop"),Qn=_n("../behaviour").Behaviour,zn=_n("../../token_iterator").TokenIterator,Wn=function(){this.add("string_dquotes","insertion",function(Nn,Dn,In,Bn,Ln){if(Ln=='"'||Ln=="'"){var Pn=Ln,Zn=Bn.doc.getTextRange(In.getSelectionRange());if(Zn!==""&&Zn!=="'"&&Zn!='"'&&In.getWrapBehavioursEnabled())return{text:Pn+Zn+Pn,selection:!1};var Jn=In.getCursorPosition(),Xn=Bn.doc.getLine(Jn.row),mi=Xn.substring(Jn.column,Jn.column+1),ci=new zn(Bn,Jn.row,Jn.column),oi=ci.getCurrentToken();if(mi==Pn&&(Hn(oi,"attribute-value")||Hn(oi,"string")))return{text:"",selection:[1,1]};if(oi||(oi=ci.stepBackward()),!oi)return;for(;Hn(oi,"tag-whitespace")||Hn(oi,"whitespace");)oi=ci.stepBackward();var ei=!mi||mi.match(/\s/);if(Hn(oi,"attribute-equals")&&(ei||mi==">")||Hn(oi,"decl-attribute-equals")&&(ei||mi=="?"))return{text:Pn+Pn,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(Nn,Dn,In,Bn,Ln){var Pn=Bn.doc.getTextRange(Ln);if(!Ln.isMultiLine()&&(Pn=='"'||Pn=="'")){var Zn=Bn.doc.getLine(Ln.start.row),Jn=Zn.substring(Ln.start.column+1,Ln.start.column+2);if(Jn==Pn)return Ln.end.column++,Ln}}),this.add("autoclosing","insertion",function(Nn,Dn,In,Bn,Ln){if(Ln==">"){var Pn=In.getSelectionRange().start,Zn=new zn(Bn,Pn.row,Pn.column),Jn=Zn.getCurrentToken()||Zn.stepBackward();if(!Jn||!(Hn(Jn,"tag-name")||Hn(Jn,"tag-whitespace")||Hn(Jn,"attribute-name")||Hn(Jn,"attribute-equals")||Hn(Jn,"attribute-value"))||Hn(Jn,"reference.attribute-value"))return;if(Hn(Jn,"attribute-value")){var Xn=Zn.getCurrentTokenColumn()+Jn.value.length;if(Pn.column<Xn)return;if(Pn.column==Xn){var mi=Zn.stepForward();if(mi&&Hn(mi,"attribute-value"))return;Zn.stepBackward()}}if(/^\s*>/.test(Bn.getLine(Pn.row).slice(Pn.column)))return;for(;!Hn(Jn,"tag-name");)if(Jn=Zn.stepBackward(),Jn.value=="<"){Jn=Zn.stepForward();break}var ci=Zn.getCurrentTokenRow(),oi=Zn.getCurrentTokenColumn();if(Hn(Zn.stepBackward(),"end-tag-open"))return;var ei=Jn.value;return ci==Pn.row&&(ei=ei.substring(0,Pn.column-oi)),this.voidElements&&this.voidElements.hasOwnProperty(ei.toLowerCase())?void 0:{text:"></"+ei+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(Nn,Dn,In,Bn,Ln){if(Ln==`
973
+ `){var Pn=In.getCursorPosition(),Zn=Bn.getLine(Pn.row),Jn=new zn(Bn,Pn.row,Pn.column),Xn=Jn.getCurrentToken();if(Hn(Xn,"")&&Xn.type.indexOf("tag-close")!==-1){if(Xn.value=="/>")return;for(;Xn&&Xn.type.indexOf("tag-name")===-1;)Xn=Jn.stepBackward();if(!Xn)return;var mi=Xn.value,ci=Jn.getCurrentTokenRow();if(Xn=Jn.stepBackward(),!Xn||Xn.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[mi]||!this.voidElements){var oi=Bn.getTokenAt(Pn.row,Pn.column+1),Zn=Bn.getLine(ci),ei=this.$getIndent(Zn),fi=ei+Bn.getTabString();return oi&&oi.value==="</"?{text:`
974
+ `+fi+`
975
+ `+ei,selection:[1,fi.length,1,fi.length]}:{text:`
976
+ `+fi}}}}})};Kn.inherits(Wn,Qn),kn.XmlBehaviour=Wn}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(_n,kn,qn){var Hn=_n("../../lib/oop"),Kn=_n("../../token_iterator").TokenIterator,Qn=_n("../behaviour/cstyle").CstyleBehaviour,zn=_n("../behaviour/xml").XmlBehaviour,Wn=function(){var Nn=new zn({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(Nn),this.inherit(Qn),this.add("autoclosing-fragment","insertion",function(Dn,In,Bn,Ln,Pn){if(Pn==">"){var Zn=Bn.getSelectionRange().start,Jn=new Kn(Ln,Zn.row,Zn.column),Xn=Jn.getCurrentToken()||Jn.stepBackward();if(!Xn)return;if(Xn.value=="<")return{text:"></>",selection:[1,1]}}})};Hn.inherits(Wn,Qn),kn.JavaScriptBehaviour=Wn}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(_n,kn,qn){function Hn(Dn,In){return Dn.type.lastIndexOf(In+".xml")>-1}var Kn=_n("../../lib/oop"),Qn=_n("../../range").Range,zn=_n("./fold_mode").FoldMode,Wn=kn.FoldMode=function(Dn,In){zn.call(this),this.voidElements=Dn||{},this.optionalEndTags=Kn.mixin({},this.voidElements),In&&Kn.mixin(this.optionalEndTags,In)};Kn.inherits(Wn,zn);var Nn=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};(function(){this.getFoldWidget=function(Dn,In,Bn){var Ln=this._getFirstTagInLine(Dn,Bn);return Ln?Ln.closing||!Ln.tagName&&Ln.selfClosing?In==="markbeginend"?"end":"":!Ln.tagName||Ln.selfClosing||this.voidElements.hasOwnProperty(Ln.tagName.toLowerCase())||this._findEndTagInLine(Dn,Bn,Ln.tagName,Ln.end.column)?"":"start":this.getCommentFoldWidget(Dn,Bn)},this.getCommentFoldWidget=function(Dn,In){return/comment/.test(Dn.getState(In))&&/<!-/.test(Dn.getLine(In))?"start":""},this._getFirstTagInLine=function(Dn,In){for(var Bn=Dn.getTokens(In),Ln=new Nn,Pn=0;Pn<Bn.length;Pn++){var Zn=Bn[Pn];if(Hn(Zn,"tag-open")){if(Ln.end.column=Ln.start.column+Zn.value.length,Ln.closing=Hn(Zn,"end-tag-open"),Zn=Bn[++Pn],!Zn)return null;if(Ln.tagName=Zn.value,Zn.value===""){if(Zn=Bn[++Pn],!Zn)return null;Ln.tagName=Zn.value}for(Ln.end.column+=Zn.value.length,Pn++;Pn<Bn.length;Pn++)if(Zn=Bn[Pn],Ln.end.column+=Zn.value.length,Hn(Zn,"tag-close")){Ln.selfClosing=Zn.value=="/>";break}return Ln}if(Hn(Zn,"tag-close"))return Ln.selfClosing=Zn.value=="/>",Ln;Ln.start.column+=Zn.value.length}return null},this._findEndTagInLine=function(Dn,In,Bn,Ln){for(var Pn=Dn.getTokens(In),Zn=0,Jn=0;Jn<Pn.length;Jn++){var Xn=Pn[Jn];if(Zn+=Xn.value.length,!(Zn<Ln-1)&&Hn(Xn,"end-tag-open")&&(Xn=Pn[Jn+1],Hn(Xn,"tag-name")&&Xn.value===""&&(Xn=Pn[Jn+2]),Xn&&Xn.value==Bn))return!0}return!1},this.getFoldWidgetRange=function(Dn,In,Bn){var Ln=this._getFirstTagInLine(Dn,Bn);if(!Ln)return this.getCommentFoldWidget(Dn,Bn)&&Dn.getCommentFoldRange(Bn,Dn.getLine(Bn).length);var Pn=Dn.getMatchingTags({row:Bn,column:0});if(Pn)return new Qn(Pn.openTag.end.row,Pn.openTag.end.column,Pn.closeTag.start.row,Pn.closeTag.start.column)}}).call(Wn.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(_n,kn,qn){var Hn=_n("../../lib/oop"),Kn=_n("../../range").Range,Qn=_n("./fold_mode").FoldMode,zn=kn.FoldMode=function(Wn){Wn&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+Wn.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+Wn.end)))};Hn.inherits(zn,Qn),(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(Wn,Nn,Dn){var In=Wn.getLine(Dn);if(this.singleLineBlockCommentRe.test(In)&&!this.startRegionRe.test(In)&&!this.tripleStarBlockCommentRe.test(In))return"";var Bn=this._getFoldWidgetBase(Wn,Nn,Dn);return!Bn&&this.startRegionRe.test(In)?"start":Bn},this.getFoldWidgetRange=function(Wn,Nn,Dn,In){var Bn=Wn.getLine(Dn);if(this.startRegionRe.test(Bn))return this.getCommentRegionBlock(Wn,Bn,Dn);var Ln=Bn.match(this.foldingStartMarker);if(Ln){var Pn=Ln.index;if(Ln[1])return this.openingBracketBlock(Wn,Ln[1],Dn,Pn);var Zn=Wn.getCommentFoldRange(Dn,Pn+Ln[0].length,1);return Zn&&!Zn.isMultiLine()&&(In?Zn=this.getSectionRange(Wn,Dn):Nn!="all"&&(Zn=null)),Zn}if(Nn!=="markbegin"){var Ln=Bn.match(this.foldingStopMarker);if(Ln){var Pn=Ln.index+Ln[0].length;return Ln[1]?this.closingBracketBlock(Wn,Ln[1],Dn,Pn):Wn.getCommentFoldRange(Dn,Pn,-1)}}},this.getSectionRange=function(Wn,Nn){var Dn=Wn.getLine(Nn),In=Dn.search(/\S/),Bn=Nn,Ln=Dn.length;Nn+=1;for(var Pn=Nn,Zn=Wn.getLength();++Nn<Zn;){Dn=Wn.getLine(Nn);var Jn=Dn.search(/\S/);if(Jn!==-1){if(In>Jn)break;var Xn=this.getFoldWidgetRange(Wn,"all",Nn);if(Xn){if(Xn.start.row<=Bn)break;if(Xn.isMultiLine())Nn=Xn.end.row;else if(In==Jn)break}Pn=Nn}}return new Kn(Bn,Ln,Pn,Wn.getLine(Pn).length)},this.getCommentRegionBlock=function(Wn,Nn,Dn){for(var In=Nn.search(/\s*$/),Bn=Wn.getLength(),Ln=Dn,Pn=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,Zn=1;++Dn<Bn;){Nn=Wn.getLine(Dn);var Jn=Pn.exec(Nn);if(Jn&&(Jn[1]?Zn--:Zn++,!Zn))break}var Xn=Dn;if(Xn>Ln)return new Kn(Ln,In,Xn,Nn.length)}}).call(zn.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(_n,kn,qn){var Hn=_n("../../lib/oop"),Kn=_n("./xml").FoldMode,Qn=_n("./cstyle").FoldMode,zn=kn.FoldMode=function(Wn){Wn&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+Wn.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+Wn.end))),this.xmlFoldMode=new Kn};Hn.inherits(zn,Qn),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(Wn,Nn,Dn){var In=this.getFoldWidgetBase(Wn,Nn,Dn);return In||this.xmlFoldMode.getFoldWidget(Wn,Nn,Dn)},this.getFoldWidgetRange=function(Wn,Nn,Dn,In){var Bn=this.getFoldWidgetRangeBase(Wn,Nn,Dn,In);return Bn||this.xmlFoldMode.getFoldWidgetRange(Wn,Nn,Dn)}}).call(zn.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"],function(_n,kn,qn){var Hn=_n("../lib/oop"),Kn=_n("./text").Mode,Qn=_n("./javascript_highlight_rules").JavaScriptHighlightRules,zn=_n("./matching_brace_outdent").MatchingBraceOutdent,Wn=_n("../worker/worker_client").WorkerClient,Nn=_n("./behaviour/javascript").JavaScriptBehaviour,Dn=_n("./folding/javascript").FoldMode,In=function(){this.HighlightRules=Qn,this.$outdent=new zn,this.$behaviour=new Nn,this.foldingRules=new Dn};Hn.inherits(In,Kn),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(Bn,Ln,Pn){var Zn=this.$getIndent(Ln),Jn=this.getTokenizer().getLineTokens(Ln,Bn),Xn=Jn.tokens,mi=Jn.state;if(Xn.length&&Xn[Xn.length-1].type=="comment")return Zn;if(Bn=="start"||Bn=="no_regex"){var ci=Ln.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);ci&&(Zn+=Pn)}else if(Bn=="doc-start"&&(mi=="start"||mi=="no_regex"))return"";return Zn},this.checkOutdent=function(Bn,Ln,Pn){return this.$outdent.checkOutdent(Ln,Pn)},this.autoOutdent=function(Bn,Ln,Pn){this.$outdent.autoOutdent(Ln,Pn)},this.createWorker=function(Bn){var Ln=new Wn(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return Ln.attachToDocument(Bn.getDocument()),Ln.on("annotate",function(Pn){Bn.setAnnotations(Pn.data)}),Ln.on("terminate",function(){Bn.clearAnnotations()}),Ln},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(In.prototype),kn.Mode=In}),ace.define("ace/mode/css_completions",["require","exports","module"],function(_n,kn,qn){var Hn={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},Kn=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var Qn=document.createElement("c").style;for(var zn in Qn)if(typeof Qn[zn]=="string"){var Wn=zn.replace(/[A-Z]/g,function(Nn){return"-"+Nn.toLowerCase()});Hn.hasOwnProperty(Wn)||(Hn[Wn]=1)}}this.completionsDefined=!0},this.getCompletions=function(Qn,zn,Wn,Nn){if(this.completionsDefined||this.defineCompletions(),Qn==="ruleset"||zn.$mode.$id=="ace/mode/scss"){var Dn=zn.getLine(Wn.row).substr(0,Wn.column),In=/\([^)]*$/.test(Dn);return In&&(Dn=Dn.substr(Dn.lastIndexOf("(")+1)),/:[^;]+$/.test(Dn)?this.getPropertyValueCompletions(Qn,zn,Wn,Nn):this.getPropertyCompletions(Qn,zn,Wn,Nn,In)}return[]},this.getPropertyCompletions=function(Qn,zn,Wn,Nn,Dn){Dn=Dn||!1;var In=Object.keys(Hn);return In.map(function(Bn){return{caption:Bn,snippet:Bn+": $0"+(Dn?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(Qn,zn,Wn,Nn){var Dn=zn.getLine(Wn.row).substr(0,Wn.column),In=(/([\w\-]+):[^:]*$/.exec(Dn)||{})[1];if(!In)return[];var Bn=[];return In in Hn&&typeof Hn[In]=="object"&&(Bn=Object.keys(Hn[In])),Bn.map(function(Ln){return{caption:Ln,snippet:Ln,meta:"property value",score:1e6}})}}).call(Kn.prototype),kn.CssCompletions=Kn}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(_n,kn,qn){var Hn=_n("../../lib/oop");_n("../behaviour").Behaviour;var Kn=_n("./cstyle").CstyleBehaviour,Qn=_n("../../token_iterator").TokenIterator,zn=function(){this.inherit(Kn),this.add("colon","insertion",function(Wn,Nn,Dn,In,Bn){if(Bn===":"&&Dn.selection.isEmpty()){var Ln=Dn.getCursorPosition(),Pn=new Qn(In,Ln.row,Ln.column),Zn=Pn.getCurrentToken();if(Zn&&Zn.value.match(/\s+/)&&(Zn=Pn.stepBackward()),Zn&&Zn.type==="support.type"){var Jn=In.doc.getLine(Ln.row),Xn=Jn.substring(Ln.column,Ln.column+1);if(Xn===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(Jn.substring(Ln.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(Wn,Nn,Dn,In,Bn){var Ln=In.doc.getTextRange(Bn);if(!Bn.isMultiLine()&&Ln===":"){var Pn=Dn.getCursorPosition(),Zn=new Qn(In,Pn.row,Pn.column),Jn=Zn.getCurrentToken();if(Jn&&Jn.value.match(/\s+/)&&(Jn=Zn.stepBackward()),Jn&&Jn.type==="support.type"){var Xn=In.doc.getLine(Bn.start.row),mi=Xn.substring(Bn.end.column,Bn.end.column+1);if(mi===";")return Bn.end.column++,Bn}}}),this.add("semicolon","insertion",function(Wn,Nn,Dn,In,Bn){if(Bn===";"&&Dn.selection.isEmpty()){var Ln=Dn.getCursorPosition(),Pn=In.doc.getLine(Ln.row),Zn=Pn.substring(Ln.column,Ln.column+1);if(Zn===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(Wn,Nn,Dn,In,Bn){if(Bn==="!"&&Dn.selection.isEmpty()){var Ln=Dn.getCursorPosition(),Pn=In.doc.getLine(Ln.row);if(/^\s*(;|}|$)/.test(Pn.substring(Ln.column)))return{text:"!important",selection:[10,10]}}})};Hn.inherits(zn,Kn),kn.CssBehaviour=zn}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(_n,kn,qn){var Hn=_n("../lib/oop"),Kn=_n("./text").Mode,Qn=_n("./css_highlight_rules").CssHighlightRules,zn=_n("./matching_brace_outdent").MatchingBraceOutdent,Wn=_n("../worker/worker_client").WorkerClient,Nn=_n("./css_completions").CssCompletions,Dn=_n("./behaviour/css").CssBehaviour,In=_n("./folding/cstyle").FoldMode,Bn=function(){this.HighlightRules=Qn,this.$outdent=new zn,this.$behaviour=new Dn,this.$completer=new Nn,this.foldingRules=new In};Hn.inherits(Bn,Kn),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(Ln,Pn,Zn){var Jn=this.$getIndent(Pn),Xn=this.getTokenizer().getLineTokens(Pn,Ln).tokens;if(Xn.length&&Xn[Xn.length-1].type=="comment")return Jn;var mi=Pn.match(/^.*\{\s*$/);return mi&&(Jn+=Zn),Jn},this.checkOutdent=function(Ln,Pn,Zn){return this.$outdent.checkOutdent(Pn,Zn)},this.autoOutdent=function(Ln,Pn,Zn){this.$outdent.autoOutdent(Pn,Zn)},this.getCompletions=function(Ln,Pn,Zn,Jn){return this.$completer.getCompletions(Ln,Pn,Zn,Jn)},this.createWorker=function(Ln){var Pn=new Wn(["ace"],"ace/mode/css_worker","Worker");return Pn.attachToDocument(Ln.getDocument()),Pn.on("annotate",function(Zn){Ln.setAnnotations(Zn.data)}),Pn.on("terminate",function(){Ln.clearAnnotations()}),Pn},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(Bn.prototype),kn.Mode=Bn}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(_n,kn,qn){var Hn=_n("../../lib/oop"),Kn=_n("./fold_mode").FoldMode,Qn=kn.FoldMode=function(zn,Wn){this.defaultMode=zn,this.subModes=Wn};Hn.inherits(Qn,Kn),(function(){this.$getMode=function(zn){typeof zn!="string"&&(zn=zn[0]);for(var Wn in this.subModes)if(zn.indexOf(Wn)===0)return this.subModes[Wn];return null},this.$tryMode=function(zn,Wn,Nn,Dn){var In=this.$getMode(zn);return In?In.getFoldWidget(Wn,Nn,Dn):""},this.getFoldWidget=function(zn,Wn,Nn){return this.$tryMode(zn.getState(Nn-1),zn,Wn,Nn)||this.$tryMode(zn.getState(Nn),zn,Wn,Nn)||this.defaultMode.getFoldWidget(zn,Wn,Nn)},this.getFoldWidgetRange=function(zn,Wn,Nn){var Dn=this.$getMode(zn.getState(Nn-1));return(!Dn||!Dn.getFoldWidget(zn,Wn,Nn))&&(Dn=this.$getMode(zn.getState(Nn))),(!Dn||!Dn.getFoldWidget(zn,Wn,Nn))&&(Dn=this.defaultMode),Dn.getFoldWidgetRange(zn,Wn,Nn)}}).call(Qn.prototype)}),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(_n,kn,qn){var Hn=_n("../../lib/oop"),Kn=_n("./mixed").FoldMode,Qn=_n("./xml").FoldMode,zn=_n("./cstyle").FoldMode,Wn=kn.FoldMode=function(Nn,Dn){Kn.call(this,new Qn(Nn,Dn),{"js-":new zn,"css-":new zn})};Hn.inherits(Wn,Kn)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(_n,kn,qn){function Hn(Pn,Zn){return Pn.type.lastIndexOf(Zn+".xml")>-1}function Kn(Pn,Zn){for(var Jn=new zn(Pn,Zn.row,Zn.column),Xn=Jn.getCurrentToken();Xn&&!Hn(Xn,"tag-name");)Xn=Jn.stepBackward();if(Xn)return Xn.value}function Qn(Pn,Zn){for(var Jn=new zn(Pn,Zn.row,Zn.column),Xn=Jn.getCurrentToken();Xn&&!Hn(Xn,"attribute-name");)Xn=Jn.stepBackward();if(Xn)return Xn.value}var zn=_n("../token_iterator").TokenIterator,Wn=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],Nn=["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"],Dn=Wn.concat(Nn),In={a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},abbr:{},address:{},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},article:{pubdate:1},aside:{},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},b:{},base:{href:1,target:1},bdi:{},bdo:{},blockquote:{cite:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},br:{},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},canvas:{width:1,height:1},caption:{},cite:{},code:{},col:{span:1},colgroup:{span:1},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},data:{},datalist:{},dd:{},del:{cite:1,datetime:1},details:{open:1},dfn:{},dialog:{open:1},div:{},dl:{},dt:{},em:{},embed:{src:1,height:1,width:1,type:1},fieldset:{disabled:1,form:1,name:1},figcaption:{},figure:{},footer:{},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{},header:{},hr:{},html:{manifest:1},i:{},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},ins:{cite:1,datetime:1},kbd:{},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},label:{form:1,for:1},legend:{},li:{value:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},main:{},map:{name:1},mark:{},math:{},menu:{type:1,label:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},nav:{},noscript:{href:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},ol:{start:1,reversed:1},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},output:{for:1,form:1,name:1},p:{},param:{name:1,value:1},pre:{},progress:{value:1,max:1},q:{cite:1},rp:{},rt:{},ruby:{},s:{},samp:{},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},small:{},source:{src:1,type:1,media:1},span:{},strong:{},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},sub:{},sup:{},svg:{},table:{summary:1},tbody:{},td:{headers:1,rowspan:1,colspan:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},tfoot:{},th:{headers:1,rowspan:1,colspan:1,scope:1},thead:{},time:{datetime:1},title:{},tr:{},track:{kind:1,src:1,srclang:1,label:1,default:1},section:{},summary:{},u:{},ul:{},var:{},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},wbr:{}},Bn=Object.keys(In),Ln=function(){};(function(){this.getCompletions=function(Pn,Zn,Jn,Xn){var mi=Zn.getTokenAt(Jn.row,Jn.column);if(!mi)return[];if(Hn(mi,"tag-name")||Hn(mi,"tag-open")||Hn(mi,"end-tag-open"))return this.getTagCompletions(Pn,Zn,Jn,Xn);if(Hn(mi,"tag-whitespace")||Hn(mi,"attribute-name"))return this.getAttributeCompletions(Pn,Zn,Jn,Xn);if(Hn(mi,"attribute-value"))return this.getAttributeValueCompletions(Pn,Zn,Jn,Xn);var ci=Zn.getLine(Jn.row).substr(0,Jn.column);return/&[a-z]*$/i.test(ci)?this.getHTMLEntityCompletions(Pn,Zn,Jn,Xn):[]},this.getTagCompletions=function(Pn,Zn,Jn,Xn){return Bn.map(function(mi){return{value:mi,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(Pn,Zn,Jn,Xn){var mi=Kn(Zn,Jn);if(!mi)return[];var ci=Dn;return mi in In&&(ci=ci.concat(Object.keys(In[mi]))),ci.map(function(oi){return{caption:oi,snippet:oi+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(Pn,Zn,Jn,Xn){var mi=Kn(Zn,Jn),ci=Qn(Zn,Jn);if(!mi)return[];var oi=[];return mi in In&&ci in In[mi]&&typeof In[mi][ci]=="object"&&(oi=Object.keys(In[mi][ci])),oi.map(function(ei){return{caption:ei,snippet:ei,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(Pn,Zn,Jn,Xn){var mi=["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"];return mi.map(function(ci){return{caption:ci,snippet:ci,meta:"html entity",score:1e6}})}}).call(Ln.prototype),kn.HtmlCompletions=Ln}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(_n,kn,qn){var Hn=_n("../lib/oop"),Kn=_n("../lib/lang"),Qn=_n("./text").Mode,zn=_n("./javascript").Mode,Wn=_n("./css").Mode,Nn=_n("./html_highlight_rules").HtmlHighlightRules,Dn=_n("./behaviour/xml").XmlBehaviour,In=_n("./folding/html").FoldMode,Bn=_n("./html_completions").HtmlCompletions,Ln=_n("../worker/worker_client").WorkerClient,Pn=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],Zn=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],Jn=function(Xn){this.fragmentContext=Xn&&Xn.fragmentContext,this.HighlightRules=Nn,this.$behaviour=new Dn,this.$completer=new Bn,this.createModeDelegates({"js-":zn,"css-":Wn}),this.foldingRules=new In(this.voidElements,Kn.arrayToMap(Zn))};Hn.inherits(Jn,Qn),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=Kn.arrayToMap(Pn),this.getNextLineIndent=function(Xn,mi,ci){return this.$getIndent(mi)},this.checkOutdent=function(Xn,mi,ci){return!1},this.getCompletions=function(Xn,mi,ci,oi){return this.$completer.getCompletions(Xn,mi,ci,oi)},this.createWorker=function(Xn){if(this.constructor==Jn){var mi=new Ln(["ace"],"ace/mode/html_worker","Worker");return mi.attachToDocument(Xn.getDocument()),this.fragmentContext&&mi.call("setOptions",[{context:this.fragmentContext}]),mi.on("error",function(ci){Xn.setAnnotations(ci.data)}),mi.on("terminate",function(){Xn.clearAnnotations()}),mi}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(Jn.prototype),kn.Mode=Jn}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(_n,kn,qn){var Hn=_n("../lib/oop"),Kn=_n("./text_highlight_rules").TextHighlightRules,Qn=kn.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",zn=kn.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",Wn=function(){var Nn=this.createKeywordMapper({keyword:Qn,"support.function.builtin":zn,"invalid.deprecated":"debugger"},"identifier"),Dn="(?:(?:[1-9]\\d*)|(?:0))",In="(?:\\.\\d+)",Bn="(?:\\d+)",Ln="(?:(?:"+Bn+"?"+In+")|(?:"+Bn+"\\.))",Pn="(?:(?:"+Ln+"|"+Bn+"))",Zn="(?:"+Pn+"|"+Ln+")",Jn="(?:&"+Bn+")",Xn="[a-zA-Z_][a-zA-Z0-9_]*",mi="(?:"+Xn+"(?==))",ci="(?:\\$(?:SHLVL|\\$|\\!|\\?))",oi="(?:"+Xn+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(ei,fi,gi){var yi=ei[2]=="-"?"indentedHeredoc":"heredoc",pi=ei.split(this.splitRegex);return gi.push(yi,pi[4]),[{type:"constant",value:pi[1]},{type:"text",value:pi[2]},{type:"string",value:pi[3]},{type:"support.class",value:pi[4]},{type:"string",value:pi[5]}]},rules:{heredoc:[{onMatch:function(ei,fi,gi){return ei===gi[1]?(gi.shift(),gi.shift(),this.next=gi[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(ei,fi,gi){return ei===gi[1]?(gi.shift(),gi.shift(),this.next=gi[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(ei,fi){return fi[0]==="heredoc"||fi[0]==="indentedHeredoc"?fi[0]:ei}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:ci},{token:"variable",regex:mi},{include:"variables"},{token:"support.function",regex:oi},{token:"support.function",regex:Jn},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:Zn},{token:"constant.numeric",regex:Dn+"\\b"},{token:Nn,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};Hn.inherits(Wn,Kn),kn.ShHighlightRules=Wn}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle"],function(_n,kn,qn){var Hn=_n("../lib/oop"),Kn=_n("./text").Mode,Qn=_n("./sh_highlight_rules").ShHighlightRules,zn=_n("../range").Range,Wn=_n("./folding/cstyle").FoldMode,Nn=function(){this.HighlightRules=Qn,this.foldingRules=new Wn,this.$behaviour=this.$defaultBehaviour};Hn.inherits(Nn,Kn),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(In,Bn,Ln){var Pn=this.$getIndent(Bn),Zn=this.getTokenizer().getLineTokens(Bn,In),Jn=Zn.tokens;if(Jn.length&&Jn[Jn.length-1].type=="comment")return Pn;if(In=="start"){var Xn=Bn.match(/^.*[\{\(\[:]\s*$/);Xn&&(Pn+=Ln)}return Pn};var Dn={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(In,Bn,Ln){if(Ln!==`\r
977
+ `&&Ln!=="\r"&&Ln!==`
978
+ `)return!1;var Pn=this.getTokenizer().getLineTokens(Bn.trim(),In).tokens;if(!Pn)return!1;do var Zn=Pn.pop();while(Zn&&(Zn.type=="comment"||Zn.type=="text"&&Zn.value.match(/^\s+$/)));return Zn?Zn.type=="keyword"&&Dn[Zn.value]:!1},this.autoOutdent=function(In,Bn,Ln){Ln+=1;var Pn=this.$getIndent(Bn.getLine(Ln)),Zn=Bn.getTabString();Pn.slice(-Zn.length)==Zn&&Bn.remove(new zn(Ln,Pn.length-Zn.length,Ln,Pn.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(Nn.prototype),kn.Mode=Nn}),ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"],function(_n,kn,qn){var Hn=_n("../lib/oop"),Kn=_n("../lib/lang"),Qn=_n("./text").Mode,zn=_n("./xml_highlight_rules").XmlHighlightRules,Wn=_n("./behaviour/xml").XmlBehaviour,Nn=_n("./folding/xml").FoldMode,Dn=_n("../worker/worker_client").WorkerClient,In=function(){this.HighlightRules=zn,this.$behaviour=new Wn,this.foldingRules=new Nn};Hn.inherits(In,Qn),(function(){this.voidElements=Kn.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(Bn){var Ln=new Dn(["ace"],"ace/mode/xml_worker","Worker");return Ln.attachToDocument(Bn.getDocument()),Ln.on("error",function(Pn){Bn.setAnnotations(Pn.data)}),Ln.on("terminate",function(){Bn.clearAnnotations()}),Ln},this.$id="ace/mode/xml"}).call(In.prototype),kn.Mode=In}),ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/behaviour/cstyle","ace/mode/text","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown","ace/mode/javascript","ace/mode/html","ace/mode/sh","ace/mode/sh","ace/mode/xml","ace/mode/css"],function(_n,kn,qn){var Hn=_n("../lib/oop"),Kn=_n("./behaviour/cstyle").CstyleBehaviour,Qn=_n("./text").Mode,zn=_n("./markdown_highlight_rules").MarkdownHighlightRules,Wn=_n("./folding/markdown").FoldMode,Nn=function(){this.HighlightRules=zn,this.createModeDelegates({javascript:_n("./javascript").Mode,html:_n("./html").Mode,bash:_n("./sh").Mode,sh:_n("./sh").Mode,xml:_n("./xml").Mode,css:_n("./css").Mode}),this.foldingRules=new Wn,this.$behaviour=new Kn({braces:!0})};Hn.inherits(Nn,Qn),(function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(Dn,In,Bn){if(Dn=="listblock"){var Ln=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(In);if(!Ln)return"";var Pn=Ln[2];return Pn||(Pn=parseInt(Ln[3],10)+1+"."),Ln[1]+Pn+Ln[4]}return this.$getIndent(In)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(Nn.prototype),kn.Mode=Nn}),function(){ace.require(["ace/mode/markdown"],function(_n){e&&(e.exports=_n)})}()}(pc)),pc.exports}Jb();var gc={exports:{}},zd;function ex(){return zd||(zd=1,function(e,vn){ace.define("ace/theme/twilight-css",["require","exports","module"],function(_n,kn,qn){qn.exports=`.ace-twilight .ace_gutter {
979
+ background: #232323;
980
+ color: #E2E2E2
981
+ }
982
+
983
+ .ace-twilight .ace_print-margin {
984
+ width: 1px;
985
+ background: #232323
986
+ }
987
+
988
+ .ace-twilight {
989
+ background-color: #141414;
990
+ color: #F8F8F8
991
+ }
992
+
993
+ .ace-twilight .ace_cursor {
994
+ color: #A7A7A7
995
+ }
996
+
997
+ .ace-twilight .ace_marker-layer .ace_selection {
998
+ background: rgba(221, 240, 255, 0.20)
999
+ }
1000
+
1001
+ .ace-twilight.ace_multiselect .ace_selection.ace_start {
1002
+ box-shadow: 0 0 3px 0px #141414;
1003
+ }
1004
+
1005
+ .ace-twilight .ace_marker-layer .ace_step {
1006
+ background: rgb(102, 82, 0)
1007
+ }
1008
+
1009
+ .ace-twilight .ace_marker-layer .ace_bracket {
1010
+ margin: -1px 0 0 -1px;
1011
+ border: 1px solid rgba(255, 255, 255, 0.25)
1012
+ }
1013
+
1014
+ .ace-twilight .ace_marker-layer .ace_active-line {
1015
+ background: rgba(255, 255, 255, 0.031)
1016
+ }
1017
+
1018
+ .ace-twilight .ace_gutter-active-line {
1019
+ background-color: rgba(255, 255, 255, 0.031)
1020
+ }
1021
+
1022
+ .ace-twilight .ace_marker-layer .ace_selected-word {
1023
+ border: 1px solid rgba(221, 240, 255, 0.20)
1024
+ }
1025
+
1026
+ .ace-twilight .ace_invisible {
1027
+ color: rgba(255, 255, 255, 0.25)
1028
+ }
1029
+
1030
+ .ace-twilight .ace_keyword,
1031
+ .ace-twilight .ace_meta {
1032
+ color: #CDA869
1033
+ }
1034
+
1035
+ .ace-twilight .ace_constant,
1036
+ .ace-twilight .ace_constant.ace_character,
1037
+ .ace-twilight .ace_constant.ace_character.ace_escape,
1038
+ .ace-twilight .ace_constant.ace_other,
1039
+ .ace-twilight .ace_heading,
1040
+ .ace-twilight .ace_markup.ace_heading,
1041
+ .ace-twilight .ace_support.ace_constant {
1042
+ color: #CF6A4C
1043
+ }
1044
+
1045
+ .ace-twilight .ace_invalid.ace_illegal {
1046
+ color: #F8F8F8;
1047
+ background-color: rgba(86, 45, 86, 0.75)
1048
+ }
1049
+
1050
+ .ace-twilight .ace_invalid.ace_deprecated {
1051
+ text-decoration: underline;
1052
+ font-style: italic;
1053
+ color: #D2A8A1
1054
+ }
1055
+
1056
+ .ace-twilight .ace_support {
1057
+ color: #9B859D
1058
+ }
1059
+
1060
+ .ace-twilight .ace_fold {
1061
+ background-color: #AC885B;
1062
+ border-color: #F8F8F8
1063
+ }
1064
+
1065
+ .ace-twilight .ace_support.ace_function {
1066
+ color: #DAD085
1067
+ }
1068
+
1069
+ .ace-twilight .ace_list,
1070
+ .ace-twilight .ace_markup.ace_list,
1071
+ .ace-twilight .ace_storage {
1072
+ color: #F9EE98
1073
+ }
1074
+
1075
+ .ace-twilight .ace_entity.ace_name.ace_function,
1076
+ .ace-twilight .ace_meta.ace_tag {
1077
+ color: #AC885B
1078
+ }
1079
+
1080
+ .ace-twilight .ace_string {
1081
+ color: #8F9D6A
1082
+ }
1083
+
1084
+ .ace-twilight .ace_string.ace_regexp {
1085
+ color: #E9C062
1086
+ }
1087
+
1088
+ .ace-twilight .ace_comment {
1089
+ font-style: italic;
1090
+ color: #5F5A60
1091
+ }
1092
+
1093
+ .ace-twilight .ace_variable {
1094
+ color: #7587A6
1095
+ }
1096
+
1097
+ .ace-twilight .ace_xml-pe {
1098
+ color: #494949
1099
+ }
1100
+
1101
+ .ace-twilight .ace_indent-guide {
1102
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y
1103
+ }
1104
+
1105
+ .ace-twilight .ace_indent-guide-active {
1106
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
1107
+ }
1108
+ `}),ace.define("ace/theme/twilight",["require","exports","module","ace/theme/twilight-css","ace/lib/dom"],function(_n,kn,qn){kn.isDark=!0,kn.cssClass="ace-twilight",kn.cssText=_n("./twilight-css");var Hn=_n("../lib/dom");Hn.importCssString(kn.cssText,kn.cssClass,!1)}),function(){ace.require(["ace/theme/twilight"],function(_n){e&&(e.exports=_n)})}()}(gc)),gc.exports}ex();var mc={exports:{}},Hd;function tx(){return Hd||(Hd=1,function(e,vn){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(_n,kn,qn){function Hn(ei){var fi=new Date().toLocaleString("en-us",ei);return fi.length==1?"0"+fi:fi}var Kn=_n("./lib/dom"),Qn=_n("./lib/oop"),zn=_n("./lib/event_emitter").EventEmitter,Wn=_n("./lib/lang"),Nn=_n("./range").Range,Dn=_n("./range_list").RangeList,In=_n("./keyboard/hash_handler").HashHandler,Bn=_n("./tokenizer").Tokenizer,Ln=_n("./clipboard"),Pn={CURRENT_WORD:function(ei){return ei.session.getTextRange(ei.session.getWordRange())},SELECTION:function(ei,fi,gi){var yi=ei.session.getTextRange();return gi?yi.replace(/\n\r?([ \t]*\S)/g,`
1109
+ `+gi+"$1"):yi},CURRENT_LINE:function(ei){return ei.session.getLine(ei.getCursorPosition().row)},PREV_LINE:function(ei){return ei.session.getLine(ei.getCursorPosition().row-1)},LINE_INDEX:function(ei){return ei.getCursorPosition().row},LINE_NUMBER:function(ei){return ei.getCursorPosition().row+1},SOFT_TABS:function(ei){return ei.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(ei){return ei.session.getTabSize()},CLIPBOARD:function(ei){return Ln.getText&&Ln.getText()},FILENAME:function(ei){return/[^/\\]*$/.exec(this.FILEPATH(ei))[0]},FILENAME_BASE:function(ei){return/[^/\\]*$/.exec(this.FILEPATH(ei))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(ei){return this.FILEPATH(ei).replace(/[^/\\]*$/,"")},FILEPATH:function(ei){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(ei){var fi=ei.session.$mode||{};return fi.blockComment&&fi.blockComment.start||""},BLOCK_COMMENT_END:function(ei){var fi=ei.session.$mode||{};return fi.blockComment&&fi.blockComment.end||""},LINE_COMMENT:function(ei){var fi=ei.session.$mode||{};return fi.lineCommentStart||""},CURRENT_YEAR:Hn.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:Hn.bind(null,{year:"2-digit"}),CURRENT_MONTH:Hn.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:Hn.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:Hn.bind(null,{month:"short"}),CURRENT_DATE:Hn.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:Hn.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:Hn.bind(null,{weekday:"short"}),CURRENT_HOUR:Hn.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:Hn.bind(null,{minute:"2-digit"}),CURRENT_SECOND:Hn.bind(null,{second:"2-digit"})};Pn.SELECTED_TEXT=Pn.SELECTION;var Zn=function(){function ei(){this.snippetMap={},this.snippetNameMap={},this.variables=Pn}return ei.prototype.getTokenizer=function(){return ei.$tokenizer||this.createTokenizer()},ei.prototype.createTokenizer=function(){function fi(pi){return pi=pi.substr(1),/^\d+$/.test(pi)?[{tabstopId:parseInt(pi,10)}]:[{text:pi}]}function gi(pi){return"(?:[^\\\\"+pi+"]|\\\\.)"}var yi={regex:"/("+gi("/")+"+)/",onMatch:function(pi,$i,si){var ti=si[0];return ti.fmtString=!0,ti.guard=pi.slice(1,-1),ti.flag="",""},next:"formatString"};return ei.$tokenizer=new Bn({start:[{regex:/\\./,onMatch:function(pi,$i,si){var ti=pi[1];return(ti=="}"&&si.length||"`$\\".indexOf(ti)!=-1)&&(pi=ti),[pi]}},{regex:/}/,onMatch:function(pi,$i,si){return[si.length?si.shift():pi]}},{regex:/\$(?:\d+|\w+)/,onMatch:fi},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(pi,$i,si){var ti=fi(pi.substr(1));return si.unshift(ti[0]),ti},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+gi("\\|")+"*\\|",onMatch:function(pi,$i,si){var ti=pi.slice(1,-1).replace(/\\[,|\\]|,/g,function(ai){return ai.length==2?ai[1]:"\0"}).split("\0").map(function(ai){return{value:ai}});return si[0].choices=ti,[ti[0]]},next:"start"},yi,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(pi,$i,si){return si.length&&si[0].expectElse?(si[0].expectElse=!1,si[0].ifEnd={elseEnd:si[0]},[si[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(pi,$i,si){var ti=pi[1];return ti=="}"&&si.length||"`$\\".indexOf(ti)!=-1?pi=ti:ti=="n"?pi=`
1110
+ `:ti=="t"?pi=" ":"ulULE".indexOf(ti)!=-1&&(pi={changeCase:ti,local:ti>"a"}),[pi]}},{regex:"/\\w*}",onMatch:function(pi,$i,si){var ti=si.shift();return ti&&(ti.flag=pi.slice(1,-1)),this.next=ti&&ti.tabstopId?"start":"",[ti||pi]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(pi,$i,si){return[{text:pi.slice(1)}]}},{regex:/\${\w+/,onMatch:function(pi,$i,si){var ti={text:pi.slice(2)};return si.unshift(ti),[ti]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(pi,$i,si){var ti=si.shift();return this.next=ti&&ti.tabstopId?"start":"",[ti||pi]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(pi,$i,si){var ti=si[0];return ti.formatFunction=pi.slice(2,-1),[si.shift()]},next:"formatString"},yi,{regex:/:[\?\-+]?/,onMatch:function(pi,$i,si){pi[1]=="+"&&(si[0].ifEnd=si[0]),pi[1]=="?"&&(si[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),ei.$tokenizer},ei.prototype.tokenizeTmSnippet=function(fi,gi){return this.getTokenizer().getLineTokens(fi,gi).tokens.map(function(yi){return yi.value||yi})},ei.prototype.getVariableValue=function(fi,gi,yi){if(/^\d+$/.test(gi))return(this.variables.__||{})[gi]||"";if(/^[A-Z]\d+$/.test(gi))return(this.variables[gi[0]+"__"]||{})[gi.substr(1)]||"";if(gi=gi.replace(/^TM_/,""),!this.variables.hasOwnProperty(gi))return"";var pi=this.variables[gi];return typeof pi=="function"&&(pi=this.variables[gi](fi,gi,yi)),pi??""},ei.prototype.tmStrFormat=function(fi,gi,yi){if(!gi.fmt)return fi;var pi=gi.flag||"",$i=gi.guard;$i=new RegExp($i,pi.replace(/[^gim]/g,""));var si=typeof gi.fmt=="string"?this.tokenizeTmSnippet(gi.fmt,"formatString"):gi.fmt,ti=this,ai=fi.replace($i,function(){var vi=ti.variables.__;ti.variables.__=[].slice.call(arguments);for(var wi=ti.resolveVariables(si,yi),xi="E",Si=0;Si<wi.length;Si++){var Ei=wi[Si];if(typeof Ei=="object")if(wi[Si]="",Ei.changeCase&&Ei.local){var Ri=wi[Si+1];Ri&&typeof Ri=="string"&&(Ei.changeCase=="u"?wi[Si]=Ri[0].toUpperCase():wi[Si]=Ri[0].toLowerCase(),wi[Si+1]=Ri.substr(1))}else Ei.changeCase&&(xi=Ei.changeCase);else xi=="U"?wi[Si]=Ei.toUpperCase():xi=="L"&&(wi[Si]=Ei.toLowerCase())}return ti.variables.__=vi,wi.join("")});return ai},ei.prototype.tmFormatFunction=function(fi,gi,yi){return gi.formatFunction=="upcase"?fi.toUpperCase():gi.formatFunction=="downcase"?fi.toLowerCase():fi},ei.prototype.resolveVariables=function(fi,gi){function yi(xi){var Si=fi.indexOf(xi,ti+1);Si!=-1&&(ti=Si)}for(var pi=[],$i="",si=!0,ti=0;ti<fi.length;ti++){var ai=fi[ti];if(typeof ai=="string"){pi.push(ai),ai==`
1111
+ `?(si=!0,$i=""):si&&($i=/^\t*/.exec(ai)[0],si=/\S/.test(ai));continue}if(ai){if(si=!1,ai.fmtString){var vi=fi.indexOf(ai,ti+1);vi==-1&&(vi=fi.length),ai.fmt=fi.slice(ti+1,vi),ti=vi}if(ai.text){var wi=this.getVariableValue(gi,ai.text,$i)+"";ai.fmtString&&(wi=this.tmStrFormat(wi,ai,gi)),ai.formatFunction&&(wi=this.tmFormatFunction(wi,ai,gi)),wi&&!ai.ifEnd?(pi.push(wi),yi(ai)):!wi&&ai.ifEnd&&yi(ai.ifEnd)}else ai.elseEnd?yi(ai.elseEnd):(ai.tabstopId!=null||ai.changeCase!=null)&&pi.push(ai)}}return pi},ei.prototype.getDisplayTextForSnippet=function(fi,gi){var yi=Jn.call(this,fi,gi);return yi.text},ei.prototype.insertSnippetForSelection=function(fi,gi,yi){yi===void 0&&(yi={});var pi=Jn.call(this,fi,gi,yi),$i=fi.getSelectionRange(),si=fi.session.replace($i,pi.text),ti=new Xn(fi),ai=fi.inVirtualSelectionMode&&fi.selection.index;ti.addTabstops(pi.tabstops,$i.start,si,ai)},ei.prototype.insertSnippet=function(fi,gi,yi){yi===void 0&&(yi={});var pi=this;if(fi.inVirtualSelectionMode)return pi.insertSnippetForSelection(fi,gi,yi);fi.forEachSelection(function(){pi.insertSnippetForSelection(fi,gi,yi)},null,{keepOrder:!0}),fi.tabstopManager&&fi.tabstopManager.tabNext()},ei.prototype.$getScope=function(fi){var gi=fi.session.$mode.$id||"";if(gi=gi.split("/").pop(),gi==="html"||gi==="php"){gi==="php"&&!fi.session.$mode.inlinePhp&&(gi="html");var yi=fi.getCursorPosition(),pi=fi.session.getState(yi.row);typeof pi=="object"&&(pi=pi[0]),pi.substring&&(pi.substring(0,3)=="js-"?gi="javascript":pi.substring(0,4)=="css-"?gi="css":pi.substring(0,4)=="php-"&&(gi="php"))}return gi},ei.prototype.getActiveScopes=function(fi){var gi=this.$getScope(fi),yi=[gi],pi=this.snippetMap;return pi[gi]&&pi[gi].includeScopes&&yi.push.apply(yi,pi[gi].includeScopes),yi.push("_"),yi},ei.prototype.expandWithTab=function(fi,gi){var yi=this,pi=fi.forEachSelection(function(){return yi.expandSnippetForSelection(fi,gi)},null,{keepOrder:!0});return pi&&fi.tabstopManager&&fi.tabstopManager.tabNext(),pi},ei.prototype.expandSnippetForSelection=function(fi,gi){var yi=fi.getCursorPosition(),pi=fi.session.getLine(yi.row),$i=pi.substring(0,yi.column),si=pi.substr(yi.column),ti=this.snippetMap,ai;return this.getActiveScopes(fi).some(function(vi){var wi=ti[vi];return wi&&(ai=this.findMatchingSnippet(wi,$i,si)),!!ai},this),ai?(gi&&gi.dryRun||(fi.session.doc.removeInLine(yi.row,yi.column-ai.replaceBefore.length,yi.column+ai.replaceAfter.length),this.variables.M__=ai.matchBefore,this.variables.T__=ai.matchAfter,this.insertSnippetForSelection(fi,ai.content),this.variables.M__=this.variables.T__=null),!0):!1},ei.prototype.findMatchingSnippet=function(fi,gi,yi){for(var pi=fi.length;pi--;){var $i=fi[pi];if(!($i.startRe&&!$i.startRe.test(gi))&&!($i.endRe&&!$i.endRe.test(yi))&&!(!$i.startRe&&!$i.endRe))return $i.matchBefore=$i.startRe?$i.startRe.exec(gi):[""],$i.matchAfter=$i.endRe?$i.endRe.exec(yi):[""],$i.replaceBefore=$i.triggerRe?$i.triggerRe.exec(gi)[0]:"",$i.replaceAfter=$i.endTriggerRe?$i.endTriggerRe.exec(yi)[0]:"",$i}},ei.prototype.register=function(fi,gi){function yi(vi){return vi&&!/^\^?\(.*\)\$?$|^\\b$/.test(vi)&&(vi="(?:"+vi+")"),vi||""}function pi(vi,wi,xi){return vi=yi(vi),wi=yi(wi),vi=wi+vi,vi&&vi[vi.length-1]!="$"&&(vi+="$"),new RegExp(vi)}function $i(vi){vi.scope||(vi.scope=gi||"_"),gi=vi.scope,si[gi]||(si[gi]=[],ti[gi]={});var wi=ti[gi];if(vi.name){var xi=wi[vi.name];xi&&ai.unregister(xi),wi[vi.name]=vi}si[gi].push(vi),vi.prefix&&(vi.tabTrigger=vi.prefix),!vi.content&&vi.body&&(vi.content=Array.isArray(vi.body)?vi.body.join(`
1112
+ `):vi.body),vi.tabTrigger&&!vi.trigger&&(!vi.guard&&/^\w/.test(vi.tabTrigger)&&(vi.guard="\\b"),vi.trigger=Wn.escapeRegExp(vi.tabTrigger)),!(!vi.trigger&&!vi.guard&&!vi.endTrigger&&!vi.endGuard)&&(vi.startRe=pi(vi.trigger,vi.guard),vi.triggerRe=new RegExp(vi.trigger),vi.endRe=pi(vi.endTrigger,vi.endGuard),vi.endTriggerRe=new RegExp(vi.endTrigger))}var si=this.snippetMap,ti=this.snippetNameMap,ai=this;fi||(fi=[]),Array.isArray(fi)?fi.forEach($i):Object.keys(fi).forEach(function(vi){$i(fi[vi])}),this._signal("registerSnippets",{scope:gi})},ei.prototype.unregister=function(fi,gi){function yi(si){var ti=$i[si.scope||gi];if(ti&&ti[si.name]){delete ti[si.name];var ai=pi[si.scope||gi],vi=ai&&ai.indexOf(si);vi>=0&&ai.splice(vi,1)}}var pi=this.snippetMap,$i=this.snippetNameMap;fi.content?yi(fi):Array.isArray(fi)&&fi.forEach(yi)},ei.prototype.parseSnippetFile=function(fi){fi=fi.replace(/\r/g,"");for(var gi=[],yi={},pi=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,$i;$i=pi.exec(fi);){if($i[1])try{yi=JSON.parse($i[1]),gi.push(yi)}catch{}if($i[4])yi.content=$i[4].replace(/^\t/gm,""),gi.push(yi),yi={};else{var si=$i[2],ti=$i[3];if(si=="regex"){var ai=/\/((?:[^\/\\]|\\.)*)|$/g;yi.guard=ai.exec(ti)[1],yi.trigger=ai.exec(ti)[1],yi.endTrigger=ai.exec(ti)[1],yi.endGuard=ai.exec(ti)[1]}else si=="snippet"?(yi.tabTrigger=ti.match(/^\S*/)[0],yi.name||(yi.name=ti)):si&&(yi[si]=ti)}}return gi},ei.prototype.getSnippetByName=function(fi,gi){var yi=this.snippetNameMap,pi;return this.getActiveScopes(gi).some(function($i){var si=yi[$i];return si&&(pi=si[fi]),!!pi},this),pi},ei}();Qn.implement(Zn.prototype,zn);var Jn=function(ei,fi,gi){function yi(Pi){for(var Zi=[],lr=0;lr<Pi.length;lr++){var gr=Pi[lr];if(typeof gr=="object"){if(wi[gr.tabstopId])continue;var or=Pi.lastIndexOf(gr,lr-1);gr=Zi[or]||{tabstopId:gr.tabstopId}}Zi[lr]=gr}return Zi}gi===void 0&&(gi={});var pi=ei.getCursorPosition(),$i=ei.session.getLine(pi.row),si=ei.session.getTabString(),ti=$i.match(/^\s*/)[0];pi.column<ti.length&&(ti=ti.slice(0,pi.column)),fi=fi.replace(/\r/g,"");var ai=this.tokenizeTmSnippet(fi);ai=this.resolveVariables(ai,ei),ai=ai.map(function(Pi){return Pi==`
1113
+ `&&!gi.excludeExtraIndent?Pi+ti:typeof Pi=="string"?Pi.replace(/\t/g,si):Pi});var vi=[];ai.forEach(function(Pi,Zi){if(typeof Pi=="object"){var lr=Pi.tabstopId,gr=vi[lr];if(gr||(gr=vi[lr]=[],gr.index=lr,gr.value="",gr.parents={}),gr.indexOf(Pi)===-1){Pi.choices&&!gr.choices&&(gr.choices=Pi.choices),gr.push(Pi);var or=ai.indexOf(Pi,Zi+1);if(or!==-1){var yr=ai.slice(Zi+1,or),io=yr.some(function(Po){return typeof Po=="object"});io&&!gr.value?gr.value=yr:yr.length&&(!gr.value||typeof gr.value!="string")&&(gr.value=yr.join(""))}}}}),vi.forEach(function(Pi){Pi.length=0});for(var wi={},xi=0;xi<ai.length;xi++){var Si=ai[xi];if(typeof Si=="object"){var Ei=Si.tabstopId,Ri=vi[Ei],Ni=ai.indexOf(Si,xi+1);if(wi[Ei]){wi[Ei]===Si&&(delete wi[Ei],Object.keys(wi).forEach(function(Pi){Ri.parents[Pi]=!0}));continue}wi[Ei]=Si;var Fi=Ri.value;typeof Fi!="string"?Fi=yi(Fi):Si.fmt&&(Fi=this.tmStrFormat(Fi,Si,ei)),ai.splice.apply(ai,[xi+1,Math.max(0,Ni-xi)].concat(Fi,Si)),Ri.indexOf(Si)===-1&&Ri.push(Si)}}var Ii=0,Vi=0,Gi="";return ai.forEach(function(Pi){if(typeof Pi=="string"){var Zi=Pi.split(`
1114
+ `);Zi.length>1?(Vi=Zi[Zi.length-1].length,Ii+=Zi.length-1):Vi+=Pi.length,Gi+=Pi}else Pi&&(Pi.start?Pi.end={row:Ii,column:Vi}:Pi.start={row:Ii,column:Vi})}),{text:Gi,tabstops:vi,tokens:ai}},Xn=function(){function ei(fi){if(this.index=0,this.ranges=[],this.tabstops=[],fi.tabstopManager)return fi.tabstopManager;fi.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=Wn.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(fi)}return ei.prototype.attach=function(fi){this.$openTabstops=null,this.selectedTabstop=null,this.editor=fi,this.session=fi.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)},ei.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},ei.prototype.onChange=function(fi){for(var gi=fi.action[0]=="r",yi=this.selectedTabstop||{},pi=yi.parents||{},$i=this.tabstops.slice(),si=0;si<$i.length;si++){var ti=$i[si],ai=ti==yi||pi[ti.index];if(ti.rangeList.$bias=ai?0:1,fi.action=="remove"&&ti!==yi){var vi=ti.parents&&ti.parents[yi.index],wi=ti.rangeList.pointIndex(fi.start,vi);wi=wi<0?-wi-1:wi+1;var xi=ti.rangeList.pointIndex(fi.end,vi);xi=xi<0?-xi-1:xi-1;for(var Si=ti.rangeList.ranges.slice(wi,xi),Ei=0;Ei<Si.length;Ei++)this.removeRange(Si[Ei])}ti.rangeList.$onChange(fi)}var Ri=this.session;!this.$inChange&&gi&&Ri.getLength()==1&&!Ri.getValue()&&this.detach()},ei.prototype.updateLinkedFields=function(){var fi=this.selectedTabstop;if(!(!fi||!fi.hasLinkedRanges||!fi.firstNonLinked)){this.$inChange=!0;for(var gi=this.session,yi=gi.getTextRange(fi.firstNonLinked),pi=0;pi<fi.length;pi++){var $i=fi[pi];if($i.linked){var si=$i.original,ti=kn.snippetManager.tmStrFormat(yi,si,this.editor);gi.replace($i,ti)}}this.$inChange=!1}},ei.prototype.onAfterExec=function(fi){fi.command&&!fi.command.readOnly&&this.updateLinkedFields()},ei.prototype.onChangeSelection=function(){if(this.editor){for(var fi=this.editor.selection.lead,gi=this.editor.selection.anchor,yi=this.editor.selection.isEmpty(),pi=0;pi<this.ranges.length;pi++)if(!this.ranges[pi].linked){var $i=this.ranges[pi].contains(fi.row,fi.column),si=yi||this.ranges[pi].contains(gi.row,gi.column);if($i&&si)return}this.detach()}},ei.prototype.onChangeSession=function(){this.detach()},ei.prototype.tabNext=function(fi){var gi=this.tabstops.length,yi=this.index+(fi||1);yi=Math.min(Math.max(yi,1),gi),yi==gi&&(yi=0),this.selectTabstop(yi),this.updateTabstopMarkers(),yi===0&&this.detach()},ei.prototype.selectTabstop=function(fi){this.$openTabstops=null;var gi=this.tabstops[this.index];if(gi&&this.addTabstopMarkers(gi),this.index=fi,gi=this.tabstops[this.index],!(!gi||!gi.length)){this.selectedTabstop=gi;var yi=gi.firstNonLinked||gi;if(gi.choices&&(yi.cursor=yi.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(yi);else{var pi=this.editor.multiSelect;pi.toSingleRange(yi);for(var $i=0;$i<gi.length;$i++)gi.hasLinkedRanges&&gi[$i].linked||pi.addRange(gi[$i].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},ei.prototype.addTabstops=function(fi,gi,yi){var pi=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!fi[0]){var $i=Nn.fromPoints(yi,yi);ci($i.start,gi),ci($i.end,gi),fi[0]=[$i],fi[0].index=0}var si=this.index,ti=[si+1,0],ai=this.ranges,vi=this.snippetId=(this.snippetId||0)+1;fi.forEach(function(wi,xi){var Si=this.$openTabstops[xi]||wi;Si.snippetId=vi;for(var Ei=0;Ei<wi.length;Ei++){var Ri=wi[Ei],Ni=Nn.fromPoints(Ri.start,Ri.end||Ri.start);mi(Ni.start,gi),mi(Ni.end,gi),Ni.original=Ri,Ni.tabstop=Si,ai.push(Ni),Si!=wi?Si.unshift(Ni):Si[Ei]=Ni,Ri.fmtString||Si.firstNonLinked&&pi?(Ni.linked=!0,Si.hasLinkedRanges=!0):Si.firstNonLinked||(Si.firstNonLinked=Ni)}Si.firstNonLinked||(Si.hasLinkedRanges=!1),Si===wi&&(ti.push(Si),this.$openTabstops[xi]=Si),this.addTabstopMarkers(Si),Si.rangeList=Si.rangeList||new Dn,Si.rangeList.$bias=0,Si.rangeList.addList(Si)},this),ti.length>2&&(this.tabstops.length&&ti.push(ti.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,ti))},ei.prototype.addTabstopMarkers=function(fi){var gi=this.session;fi.forEach(function(yi){yi.markerId||(yi.markerId=gi.addMarker(yi,"ace_snippet-marker","text"))})},ei.prototype.removeTabstopMarkers=function(fi){var gi=this.session;fi.forEach(function(yi){gi.removeMarker(yi.markerId),yi.markerId=null})},ei.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var fi=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&fi--,this.tabstops.forEach(function(gi){gi.snippetId===fi?this.addTabstopMarkers(gi):this.removeTabstopMarkers(gi)},this)}},ei.prototype.removeRange=function(fi){var gi=fi.tabstop.indexOf(fi);gi!=-1&&fi.tabstop.splice(gi,1),gi=this.ranges.indexOf(fi),gi!=-1&&this.ranges.splice(gi,1),gi=fi.tabstop.rangeList.ranges.indexOf(fi),gi!=-1&&fi.tabstop.splice(gi,1),this.session.removeMarker(fi.markerId),fi.tabstop.length||(gi=this.tabstops.indexOf(fi.tabstop),gi!=-1&&this.tabstops.splice(gi,1),this.tabstops.length||this.detach())},ei}();Xn.prototype.keyboardHandler=new In,Xn.prototype.keyboardHandler.bindKeys({Tab:function(ei){kn.snippetManager&&kn.snippetManager.expandWithTab(ei)||(ei.tabstopManager.tabNext(1),ei.renderer.scrollCursorIntoView())},"Shift-Tab":function(ei){ei.tabstopManager.tabNext(-1),ei.renderer.scrollCursorIntoView()},Esc:function(ei){ei.tabstopManager.detach()}});var mi=function(ei,fi){ei.row==0&&(ei.column+=fi.column),ei.row+=fi.row},ci=function(ei,fi){ei.row==fi.row&&(ei.column-=fi.column),ei.row-=fi.row};Kn.importCssString(`
1115
+ .ace_snippet-marker {
1116
+ -moz-box-sizing: border-box;
1117
+ box-sizing: border-box;
1118
+ background: rgba(194, 193, 208, 0.09);
1119
+ border: 1px dotted rgba(211, 208, 235, 0.62);
1120
+ position: absolute;
1121
+ }`,"snippets.css",!1),kn.snippetManager=new Zn;var oi=_n("./editor").Editor;(function(){this.insertSnippet=function(ei,fi){return kn.snippetManager.insertSnippet(this,ei,fi)},this.expandSnippet=function(ei){return kn.snippetManager.expandWithTab(this,ei)}}).call(oi.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(_n,kn,qn){var Hn=_n("../virtual_renderer").VirtualRenderer,Kn=_n("../editor").Editor,Qn=_n("../range").Range,zn=_n("../lib/event"),Wn=_n("../lib/lang"),Nn=_n("../lib/dom"),Dn=_n("../config").nls,In=_n("./../lib/useragent"),Bn=function(mi){return"suggest-aria-id:".concat(mi)},Ln=In.isSafari?"menu":"listbox",Pn=In.isSafari?"menuitem":"option",Zn=In.isSafari?"aria-current":"aria-selected",Jn=function(mi){var ci=new Hn(mi);ci.$maxLines=4;var oi=new Kn(ci);return oi.setHighlightActiveLine(!1),oi.setShowPrintMargin(!1),oi.renderer.setShowGutter(!1),oi.renderer.setHighlightGutterLine(!1),oi.$mouseHandler.$focusTimeout=0,oi.$highlightTagPending=!0,oi},Xn=function(){function mi(ci){var oi=Nn.createElement("div"),ei=Jn(oi);ci&&ci.appendChild(oi),oi.style.display="none",ei.renderer.content.style.cursor="default",ei.renderer.setStyle("ace_autocomplete"),ei.renderer.$textLayer.element.setAttribute("role",Ln),ei.renderer.$textLayer.element.setAttribute("aria-roledescription",Dn("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),ei.renderer.$textLayer.element.setAttribute("aria-label",Dn("autocomplete.popup.aria-label","Autocomplete suggestions")),ei.renderer.textarea.setAttribute("aria-hidden","true"),ei.setOption("displayIndentGuides",!1),ei.setOption("dragDelay",150);var fi=function(){};ei.focus=fi,ei.$isFocused=!0,ei.renderer.$cursorLayer.restartTimer=fi,ei.renderer.$cursorLayer.element.style.opacity="0",ei.renderer.$maxLines=8,ei.renderer.$keepTextAreaAtCursor=!1,ei.setHighlightActiveLine(!1),ei.session.highlight(""),ei.session.$searchHighlight.clazz="ace_highlight-marker",ei.on("mousedown",function(ai){var vi=ai.getDocumentPosition();ei.selection.moveToPosition(vi),pi.start.row=pi.end.row=vi.row,ai.stop()});var gi,yi=new Qn(-1,0,-1,1/0),pi=new Qn(-1,0,-1,1/0);pi.id=ei.session.addMarker(pi,"ace_active-line","fullLine"),ei.setSelectOnHover=function(ai){ai?yi.id&&(ei.session.removeMarker(yi.id),yi.id=null):yi.id=ei.session.addMarker(yi,"ace_line-hover","fullLine")},ei.setSelectOnHover(!1),ei.on("mousemove",function(ai){if(!gi){gi=ai;return}if(!(gi.x==ai.x&&gi.y==ai.y)){gi=ai,gi.scrollTop=ei.renderer.scrollTop,ei.isMouseOver=!0;var vi=gi.getDocumentPosition().row;yi.start.row!=vi&&(yi.id||ei.setRow(vi),si(vi))}}),ei.renderer.on("beforeRender",function(){if(gi&&yi.start.row!=-1){gi.$pos=null;var ai=gi.getDocumentPosition().row;yi.id||ei.setRow(ai),si(ai,!0)}}),ei.renderer.on("afterRender",function(){var ai=ei.getRow(),vi=ei.renderer.$textLayer,wi=vi.element.childNodes[ai-vi.config.firstRow],xi=document.activeElement;if(wi!==ei.selectedNode&&ei.selectedNode&&(Nn.removeCssClass(ei.selectedNode,"ace_selected"),xi.removeAttribute("aria-activedescendant"),ei.selectedNode.removeAttribute(Zn),ei.selectedNode.removeAttribute("id")),ei.selectedNode=wi,wi){Nn.addCssClass(wi,"ace_selected");var Si=Bn(ai);wi.id=Si,vi.element.setAttribute("aria-activedescendant",Si),xi.setAttribute("aria-activedescendant",Si),wi.setAttribute("role",Pn),wi.setAttribute("aria-roledescription",Dn("autocomplete.popup.item.aria-roledescription","item")),wi.setAttribute("aria-label",ei.getData(ai).caption||ei.getData(ai).value),wi.setAttribute("aria-setsize",ei.data.length),wi.setAttribute("aria-posinset",ai+1),wi.setAttribute("aria-describedby","doc-tooltip"),wi.setAttribute(Zn,"true")}});var $i=function(){si(-1)},si=function(ai,vi){ai!==yi.start.row&&(yi.start.row=yi.end.row=ai,vi||ei.session._emit("changeBackMarker"),ei._emit("changeHoverMarker"))};ei.getHoveredRow=function(){return yi.start.row},zn.addListener(ei.container,"mouseout",function(){ei.isMouseOver=!1,$i()}),ei.on("hide",$i),ei.on("changeSelection",$i),ei.session.doc.getLength=function(){return ei.data.length},ei.session.doc.getLine=function(ai){var vi=ei.data[ai];return typeof vi=="string"?vi:vi&&vi.value||""};var ti=ei.session.bgTokenizer;return ti.$tokenizeRow=function(ai){function vi(Pi,Zi){Pi&&xi.push({type:(wi.className||"")+(Zi||""),value:Pi})}var wi=ei.data[ai],xi=[];if(!wi)return xi;typeof wi=="string"&&(wi={value:wi});for(var Si=wi.caption||wi.value||wi.name,Ei=Si.toLowerCase(),Ri=(ei.filterText||"").toLowerCase(),Ni=0,Fi=0,Ii=0;Ii<=Ri.length;Ii++)if(Ii!=Fi&&(wi.matchMask&1<<Ii||Ii==Ri.length)){var Vi=Ri.slice(Fi,Ii);Fi=Ii;var Gi=Ei.indexOf(Vi,Ni);if(Gi==-1)continue;vi(Si.slice(Ni,Gi),""),Ni=Gi+Vi.length,vi(Si.slice(Gi,Ni),"completion-highlight")}return vi(Si.slice(Ni,Si.length),""),xi.push({type:"completion-spacer",value:" "}),wi.meta&&xi.push({type:"completion-meta",value:wi.meta}),wi.message&&xi.push({type:"completion-message",value:wi.message}),xi},ti.$updateOnChange=fi,ti.start=fi,ei.session.$computeWidth=function(){return this.screenWidth=0},ei.isOpen=!1,ei.isTopdown=!1,ei.autoSelect=!0,ei.filterText="",ei.isMouseOver=!1,ei.data=[],ei.setData=function(ai,vi){ei.filterText=vi||"",ei.setValue(Wn.stringRepeat(`
1122
+ `,ai.length),-1),ei.data=ai||[],ei.setRow(0)},ei.getData=function(ai){return ei.data[ai]},ei.getRow=function(){return pi.start.row},ei.setRow=function(ai){ai=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,ai)),pi.start.row!=ai&&(ei.selection.clearSelection(),pi.start.row=pi.end.row=ai||0,ei.session._emit("changeBackMarker"),ei.moveCursorTo(ai||0,0),ei.isOpen&&ei._signal("select"))},ei.on("changeSelection",function(){ei.isOpen&&ei.setRow(ei.selection.lead.row),ei.renderer.scrollCursorIntoView()}),ei.hide=function(){this.container.style.display="none",ei.anchorPos=null,ei.anchor=null,ei.isOpen&&(ei.isOpen=!1,this._signal("hide"))},ei.tryShow=function(ai,vi,wi,xi){if(!xi&&ei.isOpen&&ei.anchorPos&&ei.anchor&&ei.anchorPos.top===ai.top&&ei.anchorPos.left===ai.left&&ei.anchor===wi)return!0;var Si=this.container,Ei=window.innerHeight,Ri=window.innerWidth,Ni=this.renderer,Fi=Ni.$maxLines*vi*1.4,Ii={top:0,bottom:0,left:0},Vi=Ei-ai.top-3*this.$borderSize-vi,Gi=ai.top-3*this.$borderSize;wi||(Gi<=Vi||Vi>=Fi?wi="bottom":wi="top"),wi==="top"?(Ii.bottom=ai.top-this.$borderSize,Ii.top=Ii.bottom-Fi):wi==="bottom"&&(Ii.top=ai.top+vi+this.$borderSize,Ii.bottom=Ii.top+Fi);var Pi=Ii.top>=0&&Ii.bottom<=Ei;if(!xi&&!Pi)return!1;Pi?Ni.$maxPixelHeight=null:wi==="top"?Ni.$maxPixelHeight=Gi:Ni.$maxPixelHeight=Vi,wi==="top"?(Si.style.top="",Si.style.bottom=Ei-Ii.bottom+"px",ei.isTopdown=!1):(Si.style.top=Ii.top+"px",Si.style.bottom="",ei.isTopdown=!0),Si.style.display="";var Zi=ai.left;return Zi+Si.offsetWidth>Ri&&(Zi=Ri-Si.offsetWidth),Si.style.left=Zi+"px",Si.style.right="",ei.isOpen||(ei.isOpen=!0,this._signal("show"),gi=null),ei.anchorPos=ai,ei.anchor=wi,!0},ei.show=function(ai,vi,wi){this.tryShow(ai,vi,wi?"bottom":void 0,!0)},ei.goTo=function(ai){var vi=this.getRow(),wi=this.session.getLength()-1;switch(ai){case"up":vi=vi<=0?wi:vi-1;break;case"down":vi=vi>=wi?-1:vi+1;break;case"start":vi=0;break;case"end":vi=wi}this.setRow(vi)},ei.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},ei.$imageSize=0,ei.$borderSize=1,ei}return mi}();Nn.importCssString(`
1123
+ .ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
1124
+ background-color: #CAD6FA;
1125
+ z-index: 1;
1126
+ }
1127
+ .ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
1128
+ background-color: #3a674e;
1129
+ }
1130
+ .ace_editor.ace_autocomplete .ace_line-hover {
1131
+ border: 1px solid #abbffe;
1132
+ margin-top: -1px;
1133
+ background: rgba(233,233,253,0.4);
1134
+ position: absolute;
1135
+ z-index: 2;
1136
+ }
1137
+ .ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
1138
+ border: 1px solid rgba(109, 150, 13, 0.8);
1139
+ background: rgba(58, 103, 78, 0.62);
1140
+ }
1141
+ .ace_completion-meta {
1142
+ opacity: 0.5;
1143
+ margin-left: 0.9em;
1144
+ }
1145
+ .ace_completion-message {
1146
+ margin-left: 0.9em;
1147
+ color: blue;
1148
+ }
1149
+ .ace_editor.ace_autocomplete .ace_completion-highlight{
1150
+ color: #2d69c7;
1151
+ }
1152
+ .ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
1153
+ color: #93ca12;
1154
+ }
1155
+ .ace_editor.ace_autocomplete {
1156
+ width: 300px;
1157
+ z-index: 200000;
1158
+ border: 1px lightgray solid;
1159
+ position: fixed;
1160
+ box-shadow: 2px 3px 5px rgba(0,0,0,.2);
1161
+ line-height: 1.4;
1162
+ background: #fefefe;
1163
+ color: #111;
1164
+ }
1165
+ .ace_dark.ace_editor.ace_autocomplete {
1166
+ border: 1px #484747 solid;
1167
+ box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
1168
+ line-height: 1.4;
1169
+ background: #25282c;
1170
+ color: #c1c1c1;
1171
+ }
1172
+ .ace_autocomplete .ace_text-layer {
1173
+ width: calc(100% - 8px);
1174
+ }
1175
+ .ace_autocomplete .ace_line {
1176
+ display: flex;
1177
+ align-items: center;
1178
+ }
1179
+ .ace_autocomplete .ace_line > * {
1180
+ min-width: 0;
1181
+ flex: 0 0 auto;
1182
+ }
1183
+ .ace_autocomplete .ace_line .ace_ {
1184
+ flex: 0 1 auto;
1185
+ overflow: hidden;
1186
+ text-overflow: ellipsis;
1187
+ }
1188
+ .ace_autocomplete .ace_completion-spacer {
1189
+ flex: 1;
1190
+ }
1191
+ .ace_autocomplete.ace_loading:after {
1192
+ content: "";
1193
+ position: absolute;
1194
+ top: 0px;
1195
+ height: 2px;
1196
+ width: 8%;
1197
+ background: blue;
1198
+ z-index: 100;
1199
+ animation: ace_progress 3s infinite linear;
1200
+ animation-delay: 300ms;
1201
+ transform: translateX(-100%) scaleX(1);
1202
+ }
1203
+ @keyframes ace_progress {
1204
+ 0% { transform: translateX(-100%) scaleX(1) }
1205
+ 50% { transform: translateX(625%) scaleX(2) }
1206
+ 100% { transform: translateX(1500%) scaleX(3) }
1207
+ }
1208
+ @media (prefers-reduced-motion) {
1209
+ .ace_autocomplete.ace_loading:after {
1210
+ transform: translateX(625%) scaleX(2);
1211
+ animation: none;
1212
+ }
1213
+ }
1214
+ `,"autocompletion.css",!1),kn.AcePopup=Xn,kn.$singleLineEditor=Jn,kn.getAriaId=Bn}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(_n,kn,qn){var Hn=function(){function Kn(Qn){this.editor=Qn,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return Kn.prototype.setScreenReaderContent=function(Qn){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var Wn=this.popup.getRow(),Nn=this.popup.renderer.$textLayer,Dn=Nn.element.childNodes[Wn-Nn.config.firstRow];if(Dn){for(var In="doc-tooltip ",Bn=0;Bn<this._lines.length;Bn++)In+="ace-inline-screenreader-line-".concat(Bn," ");Dn.setAttribute("aria-describedby",In)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=Qn.split(/\r\n|\r|\n/);var zn=this.createCodeBlock();this.screenReaderDiv.appendChild(zn)},Kn.prototype.destroy=function(){this.screenReaderDiv.remove()},Kn.prototype.createCodeBlock=function(){var Qn=document.createElement("pre");Qn.setAttribute("id","ace-inline-screenreader");for(var zn=0;zn<this._lines.length;zn++){var Wn=document.createElement("code");Wn.setAttribute("id","ace-inline-screenreader-line-".concat(zn));var Nn=document.createTextNode(this._lines[zn]);Wn.appendChild(Nn),Qn.appendChild(Wn)}return Qn},Kn}();kn.AceInlineScreenReader=Hn}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(_n,kn,qn){var Hn=_n("../snippets").snippetManager,Kn=_n("./inline_screenreader").AceInlineScreenReader,Qn=function(){function zn(){this.editor=null}return zn.prototype.show=function(Wn,Nn,Dn){if(Dn=Dn||"",Wn&&this.editor&&this.editor!==Wn&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!Wn||!Nn)return!1;this.inlineScreenReader||(this.inlineScreenReader=new Kn(Wn));var In=Nn.snippet?Hn.getDisplayTextForSnippet(Wn,Nn.snippet):Nn.value;return Nn.hideInlinePreview||!In||!In.startsWith(Dn)?!1:(this.editor=Wn,this.inlineScreenReader.setScreenReaderContent(In),In=In.slice(Dn.length),In===""?Wn.removeGhostText():Wn.setGhostText(In),!0)},zn.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},zn.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},zn.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},zn}();kn.AceInline=Qn}),ace.define("ace/autocomplete/util",["require","exports","module"],function(_n,kn,qn){kn.parForEach=function(Kn,Qn,zn){var Wn=0,Nn=Kn.length;Nn===0&&zn();for(var Dn=0;Dn<Nn;Dn++)Qn(Kn[Dn],function(In,Bn){Wn++,Wn===Nn&&zn(In,Bn)})};var Hn=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;kn.retrievePrecedingIdentifier=function(Kn,Qn,zn){zn=zn||Hn;for(var Wn=[],Nn=Qn-1;Nn>=0&&zn.test(Kn[Nn]);Nn--)Wn.push(Kn[Nn]);return Wn.reverse().join("")},kn.retrieveFollowingIdentifier=function(Kn,Qn,zn){zn=zn||Hn;for(var Wn=[],Nn=Qn;Nn<Kn.length&&zn.test(Kn[Nn]);Nn++)Wn.push(Kn[Nn]);return Wn},kn.getCompletionPrefix=function(Kn){var Qn=Kn.getCursorPosition(),zn=Kn.session.getLine(Qn.row),Wn;return Kn.completers.forEach((function(Nn){Nn.identifierRegexps&&Nn.identifierRegexps.forEach((function(Dn){!Wn&&Dn&&(Wn=this.retrievePrecedingIdentifier(zn,Qn.column,Dn))}).bind(this))}).bind(this)),Wn||this.retrievePrecedingIdentifier(zn,Qn.column)},kn.triggerAutocomplete=function(Kn,zn){var zn=zn??Kn.session.getPrecedingCharacter();return Kn.completers.some(function(Wn){if(Wn.triggerCharacters&&Array.isArray(Wn.triggerCharacters))return Wn.triggerCharacters.includes(zn)})}}),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(_n,kn,qn){var Hn=_n("./keyboard/hash_handler").HashHandler,Kn=_n("./autocomplete/popup").AcePopup,Qn=_n("./autocomplete/inline").AceInline,zn=_n("./autocomplete/popup").getAriaId,Wn=_n("./autocomplete/util"),Nn=_n("./lib/lang"),Dn=_n("./lib/dom"),In=_n("./snippets").snippetManager,Bn=_n("./config"),Ln=_n("./lib/event"),Pn=_n("./lib/scroll").preventParentScroll,Zn=function(ci,oi){oi.completer&&oi.completer.destroy()},Jn=function(){function ci(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new Hn,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=Nn.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=Nn.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=Nn.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=Nn.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=Nn.delayedCall((function(){var oi=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!oi||this.editor.completers.length===0||(this.completions=new mi(ci.completionsForLoading),this.openPopup(this.editor,oi.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(ci,"completionsForLoading",{get:function(){return[{caption:Bn.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),ci.prototype.$init=function(){return this.popup=new Kn(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(oi){this.insertMatch(),oi.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)),Ln.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},ci.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new Qn,this.inlineRenderer},ci.prototype.getPopup=function(){return this.popup||this.$init()},ci.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},ci.prototype.$seen=function(oi){!this.hasSeen.has(oi)&&oi&&oi.completer&&oi.completer.onSeen&&typeof oi.completer.onSeen=="function"&&(oi.completer.onSeen(this.editor,oi),this.hasSeen.add(oi))},ci.prototype.$onPopupChange=function(oi){if(this.inlineRenderer&&this.inlineEnabled){var ei=oi?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(ei),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},ci.prototype.$updateGhostText=function(oi){var ei=this.base.row,fi=this.base.column,gi=this.editor.getCursorPosition().column,yi=this.editor.session.getLine(ei).slice(fi,gi);this.inlineRenderer.show(this.editor,oi,yi)?this.$seen(oi):this.inlineRenderer.hide()},ci.prototype.$onPopupRender=function(){var oi=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var ei=this.popup.getFirstVisibleRow();ei<=this.popup.getLastVisibleRow();ei++){var fi=this.popup.getData(ei);fi&&(!oi||fi.hideInlinePreview)&&this.$seen(fi)}},ci.prototype.$onPopupShow=function(oi){this.$onPopupChange(oi),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},ci.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var oi=this.editor.container.parentNode,ei=[];oi;)ei.push(oi),oi.addEventListener("scroll",this.onLayoutChange,{passive:!0}),oi=oi.parentNode;this.$elements=ei}},ci.prototype.unObserveLayoutChanges=function(){var oi=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(ei){ei.removeEventListener("scroll",oi.onLayoutChange,{passive:!0})}),this.$elements=null},ci.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},ci.prototype.$updatePopupPosition=function(){var oi=this.editor,ei=oi.renderer,fi=ei.layerConfig.lineHeight,gi=ei.$cursorLayer.getPixelPosition(this.base,!0);gi.left-=this.popup.getTextLeftOffset();var yi=oi.container.getBoundingClientRect();gi.top+=yi.top-ei.layerConfig.offset,gi.left+=yi.left-oi.renderer.scrollLeft,gi.left+=ei.gutterWidth;var pi={top:gi.top,left:gi.left};ei.$ghostText&&ei.$ghostTextWidget&&this.base.row===ei.$ghostText.position.row&&(pi.top+=ei.$ghostTextWidget.el.offsetHeight);var $i=oi.container.getBoundingClientRect().bottom-fi,si=$i<pi.top?{top:$i,left:pi.left}:pi;this.popup.tryShow(si,fi,"bottom")||this.popup.tryShow(gi,fi,"top")||this.popup.show(gi,fi)},ci.prototype.openPopup=function(oi,ei,fi){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var gi=this.popup.getRow(),yi=this.popup.data[gi];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:zn(this.popup.getRow()),inline:this.inlineEnabled}),oi.keyBinding.addKeyboardHandler(this.keyboardHandler);var pi;this.stickySelection&&(pi=this.popup.data.indexOf(yi)),(!pi||pi===-1)&&(pi=0),this.popup.setRow(this.autoSelect?pi:-1),pi===gi&&yi!==this.completions.filtered[pi]&&this.$onPopupChange();var $i=this.inlineRenderer&&this.inlineEnabled;if(pi===gi&&$i){var si=this.popup.getData(this.popup.getRow());this.$updateGhostText(si)}fi||(this.popup.setTheme(oi.getTheme()),this.popup.setFontSize(oi.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},ci.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()},ci.prototype.changeListener=function(oi){var ei=this.editor.selection.lead;(ei.row!=this.base.row||ei.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},ci.prototype.blurListener=function(oi){var ei=document.activeElement,fi=this.editor.textInput.getElement(),gi=oi.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(oi.relatedTarget),yi=this.popup&&this.popup.container;ei!=fi&&ei.parentNode!=yi&&!gi&&ei!=this.tooltipNode&&oi.relatedTarget!=fi&&this.detach()},ci.prototype.mousedownListener=function(oi){this.detach()},ci.prototype.mousewheelListener=function(oi){this.popup&&!this.popup.isMouseOver&&this.detach()},ci.prototype.mouseOutListener=function(oi){this.popup.isOpen&&this.$updatePopupPosition()},ci.prototype.goTo=function(oi){this.popup.goTo(oi)},ci.prototype.insertMatch=function(oi,ei){if(oi||(oi=this.popup.getData(this.popup.getRow())),!oi)return!1;if(oi.value==="")return this.detach();var fi=this.completions,gi=this.getCompletionProvider().insertMatch(this.editor,oi,fi.filterText,ei);return this.completions==fi&&this.detach(),gi},ci.prototype.showPopup=function(oi,ei){this.editor&&this.detach(),this.activated=!0,this.editor=oi,oi.completer!=this&&(oi.completer&&oi.completer.detach(),oi.completer=this),oi.on("changeSelection",this.changeListener),oi.on("blur",this.blurListener),oi.on("mousedown",this.mousedownListener),oi.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,ei)},ci.prototype.getCompletionProvider=function(oi){return this.completionProvider||(this.completionProvider=new Xn(oi)),this.completionProvider},ci.prototype.gatherCompletions=function(oi,ei){return this.getCompletionProvider().gatherCompletions(oi,ei)},ci.prototype.updateCompletions=function(oi,ei){if(oi&&this.base&&this.completions){var gi=this.editor.getCursorPosition(),yi=this.editor.session.getTextRange({start:this.base,end:gi});if(yi==this.completions.filterText)return;if(this.completions.setFilter(yi),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==yi&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,yi,oi);return}if(ei&&ei.matches){var gi=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(gi.row,gi.column),this.base.$insertRight=!0,this.completions=new mi(ei.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",oi)}var fi=this.editor.getSession(),gi=this.editor.getCursorPosition(),yi=Wn.getCompletionPrefix(this.editor);this.base=fi.doc.createAnchor(gi.row,gi.column-yi.length),this.base.$insertRight=!0;var pi={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:yi,pos:gi}).provideCompletions(this.editor,pi,(function($i,si,ti){var ai=si.filtered,vi=Wn.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),ti){if(!ai.length){var wi=!this.autoShown&&this.emptyMessage;if(typeof wi=="function"&&(wi=this.emptyMessage(vi)),wi){var xi=[{caption:wi,value:""}];this.completions=new mi(xi),this.openPopup(this.editor,vi,oi),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if(ai.length==1&&ai[0].value==vi&&!ai[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&ai.length==1)return this.insertMatch(ai[0])}this.completions=!ti&&this.showLoadingState?new mi(ci.completionsForLoading.concat(ai),si.filterText):si,this.openPopup(this.editor,vi,oi),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!ti)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},ci.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},ci.prototype.updateDocTooltip=function(){var oi=this.popup,ei=this.completions.filtered,fi=ei&&(ei[oi.getHoveredRow()]||ei[oi.getRow()]),gi=null;if(!fi||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var yi=this.editor.completers.length,pi=0;pi<yi;pi++){var $i=this.editor.completers[pi];if($i.getDocTooltip&&fi.completerId===$i.id){gi=$i.getDocTooltip(fi);break}}if(!gi&&typeof fi!="string"&&(gi=fi),typeof gi=="string"&&(gi={docText:gi}),!gi||!gi.docHTML&&!gi.docText)return this.hideDocTooltip();this.showDocTooltip(gi)},ci.prototype.showDocTooltip=function(oi){this.tooltipNode||(this.tooltipNode=Dn.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",Pn));var ei=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(ei.isDark?"ace_dark ":"")+(ei.cssClass||"");var fi=this.tooltipNode;oi.docHTML?fi.innerHTML=oi.docHTML:oi.docText&&(fi.textContent=oi.docText),fi.parentNode||this.popup.container.appendChild(this.tooltipNode);var gi=this.popup,yi=gi.container.getBoundingClientRect();fi.style.top=gi.container.style.top,fi.style.bottom=gi.container.style.bottom,fi.style.display="block",window.innerWidth-yi.right<320?yi.left<320?gi.isTopdown?(fi.style.top=yi.bottom+"px",fi.style.left=yi.left+"px",fi.style.right="",fi.style.bottom=""):(fi.style.top=gi.container.offsetTop-fi.offsetHeight+"px",fi.style.left=yi.left+"px",fi.style.right="",fi.style.bottom=""):(fi.style.right=window.innerWidth-yi.left+"px",fi.style.left=""):(fi.style.left=yi.right+1+"px",fi.style.right="")},ci.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var oi=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==oi&&this.editor.focus(),this.tooltipNode=null,oi.parentNode&&oi.parentNode.removeChild(oi)}},ci.prototype.onTooltipClick=function(oi){for(var ei=oi.target;ei&&ei!=this.tooltipNode;){if(ei.nodeName=="A"&&ei.href){ei.rel="noreferrer",ei.target="_blank";break}ei=ei.parentNode}},ci.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var oi=this.popup.container;oi&&oi.parentNode&&oi.parentNode.removeChild(oi)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",Zn),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},ci.for=function(oi){return oi.completer instanceof ci||(oi.completer&&(oi.completer.destroy(),oi.completer=null),Bn.get("sharedPopups")?(ci.$sharedInstance||(ci.$sharedInstance=new ci),oi.completer=ci.$sharedInstance):(oi.completer=new ci,oi.once("destroy",Zn))),oi.completer},ci}();Jn.prototype.commands={Up:function(ci){ci.completer.goTo("up")},Down:function(ci){ci.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(ci){ci.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(ci){ci.completer.goTo("end")},Esc:function(ci){ci.completer.detach()},Return:function(ci){return ci.completer.insertMatch()},"Shift-Return":function(ci){ci.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(ci){var oi=ci.completer.insertMatch();if(oi||ci.tabstopManager)return oi;ci.completer.goTo("down")},Backspace:function(ci){ci.execCommand("backspace");var oi=Wn.getCompletionPrefix(ci);!oi&&ci.completer&&ci.completer.detach()},PageUp:function(ci){ci.completer.popup.gotoPageUp()},PageDown:function(ci){ci.completer.popup.gotoPageDown()}},Jn.startCommand={name:"startAutocomplete",exec:function(ci,oi){var ei=Jn.for(ci);ei.autoInsert=!1,ei.autoSelect=!0,ei.autoShown=!1,ei.showPopup(ci,oi),ei.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var Xn=function(){function ci(oi){this.initialPosition=oi,this.active=!0}return ci.prototype.insertByIndex=function(oi,ei,fi){return!this.completions||!this.completions.filtered?!1:this.insertMatch(oi,this.completions.filtered[ei],fi)},ci.prototype.insertMatch=function(oi,ei,fi){if(!ei)return!1;if(oi.startOperation({command:{name:"insertMatch"}}),ei.completer&&ei.completer.insertMatch)ei.completer.insertMatch(oi,ei);else{if(!this.completions)return!1;var gi=this.completions.filterText.length,yi=0;if(ei.range&&ei.range.start.row===ei.range.end.row&&(gi-=this.initialPosition.prefix.length,gi+=this.initialPosition.pos.column-ei.range.start.column,yi+=ei.range.end.column-this.initialPosition.pos.column),gi||yi){var pi;oi.selection.getAllRanges?pi=oi.selection.getAllRanges():pi=[oi.getSelectionRange()];for(var $i=0,si;si=pi[$i];$i++)si.start.column-=gi,si.end.column+=yi,oi.session.remove(si)}ei.snippet?In.insertSnippet(oi,ei.snippet):this.$insertString(oi,ei),ei.completer&&ei.completer.onInsert&&typeof ei.completer.onInsert=="function"&&ei.completer.onInsert(oi,ei),ei.command&&ei.command==="startAutocomplete"&&oi.execCommand(ei.command)}return oi.endOperation(),!0},ci.prototype.$insertString=function(oi,ei){var fi=ei.value||ei;oi.execCommand("insertstring",fi)},ci.prototype.gatherCompletions=function(oi,ei){var fi=oi.getSession(),gi=oi.getCursorPosition(),yi=Wn.getCompletionPrefix(oi),pi=[];this.completers=oi.completers;var $i=oi.completers.length;return oi.completers.forEach(function(si,ti){si.getCompletions(oi,fi,gi,yi,function(ai,vi){si.hideInlinePreview&&(vi=vi.map(function(wi){return Object.assign(wi,{hideInlinePreview:si.hideInlinePreview})})),!ai&&vi&&(pi=pi.concat(vi)),ei(null,{prefix:Wn.getCompletionPrefix(oi),matches:pi,finished:--$i===0})})}),!0},ci.prototype.provideCompletions=function(oi,ei,fi){var gi=(function(si){var ti=si.prefix,ai=si.matches;this.completions=new mi(ai),ei.exactMatch&&(this.completions.exactMatch=!0),ei.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(ti),(si.finished||this.completions.filtered.length)&&fi(null,this.completions,si.finished)}).bind(this),yi=!0,pi=null;if(this.gatherCompletions(oi,(function(si,ti){if(this.active){si&&(fi(si,[],!0),this.detach());var ai=ti.prefix;if(ai.indexOf(ti.prefix)===0){if(yi){pi=ti;return}gi(ti)}}}).bind(this)),yi=!1,pi){var $i=pi;pi=null,gi($i)}},ci.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(oi){typeof oi.cancel=="function"&&oi.cancel()})},ci}(),mi=function(){function ci(oi,ei){this.all=oi,this.filtered=oi,this.filterText=ei||"",this.exactMatch=!1,this.ignoreCaption=!1}return ci.prototype.setFilter=function(oi){if(oi.length>this.filterText&&oi.lastIndexOf(this.filterText,0)===0)var ei=this.filtered;else var ei=this.all;this.filterText=oi,ei=this.filterCompletions(ei,this.filterText),ei=ei.sort(function(gi,yi){return yi.exactMatch-gi.exactMatch||yi.$score-gi.$score||(gi.caption||gi.value).localeCompare(yi.caption||yi.value)});var fi=null;ei=ei.filter(function(gi){var yi=gi.snippet||gi.caption||gi.value;return yi===fi?!1:(fi=yi,!0)}),this.filtered=ei},ci.prototype.filterCompletions=function(oi,ei){var fi=[],gi=ei.toUpperCase(),yi=ei.toLowerCase();e:for(var pi=0,$i;$i=oi[pi];pi++){var si=!this.ignoreCaption&&$i.caption||$i.value||$i.snippet;if(si){var ti=-1,ai=0,vi=0,wi,xi;if(this.exactMatch){if(ei!==si.substr(0,ei.length))continue e}else{var Si=si.toLowerCase().indexOf(yi);if(Si>-1)vi=Si;else for(var Ei=0;Ei<ei.length;Ei++){var Ri=si.indexOf(yi[Ei],ti+1),Ni=si.indexOf(gi[Ei],ti+1);if(wi=Ri>=0&&(Ni<0||Ri<Ni)?Ri:Ni,wi<0)continue e;xi=wi-ti-1,xi>0&&(ti===-1&&(vi+=10),vi+=xi,ai|=1<<Ei),ti=wi}}$i.matchMask=ai,$i.exactMatch=vi?0:1,$i.$score=($i.score||0)-vi,fi.push($i)}}return fi},ci}();kn.Autocomplete=Jn,kn.CompletionProvider=Xn,kn.FilteredList=mi}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(_n,kn,qn){function Hn(Wn,Nn){var Dn=Wn.getTextRange(Qn.fromPoints({row:0,column:0},Nn));return Dn.split(zn).length-1}function Kn(Wn,Nn){var Dn=Hn(Wn,Nn),In=Wn.getValue().split(zn),Bn=Object.create(null),Ln=In[Dn];return In.forEach(function(Pn,Zn){if(!(!Pn||Pn===Ln)){var Jn=Math.abs(Dn-Zn),Xn=In.length-Jn;Bn[Pn]?Bn[Pn]=Math.max(Xn,Bn[Pn]):Bn[Pn]=Xn}}),Bn}var Qn=_n("../range").Range,zn=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;kn.getCompletions=function(Wn,Nn,Dn,In,Bn){var Ln=Kn(Nn,Dn),Pn=Object.keys(Ln);Bn(null,Pn.map(function(Zn){return{caption:Zn,value:Zn,score:Ln[Zn],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(_n,kn,qn){var Hn=_n("../snippets").snippetManager,Kn=_n("../autocomplete").Autocomplete,Qn=_n("../config"),zn=_n("../lib/lang"),Wn=_n("../autocomplete/util"),Nn=_n("../autocomplete/text_completer"),Dn={getCompletions:function(gi,yi,pi,$i,si){if(yi.$mode.completer)return yi.$mode.completer.getCompletions(gi,yi,pi,$i,si);var ti=gi.session.getState(pi.row),ai=yi.$mode.getCompletions(ti,yi,pi,$i);ai=ai.map(function(vi){return vi.completerId=Dn.id,vi}),si(null,ai)},id:"keywordCompleter"},In=function(gi){var yi={};return gi.replace(/\${(\d+)(:(.*?))?}/g,function(pi,$i,si,ti){return yi[$i]=ti||""}).replace(/\$(\d+?)/g,function(pi,$i){return yi[$i]})},Bn={getCompletions:function(gi,yi,pi,$i,si){var ti=[],ai=yi.getTokenAt(pi.row,pi.column);ai&&ai.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?ti.push("html-tag"):ti=Hn.getActiveScopes(gi);var vi=Hn.snippetMap,wi=[];ti.forEach(function(xi){for(var Si=vi[xi]||[],Ei=Si.length;Ei--;){var Ri=Si[Ei],Ni=Ri.name||Ri.tabTrigger;Ni&&wi.push({caption:Ni,snippet:Ri.content,meta:Ri.tabTrigger&&!Ri.name?Ri.tabTrigger+"⇥ ":"snippet",completerId:Bn.id})}},this),si(null,wi)},getDocTooltip:function(gi){gi.snippet&&!gi.docHTML&&(gi.docHTML=["<b>",zn.escapeHTML(gi.caption),"</b>","<hr></hr>",zn.escapeHTML(In(gi.snippet))].join(""))},id:"snippetCompleter"},Ln=[Bn,Nn,Dn];kn.setCompleters=function(gi){Ln.length=0,gi&&Ln.push.apply(Ln,gi)},kn.addCompleter=function(gi){Ln.push(gi)},kn.textCompleter=Nn,kn.keyWordCompleter=Dn,kn.snippetCompleter=Bn;var Pn={name:"expandSnippet",exec:function(gi){return Hn.expandWithTab(gi)},bindKey:"Tab"},Zn=function(gi,yi){Jn(yi.session.$mode)},Jn=function(gi){typeof gi=="string"&&(gi=Qn.$modes[gi]),gi&&(Hn.files||(Hn.files={}),Xn(gi.$id,gi.snippetFileId),gi.modes&&gi.modes.forEach(Jn))},Xn=function(gi,yi){!yi||!gi||Hn.files[gi]||(Hn.files[gi]={},Qn.loadModule(yi,function(pi){pi&&(Hn.files[gi]=pi,!pi.snippets&&pi.snippetText&&(pi.snippets=Hn.parseSnippetFile(pi.snippetText)),Hn.register(pi.snippets||[],pi.scope),pi.includeScopes&&(Hn.snippetMap[pi.scope].includeScopes=pi.includeScopes,pi.includeScopes.forEach(function($i){Jn("ace/mode/"+$i)})))}))},mi=function(gi){var yi=gi.editor,pi=yi.completer&&yi.completer.activated;if(gi.command.name==="backspace")pi&&!Wn.getCompletionPrefix(yi)&&yi.completer.detach();else if(gi.command.name==="insertstring"&&!pi){ci=gi;var $i=gi.editor.$liveAutocompletionDelay;$i?oi.delay($i):ei(gi)}},ci,oi=zn.delayedCall(function(){ei(ci)},0),ei=function(gi){var yi=gi.editor,pi=Wn.getCompletionPrefix(yi),$i=gi.args,si=Wn.triggerAutocomplete(yi,$i);if(pi&&pi.length>=yi.$liveAutocompletionThreshold||si){var ti=Kn.for(yi);ti.autoShown=!0,ti.showPopup(yi)}},fi=_n("../editor").Editor;_n("../config").defineOptions(fi.prototype,"editor",{enableBasicAutocompletion:{set:function(gi){gi?(this.completers||(this.completers=Array.isArray(gi)?gi:Ln),this.commands.addCommand(Kn.startCommand)):this.commands.removeCommand(Kn.startCommand)},value:!1},enableLiveAutocompletion:{set:function(gi){gi?(this.completers||(this.completers=Array.isArray(gi)?gi:Ln),this.commands.on("afterExec",mi)):this.commands.off("afterExec",mi)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(gi){gi?(this.commands.addCommand(Pn),this.on("changeMode",Zn),Zn(null,this)):(this.commands.removeCommand(Pn),this.off("changeMode",Zn))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(_n){e&&(e.exports=_n)})}()}(mc)),mc.exports}tx();var vc={exports:{}},Ud;function nx(){return Ud||(Ud=1,function(e,vn){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(_n,kn,qn){qn.exports=`
1215
+
1216
+ /* ------------------------------------------------------------------------------------------
1217
+ * Editor Search Form
1218
+ * --------------------------------------------------------------------------------------- */
1219
+ .ace_search {
1220
+ background-color: #ddd;
1221
+ color: #666;
1222
+ border: 1px solid #cbcbcb;
1223
+ border-top: 0 none;
1224
+ overflow: hidden;
1225
+ margin: 0;
1226
+ padding: 4px 6px 0 4px;
1227
+ position: absolute;
1228
+ top: 0;
1229
+ z-index: 99;
1230
+ white-space: normal;
1231
+ }
1232
+ .ace_search.left {
1233
+ border-left: 0 none;
1234
+ border-radius: 0px 0px 5px 0px;
1235
+ left: 0;
1236
+ }
1237
+ .ace_search.right {
1238
+ border-radius: 0px 0px 0px 5px;
1239
+ border-right: 0 none;
1240
+ right: 0;
1241
+ }
1242
+
1243
+ .ace_search_form, .ace_replace_form {
1244
+ margin: 0 20px 4px 0;
1245
+ overflow: hidden;
1246
+ line-height: 1.9;
1247
+ }
1248
+ .ace_replace_form {
1249
+ margin-right: 0;
1250
+ }
1251
+ .ace_search_form.ace_nomatch {
1252
+ outline: 1px solid red;
1253
+ }
1254
+
1255
+ .ace_search_field {
1256
+ border-radius: 3px 0 0 3px;
1257
+ background-color: white;
1258
+ color: black;
1259
+ border: 1px solid #cbcbcb;
1260
+ border-right: 0 none;
1261
+ outline: 0;
1262
+ padding: 0;
1263
+ font-size: inherit;
1264
+ margin: 0;
1265
+ line-height: inherit;
1266
+ padding: 0 6px;
1267
+ min-width: 17em;
1268
+ vertical-align: top;
1269
+ min-height: 1.8em;
1270
+ box-sizing: content-box;
1271
+ }
1272
+ .ace_searchbtn {
1273
+ border: 1px solid #cbcbcb;
1274
+ line-height: inherit;
1275
+ display: inline-block;
1276
+ padding: 0 6px;
1277
+ background: #fff;
1278
+ border-right: 0 none;
1279
+ border-left: 1px solid #dcdcdc;
1280
+ cursor: pointer;
1281
+ margin: 0;
1282
+ position: relative;
1283
+ color: #666;
1284
+ }
1285
+ .ace_searchbtn:last-child {
1286
+ border-radius: 0 3px 3px 0;
1287
+ border-right: 1px solid #cbcbcb;
1288
+ }
1289
+ .ace_searchbtn:disabled {
1290
+ background: none;
1291
+ cursor: default;
1292
+ }
1293
+ .ace_searchbtn:hover {
1294
+ background-color: #eef1f6;
1295
+ }
1296
+ .ace_searchbtn.prev, .ace_searchbtn.next {
1297
+ padding: 0px 0.7em
1298
+ }
1299
+ .ace_searchbtn.prev:after, .ace_searchbtn.next:after {
1300
+ content: "";
1301
+ border: solid 2px #888;
1302
+ width: 0.5em;
1303
+ height: 0.5em;
1304
+ border-width: 2px 0 0 2px;
1305
+ display:inline-block;
1306
+ transform: rotate(-45deg);
1307
+ }
1308
+ .ace_searchbtn.next:after {
1309
+ border-width: 0 2px 2px 0 ;
1310
+ }
1311
+ .ace_searchbtn_close {
1312
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;
1313
+ border-radius: 50%;
1314
+ border: 0 none;
1315
+ color: #656565;
1316
+ cursor: pointer;
1317
+ font: 16px/16px Arial;
1318
+ padding: 0;
1319
+ height: 14px;
1320
+ width: 14px;
1321
+ top: 9px;
1322
+ right: 7px;
1323
+ position: absolute;
1324
+ }
1325
+ .ace_searchbtn_close:hover {
1326
+ background-color: #656565;
1327
+ background-position: 50% 100%;
1328
+ color: white;
1329
+ }
1330
+
1331
+ .ace_button {
1332
+ margin-left: 2px;
1333
+ cursor: pointer;
1334
+ -webkit-user-select: none;
1335
+ -moz-user-select: none;
1336
+ -o-user-select: none;
1337
+ -ms-user-select: none;
1338
+ user-select: none;
1339
+ overflow: hidden;
1340
+ opacity: 0.7;
1341
+ border: 1px solid rgba(100,100,100,0.23);
1342
+ padding: 1px;
1343
+ box-sizing: border-box!important;
1344
+ color: black;
1345
+ }
1346
+
1347
+ .ace_button:hover {
1348
+ background-color: #eee;
1349
+ opacity:1;
1350
+ }
1351
+ .ace_button:active {
1352
+ background-color: #ddd;
1353
+ }
1354
+
1355
+ .ace_button.checked {
1356
+ border-color: #3399ff;
1357
+ opacity:1;
1358
+ }
1359
+
1360
+ .ace_search_options{
1361
+ margin-bottom: 3px;
1362
+ text-align: right;
1363
+ -webkit-user-select: none;
1364
+ -moz-user-select: none;
1365
+ -o-user-select: none;
1366
+ -ms-user-select: none;
1367
+ user-select: none;
1368
+ clear: both;
1369
+ }
1370
+
1371
+ .ace_search_counter {
1372
+ float: left;
1373
+ font-family: arial;
1374
+ padding: 0 8px;
1375
+ }`}),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(_n,kn,qn){var Hn=_n("../lib/dom"),Kn=_n("../lib/lang"),Qn=_n("../lib/event"),zn=_n("./searchbox-css"),Wn=_n("../keyboard/hash_handler").HashHandler,Nn=_n("../lib/keys"),Dn=_n("../config").nls,In=999;Hn.importCssString(zn,"ace_searchbox",!1);var Bn=function(){function Zn(Jn,Xn,mi){this.activeInput;var ci=Hn.createElement("div");Hn.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:Dn("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"},Dn("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:Dn("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},Dn("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},Dn("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:Dn("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:Dn("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:Dn("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:Dn("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:Dn("search-box.toggle-in-selection.title","Search In Selection")},"S"]]],ci),this.element=ci.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(Jn),Hn.importCssString(zn,"ace_searchbox",Jn.container)}return Zn.prototype.setEditor=function(Jn){Jn.searchBox=this,Jn.renderer.scroller.appendChild(this.element),this.editor=Jn},Zn.prototype.setSession=function(Jn){this.searchRange=null,this.$syncOptions(!0)},Zn.prototype.$initElements=function(Jn){this.searchBox=Jn.querySelector(".ace_search_form"),this.replaceBox=Jn.querySelector(".ace_replace_form"),this.searchOption=Jn.querySelector("[action=searchInSelection]"),this.replaceOption=Jn.querySelector("[action=toggleReplace]"),this.regExpOption=Jn.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=Jn.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=Jn.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=Jn.querySelector(".ace_search_counter")},Zn.prototype.$init=function(){var Jn=this.element;this.$initElements(Jn);var Xn=this;Qn.addListener(Jn,"mousedown",function(mi){setTimeout(function(){Xn.activeInput.focus()},0),Qn.stopPropagation(mi)}),Qn.addListener(Jn,"click",function(mi){var ci=mi.target||mi.srcElement,oi=ci.getAttribute("action");oi&&Xn[oi]?Xn[oi]():Xn.$searchBarKb.commands[oi]&&Xn.$searchBarKb.commands[oi].exec(Xn),Qn.stopPropagation(mi)}),Qn.addCommandKeyListener(Jn,function(mi,ci,oi){var ei=Nn.keyCodeToString(oi),fi=Xn.$searchBarKb.findKeyCommand(ci,ei);fi&&fi.exec&&(fi.exec(Xn),Qn.stopEvent(mi))}),this.$onChange=Kn.delayedCall(function(){Xn.find(!1,!1)}),Qn.addListener(this.searchInput,"input",function(){Xn.$onChange.schedule(20)}),Qn.addListener(this.searchInput,"focus",function(){Xn.activeInput=Xn.searchInput,Xn.searchInput.value&&Xn.highlight()}),Qn.addListener(this.replaceInput,"focus",function(){Xn.activeInput=Xn.replaceInput,Xn.searchInput.value&&Xn.highlight()})},Zn.prototype.setSearchRange=function(Jn){this.searchRange=Jn,Jn?this.searchRangeMarker=this.editor.session.addMarker(Jn,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},Zn.prototype.$syncOptions=function(Jn){Hn.setCssClass(this.replaceOption,"checked",this.searchRange),Hn.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",Hn.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),Hn.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),Hn.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var Xn=this.editor.getReadOnly();this.replaceOption.style.display=Xn?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!Xn?"":"none",this.find(!1,!1,Jn)},Zn.prototype.highlight=function(Jn){this.editor.session.highlight(Jn||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},Zn.prototype.find=function(Jn,Xn,mi){var ci=this.editor.find(this.searchInput.value,{skipCurrent:Jn,backwards:Xn,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:mi,range:this.searchRange}),oi=!ci&&this.searchInput.value;Hn.setCssClass(this.searchBox,"ace_nomatch",oi),this.editor._emit("findSearchBox",{match:!oi}),this.highlight(),this.updateCounter()},Zn.prototype.updateCounter=function(){var Jn=this.editor,Xn=Jn.$search.$options.re,mi=Xn.unicode,ci=0,oi=0;if(Xn){var ei=this.searchRange?Jn.session.getTextRange(this.searchRange):Jn.getValue(),fi=Jn.session.doc.positionToIndex(Jn.selection.anchor);this.searchRange&&(fi-=Jn.session.doc.positionToIndex(this.searchRange.start));for(var gi=Xn.lastIndex=0,yi;(yi=Xn.exec(ei))&&(ci++,gi=yi.index,gi<=fi&&oi++,!(ci>In||!yi[0]&&(Xn.lastIndex=gi+=Kn.skipEmptyMatch(ei,gi,mi),gi>=ei.length))););}this.searchCounter.textContent=Dn("search-box.search-counter","$0 of $1",[oi,ci>In?In+"+":ci])},Zn.prototype.findNext=function(){this.find(!0,!1)},Zn.prototype.findPrev=function(){this.find(!0,!0)},Zn.prototype.findAll=function(){var Jn=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),Xn=!Jn&&this.searchInput.value;Hn.setCssClass(this.searchBox,"ace_nomatch",Xn),this.editor._emit("findSearchBox",{match:!Xn}),this.highlight(),this.hide()},Zn.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},Zn.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},Zn.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},Zn.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()},Zn.prototype.show=function(Jn,Xn){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=Xn,Jn&&(this.searchInput.value=Jn),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},Zn.prototype.isFocused=function(){var Jn=document.activeElement;return Jn==this.searchInput||Jn==this.replaceInput},Zn}(),Ln=new Wn;Ln.bindKeys({"Ctrl-f|Command-f":function(Zn){var Jn=Zn.isReplace=!Zn.isReplace;Zn.replaceBox.style.display=Jn?"":"none",Zn.replaceOption.checked=!1,Zn.$syncOptions(),Zn.searchInput.focus()},"Ctrl-H|Command-Option-F":function(Zn){Zn.editor.getReadOnly()||(Zn.replaceOption.checked=!0,Zn.$syncOptions(),Zn.replaceInput.focus())},"Ctrl-G|Command-G":function(Zn){Zn.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(Zn){Zn.findPrev()},esc:function(Zn){setTimeout(function(){Zn.hide()})},Return:function(Zn){Zn.activeInput==Zn.replaceInput&&Zn.replace(),Zn.findNext()},"Shift-Return":function(Zn){Zn.activeInput==Zn.replaceInput&&Zn.replace(),Zn.findPrev()},"Alt-Return":function(Zn){Zn.activeInput==Zn.replaceInput&&Zn.replaceAll(),Zn.findAll()},Tab:function(Zn){(Zn.activeInput==Zn.replaceInput?Zn.searchInput:Zn.replaceInput).focus()}}),Ln.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(Zn){Zn.regExpOption.checked=!Zn.regExpOption.checked,Zn.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(Zn){Zn.caseSensitiveOption.checked=!Zn.caseSensitiveOption.checked,Zn.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(Zn){Zn.wholeWordOption.checked=!Zn.wholeWordOption.checked,Zn.$syncOptions()}},{name:"toggleReplace",exec:function(Zn){Zn.replaceOption.checked=!Zn.replaceOption.checked,Zn.$syncOptions()}},{name:"searchInSelection",exec:function(Zn){Zn.searchOption.checked=!Zn.searchRange,Zn.setSearchRange(Zn.searchOption.checked&&Zn.editor.getSelectionRange()),Zn.$syncOptions()}}]);var Pn=new Wn([{bindKey:"Esc",name:"closeSearchBar",exec:function(Zn){Zn.searchBox.hide()}}]);Bn.prototype.$searchBarKb=Ln,Bn.prototype.$closeSearchBarKb=Pn,kn.SearchBox=Bn,kn.Search=function(Zn,Jn){var Xn=Zn.searchBox||new Bn(Zn);Xn.show(Zn.session.getTextRange(),Jn)}}),function(){ace.require(["ace/ext/searchbox"],function(_n){e&&(e.exports=_n)})}()}(vc)),vc.exports}nx();var ix=Object.defineProperty,rx=(e,vn,_n)=>vn in e?ix(e,vn,{enumerable:!0,configurable:!0,writable:!0,value:_n}):e[vn]=_n,Lr=(e,vn,_n)=>rx(e,vn+"",_n);function Mp(e,vn){return function(){return e.apply(vn,arguments)}}const{toString:ox}=Object.prototype,{getPrototypeOf:Cu}=Object,Va=(e=>vn=>{const _n=ox.call(vn);return e[_n]||(e[_n]=_n.slice(8,-1).toLowerCase())})(Object.create(null)),di=e=>(e=e.toLowerCase(),vn=>Va(vn)===e),ja=e=>vn=>typeof vn===e,{isArray:yo}=Array,xs=ja("undefined");function sx(e){return e!==null&&!xs(e)&&e.constructor!==null&&!xs(e.constructor)&&Vn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Lp=di("ArrayBuffer");function ax(e){let vn;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?vn=ArrayBuffer.isView(e):vn=e&&e.buffer&&Lp(e.buffer),vn}const lx=ja("string"),Vn=ja("function"),Rp=ja("number"),Ga=e=>e!==null&&typeof e=="object",cx=e=>e===!0||e===!1,Ia=e=>{if(Va(e)!=="object")return!1;const vn=Cu(e);return(vn===null||vn===Object.prototype||Object.getPrototypeOf(vn)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ux=di("Date"),hx=di("File"),dx=di("Blob"),fx=di("FileList"),px=e=>Ga(e)&&Vn(e.pipe),gx=e=>{let vn;return e&&(typeof FormData=="function"&&e instanceof FormData||Vn(e.append)&&((vn=Va(e))==="formdata"||vn==="object"&&Vn(e.toString)&&e.toString()==="[object FormData]"))},mx=di("URLSearchParams"),[vx,yx,wx,bx]=["ReadableStream","Request","Response","Headers"].map(di),xx=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ss(e,vn,{allOwnKeys:_n=!1}={}){if(e===null||typeof e>"u")return;let kn,qn;if(typeof e!="object"&&(e=[e]),yo(e))for(kn=0,qn=e.length;kn<qn;kn++)vn.call(null,e[kn],kn,e);else{const Hn=_n?Object.getOwnPropertyNames(e):Object.keys(e),Kn=Hn.length;let Qn;for(kn=0;kn<Kn;kn++)Qn=Hn[kn],vn.call(null,e[Qn],Qn,e)}}function Ep(e,vn){vn=vn.toLowerCase();const _n=Object.keys(e);let kn=_n.length,qn;for(;kn-- >0;)if(qn=_n[kn],vn===qn.toLowerCase())return qn;return null}const Or=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ip=e=>!xs(e)&&e!==Or;function au(){const{caseless:e}=Ip(this)&&this||{},vn={},_n=(kn,qn)=>{const Hn=e&&Ep(vn,qn)||qn;Ia(vn[Hn])&&Ia(kn)?vn[Hn]=au(vn[Hn],kn):Ia(kn)?vn[Hn]=au({},kn):yo(kn)?vn[Hn]=kn.slice():vn[Hn]=kn};for(let kn=0,qn=arguments.length;kn<qn;kn++)arguments[kn]&&Ss(arguments[kn],_n);return vn}const _x=(e,vn,_n,{allOwnKeys:kn}={})=>(Ss(vn,(qn,Hn)=>{_n&&Vn(qn)?e[Hn]=Mp(qn,_n):e[Hn]=qn},{allOwnKeys:kn}),e),Sx=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),kx=(e,vn,_n,kn)=>{e.prototype=Object.create(vn.prototype,kn),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:vn.prototype}),_n&&Object.assign(e.prototype,_n)},Cx=(e,vn,_n,kn)=>{let qn,Hn,Kn;const Qn={};if(vn=vn||{},e==null)return vn;do{for(qn=Object.getOwnPropertyNames(e),Hn=qn.length;Hn-- >0;)Kn=qn[Hn],(!kn||kn(Kn,e,vn))&&!Qn[Kn]&&(vn[Kn]=e[Kn],Qn[Kn]=!0);e=_n!==!1&&Cu(e)}while(e&&(!_n||_n(e,vn))&&e!==Object.prototype);return vn},Ax=(e,vn,_n)=>{e=String(e),(_n===void 0||_n>e.length)&&(_n=e.length),_n-=vn.length;const kn=e.indexOf(vn,_n);return kn!==-1&&kn===_n},$x=e=>{if(!e)return null;if(yo(e))return e;let vn=e.length;if(!Rp(vn))return null;const _n=new Array(vn);for(;vn-- >0;)_n[vn]=e[vn];return _n},Tx=(e=>vn=>e&&vn instanceof e)(typeof Uint8Array<"u"&&Cu(Uint8Array)),Mx=(e,vn)=>{const _n=(e&&e[Symbol.iterator]).call(e);let kn;for(;(kn=_n.next())&&!kn.done;){const qn=kn.value;vn.call(e,qn[0],qn[1])}},Lx=(e,vn)=>{let _n;const kn=[];for(;(_n=e.exec(vn))!==null;)kn.push(_n);return kn},Rx=di("HTMLFormElement"),Ex=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(vn,_n,kn){return _n.toUpperCase()+kn}),Vd=(({hasOwnProperty:e})=>(vn,_n)=>e.call(vn,_n))(Object.prototype),Ix=di("RegExp"),Op=(e,vn)=>{const _n=Object.getOwnPropertyDescriptors(e),kn={};Ss(_n,(qn,Hn)=>{let Kn;(Kn=vn(qn,Hn,e))!==!1&&(kn[Hn]=Kn||qn)}),Object.defineProperties(e,kn)},Ox=e=>{Op(e,(vn,_n)=>{if(Vn(e)&&["arguments","caller","callee"].indexOf(_n)!==-1)return!1;const kn=e[_n];if(Vn(kn)){if(vn.enumerable=!1,"writable"in vn){vn.writable=!1;return}vn.set||(vn.set=()=>{throw Error("Can not rewrite read-only method '"+_n+"'")})}})},Dx=(e,vn)=>{const _n={},kn=qn=>{qn.forEach(Hn=>{_n[Hn]=!0})};return yo(e)?kn(e):kn(String(e).split(vn)),_n},Nx=()=>{},Fx=(e,vn)=>e!=null&&Number.isFinite(e=+e)?e:vn,yc="abcdefghijklmnopqrstuvwxyz",jd="0123456789",Dp={DIGIT:jd,ALPHA:yc,ALPHA_DIGIT:yc+yc.toUpperCase()+jd},Wx=(e=16,vn=Dp.ALPHA_DIGIT)=>{let _n="";const{length:kn}=vn;for(;e--;)_n+=vn[Math.random()*kn|0];return _n};function Px(e){return!!(e&&Vn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Bx=e=>{const vn=new Array(10),_n=(kn,qn)=>{if(Ga(kn)){if(vn.indexOf(kn)>=0)return;if(!("toJSON"in kn)){vn[qn]=kn;const Hn=yo(kn)?[]:{};return Ss(kn,(Kn,Qn)=>{const zn=_n(Kn,qn+1);!xs(zn)&&(Hn[Qn]=zn)}),vn[qn]=void 0,Hn}}return kn};return _n(e,0)},zx=di("AsyncFunction"),Hx=e=>e&&(Ga(e)||Vn(e))&&Vn(e.then)&&Vn(e.catch),Np=((e,vn)=>e?setImmediate:vn?((_n,kn)=>(Or.addEventListener("message",({source:qn,data:Hn})=>{qn===Or&&Hn===_n&&kn.length&&kn.shift()()},!1),qn=>{kn.push(qn),Or.postMessage(_n,"*")}))(`axios@${Math.random()}`,[]):_n=>setTimeout(_n))(typeof setImmediate=="function",Vn(Or.postMessage)),Ux=typeof queueMicrotask<"u"?queueMicrotask.bind(Or):typeof process<"u"&&process.nextTick||Np,ue$4={isArray:yo,isArrayBuffer:Lp,isBuffer:sx,isFormData:gx,isArrayBufferView:ax,isString:lx,isNumber:Rp,isBoolean:cx,isObject:Ga,isPlainObject:Ia,isReadableStream:vx,isRequest:yx,isResponse:wx,isHeaders:bx,isUndefined:xs,isDate:ux,isFile:hx,isBlob:dx,isRegExp:Ix,isFunction:Vn,isStream:px,isURLSearchParams:mx,isTypedArray:Tx,isFileList:fx,forEach:Ss,merge:au,extend:_x,trim:xx,stripBOM:Sx,inherits:kx,toFlatObject:Cx,kindOf:Va,kindOfTest:di,endsWith:Ax,toArray:$x,forEachEntry:Mx,matchAll:Lx,isHTMLForm:Rx,hasOwnProperty:Vd,hasOwnProp:Vd,reduceDescriptors:Op,freezeMethods:Ox,toObjectSet:Dx,toCamelCase:Ex,noop:Nx,toFiniteNumber:Fx,findKey:Ep,global:Or,isContextDefined:Ip,ALPHABET:Dp,generateString:Wx,isSpecCompliantForm:Px,toJSONObject:Bx,isAsyncFn:zx,isThenable:Hx,setImmediate:Np,asap:Ux};function Ye$3(e,vn,_n,kn,qn){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",vn&&(this.code=vn),_n&&(this.config=_n),kn&&(this.request=kn),qn&&(this.response=qn,this.status=qn.status?qn.status:null)}ue$4.inherits(Ye$3,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ue$4.toJSONObject(this.config),code:this.code,status:this.status}}});const Fp=Ye$3.prototype,Wp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Wp[e]={value:e}}),Object.defineProperties(Ye$3,Wp),Object.defineProperty(Fp,"isAxiosError",{value:!0}),Ye$3.from=(e,vn,_n,kn,qn,Hn)=>{const Kn=Object.create(Fp);return ue$4.toFlatObject(e,Kn,function(Qn){return Qn!==Error.prototype},Qn=>Qn!=="isAxiosError"),Ye$3.call(Kn,e.message,vn,_n,kn,qn),Kn.cause=e,Kn.name=e.name,Hn&&Object.assign(Kn,Hn),Kn};const Vx=null;function lu(e){return ue$4.isPlainObject(e)||ue$4.isArray(e)}function Pp(e){return ue$4.endsWith(e,"[]")?e.slice(0,-2):e}function Gd(e,vn,_n){return e?e.concat(vn).map(function(kn,qn){return kn=Pp(kn),!_n&&qn?"["+kn+"]":kn}).join(_n?".":""):vn}function jx(e){return ue$4.isArray(e)&&!e.some(lu)}const Gx=ue$4.toFlatObject(ue$4,{},null,function(e){return/^is[A-Z]/.test(e)});function Ka(e,vn,_n){if(!ue$4.isObject(e))throw new TypeError("target must be an object");vn=vn||new FormData,_n=ue$4.toFlatObject(_n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Bn,Ln){return!ue$4.isUndefined(Ln[Bn])});const kn=_n.metaTokens,qn=_n.visitor||Wn,Hn=_n.dots,Kn=_n.indexes,Qn=(_n.Blob||typeof Blob<"u"&&Blob)&&ue$4.isSpecCompliantForm(vn);if(!ue$4.isFunction(qn))throw new TypeError("visitor must be a function");function zn(Bn){if(Bn===null)return"";if(ue$4.isDate(Bn))return Bn.toISOString();if(!Qn&&ue$4.isBlob(Bn))throw new Ye$3("Blob is not supported. Use a Buffer instead.");return ue$4.isArrayBuffer(Bn)||ue$4.isTypedArray(Bn)?Qn&&typeof Blob=="function"?new Blob([Bn]):Buffer.from(Bn):Bn}function Wn(Bn,Ln,Pn){let Zn=Bn;if(Bn&&!Pn&&typeof Bn=="object"){if(ue$4.endsWith(Ln,"{}"))Ln=kn?Ln:Ln.slice(0,-2),Bn=JSON.stringify(Bn);else if(ue$4.isArray(Bn)&&jx(Bn)||(ue$4.isFileList(Bn)||ue$4.endsWith(Ln,"[]"))&&(Zn=ue$4.toArray(Bn)))return Ln=Pp(Ln),Zn.forEach(function(Jn,Xn){!(ue$4.isUndefined(Jn)||Jn===null)&&vn.append(Kn===!0?Gd([Ln],Xn,Hn):Kn===null?Ln:Ln+"[]",zn(Jn))}),!1}return lu(Bn)?!0:(vn.append(Gd(Pn,Ln,Hn),zn(Bn)),!1)}const Nn=[],Dn=Object.assign(Gx,{defaultVisitor:Wn,convertValue:zn,isVisitable:lu});function In(Bn,Ln){if(!ue$4.isUndefined(Bn)){if(Nn.indexOf(Bn)!==-1)throw Error("Circular reference detected in "+Ln.join("."));Nn.push(Bn),ue$4.forEach(Bn,function(Pn,Zn){(!(ue$4.isUndefined(Pn)||Pn===null)&&qn.call(vn,Pn,ue$4.isString(Zn)?Zn.trim():Zn,Ln,Dn))===!0&&In(Pn,Ln?Ln.concat(Zn):[Zn])}),Nn.pop()}}if(!ue$4.isObject(e))throw new TypeError("data must be an object");return In(e),vn}function Kd(e){const vn={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(_n){return vn[_n]})}function Au(e,vn){this._pairs=[],e&&Ka(e,this,vn)}const Bp=Au.prototype;Bp.append=function(e,vn){this._pairs.push([e,vn])},Bp.toString=function(e){const vn=e?function(_n){return e.call(this,_n,Kd)}:Kd;return this._pairs.map(function(_n){return vn(_n[0])+"="+vn(_n[1])},"").join("&")};function Kx(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function zp(e,vn,_n){if(!vn)return e;const kn=_n&&_n.encode||Kx;ue$4.isFunction(_n)&&(_n={serialize:_n});const qn=_n&&_n.serialize;let Hn;if(qn?Hn=qn(vn,_n):Hn=ue$4.isURLSearchParams(vn)?vn.toString():new Au(vn,_n).toString(kn),Hn){const Kn=e.indexOf("#");Kn!==-1&&(e=e.slice(0,Kn)),e+=(e.indexOf("?")===-1?"?":"&")+Hn}return e}class qd{constructor(){this.handlers=[]}use(vn,_n,kn){return this.handlers.push({fulfilled:vn,rejected:_n,synchronous:kn?kn.synchronous:!1,runWhen:kn?kn.runWhen:null}),this.handlers.length-1}eject(vn){this.handlers[vn]&&(this.handlers[vn]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(vn){ue$4.forEach(this.handlers,function(_n){_n!==null&&vn(_n)})}}const Hp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qx=typeof URLSearchParams<"u"?URLSearchParams:Au,Yx=typeof FormData<"u"?FormData:null,Zx=typeof Blob<"u"?Blob:null,Qx={isBrowser:!0,classes:{URLSearchParams:qx,FormData:Yx,Blob:Zx},protocols:["http","https","file","blob","url","data"]},$u=typeof window<"u"&&typeof document<"u",cu=typeof navigator=="object"&&navigator||void 0,Xx=$u&&(!cu||["ReactNative","NativeScript","NS"].indexOf(cu.product)<0),Jx=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",e1=$u&&window.location.href||"http://localhost",t1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:$u,hasStandardBrowserEnv:Xx,hasStandardBrowserWebWorkerEnv:Jx,navigator:cu,origin:e1},Symbol.toStringTag,{value:"Module"})),bn$1={...t1,...Qx};function n1(e,vn){return Ka(e,new bn$1.classes.URLSearchParams,Object.assign({visitor:function(_n,kn,qn,Hn){return bn$1.isNode&&ue$4.isBuffer(_n)?(this.append(kn,_n.toString("base64")),!1):Hn.defaultVisitor.apply(this,arguments)}},vn))}function i1(e){return ue$4.matchAll(/\w+|\[(\w*)]/g,e).map(vn=>vn[0]==="[]"?"":vn[1]||vn[0])}function r1(e){const vn={},_n=Object.keys(e);let kn;const qn=_n.length;let Hn;for(kn=0;kn<qn;kn++)Hn=_n[kn],vn[Hn]=e[Hn];return vn}function Up(e){function vn(_n,kn,qn,Hn){let Kn=_n[Hn++];if(Kn==="__proto__")return!0;const Qn=Number.isFinite(+Kn),zn=Hn>=_n.length;return Kn=!Kn&&ue$4.isArray(qn)?qn.length:Kn,zn?(ue$4.hasOwnProp(qn,Kn)?qn[Kn]=[qn[Kn],kn]:qn[Kn]=kn,!Qn):((!qn[Kn]||!ue$4.isObject(qn[Kn]))&&(qn[Kn]=[]),vn(_n,kn,qn[Kn],Hn)&&ue$4.isArray(qn[Kn])&&(qn[Kn]=r1(qn[Kn])),!Qn)}if(ue$4.isFormData(e)&&ue$4.isFunction(e.entries)){const _n={};return ue$4.forEachEntry(e,(kn,qn)=>{vn(i1(kn),qn,_n,0)}),_n}return null}function o1(e,vn,_n){if(ue$4.isString(e))try{return(vn||JSON.parse)(e),ue$4.trim(e)}catch(kn){if(kn.name!=="SyntaxError")throw kn}return(0,JSON.stringify)(e)}const ks={transitional:Hp,adapter:["xhr","http","fetch"],transformRequest:[function(e,vn){const _n=vn.getContentType()||"",kn=_n.indexOf("application/json")>-1,qn=ue$4.isObject(e);if(qn&&ue$4.isHTMLForm(e)&&(e=new FormData(e)),ue$4.isFormData(e))return kn?JSON.stringify(Up(e)):e;if(ue$4.isArrayBuffer(e)||ue$4.isBuffer(e)||ue$4.isStream(e)||ue$4.isFile(e)||ue$4.isBlob(e)||ue$4.isReadableStream(e))return e;if(ue$4.isArrayBufferView(e))return e.buffer;if(ue$4.isURLSearchParams(e))return vn.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let Hn;if(qn){if(_n.indexOf("application/x-www-form-urlencoded")>-1)return n1(e,this.formSerializer).toString();if((Hn=ue$4.isFileList(e))||_n.indexOf("multipart/form-data")>-1){const Kn=this.env&&this.env.FormData;return Ka(Hn?{"files[]":e}:e,Kn&&new Kn,this.formSerializer)}}return qn||kn?(vn.setContentType("application/json",!1),o1(e)):e}],transformResponse:[function(e){const vn=this.transitional||ks.transitional,_n=vn&&vn.forcedJSONParsing,kn=this.responseType==="json";if(ue$4.isResponse(e)||ue$4.isReadableStream(e))return e;if(e&&ue$4.isString(e)&&(_n&&!this.responseType||kn)){const qn=!(vn&&vn.silentJSONParsing)&&kn;try{return JSON.parse(e)}catch(Hn){if(qn)throw Hn.name==="SyntaxError"?Ye$3.from(Hn,Ye$3.ERR_BAD_RESPONSE,this,null,this.response):Hn}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bn$1.classes.FormData,Blob:bn$1.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ue$4.forEach(["delete","get","head","post","put","patch"],e=>{ks.headers[e]={}});const s1=ue$4.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),a1=e=>{const vn={};let _n,kn,qn;return e&&e.split(`
1376
+ `).forEach(function(Hn){qn=Hn.indexOf(":"),_n=Hn.substring(0,qn).trim().toLowerCase(),kn=Hn.substring(qn+1).trim(),!(!_n||vn[_n]&&s1[_n])&&(_n==="set-cookie"?vn[_n]?vn[_n].push(kn):vn[_n]=[kn]:vn[_n]=vn[_n]?vn[_n]+", "+kn:kn)}),vn},Yd=Symbol("internals");function us(e){return e&&String(e).trim().toLowerCase()}function Oa(e){return e===!1||e==null?e:ue$4.isArray(e)?e.map(Oa):String(e)}function l1(e){const vn=Object.create(null),_n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let kn;for(;kn=_n.exec(e);)vn[kn[1]]=kn[2];return vn}const c1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function wc(e,vn,_n,kn,qn){if(ue$4.isFunction(kn))return kn.call(this,vn,_n);if(qn&&(vn=_n),!!ue$4.isString(vn)){if(ue$4.isString(kn))return vn.indexOf(kn)!==-1;if(ue$4.isRegExp(kn))return kn.test(vn)}}function u1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(vn,_n,kn)=>_n.toUpperCase()+kn)}function h1(e,vn){const _n=ue$4.toCamelCase(" "+vn);["get","set","has"].forEach(kn=>{Object.defineProperty(e,kn+_n,{value:function(qn,Hn,Kn){return this[kn].call(this,vn,qn,Hn,Kn)},configurable:!0})})}class Fn{constructor(vn){vn&&this.set(vn)}set(vn,_n,kn){const qn=this;function Hn(Qn,zn,Wn){const Nn=us(zn);if(!Nn)throw new Error("header name must be a non-empty string");const Dn=ue$4.findKey(qn,Nn);(!Dn||qn[Dn]===void 0||Wn===!0||Wn===void 0&&qn[Dn]!==!1)&&(qn[Dn||zn]=Oa(Qn))}const Kn=(Qn,zn)=>ue$4.forEach(Qn,(Wn,Nn)=>Hn(Wn,Nn,zn));if(ue$4.isPlainObject(vn)||vn instanceof this.constructor)Kn(vn,_n);else if(ue$4.isString(vn)&&(vn=vn.trim())&&!c1(vn))Kn(a1(vn),_n);else if(ue$4.isHeaders(vn))for(const[Qn,zn]of vn.entries())Hn(zn,Qn,kn);else vn!=null&&Hn(_n,vn,kn);return this}get(vn,_n){if(vn=us(vn),vn){const kn=ue$4.findKey(this,vn);if(kn){const qn=this[kn];if(!_n)return qn;if(_n===!0)return l1(qn);if(ue$4.isFunction(_n))return _n.call(this,qn,kn);if(ue$4.isRegExp(_n))return _n.exec(qn);throw new TypeError("parser must be boolean|regexp|function")}}}has(vn,_n){if(vn=us(vn),vn){const kn=ue$4.findKey(this,vn);return!!(kn&&this[kn]!==void 0&&(!_n||wc(this,this[kn],kn,_n)))}return!1}delete(vn,_n){const kn=this;let qn=!1;function Hn(Kn){if(Kn=us(Kn),Kn){const Qn=ue$4.findKey(kn,Kn);Qn&&(!_n||wc(kn,kn[Qn],Qn,_n))&&(delete kn[Qn],qn=!0)}}return ue$4.isArray(vn)?vn.forEach(Hn):Hn(vn),qn}clear(vn){const _n=Object.keys(this);let kn=_n.length,qn=!1;for(;kn--;){const Hn=_n[kn];(!vn||wc(this,this[Hn],Hn,vn,!0))&&(delete this[Hn],qn=!0)}return qn}normalize(vn){const _n=this,kn={};return ue$4.forEach(this,(qn,Hn)=>{const Kn=ue$4.findKey(kn,Hn);if(Kn){_n[Kn]=Oa(qn),delete _n[Hn];return}const Qn=vn?u1(Hn):String(Hn).trim();Qn!==Hn&&delete _n[Hn],_n[Qn]=Oa(qn),kn[Qn]=!0}),this}concat(...vn){return this.constructor.concat(this,...vn)}toJSON(vn){const _n=Object.create(null);return ue$4.forEach(this,(kn,qn)=>{kn!=null&&kn!==!1&&(_n[qn]=vn&&ue$4.isArray(kn)?kn.join(", "):kn)}),_n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([vn,_n])=>vn+": "+_n).join(`
1377
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(vn){return vn instanceof this?vn:new this(vn)}static concat(vn,..._n){const kn=new this(vn);return _n.forEach(qn=>kn.set(qn)),kn}static accessor(vn){const _n=(this[Yd]=this[Yd]={accessors:{}}).accessors,kn=this.prototype;function qn(Hn){const Kn=us(Hn);_n[Kn]||(h1(kn,Hn),_n[Kn]=!0)}return ue$4.isArray(vn)?vn.forEach(qn):qn(vn),this}}Fn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ue$4.reduceDescriptors(Fn.prototype,({value:e},vn)=>{let _n=vn[0].toUpperCase()+vn.slice(1);return{get:()=>e,set(kn){this[_n]=kn}}}),ue$4.freezeMethods(Fn);function bc(e,vn){const _n=this||ks,kn=vn||_n,qn=Fn.from(kn.headers);let Hn=kn.data;return ue$4.forEach(e,function(Kn){Hn=Kn.call(_n,Hn,qn.normalize(),vn?vn.status:void 0)}),qn.normalize(),Hn}function Vp(e){return!!(e&&e.__CANCEL__)}function wo(e,vn,_n){Ye$3.call(this,e??"canceled",Ye$3.ERR_CANCELED,vn,_n),this.name="CanceledError"}ue$4.inherits(wo,Ye$3,{__CANCEL__:!0});function jp(e,vn,_n){const kn=_n.config.validateStatus;!_n.status||!kn||kn(_n.status)?e(_n):vn(new Ye$3("Request failed with status code "+_n.status,[Ye$3.ERR_BAD_REQUEST,Ye$3.ERR_BAD_RESPONSE][Math.floor(_n.status/100)-4],_n.config,_n.request,_n))}function d1(e){const vn=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return vn&&vn[1]||""}function f1(e,vn){e=e||10;const _n=new Array(e),kn=new Array(e);let qn=0,Hn=0,Kn;return vn=vn!==void 0?vn:1e3,function(Qn){const zn=Date.now(),Wn=kn[Hn];Kn||(Kn=zn),_n[qn]=Qn,kn[qn]=zn;let Nn=Hn,Dn=0;for(;Nn!==qn;)Dn+=_n[Nn++],Nn=Nn%e;if(qn=(qn+1)%e,qn===Hn&&(Hn=(Hn+1)%e),zn-Kn<vn)return;const In=Wn&&zn-Wn;return In?Math.round(Dn*1e3/In):void 0}}function p1(e,vn){let _n=0,kn=1e3/vn,qn,Hn;const Kn=(Qn,zn=Date.now())=>{_n=zn,qn=null,Hn&&(clearTimeout(Hn),Hn=null),e.apply(null,Qn)};return[(...Qn)=>{const zn=Date.now(),Wn=zn-_n;Wn>=kn?Kn(Qn,zn):(qn=Qn,Hn||(Hn=setTimeout(()=>{Hn=null,Kn(qn)},kn-Wn)))},()=>qn&&Kn(qn)]}const Wa=(e,vn,_n=3)=>{let kn=0;const qn=f1(50,250);return p1(Hn=>{const Kn=Hn.loaded,Qn=Hn.lengthComputable?Hn.total:void 0,zn=Kn-kn,Wn=qn(zn),Nn=Kn<=Qn;kn=Kn;const Dn={loaded:Kn,total:Qn,progress:Qn?Kn/Qn:void 0,bytes:zn,rate:Wn||void 0,estimated:Wn&&Qn&&Nn?(Qn-Kn)/Wn:void 0,event:Hn,lengthComputable:Qn!=null,[vn?"download":"upload"]:!0};e(Dn)},_n)},Zd=(e,vn)=>{const _n=e!=null;return[kn=>vn[0]({lengthComputable:_n,total:e,loaded:kn}),vn[1]]},Qd=e=>(...vn)=>ue$4.asap(()=>e(...vn)),g1=bn$1.hasStandardBrowserEnv?((e,vn)=>_n=>(_n=new URL(_n,bn$1.origin),e.protocol===_n.protocol&&e.host===_n.host&&(vn||e.port===_n.port)))(new URL(bn$1.origin),bn$1.navigator&&/(msie|trident)/i.test(bn$1.navigator.userAgent)):()=>!0,m1=bn$1.hasStandardBrowserEnv?{write(e,vn,_n,kn,qn,Hn){const Kn=[e+"="+encodeURIComponent(vn)];ue$4.isNumber(_n)&&Kn.push("expires="+new Date(_n).toGMTString()),ue$4.isString(kn)&&Kn.push("path="+kn),ue$4.isString(qn)&&Kn.push("domain="+qn),Hn===!0&&Kn.push("secure"),document.cookie=Kn.join("; ")},read(e){const vn=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return vn?decodeURIComponent(vn[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function v1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function y1(e,vn){return vn?e.replace(/\/?\/$/,"")+"/"+vn.replace(/^\/+/,""):e}function Gp(e,vn){return e&&!v1(vn)?y1(e,vn):vn}const Xd=e=>e instanceof Fn?{...e}:e;function Fr(e,vn){vn=vn||{};const _n={};function kn(Wn,Nn,Dn,In){return ue$4.isPlainObject(Wn)&&ue$4.isPlainObject(Nn)?ue$4.merge.call({caseless:In},Wn,Nn):ue$4.isPlainObject(Nn)?ue$4.merge({},Nn):ue$4.isArray(Nn)?Nn.slice():Nn}function qn(Wn,Nn,Dn,In){if(ue$4.isUndefined(Nn)){if(!ue$4.isUndefined(Wn))return kn(void 0,Wn,Dn,In)}else return kn(Wn,Nn,Dn,In)}function Hn(Wn,Nn){if(!ue$4.isUndefined(Nn))return kn(void 0,Nn)}function Kn(Wn,Nn){if(ue$4.isUndefined(Nn)){if(!ue$4.isUndefined(Wn))return kn(void 0,Wn)}else return kn(void 0,Nn)}function Qn(Wn,Nn,Dn){if(Dn in vn)return kn(Wn,Nn);if(Dn in e)return kn(void 0,Wn)}const zn={url:Hn,method:Hn,data:Hn,baseURL:Kn,transformRequest:Kn,transformResponse:Kn,paramsSerializer:Kn,timeout:Kn,timeoutMessage:Kn,withCredentials:Kn,withXSRFToken:Kn,adapter:Kn,responseType:Kn,xsrfCookieName:Kn,xsrfHeaderName:Kn,onUploadProgress:Kn,onDownloadProgress:Kn,decompress:Kn,maxContentLength:Kn,maxBodyLength:Kn,beforeRedirect:Kn,transport:Kn,httpAgent:Kn,httpsAgent:Kn,cancelToken:Kn,socketPath:Kn,responseEncoding:Kn,validateStatus:Qn,headers:(Wn,Nn,Dn)=>qn(Xd(Wn),Xd(Nn),Dn,!0)};return ue$4.forEach(Object.keys(Object.assign({},e,vn)),function(Wn){const Nn=zn[Wn]||qn,Dn=Nn(e[Wn],vn[Wn],Wn);ue$4.isUndefined(Dn)&&Nn!==Qn||(_n[Wn]=Dn)}),_n}const Kp=e=>{const vn=Fr({},e);let{data:_n,withXSRFToken:kn,xsrfHeaderName:qn,xsrfCookieName:Hn,headers:Kn,auth:Qn}=vn;vn.headers=Kn=Fn.from(Kn),vn.url=zp(Gp(vn.baseURL,vn.url),e.params,e.paramsSerializer),Qn&&Kn.set("Authorization","Basic "+btoa((Qn.username||"")+":"+(Qn.password?unescape(encodeURIComponent(Qn.password)):"")));let zn;if(ue$4.isFormData(_n)){if(bn$1.hasStandardBrowserEnv||bn$1.hasStandardBrowserWebWorkerEnv)Kn.setContentType(void 0);else if((zn=Kn.getContentType())!==!1){const[Wn,...Nn]=zn?zn.split(";").map(Dn=>Dn.trim()).filter(Boolean):[];Kn.setContentType([Wn||"multipart/form-data",...Nn].join("; "))}}if(bn$1.hasStandardBrowserEnv&&(kn&&ue$4.isFunction(kn)&&(kn=kn(vn)),kn||kn!==!1&&g1(vn.url))){const Wn=qn&&Hn&&m1.read(Hn);Wn&&Kn.set(qn,Wn)}return vn},w1=typeof XMLHttpRequest<"u",b1=w1&&function(e){return new Promise(function(vn,_n){const kn=Kp(e);let qn=kn.data;const Hn=Fn.from(kn.headers).normalize();let{responseType:Kn,onUploadProgress:Qn,onDownloadProgress:zn}=kn,Wn,Nn,Dn,In,Bn;function Ln(){In&&In(),Bn&&Bn(),kn.cancelToken&&kn.cancelToken.unsubscribe(Wn),kn.signal&&kn.signal.removeEventListener("abort",Wn)}let Pn=new XMLHttpRequest;Pn.open(kn.method.toUpperCase(),kn.url,!0),Pn.timeout=kn.timeout;function Zn(){if(!Pn)return;const Xn=Fn.from("getAllResponseHeaders"in Pn&&Pn.getAllResponseHeaders()),mi={data:!Kn||Kn==="text"||Kn==="json"?Pn.responseText:Pn.response,status:Pn.status,statusText:Pn.statusText,headers:Xn,config:e,request:Pn};jp(function(ci){vn(ci),Ln()},function(ci){_n(ci),Ln()},mi),Pn=null}"onloadend"in Pn?Pn.onloadend=Zn:Pn.onreadystatechange=function(){!Pn||Pn.readyState!==4||Pn.status===0&&!(Pn.responseURL&&Pn.responseURL.indexOf("file:")===0)||setTimeout(Zn)},Pn.onabort=function(){Pn&&(_n(new Ye$3("Request aborted",Ye$3.ECONNABORTED,e,Pn)),Pn=null)},Pn.onerror=function(){_n(new Ye$3("Network Error",Ye$3.ERR_NETWORK,e,Pn)),Pn=null},Pn.ontimeout=function(){let Xn=kn.timeout?"timeout of "+kn.timeout+"ms exceeded":"timeout exceeded";const mi=kn.transitional||Hp;kn.timeoutErrorMessage&&(Xn=kn.timeoutErrorMessage),_n(new Ye$3(Xn,mi.clarifyTimeoutError?Ye$3.ETIMEDOUT:Ye$3.ECONNABORTED,e,Pn)),Pn=null},qn===void 0&&Hn.setContentType(null),"setRequestHeader"in Pn&&ue$4.forEach(Hn.toJSON(),function(Xn,mi){Pn.setRequestHeader(mi,Xn)}),ue$4.isUndefined(kn.withCredentials)||(Pn.withCredentials=!!kn.withCredentials),Kn&&Kn!=="json"&&(Pn.responseType=kn.responseType),zn&&([Dn,Bn]=Wa(zn,!0),Pn.addEventListener("progress",Dn)),Qn&&Pn.upload&&([Nn,In]=Wa(Qn),Pn.upload.addEventListener("progress",Nn),Pn.upload.addEventListener("loadend",In)),(kn.cancelToken||kn.signal)&&(Wn=Xn=>{Pn&&(_n(!Xn||Xn.type?new wo(null,e,Pn):Xn),Pn.abort(),Pn=null)},kn.cancelToken&&kn.cancelToken.subscribe(Wn),kn.signal&&(kn.signal.aborted?Wn():kn.signal.addEventListener("abort",Wn)));const Jn=d1(kn.url);if(Jn&&bn$1.protocols.indexOf(Jn)===-1){_n(new Ye$3("Unsupported protocol "+Jn+":",Ye$3.ERR_BAD_REQUEST,e));return}Pn.send(qn||null)})},x1=(e,vn)=>{const{length:_n}=e=e?e.filter(Boolean):[];if(vn||_n){let kn=new AbortController,qn;const Hn=function(Wn){if(!qn){qn=!0,Qn();const Nn=Wn instanceof Error?Wn:this.reason;kn.abort(Nn instanceof Ye$3?Nn:new wo(Nn instanceof Error?Nn.message:Nn))}};let Kn=vn&&setTimeout(()=>{Kn=null,Hn(new Ye$3(`timeout ${vn} of ms exceeded`,Ye$3.ETIMEDOUT))},vn);const Qn=()=>{e&&(Kn&&clearTimeout(Kn),Kn=null,e.forEach(Wn=>{Wn.unsubscribe?Wn.unsubscribe(Hn):Wn.removeEventListener("abort",Hn)}),e=null)};e.forEach(Wn=>Wn.addEventListener("abort",Hn));const{signal:zn}=kn;return zn.unsubscribe=()=>ue$4.asap(Qn),zn}},_1=function*(e,vn){let _n=e.byteLength;if(_n<vn){yield e;return}let kn=0,qn;for(;kn<_n;)qn=kn+vn,yield e.slice(kn,qn),kn=qn},S1=async function*(e,vn){for await(const _n of k1(e))yield*_1(_n,vn)},k1=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const vn=e.getReader();try{for(;;){const{done:_n,value:kn}=await vn.read();if(_n)break;yield kn}}finally{await vn.cancel()}},Jd=(e,vn,_n,kn)=>{const qn=S1(e,vn);let Hn=0,Kn,Qn=zn=>{Kn||(Kn=!0,kn&&kn(zn))};return new ReadableStream({async pull(zn){try{const{done:Wn,value:Nn}=await qn.next();if(Wn){Qn(),zn.close();return}let Dn=Nn.byteLength;if(_n){let In=Hn+=Dn;_n(In)}zn.enqueue(new Uint8Array(Nn))}catch(Wn){throw Qn(Wn),Wn}},cancel(zn){return Qn(zn),qn.return()}},{highWaterMark:2})},qa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",qp=qa&&typeof ReadableStream=="function",C1=qa&&(typeof TextEncoder=="function"?(e=>vn=>e.encode(vn))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Yp=(e,...vn)=>{try{return!!e(...vn)}catch{return!1}},A1=qp&&Yp(()=>{let e=!1;const vn=new Request(bn$1.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!vn}),ef=64*1024,uu=qp&&Yp(()=>ue$4.isReadableStream(new Response("").body)),Pa={stream:uu&&(e=>e.body)};qa&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(vn=>{!Pa[vn]&&(Pa[vn]=ue$4.isFunction(e[vn])?_n=>_n[vn]():(_n,kn)=>{throw new Ye$3(`Response type '${vn}' is not supported`,Ye$3.ERR_NOT_SUPPORT,kn)})})})(new Response);const $1=async e=>{if(e==null)return 0;if(ue$4.isBlob(e))return e.size;if(ue$4.isSpecCompliantForm(e))return(await new Request(bn$1.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ue$4.isArrayBufferView(e)||ue$4.isArrayBuffer(e))return e.byteLength;if(ue$4.isURLSearchParams(e)&&(e=e+""),ue$4.isString(e))return(await C1(e)).byteLength},T1=async(e,vn)=>ue$4.toFiniteNumber(e.getContentLength())??$1(vn),M1=qa&&(async e=>{let{url:vn,method:_n,data:kn,signal:qn,cancelToken:Hn,timeout:Kn,onDownloadProgress:Qn,onUploadProgress:zn,responseType:Wn,headers:Nn,withCredentials:Dn="same-origin",fetchOptions:In}=Kp(e);Wn=Wn?(Wn+"").toLowerCase():"text";let Bn=x1([qn,Hn&&Hn.toAbortSignal()],Kn),Ln;const Pn=Bn&&Bn.unsubscribe&&(()=>{Bn.unsubscribe()});let Zn;try{if(zn&&A1&&_n!=="get"&&_n!=="head"&&(Zn=await T1(Nn,kn))!==0){let oi=new Request(vn,{method:"POST",body:kn,duplex:"half"}),ei;if(ue$4.isFormData(kn)&&(ei=oi.headers.get("content-type"))&&Nn.setContentType(ei),oi.body){const[fi,gi]=Zd(Zn,Wa(Qd(zn)));kn=Jd(oi.body,ef,fi,gi)}}ue$4.isString(Dn)||(Dn=Dn?"include":"omit");const Jn="credentials"in Request.prototype;Ln=new Request(vn,{...In,signal:Bn,method:_n.toUpperCase(),headers:Nn.normalize().toJSON(),body:kn,duplex:"half",credentials:Jn?Dn:void 0});let Xn=await fetch(Ln);const mi=uu&&(Wn==="stream"||Wn==="response");if(uu&&(Qn||mi&&Pn)){const oi={};["status","statusText","headers"].forEach(yi=>{oi[yi]=Xn[yi]});const ei=ue$4.toFiniteNumber(Xn.headers.get("content-length")),[fi,gi]=Qn&&Zd(ei,Wa(Qd(Qn),!0))||[];Xn=new Response(Jd(Xn.body,ef,fi,()=>{gi&&gi(),Pn&&Pn()}),oi)}Wn=Wn||"text";let ci=await Pa[ue$4.findKey(Pa,Wn)||"text"](Xn,e);return!mi&&Pn&&Pn(),await new Promise((oi,ei)=>{jp(oi,ei,{data:ci,headers:Fn.from(Xn.headers),status:Xn.status,statusText:Xn.statusText,config:e,request:Ln})})}catch(Jn){throw Pn&&Pn(),Jn&&Jn.name==="TypeError"&&/fetch/i.test(Jn.message)?Object.assign(new Ye$3("Network Error",Ye$3.ERR_NETWORK,e,Ln),{cause:Jn.cause||Jn}):Ye$3.from(Jn,Jn&&Jn.code,e,Ln)}}),hu={http:Vx,xhr:b1,fetch:M1};ue$4.forEach(hu,(e,vn)=>{if(e){try{Object.defineProperty(e,"name",{value:vn})}catch{}Object.defineProperty(e,"adapterName",{value:vn})}});const tf=e=>`- ${e}`,L1=e=>ue$4.isFunction(e)||e===null||e===!1,Zp={getAdapter:e=>{e=ue$4.isArray(e)?e:[e];const{length:vn}=e;let _n,kn;const qn={};for(let Hn=0;Hn<vn;Hn++){_n=e[Hn];let Kn;if(kn=_n,!L1(_n)&&(kn=hu[(Kn=String(_n)).toLowerCase()],kn===void 0))throw new Ye$3(`Unknown adapter '${Kn}'`);if(kn)break;qn[Kn||"#"+Hn]=kn}if(!kn){const Hn=Object.entries(qn).map(([Qn,zn])=>`adapter ${Qn} `+(zn===!1?"is not supported by the environment":"is not available in the build"));let Kn=vn?Hn.length>1?`since :
1378
+ `+Hn.map(tf).join(`
1379
+ `):" "+tf(Hn[0]):"as no adapter specified";throw new Ye$3("There is no suitable adapter to dispatch the request "+Kn,"ERR_NOT_SUPPORT")}return kn},adapters:hu};function xc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wo(null,e)}function nf(e){return xc(e),e.headers=Fn.from(e.headers),e.data=bc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Zp.getAdapter(e.adapter||ks.adapter)(e).then(function(vn){return xc(e),vn.data=bc.call(e,e.transformResponse,vn),vn.headers=Fn.from(vn.headers),vn},function(vn){return Vp(vn)||(xc(e),vn&&vn.response&&(vn.response.data=bc.call(e,e.transformResponse,vn.response),vn.response.headers=Fn.from(vn.response.headers))),Promise.reject(vn)})}const Qp="1.7.9",Ya={};["object","boolean","number","function","string","symbol"].forEach((e,vn)=>{Ya[e]=function(_n){return typeof _n===e||"a"+(vn<1?"n ":" ")+e}});const rf={};Ya.transitional=function(e,vn,_n){function kn(qn,Hn){return"[Axios v"+Qp+"] Transitional option '"+qn+"'"+Hn+(_n?". "+_n:"")}return(qn,Hn,Kn)=>{if(e===!1)throw new Ye$3(kn(Hn," has been removed"+(vn?" in "+vn:"")),Ye$3.ERR_DEPRECATED);return vn&&!rf[Hn]&&(rf[Hn]=!0,console.warn(kn(Hn," has been deprecated since v"+vn+" and will be removed in the near future"))),e?e(qn,Hn,Kn):!0}},Ya.spelling=function(e){return(vn,_n)=>(console.warn(`${_n} is likely a misspelling of ${e}`),!0)};function R1(e,vn,_n){if(typeof e!="object")throw new Ye$3("options must be an object",Ye$3.ERR_BAD_OPTION_VALUE);const kn=Object.keys(e);let qn=kn.length;for(;qn-- >0;){const Hn=kn[qn],Kn=vn[Hn];if(Kn){const Qn=e[Hn],zn=Qn===void 0||Kn(Qn,Hn,e);if(zn!==!0)throw new Ye$3("option "+Hn+" must be "+zn,Ye$3.ERR_BAD_OPTION_VALUE);continue}if(_n!==!0)throw new Ye$3("Unknown option "+Hn,Ye$3.ERR_BAD_OPTION)}}const Da={assertOptions:R1,validators:Ya},ki=Da.validators;class Dr{constructor(vn){this.defaults=vn,this.interceptors={request:new qd,response:new qd}}async request(vn,_n){try{return await this._request(vn,_n)}catch(kn){if(kn instanceof Error){let qn={};Error.captureStackTrace?Error.captureStackTrace(qn):qn=new Error;const Hn=qn.stack?qn.stack.replace(/^.+\n/,""):"";try{kn.stack?Hn&&!String(kn.stack).endsWith(Hn.replace(/^.+\n.+\n/,""))&&(kn.stack+=`
1380
+ `+Hn):kn.stack=Hn}catch{}}throw kn}}_request(vn,_n){typeof vn=="string"?(_n=_n||{},_n.url=vn):_n=vn||{},_n=Fr(this.defaults,_n);const{transitional:kn,paramsSerializer:qn,headers:Hn}=_n;kn!==void 0&&Da.assertOptions(kn,{silentJSONParsing:ki.transitional(ki.boolean),forcedJSONParsing:ki.transitional(ki.boolean),clarifyTimeoutError:ki.transitional(ki.boolean)},!1),qn!=null&&(ue$4.isFunction(qn)?_n.paramsSerializer={serialize:qn}:Da.assertOptions(qn,{encode:ki.function,serialize:ki.function},!0)),Da.assertOptions(_n,{baseUrl:ki.spelling("baseURL"),withXsrfToken:ki.spelling("withXSRFToken")},!0),_n.method=(_n.method||this.defaults.method||"get").toLowerCase();let Kn=Hn&&ue$4.merge(Hn.common,Hn[_n.method]);Hn&&ue$4.forEach(["delete","get","head","post","put","patch","common"],Ln=>{delete Hn[Ln]}),_n.headers=Fn.concat(Kn,Hn);const Qn=[];let zn=!0;this.interceptors.request.forEach(function(Ln){typeof Ln.runWhen=="function"&&Ln.runWhen(_n)===!1||(zn=zn&&Ln.synchronous,Qn.unshift(Ln.fulfilled,Ln.rejected))});const Wn=[];this.interceptors.response.forEach(function(Ln){Wn.push(Ln.fulfilled,Ln.rejected)});let Nn,Dn=0,In;if(!zn){const Ln=[nf.bind(this),void 0];for(Ln.unshift.apply(Ln,Qn),Ln.push.apply(Ln,Wn),In=Ln.length,Nn=Promise.resolve(_n);Dn<In;)Nn=Nn.then(Ln[Dn++],Ln[Dn++]);return Nn}In=Qn.length;let Bn=_n;for(Dn=0;Dn<In;){const Ln=Qn[Dn++],Pn=Qn[Dn++];try{Bn=Ln(Bn)}catch(Zn){Pn.call(this,Zn);break}}try{Nn=nf.call(this,Bn)}catch(Ln){return Promise.reject(Ln)}for(Dn=0,In=Wn.length;Dn<In;)Nn=Nn.then(Wn[Dn++],Wn[Dn++]);return Nn}getUri(vn){vn=Fr(this.defaults,vn);const _n=Gp(vn.baseURL,vn.url);return zp(_n,vn.params,vn.paramsSerializer)}}ue$4.forEach(["delete","get","head","options"],function(e){Dr.prototype[e]=function(vn,_n){return this.request(Fr(_n||{},{method:e,url:vn,data:(_n||{}).data}))}}),ue$4.forEach(["post","put","patch"],function(e){function vn(_n){return function(kn,qn,Hn){return this.request(Fr(Hn||{},{method:e,headers:_n?{"Content-Type":"multipart/form-data"}:{},url:kn,data:qn}))}}Dr.prototype[e]=vn(),Dr.prototype[e+"Form"]=vn(!0)});class Tu{constructor(vn){if(typeof vn!="function")throw new TypeError("executor must be a function.");let _n;this.promise=new Promise(function(qn){_n=qn});const kn=this;this.promise.then(qn=>{if(!kn._listeners)return;let Hn=kn._listeners.length;for(;Hn-- >0;)kn._listeners[Hn](qn);kn._listeners=null}),this.promise.then=qn=>{let Hn;const Kn=new Promise(Qn=>{kn.subscribe(Qn),Hn=Qn}).then(qn);return Kn.cancel=function(){kn.unsubscribe(Hn)},Kn},vn(function(qn,Hn,Kn){kn.reason||(kn.reason=new wo(qn,Hn,Kn),_n(kn.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(vn){if(this.reason){vn(this.reason);return}this._listeners?this._listeners.push(vn):this._listeners=[vn]}unsubscribe(vn){if(!this._listeners)return;const _n=this._listeners.indexOf(vn);_n!==-1&&this._listeners.splice(_n,1)}toAbortSignal(){const vn=new AbortController,_n=kn=>{vn.abort(kn)};return this.subscribe(_n),vn.signal.unsubscribe=()=>this.unsubscribe(_n),vn.signal}static source(){let vn;return{token:new Tu(function(_n){vn=_n}),cancel:vn}}}function E1(e){return function(vn){return e.apply(null,vn)}}function I1(e){return ue$4.isObject(e)&&e.isAxiosError===!0}const du={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(du).forEach(([e,vn])=>{du[vn]=e});function Xp(e){const vn=new Dr(e),_n=Mp(Dr.prototype.request,vn);return ue$4.extend(_n,Dr.prototype,vn,{allOwnKeys:!0}),ue$4.extend(_n,vn,null,{allOwnKeys:!0}),_n.create=function(kn){return Xp(Fr(e,kn))},_n}const Qt$1=Xp(ks);Qt$1.Axios=Dr,Qt$1.CanceledError=wo,Qt$1.CancelToken=Tu,Qt$1.isCancel=Vp,Qt$1.VERSION=Qp,Qt$1.toFormData=Ka,Qt$1.AxiosError=Ye$3,Qt$1.Cancel=Qt$1.CanceledError,Qt$1.all=function(e){return Promise.all(e)},Qt$1.spread=E1,Qt$1.isAxiosError=I1,Qt$1.mergeConfig=Fr,Qt$1.AxiosHeaders=Fn,Qt$1.formToJSON=e=>Up(ue$4.isHTMLForm(e)?new FormData(e):e),Qt$1.getAdapter=Zp.getAdapter,Qt$1.HttpStatusCode=du,Qt$1.default=Qt$1;const Mu=Qt$1.create({baseURL:location.origin,timeout:6e4,params:{}});Mu.interceptors.response.use(e=>e,e=>{var vn,_n,kn,qn,Hn,Kn,Qn,zn,Wn,Nn,Dn;if(e.response){if(e.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(Ln){Ln&&OpenC3Auth.setTokens()}),e.response.config.headers["Ignore-Errors"]&&e.response.config.headers["Ignore-Errors"].includes(e.response.status.toString()))return Promise.reject(e);let In=`HTTP ${e.response.status} - `;(vn=e.response)!=null&&vn.statusText&&(In+=`${e.response.statusText} `),(kn=(_n=e.response)==null?void 0:_n.config)!=null&&kn.data&&(In+=`${e.response.config.data} `),(Hn=(qn=e.response)==null?void 0:qn.data)!=null&&Hn.message?In+=`${e.response.data.message}`:(Qn=(Kn=e.response)==null?void 0:Kn.data)!=null&&Qn.exception?In+=`${e.response.data.exception}`:(Nn=(Wn=(zn=e.response)==null?void 0:zn.data)==null?void 0:Wn.error)!=null&&Nn.message?(e.response.data.error.class&&(In+=`${e.response.data.error.class} `),In+=`${e.response.data.error.message}`):In+=`${(Dn=e.response)==null?void 0:Dn.data}`;const{$cosmosNotify:Bn}=window;throw Bn&&Bn.serious({title:"Network error",body:In}),e}else throw e});const Ta=async function(e,vn,{data:_n,params:kn={},headers:qn,noAuth:Hn=!1,noScope:Kn=!1,onUploadProgress:Qn=!1}={}){if(!Hn){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}qn.Authorization=localStorage.openc3Token}return qn.manual=!0,!Kn&&!kn.scope&&(kn.scope=window.openc3Scope),Mu({method:e,url:vn,data:_n,params:kn,headers:qn,onUploadProgress:Qn})},fu={Accept:"application/json"},of={...fu,"Content-Type":"application/json"},Ok={get:function(e,{params:vn,headers:_n=fu,noScope:kn,noAuth:qn,onUploadProgress:Hn}={}){return Ta("get",e,{params:vn,headers:_n,noScope:kn,noAuth:qn,onUploadProgress:Hn})},put:function(e,{data:vn,params:_n,headers:kn=of,noScope:qn,noAuth:Hn,onUploadProgress:Kn}={}){return Ta("put",e,{data:vn,params:_n,headers:kn,noScope:qn,noAuth:Hn,onUploadProgress:Kn})},post:function(e,{data:vn,params:_n,headers:kn=of,noScope:qn,noAuth:Hn,onUploadProgress:Kn}={}){return Ta("post",e,{data:vn,params:_n,headers:kn,noScope:qn,noAuth:Hn,onUploadProgress:Kn})},delete:function(e,{params:vn,headers:_n=fu,noScope:kn,noAuth:qn,onUploadProgress:Hn}={}){return Ta("delete",e,{params:vn,headers:_n,noScope:kn,noAuth:qn,onUploadProgress:Hn})}};var Na={logger:typeof console<"u"?console:void 0,WebSocket:typeof WebSocket<"u"?WebSocket:void 0},Ft$1={log(...e){this.enabled&&(e.push(Date.now()),Na.logger.log("[ActionCable]",...e))}};const ps=()=>new Date().getTime(),Ma=e=>(ps()-e)/1e3;class Za{constructor(vn){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=vn,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=ps(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),Ft$1.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=ps(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),Ft$1.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=ps()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,Ft$1.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=ps(),Ft$1.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout(()=>{this.reconnectIfStale(),this.poll()},this.getPollInterval())}getPollInterval(){const{staleThreshold:vn,reconnectionBackoffRate:_n}=this.constructor,kn=Math.pow(1+_n,Math.min(this.reconnectAttempts,10)),qn=(this.reconnectAttempts===0?1:_n)*Math.random();return vn*1e3*kn*(1+qn)}reconnectIfStale(){this.connectionIsStale()&&(Ft$1.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${Ma(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?Ft$1.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${Ma(this.disconnectedAt)} s`):(Ft$1.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return Ma(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&Ma(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){document.visibilityState==="visible"&&setTimeout(()=>{(this.connectionIsStale()||!this.connection.isOpen())&&(Ft$1.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}}Za.staleThreshold=6,Za.reconnectionBackoffRate=.15;var Jp={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart",remote:"remote"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]};const{message_types:hs,protocols:pu}=Jp,O1=pu.slice(0,pu.length-1),sf=[].indexOf;class Lu{constructor(vn){this.open=this.open.bind(this),this.consumer=vn,this.subscriptions=this.consumer.subscriptions,this.monitor=new Za(this),this.disconnected=!0}send(vn){return this.isOpen()?(this.webSocket.send(JSON.stringify(vn)),!0):!1}open(){if(this.isActive())return Ft$1.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const vn=[...pu,...this.consumer.subprotocols||[]];return Ft$1.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${vn}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new Na.WebSocket(this.consumer.url,vn),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:vn}={allowReconnect:!0}){if(vn||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(Ft$1.log(`Reopening WebSocket, current state is ${this.getState()}`),this.isActive())try{return this.close()}catch(vn){Ft$1.log("Failed to reopen WebSocket",vn)}finally{Ft$1.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`),setTimeout(this.open,this.constructor.reopenDelay)}else return this.open()}getProtocol(){if(this.webSocket)return this.webSocket.protocol}isOpen(){return this.isState("open")}isActive(){return this.isState("open","connecting")}triedToReconnect(){return this.monitor.reconnectAttempts>0}isProtocolSupported(){return sf.call(O1,this.getProtocol())>=0}isState(...vn){return sf.call(vn,this.getState())>=0}getState(){if(this.webSocket){for(let vn in Na.WebSocket)if(Na.WebSocket[vn]===this.webSocket.readyState)return vn.toLowerCase()}return null}installEventHandlers(){for(let vn in this.events){const _n=this.events[vn].bind(this);this.webSocket[`on${vn}`]=_n}}uninstallEventHandlers(){for(let vn in this.events)this.webSocket[`on${vn}`]=function(){}}}Lu.reopenDelay=500,Lu.prototype.events={message(e){if(!this.isProtocolSupported())return;const{identifier:vn,message:_n,reason:kn,reconnect:qn,type:Hn}=JSON.parse(e.data);switch(Hn){case hs.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case hs.disconnect:return Ft$1.log(`Disconnecting. Reason: ${kn}`),this.close({allowReconnect:qn});case hs.ping:return this.monitor.recordPing();case hs.confirmation:return this.subscriptions.confirmSubscription(vn),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(vn,"connected",{reconnected:!0})):this.subscriptions.notify(vn,"connected",{reconnected:!1});case hs.rejection:return this.subscriptions.reject(vn);default:return this.subscriptions.notify(vn,"received",_n)}},open(){if(Ft$1.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return Ft$1.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(e){if(Ft$1.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){Ft$1.log("WebSocket onerror event")}};const D1=function(e,vn){if(vn!=null)for(let _n in vn){const kn=vn[_n];e[_n]=kn}return e};class N1{constructor(vn,_n={},kn){this.consumer=vn,this.identifier=JSON.stringify(_n),D1(this,kn)}perform(vn,_n={}){return _n.action=vn,this.send(_n)}send(vn){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(vn)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class F1{constructor(vn){this.subscriptions=vn,this.pendingSubscriptions=[]}guarantee(vn){this.pendingSubscriptions.indexOf(vn)==-1?(Ft$1.log(`SubscriptionGuarantor guaranteeing ${vn.identifier}`),this.pendingSubscriptions.push(vn)):Ft$1.log(`SubscriptionGuarantor already guaranteeing ${vn.identifier}`),this.startGuaranteeing()}forget(vn){Ft$1.log(`SubscriptionGuarantor forgetting ${vn.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(_n=>_n!==vn)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&typeof this.subscriptions.subscribe=="function"&&this.pendingSubscriptions.map(vn=>{Ft$1.log(`SubscriptionGuarantor resubscribing ${vn.identifier}`),this.subscriptions.subscribe(vn)})},500)}}class W1{constructor(vn){this.consumer=vn,this.guarantor=new F1(this),this.subscriptions=[]}create(vn,_n){const kn=vn,qn=typeof kn=="object"?kn:{channel:kn},Hn=new N1(this.consumer,qn,_n);return this.add(Hn)}add(vn){return this.subscriptions.push(vn),this.consumer.ensureActiveConnection(),this.notify(vn,"initialized"),this.subscribe(vn),vn}remove(vn){return this.forget(vn),this.findAll(vn.identifier).length||this.sendCommand(vn,"unsubscribe"),vn}reject(vn){return this.findAll(vn).map(_n=>(this.forget(_n),this.notify(_n,"rejected"),_n))}forget(vn){return this.guarantor.forget(vn),this.subscriptions=this.subscriptions.filter(_n=>_n!==vn),vn}findAll(vn){return this.subscriptions.filter(_n=>_n.identifier===vn)}reload(){return this.subscriptions.map(vn=>this.subscribe(vn))}notifyAll(vn,..._n){return this.subscriptions.map(kn=>this.notify(kn,vn,..._n))}notify(vn,_n,...kn){let qn;return typeof vn=="string"?qn=this.findAll(vn):qn=[vn],qn.map(Hn=>typeof Hn[_n]=="function"?Hn[_n](...kn):void 0)}subscribe(vn){this.sendCommand(vn,"subscribe")&&this.guarantor.guarantee(vn)}confirmSubscription(vn){Ft$1.log(`Subscription confirmed ${vn}`),this.findAll(vn).map(_n=>this.guarantor.forget(_n))}sendCommand(vn,_n){const{identifier:kn}=vn;return this.consumer.send({command:_n,identifier:kn})}}class P1{constructor(vn){this._url=vn,this.subscriptions=new W1(this),this.connection=new Lu(this),this.subprotocols=[]}get url(){return B1(this._url)}send(vn){return this.connection.send(vn)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(vn){this.subprotocols=[...this.subprotocols,vn]}}function B1(e){if(typeof e=="function"&&(e=e()),e&&!/^wss?:/i.test(e)){const vn=document.createElement("a");return vn.href=e,vn.href=vn.href,vn.protocol=vn.protocol.replace("http","ws"),vn.href}else return e}function z1(e=H1("url")||Jp.default_mount_path){return new P1(e)}function H1(e){const vn=document.head.querySelector(`meta[name='action-cable-${e}']`);if(vn)return vn.getAttribute("content")}Za.staleThreshold=10;let Dk=class{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(e,vn,_n={},kn={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(qn=>{if(qn&&OpenC3Auth.setTokens(),this._cable==null){let Hn=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=z1(Hn)}return this._cable.subscriptions.create({channel:e,...kn},_n)})}recordPing(){this._cable.connection.monitor.recordPing()}};class af{constructor(vn,_n,kn="",qn=""){this.keyword=vn.keyword,this.parameters=vn.parameters,this.filename=vn.filename,this.line=vn.line,this.lineNumber=vn.lineNumber,this.message=_n,this.usage=kn,this.url=qn}}class Wk{constructor(){Lr(this,"id",1)}async exec(vn,_n,kn={},qn={},Hn=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return kn.scope=window.openc3Scope,qn.manual=!0,(await Mu.post("/openc3-api/api",{jsonrpc:"2.0",method:vn,params:_n,id:this.id,keyword_params:kn},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...qn},timeout:Hn})).data.result}catch(Kn){let Qn=new Error;throw Kn.response?(Qn.name=Kn.response.data.error.data.class,Qn.message=Kn.response.data.error.data.message,Qn.object=Kn.response.data.error):Kn.request?(Qn.name="Request error",Qn.message="Request error, no response received"):Qn.name="Unknown error",Qn}}decode_openc3_type(vn){if(vn!==null&&typeof vn=="object"&&vn.json_class=="Float"&&vn.raw){if(vn.raw=="NaN")return NaN;if(vn.raw=="Infinity")return 1/0;if(vn.raw=="-Infinity")return-1/0}return null}encode_openc3_type(vn){return Number.isNaN(vn)?{json_class:"Float",raw:"NaN"}:vn==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:vn==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(vn=>{vn&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(vn){return this.exec("set_offline_access",[vn])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(vn,_n){return this.exec("map_target_to_interface",[vn,_n])}connect_interface(vn,..._n){return _n.length>0?this.exec("connect_interface",[vn,..._n]):this.exec("connect_interface",[vn])}disconnect_interface(vn){return this.exec("disconnect_interface",[vn])}interface_cmd(vn,_n,...kn){return this.exec("interface_cmd",[vn,_n,...kn])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(vn){return this.exec("connect_router",[vn])}disconnect_router(vn){return this.exec("disconnect_router",[vn])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(vn){return this.exec("get_tlm_cnts",[vn])}get_item(vn,_n,kn){return this.exec("get_item",[vn,_n,kn])}get_param(vn,_n,kn){return this.exec("get_param",[vn,_n,kn])}get_parameter(vn,_n,kn){return this.exec("get_param",[vn,_n,kn])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(vn){return this.exec("set_limits_set",[vn])}get_target(vn){return this.exec("get_target",[vn])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(vn,_n){return this.exec("get_tlm",[vn,_n])}get_telemetry(vn,_n){return this.exec("get_tlm",[vn,_n])}get_all_tlm(vn){return this.exec("get_all_tlm",[vn])}get_all_telemetry(vn){return this.exec("get_all_tlm",[vn])}get_all_tlm_names(vn,_n=!1){return this.exec("get_all_tlm_names",[vn],{hidden:_n})}get_all_telemetry_names(vn){return this.exec("get_all_tlm_names",[vn])}async get_tlm_packet(vn,_n,kn,qn=30){const Hn=await this.exec("get_tlm_packet",[vn,_n],{type:kn,stale_time:qn});if(Hn!=null){let Kn=Hn.length,Qn=null;for(let zn=0;zn<Kn;zn++)Qn=this.decode_openc3_type(Hn[zn][1]),Qn!==null&&(Hn[zn][1]=Qn)}return Hn}get_packet_derived_items(vn,_n){return this.exec("get_packet_derived_items",[vn,_n])}get_tlm_buffer(vn,_n){return this.exec("get_tlm_buffer",[vn,_n])}async get_tlm_values(vn,_n=30,kn=null){let qn={stale_time:_n};kn!==null&&(qn.cache_timeout=kn);const Hn=await this.exec("get_tlm_values",[vn],qn,{},1e4);let Kn=Hn[0].length,Qn=null;for(let zn=0;zn<Kn;zn++)Qn=this.decode_openc3_type(Hn[0][zn]),Qn!==null&&(Hn[0][zn]=Qn);return Hn}get_limits(vn,_n,kn){return this.exec("get_limits",[vn,_n,kn])}async tlm(vn,_n,kn,qn="CONVERTED"){let Hn=null;if(_n===void 0)Hn=await this.exec("tlm",[vn]);else if(kn===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(_n))Hn=await this.exec("tlm",[vn],{type:_n});else{let Qn=new Error;throw Qn.name="TypeError",Qn.message=`Invalid data type ${_n}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,Qn}else Hn=await this.exec("tlm",[vn,_n,kn],{type:qn});let Kn=this.decode_openc3_type(Hn);return Kn!==null&&(Hn=Kn),Hn}async inject_tlm(vn,_n,kn=null,qn="CONVERTED"){data=await this.exec("inject_tlm",[vn,_n,kn],{type:qn})}set_tlm(vn,_n,kn,qn){return this.exec("set_tlm",[vn,_n,kn],{type:qn})}override_tlm(vn,_n,kn,qn){return this.exec("override_tlm",[vn,_n,kn],{type:qn})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(vn,_n,kn,qn){return this.exec("normalize_tlm",[vn,_n,kn],{type:qn})}get_all_cmds(vn){return this.exec("get_all_cmds",[vn])}get_all_commands(vn){return this.exec("get_all_cmds",[vn])}get_all_cmd_names(vn,_n=!1){return this.exec("get_all_cmd_names",[vn],{hidden:_n})}get_all_command_names(vn){return this.exec("get_all_cmd_names",[vn])}get_cmd(vn,_n){return this.exec("get_cmd",[vn,_n])}get_command(vn,_n){return this.exec("get_cmd",[vn,_n])}get_cmd_cnts(vn){return this.exec("get_cmd_cnts",[vn])}get_cmd_value(vn,_n,kn,qn="CONVERTED"){return this.exec("get_cmd_value",[vn,_n,kn,qn])}get_cmd_buffer(vn,_n){return this.exec("get_cmd_buffer",[vn,_n])}_cmd(vn,_n,kn,qn,Hn){let Kn=null;for(let Qn in qn)Object.prototype.hasOwnProperty.call(qn,Qn)&&(Kn=this.encode_openc3_type(qn[Qn]),Kn!==null&&(qn[Qn]=Kn));return this.exec(vn,[_n,kn,qn],{},Hn)}get_cmd_hazardous(vn,_n,kn,qn={}){return _n===void 0?this.exec("get_cmd_hazardous",vn,{},qn):this._cmd("get_cmd_hazardous",vn,_n,kn,qn)}cmd(vn,_n,kn,qn={}){return _n===void 0?this.exec("cmd",vn,{},qn):this._cmd("cmd",vn,_n,kn,qn)}cmd_no_range_check(vn,_n,kn,qn={}){return _n===void 0?this.exec("cmd_no_range_check",vn,{},qn):this._cmd("cmd_no_range_check",vn,_n,kn,qn)}cmd_raw(vn,_n,kn,qn={}){return _n===void 0?this.exec("cmd_raw",vn,{},qn):this._cmd("cmd_raw",vn,_n,kn,qn)}cmd_raw_no_range_check(vn,_n,kn,qn={}){return _n===void 0?this.exec("cmd_raw_no_range_check",vn,{},qn):this._cmd("cmd_raw_no_range_check",vn,_n,kn,qn)}cmd_no_hazardous_check(vn,_n,kn,qn={}){return _n===void 0?this.exec("cmd_no_hazardous_check",vn,{},qn):this._cmd("cmd_no_hazardous_check",vn,_n,kn,qn)}cmd_no_checks(vn,_n,kn,qn={}){return _n===void 0?this.exec("cmd_no_checks",vn,{},qn):this._cmd("cmd_no_checks",vn,_n,kn,qn)}cmd_raw_no_hazardous_check(vn,_n,kn,qn={}){return _n===void 0?this.exec("cmd_raw_no_hazardous_check",vn,{},qn):this._cmd("cmd_raw_no_hazardous_check",vn,_n,kn,qn)}cmd_raw_no_checks(vn,_n,kn,qn={}){return _n===void 0?this.exec("cmd_raw_no_checks",vn,{},qn):this._cmd("cmd_raw_no_checks",vn,_n,kn,qn)}build_cmd(vn,_n,kn){return _n===void 0?this.exec("build_cmd",vn):this._cmd("build_cmd",vn,_n,kn)}build_command(vn,_n,kn){return _n===void 0?this.exec("build_cmd",vn):this._cmd("build_cmd",vn,_n,kn)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(vn,_n){return this.exec("send_raw",[vn,_n])}list_configs(vn){return this.exec("list_configs",[vn])}load_config(vn,_n){return this.exec("load_config",[vn,_n])}save_config(vn,_n,kn){return this.exec("save_config",[vn,_n,kn])}delete_config(vn,_n){return this.exec("delete_config",[vn,_n])}enable_limits(vn,_n,kn){return this.exec("enable_limits",[vn,_n,kn])}disable_limits(vn,_n,kn){return this.exec("disable_limits",[vn,_n,kn])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(vn){return this.exec("get_overall_limits_state",[vn])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(vn){return this.exec("get_setting",[vn])}get_settings(vn){return this.exec("get_settings",vn)}set_setting(vn,_n){return this.exec("set_setting",[vn,_n])}save_setting(vn,_n){return this.exec("set_setting",[vn,_n])}get_metrics(){return this.exec("get_metrics",[])}async hashString(vn){if(window.isSecureContext){const _n=new TextEncoder().encode(vn),kn=await crypto.subtle.digest("SHA-256",_n),qn=new Uint8Array(kn);return Array.from(qn).map(Hn=>Hn.toString(16).padStart(2,"0")).join("")}}}const U1={props:{config:{type:Object},packets:{type:Array}},data:function(){return{currentConfig:{},currentPackets:[],latestData:null}},computed:{hasRaw:function(){for(let e=0;e<this.currentPackets.length;e++)if(this.currentPackets[e].mode==="RAW")return!0;return!1},hasDecom:function(){for(let e=0;e<this.currentPackets.length;e++)if(this.currentPackets[e].mode==="DECOM")return!0;return!1}},watch:{currentConfig:{deep:!0,handler:function(e){this.$emit("config",e)}}},created:function(){this.config&&(this.currentConfig={...this.config}),this.packets&&(this.currentPackets=[...this.packets])},methods:{receive:function(e){this.latestData=e}}};var gs={exports:{}};/**
1381
+ * @license
1382
+ * Lodash <https://lodash.com/>
1383
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
1384
+ * Released under MIT license <https://lodash.com/license>
1385
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1386
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1387
+ */var V1=gs.exports,lf;function j1(){return lf||(lf=1,function(e,vn){(function(){var _n,kn="4.17.21",qn=200,Hn="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",Kn="Expected a function",Qn="Invalid `variable` option passed into `_.template`",zn="__lodash_hash_undefined__",Wn=500,Nn="__lodash_placeholder__",Dn=1,In=2,Bn=4,Ln=1,Pn=2,Zn=1,Jn=2,Xn=4,mi=8,ci=16,oi=32,ei=64,fi=128,gi=256,yi=512,pi=30,$i="...",si=800,ti=16,ai=1,vi=2,wi=3,xi=1/0,Si=9007199254740991,Ei=17976931348623157e292,Ri=NaN,Ni=4294967295,Fi=Ni-1,Ii=Ni>>>1,Vi=[["ary",fi],["bind",Zn],["bindKey",Jn],["curry",mi],["curryRight",ci],["flip",yi],["partial",oi],["partialRight",ei],["rearg",gi]],Gi="[object Arguments]",Pi="[object Array]",Zi="[object AsyncFunction]",lr="[object Boolean]",gr="[object Date]",or="[object DOMException]",yr="[object Error]",io="[object Function]",Po="[object GeneratorFunction]",lo="[object Map]",So="[object Number]",Xo="[object Null]",Do="[object Object]",Uo="[object Promise]",va="[object Proxy]",ss="[object RegExp]",Ko="[object Set]",Mr="[object String]",Vr="[object Symbol]",Zo="[object Undefined]",Hr="[object WeakMap]",Ji="[object WeakSet]",xr="[object ArrayBuffer]",kr="[object DataView]",Gr="[object Float32Array]",qr="[object Float64Array]",$o="[object Int8Array]",ko="[object Int16Array]",oo="[object Int32Array]",so="[object Uint8Array]",eo="[object Uint8ClampedArray]",Ho="[object Uint16Array]",Rs="[object Uint32Array]",ol=/\b__p \+= '';/g,js=/\b(__p \+=) '' \+/g,lh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ch=/&(?:amp|lt|gt|quot|#39);/g,Yh=/[&<>"']/g,Jg=RegExp(ch.source),Xg=RegExp(Yh.source),em=/<%-([\s\S]+?)%>/g,tm=/<%([\s\S]+?)%>/g,Ar=/<%=([\s\S]+?)%>/g,sl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ms=/^\w*$/,ya=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wa=/[\\^$.*+?()[\]{}|]/g,$l=RegExp(wa.source),Ns=/^\s+/,xl=/\s/,_l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qh=/\{\n\/\* \[wrapped with (.+)\] \*/,Kh=/,? & /,nm=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,im=/[()=,{}\[\]\/\s]/,al=/\\(\\)?/g,rm=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,kl=/\w*$/,Zh=/^[-+]0x[0-9a-f]+$/i,ba=/^0b[01]+$/i,as=/^\[object .+?Constructor\]$/,ns=/^0o[0-7]+$/i,is=/^(?:0|[1-9]\d*)$/,rc=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Is=/($^)/,zl=/['\n\r\u2028\u2029\\]/g,Hl="\\ud800-\\udfff",uh="\\u0300-\\u036f",oc="\\ufe20-\\ufe2f",Sl="\\u20d0-\\u20ff",sc=uh+oc+Sl,ac="\\u2700-\\u27bf",lc="a-z\\xdf-\\xf6\\xf8-\\xff",hh="\\xac\\xb1\\xd7\\xf7",dh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ph="\\u2000-\\u206f",gh=" \\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",ia="A-Z\\xc0-\\xd6\\xd8-\\xde",fh="\\ufe0e\\ufe0f",mh=hh+dh+ph+gh,Wl="['’]",Qh="["+Hl+"]",Jh="["+mh+"]",cc="["+sc+"]",Xh="\\d+",ed="["+ac+"]",vh="["+lc+"]",td="[^"+Hl+mh+Xh+ac+lc+ia+"]",Gu="\\ud83c[\\udffb-\\udfff]",yh="(?:"+cc+"|"+Gu+")",jl="[^"+Hl+"]",Cl="(?:\\ud83c[\\udde6-\\uddff]){2}",wh="[\\ud800-\\udbff][\\udc00-\\udfff]",$a="["+ia+"]",nd="\\u200d",id="(?:"+vh+"|"+td+")",om="(?:"+$a+"|"+td+")",ll="(?:"+Wl+"(?:d|ll|m|re|s|t|ve))?",Ul="(?:"+Wl+"(?:D|LL|M|RE|S|T|VE))?",Yu=yh+"?",Tl="["+fh+"]?",sm="(?:"+nd+"(?:"+[jl,Cl,wh].join("|")+")"+Tl+Yu+")*",Ml="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",am="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",bh=Tl+Yu+sm,$h="(?:"+[ed,Cl,wh].join("|")+")"+bh,xh="(?:"+[jl+cc+"?",cc,Cl,wh,Qh].join("|")+")",_h=RegExp(Wl,"g"),Al=RegExp(cc,"g"),xa=RegExp(Gu+"(?="+Gu+")|"+xh+bh,"g"),rd=RegExp([$a+"?"+vh+"+"+ll+"(?="+[Jh,$a,"$"].join("|")+")",om+"+"+Ul+"(?="+[Jh,$a+id,"$"].join("|")+")",$a+"?"+id+"+"+ll,$a+"+"+Ul,am,Ml,Xh,$h].join("|"),"g"),od=RegExp("["+nd+Hl+sc+fh+"]"),El=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ll=["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"],sd=-1,Io={};Io[Gr]=Io[qr]=Io[$o]=Io[ko]=Io[oo]=Io[so]=Io[eo]=Io[Ho]=Io[Rs]=!0,Io[Gi]=Io[Pi]=Io[xr]=Io[lr]=Io[kr]=Io[gr]=Io[yr]=Io[io]=Io[lo]=Io[So]=Io[Do]=Io[ss]=Io[Ko]=Io[Mr]=Io[Hr]=!1;var Br={};Br[Gi]=Br[Pi]=Br[xr]=Br[kr]=Br[lr]=Br[gr]=Br[Gr]=Br[qr]=Br[$o]=Br[ko]=Br[oo]=Br[lo]=Br[So]=Br[Do]=Br[ss]=Br[Ko]=Br[Mr]=Br[Vr]=Br[so]=Br[eo]=Br[Ho]=Br[Rs]=!0,Br[yr]=Br[io]=Br[Hr]=!1;var Fo={À:"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"},_a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ls={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},rs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},os=parseFloat,Oo=parseInt,cl=typeof hr=="object"&&hr&&hr.Object===Object&&hr,qu=typeof self=="object"&&self&&self.Object===Object&&self,cs=cl||qu||Function("return this")(),ra=vn&&!vn.nodeType&&vn,As=ra&&!0&&e&&!e.nodeType&&e,ad=As&&As.exports===ra,kh=ad&&cl.process,Us=function(){try{var ji=As&&As.require&&As.require("util").types;return ji||kh&&kh.binding&&kh.binding("util")}catch{}}(),ld=Us&&Us.isArrayBuffer,oa=Us&&Us.isDate,da=Us&&Us.isMap,ka=Us&&Us.isRegExp,ul=Us&&Us.isSet,cd=Us&&Us.isTypedArray;function Wo(ji,Qi,Ki){switch(Ki.length){case 0:return ji.call(Qi);case 1:return ji.call(Qi,Ki[0]);case 2:return ji.call(Qi,Ki[0],Ki[1]);case 3:return ji.call(Qi,Ki[0],Ki[1],Ki[2])}return ji.apply(Qi,Ki)}function lm(ji,Qi,Ki,wr){for(var Tr=-1,Zr=ji==null?0:ji.length;++Tr<Zr;){var Eo=ji[Tr];Qi(wr,Eo,Ki(Eo),ji)}return wr}function Ps(ji,Qi){for(var Ki=-1,wr=ji==null?0:ji.length;++Ki<wr&&Qi(ji[Ki],Ki,ji)!==!1;);return ji}function ud(ji,Qi){for(var Ki=ji==null?0:ji.length;Ki--&&Qi(ji[Ki],Ki,ji)!==!1;);return ji}function Rl(ji,Qi){for(var Ki=-1,wr=ji==null?0:ji.length;++Ki<wr;)if(!Qi(ji[Ki],Ki,ji))return!1;return!0}function Gs(ji,Qi){for(var Ki=-1,wr=ji==null?0:ji.length,Tr=0,Zr=[];++Ki<wr;){var Eo=ji[Ki];Qi(Eo,Ki,ji)&&(Zr[Tr++]=Eo)}return Zr}function Ku(ji,Qi){var Ki=ji==null?0:ji.length;return!!Ki&&hl(ji,Qi,0)>-1}function Gl(ji,Qi,Ki){for(var wr=-1,Tr=ji==null?0:ji.length;++wr<Tr;)if(Ki(Qi,ji[wr]))return!0;return!1}function zo(ji,Qi){for(var Ki=-1,wr=ji==null?0:ji.length,Tr=Array(wr);++Ki<wr;)Tr[Ki]=Qi(ji[Ki],Ki,ji);return Tr}function Ds(ji,Qi){for(var Ki=-1,wr=Qi.length,Tr=ji.length;++Ki<wr;)ji[Tr+Ki]=Qi[Ki];return ji}function sa(ji,Qi,Ki,wr){var Tr=-1,Zr=ji==null?0:ji.length;for(wr&&Zr&&(Ki=ji[++Tr]);++Tr<Zr;)Ki=Qi(Ki,ji[Tr],Tr,ji);return Ki}function Yl(ji,Qi,Ki,wr){var Tr=ji==null?0:ji.length;for(wr&&Tr&&(Ki=ji[--Tr]);Tr--;)Ki=Qi(Ki,ji[Tr],Tr,ji);return Ki}function Zu(ji,Qi){for(var Ki=-1,wr=ji==null?0:ji.length;++Ki<wr;)if(Qi(ji[Ki],Ki,ji))return!0;return!1}var Sh=Eh("length");function Ch(ji){return ji.split("")}function Qu(ji){return ji.match(nm)||[]}function Th(ji,Qi,Ki){var wr;return Ki(ji,function(Tr,Zr,Eo){if(Qi(Tr,Zr,Eo))return wr=Zr,!1}),wr}function ql(ji,Qi,Ki,wr){for(var Tr=ji.length,Zr=Ki+(wr?1:-1);wr?Zr--:++Zr<Tr;)if(Qi(ji[Zr],Zr,ji))return Zr;return-1}function hl(ji,Qi,Ki){return Qi===Qi?Kr(ji,Qi,Ki):ql(ji,Mh,Ki)}function hd(ji,Qi,Ki,wr){for(var Tr=Ki-1,Zr=ji.length;++Tr<Zr;)if(wr(ji[Tr],Qi))return Tr;return-1}function Mh(ji){return ji!==ji}function Ah(ji,Qi){var Ki=ji==null?0:ji.length;return Ki?Il(ji,Qi)/Ki:Ri}function Eh(ji){return function(Qi){return Qi==null?_n:Qi[ji]}}function Ju(ji){return function(Qi){return ji==null?_n:ji[Qi]}}function Lh(ji,Qi,Ki,wr,Tr){return Tr(ji,function(Zr,Eo,Jr){Ki=wr?(wr=!1,Zr):Qi(Ki,Zr,Eo,Jr)}),Ki}function Nl(ji,Qi){var Ki=ji.length;for(ji.sort(Qi);Ki--;)ji[Ki]=ji[Ki].value;return ji}function Il(ji,Qi){for(var Ki,wr=-1,Tr=ji.length;++wr<Tr;){var Zr=Qi(ji[wr]);Zr!==_n&&(Ki=Ki===_n?Zr:Ki+Zr)}return Ki}function Qo(ji,Qi){for(var Ki=-1,wr=Array(ji);++Ki<ji;)wr[Ki]=Qi(Ki);return wr}function dd(ji,Qi){return zo(Qi,function(Ki){return[Ki,ji[Ki]]})}function Go(ji){return ji&&ji.slice(0,Qr(ji)+1).replace(Ns,"")}function Os(ji){return function(Qi){return ji(Qi)}}function Kl(ji,Qi){return zo(Qi,function(Ki){return ji[Ki]})}function pa(ji,Qi){return ji.has(Qi)}function pd(ji,Qi){for(var Ki=-1,wr=ji.length;++Ki<wr&&hl(Qi,ji[Ki],0)>-1;);return Ki}function gd(ji,Qi){for(var Ki=ji.length;Ki--&&hl(Qi,ji[Ki],0)>-1;);return Ki}function Rh(ji,Qi){for(var Ki=ji.length,wr=0;Ki--;)ji[Ki]===Qi&&++wr;return wr}var _i=Ju(Fo),Mi=Ju(_a);function Di(ji){return"\\"+rs[ji]}function Oi(ji,Qi){return ji==null?_n:ji[Qi]}function Wi(ji){return od.test(ji)}function qi(ji){return El.test(ji)}function Xi(ji){for(var Qi,Ki=[];!(Qi=ji.next()).done;)Ki.push(Qi.value);return Ki}function fr(ji){var Qi=-1,Ki=Array(ji.size);return ji.forEach(function(wr,Tr){Ki[++Qi]=[Tr,wr]}),Ki}function mr(ji,Qi){return function(Ki){return ji(Qi(Ki))}}function vr(ji,Qi){for(var Ki=-1,wr=ji.length,Tr=0,Zr=[];++Ki<wr;){var Eo=ji[Ki];(Eo===Qi||Eo===Nn)&&(ji[Ki]=Nn,Zr[Tr++]=Ki)}return Zr}function br(ji){var Qi=-1,Ki=Array(ji.size);return ji.forEach(function(wr){Ki[++Qi]=wr}),Ki}function _r(ji){var Qi=-1,Ki=Array(ji.size);return ji.forEach(function(wr){Ki[++Qi]=[wr,wr]}),Ki}function Kr(ji,Qi,Ki){for(var wr=Ki-1,Tr=ji.length;++wr<Tr;)if(ji[wr]===Qi)return wr;return-1}function Ro(ji,Qi,Ki){for(var wr=Ki+1;wr--;)if(ji[wr]===Qi)return wr;return wr}function to(ji){return Wi(ji)?Ao(ji):Sh(ji)}function Yr(ji){return Wi(ji)?Yo(ji):Ch(ji)}function Qr(ji){for(var Qi=ji.length;Qi--&&xl.test(ji.charAt(Qi)););return Qi}var Sr=Ju(ls);function Ao(ji){for(var Qi=xa.lastIndex=0;xa.test(ji);)++Qi;return Qi}function Yo(ji){return ji.match(xa)||[]}function jo(ji){return ji.match(rd)||[]}var Bo=function ji(Qi){Qi=Qi==null?cs:Vo.defaults(cs.Object(),Qi,Vo.pick(cs,Ll));var Ki=Qi.Array,wr=Qi.Date,Tr=Qi.Error,Zr=Qi.Function,Eo=Qi.Math,Jr=Qi.Object,$s=Qi.RegExp,Fs=Qi.String,Cs=Qi.TypeError,Js=Ki.prototype,Ys=Zr.prototype,Xu=Jr.prototype,fd=Qi["__core-js_shared__"],md=Ys.toString,No=Xu.hasOwnProperty,Gy=0,nv=function(){var Mn=/[^.]+$/.exec(fd&&fd.keys&&fd.keys.IE_PROTO||"");return Mn?"Symbol(src)_1."+Mn:""}(),vd=Xu.toString,Yy=md.call(Jr),qy=cs._,Ky=$s("^"+md.call(No).replace(wa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yd=ad?Qi.Buffer:_n,Dl=Qi.Symbol,wd=Qi.Uint8Array,iv=yd?yd.allocUnsafe:_n,bd=mr(Jr.getPrototypeOf,Jr),rv=Jr.create,ov=Xu.propertyIsEnumerable,$d=Js.splice,sv=Dl?Dl.isConcatSpreadable:_n,Nh=Dl?Dl.iterator:_n,Zl=Dl?Dl.toStringTag:_n,xd=function(){try{var Mn=tc(Jr,"defineProperty");return Mn({},"",{}),Mn}catch{}}(),Zy=Qi.clearTimeout!==cs.clearTimeout&&Qi.clearTimeout,Qy=wr&&wr.now!==cs.Date.now&&wr.now,Jy=Qi.setTimeout!==cs.setTimeout&&Qi.setTimeout,_d=Eo.ceil,kd=Eo.floor,cm=Jr.getOwnPropertySymbols,Xy=yd?yd.isBuffer:_n,av=Qi.isFinite,ew=Js.join,tw=mr(Jr.keys,Jr),Ts=Eo.max,Bs=Eo.min,nw=wr.now,iw=Qi.parseInt,lv=Eo.random,rw=Js.reverse,um=tc(Qi,"DataView"),Ih=tc(Qi,"Map"),hm=tc(Qi,"Promise"),eh=tc(Qi,"Set"),Dh=tc(Qi,"WeakMap"),Oh=tc(Jr,"create"),Sd=Dh&&new Dh,th={},ow=nc(um),sw=nc(Ih),aw=nc(hm),lw=nc(eh),cw=nc(Dh),Cd=Dl?Dl.prototype:_n,Bh=Cd?Cd.valueOf:_n,cv=Cd?Cd.toString:_n;function Ai(Mn){if(Jo(Mn)&&!Xr(Mn)&&!(Mn instanceof To)){if(Mn instanceof aa)return Mn;if(No.call(Mn,"__wrapped__"))return uy(Mn)}return new aa(Mn)}var nh=function(){function Mn(){}return function(Yn){if(!qo(Yn))return{};if(rv)return rv(Yn);Mn.prototype=Yn;var li=new Mn;return Mn.prototype=_n,li}}();function Td(){}function aa(Mn,Yn){this.__wrapped__=Mn,this.__actions__=[],this.__chain__=!!Yn,this.__index__=0,this.__values__=_n}Ai.templateSettings={escape:em,evaluate:tm,interpolate:Ar,variable:"",imports:{_:Ai}},Ai.prototype=Td.prototype,Ai.prototype.constructor=Ai,aa.prototype=nh(Td.prototype),aa.prototype.constructor=aa;function To(Mn){this.__wrapped__=Mn,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ni,this.__views__=[]}function uw(){var Mn=new To(this.__wrapped__);return Mn.__actions__=qs(this.__actions__),Mn.__dir__=this.__dir__,Mn.__filtered__=this.__filtered__,Mn.__iteratees__=qs(this.__iteratees__),Mn.__takeCount__=this.__takeCount__,Mn.__views__=qs(this.__views__),Mn}function hw(){if(this.__filtered__){var Mn=new To(this);Mn.__dir__=-1,Mn.__filtered__=!0}else Mn=this.clone(),Mn.__dir__*=-1;return Mn}function dw(){var Mn=this.__wrapped__.value(),Yn=this.__dir__,li=Xr(Mn),bi=Yn<0,Ti=li?Mn.length:0,Li=k0(0,Ti,this.__views__),Bi=Li.start,zi=Li.end,Yi=zi-Bi,ir=bi?zi:Bi-1,ar=this.__iteratees__,pr=ar.length,$r=0,Cr=Bs(Yi,this.__takeCount__);if(!li||!bi&&Ti==Yi&&Cr==Yi)return Nv(Mn,this.__actions__);var jr=[];e:for(;Yi--&&$r<Cr;){ir+=Yn;for(var ro=-1,Ur=Mn[ir];++ro<pr;){var Co=ar[ro],Mo=Co.iteratee,ta=Co.type,Ws=Mo(Ur);if(ta==vi)Ur=Ws;else if(!Ws){if(ta==ai)continue e;break e}}jr[$r++]=Ur}return jr}To.prototype=nh(Td.prototype),To.prototype.constructor=To;function Ql(Mn){var Yn=-1,li=Mn==null?0:Mn.length;for(this.clear();++Yn<li;){var bi=Mn[Yn];this.set(bi[0],bi[1])}}function pw(){this.__data__=Oh?Oh(null):{},this.size=0}function gw(Mn){var Yn=this.has(Mn)&&delete this.__data__[Mn];return this.size-=Yn?1:0,Yn}function fw(Mn){var Yn=this.__data__;if(Oh){var li=Yn[Mn];return li===zn?_n:li}return No.call(Yn,Mn)?Yn[Mn]:_n}function mw(Mn){var Yn=this.__data__;return Oh?Yn[Mn]!==_n:No.call(Yn,Mn)}function vw(Mn,Yn){var li=this.__data__;return this.size+=this.has(Mn)?0:1,li[Mn]=Oh&&Yn===_n?zn:Yn,this}Ql.prototype.clear=pw,Ql.prototype.delete=gw,Ql.prototype.get=fw,Ql.prototype.has=mw,Ql.prototype.set=vw;function dl(Mn){var Yn=-1,li=Mn==null?0:Mn.length;for(this.clear();++Yn<li;){var bi=Mn[Yn];this.set(bi[0],bi[1])}}function yw(){this.__data__=[],this.size=0}function ww(Mn){var Yn=this.__data__,li=Md(Yn,Mn);if(li<0)return!1;var bi=Yn.length-1;return li==bi?Yn.pop():$d.call(Yn,li,1),--this.size,!0}function bw(Mn){var Yn=this.__data__,li=Md(Yn,Mn);return li<0?_n:Yn[li][1]}function $w(Mn){return Md(this.__data__,Mn)>-1}function xw(Mn,Yn){var li=this.__data__,bi=Md(li,Mn);return bi<0?(++this.size,li.push([Mn,Yn])):li[bi][1]=Yn,this}dl.prototype.clear=yw,dl.prototype.delete=ww,dl.prototype.get=bw,dl.prototype.has=$w,dl.prototype.set=xw;function pl(Mn){var Yn=-1,li=Mn==null?0:Mn.length;for(this.clear();++Yn<li;){var bi=Mn[Yn];this.set(bi[0],bi[1])}}function _w(){this.size=0,this.__data__={hash:new Ql,map:new(Ih||dl),string:new Ql}}function kw(Mn){var Yn=Hg(this,Mn).delete(Mn);return this.size-=Yn?1:0,Yn}function Sw(Mn){return Hg(this,Mn).get(Mn)}function Cw(Mn){return Hg(this,Mn).has(Mn)}function Tw(Mn,Yn){var li=Hg(this,Mn),bi=li.size;return li.set(Mn,Yn),this.size+=li.size==bi?0:1,this}pl.prototype.clear=_w,pl.prototype.delete=kw,pl.prototype.get=Sw,pl.prototype.has=Cw,pl.prototype.set=Tw;function Jl(Mn){var Yn=-1,li=Mn==null?0:Mn.length;for(this.__data__=new pl;++Yn<li;)this.add(Mn[Yn])}function Mw(Mn){return this.__data__.set(Mn,zn),this}function Aw(Mn){return this.__data__.has(Mn)}Jl.prototype.add=Jl.prototype.push=Mw,Jl.prototype.has=Aw;function ga(Mn){var Yn=this.__data__=new dl(Mn);this.size=Yn.size}function Ew(){this.__data__=new dl,this.size=0}function Lw(Mn){var Yn=this.__data__,li=Yn.delete(Mn);return this.size=Yn.size,li}function Rw(Mn){return this.__data__.get(Mn)}function Nw(Mn){return this.__data__.has(Mn)}function Iw(Mn,Yn){var li=this.__data__;if(li instanceof dl){var bi=li.__data__;if(!Ih||bi.length<qn-1)return bi.push([Mn,Yn]),this.size=++li.size,this;li=this.__data__=new pl(bi)}return li.set(Mn,Yn),this.size=li.size,this}ga.prototype.clear=Ew,ga.prototype.delete=Lw,ga.prototype.get=Rw,ga.prototype.has=Nw,ga.prototype.set=Iw;function uv(Mn,Yn){var li=Xr(Mn),bi=!li&&ic(Mn),Ti=!li&&!bi&&Fl(Mn),Li=!li&&!bi&&!Ti&&sh(Mn),Bi=li||bi||Ti||Li,zi=Bi?Qo(Mn.length,Fs):[],Yi=zi.length;for(var ir in Mn)(Yn||No.call(Mn,ir))&&!(Bi&&(ir=="length"||Ti&&(ir=="offset"||ir=="parent")||Li&&(ir=="buffer"||ir=="byteLength"||ir=="byteOffset")||vl(ir,Yi)))&&zi.push(ir);return zi}function hv(Mn){var Yn=Mn.length;return Yn?Mn[xm(0,Yn-1)]:_n}function Dw(Mn,Yn){return Wg(qs(Mn),Xl(Yn,0,Mn.length))}function Ow(Mn){return Wg(qs(Mn))}function dm(Mn,Yn,li){(li!==_n&&!fa(Mn[Yn],li)||li===_n&&!(Yn in Mn))&&gl(Mn,Yn,li)}function Vh(Mn,Yn,li){var bi=Mn[Yn];(!(No.call(Mn,Yn)&&fa(bi,li))||li===_n&&!(Yn in Mn))&&gl(Mn,Yn,li)}function Md(Mn,Yn){for(var li=Mn.length;li--;)if(fa(Mn[li][0],Yn))return li;return-1}function Bw(Mn,Yn,li,bi){return Ol(Mn,function(Ti,Li,Bi){Yn(bi,Ti,li(Ti),Bi)}),bi}function dv(Mn,Yn){return Mn&&Ca(Yn,Es(Yn),Mn)}function Vw(Mn,Yn){return Mn&&Ca(Yn,Zs(Yn),Mn)}function gl(Mn,Yn,li){Yn=="__proto__"&&xd?xd(Mn,Yn,{configurable:!0,enumerable:!0,value:li,writable:!0}):Mn[Yn]=li}function pm(Mn,Yn){for(var li=-1,bi=Yn.length,Ti=Ki(bi),Li=Mn==null;++li<bi;)Ti[li]=Li?_n:Ym(Mn,Yn[li]);return Ti}function Xl(Mn,Yn,li){return Mn===Mn&&(li!==_n&&(Mn=Mn<=li?Mn:li),Yn!==_n&&(Mn=Mn>=Yn?Mn:Yn)),Mn}function la(Mn,Yn,li,bi,Ti,Li){var Bi,zi=Yn&Dn,Yi=Yn&In,ir=Yn&Bn;if(li&&(Bi=Ti?li(Mn,bi,Ti,Li):li(Mn)),Bi!==_n)return Bi;if(!qo(Mn))return Mn;var ar=Xr(Mn);if(ar){if(Bi=C0(Mn),!zi)return qs(Mn,Bi)}else{var pr=Vs(Mn),$r=pr==io||pr==Po;if(Fl(Mn))return Ov(Mn,zi);if(pr==Do||pr==Gi||$r&&!Ti){if(Bi=Yi||$r?{}:ty(Mn),!zi)return Yi?f0(Mn,Vw(Bi,Mn)):g0(Mn,dv(Bi,Mn))}else{if(!Br[pr])return Ti?Mn:{};Bi=T0(Mn,pr,zi)}}Li||(Li=new ga);var Cr=Li.get(Mn);if(Cr)return Cr;Li.set(Mn,Bi),Ey(Mn)?Mn.forEach(function(Ur){Bi.add(la(Ur,Yn,li,Ur,Mn,Li))}):My(Mn)&&Mn.forEach(function(Ur,Co){Bi.set(Co,la(Ur,Yn,li,Co,Mn,Li))});var jr=ir?Yi?Nm:Rm:Yi?Zs:Es,ro=ar?_n:jr(Mn);return Ps(ro||Mn,function(Ur,Co){ro&&(Co=Ur,Ur=Mn[Co]),Vh(Bi,Co,la(Ur,Yn,li,Co,Mn,Li))}),Bi}function Pw(Mn){var Yn=Es(Mn);return function(li){return pv(li,Mn,Yn)}}function pv(Mn,Yn,li){var bi=li.length;if(Mn==null)return!bi;for(Mn=Jr(Mn);bi--;){var Ti=li[bi],Li=Yn[Ti],Bi=Mn[Ti];if(Bi===_n&&!(Ti in Mn)||!Li(Bi))return!1}return!0}function gv(Mn,Yn,li){if(typeof Mn!="function")throw new Cs(Kn);return Uh(function(){Mn.apply(_n,li)},Yn)}function Ph(Mn,Yn,li,bi){var Ti=-1,Li=Ku,Bi=!0,zi=Mn.length,Yi=[],ir=Yn.length;if(!zi)return Yi;li&&(Yn=zo(Yn,Os(li))),bi?(Li=Gl,Bi=!1):Yn.length>=qn&&(Li=pa,Bi=!1,Yn=new Jl(Yn));e:for(;++Ti<zi;){var ar=Mn[Ti],pr=li==null?ar:li(ar);if(ar=bi||ar!==0?ar:0,Bi&&pr===pr){for(var $r=ir;$r--;)if(Yn[$r]===pr)continue e;Yi.push(ar)}else Li(Yn,pr,bi)||Yi.push(ar)}return Yi}var Ol=zv(Sa),fv=zv(fm,!0);function Fw(Mn,Yn){var li=!0;return Ol(Mn,function(bi,Ti,Li){return li=!!Yn(bi,Ti,Li),li}),li}function Ad(Mn,Yn,li){for(var bi=-1,Ti=Mn.length;++bi<Ti;){var Li=Mn[bi],Bi=Yn(Li);if(Bi!=null&&(zi===_n?Bi===Bi&&!ea(Bi):li(Bi,zi)))var zi=Bi,Yi=Li}return Yi}function zw(Mn,Yn,li,bi){var Ti=Mn.length;for(li=no(li),li<0&&(li=-li>Ti?0:Ti+li),bi=bi===_n||bi>Ti?Ti:no(bi),bi<0&&(bi+=Ti),bi=li>bi?0:Ry(bi);li<bi;)Mn[li++]=Yn;return Mn}function mv(Mn,Yn){var li=[];return Ol(Mn,function(bi,Ti,Li){Yn(bi,Ti,Li)&&li.push(bi)}),li}function Ls(Mn,Yn,li,bi,Ti){var Li=-1,Bi=Mn.length;for(li||(li=A0),Ti||(Ti=[]);++Li<Bi;){var zi=Mn[Li];Yn>0&&li(zi)?Yn>1?Ls(zi,Yn-1,li,bi,Ti):Ds(Ti,zi):bi||(Ti[Ti.length]=zi)}return Ti}var gm=Hv(),vv=Hv(!0);function Sa(Mn,Yn){return Mn&&gm(Mn,Yn,Es)}function fm(Mn,Yn){return Mn&&vv(Mn,Yn,Es)}function Ed(Mn,Yn){return Gs(Yn,function(li){return yl(Mn[li])})}function ec(Mn,Yn){Yn=Vl(Yn,Mn);for(var li=0,bi=Yn.length;Mn!=null&&li<bi;)Mn=Mn[Aa(Yn[li++])];return li&&li==bi?Mn:_n}function yv(Mn,Yn,li){var bi=Yn(Mn);return Xr(Mn)?bi:Ds(bi,li(Mn))}function zs(Mn){return Mn==null?Mn===_n?Zo:Xo:Zl&&Zl in Jr(Mn)?_0(Mn):O0(Mn)}function mm(Mn,Yn){return Mn>Yn}function Hw(Mn,Yn){return Mn!=null&&No.call(Mn,Yn)}function Ww(Mn,Yn){return Mn!=null&&Yn in Jr(Mn)}function jw(Mn,Yn,li){return Mn>=Bs(Yn,li)&&Mn<Ts(Yn,li)}function vm(Mn,Yn,li){for(var bi=li?Gl:Ku,Ti=Mn[0].length,Li=Mn.length,Bi=Li,zi=Ki(Li),Yi=1/0,ir=[];Bi--;){var ar=Mn[Bi];Bi&&Yn&&(ar=zo(ar,Os(Yn))),Yi=Bs(ar.length,Yi),zi[Bi]=!li&&(Yn||Ti>=120&&ar.length>=120)?new Jl(Bi&&ar):_n}ar=Mn[0];var pr=-1,$r=zi[0];e:for(;++pr<Ti&&ir.length<Yi;){var Cr=ar[pr],jr=Yn?Yn(Cr):Cr;if(Cr=li||Cr!==0?Cr:0,!($r?pa($r,jr):bi(ir,jr,li))){for(Bi=Li;--Bi;){var ro=zi[Bi];if(!(ro?pa(ro,jr):bi(Mn[Bi],jr,li)))continue e}$r&&$r.push(jr),ir.push(Cr)}}return ir}function Uw(Mn,Yn,li,bi){return Sa(Mn,function(Ti,Li,Bi){Yn(bi,li(Ti),Li,Bi)}),bi}function Fh(Mn,Yn,li){Yn=Vl(Yn,Mn),Mn=oy(Mn,Yn);var bi=Mn==null?Mn:Mn[Aa(ua(Yn))];return bi==null?_n:Wo(bi,Mn,li)}function wv(Mn){return Jo(Mn)&&zs(Mn)==Gi}function Gw(Mn){return Jo(Mn)&&zs(Mn)==xr}function Yw(Mn){return Jo(Mn)&&zs(Mn)==gr}function zh(Mn,Yn,li,bi,Ti){return Mn===Yn?!0:Mn==null||Yn==null||!Jo(Mn)&&!Jo(Yn)?Mn!==Mn&&Yn!==Yn:qw(Mn,Yn,li,bi,zh,Ti)}function qw(Mn,Yn,li,bi,Ti,Li){var Bi=Xr(Mn),zi=Xr(Yn),Yi=Bi?Pi:Vs(Mn),ir=zi?Pi:Vs(Yn);Yi=Yi==Gi?Do:Yi,ir=ir==Gi?Do:ir;var ar=Yi==Do,pr=ir==Do,$r=Yi==ir;if($r&&Fl(Mn)){if(!Fl(Yn))return!1;Bi=!0,ar=!1}if($r&&!ar)return Li||(Li=new ga),Bi||sh(Mn)?Jv(Mn,Yn,li,bi,Ti,Li):$0(Mn,Yn,Yi,li,bi,Ti,Li);if(!(li&Ln)){var Cr=ar&&No.call(Mn,"__wrapped__"),jr=pr&&No.call(Yn,"__wrapped__");if(Cr||jr){var ro=Cr?Mn.value():Mn,Ur=jr?Yn.value():Yn;return Li||(Li=new ga),Ti(ro,Ur,li,bi,Li)}}return $r?(Li||(Li=new ga),x0(Mn,Yn,li,bi,Ti,Li)):!1}function Kw(Mn){return Jo(Mn)&&Vs(Mn)==lo}function ym(Mn,Yn,li,bi){var Ti=li.length,Li=Ti,Bi=!bi;if(Mn==null)return!Li;for(Mn=Jr(Mn);Ti--;){var zi=li[Ti];if(Bi&&zi[2]?zi[1]!==Mn[zi[0]]:!(zi[0]in Mn))return!1}for(;++Ti<Li;){zi=li[Ti];var Yi=zi[0],ir=Mn[Yi],ar=zi[1];if(Bi&&zi[2]){if(ir===_n&&!(Yi in Mn))return!1}else{var pr=new ga;if(bi)var $r=bi(ir,ar,Yi,Mn,Yn,pr);if(!($r===_n?zh(ar,ir,Ln|Pn,bi,pr):$r))return!1}}return!0}function bv(Mn){if(!qo(Mn)||L0(Mn))return!1;var Yn=yl(Mn)?Ky:as;return Yn.test(nc(Mn))}function Zw(Mn){return Jo(Mn)&&zs(Mn)==ss}function Qw(Mn){return Jo(Mn)&&Vs(Mn)==Ko}function Jw(Mn){return Jo(Mn)&&Kg(Mn.length)&&!!Io[zs(Mn)]}function $v(Mn){return typeof Mn=="function"?Mn:Mn==null?Qs:typeof Mn=="object"?Xr(Mn)?kv(Mn[0],Mn[1]):_v(Mn):Wy(Mn)}function wm(Mn){if(!jh(Mn))return tw(Mn);var Yn=[];for(var li in Jr(Mn))No.call(Mn,li)&&li!="constructor"&&Yn.push(li);return Yn}function Xw(Mn){if(!qo(Mn))return D0(Mn);var Yn=jh(Mn),li=[];for(var bi in Mn)bi=="constructor"&&(Yn||!No.call(Mn,bi))||li.push(bi);return li}function bm(Mn,Yn){return Mn<Yn}function xv(Mn,Yn){var li=-1,bi=Ks(Mn)?Ki(Mn.length):[];return Ol(Mn,function(Ti,Li,Bi){bi[++li]=Yn(Ti,Li,Bi)}),bi}function _v(Mn){var Yn=Dm(Mn);return Yn.length==1&&Yn[0][2]?iy(Yn[0][0],Yn[0][1]):function(li){return li===Mn||ym(li,Mn,Yn)}}function kv(Mn,Yn){return Bm(Mn)&&ny(Yn)?iy(Aa(Mn),Yn):function(li){var bi=Ym(li,Mn);return bi===_n&&bi===Yn?qm(li,Mn):zh(Yn,bi,Ln|Pn)}}function Ld(Mn,Yn,li,bi,Ti){Mn!==Yn&&gm(Yn,function(Li,Bi){if(Ti||(Ti=new ga),qo(Li))e0(Mn,Yn,Bi,li,Ld,bi,Ti);else{var zi=bi?bi(Pm(Mn,Bi),Li,Bi+"",Mn,Yn,Ti):_n;zi===_n&&(zi=Li),dm(Mn,Bi,zi)}},Zs)}function e0(Mn,Yn,li,bi,Ti,Li,Bi){var zi=Pm(Mn,li),Yi=Pm(Yn,li),ir=Bi.get(Yi);if(ir){dm(Mn,li,ir);return}var ar=Li?Li(zi,Yi,li+"",Mn,Yn,Bi):_n,pr=ar===_n;if(pr){var $r=Xr(Yi),Cr=!$r&&Fl(Yi),jr=!$r&&!Cr&&sh(Yi);ar=Yi,$r||Cr||jr?Xr(zi)?ar=zi:es(zi)?ar=qs(zi):Cr?(pr=!1,ar=Ov(Yi,!0)):jr?(pr=!1,ar=Bv(Yi,!0)):ar=[]:Gh(Yi)||ic(Yi)?(ar=zi,ic(zi)?ar=Ny(zi):(!qo(zi)||yl(zi))&&(ar=ty(Yi))):pr=!1}pr&&(Bi.set(Yi,ar),Ti(ar,Yi,bi,Li,Bi),Bi.delete(Yi)),dm(Mn,li,ar)}function Sv(Mn,Yn){var li=Mn.length;if(li)return Yn+=Yn<0?li:0,vl(Yn,li)?Mn[Yn]:_n}function Cv(Mn,Yn,li){Yn.length?Yn=zo(Yn,function(Li){return Xr(Li)?function(Bi){return ec(Bi,Li.length===1?Li[0]:Li)}:Li}):Yn=[Qs];var bi=-1;Yn=zo(Yn,Os(zr()));var Ti=xv(Mn,function(Li,Bi,zi){var Yi=zo(Yn,function(ir){return ir(Li)});return{criteria:Yi,index:++bi,value:Li}});return Nl(Ti,function(Li,Bi){return p0(Li,Bi,li)})}function t0(Mn,Yn){return Tv(Mn,Yn,function(li,bi){return qm(Mn,bi)})}function Tv(Mn,Yn,li){for(var bi=-1,Ti=Yn.length,Li={};++bi<Ti;){var Bi=Yn[bi],zi=ec(Mn,Bi);li(zi,Bi)&&Hh(Li,Vl(Bi,Mn),zi)}return Li}function n0(Mn){return function(Yn){return ec(Yn,Mn)}}function $m(Mn,Yn,li,bi){var Ti=bi?hd:hl,Li=-1,Bi=Yn.length,zi=Mn;for(Mn===Yn&&(Yn=qs(Yn)),li&&(zi=zo(Mn,Os(li)));++Li<Bi;)for(var Yi=0,ir=Yn[Li],ar=li?li(ir):ir;(Yi=Ti(zi,ar,Yi,bi))>-1;)zi!==Mn&&$d.call(zi,Yi,1),$d.call(Mn,Yi,1);return Mn}function Mv(Mn,Yn){for(var li=Mn?Yn.length:0,bi=li-1;li--;){var Ti=Yn[li];if(li==bi||Ti!==Li){var Li=Ti;vl(Ti)?$d.call(Mn,Ti,1):Sm(Mn,Ti)}}return Mn}function xm(Mn,Yn){return Mn+kd(lv()*(Yn-Mn+1))}function i0(Mn,Yn,li,bi){for(var Ti=-1,Li=Ts(_d((Yn-Mn)/(li||1)),0),Bi=Ki(Li);Li--;)Bi[bi?Li:++Ti]=Mn,Mn+=li;return Bi}function _m(Mn,Yn){var li="";if(!Mn||Yn<1||Yn>Si)return li;do Yn%2&&(li+=Mn),Yn=kd(Yn/2),Yn&&(Mn+=Mn);while(Yn);return li}function ao(Mn,Yn){return Fm(ry(Mn,Yn,Qs),Mn+"")}function r0(Mn){return hv(ah(Mn))}function o0(Mn,Yn){var li=ah(Mn);return Wg(li,Xl(Yn,0,li.length))}function Hh(Mn,Yn,li,bi){if(!qo(Mn))return Mn;Yn=Vl(Yn,Mn);for(var Ti=-1,Li=Yn.length,Bi=Li-1,zi=Mn;zi!=null&&++Ti<Li;){var Yi=Aa(Yn[Ti]),ir=li;if(Yi==="__proto__"||Yi==="constructor"||Yi==="prototype")return Mn;if(Ti!=Bi){var ar=zi[Yi];ir=bi?bi(ar,Yi,zi):_n,ir===_n&&(ir=qo(ar)?ar:vl(Yn[Ti+1])?[]:{})}Vh(zi,Yi,ir),zi=zi[Yi]}return Mn}var Av=Sd?function(Mn,Yn){return Sd.set(Mn,Yn),Mn}:Qs,s0=xd?function(Mn,Yn){return xd(Mn,"toString",{configurable:!0,enumerable:!1,value:Zm(Yn),writable:!0})}:Qs;function a0(Mn){return Wg(ah(Mn))}function ca(Mn,Yn,li){var bi=-1,Ti=Mn.length;Yn<0&&(Yn=-Yn>Ti?0:Ti+Yn),li=li>Ti?Ti:li,li<0&&(li+=Ti),Ti=Yn>li?0:li-Yn>>>0,Yn>>>=0;for(var Li=Ki(Ti);++bi<Ti;)Li[bi]=Mn[bi+Yn];return Li}function l0(Mn,Yn){var li;return Ol(Mn,function(bi,Ti,Li){return li=Yn(bi,Ti,Li),!li}),!!li}function Rd(Mn,Yn,li){var bi=0,Ti=Mn==null?bi:Mn.length;if(typeof Yn=="number"&&Yn===Yn&&Ti<=Ii){for(;bi<Ti;){var Li=bi+Ti>>>1,Bi=Mn[Li];Bi!==null&&!ea(Bi)&&(li?Bi<=Yn:Bi<Yn)?bi=Li+1:Ti=Li}return Ti}return km(Mn,Yn,Qs,li)}function km(Mn,Yn,li,bi){var Ti=0,Li=Mn==null?0:Mn.length;if(Li===0)return 0;Yn=li(Yn);for(var Bi=Yn!==Yn,zi=Yn===null,Yi=ea(Yn),ir=Yn===_n;Ti<Li;){var ar=kd((Ti+Li)/2),pr=li(Mn[ar]),$r=pr!==_n,Cr=pr===null,jr=pr===pr,ro=ea(pr);if(Bi)var Ur=bi||jr;else ir?Ur=jr&&(bi||$r):zi?Ur=jr&&$r&&(bi||!Cr):Yi?Ur=jr&&$r&&!Cr&&(bi||!ro):Cr||ro?Ur=!1:Ur=bi?pr<=Yn:pr<Yn;Ur?Ti=ar+1:Li=ar}return Bs(Li,Fi)}function Ev(Mn,Yn){for(var li=-1,bi=Mn.length,Ti=0,Li=[];++li<bi;){var Bi=Mn[li],zi=Yn?Yn(Bi):Bi;if(!li||!fa(zi,Yi)){var Yi=zi;Li[Ti++]=Bi===0?0:Bi}}return Li}function Lv(Mn){return typeof Mn=="number"?Mn:ea(Mn)?Ri:+Mn}function Xs(Mn){if(typeof Mn=="string")return Mn;if(Xr(Mn))return zo(Mn,Xs)+"";if(ea(Mn))return cv?cv.call(Mn):"";var Yn=Mn+"";return Yn=="0"&&1/Mn==-xi?"-0":Yn}function Bl(Mn,Yn,li){var bi=-1,Ti=Ku,Li=Mn.length,Bi=!0,zi=[],Yi=zi;if(li)Bi=!1,Ti=Gl;else if(Li>=qn){var ir=Yn?null:w0(Mn);if(ir)return br(ir);Bi=!1,Ti=pa,Yi=new Jl}else Yi=Yn?[]:zi;e:for(;++bi<Li;){var ar=Mn[bi],pr=Yn?Yn(ar):ar;if(ar=li||ar!==0?ar:0,Bi&&pr===pr){for(var $r=Yi.length;$r--;)if(Yi[$r]===pr)continue e;Yn&&Yi.push(pr),zi.push(ar)}else Ti(Yi,pr,li)||(Yi!==zi&&Yi.push(pr),zi.push(ar))}return zi}function Sm(Mn,Yn){return Yn=Vl(Yn,Mn),Mn=oy(Mn,Yn),Mn==null||delete Mn[Aa(ua(Yn))]}function Rv(Mn,Yn,li,bi){return Hh(Mn,Yn,li(ec(Mn,Yn)),bi)}function Id(Mn,Yn,li,bi){for(var Ti=Mn.length,Li=bi?Ti:-1;(bi?Li--:++Li<Ti)&&Yn(Mn[Li],Li,Mn););return li?ca(Mn,bi?0:Li,bi?Li+1:Ti):ca(Mn,bi?Li+1:0,bi?Ti:Li)}function Nv(Mn,Yn){var li=Mn;return li instanceof To&&(li=li.value()),sa(Yn,function(bi,Ti){return Ti.func.apply(Ti.thisArg,Ds([bi],Ti.args))},li)}function Cm(Mn,Yn,li){var bi=Mn.length;if(bi<2)return bi?Bl(Mn[0]):[];for(var Ti=-1,Li=Ki(bi);++Ti<bi;)for(var Bi=Mn[Ti],zi=-1;++zi<bi;)zi!=Ti&&(Li[Ti]=Ph(Li[Ti]||Bi,Mn[zi],Yn,li));return Bl(Ls(Li,1),Yn,li)}function Iv(Mn,Yn,li){for(var bi=-1,Ti=Mn.length,Li=Yn.length,Bi={};++bi<Ti;){var zi=bi<Li?Yn[bi]:_n;li(Bi,Mn[bi],zi)}return Bi}function Tm(Mn){return es(Mn)?Mn:[]}function Mm(Mn){return typeof Mn=="function"?Mn:Qs}function Vl(Mn,Yn){return Xr(Mn)?Mn:Bm(Mn,Yn)?[Mn]:cy(Lo(Mn))}var c0=ao;function Pl(Mn,Yn,li){var bi=Mn.length;return li=li===_n?bi:li,!Yn&&li>=bi?Mn:ca(Mn,Yn,li)}var Dv=Zy||function(Mn){return cs.clearTimeout(Mn)};function Ov(Mn,Yn){if(Yn)return Mn.slice();var li=Mn.length,bi=iv?iv(li):new Mn.constructor(li);return Mn.copy(bi),bi}function Am(Mn){var Yn=new Mn.constructor(Mn.byteLength);return new wd(Yn).set(new wd(Mn)),Yn}function u0(Mn,Yn){var li=Yn?Am(Mn.buffer):Mn.buffer;return new Mn.constructor(li,Mn.byteOffset,Mn.byteLength)}function h0(Mn){var Yn=new Mn.constructor(Mn.source,kl.exec(Mn));return Yn.lastIndex=Mn.lastIndex,Yn}function d0(Mn){return Bh?Jr(Bh.call(Mn)):{}}function Bv(Mn,Yn){var li=Yn?Am(Mn.buffer):Mn.buffer;return new Mn.constructor(li,Mn.byteOffset,Mn.length)}function Vv(Mn,Yn){if(Mn!==Yn){var li=Mn!==_n,bi=Mn===null,Ti=Mn===Mn,Li=ea(Mn),Bi=Yn!==_n,zi=Yn===null,Yi=Yn===Yn,ir=ea(Yn);if(!zi&&!ir&&!Li&&Mn>Yn||Li&&Bi&&Yi&&!zi&&!ir||bi&&Bi&&Yi||!li&&Yi||!Ti)return 1;if(!bi&&!Li&&!ir&&Mn<Yn||ir&&li&&Ti&&!bi&&!Li||zi&&li&&Ti||!Bi&&Ti||!Yi)return-1}return 0}function p0(Mn,Yn,li){for(var bi=-1,Ti=Mn.criteria,Li=Yn.criteria,Bi=Ti.length,zi=li.length;++bi<Bi;){var Yi=Vv(Ti[bi],Li[bi]);if(Yi){if(bi>=zi)return Yi;var ir=li[bi];return Yi*(ir=="desc"?-1:1)}}return Mn.index-Yn.index}function Pv(Mn,Yn,li,bi){for(var Ti=-1,Li=Mn.length,Bi=li.length,zi=-1,Yi=Yn.length,ir=Ts(Li-Bi,0),ar=Ki(Yi+ir),pr=!bi;++zi<Yi;)ar[zi]=Yn[zi];for(;++Ti<Bi;)(pr||Ti<Li)&&(ar[li[Ti]]=Mn[Ti]);for(;ir--;)ar[zi++]=Mn[Ti++];return ar}function Fv(Mn,Yn,li,bi){for(var Ti=-1,Li=Mn.length,Bi=-1,zi=li.length,Yi=-1,ir=Yn.length,ar=Ts(Li-zi,0),pr=Ki(ar+ir),$r=!bi;++Ti<ar;)pr[Ti]=Mn[Ti];for(var Cr=Ti;++Yi<ir;)pr[Cr+Yi]=Yn[Yi];for(;++Bi<zi;)($r||Ti<Li)&&(pr[Cr+li[Bi]]=Mn[Ti++]);return pr}function qs(Mn,Yn){var li=-1,bi=Mn.length;for(Yn||(Yn=Ki(bi));++li<bi;)Yn[li]=Mn[li];return Yn}function Ca(Mn,Yn,li,bi){var Ti=!li;li||(li={});for(var Li=-1,Bi=Yn.length;++Li<Bi;){var zi=Yn[Li],Yi=bi?bi(li[zi],Mn[zi],zi,li,Mn):_n;Yi===_n&&(Yi=Mn[zi]),Ti?gl(li,zi,Yi):Vh(li,zi,Yi)}return li}function g0(Mn,Yn){return Ca(Mn,Om(Mn),Yn)}function f0(Mn,Yn){return Ca(Mn,Xv(Mn),Yn)}function Dd(Mn,Yn){return function(li,bi){var Ti=Xr(li)?lm:Bw,Li=Yn?Yn():{};return Ti(li,Mn,zr(bi,2),Li)}}function ih(Mn){return ao(function(Yn,li){var bi=-1,Ti=li.length,Li=Ti>1?li[Ti-1]:_n,Bi=Ti>2?li[2]:_n;for(Li=Mn.length>3&&typeof Li=="function"?(Ti--,Li):_n,Bi&&Hs(li[0],li[1],Bi)&&(Li=Ti<3?_n:Li,Ti=1),Yn=Jr(Yn);++bi<Ti;){var zi=li[bi];zi&&Mn(Yn,zi,bi,Li)}return Yn})}function zv(Mn,Yn){return function(li,bi){if(li==null)return li;if(!Ks(li))return Mn(li,bi);for(var Ti=li.length,Li=Yn?Ti:-1,Bi=Jr(li);(Yn?Li--:++Li<Ti)&&bi(Bi[Li],Li,Bi)!==!1;);return li}}function Hv(Mn){return function(Yn,li,bi){for(var Ti=-1,Li=Jr(Yn),Bi=bi(Yn),zi=Bi.length;zi--;){var Yi=Bi[Mn?zi:++Ti];if(li(Li[Yi],Yi,Li)===!1)break}return Yn}}function m0(Mn,Yn,li){var bi=Yn&Zn,Ti=Wh(Mn);function Li(){var Bi=this&&this!==cs&&this instanceof Li?Ti:Mn;return Bi.apply(bi?li:this,arguments)}return Li}function Wv(Mn){return function(Yn){Yn=Lo(Yn);var li=Wi(Yn)?Yr(Yn):_n,bi=li?li[0]:Yn.charAt(0),Ti=li?Pl(li,1).join(""):Yn.slice(1);return bi[Mn]()+Ti}}function rh(Mn){return function(Yn){return sa(zy(Fy(Yn).replace(_h,"")),Mn,"")}}function Wh(Mn){return function(){var Yn=arguments;switch(Yn.length){case 0:return new Mn;case 1:return new Mn(Yn[0]);case 2:return new Mn(Yn[0],Yn[1]);case 3:return new Mn(Yn[0],Yn[1],Yn[2]);case 4:return new Mn(Yn[0],Yn[1],Yn[2],Yn[3]);case 5:return new Mn(Yn[0],Yn[1],Yn[2],Yn[3],Yn[4]);case 6:return new Mn(Yn[0],Yn[1],Yn[2],Yn[3],Yn[4],Yn[5]);case 7:return new Mn(Yn[0],Yn[1],Yn[2],Yn[3],Yn[4],Yn[5],Yn[6])}var li=nh(Mn.prototype),bi=Mn.apply(li,Yn);return qo(bi)?bi:li}}function v0(Mn,Yn,li){var bi=Wh(Mn);function Ti(){for(var Li=arguments.length,Bi=Ki(Li),zi=Li,Yi=oh(Ti);zi--;)Bi[zi]=arguments[zi];var ir=Li<3&&Bi[0]!==Yi&&Bi[Li-1]!==Yi?[]:vr(Bi,Yi);if(Li-=ir.length,Li<li)return qv(Mn,Yn,Od,Ti.placeholder,_n,Bi,ir,_n,_n,li-Li);var ar=this&&this!==cs&&this instanceof Ti?bi:Mn;return Wo(ar,this,Bi)}return Ti}function jv(Mn){return function(Yn,li,bi){var Ti=Jr(Yn);if(!Ks(Yn)){var Li=zr(li,3);Yn=Es(Yn),li=function(zi){return Li(Ti[zi],zi,Ti)}}var Bi=Mn(Yn,li,bi);return Bi>-1?Ti[Li?Yn[Bi]:Bi]:_n}}function Uv(Mn){return ml(function(Yn){var li=Yn.length,bi=li,Ti=aa.prototype.thru;for(Mn&&Yn.reverse();bi--;){var Li=Yn[bi];if(typeof Li!="function")throw new Cs(Kn);if(Ti&&!Bi&&zg(Li)=="wrapper")var Bi=new aa([],!0)}for(bi=Bi?bi:li;++bi<li;){Li=Yn[bi];var zi=zg(Li),Yi=zi=="wrapper"?Im(Li):_n;Yi&&Vm(Yi[0])&&Yi[1]==(fi|mi|oi|gi)&&!Yi[4].length&&Yi[9]==1?Bi=Bi[zg(Yi[0])].apply(Bi,Yi[3]):Bi=Li.length==1&&Vm(Li)?Bi[zi]():Bi.thru(Li)}return function(){var ir=arguments,ar=ir[0];if(Bi&&ir.length==1&&Xr(ar))return Bi.plant(ar).value();for(var pr=0,$r=li?Yn[pr].apply(this,ir):ar;++pr<li;)$r=Yn[pr].call(this,$r);return $r}})}function Od(Mn,Yn,li,bi,Ti,Li,Bi,zi,Yi,ir){var ar=Yn&fi,pr=Yn&Zn,$r=Yn&Jn,Cr=Yn&(mi|ci),jr=Yn&yi,ro=$r?_n:Wh(Mn);function Ur(){for(var Co=arguments.length,Mo=Ki(Co),ta=Co;ta--;)Mo[ta]=arguments[ta];if(Cr)var Ws=oh(Ur),na=Rh(Mo,Ws);if(bi&&(Mo=Pv(Mo,bi,Ti,Cr)),Li&&(Mo=Fv(Mo,Li,Bi,Cr)),Co-=na,Cr&&Co<ir){var ts=vr(Mo,Ws);return qv(Mn,Yn,Od,Ur.placeholder,li,Mo,ts,zi,Yi,ir-Co)}var ma=pr?li:this,bl=$r?ma[Mn]:Mn;return Co=Mo.length,zi?Mo=B0(Mo,zi):jr&&Co>1&&Mo.reverse(),ar&&Yi<Co&&(Mo.length=Yi),this&&this!==cs&&this instanceof Ur&&(bl=ro||Wh(bl)),bl.apply(ma,Mo)}return Ur}function Gv(Mn,Yn){return function(li,bi){return Uw(li,Mn,Yn(bi),{})}}function Bg(Mn,Yn){return function(li,bi){var Ti;if(li===_n&&bi===_n)return Yn;if(li!==_n&&(Ti=li),bi!==_n){if(Ti===_n)return bi;typeof li=="string"||typeof bi=="string"?(li=Xs(li),bi=Xs(bi)):(li=Lv(li),bi=Lv(bi)),Ti=Mn(li,bi)}return Ti}}function Em(Mn){return ml(function(Yn){return Yn=zo(Yn,Os(zr())),ao(function(li){var bi=this;return Mn(Yn,function(Ti){return Wo(Ti,bi,li)})})})}function Vg(Mn,Yn){Yn=Yn===_n?" ":Xs(Yn);var li=Yn.length;if(li<2)return li?_m(Yn,Mn):Yn;var bi=_m(Yn,_d(Mn/to(Yn)));return Wi(Yn)?Pl(Yr(bi),0,Mn).join(""):bi.slice(0,Mn)}function y0(Mn,Yn,li,bi){var Ti=Yn&Zn,Li=Wh(Mn);function Bi(){for(var zi=-1,Yi=arguments.length,ir=-1,ar=bi.length,pr=Ki(ar+Yi),$r=this&&this!==cs&&this instanceof Bi?Li:Mn;++ir<ar;)pr[ir]=bi[ir];for(;Yi--;)pr[ir++]=arguments[++zi];return Wo($r,Ti?li:this,pr)}return Bi}function Yv(Mn){return function(Yn,li,bi){return bi&&typeof bi!="number"&&Hs(Yn,li,bi)&&(li=bi=_n),Yn=wl(Yn),li===_n?(li=Yn,Yn=0):li=wl(li),bi=bi===_n?Yn<li?1:-1:wl(bi),i0(Yn,li,bi,Mn)}}function Pg(Mn){return function(Yn,li){return typeof Yn=="string"&&typeof li=="string"||(Yn=ha(Yn),li=ha(li)),Mn(Yn,li)}}function qv(Mn,Yn,li,bi,Ti,Li,Bi,zi,Yi,ir){var ar=Yn&mi,pr=ar?Bi:_n,$r=ar?_n:Bi,Cr=ar?Li:_n,jr=ar?_n:Li;Yn|=ar?oi:ei,Yn&=~(ar?ei:oi),Yn&Xn||(Yn&=~(Zn|Jn));var ro=[Mn,Yn,Ti,Cr,pr,jr,$r,zi,Yi,ir],Ur=li.apply(_n,ro);return Vm(Mn)&&sy(Ur,ro),Ur.placeholder=bi,ay(Ur,Mn,Yn)}function Lm(Mn){var Yn=Eo[Mn];return function(li,bi){if(li=ha(li),bi=bi==null?0:Bs(no(bi),292),bi&&av(li)){var Ti=(Lo(li)+"e").split("e"),Li=Yn(Ti[0]+"e"+(+Ti[1]+bi));return Ti=(Lo(Li)+"e").split("e"),+(Ti[0]+"e"+(+Ti[1]-bi))}return Yn(li)}}var w0=eh&&1/br(new eh([,-0]))[1]==xi?function(Mn){return new eh(Mn)}:Xm;function Kv(Mn){return function(Yn){var li=Vs(Yn);return li==lo?fr(Yn):li==Ko?_r(Yn):dd(Yn,Mn(Yn))}}function fl(Mn,Yn,li,bi,Ti,Li,Bi,zi){var Yi=Yn&Jn;if(!Yi&&typeof Mn!="function")throw new Cs(Kn);var ir=bi?bi.length:0;if(ir||(Yn&=~(oi|ei),bi=Ti=_n),Bi=Bi===_n?Bi:Ts(no(Bi),0),zi=zi===_n?zi:no(zi),ir-=Ti?Ti.length:0,Yn&ei){var ar=bi,pr=Ti;bi=Ti=_n}var $r=Yi?_n:Im(Mn),Cr=[Mn,Yn,li,bi,Ti,ar,pr,Li,Bi,zi];if($r&&I0(Cr,$r),Mn=Cr[0],Yn=Cr[1],li=Cr[2],bi=Cr[3],Ti=Cr[4],zi=Cr[9]=Cr[9]===_n?Yi?0:Mn.length:Ts(Cr[9]-ir,0),!zi&&Yn&(mi|ci)&&(Yn&=~(mi|ci)),!Yn||Yn==Zn)var jr=m0(Mn,Yn,li);else Yn==mi||Yn==ci?jr=v0(Mn,Yn,zi):(Yn==oi||Yn==(Zn|oi))&&!Ti.length?jr=y0(Mn,Yn,li,bi):jr=Od.apply(_n,Cr);var ro=$r?Av:sy;return ay(ro(jr,Cr),Mn,Yn)}function Zv(Mn,Yn,li,bi){return Mn===_n||fa(Mn,Xu[li])&&!No.call(bi,li)?Yn:Mn}function Qv(Mn,Yn,li,bi,Ti,Li){return qo(Mn)&&qo(Yn)&&(Li.set(Yn,Mn),Ld(Mn,Yn,_n,Qv,Li),Li.delete(Yn)),Mn}function b0(Mn){return Gh(Mn)?_n:Mn}function Jv(Mn,Yn,li,bi,Ti,Li){var Bi=li&Ln,zi=Mn.length,Yi=Yn.length;if(zi!=Yi&&!(Bi&&Yi>zi))return!1;var ir=Li.get(Mn),ar=Li.get(Yn);if(ir&&ar)return ir==Yn&&ar==Mn;var pr=-1,$r=!0,Cr=li&Pn?new Jl:_n;for(Li.set(Mn,Yn),Li.set(Yn,Mn);++pr<zi;){var jr=Mn[pr],ro=Yn[pr];if(bi)var Ur=Bi?bi(ro,jr,pr,Yn,Mn,Li):bi(jr,ro,pr,Mn,Yn,Li);if(Ur!==_n){if(Ur)continue;$r=!1;break}if(Cr){if(!Zu(Yn,function(Co,Mo){if(!pa(Cr,Mo)&&(jr===Co||Ti(jr,Co,li,bi,Li)))return Cr.push(Mo)})){$r=!1;break}}else if(!(jr===ro||Ti(jr,ro,li,bi,Li))){$r=!1;break}}return Li.delete(Mn),Li.delete(Yn),$r}function $0(Mn,Yn,li,bi,Ti,Li,Bi){switch(li){case kr:if(Mn.byteLength!=Yn.byteLength||Mn.byteOffset!=Yn.byteOffset)return!1;Mn=Mn.buffer,Yn=Yn.buffer;case xr:return!(Mn.byteLength!=Yn.byteLength||!Li(new wd(Mn),new wd(Yn)));case lr:case gr:case So:return fa(+Mn,+Yn);case yr:return Mn.name==Yn.name&&Mn.message==Yn.message;case ss:case Mr:return Mn==Yn+"";case lo:var zi=fr;case Ko:var Yi=bi&Ln;if(zi||(zi=br),Mn.size!=Yn.size&&!Yi)return!1;var ir=Bi.get(Mn);if(ir)return ir==Yn;bi|=Pn,Bi.set(Mn,Yn);var ar=Jv(zi(Mn),zi(Yn),bi,Ti,Li,Bi);return Bi.delete(Mn),ar;case Vr:if(Bh)return Bh.call(Mn)==Bh.call(Yn)}return!1}function x0(Mn,Yn,li,bi,Ti,Li){var Bi=li&Ln,zi=Rm(Mn),Yi=zi.length,ir=Rm(Yn),ar=ir.length;if(Yi!=ar&&!Bi)return!1;for(var pr=Yi;pr--;){var $r=zi[pr];if(!(Bi?$r in Yn:No.call(Yn,$r)))return!1}var Cr=Li.get(Mn),jr=Li.get(Yn);if(Cr&&jr)return Cr==Yn&&jr==Mn;var ro=!0;Li.set(Mn,Yn),Li.set(Yn,Mn);for(var Ur=Bi;++pr<Yi;){$r=zi[pr];var Co=Mn[$r],Mo=Yn[$r];if(bi)var ta=Bi?bi(Mo,Co,$r,Yn,Mn,Li):bi(Co,Mo,$r,Mn,Yn,Li);if(!(ta===_n?Co===Mo||Ti(Co,Mo,li,bi,Li):ta)){ro=!1;break}Ur||(Ur=$r=="constructor")}if(ro&&!Ur){var Ws=Mn.constructor,na=Yn.constructor;Ws!=na&&"constructor"in Mn&&"constructor"in Yn&&!(typeof Ws=="function"&&Ws instanceof Ws&&typeof na=="function"&&na instanceof na)&&(ro=!1)}return Li.delete(Mn),Li.delete(Yn),ro}function ml(Mn){return Fm(ry(Mn,_n,py),Mn+"")}function Rm(Mn){return yv(Mn,Es,Om)}function Nm(Mn){return yv(Mn,Zs,Xv)}var Im=Sd?function(Mn){return Sd.get(Mn)}:Xm;function zg(Mn){for(var Yn=Mn.name+"",li=th[Yn],bi=No.call(th,Yn)?li.length:0;bi--;){var Ti=li[bi],Li=Ti.func;if(Li==null||Li==Mn)return Ti.name}return Yn}function oh(Mn){var Yn=No.call(Ai,"placeholder")?Ai:Mn;return Yn.placeholder}function zr(){var Mn=Ai.iteratee||Qm;return Mn=Mn===Qm?$v:Mn,arguments.length?Mn(arguments[0],arguments[1]):Mn}function Hg(Mn,Yn){var li=Mn.__data__;return E0(Yn)?li[typeof Yn=="string"?"string":"hash"]:li.map}function Dm(Mn){for(var Yn=Es(Mn),li=Yn.length;li--;){var bi=Yn[li],Ti=Mn[bi];Yn[li]=[bi,Ti,ny(Ti)]}return Yn}function tc(Mn,Yn){var li=Oi(Mn,Yn);return bv(li)?li:_n}function _0(Mn){var Yn=No.call(Mn,Zl),li=Mn[Zl];try{Mn[Zl]=_n;var bi=!0}catch{}var Ti=vd.call(Mn);return bi&&(Yn?Mn[Zl]=li:delete Mn[Zl]),Ti}var Om=cm?function(Mn){return Mn==null?[]:(Mn=Jr(Mn),Gs(cm(Mn),function(Yn){return ov.call(Mn,Yn)}))}:ev,Xv=cm?function(Mn){for(var Yn=[];Mn;)Ds(Yn,Om(Mn)),Mn=bd(Mn);return Yn}:ev,Vs=zs;(um&&Vs(new um(new ArrayBuffer(1)))!=kr||Ih&&Vs(new Ih)!=lo||hm&&Vs(hm.resolve())!=Uo||eh&&Vs(new eh)!=Ko||Dh&&Vs(new Dh)!=Hr)&&(Vs=function(Mn){var Yn=zs(Mn),li=Yn==Do?Mn.constructor:_n,bi=li?nc(li):"";if(bi)switch(bi){case ow:return kr;case sw:return lo;case aw:return Uo;case lw:return Ko;case cw:return Hr}return Yn});function k0(Mn,Yn,li){for(var bi=-1,Ti=li.length;++bi<Ti;){var Li=li[bi],Bi=Li.size;switch(Li.type){case"drop":Mn+=Bi;break;case"dropRight":Yn-=Bi;break;case"take":Yn=Bs(Yn,Mn+Bi);break;case"takeRight":Mn=Ts(Mn,Yn-Bi);break}}return{start:Mn,end:Yn}}function S0(Mn){var Yn=Mn.match(qh);return Yn?Yn[1].split(Kh):[]}function ey(Mn,Yn,li){Yn=Vl(Yn,Mn);for(var bi=-1,Ti=Yn.length,Li=!1;++bi<Ti;){var Bi=Aa(Yn[bi]);if(!(Li=Mn!=null&&li(Mn,Bi)))break;Mn=Mn[Bi]}return Li||++bi!=Ti?Li:(Ti=Mn==null?0:Mn.length,!!Ti&&Kg(Ti)&&vl(Bi,Ti)&&(Xr(Mn)||ic(Mn)))}function C0(Mn){var Yn=Mn.length,li=new Mn.constructor(Yn);return Yn&&typeof Mn[0]=="string"&&No.call(Mn,"index")&&(li.index=Mn.index,li.input=Mn.input),li}function ty(Mn){return typeof Mn.constructor=="function"&&!jh(Mn)?nh(bd(Mn)):{}}function T0(Mn,Yn,li){var bi=Mn.constructor;switch(Yn){case xr:return Am(Mn);case lr:case gr:return new bi(+Mn);case kr:return u0(Mn,li);case Gr:case qr:case $o:case ko:case oo:case so:case eo:case Ho:case Rs:return Bv(Mn,li);case lo:return new bi;case So:case Mr:return new bi(Mn);case ss:return h0(Mn);case Ko:return new bi;case Vr:return d0(Mn)}}function M0(Mn,Yn){var li=Yn.length;if(!li)return Mn;var bi=li-1;return Yn[bi]=(li>1?"& ":"")+Yn[bi],Yn=Yn.join(li>2?", ":" "),Mn.replace(_l,`{
1388
+ /* [wrapped with `+Yn+`] */
1389
+ `)}function A0(Mn){return Xr(Mn)||ic(Mn)||!!(sv&&Mn&&Mn[sv])}function vl(Mn,Yn){var li=typeof Mn;return Yn=Yn??Si,!!Yn&&(li=="number"||li!="symbol"&&is.test(Mn))&&Mn>-1&&Mn%1==0&&Mn<Yn}function Hs(Mn,Yn,li){if(!qo(li))return!1;var bi=typeof Yn;return(bi=="number"?Ks(li)&&vl(Yn,li.length):bi=="string"&&Yn in li)?fa(li[Yn],Mn):!1}function Bm(Mn,Yn){if(Xr(Mn))return!1;var li=typeof Mn;return li=="number"||li=="symbol"||li=="boolean"||Mn==null||ea(Mn)?!0:Ms.test(Mn)||!sl.test(Mn)||Yn!=null&&Mn in Jr(Yn)}function E0(Mn){var Yn=typeof Mn;return Yn=="string"||Yn=="number"||Yn=="symbol"||Yn=="boolean"?Mn!=="__proto__":Mn===null}function Vm(Mn){var Yn=zg(Mn),li=Ai[Yn];if(typeof li!="function"||!(Yn in To.prototype))return!1;if(Mn===li)return!0;var bi=Im(li);return!!bi&&Mn===bi[0]}function L0(Mn){return!!nv&&nv in Mn}var R0=fd?yl:tv;function jh(Mn){var Yn=Mn&&Mn.constructor,li=typeof Yn=="function"&&Yn.prototype||Xu;return Mn===li}function ny(Mn){return Mn===Mn&&!qo(Mn)}function iy(Mn,Yn){return function(li){return li==null?!1:li[Mn]===Yn&&(Yn!==_n||Mn in Jr(li))}}function N0(Mn){var Yn=Yg(Mn,function(bi){return li.size===Wn&&li.clear(),bi}),li=Yn.cache;return Yn}function I0(Mn,Yn){var li=Mn[1],bi=Yn[1],Ti=li|bi,Li=Ti<(Zn|Jn|fi),Bi=bi==fi&&li==mi||bi==fi&&li==gi&&Mn[7].length<=Yn[8]||bi==(fi|gi)&&Yn[7].length<=Yn[8]&&li==mi;if(!(Li||Bi))return Mn;bi&Zn&&(Mn[2]=Yn[2],Ti|=li&Zn?0:Xn);var zi=Yn[3];if(zi){var Yi=Mn[3];Mn[3]=Yi?Pv(Yi,zi,Yn[4]):zi,Mn[4]=Yi?vr(Mn[3],Nn):Yn[4]}return zi=Yn[5],zi&&(Yi=Mn[5],Mn[5]=Yi?Fv(Yi,zi,Yn[6]):zi,Mn[6]=Yi?vr(Mn[5],Nn):Yn[6]),zi=Yn[7],zi&&(Mn[7]=zi),bi&fi&&(Mn[8]=Mn[8]==null?Yn[8]:Bs(Mn[8],Yn[8])),Mn[9]==null&&(Mn[9]=Yn[9]),Mn[0]=Yn[0],Mn[1]=Ti,Mn}function D0(Mn){var Yn=[];if(Mn!=null)for(var li in Jr(Mn))Yn.push(li);return Yn}function O0(Mn){return vd.call(Mn)}function ry(Mn,Yn,li){return Yn=Ts(Yn===_n?Mn.length-1:Yn,0),function(){for(var bi=arguments,Ti=-1,Li=Ts(bi.length-Yn,0),Bi=Ki(Li);++Ti<Li;)Bi[Ti]=bi[Yn+Ti];Ti=-1;for(var zi=Ki(Yn+1);++Ti<Yn;)zi[Ti]=bi[Ti];return zi[Yn]=li(Bi),Wo(Mn,this,zi)}}function oy(Mn,Yn){return Yn.length<2?Mn:ec(Mn,ca(Yn,0,-1))}function B0(Mn,Yn){for(var li=Mn.length,bi=Bs(Yn.length,li),Ti=qs(Mn);bi--;){var Li=Yn[bi];Mn[bi]=vl(Li,li)?Ti[Li]:_n}return Mn}function Pm(Mn,Yn){if(!(Yn==="constructor"&&typeof Mn[Yn]=="function")&&Yn!="__proto__")return Mn[Yn]}var sy=ly(Av),Uh=Jy||function(Mn,Yn){return cs.setTimeout(Mn,Yn)},Fm=ly(s0);function ay(Mn,Yn,li){var bi=Yn+"";return Fm(Mn,M0(bi,V0(S0(bi),li)))}function ly(Mn){var Yn=0,li=0;return function(){var bi=nw(),Ti=ti-(bi-li);if(li=bi,Ti>0){if(++Yn>=si)return arguments[0]}else Yn=0;return Mn.apply(_n,arguments)}}function Wg(Mn,Yn){var li=-1,bi=Mn.length,Ti=bi-1;for(Yn=Yn===_n?bi:Yn;++li<Yn;){var Li=xm(li,Ti),Bi=Mn[Li];Mn[Li]=Mn[li],Mn[li]=Bi}return Mn.length=Yn,Mn}var cy=N0(function(Mn){var Yn=[];return Mn.charCodeAt(0)===46&&Yn.push(""),Mn.replace(ya,function(li,bi,Ti,Li){Yn.push(Ti?Li.replace(al,"$1"):bi||li)}),Yn});function Aa(Mn){if(typeof Mn=="string"||ea(Mn))return Mn;var Yn=Mn+"";return Yn=="0"&&1/Mn==-xi?"-0":Yn}function nc(Mn){if(Mn!=null){try{return md.call(Mn)}catch{}try{return Mn+""}catch{}}return""}function V0(Mn,Yn){return Ps(Vi,function(li){var bi="_."+li[0];Yn&li[1]&&!Ku(Mn,bi)&&Mn.push(bi)}),Mn.sort()}function uy(Mn){if(Mn instanceof To)return Mn.clone();var Yn=new aa(Mn.__wrapped__,Mn.__chain__);return Yn.__actions__=qs(Mn.__actions__),Yn.__index__=Mn.__index__,Yn.__values__=Mn.__values__,Yn}function P0(Mn,Yn,li){(li?Hs(Mn,Yn,li):Yn===_n)?Yn=1:Yn=Ts(no(Yn),0);var bi=Mn==null?0:Mn.length;if(!bi||Yn<1)return[];for(var Ti=0,Li=0,Bi=Ki(_d(bi/Yn));Ti<bi;)Bi[Li++]=ca(Mn,Ti,Ti+=Yn);return Bi}function F0(Mn){for(var Yn=-1,li=Mn==null?0:Mn.length,bi=0,Ti=[];++Yn<li;){var Li=Mn[Yn];Li&&(Ti[bi++]=Li)}return Ti}function z0(){var Mn=arguments.length;if(!Mn)return[];for(var Yn=Ki(Mn-1),li=arguments[0],bi=Mn;bi--;)Yn[bi-1]=arguments[bi];return Ds(Xr(li)?qs(li):[li],Ls(Yn,1))}var H0=ao(function(Mn,Yn){return es(Mn)?Ph(Mn,Ls(Yn,1,es,!0)):[]}),W0=ao(function(Mn,Yn){var li=ua(Yn);return es(li)&&(li=_n),es(Mn)?Ph(Mn,Ls(Yn,1,es,!0),zr(li,2)):[]}),j0=ao(function(Mn,Yn){var li=ua(Yn);return es(li)&&(li=_n),es(Mn)?Ph(Mn,Ls(Yn,1,es,!0),_n,li):[]});function U0(Mn,Yn,li){var bi=Mn==null?0:Mn.length;return bi?(Yn=li||Yn===_n?1:no(Yn),ca(Mn,Yn<0?0:Yn,bi)):[]}function G0(Mn,Yn,li){var bi=Mn==null?0:Mn.length;return bi?(Yn=li||Yn===_n?1:no(Yn),Yn=bi-Yn,ca(Mn,0,Yn<0?0:Yn)):[]}function Y0(Mn,Yn){return Mn&&Mn.length?Id(Mn,zr(Yn,3),!0,!0):[]}function q0(Mn,Yn){return Mn&&Mn.length?Id(Mn,zr(Yn,3),!0):[]}function K0(Mn,Yn,li,bi){var Ti=Mn==null?0:Mn.length;return Ti?(li&&typeof li!="number"&&Hs(Mn,Yn,li)&&(li=0,bi=Ti),zw(Mn,Yn,li,bi)):[]}function hy(Mn,Yn,li){var bi=Mn==null?0:Mn.length;if(!bi)return-1;var Ti=li==null?0:no(li);return Ti<0&&(Ti=Ts(bi+Ti,0)),ql(Mn,zr(Yn,3),Ti)}function dy(Mn,Yn,li){var bi=Mn==null?0:Mn.length;if(!bi)return-1;var Ti=bi-1;return li!==_n&&(Ti=no(li),Ti=li<0?Ts(bi+Ti,0):Bs(Ti,bi-1)),ql(Mn,zr(Yn,3),Ti,!0)}function py(Mn){var Yn=Mn==null?0:Mn.length;return Yn?Ls(Mn,1):[]}function Z0(Mn){var Yn=Mn==null?0:Mn.length;return Yn?Ls(Mn,xi):[]}function Q0(Mn,Yn){var li=Mn==null?0:Mn.length;return li?(Yn=Yn===_n?1:no(Yn),Ls(Mn,Yn)):[]}function J0(Mn){for(var Yn=-1,li=Mn==null?0:Mn.length,bi={};++Yn<li;){var Ti=Mn[Yn];bi[Ti[0]]=Ti[1]}return bi}function gy(Mn){return Mn&&Mn.length?Mn[0]:_n}function X0(Mn,Yn,li){var bi=Mn==null?0:Mn.length;if(!bi)return-1;var Ti=li==null?0:no(li);return Ti<0&&(Ti=Ts(bi+Ti,0)),hl(Mn,Yn,Ti)}function eb(Mn){var Yn=Mn==null?0:Mn.length;return Yn?ca(Mn,0,-1):[]}var tb=ao(function(Mn){var Yn=zo(Mn,Tm);return Yn.length&&Yn[0]===Mn[0]?vm(Yn):[]}),nb=ao(function(Mn){var Yn=ua(Mn),li=zo(Mn,Tm);return Yn===ua(li)?Yn=_n:li.pop(),li.length&&li[0]===Mn[0]?vm(li,zr(Yn,2)):[]}),ib=ao(function(Mn){var Yn=ua(Mn),li=zo(Mn,Tm);return Yn=typeof Yn=="function"?Yn:_n,Yn&&li.pop(),li.length&&li[0]===Mn[0]?vm(li,_n,Yn):[]});function rb(Mn,Yn){return Mn==null?"":ew.call(Mn,Yn)}function ua(Mn){var Yn=Mn==null?0:Mn.length;return Yn?Mn[Yn-1]:_n}function ob(Mn,Yn,li){var bi=Mn==null?0:Mn.length;if(!bi)return-1;var Ti=bi;return li!==_n&&(Ti=no(li),Ti=Ti<0?Ts(bi+Ti,0):Bs(Ti,bi-1)),Yn===Yn?Ro(Mn,Yn,Ti):ql(Mn,Mh,Ti,!0)}function sb(Mn,Yn){return Mn&&Mn.length?Sv(Mn,no(Yn)):_n}var ab=ao(fy);function fy(Mn,Yn){return Mn&&Mn.length&&Yn&&Yn.length?$m(Mn,Yn):Mn}function lb(Mn,Yn,li){return Mn&&Mn.length&&Yn&&Yn.length?$m(Mn,Yn,zr(li,2)):Mn}function cb(Mn,Yn,li){return Mn&&Mn.length&&Yn&&Yn.length?$m(Mn,Yn,_n,li):Mn}var ub=ml(function(Mn,Yn){var li=Mn==null?0:Mn.length,bi=pm(Mn,Yn);return Mv(Mn,zo(Yn,function(Ti){return vl(Ti,li)?+Ti:Ti}).sort(Vv)),bi});function hb(Mn,Yn){var li=[];if(!(Mn&&Mn.length))return li;var bi=-1,Ti=[],Li=Mn.length;for(Yn=zr(Yn,3);++bi<Li;){var Bi=Mn[bi];Yn(Bi,bi,Mn)&&(li.push(Bi),Ti.push(bi))}return Mv(Mn,Ti),li}function zm(Mn){return Mn==null?Mn:rw.call(Mn)}function db(Mn,Yn,li){var bi=Mn==null?0:Mn.length;return bi?(li&&typeof li!="number"&&Hs(Mn,Yn,li)?(Yn=0,li=bi):(Yn=Yn==null?0:no(Yn),li=li===_n?bi:no(li)),ca(Mn,Yn,li)):[]}function pb(Mn,Yn){return Rd(Mn,Yn)}function gb(Mn,Yn,li){return km(Mn,Yn,zr(li,2))}function fb(Mn,Yn){var li=Mn==null?0:Mn.length;if(li){var bi=Rd(Mn,Yn);if(bi<li&&fa(Mn[bi],Yn))return bi}return-1}function mb(Mn,Yn){return Rd(Mn,Yn,!0)}function vb(Mn,Yn,li){return km(Mn,Yn,zr(li,2),!0)}function yb(Mn,Yn){var li=Mn==null?0:Mn.length;if(li){var bi=Rd(Mn,Yn,!0)-1;if(fa(Mn[bi],Yn))return bi}return-1}function wb(Mn){return Mn&&Mn.length?Ev(Mn):[]}function bb(Mn,Yn){return Mn&&Mn.length?Ev(Mn,zr(Yn,2)):[]}function $b(Mn){var Yn=Mn==null?0:Mn.length;return Yn?ca(Mn,1,Yn):[]}function xb(Mn,Yn,li){return Mn&&Mn.length?(Yn=li||Yn===_n?1:no(Yn),ca(Mn,0,Yn<0?0:Yn)):[]}function _b(Mn,Yn,li){var bi=Mn==null?0:Mn.length;return bi?(Yn=li||Yn===_n?1:no(Yn),Yn=bi-Yn,ca(Mn,Yn<0?0:Yn,bi)):[]}function kb(Mn,Yn){return Mn&&Mn.length?Id(Mn,zr(Yn,3),!1,!0):[]}function Sb(Mn,Yn){return Mn&&Mn.length?Id(Mn,zr(Yn,3)):[]}var Cb=ao(function(Mn){return Bl(Ls(Mn,1,es,!0))}),Tb=ao(function(Mn){var Yn=ua(Mn);return es(Yn)&&(Yn=_n),Bl(Ls(Mn,1,es,!0),zr(Yn,2))}),Mb=ao(function(Mn){var Yn=ua(Mn);return Yn=typeof Yn=="function"?Yn:_n,Bl(Ls(Mn,1,es,!0),_n,Yn)});function Ab(Mn){return Mn&&Mn.length?Bl(Mn):[]}function Eb(Mn,Yn){return Mn&&Mn.length?Bl(Mn,zr(Yn,2)):[]}function Lb(Mn,Yn){return Yn=typeof Yn=="function"?Yn:_n,Mn&&Mn.length?Bl(Mn,_n,Yn):[]}function Hm(Mn){if(!(Mn&&Mn.length))return[];var Yn=0;return Mn=Gs(Mn,function(li){if(es(li))return Yn=Ts(li.length,Yn),!0}),Qo(Yn,function(li){return zo(Mn,Eh(li))})}function my(Mn,Yn){if(!(Mn&&Mn.length))return[];var li=Hm(Mn);return Yn==null?li:zo(li,function(bi){return Wo(Yn,_n,bi)})}var Rb=ao(function(Mn,Yn){return es(Mn)?Ph(Mn,Yn):[]}),Nb=ao(function(Mn){return Cm(Gs(Mn,es))}),Ib=ao(function(Mn){var Yn=ua(Mn);return es(Yn)&&(Yn=_n),Cm(Gs(Mn,es),zr(Yn,2))}),Db=ao(function(Mn){var Yn=ua(Mn);return Yn=typeof Yn=="function"?Yn:_n,Cm(Gs(Mn,es),_n,Yn)}),Ob=ao(Hm);function Bb(Mn,Yn){return Iv(Mn||[],Yn||[],Vh)}function Vb(Mn,Yn){return Iv(Mn||[],Yn||[],Hh)}var Pb=ao(function(Mn){var Yn=Mn.length,li=Yn>1?Mn[Yn-1]:_n;return li=typeof li=="function"?(Mn.pop(),li):_n,my(Mn,li)});function vy(Mn){var Yn=Ai(Mn);return Yn.__chain__=!0,Yn}function Fb(Mn,Yn){return Yn(Mn),Mn}function jg(Mn,Yn){return Yn(Mn)}var zb=ml(function(Mn){var Yn=Mn.length,li=Yn?Mn[0]:0,bi=this.__wrapped__,Ti=function(Li){return pm(Li,Mn)};return Yn>1||this.__actions__.length||!(bi instanceof To)||!vl(li)?this.thru(Ti):(bi=bi.slice(li,+li+(Yn?1:0)),bi.__actions__.push({func:jg,args:[Ti],thisArg:_n}),new aa(bi,this.__chain__).thru(function(Li){return Yn&&!Li.length&&Li.push(_n),Li}))});function Hb(){return vy(this)}function Wb(){return new aa(this.value(),this.__chain__)}function jb(){this.__values__===_n&&(this.__values__=Ly(this.value()));var Mn=this.__index__>=this.__values__.length,Yn=Mn?_n:this.__values__[this.__index__++];return{done:Mn,value:Yn}}function Ub(){return this}function Gb(Mn){for(var Yn,li=this;li instanceof Td;){var bi=uy(li);bi.__index__=0,bi.__values__=_n,Yn?Ti.__wrapped__=bi:Yn=bi;var Ti=bi;li=li.__wrapped__}return Ti.__wrapped__=Mn,Yn}function qb(){var Mn=this.__wrapped__;if(Mn instanceof To){var Yn=Mn;return this.__actions__.length&&(Yn=new To(this)),Yn=Yn.reverse(),Yn.__actions__.push({func:jg,args:[zm],thisArg:_n}),new aa(Yn,this.__chain__)}return this.thru(zm)}function Kb(){return Nv(this.__wrapped__,this.__actions__)}var Y1=Dd(function(Mn,Yn,li){No.call(Mn,li)?++Mn[li]:gl(Mn,li,1)});function q1(Mn,Yn,li){var bi=Xr(Mn)?Rl:Fw;return li&&Hs(Mn,Yn,li)&&(Yn=_n),bi(Mn,zr(Yn,3))}function Z1(Mn,Yn){var li=Xr(Mn)?Gs:mv;return li(Mn,zr(Yn,3))}var Q1=jv(hy),X1=jv(dy);function e$(Mn,Yn){return Ls(Ug(Mn,Yn),1)}function t$(Mn,Yn){return Ls(Ug(Mn,Yn),xi)}function n$(Mn,Yn,li){return li=li===_n?1:no(li),Ls(Ug(Mn,Yn),li)}function yy(Mn,Yn){var li=Xr(Mn)?Ps:Ol;return li(Mn,zr(Yn,3))}function wy(Mn,Yn){var li=Xr(Mn)?ud:fv;return li(Mn,zr(Yn,3))}var i$=Dd(function(Mn,Yn,li){No.call(Mn,li)?Mn[li].push(Yn):gl(Mn,li,[Yn])});function r$(Mn,Yn,li,bi){Mn=Ks(Mn)?Mn:ah(Mn),li=li&&!bi?no(li):0;var Ti=Mn.length;return li<0&&(li=Ts(Ti+li,0)),Zg(Mn)?li<=Ti&&Mn.indexOf(Yn,li)>-1:!!Ti&&hl(Mn,Yn,li)>-1}var o$=ao(function(Mn,Yn,li){var bi=-1,Ti=typeof Yn=="function",Li=Ks(Mn)?Ki(Mn.length):[];return Ol(Mn,function(Bi){Li[++bi]=Ti?Wo(Yn,Bi,li):Fh(Bi,Yn,li)}),Li}),s$=Dd(function(Mn,Yn,li){gl(Mn,li,Yn)});function Ug(Mn,Yn){var li=Xr(Mn)?zo:xv;return li(Mn,zr(Yn,3))}function a$(Mn,Yn,li,bi){return Mn==null?[]:(Xr(Yn)||(Yn=Yn==null?[]:[Yn]),li=bi?_n:li,Xr(li)||(li=li==null?[]:[li]),Cv(Mn,Yn,li))}var l$=Dd(function(Mn,Yn,li){Mn[li?0:1].push(Yn)},function(){return[[],[]]});function c$(Mn,Yn,li){var bi=Xr(Mn)?sa:Lh,Ti=arguments.length<3;return bi(Mn,zr(Yn,4),li,Ti,Ol)}function u$(Mn,Yn,li){var bi=Xr(Mn)?Yl:Lh,Ti=arguments.length<3;return bi(Mn,zr(Yn,4),li,Ti,fv)}function h$(Mn,Yn){var li=Xr(Mn)?Gs:mv;return li(Mn,qg(zr(Yn,3)))}function d$(Mn){var Yn=Xr(Mn)?hv:r0;return Yn(Mn)}function p$(Mn,Yn,li){(li?Hs(Mn,Yn,li):Yn===_n)?Yn=1:Yn=no(Yn);var bi=Xr(Mn)?Dw:o0;return bi(Mn,Yn)}function g$(Mn){var Yn=Xr(Mn)?Ow:a0;return Yn(Mn)}function f$(Mn){if(Mn==null)return 0;if(Ks(Mn))return Zg(Mn)?to(Mn):Mn.length;var Yn=Vs(Mn);return Yn==lo||Yn==Ko?Mn.size:wm(Mn).length}function m$(Mn,Yn,li){var bi=Xr(Mn)?Zu:l0;return li&&Hs(Mn,Yn,li)&&(Yn=_n),bi(Mn,zr(Yn,3))}var v$=ao(function(Mn,Yn){if(Mn==null)return[];var li=Yn.length;return li>1&&Hs(Mn,Yn[0],Yn[1])?Yn=[]:li>2&&Hs(Yn[0],Yn[1],Yn[2])&&(Yn=[Yn[0]]),Cv(Mn,Ls(Yn,1),[])}),Gg=Qy||function(){return cs.Date.now()};function y$(Mn,Yn){if(typeof Yn!="function")throw new Cs(Kn);return Mn=no(Mn),function(){if(--Mn<1)return Yn.apply(this,arguments)}}function by(Mn,Yn,li){return Yn=li?_n:Yn,Yn=Mn&&Yn==null?Mn.length:Yn,fl(Mn,fi,_n,_n,_n,_n,Yn)}function $y(Mn,Yn){var li;if(typeof Yn!="function")throw new Cs(Kn);return Mn=no(Mn),function(){return--Mn>0&&(li=Yn.apply(this,arguments)),Mn<=1&&(Yn=_n),li}}var Wm=ao(function(Mn,Yn,li){var bi=Zn;if(li.length){var Ti=vr(li,oh(Wm));bi|=oi}return fl(Mn,bi,Yn,li,Ti)}),xy=ao(function(Mn,Yn,li){var bi=Zn|Jn;if(li.length){var Ti=vr(li,oh(xy));bi|=oi}return fl(Yn,bi,Mn,li,Ti)});function _y(Mn,Yn,li){Yn=li?_n:Yn;var bi=fl(Mn,mi,_n,_n,_n,_n,_n,Yn);return bi.placeholder=_y.placeholder,bi}function ky(Mn,Yn,li){Yn=li?_n:Yn;var bi=fl(Mn,ci,_n,_n,_n,_n,_n,Yn);return bi.placeholder=ky.placeholder,bi}function Sy(Mn,Yn,li){var bi,Ti,Li,Bi,zi,Yi,ir=0,ar=!1,pr=!1,$r=!0;if(typeof Mn!="function")throw new Cs(Kn);Yn=ha(Yn)||0,qo(li)&&(ar=!!li.leading,pr="maxWait"in li,Li=pr?Ts(ha(li.maxWait)||0,Yn):Li,$r="trailing"in li?!!li.trailing:$r);function Cr(ts){var ma=bi,bl=Ti;return bi=Ti=_n,ir=ts,Bi=Mn.apply(bl,ma),Bi}function jr(ts){return ir=ts,zi=Uh(Co,Yn),ar?Cr(ts):Bi}function ro(ts){var ma=ts-Yi,bl=ts-ir,jy=Yn-ma;return pr?Bs(jy,Li-bl):jy}function Ur(ts){var ma=ts-Yi,bl=ts-ir;return Yi===_n||ma>=Yn||ma<0||pr&&bl>=Li}function Co(){var ts=Gg();if(Ur(ts))return Mo(ts);zi=Uh(Co,ro(ts))}function Mo(ts){return zi=_n,$r&&bi?Cr(ts):(bi=Ti=_n,Bi)}function ta(){zi!==_n&&Dv(zi),ir=0,bi=Yi=Ti=zi=_n}function Ws(){return zi===_n?Bi:Mo(Gg())}function na(){var ts=Gg(),ma=Ur(ts);if(bi=arguments,Ti=this,Yi=ts,ma){if(zi===_n)return jr(Yi);if(pr)return Dv(zi),zi=Uh(Co,Yn),Cr(Yi)}return zi===_n&&(zi=Uh(Co,Yn)),Bi}return na.cancel=ta,na.flush=Ws,na}var w$=ao(function(Mn,Yn){return gv(Mn,1,Yn)}),b$=ao(function(Mn,Yn,li){return gv(Mn,ha(Yn)||0,li)});function $$(Mn){return fl(Mn,yi)}function Yg(Mn,Yn){if(typeof Mn!="function"||Yn!=null&&typeof Yn!="function")throw new Cs(Kn);var li=function(){var bi=arguments,Ti=Yn?Yn.apply(this,bi):bi[0],Li=li.cache;if(Li.has(Ti))return Li.get(Ti);var Bi=Mn.apply(this,bi);return li.cache=Li.set(Ti,Bi)||Li,Bi};return li.cache=new(Yg.Cache||pl),li}Yg.Cache=pl;function qg(Mn){if(typeof Mn!="function")throw new Cs(Kn);return function(){var Yn=arguments;switch(Yn.length){case 0:return!Mn.call(this);case 1:return!Mn.call(this,Yn[0]);case 2:return!Mn.call(this,Yn[0],Yn[1]);case 3:return!Mn.call(this,Yn[0],Yn[1],Yn[2])}return!Mn.apply(this,Yn)}}function x$(Mn){return $y(2,Mn)}var _$=c0(function(Mn,Yn){Yn=Yn.length==1&&Xr(Yn[0])?zo(Yn[0],Os(zr())):zo(Ls(Yn,1),Os(zr()));var li=Yn.length;return ao(function(bi){for(var Ti=-1,Li=Bs(bi.length,li);++Ti<Li;)bi[Ti]=Yn[Ti].call(this,bi[Ti]);return Wo(Mn,this,bi)})}),jm=ao(function(Mn,Yn){var li=vr(Yn,oh(jm));return fl(Mn,oi,_n,Yn,li)}),Cy=ao(function(Mn,Yn){var li=vr(Yn,oh(Cy));return fl(Mn,ei,_n,Yn,li)}),k$=ml(function(Mn,Yn){return fl(Mn,gi,_n,_n,_n,Yn)});function S$(Mn,Yn){if(typeof Mn!="function")throw new Cs(Kn);return Yn=Yn===_n?Yn:no(Yn),ao(Mn,Yn)}function C$(Mn,Yn){if(typeof Mn!="function")throw new Cs(Kn);return Yn=Yn==null?0:Ts(no(Yn),0),ao(function(li){var bi=li[Yn],Ti=Pl(li,0,Yn);return bi&&Ds(Ti,bi),Wo(Mn,this,Ti)})}function T$(Mn,Yn,li){var bi=!0,Ti=!0;if(typeof Mn!="function")throw new Cs(Kn);return qo(li)&&(bi="leading"in li?!!li.leading:bi,Ti="trailing"in li?!!li.trailing:Ti),Sy(Mn,Yn,{leading:bi,maxWait:Yn,trailing:Ti})}function M$(Mn){return by(Mn,1)}function A$(Mn,Yn){return jm(Mm(Yn),Mn)}function E$(){if(!arguments.length)return[];var Mn=arguments[0];return Xr(Mn)?Mn:[Mn]}function L$(Mn){return la(Mn,Bn)}function R$(Mn,Yn){return Yn=typeof Yn=="function"?Yn:_n,la(Mn,Bn,Yn)}function N$(Mn){return la(Mn,Dn|Bn)}function I$(Mn,Yn){return Yn=typeof Yn=="function"?Yn:_n,la(Mn,Dn|Bn,Yn)}function D$(Mn,Yn){return Yn==null||pv(Mn,Yn,Es(Yn))}function fa(Mn,Yn){return Mn===Yn||Mn!==Mn&&Yn!==Yn}var O$=Pg(mm),B$=Pg(function(Mn,Yn){return Mn>=Yn}),ic=wv(function(){return arguments}())?wv:function(Mn){return Jo(Mn)&&No.call(Mn,"callee")&&!ov.call(Mn,"callee")},Xr=Ki.isArray,V$=ld?Os(ld):Gw;function Ks(Mn){return Mn!=null&&Kg(Mn.length)&&!yl(Mn)}function es(Mn){return Jo(Mn)&&Ks(Mn)}function P$(Mn){return Mn===!0||Mn===!1||Jo(Mn)&&zs(Mn)==lr}var Fl=Xy||tv,F$=oa?Os(oa):Yw;function z$(Mn){return Jo(Mn)&&Mn.nodeType===1&&!Gh(Mn)}function H$(Mn){if(Mn==null)return!0;if(Ks(Mn)&&(Xr(Mn)||typeof Mn=="string"||typeof Mn.splice=="function"||Fl(Mn)||sh(Mn)||ic(Mn)))return!Mn.length;var Yn=Vs(Mn);if(Yn==lo||Yn==Ko)return!Mn.size;if(jh(Mn))return!wm(Mn).length;for(var li in Mn)if(No.call(Mn,li))return!1;return!0}function W$(Mn,Yn){return zh(Mn,Yn)}function j$(Mn,Yn,li){li=typeof li=="function"?li:_n;var bi=li?li(Mn,Yn):_n;return bi===_n?zh(Mn,Yn,_n,li):!!bi}function Um(Mn){if(!Jo(Mn))return!1;var Yn=zs(Mn);return Yn==yr||Yn==or||typeof Mn.message=="string"&&typeof Mn.name=="string"&&!Gh(Mn)}function U$(Mn){return typeof Mn=="number"&&av(Mn)}function yl(Mn){if(!qo(Mn))return!1;var Yn=zs(Mn);return Yn==io||Yn==Po||Yn==Zi||Yn==va}function Ty(Mn){return typeof Mn=="number"&&Mn==no(Mn)}function Kg(Mn){return typeof Mn=="number"&&Mn>-1&&Mn%1==0&&Mn<=Si}function qo(Mn){var Yn=typeof Mn;return Mn!=null&&(Yn=="object"||Yn=="function")}function Jo(Mn){return Mn!=null&&typeof Mn=="object"}var My=da?Os(da):Kw;function G$(Mn,Yn){return Mn===Yn||ym(Mn,Yn,Dm(Yn))}function Y$(Mn,Yn,li){return li=typeof li=="function"?li:_n,ym(Mn,Yn,Dm(Yn),li)}function q$(Mn){return Ay(Mn)&&Mn!=+Mn}function K$(Mn){if(R0(Mn))throw new Tr(Hn);return bv(Mn)}function Z$(Mn){return Mn===null}function Q$(Mn){return Mn==null}function Ay(Mn){return typeof Mn=="number"||Jo(Mn)&&zs(Mn)==So}function Gh(Mn){if(!Jo(Mn)||zs(Mn)!=Do)return!1;var Yn=bd(Mn);if(Yn===null)return!0;var li=No.call(Yn,"constructor")&&Yn.constructor;return typeof li=="function"&&li instanceof li&&md.call(li)==Yy}var Gm=ka?Os(ka):Zw;function J$(Mn){return Ty(Mn)&&Mn>=-Si&&Mn<=Si}var Ey=ul?Os(ul):Qw;function Zg(Mn){return typeof Mn=="string"||!Xr(Mn)&&Jo(Mn)&&zs(Mn)==Mr}function ea(Mn){return typeof Mn=="symbol"||Jo(Mn)&&zs(Mn)==Vr}var sh=cd?Os(cd):Jw;function X$(Mn){return Mn===_n}function Ek(Mn){return Jo(Mn)&&Vs(Mn)==Hr}function Lk(Mn){return Jo(Mn)&&zs(Mn)==Ji}var Rk=Pg(bm),Nk=Pg(function(Mn,Yn){return Mn<=Yn});function Ly(Mn){if(!Mn)return[];if(Ks(Mn))return Zg(Mn)?Yr(Mn):qs(Mn);if(Nh&&Mn[Nh])return Xi(Mn[Nh]());var Yn=Vs(Mn),li=Yn==lo?fr:Yn==Ko?br:ah;return li(Mn)}function wl(Mn){if(!Mn)return Mn===0?Mn:0;if(Mn=ha(Mn),Mn===xi||Mn===-xi){var Yn=Mn<0?-1:1;return Yn*Ei}return Mn===Mn?Mn:0}function no(Mn){var Yn=wl(Mn),li=Yn%1;return Yn===Yn?li?Yn-li:Yn:0}function Ry(Mn){return Mn?Xl(no(Mn),0,Ni):0}function ha(Mn){if(typeof Mn=="number")return Mn;if(ea(Mn))return Ri;if(qo(Mn)){var Yn=typeof Mn.valueOf=="function"?Mn.valueOf():Mn;Mn=qo(Yn)?Yn+"":Yn}if(typeof Mn!="string")return Mn===0?Mn:+Mn;Mn=Go(Mn);var li=ba.test(Mn);return li||ns.test(Mn)?Oo(Mn.slice(2),li?2:8):Zh.test(Mn)?Ri:+Mn}function Ny(Mn){return Ca(Mn,Zs(Mn))}function Ik(Mn){return Mn?Xl(no(Mn),-Si,Si):Mn===0?Mn:0}function Lo(Mn){return Mn==null?"":Xs(Mn)}var Vk=ih(function(Mn,Yn){if(jh(Yn)||Ks(Yn)){Ca(Yn,Es(Yn),Mn);return}for(var li in Yn)No.call(Yn,li)&&Vh(Mn,li,Yn[li])}),Iy=ih(function(Mn,Yn){Ca(Yn,Zs(Yn),Mn)}),Qg=ih(function(Mn,Yn,li,bi){Ca(Yn,Zs(Yn),Mn,bi)}),Pk=ih(function(Mn,Yn,li,bi){Ca(Yn,Es(Yn),Mn,bi)}),Fk=ml(pm);function Hk(Mn,Yn){var li=nh(Mn);return Yn==null?li:dv(li,Yn)}var jk=ao(function(Mn,Yn){Mn=Jr(Mn);var li=-1,bi=Yn.length,Ti=bi>2?Yn[2]:_n;for(Ti&&Hs(Yn[0],Yn[1],Ti)&&(bi=1);++li<bi;)for(var Li=Yn[li],Bi=Zs(Li),zi=-1,Yi=Bi.length;++zi<Yi;){var ir=Bi[zi],ar=Mn[ir];(ar===_n||fa(ar,Xu[ir])&&!No.call(Mn,ir))&&(Mn[ir]=Li[ir])}return Mn}),Uk=ao(function(Mn){return Mn.push(_n,Qv),Wo(Dy,_n,Mn)});function Gk(Mn,Yn){return Th(Mn,zr(Yn,3),Sa)}function Yk(Mn,Yn){return Th(Mn,zr(Yn,3),fm)}function qk(Mn,Yn){return Mn==null?Mn:gm(Mn,zr(Yn,3),Zs)}function Kk(Mn,Yn){return Mn==null?Mn:vv(Mn,zr(Yn,3),Zs)}function Zk(Mn,Yn){return Mn&&Sa(Mn,zr(Yn,3))}function Qk(Mn,Yn){return Mn&&fm(Mn,zr(Yn,3))}function Jk(Mn){return Mn==null?[]:Ed(Mn,Es(Mn))}function Xk(Mn){return Mn==null?[]:Ed(Mn,Zs(Mn))}function Ym(Mn,Yn,li){var bi=Mn==null?_n:ec(Mn,Yn);return bi===_n?li:bi}function eC(Mn,Yn){return Mn!=null&&ey(Mn,Yn,Hw)}function qm(Mn,Yn){return Mn!=null&&ey(Mn,Yn,Ww)}var tC=Gv(function(Mn,Yn,li){Yn!=null&&typeof Yn.toString!="function"&&(Yn=vd.call(Yn)),Mn[Yn]=li},Zm(Qs)),nC=Gv(function(Mn,Yn,li){Yn!=null&&typeof Yn.toString!="function"&&(Yn=vd.call(Yn)),No.call(Mn,Yn)?Mn[Yn].push(li):Mn[Yn]=[li]},zr),iC=ao(Fh);function Es(Mn){return Ks(Mn)?uv(Mn):wm(Mn)}function Zs(Mn){return Ks(Mn)?uv(Mn,!0):Xw(Mn)}function rC(Mn,Yn){var li={};return Yn=zr(Yn,3),Sa(Mn,function(bi,Ti,Li){gl(li,Yn(bi,Ti,Li),bi)}),li}function oC(Mn,Yn){var li={};return Yn=zr(Yn,3),Sa(Mn,function(bi,Ti,Li){gl(li,Ti,Yn(bi,Ti,Li))}),li}var sC=ih(function(Mn,Yn,li){Ld(Mn,Yn,li)}),Dy=ih(function(Mn,Yn,li,bi){Ld(Mn,Yn,li,bi)}),aC=ml(function(Mn,Yn){var li={};if(Mn==null)return li;var bi=!1;Yn=zo(Yn,function(Li){return Li=Vl(Li,Mn),bi||(bi=Li.length>1),Li}),Ca(Mn,Nm(Mn),li),bi&&(li=la(li,Dn|In|Bn,b0));for(var Ti=Yn.length;Ti--;)Sm(li,Yn[Ti]);return li});function lC(Mn,Yn){return Oy(Mn,qg(zr(Yn)))}var cC=ml(function(Mn,Yn){return Mn==null?{}:t0(Mn,Yn)});function Oy(Mn,Yn){if(Mn==null)return{};var li=zo(Nm(Mn),function(bi){return[bi]});return Yn=zr(Yn),Tv(Mn,li,function(bi,Ti){return Yn(bi,Ti[0])})}function uC(Mn,Yn,li){Yn=Vl(Yn,Mn);var bi=-1,Ti=Yn.length;for(Ti||(Ti=1,Mn=_n);++bi<Ti;){var Li=Mn==null?_n:Mn[Aa(Yn[bi])];Li===_n&&(bi=Ti,Li=li),Mn=yl(Li)?Li.call(Mn):Li}return Mn}function hC(Mn,Yn,li){return Mn==null?Mn:Hh(Mn,Yn,li)}function dC(Mn,Yn,li,bi){return bi=typeof bi=="function"?bi:_n,Mn==null?Mn:Hh(Mn,Yn,li,bi)}var By=Kv(Es),Vy=Kv(Zs);function pC(Mn,Yn,li){var bi=Xr(Mn),Ti=bi||Fl(Mn)||sh(Mn);if(Yn=zr(Yn,4),li==null){var Li=Mn&&Mn.constructor;Ti?li=bi?new Li:[]:qo(Mn)?li=yl(Li)?nh(bd(Mn)):{}:li={}}return(Ti?Ps:Sa)(Mn,function(Bi,zi,Yi){return Yn(li,Bi,zi,Yi)}),li}function gC(Mn,Yn){return Mn==null?!0:Sm(Mn,Yn)}function fC(Mn,Yn,li){return Mn==null?Mn:Rv(Mn,Yn,Mm(li))}function mC(Mn,Yn,li,bi){return bi=typeof bi=="function"?bi:_n,Mn==null?Mn:Rv(Mn,Yn,Mm(li),bi)}function ah(Mn){return Mn==null?[]:Kl(Mn,Es(Mn))}function vC(Mn){return Mn==null?[]:Kl(Mn,Zs(Mn))}function yC(Mn,Yn,li){return li===_n&&(li=Yn,Yn=_n),li!==_n&&(li=ha(li),li=li===li?li:0),Yn!==_n&&(Yn=ha(Yn),Yn=Yn===Yn?Yn:0),Xl(ha(Mn),Yn,li)}function wC(Mn,Yn,li){return Yn=wl(Yn),li===_n?(li=Yn,Yn=0):li=wl(li),Mn=ha(Mn),jw(Mn,Yn,li)}function bC(Mn,Yn,li){if(li&&typeof li!="boolean"&&Hs(Mn,Yn,li)&&(Yn=li=_n),li===_n&&(typeof Yn=="boolean"?(li=Yn,Yn=_n):typeof Mn=="boolean"&&(li=Mn,Mn=_n)),Mn===_n&&Yn===_n?(Mn=0,Yn=1):(Mn=wl(Mn),Yn===_n?(Yn=Mn,Mn=0):Yn=wl(Yn)),Mn>Yn){var bi=Mn;Mn=Yn,Yn=bi}if(li||Mn%1||Yn%1){var Ti=lv();return Bs(Mn+Ti*(Yn-Mn+os("1e-"+((Ti+"").length-1))),Yn)}return xm(Mn,Yn)}var $C=rh(function(Mn,Yn,li){return Yn=Yn.toLowerCase(),Mn+(li?Py(Yn):Yn)});function Py(Mn){return Km(Lo(Mn).toLowerCase())}function Fy(Mn){return Mn=Lo(Mn),Mn&&Mn.replace(rc,_i).replace(Al,"")}function xC(Mn,Yn,li){Mn=Lo(Mn),Yn=Xs(Yn);var bi=Mn.length;li=li===_n?bi:Xl(no(li),0,bi);var Ti=li;return li-=Yn.length,li>=0&&Mn.slice(li,Ti)==Yn}function _C(Mn){return Mn=Lo(Mn),Mn&&Xg.test(Mn)?Mn.replace(Yh,Mi):Mn}function kC(Mn){return Mn=Lo(Mn),Mn&&$l.test(Mn)?Mn.replace(wa,"\\$&"):Mn}var SC=rh(function(Mn,Yn,li){return Mn+(li?"-":"")+Yn.toLowerCase()}),CC=rh(function(Mn,Yn,li){return Mn+(li?" ":"")+Yn.toLowerCase()}),TC=Wv("toLowerCase");function MC(Mn,Yn,li){Mn=Lo(Mn),Yn=no(Yn);var bi=Yn?to(Mn):0;if(!Yn||bi>=Yn)return Mn;var Ti=(Yn-bi)/2;return Vg(kd(Ti),li)+Mn+Vg(_d(Ti),li)}function AC(Mn,Yn,li){Mn=Lo(Mn),Yn=no(Yn);var bi=Yn?to(Mn):0;return Yn&&bi<Yn?Mn+Vg(Yn-bi,li):Mn}function EC(Mn,Yn,li){Mn=Lo(Mn),Yn=no(Yn);var bi=Yn?to(Mn):0;return Yn&&bi<Yn?Vg(Yn-bi,li)+Mn:Mn}function LC(Mn,Yn,li){return li||Yn==null?Yn=0:Yn&&(Yn=+Yn),iw(Lo(Mn).replace(Ns,""),Yn||0)}function RC(Mn,Yn,li){return(li?Hs(Mn,Yn,li):Yn===_n)?Yn=1:Yn=no(Yn),_m(Lo(Mn),Yn)}function NC(){var Mn=arguments,Yn=Lo(Mn[0]);return Mn.length<3?Yn:Yn.replace(Mn[1],Mn[2])}var IC=rh(function(Mn,Yn,li){return Mn+(li?"_":"")+Yn.toLowerCase()});function DC(Mn,Yn,li){return li&&typeof li!="number"&&Hs(Mn,Yn,li)&&(Yn=li=_n),li=li===_n?Ni:li>>>0,li?(Mn=Lo(Mn),Mn&&(typeof Yn=="string"||Yn!=null&&!Gm(Yn))&&(Yn=Xs(Yn),!Yn&&Wi(Mn))?Pl(Yr(Mn),0,li):Mn.split(Yn,li)):[]}var OC=rh(function(Mn,Yn,li){return Mn+(li?" ":"")+Km(Yn)});function BC(Mn,Yn,li){return Mn=Lo(Mn),li=li==null?0:Xl(no(li),0,Mn.length),Yn=Xs(Yn),Mn.slice(li,li+Yn.length)==Yn}function VC(Mn,Yn,li){var bi=Ai.templateSettings;li&&Hs(Mn,Yn,li)&&(Yn=_n),Mn=Lo(Mn),Yn=Qg({},Yn,bi,Zv);var Ti=Qg({},Yn.imports,bi.imports,Zv),Li=Es(Ti),Bi=Kl(Ti,Li),zi,Yi,ir=0,ar=Yn.interpolate||Is,pr="__p += '",$r=$s((Yn.escape||Is).source+"|"+ar.source+"|"+(ar===Ar?rm:Is).source+"|"+(Yn.evaluate||Is).source+"|$","g"),Cr="//# sourceURL="+(No.call(Yn,"sourceURL")?(Yn.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sd+"]")+`
1390
+ `;Mn.replace($r,function(Ur,Co,Mo,ta,Ws,na){return Mo||(Mo=ta),pr+=Mn.slice(ir,na).replace(zl,Di),Co&&(zi=!0,pr+=`' +
1391
+ __e(`+Co+`) +
1392
+ '`),Ws&&(Yi=!0,pr+=`';
1393
+ `+Ws+`;
1394
+ __p += '`),Mo&&(pr+=`' +
1395
+ ((__t = (`+Mo+`)) == null ? '' : __t) +
1396
+ '`),ir=na+Ur.length,Ur}),pr+=`';
1397
+ `;var jr=No.call(Yn,"variable")&&Yn.variable;if(!jr)pr=`with (obj) {
1398
+ `+pr+`
1399
+ }
1400
+ `;else if(im.test(jr))throw new Tr(Qn);pr=(Yi?pr.replace(ol,""):pr).replace(js,"$1").replace(lh,"$1;"),pr="function("+(jr||"obj")+`) {
1401
+ `+(jr?"":`obj || (obj = {});
1402
+ `)+"var __t, __p = ''"+(zi?", __e = _.escape":"")+(Yi?`, __j = Array.prototype.join;
1403
+ function print() { __p += __j.call(arguments, '') }
1404
+ `:`;
1405
+ `)+pr+`return __p
1406
+ }`;var ro=Hy(function(){return Zr(Li,Cr+"return "+pr).apply(_n,Bi)});if(ro.source=pr,Um(ro))throw ro;return ro}function PC(Mn){return Lo(Mn).toLowerCase()}function FC(Mn){return Lo(Mn).toUpperCase()}function zC(Mn,Yn,li){if(Mn=Lo(Mn),Mn&&(li||Yn===_n))return Go(Mn);if(!Mn||!(Yn=Xs(Yn)))return Mn;var bi=Yr(Mn),Ti=Yr(Yn),Li=pd(bi,Ti),Bi=gd(bi,Ti)+1;return Pl(bi,Li,Bi).join("")}function HC(Mn,Yn,li){if(Mn=Lo(Mn),Mn&&(li||Yn===_n))return Mn.slice(0,Qr(Mn)+1);if(!Mn||!(Yn=Xs(Yn)))return Mn;var bi=Yr(Mn),Ti=gd(bi,Yr(Yn))+1;return Pl(bi,0,Ti).join("")}function WC(Mn,Yn,li){if(Mn=Lo(Mn),Mn&&(li||Yn===_n))return Mn.replace(Ns,"");if(!Mn||!(Yn=Xs(Yn)))return Mn;var bi=Yr(Mn),Ti=pd(bi,Yr(Yn));return Pl(bi,Ti).join("")}function jC(Mn,Yn){var li=pi,bi=$i;if(qo(Yn)){var Ti="separator"in Yn?Yn.separator:Ti;li="length"in Yn?no(Yn.length):li,bi="omission"in Yn?Xs(Yn.omission):bi}Mn=Lo(Mn);var Li=Mn.length;if(Wi(Mn)){var Bi=Yr(Mn);Li=Bi.length}if(li>=Li)return Mn;var zi=li-to(bi);if(zi<1)return bi;var Yi=Bi?Pl(Bi,0,zi).join(""):Mn.slice(0,zi);if(Ti===_n)return Yi+bi;if(Bi&&(zi+=Yi.length-zi),Gm(Ti)){if(Mn.slice(zi).search(Ti)){var ir,ar=Yi;for(Ti.global||(Ti=$s(Ti.source,Lo(kl.exec(Ti))+"g")),Ti.lastIndex=0;ir=Ti.exec(ar);)var pr=ir.index;Yi=Yi.slice(0,pr===_n?zi:pr)}}else if(Mn.indexOf(Xs(Ti),zi)!=zi){var $r=Yi.lastIndexOf(Ti);$r>-1&&(Yi=Yi.slice(0,$r))}return Yi+bi}function UC(Mn){return Mn=Lo(Mn),Mn&&Jg.test(Mn)?Mn.replace(ch,Sr):Mn}var GC=rh(function(Mn,Yn,li){return Mn+(li?" ":"")+Yn.toUpperCase()}),Km=Wv("toUpperCase");function zy(Mn,Yn,li){return Mn=Lo(Mn),Yn=li?_n:Yn,Yn===_n?qi(Mn)?jo(Mn):Qu(Mn):Mn.match(Yn)||[]}var Hy=ao(function(Mn,Yn){try{return Wo(Mn,_n,Yn)}catch(li){return Um(li)?li:new Tr(li)}}),YC=ml(function(Mn,Yn){return Ps(Yn,function(li){li=Aa(li),gl(Mn,li,Wm(Mn[li],Mn))}),Mn});function qC(Mn){var Yn=Mn==null?0:Mn.length,li=zr();return Mn=Yn?zo(Mn,function(bi){if(typeof bi[1]!="function")throw new Cs(Kn);return[li(bi[0]),bi[1]]}):[],ao(function(bi){for(var Ti=-1;++Ti<Yn;){var Li=Mn[Ti];if(Wo(Li[0],this,bi))return Wo(Li[1],this,bi)}})}function KC(Mn){return Pw(la(Mn,Dn))}function Zm(Mn){return function(){return Mn}}function ZC(Mn,Yn){return Mn==null||Mn!==Mn?Yn:Mn}var QC=Uv(),JC=Uv(!0);function Qs(Mn){return Mn}function Qm(Mn){return $v(typeof Mn=="function"?Mn:la(Mn,Dn))}function XC(Mn){return _v(la(Mn,Dn))}function eT(Mn,Yn){return kv(Mn,la(Yn,Dn))}var tT=ao(function(Mn,Yn){return function(li){return Fh(li,Mn,Yn)}}),nT=ao(function(Mn,Yn){return function(li){return Fh(Mn,li,Yn)}});function Jm(Mn,Yn,li){var bi=Es(Yn),Ti=Ed(Yn,bi);li==null&&!(qo(Yn)&&(Ti.length||!bi.length))&&(li=Yn,Yn=Mn,Mn=this,Ti=Ed(Yn,Es(Yn)));var Li=!(qo(li)&&"chain"in li)||!!li.chain,Bi=yl(Mn);return Ps(Ti,function(zi){var Yi=Yn[zi];Mn[zi]=Yi,Bi&&(Mn.prototype[zi]=function(){var ir=this.__chain__;if(Li||ir){var ar=Mn(this.__wrapped__),pr=ar.__actions__=qs(this.__actions__);return pr.push({func:Yi,args:arguments,thisArg:Mn}),ar.__chain__=ir,ar}return Yi.apply(Mn,Ds([this.value()],arguments))})}),Mn}function iT(){return cs._===this&&(cs._=qy),this}function Xm(){}function rT(Mn){return Mn=no(Mn),ao(function(Yn){return Sv(Yn,Mn)})}var oT=Em(zo),sT=Em(Rl),aT=Em(Zu);function Wy(Mn){return Bm(Mn)?Eh(Aa(Mn)):n0(Mn)}function lT(Mn){return function(Yn){return Mn==null?_n:ec(Mn,Yn)}}var cT=Yv(),uT=Yv(!0);function ev(){return[]}function tv(){return!1}function hT(){return{}}function dT(){return""}function pT(){return!0}function gT(Mn,Yn){if(Mn=no(Mn),Mn<1||Mn>Si)return[];var li=Ni,bi=Bs(Mn,Ni);Yn=zr(Yn),Mn-=Ni;for(var Ti=Qo(bi,Yn);++li<Mn;)Yn(li);return Ti}function fT(Mn){return Xr(Mn)?zo(Mn,Aa):ea(Mn)?[Mn]:qs(cy(Lo(Mn)))}function mT(Mn){var Yn=++Gy;return Lo(Mn)+Yn}var vT=Bg(function(Mn,Yn){return Mn+Yn},0),yT=Lm("ceil"),wT=Bg(function(Mn,Yn){return Mn/Yn},1),bT=Lm("floor");function $T(Mn){return Mn&&Mn.length?Ad(Mn,Qs,mm):_n}function xT(Mn,Yn){return Mn&&Mn.length?Ad(Mn,zr(Yn,2),mm):_n}function _T(Mn){return Ah(Mn,Qs)}function kT(Mn,Yn){return Ah(Mn,zr(Yn,2))}function ST(Mn){return Mn&&Mn.length?Ad(Mn,Qs,bm):_n}function CT(Mn,Yn){return Mn&&Mn.length?Ad(Mn,zr(Yn,2),bm):_n}var TT=Bg(function(Mn,Yn){return Mn*Yn},1),MT=Lm("round"),AT=Bg(function(Mn,Yn){return Mn-Yn},0);function ET(Mn){return Mn&&Mn.length?Il(Mn,Qs):0}function LT(Mn,Yn){return Mn&&Mn.length?Il(Mn,zr(Yn,2)):0}return Ai.after=y$,Ai.ary=by,Ai.assign=Vk,Ai.assignIn=Iy,Ai.assignInWith=Qg,Ai.assignWith=Pk,Ai.at=Fk,Ai.before=$y,Ai.bind=Wm,Ai.bindAll=YC,Ai.bindKey=xy,Ai.castArray=E$,Ai.chain=vy,Ai.chunk=P0,Ai.compact=F0,Ai.concat=z0,Ai.cond=qC,Ai.conforms=KC,Ai.constant=Zm,Ai.countBy=Y1,Ai.create=Hk,Ai.curry=_y,Ai.curryRight=ky,Ai.debounce=Sy,Ai.defaults=jk,Ai.defaultsDeep=Uk,Ai.defer=w$,Ai.delay=b$,Ai.difference=H0,Ai.differenceBy=W0,Ai.differenceWith=j0,Ai.drop=U0,Ai.dropRight=G0,Ai.dropRightWhile=Y0,Ai.dropWhile=q0,Ai.fill=K0,Ai.filter=Z1,Ai.flatMap=e$,Ai.flatMapDeep=t$,Ai.flatMapDepth=n$,Ai.flatten=py,Ai.flattenDeep=Z0,Ai.flattenDepth=Q0,Ai.flip=$$,Ai.flow=QC,Ai.flowRight=JC,Ai.fromPairs=J0,Ai.functions=Jk,Ai.functionsIn=Xk,Ai.groupBy=i$,Ai.initial=eb,Ai.intersection=tb,Ai.intersectionBy=nb,Ai.intersectionWith=ib,Ai.invert=tC,Ai.invertBy=nC,Ai.invokeMap=o$,Ai.iteratee=Qm,Ai.keyBy=s$,Ai.keys=Es,Ai.keysIn=Zs,Ai.map=Ug,Ai.mapKeys=rC,Ai.mapValues=oC,Ai.matches=XC,Ai.matchesProperty=eT,Ai.memoize=Yg,Ai.merge=sC,Ai.mergeWith=Dy,Ai.method=tT,Ai.methodOf=nT,Ai.mixin=Jm,Ai.negate=qg,Ai.nthArg=rT,Ai.omit=aC,Ai.omitBy=lC,Ai.once=x$,Ai.orderBy=a$,Ai.over=oT,Ai.overArgs=_$,Ai.overEvery=sT,Ai.overSome=aT,Ai.partial=jm,Ai.partialRight=Cy,Ai.partition=l$,Ai.pick=cC,Ai.pickBy=Oy,Ai.property=Wy,Ai.propertyOf=lT,Ai.pull=ab,Ai.pullAll=fy,Ai.pullAllBy=lb,Ai.pullAllWith=cb,Ai.pullAt=ub,Ai.range=cT,Ai.rangeRight=uT,Ai.rearg=k$,Ai.reject=h$,Ai.remove=hb,Ai.rest=S$,Ai.reverse=zm,Ai.sampleSize=p$,Ai.set=hC,Ai.setWith=dC,Ai.shuffle=g$,Ai.slice=db,Ai.sortBy=v$,Ai.sortedUniq=wb,Ai.sortedUniqBy=bb,Ai.split=DC,Ai.spread=C$,Ai.tail=$b,Ai.take=xb,Ai.takeRight=_b,Ai.takeRightWhile=kb,Ai.takeWhile=Sb,Ai.tap=Fb,Ai.throttle=T$,Ai.thru=jg,Ai.toArray=Ly,Ai.toPairs=By,Ai.toPairsIn=Vy,Ai.toPath=fT,Ai.toPlainObject=Ny,Ai.transform=pC,Ai.unary=M$,Ai.union=Cb,Ai.unionBy=Tb,Ai.unionWith=Mb,Ai.uniq=Ab,Ai.uniqBy=Eb,Ai.uniqWith=Lb,Ai.unset=gC,Ai.unzip=Hm,Ai.unzipWith=my,Ai.update=fC,Ai.updateWith=mC,Ai.values=ah,Ai.valuesIn=vC,Ai.without=Rb,Ai.words=zy,Ai.wrap=A$,Ai.xor=Nb,Ai.xorBy=Ib,Ai.xorWith=Db,Ai.zip=Ob,Ai.zipObject=Bb,Ai.zipObjectDeep=Vb,Ai.zipWith=Pb,Ai.entries=By,Ai.entriesIn=Vy,Ai.extend=Iy,Ai.extendWith=Qg,Jm(Ai,Ai),Ai.add=vT,Ai.attempt=Hy,Ai.camelCase=$C,Ai.capitalize=Py,Ai.ceil=yT,Ai.clamp=yC,Ai.clone=L$,Ai.cloneDeep=N$,Ai.cloneDeepWith=I$,Ai.cloneWith=R$,Ai.conformsTo=D$,Ai.deburr=Fy,Ai.defaultTo=ZC,Ai.divide=wT,Ai.endsWith=xC,Ai.eq=fa,Ai.escape=_C,Ai.escapeRegExp=kC,Ai.every=q1,Ai.find=Q1,Ai.findIndex=hy,Ai.findKey=Gk,Ai.findLast=X1,Ai.findLastIndex=dy,Ai.findLastKey=Yk,Ai.floor=bT,Ai.forEach=yy,Ai.forEachRight=wy,Ai.forIn=qk,Ai.forInRight=Kk,Ai.forOwn=Zk,Ai.forOwnRight=Qk,Ai.get=Ym,Ai.gt=O$,Ai.gte=B$,Ai.has=eC,Ai.hasIn=qm,Ai.head=gy,Ai.identity=Qs,Ai.includes=r$,Ai.indexOf=X0,Ai.inRange=wC,Ai.invoke=iC,Ai.isArguments=ic,Ai.isArray=Xr,Ai.isArrayBuffer=V$,Ai.isArrayLike=Ks,Ai.isArrayLikeObject=es,Ai.isBoolean=P$,Ai.isBuffer=Fl,Ai.isDate=F$,Ai.isElement=z$,Ai.isEmpty=H$,Ai.isEqual=W$,Ai.isEqualWith=j$,Ai.isError=Um,Ai.isFinite=U$,Ai.isFunction=yl,Ai.isInteger=Ty,Ai.isLength=Kg,Ai.isMap=My,Ai.isMatch=G$,Ai.isMatchWith=Y$,Ai.isNaN=q$,Ai.isNative=K$,Ai.isNil=Q$,Ai.isNull=Z$,Ai.isNumber=Ay,Ai.isObject=qo,Ai.isObjectLike=Jo,Ai.isPlainObject=Gh,Ai.isRegExp=Gm,Ai.isSafeInteger=J$,Ai.isSet=Ey,Ai.isString=Zg,Ai.isSymbol=ea,Ai.isTypedArray=sh,Ai.isUndefined=X$,Ai.isWeakMap=Ek,Ai.isWeakSet=Lk,Ai.join=rb,Ai.kebabCase=SC,Ai.last=ua,Ai.lastIndexOf=ob,Ai.lowerCase=CC,Ai.lowerFirst=TC,Ai.lt=Rk,Ai.lte=Nk,Ai.max=$T,Ai.maxBy=xT,Ai.mean=_T,Ai.meanBy=kT,Ai.min=ST,Ai.minBy=CT,Ai.stubArray=ev,Ai.stubFalse=tv,Ai.stubObject=hT,Ai.stubString=dT,Ai.stubTrue=pT,Ai.multiply=TT,Ai.nth=sb,Ai.noConflict=iT,Ai.noop=Xm,Ai.now=Gg,Ai.pad=MC,Ai.padEnd=AC,Ai.padStart=EC,Ai.parseInt=LC,Ai.random=bC,Ai.reduce=c$,Ai.reduceRight=u$,Ai.repeat=RC,Ai.replace=NC,Ai.result=uC,Ai.round=MT,Ai.runInContext=ji,Ai.sample=d$,Ai.size=f$,Ai.snakeCase=IC,Ai.some=m$,Ai.sortedIndex=pb,Ai.sortedIndexBy=gb,Ai.sortedIndexOf=fb,Ai.sortedLastIndex=mb,Ai.sortedLastIndexBy=vb,Ai.sortedLastIndexOf=yb,Ai.startCase=OC,Ai.startsWith=BC,Ai.subtract=AT,Ai.sum=ET,Ai.sumBy=LT,Ai.template=VC,Ai.times=gT,Ai.toFinite=wl,Ai.toInteger=no,Ai.toLength=Ry,Ai.toLower=PC,Ai.toNumber=ha,Ai.toSafeInteger=Ik,Ai.toString=Lo,Ai.toUpper=FC,Ai.trim=zC,Ai.trimEnd=HC,Ai.trimStart=WC,Ai.truncate=jC,Ai.unescape=UC,Ai.uniqueId=mT,Ai.upperCase=GC,Ai.upperFirst=Km,Ai.each=yy,Ai.eachRight=wy,Ai.first=gy,Jm(Ai,function(){var Mn={};return Sa(Ai,function(Yn,li){No.call(Ai.prototype,li)||(Mn[li]=Yn)}),Mn}(),{chain:!1}),Ai.VERSION=kn,Ps(["bind","bindKey","curry","curryRight","partial","partialRight"],function(Mn){Ai[Mn].placeholder=Ai}),Ps(["drop","take"],function(Mn,Yn){To.prototype[Mn]=function(li){li=li===_n?1:Ts(no(li),0);var bi=this.__filtered__&&!Yn?new To(this):this.clone();return bi.__filtered__?bi.__takeCount__=Bs(li,bi.__takeCount__):bi.__views__.push({size:Bs(li,Ni),type:Mn+(bi.__dir__<0?"Right":"")}),bi},To.prototype[Mn+"Right"]=function(li){return this.reverse()[Mn](li).reverse()}}),Ps(["filter","map","takeWhile"],function(Mn,Yn){var li=Yn+1,bi=li==ai||li==wi;To.prototype[Mn]=function(Ti){var Li=this.clone();return Li.__iteratees__.push({iteratee:zr(Ti,3),type:li}),Li.__filtered__=Li.__filtered__||bi,Li}}),Ps(["head","last"],function(Mn,Yn){var li="take"+(Yn?"Right":"");To.prototype[Mn]=function(){return this[li](1).value()[0]}}),Ps(["initial","tail"],function(Mn,Yn){var li="drop"+(Yn?"":"Right");To.prototype[Mn]=function(){return this.__filtered__?new To(this):this[li](1)}}),To.prototype.compact=function(){return this.filter(Qs)},To.prototype.find=function(Mn){return this.filter(Mn).head()},To.prototype.findLast=function(Mn){return this.reverse().find(Mn)},To.prototype.invokeMap=ao(function(Mn,Yn){return typeof Mn=="function"?new To(this):this.map(function(li){return Fh(li,Mn,Yn)})}),To.prototype.reject=function(Mn){return this.filter(qg(zr(Mn)))},To.prototype.slice=function(Mn,Yn){Mn=no(Mn);var li=this;return li.__filtered__&&(Mn>0||Yn<0)?new To(li):(Mn<0?li=li.takeRight(-Mn):Mn&&(li=li.drop(Mn)),Yn!==_n&&(Yn=no(Yn),li=Yn<0?li.dropRight(-Yn):li.take(Yn-Mn)),li)},To.prototype.takeRightWhile=function(Mn){return this.reverse().takeWhile(Mn).reverse()},To.prototype.toArray=function(){return this.take(Ni)},Sa(To.prototype,function(Mn,Yn){var li=/^(?:filter|find|map|reject)|While$/.test(Yn),bi=/^(?:head|last)$/.test(Yn),Ti=Ai[bi?"take"+(Yn=="last"?"Right":""):Yn],Li=bi||/^find/.test(Yn);Ti&&(Ai.prototype[Yn]=function(){var Bi=this.__wrapped__,zi=bi?[1]:arguments,Yi=Bi instanceof To,ir=zi[0],ar=Yi||Xr(Bi),pr=function(Co){var Mo=Ti.apply(Ai,Ds([Co],zi));return bi&&$r?Mo[0]:Mo};ar&&li&&typeof ir=="function"&&ir.length!=1&&(Yi=ar=!1);var $r=this.__chain__,Cr=!!this.__actions__.length,jr=Li&&!$r,ro=Yi&&!Cr;if(!Li&&ar){Bi=ro?Bi:new To(this);var Ur=Mn.apply(Bi,zi);return Ur.__actions__.push({func:jg,args:[pr],thisArg:_n}),new aa(Ur,$r)}return jr&&ro?Mn.apply(this,zi):(Ur=this.thru(pr),jr?bi?Ur.value()[0]:Ur.value():Ur)})}),Ps(["pop","push","shift","sort","splice","unshift"],function(Mn){var Yn=Js[Mn],li=/^(?:push|sort|unshift)$/.test(Mn)?"tap":"thru",bi=/^(?:pop|shift)$/.test(Mn);Ai.prototype[Mn]=function(){var Ti=arguments;if(bi&&!this.__chain__){var Li=this.value();return Yn.apply(Xr(Li)?Li:[],Ti)}return this[li](function(Bi){return Yn.apply(Xr(Bi)?Bi:[],Ti)})}}),Sa(To.prototype,function(Mn,Yn){var li=Ai[Yn];if(li){var bi=li.name+"";No.call(th,bi)||(th[bi]=[]),th[bi].push({name:Yn,func:li})}}),th[Od(_n,Jn).name]=[{name:"wrapper",func:_n}],To.prototype.clone=uw,To.prototype.reverse=hw,To.prototype.value=dw,Ai.prototype.at=zb,Ai.prototype.chain=Hb,Ai.prototype.commit=Wb,Ai.prototype.next=jb,Ai.prototype.plant=Gb,Ai.prototype.reverse=qb,Ai.prototype.toJSON=Ai.prototype.valueOf=Ai.prototype.value=Kb,Ai.prototype.first=Ai.prototype.head,Nh&&(Ai.prototype[Nh]=Ub),Ai},Vo=Bo();As?((As.exports=Vo)._=Vo,ra._=Vo):cs._=Vo}).call(V1)}(gs,gs.exports)),gs.exports}var G1=j1();const K1=Ua(G1);K1.debounce(function(){this.rebuildDisplayText()},300);var _c={exports:{}},cf;function J1(){return cf||(cf=1,function(e,vn){(function(){ace.require(["ace/mode/text"],function(_n){e&&(e.exports=_n)})})()}(_c)),_c.exports}J1();const e_=!0,ln$1="u-",t_="uplot",n_=ln$1+"hz",i_=ln$1+"vt",r_=ln$1+"title",o_=ln$1+"wrap",s_=ln$1+"under",a_=ln$1+"over",l_=ln$1+"axis",Ir=ln$1+"off",c_=ln$1+"select",u_=ln$1+"cursor-x",h_=ln$1+"cursor-y",d_=ln$1+"cursor-pt",f_=ln$1+"legend",p_=ln$1+"live",g_=ln$1+"inline",m_=ln$1+"series",v_=ln$1+"marker",uf=ln$1+"label",y_=ln$1+"value",ms="width",vs="height",ds="top",hf="bottom",co="left",Sc="right",Ru="#000",df=Ru+"0",ff="mousemove",pf="mousedown",kc="mouseup",gf="mouseenter",mf="mouseleave",vf="dblclick",w_="resize",b_="scroll",yf="change",Ba="dppxchange",Eu="--",bo=typeof window<"u",gu=bo?document:null,ho=bo?window:null,x_=bo?navigator:null;let dt$1,La;function mu(){let e=devicePixelRatio;dt$1!=e&&(dt$1=e,La&&yu(yf,La,mu),La=matchMedia(`(min-resolution: ${dt$1-.001}dppx) and (max-resolution: ${dt$1+.001}dppx)`),Nr(yf,La,mu),ho.dispatchEvent(new CustomEvent(Ba)))}function Un(e,vn){if(vn!=null){let _n=e.classList;!_n.contains(vn)&&_n.add(vn)}}function vu(e,vn){let _n=e.classList;_n.contains(vn)&&_n.remove(vn)}function Lt$1(e,vn,_n){e.style[vn]=_n+"px"}function ui(e,vn,_n,kn){let qn=gu.createElement(e);return vn!=null&&Un(qn,vn),_n!=null&&_n.insertBefore(qn,kn),qn}function ni(e,vn){return ui("div",e,vn)}const wf=new WeakMap;function Ci(e,vn,_n,kn,qn){let Hn="translate("+vn+"px,"+_n+"px)",Kn=wf.get(e);Hn!=Kn&&(e.style.transform=Hn,wf.set(e,Hn),vn<0||_n<0||vn>kn||_n>qn?Un(e,Ir):vu(e,Ir))}const bf=new WeakMap;function xf(e,vn,_n){let kn=vn+_n,qn=bf.get(e);kn!=qn&&(bf.set(e,kn),e.style.background=vn,e.style.borderColor=_n)}const _f=new WeakMap;function Sf(e,vn,_n,kn){let qn=vn+""+_n,Hn=_f.get(e);qn!=Hn&&(_f.set(e,qn),e.style.height=_n+"px",e.style.width=vn+"px",e.style.marginLeft=kn?-vn/2+"px":0,e.style.marginTop=kn?-_n/2+"px":0)}const Iu={passive:!0},__={...Iu,capture:!0};function Nr(e,vn,_n,kn){vn.addEventListener(e,_n,kn?__:Iu)}function yu(e,vn,_n,kn){vn.removeEventListener(e,_n,Iu)}bo&&mu();function hi(e,vn,_n,kn){let qn;_n=_n||0,kn=kn||vn.length-1;let Hn=kn<=2147483647;for(;kn-_n>1;)qn=Hn?_n+kn>>1:jn((_n+kn)/2),vn[qn]<e?_n=qn:kn=qn;return e-vn[_n]<=vn[kn]-e?_n:kn}function fo(e,vn,_n,kn){for(let qn=kn==1?vn:_n;qn>=vn&&qn<=_n;qn+=kn)if(e[qn]!=null)return qn;return-1}function S_(e,vn,_n,kn){let qn=ct$1,Hn=-ct$1;if(kn==1)qn=e[vn],Hn=e[_n];else if(kn==-1)qn=e[_n],Hn=e[vn];else for(let Kn=vn;Kn<=_n;Kn++){let Qn=e[Kn];Qn!=null&&(Qn<qn&&(qn=Qn),Qn>Hn&&(Hn=Qn))}return[qn,Hn]}function k_(e,vn,_n){let kn=ct$1,qn=-ct$1;for(let Hn=vn;Hn<=_n;Hn++){let Kn=e[Hn];Kn!=null&&Kn>0&&(Kn<kn&&(kn=Kn),Kn>qn&&(qn=Kn))}return[kn,qn]}function Qa(e,vn,_n,kn){let qn=Af(e),Hn=Af(vn);e==vn&&(qn==-1?(e*=_n,vn/=_n):(e/=_n,vn*=_n));let Kn=_n==10?Hi:eg,Qn=qn==1?jn:ii,zn=Hn==1?ii:jn,Wn=Qn(Kn(an$1(e))),Nn=zn(Kn(an$1(vn))),Dn=po(_n,Wn),In=po(_n,Nn);return _n==10&&(Wn<0&&(Dn=Ct$1(Dn,-Wn)),Nn<0&&(In=Ct$1(In,-Nn))),kn||_n==2?(e=Dn*qn,vn=In*Hn):(e=ig(e,Dn),vn=Xa(vn,In)),[e,vn]}function Ou(e,vn,_n,kn){let qn=Qa(e,vn,_n,kn);return e==0&&(qn[0]=0),vn==0&&(qn[1]=0),qn}const Du=.1,kf={mode:3,pad:Du},ws={pad:0,soft:null,mode:0},C_={min:ws,max:ws};function za(e,vn,_n,kn){return Ja(_n)?Cf(e,vn,_n):(ws.pad=_n,ws.soft=kn?0:null,ws.mode=kn?3:0,Cf(e,vn,C_))}function ht$1(e,vn){return e??vn}function A_(e,vn,_n){for(vn=ht$1(vn,0),_n=ht$1(_n,e.length-1);vn<=_n;){if(e[vn]!=null)return!0;vn++}return!1}function Cf(e,vn,_n){let kn=_n.min,qn=_n.max,Hn=ht$1(kn.pad,0),Kn=ht$1(qn.pad,0),Qn=ht$1(kn.hard,-ct$1),zn=ht$1(qn.hard,ct$1),Wn=ht$1(kn.soft,ct$1),Nn=ht$1(qn.soft,-ct$1),Dn=ht$1(kn.mode,0),In=ht$1(qn.mode,0),Bn=vn-e,Ln=Hi(Bn),Pn=xn$1(an$1(e),an$1(vn)),Zn=Hi(Pn),Jn=an$1(Zn-Ln);(Bn<1e-24||Jn>10)&&(Bn=0,(e==0||vn==0)&&(Bn=1e-24,Dn==2&&Wn!=ct$1&&(Hn=0),In==2&&Nn!=-ct$1&&(Kn=0)));let Xn=Bn||Pn||1e3,mi=Hi(Xn),ci=po(10,jn(mi)),oi=Xn*(Bn==0?e==0?.1:1:Hn),ei=Ct$1(ig(e-oi,ci/10),24),fi=e>=Wn&&(Dn==1||Dn==3&&ei<=Wn||Dn==2&&ei>=Wn)?Wn:ct$1,gi=xn$1(Qn,ei<fi&&e>=fi?fi:ri(fi,ei)),yi=Xn*(Bn==0?vn==0?.1:1:Kn),pi=Ct$1(Xa(vn+yi,ci/10),24),$i=vn<=Nn&&(In==1||In==3&&pi>=Nn||In==2&&pi<=Nn)?Nn:-ct$1,si=ri(zn,pi>$i&&vn<=$i?$i:xn$1($i,pi));return gi==si&&gi==0&&(si=100),[gi,si]}const $_=new Intl.NumberFormat(bo?x_.language:"en-US"),Nu=e=>$_.format(e),Gn=Math,Fa=Gn.PI,an$1=Gn.abs,jn=Gn.floor,sn$1=Gn.round,ii=Gn.ceil,ri=Gn.min,xn$1=Gn.max,po=Gn.pow,Af=Gn.sign,Hi=Gn.log10,eg=Gn.log2,T_=(e,vn=1)=>Gn.sinh(e)*vn,Cc=(e,vn=1)=>Gn.asinh(e/vn),ct$1=1/0;function $f(e){return(Hi((e^e>>31)-(e>>31))|0)+1}function wu(e,vn,_n){return ri(xn$1(e,vn),_n)}function lt$1(e){return typeof e=="function"?e:()=>e}const M_=()=>{},tg=e=>e,ng=(e,vn)=>vn,L_=e=>null,Tf=e=>!0,Mf=(e,vn)=>e==vn,R_=/\.\d*?(?=9{6,}|0{6,})/gm,Wr=e=>{if(og(e)||dr.has(e))return e;const vn=`${e}`,_n=vn.match(R_);if(_n==null)return e;let kn=_n[0].length-1;if(vn.indexOf("e-")!=-1){let[qn,Hn]=vn.split("e");return+`${Wr(qn)}e${Hn}`}return Ct$1(e,kn)};function Rr(e,vn){return Wr(Ct$1(Wr(e/vn))*vn)}function Xa(e,vn){return Wr(ii(Wr(e/vn))*vn)}function ig(e,vn){return Wr(jn(Wr(e/vn))*vn)}function Ct$1(e,vn=0){if(og(e))return e;let _n=10**vn,kn=e*_n*(1+Number.EPSILON);return sn$1(kn)/_n}const dr=new Map;function rg(e){return((""+e).split(".")[1]||"").length}function _s(e,vn,_n,kn){let qn=[],Hn=kn.map(rg);for(let Kn=vn;Kn<_n;Kn++){let Qn=an$1(Kn),zn=Ct$1(po(e,Kn),Qn);for(let Wn=0;Wn<kn.length;Wn++){let Nn=e==10?+`${kn[Wn]}e${Kn}`:kn[Wn]*zn,Dn=(Kn>=0?0:Qn)+(Kn>=Hn[Wn]?0:Hn[Wn]),In=e==10?Nn:Ct$1(Nn,Dn);qn.push(In),dr.set(In,Dn)}}return qn}const bs={},Fu=[],go=[null,null],ur=Array.isArray,og=Number.isInteger,E_=e=>e===void 0;function Lf(e){return typeof e=="string"}function Ja(e){let vn=!1;if(e!=null){let _n=e.constructor;vn=_n==null||_n==Object}return vn}function I_(e){return e!=null&&typeof e=="object"}const O_=Object.getPrototypeOf(Uint8Array),sg="__proto__";function mo(e,vn=Ja){let _n;if(ur(e)){let kn=e.find(qn=>qn!=null);if(ur(kn)||vn(kn)){_n=Array(e.length);for(let qn=0;qn<e.length;qn++)_n[qn]=mo(e[qn],vn)}else _n=e.slice()}else if(e instanceof O_)_n=e.slice();else if(vn(e)){_n={};for(let kn in e)kn!=sg&&(_n[kn]=mo(e[kn],vn))}else _n=e;return _n}function Zt$1(e){let vn=arguments;for(let _n=1;_n<vn.length;_n++){let kn=vn[_n];for(let qn in kn)qn!=sg&&(Ja(e[qn])?Zt$1(e[qn],mo(kn[qn])):e[qn]=mo(kn[qn]))}return e}const D_=0,N_=1,F_=2;function W_(e,vn,_n){for(let kn=0,qn,Hn=-1;kn<vn.length;kn++){let Kn=vn[kn];if(Kn>Hn){for(qn=Kn-1;qn>=0&&e[qn]==null;)e[qn--]=null;for(qn=Kn+1;qn<_n&&e[qn]==null;)e[Hn=qn++]=null}}}function P_(e,vn){if(H_(e)){let Kn=e[0].slice();for(let Qn=1;Qn<e.length;Qn++)Kn.push(...e[Qn].slice(1));return U_(Kn[0])||(Kn=z_(Kn)),Kn}let _n=new Set;for(let Kn=0;Kn<e.length;Kn++){let Qn=e[Kn][0],zn=Qn.length;for(let Wn=0;Wn<zn;Wn++)_n.add(Qn[Wn])}let kn=[Array.from(_n).sort((Kn,Qn)=>Kn-Qn)],qn=kn[0].length,Hn=new Map;for(let Kn=0;Kn<qn;Kn++)Hn.set(kn[0][Kn],Kn);for(let Kn=0;Kn<e.length;Kn++){let Qn=e[Kn],zn=Qn[0];for(let Wn=1;Wn<Qn.length;Wn++){let Nn=Qn[Wn],Dn=Array(qn).fill(void 0),In=vn?vn[Kn][Wn]:N_,Bn=[];for(let Ln=0;Ln<Nn.length;Ln++){let Pn=Nn[Ln],Zn=Hn.get(zn[Ln]);Pn===null?In!=D_&&(Dn[Zn]=Pn,In==F_&&Bn.push(Zn)):Dn[Zn]=Pn}W_(Dn,Bn,qn),kn.push(Dn)}}return kn}const B_=typeof queueMicrotask>"u"?e=>Promise.resolve().then(e):queueMicrotask;function z_(e){let vn=e[0],_n=vn.length,kn=Array(_n);for(let Hn=0;Hn<kn.length;Hn++)kn[Hn]=Hn;kn.sort((Hn,Kn)=>vn[Hn]-vn[Kn]);let qn=[];for(let Hn=0;Hn<e.length;Hn++){let Kn=e[Hn],Qn=Array(_n);for(let zn=0;zn<_n;zn++)Qn[zn]=Kn[kn[zn]];qn.push(Qn)}return qn}function H_(e){let vn=e[0][0],_n=vn.length;for(let kn=1;kn<e.length;kn++){let qn=e[kn][0];if(qn.length!=_n)return!1;if(qn!=vn){for(let Hn=0;Hn<_n;Hn++)if(qn[Hn]!=vn[Hn])return!1}}return!0}function U_(e,vn=100){const _n=e.length;if(_n<=1)return!0;let kn=0,qn=_n-1;for(;kn<=qn&&e[kn]==null;)kn++;for(;qn>=kn&&e[qn]==null;)qn--;if(qn<=kn)return!0;const Hn=xn$1(1,jn((qn-kn+1)/vn));for(let Kn=e[kn],Qn=kn+Hn;Qn<=qn;Qn+=Hn){const zn=e[Qn];if(zn!=null){if(zn<=Kn)return!1;Kn=zn}}return!0}const ag=["January","February","March","April","May","June","July","August","September","October","November","December"],lg=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function cg(e){return e.slice(0,3)}const V_=lg.map(cg),j_=ag.map(cg),G_={MMMM:ag,MMM:j_,WWWW:lg,WWW:V_};function fs(e){return(e<10?"0":"")+e}function K_(e){return(e<10?"00":e<100?"0":"")+e}const q_={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,vn)=>vn.MMMM[e.getMonth()],MMM:(e,vn)=>vn.MMM[e.getMonth()],MM:e=>fs(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>fs(e.getDate()),D:e=>e.getDate(),WWWW:(e,vn)=>vn.WWWW[e.getDay()],WWW:(e,vn)=>vn.WWW[e.getDay()],HH:e=>fs(e.getHours()),H:e=>e.getHours(),h:e=>{let vn=e.getHours();return vn==0?12:vn>12?vn-12:vn},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>fs(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>fs(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>K_(e.getMilliseconds())};function Wu(e,vn){vn=vn||G_;let _n=[],kn=/\{([a-z]+)\}|[^{]+/gi,qn;for(;qn=kn.exec(e);)_n.push(qn[0][0]=="{"?q_[qn[1]]:qn[0]);return Hn=>{let Kn="";for(let Qn=0;Qn<_n.length;Qn++)Kn+=typeof _n[Qn]=="string"?_n[Qn]:_n[Qn](Hn,vn);return Kn}}const Y_=new Intl.DateTimeFormat().resolvedOptions().timeZone;function Z_(e,vn){let _n;return vn=="UTC"||vn=="Etc/UTC"?_n=new Date(+e+e.getTimezoneOffset()*6e4):vn==Y_?_n=e:(_n=new Date(e.toLocaleString("en-US",{timeZone:vn})),_n.setMilliseconds(e.getMilliseconds())),_n}const ug=e=>e%1==0,Ha=[1,2,2.5,5],Q_=_s(10,-32,0,Ha),hg=_s(10,0,32,Ha),X_=hg.filter(ug),Er=Q_.concat(hg),Pu=`
1407
+ `,dg="{YYYY}",Rf=Pu+dg,fg="{M}/{D}",ys=Pu+fg,Ra=ys+"/{YY}",pg="{aa}",J_="{h}:{mm}",uo=J_+pg,Ef=Pu+uo,If=":{ss}",mt$1=null;function gg(e){let vn=e*1e3,_n=vn*60,kn=_n*60,qn=kn*24,Hn=qn*30,Kn=qn*365,Qn=(e==1?_s(10,0,3,Ha).filter(ug):_s(10,-3,0,Ha)).concat([vn,vn*5,vn*10,vn*15,vn*30,_n,_n*5,_n*10,_n*15,_n*30,kn,kn*2,kn*3,kn*4,kn*6,kn*8,kn*12,qn,qn*2,qn*3,qn*4,qn*5,qn*6,qn*7,qn*8,qn*9,qn*10,qn*15,Hn,Hn*2,Hn*3,Hn*4,Hn*6,Kn,Kn*2,Kn*5,Kn*10,Kn*25,Kn*50,Kn*100]);const zn=[[Kn,dg,mt$1,mt$1,mt$1,mt$1,mt$1,mt$1,1],[qn*28,"{MMM}",Rf,mt$1,mt$1,mt$1,mt$1,mt$1,1],[qn,fg,Rf,mt$1,mt$1,mt$1,mt$1,mt$1,1],[kn,"{h}"+pg,Ra,mt$1,ys,mt$1,mt$1,mt$1,1],[_n,uo,Ra,mt$1,ys,mt$1,mt$1,mt$1,1],[vn,If,Ra+" "+uo,mt$1,ys+" "+uo,mt$1,Ef,mt$1,1],[e,If+".{fff}",Ra+" "+uo,mt$1,ys+" "+uo,mt$1,Ef,mt$1,1]];function Wn(Nn){return(Dn,In,Bn,Ln,Pn,Zn)=>{let Jn=[],Xn=Pn>=Kn,mi=Pn>=Hn&&Pn<Kn,ci=Nn(Bn),oi=Ct$1(ci*e,3),ei=Ac(ci.getFullYear(),Xn?0:ci.getMonth(),mi||Xn?1:ci.getDate()),fi=Ct$1(ei*e,3);if(mi||Xn){let gi=mi?Pn/Hn:0,yi=Xn?Pn/Kn:0,pi=oi==fi?oi:Ct$1(Ac(ei.getFullYear()+yi,ei.getMonth()+gi,1)*e,3),$i=new Date(sn$1(pi/e)),si=$i.getFullYear(),ti=$i.getMonth();for(let ai=0;pi<=Ln;ai++){let vi=Ac(si+yi*ai,ti+gi*ai,1),wi=vi-Nn(Ct$1(vi*e,3));pi=Ct$1((+vi+wi)*e,3),pi<=Ln&&Jn.push(pi)}}else{let gi=Pn>=qn?qn:Pn,yi=jn(Bn)-jn(oi),pi=fi+yi+Xa(oi-fi,gi);Jn.push(pi);let $i=Nn(pi),si=$i.getHours()+$i.getMinutes()/_n+$i.getSeconds()/kn,ti=Pn/kn,ai=Dn.axes[In]._space,vi=Zn/ai;for(;pi=Ct$1(pi+Pn,e==1?0:3),!(pi>Ln);)if(ti>1){let wi=jn(Ct$1(si+ti,6))%24,xi=Nn(pi).getHours()-wi;xi>1&&(xi=-1),pi-=xi*kn,si=(si+ti)%24;let Si=Jn[Jn.length-1];Ct$1((pi-Si)/Pn,3)*vi>=.7&&Jn.push(pi)}else Jn.push(pi)}return Jn}}return[Qn,zn,Wn]}const[eS,tS,nS]=gg(1),[iS,rS,oS]=gg(.001);_s(2,-53,53,[1]);function Of(e,vn){return e.map(_n=>_n.map((kn,qn)=>qn==0||qn==8||kn==null?kn:vn(qn==1||_n[8]==0?kn:_n[1]+kn)))}function Df(e,vn){return(_n,kn,qn,Hn,Kn)=>{let Qn=vn.find(Ln=>Kn>=Ln[0])||vn[vn.length-1],zn,Wn,Nn,Dn,In,Bn;return kn.map(Ln=>{let Pn=e(Ln),Zn=Pn.getFullYear(),Jn=Pn.getMonth(),Xn=Pn.getDate(),mi=Pn.getHours(),ci=Pn.getMinutes(),oi=Pn.getSeconds(),ei=Zn!=zn&&Qn[2]||Jn!=Wn&&Qn[3]||Xn!=Nn&&Qn[4]||mi!=Dn&&Qn[5]||ci!=In&&Qn[6]||oi!=Bn&&Qn[7]||Qn[1];return zn=Zn,Wn=Jn,Nn=Xn,Dn=mi,In=ci,Bn=oi,ei(Pn)})}}function sS(e,vn){let _n=Wu(vn);return(kn,qn,Hn,Kn,Qn)=>qn.map(zn=>_n(e(zn)))}function Ac(e,vn,_n){return new Date(e,vn,_n)}function Nf(e,vn){return vn(e)}const aS="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Ff(e,vn){return(_n,kn,qn,Hn)=>Hn==null?Eu:vn(e(kn))}function lS(e,vn){let _n=e.series[vn];return _n.width?_n.stroke(e,vn):_n.points.width?_n.points.stroke(e,vn):null}function cS(e,vn){return e.series[vn].fill(e,vn)}const uS={show:!0,live:!0,isolate:!1,mount:M_,markers:{show:!0,width:2,stroke:lS,fill:cS,dash:"solid"},idx:null,idxs:null,values:[]};function hS(e,vn){let _n=e.cursor.points,kn=ni(),qn=_n.size(e,vn);Lt$1(kn,ms,qn),Lt$1(kn,vs,qn);let Hn=qn/-2;Lt$1(kn,"marginLeft",Hn),Lt$1(kn,"marginTop",Hn);let Kn=_n.width(e,vn,qn);return Kn&&Lt$1(kn,"borderWidth",Kn),kn}function dS(e,vn){let _n=e.series[vn].points;return _n._fill||_n._stroke}function fS(e,vn){let _n=e.series[vn].points;return _n._stroke||_n._fill}function pS(e,vn){return e.series[vn].points.size}const $c=[0,0];function gS(e,vn,_n){return $c[0]=vn,$c[1]=_n,$c}function Ea(e,vn,_n,kn=!0){return qn=>{qn.button==0&&(!kn||qn.target==vn)&&_n(qn)}}function Tc(e,vn,_n,kn=!0){return qn=>{(!kn||qn.target==vn)&&_n(qn)}}const mS={show:!0,x:!0,y:!0,lock:!1,move:gS,points:{one:!1,show:hS,size:pS,width:0,stroke:fS,fill:dS},bind:{mousedown:Ea,mouseup:Ea,click:Ea,dblclick:Ea,mousemove:Tc,mouseleave:Tc,mouseenter:Tc},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,vn)=>{vn.stopPropagation(),vn.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(e,vn,_n,kn,qn)=>kn-qn,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},mg={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Bu=Zt$1({},mg,{filter:ng}),vg=Zt$1({},Bu,{size:10}),yg=Zt$1({},mg,{show:!1}),zu='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',wg="bold "+zu,bg=1.5,Wf={show:!0,scale:"x",stroke:Ru,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:wg,side:2,grid:Bu,ticks:vg,border:yg,font:zu,lineGap:bg,rotate:0},vS="Value",yS="Time",Pf={show:!0,scale:"x",auto:!1,sorted:1,min:ct$1,max:-ct$1,idxs:[]};function wS(e,vn,_n,kn,qn){return vn.map(Hn=>Hn==null?"":Nu(Hn))}function bS(e,vn,_n,kn,qn,Hn,Kn){let Qn=[],zn=dr.get(qn)||0;_n=Kn?_n:Ct$1(Xa(_n,qn),zn);for(let Wn=_n;Wn<=kn;Wn=Ct$1(Wn+qn,zn))Qn.push(Object.is(Wn,-0)?0:Wn);return Qn}function bu(e,vn,_n,kn,qn,Hn,Kn){const Qn=[],zn=e.scales[e.axes[vn].scale].log,Wn=zn==10?Hi:eg,Nn=jn(Wn(_n));qn=po(zn,Nn),zn==10&&(qn=Er[hi(qn,Er)]);let Dn=_n,In=qn*zn;zn==10&&(In=Er[hi(In,Er)]);do Qn.push(Dn),Dn=Dn+qn,zn==10&&!dr.has(Dn)&&(Dn=Ct$1(Dn,dr.get(qn))),Dn>=In&&(qn=Dn,In=qn*zn,zn==10&&(In=Er[hi(In,Er)]));while(Dn<=kn);return Qn}function xS(e,vn,_n,kn,qn,Hn,Kn){let Qn=e.scales[e.axes[vn].scale].asinh,zn=kn>Qn?bu(e,vn,xn$1(Qn,_n),kn,qn):[Qn],Wn=kn>=0&&_n<=0?[0]:[];return(_n<-Qn?bu(e,vn,xn$1(Qn,-kn),-_n,qn):[Qn]).reverse().map(Nn=>-Nn).concat(Wn,zn)}const xg=/./,_S=/[12357]/,SS=/[125]/,Bf=/1/,xu=(e,vn,_n,kn)=>e.map((qn,Hn)=>vn==4&&qn==0||Hn%kn==0&&_n.test(qn.toExponential()[qn<0?1:0])?qn:null);function kS(e,vn,_n,kn,qn){let Hn=e.axes[_n],Kn=Hn.scale,Qn=e.scales[Kn],zn=e.valToPos,Wn=Hn._space,Nn=zn(10,Kn),Dn=zn(9,Kn)-Nn>=Wn?xg:zn(7,Kn)-Nn>=Wn?_S:zn(5,Kn)-Nn>=Wn?SS:Bf;if(Dn==Bf){let In=an$1(zn(1,Kn)-Nn);if(In<Wn)return xu(vn.slice().reverse(),Qn.distr,Dn,ii(Wn/In)).reverse()}return xu(vn,Qn.distr,Dn,1)}function CS(e,vn,_n,kn,qn){let Hn=e.axes[_n],Kn=Hn.scale,Qn=Hn._space,zn=e.valToPos,Wn=an$1(zn(1,Kn)-zn(2,Kn));return Wn<Qn?xu(vn.slice().reverse(),3,xg,ii(Qn/Wn)).reverse():vn}function AS(e,vn,_n,kn){return kn==null?Eu:vn==null?"":Nu(vn)}const zf={show:!0,scale:"y",stroke:Ru,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:wg,side:3,grid:Bu,ticks:vg,border:yg,font:zu,lineGap:bg,rotate:0};function $S(e,vn){let _n=3+(e||1)*2;return Ct$1(_n*vn,3)}function TS(e,vn){let{scale:_n,idxs:kn}=e.series[0],qn=e._data[0],Hn=e.valToPos(qn[kn[0]],_n,!0),Kn=e.valToPos(qn[kn[1]],_n,!0),Qn=an$1(Kn-Hn),zn=e.series[vn],Wn=Qn/(zn.points.space*dt$1);return kn[1]-kn[0]<=Wn}const Hf={scale:null,auto:!0,sorted:0,min:ct$1,max:-ct$1},_g=(e,vn,_n,kn,qn)=>qn,Uf={show:!0,auto:!0,sorted:0,gaps:_g,alpha:1,facets:[Zt$1({},Hf,{scale:"x"}),Zt$1({},Hf,{scale:"y"})]},Vf={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:_g,alpha:1,points:{show:TS,filter:null},values:null,min:ct$1,max:-ct$1,idxs:[],path:null,clip:null};function MS(e,vn,_n,kn,qn){return _n/10}const Sg={time:e_,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},LS=Zt$1({},Sg,{time:!1,ori:1}),jf={};function kg(e,vn){let _n=jf[e];return _n||(_n={key:e,plots:[],sub(kn){_n.plots.push(kn)},unsub(kn){_n.plots=_n.plots.filter(qn=>qn!=kn)},pub(kn,qn,Hn,Kn,Qn,zn,Wn){for(let Nn=0;Nn<_n.plots.length;Nn++)_n.plots[Nn]!=qn&&_n.plots[Nn].pub(kn,qn,Hn,Kn,Qn,zn,Wn)}},e!=null&&(jf[e]=_n)),_n}const vo=1,_u=2;function Pr(e,vn,_n){const kn=e.mode,qn=e.series[vn],Hn=kn==2?e._data[vn]:e._data,Kn=e.scales,Qn=e.bbox;let zn=Hn[0],Wn=kn==2?Hn[1]:Hn[vn],Nn=kn==2?Kn[qn.facets[0].scale]:Kn[e.series[0].scale],Dn=kn==2?Kn[qn.facets[1].scale]:Kn[qn.scale],In=Qn.left,Bn=Qn.top,Ln=Qn.width,Pn=Qn.height,Zn=e.valToPosH,Jn=e.valToPosV;return Nn.ori==0?_n(qn,zn,Wn,Nn,Dn,Zn,Jn,In,Bn,Ln,Pn,tl,xo,il,Ag,Tg):_n(qn,zn,Wn,Nn,Dn,Jn,Zn,Bn,In,Pn,Ln,nl,_o,Vu,$g,Mg)}function Hu(e,vn){let _n=0,kn=0,qn=ht$1(e.bands,Fu);for(let Hn=0;Hn<qn.length;Hn++){let Kn=qn[Hn];Kn.series[0]==vn?_n=Kn.dir:Kn.series[1]==vn&&(Kn.dir==1?kn|=1:kn|=2)}return[_n,kn==1?-1:kn==2?1:kn==3?2:0]}function RS(e,vn,_n,kn,qn){let Hn=e.mode,Kn=e.series[vn],Qn=Hn==2?Kn.facets[1].scale:Kn.scale,zn=e.scales[Qn];return qn==-1?zn.min:qn==1?zn.max:zn.distr==3?zn.dir==1?zn.min:zn.max:0}function Ui(e,vn,_n,kn,qn,Hn){return Pr(e,vn,(Kn,Qn,zn,Wn,Nn,Dn,In,Bn,Ln,Pn,Zn)=>{let Jn=Kn.pxRound;const Xn=Wn.dir*(Wn.ori==0?1:-1),mi=Wn.ori==0?xo:_o;let ci,oi;Xn==1?(ci=_n,oi=kn):(ci=kn,oi=_n);let ei=Jn(Dn(Qn[ci],Wn,Pn,Bn)),fi=Jn(In(zn[ci],Nn,Zn,Ln)),gi=Jn(Dn(Qn[oi],Wn,Pn,Bn)),yi=Jn(In(Hn==1?Nn.max:Nn.min,Nn,Zn,Ln)),pi=new Path2D(qn);return mi(pi,gi,yi),mi(pi,ei,yi),mi(pi,ei,fi),pi})}function el(e,vn,_n,kn,qn,Hn){let Kn=null;if(e.length>0){Kn=new Path2D;const Qn=vn==0?il:Vu;let zn=_n;for(let Dn=0;Dn<e.length;Dn++){let In=e[Dn];if(In[1]>In[0]){let Bn=In[0]-zn;Bn>0&&Qn(Kn,zn,kn,Bn,kn+Hn),zn=In[1]}}let Wn=_n+qn-zn,Nn=10;Wn>0&&Qn(Kn,zn,kn-Nn/2,Wn,kn+Hn+Nn)}return Kn}function ES(e,vn,_n){let kn=e[e.length-1];kn&&kn[0]==vn?kn[1]=_n:e.push([vn,_n])}function Uu(e,vn,_n,kn,qn,Hn,Kn){let Qn=[],zn=e.length;for(let Wn=qn==1?_n:kn;Wn>=_n&&Wn<=kn;Wn+=qn)if(vn[Wn]===null){let Nn=Wn,Dn=Wn;if(qn==1)for(;++Wn<=kn&&vn[Wn]===null;)Dn=Wn;else for(;--Wn>=_n&&vn[Wn]===null;)Dn=Wn;let In=Hn(e[Nn]),Bn=Dn==Nn?In:Hn(e[Dn]),Ln=Nn-qn;In=Kn<=0&&Ln>=0&&Ln<zn?Hn(e[Ln]):In;let Pn=Dn+qn;Bn=Kn>=0&&Pn>=0&&Pn<zn?Hn(e[Pn]):Bn,Bn>=In&&Qn.push([In,Bn])}return Qn}function Gf(e){return e==0?tg:e==1?sn$1:vn=>Rr(vn,e)}function Cg(e){let vn=e==0?tl:nl,_n=e==0?(qn,Hn,Kn,Qn,zn,Wn)=>{qn.arcTo(Hn,Kn,Qn,zn,Wn)}:(qn,Hn,Kn,Qn,zn,Wn)=>{qn.arcTo(Kn,Hn,zn,Qn,Wn)},kn=e==0?(qn,Hn,Kn,Qn,zn)=>{qn.rect(Hn,Kn,Qn,zn)}:(qn,Hn,Kn,Qn,zn)=>{qn.rect(Kn,Hn,zn,Qn)};return(qn,Hn,Kn,Qn,zn,Wn=0,Nn=0)=>{Wn==0&&Nn==0?kn(qn,Hn,Kn,Qn,zn):(Wn=ri(Wn,Qn/2,zn/2),Nn=ri(Nn,Qn/2,zn/2),vn(qn,Hn+Wn,Kn),_n(qn,Hn+Qn,Kn,Hn+Qn,Kn+zn,Wn),_n(qn,Hn+Qn,Kn+zn,Hn,Kn+zn,Nn),_n(qn,Hn,Kn+zn,Hn,Kn,Nn),_n(qn,Hn,Kn,Hn+Qn,Kn,Wn),qn.closePath())}}const tl=(e,vn,_n)=>{e.moveTo(vn,_n)},nl=(e,vn,_n)=>{e.moveTo(_n,vn)},xo=(e,vn,_n)=>{e.lineTo(vn,_n)},_o=(e,vn,_n)=>{e.lineTo(_n,vn)},il=Cg(0),Vu=Cg(1),Ag=(e,vn,_n,kn,qn,Hn)=>{e.arc(vn,_n,kn,qn,Hn)},$g=(e,vn,_n,kn,qn,Hn)=>{e.arc(_n,vn,kn,qn,Hn)},Tg=(e,vn,_n,kn,qn,Hn,Kn)=>{e.bezierCurveTo(vn,_n,kn,qn,Hn,Kn)},Mg=(e,vn,_n,kn,qn,Hn,Kn)=>{e.bezierCurveTo(_n,vn,qn,kn,Kn,Hn)};function Lg(e){return(vn,_n,kn,qn,Hn)=>Pr(vn,_n,(Kn,Qn,zn,Wn,Nn,Dn,In,Bn,Ln,Pn,Zn)=>{let{pxRound:Jn,points:Xn}=Kn,mi,ci;Wn.ori==0?(mi=tl,ci=Ag):(mi=nl,ci=$g);const oi=Ct$1(Xn.width*dt$1,3);let ei=(Xn.size-Xn.width)/2*dt$1,fi=Ct$1(ei*2,3),gi=new Path2D,yi=new Path2D,{left:pi,top:$i,width:si,height:ti}=vn.bbox;il(yi,pi-fi,$i-fi,si+fi*2,ti+fi*2);const ai=vi=>{if(zn[vi]!=null){let wi=Jn(Dn(Qn[vi],Wn,Pn,Bn)),xi=Jn(In(zn[vi],Nn,Zn,Ln));mi(gi,wi+ei,xi),ci(gi,wi,xi,ei,0,Fa*2)}};if(Hn)Hn.forEach(ai);else for(let vi=kn;vi<=qn;vi++)ai(vi);return{stroke:oi>0?gi:null,fill:gi,clip:yi,flags:vo|_u}})}function Rg(e){return(vn,_n,kn,qn,Hn,Kn)=>{kn!=qn&&(Hn!=kn&&Kn!=kn&&e(vn,_n,kn),Hn!=qn&&Kn!=qn&&e(vn,_n,qn),e(vn,_n,Kn))}}const IS=Rg(xo),OS=Rg(_o);function Eg(e){const vn=ht$1(e==null?void 0:e.alignGaps,0);return(_n,kn,qn,Hn)=>Pr(_n,kn,(Kn,Qn,zn,Wn,Nn,Dn,In,Bn,Ln,Pn,Zn)=>{let Jn=Kn.pxRound,Xn=Fi=>Jn(Dn(Fi,Wn,Pn,Bn)),mi=Fi=>Jn(In(Fi,Nn,Zn,Ln)),ci,oi;Wn.ori==0?(ci=xo,oi=IS):(ci=_o,oi=OS);const ei=Wn.dir*(Wn.ori==0?1:-1),fi={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:vo},gi=fi.stroke;let yi=ct$1,pi=-ct$1,$i,si,ti,ai=Xn(Qn[ei==1?qn:Hn]),vi=fo(zn,qn,Hn,1*ei),wi=fo(zn,qn,Hn,-1*ei),xi=Xn(Qn[vi]),Si=Xn(Qn[wi]),Ei=!1;for(let Fi=ei==1?qn:Hn;Fi>=qn&&Fi<=Hn;Fi+=ei){let Ii=Xn(Qn[Fi]),Vi=zn[Fi];Ii==ai?Vi!=null?(si=mi(Vi),yi==ct$1&&(ci(gi,Ii,si),$i=si),yi=ri(si,yi),pi=xn$1(si,pi)):Vi===null&&(Ei=!0):(yi!=ct$1&&(oi(gi,ai,yi,pi,$i,si),ti=ai),Vi!=null?(si=mi(Vi),ci(gi,Ii,si),yi=pi=$i=si):(yi=ct$1,pi=-ct$1,Vi===null&&(Ei=!0)),ai=Ii)}yi!=ct$1&&yi!=pi&&ti!=ai&&oi(gi,ai,yi,pi,$i,si);let[Ri,Ni]=Hu(_n,kn);if(Kn.fill!=null||Ri!=0){let Fi=fi.fill=new Path2D(gi),Ii=Kn.fillTo(_n,kn,Kn.min,Kn.max,Ri),Vi=mi(Ii);ci(Fi,Si,Vi),ci(Fi,xi,Vi)}if(!Kn.spanGaps){let Fi=[];Ei&&Fi.push(...Uu(Qn,zn,qn,Hn,ei,Xn,vn)),fi.gaps=Fi=Kn.gaps(_n,kn,qn,Hn,Fi),fi.clip=el(Fi,Wn.ori,Bn,Ln,Pn,Zn)}return Ni!=0&&(fi.band=Ni==2?[Ui(_n,kn,qn,Hn,gi,-1),Ui(_n,kn,qn,Hn,gi,1)]:Ui(_n,kn,qn,Hn,gi,Ni)),fi})}function DS(e){const vn=ht$1(e.align,1),_n=ht$1(e.ascDesc,!1),kn=ht$1(e.alignGaps,0),qn=ht$1(e.extend,!1);return(Hn,Kn,Qn,zn)=>Pr(Hn,Kn,(Wn,Nn,Dn,In,Bn,Ln,Pn,Zn,Jn,Xn,mi)=>{let ci=Wn.pxRound,{left:oi,width:ei}=Hn.bbox,fi=Ri=>ci(Ln(Ri,In,Xn,Zn)),gi=Ri=>ci(Pn(Ri,Bn,mi,Jn)),yi=In.ori==0?xo:_o;const pi={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:vo},$i=pi.stroke,si=In.dir*(In.ori==0?1:-1);Qn=fo(Dn,Qn,zn,1),zn=fo(Dn,Qn,zn,-1);let ti=gi(Dn[si==1?Qn:zn]),ai=fi(Nn[si==1?Qn:zn]),vi=ai,wi=ai;qn&&vn==-1&&(wi=oi,yi($i,wi,ti)),yi($i,ai,ti);for(let Ri=si==1?Qn:zn;Ri>=Qn&&Ri<=zn;Ri+=si){let Ni=Dn[Ri];if(Ni==null)continue;let Fi=fi(Nn[Ri]),Ii=gi(Ni);vn==1?yi($i,Fi,ti):yi($i,vi,Ii),yi($i,Fi,Ii),ti=Ii,vi=Fi}let xi=vi;qn&&vn==1&&(xi=oi+ei,yi($i,xi,ti));let[Si,Ei]=Hu(Hn,Kn);if(Wn.fill!=null||Si!=0){let Ri=pi.fill=new Path2D($i),Ni=Wn.fillTo(Hn,Kn,Wn.min,Wn.max,Si),Fi=gi(Ni);yi(Ri,xi,Fi),yi(Ri,wi,Fi)}if(!Wn.spanGaps){let Ri=[];Ri.push(...Uu(Nn,Dn,Qn,zn,si,fi,kn));let Ni=Wn.width*dt$1/2,Fi=_n||vn==1?Ni:-Ni,Ii=_n||vn==-1?-Ni:Ni;Ri.forEach(Vi=>{Vi[0]+=Fi,Vi[1]+=Ii}),pi.gaps=Ri=Wn.gaps(Hn,Kn,Qn,zn,Ri),pi.clip=el(Ri,In.ori,Zn,Jn,Xn,mi)}return Ei!=0&&(pi.band=Ei==2?[Ui(Hn,Kn,Qn,zn,$i,-1),Ui(Hn,Kn,Qn,zn,$i,1)]:Ui(Hn,Kn,Qn,zn,$i,Ei)),pi})}function Kf(e,vn,_n,kn,qn,Hn,Kn=ct$1){if(e.length>1){let Qn=null;for(let zn=0,Wn=1/0;zn<e.length;zn++)if(vn[zn]!==void 0){if(Qn!=null){let Nn=an$1(e[zn]-e[Qn]);Nn<Wn&&(Wn=Nn,Kn=an$1(_n(e[zn],kn,qn,Hn)-_n(e[Qn],kn,qn,Hn)))}Qn=zn}}return Kn}function NS(e){e=e||bs;const vn=ht$1(e.size,[.6,ct$1,1]),_n=e.align||0,kn=e.gap||0;let qn=e.radius;qn=qn==null?[0,0]:typeof qn=="number"?[qn,0]:qn;const Hn=lt$1(qn),Kn=1-vn[0],Qn=ht$1(vn[1],ct$1),zn=ht$1(vn[2],1),Wn=ht$1(e.disp,bs),Nn=ht$1(e.each,Bn=>{}),{fill:Dn,stroke:In}=Wn;return(Bn,Ln,Pn,Zn)=>Pr(Bn,Ln,(Jn,Xn,mi,ci,oi,ei,fi,gi,yi,pi,$i)=>{let si=Jn.pxRound,ti=_n,ai=kn*dt$1,vi=Qn*dt$1,wi=zn*dt$1,xi,Si;ci.ori==0?[xi,Si]=Hn(Bn,Ln):[Si,xi]=Hn(Bn,Ln);const Ei=ci.dir*(ci.ori==0?1:-1);let Ri=ci.ori==0?il:Vu,Ni=ci.ori==0?Nn:(Hr,Ji,xr,kr,Gr,qr,$o)=>{Nn(Hr,Ji,xr,Gr,kr,$o,qr)},Fi=ht$1(Bn.bands,Fu).find(Hr=>Hr.series[0]==Ln),Ii=Fi!=null?Fi.dir:0,Vi=Jn.fillTo(Bn,Ln,Jn.min,Jn.max,Ii),Gi=si(fi(Vi,oi,$i,yi)),Pi,Zi,lr,gr=pi,or=si(Jn.width*dt$1),yr=!1,io=null,Po=null,lo=null,So=null;Dn!=null&&(or==0||In!=null)&&(yr=!0,io=Dn.values(Bn,Ln,Pn,Zn),Po=new Map,new Set(io).forEach(Hr=>{Hr!=null&&Po.set(Hr,new Path2D)}),or>0&&(lo=In.values(Bn,Ln,Pn,Zn),So=new Map,new Set(lo).forEach(Hr=>{Hr!=null&&So.set(Hr,new Path2D)})));let{x0:Xo,size:Do}=Wn;if(Xo!=null&&Do!=null){ti=1,Xn=Xo.values(Bn,Ln,Pn,Zn),Xo.unit==2&&(Xn=Xn.map(Ji=>Bn.posToVal(gi+Ji*pi,ci.key,!0)));let Hr=Do.values(Bn,Ln,Pn,Zn);Do.unit==2?Zi=Hr[0]*pi:Zi=ei(Hr[0],ci,pi,gi)-ei(0,ci,pi,gi),gr=Kf(Xn,mi,ei,ci,pi,gi,gr),lr=gr-Zi+ai}else gr=Kf(Xn,mi,ei,ci,pi,gi,gr),lr=gr*Kn+ai,Zi=gr-lr;lr<1&&(lr=0),or>=Zi/2&&(or=0),lr<5&&(si=tg);let Uo=lr>0,va=gr-lr-(Uo?or:0);Zi=si(wu(va,wi,vi)),Pi=(ti==0?Zi/2:ti==Ei?0:Zi)-ti*Ei*((ti==0?ai/2:0)+(Uo?or/2:0));const ss={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Ko=yr?null:new Path2D;let Mr=null;if(Fi!=null)Mr=Bn.data[Fi.series[1]];else{let{y0:Hr,y1:Ji}=Wn;Hr!=null&&Ji!=null&&(mi=Ji.values(Bn,Ln,Pn,Zn),Mr=Hr.values(Bn,Ln,Pn,Zn))}let Vr=xi*Zi,Zo=Si*Zi;for(let Hr=Ei==1?Pn:Zn;Hr>=Pn&&Hr<=Zn;Hr+=Ei){let Ji=mi[Hr];if(Ji==null)continue;if(Mr!=null){let so=Mr[Hr]??0;if(Ji-so==0)continue;Gi=fi(so,oi,$i,yi)}let xr=ci.distr!=2||Wn!=null?Xn[Hr]:Hr,kr=ei(xr,ci,pi,gi),Gr=fi(ht$1(Ji,Vi),oi,$i,yi),qr=si(kr-Pi),$o=si(xn$1(Gr,Gi)),ko=si(ri(Gr,Gi)),oo=$o-ko;if(Ji!=null){let so=Ji<0?Zo:Vr,eo=Ji<0?Vr:Zo;yr?(or>0&&lo[Hr]!=null&&Ri(So.get(lo[Hr]),qr,ko+jn(or/2),Zi,xn$1(0,oo-or),so,eo),io[Hr]!=null&&Ri(Po.get(io[Hr]),qr,ko+jn(or/2),Zi,xn$1(0,oo-or),so,eo)):Ri(Ko,qr,ko+jn(or/2),Zi,xn$1(0,oo-or),so,eo),Ni(Bn,Ln,Hr,qr-or/2,ko,Zi+or,oo)}}return or>0?ss.stroke=yr?So:Ko:yr||(ss._fill=Jn.width==0?Jn._fill:Jn._stroke??Jn._fill,ss.width=0),ss.fill=yr?Po:Ko,ss})}function FS(e,vn){const _n=ht$1(vn==null?void 0:vn.alignGaps,0);return(kn,qn,Hn,Kn)=>Pr(kn,qn,(Qn,zn,Wn,Nn,Dn,In,Bn,Ln,Pn,Zn,Jn)=>{let Xn=Qn.pxRound,mi=xi=>Xn(In(xi,Nn,Zn,Ln)),ci=xi=>Xn(Bn(xi,Dn,Jn,Pn)),oi,ei,fi;Nn.ori==0?(oi=tl,fi=xo,ei=Tg):(oi=nl,fi=_o,ei=Mg);const gi=Nn.dir*(Nn.ori==0?1:-1);Hn=fo(Wn,Hn,Kn,1),Kn=fo(Wn,Hn,Kn,-1);let yi=mi(zn[gi==1?Hn:Kn]),pi=yi,$i=[],si=[];for(let xi=gi==1?Hn:Kn;xi>=Hn&&xi<=Kn;xi+=gi)if(Wn[xi]!=null){let Si=zn[xi],Ei=mi(Si);$i.push(pi=Ei),si.push(ci(Wn[xi]))}const ti={stroke:e($i,si,oi,fi,ei,Xn),fill:null,clip:null,band:null,gaps:null,flags:vo},ai=ti.stroke;let[vi,wi]=Hu(kn,qn);if(Qn.fill!=null||vi!=0){let xi=ti.fill=new Path2D(ai),Si=Qn.fillTo(kn,qn,Qn.min,Qn.max,vi),Ei=ci(Si);fi(xi,pi,Ei),fi(xi,yi,Ei)}if(!Qn.spanGaps){let xi=[];xi.push(...Uu(zn,Wn,Hn,Kn,gi,mi,_n)),ti.gaps=xi=Qn.gaps(kn,qn,Hn,Kn,xi),ti.clip=el(xi,Nn.ori,Ln,Pn,Zn,Jn)}return wi!=0&&(ti.band=wi==2?[Ui(kn,qn,Hn,Kn,ai,-1),Ui(kn,qn,Hn,Kn,ai,1)]:Ui(kn,qn,Hn,Kn,ai,wi)),ti})}function WS(e){return FS(PS,e)}function PS(e,vn,_n,kn,qn,Hn){const Kn=e.length;if(Kn<2)return null;const Qn=new Path2D;if(_n(Qn,e[0],vn[0]),Kn==2)kn(Qn,e[1],vn[1]);else{let zn=Array(Kn),Wn=Array(Kn-1),Nn=Array(Kn-1),Dn=Array(Kn-1);for(let In=0;In<Kn-1;In++)Nn[In]=vn[In+1]-vn[In],Dn[In]=e[In+1]-e[In],Wn[In]=Nn[In]/Dn[In];zn[0]=Wn[0];for(let In=1;In<Kn-1;In++)Wn[In]===0||Wn[In-1]===0||Wn[In-1]>0!=Wn[In]>0?zn[In]=0:(zn[In]=3*(Dn[In-1]+Dn[In])/((2*Dn[In]+Dn[In-1])/Wn[In-1]+(Dn[In]+2*Dn[In-1])/Wn[In]),isFinite(zn[In])||(zn[In]=0));zn[Kn-1]=Wn[Kn-2];for(let In=0;In<Kn-1;In++)qn(Qn,e[In]+Dn[In]/3,vn[In]+zn[In]*Dn[In]/3,e[In+1]-Dn[In]/3,vn[In+1]-zn[In+1]*Dn[In]/3,e[In+1],vn[In+1])}return Qn}const Su=new Set;function qf(){for(let e of Su)e.syncRect(!0)}bo&&(Nr(w_,ho,qf),Nr(b_,ho,qf,!0),Nr(Ba,ho,()=>{$n.pxRatio=dt$1}));const BS=Eg(),zS=Lg();function Yf(e,vn,_n,kn){return(kn?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map((qn,Hn)=>ku(qn,Hn,vn,_n))}function HS(e,vn){return e.map((_n,kn)=>kn==0?{}:Zt$1({},vn,_n))}function ku(e,vn,_n,kn){return Zt$1({},vn==0?_n:kn,e)}function Ig(e,vn,_n){return vn==null?go:[vn,_n]}const US=Ig;function VS(e,vn,_n){return vn==null?go:za(vn,_n,Du,!0)}function Og(e,vn,_n,kn){return vn==null?go:Qa(vn,_n,e.scales[kn].log,!1)}const jS=Og;function Dg(e,vn,_n,kn){return vn==null?go:Ou(vn,_n,e.scales[kn].log,!1)}const GS=Dg;function KS(e,vn,_n,kn,qn){let Hn=xn$1($f(e),$f(vn)),Kn=vn-e,Qn=hi(qn/kn*Kn,_n);do{let zn=_n[Qn],Wn=kn*zn/Kn;if(Wn>=qn&&Hn+(zn<5?dr.get(zn):0)<=17)return[zn,Wn]}while(++Qn<_n.length);return[0,0]}function Zf(e){let vn,_n;return e=e.replace(/(\d+)px/,(kn,qn)=>(vn=sn$1((_n=+qn)*dt$1))+"px"),[e,vn,_n]}function qS(e){e.show&&[e.font,e.labelFont].forEach(vn=>{let _n=Ct$1(vn[2]*dt$1,1);vn[0]=vn[0].replace(/[0-9.]+px/,_n+"px"),vn[1]=_n})}function $n(e,vn,_n){const kn={mode:ht$1(e.mode,1)},qn=kn.mode;function Hn(_i,Mi){return((Mi.distr==3?Hi(_i>0?_i:Mi.clamp(kn,_i,Mi.min,Mi.max,Mi.key)):Mi.distr==4?Cc(_i,Mi.asinh):Mi.distr==100?Mi.fwd(_i):_i)-Mi._min)/(Mi._max-Mi._min)}function Kn(_i,Mi,Di,Oi){let Wi=Hn(_i,Mi);return Oi+Di*(Mi.dir==-1?1-Wi:Wi)}function Qn(_i,Mi,Di,Oi){let Wi=Hn(_i,Mi);return Oi+Di*(Mi.dir==-1?Wi:1-Wi)}function zn(_i,Mi,Di,Oi){return Mi.ori==0?Kn(_i,Mi,Di,Oi):Qn(_i,Mi,Di,Oi)}kn.valToPosH=Kn,kn.valToPosV=Qn;let Wn=!1;kn.status=0;const Nn=kn.root=ni(t_);if(e.id!=null&&(Nn.id=e.id),Un(Nn,e.class),e.title){let _i=ni(r_,Nn);_i.textContent=e.title}const Dn=ui("canvas"),In=kn.ctx=Dn.getContext("2d"),Bn=ni(o_,Nn);Nr("click",Bn,_i=>{_i.target===Pn&&(Br!=El||Fo!=Ll)&&ls.click(kn,_i)},!0);const Ln=kn.under=ni(s_,Bn);Bn.appendChild(Dn);const Pn=kn.over=ni(a_,Bn);e=mo(e);const Zn=+ht$1(e.pxAlign,1),Jn=Gf(Zn);(e.plugins||[]).forEach(_i=>{_i.opts&&(e=_i.opts(kn,e)||e)});const Xn=e.ms||.001,mi=kn.series=qn==1?Yf(e.series||[],Pf,Vf,!1):HS(e.series||[null],Uf),ci=kn.axes=Yf(e.axes||[],Wf,zf,!0),oi=kn.scales={},ei=kn.bands=e.bands||[];ei.forEach(_i=>{_i.fill=lt$1(_i.fill||null),_i.dir=ht$1(_i.dir,-1)});const fi=qn==2?mi[1].facets[0].scale:mi[0].scale,gi={axes:om,series:Xh},yi=(e.drawOrder||["axes","series"]).map(_i=>gi[_i]);function pi(_i){let Mi=oi[_i];if(Mi==null){let Di=(e.scales||bs)[_i]||bs;if(Di.from!=null)pi(Di.from),oi[_i]=Zt$1({},oi[Di.from],Di,{key:_i});else{Mi=oi[_i]=Zt$1({},_i==fi?Sg:LS,Di),Mi.key=_i;let Oi=Mi.time,Wi=Mi.range,qi=ur(Wi);if((_i!=fi||qn==2&&!Oi)&&(qi&&(Wi[0]==null||Wi[1]==null)&&(Wi={min:Wi[0]==null?kf:{mode:1,hard:Wi[0],soft:Wi[0]},max:Wi[1]==null?kf:{mode:1,hard:Wi[1],soft:Wi[1]}},qi=!1),!qi&&Ja(Wi))){let Xi=Wi;Wi=(fr,mr,vr)=>mr==null?go:za(mr,vr,Xi)}Mi.range=lt$1(Wi||(Oi?US:_i==fi?Mi.distr==3?jS:Mi.distr==4?GS:Ig:Mi.distr==3?Og:Mi.distr==4?Dg:VS)),Mi.auto=lt$1(qi?!1:Mi.auto),Mi.clamp=lt$1(Mi.clamp||MS),Mi._min=Mi._max=null}}}pi("x"),pi("y"),qn==1&&mi.forEach(_i=>{pi(_i.scale)}),ci.forEach(_i=>{pi(_i.scale)});for(let _i in e.scales)pi(_i);const $i=oi[fi],si=$i.distr;let ti,ai;$i.ori==0?(Un(Nn,n_),ti=Kn,ai=Qn):(Un(Nn,i_),ti=Qn,ai=Kn);const vi={};for(let _i in oi){let Mi=oi[_i];(Mi.min!=null||Mi.max!=null)&&(vi[_i]={min:Mi.min,max:Mi.max},Mi.min=Mi.max=null)}const wi=e.tzDate||(_i=>new Date(sn$1(_i/Xn))),xi=e.fmtDate||Wu,Si=Xn==1?nS(wi):oS(wi),Ei=Df(wi,Of(Xn==1?tS:rS,xi)),Ri=Ff(wi,Nf(aS,xi)),Ni=[],Fi=kn.legend=Zt$1({},uS,e.legend),Ii=Fi.show,Vi=Fi.markers;Fi.idxs=Ni,Vi.width=lt$1(Vi.width),Vi.dash=lt$1(Vi.dash),Vi.stroke=lt$1(Vi.stroke),Vi.fill=lt$1(Vi.fill);let Gi,Pi,Zi,lr=[],gr=[],or,yr=!1,io={};if(Fi.live){const _i=mi[1]?mi[1].values:null;yr=_i!=null,or=yr?_i(kn,1,0):{_:0};for(let Mi in or)io[Mi]=Eu}if(Ii)if(Gi=ui("table",f_,Nn),Zi=ui("tbody",null,Gi),Fi.mount(kn,Gi),yr){Pi=ui("thead",null,Gi,Zi);let _i=ui("tr",null,Pi);ui("th",null,_i);for(var Po in or)ui("th",uf,_i).textContent=Po}else Un(Gi,g_),Fi.live&&Un(Gi,p_);const lo={show:!0},So={show:!1};function Xo(_i,Mi){if(Mi==0&&(yr||!Fi.live||qn==2))return go;let Di=[],Oi=ui("tr",m_,Zi,Zi.childNodes[Mi]);Un(Oi,_i.class),_i.show||Un(Oi,Ir);let Wi=ui("th",null,Oi);if(Vi.show){let fr=ni(v_,Wi);if(Mi>0){let mr=Vi.width(kn,Mi);mr&&(fr.style.border=mr+"px "+Vi.dash(kn,Mi)+" "+Vi.stroke(kn,Mi)),fr.style.background=Vi.fill(kn,Mi)}}let qi=ni(uf,Wi);qi.textContent=_i.label,Mi>0&&(Vi.show||(qi.style.color=_i.width>0?Vi.stroke(kn,Mi):Vi.fill(kn,Mi)),Uo("click",Wi,fr=>{if(Ar._lock)return;sl(fr);let mr=mi.indexOf(_i);if((fr.ctrlKey||fr.metaKey)!=Fi.isolate){let vr=mi.some((br,_r)=>_r>0&&_r!=mr&&br.show);mi.forEach((br,_r)=>{_r>0&&As(_r,vr?_r==mr?lo:So:lo,!0,Go.setSeries)})}else As(mr,{show:!_i.show},!0,Go.setSeries)},!1),wa&&Uo(gf,Wi,fr=>{Ar._lock||(sl(fr),As(mi.indexOf(_i),ul,!0,Go.setSeries))},!1));for(var Xi in or){let fr=ui("td",y_,Oi);fr.textContent="--",Di.push(fr)}return[Oi,Di]}const Do=new Map;function Uo(_i,Mi,Di,Oi=!0){const Wi=Do.get(Mi)||{},qi=Ar.bind[_i](kn,Mi,Di,Oi);qi&&(Nr(_i,Mi,Wi[_i]=qi),Do.set(Mi,Wi))}function va(_i,Mi,Di){const Oi=Do.get(Mi)||{};for(let Wi in Oi)(_i==null||Wi==_i)&&(yu(Wi,Mi,Oi[Wi]),delete Oi[Wi]);_i==null&&Do.delete(Mi)}let ss=0,Ko=0,Mr=0,Vr=0,Zo=0,Hr=0,Ji=Zo,xr=Hr,kr=Mr,Gr=Vr,qr=0,$o=0,ko=0,oo=0;kn.bbox={};let so=!1,eo=!1,Ho=!1,Rs=!1,ol=!1,js=!1;function lh(_i,Mi,Di){(Di||_i!=kn.width||Mi!=kn.height)&&ch(_i,Mi),ll(!1),Ho=!0,eo=!0,Ml()}function ch(_i,Mi){kn.width=ss=Mr=_i,kn.height=Ko=Vr=Mi,Zo=Hr=0,em(),tm();let Di=kn.bbox;qr=Di.left=Rr(Zo*dt$1,.5),$o=Di.top=Rr(Hr*dt$1,.5),ko=Di.width=Rr(Mr*dt$1,.5),oo=Di.height=Rr(Vr*dt$1,.5)}const Yh=3;function Jg(){let _i=!1,Mi=0;for(;!_i;){Mi++;let Di=nd(Mi),Oi=id(Mi);_i=Mi==Yh||Di&&Oi,_i||(ch(kn.width,kn.height),eo=!0)}}function Xg({width:_i,height:Mi}){lh(_i,Mi)}kn.setSize=Xg;function em(){let _i=!1,Mi=!1,Di=!1,Oi=!1;ci.forEach((Wi,qi)=>{if(Wi.show&&Wi._show){let{side:Xi,_size:fr}=Wi,mr=Xi%2,vr=Wi.label!=null?Wi.labelSize:0,br=fr+vr;br>0&&(mr?(Mr-=br,Xi==3?(Zo+=br,Oi=!0):Di=!0):(Vr-=br,Xi==0?(Hr+=br,_i=!0):Mi=!0))}}),al[0]=_i,al[1]=Di,al[2]=Mi,al[3]=Oi,Mr-=ba[1]+ba[3],Zo+=ba[3],Vr-=ba[2]+ba[0],Hr+=ba[0]}function tm(){let _i=Zo+Mr,Mi=Hr+Vr,Di=Zo,Oi=Hr;function Wi(qi,Xi){switch(qi){case 1:return _i+=Xi,_i-Xi;case 2:return Mi+=Xi,Mi-Xi;case 3:return Di-=Xi,Di+Xi;case 0:return Oi-=Xi,Oi+Xi}}ci.forEach((qi,Xi)=>{if(qi.show&&qi._show){let fr=qi.side;qi._pos=Wi(fr,qi._size),qi.label!=null&&(qi._lpos=Wi(fr,qi.labelSize))}})}const Ar=kn.cursor=Zt$1({},mS,{drag:{y:qn==2}},e.cursor);if(Ar.dataIdx==null){let _i=Ar.hover,Mi=_i.skip=new Set(_i.skip??[]);Mi.add(void 0);let Di=_i.prox=lt$1(_i.prox),Oi=_i.bias??(_i.bias=0);Ar.dataIdx=(Wi,qi,Xi,fr)=>{if(qi==0)return Xi;let mr=Xi,vr=Di(Wi,qi,Xi,fr)??ct$1,br=vr>=0&&vr<ct$1,_r=$i.ori==0?Mr:Vr,Kr=Ar.left,Ro=vn[0],to=vn[qi];if(Mi.has(to[Xi])){mr=null;let Yr=null,Qr=null,Sr;if(Oi==0||Oi==-1)for(Sr=Xi;Yr==null&&Sr-- >0;)Mi.has(to[Sr])||(Yr=Sr);if(Oi==0||Oi==1)for(Sr=Xi;Qr==null&&Sr++<to.length;)Mi.has(to[Sr])||(Qr=Sr);if(Yr!=null||Qr!=null)if(br){let Ao=Yr==null?-1/0:ti(Ro[Yr],$i,_r,0),Yo=Qr==null?1/0:ti(Ro[Qr],$i,_r,0),jo=Kr-Ao,Bo=Yo-Kr;jo<=Bo?jo<=vr&&(mr=Yr):Bo<=vr&&(mr=Qr)}else mr=Qr==null?Yr:Yr==null?Qr:Xi-Yr<=Qr-Xi?Yr:Qr}else br&&an$1(Kr-ti(Ro[Xi],$i,_r,0))>vr&&(mr=null);return mr}}const sl=_i=>{Ar.event=_i};Ar.idxs=Ni,Ar._lock=!1;let Ms=Ar.points;Ms.show=lt$1(Ms.show),Ms.size=lt$1(Ms.size),Ms.stroke=lt$1(Ms.stroke),Ms.width=lt$1(Ms.width),Ms.fill=lt$1(Ms.fill);const ya=kn.focus=Zt$1({},e.focus||{alpha:.3},Ar.focus),wa=ya.prox>=0,$l=wa&&Ms.one;let Ns=[],xl=[],_l=[];function qh(_i,Mi){let Di=Ms.show(kn,Mi);if(Di)return Un(Di,d_),Un(Di,_i.class),Ci(Di,-10,-10,Mr,Vr),Pn.insertBefore(Di,Ns[Mi]),Di}function Kh(_i,Mi){if(qn==1||Mi>0){let Di=qn==1&&oi[_i.scale].time,Oi=_i.value;_i.value=Di?Lf(Oi)?Ff(wi,Nf(Oi,xi)):Oi||Ri:Oi||AS,_i.label=_i.label||(Di?yS:vS)}if($l||Mi>0){_i.width=_i.width==null?1:_i.width,_i.paths=_i.paths||BS||L_,_i.fillTo=lt$1(_i.fillTo||RS),_i.pxAlign=+ht$1(_i.pxAlign,Zn),_i.pxRound=Gf(_i.pxAlign),_i.stroke=lt$1(_i.stroke||null),_i.fill=lt$1(_i.fill||null),_i._stroke=_i._fill=_i._paths=_i._focus=null;let Di=$S(xn$1(1,_i.width),1),Oi=_i.points=Zt$1({},{size:Di,width:xn$1(1,Di*.2),stroke:_i.stroke,space:Di*2,paths:zS,_stroke:null,_fill:null},_i.points);Oi.show=lt$1(Oi.show),Oi.filter=lt$1(Oi.filter),Oi.fill=lt$1(Oi.fill),Oi.stroke=lt$1(Oi.stroke),Oi.paths=lt$1(Oi.paths),Oi.pxAlign=_i.pxAlign}if(Ii){let Di=Xo(_i,Mi);lr.splice(Mi,0,Di[0]),gr.splice(Mi,0,Di[1]),Fi.values.push(null)}if(Ar.show){Ni.splice(Mi,0,null);let Di=null;$l?Mi==0&&(Di=qh(_i,Mi)):Mi>0&&(Di=qh(_i,Mi)),Ns.splice(Mi,0,Di),xl.splice(Mi,0,0),_l.splice(Mi,0,0)}Qo("addSeries",Mi)}function nm(_i,Mi){Mi=Mi??mi.length,_i=qn==1?ku(_i,Mi,Pf,Vf):ku(_i,Mi,{},Uf),mi.splice(Mi,0,_i),Kh(mi[Mi],Mi)}kn.addSeries=nm;function im(_i){if(mi.splice(_i,1),Ii){Fi.values.splice(_i,1),gr.splice(_i,1);let Mi=lr.splice(_i,1)[0];va(null,Mi.firstChild),Mi.remove()}Ar.show&&(Ni.splice(_i,1),Ns.splice(_i,1)[0].remove(),xl.splice(_i,1),_l.splice(_i,1)),Qo("delSeries",_i)}kn.delSeries=im;const al=[!1,!1,!1,!1];function rm(_i,Mi){if(_i._show=_i.show,_i.show){let Di=_i.side%2,Oi=oi[_i.scale];Oi==null&&(_i.scale=Di?mi[1].scale:fi,Oi=oi[_i.scale]);let Wi=Oi.time;_i.size=lt$1(_i.size),_i.space=lt$1(_i.space),_i.rotate=lt$1(_i.rotate),ur(_i.incrs)&&_i.incrs.forEach(Xi=>{!dr.has(Xi)&&dr.set(Xi,rg(Xi))}),_i.incrs=lt$1(_i.incrs||(Oi.distr==2?X_:Wi?Xn==1?eS:iS:Er)),_i.splits=lt$1(_i.splits||(Wi&&Oi.distr==1?Si:Oi.distr==3?bu:Oi.distr==4?xS:bS)),_i.stroke=lt$1(_i.stroke),_i.grid.stroke=lt$1(_i.grid.stroke),_i.ticks.stroke=lt$1(_i.ticks.stroke),_i.border.stroke=lt$1(_i.border.stroke);let qi=_i.values;_i.values=ur(qi)&&!ur(qi[0])?lt$1(qi):Wi?ur(qi)?Df(wi,Of(qi,xi)):Lf(qi)?sS(wi,qi):qi||Ei:qi||wS,_i.filter=lt$1(_i.filter||(Oi.distr>=3&&Oi.log==10?kS:Oi.distr==3&&Oi.log==2?CS:ng)),_i.font=Zf(_i.font),_i.labelFont=Zf(_i.labelFont),_i._size=_i.size(kn,null,Mi,0),_i._space=_i._rotate=_i._incrs=_i._found=_i._splits=_i._values=null,_i._size>0&&(al[Mi]=!0,_i._el=ni(l_,Bn))}}function kl(_i,Mi,Di,Oi){let[Wi,qi,Xi,fr]=Di,mr=Mi%2,vr=0;return mr==0&&(fr||qi)&&(vr=Mi==0&&!Wi||Mi==2&&!Xi?sn$1(Wf.size/3):0),mr==1&&(Wi||Xi)&&(vr=Mi==1&&!qi||Mi==3&&!fr?sn$1(zf.size/2):0),vr}const Zh=kn.padding=(e.padding||[kl,kl,kl,kl]).map(_i=>lt$1(ht$1(_i,kl))),ba=kn._padding=Zh.map((_i,Mi)=>_i(kn,Mi,al,0));let as,ns=null,is=null;const rc=qn==1?mi[0].idxs:null;let Is=null,zl=!1;function Hl(_i,Mi){if(vn=_i??[],kn.data=kn._data=vn,qn==2){as=0;for(let Di=1;Di<mi.length;Di++)as+=vn[Di][0].length}else{vn.length==0&&(kn.data=kn._data=vn=[[]]),Is=vn[0],as=Is.length;let Di=vn;if(si==2){Di=vn.slice();let Oi=Di[0]=Array(as);for(let Wi=0;Wi<as;Wi++)Oi[Wi]=Wi}kn._data=vn=Di}if(ll(!0),Qo("setData"),si==2&&(Ho=!0),Mi!==!1){let Di=$i;Di.auto(kn,zl)?uh():ra(fi,Di.min,Di.max),Rs=Rs||Ar.left>=0,js=!0,Ml()}}kn.setData=Hl;function uh(){zl=!0;let _i,Mi;qn==1&&(as>0?(ns=rc[0]=0,is=rc[1]=as-1,_i=vn[0][ns],Mi=vn[0][is],si==2?(_i=ns,Mi=is):_i==Mi&&(si==3?[_i,Mi]=Qa(_i,_i,$i.log,!1):si==4?[_i,Mi]=Ou(_i,_i,$i.log,!1):$i.time?Mi=_i+sn$1(86400/Xn):[_i,Mi]=za(_i,Mi,Du,!0))):(ns=rc[0]=_i=null,is=rc[1]=Mi=null)),ra(fi,_i,Mi)}let oc,Sl,sc,ac,lc,hh,dh,ph,gh,ia;function fh(_i,Mi,Di,Oi,Wi,qi){_i??(_i=df),Di??(Di=Fu),Oi??(Oi="butt"),Wi??(Wi=df),qi??(qi="round"),_i!=oc&&(In.strokeStyle=oc=_i),Wi!=Sl&&(In.fillStyle=Sl=Wi),Mi!=sc&&(In.lineWidth=sc=Mi),qi!=lc&&(In.lineJoin=lc=qi),Oi!=hh&&(In.lineCap=hh=Oi),Di!=ac&&In.setLineDash(ac=Di)}function mh(_i,Mi,Di,Oi){Mi!=Sl&&(In.fillStyle=Sl=Mi),_i!=dh&&(In.font=dh=_i),Di!=ph&&(In.textAlign=ph=Di),Oi!=gh&&(In.textBaseline=gh=Oi)}function Wl(_i,Mi,Di,Oi,Wi=0){if(Oi.length>0&&_i.auto(kn,zl)&&(Mi==null||Mi.min==null)){let qi=ht$1(ns,0),Xi=ht$1(is,Oi.length-1),fr=Di.min==null?_i.distr==3?k_(Oi,qi,Xi):S_(Oi,qi,Xi,Wi):[Di.min,Di.max];_i.min=ri(_i.min,Di.min=fr[0]),_i.max=xn$1(_i.max,Di.max=fr[1])}}const Qh={min:null,max:null};function Jh(){for(let Oi in oi){let Wi=oi[Oi];vi[Oi]==null&&(Wi.min==null||vi[fi]!=null&&Wi.auto(kn,zl))&&(vi[Oi]=Qh)}for(let Oi in oi){let Wi=oi[Oi];vi[Oi]==null&&Wi.from!=null&&vi[Wi.from]!=null&&(vi[Oi]=Qh)}vi[fi]!=null&&ll(!0);let _i={};for(let Oi in vi){let Wi=vi[Oi];if(Wi!=null){let qi=_i[Oi]=mo(oi[Oi],I_);if(Wi.min!=null)Zt$1(qi,Wi);else if(Oi!=fi||qn==2)if(as==0&&qi.from==null){let Xi=qi.range(kn,null,null,Oi);qi.min=Xi[0],qi.max=Xi[1]}else qi.min=ct$1,qi.max=-ct$1}}if(as>0){mi.forEach((Oi,Wi)=>{if(qn==1){let qi=Oi.scale,Xi=vi[qi];if(Xi==null)return;let fr=_i[qi];if(Wi==0){let mr=fr.range(kn,fr.min,fr.max,qi);fr.min=mr[0],fr.max=mr[1],ns=hi(fr.min,vn[0]),is=hi(fr.max,vn[0]),is-ns>1&&(vn[0][ns]<fr.min&&ns++,vn[0][is]>fr.max&&is--),Oi.min=Is[ns],Oi.max=Is[is]}else Oi.show&&Oi.auto&&Wl(fr,Xi,Oi,vn[Wi],Oi.sorted);Oi.idxs[0]=ns,Oi.idxs[1]=is}else if(Wi>0&&Oi.show&&Oi.auto){let[qi,Xi]=Oi.facets,fr=qi.scale,mr=Xi.scale,[vr,br]=vn[Wi],_r=_i[fr],Kr=_i[mr];_r!=null&&Wl(_r,vi[fr],qi,vr,qi.sorted),Kr!=null&&Wl(Kr,vi[mr],Xi,br,Xi.sorted),Oi.min=Xi.min,Oi.max=Xi.max}});for(let Oi in _i){let Wi=_i[Oi],qi=vi[Oi];if(Wi.from==null&&(qi==null||qi.min==null)){let Xi=Wi.range(kn,Wi.min==ct$1?null:Wi.min,Wi.max==-ct$1?null:Wi.max,Oi);Wi.min=Xi[0],Wi.max=Xi[1]}}}for(let Oi in _i){let Wi=_i[Oi];if(Wi.from!=null){let qi=_i[Wi.from];if(qi.min==null)Wi.min=Wi.max=null;else{let Xi=Wi.range(kn,qi.min,qi.max,Oi);Wi.min=Xi[0],Wi.max=Xi[1]}}}let Mi={},Di=!1;for(let Oi in _i){let Wi=_i[Oi],qi=oi[Oi];if(qi.min!=Wi.min||qi.max!=Wi.max){qi.min=Wi.min,qi.max=Wi.max;let Xi=qi.distr;qi._min=Xi==3?Hi(qi.min):Xi==4?Cc(qi.min,qi.asinh):Xi==100?qi.fwd(qi.min):qi.min,qi._max=Xi==3?Hi(qi.max):Xi==4?Cc(qi.max,qi.asinh):Xi==100?qi.fwd(qi.max):qi.max,Mi[Oi]=Di=!0}}if(Di){mi.forEach((Oi,Wi)=>{qn==2?Wi>0&&Mi.y&&(Oi._paths=null):Mi[Oi.scale]&&(Oi._paths=null)});for(let Oi in Mi)Ho=!0,Qo("setScale",Oi);Ar.show&&Ar.left>=0&&(Rs=js=!0)}for(let Oi in vi)vi[Oi]=null}function cc(_i){let Mi=wu(ns-1,0,as-1),Di=wu(is+1,0,as-1);for(;_i[Mi]==null&&Mi>0;)Mi--;for(;_i[Di]==null&&Di<as-1;)Di++;return[Mi,Di]}function Xh(){as>0&&(mi.forEach((_i,Mi)=>{if(Mi>0&&_i.show&&(ed(Mi,!1),ed(Mi,!0),_i._paths==null)){ia!=_i.alpha&&(In.globalAlpha=ia=_i.alpha);let Di=qn==2?[0,vn[Mi][0].length-1]:cc(vn[Mi]);_i._paths=_i.paths(kn,Mi,Di[0],Di[1]),ia!=1&&(In.globalAlpha=ia=1)}}),mi.forEach((_i,Mi)=>{if(Mi>0&&_i.show){ia!=_i.alpha&&(In.globalAlpha=ia=_i.alpha),_i._paths!=null&&vh(Mi,!1);{let Di=_i._paths!=null?_i._paths.gaps:null,Oi=_i.points.show(kn,Mi,ns,is,Di),Wi=_i.points.filter(kn,Mi,Oi,Di);(Oi||Wi)&&(_i.points._paths=_i.points.paths(kn,Mi,ns,is,Wi),vh(Mi,!0))}ia!=1&&(In.globalAlpha=ia=1),Qo("drawSeries",Mi)}}))}function ed(_i,Mi){let Di=Mi?mi[_i].points:mi[_i];Di._stroke=Di.stroke(kn,_i),Di._fill=Di.fill(kn,_i)}function vh(_i,Mi){let Di=Mi?mi[_i].points:mi[_i],{stroke:Oi,fill:Wi,clip:qi,flags:Xi,_stroke:fr=Di._stroke,_fill:mr=Di._fill,_width:vr=Di.width}=Di._paths;vr=Ct$1(vr*dt$1,3);let br=null,_r=vr%2/2;Mi&&mr==null&&(mr=vr>0?"#fff":fr);let Kr=Di.pxAlign==1&&_r>0;if(Kr&&In.translate(_r,_r),!Mi){let Ro=qr-vr/2,to=$o-vr/2,Yr=ko+vr,Qr=oo+vr;br=new Path2D,br.rect(Ro,to,Yr,Qr)}Mi?yh(fr,vr,Di.dash,Di.cap,mr,Oi,Wi,Xi,qi):td(_i,fr,vr,Di.dash,Di.cap,mr,Oi,Wi,Xi,br,qi),Kr&&In.translate(-_r,-_r)}function td(_i,Mi,Di,Oi,Wi,qi,Xi,fr,mr,vr,br){let _r=!1;mr!=0&&ei.forEach((Kr,Ro)=>{if(Kr.series[0]==_i){let to=mi[Kr.series[1]],Yr=vn[Kr.series[1]],Qr=(to._paths||bs).band;ur(Qr)&&(Qr=Kr.dir==1?Qr[0]:Qr[1]);let Sr,Ao=null;to.show&&Qr&&A_(Yr,ns,is)?(Ao=Kr.fill(kn,Ro)||qi,Sr=to._paths.clip):Qr=null,yh(Mi,Di,Oi,Wi,Ao,Xi,fr,mr,vr,br,Sr,Qr),_r=!0}}),_r||yh(Mi,Di,Oi,Wi,qi,Xi,fr,mr,vr,br)}const Gu=vo|_u;function yh(_i,Mi,Di,Oi,Wi,qi,Xi,fr,mr,vr,br,_r){fh(_i,Mi,Di,Oi,Wi),(mr||vr||_r)&&(In.save(),mr&&In.clip(mr),vr&&In.clip(vr)),_r?(fr&Gu)==Gu?(In.clip(_r),br&&In.clip(br),Cl(Wi,Xi),jl(_i,qi,Mi)):fr&_u?(Cl(Wi,Xi),In.clip(_r),jl(_i,qi,Mi)):fr&vo&&(In.save(),In.clip(_r),br&&In.clip(br),Cl(Wi,Xi),In.restore(),jl(_i,qi,Mi)):(Cl(Wi,Xi),jl(_i,qi,Mi)),(mr||vr||_r)&&In.restore()}function jl(_i,Mi,Di){Di>0&&(Mi instanceof Map?Mi.forEach((Oi,Wi)=>{In.strokeStyle=oc=Wi,In.stroke(Oi)}):Mi!=null&&_i&&In.stroke(Mi))}function Cl(_i,Mi){Mi instanceof Map?Mi.forEach((Di,Oi)=>{In.fillStyle=Sl=Oi,In.fill(Di)}):Mi!=null&&_i&&In.fill(Mi)}function wh(_i,Mi,Di,Oi){let Wi=ci[_i],qi;if(Oi<=0)qi=[0,0];else{let Xi=Wi._space=Wi.space(kn,_i,Mi,Di,Oi),fr=Wi._incrs=Wi.incrs(kn,_i,Mi,Di,Oi,Xi);qi=KS(Mi,Di,fr,Oi,Xi)}return Wi._found=qi}function $a(_i,Mi,Di,Oi,Wi,qi,Xi,fr,mr,vr){let br=Xi%2/2;Zn==1&&In.translate(br,br),fh(fr,Xi,mr,vr,fr),In.beginPath();let _r,Kr,Ro,to,Yr=Wi+(Oi==0||Oi==3?-qi:qi);Di==0?(Kr=Wi,to=Yr):(_r=Wi,Ro=Yr);for(let Qr=0;Qr<_i.length;Qr++)Mi[Qr]!=null&&(Di==0?_r=Ro=_i[Qr]:Kr=to=_i[Qr],In.moveTo(_r,Kr),In.lineTo(Ro,to));In.stroke(),Zn==1&&In.translate(-br,-br)}function nd(_i){let Mi=!0;return ci.forEach((Di,Oi)=>{if(!Di.show)return;let Wi=oi[Di.scale];if(Wi.min==null){Di._show&&(Mi=!1,Di._show=!1,ll(!1));return}else Di._show||(Mi=!1,Di._show=!0,ll(!1));let qi=Di.side,Xi=qi%2,{min:fr,max:mr}=Wi,[vr,br]=wh(Oi,fr,mr,Xi==0?Mr:Vr);if(br==0)return;let _r=Wi.distr==2,Kr=Di._splits=Di.splits(kn,Oi,fr,mr,vr,br,_r),Ro=Wi.distr==2?Kr.map(Sr=>Is[Sr]):Kr,to=Wi.distr==2?Is[Kr[1]]-Is[Kr[0]]:vr,Yr=Di._values=Di.values(kn,Di.filter(kn,Ro,Oi,br,to),Oi,br,to);Di._rotate=qi==2?Di.rotate(kn,Yr,Oi,br):0;let Qr=Di._size;Di._size=ii(Di.size(kn,Yr,Oi,_i)),Qr!=null&&Di._size!=Qr&&(Mi=!1)}),Mi}function id(_i){let Mi=!0;return Zh.forEach((Di,Oi)=>{let Wi=Di(kn,Oi,al,_i);Wi!=ba[Oi]&&(Mi=!1),ba[Oi]=Wi}),Mi}function om(){for(let _i=0;_i<ci.length;_i++){let Mi=ci[_i];if(!Mi.show||!Mi._show)continue;let Di=Mi.side,Oi=Di%2,Wi,qi,Xi=Mi.stroke(kn,_i),fr=Di==0||Di==3?-1:1;if(Mi.label){let $s=Mi.labelGap*fr,Fs=sn$1((Mi._lpos+$s)*dt$1);mh(Mi.labelFont[0],Xi,"center",Di==2?ds:hf),In.save(),Oi==1?(Wi=qi=0,In.translate(Fs,sn$1($o+oo/2)),In.rotate((Di==3?-Fa:Fa)/2)):(Wi=sn$1(qr+ko/2),qi=Fs),In.fillText(Mi.label,Wi,qi),In.restore()}let[mr,vr]=Mi._found;if(vr==0)continue;let br=oi[Mi.scale],_r=Oi==0?ko:oo,Kr=Oi==0?qr:$o,Ro=sn$1(Mi.gap*dt$1),to=Mi._splits,Yr=br.distr==2?to.map($s=>Is[$s]):to,Qr=br.distr==2?Is[to[1]]-Is[to[0]]:mr,Sr=Mi.ticks,Ao=Mi.border,Yo=Sr.show?sn$1(Sr.size*dt$1):0,jo=Mi._rotate*-Fa/180,Bo=Jn(Mi._pos*dt$1),Vo=(Yo+Ro)*fr,ji=Bo+Vo;qi=Oi==0?ji:0,Wi=Oi==1?ji:0;let Qi=Mi.font[0],Ki=Mi.align==1?co:Mi.align==2?Sc:jo>0?co:jo<0?Sc:Oi==0?"center":Di==3?Sc:co,wr=jo||Oi==1?"middle":Di==2?ds:hf;mh(Qi,Xi,Ki,wr);let Tr=Mi.font[1]*Mi.lineGap,Zr=to.map($s=>Jn(zn($s,br,_r,Kr))),Eo=Mi._values;for(let $s=0;$s<Eo.length;$s++){let Fs=Eo[$s];if(Fs!=null){Oi==0?Wi=Zr[$s]:qi=Zr[$s],Fs=""+Fs;let Cs=Fs.indexOf(`
1408
+ `)==-1?[Fs]:Fs.split(/\n/gm);for(let Js=0;Js<Cs.length;Js++){let Ys=Cs[Js];jo?(In.save(),In.translate(Wi,qi+Js*Tr),In.rotate(jo),In.fillText(Ys,0,0),In.restore()):In.fillText(Ys,Wi,qi+Js*Tr)}}}Sr.show&&$a(Zr,Sr.filter(kn,Yr,_i,vr,Qr),Oi,Di,Bo,Yo,Ct$1(Sr.width*dt$1,3),Sr.stroke(kn,_i),Sr.dash,Sr.cap);let Jr=Mi.grid;Jr.show&&$a(Zr,Jr.filter(kn,Yr,_i,vr,Qr),Oi,Oi==0?2:1,Oi==0?$o:qr,Oi==0?oo:ko,Ct$1(Jr.width*dt$1,3),Jr.stroke(kn,_i),Jr.dash,Jr.cap),Ao.show&&$a([Bo],[1],Oi==0?1:0,Oi==0?1:2,Oi==1?$o:qr,Oi==1?oo:ko,Ct$1(Ao.width*dt$1,3),Ao.stroke(kn,_i),Ao.dash,Ao.cap)}Qo("drawAxes")}function ll(_i){mi.forEach((Mi,Di)=>{Di>0&&(Mi._paths=null,_i&&(qn==1?(Mi.min=null,Mi.max=null):Mi.facets.forEach(Oi=>{Oi.min=null,Oi.max=null})))})}let Ul=!1,Yu=!1,Tl=[];function sm(){Yu=!1;for(let _i=0;_i<Tl.length;_i++)Qo(...Tl[_i]);Tl.length=0}function Ml(){Ul||(B_(bh),Ul=!0)}function am(_i,Mi=!1){Ul=!0,Yu=Mi,_i(kn),bh(),Mi&&Tl.length>0&&queueMicrotask(sm)}kn.batch=am;function bh(){if(so&&(Jh(),so=!1),Ho&&(Jg(),Ho=!1),eo){if(Lt$1(Ln,co,Zo),Lt$1(Ln,ds,Hr),Lt$1(Ln,ms,Mr),Lt$1(Ln,vs,Vr),Lt$1(Pn,co,Zo),Lt$1(Pn,ds,Hr),Lt$1(Pn,ms,Mr),Lt$1(Pn,vs,Vr),Lt$1(Bn,ms,ss),Lt$1(Bn,vs,Ko),Dn.width=sn$1(ss*dt$1),Dn.height=sn$1(Ko*dt$1),ci.forEach(({_el:_i,_show:Mi,_size:Di,_pos:Oi,side:Wi})=>{if(_i!=null)if(Mi){let qi=Wi===3||Wi===0?Di:0,Xi=Wi%2==1;Lt$1(_i,Xi?"left":"top",Oi-qi),Lt$1(_i,Xi?"width":"height",Di),Lt$1(_i,Xi?"top":"left",Xi?Hr:Zo),Lt$1(_i,Xi?"height":"width",Xi?Vr:Mr),vu(_i,Ir)}else Un(_i,Ir)}),oc=Sl=sc=lc=hh=dh=ph=gh=ac=null,ia=1,Yl(!0),Zo!=Ji||Hr!=xr||Mr!=kr||Vr!=Gr){ll(!1);let _i=Mr/kr,Mi=Vr/Gr;if(Ar.show&&!Rs&&Ar.left>=0){Ar.left*=_i,Ar.top*=Mi,Al&&Ci(Al,sn$1(Ar.left),0,Mr,Vr),xa&&Ci(xa,0,sn$1(Ar.top),Mr,Vr);for(let Di=0;Di<Ns.length;Di++){let Oi=Ns[Di];Oi!=null&&(xl[Di]*=_i,_l[Di]*=Mi,Ci(Oi,ii(xl[Di]),ii(_l[Di]),Mr,Vr))}}if(Oo.show&&!ol&&Oo.left>=0&&Oo.width>0){Oo.left*=_i,Oo.width*=_i,Oo.top*=Mi,Oo.height*=Mi;for(let Di in Ch)Lt$1(cl,Di,Oo[Di])}Ji=Zo,xr=Hr,kr=Mr,Gr=Vr}Qo("setSize"),eo=!1}ss>0&&Ko>0&&(In.clearRect(0,0,Dn.width,Dn.height),Qo("drawClear"),yi.forEach(_i=>_i()),Qo("draw")),Oo.show&&ol&&(qu(Oo),ol=!1),Ar.show&&Rs&&(Ds(null,!0,!1),Rs=!1),Fi.show&&Fi.live&&js&&(Gl(),js=!1),Wn||(Wn=!0,kn.status=1,Qo("ready")),zl=!1,Ul=!1}kn.redraw=(_i,Mi)=>{Ho=Mi||!1,_i!==!1?ra(fi,$i.min,$i.max):Ml()};function $h(_i,Mi){let Di=oi[_i];if(Di.from==null){if(as==0){let Oi=Di.range(kn,Mi.min,Mi.max,_i);Mi.min=Oi[0],Mi.max=Oi[1]}if(Mi.min>Mi.max){let Oi=Mi.min;Mi.min=Mi.max,Mi.max=Oi}if(as>1&&Mi.min!=null&&Mi.max!=null&&Mi.max-Mi.min<1e-16)return;_i==fi&&Di.distr==2&&as>0&&(Mi.min=hi(Mi.min,vn[0]),Mi.max=hi(Mi.max,vn[0]),Mi.min==Mi.max&&Mi.max++),vi[_i]=Mi,so=!0,Ml()}}kn.setScale=$h;let xh,_h,Al,xa,rd,od,El,Ll,sd,Io,Br,Fo,_a=!1;const ls=Ar.drag;let rs=ls.x,os=ls.y;Ar.show&&(Ar.x&&(xh=ni(u_,Pn)),Ar.y&&(_h=ni(h_,Pn)),$i.ori==0?(Al=xh,xa=_h):(Al=_h,xa=xh),Br=Ar.left,Fo=Ar.top);const Oo=kn.select=Zt$1({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),cl=Oo.show?ni(c_,Oo.over?Pn:Ln):null;function qu(_i,Mi){if(Oo.show){for(let Di in _i)Oo[Di]=_i[Di],Di in Ch&&Lt$1(cl,Di,_i[Di]);Mi!==!1&&Qo("setSelect")}}kn.setSelect=qu;function cs(_i,Mi){let Di=mi[_i],Oi=Ii?lr[_i]:null;if(Di.show)Oi&&vu(Oi,Ir);else{Oi&&Un(Oi,Ir);let Wi=$l?Ns[0]:Ns[_i];Ci(Wi,-10,-10,Mr,Vr)}}function ra(_i,Mi,Di){$h(_i,{min:Mi,max:Di})}function As(_i,Mi,Di,Oi){Mi.focus!=null&&cd(_i),Mi.show!=null&&mi.forEach((Wi,qi)=>{qi>0&&(_i==qi||_i==null)&&(Wi.show=Mi.show,cs(qi,Mi.show),qn==2?(ra(Wi.facets[0].scale,null,null),ra(Wi.facets[1].scale,null,null)):ra(Wi.scale,null,null),Ml())}),Di!==!1&&Qo("setSeries",_i,Mi),Oi&&pa("setSeries",kn,_i,Mi)}kn.setSeries=As;function ad(_i,Mi){Zt$1(ei[_i],Mi)}function kh(_i,Mi){_i.fill=lt$1(_i.fill||null),_i.dir=ht$1(_i.dir,-1),Mi=Mi??ei.length,ei.splice(Mi,0,_i)}function Us(_i){_i==null?ei.length=0:ei.splice(_i,1)}kn.addBand=kh,kn.setBand=ad,kn.delBand=Us;function ld(_i,Mi){mi[_i].alpha=Mi,Ar.show&&Ns[_i]&&(Ns[_i].style.opacity=Mi),Ii&&lr[_i]&&(lr[_i].style.opacity=Mi)}let oa,da,ka;const ul={focus:!0};function cd(_i){if(_i!=ka){let Mi=_i==null,Di=ya.alpha!=1;mi.forEach((Oi,Wi)=>{if(qn==1||Wi>0){let qi=Mi||Wi==0||Wi==_i;Oi._focus=Mi?null:qi,Di&&ld(Wi,qi?1:ya.alpha)}}),ka=_i,Di&&Ml()}}Ii&&wa&&Uo(mf,Gi,_i=>{Ar._lock||(sl(_i),ka!=null&&As(null,ul,!0,Go.setSeries))});function Wo(_i,Mi,Di){let Oi=oi[Mi];Di&&(_i=_i/dt$1-(Oi.ori==1?Hr:Zo));let Wi=Mr;Oi.ori==1&&(Wi=Vr,_i=Wi-_i),Oi.dir==-1&&(_i=Wi-_i);let qi=Oi._min,Xi=Oi._max,fr=_i/Wi,mr=qi+(Xi-qi)*fr,vr=Oi.distr;return vr==3?po(10,mr):vr==4?T_(mr,Oi.asinh):vr==100?Oi.bwd(mr):mr}function lm(_i,Mi){let Di=Wo(_i,fi,Mi);return hi(Di,vn[0],ns,is)}kn.valToIdx=_i=>hi(_i,vn[0]),kn.posToIdx=lm,kn.posToVal=Wo,kn.valToPos=(_i,Mi,Di)=>oi[Mi].ori==0?Kn(_i,oi[Mi],Di?ko:Mr,Di?qr:0):Qn(_i,oi[Mi],Di?oo:Vr,Di?$o:0),kn.setCursor=(_i,Mi,Di)=>{Br=_i.left,Fo=_i.top,Ds(null,Mi,Di)};function Ps(_i,Mi){Lt$1(cl,co,Oo.left=_i),Lt$1(cl,ms,Oo.width=Mi)}function ud(_i,Mi){Lt$1(cl,ds,Oo.top=_i),Lt$1(cl,vs,Oo.height=Mi)}let Rl=$i.ori==0?Ps:ud,Gs=$i.ori==1?Ps:ud;function Ku(){if(Ii&&Fi.live)for(let _i=qn==2?1:0;_i<mi.length;_i++){if(_i==0&&yr)continue;let Mi=Fi.values[_i],Di=0;for(let Oi in Mi)gr[_i][Di++].firstChild.nodeValue=Mi[Oi]}}function Gl(_i,Mi){if(_i!=null&&(_i.idxs?_i.idxs.forEach((Di,Oi)=>{Ni[Oi]=Di}):E_(_i.idx)||Ni.fill(_i.idx),Fi.idx=Ni[0]),Ii&&Fi.live){for(let Di=0;Di<mi.length;Di++)(Di>0||qn==1&&!yr)&&zo(Di,Ni[Di]);Ku()}js=!1,Mi!==!1&&Qo("setLegend")}kn.setLegend=Gl;function zo(_i,Mi){let Di=mi[_i],Oi=_i==0&&si==2?Is:vn[_i],Wi;yr?Wi=Di.values(kn,_i,Mi)??io:(Wi=Di.value(kn,Mi==null?null:Oi[Mi],_i,Mi),Wi=Wi==null?io:{_:Wi}),Fi.values[_i]=Wi}function Ds(_i,Mi,Di){sd=Br,Io=Fo,[Br,Fo]=Ar.move(kn,Br,Fo),Ar.left=Br,Ar.top=Fo,Ar.show&&(Al&&Ci(Al,sn$1(Br),0,Mr,Vr),xa&&Ci(xa,0,sn$1(Fo),Mr,Vr));let Oi,Wi=ns>is;oa=ct$1,da=null;let qi=$i.ori==0?Mr:Vr,Xi=$i.ori==1?Mr:Vr;if(Br<0||as==0||Wi){Oi=Ar.idx=null;for(let fr=0;fr<mi.length;fr++){let mr=Ns[fr];mr!=null&&Ci(mr,-10,-10,Mr,Vr)}wa&&As(null,ul,!0,_i==null&&Go.setSeries),Fi.live&&(Ni.fill(Oi),js=!0)}else{let fr,mr,vr;qn==1&&(fr=$i.ori==0?Br:Fo,mr=Wo(fr,fi),Oi=Ar.idx=hi(mr,vn[0],ns,is),vr=ti(vn[0][Oi],$i,qi,0));let br=-10,_r=-10,Kr=0,Ro=0,to=!0,Yr="",Qr="";for(let Sr=qn==2?1:0;Sr<mi.length;Sr++){let Ao=mi[Sr],Yo=Ni[Sr],jo=Yo==null?null:qn==1?vn[Sr][Yo]:vn[Sr][1][Yo],Bo=Ar.dataIdx(kn,Sr,Oi,mr),Vo=Bo==null?null:qn==1?vn[Sr][Bo]:vn[Sr][1][Bo];js=js||Vo!=jo||Bo!=Yo,Ni[Sr]=Bo;let ji=Bo==Oi?vr:ti(qn==1?vn[0][Bo]:vn[Sr][0][Bo],$i,qi,0);if(Sr>0&&Ao.show){let Qi=Vo==null?-10:ai(Vo,qn==1?oi[Ao.scale]:oi[Ao.facets[1].scale],Xi,0);if(wa&&Vo!=null){let Ki=$i.ori==1?Br:Fo,wr=an$1(ya.dist(kn,Sr,Bo,Qi,Ki));if(wr<oa){let Tr=ya.bias;if(Tr!=0){let Zr=Wo(Ki,Ao.scale),Eo=Vo>=0?1:-1,Jr=Zr>=0?1:-1;Jr==Eo&&(Jr==1?Tr==1?Vo>=Zr:Vo<=Zr:Tr==1?Vo<=Zr:Vo>=Zr)&&(oa=wr,da=Sr)}else oa=wr,da=Sr}}if(js||$l){let Ki,wr;$i.ori==0?(Ki=ji,wr=Qi):(Ki=Qi,wr=ji);let Tr,Zr,Eo,Jr,$s,Fs,Cs=!0,Js=Ms.bbox;if(Js!=null){Cs=!1;let Ys=Js(kn,Sr);Eo=Ys.left,Jr=Ys.top,Tr=Ys.width,Zr=Ys.height}else Eo=Ki,Jr=wr,Tr=Zr=Ms.size(kn,Sr);if(Fs=Ms.fill(kn,Sr),$s=Ms.stroke(kn,Sr),$l)Sr==da&&oa<=ya.prox&&(br=Eo,_r=Jr,Kr=Tr,Ro=Zr,to=Cs,Yr=Fs,Qr=$s);else{let Ys=Ns[Sr];Ys!=null&&(xl[Sr]=Eo,_l[Sr]=Jr,Sf(Ys,Tr,Zr,Cs),xf(Ys,Fs,$s),Ci(Ys,ii(Eo),ii(Jr),Mr,Vr))}}}}if($l){let Sr=ya.prox,Ao=ka==null?oa<=Sr:oa>Sr||da!=ka;if(js||Ao){let Yo=Ns[0];xl[0]=br,_l[0]=_r,Sf(Yo,Kr,Ro,to),xf(Yo,Yr,Qr),Ci(Yo,ii(br),ii(_r),Mr,Vr)}}}if(Oo.show&&_a)if(_i!=null){let[fr,mr]=Go.scales,[vr,br]=Go.match,[_r,Kr]=_i.cursor.sync.scales,Ro=_i.cursor.drag;if(rs=Ro._x,os=Ro._y,rs||os){let{left:to,top:Yr,width:Qr,height:Sr}=_i.select,Ao=_i.scales[_r].ori,Yo=_i.posToVal,jo,Bo,Vo,ji,Qi,Ki=fr!=null&&vr(fr,_r),wr=mr!=null&&br(mr,Kr);Ki&&rs?(Ao==0?(jo=to,Bo=Qr):(jo=Yr,Bo=Sr),Vo=oi[fr],ji=ti(Yo(jo,_r),Vo,qi,0),Qi=ti(Yo(jo+Bo,_r),Vo,qi,0),Rl(ri(ji,Qi),an$1(Qi-ji))):Rl(0,qi),wr&&os?(Ao==1?(jo=to,Bo=Qr):(jo=Yr,Bo=Sr),Vo=oi[mr],ji=ai(Yo(jo,Kr),Vo,Xi,0),Qi=ai(Yo(jo+Bo,Kr),Vo,Xi,0),Gs(ri(ji,Qi),an$1(Qi-ji))):Gs(0,Xi)}else Qu()}else{let fr=an$1(sd-rd),mr=an$1(Io-od);if($i.ori==1){let Kr=fr;fr=mr,mr=Kr}rs=ls.x&&fr>=ls.dist,os=ls.y&&mr>=ls.dist;let vr=ls.uni;vr!=null?rs&&os&&(rs=fr>=vr,os=mr>=vr,!rs&&!os&&(mr>fr?os=!0:rs=!0)):ls.x&&ls.y&&(rs||os)&&(rs=os=!0);let br,_r;rs&&($i.ori==0?(br=El,_r=Br):(br=Ll,_r=Fo),Rl(ri(br,_r),an$1(_r-br)),os||Gs(0,Xi)),os&&($i.ori==1?(br=El,_r=Br):(br=Ll,_r=Fo),Gs(ri(br,_r),an$1(_r-br)),rs||Rl(0,qi)),!rs&&!os&&(Rl(0,0),Gs(0,0))}if(ls._x=rs,ls._y=os,_i==null){if(Di){if(Os!=null){let[fr,mr]=Go.scales;Go.values[0]=fr!=null?Wo($i.ori==0?Br:Fo,fr):null,Go.values[1]=mr!=null?Wo($i.ori==1?Br:Fo,mr):null}pa(ff,kn,Br,Fo,Mr,Vr,Oi)}if(wa){let fr=Di&&Go.setSeries,mr=ya.prox;ka==null?oa<=mr&&As(da,ul,!0,fr):oa>mr?As(null,ul,!0,fr):da!=ka&&As(da,ul,!0,fr)}}js&&(Fi.idx=Oi,Gl()),Mi!==!1&&Qo("setCursor")}let sa=null;Object.defineProperty(kn,"rect",{get(){return sa==null&&Yl(!1),sa}});function Yl(_i=!1){_i?sa=null:(sa=Pn.getBoundingClientRect(),Qo("syncRect",sa))}function Zu(_i,Mi,Di,Oi,Wi,qi,Xi){Ar._lock||_a&&_i!=null&&_i.movementX==0&&_i.movementY==0||(Sh(_i,Mi,Di,Oi,Wi,qi,Xi,!1,_i!=null),_i!=null?Ds(null,!0,!0):Ds(Mi,!0,!1))}function Sh(_i,Mi,Di,Oi,Wi,qi,Xi,fr,mr){if(sa==null&&Yl(!1),sl(_i),_i!=null)Di=_i.clientX-sa.left,Oi=_i.clientY-sa.top;else{if(Di<0||Oi<0){Br=-10,Fo=-10;return}let[vr,br]=Go.scales,_r=Mi.cursor.sync,[Kr,Ro]=_r.values,[to,Yr]=_r.scales,[Qr,Sr]=Go.match,Ao=Mi.axes[0].side%2==1,Yo=$i.ori==0?Mr:Vr,jo=$i.ori==1?Mr:Vr,Bo=Ao?qi:Wi,Vo=Ao?Wi:qi,ji=Ao?Oi:Di,Qi=Ao?Di:Oi;if(to!=null?Di=Qr(vr,to)?zn(Kr,oi[vr],Yo,0):-10:Di=Yo*(ji/Bo),Yr!=null?Oi=Sr(br,Yr)?zn(Ro,oi[br],jo,0):-10:Oi=jo*(Qi/Vo),$i.ori==1){let Ki=Di;Di=Oi,Oi=Ki}}mr&&((Di<=1||Di>=Mr-1)&&(Di=Rr(Di,Mr)),(Oi<=1||Oi>=Vr-1)&&(Oi=Rr(Oi,Vr))),fr?(rd=Di,od=Oi,[El,Ll]=Ar.move(kn,Di,Oi)):(Br=Di,Fo=Oi)}const Ch={width:0,height:0,left:0,top:0};function Qu(){qu(Ch,!1)}let Th,ql,hl,hd;function Mh(_i,Mi,Di,Oi,Wi,qi,Xi){_a=!0,rs=os=ls._x=ls._y=!1,Sh(_i,Mi,Di,Oi,Wi,qi,Xi,!0,!1),_i!=null&&(Uo(kc,gu,Ah,!1),pa(pf,kn,El,Ll,Mr,Vr,null));let{left:fr,top:mr,width:vr,height:br}=Oo;Th=fr,ql=mr,hl=vr,hd=br,Qu()}function Ah(_i,Mi,Di,Oi,Wi,qi,Xi){_a=ls._x=ls._y=!1,Sh(_i,Mi,Di,Oi,Wi,qi,Xi,!1,!0);let{left:fr,top:mr,width:vr,height:br}=Oo,_r=vr>0||br>0,Kr=Th!=fr||ql!=mr||hl!=vr||hd!=br;if(_r&&Kr&&qu(Oo),ls.setScale&&_r&&Kr){let Ro=fr,to=vr,Yr=mr,Qr=br;if($i.ori==1&&(Ro=mr,to=br,Yr=fr,Qr=vr),rs&&ra(fi,Wo(Ro,fi),Wo(Ro+to,fi)),os)for(let Sr in oi){let Ao=oi[Sr];Sr!=fi&&Ao.from==null&&Ao.min!=ct$1&&ra(Sr,Wo(Yr+Qr,Sr),Wo(Yr,Sr))}Qu()}else Ar.lock&&(Ar._lock=!Ar._lock,Ds(null,!0,!1));_i!=null&&(va(kc,gu),pa(kc,kn,Br,Fo,Mr,Vr,null))}function Eh(_i,Mi,Di,Oi,Wi,qi,Xi){if(Ar._lock)return;sl(_i);let fr=_a;if(_a){let mr=!0,vr=!0,br=10,_r,Kr;$i.ori==0?(_r=rs,Kr=os):(_r=os,Kr=rs),_r&&Kr&&(mr=Br<=br||Br>=Mr-br,vr=Fo<=br||Fo>=Vr-br),_r&&mr&&(Br=Br<El?0:Mr),Kr&&vr&&(Fo=Fo<Ll?0:Vr),Ds(null,!0,!0),_a=!1}Br=-10,Fo=-10,Ds(null,!0,!0),fr&&(_a=fr)}function Ju(_i,Mi,Di,Oi,Wi,qi,Xi){Ar._lock||(sl(_i),uh(),Qu(),_i!=null&&pa(vf,kn,Br,Fo,Mr,Vr,null))}function Lh(){ci.forEach(qS),lh(kn.width,kn.height,!0)}Nr(Ba,ho,Lh);const Nl={};Nl.mousedown=Mh,Nl.mousemove=Zu,Nl.mouseup=Ah,Nl.dblclick=Ju,Nl.setSeries=(_i,Mi,Di,Oi)=>{let Wi=Go.match[2];Di=Wi(kn,Mi,Di),Di!=-1&&As(Di,Oi,!0,!1)},Ar.show&&(Uo(pf,Pn,Mh),Uo(ff,Pn,Zu),Uo(gf,Pn,_i=>{sl(_i),Yl(!1)}),Uo(mf,Pn,Eh),Uo(vf,Pn,Ju),Su.add(kn),kn.syncRect=Yl);const Il=kn.hooks=e.hooks||{};function Qo(_i,Mi,Di){Yu?Tl.push([_i,Mi,Di]):_i in Il&&Il[_i].forEach(Oi=>{Oi.call(null,kn,Mi,Di)})}(e.plugins||[]).forEach(_i=>{for(let Mi in _i.hooks)Il[Mi]=(Il[Mi]||[]).concat(_i.hooks[Mi])});const dd=(_i,Mi,Di)=>Di,Go=Zt$1({key:null,setSeries:!1,filters:{pub:Tf,sub:Tf},scales:[fi,mi[1]?mi[1].scale:null],match:[Mf,Mf,dd],values:[null,null]},Ar.sync);Go.match.length==2&&Go.match.push(dd),Ar.sync=Go;const Os=Go.key,Kl=kg(Os);function pa(_i,Mi,Di,Oi,Wi,qi,Xi){Go.filters.pub(_i,Mi,Di,Oi,Wi,qi,Xi)&&Kl.pub(_i,Mi,Di,Oi,Wi,qi,Xi)}Kl.sub(kn);function pd(_i,Mi,Di,Oi,Wi,qi,Xi){Go.filters.sub(_i,Mi,Di,Oi,Wi,qi,Xi)&&Nl[_i](null,Mi,Di,Oi,Wi,qi,Xi)}kn.pub=pd;function gd(){Kl.unsub(kn),Su.delete(kn),Do.clear(),yu(Ba,ho,Lh),Nn.remove(),Gi==null||Gi.remove(),Qo("destroy")}kn.destroy=gd;function Rh(){Qo("init",e,vn),Hl(vn||e.data,!1),vi[fi]?$h(fi,vi[fi]):uh(),ol=Oo.show&&(Oo.width>0||Oo.height>0),Rs=js=!0,lh(e.width,e.height)}return mi.forEach(Kh),ci.forEach(rm),_n?_n instanceof HTMLElement?(_n.appendChild(Nn),Rh()):_n(kn,Rh):Rh(),kn}$n.assign=Zt$1,$n.fmtNum=Nu,$n.rangeNum=za,$n.rangeLog=Qa,$n.rangeAsinh=Ou,$n.orient=Pr,$n.pxRatio=dt$1,$n.join=P_,$n.fmtDate=Wu,$n.tzDate=Z_,$n.sync=kg;{$n.addGap=ES,$n.clipGaps=el;let e=$n.paths={points:Lg};e.linear=Eg,e.stepped=DS,e.bars=NS,e.spline=WS}var Mc,Qf;function YS(){return Qf||(Qf=1,Mc=function(e,vn,_n,kn,qn){var Hn,Kn;if(kn===void 0)kn=0;else if(kn=kn|0,kn<0||kn>=e.length)throw new RangeError("invalid lower bound");if(qn===void 0)qn=e.length-1;else if(qn=qn|0,qn<kn||qn>=e.length)throw new RangeError("invalid upper bound");for(;kn<=qn;)if(Hn=kn+(qn-kn>>>1),Kn=+_n(e[Hn],vn,Hn,e),Kn<0)kn=Hn+1;else if(Kn>0)qn=Hn-1;else return Hn;return~kn}),Mc}var ZS=YS();const Bk=Ua(ZS);var Lc,Xf;function QS(){if(Xf)return Lc;Xf=1;function e(vn,_n,kn){var qn=-1,Hn=vn.length;_n<0&&(_n=-_n>Hn?0:Hn+_n),kn=kn>Hn?Hn:kn,kn<0&&(kn+=Hn),Hn=_n>kn?0:kn-_n>>>0,_n>>>=0;for(var Kn=Array(Hn);++qn<Hn;)Kn[qn]=vn[qn+_n];return Kn}return Lc=e,Lc}var Rc,Jf;function XS(){if(Jf)return Rc;Jf=1;var e=QS();function vn(_n,kn,qn){var Hn=_n.length;return qn=qn===void 0?Hn:qn,!kn&&qn>=Hn?_n:e(_n,kn,qn)}return Rc=vn,Rc}var Ec,ep;function Ng(){if(ep)return Ec;ep=1;var e="\\ud800-\\udfff",vn="\\u0300-\\u036f",_n="\\ufe20-\\ufe2f",kn="\\u20d0-\\u20ff",qn=vn+_n+kn,Hn="\\ufe0e\\ufe0f",Kn="\\u200d",Qn=RegExp("["+Kn+e+qn+Hn+"]");function zn(Wn){return Qn.test(Wn)}return Ec=zn,Ec}var Ic,tp;function JS(){if(tp)return Ic;tp=1;function e(vn){return vn.split("")}return Ic=e,Ic}var Oc,np;function ek(){if(np)return Oc;np=1;var e="\\ud800-\\udfff",vn="\\u0300-\\u036f",_n="\\ufe20-\\ufe2f",kn="\\u20d0-\\u20ff",qn=vn+_n+kn,Hn="\\ufe0e\\ufe0f",Kn="["+e+"]",Qn="["+qn+"]",zn="\\ud83c[\\udffb-\\udfff]",Wn="(?:"+Qn+"|"+zn+")",Nn="[^"+e+"]",Dn="(?:\\ud83c[\\udde6-\\uddff]){2}",In="[\\ud800-\\udbff][\\udc00-\\udfff]",Bn="\\u200d",Ln=Wn+"?",Pn="["+Hn+"]?",Zn="(?:"+Bn+"(?:"+[Nn,Dn,In].join("|")+")"+Pn+Ln+")*",Jn=Pn+Ln+Zn,Xn="(?:"+[Nn+Qn+"?",Qn,Dn,In,Kn].join("|")+")",mi=RegExp(zn+"(?="+zn+")|"+Xn+Jn,"g");function ci(oi){return oi.match(mi)||[]}return Oc=ci,Oc}var Dc,ip;function tk(){if(ip)return Dc;ip=1;var e=JS(),vn=Ng(),_n=ek();function kn(qn){return vn(qn)?_n(qn):e(qn)}return Dc=kn,Dc}var Nc,rp;function nk(){if(rp)return Nc;rp=1;var e=typeof hr=="object"&&hr&&hr.Object===Object&&hr;return Nc=e,Nc}var Fc,op;function ik(){if(op)return Fc;op=1;var e=nk(),vn=typeof self=="object"&&self&&self.Object===Object&&self,_n=e||vn||Function("return this")();return Fc=_n,Fc}var Wc,sp;function ju(){if(sp)return Wc;sp=1;var e=ik(),vn=e.Symbol;return Wc=vn,Wc}var Pc,ap;function rk(){if(ap)return Pc;ap=1;function e(vn,_n){for(var kn=-1,qn=vn==null?0:vn.length,Hn=Array(qn);++kn<qn;)Hn[kn]=_n(vn[kn],kn,vn);return Hn}return Pc=e,Pc}var Bc,lp;function ok(){if(lp)return Bc;lp=1;var e=Array.isArray;return Bc=e,Bc}var zc,cp;function sk(){if(cp)return zc;cp=1;var e=ju(),vn=Object.prototype,_n=vn.hasOwnProperty,kn=vn.toString,qn=e?e.toStringTag:void 0;function Hn(Kn){var Qn=_n.call(Kn,qn),zn=Kn[qn];try{Kn[qn]=void 0;var Wn=!0}catch{}var Nn=kn.call(Kn);return Wn&&(Qn?Kn[qn]=zn:delete Kn[qn]),Nn}return zc=Hn,zc}var Hc,up;function ak(){if(up)return Hc;up=1;var e=Object.prototype,vn=e.toString;function _n(kn){return vn.call(kn)}return Hc=_n,Hc}var Uc,hp;function lk(){if(hp)return Uc;hp=1;var e=ju(),vn=sk(),_n=ak(),kn="[object Null]",qn="[object Undefined]",Hn=e?e.toStringTag:void 0;function Kn(Qn){return Qn==null?Qn===void 0?qn:kn:Hn&&Hn in Object(Qn)?vn(Qn):_n(Qn)}return Uc=Kn,Uc}var Vc,dp;function ck(){if(dp)return Vc;dp=1;function e(vn){return vn!=null&&typeof vn=="object"}return Vc=e,Vc}var jc,fp;function uk(){if(fp)return jc;fp=1;var e=lk(),vn=ck(),_n="[object Symbol]";function kn(qn){return typeof qn=="symbol"||vn(qn)&&e(qn)==_n}return jc=kn,jc}var Gc,pp;function hk(){if(pp)return Gc;pp=1;var e=ju(),vn=rk(),_n=ok(),kn=uk(),qn=1/0,Hn=e?e.prototype:void 0,Kn=Hn?Hn.toString:void 0;function Qn(zn){if(typeof zn=="string")return zn;if(_n(zn))return vn(zn,Qn)+"";if(kn(zn))return Kn?Kn.call(zn):"";var Wn=zn+"";return Wn=="0"&&1/zn==-qn?"-0":Wn}return Gc=Qn,Gc}var Kc,gp;function rl(){if(gp)return Kc;gp=1;var e=hk();function vn(_n){return _n==null?"":e(_n)}return Kc=vn,Kc}var qc,mp;function dk(){if(mp)return qc;mp=1;var e=XS(),vn=Ng(),_n=tk(),kn=rl();function qn(Hn){return function(Kn){Kn=kn(Kn);var Qn=vn(Kn)?_n(Kn):void 0,zn=Qn?Qn[0]:Kn.charAt(0),Wn=Qn?e(Qn,1).join(""):Kn.slice(1);return zn[Hn]()+Wn}}return qc=qn,qc}var Yc,vp;function Fg(){if(vp)return Yc;vp=1;var e=dk(),vn=e("toUpperCase");return Yc=vn,Yc}var fk=Fg();const pk=Ua(fk);var Zc,yp;function gk(){if(yp)return Zc;yp=1;var e=rl(),vn=Fg();function _n(kn){return vn(e(kn).toLowerCase())}return Zc=_n,Zc}var Qc,wp;function mk(){if(wp)return Qc;wp=1;function e(vn,_n,kn,qn){var Hn=-1,Kn=vn==null?0:vn.length;for(qn&&Kn&&(kn=vn[++Hn]);++Hn<Kn;)kn=_n(kn,vn[Hn],Hn,vn);return kn}return Qc=e,Qc}var Xc,bp;function vk(){if(bp)return Xc;bp=1;function e(vn){return function(_n){return vn==null?void 0:vn[_n]}}return Xc=e,Xc}var Jc,xp;function yk(){if(xp)return Jc;xp=1;var e=vk(),vn={À:"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"},_n=e(vn);return Jc=_n,Jc}var eu,_p;function wk(){if(_p)return eu;_p=1;var e=yk(),vn=rl(),_n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kn="\\u0300-\\u036f",qn="\\ufe20-\\ufe2f",Hn="\\u20d0-\\u20ff",Kn=kn+qn+Hn,Qn="["+Kn+"]",zn=RegExp(Qn,"g");function Wn(Nn){return Nn=vn(Nn),Nn&&Nn.replace(_n,e).replace(zn,"")}return eu=Wn,eu}var tu,Sp;function bk(){if(Sp)return tu;Sp=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function vn(_n){return _n.match(e)||[]}return tu=vn,tu}var nu,kp;function xk(){if(kp)return nu;kp=1;var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function vn(_n){return e.test(_n)}return nu=vn,nu}var iu,Cp;function _k(){if(Cp)return iu;Cp=1;var e="\\ud800-\\udfff",vn="\\u0300-\\u036f",_n="\\ufe20-\\ufe2f",kn="\\u20d0-\\u20ff",qn=vn+_n+kn,Hn="\\u2700-\\u27bf",Kn="a-z\\xdf-\\xf6\\xf8-\\xff",Qn="\\xac\\xb1\\xd7\\xf7",zn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Wn="\\u2000-\\u206f",Nn=" \\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",Dn="A-Z\\xc0-\\xd6\\xd8-\\xde",In="\\ufe0e\\ufe0f",Bn=Qn+zn+Wn+Nn,Ln="['’]",Pn="["+Bn+"]",Zn="["+qn+"]",Jn="\\d+",Xn="["+Hn+"]",mi="["+Kn+"]",ci="[^"+e+Bn+Jn+Hn+Kn+Dn+"]",oi="\\ud83c[\\udffb-\\udfff]",ei="(?:"+Zn+"|"+oi+")",fi="[^"+e+"]",gi="(?:\\ud83c[\\udde6-\\uddff]){2}",yi="[\\ud800-\\udbff][\\udc00-\\udfff]",pi="["+Dn+"]",$i="\\u200d",si="(?:"+mi+"|"+ci+")",ti="(?:"+pi+"|"+ci+")",ai="(?:"+Ln+"(?:d|ll|m|re|s|t|ve))?",vi="(?:"+Ln+"(?:D|LL|M|RE|S|T|VE))?",wi=ei+"?",xi="["+In+"]?",Si="(?:"+$i+"(?:"+[fi,gi,yi].join("|")+")"+xi+wi+")*",Ei="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ri="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ni=xi+wi+Si,Fi="(?:"+[Xn,gi,yi].join("|")+")"+Ni,Ii=RegExp([pi+"?"+mi+"+"+ai+"(?="+[Pn,pi,"$"].join("|")+")",ti+"+"+vi+"(?="+[Pn,pi+si,"$"].join("|")+")",pi+"?"+si+"+"+ai,pi+"+"+vi,Ri,Ei,Jn,Fi].join("|"),"g");function Vi(Gi){return Gi.match(Ii)||[]}return iu=Vi,iu}var ru,Ap;function Sk(){if(Ap)return ru;Ap=1;var e=bk(),vn=xk(),_n=rl(),kn=_k();function qn(Hn,Kn,Qn){return Hn=_n(Hn),Kn=Qn?void 0:Kn,Kn===void 0?vn(Hn)?kn(Hn):e(Hn):Hn.match(Kn)||[]}return ru=qn,ru}var ou,$p;function kk(){if($p)return ou;$p=1;var e=mk(),vn=wk(),_n=Sk(),kn="['’]",qn=RegExp(kn,"g");function Hn(Kn){return function(Qn){return e(_n(vn(Qn).replace(qn,"")),Kn,"")}}return ou=Hn,ou}var su,Tp;function Ck(){if(Tp)return su;Tp=1;var e=gk(),vn=kk(),_n=vn(function(kn,qn,Hn){return qn=qn.toLowerCase(),kn+(Hn?e(qn):qn)});return su=_n,su}var Ak=Ck();const $k=Ua(Ak),Tk=Object.assign({"./ArrayWidget.vue":()=>Promise.resolve().then(()=>ArrayWidgetBy62tXtU),"./BlockWidget.vue":()=>Promise.resolve().then(()=>BlockWidgetCrT45ode),"./ButtonWidget.vue":()=>Promise.resolve().then(()=>ButtonWidgetCKyBBv6m),"./CanvasWidget.vue":()=>Promise.resolve().then(()=>CanvasWidgetPqkppHC7),"./CanvasdotWidget.vue":()=>Promise.resolve().then(()=>CanvasdotWidgetBUbJgM2d),"./CanvasimageWidget.vue":()=>Promise.resolve().then(()=>CanvasimageWidgetDPVBY7mi),"./CanvasimagevalueWidget.vue":()=>Promise.resolve().then(()=>CanvasimagevalueWidgetGX37zzNc),"./CanvaslabelWidget.vue":()=>Promise.resolve().then(()=>CanvaslabelWidgetP2_Y6Edw),"./CanvaslabelvalueWidget.vue":()=>Promise.resolve().then(()=>CanvaslabelvalueWidgetCuas1i9P),"./CanvaslineWidget.vue":()=>Promise.resolve().then(()=>CanvaslineWidgetBYOYgPya),"./CanvaslinevalueWidget.vue":()=>Promise.resolve().then(()=>CanvaslinevalueWidget3cVJMFo7),"./CheckbuttonWidget.vue":()=>Promise.resolve().then(()=>CheckbuttonWidgetB3wgSMuB),"./ComboboxWidget.vue":()=>Promise.resolve().then(()=>ComboboxWidgetDzr4Scvf),"./DateWidget.vue":()=>Promise.resolve().then(()=>DateWidgetBWh76Ibb),"./DynamicWidget.vue":()=>Promise.resolve().then(()=>DynamicWidgetM9EliUR2),"./FormatvalueWidget.vue":()=>Promise.resolve().then(()=>FormatvalueWidgetRk0_eeIm),"./HorizontalWidget.vue":()=>Promise.resolve().then(()=>HorizontalWidgetBcfJ24Zn),"./HorizontalboxWidget.vue":()=>Promise.resolve().then(()=>HorizontalboxWidgetCQy1Hv9E),"./HorizontallineWidget.vue":()=>Promise.resolve().then(()=>HorizontallineWidgetBdlNB951),"./IframeWidget.vue":()=>Promise.resolve().then(()=>IframeWidgetBBaDrRLo),"./ImageviewerWidget.vue":()=>Promise.resolve().then(()=>ImageviewerWidgetBgO3Pq6I),"./LabelWidget.vue":()=>Promise.resolve().then(()=>LabelWidgetB_C6lKOE),"./LabelledWidget.vue":()=>Promise.resolve().then(()=>LabelledWidgetB_UGivhr),"./LabelprogressbarWidget.vue":()=>Promise.resolve().then(()=>LabelprogressbarWidgetBJWCmsYC),"./LabelsparklineWidget.vue":()=>Promise.resolve().then(()=>LabelsparklineWidgetDILCIh3q),"./LabelvalueWidget.vue":()=>Promise.resolve().then(()=>LabelvalueWidgetCCZd1NXE),"./LabelvaluedescWidget.vue":()=>Promise.resolve().then(()=>LabelvaluedescWidgetBsllq8W6),"./LabelvaluelimitsbarWidget.vue":()=>Promise.resolve().then(()=>LabelvaluelimitsbarWidgetBVCfaD_),"./LabelvaluelimitscolumnWidget.vue":()=>Promise.resolve().then(()=>LabelvaluelimitscolumnWidgetDwA0eRBw),"./LabelvaluerangebarWidget.vue":()=>Promise.resolve().then(()=>LabelvaluerangebarWidget3GDJz3dj),"./LedWidget.vue":()=>Promise.resolve().then(()=>LedWidgetBAt02s0J),"./LimitsbarWidget.vue":()=>Promise.resolve().then(()=>LimitsbarWidgetJJiyzZjb),"./LimitscolorWidget.vue":()=>Promise.resolve().then(()=>LimitscolorWidgetCYzXKbYd),"./LimitscolumnWidget.vue":()=>Promise.resolve().then(()=>LimitscolumnWidgetCd76tBo7),"./LinegraphWidget.vue":()=>Promise.resolve().then(()=>LinegraphWidgetDWRtO6Ej),"./MatrixbycolumnsWidget.vue":()=>Promise.resolve().then(()=>MatrixbycolumnsWidgetCwsyjNV2),"./ProgressbarWidget.vue":()=>Promise.resolve().then(()=>ProgressbarWidgetCYDziFej),"./RadiobuttonWidget.vue":()=>Promise.resolve().then(()=>RadiobuttonWidgetU6jcQZoD),"./RadiogroupWidget.vue":()=>Promise.resolve().then(()=>RadiogroupWidgetHTPJnsB0),"./RangebarWidget.vue":()=>Promise.resolve().then(()=>RangebarWidgetDW0FJK6y),"./RollupWidget.vue":()=>Promise.resolve().then(()=>RollupWidgetB2qrx55f),"./ScrollwindowWidget.vue":()=>Promise.resolve().then(()=>ScrollwindowWidgetCwIDxgO6),"./SignalWidget.vue":()=>Promise.resolve().then(()=>SignalWidgetBosa3AbW),"./SpacerWidget.vue":()=>Promise.resolve().then(()=>SpacerWidgetDYAlt5mt),"./SparklineWidget.vue":()=>Promise.resolve().then(()=>SparklineWidgetCDrVXOFV),"./TabbookWidget.vue":()=>Promise.resolve().then(()=>TabbookWidgetDDdlzCkv),"./TextboxWidget.vue":()=>Promise.resolve().then(()=>TextboxWidget5euFelEq),"./TextfieldWidget.vue":()=>Promise.resolve().then(()=>TextfieldWidgetBFripYeh),"./TimeWidget.vue":()=>Promise.resolve().then(()=>TimeWidgetBBSbsUYJ),"./TitleWidget.vue":()=>Promise.resolve().then(()=>TitleWidgetP8cjoBs),"./ValueWidget.vue":()=>Promise.resolve().then(()=>ValueWidgetCZh7JWwT),"./ValuelimitsbarWidget.vue":()=>Promise.resolve().then(()=>ValuelimitsbarWidgetDU7ybswC),"./ValuelimitscolumnWidget.vue":()=>Promise.resolve().then(()=>ValuelimitscolumnWidgetDMwH5jM),"./ValuerangebarWidget.vue":()=>Promise.resolve().then(()=>ValuerangebarWidgetDPpofDpA),"./VerticalWidget.vue":()=>Promise.resolve().then(()=>VerticalWidgetCh7VAEmz),"./VerticalboxWidget.vue":()=>Promise.resolve().then(()=>VerticalboxWidgetDYxTFT4)}),Mk=Object.entries(Tk).reduce((e,[vn,_n])=>{vn=vn.split("/").pop();const kn=pk($k(vn.replace(/\.\w+$/,"")));return{...e,[kn]:vue.defineAsyncComponent(_n)}},{}),zk={components:Mk};function Ne$2(e,vn){return function(){return e.apply(vn,arguments)}}const{toString:Ze$2}=Object.prototype,{getPrototypeOf:ue$3}=Object,K$2=(e=>vn=>{const _n=Ze$2.call(vn);return e[_n]||(e[_n]=_n.slice(8,-1).toLowerCase())})(Object.create(null)),C$2=e=>(e=e.toLowerCase(),vn=>K$2(vn)===e),v$9=e=>vn=>typeof vn===e,{isArray:U$4}=Array,q$2=v$9("undefined");function Ye$2(e){return e!==null&&!q$2(e)&&e.constructor!==null&&!q$2(e.constructor)&&x$2(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Pe$2=C$2("ArrayBuffer");function et(e){let vn;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?vn=ArrayBuffer.isView(e):vn=e&&e.buffer&&Pe$2(e.buffer),vn}const tt=v$9("string"),x$2=v$9("function"),_e$2=v$9("number"),X$1=e=>e!==null&&typeof e=="object",nt=e=>e===!0||e===!1,z$8=e=>{if(K$2(e)!=="object")return!1;const vn=ue$3(e);return(vn===null||vn===Object.prototype||Object.getPrototypeOf(vn)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},rt=C$2("Date"),st=C$2("File"),ot=C$2("Blob"),it=C$2("FileList"),at=e=>X$1(e)&&x$2(e.pipe),ct=e=>{let vn;return e&&(typeof FormData=="function"&&e instanceof FormData||x$2(e.append)&&((vn=K$2(e))==="formdata"||vn==="object"&&x$2(e.toString)&&e.toString()==="[object FormData]"))},ut=C$2("URLSearchParams"),[lt,ft,dt,pt]=["ReadableStream","Request","Response","Headers"].map(C$2),ht=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function I$3(e,vn,{allOwnKeys:_n=!1}={}){if(e===null||typeof e>"u")return;let kn,qn;if(typeof e!="object"&&(e=[e]),U$4(e))for(kn=0,qn=e.length;kn<qn;kn++)vn.call(null,e[kn],kn,e);else{const Hn=_n?Object.getOwnPropertyNames(e):Object.keys(e),Kn=Hn.length;let Qn;for(kn=0;kn<Kn;kn++)Qn=Hn[kn],vn.call(null,e[Qn],Qn,e)}}function Fe$2(e,vn){vn=vn.toLowerCase();const _n=Object.keys(e);let kn=_n.length,qn;for(;kn-- >0;)if(qn=_n[kn],vn===qn.toLowerCase())return qn;return null}const L$4=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Le$2=e=>!q$2(e)&&e!==L$4;function re$2(){const{caseless:e}=Le$2(this)&&this||{},vn={},_n=(kn,qn)=>{const Hn=e&&Fe$2(vn,qn)||qn;z$8(vn[Hn])&&z$8(kn)?vn[Hn]=re$2(vn[Hn],kn):z$8(kn)?vn[Hn]=re$2({},kn):U$4(kn)?vn[Hn]=kn.slice():vn[Hn]=kn};for(let kn=0,qn=arguments.length;kn<qn;kn++)arguments[kn]&&I$3(arguments[kn],_n);return vn}const mt=(e,vn,_n,{allOwnKeys:kn}={})=>(I$3(vn,(qn,Hn)=>{_n&&x$2(qn)?e[Hn]=Ne$2(qn,_n):e[Hn]=qn},{allOwnKeys:kn}),e),yt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),bt=(e,vn,_n,kn)=>{e.prototype=Object.create(vn.prototype,kn),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:vn.prototype}),_n&&Object.assign(e.prototype,_n)},wt=(e,vn,_n,kn)=>{let qn,Hn,Kn;const Qn={};if(vn=vn||{},e==null)return vn;do{for(qn=Object.getOwnPropertyNames(e),Hn=qn.length;Hn-- >0;)Kn=qn[Hn],(!kn||kn(Kn,e,vn))&&!Qn[Kn]&&(vn[Kn]=e[Kn],Qn[Kn]=!0);e=_n!==!1&&ue$3(e)}while(e&&(!_n||_n(e,vn))&&e!==Object.prototype);return vn},Et=(e,vn,_n)=>{e=String(e),(_n===void 0||_n>e.length)&&(_n=e.length),_n-=vn.length;const kn=e.indexOf(vn,_n);return kn!==-1&&kn===_n},Rt=e=>{if(!e)return null;if(U$4(e))return e;let vn=e.length;if(!_e$2(vn))return null;const _n=new Array(vn);for(;vn-- >0;)_n[vn]=e[vn];return _n},St=(e=>vn=>e&&vn instanceof e)(typeof Uint8Array<"u"&&ue$3(Uint8Array)),gt=(e,vn)=>{const _n=(e&&e[Symbol.iterator]).call(e);let kn;for(;(kn=_n.next())&&!kn.done;){const qn=kn.value;vn.call(e,qn[0],qn[1])}},Ot=(e,vn)=>{let _n;const kn=[];for(;(_n=e.exec(vn))!==null;)kn.push(_n);return kn},Tt=C$2("HTMLFormElement"),At=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(vn,_n,kn){return _n.toUpperCase()+kn}),he$3=(({hasOwnProperty:e})=>(vn,_n)=>e.call(vn,_n))(Object.prototype),xt=C$2("RegExp"),Be$1=(e,vn)=>{const _n=Object.getOwnPropertyDescriptors(e),kn={};I$3(_n,(qn,Hn)=>{let Kn;(Kn=vn(qn,Hn,e))!==!1&&(kn[Hn]=Kn||qn)}),Object.defineProperties(e,kn)},Ct=e=>{Be$1(e,(vn,_n)=>{if(x$2(e)&&["arguments","caller","callee"].indexOf(_n)!==-1)return!1;const kn=e[_n];if(x$2(kn)){if(vn.enumerable=!1,"writable"in vn){vn.writable=!1;return}vn.set||(vn.set=()=>{throw Error("Can not rewrite read-only method '"+_n+"'")})}})},Nt=(e,vn)=>{const _n={},kn=qn=>{qn.forEach(Hn=>{_n[Hn]=!0})};return U$4(e)?kn(e):kn(String(e).split(vn)),_n},Pt=()=>{},_t=(e,vn)=>e!=null&&Number.isFinite(e=+e)?e:vn,Y$1="abcdefghijklmnopqrstuvwxyz",me$3="0123456789",De$3={DIGIT:me$3,ALPHA:Y$1,ALPHA_DIGIT:Y$1+Y$1.toUpperCase()+me$3},Ft=(e=16,vn=De$3.ALPHA_DIGIT)=>{let _n="";const{length:kn}=vn;for(;e--;)_n+=vn[Math.random()*kn|0];return _n};function Lt(e){return!!(e&&x$2(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Bt=e=>{const vn=new Array(10),_n=(kn,qn)=>{if(X$1(kn)){if(vn.indexOf(kn)>=0)return;if(!("toJSON"in kn)){vn[qn]=kn;const Hn=U$4(kn)?[]:{};return I$3(kn,(Kn,Qn)=>{const zn=_n(Kn,qn+1);!q$2(zn)&&(Hn[Qn]=zn)}),vn[qn]=void 0,Hn}}return kn};return _n(e,0)},Dt=C$2("AsyncFunction"),Ut=e=>e&&(X$1(e)||x$2(e))&&x$2(e.then)&&x$2(e.catch),Ue$2=((e,vn)=>e?setImmediate:vn?((_n,kn)=>(L$4.addEventListener("message",({source:qn,data:Hn})=>{qn===L$4&&Hn===_n&&kn.length&&kn.shift()()},!1),qn=>{kn.push(qn),L$4.postMessage(_n,"*")}))(`axios@${Math.random()}`,[]):_n=>setTimeout(_n))(typeof setImmediate=="function",x$2(L$4.postMessage)),kt=typeof queueMicrotask<"u"?queueMicrotask.bind(L$4):typeof process<"u"&&process.nextTick||Ue$2,a$2={isArray:U$4,isArrayBuffer:Pe$2,isBuffer:Ye$2,isFormData:ct,isArrayBufferView:et,isString:tt,isNumber:_e$2,isBoolean:nt,isObject:X$1,isPlainObject:z$8,isReadableStream:lt,isRequest:ft,isResponse:dt,isHeaders:pt,isUndefined:q$2,isDate:rt,isFile:st,isBlob:ot,isRegExp:xt,isFunction:x$2,isStream:at,isURLSearchParams:ut,isTypedArray:St,isFileList:it,forEach:I$3,merge:re$2,extend:mt,trim:ht,stripBOM:yt,inherits:bt,toFlatObject:wt,kindOf:K$2,kindOfTest:C$2,endsWith:Et,toArray:Rt,forEachEntry:gt,matchAll:Ot,isHTMLForm:Tt,hasOwnProperty:he$3,hasOwnProp:he$3,reduceDescriptors:Be$1,freezeMethods:Ct,toObjectSet:Nt,toCamelCase:At,noop:Pt,toFiniteNumber:_t,findKey:Fe$2,global:L$4,isContextDefined:Le$2,ALPHABET:De$3,generateString:Ft,isSpecCompliantForm:Lt,toJSONObject:Bt,isAsyncFn:Dt,isThenable:Ut,setImmediate:Ue$2,asap:kt};function m$8(e,vn,_n,kn,qn){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",vn&&(this.code=vn),_n&&(this.config=_n),kn&&(this.request=kn),qn&&(this.response=qn,this.status=qn.status?qn.status:null)}a$2.inherits(m$8,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a$2.toJSONObject(this.config),code:this.code,status:this.status}}});const ke$1=m$8.prototype,je$1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{je$1[e]={value:e}}),Object.defineProperties(m$8,je$1),Object.defineProperty(ke$1,"isAxiosError",{value:!0}),m$8.from=(e,vn,_n,kn,qn,Hn)=>{const Kn=Object.create(ke$1);return a$2.toFlatObject(e,Kn,function(Qn){return Qn!==Error.prototype},Qn=>Qn!=="isAxiosError"),m$8.call(Kn,e.message,vn,_n,kn,qn),Kn.cause=e,Kn.name=e.name,Hn&&Object.assign(Kn,Hn),Kn};const jt=null;function se$1(e){return a$2.isPlainObject(e)||a$2.isArray(e)}function qe$1(e){return a$2.endsWith(e,"[]")?e.slice(0,-2):e}function ye$3(e,vn,_n){return e?e.concat(vn).map(function(kn,qn){return kn=qe$1(kn),!_n&&qn?"["+kn+"]":kn}).join(_n?".":""):vn}function qt(e){return a$2.isArray(e)&&!e.some(se$1)}const It=a$2.toFlatObject(a$2,{},null,function(e){return/^is[A-Z]/.test(e)});function G(e,vn,_n){if(!a$2.isObject(e))throw new TypeError("target must be an object");vn=vn||new FormData,_n=a$2.toFlatObject(_n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Bn,Ln){return!a$2.isUndefined(Ln[Bn])});const kn=_n.metaTokens,qn=_n.visitor||Wn,Hn=_n.dots,Kn=_n.indexes,Qn=(_n.Blob||typeof Blob<"u"&&Blob)&&a$2.isSpecCompliantForm(vn);if(!a$2.isFunction(qn))throw new TypeError("visitor must be a function");function zn(Bn){if(Bn===null)return"";if(a$2.isDate(Bn))return Bn.toISOString();if(!Qn&&a$2.isBlob(Bn))throw new m$8("Blob is not supported. Use a Buffer instead.");return a$2.isArrayBuffer(Bn)||a$2.isTypedArray(Bn)?Qn&&typeof Blob=="function"?new Blob([Bn]):Buffer.from(Bn):Bn}function Wn(Bn,Ln,Pn){let Zn=Bn;if(Bn&&!Pn&&typeof Bn=="object"){if(a$2.endsWith(Ln,"{}"))Ln=kn?Ln:Ln.slice(0,-2),Bn=JSON.stringify(Bn);else if(a$2.isArray(Bn)&&qt(Bn)||(a$2.isFileList(Bn)||a$2.endsWith(Ln,"[]"))&&(Zn=a$2.toArray(Bn)))return Ln=qe$1(Ln),Zn.forEach(function(Jn,Xn){!(a$2.isUndefined(Jn)||Jn===null)&&vn.append(Kn===!0?ye$3([Ln],Xn,Hn):Kn===null?Ln:Ln+"[]",zn(Jn))}),!1}return se$1(Bn)?!0:(vn.append(ye$3(Pn,Ln,Hn),zn(Bn)),!1)}const Nn=[],Dn=Object.assign(It,{defaultVisitor:Wn,convertValue:zn,isVisitable:se$1});function In(Bn,Ln){if(!a$2.isUndefined(Bn)){if(Nn.indexOf(Bn)!==-1)throw Error("Circular reference detected in "+Ln.join("."));Nn.push(Bn),a$2.forEach(Bn,function(Pn,Zn){(!(a$2.isUndefined(Pn)||Pn===null)&&qn.call(vn,Pn,a$2.isString(Zn)?Zn.trim():Zn,Ln,Dn))===!0&&In(Pn,Ln?Ln.concat(Zn):[Zn])}),Nn.pop()}}if(!a$2.isObject(e))throw new TypeError("data must be an object");return In(e),vn}function be$3(e){const vn={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(_n){return vn[_n]})}function le$3(e,vn){this._pairs=[],e&&G(e,this,vn)}const Ie$2=le$3.prototype;Ie$2.append=function(e,vn){this._pairs.push([e,vn])},Ie$2.toString=function(e){const vn=e?function(_n){return e.call(this,_n,be$3)}:be$3;return this._pairs.map(function(_n){return vn(_n[0])+"="+vn(_n[1])},"").join("&")};function Ht(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function He$2(e,vn,_n){if(!vn)return e;const kn=_n&&_n.encode||Ht;a$2.isFunction(_n)&&(_n={serialize:_n});const qn=_n&&_n.serialize;let Hn;if(qn?Hn=qn(vn,_n):Hn=a$2.isURLSearchParams(vn)?vn.toString():new le$3(vn,_n).toString(kn),Hn){const Kn=e.indexOf("#");Kn!==-1&&(e=e.slice(0,Kn)),e+=(e.indexOf("?")===-1?"?":"&")+Hn}return e}let we$3=class{constructor(){this.handlers=[]}use(vn,_n,kn){return this.handlers.push({fulfilled:vn,rejected:_n,synchronous:kn?kn.synchronous:!1,runWhen:kn?kn.runWhen:null}),this.handlers.length-1}eject(vn){this.handlers[vn]&&(this.handlers[vn]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(vn){a$2.forEach(this.handlers,function(_n){_n!==null&&vn(_n)})}};const Me$2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mt=typeof URLSearchParams<"u"?URLSearchParams:le$3,zt=typeof FormData<"u"?FormData:null,Jt=typeof Blob<"u"?Blob:null,Vt={isBrowser:!0,classes:{URLSearchParams:Mt,FormData:zt,Blob:Jt},protocols:["http","https","file","blob","url","data"]},fe$3=typeof window<"u"&&typeof document<"u",oe$2=typeof navigator=="object"&&navigator||void 0,$t=fe$3&&(!oe$2||["ReactNative","NativeScript","NS"].indexOf(oe$2.product)<0),Wt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Kt=fe$3&&window.location.href||"http://localhost",vt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fe$3,hasStandardBrowserEnv:$t,hasStandardBrowserWebWorkerEnv:Wt,navigator:oe$2,origin:Kt},Symbol.toStringTag,{value:"Module"})),O$2={...vt,...Vt};function Xt(e,vn){return G(e,new O$2.classes.URLSearchParams,Object.assign({visitor:function(_n,kn,qn,Hn){return O$2.isNode&&a$2.isBuffer(_n)?(this.append(kn,_n.toString("base64")),!1):Hn.defaultVisitor.apply(this,arguments)}},vn))}function Gt(e){return a$2.matchAll(/\w+|\[(\w*)]/g,e).map(vn=>vn[0]==="[]"?"":vn[1]||vn[0])}function Qt(e){const vn={},_n=Object.keys(e);let kn;const qn=_n.length;let Hn;for(kn=0;kn<qn;kn++)Hn=_n[kn],vn[Hn]=e[Hn];return vn}function ze$2(e){function vn(_n,kn,qn,Hn){let Kn=_n[Hn++];if(Kn==="__proto__")return!0;const Qn=Number.isFinite(+Kn),zn=Hn>=_n.length;return Kn=!Kn&&a$2.isArray(qn)?qn.length:Kn,zn?(a$2.hasOwnProp(qn,Kn)?qn[Kn]=[qn[Kn],kn]:qn[Kn]=kn,!Qn):((!qn[Kn]||!a$2.isObject(qn[Kn]))&&(qn[Kn]=[]),vn(_n,kn,qn[Kn],Hn)&&a$2.isArray(qn[Kn])&&(qn[Kn]=Qt(qn[Kn])),!Qn)}if(a$2.isFormData(e)&&a$2.isFunction(e.entries)){const _n={};return a$2.forEachEntry(e,(kn,qn)=>{vn(Gt(kn),qn,_n,0)}),_n}return null}function Zt(e,vn,_n){if(a$2.isString(e))try{return(vn||JSON.parse)(e),a$2.trim(e)}catch(kn){if(kn.name!=="SyntaxError")throw kn}return(0,JSON.stringify)(e)}const H$2={transitional:Me$2,adapter:["xhr","http","fetch"],transformRequest:[function(e,vn){const _n=vn.getContentType()||"",kn=_n.indexOf("application/json")>-1,qn=a$2.isObject(e);if(qn&&a$2.isHTMLForm(e)&&(e=new FormData(e)),a$2.isFormData(e))return kn?JSON.stringify(ze$2(e)):e;if(a$2.isArrayBuffer(e)||a$2.isBuffer(e)||a$2.isStream(e)||a$2.isFile(e)||a$2.isBlob(e)||a$2.isReadableStream(e))return e;if(a$2.isArrayBufferView(e))return e.buffer;if(a$2.isURLSearchParams(e))return vn.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let Hn;if(qn){if(_n.indexOf("application/x-www-form-urlencoded")>-1)return Xt(e,this.formSerializer).toString();if((Hn=a$2.isFileList(e))||_n.indexOf("multipart/form-data")>-1){const Kn=this.env&&this.env.FormData;return G(Hn?{"files[]":e}:e,Kn&&new Kn,this.formSerializer)}}return qn||kn?(vn.setContentType("application/json",!1),Zt(e)):e}],transformResponse:[function(e){const vn=this.transitional||H$2.transitional,_n=vn&&vn.forcedJSONParsing,kn=this.responseType==="json";if(a$2.isResponse(e)||a$2.isReadableStream(e))return e;if(e&&a$2.isString(e)&&(_n&&!this.responseType||kn)){const qn=!(vn&&vn.silentJSONParsing)&&kn;try{return JSON.parse(e)}catch(Hn){if(qn)throw Hn.name==="SyntaxError"?m$8.from(Hn,m$8.ERR_BAD_RESPONSE,this,null,this.response):Hn}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O$2.classes.FormData,Blob:O$2.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a$2.forEach(["delete","get","head","post","put","patch"],e=>{H$2.headers[e]={}});const Yt=a$2.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),en=e=>{const vn={};let _n,kn,qn;return e&&e.split(`
1409
+ `).forEach(function(Hn){qn=Hn.indexOf(":"),_n=Hn.substring(0,qn).trim().toLowerCase(),kn=Hn.substring(qn+1).trim(),!(!_n||vn[_n]&&Yt[_n])&&(_n==="set-cookie"?vn[_n]?vn[_n].push(kn):vn[_n]=[kn]:vn[_n]=vn[_n]?vn[_n]+", "+kn:kn)}),vn},Ee$2=Symbol("internals");function j$2(e){return e&&String(e).trim().toLowerCase()}function J(e){return e===!1||e==null?e:a$2.isArray(e)?e.map(J):String(e)}function tn(e){const vn=Object.create(null),_n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let kn;for(;kn=_n.exec(e);)vn[kn[1]]=kn[2];return vn}const nn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ee$1(e,vn,_n,kn,qn){if(a$2.isFunction(kn))return kn.call(this,vn,_n);if(qn&&(vn=_n),!!a$2.isString(vn)){if(a$2.isString(kn))return vn.indexOf(kn)!==-1;if(a$2.isRegExp(kn))return kn.test(vn)}}function rn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(vn,_n,kn)=>_n.toUpperCase()+kn)}function sn(e,vn){const _n=a$2.toCamelCase(" "+vn);["get","set","has"].forEach(kn=>{Object.defineProperty(e,kn+_n,{value:function(qn,Hn,Kn){return this[kn].call(this,vn,qn,Hn,Kn)},configurable:!0})})}let A$4=class{constructor(vn){vn&&this.set(vn)}set(vn,_n,kn){const qn=this;function Hn(Qn,zn,Wn){const Nn=j$2(zn);if(!Nn)throw new Error("header name must be a non-empty string");const Dn=a$2.findKey(qn,Nn);(!Dn||qn[Dn]===void 0||Wn===!0||Wn===void 0&&qn[Dn]!==!1)&&(qn[Dn||zn]=J(Qn))}const Kn=(Qn,zn)=>a$2.forEach(Qn,(Wn,Nn)=>Hn(Wn,Nn,zn));if(a$2.isPlainObject(vn)||vn instanceof this.constructor)Kn(vn,_n);else if(a$2.isString(vn)&&(vn=vn.trim())&&!nn(vn))Kn(en(vn),_n);else if(a$2.isHeaders(vn))for(const[Qn,zn]of vn.entries())Hn(zn,Qn,kn);else vn!=null&&Hn(_n,vn,kn);return this}get(vn,_n){if(vn=j$2(vn),vn){const kn=a$2.findKey(this,vn);if(kn){const qn=this[kn];if(!_n)return qn;if(_n===!0)return tn(qn);if(a$2.isFunction(_n))return _n.call(this,qn,kn);if(a$2.isRegExp(_n))return _n.exec(qn);throw new TypeError("parser must be boolean|regexp|function")}}}has(vn,_n){if(vn=j$2(vn),vn){const kn=a$2.findKey(this,vn);return!!(kn&&this[kn]!==void 0&&(!_n||ee$1(this,this[kn],kn,_n)))}return!1}delete(vn,_n){const kn=this;let qn=!1;function Hn(Kn){if(Kn=j$2(Kn),Kn){const Qn=a$2.findKey(kn,Kn);Qn&&(!_n||ee$1(kn,kn[Qn],Qn,_n))&&(delete kn[Qn],qn=!0)}}return a$2.isArray(vn)?vn.forEach(Hn):Hn(vn),qn}clear(vn){const _n=Object.keys(this);let kn=_n.length,qn=!1;for(;kn--;){const Hn=_n[kn];(!vn||ee$1(this,this[Hn],Hn,vn,!0))&&(delete this[Hn],qn=!0)}return qn}normalize(vn){const _n=this,kn={};return a$2.forEach(this,(qn,Hn)=>{const Kn=a$2.findKey(kn,Hn);if(Kn){_n[Kn]=J(qn),delete _n[Hn];return}const Qn=vn?rn(Hn):String(Hn).trim();Qn!==Hn&&delete _n[Hn],_n[Qn]=J(qn),kn[Qn]=!0}),this}concat(...vn){return this.constructor.concat(this,...vn)}toJSON(vn){const _n=Object.create(null);return a$2.forEach(this,(kn,qn)=>{kn!=null&&kn!==!1&&(_n[qn]=vn&&a$2.isArray(kn)?kn.join(", "):kn)}),_n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([vn,_n])=>vn+": "+_n).join(`
1410
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(vn){return vn instanceof this?vn:new this(vn)}static concat(vn,..._n){const kn=new this(vn);return _n.forEach(qn=>kn.set(qn)),kn}static accessor(vn){const _n=(this[Ee$2]=this[Ee$2]={accessors:{}}).accessors,kn=this.prototype;function qn(Hn){const Kn=j$2(Hn);_n[Kn]||(sn(kn,Hn),_n[Kn]=!0)}return a$2.isArray(vn)?vn.forEach(qn):qn(vn),this}};A$4.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),a$2.reduceDescriptors(A$4.prototype,({value:e},vn)=>{let _n=vn[0].toUpperCase()+vn.slice(1);return{get:()=>e,set(kn){this[_n]=kn}}}),a$2.freezeMethods(A$4);function te$1(e,vn){const _n=this||H$2,kn=vn||_n,qn=A$4.from(kn.headers);let Hn=kn.data;return a$2.forEach(e,function(Kn){Hn=Kn.call(_n,Hn,qn.normalize(),vn?vn.status:void 0)}),qn.normalize(),Hn}function Je$1(e){return!!(e&&e.__CANCEL__)}function k$8(e,vn,_n){m$8.call(this,e??"canceled",m$8.ERR_CANCELED,vn,_n),this.name="CanceledError"}a$2.inherits(k$8,m$8,{__CANCEL__:!0});function Ve$1(e,vn,_n){const kn=_n.config.validateStatus;!_n.status||!kn||kn(_n.status)?e(_n):vn(new m$8("Request failed with status code "+_n.status,[m$8.ERR_BAD_REQUEST,m$8.ERR_BAD_RESPONSE][Math.floor(_n.status/100)-4],_n.config,_n.request,_n))}function on(e){const vn=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return vn&&vn[1]||""}function an(e,vn){e=e||10;const _n=new Array(e),kn=new Array(e);let qn=0,Hn=0,Kn;return vn=vn!==void 0?vn:1e3,function(Qn){const zn=Date.now(),Wn=kn[Hn];Kn||(Kn=zn),_n[qn]=Qn,kn[qn]=zn;let Nn=Hn,Dn=0;for(;Nn!==qn;)Dn+=_n[Nn++],Nn=Nn%e;if(qn=(qn+1)%e,qn===Hn&&(Hn=(Hn+1)%e),zn-Kn<vn)return;const In=Wn&&zn-Wn;return In?Math.round(Dn*1e3/In):void 0}}function cn(e,vn){let _n=0,kn=1e3/vn,qn,Hn;const Kn=(Qn,zn=Date.now())=>{_n=zn,qn=null,Hn&&(clearTimeout(Hn),Hn=null),e.apply(null,Qn)};return[(...Qn)=>{const zn=Date.now(),Wn=zn-_n;Wn>=kn?Kn(Qn,zn):(qn=Qn,Hn||(Hn=setTimeout(()=>{Hn=null,Kn(qn)},kn-Wn)))},()=>qn&&Kn(qn)]}const $$7=(e,vn,_n=3)=>{let kn=0;const qn=an(50,250);return cn(Hn=>{const Kn=Hn.loaded,Qn=Hn.lengthComputable?Hn.total:void 0,zn=Kn-kn,Wn=qn(zn),Nn=Kn<=Qn;kn=Kn;const Dn={loaded:Kn,total:Qn,progress:Qn?Kn/Qn:void 0,bytes:zn,rate:Wn||void 0,estimated:Wn&&Qn&&Nn?(Qn-Kn)/Wn:void 0,event:Hn,lengthComputable:Qn!=null,[vn?"download":"upload"]:!0};e(Dn)},_n)},Re$1=(e,vn)=>{const _n=e!=null;return[kn=>vn[0]({lengthComputable:_n,total:e,loaded:kn}),vn[1]]},Se$3=e=>(...vn)=>a$2.asap(()=>e(...vn)),un=O$2.hasStandardBrowserEnv?((e,vn)=>_n=>(_n=new URL(_n,O$2.origin),e.protocol===_n.protocol&&e.host===_n.host&&(vn||e.port===_n.port)))(new URL(O$2.origin),O$2.navigator&&/(msie|trident)/i.test(O$2.navigator.userAgent)):()=>!0,ln=O$2.hasStandardBrowserEnv?{write(e,vn,_n,kn,qn,Hn){const Kn=[e+"="+encodeURIComponent(vn)];a$2.isNumber(_n)&&Kn.push("expires="+new Date(_n).toGMTString()),a$2.isString(kn)&&Kn.push("path="+kn),a$2.isString(qn)&&Kn.push("domain="+qn),Hn===!0&&Kn.push("secure"),document.cookie=Kn.join("; ")},read(e){const vn=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return vn?decodeURIComponent(vn[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dn(e,vn){return vn?e.replace(/\/?\/$/,"")+"/"+vn.replace(/^\/+/,""):e}function $e$2(e,vn){return e&&!fn(vn)?dn(e,vn):vn}const ge$3=e=>e instanceof A$4?{...e}:e;function D$2(e,vn){vn=vn||{};const _n={};function kn(Wn,Nn,Dn,In){return a$2.isPlainObject(Wn)&&a$2.isPlainObject(Nn)?a$2.merge.call({caseless:In},Wn,Nn):a$2.isPlainObject(Nn)?a$2.merge({},Nn):a$2.isArray(Nn)?Nn.slice():Nn}function qn(Wn,Nn,Dn,In){if(a$2.isUndefined(Nn)){if(!a$2.isUndefined(Wn))return kn(void 0,Wn,Dn,In)}else return kn(Wn,Nn,Dn,In)}function Hn(Wn,Nn){if(!a$2.isUndefined(Nn))return kn(void 0,Nn)}function Kn(Wn,Nn){if(a$2.isUndefined(Nn)){if(!a$2.isUndefined(Wn))return kn(void 0,Wn)}else return kn(void 0,Nn)}function Qn(Wn,Nn,Dn){if(Dn in vn)return kn(Wn,Nn);if(Dn in e)return kn(void 0,Wn)}const zn={url:Hn,method:Hn,data:Hn,baseURL:Kn,transformRequest:Kn,transformResponse:Kn,paramsSerializer:Kn,timeout:Kn,timeoutMessage:Kn,withCredentials:Kn,withXSRFToken:Kn,adapter:Kn,responseType:Kn,xsrfCookieName:Kn,xsrfHeaderName:Kn,onUploadProgress:Kn,onDownloadProgress:Kn,decompress:Kn,maxContentLength:Kn,maxBodyLength:Kn,beforeRedirect:Kn,transport:Kn,httpAgent:Kn,httpsAgent:Kn,cancelToken:Kn,socketPath:Kn,responseEncoding:Kn,validateStatus:Qn,headers:(Wn,Nn,Dn)=>qn(ge$3(Wn),ge$3(Nn),Dn,!0)};return a$2.forEach(Object.keys(Object.assign({},e,vn)),function(Wn){const Nn=zn[Wn]||qn,Dn=Nn(e[Wn],vn[Wn],Wn);a$2.isUndefined(Dn)&&Nn!==Qn||(_n[Wn]=Dn)}),_n}const We$2=e=>{const vn=D$2({},e);let{data:_n,withXSRFToken:kn,xsrfHeaderName:qn,xsrfCookieName:Hn,headers:Kn,auth:Qn}=vn;vn.headers=Kn=A$4.from(Kn),vn.url=He$2($e$2(vn.baseURL,vn.url),e.params,e.paramsSerializer),Qn&&Kn.set("Authorization","Basic "+btoa((Qn.username||"")+":"+(Qn.password?unescape(encodeURIComponent(Qn.password)):"")));let zn;if(a$2.isFormData(_n)){if(O$2.hasStandardBrowserEnv||O$2.hasStandardBrowserWebWorkerEnv)Kn.setContentType(void 0);else if((zn=Kn.getContentType())!==!1){const[Wn,...Nn]=zn?zn.split(";").map(Dn=>Dn.trim()).filter(Boolean):[];Kn.setContentType([Wn||"multipart/form-data",...Nn].join("; "))}}if(O$2.hasStandardBrowserEnv&&(kn&&a$2.isFunction(kn)&&(kn=kn(vn)),kn||kn!==!1&&un(vn.url))){const Wn=qn&&Hn&&ln.read(Hn);Wn&&Kn.set(qn,Wn)}return vn},pn=typeof XMLHttpRequest<"u",hn=pn&&function(e){return new Promise(function(vn,_n){const kn=We$2(e);let qn=kn.data;const Hn=A$4.from(kn.headers).normalize();let{responseType:Kn,onUploadProgress:Qn,onDownloadProgress:zn}=kn,Wn,Nn,Dn,In,Bn;function Ln(){In&&In(),Bn&&Bn(),kn.cancelToken&&kn.cancelToken.unsubscribe(Wn),kn.signal&&kn.signal.removeEventListener("abort",Wn)}let Pn=new XMLHttpRequest;Pn.open(kn.method.toUpperCase(),kn.url,!0),Pn.timeout=kn.timeout;function Zn(){if(!Pn)return;const Xn=A$4.from("getAllResponseHeaders"in Pn&&Pn.getAllResponseHeaders()),mi={data:!Kn||Kn==="text"||Kn==="json"?Pn.responseText:Pn.response,status:Pn.status,statusText:Pn.statusText,headers:Xn,config:e,request:Pn};Ve$1(function(ci){vn(ci),Ln()},function(ci){_n(ci),Ln()},mi),Pn=null}"onloadend"in Pn?Pn.onloadend=Zn:Pn.onreadystatechange=function(){!Pn||Pn.readyState!==4||Pn.status===0&&!(Pn.responseURL&&Pn.responseURL.indexOf("file:")===0)||setTimeout(Zn)},Pn.onabort=function(){Pn&&(_n(new m$8("Request aborted",m$8.ECONNABORTED,e,Pn)),Pn=null)},Pn.onerror=function(){_n(new m$8("Network Error",m$8.ERR_NETWORK,e,Pn)),Pn=null},Pn.ontimeout=function(){let Xn=kn.timeout?"timeout of "+kn.timeout+"ms exceeded":"timeout exceeded";const mi=kn.transitional||Me$2;kn.timeoutErrorMessage&&(Xn=kn.timeoutErrorMessage),_n(new m$8(Xn,mi.clarifyTimeoutError?m$8.ETIMEDOUT:m$8.ECONNABORTED,e,Pn)),Pn=null},qn===void 0&&Hn.setContentType(null),"setRequestHeader"in Pn&&a$2.forEach(Hn.toJSON(),function(Xn,mi){Pn.setRequestHeader(mi,Xn)}),a$2.isUndefined(kn.withCredentials)||(Pn.withCredentials=!!kn.withCredentials),Kn&&Kn!=="json"&&(Pn.responseType=kn.responseType),zn&&([Dn,Bn]=$$7(zn,!0),Pn.addEventListener("progress",Dn)),Qn&&Pn.upload&&([Nn,In]=$$7(Qn),Pn.upload.addEventListener("progress",Nn),Pn.upload.addEventListener("loadend",In)),(kn.cancelToken||kn.signal)&&(Wn=Xn=>{Pn&&(_n(!Xn||Xn.type?new k$8(null,e,Pn):Xn),Pn.abort(),Pn=null)},kn.cancelToken&&kn.cancelToken.subscribe(Wn),kn.signal&&(kn.signal.aborted?Wn():kn.signal.addEventListener("abort",Wn)));const Jn=on(kn.url);if(Jn&&O$2.protocols.indexOf(Jn)===-1){_n(new m$8("Unsupported protocol "+Jn+":",m$8.ERR_BAD_REQUEST,e));return}Pn.send(qn||null)})},mn=(e,vn)=>{const{length:_n}=e=e?e.filter(Boolean):[];if(vn||_n){let kn=new AbortController,qn;const Hn=function(Wn){if(!qn){qn=!0,Qn();const Nn=Wn instanceof Error?Wn:this.reason;kn.abort(Nn instanceof m$8?Nn:new k$8(Nn instanceof Error?Nn.message:Nn))}};let Kn=vn&&setTimeout(()=>{Kn=null,Hn(new m$8(`timeout ${vn} of ms exceeded`,m$8.ETIMEDOUT))},vn);const Qn=()=>{e&&(Kn&&clearTimeout(Kn),Kn=null,e.forEach(Wn=>{Wn.unsubscribe?Wn.unsubscribe(Hn):Wn.removeEventListener("abort",Hn)}),e=null)};e.forEach(Wn=>Wn.addEventListener("abort",Hn));const{signal:zn}=kn;return zn.unsubscribe=()=>a$2.asap(Qn),zn}},yn=function*(e,vn){let _n=e.byteLength;if(_n<vn){yield e;return}let kn=0,qn;for(;kn<_n;)qn=kn+vn,yield e.slice(kn,qn),kn=qn},bn=async function*(e,vn){for await(const _n of wn(e))yield*yn(_n,vn)},wn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const vn=e.getReader();try{for(;;){const{done:_n,value:kn}=await vn.read();if(_n)break;yield kn}}finally{await vn.cancel()}},Oe$2=(e,vn,_n,kn)=>{const qn=bn(e,vn);let Hn=0,Kn,Qn=zn=>{Kn||(Kn=!0,kn&&kn(zn))};return new ReadableStream({async pull(zn){try{const{done:Wn,value:Nn}=await qn.next();if(Wn){Qn(),zn.close();return}let Dn=Nn.byteLength;if(_n){let In=Hn+=Dn;_n(In)}zn.enqueue(new Uint8Array(Nn))}catch(Wn){throw Qn(Wn),Wn}},cancel(zn){return Qn(zn),qn.return()}},{highWaterMark:2})},Q$1=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ke$1=Q$1&&typeof ReadableStream=="function",En=Q$1&&(typeof TextEncoder=="function"?(e=>vn=>e.encode(vn))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ve$3=(e,...vn)=>{try{return!!e(...vn)}catch{return!1}},Rn=Ke$1&&ve$3(()=>{let e=!1;const vn=new Request(O$2.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!vn}),Te$3=64*1024,ie$1=Ke$1&&ve$3(()=>a$2.isReadableStream(new Response("").body)),W$2={stream:ie$1&&(e=>e.body)};Q$1&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(vn=>{!W$2[vn]&&(W$2[vn]=a$2.isFunction(e[vn])?_n=>_n[vn]():(_n,kn)=>{throw new m$8(`Response type '${vn}' is not supported`,m$8.ERR_NOT_SUPPORT,kn)})})})(new Response);const Sn=async e=>{if(e==null)return 0;if(a$2.isBlob(e))return e.size;if(a$2.isSpecCompliantForm(e))return(await new Request(O$2.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a$2.isArrayBufferView(e)||a$2.isArrayBuffer(e))return e.byteLength;if(a$2.isURLSearchParams(e)&&(e=e+""),a$2.isString(e))return(await En(e)).byteLength},gn=async(e,vn)=>a$2.toFiniteNumber(e.getContentLength())??Sn(vn),On=Q$1&&(async e=>{let{url:vn,method:_n,data:kn,signal:qn,cancelToken:Hn,timeout:Kn,onDownloadProgress:Qn,onUploadProgress:zn,responseType:Wn,headers:Nn,withCredentials:Dn="same-origin",fetchOptions:In}=We$2(e);Wn=Wn?(Wn+"").toLowerCase():"text";let Bn=mn([qn,Hn&&Hn.toAbortSignal()],Kn),Ln;const Pn=Bn&&Bn.unsubscribe&&(()=>{Bn.unsubscribe()});let Zn;try{if(zn&&Rn&&_n!=="get"&&_n!=="head"&&(Zn=await gn(Nn,kn))!==0){let oi=new Request(vn,{method:"POST",body:kn,duplex:"half"}),ei;if(a$2.isFormData(kn)&&(ei=oi.headers.get("content-type"))&&Nn.setContentType(ei),oi.body){const[fi,gi]=Re$1(Zn,$$7(Se$3(zn)));kn=Oe$2(oi.body,Te$3,fi,gi)}}a$2.isString(Dn)||(Dn=Dn?"include":"omit");const Jn="credentials"in Request.prototype;Ln=new Request(vn,{...In,signal:Bn,method:_n.toUpperCase(),headers:Nn.normalize().toJSON(),body:kn,duplex:"half",credentials:Jn?Dn:void 0});let Xn=await fetch(Ln);const mi=ie$1&&(Wn==="stream"||Wn==="response");if(ie$1&&(Qn||mi&&Pn)){const oi={};["status","statusText","headers"].forEach(yi=>{oi[yi]=Xn[yi]});const ei=a$2.toFiniteNumber(Xn.headers.get("content-length")),[fi,gi]=Qn&&Re$1(ei,$$7(Se$3(Qn),!0))||[];Xn=new Response(Oe$2(Xn.body,Te$3,fi,()=>{gi&&gi(),Pn&&Pn()}),oi)}Wn=Wn||"text";let ci=await W$2[a$2.findKey(W$2,Wn)||"text"](Xn,e);return!mi&&Pn&&Pn(),await new Promise((oi,ei)=>{Ve$1(oi,ei,{data:ci,headers:A$4.from(Xn.headers),status:Xn.status,statusText:Xn.statusText,config:e,request:Ln})})}catch(Jn){throw Pn&&Pn(),Jn&&Jn.name==="TypeError"&&/fetch/i.test(Jn.message)?Object.assign(new m$8("Network Error",m$8.ERR_NETWORK,e,Ln),{cause:Jn.cause||Jn}):m$8.from(Jn,Jn&&Jn.code,e,Ln)}}),ae$2={http:jt,xhr:hn,fetch:On};a$2.forEach(ae$2,(e,vn)=>{if(e){try{Object.defineProperty(e,"name",{value:vn})}catch{}Object.defineProperty(e,"adapterName",{value:vn})}});const Ae$2=e=>`- ${e}`,Tn=e=>a$2.isFunction(e)||e===null||e===!1,Xe$2={getAdapter:e=>{e=a$2.isArray(e)?e:[e];const{length:vn}=e;let _n,kn;const qn={};for(let Hn=0;Hn<vn;Hn++){_n=e[Hn];let Kn;if(kn=_n,!Tn(_n)&&(kn=ae$2[(Kn=String(_n)).toLowerCase()],kn===void 0))throw new m$8(`Unknown adapter '${Kn}'`);if(kn)break;qn[Kn||"#"+Hn]=kn}if(!kn){const Hn=Object.entries(qn).map(([Qn,zn])=>`adapter ${Qn} `+(zn===!1?"is not supported by the environment":"is not available in the build"));let Kn=vn?Hn.length>1?`since :
1411
+ `+Hn.map(Ae$2).join(`
1412
+ `):" "+Ae$2(Hn[0]):"as no adapter specified";throw new m$8("There is no suitable adapter to dispatch the request "+Kn,"ERR_NOT_SUPPORT")}return kn},adapters:ae$2};function ne$2(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new k$8(null,e)}function xe$2(e){return ne$2(e),e.headers=A$4.from(e.headers),e.data=te$1.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xe$2.getAdapter(e.adapter||H$2.adapter)(e).then(function(vn){return ne$2(e),vn.data=te$1.call(e,e.transformResponse,vn),vn.headers=A$4.from(vn.headers),vn},function(vn){return Je$1(vn)||(ne$2(e),vn&&vn.response&&(vn.response.data=te$1.call(e,e.transformResponse,vn.response),vn.response.headers=A$4.from(vn.response.headers))),Promise.reject(vn)})}const Ge$1="1.7.9",Z$2={};["object","boolean","number","function","string","symbol"].forEach((e,vn)=>{Z$2[e]=function(_n){return typeof _n===e||"a"+(vn<1?"n ":" ")+e}});const Ce$2={};Z$2.transitional=function(e,vn,_n){function kn(qn,Hn){return"[Axios v"+Ge$1+"] Transitional option '"+qn+"'"+Hn+(_n?". "+_n:"")}return(qn,Hn,Kn)=>{if(e===!1)throw new m$8(kn(Hn," has been removed"+(vn?" in "+vn:"")),m$8.ERR_DEPRECATED);return vn&&!Ce$2[Hn]&&(Ce$2[Hn]=!0,console.warn(kn(Hn," has been deprecated since v"+vn+" and will be removed in the near future"))),e?e(qn,Hn,Kn):!0}},Z$2.spelling=function(e){return(vn,_n)=>(console.warn(`${_n} is likely a misspelling of ${e}`),!0)};function An(e,vn,_n){if(typeof e!="object")throw new m$8("options must be an object",m$8.ERR_BAD_OPTION_VALUE);const kn=Object.keys(e);let qn=kn.length;for(;qn-- >0;){const Hn=kn[qn],Kn=vn[Hn];if(Kn){const Qn=e[Hn],zn=Qn===void 0||Kn(Qn,Hn,e);if(zn!==!0)throw new m$8("option "+Hn+" must be "+zn,m$8.ERR_BAD_OPTION_VALUE);continue}if(_n!==!0)throw new m$8("Unknown option "+Hn,m$8.ERR_BAD_OPTION)}}const V$3={assertOptions:An,validators:Z$2},N$4=V$3.validators;let B$6=class{constructor(vn){this.defaults=vn,this.interceptors={request:new we$3,response:new we$3}}async request(vn,_n){try{return await this._request(vn,_n)}catch(kn){if(kn instanceof Error){let qn={};Error.captureStackTrace?Error.captureStackTrace(qn):qn=new Error;const Hn=qn.stack?qn.stack.replace(/^.+\n/,""):"";try{kn.stack?Hn&&!String(kn.stack).endsWith(Hn.replace(/^.+\n.+\n/,""))&&(kn.stack+=`
1413
+ `+Hn):kn.stack=Hn}catch{}}throw kn}}_request(vn,_n){typeof vn=="string"?(_n=_n||{},_n.url=vn):_n=vn||{},_n=D$2(this.defaults,_n);const{transitional:kn,paramsSerializer:qn,headers:Hn}=_n;kn!==void 0&&V$3.assertOptions(kn,{silentJSONParsing:N$4.transitional(N$4.boolean),forcedJSONParsing:N$4.transitional(N$4.boolean),clarifyTimeoutError:N$4.transitional(N$4.boolean)},!1),qn!=null&&(a$2.isFunction(qn)?_n.paramsSerializer={serialize:qn}:V$3.assertOptions(qn,{encode:N$4.function,serialize:N$4.function},!0)),V$3.assertOptions(_n,{baseUrl:N$4.spelling("baseURL"),withXsrfToken:N$4.spelling("withXSRFToken")},!0),_n.method=(_n.method||this.defaults.method||"get").toLowerCase();let Kn=Hn&&a$2.merge(Hn.common,Hn[_n.method]);Hn&&a$2.forEach(["delete","get","head","post","put","patch","common"],Ln=>{delete Hn[Ln]}),_n.headers=A$4.concat(Kn,Hn);const Qn=[];let zn=!0;this.interceptors.request.forEach(function(Ln){typeof Ln.runWhen=="function"&&Ln.runWhen(_n)===!1||(zn=zn&&Ln.synchronous,Qn.unshift(Ln.fulfilled,Ln.rejected))});const Wn=[];this.interceptors.response.forEach(function(Ln){Wn.push(Ln.fulfilled,Ln.rejected)});let Nn,Dn=0,In;if(!zn){const Ln=[xe$2.bind(this),void 0];for(Ln.unshift.apply(Ln,Qn),Ln.push.apply(Ln,Wn),In=Ln.length,Nn=Promise.resolve(_n);Dn<In;)Nn=Nn.then(Ln[Dn++],Ln[Dn++]);return Nn}In=Qn.length;let Bn=_n;for(Dn=0;Dn<In;){const Ln=Qn[Dn++],Pn=Qn[Dn++];try{Bn=Ln(Bn)}catch(Zn){Pn.call(this,Zn);break}}try{Nn=xe$2.call(this,Bn)}catch(Ln){return Promise.reject(Ln)}for(Dn=0,In=Wn.length;Dn<In;)Nn=Nn.then(Wn[Dn++],Wn[Dn++]);return Nn}getUri(vn){vn=D$2(this.defaults,vn);const _n=$e$2(vn.baseURL,vn.url);return He$2(_n,vn.params,vn.paramsSerializer)}};a$2.forEach(["delete","get","head","options"],function(e){B$6.prototype[e]=function(vn,_n){return this.request(D$2(_n||{},{method:e,url:vn,data:(_n||{}).data}))}}),a$2.forEach(["post","put","patch"],function(e){function vn(_n){return function(kn,qn,Hn){return this.request(D$2(Hn||{},{method:e,headers:_n?{"Content-Type":"multipart/form-data"}:{},url:kn,data:qn}))}}B$6.prototype[e]=vn(),B$6.prototype[e+"Form"]=vn(!0)});let de$3=class Uy{constructor(vn){if(typeof vn!="function")throw new TypeError("executor must be a function.");let _n;this.promise=new Promise(function(qn){_n=qn});const kn=this;this.promise.then(qn=>{if(!kn._listeners)return;let Hn=kn._listeners.length;for(;Hn-- >0;)kn._listeners[Hn](qn);kn._listeners=null}),this.promise.then=qn=>{let Hn;const Kn=new Promise(Qn=>{kn.subscribe(Qn),Hn=Qn}).then(qn);return Kn.cancel=function(){kn.unsubscribe(Hn)},Kn},vn(function(qn,Hn,Kn){kn.reason||(kn.reason=new k$8(qn,Hn,Kn),_n(kn.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(vn){if(this.reason){vn(this.reason);return}this._listeners?this._listeners.push(vn):this._listeners=[vn]}unsubscribe(vn){if(!this._listeners)return;const _n=this._listeners.indexOf(vn);_n!==-1&&this._listeners.splice(_n,1)}toAbortSignal(){const vn=new AbortController,_n=kn=>{vn.abort(kn)};return this.subscribe(_n),vn.signal.unsubscribe=()=>this.unsubscribe(_n),vn.signal}static source(){let vn;return{token:new Uy(function(_n){vn=_n}),cancel:vn}}};function xn(e){return function(vn){return e.apply(null,vn)}}function Cn(e){return a$2.isObject(e)&&e.isAxiosError===!0}const ce$2={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ce$2).forEach(([e,vn])=>{ce$2[vn]=e});function Qe$1(e){const vn=new B$6(e),_n=Ne$2(B$6.prototype.request,vn);return a$2.extend(_n,B$6.prototype,vn,{allOwnKeys:!0}),a$2.extend(_n,vn,null,{allOwnKeys:!0}),_n.create=function(kn){return Qe$1(D$2(e,kn))},_n}const S$9=Qe$1(H$2);S$9.Axios=B$6,S$9.CanceledError=k$8,S$9.CancelToken=de$3,S$9.isCancel=Je$1,S$9.VERSION=Ge$1,S$9.toFormData=G,S$9.AxiosError=m$8,S$9.Cancel=S$9.CanceledError,S$9.all=function(e){return Promise.all(e)},S$9.spread=xn,S$9.isAxiosError=Cn,S$9.mergeConfig=D$2,S$9.AxiosHeaders=A$4,S$9.formToJSON=e=>ze$2(a$2.isHTMLForm(e)?new FormData(e):e),S$9.getAdapter=Xe$2.getAdapter,S$9.HttpStatusCode=ce$2,S$9.default=S$9;const S$8={props:{uuid:String,cmdUser:String,cmdString:String,persistent:{type:Boolean,default:!1},modelValue:Boolean},data(){return{updater:null,username:null,password:null,canApprove:!1,error:!1,errorText:""}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},formValid:function(){return!!this.password&&!!this.username},disableButtons:function(){return!this.formValid&&!this.canApprove}},beforeUnmount(){clearInterval(this.updater),this.updater=null,this.canApprove=!1,this.username=null,this.password=null},watch:{modelValue:function(e,vn){e?(Ok.get("/openc3-api/criticalcmd/canapprove/"+this.uuid).then(_n=>{_n.data.status==="ok"&&(this.canApprove=!0)}),this.updater=setInterval(()=>{this.uuid?Ok.get("/openc3-api/criticalcmd/status/"+this.uuid).then(_n=>{_n.data.status!=="WAITING"&&(this.$emit("status",_n.data.status),this.show=!1)}):this.show=!1},1e3)):(clearInterval(this.updater),this.updater=null,this.canApprove=!1,this.username=null,this.password=null)}},methods:{async approve(){if(this.canApprove)await Ok.post("/openc3-api/criticalcmd/approve/"+this.uuid,{}).then(e=>{e.status==200&&(this.$emit("status","APPROVED"),this.show=!1,this.error=!1)});else{let e=await this.getKeycloakToken();S$9.post("/openc3-api/criticalcmd/approve/"+this.uuid,{},{headers:{Authorization:e,"Content-Type":"application/json"},params:{scope:window.openc3Scope},timeout:5e3}).then(vn=>{this.$emit("status","APPROVED"),this.show=!1,this.error=!1}).catch(vn=>{this.error=!0,vn.response?this.errorText=vn.response.data.message:this.errorText=vn.message})}},async reject(){if(this.canApprove)await Ok.post("/openc3-api/criticalcmd/reject/"+this.uuid,{}).then(e=>{e.status==200&&(this.$emit("status","REJECTED"),this.show=!1,this.error=!1)});else{let e=await this.getKeycloakToken();(await S$9.post("/openc3-api/criticalcmd/reject/"+this.uuid,{},{headers:{Authorization:e,"Content-Type":"application/json"},params:{scope:window.openc3Scope},timeout:5e3})).status==200&&(this.$emit("status","REJECTED"),this.show=!1,this.error=!1)}},async getKeycloakToken(){return(await S$9.post(localStorage.keycloakUrl+"/realms/"+localStorage.keycloakRealm+"/protocol/openid-connect/token",{username:this.username,password:this.password,client_id:localStorage.keycloakClientId,grant_type:"password",scope:"openid"},{headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:5e3})).data.access_token}}};function E$3(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-spacer"),Qn=vue.resolveComponent("v-toolbar"),zn=vue.resolveComponent("v-alert"),Wn=vue.resolveComponent("v-row"),Nn=vue.resolveComponent("v-text-field"),Dn=vue.resolveComponent("v-btn"),In=vue.resolveComponent("v-container"),Bn=vue.resolveComponent("v-card-text"),Ln=vue.resolveComponent("v-card"),Pn=vue.resolveComponent("v-dialog");return vue.openBlock(),vue.createBlock(Pn,{persistent:_n.persistent,modelValue:Hn.show,"onUpdate:modelValue":vn[3]||(vn[3]=Zn=>Hn.show=Zn),width:"600"},{default:vue.withCtx(()=>[vue.createVNode(Ln,null,{default:vue.withCtx(()=>[vue.createVNode(Qn,{height:"24"},{default:vue.withCtx(()=>[vue.createVNode(Kn),vn[4]||(vn[4]=vue.createElementVNode("span",null," Waiting for Critical Command Approval ",-1)),vue.createVNode(Kn)]),_:1}),vue.createVNode(Bn,null,{default:vue.withCtx(()=>[vue.createVNode(In,{fluid:""},{default:vue.withCtx(()=>[vue.createVNode(zn,{type:"error",modelValue:qn.error,"onUpdate:modelValue":vn[0]||(vn[0]=Zn=>qn.error=Zn),dismissible:""},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(qn.errorText),1)]),_:1},8,["modelValue"]),vue.createVNode(Wn,{class:"pt-4",style:{color:"white"}},{default:vue.withCtx(()=>[vue.createTextVNode("User "+vue.toDisplayString(_n.cmdUser)+" is waiting for approval to execute: ",1)]),_:1}),vue.createVNode(Wn,{class:"pa-4",style:{color:"white"}},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(_n.cmdString),1)]),_:1}),vue.createVNode(Wn,{class:"text-subtitle-2"},{default:vue.withCtx(()=>[vue.createTextVNode("UUID: "+vue.toDisplayString(_n.uuid),1)]),_:1}),qn.canApprove?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(Wn,{key:0},{default:vue.withCtx(()=>[vue.createVNode(Nn,{modelValue:qn.username,"onUpdate:modelValue":vn[1]||(vn[1]=Zn=>qn.username=Zn),label:"Username","data-test":"username"},null,8,["modelValue"])]),_:1})),qn.canApprove?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(Wn,{key:1},{default:vue.withCtx(()=>[vue.createVNode(Nn,{modelValue:qn.password,"onUpdate:modelValue":vn[2]||(vn[2]=Zn=>qn.password=Zn),type:"password",label:"Password","data-test":"password"},null,8,["modelValue"])]),_:1})),vue.createVNode(Wn,{class:"pt-2"},{default:vue.withCtx(()=>[vue.createVNode(Kn),vue.createVNode(Dn,{type:"submit",onClick:vue.withModifiers(Hn.reject,["prevent"]),class:"mx-2",color:"secondary",outlined:"",disabled:Hn.disableButtons,"data-test":"reject"},{default:vue.withCtx(()=>vn[5]||(vn[5]=[vue.createTextVNode(" Reject ")])),_:1},8,["onClick","disabled"]),vue.createVNode(Dn,{type:"submit",onClick:vue.withModifiers(Hn.approve,["prevent"]),class:"mx-2",color:"primary",disabled:Hn.disableButtons,"data-test":"approve"},{default:vue.withCtx(()=>vn[6]||(vn[6]=[vue.createTextVNode(" Approve ")])),_:1},8,["onClick","disabled"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["persistent","modelValue"])}const N$3=s$2(S$8,[["render",E$3],["__scopeId","data-v-edfbf188"]]),R$3={props:{type:{default:"tlm",validator:function(e){return["cmd","tlm"].indexOf(e)!==-1}},targetName:String,packetName:String,itemName:String,modelValue:Boolean},data(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},created(){this.api=new Wk},beforeUnmount(){clearInterval(this.updater),this.updater=null},watch:{modelValue:function(e,vn){e?(this.requestDetails(),this.type==="tlm"&&(this.updater=setInterval(()=>{this.api.get_tlm_values([`${this.targetName}__${this.packetName}__${this.itemName}__RAW`,`${this.targetName}__${this.packetName}__${this.itemName}__CONVERTED`,`${this.targetName}__${this.packetName}__${this.itemName}__FORMATTED`,`${this.targetName}__${this.packetName}__${this.itemName}__WITH_UNITS`]).then(_n=>{for(let kn of _n){let qn=null;if(kn[0].json_class==="String"&&kn[0].raw!==void 0?qn=kn[0].raw:this.details.data_type==="BLOCK"&&(qn=kn[0]),qn!==null){qn=qn.slice(0,parseInt(this.details.bit_size)/8);let Hn=!1;qn.length>64&&(Hn=!0),kn[0]=Array.from(qn.slice(0,64),function(Kn){return Kn===" "?"20":("0"+(Kn&255).toString(16)).slice(-2)}).join(" ").toUpperCase(),Hn&&(kn[0]+="...")}}this.details.data_type.includes("INT")&&!this.details.array_size?this.rawValue=`${_n[0][0]} (0x${_n[0][0].toString(16).toUpperCase()})`:this.rawValue=_n[0][0],this.convertedValue=_n[1][0],this.formattedValue=_n[2][0],this.unitsValue=_n[3][0]})},1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{hasLimits(e){let vn=!1;return e.limits.DEFAULT&&(vn=!0),e.states&&Object.getOwnPropertyNames(e.states).forEach(_n=>{e.states[_n].color&&(vn=!0)}),vn},async requestDetails(){this.type==="tlm"?await this.api.get_item(this.targetName,this.packetName,this.itemName).then(e=>{this.details=e,this.hasLimits(e)||(this.details.limits=null)}):await this.api.get_parameter(this.targetName,this.packetName,this.itemName).then(e=>{this.details=e})},async changeLimitsEnabled(){this.details.limits.enabled?await this.api.enable_limits(this.targetName,this.packetName,this.itemName):await this.api.disable_limits(this.targetName,this.packetName,this.itemName)},formatLimit(e){return e.hasOwnProperty("green_low")?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high+" GL/"+e.green_low+" GH/"+e.green_high:e.hasOwnProperty("red_low")?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high:e}}},T$3={key:5},z$7={key:7},B$5={key:3},A$3={key:9};function F$2(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-spacer"),Qn=vue.resolveComponent("v-toolbar"),zn=vue.resolveComponent("v-card-title"),Wn=vue.resolveComponent("v-card-subtitle"),Nn=vue.resolveComponent("v-col"),Dn=vue.resolveComponent("v-row"),In=vue.resolveComponent("v-switch"),Bn=vue.resolveComponent("v-container"),Ln=vue.resolveComponent("v-card-text"),Pn=vue.resolveComponent("v-card"),Zn=vue.resolveComponent("v-dialog");return vue.openBlock(),vue.createBlock(Zn,{modelValue:Hn.show,"onUpdate:modelValue":vn[1]||(vn[1]=Jn=>Hn.show=Jn),width:"700"},{default:vue.withCtx(()=>[vue.createVNode(Pn,null,{default:vue.withCtx(()=>[vue.createVNode(Qn,{height:24},{default:vue.withCtx(()=>[vue.createVNode(Kn),vn[2]||(vn[2]=vue.createElementVNode("span",null," Details ",-1)),vue.createVNode(Kn)]),_:1}),vue.createVNode(zn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(_n.targetName)+" "+vue.toDisplayString(_n.packetName)+" "+vue.toDisplayString(_n.itemName),1)]),_:1}),vue.createVNode(Wn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(qn.details.description),1)]),_:1}),vue.createVNode(Ln,null,{default:vue.withCtx(()=>[vue.createVNode(Bn,{fluid:""},{default:vue.withCtx(()=>[_n.type==="tlm"?(vue.openBlock(),vue.createBlock(Dn,{key:0,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[3]||(vn[3]=[vue.createTextVNode("Item Values")])),_:1}),vue.createVNode(Nn)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"1"}),vue.createVNode(Nn,{cols:"4",class:"label"},{default:vue.withCtx(()=>vn[4]||(vn[4]=[vue.createTextVNode("Raw Value")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(qn.rawValue),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"1"}),vue.createVNode(Nn,{cols:"4",class:"label"},{default:vue.withCtx(()=>vn[5]||(vn[5]=[vue.createTextVNode("Converted Value")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(qn.convertedValue),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"1"}),vue.createVNode(Nn,{cols:"4",class:"label"},{default:vue.withCtx(()=>vn[6]||(vn[6]=[vue.createTextVNode("Formatted Value")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(qn.formattedValue),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"1"}),vue.createVNode(Nn,{cols:"4",class:"label"},{default:vue.withCtx(()=>vn[7]||(vn[7]=[vue.createTextVNode("With Units Value")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(qn.unitsValue),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[8]||(vn[8]=[vue.createTextVNode("Bit Offset")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(qn.details.bit_offset),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[9]||(vn[9]=[vue.createTextVNode("Bit Size")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(qn.details.bit_size),1)]),_:1})]),_:1}),qn.details.array_size?(vue.openBlock(),vue.createBlock(Dn,{key:1,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[10]||(vn[10]=[vue.createTextVNode("Array Size")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(qn.details.array_size),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[11]||(vn[11]=[vue.createTextVNode("Data Type")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(qn.details.data_type),1)]),_:1})]),_:1}),_n.type==="cmd"?(vue.openBlock(),vue.createBlock(Dn,{key:2,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[12]||(vn[12]=[vue.createTextVNode("Minimum")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(qn.details.minimum),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),_n.type==="cmd"?(vue.openBlock(),vue.createBlock(Dn,{key:3,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[13]||(vn[13]=[vue.createTextVNode("Maximum")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(qn.details.maximum),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),_n.type==="cmd"?(vue.openBlock(),vue.createBlock(Dn,{key:4,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[14]||(vn[14]=[vue.createTextVNode("Default")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(qn.details.default),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[15]||(vn[15]=[vue.createTextVNode("Format String")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(qn.details.format_string),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[16]||(vn[16]=[vue.createTextVNode("Read Conversion")])),_:1}),qn.details.read_conversion?(vue.openBlock(),vue.createBlock(Nn,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(" Class: "+vue.toDisplayString(qn.details.read_conversion.class)+" ",1),vn[17]||(vn[17]=vue.createElementVNode("br",null,null,-1)),vue.createTextVNode(" Params: "+vue.toDisplayString(qn.details.read_conversion.params),1)]),_:1})):(vue.openBlock(),vue.createBlock(Nn,{key:1}))]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[18]||(vn[18]=[vue.createTextVNode("Write Conversion")])),_:1}),qn.details.write_conversion?(vue.openBlock(),vue.createBlock(Nn,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(" Class: "+vue.toDisplayString(qn.details.write_conversion.class)+" ",1),vn[19]||(vn[19]=vue.createElementVNode("br",null,null,-1)),vue.createTextVNode(" Params: "+vue.toDisplayString(qn.details.write_conversion.params),1)]),_:1})):(vue.openBlock(),vue.createBlock(Nn,{key:1}))]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[20]||(vn[20]=[vue.createTextVNode("Id Value")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(qn.details.id_value),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[21]||(vn[21]=[vue.createTextVNode("Units Full")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(qn.details.units_full),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[22]||(vn[22]=[vue.createTextVNode("Units Abbr")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(qn.details.units),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[23]||(vn[23]=[vue.createTextVNode("Endianness")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(qn.details.endianness),1)]),_:1})]),_:1}),qn.details.states?(vue.openBlock(),vue.createElementBlock("div",T$3,[vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[24]||(vn[24]=[vue.createTextVNode("States")])),_:1}),vue.createVNode(Nn)]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(qn.details.states,(Jn,Xn)=>(vue.openBlock(),vue.createBlock(Dn,{"no-gutters":"",key:Xn},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"1"}),vue.createVNode(Nn,{cols:"4",class:"label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Xn),1)]),_:2},1024),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Jn.value),1)]),_:2},1024)]),_:2},1024))),128))])):(vue.openBlock(),vue.createBlock(Dn,{key:6,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[25]||(vn[25]=[vue.createTextVNode("States")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>vn[26]||(vn[26]=[vue.createTextVNode("None")])),_:1})]),_:1})),qn.details.limits?(vue.openBlock(),vue.createElementBlock("div",z$7,[vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[27]||(vn[27]=[vue.createTextVNode("Limits")])),_:1}),vue.createVNode(Nn)]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(qn.details.limits,(Jn,Xn)=>(vue.openBlock(),vue.createBlock(Dn,{"no-gutters":"",key:Xn},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"1"}),Xn==="enabled"?(vue.openBlock(),vue.createBlock(Nn,{key:0,cols:"4",class:"label"},{default:vue.withCtx(()=>vn[28]||(vn[28]=[vue.createTextVNode("Enabled")])),_:1})):vue.createCommentVNode("",!0),Xn==="enabled"?(vue.openBlock(),vue.createBlock(In,{key:1,modelValue:qn.details.limits.enabled,"onUpdate:modelValue":[vn[0]||(vn[0]=mi=>qn.details.limits.enabled=mi),Hn.changeLimitsEnabled],density:"compact",color:"primary",class:"compact-switch","hide-details":""},null,8,["modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0),Xn!=="enabled"?(vue.openBlock(),vue.createBlock(Nn,{key:2,cols:"4",class:"label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Xn),1)]),_:2},1024)):vue.createCommentVNode("",!0),Xn!=="enabled"?(vue.openBlock(),vue.createElementBlock("div",B$5,vue.toDisplayString(Hn.formatLimit(Jn)),1)):vue.createCommentVNode("",!0),vue.createVNode(Nn)]),_:2},1024))),128))])):(vue.openBlock(),vue.createBlock(Dn,{key:8,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[29]||(vn[29]=[vue.createTextVNode("Limits")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>vn[30]||(vn[30]=[vue.createTextVNode("None")])),_:1})]),_:1})),qn.details.meta?(vue.openBlock(),vue.createElementBlock("div",A$3,[vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[31]||(vn[31]=[vue.createTextVNode("Meta")])),_:1}),vue.createVNode(Nn)]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(qn.details.meta,(Jn,Xn)=>(vue.openBlock(),vue.createBlock(Dn,{"no-gutters":"",key:Xn},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"1"}),vue.createVNode(Nn,{cols:"4",class:"label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Xn),1)]),_:2},1024),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Jn.join(", ")),1)]),_:2},1024)]),_:2},1024))),128))])):(vue.openBlock(),vue.createBlock(Dn,{key:10,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(Nn,{cols:"5",class:"label"},{default:vue.withCtx(()=>vn[32]||(vn[32]=[vue.createTextVNode("Meta")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>vn[33]||(vn[33]=[vue.createTextVNode("None")])),_:1})]),_:1}))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const P$1=s$2(R$3,[["render",F$2],["__scopeId","data-v-785491ee"]]);function q$1(e,vn,_n){const kn=l$3(e,void 0);return kn.setTime(kn.getTime()+vn*6e4),kn}function B$4(){return Object.assign({},v$a())}function Q(e,vn){const _n=()=>y$b(void 0,NaN),kn=te(e);let qn;if(kn.date){const zn=ne$1(kn.date,2);qn=re$1(zn.restDateString,zn.year)}if(!qn||isNaN(+qn))return _n();const Hn=+qn;let Kn=0,Qn;if(kn.time&&(Kn=ae$1(kn.time),isNaN(Kn)))return _n();if(kn.timezone){if(Qn=se(kn.timezone),isNaN(Qn))return _n()}else{const zn=new Date(Hn+Kn),Wn=l$3(0,void 0);return Wn.setFullYear(zn.getUTCFullYear(),zn.getUTCMonth(),zn.getUTCDate()),Wn.setHours(zn.getUTCHours(),zn.getUTCMinutes(),zn.getUTCSeconds(),zn.getUTCMilliseconds()),Wn}return l$3(Hn+Kn+Qn,void 0)}const D$1={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},V$2=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,K$1=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ee=/^([+-])(\d{2})(?::?(\d{2}))?$/;function te(e){const vn={},_n=e.split(D$1.dateTimeDelimiter);let kn;if(_n.length>2)return vn;if(/:/.test(_n[0])?kn=_n[0]:(vn.date=_n[0],kn=_n[1],D$1.timeZoneDelimiter.test(vn.date)&&(vn.date=e.split(D$1.timeZoneDelimiter)[0],kn=e.substr(vn.date.length,e.length))),kn){const qn=D$1.timezone.exec(kn);qn?(vn.time=kn.replace(qn[1],""),vn.timezone=qn[1]):vn.time=kn}return vn}function ne$1(e,vn){const _n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+vn)+"})|(\\d{2}|[+-]\\d{"+(2+vn)+"})$)"),kn=e.match(_n);if(!kn)return{year:NaN,restDateString:""};const qn=kn[1]?parseInt(kn[1]):null,Hn=kn[2]?parseInt(kn[2]):null;return{year:Hn===null?qn:Hn*100,restDateString:e.slice((kn[1]||kn[2]).length)}}function re$1(e,vn){if(vn===null)return new Date(NaN);const _n=e.match(V$2);if(!_n)return new Date(NaN);const kn=!!_n[4],qn=d$a(_n[1]),Hn=d$a(_n[2])-1,Kn=d$a(_n[3]),Qn=d$a(_n[4]),zn=d$a(_n[5])-1;if(kn)return fe$2(vn,Qn,zn)?ie(vn,Qn,zn):new Date(NaN);{const Wn=new Date(0);return!ue$2(vn,Hn,Kn)||!ce$1(vn,qn)?new Date(NaN):(Wn.setUTCFullYear(vn,Hn,Math.max(qn,Kn)),Wn)}}function d$a(e){return e?parseInt(e):1}function ae$1(e){const vn=e.match(K$1);if(!vn)return NaN;const _n=p$b(vn[1]),kn=p$b(vn[2]),qn=p$b(vn[3]);return le$2(_n,kn,qn)?_n*36e5+kn*6e4+qn*1e3:NaN}function p$b(e){return e&&parseFloat(e.replace(",","."))||0}function se(e){if(e==="Z")return 0;const vn=e.match(ee);if(!vn)return 0;const _n=vn[1]==="+"?-1:1,kn=parseInt(vn[2]),qn=vn[3]&&parseInt(vn[3])||0;return me$2(kn,qn)?_n*(kn*36e5+qn*6e4):NaN}function ie(e,vn,_n){const kn=new Date(0);kn.setUTCFullYear(e,0,4);const qn=kn.getUTCDay()||7,Hn=(vn-1)*7+_n+1-qn;return kn.setUTCDate(kn.getUTCDate()+Hn),kn}const oe$1=[31,null,31,30,31,30,31,31,30,31,30,31];function v$8(e){return e%400===0||e%4===0&&e%100!==0}function ue$2(e,vn,_n){return vn>=0&&vn<=11&&_n>=1&&_n<=(oe$1[vn]||(v$8(e)?29:28))}function ce$1(e,vn){return vn>=1&&vn<=(v$8(e)?366:365)}function fe$2(e,vn,_n){return vn>=1&&vn<=53&&_n>=0&&_n<=6}function le$2(e,vn,_n){return e===24?vn===0&&_n===0:_n>=0&&_n<60&&vn>=0&&vn<60&&e>=0&&e<25}function me$2(e,vn){return vn>=0&&vn<=59}function de$2(e,vn,_n){return q$1(e,-vn)}function H$1(e,vn,_n){const kn=B$4(),qn=Ne$1(e,_n.timeZone,_n.locale??kn.locale);return"formatToParts"in qn?De$2(qn,vn):Te$2(qn,vn)}function De$2(e,vn){const _n=e.formatToParts(vn);for(let kn=_n.length-1;kn>=0;--kn)if(_n[kn].type==="timeZoneName")return _n[kn].value}function Te$2(e,vn){const _n=e.format(vn).replace(/\u200E/g,""),kn=/ [\w-+ ]+$/.exec(_n);return kn?kn[0].substr(1):""}function Ne$1(e,vn,_n){return new Intl.DateTimeFormat(_n?[_n.code,"en-US"]:void 0,{timeZone:vn,timeZoneName:e})}function ge$2(e,vn){const _n=Me$1(vn);return"formatToParts"in _n?he$2(_n,e):Ie$1(_n,e)}const pe$2={year:0,month:1,day:2,hour:3,minute:4,second:5};function he$2(e,vn){try{const _n=e.formatToParts(vn),kn=[];for(let qn=0;qn<_n.length;qn++){const Hn=pe$2[_n[qn].type];Hn!==void 0&&(kn[Hn]=parseInt(_n[qn].value,10))}return kn}catch(_n){if(_n instanceof RangeError)return[NaN];throw _n}}function Ie$1(e,vn){const _n=e.format(vn),kn=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(_n);return[parseInt(kn[3],10),parseInt(kn[1],10),parseInt(kn[2],10),parseInt(kn[4],10),parseInt(kn[5],10),parseInt(kn[6],10)]}const h$e={},F$1=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),we$2=F$1==="06/25/2014, 00:00:00"||F$1==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function Me$1(e){return h$e[e]||(h$e[e]=we$2?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),h$e[e]}function k$7(e,vn,_n,kn,qn,Hn,Kn){const Qn=new Date(0);return Qn.setUTCFullYear(e,vn,_n),Qn.setUTCHours(kn,qn,Hn,Kn),Qn}const y$a=36e5,Ye$1=6e4,I$2={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function z$6(e,vn,_n){if(!e)return 0;let kn=I$2.timezoneZ.exec(e);if(kn)return 0;let qn,Hn;if(kn=I$2.timezoneHH.exec(e),kn)return qn=parseInt(kn[1],10),Z$1(qn)?-(qn*y$a):NaN;if(kn=I$2.timezoneHHMM.exec(e),kn){qn=parseInt(kn[2],10);const Kn=parseInt(kn[3],10);return Z$1(qn,Kn)?(Hn=Math.abs(qn)*y$a+Kn*Ye$1,kn[1]==="+"?-Hn:Hn):NaN}if(Ue$1(e)){vn=new Date(vn||Date.now());const Kn=_n?vn:Oe$1(vn),Qn=U$3(Kn,e);return-(_n?Qn:xe$1(vn,Qn,e))}return NaN}function Oe$1(e){return k$7(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function U$3(e,vn){const _n=ge$2(e,vn),kn=k$7(_n[0],_n[1]-1,_n[2],_n[3]%24,_n[4],_n[5],0).getTime();let qn=e.getTime();const Hn=qn%1e3;return qn-=Hn>=0?Hn:1e3+Hn,kn-qn}function xe$1(e,vn,_n){let kn=e.getTime()-vn;const qn=U$3(new Date(kn),_n);if(vn===qn)return vn;kn-=qn-vn;const Hn=U$3(new Date(kn),_n);return qn===Hn?qn:Math.max(qn,Hn)}function Z$1(e,vn){return-23<=e&&e<=23&&(vn==null||0<=vn&&vn<=59)}const b$7={};function Ue$1(e){if(b$7[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),b$7[e]=!0,!0}catch{return!1}}const Ce$1=60*1e3,$e$1={X:function(e,vn,_n){const kn=w$5(_n.timeZone,e);if(kn===0)return"Z";switch(vn){case"X":return S$7(kn);case"XXXX":case"XX":return m$7(kn);case"XXXXX":case"XXX":default:return m$7(kn,":")}},x:function(e,vn,_n){const kn=w$5(_n.timeZone,e);switch(vn){case"x":return S$7(kn);case"xxxx":case"xx":return m$7(kn);case"xxxxx":case"xxx":default:return m$7(kn,":")}},O:function(e,vn,_n){const kn=w$5(_n.timeZone,e);switch(vn){case"O":case"OO":case"OOO":return"GMT"+ze$1(kn,":");case"OOOO":default:return"GMT"+m$7(kn,":")}},z:function(e,vn,_n){switch(vn){case"z":case"zz":case"zzz":return H$1("short",e,_n);case"zzzz":default:return H$1("long",e,_n)}}};function w$5(e,vn){const _n=e?z$6(e,vn,!0)/Ce$1:(vn==null?void 0:vn.getTimezoneOffset())??0;if(Number.isNaN(_n))throw new RangeError("Invalid time zone specified: "+e);return _n}function N$2(e,vn){const _n=e<0?"-":"";let kn=Math.abs(e).toString();for(;kn.length<vn;)kn="0"+kn;return _n+kn}function m$7(e,vn=""){const _n=e>0?"-":"+",kn=Math.abs(e),qn=N$2(Math.floor(kn/60),2),Hn=N$2(Math.floor(kn%60),2);return _n+qn+vn+Hn}function S$7(e,vn){return e%60===0?(e>0?"-":"+")+N$2(Math.abs(e)/60,2):m$7(e,vn)}function ze$1(e,vn=""){const _n=e>0?"-":"+",kn=Math.abs(e),qn=Math.floor(kn/60),Hn=kn%60;return Hn===0?_n+String(qn):_n+String(qn)+vn+N$2(Hn,2)}function _$7(e){const vn=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return vn.setUTCFullYear(e.getFullYear()),+e-+vn}const He$1=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,M$2=36e5,L$3=6e4,Fe$1=2,f$f={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:He$1};function P(e,vn={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const _n=vn.additionalDigits==null?Fe$1:Number(vn.additionalDigits);if(_n!==2&&_n!==1&&_n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const kn=ye$2(e),{year:qn,restDateString:Hn}=Ze$1(kn.date,_n),Kn=be$2(Hn,qn);if(Kn===null||isNaN(Kn.getTime()))return new Date(NaN);if(Kn){const Qn=Kn.getTime();let zn=0,Wn;if(kn.time&&(zn=Se$2(kn.time),zn===null||isNaN(zn)))return new Date(NaN);if(kn.timeZone||vn.timeZone){if(Wn=z$6(kn.timeZone||vn.timeZone,new Date(Qn+zn)),isNaN(Wn))return new Date(NaN)}else Wn=_$7(new Date(Qn+zn)),Wn=_$7(new Date(Qn+zn+Wn));return new Date(Qn+zn+Wn)}else return new Date(NaN)}function ye$2(e){const vn={};let _n=f$f.dateTimePattern.exec(e),kn;if(_n?(vn.date=_n[1],kn=_n[3]):(_n=f$f.datePattern.exec(e),_n?(vn.date=_n[1],kn=_n[2]):(vn.date=null,kn=e)),kn){const qn=f$f.timeZone.exec(kn);qn?(vn.time=kn.replace(qn[1],""),vn.timeZone=qn[1].trim()):vn.time=kn}return vn}function Ze$1(e,vn){if(e){const _n=f$f.YYY[vn],kn=f$f.YYYYY[vn];let qn=f$f.YYYY.exec(e)||kn.exec(e);if(qn){const Hn=qn[1];return{year:parseInt(Hn,10),restDateString:e.slice(Hn.length)}}if(qn=f$f.YY.exec(e)||_n.exec(e),qn){const Hn=qn[1];return{year:parseInt(Hn,10)*100,restDateString:e.slice(Hn.length)}}}return{year:null}}function be$2(e,vn){if(vn===null)return null;let _n,kn,qn;if(!e||!e.length)return _n=new Date(0),_n.setUTCFullYear(vn),_n;let Hn=f$f.MM.exec(e);if(Hn)return _n=new Date(0),kn=parseInt(Hn[1],10)-1,W$1(vn,kn)?(_n.setUTCFullYear(vn,kn),_n):new Date(NaN);if(Hn=f$f.DDD.exec(e),Hn){_n=new Date(0);const Kn=parseInt(Hn[1],10);return Ee$1(vn,Kn)?(_n.setUTCFullYear(vn,0,Kn),_n):new Date(NaN)}if(Hn=f$f.MMDD.exec(e),Hn){_n=new Date(0),kn=parseInt(Hn[1],10)-1;const Kn=parseInt(Hn[2],10);return W$1(vn,kn,Kn)?(_n.setUTCFullYear(vn,kn,Kn),_n):new Date(NaN)}if(Hn=f$f.Www.exec(e),Hn)return qn=parseInt(Hn[1],10)-1,X(qn)?E$2(vn,qn):new Date(NaN);if(Hn=f$f.WwwD.exec(e),Hn){qn=parseInt(Hn[1],10)-1;const Kn=parseInt(Hn[2],10)-1;return X(qn,Kn)?E$2(vn,qn,Kn):new Date(NaN)}return null}function Se$2(e){let vn,_n,kn=f$f.HH.exec(e);if(kn)return vn=parseFloat(kn[1].replace(",",".")),Y(vn)?vn%24*M$2:NaN;if(kn=f$f.HHMM.exec(e),kn)return vn=parseInt(kn[1],10),_n=parseFloat(kn[2].replace(",",".")),Y(vn,_n)?vn%24*M$2+_n*L$3:NaN;if(kn=f$f.HHMMSS.exec(e),kn){vn=parseInt(kn[1],10),_n=parseInt(kn[2],10);const qn=parseFloat(kn[3].replace(",","."));return Y(vn,_n,qn)?vn%24*M$2+_n*L$3+qn*1e3:NaN}return null}function E$2(e,vn,_n){vn=vn||0,_n=_n||0;const kn=new Date(0);kn.setUTCFullYear(e,0,4);const qn=kn.getUTCDay()||7,Hn=vn*7+_n+1-qn;return kn.setUTCDate(kn.getUTCDate()+Hn),kn}const _e$1=[31,28,31,30,31,30,31,31,30,31,30,31],Le$1=[31,29,31,30,31,30,31,31,30,31,30,31];function R$2(e){return e%400===0||e%4===0&&e%100!==0}function W$1(e,vn,_n){if(vn<0||vn>11)return!1;if(_n!=null){if(_n<1)return!1;const kn=R$2(e);if(kn&&_n>Le$1[vn]||!kn&&_n>_e$1[vn])return!1}return!0}function Ee$1(e,vn){if(vn<1)return!1;const _n=R$2(e);return!(_n&&vn>366||!_n&&vn>365)}function X(e,vn){return!(e<0||e>52||vn!=null&&(vn<0||vn>6))}function Y(e,vn,_n){return!(e<0||e>=25||vn!=null&&(vn<0||vn>=60)||_n!=null&&(_n<0||_n>=60))}const We$1=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Xe$1(e,vn,_n={}){vn=String(vn);const kn=vn.match(We$1);if(kn){const qn=P(_n.originalDate||e,_n);vn=kn.reduce(function(Hn,Kn){if(Kn[0]==="'")return Hn;const Qn=Hn.indexOf(Kn),zn=Hn[Qn-1]==="'",Wn=Hn.replace(Kn,"'"+$e$1[Kn[0]](qn,Kn,_n)+"'");return zn?Wn.substring(0,Qn-1)+Wn.substring(Qn+1):Wn},vn)}return pe$3(e,vn,_n)}function Ae$1(e,vn,_n){e=P(e,_n);const kn=z$6(vn,e,!0),qn=new Date(e.getTime()-kn),Hn=new Date(0);return Hn.setFullYear(qn.getUTCFullYear(),qn.getUTCMonth(),qn.getUTCDate()),Hn.setHours(qn.getUTCHours(),qn.getUTCMinutes(),qn.getUTCSeconds(),qn.getUTCMilliseconds()),Hn}function O$1(e,vn,_n,kn){return kn={...kn,timeZone:vn,originalDate:e},Xe$1(Ae$1(e,vn,{timeZone:kn.timeZone}),_n,kn)}const C$1="yyyy-MM-dd",j$1="HH:mm:ss.SSS",ve$2="HH:mm:ss",T$2=`${C$1} ${j$1}`,Pe$1={methods:{parseDateTime(e,vn){return e.includes(" ")&&(e=e.replace(" ","T")),vn&&vn==="UTC"&&(e+="Z"),Date.parse(e)},formatUtcToLocal(e,vn){return pe$3(!vn||vn==="local"?de$2(e,e.getTimezoneOffset()):e,T$2)},formatDateTime(e,vn){return!vn||vn==="local"?pe$3(e,T$2):O$1(e,vn,T$2)},formatDate:function(e,vn){return!vn||vn==="local"?pe$3(e,C$1):O$1(e,this.timeZone,C$1)},formatTime:function(e,vn,_n=j$1){return!vn||vn==="local"?pe$3(e,_n):O$1(e,this.timeZone,_n)},formatTimeHMS:function(e,vn){return this.formatTime(e,vn,ve$2)},formatTimestamp(e,vn){return this.formatDateTime(Q(e),vn)},formatSeconds(e,vn){return this.formatDateTime(new Date(e*1e3),vn)},formatNanoseconds(e,vn){return this.formatDateTime(new Date(parseInt(e)/1e6),vn)}}};var j=Object.defineProperty,U$2=(e,vn,_n)=>vn in e?j(e,vn,{enumerable:!0,configurable:!0,writable:!0,value:_n}):e[vn]=_n,i$1=(e,vn,_n)=>U$2(e,typeof vn!="symbol"?vn+"":vn,_n);function z$5(e,vn,_n){const kn=l$3(e,_n==null?void 0:_n.in);return isNaN(vn)?y$b((_n==null?void 0:_n.in)||e,NaN):(vn&&kn.setDate(kn.getDate()+vn),kn)}function ue$1(e,vn){const _n=l$3(e,void 0).getDay();return _n===0?7:_n}function le$1(e,vn){const _n=de$1(vn)?new vn(0):y$b(vn,0);return _n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),_n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),_n}function de$1(e){var vn;return typeof e=="function"&&((vn=e.prototype)==null?void 0:vn.constructor)===e}const we$1=10;class Z{constructor(){i$1(this,"subPriority",0)}validate(vn,_n){return!0}}let fe$1=class extends Z{constructor(vn,_n,kn,qn,Hn){super(),this.value=vn,this.validateValue=_n,this.setValue=kn,this.priority=qn,Hn&&(this.subPriority=Hn)}validate(vn,_n){return this.validateValue(vn,this.value,_n)}set(vn,_n,kn){return this.setValue(vn,_n,this.value,kn)}},he$1=class extends Z{constructor(vn,_n){super(),i$1(this,"priority",we$1),i$1(this,"subPriority",-1),this.context=vn||(kn=>y$b(_n,kn))}set(vn,_n){return _n.timestampIsSet?vn:y$b(vn,le$1(vn,this.context))}},u$d=class{run(vn,_n,kn,qn){const Hn=this.parse(vn,_n,kn,qn);return Hn?{setter:new fe$1(Hn.value,this.validate,this.set,this.priority,this.subPriority),rest:Hn.rest}:null}validate(vn,_n,kn){return!0}},ye$1=class extends u$d{constructor(){super(...arguments),i$1(this,"priority",140),i$1(this,"incompatibleTokens",["R","u","t","T"])}parse(vn,_n,kn){switch(_n){case"G":case"GG":case"GGG":return kn.era(vn,{width:"abbreviated"})||kn.era(vn,{width:"narrow"});case"GGGGG":return kn.era(vn,{width:"narrow"});case"GGGG":default:return kn.era(vn,{width:"wide"})||kn.era(vn,{width:"abbreviated"})||kn.era(vn,{width:"narrow"})}}set(vn,_n,kn){return _n.era=kn,vn.setFullYear(kn,0,1),vn.setHours(0,0,0,0),vn}};const f$e={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},b$6={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function h$d(e,vn){return e&&{value:vn(e.value),rest:e.rest}}function l$2(e,vn){const _n=vn.match(e);return _n?{value:parseInt(_n[0],10),rest:vn.slice(_n[0].length)}:null}function m$6(e,vn){const _n=vn.match(e);if(!_n)return null;if(_n[0]==="Z")return{value:0,rest:vn.slice(1)};const kn=_n[1]==="+"?1:-1,qn=_n[2]?parseInt(_n[2],10):0,Hn=_n[3]?parseInt(_n[3],10):0,Kn=_n[5]?parseInt(_n[5],10):0;return{value:kn*(qn*36e5+Hn*6e4+Kn*1e3),rest:vn.slice(_n[0].length)}}function K(e){return l$2(f$e.anyDigitsSigned,e)}function w$4(e,vn){switch(e){case 1:return l$2(f$e.singleDigit,vn);case 2:return l$2(f$e.twoDigits,vn);case 3:return l$2(f$e.threeDigits,vn);case 4:return l$2(f$e.fourDigits,vn);default:return l$2(new RegExp("^\\d{1,"+e+"}"),vn)}}function O(e,vn){switch(e){case 1:return l$2(f$e.singleDigitSigned,vn);case 2:return l$2(f$e.twoDigitsSigned,vn);case 3:return l$2(f$e.threeDigitsSigned,vn);case 4:return l$2(f$e.fourDigitsSigned,vn);default:return l$2(new RegExp("^-?\\d{1,"+e+"}"),vn)}}function I$1(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function $$6(e,vn){const _n=vn>0,kn=_n?vn:1-vn;let qn;if(kn<=50)qn=e||100;else{const Hn=kn+50,Kn=Math.trunc(Hn/100)*100,Qn=e>=Hn%100;qn=e+Kn-(Qn?100:0)}return _n?qn:1-qn}function V$1(e){return e%400===0||e%4===0&&e%100!==0}class xe extends u$d{constructor(){super(...arguments),i$1(this,"priority",130),i$1(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(vn,_n,kn){const qn=Hn=>({year:Hn,isTwoDigitYear:_n==="yy"});switch(_n){case"y":return h$d(w$4(4,vn),qn);case"yo":return h$d(kn.ordinalNumber(vn,{unit:"year"}),qn);default:return h$d(w$4(_n.length,vn),qn)}}validate(vn,_n){return _n.isTwoDigitYear||_n.year>0}set(vn,_n,kn){const qn=vn.getFullYear();if(kn.isTwoDigitYear){const Kn=$$6(kn.year,qn);return vn.setFullYear(Kn,0,1),vn.setHours(0,0,0,0),vn}const Hn=!("era"in _n)||_n.era===1?kn.year:1-kn.year;return vn.setFullYear(Hn,0,1),vn.setHours(0,0,0,0),vn}}let be$1=class extends u$d{constructor(){super(...arguments),i$1(this,"priority",130),i$1(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(vn,_n,kn){const qn=Hn=>({year:Hn,isTwoDigitYear:_n==="YY"});switch(_n){case"Y":return h$d(w$4(4,vn),qn);case"Yo":return h$d(kn.ordinalNumber(vn,{unit:"year"}),qn);default:return h$d(w$4(_n.length,vn),qn)}}validate(vn,_n){return _n.isTwoDigitYear||_n.year>0}set(vn,_n,kn,qn){const Hn=L$5(vn,qn);if(kn.isTwoDigitYear){const Qn=$$6(kn.year,Hn);return vn.setFullYear(Qn,0,qn.firstWeekContainsDate),vn.setHours(0,0,0,0),x$3(vn,qn)}const Kn=!("era"in _n)||_n.era===1?kn.year:1-kn.year;return vn.setFullYear(Kn,0,qn.firstWeekContainsDate),vn.setHours(0,0,0,0),x$3(vn,qn)}},me$1=class extends u$d{constructor(){super(...arguments),i$1(this,"priority",130),i$1(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(vn,_n){return O(_n==="R"?4:_n.length,vn)}set(vn,_n,kn){const qn=y$b(vn,0);return qn.setFullYear(kn,0,4),qn.setHours(0,0,0,0),D$3(qn)}},pe$1=class extends u$d{constructor(){super(...arguments),i$1(this,"priority",130),i$1(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(vn,_n){return O(_n==="u"?4:_n.length,vn)}set(vn,_n,kn){return vn.setFullYear(kn,0,1),vn.setHours(0,0,0,0),vn}},Te$1=class extends u$d{constructor(){super(...arguments),i$1(this,"priority",120),i$1(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(vn,_n,kn){switch(_n){case"Q":case"QQ":return w$4(_n.length,vn);case"Qo":return kn.ordinalNumber(vn,{unit:"quarter"});case"QQQ":return kn.quarter(vn,{width:"abbreviated",context:"formatting"})||kn.quarter(vn,{width:"narrow",context:"formatting"});case"QQQQQ":return kn.quarter(vn,{width:"narrow",context:"formatting"});case"QQQQ":default:return kn.quarter(vn,{width:"wide",context:"formatting"})||kn.quarter(vn,{width:"abbreviated",context:"formatting"})||kn.quarter(vn,{width:"narrow",context:"formatting"})}}validate(vn,_n){return _n>=1&&_n<=4}set(vn,_n,kn){return vn.setMonth((kn-1)*3,1),vn.setHours(0,0,0,0),vn}},De$1=class extends u$d{constructor(){super(...arguments),i$1(this,"priority",120),i$1(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(vn,_n,kn){switch(_n){case"q":case"qq":return w$4(_n.length,vn);case"qo":return kn.ordinalNumber(vn,{unit:"quarter"});case"qqq":return kn.quarter(vn,{width:"abbreviated",context:"standalone"})||kn.quarter(vn,{width:"narrow",context:"standalone"});case"qqqqq":return kn.quarter(vn,{width:"narrow",context:"standalone"});case"qqqq":default:return kn.quarter(vn,{width:"wide",context:"standalone"})||kn.quarter(vn,{width:"abbreviated",context:"standalone"})||kn.quarter(vn,{width:"narrow",context:"standalone"})}}validate(vn,_n){return _n>=1&&_n<=4}set(vn,_n,kn){return vn.setMonth((kn-1)*3,1),vn.setHours(0,0,0,0),vn}},ge$1=class extends u$d{constructor(){super(...arguments),i$1(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),i$1(this,"priority",110)}parse(vn,_n,kn){const qn=Hn=>Hn-1;switch(_n){case"M":return h$d(l$2(f$e.month,vn),qn);case"MM":return h$d(w$4(2,vn),qn);case"Mo":return h$d(kn.ordinalNumber(vn,{unit:"month"}),qn);case"MMM":return kn.month(vn,{width:"abbreviated",context:"formatting"})||kn.month(vn,{width:"narrow",context:"formatting"});case"MMMMM":return kn.month(vn,{width:"narrow",context:"formatting"});case"MMMM":default:return kn.month(vn,{width:"wide",context:"formatting"})||kn.month(vn,{width:"abbreviated",context:"formatting"})||kn.month(vn,{width:"narrow",context:"formatting"})}}validate(vn,_n){return _n>=0&&_n<=11}set(vn,_n,kn){return vn.setMonth(kn,1),vn.setHours(0,0,0,0),vn}};class ke extends u$d{constructor(){super(...arguments),i$1(this,"priority",110),i$1(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(vn,_n,kn){const qn=Hn=>Hn-1;switch(_n){case"L":return h$d(l$2(f$e.month,vn),qn);case"LL":return h$d(w$4(2,vn),qn);case"Lo":return h$d(kn.ordinalNumber(vn,{unit:"month"}),qn);case"LLL":return kn.month(vn,{width:"abbreviated",context:"standalone"})||kn.month(vn,{width:"narrow",context:"standalone"});case"LLLLL":return kn.month(vn,{width:"narrow",context:"standalone"});case"LLLL":default:return kn.month(vn,{width:"wide",context:"standalone"})||kn.month(vn,{width:"abbreviated",context:"standalone"})||kn.month(vn,{width:"narrow",context:"standalone"})}}validate(vn,_n){return _n>=0&&_n<=11}set(vn,_n,kn){return vn.setMonth(kn,1),vn.setHours(0,0,0,0),vn}}function Pe(e,vn,_n){const kn=l$3(e,_n==null?void 0:_n.in),qn=Ce$3(kn,_n)-vn;return kn.setDate(kn.getDate()-qn*7),l$3(kn,_n==null?void 0:_n.in)}class Me extends u$d{constructor(){super(...arguments),i$1(this,"priority",100),i$1(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(vn,_n,kn){switch(_n){case"w":return l$2(f$e.week,vn);case"wo":return kn.ordinalNumber(vn,{unit:"week"});default:return w$4(_n.length,vn)}}validate(vn,_n){return _n>=1&&_n<=53}set(vn,_n,kn,qn){return x$3(Pe(vn,kn,qn),qn)}}function _e(e,vn,_n){const kn=l$3(e,void 0),qn=Fe$3(kn)-vn;return kn.setDate(kn.getDate()-qn*7),kn}class Ye extends u$d{constructor(){super(...arguments),i$1(this,"priority",100),i$1(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(vn,_n,kn){switch(_n){case"I":return l$2(f$e.week,vn);case"Io":return kn.ordinalNumber(vn,{unit:"week"});default:return w$4(_n.length,vn)}}validate(vn,_n){return _n>=1&&_n<=53}set(vn,_n,kn){return D$3(_e(vn,kn))}}const Oe=[31,28,31,30,31,30,31,31,30,31,30,31],Ee=[31,29,31,30,31,30,31,31,30,31,30,31];class He extends u$d{constructor(){super(...arguments),i$1(this,"priority",90),i$1(this,"subPriority",1),i$1(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(vn,_n,kn){switch(_n){case"d":return l$2(f$e.date,vn);case"do":return kn.ordinalNumber(vn,{unit:"date"});default:return w$4(_n.length,vn)}}validate(vn,_n){const kn=vn.getFullYear(),qn=V$1(kn),Hn=vn.getMonth();return qn?_n>=1&&_n<=Ee[Hn]:_n>=1&&_n<=Oe[Hn]}set(vn,_n,kn){return vn.setDate(kn),vn.setHours(0,0,0,0),vn}}class Ie extends u$d{constructor(){super(...arguments),i$1(this,"priority",90),i$1(this,"subpriority",1),i$1(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(vn,_n,kn){switch(_n){case"D":case"DD":return l$2(f$e.dayOfYear,vn);case"Do":return kn.ordinalNumber(vn,{unit:"date"});default:return w$4(_n.length,vn)}}validate(vn,_n){const kn=vn.getFullYear();return V$1(kn)?_n>=1&&_n<=366:_n>=1&&_n<=365}set(vn,_n,kn){return vn.setMonth(0,kn),vn.setHours(0,0,0,0),vn}}function q(e,vn,_n){var kn,qn,Hn,Kn;const Qn=v$a(),zn=(_n==null?void 0:_n.weekStartsOn)??((qn=(kn=_n==null?void 0:_n.locale)==null?void 0:kn.options)==null?void 0:qn.weekStartsOn)??Qn.weekStartsOn??((Kn=(Hn=Qn.locale)==null?void 0:Hn.options)==null?void 0:Kn.weekStartsOn)??0,Wn=l$3(e,_n==null?void 0:_n.in),Nn=Wn.getDay(),Dn=(vn%7+7)%7,In=7-zn,Bn=vn<0||vn>6?vn-(Nn+In)%7:(Dn+In)%7-(Nn+In)%7;return z$5(Wn,Bn,_n)}class qe extends u$d{constructor(){super(...arguments),i$1(this,"priority",90),i$1(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(vn,_n,kn){switch(_n){case"E":case"EE":case"EEE":return kn.day(vn,{width:"abbreviated",context:"formatting"})||kn.day(vn,{width:"short",context:"formatting"})||kn.day(vn,{width:"narrow",context:"formatting"});case"EEEEE":return kn.day(vn,{width:"narrow",context:"formatting"});case"EEEEEE":return kn.day(vn,{width:"short",context:"formatting"})||kn.day(vn,{width:"narrow",context:"formatting"});case"EEEE":default:return kn.day(vn,{width:"wide",context:"formatting"})||kn.day(vn,{width:"abbreviated",context:"formatting"})||kn.day(vn,{width:"short",context:"formatting"})||kn.day(vn,{width:"narrow",context:"formatting"})}}validate(vn,_n){return _n>=0&&_n<=6}set(vn,_n,kn,qn){return vn=q(vn,kn,qn),vn.setHours(0,0,0,0),vn}}class Le extends u$d{constructor(){super(...arguments),i$1(this,"priority",90),i$1(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(vn,_n,kn,qn){const Hn=Kn=>{const Qn=Math.floor((Kn-1)/7)*7;return(Kn+qn.weekStartsOn+6)%7+Qn};switch(_n){case"e":case"ee":return h$d(w$4(_n.length,vn),Hn);case"eo":return h$d(kn.ordinalNumber(vn,{unit:"day"}),Hn);case"eee":return kn.day(vn,{width:"abbreviated",context:"formatting"})||kn.day(vn,{width:"short",context:"formatting"})||kn.day(vn,{width:"narrow",context:"formatting"});case"eeeee":return kn.day(vn,{width:"narrow",context:"formatting"});case"eeeeee":return kn.day(vn,{width:"short",context:"formatting"})||kn.day(vn,{width:"narrow",context:"formatting"});case"eeee":default:return kn.day(vn,{width:"wide",context:"formatting"})||kn.day(vn,{width:"abbreviated",context:"formatting"})||kn.day(vn,{width:"short",context:"formatting"})||kn.day(vn,{width:"narrow",context:"formatting"})}}validate(vn,_n){return _n>=0&&_n<=6}set(vn,_n,kn,qn){return vn=q(vn,kn,qn),vn.setHours(0,0,0,0),vn}}class Ne extends u$d{constructor(){super(...arguments),i$1(this,"priority",90),i$1(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(vn,_n,kn,qn){const Hn=Kn=>{const Qn=Math.floor((Kn-1)/7)*7;return(Kn+qn.weekStartsOn+6)%7+Qn};switch(_n){case"c":case"cc":return h$d(w$4(_n.length,vn),Hn);case"co":return h$d(kn.ordinalNumber(vn,{unit:"day"}),Hn);case"ccc":return kn.day(vn,{width:"abbreviated",context:"standalone"})||kn.day(vn,{width:"short",context:"standalone"})||kn.day(vn,{width:"narrow",context:"standalone"});case"ccccc":return kn.day(vn,{width:"narrow",context:"standalone"});case"cccccc":return kn.day(vn,{width:"short",context:"standalone"})||kn.day(vn,{width:"narrow",context:"standalone"});case"cccc":default:return kn.day(vn,{width:"wide",context:"standalone"})||kn.day(vn,{width:"abbreviated",context:"standalone"})||kn.day(vn,{width:"short",context:"standalone"})||kn.day(vn,{width:"narrow",context:"standalone"})}}validate(vn,_n){return _n>=0&&_n<=6}set(vn,_n,kn,qn){return vn=q(vn,kn,qn),vn.setHours(0,0,0,0),vn}}function Qe(e,vn,_n){const kn=l$3(e,void 0),qn=ue$1(kn),Hn=vn-qn;return z$5(kn,Hn,_n)}let ve$1=class extends u$d{constructor(){super(...arguments),i$1(this,"priority",90),i$1(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(vn,_n,kn){const qn=Hn=>Hn===0?7:Hn;switch(_n){case"i":case"ii":return w$4(_n.length,vn);case"io":return kn.ordinalNumber(vn,{unit:"day"});case"iii":return h$d(kn.day(vn,{width:"abbreviated",context:"formatting"})||kn.day(vn,{width:"short",context:"formatting"})||kn.day(vn,{width:"narrow",context:"formatting"}),qn);case"iiiii":return h$d(kn.day(vn,{width:"narrow",context:"formatting"}),qn);case"iiiiii":return h$d(kn.day(vn,{width:"short",context:"formatting"})||kn.day(vn,{width:"narrow",context:"formatting"}),qn);case"iiii":default:return h$d(kn.day(vn,{width:"wide",context:"formatting"})||kn.day(vn,{width:"abbreviated",context:"formatting"})||kn.day(vn,{width:"short",context:"formatting"})||kn.day(vn,{width:"narrow",context:"formatting"}),qn)}}validate(vn,_n){return _n>=1&&_n<=7}set(vn,_n,kn){return vn=Qe(vn,kn),vn.setHours(0,0,0,0),vn}};class Re extends u$d{constructor(){super(...arguments),i$1(this,"priority",80),i$1(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(vn,_n,kn){switch(_n){case"a":case"aa":case"aaa":return kn.dayPeriod(vn,{width:"abbreviated",context:"formatting"})||kn.dayPeriod(vn,{width:"narrow",context:"formatting"});case"aaaaa":return kn.dayPeriod(vn,{width:"narrow",context:"formatting"});case"aaaa":default:return kn.dayPeriod(vn,{width:"wide",context:"formatting"})||kn.dayPeriod(vn,{width:"abbreviated",context:"formatting"})||kn.dayPeriod(vn,{width:"narrow",context:"formatting"})}}set(vn,_n,kn){return vn.setHours(I$1(kn),0,0,0),vn}}class We extends u$d{constructor(){super(...arguments),i$1(this,"priority",80),i$1(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(vn,_n,kn){switch(_n){case"b":case"bb":case"bbb":return kn.dayPeriod(vn,{width:"abbreviated",context:"formatting"})||kn.dayPeriod(vn,{width:"narrow",context:"formatting"});case"bbbbb":return kn.dayPeriod(vn,{width:"narrow",context:"formatting"});case"bbbb":default:return kn.dayPeriod(vn,{width:"wide",context:"formatting"})||kn.dayPeriod(vn,{width:"abbreviated",context:"formatting"})||kn.dayPeriod(vn,{width:"narrow",context:"formatting"})}}set(vn,_n,kn){return vn.setHours(I$1(kn),0,0,0),vn}}class Ce extends u$d{constructor(){super(...arguments),i$1(this,"priority",80),i$1(this,"incompatibleTokens",["a","b","t","T"])}parse(vn,_n,kn){switch(_n){case"B":case"BB":case"BBB":return kn.dayPeriod(vn,{width:"abbreviated",context:"formatting"})||kn.dayPeriod(vn,{width:"narrow",context:"formatting"});case"BBBBB":return kn.dayPeriod(vn,{width:"narrow",context:"formatting"});case"BBBB":default:return kn.dayPeriod(vn,{width:"wide",context:"formatting"})||kn.dayPeriod(vn,{width:"abbreviated",context:"formatting"})||kn.dayPeriod(vn,{width:"narrow",context:"formatting"})}}set(vn,_n,kn){return vn.setHours(I$1(kn),0,0,0),vn}}class Be extends u$d{constructor(){super(...arguments),i$1(this,"priority",70),i$1(this,"incompatibleTokens",["H","K","k","t","T"])}parse(vn,_n,kn){switch(_n){case"h":return l$2(f$e.hour12h,vn);case"ho":return kn.ordinalNumber(vn,{unit:"hour"});default:return w$4(_n.length,vn)}}validate(vn,_n){return _n>=1&&_n<=12}set(vn,_n,kn){const qn=vn.getHours()>=12;return qn&&kn<12?vn.setHours(kn+12,0,0,0):!qn&&kn===12?vn.setHours(0,0,0,0):vn.setHours(kn,0,0,0),vn}}class Ge extends u$d{constructor(){super(...arguments),i$1(this,"priority",70),i$1(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(vn,_n,kn){switch(_n){case"H":return l$2(f$e.hour23h,vn);case"Ho":return kn.ordinalNumber(vn,{unit:"hour"});default:return w$4(_n.length,vn)}}validate(vn,_n){return _n>=0&&_n<=23}set(vn,_n,kn){return vn.setHours(kn,0,0,0),vn}}class Xe extends u$d{constructor(){super(...arguments),i$1(this,"priority",70),i$1(this,"incompatibleTokens",["h","H","k","t","T"])}parse(vn,_n,kn){switch(_n){case"K":return l$2(f$e.hour11h,vn);case"Ko":return kn.ordinalNumber(vn,{unit:"hour"});default:return w$4(_n.length,vn)}}validate(vn,_n){return _n>=0&&_n<=11}set(vn,_n,kn){return vn.getHours()>=12&&kn<12?vn.setHours(kn+12,0,0,0):vn.setHours(kn,0,0,0),vn}}class Fe extends u$d{constructor(){super(...arguments),i$1(this,"priority",70),i$1(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(vn,_n,kn){switch(_n){case"k":return l$2(f$e.hour24h,vn);case"ko":return kn.ordinalNumber(vn,{unit:"hour"});default:return w$4(_n.length,vn)}}validate(vn,_n){return _n>=1&&_n<=24}set(vn,_n,kn){const qn=kn<=24?kn%24:kn;return vn.setHours(qn,0,0,0),vn}}class Ae extends u$d{constructor(){super(...arguments),i$1(this,"priority",60),i$1(this,"incompatibleTokens",["t","T"])}parse(vn,_n,kn){switch(_n){case"m":return l$2(f$e.minute,vn);case"mo":return kn.ordinalNumber(vn,{unit:"minute"});default:return w$4(_n.length,vn)}}validate(vn,_n){return _n>=0&&_n<=59}set(vn,_n,kn){return vn.setMinutes(kn,0,0),vn}}class ze extends u$d{constructor(){super(...arguments),i$1(this,"priority",50),i$1(this,"incompatibleTokens",["t","T"])}parse(vn,_n,kn){switch(_n){case"s":return l$2(f$e.second,vn);case"so":return kn.ordinalNumber(vn,{unit:"second"});default:return w$4(_n.length,vn)}}validate(vn,_n){return _n>=0&&_n<=59}set(vn,_n,kn){return vn.setSeconds(kn,0),vn}}class Ze extends u$d{constructor(){super(...arguments),i$1(this,"priority",30),i$1(this,"incompatibleTokens",["t","T"])}parse(vn,_n){const kn=qn=>Math.trunc(qn*Math.pow(10,-_n.length+3));return h$d(w$4(_n.length,vn),kn)}set(vn,_n,kn){return vn.setMilliseconds(kn),vn}}class Ke extends u$d{constructor(){super(...arguments),i$1(this,"priority",10),i$1(this,"incompatibleTokens",["t","T","x"])}parse(vn,_n){switch(_n){case"X":return m$6(b$6.basicOptionalMinutes,vn);case"XX":return m$6(b$6.basic,vn);case"XXXX":return m$6(b$6.basicOptionalSeconds,vn);case"XXXXX":return m$6(b$6.extendedOptionalSeconds,vn);case"XXX":default:return m$6(b$6.extended,vn)}}set(vn,_n,kn){return _n.timestampIsSet?vn:y$b(vn,vn.getTime()-N$5(vn)-kn)}}class $e extends u$d{constructor(){super(...arguments),i$1(this,"priority",10),i$1(this,"incompatibleTokens",["t","T","X"])}parse(vn,_n){switch(_n){case"x":return m$6(b$6.basicOptionalMinutes,vn);case"xx":return m$6(b$6.basic,vn);case"xxxx":return m$6(b$6.basicOptionalSeconds,vn);case"xxxxx":return m$6(b$6.extendedOptionalSeconds,vn);case"xxx":default:return m$6(b$6.extended,vn)}}set(vn,_n,kn){return _n.timestampIsSet?vn:y$b(vn,vn.getTime()-N$5(vn)-kn)}}class Ve extends u$d{constructor(){super(...arguments),i$1(this,"priority",40),i$1(this,"incompatibleTokens","*")}parse(vn){return K(vn)}set(vn,_n,kn){return[y$b(vn,kn*1e3),{timestampIsSet:!0}]}}class je extends u$d{constructor(){super(...arguments),i$1(this,"priority",20),i$1(this,"incompatibleTokens","*")}parse(vn){return K(vn)}set(vn,_n,kn){return[y$b(vn,kn),{timestampIsSet:!0}]}}const Ue={G:new ye$1,y:new xe,Y:new be$1,R:new me$1,u:new pe$1,Q:new Te$1,q:new De$1,M:new ge$1,L:new ke,w:new Me,I:new Ye,d:new He,D:new Ie,E:new qe,e:new Le,c:new Ne,i:new ve$1,a:new Re,b:new We,B:new Ce,h:new Be,H:new Ge,K:new Xe,k:new Fe,m:new Ae,s:new ze,S:new Ze,X:new Ke,x:new $e,t:new Ve,T:new je},Je=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Se$1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,er=/^'([^]*?)'?$/,rr=/''/g,tr=/\S/,sr=/[a-zA-Z]/;function cr(e,vn,_n,kn){var qn,Hn,Kn,Qn;const zn=()=>y$b(_n,NaN),Wn=B$4(),Nn=Wn.locale??Ye$4,Dn=Wn.firstWeekContainsDate??((Hn=(qn=Wn.locale)==null?void 0:qn.options)==null?void 0:Hn.firstWeekContainsDate)??1,In=Wn.weekStartsOn??((Qn=(Kn=Wn.locale)==null?void 0:Kn.options)==null?void 0:Qn.weekStartsOn)??0;if(!vn)return e?zn():l$3(_n,void 0);const Bn={firstWeekContainsDate:Dn,weekStartsOn:In,locale:Nn},Ln=[new he$1(void 0,_n)],Pn=vn.match(Se$1).map(ci=>{const oi=ci[0];if(oi in Ne$3){const ei=Ne$3[oi];return ei(ci,Nn.formatLong)}return ci}).join("").match(Je),Zn=[];for(let ci of Pn){Ie$3(ci)&&je$2(ci,vn,e),_e$3(ci)&&je$2(ci,vn,e);const oi=ci[0],ei=Ue[oi];if(ei){const{incompatibleTokens:fi}=ei;if(Array.isArray(fi)){const yi=Zn.find(pi=>fi.includes(pi.token)||pi.token===oi);if(yi)throw new RangeError(`The format string mustn't contain \`${yi.fullToken}\` and \`${ci}\` at the same time`)}else if(ei.incompatibleTokens==="*"&&Zn.length>0)throw new RangeError(`The format string mustn't contain \`${ci}\` and any other token at the same time`);Zn.push({token:oi,fullToken:ci});const gi=ei.run(e,ci,Nn.match,Bn);if(!gi)return zn();Ln.push(gi.setter),e=gi.rest}else{if(oi.match(sr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+oi+"`");if(ci==="''"?ci="'":oi==="'"&&(ci=nr(ci)),e.indexOf(ci)===0)e=e.slice(ci.length);else return zn()}}if(e.length>0&&tr.test(e))return zn();const Jn=Ln.map(ci=>ci.priority).sort((ci,oi)=>oi-ci).filter((ci,oi,ei)=>ei.indexOf(ci)===oi).map(ci=>Ln.filter(oi=>oi.priority===ci).sort((oi,ei)=>ei.subPriority-oi.subPriority)).map(ci=>ci[0]);let Xn=l$3(_n,void 0);if(isNaN(+Xn))return zn();const mi={};for(const ci of Jn){if(!ci.validate(Xn,Bn))return zn();const oi=ci.set(Xn,mi,Bn);Array.isArray(oi)?(Xn=oi[0],Object.assign(mi,oi[1])):Xn=oi}return Xn}function nr(e){return e.match(er)[1].replace(rr,"'")}const le={props:{modelValue:Boolean,title:{type:String,required:!0},legendPosition:{type:String,required:!0},items:{type:Array,required:!0},graphMinY:{type:Number},graphMaxY:{type:Number},lines:{type:Array,required:!0},colors:{type:Array,required:!0},startDateTime:{type:Number},endDateTime:{type:Number},timeZone:{type:String,required:!0}},mixins:[Pe$1],data:function(){return{tab:0,graph:{},legendPositions:["top","bottom","left","right"],startDate:null,startTime:null,endDate:null,endTime:null,lineHeaders:[{title:"Y Value",value:"yValue"},{title:"Color",value:"color"},{title:"Actions",value:"actions",sortable:!1}],itemHeaders:[{title:"Target Name",value:"targetName"},{title:"Packet Name",value:"packetName"},{title:"Item Name",value:"itemName"},{title:"Actions",value:"actions",sortable:!1}],rules:{date:e=>{if(!e)return!0;try{return $$8(cr(e,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch{return"Invalid date (YYYY-MM-DD)"}},time:e=>{if(!e)return!0;try{return $$8(cr(e,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch{return"Invalid time (HH:MM:SS)"}}}}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},editItems:function(){if(!this.items)return[];let e=0;return this.items.map(vn=>(e+=1,{...vn,itemId:e}))}},created(){if(this.graph={title:this.title,legendPosition:this.legendPosition,items:this.items,graphMinY:this.graphMinY,graphMaxY:this.graphMaxY,lines:[...this.lines]},this.startDateTime){let e=l$3(this.startDateTime/1e6);this.startDate=this.formatDate(e,this.timeZone),this.startTime=this.formatTimeHMS(e,this.timeZone)}else{let e=new Date-36e5;this.startDate=this.formatDate(e,this.timeZone),this.startTime=this.formatTimeHMS(e,this.timeZone)}if(this.endDateTime){let e=l$3(this.endDateTime/1e6);this.endDate=this.formatDate(e,this.timeZone),this.endTime=this.formatTimeHMS(e,this.timeZone)}},methods:{closeOk(){this.startDate&&this.startTime?this.graph.startDateTime=this.startDate+" "+this.startTime:this.graph.startDateTime=null,this.endDate&&this.endTime?this.graph.endDateTime=this.endDate+" "+this.endTime:this.graph.endDateTime=null,this.$emit("ok",this.graph)},addLine(){this.graph.lines.push({yValue:0,color:"white"})},removeLine(e){let vn=this.graph.lines.indexOf(e);this.graph.lines.splice(vn,1)}}},ae={class:"edit-box"},ne={class:"edit-box"},oe={class:"edit-box"},re={class:"edit-box"};function de(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-spacer"),Qn=vue.resolveComponent("v-toolbar"),zn=vue.resolveComponent("v-tab"),Wn=vue.resolveComponent("v-tabs"),Nn=vue.resolveComponent("v-text-field"),Dn=vue.resolveComponent("v-card-text"),In=vue.resolveComponent("v-col"),Bn=vue.resolveComponent("v-select"),Ln=vue.resolveComponent("v-row"),Pn=vue.resolveComponent("v-tabs-window-item"),Zn=vue.resolveComponent("v-btn"),Jn=vue.resolveComponent("v-list-item"),Xn=vue.resolveComponent("v-icon"),mi=vue.resolveComponent("v-tooltip"),ci=vue.resolveComponent("v-list"),oi=vue.resolveComponent("v-data-table"),ei=vue.resolveComponent("v-tabs-window"),fi=vue.resolveComponent("v-card-actions"),gi=vue.resolveComponent("v-card"),yi=vue.resolveComponent("v-dialog");return vue.openBlock(),vue.createBlock(yi,{modelValue:Hn.show,"onUpdate:modelValue":vn[12]||(vn[12]=pi=>Hn.show=pi),onKeydown:vn[13]||(vn[13]=vue.withKeys(pi=>e.$emit("cancel"),["esc"])),"max-width":"700"},{default:vue.withCtx(()=>[vue.createVNode(Qn,{height:"24"},{default:vue.withCtx(()=>[vue.createVNode(Kn),vn[14]||(vn[14]=vue.createElementVNode("span",null," Edit Graph ",-1)),vue.createVNode(Kn)]),_:1}),vue.createVNode(gi,{class:"pa-3"},{default:vue.withCtx(()=>[vue.createVNode(Wn,{modelValue:e.tab,"onUpdate:modelValue":vn[0]||(vn[0]=pi=>e.tab=pi),class:"ml-3"},{default:vue.withCtx(()=>[vue.createVNode(zn,{value:"0"},{default:vue.withCtx(()=>vn[15]||(vn[15]=[vue.createTextVNode(" Settings ")])),_:1}),vue.createVNode(zn,{value:"1"},{default:vue.withCtx(()=>vn[16]||(vn[16]=[vue.createTextVNode(" Scale / Lines ")])),_:1}),vue.createVNode(zn,{value:"2"},{default:vue.withCtx(()=>vn[17]||(vn[17]=[vue.createTextVNode(" Items ")])),_:1})]),_:1},8,["modelValue"]),vue.createVNode(ei,{modelValue:e.tab,"onUpdate:modelValue":vn[10]||(vn[10]=pi=>e.tab=pi)},{default:vue.withCtx(()=>[vue.createVNode(Pn,{value:"0",eager:""},{default:vue.withCtx(()=>[vue.createElementVNode("div",ae,[vue.createVNode(Ln,null,{default:vue.withCtx(()=>[vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createVNode(Dn,{class:"pa-0"},{default:vue.withCtx(()=>[vue.createVNode(Nn,{class:"pb-2",label:"Title",modelValue:e.graph.title,"onUpdate:modelValue":vn[1]||(vn[1]=pi=>e.graph.title=pi),"hide-details":""},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createVNode(Bn,{label:"Legend Position","hide-details":"",items:e.legendPositions,modelValue:e.graph.legendPosition,"onUpdate:modelValue":vn[2]||(vn[2]=pi=>e.graph.legendPosition=pi),style:{"max-width":"280px"}},null,8,["items","modelValue"])]),_:1})]),_:1})]),vue.createElementVNode("div",ne,[vue.createVNode(Dn,{class:"pa-0"},{default:vue.withCtx(()=>vn[18]||(vn[18]=[vue.createTextVNode(" Select a start date/time for the graph. Leave blank for start now. ")])),_:1}),vue.createVNode(Ln,null,{default:vue.withCtx(()=>[vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createVNode(Nn,{label:"Start Date",name:`date${Date.now()}`,rules:[e.rules.date],modelValue:e.startDate,"onUpdate:modelValue":vn[3]||(vn[3]=pi=>e.startDate=pi),type:"date"},null,8,["name","rules","modelValue"])]),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createVNode(Nn,{label:"Start Time",name:`time${Date.now()}`,rules:[e.rules.time],modelValue:e.startTime,"onUpdate:modelValue":vn[4]||(vn[4]=pi=>e.startTime=pi),type:"time",step:"1"},null,8,["name","rules","modelValue"])]),_:1})]),_:1}),vue.createVNode(Dn,{class:"pa-0"},{default:vue.withCtx(()=>vn[19]||(vn[19]=[vue.createTextVNode(" Select a end date/time for the graph. Leave blank for continuous real-time graphing. ")])),_:1}),vue.createVNode(Ln,null,{default:vue.withCtx(()=>[vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createVNode(Nn,{label:"End Date",name:`date${Date.now()}`,rules:[e.rules.date],modelValue:e.endDate,"onUpdate:modelValue":vn[5]||(vn[5]=pi=>e.endDate=pi),type:"date"},null,8,["name","rules","modelValue"])]),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createVNode(Nn,{label:"End Time",name:`time${Date.now()}`,rules:[e.rules.time],modelValue:e.endTime,"onUpdate:modelValue":vn[6]||(vn[6]=pi=>e.endTime=pi),type:"time",step:"1"},null,8,["name","rules","modelValue"])]),_:1})]),_:1})])]),_:1}),vue.createVNode(Pn,{value:"1",eager:""},{default:vue.withCtx(()=>[vue.createElementVNode("div",oe,[vue.createVNode(Dn,{class:"pa-0"},{default:vue.withCtx(()=>vn[20]||(vn[20]=[vue.createTextVNode(" Set a min or max Y value to override automatic scaling ")])),_:1}),vue.createVNode(Ln,{dense:""},{default:vue.withCtx(()=>[vue.createVNode(In,{class:"px-2"},{default:vue.withCtx(()=>[vue.createVNode(Nn,{"hide-details":"",label:"Min Y Axis (Optional)",modelValue:e.graph.graphMinY,"onUpdate:modelValue":vn[7]||(vn[7]=pi=>e.graph.graphMinY=pi),type:"number"},null,8,["modelValue"])]),_:1}),vue.createVNode(In,{class:"px-2"},{default:vue.withCtx(()=>[vue.createVNode(Nn,{"hide-details":"",label:"Max Y Axis (Optional)",modelValue:e.graph.graphMaxY,"onUpdate:modelValue":vn[8]||(vn[8]=pi=>e.graph.graphMaxY=pi),type:"number"},null,8,["modelValue"])]),_:1})]),_:1})]),vue.createElementVNode("div",re,[vue.createVNode(ci,{density:"compact",class:"horizontal-lines"},{default:vue.withCtx(()=>[vue.createVNode(Jn,null,{default:vue.withCtx(()=>[vn[22]||(vn[22]=vue.createElementVNode("span",{style:{"padding-top":"5px"}}," Add horizontal lines to the graph ",-1)),vue.createVNode(Kn),vue.createVNode(Zn,{onClick:vn[9]||(vn[9]=pi=>Hn.addLine())},{default:vue.withCtx(()=>vn[21]||(vn[21]=[vue.createTextVNode(" New Line ")])),_:1})]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.graph.lines,(pi,$i)=>(vue.openBlock(),vue.createBlock(Jn,{key:$i,value:pi,color:"primary"},{default:vue.withCtx(()=>[vue.createVNode(Ln,null,{default:vue.withCtx(()=>[vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createVNode(Nn,{label:"Y Value",modelValue:pi.yValue,"onUpdate:modelValue":si=>pi.yValue=si},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createVNode(Bn,{label:"Color","hide-details":"",items:_n.colors,modelValue:pi.color,"onUpdate:modelValue":si=>pi.color=si},null,8,["items","modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createVNode(mi,{text:"Remove",location:"top"},{activator:vue.withCtx(({props:si})=>[vue.createVNode(Xn,vue.mergeProps({ref_for:!0},si,{style:{padding:"30px"},onClick:ti=>Hn.removeLine(pi)}),{default:vue.withCtx(()=>vn[23]||(vn[23]=[vue.createTextVNode("mdi-delete")])),_:2},1040,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1})])]),_:1}),vue.createVNode(Pn,{value:"2",eager:""},{default:vue.withCtx(()=>[vue.createVNode(oi,{"item-key":"itemId",class:"elevation-1 my-2","data-test":"edit-graph-items",headers:e.itemHeaders,items:Hn.editItems,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},{"item.actions":vue.withCtx(({item:pi})=>[vue.createVNode(mi,{text:"Remove",location:"top"},{activator:vue.withCtx(({props:$i})=>[vue.createVNode(Xn,vue.mergeProps($i,{onClick:si=>e.$emit("remove",pi)}),{default:vue.withCtx(()=>vn[24]||(vn[24]=[vue.createTextVNode(" mdi-delete ")])),_:2},1040,["onClick"])]),_:2},1024)]),"no-data":vue.withCtx(()=>vn[25]||(vn[25]=[vue.createElementVNode("span",null," Currently no items on this graph ",-1)])),_:1},8,["headers","items"])]),_:1})]),_:1},8,["modelValue"]),vue.createVNode(fi,{class:"px-2"},{default:vue.withCtx(()=>[vue.createVNode(Kn),vue.createVNode(Zn,{variant:"outlined",onClick:vn[11]||(vn[11]=pi=>e.$emit("cancel"))},{default:vue.withCtx(()=>vn[26]||(vn[26]=[vue.createTextVNode(" Cancel ")])),_:1}),vue.createVNode(Zn,{variant:"flat",onClick:Hn.closeOk},{default:vue.withCtx(()=>vn[27]||(vn[27]=[vue.createTextVNode(" Ok ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const ue=s$2(le,[["render",de]]),me={props:{modelValue:Boolean,item:{type:Object,required:!0},colors:{type:Array,required:!0}},data:function(){return{editItem:null,limitsName:"NONE",limits:{NONE:[]},valueTypes:["CONVERTED","RAW"],reduction:[{text:"NONE",value:"DECOM"},{text:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{text:"REDUCED_HOUR",value:"REDUCED_HOUR"},{text:"REDUCED_DAY",value:"REDUCED_DAY"}],reducedTypes:["MIN","MAX","AVG","STDDEV"]}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},limitsNames(){return Object.keys(this.limits)}},async created(){this.editItem={...this.item},await this.api,this.api=new Wk().get_item(this.item.targetName,this.item.packetName,this.item.itemName).then(e=>{for(const[vn,_n]of Object.entries(e.limits))Object.keys(_n).includes("red_low")&&this.$set(this.limits,vn,Object.values(_n));this.limitsName=Object.keys(this.limits).find(vn=>this.limits[vn]+""==this.editItem.limits+"")})}},he={key:0},pe={class:"pa-3"};function fe(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-card-title"),Qn=vue.resolveComponent("v-select"),zn=vue.resolveComponent("v-card-text"),Wn=vue.resolveComponent("v-spacer"),Nn=vue.resolveComponent("v-btn"),Dn=vue.resolveComponent("v-card-actions"),In=vue.resolveComponent("v-card"),Bn=vue.resolveComponent("v-dialog");return vue.openBlock(),vue.createBlock(Bn,{modelValue:Hn.show,"onUpdate:modelValue":vn[9]||(vn[9]=Ln=>Hn.show=Ln),width:"400",onKeydown:vn[10]||(vn[10]=vue.withKeys(Ln=>e.success(),["enter"]))},{default:vue.withCtx(()=>[vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createVNode(Kn,{class:"mb-2"},{default:vue.withCtx(()=>vn[11]||(vn[11]=[vue.createTextVNode("Edit Item")])),_:1}),vue.createVNode(zn,null,{default:vue.withCtx(()=>[vue.createVNode(Qn,{variant:"outlined","hide-details":"",label:"Value Type",items:e.valueTypes,modelValue:e.editItem.valueType,"onUpdate:modelValue":vn[0]||(vn[0]=Ln=>e.editItem.valueType=Ln),class:"mb-2"},null,8,["items","modelValue"]),vue.createVNode(Qn,{variant:"outlined","hide-details":"",label:"Reduction",items:e.reduction,modelValue:e.editItem.reduced,"onUpdate:modelValue":vn[1]||(vn[1]=Ln=>e.editItem.reduced=Ln),class:"mb-2"},null,8,["items","modelValue"]),vue.createVNode(Qn,{variant:"outlined","hide-details":"",label:"Reduced Type",items:e.reducedTypes,disabled:e.currentReduced==="DECOM",modelValue:e.editItem.reducedType,"onUpdate:modelValue":vn[2]||(vn[2]=Ln=>e.editItem.reducedType=Ln),class:"mb-2"},null,8,["items","disabled","modelValue"]),vue.createVNode(Qn,{variant:"outlined","hide-details":"",label:"Color",items:_n.colors,modelValue:e.editItem.color,"onUpdate:modelValue":[vn[3]||(vn[3]=Ln=>e.editItem.color=Ln),vn[4]||(vn[4]=Ln=>e.$emit("changeColor",Ln))],class:"mb-2"},null,8,["items","modelValue"]),Hn.limitsNames.length>1?(vue.openBlock(),vue.createElementBlock("div",he,[vue.createVNode(Qn,{variant:"outlined","hide-details":"",label:"Display Limits",items:Hn.limitsNames,modelValue:e.limitsName,"onUpdate:modelValue":[vn[5]||(vn[5]=Ln=>e.limitsName=Ln),vn[6]||(vn[6]=Ln=>e.$emit("changeLimits",e.limits[e.limitsName]))]},null,8,["items","modelValue"]),vue.createElementVNode("div",pe,vue.toDisplayString(e.limitsName)+": "+vue.toDisplayString(e.limits[e.limitsName]),1)])):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(Dn,{class:"px-2"},{default:vue.withCtx(()=>[vue.createVNode(Wn),vue.createVNode(Nn,{variant:"outlined",onClick:vn[7]||(vn[7]=Ln=>e.$emit("cancel"))},{default:vue.withCtx(()=>vn[12]||(vn[12]=[vue.createTextVNode(" Cancel ")])),_:1}),vue.createVNode(Nn,{variant:"flat",onClick:vn[8]||(vn[8]=Ln=>e.$emit("close",e.editItem))},{default:vue.withCtx(()=>vn[13]||(vn[13]=[vue.createTextVNode(" Ok ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const ce=s$2(me,[["render",fe]]),ge={components:{GraphEditDialog:ue,GraphEditItemDialog:ce},props:{id:{type:Number,required:!0},selectedGraphId:{type:Number},state:{type:String,required:!0},startTime:{type:Number},secondsGraphed:{type:Number,required:!0},pointsSaved:{type:Number,required:!0},pointsGraphed:{type:Number,required:!0},refreshIntervalMs:{type:Number,default:200},hideToolbar:{type:Boolean,default:!1},hideOverview:{type:Boolean,default:!1},sparkline:{type:Boolean,default:!1},initialItems:{type:Array},height:{type:Number},width:{type:Number},timeZone:{type:String,default:"local"}},mixins:[Pe$1],data(){return{lines:[],active:!0,expand:!0,fullWidth:!0,fullHeight:!0,graph:null,editGraph:!1,editGraphMenu:!1,editGraphMenuX:0,editGraphMenuY:0,editItem:!1,itemMenu:!1,itemMenuX:0,itemMenuY:0,legendMenu:!1,legendMenuX:0,legendMenuY:0,legendPosition:"bottom",selectedItem:null,hideToolbarData:this.hideToolbar,showOverview:!this.hideOverview,hideOverviewData:this.hideOverview,title:"",overview:null,data:[[]],dataChanged:!1,timeout:null,graphMinY:null,graphMaxY:null,graphStartDateTime:null,graphEndDateTime:null,indexes:{},items:this.initialItems||[],limitsValues:[],drawInterval:null,zoomChart:!1,zoomOverview:!1,cable:new Dk,subscription:null,needToUpdate:!1,errorDialog:!1,errors:[],colorIndex:0,colors:["#00c7cb","#938bdb","#4dacff","lime","darkorange","red","gold","hotpink","tan","cyan","maroon","blue","teal","purple","green","brown","lightblue","white","black"]}},computed:{calcFullSize:function(){return this.fullWidth||this.fullHeight},error:function(){return this.errorDialog&&this.errors.length>0?JSON.stringify(this.errors,null,4):null}},created(){this.title=`Graph ${this.id}`;for(const[e,vn]of this.items.entries())this.data.push([]),this.indexes[this.subscriptionKey(vn)]=e+1,vn.color===void 0&&(vn.color=this.colors[this.colorIndex]),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0)},mounted(){const{chartSeries:e,overviewSeries:vn}=this.items.reduce((kn,qn)=>{const Hn={spanGaps:!0};return kn.chartSeries.push({...Hn,item:qn,label:this.formatLabel(qn),stroke:(Kn,Qn)=>this.items[Qn-1].color,width:2,value:(Kn,Qn)=>typeof Qn=="string"||isNaN(Qn)?"NaN":Qn==null?"--":Qn.toFixed(3)}),kn.overviewSeries.push({...Hn}),kn},{chartSeries:[],overviewSeries:[]});let _n={};if(this.sparkline)this.hideToolbarData=!0,this.hideOverviewData=!0,this.showOverview=!1,_n={width:this.width,height:this.height,pxAlign:!1,cursor:{show:!1},select:{show:!1},legend:{show:!1},scales:{x:{time:!1}},axes:[{show:!1},{show:!1}],series:[{},{stroke:"white"}]},this.graph=new $n(_n,this.data,document.getElementById(`chart${this.id}`));else{let kn=Intl.DateTimeFormat().resolvedOptions().timeZone;this.timeZone&&this.timeZone!=="local"&&(kn=this.timeZone),_n={...this.getSize("chart"),...this.getScales(),...this.getAxes("chart"),plugins:[this.linesPlugin()],tzDate:Hn=>$n.tzDate(new Date(Hn*1e3),kn),series:[{label:"Time",value:(Hn,Kn)=>Kn==null?"--":this.formatSeconds(Kn,this.timeZone)},...e],cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"},bind:{mouseup:(Hn,Kn,Qn)=>zn=>{this.state==="pause"&&Hn.select.width===0&&this.$emit("start"),Qn(zn)}}},hooks:{setScale:[(Hn,Kn)=>{if(Kn==="x"&&!this.zoomOverview&&this.overview){this.zoomChart=!0;let Qn=Math.round(this.overview.valToPos(Hn.scales.x.min,"x")),zn=Math.round(this.overview.valToPos(Hn.scales.x.max,"x"));this.overview.setSelect({left:Qn,width:zn-Qn}),this.zoomChart=!1}}],setSelect:[Hn=>{this.state==="start"&&Hn.select.width>0&&this.$emit("pause")}],ready:[Hn=>{Hn.root.querySelector(".u-over").addEventListener("contextmenu",Qn=>{Qn.preventDefault(),this.itemMenu=!1,this.legendMenu=!1,this.editGraphMenuX=Qn.clientX,this.editGraphMenuY=Qn.clientY,this.editGraphMenu=!0});let Kn=Hn.root.querySelector(".u-legend");Kn.addEventListener("contextmenu",Qn=>{Qn.preventDefault(),this.editGraphMenu=!1,this.legendMenu=!1,this.itemMenuX=Qn.clientX,this.itemMenuY=Qn.clientY;let zn=Qn.target.closest(".u-series"),Wn=Array.prototype.slice.call(Kn.childNodes[0].childNodes).indexOf(zn),Nn=Hn.series[Wn];Nn.item?(this.selectedItem=Nn.item,this.itemMenu=!0):(this.itemMenu=!1,this.legendMenuX=Qn.clientX,this.legendMenuY=Qn.clientY,this.legendMenu=!0)}),Kn.querySelector("tbody").appendChild(this.$refs.info)}]}},this.graph=new $n(_n,this.data,document.getElementById(`chart${this.id}`));const qn={...this.getSize("overview"),...this.getScales(),...this.getAxes("overview"),tzDate:Hn=>$n.tzDate(new Date(Hn*1e3),kn),series:[...vn],cursor:{y:!1,drag:{setScale:!1,x:!0,y:!1}},legend:{show:!1},hooks:{setSelect:[Hn=>{if(!this.zoomChart){this.state==="start"&&Hn.select.width>0&&this.$emit("pause"),this.zoomOverview=!0;let Kn=Hn.posToVal(Hn.select.left,"x"),Qn=Hn.posToVal(Hn.select.left+Hn.select.width,"x");this.graph.setScale("x",{min:Kn,max:Qn}),this.zoomOverview=!1}}]}};this.overview=new $n(qn,this.data,document.getElementById(`overview${this.id}`)),this.moveLegend(this.legendPosition),window.addEventListener("resize",this.resize)}this.state!=="stop"&&this.startGraph()},beforeUnmount:function(){this.stopGraph(),this.cable.disconnect(),window.removeEventListener("resize",this.resize)},watch:{state:function(e,vn){switch(e){case"start":vn==="stop"&&this.startGraph();break;case"stop":this.stopGraph();break}},data:function(e,vn){this.dataChanged=!0},graphMinY:function(e,vn){let _n=parseFloat(e);isNaN(_n)||(this.graphMinY=_n),this.setGraphRange()},graphMaxY:function(e,vn){let _n=parseFloat(e);isNaN(_n)||(this.graphMaxY=_n),this.setGraphRange()},graphStartDateTime:function(e,vn){e&&typeof e=="string"?(this.graphStartDateTime=this.parseDateTime(this.graphStartDateTime,this.timeZone)*1e6,this.graphStartDateTime!==vn&&(this.needToUpdate=!0)):e===null&&vn&&(this.graphStartDateTime=null,this.needToUpdate=!0)},graphEndDateTime:function(e,vn){e&&typeof e=="string"?(this.graphEndDateTime=this.parseDateTime(this.graphEndDateTime,this.timeZone)*1e6,this.graphEndDateTime!==vn&&(this.needToUpdate=!0)):e===null&&vn&&(this.graphEndDateTime=null,this.needToUpdate=!0)}},methods:{startGraph:function(){this.subscribe(),this.timeout=setTimeout(()=>{this.updateTimeout()},this.refreshIntervalMs)},stopGraph:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},updateTimeout:function(){this.updateGraphData(),this.timeout=setTimeout(()=>{this.updateTimeout()},this.refreshIntervalMs)},updateGraphData:function(){if(this.state==="pause"||!this.dataChanged)return;this.graph.setData(this.data),this.overview&&this.overview.setData(this.data);let e=this.data[0][this.data[0].length-1],vn=this.data[0][this.data[0].length-this.pointsGraphed],_n=this.data[0][0];_n<e-this.secondsGraphed&&(_n=e-this.secondsGraphed),vn>_n&&(_n=vn),this.graph.setScale("x",{min:_n,max:e}),this.dataChanged=!1},formatLabel(e){if(e.valueType==="CONVERTED"&&e.reduced==="DECOM")return e.itemName;{let vn="";return e.valueType!=="CONVERTED"&&(vn+=e.valueType),e.reduced!=="DECOM"&&(vn!==""&&(vn+=" "),vn+=`${e.reduced.split("_")[1]} ${e.reducedType}`),`${e.itemName} (${vn})`}},moveLegend:function(e){switch(e){case"bottom":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.remove("top-legend");break;case"top":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("top-legend");break;case"left":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.add("side-legend"),this.graph.root.classList.add("left-legend");break;case"right":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("side-legend");break}this.legendPosition=e,this.resize()},clearErrors:function(){this.errors=[]},editGraphClose:function(e){this.editGraph=!1,this.title=e.title,this.legendPosition=e.legendPosition,this.graphMinY=e.graphMinY,this.graphMaxY=e.graphMaxY,this.lines=[...e.lines],this.graphStartDateTime=e.startDateTime,this.graphEndDateTime=e.endDateTime,this.$nextTick(()=>{if(this.needToUpdate){if(this.subscription==null)this.startGraph();else{let vn=JSON.parse(JSON.stringify(this.items));this.removeItems(vn),setTimeout(()=>{this.addItems(vn)},0)}this.needToUpdate=!1}}),this.moveLegend(this.legendPosition),this.$emit("edit")},resize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview")),this.$emit("resize",this.id)},expandAll:function(){this.fullWidth=!0,this.fullHeight=!0,this.resize()},collapseAll:function(){this.fullWidth=!1,this.fullHeight=!1,this.resize()},expandWidth:function(){this.fullWidth=!0,this.resize()},collapseWidth:function(){this.fullWidth=!1,this.resize()},expandHeight:function(){this.fullHeight=!0,this.resize()},collapseHeight:function(){this.fullHeight=!1,this.resize()},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-graph",this.id)},setGraphRange:function(){let e=.1;(this.graphMinY||this.graphMinY===0||this.graphMaxY||this.graphMaxY===0)&&(e=0),this.graph.scales.y.range=(vn,_n,kn)=>{let qn=_n;(this.graphMinY||this.graphMinY===0)&&(qn=this.graphMinY);let Hn=kn;return(this.graphMaxY||this.graphMaxY===0)&&(Hn=this.graphMaxY),$n.rangeNum(qn,Hn,e,!0)}},subscribe:function(){this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:e=>this.received(e),connected:()=>{this.addItemsToSubscription(this.items)},disconnected:()=>{this.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:new Date().getTime()})},rejected:()=>{this.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:new Date().getTime()})}}).then(e=>{this.subscription=e})},getSize:function(e){let vn=0;const _n=document.getElementById("openc3-nav-drawer");_n&&(vn=_n.classList.contains("v-navigation-drawer--active")?_n.clientWidth:0);let kn=0;(this.legendPosition==="right"||this.legendPosition==="left")&&(kn=document.getElementsByClassName("u-legend")[0].clientWidth);const qn=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-vn-kn,Hn=Math.max(document.documentElement.clientHeight,window.innerHeight||0),Kn=document.getElementsByClassName("v-expansion-panel")[0];let Qn=100;e==="overview"?this.fullHeight&&!this.hideOverviewData?this.showOverview=!0:this.showOverview=!1:(Qn=Hn-Kn.clientHeight-Qn-250,this.fullHeight||(Qn=Qn/2+10));let zn=qn-68;return this.fullWidth||(zn=zn/2-10),{width:this.width||zn,height:this.height||Qn}},getScales:function(){return{scales:{x:{range(e,vn,_n){return vn==null?[1566453600,1566497660]:[vn,_n]}},y:{range(e,vn,_n){return vn==null?[-100,100]:$n.rangeNum(vn,_n,.1,!0)}}}}},getAxes:function(e){let vn="rgba(255, 255, 255, .1)",_n="white";return{axes:[{stroke:_n,grid:{show:!0,stroke:vn,width:2}},{size:80,stroke:_n,grid:{show:e!=="overview",stroke:vn,width:2},values(kn,qn){return(qn.some(Hn=>Hn>=1e7)||qn.every(Hn=>Hn<.01))&&(qn=qn.map(Hn=>Hn.toExponential(3))),qn}}]}},closeEditItem:function(e){this.editItem=!1,(this.graphEndDateTime!==null&&this.selectedItem!==e||this.selectedItem.valueType!==e.valueType||this.selectedItem.reduced!==e.reduced||this.selectedItem.reducedType!==e.reducedType)&&this.changeItem(e)},changeColor:function(e){let vn=this.subscriptionKey(this.selectedItem),_n=this.indexes[vn];this.items[_n-1].color=e,this.selectedItem.color=e,this.graph.root.querySelectorAll(".u-marker")[_n].style.borderColor=e},changeLimits:function(e){let vn=this.subscriptionKey(this.selectedItem),_n=this.indexes[vn];this.items[_n-1].limits=e,this.selectedItem.limits=e,this.limitsValues=e},linesPlugin:function(){return{hooks:{draw:e=>{const{ctx:vn,bbox:_n}=e,kn=e.valToPos(e.scales.y.min,"y",!0),qn=e.valToPos(e.scales.y.max,"y",!0),Hn=e.valToPos(this.limitsValues[0],"y",!0),Kn=e.valToPos(this.limitsValues[1],"y",!0),Qn=e.valToPos(this.limitsValues[2],"y",!0),zn=e.valToPos(this.limitsValues[3],"y",!0);if(this.lines.forEach(Wn=>{e.scales.y.min<=Wn.yValue&&Wn.yValue<=e.scales.y.max&&(vn.save(),vn.beginPath(),vn.strokeStyle=Wn.color,vn.lineWidth=2,vn.moveTo(_n.left,e.valToPos(Wn.yValue,"y",!0)),vn.lineTo(_n.left+_n.width,e.valToPos(Wn.yValue,"y",!0)),vn.stroke(),vn.restore())}),vn.save(),vn.beginPath(),vn.fillStyle="rgba(255,0,0,0.15)",e.scales.y.min<this.limitsValues[0]){let Wn=Hn<qn?qn:Hn;vn.fillRect(_n.left,Hn,_n.width,kn-Wn)}if(e.scales.y.max>this.limitsValues[3]){let Wn=kn<zn?kn:zn;vn.fillRect(_n.left,qn,_n.width,Wn-qn)}if(vn.fillStyle="rgba(255,255,0,0.15)",e.scales.y.min<this.limitsValues[1]&&e.scales.y.max>this.limitsValues[0]){let Wn=Kn<qn?qn:Kn;vn.fillRect(_n.left,Wn,_n.width,Hn-Wn)}if(e.scales.y.max>this.limitsValues[2]&&e.scales.y.min<this.limitsValues[3]){let Wn=kn<zn?kn:zn,Nn=kn<Qn?kn:Qn;vn.fillRect(_n.left,Wn,_n.width,Nn-Wn)}if(vn.fillStyle="rgba(0,255,0,0.15)",this.limitsValues.length===4){if(e.scales.y.min<this.limitsValues[2]&&e.scales.y.max>this.limitsValues[1]){let Wn=Qn<qn?qn:Qn,Nn=kn<Kn?kn:Kn;vn.fillRect(_n.left,Wn,_n.width,Nn-Wn)}}else{const Wn=e.valToPos(this.limitsValues[4],"y",!0),Nn=e.valToPos(this.limitsValues[5],"y",!0);if(e.scales.y.min<this.limitsValues[4]&&e.scales.y.max>this.limitsValues[1]){let Bn=Wn<qn?qn:Wn;vn.fillRect(_n.left,Bn,_n.width,Kn-Bn)}if(e.scales.y.max>this.limitsValues[5]&&e.scales.y.min<this.limitsValues[2]){let Bn=kn<Qn?kn:Qn,Ln=kn<Nn?kn:Nn;vn.fillRect(_n.left,Bn,_n.width,Ln-Bn)}vn.fillStyle="rgba(0,0,255,0.15)";let Dn=Nn<qn?qn:Nn,In=kn<Wn?kn:Wn;vn.fillRect(_n.left,Dn,_n.width,In-Dn)}vn.stroke(),vn.restore()}}}},changeItem:function(e){this.removeItems([this.selectedItem]),this.selectedItem.valueType=e.valueType,this.selectedItem.reduced=e.reduced,this.selectedItem.reducedType=e.reducedType,setTimeout(()=>{this.addItems([this.selectedItem])},0)},addItems:function(e,vn="CONVERTED"){e.forEach(_n=>{_n.valueType||(_n.valueType=vn),_n.color||(_n.color=this.colors[this.colorIndex]),_n.limits||(_n.limits=[]),_n.limits.length>0&&(this.limitsValues=_n.limits),this.colorIndex=(this.colorIndex+1)%this.colors.length,this.items.push(_n);const kn=this.data.length;this.graph.addSeries(this.createSeriesConfig(_n),kn),this.overview&&this.overview.addSeries(this.createOverviewSeriesConfig(),kn),this.data.splice(kn,0,Array(this.data[0].length)),this.indexes[this.subscriptionKey(_n)]=kn}),this.updateColorIndex(e),this.addItemsToSubscription(e),this.$emit("resize"),this.$emit("edit")},createSeriesConfig:function(e){return{spanGaps:!0,item:e,label:this.formatLabel(e),stroke:(vn,_n)=>this.items[_n-1].color,width:2,value:(vn,_n)=>typeof _n=="string"||isNaN(_n)?"NaN":_n==null?"--":Math.abs(_n)<.01&&_n!==0||Math.abs(_n)>=1e7?_n.toExponential(6):_n.toFixed(6)}},createOverviewSeriesConfig:function(){return{spanGaps:!0,stroke:(e,vn)=>this.items[vn-1].color}},updateColorIndex:function(e){const vn=e[e.length-1];if(vn){const _n=this.colors.indexOf(vn.color);_n!==-1&&(this.colorIndex=(_n+1)%this.colors.length)}},addItemsToSubscription:function(e=this.items){let vn=this.startTime;this.graphStartDateTime&&(vn=this.graphStartDateTime),this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(_n=>{_n&&OpenC3Auth.setTokens(),this.subscription.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey),start_time:vn,end_time:this.graphEndDateTime})})},clearAllData:function(){this.data[0]=[],this.clearData(this.items)},clearData:function(e){for(const vn of e.map(this.subscriptionKey)){let _n=this.indexes[vn];this.data[_n]=Array(this.data[0].length).fill(null),this.graph.setData(this.data),this.overview&&this.overview.setData(this.data)}this.data.length===2&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data))},removeItems:function(e){this.removeItemsFromSubscription(e);for(const vn of e.map(this.subscriptionKey)){const _n=this.reorderIndexes(vn);this.items.splice(_n-1,1),this.data.splice(_n,1),this.graph.delSeries(_n),this.graph.setData(this.data),this.overview&&(this.overview.delSeries(_n),this.overview.setData(this.data))}this.data.length===1&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data)),this.$emit("resize"),this.$emit("edit")},removeItemsFromSubscription:function(e=this.items){this.subscription&&this.subscription.perform("remove",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey)})},reorderIndexes:function(e){let vn=this.indexes[e];delete this.indexes[e];for(let _n in this.indexes)this.indexes[_n]>vn&&(this.indexes[_n]-=1);return vn},received:function(e){this.cable.recordPing();for(let vn=0;vn<e.length;vn++){let _n=e[vn].__time/1e9,kn=e[0].length;if(kn===0||_n>e[0][kn-1]){for(let qn=0;qn<this.data.length;qn++)this.data[qn].push(null);this.set_data_at_index(this.data[0].length-1,_n,e[vn])}else{let qn=Bk(this.data[0],_n,this.bs_comparator);if(qn>=0)this.set_data_at_index(qn,_n,e[vn]);else{let Hn=-qn-1;for(let Kn=0;Kn<this.data.length;Kn++)this.data[Kn].splice(Hn,0,null);this.set_data_at_index(Hn,_n,e[vn])}}}if(this.startTime==null&&this.data[0][0]){let vn=this.data[0][0]*1e9;this.$emit("started",vn)}this.dataChanged=!0},bs_comparator:function(e,vn){return e-vn},set_data_at_index:function(e,vn,_n){this.data[0][e]=vn;for(const[kn,qn]of Object.entries(_n)){if(kn==="time")continue;let Hn=this.indexes[kn];if(Hn){let Kn=this.data[Hn];if(qn!=null&&qn.raw)Kn[e]=null;else if(typeof qn=="string"){if(Kn[e]=null,!kn.includes("__RAW")){for(let Qn of this.items)if(this.subscriptionKey(Qn)===kn){this.selectedItem=Qn;break}this.changeItem({valueType:"RAW",reduced:this.selectedItem.reduced,reducedType:this.selectedItem.reducedType})}}else Kn[e]=qn}}},subscriptionKey:function(e){let vn=`${e.reduced}__TLM__${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`;return(e.reduced==="REDUCED_MINUTE"||e.reduced==="REDUCED_HOUR"||e.reduced==="REDUCED_DAY")&&(vn+=`__${e.reducedType}`),vn}}},ve={class:"mx-2"},ye={class:"pa-1",id:"chart",ref:"chart"},be=["id"],we=["id"],Te={key:5,class:"u-series",ref:"info"};function De(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-icon"),Qn=vue.resolveComponent("v-tooltip"),zn=vue.resolveComponent("v-spacer"),Wn=vue.resolveComponent("v-toolbar"),Nn=vue.resolveComponent("v-expand-transition"),Dn=vue.resolveComponent("v-card"),In=vue.resolveComponent("graph-edit-dialog"),Bn=vue.resolveComponent("v-text-field"),Ln=vue.resolveComponent("v-row"),Pn=vue.resolveComponent("v-textarea"),Zn=vue.resolveComponent("v-btn"),Jn=vue.resolveComponent("v-dialog"),Xn=vue.resolveComponent("v-list-item-title"),mi=vue.resolveComponent("v-list-item"),ci=vue.resolveComponent("v-list"),oi=vue.resolveComponent("v-menu"),ei=vue.resolveComponent("graph-edit-item-dialog"),fi=vue.resolveComponent("v-list-subheader");return vue.openBlock(),vue.createElementBlock("div",{onClick:vn[21]||(vn[21]=vue.withModifiers(gi=>e.$emit("click"),["prevent"]))},[vue.createVNode(Dn,null,{default:vue.withCtx(()=>[vue.withDirectives(vue.createVNode(Wn,{height:"24",class:vue.normalizeClass(["pl-2 pr-2",_n.selectedGraphId===_n.id?"active":""])},{default:vue.withCtx(()=>[vue.withDirectives(vue.createElementVNode("div",ve,[vue.createVNode(Qn,{text:"Errors",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.mergeProps(gi,{onClick:vn[0]||(vn[0]=yi=>qn.errorDialog=!0)}),{default:vue.withCtx(()=>vn[22]||(vn[22]=[vue.createTextVNode(" mdi-alert ")])),_:2},1040)]),_:1})],512),[[vue.vShow,qn.errors.length!==0]]),vue.createVNode(Qn,{text:"Edit",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.mergeProps(gi,{onClick:vn[1]||(vn[1]=yi=>qn.editGraph=!0),"data-test":"edit-graph-icon"}),{default:vue.withCtx(()=>vn[23]||(vn[23]=[vue.createTextVNode(" mdi-pencil ")])),_:2},1040)]),_:1}),vue.createVNode(zn),vue.createElementVNode("span",null,vue.toDisplayString(qn.title),1),vue.createVNode(zn),vue.withDirectives(vue.createElementVNode("div",null,[Hn.calcFullSize?(vue.openBlock(),vue.createBlock(Qn,{key:0,text:"Collapse",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.mergeProps(gi,{onClick:Hn.collapseAll,"data-test":"collapse-all"}),{default:vue.withCtx(()=>vn[24]||(vn[24]=[vue.createTextVNode(" mdi-arrow-collapse ")])),_:2},1040,["onClick"])]),_:1})):(vue.openBlock(),vue.createBlock(Qn,{key:1,text:"Expand",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.mergeProps(gi,{onClick:Hn.expandAll,"data-test":"expand-all"}),{default:vue.withCtx(()=>vn[25]||(vn[25]=[vue.createTextVNode(" mdi-arrow-expand ")])),_:2},1040,["onClick"])]),_:1}))],512),[[vue.vShow,qn.expand]]),vue.withDirectives(vue.createElementVNode("div",null,[qn.fullWidth?(vue.openBlock(),vue.createBlock(Qn,{key:0,text:"Collapse Width",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.mergeProps(gi,{onClick:Hn.collapseWidth,"data-test":"collapse-width"}),{default:vue.withCtx(()=>vn[26]||(vn[26]=[vue.createTextVNode(" mdi-arrow-collapse-horizontal ")])),_:2},1040,["onClick"])]),_:1})):(vue.openBlock(),vue.createBlock(Qn,{key:1,text:"Expand Width",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.mergeProps(gi,{onClick:Hn.expandWidth,"data-test":"expand-width"}),{default:vue.withCtx(()=>vn[27]||(vn[27]=[vue.createTextVNode(" mdi-arrow-expand-horizontal ")])),_:2},1040,["onClick"])]),_:1}))],512),[[vue.vShow,qn.expand]]),vue.withDirectives(vue.createElementVNode("div",null,[qn.fullHeight?(vue.openBlock(),vue.createBlock(Qn,{key:0,text:"Collapse Height",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.mergeProps(gi,{onClick:Hn.collapseHeight,"data-test":"collapse-height"}),{default:vue.withCtx(()=>vn[28]||(vn[28]=[vue.createTextVNode(" mdi-arrow-collapse-vertical ")])),_:2},1040,["onClick"])]),_:1})):(vue.openBlock(),vue.createBlock(Qn,{key:1,text:"Expand Height",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.mergeProps(gi,{onClick:Hn.expandHeight,"data-test":"expand-height"}),{default:vue.withCtx(()=>vn[29]||(vn[29]=[vue.createTextVNode(" mdi-arrow-expand-vertical ")])),_:2},1040,["onClick"])]),_:1}))],512),[[vue.vShow,qn.expand]]),qn.expand?(vue.openBlock(),vue.createBlock(Qn,{key:0,text:"Minimize",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.mergeProps(gi,{onClick:Hn.minMaxTransition,"data-test":"minimize-screen-icon"}),{default:vue.withCtx(()=>vn[30]||(vn[30]=[vue.createTextVNode(" mdi-window-minimize ")])),_:2},1040,["onClick"])]),_:1})):(vue.openBlock(),vue.createBlock(Qn,{key:1,text:"Maximize",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.mergeProps(gi,{onClick:Hn.minMaxTransition,"data-test":"maximize-screen-icon"}),{default:vue.withCtx(()=>vn[31]||(vn[31]=[vue.createTextVNode(" mdi-window-maximize ")])),_:2},1040,["onClick"])]),_:1})),vue.createVNode(Qn,{text:"Close",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.mergeProps(gi,{onClick:vn[2]||(vn[2]=yi=>e.$emit("close-graph")),"data-test":"close-graph-icon"}),{default:vue.withCtx(()=>vn[32]||(vn[32]=[vue.createTextVNode(" mdi-close-box ")])),_:2},1040)]),_:1})]),_:1},8,["class"]),[[vue.vShow,!qn.hideToolbarData]]),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.withDirectives(vue.createElementVNode("div",ye,[vue.createElementVNode("div",{id:`chart${_n.id}`},null,8,be),vn[33]||(vn[33]=vue.createElementVNode("div",{id:"betweenCharts"},null,-1)),vue.withDirectives(vue.createElementVNode("div",{id:`overview${_n.id}`},null,8,we),[[vue.vShow,qn.showOverview]])],512),[[vue.vShow,qn.expand]])]),_:1})]),_:1}),qn.editGraph?(vue.openBlock(),vue.createBlock(In,{key:0,modelValue:qn.editGraph,"onUpdate:modelValue":vn[3]||(vn[3]=gi=>qn.editGraph=gi),title:qn.title,"legend-position":qn.legendPosition,items:qn.items,"graph-min-y":qn.graphMinY,"graph-max-y":qn.graphMaxY,lines:qn.lines,colors:qn.colors,"start-date-time":qn.graphStartDateTime,"end-date-time":qn.graphEndDateTime,"time-zone":_n.timeZone,onRemove:vn[4]||(vn[4]=gi=>Hn.removeItems([gi])),onOk:Hn.editGraphClose,onCancel:vn[5]||(vn[5]=gi=>qn.editGraph=!1)},null,8,["modelValue","title","legend-position","items","graph-min-y","graph-max-y","lines","colors","start-date-time","end-date-time","time-zone","onOk"])):vue.createCommentVNode("",!0),vue.createVNode(Jn,{modelValue:qn.errorDialog,"onUpdate:modelValue":vn[7]||(vn[7]=gi=>qn.errorDialog=gi),"max-width":"600"},{default:vue.withCtx(()=>[vue.createVNode(Wn,{height:"24"},{default:vue.withCtx(()=>[vue.createVNode(zn),vn[34]||(vn[34]=vue.createElementVNode("span",null," Errors ",-1)),vue.createVNode(zn)]),_:1}),vue.createVNode(Dn,{class:"pa-3"},{default:vue.withCtx(()=>[vue.createVNode(Ln,{dense:""},{default:vue.withCtx(()=>[vue.createVNode(Bn,{readonly:"","hide-details":"",modelValue:qn.title,"onUpdate:modelValue":vn[6]||(vn[6]=gi=>qn.title=gi),class:"pb-2",label:"Graph Title"},null,8,["modelValue"])]),_:1}),vue.createVNode(Ln,{class:"my-3"},{default:vue.withCtx(()=>[vue.createVNode(Pn,{readonly:"",rows:"8",value:Hn.error},null,8,["value"])]),_:1}),vue.createVNode(Ln,null,{default:vue.withCtx(()=>[vue.createVNode(Zn,{block:"",onClick:Hn.clearErrors},{default:vue.withCtx(()=>vn[35]||(vn[35]=[vue.createTextVNode(" Clear ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),qn.editGraphMenu?(vue.openBlock(),vue.createBlock(oi,{key:1,modelValue:qn.editGraphMenu,"onUpdate:modelValue":vn[9]||(vn[9]=gi=>qn.editGraphMenu=gi),target:[qn.editGraphMenuX,qn.editGraphMenuY],absolute:"","offset-y":""},{default:vue.withCtx(()=>[vue.createVNode(ci,null,{default:vue.withCtx(()=>[vue.createVNode(mi,{onClick:vn[8]||(vn[8]=gi=>qn.editGraph=!0)},{default:vue.withCtx(()=>[vue.createVNode(Xn,{style:{cursor:"pointer"}},{default:vue.withCtx(()=>[vue.createTextVNode(" Edit "+vue.toDisplayString(qn.title),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):vue.createCommentVNode("",!0),qn.editItem?(vue.openBlock(),vue.createBlock(ei,{key:2,modelValue:qn.editItem,"onUpdate:modelValue":vn[10]||(vn[10]=gi=>qn.editItem=gi),colors:qn.colors,item:qn.selectedItem,onChangeColor:Hn.changeColor,onChangeLimits:Hn.changeLimits,onCancel:vn[11]||(vn[11]=gi=>qn.editItem=!1),onClose:Hn.closeEditItem},null,8,["modelValue","colors","item","onChangeColor","onChangeLimits","onClose"])):vue.createCommentVNode("",!0),qn.itemMenu?(vue.openBlock(),vue.createBlock(oi,{key:3,modelValue:qn.itemMenu,"onUpdate:modelValue":vn[15]||(vn[15]=gi=>qn.itemMenu=gi),target:[qn.itemMenuX,qn.itemMenuY],absolute:"","offset-y":""},{default:vue.withCtx(()=>[vue.createVNode(ci,{nav:"",density:"compact"},{default:vue.withCtx(()=>[vue.createVNode(fi,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(qn.selectedItem.targetName)+" "+vue.toDisplayString(qn.selectedItem.packetName)+" "+vue.toDisplayString(qn.selectedItem.itemName),1)]),_:1}),vue.createVNode(mi,{onClick:vn[12]||(vn[12]=gi=>qn.editItem=!0)},{prepend:vue.withCtx(()=>[vue.createVNode(Kn,{icon:"mdi-pencil"})]),default:vue.withCtx(()=>[vue.createVNode(Xn,null,{default:vue.withCtx(()=>vn[36]||(vn[36]=[vue.createTextVNode(" Edit ")])),_:1})]),_:1}),vue.createVNode(mi,{onClick:vn[13]||(vn[13]=gi=>Hn.clearData([qn.selectedItem]))},{prepend:vue.withCtx(()=>[vue.createVNode(Kn,{icon:"mdi-eraser"})]),default:vue.withCtx(()=>[vue.createVNode(Xn,null,{default:vue.withCtx(()=>vn[37]||(vn[37]=[vue.createTextVNode(" Clear ")])),_:1})]),_:1}),vue.createVNode(mi,{onClick:vn[14]||(vn[14]=gi=>Hn.removeItems([qn.selectedItem]))},{prepend:vue.withCtx(()=>[vue.createVNode(Kn,{icon:"mdi-delete"})]),default:vue.withCtx(()=>[vue.createVNode(Xn,null,{default:vue.withCtx(()=>vn[38]||(vn[38]=[vue.createTextVNode(" Delete ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):vue.createCommentVNode("",!0),qn.legendMenu?(vue.openBlock(),vue.createBlock(oi,{key:4,modelValue:qn.legendMenu,"onUpdate:modelValue":vn[20]||(vn[20]=gi=>qn.legendMenu=gi),target:[qn.legendMenuX,qn.legendMenuY],absolute:"","offset-y":""},{default:vue.withCtx(()=>[vue.createVNode(ci,null,{default:vue.withCtx(()=>[vue.createVNode(mi,{onClick:vn[16]||(vn[16]=gi=>Hn.moveLegend("top"))},{default:vue.withCtx(()=>[vue.createVNode(Xn,{style:{cursor:"pointer"}},{default:vue.withCtx(()=>vn[39]||(vn[39]=[vue.createTextVNode(" Legend Top ")])),_:1})]),_:1}),vue.createVNode(mi,{onClick:vn[17]||(vn[17]=gi=>Hn.moveLegend("bottom"))},{default:vue.withCtx(()=>[vue.createVNode(Xn,{style:{cursor:"pointer"}},{default:vue.withCtx(()=>vn[40]||(vn[40]=[vue.createTextVNode(" Legend Bottom ")])),_:1})]),_:1}),vue.createVNode(mi,{onClick:vn[18]||(vn[18]=gi=>Hn.moveLegend("left"))},{default:vue.withCtx(()=>[vue.createVNode(Xn,{style:{cursor:"pointer"}},{default:vue.withCtx(()=>vn[41]||(vn[41]=[vue.createTextVNode(" Legend Left ")])),_:1})]),_:1}),vue.createVNode(mi,{onClick:vn[19]||(vn[19]=gi=>Hn.moveLegend("right"))},{default:vue.withCtx(()=>[vue.createVNode(Xn,{style:{cursor:"pointer"}},{default:vue.withCtx(()=>vn[42]||(vn[42]=[vue.createTextVNode(" Legend RIght ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):vue.createCommentVNode("",!0),_n.sparkline?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",Te,[vue.createVNode(Qn,{text:"Click item to toggle, Right click to edit",location:"top"},{activator:vue.withCtx(({props:gi})=>[vue.createVNode(Kn,vue.normalizeProps(vue.guardReactiveProps(gi)),{default:vue.withCtx(()=>vn[43]||(vn[43]=[vue.createTextVNode(" mdi-information-variant-circle ")])),_:2},1040)]),_:1})],512))])}const Se=s$2(ge,[["render",De],["__scopeId","data-v-485a5da2"]]),o$6={mixins:[zk],props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},screenValues:{type:Object,default:()=>{}},screenTimeZone:{type:String,default:"local"},namedWidgets:{type:Object,default:{}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{appliedSettings:[],appliedStyle:{},widgetName:null,screenId:"NO_SCREEN"}},computed:{computedStyle:function(){return this.appliedSettings.forEach(e=>{this.applyStyleSetting(e)}),this.appliedStyle.width===void 0&&this.appliedStyle.height===void 0&&(this.appliedStyle.flex="0 10 100%"),this.appliedStyle},screen:function(){const e=this;return{getNamedWidget:function(vn){return e.$store.getters.namedWidget(e.toQualifiedWidgetName(vn))},open:function(vn,_n){e.$emit("open",vn,_n)},close:function(vn,_n){e.$emit("close",vn,_n)},closeAll:function(){e.$emit("closeAll")}}},listeners:function(){return Object.entries(this.$attrs).reduce((e,vn)=>vn[0].startsWith("on")?{...e,[vn[0]]:vn[1]}:e,{})}},watch:{widgetName:function(e,vn){this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(vn)),this.$store.commit("setNamedWidget",{[this.toQualifiedWidgetName(e)]:this})}},created(){var e,vn;this.screenId=(e=this.settings.find(_n=>_n[0]==="__SCREEN_ID__"))==null?void 0:e.at(1),this.widgetName=(vn=this.settings.find(_n=>_n[0]==="NAMED_WIDGET"))==null?void 0:vn.at(1),this.appliedSettings=this.settings.map(_n=>{const kn=parseInt(_n[0]);if(isNaN(kn)||this.widgetIndex===null)return _n;if(this.widgetIndex===kn)return _n.slice(1)}).filter(_n=>_n!==void 0)},beforeUnmount(){this.widgetName&&this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(this.widgetName))},methods:{applyStyleSetting(e){switch(e[0]){case"TEXTALIGN":this.appliedStyle["text-align"]=e[1].toLowerCase()+" !important",this.appliedStyle["--text-align"]=e[1].toLowerCase();break;case"PADDING":isNaN(Number(e[1]))||(e[1]+="px"),this.appliedStyle.padding=e[1]+" !important";break;case"MARGIN":isNaN(Number(e[1]))||(e[1]+="px"),this.appliedStyle.margin=e[1]+" !important";break;case"BACKCOLOR":this.appliedStyle["background-color"]=this.getColor(e.slice(1))+" !important";break;case"TEXTCOLOR":this.appliedStyle.color=this.getColor(e.slice(1))+" !important";break;case"BORDERCOLOR":this.appliedStyle["border-width"]="1px!important",this.appliedStyle["border-style"]="solid!important",this.appliedStyle["border-color"]=this.getColor(e.slice(1))+" !important";break;case"WIDTH":isNaN(Number(e[1]))||(e[1]+="px"),this.appliedStyle.width=e[1]+" !important";break;case"HEIGHT":isNaN(Number(e[1]))||(e[1]+="px"),this.appliedStyle.height=e[1]+" !important";break;case"RAW":this.appliedStyle[e[1].toLowerCase()]=e[2]+" !important";break}},verifyNumParams(e,vn,_n,kn=""){let qn={line:this.line,lineNumber:this.lineNumber,keyword:e,parameters:this.parameters};for(let Hn=1;Hn<=vn;Hn++)if(this.parameters[Hn-1]===void 0)throw new af(qn,`Not enough parameters for ${e}.`,kn,"https://docs.openc3.com/docs/configuration");if(_n!==null&&this.parameters.length>_n)throw new af(qn,`Too many parameters for ${e}.`,kn,"https://docs.openc3.com/docs/configuration")},setWidth(e,vn="px",_n="120"){let kn=this.appliedSettings.find(qn=>qn[0]==="WIDTH");return kn?kn.WIDTH:e?(this.appliedSettings.push(["WIDTH",`${e}${vn}`]),parseInt(e)):(this.appliedSettings.push(["WIDTH",`${_n}${vn}`]),parseInt(_n))},setHeight(e,vn="px",_n="20"){let kn=null;return kn=this.appliedSettings.find(qn=>qn[0]==="HEIGHT"),kn?kn.HEIGHT:e?(this.appliedSettings.push(["HEIGHT",`${e}${vn}`]),parseInt(e)):(this.appliedSettings.push(["HEIGHT",`${_n}${vn}`]),parseInt(_n))},getColor(e){switch(e.length){case 1:return e[0].toLowerCase();case 3:return`rgb(${e[0]},${e[1]},${e[2]})`}},toQualifiedWidgetName(e){return`${this.screenId}:${e}`}}};var w$3={},b$5;function V(){return b$5||(b$5=1,function(e){(function(){var vn={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function _n(Qn){return qn(Kn(Qn),arguments)}function kn(Qn,zn){return _n.apply(null,[Qn].concat(zn||[]))}function qn(Qn,zn){var Wn=1,Nn=Qn.length,Dn,In="",Bn,Ln,Pn,Zn,Jn,Xn,mi,ci;for(Bn=0;Bn<Nn;Bn++)if(typeof Qn[Bn]=="string")In+=Qn[Bn];else if(typeof Qn[Bn]=="object"){if(Pn=Qn[Bn],Pn.keys)for(Dn=zn[Wn],Ln=0;Ln<Pn.keys.length;Ln++){if(Dn==null)throw new Error(_n('[sprintf] Cannot access property "%s" of undefined value "%s"',Pn.keys[Ln],Pn.keys[Ln-1]));Dn=Dn[Pn.keys[Ln]]}else Pn.param_no?Dn=zn[Pn.param_no]:Dn=zn[Wn++];if(vn.not_type.test(Pn.type)&&vn.not_primitive.test(Pn.type)&&Dn instanceof Function&&(Dn=Dn()),vn.numeric_arg.test(Pn.type)&&typeof Dn!="number"&&isNaN(Dn))throw new TypeError(_n("[sprintf] expecting number but found %T",Dn));switch(vn.number.test(Pn.type)&&(mi=Dn>=0),Pn.type){case"b":Dn=parseInt(Dn,10).toString(2);break;case"c":Dn=String.fromCharCode(parseInt(Dn,10));break;case"d":case"i":Dn=parseInt(Dn,10);break;case"j":Dn=JSON.stringify(Dn,null,Pn.width?parseInt(Pn.width):0);break;case"e":Dn=Pn.precision?parseFloat(Dn).toExponential(Pn.precision):parseFloat(Dn).toExponential();break;case"f":Dn=Pn.precision?parseFloat(Dn).toFixed(Pn.precision):parseFloat(Dn);break;case"g":Dn=Pn.precision?String(Number(Dn.toPrecision(Pn.precision))):parseFloat(Dn);break;case"o":Dn=(parseInt(Dn,10)>>>0).toString(8);break;case"s":Dn=String(Dn),Dn=Pn.precision?Dn.substring(0,Pn.precision):Dn;break;case"t":Dn=String(!!Dn),Dn=Pn.precision?Dn.substring(0,Pn.precision):Dn;break;case"T":Dn=Object.prototype.toString.call(Dn).slice(8,-1).toLowerCase(),Dn=Pn.precision?Dn.substring(0,Pn.precision):Dn;break;case"u":Dn=parseInt(Dn,10)>>>0;break;case"v":Dn=Dn.valueOf(),Dn=Pn.precision?Dn.substring(0,Pn.precision):Dn;break;case"x":Dn=(parseInt(Dn,10)>>>0).toString(16);break;case"X":Dn=(parseInt(Dn,10)>>>0).toString(16).toUpperCase();break}vn.json.test(Pn.type)?In+=Dn:(vn.number.test(Pn.type)&&(!mi||Pn.sign)?(ci=mi?"+":"-",Dn=Dn.toString().replace(vn.sign,"")):ci="",Jn=Pn.pad_char?Pn.pad_char==="0"?"0":Pn.pad_char.charAt(1):" ",Xn=Pn.width-(ci+Dn).length,Zn=Pn.width&&Xn>0?Jn.repeat(Xn):"",In+=Pn.align?ci+Dn+Zn:Jn==="0"?ci+Zn+Dn:Zn+ci+Dn)}return In}var Hn=Object.create(null);function Kn(Qn){if(Hn[Qn])return Hn[Qn];for(var zn=Qn,Wn,Nn=[],Dn=0;zn;){if((Wn=vn.text.exec(zn))!==null)Nn.push(Wn[0]);else if((Wn=vn.modulo.exec(zn))!==null)Nn.push("%");else if((Wn=vn.placeholder.exec(zn))!==null){if(Wn[2]){Dn|=1;var In=[],Bn=Wn[2],Ln=[];if((Ln=vn.key.exec(Bn))!==null)for(In.push(Ln[1]);(Bn=Bn.substring(Ln[0].length))!=="";)if((Ln=vn.key_access.exec(Bn))!==null)In.push(Ln[1]);else if((Ln=vn.index_access.exec(Bn))!==null)In.push(Ln[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");Wn[2]=In}else Dn|=2;if(Dn===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");Nn.push({placeholder:Wn[0],param_no:Wn[1],keys:Wn[2],sign:Wn[3],pad_char:Wn[4],align:Wn[5],width:Wn[6],precision:Wn[7],type:Wn[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");zn=zn.substring(Wn[0].length)}return Hn[Qn]=Nn}e.sprintf=_n,e.vsprintf=kn,typeof window<"u"&&(window.sprintf=_n,window.vsprintf=kn)})()}(w$3)),w$3}V();const k$6={methods:{formatValueBase(e,vn){return this.isJsonString(e)?this.formatJsonString(e):Array.isArray(e)?this.formatArray(e):this.isObject(e)?"":vn&&e?sprintf(vn,e):String(e)},isJsonString(e){return e&&e.json_class==="String"&&e.raw!==void 0},formatJsonString(e){let vn=Array.from(e.raw.slice(0,32),_n=>("0"+(_n&255).toString(16)).slice(-2)).join(" ").toUpperCase();return e.raw.length>32&&(vn+="..."),vn},formatArray(e){return"["+e.map(vn=>typeof vn=="string"?`"${vn}"`:vn).join(", ")+"]"},isObject(e){return Object.prototype.toString.call(e).slice(8,-1)==="Object"}}},L$2={mixins:[o$6,Pe$1,k$6],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2]),"_blank")}}]}},watch:{_counter:function(e,vn){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let e=this.limitsState;return e===null&&(this.screenValues?this.screenValues[this.valueId]&&(e=this.screenValues[this.valueId][1]):e=null),e},_counter:function(){let e=this.counter;return e===null&&(this.screenValues?this.screenValues[this.valueId]&&(e=this.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroStatus(){switch(this.limitsColor){case"green":return"normal";case"yellow":return"caution";case"red":return"critical";case"blue":return"standby";default:return null}},limitsColor(){let e=this._limitsState;if(e!=null)switch(e){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let e=this._limitsState;if(e!=null){let vn=e.charAt(0);return e.endsWith("_LOW")&&(vn=vn.toLowerCase()),vn}return""}},created(){if(this.value===null||this.limitsState===null){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let e=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(e[1]),this.parameters[2]=this.parameters[2].replace(e[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue(e){return e&&this.valueId&&(this.valueId.includes("PACKET_TIMEFORMATTED")||this.valueId.includes("RECEIVED_TIMEFORMATTED"))?(e=e.replaceAll("/","-"),this.formatUtcToLocal(new Date(e),this.appliedTimeZone)):this.formatValueBase(e,this.formatString)},showContextMenu(e){e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}},z$4={components:{DetailsDialog:P$1},data:function(){return{width:200,height:100,itemsPerRow:4,formatter:null}},mixins:[L$2],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.itemsPerRow=parseInt(this.parameters[6]))},methods:{getType:function(){let e="CONVERTED";return this.parameters[7]&&(e=this.parameters[7]),e},formatValue:function(e){var vn;let _n="",kn=" ",qn=`
1414
+ `,Hn=0;if(Array.isArray(e)){for(const Kn of e)this.formatter&&((vn=this.formatter)==null?void 0:vn.toLowerCase())!=="nil"?_n+=sprintf(this.formatter,Kn):_n+=Kn,Hn+=1,Hn%this.itemsPerRow===0?(Hn=0,_n+=qn):_n+=kn;return _n.trim()}else return e}}},A$2={class:"array-widget-container"};function B$3(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-textarea"),Qn=vue.resolveComponent("v-list-item-title"),zn=vue.resolveComponent("v-list-item"),Wn=vue.resolveComponent("v-list"),Nn=vue.resolveComponent("v-menu"),Dn=vue.resolveComponent("details-dialog");return vue.openBlock(),vue.createElementBlock("div",A$2,[vue.createVNode(Kn,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":e._value,class:vue.normalizeClass(e.valueClass),style:vue.normalizeStyle([e.computedStyle,Hn.aging]),"data-test":"array-widget",onContextmenu:e.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),vue.createVNode(Nn,{modelValue:e.contextMenuShown,"onUpdate:modelValue":vn[0]||(vn[0]=In=>e.contextMenuShown=In),target:[e.x,e.y]},{default:vue.withCtx(()=>[vue.createVNode(Wn,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.contextMenuOptions,(In,Bn)=>(vue.openBlock(),vue.createBlock(zn,{key:Bn,onClick:vue.withModifiers(In.action,["stop"])},{default:vue.withCtx(()=>[vue.createVNode(Qn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(In.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),vue.createVNode(Dn,{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2],modelValue:e.viewDetails,"onUpdate:modelValue":vn[1]||(vn[1]=In=>e.viewDetails=In)},null,8,["target-name","packet-name","item-name","modelValue"])])}const $$5=s$2(z$4,[["render",B$3],["__scopeId","data-v-62b9e9e1"]]),ArrayWidgetBy62tXtU=Object.freeze(Object.defineProperty({__proto__:null,default:$$5},Symbol.toStringTag,{value:"Module"})),u$c={mixins:[o$6],data(){return{minValue:null,maxValue:null,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:"DEFAULT",currentSetRefreshInterval:null}},computed:{cssProps:function(){let e=this.screenValues[this.valueId][0],vn=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(vn),{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition(e,vn)+"%","--redlow-width":this.redLow+"%","--redhigh-width":this.redHigh+"%","--yellowlow-width":this.yellowLow+"%","--yellowhigh-width":this.yellowHigh+"%","--greenlow-width":this.greenLow+"%","--greenhigh-width":this.greenHigh+"%","--blue-width":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:"DEFAULT"}},created(){this.api=new Wk,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then(e=>{this.limitsSettings=e}),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,60*1e3),this.appliedSettings.forEach(e=>{e[0]==="MIN_VALUE"&&(this.minValue=parseInt(e[1])),e[0]==="MAX_VALUE"&&(this.maxValue=parseInt(e[1]))}),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__CONVERTED`,this.$emit("addItem",this.valueId)},destroyed(){this.$emit("deleteItem",this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{modifyLimits(e){this.redLow=10,this.redHigh=10,this.minValue!==null&&(e[0]<=this.minValue&&(e[0]=this.minValue,this.redLow=0),e[1]<=this.minValue&&(e[1]=this.minValue),e[2]<=this.minValue&&(e[2]=this.minValue),e[3]<=this.minValue&&(e[3]=this.minValue),e.length>4&&e[4]<=this.minValue&&(e[4]=this.minValue),e.length>4&&e[5]<=this.minValue&&(e[5]=this.minValue)),this.maxValue!==null&&(e[0]>=this.maxValue&&(e[0]=this.maxValue),e[1]>=this.maxValue&&(e[1]=this.maxValue),e[2]>=this.maxValue&&(e[2]=this.maxValue),e[3]>=this.maxValue&&(e[3]=this.maxValue,this.redHigh=0),e.length>4&&e[4]>=this.maxValue&&(e[4]=this.maxValue),e.length>4&&e[5]>=this.maxValue&&(e[5]=this.maxValue)),e[0]==e[1]&&(this.yellowLow=0),e[2]==e[3]&&(this.yellowHigh=0);let vn=80;return this.redLow==0&&(vn+=10),this.redHigh==0&&(vn+=10),this.scale=(e[3]-e[0])/vn,e},calcPosition(e,vn){if(!e||!vn)return;let _n=vn[0]-10*this.scale;if(this.minValue&&this.minValue==vn[0]&&(_n=vn[0]),vn[3]-10*this.scale,this.maxValue&&this.maxValue==vn[3]&&vn[3],e.raw)return e.raw==="-Infinity"?0:100;if(e<this.min)return 0;if(e>this.max)return 100;{const kn=parseInt((e-_n)/this.scale);return kn>100?100:kn<0?0:kn}},calcLimits(e){e&&(this.yellowLow=Math.round((e[1]-e[0])/this.scale),this.yellowHigh=Math.round((e[3]-e[2])/this.scale),e.length>4?(this.greenLow=Math.round((e[4]-e[1])/this.scale),this.greenHigh=Math.round((e[2]-e[5])/this.scale),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0))},getCurrentLimitsSet:function(){this.api.get_limits_set().then(e=>{this.currentLimitsSet=e})}}},M$1={components:{DetailsDialog:P$1},data:function(){return{width:400,height:400,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[L$2],computed:{aging(){return{"--aging":this.grayLevel}},rows:function(){return(this.height-16)/24}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.bytesPerWord=parseInt(this.parameters[6])),this.parameters[7]&&(this.wordsPerRow=parseInt(this.parameters[7])),this.parameters[8]&&(this.addrFormat=this.parameters[8])},methods:{getType:function(){let e="RAW";return this.parameters[9]&&(e=this.parameters[9]),e},formatValue:function(e){let vn="";if(e&&e.raw){let _n=" ",kn=`
1415
+ `,qn=0,Hn=0;const Kn=this.bytesPerWord*this.wordsPerRow;for(const Qn of e.raw)this.addrFormat&&qn===0&&(vn+=sprintf(this.addrFormat,Hn),Hn+=Kn),vn+=sprintf(this.formatter,Qn),qn+=1,qn%Kn===0?(qn=0,vn+=kn):qn%this.bytesPerWord===0&&(vn+=_n)}else vn=e;return vn}}},R$1={class:"block-widget-container"};function S$6(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-textarea"),Qn=vue.resolveComponent("v-list-item-title"),zn=vue.resolveComponent("v-list-item"),Wn=vue.resolveComponent("v-list"),Nn=vue.resolveComponent("v-menu"),Dn=vue.resolveComponent("details-dialog");return vue.openBlock(),vue.createElementBlock("div",R$1,[vue.createVNode(Kn,{variant:"solo",density:"compact",readonly:"","no-resize":"","hide-details":"",rows:Hn.rows,width:e.width,"model-value":e._value,class:vue.normalizeClass(e.valueClass),style:vue.normalizeStyle([e.computedStyle,Hn.aging]),"data-test":"valueText",onContextmenu:e.showContextMenu},null,8,["rows","width","model-value","class","style","onContextmenu"]),vue.createVNode(Nn,{modelValue:e.contextMenuShown,"onUpdate:modelValue":vn[0]||(vn[0]=In=>e.contextMenuShown=In),target:[e.x,e.y]},{default:vue.withCtx(()=>[vue.createVNode(Wn,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.contextMenuOptions,(In,Bn)=>(vue.openBlock(),vue.createBlock(zn,{key:Bn,onClick:vue.withModifiers(In.action,["stop"])},{default:vue.withCtx(()=>[vue.createVNode(Qn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(In.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),vue.createVNode(Dn,{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2],modelValue:e.viewDetails,"onUpdate:modelValue":vn[1]||(vn[1]=In=>e.viewDetails=In)},null,8,["target-name","packet-name","item-name","modelValue"])])}const T$1=s$2(M$1,[["render",S$6],["__scopeId","data-v-4d4589c2"]]),BlockWidgetCrT45ode=Object.freeze(Object.defineProperty({__proto__:null,default:T$1},Symbol.toStringTag,{value:"Module"})),_sfc_main$1={mixins:[o$6],components:{CriticalCmdDialog:N$3},data(){return{api:null,displaySendHazardous:!1,lastCmd:"",criticalCmdUuid:null,criticalCmdString:null,criticalCmdUser:null,displayCriticalCmd:!1}},computed:{buttonText(){return this.parameters[0]},eval(){return this.parameters[1]}},created(){this.api=new Wk},methods:{async onClick(){const lines=this.eval.split(";;"),self=this,screen=this.screen,screenValues=this.screenValues,screenTimeZone=this.screenTimeZone,api=this.api,runScript=this.runScript;(self||screen||screenValues||screenTimeZone||api||runScript)&&this.$nextTick(()=>{});for(let i=0;i<lines.length;i++)try{const result=eval(lines[i].trim());result instanceof Promise&&await result}catch(e){if(e.message.includes("CriticalCmdError"))this.criticalCmdUuid=e.object.data.instance_variables["@uuid"],this.criticalCmdString=e.object.data.instance_variables["@cmd_string"],this.criticalCmdUser=e.object.data.instance_variables["@username"],this.displayCriticalCmd=!0;else if(e.message.includes("is Hazardous"))for(this.lastCmd=e.message.split(`
1416
+ `).pop(),this.displaySendHazardous=!0;this.displaySendHazardous;)await new Promise(vn=>setTimeout(vn,500));else console.error(e)}},async sendHazardousCmd(){this.lastCmd=this.lastCmd.replace("cmd(","this.api.cmd_no_hazardous_check(");try{const result=eval(this.lastCmd);result instanceof Promise&&await result}catch(e){e.message.includes("CriticalCmdError")&&(this.criticalCmdUuid=e.object.data.instance_variables["@uuid"],this.criticalCmdString=e.object.data.instance_variables["@cmd_string"],this.criticalCmdUser=e.object.data.instance_variables["@username"],this.displayCriticalCmd=!0)}this.displaySendHazardous=!1},cancelHazardousCmd(){this.displaySendHazardous=!1},runScript(e,vn=!0,_n={}){let kn=[];for(const qn in _n)kn.push({key:qn,value:_n[qn],readonly:!1});Ok.post(`/script-api/scripts/${e}/run`,{data:{environment:kn}}).then(qn=>{vn&&window.open(`/tools/scriptrunner/${qn.data}`,"_blank")})}}},_hoisted_1$1={class:"mx-1"};function _sfc_render$1(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-btn"),Qn=vue.resolveComponent("v-card-title"),zn=vue.resolveComponent("v-row"),Wn=vue.resolveComponent("v-spacer"),Nn=vue.resolveComponent("v-card-text"),Dn=vue.resolveComponent("v-card"),In=vue.resolveComponent("v-dialog"),Bn=vue.resolveComponent("critical-cmd-dialog");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createVNode(Kn,{class:"ma-1",color:"primary",style:vue.normalizeStyle(e.computedStyle),onClick:Hn.onClick},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Hn.buttonText),1)]),_:1},8,["style","onClick"]),vue.createVNode(In,{modelValue:qn.displaySendHazardous,"onUpdate:modelValue":vn[0]||(vn[0]=Ln=>qn.displaySendHazardous=Ln),"max-width":"300"},{default:vue.withCtx(()=>[vue.createVNode(Dn,null,{default:vue.withCtx(()=>[vue.createVNode(Qn,null,{default:vue.withCtx(()=>vn[2]||(vn[2]=[vue.createTextVNode("Hazardous")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1,[vue.createVNode(zn,{class:"my-2"},{default:vue.withCtx(()=>vn[3]||(vn[3]=[vue.createElementVNode("span",null," Warning: Command is Hazardous. Send? ",-1)])),_:1}),vue.createVNode(zn,null,{default:vue.withCtx(()=>[vue.createVNode(Wn),vue.createVNode(Kn,{onClick:Hn.cancelHazardousCmd,variant:"outlined"},{default:vue.withCtx(()=>vn[4]||(vn[4]=[vue.createTextVNode(" Cancel ")])),_:1},8,["onClick"]),vue.createVNode(Kn,{onClick:Hn.sendHazardousCmd,class:"bg-primary mx-1"},{default:vue.withCtx(()=>vn[5]||(vn[5]=[vue.createTextVNode(" Send ")])),_:1},8,["onClick"])]),_:1})])]),_:1})]),_:1})]),_:1},8,["modelValue"]),vue.createVNode(Bn,{uuid:qn.criticalCmdUuid,cmdString:qn.criticalCmdString,cmdUser:qn.criticalCmdUser,modelValue:qn.displayCriticalCmd,"onUpdate:modelValue":vn[1]||(vn[1]=Ln=>qn.displayCriticalCmd=Ln)},null,8,["uuid","cmdString","cmdUser","modelValue"])])}const ButtonWidget=s$2(_sfc_main$1,[["render",_sfc_render$1]]),ButtonWidgetCKyBBv6m=Object.freeze(Object.defineProperty({__proto__:null,default:ButtonWidget},Symbol.toStringTag,{value:"Module"})),r$1={mixins:[o$6],props:{widgets:{type:Array,default:()=>[]}}},h$c={mixins:[r$1],computed:{width(){return this.parameters[0]+"px"},height(){return this.parameters[1]+"px"}}},d$9=["width","height"];function f$d(e,vn,_n,kn,qn,Hn){return vue.openBlock(),vue.createElementBlock("svg",{id:"canvas",width:Hn.width,height:Hn.height},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.widgets,(Kn,Qn)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Kn.type),vue.mergeProps({ref_for:!0},e.listeners,{key:Qn,target:Kn.target,parameters:Kn.parameters,settings:Kn.settings,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,widgets:Kn.widgets,name:Kn.name,line:Kn.line,"line-number":Kn.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],8,d$9)}const L$1=s$2(h$c,[["render",f$d],["__scopeId","data-v-47bdfc3c"]]),CanvasWidgetPqkppHC7=Object.freeze(Object.defineProperty({__proto__:null,default:L$1},Symbol.toStringTag,{value:"Module"})),s$1={mixins:[o$6]},c$5=["cx","cy","r","fill"];function n$6(e,vn,_n,kn,qn,Hn){return vue.openBlock(),vue.createElementBlock("circle",{cx:e.parameters[0],cy:e.parameters[1],r:e.parameters[3],fill:e.parameters[2]},null,8,c$5)}const $$4=s$2(s$1,[["render",n$6]]),CanvasdotWidgetBUbJgM2d=Object.freeze(Object.defineProperty({__proto__:null,default:$$4},Symbol.toStringTag,{value:"Module"})),s={props:{target:{type:String,require:!0}},methods:{getPresignedUrl:async function(e){let vn="targets_modified";return await Ok.get(`/openc3-api/storage/exists/${encodeURIComponent(`${window.openc3Scope}/${vn}/${this.target}/public/${e}`)}?bucket=OPENC3_CONFIG_BUCKET`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).catch(_n=>{vn="targets"}),(await Ok.get(`/openc3-api/storage/download/${encodeURIComponent(`${window.openc3Scope}/${vn}/${this.target}/public/${e}`)}?bucket=OPENC3_CONFIG_BUCKET`)).data.url}}},o$5={mixins:[o$6,s],data:function(){return{imageUrl:null,screenTarget:null,screenName:null}},computed:{width:function(){return this.parameters[3]?`${this.parameters[3]}px`:"100%"},height:function(){return this.parameters[4]?`${this.parameters[4]}px`:"100%"},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.appliedSettings.forEach(e=>{e[0]==="SCREEN"&&(this.screenTarget=e[1],this.screenName=e[2])}),this.parameters[0].startsWith("http")?this.imageUrl=this.parameters[0]:this.getPresignedUrl(this.parameters[0]).then(e=>{this.imageUrl=e})},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}},p$a=["href","x","y","width","height"];function u$b(e,vn,_n,kn,qn,Hn){return e.imageUrl?(vue.openBlock(),vue.createElementBlock("image",{key:0,href:e.imageUrl,x:e.parameters[1],y:e.parameters[2],width:Hn.width,height:Hn.height,style:vue.normalizeStyle(Hn.pointerStyle),onClick:vn[0]||(vn[0]=(...Kn)=>Hn.clickHandler&&Hn.clickHandler(...Kn))},null,12,p$a)):vue.createCommentVNode("",!0)}const S$5=s$2(o$5,[["render",u$b]]),CanvasimageWidgetDPVBY7mi=Object.freeze(Object.defineProperty({__proto__:null,default:S$5},Symbol.toStringTag,{value:"Module"})),y$9={mixins:[o$6,s],data:function(){return{images:[],defaultImage:null,screenTarget:null,screenName:null}},computed:{selectedValue:function(){return this.screenValues[this.valueId]?this.screenValues[this.valueId][0]:null},showDefault:function(){return!this.images.some(e=>e.value==this.selectedValue)},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.appliedSettings.forEach(vn=>{vn[0]==="SCREEN"&&(this.screenTarget=vn[1],this.screenName=vn[2])}),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]||"RAW"}`,this.$emit("addItem",this.valueId);const e=this.appliedSettings.filter(vn=>vn[0]==="IMAGE").map(async vn=>{let _n=vn[2];return _n.startsWith("http")||(_n=await this.getPresignedUrl(_n)),{url:_n,value:vn[1],x:vn[3],y:vn[4],width:vn[5],height:vn[6]}});if(Promise.all(e).then(vn=>{this.images=vn}),this.parameters[4]){const vn={x:this.parameters[5],y:this.parameters[6],width:this.parameters[7]?`${this.parameters[7]}px`:"100%",height:this.parameters[8]?`${this.parameters[8]}px`:"100%"};let _n=this.parameters[4];_n.startsWith("http")?this.defaultImage={...vn,url:_n}:this.getPresignedUrl(_n).then(kn=>{this.defaultImage={...vn,url:kn}})}},unmounted:function(){this.$emit("deleteItem",this.valueId)},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}},v$7=["href","x","y","width","height"],w$2=["href","x","y","width","height"];function k$5(e,vn,_n,kn,qn,Hn){return vue.openBlock(),vue.createElementBlock("g",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.images,Kn=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("image",{key:Kn.value,href:Kn.url,x:Kn.x,y:Kn.y,width:Kn.width,height:Kn.height,style:vue.normalizeStyle(Hn.pointerStyle),onClick:vn[0]||(vn[0]=(...Qn)=>Hn.clickHandler&&Hn.clickHandler(...Qn))},null,12,v$7)),[[vue.vShow,Kn.value==Hn.selectedValue]])),128)),e.defaultImage?vue.withDirectives((vue.openBlock(),vue.createElementBlock("image",{key:0,href:e.defaultImage.url,x:e.defaultImage.x,y:e.defaultImage.y,width:e.defaultImage.width,height:e.defaultImage.height,style:vue.normalizeStyle(Hn.pointerStyle),onClick:vn[1]||(vn[1]=(...Kn)=>Hn.clickHandler&&Hn.clickHandler(...Kn))},null,12,w$2)),[[vue.vShow,Hn.showDefault]]):vue.createCommentVNode("",!0)])}const W=s$2(y$9,[["render",k$5]]),CanvasimagevalueWidgetGX37zzNc=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"})),l$1={mixins:[o$6],computed:{fillColor(){return this.parameters[3]?this.parameters[3]:"black"}}},n$5=["x","y","fill"];function p$9(e,vn,_n,kn,qn,Hn){return vue.openBlock(),vue.createElementBlock("text",{x:e.parameters[0],y:e.parameters[1],fill:Hn.fillColor},vue.toDisplayString(e.parameters[2]),9,n$5)}const x$1=s$2(l$1,[["render",p$9]]),CanvaslabelWidgetP2_Y6Edw=Object.freeze(Object.defineProperty({__proto__:null,default:x$1},Symbol.toStringTag,{value:"Module"})),m$5={mixins:[o$6],data(){return{valueId:null}},computed:{_value(){return this.screenValues[this.valueId][0]},fontSize(){return this.parameters[5]?this.parameters[5]+"px":"14px"},fillColor(){return this.parameters[6]?this.parameters[6]:"black"}},created(){let e="CONVERTED";this.parameters[7]&&(e=this.parameters[7]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.$emit("addItem",this.valueId)},unmounted(){this.$emit("deleteItem",this.valueId)}},n$4=["x","y","font-size","fill"];function o$4(e,vn,_n,kn,qn,Hn){return vue.openBlock(),vue.createElementBlock("text",{x:e.parameters[3],y:e.parameters[4],"font-size":Hn.fontSize,fill:Hn.fillColor},vue.toDisplayString(Hn._value),9,n$4)}const v$6=s$2(m$5,[["render",o$4]]),CanvaslabelvalueWidgetCuas1i9P=Object.freeze(Object.defineProperty({__proto__:null,default:v$6},Symbol.toStringTag,{value:"Module"})),m$4={mixins:[o$6],computed:{calcStyle(){let e="black";this.parameters[4]&&(e=this.parameters[4]);let vn=1;return this.parameters[5]&&(vn=this.parameters[5]),"stroke:"+e+";stroke-width:"+vn}}},n$3=["x1","y1","x2","y2"];function p$8(e,vn,_n,kn,qn,Hn){return vue.openBlock(),vue.createElementBlock("line",{x1:e.parameters[0],y1:e.parameters[1],x2:e.parameters[2],y2:e.parameters[3],style:vue.normalizeStyle(Hn.calcStyle)},null,12,n$3)}const _$6=s$2(m$4,[["render",p$8]]),CanvaslineWidgetBYOYgPya=Object.freeze(Object.defineProperty({__proto__:null,default:_$6},Symbol.toStringTag,{value:"Module"})),p$7={mixins:[o$6],data(){return{valueId:0,valueMap:{}}},computed:{calcStyle(){let e="black";this.screenValues[this.valueId]&&(e=this.valueMap[this.screenValues[this.valueId][0]]);let vn=1;return this.parameters[7]&&(vn=this.parameters[7]),"stroke:"+e+";stroke-width:"+vn}},created(){this.appliedSettings.forEach(vn=>{vn[0]==="VALUE_EQ"&&(this.valueMap[vn[1]]=vn[2])});let e="CONVERTED";this.parameters[8]&&(e=this.parameters[8]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.$emit("addItem",this.valueId)},unmounted(){this.$emit("deleteItem",this.valueId)}},o$3=["x1","y1","x2","y2"];function h$b(e,vn,_n,kn,qn,Hn){return vue.openBlock(),vue.createElementBlock("line",{x1:e.parameters[3],y1:e.parameters[4],x2:e.parameters[5],y2:e.parameters[6],style:vue.normalizeStyle(Hn.calcStyle)},null,12,o$3)}const v$5=s$2(p$7,[["render",h$b]]),CanvaslinevalueWidget3cVJMFo7=Object.freeze(Object.defineProperty({__proto__:null,default:v$5},Symbol.toStringTag,{value:"Module"})),u$a={mixins:[o$6],data(){return{items:[],label:"Checkbox",value:!1}},created(){this.label=this.parameters[0],this.parameters[1]&&(this.value=!0)},methods:{checked(){return this.value}}};function p$6(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-checkbox");return vue.openBlock(),vue.createBlock(Kn,{"hide-details":"",density:"compact",label:qn.label,modelValue:qn.value,"onUpdate:modelValue":vn[0]||(vn[0]=Qn=>qn.value=Qn),style:vue.normalizeStyle(e.computedStyle)},null,8,["label","modelValue","style"])}const k$4=s$2(u$a,[["render",p$6]]),CheckbuttonWidgetB3wgSMuB=Object.freeze(Object.defineProperty({__proto__:null,default:k$4},Symbol.toStringTag,{value:"Module"})),p$5={mixins:[o$6],data(){return{items:[],value:null}},created(){this.value=this.parameters[0],this.items=this.parameters},methods:{text(){return this.value}}};function c$4(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-select");return vue.openBlock(),vue.createBlock(Kn,{"hide-details":"",density:"compact",variant:"outlined",items:qn.items,modelValue:qn.value,"onUpdate:modelValue":vn[0]||(vn[0]=Qn=>qn.value=Qn),style:vue.normalizeStyle(e.computedStyle)},null,8,["items","modelValue","style"])}const y$8=s$2(p$5,[["render",c$4]]),ComboboxWidgetDzr4Scvf=Object.freeze(Object.defineProperty({__proto__:null,default:y$8},Symbol.toStringTag,{value:"Module"})),u$9={mixins:[o$6,Pe$1],data(){return{label:"Date",dateValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.dateValue=this.formatDate(new Date,this.screenTimeZone)},methods:{text(){return this.dateValue},date(){return this.dateValue}}};function f$c(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-text-field");return vue.openBlock(),vue.createBlock(Kn,{modelValue:qn.dateValue,"onUpdate:modelValue":vn[0]||(vn[0]=Qn=>qn.dateValue=Qn),label:qn.label,style:vue.normalizeStyle(e.computedStyle),type:"date","hide-details":""},null,8,["modelValue","label","style"])}const D=s$2(u$9,[["render",f$c]]),DateWidgetBWh76Ibb=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"})),p$4={data(){return{widgetType:null}},props:{name:{default:null}},computed:{url:function(){return`${window.location.origin}/tools/widgets/${this.name}/${this.name}.umd.min.js`}},async mounted(){try{this.widgetType=await System.import(this.url)}catch{throw new Error(`Unknown widget: ${this.name}`)}}};function c$3(e,vn,_n,kn,qn,Hn){return vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(qn.widgetType),vue.normalizeProps(vue.guardReactiveProps({...e.$props,...e.$attrs})),null,16)}const $$3=s$2(p$4,[["render",c$3]]),DynamicWidgetM9EliUR2=Object.freeze(Object.defineProperty({__proto__:null,default:$$3},Symbol.toStringTag,{value:"Module"})),u$8=4,A$1={components:{DetailsDialog:P$1},mixins:[L$2],data:function(){return{width:12+u$8}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+u$8,"ch",this.width)}};function U$1(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("rux-status"),Qn=vue.resolveComponent("v-text-field"),zn=vue.resolveComponent("v-tooltip"),Wn=vue.resolveComponent("v-list-item-title"),Nn=vue.resolveComponent("v-list-item"),Dn=vue.resolveComponent("v-list"),In=vue.resolveComponent("v-menu"),Bn=vue.resolveComponent("details-dialog");return vue.openBlock(),vue.createElementBlock("div",{class:"value-widget-container",style:vue.normalizeStyle([e.computedStyle,Hn.aging])},[vue.createVNode(zn,{location:"top"},{activator:vue.withCtx(({props:Ln})=>[vue.createVNode(Qn,vue.mergeProps({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":e._value,class:e.valueClass,"data-test":"value",onContextmenu:e.showContextMenu},Ln),vue.createSlots({_:2},[e.astroStatus?{name:"prepend-inner",fn:vue.withCtx(()=>[vue.createVNode(Kn,{status:e.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:vue.withCtx(()=>[vue.createElementVNode("span",null,vue.toDisplayString(Hn.fullName),1)]),_:1}),vue.createVNode(In,{modelValue:e.contextMenuShown,"onUpdate:modelValue":vn[0]||(vn[0]=Ln=>e.contextMenuShown=Ln),target:[e.x,e.y],style:{"z-index":"3000"}},{default:vue.withCtx(()=>[vue.createVNode(Dn,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.contextMenuOptions,(Ln,Pn)=>(vue.openBlock(),vue.createBlock(Nn,{key:Pn,onClick:vue.withModifiers(Ln.action,["stop"])},{default:vue.withCtx(()=>[vue.createVNode(Wn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Ln.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),vue.createVNode(Bn,{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2],modelValue:e.viewDetails,"onUpdate:modelValue":vn[1]||(vn[1]=Ln=>e.viewDetails=Ln)},null,8,["target-name","packet-name","item-name","modelValue"])],4)}const H=s$2(A$1,[["render",U$1],["__scopeId","data-v-c21e4dde"]]),ValueWidgetCZh7JWwT=Object.freeze(Object.defineProperty({__proto__:null,default:H},Symbol.toStringTag,{value:"Module"})),d$8={mixins:[o$6],components:{ValueWidget:H},computed:{getParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[4]]}},created(){this.setWidth(this.parameters[5],"ch",12)}};function u$7(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("value-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,vue.mergeProps(e.$attrs,{parameters:Hn.getParameters,settings:e.appliedSettings,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,"format-string":e.parameters[3]}),null,16,["parameters","settings","screen-values","screen-time-zone","format-string"])],4)}const y$7=s$2(d$8,[["render",u$7]]),FormatvalueWidgetRk0_eeIm=Object.freeze(Object.defineProperty({__proto__:null,default:y$7},Symbol.toStringTag,{value:"Module"}));function M(e,vn,_n){const kn=l$3(e,void 0);if(isNaN(vn))return y$b(e,NaN);if(!vn)return kn;const qn=kn.getDate(),Hn=y$b(e,kn.getTime());Hn.setMonth(kn.getMonth()+vn+1,0);const Kn=Hn.getDate();return qn>=Kn?Hn:(kn.setFullYear(Hn.getFullYear(),Hn.getMonth(),qn),kn)}function b$4(e,vn,_n){return z$5(e,-vn,_n)}function k$3(e,vn,_n){return M(e,-vn)}function S$4(e,vn,_n){const{years:kn=0,months:qn=0,weeks:Hn=0,days:Kn=0,hours:Qn=0,minutes:zn=0,seconds:Wn=0}=vn,Nn=k$3(e,qn+kn*12),Dn=b$4(Nn,Kn+Hn*7,_n),In=zn+Qn*60,Bn=(Wn+In*60)*1e3;return y$b(e,+Dn-Bn)}const _$5={mixins:[o$6],data:function(){return{id:Math.floor(Math.random()*1e11),state:"start",items:[{targetName:this.parameters[0],packetName:this.parameters[1],itemName:this.parameters[2],valueType:this.parameters[3]||"CONVERTED",reduced:this.parameters[4]||"DECOM",reducedType:this.parameters[5]||null}],startTime:null,secondsGraphed:3600,pointsSaved:3600,pointsGraphed:3600,size:{height:300,width:400}}},created:function(){this.appliedSettings.forEach(e=>{switch(e[0]){case"ITEM":this.items.push({targetName:e[1],packetName:e[2],itemName:e[3],valueType:e[4]||"CONVERTED",reduced:e[5]||"DECOM",reducedType:e[6]||null});case"STARTTIME":let vn=cr(e[1],"yyyy/MM/dd HH:mm:ss",new Date);this.startTime=vn.getTime()*1e6;break;case"HISTORY":let _n=parseInt(e[1].slice(0,e[1].length-1)),kn=null,qn=1;switch(e[1][e[1].length-1]){case"d":kn="days",qn=3600*24;break;case"h":kn="hours",qn=3600;break;case"m":kn="minutes",qn=60;break;case"s":kn="seconds";break;default:throw new Error(`Unknown time suffix: ${e[1]}!`)}let Hn={};Hn[kn]=_n,this.startTime=S$4(new Date,Hn).getTime()*1e6,_n*qn>this.secondsGraphed&&(this.secondsGraphed=_n*qn),_n*qn>this.pointsSaved&&(this.pointsSaved=_n*qn),_n*qn>this.pointsGraphed&&(this.pointsGraphed=_n*qn);break;case"SECONDSGRAPHED":this.secondsGraphed=parseInt(e[1]);break;case"POINTSSAVED":this.pointsSaved=parseInt(e[1]);break;case"POINTSGRAPHED":this.pointsGraphed=parseInt(e[1]);break;case"SIZE":this.size.width=parseInt(e[1]),this.size.height=parseInt(e[2]);break}}),this.items=this.items.map(e=>{let vn=e.itemName;if(e.itemName.includes("[["))e.itemName=e.itemName.replace("[[","[").replace("]]","]"),vn=e.itemName;else if(e.itemName.includes("[")){let _n=e.itemName.match(/\[(\d+)\]/);this.arrayIndex=parseInt(_n[1]),vn=e.itemName.replace(_n[0],"")}return this.$emit("addItem",`${e.targetName}__${e.packetName}__${vn}__${e.valueType}`,!0),e})},destroyed(){this.items.map(e=>this.$emit("deleteItem",`${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`))}},y$6={mixins:[r$1],created:function(){if(this.parameters[0]){let e=this.parameters[0];this.widgets.forEach(vn=>{vn.settings.find(_n=>_n[0]==="MARGIN"||_n[0]==="RAW"&&_n[1].toUpperCase().includes("MARGIN"))===void 0&&vn.settings.push(["MARGIN",e])})}}};function h$a(e,vn,_n,kn,qn,Hn){return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.widgets,(Kn,Qn)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Kn.type),vue.mergeProps({ref_for:!0},e.listeners,{key:Qn,target:Kn.target,parameters:Kn.parameters,settings:Kn.settings,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,widgets:Kn.widgets,name:Kn.name,line:Kn.line,"line-number":Kn.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const N$1=s$2(y$6,[["render",h$a]]),HorizontalWidgetBcfJ24Zn=Object.freeze(Object.defineProperty({__proto__:null,default:N$1},Symbol.toStringTag,{value:"Module"})),f$b={mixins:[r$1],components:{HorizontalWidget:N$1}};function _$4(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-banner"),Qn=vue.resolveComponent("horizontal-widget");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createVNode(Kn,{class:"boxbanner",style:vue.normalizeStyle(e.computedStyle),"single-line":""},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(e.parameters[0]),1)]),_:1},8,["style"]),vue.createVNode(Qn,vue.mergeProps(e.listeners,{parameters:e.parameters.slice(1),settings:e.appliedSettings,widgets:e.widgets,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,"screen-id":e.screenId}),null,16,["parameters","settings","widgets","screen-values","screen-time-zone","screen-id"])])}const k$2=s$2(f$b,[["render",_$4],["__scopeId","data-v-e9e6c14b"]]),HorizontalboxWidgetCQy1Hv9E=Object.freeze(Object.defineProperty({__proto__:null,default:k$2},Symbol.toStringTag,{value:"Module"})),t={};function c$2(e,vn){return vue.openBlock(),vue.createElementBlock("hr")}const i=s$2(t,[["render",c$2]]),HorizontallineWidgetBdlNB951=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"})),o$2={mixins:[o$6],data:function(){return{width:800,height:600}},created:function(){this.setWidth(this.parameters[1],"px",this.width),this.setHeight(this.parameters[2],"px",this.height)}},a$1=["src","width","height"];function n$2(e,vn,_n,kn,qn,Hn){return vue.openBlock(),vue.createElementBlock("iframe",{title:"IFrameWidget",src:e.parameters[0],width:e.width,height:e.height,style:vue.normalizeStyle(e.computedStyle)},null,12,a$1)}const _$3=s$2(o$2,[["render",n$2]]),IframeWidgetBBaDrRLo=Object.freeze(Object.defineProperty({__proto__:null,default:_$3},Symbol.toStringTag,{value:"Module"})),m$3={mixins:[o$6],data:function(){return{valueId:null,imageData:""}},computed:{src:function(){return`data:image/${this.parameters[3]};base64, ${this.screenValues[this.valueId][0]}`}},created:function(){this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__CONVERTED`,this.$emit("addItem",this.valueId)},unmounted:function(){this.$emit("deleteItem",this.valueId)}},o$1=["src","alt","width","height"];function d$7(e,vn,_n,kn,qn,Hn){return vue.openBlock(),vue.createElementBlock("img",{src:Hn.src,alt:e.valueId,width:e.parameters[4],height:e.parameters[5],style:vue.normalizeStyle(e.computedStyle)},null,12,o$1)}const $$2=s$2(m$3,[["render",d$7]]),ImageviewerWidgetBgO3Pq6I=Object.freeze(Object.defineProperty({__proto__:null,default:$$2},Symbol.toStringTag,{value:"Module"})),l={mixins:[o$6],data(){return{fontFamily:null,fontSize:null,fontWeight:"normal",fontStyle:"normal"}},computed:{labelText(){return this.parameters[0]},cssProps(){let e=null;return this.fontSize&&(e=this.fontSize+"px"),{"--font-family":this.fontFamily,"--font-size":e,"--font-weight":this.fontWeight,"--font-style":this.fontStyle}}},created(){this.verifyNumParams("LABEL",1,5,"LABEL <Text> <Font Family> <Font Size> <Font Weight> <Font Style>"),this.parameters[1]&&(this.fontFamily=this.parameters[1]),this.parameters[2]&&(this.fontSize=this.parameters[2]),this.parameters[3]&&(this.fontWeight=this.parameters[3]),this.parameters[4]&&(this.fontStyle=this.parameters[4])}};function f$a(e,vn,_n,kn,qn,Hn){return vue.openBlock(),vue.createElementBlock("div",{"data-test":"label",class:"pa-1 mt-1 label",style:vue.normalizeStyle([Hn.cssProps,e.computedStyle])},vue.toDisplayString(Hn.labelText),5)}const S$3=s$2(l,[["render",f$a],["__scopeId","data-v-1d1d3128"]]),LabelWidgetB_C6lKOE=Object.freeze(Object.defineProperty({__proto__:null,default:S$3},Symbol.toStringTag,{value:"Module"})),u$6={mixins:[o$6],data(){return{valueId:null,colors:{TRUE:"openc3-green",FALSE:"openc3-red"}}},computed:{width(){return this.parameters[4]?parseInt(this.parameters[4]):20},height(){return this.parameters[5]?parseInt(this.parameters[5]):20},cssProps(){let e=this.screenValues[this.valueId][0],vn=this.colors[e];return vn||(vn=this.colors.ANY),vn||(vn="openc3-black"),{"--height":this.height+"px","--width":this.width+"px","--color":vn}},fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]}},created(){this.appliedSettings.forEach(e=>{switch(e[0]){case"LED_COLOR":this.colors[e[1]]=e[2];break}}),this.parameters[3]||(this.parameters[3]="CONVERTED"),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]}`,this.$emit("addItem",this.valueId)},unmounted(){this.$emit("deleteItem",this.valueId)}};function _$2(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-tooltip");return vue.openBlock(),vue.createBlock(Kn,{location:"top"},{activator:vue.withCtx(({props:Qn})=>[vue.createElementVNode("div",vue.mergeProps({class:"led mt-1",style:Hn.cssProps},Qn),null,16)]),default:vue.withCtx(()=>[vue.createElementVNode("span",null,vue.toDisplayString(Hn.fullName),1)]),_:1})}const E$1=s$2(u$6,[["render",_$2],["__scopeId","data-v-8c5b4138"]]),LedWidgetBAt02s0J=Object.freeze(Object.defineProperty({__proto__:null,default:E$1},Symbol.toStringTag,{value:"Module"})),f$9={mixins:[o$6],components:{LabelWidget:S$3,LedWidget:E$1},computed:{labelName(){return[this.parameters[2]+":"]}}};function u$5(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("label-widget"),Qn=vue.resolveComponent("led-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,{parameters:Hn.labelName,settings:[...e.appliedSettings],"widget-index":0},null,8,["parameters","settings"]),vue.createVNode(Qn,vue.mergeProps(e.$attrs,{parameters:e.parameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const N=s$2(f$9,[["render",u$5]]),LabelledWidgetB_UGivhr=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"})),n$1={mixins:[o$6],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:150}},computed:{_value:function(){let e=this.value;return e===null&&(e=this.screenValues[this.valueId][0]),parseInt(parseFloat(e)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=parseFloat(this.parameters[3])),this.width=this.setWidth(this.parameters[4],"px",this.width),this.value===null){let e="CONVERTED";this.parameters[5]&&(e=this.parameters[5]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.$emit("addItem",this.valueId)}},unmounted:function(){this.$emit("deleteItem",this.valueId)}};function p$3(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("rux-progress");return vue.openBlock(),vue.createBlock(Kn,{value:Hn._value,class:"progress",style:vue.normalizeStyle(e.computedStyle)},null,8,["value","style"])}const I=s$2(n$1,[["render",p$3],["__scopeId","data-v-85bc2857"]]),ProgressbarWidgetCYDziFej=Object.freeze(Object.defineProperty({__proto__:null,default:I},Symbol.toStringTag,{value:"Module"})),f$8={mixins:[o$6],components:{LabelWidget:S$3,ProgressbarWidget:I},computed:{labelName(){return[this.parameters[2]+":"]}}};function u$4(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("label-widget"),Qn=vue.resolveComponent("progressbar-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,{parameters:Hn.labelName,settings:[...e.appliedSettings],"widget-index":0},null,8,["parameters","settings"]),vue.createVNode(Qn,vue.mergeProps(e.$attrs,{parameters:e.parameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,style:e.computedStyle,"widget-index":1}),null,16,["parameters","settings","screen-values","style"])],4)}const h$9=s$2(f$8,[["render",u$4]]),LabelprogressbarWidgetBJWCmsYC=Object.freeze(Object.defineProperty({__proto__:null,default:h$9},Symbol.toStringTag,{value:"Module"})),d$6={components:{Graph:Se},mixins:[_$5],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}};function h$8(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("graph");return vue.openBlock(),vue.createBlock(Kn,{ref:"graph"+e.id,id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,style:vue.normalizeStyle(e.computedStyle),sparkline:""},null,8,["id","state","selected-graph-id","startTime","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style"])}const w$1=s$2(d$6,[["render",h$8]]),SparklineWidgetCDrVXOFV=Object.freeze(Object.defineProperty({__proto__:null,default:w$1},Symbol.toStringTag,{value:"Module"})),g$5={mixins:[o$6],components:{LabelWidget:S$3,SparklineWidget:w$1},computed:{labelName(){return[this.parameters[2]+":"]}}};function f$7(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("label-widget"),Qn=vue.resolveComponent("sparkline-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,{parameters:Hn.labelName,settings:[...e.appliedSettings],line:e.line,lineNumber:e.lineNumber,"widget-index":0},null,8,["parameters","settings","line","lineNumber"]),vue.createVNode(Qn,{parameters:e.parameters,settings:[...e.appliedSettings],style:vue.normalizeStyle(e.computedStyle),"widget-index":1},null,8,["parameters","settings","style"])],4)}const $$1=s$2(g$5,[["render",f$7]]),LabelsparklineWidgetDILCIh3q=Object.freeze(Object.defineProperty({__proto__:null,default:$$1},Symbol.toStringTag,{value:"Module"})),g$4={mixins:[o$6],components:{LabelWidget:S$3,ValueWidget:H},computed:{labelName(){let e=this.parameters[2];return e.includes("[[")&&(e=e.replace("[[","[").replace("]]","]")),[e+":"]},valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4]]}}};function f$6(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("label-widget"),Qn=vue.resolveComponent("value-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,{parameters:Hn.labelName,settings:[...e.appliedSettings],line:e.line,"line-number":e.lineNumber,"widget-index":0},null,8,["parameters","settings","line","line-number"]),vue.createVNode(Qn,vue.mergeProps(e.$attrs,{parameters:Hn.valueParameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,line:e.line,"line-number":e.lineNumber,"widget-index":1}),null,16,["parameters","settings","screen-values","screen-time-zone","line","line-number"])],4)}const z$3=s$2(g$4,[["render",f$6]]),LabelvalueWidgetCCZd1NXE=Object.freeze(Object.defineProperty({__proto__:null,default:z$3},Symbol.toStringTag,{value:"Module"})),g$3={mixins:[o$6],data(){return{description:"",valueParameters:[]}},components:{LabelWidget:S$3,ValueWidget:H},computed:{labelName(){return[this.description]}},created(){this.valueParameters=this.parameters.slice(0,3),this.parameters[4]!=null&&this.valueParameters.push(this.parameters[4]),this.parameters[5]!=null&&this.valueParameters.push(this.parameters[5]),this.parameters.length>3?this.description=this.parameters[3]:new Wk().get_item(this.parameters[0],this.parameters[1],this.parameters[2]).then(e=>{this.description=e.description})}};function b$3(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("label-widget"),Qn=vue.resolveComponent("value-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,{parameters:Hn.labelName,settings:[...e.settings],line:e.line,"line-number":e.lineNumber,"widget-index":0},null,8,["parameters","settings","line","line-number"]),vue.createVNode(Qn,vue.mergeProps(e.$attrs,{parameters:qn.valueParameters,settings:[...e.settings],"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,line:e.line,"line-number":e.lineNumber,"widget-index":1}),null,16,["parameters","settings","screen-values","screen-time-zone","line","line-number"])],4)}const $=s$2(g$3,[["render",b$3]]),LabelvaluedescWidgetBsllq8W6=Object.freeze(Object.defineProperty({__proto__:null,default:$},Symbol.toStringTag,{value:"Module"})),v$4={mixins:[u$c],data(){return{width:160,height:22}},computed:{limitsRange(){let e=this.limitsSettings[this.selectedLimitsSet];return e.length===4?`RL/${e[0]} YL/${e[1]} YH/${e[2]} RH/${e[3]}`:`RL/${e[0]} YL/${e[1]} YH/${e[2]} RH/${e[3]} GL/${e[4]} GH/${e[5]}`}}};function b$2(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-tooltip");return vue.openBlock(),vue.createBlock(Kn,{location:"top"},{activator:vue.withCtx(({props:Qn})=>[vue.createElementVNode("div",vue.mergeProps({class:"limitsbar",style:[e.cssProps,e.computedStyle]},Qn),vn[0]||(vn[0]=[vue.createElementVNode("div",{class:"limitsbar__container"},[vue.createElementVNode("div",{class:"limitsbar__redlow"}),vue.createElementVNode("div",{class:"limitsbar__redhigh"}),vue.createElementVNode("div",{class:"limitsbar__yellowlow"}),vue.createElementVNode("div",{class:"limitsbar__yellowhigh"}),vue.createElementVNode("div",{class:"limitsbar__greenlow"}),vue.createElementVNode("div",{class:"limitsbar__greenhigh"}),vue.createElementVNode("div",{class:"limitsbar__blue"}),vue.createElementVNode("div",{class:"limitsbar__line"}),vue.createElementVNode("div",{class:"limitsbar__arrow"})],-1)]),16)]),default:vue.withCtx(()=>[vue.createElementVNode("span",null,vue.toDisplayString(Hn.limitsRange),1)]),_:1})}const L=s$2(v$4,[["render",b$2],["__scopeId","data-v-6677be5d"]]),LimitsbarWidgetJJiyzZjb=Object.freeze(Object.defineProperty({__proto__:null,default:L},Symbol.toStringTag,{value:"Module"})),g$2={mixins:[o$6],components:{LabelvalueWidget:z$3,LimitsbarWidget:L},computed:{labelValueSettings(){return[...this.appliedSettings.filter(e=>e[0]==="__SCREEN_ID__"),...this.settings.filter(e=>parseInt(e[0])===0||parseInt(e[0])===1)]}}};function f$5(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("labelvalue-widget"),Qn=vue.resolveComponent("limitsbar-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,vue.mergeProps(e.$attrs,{parameters:e.parameters,settings:Hn.labelValueSettings,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone}),null,16,["parameters","settings","screen-values","screen-time-zone"]),vue.createVNode(Qn,vue.mergeProps(e.$attrs,{parameters:e.parameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,"widget-index":2}),null,16,["parameters","settings","screen-values"])],4)}const y$5=s$2(g$2,[["render",f$5]]),LabelvaluelimitsbarWidgetBVCfaD_=Object.freeze(Object.defineProperty({__proto__:null,default:y$5},Symbol.toStringTag,{value:"Module"})),r={mixins:[u$c],data(){return{width:22,height:120}},computed:{cssProps:function(){let e=this.screenValues[this.valueId][0],vn=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(vn),{"--height":this.height+"px","--width":this.width+"px","--container-width":this.width-5+"px","--position":this.calcPosition(e,vn)+"%","--redlow-height":this.redLow+"%","--redhigh-height":this.redHigh+"%","--yellowlow-height":this.yellowLow+"%","--yellowhigh-height":this.yellowHigh+"%","--greenlow-height":this.greenLow+"%","--greenhigh-height":this.greenHigh+"%","--blue-height":this.blue+"%"}}}};function o(e,vn,_n,kn,qn,Hn){return vue.openBlock(),vue.createElementBlock("div",{class:"limitsbar",style:vue.normalizeStyle([Hn.cssProps,e.computedStyle])},vn[0]||(vn[0]=[vue.createStaticVNode('<div class="limitsbar__container" data-v-cadbf1c4><div class="limitsbar__redlow" data-v-cadbf1c4></div><div class="limitsbar__redhigh" data-v-cadbf1c4></div><div class="limitsbar__yellowlow" data-v-cadbf1c4></div><div class="limitsbar__yellowhigh" data-v-cadbf1c4></div><div class="limitsbar__greenlow" data-v-cadbf1c4></div><div class="limitsbar__greenhigh" data-v-cadbf1c4></div><div class="limitsbar__blue" data-v-cadbf1c4></div><div class="limitsbar__line" data-v-cadbf1c4></div><div class="limitsbar__arrow" data-v-cadbf1c4></div></div>',1)]),4)}const f$4=s$2(r,[["render",o],["__scopeId","data-v-cadbf1c4"]]),LimitscolumnWidgetCd76tBo7=Object.freeze(Object.defineProperty({__proto__:null,default:f$4},Symbol.toStringTag,{value:"Module"})),f$3={mixins:[o$6],components:{LabelWidget:S$3,ValueWidget:H,LimitscolumnWidget:f$4}};function v$3(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("label-widget"),Qn=vue.resolveComponent("limitscolumn-widget"),zn=vue.resolveComponent("value-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,{parameters:[e.parameters[2]],settings:[...e.appliedSettings],"widget-index":0},null,8,["parameters","settings"]),vue.createVNode(Qn,vue.mergeProps(e.$attrs,{parameters:e.parameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,"widget-index":2}),null,16,["parameters","settings","screen-values"]),vue.createVNode(zn,vue.mergeProps(e.$attrs,{parameters:e.parameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,"widget-index":1}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const B$2=s$2(f$3,[["render",v$3]]),LabelvaluelimitscolumnWidgetDwA0eRBw=Object.freeze(Object.defineProperty({__proto__:null,default:B$2},Symbol.toStringTag,{value:"Module"})),d$5={mixins:[o$6],data(){return{width:160,height:22}},computed:{cssProps(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min(){return parseInt(this.parameters[3])},max(){return parseInt(this.parameters[4])},range(){return this.max-this.min}},created(){const e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.$emit("addItem",this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},unmounted(){this.$emit("deleteItem",this.valueId)},methods:{calcPosition(){let e=this.screenValues[this.valueId][0];if(!e)return 0;if(e.raw)return e.raw==="-Infinity"?0:100;const vn=(e-this.min)/this.range*100;return vn>100?100:vn<0?0:vn}}};function m$2(e,vn,_n,kn,qn,Hn){return vue.openBlock(),vue.createElementBlock("div",{class:"rangebar",style:vue.normalizeStyle([Hn.cssProps,e.computedStyle])},vn[0]||(vn[0]=[vue.createElementVNode("div",{class:"rangebar__container"},[vue.createElementVNode("div",{class:"rangebar__line"}),vue.createElementVNode("div",{class:"rangebar__arrow"})],-1)]),4)}const f$2=s$2(d$5,[["render",m$2],["__scopeId","data-v-34d37e7c"]]),RangebarWidgetDW0FJK6y=Object.freeze(Object.defineProperty({__proto__:null,default:f$2},Symbol.toStringTag,{value:"Module"})),d$4={mixins:[o$6],components:{LabelvalueWidget:z$3,RangebarWidget:f$2},computed:{labelValueSettings(){return[...this.settings.filter(e=>e[0]==="__SCREEN_ID__"),...this.settings.filter(e=>parseInt(e[0])===0||parseInt(e[0])===1)]},labelValueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function h$7(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("labelvalue-widget"),Qn=vue.resolveComponent("rangebar-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,vue.mergeProps(e.$attrs,{parameters:Hn.labelValueParameters,settings:Hn.labelValueSettings,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone}),null,16,["parameters","settings","screen-values","screen-time-zone"]),vue.createVNode(Qn,vue.mergeProps(e.$attrs,{parameters:Hn.rangeBarParameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,"widget-index":2}),null,16,["parameters","settings","screen-values"])],4)}const B$1=s$2(d$4,[["render",h$7]]),LabelvaluerangebarWidget3GDJz3dj=Object.freeze(Object.defineProperty({__proto__:null,default:B$1},Symbol.toStringTag,{value:"Module"})),d$3={mixins:[L$2],data(){return{radius:15,fullLabelDisplay:!1}},created(){this.parameters[4]&&(this.radius=parseInt(this.parameters[4])),this.parameters[5]&&this.parameters[5].toLowerCase()==="true"&&(this.fullLabelDisplay=!0)},computed:{labelName(){return this.fullLabelDisplay?[this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]]:[this.parameters[2]]},cssProps(){return{"--height":this.radius+"px","--width":this.radius+"px","--color":this.limitsColor}}},methods:{getType(){let e="CONVERTED";return this.parameters[3]&&(e=this.parameters[3]),e}}};function c$1(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("label-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[vue.createElementVNode("div",{class:"led align-self-center",style:vue.normalizeStyle(Hn.cssProps)},null,4),vue.createVNode(Kn,{parameters:Hn.labelName,settings:e.appliedSettings,style:vue.normalizeStyle(e.computedStyle),"widget-index":1},null,8,["parameters","settings","style"])],4)}const w=s$2(d$3,[["render",c$1],["__scopeId","data-v-87ec8e4f"]]),LimitscolorWidgetCYzXKbYd=Object.freeze(Object.defineProperty({__proto__:null,default:w},Symbol.toStringTag,{value:"Module"})),m$1={components:{Graph:Se},mixins:[_$5]};function h$6(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("graph");return vue.openBlock(),vue.createBlock(Kn,{ref:"graph"+e.id,id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,style:vue.normalizeStyle(e.computedStyle),"time-zone":this.screenTimeZone,onPause:vn[0]||(vn[0]=()=>e.state="pause"),onStart:vn[1]||(vn[1]=()=>e.state="start"),"hide-toolbar":"","hide-overview":""},null,8,["id","state","selected-graph-id","startTime","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style","time-zone"])}const S$2=s$2(m$1,[["render",h$6]]),LinegraphWidgetDWRtO6Ej=Object.freeze(Object.defineProperty({__proto__:null,default:S$2},Symbol.toStringTag,{value:"Module"})),b$1={mixins:[r$1],computed:{columns(){return parseInt(this.parameters[0])},widgetChunks(){return K1.chunk(this.widgets,this.columns)}},created:function(){if(this.parameters[1]){let e=this.parameters[1];this.widgets.forEach(vn=>{vn.settings.find(_n=>_n[0]==="MARGIN"||_n[0]==="RAW"&&_n[1].toUpperCase().includes("MARGIN"))===void 0&&vn.settings.push(["MARGIN",e])})}}};function A(e,vn,_n,kn,qn,Hn){return vue.openBlock(),vue.createElementBlock("table",{style:vue.normalizeStyle(e.computedStyle),role:"presentation"},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Hn.widgetChunks,(Kn,Qn)=>(vue.openBlock(),vue.createElementBlock("tr",{key:"r"+Qn},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Kn,(zn,Wn)=>(vue.openBlock(),vue.createElementBlock("td",{key:"c"+Wn},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(zn.type),vue.mergeProps({ref_for:!0},e.listeners,{target:zn.target,parameters:zn.parameters,settings:zn.settings,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,widgets:zn.widgets,name:zn.name,line:zn.line,"line-number":zn.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]))),128))]))),128))],4)}const v$2=s$2(b$1,[["render",A]]),MatrixbycolumnsWidgetCwsyjNV2=Object.freeze(Object.defineProperty({__proto__:null,default:v$2},Symbol.toStringTag,{value:"Module"})),d$2={props:{value:{type:Number}},mixins:[o$6],data(){return{label:"Radio"}},created(){this.label=this.parameters[0]}};function p$2(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-radio");return vue.openBlock(),vue.createBlock(Kn,{"hide-details":"",dense:"",label:qn.label,style:vue.normalizeStyle(e.computedStyle),value:_n.value},null,8,["label","style","value"])}const y$4=s$2(d$2,[["render",p$2]]),RadiobuttonWidgetU6jcQZoD=Object.freeze(Object.defineProperty({__proto__:null,default:y$4},Symbol.toStringTag,{value:"Module"})),_$1={mixins:[r$1],data(){return{selectedIndex:0}},created(){this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}};function h$5(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-radio-group");return vue.openBlock(),vue.createBlock(Kn,{"hide-details":"",density:"compact",modelValue:qn.selectedIndex,"onUpdate:modelValue":vn[0]||(vn[0]=Qn=>qn.selectedIndex=Qn),style:vue.normalizeStyle(e.computedStyle)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.widgets,(Qn,zn)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Qn.type),vue.mergeProps({ref_for:!0},e.listeners,{value:zn,key:zn,target:Qn.target,parameters:Qn.parameters,settings:Qn.settings,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,name:Qn.name}),null,16,["value","target","parameters","settings","screen-values","screen-time-zone","name"]))),128))]),_:1},8,["modelValue","style"])}const C=s$2(_$1,[["render",h$5]]),RadiogroupWidgetHTPJnsB0=Object.freeze(Object.defineProperty({__proto__:null,default:C},Symbol.toStringTag,{value:"Module"})),m={mixins:[o$6],props:{value:{default:null}},data:function(){return{valueId:null,icon:"",label:"",subLabel:"",items:[],screenTarget:null,screenName:null}},computed:{status:function(){let e="off";for(const vn of this.items){let _n=this.screenValues[vn][1];_n&&((_n.includes("BLUE")||_n.includes("GREEN"))&&e!="caution"&&e!="critical"&&(e="normal"),_n.includes("YELLOW")&&e!="critical"&&(e="caution"),_n.includes("RED")&&(e="critical"))}return e},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.icon=this.parameters[0],this.label=this.parameters[1],this.subLabel=this.parameters[2],this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"TLM":let vn="CONVERTED";e[4]&&(vn=e[4]);let _n=`${e[1]}__${e[2]}__${e[3]}__${vn}`;this.items.push(_n),this.$emit("addItem",_n);break}})},unmounted:function(){this.items.forEach(e=>{this.$emit("deleteItem",e)})},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function h$4(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("rux-monitoring-icon");return vue.openBlock(),vue.createBlock(Kn,{class:"rux-icon",style:vue.normalizeStyle(Hn.pointerStyle),icon:e.icon,status:Hn.status,label:e.label,sublabel:e.subLabel,onClick:Hn.clickHandler},null,8,["style","icon","status","label","sublabel","onClick"])}const E=s$2(m,[["render",h$4]]),RollupWidgetB2qrx55f=Object.freeze(Object.defineProperty({__proto__:null,default:E},Symbol.toStringTag,{value:"Module"})),y$3={mixins:[r$1],created:function(){if(this.parameters[0]){let e=this.parameters[0];this.widgets.forEach(vn=>{vn.settings.find(_n=>_n[0]==="MARGIN"||_n[0]==="RAW"&&_n[1].toUpperCase().includes("MARGIN"))===void 0&&vn.settings.push(["MARGIN",e])})}}};function h$3(e,vn,_n,kn,qn,Hn){return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-column",style:vue.normalizeStyle(e.computedStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.widgets,(Kn,Qn)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Kn.type),vue.mergeProps({ref_for:!0},e.listeners,{key:Qn,target:Kn.target,parameters:Kn.parameters,settings:Kn.settings,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,widgets:Kn.widgets,name:Kn.name,line:Kn.line,"line-number":Kn.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const R=s$2(y$3,[["render",h$3]]),VerticalWidgetCh7VAEmz=Object.freeze(Object.defineProperty({__proto__:null,default:R},Symbol.toStringTag,{value:"Module"})),y$2={mixins:[r$1],components:{VerticalWidget:R},created:function(){if(this.setHeight(this.parameters[0],"px",200),this.parameters[1]){let e=this.parameters[1];this.widgets.forEach(vn=>{vn.settings.find(_n=>_n[0]==="MARGIN"||_n[0]==="RAW"&&_n[1].toUpperCase().includes("MARGIN"))===void 0&&vn.settings.push(["MARGIN",e])})}}};function v$1(e,vn,_n,kn,qn,Hn){return vue.openBlock(),vue.createElementBlock("div",{ref:"container",style:vue.normalizeStyle(e.computedStyle),class:"overflow-y-auto"},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.widgets,(Kn,Qn)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Kn.type),vue.mergeProps({ref_for:!0},e.listeners,{key:Qn,target:Kn.target,parameters:Kn.parameters,settings:Kn.settings,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,widgets:Kn.widgets,name:Kn.name,line:Kn.line,"line-number":Kn.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const b=s$2(y$2,[["render",v$1]]),ScrollwindowWidgetCwIDxgO6=Object.freeze(Object.defineProperty({__proto__:null,default:b},Symbol.toStringTag,{value:"Module"})),h$2={mixins:[L$2],props:{value:{default:null}},data:function(){return{item:null,oneBar:30,twoBar:60,threeBar:90}},computed:{displayedIcon:function(){let e="mdi-signal-cellular-outline";return this._value>=this.oneBar&&(e="mdi-signal-cellular-1"),this._value>=this.twoBar&&(e="mdi-signal-cellular-2"),this._value>=this.threeBar&&(e="mdi-signal-cellular-3"),e}},created(){this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"VALUES":this.oneBar=parseFloat(e[1]),this.twoBar=parseFloat(e[2]),this.threeBar=parseFloat(e[3]);break}})},methods:{getType(){let e="CONVERTED";return this.parameters[3]=="RAW"&&(e="RAW"),e},clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function d$1(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-icon");return vue.openBlock(),vue.createBlock(Kn,{onClick:Hn.clickHandler},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Hn.displayedIcon),1)]),_:1},8,["onClick"])}const v=s$2(h$2,[["render",d$1]]),SignalWidgetBosa3AbW=Object.freeze(Object.defineProperty({__proto__:null,default:v},Symbol.toStringTag,{value:"Module"})),a={mixins:[o$6],created(){this.settings.push(["WIDTH",this.parameters[0]]),this.settings.push(["HEIGHT",this.parameters[1]])}};function n(e,vn,_n,kn,qn,Hn){return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.computedStyle)},null,4)}const h$1=s$2(a,[["render",n]]),SpacerWidgetDYAlt5mt=Object.freeze(Object.defineProperty({__proto__:null,default:h$1},Symbol.toStringTag,{value:"Module"})),z$2={mixins:[r$1],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}};function B(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-tab"),Qn=vue.resolveComponent("v-tabs"),zn=vue.resolveComponent("v-window-item"),Wn=vue.resolveComponent("v-window");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createVNode(Qn,{modelValue:e.curTab,"onUpdate:modelValue":vn[0]||(vn[0]=Nn=>e.curTab=Nn),style:vue.normalizeStyle(e.computedStyle)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.widgets,(Nn,Dn)=>(vue.openBlock(),vue.createBlock(Kn,{key:Dn},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Nn.parameters[0]),1)]),_:2},1024))),128))]),_:1},8,["modelValue","style"]),vue.createVNode(Wn,{modelValue:e.curTab,"onUpdate:modelValue":vn[1]||(vn[1]=Nn=>e.curTab=Nn)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.widgets,(Nn,Dn)=>(vue.openBlock(),vue.createBlock(zn,{key:Dn},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Nn.widgets,(In,Bn)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(In.type),vue.mergeProps({ref_for:!0},e.listeners,{key:`${Dn}-${Bn}`,target:In.target,parameters:In.parameters,settings:In.settings,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,widgets:In.widgets,name:In.name,line:In.line,"line-number":In.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))]),_:2},1024))),128))]),_:1},8,["modelValue"])])}const F=s$2(z$2,[["render",B]]),TabbookWidgetDDdlzCkv=Object.freeze(Object.defineProperty({__proto__:null,default:F},Symbol.toStringTag,{value:"Module"})),S$1={components:{DetailsDialog:P$1},data:function(){return{width:200,height:200}},mixins:[L$2],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){let e="CONVERTED";return this.parameters[5]&&(e=this.parameters[5]),e}}},T={class:"textbox-widget-container"};function z$1(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-textarea"),Qn=vue.resolveComponent("v-list-item-title"),zn=vue.resolveComponent("v-list-item"),Wn=vue.resolveComponent("v-list"),Nn=vue.resolveComponent("v-menu"),Dn=vue.resolveComponent("details-dialog");return vue.openBlock(),vue.createElementBlock("div",T,[vue.createVNode(Kn,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":e._value,class:vue.normalizeClass(e.valueClass),style:vue.normalizeStyle([e.computedStyle,Hn.aging]),"data-test":"valueText",onContextmenu:e.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),vue.createVNode(Nn,{modelValue:e.contextMenuShown,"onUpdate:modelValue":vn[0]||(vn[0]=In=>e.contextMenuShown=In),target:[e.x,e.y]},{default:vue.withCtx(()=>[vue.createVNode(Wn,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.contextMenuOptions,(In,Bn)=>(vue.openBlock(),vue.createBlock(zn,{key:Bn,onClick:vue.withModifiers(In.action,["stop"])},{default:vue.withCtx(()=>[vue.createVNode(Qn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(In.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),vue.createVNode(Dn,{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2],modelValue:e.viewDetails,"onUpdate:modelValue":vn[1]||(vn[1]=In=>e.viewDetails=In)},null,8,["target-name","packet-name","item-name","modelValue"])])}const U=s$2(S$1,[["render",z$1],["__scopeId","data-v-10f560aa"]]),TextboxWidget5euFelEq=Object.freeze(Object.defineProperty({__proto__:null,default:U},Symbol.toStringTag,{value:"Module"})),p$1={mixins:[o$6],data(){return{value:null}},created(){this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}};function u$3(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-text-field");return vue.openBlock(),vue.createBlock(Kn,{variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",modelValue:qn.value,"onUpdate:modelValue":vn[0]||(vn[0]=Qn=>qn.value=Qn),style:vue.normalizeStyle(e.computedStyle)},null,8,["modelValue","style"])}const y$1=s$2(p$1,[["render",u$3]]),TextfieldWidgetBFripYeh=Object.freeze(Object.defineProperty({__proto__:null,default:y$1},Symbol.toStringTag,{value:"Module"})),d={mixins:[o$6,Pe$1],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function f$1(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-text-field");return vue.openBlock(),vue.createBlock(Kn,{modelValue:qn.timeValue,"onUpdate:modelValue":vn[0]||(vn[0]=Qn=>qn.timeValue=Qn),label:qn.label,style:vue.normalizeStyle(e.computedStyle),type:"time","hide-details":""},null,8,["modelValue","label","style"])}const y=s$2(d,[["render",f$1]]),TimeWidgetBBSbsUYJ=Object.freeze(Object.defineProperty({__proto__:null,default:y},Symbol.toStringTag,{value:"Module"})),p={mixins:[o$6],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}};function c(e,vn,_n,kn,qn,Hn){return vue.openBlock(),vue.createElementBlock("span",{class:"text-h5 text-center pa-1 mt-1 label",style:vue.normalizeStyle(e.computedStyle)},vue.toDisplayString(Hn.labelText),5)}const x=s$2(p,[["render",c]]),TitleWidgetP8cjoBs=Object.freeze(Object.defineProperty({__proto__:null,default:x},Symbol.toStringTag,{value:"Module"})),g$1={mixins:[o$6],components:{ValueWidget:H,LimitsbarWidget:L}};function u$2(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("value-widget"),Qn=vue.resolveComponent("limitsbar-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,vue.mergeProps(e.$attrs,{parameters:e.parameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),vue.createVNode(Qn,vue.mergeProps(e.$attrs,{parameters:e.parameters.slice(0,3),settings:[...e.appliedSettings],"screen-values":e.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const z=s$2(g$1,[["render",u$2]]),ValuelimitsbarWidgetDU7ybswC=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"})),u$1={mixins:[o$6],components:{ValueWidget:H,LimitscolumnWidget:f$4}};function g(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("limitscolumn-widget"),Qn=vue.resolveComponent("value-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,vue.mergeProps(e.$attrs,{parameters:e.parameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"]),vue.createVNode(Qn,vue.mergeProps(e.$attrs,{parameters:e.parameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const k$1=s$2(u$1,[["render",g]]),ValuelimitscolumnWidgetDMwH5jM=Object.freeze(Object.defineProperty({__proto__:null,default:k$1},Symbol.toStringTag,{value:"Module"})),u={mixins:[o$6],components:{ValueWidget:H,RangebarWidget:f$2},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function h(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("value-widget"),Qn=vue.resolveComponent("rangebar-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(e.computedStyle)},[vue.createVNode(Kn,vue.mergeProps(e.$attrs,{parameters:Hn.valueParameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),vue.createVNode(Qn,vue.mergeProps(e.$attrs,{parameters:Hn.rangeBarParameters,settings:[...e.appliedSettings],"screen-values":e.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const S=s$2(u,[["render",h]]),ValuerangebarWidgetDPpofDpA=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"})),f={mixins:[r$1],components:{VerticalWidget:R}};function _(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-banner"),Qn=vue.resolveComponent("vertical-widget");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createVNode(Kn,{class:"boxbanner",style:vue.normalizeStyle(e.computedStyle),"single-line":""},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(e.parameters[0]),1)]),_:1},8,["style"]),vue.createVNode(Qn,vue.mergeProps(e.listeners,{parameters:e.parameters.slice(1),settings:e.settings,widgets:e.widgets,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone}),null,16,["parameters","settings","widgets","screen-values","screen-time-zone"])])}const k=s$2(f,[["render",_],["__scopeId","data-v-832aa5cd"]]),VerticalboxWidgetDYxTFT4=Object.freeze(Object.defineProperty({__proto__:null,default:k},Symbol.toStringTag,{value:"Module"})),_export_sfc=(e,vn)=>{const _n=e.__vccOpts||e;for(const[kn,qn]of vn)_n[kn]=qn;return _n},_sfc_main={components:{DetailsDialog:P$1},mixins:[L$2],computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]}}},_hoisted_1={class:"value-widget-container"};function _sfc_render(e,vn,_n,kn,qn,Hn){const Kn=vue.resolveComponent("v-text-field"),Qn=vue.resolveComponent("v-tooltip"),zn=vue.resolveComponent("v-list-item-title"),Wn=vue.resolveComponent("v-list-item"),Nn=vue.resolveComponent("v-list"),Dn=vue.resolveComponent("v-menu"),In=vue.resolveComponent("details-dialog");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1,[vue.createVNode(Qn,{location:"top"},{activator:vue.withCtx(({props:Bn})=>[vue.createVNode(Kn,vue.mergeProps({variant:"solo",density:"compact",readonly:"","single-line":"","hide-no-data":"","hide-details":"",width:"500","model-value":e._value,class:e.valueClass,style:e.computedStyle,"data-test":"value",onContextmenu:e.showContextMenu},Bn),null,16,["model-value","class","style","onContextmenu"])]),default:vue.withCtx(()=>[vue.createElementVNode("span",null,vue.toDisplayString(Hn.fullName),1)]),_:1}),vue.createVNode(Dn,{modelValue:e.contextMenuShown,"onUpdate:modelValue":vn[0]||(vn[0]=Bn=>e.contextMenuShown=Bn),target:[e.x,e.y]},{default:vue.withCtx(()=>[vue.createVNode(Nn,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.contextMenuOptions,(Bn,Ln)=>(vue.openBlock(),vue.createBlock(Wn,{key:Ln,onClick:vue.withModifiers(Bn.action,["stop"])},{default:vue.withCtx(()=>[vue.createVNode(zn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Bn.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),vue.createVNode(In,{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2],modelValue:e.viewDetails,"onUpdate:modelValue":vn[1]||(vn[1]=Bn=>e.viewDetails=Bn)},null,8,["target-name","packet-name","item-name","modelValue"])])}const BigWidget=_export_sfc(_sfc_main,[["render",_sfc_render],["__scopeId","data-v-6cb32412"]]);return BigWidget});
1417
+ //# sourceMappingURL=BigWidget.umd.min.js.map