/*! For license information please see app.7843b5df5fa7b070bc70.js.LICENSE.txt */ (self.__cmc_webpackJsonp__=self.__cmc_webpackJsonp__||[]).push([[143],{82738:function(e,t,n){"use strict";var r=n(1625),o=n.n(r),a=n(67294),c=n(93379),i=n.n(c),l=n(7795),u=n.n(l),s=n(90569),f=n.n(s),m=n(3565),p=n.n(m),h=n(19216),d=n.n(h),y=n(44589),b=n.n(y),v=n(51424),g={};g.styleTagTransform=b(),g.setAttributes=p(),g.insert=f().bind(null,"head"),g.domAPI=u(),g.insertStyleElement=d(),i()(v.Z,g),v.Z&&v.Z.locals&&v.Z.locals;var S,w,k=n(71893),x=n(61733),O=n.n(x),E=n(47934),j=n.n(E),C=n(66206),D=n.n(C),P=n(69376),R=n.n(P),L=n(8275),T=n.n(L);function I(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var A=k.default.div(S||(S=I(["\n display: flex;\n flex-direction: column;\n"]))),_=k.default.div(w||(w=I(["\n display: flex;\n flex-direction: row;\n"]))),F=n(46401),B=n.n(F),M=n(27877),G=n.n(M),N=n(96816),z=n.n(N),q=n(95414),U=n.n(q),W=n(76416),H=n.n(W),$=n(25947),Z=n(35458),X=n.n(Z);function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&a.createElement(A,{style:{padding:"2px 24px 12px 24px"}},o.map((function(e){return a.createElement(D(),{style:{fontSize:"12px"},openInNewContext:!0,to:e.href}," • "+e.description)})))))},xe=n(28537),Oe=n.n(xe),Ee=n(29238),je=[{"search command":"abstract",url:"/Documentation/SplunkCloud/latest/SearchReference/Abstract"},{"search command":"accum",url:"/Documentation/SplunkCloud/latest/SearchReference/Accum"},{"search command":"addcoltotals",url:"/Documentation/SplunkCloud/latest/SearchReference/Addcoltotals"},{"search command":"addinfo",url:"/Documentation/SplunkCloud/latest/SearchReference/Addinfo"},{"search command":"addtotals",url:"/Documentation/SplunkCloud/latest/SearchReference/Addtotals"},{"search command":"analyzefields",url:"/Documentation/SplunkCloud/latest/SearchReference/Analyzefields"},{"search command":"anomalies",url:"/Documentation/SplunkCloud/latest/SearchReference/Anomalies"},{"search command":"anomalousvalue",url:"/Documentation/SplunkCloud/latest/SearchReference/Anomalousvalue"},{"search command":"anomalydetection",url:"/Documentation/SplunkCloud/latest/SearchReference/Anomalydetection"},{"search command":"append",url:"/Documentation/SplunkCloud/latest/SearchReference/Append"},{"search command":"appendcols",url:"/Documentation/SplunkCloud/latest/SearchReference/Appendcols"},{"search command":"appendpipe",url:"/Documentation/SplunkCloud/latest/SearchReference/Appendpipe"},{"search command":"arules",url:"/Documentation/SplunkCloud/latest/SearchReference/Arules"},{"search command":"associate",url:"/Documentation/SplunkCloud/latest/SearchReference/Associate"},{"search command":"autoregress",url:"/Documentation/SplunkCloud/latest/SearchReference/Autoregress"},{"search command":"awssnsalert",url:"/Documentation/SplunkCloud/latest/SearchReference/awssnsalert"},{"search command":"bin",url:"/Documentation/SplunkCloud/latest/SearchReference/Bin"},{"search command":"bucket",url:"/Documentation/SplunkCloud/latest/SearchReference/Bucket"},{"search command":"bucketdir",url:"/Documentation/SplunkCloud/latest/SearchReference/Bucketdir"},{"search command":"chart",url:"/Documentation/SplunkCloud/latest/SearchReference/Chart"},{"search command":"cluster",url:"/Documentation/SplunkCloud/latest/SearchReference/Cluster"},{"search command":"cofilter",url:"/Documentation/SplunkCloud/latest/SearchReference/Cofilter"},{"search command":"collect",url:"/Documentation/SplunkCloud/latest/SearchReference/Collect"},{"search command":"concurrency",url:"/Documentation/SplunkCloud/latest/SearchReference/Concurrency"},{"search command":"contingency",url:"/Documentation/SplunkCloud/latest/SearchReference/Contingency"},{"search command":"convert",url:"/Documentation/SplunkCloud/latest/SearchReference/Convert"},{"search command":"correlate",url:"/Documentation/SplunkCloud/latest/SearchReference/Correlate"},{"search command":"ctable",url:"/Documentation/SplunkCloud/latest/SearchReference/Ctable"},{"search command":"datamodel",url:"/Documentation/SplunkCloud/latest/SearchReference/Datamodel"},{"search command":"datamodelsimple",url:"/Documentation/SplunkCloud/latest/SearchReference/datamodelsimple"},{"search command":"dbinspect",url:"/Documentation/SplunkCloud/latest/SearchReference/Dbinspect"},{"search command":"dbxquery",url:"/Documentation/SplunkCloud/latest/SearchReference/dbxquery"},{"search command":"dedup",url:"/Documentation/SplunkCloud/latest/SearchReference/Dedup"},{"search command":"delete",url:"/Documentation/SplunkCloud/latest/SearchReference/Delete"},{"search command":"delta",url:"/Documentation/SplunkCloud/latest/SearchReference/Delta"},{"search command":"diff",url:"/Documentation/SplunkCloud/latest/SearchReference/Diff"},{"search command":"entitymerge",url:"/Documentation/SplunkCloud/latest/SearchReference/Entitymerge"},{"search command":"erex",url:"/Documentation/SplunkCloud/latest/SearchReference/Erex"},{"search command":"eval",url:"/Documentation/SplunkCloud/9.0.2303/SearchReference/Eval"},{"search command":"eventcount",url:"/Documentation/SplunkCloud/latest/SearchReference/Eventcount"},{"search command":"eventstats",url:"/Documentation/SplunkCloud/latest/SearchReference/Eventstats"},{"search command":"extract",url:"/Documentation/SplunkCloud/latest/SearchReference/Extract"},{"search command":"fieldformat",url:"/Documentation/SplunkCloud/latest/SearchReference/Fieldformat"},{"search command":"fields",url:"/Documentation/SplunkCloud/latest/SearchReference/Fields"},{"search command":"fieldsummary",url:"/Documentation/SplunkCloud/latest/SearchReference/Fieldsummary"},{"search command":"filldown",url:"/Documentation/SplunkCloud/latest/SearchReference/Filldown"},{"search command":"fillnull",url:"/Documentation/SplunkCloud/latest/SearchReference/Fillnull"},{"search command":"findtypes",url:"/Documentation/SplunkCloud/latest/SearchReference/Findtypes"},{"search command":"folderize",url:"/Documentation/SplunkCloud/latest/SearchReference/Folderize"},{"search command":"foreach",url:"/Documentation/SplunkCloud/latest/SearchReference/Foreach"},{"search command":"format",url:"/Documentation/SplunkCloud/latest/SearchReference/Format"},{"search command":"from",url:"/Documentation/SplunkCloud/latest/SearchReference/From"},{"search command":"fromjson",url:"/Documentation/SplunkCloud/latest/SearchReference/Fromjson"},{"search command":"gauge",url:"/Documentation/SplunkCloud/latest/SearchReference/Gauge"},{"search command":"gentimes",url:"/Documentation/SplunkCloud/latest/SearchReference/Gentimes"},{"search command":"geom",url:"/Documentation/SplunkCloud/latest/SearchReference/Geom"},{"search command":"geomfilter",url:"/Documentation/SplunkCloud/latest/SearchReference/Geomfilter"},{"search command":"geostats",url:"/Documentation/SplunkCloud/latest/SearchReference/Geostats"},{"search command":"head",url:"/Documentation/SplunkCloud/latest/SearchReference/Head"},{"search command":"highlight",url:"/Documentation/SplunkCloud/latest/SearchReference/Highlight"},{"search command":"history",url:"/Documentation/SplunkCloud/latest/SearchReference/History"},{"search command":"iconify",url:"/Documentation/SplunkCloud/latest/SearchReference/Iconify"},{"search command":"inputcsv",url:"/Documentation/SplunkCloud/latest/SearchReference/Inputcsv"},{"search command":"inputintelligence",url:"/Documentation/SplunkCloud/latest/SearchReference/Inputintelligence"},{"search command":"inputlookup",url:"/Documentation/SplunkCloud/latest/SearchReference/Inputlookup"},{"search command":"iplocation",url:"/Documentation/SplunkCloud/latest/SearchReference/Iplocation"},{"search command":"join",url:"/Documentation/SplunkCloud/latest/SearchReference/Join"},{"search command":"kmeans",url:"/Documentation/SplunkCloud/latest/SearchReference/Kmeans"},{"search command":"kvform",url:"/Documentation/SplunkCloud/latest/SearchReference/Kvform"},{"search command":"loadjob",url:"/Documentation/SplunkCloud/latest/SearchReference/Loadjob"},{"search command":"localize",url:"/Documentation/SplunkCloud/latest/SearchReference/Localize"},{"search command":"localop",url:"/Documentation/SplunkCloud/latest/SearchReference/Localop"},{"search command":"lookup",url:"/Documentation/SplunkCloud/latest/SearchReference/Lookup"},{"search command":"makecontinuous",url:"/Documentation/SplunkCloud/latest/SearchReference/Makecontinuous"},{"search command":"makemv",url:"/Documentation/SplunkCloud/latest/SearchReference/Makemv"},{"search command":"makeresults",url:"/Documentation/SplunkCloud/latest/SearchReference/Makeresults"},{"search command":"map",url:"/Documentation/SplunkCloud/latest/SearchReference/Map"},{"search command":"mcollect",url:"/Documentation/SplunkCloud/latest/SearchReference/Mcollect"},{"search command":"metadata",url:"/Documentation/SplunkCloud/latest/SearchReference/Metadata"},{"search command":"metasearch",url:"/Documentation/SplunkCloud/latest/SearchReference/Metasearch"},{"search command":"meventcollect",url:"/Documentation/SplunkCloud/latest/SearchReference/Meventcollect"},{"search command":"mpreview",url:"/Documentation/SplunkCloud/latest/SearchReference/Mpreview"},{"search command":"msearch",url:"/Documentation/SplunkCloud/latest/SearchReference/Msearch"},{"search command":"mstats",url:"/Documentation/SplunkCloud/latest/SearchReference/Mstats"},{"search command":"multikv",url:"/Documentation/SplunkCloud/latest/SearchReference/Multikv"},{"search command":"multisearch",url:"/Documentation/SplunkCloud/latest/SearchReference/Multisearch"},{"search command":"mvcombine",url:"/Documentation/SplunkCloud/latest/SearchReference/Mvcombine"},{"search command":"mvexpand",url:"/Documentation/SplunkCloud/latest/SearchReference/Mvexpand"},{"search command":"nomv",url:"/Documentation/SplunkCloud/latest/SearchReference/Nomv"},{"search command":"outlier",url:"/Documentation/SplunkCloud/latest/SearchReference/Outlier"},{"search command":"outputcsv",url:"/Documentation/SplunkCloud/latest/SearchReference/Outputcsv"},{"search command":"outputlookup",url:"/Documentation/SplunkCloud/latest/SearchReference/Outputlookup"},{"search command":"outputtext",url:"/Documentation/SplunkCloud/latest/SearchReference/Outputtext"},{"search command":"overlap",url:"/Documentation/SplunkCloud/latest/SearchReference/Overlap"},{"search command":"pivot",url:"/Documentation/SplunkCloud/latest/SearchReference/Pivot"},{"search command":"predict",url:"/Documentation/SplunkCloud/latest/SearchReference/Predict"},{"search command":"rangemap",url:"/Documentation/SplunkCloud/latest/SearchReference/Rangemap"},{"search command":"rare",url:"/Documentation/SplunkCloud/latest/SearchReference/Rare"},{"search command":"regex",url:"/Documentation/SplunkCloud/latest/SearchReference/Regex"},{"search command":"reltime",url:"/Documentation/SplunkCloud/latest/SearchReference/Reltime"},{"search command":"rename",url:"/Documentation/SplunkCloud/latest/SearchReference/Rename"},{"search command":"replace",url:"/Documentation/SplunkCloud/latest/SearchReference/Replace"},{"search command":"require",url:"/Documentation/SplunkCloud/latest/SearchReference/Require"},{"search command":"rest",url:"/Documentation/SplunkCloud/latest/SearchReference/Rest"},{"search command":"return",url:"/Documentation/SplunkCloud/latest/SearchReference/Return"},{"search command":"reverse",url:"/Documentation/SplunkCloud/latest/SearchReference/Reverse"},{"search command":"rex",url:"/Documentation/SplunkCloud/latest/SearchReference/Rex"},{"search command":"rtorder",url:"/Documentation/SplunkCloud/latest/SearchReference/Rtorder"},{"search command":"run",url:"/Documentation/SplunkCloud/latest/SearchReference/Run"},{"search command":"savedsearch",url:"/Documentation/SplunkCloud/latest/SearchReference/Savedsearch"},{"search command":"script",url:"/Documentation/SplunkCloud/latest/SearchReference/Script"},{"search command":"scrub",url:"/Documentation/SplunkCloud/latest/SearchReference/Scrub"},{"search command":"search",url:"/Documentation/SplunkCloud/latest/SearchReference/Search"},{"search command":"searchtxn",url:"/Documentation/SplunkCloud/latest/SearchReference/Searchtxn"},{"search command":"selfjoin",url:"/Documentation/SplunkCloud/latest/SearchReference/Selfjoin"},{"search command":"sendalert",url:"/Documentation/SplunkCloud/latest/SearchReference/Sendalert"},{"search command":"sendemail",url:"/Documentation/SplunkCloud/latest/SearchReference/Sendemail"},{"search command":"set",url:"/Documentation/SplunkCloud/latest/SearchReference/Set"},{"search command":"setfields",url:"/Documentation/SplunkCloud/latest/SearchReference/Setfields"},{"search command":"sichart",url:"/Documentation/SplunkCloud/latest/SearchReference/Sichart"},{"search command":"sirare",url:"/Documentation/SplunkCloud/latest/SearchReference/Sirare"},{"search command":"sistats",url:"/Documentation/SplunkCloud/latest/SearchReference/Sistats"},{"search command":"sitimechart",url:"/Documentation/SplunkCloud/latest/SearchReference/Sitimechart"},{"search command":"sitop",url:"/Documentation/SplunkCloud/latest/SearchReference/Sitop"},{"search command":"snowincident",url:"/Documentation/SplunkCloud/latest/SearchReference/snowincident"},{"search command":"snowincidentstream",url:"/Documentation/SplunkCloud/latest/SearchReference/snowincidentstream"},{"search command":"snowevent",url:"/Documentation/SplunkCloud/latest/SearchReference/snowevent"},{"search command":"snoweventstream",url:"/Documentation/SplunkCloud/latest/SearchReference/snoweventstream"},{"search command":"sort",url:"/Documentation/SplunkCloud/latest/SearchReference/Sort"},{"search command":"spath",url:"/Documentation/SplunkCloud/latest/SearchReference/Spath"},{"search command":"stats",url:"/Documentation/SplunkCloud/latest/SearchReference/Stats"},{"search command":"strcat",url:"/Documentation/SplunkCloud/latest/SearchReference/Strcat"},{"search command":"streamstats",url:"/Documentation/SplunkCloud/latest/SearchReference/Streamstats"},{"search command":"table",url:"/Documentation/SplunkCloud/9.0.2303/SearchReference/Table"},{"search command":"tags",url:"/Documentation/SplunkCloud/latest/SearchReference/Tags"},{"search command":"tail",url:"/Documentation/SplunkCloud/latest/SearchReference/Tail"},{"search command":"timechart",url:"/Documentation/SplunkCloud/latest/SearchReference/Timechart"},{"search command":"timewrap",url:"/Documentation/SplunkCloud/latest/SearchReference/Timewrap"},{"search command":"tojson",url:"/Documentation/SplunkCloud/latest/SearchReference/Tojson"},{"search command":"top",url:"/Documentation/SplunkCloud/latest/SearchReference/Top"},{"search command":"transaction",url:"/Documentation/SplunkCloud/latest/SearchReference/Transaction"},{"search command":"transpose",url:"/Documentation/SplunkCloud/latest/SearchReference/Transpose"},{"search command":"trendline",url:"/Documentation/SplunkCloud/latest/SearchReference/Trendline"},{"search command":"tscollect",url:"/Documentation/SplunkCloud/latest/SearchReference/Tscollect"},{"search command":"tstats",url:"/Documentation/SplunkCloud/latest/SearchReference/Tstats"},{"search command":"typeahead",url:"/Documentation/SplunkCloud/latest/SearchReference/Typeahead"},{"search command":"typelearner",url:"/Documentation/SplunkCloud/latest/SearchReference/Typelearner"},{"search command":"typer",url:"/Documentation/SplunkCloud/latest/SearchReference/Typer"},{"search command":"union",url:"/Documentation/SplunkCloud/latest/SearchReference/Union"},{"search command":"uniq",url:"/Documentation/SplunkCloud/latest/SearchReference/Uniq"},{"search command":"untable",url:"/Documentation/SplunkCloud/latest/SearchReference/Untable"},{"search command":"walklex",url:"/Documentation/SplunkCloud/latest/SearchReference/Walklex"},{"search command":"where",url:"/Documentation/SplunkCloud/latest/SearchReference/Where"},{"search command":"x11",url:"/Documentation/SplunkCloud/latest/SearchReference/X11"},{"search command":"xmlkv",url:"/Documentation/SplunkCloud/latest/SearchReference/Xmlkv"},{"search command":"xmlunescape",url:"/Documentation/SplunkCloud/latest/SearchReference/Xmlunescape"},{"search command":"xpath",url:"/Documentation/SplunkCloud/latest/SearchReference/Xpath"},{"search command":"xyseries",url:"/Documentation/SplunkCloud/latest/SearchReference/Xyseries"}],Ce={};je.forEach((function(e){Ce[e["search command"]]=1}));var De=n(97212),Pe=n(2411);function Re(e){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(e)}function Le(){Le=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",i=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var a=t&&t.prototype instanceof m?t:m,c=Object.create(a.prototype),i=new E(o||[]);return r(c,"_invoke",{value:w(e,n,i)}),c}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function m(){}function p(){}function h(){}var d={};l(d,a,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(j([])));b&&b!==t&&n.call(b,a)&&(d=b);var v=h.prototype=m.prototype=Object.create(d);function g(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(r,a,c,i){var l=s(e[r],e,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Re(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,c,i)}),(function(e){o("throw",e,c,i)})):t.resolve(f).then((function(e){u.value=e,c(u)}),(function(e){return o("throw",e,c,i)}))}i(l.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function w(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return{value:void 0,done:!0}}for(n.method=o,n.arg=a;;){var c=n.delegate;if(c){var i=k(c,n);if(i){if(i===f)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function k(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function j(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var i=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(i&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Te(e,t,n,r,o,a,c){try{var i=e[a](c),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,o)}var Ie=/[.?!,]+$/;function Ae(){var e;return e=Le().mark((function e(t){var n,r;return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!0,!navigator.clipboard||!window.isSecureContext){e.next=6;break}return e.next=4,navigator.clipboard.writeText(t);case 4:e.next=13;break;case 6:(r=document.createElement("textarea")).value=t,r.style.position="absolute",r.style.left="-999999px",document.body.prepend(r),r.select();try{document.execCommand("copy")}catch(e){console.error(e),n=!1}finally{r.remove()}case 13:return e.abrupt("return",n);case 14:case"end":return e.stop()}}),e)})),Ae=function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function c(e){Te(a,r,o,c,i,"next",e)}function i(e){Te(a,r,o,c,i,"throw",e)}c(void 0)}))},Ae.apply(this,arguments)}function _e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n$1"):e}var Be=/^`+|`+$/g;function Me(e){var t=[],n=void 0;e&&e.startsWith("-")?t=function(e){var t,n=[],r=[],o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return _e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_e(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){i=!0,a=e},f:function(){try{c||null==n.return||n.return()}finally{if(i)throw a}}}}(e);try{for(o.s();!(t=o.n()).done;){var a=t.value,c=a.match(/^\s*/)[0].length/2,i={text:a.trim().replace(/^-+\s*/,""),children:[]};0===c?n.push(i):r[c-1].children.push(i),r[c]=i}}catch(e){o.e(e)}finally{o.f()}return n}(e.split("\n")):n=e;var r=t.reduce((function(e,t){return e&&t.text.startsWith("`")}),!0);return r&&(t=t.map((function(e){var t=e.text.match(/`(.*?)`: (.*)/);if(t){var n=t[1],r=t[2];return{block:n.trim(),summary:r.trim()}}return{block:e.text.trim()}}))),{points:t,spl:n,startsWithCodeBlock:r}}var Ge,Ne,ze=n(75075),qe=n.n(ze),Ue=n(27370),We=n.n(Ue),He=n(78119),$e=n.n(He);function Ze(e){return Ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ze(e)}function Xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ye(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"#3366F3",n=e.trim().replace(Ie,""),r=[],o=0;o').concat(u,""),f=o.substring(0,c)+s+o.substring(l,o.length);o=f,a=c+s.length,c=a+1}else c=a+1}""!==o&&(i+=o,i+="
")})),(0,Ee.sanitize)(i)}(o,s)}),[o]);return a.createElement(Ke,{id:r,style:Ye({},t)},a.createElement(A,{style:Ye({padding:"12px"},n)},a.createElement(Ve,{dangerouslySetInnerHTML:{__html:p}}),(c||!i)&&a.createElement(a.Fragment,null,a.createElement($e(),{style:{height:"0px",border:"1px solid ".concat(u),marginTop:"8px",marginBottom:"12px"}}),a.createElement(_,{style:{marginLeft:"auto",flexGrow:0}},!i&&a.createElement(H(),{appearance:"pill",style:{flexGrow:0},onClick:m},a.createElement(We(),null),"   Copy"),c&&a.createElement(H(),{appearance:"pill",style:{flexGrow:0},onClick:f},a.createElement(qe(),null),"   Open in search")))))},tt=n(76928),nt=n.n(tt),rt=n(26777),ot=n.n(rt);function at(e){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},at(e)}function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function it(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:void 0,n=t||e;try{var r=n.split("Concise Summary:"),o=r[1].split("Detailed Explanation:");return{spl:(t?e:r[0]).trim().replace(Be,""),summary:o[0].trim(),explanation:o[1].trim()}}catch(e){return{}}}(i.content,i.explain),w="user"===i.type?yt:bt,k=void 0,x=void 0,O=void 0,E=(r=(0,a.useState)(!1),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,c,i=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw o}}return i}}(r,o)||function(e,t){if(e){if("string"==typeof e)return Ft(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ft(e,t):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),C=E[0],P=E[1];return i.isLoading?(x={backgroundColor:h},k=a.createElement(_,null,a.createElement(zt,{color:"#909090"})," ",a.createElement(j(),{style:{marginLeft:"8px",marginBottom:"0px"}},"Generating response"))):"copilot"===i.type?(x={backgroundColor:h},S.spl||S.summary||S.explanation?(g=jt(S.spl),k=a.createElement(a.Fragment,null,S.spl&&a.createElement(et,{cardStyle:{marginTop:"0px",marginBottom:"12px"},id:i.id,spl:S.spl,openInSearch:u}),S.summary&&a.createElement(j(),{style:{marginTop:"0px",marginBottom:"4px"}},S.summary),S.explanation&&a.createElement(Et,{explanation:Me(S.explanation),setScrollToBottom:v}),s&&a.createElement(mt,{entry:i,sendFeedback:f}))):k="docs"===i.queryType?a.createElement(a.Fragment,null,b.map((function(e){return e.text.startsWith("For more details: ")||e.text.startsWith("It might be worth checking: ")||e.text.startsWith("Information as of ")?void 0:"text"===e.format?a.createElement(j(),{style:{}},e.text.trim()):a.createElement(et,{id:i.id,spl:e.text,disableCopy:!0})}))):a.createElement(a.Fragment,null,y.beforeBlock&&a.createElement(j(),{style:{marginTop:"0px",marginBottom:"12px"}},y.beforeBlock),y.splBlock&&a.createElement(et,{cardStyle:{marginTop:"0px",marginBottom:"12px"},id:i.id,spl:y.splBlock,openInSearch:u}),y.afterBlock&&a.createElement(j(),{style:{marginTop:"0px",marginBottom:"8px"}},y.afterBlock),i.warnings&&i.warnings.length>0&&a.createElement(a.Fragment,null,i.warnings.map((function(e){return a.createElement(Lt(),{appearance:"fill",type:"warning",style:{marginTop:"0px",marginBottom:"8px"}},e)}))),C?a.createElement(_,null,a.createElement(zt,{color:"#909090"})," ",a.createElement(j(),{style:{marginLeft:"4px",marginBottom:"4px"}},"Loading explanations")):a.createElement(_,{style:{alignItems:"center",cursor:"pointer",marginBottom:"4px"},onClick:function(){P(!0),l(i.id,i.content)}},a.createElement(T(),{style:{marginRight:"4px",color:d}}),a.createElement(D(),{style:{fontSize:"14px",textDecoration:"none"}},"Explain SPL to me")),s&&a.createElement(mt,{entry:i,sendFeedback:f})),O=a.createElement(a.Fragment,null,g&&g.length>0&&a.createElement(ke,{style:{marginTop:"8px"},resourceLinks:g,setScrollToBottom:v}))):"user"===i.type?k=a.createElement(j(),{style:{margin:"0px"}},i.content):"error"===i.type&&(x={backgroundColor:h,border:"1px solid rgba(256, 0, 0, 1)",display:"flex",flexDirection:"row",alignItems:"center"},k=a.createElement(a.Fragment,null,a.createElement(Oe(),{style:{color:"red"}}),a.createElement(j(),{style:{marginLeft:"8px",marginTop:"0px",marginBottom:"0px"}},i.error instanceof Error?i.error.message:i.error))),a.createElement(_,{style:At({},c)},a.createElement(le,{style:{marginTop:"4px"},config:w}),a.createElement(A,{style:{width:"100%"}},a.createElement(Gt,{style:At({},x)},k),O))};function Ut(e){return Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ut(e)}function Wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ht(e){for(var t=1;t=0;o--){var a=Math.floor(Math.random()*(o+1)),c=[n[a],n[o]];n[o]=c[0],n[a]=c[1]}for(var i=0;i0" | stats count by user search _time | sort _time | convert ctime(_time) | stats list(_time) as time list(search) as search by user',"| rest splunk_server=local /services/cluster/master/peers | stats sum(bucket_count) by label | rename label as peer"];function un(e){return un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},un(e)}function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fn(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var i=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(i&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Bn(e,t,n,r,o,a,c){try{var i=e[a](c),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,o)}function Mn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function c(e){Bn(a,r,o,c,i,"next",e)}function i(e){Bn(a,r,o,c,i,"throw",e)}c(void 0)}))}}function Gn(e){return Nn.apply(this,arguments)}function Nn(){return Nn=Mn(Fn().mark((function e(t){var n,r,o=arguments;return Fn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]&&o[1],r=new Promise((function(e,r){var o,a=An.Z.create({search:'| splgen prompt="'.concat((o=t,JSON.stringify(o).slice(1,-1)),'" explain=').concat(n),earliest_time:"-4h@h",latest_time:"now"},{app:Pe.app,owner:Pe.username});a.getProgress().subscribe({next:function(e){},error:function(e){r(e)},complete:function(){}}),a.getResults().subscribe((function(t){var o;if(null!=t&&null!==(o=t.results)&&void 0!==o&&o.length){var a=t.results[0],c=null==t?void 0:t.messages.filter((function(e){return"WARN"===e.type})).map((function(e){return e.text}));if(n)e({explain:a.EXPLAIN});else{var i=jt(a.SPL);e({spl:a.SPL,resourceLinks:i,warnings:c})}}else r("An error occured generating your response. Try again later.")}))})),e.next=4,r;case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)}))),Nn.apply(this,arguments)}function zn(){return(zn=Mn(Fn().mark((function e(){var t;return Fn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=An.Z.create({search:'| makeresults 1 | join type=left [| rest /services/apps/local splunk_server=local | search disabled=0 label="Python for Scientific Computing" | table version]\n | eval req=if(version>="4.0.0", 1, 0)'},{app:Pe.app,owner:Pe.username}),e.abrupt("return",new Promise((function(e,n){t.getResults().subscribe((function(t){try{e(parseInt(t.results[0].req)+1)}catch(e){n(1)}}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qn(){return qn=Mn(Fn().mark((function e(t,n,r,o){var a;return Fn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=An.Z.create({search:'| splgenfeedback sessionId="'.concat(t,'" prompt="').concat(n,'" response="').concat(r,'" correct=').concat(o),earliest_time:"-15m",latest_time:"now"},{app:Pe.app,owner:Pe.username}),e.abrupt("return",new Promise((function(e,t){a.getResults().subscribe((function(){e()}))})));case 2:case"end":return e.stop()}}),e)}))),qn.apply(this,arguments)}var Un=n(956),Wn=n(17673);function Hn(e){return Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hn(e)}function $n(){$n=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",i=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var a=t&&t.prototype instanceof m?t:m,c=Object.create(a.prototype),i=new E(o||[]);return r(c,"_invoke",{value:w(e,n,i)}),c}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function m(){}function p(){}function h(){}var d={};l(d,a,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(j([])));b&&b!==t&&n.call(b,a)&&(d=b);var v=h.prototype=m.prototype=Object.create(d);function g(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(r,a,c,i){var l=s(e[r],e,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Hn(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,c,i)}),(function(e){o("throw",e,c,i)})):t.resolve(f).then((function(e){u.value=e,c(u)}),(function(e){return o("throw",e,c,i)}))}i(l.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function w(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return{value:void 0,done:!0}}for(n.method=o,n.arg=a;;){var c=n.delegate;if(c){var i=k(c,n);if(i){if(i===f)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function k(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function j(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var i=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(i&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xn(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n