1(function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId]){return installedModules[moduleId].exports}var module=installedModules[moduleId]={i:moduleId,l:false,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.l=true;return module.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.d=function(exports,name,getter){if(!__webpack_require__.o(exports,name)){Object.defineProperty(exports,name,{enumerable:true,get:getter})}};__webpack_require__.r=function(exports){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(exports,"__esModule",{value:true})};__webpack_require__.t=function(value,mode){if(mode&1)value=__webpack_require__(value);if(mode&8)return value;if(mode&4&&typeof value==="object"&&value&&value.__esModule)return value;var ns=Object.create(null);__webpack_require__.r(ns);Object.defineProperty(ns,"default",{enumerable:true,value:value});if(mode&2&&typeof value!="string")for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key));return ns};__webpack_require__.n=function(module){var getter=module&&module.__esModule?function getDefault(){return module["default"]}:function getModuleExports(){return module};__webpack_require__.d(getter,"a",getter);return getter};__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=44)})([function(module,exports){module.exports=__osdSharedDeps__.React},function(module,exports){module.exports=__osdSharedDeps__.ElasticEui},function(module,exports){module.exports=__osdSharedDeps__.OsdI18n},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);var ns=__osdBundles__.get("plugin/data/public");Object.defineProperties(__webpack_exports__,Object.getOwnPropertyDescriptors(ns))},function(module,exports){module.exports=__osdSharedDeps__.RxjsOperators},function(module,exports){module.exports=__osdSharedDeps__.OsdI18nReact},function(module,exports){module.exports=__osdSharedDeps__.Lodash},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);var ns=__osdBundles__.get("plugin/data/common");Object.defineProperties(__webpack_exports__,Object.getOwnPropertyDescriptors(ns))},function(module,exports,__webpack_require__){const debug=__webpack_require__(20);const{MAX_LENGTH:MAX_LENGTH,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER}=__webpack_require__(19);const{safeRe:re,t:t}=__webpack_require__(18);const parseOptions=__webpack_require__(24);const{compareIdentifiers:compareIdentifiers}=__webpack_require__(34);class SemVer{constructor(version,options){options=parseOptions(options);if(version instanceof SemVer){if(version.loose===!!options.loose&&version.includePrerelease===!!options.includePrerelease){return version}else{version=version.version}}else if(typeof version!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`)}if(version.length>MAX_LENGTH){throw new TypeError(`version is longer than ${MAX_LENGTH} characters`)}debug("SemVer",version,options);this.options=options;this.loose=!!options.loose;this.includePrerelease=!!options.includePrerelease;const m=version.trim().match(options.loose?re[t.LOOSE]:re[t.FULL]);if(!m){throw new TypeError(`Invalid Version: ${version}`)}this.raw=version;this.major=+m[1];this.minor=+m[2];this.patch=+m[3];if(this.major>MAX_SAFE_INTEGER||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>MAX_SAFE_INTEGER||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>MAX_SAFE_INTEGER||this.patch<0){throw new TypeError("Invalid patch version")}if(!m[4]){this.prerelease=[]}else{this.prerelease=m[4].split(".").map(id=>{if(/^[0-9]+$/.test(id)){const num=+id;if(num>=0&&num<MAX_SAFE_INTEGER){return num}}return id})}this.build=m[5]?m[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(other){debug("SemVer.compare",this.version,this.options,other);if(!(other instanceof SemVer)){if(typeof other==="string"&&other===this.version){return 0}other=new SemVer(other,this.options)}if(other.version===this.version){return 0}return this.compareMain(other)||this.comparePre(other)}compareMain(other){if(!(other instanceof SemVer)){other=new SemVer(other,this.options)}return compareIdentifiers(this.major,other.major)||compareIdentifiers(this.minor,other.minor)||compareIdentifiers(this.patch,other.patch)}comparePre(other){if(!(other instanceof SemVer)){other=new SemVer(other,this.options)}if(this.prerelease.length&&!other.prerelease.length){return-1}else if(!this.prerelease.length&&other.prerelease.length){return 1}else if(!this.prerelease.length&&!other.prerelease.length){return 0}let i=0;do{const a=this.prerelease[i];const b=other.prerelease[i];debug("prerelease compare",i,a,b);
1if(a===undefined&&b===undefined){return 0}else if(b===undefined){return 1}else if(a===undefined){return-1}else if(a===b){continue}else{return compareIdentifiers(a,b)}}while(++i)}compareBuild(other){if(!(other instanceof SemVer)){other=new SemVer(other,this.options)}let i=0;do{const a=this.build[i];const b=other.build[i];debug("prerelease compare",i,a,b);if(a===undefined&&b===undefined){return 0}else if(b===undefined){return 1}else if(a===undefined){return-1}else if(a===b){continue}else{return compareIdentifiers(a,b)}}while(++i)}inc(release,identifier,identifierBase){switch(release){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",identifier,identifierBase);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",identifier,identifierBase);break;case"prepatch":this.prerelease.length=0;this.inc("patch",identifier,identifierBase);this.inc("pre",identifier,identifierBase);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",identifier,identifierBase)}this.inc("pre",identifier,identifierBase);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const base=Number(identifierBase)?1:0;if(!identifier&&identifierBase===false){throw new Error("invalid increment argument: identifier is empty")}if(this.prerelease.length===0){this.prerelease=[base]}else{let i=this.prerelease.length;while(--i>=0){if(typeof this.prerelease[i]==="number"){this.prerelease[i]++;i=-2}}if(i===-1){if(identifier===this.prerelease.join(".")&&identifierBase===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(base)}}if(identifier){let prerelease=[identifier,base];if(identifierBase===false){prerelease=[identifier]}if(compareIdentifiers(this.prerelease[0],identifier)===0){if(isNaN(this.prerelease[1])){this.prerelease=prerelease}}else{this.prerelease=prerelease}}break}default:throw new Error(`invalid increment argument: ${release}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}module.exports=SemVer},function(module,exports){module.exports=__osdSharedDeps__.Rxjs},function(module,exports,__webpack_require__){"use strict";module.exports=function(cssWithMappingToString){var list=[];list.toString=function toString(){return this.map((function(item){var content=cssWithMappingToString(item);if(item[2]){return"@media ".concat(item[2]," {").concat(content,"}")}return content})).join("")};list.i=function(modules,mediaQuery,dedupe){if(typeof modules==="string"){modules=[[null,modules,""]]}var alreadyImportedModules={};if(dedupe){for(var i=0;i<this.length;i++){var id=this[i][0];if(id!=null){alreadyImportedModules[id]=true}}}for(var _i=0;_i<modules.length;_i++){var item=[].concat(modules[_i]);if(dedupe&&alreadyImportedModules[item[0]]){continue}if(mediaQuery){if(!item[2]){item[2]=mediaQuery}else{item[2]="".concat(mediaQuery," and ").concat(item[2])}}list.push(item)}};return list}},function(module,exports,__webpack_require__){const SemVer=__webpack_require__(8);const compare=(a,b,loose)=>new SemVer(a,loose).compare(new SemVer(b,loose));module.exports=compare},function(module,exports,__webpack_require__){class Range{constructor(range,options){options=parseOptions(options);if(range instanceof Range){if(range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease){return range}else{return new Range(range.raw,options)}}if(range instanceof Comparator){this.raw=range.value;this.set=[[range]];this.format();return this}this.options=options;this.loose=!!options.loose;this.includePrerelease=!!options.includePrerelease;this.raw=range.trim().split(/\s+/).join(" ");this.set=this.raw.split("||").map(r=>this.parseRange(r.trim())).filter(c=>c.length);if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const first=this.set[0];this.set=this.set.filter(c=>!isNullSet(c[0]));if(this.set.length===0){this.set=[first]}else if(this.set.length>1){for(const c of this.set){if(c.length===1&&isAny(c[0])){this.set=[c];break}}}}this.format()}format(){this.range=this.set.map(comps=>comps.join(" ").trim()).join("||").trim();return this.range}toString(){return this.range}parseRange(range){const memoOpts=(this.options.includePrerelease&&FLAG_INCLUDE_PRERELEASE)|(this.options.loose&&FLAG_LOOSE);const memoKey=memoOpts+":"+range;const cached=cache.get(memoKey);if(cached){return cached}const loose=this.options.loose;const hr=loose?re[t.HYPHENRANGELOOSE]:re[t.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease));debug("hyphen replace",range);range=range.replace(re[t.COMPARATORTRIM],comparatorTrimReplace);debug("comparator trim",range);range=range.replace(re[t.TILDETRIM],tildeTrimReplace);debug("tilde trim",range);range=range.replace(re[t.CARETTRIM],caretTrimReplace);debug("caret trim",range);let rangeList=range.split(" ").map(comp=>parseComparator(comp,this.options)).join(" ").split(/\s+/).map(comp=>replaceGTE0(comp,this.options));if(loose){rangeList=rangeList.filter(comp=>{debug("loose invalid filter",comp,this.options);return!!comp.match(re[t.COMPARATORLOOSE])})}debug("range list",rangeList);const rangeMap=new Map;const comparators=rangeList.map(comp=>new Comparator(comp,this.options));
1for(const comp of comparators){if(isNullSet(comp)){return[comp]}rangeMap.set(comp.value,comp)}if(rangeMap.size>1&&rangeMap.has("")){rangeMap.delete("")}const result=[...rangeMap.values()];cache.set(memoKey,result);return result}intersects(range,options){if(!(range instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(thisComparators=>isSatisfiable(thisComparators,options)&&range.set.some(rangeComparators=>isSatisfiable(rangeComparators,options)&&thisComparators.every(thisComparator=>rangeComparators.every(rangeComparator=>thisComparator.intersects(rangeComparator,options)))))}test(version){if(!version){return false}if(typeof version==="string"){try{version=new SemVer(version,this.options)}catch(er){return false}}for(let i=0;i<this.set.length;i++){if(testSet(this.set[i],version,this.options)){return true}}return false}}module.exports=Range;const LRU=__webpack_require__(73);const cache=new LRU({max:1e3});const parseOptions=__webpack_require__(24);const Comparator=__webpack_require__(22);const debug=__webpack_require__(20);const SemVer=__webpack_require__(8);const{safeRe:re,t:t,comparatorTrimReplace:comparatorTrimReplace,tildeTrimReplace:tildeTrimReplace,caretTrimReplace:caretTrimReplace}=__webpack_require__(18);const{FLAG_INCLUDE_PRERELEASE:FLAG_INCLUDE_PRERELEASE,FLAG_LOOSE:FLAG_LOOSE}=__webpack_require__(19);const isNullSet=c=>c.value==="<0.0.0-0";const isAny=c=>c.value==="";const isSatisfiable=(comparators,options)=>{let result=true;const remainingComparators=comparators.slice();let testComparator=remainingComparators.pop();while(result&&remainingComparators.length){result=remainingComparators.every(otherComparator=>testComparator.intersects(otherComparator,options));testComparator=remainingComparators.pop()}return result};const parseComparator=(comp,options)=>{debug("comp",comp,options);comp=replaceCarets(comp,options);debug("caret",comp);comp=replaceTildes(comp,options);debug("tildes",comp);comp=replaceXRanges(comp,options);debug("xrange",comp);comp=replaceStars(comp,options);debug("stars",comp);return comp};const isX=id=>!id||id.toLowerCase()==="x"||id==="*";const replaceTildes=(comp,options)=>comp.trim().split(/\s+/).map(c=>replaceTilde(c,options)).join(" ");const replaceTilde=(comp,options)=>{const r=options.loose?re[t.TILDELOOSE]:re[t.TILDE];return comp.replace(r,(_,M,m,p,pr)=>{debug("tilde",comp,_,M,m,p,pr);let ret;if(isX(M)){ret=""}else if(isX(m)){ret=`>=${M}.0.0 <${+M+1}.0.0-0`}else if(isX(p)){ret=`>=${M}.${m}.0 <${M}.${+m+1}.0-0`}else if(pr){debug("replaceTilde pr",pr);ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`}else{ret=`>=${M}.${m}.${p} <${M}.${+m+1}.0-0`}debug("tilde return",ret);return ret})};const replaceCarets=(comp,options)=>comp.trim().split(/\s+/).map(c=>replaceCaret(c,options)).join(" ");const replaceCaret=(comp,options)=>{debug("caret",comp,options);const r=options.loose?re[t.CARETLOOSE]:re[t.CARET];const z=options.includePrerelease?"-0":"";return comp.replace(r,(_,M,m,p,pr)=>{debug("caret",comp,_,M,m,p,pr);let ret;if(isX(M)){ret=""}else if(isX(m)){ret=`>=${M}.0.0${z} <${+M+1}.0.0-0`}else if(isX(p)){if(M==="0"){ret=`>=${M}.${m}.0${z} <${M}.${+m+1}.0-0`}else{ret=`>=${M}.${m}.0${z} <${+M+1}.0.0-0`}}else if(pr){debug("replaceCaret pr",pr);if(M==="0"){if(m==="0"){ret=`>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p+1}-0`}else{ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`}}else{ret=`>=${M}.${m}.${p}-${pr} <${+M+1}.0.0-0`}}else{debug("no pr");if(M==="0"){if(m==="0"){ret=`>=${M}.${m}.${p}${z} <${M}.${m}.${+p+1}-0`}else{ret=`>=${M}.${m}.${p}${z} <${M}.${+m+1}.0-0`}}else{ret=`>=${M}.${m}.${p} <${+M+1}.0.0-0`}}debug("caret return",ret);return ret})};const replaceXRanges=(comp,options)=>{debug("replaceXRanges",comp,options);return comp.split(/\s+/).map(c=>replaceXRange(c,options)).join(" ")};const replaceXRange=(comp,options)=>{comp=comp.trim();const r=options.loose?re[t.XRANGELOOSE]:re[t.XRANGE];return comp.replace(r,(ret,gtlt,M,m,p,pr)=>{debug("xRange",comp,ret,gtlt,M,m,p,pr);const xM=isX(M);const xm=xM||isX(m);const xp=xm||isX(p);const anyX=xp;if(gtlt==="="&&anyX){gtlt=""}pr=options.includePrerelease?"-0":"";if(xM){if(gtlt===">"||gtlt==="<"){ret="<0.0.0-0"}else{ret="*"}}else if(gtlt&&anyX){if(xm){m=0}p=0;if(gtlt===">"){gtlt=">=";if(xm){M=+M+1;m=0;p=0}else{m=+m+1;p=0}}else if(gtlt==="<="){gtlt="<";if(xm){M=+M+1}else{m=+m+1}}if(gtlt==="<"){pr="-0"}ret=`${gtlt+M}.${m}.${p}${pr}`}else if(xm){ret=`>=${M}.0.0${pr} <${+M+1}.0.0-0`}else if(xp){ret=`>=${M}.${m}.0${pr} <${M}.${+m+1}.0-0`}debug("xRange return",ret);return ret})};const replaceStars=(comp,options)=>{debug("replaceStars",comp,options);return comp.trim().replace(re[t.STAR],"")};const replaceGTE0=(comp,options)=>{debug("replaceGTE0",comp,options);return comp.trim().replace(re[options.includePrerelease?t.GTE0PRE:t.GTE0],"")};const hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr,tb)=>{if(isX(fM)){from=""}else if(isX(fm)){from=`>=${fM}.0.0${incPr?"-0":""}`}else if(isX(fp)){from=`>=${fM}.${fm}.0${incPr?"-0":""}`}else if(fpr){from=`>=${from}`}else{from=`>=${from}${incPr?"-0":""}`}if(isX(tM)){to=""}else if(isX(tm)){to=`<${+tM+1}.0.0-0`}else if(isX(tp)){to=`<${tM}.${+tm+1}.0-0`}else if(tpr){to=`<=${tM}.${tm}.${tp}-${tpr}`}else if(incPr){to=`<${tM}.${tm}.${+tp+1}-0`}else{to=`<=${to}`}return`${from} ${to}`.trim()};const testSet=(set,version,options)=>{for(let i=0;i<set.length;i++){if(!set[i].test(version)){return false}}if(version.prerelease.length&&!options.includePrerelease){for(let i=0;i<set.length;i++){debug(set[i].semver);if(set[i].semver===Comparator.ANY){continue}if(set[i].semver.prerelease.length>0){const allowed=set[i].semver;if(allowed.major===version.major&&allowed.minor===version.minor&&allowed.patch===version.patch){return true}}}return false}return true}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);var ns=__osdBundles__.get("plugin/opensearchDashboardsReact/public");Object.defineProperties(__webpack_exports__,Object.getOwnPropertyDescriptors(ns))},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});function _interopDefault(ex){return ex&&typeof ex==="object"&&"default"in ex?ex["default"]:ex}var allLocaleData=_interopDefault(__webpack_require__(88));var IntlMessageFormat=_interopDefault(__webpack_require__(40));var IntlRelativeFormat=_interopDefault(__webpack_require__(97));var PropTypes=_interopDefault(__webpack_require__(104));var React=__webpack_require__(0);var React__default=_interopDefault(React);var hoistNonReactStatics=_interopDefault(__webpack_require__(107));var invariant=_interopDefault(__webpack_require__(110));var memoizeIntlConstructor=_interopDefault(__webpack_require__(111));var defaultLocaleData={locale:"en",pluralRuleFunction:function pluralRuleFunction(n,ord){var s=String(n).split("."),v0=!s[1],t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2);if(ord)return n10==1&&n100!=11?"one":n10==2&&n100!=12?"two":n10==3&&n100!=13?"few":"other";return n==1&&v0?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr.",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo.",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr.",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min.",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec.",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}}};function addLocaleData(){var data=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var locales=Array.isArray(data)?data:[data];
1locales.forEach((function(localeData){if(localeData&&localeData.locale){IntlMessageFormat.__addLocaleData(localeData);IntlRelativeFormat.__addLocaleData(localeData)}}))}function hasLocaleData(locale){var localeParts=(locale||"").split("-");while(localeParts.length>0){if(hasIMFAndIRFLocaleData(localeParts.join("-"))){return true}localeParts.pop()}return false}function hasIMFAndIRFLocaleData(locale){var normalizedLocale=locale&&locale.toLowerCase();return!!(IntlMessageFormat.__localeData__[normalizedLocale]&&IntlRelativeFormat.__localeData__[normalizedLocale])}var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};var asyncGenerator=function(){function AwaitValue(value){this.value=value}function AsyncGenerator(gen){var front,back;function send(key,arg){return new Promise((function(resolve,reject){var request={key:key,arg:arg,resolve:resolve,reject:reject,next:null};if(back){back=back.next=request}else{front=back=request;resume(key,arg)}}))}function resume(key,arg){try{var result=gen[key](arg);var value=result.value;if(value instanceof AwaitValue){Promise.resolve(value.value).then((function(arg){resume("next",arg)}),(function(arg){resume("throw",arg)}))}else{settle(result.done?"return":"normal",result.value)}}catch(err){settle("throw",err)}}function settle(type,value){switch(type){case"return":front.resolve({value:value,done:true});break;case"throw":front.reject(value);break;default:front.resolve({value:value,done:false});break}front=front.next;if(front){resume(front.key,front.arg)}else{back=null}}this._invoke=send;if(typeof gen.return!=="function"){this.return=undefined}}if(typeof Symbol==="function"&&Symbol.asyncIterator){AsyncGenerator.prototype[Symbol.asyncIterator]=function(){return this}}AsyncGenerator.prototype.next=function(arg){return this._invoke("next",arg)};AsyncGenerator.prototype.throw=function(arg){return this._invoke("throw",arg)};AsyncGenerator.prototype.return=function(arg){return this._invoke("return",arg)};return{wrap:function(fn){return function(){return new AsyncGenerator(fn.apply(this,arguments))}},await:function(value){return new AwaitValue(value)}}}();var classCallCheck=function(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}};var createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();var defineProperty=function(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj};var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}return target};var inherits=function(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass};var objectWithoutProperties=function(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i]}return target};var possibleConstructorReturn=function(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self};var toConsumableArray=function(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}else{return Array.from(arr)}};var bool=PropTypes.bool;var number=PropTypes.number;var string=PropTypes.string;var func=PropTypes.func;var object=PropTypes.object;var oneOf=PropTypes.oneOf;var shape=PropTypes.shape;var any=PropTypes.any;var oneOfType=PropTypes.oneOfType;var localeMatcher=oneOf(["best fit","lookup"]);var narrowShortLong=oneOf(["narrow","short","long"]);var numeric2digit=oneOf(["numeric","2-digit"]);var funcReq=func.isRequired;var intlConfigPropTypes={locale:string,timeZone:string,formats:object,messages:object,textComponent:any,defaultLocale:string,defaultFormats:object,onError:func};var intlFormatPropTypes={formatDate:funcReq,formatTime:funcReq,formatRelative:funcReq,formatNumber:funcReq,formatPlural
1:funcReq,formatMessage:funcReq,formatHTMLMessage:funcReq};var intlShape=shape(_extends({},intlConfigPropTypes,intlFormatPropTypes,{formatters:object,now:funcReq}));var messageDescriptorPropTypes={id:string.isRequired,description:oneOfType([string,object]),defaultMessage:string};var dateTimeFormatPropTypes={localeMatcher:localeMatcher,formatMatcher:oneOf(["basic","best fit"]),timeZone:string,hour12:bool,weekday:narrowShortLong,era:narrowShortLong,year:numeric2digit,month:oneOf(["numeric","2-digit","narrow","short","long"]),day:numeric2digit,hour:numeric2digit,minute:numeric2digit,second:numeric2digit,timeZoneName:oneOf(["short","long"])};var numberFormatPropTypes={localeMatcher:localeMatcher,style:oneOf(["decimal","currency","percent"]),currency:string,currencyDisplay:oneOf(["symbol","code","name"]),useGrouping:bool,minimumIntegerDigits:number,minimumFractionDigits:number,maximumFractionDigits:number,minimumSignificantDigits:number,maximumSignificantDigits:number};var relativeFormatPropTypes={style:oneOf(["best fit","numeric"]),units:oneOf(["second","minute","hour","day","month","year","second-short","minute-short","hour-short","day-short","month-short","year-short"])};var pluralFormatPropTypes={style:oneOf(["cardinal","ordinal"])};var intlConfigPropNames=Object.keys(intlConfigPropTypes);var ESCAPED_CHARS={"&":"&",">":">","<":"<",'"':""","'":"'"};var UNSAFE_CHARS_REGEX=/[&><"']/g;function escape(str){return(""+str).replace(UNSAFE_CHARS_REGEX,(function(match){return ESCAPED_CHARS[match]}))}function filterProps(props,whitelist){var defaults$$1=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return whitelist.reduce((function(filtered,name){if(props.hasOwnProperty(name)){filtered[name]=props[name]}else if(defaults$$1.hasOwnProperty(name)){filtered[name]=defaults$$1[name]}return filtered}),{})}function invariantIntlContext(){var _ref=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},intl=_ref.intl;invariant(intl,"[React Intl] Could not find required `intl` object. "+"<IntlProvider> needs to exist in the component ancestry.")}function shallowEquals(objA,objB){if(objA===objB){return true}if((typeof objA==="undefined"?"undefined":_typeof(objA))!=="object"||objA===null||(typeof objB==="undefined"?"undefined":_typeof(objB))!=="object"||objB===null){return false}var keysA=Object.keys(objA);var keysB=Object.keys(objB);if(keysA.length!==keysB.length){return false}var bHasOwnProperty=Object.prototype.hasOwnProperty.bind(objB);for(var i=0;i<keysA.length;i++){if(!bHasOwnProperty(keysA[i])||objA[keysA[i]]!==objB[keysA[i]]){return false}}return true}function shouldIntlComponentUpdate(_ref2,nextProps,nextState){var props=_ref2.props,state=_ref2.state,_ref2$context=_ref2.context,context=_ref2$context===undefined?{}:_ref2$context;var nextContext=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var _context$intl=context.intl,intl=_context$intl===undefined?{}:_context$intl;var _nextContext$intl=nextContext.intl,nextIntl=_nextContext$intl===undefined?{}:_nextContext$intl;return!shallowEquals(nextProps,props)||!shallowEquals(nextState,state)||!(nextIntl===intl||shallowEquals(filterProps(nextIntl,intlConfigPropNames),filterProps(intl,intlConfigPropNames)))}function createError(message,exception){var eMsg=exception?"\n"+exception:"";return"[React Intl] "+message+eMsg}function defaultErrorHandler(error){if(false){}}function getDisplayName(Component$$1){return Component$$1.displayName||Component$$1.name||"Component"}function injectIntl(WrappedComponent){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var _options$intlPropName=options.intlPropName,intlPropName=_options$intlPropName===undefined?"intl":_options$intlPropName,_options$withRef=options.withRef,withRef=_options$withRef===undefined?false:_options$withRef;var InjectIntl=function(_Component){inherits(InjectIntl,_Component);function InjectIntl(props,context){classCallCheck(this,InjectIntl);var _this=possibleConstructorReturn(this,(InjectIntl.__proto__||Object.getPrototypeOf(InjectIntl)).call(this,props,context));invariantIntlContext(context);return _this}createClass(InjectIntl,[{key:"getWrappedInstance",value:function getWrappedInstance(){invariant(withRef,"[React Intl] To access the wrapped instance, "+"the `{withRef: true}` option must be set when calling: "+"`injectIntl()`");return this._wrappedInstance}},{key:"render",value:function render(){var _this2=this;return React__default.createElement(WrappedComponent,_extends({},this.props,defineProperty({}
1,intlPropName,this.context.intl),{ref:withRef?function(ref){return _this2._wrappedInstance=ref}:null}))}}]);return InjectIntl}(React.Component);InjectIntl.displayName="InjectIntl("+getDisplayName(WrappedComponent)+")";InjectIntl.contextTypes={intl:intlShape};InjectIntl.WrappedComponent=WrappedComponent;return hoistNonReactStatics(InjectIntl,WrappedComponent)}function defineMessages(messageDescriptors){return messageDescriptors}function resolveLocale(locales){return IntlMessageFormat.prototype._resolveLocale(locales)}function findPluralFunction(locale){return IntlMessageFormat.prototype._findPluralRuleFunction(locale)}var IntlPluralFormat=function IntlPluralFormat(locales){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};classCallCheck(this,IntlPluralFormat);var useOrdinal=options.style==="ordinal";var pluralFn=findPluralFunction(resolveLocale(locales));this.format=function(value){return pluralFn(value,useOrdinal)}};var DATE_TIME_FORMAT_OPTIONS=Object.keys(dateTimeFormatPropTypes);var NUMBER_FORMAT_OPTIONS=Object.keys(numberFormatPropTypes);var RELATIVE_FORMAT_OPTIONS=Object.keys(relativeFormatPropTypes);var PLURAL_FORMAT_OPTIONS=Object.keys(pluralFormatPropTypes);var RELATIVE_FORMAT_THRESHOLDS={second:60,minute:60,hour:24,day:30,month:12};function updateRelativeFormatThresholds(newThresholds){var thresholds=IntlRelativeFormat.thresholds;thresholds.second=newThresholds.second;thresholds.minute=newThresholds.minute;thresholds.hour=newThresholds.hour;thresholds.day=newThresholds.day;thresholds.month=newThresholds.month;thresholds["second-short"]=newThresholds["second-short"];thresholds["minute-short"]=newThresholds["minute-short"];thresholds["hour-short"]=newThresholds["hour-short"];thresholds["day-short"]=newThresholds["day-short"];thresholds["month-short"]=newThresholds["month-short"]}function getNamedFormat(formats,type,name,onError){var format=formats&&formats[type]&&formats[type][name];if(format){return format}onError(createError("No "+type+" format named: "+name))}function formatDate(config,state,value){var options=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var locale=config.locale,formats=config.formats,timeZone=config.timeZone;var format=options.format;var onError=config.onError||defaultErrorHandler;var date=new Date(value);var defaults$$1=_extends({},timeZone&&{timeZone:timeZone},format&&getNamedFormat(formats,"date",format,onError));var filteredOptions=filterProps(options,DATE_TIME_FORMAT_OPTIONS,defaults$$1);try{return state.getDateTimeFormat(locale,filteredOptions).format(date)}catch(e){onError(createError("Error formatting date.",e))}return String(date)}function formatTime(config,state,value){var options=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var locale=config.locale,formats=config.formats,timeZone=config.timeZone;var format=options.format;var onError=config.onError||defaultErrorHandler;var date=new Date(value);var defaults$$1=_extends({},timeZone&&{timeZone:timeZone},format&&getNamedFormat(formats,"time",format,onError));var filteredOptions=filterProps(options,DATE_TIME_FORMAT_OPTIONS,defaults$$1);if(!filteredOptions.hour&&!filteredOptions.minute&&!filteredOptions.second){filteredOptions=_extends({},filteredOptions,{hour:"numeric",minute:"numeric"})}try{return state.getDateTimeFormat(locale,filteredOptions).format(date)}catch(e){onError(createError("Error formatting time.",e))}return String(date)}function formatRelative(config,state,value){var options=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var locale=config.locale,formats=config.formats;var format=options.format;var onError=config.onError||defaultErrorHandler;var date=new Date(value);var now=new Date(options.now);var defaults$$1=format&&getNamedFormat(formats,"relative",format,onError);var filteredOptions=filterProps(options,RELATIVE_FORMAT_OPTIONS,defaults$$1);var oldThresholds=_extends({},IntlRelativeFormat.thresholds);updateRelativeFormatThresholds(RELATIVE_FORMAT_THRESHOLDS);try{return state.getRelativeFormat(locale,filteredOptions).format(date,{now:isFinite(now)?now:state.now()})}catch(e){onError(createError("Error formatting relative time.",e))}finally{updateRelativeFormatThresholds(oldThresholds)}return String(date)}function formatNumber(config,state,value){var options=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var locale=config.locale,formats=config.formats;var format=options.format;var onError=config.onError||defaultErrorHandler;var defaults$$1=format&&getNamedFormat(formats,"number",format,onError);var filteredOptions=filterProps(options,NUMBER_FORMAT_OPTIONS,defaults$$1);try{return state.getNumberFormat(locale,filteredOptions).format(value)}catch(e){onError(createError("Error formatting number.",e))}return String(value)}function formatPlural(config,state,value){var options=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var locale=config.locale;var filteredOptions=filterProps(options,PLURAL_FORMAT_OPTIONS);var onError=config.onError||defaultErrorHandler;try{return state.getPluralFormat(locale,filteredOptions).format(value)}catch(e){onError(createError("Error formatting plural.",e))}return"other"}function formatMessage(config,state){var messageDescriptor=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var values=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var locale=config.locale,formats=config.formats,messages=config.messages,defaultLocale=config.defaultLocale,defaultFormats=config.defaultFormats;var id=messageDescriptor.id,defaultMessage=messageDescriptor.defaultMessage;if(false){}invariant(id,"[React Intl] An `id` must be provided to format a message.");var message=messages&&messages[id];var hasValues=Object.keys(values).length>0;if(!hasValues&&"production"==="production"){return message||defaultMessage||id}var formattedMessage=void 0;var onError=config.onError||defaultErrorHandler;
1if(message){try{var formatter=state.getMessageFormat(message,locale,formats);formattedMessage=formatter.format(values)}catch(e){onError(createError('Error formatting message: "'+id+'" for locale: "'+locale+'"'+(defaultMessage?", using default message as fallback.":""),e))}}else{if(!defaultMessage||locale&&locale.toLowerCase()!==defaultLocale.toLowerCase()){onError(createError('Missing message: "'+id+'" for locale: "'+locale+'"'+(defaultMessage?", using default message as fallback.":"")))}}if(!formattedMessage&&defaultMessage){try{var _formatter=state.getMessageFormat(defaultMessage,defaultLocale,defaultFormats);formattedMessage=_formatter.format(values)}catch(e){onError(createError('Error formatting the default message for: "'+id+'"',e))}}if(!formattedMessage){onError(createError('Cannot format message: "'+id+'", '+("using message "+(message||defaultMessage?"source":"id")+" as fallback.")))}return formattedMessage||message||defaultMessage||id}function formatHTMLMessage(config,state,messageDescriptor){var rawValues=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var escapedValues=Object.keys(rawValues).reduce((function(escaped,name){var value=rawValues[name];escaped[name]=typeof value==="string"?escape(value):value;return escaped}),{});return formatMessage(config,state,messageDescriptor,escapedValues)}var format=Object.freeze({formatDate:formatDate,formatTime:formatTime,formatRelative:formatRelative,formatNumber:formatNumber,formatPlural:formatPlural,formatMessage:formatMessage,formatHTMLMessage:formatHTMLMessage});var intlConfigPropNames$1=Object.keys(intlConfigPropTypes);var intlFormatPropNames=Object.keys(intlFormatPropTypes);var defaultProps={formats:{},messages:{},timeZone:null,textComponent:"span",defaultLocale:"en",defaultFormats:{},onError:defaultErrorHandler};var IntlProvider=function(_Component){inherits(IntlProvider,_Component);function IntlProvider(props){var context=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};classCallCheck(this,IntlProvider);var _this=possibleConstructorReturn(this,(IntlProvider.__proto__||Object.getPrototypeOf(IntlProvider)).call(this,props,context));invariant(typeof Intl!=="undefined","[React Intl] The `Intl` APIs must be available in the runtime, "+"and do not appear to be built-in. An `Intl` polyfill should be loaded.\n"+"See: http://formatjs.io/guides/runtime-environments/");var intlContext=context.intl;var initialNow=void 0;if(isFinite(props.initialNow)){initialNow=Number(props.initialNow)}else{initialNow=intlContext?intlContext.now():Date.now()}var _ref=intlContext||{},_ref$formatters=_ref.formatters,formatters=_ref$formatters===undefined?{getDateTimeFormat:memoizeIntlConstructor(Intl.DateTimeFormat),getNumberFormat:memoizeIntlConstructor(Intl.NumberFormat),getMessageFormat:memoizeIntlConstructor(IntlMessageFormat),getRelativeFormat:memoizeIntlConstructor(IntlRelativeFormat),getPluralFormat:memoizeIntlConstructor(IntlPluralFormat)}:_ref$formatters;_this.state=_extends({},formatters,{now:function now(){return _this._didDisplay?Date.now():initialNow}});return _this}createClass(IntlProvider,[{key:"getConfig",value:function getConfig(){var intlContext=this.context.intl;var config=filterProps(this.props,intlConfigPropNames$1,intlContext);for(var propName in defaultProps){if(config[propName]===undefined){config[propName]=defaultProps[propName]}}if(!hasLocaleData(config.locale)){var _config=config,locale=_config.locale,defaultLocale=_config.defaultLocale,defaultFormats=_config.defaultFormats,onError=_config.onError;onError(createError('Missing locale data for locale: "'+locale+'". '+('Using default locale: "'+defaultLocale+'" as fallback.')));config=_extends({},config,{locale:defaultLocale,formats:defaultFormats,messages:defaultProps.messages})}return config}},{key:"getBoundFormatFns",value:function getBoundFormatFns(config,state){return intlFormatPropNames.reduce((function(boundFormatFns,name){boundFormatFns[name]=format[name].bind(null,config,state);return boundFormatFns}),{})}},{key:"getChildContext",value:function getChildContext(){var config=this.getConfig();var boundFormatFns=this.getBoundFormatFns(config,this.state);var _state=this.state,now=_state.now,formatters=objectWithoutProperties(_state,["now"]);return{intl:_extends({},config,boundFormatFns,{formatters:formatters,now:now})}}},{key:"shouldComponentUpdate",value:function shouldComponentUpdate(){for(var _len=arguments.length,next=Array(_len),_
1key=0;_key<_len;_key++){next[_key]=arguments[_key]}return shouldIntlComponentUpdate.apply(undefined,[this].concat(next))}},{key:"componentDidMount",value:function componentDidMount(){this._didDisplay=true}},{key:"render",value:function render(){return React.Children.only(this.props.children)}}]);return IntlProvider}(React.Component);IntlProvider.displayName="IntlProvider";IntlProvider.contextTypes={intl:intlShape};IntlProvider.childContextTypes={intl:intlShape.isRequired};false?undefined:void 0;var FormattedDate=function(_Component){inherits(FormattedDate,_Component);function FormattedDate(props,context){classCallCheck(this,FormattedDate);var _this=possibleConstructorReturn(this,(FormattedDate.__proto__||Object.getPrototypeOf(FormattedDate)).call(this,props,context));invariantIntlContext(context);return _this}createClass(FormattedDate,[{key:"shouldComponentUpdate",value:function shouldComponentUpdate(){for(var _len=arguments.length,next=Array(_len),_key=0;_key<_len;_key++){next[_key]=arguments[_key]}return shouldIntlComponentUpdate.apply(undefined,[this].concat(next))}},{key:"render",value:function render(){var _context$intl=this.context.intl,formatDate=_context$intl.formatDate,Text=_context$intl.textComponent;var _props=this.props,value=_props.value,children=_props.children;var formattedDate=formatDate(value,this.props);if(typeof children==="function"){return children(formattedDate)}return React__default.createElement(Text,null,formattedDate)}}]);return FormattedDate}(React.Component);FormattedDate.displayName="FormattedDate";FormattedDate.contextTypes={intl:intlShape};false?undefined:void 0;var FormattedTime=function(_Component){inherits(FormattedTime,_Component);function FormattedTime(props,context){classCallCheck(this,FormattedTime);var _this=possibleConstructorReturn(this,(FormattedTime.__proto__||Object.getPrototypeOf(FormattedTime)).call(this,props,context));invariantIntlContext(context);return _this}createClass(FormattedTime,[{key:"shouldComponentUpdate",value:function shouldComponentUpdate(){for(var _len=arguments.length,next=Array(_len),_key=0;_key<_len;_key++){next[_key]=arguments[_key]}return shouldIntlComponentUpdate.apply(undefined,[this].concat(next))}},{key:"render",value:function render(){var _context$intl=this.context.intl,formatTime=_context$intl.formatTime,Text=_context$intl.textComponent;var _props=this.props,value=_props.value,children=_props.children;var formattedTime=formatTime(value,this.props);if(typeof children==="function"){return children(formattedTime)}return React__default.createElement(Text,null,formattedTime)}}]);return FormattedTime}(React.Component);FormattedTime.displayName="FormattedTime";FormattedTime.contextTypes={intl:intlShape};false?undefined:void 0;var SECOND=1e3;var MINUTE=1e3*60;var HOUR=1e3*60*60;var DAY=1e3*60*60*24;var MAX_TIMER_DELAY=2147483647;function selectUnits(delta){var absDelta=Math.abs(delta);if(absDelta<MINUTE){return"second"}if(absDelta<HOUR){return"minute"}if(absDelta<DAY){return"hour"}return"day"}function getUnitDelay(units){switch(units){case"second":return SECOND;case"minute":return MINUTE;case"hour":return HOUR;case"day":return DAY;default:return MAX_TIMER_DELAY}}function isSameDate(a,b){if(a===b){return true}var aTime=new Date(a).getTime();var bTime=new Date(b).getTime();return isFinite(aTime)&&isFinite(bTime)&&aTime===bTime}var FormattedRelative=function(_Component){inherits(FormattedRelative,_Component);function FormattedRelative(props,context){classCallCheck(this,FormattedRelative);var _this=possibleConstructorReturn(this,(FormattedRelative.__proto__||Object.getPrototypeOf(FormattedRelative)).call(this,props,context));invariantIntlContext(context);var now=isFinite(props.initialNow)?Number(props.initialNow):context.intl.now();_this.state={now:now};return _this}createClass(FormattedRelative,[{key:"scheduleNextUpdate",value:function scheduleNextUpdate(props,state){var _this2=this;clearTimeout(this._timer);var value=props.value,units=props.units,updateInterval=props.updateInterval;var time=new Date(value).getTime();if(!updateInterval||!isFinite(time)){return}var delta=time-state.now;var unitDelay=getUnitDelay(units||selectUnits(delta));var unitRemainder=Math.abs(delta%unitDelay);var delay=delta<0?Math.max(updateInterval,unitDelay-unitRemainder):Math.max(updateInterval,unitRemainder);this._timer=setTimeout((function(){_this2.setState({now:_this2.context.
1intl.now()})}),delay)}},{key:"componentDidMount",value:function componentDidMount(){this.scheduleNextUpdate(this.props,this.state)}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(_ref){var nextValue=_ref.value;if(!isSameDate(nextValue,this.props.value)){this.setState({now:this.context.intl.now()})}}},{key:"shouldComponentUpdate",value:function shouldComponentUpdate(){for(var _len=arguments.length,next=Array(_len),_key=0;_key<_len;_key++){next[_key]=arguments[_key]}return shouldIntlComponentUpdate.apply(undefined,[this].concat(next))}},{key:"componentWillUpdate",value:function componentWillUpdate(nextProps,nextState){this.scheduleNextUpdate(nextProps,nextState)}},{key:"componentWillUnmount",value:function componentWillUnmount(){clearTimeout(this._timer)}},{key:"render",value:function render(){var _context$intl=this.context.intl,formatRelative=_context$intl.formatRelative,Text=_context$intl.textComponent;var _props=this.props,value=_props.value,children=_props.children;var formattedRelative=formatRelative(value,_extends({},this.props,this.state));if(typeof children==="function"){return children(formattedRelative)}return React__default.createElement(Text,null,formattedRelative)}}]);return FormattedRelative}(React.Component);FormattedRelative.displayName="FormattedRelative";FormattedRelative.contextTypes={intl:intlShape};FormattedRelative.defaultProps={updateInterval:1e3*10};false?undefined:void 0;var FormattedNumber=function(_Component){inherits(FormattedNumber,_Component);function FormattedNumber(props,context){classCallCheck(this,FormattedNumber);var _this=possibleConstructorReturn(this,(FormattedNumber.__proto__||Object.getPrototypeOf(FormattedNumber)).call(this,props,context));invariantIntlContext(context);return _this}createClass(FormattedNumber,[{key:"shouldComponentUpdate",value:function shouldComponentUpdate(){for(var _len=arguments.length,next=Array(_len),_key=0;_key<_len;_key++){next[_key]=arguments[_key]}return shouldIntlComponentUpdate.apply(undefined,[this].concat(next))}},{key:"render",value:function render(){var _context$intl=this.context.intl,formatNumber=_context$intl.formatNumber,Text=_context$intl.textComponent;var _props=this.props,value=_props.value,children=_props.children;var formattedNumber=formatNumber(value,this.props);if(typeof children==="function"){return children(formattedNumber)}return React__default.createElement(Text,null,formattedNumber)}}]);return FormattedNumber}(React.Component);FormattedNumber.displayName="FormattedNumber";FormattedNumber.contextTypes={intl:intlShape};false?undefined:void 0;var FormattedPlural=function(_Component){inherits(FormattedPlural,_Component);function FormattedPlural(props,context){classCallCheck(this,FormattedPlural);var _this=possibleConstructorReturn(this,(FormattedPlural.__proto__||Object.getPrototypeOf(FormattedPlural)).call(this,props,context));invariantIntlContext(context);return _this}createClass(FormattedPlural,[{key:"shouldComponentUpdate",value:function shouldComponentUpdate(){for(var _len=arguments.length,next=Array(_len),_key=0;_key<_len;_key++){next[_key]=arguments[_key]}return shouldIntlComponentUpdate.apply(undefined,[this].concat(next))}},{key:"render",value:function render(){var _context$intl=this.context.intl,formatPlural=_context$intl.formatPlural,Text=_context$intl.textComponent;var _props=this.props,value=_props.value,other=_props.other,children=_props.children;var pluralCategory=formatPlural(value,this.props);var formattedPlural=this.props[pluralCategory]||other;if(typeof children==="function"){return children(formattedPlural)}return React__default.createElement(Text,null,formattedPlural)}}]);return FormattedPlural}(React.Component);FormattedPlural.displayName="FormattedPlural";FormattedPlural.contextTypes={intl:intlShape};FormattedPlural.defaultProps={style:"cardinal"};false?undefined:void 0;var defaultFormatMessage=function defaultFormatMessage(descriptor,values){if(false){}return formatMessage({},{getMessageFormat:memoizeIntlConstructor(IntlMessageFormat)},descriptor,values)};var FormattedMessage=function(_Component){inherits(FormattedMessage,_Component);function FormattedMessage(props,context){classCallCheck(this,FormattedMessage);var _this=possibleConstructorReturn(this,(FormattedMessage.__proto__||Object.getPrototypeOf(FormattedMessage)).call(this,props,context));if(!props.defaultMessage){invariantIntlContext(context)}return _this}createClass(FormattedMessage,[{key:"shouldComponentUpdate",value:function shouldComponentUpdate(nextProps){var values=this.props.values;var nextValues=nextProps.values;if(!shallowEquals(nextValues,values)){return true}var nextPropsToCheck=_extends({},nextProps,{values:values});for(var _len=arguments.length,next=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){next[_key-1]=arguments[_key]}return shouldIntlComponentUpdate.apply(undefined,[this,nextPropsToCheck].concat(next))}}
1,{key:"render",value:function render(){var _ref=this.context.intl||{},_ref$formatMessage=_ref.formatMessage,formatMessage$$1=_ref$formatMessage===undefined?defaultFormatMessage:_ref$formatMessage,_ref$textComponent=_ref.textComponent,Text=_ref$textComponent===undefined?"span":_ref$textComponent;var _props=this.props,id=_props.id,description=_props.description,defaultMessage=_props.defaultMessage,values=_props.values,_props$tagName=_props.tagName,Component$$1=_props$tagName===undefined?Text:_props$tagName,children=_props.children;var tokenDelimiter=void 0;var tokenizedValues=void 0;var elements=void 0;var hasValues=values&&Object.keys(values).length>0;if(hasValues){var uid=Math.floor(Math.random()*1099511627776).toString(16);var generateToken=function(){var counter=0;return function(){return"ELEMENT-"+uid+"-"+(counter+=1)}}();tokenDelimiter="@__"+uid+"__@";tokenizedValues={};elements={};Object.keys(values).forEach((function(name){var value=values[name];if(React.isValidElement(value)){var token=generateToken();tokenizedValues[name]=tokenDelimiter+token+tokenDelimiter;elements[token]=value}else{tokenizedValues[name]=value}}))}var descriptor={id:id,description:description,defaultMessage:defaultMessage};var formattedMessage=formatMessage$$1(descriptor,tokenizedValues||values);var nodes=void 0;var hasElements=elements&&Object.keys(elements).length>0;if(hasElements){nodes=formattedMessage.split(tokenDelimiter).filter((function(part){return!!part})).map((function(part){return elements[part]||part}))}else{nodes=[formattedMessage]}if(typeof children==="function"){return children.apply(undefined,toConsumableArray(nodes))}return React.createElement.apply(undefined,[Component$$1,null].concat(toConsumableArray(nodes)))}}]);return FormattedMessage}(React.Component);FormattedMessage.displayName="FormattedMessage";FormattedMessage.contextTypes={intl:intlShape};FormattedMessage.defaultProps={values:{}};false?undefined:void 0;var FormattedHTMLMessage=function(_Component){inherits(FormattedHTMLMessage,_Component);function FormattedHTMLMessage(props,context){classCallCheck(this,FormattedHTMLMessage);var _this=possibleConstructorReturn(this,(FormattedHTMLMessage.__proto__||Object.getPrototypeOf(FormattedHTMLMessage)).call(this,props,context));invariantIntlContext(context);return _this}createClass(FormattedHTMLMessage,[{key:"shouldComponentUpdate",value:function shouldComponentUpdate(nextProps){var values=this.props.values;var nextValues=nextProps.values;if(!shallowEquals(nextValues,values)){return true}var nextPropsToCheck=_extends({},nextProps,{values:values});for(var _len=arguments.length,next=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){next[_key-1]=arguments[_key]}return shouldIntlComponentUpdate.apply(undefined,[this,nextPropsToCheck].concat(next))}},{key:"render",value:function render(){var _context$intl=this.context.intl,formatHTMLMessage=_context$intl.formatHTMLMessage,Text=_context$intl.textComponent;var _props=this.props,id=_props.id,description=_props.description,defaultMessage=_props.defaultMessage,rawValues=_props.values,_props$tagName=_props.tagName,Component$$1=_props$tagName===undefined?Text:_props$tagName,children=_props.children;var descriptor={id:id,description:description,defaultMessage:defaultMessage};var formattedHTMLMessage=formatHTMLMessage(descriptor,rawValues);if(typeof children==="function"){return children(formattedHTMLMessage)}var html={__html:formattedHTMLMessage};return React__default.createElement(Component$$1,{dangerouslySetInnerHTML:html})}}]);return FormattedHTMLMessage}(React.Component);FormattedHTMLMessage.displayName="FormattedHTMLMessage";FormattedHTMLMessage.contextTypes={intl:intlShape};FormattedHTMLMessage.defaultProps={values:{}};false?undefined:void 0;addLocaleData(defaultLocaleData);addLocaleData(allLocaleData);exports.addLocaleData=addLocaleData;exports.intlShape=intlShape;exports.injectIntl=injectIntl;exports.defineMessages=defineMessages;exports.IntlProvider=IntlProvider;exports.FormattedDate=FormattedDate;exports.FormattedTime=FormattedTime;exports.FormattedRelative=FormattedRelative;exports.FormattedNumber=FormattedNumber;exports.FormattedPlural=FormattedPlural;exports.FormattedMessage=FormattedMessage;exports.FormattedHTMLMessage=FormattedHTMLMessage},function(module,exports,__webpack_require__){"use strict";var isOldIE=function isOldIE(){var memo;return function memorize(){if(typeof memo==="undefined"){memo=Boolean(window&&document&&document.all&&!window.atob)}return memo}}();var getTarget=function getTarget(){var memo={};return function memorize(target){if(typeof memo[target]==="undefined"){var styleTarget=document.querySelector(target);if(window.HTMLIFrameElement&&styleTarget instanceof window.HTMLIFrameElement){try{styleTarget=styleTarget.contentDocument.head}catch(e){styleTarget=null}}memo[target]=styleTarget}return memo[target]}}();var stylesInDom=[];function getIndexByIdentifier(identifier){var result=-1;for(var i=0;i<stylesInDom.length;i++){if(stylesInDom[i].identifier===identifier){result=i;break}}return result}function modulesToDom(list,options){var idCountMap={};var identifiers=[];for(var i=0;i<list.length;i++){var item=list[i];var id=options.base?item[0]+options.base:item[0];var count=idCountMap[id]||0;var identifier="".concat(id," ").concat(count);idCountMap[id]=count+1;var index=getIndexByIdentifier(identifier);var obj={css:item[1],media:item[2],sourceMap:item[3]};if(index!==-1){stylesInDom[index].references++;stylesInDom[index].updater(obj)}else{stylesInDom.push({identifier:identifier,updater:addStyle(obj,options),references:1})}identifiers.push(identifier)}return identifiers}function insertStyleElement(options){var style=document.createElement("style");var attributes=options.attributes||{};if(typeof attributes.nonce==="undefined"){var nonce=true?__webpack_require__.nc:undefined;if(nonce){attributes.nonce=nonce}}
1Object.keys(attributes).forEach((function(key){style.setAttribute(key,attributes[key])}));if(typeof options.insert==="function"){options.insert(style)}else{var target=getTarget(options.insert||"head");if(!target){throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.")}target.appendChild(style)}return style}function removeStyleElement(style){if(style.parentNode===null){return false}style.parentNode.removeChild(style)}var replaceText=function replaceText(){var textStore=[];return function replace(index,replacement){textStore[index]=replacement;return textStore.filter(Boolean).join("\n")}}();function applyToSingletonTag(style,index,remove,obj){var css=remove?"":obj.media?"@media ".concat(obj.media," {").concat(obj.css,"}"):obj.css;if(style.styleSheet){style.styleSheet.cssText=replaceText(index,css)}else{var cssNode=document.createTextNode(css);var childNodes=style.childNodes;if(childNodes[index]){style.removeChild(childNodes[index])}if(childNodes.length){style.insertBefore(cssNode,childNodes[index])}else{style.appendChild(cssNode)}}}function applyToTag(style,options,obj){var css=obj.css;var media=obj.media;var sourceMap=obj.sourceMap;if(media){style.setAttribute("media",media)}else{style.removeAttribute("media")}if(sourceMap&&typeof btoa!=="undefined"){css+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))))," */")}if(style.styleSheet){style.styleSheet.cssText=css}else{while(style.firstChild){style.removeChild(style.firstChild)}style.appendChild(document.createTextNode(css))}}var singleton=null;var singletonCounter=0;function addStyle(obj,options){var style;var update;var remove;if(options.singleton){var styleIndex=singletonCounter++;style=singleton||(singleton=insertStyleElement(options));update=applyToSingletonTag.bind(null,style,styleIndex,false);remove=applyToSingletonTag.bind(null,style,styleIndex,true)}else{style=insertStyleElement(options);update=applyToTag.bind(null,style,options);remove=function remove(){removeStyleElement(style)}}update(obj);return function updateStyle(newObj){if(newObj){if(newObj.css===obj.css&&newObj.media===obj.media&&newObj.sourceMap===obj.sourceMap){return}update(obj=newObj)}else{remove()}}}module.exports=function(list,options){options=options||{};if(!options.singleton&&typeof options.singleton!=="boolean"){options.singleton=isOldIE()}list=list||[];var lastIdentifiers=modulesToDom(list,options);return function update(newList){newList=newList||[];if(Object.prototype.toString.call(newList)!=="[object Array]"){return}for(var i=0;i<lastIdentifiers.length;i++){var identifier=lastIdentifiers[i];var index=getIndexByIdentifier(identifier);stylesInDom[index].references--}var newLastIdentifiers=modulesToDom(newList,options);for(var _i=0;_i<lastIdentifiers.length;_i++){var _identifier=lastIdentifiers[_i];var _index=getIndexByIdentifier(_identifier);if(stylesInDom[_index].references===0){stylesInDom[_index].updater();stylesInDom.splice(_index,1)}}lastIdentifiers=newLastIdentifiers}}},function(module,exports,__webpack_require__){const SemVer=__webpack_require__(8);const parse=(version,options,throwErrors=false)=>{if(version instanceof SemVer){return version}try{return new SemVer(version,options)}catch(er){if(!throwErrors){return null}throw er}};module.exports=parse},function(module,exports){module.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzM5N184MzAwNCkiPgo8cGF0aCBkPSJNNi44NjU2NSAwLjgwOTM3NUwyLjM2NTY1IDMuNDA2MjVDMS42NTMxNSAzLjgxODc1IDEuMjEyNTIgNC41NzgxMiAxLjIxMjUyIDUuNDAzMTJWMTAuNkMxLjIxMjUyIDExLjQyMTkgMS42NTMxNSAxMi4xODQ0IDIuMzY1NjUgMTIuNTk2OUw2Ljg2NTY1IDE1LjE5MzhDNy41NzgxNSAxNS42MDYyIDguNDU2MjcgMTUuNjA2MiA5LjE2ODc3IDE1LjE5MzhMMTMuNjY4OCAxMi41OTY5QzE0LjM4MTMgMTIuMTg0NCAxNC44MjE5IDExLjQyNSAxNC44MjE5IDEwLjZWNS40MDMxMkMxNC44MjE5IDQuNTgxMjUgMTQuMzgxMyAzLjgxODc1IDEzLjY2ODggMy40MDYyNUw5LjE2ODc3IDAuODA5Mzc1QzguNDU2MjcgMC4zOTY4NzUgNy41NzgxNSAwLjM5Njg3NSA2Ljg2NTY1IDAuODA5Mzc1WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzM5N184MzAwNCkiLz4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAxXzM5N184MzAwNCkiPgo8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDJfMzk3XzgzMDA0KSI+CjxwYXRoIGQ9Ik03Ljc3NjczIDQuNjUxODZMOC42NjA2MiA2Ljg5Mjk3TDEwLjkwMTcgNy43NzY4Nkw4LjY2MDYyIDguNjYwNzRMNy43NzY3MyAxMC45MDE5TDYuODkyODUgOC42NjA3NEw0LjY1MTczIDcuNzc2ODZMNi44OTI4NSA2Ljg5Mjk3TDcuNzc2NzMgNC42NTE4NloiIGZpbGw9IndoaXRlIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjAuNjI1IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik00Ljk2NDIzIDMuNzE0MzZMNS4zNjE5OCA0LjU2NjYxTDYuMjE0MjMgNC45NjQzNkw1LjM2MTk4IDUuMzYyMUw0Ljk2NDIzIDYuMjE0MzZMNC41NjY0OSA1LjM2MjFMMy43MTQyMyA0Ljk2NDM2TDQuNTY2NDkgNC41NjY2MUw0Ljk2NDIzIDMuNzE0MzZaIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+CjwvZz4KPC9nPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM5N184MzAwNCIgeDE9IjE0LjA1MzIiIHkxPSItMC42MjE4NzQiIHgyPSIyLjcyODE1IiB5Mj0iMTUuNTUzMSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjQTdGOEZGIi8+CjxzdG9wIG9mZnNldD0iMC4wMyIgc3RvcC1jb2xvcj0iIzlERjFGRiIvPgo8c3RvcCBvZmZzZXQ9IjAuMDgiIHN0b3AtY29sb3I9IiM4NEUxRkYiLz4KPHN0b3Agb2Zmc2V0PSIwLjE1IiBzdG9wLWNvbG9yPSIjNUFDN0ZGIi8+CjxzdG9wIG9mZnNldD0iMC4yMiIgc3RvcC1jb2xvcj0iIzIxQTJGRiIvPgo8c3RvcCBvZmZzZXQ9IjAuMjYiIHN0b3AtY29sb3I9IiMwMDhERkYiLz4KPHN0b3Agb2Zmc2V0PSIwLjY2IiBzdG9wLWNvbG9yPSIjN0YzM0ZGIi8+CjxzdG9wIG9mZnNldD0iMC45OSIgc3RvcC1jb2xvcj0iIzM5MTI3RCIvPgo8L2xpbmVhckdyYWRpZW50Pgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzM5N184MzAwNCI+CjxyZWN0IHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgZmlsbD0id2hp
1dGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuNSAwLjUpIi8+CjwvY2xpcFBhdGg+CjxjbGlwUGF0aCBpZD0iY2xpcDFfMzk3XzgzMDA0Ij4KPHJlY3Qgd2lkdGg9IjguNTcxNDMiIGhlaWdodD0iOC41NzE0MyIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDMuNzE0MjMgMy43MTQzNikiLz4KPC9jbGlwUGF0aD4KPGNsaXBQYXRoIGlkPSJjbGlwMl8zOTdfODMwMDQiPgo8cmVjdCB3aWR0aD0iNy41IiBoZWlnaHQ9IjcuNSIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDMuNzE0MjMgMy43MTQzNikiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K"},function(module,exports,__webpack_require__){const{MAX_SAFE_COMPONENT_LENGTH:MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH:MAX_SAFE_BUILD_LENGTH,MAX_LENGTH:MAX_LENGTH}=__webpack_require__(19);const debug=__webpack_require__(20);exports=module.exports={};const re=exports.re=[];const safeRe=exports.safeRe=[];const src=exports.src=[];const t=exports.t={};let R=0;const LETTERDASHNUMBER="[a-zA-Z0-9-]";const safeRegexReplacements=[["\\s",1],["\\d",MAX_LENGTH],[LETTERDASHNUMBER,MAX_SAFE_BUILD_LENGTH]];const makeSafeRegex=value=>{for(const[token,max]of safeRegexReplacements){value=value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`)}return value};const createToken=(name,value,isGlobal)=>{const safe=makeSafeRegex(value);const index=R++;debug(name,index,value);t[name]=index;src[index]=value;re[index]=new RegExp(value,isGlobal?"g":undefined);safeRe[index]=new RegExp(safe,isGlobal?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);createToken("MAINVERSION",`(${src[t.NUMERICIDENTIFIER]})\\.`+`(${src[t.NUMERICIDENTIFIER]})\\.`+`(${src[t.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${src[t.NUMERICIDENTIFIERLOOSE]})\\.`+`(${src[t.NUMERICIDENTIFIERLOOSE]})\\.`+`(${src[t.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${LETTERDASHNUMBER}+`);createToken("BUILD",`(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);createToken("FULL",`^${src[t.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);createToken("LOOSE",`^${src[t.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${src[t.XRANGEIDENTIFIER]})`+`(?:\\.(${src[t.XRANGEIDENTIFIER]})`+`(?:\\.(${src[t.XRANGEIDENTIFIER]})`+`(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})`+`(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})`+`(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`+`(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`+`(?:$|[^\\d])`);createToken("COERCERTL",src[t.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${src[t.LONETILDE]}\\s+`,true);exports.tildeTrimReplace="$1~";createToken("TILDE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${src[t.LONECARET]}\\s+`,true);exports.caretTrimReplace="$1^";createToken("CARET",`^${src[t.LONECARET]}
1${src[t.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`,true);exports.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${src[t.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${src[t.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${src[t.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${src[t.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},function(module,exports){const SEMVER_SPEC_VERSION="2.0.0";const MAX_LENGTH=256;const MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991;const MAX_SAFE_COMPONENT_LENGTH=16;const MAX_SAFE_BUILD_LENGTH=MAX_LENGTH-6;const RELEASE_TYPES=["major","premajor","minor","preminor","patch","prepatch","prerelease"];module.exports={MAX_LENGTH:MAX_LENGTH,MAX_SAFE_COMPONENT_LENGTH:MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH:MAX_SAFE_BUILD_LENGTH,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER,RELEASE_TYPES:RELEASE_TYPES,SEMVER_SPEC_VERSION:SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},function(module,exports,__webpack_require__){(function(process){const debug=typeof process==="object"&&Object({IS_OPENSEARCH_DASHBOARDS_DISTRIBUTABLE:"true"})&&Object({IS_OPENSEARCH_DASHBOARDS_DISTRIBUTABLE:"true"}).NODE_DEBUG&&/\bsemver\b/i.test(Object({IS_OPENSEARCH_DASHBOARDS_DISTRIBUTABLE:"true"}).NODE_DEBUG)?(...args)=>console.error("SEMVER",...args):()=>{};module.exports=debug}).call(this,__webpack_require__(59))},function(module,exports,__webpack_require__){const compare=__webpack_require__(11);const gt=(a,b,loose)=>compare(a,b,loose)>0;module.exports=gt},function(module,exports,__webpack_require__){const ANY=Symbol("SemVer ANY");class Comparator{static get ANY(){return ANY}constructor(comp,options){options=parseOptions(options);if(comp instanceof Comparator){if(comp.loose===!!options.loose){return comp}else{comp=comp.value}}comp=comp.trim().split(/\s+/).join(" ");debug("comparator",comp,options);this.options=options;this.loose=!!options.loose;this.parse(comp);if(this.semver===ANY){this.value=""}else{this.value=this.operator+this.semver.version}debug("comp",this)}parse(comp){const r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR];const m=comp.match(r);if(!m){throw new TypeError(`Invalid comparator: ${comp}`)}this.operator=m[1]!==undefined?m[1]:"";if(this.operator==="="){this.operator=""}if(!m[2]){this.semver=ANY}else{this.semver=new SemVer(m[2],this.options.loose)}}toString(){return this.value}test(version){debug("Comparator.test",version,this.options.loose);if(this.semver===ANY||version===ANY){return true}if(typeof version==="string"){try{version=new SemVer(version,this.options)}catch(er){return false}}return cmp(version,this.operator,this.semver,this.options)}intersects(comp,options){if(!(comp instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new Range(comp.value,options).test(this.value)}else if(comp.operator===""){if(comp.value===""){return true}return new Range(this.value,options).test(comp.semver)}options=parseOptions(options);if(options.includePrerelease&&(this.value==="<0.0.0-0"||comp.value==="<0.0.0-0")){return false}if(!options.includePrerelease&&(this.value.startsWith("<0.0.0")||comp.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&comp.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&comp.operator.startsWith("<")){return true}if(this.semver.version===comp.semver.version&&this.operator.includes("=")&&comp.operator.includes("=")){return true}if(cmp(this.semver,"<",comp.semver,options)&&this.operator.startsWith(">")&&comp.operator.startsWith("<")){return true}if(cmp(this.semver,">",comp.semver,options)&&this.operator.startsWith("<")&&comp.operator.startsWith(">")){return true}return false}}module.exports=Comparator;const parseOptions=__webpack_require__(24);const{safeRe:re,t:t}=__webpack_require__(18);const cmp=__webpack_require__(37);const debug=__webpack_require__(20);const SemVer=__webpack_require__(8);const Range=__webpack_require__(12)},function(module,exports,__webpack_require__){const Range=__webpack_require__(12);const satisfies=(version,range,options)=>{try{range=new Range(range,options)}catch(er){return false}return range.test(version)};module.exports=satisfies},function(module,exports){const looseOption=Object.freeze({loose:true});const emptyOpts=Object.freeze({});const parseOptions=options=>{if(!options){return emptyOpts}if(typeof options!=="object"){return looseOption}return options};
1module.exports=parseOptions},function(module,exports,__webpack_require__){const SemVer=__webpack_require__(8);const compareBuild=(a,b,loose)=>{const versionA=new SemVer(a,loose);const versionB=new SemVer(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)};module.exports=compareBuild},function(module,exports,__webpack_require__){const compare=__webpack_require__(11);const lt=(a,b,loose)=>compare(a,b,loose)<0;module.exports=lt},function(module,exports,__webpack_require__){const compare=__webpack_require__(11);const gte=(a,b,loose)=>compare(a,b,loose)>=0;module.exports=gte},function(module,exports,__webpack_require__){const compare=__webpack_require__(11);const lte=(a,b,loose)=>compare(a,b,loose)<=0;module.exports=lte},function(module,exports,__webpack_require__){const SemVer=__webpack_require__(8);const Comparator=__webpack_require__(22);const{ANY:ANY}=Comparator;const Range=__webpack_require__(12);const satisfies=__webpack_require__(23);const gt=__webpack_require__(21);const lt=__webpack_require__(26);const lte=__webpack_require__(28);const gte=__webpack_require__(27);const outside=(version,range,hilo,options)=>{version=new SemVer(version,options);range=new Range(range,options);let gtfn,ltefn,ltfn,comp,ecomp;switch(hilo){case">":gtfn=gt;ltefn=lte;ltfn=lt;comp=">";ecomp=">=";break;case"<":gtfn=lt;ltefn=gte;ltfn=gt;comp="<";ecomp="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(version,range,options)){return false}for(let i=0;i<range.set.length;++i){const comparators=range.set[i];let high=null;let low=null;comparators.forEach(comparator=>{if(comparator.semver===ANY){comparator=new Comparator(">=0.0.0")}high=high||comparator;low=low||comparator;if(gtfn(comparator.semver,high.semver,options)){high=comparator}else if(ltfn(comparator.semver,low.semver,options)){low=comparator}});if(high.operator===comp||high.operator===ecomp){return false}if((!low.operator||low.operator===comp)&<efn(version,low.semver)){return false}else if(low.operator===ecomp&<fn(version,low.semver)){return false}}return true};module.exports=outside},function(module,exports,__webpack_require__){const internalRe=__webpack_require__(18);const constants=__webpack_require__(19);const SemVer=__webpack_require__(8);const identifiers=__webpack_require__(34);const parse=__webpack_require__(16);const valid=__webpack_require__(60);const clean=__webpack_require__(61);const inc=__webpack_require__(62);const diff=__webpack_require__(63);const major=__webpack_require__(64);const minor=__webpack_require__(65);const patch=__webpack_require__(66);const prerelease=__webpack_require__(67);const compare=__webpack_require__(11);const rcompare=__webpack_require__(68);const compareLoose=__webpack_require__(69);const compareBuild=__webpack_require__(25);const sort=__webpack_require__(70);const rsort=__webpack_require__(71);const gt=__webpack_require__(21);const lt=__webpack_require__(26);const eq=__webpack_require__(35);const neq=__webpack_require__(36);const gte=__webpack_require__(27);const lte=__webpack_require__(28);const cmp=__webpack_require__(37);const coerce=__webpack_require__(72);const Comparator=__webpack_require__(22);const Range=__webpack_require__(12);const satisfies=__webpack_require__(23);const toComparators=__webpack_require__(76);const maxSatisfying=__webpack_require__(77);const minSatisfying=__webpack_require__(78);const minVersion=__webpack_require__(79);const validRange=__webpack_require__(80);const outside=__webpack_require__(29);const gtr=__webpack_require__(81);const ltr=__webpack_require__(82);const intersects=__webpack_require__(83);const simplifyRange=__webpack_require__(84);const subset=__webpack_require__(85);module.exports={parse:parse,valid:valid,clean:clean,inc:inc,diff:diff,major:major,minor:minor,patch:patch,prerelease:prerelease,compare:compare,rcompare:rcompare,compareLoose:compareLoose,compareBuild:compareBuild,sort:sort,rsort:rsort,gt:gt,lt:lt,eq:eq,neq:neq,gte:gte,lte:lte,cmp:cmp,coerce:coerce,Comparator:Comparator,Range:Range,satisfies:satisfies,toComparators:toComparators,maxSatisfying:maxSatisfying,minSatisfying:minSatisfying,minVersion:minVersion,validRange:validRange,outside:outside,gtr:gtr,ltr:ltr,intersects:intersects,simplifyRange:simplifyRange,subset:subset,SemVer:SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers}},function(module,exports,__webpack_require__){(function(global,factory){true?factory(exports):undefined})(this,(function(exports2){"use strict";const Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;const ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u
10EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;const ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
1D3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/;const unicode={Space_Separator:Space_Separator,ID_Start:ID_Start,ID_Continue:ID_Continue};const isSpaceSeparator=c=>
1typeof c==="string"&&unicode.Space_Separator.test(c);const isIdStartChar=c=>typeof c==="string"&&(c>="a"&&c<="z"||c>="A"&&c<="Z"||c==="$"||c==="_"||unicode.ID_Start.test(c));const isIdContinueChar=c=>typeof c==="string"&&(c>="a"&&c<="z"||c>="A"&&c<="Z"||c>="0"&&c<="9"||c==="$"||c==="_"||c==="â"||c==="â"||unicode.ID_Continue.test(c));const isDigit=c=>typeof c==="string"&&/[0-9]/.test(c);const isInteger=s=>typeof s==="string"&&!/[^0-9]/.test(s);const isHex=s=>typeof s==="string"&&/0x[0-9a-f]+$/i.test(s);const isHexDigit=c=>typeof c==="string"&&/[0-9a-f]/i.test(c);function parse(text,reviver,options){let source=String(text);let parseState="start";let stack=[];let pos=0;let line=1;let column=0;let token;let key;let root;let lexState;let buffer;let doubleQuote;let sign;let c;const lexStates={default(){switch(c){case"\t":case"\v":case"\f":case" ":case"Â ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":read();return;case"/":read();lexState="comment";return;case void 0:read();return newToken("eof")}if(isSpaceSeparator(c)){read();return}return lexStates[parseState]()},comment(){switch(c){case"*":read();lexState="multiLineComment";return;case"/":read();lexState="singleLineComment";return}throw invalidChar(read())},multiLineComment(){switch(c){case"*":read();lexState="multiLineCommentAsterisk";return;case void 0:throw invalidChar(read())}read()},multiLineCommentAsterisk(){switch(c){case"*":read();return;case"/":read();lexState="default";return;case void 0:throw invalidChar(read())}read();lexState="multiLineComment"},singleLineComment(){switch(c){case"\n":case"\r":case"\u2028":case"\u2029":read();lexState="default";return;case void 0:read();return newToken("eof")}read()},value(){switch(c){case"{":case"[":return newToken("punctuator",read());case"n":read();literal("ull");return newToken("null",null);case"t":read();literal("rue");return newToken("boolean",true);case"f":read();literal("alse");return newToken("boolean",false);case"-":case"+":if(read()==="-"){sign=-1}lexState="sign";return;case".":buffer=read();lexState="decimalPointLeading";return;case"0":buffer=read();lexState="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":buffer=read();lexState="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",Infinity);case"N":read();literal("aN");return newToken("numeric",NaN);case'"':case"'":doubleQuote=read()==='"';buffer="";lexState="string";return}throw invalidChar(read())},identifierNameStartEscape(){if(c!=="u"){throw invalidChar(read())}read();const u=unicodeEscape();switch(u){case"$":case"_":break;default:if(!isIdStartChar(u)){throw invalidIdentifier()}break}buffer+=u;lexState="identifierName"},identifierName(){switch(c){case"$":case"_":case"â":case"â":buffer+=read();return;case"\\":read();lexState="identifierNameEscape";return}if(isIdContinueChar(c)){buffer+=read();return}return newToken("identifier",buffer)},identifierNameEscape(){if(c!=="u"){throw invalidChar(read())}read();const u=unicodeEscape();switch(u){case"$":case"_":case"â":case"â":break;default:if(!isIdContinueChar(u)){throw invalidIdentifier()}break}buffer+=u;lexState="identifierName"},sign(){switch(c){case".":buffer=read();lexState="decimalPointLeading";return;case"0":buffer=read();lexState="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":buffer=read();lexState="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",sign*Infinity);case"N":read();literal("aN");return newToken("numeric",NaN)}throw invalidChar(read())},zero(){switch(c){case".":buffer+=read();lexState="decimalPoint";return;case"e":case"E":buffer+=read();lexState="decimalExponent";return;case"x":case"X":buffer+=read();lexState="hexadecimal";return;case"n":lexState="bigInt";return}return newToken("numeric",sign*0)},decimalInteger(){switch(c){case".":buffer+=read();lexState="decimalPoint";return;case"e":case"E":buffer+=read();lexState="decimalExponent";return;case"n":lexState="bigInt";return}if(isDigit(c)){buffer+=read();return}return newNumericToken(sign,buffer)},decimalPointLeading(){if(isDigit(c)){buffer+=read();lexState="decimalFraction";return}
1throw invalidChar(read())},decimalPoint(){switch(c){case"e":case"E":buffer+=read();lexState="decimalExponent";return}if(isDigit(c)){buffer+=read();lexState="decimalFraction";return}return newNumericToken(sign,buffer)},decimalFraction(){switch(c){case"e":case"E":buffer+=read();lexState="decimalExponent";return}if(isDigit(c)){buffer+=read();return}return newNumericToken(sign,buffer)},decimalExponent(){switch(c){case"+":case"-":buffer+=read();lexState="decimalExponentSign";return}if(isDigit(c)){buffer+=read();lexState="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentSign(){if(isDigit(c)){buffer+=read();lexState="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentInteger(){if(isDigit(c)){buffer+=read();return}return newNumericToken(sign,buffer)},bigInt(){if((buffer==null?void 0:buffer.length)&&(isInteger(buffer)||isHex(buffer))){read();return newToken("bigint",BigInt(sign)*BigInt(buffer))}throw invalidChar(read())},hexadecimal(){if(isHexDigit(c)){buffer+=read();lexState="hexadecimalInteger";return}throw invalidChar(read())},hexadecimalInteger(){if(isHexDigit(c)){buffer+=read();return}if(c==="n"){lexState="bigInt";return}return newNumericToken(sign,buffer)},string(){switch(c){case"\\":read();buffer+=escape();return;case'"':if(doubleQuote){read();return newToken("string",buffer)}buffer+=read();return;case"'":if(!doubleQuote){read();return newToken("string",buffer)}buffer+=read();return;case"\n":case"\r":throw invalidChar(read());case"\u2028":case"\u2029":separatorChar(c);break;case void 0:throw invalidChar(read())}buffer+=read()},start(){switch(c){case"{":case"[":return newToken("punctuator",read());case void 0:return newToken("eof")}lexState="value"},beforePropertyName(){switch(c){case"$":case"_":buffer=read();lexState="identifierName";return;case"\\":read();lexState="identifierNameStartEscape";return;case"}":return newToken("punctuator",read());case'"':case"'":doubleQuote=read()==='"';lexState="string";return}if(isIdStartChar(c)){buffer+=read();lexState="identifierName";return}throw invalidChar(read())},afterPropertyName(){if(c===":"){return newToken("punctuator",read())}throw invalidChar(read())},beforePropertyValue(){lexState="value"},afterPropertyValue(){switch(c){case",":case"}":return newToken("punctuator",read())}throw invalidChar(read())},beforeArrayValue(){if(c==="]"){return newToken("punctuator",read())}lexState="value"},afterArrayValue(){switch(c){case",":case"]":return newToken("punctuator",read())}throw invalidChar(read())},end(){throw invalidChar(read())}};const parseStates={start(){if(token.type==="eof"){throw invalidEOF()}push()},beforePropertyName(){switch(token.type){case"identifier":case"string":key=token.value;parseState="afterPropertyName";return;case"punctuator":pop();return;case"eof":throw invalidEOF()}},afterPropertyName(){if(token.type==="eof"){throw invalidEOF()}parseState="beforePropertyValue"},beforePropertyValue(){if(token.type==="eof"){throw invalidEOF()}push()},beforeArrayValue(){if(token.type==="eof"){throw invalidEOF()}if(token.type==="punctuator"&&token.value==="]"){pop();return}push()},afterPropertyValue(){if(token.type==="eof"){throw invalidEOF()}switch(token.value){case",":parseState="beforePropertyName";return;case"}":pop()}},afterArrayValue(){if(token.type==="eof"){throw invalidEOF()}switch(token.value){case",":parseState="beforeArrayValue";return;case"]":pop()}},end(){}};do{token=lex();parseStates[parseState]()}while(token.type!=="eof");if(typeof reviver==="function"){return internalize({"":root},"",reviver)}return root;function internalize(holder,name,reviver2){const value=holder[name];if(value!=null&&typeof value==="object"){if(Array.isArray(value)){for(let i=0;i<value.length;i++){const key2=String(i);const replacement=internalize(value,key2,reviver2);Object.defineProperty(value,key2,{value:replacement,writable:true,enumerable:true,configurable:true})}}else{for(const key2 in value){const replacement=internalize(value,key2,reviver2);if(replacement===void 0){delete value[key2]}else{Object.defineProperty(value,key2,{value:replacement,writable:true,enumerable:true,configurable:true})}}}}return reviver2.call(holder,name,value)}function lex(){lexState="default";buffer="";doubleQuote=false;sign=1;for(;;){c=peek();const token2=lexStates[lexState]();if(token2){return token2}}}
1function peek(){if(source[pos]){return String.fromCodePoint(source.codePointAt(pos))}}function read(){const c2=peek();if(c2==="\n"){line++;column=0}else if(c2){column+=c2.length}else{column++}if(c2){pos+=c2.length}return c2}function newToken(type,value){return{type:type,value:value,line:line,column:column}}function newNumericToken(sign2,buffer2){const num=sign2*Number(buffer2);if(options==null?void 0:options.withLongNumerals){if(num>Number.MAX_SAFE_INTEGER||num<Number.MIN_SAFE_INTEGER){try{return newToken("bigint",BigInt(sign2)*BigInt(buffer2))}catch(ex){console.warn(ex)}}}return newToken("numeric",num)}function literal(s){for(const c2 of s){const p=peek();if(p!==c2){throw invalidChar(read())}read()}}function escape(){const c2=peek();switch(c2){case"b":read();return"\b";case"f":read();return"\f";case"n":read();return"\n";case"r":read();return"\r";case"t":read();return"\t";case"v":read();return"\v";case"0":read();if(isDigit(peek())){throw invalidChar(read())}return"\0";case"x":read();return hexEscape();case"u":read();return unicodeEscape();case"\n":case"\u2028":case"\u2029":read();return"";case"\r":read();if(peek()==="\n"){read()}return"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw invalidChar(read());case void 0:throw invalidChar(read())}return read()}function hexEscape(){let buffer2="";let c2=peek();if(!isHexDigit(c2)){throw invalidChar(read())}buffer2+=read();c2=peek();if(!isHexDigit(c2)){throw invalidChar(read())}buffer2+=read();return String.fromCodePoint(parseInt(buffer2,16))}function unicodeEscape(){let buffer2="";let count=4;while(count-- >0){const c2=peek();if(!isHexDigit(c2)){throw invalidChar(read())}buffer2+=read()}return String.fromCodePoint(parseInt(buffer2,16))}function push(){let value;switch(token.type){case"punctuator":switch(token.value){case"{":value={};break;case"[":value=[];break}break;case"null":case"boolean":case"numeric":case"string":case"bigint":value=token.value;break}if(root===void 0){root=value}else{const parent=stack[stack.length-1];if(Array.isArray(parent)){parent.push(value)}else{Object.defineProperty(parent,key,{value:value,writable:true,enumerable:true,configurable:true})}}if(value!==null&&typeof value==="object"){stack.push(value);if(Array.isArray(value)){parseState="beforeArrayValue"}else{parseState="beforePropertyName"}}else{const current=stack[stack.length-1];if(current==null){parseState="end"}else if(Array.isArray(current)){parseState="afterArrayValue"}else{parseState="afterPropertyValue"}}}function pop(){stack.pop();const current=stack[stack.length-1];if(current==null){parseState="end"}else if(Array.isArray(current)){parseState="afterArrayValue"}else{parseState="afterPropertyValue"}}
1function invalidChar(c2){if(c2===void 0){return syntaxError(`JSON11: invalid end of input at ${line}:${column}`)}return syntaxError(`JSON11: invalid character '${formatChar(c2)}' at ${line}:${column}`)}function invalidEOF(){return syntaxError(`JSON11: invalid end of input at ${line}:${column}`)}function invalidIdentifier(){column-=5;return syntaxError(`JSON11: invalid identifier character at ${line}:${column}`)}function separatorChar(c2){console.warn(`JSON11: '${formatChar(c2)}' in strings is not valid ECMAScript; consider escaping`)}function formatChar(c2){const replacements={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(replacements[c2]){return replacements[c2]}if(c2<" "){const hexString=c2.charCodeAt(0).toString(16);return"\\x"+("00"+hexString).substring(hexString.length)}return c2}function syntaxError(message){const err=new SyntaxError(message);Object.defineProperty(err,"lineNumber",{value:line,writable:true,enumerable:true,configurable:true});Object.defineProperty(err,"columnNumber",{value:column,writable:true,enumerable:true,configurable:true});return err}}function stringify(value,replacerOrAllowListOrOptions,space,options){var _a,_b,_c,_d,_e;const stack=[];let indent="";let propertyList;let replacer;let gap="";let quote;let withBigInt;let withLegacyEscapes;let nameSerializer=serializeKey;let trailingComma="";const quoteWeights={"'":.1,'"':.2};if(replacerOrAllowListOrOptions!=null&&typeof replacerOrAllowListOrOptions==="object"&&!Array.isArray(replacerOrAllowListOrOptions)){gap=getGap(replacerOrAllowListOrOptions.space);if(replacerOrAllowListOrOptions.trailingComma){trailingComma=","}quote=(_b=(_a=replacerOrAllowListOrOptions.quote)==null?void 0:_a.trim)==null?void 0:_b.call(_a);if(replacerOrAllowListOrOptions.quoteNames===true){nameSerializer=quoteString}if(typeof replacerOrAllowListOrOptions.replacer==="function"){replacer=replacerOrAllowListOrOptions.replacer}withBigInt=replacerOrAllowListOrOptions.withBigInt;withLegacyEscapes=replacerOrAllowListOrOptions.withLegacyEscapes===true}else{if(typeof replacerOrAllowListOrOptions==="function"){replacer=replacerOrAllowListOrOptions}else if(Array.isArray(replacerOrAllowListOrOptions)){propertyList=[];const propertySet=new Set;for(const v of replacerOrAllowListOrOptions){const key=(_c=v==null?void 0:v.toString)==null?void 0:_c.call(v);if(key!==void 0)propertySet.add(key)}propertyList=[...propertySet]}gap=getGap(space);quote=(_e=(_d=options==null?void 0:options.quote)==null?void 0:_d.trim)==null?void 0:_e.call(_d);if((options==null?void 0:options.quoteNames)===true){nameSerializer=quoteString}withBigInt=options==null?void 0:options.withBigInt;withLegacyEscapes=(options==null?void 0:options.withLegacyEscapes)===true;if(options==null?void 0:options.trailingComma){trailingComma=","}}const quoteReplacements={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":withLegacyEscapes?"\\v":"\\u000b","\0":withLegacyEscapes?"\\0":"\\u0000","\u2028":"\\u2028","\u2029":"\\u2029"};const quoteReplacementForNulFollowedByDigit=withLegacyEscapes?"\\x00":"\\u0000";return serializeProperty("",{"":value});function getGap(space2){if(typeof space2==="number"||space2 instanceof Number){const num=Number(space2);if(isFinite(num)&&num>0){return" ".repeat(Math.min(10,Math.floor(num)))}}else if(typeof space2==="string"||space2 instanceof String){return space2.substring(0,10)}return""}function serializeProperty(key,holder){let value2=holder[key];if(value2!=null){if(typeof value2.toJSON11==="function"){value2=value2.toJSON11(key)}else if(typeof value2.toJSON5==="function"){value2=value2.toJSON5(key)}else if(typeof value2.toJSON==="function"){value2=value2.toJSON(key)}}if(replacer){value2=replacer.call(holder,key,value2)}if(value2 instanceof Number){value2=Number(value2)}else if(value2 instanceof String){value2=String(value2)}else if(value2 instanceof Boolean){value2=value2.valueOf()}switch(value2){case null:return"null";case true:return"true";case false:return"false"}if(typeof value2==="string"){return quoteString(value2)}if(typeof value2==="number"){return String(value2)}if(typeof value2==="bigint"){return value2.toString()+(withBigInt===false?"":"n")}if(typeof value2==="object"){return Array.isArray(value2)?serializeArray(value2):serializeObject(value2)}return void 0}function quoteString(value2){let product="";for(let i=0;i<value2.length;i++){const c=value2[i];switch(c){case"'":case'"':quoteWeights[c]++;product+=c;continue;case"\0":if(isDigit(value2[i+1])){product+=quoteReplacementForNulFollowedByDigit;continue}}if(quoteReplacements[c]){product+=quoteReplacements[c];continue}if(c<" "){let hexString=c.charCodeAt(0).toString(16);product+=withLegacyEscapes?"\\x"+("00"+hexString).substring(hexString.length):"\\u"+hexString.padStart(4,"0");continue}product+=c}const quoteChar=quote||Object.keys(quoteWeights).reduce((a,b)=>quoteWeights[a]<quoteWeights[b]?a:b);product=product.replace(new RegExp(quoteChar,"g"),quoteReplacements[quoteChar]);return quoteChar+product+quoteChar}function serializeObject(value2){if(stack.includes(value2)){throw TypeError("Converting circular structure to JSON11")}stack.push(value2);let stepback=indent;indent=indent+gap;let keys=propertyList||Object.keys(value2);let partial=[];for(const key of keys){const propertyString=serializeProperty(key,value2);
1if(propertyString!==void 0){let member=nameSerializer(key)+":";if(gap!==""){member+=" "}member+=propertyString;partial.push(member)}}let final;if(partial.length===0){final="{}"}else{let properties;if(gap===""){properties=partial.join(",");final="{"+properties+"}"}else{properties=partial.join(",\n"+indent);final="{\n"+indent+properties+trailingComma+"\n"+stepback+"}"}}stack.pop();indent=stepback;return final}function serializeKey(key){if(key.length===0){return quoteString(key)}const firstChar=String.fromCodePoint(key.codePointAt(0));if(!isIdStartChar(firstChar)){return quoteString(key)}for(let i=firstChar.length;i<key.length;i++){if(!isIdContinueChar(String.fromCodePoint(key.codePointAt(i)))){return quoteString(key)}}return key}function serializeArray(value2){if(stack.includes(value2)){throw TypeError("Converting circular structure to JSON11")}stack.push(value2);let stepback=indent;indent=indent+gap;let partial=[];for(let i=0;i<value2.length;i++){const propertyString=serializeProperty(String(i),value2);partial.push(propertyString!==void 0?propertyString:"null")}let final;if(partial.length===0){final="[]"}else{if(gap===""){let properties=partial.join(",");final="["+properties+"]"}else{let properties=partial.join(",\n"+indent);final="[\n"+indent+properties+trailingComma+"\n"+stepback+"]"}}stack.pop();indent=stepback;return final}}exports2.parse=parse;exports2.stringify=stringify;Object.defineProperty(exports2,Symbol.toStringTag,{value:"Module"})}))},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);var ns=__osdBundles__.get("plugin/opensearchDashboardsUtils/common");Object.defineProperties(__webpack_exports__,Object.getOwnPropertyDescriptors(ns))},function(module,exports,__webpack_require__){var v1=__webpack_require__(86);var v4=__webpack_require__(87);var uuid=v4;uuid.v1=v1;uuid.v4=v4;module.exports=uuid},function(module,exports){const numeric=/^[0-9]+$/;const compareIdentifiers=(a,b)=>{const anum=numeric.test(a);const bnum=numeric.test(b);if(anum&&bnum){a=+a;b=+b}return a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a<b?-1:1};const rcompareIdentifiers=(a,b)=>compareIdentifiers(b,a);module.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},function(module,exports,__webpack_require__){const compare=__webpack_require__(11);const eq=(a,b,loose)=>compare(a,b,loose)===0;module.exports=eq},function(module,exports,__webpack_require__){const compare=__webpack_require__(11);const neq=(a,b,loose)=>compare(a,b,loose)!==0;module.exports=neq},function(module,exports,__webpack_require__){const eq=__webpack_require__(35);const neq=__webpack_require__(36);const gt=__webpack_require__(21);const gte=__webpack_require__(27);const lt=__webpack_require__(26);const lte=__webpack_require__(28);const cmp=(a,op,b,loose)=>{switch(op){case"===":if(typeof a==="object"){a=a.version}if(typeof b==="object"){b=b.version}return a===b;case"!==":if(typeof a==="object"){a=a.version}if(typeof b==="object"){b=b.version}return a!==b;case"":case"=":case"==":return eq(a,b,loose);case"!=":return neq(a,b,loose);case">":return gt(a,b,loose);case">=":return gte(a,b,loose);case"<":return lt(a,b,loose);case"<=":return lte(a,b,loose);default:throw new TypeError(`Invalid operator: ${op}`)}};module.exports=cmp},function(module,exports){var getRandomValues=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(getRandomValues){var rnds8=new Uint8Array(16);module.exports=function whatwgRNG(){getRandomValues(rnds8);return rnds8}}else{var rnds=new Array(16);module.exports=function mathRNG(){for(var i=0,r;i<16;i++){if((i&3)===0)r=Math.random()*4294967296;rnds[i]=r>>>((i&3)<<3)&255}return rnds}}},function(module,exports){var byteToHex=[];for(var i=0;i<256;++i){byteToHex[i]=(i+256).toString(16).substr(1)}function bytesToUuid(buf,offset){var i=offset||0;var bth=byteToHex;return[bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]]].join("")}module.exports=bytesToUuid},function(module,exports,__webpack_require__){"use strict";var IntlMessageFormat=__webpack_require__(89)["default"];__webpack_require__(96);exports=module.exports=IntlMessageFormat;exports["default"]=exports},function(module,exports,__webpack_require__){"use strict";exports.extend=extend;var hop=Object.prototype.hasOwnProperty;function extend(obj){var sources=Array.prototype.slice.call(arguments,1
1),i,len,source,key;for(i=0,len=sources.length;i<len;i+=1){source=sources[i];if(!source){continue}for(key in source){if(hop.call(source,key)){obj[key]=source[key]}}}return obj}exports.hop=hop},function(module,exports){module.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfOTg1XzE4ODEwMCkiPgogICAgPHBhdGggZD0iTTIwIDkuOTk5NzZMMjIuODI4NCAxNy4xNzEzTDMwIDE5Ljk5OThMMjIuODI4NCAyMi44MjgyTDIwIDI5Ljk5OThMMTcuMTcxNiAyMi44MjgyTDEwIDE5Ljk5OThMMTcuMTcxNiAxNy4xNzEzTDIwIDkuOTk5NzZaIiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjIuODU3MTQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KICAgIDxwYXRoIGQ9Ik0xMi4xNDI3IDguNTcxMjlMMTMuMjc5MSAxMS4wMDYzTDE1LjcxNDEgMTIuMTQyN0wxMy4yNzkxIDEzLjI3OTFMMTIuMTQyNyAxNS43MTQxTDExLjAwNjMgMTMuMjc5MUw4LjU3MTI5IDEyLjE0MjdMMTEuMDA2MyAxMS4wMDYzTDEyLjE0MjcgOC41NzEyOVoiIGZpbGw9ImJsYWNrIi8+CiAgPC9nPgogIDxkZWZzPgogICAgPGNsaXBQYXRoIGlkPSJjbGlwMF85ODVfMTg4MTAwIj4KICAgICAgPHJlY3Qgd2lkdGg9IjIyLjg1NzEiIGhlaWdodD0iMjIuODU3MSIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDguNTcxMjkgOC41NzEyOSkiLz4KICAgIDwvY2xpcFBhdGg+CiAgPC9kZWZzPgo8L3N2Zz4K"},function(module,exports){module.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzM5N184MjgzNikiPgo8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDFfMzk3XzgyODM2KSI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMl8zOTdfODI4MzYpIj4KPHBhdGggZD0iTTcuNjQyODIgMi42NDMwN0w5LjA1NzA0IDYuMjI4ODVMMTIuNjQyOCA3LjY0MzA3TDkuMDU3MDQgOS4wNTcyOEw3LjY0MjgyIDEyLjY0MzFMNi4yMjg2MSA5LjA1NzI4TDIuNjQyODIgNy42NDMwN0w2LjIyODYxIDYuMjI4ODVMNy42NDI4MiAyLjY0MzA3WiIgZmlsbD0iIzZBNzE3RCIgc3Ryb2tlPSIjNkE3MTdEIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0zLjE0MjgyIDEuMTQzMDdMMy43NzkyMiAyLjUwNjY3TDUuMTQyODIgMy4xNDMwN0wzLjc3OTIyIDMuNzc5NDZMMy4xNDI4MiA1LjE0MzA3TDIuNTA2NDMgMy43Nzk0NkwxLjE0MjgyIDMuMTQzMDdMMi41MDY0MyAyLjUwNjY3TDMuMTQyODIgMS4xNDMwN1oiIGZpbGw9IiM2QTcxN0QiLz4KPC9nPgo8L2c+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMzk3XzgyODM2Ij4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8Y2xpcFBhdGggaWQ9ImNsaXAxXzM5N184MjgzNiI+CjxyZWN0IHdpZHRoPSIxMy43MTQzIiBoZWlnaHQ9IjEzLjcxNDMiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxLjE0MjgyIDEuMTQzMDcpIi8+CjwvY2xpcFBhdGg+CjxjbGlwUGF0aCBpZD0iY2xpcDJfMzk3XzgyODM2Ij4KPHJlY3Qgd2lkdGg9IjEyIiBoZWlnaHQ9IjEyIiBmaWxsPSJ3aGl0ZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMS4xNDI4MiAxLjE0MzA3KSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo="},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_val_loader_dist_cjs_js_key_queryEnhancements_osd_ui_shared_deps_public_path_module_creator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(45);var _node_modules_val_loader_dist_cjs_js_key_queryEnhancements_osd_ui_shared_deps_public_path_module_creator_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_val_loader_dist_cjs_js_key_queryEnhancements_osd_ui_shared_deps_public_path_module_creator_js__WEBPACK_IMPORTED_MODULE_0__);__osdBundles__.define("plugin/queryEnhancements/public",__webpack_require__,113)},function(module,exports,__webpack_require__){__webpack_require__.p=window.__osdPublicPath__["queryEnhancements"]},function(module,exports,__webpack_require__){switch(window.__osdThemeTag__){case"v7dark":return __webpack_require__(47);case"v7light":return __webpack_require__(49);case"v8dark":return __webpack_require__(51);case"v8light":return __webpack_require__(53);case"v9dark":return __webpack_require__(55);case"v9light":return __webpack_require__(57)}},function(module,exports,__webpack_require__){var api=__webpack_require__(15);var content=__webpack_require__(48);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(10);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.queryAssist.queryAssist__summary{margin-top:4px}.queryAssist.queryAssist__summary_banner{background:#1d1e24;padding:4px}.queryAssist.queryAssist__callout{margin-top:4px}.queryAssist .queryAssist__popoverWrapper{display:flex;align-items:center;padding-right:8px}.queryAssist .queryAssist__inputWrapper:has(.queryAssist__input:focus) .queryAssist__popoverWrapper{display:none}.queryAssist .queryAssist__input{text-overflow:ellipsis}.queryAssist__popoverText{padding:0 12px}#queryAssistErrorTitle{margin-left:-20px}.osdQueryEditorExtensionComponent__query-assist{flex-grow:1}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(15);var content=__webpack_require__(50);
1content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(10);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.queryAssist.queryAssist__summary{margin-top:4px}.queryAssist.queryAssist__summary_banner{background:linear-gradient(to left, #edf7ff, #f9f4ff);padding:4px}.queryAssist.queryAssist__callout{margin-top:4px}.queryAssist .queryAssist__popoverWrapper{display:flex;align-items:center;padding-right:8px}.queryAssist .queryAssist__inputWrapper:has(.queryAssist__input:focus) .queryAssist__popoverWrapper{display:none}.queryAssist .queryAssist__input{text-overflow:ellipsis}.queryAssist__popoverText{padding:0 12px}#queryAssistErrorTitle{margin-left:-20px}.osdQueryEditorExtensionComponent__query-assist{flex-grow:1}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(15);var content=__webpack_require__(52);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(10);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.queryAssist.queryAssist__summary{margin-top:4px}.queryAssist.queryAssist__summary_banner{background:#0a121a;padding:4px}.queryAssist.queryAssist__callout{margin-top:4px}.queryAssist .queryAssist__popoverWrapper{display:flex;align-items:center;padding-right:8px}.queryAssist .queryAssist__inputWrapper:has(.queryAssist__input:focus) .queryAssist__popoverWrapper{display:none}.queryAssist .queryAssist__input{text-overflow:ellipsis}.queryAssist__popoverText{padding:0 12px}#queryAssistErrorTitle{margin-left:-20px}.osdQueryEditorExtensionComponent__query-assist{flex-grow:1}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(15);var content=__webpack_require__(54);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(10);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.queryAssist.queryAssist__summary{margin-top:4px}.queryAssist.queryAssist__summary_banner{background:linear-gradient(to left, #edf7ff, #f9f4ff);padding:4px}.queryAssist.queryAssist__callout{margin-top:4px}.queryAssist .queryAssist__popoverWrapper{display:flex;align-items:center;padding-right:8px}.queryAssist .queryAssist__inputWrapper:has(.queryAssist__input:focus) .queryAssist__popoverWrapper{display:none}.queryAssist .queryAssist__input{text-overflow:ellipsis}.queryAssist__popoverText{padding:0 12px}#queryAssistErrorTitle{margin-left:-20px}.osdQueryEditorExtensionComponent__query-assist{flex-grow:1}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(15);var content=__webpack_require__(56);
vendor: 7,499 bytes, line 1
1content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(10);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.queryAssist.queryAssist__summary{margin-top:4px}.queryAssist.queryAssist__summary_banner{background:#0f171f;padding:4px}.queryAssist.queryAssist__callout{margin-top:4px}.queryAssist .queryAssist__popoverWrapper{display:flex;align-items:center;padding-right:8px}.queryAssist .queryAssist__inputWrapper:has(.queryAssist__input:focus) .queryAssist__popoverWrapper{display:none}.queryAssist .queryAssist__input{text-overflow:ellipsis}.queryAssist__popoverText{padding:0 12px}#queryAssistErrorTitle{margin-left:-20px}.osdQueryEditorExtensionComponent__query-assist{flex-grow:1}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(15);var content=__webpack_require__(58);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(10);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.queryAssist.queryAssist__summary{margin-top:4px}.queryAssist.queryAssist__summary_banner{background:linear-gradient(to left, #edf7ff, #f9f4ff);padding:4px}.queryAssist.queryAssist__callout{margin-top:4px}.queryAssist .queryAssist__popoverWrapper{display:flex;align-items:center;padding-right:8px}.queryAssist .queryAssist__inputWrapper:has(.queryAssist__input:focus) .queryAssist__popoverWrapper{display:none}.queryAssist .queryAssist__input{text-overflow:ellipsis}.queryAssist__popoverText{padding:0 12px}#queryAssistErrorTitle{margin-left:-20px}.osdQueryEditorExtensionComponent__query-assist{flex-grow:1}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports){var process=module.exports={};var cachedSetTimeout;var cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){cachedSetTimeout=setTimeout}else{cachedSetTimeout=defaultSetTimout}}catch(e){cachedSetTimeout=defaultSetTimout}try{if(typeof clearTimeout==="function"){cachedClearTimeout=clearTimeout}else{cachedClearTimeout=defaultClearTimeout}}catch(e){cachedClearTimeout=defaultClearTimeout}})();function runTimeout(fun){if(cachedSetTimeout===setTimeout){return setTimeout(fun,0)}if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout){cachedSetTimeout=setTimeout;return setTimeout(fun,0)}try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout){return clearTimeout(marker)}if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout){cachedClearTimeout=clearTimeout;return clearTimeout(marker)}try{return cachedClearTimeout(marker)}catch(e){try{return cachedClearTimeout.call(null,marker)}catch(e){return cachedClearTimeout.call(this,marker)}}}var queue=[];var draining=false;var currentQueue;var queueIndex=-1;function cleanUpNextTick(){if(!draining||!currentQueue){return}draining=false;if(currentQueue.length){queue=currentQueue.concat(queue)}else{queueIndex=-1}if(queue.length){drainQueue()}}function drainQueue(){if(draining){return}var timeout=runTimeout(cleanUpNextTick);draining=true;var len=queue.length;while(len){currentQueue=queue;queue=[];while(++queueIndex<len){if(currentQueue){currentQueue[queueIndex].run()}}queueIndex=-1;len=queue.length}currentQueue=null;draining=false;runClearTimeout(timeout)}process.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1){for(var i=1;i<arguments.length;i++){args[i-1]=arguments[i]}}queue.push(new Item(fun,args));if(queue.length===1&&!draining){runTimeout(drainQueue)}};function Item(fun,array){this.fun=fun;this.array=array}Item.prototype.run=function(){this.fun.apply(null,this.array)};process.title="browser";process.browser=true;process.env={};process.argv=[];process.version="";process.versions={};function noop(){}process.on=noop;process.addListener=noop;process.once=noop;process.off=noop;process.removeListener=noop;process.removeAllListeners=noop;process.emit=noop;process.prependListener=noop;process.prependOnceListener=noop;process.listeners=function(name){return[]};process.binding=function(name){throw new Error("process.binding is not supported")};process.cwd=function(){return"/"};process.chdir=function(dir){throw new Error("process.chdir is not supported")};process.umask=function(){return 0}},function(module,exports,__webpack_require__){const parse=__webpack_require__(16);const valid=(version,options)=>{const v=parse(version,options);return v?v.version:null};module.exports=valid},function(module,exports,__webpack_require__){const parse=__webpack_require__(16);const clean=(version,options)=>{const s=parse(version.trim().replace(/^[=v]+/,""),options);return s?s.version:null};module.exports=clean},function(module,exports,__webpack_require__){const SemVer=__webpack_require__(8);const inc=(version,release,options,identifier,identifierBase)=>{if(typeof options==="string"){identifierBase=identifier;identifier=options;options=undefined}try{return new SemVer(version instanceof SemVer?version.version:version,options).inc(release,identifier,identifierBase).version}catch(er){return null}};module.exports=inc},function(module,exports,__webpack_require__){const parse=__webpack_require__(16);const diff=(version1,version2)=>
1{const v1=parse(version1,null,true);const v2=parse(version2,null,true);const comparison=v1.compare(v2);if(comparison===0){return null}const v1Higher=comparison>0;const highVersion=v1Higher?v1:v2;const lowVersion=v1Higher?v2:v1;const highHasPre=!!highVersion.prerelease.length;const lowHasPre=!!lowVersion.prerelease.length;if(lowHasPre&&!highHasPre){if(!lowVersion.patch&&!lowVersion.minor){return"major"}if(highVersion.patch){return"patch"}if(highVersion.minor){return"minor"}return"major"}const prefix=highHasPre?"pre":"";if(v1.major!==v2.major){return prefix+"major"}if(v1.minor!==v2.minor){return prefix+"minor"}if(v1.patch!==v2.patch){return prefix+"patch"}return"prerelease"};module.exports=diff},function(module,exports,__webpack_require__){const SemVer=__webpack_require__(8);const major=(a,loose)=>new SemVer(a,loose).major;module.exports=major},function(module,exports,__webpack_require__){const SemVer=__webpack_require__(8);const minor=(a,loose)=>new SemVer(a,loose).minor;module.exports=minor},function(module,exports,__webpack_require__){const SemVer=__webpack_require__(8);const patch=(a,loose)=>new SemVer(a,loose).patch;module.exports=patch},function(module,exports,__webpack_require__){const parse=__webpack_require__(16);const prerelease=(version,options)=>{const parsed=parse(version,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null};module.exports=prerelease},function(module,exports,__webpack_require__){const compare=__webpack_require__(11);const rcompare=(a,b,loose)=>compare(b,a,loose);module.exports=rcompare},function(module,exports,__webpack_require__){const compare=__webpack_require__(11);const compareLoose=(a,b)=>compare(a,b,true);module.exports=compareLoose},function(module,exports,__webpack_require__){const compareBuild=__webpack_require__(25);const sort=(list,loose)=>list.sort((a,b)=>compareBuild(a,b,loose));module.exports=sort},function(module,exports,__webpack_require__){const compareBuild=__webpack_require__(25);const rsort=(list,loose)=>list.sort((a,b)=>compareBuild(b,a,loose));module.exports=rsort},function(module,exports,__webpack_require__){const SemVer=__webpack_require__(8);const parse=__webpack_require__(16);const{safeRe:re,t:t}=__webpack_require__(18);const coerce=(version,options)=>{if(version instanceof SemVer){return version}if(typeof version==="number"){version=String(version)}if(typeof version!=="string"){return null}options=options||{};let match=null;if(!options.rtl){match=version.match(re[t.COERCE])}else{let next;while((next=re[t.COERCERTL].exec(version))&&(!match||match.index+match[0].length!==version.length)){if(!match||next.index+next[0].length!==match.index+match[0].length){match=next}re[t.COERCERTL].lastIndex=next.index+next[1].length+next[2].length}re[t.COERCERTL].lastIndex=-1}if(match===null){return null}return parse(`${match[2]}.${match[3]||"0"}.${match[4]||"0"}`,options)};module.exports=coerce},function(module,exports,__webpack_require__){"use strict";const Yallist=__webpack_require__(74);const MAX=Symbol("max");const LENGTH=Symbol("length");const LENGTH_CALCULATOR=Symbol("lengthCalculator");const ALLOW_STALE=Symbol("allowStale");const MAX_AGE=Symbol("maxAge");const DISPOSE=Symbol("dispose");const NO_DISPOSE_ON_SET=Symbol("noDisposeOnSet");const LRU_LIST=Symbol("lruList");const CACHE=Symbol("cache");const UPDATE_AGE_ON_GET=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(options){if(typeof options==="number")options={max:options};if(!options)options={};if(options.max&&(typeof options.max!=="number"||options.max<0))throw new TypeError("max must be a non-negative number");const max=this[MAX]=options.max||Infinity;const lc=options.length||naiveLength;this[LENGTH_CALCULATOR]=typeof lc!=="function"?naiveLength:lc;this[ALLOW_STALE]=options.stale||false;if(options.maxAge&&typeof options.maxAge!=="number")throw new TypeError("maxAge must be a number");this[MAX_AGE]=options.maxAge||0;this[DISPOSE]=options.dispose;this[NO_DISPOSE_ON_SET]=options.noDisposeOnSet||false;this[UPDATE_AGE_ON_GET]=options.updateAgeOnGet||false;this.reset()}set max(mL){if(typeof mL!=="number"||mL<0)throw new TypeError("max must be a non-negative number");this[MAX]=mL||Infinity;trim(this)}get max(){return this[MAX]}set allowStale(allowStale){this[ALLOW_STALE]=!!allowStale}get allowStale(){return this[ALLOW_STALE]}set maxAge(mA){if(typeof mA!=="number")throw new TypeError("maxAge must be a non-negative number");this[MAX_AGE]=mA;trim(this)}get maxAge(){return this[MAX_AGE]}set lengthCalculator(lC){if(typeof lC!=="function")lC=naiveLength;if(lC!==this[LENGTH_CALCULATOR]){this[LENGTH_CALCULATOR]=lC;this[LENGTH]=0;this[LRU_LIST].forEach(hit=>
1{hit.length=this[LENGTH_CALCULATOR](hit.value,hit.key);this[LENGTH]+=hit.length})}trim(this)}get lengthCalculator(){return this[LENGTH_CALCULATOR]}get length(){return this[LENGTH]}get itemCount(){return this[LRU_LIST].length}rforEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].tail;walker!==null;){const prev=walker.prev;forEachStep(this,fn,walker,thisp);walker=prev}}forEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].head;walker!==null;){const next=walker.next;forEachStep(this,fn,walker,thisp);walker=next}}keys(){return this[LRU_LIST].toArray().map(k=>k.key)}values(){return this[LRU_LIST].toArray().map(k=>k.value)}reset(){if(this[DISPOSE]&&this[LRU_LIST]&&this[LRU_LIST].length){this[LRU_LIST].forEach(hit=>this[DISPOSE](hit.key,hit.value))}this[CACHE]=new Map;this[LRU_LIST]=new Yallist;this[LENGTH]=0}dump(){return this[LRU_LIST].map(hit=>isStale(this,hit)?false:{k:hit.key,v:hit.value,e:hit.now+(hit.maxAge||0)}).toArray().filter(h=>h)}dumpLru(){return this[LRU_LIST]}set(key,value,maxAge){maxAge=maxAge||this[MAX_AGE];if(maxAge&&typeof maxAge!=="number")throw new TypeError("maxAge must be a number");const now=maxAge?Date.now():0;const len=this[LENGTH_CALCULATOR](value,key);if(this[CACHE].has(key)){if(len>this[MAX]){del(this,this[CACHE].get(key));return false}const node=this[CACHE].get(key);const item=node.value;if(this[DISPOSE]){if(!this[NO_DISPOSE_ON_SET])this[DISPOSE](key,item.value)}item.now=now;item.maxAge=maxAge;item.value=value;this[LENGTH]+=len-item.length;item.length=len;this.get(key);trim(this);return true}const hit=new Entry(key,value,len,now,maxAge);if(hit.length>this[MAX]){if(this[DISPOSE])this[DISPOSE](key,value);return false}this[LENGTH]+=hit.length;this[LRU_LIST].unshift(hit);this[CACHE].set(key,this[LRU_LIST].head);trim(this);return true}has(key){if(!this[CACHE].has(key))return false;const hit=this[CACHE].get(key).value;return!isStale(this,hit)}get(key){return get(this,key,true)}peek(key){return get(this,key,false)}pop(){const node=this[LRU_LIST].tail;if(!node)return null;del(this,node);return node.value}del(key){del(this,this[CACHE].get(key))}load(arr){this.reset();const now=Date.now();for(let l=arr.length-1;l>=0;l--){const hit=arr[l];const expiresAt=hit.e||0;if(expiresAt===0)this.set(hit.k,hit.v);else{const maxAge=expiresAt-now;if(maxAge>0){this.set(hit.k,hit.v,maxAge)}}}}prune(){this[CACHE].forEach((value,key)=>get(this,key,false))}}const get=(self,key,doUse)=>{const node=self[CACHE].get(key);if(node){const hit=node.value;if(isStale(self,hit)){del(self,node);if(!self[ALLOW_STALE])return undefined}else{if(doUse){if(self[UPDATE_AGE_ON_GET])node.value.now=Date.now();self[LRU_LIST].unshiftNode(node)}}return hit.value}};const isStale=(self,hit)=>{if(!hit||!hit.maxAge&&!self[MAX_AGE])return false;const diff=Date.now()-hit.now;return hit.maxAge?diff>hit.maxAge:self[MAX_AGE]&&diff>self[MAX_AGE]};const trim=self=>{if(self[LENGTH]>self[MAX]){for(let walker=self[LRU_LIST].tail;self[LENGTH]>self[MAX]&&walker!==null;){const prev=walker.prev;del(self,walker);walker=prev}}};const del=(self,node)=>{if(node){const hit=node.value;if(self[DISPOSE])self[DISPOSE](hit.key,hit.value);self[LENGTH]-=hit.length;self[CACHE].delete(hit.key);self[LRU_LIST].removeNode(node)}};class Entry{constructor(key,value,length,now,maxAge){this.key=key;this.value=value;this.length=length;this.now=now;this.maxAge=maxAge||0}}const forEachStep=(self,fn,node,thisp)=>{let hit=node.value;if(isStale(self,hit)){del(self,node);if(!self[ALLOW_STALE])hit=undefined}if(hit)fn.call(thisp,hit.value,hit.key,self)};module.exports=LRUCache},function(module,exports,__webpack_require__){"use strict";module.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(list){var self=this;if(!(self instanceof Yallist)){self=new Yallist}self.tail=null;self.head=null;self.length=0;if(list&&typeof list.forEach==="function"){list.forEach((function(item){self.push(item)}))}else if(arguments.length>0){for(var i=0,l=arguments.length;i<l;i++){self.push(arguments[i])}}return self}Yallist.prototype.removeNode=function(node){if(node.list!==this){throw new Error("remov
1ing node which does not belong to this list")}var next=node.next;var prev=node.prev;if(next){next.prev=prev}if(prev){prev.next=next}if(node===this.head){this.head=next}if(node===this.tail){this.tail=prev}node.list.length--;node.next=null;node.prev=null;node.list=null;return next};Yallist.prototype.unshiftNode=function(node){if(node===this.head){return}if(node.list){node.list.removeNode(node)}var head=this.head;node.list=this;node.next=head;if(head){head.prev=node}this.head=node;if(!this.tail){this.tail=node}this.length++};Yallist.prototype.pushNode=function(node){if(node===this.tail){return}if(node.list){node.list.removeNode(node)}var tail=this.tail;node.list=this;node.prev=tail;if(tail){tail.next=node}this.tail=node;if(!this.head){this.head=node}this.length++};Yallist.prototype.push=function(){for(var i=0,l=arguments.length;i<l;i++){push(this,arguments[i])}return this.length};Yallist.prototype.unshift=function(){for(var i=0,l=arguments.length;i<l;i++){unshift(this,arguments[i])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var res=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return res};Yallist.prototype.shift=function(){if(!this.head){return undefined}var res=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return res};Yallist.prototype.forEach=function(fn,thisp){thisp=thisp||this;for(var walker=this.head,i=0;walker!==null;i++){fn.call(thisp,walker.value,i,this);walker=walker.next}};Yallist.prototype.forEachReverse=function(fn,thisp){thisp=thisp||this;for(var walker=this.tail,i=this.length-1;walker!==null;i--){fn.call(thisp,walker.value,i,this);walker=walker.prev}};Yallist.prototype.get=function(n){for(var i=0,walker=this.head;walker!==null&&i<n;i++){walker=walker.next}if(i===n&&walker!==null){return walker.value}};Yallist.prototype.getReverse=function(n){for(var i=0,walker=this.tail;walker!==null&&i<n;i++){walker=walker.prev}if(i===n&&walker!==null){return walker.value}};Yallist.prototype.map=function(fn,thisp){thisp=thisp||this;var res=new Yallist;for(var walker=this.head;walker!==null;){res.push(fn.call(thisp,walker.value,this));walker=walker.next}return res};Yallist.prototype.mapReverse=function(fn,thisp){thisp=thisp||this;var res=new Yallist;for(var walker=this.tail;walker!==null;){res.push(fn.call(thisp,walker.value,this));walker=walker.prev}return res};Yallist.prototype.reduce=function(fn,initial){var acc;var walker=this.head;if(arguments.length>1){acc=initial}else if(this.head){walker=this.head.next;acc=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=0;walker!==null;i++){acc=fn(acc,walker.value,i);walker=walker.next}return acc};Yallist.prototype.reduceReverse=function(fn,initial){var acc;var walker=this.tail;if(arguments.length>1){acc=initial}else if(this.tail){walker=this.tail.prev;acc=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=this.length-1;walker!==null;i--){acc=fn(acc,walker.value,i);walker=walker.prev}return acc};Yallist.prototype.toArray=function(){var arr=new Array(this.length);for(var i=0,walker=this.head;walker!==null;i++){arr[i]=walker.value;walker=walker.next}return arr};Yallist.prototype.toArrayReverse=function(){var arr=new Array(this.length);for(var i=0,walker=this.tail;walker!==null;i++){arr[i]=walker.value;walker=walker.prev}return arr};Yallist.prototype.slice=function(from,to){to=to||this.length;if(to<0){to+=this.length}from=from||0;if(from<0){from+=this.length}var ret=new Yallist;if(to<from||to<0){return ret}if(from<0){from=0}if(to>this.length){to=this.length}for(var i=0,walker=this.head;walker!==null&&i<from;i++){walker=walker.next}for(;walker!==null&&i<to;i++,walker=walker.next){ret.push(walker.value)}return ret};Yallist.prototype.sliceReverse=function(from,to){to=to||this.length;if(to<0){to+=this.length}from=from||0;if(from<0){from+=this.length}var ret=new Yallist;if(to<from||to<0){return ret}if(from<0){from=0}if(to>this.length){to=this.length}for(var i=this.length,walker=this.tail;walker!==null&&i>to;i--){walker=walker.prev}for(;walker!==null&&i>from;i--,walker=walker.prev){ret.push(walker.value)}return ret};Yallist.prototype.splice=function(start,deleteCount,...nodes){if(start>this.length){start=this.length-1}if(start<0){start=this.length+start}for(var i=0,walker=this.head;walker!==null&&i<start;i++){walker=walker.next}var ret=[];for(var i=0;walker&&i<deleteCount;i++){ret.push(walker.value);walker=this.removeNode(walker)}if(walker===null){walker=this.tail}if(walker!==this.head&&walker!==this.tail){walker=walker.prev}for(var i=0;i<nodes.length;i++){walker=insert(this,walker,nodes[i])}return ret};Yallist.prototype.reverse=function(){var head=this.head;var tail=this.tail;for(var walker=head;walker!==null;walker=walker.prev){var p=walker.prev;walker.prev=walker.next;walker.next=p}this.head=tail;this.tail=head;return this};
1function insert(self,node,value){var inserted=node===self.head?new Node(value,null,node,self):new Node(value,node,node.next,self);if(inserted.next===null){self.tail=inserted}if(inserted.prev===null){self.head=inserted}self.length++;return inserted}function push(self,item){self.tail=new Node(item,self.tail,null,self);if(!self.head){self.head=self.tail}self.length++}function unshift(self,item){self.head=new Node(item,null,self.head,self);if(!self.tail){self.tail=self.head}self.length++}function Node(value,prev,next,list){if(!(this instanceof Node)){return new Node(value,prev,next,list)}this.list=list;this.value=value;if(prev){prev.next=this;this.prev=prev}else{this.prev=null}if(next){next.prev=this;this.next=next}else{this.next=null}}try{__webpack_require__(75)(Yallist)}catch(er){}},function(module,exports,__webpack_require__){"use strict";module.exports=function(Yallist){Yallist.prototype[Symbol.iterator]=function*(){for(let walker=this.head;walker;walker=walker.next){yield walker.value}}}},function(module,exports,__webpack_require__){const Range=__webpack_require__(12);const toComparators=(range,options)=>new Range(range,options).set.map(comp=>comp.map(c=>c.value).join(" ").trim().split(" "));module.exports=toComparators},function(module,exports,__webpack_require__){const SemVer=__webpack_require__(8);const Range=__webpack_require__(12);const maxSatisfying=(versions,range,options)=>{let max=null;let maxSV=null;let rangeObj=null;try{rangeObj=new Range(range,options)}catch(er){return null}versions.forEach(v=>{if(rangeObj.test(v)){if(!max||maxSV.compare(v)===-1){max=v;maxSV=new SemVer(max,options)}}});return max};module.exports=maxSatisfying},function(module,exports,__webpack_require__){const SemVer=__webpack_require__(8);const Range=__webpack_require__(12);const minSatisfying=(versions,range,options)=>{let min=null;let minSV=null;let rangeObj=null;try{rangeObj=new Range(range,options)}catch(er){return null}versions.forEach(v=>{if(rangeObj.test(v)){if(!min||minSV.compare(v)===1){min=v;minSV=new SemVer(min,options)}}});return min};module.exports=minSatisfying},function(module,exports,__webpack_require__){const SemVer=__webpack_require__(8);const Range=__webpack_require__(12);const gt=__webpack_require__(21);const minVersion=(range,loose)=>{range=new Range(range,loose);let minver=new SemVer("0.0.0");if(range.test(minver)){return minver}minver=new SemVer("0.0.0-0");if(range.test(minver)){return minver}minver=null;for(let i=0;i<range.set.length;++i){const comparators=range.set[i];let setMin=null;comparators.forEach(comparator=>{const compver=new SemVer(comparator.semver.version);switch(comparator.operator){case">":if(compver.prerelease.length===0){compver.patch++}else{compver.prerelease.push(0)}compver.raw=compver.format();case"":case">=":if(!setMin||gt(compver,setMin)){setMin=compver}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${comparator.operator}`)}});if(setMin&&(!minver||gt(minver,setMin))){minver=setMin}}if(minver&&range.test(minver)){return minver}return null};module.exports=minVersion},function(module,exports,__webpack_require__){const Range=__webpack_require__(12);const validRange=(range,options)=>{try{return new Range(range,options).range||"*"}catch(er){return null}};module.exports=validRange},function(module,exports,__webpack_require__){const outside=__webpack_require__(29);const gtr=(version,range,options)=>outside(version,range,">",options);module.exports=gtr},function(module,exports,__webpack_require__){const outside=__webpack_require__(29);const ltr=(version,range,options)=>outside(version,range,"<",options);module.exports=ltr},function(module,exports,__webpack_require__){const Range=__webpack_require__(12);const intersects=(r1,r2,options)=>{r1=new Range(r1,options);r2=new Range(r2,options);return r1.intersects(r2,options)};module.exports=intersects},function(module,exports,__webpack_require__){const satisfies=__webpack_require__(23);const compare=__webpack_require__(11);module.exports=(versions,range,options)=>{const set=[];let first=null;let prev=null;const v=versions.sort((a,b)=>compare(a,b,options));for(const version of v){const included=satisfies(version,range,options);if(included){prev=version;if(!first){first=version}}else{if(prev){set.push([first,prev])}prev=null;first=null}}if(first){set.push([first,null])}const ranges=[];for(const[min,max]of set){if(min===max){ranges.push(min)}else if(!max&&min===v[0]){ranges.push("*")}else if(!max){ranges.push(`>=${min}`)}else if(min===v[0]){ranges.push(`<=${max}`)}else{ranges.push(`${min} - ${max}`)}}const simplified=ranges.join(" || ");const original=typeof range.raw==="string"?range.raw:String(range);return simplified.length<original.length?simplified:range}},function(module,exports,__webpack_require__){const Range=__webpack_require__(12);const Comparator=__webpack_require__(22);const{ANY:ANY}=Comparator;const satisfies=__webpack_require__(23);const compare=__webpack_require__(11);const subset=(sub,dom,options={})=>
1{if(sub===dom){return true}sub=new Range(sub,options);dom=new Range(dom,options);let sawNonNull=false;OUTER:for(const simpleSub of sub.set){for(const simpleDom of dom.set){const isSub=simpleSubset(simpleSub,simpleDom,options);sawNonNull=sawNonNull||isSub!==null;if(isSub){continue OUTER}}if(sawNonNull){return false}}return true};const minimumVersionWithPreRelease=[new Comparator(">=0.0.0-0")];const minimumVersion=[new Comparator(">=0.0.0")];const simpleSubset=(sub,dom,options)=>{if(sub===dom){return true}if(sub.length===1&&sub[0].semver===ANY){if(dom.length===1&&dom[0].semver===ANY){return true}else if(options.includePrerelease){sub=minimumVersionWithPreRelease}else{sub=minimumVersion}}if(dom.length===1&&dom[0].semver===ANY){if(options.includePrerelease){return true}else{dom=minimumVersion}}const eqSet=new Set;let gt,lt;for(const c of sub){if(c.operator===">"||c.operator===">="){gt=higherGT(gt,c,options)}else if(c.operator==="<"||c.operator==="<="){lt=lowerLT(lt,c,options)}else{eqSet.add(c.semver)}}if(eqSet.size>1){return null}let gtltComp;if(gt&<){gtltComp=compare(gt.semver,lt.semver,options);if(gtltComp>0){return null}else if(gtltComp===0&&(gt.operator!==">="||lt.operator!=="<=")){return null}}for(const eq of eqSet){if(gt&&!satisfies(eq,String(gt),options)){return null}if(lt&&!satisfies(eq,String(lt),options)){return null}for(const c of dom){if(!satisfies(eq,String(c),options)){return false}}return true}let higher,lower;let hasDomLT,hasDomGT;let needDomLTPre=lt&&!options.includePrerelease&<.semver.prerelease.length?lt.semver:false;let needDomGTPre=gt&&!options.includePrerelease&>.semver.prerelease.length?gt.semver:false;if(needDomLTPre&&needDomLTPre.prerelease.length===1&<.operator==="<"&&needDomLTPre.prerelease[0]===0){needDomLTPre=false}for(const c of dom){hasDomGT=hasDomGT||c.operator===">"||c.operator===">=";hasDomLT=hasDomLT||c.operator==="<"||c.operator==="<=";if(gt){if(needDomGTPre){if(c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomGTPre.major&&c.semver.minor===needDomGTPre.minor&&c.semver.patch===needDomGTPre.patch){needDomGTPre=false}}if(c.operator===">"||c.operator===">="){higher=higherGT(gt,c,options);if(higher===c&&higher!==gt){return false}}else if(gt.operator===">="&&!satisfies(gt.semver,String(c),options)){return false}}if(lt){if(needDomLTPre){if(c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomLTPre.major&&c.semver.minor===needDomLTPre.minor&&c.semver.patch===needDomLTPre.patch){needDomLTPre=false}}if(c.operator==="<"||c.operator==="<="){lower=lowerLT(lt,c,options);if(lower===c&&lower!==lt){return false}}else if(lt.operator==="<="&&!satisfies(lt.semver,String(c),options)){return false}}if(!c.operator&&(lt||gt)&>ltComp!==0){return false}}if(gt&&hasDomLT&&!lt&>ltComp!==0){return false}if(lt&&hasDomGT&&!gt&>ltComp!==0){return false}if(needDomGTPre||needDomLTPre){return false}return true};const higherGT=(a,b,options)=>{if(!a){return b}const comp=compare(a.semver,b.semver,options);return comp>0?a:comp<0?b:b.operator===">"&&a.operator===">="?b:a};const lowerLT=(a,b,options)=>{if(!a){return b}const comp=compare(a.semver,b.semver,options);return comp<0?a:comp>0?b:b.operator==="<"&&a.operator==="<="?b:a};module.exports=subset},function(module,exports,__webpack_require__){var rng=__webpack_require__(38);var bytesToUuid=__webpack_require__(39);var _nodeId;var _clockseq;var _lastMSecs=0;var _lastNSecs=0;function v1(options,buf,offset){var i=buf&&offset||0;var b=buf||[];options=options||{};var node=options.node||_nodeId;var clockseq=options.clockseq!==undefined?options.clockseq:_clockseq;if(node==null||clockseq==null){var seedBytes=rng();if(node==null){node=_nodeId=[seedBytes[0]|1,seedBytes[1],seedBytes[2],seedBytes[3],seedBytes[4],seedBytes[5]]}if(clockseq==null){clockseq=_clockseq=(seedBytes[6]<<8|seedBytes[7])&16383}}var msecs=options.msecs!==undefined?options.msecs:(new Date).getTime();var nsecs=options.nsecs!==undefined?options.nsecs:_lastNSecs+1;var dt=msecs-_lastMSecs+(nsecs-_lastNSecs)/1e4;if(dt<0&&options.clockseq===undefined){clockseq=clockseq+1&16383}if((dt<0||msecs>_lastMSecs)&&options.nsecs===undefined){nsecs=0}if(nsecs>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}_lastMSecs=msecs;_lastNSecs=nsecs;_clockseq=clockseq;msecs+=122192928e5;var tl=((msecs&268435455)*1e4+nsecs)%4294967296;b[i++]=tl>>>24&255;b[i++]=tl>>>16&255;b[i++]=tl>>>8&255;b[i++]=tl&255;var tmh=msecs/4294967296*1e4&268435455;b[i++]=tmh>>>8&255;b[i++]=tmh&255;b[i++]=tmh>>>24&15|16;b[i++]=tmh>>>16&255;b[i++]=clockseq>>>8|128;b[i++]=clockseq&255;for(var n=0;n<6;++n){b[i+n]=node[n]}return buf?buf:bytesToUuid(b)}module.exports=v1}
1,function(module,exports,__webpack_require__){var rng=__webpack_require__(38);var bytesToUuid=__webpack_require__(39);function v4(options,buf,offset){var i=buf&&offset||0;if(typeof options=="string"){buf=options==="binary"?new Array(16):null;options=null}options=options||{};var rnds=options.random||(options.rng||rng)();rnds[6]=rnds[6]&15|64;rnds[8]=rnds[8]&63|128;if(buf){for(var ii=0;ii<16;++ii){buf[i+ii]=rnds[ii]}}return buf||bytesToUuid(rnds)}module.exports=v4},function(module,exports){},function(module,exports,__webpack_require__){"use strict";var src$core$$=__webpack_require__(90),src$en$$=__webpack_require__(95);src$core$$["default"].__addLocaleData(src$en$$["default"]);src$core$$["default"].defaultLocale="en";exports["default"]=src$core$$["default"]},function(module,exports,__webpack_require__){"use strict";var src$utils$$=__webpack_require__(41),src$es5$$=__webpack_require__(91),src$compiler$$=__webpack_require__(92),intl$messageformat$parser$$=__webpack_require__(93);exports["default"]=MessageFormat;function MessageFormat(message,locales,formats){var ast=typeof message==="string"?MessageFormat.__parse(message):message;if(!(ast&&ast.type==="messageFormatPattern")){throw new TypeError("A message must be provided as a String or AST.")}formats=this._mergeFormats(MessageFormat.formats,formats);src$es5$$.defineProperty(this,"_locale",{value:this._resolveLocale(locales)});var pluralFn=this._findPluralRuleFunction(this._locale);var pattern=this._compilePattern(ast,locales,formats,pluralFn);var messageFormat=this;this.format=function(values){try{return messageFormat._format(pattern,values)}catch(e){if(e.variableId){throw new Error("The intl string context variable '"+e.variableId+"'"+" was not provided to the string '"+message+"'")}else{throw e}}}}src$es5$$.defineProperty(MessageFormat,"formats",{enumerable:true,value:{number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}});src$es5$$.defineProperty(MessageFormat,"__localeData__",{value:src$es5$$.objCreate(null)});src$es5$$.defineProperty(MessageFormat,"__addLocaleData",{value:function(data){if(!(data&&data.locale)){throw new Error("Locale data provided to IntlMessageFormat is missing a "+"`locale` property")}MessageFormat.__localeData__[data.locale.toLowerCase()]=data}});src$es5$$.defineProperty(MessageFormat,"__parse",{value:intl$messageformat$parser$$["default"].parse});src$es5$$.defineProperty(MessageFormat,"defaultLocale",{enumerable:true,writable:true,value:undefined});MessageFormat.prototype.resolvedOptions=function(){return{locale:this._locale}};MessageFormat.prototype._compilePattern=function(ast,locales,formats,pluralFn){var compiler=new src$compiler$$["default"](locales,formats,pluralFn);return compiler.compile(ast)};MessageFormat.prototype._findPluralRuleFunction=function(locale){var localeData=MessageFormat.__localeData__;var data=localeData[locale.toLowerCase()];while(data){if(data.pluralRuleFunction){return data.pluralRuleFunction}data=data.parentLocale&&localeData[data.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlMessageFormat is missing a "+"`pluralRuleFunction` for :"+locale)};MessageFormat.prototype._format=function(pattern,values){var result="",i,len,part,id,value,err;for(i=0,len=pattern.length;i<len;i+=1){part=pattern[i];if(typeof part==="string"){result+=part;continue}id=part.id;if(!(values&&src$utils$$.hop.call(values,id))){err=new Error("A value must be provided for: "+id);err.variableId=id;throw err}value=values[id];if(part.options){result+=this._format(part.getOption(value),values)}else{result+=part.format(value)}}return result};MessageFormat.prototype._mergeFormats=function(defaults,formats){var mergedFormats={},type,mergedType;for(type in defaults){if(!src$utils$$.hop.call(defaults,type)){continue}mergedFormats[type]=mergedType=src$es5$$.objCreate(defaults[type]);if(formats&&src$utils$$.hop.call(formats,type)){src$utils$$.extend(mergedType,formats[type])}}return mergedFormats};
1MessageFormat.prototype._resolveLocale=function(locales){if(typeof locales==="string"){locales=[locales]}locales=(locales||[]).concat(MessageFormat.defaultLocale);var localeData=MessageFormat.__localeData__;var i,len,localeParts,data;for(i=0,len=locales.length;i<len;i+=1){localeParts=locales[i].toLowerCase().split("-");while(localeParts.length){data=localeData[localeParts.join("-")];if(data){return data.locale}localeParts.pop()}}var defaultLocale=locales.pop();throw new Error("No locale data has been added to IntlMessageFormat for: "+locales.join(", ")+", or the default locale: "+defaultLocale)}},function(module,exports,__webpack_require__){"use strict";var src$utils$$=__webpack_require__(41);var realDefineProp=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return false}}();var es3=!realDefineProp&&!Object.prototype.__defineGetter__;var defineProperty=realDefineProp?Object.defineProperty:function(obj,name,desc){if("get"in desc&&obj.__defineGetter__){obj.__defineGetter__(name,desc.get)}else if(!src$utils$$.hop.call(obj,name)||"value"in desc){obj[name]=desc.value}};var objCreate=Object.create||function(proto,props){var obj,k;function F(){}F.prototype=proto;obj=new F;for(k in props){if(src$utils$$.hop.call(props,k)){defineProperty(obj,k,props[k])}}return obj};exports.defineProperty=defineProperty,exports.objCreate=objCreate},function(module,exports,__webpack_require__){"use strict";exports["default"]=Compiler;function Compiler(locales,formats,pluralFn){this.locales=locales;this.formats=formats;this.pluralFn=pluralFn}Compiler.prototype.compile=function(ast){this.pluralStack=[];this.currentPlural=null;this.pluralNumberFormat=null;return this.compileMessage(ast)};Compiler.prototype.compileMessage=function(ast){if(!(ast&&ast.type==="messageFormatPattern")){throw new Error('Message AST is not of type: "messageFormatPattern"')}var elements=ast.elements,pattern=[];var i,len,element;for(i=0,len=elements.length;i<len;i+=1){element=elements[i];switch(element.type){case"messageTextElement":pattern.push(this.compileMessageText(element));break;case"argumentElement":pattern.push(this.compileArgument(element));break;default:throw new Error("Message element does not have a valid type")}}return pattern};Compiler.prototype.compileMessageText=function(element){if(this.currentPlural&&/(^|[^\\])#/g.test(element.value)){if(!this.pluralNumberFormat){this.pluralNumberFormat=new Intl.NumberFormat(this.locales)}return new PluralOffsetString(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,element.value)}return element.value.replace(/\\#/g,"#")};Compiler.prototype.compileArgument=function(element){var format=element.format;if(!format){return new StringFormat(element.id)}var formats=this.formats,locales=this.locales,pluralFn=this.pluralFn,options;switch(format.type){case"numberFormat":options=formats.number[format.style];return{id:element.id,format:new Intl.NumberFormat(locales,options).format};case"dateFormat":options=formats.date[format.style];return{id:element.id,format:new Intl.DateTimeFormat(locales,options).format};case"timeFormat":options=formats.time[format.style];return{id:element.id,format:new Intl.DateTimeFormat(locales,options).format};case"pluralFormat":options=this.compileOptions(element);return new PluralFormat(element.id,format.ordinal,format.offset,options,pluralFn);case"selectFormat":options=this.compileOptions(element);return new SelectFormat(element.id,options);default:throw new Error("Message element does not have a valid format type")}};Compiler.prototype.compileOptions=function(element){var format=element.format,options=format.options,optionsHash={};this.pluralStack.push(this.currentPlural);this.currentPlural=format.type==="pluralFormat"?element:null;var i,len,option;for(i=0,len=options.length;i<len;i+=1){option=options[i];optionsHash[option.selector]=this.compileMessage(option.value)}this.currentPlural=this.pluralStack.pop();return optionsHash};function StringFormat(id){this.id=id}StringFormat.prototype.format=function(value){if(!value&&typeof value!=="number"){return""}return typeof value==="string"?value:String(value)};function PluralFormat(id,useOrdinal,offset,options,pluralFn){this.id=id;this.useOrdinal=useOrdinal;this.offset=offset;this.options=options;this.pluralFn=pluralFn}PluralFormat.prototype.getOption=function(value){var options=this.options;var option=options["="+value]||options[this.pluralFn(value-this.offset,this.useOrdinal)];return option||options.other};function PluralOffsetString(id,offset,numberFormat,string){this.id=id;this.offset=offset;this.numberFormat=numberFormat;this.string=string}PluralOffsetString.prototype.format=function(value){var number=this.numberFormat.format(value-this.offset);return this.string.replace(/(^|[^\\])#/g,"$1"+number).replace(/\\#/g,"#")};function SelectFormat(id,options){this.id=id;this.options=options}SelectFormat.prototype.getOption=function(value){var options=this.options;return options[value]||options.other}},function(module,exports,__webpack_require__){"use strict";exports=module.exports=__webpack_require__(94)["default"];exports["default"]=exports},function(module,exports,__webpack_require__){"use strict";exports["default"]=function(){"use strict";function peg$subclass(child,parent){function ctor(){this.constructor=child}ctor.prototype=parent.prototype;child.prototype=new ctor}function peg$SyntaxError(message,expected,found,location){this.message=message;this.expected=expected;
1this.found=found;this.location=location;this.name="SyntaxError";if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(this,peg$SyntaxError)}}peg$subclass(peg$SyntaxError,Error);function peg$parse(input){var options=arguments.length>1?arguments[1]:{},parser=this,peg$FAILED={},peg$startRuleFunctions={start:peg$parsestart},peg$startRuleFunction=peg$parsestart,peg$c0=function(elements){return{type:"messageFormatPattern",elements:elements,location:location()}},peg$c1=function(text){var string="",i,j,outerLen,inner,innerLen;for(i=0,outerLen=text.length;i<outerLen;i+=1){inner=text[i];for(j=0,innerLen=inner.length;j<innerLen;j+=1){string+=inner[j]}}return string},peg$c2=function(messageText){return{type:"messageTextElement",value:messageText,location:location()}},peg$c3=/^[^ \t\n\r,.+={}#]/,peg$c4={type:"class",value:"[^ \\t\\n\\r,.+={}#]",description:"[^ \\t\\n\\r,.+={}#]"},peg$c5="{",peg$c6={type:"literal",value:"{",description:'"{"'},peg$c7=",",peg$c8={type:"literal",value:",",description:'","'},peg$c9="}",peg$c10={type:"literal",value:"}",description:'"}"'},peg$c11=function(id,format){return{type:"argumentElement",id:id,format:format&&format[2],location:location()}},peg$c12="number",peg$c13={type:"literal",value:"number",description:'"number"'},peg$c14="date",peg$c15={type:"literal",value:"date",description:'"date"'},peg$c16="time",peg$c17={type:"literal",value:"time",description:'"time"'},peg$c18=function(type,style){return{type:type+"Format",style:style&&style[2],location:location()}},peg$c19="plural",peg$c20={type:"literal",value:"plural",description:'"plural"'},peg$c21=function(pluralStyle){return{type:pluralStyle.type,ordinal:false,offset:pluralStyle.offset||0,options:pluralStyle.options,location:location()}},peg$c22="selectordinal",peg$c23={type:"literal",value:"selectordinal",description:'"selectordinal"'},peg$c24=function(pluralStyle){return{type:pluralStyle.type,ordinal:true,offset:pluralStyle.offset||0,options:pluralStyle.options,location:location()}},peg$c25="select",peg$c26={type:"literal",value:"select",description:'"select"'},peg$c27=function(options){return{type:"selectFormat",options:options,location:location()}},peg$c28="=",peg$c29={type:"literal",value:"=",description:'"="'},peg$c30=function(selector,pattern){return{type:"optionalFormatPattern",selector:selector,value:pattern,location:location()}},peg$c31="offset:",peg$c32={type:"literal",value:"offset:",description:'"offset:"'},peg$c33=function(number){return number},peg$c34=function(offset,options){return{type:"pluralFormat",offset:offset,options:options,location:location()}},peg$c35={type:"other",description:"whitespace"},peg$c36=/^[ \t\n\r]/,peg$c37={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},peg$c38={type:"other",description:"optionalWhitespace"},peg$c39=/^[0-9]/,peg$c40={type:"class",value:"[0-9]",description:"[0-9]"},peg$c41=/^[0-9a-f]/i,peg$c42={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},peg$c43="0",peg$c44={type:"literal",value:"0",description:'"0"'},peg$c45=/^[1-9]/,peg$c46={type:"class",value:"[1-9]",description:"[1-9]"},peg$c47=function(digits){return parseInt(digits,10)},peg$c48=/^[^{}\\\0-\x1F� \t\n\r]/,peg$c49={type:"class",value:"[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]",description:"[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]"},peg$c50="\\\\",peg$c51={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},peg$c52=function(){return"\\"},peg$c53="\\#",peg$c54={type:"literal",value:"\\#",description:'"\\\\#"'},peg$c55=function(){return"\\#"},peg$c56="\\{",peg$c57={type:"literal",value:"\\{",description:'"\\\\{"'},peg$c58=function(){return"{"},peg$c59="\\}",peg$c60={type:"literal",value:"\\}",description:'"\\\\}"'},peg$c61=function(){return"}"},peg$c62="\\u",peg$c63={type:"literal",value:"\\u",description:'"\\\\u"'},peg$c64=function(digits){return String.fromCharCode(parseInt(digits,16))},peg$c65=function(chars){return chars.join("")},peg$currPos=0,peg$savedPos=0,peg$posDetailsCache=[{line:1,column:1,seenCR:false}],peg$maxFailPos=0,peg$maxFailExpected=[],peg$silentFails=0,peg$result;if("startRule"in options){if(!(options.startRule in peg$startRuleFunctions)){throw new Error("Can't start parsing from rule \""+options.startRule+'".')}peg$startRuleFunction=peg$startRuleFunctions[options.startRule]}function text(){return input.substring(peg$savedPos,peg$currPos)}function location(){return peg$computeLocation(peg$savedPos,peg$currPos)}function expected(description){throw peg$buildException(null,[{type:"other",description:description}],input.substring(peg$savedPos,peg$currPos),peg$computeLocation(peg$savedPos,peg$currPos))}function error(message){throw peg$buildException(message,null,input.substring(peg$savedPos,peg$currPos),peg$computeLocation(peg$savedPos,peg$currPos))}
1function peg$computePosDetails(pos){var details=peg$posDetailsCache[pos],p,ch;if(details){return details}else{p=pos-1;while(!peg$posDetailsCache[p]){p--}details=peg$posDetailsCache[p];details={line:details.line,column:details.column,seenCR:details.seenCR};while(p<pos){ch=input.charAt(p);if(ch==="\n"){if(!details.seenCR){details.line++}details.column=1;details.seenCR=false}else if(ch==="\r"||ch==="\u2028"||ch==="\u2029"){details.line++;details.column=1;details.seenCR=true}else{details.column++;details.seenCR=false}p++}peg$posDetailsCache[pos]=details;return details}}function peg$computeLocation(startPos,endPos){var startPosDetails=peg$computePosDetails(startPos),endPosDetails=peg$computePosDetails(endPos);return{start:{offset:startPos,line:startPosDetails.line,column:startPosDetails.column},end:{offset:endPos,line:endPosDetails.line,column:endPosDetails.column}}}function peg$fail(expected){if(peg$currPos<peg$maxFailPos){return}if(peg$currPos>peg$maxFailPos){peg$maxFailPos=peg$currPos;peg$maxFailExpected=[]}peg$maxFailExpected.push(expected)}function peg$buildException(message,expected,found,location){function cleanupExpected(expected){var i=1;expected.sort((function(a,b){if(a.description<b.description){return-1}else if(a.description>b.description){return 1}else{return 0}}));while(i<expected.length){if(expected[i-1]===expected[i]){expected.splice(i,1)}else{i++}}}function buildMessage(expected,found){function stringEscape(s){function hex(ch){return ch.charCodeAt(0).toString(16).toUpperCase()}return s.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(ch){return"\\x0"+hex(ch)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(ch){return"\\x"+hex(ch)})).replace(/[\u0100-\u0FFF]/g,(function(ch){return"\\u0"+hex(ch)})).replace(/[\u1000-\uFFFF]/g,(function(ch){return"\\u"+hex(ch)}))}var expectedDescs=new Array(expected.length),expectedDesc,foundDesc,i;for(i=0;i<expected.length;i++){expectedDescs[i]=expected[i].description}expectedDesc=expected.length>1?expectedDescs.slice(0,-1).join(", ")+" or "+expectedDescs[expected.length-1]:expectedDescs[0];foundDesc=found?'"'+stringEscape(found)+'"':"end of input";return"Expected "+expectedDesc+" but "+foundDesc+" found."}if(expected!==null){cleanupExpected(expected)}return new peg$SyntaxError(message!==null?message:buildMessage(expected,found),expected,found,location)}function peg$parsestart(){var s0;s0=peg$parsemessageFormatPattern();return s0}function peg$parsemessageFormatPattern(){var s0,s1,s2;s0=peg$currPos;s1=[];s2=peg$parsemessageFormatElement();while(s2!==peg$FAILED){s1.push(s2);s2=peg$parsemessageFormatElement()}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c0(s1)}s0=s1;return s0}function peg$parsemessageFormatElement(){var s0;s0=peg$parsemessageTextElement();if(s0===peg$FAILED){s0=peg$parseargumentElement()}return s0}function peg$parsemessageText(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;s1=[];s2=peg$currPos;s3=peg$parse_();if(s3!==peg$FAILED){s4=peg$parsechars();if(s4!==peg$FAILED){s5=peg$parse_();if(s5!==peg$FAILED){s3=[s3,s4,s5];s2=s3}else{peg$currPos=s2;s2=peg$FAILED}}else{peg$currPos=s2;s2=peg$FAILED}}else{peg$currPos=s2;s2=peg$FAILED}if(s2!==peg$FAILED){while(s2!==peg$FAILED){s1.push(s2);s2=peg$currPos;s3=peg$parse_();if(s3!==peg$FAILED){s4=peg$parsechars();if(s4!==peg$FAILED){s5=peg$parse_();if(s5!==peg$FAILED){s3=[s3,s4,s5];s2=s3}else{peg$currPos=s2;s2=peg$FAILED}}else{peg$currPos=s2;s2=peg$FAILED}}else{peg$currPos=s2;s2=peg$FAILED}}}else{s1=peg$FAILED}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1(s1)}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parsews();if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}}return s0}function peg$parsemessageTextElement(){var s0,s1;s0=peg$currPos;s1=peg$parsemessageText();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c2(s1)}s0=s1;return s0}function peg$parseargument(){var s0,s1,s2;s0=peg$parsenumber();if(s0===peg$FAILED){s0=peg$currPos;s1=[];if(peg$c3.test(input.charAt(peg$currPos))){s2=input.charAt(peg$currPos);peg$currPos++}else{s2=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c4)}}if(s2!==peg$FAILED){while(s2!==peg$FAILED){s1.push(s2);if(peg$c3.test(input.charAt(peg$currPos))){s2=input.charAt(peg$currPos);peg$currPos++}else{s2=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c4)}}}}else{s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}}return s0}function peg$parseargumentElement(){var s0,s1,s2,s3,s4,s5,s6,s7,s8;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===123){s1=peg$c5;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c6)}}if(s1!==peg$FAILED){s2=peg$parse_();if(s2!==peg$FAILED){s3=peg$parseargument();if(s3!==peg$FAILED){s4=peg$parse_();if(s4!==peg$FAILED){s5=peg$currPos;if(input.charCodeAt(peg$currPos)===44){s6=peg$c7;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c8)}}if(s6!==peg$FAILED){s7=peg$parse_();if(s7!==peg$FAILED){s8=peg$parseelementFormat();if(s8!==peg$FAILED){s6=[s6,s7,s8];s5=s6}else{peg$currPos=s5;s5=peg$FAILED}}else{peg$currPos=s5;s5=peg$FAILED}}else{peg$currPos=s5;s5=peg$FAILED}if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parse_();
vendor: 8,133 bytes, line 1
1if(s6!==peg$FAILED){if(input.charCodeAt(peg$currPos)===125){s7=peg$c9;peg$currPos++}else{s7=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c10)}}if(s7!==peg$FAILED){peg$savedPos=s0;s1=peg$c11(s3,s5);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseelementFormat(){var s0;s0=peg$parsesimpleFormat();if(s0===peg$FAILED){s0=peg$parsepluralFormat();if(s0===peg$FAILED){s0=peg$parseselectOrdinalFormat();if(s0===peg$FAILED){s0=peg$parseselectFormat()}}}return s0}function peg$parsesimpleFormat(){var s0,s1,s2,s3,s4,s5,s6;s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c12){s1=peg$c12;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c13)}}if(s1===peg$FAILED){if(input.substr(peg$currPos,4)===peg$c14){s1=peg$c14;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c15)}}if(s1===peg$FAILED){if(input.substr(peg$currPos,4)===peg$c16){s1=peg$c16;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c17)}}}}if(s1!==peg$FAILED){s2=peg$parse_();if(s2!==peg$FAILED){s3=peg$currPos;if(input.charCodeAt(peg$currPos)===44){s4=peg$c7;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c8)}}if(s4!==peg$FAILED){s5=peg$parse_();if(s5!==peg$FAILED){s6=peg$parsechars();if(s6!==peg$FAILED){s4=[s4,s5,s6];s3=s4}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){peg$savedPos=s0;s1=peg$c18(s1,s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parsepluralFormat(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c19){s1=peg$c19;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c20)}}if(s1!==peg$FAILED){s2=peg$parse_();if(s2!==peg$FAILED){if(input.charCodeAt(peg$currPos)===44){s3=peg$c7;peg$currPos++}else{s3=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c8)}}if(s3!==peg$FAILED){s4=peg$parse_();if(s4!==peg$FAILED){s5=peg$parsepluralStyle();if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c21(s5);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseselectOrdinalFormat(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c22){s1=peg$c22;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c23)}}if(s1!==peg$FAILED){s2=peg$parse_();if(s2!==peg$FAILED){if(input.charCodeAt(peg$currPos)===44){s3=peg$c7;peg$currPos++}else{s3=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c8)}}if(s3!==peg$FAILED){s4=peg$parse_();if(s4!==peg$FAILED){s5=peg$parsepluralStyle();if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c24(s5);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseselectFormat(){var s0,s1,s2,s3,s4,s5,s6;s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c25){s1=peg$c25;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c26)}}if(s1!==peg$FAILED){s2=peg$parse_();if(s2!==peg$FAILED){if(input.charCodeAt(peg$currPos)===44){s3=peg$c7;peg$currPos++}else{s3=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c8)}}if(s3!==peg$FAILED){s4=peg$parse_();if(s4!==peg$FAILED){s5=[];s6=peg$parseoptionalFormatPattern();if(s6!==peg$FAILED){while(s6!==peg$FAILED){s5.push(s6);s6=peg$parseoptionalFormatPattern()}}else{s5=peg$FAILED}if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c27(s5);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseselector(){var s0,s1,s2,s3;s0=peg$currPos;s1=peg$currPos;if(input.charCodeAt(peg$currPos)===61){s2=peg$c28;peg$currPos++}else{s2=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c29)}}if(s2!==peg$FAILED){s3=peg$parsenumber();if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$parsechars()}return s0}function peg$parseoptionalFormatPattern(){var s0,s1,s2,s3,s4,s5,s6,s7,s8;s0=peg$currPos;s1=peg$parse_();if(s1!==peg$FAILED){s2=peg$parseselector();if(s2!==peg$FAILED){s3=peg$parse_();if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===123){s4=peg$c5;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c6)}}if(s4!==peg$FAILED){s5=peg$parse_();if(s5!==peg$FAILED){s6=peg$parsemessageFormatPattern();if(s6!==peg$FAILED){s7=peg$parse_();if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===125){s8=peg$c9;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c10)}}if(s8!==peg$FAILED){peg$savedPos=s0;s1=peg$c30(s2,s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseoffset(){var s0,s1,s2,s3;s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c31){s1=peg$c31;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c32)}}if(s1!==peg$FAILED){s2=peg$parse_();if(s2!==peg$FAILED){s3=peg$parsenumber();if(s3!==peg$FAILED){peg$savedPos=s0;s1=peg$c33(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parsepluralStyle(){var s0,s1,s2,s3,s4;s0=peg$currPos;s1=peg$parseoffset();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){s2=peg$parse_();if(s2!==peg$FAILED){s3=[];s4=peg$parseoptionalFormatPattern();if(s4!==peg$FAILED){while(s4!==peg$FAILED){s3.push(s4);s4=peg$parseoptionalFormatPattern()}}else{s3=peg$FAILED}if(s3!==peg$FAILED){peg$savedPos=s0;s1=peg$c34(s1,s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parsews(){var s0,s1;peg$silentFails++;s0=[];if(peg$c36.test(input.charAt(peg$currPos))){s1=input.charAt(peg$currPos);peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c37)}}if(s1!==peg$FAILED){while(s1!==peg$FAILED){s0.push(s1);if(peg$c36.test(input.charAt(peg$currPos))){s1=input.charAt(peg$currPos);peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c37)}}}}else{s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c35)}}return s0}function peg$parse_(){var s0,s1,s2;peg$silentFails++;s0=peg$currPos;s1=[];s2=peg$parsews();while(s2!==peg$FAILED){s1.push(s2);s2=peg$parsews()}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c38)}}return s0}function peg$parsedigit(){var s0;if(peg$c39.test(input.charAt(peg$currPos))){s0=input.charAt(peg$currPos);peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c40)}}return s0}function peg$parsehexDigit(){var s0;if(peg$c41.test(input.charAt(peg$currPos))){s0=input.charAt(peg$currPos);peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c42)}}return s0}function peg$parsenumber(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===48){s1=peg$c43;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c44)}}if(s1===peg$FAILED){s1=peg$currPos;s2=peg$currPos;if(peg$c45.test(input.charAt(peg$currPos))){s3=input.charAt(peg$currPos);peg$currPos++}else{s3=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c46)}}if(s3!==peg$FAILED){s4=[];s5=peg$parsedigit();while(s5!==peg$FAILED){s4.push(s5);s5=peg$parsedigit()}
1if(s4!==peg$FAILED){s3=[s3,s4];s2=s3}else{peg$currPos=s2;s2=peg$FAILED}}else{peg$currPos=s2;s2=peg$FAILED}if(s2!==peg$FAILED){s1=input.substring(s1,peg$currPos)}else{s1=s2}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c47(s1)}s0=s1;return s0}function peg$parsechar(){var s0,s1,s2,s3,s4,s5,s6,s7;if(peg$c48.test(input.charAt(peg$currPos))){s0=input.charAt(peg$currPos);peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c49)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c50){s1=peg$c50;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c51)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c52()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c53){s1=peg$c53;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c54)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c55()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c56){s1=peg$c56;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c57)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c58()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c59){s1=peg$c59;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c60)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c61()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c62){s1=peg$c62;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c63)}}if(s1!==peg$FAILED){s2=peg$currPos;s3=peg$currPos;s4=peg$parsehexDigit();if(s4!==peg$FAILED){s5=peg$parsehexDigit();if(s5!==peg$FAILED){s6=peg$parsehexDigit();if(s6!==peg$FAILED){s7=peg$parsehexDigit();if(s7!==peg$FAILED){s4=[s4,s5,s6,s7];s3=s4}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=input.substring(s2,peg$currPos)}else{s2=s3}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c64(s2);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}}}}}return s0}function peg$parsechars(){var s0,s1,s2;s0=peg$currPos;s1=[];s2=peg$parsechar();if(s2!==peg$FAILED){while(s2!==peg$FAILED){s1.push(s2);s2=peg$parsechar()}}else{s1=peg$FAILED}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c65(s1)}s0=s1;return s0}peg$result=peg$startRuleFunction();if(peg$result!==peg$FAILED&&peg$currPos===input.length){return peg$result}else{if(peg$result!==peg$FAILED&&peg$currPos<input.length){peg$fail({type:"end",description:"end of input"})}throw peg$buildException(null,peg$maxFailExpected,peg$maxFailPos<input.length?input.charAt(peg$maxFailPos):null,peg$maxFailPos<input.length?peg$computeLocation(peg$maxFailPos,peg$maxFailPos+1):peg$computeLocation(peg$maxFailPos,peg$maxFailPos))}}return{SyntaxError:peg$SyntaxError,parse:peg$parse}}()},function(module,exports,__webpack_require__){"use strict";exports["default"]={locale:"en",pluralRuleFunction:function(n,ord){var s=String(n).split("."),v0=!s[1],t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2);if(ord)return n10==1&&n100!=11?"one":n10==2&&n100!=12?"two":n10==3&&n100!=13?"few":"other";return n==1&&v0?"one":"other"}}},function(module,exports){},function(module,exports,__webpack_require__){"use strict";var IntlRelativeFormat=__webpack_require__(98)["default"];__webpack_require__(103);exports=module.exports=IntlRelativeFormat;exports["default"]=exports},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var core_1=__webpack_require__(99);var en_1=__webpack_require__(102);core_1.default.__addLocaleData(en_1.default);core_1.default.defaultLocale="en";exports.default=core_1.default},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var intl_messageformat_1=__webpack_require__(40);var diff_1=__webpack_require__(100);var es5_1=__webpack_require__(101);exports.default=RelativeFormat;var FIELDS=["second","second-short","minute","minute-short","hour","hour-short","day","day-short","month","month-short","year","year-short"];var STYLES=["best fit","numeric"];function RelativeFormat(locales,options){options=options||{};if(es5_1.isArray(locales)){locales=locales.concat()}es5_1.defineProperty(this,"_locale",{value:this._resolveLocale(locales)});es5_1.defineProperty(this,"_options",{value:{style:this._resolveStyle(options.style),units:this._isValidUnits(options.units)&&options.units}});es5_1.defineProperty(this,"_locales",{value:locales});es5_1.defineProperty(this,"_fields",{value:this._findFields(this._locale)});es5_1.defineProperty(this,"_messages",{value:es5_1.objCreate(null)});var relativeFormat=this;this.format=function format(date,options){return relativeFormat._format(date,options)}}es5_1.defineProperty(RelativeFormat,"__localeData__",{value:es5_1.objCreate(null)});es5_1.defineProperty(RelativeFormat,"__addLocaleData",{value:function(){for(var i=0;i<arguments.length;i++){var datum=arguments[i];if(!(datum&&datum.locale)){throw new Error("Locale data provided to IntlRelativeFormat is missing a "+"`locale` property value")}RelativeFormat.__localeData__[datum.locale.toLowerCase()]=datum;intl_messageformat_1.default.__addLocaleData(datum)}}});es5_1.defineProperty(RelativeFormat,"defaultLocale",{enumerable:true,writable:true,value:undefined});es5_1.defineProperty(RelativeFormat,"thresholds",{enumerable:true,value:{second:45,"second-short":45,minute:45,"minute-short":45,hour:22,"hour-short":22,day:26,"day-short":26,month:11,"month-short":11}});RelativeFormat.prototype.resolvedOptions=function(){return{locale:this._locale,style:this._options.style,units:this._options.units}};RelativeFormat.prototype._compileMessage=function(units){var locales=this._locales;var resolvedLocale=this._locale;var field=this._fields[units];var relativeTime=field.relativeTime;var future="";var past="";var i;for(i in relativeTime.future){if(relativeTime.future.hasOwnProperty(i)){future+=" "+i+" {"+relativeTime.future[i].replace("{0}","#")+"}"}}for(i in relativeTime.past){if(relativeTime.past.hasOwnProperty(i)){past
1+=" "+i+" {"+relativeTime.past[i].replace("{0}","#")+"}"}}var message="{when, select, future {{0, plural, "+future+"}}"+"past {{0, plural, "+past+"}}}";return new intl_messageformat_1.default(message,locales)};RelativeFormat.prototype._getMessage=function(units){var messages=this._messages;if(!messages[units]){messages[units]=this._compileMessage(units)}return messages[units]};RelativeFormat.prototype._getRelativeUnits=function(diff,units){var field=this._fields[units];if(field.relative){return field.relative[diff]}};RelativeFormat.prototype._findFields=function(locale){var localeData=RelativeFormat.__localeData__;var data=localeData[locale.toLowerCase()];while(data){if(data.fields){return data.fields}data=data.parentLocale&&localeData[data.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlRelativeFormat is missing `fields` for :"+locale)};RelativeFormat.prototype._format=function(date,options){var now=options&&options.now!==undefined?options.now:es5_1.dateNow();if(date===undefined){date=now}if(!isFinite(now)){throw new RangeError("The `now` option provided to IntlRelativeFormat#format() is not "+"in valid range.")}if(!isFinite(date)){throw new RangeError("The date value provided to IntlRelativeFormat#format() is not "+"in valid range.")}var diffReport=diff_1.default(now,date);var units=this._options.units||this._selectUnits(diffReport);var diffInUnits=diffReport[units];if(this._options.style!=="numeric"){var relativeUnits=this._getRelativeUnits(diffInUnits,units);if(relativeUnits){return relativeUnits}}return this._getMessage(units).format({0:Math.abs(diffInUnits),when:diffInUnits<0?"past":"future"})};RelativeFormat.prototype._isValidUnits=function(units){if(!units||es5_1.arrIndexOf.call(FIELDS,units)>=0){return true}if(typeof units==="string"){var suggestion=/s$/.test(units)&&units.substr(0,units.length-1);if(suggestion&&es5_1.arrIndexOf.call(FIELDS,suggestion)>=0){throw new Error('"'+units+'" is not a valid IntlRelativeFormat `units` '+"value, did you mean: "+suggestion)}}throw new Error('"'+units+'" is not a valid IntlRelativeFormat `units` value, it '+'must be one of: "'+FIELDS.join('", "')+'"')};RelativeFormat.prototype._resolveLocale=function(locales){if(typeof locales==="string"){locales=[locales]}locales=(locales||[]).concat(RelativeFormat.defaultLocale);var localeData=RelativeFormat.__localeData__;var i,len,localeParts,data;for(i=0,len=locales.length;i<len;i+=1){localeParts=locales[i].toLowerCase().split("-");while(localeParts.length){data=localeData[localeParts.join("-")];if(data){return data.locale}localeParts.pop()}}var defaultLocale=locales.pop();throw new Error("No locale data has been added to IntlRelativeFormat for: "+locales.join(", ")+", or the default locale: "+defaultLocale)};RelativeFormat.prototype._resolveStyle=function(style){if(!style){return STYLES[0]}if(es5_1.arrIndexOf.call(STYLES,style)>=0){return style}throw new Error('"'+style+'" is not a valid IntlRelativeFormat `style` value, it '+'must be one of: "'+STYLES.join('", "')+'"')};RelativeFormat.prototype._selectUnits=function(diffReport){var i,l,units;var fields=FIELDS.filter((function(field){return field.indexOf("-short")<1}));for(i=0,l=fields.length;i<l;i+=1){units=fields[i];if(Math.abs(diffReport[units])<RelativeFormat.thresholds[units]){break}}return units}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var round=Math.round;function daysToYears(days){return days*400/146097}var MILLISECONDS_IN_MINUTE=6e4;var MILLISECONDS_IN_DAY=864e5;function startOfDay(dirtyDate){var date=new Date(dirtyDate);date.setHours(0,0,0,0);return date}function differenceInCalendarDays(dirtyDateLeft,dirtyDateRight){var startOfDayLeft=startOfDay(dirtyDateLeft);var startOfDayRight=startOfDay(dirtyDateRight);var timestampLeft=startOfDayLeft.getTime()-startOfDayLeft.getTimezoneOffset()*MILLISECONDS_IN_MINUTE;var timestampRight=startOfDayRight.getTime()-startOfDayRight.getTimezoneOffset()*MILLISECONDS_IN_MINUTE;return Math.round((timestampLeft-timestampRight)/MILLISECONDS_IN_DAY)}function default_1(from,to){from=+from;to=+to;var millisecond=round(to-from),second=round(millisecond/1e3),minute=round(second/60),hour=round(minute/60);var day=differenceInCalendarDays(to,from);var week=round(day/7);var rawYears=daysToYears(day),month=round(rawYears*12),year=round(rawYears);return{millisecond:millisecond,second:second,"second-short":second,minute:minute,"minute-short":minute,hour:hour,"hour-short":hour,day:day,"day-short":day,week:week,"week-short":week,month:month,"month-short":month,year:year,"year-short":year}}exports.default=default_1},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var hop=Object.prototype.hasOwnProperty;var toString=Object.prototype.toString;var realDefineProp=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return false}}();var es3=!realDefineProp&&!Object.prototype.__defineGetter__;var defineProperty=realDefineProp?Object.defineProperty:function(obj,name,desc){if("get"in desc&&obj.__defineGetter__){obj.__defineGetter__(name,desc.get)}else if(!hop.call(obj,name)||"value"in desc){obj[name]=desc.value}};exports.defineProperty=defineProperty;var objCreate=Object.create||function(proto,props){var obj,k;function F(){}F.prototype=proto;obj=new F;for(k in props){if(hop.call(props,k)){defineProperty(obj,k,props[k])}}return obj};exports.objCreate=objCreate;var arrIndexOf=Array.prototype.indexOf||function(search,fromIndex){var arr=this;if(!arr.length){return-1}
1for(var i=fromIndex||0,max=arr.length;i<max;i++){if(arr[i]===search){return i}}return-1};exports.arrIndexOf=arrIndexOf;var isArray=Array.isArray||function(obj){return toString.call(obj)==="[object Array]"};exports.isArray=isArray;var dateNow=Date.now||function(){return(new Date).getTime()};exports.dateNow=dateNow},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default={locale:"en",pluralRuleFunction:function(n,ord){var s=String(n).split("."),v0=!s[1],t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2);if(ord)return n10==1&&n100!=11?"one":n10==2&&n100!=12?"two":n10==3&&n100!=13?"few":"other";return n==1&&v0?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr.",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo.",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"}}},week:{displayName:"week",relativePeriod:"the week of {0}",relative:{0:"this week",1:"next week","-1":"last week"},relativeTime:{future:{one:"in {0} week",other:"in {0} weeks"},past:{one:"{0} week ago",other:"{0} weeks ago"}}},"week-short":{displayName:"wk.",relativePeriod:"the week of {0}",relative:{0:"this wk.",1:"next wk.","-1":"last wk."},relativeTime:{future:{one:"in {0} wk.",other:"in {0} wk."},past:{one:"{0} wk. ago",other:"{0} wk. ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr.",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min.",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec.",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}}}},function(module,exports){},function(module,exports,__webpack_require__){if(false){var throwOnDirectAccess,ReactIs}else{module.exports=__webpack_require__(105)()}},function(module,exports,__webpack_require__){"use strict";var ReactPropTypesSecret=__webpack_require__(106);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;module.exports=function(){function shim(props,propName,componentName,location,propFullName,secret){if(secret===ReactPropTypesSecret){return}var err=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. "+"Use PropTypes.checkPropTypes() to call them. "+"Read more at http://fb.me/use-check-prop-types");err.name="Invariant Violation";throw err}shim.isRequired=shim;function getShim(){return shim}var ReactPropTypes={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol
vendor: 4,600 bytes, lines 1-9
1:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};ReactPropTypes.PropTypes=ReactPropTypes;return ReactPropTypes}},function(module,exports,__webpack_require__){"use strict";var ReactPropTypesSecret="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";module.exports=ReactPropTypesSecret},function(module,exports,__webpack_require__){"use strict";var reactIs=__webpack_require__(108);var REACT_STATICS={childContextTypes:true,contextType:true,contextTypes:true,defaultProps:true,displayName:true,getDefaultProps:true,getDerivedStateFromError:true,getDerivedStateFromProps:true,mixins:true,propTypes:true,type:true};var KNOWN_STATICS={name:true,length:true,prototype:true,caller:true,callee:true,arguments:true,arity:true};var FORWARD_REF_STATICS={$$typeof:true,render:true,defaultProps:true,displayName:true,propTypes:true};var MEMO_STATICS={$$typeof:true,compare:true,defaultProps:true,displayName:true,propTypes:true,type:true};var TYPE_STATICS={};TYPE_STATICS[reactIs.ForwardRef]=FORWARD_REF_STATICS;TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;function getStatics(component){if(reactIs.isMemo(component)){return MEMO_STATICS}return TYPE_STATICS[component["$$typeof"]]||REACT_STATICS}var defineProperty=Object.defineProperty;var getOwnPropertyNames=Object.getOwnPropertyNames;var getOwnPropertySymbols=Object.getOwnPropertySymbols;var getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;var getPrototypeOf=Object.getPrototypeOf;var objectPrototype=Object.prototype;function hoistNonReactStatics(targetComponent,sourceComponent,blacklist){if(typeof sourceComponent!=="string"){if(objectPrototype){var inheritedComponent=getPrototypeOf(sourceComponent);if(inheritedComponent&&inheritedComponent!==objectPrototype){hoistNonReactStatics(targetComponent,inheritedComponent,blacklist)}}var keys=getOwnPropertyNames(sourceComponent);if(getOwnPropertySymbols){keys=keys.concat(getOwnPropertySymbols(sourceComponent))}var targetStatics=getStatics(targetComponent);var sourceStatics=getStatics(sourceComponent);for(var i=0;i<keys.length;++i){var key=keys[i];if(!KNOWN_STATICS[key]&&!(blacklist&&blacklist[key])&&!(sourceStatics&&sourceStatics[key])&&!(targetStatics&&targetStatics[key])){var descriptor=getOwnPropertyDescriptor(sourceComponent,key);try{defineProperty(targetComponent,key,descriptor)}catch(e){}}}}return targetComponent}module.exports=hoistNonReactStatics},function(module,exports,__webpack_require__){"use strict";if(true){module.exports=__webpack_require__(109)}else{}},function(module,exports,__webpack_require__){"use strict"; 2/** @license React v16.13.1 3 * react-is.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};
9exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};exports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z},function(module,exports,__webpack_require__){"use strict";var invariant=function(condition,format,a,b,c,d,e,f){if(false){}if(!condition){var error;if(format===undefined){error=new Error("Minified exception occurred; use the non-minified dev environment "+"for the full error message and additional helpful warnings.")}else{var args=[a,b,c,d,e,f];var argIndex=0;error=new Error(format.replace(/%s/g,(function(){return args[argIndex++]})));error.name="Invariant Violation"}error.framesToPop=1;throw error}};module.exports=invariant},function(module,exports,__webpack_require__){"use strict";exports=module.exports=__webpack_require__(112)["default"];exports["default"]=exports},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var RelativeTimeFormat;function getCacheId(inputs){return JSON.stringify(inputs.map((function(input){return input&&typeof input==="object"?orderedProps(input):input})))}function orderedProps(obj){return Object.keys(obj).sort().map((function(k){var _a;return _a={},_a[k]=obj[k],_a}))}var memoizeFormatConstructor=function(FormatConstructor,cache){if(cache===void 0){cache={}}return function(){var _a;var args=[];for(var _i=0;_i<arguments.length;_i++){args[_i]=arguments[_i]}var cacheId=getCacheId(args);var format=cacheId&&cache[cacheId];if(!format){format=new((_a=FormatConstructor).bind.apply(_a,[void 0].concat(args)));if(cacheId){cache[cacheId]=format}}return format}};exports.default=memoizeFormatConstructor},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,"plugin",(function(){return public_plugin}));__webpack_require__.d(__webpack_exports__,"QueryEnhancementsPluginSetup",(function(){return undefined}));__webpack_require__.d(__webpack_exports__,"QueryEnhancementsPluginStart",(function(){return undefined}));var public_0=__webpack_require__(46);var external_osdSharedDeps_OsdI18n_=__webpack_require__(2);var external_osdSharedDeps_Rxjs_=__webpack_require__(9);var common_=__webpack_require__(7);var public_=__webpack_require__(3);var external_osdSharedDeps_Lodash_=__webpack_require__(6);var semver=__webpack_require__(30);var semver_default=__webpack_require__.n(semver);const PLUGIN_ID="queryEnhancements";const PLUGIN_NAME="queryEnhancements";const BASE_API="/api/enhancements";const BASE_API_ASSISTANT="/api/assistant";const DATASET={S3:"S3"};const SEARCH_STRATEGY={PPL:"ppl",PPL_RAW:"pplraw",SQL:"sql",SQL_ASYNC:"sqlasync",PPL_ASYNC:"pplasync"};const API={SEARCH:`${BASE_API}/search`,PPL_SEARCH:`${BASE_API}/search/${SEARCH_STRATEGY.PPL}`,SQL_SEARCH:`${BASE_API}/search/${SEARCH_STRATEGY.SQL}`,SQL_ASYNC_SEARCH:`${BASE_API}/search/${SEARCH_STRATEGY.SQL_ASYNC}`,PPL_ASYNC_SEARCH:`${BASE_API}/search/${SEARCH_STRATEGY.PPL_ASYNC}`,QUERY_ASSIST:{LANGUAGES:`${BASE_API}/assist/languages`,GENERATE:`${BASE_API}/assist/generate`},DATA_SOURCE:{ASYNC_JOBS:`${BASE_API}/jobs`,CONNECTIONS:`${BASE_API}/connections`},AGENT_API:{CONFIG_EXISTS:`${BASE_API_ASSISTANT}/agent_config/_exists`}};const URI={PPL:"/_plugins/_ppl",SQL:"/_plugins/_sql",ASYNC_QUERY:"/_plugins/_async_query",ML:"/_plugins/_ml",OBSERVABILITY:"/_plugins/_observability",DATA_CONNECTIONS:"/_plugins/_query/_datasources"};const OPENSEARCH_API={PANELS:`${URI.OBSERVABILITY}/object`,DATA_CONNECTIONS:URI.DATA_CONNECTIONS};const UI_SETTINGS={QUERY_ENHANCEMENTS_ENABLED:"query:enhancements:enabled",STATE_STORE_IN_SESSION_STORAGE:"state:storeInSessionStorage"};const ERROR_DETAILS={GUARDRAILS_TRIGGERED:"guardrails triggered"};const S3_PARTITION_INFO_COLUMN="# Partition Information";let S3_FIELD_TYPES=function(S3_FIELD_TYPES){S3_FIELD_TYPES["BOOLEAN"]="boolean";S3_FIELD_TYPES["BYTE"]="byte";
9S3_FIELD_TYPES["SHORT"]="short";S3_FIELD_TYPES["INTEGER"]="integer";S3_FIELD_TYPES["INT"]="int";S3_FIELD_TYPES["LONG"]="long";S3_FIELD_TYPES["FLOAT"]="float";S3_FIELD_TYPES["DOUBLE"]="double";S3_FIELD_TYPES["KEYWORD"]="keyword";S3_FIELD_TYPES["TEXT"]="text";S3_FIELD_TYPES["STRING"]="string";S3_FIELD_TYPES["TIMESTAMP"]="timestamp";S3_FIELD_TYPES["DATE"]="date";S3_FIELD_TYPES["DATE_NANOS"]="date_nanos";S3_FIELD_TYPES["TIME"]="time";S3_FIELD_TYPES["INTERVAL"]="interval";S3_FIELD_TYPES["IP"]="ip";S3_FIELD_TYPES["GEO_POINT"]="geo_point";S3_FIELD_TYPES["BINARY"]="binary";S3_FIELD_TYPES["STRUCT"]="struct";S3_FIELD_TYPES["ARRAY"]="array";S3_FIELD_TYPES["UNKNOWN"]="unknown";return S3_FIELD_TYPES}({});var external_osdSharedDeps_RxjsOperators_=__webpack_require__(4);var umd=__webpack_require__(31);var umd_default=__webpack_require__.n(umd);const stringify=(obj,replacer,space)=>{let text;let numeralsAreNumbers=true;const checkForBigInts=replacer?function(key,val){if(typeof val==="bigint"){numeralsAreNumbers=false;return replacer.call(this,key,Number(val))}return replacer.call(this,key,val)}:(key,val)=>{if(typeof val==="bigint"){numeralsAreNumbers=false;return Number(val)}return val};text=JSON.stringify(obj,checkForBigInts,space);if(!numeralsAreNumbers){const temp=umd_default.a.stringify(obj,{replacer:replacer,space:space,withBigInt:false,quote:'"',quoteNames:true});if(temp)text=temp}return text};const parse=(text,reviver)=>{let obj;let numeralsAreNumbers=true;const inspectValueForLargeNumerals=val=>{if(numeralsAreNumbers&&typeof val==="number"&&isFinite(val)&&(val<Number.MIN_SAFE_INTEGER||val>Number.MAX_SAFE_INTEGER)){numeralsAreNumbers=false}return val};const checkForLargeNumerals=reviver?function(key,val){return inspectValueForLargeNumerals(reviver.call(this,key,val))}:(key,val)=>inspectValueForLargeNumerals(val);obj=JSON.parse(text,checkForLargeNumerals);if(!numeralsAreNumbers){const temp=umd_default.a.parse(text,reviver,{withLongNumerals:true});if(temp)obj=temp}return obj};const formatDate=dateString=>{const date=new Date(dateString);return date.getFullYear()+"-"+("0"+(date.getMonth()+1)).slice(-2)+"-"+("0"+date.getDate()).slice(-2)+" "+("0"+date.getHours()).slice(-2)+":"+("0"+date.getMinutes()).slice(-2)+":"+("0"+date.getSeconds()).slice(-2)};const getFields=rawResponse=>{var _rawResponse$data$sch;return(_rawResponse$data$sch=rawResponse.data.schema)===null||_rawResponse$data$sch===void 0?void 0:_rawResponse$data$sch.map((field,index)=>{var _rawResponse$data$dat;return{...field,values:(_rawResponse$data$dat=rawResponse.data.datarows)===null||_rawResponse$data$dat===void 0?void 0:_rawResponse$data$dat.map(row=>row[index])}})};const removeKeyword=queryString=>{var _queryString$replace;return(_queryString$replace=queryString===null||queryString===void 0?void 0:queryString.replace(new RegExp(".keyword"),""))!==null&&_queryString$replace!==void 0?_queryString$replace:""};const throwFacetError=response=>{var _ref,_response$data$body$m,_response$data$body,_ref2,_response$data$status;const error=new Error((_ref=(_response$data$body$m=(_response$data$body=response.data.body)===null||_response$data$body===void 0?void 0:_response$data$body.message)!==null&&_response$data$body$m!==void 0?_response$data$body$m:response.data.body)!==null&&_ref!==void 0?_ref:response.data);error.name=(_ref2=(_response$data$status=response.data.status)!==null&&_response$data$status!==void 0?_response$data$status:response.status)!==null&&_ref2!==void 0?_ref2:response.data.statusCode;error.status=error.name;throw error};const fetch=(context,query,aggConfig)=>{var _context$body,_context$body2;const{http:http,path:path,signal:signal}=context;const body=stringify({query:{...query,format:"jdbc"},aggConfig:aggConfig,pollQueryResultsParams:(_context$body=context.body)===null||_context$body===void 0?void 0:_context$body.pollQueryResultsParams,timeRange:(_context$body2=context.body)===null||_context$body2===void 0?void 0:_context$body2.timeRange});return Object(external_osdSharedDeps_Rxjs_["from"])(http.fetch({method:"POST",path:path,body:body,signal:signal}))};const handleQueryStatus=options=>{const{fetchStatus:fetchStatus,interval:interval=5e3,isServer:isServer=false}=options;return Object(external_osdSharedDeps_Rxjs_["timer"])(0,interval).pipe(Object(external_osdSharedDeps_RxjsOperators_["mergeMap"])(()=>fetchStatus()),Object(external_osdSharedDeps_RxjsOperators_["takeWhile"])(response=>{var _data,_status;const status=isServer?response===null||response===void 0||(_data=response.data)===null||_data===void 0||(_data=_data.status)===null||_data===void 0?void 0:_data.toUpperCase():response===null||response===void 0||(_status=response.status)===null||_status===void 0?void 0:_status.toUpperCase();return status!=="SUCCESS"&&status!=="FAILED"},true),Object(external_osdSharedDeps_RxjsOperators_["filter"])(response=>{var _data2,_status2;const status=isServer?response===null||response===void 0||(_data2=response.data)===null||_data2===void 0||(_data2=_data2.status)===null||_data2===void 0?void 0:_data2.toUpperCase():response===null||response===void 0||(_status2=response.status)===null||_status2===void 0?void 0:_status2.toUpperCase();if(status==="FAILED"){throw new Error("Job failed")}return status==="SUCCESS"}),Object(external_osdSharedDeps_RxjsOperators_["take"])(1)).toPromise()};const buildQueryStatusConfig=response=>({queryId:response.data.queryId,sessionId:response.data.sessionId});var s3_mark=__webpack_require__.p+"b65ab8fc9670889f5b395b1f9a029f2b.svg";
9const s3TypeConfig={id:DATASET.S3,title:"S3 Connections",meta:{icon:{type:s3_mark},tooltip:"Amazon S3 Connections",searchOnLoad:true,supportsTimeFilter:false,isFieldLoadAsync:true,cacheOptions:true},toDataset:path=>{const dataSource=path.find(ds=>ds.type==="DATA_SOURCE");const connection=path.find(ds=>ds.type==="CONNECTION");const database=path.find(ds=>ds.type==="DATABASE");const table=path[path.length-1];return{id:table.id,title:`${connection===null||connection===void 0?void 0:connection.title}.${database===null||database===void 0?void 0:database.title}.${table.title}`,type:DATASET.S3,dataSource:dataSource?{id:dataSource.id,title:dataSource.title,type:dataSource.type,meta:{...table.meta,supportsTimeFilter:s3TypeConfig.meta.supportsTimeFilter}}:common_["DEFAULT_DATA"].STRUCTURES.LOCAL_DATASOURCE}},fetch:async(services,path)=>{const dataStructure=path[path.length-1];const{http:http,savedObjects:{client:client}}=services;switch(dataStructure.type){case"DATA_SOURCE":{const connections=await fetchConnections(http,dataStructure);return{...dataStructure,hasNext:true,columnHeader:"Connections",children:connections}}case"CONNECTION":{const databases=await fetchDatabases(http,path);return{...dataStructure,columnHeader:"Databases",hasNext:true,children:databases}}case"DATABASE":{const tables=await fetchTables(http,path);return{...dataStructure,columnHeader:"Tables",hasNext:false,children:tables}}default:{const dataSources=await fetchDataSources(client);return{...dataStructure,columnHeader:"Clusters",hasNext:true,children:dataSources}}}},fetchFields:async(dataset,services)=>{const http=services===null||services===void 0?void 0:services.http;if(!http)return[];return await fetchFields(http,dataset)},supportedLanguages:dataset=>["SQL","PPL"],getSampleQueries:(dataset,language)=>{switch(language){case"PPL":return[{title:external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.s3Type.sampleQuery.basicPPLQuery",{defaultMessage:"Sample query for PPL"}),query:`source = ${dataset.title}`}];case"SQL":return[{title:external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.s3Type.sampleQuery.basicSQLQuery",{defaultMessage:"Sample query for SQL"}),query:`SELECT * FROM ${dataset.title} LIMIT 10`}]}}};const s3_type_fetch=async(http,path,type)=>{const dataSource=path.find(ds=>ds.type==="DATA_SOURCE");const connection=path.find(ds=>ds.type==="CONNECTION");const parent=path[path.length-1];const meta=parent.meta;try{const response=await handleQueryStatus({fetchStatus:()=>http.fetch({method:"GET",path:Object(external_osdSharedDeps_Lodash_["trimEnd"])(API.DATA_SOURCE.ASYNC_JOBS),query:{id:dataSource===null||dataSource===void 0?void 0:dataSource.id,queryId:meta.queryId}})});return response.datarows.map(item=>({id:`${parent.id}.${item[type==="DATABASE"?0:1]}`,title:item[type==="DATABASE"?0:1],type:type,meta:{type:common_["DATA_STRUCTURE_META_TYPES"].CUSTOM,sessionId:meta.sessionId,name:connection===null||connection===void 0?void 0:connection.title}}))}catch(error){throw error}};const setMeta=(dataStructure,response)=>({...dataStructure.meta,queryId:response.queryId,sessionId:response.sessionId});const fetchDataSources=async client=>{const resp=await client.find({type:"data-source",perPage:1e4});const dataSources=resp.savedObjects.filter(savedObject=>{const coercedVersion=semver_default.a.coerce(savedObject.attributes.dataSourceVersion);return coercedVersion?semver_default.a.satisfies(coercedVersion,">=1.0.0"):false}).map(savedObject=>({id:savedObject.id,title:savedObject.attributes.title,type:"DATA_SOURCE",meta:{query:{id:savedObject.id},type:common_["DATA_STRUCTURE_META_TYPES"].CUSTOM}}));return dataSources};const fetchConnections=async(http,dataSource)=>{const abortController=new AbortController;const query=dataSource.id!==""?dataSource.meta.query:undefined;const response=await http.fetch({method:"GET",path:Object(external_osdSharedDeps_Lodash_["trimEnd"])(`${API.DATA_SOURCE.CONNECTIONS}/${(query===null||query===void 0?void 0:query.id)||""}`),signal:abortController.signal});return response.filter(ds=>ds.connector==="S3GLUE").map(ds=>({id:`${dataSource.id}::${ds.name}`,title:ds.name,type:"CONNECTION",meta:{query:query,type:common_["DATA_STRUCTURE_META_TYPES"].CUSTOM}}))};const fetchDatabases=async(http,path)=>{const abortController=new AbortController;const dataSource=path.find(ds=>ds.type==="DATA_SOURCE");const connection=path[path.length-1];const meta=connection.meta;const response=await http.fetch({method:"POST",path:Object(external_osdSharedDeps_Lodash_["trimEnd"])(API.DATA_SOURCE.ASYNC_JOBS),body:JSON.stringify({lang:"sql",query:`SHOW DATABASES in ${connection.title}`,datasource:connection===null||connection===void 0?void 0:connection.title,...meta.sessionId&&{sessionId:meta.sessionId}}),query:{id:dataSource===null||dataSource===void 0?void 0:dataSource.id},signal:abortController.signal});connection.meta=setMeta(connection,response);return s3_type_fetch(http,path,"DATABASE")};const fetchTables=async(http,path)=>{const abortController=new AbortController;const dataSource=path.find(ds=>ds.type==="DATA_SOURCE");const connection=path.find(ds=>ds.type==="CONNECTION");const sessionId=(connection===null||connection===void 0?void 0:connection.meta).sessionId;const database=path[path.length-1];const response=await http.fetch({method:"POST",path:Object(external_osdSharedDeps_Lodash_["trimEnd"])(API.DATA_SOURCE.ASYNC_JOBS),body:JSON.stringify({lang:"sql",query:`SHOW TABLES in ${database.title}`,datasource:connection===null||connection===void 0?void 0:connection.title,...sessionId&&{sessionId:sessionId}}),query:{id:dataSource===null||dataSource===void 0?void 0:dataSource.id},signal:abortController.signal});database.meta=setMeta(database,response);return s3_type_fetch(http,path,"TABLE")};function castS3FieldTypeToOSDFieldType(sqlType){switch(sqlType){case S3_FIELD_TYPES.BOOLEAN:return public_["OSD_FIELD_TYPES"].BOOLEAN;case S3_FIELD_TYPES.BYTE:case S3_FIELD_TYPES.SHORT:case S3_FIELD_TYPES.INT:case S3_FIELD_TYPES.INTEGER:case S3_FIELD_TYPES.LONG:case S3_FIELD_TYPES.FLOAT:case S3_FIELD_TYPES.DOUBLE:return public_["OSD_FIELD_TYPES"].NUMBER;case S3_FIELD_TYPES.KEYWORD:case S3_FIELD_TYPES.STRING:case S3_FIELD_TYPES.TEXT:return public_["OSD_FIELD_TYPES"].STRING;case S3_FIELD_TYPES.TIMESTAMP:case S3_FIELD_TYPES.DATE:case S3_FIELD_TYPES.DATE_NANOS:case S3_FIELD_TYPES.TIME:case S3_FIELD_TYPES.INTERVAL:return public_["OSD_FIELD_TYPES"].DATE;case S3_FIELD_TYPES.IP:return public_["OSD_FIELD_TYPES"].IP;
9case S3_FIELD_TYPES.GEO_POINT:return public_["OSD_FIELD_TYPES"].GEO_POINT;case S3_FIELD_TYPES.BINARY:return public_["OSD_FIELD_TYPES"].ATTACHMENT;case S3_FIELD_TYPES.STRUCT:case S3_FIELD_TYPES.ARRAY:return public_["OSD_FIELD_TYPES"].OBJECT;default:return public_["OSD_FIELD_TYPES"].UNKNOWN}}function mapResponseToFields(sqlOutput){const datasetFields=[];for(const row of sqlOutput.datarows){const[colName,dataType]=row;if(colName===S3_PARTITION_INFO_COLUMN){break}if(dataType&&dataType!==""){const sqlType=dataType;datasetFields.push({name:colName,type:castS3FieldTypeToOSDFieldType(sqlType)})}}return datasetFields}const fetchFields=async(http,dataset)=>{const abortController=new AbortController;try{var _dataset$dataSource,_dataset$dataSource2,_dataset$dataSource3;const connection=((_dataset$dataSource=dataset.dataSource)===null||_dataset$dataSource===void 0?void 0:_dataset$dataSource.meta).name;const sessionId=((_dataset$dataSource2=dataset.dataSource)===null||_dataset$dataSource2===void 0?void 0:_dataset$dataSource2.meta).sessionId;const response=await http.fetch({method:"POST",path:Object(external_osdSharedDeps_Lodash_["trimEnd"])(API.DATA_SOURCE.ASYNC_JOBS),body:JSON.stringify({lang:"sql",query:`DESCRIBE TABLE ${dataset.title}`,datasource:connection,...sessionId&&{sessionId:sessionId}}),query:{id:(_dataset$dataSource3=dataset.dataSource)===null||_dataset$dataSource3===void 0?void 0:_dataset$dataSource3.id},signal:abortController.signal});const fetchResponse=await handleQueryStatus({fetchStatus:()=>{var _dataset$dataSource4;return http.fetch({method:"GET",path:Object(external_osdSharedDeps_Lodash_["trimEnd"])(API.DATA_SOURCE.ASYNC_JOBS),query:{id:(_dataset$dataSource4=dataset.dataSource)===null||_dataset$dataSource4===void 0?void 0:_dataset$dataSource4.id,queryId:response.queryId}})}});return mapResponseToFields(fetchResponse)}catch(error){throw new Error(`Failed to load table fields from ${dataset.title}: ${error}`)}};var external_osdSharedDeps_React_=__webpack_require__(0);var external_osdSharedDeps_React_default=__webpack_require__.n(external_osdSharedDeps_React_);var sparkle_mark=__webpack_require__(17);var sparkle_mark_default=__webpack_require__.n(sparkle_mark);var external_osdSharedDeps_ElasticEui_=__webpack_require__(1);var opensearchDashboardsReact_public_=__webpack_require__(13);var opensearchDashboardsUtils_common_=__webpack_require__(32);const[getStorage,setStorage]=Object(opensearchDashboardsUtils_common_["createGetterSetter"])("storage");const[getData,setData]=Object(opensearchDashboardsUtils_common_["createGetterSetter"])("data");const useGenerateQuery=()=>{const mounted=Object(external_osdSharedDeps_React_["useRef"])(false);const[loading,setLoading]=Object(external_osdSharedDeps_React_["useState"])(false);const abortControllerRef=Object(external_osdSharedDeps_React_["useRef"])();const{services:services}=Object(opensearchDashboardsReact_public_["useOpenSearchDashboards"])();Object(external_osdSharedDeps_React_["useEffect"])(()=>{mounted.current=true;return()=>{mounted.current=false;if(abortControllerRef.current){abortControllerRef.current.abort();abortControllerRef.current=undefined}}},[]);const generateQuery=async params=>{var _abortControllerRef$c;(_abortControllerRef$c=abortControllerRef.current)===null||_abortControllerRef$c===void 0||_abortControllerRef$c.abort();abortControllerRef.current=new AbortController;setLoading(true);try{var _abortControllerRef$c2;const response=await services.http.post(API.QUERY_ASSIST.GENERATE,{body:JSON.stringify(params),signal:(_abortControllerRef$c2=abortControllerRef.current)===null||_abortControllerRef$c2===void 0?void 0:_abortControllerRef$c2.signal});if(mounted.current)return{response:response}}catch(error){if(mounted.current)return{error:formatError(error)}}finally{if(mounted.current)setLoading(false)}return{}};return{generateQuery:generateQuery,loading:loading,abortControllerRef:abortControllerRef}};const QueryAssistContext=external_osdSharedDeps_React_default.a.createContext({});const useQueryAssist=()=>external_osdSharedDeps_React_default.a.useContext(QueryAssistContext);var external_osdSharedDeps_OsdI18nReact_=__webpack_require__(5);const EmptyIndexCallOut=props=>external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiCallOut"],{className:"queryAssist queryAssist__callout","data-test-subj":"query-assist-empty-index-callout",title:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_OsdI18nReact_["FormattedMessage"],{id:"queryEnhancements.callOut.emptyIndex.title",defaultMessage:"Select a data source or index to ask a question."}),size:"s",color:"warning",iconType:"iInCircle",dismissible:true,onDismiss:props.onDismiss});const ProhibitedQueryCallOut=props=>external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiCallOut"],{className:"queryAssist queryAssist__callout","data-test-subj":"query-assist-guard-callout",title:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_OsdI18nReact_["FormattedMessage"],{id:"queryEnhancements.callOut.prohibitedQuery.title",defaultMessage:"I am unable to respond to this query. Try another question."}),size:"s",color:"danger",iconType:"alert",dismissible:true,onDismiss:props.onDismiss});const EmptyQueryCallOut=props=>external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiCallOut"],{className:"queryAssist queryAssist__callout","data-test-subj":"query-assist-empty-query-callout",title:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_OsdI18nReact_["FormattedMessage"],{id:"queryEnhancements.callOut.emptyQuery.title",defaultMessage:"Enter a natural language question to automatically generate a query to view results."}),size:"s",color:"warning",iconType:"iInCircle",dismissible:true,onDismiss:props.onDismiss});const QueryGeneratedCallOut=props=>external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiCallOut"],{className:"queryAssist queryAssist__callout","data-test-subj":"query-assist-query-generated-callout",title:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_OsdI18nReact_["FormattedMessage"],{id:"queryEnhancements.callOut.queryGenerated.title",defaultMessage:"{language} query generated. If there are any issues with the response, try adding more context to the question or a new question to submit.",values:{language:props.language}}
9),size:"s",color:"success",iconType:"check",dismissible:true,onDismiss:props.onDismiss});const QueryAssistCallOut=props=>{switch(props.type){case"empty_query":return external_osdSharedDeps_React_default.a.createElement(EmptyQueryCallOut,props);case"empty_index":return external_osdSharedDeps_React_default.a.createElement(EmptyIndexCallOut,props);case"invalid_query":return external_osdSharedDeps_React_default.a.createElement(ProhibitedQueryCallOut,props);case"query_generated":return external_osdSharedDeps_React_default.a.createElement(QueryGeneratedCallOut,props);default:break}return null};const WarningBadge=props=>{const[isPopoverOpen,setIsPopoverOpen]=Object(external_osdSharedDeps_React_["useState"])(false);const[showMore,setShowMore]=Object(external_osdSharedDeps_React_["useState"])(false);Object(external_osdSharedDeps_React_["useEffect"])(()=>{const badgeContainer=document.querySelector(".queryAssist__badgeContainer");if(badgeContainer===null)return;const elementsWithBadge=document.querySelectorAll(".queryAssist__withBadge");elementsWithBadge.forEach(element=>element.style.setProperty("--badge-width",`${badgeContainer.offsetWidth}px`))},[props.error]);if(!props.error)return null;const{error:{error:error,status:status}}=props.error;return external_osdSharedDeps_React_default.a.createElement("div",{className:"queryAssist__popoverWrapper"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPopover"],{button:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiBadge"],{color:"danger",type:"button",iconType:"alert",onClick:e=>{e.preventDefault();setIsPopoverOpen(!isPopoverOpen)},onClickAriaLabel:external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.queryAssist.badge.ariaLabel",{defaultMessage:"Click to show details"}),"data-test-subj":"queryAssistErrorBadge"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_OsdI18nReact_["FormattedMessage"],{id:"queryEnhancements.queryAssist.badge.title",defaultMessage:"Error"})),isOpen:isPopoverOpen,closePopover:()=>setIsPopoverOpen(false),className:"queryAssist__popover"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"s",className:"queryAssist__popoverText"},external_osdSharedDeps_React_default.a.createElement("dl",null,external_osdSharedDeps_React_default.a.createElement("dd",{id:"queryAssistErrorTitle"},external_osdSharedDeps_React_default.a.createElement("b",null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{gutterSize:"xs",alignItems:"center"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiIcon"],{type:"alert"})),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_OsdI18nReact_["FormattedMessage"],{id:"queryEnhancements.queryAssist.error.title",defaultMessage:"Error"}))))),external_osdSharedDeps_React_default.a.createElement("dd",null,external_osdSharedDeps_React_default.a.createElement("b",null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_OsdI18nReact_["FormattedMessage"],{id:"queryEnhancements.queryAssist.error.reason",defaultMessage:"Reason"})),": ",error.reason),showMore&&external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement("dd",null,external_osdSharedDeps_React_default.a.createElement("b",null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_OsdI18nReact_["FormattedMessage"],{id:"queryEnhancements.queryAssist.error.details",defaultMessage:"Details"})),": ",error.details),external_osdSharedDeps_React_default.a.createElement("dd",null,external_osdSharedDeps_React_default.a.createElement("b",null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_OsdI18nReact_["FormattedMessage"],{id:"queryEnhancements.queryAssist.error.type",defaultMessage:"Type"})),": ",error.type),external_osdSharedDeps_React_default.a.createElement("dd",null,external_osdSharedDeps_React_default.a.createElement("b",null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_OsdI18nReact_["FormattedMessage"],{id:"queryEnhancements.queryAssist.error.status",defaultMessage:"Status"})),": ",status)),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiLink"],{onClick:()=>setShowMore(!showMore),"data-test-subj":"queryAssistErrorMore"},showMore?external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_OsdI18nReact_["FormattedMessage"],{id:"queryEnhancements.queryAssist.error.viewLess",defaultMessage:"View Less"}):external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_OsdI18nReact_["FormattedMessage"],{id:"queryEnhancements.queryAssist.error.viewMore",defaultMessage:"View More"}))))))};const QueryAssistInput=props=>{var _props$initialValue,_props$inputRef$curre;const{ui:{SuggestionsComponent:SuggestionsComponent}}=getData();const[isSuggestionsVisible,setIsSuggestionsVisible]=Object(external_osdSharedDeps_React_["useState"])(false);const[suggestionIndex,setSuggestionIndex]=Object(external_osdSharedDeps_React_["useState"])(null);const[value,setValue]=Object(external_osdSharedDeps_React_["useState"])((_props$initialValue=props.initialValue)!==null&&_props$initialValue!==void 0?_props$initialValue:"");const sampleDataSuggestions=Object(external_osdSharedDeps_React_["useMemo"])(()=>{switch(props.selectedIndex){case"opensearch_dashboards_sample_data_ecommerce":return["How many unique customers placed orders this week?","Count the number of orders grouped by manufacturer and category","find customers with first names like Eddie"];case"opensearch_dashboards_sample_data_logs":return["Are there any errors in my logs?","How many requests were there grouped by response code last week?","What's the average request size by week?"];case"opensearch_dashboards_sample_data_flights":return["how many flights were there this week grouped by destination country?","what were the longest flight delays this week?","what carriers have the furthest flights?"];default:return[]}},[props.selectedIndex]);const suggestions=Object(external_osdSharedDeps_React_["useMemo"])(()=>
9{if(!props.persistedLog)return[];return props.persistedLog.get().concat(sampleDataSuggestions).filter((suggestion,i,array)=>array.indexOf(suggestion)===i&&suggestion.includes(value)).map(suggestion=>({type:public_["QuerySuggestionTypes"].RecentSearch,text:suggestion,start:0,end:value.length}))},[props.persistedLog,value,sampleDataSuggestions]);return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiOutsideClickDetector"],{onOutsideClick:()=>setIsSuggestionsVisible(false)},external_osdSharedDeps_React_default.a.createElement("div",{className:"queryAssist__inputWrapper"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFieldText"],{className:"queryAssist__input","data-test-subj":"query-assist-input-field-text",inputRef:props.inputRef,value:value,disabled:props.isDisabled,onClick:()=>setIsSuggestionsVisible(true),onChange:e=>setValue(e.target.value),onKeyDown:()=>setIsSuggestionsVisible(true),placeholder:props.previousQuestion||(props.selectedIndex?external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.queryAssist.input.placeholderWithIndex",{defaultMessage:"Ask a natural language question about {selectedIndex} to generate a query",values:{selectedIndex:props.selectedIndex}}):external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.queryAssist.input.placeholderWithoutIndex",{defaultMessage:"Select an index to ask a question"})),prepend:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiIcon"],{type:sparkle_mark_default.a}),append:external_osdSharedDeps_React_default.a.createElement(WarningBadge,{error:props.error}),fullWidth:true}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPortal"],null,external_osdSharedDeps_React_default.a.createElement(SuggestionsComponent,{show:isSuggestionsVisible,suggestions:suggestions,index:suggestionIndex,onClick:suggestion=>{if(!props.inputRef.current)return;setValue(suggestion.text);setIsSuggestionsVisible(false);setSuggestionIndex(null);props.inputRef.current.focus()},onMouseEnter:i=>setSuggestionIndex(i),loadMore:()=>{},queryBarRect:(_props$inputRef$curre=props.inputRef.current)===null||_props$inputRef$curre===void 0?void 0:_props$inputRef$curre.getBoundingClientRect(),size:"s"}))))};const QueryAssistSubmitButton=props=>external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButtonIcon"],{iconType:"returnKey",display:"base",isDisabled:props.isDisabled,size:"s",type:"submit","aria-label":"Submit question to query assistant","data-test-subj":"query-assist-submit-button"});const QueryAssistBar=props=>{const{services:services}=Object(opensearchDashboardsReact_public_["useOpenSearchDashboards"])();const queryString=services.data.query.queryString;const inputRef=Object(external_osdSharedDeps_React_["useRef"])(null);const storage=getStorage();const persistedLog=Object(external_osdSharedDeps_React_["useMemo"])(()=>getPersistedLog(services.uiSettings,storage,"query-assist"),[services.uiSettings,storage]);const{generateQuery:generateQuery,loading:loading}=useGenerateQuery();const[callOutType,setCallOutType]=Object(external_osdSharedDeps_React_["useState"])();const dismissCallout=()=>setCallOutType(undefined);const[agentError,setAgentError]=Object(external_osdSharedDeps_React_["useState"])();const[selectedDataset,setSelectedDataset]=Object(external_osdSharedDeps_React_["useState"])(queryString.getQuery().dataset);const selectedIndex=selectedDataset===null||selectedDataset===void 0?void 0:selectedDataset.title;const previousQuestionRef=Object(external_osdSharedDeps_React_["useRef"])();const{updateQuestion:updateQuestion}=useQueryAssist();Object(external_osdSharedDeps_React_["useEffect"])(()=>{const subscription=queryString.getUpdates$().subscribe(query=>{setSelectedDataset(query.dataset)});return()=>subscription.unsubscribe()},[queryString]);const onSubmit=async e=>{var _inputRef$current,_selectedDataset$data;e.preventDefault();if(!((_inputRef$current=inputRef.current)!==null&&_inputRef$current!==void 0&&_inputRef$current.value)){setCallOutType("empty_query");return}if(!selectedIndex){setCallOutType("empty_index");return}dismissCallout();setAgentError(undefined);previousQuestionRef.current=inputRef.current.value;persistedLog.add(inputRef.current.value);updateQuestion(inputRef.current.value);const params={question:inputRef.current.value,index:selectedIndex,language:props.dependencies.language,dataSourceId:selectedDataset===null||selectedDataset===void 0||(_selectedDataset$data=selectedDataset.dataSource)===null||_selectedDataset$data===void 0?void 0:_selectedDataset$data.id};const{response:response,error:error}=await generateQuery(params);if(error){if(error instanceof ProhibitedQueryError){setCallOutType("invalid_query")}else if(error instanceof AgentError){setAgentError(error)}else{services.notifications.toasts.addError(error,{title:"Failed to generate results"})}}else if(response){services.data.query.queryString.setQuery({query:response.query,language:params.language,dataset:selectedDataset});if(response.timeRange)services.data.query.timefilter.timefilter.setTime(response.timeRange);setCallOutType("query_generated")}};if(props.dependencies.isCollapsed)return null;return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiForm"],{component:"form",onSubmit:onSubmit,className:"queryAssist queryAssist__form"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFormRow"],{fullWidth:true},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{gutterSize:"xs",responsive:false,alignItems:"center"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],null,external_osdSharedDeps_React_default.a.createElement(QueryAssistInput,{inputRef:inputRef,persistedLog:persistedLog,isDisabled:loading,selectedIndex:selectedIndex,previousQuestion:previousQuestionRef.current,error:agentError})),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(QueryAssistSubmitButton,{isDisabled:loading}
9)))),external_osdSharedDeps_React_default.a.createElement(QueryAssistCallOut,{language:props.dependencies.language,type:callOutType,onDismiss:dismissCallout}))};const BANNER_STORAGE_KEY="queryAssist:banner:show";const QueryAssistBanner=props=>{const storage=getStorage();const[showCallOut,_setShowCallOut]=Object(external_osdSharedDeps_React_["useState"])(true);const setShowCallOut=show=>{if(!show){storage.set(BANNER_STORAGE_KEY,false)}_setShowCallOut(show)};if(!showCallOut||storage.get(BANNER_STORAGE_KEY)===false||props.languages.length===0)return null;return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiCallOut"],{className:"queryAssist",size:"s",title:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{responsive:false,gutterSize:"s",alignItems:"center"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiIcon"],{size:"l",type:sparkle_mark_default.a})),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiBadge"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_OsdI18nReact_["FormattedMessage"],{id:"queryEnhancements.banner.badge",defaultMessage:"New!"}))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiTextColor"],{color:"default"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_OsdI18nReact_["FormattedMessage"],{id:"queryEnhancements.banner.title.prefix",defaultMessage:"Use natural language to explore your data with "}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiLink"],{"data-test-subj":"queryAssist-banner-changeLanguage",onClick:()=>{props.dependencies.onSelectLanguage(props.languages[0]);if(props.dependencies.isCollapsed)props.dependencies.setIsCollapsed(false)}},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_OsdI18nReact_["FormattedMessage"],{id:"queryEnhancements.banner.title.suffix",defaultMessage:"Natural Language Query Generation for {languages}",values:{languages:props.languages.join(", ")}}))))),dismissible:true,onDismiss:()=>setShowCallOut(false)})};var uuid=__webpack_require__(33);let QueryAssistContextType=function(QueryAssistContextType){QueryAssistContextType[QueryAssistContextType["QUESTION"]=0]="QUESTION";QueryAssistContextType[QueryAssistContextType["QUERY"]=1]="QUERY";QueryAssistContextType[QueryAssistContextType["DATA"]=2]="DATA";return QueryAssistContextType}({});let FeedbackStatus=function(FeedbackStatus){FeedbackStatus["NONE"]="none";FeedbackStatus["THUMB_UP"]="thumbup";FeedbackStatus["THUMB_DOWN"]="thumbdown";return FeedbackStatus}({});var sparkle_hollow=__webpack_require__(42);var sparkle_hollow_default=__webpack_require__.n(sparkle_hollow);var sparkle_solid=__webpack_require__(43);var sparkle_solid_default=__webpack_require__.n(sparkle_solid);async function checkAgentsExist(http,agentConfigName,dataSourceId){const response=await http.get(API.AGENT_API.CONFIG_EXISTS,{query:{agentConfigName:agentConfigName,dataSourceId:dataSourceId}});return response}const DATA2SUMMARY_AGENT_CONFIG_ID="os_data2summary";const convertResult=body=>{const data=body;const hits=[];if(data&&data.fields&&data.fields.length>0){for(let index=0;index<data.size;index++){const hit={};data.fields.forEach(field=>{hit[field.name]=field.values[index]});hits.push({_index:data.name,_source:hit})}}return hits};const QueryAssistSummary=props=>{var _query$queryString$ge,_search$df2,_selectedDataset$curr3;const{query:query,search:search}=props.data;const[summary,setSummary]=Object(external_osdSharedDeps_React_["useState"])("");const[loading,setLoading]=Object(external_osdSharedDeps_React_["useState"])(false);const[feedback,setFeedback]=Object(external_osdSharedDeps_React_["useState"])(FeedbackStatus.NONE);const[isEnabledByCapability,setIsEnabledByCapability]=Object(external_osdSharedDeps_React_["useState"])(false);const[isSummaryAgentAvailable,setIsSummaryAgentAvailable]=Object(external_osdSharedDeps_React_["useState"])(false);const selectedDataset=Object(external_osdSharedDeps_React_["useRef"])((_query$queryString$ge=query.queryString.getQuery())===null||_query$queryString$ge===void 0?void 0:_query$queryString$ge.dataset);const{question$:question$,isQuerySummaryCollapsed:isQuerySummaryCollapsed}=useQueryAssist();const METRIC_APP=`query-assist`;const afterFeedbackTip=external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.queryAssist.summary.afterFeedback",{defaultMessage:"Thank y
9ou for the feedback. Try again by adjusting your question so that I have the opportunity to better assist you."});const errorPrompt=external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.queryAssist.summary.errorPrompt",{defaultMessage:"I am unable to respond to this query. Try another question."});const sampleSize=10;const reportMetric=Object(external_osdSharedDeps_React_["useCallback"])(metric=>{if(props.usageCollection){props.usageCollection.reportUiStats(METRIC_APP,props.usageCollection.METRIC_TYPE.CLICK,metric+"-"+Object(uuid["v4"])())}},[props.usageCollection,METRIC_APP]);const reportCountMetric=Object(external_osdSharedDeps_React_["useCallback"])((metric,count)=>{if(props.usageCollection){props.usageCollection.reportUiStats(METRIC_APP,props.usageCollection.METRIC_TYPE.COUNT,metric+"-"+Object(uuid["v4"])(),count)}},[props.usageCollection,METRIC_APP]);Object(external_osdSharedDeps_React_["useEffect"])(()=>{const subscription=query.queryString.getUpdates$().subscribe(_query=>{selectedDataset.current=_query===null||_query===void 0?void 0:_query.dataset});return()=>subscription.unsubscribe()},[query.queryString]);const fetchSummary=Object(external_osdSharedDeps_React_["useCallback"])(async queryContext=>{if(Object(external_osdSharedDeps_Lodash_["isEmpty"])(queryContext===null||queryContext===void 0?void 0:queryContext.queryResults))return;setLoading(true);setSummary("");setFeedback(FeedbackStatus.NONE);const SUCCESS_METRIC="fetch_summary_success";try{var _queryContext$queryRe,_queryContext$queryRe2,_queryContext$queryRe3,_selectedDataset$curr;const actualSampleSize=Math.min(sampleSize,queryContext===null||queryContext===void 0||(_queryContext$queryRe=queryContext.queryResults)===null||_queryContext$queryRe===void 0?void 0:_queryContext$queryRe.length);const dataString=JSON.stringify(queryContext===null||queryContext===void 0||(_queryContext$queryRe2=queryContext.queryResults)===null||_queryContext$queryRe2===void 0?void 0:_queryContext$queryRe2.slice(0,actualSampleSize));const payload=`'${dataString}'`;const response=await props.http.post("/api/assistant/data2summary",{body:JSON.stringify({sample_data:payload,sample_count:actualSampleSize,total_count:queryContext===null||queryContext===void 0||(_queryContext$queryRe3=queryContext.queryResults)===null||_queryContext$queryRe3===void 0?void 0:_queryContext$queryRe3.length,question:queryContext===null||queryContext===void 0?void 0:queryContext.question,ppl:queryContext===null||queryContext===void 0?void 0:queryContext.query}),query:{dataSourceId:(_selectedDataset$curr=selectedDataset.current)===null||_selectedDataset$curr===void 0||(_selectedDataset$curr=_selectedDataset$curr.dataSource)===null||_selectedDataset$curr===void 0?void 0:_selectedDataset$curr.id}});setSummary(response);reportCountMetric(SUCCESS_METRIC,1)}catch(error){reportCountMetric(SUCCESS_METRIC,0);setSummary(errorPrompt)}finally{setLoading(false)}},[props.http,reportCountMetric,errorPrompt]);Object(external_osdSharedDeps_React_["useEffect"])(()=>{var _search$df;let dataStack=[];const subscription=Object(external_osdSharedDeps_Rxjs_["merge"])(question$.pipe(Object(external_osdSharedDeps_RxjsOperators_["filter"])(value=>!Object(external_osdSharedDeps_Lodash_["isEmpty"])(value)),Object(external_osdSharedDeps_RxjsOperators_["mergeMap"])(value=>Object(external_osdSharedDeps_Rxjs_["of"])({type:QueryAssistContextType.QUESTION,data:value}))),query.queryString.getUpdates$().pipe(Object(external_osdSharedDeps_RxjsOperators_["filter"])(value=>!Object(external_osdSharedDeps_Lodash_["isEmpty"])(value)),Object(external_osdSharedDeps_RxjsOperators_["mergeMap"])(value=>Object(external_osdSharedDeps_Rxjs_["of"])({type:QueryAssistContextType.QUERY,data:value}))),(_search$df=search.df)===null||_search$df===void 0||(_search$df=_search$df.df$)===null||_search$df===void 0?void 0:_search$df.pipe(Object(external_osdSharedDeps_RxjsOperators_["distinctUntilChanged"])(),Object(external_osdSharedDeps_RxjsOperators_["filter"])(value=>!Object(external_osdSharedDeps_Lodash_["isEmpty"])(value)&&!Object(external_osdSharedDeps_Lodash_["isEmpty"])(value===null||value===void 0?void 0:value.fields)),Object(external_osdSharedDeps_RxjsOperators_["mergeMap"])(value=>Object(external_osdSharedDeps_Rxjs_["of"])({type:QueryAssistContextType.DATA,data:value})))).subscribe(value=>{switch(value.type){case QueryAssistContextType.QUESTION:dataStack=[value.data];break;case QueryAssistContextType.QUERY:if(dataStack.length===1){dataStack.push(value.data.query)}break;case QueryAssistContextType.DATA:if(dataStack.length===2){dataStack.push(value.data);fetchSummary({question:dataStack[0],query:dataStack[1],queryResults:convertResult(dataStack[2])});dataStack=[]}break;default:break}});return()=>{subscription.unsubscribe()}},[question$,query.queryString,(_search$df2=search.df)===null||_search$df2===void 0?void 0:_search$df2.df$,fetchSummary]);Object(external_osdSharedDeps_React_["useEffect"])(()=>{props.core.getStartServices().then(_ref=>{var _coreStart$applicatio;let[coreStart,depsStart]=_ref;const assistantEnabled=!!((_coreStart$applicatio=coreStart.application.capabilities)!==null&&_coreStart$applicatio!==void 0&&(_coreStart$applicatio=_coreStart$applicatio.assistant)!==null&&_coreStart$applicatio!==void 0&&_coreStart$applicatio.enabled);setIsEnabledByCapability(assistantEnabled)})},[props.core]);Object(external_osdSharedDeps_React_["useEffect"])(()=>{setIsSummaryAgentAvailable(false);const fetchSummaryAgent=async()=>{try{var _selectedDataset$curr2;const summaryAgentStatus=await checkAgentsExist(props.http,DATA2SUMMARY_AGENT_CONFIG_ID,(_selectedDataset$curr2=selectedDataset.current)===null||_selectedDataset$curr2===void 0||(_selectedDataset$curr2=_selectedDataset$curr2.dataSource)===null||_selectedDataset$curr2===void 0?void 0:_selectedDataset$curr2.id);setIsSummaryAgentAvailable(summaryAgentStatus.exists)}catch(error){console.error(error)}};if(isEnabledByCapability){fetchSummaryAgent()}},[(_selectedDataset$curr3=selectedDataset.current)===null||_selectedDataset$curr3===void 0||(_selectedDataset$curr3=_selectedDataset$curr3.dataSource)===null||_selectedDataset$curr3===void 0?void 0:_selectedDataset$curr3.id,props.http,isEnabledByCapability]);const onFeedback=Object(external_osdSharedDeps_React_["useCallback"])(satisfied=>{if(feedback!==FeedbackStatus.NONE)return;
9const feedbackStatus=satisfied?FeedbackStatus.THUMB_UP:FeedbackStatus.THUMB_DOWN;setFeedback(feedbackStatus);reportMetric(feedbackStatus)},[feedback,reportMetric]);if(props.dependencies.isCollapsed||isQuerySummaryCollapsed||!isEnabledByCapability||!isSummaryAgentAvailable){return null}const isDarkMode=props.core.uiSettings.get("theme:darkMode");return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSplitPanel"].Outer,{className:"queryAssist queryAssist__summary","data-test-subj":"queryAssist__summary",hasBorder:true,borderRadius:"none"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSplitPanel"].Inner,{className:"queryAssist queryAssist__summary_banner"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{alignItems:"center",gutterSize:"xs"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiIcon"],{type:isDarkMode?sparkle_solid_default.a:sparkle_hollow_default.a,size:"m"})),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"s"},external_osdSharedDeps_React_default.a.createElement("strong",null,external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.queryAssist.summary.panelTitle",{defaultMessage:"Response"})))),summary&&!loading&&external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:true,"data-test-subj":"queryAssist_summary_buttons"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{alignItems:"center",justifyContent:"flexEnd",gutterSize:"xs"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiIconTip"],{type:"iInCircle",content:`Summary based on first ${sampleSize}
9 records`,"aria-label":external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.queryAssist.summary.sampletip",{defaultMessage:"Summary based on first {sampleSize} records",values:{sampleSize:sampleSize}})})),feedback!==FeedbackStatus.THUMB_DOWN&&external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSmallButtonIcon"],{"aria-label":"feedback thumbs up",color:feedback===FeedbackStatus.THUMB_UP?"subdued":"text",iconType:"thumbsUp",title:!feedback?external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.queryAssist.summary.goodResponse",{defaultMessage:`Good response`}):afterFeedbackTip,onClick:()=>onFeedback(true),"data-test-subj":"queryAssist_summary_buttons_thumbup"})),feedback!==FeedbackStatus.THUMB_UP&&external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSmallButtonIcon"],{"aria-label":"feedback thumbs down",color:feedback===FeedbackStatus.THUMB_DOWN?"subdued":"text",title:!feedback?external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.queryAssist.summary.badResponse",{defaultMessage:`Bad response`}):afterFeedbackTip,iconType:"thumbsDown",onClick:()=>onFeedback(false),"data-test-subj":"queryAssist_summary_buttons_thumbdown"})),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],{size:"m",style:{borderLeft:"1px solid #D3DAE6",height:"20px"}}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiCopy"],{textToCopy:summary!==null&&summary!==void 0?summary:""},copy=>external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSmallButtonIcon"],{"aria-label":"Copy to clipboard",title:external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.queryAssist.summary.copy",{defaultMessage:`Copy to clipboard`}),onClick:copy,color:"text",iconType:"copy","data-test-subj":"queryAssist_summary_buttons_copy"}))))))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSplitPanel"].Inner,{paddingSize:"s"},!summary&&!loading&&external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"s","data-test-subj":"queryAssist_summary_empty_text"},external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.queryAssist.summary.placeholder",{defaultMessage:`Ask a question to generate summary.`})),loading&&external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"s","data-test-subj":"queryAssist_summary_loading"},external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.queryAssist.summary.generating",{defaultMessage:`Generating response...`})),summary&&!loading&&external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"s","data-test-subj":"queryAssist_summary_result"},summary)))};function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}const[getAvailableLanguagesForDataSource,clearCache]=(()=>{const availableLanguagesByDataSource=new Map;const pendingRequests=new Map;return[async(http,dataSourceId,timeout)=>{const cached=availableLanguagesByDataSource.get(dataSourceId);if(cached!==undefined)return cached;const pendingRequest=pendingRequests.get(dataSourceId);if(pendingRequest!==undefined)return pendingRequest;const controller=timeout?new AbortController:undefined;const timeoutId=timeout?setTimeout(()=>controller===null||controller===void 0?void 0:controller.abort(),timeout):undefined;const languagesPromise=http.get(API.QUERY_ASSIST.LANGUAGES,{query:{dataSourceId:dataSourceId},signal:controller===null||controller===void 0?void 0:controller.signal}).then(response=>response.configuredLanguages).catch(()=>[]).finally(()=>
9{pendingRequests.delete(dataSourceId);if(timeoutId)clearTimeout(timeoutId)});pendingRequests.set(dataSourceId,languagesPromise);const languages=await languagesPromise;availableLanguagesByDataSource.set(dataSourceId,languages);return languages},()=>{availableLanguagesByDataSource.clear();pendingRequests.clear()}]})();const getAvailableLanguages$=(http,data)=>data.query.queryString.getUpdates$().pipe(Object(external_osdSharedDeps_RxjsOperators_["startWith"])(data.query.queryString.getQuery()),Object(external_osdSharedDeps_RxjsOperators_["distinctUntilChanged"])(),Object(external_osdSharedDeps_RxjsOperators_["switchMap"])(async query=>{var _query$dataset,_query$dataset2,_query$dataset3,_query$dataset4;if(((_query$dataset=query.dataset)===null||_query$dataset===void 0||(_query$dataset=_query$dataset.dataSource)===null||_query$dataset===void 0?void 0:_query$dataset.type)!==common_["DEFAULT_DATA"].SOURCE_TYPES.OPENSEARCH&&((_query$dataset2=query.dataset)===null||_query$dataset2===void 0||(_query$dataset2=_query$dataset2.dataSource)===null||_query$dataset2===void 0?void 0:_query$dataset2.type)!=="DATA_SOURCE"&&((_query$dataset3=query.dataset)===null||_query$dataset3===void 0?void 0:_query$dataset3.type)!==common_["DEFAULT_DATA"].SET_TYPES.INDEX_PATTERN)return[];const dataSourceId=(_query$dataset4=query.dataset)===null||_query$dataset4===void 0||(_query$dataset4=_query$dataset4.dataSource)===null||_query$dataset4===void 0?void 0:_query$dataset4.id;return getAvailableLanguagesForDataSource(http,dataSourceId)}));const createQueryAssistExtension=(core,data,config,isQuerySummaryCollapsed$,resultSummaryEnabled$,usageCollection)=>{const http=core.http;const question$=new external_osdSharedDeps_Rxjs_["BehaviorSubject"]("");return{id:"query-assist",order:1e3,getDataStructureMeta:async dataSourceId=>{const isEnabled=await getAvailableLanguagesForDataSource(http,dataSourceId,3e3).then(languages=>languages.length>0);if(isEnabled){return{type:common_["DATA_STRUCTURE_META_TYPES"].FEATURE,icon:{type:sparkle_mark_default.a},tooltip:external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.meta.icon.tooltip",{defaultMessage:"Query assist is available"})}}},isEnabled$:()=>getAvailableLanguages$(http,data).pipe(Object(external_osdSharedDeps_RxjsOperators_["map"])(languages=>languages.length>0)),getComponent:dependencies=>external_osdSharedDeps_React_default.a.createElement(QueryAssistWrapper,_extends({dependencies:dependencies,http:http,data:data,isQuerySummaryCollapsed$:isQuerySummaryCollapsed$},config.summary.enabled&&{resultSummaryEnabled$:resultSummaryEnabled$},{question$:question$}),external_osdSharedDeps_React_default.a.createElement(QueryAssistBar,{dependencies:dependencies}),config.summary.enabled&&external_osdSharedDeps_React_default.a.createElement(QueryAssistSummary,{data:data,http:http,usageCollection:usageCollection,dependencies:dependencies,core:core})),getBanner:dependencies=>external_osdSharedDeps_React_default.a.createElement(QueryAssistWrapper,{dependencies:dependencies,http:http,data:data,invert:true},external_osdSharedDeps_React_default.a.createElement(QueryAssistBanner,{dependencies:dependencies,languages:config.supportedLanguages.map(conf=>conf.language)}))}};const QueryAssistWrapper=props=>{const[visible,setVisible]=Object(external_osdSharedDeps_React_["useState"])(false);const[question,setQuestion]=Object(external_osdSharedDeps_React_["useState"])("");const[isQuerySummaryCollapsed,setIsQuerySummaryCollapsed]=Object(external_osdSharedDeps_React_["useState"])(true);const updateQuestion=newQuestion=>{var _props$question$;(_props$question$=props.question$)===null||_props$question$===void 0||_props$question$.next(newQuestion)};const question$=props.question$;Object(external_osdSharedDeps_React_["useEffect"])(()=>{var _props$isQuerySummary,_props$question$2;const subscription=(_props$isQuerySummary=props.isQuerySummaryCollapsed$)===null||_props$isQuerySummary===void 0?void 0:_props$isQuerySummary.subscribe(isCollapsed=>{setIsQuerySummaryCollapsed(isCollapsed)});const questionSubscription=(_props$question$2=props.question$)===null||_props$question$2===void 0?void 0:_props$question$2.subscribe(newQuestion=>{setQuestion(newQuestion)});return()=>{questionSubscription===null||questionSubscription===void 0||questionSubscription.unsubscribe();subscription===null||subscription===void 0||subscription.unsubscribe()}},[]);Object(external_osdSharedDeps_React_["useEffect"])(()=>{let mounted=true;const subscription=getAvailableLanguages$(props.http,props.data).subscribe(languages=>{const available=languages.includes(props.dependencies.language);if(mounted){var _props$resultSummaryE;const isVisible=props.invert?!available:available;setVisible(isVisible);(_props$resultSummaryE=props.resultSummaryEnabled$)===null||_props$resultSummaryE===void 0||_props$resultSummaryE.next(isVisible)}});return()=>{mounted=false;subscription.unsubscribe()}},[props]);if(!visible)return null;return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(QueryAssistContext.Provider,{value:{question:question,question$:question$,updateQuestion:updateQuestion,isQuerySummaryCollapsed:isQuerySummaryCollapsed}},props.children))};function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}function _toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}
9class ProhibitedQueryError extends Error{constructor(message){super(message)}}class AgentError extends Error{constructor(error){super(error.error.details);_defineProperty(this,"error",void 0);if(!("status"in error&&"reason"in error.error&&"details"in error.error&&"type"in error.error)){throw new Error("Failed to parse error")}this.error=error}}const formatError=error=>{if("body"in error){if(error.body.statusCode===429)return{...error.body,message:"Request is throttled. Try again later or contact your administrator"};if(error.body.statusCode===400&&error.body.message.includes(ERROR_DETAILS.GUARDRAILS_TRIGGERED))return new ProhibitedQueryError(error.body.message);try{return new AgentError(JSON.parse(error.body.message))}catch(parseError){return error.body}}return error};function getPersistedLog(uiSettings,storage,language){return new public_["PersistedLog"](`typeahead:${language}`,{maxLength:uiSettings.get(common_["UI_SETTINGS"].HISTORY_LIMIT),filterDuplicates:true},storage)}var lib=__webpack_require__(14);const PPLReference=()=>{var _opensearchDashboards,_opensearchDashboards2;const opensearchDashboards=Object(opensearchDashboardsReact_public_["useOpenSearchDashboards"])();const pplDocs=(_opensearchDashboards=opensearchDashboards.services.docLinks)===null||_opensearchDashboards===void 0?void 0:_opensearchDashboards.links.noDocumentation.ppl.base;const limitationDocs=(_opensearchDashboards2=opensearchDashboards.services.docLinks)===null||_opensearchDashboards2===void 0?void 0:_opensearchDashboards2.links.noDocumentation.sqlPplLimitation.base;const pplFullName=external_osdSharedDeps_React_default.a.createElement(lib["FormattedMessage"],{id:"queryEnhancements.queryBar.pplFullLanguageName",defaultMessage:"PPL"});const limitationsLink=external_osdSharedDeps_React_default.a.createElement(lib["FormattedMessage"],{id:"queryEnhancements.queryBar.pplLimitationDoc",defaultMessage:"here"});return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"s"},external_osdSharedDeps_React_default.a.createElement("p",null,external_osdSharedDeps_React_default.a.createElement(lib["FormattedMessage"],{id:"queryEnhancements.queryBar.pplSyntaxOptionsDescription",defaultMessage:"Piped Processing Language ({pplDocsLink}) is a query language that focuses on processing data in a sequential, step-by-step manner. OpenSearch SQL/PPL language limitations can be found {limitationDocsLink}.",values:{pplDocsLink:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiLink"],{href:pplDocs,target:"_blank"},pplFullName),limitationDocsLink:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiLink"],{href:limitationDocs,target:"_blank"},limitationsLink)}}))))};const pplLanguageReference=selectedLanguage=>{const hasSeenInfoBox=localStorage.getItem("hasSeenInfoBox_PPL")==="true";const shouldAutoShow=selectedLanguage==="PPL"&&!hasSeenInfoBox;return external_osdSharedDeps_React_default.a.createElement(public_["LanguageReference"],{body:external_osdSharedDeps_React_default.a.createElement(PPLReference,null),autoShow:shouldAutoShow,selectedLanguage:selectedLanguage})};const SQLReference=()=>{var _opensearchDashboards,_opensearchDashboards2;const opensearchDashboards=Object(opensearchDashboardsReact_public_["useOpenSearchDashboards"])();const sqlDocs=(_opensearchDashboards=opensearchDashboards.services.docLinks)===null||_opensearchDashboards===void 0?void 0:_opensearchDashboards.links.noDocumentation.sql.base;const limitationDocs=(_opensearchDashboards2=opensearchDashboards.services.docLinks)===null||_opensearchDashboards2===void 0?void 0:_opensearchDashboards2.links.noDocumentation.sqlPplLimitation.base;const sqlFullName=external_osdSharedDeps_React_default.a.createElement(lib["FormattedMessage"],{id:"queryEnhancements.queryBar.sqlFullLanguageName",defaultMessage:"SQL"});const limitationsLink=external_osdSharedDeps_React_default.a.createElement(lib["FormattedMessage"],{id:"queryEnhancements.queryBar.sqlLimitationDoc",defaultMessage:"here"});return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"s"},external_osdSharedDeps_React_default.a.createElement("p",null,external_osdSharedDeps_React_default.a.createElement(lib["FormattedMessage"],{id:"queryEnhancements.queryBar.sqlSyntaxOptionsDescription",defaultMessage:"OpenSearch {sqlDocsLink}. OpenSearch SQL/PPL language limitations can be found {limitationDocsLink}.",values:{sqlDocsLink:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiLink"],{href:sqlDocs,target:"_blank"},sqlFullName),limitationDocsLink:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiLink"],{href:limitationDocs,target:"_blank"},limitationsLink)}}))))};const sqlLanguageReference=selectedLanguage=>{const hasSeenInfoBox=localStorage.getItem("hasSeenInfoBox_SQL")==="true";const shouldAutoShow=selectedLanguage==="SQL"&&!hasSeenInfoBox;return external_osdSharedDeps_React_default.a.createElement(public_["LanguageReference"],{body:external_osdSharedDeps_React_default.a.createElement(SQLReference,null),autoShow:shouldAutoShow,selectedLanguage:selectedLanguage})};function ppl_search_interceptor_defineProperty(e,r,t){return(r=ppl_search_interceptor_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ppl_search_interceptor_toPropertyKey(t){var i=ppl_search_interceptor_toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}function ppl_search_interceptor_toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}class ppl_search_interceptor_PPLSearchInterceptor extends public_["SearchInterceptor"]{constructor(deps){super(deps);ppl_search_interceptor_defineProperty(this,"queryService",void 0);ppl_search_interceptor_defineProperty(this,"aggsService",void 0);deps.startServices.then(_ref=>{let[coreStart,depsStart]=_ref;this.queryService=depsStart.data.query;this.aggsService=depsStart.data.search.aggs})}runSearch(request,signal,strategy){var _request$params,_request$params2;const{id:id,...searchRequest}=request;const context={http:this.deps.http,path:Object(external_osdSharedDeps_Lodash_["trimEnd"])(`${API.SEARCH}/${strategy}`),signal:signal,body:{pollQueryResultsParams:(_request$params=request.params)===null||_request$params===void 0?void 0:_request$params.pollQueryResultsParams,timeRange:(_request$params2=request.params)===null||_request$params2===void 0||(_request$params2=_request$params2.body)===null||_request$params2===void 0?void 0:_request$params2.timeRange}};const query=this.buildQuery();return fetch(context,query,this.getAggConfig(searchRequest,query))}search(request,options){const dataset=this.queryService.queryString.getQuery().dataset;const datasetType=dataset===null||dataset===void 0?void 0:dataset.type;
9let strategy=datasetType===DATASET.S3?SEARCH_STRATEGY.PPL_ASYNC:SEARCH_STRATEGY.PPL;if(datasetType){var _datasetTypeConfig$ge,_datasetTypeConfig$ge2,_datasetTypeConfig$la;const datasetTypeConfig=this.queryService.queryString.getDatasetService().getType(datasetType);strategy=(_datasetTypeConfig$ge=datasetTypeConfig===null||datasetTypeConfig===void 0||(_datasetTypeConfig$ge2=datasetTypeConfig.getSearchOptions)===null||_datasetTypeConfig$ge2===void 0?void 0:_datasetTypeConfig$ge2.call(datasetTypeConfig).strategy)!==null&&_datasetTypeConfig$ge!==void 0?_datasetTypeConfig$ge:strategy;if(dataset!==null&&dataset!==void 0&&dataset.timeFieldName&&(datasetTypeConfig===null||datasetTypeConfig===void 0||(_datasetTypeConfig$la=datasetTypeConfig.languageOverrides)===null||_datasetTypeConfig$la===void 0||(_datasetTypeConfig$la=_datasetTypeConfig$la.PPL)===null||_datasetTypeConfig$la===void 0?void 0:_datasetTypeConfig$la.hideDatePicker)===false){request.params={...request.params,body:{...request.params.body,timeRange:this.queryService.timefilter.timefilter.getTime()}}}}return this.runSearch(request,options.abortSignal,strategy)}buildQuery(){var _datasetService$getTy;const{queryString:queryString}=this.queryService;const query=queryString.getQuery();const dataset=query.dataset;if(!dataset||!dataset.timeFieldName)return query;const datasetService=queryString.getDatasetService();if(((_datasetService$getTy=datasetService.getType(dataset.type))===null||_datasetService$getTy===void 0||(_datasetService$getTy=_datasetService$getTy.languageOverrides)===null||_datasetService$getTy===void 0||(_datasetService$getTy=_datasetService$getTy.PPL)===null||_datasetService$getTy===void 0?void 0:_datasetService$getTy.hideDatePicker)===false)return query;const[baseQuery,...afterPipeParts]=query.query.split("|");const afterPipe=afterPipeParts.length>0?` | ${afterPipeParts.join("|").trim()}`:"";const timeFilter=this.getTimeFilter(dataset.timeFieldName);return{...query,query:baseQuery+timeFilter+afterPipe}}getAggConfig(request,query){const{aggs:aggs}=request.params.body;if(!aggs||!query.dataset||!query.dataset.timeFieldName)return;const aggsConfig={};const{fromDate:fromDate,toDate:toDate}=Object(common_["formatTimePickerDate"])(this.queryService.timefilter.timefilter.getTime(),"YYYY-MM-DD HH:mm:ss.SSS");Object.entries(aggs).forEach(_ref2=>{let[key,value]=_ref2;const aggTypeKeys=Object.keys(value);if(aggTypeKeys.length===0){return aggsConfig}const aggTypeKey=aggTypeKeys[0];if(aggTypeKey==="date_histogram"){var _ref3,_value$aggTypeKey$fix;aggsConfig[aggTypeKey]={...value[aggTypeKey]};aggsConfig.qs={[key]:`${query.query} | stats count() by span(${query.dataset.timeFieldName}, ${(_ref3=(_value$aggTypeKey$fix=value[aggTypeKey].fixed_interval)!==null&&_value$aggTypeKey$fix!==void 0?_value$aggTypeKey$fix:value[aggTypeKey].calendar_interval)!==null&&_ref3!==void 0?_ref3:this.aggsService.calculateAutoTimeExpression({from:fromDate,to:toDate,mode:"absolute"})})`}}});return aggsConfig}getTimeFilter(timeFieldName){const{fromDate:fromDate,toDate:toDate}=Object(common_["formatTimePickerDate"])(this.queryService.timefilter.timefilter.getTime(),"YYYY-MM-DD HH:mm:ss.SSS");return` | where \`${timeFieldName}\` >= '${formatDate(fromDate)}' and \`${timeFieldName}\` <= '${formatDate(toDate)}'`}}function sql_search_interceptor_defineProperty(e,r,t){return(r=sql_search_interceptor_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function sql_search_interceptor_toPropertyKey(t){var i=sql_search_interceptor_toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}function sql_search_interceptor_toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}class sql_search_interceptor_SQLSearchInterceptor extends public_["SearchInterceptor"]{constructor(deps){super(deps);sql_search_interceptor_defineProperty(this,"queryService",void 0);sql_search_interceptor_defineProperty(this,"notifications",void 0);deps.startServices.then(_ref=>{let[coreStart,depsStart]=_ref;this.queryService=depsStart.data.query;this.notifications=coreStart.notifications})}runSearch(request,signal,strategy){var _request$params,_request$params2;const context={http:this.deps.http,path:Object(external_osdSharedDeps_Lodash_["trimEnd"])(`${API.SEARCH}/${strategy}`),signal:signal,body:{pollQueryResultsParams:(_request$params=request.params)===null||_request$params===void 0?void 0:_request$params.pollQueryResultsParams,timeRange:(_request$params2=request.params)===null||_request$params2===void 0||(_request$params2=_request$params2.body)===null||_request$params2===void 0?void 0:_request$params2.timeRange}};return fetch(context,this.queryService.queryString.getQuery()).pipe(Object(external_osdSharedDeps_RxjsOperators_["catchError"])(error=>Object(external_osdSharedDeps_Rxjs_["throwError"])(error)))}search(request,options){const dataset=this.queryService.queryString.getQuery().dataset;const datasetType=dataset===null||dataset===void 0?void 0:dataset.type;
9let strategy=datasetType===DATASET.S3?SEARCH_STRATEGY.SQL_ASYNC:SEARCH_STRATEGY.SQL;if(datasetType){var _datasetTypeConfig$ge,_datasetTypeConfig$ge2,_datasetTypeConfig$la;const datasetTypeConfig=this.queryService.queryString.getDatasetService().getType(datasetType);strategy=(_datasetTypeConfig$ge=datasetTypeConfig===null||datasetTypeConfig===void 0||(_datasetTypeConfig$ge2=datasetTypeConfig.getSearchOptions)===null||_datasetTypeConfig$ge2===void 0?void 0:_datasetTypeConfig$ge2.call(datasetTypeConfig).strategy)!==null&&_datasetTypeConfig$ge!==void 0?_datasetTypeConfig$ge:strategy;if((datasetTypeConfig===null||datasetTypeConfig===void 0||(_datasetTypeConfig$la=datasetTypeConfig.languageOverrides)===null||_datasetTypeConfig$la===void 0||(_datasetTypeConfig$la=_datasetTypeConfig$la.SQL)===null||_datasetTypeConfig$la===void 0?void 0:_datasetTypeConfig$la.hideDatePicker)===false){request.params={...request.params,body:{...request.params.body,timeRange:this.queryService.timefilter.timefilter.getTime()}}}}return this.runSearch(request,options.abortSignal,strategy)}}function plugin_defineProperty(e,r,t){return(r=plugin_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function plugin_toPropertyKey(t){var i=plugin_toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}function plugin_toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}class plugin_QueryEnhancementsPlugin{constructor(initializerContext){plugin_defineProperty(this,"storage",void 0);plugin_defineProperty(this,"config",void 0);plugin_defineProperty(this,"isQuerySummaryCollapsed$",new external_osdSharedDeps_Rxjs_["BehaviorSubject"](false));plugin_defineProperty(this,"resultSummaryEnabled$",new external_osdSharedDeps_Rxjs_["BehaviorSubject"](false));this.config=initializerContext.config.get();this.storage=new common_["DataStorage"](window.localStorage,"discover.queryAssist.")}setup(core,_ref){let{data:data,usageCollection:usageCollection}=_ref;const{queryString:queryString}=data.query;const pplControls=[pplLanguageReference("PPL")];const sqlControls=[sqlLanguageReference("SQL")];const pplLanguageConfig={id:"PPL",title:"PPL",search:new ppl_search_interceptor_PPLSearchInterceptor({toasts:core.notifications.toasts,http:core.http,uiSettings:core.uiSettings,startServices:core.getStartServices(),usageCollector:data.search.usageCollector}),getQueryString:currentQuery=>{var _currentQuery$dataset;return`source = ${(_currentQuery$dataset=currentQuery.dataset)===null||_currentQuery$dataset===void 0?void 0:_currentQuery$dataset.title}`},fields:{filterable:false,visualizable:false},docLink:{title:external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.pplLanguage.docLink",{defaultMessage:"PPL documentation"}),url:"https://opensearch.org/docs/latest/search-plugins/sql/ppl/syntax/"},showDocLinks:false,editor:Object(public_["createEditor"])(public_["SingleLineInput"],null,pplControls,public_["DefaultInput"]),editorSupportedAppNames:["discover"],supportedAppNames:["discover","data-explorer"],sampleQueries:[{title:external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.sampleQuery.titleContainsWind",{defaultMessage:"The title field contains the word wind."}),query:`SOURCE = your_table | WHERE LIKE(title, '%wind%')`},{title:external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.sampleQuery.titleContainsWindOrWindy",{defaultMessage:"The title field contains the word wind or the word windy."}),query:`SOURCE = your_table | WHERE LIKE(title, '%wind%') OR LIKE(title, '%windy%')`},{title:external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.sampleQuery.titleContainsPhraseWindRises",{defaultMessage:"The title field contains the phrase wind rises."}),query:`SOURCE = your_table | WHERE LIKE(title, '%wind rises%')`},{title:external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.sampleQuery.titleExactMatchWindRises",{defaultMessage:"The title.keyword field exactly matches The wind rises."}),query:`SOURCE = your_table | WHERE title = 'The wind rises'`},{title:external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.sampleQuery.titleFieldsContainWind",{defaultMessage:"Any field that starts with title (for example, title and title.keyword) contains the word wind"}),query:`SOURCE = your_table | WHERE LIKE(title, '%wind%') OR title = 'wind'`},{title:external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.sampleQuery.descriptionFieldExists",{defaultMessage:"Documents in which the field description exists."}),query:`SOURCE = your_table | WHERE ISNOTNULL(description) AND description != '';`}]};queryString.getLanguageService().registerLanguage(pplLanguageConfig);const sqlLanguageConfig={id:"SQL",title:"OpenSearch SQL",search:new sql_search_interceptor_SQLSearchInterceptor({toasts:core.notifications.toasts,http:core.http,uiSettings:core.uiSettings,startServices:core.getStartServices(),usageCollector:data.search.usageCollector}),getQueryString:currentQuery=>{var _currentQuery$dataset2;return`SELECT * FROM ${(_currentQuery$dataset2=currentQuery.dataset)===null||_currentQuery$dataset2===void 0?void 0:_currentQuery$dataset2.title} LIMIT 10`},fields:{filterable:false,visualizable:false},docLink:{title:external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.sqlLanguage.docLink",{defaultMessage:"SQL documentation"}),url:"https://opensearch.org/docs/latest/search-plugins/sql/sql/basic/"},showDocLinks:false,editor:Object(public_["createEditor"])(public_["SingleLineInput"],null,sqlControls,public_["DefaultInput"]),editorSupportedAppNames:["discover"],supportedAppNames:["discover","data-explorer"],hideDatePicker:true,sampleQueries:[{title:external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.sampleQuery.titleContainsWind",{defaultMessage:"The title field contains the word wind."}),query:`SELECT * FROM your_table WHERE title LIKE '%wind%'`},{title:external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.sampleQuery.titleContainsWindOrWindy",{defaultMessage:"The title field contains the word wind or the word windy."}),query:`SELECT * FROM your_table WHERE title LIKE '%wind%' OR title LIKE '%windy%';`},{title:external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.sampleQuery.titleContainsPhraseWindRises",{defaultMessage:"The title field contains the phrase wind rises."}),query:`SELECT * FROM your_table WHERE title LIKE '%wind rises%'`},{title:external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.sampleQuery.titleExactMatchWindRises",{defaultMessage:"The title.keyword field exactly matches The wind rises."}),query:`SELECT * FROM your_table WHERE title = 'The wind rises'`},{title:external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.sampleQuery.titleFieldsContainWind",{defaultMessage:"Any field that starts with title (for example, title and title.keyword) contains the word wind"}),query:`SELECT * FROM your_table WHERE title LIKE '%wind%' OR title = 'wind'`},{title:external_osdSharedDeps_OsdI18n_["i18n"].translate("queryEnhancements.sampleQuery.descriptionFieldExists",{defaultMessage:"Documents in which the field description exists."}),query:`SELECT * FROM your_table WHERE description IS NOT NULL AND description != '';`}]};queryString.getLanguageService().registerLanguage(sqlLanguageConfig);data.__enhance({editor:{queryEditorExtension:createQueryAssistExtension(core,data,this.config.queryAssist,this.isQuerySummaryCollapsed$,this.resultSummaryEnabled$,usageCollection)}});queryString.getDatasetService().registerType(s3TypeConfig);return{isQuerySummaryCollapsed$:this.isQuerySummaryCollapsed$,resultSummaryEnabled$:this.resultSummaryEnabled$}}start(core,_ref2){let{data:data}=_ref2;setStorage(this.storage);setData(data);return{}}stop(){}}function public_plugin(initializerContext){return new plugin_QueryEnhancementsPlugin(initializerContext)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.