/*! For license information please see module.js.LICENSE.txt */ /* [create-plugin] version: 6.7.5 */ /* [create-plugin] plugin: grafana-lokiexplore-app@1.0.35 */ define(["@emotion/css","@emotion/react","@grafana/data","@grafana/runtime","@grafana/ui","i18next","lodash","module","react","react-dom","react-redux","react-router","redux","rxjs"],(e,t,r,n,i,s,o,a,l,u,h,c,f,O)=>(()=>{var d,p,g,m,$={66709:(e,t,r)=>{"use strict";r.r(t),r.d(t,{plugin:()=>P});var n=r(41308),i=r.n(n);r.p=i()&&i().uri?i().uri.slice(0,i().uri.lastIndexOf("/")+1):"public/plugins/grafana-lokiexplore-app/";var s=r(85959),o=r.n(s),a=r(87781),l=r(35591),u=r(62533),h=r(82007);const c=(0,s.lazy)(()=>r.e(546).then(r.bind(r,78546))),f=(0,s.lazy)(()=>Promise.all([r.e(854),r.e(944),r.e(812),r.e(909),r.e(553),r.e(794)]).then(r.bind(r,40677)));var O=r(47389);function d(e,t,r,n,i,s,o){try{var a=e[s](o),l=a.value}catch(e){return void r(e)}a.done?t(l):Promise.resolve(l).then(n,i)}function p(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function o(e){d(s,n,i,o,a,"next",e)}function a(e){d(s,n,i,o,a,"throw",e)}o(void 0)})}}const g=(0,s.lazy)(()=>p(function*(){yield(0,l.wR)(u.id);const{wasmSupported:e}=yield Promise.all([r.e(854),r.e(944),r.e(812),r.e(909),r.e(553),r.e(398)]).then(r.bind(r,52601)),{default:t}=yield Promise.all([r.e(854),r.e(944),r.e(812),r.e(909),r.e(553),r.e(398)]).then(r.bind(r,41296)),{default:n}=yield r.e(854).then(r.bind(r,81854)),{default:i}=yield r.e(944).then(r.bind(r,16944));return t(),e()&&(yield Promise.all([n(),i()])),Promise.all([r.e(909),r.e(82)]).then(r.bind(r,5082))})()),m=(0,s.lazy)(()=>p(function*(){return yield(0,l.wR)(u.id),yield Promise.all([r.e(854),r.e(944),r.e(812),r.e(909),r.e(553),r.e(813)]).then(r.bind(r,36826))})()),$=(0,s.lazy)(()=>p(function*(){return yield(0,l.wR)(u.id),yield Promise.all([r.e(854),r.e(944),r.e(812),r.e(909),r.e(755),r.e(431),r.e(553),r.e(956)]).then(r.bind(r,32271))})()),P=(new a.AppPlugin).setRootPage(g).addConfigPage({body:m,icon:"cog",id:"configuration",title:"Configuration"}).addConfigPage({body:$,icon:"columns",id:"admin-default-fields",title:"Default fields"});for(const e of O.Ge)P.addLink(e);for(const e of O.aK)P.addFunction(e);P.exposeComponent({component:function(e){return o().createElement(s.Suspense,{fallback:o().createElement(h.LinkButton,{variant:"secondary",disabled:!0},"Open in Logs Drilldown")},o().createElement(c,e))},description:"A button that opens a logs view in the Logs Drilldown app.",id:"grafana-lokiexplore-app/open-in-explore-logs-button/v1",title:"Open in Logs Drilldown button"}),P.exposeComponent({component:function(e){return(0,l.wR)(u.id),o().createElement(s.Suspense,{fallback:o().createElement("div",null,"Loading Logs Drilldown...")},o().createElement(f,e))},description:"A component that renders a logs exploration view that can be embedded in other parts of Grafana.",id:"grafana-lokiexplore-app/embedded-logs-exploration/v1",title:"Embedded Logs Exploration"})},2192:(e,t,r)=>{"use strict";var n=r(85959),i=Symbol.for("react.element"),s=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,s={},u=null,h=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(h=t.ref),t)o.call(t,n)&&!l.hasOwnProperty(n)&&(s[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===s[n]&&(s[n]=t[n]);return{$$typeof:i,type:e,key:u,ref:h,props:s,_owner:a.current}}t.jsx=u,t.jsxs=u},62540:(e,t,r)=>{"use strict";e.exports=r(2192)},88469:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n,o:()=>i});const n="pageSlug",i="drillDownLabel"},77839:(e,t,r)=>{"use strict";r.d(t,{G3:()=>i,_J:()=>s,ob:()=>n});var n=function(e){return e.logs="Logs",e.labels="Labels",e.fields="Fields",e.patterns="Patterns",e}({}),i=function(e){return e.explore="explore",e.logs="logs",e.labels="labels",e.patterns="patterns",e.fields="fields",e.embed="embed",e}({}),s=function(e){return e.field="field",e.label="label",e}({})},47389:(e,t,r)=>{"use strict";r.d(t,{Ge:()=>m,I8:()=>k,Rk:()=>y,XH:()=>R,aK:()=>$,n9:()=>Q,rx:()=>x,uu:()=>X,vh:()=>b,xh:()=>w,zH:()=>S});var n=r(93241),i=r(87781),s=r(18531),o=r(62533),a=r(74247),l=r(66854),u=r(73257),h=r(90708),c=r(48848),f=r(28057),O=r(90020);const d="Grafana Logs Drilldown",p=`Open in ${d}`,g=`Open current query in the ${d} view`,m=[{targets:[i.PluginExtensionPoints.DashboardPanelMenu,i.PluginExtensionPoints.ExploreToolbarAction,"grafana-metricsdrilldown-app/open-in-logs-drilldown/v1","grafana-assistant-app/navigateToDrilldown/v1"],title:p,description:g,icon:"gf-logs",path:y(),configure:Q}],$=[{targets:"grafana-exploretraces-app/get-logs-drilldown-link/v1",title:"Open Logs Drilldown",description:"Returns url to logs drilldown app",fn:Q}];function P(e){return e||O.ZO}function x(e){return null==e?void 0:e.replace(/\\\\/g,"\\")}function b(e){return e?(0,O.OQ)(x(e)):O.ZO}function v(e){return e?R(x(e)):O.ZO}function Q(e){var t;if(!e||!e.targets)return;const r=e.targets.find(e=>{var t;return"loki"===(null===(t=e.datasource)||void 0===t?void 0:t.type)}),n=(0,s.getTemplateSrv)(),i=n.replace(null==r||null===(t=r.datasource)||void 0===t?void 0:t.uid,e.scopedVars);if(!r||!i)return;if(!(null==r?void 0:r.expr))return{path:y()};const o=n.replace(r.expr,e.scopedVars,_),{fields:f,labelFilters:d,lineFilters:p,patternFilters:g}=(0,u.BW)(o,e,r),m=d.find(e=>(0,h.BG)(e.operator));if(!m)return{path:y()};const $=X(m.value.split("|")[0]);let Q=m.key===O.OX?"service":m.key;d.sort(e=>e.key===Q?-1:1);let E=w(k.DatasourceId,i,new URLSearchParams);return E=w(k.TimeRangeFrom,e.timeRange.from.valueOf().toString(),E),E=w(k.TimeRangeTo,e.timeRange.to.valueOf().toString(),E),E=function(e,t){for(const r of e){if(r.type!==a.H.Indexed)continue;const e=`${r.key}|${r.operator}|${R(b(r.value))},${R(x(r.value))}`;t=S(k.Labels,e,t)}return t}(d,E),p&&(E=function(e,t){for(const r of e)t=S(k.LineFilters,`${r.key}|${R(r.operator)}|${R(P(r.value))}`,t);return t}(p,E)),(null==f?void 0:f.length)&&(E=function(e,t){for(const r of e)if(r.type===a.H.StructuredMetadata)t=r.key===O.e4?S(k.Levels,`${r.key}|${r.operator}|${R(P(r.value))}`,t):S(k.Metadata,`${r.key}|${r.operator}|${R(b(r.value))},${R(x(r.value))}`,t);else{const e={value:r.value,parser:r.parser},n=`${r.key}|${r.operator}|${R(b(JSON.stringify(e)))},${v(e.value)}`;t=S(k.Fields,n,t)}return t}(f,E)),(null==g?void 0:g.length)&&(E=function(e,t){const r=[];for(const t of e)r.push({type:t.operator===l.a6.match?"include":"exclude",pattern:P(t.value)});let n=(0,c.M)(r);return t=S(k.Patterns,JSON.stringify(r),t),S(k.PatternsVariable,n,t)}(g,E)),e.sortOrder&&(E=S(k.SortOrder,JSON.stringify(e.sortOrder),E)),{path:y(`/explore/${Q}/${$}/logs`,E)}}function y(e="/explore",t){return`/a/${o.id}${e}${t?`?${t.toString()}`:""}`}const k={DatasourceId:`var-${O.EY}`,TimeRangeFrom:"from",TimeRangeTo:"to",Labels:`var-${O.MB}`,Fields:`var-${O.mB}`,Metadata:`var-${O._P}`,Levels:`var-${O._Y}`,LineFilters:`var-${O.NW}`,Patterns:O.uw,PatternsVariable:`var-${O.uw}`,SortOrder:"sortOrder"};function w(e,t,r){var n;const i=new URLSearchParams(null!==(n=null==r?void 0:r.toString())&&void 0!==n?n:s.locationService.getSearch());return i.set(e,t),i}function S(e,t,r){const n=s.locationService.getLocation();var i;const o=new URLSearchParams(null!==(i=null==r?void 0:r.toString())&&void 0!==i?i:n.search);return o.append(e,t),o}function X(e){return(0,O.Dx)(e).replace(/\//g,"-").replace(/\\/g,"-")}function R(e){return function(e){return null==e?"":/,/g[Symbol.replace](e,"__gfc__")}(function(e){return null==e?"":/\|/g[Symbol.replace](e,"__gfp__")}(e))}function _(e,t){if(!t.multi&&!t.includeAll)return e;if("string"==typeof e)return(0,f.Q)(e);return(0,n.map)(e,f.F).join("|")}},28057:(e,t,r)=>{"use strict";function n(e){return e.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/"/g,'\\"')}function i(e){return"string"==typeof e?e.replace(/\\/g,"\\\\\\\\").replace(/[$^*{}\[\]+?.()|]/g,"\\\\$&"):e}r.d(t,{F:()=>i,Q:()=>n})},74247:(e,t,r)=>{"use strict";r.d(t,{H:()=>n});var n=function(e){return e.Indexed="I",e.StructuredMetadata="S",e.Parsed="P",e}({})},66854:(e,t,r)=>{"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{KQ:()=>i,Rk:()=>o,a6:()=>u,cK:()=>l,h8:()=>s,ld:()=>h,w7:()=>a});var i=function(e){return e.Equal="=",e.NotEqual="!=",e.RegexEqual="=~",e.RegexNotEqual="!~",e}({}),s=function(e){return e.Empty=" ",e}({}),o=function(e){return e.gt=">",e.lt="<",e.gte=">=",e.lte="<=",e}({});const a=function(e){for(var t=1;t{"use strict";r.d(t,{v:()=>u});var n=r(18531);var i=r(62533),s=r(88428);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){for(var t=1;t{const r=a({},l,t);console.error(e,r),f(e,r)},info:(e,t)=>{const r=a({},l,t);h(e,r)},warn:(e,t)=>{const r=a({},l,t);console.warn(e,r),c(e,r)}},h=(e,t)=>{try{(0,n.logInfo)(e,t)}catch(e){console.warn("Failed to log faro event!")}},c=(e,t)=>{try{(0,n.logWarning)(e,t)}catch(r){console.warn("Failed to log faro warning!",{context:t,msg:e})}};const f=(e,t)=>{let r=t;try{!function(e,t){if("object"==typeof e&&null!==e&&((0,s.u4)(e)&&Object.keys(e).forEach(r=>{const n=e[r];"string"!=typeof n&&"boolean"!=typeof n&&"number"!=typeof n||(t[r]=n.toString())}),O(e)))if("object"==typeof e.data&&null!==e.data)try{t.data=JSON.stringify(e.data)}catch(e){}else"string"!=typeof e.data&&"boolean"!=typeof e.data&&"number"!=typeof e.data||(t.data=e.data.toString())}(e,r),e instanceof Error?(0,n.logError)(e,r):"string"==typeof e?(0,n.logError)(new Error(e),r):e&&"object"==typeof e?r.msg?(0,n.logError)(new Error(r.msg),r):(0,n.logError)(new Error("error object"),r):(0,n.logError)(new Error("unknown error"),r)}catch(t){console.error("Failed to log faro error!",{context:r,err:e})}},O=e=>"data"in e},73257:(e,t,r)=>{"use strict";r.d(t,{BW:()=>p,QH:()=>u,T0:()=>m});var n=r(12344),i=r(74247),s=r(66854),o=r(83142);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l{static fromNode(e){return new l(e.from,e.to,e,e.type)}contains(e){return this.from<=e.from&&this.to>=e.to}getExpression(e){return e.substring(this.from,this.to)}constructor(e,t,r,n){a(this,"from",void 0),a(this,"to",void 0),a(this,"type",void 0),a(this,"syntaxNode",void 0),this.from=e,this.to=t,this.type=n,this.syntaxNode=r}}function u(e,t){const r=[];return n.K3.parse(e).iterate({enter:e=>{(void 0===t||t.includes(e.type.id))&&r.push(e.node)}}),r}function h(e,t){if(e.type.id===t)return[l.fromNode(e)];const r=[];let n=0,i=e.childAfter(n);for(;i;)r.push(...h(i,t)),n=i.to,i=e.childAfter(n);return r}function c(e,t,r,n,i){const o=i===s.cK.regex||i===s.cK.negativeRegex,a=e.includes("(?i)")&&o;if('"'===t&&o){const t=new RegExp(/\\\\/,"g");e=e.replace(t,"\\")}else if('"'===t){const t=new RegExp('\\\\"',"g");e=e.replace(t,'"');const r=new RegExp(/\\\\/,"g");e=e.replace(r,"\\")}return a&&(e=e.replace("(?i)","")),r.push({key:a?s.ld.caseInsensitive.toString():s.ld.caseSensitive.toString()+","+n.toString(),operator:i,value:e}),e}function f(e,t,r){const n=new RegExp(/\\"/,"g");e=e.replace(n,'"'),t.push({operator:r,value:e})}function O(e){return h(e,n._2).length?s.w7.lte:h(e,n.Hd).length?s.w7.lt:h(e,n.H3).length?s.w7.gte:h(e,n.AN).length?s.w7.gt:void console.warn("unknown numeric operator")}function d(e){return h(e,n.Eq).length?s.w7.Equal:h(e,n.l3).length?s.w7.NotEqual:h(e,n.Re).length?s.w7.RegexEqual:h(e,n.q6).length?s.w7.RegexNotEqual:void 0}function p(e,t,r){const a=[],p=u(e,[n.MD]);if(0===p.length)return{labelFilters:a};const g=function(e){const t=[],r=u(e,[n.g$]);for(const o of r){const r=h(o,n.gw);if(!r||0===r.length)continue;const a=h(o,n.Qf),l=e.substring(r[0].to,a[0].from),u=r[0].getExpression(e),c=a.map(t=>e.substring(t.from+1,t.to-1))[0];u&&c&&(l===s.w7.NotEqual||l===s.w7.Equal||l===s.w7.RegexEqual||l===s.w7.RegexNotEqual)&&t.push({key:u,operator:l,type:i.H.Indexed,value:c})}return t}(h(p[0],n.MD)[0].getExpression(e)),m=function(e,t,r){var s;const a=[],c=null==t||null===(s=t.data)||void 0===s?void 0:s.series.find(e=>e.refId===(null==r?void 0:r.refId)),f=u(e,[n.bY]);for(const t of f){var p;const r=l.fromNode(t).getExpression(e);if(t.getChild(n.bY))continue;if("__error__"===r.substring(0,9))continue;const s=u(e.substring(0,t.node.to),[n.c$]),f=u(e.substring(0,t.node.to),[n.LM]),m=null===(p=h(t,n.gw)[0])||void 0===p?void 0:p.getExpression(e),$=h(t,n.Qf),P=h(t,n.wN),x=h(t,n.Ix),b=h(t,n.dw);let v,Q,y,k;if($.length)Q=d(t),v=e.substring($[0].from+1,$[0].to-1);else if(P.length)v=P[0].getExpression(e),Q=O(t);else if(b.length)Q=O(t),v=b[0].getExpression(e);else{if(!x.length)continue;Q=O(t),v=x[0].getExpression(e)}var g;c&&(y=null!==(g=(0,o.E)(m,c))&&void 0!==g?g:void 0,y===i.H.StructuredMetadata&&(k="structuredMetadata")),Q&&(k||(s.length&&f.length?k="mixed":s.length?k="logfmt":f.length?k="json":(y=null!=y?y:i.H.StructuredMetadata,k="structuredMetadata")),a.push({key:m,operator:Q,parser:k,type:null!=y?y:i.H.Parsed,value:v}))}return a}(e,t,r),{lineFilters:P,patternFilters:x}=function(e){const t=[],r=[],i=u(e,[n.PN]);for(const[o,a]of i.entries()){const i=h(a,n.Sg),l=h(a,n.q5),u=h(a,n.l3),O=h(a,n.q6),d=h(a,n.ds),p=h(a,n._9),g=$(a);for(const n of g){const h=e.substring((null==n?void 0:n.from)+1,null==n?void 0:n.from);let g=e.substring((null==n?void 0:n.from)+1,(null==n?void 0:n.to)-1);if(g.length){let n;if(i.length)n=s.cK.match;else if(u.length)n=s.cK.negativeMatch;else if(O.length)n=s.cK.negativeRegex;else if(l.length)n=s.cK.regex;else if(d.length)n=s.a6.match;else{if(!p.length){console.warn("unknown line filter",{query:e.substring(a.from,a.to)});continue}n=s.a6.negativeMatch}n!==s.a6.match&&n!==s.a6.negativeMatch?c(g,h,t,o,n):f(g,r,n)}}}return{lineFilters:t,patternFilters:r}}(e);return{fields:m,labelFilters:g,lineFilters:P,patternFilters:x}}const g=0;function m(e){return!1===function(e,t){let r=!1;return n.K3.parse(e).iterate({enter:({type:e})=>{if(e.id===t)return r=!0,!1}}),r}(e,g)}function $(e){const t=[];let r=e;do{const e=r.getChild(n.Qf);e&&!r.getChild(n.w7)&&t.push(e),r=r.getChild(n.ih)}while(null!=r);return t}},83142:(e,t,r)=>{"use strict";r.d(t,{E:()=>s,t:()=>i});var n=r(74247),i=function(e){return e.Backward="backward",e.Forward="forward",e.Scan="scan",e}({});function s(e,t,r=0){var i;const s=null===(i=t.fields.find(e=>"labelTypes"===e.name))||void 0===i?void 0:i.values[r];if(!s)return null;switch(s[e]){case"I":return n.H.Indexed;case"S":return n.H.StructuredMetadata;case"P":return n.H.Parsed;default:return null}}},88428:(e,t,r)=>{"use strict";r.d(t,{DU:()=>$,EP:()=>b,FH:()=>d,Gj:()=>w,Hy:()=>k,O8:()=>S,OK:()=>m,QX:()=>X,Wf:()=>x,Zt:()=>g,aJ:()=>c,cK:()=>l,fS:()=>p,jB:()=>R,kR:()=>P,lb:()=>f,mx:()=>v,nv:()=>Q,sJ:()=>y,u4:()=>h,v_:()=>O});var n=r(87781),i=r(88469),s=r(77839),o=r(66854);const a=e=>"object"==typeof e&&null!==e;function l(e,t){return t in e}const u=e=>"string"==typeof e&&e||"",h=e=>"object"==typeof e;function c(e){let t=[];if(Array.isArray(e))for(let r=0;r{var t,r,n,i,s,o;return{statusText:null!==(n=e.statusText)&&void 0!==n?n:"",trace:null!==(i=e.traceId)&&void 0!==i?i:"",status:null!==(s=null===(t=e.status)||void 0===t?void 0:t.toString())&&void 0!==s?s:"",msg:null!==(o=null===(r=e.data)||void 0===r?void 0:r.message)&&void 0!==o?o:""}};class X extends Error{}function R(e){return Array.isArray(e)?e.map(e=>function(e){return"object"!=typeof e||null===e?null:"title"in e&&"description"in e&&"query"in e&&"timestamp"in e&&"dsUid"in e&&"uid"in e?{description:u(e.description),dsUid:u(e.dsUid),query:u(e.query),timestamp:Number(e.timestamp),title:u(e.title),uid:u(e.uid)}:null}(e)).filter(e=>null!==e):[]}},90708:(e,t,r)=>{"use strict";r.d(t,{BG:()=>s,Lw:()=>o,SM:()=>a,iu:()=>l});var n=r(66854),i=r(74532);const s=e=>e===n.w7.Equal||e===n.w7.RegexEqual,o=e=>e===n.w7.NotEqual||e===n.w7.RegexNotEqual,a=e=>e===n.w7.RegexEqual||e===n.w7.RegexNotEqual,l=e=>i.nB.includes(e)},74532:(e,t,r)=>{"use strict";r.d(t,{_i:()=>a,eb:()=>h,nB:()=>l,hI:()=>u,II:()=>o});var n=r(66854),i=r(25953);function s(e){if(e===n.w7.NotEqual)return"Not equal";if(e===n.w7.RegexNotEqual)return"Does not match regex";if(e===n.w7.Equal)return"Equals";if(e===n.w7.RegexEqual)return"Matches regex";if(e===n.w7.lt)return"Less than";if(e===n.w7.gt)return"Greater than";if(e===n.w7.gte)return"Greater than or equal to";if(e===n.w7.lte)return"Less than or equal to";const t=new Error("Invalid operator!");throw i.v.error(t,{msg:"Invalid operator",operator:e}),t}const o=[n.w7.Equal,n.w7.NotEqual,n.w7.RegexEqual,n.w7.RegexNotEqual].map((e,t,r)=>({description:s(e),label:e,value:e})),a=[n.w7.Equal,n.w7.RegexEqual].map(e=>({description:s(e),label:e,value:e})),l=[n.w7.gt,n.w7.gte,n.w7.lt,n.w7.lte],u=l.map(e=>({description:s(e),label:e,value:e})),h=[{label:"match",value:n.cK.match},{label:"negativeMatch",value:n.cK.negativeMatch},{label:"regex",value:n.cK.regex},{label:"negativeRegex",value:n.cK.negativeRegex}]},48848:(e,t,r)=>{"use strict";r.d(t,{M:()=>i});var n=r(28057);function i(e){const t=e.filter(e=>"exclude"===e.type).map(e=>`!> "${(0,n.Q)(e.pattern)}"`).join(" ").trim(),r=e.filter(e=>"include"===e.type);let i="";return r.length>0&&(i=1===r.length?`|> "${(0,n.Q)(r[0].pattern)}"`:`|> ${r.map(e=>`"${(0,n.Q)(e.pattern)}"`).join(" or ")}`),`${t} ${i}`.trim()}},90020:(e,t,r)=>{"use strict";r.d(t,{Do:()=>Z,Du:()=>b,Dx:()=>K,EY:()=>y,Gb:()=>v,Gd:()=>u,Jg:()=>P,LI:()=>$,MB:()=>n,NW:()=>C,OQ:()=>ee,OX:()=>D,Oc:()=>l,QE:()=>A,S1:()=>i,S6:()=>O,SA:()=>U,Sy:()=>I,To:()=>G,VL:()=>T,WM:()=>j,Wi:()=>H,YN:()=>E,ZO:()=>B,_P:()=>f,_Y:()=>g,e4:()=>L,eL:()=>Y,fJ:()=>V,fK:()=>S,fi:()=>s,gR:()=>k,gp:()=>_,jf:()=>R,kl:()=>Q,ky:()=>F,lV:()=>w,ll:()=>o,mB:()=>a,mF:()=>q,pT:()=>W,pw:()=>X,qZ:()=>m,rl:()=>z,sC:()=>p,sL:()=>c,uw:()=>d,w0:()=>h,zE:()=>J,zp:()=>x});const n="filters",i="${filters}",s="filters_replica",o="${filters_replica}",a="fields",l="${fields}",u="${pendingFields}",h="${pendingMetadata}",c="all-fields",f="metadata",O="${metadata}",d="patterns",p="${patterns}",g="levels",m="${levels}",$="fieldBy",P="labelBy",x="${labelBy}",b="primary_label_search",v="primary_label",Q="${primary_label}",y="ds",k="${ds}",w="jsonFields",S="${jsonFields}",X="lineFormat",R="${lineFormat}",_="| json | logfmt | drop __error__, __error_details__",E=`| json ${S} | logfmt | drop __error__, __error_details__`,T=`| json ${S} | drop __error__, __error_details__`,q="| logfmt",A="logsFormat",N="${logsFormat}",j="lineFilterV2",C="lineFilters",z="${lineFilters}",U=`{${i}} ${m} ${O} ${p} ${z} | json ${S} | logfmt | drop __error__, __error_details__ ${l} ${R}`,Z=`{${i}} ${m} ${O} ${p} ${z} ${E} ${l}`,V=`{${i}} ${m} ${h} ${p} ${z} ${`| json ${S} | logfmt | drop __error__, __error_details__`} ${u}`,I=`{${i}} ${u} ${O} ${p} ${z} ${N} ${l}`,W=`{${i}} ${O} ${p} ${N}`,Y={uid:k},G="$__all",L="detected_level",D="service_name",F="service",H="var_aggregated_metrics",B='""',M="__CVΩ__";function K(e=""){return e.startsWith(M)?e.substring(M.length):e}function J(e=""){return e.startsWith(M)}function ee(e=""){return M+e}},7151:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},46089:t=>{"use strict";t.exports=e},79089:e=>{"use strict";e.exports=t},87781:e=>{"use strict";e.exports=r},18531:e=>{"use strict";e.exports=n},82007:e=>{"use strict";e.exports=i},211:e=>{"use strict";e.exports=s},93241:e=>{"use strict";e.exports=o},41308:e=>{"use strict";e.exports=a},85959:e=>{"use strict";e.exports=l},48398:e=>{"use strict";e.exports=u},30200:e=>{"use strict";e.exports=h},81159:e=>{"use strict";e.exports=c},7694:e=>{"use strict";e.exports=f},31269:e=>{"use strict";e.exports=O},90116:(e,t,r)=>{"use strict";r.d(t,{$0:()=>P,AY:()=>b,Hp:()=>h,IP:()=>c,LE:()=>m,MB:()=>n,NY:()=>i,Nm:()=>v,bE:()=>u,d_:()=>s,fY:()=>l,jQ:()=>a,k8:()=>O,mz:()=>x,rT:()=>o,tS:()=>$,tv:()=>g,w2:()=>d,wQ:()=>p,wi:()=>Q,y6:()=>f});const n="en-US",i="fr-FR",s="es-ES",o="de-DE",a="pt-BR",l="zh-Hans",u="it-IT",h="ja-JP",c="id-ID",f="ko-KR",O="ru-RU",d="cs-CZ",p="nl-NL",g="hu-HU",m="pt-PT",$="pl-PL",P="sv-SE",x="tr-TR",b="zh-Hant",v=n,Q="pseudo"},35591:(e,t,r)=>{"use strict";r.d(t,{x6:()=>te,wR:()=>M,t:()=>ee});var n=r(62540),i=r(211);const{slice:s,forEach:o}=[];let a=!1;try{document.cookie,a=!0}catch(e){}const l=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];a||l.splice(1,1);var u=r(85959),h=r(7151),c=r.n(h),f=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function O(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(c()[r[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("--\x3e");return{type:"comment",comment:-1!==n?e.slice(4,n):""}}for(var i=new RegExp(f),s=null;null!==(s=i.exec(e));)if(s[0].trim())if(s[1]){var o=s[1].trim(),a=[o,""];o.indexOf("=")>-1&&(a=o.split("=")),t.attrs[a[0]]=a[1],i.lastIndex--}else s[2]&&(t.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return t}var d=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,p=/^\s*$/,g=Object.create(null);function m(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var r in e)t.push(r+'="'+e[r]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(m,"")+"";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var $={parse:function(e,t){t||(t={}),t.components||(t.components=g);var r,n=[],i=[],s=-1,o=!1;if(0!==e.indexOf("<")){var a=e.indexOf("<");n.push({type:"text",content:-1===a?e:e.substring(0,a)})}return e.replace(d,function(a,l){if(o){if(a!=="")return;o=!1}var u,h="/"!==a.charAt(1),c=a.startsWith("\x3c!--"),f=l+a.length,d=e.charAt(f);if(c){var g=O(a);return s<0?(n.push(g),n):((u=i[s]).children.push(g),n)}if(h&&(s++,"tag"===(r=O(a)).type&&t.components[r.name]&&(r.type="component",o=!0),r.voidElement||o||!d||"<"===d||r.children.push({type:"text",content:e.slice(f,e.indexOf("<",f))}),0===s&&n.push(r),(u=i[s-1])&&u.children.push(r),i[s]=r),(!h||r.voidElement)&&(s>-1&&(r.voidElement||r.name===a.slice(2,-1))&&(s--,r=-1===s?n:i[s]),!o&&"<"!==d&&d)){u=-1===s?n:i[s].children;var m=e.indexOf("<",f),$=e.slice(f,-1===m?void 0:m);p.test($)&&($=" "),(m>-1&&s+u.length>=0||" "!==$)&&u.push({type:"text",content:$})}}),n},stringify:function(e){return e.reduce(function(e,t){return e+m("",t)},"")}};const P=$,x=(e,t,r,n)=>{const i=[r,{code:t,...n||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);Q(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},b={},v=(e,t,r,n)=>{Q(r)&&b[r]||(Q(r)&&(b[r]=new Date),x(e,t,r,n))},Q=e=>"string"==typeof e,y=e=>"object"==typeof e&&null!==e,k=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,w={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},S=e=>w[e];let X={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(k,S)};const R=(e={})=>{X={...X,...e}},_=()=>X;let E;const T=e=>{E=e},q=()=>E,A=(e,t)=>{if(!e)return!1;const r=e.props?.children??e.children;return t?r.length>0:!!r},N=e=>{if(!e)return[];const t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?j(t):t},j=e=>Array.isArray(e)?e:[e],C=(e,t,r,n)=>{if(!e)return"";let i="";const s=j(e),o=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return s.forEach((e,s)=>{if(Q(e))i+=`${e}`;else{if((0,u.isValidElement)(e)){const{props:a,type:l}=e,u=Object.keys(a).length,h=o.indexOf(l)>-1,c=a.children;if(!c&&h&&!u)return void(i+=`<${l}/>`);if(!c&&(!h||u)||a.i18nIsDynamicList)return void(i+=`<${s}>`);if(h&&1===u&&Q(c))return void(i+=`<${l}>${c}`);const f=C(c,t,r,n);return void(i+=`<${s}>${f}`)}if(null!==e){if(y(e)){const{format:t,...s}=e,o=Object.keys(s);if(1===o.length){const e=t?`${o[0]}, ${t}`:o[0];return void(i+=`{{${e}}}`)}return void x(r,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:n,child:e})}x(r,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:n,child:e})}else x(r,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:n})}}),i},z=(e,t,r,n,i,s,o)=>{if(""===r)return[];const a=i.transKeepBasicHtmlNodesFor||[],l=r&&new RegExp(a.map(e=>`<${e}`).join("|")).test(r);if(!(e||t||l||o))return[r];const h=t??{},c=e=>{j(e).forEach(e=>{Q(e)||(A(e)?c(N(e)):y(e)&&!(0,u.isValidElement)(e)&&Object.assign(h,e))})};c(e);const f=P.parse(`<0>${r}`),O={...h,...s},d=(e,t,r)=>{const n=N(e),i=g(n,t.children,r);return(e=>Array.isArray(e)&&e.every(u.isValidElement))(n)&&0===i.length||e.props?.i18nIsDynamicList?n:i},p=(e,t,r,n,i)=>{e.dummy?(e.children=t,r.push((0,u.cloneElement)(e,{key:n},i?void 0:t))):r.push(...u.Children.map([e],e=>{const r={...e.props};return delete r.i18nIsDynamicList,(0,u.createElement)(e.type,{...r,key:n,ref:e.props.ref??e.ref},i?null:t)}))},g=(e,r,s)=>{const h=j(e);return j(r).reduce((e,r,c)=>{const f=r.children?.[0]?.content&&n.services.interpolator.interpolate(r.children[0].content,O,n.language);if("tag"===r.type){let o=h[parseInt(r.name,10)];!o&&t&&(o=t[r.name]),1!==s.length||o||(o=s[0][r.name]),o||(o={});const m=0!==Object.keys(r.attrs).length?((e,t)=>{const r={...t};return r.props=Object.assign(e.props,t.props),r})({props:r.attrs},o):o,$=(0,u.isValidElement)(m),P=$&&A(r,!0)&&!r.voidElement,x=l&&y(m)&&m.dummy&&!$,b=y(t)&&Object.hasOwnProperty.call(t,r.name);if(Q(m)){const t=n.services.interpolator.interpolate(m,O,n.language);e.push(t)}else if(A(m)||P){const t=d(m,r,s);p(m,t,e,c)}else if(x){const t=g(h,r.children,s);p(m,t,e,c)}else if(Number.isNaN(parseFloat(r.name)))if(b){const t=d(m,r,s);p(m,t,e,c,r.voidElement)}else if(i.transSupportBasicHtmlNodes&&a.indexOf(r.name)>-1)if(r.voidElement)e.push((0,u.createElement)(r.name,{key:`${r.name}-${c}`}));else{const t=g(h,r.children,s);e.push((0,u.createElement)(r.name,{key:`${r.name}-${c}`},t))}else if(r.voidElement)e.push(`<${r.name} />`);else{const t=g(h,r.children,s);e.push(`<${r.name}>${t}`)}else if(y(m)&&!$){const t=r.children[0]?f:null;t&&e.push(t)}else p(m,f,e,c,1!==r.children.length||!f)}else if("text"===r.type){const t=i.transWrapTextNodes,s=o?i.unescape(n.services.interpolator.interpolate(r.content,O,n.language)):n.services.interpolator.interpolate(r.content,O,n.language);t?e.push((0,u.createElement)(t,{key:`${r.name}-${c}`},s)):e.push(s)}return e},[])},m=g([{dummy:!0,children:e||[]}],f,j(e||[]));return N(m[0])},U=(e,t,r)=>{const n=e.key||t,i=(0,u.cloneElement)(e,{key:n});if(!i.props||!i.props.children||r.indexOf(`${t}/>`)<0&&r.indexOf(`${t} />`)<0)return i;return(0,u.createElement)(function(){return(0,u.createElement)(u.Fragment,null,i)},{key:n})},Z=(e,t,r,n)=>e?Array.isArray(e)?((e,t)=>e.map((e,r)=>U(e,r,t)))(e,t):y(e)?((e,t)=>{const r={};return Object.keys(e).forEach(n=>{Object.assign(r,{[n]:U(e[n],n,t)})}),r})(e,t):(v(r,"TRANS_INVALID_COMPONENTS",' "components" prop expects an object or array',{i18nKey:n}),null):null,V=e=>!!y(e)&&(!Array.isArray(e)&&Object.keys(e).reduce((e,t)=>e&&Number.isNaN(Number.parseFloat(t)),!0));const I={type:"3rdParty",init(e){R(e.options.react),T(e)}},W=(0,u.createContext)();function Y({children:e,count:t,parent:r,i18nKey:n,context:i,tOptions:s={},values:o,defaults:a,components:l,ns:h,i18n:c,t:f,shouldUnescape:O,...d}){const{i18n:p,defaultNS:g}=(0,u.useContext)(W)||{},m=c||p||q(),$=f||m?.t.bind(m);return function({children:e,count:t,parent:r,i18nKey:n,context:i,tOptions:s={},values:o,defaults:a,components:l,ns:h,i18n:c,t:f,shouldUnescape:O,...d}){const p=c||q();if(!p)return v(p,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:n}),e;const g=f||p.t.bind(p)||(e=>e),m={..._(),...p.options?.react};let $=h||g.ns||p.options?.defaultNS;$=Q($)?[$]:$||["translation"];const P=C(e,m,p,n),x=a||P||m.transEmptyNodeValue||n,{hashTransKey:b}=m,y=n||(b?b(P||x):P||x);p.options?.interpolation?.defaultVariables&&(o=o&&Object.keys(o).length>0?{...o,...p.options.interpolation.defaultVariables}:{...p.options.interpolation.defaultVariables});const k=o||void 0!==t&&!p.options?.interpolation?.alwaysFormat||!e?s.interpolation:{interpolation:{...s.interpolation,prefix:"#$?",suffix:"?$#"}},w={...s,context:i||s.context,count:t,...o,...k,defaultValue:x,ns:$},S=y?g(y,w):x,X=Z(l,S,p,n);let R=X||e,E=null;V(X)&&(E=X,R=e);const T=z(R,E,S,p,m,w,O),A=r??m.defaultTransParent;return A?(0,u.createElement)(A,d,T):T}({children:e,count:t,parent:r,i18nKey:n,context:i,tOptions:s,values:o,defaults:a,components:l,ns:h||$?.ns||g||m?.options?.defaultNS,i18n:m,t:f,shouldUnescape:O,...d})}var G=r(90116);let L,D;r(65730).Y,G.wi;function F({id:e,ns:t}={}){if(e)return L=K().getFixedT(null,e),void(D=t=>(0,n.jsx)(Y,{shouldUnescape:!0,ns:e,...t}));L=K().t,D=e=>(0,n.jsx)(Y,{shouldUnescape:!0,ns:t,...e})}async function H(e,t,r){if(!(null==r?void 0:r.length))return;const n=t===G.wi?G.Nm:t;return Promise.all(r.map(async t=>{try{const r=await t(n);!function(e,t,r){K().addResourceBundle(e,t,r,!0,!1)}(n,e,r)}catch(t){console.error(`Error loading resources for namespace ${e} and language: ${n}`,t)}}))}function B(){var e;if((null==(e=K().options)?void 0:e.resources)&&"object"==typeof K().options.resources)return;const t=K().use(I).init({resources:{},returnEmptyString:!1,lng:G.Nm});return F(),t}async function M(e,t){await B(),function(){var e,t;if(null==(t=null==(e=q())?void 0:e.options)?void 0:t.react)return;R({}),T(K())}();const r=J();return F({id:e}),await H(e,r,t),{language:r}}function K(){const e=i;return e&&e.default?e.default:e}function J(){var e;return(null==(e=K())?void 0:e.resolvedLanguage)||G.Nm}const ee=(e,t,r)=>(B(),L||(console.warn("t() was called before i18n was initialized. This is probably caused by calling t() in the root module scope, instead of lazily on render"),L=K().t),L(e,t,r));function te(e){B();const t=null!=D?D:Y;return(0,n.jsx)(t,{shouldUnescape:!0,...e})}},65730:(e,t,r)=>{"use strict";r.d(t,{Y:()=>i});var n=r(90116);const i=[{code:n.MB,name:"English"},{code:n.NY,name:"Français"},{code:n.d_,name:"Español"},{code:n.rT,name:"Deutsch"},{code:n.fY,name:"中文(简体)"},{code:n.jQ,name:"Português Brasileiro"},{code:n.AY,name:"中文(繁體)"},{code:n.bE,name:"Italiano"},{code:n.Hp,name:"日本語"},{code:n.IP,name:"Bahasa Indonesia"},{code:n.y6,name:"한국어"},{code:n.k8,name:"Русский"},{code:n.w2,name:"Čeština"},{code:n.wQ,name:"Nederlands"},{code:n.tv,name:"Magyar"},{code:n.LE,name:"Português"},{code:n.tS,name:"Polski"},{code:n.$0,name:"Svenska"},{code:n.mz,name:"Türkçe"}]},12344:(e,t,r)=>{"use strict";r.d(t,{Ix:()=>Te,dw:()=>Xe,Eq:()=>de,w7:()=>ye,H3:()=>Re,AN:()=>Se,gw:()=>Oe,LM:()=>ue,bY:()=>we,PN:()=>Pe,c$:()=>he,Hd:()=>_e,_2:()=>Ee,g$:()=>fe,Yw:()=>Ae,l3:()=>ge,_9:()=>Qe,q6:()=>$e,wN:()=>qe,ih:()=>ke,Sg:()=>xe,q5:()=>be,ds:()=>ve,Re:()=>me,MD:()=>ce,Qf:()=>pe,K3:()=>le});const n=1024;let i=0;class s{constructor(e,t){this.from=e,this.to=t}}class o{constructor(e={}){this.id=i++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=u.match(e)),t=>{let r=e(t);return void 0===r?null:[this,r]}}}o.closedBy=new o({deserialize:e=>e.split(" ")}),o.openedBy=new o({deserialize:e=>e.split(" ")}),o.group=new o({deserialize:e=>e.split(" ")}),o.isolate=new o({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}}),o.contextHash=new o({perNode:!0}),o.lookAhead=new o({perNode:!0}),o.mounted=new o({perNode:!0});class a{constructor(e,t,r,n=!1){this.tree=e,this.overlay=t,this.parser=r,this.bracketed=n}static get(e){return e&&e.props&&e.props[o.mounted.id]}}const l=Object.create(null);class u{constructor(e,t,r,n=0){this.name=e,this.props=t,this.id=r,this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):l,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),n=new u(e.name||"",t,e.id,r);if(e.props)for(let r of e.props)if(Array.isArray(r)||(r=r(n)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}return n}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(o.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let r in e)for(let n of r.split(" "))t[n]=e[r];return e=>{for(let r=e.prop(o.group),n=-1;n<(r?r.length:0);n++){let i=t[n<0?e.name:r[n]];if(i)return i}}}}u.none=new u("",Object.create(null),0,8);class h{constructor(e){this.types=e;for(let t=0;t=t){let o=new x(s.tree,s.overlay[0].from+e.from,-1,e);(i||(i=[n])).push($(o,t,r,!1))}}return i?k(i):n}(this,e,t)}iterate(e){let{enter:t,leave:r,from:n=0,to:i=this.length}=e,s=e.mode||0,o=(s&O.IncludeAnonymous)>0;for(let e=this.cursor(s|O.IncludeAnonymous);;){let s=!1;if(e.from<=i&&e.to>=n&&(!o&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;s=!0}for(;s&&r&&(o||!e.type.isAnonymous)&&r(e),!e.nextSibling();){if(!e.parent())return;s=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:E(u.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,r)=>new d(this.type,e,t,r,this.propValues),e.makeTree||((e,t,r)=>new d(u.none,e,t,r)))}static build(e){return function(e){var t;let{buffer:r,nodeSet:i,maxBufferLength:s=n,reused:a=[],minRepeatType:l=i.types.length}=e,u=Array.isArray(r)?new p(r,r.length):r,h=i.types,c=0,f=0;function O(e,t,r,n,o,d){let{id:p,start:Q,end:y,size:k}=u,w=f,S=c;if(k<0){if(u.next(),-1==k){let t=a[p];return r.push(t),void n.push(Q-e)}if(-3==k)return void(c=p);if(-4==k)return void(f=p);throw new RangeError(`Unrecognized record size: ${k}`)}let X,R,_=h[p],T=Q-e;if(y-Q<=s&&(R=b(u.pos-t,o))){let t=new Uint16Array(R.size-R.skip),r=u.pos-R.size,n=t.length;for(;u.pos>r;)n=v(R.start,t,n);X=new g(t,y-R.start,i),T=R.start-e}else{let e=u.pos-k;u.next();let t=[],r=[],n=p>=l?p:-1,i=0,o=y;for(;u.pos>e;)n>=0&&u.id==n&&u.size>=0?(u.end<=o-s&&(P(t,r,Q,i,u.end,o,n,w,S),i=t.length,o=u.end),u.next()):d>2500?m(Q,e,t,r):O(Q,e,t,r,n,d+1);if(n>=0&&i>0&&i-1&&i>0){let e=$(_,S);X=E(_,t,r,0,t.length,0,y-Q,e,e)}else X=x(_,t,r,y-Q,w-y,S)}r.push(X),n.push(T)}function m(e,t,r,n){let o=[],a=0,l=-1;for(;u.pos>t;){let{id:e,start:t,end:r,size:n}=u;if(n>4)u.next();else{if(l>-1&&t=0;e-=3)t[r++]=o[e],t[r++]=o[e+1]-s,t[r++]=o[e+2]-s,t[r++]=r;r.push(new g(t,o[2]-s,i)),n.push(s-e)}}function $(e,t){return(r,n,i)=>{let s,a,l=0,u=r.length-1;if(u>=0&&(s=r[u])instanceof d){if(!u&&s.type==e&&s.length==i)return s;(a=s.prop(o.lookAhead))&&(l=n[u]+s.length+a)}return x(e,r,n,i,l,t)}}function P(e,t,r,n,s,o,a,l,u){let h=[],c=[];for(;e.length>n;)h.push(e.pop()),c.push(t.pop()+r-s);e.push(x(i.types[a],h,c,o-s,l-o,u)),t.push(s-r)}function x(e,t,r,n,i,s,a){if(s){let e=[o.contextHash,s];a=a?[e].concat(a):[e]}if(i>25){let e=[o.lookAhead,i];a=a?[e].concat(a):[e]}return new d(e,t,r,n,a)}function b(e,t){let r=u.fork(),n=0,i=0,o=0,a=r.end-s,h={size:0,start:0,skip:0};e:for(let s=r.pos-e;r.pos>s;){let e=r.size;if(r.id==t&&e>=0){h.size=n,h.start=i,h.skip=o,o+=4,n+=4,r.next();continue}let u=r.pos-e;if(e<0||u=l?4:0,f=r.start;for(r.next();r.pos>u;){if(r.size<0){if(-3!=r.size&&-4!=r.size)break e;c+=4}else r.id>=l&&(c+=4);r.next()}i=f,n+=e,o+=c}return(t<0||n==e)&&(h.size=n,h.start=i,h.skip=o),h.size>4?h:void 0}function v(e,t,r){let{id:n,start:i,end:s,size:o}=u;if(u.next(),o>=0&&n4){let n=u.pos-(o-4);for(;u.pos>n;)r=v(e,t,r)}t[--r]=a,t[--r]=s-e,t[--r]=i-e,t[--r]=n}else-3==o?c=n:-4==o&&(f=n);return r}let Q=[],y=[];for(;u.pos>0;)O(e.start||0,e.bufferStart||0,Q,y,-1,0);let k=null!==(t=e.length)&&void 0!==t?t:Q.length?y[0]+Q[0].length:0;return new d(h[e.topID],Q.reverse(),y.reverse(),k)}(e)}}d.empty=new d(u.none,[],[],0);class p{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new p(this.buffer,this.index)}}class g{constructor(e,t,r){this.buffer=e,this.length=t,this.set=r}get type(){return u.none}toString(){let e=[];for(let t=0;t0));a=s[a+3]);return o}slice(e,t,r){let n=this.buffer,i=new Uint16Array(t-e),s=0;for(let o=e,a=0;o=t&&rt;case 1:return r<=t&&n>t;case 2:return n>t;case 4:return!0}}function $(e,t,r,n){for(var i;e.from==e.to||(r<1?e.from>=t:e.from>t)||(r>-1?e.to<=t:e.to0?l.length:-1;e!=h;e+=t){let h=l[e],c=u[e]+o.from;if(i&O.EnterBracketed&&h instanceof d&&null===(null===(s=a.get(h))||void 0===s?void 0:s.overlay)&&(c>=r||c+h.length<=r)||m(n,r,c,c+h.length))if(h instanceof g){if(i&O.ExcludeBuffers)continue;let s=h.findChild(0,h.buffer.length,t,r-c,n);if(s>-1)return new y(new Q(o,h,e,c),null,s)}else if(i&O.IncludeAnonymous||!h.type.isAnonymous||X(h)){let s;if(!(i&O.IgnoreMounts)&&(s=a.get(h))&&!s.overlay)return new x(s.tree,c,e,o);let l=new x(h,c,e,o);return i&O.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(t<0?h.children.length-1:0,t,r,n,i)}}if(i&O.IncludeAnonymous||!o.type.isAnonymous)return null;if(e=o.index>=0?o.index+t:t<0?-1:o._parent._tree.children.length,o=o._parent,!o)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,t,r=0){let n;if(!(r&O.IgnoreOverlays)&&(n=a.get(this._tree))&&n.overlay){let i=e-this.from,s=r&O.EnterBracketed&&n.bracketed;for(let{from:e,to:r}of n.overlay)if((t>0||s?e<=i:e=i:r>i))return new x(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function b(e,t,r,n){let i=e.cursor(),s=[];if(!i.firstChild())return s;if(null!=r)for(let e=!1;!e;)if(e=i.type.is(r),!i.nextSibling())return s;for(;;){if(null!=n&&i.type.is(n))return s;if(i.type.is(t)&&s.push(i.node),!i.nextSibling())return null==n?s:[]}}function v(e,t,r=t.length-1){for(let n=e;r>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(t[r]&&t[r]!=n.name)return!1;r--}}return!0}class Q{constructor(e,t,r,n){this.parent=e,this.buffer=t,this.index=r,this.start=n}}class y extends P{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,r){super(),this.context=e,this._parent=t,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,t,r){let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,r);return i<0?null:new y(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,t,r=0){if(r&O.ExcludeBuffers)return null;let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new y(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new y(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new y(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:r}=this.context,n=this.index+4,i=r.buffer[this.index+3];if(i>n){let s=r.buffer[this.index+1];e.push(r.slice(n,i,s)),t.push(0)}return new d(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function k(e){if(!e.length)return null;let t=0,r=e[0];for(let n=1;nr.from||i.to0){if(this.index-1)for(let n=t+e,i=e<0?-1:r._tree.children.length;n!=i;n+=e){let e=r._tree.children[n];if(this.mode&O.IncludeAnonymous||e instanceof g||!e.type.isAnonymous||X(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let s=e;s;s=s._parent)if(s.index==n){if(n==this.index)return s;t=s,r=i+1;break e}n=this.stack[--i]}for(let e=r;e=0;i--){if(i<0)return v(this._tree,e,n);let s=r[t.buffer[this.stack[i]]];if(!s.isAnonymous){if(e[n]&&e[n]!=s.name)return!1;n--}}return!0}}function X(e){return e.children.some(e=>e instanceof g||!e.type.isAnonymous||X(e))}const R=new WeakMap;function _(e,t){if(!e.isAnonymous||t instanceof g||t.type!=e)return 1;let r=R.get(t);if(null==r){r=1;for(let n of t.children){if(n.type!=e||!(n instanceof d)){r=1;break}r+=_(e,n)}R.set(t,r)}return r}function E(e,t,r,n,i,s,o,a,l){let u=0;for(let r=n;r=h)break;d+=t}if(u==i+1){if(d>h){let e=r[i];t(e.children,e.positions,0,e.children.length,n[i]+a);continue}c.push(r[i])}else{let t=n[u-1]+r[u-1].length-O;c.push(E(e,r,n,i,u,O,t,null,l))}f.push(O+a-s)}}(t,r,n,i,0),(a||l)(c,f,o)}class T{startParse(e,t,r){return"string"==typeof e&&(e=new q(e)),r=r?r.length?r.map(e=>new s(e.from,e.to)):[new s(0,0)]:[new s(0,e.length)],this.createParse(e,t||[],r)}parse(e,t,r){let n=this.startParse(e,t,r);for(;;){let e=n.advance();if(e)return e}}}class q{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new o({perNode:!0});class A{constructor(e,t,r,n,i,s,o,a,l,u=0,h){this.p=e,this.stack=t,this.state=r,this.reducePos=n,this.pos=i,this.score=s,this.buffer=o,this.bufferBase=a,this.curContext=l,this.lookAhead=u,this.parent=h}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,r=0){let n=e.parser.context;return new A(e,[],t,r,r,0,[],0,n?new N(n,n.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let r=e>>19,n=65535&e,{parser:i}=this.p,s=this.reducePos=2e3&&!(null===(t=this.p.parser.nodeSet.types[n])||void 0===t?void 0:t.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSizea;)this.stack.pop();this.reduceContext(n,l)}storeNode(e,t,r,n=4,i=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==e.buffer[n-4]&&e.buffer[n-1]>-1){if(t==r)return;if(e.buffer[n-2]>=t)return void(e.buffer[n-2]=r)}}if(i&&this.pos!=r){let i=this.buffer.length;if(i>0&&(0!=this.buffer[i-4]||this.buffer[i-1]<0)){let e=!1;for(let t=i;t>0&&this.buffer[t-2]>r;t-=4)if(this.buffer[t-1]>=0){e=!0;break}if(e)for(;i>0&&this.buffer[i-2]>r;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,n>4&&(n-=4)}this.buffer[i]=e,this.buffer[i+1]=t,this.buffer[i+2]=r,this.buffer[i+3]=n}else this.buffer.push(e,t,r,n)}shift(e,t,r,n){if(131072&e)this.pushState(65535&e,this.pos);else if(262144&e)this.pos=n,this.shiftContext(t,r),t<=this.p.parser.maxNode&&this.buffer.push(t,r,n,4);else{let i=e,{parser:s}=this.p;this.pos=n;let o=s.stateFlag(i,1);!o&&(n>r||t<=s.maxNode)&&(this.reducePos=n),this.pushState(i,o?r:Math.min(r,this.reducePos)),this.shiftContext(t,r),t<=s.maxNode&&this.buffer.push(t,r,n,4)}}apply(e,t,r,n){65536&e?this.reduce(e):this.shift(e,t,r,n)}useNode(e,t){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=e)&&(this.p.reused.push(e),r++);let n=this.pos;this.reducePos=this.pos=n+e.length,this.pushState(t,n),this.buffer.push(r,n,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let r=e.buffer.slice(t),n=e.bufferBase+t;for(;e&&n==e.bufferBase;)e=e.parent;return new A(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,n,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let r=e<=this.p.parser.maxNode;r&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,r?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new j(this);;){let r=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==r)return!1;if(!(65536&r))return!0;t.reduce(r)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let r=[];for(let n,i=0;i1&t&&e==n)||r.push(t[e],n)}t=r}let r=[];for(let e=0;e>19,n=65535&t,i=this.stack.length-3*r;if(i<0||e.getGoto(this.stack[i],n,!1)<0){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],r=(n,i)=>{if(!t.includes(n))return t.push(n),e.allActions(n,t=>{if(393216&t);else if(65536&t){let r=(t>>19)-i;if(r>1){let n=65535&t,i=this.stack.length-3*r;if(i>=0&&e.getGoto(this.stack[i],n,!1)>=0)return r<<19|65536|n}}else{let e=r(t,i+1);if(null!=e)return e}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t0&&this.emitLookAhead()}}class N{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class j{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,r=e>>19;0==r?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(r-1);let n=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=n}}class C{constructor(e,t,r){this.stack=e,this.pos=t,this.index=r,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new C(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new C(this.stack,this.pos,this.index)}}function z(e,t=Uint16Array){if("string"!=typeof e)return e;let r=null;for(let n=0,i=0;n=92&&t--,t>=34&&t--;let i=t-32;if(i>=46&&(i-=46,r=!0),s+=i,r)break;s*=46}r?r[i++]=s:r=new t(s)}return r}class U{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Z=new U;class V{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Z,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let r=this.range,n=this.rangeIndex,i=this.pos+e;for(;ir.to:i>=r.to;){if(n==this.ranges.length-1)return null;let e=this.ranges[++n];i+=e.from-r.to,r=e}return i}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t,r,n=this.chunkOff+e;if(n>=0&&n=this.chunk2Pos&&tn.to&&(this.chunk2=this.chunk2.slice(0,n.to-t)),r=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),r}acceptToken(e,t=0){let r=t?this.resolveOffset(t,-1):this.pos;if(null==r||r=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=Z,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let r="";for(let n of this.ranges){if(n.from>=t)break;n.to>e&&(r+=this.input.read(Math.max(n.from,e),Math.min(n.to,t)))}return r}}class I{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:r}=t.p;W(this.data,e,t,this.id,r.data,r.tokenPrecTable)}}I.prototype.contextual=I.prototype.fallback=I.prototype.extend=!1;I.prototype.fallback=I.prototype.extend=!1;function W(e,t,r,n,i,s){let o=0,a=1<0){let r=e[n];if(l.allows(r)&&(-1==t.token.value||t.token.value==r||G(r,t.token.value,i,s))){t.acceptToken(r);break}}let n=t.next,u=0,h=e[o+2];if(!(t.next<0&&h>u&&65535==e[r+3*h-3])){for(;u>1,s=r+i+(i<<1),a=e[s],l=e[s+1]||65536;if(n=l)){o=e[s+2],t.advance();continue e}u=i+1}}break}o=e[r+3*h-1]}}function Y(e,t,r){for(let n,i=t;65535!=(n=e[i]);i++)if(n==r)return i-t;return-1}function G(e,t,r,n){let i=Y(r,n,t);return i<0||Y(r,n,e)t)&&!n.type.isError)return r<0?Math.max(0,Math.min(n.to-1,t-25)):Math.min(e.length,Math.max(n.from+1,t+25));if(r<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return r<0?0:e.length}}class H{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?F(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?F(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=s,null;if(i instanceof d){if(s==e){if(s=Math.max(this.safeFrom,e)&&(this.trees.push(i),this.start.push(s),this.index.push(0))}else this.index[t]++,this.nextStart=s+i.length}}}class B{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(e=>new U)}getActions(e){let t=0,r=null,{parser:n}=e.p,{tokenizers:i}=n,s=n.stateSlot(e.state,3),o=e.curContext?e.curContext.hash:0,a=0;for(let n=0;nu.end+25&&(a=Math.max(u.lookAhead,a)),0!=u.value)){let n=t;if(u.extended>-1&&(t=this.addActions(e,u.extended,u.end,t)),t=this.addActions(e,u.value,u.end,t),!l.extend&&(r=u,t>n))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),r||e.pos!=this.stream.end||(r=new U,r.value=e.p.parser.eofTerm,r.start=r.end=e.pos,t=this.addActions(e,r.value,r.end,t)),this.mainToken=r,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new U,{pos:r,p:n}=e;return t.start=r,t.end=Math.min(r+1,n.stream.end),t.value=r==n.stream.end?n.parser.eofTerm:0,t}updateCachedToken(e,t,r){let n=this.stream.clipPos(r.pos);if(t.token(this.stream.reset(n,e),r),e.value>-1){let{parser:t}=r.p;for(let n=0;n=0&&r.p.parser.dialect.allows(i>>1)){1&i?e.extended=i>>1:e.value=i>>1;break}}}else e.value=0,e.end=this.stream.clipPos(n+1)}putAction(e,t,r,n){for(let t=0;t4*e.bufferLength?new H(r,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,r=this.stacks,n=this.minStackPos,i=this.stacks=[];if(this.bigReductionCount>300&&1==r.length){let[e]=r;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;sn)i.push(o);else{if(this.advanceStack(o,i,r))continue;{e||(e=[],t=[]),e.push(o);let r=this.tokens.getMainToken(o);t.push(r.value,r.end)}}break}}if(!i.length){let t=e&&function(e){let t=null;for(let r of e){let e=r.p.stoppedAt;(r.pos==r.p.stream.end||null!=e&&r.pos>e)&&r.p.parser.stateFlag(r.state,2)&&(!t||t.scorethis.stoppedAt?e[0]:this.runRecovery(e,t,i);if(r)return this.stackToTree(r.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(i.length>e)for(i.sort((e,t)=>t.score-e.score);i.length>e;)i.pop();i.some(e=>e.reducePos>n)&&this.recovering--}else if(i.length>1){e:for(let e=0;e500&&n.buffer.length>500){if(!((t.score-n.score||t.buffer.length-n.buffer.length)>0)){i.splice(e--,1);continue e}i.splice(r--,1)}}}i.length>12&&(i.sort((e,t)=>t.score-e.score),i.splice(12,i.length-12))}this.minStackPos=i[0].pos;for(let e=1;ethis.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,r=t?e.curContext.hash:0;for(let s=this.fragments.nodeAt(n);s;){let n=this.parser.nodeSet.types[s.type.id]==s.type?i.getGoto(e.state,s.type.id):-1;if(n>-1&&s.length&&(!t||(s.prop(o.contextHash)||0)==r))return e.useNode(s,n),!0;if(!(s instanceof d)||0==s.children.length||s.positions[0]>0)break;let a=s.children[0];if(!(a instanceof d&&0==s.positions[0]))break;s=a}}let s=i.stateSlot(e.state,4);if(s>0)return e.reduce(s),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let a=this.tokens.getActions(e);for(let i=0;in?t.push(h):r.push(h)}return!1}advanceFully(e,t){let r=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>r)return K(e,t),!0}}runRecovery(e,t,r){let n=null,i=!1;for(let s=0;s ":"";if(o.deadEnd){if(i)continue;if(i=!0,o.restart(),this.advanceFully(o,r))continue}let h=o.split(),c=u;for(let e=0;e<10&&h.forceReduce();e++){if(this.advanceFully(h,r))break;L&&(c=this.stackID(h)+" -> ")}for(let e of o.recoverByInsert(a))this.advanceFully(e,r);this.stream.end>o.pos?(l==o.pos&&(l++,a=0),o.recoverByDelete(a,l),K(o,r)):(!n||n.scoree.topRules[t][1]),i=[];for(let e=0;e=0)s(n,e,t[r++]);else{let i=t[r+-n];for(let o=-n;o>0;o--)s(t[r++],e,i);r++}}}this.nodeSet=new h(t.map((t,n)=>u.define({name:n>=this.minRepeatTerm?void 0:t,id:n,props:i[n],top:r.indexOf(n)>-1,error:0==n,skipped:e.skippedNodes&&e.skippedNodes.indexOf(n)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=n;let a=z(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e"number"==typeof e?new I(a,e):e),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,r){let n=new M(this,e,t,r);for(let i of this.wrappers)n=i(n,e,t,r);return n}getGoto(e,t,r=!1){let n=this.goto;if(t>=n[0])return-1;for(let i=n[t+1];;){let t=n[i++],s=1&t,o=n[i++];if(s&&r)return o;for(let r=i+(t>>1);i0}validAction(e,t){return!!this.allActions(e,e=>e==t||null)}allActions(e,t){let r=this.stateSlot(e,4),n=r?t(r):void 0;for(let r=this.stateSlot(e,1);null==n;r+=3){if(65535==this.data[r]){if(1!=this.data[r+1])break;r=te(this.data,r+2)}n=t(te(this.data,r+1))}return n}nextStates(e){let t=[];for(let r=this.stateSlot(e,1);;r+=3){if(65535==this.data[r]){if(1!=this.data[r+1])break;r=te(this.data,r+2)}if(!(1&this.data[r+2])){let e=this.data[r+1];t.some((t,r)=>1&r&&t==e)||t.push(this.data[r],e)}}return t}configure(e){let t=Object.assign(Object.create(ee.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let r=this.topRules[e.top];if(!r)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=r}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(t=>{let r=e.tokenizers.find(e=>e.from==t);return r?r.to:t})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((r,n)=>{let i=e.specializers.find(e=>e.from==r.external);if(!i)return r;let s=Object.assign(Object.assign({},r),{external:i.to});return t.specializers[n]=re(s),s})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),r=t.map(()=>!1);if(e)for(let n of e.split(" ")){let e=t.indexOf(n);e>=0&&(r[e]=!0)}let n=null;for(let e=0;ee.external(r,n)<<1|t}return e.get}const ne={json:1,logfmt:2,unpack:3,pattern:4,regexp:5,label_format:7,line_format:8,label_replace:9,vector:10,offset:11,bool:12,on:13,ignoring:14,group_left:15,group_right:16,unwrap:6,decolorize:17,drop:18,keep:19},ie=e=>ne[e.toLowerCase()]||-1,se={by:20,without:21,and:22,or:23,unless:24,sum:25,avg:26,count:27,max:28,min:29,stddev:30,stdvar:31,bottomk:32,topk:33,sort:34,sort_desc:35},oe=e=>se[e.toLowerCase()]||-1,ae={__proto__:null,ip:295,count_over_time:301,rate:303,rate_counter:305,bytes_over_time:307,bytes_rate:309,avg_over_time:311,sum_over_time:313,min_over_time:315,max_over_time:317,stddev_over_time:319,stdvar_over_time:321,quantile_over_time:323,first_over_time:325,last_over_time:327,absent_over_time:329,bytes:335,duration:337,duration_seconds:339},le=ee.deserialize({version:14,states:"EtOYQPOOO#cQPO'#DUOOQO'#ER'#ERO#hQPO'#ERO$}QPO'#DTOYQPO'#DTOOQO'#Ed'#EdO%[QPO'#EcOOQO'#FP'#FPO%aQPO'#FOQ%lQPOOO&mQPO'#F]O&rQPO'#F^OOQO'#Eb'#EbOOQO'#DS'#DSOOQO'#Ee'#EeOOQO'#Ef'#EfOOQO'#Eg'#EgOOQO'#Eh'#EhOOQO'#Ei'#EiOOQO'#Ej'#EjOOQO'#Ek'#EkOOQO'#El'#ElOOQO'#Em'#EmOOQO'#En'#EnOOQO'#Eo'#EoOOQO'#Ep'#EpOOQO'#Eq'#EqOOQO'#Er'#ErOOQO'#Es'#EsO&wQPO'#DWOOQO'#DV'#DVO'VQPO,59pOOQO,5:m,5:mOOQO'#Dc'#DcO'_QPO'#DbO'gQPO'#DaO)lQPO'#D`O*{QPO'#D`OOQO'#D_'#D_O+sQPO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#Y4j~4mR{|4v}!O4v!Q![4|~4yP!Q![4|~5RP!v~!Q![4|~5ZO#|~~5`e!v~!O!P6q!Q![8l!d!e8W!g!h4j!i!j8]!m!n8]!o!p8]!r!s8]!v!w8]#W#X1n#X#Y4j#[#]+k#_#`8f#a#b,x#b#c/a#g#h0g#i#j/l#k#l2c#l#m:P#m#n3Z${$|/l~6vR!v~!Q![7P!g!h4j#X#Y4j~7U`!v~!Q![7P!d!e8W!g!h4j!i!j8]!m!n8]!o!p8]!r!s8]!v!w8]#X#Y4j#[#]+k#_#`8f#a#b,x#b#c/a#g#h0g#i#j/l${$|/l~8]O!s~~8`Q!d!e8W#]#^8f~8iP!d!e8W~8qd!v~!O!P6q!Q![8l!d!e8W!g!h4j!i!j8]!m!n8]!o!p8]!r!s8]!v!w8]#W#X1n#X#Y4j#[#]+k#_#`8f#a#b,x#b#c/a#g#h0g#i#j/l#k#l2c#m#n3Z${$|/l~:SR!Q![:]!c!i:]#T#Z:]~:bR!v~!Q![:]!c!i:]#T#Z:]P:pT{P!Q![:k![!]:k!c!}:k#R#S:k#T#o:k~;UP!o~!_!`;X~;^O!p~~;cQ|~!_!`;i#r#s;n~;nO!q~~;sO!P~~;xP!l~!_!`;{~O~=yO!W~~>OO!Y~~>TO!X~~>YO$W~",tokenizers:[0,1],topRules:{LogQL:[0,37]},specialized:[{term:43,get:(e,t)=>ie(e)<<1,external:ie},{term:43,get:(e,t)=>oe(e)<<1|1,external:oe,extend:!0},{term:43,get:e=>ae[e]||-1}],tokenPrec:3715}),ue=1,he=2,ce=40,fe=42,Oe=43,de=44,pe=45,ge=46,me=47,$e=48,Pe=52,xe=54,be=55,ve=56,Qe=57,ye=58,ke=60,we=70,Se=74,Xe=75,Re=76,_e=77,Ee=78,Te=81,qe=84,Ae=98},62533:e=>{"use strict";e.exports=JSON.parse('{"id":"grafana-lokiexplore-app"}')}},P={};function x(e){var t=P[e];if(void 0!==t)return t.exports;var r=P[e]={id:e,loaded:!1,exports:{}};return $[e].call(r.exports,r,r.exports,x),r.loaded=!0,r.exports}return x.m=$,x.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return x.d(t,{a:t}),t},p=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,x.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var r=Object.create(null);x.r(r);var n={};d=d||[null,p({}),p([]),p(p)];for(var i=2&t&&e;"object"==typeof i&&!~d.indexOf(i);i=p(i))Object.getOwnPropertyNames(i).forEach(t=>n[t]=()=>e[t]);return n.default=()=>e,x.d(r,n),r},x.d=(e,t)=>{for(var r in t)x.o(t,r)&&!x.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},x.f={},x.e=e=>Promise.all(Object.keys(x.f).reduce((t,r)=>(x.f[r](e,t),t),[])),x.u=e=>e+".js?_cache="+{7:"191340c51d6ddc0b9e6f",82:"a79e1857be8a855b59ec",156:"9390d6cab687f959eab6",398:"cca4721c740ebcc5e08e",431:"9e6d1dbfdc45eea10d2c",470:"48e50389073fd6adab33",546:"d364f53b986c3e3cdc48",553:"f1c126bae8874f26cb22",727:"45832c019291572f81d0",755:"650e1a19d353897fc341",794:"0ca898ffbe64cddef706",812:"98d3b4371671bfda2837",813:"a0647ebfec1def251fa4",854:"fbbe8c9b553b4f2cce7b",909:"4726e3110ce00b46080c",919:"7d6c49fb03de33fe776d",944:"09a2fdec67372ecc90fe",955:"a33e9e6b7ad763d553e9",956:"16726d6e38f2959356f4"}[e],x.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),x.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),g={},m="grafana-lokiexplore-app:",x.l=(e,t,r,n)=>{if(g[e])g[e].push(t);else{var i,s;if(void 0!==r)for(var o=document.getElementsByTagName("script"),a=0;a{i.onerror=i.onload=null,clearTimeout(h);var n=g[e];if(delete g[e],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(r)),t)return t(r)},h=setTimeout(u.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=u.bind(null,i.onerror),i.onload=u.bind(null,i.onload),s&&document.head.appendChild(i)}},x.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},x.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),x.p="public/plugins/grafana-lokiexplore-app/",x.sriHashes={7:"sha256-uoOzAYr/1SdosFkAzrxY3g5mB+efr9QdGNycVBfPVVw=",82:"sha256-Ky8yOTaB/CrofEPcrb9D9I7TmOaeblSOgdpBIINT3ds=",156:"sha256-BYKyNJO8fSCw0Ij5d0XpzKhIg9yKojZd1i0S05ZUue8=",398:"sha256-rnlUFYmBHZHhQmHRuwtRVk5Yob7utA8fFAX7c8jyXYc=",431:"sha256-i3KC7bvBXib/j40mwzzp7qwOkp7ZZihXc/XOnm4Uc3Y=",470:"sha256-pJVdNcn4VSt6xAETsI/AKIMBVzs5oLA2ZPzuF7E0lpU=",546:"sha256-029SPXeABI06EeAHxwAOOt2ZbYuwrEWOwVh6zYTyI6Q=",553:"sha256-XQfpnaYSAYHRBuB9TwHlc7boY6EjwY7cEmvzQmB91zk=",727:"sha256-gkqarJEbHCIboKgcZGRx2ItmZpIIFK+386DUILf+VTc=",755:"sha256-mUPps6hg4qoE+Pm3qohyWEVy9dDmQ3CknuEM4T8u0b8=",794:"sha256-z/eXqAREfo8modD/sJ6nhqV+yUstibwW6HQSTkIE4B8=",812:"sha256-YOZFqUbaYLqDAoGTgJ8s9WC/VUUzr/BWrh4p5jj11yY=",813:"sha256-y9vsYVqNS7LSlhH80/+gLkg0pf71xhMYO6oWqXh00ZQ=",854:"sha256-J3wbxFX0Essg45pSAg4qUUiDkLMDn0Uqtf6wMIsBa8k=",909:"sha256-2fVzuL8rxxYhSR/WK2+s7dwm6hAiFA6MVeYGVsRJjLU=",919:"sha256-aWav8z8iTMruZDLH2CAWR6FigEUvYtgBdhUjTQAZ6D4=",944:"sha256-t1G31rUBZgJoGgBlQJEDufMqIRB89kigFS7vkLU5z1U=",955:"sha256-Jjg0VWPHDXlztDwONoHXX0tNywmD/HOKSluyE6saOng=",956:"sha256-hhX5cR47J02zN3Zfi41Q2YIGQ8eRP/reiNiS9IcydYc="},(()=>{x.b=document.baseURI||self.location.href;var e={231:0};x.f.j=(t,r)=>{var n=x.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var i=new Promise((r,i)=>n=e[t]=[r,i]);r.push(n[2]=i);var s=x.p+x.u(t),o=new Error;x.l(s,r=>{if(x.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var i=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.src;o.message="Loading chunk "+t+" failed.\n("+i+": "+s+")",o.name="ChunkLoadError",o.type=i,o.request=s,n[1](o)}},"chunk-"+t,t)}};var t=(t,r)=>{var n,i,[s,o,a]=r,l=0;if(s.some(t=>0!==e[t])){for(n in o)x.o(o,n)&&(x.m[n]=o[n]);if(a)a(x)}for(t&&t(r);l