From d267b4a7d73c350c81051981af8ca5eb9a51f29b Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sun, 25 Feb 2024 14:33:16 +0000 Subject: [PATCH] docs: Build docs for v2.25.0 --- browser/elastic-builder.min.js | 2 +- docs/index.html | 2193 ++++++++++++++++++++------------ 2 files changed, 1403 insertions(+), 792 deletions(-) diff --git a/browser/elastic-builder.min.js b/browser/elastic-builder.min.js index bda89b5..dfdb78b 100644 --- a/browser/elastic-builder.min.js +++ b/browser/elastic-builder.min.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.esb=e():t.esb=e()}(window,function(){return function(t){var e={};function r(s){if(e[s])return e[s].exports;var i=e[s]={i:s,l:!1,exports:{}};return t[s].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,s){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(s,i,function(e){return t[e]}.bind(null,i));return s},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=42)}([function(t,e){t.exports=function(t){return null==t}},function(t,e,r){"use strict";e.RequestBodySearch=r(43),e.Aggregation=r(33),e.Query=r(12),e.Suggester=r(34),e.Script=r(36),e.Highlight=r(24),e.GeoPoint=r(46),e.GeoShape=r(47),e.IndexedShape=r(48),e.Sort=r(23),e.Rescore=r(35),e.InnerHits=r(37),e.SearchTemplate=r(49),e.consts=r(17),e.util=r(6)},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,Script:n,util:{checkType:o}}=r(1);t.exports=class extends i{constructor(t,e,r){super(t,e),s(r)||(this._aggsDef.field=r)}field(t){return this._aggsDef.field=t,this}script(t){return o(t,n),this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,util:{invalidParam:n}}=r(1),o=n("","gap_policy","'skip' or 'insert_zeros'");t.exports=class extends i{constructor(t,e,r,i){super(t,e),this._refUrl=r,s(i)||(this._aggsDef.buckets_path=i)}bucketsPath(t){return this._aggsDef.buckets_path=t,this}gapPolicy(t){s(t)&&o(t,this._refUrl);const e=t.toLowerCase();return"skip"!==e&&"insert_zeros"!==e&&o(t,this._refUrl),this._aggsDef.gap_policy=e,this}format(t){return this._aggsDef.format=t,this}}},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,Script:n,util:{checkType:o}}=r(1);t.exports=class extends i{constructor(t,e,r){super(t,e),s(r)||(this._aggsDef.field=r)}field(t){return this._aggsDef.field=t,this}script(t){return o(t,n),this._aggsDef.script=t,this}missing(t){return this._aggsDef.missing=t,this}format(t){return this._aggsDef.format=t,this}}},function(t,e,r){(function(e){var r="Expected a function",s="__lodash_hash_undefined__",i=1/0,n=9007199254740991,o="[object Arguments]",u="[object Function]",c="[object GeneratorFunction]",a="[object Symbol]",h=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/,l=/^\./,p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,y="object"==typeof e&&e&&e.Object===Object&&e,m="object"==typeof self&&self&&self.Object===Object&&self,w=y||m||Function("return this")();var x=Array.prototype,O=Function.prototype,b=Object.prototype,S=w["__core-js_shared__"],v=function(){var t=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),A=O.toString,q=b.hasOwnProperty,D=b.toString,T=RegExp("^"+A.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=w.Symbol,k=b.propertyIsEnumerable,E=x.splice,P=L(w,"Map"),z=L(Object,"create"),M=Q?Q.prototype:void 0,F=M?M.toString:void 0;function j(t){var e=-1,r=t?t.length:0;for(this.clear();++e-1&&t%1==0&&t-1},$.prototype.set=function(t,e){var r=this.__data__,s=R(r,t);return s<0?r.push([t,e]):r[s][1]=e,this},C.prototype.clear=function(){this.__data__={hash:new j,map:new(P||$),string:new j}},C.prototype.delete=function(t){return B(this,t).delete(t)},C.prototype.get=function(t){return B(this,t).get(t)},C.prototype.has=function(t){return B(this,t).has(t)},C.prototype.set=function(t,e){return B(this,t).set(t,e),this};var I=U(function(t){t=function(t){return null==t?"":function(t){if("string"==typeof t)return t;if(tt(t))return F?F.call(t):"";var e=t+"";return"0"==e&&1/t==-i?"-0":e}(t)}(t);var e=[];return l.test(t)&&e.push(""),t.replace(p,function(t,r,s,i){e.push(s?i.replace(_,"$1"):r||t)}),e});function J(t){if("string"==typeof t||tt(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}function U(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(r);var s=function(){var r=arguments,i=e?e.apply(this,r):r[0],n=s.cache;if(n.has(i))return n.get(i);var o=t.apply(this,r);return s.cache=n.set(i,o),o};return s.cache=new(U.Cache||C),s}function W(t,e){return t===e||t!=t&&e!=e}U.Cache=C;var V=Array.isArray;function Z(t){var e=Y(t)?D.call(t):"";return e==u||e==c}function K(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}function Y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function X(t){return!!t&&"object"==typeof t}function tt(t){return"symbol"==typeof t||X(t)&&D.call(t)==a}t.exports=function(t,e){return null!=t&&H(t,e,N)}}).call(this,r(16))},function(t,e,r){"use strict";const s=r(7),i=r(0),n=r(22),o=r(13),u=r(45),c=r(5),a=r(32);function h(t,e,r){return t>=e&&t<=r}e.checkType=function(t,e){if(!(t instanceof e))throw i(t)?console.warn(`Was expecting instance of ${e.name} but got ${t}!`):console.warn(`${a(t)} is of the type ${typeof t}`),new TypeError(`Argument must be an instance of ${e.name}`)},e.constructorWrapper=function(t){return(...e)=>new t(...e)},e.firstDigitPos=function(t){if(s(t))return-1;const e=t.length;for(let r=0;rt(e));if(u(e,"toJSON")&&e.constructor!==Object)return t(e.toJSON());const r={};for(const s of Object.keys(e))r[s]=t(e[s]);return r},e.invalidParam=function(t,e,r){return(s,i=t)=>{i&&console.log(`See ${i}`),console.warn(`Got '${e}' - '${s}'`);const o=n(r)?r:a(r);throw new Error(`The '${e}' parameter should be one of ${o}`)}},e.setDefault=function(t,e,r){const s=!c(t,e);return s&&(t[e]=r),s}},function(t,e,r){(function(t,r){var s=9007199254740991,i="[object Arguments]",n="[object Function]",o="[object GeneratorFunction]",u="[object Map]",c="[object Set]",a=/^\[object .+?Constructor\]$/,h="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,l=h||g||Function("return this")(),p=e&&!e.nodeType&&e,_=p&&"object"==typeof r&&r&&!r.nodeType&&r,f=_&&_.exports===p;var d=Function.prototype,y=Object.prototype,m=l["__core-js_shared__"],w=function(){var t=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),x=d.toString,O=y.hasOwnProperty,b=y.toString,S=RegExp("^"+x.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),v=f?l.Buffer:void 0,A=y.propertyIsEnumerable,q=v?v.isBuffer:void 0,D=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object),T=N(l,"DataView"),Q=N(l,"Map"),k=N(l,"Promise"),E=N(l,"Set"),P=N(l,"WeakMap"),z=!A.call({valueOf:1},"valueOf"),M=B(T),F=B(Q),j=B(k),$=B(E),C=B(P);function R(t){return!(!W(t)||function(t){return!!w&&w in t}(t))&&(U(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?S:a).test(B(t))}function N(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return R(r)?r:void 0}var G=function(t){return b.call(t)};function B(t){if(null!=t){try{return x.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function L(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&I(t)}(t)&&O.call(t,"callee")&&(!A.call(t,"callee")||b.call(t)==i)}(T&&"[object DataView]"!=G(new T(new ArrayBuffer(1)))||Q&&G(new Q)!=u||k&&"[object Promise]"!=G(k.resolve())||E&&G(new E)!=c||P&&"[object WeakMap]"!=G(new P))&&(G=function(t){var e=b.call(t),r="[object Object]"==e?t.constructor:void 0,s=r?B(r):void 0;if(s)switch(s){case M:return"[object DataView]";case F:return u;case j:return"[object Promise]";case $:return c;case C:return"[object WeakMap]"}return e});var H=Array.isArray;function I(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}(t.length)&&!U(t)}var J=q||function(){return!1};function U(t){var e=W(t)?b.call(t):"";return e==n||e==o}function W(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}r.exports=function(t){if(I(t)&&(H(t)||"string"==typeof t||"function"==typeof t.splice||J(t)||L(t)))return!t.length;var e=G(t);if(e==u||e==c)return!t.size;if(z||function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||y)}(t))return!D(t).length;for(var r in t)if(O.call(t,r))return!1;return!0}}).call(this,r(16),r(44)(t))},function(t,e,r){"use strict";const{Query:s}=r(1);t.exports=class extends s{}},function(t,e,r){"use strict";const{inspect:s}=r(32),{util:{firstDigitPos:i},consts:{REWRITE_METHOD_SET:n}}=r(1);e.validateRewiteMethod=function(t,e,r){if(!n.has(t)){const o=`${t.substring(0,i(t))}N`;if(!n.has(o))throw console.log(`See ${r}`),console.warn(`Got '${e}' - ${t}`),new Error(`The '${e}' parameter should belong to ${s(n)}`)}}},function(t,e,r){"use strict";const s=r(40);t.exports=class extends s{}},function(t,e,r){"use strict";const{Query:s,util:{checkType:i,recursiveToJSON:n}}=r(1);t.exports=class{constructor(t){this._name=t,this._body={},this._opts={}}filter(t){return i(t,s),this._body.filter=t,this}weight(t){return this._body.weight=t,this}toJSON(){const t=Object.assign({[this._name]:this._opts},this._body);return n(t)}}},function(t,e,r){"use strict";const{recursiveToJSON:s}=r(6);t.exports=class{constructor(t){this.queryType=t,this._body={},this._queryOpts=this._body[t]={}}boost(t){return this._queryOpts.boost=t,this}name(t){return this._queryOpts._name=t,this}getDSL(){return this.toJSON()}toJSON(){return s(this._body)}}},function(t,e){t.exports=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{invalidParam:n,recursiveToJSON:o}}=r(1),u=n("","validation_method","'IGNORE_MALFORMED', 'COERCE' or 'STRICT'");t.exports=class extends i{constructor(t,e){super(t),this._field=null,this._fieldOpts={},s(e)||(this._field=e)}field(t){return this._field=t,this}validationMethod(t){s(t)&&u(t);const e=t.toUpperCase();return"IGNORE_MALFORMED"!==e&&"COERCE"!==e&&"STRICT"!==e&&u(t),this._queryOpts.validation_method=e,this}toJSON(){return o({[this.queryType]:Object.assign({[this._field]:this._fieldOpts},this._queryOpts)})}}},function(t,e,r){"use strict";const s=r(7),{util:{checkType:i}}=r(1),n=r(2),o=Object.prototype.hasOwnProperty;t.exports=class extends n{constructor(t,e,r){super(t,e,r),this._rangeRequiredKeys=["from","to"],this._aggsDef.ranges=[]}format(t){return this._aggsDef.format=t,this}range(t){if(i(t,Object),!this._rangeRequiredKeys.some(o,t))throw new Error(`Invalid Range! Range must have at least one of ${this._rangeRequiredKeys}`);return this._aggsDef.ranges.push(t),this}ranges(t){return i(t,Array),t.forEach(t=>this.range(t)),this}missing(t){return this._aggsDef.missing=t,this}keyed(t){return this._aggsDef.keyed=t,this}toJSON(){if(s(this._aggsDef.ranges))throw new Error("`ranges` cannot be empty.");return super.toJSON()}}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";e.EXECUTION_HINT_SET=new Set(["map","global_ordinals","global_ordinals_hash","global_ordinals_low_cardinality"]),e.UNIT_SET=new Set(["in","inch","yd","yards","ft","feet","km","kilometers","NM","nmi","nauticalmiles","mm","millimeters","cm","centimeters","mi","miles","m","meters"]),e.MODEL_SET=new Set(["simple","linear","ewma","holt","holt_winters"]),e.SORT_MODE_SET=new Set(["min","max","sum","avg","median"]),e.RESCORE_MODE_SET=new Set(["total","multiply","min","max","avg"]),e.REWRITE_METHOD_SET=new Set(["constant_score","constant_score_auto","constant_score_filter","scoring_boolean","constant_score_boolean","top_terms_N","top_terms_boost_N","top_terms_blended_freqs_N"]),e.MULTI_MATCH_TYPE=new Set(["best_fields","most_fields","cross_fields","phrase","phrase_prefix","bool_prefix"]),e.SCORE_MODE_SET=new Set(["multiply","sum","first","min","max","avg"]),e.BOOST_MODE_SET=new Set(["multiply","sum","replace","min","max","avg"]),e.FIELD_MODIFIER_SET=new Set(["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]),e.NESTED_SCORE_MODE_SET=new Set(["none","sum","min","max","avg"]),e.GEO_SHAPE_TYPES=new Set(["point","linestring","polygon","multipoint","multilinestring","multipolygon","geometrycollection","envelope","circle"]),e.GEO_RELATION_SET=new Set(["WITHIN","CONTAINS","DISJOINT","INTERSECTS"]),e.SUGGEST_MODE_SET=new Set(["missing","popular","always"]),e.STRING_DISTANCE_SET=new Set(["internal","damerau_levenshtein","levenstein","jarowinkler","ngram"]),e.SMOOTHING_MODEL_SET=new Set(["stupid_backoff","laplace","linear_interpolation"])},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t,e){super(t),s(e)||(this._queryOpts.query=e)}analyzer(t){return this._queryOpts.analyzer=t,this}minimumShouldMatch(t){return this._queryOpts.minimum_should_match=t,this}query(t){return this._queryOpts.query=t,this}}},function(t,e,r){"use strict";const s=r(5),i=r(0),n=r(18);t.exports=class extends n{constructor(t,e,r){super(t,r),i(e)||(this._field=e)}field(t){return this._field=t,this}toJSON(){if(!s(this._queryOpts,"query"))throw new Error("Query string is required for full text query!");const t=1===Object.keys(this._queryOpts).length?this._queryOpts.query:this._queryOpts;return{[this.queryType]:{[this._field]:t}}}}},function(t,e,r){"use strict";const s=r(0),{Query:i,InnerHits:n,util:{checkType:o,invalidParam:u},consts:{NESTED_SCORE_MODE_SET:c}}=r(1),a=u("","score_mode",c);t.exports=class extends i{constructor(t,e,r){super(t),this.refUrl=e,s(r)||this.query(r)}query(t){return o(t,i),this._queryOpts.query=t,this}scoreMode(t){s(t)&&a(t);const e=t.toLowerCase();return c.has(e)||a(t),this._queryOpts.score_mode=e,this}ignoreUnmapped(t){return this._queryOpts.ignore_unmapped=t,this}innerHits(t){return o(t,n),this._queryOpts.inner_hits=t,this}}},function(t,e,r){"use strict";const s=r(7),i=r(0),{util:{invalidParam:n,recursiveToJSON:o}}=r(1),u=n("","order","'asc' or 'desc'");t.exports=class{constructor(t,e,r,n){if(s(t))throw new Error("ValuesSourceBase `valueSrcType` cannot be empty");this._name=r,this._valueSrcType=t,this._refUrl=e,this._body={},this._opts=this._body[t]={},i(n)||(this._opts.field=n)}field(t){return this._opts.field=t,this}script(t){return this._opts.script=t,this}valueType(t){return this._opts.value_type=t,this}order(t){i(t)&&u(t,this._refUrl);const e=t.toLowerCase();return"asc"!==e&&"desc"!==e&&u(t,this._refUrl),this._opts.order=e,this}missing(t){return this._opts.missing=t,this}missingBucket(t){return this._opts.missing_bucket=t,this}toJSON(){return{[this._name]:o(this._body)}}}},function(t,e){var r="[object String]",s=Object.prototype.toString,i=Array.isArray;t.exports=function(t){return"string"==typeof t||!i(t)&&function(t){return!!t&&"object"==typeof t}(t)&&s.call(t)==r}},function(t,e,r){"use strict";const s=r(7),i=r(5),n=r(0),o=r(12),u=r(36),{checkType:c,invalidParam:a,recursiveToJSON:h}=r(6),{SORT_MODE_SET:g,UNIT_SET:l}=r(17),p="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-sort.html",_=a(p,"order","'asc' or 'desc'"),f=a(p,"mode",g),d=a(p,"distance_type","'plane' or 'arc'"),y=a(p,"unit",l);t.exports=class{constructor(t,e){this._opts={},this._geoPoint=null,this._script=null,n(t)||(this._field=t),n(e)||this.order(e)}order(t){n(t)&&_(t);const e=t.toLowerCase();return"asc"!==e&&"desc"!==e&&_(t),this._opts.order=e,this}mode(t){n(t)&&f(t);const e=t.toLowerCase();return g.has(e)||f(t),this._opts.mode=e,this}nestedPath(t){return this._opts.nested_path=t,this}nestedFilter(t){return c(t,o),this._opts.nested_filter=t,this}nested(t){const{filter:e}=t;return n(e)||c(e,o),this._opts.nested=t,this}missing(t){return this._opts.missing=t,this}unmappedType(t){return this._opts.unmapped_type=t,this}geoDistance(t){return this._geoPoint=t,this}distanceType(t){n(t)&&d(t);const e=t.toLowerCase();return"plane"!==e&&"arc"!==e&&d(t),this._opts.distance_type=e,this}unit(t){return l.has(t)||y(t),this._opts.unit=t,this}script(t){return c(t,u),this._script=t,this}type(t){return this._opts.type=t,this}format(t){return this._opts.format=t,this}reverse(t){return this._opts.reverse=t,this}toJSON(){const t=n(this._geoPoint),e=n(this._script);if(t&&e){if(s(this._opts))return this._field;if(1===Object.keys(this._opts).length&&i(this._opts,"order"))return{[this._field]:this._opts.order}}let r;return r=t?e?{[this._field]:this._opts}:{_script:Object.assign({script:this._script},this._opts)}:{_geo_distance:Object.assign({[this._field]:this._geoPoint},this._opts)},h(r)}}},function(t,e,r){"use strict";const s=r(5),i=r(7),n=r(0),o=r(22),u=r(12),{checkType:c,invalidParam:a,recursiveToJSON:h}=r(6),g="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-highlighting.html",l=a(g,"encoder","'default' or 'html'"),p=a(g,"type","'plain', 'postings' or 'fvh'"),_=a(g,"fragmenter","'simple' or 'span'");t.exports=class{constructor(t){this._fields={},this._highlight={fields:this._fields},n(t)||(o(t)?this.field(t):this.fields(t))}_setFieldOption(t,e,r){n(t)?this._highlight[e]=r:(this.field(t),this._fields[t][e]=r)}field(t){return n(t)||s(this._fields,t)||(this._fields[t]={}),this}fields(t){return c(t,Array),t.forEach(t=>this.field(t)),this}preTags(t,e){return this._setFieldOption(e,"pre_tags",o(t)?[t]:t),this}postTags(t,e){return this._setFieldOption(e,"post_tags",o(t)?[t]:t),this}styledTagsSchema(){return this._highlight.tags_schema="styled",this}scoreOrder(t){return this._setFieldOption(t,"order","score"),this}fragmentSize(t,e){return this._setFieldOption(e,"fragment_size",t),this}numberOfFragments(t,e){return this._setFieldOption(e,"number_of_fragments",t),this}noMatchSize(t,e){return this._setFieldOption(e,"no_match_size",t),this}highlightQuery(t,e){return c(t,u),this._setFieldOption(e,"highlight_query",t),this}matchedFields(t,e){if(c(t,Array),i(e))throw new Error("`matched_fields` requires field name to be passed");return this.type("fvh",e),this._setFieldOption(e,"matched_fields",t),this}phraseLimit(t){return this._highlight.phrase_limit=t,this}encoder(t){n(t)&&l(t);const e=t.toLowerCase();return"default"!==e&&"html"!==e&&l(t),this._highlight.encoder=e,this}requireFieldMatch(t,e){return this._setFieldOption(e,"require_field_match",t),this}boundaryMaxScan(t,e){return this._setFieldOption(e,"boundary_max_scan",t),this}boundaryChars(t,e){return this._setFieldOption(e,"boundary_chars",t),this}type(t,e){n(t)&&p(t);const r=t.toLowerCase();return"plain"!==r&&"postings"!==r&&"fvh"!==r&&p(t),this._setFieldOption(e,"type",r),this}forceSource(t,e){return this._setFieldOption(e,"force_source",t),this}fragmenter(t,e){n(t)&&_(t);const r=t.toLowerCase();return"simple"!==r&&"span"!==r&&_(t),this._setFieldOption(e,"fragmenter",r),this}toJSON(){return h(this._highlight)}}},function(t,e,r){"use strict";const s=r(19);t.exports=class extends s{constructor(t,e,r,s){super(t,r,s),this._refUrl=e}minimumShouldMatch(){throw console.log(`Please refer ${this._refUrl}`),new Error(`minimumShouldMatch is not supported in ${this.constructor.name}`)}slop(t){return this._queryOpts.slop=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i,setDefault:n,invalidParam:o}}=r(1),u=r(18),c=o("","operator","'AND' or 'OR'");t.exports=class extends u{constructor(t,e,r){super(t,r),this._refUrl=e}field(t){return n(this._queryOpts,"fields",[]),this._queryOpts.fields.push(t),this}fields(t){return i(t,Array),n(this._queryOpts,"fields",[]),this._queryOpts.fields=this._queryOpts.fields.concat(t),this}defaultOperator(t){s(t)&&c(t,this._refUrl);const e=t.toUpperCase();return"AND"!==e&&"OR"!==e&&c(t,this._refUrl),this._queryOpts.default_operator=e,this}analyzeWildcard(t){return this._queryOpts.analyze_wildcard=t,this}lenient(t){return this._queryOpts.lenient=t,this}quoteFieldSuffix(t){return this._queryOpts.quote_field_suffix=t,this}allFields(t){return this._queryOpts.all_fields=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{little(t){return s(t,i),this._queryOpts.little=t,this}big(t){return s(t,i),this._queryOpts.big=t,this}}},function(t,e,r){"use strict";const s=r(5),i=r(0),{util:{invalidParam:n}}=r(1),o=r(2),u=n("","direction","'asc' or 'desc'");t.exports=class extends o{constructor(t,e,r,s){super(t,e,r),i(s)||(this._aggsDef.interval=s)}interval(t){return this._aggsDef.interval=t,this}format(t){return this._aggsDef.format=t,this}offset(t){return this._aggsDef.offset=t,this}order(t,e="desc"){i(e)&&u(e);const r=e.toLowerCase();return"asc"!==r&&"desc"!==r&&u(e),s(this._aggsDef,"order")?(Array.isArray(this._aggsDef.order)||(this._aggsDef.order=[this._aggsDef.order]),this._aggsDef.order.push({[t]:r})):this._aggsDef.order={[t]:r},this}minDocCount(t){return this._aggsDef.min_doc_count=t,this}extendedBounds(t,e){return this._aggsDef.extended_bounds={min:t,max:e},this}hardBounds(t,e){return this._aggsDef.hard_bounds={min:t,max:e},this}missing(t){return this._aggsDef.missing=t,this}keyed(t){return this._aggsDef.keyed=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{EXECUTION_HINT_SET:n}}=r(1),o=r(2),u=i("","execution_hint",n);t.exports=class extends o{constructor(t,e,r,s){super(t,e,s),this._refUrl=r}format(t){return this._aggsDef.format=t,this}minDocCount(t){return this._aggsDef.min_doc_count=t,this}shardMinDocCount(t){return this._aggsDef.shard_min_doc_count=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}missing(t){return this._aggsDef.missing=t,this}include(t){return this._aggsDef.include=t,this}exclude(t){return this._aggsDef.exclude=t,this}executionHint(t){s(t)&&u(t,this._refUrl);const e=t.toLowerCase();return n.has(e)||u(t,this._refUrl),this._aggsDef.execution_hint=t,this}}},function(t,e,r){"use strict";const{Query:s,Script:i,util:{checkType:n}}=r(1),o=r(29);t.exports=class extends o{jlh(){return this._aggsDef.jlh={},this}mutualInformation(t=!0,e=!0){return this._aggsDef.mutual_information={include_negatives:t,background_is_superset:e},this}chiSquare(t=!0,e=!0){return this._aggsDef.chi_square={include_negatives:t,background_is_superset:e},this}gnd(t=!0){return this._aggsDef.gnd={background_is_superset:t},this}percentage(){return this._aggsDef.percentage={},this}scriptHeuristic(t){return n(t,i),this._aggsDef.script_heuristic={script:t},this}backgroundFilter(t){return n(t,s),this._aggsDef.background_filter=t,this}script(){throw console.log(`Please refer ${this._refUrl}`),new Error(`script is not supported in ${this.constructor.name}`)}}},function(t,e,r){"use strict";const s=r(0),{Suggester:i}=r(1);t.exports=class extends i{constructor(t,e,r,i){super(t,e,r),s(i)||(this._opts.text=i)}text(t){return this._opts.text=t,this}analyzer(t){return this._suggestOpts.analyzer=t,this}shardSize(t){return this._suggestOpts.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(22),i=r(13);function n(t,r){const s={seen:[],stylize:o};return arguments.length>=3&&(s.depth=arguments[2]),arguments.length>=4&&(s.colors=arguments[3]),a(r)?s.showHidden=r:r&&e._extend(s,r),g(s.showHidden)&&(s.showHidden=!1),g(s.depth)&&(s.depth=2),g(s.colors)&&(s.colors=!1),g(s.customInspect)&&(s.customInspect=!0),s.colors&&(s.stylize=u),c(s,t,s.depth)}function o(t){return t}function u(t,e){const r=n.styles[e];return r?`[${n.colors[r][0]}m${t}[${n.colors[r][1]}m`:t}function c(t,r,i){if(t.customInspect&&r&&f(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){let e=r.inspect(i,t);return s(e)||(e=c(t,e,i)),e}const n=function(t,e){if(g(e))return t.stylize("undefined","undefined");if(s(e)){const r=`'${JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')}'`;return t.stylize(r,"string")}if(function(t){return"number"==typeof t}(e))return t.stylize(`${e}`,"number");if(a(e))return t.stylize(`${e}`,"boolean");if(h(e))return t.stylize("null","null")}(t,r);if(n)return n;let o=Object.keys(r);const u=function(t){const e={};return t.forEach(t=>{e[t]=!0}),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),_(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return d(r);if(0===o.length){if(f(r)){const e=r.name?`: ${r.name}`:"";return t.stylize(`[Function${e}]`,"special")}if(l(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(p(r))return t.stylize(Date.prototype.toString.call(r),"date");if(_(r))return d(r)}let m,w="",x=!1,O=["{","}"];if(function(t){return Array.isArray(t)}(r)&&(x=!0,O=["[","]"]),f(r)){w=` [Function${r.name?`: ${r.name}`:""}]`}return l(r)&&(w=` ${RegExp.prototype.toString.call(r)}`),p(r)&&(w=` ${Date.prototype.toUTCString.call(r)}`),_(r)&&(w=` ${d(r)}`),0!==o.length||x&&0!==r.length?i<0?l(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),m=x?function(t,e,r,s,i){const n=[];for(let i=0,o=e.length;i{i.match(/^\d+$/)||n.push(y(t,e,r,s,i,!0))}),n}(t,r,i,u,o):o.map(e=>y(t,r,i,u,e,x)),t.seen.pop(),function(t,e,r){if(t.reduce((t,e)=>t+e.replace(/\u001b\[\d\d?m/g,"").length+1,0)>60)return`${r[0]+(""===e?"":`${e}\n `)} ${t.join(",\n ")} ${r[1]}`;return`${r[0]+e} ${t.join(", ")} ${r[1]}`}(m,w,O)):O[0]+w+O[1]}function a(t){return"boolean"==typeof t}function h(t){return null===t}function g(t){return void 0===t}function l(t){return i(t)&&"[object RegExp]"===m(t)}function p(t){return i(t)&&"[object Date]"===m(t)}function _(t){return i(t)&&("[object Error]"===m(t)||t instanceof Error)}function f(t){return"function"==typeof t}function d(t){return`[${Error.prototype.toString.call(t)}]`}function y(t,e,r,s,i,n){let o,u;const a=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]};if(a.get?u=a.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):a.set&&(u=t.stylize("[Setter]","special")),hasOwnProperty(s,i)||(o=`[${i}]`),u||(t.seen.indexOf(a.value)<0?(u=h(r)?c(t,a.value,null):c(t,a.value,r-1)).indexOf("\n")>-1&&(u=n?u.split("\n").map(t=>` ${t}`).join("\n").slice(2):`\n${u.split("\n").map(t=>` ${t}`).join("\n")}`):u=t.stylize("[Circular]","special")),g(o)){if(n&&i.match(/^\d+$/))return u;(o=JSON.stringify(`${i}`)).match(/^"([a-zA-Z_]\w*)"$/)?(o=o.slice(1,-1),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return`${o}: ${u}`}function m(t){return Object.prototype.toString.call(t)}t.exports=n},function(t,e,r){"use strict";const s=r(5),i=r(7),{checkType:n,recursiveToJSON:o}=r(6);class u{constructor(t,e){if(i(e))throw new Error("Aggregation `aggType` cannot be empty");this._name=t,this.aggType=e,this._aggs={},this._aggsDef=this._aggs[e]={},this._nestedAggs=[]}name(t){return this._name=t,this}aggregation(t){return n(t,u),this._nestedAggs.push(t),this}agg(t){return this.aggregation(t)}aggregations(t){return n(t,Array),t.forEach(t=>this.aggregation(t)),this}aggs(t){return this.aggregations(t)}meta(t){return this._aggs.meta=t,this}_aggsName(){if(!i(this._name))return this._name;if(s(this._aggsDef,"field"))return`agg_${this.aggType}_${this._aggsDef.field}`;throw new Error("Aggregation name could not be determined")}getDSL(){return this.toJSON()}toJSON(){const t=o(this._aggs);return i(this._nestedAggs)||(t.aggs=Object.assign({},...o(this._nestedAggs))),{[this._aggsName()]:t}}}t.exports=u},function(t,e,r){"use strict";const s=r(0),i=r(7);t.exports=class{constructor(t,e,r){if(i(t))throw new Error("Suggester `suggesterType` cannot be empty");if(i(e))throw new Error("Suggester `name` cannot be empty");this.name=e,this.suggesterType=t,this._body={},this._opts=this._body[e]={},this._suggestOpts=this._opts[t]={},s(r)||(this._suggestOpts.field=r)}field(t){return this._suggestOpts.field=t,this}size(t){return this._suggestOpts.size=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),i=r(12),{checkType:n,invalidParam:o,recursiveToJSON:u}=r(6),{RESCORE_MODE_SET:c}=r(17),a=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-rescore.html","score_mode",c);t.exports=class{constructor(t,e){this._body={},this._rescoreOpts=this._body.query={},s(t)||(this._body.window_size=t),s(e)||this.rescoreQuery(e)}windowSize(t){return this._body.window_size=t,this}rescoreQuery(t){return n(t,i),this._rescoreOpts.rescore_query=t,this}queryWeight(t){return this._rescoreOpts.query_weight=t,this}rescoreQueryWeight(t){return this._rescoreOpts.rescore_query_weight=t,this}scoreMode(t){s(t)&&a(t);const e=t.toLowerCase();return c.has(e)||a(t),this._rescoreOpts.score_mode=e,this}toJSON(){return u(this._body)}}},function(t,e,r){"use strict";const s=r(0);t.exports=class{constructor(t,e){if(this._isTypeSet=!1,this._body={},!s(t)&&!s(e))switch(t.toLowerCase()){case"inline":this.inline(e);break;case"source":this.source(e);break;case"stored":this.stored(e);break;case"id":this.id(e);break;case"file":this.file(e);break;default:throw new Error("`type` must be one of `inline`, `stored`, `file`")}}_warn(t){console.warn(`[Script] ${t}`)}_checkMixedRepr(){this._isTypeSet&&(this._warn("Script source(`inline`/`source`/`stored`/`id`/`file`) was already specified!"),this._warn("Overwriting."),delete this._body.inline,delete this._body.source,delete this._body.stored,delete this._body.id,delete this._body.file)}inline(t){return this._checkMixedRepr(),this._body.inline=t,this._isTypeSet=!0,this}source(t){return this._checkMixedRepr(),this._body.source=t,this._isTypeSet=!0,this}stored(t){return this._checkMixedRepr(),this._body.stored=t,this._isTypeSet=!0,this}id(t){return this._checkMixedRepr(),this._body.id=t,this._isTypeSet=!0,this}file(t){return this._checkMixedRepr(),this._body.file=t,this._isTypeSet=!0,this}lang(t){return this._body.lang=t,this}params(t){return this._body.params=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),i=r(23),n=r(24),{checkType:o,setDefault:u,recursiveToJSON:c}=r(6);t.exports=class{constructor(t){this._body={},s(t)||(this._body.name=t)}name(t){return this._body.name=t,this}from(t){return this._body.from=t,this}size(t){return this._body.size=t,this}sort(t){return o(t,i),u(this._body,"sort",[]),this._body.sort.push(t),this}sorts(t){return t.forEach(t=>this.sort(t)),this}highlight(t){return o(t,n),this._body.highlight=t,this}explain(t){return this._body.explain=t,this}source(t){return this._body._source=t,this}storedFields(t){return this._body.stored_fields=t,this}scriptField(t,e){return u(this._body,"script_fields",{}),this._body.script_fields[t]={script:e},this}scriptFields(t){return o(t,Object),Object.keys(t).forEach(e=>this.scriptField(e,t[e])),this}docvalueFields(t){return this._body.docvalue_fields=t,this}version(t){return this._body.version=t,this}toJSON(){return c(this._body)}}},function(t,e,r){"use strict";e.MatchAllQuery=r(50),e.MatchNoneQuery=r(51),e.fullTextQueries=r(52),e.termLevelQueries=r(39),e.compoundQueries=r(71),e.joiningQueries=r(84),e.geoQueries=r(89),e.specializedQueries=r(94),e.spanQueries=r(100)},function(t,e,r){"use strict";e.MultiTermQueryBase=r(10),e.TermQuery=r(60),e.TermsQuery=r(61),e.TermsSetQuery=r(62),e.RangeQuery=r(63),e.ExistsQuery=r(64),e.PrefixQuery=r(65),e.WildcardQuery=r(66),e.RegexpQuery=r(67),e.FuzzyQuery=r(68),e.TypeQuery=r(69),e.IdsQuery=r(70)},function(t,e,r){"use strict";const s=r(5),i=r(0),{Query:n}=r(1);t.exports=class extends n{constructor(t,e,r){super(t),i(e)||(this._field=e),i(r)||(this._queryOpts.value=r)}field(t){return this._field=t,this}value(t){return this._queryOpts.value=t,this}toJSON(){if(!s(this._queryOpts,"value"))throw new Error("Value is required for term level query!");const t=1===Object.keys(this._queryOpts).length?this._queryOpts.value:this._queryOpts;return{[this.queryType]:{[this._field]:t}}}caseInsensitive(t=!0){return this._queryOpts.case_insensitive=t,this}}},function(t,e,r){"use strict";e.ScoreFunction=r(11),e.ScriptScoreFunction=r(72),e.WeightScoreFunction=r(73),e.RandomScoreFunction=r(74),e.FieldValueFactorFunction=r(75),e.DecayScoreFunction=r(76)},function(t,e,r){"use strict";const{RequestBodySearch:s,Highlight:i,Script:n,GeoPoint:o,GeoShape:u,IndexedShape:c,Sort:a,Rescore:h,InnerHits:g,SearchTemplate:l,Query:p,util:{constructorWrapper:_}}=r(1),{MatchAllQuery:f,MatchNoneQuery:d,fullTextQueries:{MatchQuery:y,MatchPhraseQuery:m,MatchPhrasePrefixQuery:w,MultiMatchQuery:x,CommonTermsQuery:O,QueryStringQuery:b,SimpleQueryStringQuery:S},termLevelQueries:{TermQuery:v,TermsQuery:A,TermsSetQuery:q,RangeQuery:D,ExistsQuery:T,PrefixQuery:Q,WildcardQuery:k,RegexpQuery:E,FuzzyQuery:P,TypeQuery:z,IdsQuery:M},compoundQueries:{ConstantScoreQuery:F,BoolQuery:j,DisMaxQuery:$,FunctionScoreQuery:C,BoostingQuery:R,scoreFunctions:{ScriptScoreFunction:N,WeightScoreFunction:G,RandomScoreFunction:B,FieldValueFactorFunction:L,DecayScoreFunction:H}},joiningQueries:{NestedQuery:I,HasChildQuery:J,HasParentQuery:U,ParentIdQuery:W},geoQueries:{GeoShapeQuery:V,GeoBoundingBoxQuery:Z,GeoDistanceQuery:K,GeoPolygonQuery:Y},specializedQueries:{MoreLikeThisQuery:X,ScriptQuery:tt,ScriptScoreQuery:et,PercolateQuery:rt,DistanceFeatureQuery:st},spanQueries:{SpanTermQuery:it,SpanMultiTermQuery:nt,SpanFirstQuery:ot,SpanNearQuery:ut,SpanOrQuery:ct,SpanNotQuery:at,SpanContainingQuery:ht,SpanWithinQuery:gt,SpanFieldMaskingQuery:lt}}=r(38),{metricsAggregations:{AvgAggregation:pt,CardinalityAggregation:_t,ExtendedStatsAggregation:ft,GeoBoundsAggregation:dt,GeoCentroidAggregation:yt,MaxAggregation:mt,MinAggregation:wt,PercentilesAggregation:xt,PercentileRanksAggregation:Ot,ScriptedMetricAggregation:bt,StatsAggregation:St,SumAggregation:vt,TopHitsAggregation:At,ValueCountAggregation:qt},bucketAggregations:{AdjacencyMatrixAggregation:Dt,ChildrenAggregation:Tt,CompositeAggregation:Qt,DateHistogramAggregation:kt,AutoDateHistogramAggregation:Et,VariableWidthHistogramAggregation:Pt,DateRangeAggregation:zt,DiversifiedSamplerAggregation:Mt,FilterAggregation:Ft,FiltersAggregation:jt,GeoDistanceAggregation:$t,GeoHashGridAggregation:Ct,GeoHexGridAggregation:Rt,GeoTileGridAggregation:Nt,GlobalAggregation:Gt,HistogramAggregation:Bt,IpRangeAggregation:Lt,MissingAggregation:Ht,NestedAggregation:It,ParentAggregation:Jt,RangeAggregation:Ut,RareTermsAggregation:Wt,ReverseNestedAggregation:Vt,SamplerAggregation:Zt,SignificantTermsAggregation:Kt,SignificantTextAggregation:Yt,TermsAggregation:Xt},pipelineAggregations:{AvgBucketAggregation:te,DerivativeAggregation:ee,MaxBucketAggregation:re,MinBucketAggregation:se,SumBucketAggregation:ie,StatsBucketAggregation:ne,ExtendedStatsBucketAggregation:oe,PercentilesBucketAggregation:ue,MovingAverageAggregation:ce,MovingFunctionAggregation:ae,CumulativeSumAggregation:he,BucketScriptAggregation:ge,BucketSelectorAggregation:le,SerialDifferencingAggregation:pe,BucketSortAggregation:_e},matrixAggregations:{MatrixStatsAggregation:fe}}=r(110),{TermSuggester:de,DirectGenerator:ye,PhraseSuggester:me,CompletionSuggester:we}=r(176),xe=r(181);e.RequestBodySearch=s,e.requestBodySearch=_(s),e.Query=p,e.query=_(p),e.MatchAllQuery=f,e.matchAllQuery=_(f),e.MatchNoneQuery=d,e.matchNoneQuery=_(d),e.MatchQuery=y,e.matchQuery=_(y),e.MatchPhraseQuery=m,e.matchPhraseQuery=_(m),e.MatchPhrasePrefixQuery=w,e.matchPhrasePrefixQuery=_(w),e.MultiMatchQuery=x,e.multiMatchQuery=_(x),e.CommonTermsQuery=O,e.commonTermsQuery=_(O),e.QueryStringQuery=b,e.queryStringQuery=_(b),e.SimpleQueryStringQuery=S,e.simpleQueryStringQuery=_(S),e.TermQuery=v,e.termQuery=_(v),e.TermsQuery=A,e.termsQuery=_(A),e.TermsSetQuery=q,e.termsSetQuery=_(q),e.RangeQuery=D,e.rangeQuery=_(D),e.ExistsQuery=T,e.existsQuery=_(T),e.PrefixQuery=Q,e.prefixQuery=_(Q),e.WildcardQuery=k,e.wildcardQuery=_(k),e.RegexpQuery=E,e.regexpQuery=_(E),e.FuzzyQuery=P,e.fuzzyQuery=_(P),e.TypeQuery=z,e.typeQuery=_(z),e.IdsQuery=M,e.idsQuery=_(M),e.ConstantScoreQuery=F,e.constantScoreQuery=_(F),e.BoolQuery=j,e.boolQuery=_(j),e.DisMaxQuery=$,e.disMaxQuery=_($),e.FunctionScoreQuery=C,e.functionScoreQuery=_(C),e.BoostingQuery=R,e.boostingQuery=_(R),e.NestedQuery=I,e.nestedQuery=_(I),e.HasChildQuery=J,e.hasChildQuery=_(J),e.HasParentQuery=U,e.hasParentQuery=_(U),e.ParentIdQuery=W,e.parentIdQuery=_(W),e.GeoShapeQuery=V,e.geoShapeQuery=_(V),e.GeoBoundingBoxQuery=Z,e.geoBoundingBoxQuery=_(Z),e.GeoDistanceQuery=K,e.geoDistanceQuery=_(K),e.GeoPolygonQuery=Y,e.geoPolygonQuery=_(Y),e.MoreLikeThisQuery=X,e.moreLikeThisQuery=_(X),e.ScriptQuery=tt,e.scriptQuery=_(tt),e.ScriptScoreQuery=et,e.scriptScoreQuery=_(et),e.PercolateQuery=rt,e.percolateQuery=_(rt),e.DistanceFeatureQuery=st,e.distanceFeatureQuery=_(st),e.SpanTermQuery=it,e.spanTermQuery=_(it),e.SpanMultiTermQuery=nt,e.spanMultiTermQuery=_(nt),e.SpanFirstQuery=ot,e.spanFirstQuery=_(ot),e.SpanNearQuery=ut,e.spanNearQuery=_(ut),e.SpanOrQuery=ct,e.spanOrQuery=_(ct),e.SpanNotQuery=at,e.spanNotQuery=_(at),e.SpanContainingQuery=ht,e.spanContainingQuery=_(ht),e.SpanWithinQuery=gt,e.spanWithinQuery=_(gt),e.SpanFieldMaskingQuery=lt,e.spanFieldMaskingQuery=_(lt),e.AvgAggregation=pt,e.avgAggregation=_(pt),e.CardinalityAggregation=_t,e.cardinalityAggregation=_(_t),e.ExtendedStatsAggregation=ft,e.extendedStatsAggregation=_(ft),e.GeoBoundsAggregation=dt,e.geoBoundsAggregation=_(dt),e.GeoCentroidAggregation=yt,e.geoCentroidAggregation=_(yt),e.MaxAggregation=mt,e.maxAggregation=_(mt),e.MinAggregation=wt,e.minAggregation=_(wt),e.PercentilesAggregation=xt,e.percentilesAggregation=_(xt),e.PercentileRanksAggregation=Ot,e.percentileRanksAggregation=_(Ot),e.ScriptedMetricAggregation=bt,e.scriptedMetricAggregation=_(bt),e.StatsAggregation=St,e.statsAggregation=_(St),e.SumAggregation=vt,e.sumAggregation=_(vt),e.TopHitsAggregation=At,e.topHitsAggregation=_(At),e.ValueCountAggregation=qt,e.valueCountAggregation=_(qt),e.AdjacencyMatrixAggregation=Dt,e.adjacencyMatrixAggregation=_(Dt),e.ChildrenAggregation=Tt,e.childrenAggregation=_(Tt),e.CompositeAggregation=Qt,e.compositeAggregation=_(Qt),e.DateHistogramAggregation=kt,e.dateHistogramAggregation=_(kt),e.AutoDateHistogramAggregation=Et,e.autoDateHistogramAggregation=_(Et),e.VariableWidthHistogramAggregation=Pt,e.variableWidthHistogramAggregation=_(Pt),e.DateRangeAggregation=zt,e.dateRangeAggregation=_(zt),e.DiversifiedSamplerAggregation=Mt,e.diversifiedSamplerAggregation=_(Mt),e.FilterAggregation=Ft,e.filterAggregation=_(Ft),e.FiltersAggregation=jt,e.filtersAggregation=_(jt),e.GeoDistanceAggregation=$t,e.geoDistanceAggregation=_($t),e.GeoHashGridAggregation=Ct,e.geoHashGridAggregation=_(Ct),e.GeoHexGridAggregation=Rt,e.geoHexGridAggregation=_(Rt),e.GeoTileGridAggregation=Nt,e.geoTileGridAggregation=_(Nt),e.GlobalAggregation=Gt,e.globalAggregation=_(Gt),e.HistogramAggregation=Bt,e.histogramAggregation=_(Bt),e.IpRangeAggregation=Lt,e.ipRangeAggregation=_(Lt),e.MissingAggregation=Ht,e.missingAggregation=_(Ht),e.NestedAggregation=It,e.nestedAggregation=_(It),e.ParentAggregation=Jt,e.parentAggregation=_(Jt),e.RangeAggregation=Ut,e.rangeAggregation=_(Ut),e.RareTermsAggregation=Wt,e.rareTermsAggregation=_(Wt),e.ReverseNestedAggregation=Vt,e.reverseNestedAggregation=_(Vt),e.SamplerAggregation=Zt,e.samplerAggregation=_(Zt),e.SignificantTermsAggregation=Kt,e.significantTermsAggregation=_(Kt),e.SignificantTextAggregation=Yt,e.significantTextAggregation=_(Yt),e.TermsAggregation=Xt,e.termsAggregation=_(Xt),e.AvgBucketAggregation=te,e.avgBucketAggregation=_(te),e.DerivativeAggregation=ee,e.derivativeAggregation=_(ee),e.MaxBucketAggregation=re,e.maxBucketAggregation=_(re),e.MinBucketAggregation=se,e.minBucketAggregation=_(se),e.BucketSortAggregation=_e,e.bucketSortAggregation=_(_e),e.SumBucketAggregation=ie,e.sumBucketAggregation=_(ie),e.StatsBucketAggregation=ne,e.statsBucketAggregation=_(ne),e.ExtendedStatsBucketAggregation=oe,e.extendedStatsBucketAggregation=_(oe),e.PercentilesBucketAggregation=ue,e.percentilesBucketAggregation=_(ue),e.MovingAverageAggregation=ce,e.movingAverageAggregation=_(ce),e.MovingFunctionAggregation=ae,e.movingFunctionAggregation=_(ae),e.CumulativeSumAggregation=he,e.cumulativeSumAggregation=_(he),e.BucketScriptAggregation=ge,e.bucketScriptAggregation=_(ge),e.BucketSelectorAggregation=le,e.bucketSelectorAggregation=_(le),e.SerialDifferencingAggregation=pe,e.serialDifferencingAggregation=_(pe),e.MatrixStatsAggregation=fe,e.matrixStatsAggregation=_(fe),e.ScriptScoreFunction=N,e.scriptScoreFunction=_(N),e.WeightScoreFunction=G,e.weightScoreFunction=_(G),e.RandomScoreFunction=B,e.randomScoreFunction=_(B),e.FieldValueFactorFunction=L,e.fieldValueFactorFunction=_(L),e.DecayScoreFunction=H,e.decayScoreFunction=_(H),e.TermSuggester=de,e.termSuggester=_(de),e.DirectGenerator=ye,e.directGenerator=_(ye),e.PhraseSuggester=me,e.phraseSuggester=_(me),e.CompletionSuggester=we,e.completionSuggester=_(we),e.recipes=xe,e.cookMissingQuery=xe.missingQuery,e.cookRandomSortQuery=xe.randomSortQuery,e.cookFilterQuery=xe.filterQuery,e.Highlight=i,e.highlight=_(i),e.Script=n,e.script=_(n),e.GeoPoint=o,e.geoPoint=_(o),e.GeoShape=u,e.geoShape=_(u),e.IndexedShape=c,e.indexedShape=_(c),e.Sort=a,e.sort=_(a),e.Rescore=h,e.rescore=_(h),e.InnerHits=g,e.innerHits=_(g),e.SearchTemplate=l,e.searchTemplate=_(l),e.prettyPrint=function(t){console.log(JSON.stringify(t,null,2))}},function(t,e,r){"use strict";const s=r(5),i=r(0),n=r(7),o=r(12),u=r(33),c=r(34),a=r(35),h=r(23),g=r(24),l=r(37),{checkType:p,setDefault:_,recursiveToJSON:f}=r(6);function d(t){return Object.assign({},...f(t))}t.exports=class{constructor(){this._body={},this._aggs=[],this._suggests=[],this._suggestText=null}query(t){return p(t,o),this._body.query=t,this}agg(t){return this.aggregation(t)}aggregation(t){return p(t,u),this._aggs.push(t),this}aggs(t){return this.aggregations(t)}aggregations(t){return p(t,Array),t.forEach(t=>this.aggregation(t)),this}suggest(t){return p(t,c),this._suggests.push(t),this}suggestText(t){return this._suggestText=t,this}timeout(t){return this._body.timeout=t,this}from(t){return this._body.from=t,this}size(t){return this._body.size=t,this}terminateAfter(t){return this._body.terminate_after=t,this}sort(t){return p(t,h),_(this._body,"sort",[]),this._body.sort.push(t),this}sorts(t){return t.forEach(t=>this.sort(t)),this}trackScores(t){return this._body.track_scores=t,this}trackTotalHits(t){return this._body.track_total_hits=t,this}source(t){return this._body._source=t,this}storedFields(t){return this._body.stored_fields=t,this}scriptField(t,e){return _(this._body,"script_fields",{}),this._body.script_fields[t]={script:e},this}scriptFields(t){return p(t,Object),Object.keys(t).forEach(e=>this.scriptField(e,t[e])),this}docvalueFields(t){return this._body.docvalue_fields=t,this}postFilter(t){return p(t,o),this._body.post_filter=t,this}highlight(t){return p(t,g),this._body.highlight=t,this}rescore(t){return p(t,a),s(this._body,"rescore")?(Array.isArray(this._body.rescore)||(this._body.rescore=[this._body.rescore]),this._body.rescore.push(t)):this._body.rescore=t,this}explain(t){return this._body.explain=t,this}version(t){return this._body.version=t,this}indexBoost(t,e){return this.indicesBoost(t,e)}indicesBoost(t,e){return _(this._body,"indices_boost",[]),this._body.indices_boost.push({[t]:e}),this}minScore(t){return this._body.min_score=t,this}collapse(t,e,r){const s=this._body.collapse={field:t};return i(e)||(p(e,l),s.inner_hits=e,s.max_concurrent_group_searches=r),this}searchAfter(t){return this._body.search_after=t,this}toJSON(){const t=f(this._body);return n(this._aggs)||(t.aggs=d(this._aggs)),n(this._suggests)&&i(this._suggestText)||(t.suggest=d(this._suggests),i(this._suggestText)||(t.suggest.text=this._suggestText)),t}}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){(function(e){var r="Expected a function",s="__lodash_hash_undefined__",i=1/0,n=9007199254740991,o="[object Arguments]",u="[object Function]",c="[object GeneratorFunction]",a="[object Symbol]",h=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/,l=/^\./,p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,y="object"==typeof e&&e&&e.Object===Object&&e,m="object"==typeof self&&self&&self.Object===Object&&self,w=y||m||Function("return this")();var x=Array.prototype,O=Function.prototype,b=Object.prototype,S=w["__core-js_shared__"],v=function(){var t=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),A=O.toString,q=b.hasOwnProperty,D=b.toString,T=RegExp("^"+A.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=w.Symbol,k=b.propertyIsEnumerable,E=x.splice,P=L(w,"Map"),z=L(Object,"create"),M=Q?Q.prototype:void 0,F=M?M.toString:void 0;function j(t){var e=-1,r=t?t.length:0;for(this.clear();++e-1&&t%1==0&&t-1},$.prototype.set=function(t,e){var r=this.__data__,s=R(r,t);return s<0?r.push([t,e]):r[s][1]=e,this},C.prototype.clear=function(){this.__data__={hash:new j,map:new(P||$),string:new j}},C.prototype.delete=function(t){return B(this,t).delete(t)},C.prototype.get=function(t){return B(this,t).get(t)},C.prototype.has=function(t){return B(this,t).has(t)},C.prototype.set=function(t,e){return B(this,t).set(t,e),this};var I=U(function(t){t=function(t){return null==t?"":function(t){if("string"==typeof t)return t;if(tt(t))return F?F.call(t):"";var e=t+"";return"0"==e&&1/t==-i?"-0":e}(t)}(t);var e=[];return l.test(t)&&e.push(""),t.replace(p,function(t,r,s,i){e.push(s?i.replace(_,"$1"):r||t)}),e});function J(t){if("string"==typeof t||tt(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}function U(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(r);var s=function(){var r=arguments,i=e?e.apply(this,r):r[0],n=s.cache;if(n.has(i))return n.get(i);var o=t.apply(this,r);return s.cache=n.set(i,o),o};return s.cache=new(U.Cache||C),s}function W(t,e){return t===e||t!=t&&e!=e}U.Cache=C;var V=Array.isArray;function Z(t){var e=Y(t)?D.call(t):"";return e==u||e==c}function K(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}function Y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function X(t){return!!t&&"object"==typeof t}function tt(t){return"symbol"==typeof t||X(t)&&D.call(t)==a}t.exports=function(t,e){return null!=t&&H(t,e,N)}}).call(this,r(16))},function(t,e,r){"use strict";const s=r(13),i=r(0),{checkType:n}=r(6);t.exports=class{constructor(){this._point=null}_warn(t){console.warn(`[GeoPoint] ${t}`)}_warnMixedRepr(){this._warn("Do not mix with other representation!"),this._warn("Overwriting.")}_checkObjRepr(){i(this._point)?this._point={}:s(this._point)||(this._warnMixedRepr(),this._point={})}lat(t){return this._checkObjRepr(),this._point.lat=t,this}lon(t){return this._checkObjRepr(),this._point.lon=t,this}object(t){return n(t,Object),!i(this._point)&&this._warnMixedRepr(),this._point=t,this}array(t){return n(t,Array),!i(this._point)&&this._warnMixedRepr(),this._point=t,this}string(t){return!i(this._point)&&this._warnMixedRepr(),this._point=t,this}toJSON(){return this._point}}},function(t,e,r){"use strict";const s=r(0),i=r(5),{checkType:n,invalidParam:o}=r(6),{GEO_SHAPE_TYPES:u}=r(17),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-shape.html","type",u);t.exports=class{constructor(t,e){this._body={},s(t)||this.type(t),s(e)||this.coordinates(e)}type(t){s(t)&&c(t);const e=t.toLowerCase();return u.has(e)||c(t),this._body.type=e,this}coordinates(t){return n(t,Array),this._body.coordinates=t,this}radius(t){return this._body.radius=t,this}toJSON(){if(!i(this._body,"type")||!i(this._body,"coordinates"))throw new Error("For all types, both the inner `type` and `coordinates` fields are required.");return this._body}}},function(t,e,r){"use strict";const s=r(0);t.exports=class{constructor(t,e){this._body={},s(t)||(this._body.id=t),s(e)||(this._body.type=e)}id(t){return this._body.id=t,this}type(t){return this._body.type=t,this}index(t){return this._body.index=t,this}path(t){return this._body.path=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),{recursiveToJSON:i}=r(6);t.exports=class{constructor(t,e){if(this._isTypeSet=!1,this._body={},!s(t)&&!s(e)){const r=t.toLowerCase();if("inline"!==r&&"id"!==r&&"indexed"!==r&&"file"!==r)throw new Error("`type` must be one of `inline`, `id`, `indexed`, `file`");this[r](e)}}_warn(t){console.warn(`[SearchTemplate] ${t}`)}_checkMixedRepr(){this._isTypeSet&&(this._warn("Search template source(`inline`/`id`/`file`) was already specified!"),this._warn("Overwriting."),delete this._body.file,delete this._body.id,delete this._body.file)}_setSource(t,e){return this._checkMixedRepr(),this._body[t]=e,this._isTypeSet=!0,this}inline(t){return this._setSource("inline",t)}id(t){return this._setSource("id",t)}indexed(t){return this.id(t)}file(t){return this._setSource("file",t)}params(t){return this._body.params=t,this}toJSON(){return i(this._body)}}},function(t,e,r){"use strict";const{Query:s}=r(1);t.exports=class extends s{constructor(){super("match_all")}}},function(t,e,r){"use strict";const{Query:s}=r(1);t.exports=class extends s{constructor(){super("match_none")}}},function(t,e,r){"use strict";e.FullTextQueryBase=r(18),e.MatchPhraseQueryBase=r(25),e.MonoFieldQueryBase=r(19),e.QueryStringQueryBase=r(26),e.MatchQuery=r(53),e.MatchPhraseQuery=r(54),e.MatchPhrasePrefixQuery=r(55),e.MultiMatchQuery=r(56),e.CommonTermsQuery=r(57),e.QueryStringQuery=r(58),e.SimpleQueryStringQuery=r(59)},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i}}=r(1),n=r(19),{validateRewiteMethod:o}=r(9),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query.html",c=i(u,"operator","'and' or 'or'"),a=i(u,"zero_terms_query","'all' or 'none'");t.exports=class extends n{constructor(t,e){super("match",t,e)}operator(t){s(t)&&c(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&c(t),this._queryOpts.operator=e,this}lenient(t){return this._queryOpts.lenient=t,this}fuzziness(t){return this._queryOpts.fuzziness=t,this}prefixLength(t){return this._queryOpts.prefix_length=t,this}maxExpansions(t){return this._queryOpts.max_expansions=t,this}rewrite(t){return o(t,"rewrite",u),this._queryOpts.rewrite=t,this}fuzzyRewrite(t){return o(t,"fuzzy_rewrite",u),this._queryOpts.fuzzy_rewrite=t,this}fuzzyTranspositions(t){return this._queryOpts.fuzzy_transpositions=t,this}zeroTermsQuery(t){s(t)&&a(t);const e=t.toLowerCase();return"all"!==e&&"none"!==e&&a(t),this._queryOpts.zero_terms_query=e,this}cutoffFrequency(t){return this._queryOpts.cutoff_frequency=t,this}}},function(t,e,r){"use strict";const s=r(25),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query-phrase.html";t.exports=class extends s{constructor(t,e){super("match_phrase",i,t,e)}}},function(t,e,r){"use strict";const s=r(25),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query-phrase-prefix.html";t.exports=class extends s{constructor(t,e){super("match_phrase_prefix",i,t,e)}maxExpansions(t){return this._queryOpts.max_expansions=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i,invalidParam:n},consts:{MULTI_MATCH_TYPE:o}}=r(1),u=r(18),{validateRewiteMethod:c}=r(9),a="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html",h=n(a,"type",o),g=n(a,"operator","'and' or 'or'"),l=n(a,"behavior","'all' or 'none'");t.exports=class extends u{constructor(t,e){super("multi_match",e),this._queryOpts.fields=[],s(t)||(Array.isArray(t)?this.fields(t):this.field(t))}field(t){return this._queryOpts.fields.push(t),this}fields(t){return i(t,Array),this._queryOpts.fields=this._queryOpts.fields.concat(t),this}type(t){s(t)&&h(t);const e=t.toLowerCase();return o.has(e)||h(t),this._queryOpts.type=e,this}tieBreaker(t){return this._queryOpts.tie_breaker=t,this}operator(t){s(t)&&g(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&g(t),this._queryOpts.operator=e,this}lenient(t){return this._queryOpts.lenient=t,this}slop(t){return this._queryOpts.slop=t,this}fuzziness(t){return this._queryOpts.fuzziness=t,this}prefixLength(t){return this._queryOpts.prefix_length=t,this}maxExpansions(t){return this._queryOpts.max_expansions=t,this}rewrite(t){return c(t,"rewrite",a),this._queryOpts.rewrite=t,this}fuzzyRewrite(t){return c(t,"fuzzy_rewrite",a),this._queryOpts.fuzzy_rewrite=t,this}zeroTermsQuery(t){s(t)&&l(t);const e=t.toLowerCase();return"all"!==e&&"none"!==e&&l(t),this._queryOpts.zero_terms_query=t,this}cutoffFrequency(t){return this._queryOpts.cutoff_frequency=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(13),{util:{invalidParam:n,setDefault:o}}=r(1),u=r(19),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-common-terms-query.html",a=n(c,"low_freq_operator","'and' or 'or'"),h=n(c,"high_freq_operator","'and' or 'or'");t.exports=class extends u{constructor(t,e){super("common",t,e)}_warn(t){console.warn(`[CommonTermsQuery] ${t}`)}_warnMixedRepr(){this._warn("Do not mix with other representation!"),this._warn("Overwriting.")}_checkMinMatchRepr(){o(this._queryOpts,"minimum_should_match",{})||i(this._queryOpts.minimum_should_match)||(this._warnMixedRepr(),this._queryOpts.minimum_should_match={})}cutoffFrequency(t){return this._queryOpts.cutoff_frequency=t,this}lowFreqOperator(t){s(t)&&a(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&a(t),this._queryOpts.low_freq_operator=e,this}highFreqOperator(t){s(t)&&h(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&h(t),this._queryOpts.high_freq_operator=e,this}lowFreq(t){return this._checkMinMatchRepr(),this._queryOpts.minimum_should_match.low_freq=t,this}highFreq(t){return this._checkMinMatchRepr(),this._queryOpts.minimum_should_match.high_freq=t,this}disableCoord(t){return this._queryOpts.disable_coord=t,this}}},function(t,e,r){"use strict";const s=r(26),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html";t.exports=class extends s{constructor(t){super("query_string",n,t)}defaultField(t){return this._queryOpts.default_field=t,this}allowLeadingWildcard(t){return this._queryOpts.allow_leading_wildcard=t,this}enablePositionIncrements(t){return this._queryOpts.enable_position_increments=t,this}fuzzyMaxExpansions(t){return this._queryOpts.fuzzy_max_expansions=t,this}fuzziness(t){return this._queryOpts.fuzziness=t,this}fuzzyPrefixLength(t){return this._queryOpts.fuzzy_prefix_length=t,this}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}fuzzyRewrite(t){return i(t,"fuzzy_rewrite",n),this._queryOpts.fuzzy_rewrite=t,this}phraseSlop(t){return this._queryOpts.phrase_slop=t,this}autoGeneratePhraseQueries(t){return this._queryOpts.auto_generate_phrase_queries=t,this}maxDeterminizedStates(t){return this._queryOpts.max_determinized_states=t,this}timeZone(t){return this._queryOpts.time_zone=t,this}splitOnWhitespace(t){return this._queryOpts.split_on_whitespace=t,this}useDisMax(t){return this._queryOpts.use_dis_max=t,this}tieBreaker(t){return this._queryOpts.tie_breaker=t,this}quoteAnalyzer(t){return this._queryOpts.quote_analyzer=t,this}escape(t){return this._queryOpts.escape=t,this}}},function(t,e,r){"use strict";const s=r(26),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html";t.exports=class extends s{constructor(t){super("simple_query_string",i,t)}flags(t){return this._queryOpts.flags=t,this}}},function(t,e,r){"use strict";const s=r(40);t.exports=class extends s{constructor(t,e){super("term",t,e)}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),{Query:n}=r(1);t.exports=class extends n{constructor(t,e){super("terms"),this._isTermsLookup=!1,this._termsLookupOpts={},this._values=[],s(t)||(this._field=t),s(e)||(Array.isArray(e)?this.values(e):this.value(e))}_setTermsLookupOpt(t,e){this._isTermsLookup=!0,this._termsLookupOpts[t]=e}field(t){return this._field=t,this}value(t){return this._values.push(t),this}values(t){return i(t,Array),this._values=this._values.concat(t),this}termsLookup(t){return i(t,Object),this._isTermsLookup=!0,Object.assign(this._termsLookupOpts,t),this}index(t){return this._setTermsLookupOpt("index",t),this}type(t){return this._setTermsLookupOpt("type",t),this}id(t){return this._setTermsLookupOpt("id",t),this}path(t){return this._setTermsLookupOpt("path",t),this}routing(t){return this._setTermsLookupOpt("routing",t),this}toJSON(){return{[this.queryType]:Object.assign({},this._queryOpts,{[this._field]:this._isTermsLookup?this._termsLookupOpts:this._values})}}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e){super("terms_set"),this._queryOpts.terms=[],s(t)||(this._field=t),s(e)||(Array.isArray(e)?this.terms(e):this.term(e))}field(t){return this._field=t,this}term(t){return this._queryOpts.terms.push(t),this}terms(t){return n(t,Array),this._queryOpts.terms=this._queryOpts.terms.concat(t),this}minimumShouldMatchField(t){return this._queryOpts.minimum_should_match_field=t,this}minimumShouldMatchScript(t){return this._queryOpts.minimum_should_match_script=t,this}toJSON(){return{[this.queryType]:{[this._field]:this._queryOpts}}}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{GEO_RELATION_SET:n}}=r(1),o=r(10),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html",c=i(u,"relation",n);t.exports=class extends o{constructor(t){super("range",t)}value(){throw console.log(`Please refer ${u}`),new Error("value is not supported in RangeQuery")}gte(t){return this._queryOpts.gte=t,this}lte(t){return this._queryOpts.lte=t,this}gt(t){return this._queryOpts.gt=t,this}lt(t){return this._queryOpts.lt=t,this}from(t){return this._queryOpts.from=t,this}to(t){return this._queryOpts.to=t,this}includeLower(t){return this._queryOpts.include_lower=t,this}includeUpper(t){return this._queryOpts.include_upper=t,this}timeZone(t){return this._queryOpts.time_zone=t,this}format(t){return this._queryOpts.format=t,this}relation(t){s(t)&&c(t);const e=t.toUpperCase();return n.has(e)||c(t),this._queryOpts.relation=e,this}toJSON(){return{[this.queryType]:{[this._field]:this._queryOpts}}}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t){super("exists"),s(t)||(this._queryOpts.field=t)}field(t){return this._queryOpts.field=t,this}}},function(t,e,r){"use strict";const s=r(10),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-prefix-query.html";t.exports=class extends s{constructor(t,e){super("prefix",t,e)}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}}},function(t,e,r){"use strict";const s=r(10),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html";t.exports=class extends s{constructor(t,e){super("wildcard",t,e)}caseInsensitive(t){return this._queryOpts.case_insensitive=t,this}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}}},function(t,e,r){"use strict";const s=r(10),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-regexp-query.html";t.exports=class extends s{constructor(t,e){super("regexp",t,e)}flags(t){return this._queryOpts.flags=t,this}caseInsensitive(t){return this._queryOpts.case_insensitive=t,this}maxDeterminizedStates(t){return this._queryOpts.max_determinized_states=t,this}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}}},function(t,e,r){"use strict";const s=r(10);t.exports=class extends s{constructor(t,e){super("fuzzy",t,e)}fuzziness(t){return this._queryOpts.fuzziness=t,this}prefixLength(t){return this._queryOpts.prefix_length=t,this}maxExpansions(t){return this._queryOpts.max_expansions=t,this}transpositions(t){return this._queryOpts.transpositions=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t){super("type"),s(t)||(this._queryOpts.value=t)}value(t){return this._queryOpts.value=t,this}type(t){return this.value(t)}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e){super("ids"),s(t)||(this._queryOpts.type=t),s(e)||this.values(e)}type(t){return this._queryOpts.type=t,this}values(t){return n(t,Array),this._queryOpts.values=t,this}ids(t){return this.values(t)}}},function(t,e,r){"use strict";e.scoreFunctions=r(41),e.ConstantScoreQuery=r(77),e.BoolQuery=r(78),e.DisMaxQuery=r(81),e.FunctionScoreQuery=r(82),e.BoostingQuery=r(83)},function(t,e,r){"use strict";const s=r(0),i=r(11);t.exports=class extends i{constructor(t){super("script_score"),s(t)||(this._opts.script=t)}script(t){return this._opts.script=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(11),{util:{recursiveToJSON:n}}=r(1);t.exports=class extends i{constructor(t){super(null),s(t)||(this._body.weight=t)}toJSON(){return n(this._body)}}},function(t,e,r){"use strict";const s=r(11);t.exports=class extends s{constructor(){super("random_score")}seed(t){return this._opts.seed=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{FIELD_MODIFIER_SET:n}}=r(1),o=r(11),u=i("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-field-value-factor","modifier",n);t.exports=class extends o{constructor(t){super("field_value_factor"),s(t)||(this._opts.field=t)}field(t){return this._opts.field=t,this}factor(t){return this._opts.factor=t,this}modifier(t){s(t)&&u(t);const e=t.toLowerCase();return n.has(e)||u(t),this._opts.modifier=e,this}missing(t){return this._opts.missing=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i,recursiveToJSON:n}}=r(1),o=r(11),u=i("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-decay","mode","'linear', 'exp' or 'gauss'");t.exports=class extends o{constructor(t="gauss",e){super(t),s(e)||(this._field=e)}mode(t){s(t)&&u(t);const e=t.toLowerCase();return"linear"!==e&&"exp"!==e&&"gauss"!==e&&u(t),this._name=t,this}linear(){return this._name="linear",this}exp(){return this._name="exp",this}gauss(){return this._name="gauss",this}field(t){return this._field=t,this}origin(t){return this._opts.origin=t,this}scale(t){return this._opts.scale=t,this}offset(t){return this._opts.offset=t,this}decay(t){return this._opts.decay=t,this}toJSON(){const t=Object.assign({[this._name]:{[this._field]:this._opts}},this._body);return n(t)}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t){super("constant_score"),s(t)||this.filter(t)}filter(t){return n(t,i),this._queryOpts.filter=t,this}query(t){return this.filter(t)}}},function(t,e,r){"use strict";const s=r(5),i=r(79),n=r(80),{Query:o,util:{checkType:u,setDefault:c,recursiveToJSON:a}}=r(1);t.exports=class extends o{constructor(){super("bool")}_addQuery(t,e){u(e,o),this._queryOpts[t].push(e)}_addQueries(t,e){c(this._queryOpts,t,[]),Array.isArray(e)?e.forEach(e=>this._addQuery(t,e)):this._addQuery(t,e)}must(t){return this._addQueries("must",t),this}filter(t){return this._addQueries("filter",t),this}mustNot(t){return this._addQueries("must_not",t),this}should(t){return this._addQueries("should",t),this}disableCoord(t){return this._queryOpts.disable_coord=t,this}minimumShouldMatch(t){return this._queryOpts.minimum_should_match=t,this}adjustPureNegative(t){return this._queryOpts.adjust_pure_negative=t,this}toJSON(){const t=["must","filter","must_not","should"],e=t.filter(t=>s(this._queryOpts,t)).reduce((t,e)=>{const r=this._queryOpts[e];return t[e]=a(1===r.length?i(r):r),t},n(this._queryOpts,t));return{[this.queryType]:e}}}},function(t,e){t.exports=function(t){return t&&t.length?t[0]:void 0}},function(t,e,r){(function(e){var r=200,s="__lodash_hash_undefined__",i=1/0,n=9007199254740991,o="[object Arguments]",u="[object Function]",c="[object GeneratorFunction]",a="[object Symbol]",h=/^\[object .+?Constructor\]$/,g=/^(?:0|[1-9]\d*)$/,l="object"==typeof e&&e&&e.Object===Object&&e,p="object"==typeof self&&self&&self.Object===Object&&self,_=l||p||Function("return this")();function f(t,e){return!!(t?t.length:0)&&function(t,e,r){if(e!=e)return function(t,e,r,s){var i=t.length,n=r+(s?1:-1);for(;s?n--:++n-1}function d(t,e,r){for(var s=-1,i=t?t.length:0;++s-1},G.prototype.set=function(t,e){var r=this.__data__,s=I(r,t);return s<0?r.push([t,e]):r[s][1]=e,this},B.prototype.clear=function(){this.__data__={hash:new N,map:new(C||G),string:new N}},B.prototype.delete=function(t){return V(this,t).delete(t)},B.prototype.get=function(t){return V(this,t).get(t)},B.prototype.has=function(t){return V(this,t).has(t)},B.prototype.set=function(t,e){return V(this,t).set(t,e),this},L.prototype.add=L.prototype.push=function(t){return this.__data__.set(t,s),this},L.prototype.has=function(t){return this.__data__.has(t)};var K=j?O(j,Object):gt,Y=j?function(t){for(var e=[];t;)m(e,K(t)),t=P(t);return e}:gt;function X(t){return it(t)||st(t)||!!(F&&t&&t[F])}function tt(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||g.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=n}(t.length)&&!ot(t)}function ot(t){var e=ut(t)?Q.call(t):"";return e==u||e==c}function ut(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ct(t){return!!t&&"object"==typeof t}function at(t){return nt(t)?H(t,!0):U(t)}var ht=function(t,e){return e=$(void 0===e?t.length-1:e,0),function(){for(var r=arguments,s=-1,i=$(r.length-e,0),n=Array(i);++s0&&s(c)?r>1?t(c,r-1,s,i,n):m(n,c):i||(n[n.length]=c)}return n}(e,1),et),function(t,e){return function(t,e,r){for(var s=-1,i=e.length,n={};++s=r&&(o=x,u=!1,e=new L(e));t:for(;++nthis._addQuery(t)):this._addQuery(t),this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n,invalidParam:o},consts:{SCORE_MODE_SET:u,BOOST_MODE_SET:c}}=r(1),{ScoreFunction:a}=r(41),h="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html",g=o(h,"score_mode",u),l=o(h,"boost_mode",c);t.exports=class extends i{constructor(){super("function_score"),this._queryOpts.functions=[]}query(t){return n(t,i),this._queryOpts.query=t,this}scoreMode(t){s(t)&&g(t);const e=t.toLowerCase();return u.has(e)||g(t),this._queryOpts.score_mode=t,this}boostMode(t){s(t)&&l(t);const e=t.toLowerCase();return c.has(e)||l(t),this._queryOpts.boost_mode=e,this}maxBoost(t){return this._queryOpts.max_boost=t,this}minScore(t){return this._queryOpts.min_score=t,this}function(t){return n(t,a),this._queryOpts.functions.push(t),this}functions(t){return n(t,Array),t.forEach(t=>this.function(t)),this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e,r){super("boosting"),s(t)||this.positive(t),s(e)||this.negative(e),s(r)||(this._queryOpts.negative_boost=r)}positive(t){return n(t,i),this._queryOpts.positive=t,this}negative(t){return n(t,i),this._queryOpts.negative=t,this}negativeBoost(t){return this._queryOpts.negative_boost=t,this}}},function(t,e,r){"use strict";e.JoiningQueryBase=r(20),e.NestedQuery=r(85),e.HasChildQuery=r(86),e.HasParentQuery=r(87),e.ParentIdQuery=r(88)},function(t,e,r){"use strict";const s=r(0),i=r(20),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-nested-query.html";t.exports=class extends i{constructor(t,e){super("nested",n,t),s(e)||(this._queryOpts.path=e)}path(t){return this._queryOpts.path=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(20),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-has-child-query.html";t.exports=class extends i{constructor(t,e){super("has_child",n,t),s(e)||(this._queryOpts.type=e)}type(t){return this._queryOpts.type=t,this}childType(t){return console.warn("[HasChildQuery] Field `child_type` is deprecated. Use `type` instead."),this.type(t)}minChildren(t){return this._queryOpts.min_children=t,this}maxChildren(t){return this._queryOpts.max_children=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(20),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-has-parent-query.html";t.exports=class extends i{constructor(t,e){super("has_parent",n,t),s(e)||(this._queryOpts.parent_type=e)}scoreMode(){throw console.log("`score_mode` is deprecated. Use `score` instead"),console.log(`Please refer ${n}`),new Error("scoreMode is not supported in HasParentQuery")}type(t){return this.parentType(t)}parentType(t){return this._queryOpts.parent_type=t,this}score(t){return this._queryOpts.score=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t,e){super("parent_id"),s(t)||(this._queryOpts.type=t),s(e)||(this._queryOpts.id=e)}type(t){return this._queryOpts.type=t,this}id(t){return this._queryOpts.id=t,this}ignoreUnmapped(t){return this._queryOpts.ignore_unmapped=t,this}}},function(t,e,r){"use strict";e.GeoQueryBase=r(14),e.GeoShapeQuery=r(90),e.GeoBoundingBoxQuery=r(91),e.GeoDistanceQuery=r(92),e.GeoPolygonQuery=r(93)},function(t,e,r){"use strict";const s=r(0),{GeoShape:i,IndexedShape:n,util:{checkType:o,invalidParam:u},consts:{GEO_RELATION_SET:c}}=r(1),a=r(14),h="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-shape-query.html",g=u(h,"relation",c);t.exports=class extends a{constructor(t){super("geo_shape",t)}validationMethod(){throw console.log(`Please refer ${h}`),new Error("validationMethod is not supported in GeoShapeQuery")}shape(t){return o(t,i),this._fieldOpts.shape=t,this}indexedShape(t){return o(t,n),this._fieldOpts.indexed_shape=t,this}relation(t){s(t)&&g(t);const e=t.toUpperCase();return c.has(e)||g(t),this._fieldOpts.relation=e,this}ignoreUnmapped(t){return this._queryOpts.ignore_unmapped=t,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,invalidParam:o}}=r(1),u=r(14),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-bounding-box-query.html","type","'memory' or 'indexed'");t.exports=class extends u{constructor(t){super("geo_bounding_box",t)}topLeft(t){return n(t,i),this._fieldOpts.top_left=t,this}bottomRight(t){return n(t,i),this._fieldOpts.bottom_right=t,this}topRight(t){return n(t,i),this._fieldOpts.top_right=t,this}bottomLeft(t){return n(t,i),this._fieldOpts.bottom_left=t,this}top(t){return this._fieldOpts.top=t,this}left(t){return this._fieldOpts.left=t,this}bottom(t){return this._fieldOpts.bottom=t,this}right(t){return this._fieldOpts.right=t,this}type(t){s(t)&&c(t);const e=t.toLowerCase();return"memory"!==e&&"indexed"!==e&&c(t),this._queryOpts.type=e,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,invalidParam:o}}=r(1),u=r(14),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-distance-query.html","distance_type","'plane' or 'arc'");t.exports=class extends u{constructor(t,e){super("geo_distance",t),s(e)||this.geoPoint(e)}distance(t){return this._queryOpts.distance=t,this}distanceType(t){s(t)&&c(t);const e=t.toLowerCase();return"plane"!==e&&"arc"!==e&&c(t),this._queryOpts.distance_type=e,this}geoPoint(t){return n(t,i),this._fieldOpts=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(14);t.exports=class extends i{constructor(t){super("geo_polygon",t)}points(t){return s(t,Array),this._fieldOpts.points=t,this}}},function(t,e,r){"use strict";e.MoreLikeThisQuery=r(95),e.ScriptQuery=r(96),e.ScriptScoreQuery=r(97),e.PercolateQuery=r(98),e.DistanceFeatureQuery=r(99)},function(t,e,r){"use strict";const s=r(5),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(){super("more_like_this")}_setSearchClause(t,e){Array.isArray(e)?this._queryOpts[t]=e:s(this._queryOpts,t)?(Array.isArray(this._queryOpts[t])||(this._queryOpts[t]=[this._queryOpts[t]]),this._queryOpts[t].push(e)):this._queryOpts[t]=e}fields(t){return n(t,Array),this._queryOpts.fields=t,this}like(t){return this._setSearchClause("like",t),this}unlike(t){return this._setSearchClause("unlike",t),this}likeText(t){return this._queryOpts.like_text=t,this}ids(t){return n(t,Array),this._queryOpts.ids=t,this}docs(t){return n(t,Array),this._queryOpts.docs=t,this}maxQueryTerms(t){return this._queryOpts.max_query_terms=t,this}minTermFreq(t){return this._queryOpts.min_term_freq=t,this}minDocFreq(t){return this._queryOpts.min_doc_freq=t,this}maxDocFreq(t){return this._queryOpts.max_doc_freq=t,this}minWordLength(t){return this._queryOpts.min_word_length=t,this}maxWordLength(t){return this._queryOpts.max_word_length=t,this}stopWords(t){return this._queryOpts.stop_words=t,this}analyzer(t){return this._queryOpts.analyzer=t,this}minimumShouldMatch(t){return this._queryOpts.minimum_should_match=t,this}boostTerms(t){return this._queryOpts.boost_terms=t,this}include(t){return this._queryOpts.include=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,Script:n,util:{checkType:o}}=r(1);t.exports=class extends i{constructor(t){super("script"),s(t)||this.script(t)}script(t){return o(t,n),this._queryOpts.script=t,this}}},function(t,e,r){"use strict";const{Query:s,Script:i,util:{checkType:n}}=r(1);t.exports=class extends s{constructor(){super("script_score")}query(t){return n(t,s),this._queryOpts.query=t,this}script(t){return n(t,i),this._queryOpts.script=t,this}minScore(t){return this._queryOpts.min_score=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i},Query:n}=r(1);t.exports=class extends n{constructor(t,e){super("percolate"),this._queryOpts.documents=[],s(t)||(this._queryOpts.field=t),s(e)||(this._queryOpts.document_type=e)}field(t){return this._queryOpts.field=t,this}documentType(t){return this._queryOpts.document_type=t,this}document(t){return this._queryOpts.documents.push(t),this}documents(t){return i(t,Array),this._queryOpts.documents=this._queryOpts.documents.concat(t),this}index(t){return this._queryOpts.index=t,this}type(t){return this._queryOpts.type=t,this}id(t){return this._queryOpts.id=t,this}routing(t){return this._queryOpts.routing=t,this}preference(t){return this._queryOpts.preference=t,this}version(t){return this._queryOpts.version=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t){super("distance_feature"),s(t)||(this._queryOpts.field=t)}field(t){return this._queryOpts.field=t,this}origin(t){return this._queryOpts.origin=t,this}pivot(t){return this._queryOpts.pivot=t,this}}},function(t,e,r){"use strict";e.SpanLittleBigQueryBase=r(27),e.SpanTermQuery=r(101),e.SpanMultiTermQuery=r(102),e.SpanFirstQuery=r(103),e.SpanNearQuery=r(104),e.SpanOrQuery=r(105),e.SpanNotQuery=r(106),e.SpanContainingQuery=r(107),e.SpanWithinQuery=r(108),e.SpanFieldMaskingQuery=r(109)},function(t,e,r){"use strict";const s=r(5),i=r(0),n=r(8);t.exports=class extends n{constructor(t,e){super("span_term"),i(t)||(this._field=t),i(e)||(this._queryOpts.value=e)}field(t){return this._field=t,this}value(t){return this._queryOpts.value=t,this}toJSON(){if(!s(this._queryOpts,"value"))throw new Error("Value is required for Span term query!");const t=1===Object.keys(this._queryOpts).length?this._queryOpts.value:this._queryOpts;return{[this.queryType]:{[this._field]:t}}}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),{MultiTermQueryBase:n}=r(39),o=r(8);t.exports=class extends o{constructor(t){super("span_multi"),s(t)||this.match(t)}match(t){return i(t,n),this._queryOpts.match=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),n=r(8);t.exports=class extends n{constructor(t){super("span_first"),s(t)||this.match(t)}match(t){return i(t,n),this._queryOpts.match=t,this}end(t){return this._queryOpts.end=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{constructor(){super("span_near")}clauses(t){return s(t,Array),t.forEach(t=>s(t,i)),this._queryOpts.clauses=t,this}slop(t){return this._queryOpts.slop=t,this}inOrder(t){return this._queryOpts.in_order=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{constructor(){super("span_or")}clauses(t){return s(t,Array),t.forEach(t=>s(t,i)),this._queryOpts.clauses=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{constructor(){super("span_not")}include(t){return s(t,i),this._queryOpts.include=t,this}exclude(t){return s(t,i),this._queryOpts.exclude=t,this}pre(t){return this._queryOpts.pre=t,this}post(t){return this._queryOpts.post=t,this}dist(t){return this._queryOpts.dist=t,this}}},function(t,e,r){"use strict";const s=r(27);t.exports=class extends s{constructor(){super("span_containing")}}},function(t,e,r){"use strict";const s=r(27);t.exports=class extends s{constructor(){super("span_within")}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),n=r(8);t.exports=class extends n{constructor(t,e){super("field_masking_span"),s(t)||(this._queryOpts.field=t),s(e)||this.query(e)}query(t){return i(t,n),this._queryOpts.query=t,this}field(t){return this._queryOpts.field=t,this}}},function(t,e,r){"use strict";e.metricsAggregations=r(111),e.bucketAggregations=r(126),e.pipelineAggregations=r(158),e.matrixAggregations=r(174)},function(t,e,r){"use strict";e.MetricsAggregationBase=r(4),e.AvgAggregation=r(112),e.CardinalityAggregation=r(113),e.ExtendedStatsAggregation=r(114),e.GeoBoundsAggregation=r(115),e.GeoCentroidAggregation=r(116),e.MaxAggregation=r(117),e.MinAggregation=r(118),e.PercentilesAggregation=r(119),e.PercentileRanksAggregation=r(120),e.ScriptedMetricAggregation=r(121),e.StatsAggregation=r(122),e.SumAggregation=r(123),e.TopHitsAggregation=r(124),e.ValueCountAggregation=r(125)},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"avg",e)}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-cardinality-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"cardinality",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in CardinalityAggregation")}precisionThreshold(t){return this._aggsDef.precision_threshold=t,this}}},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"extended_stats",e)}sigma(t){return this._aggsDef.sigma=t,this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-geobounds-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"geo_bounds",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in GeoBoundsAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in GeoBoundsAggregation")}wrapLongitude(t){return this._aggsDef.wrap_longitude=t,this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-geocentroid-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"geo_centroid",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in GeoCentroidAggregation")}}},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"max",e)}}},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"min",e)}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(4);t.exports=class extends i{constructor(t,e){super(t,"percentiles",e)}keyed(t){return this._aggsDef.keyed=t,this}percents(t){return s(t,Array),this._aggsDef.percents=t,this}tdigest(t){return this._aggsDef.tdigest={compression:t},this}compression(t){return this._aggsDef.tdigest={compression:t},this}hdr(t){return this._aggsDef.hdr={number_of_significant_value_digits:t},this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),n=r(4),o="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-percentile-rank-aggregation.html";t.exports=class extends n{constructor(t,e,r){super(t,"percentile_ranks",e),s(r)||this.values(r)}format(){throw console.log(`Please refer ${o}`),new Error("format is not supported in PercentileRanksAggregation")}keyed(t){return this._aggsDef.keyed=t,this}values(t){return i(t,Array),this._aggsDef.values=t,this}tdigest(t){return this._aggsDef.tdigest={compression:t},this}compression(t){return this.tdigest(t)}hdr(t){return this._aggsDef.hdr={number_of_significant_value_digits:t},this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-scripted-metric-aggregation.html";t.exports=class extends s{constructor(t){super(t,"scripted_metric")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in ScriptedMetricAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in ScriptedMetricAggregation")}missing(){throw console.log(`Please refer ${i}`),new Error("missing is not supported in ScriptedMetricAggregation")}initScript(t){return this._aggsDef.init_script=t,this}mapScript(t){return this._aggsDef.map_script=t,this}combineScript(t){return this._aggsDef.combine_script=t,this}reduceScript(t){return this._aggsDef.reduce_script=t,this}params(t){return this._aggsDef.params=t,this}}},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"stats",e)}}},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"sum",e)}}},function(t,e,r){"use strict";const s=r(4),{Highlight:i,Sort:n,util:{checkType:o,setDefault:u}}=r(1),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-top-hits-aggregation.html";t.exports=class extends s{constructor(t){super(t,"top_hits")}field(){throw console.log(`Please refer ${c}`),new Error("field is not supported in TopHitsAggregation")}script(){throw console.log(`Please refer ${c}`),new Error("script is not supported in TopHitsAggregation")}missing(){throw console.log(`Please refer ${c}`),new Error("missing is not supported in TopHitsAggregation")}format(){throw console.log(`Please refer ${c}`),new Error("format is not supported in TopHitsAggregation")}from(t){return this._aggsDef.from=t,this}size(t){return this._aggsDef.size=t,this}sort(t){return o(t,n),u(this._aggsDef,"sort",[]),this._aggsDef.sort.push(t),this}sorts(t){return t.forEach(t=>this.sort(t)),this}trackScores(t){return this._aggsDef.track_scores=t,this}version(t){return this._aggsDef.version=t,this}explain(t){return this._aggsDef.explain=t,this}highlight(t){return o(t,i),this._aggsDef.highlight=t,this}source(t){return this._aggsDef._source=t,this}storedFields(t){return this._aggsDef.stored_fields=t,this}scriptField(t,e){return u(this._aggsDef,"script_fields",{}),this._aggsDef.script_fields[t]={script:e},this}scriptFields(t){return o(t,Object),Object.keys(t).forEach(e=>this.scriptField(e,t[e])),this}docvalueFields(t){return this._aggsDef.docvalue_fields=t,this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-valuecount-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"value_count",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in ValueCountAggregation")}}},function(t,e,r){"use strict";e.BucketAggregationBase=r(2),e.HistogramAggregationBase=r(28),e.RangeAggregationBase=r(15),e.TermsAggregationBase=r(29),e.SignificantAggregationBase=r(30),e.AdjacencyMatrixAggregation=r(127),e.ChildrenAggregation=r(128),e.CompositeAggregation=r(129),e.DateHistogramAggregation=r(134),e.AutoDateHistogramAggregation=r(135),e.VariableWidthHistogramAggregation=r(136),e.DateRangeAggregation=r(137),e.DiversifiedSamplerAggregation=r(138),e.FilterAggregation=r(139),e.FiltersAggregation=r(140),e.GeoDistanceAggregation=r(141),e.GeoHashGridAggregation=r(142),e.GeoHexGridAggregation=r(143),e.GeoTileGridAggregation=r(144),e.GlobalAggregation=r(145),e.HistogramAggregation=r(146),e.IpRangeAggregation=r(147),e.MissingAggregation=r(148),e.NestedAggregation=r(149),e.ParentAggregation=r(150),e.RangeAggregation=r(151),e.RareTermsAggregation=r(152),e.ReverseNestedAggregation=r(153),e.SamplerAggregation=r(154),e.SignificantTermsAggregation=r(155),e.SignificantTextAggregation=r(156),e.TermsAggregation=r(157)},function(t,e,r){"use strict";const{Query:s,util:{checkType:i,setDefault:n}}=r(1),o=r(2),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-adjacency-matrix-aggregation.html";t.exports=class extends o{constructor(t){super(t,"adjacency_matrix")}field(){throw console.log(`Please refer ${u}`),new Error("field is not supported in AdjacencyMatrixAggregation")}script(){throw console.log(`Please refer ${u}`),new Error("script is not supported in AdjacencyMatrixAggregation")}filter(t,e){return i(e,s),n(this._aggsDef,"filters",{}),this._aggsDef.filters[t]=e,this}filters(t){return i(t,Object),n(this._aggsDef,"filters",{}),Object.assign(this._aggsDef.filters,t),this}separator(t){return this._aggsDef.separator=t,this}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-children-aggregation.html";t.exports=class extends s{constructor(t){super(t,"children")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in ChildrenAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in ChildrenAggregation")}type(t){return this._aggsDef.type=t,this}}},function(t,e,r){"use strict";const{Aggregation:s,util:{checkType:i,constructorWrapper:n}}=r(1),{ValuesSourceBase:o,TermsValuesSource:u,HistogramValuesSource:c,DateHistogramValuesSource:a}=r(130);class h extends s{constructor(t){super(t,"composite"),this._aggsDef.sources=[]}sources(...t){return t.forEach(t=>i(t,o)),this._aggsDef.sources=this._aggsDef.sources.concat(t),this}size(t){return this._aggsDef.size=t,this}after(t){return this._aggsDef.after=t,this}}h.TermsValuesSource=u,h.termsValuesSource=n(u),h.HistogramValuesSource=c,h.histogramValuesSource=n(c),h.DateHistogramValuesSource=a,h.dateHistogramValuesSource=n(a),t.exports=h},function(t,e,r){"use strict";e.ValuesSourceBase=r(21),e.TermsValuesSource=r(131),e.HistogramValuesSource=r(132),e.DateHistogramValuesSource=r(133)},function(t,e,r){"use strict";const s=r(21),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html#_terms";t.exports=class extends s{constructor(t,e){super("terms",i,t,e)}}},function(t,e,r){"use strict";const s=r(0),i=r(21),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html#_histogram";t.exports=class extends i{constructor(t,e,r){super("histogram",n,t,e),s(r)||(this._opts.interval=r)}interval(t){return this._opts.interval=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(21),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html#_date_histogram";t.exports=class extends i{constructor(t,e,r){super("date_histogram",n,t,e),s(r)||(this._opts.interval=r)}interval(t){return this._opts.interval=t,this}calendarInterval(t){return this._opts.calendar_interval=t,this}fixedInterval(t){return this._opts.fixed_interval=t,this}timeZone(t){return this._opts.time_zone=t,this}format(t){return this._opts.format=t,this}}},function(t,e,r){"use strict";const s=r(28);t.exports=class extends s{constructor(t,e,r){super(t,"date_histogram",e,r)}timeZone(t){return this._aggsDef.time_zone=t,this}calendarInterval(t){return this._aggsDef.calendar_interval=t,this}fixedInterval(t){return this._aggsDef.fixed_interval=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2);t.exports=class extends i{constructor(t,e,r){super(t,"auto_date_histogram",e),s(r)||(this._aggsDef.buckets=r)}buckets(t){return this._aggsDef.buckets=t,this}minimumInterval(t){return this._aggsDef.minimum_interval=t,this}format(t){return this._aggsDef.format=t,this}missing(t){return this._aggsDef.missing=t,this}timeZone(t){return this._aggsDef.time_zone=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2);t.exports=class extends i{constructor(t,e,r){super(t,"variable_width_histogram",e),s(r)||(this._aggsDef.buckets=r)}buckets(t){return this._aggsDef.buckets=t,this}}},function(t,e,r){"use strict";const s=r(15);t.exports=class extends s{constructor(t,e){super(t,"date_range",e)}timeZone(t){return this._aggsDef.time_zone=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{EXECUTION_HINT_SET:n}}=r(1),o=r(2),u=i("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-diversified-sampler-aggregation.html","execution_hint",n);t.exports=class extends o{constructor(t,e){super(t,"diversified_sampler",e)}shardSize(t){return this._aggsDef.shard_size=t,this}maxDocsPerValue(t){return this._aggsDef.max_docs_per_value=t,this}executionHint(t){s(t)&&u(t);const e=t.toLowerCase();return n.has(e)||u(t),this._aggsDef.execution_hint=e,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1),o=r(2),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-filter-aggregation.html";t.exports=class extends o{constructor(t,e){super(t,"filter"),s(e)||this.filter(e)}field(){throw console.log(`Please refer ${u}`),new Error("field is not supported in FilterAggregation")}script(){throw console.log(`Please refer ${u}`),new Error("script is not supported in FilterAggregation")}filter(t){return n(t,i),this._aggsDef=this._aggs[this.aggType]=t,this}}},function(t,e,r){"use strict";const s=r(7),{Query:i,util:{checkType:n,setDefault:o}}=r(1),u=r(2),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-filters-aggregation.html";t.exports=class extends u{constructor(t){super(t,"filters")}field(){throw console.log(`Please refer ${c}`),new Error("field is not supported in FiltersAggregation")}script(){throw console.log(`Please refer ${c}`),new Error("script is not supported in FiltersAggregation")}_warn(t){console.warn(`[FiltersAggregation] ${t}`)}_checkNamedFilters(){!o(this._aggsDef,"filters",{})&&Array.isArray(this._aggsDef.filters)&&(this._warn("Do not mix named and anonymous filters!"),this._warn("Overwriting anonymous filters."),this._aggsDef.filters={})}_checkAnonymousFilters(){o(this._aggsDef,"filters",[])||Array.isArray(this._aggsDef.filters)||(this._warn("Do not mix named and anonymous filters!"),this._warn("Overwriting named filters."),this._aggsDef.filters=[])}filter(t,e){return n(e,i),this._checkNamedFilters(),this._aggsDef.filters[t]=e,this}filters(t){return n(t,Object),this._checkNamedFilters(),Object.assign(this._aggsDef.filters,t),this}anonymousFilter(t){return n(t,i),this._checkAnonymousFilters(),this._aggsDef.filters.push(t),this}anonymousFilters(t){return n(t,Array),this._checkAnonymousFilters(),this._aggsDef.filters=this._aggsDef.filters.concat(t),this}otherBucket(t,e){return this._aggsDef.other_bucket=t,!s(e)&&this.otherBucketKey(e),this}otherBucketKey(t){return this._aggsDef.other_bucket_key=t,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,invalidParam:o},consts:{UNIT_SET:u}}=r(1),c=r(15),a="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geodistance-aggregation.html",h=o(a,"unit",u),g=o(a,"distance_type","'plane' or 'arc'");t.exports=class extends c{constructor(t,e){super(t,"geo_distance",e)}format(){throw console.log(`Please refer ${a}`),new Error("format is not supported in GeoDistanceAggregation")}script(){throw console.log(`Please refer ${a}`),new Error("script is not supported in GeoDistanceAggregation")}origin(t){return n(t,i),this._aggsDef.origin=t,this}unit(t){return u.has(t)||h(t),this._aggsDef.unit=t,this}distanceType(t){s(t)&&g(t);const e=t.toLowerCase();return"plane"!==e&&"arc"!==e&&g(t),this._aggsDef.distance_type=e,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geohashgrid-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"geohash_grid",e)}format(){throw console.log(`Please refer ${n}`),new Error("format is not supported in GeoHashGridAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in GeoHashGridAggregation")}precision(t){if(s(t)||t<1||t>12)throw new Error("`precision` can only be value from 1 to 12.");return this._aggsDef.precision=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geohexgrid-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"geohex_grid",e)}format(){throw console.log(`Please refer ${n}`),new Error("format is not supported in GeoHexGridAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in GeoHexGridAggregation")}precision(t){if(s(t)||t<0||t>15)throw new Error("`precision` can only be value from 0 to 15.");return this._aggsDef.precision=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,setDefault:o}}=r(1),u=r(2),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geotilegrid-aggregation.html";t.exports=class extends u{constructor(t,e){super(t,"geotile_grid",e)}format(){throw console.log(`Please refer ${c}`),new Error("format is not supported in GeoTileGridAggregation")}script(){throw console.log(`Please refer ${c}`),new Error("script is not supported in GeoTileGridAggregation")}precision(t){if(s(t)||t<0||t>29)throw new Error("`precision` can only be value from 0 to 29.");return this._aggsDef.precision=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}topLeft(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.top_left=t,this}bottomRight(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.bottom_right=t,this}topRight(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.top_right=t,this}bottomLeft(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.bottom_left=t,this}top(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.top=t,this}left(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.left=t,this}bottom(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.bottom=t,this}right(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.right=t,this}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-global-aggregation.html";t.exports=class extends s{constructor(t){super(t,"global")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in GlobalAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in GlobalAggregation")}}},function(t,e,r){"use strict";const s=r(28);t.exports=class extends s{constructor(t,e,r){super(t,"histogram",e,r)}}},function(t,e,r){"use strict";const s=r(15),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-iprange-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"ip_range",e),this._rangeRequiredKeys=["from","to","mask"]}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in IpRangeAggregation")}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-missing-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"missing",e)}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in MissingAggregation")}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-nested-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"nested"),s(e)||(this._aggsDef.path=e)}field(){throw console.log(`Please refer ${n}`),new Error("field is not supported in NestedAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in NestedAggregation")}path(t){return this._aggsDef.path=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-parent-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"parent"),s(e)||this.type(e)}field(){throw console.log(`Please refer ${n}`),new Error("field is not supported in ParentAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in ParentAggregation")}type(t){return this._aggsDef.type=t,this}}},function(t,e,r){"use strict";const s=r(15);t.exports=class extends s{constructor(t,e){super(t,"range",e)}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-rare-terms-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"rare_terms",e)}maxDocCount(t){if(s(t)||t<1||t>100)throw new Error("`maxDocCount` can only be value from 1 to 100.");return this._aggsDef.max_doc_count=t,this}precision(t){if(t<1e-5)throw new Error("`precision` must be greater than 0.00001.");return this._aggsDef.precision=t,this}include(t){return this._aggsDef.include=t,this}exclude(t){return this._aggsDef.exclude=t,this}missing(t){return this._aggsDef.missing=t,this}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in RareTermsAggregation")}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-reverse-nested-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"reverse_nested"),s(e)||(this._aggsDef.path=e)}field(){throw console.log(`Please refer ${n}`),new Error("field is not supported in ReverseNestedAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in ReverseNestedAggregation")}path(t){return this._aggsDef.path=t,this}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-sampler-aggregation.html";t.exports=class extends s{constructor(t){super(t,"sampler")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in SamplerAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in SamplerAggregation")}shardSize(t){return this._aggsDef.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(30),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-significantterms-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"significant_terms",i,e)}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(30),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-significanttext-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"significant_text",n,e)}filterDuplicateText(t){return this._aggsDef.filter_duplicate_text=t,this}sourceFields(t){return s(t,Array),this._aggsDef.source_fields=t,this}missing(){throw console.log(`Please refer ${n}`),new Error("missing is not supported in SignificantTextAggregation")}executionHint(){throw console.log(`Please refer ${n}`),new Error("executionHint is not supported in SignificantTextAggregation")}}},function(t,e,r){"use strict";const s=r(5),i=r(0),{util:{invalidParam:n}}=r(1),o=r(29),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html",c=n(u,"direction","'asc' or 'desc'"),a=n(u,"mode","'breadth_first' or 'depth_first'");t.exports=class extends o{constructor(t,e){super(t,"terms",u,e)}showTermDocCountError(t){return this._aggsDef.show_term_doc_count_error=t,this}includePartition(t,e){return this._aggsDef.include={partition:t,num_partitions:e},this}collectMode(t){i(t)&&a(t);const e=t.toLowerCase();return"breadth_first"!==e&&"depth_first"!==e&&a(t),this._aggsDef.collect_mode=e,this}order(t,e="desc"){i(e)&&c(e);const r=e.toLowerCase();return"asc"!==r&&"desc"!==r&&c(e),s(this._aggsDef,"order")?(Array.isArray(this._aggsDef.order)||(this._aggsDef.order=[this._aggsDef.order]),this._aggsDef.order.push({[t]:r})):this._aggsDef.order={[t]:r},this}}},function(t,e,r){"use strict";e.PipelineAggregationBase=r(3),e.AvgBucketAggregation=r(159),e.DerivativeAggregation=r(160),e.MaxBucketAggregation=r(161),e.MinBucketAggregation=r(162),e.SumBucketAggregation=r(163),e.StatsBucketAggregation=r(164),e.ExtendedStatsBucketAggregation=r(165),e.PercentilesBucketAggregation=r(166),e.MovingAverageAggregation=r(167),e.MovingFunctionAggregation=r(168),e.CumulativeSumAggregation=r(169),e.BucketScriptAggregation=r(170),e.BucketSelectorAggregation=r(171),e.SerialDifferencingAggregation=r(172),e.BucketSortAggregation=r(173)},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-avg-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"avg_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-derivative-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"derivative",i,e)}unit(t){return this._aggsDef.unit=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-max-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"max_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-min-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"min_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-sum-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"sum_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-stats-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"stats_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-extended-stats-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"extended_stats_bucket",i,e)}sigma(t){return this._aggsDef.sigma=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(3),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-percentiles-bucket-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"percentiles_bucket",n,e)}percents(t){return s(t,Array),this._aggsDef.percents=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{MODEL_SET:n}}=r(1),o=r(3),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-movavg-aggregation.html",c=i(u,"model",n);t.exports=class extends o{constructor(t,e){super(t,"moving_avg",u,e)}format(){throw console.log(`Please refer ${u}`),new Error("format is not supported in MovingAverageAggregation")}model(t){s(t)&&c(t);const e=t.toLowerCase();return n.has(e)||c(t),this._aggsDef.model=e,this}window(t){return this._aggsDef.window=t,this}minimize(t){return this._aggsDef.minimize=t,this}settings(t){return this._aggsDef.settings=t,this}predict(t){return this._aggsDef.predict=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(3),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-movfn-aggregation.html";t.exports=class extends i{constructor(t,e,r,i){super(t,"moving_fn",n,e),s(r)||(this._aggsDef.window=r),s(i)||(this._aggsDef.script=i)}window(t){return this._aggsDef.window=t,this}shift(t){return this._aggsDef.shift=t,this}script(t){return this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-cumulative-sum-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"cumulative_sum",i,e)}gapPolicy(){throw console.log(`Please refer ${i}`),new Error("gapPolicy is not supported in CumulativeSumAggregation")}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-script-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"bucket_script",i,e)}script(t){return this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-selector-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"bucket_selector",i,e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in BucketSelectorAggregation")}script(t){return this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-serialdiff-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"serial_diff",i,e)}lag(t){return this._aggsDef.lag=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-sort-aggregation.html";t.exports=class extends s{constructor(t){super(t,"bucket_sort",i)}sort(t){return this._aggsDef.sort=t,this}from(t){return this._aggsDef.from=t,this}size(t){return this._aggsDef.size=t,this}}},function(t,e,r){"use strict";e.MatrixStatsAggregation=r(175)},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e){super(t,"matrix_stats"),s(e)||this.fields(e)}fields(t){return n(t,Array),this._aggsDef.fields=t,this}mode(t){return this._aggsDef.mode=t,this}missing(t){return this._aggsDef.missing=t,this}}},function(t,e,r){"use strict";e.AnalyzedSuggesterBase=r(31),e.TermSuggester=r(177),e.DirectGenerator=r(178),e.PhraseSuggester=r(179),e.CompletionSuggester=r(180)},function(t,e,r){"use strict";const s=r(0),{consts:{SUGGEST_MODE_SET:i,STRING_DISTANCE_SET:n},util:{invalidParam:o}}=r(1),u=r(31),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-term.html",a=o(c,"sort","'score' or 'frequency'"),h=o(c,"suggest_mode",i),g=o(c,"string_distance",n);t.exports=class extends u{constructor(t,e,r){super("term",t,e,r)}sort(t){s(t)&&a(t);const e=t.toLowerCase();return"score"!==e&&"frequency"!==e&&a(t),this._suggestOpts.sort=e,this}suggestMode(t){s(t)&&h(t);const e=t.toLowerCase();return i.has(e)||h(t),this._suggestOpts.suggest_mode=e,this}maxEdits(t){return this._suggestOpts.max_edits=t,this}prefixLength(t){return this._suggestOpts.prefix_length=t,this}minWordLength(t){return this._suggestOpts.min_word_length=t,this}maxInspections(t){return this._suggestOpts.max_inspections=t,this}minDocFreq(t){return this._suggestOpts.min_doc_freq=t,this}maxTermFreq(t){return this._suggestOpts.max_term_freq=t,this}stringDistance(t){s(t)&&g(t);const e=t.toLowerCase();return n.has(e)||g(t),this._suggestOpts.string_distance=e,this}}},function(t,e,r){"use strict";const s=r(0),{consts:{SUGGEST_MODE_SET:i},util:{invalidParam:n}}=r(1),o=n("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-phrase.html#_direct_generators","suggest_mode",i);t.exports=class{constructor(t){this._body={},s(t)||(this._body.field=t)}field(t){return this._body.field=t,this}size(t){return this._body.size=t,this}suggestMode(t){s(t)&&o(t);const e=t.toLowerCase();return i.has(e)||o(t),this._body.suggest_mode=e,this}maxEdits(t){return this._body.max_edits=t,this}prefixLength(t){return this._body.prefix_length=t,this}minWordLength(t){return this._body.min_word_length=t,this}maxInspections(t){return this._body.max_inspections=t,this}minDocFreq(t){return this._body.min_doc_freq=t,this}maxTermFreq(t){return this._body.max_term_freq=t,this}preFilter(t){return this._body.pre_filter=t,this}postFilter(t){return this._body.post_filter=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),{consts:{SMOOTHING_MODEL_SET:i},util:{recursiveToJSON:n,invalidParam:o}}=r(1),u=r(31),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-phrase.html","smoothing",i);t.exports=class extends u{constructor(t,e,r){super("phrase",t,e,r)}gramSize(t){return this._suggestOpts.gram_size=t,this}realWordErrorLikelihood(t){return this._suggestOpts.real_word_error_likelihood=t,this}confidence(t){return this._suggestOpts.confidence=t,this}maxErrors(t){return this._suggestOpts.max_errors=t,this}separator(t){return this._suggestOpts.separator=t,this}highlight(t,e){return this._suggestOpts.highlight={pre_tag:t,post_tag:e},this}collate(t){return this._suggestOpts.collate=t,this}smoothing(t){s(t)&&c(t);const e=t.toLowerCase();return i.has(e)||c(t),this._suggestOpts.smoothing=e,this}directGenerator(t){return this._suggestOpts.direct_generator=Array.isArray(t)?t:[t],this}toJSON(){return n(this._body)}}},function(t,e,r){"use strict";const s=r(13),{Suggester:i,util:{setDefault:n}}=r(1);t.exports=class extends i{constructor(t,e){super("completion",t,e)}prefix(t){return this._opts.prefix=t,this}skipDuplicates(t=!0){return this._suggestOpts.skip_duplicates=t,this}_checkFuzzy(){s(this._suggestOpts.fuzzy)||(this._suggestOpts.fuzzy={})}fuzzy(t=!0){return this._suggestOpts.fuzzy=t,this}fuzziness(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.fuzziness=t,this}transpositions(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.transpositions=t,this}minLength(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.min_length=t,this}prefixLength(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.prefix_length=t,this}unicodeAware(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.unicode_aware=t,this}regex(t){return this._opts.regex=t,this}flags(t){return n(this._suggestOpts,"regex",{}),this._suggestOpts.regex.flags=t,this}maxDeterminizedStates(t){return n(this._suggestOpts,"regex",{}),this._suggestOpts.regex.max_determinized_states=t,this}contexts(t,e){return n(this._suggestOpts,"contexts",{}),this._suggestOpts.contexts[t]=e,this}}},function(t,e,r){"use strict";const s=r(0),{MatchAllQuery:i,termLevelQueries:{ExistsQuery:n},compoundQueries:{BoolQuery:o,FunctionScoreQuery:u,scoreFunctions:{RandomScoreFunction:c}}}=r(38),{Query:a,util:{checkType:h}}=r(1);e.missingQuery=function(t){return(new o).mustNot(new n(t))},e.randomSortQuery=function(t=new i,e){h(t,a);const r=new c;return(new u).query(t).function(s(e)?r:r.seed(e))},e.filterQuery=function(t,e=!1){h(t,a);const r=(new o).filter(t);return!0===e?r.must(new i):r}}])}); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.esb=e():t.esb=e()}(window,function(){return function(t){var e={};function r(s){if(e[s])return e[s].exports;var i=e[s]={i:s,l:!1,exports:{}};return t[s].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,s){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(s,i,function(e){return t[e]}.bind(null,i));return s},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=42)}([function(t,e){t.exports=function(t){return null==t}},function(t,e,r){"use strict";e.RequestBodySearch=r(43),e.Aggregation=r(33),e.Query=r(12),e.Suggester=r(34),e.Script=r(36),e.Highlight=r(24),e.GeoPoint=r(46),e.GeoShape=r(47),e.IndexedShape=r(48),e.Sort=r(23),e.Rescore=r(35),e.InnerHits=r(37),e.SearchTemplate=r(49),e.consts=r(17),e.util=r(6)},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,Script:n,util:{checkType:o}}=r(1);t.exports=class extends i{constructor(t,e,r){super(t,e),s(r)||(this._aggsDef.field=r)}field(t){return this._aggsDef.field=t,this}script(t){return o(t,n),this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,util:{invalidParam:n}}=r(1),o=n("","gap_policy","'skip' or 'insert_zeros'");t.exports=class extends i{constructor(t,e,r,i){super(t,e),this._refUrl=r,s(i)||(this._aggsDef.buckets_path=i)}bucketsPath(t){return this._aggsDef.buckets_path=t,this}gapPolicy(t){s(t)&&o(t,this._refUrl);const e=t.toLowerCase();return"skip"!==e&&"insert_zeros"!==e&&o(t,this._refUrl),this._aggsDef.gap_policy=e,this}format(t){return this._aggsDef.format=t,this}}},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,Script:n,util:{checkType:o}}=r(1);t.exports=class extends i{constructor(t,e,r){super(t,e),s(r)||(this._aggsDef.field=r)}field(t){return this._aggsDef.field=t,this}script(t){return o(t,n),this._aggsDef.script=t,this}missing(t){return this._aggsDef.missing=t,this}format(t){return this._aggsDef.format=t,this}}},function(t,e,r){(function(e){var r="Expected a function",s="__lodash_hash_undefined__",i=1/0,n=9007199254740991,o="[object Arguments]",u="[object Function]",c="[object GeneratorFunction]",a="[object Symbol]",h=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/,l=/^\./,p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,y="object"==typeof e&&e&&e.Object===Object&&e,m="object"==typeof self&&self&&self.Object===Object&&self,w=y||m||Function("return this")();var x=Array.prototype,O=Function.prototype,b=Object.prototype,S=w["__core-js_shared__"],v=function(){var t=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),A=O.toString,q=b.hasOwnProperty,D=b.toString,T=RegExp("^"+A.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=w.Symbol,k=b.propertyIsEnumerable,E=x.splice,P=L(w,"Map"),z=L(Object,"create"),M=Q?Q.prototype:void 0,F=M?M.toString:void 0;function j(t){var e=-1,r=t?t.length:0;for(this.clear();++e-1&&t%1==0&&t-1},$.prototype.set=function(t,e){var r=this.__data__,s=R(r,t);return s<0?r.push([t,e]):r[s][1]=e,this},C.prototype.clear=function(){this.__data__={hash:new j,map:new(P||$),string:new j}},C.prototype.delete=function(t){return B(this,t).delete(t)},C.prototype.get=function(t){return B(this,t).get(t)},C.prototype.has=function(t){return B(this,t).has(t)},C.prototype.set=function(t,e){return B(this,t).set(t,e),this};var I=U(function(t){t=function(t){return null==t?"":function(t){if("string"==typeof t)return t;if(tt(t))return F?F.call(t):"";var e=t+"";return"0"==e&&1/t==-i?"-0":e}(t)}(t);var e=[];return l.test(t)&&e.push(""),t.replace(p,function(t,r,s,i){e.push(s?i.replace(_,"$1"):r||t)}),e});function J(t){if("string"==typeof t||tt(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}function U(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(r);var s=function(){var r=arguments,i=e?e.apply(this,r):r[0],n=s.cache;if(n.has(i))return n.get(i);var o=t.apply(this,r);return s.cache=n.set(i,o),o};return s.cache=new(U.Cache||C),s}function W(t,e){return t===e||t!=t&&e!=e}U.Cache=C;var V=Array.isArray;function Z(t){var e=Y(t)?D.call(t):"";return e==u||e==c}function K(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}function Y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function X(t){return!!t&&"object"==typeof t}function tt(t){return"symbol"==typeof t||X(t)&&D.call(t)==a}t.exports=function(t,e){return null!=t&&H(t,e,N)}}).call(this,r(16))},function(t,e,r){"use strict";const s=r(7),i=r(0),n=r(22),o=r(13),u=r(45),c=r(5),a=r(32);function h(t,e,r){return t>=e&&t<=r}e.checkType=function(t,e){if(!(t instanceof e))throw i(t)?console.warn(`Was expecting instance of ${e.name} but got ${t}!`):console.warn(`${a(t)} is of the type ${typeof t}`),new TypeError(`Argument must be an instance of ${e.name}`)},e.constructorWrapper=function(t){return(...e)=>new t(...e)},e.firstDigitPos=function(t){if(s(t))return-1;const e=t.length;for(let r=0;rt(e));if(u(e,"toJSON")&&e.constructor!==Object)return t(e.toJSON());const r={};for(const s of Object.keys(e))r[s]=t(e[s]);return r},e.invalidParam=function(t,e,r){return(s,i=t)=>{i&&console.log(`See ${i}`),console.warn(`Got '${e}' - '${s}'`);const o=n(r)?r:a(r);throw new Error(`The '${e}' parameter should be one of ${o}`)}},e.setDefault=function(t,e,r){const s=!c(t,e);return s&&(t[e]=r),s}},function(t,e,r){(function(t,r){var s=9007199254740991,i="[object Arguments]",n="[object Function]",o="[object GeneratorFunction]",u="[object Map]",c="[object Set]",a=/^\[object .+?Constructor\]$/,h="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,l=h||g||Function("return this")(),p=e&&!e.nodeType&&e,_=p&&"object"==typeof r&&r&&!r.nodeType&&r,f=_&&_.exports===p;var d=Function.prototype,y=Object.prototype,m=l["__core-js_shared__"],w=function(){var t=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),x=d.toString,O=y.hasOwnProperty,b=y.toString,S=RegExp("^"+x.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),v=f?l.Buffer:void 0,A=y.propertyIsEnumerable,q=v?v.isBuffer:void 0,D=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object),T=N(l,"DataView"),Q=N(l,"Map"),k=N(l,"Promise"),E=N(l,"Set"),P=N(l,"WeakMap"),z=!A.call({valueOf:1},"valueOf"),M=B(T),F=B(Q),j=B(k),$=B(E),C=B(P);function R(t){return!(!W(t)||function(t){return!!w&&w in t}(t))&&(U(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?S:a).test(B(t))}function N(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return R(r)?r:void 0}var G=function(t){return b.call(t)};function B(t){if(null!=t){try{return x.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function L(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&I(t)}(t)&&O.call(t,"callee")&&(!A.call(t,"callee")||b.call(t)==i)}(T&&"[object DataView]"!=G(new T(new ArrayBuffer(1)))||Q&&G(new Q)!=u||k&&"[object Promise]"!=G(k.resolve())||E&&G(new E)!=c||P&&"[object WeakMap]"!=G(new P))&&(G=function(t){var e=b.call(t),r="[object Object]"==e?t.constructor:void 0,s=r?B(r):void 0;if(s)switch(s){case M:return"[object DataView]";case F:return u;case j:return"[object Promise]";case $:return c;case C:return"[object WeakMap]"}return e});var H=Array.isArray;function I(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}(t.length)&&!U(t)}var J=q||function(){return!1};function U(t){var e=W(t)?b.call(t):"";return e==n||e==o}function W(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}r.exports=function(t){if(I(t)&&(H(t)||"string"==typeof t||"function"==typeof t.splice||J(t)||L(t)))return!t.length;var e=G(t);if(e==u||e==c)return!t.size;if(z||function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||y)}(t))return!D(t).length;for(var r in t)if(O.call(t,r))return!1;return!0}}).call(this,r(16),r(44)(t))},function(t,e,r){"use strict";const{Query:s}=r(1);t.exports=class extends s{}},function(t,e,r){"use strict";const{inspect:s}=r(32),{util:{firstDigitPos:i},consts:{REWRITE_METHOD_SET:n}}=r(1);e.validateRewiteMethod=function(t,e,r){if(!n.has(t)){const o=`${t.substring(0,i(t))}N`;if(!n.has(o))throw console.log(`See ${r}`),console.warn(`Got '${e}' - ${t}`),new Error(`The '${e}' parameter should belong to ${s(n)}`)}}},function(t,e,r){"use strict";const s=r(40);t.exports=class extends s{}},function(t,e,r){"use strict";const{Query:s,util:{checkType:i,recursiveToJSON:n}}=r(1);t.exports=class{constructor(t){this._name=t,this._body={},this._opts={}}filter(t){return i(t,s),this._body.filter=t,this}weight(t){return this._body.weight=t,this}toJSON(){const t=Object.assign({[this._name]:this._opts},this._body);return n(t)}}},function(t,e,r){"use strict";const{recursiveToJSON:s}=r(6);t.exports=class{constructor(t){this.queryType=t,this._body={},this._queryOpts=this._body[t]={}}boost(t){return this._queryOpts.boost=t,this}name(t){return this._queryOpts._name=t,this}getDSL(){return this.toJSON()}toJSON(){return s(this._body)}}},function(t,e){t.exports=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{invalidParam:n,recursiveToJSON:o}}=r(1),u=n("","validation_method","'IGNORE_MALFORMED', 'COERCE' or 'STRICT'");t.exports=class extends i{constructor(t,e){super(t),this._field=null,this._fieldOpts={},s(e)||(this._field=e)}field(t){return this._field=t,this}validationMethod(t){s(t)&&u(t);const e=t.toUpperCase();return"IGNORE_MALFORMED"!==e&&"COERCE"!==e&&"STRICT"!==e&&u(t),this._queryOpts.validation_method=e,this}toJSON(){return o({[this.queryType]:Object.assign({[this._field]:this._fieldOpts},this._queryOpts)})}}},function(t,e,r){"use strict";const s=r(7),{util:{checkType:i}}=r(1),n=r(2),o=Object.prototype.hasOwnProperty;t.exports=class extends n{constructor(t,e,r){super(t,e,r),this._rangeRequiredKeys=["from","to"],this._aggsDef.ranges=[]}format(t){return this._aggsDef.format=t,this}range(t){if(i(t,Object),!this._rangeRequiredKeys.some(o,t))throw new Error(`Invalid Range! Range must have at least one of ${this._rangeRequiredKeys}`);return this._aggsDef.ranges.push(t),this}ranges(t){return i(t,Array),t.forEach(t=>this.range(t)),this}missing(t){return this._aggsDef.missing=t,this}keyed(t){return this._aggsDef.keyed=t,this}toJSON(){if(s(this._aggsDef.ranges))throw new Error("`ranges` cannot be empty.");return super.toJSON()}}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";e.EXECUTION_HINT_SET=new Set(["map","global_ordinals","global_ordinals_hash","global_ordinals_low_cardinality"]),e.UNIT_SET=new Set(["in","inch","yd","yards","ft","feet","km","kilometers","NM","nmi","nauticalmiles","mm","millimeters","cm","centimeters","mi","miles","m","meters"]),e.MODEL_SET=new Set(["simple","linear","ewma","holt","holt_winters"]),e.SORT_MODE_SET=new Set(["min","max","sum","avg","median"]),e.RESCORE_MODE_SET=new Set(["total","multiply","min","max","avg"]),e.REWRITE_METHOD_SET=new Set(["constant_score","constant_score_auto","constant_score_filter","scoring_boolean","constant_score_boolean","top_terms_N","top_terms_boost_N","top_terms_blended_freqs_N"]),e.MULTI_MATCH_TYPE=new Set(["best_fields","most_fields","cross_fields","phrase","phrase_prefix","bool_prefix"]),e.SCORE_MODE_SET=new Set(["multiply","sum","first","min","max","avg"]),e.BOOST_MODE_SET=new Set(["multiply","sum","replace","min","max","avg"]),e.FIELD_MODIFIER_SET=new Set(["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]),e.NESTED_SCORE_MODE_SET=new Set(["none","sum","min","max","avg"]),e.GEO_SHAPE_TYPES=new Set(["point","linestring","polygon","multipoint","multilinestring","multipolygon","geometrycollection","envelope","circle"]),e.GEO_RELATION_SET=new Set(["WITHIN","CONTAINS","DISJOINT","INTERSECTS"]),e.SUGGEST_MODE_SET=new Set(["missing","popular","always"]),e.STRING_DISTANCE_SET=new Set(["internal","damerau_levenshtein","levenstein","jarowinkler","ngram"]),e.SMOOTHING_MODEL_SET=new Set(["stupid_backoff","laplace","linear_interpolation"])},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t,e){super(t),s(e)||(this._queryOpts.query=e)}analyzer(t){return this._queryOpts.analyzer=t,this}minimumShouldMatch(t){return this._queryOpts.minimum_should_match=t,this}query(t){return this._queryOpts.query=t,this}}},function(t,e,r){"use strict";const s=r(5),i=r(0),n=r(18);t.exports=class extends n{constructor(t,e,r){super(t,r),i(e)||(this._field=e)}field(t){return this._field=t,this}toJSON(){if(!s(this._queryOpts,"query"))throw new Error("Query string is required for full text query!");const t=1===Object.keys(this._queryOpts).length?this._queryOpts.query:this._queryOpts;return{[this.queryType]:{[this._field]:t}}}}},function(t,e,r){"use strict";const s=r(0),{Query:i,InnerHits:n,util:{checkType:o,invalidParam:u},consts:{NESTED_SCORE_MODE_SET:c}}=r(1),a=u("","score_mode",c);t.exports=class extends i{constructor(t,e,r){super(t),this.refUrl=e,s(r)||this.query(r)}query(t){return o(t,i),this._queryOpts.query=t,this}scoreMode(t){s(t)&&a(t);const e=t.toLowerCase();return c.has(e)||a(t),this._queryOpts.score_mode=e,this}ignoreUnmapped(t){return this._queryOpts.ignore_unmapped=t,this}innerHits(t){return o(t,n),this._queryOpts.inner_hits=t,this}}},function(t,e,r){"use strict";const s=r(7),i=r(0),{util:{invalidParam:n,recursiveToJSON:o}}=r(1),u=n("","order","'asc' or 'desc'");t.exports=class{constructor(t,e,r,n){if(s(t))throw new Error("ValuesSourceBase `valueSrcType` cannot be empty");this._name=r,this._valueSrcType=t,this._refUrl=e,this._body={},this._opts=this._body[t]={},i(n)||(this._opts.field=n)}field(t){return this._opts.field=t,this}script(t){return this._opts.script=t,this}valueType(t){return this._opts.value_type=t,this}order(t){i(t)&&u(t,this._refUrl);const e=t.toLowerCase();return"asc"!==e&&"desc"!==e&&u(t,this._refUrl),this._opts.order=e,this}missing(t){return this._opts.missing=t,this}missingBucket(t){return this._opts.missing_bucket=t,this}toJSON(){return{[this._name]:o(this._body)}}}},function(t,e){var r="[object String]",s=Object.prototype.toString,i=Array.isArray;t.exports=function(t){return"string"==typeof t||!i(t)&&function(t){return!!t&&"object"==typeof t}(t)&&s.call(t)==r}},function(t,e,r){"use strict";const s=r(7),i=r(5),n=r(0),o=r(12),u=r(36),{checkType:c,invalidParam:a,recursiveToJSON:h}=r(6),{SORT_MODE_SET:g,UNIT_SET:l}=r(17),p="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-sort.html",_=a(p,"order","'asc' or 'desc'"),f=a(p,"mode",g),d=a(p,"distance_type","'plane' or 'arc'"),y=a(p,"unit",l);t.exports=class{constructor(t,e){this._opts={},this._geoPoint=null,this._script=null,n(t)||(this._field=t),n(e)||this.order(e)}order(t){n(t)&&_(t);const e=t.toLowerCase();return"asc"!==e&&"desc"!==e&&_(t),this._opts.order=e,this}mode(t){n(t)&&f(t);const e=t.toLowerCase();return g.has(e)||f(t),this._opts.mode=e,this}nestedPath(t){return this._opts.nested_path=t,this}nestedFilter(t){return c(t,o),this._opts.nested_filter=t,this}nested(t){const{filter:e}=t;return n(e)||c(e,o),this._opts.nested=t,this}missing(t){return this._opts.missing=t,this}unmappedType(t){return this._opts.unmapped_type=t,this}geoDistance(t){return this._geoPoint=t,this}distanceType(t){n(t)&&d(t);const e=t.toLowerCase();return"plane"!==e&&"arc"!==e&&d(t),this._opts.distance_type=e,this}unit(t){return l.has(t)||y(t),this._opts.unit=t,this}script(t){return c(t,u),this._script=t,this}type(t){return this._opts.type=t,this}format(t){return this._opts.format=t,this}reverse(t){return this._opts.reverse=t,this}toJSON(){const t=n(this._geoPoint),e=n(this._script);if(t&&e){if(s(this._opts))return this._field;if(1===Object.keys(this._opts).length&&i(this._opts,"order"))return{[this._field]:this._opts.order}}let r;return r=t?e?{[this._field]:this._opts}:{_script:Object.assign({script:this._script},this._opts)}:{_geo_distance:Object.assign({[this._field]:this._geoPoint},this._opts)},h(r)}}},function(t,e,r){"use strict";const s=r(5),i=r(7),n=r(0),o=r(22),u=r(12),{checkType:c,invalidParam:a,recursiveToJSON:h}=r(6),g="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-highlighting.html",l=a(g,"encoder","'default' or 'html'"),p=a(g,"type","'plain', 'postings' or 'fvh'"),_=a(g,"fragmenter","'simple' or 'span'");t.exports=class{constructor(t){this._fields={},this._highlight={fields:this._fields},n(t)||(o(t)?this.field(t):this.fields(t))}_setFieldOption(t,e,r){n(t)?this._highlight[e]=r:(this.field(t),this._fields[t][e]=r)}field(t){return n(t)||s(this._fields,t)||(this._fields[t]={}),this}fields(t){return c(t,Array),t.forEach(t=>this.field(t)),this}preTags(t,e){return this._setFieldOption(e,"pre_tags",o(t)?[t]:t),this}postTags(t,e){return this._setFieldOption(e,"post_tags",o(t)?[t]:t),this}styledTagsSchema(){return this._highlight.tags_schema="styled",this}scoreOrder(t){return this._setFieldOption(t,"order","score"),this}fragmentSize(t,e){return this._setFieldOption(e,"fragment_size",t),this}numberOfFragments(t,e){return this._setFieldOption(e,"number_of_fragments",t),this}noMatchSize(t,e){return this._setFieldOption(e,"no_match_size",t),this}highlightQuery(t,e){return c(t,u),this._setFieldOption(e,"highlight_query",t),this}matchedFields(t,e){if(c(t,Array),i(e))throw new Error("`matched_fields` requires field name to be passed");return this.type("fvh",e),this._setFieldOption(e,"matched_fields",t),this}phraseLimit(t){return this._highlight.phrase_limit=t,this}encoder(t){n(t)&&l(t);const e=t.toLowerCase();return"default"!==e&&"html"!==e&&l(t),this._highlight.encoder=e,this}requireFieldMatch(t,e){return this._setFieldOption(e,"require_field_match",t),this}boundaryMaxScan(t,e){return this._setFieldOption(e,"boundary_max_scan",t),this}boundaryChars(t,e){return this._setFieldOption(e,"boundary_chars",t),this}type(t,e){n(t)&&p(t);const r=t.toLowerCase();return"plain"!==r&&"postings"!==r&&"fvh"!==r&&p(t),this._setFieldOption(e,"type",r),this}forceSource(t,e){return this._setFieldOption(e,"force_source",t),this}fragmenter(t,e){n(t)&&_(t);const r=t.toLowerCase();return"simple"!==r&&"span"!==r&&_(t),this._setFieldOption(e,"fragmenter",r),this}toJSON(){return h(this._highlight)}}},function(t,e,r){"use strict";const s=r(19);t.exports=class extends s{constructor(t,e,r,s){super(t,r,s),this._refUrl=e}minimumShouldMatch(){throw console.log(`Please refer ${this._refUrl}`),new Error(`minimumShouldMatch is not supported in ${this.constructor.name}`)}slop(t){return this._queryOpts.slop=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i,setDefault:n,invalidParam:o}}=r(1),u=r(18),c=o("","operator","'AND' or 'OR'");t.exports=class extends u{constructor(t,e,r){super(t,r),this._refUrl=e}field(t){return n(this._queryOpts,"fields",[]),this._queryOpts.fields.push(t),this}fields(t){return i(t,Array),n(this._queryOpts,"fields",[]),this._queryOpts.fields=this._queryOpts.fields.concat(t),this}defaultOperator(t){s(t)&&c(t,this._refUrl);const e=t.toUpperCase();return"AND"!==e&&"OR"!==e&&c(t,this._refUrl),this._queryOpts.default_operator=e,this}analyzeWildcard(t){return this._queryOpts.analyze_wildcard=t,this}lenient(t){return this._queryOpts.lenient=t,this}quoteFieldSuffix(t){return this._queryOpts.quote_field_suffix=t,this}allFields(t){return this._queryOpts.all_fields=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{little(t){return s(t,i),this._queryOpts.little=t,this}big(t){return s(t,i),this._queryOpts.big=t,this}}},function(t,e,r){"use strict";const s=r(5),i=r(0),{util:{invalidParam:n}}=r(1),o=r(2),u=n("","direction","'asc' or 'desc'");t.exports=class extends o{constructor(t,e,r,s){super(t,e,r),i(s)||(this._aggsDef.interval=s)}interval(t){return this._aggsDef.interval=t,this}format(t){return this._aggsDef.format=t,this}offset(t){return this._aggsDef.offset=t,this}order(t,e="desc"){i(e)&&u(e);const r=e.toLowerCase();return"asc"!==r&&"desc"!==r&&u(e),s(this._aggsDef,"order")?(Array.isArray(this._aggsDef.order)||(this._aggsDef.order=[this._aggsDef.order]),this._aggsDef.order.push({[t]:r})):this._aggsDef.order={[t]:r},this}minDocCount(t){return this._aggsDef.min_doc_count=t,this}extendedBounds(t,e){return this._aggsDef.extended_bounds={min:t,max:e},this}hardBounds(t,e){return this._aggsDef.hard_bounds={min:t,max:e},this}missing(t){return this._aggsDef.missing=t,this}keyed(t){return this._aggsDef.keyed=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{EXECUTION_HINT_SET:n}}=r(1),o=r(2),u=i("","execution_hint",n);t.exports=class extends o{constructor(t,e,r,s){super(t,e,s),this._refUrl=r}format(t){return this._aggsDef.format=t,this}minDocCount(t){return this._aggsDef.min_doc_count=t,this}shardMinDocCount(t){return this._aggsDef.shard_min_doc_count=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}missing(t){return this._aggsDef.missing=t,this}include(t){return this._aggsDef.include=t,this}exclude(t){return this._aggsDef.exclude=t,this}executionHint(t){s(t)&&u(t,this._refUrl);const e=t.toLowerCase();return n.has(e)||u(t,this._refUrl),this._aggsDef.execution_hint=t,this}}},function(t,e,r){"use strict";const{Query:s,Script:i,util:{checkType:n}}=r(1),o=r(29);t.exports=class extends o{jlh(){return this._aggsDef.jlh={},this}mutualInformation(t=!0,e=!0){return this._aggsDef.mutual_information={include_negatives:t,background_is_superset:e},this}chiSquare(t=!0,e=!0){return this._aggsDef.chi_square={include_negatives:t,background_is_superset:e},this}gnd(t=!0){return this._aggsDef.gnd={background_is_superset:t},this}percentage(){return this._aggsDef.percentage={},this}scriptHeuristic(t){return n(t,i),this._aggsDef.script_heuristic={script:t},this}backgroundFilter(t){return n(t,s),this._aggsDef.background_filter=t,this}script(){throw console.log(`Please refer ${this._refUrl}`),new Error(`script is not supported in ${this.constructor.name}`)}}},function(t,e,r){"use strict";const s=r(0),{Suggester:i}=r(1);t.exports=class extends i{constructor(t,e,r,i){super(t,e,r),s(i)||(this._opts.text=i)}text(t){return this._opts.text=t,this}analyzer(t){return this._suggestOpts.analyzer=t,this}shardSize(t){return this._suggestOpts.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(22),i=r(13);function n(t,r){const s={seen:[],stylize:o};return arguments.length>=3&&(s.depth=arguments[2]),arguments.length>=4&&(s.colors=arguments[3]),a(r)?s.showHidden=r:r&&e._extend(s,r),g(s.showHidden)&&(s.showHidden=!1),g(s.depth)&&(s.depth=2),g(s.colors)&&(s.colors=!1),g(s.customInspect)&&(s.customInspect=!0),s.colors&&(s.stylize=u),c(s,t,s.depth)}function o(t){return t}function u(t,e){const r=n.styles[e];return r?`[${n.colors[r][0]}m${t}[${n.colors[r][1]}m`:t}function c(t,r,i){if(t.customInspect&&r&&f(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){let e=r.inspect(i,t);return s(e)||(e=c(t,e,i)),e}const n=function(t,e){if(g(e))return t.stylize("undefined","undefined");if(s(e)){const r=`'${JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')}'`;return t.stylize(r,"string")}if(function(t){return"number"==typeof t}(e))return t.stylize(`${e}`,"number");if(a(e))return t.stylize(`${e}`,"boolean");if(h(e))return t.stylize("null","null")}(t,r);if(n)return n;let o=Object.keys(r);const u=function(t){const e={};return t.forEach(t=>{e[t]=!0}),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),_(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return d(r);if(0===o.length){if(f(r)){const e=r.name?`: ${r.name}`:"";return t.stylize(`[Function${e}]`,"special")}if(l(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(p(r))return t.stylize(Date.prototype.toString.call(r),"date");if(_(r))return d(r)}let m,w="",x=!1,O=["{","}"];if(function(t){return Array.isArray(t)}(r)&&(x=!0,O=["[","]"]),f(r)){w=` [Function${r.name?`: ${r.name}`:""}]`}return l(r)&&(w=` ${RegExp.prototype.toString.call(r)}`),p(r)&&(w=` ${Date.prototype.toUTCString.call(r)}`),_(r)&&(w=` ${d(r)}`),0!==o.length||x&&0!==r.length?i<0?l(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),m=x?function(t,e,r,s,i){const n=[];for(let i=0,o=e.length;i{i.match(/^\d+$/)||n.push(y(t,e,r,s,i,!0))}),n}(t,r,i,u,o):o.map(e=>y(t,r,i,u,e,x)),t.seen.pop(),function(t,e,r){if(t.reduce((t,e)=>t+e.replace(/\u001b\[\d\d?m/g,"").length+1,0)>60)return`${r[0]+(""===e?"":`${e}\n `)} ${t.join(",\n ")} ${r[1]}`;return`${r[0]+e} ${t.join(", ")} ${r[1]}`}(m,w,O)):O[0]+w+O[1]}function a(t){return"boolean"==typeof t}function h(t){return null===t}function g(t){return void 0===t}function l(t){return i(t)&&"[object RegExp]"===m(t)}function p(t){return i(t)&&"[object Date]"===m(t)}function _(t){return i(t)&&("[object Error]"===m(t)||t instanceof Error)}function f(t){return"function"==typeof t}function d(t){return`[${Error.prototype.toString.call(t)}]`}function y(t,e,r,s,i,n){let o,u;const a=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]};if(a.get?u=a.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):a.set&&(u=t.stylize("[Setter]","special")),hasOwnProperty(s,i)||(o=`[${i}]`),u||(t.seen.indexOf(a.value)<0?(u=h(r)?c(t,a.value,null):c(t,a.value,r-1)).indexOf("\n")>-1&&(u=n?u.split("\n").map(t=>` ${t}`).join("\n").slice(2):`\n${u.split("\n").map(t=>` ${t}`).join("\n")}`):u=t.stylize("[Circular]","special")),g(o)){if(n&&i.match(/^\d+$/))return u;(o=JSON.stringify(`${i}`)).match(/^"([a-zA-Z_]\w*)"$/)?(o=o.slice(1,-1),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return`${o}: ${u}`}function m(t){return Object.prototype.toString.call(t)}t.exports=n},function(t,e,r){"use strict";const s=r(5),i=r(7),{checkType:n,recursiveToJSON:o}=r(6);class u{constructor(t,e){if(i(e))throw new Error("Aggregation `aggType` cannot be empty");this._name=t,this.aggType=e,this._aggs={},this._aggsDef=this._aggs[e]={},this._nestedAggs=[]}name(t){return this._name=t,this}aggregation(t){return n(t,u),this._nestedAggs.push(t),this}agg(t){return this.aggregation(t)}aggregations(t){return n(t,Array),t.forEach(t=>this.aggregation(t)),this}aggs(t){return this.aggregations(t)}meta(t){return this._aggs.meta=t,this}_aggsName(){if(!i(this._name))return this._name;if(s(this._aggsDef,"field"))return`agg_${this.aggType}_${this._aggsDef.field}`;throw new Error("Aggregation name could not be determined")}getDSL(){return this.toJSON()}toJSON(){const t=o(this._aggs);return i(this._nestedAggs)||(t.aggs=Object.assign({},...o(this._nestedAggs))),{[this._aggsName()]:t}}}t.exports=u},function(t,e,r){"use strict";const s=r(0),i=r(7);t.exports=class{constructor(t,e,r){if(i(t))throw new Error("Suggester `suggesterType` cannot be empty");if(i(e))throw new Error("Suggester `name` cannot be empty");this.name=e,this.suggesterType=t,this._body={},this._opts=this._body[e]={},this._suggestOpts=this._opts[t]={},s(r)||(this._suggestOpts.field=r)}field(t){return this._suggestOpts.field=t,this}size(t){return this._suggestOpts.size=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),i=r(12),{checkType:n,invalidParam:o,recursiveToJSON:u}=r(6),{RESCORE_MODE_SET:c}=r(17),a=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-rescore.html","score_mode",c);t.exports=class{constructor(t,e){this._body={},this._rescoreOpts=this._body.query={},s(t)||(this._body.window_size=t),s(e)||this.rescoreQuery(e)}windowSize(t){return this._body.window_size=t,this}rescoreQuery(t){return n(t,i),this._rescoreOpts.rescore_query=t,this}queryWeight(t){return this._rescoreOpts.query_weight=t,this}rescoreQueryWeight(t){return this._rescoreOpts.rescore_query_weight=t,this}scoreMode(t){s(t)&&a(t);const e=t.toLowerCase();return c.has(e)||a(t),this._rescoreOpts.score_mode=e,this}toJSON(){return u(this._body)}}},function(t,e,r){"use strict";const s=r(0);t.exports=class{constructor(t,e){if(this._isTypeSet=!1,this._body={},!s(t)&&!s(e))switch(t.toLowerCase()){case"inline":this.inline(e);break;case"source":this.source(e);break;case"stored":this.stored(e);break;case"id":this.id(e);break;case"file":this.file(e);break;default:throw new Error("`type` must be one of `inline`, `stored`, `file`")}}_warn(t){console.warn(`[Script] ${t}`)}_checkMixedRepr(){this._isTypeSet&&(this._warn("Script source(`inline`/`source`/`stored`/`id`/`file`) was already specified!"),this._warn("Overwriting."),delete this._body.inline,delete this._body.source,delete this._body.stored,delete this._body.id,delete this._body.file)}inline(t){return this._checkMixedRepr(),this._body.inline=t,this._isTypeSet=!0,this}source(t){return this._checkMixedRepr(),this._body.source=t,this._isTypeSet=!0,this}stored(t){return this._checkMixedRepr(),this._body.stored=t,this._isTypeSet=!0,this}id(t){return this._checkMixedRepr(),this._body.id=t,this._isTypeSet=!0,this}file(t){return this._checkMixedRepr(),this._body.file=t,this._isTypeSet=!0,this}lang(t){return this._body.lang=t,this}params(t){return this._body.params=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),i=r(23),n=r(24),{checkType:o,setDefault:u,recursiveToJSON:c}=r(6);t.exports=class{constructor(t){this._body={},s(t)||(this._body.name=t)}name(t){return this._body.name=t,this}from(t){return this._body.from=t,this}size(t){return this._body.size=t,this}sort(t){return o(t,i),u(this._body,"sort",[]),this._body.sort.push(t),this}sorts(t){return t.forEach(t=>this.sort(t)),this}highlight(t){return o(t,n),this._body.highlight=t,this}explain(t){return this._body.explain=t,this}source(t){return this._body._source=t,this}storedFields(t){return this._body.stored_fields=t,this}scriptField(t,e){return u(this._body,"script_fields",{}),this._body.script_fields[t]={script:e},this}scriptFields(t){return o(t,Object),Object.keys(t).forEach(e=>this.scriptField(e,t[e])),this}docvalueFields(t){return this._body.docvalue_fields=t,this}version(t){return this._body.version=t,this}toJSON(){return c(this._body)}}},function(t,e,r){"use strict";e.MatchAllQuery=r(50),e.MatchNoneQuery=r(51),e.fullTextQueries=r(52),e.termLevelQueries=r(39),e.compoundQueries=r(71),e.joiningQueries=r(84),e.geoQueries=r(89),e.specializedQueries=r(94),e.spanQueries=r(101)},function(t,e,r){"use strict";e.MultiTermQueryBase=r(10),e.TermQuery=r(60),e.TermsQuery=r(61),e.TermsSetQuery=r(62),e.RangeQuery=r(63),e.ExistsQuery=r(64),e.PrefixQuery=r(65),e.WildcardQuery=r(66),e.RegexpQuery=r(67),e.FuzzyQuery=r(68),e.TypeQuery=r(69),e.IdsQuery=r(70)},function(t,e,r){"use strict";const s=r(5),i=r(0),{Query:n}=r(1);t.exports=class extends n{constructor(t,e,r){super(t),i(e)||(this._field=e),i(r)||(this._queryOpts.value=r)}field(t){return this._field=t,this}value(t){return this._queryOpts.value=t,this}toJSON(){if(!s(this._queryOpts,"value"))throw new Error("Value is required for term level query!");const t=1===Object.keys(this._queryOpts).length?this._queryOpts.value:this._queryOpts;return{[this.queryType]:{[this._field]:t}}}caseInsensitive(t=!0){return this._queryOpts.case_insensitive=t,this}}},function(t,e,r){"use strict";e.ScoreFunction=r(11),e.ScriptScoreFunction=r(72),e.WeightScoreFunction=r(73),e.RandomScoreFunction=r(74),e.FieldValueFactorFunction=r(75),e.DecayScoreFunction=r(76)},function(t,e,r){"use strict";const{RequestBodySearch:s,Highlight:i,Script:n,GeoPoint:o,GeoShape:u,IndexedShape:c,Sort:a,Rescore:h,InnerHits:g,SearchTemplate:l,Query:p,util:{constructorWrapper:_}}=r(1),{MatchAllQuery:f,MatchNoneQuery:d,fullTextQueries:{MatchQuery:y,MatchPhraseQuery:m,MatchPhrasePrefixQuery:w,MultiMatchQuery:x,CommonTermsQuery:O,QueryStringQuery:b,SimpleQueryStringQuery:S},termLevelQueries:{TermQuery:v,TermsQuery:A,TermsSetQuery:q,RangeQuery:D,ExistsQuery:T,PrefixQuery:Q,WildcardQuery:k,RegexpQuery:E,FuzzyQuery:P,TypeQuery:z,IdsQuery:M},compoundQueries:{ConstantScoreQuery:F,BoolQuery:j,DisMaxQuery:$,FunctionScoreQuery:C,BoostingQuery:R,scoreFunctions:{ScriptScoreFunction:N,WeightScoreFunction:G,RandomScoreFunction:B,FieldValueFactorFunction:L,DecayScoreFunction:H}},joiningQueries:{NestedQuery:I,HasChildQuery:J,HasParentQuery:U,ParentIdQuery:W},geoQueries:{GeoShapeQuery:V,GeoBoundingBoxQuery:Z,GeoDistanceQuery:K,GeoPolygonQuery:Y},specializedQueries:{MoreLikeThisQuery:X,ScriptQuery:tt,ScriptScoreQuery:et,PercolateQuery:rt,DistanceFeatureQuery:st,RankFeatureQuery:it},spanQueries:{SpanTermQuery:nt,SpanMultiTermQuery:ot,SpanFirstQuery:ut,SpanNearQuery:ct,SpanOrQuery:at,SpanNotQuery:ht,SpanContainingQuery:gt,SpanWithinQuery:lt,SpanFieldMaskingQuery:pt}}=r(38),{metricsAggregations:{AvgAggregation:_t,CardinalityAggregation:ft,ExtendedStatsAggregation:dt,GeoBoundsAggregation:yt,GeoCentroidAggregation:mt,MaxAggregation:wt,MinAggregation:xt,PercentilesAggregation:Ot,PercentileRanksAggregation:bt,ScriptedMetricAggregation:St,StatsAggregation:vt,SumAggregation:At,TopHitsAggregation:qt,ValueCountAggregation:Dt},bucketAggregations:{AdjacencyMatrixAggregation:Tt,ChildrenAggregation:Qt,CompositeAggregation:kt,DateHistogramAggregation:Et,AutoDateHistogramAggregation:Pt,VariableWidthHistogramAggregation:zt,DateRangeAggregation:Mt,DiversifiedSamplerAggregation:Ft,FilterAggregation:jt,FiltersAggregation:$t,GeoDistanceAggregation:Ct,GeoHashGridAggregation:Rt,GeoHexGridAggregation:Nt,GeoTileGridAggregation:Gt,GlobalAggregation:Bt,HistogramAggregation:Lt,IpRangeAggregation:Ht,MissingAggregation:It,NestedAggregation:Jt,ParentAggregation:Ut,RangeAggregation:Wt,RareTermsAggregation:Vt,ReverseNestedAggregation:Zt,SamplerAggregation:Kt,SignificantTermsAggregation:Yt,SignificantTextAggregation:Xt,TermsAggregation:te},pipelineAggregations:{AvgBucketAggregation:ee,DerivativeAggregation:re,MaxBucketAggregation:se,MinBucketAggregation:ie,SumBucketAggregation:ne,StatsBucketAggregation:oe,ExtendedStatsBucketAggregation:ue,PercentilesBucketAggregation:ce,MovingAverageAggregation:ae,MovingFunctionAggregation:he,CumulativeSumAggregation:ge,BucketScriptAggregation:le,BucketSelectorAggregation:pe,SerialDifferencingAggregation:_e,BucketSortAggregation:fe},matrixAggregations:{MatrixStatsAggregation:de}}=r(111),{TermSuggester:ye,DirectGenerator:me,PhraseSuggester:we,CompletionSuggester:xe}=r(177),Oe=r(182);e.RequestBodySearch=s,e.requestBodySearch=_(s),e.Query=p,e.query=_(p),e.MatchAllQuery=f,e.matchAllQuery=_(f),e.MatchNoneQuery=d,e.matchNoneQuery=_(d),e.MatchQuery=y,e.matchQuery=_(y),e.MatchPhraseQuery=m,e.matchPhraseQuery=_(m),e.MatchPhrasePrefixQuery=w,e.matchPhrasePrefixQuery=_(w),e.MultiMatchQuery=x,e.multiMatchQuery=_(x),e.CommonTermsQuery=O,e.commonTermsQuery=_(O),e.QueryStringQuery=b,e.queryStringQuery=_(b),e.SimpleQueryStringQuery=S,e.simpleQueryStringQuery=_(S),e.TermQuery=v,e.termQuery=_(v),e.TermsQuery=A,e.termsQuery=_(A),e.TermsSetQuery=q,e.termsSetQuery=_(q),e.RangeQuery=D,e.rangeQuery=_(D),e.ExistsQuery=T,e.existsQuery=_(T),e.PrefixQuery=Q,e.prefixQuery=_(Q),e.WildcardQuery=k,e.wildcardQuery=_(k),e.RegexpQuery=E,e.regexpQuery=_(E),e.FuzzyQuery=P,e.fuzzyQuery=_(P),e.TypeQuery=z,e.typeQuery=_(z),e.IdsQuery=M,e.idsQuery=_(M),e.ConstantScoreQuery=F,e.constantScoreQuery=_(F),e.BoolQuery=j,e.boolQuery=_(j),e.DisMaxQuery=$,e.disMaxQuery=_($),e.FunctionScoreQuery=C,e.functionScoreQuery=_(C),e.BoostingQuery=R,e.boostingQuery=_(R),e.NestedQuery=I,e.nestedQuery=_(I),e.HasChildQuery=J,e.hasChildQuery=_(J),e.HasParentQuery=U,e.hasParentQuery=_(U),e.ParentIdQuery=W,e.parentIdQuery=_(W),e.GeoShapeQuery=V,e.geoShapeQuery=_(V),e.GeoBoundingBoxQuery=Z,e.geoBoundingBoxQuery=_(Z),e.GeoDistanceQuery=K,e.geoDistanceQuery=_(K),e.GeoPolygonQuery=Y,e.geoPolygonQuery=_(Y),e.MoreLikeThisQuery=X,e.moreLikeThisQuery=_(X),e.ScriptQuery=tt,e.scriptQuery=_(tt),e.ScriptScoreQuery=et,e.scriptScoreQuery=_(et),e.PercolateQuery=rt,e.percolateQuery=_(rt),e.DistanceFeatureQuery=st,e.distanceFeatureQuery=_(st),e.RankFeatureQuery=it,e.rankFeatureQuery=_(it),e.SpanTermQuery=nt,e.spanTermQuery=_(nt),e.SpanMultiTermQuery=ot,e.spanMultiTermQuery=_(ot),e.SpanFirstQuery=ut,e.spanFirstQuery=_(ut),e.SpanNearQuery=ct,e.spanNearQuery=_(ct),e.SpanOrQuery=at,e.spanOrQuery=_(at),e.SpanNotQuery=ht,e.spanNotQuery=_(ht),e.SpanContainingQuery=gt,e.spanContainingQuery=_(gt),e.SpanWithinQuery=lt,e.spanWithinQuery=_(lt),e.SpanFieldMaskingQuery=pt,e.spanFieldMaskingQuery=_(pt),e.AvgAggregation=_t,e.avgAggregation=_(_t),e.CardinalityAggregation=ft,e.cardinalityAggregation=_(ft),e.ExtendedStatsAggregation=dt,e.extendedStatsAggregation=_(dt),e.GeoBoundsAggregation=yt,e.geoBoundsAggregation=_(yt),e.GeoCentroidAggregation=mt,e.geoCentroidAggregation=_(mt),e.MaxAggregation=wt,e.maxAggregation=_(wt),e.MinAggregation=xt,e.minAggregation=_(xt),e.PercentilesAggregation=Ot,e.percentilesAggregation=_(Ot),e.PercentileRanksAggregation=bt,e.percentileRanksAggregation=_(bt),e.ScriptedMetricAggregation=St,e.scriptedMetricAggregation=_(St),e.StatsAggregation=vt,e.statsAggregation=_(vt),e.SumAggregation=At,e.sumAggregation=_(At),e.TopHitsAggregation=qt,e.topHitsAggregation=_(qt),e.ValueCountAggregation=Dt,e.valueCountAggregation=_(Dt),e.AdjacencyMatrixAggregation=Tt,e.adjacencyMatrixAggregation=_(Tt),e.ChildrenAggregation=Qt,e.childrenAggregation=_(Qt),e.CompositeAggregation=kt,e.compositeAggregation=_(kt),e.DateHistogramAggregation=Et,e.dateHistogramAggregation=_(Et),e.AutoDateHistogramAggregation=Pt,e.autoDateHistogramAggregation=_(Pt),e.VariableWidthHistogramAggregation=zt,e.variableWidthHistogramAggregation=_(zt),e.DateRangeAggregation=Mt,e.dateRangeAggregation=_(Mt),e.DiversifiedSamplerAggregation=Ft,e.diversifiedSamplerAggregation=_(Ft),e.FilterAggregation=jt,e.filterAggregation=_(jt),e.FiltersAggregation=$t,e.filtersAggregation=_($t),e.GeoDistanceAggregation=Ct,e.geoDistanceAggregation=_(Ct),e.GeoHashGridAggregation=Rt,e.geoHashGridAggregation=_(Rt),e.GeoHexGridAggregation=Nt,e.geoHexGridAggregation=_(Nt),e.GeoTileGridAggregation=Gt,e.geoTileGridAggregation=_(Gt),e.GlobalAggregation=Bt,e.globalAggregation=_(Bt),e.HistogramAggregation=Lt,e.histogramAggregation=_(Lt),e.IpRangeAggregation=Ht,e.ipRangeAggregation=_(Ht),e.MissingAggregation=It,e.missingAggregation=_(It),e.NestedAggregation=Jt,e.nestedAggregation=_(Jt),e.ParentAggregation=Ut,e.parentAggregation=_(Ut),e.RangeAggregation=Wt,e.rangeAggregation=_(Wt),e.RareTermsAggregation=Vt,e.rareTermsAggregation=_(Vt),e.ReverseNestedAggregation=Zt,e.reverseNestedAggregation=_(Zt),e.SamplerAggregation=Kt,e.samplerAggregation=_(Kt),e.SignificantTermsAggregation=Yt,e.significantTermsAggregation=_(Yt),e.SignificantTextAggregation=Xt,e.significantTextAggregation=_(Xt),e.TermsAggregation=te,e.termsAggregation=_(te),e.AvgBucketAggregation=ee,e.avgBucketAggregation=_(ee),e.DerivativeAggregation=re,e.derivativeAggregation=_(re),e.MaxBucketAggregation=se,e.maxBucketAggregation=_(se),e.MinBucketAggregation=ie,e.minBucketAggregation=_(ie),e.BucketSortAggregation=fe,e.bucketSortAggregation=_(fe),e.SumBucketAggregation=ne,e.sumBucketAggregation=_(ne),e.StatsBucketAggregation=oe,e.statsBucketAggregation=_(oe),e.ExtendedStatsBucketAggregation=ue,e.extendedStatsBucketAggregation=_(ue),e.PercentilesBucketAggregation=ce,e.percentilesBucketAggregation=_(ce),e.MovingAverageAggregation=ae,e.movingAverageAggregation=_(ae),e.MovingFunctionAggregation=he,e.movingFunctionAggregation=_(he),e.CumulativeSumAggregation=ge,e.cumulativeSumAggregation=_(ge),e.BucketScriptAggregation=le,e.bucketScriptAggregation=_(le),e.BucketSelectorAggregation=pe,e.bucketSelectorAggregation=_(pe),e.SerialDifferencingAggregation=_e,e.serialDifferencingAggregation=_(_e),e.MatrixStatsAggregation=de,e.matrixStatsAggregation=_(de),e.ScriptScoreFunction=N,e.scriptScoreFunction=_(N),e.WeightScoreFunction=G,e.weightScoreFunction=_(G),e.RandomScoreFunction=B,e.randomScoreFunction=_(B),e.FieldValueFactorFunction=L,e.fieldValueFactorFunction=_(L),e.DecayScoreFunction=H,e.decayScoreFunction=_(H),e.TermSuggester=ye,e.termSuggester=_(ye),e.DirectGenerator=me,e.directGenerator=_(me),e.PhraseSuggester=we,e.phraseSuggester=_(we),e.CompletionSuggester=xe,e.completionSuggester=_(xe),e.recipes=Oe,e.cookMissingQuery=Oe.missingQuery,e.cookRandomSortQuery=Oe.randomSortQuery,e.cookFilterQuery=Oe.filterQuery,e.Highlight=i,e.highlight=_(i),e.Script=n,e.script=_(n),e.GeoPoint=o,e.geoPoint=_(o),e.GeoShape=u,e.geoShape=_(u),e.IndexedShape=c,e.indexedShape=_(c),e.Sort=a,e.sort=_(a),e.Rescore=h,e.rescore=_(h),e.InnerHits=g,e.innerHits=_(g),e.SearchTemplate=l,e.searchTemplate=_(l),e.prettyPrint=function(t){console.log(JSON.stringify(t,null,2))}},function(t,e,r){"use strict";const s=r(5),i=r(0),n=r(7),o=r(12),u=r(33),c=r(34),a=r(35),h=r(23),g=r(24),l=r(37),{checkType:p,setDefault:_,recursiveToJSON:f}=r(6);function d(t){return Object.assign({},...f(t))}t.exports=class{constructor(){this._body={},this._aggs=[],this._suggests=[],this._suggestText=null}query(t){return p(t,o),this._body.query=t,this}agg(t){return this.aggregation(t)}aggregation(t){return p(t,u),this._aggs.push(t),this}aggs(t){return this.aggregations(t)}aggregations(t){return p(t,Array),t.forEach(t=>this.aggregation(t)),this}suggest(t){return p(t,c),this._suggests.push(t),this}suggestText(t){return this._suggestText=t,this}timeout(t){return this._body.timeout=t,this}from(t){return this._body.from=t,this}size(t){return this._body.size=t,this}terminateAfter(t){return this._body.terminate_after=t,this}sort(t){return p(t,h),_(this._body,"sort",[]),this._body.sort.push(t),this}sorts(t){return t.forEach(t=>this.sort(t)),this}trackScores(t){return this._body.track_scores=t,this}trackTotalHits(t){return this._body.track_total_hits=t,this}source(t){return this._body._source=t,this}storedFields(t){return this._body.stored_fields=t,this}scriptField(t,e){return _(this._body,"script_fields",{}),this._body.script_fields[t]={script:e},this}scriptFields(t){return p(t,Object),Object.keys(t).forEach(e=>this.scriptField(e,t[e])),this}docvalueFields(t){return this._body.docvalue_fields=t,this}postFilter(t){return p(t,o),this._body.post_filter=t,this}highlight(t){return p(t,g),this._body.highlight=t,this}rescore(t){return p(t,a),s(this._body,"rescore")?(Array.isArray(this._body.rescore)||(this._body.rescore=[this._body.rescore]),this._body.rescore.push(t)):this._body.rescore=t,this}explain(t){return this._body.explain=t,this}version(t){return this._body.version=t,this}indexBoost(t,e){return this.indicesBoost(t,e)}indicesBoost(t,e){return _(this._body,"indices_boost",[]),this._body.indices_boost.push({[t]:e}),this}minScore(t){return this._body.min_score=t,this}collapse(t,e,r){const s=this._body.collapse={field:t};return i(e)||(p(e,l),s.inner_hits=e,s.max_concurrent_group_searches=r),this}searchAfter(t){return this._body.search_after=t,this}toJSON(){const t=f(this._body);return n(this._aggs)||(t.aggs=d(this._aggs)),n(this._suggests)&&i(this._suggestText)||(t.suggest=d(this._suggests),i(this._suggestText)||(t.suggest.text=this._suggestText)),t}}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){(function(e){var r="Expected a function",s="__lodash_hash_undefined__",i=1/0,n=9007199254740991,o="[object Arguments]",u="[object Function]",c="[object GeneratorFunction]",a="[object Symbol]",h=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/,l=/^\./,p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,y="object"==typeof e&&e&&e.Object===Object&&e,m="object"==typeof self&&self&&self.Object===Object&&self,w=y||m||Function("return this")();var x=Array.prototype,O=Function.prototype,b=Object.prototype,S=w["__core-js_shared__"],v=function(){var t=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),A=O.toString,q=b.hasOwnProperty,D=b.toString,T=RegExp("^"+A.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=w.Symbol,k=b.propertyIsEnumerable,E=x.splice,P=L(w,"Map"),z=L(Object,"create"),M=Q?Q.prototype:void 0,F=M?M.toString:void 0;function j(t){var e=-1,r=t?t.length:0;for(this.clear();++e-1&&t%1==0&&t-1},$.prototype.set=function(t,e){var r=this.__data__,s=R(r,t);return s<0?r.push([t,e]):r[s][1]=e,this},C.prototype.clear=function(){this.__data__={hash:new j,map:new(P||$),string:new j}},C.prototype.delete=function(t){return B(this,t).delete(t)},C.prototype.get=function(t){return B(this,t).get(t)},C.prototype.has=function(t){return B(this,t).has(t)},C.prototype.set=function(t,e){return B(this,t).set(t,e),this};var I=U(function(t){t=function(t){return null==t?"":function(t){if("string"==typeof t)return t;if(tt(t))return F?F.call(t):"";var e=t+"";return"0"==e&&1/t==-i?"-0":e}(t)}(t);var e=[];return l.test(t)&&e.push(""),t.replace(p,function(t,r,s,i){e.push(s?i.replace(_,"$1"):r||t)}),e});function J(t){if("string"==typeof t||tt(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}function U(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(r);var s=function(){var r=arguments,i=e?e.apply(this,r):r[0],n=s.cache;if(n.has(i))return n.get(i);var o=t.apply(this,r);return s.cache=n.set(i,o),o};return s.cache=new(U.Cache||C),s}function W(t,e){return t===e||t!=t&&e!=e}U.Cache=C;var V=Array.isArray;function Z(t){var e=Y(t)?D.call(t):"";return e==u||e==c}function K(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}function Y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function X(t){return!!t&&"object"==typeof t}function tt(t){return"symbol"==typeof t||X(t)&&D.call(t)==a}t.exports=function(t,e){return null!=t&&H(t,e,N)}}).call(this,r(16))},function(t,e,r){"use strict";const s=r(13),i=r(0),{checkType:n}=r(6);t.exports=class{constructor(){this._point=null}_warn(t){console.warn(`[GeoPoint] ${t}`)}_warnMixedRepr(){this._warn("Do not mix with other representation!"),this._warn("Overwriting.")}_checkObjRepr(){i(this._point)?this._point={}:s(this._point)||(this._warnMixedRepr(),this._point={})}lat(t){return this._checkObjRepr(),this._point.lat=t,this}lon(t){return this._checkObjRepr(),this._point.lon=t,this}object(t){return n(t,Object),!i(this._point)&&this._warnMixedRepr(),this._point=t,this}array(t){return n(t,Array),!i(this._point)&&this._warnMixedRepr(),this._point=t,this}string(t){return!i(this._point)&&this._warnMixedRepr(),this._point=t,this}toJSON(){return this._point}}},function(t,e,r){"use strict";const s=r(0),i=r(5),{checkType:n,invalidParam:o}=r(6),{GEO_SHAPE_TYPES:u}=r(17),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-shape.html","type",u);t.exports=class{constructor(t,e){this._body={},s(t)||this.type(t),s(e)||this.coordinates(e)}type(t){s(t)&&c(t);const e=t.toLowerCase();return u.has(e)||c(t),this._body.type=e,this}coordinates(t){return n(t,Array),this._body.coordinates=t,this}radius(t){return this._body.radius=t,this}toJSON(){if(!i(this._body,"type")||!i(this._body,"coordinates"))throw new Error("For all types, both the inner `type` and `coordinates` fields are required.");return this._body}}},function(t,e,r){"use strict";const s=r(0);t.exports=class{constructor(t,e){this._body={},s(t)||(this._body.id=t),s(e)||(this._body.type=e)}id(t){return this._body.id=t,this}type(t){return this._body.type=t,this}index(t){return this._body.index=t,this}path(t){return this._body.path=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),{recursiveToJSON:i}=r(6);t.exports=class{constructor(t,e){if(this._isTypeSet=!1,this._body={},!s(t)&&!s(e)){const r=t.toLowerCase();if("inline"!==r&&"id"!==r&&"indexed"!==r&&"file"!==r)throw new Error("`type` must be one of `inline`, `id`, `indexed`, `file`");this[r](e)}}_warn(t){console.warn(`[SearchTemplate] ${t}`)}_checkMixedRepr(){this._isTypeSet&&(this._warn("Search template source(`inline`/`id`/`file`) was already specified!"),this._warn("Overwriting."),delete this._body.file,delete this._body.id,delete this._body.file)}_setSource(t,e){return this._checkMixedRepr(),this._body[t]=e,this._isTypeSet=!0,this}inline(t){return this._setSource("inline",t)}id(t){return this._setSource("id",t)}indexed(t){return this.id(t)}file(t){return this._setSource("file",t)}params(t){return this._body.params=t,this}toJSON(){return i(this._body)}}},function(t,e,r){"use strict";const{Query:s}=r(1);t.exports=class extends s{constructor(){super("match_all")}}},function(t,e,r){"use strict";const{Query:s}=r(1);t.exports=class extends s{constructor(){super("match_none")}}},function(t,e,r){"use strict";e.FullTextQueryBase=r(18),e.MatchPhraseQueryBase=r(25),e.MonoFieldQueryBase=r(19),e.QueryStringQueryBase=r(26),e.MatchQuery=r(53),e.MatchPhraseQuery=r(54),e.MatchPhrasePrefixQuery=r(55),e.MultiMatchQuery=r(56),e.CommonTermsQuery=r(57),e.QueryStringQuery=r(58),e.SimpleQueryStringQuery=r(59)},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i}}=r(1),n=r(19),{validateRewiteMethod:o}=r(9),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query.html",c=i(u,"operator","'and' or 'or'"),a=i(u,"zero_terms_query","'all' or 'none'");t.exports=class extends n{constructor(t,e){super("match",t,e)}operator(t){s(t)&&c(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&c(t),this._queryOpts.operator=e,this}lenient(t){return this._queryOpts.lenient=t,this}fuzziness(t){return this._queryOpts.fuzziness=t,this}prefixLength(t){return this._queryOpts.prefix_length=t,this}maxExpansions(t){return this._queryOpts.max_expansions=t,this}rewrite(t){return o(t,"rewrite",u),this._queryOpts.rewrite=t,this}fuzzyRewrite(t){return o(t,"fuzzy_rewrite",u),this._queryOpts.fuzzy_rewrite=t,this}fuzzyTranspositions(t){return this._queryOpts.fuzzy_transpositions=t,this}zeroTermsQuery(t){s(t)&&a(t);const e=t.toLowerCase();return"all"!==e&&"none"!==e&&a(t),this._queryOpts.zero_terms_query=e,this}cutoffFrequency(t){return this._queryOpts.cutoff_frequency=t,this}}},function(t,e,r){"use strict";const s=r(25),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query-phrase.html";t.exports=class extends s{constructor(t,e){super("match_phrase",i,t,e)}}},function(t,e,r){"use strict";const s=r(25),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query-phrase-prefix.html";t.exports=class extends s{constructor(t,e){super("match_phrase_prefix",i,t,e)}maxExpansions(t){return this._queryOpts.max_expansions=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i,invalidParam:n},consts:{MULTI_MATCH_TYPE:o}}=r(1),u=r(18),{validateRewiteMethod:c}=r(9),a="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html",h=n(a,"type",o),g=n(a,"operator","'and' or 'or'"),l=n(a,"behavior","'all' or 'none'");t.exports=class extends u{constructor(t,e){super("multi_match",e),this._queryOpts.fields=[],s(t)||(Array.isArray(t)?this.fields(t):this.field(t))}field(t){return this._queryOpts.fields.push(t),this}fields(t){return i(t,Array),this._queryOpts.fields=this._queryOpts.fields.concat(t),this}type(t){s(t)&&h(t);const e=t.toLowerCase();return o.has(e)||h(t),this._queryOpts.type=e,this}tieBreaker(t){return this._queryOpts.tie_breaker=t,this}operator(t){s(t)&&g(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&g(t),this._queryOpts.operator=e,this}lenient(t){return this._queryOpts.lenient=t,this}slop(t){return this._queryOpts.slop=t,this}fuzziness(t){return this._queryOpts.fuzziness=t,this}prefixLength(t){return this._queryOpts.prefix_length=t,this}maxExpansions(t){return this._queryOpts.max_expansions=t,this}rewrite(t){return c(t,"rewrite",a),this._queryOpts.rewrite=t,this}fuzzyRewrite(t){return c(t,"fuzzy_rewrite",a),this._queryOpts.fuzzy_rewrite=t,this}zeroTermsQuery(t){s(t)&&l(t);const e=t.toLowerCase();return"all"!==e&&"none"!==e&&l(t),this._queryOpts.zero_terms_query=t,this}cutoffFrequency(t){return this._queryOpts.cutoff_frequency=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(13),{util:{invalidParam:n,setDefault:o}}=r(1),u=r(19),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-common-terms-query.html",a=n(c,"low_freq_operator","'and' or 'or'"),h=n(c,"high_freq_operator","'and' or 'or'");t.exports=class extends u{constructor(t,e){super("common",t,e)}_warn(t){console.warn(`[CommonTermsQuery] ${t}`)}_warnMixedRepr(){this._warn("Do not mix with other representation!"),this._warn("Overwriting.")}_checkMinMatchRepr(){o(this._queryOpts,"minimum_should_match",{})||i(this._queryOpts.minimum_should_match)||(this._warnMixedRepr(),this._queryOpts.minimum_should_match={})}cutoffFrequency(t){return this._queryOpts.cutoff_frequency=t,this}lowFreqOperator(t){s(t)&&a(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&a(t),this._queryOpts.low_freq_operator=e,this}highFreqOperator(t){s(t)&&h(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&h(t),this._queryOpts.high_freq_operator=e,this}lowFreq(t){return this._checkMinMatchRepr(),this._queryOpts.minimum_should_match.low_freq=t,this}highFreq(t){return this._checkMinMatchRepr(),this._queryOpts.minimum_should_match.high_freq=t,this}disableCoord(t){return this._queryOpts.disable_coord=t,this}}},function(t,e,r){"use strict";const s=r(26),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html";t.exports=class extends s{constructor(t){super("query_string",n,t)}defaultField(t){return this._queryOpts.default_field=t,this}allowLeadingWildcard(t){return this._queryOpts.allow_leading_wildcard=t,this}enablePositionIncrements(t){return this._queryOpts.enable_position_increments=t,this}fuzzyMaxExpansions(t){return this._queryOpts.fuzzy_max_expansions=t,this}fuzziness(t){return this._queryOpts.fuzziness=t,this}fuzzyPrefixLength(t){return this._queryOpts.fuzzy_prefix_length=t,this}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}fuzzyRewrite(t){return i(t,"fuzzy_rewrite",n),this._queryOpts.fuzzy_rewrite=t,this}phraseSlop(t){return this._queryOpts.phrase_slop=t,this}autoGeneratePhraseQueries(t){return this._queryOpts.auto_generate_phrase_queries=t,this}maxDeterminizedStates(t){return this._queryOpts.max_determinized_states=t,this}timeZone(t){return this._queryOpts.time_zone=t,this}splitOnWhitespace(t){return this._queryOpts.split_on_whitespace=t,this}useDisMax(t){return this._queryOpts.use_dis_max=t,this}tieBreaker(t){return this._queryOpts.tie_breaker=t,this}quoteAnalyzer(t){return this._queryOpts.quote_analyzer=t,this}escape(t){return this._queryOpts.escape=t,this}}},function(t,e,r){"use strict";const s=r(26),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html";t.exports=class extends s{constructor(t){super("simple_query_string",i,t)}flags(t){return this._queryOpts.flags=t,this}}},function(t,e,r){"use strict";const s=r(40);t.exports=class extends s{constructor(t,e){super("term",t,e)}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),{Query:n}=r(1);t.exports=class extends n{constructor(t,e){super("terms"),this._isTermsLookup=!1,this._termsLookupOpts={},this._values=[],s(t)||(this._field=t),s(e)||(Array.isArray(e)?this.values(e):this.value(e))}_setTermsLookupOpt(t,e){this._isTermsLookup=!0,this._termsLookupOpts[t]=e}field(t){return this._field=t,this}value(t){return this._values.push(t),this}values(t){return i(t,Array),this._values=this._values.concat(t),this}termsLookup(t){return i(t,Object),this._isTermsLookup=!0,Object.assign(this._termsLookupOpts,t),this}index(t){return this._setTermsLookupOpt("index",t),this}type(t){return this._setTermsLookupOpt("type",t),this}id(t){return this._setTermsLookupOpt("id",t),this}path(t){return this._setTermsLookupOpt("path",t),this}routing(t){return this._setTermsLookupOpt("routing",t),this}toJSON(){return{[this.queryType]:Object.assign({},this._queryOpts,{[this._field]:this._isTermsLookup?this._termsLookupOpts:this._values})}}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e){super("terms_set"),this._queryOpts.terms=[],s(t)||(this._field=t),s(e)||(Array.isArray(e)?this.terms(e):this.term(e))}field(t){return this._field=t,this}term(t){return this._queryOpts.terms.push(t),this}terms(t){return n(t,Array),this._queryOpts.terms=this._queryOpts.terms.concat(t),this}minimumShouldMatchField(t){return this._queryOpts.minimum_should_match_field=t,this}minimumShouldMatchScript(t){return this._queryOpts.minimum_should_match_script=t,this}toJSON(){return{[this.queryType]:{[this._field]:this._queryOpts}}}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{GEO_RELATION_SET:n}}=r(1),o=r(10),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html",c=i(u,"relation",n);t.exports=class extends o{constructor(t){super("range",t)}value(){throw console.log(`Please refer ${u}`),new Error("value is not supported in RangeQuery")}gte(t){return this._queryOpts.gte=t,this}lte(t){return this._queryOpts.lte=t,this}gt(t){return this._queryOpts.gt=t,this}lt(t){return this._queryOpts.lt=t,this}from(t){return this._queryOpts.from=t,this}to(t){return this._queryOpts.to=t,this}includeLower(t){return this._queryOpts.include_lower=t,this}includeUpper(t){return this._queryOpts.include_upper=t,this}timeZone(t){return this._queryOpts.time_zone=t,this}format(t){return this._queryOpts.format=t,this}relation(t){s(t)&&c(t);const e=t.toUpperCase();return n.has(e)||c(t),this._queryOpts.relation=e,this}toJSON(){return{[this.queryType]:{[this._field]:this._queryOpts}}}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t){super("exists"),s(t)||(this._queryOpts.field=t)}field(t){return this._queryOpts.field=t,this}}},function(t,e,r){"use strict";const s=r(10),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-prefix-query.html";t.exports=class extends s{constructor(t,e){super("prefix",t,e)}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}}},function(t,e,r){"use strict";const s=r(10),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html";t.exports=class extends s{constructor(t,e){super("wildcard",t,e)}caseInsensitive(t){return this._queryOpts.case_insensitive=t,this}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}}},function(t,e,r){"use strict";const s=r(10),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-regexp-query.html";t.exports=class extends s{constructor(t,e){super("regexp",t,e)}flags(t){return this._queryOpts.flags=t,this}caseInsensitive(t){return this._queryOpts.case_insensitive=t,this}maxDeterminizedStates(t){return this._queryOpts.max_determinized_states=t,this}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}}},function(t,e,r){"use strict";const s=r(10);t.exports=class extends s{constructor(t,e){super("fuzzy",t,e)}fuzziness(t){return this._queryOpts.fuzziness=t,this}prefixLength(t){return this._queryOpts.prefix_length=t,this}maxExpansions(t){return this._queryOpts.max_expansions=t,this}transpositions(t){return this._queryOpts.transpositions=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t){super("type"),s(t)||(this._queryOpts.value=t)}value(t){return this._queryOpts.value=t,this}type(t){return this.value(t)}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e){super("ids"),s(t)||(this._queryOpts.type=t),s(e)||this.values(e)}type(t){return this._queryOpts.type=t,this}values(t){return n(t,Array),this._queryOpts.values=t,this}ids(t){return this.values(t)}}},function(t,e,r){"use strict";e.scoreFunctions=r(41),e.ConstantScoreQuery=r(77),e.BoolQuery=r(78),e.DisMaxQuery=r(81),e.FunctionScoreQuery=r(82),e.BoostingQuery=r(83)},function(t,e,r){"use strict";const s=r(0),i=r(11);t.exports=class extends i{constructor(t){super("script_score"),s(t)||(this._opts.script=t)}script(t){return this._opts.script=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(11),{util:{recursiveToJSON:n}}=r(1);t.exports=class extends i{constructor(t){super(null),s(t)||(this._body.weight=t)}toJSON(){return n(this._body)}}},function(t,e,r){"use strict";const s=r(11);t.exports=class extends s{constructor(){super("random_score")}seed(t){return this._opts.seed=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{FIELD_MODIFIER_SET:n}}=r(1),o=r(11),u=i("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-field-value-factor","modifier",n);t.exports=class extends o{constructor(t){super("field_value_factor"),s(t)||(this._opts.field=t)}field(t){return this._opts.field=t,this}factor(t){return this._opts.factor=t,this}modifier(t){s(t)&&u(t);const e=t.toLowerCase();return n.has(e)||u(t),this._opts.modifier=e,this}missing(t){return this._opts.missing=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i,recursiveToJSON:n}}=r(1),o=r(11),u=i("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-decay","mode","'linear', 'exp' or 'gauss'");t.exports=class extends o{constructor(t="gauss",e){super(t),s(e)||(this._field=e)}mode(t){s(t)&&u(t);const e=t.toLowerCase();return"linear"!==e&&"exp"!==e&&"gauss"!==e&&u(t),this._name=t,this}linear(){return this._name="linear",this}exp(){return this._name="exp",this}gauss(){return this._name="gauss",this}field(t){return this._field=t,this}origin(t){return this._opts.origin=t,this}scale(t){return this._opts.scale=t,this}offset(t){return this._opts.offset=t,this}decay(t){return this._opts.decay=t,this}toJSON(){const t=Object.assign({[this._name]:{[this._field]:this._opts}},this._body);return n(t)}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t){super("constant_score"),s(t)||this.filter(t)}filter(t){return n(t,i),this._queryOpts.filter=t,this}query(t){return this.filter(t)}}},function(t,e,r){"use strict";const s=r(5),i=r(79),n=r(80),{Query:o,util:{checkType:u,setDefault:c,recursiveToJSON:a}}=r(1);t.exports=class extends o{constructor(){super("bool")}_addQuery(t,e){u(e,o),this._queryOpts[t].push(e)}_addQueries(t,e){c(this._queryOpts,t,[]),Array.isArray(e)?e.forEach(e=>this._addQuery(t,e)):this._addQuery(t,e)}must(t){return this._addQueries("must",t),this}filter(t){return this._addQueries("filter",t),this}mustNot(t){return this._addQueries("must_not",t),this}should(t){return this._addQueries("should",t),this}disableCoord(t){return this._queryOpts.disable_coord=t,this}minimumShouldMatch(t){return this._queryOpts.minimum_should_match=t,this}adjustPureNegative(t){return this._queryOpts.adjust_pure_negative=t,this}toJSON(){const t=["must","filter","must_not","should"],e=t.filter(t=>s(this._queryOpts,t)).reduce((t,e)=>{const r=this._queryOpts[e];return t[e]=a(1===r.length?i(r):r),t},n(this._queryOpts,t));return{[this.queryType]:e}}}},function(t,e){t.exports=function(t){return t&&t.length?t[0]:void 0}},function(t,e,r){(function(e){var r=200,s="__lodash_hash_undefined__",i=1/0,n=9007199254740991,o="[object Arguments]",u="[object Function]",c="[object GeneratorFunction]",a="[object Symbol]",h=/^\[object .+?Constructor\]$/,g=/^(?:0|[1-9]\d*)$/,l="object"==typeof e&&e&&e.Object===Object&&e,p="object"==typeof self&&self&&self.Object===Object&&self,_=l||p||Function("return this")();function f(t,e){return!!(t?t.length:0)&&function(t,e,r){if(e!=e)return function(t,e,r,s){var i=t.length,n=r+(s?1:-1);for(;s?n--:++n-1}function d(t,e,r){for(var s=-1,i=t?t.length:0;++s-1},G.prototype.set=function(t,e){var r=this.__data__,s=I(r,t);return s<0?r.push([t,e]):r[s][1]=e,this},B.prototype.clear=function(){this.__data__={hash:new N,map:new(C||G),string:new N}},B.prototype.delete=function(t){return V(this,t).delete(t)},B.prototype.get=function(t){return V(this,t).get(t)},B.prototype.has=function(t){return V(this,t).has(t)},B.prototype.set=function(t,e){return V(this,t).set(t,e),this},L.prototype.add=L.prototype.push=function(t){return this.__data__.set(t,s),this},L.prototype.has=function(t){return this.__data__.has(t)};var K=j?O(j,Object):gt,Y=j?function(t){for(var e=[];t;)m(e,K(t)),t=P(t);return e}:gt;function X(t){return it(t)||st(t)||!!(F&&t&&t[F])}function tt(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||g.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=n}(t.length)&&!ot(t)}function ot(t){var e=ut(t)?Q.call(t):"";return e==u||e==c}function ut(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ct(t){return!!t&&"object"==typeof t}function at(t){return nt(t)?H(t,!0):U(t)}var ht=function(t,e){return e=$(void 0===e?t.length-1:e,0),function(){for(var r=arguments,s=-1,i=$(r.length-e,0),n=Array(i);++s0&&s(c)?r>1?t(c,r-1,s,i,n):m(n,c):i||(n[n.length]=c)}return n}(e,1),et),function(t,e){return function(t,e,r){for(var s=-1,i=e.length,n={};++s=r&&(o=x,u=!1,e=new L(e));t:for(;++nthis._addQuery(t)):this._addQuery(t),this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n,invalidParam:o},consts:{SCORE_MODE_SET:u,BOOST_MODE_SET:c}}=r(1),{ScoreFunction:a}=r(41),h="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html",g=o(h,"score_mode",u),l=o(h,"boost_mode",c);t.exports=class extends i{constructor(){super("function_score"),this._queryOpts.functions=[]}query(t){return n(t,i),this._queryOpts.query=t,this}scoreMode(t){s(t)&&g(t);const e=t.toLowerCase();return u.has(e)||g(t),this._queryOpts.score_mode=t,this}boostMode(t){s(t)&&l(t);const e=t.toLowerCase();return c.has(e)||l(t),this._queryOpts.boost_mode=e,this}maxBoost(t){return this._queryOpts.max_boost=t,this}minScore(t){return this._queryOpts.min_score=t,this}function(t){return n(t,a),this._queryOpts.functions.push(t),this}functions(t){return n(t,Array),t.forEach(t=>this.function(t)),this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e,r){super("boosting"),s(t)||this.positive(t),s(e)||this.negative(e),s(r)||(this._queryOpts.negative_boost=r)}positive(t){return n(t,i),this._queryOpts.positive=t,this}negative(t){return n(t,i),this._queryOpts.negative=t,this}negativeBoost(t){return this._queryOpts.negative_boost=t,this}}},function(t,e,r){"use strict";e.JoiningQueryBase=r(20),e.NestedQuery=r(85),e.HasChildQuery=r(86),e.HasParentQuery=r(87),e.ParentIdQuery=r(88)},function(t,e,r){"use strict";const s=r(0),i=r(20),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-nested-query.html";t.exports=class extends i{constructor(t,e){super("nested",n,t),s(e)||(this._queryOpts.path=e)}path(t){return this._queryOpts.path=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(20),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-has-child-query.html";t.exports=class extends i{constructor(t,e){super("has_child",n,t),s(e)||(this._queryOpts.type=e)}type(t){return this._queryOpts.type=t,this}childType(t){return console.warn("[HasChildQuery] Field `child_type` is deprecated. Use `type` instead."),this.type(t)}minChildren(t){return this._queryOpts.min_children=t,this}maxChildren(t){return this._queryOpts.max_children=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(20),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-has-parent-query.html";t.exports=class extends i{constructor(t,e){super("has_parent",n,t),s(e)||(this._queryOpts.parent_type=e)}scoreMode(){throw console.log("`score_mode` is deprecated. Use `score` instead"),console.log(`Please refer ${n}`),new Error("scoreMode is not supported in HasParentQuery")}type(t){return this.parentType(t)}parentType(t){return this._queryOpts.parent_type=t,this}score(t){return this._queryOpts.score=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t,e){super("parent_id"),s(t)||(this._queryOpts.type=t),s(e)||(this._queryOpts.id=e)}type(t){return this._queryOpts.type=t,this}id(t){return this._queryOpts.id=t,this}ignoreUnmapped(t){return this._queryOpts.ignore_unmapped=t,this}}},function(t,e,r){"use strict";e.GeoQueryBase=r(14),e.GeoShapeQuery=r(90),e.GeoBoundingBoxQuery=r(91),e.GeoDistanceQuery=r(92),e.GeoPolygonQuery=r(93)},function(t,e,r){"use strict";const s=r(0),{GeoShape:i,IndexedShape:n,util:{checkType:o,invalidParam:u},consts:{GEO_RELATION_SET:c}}=r(1),a=r(14),h="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-shape-query.html",g=u(h,"relation",c);t.exports=class extends a{constructor(t){super("geo_shape",t)}validationMethod(){throw console.log(`Please refer ${h}`),new Error("validationMethod is not supported in GeoShapeQuery")}shape(t){return o(t,i),this._fieldOpts.shape=t,this}indexedShape(t){return o(t,n),this._fieldOpts.indexed_shape=t,this}relation(t){s(t)&&g(t);const e=t.toUpperCase();return c.has(e)||g(t),this._fieldOpts.relation=e,this}ignoreUnmapped(t){return this._queryOpts.ignore_unmapped=t,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,invalidParam:o}}=r(1),u=r(14),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-bounding-box-query.html","type","'memory' or 'indexed'");t.exports=class extends u{constructor(t){super("geo_bounding_box",t)}topLeft(t){return n(t,i),this._fieldOpts.top_left=t,this}bottomRight(t){return n(t,i),this._fieldOpts.bottom_right=t,this}topRight(t){return n(t,i),this._fieldOpts.top_right=t,this}bottomLeft(t){return n(t,i),this._fieldOpts.bottom_left=t,this}top(t){return this._fieldOpts.top=t,this}left(t){return this._fieldOpts.left=t,this}bottom(t){return this._fieldOpts.bottom=t,this}right(t){return this._fieldOpts.right=t,this}type(t){s(t)&&c(t);const e=t.toLowerCase();return"memory"!==e&&"indexed"!==e&&c(t),this._queryOpts.type=e,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,invalidParam:o}}=r(1),u=r(14),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-distance-query.html","distance_type","'plane' or 'arc'");t.exports=class extends u{constructor(t,e){super("geo_distance",t),s(e)||this.geoPoint(e)}distance(t){return this._queryOpts.distance=t,this}distanceType(t){s(t)&&c(t);const e=t.toLowerCase();return"plane"!==e&&"arc"!==e&&c(t),this._queryOpts.distance_type=e,this}geoPoint(t){return n(t,i),this._fieldOpts=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(14);t.exports=class extends i{constructor(t){super("geo_polygon",t)}points(t){return s(t,Array),this._fieldOpts.points=t,this}}},function(t,e,r){"use strict";e.MoreLikeThisQuery=r(95),e.ScriptQuery=r(96),e.ScriptScoreQuery=r(97),e.PercolateQuery=r(98),e.DistanceFeatureQuery=r(99),e.RankFeatureQuery=r(100)},function(t,e,r){"use strict";const s=r(5),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(){super("more_like_this")}_setSearchClause(t,e){Array.isArray(e)?this._queryOpts[t]=e:s(this._queryOpts,t)?(Array.isArray(this._queryOpts[t])||(this._queryOpts[t]=[this._queryOpts[t]]),this._queryOpts[t].push(e)):this._queryOpts[t]=e}fields(t){return n(t,Array),this._queryOpts.fields=t,this}like(t){return this._setSearchClause("like",t),this}unlike(t){return this._setSearchClause("unlike",t),this}likeText(t){return this._queryOpts.like_text=t,this}ids(t){return n(t,Array),this._queryOpts.ids=t,this}docs(t){return n(t,Array),this._queryOpts.docs=t,this}maxQueryTerms(t){return this._queryOpts.max_query_terms=t,this}minTermFreq(t){return this._queryOpts.min_term_freq=t,this}minDocFreq(t){return this._queryOpts.min_doc_freq=t,this}maxDocFreq(t){return this._queryOpts.max_doc_freq=t,this}minWordLength(t){return this._queryOpts.min_word_length=t,this}maxWordLength(t){return this._queryOpts.max_word_length=t,this}stopWords(t){return this._queryOpts.stop_words=t,this}analyzer(t){return this._queryOpts.analyzer=t,this}minimumShouldMatch(t){return this._queryOpts.minimum_should_match=t,this}boostTerms(t){return this._queryOpts.boost_terms=t,this}include(t){return this._queryOpts.include=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,Script:n,util:{checkType:o}}=r(1);t.exports=class extends i{constructor(t){super("script"),s(t)||this.script(t)}script(t){return o(t,n),this._queryOpts.script=t,this}}},function(t,e,r){"use strict";const{Query:s,Script:i,util:{checkType:n}}=r(1);t.exports=class extends s{constructor(){super("script_score")}query(t){return n(t,s),this._queryOpts.query=t,this}script(t){return n(t,i),this._queryOpts.script=t,this}minScore(t){return this._queryOpts.min_score=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i},Query:n}=r(1);t.exports=class extends n{constructor(t,e){super("percolate"),this._queryOpts.documents=[],s(t)||(this._queryOpts.field=t),s(e)||(this._queryOpts.document_type=e)}field(t){return this._queryOpts.field=t,this}documentType(t){return this._queryOpts.document_type=t,this}document(t){return this._queryOpts.documents.push(t),this}documents(t){return i(t,Array),this._queryOpts.documents=this._queryOpts.documents.concat(t),this}index(t){return this._queryOpts.index=t,this}type(t){return this._queryOpts.type=t,this}id(t){return this._queryOpts.id=t,this}routing(t){return this._queryOpts.routing=t,this}preference(t){return this._queryOpts.preference=t,this}version(t){return this._queryOpts.version=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t){super("distance_feature"),s(t)||(this._queryOpts.field=t)}field(t){return this._queryOpts.field=t,this}origin(t){return this._queryOpts.origin=t,this}pivot(t){return this._queryOpts.pivot=t,this}}},function(t,e,r){"use strict";const{Query:s}=r(1),i=r(0);t.exports=class extends s{constructor(t){super("rank_feature"),i(t)||(this._queryOpts.field=t)}field(t){return this._queryOpts.field=t,this}linear(){return this._queryOpts.linear={},this}saturation(){return this._queryOpts.saturation={},this}saturationPivot(t){return this._queryOpts.saturation={},this._queryOpts.saturation.pivot=t,this}log(t){return this._queryOpts.log={},this._queryOpts.log.scaling_factor=t,this}sigmoid(t,e){return this._queryOpts.sigmoid={},this._queryOpts.sigmoid.pivot=t,this._queryOpts.sigmoid.exponent=e,this}}},function(t,e,r){"use strict";e.SpanLittleBigQueryBase=r(27),e.SpanTermQuery=r(102),e.SpanMultiTermQuery=r(103),e.SpanFirstQuery=r(104),e.SpanNearQuery=r(105),e.SpanOrQuery=r(106),e.SpanNotQuery=r(107),e.SpanContainingQuery=r(108),e.SpanWithinQuery=r(109),e.SpanFieldMaskingQuery=r(110)},function(t,e,r){"use strict";const s=r(5),i=r(0),n=r(8);t.exports=class extends n{constructor(t,e){super("span_term"),i(t)||(this._field=t),i(e)||(this._queryOpts.value=e)}field(t){return this._field=t,this}value(t){return this._queryOpts.value=t,this}toJSON(){if(!s(this._queryOpts,"value"))throw new Error("Value is required for Span term query!");const t=1===Object.keys(this._queryOpts).length?this._queryOpts.value:this._queryOpts;return{[this.queryType]:{[this._field]:t}}}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),{MultiTermQueryBase:n}=r(39),o=r(8);t.exports=class extends o{constructor(t){super("span_multi"),s(t)||this.match(t)}match(t){return i(t,n),this._queryOpts.match=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),n=r(8);t.exports=class extends n{constructor(t){super("span_first"),s(t)||this.match(t)}match(t){return i(t,n),this._queryOpts.match=t,this}end(t){return this._queryOpts.end=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{constructor(){super("span_near")}clauses(t){return s(t,Array),t.forEach(t=>s(t,i)),this._queryOpts.clauses=t,this}slop(t){return this._queryOpts.slop=t,this}inOrder(t){return this._queryOpts.in_order=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{constructor(){super("span_or")}clauses(t){return s(t,Array),t.forEach(t=>s(t,i)),this._queryOpts.clauses=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{constructor(){super("span_not")}include(t){return s(t,i),this._queryOpts.include=t,this}exclude(t){return s(t,i),this._queryOpts.exclude=t,this}pre(t){return this._queryOpts.pre=t,this}post(t){return this._queryOpts.post=t,this}dist(t){return this._queryOpts.dist=t,this}}},function(t,e,r){"use strict";const s=r(27);t.exports=class extends s{constructor(){super("span_containing")}}},function(t,e,r){"use strict";const s=r(27);t.exports=class extends s{constructor(){super("span_within")}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),n=r(8);t.exports=class extends n{constructor(t,e){super("field_masking_span"),s(t)||(this._queryOpts.field=t),s(e)||this.query(e)}query(t){return i(t,n),this._queryOpts.query=t,this}field(t){return this._queryOpts.field=t,this}}},function(t,e,r){"use strict";e.metricsAggregations=r(112),e.bucketAggregations=r(127),e.pipelineAggregations=r(159),e.matrixAggregations=r(175)},function(t,e,r){"use strict";e.MetricsAggregationBase=r(4),e.AvgAggregation=r(113),e.CardinalityAggregation=r(114),e.ExtendedStatsAggregation=r(115),e.GeoBoundsAggregation=r(116),e.GeoCentroidAggregation=r(117),e.MaxAggregation=r(118),e.MinAggregation=r(119),e.PercentilesAggregation=r(120),e.PercentileRanksAggregation=r(121),e.ScriptedMetricAggregation=r(122),e.StatsAggregation=r(123),e.SumAggregation=r(124),e.TopHitsAggregation=r(125),e.ValueCountAggregation=r(126)},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"avg",e)}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-cardinality-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"cardinality",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in CardinalityAggregation")}precisionThreshold(t){return this._aggsDef.precision_threshold=t,this}}},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"extended_stats",e)}sigma(t){return this._aggsDef.sigma=t,this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-geobounds-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"geo_bounds",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in GeoBoundsAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in GeoBoundsAggregation")}wrapLongitude(t){return this._aggsDef.wrap_longitude=t,this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-geocentroid-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"geo_centroid",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in GeoCentroidAggregation")}}},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"max",e)}}},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"min",e)}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(4);t.exports=class extends i{constructor(t,e){super(t,"percentiles",e)}keyed(t){return this._aggsDef.keyed=t,this}percents(t){return s(t,Array),this._aggsDef.percents=t,this}tdigest(t){return this._aggsDef.tdigest={compression:t},this}compression(t){return this._aggsDef.tdigest={compression:t},this}hdr(t){return this._aggsDef.hdr={number_of_significant_value_digits:t},this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),n=r(4),o="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-percentile-rank-aggregation.html";t.exports=class extends n{constructor(t,e,r){super(t,"percentile_ranks",e),s(r)||this.values(r)}format(){throw console.log(`Please refer ${o}`),new Error("format is not supported in PercentileRanksAggregation")}keyed(t){return this._aggsDef.keyed=t,this}values(t){return i(t,Array),this._aggsDef.values=t,this}tdigest(t){return this._aggsDef.tdigest={compression:t},this}compression(t){return this.tdigest(t)}hdr(t){return this._aggsDef.hdr={number_of_significant_value_digits:t},this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-scripted-metric-aggregation.html";t.exports=class extends s{constructor(t){super(t,"scripted_metric")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in ScriptedMetricAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in ScriptedMetricAggregation")}missing(){throw console.log(`Please refer ${i}`),new Error("missing is not supported in ScriptedMetricAggregation")}initScript(t){return this._aggsDef.init_script=t,this}mapScript(t){return this._aggsDef.map_script=t,this}combineScript(t){return this._aggsDef.combine_script=t,this}reduceScript(t){return this._aggsDef.reduce_script=t,this}params(t){return this._aggsDef.params=t,this}}},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"stats",e)}}},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"sum",e)}}},function(t,e,r){"use strict";const s=r(4),{Highlight:i,Sort:n,util:{checkType:o,setDefault:u}}=r(1),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-top-hits-aggregation.html";t.exports=class extends s{constructor(t){super(t,"top_hits")}field(){throw console.log(`Please refer ${c}`),new Error("field is not supported in TopHitsAggregation")}script(){throw console.log(`Please refer ${c}`),new Error("script is not supported in TopHitsAggregation")}missing(){throw console.log(`Please refer ${c}`),new Error("missing is not supported in TopHitsAggregation")}format(){throw console.log(`Please refer ${c}`),new Error("format is not supported in TopHitsAggregation")}from(t){return this._aggsDef.from=t,this}size(t){return this._aggsDef.size=t,this}sort(t){return o(t,n),u(this._aggsDef,"sort",[]),this._aggsDef.sort.push(t),this}sorts(t){return t.forEach(t=>this.sort(t)),this}trackScores(t){return this._aggsDef.track_scores=t,this}version(t){return this._aggsDef.version=t,this}explain(t){return this._aggsDef.explain=t,this}highlight(t){return o(t,i),this._aggsDef.highlight=t,this}source(t){return this._aggsDef._source=t,this}storedFields(t){return this._aggsDef.stored_fields=t,this}scriptField(t,e){return u(this._aggsDef,"script_fields",{}),this._aggsDef.script_fields[t]={script:e},this}scriptFields(t){return o(t,Object),Object.keys(t).forEach(e=>this.scriptField(e,t[e])),this}docvalueFields(t){return this._aggsDef.docvalue_fields=t,this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-valuecount-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"value_count",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in ValueCountAggregation")}}},function(t,e,r){"use strict";e.BucketAggregationBase=r(2),e.HistogramAggregationBase=r(28),e.RangeAggregationBase=r(15),e.TermsAggregationBase=r(29),e.SignificantAggregationBase=r(30),e.AdjacencyMatrixAggregation=r(128),e.ChildrenAggregation=r(129),e.CompositeAggregation=r(130),e.DateHistogramAggregation=r(135),e.AutoDateHistogramAggregation=r(136),e.VariableWidthHistogramAggregation=r(137),e.DateRangeAggregation=r(138),e.DiversifiedSamplerAggregation=r(139),e.FilterAggregation=r(140),e.FiltersAggregation=r(141),e.GeoDistanceAggregation=r(142),e.GeoHashGridAggregation=r(143),e.GeoHexGridAggregation=r(144),e.GeoTileGridAggregation=r(145),e.GlobalAggregation=r(146),e.HistogramAggregation=r(147),e.IpRangeAggregation=r(148),e.MissingAggregation=r(149),e.NestedAggregation=r(150),e.ParentAggregation=r(151),e.RangeAggregation=r(152),e.RareTermsAggregation=r(153),e.ReverseNestedAggregation=r(154),e.SamplerAggregation=r(155),e.SignificantTermsAggregation=r(156),e.SignificantTextAggregation=r(157),e.TermsAggregation=r(158)},function(t,e,r){"use strict";const{Query:s,util:{checkType:i,setDefault:n}}=r(1),o=r(2),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-adjacency-matrix-aggregation.html";t.exports=class extends o{constructor(t){super(t,"adjacency_matrix")}field(){throw console.log(`Please refer ${u}`),new Error("field is not supported in AdjacencyMatrixAggregation")}script(){throw console.log(`Please refer ${u}`),new Error("script is not supported in AdjacencyMatrixAggregation")}filter(t,e){return i(e,s),n(this._aggsDef,"filters",{}),this._aggsDef.filters[t]=e,this}filters(t){return i(t,Object),n(this._aggsDef,"filters",{}),Object.assign(this._aggsDef.filters,t),this}separator(t){return this._aggsDef.separator=t,this}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-children-aggregation.html";t.exports=class extends s{constructor(t){super(t,"children")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in ChildrenAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in ChildrenAggregation")}type(t){return this._aggsDef.type=t,this}}},function(t,e,r){"use strict";const{Aggregation:s,util:{checkType:i,constructorWrapper:n}}=r(1),{ValuesSourceBase:o,TermsValuesSource:u,HistogramValuesSource:c,DateHistogramValuesSource:a}=r(131);class h extends s{constructor(t){super(t,"composite"),this._aggsDef.sources=[]}sources(...t){return t.forEach(t=>i(t,o)),this._aggsDef.sources=this._aggsDef.sources.concat(t),this}size(t){return this._aggsDef.size=t,this}after(t){return this._aggsDef.after=t,this}}h.TermsValuesSource=u,h.termsValuesSource=n(u),h.HistogramValuesSource=c,h.histogramValuesSource=n(c),h.DateHistogramValuesSource=a,h.dateHistogramValuesSource=n(a),t.exports=h},function(t,e,r){"use strict";e.ValuesSourceBase=r(21),e.TermsValuesSource=r(132),e.HistogramValuesSource=r(133),e.DateHistogramValuesSource=r(134)},function(t,e,r){"use strict";const s=r(21),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html#_terms";t.exports=class extends s{constructor(t,e){super("terms",i,t,e)}}},function(t,e,r){"use strict";const s=r(0),i=r(21),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html#_histogram";t.exports=class extends i{constructor(t,e,r){super("histogram",n,t,e),s(r)||(this._opts.interval=r)}interval(t){return this._opts.interval=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(21),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html#_date_histogram";t.exports=class extends i{constructor(t,e,r){super("date_histogram",n,t,e),s(r)||(this._opts.interval=r)}interval(t){return this._opts.interval=t,this}calendarInterval(t){return this._opts.calendar_interval=t,this}fixedInterval(t){return this._opts.fixed_interval=t,this}timeZone(t){return this._opts.time_zone=t,this}format(t){return this._opts.format=t,this}}},function(t,e,r){"use strict";const s=r(28);t.exports=class extends s{constructor(t,e,r){super(t,"date_histogram",e,r)}timeZone(t){return this._aggsDef.time_zone=t,this}calendarInterval(t){return this._aggsDef.calendar_interval=t,this}fixedInterval(t){return this._aggsDef.fixed_interval=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2);t.exports=class extends i{constructor(t,e,r){super(t,"auto_date_histogram",e),s(r)||(this._aggsDef.buckets=r)}buckets(t){return this._aggsDef.buckets=t,this}minimumInterval(t){return this._aggsDef.minimum_interval=t,this}format(t){return this._aggsDef.format=t,this}missing(t){return this._aggsDef.missing=t,this}timeZone(t){return this._aggsDef.time_zone=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2);t.exports=class extends i{constructor(t,e,r){super(t,"variable_width_histogram",e),s(r)||(this._aggsDef.buckets=r)}buckets(t){return this._aggsDef.buckets=t,this}}},function(t,e,r){"use strict";const s=r(15);t.exports=class extends s{constructor(t,e){super(t,"date_range",e)}timeZone(t){return this._aggsDef.time_zone=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{EXECUTION_HINT_SET:n}}=r(1),o=r(2),u=i("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-diversified-sampler-aggregation.html","execution_hint",n);t.exports=class extends o{constructor(t,e){super(t,"diversified_sampler",e)}shardSize(t){return this._aggsDef.shard_size=t,this}maxDocsPerValue(t){return this._aggsDef.max_docs_per_value=t,this}executionHint(t){s(t)&&u(t);const e=t.toLowerCase();return n.has(e)||u(t),this._aggsDef.execution_hint=e,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1),o=r(2),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-filter-aggregation.html";t.exports=class extends o{constructor(t,e){super(t,"filter"),s(e)||this.filter(e)}field(){throw console.log(`Please refer ${u}`),new Error("field is not supported in FilterAggregation")}script(){throw console.log(`Please refer ${u}`),new Error("script is not supported in FilterAggregation")}filter(t){return n(t,i),this._aggsDef=this._aggs[this.aggType]=t,this}}},function(t,e,r){"use strict";const s=r(7),{Query:i,util:{checkType:n,setDefault:o}}=r(1),u=r(2),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-filters-aggregation.html";t.exports=class extends u{constructor(t){super(t,"filters")}field(){throw console.log(`Please refer ${c}`),new Error("field is not supported in FiltersAggregation")}script(){throw console.log(`Please refer ${c}`),new Error("script is not supported in FiltersAggregation")}_warn(t){console.warn(`[FiltersAggregation] ${t}`)}_checkNamedFilters(){!o(this._aggsDef,"filters",{})&&Array.isArray(this._aggsDef.filters)&&(this._warn("Do not mix named and anonymous filters!"),this._warn("Overwriting anonymous filters."),this._aggsDef.filters={})}_checkAnonymousFilters(){o(this._aggsDef,"filters",[])||Array.isArray(this._aggsDef.filters)||(this._warn("Do not mix named and anonymous filters!"),this._warn("Overwriting named filters."),this._aggsDef.filters=[])}filter(t,e){return n(e,i),this._checkNamedFilters(),this._aggsDef.filters[t]=e,this}filters(t){return n(t,Object),this._checkNamedFilters(),Object.assign(this._aggsDef.filters,t),this}anonymousFilter(t){return n(t,i),this._checkAnonymousFilters(),this._aggsDef.filters.push(t),this}anonymousFilters(t){return n(t,Array),this._checkAnonymousFilters(),this._aggsDef.filters=this._aggsDef.filters.concat(t),this}otherBucket(t,e){return this._aggsDef.other_bucket=t,!s(e)&&this.otherBucketKey(e),this}otherBucketKey(t){return this._aggsDef.other_bucket_key=t,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,invalidParam:o},consts:{UNIT_SET:u}}=r(1),c=r(15),a="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geodistance-aggregation.html",h=o(a,"unit",u),g=o(a,"distance_type","'plane' or 'arc'");t.exports=class extends c{constructor(t,e){super(t,"geo_distance",e)}format(){throw console.log(`Please refer ${a}`),new Error("format is not supported in GeoDistanceAggregation")}script(){throw console.log(`Please refer ${a}`),new Error("script is not supported in GeoDistanceAggregation")}origin(t){return n(t,i),this._aggsDef.origin=t,this}unit(t){return u.has(t)||h(t),this._aggsDef.unit=t,this}distanceType(t){s(t)&&g(t);const e=t.toLowerCase();return"plane"!==e&&"arc"!==e&&g(t),this._aggsDef.distance_type=e,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geohashgrid-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"geohash_grid",e)}format(){throw console.log(`Please refer ${n}`),new Error("format is not supported in GeoHashGridAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in GeoHashGridAggregation")}precision(t){if(s(t)||t<1||t>12)throw new Error("`precision` can only be value from 1 to 12.");return this._aggsDef.precision=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geohexgrid-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"geohex_grid",e)}format(){throw console.log(`Please refer ${n}`),new Error("format is not supported in GeoHexGridAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in GeoHexGridAggregation")}precision(t){if(s(t)||t<0||t>15)throw new Error("`precision` can only be value from 0 to 15.");return this._aggsDef.precision=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,setDefault:o}}=r(1),u=r(2),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geotilegrid-aggregation.html";t.exports=class extends u{constructor(t,e){super(t,"geotile_grid",e)}format(){throw console.log(`Please refer ${c}`),new Error("format is not supported in GeoTileGridAggregation")}script(){throw console.log(`Please refer ${c}`),new Error("script is not supported in GeoTileGridAggregation")}precision(t){if(s(t)||t<0||t>29)throw new Error("`precision` can only be value from 0 to 29.");return this._aggsDef.precision=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}topLeft(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.top_left=t,this}bottomRight(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.bottom_right=t,this}topRight(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.top_right=t,this}bottomLeft(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.bottom_left=t,this}top(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.top=t,this}left(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.left=t,this}bottom(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.bottom=t,this}right(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.right=t,this}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-global-aggregation.html";t.exports=class extends s{constructor(t){super(t,"global")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in GlobalAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in GlobalAggregation")}}},function(t,e,r){"use strict";const s=r(28);t.exports=class extends s{constructor(t,e,r){super(t,"histogram",e,r)}}},function(t,e,r){"use strict";const s=r(15),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-iprange-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"ip_range",e),this._rangeRequiredKeys=["from","to","mask"]}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in IpRangeAggregation")}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-missing-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"missing",e)}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in MissingAggregation")}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-nested-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"nested"),s(e)||(this._aggsDef.path=e)}field(){throw console.log(`Please refer ${n}`),new Error("field is not supported in NestedAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in NestedAggregation")}path(t){return this._aggsDef.path=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-parent-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"parent"),s(e)||this.type(e)}field(){throw console.log(`Please refer ${n}`),new Error("field is not supported in ParentAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in ParentAggregation")}type(t){return this._aggsDef.type=t,this}}},function(t,e,r){"use strict";const s=r(15);t.exports=class extends s{constructor(t,e){super(t,"range",e)}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-rare-terms-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"rare_terms",e)}maxDocCount(t){if(s(t)||t<1||t>100)throw new Error("`maxDocCount` can only be value from 1 to 100.");return this._aggsDef.max_doc_count=t,this}precision(t){if(t<1e-5)throw new Error("`precision` must be greater than 0.00001.");return this._aggsDef.precision=t,this}include(t){return this._aggsDef.include=t,this}exclude(t){return this._aggsDef.exclude=t,this}missing(t){return this._aggsDef.missing=t,this}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in RareTermsAggregation")}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-reverse-nested-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"reverse_nested"),s(e)||(this._aggsDef.path=e)}field(){throw console.log(`Please refer ${n}`),new Error("field is not supported in ReverseNestedAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in ReverseNestedAggregation")}path(t){return this._aggsDef.path=t,this}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-sampler-aggregation.html";t.exports=class extends s{constructor(t){super(t,"sampler")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in SamplerAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in SamplerAggregation")}shardSize(t){return this._aggsDef.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(30),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-significantterms-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"significant_terms",i,e)}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(30),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-significanttext-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"significant_text",n,e)}filterDuplicateText(t){return this._aggsDef.filter_duplicate_text=t,this}sourceFields(t){return s(t,Array),this._aggsDef.source_fields=t,this}missing(){throw console.log(`Please refer ${n}`),new Error("missing is not supported in SignificantTextAggregation")}executionHint(){throw console.log(`Please refer ${n}`),new Error("executionHint is not supported in SignificantTextAggregation")}}},function(t,e,r){"use strict";const s=r(5),i=r(0),{util:{invalidParam:n}}=r(1),o=r(29),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html",c=n(u,"direction","'asc' or 'desc'"),a=n(u,"mode","'breadth_first' or 'depth_first'");t.exports=class extends o{constructor(t,e){super(t,"terms",u,e)}showTermDocCountError(t){return this._aggsDef.show_term_doc_count_error=t,this}includePartition(t,e){return this._aggsDef.include={partition:t,num_partitions:e},this}collectMode(t){i(t)&&a(t);const e=t.toLowerCase();return"breadth_first"!==e&&"depth_first"!==e&&a(t),this._aggsDef.collect_mode=e,this}order(t,e="desc"){i(e)&&c(e);const r=e.toLowerCase();return"asc"!==r&&"desc"!==r&&c(e),s(this._aggsDef,"order")?(Array.isArray(this._aggsDef.order)||(this._aggsDef.order=[this._aggsDef.order]),this._aggsDef.order.push({[t]:r})):this._aggsDef.order={[t]:r},this}}},function(t,e,r){"use strict";e.PipelineAggregationBase=r(3),e.AvgBucketAggregation=r(160),e.DerivativeAggregation=r(161),e.MaxBucketAggregation=r(162),e.MinBucketAggregation=r(163),e.SumBucketAggregation=r(164),e.StatsBucketAggregation=r(165),e.ExtendedStatsBucketAggregation=r(166),e.PercentilesBucketAggregation=r(167),e.MovingAverageAggregation=r(168),e.MovingFunctionAggregation=r(169),e.CumulativeSumAggregation=r(170),e.BucketScriptAggregation=r(171),e.BucketSelectorAggregation=r(172),e.SerialDifferencingAggregation=r(173),e.BucketSortAggregation=r(174)},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-avg-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"avg_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-derivative-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"derivative",i,e)}unit(t){return this._aggsDef.unit=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-max-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"max_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-min-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"min_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-sum-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"sum_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-stats-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"stats_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-extended-stats-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"extended_stats_bucket",i,e)}sigma(t){return this._aggsDef.sigma=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(3),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-percentiles-bucket-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"percentiles_bucket",n,e)}percents(t){return s(t,Array),this._aggsDef.percents=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{MODEL_SET:n}}=r(1),o=r(3),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-movavg-aggregation.html",c=i(u,"model",n);t.exports=class extends o{constructor(t,e){super(t,"moving_avg",u,e)}format(){throw console.log(`Please refer ${u}`),new Error("format is not supported in MovingAverageAggregation")}model(t){s(t)&&c(t);const e=t.toLowerCase();return n.has(e)||c(t),this._aggsDef.model=e,this}window(t){return this._aggsDef.window=t,this}minimize(t){return this._aggsDef.minimize=t,this}settings(t){return this._aggsDef.settings=t,this}predict(t){return this._aggsDef.predict=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(3),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-movfn-aggregation.html";t.exports=class extends i{constructor(t,e,r,i){super(t,"moving_fn",n,e),s(r)||(this._aggsDef.window=r),s(i)||(this._aggsDef.script=i)}window(t){return this._aggsDef.window=t,this}shift(t){return this._aggsDef.shift=t,this}script(t){return this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-cumulative-sum-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"cumulative_sum",i,e)}gapPolicy(){throw console.log(`Please refer ${i}`),new Error("gapPolicy is not supported in CumulativeSumAggregation")}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-script-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"bucket_script",i,e)}script(t){return this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-selector-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"bucket_selector",i,e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in BucketSelectorAggregation")}script(t){return this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-serialdiff-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"serial_diff",i,e)}lag(t){return this._aggsDef.lag=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-sort-aggregation.html";t.exports=class extends s{constructor(t){super(t,"bucket_sort",i)}sort(t){return this._aggsDef.sort=t,this}from(t){return this._aggsDef.from=t,this}size(t){return this._aggsDef.size=t,this}}},function(t,e,r){"use strict";e.MatrixStatsAggregation=r(176)},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e){super(t,"matrix_stats"),s(e)||this.fields(e)}fields(t){return n(t,Array),this._aggsDef.fields=t,this}mode(t){return this._aggsDef.mode=t,this}missing(t){return this._aggsDef.missing=t,this}}},function(t,e,r){"use strict";e.AnalyzedSuggesterBase=r(31),e.TermSuggester=r(178),e.DirectGenerator=r(179),e.PhraseSuggester=r(180),e.CompletionSuggester=r(181)},function(t,e,r){"use strict";const s=r(0),{consts:{SUGGEST_MODE_SET:i,STRING_DISTANCE_SET:n},util:{invalidParam:o}}=r(1),u=r(31),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-term.html",a=o(c,"sort","'score' or 'frequency'"),h=o(c,"suggest_mode",i),g=o(c,"string_distance",n);t.exports=class extends u{constructor(t,e,r){super("term",t,e,r)}sort(t){s(t)&&a(t);const e=t.toLowerCase();return"score"!==e&&"frequency"!==e&&a(t),this._suggestOpts.sort=e,this}suggestMode(t){s(t)&&h(t);const e=t.toLowerCase();return i.has(e)||h(t),this._suggestOpts.suggest_mode=e,this}maxEdits(t){return this._suggestOpts.max_edits=t,this}prefixLength(t){return this._suggestOpts.prefix_length=t,this}minWordLength(t){return this._suggestOpts.min_word_length=t,this}maxInspections(t){return this._suggestOpts.max_inspections=t,this}minDocFreq(t){return this._suggestOpts.min_doc_freq=t,this}maxTermFreq(t){return this._suggestOpts.max_term_freq=t,this}stringDistance(t){s(t)&&g(t);const e=t.toLowerCase();return n.has(e)||g(t),this._suggestOpts.string_distance=e,this}}},function(t,e,r){"use strict";const s=r(0),{consts:{SUGGEST_MODE_SET:i},util:{invalidParam:n}}=r(1),o=n("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-phrase.html#_direct_generators","suggest_mode",i);t.exports=class{constructor(t){this._body={},s(t)||(this._body.field=t)}field(t){return this._body.field=t,this}size(t){return this._body.size=t,this}suggestMode(t){s(t)&&o(t);const e=t.toLowerCase();return i.has(e)||o(t),this._body.suggest_mode=e,this}maxEdits(t){return this._body.max_edits=t,this}prefixLength(t){return this._body.prefix_length=t,this}minWordLength(t){return this._body.min_word_length=t,this}maxInspections(t){return this._body.max_inspections=t,this}minDocFreq(t){return this._body.min_doc_freq=t,this}maxTermFreq(t){return this._body.max_term_freq=t,this}preFilter(t){return this._body.pre_filter=t,this}postFilter(t){return this._body.post_filter=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),{consts:{SMOOTHING_MODEL_SET:i},util:{recursiveToJSON:n,invalidParam:o}}=r(1),u=r(31),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-phrase.html","smoothing",i);t.exports=class extends u{constructor(t,e,r){super("phrase",t,e,r)}gramSize(t){return this._suggestOpts.gram_size=t,this}realWordErrorLikelihood(t){return this._suggestOpts.real_word_error_likelihood=t,this}confidence(t){return this._suggestOpts.confidence=t,this}maxErrors(t){return this._suggestOpts.max_errors=t,this}separator(t){return this._suggestOpts.separator=t,this}highlight(t,e){return this._suggestOpts.highlight={pre_tag:t,post_tag:e},this}collate(t){return this._suggestOpts.collate=t,this}smoothing(t){s(t)&&c(t);const e=t.toLowerCase();return i.has(e)||c(t),this._suggestOpts.smoothing=e,this}directGenerator(t){return this._suggestOpts.direct_generator=Array.isArray(t)?t:[t],this}toJSON(){return n(this._body)}}},function(t,e,r){"use strict";const s=r(13),{Suggester:i,util:{setDefault:n}}=r(1);t.exports=class extends i{constructor(t,e){super("completion",t,e)}prefix(t){return this._opts.prefix=t,this}skipDuplicates(t=!0){return this._suggestOpts.skip_duplicates=t,this}_checkFuzzy(){s(this._suggestOpts.fuzzy)||(this._suggestOpts.fuzzy={})}fuzzy(t=!0){return this._suggestOpts.fuzzy=t,this}fuzziness(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.fuzziness=t,this}transpositions(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.transpositions=t,this}minLength(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.min_length=t,this}prefixLength(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.prefix_length=t,this}unicodeAware(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.unicode_aware=t,this}regex(t){return this._opts.regex=t,this}flags(t){return n(this._suggestOpts,"regex",{}),this._suggestOpts.regex.flags=t,this}maxDeterminizedStates(t){return n(this._suggestOpts,"regex",{}),this._suggestOpts.regex.max_determinized_states=t,this}contexts(t,e){return n(this._suggestOpts,"contexts",{}),this._suggestOpts.contexts[t]=e,this}}},function(t,e,r){"use strict";const s=r(0),{MatchAllQuery:i,termLevelQueries:{ExistsQuery:n},compoundQueries:{BoolQuery:o,FunctionScoreQuery:u,scoreFunctions:{RandomScoreFunction:c}}}=r(38),{Query:a,util:{checkType:h}}=r(1);e.missingQuery=function(t){return(new o).mustNot(new n(t))},e.randomSortQuery=function(t=new i,e){h(t,a);const r=new c;return(new u).query(t).function(s(e)?r:r.seed(e))},e.filterQuery=function(t,e=!1){h(t,a);const r=(new o).filter(t);return!0===e?r.must(new i):r}}])}); \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 495d173..718719a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2,7 +2,7 @@ - elastic-builder 2.24.0 | Documentation + elastic-builder 2.25.0 | Documentation @@ -15,7 +15,7 @@

elastic-builder

-
2.24.0
+
2.25.0
elastic-builder +
+ + + + +
  • + RankFeatureQuery + + + +
  • @@ -7232,7 +7290,7 @@

    - + src/core/request-body-search.js @@ -7322,7 +7380,7 @@

    - + src/core/request-body-search.js @@ -7402,7 +7460,7 @@

    - + src/core/request-body-search.js @@ -7496,7 +7554,7 @@

    - + src/core/request-body-search.js @@ -7589,7 +7647,7 @@

    - + src/core/request-body-search.js @@ -7690,7 +7748,7 @@

    - + src/core/request-body-search.js @@ -7791,7 +7849,7 @@

    - + src/core/request-body-search.js @@ -7898,7 +7956,7 @@

    - + src/core/request-body-search.js @@ -7988,7 +8046,7 @@

    - + src/core/request-body-search.js @@ -8075,7 +8133,7 @@

    - + src/core/request-body-search.js @@ -8156,7 +8214,7 @@

    - + src/core/request-body-search.js @@ -8239,7 +8297,7 @@

    - + src/core/request-body-search.js @@ -8324,7 +8382,7 @@

    - + src/core/request-body-search.js @@ -8432,7 +8490,7 @@

    - + src/core/request-body-search.js @@ -8541,7 +8599,7 @@

    - + src/core/request-body-search.js @@ -8635,7 +8693,7 @@

    - + src/core/request-body-search.js @@ -8718,7 +8776,7 @@

    - + src/core/request-body-search.js @@ -8832,7 +8890,7 @@

    - + src/core/request-body-search.js @@ -8938,7 +8996,7 @@

    - + src/core/request-body-search.js @@ -9052,7 +9110,7 @@

    - + src/core/request-body-search.js @@ -9161,7 +9219,7 @@

    - + src/core/request-body-search.js @@ -9250,7 +9308,7 @@

    - + src/core/request-body-search.js @@ -9347,7 +9405,7 @@

    - + src/core/request-body-search.js @@ -9449,7 +9507,7 @@

    - + src/core/request-body-search.js @@ -9580,7 +9638,7 @@

    - + src/core/request-body-search.js @@ -9668,7 +9726,7 @@

    - + src/core/request-body-search.js @@ -9756,7 +9814,7 @@

    - + src/core/request-body-search.js @@ -9856,7 +9914,7 @@

    - + src/core/request-body-search.js @@ -9955,7 +10013,7 @@

    - + src/core/request-body-search.js @@ -10043,7 +10101,7 @@

    - + src/core/request-body-search.js @@ -10180,7 +10238,7 @@

    - + src/core/request-body-search.js @@ -10276,7 +10334,7 @@

    - + src/core/request-body-search.js @@ -10408,7 +10466,7 @@

    - + src/core/query.js @@ -10478,7 +10536,7 @@

    - + src/core/query.js @@ -10558,7 +10616,7 @@

    - + src/core/query.js @@ -10649,7 +10707,7 @@

    - + src/core/query.js @@ -10714,7 +10772,7 @@

    - + src/core/query.js @@ -10784,7 +10842,7 @@

    - + src/queries/match-all-query.js @@ -10850,7 +10908,7 @@

    - + src/queries/match-none-query.js @@ -10976,7 +11034,7 @@

    - + src/queries/full-text-queries/full-text-query-base.js @@ -11062,7 +11120,7 @@

    - + src/queries/full-text-queries/full-text-query-base.js @@ -11154,7 +11212,7 @@

    - + src/queries/full-text-queries/full-text-query-base.js @@ -11247,7 +11305,7 @@

    - + src/queries/full-text-queries/full-text-query-base.js @@ -11340,7 +11398,7 @@

    - + src/queries/full-text-queries/mono-field-query-base.js @@ -11435,7 +11493,7 @@

    - + src/queries/full-text-queries/mono-field-query-base.js @@ -11515,7 +11573,7 @@

    - + src/queries/full-text-queries/mono-field-query-base.js @@ -11586,7 +11644,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -11680,7 +11738,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -11769,7 +11827,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -11853,7 +11911,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -11940,7 +11998,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -12020,7 +12078,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -12100,7 +12158,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -12225,7 +12283,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -12350,7 +12408,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -12431,7 +12489,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -12529,7 +12587,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -12630,7 +12688,7 @@

    - + src/queries/full-text-queries/match-phrase-query-base.js @@ -12733,7 +12791,7 @@

    - + src/queries/full-text-queries/match-phrase-query-base.js @@ -12798,7 +12856,7 @@

    - + src/queries/full-text-queries/match-phrase-query-base.js @@ -12885,7 +12943,7 @@

    - + src/queries/full-text-queries/match-phrase-query.js @@ -12975,7 +13033,7 @@

    - + src/queries/full-text-queries/match-phrase-prefix-query.js @@ -13064,7 +13122,7 @@

    - + src/queries/full-text-queries/match-phrase-prefix-query.js @@ -13157,7 +13215,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13251,7 +13309,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13335,7 +13393,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13429,7 +13487,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13581,7 +13639,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13665,7 +13723,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13754,7 +13812,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13838,7 +13896,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13920,7 +13978,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -14009,7 +14067,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -14089,7 +14147,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -14169,7 +14227,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -14294,7 +14352,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -14419,7 +14477,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -14509,7 +14567,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -14603,7 +14661,7 @@

    - + src/queries/full-text-queries/common-terms-query.js @@ -14696,7 +14754,7 @@

    - + src/queries/full-text-queries/common-terms-query.js @@ -14785,7 +14843,7 @@

    - + src/queries/full-text-queries/common-terms-query.js @@ -14882,7 +14940,7 @@

    - + src/queries/full-text-queries/common-terms-query.js @@ -14971,7 +15029,7 @@

    - + src/queries/full-text-queries/common-terms-query.js @@ -15062,7 +15120,7 @@

    - + src/queries/full-text-queries/common-terms-query.js @@ -15153,7 +15211,7 @@

    - + src/queries/full-text-queries/common-terms-query.js @@ -15241,7 +15299,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -15337,7 +15395,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -15432,7 +15490,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -15527,7 +15585,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -15618,7 +15676,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -15699,7 +15757,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -15783,7 +15841,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -15864,7 +15922,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -15952,7 +16010,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16034,7 +16092,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16116,7 +16174,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16196,7 +16254,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16276,7 +16334,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16356,7 +16414,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16445,7 +16503,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16525,7 +16583,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16650,7 +16708,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16775,7 +16833,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16857,7 +16915,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16939,7 +16997,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -17021,7 +17079,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -17101,7 +17159,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -17187,7 +17245,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -17279,7 +17337,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -17359,7 +17417,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -17441,7 +17499,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -17526,7 +17584,7 @@

    - + src/queries/full-text-queries/simple-query-string-query.js @@ -17614,7 +17672,7 @@

    - + src/queries/full-text-queries/simple-query-string-query.js @@ -17797,7 +17855,7 @@

    - + src/queries/term-level-queries/value-term-query-base.js @@ -17889,7 +17947,7 @@

    - + src/queries/term-level-queries/value-term-query-base.js @@ -17969,7 +18027,7 @@

    - + src/queries/term-level-queries/value-term-query-base.js @@ -18049,7 +18107,7 @@

    - + src/queries/term-level-queries/value-term-query-base.js @@ -18115,7 +18173,7 @@

    - + src/queries/term-level-queries/value-term-query-base.js @@ -18203,7 +18261,7 @@

    - + src/queries/term-level-queries/term-query.js @@ -18291,7 +18349,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -18388,7 +18446,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -18468,7 +18526,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -18548,7 +18606,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -18639,7 +18697,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -18732,7 +18790,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -18818,7 +18876,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -18898,7 +18956,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -18978,7 +19036,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -19058,7 +19116,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -19138,7 +19196,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -19209,7 +19267,7 @@

    - + src/queries/term-level-queries/terms-set-query.js @@ -19303,7 +19361,7 @@

    - + src/queries/term-level-queries/terms-set-query.js @@ -19383,7 +19441,7 @@

    - + src/queries/term-level-queries/terms-set-query.js @@ -19463,7 +19521,7 @@

    - + src/queries/term-level-queries/terms-set-query.js @@ -19554,7 +19612,7 @@

    - + src/queries/term-level-queries/terms-set-query.js @@ -19634,7 +19692,7 @@

    - + src/queries/term-level-queries/terms-set-query.js @@ -19726,7 +19784,7 @@

    - + src/queries/term-level-queries/terms-set-query.js @@ -19797,7 +19855,7 @@

    - + src/queries/term-level-queries/multi-term-query-base.js @@ -19867,7 +19925,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -19953,7 +20011,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20017,7 +20075,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20097,7 +20155,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20177,7 +20235,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20257,7 +20315,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20337,7 +20395,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20418,7 +20476,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20499,7 +20557,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20583,7 +20641,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20667,7 +20725,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20747,7 +20805,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20838,7 +20896,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20929,7 +20987,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -21000,7 +21058,7 @@

    - + src/queries/term-level-queries/exists-query.js @@ -21083,7 +21141,7 @@

    - + src/queries/term-level-queries/exists-query.js @@ -21168,7 +21226,7 @@

    - + src/queries/term-level-queries/prefix-query.js @@ -21256,7 +21314,7 @@

    - + src/queries/term-level-queries/prefix-query.js @@ -21386,7 +21444,7 @@

    - + src/queries/term-level-queries/wildcard-query.js @@ -21474,7 +21532,7 @@

    - + src/queries/term-level-queries/wildcard-query.js @@ -21562,7 +21620,7 @@

    - + src/queries/term-level-queries/wildcard-query.js @@ -21692,7 +21750,7 @@

    - + src/queries/term-level-queries/regexp-query.js @@ -21782,7 +21840,7 @@

    - + src/queries/term-level-queries/regexp-query.js @@ -21887,7 +21945,7 @@

    - + src/queries/term-level-queries/regexp-query.js @@ -21975,7 +22033,7 @@

    - + src/queries/term-level-queries/regexp-query.js @@ -22065,7 +22123,7 @@

    - + src/queries/term-level-queries/regexp-query.js @@ -22195,7 +22253,7 @@

    - + src/queries/term-level-queries/fuzzy-query.js @@ -22295,7 +22353,7 @@

    - + src/queries/term-level-queries/fuzzy-query.js @@ -22382,7 +22440,7 @@

    - + src/queries/term-level-queries/fuzzy-query.js @@ -22466,7 +22524,7 @@

    - + src/queries/term-level-queries/fuzzy-query.js @@ -22549,7 +22607,7 @@

    - + src/queries/term-level-queries/fuzzy-query.js @@ -22635,7 +22693,7 @@

    - + src/queries/term-level-queries/type-query.js @@ -22716,7 +22774,7 @@

    - + src/queries/term-level-queries/type-query.js @@ -22797,7 +22855,7 @@

    - + src/queries/term-level-queries/type-query.js @@ -22884,7 +22942,7 @@

    - + src/queries/term-level-queries/ids-query.js @@ -22975,7 +23033,7 @@

    - + src/queries/term-level-queries/ids-query.js @@ -23058,7 +23116,7 @@

    - + src/queries/term-level-queries/ids-query.js @@ -23138,7 +23196,7 @@

    - + src/queries/term-level-queries/ids-query.js @@ -23284,7 +23342,7 @@

    - + src/queries/compound-queries/constant-score-query.js @@ -23369,7 +23427,7 @@

    - + src/queries/compound-queries/constant-score-query.js @@ -23450,7 +23508,7 @@

    - + src/queries/compound-queries/constant-score-query.js @@ -23538,7 +23596,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -23616,7 +23674,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -23711,7 +23769,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -23820,7 +23878,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -23918,7 +23976,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -24016,7 +24074,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -24099,7 +24157,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -24185,7 +24243,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -24266,7 +24324,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -24337,7 +24395,7 @@

    - + src/queries/compound-queries/dis-max-query.js @@ -24418,7 +24476,7 @@

    - + src/queries/compound-queries/dis-max-query.js @@ -24502,7 +24560,7 @@

    - + src/queries/compound-queries/dis-max-query.js @@ -24592,7 +24650,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -24697,7 +24755,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -24780,7 +24838,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -24876,7 +24934,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -24972,7 +25030,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -25052,7 +25110,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -25133,7 +25191,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -25216,7 +25274,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -25304,7 +25362,7 @@

    - + src/queries/compound-queries/boosting-query.js @@ -25418,7 +25476,7 @@

    - + src/queries/compound-queries/boosting-query.js @@ -25501,7 +25559,7 @@

    - + src/queries/compound-queries/boosting-query.js @@ -25585,7 +25643,7 @@

    - + src/queries/compound-queries/boosting-query.js @@ -25735,7 +25793,7 @@

    - + src/queries/joining-queries/joining-query-base.js @@ -25831,7 +25889,7 @@

    - + src/queries/joining-queries/joining-query-base.js @@ -25914,7 +25972,7 @@

    - + src/queries/joining-queries/joining-query-base.js @@ -26031,7 +26089,7 @@

    - + src/queries/joining-queries/joining-query-base.js @@ -26119,7 +26177,7 @@

    - + src/queries/joining-queries/joining-query-base.js @@ -26207,7 +26265,7 @@

    - + src/queries/joining-queries/nested-query.js @@ -26309,7 +26367,7 @@

    - + src/queries/joining-queries/nested-query.js @@ -26394,7 +26452,7 @@

    - + src/queries/joining-queries/has-child-query.js @@ -26502,7 +26560,7 @@

    - + src/queries/joining-queries/has-child-query.js @@ -26584,7 +26642,7 @@

    - + src/queries/joining-queries/has-child-query.js @@ -26665,7 +26723,7 @@

    - + src/queries/joining-queries/has-child-query.js @@ -26758,7 +26816,7 @@

    - + src/queries/joining-queries/has-child-query.js @@ -26856,7 +26914,7 @@

    - + src/queries/joining-queries/has-parent-query.js @@ -26962,7 +27020,7 @@

    - + src/queries/joining-queries/has-parent-query.js @@ -27029,7 +27087,7 @@

    - + src/queries/joining-queries/has-parent-query.js @@ -27111,7 +27169,7 @@

    - + src/queries/joining-queries/has-parent-query.js @@ -27192,7 +27250,7 @@

    - + src/queries/joining-queries/has-parent-query.js @@ -27296,7 +27354,7 @@

    - + src/queries/joining-queries/parent-id-query.js @@ -27390,7 +27448,7 @@

    - + src/queries/joining-queries/parent-id-query.js @@ -27475,7 +27533,7 @@

    - + src/queries/joining-queries/parent-id-query.js @@ -27556,7 +27614,7 @@

    - + src/queries/joining-queries/parent-id-query.js @@ -27709,7 +27767,7 @@

    - + src/queries/geo-queries/geo-query-base.js @@ -27794,7 +27852,7 @@

    - + src/queries/geo-queries/geo-query-base.js @@ -27874,7 +27932,7 @@

    - + src/queries/geo-queries/geo-query-base.js @@ -27981,7 +28039,7 @@

    - + src/queries/geo-queries/geo-query-base.js @@ -28052,7 +28110,7 @@

    - + src/queries/geo-queries/geo-shape-query.js @@ -28154,7 +28212,7 @@

    - + src/queries/geo-queries/geo-shape-query.js @@ -28218,7 +28276,7 @@

    - + src/queries/geo-queries/geo-shape-query.js @@ -28309,7 +28367,7 @@

    - + src/queries/geo-queries/geo-shape-query.js @@ -28400,7 +28458,7 @@

    - + src/queries/geo-queries/geo-shape-query.js @@ -28491,7 +28549,7 @@

    - + src/queries/geo-queries/geo-shape-query.js @@ -28584,7 +28642,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -28686,7 +28744,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -28769,7 +28827,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -28852,7 +28910,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -28935,7 +28993,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -29018,7 +29076,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -29098,7 +29156,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -29178,7 +29236,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -29258,7 +29316,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -29338,7 +29396,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -29445,7 +29503,7 @@

    - + src/queries/geo-queries/geo-distance-query.js @@ -29540,7 +29598,7 @@

    - + src/queries/geo-queries/geo-distance-query.js @@ -29623,7 +29681,7 @@

    - + src/queries/geo-queries/geo-distance-query.js @@ -29719,7 +29777,7 @@

    - + src/queries/geo-queries/geo-distance-query.js @@ -29816,7 +29874,7 @@

    - + src/queries/geo-queries/geo-polygon-query.js @@ -29901,7 +29959,7 @@

    - + src/queries/geo-queries/geo-polygon-query.js @@ -30087,7 +30145,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30191,7 +30249,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30273,7 +30331,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30368,7 +30426,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30453,7 +30511,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30536,7 +30594,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30619,7 +30677,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30702,7 +30760,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30785,7 +30843,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30866,7 +30924,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30948,7 +31006,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31030,7 +31088,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31111,7 +31169,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31192,7 +31250,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31274,7 +31332,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31356,7 +31414,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31444,7 +31502,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31526,7 +31584,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31612,7 +31670,7 @@

    - + src/queries/specialized-queries/script-query.js @@ -31698,7 +31756,7 @@

    - + src/queries/specialized-queries/script-query.js @@ -31783,7 +31841,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -31886,7 +31944,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -31969,7 +32027,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32052,7 +32110,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32142,7 +32200,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32232,7 +32290,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32314,7 +32372,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32396,7 +32454,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32478,7 +32536,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32559,7 +32617,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32640,7 +32698,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32788,7 +32846,7 @@

    - + src/queries/span-queries/span-query-base.js @@ -32850,7 +32908,7 @@

    - + src/queries/span-queries/span-term-query.js @@ -32946,7 +33004,7 @@

    - + src/queries/span-queries/span-term-query.js @@ -33026,7 +33084,7 @@

    - + src/queries/span-queries/span-term-query.js @@ -33106,7 +33164,7 @@

    - + src/queries/span-queries/span-term-query.js @@ -33177,7 +33235,7 @@

    - + src/queries/span-queries/span-multi-term-query.js @@ -33260,7 +33318,7 @@

    - + src/queries/span-queries/span-multi-term-query.js @@ -33346,7 +33404,7 @@

    - + src/queries/span-queries/span-first-query.js @@ -33429,7 +33487,7 @@

    - + src/queries/span-queries/span-first-query.js @@ -33509,7 +33567,7 @@

    - + src/queries/span-queries/span-first-query.js @@ -33595,7 +33653,7 @@

    - + src/queries/span-queries/span-near-query.js @@ -33671,7 +33729,7 @@

    - + src/queries/span-queries/span-near-query.js @@ -33764,7 +33822,7 @@

    - + src/queries/span-queries/span-near-query.js @@ -33846,7 +33904,7 @@

    - + src/queries/span-queries/span-near-query.js @@ -33930,7 +33988,7 @@

    - + src/queries/span-queries/span-or-query.js @@ -34002,7 +34060,7 @@

    - + src/queries/span-queries/span-or-query.js @@ -34100,7 +34158,7 @@

    - + src/queries/span-queries/span-not-query.js @@ -34176,7 +34234,7 @@

    - + src/queries/span-queries/span-not-query.js @@ -34256,7 +34314,7 @@

    - + src/queries/span-queries/span-not-query.js @@ -34337,7 +34395,7 @@

    - + src/queries/span-queries/span-not-query.js @@ -34418,7 +34476,7 @@

    - + src/queries/span-queries/span-not-query.js @@ -34498,7 +34556,7 @@

    - + src/queries/span-queries/span-not-query.js @@ -34584,7 +34642,7 @@

    - + src/queries/span-queries/span-little-big-query-base.js @@ -34647,7 +34705,7 @@

    - + src/queries/span-queries/span-little-big-query-base.js @@ -34728,7 +34786,7 @@

    - + src/queries/span-queries/span-little-big-query-base.js @@ -34814,7 +34872,7 @@

    - + src/queries/span-queries/span-containing-query.js @@ -34890,7 +34948,7 @@

    - + src/queries/span-queries/span-within-query.js @@ -34966,7 +35024,7 @@

    - + src/queries/span-queries/span-field-masking-query.js @@ -35071,7 +35129,7 @@

    - + src/queries/span-queries/span-field-masking-query.js @@ -35151,7 +35209,7 @@

    - + src/queries/span-queries/span-field-masking-query.js @@ -35300,7 +35358,7 @@

    - + src/core/aggregation.js @@ -35394,7 +35452,7 @@

    - + src/core/aggregation.js @@ -35475,7 +35533,7 @@

    - + src/core/aggregation.js @@ -35569,7 +35627,7 @@

    - + src/core/aggregation.js @@ -35652,7 +35710,7 @@

    - + src/core/aggregation.js @@ -35753,7 +35811,7 @@

    - + src/core/aggregation.js @@ -35854,7 +35912,7 @@

    - + src/core/aggregation.js @@ -35935,7 +35993,7 @@

    - + src/core/aggregation.js @@ -36000,7 +36058,7 @@

    - + src/core/aggregation.js @@ -36130,7 +36188,7 @@

    - + src/aggregations/metrics-aggregations/metrics-aggregation-base.js @@ -36226,7 +36284,7 @@

    - + src/aggregations/metrics-aggregations/metrics-aggregation-base.js @@ -36307,7 +36365,7 @@

    - + src/aggregations/metrics-aggregations/metrics-aggregation-base.js @@ -36415,7 +36473,7 @@

    - + src/aggregations/metrics-aggregations/metrics-aggregation-base.js @@ -36502,7 +36560,7 @@

    - + src/aggregations/metrics-aggregations/metrics-aggregation-base.js @@ -36588,7 +36646,7 @@

    - + src/aggregations/metrics-aggregations/avg-aggregation.js @@ -36701,7 +36759,7 @@

    - + src/aggregations/metrics-aggregations/cardinality-aggregation.js @@ -36802,7 +36860,7 @@

    - + src/aggregations/metrics-aggregations/cardinality-aggregation.js @@ -36866,7 +36924,7 @@

    - + src/aggregations/metrics-aggregations/cardinality-aggregation.js @@ -36964,7 +37022,7 @@

    - + src/aggregations/metrics-aggregations/extended-stats-aggregation.js @@ -37077,7 +37135,7 @@

    - + src/aggregations/metrics-aggregations/extended-stats-aggregation.js @@ -37172,7 +37230,7 @@

    - + src/aggregations/metrics-aggregations/geo-bounds-aggregation.js @@ -37263,7 +37321,7 @@

    - + src/aggregations/metrics-aggregations/geo-bounds-aggregation.js @@ -37327,7 +37385,7 @@

    - + src/aggregations/metrics-aggregations/geo-bounds-aggregation.js @@ -37391,7 +37449,7 @@

    - + src/aggregations/metrics-aggregations/geo-bounds-aggregation.js @@ -37478,7 +37536,7 @@

    - + src/aggregations/metrics-aggregations/geo-centroid-aggregation.js @@ -37579,7 +37637,7 @@

    - + src/aggregations/metrics-aggregations/geo-centroid-aggregation.js @@ -37648,7 +37706,7 @@

    - + src/aggregations/metrics-aggregations/max-aggregation.js @@ -37757,7 +37815,7 @@

    - + src/aggregations/metrics-aggregations/min-aggregation.js @@ -37866,7 +37924,7 @@

    - + src/aggregations/metrics-aggregations/percentiles-aggregation.js @@ -37969,7 +38027,7 @@

    - + src/aggregations/metrics-aggregations/percentiles-aggregation.js @@ -38060,7 +38118,7 @@

    - + src/aggregations/metrics-aggregations/percentiles-aggregation.js @@ -38162,7 +38220,7 @@

    - + src/aggregations/metrics-aggregations/percentiles-aggregation.js @@ -38258,7 +38316,7 @@

    - + src/aggregations/metrics-aggregations/percentiles-aggregation.js @@ -38355,7 +38413,7 @@

    - + src/aggregations/metrics-aggregations/percentiles-aggregation.js @@ -38454,7 +38512,7 @@

    - + src/aggregations/metrics-aggregations/percentile-ranks-aggregation.js @@ -38582,7 +38640,7 @@

    - + src/aggregations/metrics-aggregations/percentile-ranks-aggregation.js @@ -38646,7 +38704,7 @@

    - + src/aggregations/metrics-aggregations/percentile-ranks-aggregation.js @@ -38737,7 +38795,7 @@

    - + src/aggregations/metrics-aggregations/percentile-ranks-aggregation.js @@ -38828,7 +38886,7 @@

    - + src/aggregations/metrics-aggregations/percentile-ranks-aggregation.js @@ -38915,7 +38973,7 @@

    - + src/aggregations/metrics-aggregations/percentile-ranks-aggregation.js @@ -39003,7 +39061,7 @@

    - + src/aggregations/metrics-aggregations/percentile-ranks-aggregation.js @@ -39104,7 +39162,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39209,7 +39267,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39273,7 +39331,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39337,7 +39395,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39401,7 +39459,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39483,7 +39541,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39566,7 +39624,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39650,7 +39708,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39735,7 +39793,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39825,7 +39883,7 @@

    - + src/aggregations/metrics-aggregations/stats-aggregation.js @@ -39935,7 +39993,7 @@

    - + src/aggregations/metrics-aggregations/sum-aggregation.js @@ -40057,7 +40115,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40169,7 +40227,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40233,7 +40291,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40297,7 +40355,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40361,7 +40419,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40425,7 +40483,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40506,7 +40564,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40587,7 +40645,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40683,7 +40741,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40778,7 +40836,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40860,7 +40918,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40941,7 +40999,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -41022,7 +41080,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -41102,7 +41160,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -41186,7 +41244,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -41270,7 +41328,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -41360,7 +41418,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -41446,7 +41504,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -41532,7 +41590,7 @@

    - + src/aggregations/metrics-aggregations/value-count-aggregation.js @@ -41633,7 +41691,7 @@

    - + src/aggregations/metrics-aggregations/value-count-aggregation.js @@ -41762,7 +41820,7 @@

    - + src/aggregations/bucket-aggregations/bucket-aggregation-base.js @@ -41858,7 +41916,7 @@

    - + src/aggregations/bucket-aggregations/bucket-aggregation-base.js @@ -41939,7 +41997,7 @@

    - + src/aggregations/bucket-aggregations/bucket-aggregation-base.js @@ -42050,7 +42108,7 @@

    - + src/aggregations/bucket-aggregations/adjacency-matrix-aggregation.js @@ -42138,7 +42196,7 @@

    - + src/aggregations/bucket-aggregations/adjacency-matrix-aggregation.js @@ -42202,7 +42260,7 @@

    - + src/aggregations/bucket-aggregations/adjacency-matrix-aggregation.js @@ -42266,7 +42324,7 @@

    - + src/aggregations/bucket-aggregations/adjacency-matrix-aggregation.js @@ -42367,7 +42425,7 @@

    - + src/aggregations/bucket-aggregations/adjacency-matrix-aggregation.js @@ -42461,7 +42519,7 @@

    - + src/aggregations/bucket-aggregations/adjacency-matrix-aggregation.js @@ -42550,7 +42608,7 @@

    - + src/aggregations/bucket-aggregations/auto-date-histogram-aggregation.js @@ -42653,7 +42711,7 @@

    - + src/aggregations/bucket-aggregations/auto-date-histogram-aggregation.js @@ -42734,7 +42792,7 @@

    - + src/aggregations/bucket-aggregations/auto-date-histogram-aggregation.js @@ -42829,7 +42887,7 @@

    - + src/aggregations/bucket-aggregations/auto-date-histogram-aggregation.js @@ -42923,7 +42981,7 @@

    - + src/aggregations/bucket-aggregations/auto-date-histogram-aggregation.js @@ -43010,7 +43068,7 @@

    - + src/aggregations/bucket-aggregations/auto-date-histogram-aggregation.js @@ -43109,7 +43167,7 @@

    - + src/aggregations/bucket-aggregations/children-aggregation.js @@ -43207,7 +43265,7 @@

    - + src/aggregations/bucket-aggregations/children-aggregation.js @@ -43271,7 +43329,7 @@

    - + src/aggregations/bucket-aggregations/children-aggregation.js @@ -43335,7 +43393,7 @@

    - + src/aggregations/bucket-aggregations/children-aggregation.js @@ -43421,7 +43479,7 @@

    - + src/aggregations/bucket-aggregations/composite-aggregation.js @@ -43515,7 +43573,7 @@

    - + src/aggregations/bucket-aggregations/composite-aggregation.js @@ -43626,7 +43684,7 @@

    - + src/aggregations/bucket-aggregations/composite-aggregation.js @@ -43710,7 +43768,7 @@

    - + src/aggregations/bucket-aggregations/composite-aggregation.js @@ -43887,7 +43945,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -43996,7 +44054,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -44077,7 +44135,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -44168,7 +44226,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -44249,7 +44307,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -44338,7 +44396,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -44422,7 +44480,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -44505,7 +44563,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -44576,7 +44634,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/terms-values-source.js @@ -44669,7 +44727,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/histogram-values-source.js @@ -44773,7 +44831,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/histogram-values-source.js @@ -44859,7 +44917,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/date-histogram-values-source.js @@ -44963,7 +45021,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/date-histogram-values-source.js @@ -45044,7 +45102,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/date-histogram-values-source.js @@ -45137,7 +45195,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/date-histogram-values-source.js @@ -45233,7 +45291,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/date-histogram-values-source.js @@ -45319,7 +45377,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/date-histogram-values-source.js @@ -45417,7 +45475,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -45523,7 +45581,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -45606,7 +45664,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -45700,7 +45758,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -45791,7 +45849,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -45899,7 +45957,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -45987,7 +46045,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -46093,7 +46151,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -46200,7 +46258,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -46287,7 +46345,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -46382,7 +46440,7 @@

    - + src/aggregations/bucket-aggregations/date-histogram-aggregation.js @@ -46490,7 +46548,7 @@

    - + src/aggregations/bucket-aggregations/date-histogram-aggregation.js @@ -46584,7 +46642,7 @@

    - + src/aggregations/bucket-aggregations/date-histogram-aggregation.js @@ -46677,7 +46735,7 @@

    - + src/aggregations/bucket-aggregations/date-histogram-aggregation.js @@ -46779,7 +46837,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation-base.js @@ -46876,7 +46934,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation-base.js @@ -46960,7 +47018,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation-base.js @@ -47066,7 +47124,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation-base.js @@ -47175,7 +47233,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation-base.js @@ -47256,7 +47314,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation-base.js @@ -47357,7 +47415,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation-base.js @@ -47427,7 +47485,7 @@

    - + src/aggregations/bucket-aggregations/date-range-aggregation.js @@ -47523,7 +47581,7 @@

    - + src/aggregations/bucket-aggregations/date-range-aggregation.js @@ -47627,7 +47685,7 @@

    - + src/aggregations/bucket-aggregations/diversified-sampler-aggregation.js @@ -47749,7 +47807,7 @@

    - + src/aggregations/bucket-aggregations/diversified-sampler-aggregation.js @@ -47831,7 +47889,7 @@

    - + src/aggregations/bucket-aggregations/diversified-sampler-aggregation.js @@ -47914,7 +47972,7 @@

    - + src/aggregations/bucket-aggregations/diversified-sampler-aggregation.js @@ -48019,7 +48077,7 @@

    - + src/aggregations/bucket-aggregations/filter-aggregation.js @@ -48118,7 +48176,7 @@

    - + src/aggregations/bucket-aggregations/filter-aggregation.js @@ -48182,7 +48240,7 @@

    - + src/aggregations/bucket-aggregations/filter-aggregation.js @@ -48246,7 +48304,7 @@

    - + src/aggregations/bucket-aggregations/filter-aggregation.js @@ -48343,7 +48401,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -48435,7 +48493,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -48499,7 +48557,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -48563,7 +48621,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -48667,7 +48725,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -48761,7 +48819,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -48855,7 +48913,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -48949,7 +49007,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -49052,7 +49110,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -49148,7 +49206,7 @@

    - + src/aggregations/bucket-aggregations/geo-distance-aggregation.js @@ -49246,7 +49304,7 @@

    - + src/aggregations/bucket-aggregations/geo-distance-aggregation.js @@ -49310,7 +49368,7 @@

    - + src/aggregations/bucket-aggregations/geo-distance-aggregation.js @@ -49374,7 +49432,7 @@

    - + src/aggregations/bucket-aggregations/geo-distance-aggregation.js @@ -49468,7 +49526,7 @@

    - + src/aggregations/bucket-aggregations/geo-distance-aggregation.js @@ -49571,7 +49629,7 @@

    - + src/aggregations/bucket-aggregations/geo-distance-aggregation.js @@ -49682,7 +49740,7 @@

    - + src/aggregations/bucket-aggregations/geo-hash-grid-aggregation.js @@ -49775,7 +49833,7 @@

    - + src/aggregations/bucket-aggregations/geo-hash-grid-aggregation.js @@ -49839,7 +49897,7 @@

    - + src/aggregations/bucket-aggregations/geo-hash-grid-aggregation.js @@ -49903,7 +49961,7 @@

    - + src/aggregations/bucket-aggregations/geo-hash-grid-aggregation.js @@ -49992,7 +50050,7 @@

    - + src/aggregations/bucket-aggregations/geo-hash-grid-aggregation.js @@ -50076,7 +50134,7 @@

    - + src/aggregations/bucket-aggregations/geo-hash-grid-aggregation.js @@ -50163,7 +50221,7 @@

    - + src/aggregations/bucket-aggregations/global-aggregation.js @@ -50253,7 +50311,7 @@

    - + src/aggregations/bucket-aggregations/global-aggregation.js @@ -50317,7 +50375,7 @@

    - + src/aggregations/bucket-aggregations/global-aggregation.js @@ -50386,7 +50444,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation.js @@ -50496,7 +50554,7 @@

    - + src/aggregations/bucket-aggregations/ip-range-aggregation.js @@ -50595,7 +50653,7 @@

    - + src/aggregations/bucket-aggregations/ip-range-aggregation.js @@ -50664,7 +50722,7 @@

    - + src/aggregations/bucket-aggregations/missing-aggregation.js @@ -50756,7 +50814,7 @@

    - + src/aggregations/bucket-aggregations/missing-aggregation.js @@ -50825,7 +50883,7 @@

    - + src/aggregations/bucket-aggregations/nested-aggregation.js @@ -50923,7 +50981,7 @@

    - + src/aggregations/bucket-aggregations/nested-aggregation.js @@ -50987,7 +51045,7 @@

    - + src/aggregations/bucket-aggregations/nested-aggregation.js @@ -51051,7 +51109,7 @@

    - + src/aggregations/bucket-aggregations/nested-aggregation.js @@ -51138,7 +51196,7 @@

    - + src/aggregations/bucket-aggregations/parent-aggregation.js @@ -51245,7 +51303,7 @@

    - + src/aggregations/bucket-aggregations/parent-aggregation.js @@ -51309,7 +51367,7 @@

    - + src/aggregations/bucket-aggregations/parent-aggregation.js @@ -51373,7 +51431,7 @@

    - + src/aggregations/bucket-aggregations/parent-aggregation.js @@ -51459,7 +51517,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation.js @@ -51579,7 +51637,7 @@

    - + src/aggregations/bucket-aggregations/rare-terms-aggregation.js @@ -51676,7 +51734,7 @@

    - + src/aggregations/bucket-aggregations/rare-terms-aggregation.js @@ -51764,7 +51822,7 @@

    - + src/aggregations/bucket-aggregations/rare-terms-aggregation.js @@ -51853,7 +51911,7 @@

    - + src/aggregations/bucket-aggregations/rare-terms-aggregation.js @@ -51941,7 +51999,7 @@

    - + src/aggregations/bucket-aggregations/rare-terms-aggregation.js @@ -52029,7 +52087,7 @@

    - + src/aggregations/bucket-aggregations/rare-terms-aggregation.js @@ -52110,7 +52168,7 @@

    - + src/aggregations/bucket-aggregations/rare-terms-aggregation.js @@ -52179,7 +52237,7 @@

    - + src/aggregations/bucket-aggregations/reverse-nested-aggregation.js @@ -52287,7 +52345,7 @@

    - + src/aggregations/bucket-aggregations/reverse-nested-aggregation.js @@ -52351,7 +52409,7 @@

    - + src/aggregations/bucket-aggregations/reverse-nested-aggregation.js @@ -52415,7 +52473,7 @@

    - + src/aggregations/bucket-aggregations/reverse-nested-aggregation.js @@ -52504,7 +52562,7 @@

    - + src/aggregations/bucket-aggregations/sampler-aggregation.js @@ -52606,7 +52664,7 @@

    - + src/aggregations/bucket-aggregations/sampler-aggregation.js @@ -52670,7 +52728,7 @@

    - + src/aggregations/bucket-aggregations/sampler-aggregation.js @@ -52734,7 +52792,7 @@

    - + src/aggregations/bucket-aggregations/sampler-aggregation.js @@ -52821,7 +52879,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -52927,7 +52985,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53009,7 +53067,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53097,7 +53155,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53185,7 +53243,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53271,7 +53329,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53355,7 +53413,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53436,7 +53494,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53541,7 +53599,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53646,7 +53704,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53760,7 +53818,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -53824,7 +53882,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -53891,7 +53949,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -53993,7 +54051,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -54095,7 +54153,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -54181,7 +54239,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -54250,7 +54308,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -54330,7 +54388,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -54424,7 +54482,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -54493,7 +54551,7 @@

    - + src/aggregations/bucket-aggregations/significant-terms-aggregation.js @@ -54596,7 +54654,7 @@

    - + src/aggregations/bucket-aggregations/significant-text-aggregation.js @@ -54701,7 +54759,7 @@

    - + src/aggregations/bucket-aggregations/significant-text-aggregation.js @@ -54798,7 +54856,7 @@

    - + src/aggregations/bucket-aggregations/significant-text-aggregation.js @@ -54892,7 +54950,7 @@

    - + src/aggregations/bucket-aggregations/significant-text-aggregation.js @@ -54956,7 +55014,7 @@

    - + src/aggregations/bucket-aggregations/significant-text-aggregation.js @@ -55025,7 +55083,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation.js @@ -55116,7 +55174,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation.js @@ -55198,7 +55256,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation.js @@ -55302,7 +55360,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation.js @@ -55398,7 +55456,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation.js @@ -55592,7 +55650,7 @@

    - + src/aggregations/pipeline-aggregations/pipeline-aggregation-base.js @@ -55701,7 +55759,7 @@

    - + src/aggregations/pipeline-aggregations/pipeline-aggregation-base.js @@ -55800,7 +55858,7 @@

    - + src/aggregations/pipeline-aggregations/pipeline-aggregation-base.js @@ -55885,7 +55943,7 @@

    - + src/aggregations/pipeline-aggregations/pipeline-aggregation-base.js @@ -55971,7 +56029,7 @@

    - + src/aggregations/pipeline-aggregations/avg-bucket-aggregation.js @@ -56074,7 +56132,7 @@

    - + src/aggregations/pipeline-aggregations/derivative-aggregation.js @@ -56186,7 +56244,7 @@

    - + src/aggregations/pipeline-aggregations/derivative-aggregation.js @@ -56288,7 +56346,7 @@

    - + src/aggregations/pipeline-aggregations/max-bucket-aggregation.js @@ -56396,7 +56454,7 @@

    - + src/aggregations/pipeline-aggregations/min-bucket-aggregation.js @@ -56504,7 +56562,7 @@

    - + src/aggregations/pipeline-aggregations/sum-bucket-aggregation.js @@ -56608,7 +56666,7 @@

    - + src/aggregations/pipeline-aggregations/stats-bucket-aggregation.js @@ -56713,7 +56771,7 @@

    - + src/aggregations/pipeline-aggregations/extended-stats-bucket-aggregation.js @@ -56819,7 +56877,7 @@

    - + src/aggregations/pipeline-aggregations/extended-stats-bucket-aggregation.js @@ -56906,7 +56964,7 @@

    - + src/aggregations/pipeline-aggregations/percentiles-bucket-aggregation.js @@ -57012,7 +57070,7 @@

    - + src/aggregations/pipeline-aggregations/percentiles-bucket-aggregation.js @@ -57098,7 +57156,7 @@

    - + src/aggregations/pipeline-aggregations/moving-average-aggregation.js @@ -57216,7 +57274,7 @@

    - + src/aggregations/pipeline-aggregations/moving-average-aggregation.js @@ -57280,7 +57338,7 @@

    - + src/aggregations/pipeline-aggregations/moving-average-aggregation.js @@ -57389,7 +57447,7 @@

    - + src/aggregations/pipeline-aggregations/moving-average-aggregation.js @@ -57478,7 +57536,7 @@

    - + src/aggregations/pipeline-aggregations/moving-average-aggregation.js @@ -57573,7 +57631,7 @@

    - + src/aggregations/pipeline-aggregations/moving-average-aggregation.js @@ -57663,7 +57721,7 @@

    - + src/aggregations/pipeline-aggregations/moving-average-aggregation.js @@ -57760,7 +57818,7 @@

    - + src/aggregations/pipeline-aggregations/moving-function-aggregation.js @@ -57899,7 +57957,7 @@

    - + src/aggregations/pipeline-aggregations/moving-function-aggregation.js @@ -57987,7 +58045,7 @@

    - + src/aggregations/pipeline-aggregations/moving-function-aggregation.js @@ -58075,7 +58133,7 @@

    - + src/aggregations/pipeline-aggregations/moving-function-aggregation.js @@ -58167,7 +58225,7 @@

    - + src/aggregations/pipeline-aggregations/cumulative-sum-aggregation.js @@ -58266,7 +58324,7 @@

    - + src/aggregations/pipeline-aggregations/cumulative-sum-aggregation.js @@ -58335,7 +58393,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-script-aggregation.js @@ -58446,7 +58504,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-script-aggregation.js @@ -58542,7 +58600,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-selector-aggregation.js @@ -58661,7 +58719,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-selector-aggregation.js @@ -58725,7 +58783,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-selector-aggregation.js @@ -58821,7 +58879,7 @@

    - + src/aggregations/pipeline-aggregations/serial-differencing-aggregation.js @@ -58925,7 +58983,7 @@

    - + src/aggregations/pipeline-aggregations/serial-differencing-aggregation.js @@ -59012,7 +59070,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-sort-aggregation.js @@ -59106,7 +59164,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-sort-aggregation.js @@ -59187,7 +59245,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-sort-aggregation.js @@ -59268,7 +59326,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-sort-aggregation.js @@ -59414,7 +59472,7 @@

    - + src/aggregations/matrix-aggregations/matrix-stats-aggregation.js @@ -59505,7 +59563,7 @@

    - + src/aggregations/matrix-aggregations/matrix-stats-aggregation.js @@ -59594,7 +59652,7 @@

    - + src/aggregations/matrix-aggregations/matrix-stats-aggregation.js @@ -59685,7 +59743,7 @@

    - + src/aggregations/matrix-aggregations/matrix-stats-aggregation.js @@ -59842,7 +59900,7 @@

    - + src/queries/compound-queries/score-functions/score-function.js @@ -59913,7 +59971,7 @@

    - + src/queries/compound-queries/score-functions/score-function.js @@ -59996,7 +60054,7 @@

    - + src/queries/compound-queries/score-functions/score-function.js @@ -60077,7 +60135,7 @@

    - + src/queries/compound-queries/score-functions/score-function.js @@ -60148,7 +60206,7 @@

    - + src/queries/compound-queries/score-functions/script-score-function.js @@ -60244,7 +60302,7 @@

    - + src/queries/compound-queries/score-functions/script-score-function.js @@ -60328,7 +60386,7 @@

    - + src/queries/compound-queries/score-functions/weight-score-function.js @@ -60412,7 +60470,7 @@

    - + src/queries/compound-queries/score-functions/weight-score-function.js @@ -60483,7 +60541,7 @@

    - + src/queries/compound-queries/score-functions/random-score-function.js @@ -60551,7 +60609,7 @@

    - + src/queries/compound-queries/score-functions/random-score-function.js @@ -60637,7 +60695,7 @@

    - + src/queries/compound-queries/score-functions/field-value-factor-function.js @@ -60725,7 +60783,7 @@

    - + src/queries/compound-queries/score-functions/field-value-factor-function.js @@ -60806,7 +60864,7 @@

    - + src/queries/compound-queries/score-functions/field-value-factor-function.js @@ -60887,7 +60945,7 @@

    - + src/queries/compound-queries/score-functions/field-value-factor-function.js @@ -60994,7 +61052,7 @@

    - + src/queries/compound-queries/score-functions/field-value-factor-function.js @@ -61081,7 +61139,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61199,7 +61257,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61289,7 +61347,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61357,7 +61415,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61425,7 +61483,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61493,7 +61551,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61574,7 +61632,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61658,7 +61716,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61743,7 +61801,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61825,7 +61883,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61907,7 +61965,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -62038,7 +62096,7 @@

    - + src/core/suggester.js @@ -62148,7 +62206,7 @@

    - + src/core/suggester.js @@ -62230,7 +62288,7 @@

    - + src/core/suggester.js @@ -62310,7 +62368,7 @@

    - + src/core/suggester.js @@ -62380,7 +62438,7 @@

    - + src/suggesters/analyzed-suggester-base.js @@ -62504,7 +62562,7 @@

    - + src/suggesters/analyzed-suggester-base.js @@ -62586,7 +62644,7 @@

    - + src/suggesters/analyzed-suggester-base.js @@ -62668,7 +62726,7 @@

    - + src/suggesters/analyzed-suggester-base.js @@ -62760,7 +62818,7 @@

    - + src/suggesters/term-suggester.js @@ -62876,7 +62934,7 @@

    - + src/suggesters/term-suggester.js @@ -62982,7 +63040,7 @@

    - + src/suggesters/term-suggester.js @@ -63093,7 +63151,7 @@

    - + src/suggesters/term-suggester.js @@ -63177,7 +63235,7 @@

    - + src/suggesters/term-suggester.js @@ -63262,7 +63320,7 @@

    - + src/suggesters/term-suggester.js @@ -63345,7 +63403,7 @@

    - + src/suggesters/term-suggester.js @@ -63432,7 +63490,7 @@

    - + src/suggesters/term-suggester.js @@ -63519,7 +63577,7 @@

    - + src/suggesters/term-suggester.js @@ -63608,7 +63666,7 @@

    - + src/suggesters/term-suggester.js @@ -63735,7 +63793,7 @@

    - + src/suggesters/direct-generator.js @@ -63809,7 +63867,7 @@

    - + src/suggesters/direct-generator.js @@ -63891,7 +63949,7 @@

    - + src/suggesters/direct-generator.js @@ -63971,7 +64029,7 @@

    - + src/suggesters/direct-generator.js @@ -64088,7 +64146,7 @@

    - + src/suggesters/direct-generator.js @@ -64172,7 +64230,7 @@

    - + src/suggesters/direct-generator.js @@ -64257,7 +64315,7 @@

    - + src/suggesters/direct-generator.js @@ -64340,7 +64398,7 @@

    - + src/suggesters/direct-generator.js @@ -64427,7 +64485,7 @@

    - + src/suggesters/direct-generator.js @@ -64514,7 +64572,7 @@

    - + src/suggesters/direct-generator.js @@ -64603,7 +64661,7 @@

    - + src/suggesters/direct-generator.js @@ -64687,7 +64745,7 @@

    - + src/suggesters/direct-generator.js @@ -64770,7 +64828,7 @@

    - + src/suggesters/direct-generator.js @@ -64840,7 +64898,7 @@

    - + src/suggesters/phrase-suggester.js @@ -64961,7 +65019,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65048,7 +65106,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65132,7 +65190,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65219,7 +65277,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65309,7 +65367,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65392,7 +65450,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65485,7 +65543,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65612,7 +65670,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65715,7 +65773,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65818,7 +65876,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65888,7 +65946,7 @@

    - + src/suggesters/completion-suggester.js @@ -66007,7 +66065,7 @@

    - + src/suggesters/completion-suggester.js @@ -66087,7 +66145,7 @@

    - + src/suggesters/completion-suggester.js @@ -66170,7 +66228,7 @@

    - + src/suggesters/completion-suggester.js @@ -66255,7 +66313,7 @@

    - + src/suggesters/completion-suggester.js @@ -66350,7 +66408,7 @@

    - + src/suggesters/completion-suggester.js @@ -66431,7 +66489,7 @@

    - + src/suggesters/completion-suggester.js @@ -66514,7 +66572,7 @@

    - + src/suggesters/completion-suggester.js @@ -66598,7 +66656,7 @@

    - + src/suggesters/completion-suggester.js @@ -66684,7 +66742,7 @@

    - + src/suggesters/completion-suggester.js @@ -66772,7 +66830,7 @@

    - + src/suggesters/completion-suggester.js @@ -66870,7 +66928,7 @@

    - + src/suggesters/completion-suggester.js @@ -66953,7 +67011,7 @@

    - + src/suggesters/completion-suggester.js @@ -67153,7 +67211,7 @@

    - + src/core/highlight.js @@ -67262,7 +67320,7 @@

    - + src/core/highlight.js @@ -67344,7 +67402,7 @@

    - + src/core/highlight.js @@ -67436,7 +67494,7 @@

    - + src/core/highlight.js @@ -67538,7 +67596,7 @@

    - + src/core/highlight.js @@ -67640,7 +67698,7 @@

    - + src/core/highlight.js @@ -67714,7 +67772,7 @@

    - + src/core/highlight.js @@ -67802,7 +67860,7 @@

    - + src/core/highlight.js @@ -67901,7 +67959,7 @@

    - + src/core/highlight.js @@ -68004,7 +68062,7 @@

    - + src/core/highlight.js @@ -68105,7 +68163,7 @@

    - + src/core/highlight.js @@ -68224,7 +68282,7 @@

    - + src/core/highlight.js @@ -68347,7 +68405,7 @@

    - + src/core/highlight.js @@ -68433,7 +68491,7 @@

    - + src/core/highlight.js @@ -68530,7 +68588,7 @@

    - + src/core/highlight.js @@ -68631,7 +68689,7 @@

    - + src/core/highlight.js @@ -68722,7 +68780,7 @@

    - + src/core/highlight.js @@ -68814,7 +68872,7 @@

    - + src/core/highlight.js @@ -68937,7 +68995,7 @@

    - + src/core/highlight.js @@ -69033,7 +69091,7 @@

    - + src/core/highlight.js @@ -69151,7 +69209,7 @@

    - + src/core/highlight.js @@ -69221,7 +69279,7 @@

    - + src/core/script.js @@ -69329,7 +69387,7 @@

    - + src/core/script.js @@ -69411,7 +69469,7 @@

    - + src/core/script.js @@ -69494,7 +69552,7 @@

    - + src/core/script.js @@ -69577,7 +69635,7 @@

    - + src/core/script.js @@ -69661,7 +69719,7 @@

    - + src/core/script.js @@ -69751,7 +69809,7 @@

    - + src/core/script.js @@ -69839,7 +69897,7 @@

    - + src/core/script.js @@ -69920,7 +69978,7 @@

    - + src/core/script.js @@ -69990,7 +70048,7 @@

    - + src/core/geo-point.js @@ -70045,7 +70103,7 @@

    - + src/core/geo-point.js @@ -70126,7 +70184,7 @@

    - + src/core/geo-point.js @@ -70207,7 +70265,7 @@

    - + src/core/geo-point.js @@ -70298,7 +70356,7 @@

    - + src/core/geo-point.js @@ -70394,7 +70452,7 @@

    - + src/core/geo-point.js @@ -70475,7 +70533,7 @@

    - + src/core/geo-point.js @@ -70545,7 +70603,7 @@

    - + src/core/geo-shape.js @@ -70655,7 +70713,7 @@

    - + src/core/geo-shape.js @@ -70763,7 +70821,7 @@

    - + src/core/geo-shape.js @@ -70853,7 +70911,7 @@

    - + src/core/geo-shape.js @@ -70943,7 +71001,7 @@

    - + src/core/geo-shape.js @@ -71014,7 +71072,7 @@

    - + src/core/indexed-shape.js @@ -71108,7 +71166,7 @@

    - + src/core/indexed-shape.js @@ -71189,7 +71247,7 @@

    - + src/core/indexed-shape.js @@ -71270,7 +71328,7 @@

    - + src/core/indexed-shape.js @@ -71351,7 +71409,7 @@

    - + src/core/indexed-shape.js @@ -71433,7 +71491,7 @@

    - + src/core/indexed-shape.js @@ -71504,7 +71562,7 @@

    - + src/core/sort.js @@ -71599,7 +71657,7 @@

    - + src/core/sort.js @@ -71688,7 +71746,7 @@

    - + src/core/sort.js @@ -71798,7 +71856,7 @@

    - + src/core/sort.js @@ -71891,7 +71949,7 @@

    - + src/core/sort.js @@ -71993,7 +72051,7 @@

    - + src/core/sort.js @@ -72131,7 +72189,7 @@

    - + src/core/sort.js @@ -72219,7 +72277,7 @@

    - + src/core/sort.js @@ -72308,7 +72366,7 @@

    - + src/core/sort.js @@ -72416,7 +72474,7 @@

    - + src/core/sort.js @@ -72512,7 +72570,7 @@

    - + src/core/sort.js @@ -72606,7 +72664,7 @@

    - + src/core/sort.js @@ -72710,7 +72768,7 @@

    - + src/core/sort.js @@ -72792,7 +72850,7 @@

    - + src/core/sort.js @@ -72873,7 +72931,7 @@

    - + src/core/sort.js @@ -72954,7 +73012,7 @@

    - + src/core/sort.js @@ -73024,7 +73082,7 @@

    - + src/core/rescore.js @@ -73128,7 +73186,7 @@

    - + src/core/rescore.js @@ -73209,7 +73267,7 @@

    - + src/core/rescore.js @@ -73300,7 +73358,7 @@

    - + src/core/rescore.js @@ -73381,7 +73439,7 @@

    - + src/core/rescore.js @@ -73462,7 +73520,7 @@

    - + src/core/rescore.js @@ -73556,7 +73614,7 @@

    - + src/core/rescore.js @@ -73626,7 +73684,7 @@

    - + src/core/inner-hits.js @@ -73711,7 +73769,7 @@

    - + src/core/inner-hits.js @@ -73793,7 +73851,7 @@

    - + src/core/inner-hits.js @@ -73874,7 +73932,7 @@

    - + src/core/inner-hits.js @@ -73956,7 +74014,7 @@

    - + src/core/inner-hits.js @@ -74049,7 +74107,7 @@

    - + src/core/inner-hits.js @@ -74144,7 +74202,7 @@

    - + src/core/inner-hits.js @@ -74229,7 +74287,7 @@

    - + src/core/inner-hits.js @@ -74309,7 +74367,7 @@

    - + src/core/inner-hits.js @@ -74393,7 +74451,7 @@

    - + src/core/inner-hits.js @@ -74473,7 +74531,7 @@

    - + src/core/inner-hits.js @@ -74563,7 +74621,7 @@

    - + src/core/inner-hits.js @@ -74649,7 +74707,7 @@

    - + src/core/inner-hits.js @@ -74730,7 +74788,7 @@

    - + src/core/inner-hits.js @@ -74810,7 +74868,7 @@

    - + src/core/inner-hits.js @@ -74880,7 +74938,7 @@

    - + src/core/search-template.js @@ -75008,7 +75066,7 @@

    - + src/core/search-template.js @@ -75090,7 +75148,7 @@

    - + src/core/search-template.js @@ -75172,7 +75230,7 @@

    - + src/core/search-template.js @@ -75255,7 +75313,7 @@

    - + src/core/search-template.js @@ -75355,7 +75413,7 @@

    - + src/core/search-template.js @@ -75436,7 +75494,7 @@

    - + src/core/search-template.js @@ -75506,7 +75564,7 @@

    - + src/index.js @@ -75578,7 +75636,7 @@

    - + src/core/inspect.js @@ -75662,7 +75720,7 @@

    - + src/queries/specialized-queries/script-score-query.js @@ -75732,7 +75790,7 @@

    - + src/queries/specialized-queries/script-score-query.js @@ -75815,7 +75873,7 @@

    - + src/queries/specialized-queries/script-score-query.js @@ -75898,7 +75956,7 @@

    - + src/queries/specialized-queries/script-score-query.js @@ -75984,7 +76042,7 @@

    - + src/queries/specialized-queries/distance-feature-query.js @@ -76072,7 +76130,7 @@

    + + + + + + + + +
    + + + + + +

    The rank_feature query boosts the relevance score on the numeric value of +document with a rank_feature/rank_features field.

    +

    Elasticsearch reference

    +

    NOTE: This query was added in elasticsearch v7.0.

    + + + +
    new RankFeatureQuery(field: string)
    + + + +

    + Extends + + Query + +

    + + + + + + + + + + +
    Parameters
    +
    + +
    +
    + field (string) + The field inside the document to be used in the query + +
    + +
    + +
    + + + + + + + + + +
    Example
    + + +
    const query = new RankFeatureQuery('rank_feature_field');
    +  query
    +      .linear()
    +      .toJSON();
    + + + + + + +
    Instance Members
    +
    + +
    +
    +
    + + field(fieldName) +
    +
    + +
    + +
    +
    +
    + + linear() +
    +
    + +
    + +
    +
    +
    + + saturation() +
    +
    + +
    + +
    +
    +
    + + saturationPivot(pivot) +
    +
    + +
    + +
    +
    +
    + + log(scalingFactor, scaling_factor) +
    +
    + +
    + +
    +
    +
    + + sigmoid(pivot, exponent) +
    +
    + @@ -76320,7 +76931,7 @@

    - + src/aggregations/bucket-aggregations/variable-width-histogram-aggregation.js @@ -76424,7 +77035,7 @@

    - + src/aggregations/bucket-aggregations/variable-width-histogram-aggregation.js @@ -76510,7 +77121,7 @@

    - + src/aggregations/bucket-aggregations/geo-hex-grid-aggregation.js @@ -76604,7 +77215,7 @@

    - + src/aggregations/bucket-aggregations/geo-hex-grid-aggregation.js @@ -76668,7 +77279,7 @@

    - + src/aggregations/bucket-aggregations/geo-hex-grid-aggregation.js @@ -76732,7 +77343,7 @@

    - + src/aggregations/bucket-aggregations/geo-hex-grid-aggregation.js @@ -76821,7 +77432,7 @@

    - + src/aggregations/bucket-aggregations/geo-hex-grid-aggregation.js @@ -76905,7 +77516,7 @@

    - + src/aggregations/bucket-aggregations/geo-hex-grid-aggregation.js @@ -76992,7 +77603,7 @@

    - + src/aggregations/bucket-aggregations/geo-tile-grid-aggregation.js @@ -77087,7 +77698,7 @@