hi-ucs/front/public/leaflet/libs/elasticsearch/15.0.0/elasticsearch.min.js

26 lines
507 KiB
Vue
Raw Normal View History

2022-06-14 09:32:49 +08:00
/*!
* Copyright (c) 2018 Elasticsearch BV
* http://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html
* license: Apachelicence 2.0
* version: v15.0.0
*/
;(function () {
/* prevent lodash from detecting external amd loaders */var define;
!function(a,b){"object"==typeof exports&&"object"==typeof module?module.exports=b():"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?exports.elasticsearch=b():a.elasticsearch=b()}("undefined"!=typeof self?self:this,function(){return function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={i:d,l:!1,exports:{}};return a[d].call(e.exports,e,e.exports,b),e.l=!0,e.exports}var c={};return b.m=a,b.c=c,b.d=function(a,c,d){b.o(a,c)||Object.defineProperty(a,c,{configurable:!1,enumerable:!0,get:d})},b.n=function(a){var c=a&&a.__esModule?function(){return a.default}:function(){return a};return b.d(c,"a",c),c},b.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},b.p="",b(b.s=26)}([function(a,b,c){(function(a,d){var e;(function(){function f(a,b,c){switch(c.length){case 0:return a.call(b);case 1:return a.call(b,c[0]);case 2:return a.call(b,c[0],c[1]);case 3:return a.call(b,c[0],c[1],c[2])}return a.apply(b,c)}function g(a,b,c,d){for(var e=-1,f=null==a?0:a.length;++e<f;){var g=a[e];b(d,g,c(g),a)}return d}function h(a,b){for(var c=-1,d=null==a?0:a.length;++c<d&&b(a[c],c,a)!==!1;);return a}function i(a,b){for(var c=null==a?0:a.length;c--&&b(a[c],c,a)!==!1;);return a}function j(a,b){for(var c=-1,d=null==a?0:a.length;++c<d;)if(!b(a[c],c,a))return!1;return!0}function k(a,b){for(var c=-1,d=null==a?0:a.length,e=0,f=[];++c<d;){var g=a[c];b(g,c,a)&&(f[e++]=g)}return f}function l(a,b){var c=null==a?0:a.length;return!!c&&w(a,b,0)>-1}function m(a,b,c){for(var d=-1,e=null==a?0:a.length;++d<e;)if(c(b,a[d]))return!0;return!1}function n(a,b){for(var c=-1,d=null==a?0:a.length,e=Array(d);++c<d;)e[c]=b(a[c],c,a);return e}function o(a,b){for(var c=-1,d=b.length,e=a.length;++c<d;)a[e+c]=b[c];return a}function p(a,b,c,d){var e=-1,f=null==a?0:a.length;for(d&&f&&(c=a[++e]);++e<f;)c=b(c,a[e],e,a);return c}function q(a,b,c,d){var e=null==a?0:a.length;for(d&&e&&(c=a[--e]);e--;)c=b(c,a[e],e,a);return c}function r(a,b){for(var c=-1,d=null==a?0:a.length;++c<d;)if(b(a[c],c,a))return!0;return!1}function s(a){return a.split("")}function t(a){return a.match(Pb)||[]}function u(a,b,c){var d;return c(a,function(a,c,e){if(b(a,c,e))return d=c,!1}),d}function v(a,b,c,d){for(var e=a.length,f=c+(d?1:-1);d?f--:++f<e;)if(b(a[f],f,a))return f;return-1}function w(a,b,c){return b===b?Y(a,b,c):v(a,y,c)}function x(a,b,c,d){for(var e=c-1,f=a.length;++e<f;)if(d(a[e],b))return e;return-1}function y(a){return a!==a}function z(a,b){var c=null==a?0:a.length;return c?E(a,b)/c:Ka}function A(a){return function(b){return null==b?da:b[a]}}function B(a){return function(b){return null==a?da:a[b]}}function C(a,b,c,d,e){return e(a,function(a,e,f){c=d?(d=!1,a):b(c,a,e,f)}),c}function D(a,b){var c=a.length;for(a.sort(b);c--;)a[c]=a[c].value;return a}function E(a,b){for(var c,d=-1,e=a.length;++d<e;){var f=b(a[d]);f!==da&&(c=c===da?f:c+f)}return c}function F(a,b){for(var c=-1,d=Array(a);++c<a;)d[c]=b(c);return d}function G(a,b){return n(b,function(b){return[b,a[b]]})}function H(a){return function(b){return a(b)}}function I(a,b){return n(b,function(b){return a[b]})}function J(a,b){return a.has(b)}function K(a,b){for(var c=-1,d=a.length;++c<d&&w(b,a[c],0)>-1;);return c}function L(a,b){for(var c=a.length;c--&&w(b,a[c],0)>-1;);return c}function M(a,b){for(var c=a.length,d=0;c--;)a[c]===b&&++d;return d}function N(a){return"\\"+_c[a]}function O(a,b){return null==a?da:a[b]}function P(a){return Sc.test(a)}function Q(a){return Tc.test(a)}function R(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c}function S(a){var b=-1,c=Array(a.size);return a.forEach(function(a,d){c[++b]=[d,a]}),c}function T(a,b){return function(c){return a(b(c))}}function U(a,b){for(var c=-1,d=a.length,e=0,f=[];++c<d;){var g=a[c];g!==b&&g!==ka||(a[c]=ka,f[e++]=c)}return f}function V(a,b){return"__proto__"==b?da:a[b]}function W(a){var b=-1,c=Array(a.size);return a.forEach(function(a){c[++b]=a}),c}function X(a){var b=-1,c=Array(a.size);return a.forEach(function(a){c[++b]=[a,a]}),c}function Y(a,b,c){for(var d=c-1,e=a.length;++d<e;)if(a[d]===b)return d;return-1}function Z(a,b,c){for(
case Sa:case Ta:case Za:return Sh(+a,+b);case Va:return a.name==b.name&&a.message==b.message;case cb:case eb:return a==b+"";case Ya:var h=S;case db:var i=d&oa;if(h||(h=W),a.size!=b.size&&!i)return!1;var j=g.get(a);if(j)return j==b;d|=pa,g.set(a,b);var k=mf(h(a),h(b),d,e,f,g);return g.delete(a),k;case fb:if(kl)return kl.call(a)==kl.call(b)}return!1}function of(a,b,c,d,e,f){var g=c&oa,h=qf(a),i=h.length,j=qf(b),k=j.length;if(i!=k&&!g)return!1;for(var l=i;l--;){var m=h[l];if(!(g?m in b:pk.call(b,m)))return!1}var n=f.get(a);if(n&&f.get(b))return n==b;var o=!0;f.set(a,b),f.set(b,a);for(var p=g;++l<i;){m=h[l];var q=a[m],r=b[m];if(d)var s=g?d(r,q,m,b,a,f):d(q,r,m,a,b,f);if(!(s===da?q===r||e(q,r,c,d,f):s)){o=!1;break}p||(p="constructor"==m)}if(o&&!p){var t=a.constructor,u=b.constructor;t!=u&&"constructor"in a&&"constructor"in b&&!("function"==typeof t&&t instanceof t&&"function"==typeof u&&u instanceof u)&&(o=!1)}return f.delete(a),f.delete(b),o}function pf(a){return Dl(Uf(a,da,mg),a+"")}function qf(a){return gd(a,Ni,xl)}function rf(a){return gd(a,Oi,yl)}function sf(a){for(var b=a.name+"",c=dl[b],d=pk.call(dl,b)?c.length:0;d--;){var e=c[d],f=e.func;if(null==f||f==a)return e.name}return b}function tf(a){var b=pk.call(c,"placeholder")?c:a;return b.placeholder}function uf(){var a=c.iteratee||Ej;return a=a===Ej?Ld:a,arguments.length?a(arguments[0],arguments[1]):a}function vf(a,b){var c=a.__data__;return Kf(b)?c["string"==typeof b?"string":"hash"]:c.map}function wf(a){for(var b=Ni(a),c=b.length;c--;){var d=b[c],e=a[d];b[c]=[d,e,Of(e)]}return b}function xf(a,b){var c=O(a,b);return Hd(c)?c:da}function yf(a){var b=pk.call(a,Gk),c=a[Gk];try{a[Gk]=da;var d=!0}catch(a){}var e=sk.call(a);return d&&(b?a[Gk]=c:delete a[Gk]),e}function zf(a,b,c){for(var d=-1,e=c.length;++d<e;){var f=c[d],g=f.size;switch(f.type){case"drop":a+=g;break;case"dropRight":b-=g;break;case"take":b=Tk(b,a+g);break;case"takeRight":a=Sk(a,b-g)}}return{start:a,end:b}}function Af(a){var b=a.match(Nb);return b?b[1].split(Ob):[]}function Bf(a,b,c){b=xe(b,a);for(var d=-1,e=b.length,f=!1;++d<e;){var g=$f(b[d]);if(!(f=null!=a&&c(a,g)))break;a=a[g]}return f||++d!=e?f:(e=null==a?0:a.length,!!e&&ci(e)&&Hf(g,e)&&(pm(a)||om(a)))}function Cf(a){var b=a.length,c=new a.constructor(b);return b&&"string"==typeof a[0]&&pk.call(a,"index")&&(c.index=a.index,c.input=a.input),c}function Df(a){return"function"!=typeof a.constructor||Nf(a)?{}:ml(Ak(a))}function Ef(a,b,c){var d=a.constructor;switch(b){case jb:return Ae(a);case Sa:case Ta:return new d((+a));case kb:return Be(a,c);case lb:case mb:case nb:case ob:case pb:case qb:case rb:case sb:case tb:return Ee(a,c);case Ya:return new d;case Za:case eb:return new d(a);case cb:return Ce(a);case db:return new d;case fb:return De(a)}}function Ff(a,b){var c=b.length;if(!c)return a;var d=c-1;return b[d]=(c>1?"& ":"")+b[d],b=b.join(c>2?", ":" "),a.replace(Mb,"{\n/* [wrapped with "+b+"] */\n")}function Gf(a){return pm(a)||om(a)||!!(Ek&&a&&a[Ek])}function Hf(a,b){var c=typeof a;return b=null==b?Ia:b,!!b&&("number"==c||"symbol"!=c&&Xb.test(a))&&a>-1&&a%1==0&&a<b}function If(a,b,c){if(!di(c))return!1;var d=typeof b;return!!("number"==d?Th(c)&&Hf(b,c.length):"string"==d&&b in c)&&Sh(c[b],a)}function Jf(a,b){if(pm(a))return!1;var c=typeof a;return!("number"!=c&&"symbol"!=c&&"boolean"!=c&&null!=a&&!pi(a))||(Fb.test(a)||!Eb.test(a)||null!=b&&a in gk(b))}function Kf(a){var b=typeof a;return"string"==b||"number"==b||"symbol"==b||"boolean"==b?"__proto__"!==a:null===a}function Lf(a){var b=sf(a),d=c[b];if("function"!=typeof d||!(b in s.prototype))return!1;if(a===d)return!0;var e=wl(d);return!!e&&a===e[0]}function Mf(a){return!!rk&&rk in a}function Nf(a){var b=a&&a.constructor,c="function"==typeof b&&b.prototype||mk;return a===c}function Of(a){return a===a&&!di(a)}function Pf(a,b){return function(c){return null!=c&&(c[a]===b&&(b!==da||a in gk(c)))}}function Qf(a){var b=Eh(a,function(a){return c.size===ja&&c.clear(),a}),c=b.cache;return b}function Rf(a,b){var c=a[1],d=b[1],e=c|d,f=e<(qa|ra|xa),g=d==xa&&c==ta||d==xa&&c==ya&&a[7].length<=b[8]||d==(xa|ya)&&b[7].length<=b
}),Nm=gf(Ni),Om=gf(Oi),Pm=Te(function(a,b,c){return b=b.toLowerCase(),a+(c?dj(b):b)}),Qm=Te(function(a,b,c){return a+(c?"-":"")+b.toLowerCase()}),Rm=Te(function(a,b,c){return a+(c?" ":"")+b.toLowerCase()}),Sm=Se("toLowerCase"),Tm=Te(function(a,b,c){return a+(c?"_":"")+b.toLowerCase()}),Um=Te(function(a,b,c){return a+(c?" ":"")+Wm(b)}),Vm=Te(function(a,b,c){return a+(c?" ":"")+b.toUpperCase()}),Wm=Se("toUpperCase"),Xm=ce(function(a,b){try{return f(a,da,b)}catch(a){return $h(a)?a:new dk(a)}}),Ym=pf(function(a,b){return h(b,function(b){b=$f(b),Ic(a,b,em(a[b],a))}),a}),Zm=Xe(),$m=Xe(!0),_m=ce(function(a,b){return function(c){return zd(c,a,b)}}),an=ce(function(a,b){return function(c){return zd(a,c,b)}}),bn=_e(n),cn=_e(j),dn=_e(r),en=cf(),fn=cf(!0),gn=$e(function(a,b){return a+b},0),hn=ff("ceil"),jn=$e(function(a,b){return a/b},1),kn=ff("floor"),ln=$e(function(a,b){return a*b},1),mn=ff("round"),nn=$e(function(a,b){return a-b},0);return c.after=xh,c.ary=yh,c.assign=zm,c.assignIn=Am,c.assignInWith=Bm,c.assignWith=Cm,c.at=Dm,c.before=zh,c.bind=em,c.bindAll=Ym,c.bindKey=fm,c.castArray=Mh,c.chain=Xg,c.chunk=cg,c.compact=dg,c.concat=eg,c.cond=zj,c.conforms=Aj,c.constant=Bj,c.countBy=Xl,c.create=Bi,c.curry=Ah,c.curryRight=Bh,c.debounce=Ch,c.defaults=Em,c.defaultsDeep=Fm,c.defer=gm,c.delay=hm,c.difference=Fl,c.differenceBy=Gl,c.differenceWith=Hl,c.drop=fg,c.dropRight=gg,c.dropRightWhile=hg,c.dropWhile=ig,c.fill=jg,c.filter=gh,c.flatMap=hh,c.flatMapDeep=ih,c.flatMapDepth=jh,c.flatten=mg,c.flattenDeep=ng,c.flattenDepth=og,c.flip=Dh,c.flow=Zm,c.flowRight=$m,c.fromPairs=pg,c.functions=Ii,c.functionsIn=Ji,c.groupBy=$l,c.initial=sg,c.intersection=Il,c.intersectionBy=Jl,c.intersectionWith=Kl,c.invert=Gm,c.invertBy=Hm,c.invokeMap=_l,c.iteratee=Ej,c.keyBy=am,c.keys=Ni,c.keysIn=Oi,c.map=nh,c.mapKeys=Pi,c.mapValues=Qi,c.matches=Fj,c.matchesProperty=Gj,c.memoize=Eh,c.merge=Jm,c.mergeWith=Km,c.method=_m,c.methodOf=an,c.mixin=Hj,c.negate=Fh,c.nthArg=Kj,c.omit=Lm,c.omitBy=Ri,c.once=Gh,c.orderBy=oh,c.over=bn,c.overArgs=im,c.overEvery=cn,c.overSome=dn,c.partial=jm,c.partialRight=km,c.partition=bm,c.pick=Mm,c.pickBy=Si,c.property=Lj,c.propertyOf=Mj,c.pull=Ll,c.pullAll=xg,c.pullAllBy=yg,c.pullAllWith=zg,c.pullAt=Ml,c.range=en,c.rangeRight=fn,c.rearg=lm,c.reject=rh,c.remove=Ag,c.rest=Hh,c.reverse=Bg,c.sampleSize=th,c.set=Ui,c.setWith=Vi,c.shuffle=uh,c.slice=Cg,c.sortBy=cm,c.sortedUniq=Jg,c.sortedUniqBy=Kg,c.split=oj,c.spread=Ih,c.tail=Lg,c.take=Mg,c.takeRight=Ng,c.takeRightWhile=Og,c.takeWhile=Pg,c.tap=Yg,c.throttle=Jh,c.thru=Zg,c.toArray=ti,c.toPairs=Nm,c.toPairsIn=Om,c.toPath=Tj,c.toPlainObject=yi,c.transform=Wi,c.unary=Kh,c.union=Nl,c.unionBy=Ol,c.unionWith=Pl,c.uniq=Qg,c.uniqBy=Rg,c.uniqWith=Sg,c.unset=Xi,c.unzip=Tg,c.unzipWith=Ug,c.update=Yi,c.updateWith=Zi,c.values=$i,c.valuesIn=_i,c.without=Ql,c.words=yj,c.wrap=Lh,c.xor=Rl,c.xorBy=Sl,c.xorWith=Tl,c.zip=Ul,c.zipObject=Vg,c.zipObjectDeep=Wg,c.zipWith=Vl,c.entries=Nm,c.entriesIn=Om,c.extend=Am,c.extendWith=Bm,Hj(c,c),c.add=gn,c.attempt=Xm,c.camelCase=Pm,c.capitalize=dj,c.ceil=hn,c.clamp=aj,c.clone=Nh,c.cloneDeep=Ph,c.cloneDeepWith=Qh,c.cloneWith=Oh,c.conformsTo=Rh,c.deburr=ej,c.defaultTo=Cj,c.divide=jn,c.endsWith=fj,c.eq=Sh,c.escape=gj,c.escapeRegExp=hj,c.every=fh,c.find=Yl,c.findIndex=kg,c.findKey=Ci,c.findLast=Zl,c.findLastIndex=lg,c.findLastKey=Di,c.floor=kn,c.forEach=kh,c.forEachRight=lh,c.forIn=Ei,c.forInRight=Fi,c.forOwn=Gi,c.forOwnRight=Hi,c.get=Ki,c.gt=mm,c.gte=nm,c.has=Li,c.hasIn=Mi,c.head=qg,c.identity=Dj,c.includes=mh,c.indexOf=rg,c.inRange=bj,c.invoke=Im,c.isArguments=om,c.isArray=pm,c.isArrayBuffer=qm,c.isArrayLike=Th,c.isArrayLikeObject=Uh,c.isBoolean=Vh,c.isBuffer=rm,c.isDate=sm,c.isElement=Wh,c.isEmpty=Xh,c.isEqual=Yh,c.isEqualWith=Zh,c.isError=$h,c.isFinite=_h,c.isFunction=ai,c.isInteger=bi,c.isLength=ci,c.isMap=tm,c.isMatch=fi,c.isMatchWith=gi,c.isNaN=hi,c.isNative=ii,c.isNil=ki,c.isNull=ji,c.isNumber=li,c.isObject=di,c.isObjectLike=ei,c.isPlainObject=mi,c.isRegExp=um,c.isSafeInteger=ni,c.isSet=vm,c.isString=oi,c.isSymbol=pi,c.isTypedArray=wm,c.isUndefined=qi,c.isWeakMap=ri,c.isWea
this.maxDeadTimeout=a.hasOwnProperty("maxDeadTimeout")?a.maxDeadTimeout:18e5,this.calcDeadTimeout=f.funcEnum(a,"calcDeadTimeout",d.calcDeadTimeoutOptions,"exponential"),this.index={},this._conns={alive:[],dead:[]},this._timeouts=[]}a.exports=d;var e=c(0),f=c(2),g=c(6);d.selectors=c(18),d.defaultSelector="roundRobin",d.connectionClasses=c(19),d.defaultConnectionClass=d.connectionClasses._default,delete d.connectionClasses._default,d.calcDeadTimeoutOptions={flat:function(a,b){return b},exponential:function(a,b){return Math.min(2*b*Math.pow(2,.5*a-1),this.maxDeadTimeout)}},d.prototype.select=function(a){if(this._conns.alive.length)if(this.selector.length>1)this.selector(this._conns.alive,a);else try{f.nextTick(a,void 0,this.selector(this._conns.alive))}catch(b){a(b)}else this._timeouts.length?this._selectDeadConnection(a):f.nextTick(a,void 0)},d.prototype.onStatusSet=f.handler(function(a,b,c){var d,f="dead"===a,g=f&&"dead"===b,h=!f&&"dead"===b,i=b===a,j=this._conns[b],k=this._conns[a];return!(!i||f)||(j!==k&&(e.isArray(j)&&(d=j.indexOf(c),d!==-1&&j.splice(d,1)),e.isArray(k)&&(d=k.indexOf(c),d===-1&&k.push(c))),f&&this._onConnectionDied(c,g),void(h&&this._onConnectionRevived(c)))}),d.prototype._onConnectionRevived=function(a){for(var b,c=0;c<this._timeouts.length;c++)if(this._timeouts[c].conn===a){b=this._timeouts[c],b.id&&clearTimeout(b.id),this._timeouts.splice(c,1);break}},d.prototype._onConnectionDied=function(a,b){var c;if(b){for(var d=0;d<this._timeouts.length;d++)if(this._timeouts[d].conn===a){c=this._timeouts[d];break}}else c={conn:a,attempt:0,revive:function(b){c.attempt++,a.ping(function(c){a.setStatus(c?"dead":"alive"),b&&"function"==typeof b&&b(c)})}},this._timeouts.push(c);c.id&&clearTimeout(c.id);var e=this.calcDeadTimeout(c.attempt,this.deadTimeout);c.id=setTimeout(c.revive,e),c.runAt=f.now()+e},d.prototype._selectDeadConnection=function(a){var c=e.sortBy(this._timeouts,"runAt"),d=this.log;b.nextTick(function e(){var f=c.shift();return f?f.conn?void("dead"===f.conn.status?f.revive(function(c){c?(d.warning("Unable to revive connection: "+f.conn.id),b.nextTick(e)):a(void 0,f.conn)}):a(void 0,f.conn)):void e():void a(void 0)})},d.prototype.getConnections=function(a,b){var c;return c=a?this._conns[a]:this._conns[this._conns.alive.length?"alive":"dead"],null==b?c.slice(0):e.shuffle(c).slice(0,b)},d.prototype.addConnection=function(a){a.id||(a.id=a.host.toString()),this.index[a.id]||(this.log.info("Adding connection to",a.id),this.index[a.id]=a,a.on("status set",this.bound.onStatusSet),a.setStatus("alive"))},d.prototype.removeConnection=function(a){a.id||(a.id=a.host.toString()),this.index[a.id]&&(delete this.index[a.id],a.setStatus("closed"),a.removeListener("status set",this.bound.onStatusSet))},d.prototype.setHosts=function(a){var b,c,d,f,g=e.clone(this.index);for(c=0;c<a.length;c++)f=a[c],d=f.toString(),this.index[d]?delete g[d]:(b=new this.Connection(f,this._config),b.id=d,this.addConnection(b));var h=e.keys(g);for(c=0;c<h.length;c++)this.removeConnection(this.index[h[c]])},d.prototype.getAllHosts=function(){return e.values(this.index).map(function(a){return a.host})},d.prototype.close=function(){this.setHosts([])},d.prototype.empty=d.prototype.close}).call(b,c(3))},function(a,b,c){"use strict";function d(a){function b(){a.hasOwnProperty("log")||(a.log="warning"),a.hosts||a.host||(a.host="http://localhost:9200"),this.close=function(){this.transport.close()},this.transport=new e(a),g.each(b.prototype,g.bind(function(a,b){a.prototype instanceof f.ApiNamespace&&(this[b]=new a(this.transport,this))},this)),delete this._namespaces}if(a=a||{},a.__reused)throw new Error("Do not reuse objects to configure the elasticsearch Client class: https://github.com/elasticsearch/elasticsearch-js/issues/33");a.__reused=!0,b.prototype=h.funcEnum(a,"apiVersion",d.apis,"_default"),a.sniffEndpoint||b.prototype!==d.apis["0.90"]||(a.sniffEndpoint="/_cluster/nodes");var i=b;return a.plugins&&(i.prototype=g.cloneDeep(i.prototype),g.each(a.plugins,function(b){i=b(i,a,{apis:c(24),connectors:c(19),loggers:c(16),selectors:c(18),serializers:
a=a.substr(0,a.length-b.length)),a&&(this.hostname=a)}},function(a,b,c){"use strict";b.decode=b.parse=c(35),b.encode=b.stringify=c(36)},function(a,b){function c(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function d(a){return"function"==typeof a}function e(a){return"number"==typeof a}function f(a){return"object"==typeof a&&null!==a}function g(a){return void 0===a}a.exports=c,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._maxListeners=void 0,c.defaultMaxListeners=10,c.prototype.setMaxListeners=function(a){if(!e(a)||a<0||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},c.prototype.emit=function(a){var b,c,e,h,i,j;if(this._events||(this._events={}),"error"===a&&(!this._events.error||f(this._events.error)&&!this._events.error.length)){if(b=arguments[1],b instanceof Error)throw b;var k=new Error('Uncaught, unspecified "error" event. ('+b+")");throw k.context=b,k}if(c=this._events[a],g(c))return!1;if(d(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:h=Array.prototype.slice.call(arguments,1),c.apply(this,h)}else if(f(c))for(h=Array.prototype.slice.call(arguments,1),j=c.slice(),e=j.length,i=0;i<e;i++)j[i].apply(this,h);return!0},c.prototype.addListener=function(a,b){var e;if(!d(b))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,d(b.listener)?b.listener:b),this._events[a]?f(this._events[a])?this._events[a].push(b):this._events[a]=[this._events[a],b]:this._events[a]=b,f(this._events[a])&&!this._events[a].warned&&(e=g(this._maxListeners)?c.defaultMaxListeners:this._maxListeners,e&&e>0&&this._events[a].length>e&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),"function"==typeof console.trace&&console.trace())),this},c.prototype.on=c.prototype.addListener,c.prototype.once=function(a,b){function c(){this.removeListener(a,c),e||(e=!0,b.apply(this,arguments))}if(!d(b))throw TypeError("listener must be a function");var e=!1;return c.listener=b,this.on(a,c),this},c.prototype.removeListener=function(a,b){var c,e,g,h;if(!d(b))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(c=this._events[a],g=c.length,e=-1,c===b||d(c.listener)&&c.listener===b)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,b);else if(f(c)){for(h=g;h-- >0;)if(c[h]===b||c[h].listener&&c[h].listener===b){e=h;break}if(e<0)return this;1===c.length?(c.length=0,delete this._events[a]):c.splice(e,1),this._events.removeListener&&this.emit("removeListener",a,b)}return this},c.prototype.removeAllListeners=function(a){var b,c;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[a]&&delete this._events[a],this;if(0===arguments.length){for(b in this._events)"removeListener"!==b&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this._events={},this}if(c=this._events[a],d(c))this.removeListener(a,c);else if(c)for(;c.length;)this.removeListener(a,c[c.length-1]);return delete this._events[a],this},c.prototype.listeners=function(a){var b;return b=this._events&&this._events[a]?d(this._events[a])?[this._events[a]]:this._events[a].slice():[]},c.prototype.listenerCount=function(a){if(this._events){var b=this._events[a];if(d(b))return 1;if(b)return b.length}return 0},c.listenerCount=function(a,b){return a.listenerCount(b)}},function(a,b,c){"use strict";a.exports={console:c(39)}},function(a,b,c){"use strict";function d(a,b){this.log=a,this.listeningLevels=[],h.makeBoundMethods(this),this.log.once("closing",this.bound.cleanUpListeners),this.setupListeners(b.levels)}function e(a){return a<10?"0"+a.toString(10):a.toString(10)}function f(a,b){var c=h.repeat(" ",b||2);return(a||"").split(/\r?\n/).map(function(a)
},maxNumSegments:{type:"number",name:"max_num_segments"},onlyExpungeDeletes:{type:"boolean",name:"only_expunge_deletes"}},urls:[{fmt:"/<%=index%>/_forcemerge",req:{index:{type:"list"}}},{fmt:"/_forcemerge"}],method:"POST"}),f.indices.prototype.get=d({params:{local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}}}),f.indices.prototype.getAlias=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}},{fmt:"/_alias"}]}),f.indices.prototype.getFieldMapping=d({params:{includeDefaults:{type:"boolean",name:"include_defaults"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>/field/<%=fields%>",req:{index:{type:"list"},type:{type:"list"},fields:{type:"list"}}},{fmt:"/<%=index%>/_mapping/field/<%=fields%>",req:{index:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/<%=type%>/field/<%=fields%>",req:{type:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/field/<%=fields%>",req:{fields:{type:"list"}}}]}),f.indices.prototype.getMapping=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},{fmt:"/_mapping/<%=type%>",req:{type:{type:"list"}}},{fmt:"/_mapping"}]}),f.indices.prototype.getSettings=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},local:{type:"boolean"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/_settings/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_settings"}]}),f.indices.prototype.getTemplate=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_template"}]}),f.indices.prototype.getUpgrade=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}]}),f.indices.prototype.open=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"closed",options:["open","closed","none","all"],name:"expand_wildcards"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_ope
}if(w(c)&&(r=" "+RegExp.prototype.toString.call(c)),y(c)&&(r=" "+Date.prototype.toUTCString.call(c)),z(c)&&(r=" "+k(c)),0===g.length&&(!s||0==c.length))return u[0]+r+u[1];if(d<0)return w(c)?a.stylize(RegExp.prototype.toString.call(c),"regexp"):a.stylize("[Object]","special");a.seen.push(c);var x;return x=s?l(a,c,d,p,g):g.map(function(b){return m(a,c,d,p,b,s)}),a.seen.pop(),n(x,r,u)}function j(a,b){if(v(b))return a.stylize("undefined","undefined");if(t(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}return s(b)?a.stylize(""+b,"number"):p(b)?a.stylize(""+b,"boolean"):q(b)?a.stylize("null","null"):void 0}function k(a){return"["+Error.prototype.toString.call(a)+"]"}function l(a,b,c,d,e){for(var f=[],g=0,h=b.length;g<h;++g)F(b,String(g))?f.push(m(a,b,c,d,String(g),!0)):f.push("");return e.forEach(function(e){e.match(/^\d+$/)||f.push(m(a,b,c,d,e,!0))}),f}function m(a,b,c,d,e,f){var g,h,j;if(j=Object.getOwnPropertyDescriptor(b,e)||{value:b[e]},j.get?h=j.set?a.stylize("[Getter/Setter]","special"):a.stylize("[Getter]","special"):j.set&&(h=a.stylize("[Setter]","special")),F(d,e)||(g="["+e+"]"),h||(a.seen.indexOf(j.value)<0?(h=q(c)?i(a,j.value,null):i(a,j.value,c-1),h.indexOf("\n")>-1&&(h=f?h.split("\n").map(function(a){return" "+a}).join("\n").substr(2):"\n"+h.split("\n").map(function(a){return" "+a}).join("\n"))):h=a.stylize("[Circular]","special")),v(g)){if(f&&e.match(/^\d+$/))return h;g=JSON.stringify(""+e),g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=a.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=a.stylize(g,"string"))}return g+": "+h}function n(a,b,c){var d=0,e=a.reduce(function(a,b){return d++,b.indexOf("\n")>=0&&d++,a+b.replace(/\u001b\[\d\d?m/g,"").length+1},0);return e>60?c[0]+(""===b?"":b+"\n ")+" "+a.join(",\n ")+" "+c[1]:c[0]+b+" "+a.join(", ")+" "+c[1]}function o(a){return Array.isArray(a)}function p(a){return"boolean"==typeof a}function q(a){return null===a}function r(a){return null==a}function s(a){return"number"==typeof a}function t(a){return"string"==typeof a}function u(a){return"symbol"==typeof a}function v(a){return void 0===a}function w(a){return x(a)&&"[object RegExp]"===C(a)}function x(a){return"object"==typeof a&&null!==a}function y(a){return x(a)&&"[object Date]"===C(a)}function z(a){return x(a)&&("[object Error]"===C(a)||a instanceof Error)}function A(a){return"function"==typeof a}function B(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function C(a){return Object.prototype.toString.call(a)}function D(a){return a<10?"0"+a.toString(10):a.toString(10)}function E(){var a=new Date,b=[D(a.getHours()),D(a.getMinutes()),D(a.getSeconds())].join(":");return[a.getDate(),J[a.getMonth()],b].join(" ")}function F(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var G=/%[sdj%]/g;b.format=function(a){if(!t(a)){for(var b=[],c=0;c<arguments.length;c++)b.push(e(arguments[c]));return b.join(" ")}for(var c=1,d=arguments,f=d.length,g=String(a).replace(G,function(a){if("%%"===a)return"%";if(c>=f)return a;switch(a){case"%s":return String(d[c++]);case"%d":return Number(d[c++]);case"%j":try{return JSON.stringify(d[c++])}catch(a){return"[Circular]"}default:return a}}),h=d[c];c<f;h=d[++c])g+=q(h)||!x(h)?" "+h:" "+e(h);return g},b.deprecate=function(c,e){function f(){if(!g){if(d.throwDeprecation)throw new Error(e);d.traceDeprecation?console.trace(e):console.error(e),g=!0}return c.apply(this,arguments)}if(v(a.process))return function(){return b.deprecate(c,e).apply(this,arguments)};if(d.noDeprecation===!0)return c;var g=!1;return f};var H,I={};b.debuglog=function(a){if(v(H)&&(H=d.env.NODE_DEBUG||""),a=a.toUpperCase(),!I[a])if(new RegExp("\\b"+a+"\\b","i").test(H)){var c=d.pid;I[a]=function(){var d=b.format.apply(b,arguments);console.error("%s %d: %s",a,c,d)}}else I[a]=function(){};return I[a]},b.inspect=e,e.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[3
type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_close",req:{index:{type:"list"}}},method:"POST"}),f.indices.prototype.create=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},updateAllTypes:{type:"boolean",name:"update_all_types"}},url:{fmt:"/<%=index%>",req:{index:{type:"string"}}},method:"PUT"}),f.indices.prototype.delete=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"DELETE"}),f.indices.prototype.deleteAlias=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},method:"DELETE"}),f.indices.prototype.deleteTemplate=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},method:"DELETE"}),f.indices.prototype.exists=d({params:{local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"HEAD"}),f.indices.prototype.existsAlias=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}}],method:"HEAD"}),f.indices.prototype.existsTemplate=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},method:"HEAD"}),f.indices.prototype.existsType=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},method:"HEAD"}),f.indices.prototype.flush=d({params:{force:{type:"boolean"},waitIfOngoing:{type:"boolean",name:"wait_if_ongoing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush",req:{index:{type:"list"}}},{fmt:"/_flush"}],method:"POST"}),f.indices.prototype.flushSynced=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush/synced",req:{index:{type:"list"}}},{fmt:"/_flush/synced"}],method:"POST"}),f.indices.prototype.forcemerge=d({params:{flush:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},maxNumSegments:{type:"number",name:"max_num_segments"},onlyExpungeDeletes:{type:"boolean",name:"
}}}],method:"POST"})},function(a,b,c){"use strict";var d=c(1).makeFactoryWithModifier(function(a){return c(0).merge(a,{params:{filterPath:{type:"list",name:"filter_path"}}})}),e=c(1).namespaceFactory,f=a.exports={};f._namespaces=["cat","cluster","indices","ingest","nodes","snapshot","tasks"],f.bulk=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},type:{type:"string"},fields:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/_bulk",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_bulk",req:{index:{type:"string"}}},{fmt:"/_bulk"}],needBody:!0,bulkBody:!0,method:"POST"}),f.cat=e(),f.cat.prototype.aliases=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/aliases/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_cat/aliases"}]}),f.cat.prototype.allocation=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/allocation/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cat/allocation"}]}),f.cat.prototype.count=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/count/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/count"}]}),f.cat.prototype.fielddata=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},fields:{type:"list"}},urls:[{fmt:"/_cat/fielddata/<%=fields%>",req:{fields:{type:"list"}}},{fmt:"/_cat/fielddata"}]}),f.cat.prototype.health=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},ts:{type:"boolean",default:!0},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/health"}}),f.cat.prototype.help=d({params:{help:{type:"boolean",default:!1},s:{type:"list"}},url:{fmt:"/_cat"}}),f.cat.prototype.indices=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","m","g"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},health:{type:"enum",default:null,options:["green","yellow","red"]},help:{type:"boolean",default:!1},pri:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/indices/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/indices"}]}),f.cat.prototype.master=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/master"}}),f.cat.prototype.nodeattrs=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodeattrs"}}),f.cat.prototype.nodes=d({params:{format:{type:"string"},fullId:{type:"boolean",name:"full_id"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodes"}}),f.cat.prototype.pendingTasks=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeou
}}},{fmt:"/<%=index%>/_stats",req:{index:{type:"list"}}},{fmt:"/_stats"}]}),f.indices.prototype.updateAliases=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_aliases"},needBody:!0,method:"POST"}),f.indices.prototype.upgrade=d({params:{allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},onlyAncientSegments:{type:"boolean",name:"only_ancient_segments"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}],method:"POST"}),f.indices.prototype.validateQuery=d({params:{explain:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},operationThreading:{name:"operation_threading"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},rewrite:{type:"boolean"},allShards:{type:"boolean",name:"all_shards"}},urls:[{fmt:"/<%=index%>/<%=type%>/_validate/query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_validate/query",req:{index:{type:"list"}}},{fmt:"/_validate/query"}],method:"POST"}),f.info=d({url:{fmt:"/"}}),f.ingest=e(),f.ingest.prototype.deletePipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),f.ingest.prototype.getPipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"}},urls:[{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline"}]}),f.ingest.prototype.processorGrok=d({url:{fmt:"/_ingest/processor/grok"}}),f.ingest.prototype.putPipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),f.ingest.prototype.simulate=d({params:{verbose:{type:"boolean",default:!1}},urls:[{fmt:"/_ingest/pipeline/<%=id%>/_simulate",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline/_simulate"}],needBody:!0,method:"POST"}),f.mget=d({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mget",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mget",req:{index:{type:"string"}}},{fmt:"/_mget"}],needBody:!0,method:"POST"}),f.msearch=d({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"},typedKeys:{type:"boolean",name:"typed_keys"},preFilterShardSize:{type:"number",default:128,name:"pre_filter_shard_size"}},urls:[{fmt:"/<%=index%>/<%=type%>/_msearch",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch",req:{index:{type:"list"}}},{fmt:"/_msearch"}],needBody:!0,bulkBody:!0,method:"POST"}),f.msearchTemplate=d({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},typedKeys:{type:"boolean",name:"typed_keys"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"}},urls:[{fmt:"/<%=index%>/<%=type%>/_msearch/template",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch/template",req:{index:{type:"list"}}},{fmt:"/_msearch/template"}],needBody:!0,bulkBody:!0,method:"POST"}),f.mtermvectors=d({params:{ids:{type:"list",requi
},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},urls:[{fmt:"/<%=index%>/<%=type%>/_delete_by_query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_delete_by_query",req:{index:{type:"list"}}}],needBody:!0,method:"POST"}),f.deleteScript=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},urls:[{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},{fmt:"/_scripts/<%=lang%>",req:{lang:{type:"string"}}}],method:"DELETE"}),f.deleteTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),f.exists=d({params:{storedFields:{type:"list",name:"stored_fields"},parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"HEAD"}),f.existsSource=d({params:{parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_source",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"HEAD"}),f.explain=d({params:{analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},analyzer:{type:"string"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},storedFields:{type:"list",name:"stored_fields"},lenient:{type:"boolean"},parent:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_explain",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"POST"}),f.fieldCaps=d({params:{fields:{type:"list"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_field_caps",req:{index:{type:"list"}}},{fmt:"/_field_caps"}],method:"POST"}),f.fieldStats=d({param
suggestMode:{type:"enum",default:"missing",options:["missing","popular","always"],name:"suggest_mode"},suggestSize:{type:"number",name:"suggest_size"},suggestText:{type:"string",name:"suggest_text"},timeout:{type:"time"},trackScores:{type:"boolean",name:"track_scores"},typedKeys:{type:"boolean",name:"typed_keys"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},batchedReduceSize:{type:"number",default:512,name:"batched_reduce_size"},maxConcurrentShardRequests:{type:"number",default:"The default grows with the number of nodes in the cluster but is at most 256.",name:"max_concurrent_shard_requests"},preFilterShardSize:{type:"number",default:128,name:"pre_filter_shard_size"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search",req:{index:{type:"list"}}},{fmt:"/_search"}],method:"POST"}),f.searchShards=d({params:{preference:{type:"string"},routing:{type:"string"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search_shards",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search_shards",req:{index:{type:"list"}}},{fmt:"/_search_shards"}],method:"POST"}),f.searchTemplate=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},explain:{type:"boolean"},profile:{type:"boolean"},typedKeys:{type:"boolean",name:"typed_keys"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search/template",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search/template",req:{index:{type:"list"}}},{fmt:"/_search/template"}],method:"POST"}),f.snapshot=e(),f.snapshot.prototype.create=d({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),f.snapshot.prototype.createRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},verify:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"string"}}},needBody:!0,method:"POST"}),f.snapshot.prototype.delete=d({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"DELETE"}),f.snapshot.prototype.deleteRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},method:"DELETE"}),f.snapshot.prototype.get=d({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},verbose:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"list"}}}}),f.snapshot.prototype.getRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_snapshot"}]}),f.snapshot.prototype.restore=d({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_restore",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),f.snapshot.prototype.status=d({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"
}}},method:"HEAD"}),f.indices.prototype.existsType=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},method:"HEAD"}),f.indices.prototype.flush=d({params:{force:{type:"boolean"},waitIfOngoing:{type:"boolean",name:"wait_if_ongoing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush",req:{index:{type:"list"}}},{fmt:"/_flush"}],method:"POST"}),f.indices.prototype.flushSynced=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush/synced",req:{index:{type:"list"}}},{fmt:"/_flush/synced"}],method:"POST"}),f.indices.prototype.forcemerge=d({params:{flush:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},maxNumSegments:{type:"number",name:"max_num_segments"},onlyExpungeDeletes:{type:"boolean",name:"only_expunge_deletes"},operationThreading:{name:"operation_threading"},waitForMerge:{type:"boolean",name:"wait_for_merge"}},urls:[{fmt:"/<%=index%>/_forcemerge",req:{index:{type:"list"}}},{fmt:"/_forcemerge"}],method:"POST"}),f.indices.prototype.get=d({params:{local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/<%=feature%>",req:{index:{type:"list"},feature:{type:"list",options:["_settings","_mappings","_aliases"]}}},{fmt:"/<%=index%>",req:{index:{type:"list"}}}]}),f.indices.prototype.getAlias=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}},{fmt:"/_alias"}]}),f.indices.prototype.getFieldMapping=d({params:{includeDefaults:{type:"boolean",name:"include_defaults"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>/field/<%=fields%>",req:{index:{type:"list"},type:{type:"list"},fields:{type:"list"}}},{fmt:"/<%=index%>/_mapping/field/<%=fields%>",req:{index:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/<%=type%>/field/<%=fields%>",req:{type:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/field/<%=fields%>",req:{fields:{type:"list"}}}]}),f.indices.prototype.getMapping=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},{fmt:"/_
type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/allocation/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cat/allocation"}]}),f.cat.prototype.count=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/count/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/count"}]}),f.cat.prototype.fielddata=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},fields:{type:"list"}},urls:[{fmt:"/_cat/fielddata/<%=fields%>",req:{fields:{type:"list"}}},{fmt:"/_cat/fielddata"}]}),f.cat.prototype.health=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},ts:{type:"boolean",default:!0},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/health"}}),f.cat.prototype.help=d({params:{help:{type:"boolean",default:!1},s:{type:"list"}},url:{fmt:"/_cat"}}),f.cat.prototype.indices=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","m","g"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},health:{type:"enum",default:null,options:["green","yellow","red"]},help:{type:"boolean",default:!1},pri:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/indices/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/indices"}]}),f.cat.prototype.master=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/master"}}),f.cat.prototype.nodeattrs=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodeattrs"}}),f.cat.prototype.nodes=d({params:{format:{type:"string"},fullId:{type:"boolean",name:"full_id"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodes"}}),f.cat.prototype.pendingTasks=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/pending_tasks"}}),f.cat.prototype.plugins=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/plugins"}}),f.cat.prototype.recovery=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/recovery/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/recovery"}]}),f.cat.prototype.repositories=d({params:{format:{type:"string"},local:{type:"boolean",default:!1},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/repositories"}}),f.cat.prototype.segments=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/segments/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/segments"}]}),f.cat.prototype.shards=d({params:{form
type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},rewrite:{type:"boolean"},allShards:{type:"boolean",name:"all_shards"}},urls:[{fmt:"/<%=index%>/<%=type%>/_validate/query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_validate/query",req:{index:{type:"list"}}},{fmt:"/_validate/query"}],method:"POST"}),f.info=d({url:{fmt:"/"}}),f.ingest=e(),f.ingest.prototype.deletePipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),f.ingest.prototype.getPipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"}},urls:[{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline"}]}),f.ingest.prototype.processorGrok=d({url:{fmt:"/_ingest/processor/grok"}}),f.ingest.prototype.putPipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),f.ingest.prototype.simulate=d({params:{verbose:{type:"boolean",default:!1}},urls:[{fmt:"/_ingest/pipeline/<%=id%>/_simulate",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline/_simulate"}],needBody:!0,method:"POST"}),f.mget=d({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mget",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mget",req:{index:{type:"string"}}},{fmt:"/_mget"}],needBody:!0,method:"POST"}),f.msearch=d({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"},typedKeys:{type:"boolean",name:"typed_keys"},preFilterShardSize:{type:"number",default:128,name:"pre_filter_shard_size"}},urls:[{fmt:"/<%=index%>/<%=type%>/_msearch",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch",req:{index:{type:"list"}}},{fmt:"/_msearch"}],needBody:!0,bulkBody:!0,method:"POST"}),f.msearchTemplate=d({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},typedKeys:{type:"boolean",name:"typed_keys"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"}},urls:[{fmt:"/<%=index%>/<%=type%>/_msearch/template",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch/template",req:{index:{type:"list"}}},{fmt:"/_msearch/template"}],needBody:!0,bulkBody:!0,method:"POST"}),f.mtermvectors=d({params:{ids:{type:"list",required:!1},termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},parent:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mtermvectors",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mtermvectors",req:{index:{type:"string"}}},{fmt:"/_mtermvectors"}],method:"POST"}),f.nodes=e(),f.nodes.prototype.hotThreads=d({params:{interval:{type:"time"},snapshots:{type:"number"},threads:{type:"number"},ignoreIdleThreads:{type:"boolean",name:"ignore_idle_threads"},type:{type:"enum",options:["cpu","wait","block"]},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/hotthreads",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/hotthreads"}]}),f.nodes.pr
},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},urls:[{fmt:"/<%=index%>/<%=type%>/_delete_by_query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_delete_by_query",req:{index:{type:"list"}}}],needBody:!0,method:"POST"}),f.deleteScript=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),f.exists=d({params:{storedFields:{type:"list",name:"stored_fields"},parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"HEAD"}),f.existsSource=d({params:{parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_source",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"HEAD"}),f.explain=d({params:{analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},analyzer:{type:"string"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},storedFields:{type:"list",name:"stored_fields"},lenient:{type:"boolean"},parent:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_explain",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"POST"}),f.fieldCaps=d({params:{fields:{type:"list"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_field_caps",req:{index:{type:"list"}}},{fmt:"/_field_caps"}],method:"POST"}),f.get=d({params:{includeTypeName:{type:"string",name:"include_type_name"},storedFields:{type:"list",name:"stored_fields"},parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}}]}),f.getScript=d({url:{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}}}),f.getSource=d({params:{parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_source",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}}}),f.index=d({params:{includeTypeName:{type:"string",name:"include_type_name"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},opType:{type:"enum",default:"index",options:["index","create"],name:"op_type"},pa
name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),f.snapshot.prototype.createRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},verify:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"string"}}},needBody:!0,method:"POST"}),f.snapshot.prototype.delete=d({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"DELETE"}),f.snapshot.prototype.deleteRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},method:"DELETE"}),f.snapshot.prototype.get=d({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},verbose:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"list"}}}}),f.snapshot.prototype.getRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_snapshot"}]}),f.snapshot.prototype.restore=d({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_restore",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),f.snapshot.prototype.status=d({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},urls:[{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_status",req:{repository:{type:"string"},snapshot:{type:"list"}}},{fmt:"/_snapshot/<%=repository%>/_status",req:{repository:{type:"string"}}},{fmt:"/_snapshot/_status"}]}),f.snapshot.prototype.verifyRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>/_verify",req:{repository:{type:"string"}}},method:"POST"}),f.tasks=e(),f.tasks.prototype.cancel=d({params:{nodes:{type:"list"},actions:{type:"list"},parentTaskId:{type:"string",name:"parent_task_id"}},urls:[{fmt:"/_tasks/<%=taskId%>/_cancel",req:{taskId:{type:"string"}}},{fmt:"/_tasks/_cancel"}],method:"POST"}),f.tasks.prototype.get=d({params:{waitForCompletion:{type:"boolean",name:"wait_for_completion"},timeout:{type:"time"}},url:{fmt:"/_tasks/<%=taskId%>",req:{taskId:{type:"string"}}}}),f.tasks.prototype.list=d({params:{nodes:{type:"list"},actions:{type:"list"},detailed:{type:"boolean"},parentTaskId:{type:"string",name:"parent_task_id"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},groupBy:{type:"enum",default:"nodes",options:["nodes","parents","none"],name:"group_by"},timeout:{type:"time"}},url:{fmt:"/_tasks"}}),f.termvectors=d({params:{termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},parent:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_termvectors",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_termvectors",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.update=d({params:{includeTypeName:{type:"string",name:"include_type_name"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},
}());