grafana/plugins/grafana-lokiexplore-app/308.js

2 lines
15 KiB
JavaScript
Raw Normal View History

2025-01-10 20:54:04 -08:00
"use strict";(self.webpackChunkgrafana_lokiexplore_app=self.webpackChunkgrafana_lokiexplore_app||[]).push([[308],{5308:(t,n,e)=>{let _;e.r(n),e.d(n,{AutoETS:()=>T,ChangepointDetector:()=>U,LoadedOutlierDetector:()=>L,MSTL:()=>C,OutlierDetector:()=>B,custom_init:()=>O,default:()=>G,ets:()=>j,initSync:()=>M,seasonalities:()=>F}),t=e.hmd(t);const r=new Array(128).fill(void 0);function i(t){return r[t]}r.push(void 0,null,!0,!1);let o=r.length;function c(t){const n=i(t);return function(t){t<132||(r[t]=o,o=t)}(t),n}function a(t){o===r.length&&r.push(r.length+1);const n=o;return o=r[n],r[n]=t,n}const s="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&s.decode();let b=null;function g(){return null!==b&&0!==b.byteLength||(b=new Uint8Array(_.memory.buffer)),b}function u(t,n){return t>>>=0,s.decode(g().subarray(t,t+n))}let w=0;const f="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},d="function"==typeof f.encodeInto?function(t,n){return f.encodeInto(t,n)}:function(t,n){const e=f.encode(t);return n.set(e),{read:t.length,written:e.length}};function l(t,n,e){if(void 0===e){const e=f.encode(t),_=n(e.length,1)>>>0;return g().subarray(_,_+e.length).set(e),w=e.length,_}let _=t.length,r=n(_,1)>>>0;const i=g();let o=0;for(;o<_;o++){const n=t.charCodeAt(o);if(n>127)break;i[r+o]=n}if(o!==_){0!==o&&(t=t.slice(o)),r=e(r,_,_=o+3*t.length,1)>>>0;const n=g().subarray(r+o,r+_);o+=d(t,n).written,r=e(r,_,o,1)>>>0}return w=o,r}function p(t){return null==t}let y=null;function h(){return null!==y&&0!==y.byteLength||(y=new Int32Array(_.memory.buffer)),y}let m=null;function k(){return null!==m&&0!==m.byteLength||(m=new Float64Array(_.memory.buffer)),m}let v=null;function A(t){const n=typeof t;if("number"==n||"boolean"==n||null==t)return`${t}`;if("string"==n)return`"${t}"`;if("symbol"==n){const n=t.description;return null==n?"Symbol":`Symbol(${n})`}if("function"==n){const n=t.name;return"string"==typeof n&&n.length>0?`Function(${n})`:"Function"}if(Array.isArray(t)){const n=t.length;let e="[";n>0&&(e+=A(t[0]));for(let _=1;_<n;_++)e+=", "+A(t[_]);return e+="]",e}const e=/\[object ([^\]]+)\]/.exec(toString.call(t));let _;if(!(e.length>1))return toString.call(t);if(_=e[1],"Object"==_)try{return"Object("+JSON.stringify(t)+")"}catch(t){return"Object"}return t instanceof Error?`${t.name}: ${t.message}\n${t.stack}`:_}let R=null;function S(){return null!==R&&0!==R.byteLength||(R=new Uint32Array(_.memory.buffer)),R}function F(t,n){try{const s=_.__wbindgen_add_to_stack_pointer(-16),b=function(t,n){const e=n(8*t.length,8)>>>0;return k().set(t,e/8),w=t.length,e}(t,_.__wbindgen_malloc),g=w;_.seasonalities(s,b,g,p(n)?0:a(n));var e=h()[s/4+0],r=h()[s/4+1],i=(o=e,c=r,o>>>=0,S().subarray(o/4,o/4+c)).slice();return _.__wbindgen_free(e,4*r,4),i}finally{_.__wbindgen_add_to_stack_pointer(16)}var o,c}function j(t,n){const e=function(t,n){const e=n(4*t.length,4)>>>0;return S().set(t,e/4),w=t.length,e}(t,_.__wbindgen_malloc),r=w,i=_.ets(e,r,p(n)?0:a(n));return C.__wrap(i)}function O(){_.custom_init()}function x(t,n){try{return t.apply(this,n)}catch(t){_.__wbindgen_exn_store(a(t))}}const I="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>_.__wbg_autoets_free(t>>>0)));class T{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,I.unregister(this),t}free(){const t=this.__destroy_into_raw();_.__wbg_autoets_free(t)}constructor(t,n){try{const i=_.__wbindgen_add_to_stack_pointer(-16),o=l(n,_.__wbindgen_malloc,_.__wbindgen_realloc),a=w;_.autoets_new(i,t,o,a);var e=h()[i/4+0],r=h()[i/4+1];if(h()[i/4+2])throw c(r);return this.__wbg_ptr=e>>>0,this}finally{_.__wbindgen_add_to_stack_pointer(16)}}fit(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.autoets_fit(e,this.__wbg_ptr,a(t));var n=h()[e/4+0];if(h()[e/4+1])throw c(n)}finally{_.__wbindgen_add_to_stack_pointer(16)}}predict(t,n){try{const i=_.__wbindgen_add_to_stack_pointer(-16);_
//# sourceMappingURL=308.js.map