/*! For license information please see main.53048302.js.LICENSE.txt */ (()=>{var e={61:(e,t,n)=>{"use strict";var r=n(375),o=n(629),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&i(e,".prototype.")>-1?o(n):n}},629:(e,t,n)=>{"use strict";var r=n(989),o=n(375),i=n(259),a=n(277),l=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,l),u=n(709),d=o("%Math.max%");e.exports=function(e){if("function"!==typeof e)throw new a("a function is required");var t=c(r,s,arguments);return i(t,1+d(0,e.length-(arguments.length-1)),!0)};var h=function(){return c(r,l,arguments)};u?u(e.exports,"apply",{value:h}):e.exports.apply=h},159:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",l="day",s="week",c="month",u="quarter",d="year",h="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function e(t,n){if(t.date()1)return e(a[0])}else{var l=t.name;b[l]=t,o=l}return!r&&o&&(_=o),o||!r&&_},S=function(e,t){if(k(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},A=y;A.l=x,A.i=k,A.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function v(e){this.$L=x(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var g=v.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(A.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return A},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return S(e)=0&&(i[d]=parseInt(u,10))}var h=i[3],f=24===h?0:h,p=i[0]+"-"+i[1]+"-"+i[2]+" "+f+":"+i[4]+":"+i[5]+":000",m=+t;return(o.utc(p).valueOf()-(m-=m%1e3))/6e4},s=r.prototype;s.tz=function(e,t){void 0===e&&(e=i);var n=this.utcOffset(),r=this.toDate(),a=r.toLocaleString("en-US",{timeZone:e}),l=Math.round((r-new Date(a))/1e3/60),s=o(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-l,!0);if(t){var c=s.utcOffset();s=s.add(n-c,"minute")}return s.$x.$timezone=e,s},s.offsetName=function(e){var t=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var c=s.startOf;s.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(n,e,t).tz(this.$x.$timezone,!0)},o.tz=function(e,t,n){var r=n&&t,a=n||t||i,s=l(+o(),a);if("string"!=typeof e)return o(e).tz(a);var c=function(e,t,n){var r=e-60*t*1e3,o=l(r,n);if(t===o)return[r,t];var i=l(r-=60*(o-t)*1e3,n);return o===i?[r,o]:[e-60*Math.min(o,i)*1e3,Math.max(o,i)]}(o.utc(e,r).valueOf(),s,a),u=c[0],d=c[1],h=o(u).utcOffset(d);return h.$x.$timezone=a,h},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(e){i=e}}}()},220:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var a=o.prototype;i.utc=function(e){return new o({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var l=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),l.call(this,e)};var s=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else s.call(this)};var c=a.utcOffset;a.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,l=this;if(o)return l.$offset=a,l.$u=0===r,l;if(0!==r){var s=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(l=this.local().add(a+s,e)).$offset=a,l.$x.$localOffset=s}else l=this.utc();return l};var u=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var h=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return h.call(this,e,t,n);var r=this.local(),o=i(e).local();return h.call(r,o,t,n)}}}()},411:(e,t,n)=>{"use strict";var r=n(709),o=n(430),i=n(277),a=n(553);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new i("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(r)r(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===l&&d?d.enumerable:!l,value:n,writable:null===s&&d?d.writable:!s});else{if(!u&&(l||s||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},709:(e,t,n)=>{"use strict";var r=n(375)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(o){r=!1}e.exports=r},123:e=>{"use strict";e.exports=EvalError},953:e=>{"use strict";e.exports=Error},780:e=>{"use strict";e.exports=RangeError},768:e=>{"use strict";e.exports=ReferenceError},430:e=>{"use strict";e.exports=SyntaxError},277:e=>{"use strict";e.exports=TypeError},619:e=>{"use strict";e.exports=URIError},307:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r{"use strict";var r=n(307);e.exports=Function.prototype.bind||r},375:(e,t,n)=>{"use strict";var r,o=n(953),i=n(123),a=n(780),l=n(768),s=n(430),c=n(277),u=n(619),d=Function,h=function(e){try{return d('"use strict"; return ('+e+").constructor;")()}catch(t){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(z){f=null}var p=function(){throw new c},m=f?function(){try{return p}catch(e){try{return f(arguments,"callee").get}catch(t){return p}}}():p,v=n(757)(),g=n(442)(),y=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),_={},b="undefined"!==typeof Uint8Array&&y?y(Uint8Array):r,w={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":v&&y?y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":_,"%AsyncGenerator%":_,"%AsyncGeneratorFunction%":_,"%AsyncIteratorPrototype%":_,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":_,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":v&&y?y(y([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&v&&y?y((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&v&&y?y((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":v&&y?y(""[Symbol.iterator]()):r,"%Symbol%":v?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":m,"%TypedArray%":b,"%TypeError%":c,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};if(y)try{null.error}catch(z){var k=y(y(z));w["%Error.prototype%"]=k}var x=function e(t){var n;if("%AsyncFunction%"===t)n=h("async function () {}");else if("%GeneratorFunction%"===t)n=h("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=h("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&y&&(n=y(o.prototype))}return w[t]=n,n},S={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},A=n(989),C=n(155),E=A.call(Function.call,Array.prototype.concat),M=A.call(Function.apply,Array.prototype.splice),T=A.call(Function.call,String.prototype.replace),N=A.call(Function.call,String.prototype.slice),O=A.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,L=/\\(\\)?/g,R=function(e,t){var n,r=e;if(C(S,r)&&(r="%"+(n=S[r])[0]+"%"),C(w,r)){var o=w[r];if(o===_&&(o=x(r)),"undefined"===typeof o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=N(e,0,1),n=N(e,-1);if("%"===t&&"%"!==n)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var r=[];return T(e,P,(function(e,t,n,o){r[r.length]=n?T(o,L,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=R("%"+r+"%",t),i=o.name,a=o.value,l=!1,u=o.alias;u&&(r=u[0],M(n,E([0,1],u)));for(var d=1,h=!0;d=n.length){var g=f(a,p);a=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[p]}else h=C(a,p),a=a[p];h&&!l&&(w[i]=a)}}return a}},553:(e,t,n)=>{"use strict";var r=n(375)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(o){r=null}e.exports=r},734:(e,t,n)=>{"use strict";var r=n(709),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},442:e=>{"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},757:(e,t,n)=>{"use strict";var r="undefined"!==typeof Symbol&&Symbol,o=n(175);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},175:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},155:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(989);e.exports=i.call(r,o)},267:(e,t,n)=>{var r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,d="object"==typeof self&&self&&self.Object===Object&&self,h=u||d||Function("return this")(),f=Object.prototype.toString,p=Math.max,m=Math.min,v=function(){return h.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&f.call(e)==o}(e))return r;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=l.test(e);return n||s.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,n){var r,o,i,a,l,s,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function _(e){var n=e-s;return void 0===s||n>=t||n<0||d&&e-c>=i}function b(){var e=v();if(_(e))return w(e);l=setTimeout(b,function(e){var n=t-(e-s);return d?m(n,i-(e-c)):n}(e))}function w(e){return l=void 0,h&&r?f(e):(r=o=void 0,a)}function k(){var e=v(),n=_(e);if(r=arguments,o=this,s=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(b,t),u?f(e):a}(s);if(d)return l=setTimeout(b,t),f(s)}return void 0===l&&(l=setTimeout(b,t)),a}return t=y(t)||0,g(n)&&(u=!!n.leading,i=(d="maxWait"in n)?p(y(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h),k.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=s=o=l=void 0},k.flush=function(){return void 0===l?a:w(v())},k}},424:(e,t,n)=>{var r="__lodash_hash_undefined__",o=1/0,i="[object Function]",a="[object GeneratorFunction]",l="[object Symbol]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,u=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,p="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,m="object"==typeof self&&self&&self.Object===Object&&self,v=p||m||Function("return this")();var g=Array.prototype,y=Function.prototype,_=Object.prototype,b=v["__core-js_shared__"],w=function(){var e=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),k=y.toString,x=_.hasOwnProperty,S=_.toString,A=RegExp("^"+k.call(x).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=v.Symbol,E=g.splice,M=F(v,"Map"),T=F(Object,"create"),N=C?C.prototype:void 0,O=N?N.toString:void 0;function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1},L.prototype.set=function(e,t){var n=this.__data__,r=z(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},R.prototype.clear=function(){this.__data__={hash:new P,map:new(M||L),string:new P}},R.prototype.delete=function(e){return $(this,e).delete(e)},R.prototype.get=function(e){return $(this,e).get(e)},R.prototype.has=function(e){return $(this,e).has(e)},R.prototype.set=function(e,t){return $(this,e).set(e,t),this};var j=H((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(W(e))return O?O.call(e):"";var t=e+"";return"0"==t&&1/e==-o?"-0":t}(t);var n=[];return u.test(e)&&n.push(""),e.replace(d,(function(e,t,r,o){n.push(r?o.replace(h,"$1"):t||e)})),n}));function V(e){if("string"==typeof e||W(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}function H(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(H.Cache||R),n}H.Cache=R;var U=Array.isArray;function B(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function W(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&S.call(e)==l}e.exports=function(e,t,n){var r=null==e?void 0:D(e,t);return void 0===r?n:r}},141:(e,t,n)=>{var r="function"===typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"===typeof o.get?o.get:null,a=r&&Map.prototype.forEach,l="function"===typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=l&&s&&"function"===typeof s.get?s.get:null,u=l&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,v=Function.prototype.toString,g=String.prototype.match,y=String.prototype.slice,_=String.prototype.replace,b=String.prototype.toUpperCase,w=String.prototype.toLowerCase,k=RegExp.prototype.test,x=Array.prototype.concat,S=Array.prototype.join,A=Array.prototype.slice,C=Math.floor,E="function"===typeof BigInt?BigInt.prototype.valueOf:null,M=Object.getOwnPropertySymbols,T="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,N="function"===typeof Symbol&&"object"===typeof Symbol.iterator,O="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===N||"symbol")?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,L=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function R(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||k.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-C(-e):C(e);if(r!==e){var o=String(r),i=y.call(t,o.length+1);return _.call(o,n,"$&_")+"."+_.call(_.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(t,n,"$&_")}var z=n(634),D=z.custom,I=H(D)?D:null;function $(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function F(e){return _.call(String(e),/"/g,""")}function j(e){return"[object Array]"===W(e)&&(!O||!("object"===typeof e&&O in e))}function V(e){return"[object RegExp]"===W(e)&&(!O||!("object"===typeof e&&O in e))}function H(e){if(N)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!T)return!1;try{return T.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,o,l){var s=r||{};if(B(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(B(s,"maxStringLength")&&("number"===typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!B(s,"customInspect")||s.customInspect;if("boolean"!==typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(B(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(B(s,"numericSeparator")&&"boolean"!==typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var b=s.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return Z(t,s);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var k=String(t);return b?R(t,k):k}if("bigint"===typeof t){var C=String(t)+"n";return b?R(t,C):C}var M="undefined"===typeof s.depth?5:s.depth;if("undefined"===typeof o&&(o=0),o>=M&&M>0&&"object"===typeof t)return j(t)?"[Array]":"[Object]";var D=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=S.call(Array(e.indent+1)," ")}return{base:n,prev:S.call(Array(t+1),n)}}(s,o);if("undefined"===typeof l)l=[];else if(Y(l,t)>=0)return"[Circular]";function U(t,n,r){if(n&&(l=A.call(l)).push(n),r){var i={depth:s.depth};return B(s,"quoteStyle")&&(i.quoteStyle=s.quoteStyle),e(t,i,o+1,l)}return e(t,s,o+1,l)}if("function"===typeof t&&!V(t)){var q=function(e){if(e.name)return e.name;var t=g.call(v.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=X(t,U);return"[Function"+(q?": "+q:" (anonymous)")+"]"+(ee.length>0?" { "+S.call(ee,", ")+" }":"")}if(H(t)){var te=N?_.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!==typeof t||N?te:K(te)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var ne="<"+w.call(String(t.nodeName)),re=t.attributes||[],oe=0;oe"}if(j(t)){if(0===t.length)return"[]";var ie=X(t,U);return D&&!function(e){for(var t=0;t=0)return!1;return!0}(ie)?"["+J(ie,D)+"]":"[ "+S.call(ie,", ")+" ]"}if(function(e){return"[object Error]"===W(e)&&(!O||!("object"===typeof e&&O in e))}(t)){var ae=X(t,U);return"cause"in Error.prototype||!("cause"in t)||P.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(ae,", ")+" }":"{ ["+String(t)+"] "+S.call(x.call("[cause]: "+U(t.cause),ae),", ")+" }"}if("object"===typeof t&&m){if(I&&"function"===typeof t[I]&&z)return z(t,{depth:M-o});if("symbol"!==m&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!==typeof e)return!1;try{i.call(e);try{c.call(e)}catch(ne){return!0}return e instanceof Map}catch(t){}return!1}(t)){var le=[];return a&&a.call(t,(function(e,n){le.push(U(n,t,!0)+" => "+U(e,t))})),Q("Map",i.call(t),le,D)}if(function(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{i.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var se=[];return u&&u.call(t,(function(e){se.push(U(e,t))})),Q("Set",c.call(t),se,D)}if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{h.call(e,h)}catch(ne){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return G("WeakMap");if(function(e){if(!h||!e||"object"!==typeof e)return!1;try{h.call(e,h);try{d.call(e,d)}catch(ne){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return G("WeakSet");if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{return f.call(e),!0}catch(t){}return!1}(t))return G("WeakRef");if(function(e){return"[object Number]"===W(e)&&(!O||!("object"===typeof e&&O in e))}(t))return K(U(Number(t)));if(function(e){if(!e||"object"!==typeof e||!E)return!1;try{return E.call(e),!0}catch(t){}return!1}(t))return K(U(E.call(t)));if(function(e){return"[object Boolean]"===W(e)&&(!O||!("object"===typeof e&&O in e))}(t))return K(p.call(t));if(function(e){return"[object String]"===W(e)&&(!O||!("object"===typeof e&&O in e))}(t))return K(U(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if(t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===W(e)&&(!O||!("object"===typeof e&&O in e))}(t)&&!V(t)){var ce=X(t,U),ue=L?L(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",he=!ue&&O&&Object(t)===t&&O in t?y.call(W(t),8,-1):de?"Object":"",fe=(ue||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||de?"["+S.call(x.call([],he||[],de||[]),": ")+"] ":"");return 0===ce.length?fe+"{}":D?fe+"{"+J(ce,D)+"}":fe+"{ "+S.call(ce,", ")+" }"}return String(t)};var U=Object.prototype.hasOwnProperty||function(e){return e in this};function B(e,t){return U.call(e,t)}function W(e){return m.call(e)}function Y(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Z(y.call(e,0,t.maxStringLength),t)+r}return $(_.call(_.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,q),"single",t)}function q(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+b.call(t.toString(16))}function K(e){return"Object("+e+")"}function G(e){return e+" { ? }"}function Q(e,t,n,r){return e+" ("+t+") {"+(r?J(n,r):S.call(n,", "))+"}"}function J(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+S.call(e,","+n)+"\n"+t.prev}function X(e,t){var n=j(e),r=[];if(n){r.length=e.length;for(var o=0;o{"use strict";n.r(t),n.d(t,{Children:()=>Y,Component:()=>l.uA,Fragment:()=>l.FK,PureComponent:()=>j,StrictMode:()=>Pe,Suspense:()=>Q,SuspenseList:()=>ee,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>ke,cloneElement:()=>Ee,createContext:()=>l.q6,createElement:()=>l.n,createFactory:()=>Se,createPortal:()=>oe,createRef:()=>l._3,default:()=>je,findDOMNode:()=>Te,flushSync:()=>Oe,forwardRef:()=>B,hydrate:()=>he,isElement:()=>Ie,isFragment:()=>Ce,isValidElement:()=>Ae,lazy:()=>X,memo:()=>V,render:()=>de,startTransition:()=>Le,unmountComponentAtNode:()=>Me,unstable_batchedUpdates:()=>Ne,useCallback:()=>C,useContext:()=>E,useDebugValue:()=>M,useDeferredValue:()=>Re,useEffect:()=>w,useErrorBoundary:()=>T,useId:()=>N,useImperativeHandle:()=>S,useInsertionEffect:()=>De,useLayoutEffect:()=>k,useMemo:()=>A,useReducer:()=>b,useRef:()=>x,useState:()=>_,useSyncExternalStore:()=>$e,useTransition:()=>ze,version:()=>xe});var r,o,i,a,l=n(746),s=0,c=[],u=[],d=l.fF,h=d.__b,f=d.__r,p=d.diffed,m=d.__c,v=d.unmount,g=d.__;function y(e,t){d.__h&&d.__h(o,e,s||t),s=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:u}),n.__[e]}function _(e){return s=1,b(I,e)}function b(e,t,n){var i=y(r++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):I(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=o,!o.u)){var a=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return!!e.__c}));if(r.every((function(e){return!e.__N})))return!l||l.call(this,e,t,n);var o=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&i.__c.props===e)&&(!l||l.call(this,e,t,n))};o.u=!0;var l=o.shouldComponentUpdate,s=o.componentWillUpdate;o.componentWillUpdate=function(e,t,n){if(this.__e){var r=l;l=void 0,a(e,t,n),l=r}s&&s.call(this,e,t,n)},o.shouldComponentUpdate=a}return i.__N||i.__}function w(e,t){var n=y(r++,3);!d.__s&&D(n.__H,t)&&(n.__=e,n.i=t,o.__H.__h.push(n))}function k(e,t){var n=y(r++,4);!d.__s&&D(n.__H,t)&&(n.__=e,n.i=t,o.__h.push(n))}function x(e){return s=5,A((function(){return{current:e}}),[])}function S(e,t,n){s=6,k((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function A(e,t){var n=y(r++,7);return D(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function C(e,t){return s=8,A((function(){return e}),t)}function E(e){var t=o.context[e.__c],n=y(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function M(e,t){d.useDebugValue&&d.useDebugValue(t?t(e):e)}function T(e){var t=y(r++,10),n=_();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function N(){var e=y(r++,11);if(!e.__){for(var t=o.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function O(){for(var e;e=c.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(R),e.__H.__h.forEach(z),e.__H.__h=[]}catch(r){e.__H.__h=[],d.__e(r,e.__v)}}d.__b=function(e){o=null,h&&h(e)},d.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),g&&g(e,t)},d.__r=function(e){f&&f(e),r=0;var t=(o=e.__c).__H;t&&(i===o?(t.__h=[],o.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=u,e.__N=e.i=void 0}))):(t.__h.forEach(R),t.__h.forEach(z),t.__h=[],r=0)),i=o},d.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==c.push(t)&&a===d.requestAnimationFrame||((a=d.requestAnimationFrame)||L)(O)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==u&&(e.__=e.__V),e.i=void 0,e.__V=u}))),i=o=null},d.__c=function(e,t){t.some((function(e){try{e.__h.forEach(R),e.__h=e.__h.filter((function(e){return!e.__||z(e)}))}catch(o){t.some((function(e){e.__h&&(e.__h=[])})),t=[],d.__e(o,e.__v)}})),m&&m(e,t)},d.unmount=function(e){v&&v(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{R(e)}catch(e){t=e}})),n.__H=void 0,t&&d.__e(t,n.__v))};var P="function"==typeof requestAnimationFrame;function L(e){var t,n=function(){clearTimeout(r),P&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);P&&(t=requestAnimationFrame(n))}function R(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function z(e){var t=o;e.__c=e.__(),o=t}function D(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function I(e,t){return"function"==typeof t?t(e):t}function $(e,t){for(var n in t)e[n]=t[n];return e}function F(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function j(e,t){this.props=e,this.context=t}function V(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:F(this.props,e)}function r(t){return this.shouldComponentUpdate=n,(0,l.n)(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(j.prototype=new l.uA).isPureReactComponent=!0,j.prototype.shouldComponentUpdate=function(e,t){return F(this.props,e)||F(this.state,t)};var H=l.fF.__b;l.fF.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),H&&H(e)};var U="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function B(e){function t(t){var n=$({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=U,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var W=function(e,t){return null==e?null:(0,l.v2)((0,l.v2)(e).map(t))},Y={map:W,forEach:W,count:function(e){return e?(0,l.v2)(e).length:0},only:function(e){var t=(0,l.v2)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:l.v2},Z=l.fF.__e;l.fF.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);Z(e,t,n,r)};var q=l.fF.unmount;function K(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=$({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return K(e,t,n)}))),e}function G(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return G(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Q(){this.__u=0,this.t=null,this.__b=null}function J(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function X(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return(0,l.n)(n,o)}return o.displayName="Lazy",o.__f=!0,o}function ee(){this.u=null,this.o=null}l.fF.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),q&&q(e)},(Q.prototype=new l.uA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=J(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=a;var l=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=G(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},Q.prototype.componentWillUnmount=function(){this.t=[]},Q.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=K(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&(0,l.n)(l.FK,null,e.fallback);return o&&(o.__u&=-33),[(0,l.n)(l.FK,null,t.__a?null:e.children),o]};var te=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),(0,l.XX)((0,l.n)(ne,{context:t.context},e.__v),t.l)}function oe(e,t){var n=(0,l.n)(re,{__v:e,i:t});return n.containerInfo=t,n}(ee.prototype=new l.uA).__a=function(e){var t=this,n=J(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),te(t,e,r)):o()};n?n(i):i()}},ee.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,l.v2)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ee.prototype.componentDidUpdate=ee.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){te(e,n,t)}))};var ie="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ae=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,le=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,se=/[A-Z0-9]/g,ce="undefined"!=typeof document,ue=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function de(e,t,n){return null==t.__k&&(t.textContent=""),(0,l.XX)(e,t),"function"==typeof n&&n(),e?e.__c:null}function he(e,t,n){return(0,l.Qv)(e,t),"function"==typeof n&&n(),e?e.__c:null}l.uA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(l.uA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var fe=l.fF.event;function pe(){}function me(){return this.cancelBubble}function ve(){return this.defaultPrevented}l.fF.event=function(e){return fe&&(e=fe(e)),e.persist=pe,e.isPropagationStopped=me,e.isDefaultPrevented=ve,e.nativeEvent=e};var ge,ye={enumerable:!1,configurable:!0,get:function(){return this.class}},_e=l.fF.vnode;l.fF.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||ce&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var a=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"translate"===a&&"no"===i?i=!1:"ondoubleclick"===a?o="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||ue(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":le.test(o)?o=a:-1===n.indexOf("-")&&ae.test(o)?o=o.replace(se,"-$&").toLowerCase():null===i&&(i=void 0):a=o="oninput","oninput"===a&&r[o=a]&&(o="oninputCapture"),r[o]=i}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=(0,l.v2)(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=(0,l.v2)(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",ye)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=ie,_e&&_e(e)};var be=l.fF.__r;l.fF.__r=function(e){be&&be(e),ge=e.__c};var we=l.fF.diffed;l.fF.diffed=function(e){we&&we(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),ge=null};var ke={ReactCurrentDispatcher:{current:{readContext:function(e){return ge.__n[e.__c].props.value}}}},xe="17.0.2";function Se(e){return l.n.bind(null,e)}function Ae(e){return!!e&&e.$$typeof===ie}function Ce(e){return Ae(e)&&e.type===l.FK}function Ee(e){return Ae(e)?l.Ob.apply(null,arguments):e}function Me(e){return!!e.__k&&((0,l.XX)(null,e),!0)}function Te(e){return e&&(e.base||1===e.nodeType&&e)||null}var Ne=function(e,t){return e(t)},Oe=function(e,t){return e(t)},Pe=l.FK;function Le(e){e()}function Re(e){return e}function ze(){return[!1,Le]}var De=k,Ie=Ae;function $e(e,t){var n=t(),r=_({h:{__:n,v:t}}),o=r[0].h,i=r[1];return k((function(){o.__=n,o.v=t,Fe(o)&&i({h:o})}),[e,n,t]),w((function(){return Fe(o)&&i({h:o}),e((function(){Fe(o)&&i({h:o})}))}),[e]),n}function Fe(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}var je={useState:_,useId:N,useReducer:b,useEffect:w,useLayoutEffect:k,useInsertionEffect:De,useTransition:ze,useDeferredValue:Re,useSyncExternalStore:$e,startTransition:Le,useRef:x,useImperativeHandle:S,useMemo:A,useCallback:C,useContext:E,useDebugValue:M,version:"17.0.2",Children:Y,render:de,hydrate:he,unmountComponentAtNode:Me,createPortal:oe,createElement:l.n,createContext:l.q6,createFactory:Se,cloneElement:Ee,createRef:l._3,Fragment:l.FK,isValidElement:Ae,isElement:Ie,isFragment:Ce,findDOMNode:Te,Component:l.uA,PureComponent:j,memo:V,forwardRef:B,flushSync:Oe,unstable_batchedUpdates:Ne,StrictMode:Pe,Suspense:Q,SuspenseList:ee,lazy:X,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ke}},746:(e,t,n)=>{"use strict";n.d(t,{FK:()=>b,Ob:()=>B,Qv:()=>U,XX:()=>H,_3:()=>_,fF:()=>o,n:()=>g,q6:()=>W,uA:()=>w,v2:()=>N});var r,o,i,a,l,s,c,u,d={},h=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,p=Array.isArray;function m(e,t){for(var n in t)e[n]=t[n];return e}function v(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,n){var o,i,a,l={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:l[a]=t[a];if(arguments.length>2&&(l.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===l[a]&&(l[a]=e.defaultProps[a]);return y(e,l,o,i,null)}function y(e,t,n,r,a){var l={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++i:a,__i:-1,__u:0};return null==a&&null!=o.vnode&&o.vnode(l),l}function _(){return{current:null}}function b(e){return e.children}function w(e,t){this.props=e,this.context=t}function k(e,t){if(null==t)return e.__?k(e.__,e.__i+1):null;for(var n;tn?(I(r,t,i),i.length=r.length=0,t=void 0,a.sort(c)):t&&o.__c&&o.__c(t,h));t&&I(r,t,i),C.__r=0}function E(e,t,n,r,o,i,a,l,s,c,u){var f,p,m,v,g,y=r&&r.__k||h,_=t.length;for(n.__d=s,M(n,t,y),s=n.__d,f=0;f<_;f++)null!=(m=n.__k[f])&&"boolean"!=typeof m&&"function"!=typeof m&&(p=-1===m.__i?d:y[m.__i]||d,m.__i=f,D(e,m,p,o,i,a,l,s,c,u),v=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&F(p.ref,null,m),u.push(m.ref,m.__c||v,m)),null==g&&null!=v&&(g=v),65536&m.__u||p.__k===m.__k?s=T(m,s,e):"function"==typeof m.type&&void 0!==m.__d?s=m.__d:v&&(s=v.nextSibling),m.__d=void 0,m.__u&=-196609);n.__d=s,n.__e=g}function M(e,t,n){var r,o,i,a,l,s=t.length,c=n.length,u=c,d=0;for(e.__k=[],r=0;r0?y(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,l=O(o,n,a=r+d,u),o.__i=l,i=null,-1!==l&&(u--,(i=n[l])&&(i.__u|=131072)),null==i||null===i.__v?(-1==l&&d--,"function"!=typeof o.type&&(o.__u|=65536)):l!==a&&(l===a+1?d++:l>a?u>s-a?d+=l-a:d--:d=l(null!=s&&0==(131072&s.__u)?1:0))for(;a>=0||l=0){if((s=t[a])&&0==(131072&s.__u)&&o==s.key&&i===s.type)return a;a--}if(l2&&(s.children=arguments.length>3?r.call(arguments,2):n),y(e.type,s,o||e.key,i||e.ref,null)}function W(e,t){var n={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,A(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=h.slice,o={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},i=0,w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof e&&(e=e(m({},n),this.props)),e&&m(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),A(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),A(this))},w.prototype.render=b,a=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},C.__r=0,u=0},640:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:o}},215:(e,t,n)=>{"use strict";var r=n(518),o=n(968),i=n(640);e.exports={formats:i,parse:o,stringify:r}},968:(e,t,n)=>{"use strict";var r=n(570),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},l=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,l=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=l?i.slice(0,l.index):i,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(l=a.exec(i))&&d=0;--i){var a,l=e[i];if("[]"===l&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var c="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&l!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=o:"__proto__"!==c&&(a[c]=o):a={0:o}}o=a}return o}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var u="string"===typeof e?function(e,t){var n,c={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,h=u.split(t.delimiter,d),f=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(v=i(v)?[v]:v),o.call(c,m)?c[m]=r.combine(c[m],v):c[m]=v}return c}(e,n):e,d=n.plainObjects?Object.create(null):{},h=Object.keys(u),f=0;f{"use strict";var r=n(670),o=n(570),i=n(640),a=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,s(t)?t:[t])},d=Date.prototype.toISOString,h=i.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},p={},m=function e(t,n,i,a,l,c,d,h,m,v,g,y,_,b,w,k){for(var x,S=t,A=k,C=0,E=!1;void 0!==(A=A.get(p))&&!E;){var M=A.get(t);if(C+=1,"undefined"!==typeof M){if(M===C)throw new RangeError("Cyclic object value");E=!0}"undefined"===typeof A.get(p)&&(C=0)}if("function"===typeof h?S=h(n,S):S instanceof Date?S=g(S):"comma"===i&&s(S)&&(S=o.maybeMap(S,(function(e){return e instanceof Date?g(e):e}))),null===S){if(l)return d&&!b?d(n,f.encoder,w,"key",y):n;S=""}if("string"===typeof(x=S)||"number"===typeof x||"boolean"===typeof x||"symbol"===typeof x||"bigint"===typeof x||o.isBuffer(S))return d?[_(b?n:d(n,f.encoder,w,"key",y))+"="+_(d(S,f.encoder,w,"value",y))]:[_(n)+"="+_(String(S))];var T,N=[];if("undefined"===typeof S)return N;if("comma"===i&&s(S))b&&d&&(S=o.maybeMap(S,d)),T=[{value:S.length>0?S.join(",")||null:void 0}];else if(s(h))T=h;else{var O=Object.keys(S);T=m?O.sort(m):O}for(var P=a&&s(S)&&1===S.length?n+"[]":n,L=0;L0?w+b:""}},570:(e,t,n)=>{"use strict";var r=n(640),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),l=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===r.RFC1738&&(40===u||41===u)?s+=l.charAt(c):u<128?s+=a[u]:u<2048?s+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?s+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&l.charCodeAt(c)),s+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return s},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r{e.exports=n(204)},204:(e,t,n)=>{"use strict";var r=function(e){return e&&"object"==typeof e&&"default"in e?e.default:e}(n(609)),o=n(609);function i(){return(i=Object.assign||function(e){for(var t=1;tr.length&&h(e,t.length-1);)t=t.slice(0,t.length-1);return t.length}for(var o=r.length,i=t.length;i>=r.length;i--){var a=t[i];if(!h(e,i)&&f(e,i,a)){o=i+1;break}}return o}function v(e,t){return m(e,t)===e.mask.length}function g(e,t){var n=e.maskChar,r=e.mask,o=e.prefix;if(!n){for((t=y(e,"",t,0)).lengtht.length&&(t+=o.slice(t.length,r)),l.every((function(n){for(;u=n,h(e,c=r)&&u!==o[c];){if(r>=t.length&&(t+=o[r]),l=n,i&&h(e,r)&&l===i)return!0;if(++r>=o.length)return!1}var l,c,u;return!f(e,r,n)&&n!==i||(ro.start?d=(u=function(e,t,n,r){var o=e.mask,i=e.maskChar,a=n.split(""),l=r;return a.every((function(t){for(;a=t,h(e,n=r)&&a!==o[n];)if(++r>=o.length)return!1;var n,a;return(f(e,r,t)||t===i)&&r++,r=i.length?p=i.length:p=a.length&&p{"use strict";var r=n(375),o=n(411),i=n(734)(),a=n(553),l=n(277),s=r("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new l("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||s(t)!==t)throw new l("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},670:(e,t,n)=>{"use strict";var r=n(375),o=n(61),i=n(141),a=n(277),l=r("%WeakMap%",!0),s=r("%Map%",!0),c=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),h=o("Map.prototype.get",!0),f=o("Map.prototype.set",!0),p=o("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+i(e))},get:function(r){if(l&&r&&("object"===typeof r||"function"===typeof r)){if(e)return c(e,r)}else if(s){if(t)return h(t,r)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,r)},has:function(r){if(l&&r&&("object"===typeof r||"function"===typeof r)){if(e)return d(e,r)}else if(s){if(t)return p(t,r)}else if(n)return function(e,t){return!!m(e,t)}(n,r);return!1},set:function(r,o){l&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new l),u(e,r,o)):s?(t||(t=new s),f(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},634:()=>{},738:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+".bebe1265.chunk.js",n.miniCssF=e=>{},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="vmui:";n.l=(r,o,i,a)=>{if(e[r])e[r].push(o);else{var l,s;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u{l.onerror=l.onload=null,clearTimeout(f);var o=e[r];if(delete e[r],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((e=>e(n))),t)return t(n)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=h.bind(null,l.onerror),l.onload=h.bind(null,l.onload),s&&document.head.appendChild(l)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="./",(()=>{var e={792:0};n.f.j=(t,r)=>{var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var i=new Promise(((n,r)=>o=e[t]=[n,r]));r.push(o[2]=i);var a=n.p+n.u(t),l=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;l.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",l.name="ChunkLoadError",l.type=i,l.request=a,o[1](l)}}),"chunk-"+t,t)}};var t=(t,r)=>{var o,i,a=r[0],l=r[1],s=r[2],c=0;if(a.some((t=>0!==e[t]))){for(o in l)n.o(l,o)&&(n.m[o]=l[o]);if(s)s(n)}for(t&&t(r);c{"use strict";var e,t=n(609),r=n(159),o=n.n(r),i=n(7),a=n.n(i),l=n(648),s=n.n(l),c=n(220),u=n.n(c);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function _(t,n,r,o){void 0===o&&(o={});let{window:i=document.defaultView,v5Compat:a=!1}=o,l=i.history,s=e.Pop,c=null,u=p();function p(){return(l.state||{idx:null}).idx}function y(){s=e.Pop;let t=p(),n=null==t?null:t-u;u=t,c&&c({action:s,location:b.location,delta:n})}function _(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"===typeof e?e:g(e);return n=n.replace(/ $/,"%20"),f(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==u&&(u=0,l.replaceState(d({},l.state,{idx:u}),""));let b={get action(){return s},get location(){return t(i,l)},listen(e){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(h,y),c=e,()=>{i.removeEventListener(h,y),c=null}},createHref:e=>n(i,e),createURL:_,encodeLocation(e){let t=_(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(t,n){s=e.Push;let o=v(b.location,t,n);r&&r(o,t),u=p()+1;let d=m(o,u),h=b.createHref(o);try{l.pushState(d,"",h)}catch(f){if(f instanceof DOMException&&"DataCloneError"===f.name)throw f;i.location.assign(h)}a&&c&&c({action:s,location:b.location,delta:1})},replace:function(t,n){s=e.Replace;let o=v(b.location,t,n);r&&r(o,t),u=p();let i=m(o,u),d=b.createHref(o);l.replaceState(i,"",d),a&&c&&c({action:s,location:b.location,delta:0})},go:e=>l.go(e)};return b}var b;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(b||(b={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function w(e,t,n){void 0===n&&(n="/");let r=z(("string"===typeof t?y(t):t).pathname||"/",n);if(null==r)return null;let o=k(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let i=null;for(let a=0;null==i&&a{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(f(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let l=j([r,a.relativePath]),s=n.concat(a);e.children&&e.children.length>0&&(f(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),k(e.children,t,s,l)),(null!=e.path||e.index)&&t.push({path:l,score:O(l,e.index),routesMeta:s})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of x(e.path))o(e,t,r);else o(e,t)})),t}function x(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=x(r.join("/")),l=[];return l.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&l.push(...a),l.map((t=>e.startsWith("/")&&""===t?"/":t))}const S=/^:[\w-]+$/,A=3,C=2,E=1,M=10,T=-2,N=e=>"*"===e;function O(e,t){let n=e.split("/"),r=n.length;return n.some(N)&&(r+=T),t&&(r+=C),n.filter((e=>!N(e))).reduce(((e,t)=>e+(S.test(t)?A:""===t?E:M)),r)}function P(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let i=new RegExp(o,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=l[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const s=l[n];return e[r]=o&&!s?void 0:(s||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function R(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return p(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function z(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function D(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function I(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function $(e,t){let n=I(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function F(e,t,n,r){let o;void 0===r&&(r=!1),"string"===typeof e?o=y(e):(o=d({},e),f(!o.pathname||!o.pathname.includes("?"),D("?","pathname","search",o)),f(!o.pathname||!o.pathname.includes("#"),D("#","pathname","hash",o)),f(!o.search||!o.search.includes("#"),D("#","search","hash",o)));let i,a=""===e||""===o.pathname,l=a?"/":o.pathname;if(null==l)i=n;else{let e=t.length-1;if(!r&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let s=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"===typeof e?y(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:H(r),hash:U(o)}}(o,i),c=l&&"/"!==l&&l.endsWith("/"),u=(a||"."===l)&&n.endsWith("/");return s.pathname.endsWith("/")||!c&&!u||(s.pathname+="/"),s}const j=e=>e.join("/").replace(/\/\/+/g,"/"),V=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),H=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",U=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function B(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const W=["post","put","patch","delete"],Y=(new Set(W),["get",...W]);new Set(Y),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t{r.current=!0}));let o=t.useCallback((function(t,o){void 0===o&&(o={}),r.current&&("number"===typeof t?e.navigate(t):e.navigate(t,Z({fromRouteId:n},o)))}),[e,n]);return o}():function(){ee()||f(!1);let e=t.useContext(q),{basename:n,future:r,navigator:o}=t.useContext(G),{matches:i}=t.useContext(J),{pathname:a}=te(),l=JSON.stringify($(i,r.v7_relativeSplatPath)),s=t.useRef(!1);ne((()=>{s.current=!0}));let c=t.useCallback((function(t,r){if(void 0===r&&(r={}),!s.current)return;if("number"===typeof t)return void o.go(t);let i=F(t,JSON.parse(l),a,"path"===r.relative);null==e&&"/"!==n&&(i.pathname="/"===i.pathname?n:j([n,i.pathname])),(r.replace?o.replace:o.push)(i,r.state,r)}),[n,o,l,a,e]);return c}()}const oe=t.createContext(null);function ie(e,n){let{relative:r}=void 0===n?{}:n,{future:o}=t.useContext(G),{matches:i}=t.useContext(J),{pathname:a}=te(),l=JSON.stringify($(i,o.v7_relativeSplatPath));return t.useMemo((()=>F(e,JSON.parse(l),a,"path"===r)),[e,l,a,r])}function ae(n,r,o,i){ee()||f(!1);let{navigator:a}=t.useContext(G),{matches:l}=t.useContext(J),s=l[l.length-1],c=s?s.params:{},u=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let d,h=te();if(r){var p;let e="string"===typeof r?y(r):r;"/"===u||(null==(p=e.pathname)?void 0:p.startsWith(u))||f(!1),d=e}else d=h;let m=d.pathname||"/",v=m;if("/"!==u){let e=u.replace(/^\//,"").split("/");v="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=w(n,{pathname:v});let _=de(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:j([u,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:j([u,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),l,o,i);return r&&_?t.createElement(Q.Provider,{value:{location:Z({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:e.Pop}},_):_}function le(){let e=function(){var e;let n=t.useContext(X),r=me(fe.UseRouteError),o=ve(fe.UseRouteError);if(void 0!==n)return n;return null==(e=r.errors)?void 0:e[o]}(),n=B(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:o};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},n),r?t.createElement("pre",{style:i},r):null,null)}const se=t.createElement(le,null);class ce extends t.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?t.createElement(J.Provider,{value:this.props.routeContext},t.createElement(X.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ue(e){let{routeContext:n,match:r,children:o}=e,i=t.useContext(q);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),t.createElement(J.Provider,{value:n},o)}function de(e,n,r,o){var i;if(void 0===n&&(n=[]),void 0===r&&(r=null),void 0===o&&(o=null),null==e){var a;if(null==(a=r)||!a.errors)return null;e=r.matches}let l=e,s=null==(i=r)?void 0:i.errors;if(null!=s){let e=l.findIndex((e=>e.route.id&&(null==s?void 0:s[e.route.id])));e>=0||f(!1),l=l.slice(0,Math.min(l.length,e+1))}let c=!1,u=-1;if(r&&o&&o.v7_partialHydration)for(let t=0;t=0?l.slice(0,u+1):[l[0]];break}}}return l.reduceRight(((e,o,i)=>{let a,d=!1,h=null,f=null;var p;r&&(a=s&&o.route.id?s[o.route.id]:void 0,h=o.route.errorElement||se,c&&(u<0&&0===i?(p="route-fallback",!1||ge[p]||(ge[p]=!0),d=!0,f=null):u===i&&(d=!0,f=o.route.hydrateFallbackElement||null)));let m=n.concat(l.slice(0,i+1)),v=()=>{let n;return n=a?h:d?f:o.route.Component?t.createElement(o.route.Component,null):o.route.element?o.route.element:e,t.createElement(ue,{match:o,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:n})};return r&&(o.route.ErrorBoundary||o.route.errorElement||0===i)?t.createElement(ce,{location:r.location,revalidation:r.revalidation,component:h,error:a,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()}),null)}var he=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(he||{}),fe=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(fe||{});function pe(e){let n=t.useContext(q);return n||f(!1),n}function me(e){let n=t.useContext(K);return n||f(!1),n}function ve(e){let n=function(e){let n=t.useContext(J);return n||f(!1),n}(),r=n.matches[n.matches.length-1];return r.route.id||f(!1),r.route.id}const ge={};t.startTransition;function ye(e){return function(e){let n=t.useContext(J).outlet;return n?t.createElement(oe.Provider,{value:e},n):n}(e.context)}function _e(e){f(!1)}function be(n){let{basename:r="/",children:o=null,location:i,navigationType:a=e.Pop,navigator:l,static:s=!1,future:c}=n;ee()&&f(!1);let u=r.replace(/^\/*/,"/"),d=t.useMemo((()=>({basename:u,navigator:l,static:s,future:Z({v7_relativeSplatPath:!1},c)})),[u,c,l,s]);"string"===typeof i&&(i=y(i));let{pathname:h="/",search:p="",hash:m="",state:v=null,key:g="default"}=i,_=t.useMemo((()=>{let e=z(h,u);return null==e?null:{location:{pathname:e,search:p,hash:m,state:v,key:g},navigationType:a}}),[u,h,p,m,v,g,a]);return null==_?null:t.createElement(G.Provider,{value:d},t.createElement(Q.Provider,{children:o,value:_}))}function we(e){let{children:t,location:n}=e;return ae(ke(t),n)}new Promise((()=>{}));t.Component;function ke(e,n){void 0===n&&(n=[]);let r=[];return t.Children.forEach(e,((e,o)=>{if(!t.isValidElement(e))return;let i=[...n,o];if(e.type===t.Fragment)return void r.push.apply(r,ke(e.props.children,i));e.type!==_e&&f(!1),e.props.index&&e.props.children&&f(!1);let a={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=ke(e.props.children,i)),r.push(a)})),r}function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function Ae(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const Ce=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Ee=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];try{window.__reactRouterVersion="6"}catch(Au){}const Me=t.createContext({isTransitioning:!1});new Map;const Te=t.startTransition;t.flushSync,t.useId;function Ne(e){let{basename:n,children:r,future:o,window:i}=e,a=t.useRef();null==a.current&&(a.current=function(e){return void 0===e&&(e={}),_((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=y(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),v("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"===typeof t?t:g(t))}),(function(e,t){p("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}({window:i,v5Compat:!0}));let l=a.current,[s,c]=t.useState({action:l.action,location:l.location}),{v7_startTransition:u}=o||{},d=t.useCallback((e=>{u&&Te?Te((()=>c(e))):c(e)}),[c,u]);return t.useLayoutEffect((()=>l.listen(d)),[l,d]),t.createElement(be,{basename:n,children:r,location:s.location,navigationType:s.action,navigator:l,future:o})}const Oe="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,Pe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Le=t.forwardRef((function(e,n){let r,{onClick:o,relative:i,reloadDocument:a,replace:l,state:s,target:c,to:u,preventScrollReset:d,unstable_viewTransition:h}=e,p=Se(e,Ce),{basename:m}=t.useContext(G),v=!1;if("string"===typeof u&&Pe.test(u)&&(r=u,Oe))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),n=z(t.pathname,m);t.origin===e.origin&&null!=n?u=n+t.search+t.hash:v=!0}catch(Au){}let y=function(e,n){let{relative:r}=void 0===n?{}:n;ee()||f(!1);let{basename:o,navigator:i}=t.useContext(G),{hash:a,pathname:l,search:s}=ie(e,{relative:r}),c=l;return"/"!==o&&(c="/"===l?o:j([o,l])),i.createHref({pathname:c,search:s,hash:a})}(u,{relative:i}),_=function(e,n){let{target:r,replace:o,state:i,preventScrollReset:a,relative:l,unstable_viewTransition:s}=void 0===n?{}:n,c=re(),u=te(),d=ie(e,{relative:l});return t.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,r)){t.preventDefault();let n=void 0!==o?o:g(u)===g(d);c(e,{replace:n,state:i,preventScrollReset:a,relative:l,unstable_viewTransition:s})}}),[u,c,d,o,i,r,e,a,l,s])}(u,{replace:l,state:s,target:c,preventScrollReset:d,relative:i,unstable_viewTransition:h});return t.createElement("a",xe({},p,{href:r||y,onClick:v||a?o:function(e){o&&o(e),e.defaultPrevented||_(e)},ref:n,target:c}))}));const Re=t.forwardRef((function(e,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:l,to:s,unstable_viewTransition:c,children:u}=e,d=Se(e,Ee),h=ie(s,{relative:d.relative}),p=te(),m=t.useContext(K),{navigator:v,basename:g}=t.useContext(G),y=null!=m&&function(e,n){void 0===n&&(n={});let r=t.useContext(Me);null==r&&f(!1);let{basename:o}=Ie(ze.useViewTransitionState),i=ie(e,{relative:n.relative});if(!r.isTransitioning)return!1;let a=z(r.currentLocation.pathname,o)||r.currentLocation.pathname,l=z(r.nextLocation.pathname,o)||r.nextLocation.pathname;return null!=L(i.pathname,l)||null!=L(i.pathname,a)}(h)&&!0===c,_=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,b=p.pathname,w=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;o||(b=b.toLowerCase(),w=w?w.toLowerCase():null,_=_.toLowerCase()),w&&g&&(w=z(w,g)||w);const k="/"!==_&&_.endsWith("/")?_.length-1:_.length;let x,S=b===_||!a&&b.startsWith(_)&&"/"===b.charAt(k),A=null!=w&&(w===_||!a&&w.startsWith(_)&&"/"===w.charAt(_.length)),C={isActive:S,isPending:A,isTransitioning:y},E=S?r:void 0;x="function"===typeof i?i(C):[i,S?"active":null,A?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let M="function"===typeof l?l(C):l;return t.createElement(Le,xe({},d,{"aria-current":E,className:x,ref:n,style:M,to:s,unstable_viewTransition:c}),"function"===typeof u?u(C):u)}));var ze,De;function Ie(e){let n=t.useContext(q);return n||f(!1),n}function $e(e){let n=t.useRef(Ae(e)),r=t.useRef(!1),o=te(),i=t.useMemo((()=>function(e,t){let n=Ae(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(o.search,r.current?null:n.current)),[o.search]),a=re(),l=t.useCallback(((e,t)=>{const n=Ae("function"===typeof e?e(i):e);r.current=!0,a("?"+n,t)}),[a,i]);return[i,l]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ze||(ze={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(De||(De={}));const Fe=()=>{var e;const t=(null===(e=document.getElementById("root"))||void 0===e?void 0:e.dataset.params)||"{}";try{return JSON.parse(t)}catch(Au){return console.error(Au),{}}},je=()=>!!Object.keys(Fe()).length,Ve=/(\/select\/)(\d+|\d.+)(\/)(.+)/,He=e=>{var t;return(null===(t=e.match(Ve))||void 0===t?void 0:t[2])||""};let Ue=function(e){return e.logs="logs",e.anomaly="anomaly",e}({});const Be=(e,t)=>{t?window.localStorage.setItem(e,JSON.stringify({value:t})):Ye([e]),window.dispatchEvent(new Event("storage"))},We=e=>{const t=window.localStorage.getItem(e);if(null!==t)try{var n;return null===(n=JSON.parse(t))||void 0===n?void 0:n.value}catch(Au){return t}},Ye=e=>e.forEach((e=>window.localStorage.removeItem(e))),{REACT_APP_TYPE:Ze}={REACT_APP_TYPE:"logs"};var qe=n(215),Ke=n.n(qe),Ge=n(424),Qe=n.n(Ge);const Je={table:100,chart:20,code:1e3},Xe=(e,t)=>{const n=window.location.hash.split("?")[1],r=Ke().parse(n,{ignoreQueryPrefix:!0});return Qe()(r,e,t||"")};let et=function(e){return e.yhat="yhat",e.yhatUpper="yhat_upper",e.yhatLower="yhat_lower",e.anomaly="vmui_anomalies_points",e.training="vmui_training_data",e.actual="actual",e.anomalyScore="anomaly_score",e}({}),tt=function(e){return e.table="table",e.chart="chart",e.code="code",e}({}),nt=function(e){return e.emptyServer="Please enter Server URL",e.validServer="Please provide a valid Server URL",e.validQuery="Please enter a valid Query and execute it",e.traceNotFound="Not found the tracing information",e.emptyTitle="Please enter title",e.positiveNumber="Please enter positive number",e.validStep="Please enter a valid step",e.unknownType="Unknown server response format: must have 'errorType'",e}({}),rt=function(e){return e.system="system",e.light="light",e.dark="dark",e}({}),ot=function(e){return e.empty="empty",e.metricsql="metricsql",e.label="label",e.labelValue="labelValue",e}({});const it=e=>getComputedStyle(document.documentElement).getPropertyValue("--".concat(e)),at=(e,t)=>{document.documentElement.style.setProperty("--".concat(e),t)},lt=()=>window.matchMedia("(prefers-color-scheme: dark)").matches,st=e=>e.replace(/\/$/,""),ct=Xe("g0.tenantID",""),ut={serverUrl:st((e=>{const{serverURL:t}=Fe(),n=We("SERVER_URL"),r=window.location.href.replace(/\/(select\/)?(vmui)\/.*/,""),o=window.location.href.replace(/\/(?:prometheus\/)?(?:graph|vmui)\/.*/,"/prometheus"),i=t||n||o;return Ze===Ue.logs?r:e?((e,t)=>e.replace(Ve,"$1".concat(t,"/$4")))(i,e):i})(ct)),tenantId:ct,theme:We("THEME")||rt.system,isDarkTheme:null};function dt(e,t){switch(t.type){case"SET_SERVER":return{...e,serverUrl:st(t.payload)};case"SET_TENANT_ID":return{...e,tenantId:t.payload};case"SET_THEME":return Be("THEME",t.payload),{...e,theme:t.payload};case"SET_DARK_THEME":return{...e,isDarkTheme:(n=e.theme,n===rt.system&<()||n===rt.dark)};default:throw new Error}var n}var ht=n(746);var ft=0;Array.isArray;function pt(e,t,n,r,o,i){var a,l,s={};for(l in t)"ref"==l?a=t[l]:s[l]=t[l];var c={type:e,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--ft,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof e&&(a=e.defaultProps))for(l in a)void 0===s[l]&&(s[l]=a[l]);return ht.fF.vnode&&ht.fF.vnode(c),c}const mt=(0,t.createContext)({}),vt=()=>(0,t.useContext)(mt).state,gt=()=>(0,t.useContext)(mt).dispatch,yt=Object.entries(ut).reduce(((e,t)=>{let[n,r]=t;return{...e,[n]:Xe(n)||r}}),{}),_t="YYYY-MM-DD HH:mm:ss",bt="YYYY-MM-DD[T]HH:mm:ss",wt=window.innerWidth/4,kt=window.innerWidth/40,xt=Intl.supportedValuesOf,St=xt?xt("timeZone"):["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/La_Rioja","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fort_Nelson","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Monticello","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Katmandu","Asia/Khandyga","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis"],At=[{long:"years",short:"y",possible:"year"},{long:"weeks",short:"w",possible:"week"},{long:"days",short:"d",possible:"day"},{long:"hours",short:"h",possible:"hour"},{long:"minutes",short:"m",possible:"min"},{long:"seconds",short:"s",possible:"sec"},{long:"milliseconds",short:"ms",possible:"millisecond"}],Ct=At.map((e=>e.short)),Et=e=>{let t=(n=e,Math.round(1e3*n)/1e3);var n;const r=Math.round(e);e>=100&&(t=r-r%10),e<100&&e>=10&&(t=r-r%5),e<10&&e>=1&&(t=r),e<1&&e>.01&&(t=Math.round(40*e)/40);const i=(e=>Lt(o().duration(e,"seconds").asMilliseconds()))(t||.001);return i.replace(/\s/g,"")},Mt=e=>{const t=e.match(/\d+/g),n=e.match(/[a-zA-Z]+/g);if(n&&t&&Ct.includes(n[0]))return{[n[0]]:t[0]}},Tt=(e,t)=>Et(e/(t?kt:wt)),Nt=(e,t)=>{const n=(t||o()().toDate()).valueOf()/1e3,r=(e=>{const t=At.map((e=>e.short)).join("|"),n=new RegExp("\\d+[".concat(t,"]+"),"g"),r=(e.match(n)||[]).reduce(((e,t)=>{const n=Mt(t);return n?{...e,...n}:{...e}}),{});return o().duration(r).asSeconds()})(e);return{start:n-r,end:n,step:Tt(r),date:Ot(t||o()().toDate())}},Ot=e=>o().tz(e).utc().format(bt),Pt=e=>o().tz(e).format(bt),Lt=e=>{const t=Math.floor(e%1e3),n=Math.floor(e/1e3%60),r=Math.floor(e/1e3/60%60),o=Math.floor(e/1e3/3600%24),i=Math.floor(e/864e5),a=["d","h","m","s","ms"],l=[i,o,r,n,t].map(((e,t)=>e?"".concat(e).concat(a[t]):""));return l.filter((e=>e)).join("")},Rt=e=>{const t=o()(1e3*e);return t.isValid()?t.toDate():new Date},zt=[{title:"Last 5 minutes",duration:"5m"},{title:"Last 15 minutes",duration:"15m"},{title:"Last 30 minutes",duration:"30m",isDefault:!0},{title:"Last 1 hour",duration:"1h"},{title:"Last 3 hours",duration:"3h"},{title:"Last 6 hours",duration:"6h"},{title:"Last 12 hours",duration:"12h"},{title:"Last 24 hours",duration:"24h"},{title:"Last 2 days",duration:"2d"},{title:"Last 7 days",duration:"7d"},{title:"Last 30 days",duration:"30d"},{title:"Last 90 days",duration:"90d"},{title:"Last 180 days",duration:"180d"},{title:"Last 1 year",duration:"1y"},{title:"Yesterday",duration:"1d",until:()=>o()().tz().subtract(1,"day").endOf("day").toDate()},{title:"Today",duration:"1d",until:()=>o()().tz().endOf("day").toDate()}].map((e=>({id:e.title.replace(/\s/g,"_").toLocaleLowerCase(),until:e.until?e.until:()=>o()().tz().toDate(),...e}))),Dt=e=>{var t;let{relativeTimeId:n,defaultDuration:r,defaultEndInput:o}=e;const i=null===(t=zt.find((e=>e.isDefault)))||void 0===t?void 0:t.id,a=n||Xe("g0.relative_time",i),l=zt.find((e=>e.id===a));return{relativeTimeId:l?a:"none",duration:l?l.duration:r,endInput:l?l.until():o}},It=e=>{const t=o()().tz(e);return"UTC".concat(t.format("Z"))},$t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=new RegExp(e,"i");return St.reduce(((n,r)=>{const o=(r.match(/^(.*?)\//)||[])[1]||"unknown",i=It(r),a=i.replace(/UTC|0/,""),l=r.replace(/[/_]/g," "),s={region:r,utc:i,search:"".concat(r," ").concat(i," ").concat(l," ").concat(a)},c=!e||e&&t.test(s.search);return c&&n[o]?n[o].push(s):c&&(n[o]=[s]),n}),{})},Ft=e=>{o().tz.setDefault(e)},jt=()=>{const e=o().tz.guess(),t=(e=>{try{return o()().tz(e),!0}catch(Au){return!1}})(e);return{isValid:t,title:t?"Browser Time (".concat(e,")"):"Browser timezone (UTC)",region:t?e:"UTC"}},Vt=We("TIMEZONE")||jt().region;Ft(Vt);const Ht=Xe("g0.range_input"),{duration:Ut,endInput:Bt,relativeTimeId:Wt}=Dt({defaultDuration:Ht||"1h",defaultEndInput:(Yt=Xe("g0.end_input",o()().utc().format(bt)),o()(Yt).utcOffset(0,!0).toDate()),relativeTimeId:Ht?Xe("g0.relative_time","none"):void 0});var Yt;const Zt={duration:Ut,period:Nt(Ut,Bt),relativeTime:Wt,timezone:Vt};function qt(e,t){switch(t.type){case"SET_DURATION":return{...e,duration:t.payload,period:Nt(t.payload,Rt(e.period.end)),relativeTime:"none"};case"SET_RELATIVE_TIME":return{...e,duration:t.payload.duration,period:Nt(t.payload.duration,t.payload.until),relativeTime:t.payload.id};case"SET_PERIOD":const n=(e=>{const t=e.to.valueOf()-e.from.valueOf();return Lt(t)})(t.payload);return{...e,duration:n,period:Nt(n,t.payload.to),relativeTime:"none"};case"RUN_QUERY":const{duration:r,endInput:o}=Dt({relativeTimeId:e.relativeTime,defaultDuration:e.duration,defaultEndInput:Rt(e.period.end)});return{...e,period:Nt(r,o)};case"RUN_QUERY_TO_NOW":return{...e,period:Nt(e.duration)};case"SET_TIMEZONE":return Ft(t.payload),Be("TIMEZONE",t.payload),e.defaultTimezone&&Be("DISABLED_DEFAULT_TIMEZONE",t.payload!==e.defaultTimezone),{...e,timezone:t.payload};case"SET_DEFAULT_TIMEZONE":return{...e,defaultTimezone:t.payload};default:throw new Error}}const Kt=(0,t.createContext)({}),Gt=()=>(0,t.useContext)(Kt).state,Qt=()=>(0,t.useContext)(Kt).dispatch,Jt=e=>{const t=e.map((e=>e.values[e.index])),n=(e=>{const t=We(e);return t?JSON.parse(t):[]})("QUERY_HISTORY");n[0]||(n[0]=[]);const r=n[0];t.forEach((e=>{!r.includes(e)&&e&&r.unshift(e),r.length>100&&r.shift()})),Be("QUERY_HISTORY",JSON.stringify(n))},Xt=50,en=1e3,tn=1e3;const nn=(()=>{var e;const t=(null===(e=(window.location.hash.split("?")[1]||"").match(/g\d+\.expr/g))||void 0===e?void 0:e.length)||1;return new Array(t>4?4:t).fill(1).map(((e,t)=>Xe("g".concat(t,".expr"),"")))})(),rn={query:nn,queryHistory:nn.map((e=>({index:0,values:[e]}))),autocomplete:We("AUTOCOMPLETE")||!1,autocompleteQuick:!1,autocompleteCache:new class{constructor(){this.maxSize=void 0,this.map=void 0,this.maxSize=tn,this.map=new Map}get(e){for(const[t,n]of this.map){const r=JSON.parse(t),o=r.start===e.start&&r.end===e.end,i=r.type===e.type,a=e.value&&r.value&&e.value.includes(r.value),l=r.match===e.match||a,s=n.length=this.maxSize){const e=this.map.keys().next().value;this.map.delete(e)}this.map.set(JSON.stringify(e),t)}},metricsQLFunctions:[]};function on(e,t){switch(t.type){case"SET_QUERY":return{...e,query:t.payload.map((e=>e))};case"SET_QUERY_HISTORY":return Jt(t.payload),{...e,queryHistory:t.payload};case"SET_QUERY_HISTORY_BY_INDEX":return e.queryHistory.splice(t.payload.queryNumber,1,t.payload.value),{...e,queryHistory:e.queryHistory};case"TOGGLE_AUTOCOMPLETE":return Be("AUTOCOMPLETE",!e.autocomplete),{...e,autocomplete:!e.autocomplete};case"SET_AUTOCOMPLETE_QUICK":return{...e,autocompleteQuick:t.payload};case"SET_AUTOCOMPLETE_CACHE":return e.autocompleteCache.put(t.payload.key,t.payload.value),{...e};case"SET_METRICSQL_FUNCTIONS":return{...e,metricsQLFunctions:t.payload};default:throw new Error}}const an=(0,t.createContext)({}),ln=()=>(0,t.useContext)(an).state,sn=()=>(0,t.useContext)(an).dispatch,cn=()=>pt("svg",{viewBox:"0 0 74 24",fill:"currentColor",children:pt("path",{d:"M6.12 10.48c.36.28.8.43 1.26.43h.05c.48 0 .96-.19 1.25-.44 1.5-1.28 5.88-5.29 5.88-5.29C15.73 4.1 12.46 3.01 7.43 3h-.06C2.33 3-.93 4.1.24 5.18c0 0 4.37 4 5.88 5.3Zm2.56 2.16c-.36.28-.8.44-1.26.45h-.04c-.46 0-.9-.17-1.26-.45-1.04-.88-4.74-4.22-6.12-5.5v1.94c0 .21.08.5.22.63l.07.06c1.05.96 4.55 4.16 5.83 5.25.36.28.8.43 1.26.44h.04c.49-.02.96-.2 1.26-.44 1.3-1.11 4.94-4.45 5.88-5.31.15-.14.23-.42.23-.63V7.15a454.94 454.94 0 0 1-6.11 5.5Zm-1.26 4.99c.46 0 .9-.16 1.26-.44a454.4 454.4 0 0 0 6.1-5.5v1.94c0 .2-.07.48-.22.62-.94.87-4.57 4.2-5.88 5.3-.3.26-.77.44-1.26.45h-.04c-.46 0-.9-.16-1.26-.44-1.2-1.02-4.38-3.92-5.62-5.06l-.28-.25c-.14-.14-.22-.42-.22-.62v-1.94c1.38 1.26 5.08 4.6 6.12 5.5.36.28.8.43 1.26.44h.04ZM35 5l-5.84 14.46h-2.43L20.89 5h2.16a.9.9 0 0 1 .9.61l3.41 8.82a18.8 18.8 0 0 1 .62 2.02 19.44 19.44 0 0 1 .57-2.02l3.39-8.82c.05-.15.16-.3.31-.42a.9.9 0 0 1 .58-.19H35Zm17.18 0v14.46H49.8v-9.34c0-.37.02-.78.06-1.21l-4.37 8.21c-.21.4-.53.59-.95.59h-.38c-.43 0-.75-.2-.95-.59L38.8 8.88a22.96 22.96 0 0 1 .07 1.24v9.34H36.5V5h2.03l.3.01c.1 0 .17.02.24.05.07.03.13.07.19.13a1 1 0 0 1 .17.24l4.33 8.03a16.97 16.97 0 0 1 .6 1.36 14.34 14.34 0 0 1 .6-1.38l4.28-8.01c.05-.1.1-.18.17-.24.06-.06.12-.1.19-.13a.9.9 0 0 1 .24-.05l.3-.01h2.04Zm8.88 13.73a4.5 4.5 0 0 0 1.82-.35 3.96 3.96 0 0 0 2.22-2.47c.2-.57.3-1.19.3-1.85V5.31h1.02v8.75c0 .78-.12 1.51-.37 2.19a4.88 4.88 0 0 1-2.76 2.95c-.66.29-1.4.43-2.23.43-.82 0-1.57-.14-2.24-.43a5.01 5.01 0 0 1-2.75-2.95 6.37 6.37 0 0 1-.37-2.19V5.31h1.03v8.74c0 .66.1 1.28.3 1.85a3.98 3.98 0 0 0 2.21 2.47c.53.24 1.14.36 1.82.36Zm10.38.73h-1.03V5.31h1.03v14.15Z"})}),un=()=>pt("svg",{viewBox:"0 0 85 38",fill:"currentColor",children:[pt("path",{d:"M11.12 10.48c.36.28.8.43 1.26.43h.05c.48 0 .96-.19 1.25-.44 1.5-1.28 5.88-5.29 5.88-5.29 1.17-1.09-2.1-2.17-7.13-2.18h-.06c-5.04 0-8.3 1.1-7.13 2.18 0 0 4.37 4 5.88 5.3Zm2.56 2.16c-.36.28-.8.44-1.26.45h-.04c-.46 0-.9-.17-1.26-.45-1.04-.88-4.74-4.22-6.12-5.5v1.94c0 .21.08.5.22.63l.07.06c1.05.96 4.55 4.16 5.83 5.25.36.28.8.43 1.26.44h.04c.49-.02.96-.2 1.26-.44 1.3-1.11 4.94-4.45 5.88-5.31.15-.14.23-.42.23-.63V7.15a455.13 455.13 0 0 1-6.11 5.5Zm-1.26 4.99c.46 0 .9-.16 1.26-.44 2.05-1.82 4.09-3.65 6.1-5.5v1.94c0 .2-.07.48-.22.62-.94.87-4.57 4.2-5.88 5.3-.3.26-.77.44-1.26.45h-.04c-.46 0-.9-.16-1.26-.44-1.2-1.02-4.38-3.92-5.62-5.06l-.28-.25c-.14-.14-.22-.42-.22-.62v-1.94c1.38 1.26 5.08 4.6 6.12 5.5.36.28.8.43 1.26.44h.04ZM40 5l-5.84 14.46h-2.43L25.89 5h2.16a.9.9 0 0 1 .9.61l3.41 8.82a18.8 18.8 0 0 1 .62 2.02 19.44 19.44 0 0 1 .57-2.02l3.39-8.82c.05-.15.16-.3.31-.42a.9.9 0 0 1 .58-.19H40Zm17.18 0v14.46H54.8v-9.34c0-.37.02-.78.06-1.21l-4.37 8.21c-.21.4-.53.59-.95.59h-.38c-.43 0-.75-.2-.95-.59L43.8 8.88a22.96 22.96 0 0 1 .07 1.24v9.34H41.5V5h2.03l.3.01c.1 0 .17.02.24.05.07.03.13.07.19.13a1 1 0 0 1 .17.24l4.33 8.03a16.97 16.97 0 0 1 .6 1.36 14.34 14.34 0 0 1 .6-1.38l4.28-8.01c.05-.1.1-.18.17-.24.06-.06.12-.1.19-.13a.9.9 0 0 1 .24-.05l.3-.01h2.04Zm8.88 13.73a4.5 4.5 0 0 0 1.82-.35 3.96 3.96 0 0 0 2.22-2.47c.2-.57.3-1.19.3-1.85V5.31h1.02v8.75c0 .78-.12 1.51-.37 2.19a4.88 4.88 0 0 1-2.76 2.95c-.66.29-1.4.43-2.23.43-.82 0-1.57-.14-2.24-.43a5.01 5.01 0 0 1-2.75-2.95 6.37 6.37 0 0 1-.37-2.19V5.31h1.03v8.74c0 .66.1 1.28.3 1.85a3.98 3.98 0 0 0 2.21 2.47c.53.24 1.14.36 1.82.36Zm10.38.73h-1.03V5.31h1.03v14.15ZM1.73 36v-5.17l-.67-.07a.6.6 0 0 1-.21-.1.23.23 0 0 1-.08-.18v-.44h.96v-.59c0-.34.05-.65.14-.92a1.79 1.79 0 0 1 1.08-1.11 2.45 2.45 0 0 1 1.62-.02l-.03.53c0 .1-.06.15-.16.16H4c-.18 0-.35.03-.5.08a.95.95 0 0 0-.39.23c-.1.11-.19.25-.25.43-.05.18-.08.4-.08.65v.56h1.75v.78H2.8V36H1.73Zm6.17-6.17c.45 0 .85.07 1.2.22a2.57 2.57 0 0 1 1.5 1.62c.13.38.2.81.2 1.29s-.07.91-.2 1.3a2.57 2.57 0 0 1-1.49 1.61c-.36.14-.76.21-1.2.21-.45 0-.86-.07-1.22-.21a2.57 2.57 0 0 1-1.5-1.62c-.12-.38-.19-.81-.19-1.3 0-.47.07-.9.2-1.28a2.57 2.57 0 0 1 1.5-1.62c.35-.15.76-.22 1.2-.22Zm0 5.42c.6 0 1.05-.2 1.35-.6.3-.4.44-.97.44-1.69s-.15-1.28-.44-1.69c-.3-.4-.75-.6-1.35-.6-.3 0-.57.05-.8.15-.22.1-.4.26-.56.45-.15.2-.26.44-.33.73-.08.28-.11.6-.11.96 0 .72.15 1.29.44 1.69.3.4.76.6 1.36.6Zm5.26-4.11c.2-.42.43-.74.71-.97.28-.24.62-.36 1.03-.36.13 0 .25.02.36.05.12.02.23.07.32.13l-.08.8c-.02.1-.08.15-.18.15l-.24-.04a1.7 1.7 0 0 0-.88.05c-.15.05-.29.14-.4.25-.12.1-.23.24-.32.4-.1.17-.18.35-.26.56V36h-1.07v-6.08h.61c.12 0 .2.02.24.07.05.04.08.12.1.23l.06.92Zm13.73-3.82L23.39 36h-1.46l-3.5-8.68h1.29a.54.54 0 0 1 .54.37l2.04 5.3a11.31 11.31 0 0 1 .37 1.21 11.65 11.65 0 0 1 .35-1.22l2.03-5.29c.03-.1.1-.18.19-.25.1-.08.21-.12.35-.12h1.3Zm2.2 2.52V36H27.6v-6.16h1.49Zm.2-1.79c0 .13-.02.25-.08.36a1 1 0 0 1-.51.5.96.96 0 0 1-.73 0 1.02 1.02 0 0 1-.5-.5.96.96 0 0 1 0-.73.93.93 0 0 1 .86-.58.9.9 0 0 1 .37.08c.12.05.22.11.3.2a.94.94 0 0 1 .3.67Zm5.72 3.1a.68.68 0 0 1-.13.13c-.04.03-.1.05-.18.05a.42.42 0 0 1-.22-.07 3.95 3.95 0 0 0-.62-.31c-.14-.05-.3-.07-.51-.07-.26 0-.5.04-.69.14-.2.1-.36.23-.49.4-.13.18-.22.4-.29.64-.06.25-.1.53-.1.85 0 .33.04.62.1.88.08.25.18.47.32.64.13.18.29.3.48.4.18.09.4.13.63.13a1.6 1.6 0 0 0 .94-.27l.26-.2a.4.4 0 0 1 .25-.09.3.3 0 0 1 .27.14l.43.54a2.76 2.76 0 0 1-1.77.96c-.22.03-.43.05-.65.05a2.57 2.57 0 0 1-1.96-.83c-.25-.28-.45-.6-.6-1-.14-.4-.21-.85-.21-1.35 0-.45.06-.87.2-1.25a2.61 2.61 0 0 1 1.51-1.67c.37-.16.8-.24 1.28-.24.46 0 .86.07 1.2.22.35.15.66.36.94.64l-.4.54Zm3.43 4.95c-.54 0-.95-.15-1.24-.45-.28-.3-.42-.73-.42-1.26v-3.44h-.63a.29.29 0 0 1-.2-.07c-.06-.06-.09-.13-.09-.24v-.59l.99-.16.31-1.68a.33.33 0 0 1 .12-.18.34.34 0 0 1 .21-.07h.77v1.94h1.64v1.05h-1.64v3.34c0 .2.05.34.14.45.1.1.22.16.39.16a.73.73 0 0 0 .39-.1l.12-.07a.2.2 0 0 1 .11-.03c.05 0 .08.01.11.03l.09.1.44.72c-.21.18-.46.32-.74.4-.28.1-.57.15-.87.15Zm5.09-6.35c.46 0 .87.07 1.24.22a2.7 2.7 0 0 1 1.58 1.63c.14.39.22.83.22 1.31 0 .49-.08.93-.22 1.32-.14.4-.35.73-.62 1-.26.28-.58.49-.96.64-.37.15-.78.22-1.24.22a3.4 3.4 0 0 1-1.25-.22 2.71 2.71 0 0 1-1.59-1.64 3.8 3.8 0 0 1-.21-1.32c0-.48.07-.92.21-1.31a2.75 2.75 0 0 1 1.58-1.63c.38-.15.8-.22 1.26-.22Zm0 5.2c.51 0 .89-.17 1.13-.52.25-.34.38-.84.38-1.5a2.6 2.6 0 0 0-.38-1.53c-.24-.34-.62-.52-1.13-.52-.52 0-.9.18-1.16.53-.25.35-.37.85-.37 1.51s.12 1.17.37 1.51c.25.35.64.52 1.16.52Zm5.56-4.04c.2-.37.42-.65.69-.86.26-.21.57-.32.94-.32.28 0 .5.06.68.19l-.1 1.1a.3.3 0 0 1-.09.16.24.24 0 0 1-.15.04 1.8 1.8 0 0 1-.27-.03 2.01 2.01 0 0 0-.34-.03c-.16 0-.3.03-.44.08a1.1 1.1 0 0 0-.34.2c-.1.1-.2.2-.27.33-.08.13-.15.27-.22.44V36H47.7v-6.16h.87c.15 0 .26.03.31.09.06.05.1.15.13.29l.09.7Zm4.62-1.07V36h-1.49v-6.16h1.49Zm.2-1.79c0 .13-.02.25-.07.36a1 1 0 0 1-.51.5.96.96 0 0 1-.74 0 1.02 1.02 0 0 1-.5-.5.96.96 0 0 1 0-.73.93.93 0 0 1 .86-.58.9.9 0 0 1 .38.08c.11.05.21.11.3.2a.94.94 0 0 1 .28.67Zm4.56 5.32a7.8 7.8 0 0 0-1.08.12c-.29.05-.52.12-.7.2a.92.92 0 0 0-.38.3.64.64 0 0 0-.11.36c0 .26.07.45.23.56.15.11.35.17.6.17.3 0 .57-.06.79-.17.22-.1.44-.28.65-.5v-1.04Zm-3.4-2.67c.71-.65 1.57-.97 2.56-.97.36 0 .68.06.97.18a1.99 1.99 0 0 1 1.16 1.24c.1.3.16.61.16.96V36h-.67a.7.7 0 0 1-.33-.06c-.07-.04-.13-.13-.18-.26l-.13-.44c-.16.14-.3.26-.46.37a2.8 2.8 0 0 1-.97.43 2.77 2.77 0 0 1-1.32-.05 1.62 1.62 0 0 1-.57-.31 1.41 1.41 0 0 1-.38-.53 1.85 1.85 0 0 1-.05-1.18c.05-.16.14-.3.25-.45.12-.14.28-.27.46-.4a3 3 0 0 1 .7-.32 9.19 9.19 0 0 1 2.2-.33v-.36c0-.41-.09-.71-.26-.91-.18-.2-.43-.3-.76-.3a1.84 1.84 0 0 0-1.02.28l-.33.18c-.1.06-.2.09-.32.09-.1 0-.2-.03-.27-.08a.72.72 0 0 1-.17-.2l-.26-.47Zm11.49 4.32V36h-4.88v-8.6h1.16v7.62h3.72Zm3.16-5.2c.44 0 .84.08 1.2.23a2.57 2.57 0 0 1 1.49 1.62c.13.38.2.81.2 1.29s-.07.91-.2 1.3a2.57 2.57 0 0 1-1.49 1.61c-.36.14-.76.21-1.2.21-.45 0-.85-.07-1.21-.21a2.57 2.57 0 0 1-1.5-1.62c-.13-.38-.2-.81-.2-1.3 0-.47.07-.9.2-1.28.14-.39.33-.72.59-1 .25-.26.55-.47.9-.62.37-.15.77-.22 1.22-.22Zm0 5.43c.6 0 1.05-.2 1.34-.6.3-.4.45-.97.45-1.69s-.15-1.28-.45-1.69c-.3-.4-.74-.6-1.34-.6-.3 0-.57.05-.8.15-.22.1-.4.26-.56.45-.15.2-.26.44-.34.73-.07.28-.1.6-.1.96 0 .72.14 1.29.44 1.69.3.4.75.6 1.36.6Zm6.33-2.22c.22 0 .4-.03.57-.09.16-.06.3-.14.41-.25.12-.11.2-.24.26-.39.05-.15.08-.31.08-.5 0-.37-.11-.66-.34-.88-.23-.22-.55-.33-.98-.33-.43 0-.76.1-.99.33-.22.22-.34.51-.34.89 0 .18.03.34.09.5a1.1 1.1 0 0 0 .67.63c.16.06.35.09.57.09Zm1.93 3.3a.51.51 0 0 0-.13-.36.84.84 0 0 0-.34-.22 8.57 8.57 0 0 0-1.73-.2 7.5 7.5 0 0 1-.62-.05c-.23.1-.41.23-.56.4a.8.8 0 0 0-.1.92c.07.12.18.22.32.3.14.1.32.16.54.21a3.5 3.5 0 0 0 1.55 0c.23-.05.42-.12.57-.22.16-.1.29-.21.37-.34a.8.8 0 0 0 .13-.44Zm1.08-6.17v.4c0 .13-.08.21-.25.25l-.69.09c.14.26.2.56.2.88a1.86 1.86 0 0 1-1.36 1.82 3.07 3.07 0 0 1-1.72.04c-.12.08-.22.16-.29.25a.44.44 0 0 0-.1.27c0 .15.06.26.17.33.12.08.28.13.47.16a5 5 0 0 0 .66.06 16.56 16.56 0 0 1 1.5.13c.26.05.48.12.67.22.19.1.34.24.46.41.12.18.18.4.18.69 0 .26-.07.5-.2.75s-.31.46-.56.65c-.24.2-.54.34-.9.46a4.57 4.57 0 0 1-2.36.04c-.33-.09-.6-.2-.82-.36a1.56 1.56 0 0 1-.5-.51c-.1-.2-.16-.4-.16-.6 0-.3.1-.56.28-.77.19-.2.45-.37.77-.5a1.15 1.15 0 0 1-.43-.32.88.88 0 0 1-.15-.54c0-.09.01-.18.04-.27.04-.1.08-.2.15-.28a1.55 1.55 0 0 1 .58-.5c-.3-.16-.53-.39-.7-.66-.17-.28-.25-.6-.25-.97 0-.3.05-.57.16-.8.12-.25.28-.46.48-.63.2-.17.45-.3.73-.4a3 3 0 0 1 2.3.21h1.64Zm4.65.76a.24.24 0 0 1-.23.14.42.42 0 0 1-.2-.07 3.59 3.59 0 0 0-.67-.3 1.8 1.8 0 0 0-1.03 0c-.14.05-.27.11-.37.2a.87.87 0 0 0-.23.27.75.75 0 0 0-.08.35c0 .15.04.28.13.39.1.1.21.19.36.27.15.07.32.14.5.2a13.63 13.63 0 0 1 1.16.4c.2.08.36.18.5.3a1.33 1.33 0 0 1 .5 1.07 2 2 0 0 1-.15.78c-.1.24-.25.44-.45.62-.2.17-.43.3-.72.4a3.1 3.1 0 0 1-2.14-.05 2.97 2.97 0 0 1-.87-.53l.25-.41c.04-.05.07-.1.12-.12a.3.3 0 0 1 .17-.04.4.4 0 0 1 .22.08l.3.19a1.91 1.91 0 0 0 1.03.27c.2 0 .38-.03.54-.08.16-.06.29-.13.4-.22a.96.96 0 0 0 .3-.7c0-.17-.05-.31-.14-.42-.09-.11-.2-.2-.36-.28a2.6 2.6 0 0 0-.5-.2l-.59-.19c-.2-.06-.39-.14-.58-.22a2.14 2.14 0 0 1-.5-.3 1.45 1.45 0 0 1-.36-.46c-.1-.19-.14-.41-.14-.67a1.6 1.6 0 0 1 .57-1.23c.18-.16.4-.3.68-.39.26-.1.57-.14.91-.14a2.84 2.84 0 0 1 1.9.7l-.23.4Z"}),pt("defs",{children:pt("path",{d:"M0 0h85v38H0z"})})]}),dn=()=>pt("svg",{viewBox:"0 0 85 38",fill:"currentColor",children:pt("path",{d:"M11.118 10.476c.36.28.801.433 1.257.436h.052c.48-.007.961-.192 1.25-.444 1.509-1.279 5.88-5.287 5.88-5.287 1.168-1.087-2.093-2.174-7.13-2.181h-.06c-5.036.007-8.298 1.094-7.13 2.181 0 0 4.372 4.008 5.88 5.295zm2.559 2.166c-.359.283-.801.439-1.258.444h-.044a2.071 2.071 0 0 1-1.257-.444C10.082 11.755 6.384 8.42 5 7.148v1.93c0 .215.081.496.222.629l.07.064c1.045.955 4.546 4.154 5.825 5.245.358.283.8.438 1.257.444h.044c.489-.015.962-.2 1.258-.444 1.309-1.11 4.948-4.444 5.887-5.31.148-.132.222-.413.222-.628v-1.93a455.127 455.127 0 0 1-6.11 5.494zm-1.258 4.984a2.071 2.071 0 0 0 1.258-.436c2.053-1.815 4.09-3.65 6.11-5.502v1.938c0 .207-.075.488-.223.621-.94.873-4.578 4.2-5.887 5.31-.296.25-.77.436-1.258.443h-.044a2.071 2.071 0 0 1-1.257-.436c-1.204-1.027-4.376-3.928-5.616-5.062l-.28-.255c-.14-.133-.221-.414-.221-.621v-1.938c1.383 1.265 5.081 4.607 6.117 5.495.358.282.8.438 1.257.443h.044zM40 5l-5.84 14.46h-2.43L25.89 5h2.16c.233 0 .423.057.57.17.146.113.256.26.33.44l3.41 8.82c.113.287.22.603.32.95.106.34.206.697.3 1.07.08-.373.166-.73.26-1.07a8.84 8.84 0 0 1 .31-.95l3.39-8.82a.959.959 0 0 1 .31-.42.906.906 0 0 1 .58-.19H40zm17.176 0v14.46h-2.37v-9.34c0-.373.02-.777.06-1.21l-4.37 8.21c-.206.393-.523.59-.95.59h-.38c-.426 0-.743-.197-.95-.59l-4.42-8.24c.02.22.037.437.05.65.014.213.02.41.02.59v9.34h-2.37V5h2.03c.12 0 .224.003.31.01a.778.778 0 0 1 .23.05c.074.027.137.07.19.13.06.06.117.14.17.24l4.33 8.03c.114.213.217.433.31.66.1.227.197.46.29.7.094-.247.19-.483.29-.71.1-.233.207-.457.32-.67l4.27-8.01c.054-.1.11-.18.17-.24a.57.57 0 0 1 .19-.13.903.903 0 0 1 .24-.05c.087-.007.19-.01.31-.01h2.03zm8.887 13.73c.68 0 1.286-.117 1.82-.35.54-.24.996-.57 1.37-.99a4.28 4.28 0 0 0 .85-1.48c.2-.573.3-1.19.3-1.85V5.31h1.02v8.75c0 .78-.124 1.51-.37 2.19a5.248 5.248 0 0 1-1.07 1.77c-.46.5-1.024.893-1.69 1.18-.66.287-1.404.43-2.23.43-.827 0-1.574-.143-2.24-.43a5.012 5.012 0 0 1-1.69-1.18 5.33 5.33 0 0 1-1.06-1.77 6.373 6.373 0 0 1-.37-2.19V5.31h1.03v8.74c0 .66.096 1.277.29 1.85.2.567.483 1.06.85 1.48.373.42.826.75 1.36.99.54.24 1.15.36 1.83.36zm10.38.73h-1.03V5.31h1.03v14.15zM4.242 35v-5.166l-.672-.078a.595.595 0 0 1-.21-.09.23.23 0 0 1-.078-.186v-.438h.96v-.588c0-.348.048-.656.144-.924.1-.272.24-.5.42-.684a1.79 1.79 0 0 1 .66-.426c.256-.096.544-.144.864-.144.272 0 .522.04.75.12l-.024.534c-.008.096-.062.148-.162.156a4.947 4.947 0 0 1-.39.012c-.184 0-.352.024-.504.072a.949.949 0 0 0-.384.234c-.108.108-.192.25-.252.426a2.184 2.184 0 0 0-.084.654v.558h1.752v.774H5.316V35H4.242zM10.416 28.826a3.1 3.1 0 0 1 1.2.222c.356.148.66.358.912.63s.444.602.576.99c.136.384.204.814.204 1.29 0 .48-.068.912-.204 1.296a2.735 2.735 0 0 1-.576.984 2.572 2.572 0 0 1-.912.63 3.175 3.175 0 0 1-1.2.216c-.448 0-.852-.072-1.212-.216a2.572 2.572 0 0 1-.912-.63 2.805 2.805 0 0 1-.582-.984 3.972 3.972 0 0 1-.198-1.296c0-.476.066-.906.198-1.29.136-.388.33-.718.582-.99.252-.272.556-.482.912-.63.36-.148.764-.222 1.212-.222zm0 5.424c.6 0 1.048-.2 1.344-.6.296-.404.444-.966.444-1.686 0-.724-.148-1.288-.444-1.692-.296-.404-.744-.606-1.344-.606-.304 0-.57.052-.798.156a1.507 1.507 0 0 0-.564.45c-.148.196-.26.438-.336.726a3.941 3.941 0 0 0-.108.966c0 .72.148 1.282.444 1.686.3.4.754.6 1.362.6zM15.677 30.14c.192-.416.428-.74.708-.972.28-.236.622-.354 1.026-.354.128 0 .25.014.366.042.12.028.226.072.318.132l-.078.798c-.024.1-.084.15-.18.15-.056 0-.138-.012-.246-.036a1.694 1.694 0 0 0-.366-.036c-.192 0-.364.028-.516.084-.148.056-.282.14-.402.252a1.782 1.782 0 0 0-.318.408c-.092.16-.176.344-.252.552V35h-1.074v-6.078h.612c.116 0 .196.022.24.066.044.044.074.12.09.228l.072.924zM26.761 28.922 24.283 35h-.96l-2.478-6.078h.87a.33.33 0 0 1 .33.222l1.542 3.912c.048.148.09.292.126.432.036.14.07.28.102.42.032-.14.066-.28.102-.42.036-.14.08-.284.132-.432l1.56-3.912a.33.33 0 0 1 .12-.156.311.311 0 0 1 .198-.066h.834zM27.74 35v-6.078h.643c.152 0 .246.074.282.222l.078.624c.224-.276.476-.502.756-.678.28-.176.604-.264.972-.264.408 0 .738.114.99.342.256.228.44.536.552.924.088-.22.2-.41.336-.57a1.987 1.987 0 0 1 1.014-.624c.196-.048.394-.072.594-.072.32 0 .604.052.852.156.252.1.464.248.636.444.176.196.31.438.402.726.092.284.138.61.138.978V35H34.91v-3.87c0-.476-.104-.836-.312-1.08-.208-.248-.508-.372-.9-.372-.176 0-.344.032-.504.096-.156.06-.294.15-.414.27-.12.12-.216.272-.288.456-.068.18-.102.39-.102.63V35h-1.074v-3.87c0-.488-.098-.852-.294-1.092-.196-.24-.482-.36-.858-.36-.264 0-.508.072-.732.216a2.38 2.38 0 0 0-.618.576V35H27.74zM40.746 32.372c-.428.02-.788.058-1.08.114-.292.052-.526.12-.702.204a.923.923 0 0 0-.378.294.639.639 0 0 0-.114.366c0 .26.076.446.228.558.156.112.358.168.606.168.304 0 .566-.054.786-.162.224-.112.442-.28.654-.504v-1.038zm-3.396-2.67c.708-.648 1.56-.972 2.556-.972.36 0 .682.06.966.18.284.116.524.28.72.492.196.208.344.458.444.75.104.292.156.612.156.96V35h-.672a.708.708 0 0 1-.324-.06c-.076-.044-.136-.13-.18-.258l-.132-.444c-.156.14-.308.264-.456.372a2.804 2.804 0 0 1-.462.264c-.16.072-.332.126-.516.162-.18.04-.38.06-.6.06-.26 0-.5-.034-.72-.102a1.618 1.618 0 0 1-.57-.318 1.414 1.414 0 0 1-.372-.522 1.852 1.852 0 0 1-.132-.726 1.419 1.419 0 0 1 .33-.906c.12-.14.274-.272.462-.396s.418-.232.69-.324c.276-.092.596-.166.96-.222.364-.06.78-.096 1.248-.108v-.36c0-.412-.088-.716-.264-.912-.176-.2-.43-.3-.762-.3-.24 0-.44.028-.6.084-.156.056-.294.12-.414.192l-.33.186a.631.631 0 0 1-.324.084.439.439 0 0 1-.264-.078.716.716 0 0 1-.174-.192l-.264-.474zM44.974 29.6c.124-.124.254-.238.39-.342a2.395 2.395 0 0 1 .936-.444c.176-.044.368-.066.576-.066.336 0 .634.058.894.174.26.112.476.272.648.48.176.204.308.45.396.738.092.284.138.598.138.942V35H47.47v-3.918c0-.376-.086-.666-.258-.87-.172-.208-.434-.312-.786-.312-.256 0-.496.058-.72.174a2.58 2.58 0 0 0-.636.474V35h-1.482v-6.156h.906c.192 0 .318.09.378.27l.102.486zM53.085 28.748c.456 0 .87.074 1.242.222a2.692 2.692 0 0 1 1.578 1.626c.144.392.216.83.216 1.314 0 .488-.072.928-.216 1.32-.144.392-.35.726-.618 1.002a2.653 2.653 0 0 1-.96.636 3.333 3.333 0 0 1-1.242.222c-.46 0-.878-.074-1.254-.222a2.712 2.712 0 0 1-.966-.636 2.922 2.922 0 0 1-.618-1.002 3.807 3.807 0 0 1-.216-1.32c0-.484.072-.922.216-1.314.148-.392.354-.724.618-.996.268-.272.59-.482.966-.63a3.397 3.397 0 0 1 1.254-.222zm0 5.202c.512 0 .89-.172 1.134-.516.248-.344.372-.848.372-1.512s-.124-1.17-.372-1.518c-.244-.348-.622-.522-1.134-.522-.52 0-.906.176-1.158.528-.248.348-.372.852-.372 1.512s.124 1.164.372 1.512c.252.344.638.516 1.158.516zM57.252 35v-6.156h.906c.192 0 .318.09.378.27l.096.456c.108-.12.22-.23.336-.33a2.017 2.017 0 0 1 1.32-.492c.388 0 .706.106.954.318.252.208.44.486.564.834a1.93 1.93 0 0 1 .834-.882c.172-.092.354-.16.546-.204.196-.044.392-.066.588-.066.34 0 .642.052.906.156.264.104.486.256.666.456.18.2.316.444.408.732.096.288.144.618.144.99V35h-1.482v-3.918c0-.392-.086-.686-.258-.882-.172-.2-.424-.3-.756-.3-.152 0-.294.026-.426.078a1.026 1.026 0 0 0-.342.228 1.019 1.019 0 0 0-.228.366 1.435 1.435 0 0 0-.084.51V35h-1.488v-3.918c0-.412-.084-.712-.252-.9-.164-.188-.406-.282-.726-.282-.216 0-.418.054-.606.162a1.979 1.979 0 0 0-.516.432V35h-1.482zM70.558 32.372c-.428.02-.788.058-1.08.114-.292.052-.526.12-.702.204a.923.923 0 0 0-.378.294.639.639 0 0 0-.114.366c0 .26.076.446.228.558.156.112.358.168.606.168.304 0 .566-.054.786-.162.224-.112.442-.28.654-.504v-1.038zm-3.396-2.67c.708-.648 1.56-.972 2.556-.972.36 0 .682.06.966.18.284.116.524.28.72.492.196.208.344.458.444.75.104.292.156.612.156.96V35h-.672a.708.708 0 0 1-.324-.06c-.076-.044-.136-.13-.18-.258l-.132-.444c-.156.14-.308.264-.456.372a2.804 2.804 0 0 1-.462.264c-.16.072-.332.126-.516.162-.18.04-.38.06-.6.06-.26 0-.5-.034-.72-.102a1.618 1.618 0 0 1-.57-.318 1.414 1.414 0 0 1-.372-.522 1.852 1.852 0 0 1-.132-.726 1.419 1.419 0 0 1 .33-.906c.12-.14.274-.272.462-.396s.418-.232.69-.324c.276-.092.596-.166.96-.222.364-.06.78-.096 1.248-.108v-.36c0-.412-.088-.716-.264-.912-.176-.2-.43-.3-.762-.3-.24 0-.44.028-.6.084-.156.056-.294.12-.414.192l-.33.186a.631.631 0 0 1-.324.084.439.439 0 0 1-.264-.078.716.716 0 0 1-.174-.192l-.264-.474zM74.9 26.084V35h-1.482v-8.916H74.9zM81.969 28.844l-3.354 7.848a.538.538 0 0 1-.174.234c-.068.056-.174.084-.318.084h-1.104l1.152-2.472-2.49-5.694h1.302c.116 0 .206.028.27.084.068.056.118.12.15.192l1.308 3.192c.044.108.08.216.108.324.032.108.062.218.09.33a32.3 32.3 0 0 1 .108-.33c.036-.112.076-.222.12-.33l1.236-3.186a.437.437 0 0 1 .408-.276h1.188z"})}),hn=()=>pt("svg",{viewBox:"0 0 15 17",fill:"currentColor",children:pt("path",{d:"M6.11767 7.47586C6.47736 7.75563 6.91931 7.90898 7.37503 7.91213H7.42681C7.90756 7.90474 8.38832 7.71987 8.67677 7.46846C10.1856 6.18921 14.5568 2.18138 14.5568 2.18138C15.7254 1.09438 12.4637 0.00739 7.42681 0H7.36764C2.3308 0.00739 -0.930935 1.09438 0.237669 2.18138C0.237669 2.18138 4.60884 6.18921 6.11767 7.47586ZM8.67677 9.64243C8.31803 9.92483 7.87599 10.0808 7.41941 10.0861H7.37503C6.91845 10.0808 6.47641 9.92483 6.11767 9.64243C5.0822 8.75513 1.38409 5.42018 0.000989555 4.14832V6.07829C0.000989555 6.29273 0.0823481 6.57372 0.222877 6.70682L0.293316 6.7712L0.293344 6.77122C1.33784 7.72579 4.83903 10.9255 6.11767 12.0161C6.47641 12.2985 6.91845 12.4545 7.37503 12.4597H7.41941C7.90756 12.4449 8.38092 12.2601 8.67677 12.0161C9.9859 10.9069 13.6249 7.57198 14.5642 6.70682C14.7121 6.57372 14.7861 6.29273 14.7861 6.07829V4.14832C12.7662 5.99804 10.7297 7.82949 8.67677 9.64243ZM7.41941 14.6263C7.87513 14.6232 8.31708 14.4698 8.67677 14.19C10.7298 12.3746 12.7663 10.5407 14.7861 8.68853V10.6259C14.7861 10.8329 14.7121 11.1139 14.5642 11.247C13.6249 12.1196 9.9859 15.4471 8.67677 16.5563C8.38092 16.8077 7.90756 16.9926 7.41941 17H7.37503C6.91931 16.9968 6.47736 16.8435 6.11767 16.5637C4.91427 15.5373 1.74219 12.6364 0.502294 11.5025C0.393358 11.4029 0.299337 11.3169 0.222877 11.247C0.0823481 11.1139 0.000989555 10.8329 0.000989555 10.6259V8.68853C1.38409 9.95303 5.0822 13.2953 6.11767 14.1827C6.47641 14.4651 6.91845 14.6211 7.37503 14.6263H7.41941Z"})}),fn=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"})}),pn=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}),mn=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8zm-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91z"})}),vn=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})}),gn=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})}),yn=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})}),_n=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})}),bn=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"})}),wn=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"})}),kn=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"m7 10 5 5 5-5z"})}),xn=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:[pt("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),pt("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),Sn=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z"})}),An=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"m22 5.72-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39 6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"})}),Cn=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v-2h2v2zm0-3H5V8h2v2zm9 7H8v-2h8v2zm0-4h-2v-2h2v2zm0-3h-2V8h2v2zm3 3h-2v-2h2v2zm0-3h-2V8h2v2z"})}),En=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M8 5v14l11-7z"})}),Mn=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"m3.5 18.49 6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"})}),Tn=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5v11zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2zM3 19c0 1.1.9 2 2 2h3V10H3v9z"})}),Nn=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"})}),On=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M8.9999 14.7854L18.8928 4.8925C19.0803 4.70497 19.3347 4.59961 19.5999 4.59961C19.8651 4.59961 20.1195 4.70497 20.307 4.8925L21.707 6.2925C22.0975 6.68303 22.0975 7.31619 21.707 7.70672L9.70701 19.7067C9.31648 20.0972 8.68332 20.0972 8.2928 19.7067L2.6928 14.1067C2.50526 13.9192 2.3999 13.6648 2.3999 13.3996C2.3999 13.1344 2.50526 12.88 2.6928 12.6925L4.0928 11.2925C4.48332 10.902 5.11648 10.902 5.50701 11.2925L8.9999 14.7854Z"})}),Pn=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"})}),Ln=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"})}),Rn=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"})}),zn=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:[pt("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 5C19.89 4.65 18.67 4.5 17.5 4.5C15.55 4.5 13.45 4.9 12 6C10.55 4.9 8.45 4.5 6.5 4.5C5.33 4.5 4.11 4.65 3 5C2.25 5.25 1.6 5.55 1 6V20.6C1 20.85 1.25 21.1 1.5 21.1C1.6 21.1 1.65 21.1 1.75 21.05C3.15 20.3 4.85 20 6.5 20C8.2 20 10.65 20.65 12 21.5C13.35 20.65 15.8 20 17.5 20C19.15 20 20.85 20.3 22.25 21.05C22.35 21.1 22.4 21.1 22.5 21.1C22.75 21.1 23 20.85 23 20.6V6C22.4 5.55 21.75 5.25 21 5ZM21 18.5C19.9 18.15 18.7 18 17.5 18C15.8 18 13.35 18.65 12 19.5C10.65 18.65 8.2 18 6.5 18C5.3 18 4.1 18.15 3 18.5V7C4.1 6.65 5.3 6.5 6.5 6.5C8.2 6.5 10.65 7.15 12 8C13.35 7.15 15.8 6.5 17.5 6.5C18.7 6.5 19.9 6.65 21 7V18.5Z"}),pt("path",{d:"M17.5 10.5C18.38 10.5 19.23 10.59 20 10.76V9.24C19.21 9.09 18.36 9 17.5 9C15.8 9 14.26 9.29 13 9.83V11.49C14.13 10.85 15.7 10.5 17.5 10.5ZM13 12.49V14.15C14.13 13.51 15.7 13.16 17.5 13.16C18.38 13.16 19.23 13.25 20 13.42V11.9C19.21 11.75 18.36 11.66 17.5 11.66C15.8 11.66 14.26 11.96 13 12.49ZM17.5 14.33C15.8 14.33 14.26 14.62 13 15.16V16.82C14.13 16.18 15.7 15.83 17.5 15.83C18.38 15.83 19.23 15.92 20 16.09V14.57C19.21 14.41 18.36 14.33 17.5 14.33Z"}),pt("path",{d:"M6.5 10.5C5.62 10.5 4.77 10.59 4 10.76V9.24C4.79 9.09 5.64 9 6.5 9C8.2 9 9.74 9.29 11 9.83V11.49C9.87 10.85 8.3 10.5 6.5 10.5ZM11 12.49V14.15C9.87 13.51 8.3 13.16 6.5 13.16C5.62 13.16 4.77 13.25 4 13.42V11.9C4.79 11.75 5.64 11.66 6.5 11.66C8.2 11.66 9.74 11.96 11 12.49ZM6.5 14.33C8.2 14.33 9.74 14.62 11 15.16V16.82C9.87 16.18 8.3 15.83 6.5 15.83C5.62 15.83 4.77 15.92 4 16.09V14.57C4.79 14.41 5.64 14.33 6.5 14.33Z"})]}),Dn=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3-8c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3z"})}),In=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M4 20h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2zm0-3h2v2H4v-2zM2 6c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2zm4 1H4V5h2v2zm-2 7h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2zm0-3h2v2H4v-2z"})}),$n=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})}),Fn=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2zm-2-1h8v-2H5v2zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5zm4.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6l-.63 1.37zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94L19 6z"})}),jn=()=>pt("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:pt("path",{d:"M3 14h4v-4H3v4zm0 5h4v-4H3v4zM3 9h4V5H3v4zm5 5h13v-4H8v4zm0 5h13v-4H8v4zM8 5v4h13V5H8z"})}),Vn=()=>pt("svg",{viewBox:"0 0 16 16",fill:it("color-error"),children:pt("path",{d:"M13.5095 4L8.50952 1H7.50952L2.50952 4L2.01953 4.85999V10.86L2.50952 11.71L7.50952 14.71H8.50952L13.5095 11.71L13.9995 10.86V4.85999L13.5095 4ZM7.50952 13.5601L3.00952 10.86V5.69995L7.50952 8.15002V13.5601ZM3.26953 4.69995L8.00952 1.85999L12.7495 4.69995L8.00952 7.29004L3.26953 4.69995ZM13.0095 10.86L8.50952 13.5601V8.15002L13.0095 5.69995V10.86Z"})}),Hn=()=>pt("svg",{viewBox:"0 0 16 16",fill:it("color-primary"),children:pt("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 5H4V4H1.5L1 4.5V12.5L1.5 13H4V12H2V5ZM14.5 4H12V5H14V12H12V13H14.5L15 12.5V4.5L14.5 4ZM11.76 6.56995L12 7V9.51001L11.7 9.95996L7.19995 11.96H6.73999L4.23999 10.46L4 10.03V7.53003L4.30005 7.06995L8.80005 5.06995H9.26001L11.76 6.56995ZM5 9.70996L6.5 10.61V9.28003L5 8.38V9.70996ZM5.57996 7.56006L7.03003 8.43005L10.42 6.93005L8.96997 6.06006L5.57996 7.56006ZM7.53003 10.73L11.03 9.17004V7.77002L7.53003 9.31995V10.73Z"})}),Un=()=>pt("svg",{viewBox:"0 0 16 16",fill:it("color-warning"),children:pt("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 2H8L7 3V6H8V3H14V8H10V9H14L15 8V3L14 2ZM9 6H13V7H9.41L9 6.59V6ZM7 7H2L1 8V13L2 14H8L9 13V8L8 7H7ZM8 13H2V8H8V9V13ZM3 9H7V10H3V9ZM3 11H7V12H3V11ZM9 4H13V5H9V4Z"})}),Bn=()=>pt("svg",{viewBox:"0 0 16 16",fill:it("color-primary"),children:pt("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 3L8 2H14L15 3V8L14 9H10V8H14V3H8V6H7V3ZM9 9V8L8 7H7H2L1 8V13L2 14H8L9 13V9ZM8 8V9V13H2V8H7H8ZM9.41421 7L9 6.58579V6H13V7H9.41421ZM9 4H13V5H9V4ZM7 10H3V11H7V10Z"})});var Wn=n(738),Yn=n.n(Wn);const Zn=e=>{let{to:t,isNavLink:n,children:r,...o}=e;return n?pt(Re,{to:t,...o,children:r}):pt("div",{...o,children:r})},qn=e=>{let{activeItem:t,item:n,color:r=it("color-primary"),activeNavRef:o,onChange:i,isNavLink:a}=e;return pt(Zn,{className:Yn()({"vm-tabs-item":!0,"vm-tabs-item_active":t===n.value,[n.className||""]:n.className}),isNavLink:a,to:n.value,style:{color:r},onClick:(l=n.value,()=>{i&&i(l)}),ref:t===n.value?o:void 0,children:[n.icon&&pt("div",{className:Yn()({"vm-tabs-item__icon":!0,"vm-tabs-item__icon_single":!n.label}),children:n.icon}),n.label]});var l},Kn="undefined"!==typeof window?t.useLayoutEffect:t.useEffect;const Gn=function(e,n,r,o){const i=(0,t.useRef)(n);Kn((()=>{i.current=n}),[n]),(0,t.useEffect)((()=>{var t;const n=null!==(t=null===r||void 0===r?void 0:r.current)&&void 0!==t?t:window;if(!n||!n.addEventListener)return;const a=e=>i.current(e);return n.addEventListener(e,a,o),()=>{n.removeEventListener(e,a,o)}}),[e,r,o])},Qn=()=>{const[e,n]=(0,t.useState)({width:0,height:0}),r=()=>{n({width:window.innerWidth,height:window.innerHeight})};return Gn("resize",r),Kn(r,[]),e},Jn=e=>{let{activeItem:n,items:r,color:o=it("color-primary"),onChange:i,indicatorPlacement:a="bottom",isNavLink:l}=e;const s=Qn(),c=(0,t.useRef)(null),[u,d]=(0,t.useState)({left:0,width:0,bottom:0});return(0,t.useEffect)((()=>{var e;if((null===(e=c.current)||void 0===e?void 0:e.base)instanceof HTMLElement){const{offsetLeft:e,offsetWidth:t,offsetHeight:n}=c.current.base;d({left:e,width:t,bottom:"top"===a?n-2:0})}}),[s,n,c,r]),pt("div",{className:"vm-tabs",children:[r.map((e=>pt(qn,{activeItem:n,item:e,onChange:i,color:o,activeNavRef:c,isNavLink:l},e.value))),pt("div",{className:"vm-tabs__indicator",style:{...u,borderColor:o}})]})},Xn=[{value:tt.chart,icon:pt(Mn,{}),label:"Graph",prometheusCode:0},{value:tt.code,icon:pt(Nn,{}),label:"JSON",prometheusCode:3},{value:tt.table,icon:pt(Tn,{}),label:"Table",prometheusCode:1}],er=Xe("g0.tab",0),tr=Xn.find((e=>e.prometheusCode===+er||e.value===er)),nr=We("SERIES_LIMITS"),rr={displayType:(null===tr||void 0===tr?void 0:tr.value)||tt.chart,nocache:!1,isTracingEnabled:!1,seriesLimits:nr?JSON.parse(nr):Je,tableCompact:We("TABLE_COMPACT")||!1};function or(e,t){switch(t.type){case"SET_DISPLAY_TYPE":return{...e,displayType:t.payload};case"SET_SERIES_LIMITS":return Be("SERIES_LIMITS",JSON.stringify(t.payload)),{...e,seriesLimits:t.payload};case"TOGGLE_QUERY_TRACING":return{...e,isTracingEnabled:!e.isTracingEnabled};case"TOGGLE_NO_CACHE":return{...e,nocache:!e.nocache};case"TOGGLE_TABLE_COMPACT":return Be("TABLE_COMPACT",!e.tableCompact),{...e,tableCompact:!e.tableCompact};default:throw new Error}}const ir=(0,t.createContext)({}),ar={customStep:Xe("g0.step_input",""),yaxis:{limits:{enable:!1,range:{1:[0,0]}}},isHistogram:!1,spanGaps:!1};function lr(e,t){switch(t.type){case"TOGGLE_ENABLE_YAXIS_LIMITS":return{...e,yaxis:{...e.yaxis,limits:{...e.yaxis.limits,enable:!e.yaxis.limits.enable}}};case"SET_CUSTOM_STEP":return{...e,customStep:t.payload};case"SET_YAXIS_LIMITS":return{...e,yaxis:{...e.yaxis,limits:{...e.yaxis.limits,range:t.payload}}};case"SET_IS_HISTOGRAM":return{...e,isHistogram:t.payload};case"SET_SPAN_GAPS":return{...e,spanGaps:t.payload};default:throw new Error}}const sr=(0,t.createContext)({}),cr={windows:"Windows",mac:"Mac OS",linux:"Linux"},ur=()=>(Object.values(cr).find((e=>navigator.userAgent.indexOf(e)>=0))||"unknown")===cr.mac;function dr(){const e=Qn(),n=()=>{const e=["Android","webOS","iPhone","iPad","iPod","BlackBerry","Windows Phone"].map((e=>navigator.userAgent.match(new RegExp(e,"i")))).some((e=>e)),t=window.innerWidth<500;return e||t},[r,o]=(0,t.useState)(n());return(0,t.useEffect)((()=>{o(n())}),[e]),{isMobile:r}}const hr={success:pt(_n,{}),error:pt(yn,{}),warning:pt(gn,{}),info:pt(vn,{})},fr=e=>{let{variant:t,children:n}=e;const{isDarkTheme:r}=vt(),{isMobile:o}=dr();return pt("div",{className:Yn()({"vm-alert":!0,["vm-alert_".concat(t)]:t,"vm-alert_dark":r,"vm-alert_mobile":o}),children:[pt("div",{className:"vm-alert__icon",children:hr[t||"info"]}),pt("div",{className:"vm-alert__content",children:n})]})},pr=(0,t.createContext)({showInfoMessage:()=>{}}),mr={dashboardsSettings:[],dashboardsLoading:!1,dashboardsError:""};function vr(e,t){switch(t.type){case"SET_DASHBOARDS_SETTINGS":return{...e,dashboardsSettings:t.payload};case"SET_DASHBOARDS_LOADING":return{...e,dashboardsLoading:t.payload};case"SET_DASHBOARDS_ERROR":return{...e,dashboardsError:t.payload};default:throw new Error}}const gr=(0,t.createContext)({}),yr=function(){for(var e=arguments.length,t=new Array(e),n=0;nn=>{let{children:r}=n;return pt(e,{children:pt(t,{children:r})})}),(e=>{let{children:t}=e;return pt(ht.FK,{children:t})}))}(...[e=>{let{children:n}=e;const[r,o]=(0,t.useReducer)(dt,yt),i=(0,t.useMemo)((()=>({state:r,dispatch:o})),[r,o]);return pt(mt.Provider,{value:i,children:n})},e=>{let{children:n}=e;const[r,o]=(0,t.useReducer)(qt,Zt),i=(0,t.useMemo)((()=>({state:r,dispatch:o})),[r,o]);return pt(Kt.Provider,{value:i,children:n})},e=>{let{children:n}=e;const[r,o]=(0,t.useReducer)(on,rn),i=(0,t.useMemo)((()=>({state:r,dispatch:o})),[r,o]);return pt(an.Provider,{value:i,children:n})},e=>{let{children:n}=e;const[r,o]=(0,t.useReducer)(or,rr),i=(0,t.useMemo)((()=>({state:r,dispatch:o})),[r,o]);return pt(ir.Provider,{value:i,children:n})},e=>{let{children:n}=e;const[r,o]=(0,t.useReducer)(lr,ar),i=(0,t.useMemo)((()=>({state:r,dispatch:o})),[r,o]);return pt(sr.Provider,{value:i,children:n})},e=>{let{children:n}=e;const{isMobile:r}=dr(),[o,i]=(0,t.useState)({}),[a,l]=(0,t.useState)(!1),[s,c]=(0,t.useState)(void 0);(0,t.useEffect)((()=>{if(!s)return;i({message:s.text,variant:s.type,key:Date.now()}),l(!0);const e=setTimeout(u,4e3);return()=>clearTimeout(e)}),[s]);const u=()=>{c(void 0),l(!1)};return pt(pr.Provider,{value:{showInfoMessage:c},children:[a&&pt("div",{className:Yn()({"vm-snackbar":!0,"vm-snackbar_mobile":r}),children:pt(fr,{variant:o.variant,children:pt("div",{className:"vm-snackbar-content",children:[pt("span",{children:o.message}),pt("div",{className:"vm-snackbar-content__close",onClick:u,children:pt(pn,{})})]})})}),n]})},e=>{let{children:n}=e;const[r,o]=(0,t.useReducer)(vr,mr),i=(0,t.useMemo)((()=>({state:r,dispatch:o})),[r,o]);return pt(gr.Provider,{value:i,children:n})}]),_r=(et.yhatUpper,et.yhatLower,et.yhat,et.anomaly,et.anomalyScore,et.actual,et.training,"rgba(".concat((e=>{if(7!=e.length)return"0, 0, 0";const t=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),r=parseInt(e.slice(5,7),16);return"".concat(t,", ").concat(n,", ").concat(r)})("#203ea9"),", 0.2)"),{"color-primary":"#589DF6","color-secondary":"#316eca","color-error":"#e5534b","color-warning":"#c69026","color-info":"#539bf5","color-success":"#57ab5a","color-background-body":"#22272e","color-background-block":"#2d333b","color-background-tooltip":"rgba(22, 22, 22, 0.8)","color-text":"#cdd9e5","color-text-secondary":"#768390","color-text-disabled":"#636e7b","box-shadow":"rgba(0, 0, 0, 0.16) 1px 2px 6px","box-shadow-popper":"rgba(0, 0, 0, 0.2) 0px 2px 8px 0px","border-divider":"1px solid rgba(99, 110, 123, 0.5)","color-hover-black":"rgba(0, 0, 0, 0.12)"}),br={"color-primary":"#3F51B5","color-secondary":"#E91E63","color-error":"#FD080E","color-warning":"#FF8308","color-info":"#03A9F4","color-success":"#4CAF50","color-background-body":"#FEFEFF","color-background-block":"#FFFFFF","color-background-tooltip":"rgba(80,80,80,0.9)","color-text":"#110f0f","color-text-secondary":"#706F6F","color-text-disabled":"#A09F9F","box-shadow":"rgba(0, 0, 0, 0.08) 1px 2px 6px","box-shadow-popper":"rgba(0, 0, 0, 0.1) 0px 2px 8px 0px","border-divider":"1px solid rgba(0, 0, 0, 0.15)","color-hover-black":"rgba(0, 0, 0, 0.06)"},wr=()=>{const[e,n]=(0,t.useState)(lt()),r=e=>{n(e.matches)};return(0,t.useEffect)((()=>{const e=window.matchMedia("(prefers-color-scheme: dark)");return e.addEventListener("change",r),()=>e.removeEventListener("change",r)}),[]),e},kr=["primary","secondary","error","warning","info","success"],xr=e=>{let{onLoaded:n}=e;const r=je(),{palette:o={}}=Fe(),{theme:i}=vt(),a=wr(),l=gt(),s=Qn(),[c,u]=(0,t.useState)({[rt.dark]:_r,[rt.light]:br,[rt.system]:lt()?_r:br}),d=()=>{const{innerWidth:e,innerHeight:t}=window,{clientWidth:n,clientHeight:r}=document.documentElement;at("scrollbar-width","".concat(e-n,"px")),at("scrollbar-height","".concat(t-r,"px")),at("vh","".concat(.01*t,"px"))},h=()=>{kr.forEach(((e,t)=>{const r=(e=>{let t=e.replace("#","").trim();if(3===t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),6!==t.length)throw new Error("Invalid HEX color.");return(299*parseInt(t.slice(0,2),16)+587*parseInt(t.slice(2,4),16)+114*parseInt(t.slice(4,6),16))/1e3>=128?"#000000":"#FFFFFF"})(it("color-".concat(e)));at("".concat(e,"-text"),r),t===kr.length-1&&(l({type:"SET_DARK_THEME"}),n(!0))}))},f=()=>{const e=We("THEME")||rt.system,t=c[e];Object.entries(t).forEach((e=>{let[t,n]=e;at(t,n)})),h(),r&&(kr.forEach((e=>{const t=o[e];t&&at("color-".concat(e),t)})),h())};return(0,t.useEffect)((()=>{d(),f()}),[c]),(0,t.useEffect)(d,[s]),(0,t.useEffect)((()=>{const e=lt()?_r:br;c[rt.system]!==e?u((t=>({...t,[rt.system]:e}))):f()}),[i,a]),(0,t.useEffect)((()=>{r&&l({type:"SET_THEME",payload:rt.light})}),[]),null},Sr=()=>{const{showInfoMessage:e}=(0,t.useContext)(pr);return async(t,n)=>{var r;if(null===(r=navigator)||void 0===r||!r.clipboard)return e({text:"Clipboard not supported",type:"error"}),console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(t),n&&e({text:n,type:"success"}),!0}catch(o){return o instanceof Error&&e({text:"".concat(o.name,": ").concat(o.message),type:"error"}),console.warn("Copy failed",o),!1}}},Ar=e=>{let{variant:t="contained",color:n="primary",size:r="medium",ariaLabel:o,children:i,endIcon:a,startIcon:l,fullWidth:s=!1,className:c,disabled:u,onClick:d,onMouseDown:h}=e;return pt("button",{className:Yn()({"vm-button":!0,["vm-button_".concat(t,"_").concat(n)]:!0,["vm-button_".concat(r)]:r,"vm-button_icon":(l||a)&&!i,"vm-button_full-width":s,"vm-button_with-icon":l||a,"vm-button_disabled":u,[c||""]:c}),disabled:u,"aria-label":o,onClick:d,onMouseDown:h,children:pt(ht.FK,{children:[l&&pt("span",{className:"vm-button__start-icon",children:l}),i&&pt("span",{children:i}),a&&pt("span",{className:"vm-button__end-icon",children:a})]})})},Cr=e=>{let{data:n}=e;const r=Sr(),o=(0,t.useMemo)((()=>JSON.stringify(n,null,2)),[n]);return pt("div",{className:"vm-json-view",children:[pt("div",{className:"vm-json-view__copy",children:pt(Ar,{variant:"outlined",onClick:async()=>{await r(o,"Formatted JSON has been copied")},children:"Copy JSON"})}),pt("pre",{className:"vm-json-view__code",children:pt("code",{children:o})})]})},Er=(e,n)=>{const[r]=$e(),o=r.get(n)?r.get(n):e,[i,a]=(0,t.useState)(o);return(0,t.useEffect)((()=>{o!==i&&a(o)}),[o]),[i,a]},Mr=()=>{const e=re(),[n,r]=$e();return{setSearchParamsFromKeys:(0,t.useCallback)((t=>{const o=!!Array.from(n.values()).length;let i=!1;Object.entries(t).forEach((e=>{let[t,r]=e;n.get(t)!=="".concat(r)&&(n.set(t,"".concat(r)),i=!0)})),i&&(o?r(n):e("?".concat(n.toString()),{replace:!0}))}),[n,e])}},Tr=(e,n,r)=>{const o=(0,t.useCallback)((t=>{const o=null===e||void 0===e?void 0:e.current,i=t.target,a=(null===r||void 0===r?void 0:r.current)&&r.current.contains(i);!o||o.contains((null===t||void 0===t?void 0:t.target)||null)||a||n(t)}),[e,n]);Gn("mousedown",o),Gn("touchstart",o)},Nr=e=>{let{children:n,buttonRef:r,placement:o="bottom-left",open:i=!1,onClose:a,offset:l={top:6,left:0},clickOutside:s=!0,fullWidth:c,title:u,disabledFullScreen:d,variant:h}=e;const{isMobile:f}=dr(),p=re(),m=te(),[v,g]=(0,t.useState)({width:0,height:0}),[y,_]=(0,t.useState)(!1),b=(0,t.useRef)(null);(0,t.useEffect)((()=>(_(i),!i&&a&&a(),i&&f&&!d&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="auto"})),[i]),(0,t.useEffect)((()=>{var e,t;g({width:(null===b||void 0===b||null===(e=b.current)||void 0===e?void 0:e.clientWidth)||0,height:(null===b||void 0===b||null===(t=b.current)||void 0===t?void 0:t.clientHeight)||0}),_(!1)}),[b]);const w=(0,t.useMemo)((()=>{const e=r.current;if(!e||!y)return{};const t=e.getBoundingClientRect(),n={top:0,left:0,width:"auto"},i="bottom-right"===o||"top-right"===o,a=null===o||void 0===o?void 0:o.includes("top"),s=(null===l||void 0===l?void 0:l.top)||0,u=(null===l||void 0===l?void 0:l.left)||0;n.left=n.left=t.left+u,n.top=t.height+t.top+s,i&&(n.left=t.right-v.width),a&&(n.top=t.top-v.height-s);const{innerWidth:d,innerHeight:h}=window,f=n.top+v.height+20>h,p=n.top-20<0,m=n.left+v.width+20>d,g=n.left-20<0;return f&&(n.top=t.top-v.height-s),p&&(n.top=t.height+t.top+s),m&&(n.left=t.right-v.width-u),g&&(n.left=t.left+u),c&&(n.width="".concat(t.width,"px")),n.top<0&&(n.top=20),n.left<0&&(n.left=20),n}),[r,o,y,n,c]),k=()=>{_(!1),a()};(0,t.useEffect)((()=>{if(!b.current||!y||f&&!d)return;const{right:e,width:t}=b.current.getBoundingClientRect();if(e>window.innerWidth){const e=window.innerWidth-20-t;b.current.style.left=e{y&&f&&!d&&(p(m,{replace:!0}),a())}),[y,f,d,m,a]);return Gn("scroll",k),Gn("popstate",x),Tr(b,(()=>{s&&k()}),r),pt(ht.FK,{children:(y||!v.width)&&t.default.createPortal(pt("div",{className:Yn()({"vm-popper":!0,["vm-popper_".concat(h)]:h,"vm-popper_mobile":f&&!d,"vm-popper_open":(f||Object.keys(w).length)&&y}),ref:b,style:f&&!d?{}:w,children:[(u||f&&!d)&&pt("div",{className:"vm-popper-header",children:[pt("p",{className:"vm-popper-header__title",children:u}),pt(Ar,{variant:"text",color:"dark"===h?"white":"primary",size:"small",onClick:e=>{e.stopPropagation(),a()},ariaLabel:"close",children:pt(pn,{})})]}),n]}),document.body)})},Or=e=>{let{checked:t=!1,disabled:n=!1,label:r,color:o="secondary",onChange:i}=e;return pt("div",{className:Yn()({"vm-checkbox":!0,"vm-checkbox_disabled":n,"vm-checkbox_active":t,["vm-checkbox_".concat(o,"_active")]:t,["vm-checkbox_".concat(o)]:o}),onClick:()=>{n||i(!t)},children:[pt("div",{className:"vm-checkbox-track",children:pt("div",{className:"vm-checkbox-track__thumb",children:pt(On,{})})}),r&&pt("span",{className:"vm-checkbox__label",children:r})]})},Pr=e=>{let{children:n,title:r,open:o,placement:i="bottom-center",offset:a={top:6,left:0}}=e;const{isMobile:l}=dr(),[s,c]=(0,t.useState)(!1),[u,d]=(0,t.useState)({width:0,height:0}),h=(0,t.useRef)(null),f=(0,t.useRef)(null),p=()=>c(!1);(0,t.useEffect)((()=>{if(f.current&&s)return d({width:f.current.clientWidth,height:f.current.clientHeight}),window.addEventListener("scroll",p),()=>{window.removeEventListener("scroll",p)}}),[s,r]);const m=(0,t.useMemo)((()=>{var e;const t=null===h||void 0===h||null===(e=h.current)||void 0===e?void 0:e.base;if(!t||!s)return{};const n=t.getBoundingClientRect(),r={top:0,left:0},o="bottom-right"===i||"top-right"===i,l="bottom-left"===i||"top-left"===i,c=null===i||void 0===i?void 0:i.includes("top"),d=(null===a||void 0===a?void 0:a.top)||0,f=(null===a||void 0===a?void 0:a.left)||0;r.left=n.left-(u.width-n.width)/2+f,r.top=n.height+n.top+d,o&&(r.left=n.right-u.width),l&&(r.left=n.left+f),c&&(r.top=n.top-u.height-d);const{innerWidth:p,innerHeight:m}=window,v=r.top+u.height+20>m,g=r.top-20<0,y=r.left+u.width+20>p,_=r.left-20<0;return v&&(r.top=n.top-u.height-d),g&&(r.top=n.height+n.top+d),y&&(r.left=n.right-u.width-f),_&&(r.left=n.left+f),r.top<0&&(r.top=20),r.left<0&&(r.left=20),r}),[h,i,s,u]),v=()=>{"boolean"!==typeof o&&c(!0)},g=()=>{c(!1)};return(0,t.useEffect)((()=>{"boolean"===typeof o&&c(o)}),[o]),(0,t.useEffect)((()=>{var e;const t=null===h||void 0===h||null===(e=h.current)||void 0===e?void 0:e.base;if(t)return t.addEventListener("mouseenter",v),t.addEventListener("mouseleave",g),()=>{t.removeEventListener("mouseenter",v),t.removeEventListener("mouseleave",g)}}),[h]),pt(ht.FK,{children:[pt(t.Fragment,{ref:h,children:n}),!l&&s&&t.default.createPortal(pt("div",{className:"vm-tooltip",ref:f,style:m,children:r}),document.body)]})},Lr=e=>{let{value:t=!1,disabled:n=!1,label:r,color:o="secondary",fullWidth:i,onChange:a}=e;return pt("div",{className:Yn()({"vm-switch":!0,"vm-switch_full-width":i,"vm-switch_disabled":n,"vm-switch_active":t,["vm-switch_".concat(o,"_active")]:t,["vm-switch_".concat(o)]:o}),onClick:()=>{n||a(!t)},children:[pt("div",{className:"vm-switch-track",children:pt("div",{className:"vm-switch-track__thumb"})}),r&&pt("span",{className:"vm-switch__label",children:r})]})};const Rr=e=>{const[n,r]=(0,t.useState)(!!e),o=(0,t.useCallback)((()=>r(!0)),[]),i=(0,t.useCallback)((()=>r(!1)),[]),a=(0,t.useCallback)((()=>r((e=>!e))),[]);return{value:n,setValue:r,setTrue:o,setFalse:i,toggle:a}},zr="Table settings",Dr=e=>{let{columns:n,defaultColumns:r=[],tableCompact:o,onChangeColumns:i,toggleTableCompact:a}=e;const{isMobile:l}=dr(),s=(0,t.useRef)(null),{value:c,toggle:u,setFalse:d}=Rr(!1),h=(0,t.useMemo)((()=>!n.length),[n]),f=e=>()=>{(e=>{i(r.includes(e)?r.filter((t=>t!==e)):[...r,e])})(e)};return(0,t.useEffect)((()=>{((e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])))(n,r)||i(n)}),[n]),pt("div",{className:"vm-table-settings",children:[pt(Pr,{title:zr,children:pt("div",{ref:s,children:pt(Ar,{variant:"text",startIcon:pt(fn,{}),onClick:u,disabled:h,ariaLabel:"table settings"})})}),pt(Nr,{open:c,onClose:d,placement:"bottom-right",buttonRef:s,title:zr,children:pt("div",{className:Yn()({"vm-table-settings-popper":!0,"vm-table-settings-popper_mobile":l}),children:[pt("div",{className:"vm-table-settings-popper-list vm-table-settings-popper-list_first",children:pt(Lr,{label:"Compact view",value:o,onChange:a})}),pt("div",{className:"vm-table-settings-popper-list",children:[pt("div",{className:"vm-table-settings-popper-list-header",children:[pt("h3",{className:"vm-table-settings-popper-list-header__title",children:"Display columns"}),pt(Pr,{title:"Reset to default",children:pt(Ar,{color:"primary",variant:"text",size:"small",onClick:()=>{d(),i(n)},startIcon:pt(mn,{}),ariaLabel:"reset columns"})})]}),n.map((e=>pt("div",{className:"vm-table-settings-popper-list__item",children:pt(Or,{checked:r.includes(e),onChange:f(e),label:e,disabled:o})},e)))]})]})})]})},Ir=["date","timestamp","time"];function $r(e,t,n){const r=e[n],i=t[n],a=Ir.includes("".concat(n))?o()("".concat(r)).unix():r,l=Ir.includes("".concat(n))?o()("".concat(i)).unix():i;return la?1:0}const Fr=e=>{let{rows:n,columns:r,defaultOrderBy:o,copyToClipboard:i,paginationOffset:a}=e;const[l,s]=(0,t.useState)(o),[c,u]=(0,t.useState)("desc"),[d,h]=(0,t.useState)(null),f=(0,t.useMemo)((()=>{const{startIndex:e,endIndex:t}=a;return function(e,t){const n=e.map(((e,t)=>[e,t]));return n.sort(((e,n)=>{const r=t(e[0],n[0]);return 0!==r?r:e[1]-n[1]})),n.map((e=>e[0]))}(n,function(e,t){return"desc"===e?(e,n)=>$r(e,n,t):(e,n)=>-$r(e,n,t)}(c,l)).slice(e,t)}),[n,l,c,a]),p=(e,t)=>async()=>{if(d!==t)try{await navigator.clipboard.writeText(String(e)),h(t)}catch(Au){console.error(Au)}};return(0,t.useEffect)((()=>{if(null===d)return;const e=setTimeout((()=>h(null)),2e3);return()=>clearTimeout(e)}),[d]),pt("table",{className:"vm-table",children:[pt("thead",{className:"vm-table-header",children:pt("tr",{className:"vm-table__row vm-table__row_header",children:[r.map((e=>{return pt("th",{className:"vm-table-cell vm-table-cell_header vm-table-cell_sort",onClick:(t=e.key,()=>{u((e=>"asc"===e&&l===t?"desc":"asc")),s(t)}),children:pt("div",{className:"vm-table-cell__content",children:[pt("div",{children:String(e.title||e.key)}),pt("div",{className:Yn()({"vm-table__sort-icon":!0,"vm-table__sort-icon_active":l===e.key,"vm-table__sort-icon_desc":"desc"===c&&l===e.key}),children:pt(kn,{})})]})},String(e.key));var t})),i&&pt("th",{className:"vm-table-cell vm-table-cell_header"})]})}),pt("tbody",{className:"vm-table-body",children:f.map(((e,t)=>pt("tr",{className:"vm-table__row",children:[r.map((t=>pt("td",{className:Yn()({"vm-table-cell":!0,["".concat(t.className)]:t.className}),children:e[t.key]||"-"},String(t.key)))),i&&pt("td",{className:"vm-table-cell vm-table-cell_right",children:e[i]&&pt("div",{className:"vm-table-cell__content",children:pt(Pr,{title:d===t?"Copied":"Copy row",children:pt(Ar,{variant:"text",color:d===t?"success":"gray",size:"small",startIcon:pt(d===t?On:Ln,{}),onClick:p(e[i],t),ariaLabel:"copy row"})})})})]},t)))})]})},jr=e=>{let{logs:n,displayColumns:r,tableCompact:o,columns:i}=e;const a=e=>{switch(e){case"time":return"vm-table-cell_logs-time";case"data":return"vm-table-cell_logs vm-table-cell_pre";default:return"vm-table-cell_logs"}},l=(0,t.useMemo)((()=>o?[{key:"data",title:"Data",className:a("data")}]:i.map((e=>({key:e,title:e,className:a(e)})))),[o,i]),s=(0,t.useMemo)((()=>null===r||void 0===r||!r.length||o?l:l.filter((e=>r.includes(e.key)))),[l,r,o]);return pt(ht.FK,{children:pt(Fr,{rows:n,columns:s,defaultOrderBy:"time",copyToClipboard:"data",paginationOffset:{startIndex:0,endIndex:1/0}})})},Vr=e=>{let{defaultExpanded:n=!1,onChange:r,title:o,children:i}=e;const[a,l]=(0,t.useState)(n);return(0,t.useEffect)((()=>{r&&r(a)}),[a]),pt(ht.FK,{children:[pt("header",{className:"vm-accordion-header ".concat(a&&"vm-accordion-header_open"),onClick:()=>{l((e=>!e))},children:[o,pt("div",{className:"vm-accordion-header__arrow ".concat(a&&"vm-accordion-header__arrow_open"),children:pt(wn,{})})]}),a&&pt("section",{className:"vm-accordion-section",children:i},"content")]})},Hr=e=>{let{logs:n,columns:r}=e;const o=(0,t.useMemo)((()=>{const e=["_msg","time","data","_time"],t=r.filter((t=>!e.includes(t)));return function(e,t){const n=e.reduce(((e,n)=>{const r=t.map((e=>"".concat(e,": ").concat(n[e]||"-"))).join("|");return(e[r]=e[r]||[]).push(n),e}),{});return Object.entries(n).map((e=>{let[t,n]=e;return{keys:t.split("|"),values:n}}))}(n,t)}),[n]);return pt("div",{className:"vm-explore-logs-body-content",children:o.map((e=>pt("div",{className:"vm-explore-logs-body-content-group",children:pt(Vr,{defaultExpanded:!0,title:pt("div",{className:"vm-explore-logs-body-content-group-keys",children:[pt("span",{className:"vm-explore-logs-body-content-group-keys__title",children:"Group by:"}),e.keys.map((e=>pt("div",{className:"vm-explore-logs-body-content-group-keys__key",children:e},e)))]}),children:pt("div",{className:"vm-explore-logs-body-content-group-rows",children:e.values.map((e=>pt("div",{className:"vm-explore-logs-body-content-group-rows-item",children:[pt("div",{className:"vm-explore-logs-body-content-group-rows-item__time",children:e.time}),pt("div",{className:"vm-explore-logs-body-content-group-rows-item__msg",children:e._msg})]},"".concat(e._msg).concat(e._time))))})})},e.keys.join(""))))})};var Ur=function(e){return e.group="group",e.table="table",e.json="json",e}(Ur||{});const Br=[{label:"Group",value:Ur.group,icon:pt(jn,{})},{label:"Table",value:Ur.table,icon:pt(Tn,{})},{label:"JSON",value:Ur.json,icon:pt(Nn,{})}],Wr=e=>{let{data:n,loaded:r}=e;const{isMobile:i}=dr(),{timezone:a}=Gt(),{setSearchParamsFromKeys:l}=Mr(),[s,c]=Er(Ur.group,"view"),[u,d]=(0,t.useState)([]),{value:h,toggle:f}=Rr(!1),p=(0,t.useMemo)((()=>n.map((e=>({time:o()(e._time).tz().format("MMM DD, YYYY \nHH:mm:ss.SSS"),data:JSON.stringify(e,null,2),...e})))),[n,a]),m=(0,t.useMemo)((()=>{if(null===p||void 0===p||!p.length)return[];const e=["data","_time"],t=new Set;for(const n of p)for(const e in n)t.add(e);return Array.from(t).filter((t=>!e.includes(t)))}),[p]);return pt("div",{className:Yn()({"vm-explore-logs-body":!0,"vm-block":!0,"vm-block_mobile":i}),children:[pt("div",{className:Yn()({"vm-explore-logs-body-header":!0,"vm-section-header":!0,"vm-explore-logs-body-header_mobile":i}),children:[pt("div",{className:"vm-section-header__tabs",children:pt(Jn,{activeItem:String(s),items:Br,onChange:e=>{c(e),l({view:e})}})}),s===Ur.table&&pt("div",{className:"vm-explore-logs-body-header__settings",children:pt(Dr,{columns:m,defaultColumns:u,onChangeColumns:d,tableCompact:h,toggleTableCompact:f})})]}),pt("div",{className:Yn()({"vm-explore-logs-body__table":!0,"vm-explore-logs-body__table_mobile":i}),children:[!n.length&&pt("div",{className:"vm-explore-logs-body__empty",children:r?"No logs found":"Run query to see logs"}),!!n.length&&pt(ht.FK,{children:[s===Ur.table&&pt(jr,{logs:p,displayColumns:u,tableCompact:h,columns:m}),s===Ur.group&&pt(Hr,{logs:p,columns:m}),s===Ur.json&&pt(Cr,{data:n})]})]})]})},Yr=e=>{let{containerStyles:t={},message:n}=e;const{isDarkTheme:r}=vt();return pt("div",{className:Yn()({"vm-spinner":!0,"vm-spinner_dark":r}),style:t&&{},children:[pt("div",{className:"half-circle-spinner",children:[pt("div",{className:"circle circle-1"}),pt("div",{className:"circle circle-2"})]}),n&&pt("div",{className:"vm-spinner__message",children:n})]})},Zr=e=>{let{error:n,warning:r,info:o}=e;const i=(0,t.useRef)(null),[a,l]=(0,t.useState)(!1),[s,c]=(0,t.useState)(!1),u=(0,t.useMemo)((()=>n?"ERROR: ":r?"WARNING: ":""),[n,r]),d="".concat(u).concat(n||r||o),h=()=>{const e=i.current;if(e){const{offsetWidth:t,scrollWidth:n,offsetHeight:r,scrollHeight:o}=e;l(t+1{c(!1),h()}),[i,d]),Gn("resize",h),n||r||o?pt("span",{className:Yn()({"vm-text-field__error":!0,"vm-text-field__warning":r&&!n,"vm-text-field__helper-text":!r&&!n,"vm-text-field__error_overflowed":a,"vm-text-field__error_full":s}),"data-show":!!d,ref:i,onClick:()=>{a&&(c(!0),l(!1))},children:d}):null},qr=e=>{let{label:n,value:r,type:o="text",error:i="",warning:a="",helperText:l="",placeholder:s,endIcon:c,startIcon:u,disabled:d=!1,autofocus:h=!1,inputmode:f="text",onChange:p,onEnter:m,onKeyDown:v,onFocus:g,onBlur:y,onChangeCaret:_}=e;const{isDarkTheme:b}=vt(),{isMobile:w}=dr(),k=(0,t.useRef)(null),x=(0,t.useRef)(null),S=(0,t.useMemo)((()=>"textarea"===o?x:k),[o]),A=Yn()({"vm-text-field__input":!0,"vm-text-field__input_error":i,"vm-text-field__input_warning":!i&&a,"vm-text-field__input_icon-start":u,"vm-text-field__input_disabled":d,"vm-text-field__input_textarea":"textarea"===o}),C=e=>{const{selectionStart:t,selectionEnd:n}=e;_&&_([t||0,n||0])},E=e=>{C(e.currentTarget)},M=e=>{v&&v(e);const{key:t,ctrlKey:n,metaKey:r}=e,i="Enter"===t;("textarea"!==o?i:i&&(r||n))&&m&&(e.preventDefault(),m())},T=e=>{C(e.currentTarget)},N=e=>{d||(p&&p(e.currentTarget.value),C(e.currentTarget))};(0,t.useEffect)((()=>{var e;h&&!w&&(null===S||void 0===S||null===(e=S.current)||void 0===e?void 0:e.focus)&&S.current.focus()}),[S,h]);const O=()=>{g&&g()},P=()=>{y&&y()};return pt("label",{className:Yn()({"vm-text-field":!0,"vm-text-field_textarea":"textarea"===o,"vm-text-field_dark":b}),"data-replicated-value":r,children:[u&&pt("div",{className:"vm-text-field__icon-start",children:u}),c&&pt("div",{className:"vm-text-field__icon-end",children:c}),"textarea"===o?pt("textarea",{className:A,disabled:d,ref:x,value:r,rows:1,inputMode:f,placeholder:s,autoCapitalize:"none",onInput:N,onKeyDown:M,onKeyUp:T,onFocus:O,onBlur:P,onMouseUp:E}):pt("input",{className:A,disabled:d,ref:k,value:r,type:o,placeholder:s,inputMode:f,autoCapitalize:"none",onInput:N,onKeyDown:M,onKeyUp:T,onFocus:O,onBlur:P,onMouseUp:E}),n&&pt("span",{className:"vm-text-field__label",children:n}),pt(Zr,{error:i,warning:a,info:l})]})};var Kr=function(e){return e[e.mouse=0]="mouse",e[e.keyboard=1]="keyboard",e}(Kr||{});const Gr=e=>{var n;let{value:r,options:o,anchor:i,disabled:a,minLength:l=2,fullWidth:s,selected:c,noOptionsText:u,label:d,disabledFullScreen:h,offset:f,maxDisplayResults:p,loading:m,onSelect:v,onOpenAutocomplete:g,onFoundOptions:y,onChangeWrapperRef:_}=e;const{isMobile:b}=dr(),w=(0,t.useRef)(null),[k,x]=(0,t.useState)({index:-1}),[S,A]=(0,t.useState)(""),[C,E]=(0,t.useState)(0),{value:M,setValue:T,setFalse:N}=Rr(!1),O=(0,t.useMemo)((()=>{if(!M)return[];try{const e=new RegExp(String(r.trim()),"i"),t=o.filter((t=>e.test(t.value))).sort(((t,n)=>{var o,i;return t.value.toLowerCase()===r.trim().toLowerCase()?-1:n.value.toLowerCase()===r.trim().toLowerCase()?1:((null===(o=t.value.match(e))||void 0===o?void 0:o.index)||0)-((null===(i=n.value.match(e))||void 0===i?void 0:i.index)||0)}));return E(t.length),A(t.length>Number(null===p||void 0===p?void 0:p.limit)&&(null===p||void 0===p?void 0:p.message)||""),null!==p&&void 0!==p&&p.limit?t.slice(0,p.limit):t}catch(Au){return[]}}),[M,o,r]),P=(0,t.useMemo)((()=>{var e;return 1===O.length&&(null===(e=O[0])||void 0===e?void 0:e.value)===r}),[O]),L=(0,t.useMemo)((()=>u&&!O.length),[u,O]),R=()=>{x({index:-1})},z=(0,t.useCallback)((e=>{const{key:t,ctrlKey:n,metaKey:r,shiftKey:o}=e,i=n||r||o,a=O.length;if("ArrowUp"===t&&!i&&a&&(e.preventDefault(),x((e=>{let{index:t}=e;return{index:t<=0?0:t-1,type:Kr.keyboard}}))),"ArrowDown"===t&&!i&&a){e.preventDefault();const t=O.length-1;x((e=>{let{index:n}=e;return{index:n>=t?t:n+1,type:Kr.keyboard}}))}if("Enter"===t){const e=O[k.index];e&&v(e.value),c||N()}"Escape"===t&&N()}),[k,O,N,v,c]);return(0,t.useEffect)((()=>{T(r.length>=l)}),[r,o]),Gn("keydown",z),(0,t.useEffect)((()=>{if(!w.current||k.type===Kr.mouse)return;const e=w.current.childNodes[k.index];null!==e&&void 0!==e&&e.scrollIntoView&&e.scrollIntoView({block:"center"})}),[k,O]),(0,t.useEffect)((()=>{x({index:-1})}),[O]),(0,t.useEffect)((()=>{g&&g(M)}),[M]),(0,t.useEffect)((()=>{y&&y(P?[]:O)}),[O,P]),(0,t.useEffect)((()=>{_&&_(w)}),[w]),pt(Nr,{open:M,buttonRef:i,placement:"bottom-left",onClose:N,fullWidth:s,title:b?d:void 0,disabledFullScreen:h,offset:f,children:[pt("div",{className:Yn()({"vm-autocomplete":!0,"vm-autocomplete_mobile":b&&!h}),ref:w,children:[m&&pt("div",{className:"vm-autocomplete__loader",children:[pt(bn,{}),pt("span",{children:"Loading..."})]}),L&&pt("div",{className:"vm-autocomplete__no-options",children:u}),!P&&O.map(((e,t)=>{return pt("div",{className:Yn()({"vm-list-item":!0,"vm-list-item_mobile":b,"vm-list-item_active":t===k.index,"vm-list-item_multiselect":c,"vm-list-item_multiselect_selected":null===c||void 0===c?void 0:c.includes(e.value),"vm-list-item_with-icon":e.icon}),id:"$autocomplete$".concat(e.value),onClick:(r=e.value,()=>{a||(v(r),c||N())}),onMouseEnter:(n=t,()=>{x({index:n,type:Kr.mouse})}),onMouseLeave:R,children:[(null===c||void 0===c?void 0:c.includes(e.value))&&pt(On,{}),pt(ht.FK,{children:e.icon}),pt("span",{children:e.value})]},"".concat(t).concat(e.value));var n,r}))]}),S&&pt("div",{className:"vm-autocomplete-message",children:["Shown ",null===p||void 0===p?void 0:p.limit," results out of ",C,". ",S]}),(null===(n=O[k.index])||void 0===n?void 0:n.description)&&pt("div",{className:"vm-autocomplete-info",children:[pt("div",{className:"vm-autocomplete-info__type",children:O[k.index].type}),pt("div",{className:"vm-autocomplete-info__description",dangerouslySetInnerHTML:{__html:O[k.index].description||""}})]})]})};var Qr=n(267),Jr=n.n(Qr);const Xr=e=>e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&"),eo=e=>JSON.stringify(e).slice(1,-1);var to=function(e){return e.metric="metric",e.label="label",e.labelValue="labelValue",e}(to||{});const no={[to.metric]:pt(Vn,{}),[to.label]:pt(Un,{}),[to.labelValue]:pt(Bn,{})},ro="u-off",oo="u-label",io="width",ao="height",lo="top",so="bottom",co="left",uo="right",ho="#000",fo=ho+"0",po="mousemove",mo="mousedown",vo="mouseup",go="mouseenter",yo="mouseleave",_o="dblclick",bo="change",wo="dppxchange",ko="--",xo="undefined"!=typeof window,So=xo?document:null,Ao=xo?window:null,Co=xo?navigator:null;let Eo,Mo;function To(e,t){if(null!=t){let n=e.classList;!n.contains(t)&&n.add(t)}}function No(e,t){let n=e.classList;n.contains(t)&&n.remove(t)}function Oo(e,t,n){e.style[t]=n+"px"}function Po(e,t,n,r){let o=So.createElement(e);return null!=t&&To(o,t),null!=n&&n.insertBefore(o,r),o}function Lo(e,t){return Po("div",e,t)}const Ro=new WeakMap;function zo(e,t,n,r,o){let i="translate("+t+"px,"+n+"px)";i!=Ro.get(e)&&(e.style.transform=i,Ro.set(e,i),t<0||n<0||t>r||n>o?To(e,ro):No(e,ro))}const Do=new WeakMap;function Io(e,t,n){let r=t+n;r!=Do.get(e)&&(Do.set(e,r),e.style.background=t,e.style.borderColor=n)}const $o=new WeakMap;function Fo(e,t,n,r){let o=t+""+n;o!=$o.get(e)&&($o.set(e,o),e.style.height=n+"px",e.style.width=t+"px",e.style.marginLeft=r?-t/2+"px":0,e.style.marginTop=r?-n/2+"px":0)}const jo={passive:!0},Vo={...jo,capture:!0};function Ho(e,t,n,r){t.addEventListener(e,n,r?Vo:jo)}function Uo(e,t,n,r){t.removeEventListener(e,n,r?Vo:jo)}function Bo(e,t,n,r){let o;n=n||0;let i=(r=r||t.length-1)<=2147483647;for(;r-n>1;)o=i?n+r>>1:ai((n+r)/2),t[o]=t&&o<=n;o+=r)if(null!=e[o])return o;return-1}function Yo(e,t,n,r){let o=hi(e),i=hi(t);e==t&&(-1==o?(e*=n,t/=n):(e/=n,t*=n));let a=10==n?fi:pi,l=1==i?si:ai,s=(1==o?ai:si)(a(ii(e))),c=l(a(ii(t))),u=di(n,s),d=di(n,c);return 10==n&&(s<0&&(u=Ti(u,-s)),c<0&&(d=Ti(d,-c))),r||2==n?(e=u*o,t=d*i):(e=Mi(e,u),t=Ei(t,d)),[e,t]}function Zo(e,t,n,r){let o=Yo(e,t,n,r);return 0==e&&(o[0]=0),0==t&&(o[1]=0),o}xo&&function e(){let t=devicePixelRatio;Eo!=t&&(Eo=t,Mo&&Uo(bo,Mo,e),Mo=matchMedia("(min-resolution: ".concat(Eo-.001,"dppx) and (max-resolution: ").concat(Eo+.001,"dppx)")),Ho(bo,Mo,e),Ao.dispatchEvent(new CustomEvent(wo)))}();const qo=.1,Ko={mode:3,pad:qo},Go={pad:0,soft:null,mode:0},Qo={min:Go,max:Go};function Jo(e,t,n,r){return Fi(n)?ei(e,t,n):(Go.pad=n,Go.soft=r?0:null,Go.mode=r?3:0,ei(e,t,Qo))}function Xo(e,t){return null==e?t:e}function ei(e,t,n){let r=n.min,o=n.max,i=Xo(r.pad,0),a=Xo(o.pad,0),l=Xo(r.hard,-vi),s=Xo(o.hard,vi),c=Xo(r.soft,vi),u=Xo(o.soft,-vi),d=Xo(r.mode,0),h=Xo(o.mode,0),f=t-e,p=fi(f),m=ui(ii(e),ii(t)),v=fi(m),g=ii(v-p);(f<1e-9||g>10)&&(f=0,0!=e&&0!=t||(f=1e-9,2==d&&c!=vi&&(i=0),2==h&&u!=-vi&&(a=0)));let y=f||m||1e3,_=fi(y),b=di(10,ai(_)),w=Ti(Mi(e-y*(0==f?0==e?.1:1:i),b/10),9),k=e>=c&&(1==d||3==d&&w<=c||2==d&&w>=c)?c:vi,x=ui(l,w=k?k:ci(k,w)),S=Ti(Ei(t+y*(0==f?0==t?.1:1:a),b/10),9),A=t<=u&&(1==h||3==h&&S>=u||2==h&&S<=u)?u:-vi,C=ci(s,S>A&&t<=A?A:ui(A,S));return x==C&&0==x&&(C=100),[x,C]}const ti=new Intl.NumberFormat(xo?Co.language:"en-US"),ni=e=>ti.format(e),ri=Math,oi=ri.PI,ii=ri.abs,ai=ri.floor,li=ri.round,si=ri.ceil,ci=ri.min,ui=ri.max,di=ri.pow,hi=ri.sign,fi=ri.log10,pi=ri.log2,mi=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return ri.asinh(e/t)},vi=1/0;function gi(e){return 1+(0|fi((e^e>>31)-(e>>31)))}function yi(e,t,n){return ci(ui(e,t),n)}function _i(e){return"function"==typeof e?e:()=>e}const bi=e=>e,wi=(e,t)=>t,ki=e=>null,xi=e=>!0,Si=(e,t)=>e==t,Ai=e=>Ti(e,14);function Ci(e,t){return Ai(Ti(Ai(e/t))*t)}function Ei(e,t){return Ai(si(Ai(e/t))*t)}function Mi(e,t){return Ai(ai(Ai(e/t))*t)}function Ti(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(Ii(e))return e;let n=10**t,r=e*n*(1+Number.EPSILON);return li(r)/n}const Ni=new Map;function Oi(e){return((""+e).split(".")[1]||"").length}function Pi(e,t,n,r){let o=[],i=r.map(Oi);for(let a=t;a=0&&a>=0?0:t)+(a>=i[e]?0:i[e]),c=Ti(l,s);o.push(c),Ni.set(c,s)}}return o}const Li={},Ri=[],zi=[null,null],Di=Array.isArray,Ii=Number.isInteger;function $i(e){return"string"==typeof e}function Fi(e){let t=!1;if(null!=e){let n=e.constructor;t=null==n||n==Object}return t}function ji(e){return null!=e&&"object"==typeof e}const Vi=Object.getPrototypeOf(Uint8Array);function Hi(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fi;if(Di(e)){let r=e.find((e=>null!=e));if(Di(r)||n(r)){t=Array(e.length);for(let r=0;ri){for(r=a-1;r>=0&&null==e[r];)e[r--]=null;for(r=a+1;rPromise.resolve().then(e):queueMicrotask;const Yi=["January","February","March","April","May","June","July","August","September","October","November","December"],Zi=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function qi(e){return e.slice(0,3)}const Ki=Zi.map(qi),Gi=Yi.map(qi),Qi={MMMM:Yi,MMM:Gi,WWWW:Zi,WWW:Ki};function Ji(e){return(e<10?"0":"")+e}const Xi={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,t)=>t.MMMM[e.getMonth()],MMM:(e,t)=>t.MMM[e.getMonth()],MM:e=>Ji(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>Ji(e.getDate()),D:e=>e.getDate(),WWWW:(e,t)=>t.WWWW[e.getDay()],WWW:(e,t)=>t.WWW[e.getDay()],HH:e=>Ji(e.getHours()),H:e=>e.getHours(),h:e=>{let t=e.getHours();return 0==t?12:t>12?t-12:t},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>Ji(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>Ji(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>{return((t=e.getMilliseconds())<10?"00":t<100?"0":"")+t;var t}};function ea(e,t){t=t||Qi;let n,r=[],o=/\{([a-z]+)\}|[^{]+/gi;for(;n=o.exec(e);)r.push("{"==n[0][0]?Xi[n[1]]:n[0]);return e=>{let n="";for(let o=0;oe%1==0,ra=[1,2,2.5,5],oa=Pi(10,-16,0,ra),ia=Pi(10,0,16,ra),aa=ia.filter(na),la=oa.concat(ia),sa="{YYYY}",ca="\n"+sa,ua="{M}/{D}",da="\n"+ua,ha=da+"/{YY}",fa="{aa}",pa="{h}:{mm}"+fa,ma="\n"+pa,va=":{ss}",ga=null;function ya(e){let t=1e3*e,n=60*t,r=60*n,o=24*r,i=30*o,a=365*o;return[(1==e?Pi(10,0,3,ra).filter(na):Pi(10,-3,0,ra)).concat([t,5*t,10*t,15*t,30*t,n,5*n,10*n,15*n,30*n,r,2*r,3*r,4*r,6*r,8*r,12*r,o,2*o,3*o,4*o,5*o,6*o,7*o,8*o,9*o,10*o,15*o,i,2*i,3*i,4*i,6*i,a,2*a,5*a,10*a,25*a,50*a,100*a]),[[a,sa,ga,ga,ga,ga,ga,ga,1],[28*o,"{MMM}",ca,ga,ga,ga,ga,ga,1],[o,ua,ca,ga,ga,ga,ga,ga,1],[r,"{h}"+fa,ha,ga,da,ga,ga,ga,1],[n,pa,ha,ga,da,ga,ga,ga,1],[t,va,ha+" "+pa,ga,da+" "+pa,ga,ma,ga,1],[e,va+".{fff}",ha+" "+pa,ga,da+" "+pa,ga,ma,ga,1]],function(t){return(l,s,c,u,d,h)=>{let f=[],p=d>=a,m=d>=i&&d=o?o:d,a=_+(ai(c)-ai(g))+Ei(g-_,i);f.push(a);let p=t(a),m=p.getHours()+p.getMinutes()/n+p.getSeconds()/r,v=d/r,y=h/l.axes[s]._space;for(;a=Ti(a+d,1==e?0:3),!(a>u);)if(v>1){let e=ai(Ti(m+v,6))%24,n=t(a).getHours()-e;n>1&&(n=-1),a-=n*r,m=(m+v)%24,Ti((a-f[f.length-1])/d,3)*y>=.7&&f.push(a)}else f.push(a)}return f}}]}const[_a,ba,wa]=ya(1),[ka,xa,Sa]=ya(.001);function Aa(e,t){return e.map((e=>e.map(((n,r)=>0==r||8==r||null==n?n:t(1==r||0==e[8]?n:e[1]+n)))))}function Ca(e,t){return(n,r,o,i,a)=>{let l,s,c,u,d,h,f=t.find((e=>a>=e[0]))||t[t.length-1];return r.map((t=>{let n=e(t),r=n.getFullYear(),o=n.getMonth(),i=n.getDate(),a=n.getHours(),p=n.getMinutes(),m=n.getSeconds(),v=r!=l&&f[2]||o!=s&&f[3]||i!=c&&f[4]||a!=u&&f[5]||p!=d&&f[6]||m!=h&&f[7]||f[1];return l=r,s=o,c=i,u=a,d=p,h=m,v(n)}))}}function Ea(e,t,n){return new Date(e,t,n)}function Ma(e,t){return t(e)}Pi(2,-53,53,[1]);function Ta(e,t){return(n,r,o,i)=>null==i?ko:t(e(r))}const Na={show:!0,live:!0,isolate:!1,mount:()=>{},markers:{show:!0,width:2,stroke:function(e,t){let n=e.series[t];return n.width?n.stroke(e,t):n.points.width?n.points.stroke(e,t):null},fill:function(e,t){return e.series[t].fill(e,t)},dash:"solid"},idx:null,idxs:null,values:[]};const Oa=[0,0];function Pa(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return e=>{0==e.button&&(!r||e.target==t)&&n(e)}}function La(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return e=>{(!r||e.target==t)&&n(e)}}const Ra={show:!0,x:!0,y:!0,lock:!1,move:function(e,t,n){return Oa[0]=t,Oa[1]=n,Oa},points:{show:function(e,t){let n=e.cursor.points,r=Lo(),o=n.size(e,t);Oo(r,io,o),Oo(r,ao,o);let i=o/-2;Oo(r,"marginLeft",i),Oo(r,"marginTop",i);let a=n.width(e,t,o);return a&&Oo(r,"borderWidth",a),r},size:function(e,t){return e.series[t].points.size},width:0,stroke:function(e,t){let n=e.series[t].points;return n._stroke||n._fill},fill:function(e,t){let n=e.series[t].points;return n._fill||n._stroke}},bind:{mousedown:Pa,mouseup:Pa,click:Pa,dblclick:Pa,mousemove:La,mouseleave:La,mouseenter:La},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(e,t,n,r,o)=>r-o,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},za={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Da=Ui({},za,{filter:wi}),Ia=Ui({},Da,{size:10}),$a=Ui({},za,{show:!1}),Fa='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"',ja="bold "+Fa,Va={show:!0,scale:"x",stroke:ho,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:ja,side:2,grid:Da,ticks:Ia,border:$a,font:Fa,lineGap:1.5,rotate:0},Ha={show:!0,scale:"x",auto:!1,sorted:1,min:vi,max:-vi,idxs:[]};function Ua(e,t,n,r,o){return t.map((e=>null==e?"":ni(e)))}function Ba(e,t,n,r,o,i,a){let l=[],s=Ni.get(o)||0;for(let c=n=a?n:Ti(Ei(n,o),s);c<=r;c=Ti(c+o,s))l.push(Object.is(c,-0)?0:c);return l}function Wa(e,t,n,r,o,i,a){const l=[],s=e.scales[e.axes[t].scale].log,c=ai((10==s?fi:pi)(n));o=di(s,c),10==s&&c<0&&(o=Ti(o,-c));let u=n;do{l.push(u),u+=o,10==s&&(u=Ti(u,Ni.get(o))),u>=o*s&&(o=u)}while(u<=r);return l}function Ya(e,t,n,r,o,i,a){let l=e.scales[e.axes[t].scale].asinh,s=r>l?Wa(e,t,ui(l,n),r,o):[l],c=r>=0&&n<=0?[0]:[];return(n<-l?Wa(e,t,ui(l,-r),-n,o):[l]).reverse().map((e=>-e)).concat(c,s)}const Za=/./,qa=/[12357]/,Ka=/[125]/,Ga=/1/,Qa=(e,t,n,r)=>e.map(((e,o)=>4==t&&0==e||o%r==0&&n.test(e.toExponential()[e<0?1:0])?e:null));function Ja(e,t,n,r,o){let i=e.axes[n],a=i.scale,l=e.scales[a],s=e.valToPos,c=i._space,u=s(10,a),d=s(9,a)-u>=c?Za:s(7,a)-u>=c?qa:s(5,a)-u>=c?Ka:Ga;if(d==Ga){let e=ii(s(1,a)-u);if(eo,ol={show:!0,auto:!0,sorted:0,gaps:rl,alpha:1,facets:[Ui({},nl,{scale:"x"}),Ui({},nl,{scale:"y"})]},il={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:rl,alpha:1,points:{show:function(e,t){let{scale:n,idxs:r}=e.series[0],o=e._data[0],i=e.valToPos(o[r[0]],n,!0),a=e.valToPos(o[r[1]],n,!0),l=ii(a-i)/(e.series[t].points.space*Eo);return r[1]-r[0]<=l},filter:null},values:null,min:vi,max:-vi,idxs:[],path:null,clip:null};function al(e,t,n,r,o){return n/10}const ll={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},sl=Ui({},ll,{time:!1,ori:1}),cl={};function ul(e,t){let n=cl[e];return n||(n={key:e,plots:[],sub(e){n.plots.push(e)},unsub(e){n.plots=n.plots.filter((t=>t!=e))},pub(e,t,r,o,i,a,l){for(let s=0;s{let m=e.pxRound;const v=l.dir*(0==l.ori?1:-1),g=0==l.ori?kl:xl;let y,_;1==v?(y=n,_=r):(y=r,_=n);let b=m(c(t[y],l,f,d)),w=m(u(a[y],s,p,h)),k=m(c(t[_],l,f,d)),x=m(u(1==i?s.max:s.min,s,p,h)),S=new Path2D(o);return g(S,k,x),g(S,b,x),g(S,b,w),S}))}function vl(e,t,n,r,o,i){let a=null;if(e.length>0){a=new Path2D;const l=0==t?Sl:Al;let s=n;for(let t=0;tn[0]){let e=n[0]-s;e>0&&l(a,s,r,e,r+i),s=n[1]}}let c=n+o-s,u=10;c>0&&l(a,s,r-u/2,c,r+i+u)}return a}function gl(e,t,n,r,o,i,a){let l=[],s=e.length;for(let c=1==o?n:r;c>=n&&c<=r;c+=o){if(null===t[c]){let u=c,d=c;if(1==o)for(;++c<=r&&null===t[c];)d=c;else for(;--c>=n&&null===t[c];)d=c;let h=i(e[u]),f=d==u?h:i(e[d]),p=u-o;h=a<=0&&p>=0&&p=0&&m>=0&&m=h&&l.push([h,f])}}return l}function yl(e){return 0==e?bi:1==e?li:t=>Ci(t,e)}function _l(e){let t=0==e?bl:wl,n=0==e?(e,t,n,r,o,i)=>{e.arcTo(t,n,r,o,i)}:(e,t,n,r,o,i)=>{e.arcTo(n,t,o,r,i)},r=0==e?(e,t,n,r,o)=>{e.rect(t,n,r,o)}:(e,t,n,r,o)=>{e.rect(n,t,o,r)};return function(e,o,i,a,l){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;0==s&&0==c?r(e,o,i,a,l):(s=ci(s,a/2,l/2),c=ci(c,a/2,l/2),t(e,o+s,i),n(e,o+a,i,o+a,i+l,s),n(e,o+a,i+l,o,i+l,c),n(e,o,i+l,o,i,c),n(e,o,i,o+a,i,s),e.closePath())}}const bl=(e,t,n)=>{e.moveTo(t,n)},wl=(e,t,n)=>{e.moveTo(n,t)},kl=(e,t,n)=>{e.lineTo(t,n)},xl=(e,t,n)=>{e.lineTo(n,t)},Sl=_l(0),Al=_l(1),Cl=(e,t,n,r,o,i)=>{e.arc(t,n,r,o,i)},El=(e,t,n,r,o,i)=>{e.arc(n,t,r,o,i)},Ml=(e,t,n,r,o,i,a)=>{e.bezierCurveTo(t,n,r,o,i,a)},Tl=(e,t,n,r,o,i,a)=>{e.bezierCurveTo(n,t,o,r,a,i)};function Nl(e){return(e,t,n,r,o)=>hl(e,t,((t,i,a,l,s,c,u,d,h,f,p)=>{let m,v,{pxRound:g,points:y}=t;0==l.ori?(m=bl,v=Cl):(m=wl,v=El);const _=Ti(y.width*Eo,3);let b=(y.size-y.width)/2*Eo,w=Ti(2*b,3),k=new Path2D,x=new Path2D,{left:S,top:A,width:C,height:E}=e.bbox;Sl(x,S-w,A-w,C+2*w,E+2*w);const M=e=>{if(null!=a[e]){let t=g(c(i[e],l,f,d)),n=g(u(a[e],s,p,h));m(k,t+b,n),v(k,t,n,b,0,2*oi)}};if(o)o.forEach(M);else for(let e=n;e<=r;e++)M(e);return{stroke:_>0?k:null,fill:k,clip:x,flags:2|dl}}))}function Ol(e){return(t,n,r,o,i,a)=>{r!=o&&(i!=r&&a!=r&&e(t,n,r),i!=o&&a!=o&&e(t,n,o),e(t,n,a))}}const Pl=Ol(kl),Ll=Ol(xl);function Rl(e){const t=Xo(null===e||void 0===e?void 0:e.alignGaps,0);return(e,n,r,o)=>hl(e,n,((i,a,l,s,c,u,d,h,f,p,m)=>{let v,g,y=i.pxRound,_=e=>y(u(e,s,p,h)),b=e=>y(d(e,c,m,f));0==s.ori?(v=kl,g=Pl):(v=xl,g=Ll);const w=s.dir*(0==s.ori?1:-1),k={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:dl},x=k.stroke;let S,A,C,E=vi,M=-vi,T=_(a[1==w?r:o]),N=Wo(l,r,o,1*w),O=Wo(l,r,o,-1*w),P=_(a[N]),L=_(a[O]),R=!1;for(let e=1==w?r:o;e>=r&&e<=o;e+=w){let t=_(a[e]),n=l[e];t==T?null!=n?(A=b(n),E==vi&&(v(x,t,A),S=A),E=ci(A,E),M=ui(A,M)):null===n&&(R=!0):(E!=vi&&(g(x,T,E,M,S,A),C=T),null!=n?(A=b(n),v(x,t,A),E=M=S=A):(E=vi,M=-vi,null===n&&(R=!0)),T=t)}E!=vi&&E!=M&&C!=T&&g(x,T,E,M,S,A);let[z,D]=fl(e,n);if(null!=i.fill||0!=z){let t=k.fill=new Path2D(x),r=b(i.fillTo(e,n,i.min,i.max,z));v(t,L,r),v(t,P,r)}if(!i.spanGaps){let c=[];R&&c.push(...gl(a,l,r,o,w,_,t)),k.gaps=c=i.gaps(e,n,r,o,c),k.clip=vl(c,s.ori,h,f,p,m)}return 0!=D&&(k.band=2==D?[ml(e,n,r,o,x,-1),ml(e,n,r,o,x,1)]:ml(e,n,r,o,x,D)),k}))}function zl(e,t,n,r,o,i){let a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:vi;if(e.length>1){let l=null;for(let s=0,c=1/0;s0!==r[e]>0?n[e]=0:(n[e]=3*(s[e-1]+s[e])/((2*s[e]+s[e-1])/r[e-1]+(s[e]+2*s[e-1])/r[e]),isFinite(n[e])||(n[e]=0));n[a-1]=r[a-2];for(let c=0;c{Xl.pxRatio=Eo})));const Fl=Rl(),jl=Nl();function Vl(e,t,n,r){return(r?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map(((e,r)=>Hl(e,r,t,n)))}function Hl(e,t,n,r){return Ui({},0==t?n:r,e)}function Ul(e,t,n){return null==t?zi:[t,n]}const Bl=Ul;function Wl(e,t,n){return null==t?zi:Jo(t,n,qo,!0)}function Yl(e,t,n,r){return null==t?zi:Yo(t,n,e.scales[r].log,!1)}const Zl=Yl;function ql(e,t,n,r){return null==t?zi:Zo(t,n,e.scales[r].log,!1)}const Kl=ql;function Gl(e,t,n,r,o){let i=ui(gi(e),gi(t)),a=t-e,l=Bo(o/r*a,n);do{let e=n[l],t=r*e/a;if(t>=o&&i+(e<5?Ni.get(e):0)<=17)return[e,t]}while(++l(t=li((n=+r)*Eo))+"px")),t,n]}function Jl(e){e.show&&[e.font,e.labelFont].forEach((e=>{let t=Ti(e[2]*Eo,1);e[0]=e[0].replace(/[0-9.]+px/,t+"px"),e[1]=t}))}function Xl(e,t,n){const r={mode:Xo(e.mode,1)},o=r.mode;function i(e,t){return((3==t.distr?fi(e>0?e:t.clamp(r,e,t.min,t.max,t.key)):4==t.distr?mi(e,t.asinh):e)-t._min)/(t._max-t._min)}function a(e,t,n,r){let o=i(e,t);return r+n*(-1==t.dir?1-o:o)}function l(e,t,n,r){let o=i(e,t);return r+n*(-1==t.dir?o:1-o)}function s(e,t,n,r){return 0==t.ori?a(e,t,n,r):l(e,t,n,r)}r.valToPosH=a,r.valToPosV=l;let c=!1;r.status=0;const u=r.root=Lo("uplot");if(null!=e.id&&(u.id=e.id),To(u,e.class),e.title){Lo("u-title",u).textContent=e.title}const d=Po("canvas"),h=r.ctx=d.getContext("2d"),f=Lo("u-wrap",u);Ho("click",f,(e=>{if(e.target===m){(Tt!=At||Nt!=Ct)&&Ft.click(r,e)}}),!0);const p=r.under=Lo("u-under",f);f.appendChild(d);const m=r.over=Lo("u-over",f),v=+Xo((e=Hi(e)).pxAlign,1),g=yl(v);(e.plugins||[]).forEach((t=>{t.opts&&(e=t.opts(r,e)||e)}));const y=e.ms||.001,_=r.series=1==o?Vl(e.series||[],Ha,il,!1):(b=e.series||[null],w=ol,b.map(((e,t)=>0==t?null:Ui({},w,e))));var b,w;const k=r.axes=Vl(e.axes||[],Va,tl,!0),x=r.scales={},S=r.bands=e.bands||[];S.forEach((e=>{e.fill=_i(e.fill||null),e.dir=Xo(e.dir,-1)}));const A=2==o?_[1].facets[0].scale:_[0].scale,C={axes:function(){for(let e=0;ett[e])):y,b=2==f.distr?tt[y[1]]-tt[y[0]]:u,w=t.ticks,S=t.border,A=w.show?li(w.size*Eo):0,C=t._rotate*-oi/180,E=g(t._pos*Eo),M=E+(A+v)*c;o=0==a?M:0,n=1==a?M:0,at(t.font[0],l,1==t.align?co:2==t.align?uo:C>0?co:C<0?uo:0==a?"center":3==i?uo:co,C||1==a?"middle":2==i?lo:so);let T=t.font[1]*t.lineGap,N=y.map((e=>g(s(e,f,p,m)))),O=t._values;for(let e=0;e0&&(_.forEach(((e,n)=>{if(n>0&&e.show&&(ct(n,!1),ct(n,!0),null==e._paths)){et!=e.alpha&&(h.globalAlpha=et=e.alpha);let i=2==o?[0,t[n][0].length-1]:function(e){let t=yi(He-1,0,Ve-1),n=yi(Ue+1,0,Ve-1);for(;null==e[t]&&t>0;)t--;for(;null==e[n]&&n{if(t>0&&e.show){et!=e.alpha&&(h.globalAlpha=et=e.alpha),null!=e._paths&&ut(t,!1);{let n=null!=e._paths?e._paths.gaps:null,o=e.points.show(r,t,He,Ue,n),i=e.points.filter(r,t,o,n);(o||i)&&(e.points._paths=e.points.paths(r,t,He,Ue,i),ut(t,!0))}1!=et&&(h.globalAlpha=et=1),kn("drawSeries",t)}})))}},E=(e.drawOrder||["axes","series"]).map((e=>C[e]));function M(t){let n=x[t];if(null==n){let r=(e.scales||Li)[t]||Li;if(null!=r.from)M(r.from),x[t]=Ui({},x[r.from],r,{key:t});else{n=x[t]=Ui({},t==A?ll:sl,r),n.key=t;let e=n.time,i=n.range,a=Di(i);if((t!=A||2==o&&!e)&&(!a||null!=i[0]&&null!=i[1]||(i={min:null==i[0]?Ko:{mode:1,hard:i[0],soft:i[0]},max:null==i[1]?Ko:{mode:1,hard:i[1],soft:i[1]}},a=!1),!a&&Fi(i))){let e=i;i=(t,n,r)=>null==n?zi:Jo(n,r,e)}n.range=_i(i||(e?Bl:t==A?3==n.distr?Zl:4==n.distr?Kl:Ul:3==n.distr?Yl:4==n.distr?ql:Wl)),n.auto=_i(!a&&n.auto),n.clamp=_i(n.clamp||al),n._min=n._max=null}}}M("x"),M("y"),1==o&&_.forEach((e=>{M(e.scale)})),k.forEach((e=>{M(e.scale)}));for(let Tn in e.scales)M(Tn);const T=x[A],N=T.distr;let O,P;0==T.ori?(To(u,"u-hz"),O=a,P=l):(To(u,"u-vt"),O=l,P=a);const L={};for(let Tn in x){let e=x[Tn];null==e.min&&null==e.max||(L[Tn]={min:e.min,max:e.max},e.min=e.max=null)}const R=e.tzDate||(e=>new Date(li(e/y))),z=e.fmtDate||ea,D=1==y?wa(R):Sa(R),I=Ca(R,Aa(1==y?ba:xa,z)),$=Ta(R,Ma("{YYYY}-{MM}-{DD} {h}:{mm}{aa}",z)),F=[],j=r.legend=Ui({},Na,e.legend),V=j.show,H=j.markers;let U,B,W;j.idxs=F,H.width=_i(H.width),H.dash=_i(H.dash),H.stroke=_i(H.stroke),H.fill=_i(H.fill);let Y,Z=[],q=[],K=!1,G={};if(j.live){const e=_[1]?_[1].values:null;K=null!=e,Y=K?e(r,1,0):{_:0};for(let t in Y)G[t]=ko}if(V)if(U=Po("table","u-legend",u),W=Po("tbody",null,U),j.mount(r,U),K){B=Po("thead",null,U,W);let e=Po("tr",null,B);for(var Q in Po("th",null,e),Y)Po("th",oo,e).textContent=Q}else To(U,"u-inline"),j.live&&To(U,"u-live");const J={show:!0},X={show:!1};const ee=new Map;function te(e,t,n){let o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const i=ee.get(t)||{},a=Ce.bind[e](r,t,n,o);a&&(Ho(e,t,i[e]=a),ee.set(t,i))}function ne(e,t,n){const r=ee.get(t)||{};for(let o in r)null!=e&&o!=e||(Uo(o,t,r[o]),delete r[o]);null==e&&ee.delete(t)}let re=0,oe=0,ie=0,ae=0,le=0,se=0,ce=le,ue=se,de=ie,he=ae,fe=0,pe=0,me=0,ve=0;r.bbox={};let ge=!1,ye=!1,_e=!1,be=!1,we=!1,ke=!1;function xe(e,t,n){(n||e!=r.width||t!=r.height)&&Se(e,t),yt(!1),_e=!0,ye=!0,zt()}function Se(e,t){r.width=re=ie=e,r.height=oe=ae=t,le=se=0,function(){let e=!1,t=!1,n=!1,r=!1;k.forEach(((o,i)=>{if(o.show&&o._show){let{side:i,_size:a}=o,l=i%2,s=a+(null!=o.label?o.labelSize:0);s>0&&(l?(ie-=s,3==i?(le+=s,r=!0):n=!0):(ae-=s,0==i?(se+=s,e=!0):t=!0))}})),Ie[0]=e,Ie[1]=n,Ie[2]=t,Ie[3]=r,ie-=je[1]+je[3],le+=je[3],ae-=je[2]+je[0],se+=je[0]}(),function(){let e=le+ie,t=se+ae,n=le,r=se;function o(o,i){switch(o){case 1:return e+=i,e-i;case 2:return t+=i,t-i;case 3:return n-=i,n+i;case 0:return r-=i,r+i}}k.forEach(((e,t)=>{if(e.show&&e._show){let t=e.side;e._pos=o(t,e._size),null!=e.label&&(e._lpos=o(t,e.labelSize))}}))}();let n=r.bbox;fe=n.left=Ci(le*Eo,.5),pe=n.top=Ci(se*Eo,.5),me=n.width=Ci(ie*Eo,.5),ve=n.height=Ci(ae*Eo,.5)}const Ae=3;r.setSize=function(e){let{width:t,height:n}=e;xe(t,n)};const Ce=r.cursor=Ui({},Ra,{drag:{y:2==o}},e.cursor);if(null==Ce.dataIdx){var Ee,Me;let e=Ce.hover,n=e.skip=new Set(null!==(Ee=e.skip)&&void 0!==Ee?Ee:[]);n.add(void 0);let r=e.prox=_i(e.prox),o=null!==(Me=e.bias)&&void 0!==Me?Me:e.bias=0;Ce.dataIdx=(e,i,a,l)=>{var s;if(0==i)return a;let c=a,u=null!==(s=r(e,i,a,l))&&void 0!==s?s:vi,d=u>=0&&u0;)n.has(m[e])||(t=e);if(0==o||1==o)for(e=a;null==r&&e++u&&(c=null)}return c}}const Te=e=>{Ce.event=e};Ce.idxs=F,Ce._lock=!1;let Ne=Ce.points;Ne.show=_i(Ne.show),Ne.size=_i(Ne.size),Ne.stroke=_i(Ne.stroke),Ne.width=_i(Ne.width),Ne.fill=_i(Ne.fill);const Oe=r.focus=Ui({},e.focus||{alpha:.3},Ce.focus),Pe=Oe.prox>=0;let Le=[null],Re=[null],ze=[null];function De(e,t){if(1==o||t>0){let t=1==o&&x[e.scale].time,n=e.value;e.value=t?$i(n)?Ta(R,Ma(n,z)):n||$:n||el,e.label=e.label||(t?"Time":"Value")}if(t>0){e.width=null==e.width?1:e.width,e.paths=e.paths||Fl||ki,e.fillTo=_i(e.fillTo||pl),e.pxAlign=+Xo(e.pxAlign,v),e.pxRound=yl(e.pxAlign),e.stroke=_i(e.stroke||null),e.fill=_i(e.fill||null),e._stroke=e._fill=e._paths=e._focus=null;let t=Ti((3+2*(ui(1,e.width)||1))*1,3),n=e.points=Ui({},{size:t,width:ui(1,.2*t),stroke:e.stroke,space:2*t,paths:jl,_stroke:null,_fill:null},e.points);n.show=_i(n.show),n.filter=_i(n.filter),n.fill=_i(n.fill),n.stroke=_i(n.stroke),n.paths=_i(n.paths),n.pxAlign=e.pxAlign}if(V){let n=function(e,t){if(0==t&&(K||!j.live||2==o))return zi;let n=[],i=Po("tr","u-series",W,W.childNodes[t]);To(i,e.class),e.show||To(i,ro);let a=Po("th",null,i);if(H.show){let e=Lo("u-marker",a);if(t>0){let n=H.width(r,t);n&&(e.style.border=n+"px "+H.dash(r,t)+" "+H.stroke(r,t)),e.style.background=H.fill(r,t)}}let l=Lo(oo,a);for(var s in l.textContent=e.label,t>0&&(H.show||(l.style.color=e.width>0?H.stroke(r,t):H.fill(r,t)),te("click",a,(t=>{if(Ce._lock)return;Te(t);let n=_.indexOf(e);if((t.ctrlKey||t.metaKey)!=j.isolate){let e=_.some(((e,t)=>t>0&&t!=n&&e.show));_.forEach(((t,r)=>{r>0&&Yt(r,e?r==n?J:X:J,!0,Sn.setSeries)}))}else Yt(n,{show:!e.show},!0,Sn.setSeries)}),!1),Pe&&te(go,a,(t=>{Ce._lock||(Te(t),Yt(_.indexOf(e),Gt,!0,Sn.setSeries))}),!1)),Y){let e=Po("td","u-value",i);e.textContent="--",n.push(e)}return[i,n]}(e,t);Z.splice(t,0,n[0]),q.splice(t,0,n[1]),j.values.push(null)}if(Ce.show){F.splice(t,0,null);let n=function(e,t){if(t>0){let n=Ce.points.show(r,t);if(n)return To(n,"u-cursor-pt"),To(n,e.class),zo(n,-10,-10,ie,ae),m.insertBefore(n,Le[t]),n}}(e,t);null!=n&&(Le.splice(t,0,n),Re.splice(t,0,0),ze.splice(t,0,0))}kn("addSeries",t)}r.addSeries=function(e,t){t=null==t?_.length:t,e=1==o?Hl(e,t,Ha,il):Hl(e,t,null,ol),_.splice(t,0,e),De(_[t],t)},r.delSeries=function(e){if(_.splice(e,1),V){j.values.splice(e,1),q.splice(e,1);let t=Z.splice(e,1)[0];ne(null,t.firstChild),t.remove()}Ce.show&&(F.splice(e,1),Le.length>1&&(Le.splice(e,1)[0].remove(),Re.splice(e,1),ze.splice(e,1))),kn("delSeries",e)};const Ie=[!1,!1,!1,!1];function $e(e,t,n,r){let[o,i,a,l]=n,s=t%2,c=0;return 0==s&&(l||i)&&(c=0==t&&!o||2==t&&!a?li(Va.size/3):0),1==s&&(o||a)&&(c=1==t&&!i||3==t&&!l?li(tl.size/2):0),c}const Fe=r.padding=(e.padding||[$e,$e,$e,$e]).map((e=>_i(Xo(e,$e)))),je=r._padding=Fe.map(((e,t)=>e(r,t,Ie,0)));let Ve,He=null,Ue=null;const Be=1==o?_[0].idxs:null;let We,Ye,Ze,qe,Ke,Ge,Qe,Je,Xe,et,tt=null,nt=!1;function rt(e,n){if(t=null==e?[]:e,r.data=r._data=t,2==o){Ve=0;for(let e=1;e<_.length;e++)Ve+=t[e][0].length}else{0==t.length&&(r.data=r._data=t=[[]]),tt=t[0],Ve=tt.length;let e=t;if(2==N){e=t.slice();let n=e[0]=Array(Ve);for(let e=0;e=0,ke=!0,zt()}}function ot(){let e,n;nt=!0,1==o&&(Ve>0?(He=Be[0]=0,Ue=Be[1]=Ve-1,e=t[0][He],n=t[0][Ue],2==N?(e=He,n=Ue):e==n&&(3==N?[e,n]=Yo(e,e,T.log,!1):4==N?[e,n]=Zo(e,e,T.log,!1):T.time?n=e+li(86400/y):[e,n]=Jo(e,n,qo,!0))):(He=Be[0]=e=null,Ue=Be[1]=n=null)),Wt(A,e,n)}function it(e,t,n,r,o,i){var a,l,s,c,u;null!==(a=e)&&void 0!==a||(e=fo),null!==(l=n)&&void 0!==l||(n=Ri),null!==(s=r)&&void 0!==s||(r="butt"),null!==(c=o)&&void 0!==c||(o=fo),null!==(u=i)&&void 0!==u||(i="round"),e!=We&&(h.strokeStyle=We=e),o!=Ye&&(h.fillStyle=Ye=o),t!=Ze&&(h.lineWidth=Ze=t),i!=Ke&&(h.lineJoin=Ke=i),r!=Ge&&(h.lineCap=Ge=r),n!=qe&&h.setLineDash(qe=n)}function at(e,t,n,r){t!=Ye&&(h.fillStyle=Ye=t),e!=Qe&&(h.font=Qe=e),n!=Je&&(h.textAlign=Je=n),r!=Xe&&(h.textBaseline=Xe=r)}function lt(e,t,n,o){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(o.length>0&&e.auto(r,nt)&&(null==t||null==t.min)){let t=Xo(He,0),r=Xo(Ue,o.length-1),a=null==n.min?3==e.distr?function(e,t,n){let r=vi,o=-vi;for(let i=t;i<=n;i++){let t=e[i];null!=t&&t>0&&(to&&(o=t))}return[r,o]}(o,t,r):function(e,t,n,r){let o=vi,i=-vi;if(1==r)o=e[t],i=e[n];else if(-1==r)o=e[n],i=e[t];else for(let a=t;a<=n;a++){let t=e[a];null!=t&&(ti&&(i=t))}return[o,i]}(o,t,r,i):[n.min,n.max];e.min=ci(e.min,n.min=a[0]),e.max=ui(e.max,n.max=a[1])}}r.setData=rt;const st={min:null,max:null};function ct(e,t){let n=t?_[e].points:_[e];n._stroke=n.stroke(r,e),n._fill=n.fill(r,e)}function ut(e,n){let o=n?_[e].points:_[e],{stroke:i,fill:a,clip:l,flags:s,_stroke:c=o._stroke,_fill:u=o._fill,_width:d=o.width}=o._paths;d=Ti(d*Eo,3);let f=null,p=d%2/2;n&&null==u&&(u=d>0?"#fff":c);let m=1==o.pxAlign&&p>0;if(m&&h.translate(p,p),!n){let e=fe-d/2,t=pe-d/2,n=me+d,r=ve+d;f=new Path2D,f.rect(e,t,n,r)}n?ht(c,d,o.dash,o.cap,u,i,a,s,l):function(e,n,o,i,a,l,s,c,u,d,h){let f=!1;0!=u&&S.forEach(((p,m)=>{if(p.series[0]==e){let e,v=_[p.series[1]],g=t[p.series[1]],y=(v._paths||Li).band;Di(y)&&(y=1==p.dir?y[0]:y[1]);let b=null;v.show&&y&&function(e,t,n){for(t=Xo(t,0),n=Xo(n,e.length-1);t<=n;){if(null!=e[t])return!0;t++}return!1}(g,He,Ue)?(b=p.fill(r,m)||l,e=v._paths.clip):y=null,ht(n,o,i,a,b,s,c,u,d,h,e,y),f=!0}})),f||ht(n,o,i,a,l,s,c,u,d,h)}(e,c,d,o.dash,o.cap,u,i,a,s,f,l),m&&h.translate(-p,-p)}const dt=2|dl;function ht(e,t,n,r,o,i,a,l,s,c,u,d){it(e,t,n,r,o),(s||c||d)&&(h.save(),s&&h.clip(s),c&&h.clip(c)),d?(l&dt)==dt?(h.clip(d),u&&h.clip(u),pt(o,a),ft(e,i,t)):2&l?(pt(o,a),h.clip(d),ft(e,i,t)):l&dl&&(h.save(),h.clip(d),u&&h.clip(u),pt(o,a),h.restore(),ft(e,i,t)):(pt(o,a),ft(e,i,t)),(s||c||d)&&h.restore()}function ft(e,t,n){n>0&&(t instanceof Map?t.forEach(((e,t)=>{h.strokeStyle=We=t,h.stroke(e)})):null!=t&&e&&h.stroke(t))}function pt(e,t){t instanceof Map?t.forEach(((e,t)=>{h.fillStyle=Ye=t,h.fill(e)})):null!=t&&e&&h.fill(t)}function mt(e,t,n,r,o,i,a,l,s,c){let u=a%2/2;1==v&&h.translate(u,u),it(l,a,s,c,l),h.beginPath();let d,f,p,m,g=o+(0==r||3==r?-i:i);0==n?(f=o,m=g):(d=o,p=g);for(let v=0;v{if(!n.show)return;let i=x[n.scale];if(null==i.min)return void(n._show&&(t=!1,n._show=!1,yt(!1)));n._show||(t=!1,n._show=!0,yt(!1));let a=n.side,l=a%2,{min:s,max:c}=i,[u,d]=function(e,t,n,o){let i,a=k[e];if(o<=0)i=[0,0];else{let l=a._space=a.space(r,e,t,n,o);i=Gl(t,n,a._incrs=a.incrs(r,e,t,n,o,l),o,l)}return a._found=i}(o,s,c,0==l?ie:ae);if(0==d)return;let h=2==i.distr,f=n._splits=n.splits(r,o,s,c,u,d,h),p=2==i.distr?f.map((e=>tt[e])):f,m=2==i.distr?tt[f[1]]-tt[f[0]]:u,v=n._values=n.values(r,n.filter(r,p,o,d,m),o,d,m);n._rotate=2==a?n.rotate(r,v,o,d):0;let g=n._size;n._size=si(n.size(r,v,o,e)),null!=g&&n._size!=g&&(t=!1)})),t}function gt(e){let t=!0;return Fe.forEach(((n,o)=>{let i=n(r,o,Ie,e);i!=je[o]&&(t=!1),je[o]=i})),t}function yt(e){_.forEach(((t,n)=>{n>0&&(t._paths=null,e&&(1==o?(t.min=null,t.max=null):t.facets.forEach((e=>{e.min=null,e.max=null}))))}))}let _t,bt,wt,kt,xt,St,At,Ct,Et,Mt,Tt,Nt,Ot=!1,Pt=!1,Lt=[];function Rt(){Pt=!1;for(let e=0;e0){_.forEach(((n,i)=>{if(1==o){let o=n.scale,a=L[o];if(null==a)return;let l=e[o];if(0==i){let e=l.range(r,l.min,l.max,o);l.min=e[0],l.max=e[1],He=Bo(l.min,t[0]),Ue=Bo(l.max,t[0]),Ue-He>1&&(t[0][He]l.max&&Ue--),n.min=tt[He],n.max=tt[Ue]}else n.show&&n.auto&<(l,a,n,t[i],n.sorted);n.idxs[0]=He,n.idxs[1]=Ue}else if(i>0&&n.show&&n.auto){let[r,o]=n.facets,a=r.scale,l=o.scale,[s,c]=t[i],u=e[a],d=e[l];null!=u&<(u,L[a],r,s,r.sorted),null!=d&<(d,L[l],o,c,o.sorted),n.min=o.min,n.max=o.max}}));for(let t in e){let n=e[t],o=L[t];if(null==n.from&&(null==o||null==o.min)){let e=n.range(r,n.min==vi?null:n.min,n.max==-vi?null:n.max,t);n.min=e[0],n.max=e[1]}}}for(let t in e){let n=e[t];if(null!=n.from){let o=e[n.from];if(null==o.min)n.min=n.max=null;else{let e=n.range(r,o.min,o.max,t);n.min=e[0],n.max=e[1]}}}let n={},i=!1;for(let t in e){let r=e[t],o=x[t];if(o.min!=r.min||o.max!=r.max){o.min=r.min,o.max=r.max;let e=o.distr;o._min=3==e?fi(o.min):4==e?mi(o.min,o.asinh):o.min,o._max=3==e?fi(o.max):4==e?mi(o.max,o.asinh):o.max,n[t]=i=!0}}if(i){_.forEach(((e,t)=>{2==o?t>0&&n.y&&(e._paths=null):n[e.scale]&&(e._paths=null)}));for(let e in n)_e=!0,kn("setScale",e);Ce.show&&Ce.left>=0&&(be=ke=!0)}for(let t in L)L[t]=null}(),ge=!1),_e&&(!function(){let e=!1,t=0;for(;!e;){t++;let n=vt(t),o=gt(t);e=t==Ae||n&&o,e||(Se(r.width,r.height),ye=!0)}}(),_e=!1),ye){if(Oo(p,co,le),Oo(p,lo,se),Oo(p,io,ie),Oo(p,ao,ae),Oo(m,co,le),Oo(m,lo,se),Oo(m,io,ie),Oo(m,ao,ae),Oo(f,io,re),Oo(f,ao,oe),d.width=li(re*Eo),d.height=li(oe*Eo),k.forEach((e=>{let{_el:t,_show:n,_size:r,_pos:o,side:i}=e;if(null!=t)if(n){let e=i%2==1;Oo(t,e?"left":"top",o-(3===i||0===i?r:0)),Oo(t,e?"width":"height",r),Oo(t,e?"top":"left",e?se:le),Oo(t,e?"height":"width",e?ae:ie),No(t,ro)}else To(t,ro)})),We=Ye=Ze=Ke=Ge=Qe=Je=Xe=qe=null,et=1,ln(!0),le!=ce||se!=ue||ie!=de||ae!=he){yt(!1);let e=ie/de,t=ae/he;if(Ce.show&&!be&&Ce.left>=0){Ce.left*=e,Ce.top*=t,wt&&zo(wt,li(Ce.left),0,ie,ae),kt&&zo(kt,0,li(Ce.top),ie,ae);for(let n=1;n=0&&Ht.width>0){Ht.left*=e,Ht.width*=e,Ht.top*=t,Ht.height*=t;for(let e in un)Oo(Ut,e,Ht[e])}ce=le,ue=se,de=ie,he=ae}kn("setSize"),ye=!1}re>0&&oe>0&&(h.clearRect(0,0,d.width,d.height),kn("drawClear"),E.forEach((e=>e())),kn("draw")),Ht.show&&we&&(Bt(Ht),we=!1),Ce.show&&be&&(on(null,!0,!1),be=!1),j.show&&j.live&&ke&&(nn(),ke=!1),c||(c=!0,r.status=1,kn("ready")),nt=!1,Ot=!1}function It(e,n){let o=x[e];if(null==o.from){if(0==Ve){let t=o.range(r,n.min,n.max,e);n.min=t[0],n.max=t[1]}if(n.min>n.max){let e=n.min;n.min=n.max,n.max=e}if(Ve>1&&null!=n.min&&null!=n.max&&n.max-n.min<1e-16)return;e==A&&2==o.distr&&Ve>0&&(n.min=Bo(n.min,t[0]),n.max=Bo(n.max,t[0]),n.min==n.max&&n.max++),L[e]=n,ge=!0,zt()}}r.batch=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Ot=!0,Pt=t,e(r),Dt(),t&&Lt.length>0&&queueMicrotask(Rt)},r.redraw=(e,t)=>{_e=t||!1,!1!==e?Wt(A,T.min,T.max):zt()},r.setScale=It;let $t=!1;const Ft=Ce.drag;let jt=Ft.x,Vt=Ft.y;Ce.show&&(Ce.x&&(_t=Lo("u-cursor-x",m)),Ce.y&&(bt=Lo("u-cursor-y",m)),0==T.ori?(wt=_t,kt=bt):(wt=bt,kt=_t),Tt=Ce.left,Nt=Ce.top);const Ht=r.select=Ui({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),Ut=Ht.show?Lo("u-select",Ht.over?m:p):null;function Bt(e,t){if(Ht.show){for(let t in e)Ht[t]=e[t],t in un&&Oo(Ut,t,e[t]);!1!==t&&kn("setSelect")}}function Wt(e,t,n){It(e,{min:t,max:n})}function Yt(e,t,n,i){null!=t.focus&&function(e){if(e!=Kt){let t=null==e,n=1!=Oe.alpha;_.forEach(((r,i)=>{if(1==o||i>0){let o=t||0==i||i==e;r._focus=t?null:o,n&&function(e,t){_[e].alpha=t,Ce.show&&Le[e]&&(Le[e].style.opacity=t);V&&Z[e]&&(Z[e].style.opacity=t)}(i,o?1:Oe.alpha)}})),Kt=e,n&&zt()}}(e),null!=t.show&&_.forEach(((n,r)=>{r>0&&(e==r||null==e)&&(n.show=t.show,function(e,t){let n=_[e],r=V?Z[e]:null;n.show?r&&No(r,ro):(r&&To(r,ro),Le.length>1&&zo(Le[e],-10,-10,ie,ae))}(r,t.show),2==o?(Wt(n.facets[0].scale,null,null),Wt(n.facets[1].scale,null,null)):Wt(n.scale,null,null),zt())})),!1!==n&&kn("setSeries",e,t),i&&En("setSeries",r,e,t)}let Zt,qt,Kt;r.setSelect=Bt,r.setSeries=Yt,r.addBand=function(e,t){e.fill=_i(e.fill||null),e.dir=Xo(e.dir,-1),t=null==t?S.length:t,S.splice(t,0,e)},r.setBand=function(e,t){Ui(S[e],t)},r.delBand=function(e){null==e?S.length=0:S.splice(e,1)};const Gt={focus:!0};function Qt(e,t,n){let r=x[t];n&&(e=e/Eo-(1==r.ori?se:le));let o=ie;1==r.ori&&(o=ae,e=o-e),-1==r.dir&&(e=o-e);let i=r._min,a=i+(r._max-i)*(e/o),l=r.distr;return 3==l?di(10,a):4==l?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return ri.sinh(e)*t}(a,r.asinh):a}function Jt(e,t){Oo(Ut,co,Ht.left=e),Oo(Ut,io,Ht.width=t)}function Xt(e,t){Oo(Ut,lo,Ht.top=e),Oo(Ut,ao,Ht.height=t)}V&&Pe&&te(yo,U,(e=>{Ce._lock||(Te(e),null!=Kt&&Yt(null,Gt,!0,Sn.setSeries))})),r.valToIdx=e=>Bo(e,t[0]),r.posToIdx=function(e,n){return Bo(Qt(e,A,n),t[0],He,Ue)},r.posToVal=Qt,r.valToPos=(e,t,n)=>0==x[t].ori?a(e,x[t],n?me:ie,n?fe:0):l(e,x[t],n?ve:ae,n?pe:0),r.setCursor=(e,t,n)=>{Tt=e.left,Nt=e.top,on(null,t,n)};let en=0==T.ori?Jt:Xt,tn=1==T.ori?Jt:Xt;function nn(e,t){null!=e&&(e.idxs?e.idxs.forEach(((e,t)=>{F[t]=e})):void 0!==e.idx&&F.fill(e.idx),j.idx=F[0]);for(let n=0;n<_.length;n++)(n>0||1==o&&!K)&&rn(n,F[n]);V&&j.live&&function(){if(V&&j.live)for(let e=2==o?1:0;e<_.length;e++){if(0==e&&K)continue;let t=j.values[e],n=0;for(let r in t)q[e][n++].firstChild.nodeValue=t[r]}}(),ke=!1,!1!==t&&kn("setLegend")}function rn(e,n){var o;let i,a=_[e],l=0==e&&2==N?tt:t[e];K?i=null!==(o=a.values(r,e,n))&&void 0!==o?o:G:(i=a.value(r,null==n?null:l[n],e,n),i=null==i?G:{_:i}),j.values[e]=i}function on(e,n,i){let a;Et=Tt,Mt=Nt,[Tt,Nt]=Ce.move(r,Tt,Nt),Ce.left=Tt,Ce.top=Nt,Ce.show&&(wt&&zo(wt,li(Tt),0,ie,ae),kt&&zo(kt,0,li(Nt),ie,ae));let l=He>Ue;Zt=vi;let s=0==T.ori?ie:ae,c=1==T.ori?ie:ae;if(Tt<0||0==Ve||l){a=Ce.idx=null;for(let e=0;e<_.length;e++)e>0&&Le.length>1&&zo(Le[e],-10,-10,ie,ae);Pe&&Yt(null,Gt,!0,null==e&&Sn.setSeries),j.live&&(F.fill(a),ke=!0)}else{let e,n,i;1==o&&(e=0==T.ori?Tt:Nt,n=Qt(e,A),a=Ce.idx=Bo(n,t[0],He,Ue),i=O(t[0][a],T,s,0));for(let l=2==o?1:0;l<_.length;l++){let e=_[l],u=F[l],d=null==u?null:1==o?t[l][u]:t[l][1][u],h=Ce.dataIdx(r,l,a,n),f=null==h?null:1==o?t[l][h]:t[l][1][h];ke=ke||f!=d||h!=u,F[l]=h;let p=h==a?i:O(1==o?t[0][h]:t[l][0][h],T,s,0);if(l>0&&e.show){let t,n,i=null==f?-10:P(f,1==o?x[e.scale]:x[e.facets[1].scale],c,0);if(Pe&&null!=f){let t=1==T.ori?Tt:Nt,n=ii(Oe.dist(r,l,h,i,t));if(n=0?1:-1;i==(f>=0?1:-1)&&(1==i?1==r?f>=o:f<=o:1==r?f<=o:f>=o)&&(Zt=n,qt=l)}else Zt=n,qt=l}}if(0==T.ori?(t=p,n=i):(t=i,n=p),ke&&Le.length>1){Io(Le[l],Ce.points.fill(r,l),Ce.points.stroke(r,l));let e,o,i,a,s=!0,c=Ce.points.bbox;if(null!=c){s=!1;let t=c(r,l);i=t.left,a=t.top,e=t.width,o=t.height}else i=t,a=n,e=o=Ce.points.size(r,l);Fo(Le[l],e,o,s),Re[l]=i,ze[l]=a,zo(Le[l],Ei(i,1),Ei(a,1),ie,ae)}}}}if(Ht.show&&$t)if(null!=e){let[t,n]=Sn.scales,[r,o]=Sn.match,[i,a]=e.cursor.sync.scales,l=e.cursor.drag;if(jt=l._x,Vt=l._y,jt||Vt){let l,u,d,h,f,{left:p,top:m,width:v,height:g}=e.select,y=e.scales[t].ori,_=e.posToVal,b=null!=t&&r(t,i),w=null!=n&&o(n,a);b&&jt?(0==y?(l=p,u=v):(l=m,u=g),d=x[t],h=O(_(l,i),d,s,0),f=O(_(l+u,i),d,s,0),en(ci(h,f),ii(f-h))):en(0,s),w&&Vt?(1==y?(l=p,u=v):(l=m,u=g),d=x[n],h=P(_(l,a),d,c,0),f=P(_(l+u,a),d,c,0),tn(ci(h,f),ii(f-h))):tn(0,c)}else dn()}else{let e=ii(Et-xt),t=ii(Mt-St);if(1==T.ori){let n=e;e=t,t=n}jt=Ft.x&&e>=Ft.dist,Vt=Ft.y&&t>=Ft.dist;let n,r,o=Ft.uni;null!=o?jt&&Vt&&(jt=e>=o,Vt=t>=o,jt||Vt||(t>e?Vt=!0:jt=!0)):Ft.x&&Ft.y&&(jt||Vt)&&(jt=Vt=!0),jt&&(0==T.ori?(n=At,r=Tt):(n=Ct,r=Nt),en(ci(n,r),ii(r-n)),Vt||tn(0,c)),Vt&&(1==T.ori?(n=At,r=Tt):(n=Ct,r=Nt),tn(ci(n,r),ii(r-n)),jt||en(0,s)),jt||Vt||(en(0,0),tn(0,0))}if(Ft._x=jt,Ft._y=Vt,null==e){if(i){if(null!=An){let[e,t]=Sn.scales;Sn.values[0]=null!=e?Qt(0==T.ori?Tt:Nt,e):null,Sn.values[1]=null!=t?Qt(1==T.ori?Tt:Nt,t):null}En(po,r,Tt,Nt,ie,ae,a)}if(Pe){let e=i&&Sn.setSeries,t=Oe.prox;null==Kt?Zt<=t&&Yt(qt,Gt,!0,e):Zt>t?Yt(null,Gt,!0,e):qt!=Kt&&Yt(qt,Gt,!0,e)}}ke&&(j.idx=a,nn()),!1!==n&&kn("setCursor")}r.setLegend=nn;let an=null;function ln(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?an=null:(an=m.getBoundingClientRect(),kn("syncRect",an))}function sn(e,t,n,r,o,i,a){Ce._lock||$t&&null!=e&&0==e.movementX&&0==e.movementY||(cn(e,t,n,r,o,i,a,!1,null!=e),null!=e?on(null,!0,!0):on(t,!0,!1))}function cn(e,t,n,o,i,a,l,c,u){if(null==an&&ln(!1),Te(e),null!=e)n=e.clientX-an.left,o=e.clientY-an.top;else{if(n<0||o<0)return Tt=-10,void(Nt=-10);let[e,r]=Sn.scales,l=t.cursor.sync,[c,u]=l.values,[d,h]=l.scales,[f,p]=Sn.match,m=t.axes[0].side%2==1,v=0==T.ori?ie:ae,g=1==T.ori?ie:ae,y=m?a:i,_=m?i:a,b=m?o:n,w=m?n:o;if(n=null!=d?f(e,d)?s(c,x[e],v,0):-10:v*(b/y),o=null!=h?p(r,h)?s(u,x[r],g,0):-10:g*(w/_),1==T.ori){let e=n;n=o,o=e}}u&&((n<=1||n>=ie-1)&&(n=Ci(n,ie)),(o<=1||o>=ae-1)&&(o=Ci(o,ae))),c?(xt=n,St=o,[At,Ct]=Ce.move(r,n,o)):(Tt=n,Nt=o)}Object.defineProperty(r,"rect",{get:()=>(null==an&&ln(!1),an)});const un={width:0,height:0,left:0,top:0};function dn(){Bt(un,!1)}let hn,fn,pn,mn;function vn(e,t,n,o,i,a,l){$t=!0,jt=Vt=Ft._x=Ft._y=!1,cn(e,t,n,o,i,a,0,!0,!1),null!=e&&(te(vo,So,gn,!1),En(mo,r,At,Ct,ie,ae,null));let{left:s,top:c,width:u,height:d}=Ht;hn=s,fn=c,pn=u,mn=d,dn()}function gn(e,t,n,o,i,a,l){$t=Ft._x=Ft._y=!1,cn(e,t,n,o,i,a,0,!1,!0);let{left:s,top:c,width:u,height:d}=Ht,h=u>0||d>0,f=hn!=s||fn!=c||pn!=u||mn!=d;if(h&&f&&Bt(Ht),Ft.setScale&&h&&f){let e=s,t=u,n=c,r=d;if(1==T.ori&&(e=c,t=d,n=s,r=u),jt&&Wt(A,Qt(e,A),Qt(e+t,A)),Vt)for(let o in x){let e=x[o];o!=A&&null==e.from&&e.min!=vi&&Wt(o,Qt(n+r,o),Qt(n,o))}dn()}else Ce.lock&&(Ce._lock=!Ce._lock,Ce._lock||on(null,!0,!1));null!=e&&(ne(vo,So),En(vo,r,Tt,Nt,ie,ae,null))}function yn(e,t,n,o,i,a,l){Ce._lock||(Te(e),ot(),dn(),null!=e&&En(_o,r,Tt,Nt,ie,ae,null))}function _n(){k.forEach(Jl),xe(r.width,r.height,!0)}Ho(wo,Ao,_n);const bn={};bn.mousedown=vn,bn.mousemove=sn,bn.mouseup=gn,bn.dblclick=yn,bn.setSeries=(e,t,n,o)=>{-1!=(n=(0,Sn.match[2])(r,t,n))&&Yt(n,o,!0,!1)},Ce.show&&(te(mo,m,vn),te(po,m,sn),te(go,m,(e=>{Te(e),ln(!1)})),te(yo,m,(function(e,t,n,r,o,i,a){if(Ce._lock)return;Te(e);let l=$t;if($t){let e,t,n=!0,r=!0,o=10;0==T.ori?(e=jt,t=Vt):(e=Vt,t=jt),e&&t&&(n=Tt<=o||Tt>=ie-o,r=Nt<=o||Nt>=ae-o),e&&n&&(Tt=Tt{e.call(null,r,t,n)}))}(e.plugins||[]).forEach((e=>{for(let t in e.hooks)wn[t]=(wn[t]||[]).concat(e.hooks[t])}));const xn=(e,t,n)=>n,Sn=Ui({key:null,setSeries:!1,filters:{pub:xi,sub:xi},scales:[A,_[1]?_[1].scale:null],match:[Si,Si,xn],values:[null,null]},Ce.sync);2==Sn.match.length&&Sn.match.push(xn),Ce.sync=Sn;const An=Sn.key,Cn=ul(An);function En(e,t,n,r,o,i,a){Sn.filters.pub(e,t,n,r,o,i,a)&&Cn.pub(e,t,n,r,o,i,a)}function Mn(){kn("init",e,t),rt(t||e.data,!1),L[A]?It(A,L[A]):ot(),we=Ht.show&&(Ht.width>0||Ht.height>0),be=ke=!0,xe(e.width,e.height)}return Cn.sub(r),r.pub=function(e,t,n,r,o,i,a){Sn.filters.sub(e,t,n,r,o,i,a)&&bn[e](null,t,n,r,o,i,a)},r.destroy=function(){var e;Cn.unsub(r),Il.delete(r),ee.clear(),Uo(wo,Ao,_n),u.remove(),null===(e=U)||void 0===e||e.remove(),kn("destroy")},_.forEach(De),k.forEach((function(e,t){if(e._show=e.show,e.show){let n=e.side%2,o=x[e.scale];null==o&&(e.scale=n?_[1].scale:A,o=x[e.scale]);let i=o.time;e.size=_i(e.size),e.space=_i(e.space),e.rotate=_i(e.rotate),Di(e.incrs)&&e.incrs.forEach((e=>{!Ni.has(e)&&Ni.set(e,Oi(e))})),e.incrs=_i(e.incrs||(2==o.distr?aa:i?1==y?_a:ka:la)),e.splits=_i(e.splits||(i&&1==o.distr?D:3==o.distr?Wa:4==o.distr?Ya:Ba)),e.stroke=_i(e.stroke),e.grid.stroke=_i(e.grid.stroke),e.ticks.stroke=_i(e.ticks.stroke),e.border.stroke=_i(e.border.stroke);let a=e.values;e.values=Di(a)&&!Di(a[0])?_i(a):i?Di(a)?Ca(R,Aa(a,z)):$i(a)?function(e,t){let n=ea(t);return(t,r,o,i,a)=>r.map((t=>n(e(t))))}(R,a):a||I:a||Ua,e.filter=_i(e.filter||(o.distr>=3&&10==o.log?Ja:3==o.distr&&2==o.log?Xa:wi)),e.font=Ql(e.font),e.labelFont=Ql(e.labelFont),e._size=e.size(r,null,t,0),e._space=e._rotate=e._incrs=e._found=e._splits=e._values=null,e._size>0&&(Ie[t]=!0,e._el=Lo("u-axis",f))}})),n?n instanceof HTMLElement?(n.appendChild(u),Mn()):n(r,Mn):Mn(),r}Xl.assign=Ui,Xl.fmtNum=ni,Xl.rangeNum=Jo,Xl.rangeLog=Yo,Xl.rangeAsinh=Zo,Xl.orient=hl,Xl.pxRatio=Eo,Xl.join=function(e,t){if(function(e){let t=e[0][0],n=t.length;for(let r=1;r1&&void 0!==arguments[1]?arguments[1]:100;const n=e.length;if(n<=1)return!0;let r=0,o=n-1;for(;r<=o&&null==e[r];)r++;for(;o>=r&&null==e[o];)o--;if(o<=r)return!0;const i=ui(1,ai((o-r+1)/t));for(let a=e[r],l=r+i;l<=o;l+=i){const t=e[l];if(null!=t){if(t<=a)return!1;a=t}}return!0}(t[0])||(t=function(e){let t=e[0],n=t.length,r=Array(n);for(let i=0;it[e]-t[n]));let o=[];for(let i=0;ie-t))],o=r[0].length,i=new Map;for(let a=0;ahl(e,i,((s,c,u,d,h,f,p,m,v,g,y)=>{let _=s.pxRound,{left:b,width:w}=e.bbox,k=e=>_(f(e,d,g,m)),x=e=>_(p(e,h,y,v)),S=0==d.ori?kl:xl;const A={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:dl},C=A.stroke,E=d.dir*(0==d.ori?1:-1);a=Wo(u,a,l,1),l=Wo(u,a,l,-1);let M=x(u[1==E?a:l]),T=k(c[1==E?a:l]),N=T,O=T;o&&-1==t&&(O=b,S(C,O,M)),S(C,T,M);for(let e=1==E?a:l;e>=a&&e<=l;e+=E){let n=u[e];if(null==n)continue;let r=k(c[e]),o=x(n);1==t?S(C,r,M):S(C,N,o),S(C,r,o),M=o,N=r}let P=N;o&&1==t&&(P=b+w,S(C,P,M));let[L,R]=fl(e,i);if(null!=s.fill||0!=L){let t=A.fill=new Path2D(C),n=x(s.fillTo(e,i,s.min,s.max,L));S(t,P,n),S(t,O,n)}if(!s.spanGaps){let o=[];o.push(...gl(c,u,a,l,E,k,r));let h=s.width*Eo/2,f=n||1==t?h:-h,p=n||-1==t?-h:h;o.forEach((e=>{e[0]+=f,e[1]+=p})),A.gaps=o=s.gaps(e,i,a,l,o),A.clip=vl(o,d.ori,m,v,g,y)}return 0!=R&&(A.band=2==R?[ml(e,i,a,l,C,-1),ml(e,i,a,l,C,1)]:ml(e,i,a,l,C,R)),A}))},e.bars=function(e){const t=Xo((e=e||Li).size,[.6,vi,1]),n=e.align||0,r=e.gap||0;let o=e.radius;o=null==o?[0,0]:"number"==typeof o?[o,0]:o;const i=_i(o),a=1-t[0],l=Xo(t[1],vi),s=Xo(t[2],1),c=Xo(e.disp,Li),u=Xo(e.each,(e=>{})),{fill:d,stroke:h}=c;return(e,t,o,f)=>hl(e,t,((p,m,v,g,y,_,b,w,k,x,S)=>{let A,C,E=p.pxRound,M=n,T=r*Eo,N=l*Eo,O=s*Eo;0==g.ori?[A,C]=i(e,t):[C,A]=i(e,t);const P=g.dir*(0==g.ori?1:-1);let L,R,z,D=0==g.ori?Sl:Al,I=0==g.ori?u:(e,t,n,r,o,i,a)=>{u(e,t,n,o,r,a,i)},$=Xo(e.bands,Ri).find((e=>e.series[0]==t)),F=null!=$?$.dir:0,j=p.fillTo(e,t,p.min,p.max,F),V=E(b(j,y,S,k)),H=x,U=E(p.width*Eo),B=!1,W=null,Y=null,Z=null,q=null;null==d||0!=U&&null==h||(B=!0,W=d.values(e,t,o,f),Y=new Map,new Set(W).forEach((e=>{null!=e&&Y.set(e,new Path2D)})),U>0&&(Z=h.values(e,t,o,f),q=new Map,new Set(Z).forEach((e=>{null!=e&&q.set(e,new Path2D)}))));let{x0:K,size:G}=c;if(null!=K&&null!=G){M=1,m=K.values(e,t,o,f),2==K.unit&&(m=m.map((t=>e.posToVal(w+t*x,g.key,!0))));let n=G.values(e,t,o,f);R=2==G.unit?n[0]*x:_(n[0],g,x,w)-_(0,g,x,w),H=zl(m,v,_,g,x,w,H),z=H-R+T}else H=zl(m,v,_,g,x,w,H),z=H*a+T,R=H-z;z<1&&(z=0),U>=R/2&&(U=0),z<5&&(E=bi);let Q=z>0;R=E(yi(H-z-(Q?U:0),O,N)),L=(0==M?R/2:M==P?0:R)-M*P*((0==M?T/2:0)+(Q?U/2:0));const J={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},X=B?null:new Path2D;let ee=null;if(null!=$)ee=e.data[$.series[1]];else{let{y0:n,y1:r}=c;null!=n&&null!=r&&(v=r.values(e,t,o,f),ee=n.values(e,t,o,f))}let te=A*R,ne=C*R;for(let n=1==P?o:f;n>=o&&n<=f;n+=P){let r=v[n];if(null==r)continue;if(null!=ee){var re;let e=null!==(re=ee[n])&&void 0!==re?re:0;if(r-e==0)continue;V=b(e,y,S,k)}let o=_(2!=g.distr||null!=c?m[n]:n,g,x,w),i=b(Xo(r,j),y,S,k),a=E(o-L),l=E(ui(i,V)),s=E(ci(i,V)),u=l-s;if(null!=r){let o=r<0?ne:te,i=r<0?te:ne;B?(U>0&&null!=Z[n]&&D(q.get(Z[n]),a,s+ai(U/2),R,ui(0,u-U),o,i),null!=W[n]&&D(Y.get(W[n]),a,s+ai(U/2),R,ui(0,u-U),o,i)):D(X,a,s+ai(U/2),R,ui(0,u-U),o,i),I(e,t,n,a-U/2,s,R+U,u)}}if(U>0)J.stroke=B?q:X;else if(!B){var oe;J._fill=0==p.width?p._fill:null!==(oe=p._stroke)&&void 0!==oe?oe:p._fill,J.width=0}return J.fill=B?Y:X,J}))},e.spline=function(e){return function(e,t){const n=Xo(null===t||void 0===t?void 0:t.alignGaps,0);return(t,r,o,i)=>hl(t,r,((a,l,s,c,u,d,h,f,p,m,v)=>{let g,y,_,b=a.pxRound,w=e=>b(d(e,c,m,f)),k=e=>b(h(e,u,v,p));0==c.ori?(g=bl,_=kl,y=Ml):(g=wl,_=xl,y=Tl);const x=c.dir*(0==c.ori?1:-1);o=Wo(s,o,i,1),i=Wo(s,o,i,-1);let S=w(l[1==x?o:i]),A=S,C=[],E=[];for(let e=1==x?o:i;e>=o&&e<=i;e+=x)if(null!=s[e]){let t=w(l[e]);C.push(A=t),E.push(k(s[e]))}const M={stroke:e(C,E,g,_,y,b),fill:null,clip:null,band:null,gaps:null,flags:dl},T=M.stroke;let[N,O]=fl(t,r);if(null!=a.fill||0!=N){let e=M.fill=new Path2D(T),n=k(a.fillTo(t,r,a.min,a.max,N));_(e,A,n),_(e,S,n)}if(!a.spanGaps){let e=[];e.push(...gl(l,s,o,i,x,w,n)),M.gaps=e=a.gaps(t,r,o,i,e),M.clip=vl(e,c.ori,f,p,m,v)}return 0!=O&&(M.band=2==O?[ml(t,r,o,i,T,-1),ml(t,r,o,i,T,1)]:ml(t,r,o,i,T,O)),M}))}(Dl,e)}}((e,t,n)=>{const r=[];for(let o=0;oMath.round(e))).join(", "))}r.map((e=>"rgb(".concat(e,")")))})([246,226,219],[127,39,4],16);function es(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function ts(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function ns(e){return ns="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ns(e)}function rs(e){var t=function(e,t){if("object"!=ns(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ns(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ns(t)?t:String(t)}function os(e,t,n){return(t=rs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function is(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let as={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};function ls(e){as=e}const ss=/[&<>"']/,cs=new RegExp(ss.source,"g"),us=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ds=new RegExp(us.source,"g"),hs={"&":"&","<":"<",">":">",'"':""","'":"'"},fs=e=>hs[e];function ps(e,t){if(t){if(ss.test(e))return e.replace(cs,fs)}else if(us.test(e))return e.replace(ds,fs);return e}const ms=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function vs(e){return e.replace(ms,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const gs=/(^|[^\[])\^/g;function ys(e,t){e="string"===typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(gs,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const _s=/[^\w:]/g,bs=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ws(e,t,n){if(e){let e;try{e=decodeURIComponent(vs(n)).replace(_s,"").toLowerCase()}catch(Au){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!bs.test(n)&&(n=function(e,t){ks[" "+e]||(xs.test(e)?ks[" "+e]=e+"/":ks[" "+e]=Ms(e,"/",!0));e=ks[" "+e];const n=-1===e.indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(Ss,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(As,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(Au){return null}return n}const ks={},xs=/^[^:]+:\/*[^/]*$/,Ss=/^([^:]+:)[\s\S]*$/,As=/^([^:]+:\/*[^/]*)[\s\S]*$/;const Cs={exec:function(){}};function Es(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let r=!1,o=t;for(;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"})).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Ms(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=Ms(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(e);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:r,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,o,i,a,l,s,c,u,d,h,f,p=t[1].trim();const m=p.length>1,v={type:"list",raw:"",ordered:m,start:m?+p.slice(0,-1):"",loose:!1,items:[]};p=m?"\\d{1,9}\\".concat(p.slice(-1)):"\\".concat(p),this.options.pedantic&&(p=m?p:"[*+-]");const g=new RegExp("^( {0,3}".concat(p,")((?:[\t ][^\\n]*)?(?:\\n|$))"));for(;e&&(f=!1,t=g.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),u=e.split("\n",1)[0],this.options.pedantic?(i=2,h=c.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,h=c.slice(i),i+=t[1].length),l=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),f=!0),!f){const t=new RegExp("^ {0,".concat(Math.min(3,i-1),"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))")),r=new RegExp("^ {0,".concat(Math.min(3,i-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)")),o=new RegExp("^ {0,".concat(Math.min(3,i-1),"}(?:```|~~~)")),a=new RegExp("^ {0,".concat(Math.min(3,i-1),"}#"));for(;e&&(d=e.split("\n",1)[0],u=d,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!o.test(u))&&!a.test(u)&&!t.test(u)&&!r.test(e);){if(u.search(/[^ ]/)>=i||!u.trim())h+="\n"+u.slice(i);else{if(l)break;if(c.search(/[^ ]/)>=4)break;if(o.test(c))break;if(a.test(c))break;if(r.test(c))break;h+="\n"+u}l||u.trim()||(l=!0),n+=d+"\n",e=e.substring(d.length+1),c=u.slice(i)}}v.loose||(s?v.loose=!0:/\n *\n *$/.test(n)&&(s=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(h),r&&(o="[ ] "!==r[0],h=h.replace(/^\[[ xX]\] +/,""))),v.items.push({type:"list_item",raw:n,task:!!r,checked:o,loose:!1,text:h}),v.raw+=n}v.items[v.items.length-1].raw=n.trimRight(),v.items[v.items.length-1].text=h.trimRight(),v.raw=v.raw.trimRight();const y=v.items.length;for(a=0;a"space"===e.type)),t=e.length>0&&e.some((e=>/\n.*\n/.test(e.raw)));v.loose=t}if(v.loose)for(a=0;a$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:Es(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,o,i,a=e.align.length;for(n=0;n({text:e})));for(a=e.header.length,r=0;r/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):ps(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^$/.test(e))return;const t=Ms(e.slice(0,-1),"\\");if((e.length-t.length)%2===0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,o=0;for(;o-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^$/.test(e)?n.slice(1):n.slice(1,-1)),Ts(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return Ts(n,e,n[0],this.lexer)}}emStrong(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(r[1]||r[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const n=r[0].length-1;let o,i,a=n,l=0;const s="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(s.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=s.exec(t));){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(i=o.length,r[3]||r[4]){a+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){l+=i;continue}if(a-=i,a>0)continue;i=Math.min(i,i+a+l);const t=e.slice(0,n+r.index+i+1);if(Math.min(n,i)%2){const e=t.slice(1,-1);return{type:"em",raw:t,text:e,tokens:this.lexer.inlineTokens(e)}}const s=t.slice(2,-2);return{type:"strong",raw:t,text:s,tokens:this.lexer.inlineTokens(s)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=ps(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=ps(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=ps(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=ps(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=ps(n[0]),r="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):ps(n[0]):n[0]:ps(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const Os={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Cs,lheading:/^((?:(?!^bull ).|\n(?!\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Os.def=ys(Os.def).replace("label",Os._label).replace("title",Os._title).getRegex(),Os.bullet=/(?:[*+-]|\d{1,9}[.)])/,Os.listItemStart=ys(/^( *)(bull) */).replace("bull",Os.bullet).getRegex(),Os.list=ys(Os.list).replace(/bull/g,Os.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Os.def.source+")").getRegex(),Os._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Os._comment=/|$)/,Os.html=ys(Os.html,"i").replace("comment",Os._comment).replace("tag",Os._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Os.lheading=ys(Os.lheading).replace(/bull/g,Os.bullet).getRegex(),Os.paragraph=ys(Os._paragraph).replace("hr",Os.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Os._tag).getRegex(),Os.blockquote=ys(Os.blockquote).replace("paragraph",Os.paragraph).getRegex(),Os.normal={...Os},Os.gfm={...Os.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},Os.gfm.table=ys(Os.gfm.table).replace("hr",Os.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Os._tag).getRegex(),Os.gfm.paragraph=ys(Os._paragraph).replace("hr",Os.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Os.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Os._tag).getRegex(),Os.pedantic={...Os.normal,html:ys("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Os._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Cs,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ys(Os.normal._paragraph).replace("hr",Os.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Os.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const Ps={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Cs,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Cs,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}Ps._punctuation="\\p{P}$+<=>`^|~",Ps.punctuation=ys(Ps.punctuation,"u").replace(/punctuation/g,Ps._punctuation).getRegex(),Ps.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Ps.anyPunctuation=/\\[punct]/g,Ps._escapes=/\\([punct])/g,Ps._comment=ys(Os._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Ps.emStrong.lDelim=ys(Ps.emStrong.lDelim,"u").replace(/punct/g,Ps._punctuation).getRegex(),Ps.emStrong.rDelimAst=ys(Ps.emStrong.rDelimAst,"gu").replace(/punct/g,Ps._punctuation).getRegex(),Ps.emStrong.rDelimUnd=ys(Ps.emStrong.rDelimUnd,"gu").replace(/punct/g,Ps._punctuation).getRegex(),Ps.anyPunctuation=ys(Ps.anyPunctuation,"gu").replace(/punct/g,Ps._punctuation).getRegex(),Ps._escapes=ys(Ps._escapes,"gu").replace(/punct/g,Ps._punctuation).getRegex(),Ps._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ps._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Ps.autolink=ys(Ps.autolink).replace("scheme",Ps._scheme).replace("email",Ps._email).getRegex(),Ps._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ps.tag=ys(Ps.tag).replace("comment",Ps._comment).replace("attribute",Ps._attribute).getRegex(),Ps._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ps._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Ps._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ps.link=ys(Ps.link).replace("label",Ps._label).replace("href",Ps._href).replace("title",Ps._title).getRegex(),Ps.reflink=ys(Ps.reflink).replace("label",Ps._label).replace("ref",Os._label).getRegex(),Ps.nolink=ys(Ps.nolink).replace("ref",Os._label).getRegex(),Ps.reflinkSearch=ys(Ps.reflinkSearch,"g").replace("reflink",Ps.reflink).replace("nolink",Ps.nolink).getRegex(),Ps.normal={...Ps},Ps.pedantic={...Ps.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:ys(/^!?\[(label)\]\((.*?)\)/).replace("label",Ps._label).getRegex(),reflink:ys(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ps._label).getRegex()},Ps.gfm={...Ps.normal,escape:ys(Ps.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\1&&void 0!==arguments[1]?arguments[1]:[];for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,n)=>t+" ".repeat(n.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((n=>!!(t=n.call({lexer:this},e,i))&&(e=e.substring(t.raw.length),i.push(t),!0)))))if(t=this.tokenizer.space(e))e=e.substring(t.raw.length),1===t.raw.length&&i.length>0?i[i.length-1].raw+="\n":i.push(t);else if(t=this.tokenizer.code(e))e=e.substring(t.raw.length),n=i[i.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?i.push(t):(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.fences(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.heading(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.hr(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.blockquote(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.list(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.html(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.def(e))e=e.substring(t.raw.length),n=i[i.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title}):(n.raw+="\n"+t.raw,n.text+="\n"+t.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.table(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.lheading(e))e=e.substring(t.raw.length),i.push(t);else{if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let o;this.options.extensions.startBlock.forEach((function(e){o=e.call({lexer:this},n),"number"===typeof o&&o>=0&&(t=Math.min(t,o))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(t=this.tokenizer.paragraph(r)))n=i[i.length-1],o&&"paragraph"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):i.push(t),o=r.length!==e.length,e=e.substring(t.raw.length);else if(t=this.tokenizer.text(e))e=e.substring(t.raw.length),n=i[i.length-1],n&&"text"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):i.push(t);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,i}inline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e){let t,n,r,o,i,a,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(s));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(s));)s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.anyPunctuation.exec(s));)s=s.slice(0,o.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(i||(a=""),i=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((n=>!!(t=n.call({lexer:this},e,l))&&(e=e.substring(t.raw.length),l.push(t),!0)))))if(t=this.tokenizer.escape(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.tag(e))e=e.substring(t.raw.length),n=l[l.length-1],n&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):l.push(t);else if(t=this.tokenizer.link(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(t.raw.length),n=l[l.length-1],n&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):l.push(t);else if(t=this.tokenizer.emStrong(e,s,a))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.codespan(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.br(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.del(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.autolink(e,Rs))e=e.substring(t.raw.length),l.push(t);else if(this.state.inLink||!(t=this.tokenizer.url(e,Rs))){if(r=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let o;this.options.extensions.startInline.forEach((function(e){o=e.call({lexer:this},n),"number"===typeof o&&o>=0&&(t=Math.min(t,o))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(t=this.tokenizer.inlineText(r,Ls))e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(a=t.raw.slice(-1)),i=!0,n=l[l.length-1],n&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):l.push(t);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(t.raw.length),l.push(t);return l}}class Ds{constructor(e){this.options=e||as}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'
'+(n?e:ps(e,!0))+"
\n":"
"+(n?e:ps(e,!0))+"
\n"}blockquote(e){return"
\n".concat(e,"
\n")}html(e,t){return e}heading(e,t,n,r){if(this.options.headerIds){const o=this.options.headerPrefix+r.slug(n);return"').concat(e,"\n")}return"").concat(e,"\n")}hr(){return this.options.xhtml?"
\n":"
\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"}listitem(e){return"
  • ".concat(e,"
  • \n")}checkbox(e){return" "}paragraph(e){return"

    ".concat(e,"

    \n")}table(e,t){return t&&(t="".concat(t,"")),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return"\n".concat(e,"\n")}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<".concat(n,' align="').concat(t.align,'">'):"<".concat(n,">"))+e+"\n")}strong(e){return"".concat(e,"")}em(e){return"".concat(e,"")}codespan(e){return"".concat(e,"")}br(){return this.options.xhtml?"
    ":"
    "}del(e){return"".concat(e,"")}link(e,t,n){if(null===(e=ws(this.options.sanitize,this.options.baseUrl,e)))return n;let r='",r}image(e,t,n){if(null===(e=ws(this.options.sanitize,this.options.baseUrl,e)))return n;let r='').concat(n,'":">",r}text(e){return e}}class Is{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class $s{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class Fs{constructor(e){this.options=e||as,this.options.renderer=this.options.renderer||new Ds,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Is,this.slugger=new $s}static parse(e,t){return new Fs(t).parse(e)}static parseInline(e,t){return new Fs(t).parseInline(e)}parse(e){let t,n,r,o,i,a,l,s,c,u,d,h,f,p,m,v,g,y,_,b=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],w="";const k=e.length;for(t=0;t0&&"paragraph"===m.tokens[0].type?(m.tokens[0].text=y+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=y+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:y}):p+=y),p+=this.parse(m.tokens,f),c+=this.renderer.listitem(p,g,v);w+=this.renderer.list(c,d,h);continue;case"html":w+=this.renderer.html(u.text,u.block);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(c=u.tokens?this.parseInline(u.tokens):u.text;t+1{"function"===typeof r&&(o=r,r=null);const i={...r};r={...this.defaults,...i};const a=ts(this,Hs,Bs).call(this,r.silent,r.async,o);if("undefined"===typeof n||null===n)return a(new Error("marked(): input parameter is undefined or null"));if("string"!==typeof n)return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(function(e,t){e&&!e.silent&&(t&&console.warn("marked(): callback is deprecated since version 5.0.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/using_pro#async"),(e.sanitize||e.sanitizer)&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options"),(e.highlight||"language-"!==e.langPrefix)&&console.warn("marked(): highlight and langPrefix parameters are deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-highlight."),e.mangle&&console.warn("marked(): mangle parameter is enabled by default, but is deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-mangle, or disable by setting `{mangle: false}`."),e.baseUrl&&console.warn("marked(): baseUrl parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-base-url."),e.smartypants&&console.warn("marked(): smartypants parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-smartypants."),e.xhtml&&console.warn("marked(): xhtml parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-xhtml."),(e.headerIds||e.headerPrefix)&&console.warn("marked(): headerIds and headerPrefix parameters enabled by default, but are deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-gfm-heading-id, or disable by setting `{headerIds: false}`."))}(r,o),r.hooks&&(r.hooks.options=r),o){const i=r.highlight;let l;try{r.hooks&&(n=r.hooks.preprocess(n)),l=e(n,r)}catch(Au){return a(Au)}const s=e=>{let n;if(!e)try{r.walkTokens&&this.walkTokens(l,r.walkTokens),n=t(l,r),r.hooks&&(n=r.hooks.postprocess(n))}catch(Au){e=Au}return r.highlight=i,e?a(e):o(null,n)};if(!i||i.length<3)return s();if(delete r.highlight,!l.length)return s();let c=0;return this.walkTokens(l,(e=>{"code"===e.type&&(c++,setTimeout((()=>{i(e.text,e.lang,((t,n)=>{if(t)return s(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),c--,0===c&&s()}))}),0))})),void(0===c&&s())}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then((t=>e(t,r))).then((e=>r.walkTokens?Promise.all(this.walkTokens(e,r.walkTokens)).then((()=>e)):e)).then((e=>t(e,r))).then((e=>r.hooks?r.hooks.postprocess(e):e)).catch(a);try{r.hooks&&(n=r.hooks.preprocess(n));const o=e(n,r);r.walkTokens&&this.walkTokens(o,r.walkTokens);let i=t(o,r);return r.hooks&&(i=r.hooks.postprocess(i)),i}catch(Au){return a(Au)}}}function Bs(e,t,n){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="

    An error occurred:

    "+ps(r.message+"",!0)+"
    ";return t?Promise.resolve(e):n?void n(null,e):e}if(t)return Promise.reject(r);if(!n)throw r;n(r)}}const Ws=new class{constructor(){es(this,Hs),es(this,Vs),os(this,"defaults",{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}),os(this,"options",this.setOptions),os(this,"parse",ts(this,Vs,Us).call(this,zs.lex,Fs.parse)),os(this,"parseInline",ts(this,Vs,Us).call(this,zs.lexInline,Fs.parseInline)),os(this,"Parser",Fs),os(this,"parser",Fs.parse),os(this,"Renderer",Ds),os(this,"TextRenderer",Is),os(this,"Lexer",zs),os(this,"lexer",zs.lex),os(this,"Tokenizer",Ns),os(this,"Slugger",$s),os(this,"Hooks",js),this.use(...arguments)}walkTokens(e,t){let n=[];for(const r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":for(const e of r.header)n=n.concat(this.walkTokens(e.tokens,t));for(const e of r.rows)for(const r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(r.items,t));break;default:this.defaults.extensions&&this.defaults.extensions.childTokens&&this.defaults.extensions.childTokens[r.type]?this.defaults.extensions.childTokens[r.type].forEach((e=>{n=n.concat(this.walkTokens(r[e],t))})):r.tokens&&(n=n.concat(this.walkTokens(r.tokens,t)))}return n}use(){const e=this.defaults.extensions||{renderers:{},childTokens:{}};for(var t=arguments.length,n=new Array(t),r=0;r{const n={...t};if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach((t=>{if(!t.name)throw new Error("extension name required");if(t.renderer){const n=e.renderers[t.name];e.renderers[t.name]=n?function(){for(var e=arguments.length,r=new Array(e),o=0;o{if(this.defaults.async)return Promise.resolve(t.hooks[n].call(e,o)).then((t=>r.call(e,t)));const i=t.hooks[n].call(e,o);return r.call(e,i)}:e[n]=function(){for(var o=arguments.length,i=new Array(o),a=0;a{const t='$1 target="_blank" class="'.concat("vm-link vm-link_colored",'" $2').concat("https://docs.victoriametrics.com/MetricsQL.html","#");return e.replace(/({var n;const r="h3"===e.tagName.toLowerCase();return t=r?null!==(n=e.textContent)&&void 0!==n?n:"":t,r?null:((e,t)=>{var n;const r=null!==(n=t.textContent)&&void 0!==n?n:"",o=(e=>{const t=[];let n=e.nextElementSibling;for(;n&&"p"===n.tagName.toLowerCase();)n&&t.push(n),n=n.nextElementSibling;return t})(t).map((e=>{var t;return null!==(t=e.outerHTML)&&void 0!==t?t:""})).join("\n");return{type:e,value:r,description:qs(o),icon:pt(Hn,{})}})(t,e)})).filter(Boolean)},Gs=()=>{const{metricsQLFunctions:e}=ln(),n=sn();return(0,t.useEffect)((()=>{e.length||(async()=>{try{const e=await fetch(Zs),t=(e=>{const t=document.createElement("div");t.innerHTML=Ys(e);const n=t.querySelectorAll("".concat("h3",", ").concat("h4"));return Ks(n)})(await e.text());n({type:"SET_METRICSQL_FUNCTIONS",payload:t})}catch(Au){console.error("Error fetching or processing the MetricsQL.md file:",Au)}})()}),[]),e},Qs=e=>{let{value:n,anchorEl:r,caretPosition:i,onSelect:a,onFoundOptions:l}=e;const[s,c]=(0,t.useState)(0),u=Gs(),d=(0,t.useMemo)((()=>{const e=n.split("}");return e[e.length-1]}),[n]),h=(0,t.useMemo)((()=>{const e=d.match(/\b[^{}(),\s]+(?={|$)/g);return e?e[0]:""}),[d]),f=(0,t.useMemo)((()=>{const e=d.match(/[a-z_:-][\w\-.:/]*\b(?=\s*(=|!=|=~|!~))/g);return e?e[e.length-1]:""}),[d]),p=(0,t.useMemo)((()=>{if(!n||n.endsWith("}"))return ot.empty;const e=/\{[^}]*?(\w+)*$/gm;switch(!0){case new RegExp("(".concat(Xr(h),")?{?.+").concat(Xr(f),'(=|!=|=~|!~)"?([^"]*)$'),"g").test(n):return ot.labelValue;case e.test(n):return ot.label;default:return ot.metricsql}}),[n,h,f]),m=(0,t.useMemo)((()=>{const e=n.match(/([\w_\-.:/]+(?![},]))$/);return e?e[0]:""}),[n]),{metrics:v,labels:g,labelValues:y,loading:_}=(e=>{let{valueByContext:n,metric:r,label:i,context:a}=e;const{serverUrl:l}=vt(),{period:{start:s,end:c}}=Gt(),{autocompleteCache:u}=ln(),d=sn(),[h,f]=(0,t.useState)(!1),[p,m]=(0,t.useState)(n),v=Jr()(m,500);(0,t.useEffect)((()=>(v(n),v.cancel)),[n,v]);const[g,y]=(0,t.useState)([]),[_,b]=(0,t.useState)([]),[w,k]=(0,t.useState)([]),x=(0,t.useRef)(new AbortController),S=(0,t.useCallback)((e=>{const t=o()(1e3*s).startOf("day").valueOf()/1e3,n=o()(1e3*c).endOf("day").valueOf()/1e3;return new URLSearchParams({...e||{},limit:"".concat(en),start:"".concat(t),end:"".concat(n)})}),[s,c]),A=(e,t)=>e.map((e=>({value:e,type:"".concat(t),icon:no[t]}))),C=async e=>{let{value:t,urlSuffix:n,setter:r,type:o,params:i}=e;if(!t&&o===to.metric)return;x.current.abort(),x.current=new AbortController;const{signal:a}=x.current,s={type:o,value:t,start:(null===i||void 0===i?void 0:i.get("start"))||"",end:(null===i||void 0===i?void 0:i.get("end"))||"",match:(null===i||void 0===i?void 0:i.get("match[]"))||""};f(!0);try{const e=u.get(s);if(e)return void r(A(e,o));const t=await fetch("".concat(l,"/api/v1/").concat(n,"?").concat(i),{signal:a});if(t.ok){const{data:e}=await t.json();r(A(e,o)),d({type:"SET_AUTOCOMPLETE_CACHE",payload:{key:s,value:e}})}}catch(Au){Au instanceof Error&&"AbortError"!==Au.name&&(d({type:"SET_AUTOCOMPLETE_CACHE",payload:{key:s,value:[]}}),console.error(Au))}finally{f(!1)}};return(0,t.useEffect)((()=>{const e=a!==ot.metricsql&&a!==ot.empty;if(!l||!r||e)return;y([]);const t=eo(Xr(r));return C({value:p,urlSuffix:"label/__name__/values",setter:y,type:to.metric,params:S({"match[]":'{__name__=~".*'.concat(t,'.*"}')})}),()=>{var e;return null===(e=x.current)||void 0===e?void 0:e.abort()}}),[l,p,a,r]),(0,t.useEffect)((()=>{if(!l||!r||a!==ot.label)return;b([]);const e=eo(r);return C({value:p,urlSuffix:"labels",setter:b,type:to.label,params:S({"match[]":'{__name__="'.concat(e,'"}')})}),()=>{var e;return null===(e=x.current)||void 0===e?void 0:e.abort()}}),[l,p,a,r]),(0,t.useEffect)((()=>{if(!l||!r||!i||a!==ot.labelValue)return;k([]);const e=eo(r),t=eo(Xr(p));return C({value:p,urlSuffix:"label/".concat(i,"/values"),setter:k,type:to.labelValue,params:S({"match[]":'{__name__="'.concat(e,'", ').concat(i,'=~".*').concat(t,'.*"}')})}),()=>{var e;return null===(e=x.current)||void 0===e?void 0:e.abort()}}),[l,p,a,r,i]),{metrics:g,labels:_,labelValues:w,loading:h}})({valueByContext:m,metric:h,label:f,context:p}),b=(0,t.useMemo)((()=>{switch(p){case ot.metricsql:return[...v,...u];case ot.label:return g;case ot.labelValue:return y;default:return[]}}),[p,v,g,y]);return(0,t.useEffect)((()=>{if(!r.current)return void c(0);const e=window.getComputedStyle(r.current),t="".concat(e.getPropertyValue("font-size")),o="".concat(e.getPropertyValue("font-family")),i=((e,t)=>{const n=document.createElement("span");n.innerText=e,n.style.cssText="position: absolute; z-index: -1; pointer-events: none; opacity: 0; font: ".concat(t),document.body.appendChild(n);const r=n.offsetWidth;return n.remove(),r})(n,"".concat(t," ").concat(o));c(i)}),[r,i]),pt(ht.FK,{children:pt(Gr,{loading:_,disabledFullScreen:!0,value:m,options:b,anchor:r,minLength:0,offset:{top:0,left:s},onSelect:e=>{const t=n.lastIndexOf(m,i[0]),r=t+m.length,o=n.substring(0,t),l=n.substring(r);if(p===ot.labelValue){const t='"',n=/(?:=|!=|=~|!~)$/.test(o);e="".concat(n?t:"").concat(e)}const s="".concat(o).concat(e).concat(l);a(s)},onFoundOptions:l,maxDisplayResults:{limit:Xt,message:"Please, specify the query more precisely."}})})},Js="No match! \nThis query hasn't selected any time series from database.\nEither the requested metrics are missing in the database,\nor there is a typo in series selector.",Xs="The shown results are marked as PARTIAL.\nThe result is marked as partial if one or more vmstorage nodes failed to respond to the query.",ec=e=>{let{value:n,onChange:r,onEnter:o,onArrowUp:i,onArrowDown:a,autocomplete:l,error:s,stats:c,label:u,disabled:d=!1}=e;const{autocompleteQuick:h}=ln(),{isMobile:f}=dr(),[p,m]=(0,t.useState)(!1),[v,g]=(0,t.useState)([0,0]),y=(0,t.useRef)(null),_=[{show:"0"===(null===c||void 0===c?void 0:c.seriesFetched)&&!c.resultLength,text:Js},{show:null===c||void 0===c?void 0:c.isPartial,text:Xs}].filter((e=>e.show)).map((e=>e.text)).join("");c&&(u="".concat(u," (").concat(c.executionTimeMsec||0,"ms)"));return(0,t.useEffect)((()=>{m(l)}),[h]),pt("div",{className:"vm-query-editor",ref:y,children:[pt(qr,{value:n,label:u,type:"textarea",autofocus:!f,error:s,warning:_,onKeyDown:e=>{const{key:t,ctrlKey:n,metaKey:r,shiftKey:l}=e,s=(e.target.value||"").split("\n").length>1,c=n||r,u="ArrowDown"===t,d="Enter"===t;"ArrowUp"===t&&c&&(e.preventDefault(),i()),u&&c&&(e.preventDefault(),a()),d&&p&&e.preventDefault(),!d||l||s&&!c||p||(e.preventDefault(),o())},onChange:r,onChangeCaret:e=>{g(e)},disabled:d,inputmode:"search"}),l&&pt(Qs,{value:n,anchorEl:y,caretPosition:v,onSelect:e=>{r(e)},onFoundOptions:e=>{m(!!e.length)}})]})},tc=e=>{let{query:n,limit:r,error:o,onChange:i,onChangeLimit:a,onRun:l}=e;const{isMobile:s}=dr(),[c,u]=(0,t.useState)(""),[d,h]=(0,t.useState)(r);return(0,t.useEffect)((()=>{h(r)}),[r]),pt("div",{className:Yn()({"vm-explore-logs-header":!0,"vm-block":!0,"vm-block_mobile":s}),children:[pt("div",{className:"vm-explore-logs-header-top",children:[pt(ec,{value:n,autocomplete:!1,onArrowUp:()=>null,onArrowDown:()=>null,onEnter:l,onChange:i,label:"Log query",error:o}),pt(qr,{label:"Limit entries",type:"number",value:d,error:c,onChange:e=>{const t=+e;h(t),isNaN(t)||t<0?u("Number must be bigger than zero"):(u(""),a(t))},onEnter:l})]}),pt("div",{className:"vm-explore-logs-header-bottom",children:[pt("div",{className:"vm-explore-logs-header-bottom-helpful",children:[pt("a",{className:"vm-link vm-link_with-icon",target:"_blank",href:"https://docs.victoriametrics.com/VictoriaLogs/LogsQL.html",rel:"help noreferrer",children:[pt(vn,{}),"Query language docs"]}),pt("a",{className:"vm-link vm-link_with-icon",target:"_blank",href:"https://docs.victoriametrics.com/VictoriaLogs/",rel:"help noreferrer",children:[pt(zn,{}),"Documentation"]})]}),pt("div",{className:"vm-explore-logs-header-bottom__execute",children:pt(Ar,{startIcon:pt(En,{}),onClick:l,fullWidth:!0,children:"Execute Query"})})]})]})},nc=Number(We("LOGS_LIMIT")),rc=isNaN(nc)?1e3:nc,oc=()=>{const{serverUrl:e}=vt(),{duration:n,relativeTime:r,period:i}=Gt(),{setSearchParamsFromKeys:a}=Mr(),[l,s]=Er(rc,"limit"),[c,u]=Er("","query"),{logs:d,isLoading:h,error:f,fetchLogs:p}=((e,n,r)=>{const{period:i}=Gt(),[a,l]=(0,t.useState)([]),[s,c]=(0,t.useState)(!1),[u,d]=(0,t.useState)(),h=(0,t.useMemo)((()=>(e=>"".concat(e,"/select/logsql/query"))(e)),[e]),f=(0,t.useMemo)((()=>{if(!/_time/.test(n)){const e=o()(1e3*i.start).tz().toISOString(),t=o()(1e3*i.end).tz().toISOString(),r="_time:[".concat(e,", ").concat(t,"]");return"".concat(r," AND ").concat(n)}return n}),[n,i]),p=(0,t.useMemo)((()=>({method:"POST",headers:{Accept:"application/stream+json"},body:new URLSearchParams({query:f.trim(),limit:"".concat(r)})})),[f,r]),m=e=>{try{return JSON.parse(e)}catch(Au){return null}},v=(0,t.useCallback)((async()=>{const e=Number(p.body.get("limit"))+1;c(!0),d(void 0);try{const t=await fetch(h,p);if(!t.ok||!t.body){const e=await t.text();return d(e),l([]),void c(!1)}const n=t.body.getReader(),r=new TextDecoder("utf-8"),o=[];for(;n;){const{done:t,value:i}=await n.read();if(t)break;const a=r.decode(i,{stream:!0}).split("\n");if(o.push(...a),o.length>e&&o.splice(0,o.length-e),o.length>=e){n.cancel();break}}const i=o.map(m).filter((e=>e));l(i)}catch(Au){console.error(Au),l([]),Au instanceof Error&&d("".concat(Au.name,": ").concat(Au.message))}c(!1)}),[h,p]);return{logs:a,isLoading:s,error:u,fetchLogs:v}})(e,c,l),[m,v]=(0,t.useState)(""),[g,y]=(0,t.useState)(!1),_=()=>{c?(p().then((()=>{y(!0)})),a({query:c,"g0.range_input":n,"g0.end_input":i.date,"g0.relative_time":r||"none"})):v(nt.validQuery)};return(0,t.useEffect)((()=>{c&&_()}),[i]),(0,t.useEffect)((()=>{v("")}),[c]),pt("div",{className:"vm-explore-logs",children:[pt(tc,{query:c,error:m,limit:l,onChange:u,onChangeLimit:e=>{s(e),a({limit:e}),Be("LOGS_LIMIT","".concat(e))},onRun:_}),h&&pt(Yr,{}),f&&pt(fr,{variant:"error",children:f}),pt(Wr,{data:d,loaded:g})]})},ic={home:"/",metrics:"/metrics",dashboards:"/dashboards",cardinality:"/cardinality",topQueries:"/top-queries",trace:"/trace",withTemplate:"/expand-with-exprs",relabel:"/relabeling",logs:"/logs",activeQueries:"/active-queries",queryAnalyzer:"/query-analyzer",icons:"/icons",anomaly:"/anomaly",query:"/query"},{REACT_APP_TYPE:ac}={REACT_APP_TYPE:"logs"},lc=ac===Ue.logs,sc={header:{tenant:!0,stepControl:!lc,timeSelector:!lc,executionControls:!lc}},cc={[ic.home]:{title:"Query",...sc},[ic.metrics]:{title:"Explore Prometheus metrics",header:{tenant:!0,stepControl:!0,timeSelector:!0}},[ic.cardinality]:{title:"Explore cardinality",header:{tenant:!0,cardinalityDatePicker:!0}},[ic.topQueries]:{title:"Top queries",header:{tenant:!0}},[ic.trace]:{title:"Trace analyzer",header:{}},[ic.queryAnalyzer]:{title:"Query analyzer",header:{}},[ic.dashboards]:{title:"Dashboards",...sc},[ic.withTemplate]:{title:"WITH templates",header:{}},[ic.relabel]:{title:"Metric relabel debug",header:{}},[ic.logs]:{title:"Logs Explorer",header:{}},[ic.activeQueries]:{title:"Active Queries",header:{}},[ic.icons]:{title:"Icons",header:{}},[ic.anomaly]:{title:"Anomaly exploration",...sc},[ic.query]:{title:"Query",...sc}},uc=ic,dc=e=>{let{activeMenu:t,label:n,value:r,color:o}=e;return pt(Re,{className:Yn()({"vm-header-nav-item":!0,"vm-header-nav-item_active":t===r}),style:{color:o},to:r,children:n})},hc=e=>{let{activeMenu:n,label:r,color:o,background:i,submenu:a,direction:l}=e;const{pathname:s}=te(),[c,u]=(0,t.useState)(null),d=(0,t.useRef)(null),{value:h,setFalse:f,setTrue:p}=Rr(!1),m=()=>{c&&clearTimeout(c);const e=setTimeout(f,300);u(e)};return(0,t.useEffect)((()=>{f()}),[s]),"column"===l?pt(ht.FK,{children:a.map((e=>pt(dc,{activeMenu:n,value:e.value||"",label:e.label||""},e.value)))}):pt("div",{className:Yn()({"vm-header-nav-item":!0,"vm-header-nav-item_sub":!0,"vm-header-nav-item_open":h,"vm-header-nav-item_active":a.find((e=>e.value===n))}),style:{color:o},onMouseEnter:()=>{p(),c&&clearTimeout(c)},onMouseLeave:m,ref:d,children:[r,pt(kn,{}),pt(Nr,{open:h,placement:"bottom-left",offset:{top:12,left:0},onClose:f,buttonRef:d,children:pt("div",{className:"vm-header-nav-item-submenu",style:{background:i},onMouseLeave:m,onMouseEnter:()=>{c&&clearTimeout(c)},children:a.map((e=>pt(dc,{activeMenu:n,value:e.value||"",label:e.label||"",color:o},e.value)))})})]})},fc={label:"Explore",submenu:[{label:cc[uc.metrics].title,value:uc.metrics},{label:cc[uc.cardinality].title,value:uc.cardinality},{label:cc[uc.topQueries].title,value:uc.topQueries},{label:cc[uc.activeQueries].title,value:uc.activeQueries}]},pc={label:"Tools",submenu:[{label:cc[uc.trace].title,value:uc.trace},{label:cc[uc.queryAnalyzer].title,value:uc.queryAnalyzer},{label:cc[uc.withTemplate].title,value:uc.withTemplate},{label:cc[uc.relabel].title,value:uc.relabel}]},mc=[{label:cc[uc.logs].title,value:uc.home}],vc=[{label:cc[uc.anomaly].title,value:uc.home},{label:cc[uc.home].title,value:uc.query}],gc=[{label:cc[uc.home].title,value:uc.home},fc,pc],yc=e=>{let{color:n,background:r,direction:o}=e;const i=je(),{dashboardsSettings:a}=(0,t.useContext)(gr).state,{pathname:l}=te(),[s,c]=(0,t.useState)(l),u=(0,t.useMemo)((()=>{switch("logs"){case Ue.logs:return mc;case Ue.anomaly:return vc;default:return[...gc,{label:cc[uc.dashboards].title,value:uc.dashboards,hide:i||!a.length}].filter((e=>!e.hide))}}),[i,a]);return(0,t.useEffect)((()=>{c(l)}),[l]),pt("nav",{className:Yn()({"vm-header-nav":!0,["vm-header-nav_".concat(o)]:o}),children:u.map((e=>e.submenu?pt(hc,{activeMenu:s,label:e.label||"",submenu:e.submenu,color:n,background:r,direction:o},e.label):pt(dc,{activeMenu:s,value:e.value||"",label:e.label||"",color:n},e.value)))})},_c=e=>{let{title:n,children:r,onClose:o,className:i,isOpen:a=!0}=e;const{isMobile:l}=dr(),s=re(),c=te(),u=(0,t.useCallback)((e=>{a&&"Escape"===e.key&&o()}),[a]),d=e=>{e.stopPropagation()},h=(0,t.useCallback)((()=>{a&&(s(c,{replace:!0}),o())}),[a,c,o]);return(0,t.useEffect)((()=>{if(a)return document.body.style.overflow="hidden",()=>{document.body.style.overflow="auto"}}),[a]),Gn("popstate",h),Gn("keyup",u),t.default.createPortal(pt("div",{className:Yn()({"vm-modal":!0,"vm-modal_mobile":l,["".concat(i)]:i}),onMouseDown:o,children:pt("div",{className:"vm-modal-content",children:[pt("div",{className:"vm-modal-content-header",onMouseDown:d,children:[n&&pt("div",{className:"vm-modal-content-header__title",children:n}),pt("div",{className:"vm-modal-header__close",children:pt(Ar,{variant:"text",size:"small",onClick:o,ariaLabel:"close",children:pt(pn,{})})})]}),pt("div",{className:"vm-modal-content-body",onMouseDown:d,children:r})]})}),document.body)},bc=pt("code",{children:ur()?"Cmd":"Ctrl"}),wc=[{title:"Zoom in",description:pt(ht.FK,{children:["To zoom in, hold down the ",bc," + ",pt("code",{children:"scroll up"}),", or press the ",pt("code",{children:"+"}),". Also, you can zoom in on a range on the graph by holding down your mouse button and selecting the range."]})},{title:"Zoom out",description:pt(ht.FK,{children:["To zoom out, hold down the ",bc," + ",pt("code",{children:"scroll down"}),", or press the ",pt("code",{children:"-"}),"."]})},{title:"Move horizontal axis",description:pt(ht.FK,{children:["To move the graph, hold down the ",bc," + ",pt("code",{children:"drag"})," the graph to the right or left."]})},{title:"Fixing a tooltip",description:pt(ht.FK,{children:["To fix the tooltip, ",pt("code",{children:"click"})," mouse when it's open. Then, you can drag the fixed tooltip by ",pt("code",{children:"clicking"})," and ",pt("code",{children:"dragging"})," on the ",pt(Rn,{})," icon."]})},{title:"Set a custom range for the vertical axis",description:pt(ht.FK,{children:["To set a custom range for the vertical axis, click on the ",pt(fn,{})," icon located in the upper right corner of the graph, activate the toggle, and set the values."]})}],kc=[{title:"Show/hide a legend item",description:pt(ht.FK,{children:[pt("code",{children:"click"})," on a legend item to isolate it on the graph.",bc," + ",pt("code",{children:"click"})," on a legend item to remove it from the graph. To revert to the previous state, click again."]})},{title:"Copy label key-value pairs",description:pt(ht.FK,{children:[pt("code",{children:"click"})," on a label key-value pair to save it to the clipboard."]})},{title:"Collapse/Expand the legend group",description:pt(ht.FK,{children:[pt("code",{children:"click"})," on the group name (e.g. ",pt("b",{children:'Query 1: {__name__!=""}'}),") to collapse or expand the legend."]})}],xc=wc.concat(kc),Sc=()=>{const{value:e,setFalse:t,setTrue:n}=Rr(!1);return pt(ht.FK,{children:[pt(Pr,{title:"Show tips on working with the graph",children:pt(Ar,{variant:"text",color:"gray",startIcon:pt(Fn,{}),onClick:n,ariaLabel:"open the tips"})}),e&&pt(_c,{title:"Tips on working with the graph and the legend",onClose:t,children:pt("div",{className:"fc-graph-tips",children:xc.map((e=>{let{title:t,description:n}=e;return pt("div",{className:"fc-graph-tips-item",children:[pt("h4",{className:"fc-graph-tips-item__action",children:t}),pt("p",{className:"fc-graph-tips-item__description",children:n})]},t)}))})})]})},Ac=pt("code",{children:ur()?"Cmd":"Ctrl"}),Cc=pt(ht.FK,{children:[pt("code",{children:ur()?"Option":"Ctrl"})," + ",pt("code",{children:"Space"})]}),Ec=[{title:"Query",list:[{keys:pt("code",{children:"Enter"}),description:"Run"},{keys:pt(ht.FK,{children:[pt("code",{children:"Shift"})," + ",pt("code",{children:"Enter"})]}),description:"Multi-line queries"},{keys:pt(ht.FK,{children:[Ac," + ",pt("code",{children:"Arrow Up"})]}),description:"Previous command from the Query history"},{keys:pt(ht.FK,{children:[Ac," + ",pt("code",{children:"Arrow Down"})]}),description:"Next command from the Query history"},{keys:pt(ht.FK,{children:[Ac," + ",pt("code",{children:"click"})," by ",pt(Pn,{})]}),description:"Toggle multiple queries"},{keys:Cc,description:"Show quick autocomplete tips"}]},{title:"Graph",readMore:pt(Sc,{}),list:[{keys:pt(ht.FK,{children:[Ac," + ",pt("code",{children:"scroll Up"})," or ",pt("code",{children:"+"})]}),description:"Zoom in"},{keys:pt(ht.FK,{children:[Ac," + ",pt("code",{children:"scroll Down"})," or ",pt("code",{children:"-"})]}),description:"Zoom out"},{keys:pt(ht.FK,{children:[Ac," + ",pt("code",{children:"drag"})]}),description:"Move the graph left/right"},{keys:pt(ht.FK,{children:pt("code",{children:"click"})}),description:"Select the series in the legend"},{keys:pt(ht.FK,{children:[Ac," + ",pt("code",{children:"click"})]}),description:"Toggle multiple series in the legend"}]}],Mc="Shortcut keys",Tc=ur(),Nc=Tc?"Cmd + /":"F1",Oc=e=>{let{showTitle:n}=e;const r=je(),{value:o,setTrue:i,setFalse:a}=Rr(!1),l=(0,t.useCallback)((e=>{const t=Tc&&"/"===e.key&&e.metaKey,n=!Tc&&"F1"===e.key&&!e.metaKey;(t||n)&&i()}),[i]);return Gn("keydown",l),pt(ht.FK,{children:[pt(Pr,{open:!0!==n&&void 0,title:"".concat(Mc," (").concat(Nc,")"),placement:"bottom-center",children:pt(Ar,{className:r?"":"vm-header-button",variant:"contained",color:"primary",startIcon:pt(Cn,{}),onClick:i,ariaLabel:Mc,children:n&&Mc})}),o&&pt(_c,{title:"Shortcut keys",onClose:a,children:pt("div",{className:"vm-shortcuts",children:Ec.map((e=>pt("div",{className:"vm-shortcuts-section",children:[e.readMore&&pt("div",{className:"vm-shortcuts-section__read-more",children:e.readMore}),pt("h3",{className:"vm-shortcuts-section__title",children:e.title}),pt("div",{className:"vm-shortcuts-section-list",children:e.list.map(((t,n)=>pt("div",{className:"vm-shortcuts-section-list-item",children:[pt("div",{className:"vm-shortcuts-section-list-item__key",children:t.keys}),pt("p",{className:"vm-shortcuts-section-list-item__description",children:t.description})]},"".concat(e.title,"_").concat(n))))})]},e.title)))})})]})},Pc=e=>{let{open:t}=e;return pt("button",{className:Yn()({"vm-menu-burger":!0,"vm-menu-burger_opened":t}),"aria-label":"menu",children:pt("span",{})})},{REACT_APP_TYPE:Lc}={REACT_APP_TYPE:"logs"},Rc=Lc===Ue.logs,zc=e=>{let{background:n,color:r}=e;const{pathname:o}=te(),{isMobile:i}=dr(),a=(0,t.useRef)(null),{value:l,toggle:s,setFalse:c}=Rr(!1);return(0,t.useEffect)(c,[o]),Tr(a,c),pt("div",{className:"vm-header-sidebar",ref:a,children:[pt("div",{className:Yn()({"vm-header-sidebar-button":!0,"vm-header-sidebar-button_open":l}),onClick:s,children:pt(Pc,{open:l})}),pt("div",{className:Yn()({"vm-header-sidebar-menu":!0,"vm-header-sidebar-menu_open":l}),children:[pt("div",{children:pt(yc,{color:r,background:n,direction:"column"})}),pt("div",{className:"vm-header-sidebar-menu-settings",children:!i&&!Rc&&pt(Oc,{showTitle:!0})})]})]})},Dc=e=>{let{controlsComponent:n,isMobile:r,...o}=e;const i=je(),{pathname:a}=te(),{accountIds:l}=(()=>{const{useTenantID:e}=Fe(),n=je(),{serverUrl:r}=vt(),[o,i]=(0,t.useState)(!1),[a,l]=(0,t.useState)(),[s,c]=(0,t.useState)([]),u=(0,t.useMemo)((()=>"".concat(r.replace(/^(.+)(\/select.+)/,"$1"),"/admin/tenants")),[r]),d=(0,t.useMemo)((()=>!!He(r)),[r]),h=n?!e:!d;return(0,t.useEffect)((()=>{h||(async()=>{i(!0);try{const e=await fetch(u),t=await e.json(),n=t.data||[];c(n.sort(((e,t)=>e.localeCompare(t)))),e.ok?l(void 0):l("".concat(t.errorType,"\r\n").concat(null===t||void 0===t?void 0:t.error))}catch(Au){Au instanceof Error&&l("".concat(Au.name,": ").concat(Au.message))}i(!1)})().catch(console.error)}),[u]),{accountIds:s,isLoading:o,error:a}})(),{value:s,toggle:c,setFalse:u}=Rr(!1),d=pt(n,{...o,isMobile:r,accountIds:l,headerSetup:(0,t.useMemo)((()=>(cc[a]||{}).header||{}),[a])});return r?pt(ht.FK,{children:[pt("div",{children:pt(Ar,{className:Yn()({"vm-header-button":!i}),startIcon:pt($n,{}),onClick:c,ariaLabel:"controls"})}),pt(_c,{title:"Controls",onClose:u,isOpen:s,className:Yn()({"vm-header-controls-modal":!0,"vm-header-controls-modal_open":s}),children:d})]}):d},{REACT_APP_TYPE:Ic}={REACT_APP_TYPE:"logs"},$c=Ic===Ue.logs||Ic===Ue.anomaly,Fc=()=>{switch(Ic){case Ue.logs:return pt(un,{});case Ue.anomaly:return pt(dn,{});default:return pt(cn,{})}},jc=e=>{let{controlsComponent:n}=e;const{isMobile:r}=dr(),o=Qn(),i=(0,t.useMemo)((()=>window.innerWidth<1e3),[o]),{isDarkTheme:a}=vt(),l=je(),s=(0,t.useMemo)((()=>it(a?"color-background-block":"color-primary")),[a]),{background:c,color:u}=(0,t.useMemo)((()=>{const{headerStyles:{background:e=(l?"#FFF":s),color:t=(l?s:"#FFF")}={}}=Fe();return{background:e,color:t}}),[s]),d=re(),h=()=>{d({pathname:uc.home}),window.location.reload()};return pt("header",{className:Yn()({"vm-header":!0,"vm-header_app":l,"vm-header_dark":a,"vm-header_sidebar":i,"vm-header_mobile":r}),style:{background:c,color:u},children:[i?pt(zc,{background:c,color:u}):pt(ht.FK,{children:[!l&&pt("div",{className:Yn()({"vm-header-logo":!0,"vm-header-logo_logs":$c}),onClick:h,style:{color:u},children:pt(Fc,{})}),pt(yc,{color:u,background:c})]}),i&&pt("div",{className:Yn()({"vm-header-logo":!0,"vm-header-logo_mobile":!0,"vm-header-logo_logs":$c}),onClick:h,style:{color:u},children:pt(Fc,{})}),pt(Dc,{controlsComponent:n,displaySidebar:i,isMobile:r})]})},Vc=(0,t.memo)((()=>{const e="2019-".concat((new Date).getFullYear());return pt("footer",{className:"vm-footer",children:[pt("a",{className:"vm-link vm-footer__website",target:"_blank",href:"https://victoriametrics.com/",rel:"me noreferrer",children:[pt(hn,{}),"victoriametrics.com"]}),pt("a",{className:"vm-link vm-footer__link",target:"_blank",href:"https://docs.victoriametrics.com/MetricsQL.html",rel:"help noreferrer",children:[pt(Nn,{}),"MetricsQL"]}),pt("a",{className:"vm-link vm-footer__link",target:"_blank",href:"https://docs.victoriametrics.com/#vmui",rel:"help noreferrer",children:[pt(zn,{}),"Documentation"]}),pt("a",{className:"vm-link vm-footer__link",target:"_blank",href:"https://github.com/VictoriaMetrics/VictoriaMetrics/issues/new/choose",rel:"noreferrer",children:[pt(Dn,{}),"Create an issue"]}),pt("div",{className:"vm-footer__copyright",children:["\xa9 ",e," VictoriaMetrics"]})]})})),Hc="Enable to save the modified server URL to local storage, preventing reset upon page refresh.",Uc="Disable to stop saving the server URL to local storage, reverting to the default URL on page refresh.",Bc=e=>{let{serverUrl:n,stateServerUrl:r,onChange:o,onEnter:i}=e;const{value:a,toggle:l}=Rr(!!We("SERVER_URL")),[s,c]=(0,t.useState)("");return(0,t.useEffect)((()=>{r||c(nt.emptyServer),(e=>{let t;try{t=new URL(e)}catch(n){return!1}return"http:"===t.protocol||"https:"===t.protocol})(r)||c(nt.validServer)}),[r]),(0,t.useEffect)((()=>{a?Be("SERVER_URL",n):Ye(["SERVER_URL"])}),[a]),(0,t.useEffect)((()=>{a&&Be("SERVER_URL",n)}),[n]),pt("div",{children:[pt("div",{className:"vm-server-configurator__title",children:"Server URL"}),pt("div",{className:"vm-server-configurator-url",children:[pt(qr,{autofocus:!0,value:n,error:s,onChange:e=>{o(e||""),c("")},onEnter:i,inputmode:"url"}),pt(Pr,{title:a?Uc:Hc,children:pt(Ar,{className:"vm-server-configurator-url__button",variant:"text",color:a?"primary":"gray",onClick:l,startIcon:pt(In,{})})})]})]})},Wc=[{label:"Graph",type:tt.chart},{label:"JSON",type:tt.code},{label:"Table",type:tt.table}],Yc=e=>{let{limits:n,onChange:r,onEnter:o}=e;const{isMobile:i}=dr(),[a,l]=(0,t.useState)({table:"",chart:"",code:""}),s=e=>t=>{((e,t)=>{const o=e||"";l((e=>({...e,[t]:+o<0?nt.positiveNumber:""}))),r({...n,[t]:o||1/0})})(t,e)};return pt("div",{className:"vm-limits-configurator",children:[pt("div",{className:"vm-server-configurator__title",children:["Series limits by tabs",pt(Pr,{title:"Set to 0 to disable the limit",children:pt(Ar,{variant:"text",color:"primary",size:"small",startIcon:pt(vn,{})})}),pt("div",{className:"vm-limits-configurator-title__reset",children:pt(Ar,{variant:"text",color:"primary",size:"small",startIcon:pt(mn,{}),onClick:()=>{r(Je)},children:"Reset limits"})})]}),pt("div",{className:Yn()({"vm-limits-configurator__inputs":!0,"vm-limits-configurator__inputs_mobile":i}),children:Wc.map((e=>pt("div",{children:pt(qr,{label:e.label,value:n[e.type],error:a[e.type],onChange:s(e.type),onEnter:o,type:"number"})},e.type)))})]})},Zc=()=>pt(Pr,{title:"Browser timezone is not recognized, supported, or could not be determined.",children:pt(gn,{})}),qc=jt(),Kc=e=>{let{timezoneState:n,defaultTimezone:r,onChange:o}=e;const{isMobile:i}=dr(),a=$t(),[l,s]=(0,t.useState)(""),c=(0,t.useRef)(null),{value:u,toggle:d,setFalse:h}=Rr(!1),f=(0,t.useMemo)((()=>[{title:"Default time (".concat(r,")"),region:r,utc:r?It(r):"UTC"},{title:qc.title,region:qc.region,utc:It(qc.region),isInvalid:!qc.isValid},{title:"UTC (Coordinated Universal Time)",region:"UTC",utc:"UTC"}].filter((e=>e.region))),[r]),p=(0,t.useMemo)((()=>{if(!l)return a;try{return $t(l)}catch(Au){return{}}}),[l,a]),m=(0,t.useMemo)((()=>Object.keys(p)),[p]),v=(0,t.useMemo)((()=>({region:n,utc:It(n)})),[n]),g=e=>()=>{(e=>{o(e.region),s(""),h()})(e)};return pt("div",{className:"vm-timezones",children:[pt("div",{className:"vm-server-configurator__title",children:"Time zone"}),pt("div",{className:"vm-timezones-item vm-timezones-item_selected",onClick:d,ref:c,children:[pt("div",{className:"vm-timezones-item__title",children:v.region}),pt("div",{className:"vm-timezones-item__utc",children:v.utc}),pt("div",{className:Yn()({"vm-timezones-item__icon":!0,"vm-timezones-item__icon_open":u}),children:pt(kn,{})})]}),pt(Nr,{open:u,buttonRef:c,placement:"bottom-left",onClose:h,fullWidth:!0,title:i?"Time zone":void 0,children:pt("div",{className:Yn()({"vm-timezones-list":!0,"vm-timezones-list_mobile":i}),children:[pt("div",{className:"vm-timezones-list-header",children:[pt("div",{className:"vm-timezones-list-header__search",children:pt(qr,{autofocus:!0,label:"Search",value:l,onChange:e=>{s(e)}})}),f.map(((e,t)=>e&&pt("div",{className:"vm-timezones-item vm-timezones-list-group-options__item",onClick:g(e),children:[pt("div",{className:"vm-timezones-item__title",children:[e.title,e.isInvalid&&pt(Zc,{})]}),pt("div",{className:"vm-timezones-item__utc",children:e.utc})]},"".concat(t,"_").concat(e.region))))]}),m.map((e=>pt("div",{className:"vm-timezones-list-group",children:pt(Vr,{defaultExpanded:!0,title:pt("div",{className:"vm-timezones-list-group__title",children:e}),children:pt("div",{className:"vm-timezones-list-group-options",children:p[e]&&p[e].map((e=>pt("div",{className:"vm-timezones-item vm-timezones-list-group-options__item",onClick:g(e),children:[pt("div",{className:"vm-timezones-item__title",children:e.region}),pt("div",{className:"vm-timezones-item__utc",children:e.utc})]},e.search)))})})},e)))]})})]})},Gc=e=>{let{options:n,value:r,label:o,onChange:i}=e;const a=(0,t.useRef)(null),[l,s]=(0,t.useState)({width:"0px",left:"0px",borderRadius:"0px"}),c=e=>()=>{i(e)};return(0,t.useEffect)((()=>{if(!a.current)return void s({width:"0px",left:"0px",borderRadius:"0px"});const e=n.findIndex((e=>e.value===r)),{width:t}=a.current.getBoundingClientRect();let o=t,i=e*o,l="0";0===e&&(l="16px 0 0 16px"),e===n.length-1&&(l="10px",i-=1,l="0 16px 16px 0"),0!==e&&e!==n.length-1&&(o+=1,i-=1),s({width:"".concat(o,"px"),left:"".concat(i,"px"),borderRadius:l})}),[a,r,n]),pt("div",{className:"vm-toggles",children:[o&&pt("label",{className:"vm-toggles__label",children:o}),pt("div",{className:"vm-toggles-group",style:{gridTemplateColumns:"repeat(".concat(n.length,", 1fr)")},children:[l.borderRadius&&pt("div",{className:"vm-toggles-group__highlight",style:l}),n.map(((e,t)=>pt("div",{className:Yn()({"vm-toggles-group-item":!0,"vm-toggles-group-item_first":0===t,"vm-toggles-group-item_active":e.value===r,"vm-toggles-group-item_icon":e.icon&&e.title}),onClick:c(e.value),ref:e.value===r?a:null,children:[e.icon,e.title]},e.value)))]})]})},Qc=Object.values(rt).map((e=>({title:e,value:e}))),Jc=e=>{let{theme:t,onChange:n}=e;const{isMobile:r}=dr();return pt("div",{className:Yn()({"vm-theme-control":!0,"vm-theme-control_mobile":r}),children:[pt("div",{className:"vm-server-configurator__title",children:"Theme preferences"}),pt("div",{className:"vm-theme-control__toggle",children:pt(Gc,{options:Qc,value:t,onChange:e=>{n(e)}})},"".concat(r))]})},Xc="Settings",{REACT_APP_TYPE:eu}={REACT_APP_TYPE:"logs"},tu=eu===Ue.logs,nu=()=>{const{isMobile:e}=dr(),n=je(),{serverUrl:r,theme:o}=vt(),{timezone:i,defaultTimezone:a}=Gt(),{seriesLimits:l}=(0,t.useContext)(ir).state,s=gt(),c=Qt(),u=(0,t.useContext)(ir).dispatch,[d,h]=(0,t.useState)(r),[f,p]=(0,t.useState)(l),[m,v]=(0,t.useState)(i),{value:g,setTrue:y,setFalse:_}=Rr(!1),b=()=>{_(),h(r),p(l),v(i)},w=()=>{const e=He(d);""!==e&&s({type:"SET_TENANT_ID",payload:e}),s({type:"SET_SERVER",payload:d}),c({type:"SET_TIMEZONE",payload:m}),u({type:"SET_SERIES_LIMITS",payload:f}),_()};(0,t.useEffect)((()=>{r!==d&&h(r)}),[r]),(0,t.useEffect)((()=>{v(i)}),[i]);const k=[{show:!n&&!tu,component:pt(Bc,{stateServerUrl:r,serverUrl:d,onChange:h,onEnter:w})},{show:!tu,component:pt(Yc,{limits:f,onChange:p,onEnter:w})},{show:!0,component:pt(Kc,{timezoneState:m,defaultTimezone:a,onChange:v})},{show:!n,component:pt(Jc,{theme:o,onChange:e=>{s({type:"SET_THEME",payload:e})}})}].filter((e=>e.show));return pt(ht.FK,{children:[e?pt("div",{className:"vm-mobile-option",onClick:y,children:[pt("span",{className:"vm-mobile-option__icon",children:pt(fn,{})}),pt("div",{className:"vm-mobile-option-text",children:pt("span",{className:"vm-mobile-option-text__label",children:Xc})}),pt("span",{className:"vm-mobile-option__arrow",children:pt(wn,{})})]}):pt(Pr,{title:Xc,children:pt(Ar,{className:Yn()({"vm-header-button":!n}),variant:"contained",color:"primary",startIcon:pt(fn,{}),onClick:y,ariaLabel:"settings"})}),g&&pt(_c,{title:Xc,onClose:b,children:pt("div",{className:Yn()({"vm-server-configurator":!0,"vm-server-configurator_mobile":e}),children:[k.map(((e,t)=>pt("div",{className:"vm-server-configurator__input",children:e.component},t))),pt("div",{className:"vm-server-configurator-footer",children:[pt(Ar,{color:"error",variant:"outlined",onClick:b,children:"Cancel"}),pt(Ar,{color:"primary",variant:"contained",onClick:w,children:"Apply"})]})]})})]})},ru=e=>{let{relativeTime:t,setDuration:n}=e;const{isMobile:r}=dr();return pt("div",{className:Yn()({"vm-time-duration":!0,"vm-time-duration_mobile":r}),children:zt.map((e=>{let{id:o,duration:i,until:a,title:l}=e;return pt("div",{className:Yn()({"vm-list-item":!0,"vm-list-item_mobile":r,"vm-list-item_active":o===t}),onClick:(s={duration:i,until:a(),id:o},()=>{n(s)}),children:l||i},o);var s}))})},ou=e=>{let{viewDate:t,showArrowNav:n,onChangeViewDate:r,toggleDisplayYears:o}=e;return pt("div",{className:"vm-calendar-header",children:[pt("div",{className:"vm-calendar-header-left",onClick:o,children:[pt("span",{className:"vm-calendar-header-left__date",children:t.format("MMMM YYYY")}),pt("div",{className:"vm-calendar-header-left__select-year",children:pt(kn,{})})]}),n&&pt("div",{className:"vm-calendar-header-right",children:[pt("div",{className:"vm-calendar-header-right__prev",onClick:()=>{r(t.subtract(1,"month"))},children:pt(wn,{})}),pt("div",{className:"vm-calendar-header-right__next",onClick:()=>{r(t.add(1,"month"))},children:pt(wn,{})})]})]})},iu=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],au=e=>{let{viewDate:n,selectDate:r,onChangeSelectDate:i}=e;const a="YYYY-MM-DD",l=o()().tz().startOf("day"),s=(0,t.useMemo)((()=>{const e=new Array(42).fill(null),t=n.startOf("month"),r=n.endOf("month").diff(t,"day")+1,o=new Array(r).fill(t).map(((e,t)=>e.add(t,"day"))),i=t.day();return e.splice(i,r,...o),e}),[n]),c=e=>()=>{e&&i(e)};return pt("div",{className:"vm-calendar-body",children:[iu.map((e=>pt("div",{className:"vm-calendar-body-cell vm-calendar-body-cell_weekday",children:e[0]},e))),s.map(((e,t)=>pt("div",{className:Yn()({"vm-calendar-body-cell":!0,"vm-calendar-body-cell_day":!0,"vm-calendar-body-cell_day_empty":!e,"vm-calendar-body-cell_day_active":(e&&e.format(a))===r.format(a),"vm-calendar-body-cell_day_today":(e&&e.format(a))===l.format(a)}),onClick:c(e),children:e&&e.format("D")},e?e.format(a):t)))]})},lu=e=>{let{viewDate:n,onChangeViewDate:r}=e;const i=o()().format("YYYY"),a=(0,t.useMemo)((()=>n.format("YYYY")),[n]),l=(0,t.useMemo)((()=>{const e=o()().subtract(9,"year");return new Array(18).fill(e).map(((e,t)=>e.add(t,"year")))}),[n]);(0,t.useEffect)((()=>{const e=document.getElementById("vm-calendar-year-".concat(a));e&&e.scrollIntoView({block:"center"})}),[]);return pt("div",{className:"vm-calendar-years",children:l.map((e=>{return pt("div",{className:Yn()({"vm-calendar-years__year":!0,"vm-calendar-years__year_selected":e.format("YYYY")===a,"vm-calendar-years__year_today":e.format("YYYY")===i}),id:"vm-calendar-year-".concat(e.format("YYYY")),onClick:(t=e,()=>{r(t)}),children:e.format("YYYY")},e.format("YYYY"));var t}))})},su=e=>{let{viewDate:n,selectDate:r,onChangeViewDate:i}=e;const a=o()().format("MM"),l=(0,t.useMemo)((()=>r.format("MM")),[r]),s=(0,t.useMemo)((()=>new Array(12).fill("").map(((e,t)=>o()(n).month(t)))),[n]);(0,t.useEffect)((()=>{const e=document.getElementById("vm-calendar-year-".concat(l));e&&e.scrollIntoView({block:"center"})}),[]);const c=e=>()=>{i(e)};return pt("div",{className:"vm-calendar-years",children:s.map((e=>pt("div",{className:Yn()({"vm-calendar-years__year":!0,"vm-calendar-years__year_selected":e.format("MM")===l,"vm-calendar-years__year_today":e.format("MM")===a}),id:"vm-calendar-year-".concat(e.format("MM")),onClick:c(e),children:e.format("MMMM")},e.format("MM"))))})};var cu=function(e){return e[e.days=0]="days",e[e.months=1]="months",e[e.years=2]="years",e}(cu||{});const uu=e=>{let{date:n,format:r=_t,onChange:i}=e;const[a,l]=(0,t.useState)(cu.days),[s,c]=(0,t.useState)(o().tz(n)),[u,d]=(0,t.useState)(o().tz(n)),h=o()().startOf("day").tz(),f=h.format()===s.format(),{isMobile:p}=dr(),m=e=>{c(e),l((e=>e===cu.years?cu.months:cu.days))};return(0,t.useEffect)((()=>{u.format()!==o().tz(n).format()&&i(u.format(r))}),[u]),(0,t.useEffect)((()=>{const e=o().tz(n);c(e),d(e)}),[n]),pt("div",{className:Yn()({"vm-calendar":!0,"vm-calendar_mobile":p}),children:[pt(ou,{viewDate:s,onChangeViewDate:m,toggleDisplayYears:()=>{l((e=>e===cu.years?cu.days:cu.years))},showArrowNav:a===cu.days}),a===cu.days&&pt(au,{viewDate:s,selectDate:u,onChangeSelectDate:e=>{d(e)}}),a===cu.years&&pt(lu,{viewDate:s,onChangeViewDate:m}),a===cu.months&&pt(su,{selectDate:u,viewDate:s,onChangeViewDate:m}),!f&&a===cu.days&&pt("div",{className:"vm-calendar-footer",children:pt(Ar,{variant:"text",size:"small",onClick:()=>{c(h)},children:"show today"})})]})},du=(0,t.forwardRef)(((e,n)=>{let{date:r,targetRef:i,format:a=_t,onChange:l,label:s}=e;const c=(0,t.useMemo)((()=>o()(r).isValid()?o().tz(r):o()().tz()),[r]),{isMobile:u}=dr(),{value:d,toggle:h,setFalse:f}=Rr(!1);return Gn("click",h,i),Gn("keyup",(e=>{"Escape"!==e.key&&"Enter"!==e.key||f()})),pt(ht.FK,{children:pt(Nr,{open:d,buttonRef:i,placement:"bottom-right",onClose:f,title:u?s:void 0,children:pt("div",{ref:n,children:pt(uu,{date:c,format:a,onChange:e=>{l(e),f()}})})})})})),hu=du;var fu=n(494),pu=n.n(fu);const mu=e=>o()(e).isValid()?o().tz(e).format(_t):e,vu=e=>{let{value:n="",label:r,pickerLabel:i,pickerRef:a,onChange:l,onEnter:s}=e;const c=(0,t.useRef)(null),[u,d]=(0,t.useState)(null),[h,f]=(0,t.useState)(mu(n)),[p,m]=(0,t.useState)(!1),[v,g]=(0,t.useState)(!1),y=o()(h).isValid()?"":"Invalid date format";return(0,t.useEffect)((()=>{const e=mu(n);e!==h&&f(e),v&&(s(),g(!1))}),[n]),(0,t.useEffect)((()=>{p&&u&&(u.focus(),u.setSelectionRange(11,11),m(!1))}),[p]),pt("div",{className:Yn()({"vm-date-time-input":!0,"vm-date-time-input_error":y}),children:[pt("label",{children:r}),pt(pu(),{tabIndex:1,inputRef:d,mask:"9999-99-99 99:99:99",placeholder:"YYYY-MM-DD HH:mm:ss",value:h,autoCapitalize:"none",inputMode:"numeric",maskChar:null,onChange:e=>{f(e.currentTarget.value)},onBlur:()=>{l(h)},onKeyUp:e=>{"Enter"===e.key&&(l(h),g(!0))}}),y&&pt("span",{className:"vm-date-time-input__error-text",children:y}),pt("div",{className:"vm-date-time-input__icon",ref:c,children:pt(Ar,{variant:"text",color:"gray",size:"small",startIcon:pt(Sn,{}),ariaLabel:"calendar"})}),pt(hu,{label:i,ref:a,date:h,onChange:e=>{f(e),m(!0)},targetRef:c})]})};const gu=function(e){const n=(0,t.useRef)();return(0,t.useEffect)((()=>{n.current=e}),[e]),n.current},yu=()=>{const{isMobile:e}=dr(),{isDarkTheme:n}=vt(),r=(0,t.useRef)(null),i=Qn(),a=(0,t.useMemo)((()=>i.width>1120),[i]),[l,s]=(0,t.useState)(),[c,u]=(0,t.useState)(),{period:{end:d,start:h},relativeTime:f,timezone:p,duration:m}=Gt(),v=Qt(),g=je(),y=gu(p),{value:_,toggle:b,setFalse:w}=Rr(!1),k=(0,t.useMemo)((()=>({region:p,utc:It(p)})),[p]);(0,t.useEffect)((()=>{s(Pt(Rt(d)))}),[p,d]),(0,t.useEffect)((()=>{u(Pt(Rt(h)))}),[p,h]);const x=e=>{let{duration:t,until:n,id:r}=e;v({type:"SET_RELATIVE_TIME",payload:{duration:t,until:n,id:r}}),w()},S=(0,t.useMemo)((()=>({start:o().tz(Rt(h)).format(_t),end:o().tz(Rt(d)).format(_t)})),[h,d,p]),A=(0,t.useMemo)((()=>f&&"none"!==f?f.replace(/_/g," "):"".concat(S.start," - ").concat(S.end)),[f,S]),C=(0,t.useRef)(null),E=(0,t.useRef)(null),M=(0,t.useRef)(null),T=()=>{c&&l&&v({type:"SET_PERIOD",payload:{from:o().tz(c).toDate(),to:o().tz(l).toDate()}}),w()};return(0,t.useEffect)((()=>{const e=Dt({relativeTimeId:f,defaultDuration:m,defaultEndInput:Rt(d)});y&&p!==y&&x({id:e.relativeTimeId,duration:e.duration,until:e.endInput})}),[p,y]),Tr(r,(t=>{var n,r;if(e)return;const o=t.target,i=(null===C||void 0===C?void 0:C.current)&&(null===C||void 0===C||null===(n=C.current)||void 0===n?void 0:n.contains(o)),a=(null===E||void 0===E?void 0:E.current)&&(null===E||void 0===E||null===(r=E.current)||void 0===r?void 0:r.contains(o));i||a||w()})),pt(ht.FK,{children:[pt("div",{ref:M,children:e?pt("div",{className:"vm-mobile-option",onClick:b,children:[pt("span",{className:"vm-mobile-option__icon",children:pt(xn,{})}),pt("div",{className:"vm-mobile-option-text",children:[pt("span",{className:"vm-mobile-option-text__label",children:"Time range"}),pt("span",{className:"vm-mobile-option-text__value",children:A})]}),pt("span",{className:"vm-mobile-option__arrow",children:pt(wn,{})})]}):pt(Pr,{title:a?"Time range controls":A,children:pt(Ar,{className:g?"":"vm-header-button",variant:"contained",color:"primary",startIcon:pt(xn,{}),onClick:b,ariaLabel:"time range controls",children:a&&pt("span",{children:A})})})}),pt(Nr,{open:_,buttonRef:M,placement:"bottom-right",onClose:w,clickOutside:!1,title:e?"Time range controls":"",children:pt("div",{className:Yn()({"vm-time-selector":!0,"vm-time-selector_mobile":e}),ref:r,children:[pt("div",{className:"vm-time-selector-left",children:[pt("div",{className:Yn()({"vm-time-selector-left-inputs":!0,"vm-time-selector-left-inputs_dark":n}),children:[pt(vu,{value:c,label:"From:",pickerLabel:"Date From",pickerRef:C,onChange:u,onEnter:T}),pt(vu,{value:l,label:"To:",pickerLabel:"Date To",pickerRef:E,onChange:s,onEnter:T})]}),pt("div",{className:"vm-time-selector-left-timezone",children:[pt("div",{className:"vm-time-selector-left-timezone__title",children:k.region}),pt("div",{className:"vm-time-selector-left-timezone__utc",children:k.utc})]}),pt(Ar,{variant:"text",startIcon:pt(An,{}),onClick:()=>v({type:"RUN_QUERY_TO_NOW"}),children:"switch to now"}),pt("div",{className:"vm-time-selector-left__controls",children:[pt(Ar,{color:"error",variant:"outlined",onClick:()=>{s(Pt(Rt(d))),u(Pt(Rt(h))),w()},children:"Cancel"}),pt(Ar,{color:"primary",onClick:T,children:"Apply"})]})]}),pt(ru,{relativeTime:f||"",setDuration:x})]})})]})},_u=e=>{let{isMobile:t}=e;return pt("div",{className:Yn()({"vm-header-controls":!0,"vm-header-controls_mobile":t}),children:[pt(yu,{}),pt(nu,{})]})},bu=(Boolean(We("DISABLED_DEFAULT_TIMEZONE")),()=>{const{serverUrl:e}=vt(),[n,r]=(Qt(),(0,t.useState)(!1)),[o,i]=(0,t.useState)(""),a=async()=>{};return(0,t.useEffect)((()=>{a()}),[e]),{isLoading:n,error:o}}),wu=()=>{const e=je(),{isMobile:n}=dr(),{pathname:r}=te();bu();return(0,t.useEffect)((()=>{var e;const t="vmui for VictoriaLogs",n=null===(e=cc[uc.logs])||void 0===e?void 0:e.title;document.title=n?"".concat(n," - ").concat(t):t}),[r]),pt("section",{className:"vm-container",children:[pt(jc,{controlsComponent:_u}),pt("div",{className:Yn()({"vm-container-body":!0,"vm-container-body_mobile":n,"vm-container-body_app":e}),children:pt(ye,{})}),!e&&pt(Vc,{})]})},ku=()=>{const[e,n]=(0,t.useState)(!1);return pt(ht.FK,{children:pt(Ne,{children:pt(yr,{children:pt(ht.FK,{children:[pt(xr,{onLoaded:n}),e&&pt(we,{children:pt(_e,{path:"/",element:pt(wu,{}),children:pt(_e,{path:"/",element:pt(oc,{})})})})]})})})})},xu=e=>{e&&n.e(685).then(n.bind(n,685)).then((t=>{let{getCLS:n,getFID:r,getFCP:o,getLCP:i,getTTFB:a}=t;n(e),r(e),o(e),i(e),a(e)}))},Su=document.getElementById("root");Su&&(0,t.render)(pt(ku,{}),Su),xu()})()})();