PageSourceSearch

https://cloud.tdengine.com/js/constants-Cmxt85wO.js

js tdengine.com collected 2026-09-24 20:28:28 UTC 35,299 bytes, 1 lines download raw bytes

1import{o as Z,t as K}from"./rolldown-runtime-ChpBd9eV.js";import{r as R}from"./locales-CvaVl2Pa.js";var oe=K((e,n)=>{(function(d,u){typeof e=="object"&&typeof n<"u"?n.exports=u():typeof define=="function"&&define.amd?define(u):(d=typeof globalThis<"u"?globalThis:d||self).dayjs_plugin_utc=u()})(e,function(){"use strict";var d="minute",u=/[+-]\d\d(?::?\d\d)?/g,D=/([+-]|\d\d)/g;return function(_,A,m){var E=A.prototype;m.utc=function(i){return new A({date:i,utc:!0,args:arguments})},E.utc=function(i){var y=m(this.toDate(),{locale:this.$L,utc:!0});return i?y.add(this.utcOffset(),d):y},E.local=function(){return m(this.toDate(),{locale:this.$L,utc:!1})};var $=E.parse;E.parse=function(i){i.utc&&(this.$u=!0),this.$utils().u(i.$offset)||(this.$offset=i.$offset),$.call(this,i)};var C=E.init;E.init=function(){if(this.$u){var i=this.$d;this.$y=i.getUTCFullYear(),this.$M=i.getUTCMonth(),this.$D=i.getUTCDate(),this.$W=i.getUTCDay(),this.$H=i.getUTCHours(),this.$m=i.getUTCMinutes(),this.$s=i.getUTCSeconds(),this.$ms=i.getUTCMilliseconds()}else C.call(this)};var g=E.utcOffset;E.utcOffset=function(i,y){var M=this.$utils().u;if(M(i))return this.$u?0:M(this.$offset)?g.call(this):this.$offset;if(typeof i=="string"&&(i=function(P){P===void 0&&(P="");var b=P.match(u);if(!b)return null;var s=(""+b[0]).match(D)||["-",0,0],t=s[0],O=60*+s[1]+ +s[2];return O===0?0:t==="+"?O:-O}(i),i===null))return this;var B=Math.abs(i)<=16?60*i:i,v=this;if(y)return v.$offset=B,v.$u=i===0,v;if(i!==0){var V=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(v=this.local().add(B+V,d)).$offset=B,v.$x.$localOffset=V}else v=this.utc();return v};var T=E.format;E.format=function(i){var y=i||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return T.call(this,y)},E.valueOf=function(){var i=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*i},E.isUTC=function(){return!!this.$u},E.toISOString=function(){return this.toDate().toISOString()},E.toString=function(){return this.toDate().toUTCString()};var N=E.toDate;E.toDate=function(i){return i==="s"&&this.$offset?m(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():N.call(this)};var I=E.diff;E.diff=function(i,y,M){if(i&&this.$u===i.$u)return I.call(this,i,y,M);var B=this.local(),v=m(i).local();return I.call(B,v,y,M)}}})}),fe=K((e,n)=>{(function(d,u){typeof e=="object"&&typeof n<"u"?n.exports=u():typeof define=="function"&&define.amd?define(u):(d=typeof globalThis<"u"?globalThis:d||self).dayjs_plugin_timezone=u()})(e,function(){"use strict";var d={year:0,month:1,day:2,hour:3,minute:4,second:5},u={};return function(D,_,A){var m,E=function(T,N,I){I===void 0&&(I={});var i=new Date(T);return function(y,M){M===void 0&&(M={});var B=M.timeZoneName||"short",v=y+"|"+B,V=u[v];return V||(V=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:y,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:B}),u[v]=V),V}(N,I).formatToParts(i)},$=function(T,N){for(var I=E(T,N),i=[],y=0;y<I.length;y+=1){var M=I[y],B=M.type,v=M.value,V=d[B];V>=0&&(i[V]=parseInt(v,10))}var P=i[3],b=P===24?0:P,s=i[0]+"-"+i[1]+"-"+i[2]+" "+b+":"+i[4]+":"+i[5]+":000",t=+T;return(A.utc(s).valueOf()-(t-=t%1e3))/6e4},C=_.prototype;C.tz=function(T,N){T===void 0&&(T=m);var I,i=this.utcOffset(),y=this.toDate(),M=y.toLocaleString("en-US",{timeZone:T}),B=Math.round((y-new Date(M))/1e3/60),v=15*-Math.round(y.getTimezoneOffset()/15)-B;if(!Number(v))I=this.utcOffset(0,N);else if(I=A(M,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(v,!0),N){var V=I.utcOffset();I=I.add(i-V,"minute")}return I.$x.$timezone=T,I},C.offsetName=function(T){var N=this.$x.$timezone||A.tz.guess(),I=E(this.valueOf(),N,{timeZoneName:T}).find(function(i){return i.type.toLowerCase()==="timezonename"});return I&&I.value};var g=C.startOf;C.startOf=function(T,N){if(!this.$x||!this.$x.$timezone)return g.call(this,T,N);var I=A(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return g.call(I,T,N).tz(this.$x.$timezone,!0)},A.tz=function(T,N,I){var i=I&&N,y=I||N||m,M=$(+A(),y);if(typeof T!="string")return A(T).tz(y);var B=function(b,s,t){var O=b-60*s*1e3,h=$(O,t);if(s===h)return[O,s];var c=$(O-=60*(h-s)*1e3,t);return h===c?[O,h]:[b-60*Math.min(h,c)*1e3,Math.max(h,c)]}(A.utc(T,i).valueOf(),M,y),v=B[0],V=B[1],P=A(v).utcOffset(V);return P.$x.$timezone=y,P},A.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},A.tz.setDefault=function(T){m=T}}
1})}),de=K((e,n)=>{(function(d,u){typeof e=="object"&&typeof n<"u"?n.exports=u():typeof define=="function"&&define.amd?define(u):(d=typeof globalThis<"u"?globalThis:d||self).dayjs_plugin_duration=u()})(e,function(){"use strict";var d,u,D=1e3,_=6e4,A=36e5,m=864e5,E=/\[([^\]]+)]|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,$=31536e6,C=2628e6,g=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,T={years:$,months:C,days:m,hours:A,minutes:_,seconds:D,milliseconds:1,weeks:6048e5},N=function(b){return b instanceof V},I=function(b,s,t){return new V(b,t,s.$l)},i=function(b){return u.p(b)+"s"},y=function(b){return b<0},M=function(b){return y(b)?Math.ceil(b):Math.floor(b)},B=function(b){return Math.abs(b)},v=function(b,s){return b?y(b)?{negative:!0,format:""+B(b)+s}:{negative:!1,format:""+b+s}:{negative:!1,format:""}},V=function(){function b(t,O,h){var c=this;if(this.$d={},this.$l=h,t===void 0&&(this.$ms=0,this.parseFromMilliseconds()),O)return I(t*T[i(O)],this);if(typeof t=="number")return this.$ms=t,this.parseFromMilliseconds(),this;if(typeof t=="object")return Object.keys(t).forEach(function(o){c.$d[i(o)]=t[o]}),this.calMilliseconds(),this;if(typeof t=="string"){var Y=t.match(g);if(Y){var w=Y.slice(2).map(function(o){return o!=null?Number(o):0});return this.$d.years=w[0],this.$d.months=w[1],this.$d.weeks=w[2],this.$d.days=w[3],this.$d.hours=w[4],this.$d.minutes=w[5],this.$d.seconds=w[6],this.calMilliseconds(),this}}return this}var s=b.prototype;return s.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce(function(O,h){return O+(t.$d[h]||0)*T[h]},0)},s.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=M(t/$),t%=$,this.$d.months=M(t/C),t%=C,this.$d.days=M(t/m),t%=m,this.$d.hours=M(t/A),t%=A,this.$d.minutes=M(t/_),t%=_,this.$d.seconds=M(t/D),t%=D,this.$d.milliseconds=t},s.toISOString=function(){var t=v(this.$d.years,"Y"),O=v(this.$d.months,"M"),h=+this.$d.days||0;this.$d.weeks&&(h+=7*this.$d.weeks);var c=v(h,"D"),Y=v(this.$d.hours,"H"),w=v(this.$d.minutes,"M"),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var l=v(o,"S"),a=t.negative||O.negative||c.negative||Y.negative||w.negative||l.negative,f=Y.format||w.format||l.format?"T":"",r=(a?"-":"")+"P"+t.format+O.format+c.format+f+Y.format+w.format+l.format;return r==="P"||r==="-P"?"P0D":r},s.toJSON=function(){return this.toISOString()},s.format=function(t){var O=t||"YYYY-MM-DDTHH:mm:ss",h={Y:this.$d.years,YY:u.s(this.$d.years,2,"0"),YYYY:u.s(this.$d.years,4,"0"),M:this.$d.months,MM:u.s(this.$d.months,2,"0"),D:this.$d.days,DD:u.s(this.$d.days,2,"0"),H:this.$d.hours,HH:u.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:u.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:u.s(this.$d.seconds,2,"0"),SSS:u.s(this.$d.milliseconds,3,"0")};return O.replace(E,function(c,Y){return Y||String(h[c])})},s.as=function(t){return this.$ms/T[i(t)]},s.get=function(t){var O=this.$ms,h=i(t);return h==="milliseconds"?O%=1e3:O=h==="weeks"?M(O/T[h]):this.$d[h],O||0},s.add=function(t,O,h){var c;return c=O?t*T[i(O)]:N(t)?t.$ms:I(t,this).$ms,I(this.$ms+c*(h?-1:1),this)},s.subtract=function(t,O){return this.add(t,O,!0)},s.locale=function(t){var O=this.clone();return O.$l=t,O},s.clone=function(){return I(this.$ms,this)},s.humanize=function(t){return d().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},s.valueOf=function(){return this.asMilliseconds()},s.milliseconds=function(){return this.get("milliseconds")},s.asMilliseconds=function(){return this.as("milliseconds")},s.seconds=function(){return this.get("seconds")},s.asSeconds=function(){return this.as("seconds")},s.minutes=function(){return this.get("minutes")},s.asMinutes=function(){return this.as("minutes")},s.hours=function(){return this.get("hours")},s.asHours=function(){return this.as("hours")},s.days=function(){return this.get("days")},s.asDays=function(){return this.as("days")},s.weeks=function(){return this.get("weeks")},s.asWeeks=function(){return this.as("weeks")},s.months=function(){return this.get("months")},s.asMonths=function(){return this.as("months")},s.years=function(){return this.get("years")},s.asYears=function(){return this.as("years")},b}(),P=function(b,s,t){return b.add(s.years()*t,"y").add(s.months()*t,"M").add(s.days()*t,"d").add(s.hours()*t,"h").add(s.minutes()*t,"m").add(s.seconds()*t,"s").add(s.milliseconds()*t,"ms")};return function(b,s,t){d=t,u=t().$utils(),t.duration=function(c,Y){return I(c,{$l:t.locale()},Y)},t.isDuration=N;var O=s.prototype.add,h=s.prototype.subtract;s.prototype.add=function(c,Y){return N(c)?P(this,c,1):O.bind(this)(c,Y)},s.prototype.subtract=function(c,Y){return N(c)?P(this,c,-1):h.bind(this)(c,Y)}}})}),ce=K((e,n)=>{(function(d,u){typeof e=="object"&&typeof n<"u"?n.exports=u():typeof define=="function"&&define.amd?define(u):(d=typeof globalThis<"u"?globalThis:d||self).dayjs_plugin_isSameOrBefore=u()})(e,function(){"use strict";return function(d,u){u.prototype.isSameOrBefore=function(D,_){return this.isSame(D,_)||this.isBefore(D,_)}}})}),Te=K((e,n)=>{(function(d,u){typeof e=="object"&&typeof n<"u"?n.exports=u():typeof define=="function"&&define.amd?define(u):(d=typeof globalThis<"u"?globalThis:d||self).dayjs_plugin_isSameOrAfter=u()})(e,function(){"use strict";return function(d,u){u.prototype.isSameOrAfter=function(D,_){return this.isSame(D,_)||this.isAfter(D,_)}}})}),he=K((e,n)=>{(function(d,u){typeof e=="object"&&typeof n<"u"?n.exports=u():typeof define=="function"&&define.amd?define(u):(d=typeof globalThis<"u"?globalThis:d||self).dayjs_plugin_isBetween=u()})(e,function(){"use strict";
vendor: 5,353 bytes, line 1
1return function(d,u,D){u.prototype.isBetween=function(_,A,m,E){var $=D(_),C=D(A),g=(E=E||"()")[0]==="(",T=E[1]===")";return(g?this.isAfter($,m):!this.isBefore($,m))&&(T?this.isBefore(C,m):!this.isAfter(C,m))||(g?this.isBefore($,m):!this.isAfter($,m))&&(T?this.isAfter(C,m):!this.isBefore(C,m))}}})}),Ee=K((e,n)=>{(function(d,u){typeof e=="object"&&typeof n<"u"?n.exports=u():typeof define=="function"&&define.amd?define(u):(d=typeof globalThis<"u"?globalThis:d||self).dayjs=u()})(e,function(){"use strict";var d=1e3,u=6e4,D=36e5,_="millisecond",A="second",m="minute",E="hour",$="day",C="week",g="month",T="quarter",N="year",I="date",i="Invalid Date",y=/^(\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,B={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(o){var l=["th","st","nd","rd"],a=o%100;return"["+o+(l[(a-20)%10]||l[a]||l[0])+"]"}},v=function(o,l,a){var f=String(o);return!f||f.length>=l?o:""+Array(l+1-f.length).join(a)+o},V={s:v,z:function(o){var l=-o.utcOffset(),a=Math.abs(l),f=Math.floor(a/60),r=a%60;return(l<=0?"+":"-")+v(f,2,"0")+":"+v(r,2,"0")},m:function o(l,a){if(l.date()<a.date())return-o(a,l);var f=12*(a.year()-l.year())+(a.month()-l.month()),r=l.clone().add(f,g),p=a-r<0,S=l.clone().add(f+(p?-1:1),g);return+(-(f+(a-r)/(p?r-S:S-r))||0)},a:function(o){return o<0?Math.ceil(o)||0:Math.floor(o)},p:function(o){return{M:g,y:N,w:C,d:$,D:I,h:E,m,s:A,ms:_,Q:T}[o]||String(o||"").toLowerCase().replace(/s$/,"")},u:function(o){return o===void 0}},P="en",b={};b[P]=B;var s="$isDayjsObject",t=function(o){return o instanceof Y||!(!o||!o[s])},O=function o(l,a,f){var r;if(!l)return P;if(typeof l=="string"){var p=l.toLowerCase();b[p]&&(r=p),a&&(b[p]=a,r=p);var S=l.split("-");if(!r&&S.length>1)return o(S[0])}else{var L=l.name;b[L]=l,r=L}return!f&&r&&(P=r),r||!f&&P},h=function(o,l){if(t(o))return o.clone();var a=typeof l=="object"?l:{};return a.date=o,a.args=arguments,new Y(a)},c=V;c.l=O,c.i=t,c.w=function(o,l){return h(o,{locale:l.$L,utc:l.$u,x:l.$x,$offset:l.$offset})};var Y=function(){function o(a){this.$L=O(a.locale,null,!0),this.parse(a),this.$x=this.$x||a.x||{},this[s]=!0}var l=o.prototype;return l.parse=function(a){this.$d=function(f){var r=f.date,p=f.utc;if(r===null)return new Date(NaN);if(c.u(r))return new Date;if(r instanceof Date)return new Date(r);if(typeof r=="string"&&!/Z$/i.test(r)){var S=r.match(y);if(S){var L=S[2]-1||0,U=(S[7]||"0").substring(0,3);return p?new Date(Date.UTC(S[1],L,S[3]||1,S[4]||0,S[5]||0,S[6]||0,U)):new Date(S[1],L,S[3]||1,S[4]||0,S[5]||0,S[6]||0,U)}}return new Date(r)}(a),this.init()},l.init=function(){var a=this.$d;this.$y=a.getFullYear(),this.$M=a.getMonth(),this.$D=a.getDate(),this.$W=a.getDay(),this.$H=a.getHours(),this.$m=a.getMinutes(),this.$s=a.getSeconds(),this.$ms=a.getMilliseconds()},l.$utils=function(){return c},l.isValid=function(){return this.$d.toString()!==i},l.isSame=function(a,f){var r=h(a);return this.startOf(f)<=r&&r<=this.endOf(f)},l.isAfter=function(a,f){return h(a)<this.startOf(f)},l.isBefore=function(a,f){return this.endOf(f)<h(a)},l.$g=function(a,f,r){return c.u(a)?this[f]:this.set(r,a)},l.unix=function(){return Math.floor(this.valueOf()/1e3)},l.valueOf=function(){return this.$d.getTime()},l.startOf=function(a,f){var r=this,p=!!c.u(f)||f,S=c.p(a),L=function(Q,W){var z=c.w(r.$u?Date.UTC(r.$y,W,Q):new Date(r.$y,W,Q),r);return p?z:z.endOf($)},U=function(Q,W){return c.w(r.toDate()[Q].apply(r.toDate("s"),(p?[0,0,0,0]:[23,59,59,999]).slice(W)),r)},F=this.$W,G=this.$M,x=this.$D,X="set"+(this.$u?"UTC":"");switch(S){case N:return p?L(1,0):L(31,11);case g:return p?L(1,G):L(0,G+1);case C:var j=this.$locale().weekStart||0,J=(F<j?F+7:F)-j;return L(p?x-J:x+(6-J),G);case $:case I:return U(X+"Hours",0);case E:return U(X+"Minutes",1);case m:return U(X+"Seconds",2);case A:return U(X+"Milliseconds",3);default:return this.clone()}},l.endOf=function(a){return this.startOf(a,!1)},l.$set=function(a,f){var r,p=c.p(a),S="set"+(this.$u?"UTC":""),L=(r={},r[$]=S+"Date",r[I]=S+"Date",r[g]=S+"Month",r[N]=S+"FullYear",r[E]=S+"Hours",r[m]=S+"Minutes",r[A]=S+"Seconds",r[_]=S+"Milliseconds",r)[p],U=p===$?this.$D+(f-this.$W):f;if(p===g||p===N){var F=this.clone().set(I,1);F.$d[L](U),F.init(),this.$d=F.set(I,Math.min(this.$D,F.daysInMonth())).$d}else L&&this.$d[L](U);return this.init(),this},l.set=function(a,f){return this.clone().$set(a,f)},l.get=function(a){return this[c.p(a)]()},l.add=function(a,f){var r,p=this;a=Number(a);var S=c.p(f),L=function(G){var x=h(p);return c.w(x.date(x.date()+Math.round(G*a)),p)};if(S===g)return this.set(g,this.$M+a);if(S===N)return this.set(N,this.$y+a);if(S===$)return L(1);if(S===C)return L(7);var U=(r={},r[m]=u,r[E]=D,r[A]=d,r)[S]||1,F=this.$d.getTime()+a*U;return c.w(F,this)},l.subtract=function(a,f){return this.add(-1*a,f)},l.format=function(a){var f=this,r=this.$locale();if(!this.isValid())return r.invalidDate||i;var p=a||"YYYY-MM-DDTHH:mm:ssZ",S=c.z(this),L=this.$H,U=this.$m,F=this.$M,G=r.weekdays,x=r.months,X=r.meridiem,j=function(W,z,q,te){return W&&(W[z]||W(f,p))||q[z].slice(0,te)},J=function(W){return c.s(L%12||12,W,"0")}
1,Q=X||function(W,z,q){var te=W<12?"AM":"PM";return q?te.toLowerCase():te};return p.replace(M,function(W,z){return z||function(q){switch(q){case"YY":return String(f.$y).slice(-2);case"YYYY":return c.s(f.$y,4,"0");case"M":return F+1;case"MM":return c.s(F+1,2,"0");case"MMM":return j(r.monthsShort,F,x,3);case"MMMM":return j(x,F);case"D":return f.$D;case"DD":return c.s(f.$D,2,"0");case"d":return String(f.$W);case"dd":return j(r.weekdaysMin,f.$W,G,2);case"ddd":return j(r.weekdaysShort,f.$W,G,3);case"dddd":return G[f.$W];case"H":return String(L);case"HH":return c.s(L,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return Q(L,U,!0);case"A":return Q(L,U,!1);case"m":return String(U);case"mm":return c.s(U,2,"0");case"s":return String(f.$s);case"ss":return c.s(f.$s,2,"0");case"SSS":return c.s(f.$ms,3,"0");case"Z":return S}return null}(W)||S.replace(":","")})},l.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},l.diff=function(a,f,r){var p,S=this,L=c.p(f),U=h(a),F=(U.utcOffset()-this.utcOffset())*u,G=this-U,x=function(){return c.m(S,U)};switch(L){case N:p=x()/12;break;case g:p=x();break;case T:p=x()/3;break;case C:p=(G-F)/6048e5;break;case $:p=(G-F)/864e5;break;case E:p=G/D;break;case m:p=G/u;break;case A:p=G/d;break;default:p=G}return r?p:c.a(p)},l.daysInMonth=function(){return this.endOf(g).$D},l.$locale=function(){return b[this.$L]},l.locale=function(a,f){if(!a)return this.$L;var r=this.clone(),p=O(a,f,!0);return p&&(r.$L=p),r},l.clone=function(){return c.w(this.$d,this)},l.toDate=function(){return new Date(this.valueOf())},l.toJSON=function(){return this.isValid()?this.toISOString():null},l.toISOString=function(){return this.$d.toISOString()},l.toString=function(){return this.$d.toUTCString()},o}(),w=Y.prototype;return h.prototype=w,[["$ms",_],["$s",A],["$m",m],["$H",E],["$W",$],["$M",g],["$y",N],["$D",I]].forEach(function(o){w[o[1]]=function(l){return this.$g(l,o[0],o[1])}}),h.extend=function(o,l){return o.$i||(o(l,Y,h),o.$i=!0),h},h.locale=O,h.isDayjs=t,h.unix=function(o){return h(1e3*o)},h.en=b[P],h.Ls=b,h.p={},h})}),pe=Z(oe()),Se=Z(fe()),me=Z(de()),Ne=Z(ce()),be=Z(Te()),Ie=Z(he()),H=Z(Ee());H.default.extend(pe.default);H.default.extend(Se.default);H.default.extend(me.default);H.default.extend(Ne.default);H.default.extend(be.default);H.default.extend(Ie.default);function Le(e){H.default.tz.setDefault(e)}var ge=H.default;function _e(){const e=(0,H.default)();return e.date()===1&&e.hour()===0}function ue(e,n="YYYY-MM-DD HH:mm:ss"){if(e===null)return"";const d=Number(e);return H.default.tz(isNaN(d)?e:d).format(n)||""}function Ce(e,n,d,u){if(!e||e<=0)return"";const D=H.default.duration(e),_=Math.floor(D.asYears()),A=D.months(),m=D.days(),E=D.hours(),$=D.minutes(),C=D.seconds(),g=D.milliseconds();let T="";if(_>0&&(T+=`${_} ${R("date.duration.year")}  `),A>0&&(T+=`${A} ${R("date.duration.month")}  `),m>0&&(T+=`${m} ${R("date.duration.day")}  `),E>0&&(T+=`${E} ${R("date.duration.hours")}  `),$>0&&(T+=`${$} ${R("date.duration.minutes")}  `),C>0&&(T+=`${C} ${R("date.duration.seconds")}  `),!u&&g>0&&(T+=`${g} ${R("date.duration.milliseconds")}`),n&&d&&n.toString().length>13&&n.toString().length<=16){let N=Number(BigInt(String(n))-BigInt(String(d)));N=N%1e3,N>0&&(T+=N+R("date.duration.microseconds"))}if(n&&d&&n.toString().length>=19){let N=Number(BigInt(String(n))-BigInt(String(d)));N=N%1e3,N>0&&(T+=N+R("date.duration.nanoseconds"))}return T}function Ue(e){return e&&e.toString().length>=19?Number(String(e/1e6).split(".")[0]):e&&e.toString().length>13&&e.toString().length<=16?Number(String(e/1e3).split(".")[0]):e}function Be(e,n=""){if(e===null)return"";const d=Number(e);return(0,H.default)(isNaN(d)?e:d).tz().format(n)||""}function Ve(e,n="YYYY-MM-DD HH:mm:ss"){return ue(e,n)}function Ye(e,n="YYYY-MM-DD"){return ue(e,n)}function k({num:e=0,unit:n="d",time:d=Date.now(),mode:u="add",isTime:D=!1,resultType:_="string",format:A="YYYY-MM-DD HH:mm:ss"}){const m=D?H.default.tz(d):H.default.tz(H.default.tz(d).format("YYYY-MM-DD")+" 23:59:59"),E=(D?m[u](e,n):m[u](e,n).hour(0).minute(0).second(0)).tz();switch(_){case"string":return[E.format(A),m.format(A)];case"Date":return[new Date(E.format(A)),new Date(m.format(A))];case"Dayjs":return[E,m];case"number":return[E.valueOf(),m.valueOf()];default:return[E.format(A),m.format(A)]}}var Oe=[{text:R("date.yesterday"),value:()=>k({num:1,unit:"d",mode:"subtract",resultType:"Date"})},{text:R("date.lastWeek"),value:()=>k({num:7,unit:"d",mode:"subtract",resultType:"Date"})},{text:R("date.lastMonth"),value:()=>k({num:1,unit:"M",mode:"subtract",resultType:"Date"})},{text:R("date.lastThreeMonths"),value:()=>k({num:3,unit:"M",mode:"subtract",resultType:"Date"})}],Pe=[{text:R("date.lastHour"),value:()=>k({num:1,unit:"h",mode:"subtract",resultType:"Date",isTime:!0})},{text:R("date.lastThreeHours"),value:()=>k({num:3,unit:"h",mode:"subtract",resultType:"Date",isTime:!0})},{text:R("date.lastSixHours"),value:()=>k({num:6,unit:"h",mode:"subtract",resultType:"Date",isTime:!0})},{text:R("date.lastTwelveHours"),value:()=>k({num:12,unit:"h",mode:"subtract",resultType:"Date",isTime:!0})}].concat(Oe),Fe=[{text:R("date.today"),value:()=>k({num:0,unit:"d",mode:"subtract",resultType:"Date"})},{text:R("date.yesterday"),value:()=>k({num:1,unit:"d",mode:"subtract",resultType:"Date"})},{text:R("date.lastThreeDays"),value:()=>k({num:3,unit:"d",mode:"subtract",resultType:"Date"})},{text:R("date.lastWeek"),value:()=>k({num:7,unit:"d",mode:"subtract",resultType:"Date"})}],Ae=[{label:"ABS"},{label:"ACOS"},{label:"ASIN"},{label:"ATAN"},{label:"CEIL"},{label:"COS"},{label:"FLOOR"},{label:"LOG",filters:[{type:"select",label:"Log Field",options(e,n){return n},placeholder:"Select Field",field:"logField",defaultValue:""}]},{label:"POW",filters:[{type:"select",label:"Pow Field",options(e,n){return n},placeholder:"Select Field",field:"powField",defaultValue:""}]},{label:"ROUND"},{label:"SIN"},{label:"SQRT"},{label:"TAN"}],Re=[{label:"CHAR_LENGTH"},{label:"CONCAT",filters:[{type:"select",label:"Concat Fields",multiple:!0,collapseTags:!0,options(e,n){return n},placeholder:"Select Fields",field:"concatFields",defaultValue:[]}]},{label:"CONCAT_WS",filters:[{type:"input",label:"Separator",placeholder:"Separator_expr",field:"separator",defaultValue:""},{type:"select",label:"Concat Fields",multiple:!0,collapseTags:!0,options(e,n){return n},placeholder:"Select Fields",field:"concatFields",defaultValue:[]}],composeFn(e,n){return`${n.separator},${e},${n.concatFields.join(",")}`}},{label:"LENGTH"},{label:"LOWER"},{label:"LTRIM"},{label:"RTRIM"},{label:"SUBSTRING",filters:[{type:"number",label:"position",placeholder:"Separator_expr",field:"pos",defaultValue:""},{type:"number",label:"length",placeholder:"length",field:"len",defaultValue:""}]},{label:"SUBSTR",filters:[{type:"number",label:"position",placeholder:"Separator_expr",field:"pos",defaultValue:""},{type:"number",label:"length",placeholder:"length",field:"len",defaultValue:""}]},{label:"UPPER"}],ne=[{label:"APERCENTILE",applicableDataTypes:["NUMBER"],filters:[{type:"number",label:"p",placeholder:"p",min:0,max:100,field:"p",defaultValue:0},{type:"select",label:"algo_type",options:[{label:"default",value:"default"},{label:"t-digest",value:"t-digest"}],placeholder:"algo_type",field:"algo_type",defaultValue:"default"}
1],composeFn(e,n){return`${e},${n.p},"${n.algo_type}"`}},{label:"AVG",applicableDataTypes:["NUMBER"]},{label:"COUNT"},{label:"ELAPSED",applicableDataTypes:["TIMESTAMP"],filters:[{type:"select",label:"time_unit",options:[{label:"nanosecond",value:"1b"},{label:"microsecond",value:"1u"},{label:"millisecond",value:"1a"},{label:"second",value:"1s"},{label:"minute",value:"1m"},{label:"hour",value:"1h"},{label:"day",value:"1d"},{label:"week",value:"1w"}],placeholder:"time_unit",field:"time_unit",defaultValue:""}]},{label:"LEASTSQUARES",applicableDataTypes:["NUMBER"],filters:[{type:"number",label:"start_val",placeholder:"start_val",min:0,field:"start_val",defaultValue:0},{type:"number",label:"step_val",placeholder:"step_val",min:0,field:"step_val",defaultValue:0}]},{label:"SPREAD",applicableDataTypes:["NUMBER","TIMESTAMP"]},{label:"SUM",applicableDataTypes:["NUMBER"]},{label:"HYPERLOGLOG"},{label:"HISTOGRAM",applicableDataTypes:["NUMBER"],filters:[{type:"select",label:"bin_type",options:[{label:"user_input",value:"user_input"},{label:"linear_bin",value:"linear_bin"},{label:"log_bin",value:"log_bin"}],placeholder:"bin_type",field:"bin_type",defaultValue:""},{type:"input",label:"bin_description",placeholder:"bin_description",field:"bin_description",defaultValue:""}]},{label:"PERCENTILE",applicableDataTypes:["NUMBER"],filters:[{type:"array",itemType:"number",label:"p",placeholder:"p",min:0,max:100,field:"p",defaultValue:[]}]}],re=[{label:"BOTTOM",applicableDataTypes:["NUMBER"],filters:[{type:"number",label:"k",placeholder:"k",min:1,max:100,field:"k",defaultValue:1}]},{label:"FIRST"},{label:"INTERP",applicableDataTypes:["NUMBER"],filters:[{type:"select",label:"ignore_null_values",placeholder:"ignore_null_values",options:[{label:"true",value:1},{label:"false",value:0}],field:"ignore_null_values",defaultValue:0}]},{label:"LAST"},{label:"LAST_ROW"},{label:"MAX",applicableDataTypes:["NUMBER"]},{label:"MIN",applicableDataTypes:["NUMBER"]},{label:"MODE"},{label:"SAMPLE",filters:[{type:"number",label:"k",placeholder:"k",min:1,max:1e3,field:"k",defaultValue:1}]},{label:"TAIL",filters:[{type:"number",label:"k",placeholder:"k",min:1,max:100,field:"k",defaultValue:1},{type:"number",label:"offset_rows",placeholder:"offset_rows",min:0,max:100,field:"offset_rows",defaultValue:1}]},{label:"TOP",applicableDataTypes:["NUMBER"],filters:[{type:"number",label:"k",placeholder:"k",min:1,max:100,field:"k",defaultValue:1}]},{label:"UNIQUE"}],ye=[{label:"CSUM",applicableDataTypes:["NUMBER"]},{label:"DERIVATIVE",applicableDataTypes:["NUMBER"],filters:[{type:"number",label:"time_interval",placeholder:"time_interval(s)",min:1,max:100,field:"time_interval",defaultValue:1},{type:"select",label:"ignore_negative",options:[{label:"false",value:0},{label:"true",value:1}],placeholder:"ignore_negative",field:"ignore_negative",defaultValue:0}]},{label:"DIFF",applicableDataTypes:["NUMBER"],filters:[{type:"select",label:"ignore_negative",options:[{label:"false",value:0},{label:"true",value:1}],placeholder:"ignore_negative",field:"ignore_negative",defaultValue:0}]},{label:"IRATE",applicableDataTypes:["NUMBER"]},{label:"MAVG",applicableDataTypes:["NUMBER"],filters:[{type:"number",label:"k",placeholder:"k",min:1,max:1e3,field:"k",defaultValue:1}]},{label:"STATECOUNT",applicableDataTypes:["NUMBER"],filters:[{type:"select",label:"oper",options:[{label:"<",value:"LT"},{label:">",value:"GT"},{label:"<=",value:"LE"},{label:">=",value:"GE"},{label:"==",value:"EQ"}],placeholder:"oper",field:"oper",defaultValue:"LT"},{type:"number",label:"val",placeholder:"val",min:1,max:1/0,field:"val",defaultValue:1}]},{label:"STATEDURATION",applicableDataTypes:["NUMBER"],filters:[{type:"select",label:"oper",options:[{label:"<",value:"LT"},{label:">",value:"GT"},{label:"<=",value:"LE"},{label:">=",value:"GE"},{label:"==",value:"EQ"}],placeholder:"oper",field:"oper",defaultValue:"LT"},{type:"number",label:"val",placeholder:"val",min:1,max:1/0,field:"val",defaultValue:1},{type:"select",label:"unit",options:[{label:"nanosecond",value:"1b"},{label:"microsecond",value:"1u"},{label:"millisecond",value:"1a"},{label:"second",value:"1s"},{label:"minute",value:"1m"},{label:"hour",value:"1h"},{label:"day",value:"1d"},{label:"week",value:"1w"}
1],placeholder:"unit",field:"unit",defaultValue:""}]},{label:"TWA"}],le=["LEASTSQUARES","PERCENTILE","TOP","BOTTOM","ELAPSED","INTERP","DERIVATIVE","IRATE","TWA","HISTOGRAM","DIFF","STATECOUNT","STATEDURATION","CSUM","MAVG","SAMPLE","TAIL","UNIQUE","MODE"];function ae(e,n){return e.filter(d=>!d.applicableDataTypes||d.applicableDataTypes.includes(n))}var se={NUMBER:Ae.concat(ae(re,"NUMBER"),ae(ne,"NUMBER")).filter(e=>!le.includes(e.label)).sort((e,n)=>e.label.localeCompare(n.label)),STRING:Re.concat(ae(re,"STRING"),ae(ne,"STRING")).filter(e=>!le.includes(e.label)).sort((e,n)=>e.label.localeCompare(n.label)),AVGFN:ne.concat(re,ye).filter(e=>!le.includes(e.label)).sort((e,n)=>e.label.localeCompare(n.label))},Ge=Object.keys(se).reduce((e,n)=>(se[n].forEach(d=>{e.every(u=>u.label!=d.label)&&e.push(d)}),e),[]).sort((e,n)=>e.label.localeCompare(n.label)),ie=[">","<",">=","<=","!=","="],ve=["Contains"],He=["LIKE","NOT LIKE"],we=["BETWEEN","NOT BETWEEN"],We=["IN","NOT IN"],De=[{label:"IN"},{label:"BETWEEN",include:["TIMESTAMP","NUMBER"]},{label:"LIKE",include:["STRING"]},{label:"NOT LIKE",include:["STRING"]},{label:"NOT IN"},{label:"NOT BETWEEN",include:["TIMESTAMP","NUMBER"]},{label:"IS NULL"},{label:"IS NOT NULL"}];function ee(e){return De.filter(n=>!n.include||n.include.includes(e)).map(n=>n.label)}var xe=["IS NULL","IS NOT NULL"],ke={TIMESTAMP:ie.concat(ee("TIMESTAMP")),NUMBER:ie.concat(ee("NUMBER")),STRING:ie.concat(ee("STRING")),JSON:ve.concat(ee("JSON")),BOOL:["=","!="].concat(ee("BOOL"))},ze=["DECIMAL"],je=["BINARY","NCHAR","VARCHAR","GEOMETRY","VARBINARY"],Qe={BINARY:16374,NCHAR:4093,VARCHAR:16374,GEOMETRY:16382,VARBINARY:16382,DECIMAL:38},Ze=["VARCHAR","BINARY","NCHAR","GEOMETRY","VARBINARY"],Ke=["INT","INT UNSIGNED","BIGINT","BIGINT UNSIGNED","FLOAT","DOUBLE","SMALLINT","SMALLINT UNSIGNED","TINYINT","TINYINT UNSIGNED"],Xe=[{label:R("date.nanoseconds"),value:"b"},{label:R("date.microseconds"),value:"u"},{label:R("date.milliseconds"),value:"a"},{label:R("date.seconds"),value:"s"},{label:R("date.minutes"),value:"m"},{label:R("date.hours"),value:"h"},{label:R("date.days"),value:"d"},{label:R("date.weeks"),value:"w"},{label:R("date.months"),value:"n"},{label:R("date.years"),value:"y"}],Je=[{name:"buffer",type:"number",alter:!1,defaultValue:32},{name:"cachemodel",type:"string",alter:!0,defaultValue:"none"},{name:"cachesize",type:"number",alter:!0,defaultValue:1},{name:"comp",type:"number",alter:!1,defaultValue:2},{name:"duration",type:"number",alter:!1,defaultValue:"10d"},{name:"wal_fsync_period",type:"number",alter:!0,defaultValue:3e3},{name:"maxrows",type:"number",alter:!1,defaultValue:4096},{name:"minrows",type:"number",alter:!1,defaultValue:100},{name:"keep",type:"number",alter:!0,defaultValue:3650},{name:"pages",type:"number",alter:!1,defaultValue:256},{name:"pagesize",type:"number",alter:!1,defaultValue:4},{name:"precision",type:"string",alter:!1,defaultValue:"ms"},{name:"replica",type:"number",alter:!1,defaultValue:1},{name:"retentions",type:"string",alter:!1,defaultValue:""},{name:"strict",type:"string",alter:!1,defaultValue:"off",version:"<=3.0.2.4"},{name:"wal_level",type:"number",alter:!0,defaultValue:1},{name:"vgroups",type:"number",alter:!1,defaultValue:4},{name:"single_stable",type:"number",alter:!1,defaultValue:0},{name:"wal_retention_period",type:"number",alter:!1,defaultValue:3600},{name:"wal_retention_size",type:"number",alter:!1,defaultValue:0},{name:"wal_roll_period",type:"number",alter:!1,defaultValue:0,version:"<=3.0.7.1"},{name:"wal_segment_size",type:"number",alter:!1,defaultValue:0,version:"<=3.0.7.1"},{name:"stt_trigger",type:"number",alter:!1,defaultValue:1,version:">=3.0.5.0"},{name:"tsdb_pagesize",type:"number",alter:!1,defaultValue:4,version:">=3.0.5.0"},{name:"table_prefix",type:"number",alter:!1,version:">=3.0.5.0"},{name:"table_suffix",type:"number",alter:!1,version:">=3.0.5.0"}],qe=["INT","INT UNSIGNED","BIGINT","BIGINT UNSIGNED","FLOAT","DOUBLE","SMALLINT","SMALLINT UNSIGNED","TINYINT","TINYINT UNSIGNED","TIMESTAMP","BOOL","BINARY","VARCHAR","NCHAR","GEOMETRY","VARBINARY","DECIMAL","BLOB"],et=["ABORT","ACCOUNT","ACCOUNTS","ADD","AFTER","AGGREGATE","ALIAS","ALIVE","ALL","ALTER","ANALYZE","AND","ANODE","ANODES","ANOMALY_WINDOW","ANTI","APPS","ARBGROUPS","ARROW","AS","ASC","ASOF","AT_ONCE","ATTACH","BALANCE","BEFORE","BEGIN","BETWEEN","BIGINT","BIN","BINARY","BITAND","BITAND","BIT
1NOT","BITOR","BLOB","BLOCKS","BNODE","BNODES","BOOL","BOTH","BUFFER","BUFSIZE","BWLIMIT","BY","CACHE","CACHEMODEL","CACHESIZE","CASE","CAST","CHANGE","CHILD","CLIENT_VERSION","CLUSTER","COLON","COLUMN","COMMA","COMMENT","COMP","COMPACT","COMPACTS","CONCAT","CONFLICT","CONNECTION","CONNECTIONS","CONNS","CONSUMER","CONSUMERS","CONTAINS","COPY","COUNT","COUNT_WINDOW","CREATE","CREATEDB","CURRENT_USER","DATABASE","DATABASES","DBS","DECIMAL","DEFERRED","DELETE","DELETE_MARK","DELIMITERS","DESC","DESCRIBE","DETACH","DISTINCT","DISTRIBUTED","DIVIDE","DNODE","DNODES","DOT","DOUBLE","DROP","DURATION","EACH","ELSE","ENABLE","ENCRYPT_ALGORITHM","ENCRYPT_KEY","ENCRYPTIONS","END","EQ","EVENT_WINDOW","EVERY","EXCEPT","EXISTS","EXPIRED","EXPLAIN","FAIL","FHIGH","FILE","FILL","FILL_HISTORY","FIRST","FLOAT","FLOW","FLUSH","FOR","FORCE","FORCE_WINDOW_CLOSE","FROM","FROWTS","FULL","FUNCTION","FUNCTIONS","GE","GEOMETRY","GLOB","GRANT","GRANTS","GROUP","GT","HAVING","HEX","HOST","ID","IF","IGNORE","ILLEGAL","IMMEDIATE","IMPORT","IN","INDEX","INDEXES","INITIALLY","INNER","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","IPTOKEN","IROWTS","IS","IS_IMPORT","ISFILLED","ISNULL","JLIMIT","JOIN","JSON","KEEP","KEEP_TIME_OFFSET","KEY","KILL","LANGUAGE","LAST","LAST_ROW","LE","LEADER","LEADING","LEFT","LICENCES","LIKE","LIMIT","LINEAR","LOCAL","LOGS","LP","LSHIFT","LT","MACHINES","MATCH","MAX_DELAY","MAXROWS","MEDIUMBLOB","MERGE","META","MINROWS","MINUS","MNODE","MNODES","MODIFY","MODULES","NCHAR","NE","NEXT","NMATCH","NONE","NORMAL","NOT","NOTNULL","NOW","NULL","NULL_F","NULLS","OF","OFFSET","ON","ONLY","OR","ORDER","OUTER","OUTPUTTYPE","PAGES","PAGESIZE","PARTITION","PASS","PAUSE","PI","PLUS","PORT","POSITION","PPS","PRECISION","PREV","PRIMARY","PRIVILEGE","PRIVILEGES","QDURATION","QEND","QNODE","QNODES","QSTART","QTAGS","QTIME","QUERIES","QUERY","QUESTION","RAISE","RAND","RANGE","RATIO","READ","RECURSIVE","REDISTRIBUTE","REM","REPLACE","REPLICA","RESET","RESTORE","RESTRICT","RESUME","RETENTIONS","REVOKE","RIGHT","ROLLUP","ROW","ROWTS","RP","RSHIFT","S3_CHUNKPAGES","S3_COMPACT","S3_KEEPLOCAL","SCHEMALESS","SCORES","SELECT","SEMI","SERVER_STATUS","SERVER_VERSION","SESSION","SET","SHOW","SINGLE_STABLE","SLASH","SLIDING","SLIMIT","SMA","SMALLINT","SMIGRATE","SNODE","SNODES","SOFFSET","SPLIT","STABLE","STABLES","STAR","START","STATE","STATE_WINDOW","STATEMENT","STORAGE","STREAM","STREAMS","STRICT","STRING","STT_TRIGGER","SUBSCRIBE","SUBSCRIPTIONS","SUBSTR","SUBSTRING","SUBTABLE","SYSINFO","SYSTEM","TABLE","TABLE_PREFIX","TABLE_SUFFIX","TABLES","TAG","TAGS","TBNAME","THEN","TIMES","TIMESTAMP","TIMEZONE","TINYINT","TO","TODAY","TOPIC","TOPICS","TRAILING","TRANSACTION","TRANSACTIONS","TRIGGER","TRIM","TSDB_PAGESIZE","TSERIES","TSMA","TSMAS","TTL","UNION","UNSAFE","UNSIGNED","UNTREATED","UPDATE","USE","USER","USERS","USING","VALUE","VALUE_F","VALUES","VARBINARY","VARCHAR","VARIABLE","VARIABLES","VERBOSE","VGROUP","VGROUPS","VIEW","VIEWS","VNODE","VNODES","WAL","WAL_FSYNC_PERIOD","WAL_LEVEL","WAL_RETENTION_PERIOD","WAL_RETENTION_SIZE","WAL_ROLL_PERIOD","WAL_SEGMENT_SIZE","WATERMARK","WDURATION","WEND","WHEN","WHERE","WINDOW","WINDOW_CLOSE","WINDOW_OFFSET","WITH","WRITE","WSTART","_C0","_IROWTS","_QDURATION","_QEND","_QSTART","_ROWTS","_WDURATION","_WEND","_WSTART"],tt=["parent","node-key","typeName","privileges","databaseId","databaseName","databaseAccessType"],at="PENDING_EXPLORER_REDIRECT",nt=/Android|webOS|iPhone|iPod|BlackBerry/i.test(window.navigator.userAgent);export{Ye as A,Oe as C,Be as D,ge as E,Ee as F,Te as I,ce as L,_e as M,ue as N,Ce as O,Le as P,fe as R,ke as S,Ue as T,Xe as _,Je as a,je as b,at as c,Re as d,He as f,Ze as g,et as h,tt as i,Ve as j,k,re as l,Ke as m,we as n,xe as o,qe as p,We as r,Ae as s,ne as t,se as u,ye as v,Pe as w,Qe as x,ze as y,oe as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.