@mongosh/browser-repl 1.5.2 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -67,7 +67,7 @@ var r=n(4),i=r.Buffer;function s(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n)
67
67
  * Released under MIT license <https://lodash.com/license>
68
68
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
69
69
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
70
- */(function(){var s="Expected a function",o="__lodash_placeholder__",a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",u="[object Array]",c="[object Boolean]",h="[object Date]",d="[object Error]",f="[object Function]",p="[object GeneratorFunction]",m="[object Map]",g="[object Number]",y="[object Object]",v="[object RegExp]",b="[object Set]",w="[object String]",_="[object Symbol]",S="[object WeakMap]",x="[object ArrayBuffer]",E="[object DataView]",A="[object Float32Array]",T="[object Float64Array]",M="[object Int8Array]",C="[object Int16Array]",P="[object Int32Array]",k="[object Uint8Array]",O="[object Uint16Array]",I="[object Uint32Array]",R=/\b__p \+= '';/g,N=/\b(__p \+=) '' \+/g,D=/(__e\(.*?\)|\b__t\)) \+\n'';/g,F=/&(?:amp|lt|gt|quot|#39);/g,L=/[&<>"']/g,B=RegExp(F.source),j=RegExp(L.source),$=/<%-([\s\S]+?)%>/g,U=/<%([\s\S]+?)%>/g,V=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,z=/^\w*$/,K=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,H=/[\\^$.*+?()[\]{}|]/g,q=RegExp(H.source),G=/^\s+/,Y=/\s/,J=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,X=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/[()=,{}\[\]\/\s]/,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,se=/^0b[01]+$/i,oe=/^\[object .+?Constructor\]$/,ae=/^0o[0-7]+$/i,le=/^(?:0|[1-9]\d*)$/,ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,he=/['\n\r\u2028\u2029\\]/g,de="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pe="[\\ud800-\\udfff]",me="["+fe+"]",ge="["+de+"]",ye="\\d+",ve="[\\u2700-\\u27bf]",be="[a-z\\xdf-\\xf6\\xf8-\\xff]",we="[^\\ud800-\\udfff"+fe+ye+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_e="\\ud83c[\\udffb-\\udfff]",Se="[^\\ud800-\\udfff]",xe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ee="[\\ud800-\\udbff][\\udc00-\\udfff]",Ae="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Te="(?:"+be+"|"+we+")",Me="(?:"+Ae+"|"+we+")",Ce="(?:"+ge+"|"+_e+")"+"?",Pe="[\\ufe0e\\ufe0f]?"+Ce+("(?:\\u200d(?:"+[Se,xe,Ee].join("|")+")[\\ufe0e\\ufe0f]?"+Ce+")*"),ke="(?:"+[ve,xe,Ee].join("|")+")"+Pe,Oe="(?:"+[Se+ge+"?",ge,xe,Ee,pe].join("|")+")",Ie=RegExp("['’]","g"),Re=RegExp(ge,"g"),Ne=RegExp(_e+"(?="+_e+")|"+Oe+Pe,"g"),De=RegExp([Ae+"?"+be+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[me,Ae,"$"].join("|")+")",Me+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[me,Ae+Te,"$"].join("|")+")",Ae+"?"+Te+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Ae+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ye,ke].join("|"),"g"),Fe=RegExp("[\\u200d\\ud800-\\udfff"+de+"\\ufe0e\\ufe0f]"),Le=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Be=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],je=-1,$e={};$e[A]=$e[T]=$e[M]=$e[C]=$e[P]=$e[k]=$e["[object Uint8ClampedArray]"]=$e[O]=$e[I]=!0,$e[l]=$e[u]=$e[x]=$e[c]=$e[E]=$e[h]=$e[d]=$e[f]=$e[m]=$e[g]=$e[y]=$e[v]=$e[b]=$e[w]=$e[S]=!1;var Ue={};Ue[l]=Ue[u]=Ue[x]=Ue[E]=Ue[c]=Ue[h]=Ue[A]=Ue[T]=Ue[M]=Ue[C]=Ue[P]=Ue[m]=Ue[g]=Ue[y]=Ue[v]=Ue[b]=Ue[w]=Ue[_]=Ue[k]=Ue["[object Uint8ClampedArray]"]=Ue[O]=Ue[I]=!0,Ue[d]=Ue[f]=Ue[S]=!1;var Ve={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},We=parseFloat,ze=parseInt,Ke="object"==typeof e&&e&&e.Object===Object&&e,He="object"==typeof self&&self&&self.Object===Object&&self,qe=Ke||He||Function("return this")(),Ge=t&&!t.nodeType&&t,Ye=Ge&&"object"==typeof r&&r&&!r.nodeType&&r,Je=Ye&&Ye.exports===Ge,Xe=Je&&Ke.process,Ze=function(){try{var e=Ye&&Ye.require&&Ye.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(e){}}(),Qe=Ze&&Ze.isArrayBuffer,et=Ze&&Ze.isDate,tt=Ze&&Ze.isMap,nt=Ze&&Ze.isRegExp,rt=Ze&&Ze.isSet,it=Ze&&Ze.isTypedArray;function st(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ot(e,t,n,r){for(var i=-1,s=null==e?0:e.length;++i<s;){var o=e[i];t(r,o,n(o),e)}return r}function at(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ut(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function ct(e,t){for(var n=-1,r=null==e?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}function ht(e,t){return!!(null==e?0:e.length)&&_t(e,t,0)>-1}function dt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function ft(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function pt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function mt(e,t,n,r){var i=-1,s=null==e?0:e.length;for(r&&s&&(n=e[++i]);++i<s;)n=t(n,e[i],i,e);return n}function gt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function yt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var vt=At("length");function bt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function wt(e,t,n,r){for(var i=e.length,s=n+(r?1:-1);r?s--:++s<i;)if(t(e[s],s,e))return s;return-1}function _t(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):wt(e,xt,n)}function St(e,t,n,r){for(var i=n-1,s=e.length;++i<s;)if(r(e[i],t))return i;return-1}function xt(e){return e!=e}function Et(e,t){var n=null==e?0:e.length;return n?Ct(e,t)/n:NaN}function At(e){return function(t){return null==t?void 0:t[e]}}function Tt(e){return function(t){return null==e?void 0:e[t]}}function Mt(e,t,n,r,i){return i(e,(function(e,i,s){n=r?(r=!1,e):t(n,e,i,s)})),n}function Ct(e,t){for(var n,r=-1,i=e.length;++r<i;){var s=t(e[r]);void 0!==s&&(n=void 0===n?s:n+s)}return n}function Pt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function kt(e){return e?e.slice(0,Gt(e)+1).replace(G,""):e}function Ot(e){return function(t){return e(t)}}function It(e,t){return ft(t,(function(t){return e[t]}))}function Rt(e,t){return e.has(t)}function Nt(e,t){for(var n=-1,r=e.length;++n<r&&_t(t,e[n],0)>-1;);return n}function Dt(e,t){for(var n=e.length;n--&&_t(t,e[n],0)>-1;);return n}function Ft(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Lt=Tt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Bt=Tt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function jt(e){return"\\"+Ve[e]}function $t(e){return Fe.test(e)}function Ut(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Vt(e,t){return function(n){return e(t(n))}}function Wt(e,t){for(var n=-1,r=e.length,i=0,s=[];++n<r;){var a=e[n];a!==t&&a!==o||(e[n]=o,s[i++]=n)}return s}function zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Kt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Ht(e){return $t(e)?function(e){var t=Ne.lastIndex=0;for(;Ne.test(e);)++t;return t}(e):vt(e)}function qt(e){return $t(e)?function(e){return e.match(Ne)||[]}(e):function(e){return e.split("")}(e)}function Gt(e){for(var t=e.length;t--&&Y.test(e.charAt(t)););return t}var Yt=Tt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Jt=function e(t){var n,r=(t=null==t?qe:Jt.defaults(qe.Object(),t,Jt.pick(qe,Be))).Array,i=t.Date,Y=t.Error,de=t.Function,fe=t.Math,pe=t.Object,me=t.RegExp,ge=t.String,ye=t.TypeError,ve=r.prototype,be=de.prototype,we=pe.prototype,_e=t["__core-js_shared__"],Se=be.toString,xe=we.hasOwnProperty,Ee=0,Ae=(n=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Te=we.toString,Me=Se.call(pe),Ce=qe._,Pe=me("^"+Se.call(xe).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ke=Je?t.Buffer:void 0,Oe=t.Symbol,Ne=t.Uint8Array,Fe=ke?ke.allocUnsafe:void 0,Ve=Vt(pe.getPrototypeOf,pe),Ke=pe.create,He=we.propertyIsEnumerable,Ge=ve.splice,Ye=Oe?Oe.isConcatSpreadable:void 0,Xe=Oe?Oe.iterator:void 0,Ze=Oe?Oe.toStringTag:void 0,vt=function(){try{var e=es(pe,"defineProperty");return e({},"",{}),e}catch(e){}}(),Tt=t.clearTimeout!==qe.clearTimeout&&t.clearTimeout,Xt=i&&i.now!==qe.Date.now&&i.now,Zt=t.setTimeout!==qe.setTimeout&&t.setTimeout,Qt=fe.ceil,en=fe.floor,tn=pe.getOwnPropertySymbols,nn=ke?ke.isBuffer:void 0,rn=t.isFinite,sn=ve.join,on=Vt(pe.keys,pe),an=fe.max,ln=fe.min,un=i.now,cn=t.parseInt,hn=fe.random,dn=ve.reverse,fn=es(t,"DataView"),pn=es(t,"Map"),mn=es(t,"Promise"),gn=es(t,"Set"),yn=es(t,"WeakMap"),vn=es(pe,"create"),bn=yn&&new yn,wn={},_n=Ms(fn),Sn=Ms(pn),xn=Ms(mn),En=Ms(gn),An=Ms(yn),Tn=Oe?Oe.prototype:void 0,Mn=Tn?Tn.valueOf:void 0,Cn=Tn?Tn.toString:void 0;function Pn(e){if(Ko(e)&&!No(e)&&!(e instanceof Rn)){if(e instanceof In)return e;if(xe.call(e,"__wrapped__"))return Cs(e)}return new In(e)}var kn=function(){function e(){}return function(t){if(!zo(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function On(){}function In(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Rn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Dn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Fn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ln(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Fn;++t<n;)this.add(e[t])}function Bn(e){var t=this.__data__=new Dn(e);this.size=t.size}function jn(e,t){var n=No(e),r=!n&&Ro(e),i=!n&&!r&&Bo(e),s=!n&&!r&&!i&&Qo(e),o=n||r||i||s,a=o?Pt(e.length,ge):[],l=a.length;for(var u in e)!t&&!xe.call(e,u)||o&&("length"==u||i&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||as(u,l))||a.push(u);return a}function $n(e){var t=e.length;return t?e[Lr(0,t-1)]:void 0}function Un(e,t){return Es(vi(e),Jn(t,0,e.length))}function Vn(e){return Es(vi(e))}function Wn(e,t,n){(void 0!==n&&!ko(e[t],n)||void 0===n&&!(t in e))&&Gn(e,t,n)}function zn(e,t,n){var r=e[t];xe.call(e,t)&&ko(r,n)&&(void 0!==n||t in e)||Gn(e,t,n)}function Kn(e,t){for(var n=e.length;n--;)if(ko(e[n][0],t))return n;return-1}function Hn(e,t,n,r){return tr(e,(function(e,i,s){t(r,e,n(e),s)})),r}function qn(e,t){return e&&bi(t,_a(t),e)}function Gn(e,t,n){"__proto__"==t&&vt?vt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Yn(e,t){for(var n=-1,i=t.length,s=r(i),o=null==e;++n<i;)s[n]=o?void 0:ga(e,t[n]);return s}function Jn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Xn(e,t,n,r,i,s){var o,a=1&t,u=2&t,d=4&t;if(n&&(o=i?n(e,r,i,s):n(e)),void 0!==o)return o;if(!zo(e))return e;var S=No(e);if(S){if(o=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&xe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!a)return vi(e,o)}else{var R=rs(e),N=R==f||R==p;if(Bo(e))return di(e,a);if(R==y||R==l||N&&!i){if(o=u||N?{}:ss(e),!a)return u?function(e,t){return bi(e,ns(e),t)}(e,function(e,t){return e&&bi(t,Sa(t),e)}(o,e)):function(e,t){return bi(e,ts(e),t)}(e,qn(o,e))}else{if(!Ue[R])return i?e:{};o=function(e,t,n){var r=e.constructor;switch(t){case x:return fi(e);case c:case h:return new r(+e);case E:return function(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case A:case T:case M:case C:case P:case k:case"[object Uint8ClampedArray]":case O:case I:return pi(e,n);case m:return new r;case g:case w:return new r(e);case v:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case b:return new r;case _:return i=e,Mn?pe(Mn.call(i)):{}}var i}(e,R,a)}}s||(s=new Bn);var D=s.get(e);if(D)return D;s.set(e,o),Jo(e)?e.forEach((function(r){o.add(Xn(r,t,n,r,e,s))})):Ho(e)&&e.forEach((function(r,i){o.set(i,Xn(r,t,n,i,e,s))}));var F=S?void 0:(d?u?qi:Hi:u?Sa:_a)(e);return at(F||e,(function(r,i){F&&(r=e[i=r]),zn(o,i,Xn(r,t,n,i,e,s))})),o}function Zn(e,t,n){var r=n.length;if(null==e)return!r;for(e=pe(e);r--;){var i=n[r],s=t[i],o=e[i];if(void 0===o&&!(i in e)||!s(o))return!1}return!0}function Qn(e,t,n){if("function"!=typeof e)throw new ye(s);return ws((function(){e.apply(void 0,n)}),t)}function er(e,t,n,r){var i=-1,s=ht,o=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=ft(t,Ot(n))),r?(s=dt,o=!1):t.length>=200&&(s=Rt,o=!1,t=new Ln(t));e:for(;++i<a;){var c=e[i],h=null==n?c:n(c);if(c=r||0!==c?c:0,o&&h==h){for(var d=u;d--;)if(t[d]===h)continue e;l.push(c)}else s(t,h,r)||l.push(c)}return l}Pn.templateSettings={escape:$,evaluate:U,interpolate:V,variable:"",imports:{_:Pn}},Pn.prototype=On.prototype,Pn.prototype.constructor=Pn,In.prototype=kn(On.prototype),In.prototype.constructor=In,Rn.prototype=kn(On.prototype),Rn.prototype.constructor=Rn,Nn.prototype.clear=function(){this.__data__=vn?vn(null):{},this.size=0},Nn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Nn.prototype.get=function(e){var t=this.__data__;if(vn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return xe.call(t,e)?t[e]:void 0},Nn.prototype.has=function(e){var t=this.__data__;return vn?void 0!==t[e]:xe.call(t,e)},Nn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=vn&&void 0===t?"__lodash_hash_undefined__":t,this},Dn.prototype.clear=function(){this.__data__=[],this.size=0},Dn.prototype.delete=function(e){var t=this.__data__,n=Kn(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,!0)},Dn.prototype.get=function(e){var t=this.__data__,n=Kn(t,e);return n<0?void 0:t[n][1]},Dn.prototype.has=function(e){return Kn(this.__data__,e)>-1},Dn.prototype.set=function(e,t){var n=this.__data__,r=Kn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Fn.prototype.clear=function(){this.size=0,this.__data__={hash:new Nn,map:new(pn||Dn),string:new Nn}},Fn.prototype.delete=function(e){var t=Zi(this,e).delete(e);return this.size-=t?1:0,t},Fn.prototype.get=function(e){return Zi(this,e).get(e)},Fn.prototype.has=function(e){return Zi(this,e).has(e)},Fn.prototype.set=function(e,t){var n=Zi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ln.prototype.add=Ln.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Ln.prototype.has=function(e){return this.__data__.has(e)},Bn.prototype.clear=function(){this.__data__=new Dn,this.size=0},Bn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Bn.prototype.get=function(e){return this.__data__.get(e)},Bn.prototype.has=function(e){return this.__data__.has(e)},Bn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Dn){var r=n.__data__;if(!pn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Fn(r)}return n.set(e,t),this.size=n.size,this};var tr=Si(ur),nr=Si(cr,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function ir(e,t,n){for(var r=-1,i=e.length;++r<i;){var s=e[r],o=t(s);if(null!=o&&(void 0===a?o==o&&!Zo(o):n(o,a)))var a=o,l=s}return l}function sr(e,t){var n=[];return tr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function or(e,t,n,r,i){var s=-1,o=e.length;for(n||(n=os),i||(i=[]);++s<o;){var a=e[s];t>0&&n(a)?t>1?or(a,t-1,n,r,i):pt(i,a):r||(i[i.length]=a)}return i}var ar=xi(),lr=xi(!0);function ur(e,t){return e&&ar(e,t,_a)}function cr(e,t){return e&&lr(e,t,_a)}function hr(e,t){return ct(t,(function(t){return Uo(e[t])}))}function dr(e,t){for(var n=0,r=(t=li(t,e)).length;null!=e&&n<r;)e=e[Ts(t[n++])];return n&&n==r?e:void 0}function fr(e,t,n){var r=t(e);return No(e)?r:pt(r,n(e))}function pr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ze&&Ze in pe(e)?function(e){var t=xe.call(e,Ze),n=e[Ze];try{e[Ze]=void 0;var r=!0}catch(e){}var i=Te.call(e);r&&(t?e[Ze]=n:delete e[Ze]);return i}(e):function(e){return Te.call(e)}(e)}function mr(e,t){return e>t}function gr(e,t){return null!=e&&xe.call(e,t)}function yr(e,t){return null!=e&&t in pe(e)}function vr(e,t,n){for(var i=n?dt:ht,s=e[0].length,o=e.length,a=o,l=r(o),u=1/0,c=[];a--;){var h=e[a];a&&t&&(h=ft(h,Ot(t))),u=ln(h.length,u),l[a]=!n&&(t||s>=120&&h.length>=120)?new Ln(a&&h):void 0}h=e[0];var d=-1,f=l[0];e:for(;++d<s&&c.length<u;){var p=h[d],m=t?t(p):p;if(p=n||0!==p?p:0,!(f?Rt(f,m):i(c,m,n))){for(a=o;--a;){var g=l[a];if(!(g?Rt(g,m):i(e[a],m,n)))continue e}f&&f.push(m),c.push(p)}}return c}function br(e,t,n){var r=null==(e=gs(e,t=li(t,e)))?e:e[Ts(js(t))];return null==r?void 0:st(r,e,n)}function wr(e){return Ko(e)&&pr(e)==l}function _r(e,t,n,r,i){return e===t||(null==e||null==t||!Ko(e)&&!Ko(t)?e!=e&&t!=t:function(e,t,n,r,i,s){var o=No(e),a=No(t),f=o?u:rs(e),p=a?u:rs(t),S=(f=f==l?y:f)==y,A=(p=p==l?y:p)==y,T=f==p;if(T&&Bo(e)){if(!Bo(t))return!1;o=!0,S=!1}if(T&&!S)return s||(s=new Bn),o||Qo(e)?zi(e,t,n,r,i,s):function(e,t,n,r,i,s,o){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!s(new Ne(e),new Ne(t)));case c:case h:case g:return ko(+e,+t);case d:return e.name==t.name&&e.message==t.message;case v:case w:return e==t+"";case m:var a=Ut;case b:var l=1&r;if(a||(a=zt),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=2,o.set(e,t);var f=zi(a(e),a(t),r,i,s,o);return o.delete(e),f;case _:if(Mn)return Mn.call(e)==Mn.call(t)}return!1}(e,t,f,n,r,i,s);if(!(1&n)){var M=S&&xe.call(e,"__wrapped__"),C=A&&xe.call(t,"__wrapped__");if(M||C){var P=M?e.value():e,k=C?t.value():t;return s||(s=new Bn),i(P,k,n,r,s)}}if(!T)return!1;return s||(s=new Bn),function(e,t,n,r,i,s){var o=1&n,a=Hi(e),l=a.length,u=Hi(t).length;if(l!=u&&!o)return!1;var c=l;for(;c--;){var h=a[c];if(!(o?h in t:xe.call(t,h)))return!1}var d=s.get(e),f=s.get(t);if(d&&f)return d==t&&f==e;var p=!0;s.set(e,t),s.set(t,e);var m=o;for(;++c<l;){h=a[c];var g=e[h],y=t[h];if(r)var v=o?r(y,g,h,t,e,s):r(g,y,h,e,t,s);if(!(void 0===v?g===y||i(g,y,n,r,s):v)){p=!1;break}m||(m="constructor"==h)}if(p&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(p=!1)}return s.delete(e),s.delete(t),p}(e,t,n,r,i,s)}(e,t,n,r,_r,i))}function Sr(e,t,n,r){var i=n.length,s=i,o=!r;if(null==e)return!s;for(e=pe(e);i--;){var a=n[i];if(o&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<s;){var l=(a=n[i])[0],u=e[l],c=a[1];if(o&&a[2]){if(void 0===u&&!(l in e))return!1}else{var h=new Bn;if(r)var d=r(u,c,l,e,t,h);if(!(void 0===d?_r(c,u,3,r,h):d))return!1}}return!0}function xr(e){return!(!zo(e)||(t=e,Ae&&Ae in t))&&(Uo(e)?Pe:oe).test(Ms(e));var t}function Er(e){return"function"==typeof e?e:null==e?qa:"object"==typeof e?No(e)?kr(e[0],e[1]):Pr(e):nl(e)}function Ar(e){if(!ds(e))return on(e);var t=[];for(var n in pe(e))xe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Tr(e){if(!zo(e))return function(e){var t=[];if(null!=e)for(var n in pe(e))t.push(n);return t}(e);var t=ds(e),n=[];for(var r in e)("constructor"!=r||!t&&xe.call(e,r))&&n.push(r);return n}function Mr(e,t){return e<t}function Cr(e,t){var n=-1,i=Fo(e)?r(e.length):[];return tr(e,(function(e,r,s){i[++n]=t(e,r,s)})),i}function Pr(e){var t=Qi(e);return 1==t.length&&t[0][2]?ps(t[0][0],t[0][1]):function(n){return n===e||Sr(n,e,t)}}function kr(e,t){return us(e)&&fs(t)?ps(Ts(e),t):function(n){var r=ga(n,e);return void 0===r&&r===t?ya(n,e):_r(t,r,3)}}function Or(e,t,n,r,i){e!==t&&ar(t,(function(s,o){if(i||(i=new Bn),zo(s))!function(e,t,n,r,i,s,o){var a=vs(e,n),l=vs(t,n),u=o.get(l);if(u)return void Wn(e,n,u);var c=s?s(a,l,n+"",e,t,o):void 0,h=void 0===c;if(h){var d=No(l),f=!d&&Bo(l),p=!d&&!f&&Qo(l);c=l,d||f||p?No(a)?c=a:Lo(a)?c=vi(a):f?(h=!1,c=di(l,!0)):p?(h=!1,c=pi(l,!0)):c=[]:Go(l)||Ro(l)?(c=a,Ro(a)?c=aa(a):zo(a)&&!Uo(a)||(c=ss(l))):h=!1}h&&(o.set(l,c),i(c,l,r,s,o),o.delete(l));Wn(e,n,c)}(e,t,o,n,Or,r,i);else{var a=r?r(vs(e,o),s,o+"",e,t,i):void 0;void 0===a&&(a=s),Wn(e,o,a)}}),Sa)}function Ir(e,t){var n=e.length;if(n)return as(t+=t<0?n:0,n)?e[t]:void 0}function Rr(e,t,n){t=t.length?ft(t,(function(e){return No(e)?function(t){return dr(t,1===e.length?e[0]:e)}:e})):[qa];var r=-1;return t=ft(t,Ot(Xi())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Cr(e,(function(e,n,i){return{criteria:ft(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,s=t.criteria,o=i.length,a=n.length;for(;++r<o;){var l=mi(i[r],s[r]);if(l){if(r>=a)return l;var u=n[r];return l*("desc"==u?-1:1)}}return e.index-t.index}(e,t,n)}))}function Nr(e,t,n){for(var r=-1,i=t.length,s={};++r<i;){var o=t[r],a=dr(e,o);n(a,o)&&Vr(s,li(o,e),a)}return s}function Dr(e,t,n,r){var i=r?St:_t,s=-1,o=t.length,a=e;for(e===t&&(t=vi(t)),n&&(a=ft(e,Ot(n)));++s<o;)for(var l=0,u=t[s],c=n?n(u):u;(l=i(a,c,l,r))>-1;)a!==e&&Ge.call(a,l,1),Ge.call(e,l,1);return e}function Fr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==s){var s=i;as(i)?Ge.call(e,i,1):ei(e,i)}}return e}function Lr(e,t){return e+en(hn()*(t-e+1))}function Br(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=en(t/2))&&(e+=e)}while(t);return n}function jr(e,t){return _s(ms(e,t,qa),e+"")}function $r(e){return $n(ka(e))}function Ur(e,t){var n=ka(e);return Es(n,Jn(t,0,n.length))}function Vr(e,t,n,r){if(!zo(e))return e;for(var i=-1,s=(t=li(t,e)).length,o=s-1,a=e;null!=a&&++i<s;){var l=Ts(t[i]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=o){var c=a[l];void 0===(u=r?r(c,l,a):void 0)&&(u=zo(c)?c:as(t[i+1])?[]:{})}zn(a,l,u),a=a[l]}return e}var Wr=bn?function(e,t){return bn.set(e,t),e}:qa,zr=vt?function(e,t){return vt(e,"toString",{configurable:!0,enumerable:!1,value:za(t),writable:!0})}:qa;function Kr(e){return Es(ka(e))}function Hr(e,t,n){var i=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(n=n>s?s:n)<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var o=r(s);++i<s;)o[i]=e[i+t];return o}function qr(e,t){var n;return tr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Gr(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var s=r+i>>>1,o=e[s];null!==o&&!Zo(o)&&(n?o<=t:o<t)?r=s+1:i=s}return i}return Yr(e,t,qa,n)}function Yr(e,t,n,r){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var o=(t=n(t))!=t,a=null===t,l=Zo(t),u=void 0===t;i<s;){var c=en((i+s)/2),h=n(e[c]),d=void 0!==h,f=null===h,p=h==h,m=Zo(h);if(o)var g=r||p;else g=u?p&&(r||d):a?p&&d&&(r||!f):l?p&&d&&!f&&(r||!m):!f&&!m&&(r?h<=t:h<t);g?i=c+1:s=c}return ln(s,4294967294)}function Jr(e,t){for(var n=-1,r=e.length,i=0,s=[];++n<r;){var o=e[n],a=t?t(o):o;if(!n||!ko(a,l)){var l=a;s[i++]=0===o?0:o}}return s}function Xr(e){return"number"==typeof e?e:Zo(e)?NaN:+e}function Zr(e){if("string"==typeof e)return e;if(No(e))return ft(e,Zr)+"";if(Zo(e))return Cn?Cn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Qr(e,t,n){var r=-1,i=ht,s=e.length,o=!0,a=[],l=a;if(n)o=!1,i=dt;else if(s>=200){var u=t?null:Bi(e);if(u)return zt(u);o=!1,i=Rt,l=new Ln}else l=t?[]:a;e:for(;++r<s;){var c=e[r],h=t?t(c):c;if(c=n||0!==c?c:0,o&&h==h){for(var d=l.length;d--;)if(l[d]===h)continue e;t&&l.push(h),a.push(c)}else i(l,h,n)||(l!==a&&l.push(h),a.push(c))}return a}function ei(e,t){return null==(e=gs(e,t=li(t,e)))||delete e[Ts(js(t))]}function ti(e,t,n,r){return Vr(e,t,n(dr(e,t)),r)}function ni(e,t,n,r){for(var i=e.length,s=r?i:-1;(r?s--:++s<i)&&t(e[s],s,e););return n?Hr(e,r?0:s,r?s+1:i):Hr(e,r?s+1:0,r?i:s)}function ri(e,t){var n=e;return n instanceof Rn&&(n=n.value()),mt(t,(function(e,t){return t.func.apply(t.thisArg,pt([e],t.args))}),n)}function ii(e,t,n){var i=e.length;if(i<2)return i?Qr(e[0]):[];for(var s=-1,o=r(i);++s<i;)for(var a=e[s],l=-1;++l<i;)l!=s&&(o[s]=er(o[s]||a,e[l],t,n));return Qr(or(o,1),t,n)}function si(e,t,n){for(var r=-1,i=e.length,s=t.length,o={};++r<i;){var a=r<s?t[r]:void 0;n(o,e[r],a)}return o}function oi(e){return Lo(e)?e:[]}function ai(e){return"function"==typeof e?e:qa}function li(e,t){return No(e)?e:us(e,t)?[e]:As(la(e))}var ui=jr;function ci(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Hr(e,t,n)}var hi=Tt||function(e){return qe.clearTimeout(e)};function di(e,t){if(t)return e.slice();var n=e.length,r=Fe?Fe(n):new e.constructor(n);return e.copy(r),r}function fi(e){var t=new e.constructor(e.byteLength);return new Ne(t).set(new Ne(e)),t}function pi(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function mi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,s=Zo(e),o=void 0!==t,a=null===t,l=t==t,u=Zo(t);if(!a&&!u&&!s&&e>t||s&&o&&l&&!a&&!u||r&&o&&l||!n&&l||!i)return 1;if(!r&&!s&&!u&&e<t||u&&n&&i&&!r&&!s||a&&n&&i||!o&&i||!l)return-1}return 0}function gi(e,t,n,i){for(var s=-1,o=e.length,a=n.length,l=-1,u=t.length,c=an(o-a,0),h=r(u+c),d=!i;++l<u;)h[l]=t[l];for(;++s<a;)(d||s<o)&&(h[n[s]]=e[s]);for(;c--;)h[l++]=e[s++];return h}function yi(e,t,n,i){for(var s=-1,o=e.length,a=-1,l=n.length,u=-1,c=t.length,h=an(o-l,0),d=r(h+c),f=!i;++s<h;)d[s]=e[s];for(var p=s;++u<c;)d[p+u]=t[u];for(;++a<l;)(f||s<o)&&(d[p+n[a]]=e[s++]);return d}function vi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function bi(e,t,n,r){var i=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var a=t[s],l=r?r(n[a],e[a],a,n,e):void 0;void 0===l&&(l=e[a]),i?Gn(n,a,l):zn(n,a,l)}return n}function wi(e,t){return function(n,r){var i=No(n)?ot:Hn,s=t?t():{};return i(n,e,Xi(r,2),s)}}function _i(e){return jr((function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(i--,s):void 0,o&&ls(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),t=pe(t);++r<i;){var a=n[r];a&&e(t,a,r,s)}return t}))}function Si(e,t){return function(n,r){if(null==n)return n;if(!Fo(n))return e(n,r);for(var i=n.length,s=t?i:-1,o=pe(n);(t?s--:++s<i)&&!1!==r(o[s],s,o););return n}}function xi(e){return function(t,n,r){for(var i=-1,s=pe(t),o=r(t),a=o.length;a--;){var l=o[e?a:++i];if(!1===n(s[l],l,s))break}return t}}function Ei(e){return function(t){var n=$t(t=la(t))?qt(t):void 0,r=n?n[0]:t.charAt(0),i=n?ci(n,1).join(""):t.slice(1);return r[e]()+i}}function Ai(e){return function(t){return mt(Ua(Ra(t).replace(Ie,"")),e,"")}}function Ti(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=kn(e.prototype),r=e.apply(n,t);return zo(r)?r:n}}function Mi(e){return function(t,n,r){var i=pe(t);if(!Fo(t)){var s=Xi(n,3);t=_a(t),n=function(e){return s(i[e],e,i)}}var o=e(t,n,r);return o>-1?i[s?t[o]:o]:void 0}}function Ci(e){return Ki((function(t){var n=t.length,r=n,i=In.prototype.thru;for(e&&t.reverse();r--;){var o=t[r];if("function"!=typeof o)throw new ye(s);if(i&&!a&&"wrapper"==Yi(o))var a=new In([],!0)}for(r=a?r:n;++r<n;){var l=Yi(o=t[r]),u="wrapper"==l?Gi(o):void 0;a=u&&cs(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?a[Yi(u[0])].apply(a,u[3]):1==o.length&&cs(o)?a[l]():a.thru(o)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&No(r))return a.plant(r).value();for(var i=0,s=n?t[i].apply(this,e):r;++i<n;)s=t[i].call(this,s);return s}}))}function Pi(e,t,n,i,s,o,a,l,u,c){var h=128&t,d=1&t,f=2&t,p=24&t,m=512&t,g=f?void 0:Ti(e);return function y(){for(var v=arguments.length,b=r(v),w=v;w--;)b[w]=arguments[w];if(p)var _=Ji(y),S=Ft(b,_);if(i&&(b=gi(b,i,s,p)),o&&(b=yi(b,o,a,p)),v-=S,p&&v<c){var x=Wt(b,_);return Fi(e,t,Pi,y.placeholder,n,b,x,l,u,c-v)}var E=d?n:this,A=f?E[e]:e;return v=b.length,l?b=ys(b,l):m&&v>1&&b.reverse(),h&&u<v&&(b.length=u),this&&this!==qe&&this instanceof y&&(A=g||Ti(A)),A.apply(E,b)}}function ki(e,t){return function(n,r){return function(e,t,n,r){return ur(e,(function(e,i,s){t(r,n(e),i,s)})),r}(n,e,t(r),{})}}function Oi(e,t){return function(n,r){var i;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Zr(n),r=Zr(r)):(n=Xr(n),r=Xr(r)),i=e(n,r)}return i}}function Ii(e){return Ki((function(t){return t=ft(t,Ot(Xi())),jr((function(n){var r=this;return e(t,(function(e){return st(e,r,n)}))}))}))}function Ri(e,t){var n=(t=void 0===t?" ":Zr(t)).length;if(n<2)return n?Br(t,e):t;var r=Br(t,Qt(e/Ht(t)));return $t(t)?ci(qt(r),0,e).join(""):r.slice(0,e)}function Ni(e){return function(t,n,i){return i&&"number"!=typeof i&&ls(t,n,i)&&(n=i=void 0),t=ra(t),void 0===n?(n=t,t=0):n=ra(n),function(e,t,n,i){for(var s=-1,o=an(Qt((t-e)/(n||1)),0),a=r(o);o--;)a[i?o:++s]=e,e+=n;return a}(t,n,i=void 0===i?t<n?1:-1:ra(i),e)}}function Di(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=oa(t),n=oa(n)),e(t,n)}}function Fi(e,t,n,r,i,s,o,a,l,u){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);var h=[e,t,i,c?s:void 0,c?o:void 0,c?void 0:s,c?void 0:o,a,l,u],d=n.apply(void 0,h);return cs(e)&&bs(d,h),d.placeholder=r,Ss(d,e,t)}function Li(e){var t=fe[e];return function(e,n){if(e=oa(e),(n=null==n?0:ln(ia(n),292))&&rn(e)){var r=(la(e)+"e").split("e");return+((r=(la(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Bi=gn&&1/zt(new gn([,-0]))[1]==1/0?function(e){return new gn(e)}:Za;function ji(e){return function(t){var n=rs(t);return n==m?Ut(t):n==b?Kt(t):function(e,t){return ft(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function $i(e,t,n,i,a,l,u,c){var h=2&t;if(!h&&"function"!=typeof e)throw new ye(s);var d=i?i.length:0;if(d||(t&=-97,i=a=void 0),u=void 0===u?u:an(ia(u),0),c=void 0===c?c:ia(c),d-=a?a.length:0,64&t){var f=i,p=a;i=a=void 0}var m=h?void 0:Gi(e),g=[e,t,n,i,a,f,p,l,u,c];if(m&&function(e,t){var n=e[1],r=t[1],i=n|r,s=i<131,a=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!s&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?gi(u,l,t[4]):l,e[4]=u?Wt(e[3],o):t[4]}(l=t[5])&&(u=e[5],e[5]=u?yi(u,l,t[6]):l,e[6]=u?Wt(e[5],o):t[6]);(l=t[7])&&(e[7]=l);128&r&&(e[8]=null==e[8]?t[8]:ln(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(g,m),e=g[0],t=g[1],n=g[2],i=g[3],a=g[4],!(c=g[9]=void 0===g[9]?h?0:e.length:an(g[9]-d,0))&&24&t&&(t&=-25),t&&1!=t)y=8==t||16==t?function(e,t,n){var i=Ti(e);return function s(){for(var o=arguments.length,a=r(o),l=o,u=Ji(s);l--;)a[l]=arguments[l];var c=o<3&&a[0]!==u&&a[o-1]!==u?[]:Wt(a,u);if((o-=c.length)<n)return Fi(e,t,Pi,s.placeholder,void 0,a,c,void 0,void 0,n-o);var h=this&&this!==qe&&this instanceof s?i:e;return st(h,this,a)}}(e,t,c):32!=t&&33!=t||a.length?Pi.apply(void 0,g):function(e,t,n,i){var s=1&t,o=Ti(e);return function t(){for(var a=-1,l=arguments.length,u=-1,c=i.length,h=r(c+l),d=this&&this!==qe&&this instanceof t?o:e;++u<c;)h[u]=i[u];for(;l--;)h[u++]=arguments[++a];return st(d,s?n:this,h)}}(e,t,n,i);else var y=function(e,t,n){var r=1&t,i=Ti(e);return function t(){var s=this&&this!==qe&&this instanceof t?i:e;return s.apply(r?n:this,arguments)}}(e,t,n);return Ss((m?Wr:bs)(y,g),e,t)}function Ui(e,t,n,r){return void 0===e||ko(e,we[n])&&!xe.call(r,n)?t:e}function Vi(e,t,n,r,i,s){return zo(e)&&zo(t)&&(s.set(t,e),Or(e,t,void 0,Vi,s),s.delete(t)),e}function Wi(e){return Go(e)?void 0:e}function zi(e,t,n,r,i,s){var o=1&n,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var u=s.get(e),c=s.get(t);if(u&&c)return u==t&&c==e;var h=-1,d=!0,f=2&n?new Ln:void 0;for(s.set(e,t),s.set(t,e);++h<a;){var p=e[h],m=t[h];if(r)var g=o?r(m,p,h,t,e,s):r(p,m,h,e,t,s);if(void 0!==g){if(g)continue;d=!1;break}if(f){if(!yt(t,(function(e,t){if(!Rt(f,t)&&(p===e||i(p,e,n,r,s)))return f.push(t)}))){d=!1;break}}else if(p!==m&&!i(p,m,n,r,s)){d=!1;break}}return s.delete(e),s.delete(t),d}function Ki(e){return _s(ms(e,void 0,Ns),e+"")}function Hi(e){return fr(e,_a,ts)}function qi(e){return fr(e,Sa,ns)}var Gi=bn?function(e){return bn.get(e)}:Za;function Yi(e){for(var t=e.name+"",n=wn[t],r=xe.call(wn,t)?n.length:0;r--;){var i=n[r],s=i.func;if(null==s||s==e)return i.name}return t}function Ji(e){return(xe.call(Pn,"placeholder")?Pn:e).placeholder}function Xi(){var e=Pn.iteratee||Ga;return e=e===Ga?Er:e,arguments.length?e(arguments[0],arguments[1]):e}function Zi(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Qi(e){for(var t=_a(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,fs(i)]}return t}function es(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return xr(n)?n:void 0}var ts=tn?function(e){return null==e?[]:(e=pe(e),ct(tn(e),(function(t){return He.call(e,t)})))}:sl,ns=tn?function(e){for(var t=[];e;)pt(t,ts(e)),e=Ve(e);return t}:sl,rs=pr;function is(e,t,n){for(var r=-1,i=(t=li(t,e)).length,s=!1;++r<i;){var o=Ts(t[r]);if(!(s=null!=e&&n(e,o)))break;e=e[o]}return s||++r!=i?s:!!(i=null==e?0:e.length)&&Wo(i)&&as(o,i)&&(No(e)||Ro(e))}function ss(e){return"function"!=typeof e.constructor||ds(e)?{}:kn(Ve(e))}function os(e){return No(e)||Ro(e)||!!(Ye&&e&&e[Ye])}function as(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&le.test(e))&&e>-1&&e%1==0&&e<t}function ls(e,t,n){if(!zo(n))return!1;var r=typeof t;return!!("number"==r?Fo(n)&&as(t,n.length):"string"==r&&t in n)&&ko(n[t],e)}function us(e,t){if(No(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Zo(e))||(z.test(e)||!W.test(e)||null!=t&&e in pe(t))}function cs(e){var t=Yi(e),n=Pn[t];if("function"!=typeof n||!(t in Rn.prototype))return!1;if(e===n)return!0;var r=Gi(n);return!!r&&e===r[0]}(fn&&rs(new fn(new ArrayBuffer(1)))!=E||pn&&rs(new pn)!=m||mn&&"[object Promise]"!=rs(mn.resolve())||gn&&rs(new gn)!=b||yn&&rs(new yn)!=S)&&(rs=function(e){var t=pr(e),n=t==y?e.constructor:void 0,r=n?Ms(n):"";if(r)switch(r){case _n:return E;case Sn:return m;case xn:return"[object Promise]";case En:return b;case An:return S}return t});var hs=_e?Uo:ol;function ds(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||we)}function fs(e){return e==e&&!zo(e)}function ps(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in pe(n)))}}function ms(e,t,n){return t=an(void 0===t?e.length-1:t,0),function(){for(var i=arguments,s=-1,o=an(i.length-t,0),a=r(o);++s<o;)a[s]=i[t+s];s=-1;for(var l=r(t+1);++s<t;)l[s]=i[s];return l[t]=n(a),st(e,this,l)}}function gs(e,t){return t.length<2?e:dr(e,Hr(t,0,-1))}function ys(e,t){for(var n=e.length,r=ln(t.length,n),i=vi(e);r--;){var s=t[r];e[r]=as(s,n)?i[s]:void 0}return e}function vs(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var bs=xs(Wr),ws=Zt||function(e,t){return qe.setTimeout(e,t)},_s=xs(zr);function Ss(e,t,n){var r=t+"";return _s(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(J,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return at(a,(function(n){var r="_."+n[0];t&n[1]&&!ht(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(X);return t?t[1].split(Z):[]}(r),n)))}function xs(e){var t=0,n=0;return function(){var r=un(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Es(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var s=Lr(n,i),o=e[s];e[s]=e[n],e[n]=o}return e.length=t,e}var As=function(e){var t=Eo(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(K,(function(e,n,r,i){t.push(r?i.replace(te,"$1"):n||e)})),t}));function Ts(e){if("string"==typeof e||Zo(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ms(e){if(null!=e){try{return Se.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Cs(e){if(e instanceof Rn)return e.clone();var t=new In(e.__wrapped__,e.__chain__);return t.__actions__=vi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ps=jr((function(e,t){return Lo(e)?er(e,or(t,1,Lo,!0)):[]})),ks=jr((function(e,t){var n=js(t);return Lo(n)&&(n=void 0),Lo(e)?er(e,or(t,1,Lo,!0),Xi(n,2)):[]})),Os=jr((function(e,t){var n=js(t);return Lo(n)&&(n=void 0),Lo(e)?er(e,or(t,1,Lo,!0),void 0,n):[]}));function Is(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ia(n);return i<0&&(i=an(r+i,0)),wt(e,Xi(t,3),i)}function Rs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=ia(n),i=n<0?an(r+i,0):ln(i,r-1)),wt(e,Xi(t,3),i,!0)}function Ns(e){return(null==e?0:e.length)?or(e,1):[]}function Ds(e){return e&&e.length?e[0]:void 0}var Fs=jr((function(e){var t=ft(e,oi);return t.length&&t[0]===e[0]?vr(t):[]})),Ls=jr((function(e){var t=js(e),n=ft(e,oi);return t===js(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?vr(n,Xi(t,2)):[]})),Bs=jr((function(e){var t=js(e),n=ft(e,oi);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?vr(n,void 0,t):[]}));function js(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var $s=jr(Us);function Us(e,t){return e&&e.length&&t&&t.length?Dr(e,t):e}var Vs=Ki((function(e,t){var n=null==e?0:e.length,r=Yn(e,t);return Fr(e,ft(t,(function(e){return as(e,n)?+e:e})).sort(mi)),r}));function Ws(e){return null==e?e:dn.call(e)}var zs=jr((function(e){return Qr(or(e,1,Lo,!0))})),Ks=jr((function(e){var t=js(e);return Lo(t)&&(t=void 0),Qr(or(e,1,Lo,!0),Xi(t,2))})),Hs=jr((function(e){var t=js(e);return t="function"==typeof t?t:void 0,Qr(or(e,1,Lo,!0),void 0,t)}));function qs(e){if(!e||!e.length)return[];var t=0;return e=ct(e,(function(e){if(Lo(e))return t=an(e.length,t),!0})),Pt(t,(function(t){return ft(e,At(t))}))}function Gs(e,t){if(!e||!e.length)return[];var n=qs(e);return null==t?n:ft(n,(function(e){return st(t,void 0,e)}))}var Ys=jr((function(e,t){return Lo(e)?er(e,t):[]})),Js=jr((function(e){return ii(ct(e,Lo))})),Xs=jr((function(e){var t=js(e);return Lo(t)&&(t=void 0),ii(ct(e,Lo),Xi(t,2))})),Zs=jr((function(e){var t=js(e);return t="function"==typeof t?t:void 0,ii(ct(e,Lo),void 0,t)})),Qs=jr(qs);var eo=jr((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Gs(e,n)}));function to(e){var t=Pn(e);return t.__chain__=!0,t}function no(e,t){return t(e)}var ro=Ki((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Yn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Rn&&as(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:no,args:[i],thisArg:void 0}),new In(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var io=wi((function(e,t,n){xe.call(e,n)?++e[n]:Gn(e,n,1)}));var so=Mi(Is),oo=Mi(Rs);function ao(e,t){return(No(e)?at:tr)(e,Xi(t,3))}function lo(e,t){return(No(e)?lt:nr)(e,Xi(t,3))}var uo=wi((function(e,t,n){xe.call(e,n)?e[n].push(t):Gn(e,n,[t])}));var co=jr((function(e,t,n){var i=-1,s="function"==typeof t,o=Fo(e)?r(e.length):[];return tr(e,(function(e){o[++i]=s?st(t,e,n):br(e,t,n)})),o})),ho=wi((function(e,t,n){Gn(e,n,t)}));function fo(e,t){return(No(e)?ft:Cr)(e,Xi(t,3))}var po=wi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var mo=jr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ls(e,t[0],t[1])?t=[]:n>2&&ls(t[0],t[1],t[2])&&(t=[t[0]]),Rr(e,or(t,1),[])})),go=Xt||function(){return qe.Date.now()};function yo(e,t,n){return t=n?void 0:t,$i(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function vo(e,t){var n;if("function"!=typeof t)throw new ye(s);return e=ia(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var bo=jr((function(e,t,n){var r=1;if(n.length){var i=Wt(n,Ji(bo));r|=32}return $i(e,r,t,n,i)})),wo=jr((function(e,t,n){var r=3;if(n.length){var i=Wt(n,Ji(wo));r|=32}return $i(t,r,e,n,i)}));function _o(e,t,n){var r,i,o,a,l,u,c=0,h=!1,d=!1,f=!0;if("function"!=typeof e)throw new ye(s);function p(t){var n=r,s=i;return r=i=void 0,c=t,a=e.apply(s,n)}function m(e){return c=e,l=ws(y,t),h?p(e):a}function g(e){var n=e-u;return void 0===u||n>=t||n<0||d&&e-c>=o}function y(){var e=go();if(g(e))return v(e);l=ws(y,function(e){var n=t-(e-u);return d?ln(n,o-(e-c)):n}(e))}function v(e){return l=void 0,f&&r?p(e):(r=i=void 0,a)}function b(){var e=go(),n=g(e);if(r=arguments,i=this,u=e,n){if(void 0===l)return m(u);if(d)return hi(l),l=ws(y,t),p(u)}return void 0===l&&(l=ws(y,t)),a}return t=oa(t)||0,zo(n)&&(h=!!n.leading,o=(d="maxWait"in n)?an(oa(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),b.cancel=function(){void 0!==l&&hi(l),c=0,r=u=i=l=void 0},b.flush=function(){return void 0===l?a:v(go())},b}var So=jr((function(e,t){return Qn(e,1,t)})),xo=jr((function(e,t,n){return Qn(e,oa(t)||0,n)}));function Eo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ye(s);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(Eo.Cache||Fn),n}function Ao(e){if("function"!=typeof e)throw new ye(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Eo.Cache=Fn;var To=ui((function(e,t){var n=(t=1==t.length&&No(t[0])?ft(t[0],Ot(Xi())):ft(or(t,1),Ot(Xi()))).length;return jr((function(r){for(var i=-1,s=ln(r.length,n);++i<s;)r[i]=t[i].call(this,r[i]);return st(e,this,r)}))})),Mo=jr((function(e,t){return $i(e,32,void 0,t,Wt(t,Ji(Mo)))})),Co=jr((function(e,t){return $i(e,64,void 0,t,Wt(t,Ji(Co)))})),Po=Ki((function(e,t){return $i(e,256,void 0,void 0,void 0,t)}));function ko(e,t){return e===t||e!=e&&t!=t}var Oo=Di(mr),Io=Di((function(e,t){return e>=t})),Ro=wr(function(){return arguments}())?wr:function(e){return Ko(e)&&xe.call(e,"callee")&&!He.call(e,"callee")},No=r.isArray,Do=Qe?Ot(Qe):function(e){return Ko(e)&&pr(e)==x};function Fo(e){return null!=e&&Wo(e.length)&&!Uo(e)}function Lo(e){return Ko(e)&&Fo(e)}var Bo=nn||ol,jo=et?Ot(et):function(e){return Ko(e)&&pr(e)==h};function $o(e){if(!Ko(e))return!1;var t=pr(e);return t==d||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Go(e)}function Uo(e){if(!zo(e))return!1;var t=pr(e);return t==f||t==p||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Vo(e){return"number"==typeof e&&e==ia(e)}function Wo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function zo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ko(e){return null!=e&&"object"==typeof e}var Ho=tt?Ot(tt):function(e){return Ko(e)&&rs(e)==m};function qo(e){return"number"==typeof e||Ko(e)&&pr(e)==g}function Go(e){if(!Ko(e)||pr(e)!=y)return!1;var t=Ve(e);if(null===t)return!0;var n=xe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Se.call(n)==Me}var Yo=nt?Ot(nt):function(e){return Ko(e)&&pr(e)==v};var Jo=rt?Ot(rt):function(e){return Ko(e)&&rs(e)==b};function Xo(e){return"string"==typeof e||!No(e)&&Ko(e)&&pr(e)==w}function Zo(e){return"symbol"==typeof e||Ko(e)&&pr(e)==_}var Qo=it?Ot(it):function(e){return Ko(e)&&Wo(e.length)&&!!$e[pr(e)]};var ea=Di(Mr),ta=Di((function(e,t){return e<=t}));function na(e){if(!e)return[];if(Fo(e))return Xo(e)?qt(e):vi(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=rs(e);return(t==m?Ut:t==b?zt:ka)(e)}function ra(e){return e?(e=oa(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ia(e){var t=ra(e),n=t%1;return t==t?n?t-n:t:0}function sa(e){return e?Jn(ia(e),0,4294967295):0}function oa(e){if("number"==typeof e)return e;if(Zo(e))return NaN;if(zo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=zo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=kt(e);var n=se.test(e);return n||ae.test(e)?ze(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function aa(e){return bi(e,Sa(e))}function la(e){return null==e?"":Zr(e)}var ua=_i((function(e,t){if(ds(t)||Fo(t))bi(t,_a(t),e);else for(var n in t)xe.call(t,n)&&zn(e,n,t[n])})),ca=_i((function(e,t){bi(t,Sa(t),e)})),ha=_i((function(e,t,n,r){bi(t,Sa(t),e,r)})),da=_i((function(e,t,n,r){bi(t,_a(t),e,r)})),fa=Ki(Yn);var pa=jr((function(e,t){e=pe(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&ls(t[0],t[1],i)&&(r=1);++n<r;)for(var s=t[n],o=Sa(s),a=-1,l=o.length;++a<l;){var u=o[a],c=e[u];(void 0===c||ko(c,we[u])&&!xe.call(e,u))&&(e[u]=s[u])}return e})),ma=jr((function(e){return e.push(void 0,Vi),st(Ea,void 0,e)}));function ga(e,t,n){var r=null==e?void 0:dr(e,t);return void 0===r?n:r}function ya(e,t){return null!=e&&is(e,t,yr)}var va=ki((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Te.call(t)),e[t]=n}),za(qa)),ba=ki((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Te.call(t)),xe.call(e,t)?e[t].push(n):e[t]=[n]}),Xi),wa=jr(br);function _a(e){return Fo(e)?jn(e):Ar(e)}function Sa(e){return Fo(e)?jn(e,!0):Tr(e)}var xa=_i((function(e,t,n){Or(e,t,n)})),Ea=_i((function(e,t,n,r){Or(e,t,n,r)})),Aa=Ki((function(e,t){var n={};if(null==e)return n;var r=!1;t=ft(t,(function(t){return t=li(t,e),r||(r=t.length>1),t})),bi(e,qi(e),n),r&&(n=Xn(n,7,Wi));for(var i=t.length;i--;)ei(n,t[i]);return n}));var Ta=Ki((function(e,t){return null==e?{}:function(e,t){return Nr(e,t,(function(t,n){return ya(e,n)}))}(e,t)}));function Ma(e,t){if(null==e)return{};var n=ft(qi(e),(function(e){return[e]}));return t=Xi(t),Nr(e,n,(function(e,n){return t(e,n[0])}))}var Ca=ji(_a),Pa=ji(Sa);function ka(e){return null==e?[]:It(e,_a(e))}var Oa=Ai((function(e,t,n){return t=t.toLowerCase(),e+(n?Ia(t):t)}));function Ia(e){return $a(la(e).toLowerCase())}function Ra(e){return(e=la(e))&&e.replace(ue,Lt).replace(Re,"")}var Na=Ai((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Da=Ai((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Fa=Ei("toLowerCase");var La=Ai((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ba=Ai((function(e,t,n){return e+(n?" ":"")+$a(t)}));var ja=Ai((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),$a=Ei("toUpperCase");function Ua(e,t,n){return e=la(e),void 0===(t=n?void 0:t)?function(e){return Le.test(e)}(e)?function(e){return e.match(De)||[]}(e):function(e){return e.match(Q)||[]}(e):e.match(t)||[]}var Va=jr((function(e,t){try{return st(e,void 0,t)}catch(e){return $o(e)?e:new Y(e)}})),Wa=Ki((function(e,t){return at(t,(function(t){t=Ts(t),Gn(e,t,bo(e[t],e))})),e}));function za(e){return function(){return e}}var Ka=Ci(),Ha=Ci(!0);function qa(e){return e}function Ga(e){return Er("function"==typeof e?e:Xn(e,1))}var Ya=jr((function(e,t){return function(n){return br(n,e,t)}})),Ja=jr((function(e,t){return function(n){return br(e,n,t)}}));function Xa(e,t,n){var r=_a(t),i=hr(t,r);null!=n||zo(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=hr(t,_a(t)));var s=!(zo(n)&&"chain"in n&&!n.chain),o=Uo(e);return at(i,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(s||t){var n=e(this.__wrapped__),i=n.__actions__=vi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,pt([this.value()],arguments))})})),e}function Za(){}var Qa=Ii(ft),el=Ii(ut),tl=Ii(yt);function nl(e){return us(e)?At(Ts(e)):function(e){return function(t){return dr(t,e)}}(e)}var rl=Ni(),il=Ni(!0);function sl(){return[]}function ol(){return!1}var al=Oi((function(e,t){return e+t}),0),ll=Li("ceil"),ul=Oi((function(e,t){return e/t}),1),cl=Li("floor");var hl,dl=Oi((function(e,t){return e*t}),1),fl=Li("round"),pl=Oi((function(e,t){return e-t}),0);return Pn.after=function(e,t){if("function"!=typeof t)throw new ye(s);return e=ia(e),function(){if(--e<1)return t.apply(this,arguments)}},Pn.ary=yo,Pn.assign=ua,Pn.assignIn=ca,Pn.assignInWith=ha,Pn.assignWith=da,Pn.at=fa,Pn.before=vo,Pn.bind=bo,Pn.bindAll=Wa,Pn.bindKey=wo,Pn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return No(e)?e:[e]},Pn.chain=to,Pn.chunk=function(e,t,n){t=(n?ls(e,t,n):void 0===t)?1:an(ia(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var s=0,o=0,a=r(Qt(i/t));s<i;)a[o++]=Hr(e,s,s+=t);return a},Pn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var s=e[t];s&&(i[r++]=s)}return i},Pn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return pt(No(n)?vi(n):[n],or(t,1))},Pn.cond=function(e){var t=null==e?0:e.length,n=Xi();return e=t?ft(e,(function(e){if("function"!=typeof e[1])throw new ye(s);return[n(e[0]),e[1]]})):[],jr((function(n){for(var r=-1;++r<t;){var i=e[r];if(st(i[0],this,n))return st(i[1],this,n)}}))},Pn.conforms=function(e){return function(e){var t=_a(e);return function(n){return Zn(n,e,t)}}(Xn(e,1))},Pn.constant=za,Pn.countBy=io,Pn.create=function(e,t){var n=kn(e);return null==t?n:qn(n,t)},Pn.curry=function e(t,n,r){var i=$i(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},Pn.curryRight=function e(t,n,r){var i=$i(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},Pn.debounce=_o,Pn.defaults=pa,Pn.defaultsDeep=ma,Pn.defer=So,Pn.delay=xo,Pn.difference=Ps,Pn.differenceBy=ks,Pn.differenceWith=Os,Pn.drop=function(e,t,n){var r=null==e?0:e.length;return r?Hr(e,(t=n||void 0===t?1:ia(t))<0?0:t,r):[]},Pn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Hr(e,0,(t=r-(t=n||void 0===t?1:ia(t)))<0?0:t):[]},Pn.dropRightWhile=function(e,t){return e&&e.length?ni(e,Xi(t,3),!0,!0):[]},Pn.dropWhile=function(e,t){return e&&e.length?ni(e,Xi(t,3),!0):[]},Pn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&ls(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ia(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:ia(r))<0&&(r+=i),r=n>r?0:sa(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Pn.filter=function(e,t){return(No(e)?ct:sr)(e,Xi(t,3))},Pn.flatMap=function(e,t){return or(fo(e,t),1)},Pn.flatMapDeep=function(e,t){return or(fo(e,t),1/0)},Pn.flatMapDepth=function(e,t,n){return n=void 0===n?1:ia(n),or(fo(e,t),n)},Pn.flatten=Ns,Pn.flattenDeep=function(e){return(null==e?0:e.length)?or(e,1/0):[]},Pn.flattenDepth=function(e,t){return(null==e?0:e.length)?or(e,t=void 0===t?1:ia(t)):[]},Pn.flip=function(e){return $i(e,512)},Pn.flow=Ka,Pn.flowRight=Ha,Pn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Pn.functions=function(e){return null==e?[]:hr(e,_a(e))},Pn.functionsIn=function(e){return null==e?[]:hr(e,Sa(e))},Pn.groupBy=uo,Pn.initial=function(e){return(null==e?0:e.length)?Hr(e,0,-1):[]},Pn.intersection=Fs,Pn.intersectionBy=Ls,Pn.intersectionWith=Bs,Pn.invert=va,Pn.invertBy=ba,Pn.invokeMap=co,Pn.iteratee=Ga,Pn.keyBy=ho,Pn.keys=_a,Pn.keysIn=Sa,Pn.map=fo,Pn.mapKeys=function(e,t){var n={};return t=Xi(t,3),ur(e,(function(e,r,i){Gn(n,t(e,r,i),e)})),n},Pn.mapValues=function(e,t){var n={};return t=Xi(t,3),ur(e,(function(e,r,i){Gn(n,r,t(e,r,i))})),n},Pn.matches=function(e){return Pr(Xn(e,1))},Pn.matchesProperty=function(e,t){return kr(e,Xn(t,1))},Pn.memoize=Eo,Pn.merge=xa,Pn.mergeWith=Ea,Pn.method=Ya,Pn.methodOf=Ja,Pn.mixin=Xa,Pn.negate=Ao,Pn.nthArg=function(e){return e=ia(e),jr((function(t){return Ir(t,e)}))},Pn.omit=Aa,Pn.omitBy=function(e,t){return Ma(e,Ao(Xi(t)))},Pn.once=function(e){return vo(2,e)},Pn.orderBy=function(e,t,n,r){return null==e?[]:(No(t)||(t=null==t?[]:[t]),No(n=r?void 0:n)||(n=null==n?[]:[n]),Rr(e,t,n))},Pn.over=Qa,Pn.overArgs=To,Pn.overEvery=el,Pn.overSome=tl,Pn.partial=Mo,Pn.partialRight=Co,Pn.partition=po,Pn.pick=Ta,Pn.pickBy=Ma,Pn.property=nl,Pn.propertyOf=function(e){return function(t){return null==e?void 0:dr(e,t)}},Pn.pull=$s,Pn.pullAll=Us,Pn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Dr(e,t,Xi(n,2)):e},Pn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Dr(e,t,void 0,n):e},Pn.pullAt=Vs,Pn.range=rl,Pn.rangeRight=il,Pn.rearg=Po,Pn.reject=function(e,t){return(No(e)?ct:sr)(e,Ao(Xi(t,3)))},Pn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],s=e.length;for(t=Xi(t,3);++r<s;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return Fr(e,i),n},Pn.rest=function(e,t){if("function"!=typeof e)throw new ye(s);return jr(e,t=void 0===t?t:ia(t))},Pn.reverse=Ws,Pn.sampleSize=function(e,t,n){return t=(n?ls(e,t,n):void 0===t)?1:ia(t),(No(e)?Un:Ur)(e,t)},Pn.set=function(e,t,n){return null==e?e:Vr(e,t,n)},Pn.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Vr(e,t,n,r)},Pn.shuffle=function(e){return(No(e)?Vn:Kr)(e)},Pn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ls(e,t,n)?(t=0,n=r):(t=null==t?0:ia(t),n=void 0===n?r:ia(n)),Hr(e,t,n)):[]},Pn.sortBy=mo,Pn.sortedUniq=function(e){return e&&e.length?Jr(e):[]},Pn.sortedUniqBy=function(e,t){return e&&e.length?Jr(e,Xi(t,2)):[]},Pn.split=function(e,t,n){return n&&"number"!=typeof n&&ls(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=la(e))&&("string"==typeof t||null!=t&&!Yo(t))&&!(t=Zr(t))&&$t(e)?ci(qt(e),0,n):e.split(t,n):[]},Pn.spread=function(e,t){if("function"!=typeof e)throw new ye(s);return t=null==t?0:an(ia(t),0),jr((function(n){var r=n[t],i=ci(n,0,t);return r&&pt(i,r),st(e,this,i)}))},Pn.tail=function(e){var t=null==e?0:e.length;return t?Hr(e,1,t):[]},Pn.take=function(e,t,n){return e&&e.length?Hr(e,0,(t=n||void 0===t?1:ia(t))<0?0:t):[]},Pn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Hr(e,(t=r-(t=n||void 0===t?1:ia(t)))<0?0:t,r):[]},Pn.takeRightWhile=function(e,t){return e&&e.length?ni(e,Xi(t,3),!1,!0):[]},Pn.takeWhile=function(e,t){return e&&e.length?ni(e,Xi(t,3)):[]},Pn.tap=function(e,t){return t(e),e},Pn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ye(s);return zo(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),_o(e,t,{leading:r,maxWait:t,trailing:i})},Pn.thru=no,Pn.toArray=na,Pn.toPairs=Ca,Pn.toPairsIn=Pa,Pn.toPath=function(e){return No(e)?ft(e,Ts):Zo(e)?[e]:vi(As(la(e)))},Pn.toPlainObject=aa,Pn.transform=function(e,t,n){var r=No(e),i=r||Bo(e)||Qo(e);if(t=Xi(t,4),null==n){var s=e&&e.constructor;n=i?r?new s:[]:zo(e)&&Uo(s)?kn(Ve(e)):{}}return(i?at:ur)(e,(function(e,r,i){return t(n,e,r,i)})),n},Pn.unary=function(e){return yo(e,1)},Pn.union=zs,Pn.unionBy=Ks,Pn.unionWith=Hs,Pn.uniq=function(e){return e&&e.length?Qr(e):[]},Pn.uniqBy=function(e,t){return e&&e.length?Qr(e,Xi(t,2)):[]},Pn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Qr(e,void 0,t):[]},Pn.unset=function(e,t){return null==e||ei(e,t)},Pn.unzip=qs,Pn.unzipWith=Gs,Pn.update=function(e,t,n){return null==e?e:ti(e,t,ai(n))},Pn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ti(e,t,ai(n),r)},Pn.values=ka,Pn.valuesIn=function(e){return null==e?[]:It(e,Sa(e))},Pn.without=Ys,Pn.words=Ua,Pn.wrap=function(e,t){return Mo(ai(t),e)},Pn.xor=Js,Pn.xorBy=Xs,Pn.xorWith=Zs,Pn.zip=Qs,Pn.zipObject=function(e,t){return si(e||[],t||[],zn)},Pn.zipObjectDeep=function(e,t){return si(e||[],t||[],Vr)},Pn.zipWith=eo,Pn.entries=Ca,Pn.entriesIn=Pa,Pn.extend=ca,Pn.extendWith=ha,Xa(Pn,Pn),Pn.add=al,Pn.attempt=Va,Pn.camelCase=Oa,Pn.capitalize=Ia,Pn.ceil=ll,Pn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=oa(n))==n?n:0),void 0!==t&&(t=(t=oa(t))==t?t:0),Jn(oa(e),t,n)},Pn.clone=function(e){return Xn(e,4)},Pn.cloneDeep=function(e){return Xn(e,5)},Pn.cloneDeepWith=function(e,t){return Xn(e,5,t="function"==typeof t?t:void 0)},Pn.cloneWith=function(e,t){return Xn(e,4,t="function"==typeof t?t:void 0)},Pn.conformsTo=function(e,t){return null==t||Zn(e,t,_a(t))},Pn.deburr=Ra,Pn.defaultTo=function(e,t){return null==e||e!=e?t:e},Pn.divide=ul,Pn.endsWith=function(e,t,n){e=la(e),t=Zr(t);var r=e.length,i=n=void 0===n?r:Jn(ia(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Pn.eq=ko,Pn.escape=function(e){return(e=la(e))&&j.test(e)?e.replace(L,Bt):e},Pn.escapeRegExp=function(e){return(e=la(e))&&q.test(e)?e.replace(H,"\\$&"):e},Pn.every=function(e,t,n){var r=No(e)?ut:rr;return n&&ls(e,t,n)&&(t=void 0),r(e,Xi(t,3))},Pn.find=so,Pn.findIndex=Is,Pn.findKey=function(e,t){return bt(e,Xi(t,3),ur)},Pn.findLast=oo,Pn.findLastIndex=Rs,Pn.findLastKey=function(e,t){return bt(e,Xi(t,3),cr)},Pn.floor=cl,Pn.forEach=ao,Pn.forEachRight=lo,Pn.forIn=function(e,t){return null==e?e:ar(e,Xi(t,3),Sa)},Pn.forInRight=function(e,t){return null==e?e:lr(e,Xi(t,3),Sa)},Pn.forOwn=function(e,t){return e&&ur(e,Xi(t,3))},Pn.forOwnRight=function(e,t){return e&&cr(e,Xi(t,3))},Pn.get=ga,Pn.gt=Oo,Pn.gte=Io,Pn.has=function(e,t){return null!=e&&is(e,t,gr)},Pn.hasIn=ya,Pn.head=Ds,Pn.identity=qa,Pn.includes=function(e,t,n,r){e=Fo(e)?e:ka(e),n=n&&!r?ia(n):0;var i=e.length;return n<0&&(n=an(i+n,0)),Xo(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&_t(e,t,n)>-1},Pn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ia(n);return i<0&&(i=an(r+i,0)),_t(e,t,i)},Pn.inRange=function(e,t,n){return t=ra(t),void 0===n?(n=t,t=0):n=ra(n),function(e,t,n){return e>=ln(t,n)&&e<an(t,n)}(e=oa(e),t,n)},Pn.invoke=wa,Pn.isArguments=Ro,Pn.isArray=No,Pn.isArrayBuffer=Do,Pn.isArrayLike=Fo,Pn.isArrayLikeObject=Lo,Pn.isBoolean=function(e){return!0===e||!1===e||Ko(e)&&pr(e)==c},Pn.isBuffer=Bo,Pn.isDate=jo,Pn.isElement=function(e){return Ko(e)&&1===e.nodeType&&!Go(e)},Pn.isEmpty=function(e){if(null==e)return!0;if(Fo(e)&&(No(e)||"string"==typeof e||"function"==typeof e.splice||Bo(e)||Qo(e)||Ro(e)))return!e.length;var t=rs(e);if(t==m||t==b)return!e.size;if(ds(e))return!Ar(e).length;for(var n in e)if(xe.call(e,n))return!1;return!0},Pn.isEqual=function(e,t){return _r(e,t)},Pn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?_r(e,t,void 0,n):!!r},Pn.isError=$o,Pn.isFinite=function(e){return"number"==typeof e&&rn(e)},Pn.isFunction=Uo,Pn.isInteger=Vo,Pn.isLength=Wo,Pn.isMap=Ho,Pn.isMatch=function(e,t){return e===t||Sr(e,t,Qi(t))},Pn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,Sr(e,t,Qi(t),n)},Pn.isNaN=function(e){return qo(e)&&e!=+e},Pn.isNative=function(e){if(hs(e))throw new Y("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return xr(e)},Pn.isNil=function(e){return null==e},Pn.isNull=function(e){return null===e},Pn.isNumber=qo,Pn.isObject=zo,Pn.isObjectLike=Ko,Pn.isPlainObject=Go,Pn.isRegExp=Yo,Pn.isSafeInteger=function(e){return Vo(e)&&e>=-9007199254740991&&e<=9007199254740991},Pn.isSet=Jo,Pn.isString=Xo,Pn.isSymbol=Zo,Pn.isTypedArray=Qo,Pn.isUndefined=function(e){return void 0===e},Pn.isWeakMap=function(e){return Ko(e)&&rs(e)==S},Pn.isWeakSet=function(e){return Ko(e)&&"[object WeakSet]"==pr(e)},Pn.join=function(e,t){return null==e?"":sn.call(e,t)},Pn.kebabCase=Na,Pn.last=js,Pn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=ia(n))<0?an(r+i,0):ln(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):wt(e,xt,i,!0)},Pn.lowerCase=Da,Pn.lowerFirst=Fa,Pn.lt=ea,Pn.lte=ta,Pn.max=function(e){return e&&e.length?ir(e,qa,mr):void 0},Pn.maxBy=function(e,t){return e&&e.length?ir(e,Xi(t,2),mr):void 0},Pn.mean=function(e){return Et(e,qa)},Pn.meanBy=function(e,t){return Et(e,Xi(t,2))},Pn.min=function(e){return e&&e.length?ir(e,qa,Mr):void 0},Pn.minBy=function(e,t){return e&&e.length?ir(e,Xi(t,2),Mr):void 0},Pn.stubArray=sl,Pn.stubFalse=ol,Pn.stubObject=function(){return{}},Pn.stubString=function(){return""},Pn.stubTrue=function(){return!0},Pn.multiply=dl,Pn.nth=function(e,t){return e&&e.length?Ir(e,ia(t)):void 0},Pn.noConflict=function(){return qe._===this&&(qe._=Ce),this},Pn.noop=Za,Pn.now=go,Pn.pad=function(e,t,n){e=la(e);var r=(t=ia(t))?Ht(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ri(en(i),n)+e+Ri(Qt(i),n)},Pn.padEnd=function(e,t,n){e=la(e);var r=(t=ia(t))?Ht(e):0;return t&&r<t?e+Ri(t-r,n):e},Pn.padStart=function(e,t,n){e=la(e);var r=(t=ia(t))?Ht(e):0;return t&&r<t?Ri(t-r,n)+e:e},Pn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),cn(la(e).replace(G,""),t||0)},Pn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&ls(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=ra(e),void 0===t?(t=e,e=0):t=ra(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=hn();return ln(e+i*(t-e+We("1e-"+((i+"").length-1))),t)}return Lr(e,t)},Pn.reduce=function(e,t,n){var r=No(e)?mt:Mt,i=arguments.length<3;return r(e,Xi(t,4),n,i,tr)},Pn.reduceRight=function(e,t,n){var r=No(e)?gt:Mt,i=arguments.length<3;return r(e,Xi(t,4),n,i,nr)},Pn.repeat=function(e,t,n){return t=(n?ls(e,t,n):void 0===t)?1:ia(t),Br(la(e),t)},Pn.replace=function(){var e=arguments,t=la(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Pn.result=function(e,t,n){var r=-1,i=(t=li(t,e)).length;for(i||(i=1,e=void 0);++r<i;){var s=null==e?void 0:e[Ts(t[r])];void 0===s&&(r=i,s=n),e=Uo(s)?s.call(e):s}return e},Pn.round=fl,Pn.runInContext=e,Pn.sample=function(e){return(No(e)?$n:$r)(e)},Pn.size=function(e){if(null==e)return 0;if(Fo(e))return Xo(e)?Ht(e):e.length;var t=rs(e);return t==m||t==b?e.size:Ar(e).length},Pn.snakeCase=La,Pn.some=function(e,t,n){var r=No(e)?yt:qr;return n&&ls(e,t,n)&&(t=void 0),r(e,Xi(t,3))},Pn.sortedIndex=function(e,t){return Gr(e,t)},Pn.sortedIndexBy=function(e,t,n){return Yr(e,t,Xi(n,2))},Pn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Gr(e,t);if(r<n&&ko(e[r],t))return r}return-1},Pn.sortedLastIndex=function(e,t){return Gr(e,t,!0)},Pn.sortedLastIndexBy=function(e,t,n){return Yr(e,t,Xi(n,2),!0)},Pn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Gr(e,t,!0)-1;if(ko(e[n],t))return n}return-1},Pn.startCase=Ba,Pn.startsWith=function(e,t,n){return e=la(e),n=null==n?0:Jn(ia(n),0,e.length),t=Zr(t),e.slice(n,n+t.length)==t},Pn.subtract=pl,Pn.sum=function(e){return e&&e.length?Ct(e,qa):0},Pn.sumBy=function(e,t){return e&&e.length?Ct(e,Xi(t,2)):0},Pn.template=function(e,t,n){var r=Pn.templateSettings;n&&ls(e,t,n)&&(t=void 0),e=la(e),t=ha({},t,r,Ui);var i,s,o=ha({},t.imports,r.imports,Ui),a=_a(o),l=It(o,a),u=0,c=t.interpolate||ce,h="__p += '",d=me((t.escape||ce).source+"|"+c.source+"|"+(c===V?ne:ce).source+"|"+(t.evaluate||ce).source+"|$","g"),f="//# sourceURL="+(xe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++je+"]")+"\n";e.replace(d,(function(t,n,r,o,a,l){return r||(r=o),h+=e.slice(u,l).replace(he,jt),n&&(i=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),h+="';\n";var p=xe.call(t,"variable")&&t.variable;if(p){if(ee.test(p))throw new Y("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(R,""):h).replace(N,"$1").replace(D,"$1;"),h="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=Va((function(){return de(a,f+"return "+h).apply(void 0,l)}));if(m.source=h,$o(m))throw m;return m},Pn.times=function(e,t){if((e=ia(e))<1||e>9007199254740991)return[];var n=4294967295,r=ln(e,4294967295);e-=4294967295;for(var i=Pt(r,t=Xi(t));++n<e;)t(n);return i},Pn.toFinite=ra,Pn.toInteger=ia,Pn.toLength=sa,Pn.toLower=function(e){return la(e).toLowerCase()},Pn.toNumber=oa,Pn.toSafeInteger=function(e){return e?Jn(ia(e),-9007199254740991,9007199254740991):0===e?e:0},Pn.toString=la,Pn.toUpper=function(e){return la(e).toUpperCase()},Pn.trim=function(e,t,n){if((e=la(e))&&(n||void 0===t))return kt(e);if(!e||!(t=Zr(t)))return e;var r=qt(e),i=qt(t);return ci(r,Nt(r,i),Dt(r,i)+1).join("")},Pn.trimEnd=function(e,t,n){if((e=la(e))&&(n||void 0===t))return e.slice(0,Gt(e)+1);if(!e||!(t=Zr(t)))return e;var r=qt(e);return ci(r,0,Dt(r,qt(t))+1).join("")},Pn.trimStart=function(e,t,n){if((e=la(e))&&(n||void 0===t))return e.replace(G,"");if(!e||!(t=Zr(t)))return e;var r=qt(e);return ci(r,Nt(r,qt(t))).join("")},Pn.truncate=function(e,t){var n=30,r="...";if(zo(t)){var i="separator"in t?t.separator:i;n="length"in t?ia(t.length):n,r="omission"in t?Zr(t.omission):r}var s=(e=la(e)).length;if($t(e)){var o=qt(e);s=o.length}if(n>=s)return e;var a=n-Ht(r);if(a<1)return r;var l=o?ci(o,0,a).join(""):e.slice(0,a);if(void 0===i)return l+r;if(o&&(a+=l.length-a),Yo(i)){if(e.slice(a).search(i)){var u,c=l;for(i.global||(i=me(i.source,la(re.exec(i))+"g")),i.lastIndex=0;u=i.exec(c);)var h=u.index;l=l.slice(0,void 0===h?a:h)}}else if(e.indexOf(Zr(i),a)!=a){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+r},Pn.unescape=function(e){return(e=la(e))&&B.test(e)?e.replace(F,Yt):e},Pn.uniqueId=function(e){var t=++Ee;return la(e)+t},Pn.upperCase=ja,Pn.upperFirst=$a,Pn.each=ao,Pn.eachRight=lo,Pn.first=Ds,Xa(Pn,(hl={},ur(Pn,(function(e,t){xe.call(Pn.prototype,t)||(hl[t]=e)})),hl),{chain:!1}),Pn.VERSION="4.17.21",at(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Pn[e].placeholder=Pn})),at(["drop","take"],(function(e,t){Rn.prototype[e]=function(n){n=void 0===n?1:an(ia(n),0);var r=this.__filtered__&&!t?new Rn(this):this.clone();return r.__filtered__?r.__takeCount__=ln(n,r.__takeCount__):r.__views__.push({size:ln(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Rn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),at(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Rn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Xi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),at(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Rn.prototype[e]=function(){return this[n](1).value()[0]}})),at(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Rn.prototype[e]=function(){return this.__filtered__?new Rn(this):this[n](1)}})),Rn.prototype.compact=function(){return this.filter(qa)},Rn.prototype.find=function(e){return this.filter(e).head()},Rn.prototype.findLast=function(e){return this.reverse().find(e)},Rn.prototype.invokeMap=jr((function(e,t){return"function"==typeof e?new Rn(this):this.map((function(n){return br(n,e,t)}))})),Rn.prototype.reject=function(e){return this.filter(Ao(Xi(e)))},Rn.prototype.slice=function(e,t){e=ia(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Rn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=ia(t))<0?n.dropRight(-t):n.take(t-e)),n)},Rn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Rn.prototype.toArray=function(){return this.take(4294967295)},ur(Rn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Pn[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);i&&(Pn.prototype[t]=function(){var t=this.__wrapped__,o=r?[1]:arguments,a=t instanceof Rn,l=o[0],u=a||No(t),c=function(e){var t=i.apply(Pn,pt([e],o));return r&&h?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(a=u=!1);var h=this.__chain__,d=!!this.__actions__.length,f=s&&!h,p=a&&!d;if(!s&&u){t=p?t:new Rn(this);var m=e.apply(t,o);return m.__actions__.push({func:no,args:[c],thisArg:void 0}),new In(m,h)}return f&&p?e.apply(this,o):(m=this.thru(c),f?r?m.value()[0]:m.value():m)})})),at(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ve[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Pn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(No(i)?i:[],e)}return this[n]((function(n){return t.apply(No(n)?n:[],e)}))}})),ur(Rn.prototype,(function(e,t){var n=Pn[t];if(n){var r=n.name+"";xe.call(wn,r)||(wn[r]=[]),wn[r].push({name:t,func:n})}})),wn[Pi(void 0,2).name]=[{name:"wrapper",func:void 0}],Rn.prototype.clone=function(){var e=new Rn(this.__wrapped__);return e.__actions__=vi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=vi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=vi(this.__views__),e},Rn.prototype.reverse=function(){if(this.__filtered__){var e=new Rn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Rn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=No(e),r=t<0,i=n?e.length:0,s=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var s=n[r],o=s.size;switch(s.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=ln(t,e+o);break;case"takeRight":e=an(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=s.start,a=s.end,l=a-o,u=r?a:o-1,c=this.__iteratees__,h=c.length,d=0,f=ln(l,this.__takeCount__);if(!n||!r&&i==l&&f==l)return ri(e,this.__actions__);var p=[];e:for(;l--&&d<f;){for(var m=-1,g=e[u+=t];++m<h;){var y=c[m],v=y.iteratee,b=y.type,w=v(g);if(2==b)g=w;else if(!w){if(1==b)continue e;break e}}p[d++]=g}return p},Pn.prototype.at=ro,Pn.prototype.chain=function(){return to(this)},Pn.prototype.commit=function(){return new In(this.value(),this.__chain__)},Pn.prototype.next=function(){void 0===this.__values__&&(this.__values__=na(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Pn.prototype.plant=function(e){for(var t,n=this;n instanceof On;){var r=Cs(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Pn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Rn){var t=e;return this.__actions__.length&&(t=new Rn(this)),(t=t.reverse()).__actions__.push({func:no,args:[Ws],thisArg:void 0}),new In(t,this.__chain__)}return this.thru(Ws)},Pn.prototype.toJSON=Pn.prototype.valueOf=Pn.prototype.value=function(){return ri(this.__wrapped__,this.__actions__)},Pn.prototype.first=Pn.prototype.head,Xe&&(Pn.prototype[Xe]=function(){return this}),Pn}();qe._=Jt,void 0===(i=function(){return Jt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(8),n(14)(e))},function(e,t){e.exports=[[/-----BEGIN CERTIFICATE-----.*-----END CERTIFICATE-----/gm,"<certificate>"],[/-----BEGIN RSA PRIVATE KEY-----.*-----END RSA PRIVATE KEY-----/gm,"<private key>"],[/(file:\/\/)?\S+\/Contents\/Resources\/app\//gm,"$1/<path>/"],[/(file:\/\/)?([a-zA-Z]:)?\\\S+\\resources\\app\\/gm,"$1\\<path>\\"],[/(file:\/\/)?([a-zA-Z]:)?\/\S+\/resources\/app\//gm,"$1/<path>/"],[/\/(Users?)\/[^/]*\//gm,"/$1/<user>/"],[/\/(usr|home|user|users|u01|var\/users|export\/home)\/[^/]*\//gm,"/$1/<user>/"],[/\\(Users|Documents and Settings|Profiles)\\[^/\\]*\\/gm,"\\$1\\<user>\\"],[/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/gim,"<email>"],[/((1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])/gm,"<ip address>"],[/(http(s)?:\/\/)(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}(\.[a-z]{2,6})?\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)/gim,"<url>"],[/(mongodb:\/\/)(www\.)?[-a-zA-Z0-9@:%._\+~#=,]{2,256}(\.[a-z]{2,6})?\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)/gim,"<mongodb uri>"],[/#schema\/\w+\.\w+/,"#schema/<namespace>"]]},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.InterruptFlag=t.MongoshInterruptedError=void 0;const i=n(7),s=Symbol.for("@@mongosh.uncatchable");class o extends i.MongoshBaseError{constructor(){super("MongoshInterruptedError","execution was interrupted"),this[r]=!0}}t.MongoshInterruptedError=o,r=s;t.InterruptFlag=class{constructor(){this.interrupted=!1,this.onInterruptListeners=[]}isSet(){return this.interrupted}checkpoint(){if(this.interrupted)throw new o}asPromise(){if(this.interrupted)return{destroy:()=>{},promise:Promise.reject(new o)};let e;const t=new Promise((t,n)=>{e=()=>{const e=this.onInterruptListeners.indexOf(n);-1!==e&&this.onInterruptListeners.splice(e,1),n(null)},this.onInterruptListeners.push(n)});return{destroy:e,promise:t}}set(){this.interrupted=!0;const e=new o;for(const t of[...this.onInterruptListeners])t(e)}reset(){this.interrupted=!1}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransformMongoErrorPlugin=t.rephraseMongoError=void 0;const r=[{code:13435,replacement:"not primary and secondaryOk=false - consider using db.getMongo().setReadPref() or readPreference in the connection string"}];function i(e){if(!function(e){var t,n,r;return/^Mongo([A-Z].*)?Error$/.test(null!==(r=null===(n=null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)||void 0===n?void 0:n.name)&&void 0!==r?r:"")}(e))return e;const t=e,n=t.message,i=r.find(e=>e.matchMessage?"string"==typeof e.matchMessage?n.includes(e.matchMessage):e.matchMessage.test(n):void 0!==e.code&&t.code===e.code);return i&&(t.message="function"==typeof i.replacement?i.replacement(n):i.replacement),t}t.rephraseMongoError=i;t.TransformMongoErrorPlugin=class{transformError(e){return i(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7),i=n(39);t.default=class{constructor(){this._mongo=new s;return new Proxy(this,{get:(e,t)=>{if("_mongo"===t)return this._mongo;throw new r.MongoshInvalidInputError("No connected database",i.ShellApiErrors.NotConnected)}})}};class s{constructor(){return new Proxy(this,{get:()=>{throw new r.MongoshInvalidInputError("No connected database",i.ShellApiErrors.NotConnected)}})}}},function(e,t,n){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(5),s=r(n(94)),o=n(23),a=n(7),l=n(13),u=n(153);function c(e){const t=`shell-api.classes.${e}.help`,n={help:t+".description",example:t+".example",docs:t+".link",attr:[]};return new s.default(n)}t.default=function(t,n){void 0===t&&(t=o.bson);const r={};["Binary","Code","DBRef","Decimal128","Double","Int32","Long","MaxKey","MinKey","ObjectId","Timestamp","Map","BSONSymbol","BSONRegExp"].forEach(e=>{if(!(e in t))throw new a.MongoshInternalError(e+" does not exist in provided BSON package.");const n=t[e].prototype;n.serverVersions=i.ALL_SERVER_VERSIONS,n.platforms=i.ALL_PLATFORMS,n.topologies=i.ALL_TOPOLOGIES;const s=c(e);r[e]=s,n.help=()=>s,Object.setPrototypeOf(n.help,s)}),t.BSONSymbol.prototype.serverVersions=[i.ServerVersions.earliest,"1.6.0"],t.BSONSymbol.prototype.deprecated=!0;const s={DBRef:Object.assign((function(e,n,r,i){return(0,l.assertArgsDefinedType)([e,n,r],["string",!0,[void 0,"string"],[void 0,"object"]],"DBRef"),new t.DBRef(e,n,r,i)}),{...t.DBRef,prototype:t.DBRef.prototype}),Map:t.Map,bsonsize:function(e){return(0,l.assertArgsDefinedType)([e],["object"],"bsonsize"),t.calculateObjectSize(e)},MaxKey:Object.assign((function(){return new t.MaxKey}),{...t.MaxKey,toBSON:()=>new t.MaxKey,prototype:t.MaxKey.prototype}),MinKey:Object.assign((function(){return new t.MinKey}),{...t.MinKey,toBSON:()=>new t.MinKey,prototype:t.MinKey.prototype}),ObjectId:Object.assign((function(e){return(0,l.assertArgsDefinedType)([e],[[void 0,"string","number","object"]],"ObjectId"),new t.ObjectId(e)}),{...t.ObjectId,prototype:t.ObjectId.prototype}),Timestamp:Object.assign((function(e,n){return(0,l.assertArgsDefinedType)([e,n],[["number","object",void 0],[void 0,"number"]],"Timestamp"),"object"==typeof e&&null!==e&&"t"in e&&"i"in e?new t.Timestamp(new t.Long(e.i,e.t)):void 0!==n||"number"==typeof e?new t.Timestamp(new t.Long(null!=n?n:0,e)):new t.Timestamp(e)}),{...t.Timestamp,prototype:t.Timestamp.prototype}),Code:Object.assign((function(e="",n){return(0,l.assertArgsDefinedType)([e,n],[[void 0,"string","function"],[void 0,"object"]],"Code"),new t.Code(e,n)}),{...t.Code,prototype:t.Code.prototype}),NumberDecimal:Object.assign((function(e="0"){return(0,l.assertArgsDefinedType)([e],[["string","number","bson:Long","bson:Int32","bson:Decimal128"]],"NumberDecimal"),"number"==typeof e&&n("NumberDecimal: specifying a number as argument is deprecated and may lead to loss of precision, pass a string instead"),t.Decimal128.fromString(""+e)}),{prototype:t.Decimal128.prototype}),NumberInt:Object.assign((function(e="0"){return null!=e||(e="0"),(0,l.assertArgsDefinedType)([e],[["string","number","bson:Long","bson:Int32"]],"NumberInt"),new t.Int32(parseInt(""+e,10))}),{prototype:t.Int32.prototype}),NumberLong:Object.assign((function(e="0"){return null!=e||(e="0"),(0,l.assertArgsDefinedType)([e],[["string","number","bson:Long","bson:Int32"]],"NumberLong"),"number"==typeof e?(n("NumberLong: specifying a number as argument is deprecated and may lead to loss of precision, pass a string instead"),t.Long.fromNumber(e)):t.Long.fromString(""+e)}),{prototype:t.Long.prototype}),ISODate:function(e){e||(e=(new Date).toISOString());const t=e.match(/^(?<Y>\d{4})-?(?<M>\d{2})-?(?<D>\d{2})([T ](?<h>\d{2})(:?(?<m>\d{2})(:?((?<s>\d{2})(\.(?<ms>\d+))?))?)?(?<tz>Z|([+-])(\d{2}):?(\d{2})?)?)?$/);if(null!==t&&void 0!==t.groups){const{Y:e,M:n,D:r,h:i,m:s,s:o,ms:a,tz:l}=t.groups,u=new Date(`${e}-${n}-${r}T${i||"00"}:${s||"00"}:${o||"00"}.${a||"000"}${l||"Z"}`);if(u.getTime()>=-621672192e5&&u.getTime()<=0xe677d21fdbff)return u}throw new a.MongoshInvalidInputError(JSON.stringify(e)+" is not a valid ISODate",a.CommonErrors.InvalidArgument)},BinData:Object.assign((function(n,r){(0,l.assertArgsDefinedType)([n,r],["number","string"],"BinData");const i=e.from(r,"base64");return new t.Binary(i,n)}),{prototype:t.Binary.prototype}),HexData:Object.assign((function(n,r){(0,l.assertArgsDefinedType)([n,r],["number","string"],"HexData");const i=e.from(r,"hex");return new t.Binary(i,n)}),{prototype:t.Binary.prototype}),UUID:Object.assign((function(n){if(void 0===n){const e=(0,u.randomBytes)(16);e[6]=15&e[6]|64,e[8]=63&e[8]|128,n=e.toString("hex")}(0,l.assertArgsDefinedType)([n],["string"],"UUID");const r=e.from(n.replace(/-/g,""),"hex");return new t.Binary(r,t.Binary.SUBTYPE_UUID)}),{prototype:t.Binary.prototype}),MD5:Object.assign((function(n){(0,l.assertArgsDefinedType)([n],["string"],"MD5");const r=e.from(n,"hex");return new t.Binary(r,t.Binary.SUBTYPE_MD5)}),{prototype:t.Binary.prototype}),Decimal128:t.Decimal128,BSONSymbol:t.BSONSymbol,Int32:t.Int32,Long:t.Long,Binary:t.Binary,Double:t.Double,EJSON:t.EJSON,BSONRegExp:t.BSONRegExp};for(const e of Object.keys(s)){const t=r[e]||c(e);s[e].help=()=>t,Object.setPrototypeOf(s[e].help,t)}return s}}).call(this,n(4).Buffer)},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o};Object.defineProperty(t,"__esModule",{value:!0});const i=n(9),s=n(13),o=n(5),a=n(40),l=n(32);let u=class extends i.ShellApiWithMongoClass{constructor(e){super(),this._database=e}get _mongo(){return this._database._mongo}[o.asPrintable](){return`Shard class connected to ${(0,l.redactURICredentials)(this._database._mongo._uri)} via db ${this._database._name}`}_emitShardApiCall(e,t={}){this._database._mongo._instanceState.emitApiCallWithArgs({method:e,class:"Shard",arguments:t})}async enableSharding(e,t){(0,s.assertArgsDefinedType)([e,t],["string",[void 0,"string"]],"Shard.enableSharding"),this._emitShardApiCall("enableSharding",{database:e,primaryShard:t});const n={enableSharding:e};void 0!==t&&(n.primaryShard=t);try{return await this._database._runAdminCommand(n)}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=e.message+". Are you connected to mongos?"),e}}async commitReshardCollection(e){return(0,s.assertArgsDefinedType)([e],["string"],"Shard.commitReshardCollection"),this._emitShardApiCall("commitReshardCollection",{namespace:e}),await this._database._runAdminCommand({commitReshardCollection:e})}async abortReshardCollection(e){return(0,s.assertArgsDefinedType)([e],["string"],"Shard.abortReshardCollection"),this._emitShardApiCall("abortReshardCollection",{namespace:e}),await this._database._runAdminCommand({abortReshardCollection:e})}async shardCollection(e,t,n,r){return await this._runShardCollection("shardCollection",e,t,n,r)}async reshardCollection(e,t,n,r){return await this._runShardCollection("reshardCollection",e,t,n,r)}async _runShardCollection(e,t,n,r,i){(0,s.assertArgsDefinedType)([t,n,r,i],["string","object",[void 0,"boolean","object"],[void 0,"object"]],"Shard."+e),this._emitShardApiCall(e,{namespace:t,key:n,unique:r,options:i}),"object"==typeof r&&null!==r&&(i=r,r=void 0);const o={[e]:t,key:n};void 0!==r&&(o.unique=r);try{return await this._database._runAdminCommand({...o,...i})}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=e.message+". Are you connected to mongos?"),e}}async status(e=!1,t){const n=await(0,s.getPrintableShardStatus)(null!=t?t:await(0,s.getConfigDB)(this._database),e);return new a.CommandResult("StatsResult",n)}async addShard(e){return(0,s.assertArgsDefinedType)([e],["string"],"Shard.addShard"),await(0,s.getConfigDB)(this._database),this._emitShardApiCall("addShard",{url:e}),this._database._runAdminCommand({addShard:e})}async addShardToZone(e,t){return(0,s.assertArgsDefinedType)([e,t],["string","string"],"Shard.addShardToZone"),this._emitShardApiCall("addShardToZone",{shard:e,zone:t}),await(0,s.getConfigDB)(this._database),this._database._runAdminCommand({addShardToZone:e,zone:t})}async addShardTag(e,t){(0,s.assertArgsDefinedType)([e,t],["string","string"],"Shard.addShardTag"),this._emitShardApiCall("addShardTag",{shard:e,tag:t});try{return await this.addShardToZone(e,t)}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=e.message+". This method aliases to addShardToZone which exists only for server versions > 3.4."),e}}async updateZoneKeyRange(e,t,n,r){return(0,s.assertArgsDefinedType)([e,t,n,r],["string","object","object",!0],"Shard.updateZoneKeyRange"),this._emitShardApiCall("updateZoneKeyRange",{namespace:e,min:t,max:n,zone:r}),await(0,s.getConfigDB)(this._database),await this._database._runAdminCommand({updateZoneKeyRange:e,min:t,max:n,zone:r})}async addTagRange(e,t,n,r){(0,s.assertArgsDefinedType)([e,t,n,r],["string","object","object",!0],"Shard.addTagRange"),this._emitShardApiCall("addTagRange",{namespace:e,min:t,max:n,zone:r});try{return await this.updateZoneKeyRange(e,t,n,r)}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=e.message+". This method aliases to updateZoneKeyRange which exists only for server versions > 3.4."),e}}async removeRangeFromZone(e,t,n){return(0,s.assertArgsDefinedType)([e,t,n],["string","object","object"],"Shard.removeRangeFromZone"),this._emitShardApiCall("removeRangeFromZone",{ns:e,min:t,max:n}),this.updateZoneKeyRange(e,t,n,null)}async removeTagRange(e,t,n){(0,s.assertArgsDefinedType)([e,t,n],["string","object","object"],"Shard.removeTagRange"),this._emitShardApiCall("removeTagRange",{ns:e,min:t,max:n});try{return await this.updateZoneKeyRange(e,t,n,null)}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=e.message+". This method aliases to updateZoneKeyRange which exists only for server versions > 3.4."),e}}async removeShardFromZone(e,t){return(0,s.assertArgsDefinedType)([e,t],["string","string"],"Shard.removeShardFromZone"),this._emitShardApiCall("removeShardFromZone",{shard:e,zone:t}),await(0,s.getConfigDB)(this._database),await this._database._runAdminCommand({removeShardFromZone:e,zone:t})}async removeShardTag(e,t){(0,s.assertArgsDefinedType)([e,t],["string","string"],"Shard.removeShardTag"),this._emitShardApiCall("removeTagRange",{shard:e,tag:t});try{return await this.removeShardFromZone(e,t)}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=e.message+". This method aliases to removeShardFromZone which exists only for server versions > 3.4."),e}}async enableAutoSplit(){this._emitShardApiCall("enableAutoSplit",{});const e=await(0,s.getConfigDB)(this._database);return await e.getCollection("settings").updateOne({_id:"autosplit"},{$set:{enabled:!0}},{upsert:!0,writeConcern:{w:"majority",wtimeout:3e4}})}async disableAutoSplit(){this._emitShardApiCall("disableAutoSplit",{});const e=await(0,s.getConfigDB)(this._database);return await e.getCollection("settings").updateOne({_id:"autosplit"},{$set:{enabled:!1}},{upsert:!0,writeConcern:{w:"majority",wtimeout:3e4}})}async splitAt(e,t){return(0,s.assertArgsDefinedType)([e,t],["string","object"],"Shard.splitAt"),this._emitShardApiCall("splitAt",{ns:e,query:t}),this._database._runAdminCommand({split:e,middle:t})}async splitFind(e,t){return(0,s.assertArgsDefinedType)([e,t],["string","object"],"Shard.splitFind"),this._emitShardApiCall("splitFind",{ns:e,query:t}),this._database._runAdminCommand({split:e,find:t})}async moveChunk(e,t,n){return(0,s.assertArgsDefinedType)([e,t,n],["string","object","string"],"Shard.moveChunk"),this._emitShardApiCall("moveChunk",{ns:e,query:t,destination:n}),this._database._runAdminCommand({moveChunk:e,find:t,to:n})}async balancerCollectionStatus(e){return(0,s.assertArgsDefinedType)([e],["string"],"Shard.balancerCollectionStatus"),this._emitShardApiCall("balancerCollectionStatus",{ns:e}),this._database._runAdminCommand({balancerCollectionStatus:e})}async enableBalancing(e){(0,s.assertArgsDefinedType)([e],["string"],"Shard.enableBalancing"),this._emitShardApiCall("enableBalancing",{ns:e});const t=await(0,s.getConfigDB)(this._database);return await t.getCollection("collections").updateOne({_id:e},{$set:{noBalance:!1}},{writeConcern:{w:"majority",wtimeout:6e4}})}async disableBalancing(e){(0,s.assertArgsDefinedType)([e],["string"],"Shard.disableBalancing"),this._emitShardApiCall("disableBalancing",{ns:e});const t=await(0,s.getConfigDB)(this._database);return await t.getCollection("collections").updateOne({_id:e},{$set:{noBalance:!0}},{writeConcern:{w:"majority",wtimeout:6e4}})}async getBalancerState(){this._emitShardApiCall("getBalancerState",{});const e=await(0,s.getConfigDB)(this._database),t=await e.getCollection("settings").findOne({_id:"balancer"});return null==t||!t.stopped}async isBalancerRunning(){return this._emitShardApiCall("isBalancerRunning",{}),await(0,s.getConfigDB)(this._database),this._database._runAdminCommand({balancerStatus:1})}async startBalancer(e=6e4){return(0,s.assertArgsDefinedType)([e],["number"],"Shard.startBalancer"),this._emitShardApiCall("startBalancer",{timeout:e}),this._database._runAdminCommand({balancerStart:1,maxTimeMS:e})}async stopBalancer(e=6e4){return(0,s.assertArgsDefinedType)([e],["number"],"Shard.stopBalancer"),this._emitShardApiCall("stopBalancer",{timeout:e}),this._database._runAdminCommand({balancerStop:1,maxTimeMS:e})}async setBalancerState(e){return(0,s.assertArgsDefinedType)([e],["boolean"],"Shard.setBalancerState"),this._emitShardApiCall("setBalancerState",{state:e}),e?this.startBalancer():this.stopBalancer()}};r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"enableSharding",null),r([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["5.0.0",o.ServerVersions.latest])],u.prototype,"commitReshardCollection",null),r([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["5.0.0",o.ServerVersions.latest])],u.prototype,"abortReshardCollection",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"shardCollection",null),r([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["5.0.0",o.ServerVersions.latest])],u.prototype,"reshardCollection",null),r([i.returnsPromise,(0,i.apiVersions)([1])],u.prototype,"status",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"addShard",null),r([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],u.prototype,"addShardToZone",null),r([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],u.prototype,"addShardTag",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"updateZoneKeyRange",null),r([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],u.prototype,"addTagRange",null),r([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],u.prototype,"removeRangeFromZone",null),r([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],u.prototype,"removeTagRange",null),r([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],u.prototype,"removeShardFromZone",null),r([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],u.prototype,"removeShardTag",null),r([i.returnsPromise,(0,i.apiVersions)([1]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],u.prototype,"enableAutoSplit",null),r([i.returnsPromise,(0,i.apiVersions)([1]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],u.prototype,"disableAutoSplit",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"splitAt",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"splitFind",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"moveChunk",null),r([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["4.4.0",o.ServerVersions.latest])],u.prototype,"balancerCollectionStatus",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"enableBalancing",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"disableBalancing",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"getBalancerState",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"isBalancerRunning",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"startBalancer",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"stopBalancer",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"setBalancerState",null),u=r([i.shellApiClassDefault],u),t.default=u},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o};Object.defineProperty(t,"__esModule",{value:!0});const i=n(7),s=n(32),o=n(9),a=n(5),l=n(13);let u=class extends o.ShellApiWithMongoClass{constructor(e){super(),this._database=e}get _mongo(){return this._database._mongo}async initiate(e={}){return this._emitReplicaSetApiCall("initiate",{config:e}),this._database._runAdminCommand({replSetInitiate:e})}async _getConfig(){try{const e=await this._database._runAdminCommand({replSetGetConfig:1});if(void 0===e.config)throw new i.MongoshRuntimeError("Documented returned from command replSetGetConfig does not contain 'config'",i.CommonErrors.CommandFailed);return e.config}catch(e){if("CommandNotFound"===(null==e?void 0:e.codeName)||"APIStrictError"===(null==e?void 0:e.codeName)){const e=await this._database.getSiblingDB("local").getCollection("system.replset").findOne();if(null===e)throw new i.MongoshRuntimeError("No documents in local.system.replset",i.CommonErrors.CommandFailed);return e}throw e}}async config(){return this._emitReplicaSetApiCall("config",{}),this._getConfig()}async conf(){return this._emitReplicaSetApiCall("conf",{}),this._getConfig()}async reconfig(e,t={}){(0,l.assertArgsDefinedType)([e,t],["object",[void 0,"object"]],"ReplicaSet.reconfig"),this._emitReplicaSetApiCall("reconfig",{config:e,options:t});const n=async()=>{var n;const r=await this._getConfig();e.version=r.version?r.version+1:1,null!==(n=e.protocolVersion)&&void 0!==n||(e.protocolVersion=r.protocolVersion);const i={replSetReconfig:e,...t};return await this._database._runAdminCommand(i)};let r=["success",{}],i=1e3;for(let e=0;e<12;e++)try{"error"===r[0]&&(await this._instanceState.shellApi.sleep(i),i*=1.3,i>2500&&await this._instanceState.shellApi.print("Reconfig did not succeed yet, starting new attempt...")),r=["success",await n()];break}catch(e){r=["error",e]}if("error"===r[0])throw r[1];return r[1]}async reconfigForPSASet(e,t,n={}){var r;(0,l.assertArgsDefinedType)([e,t,n],["number","object",[void 0,"object"]],"ReplicaSet.reconfigForPSASet"),this._emitReplicaSetApiCall("reconfigForPSASet",{newMemberIndex:e,config:t,options:n});const s=e=>this._instanceState.shellApi.print(e),o=null===(r=t.members)||void 0===r?void 0:r[e];if(!o)throw new i.MongoshInvalidInputError(`Node at index ${e} does not exist in the new config`,i.CommonErrors.InvalidArgument);if(1!==o.votes)throw new i.MongoshInvalidInputError(`Node at index ${e} must have { votes: 1 } in the new config (actual: { votes: ${o.votes} })`,i.CommonErrors.InvalidArgument);const a=await this._getConfig(),u=a.members.find(e=>e._id===o._id);if(u){if(u.votes)throw new i.MongoshInvalidInputError(`Node at index ${e} must have { votes: 0 } in the old config (actual: { votes: ${u.votes} })`,i.CommonErrors.InvalidArgument)}else a.members.find(e=>e.host===o.host)&&await s(`Warning: Node at index ${e} has { host: "${o.host}" }, which is also present in the old config, but with a different _id field.`);const c=o.priority;await s(`Running first reconfig to give member at index ${e} { votes: 1, priority: 0 }`),o.votes=1,o.priority=0;const h=await this.reconfig(t,n);if(0===c)return await s("No second reconfig necessary because .priority = 0"),h;await s(`Running second reconfig to give member at index ${e} { priority: ${c} }`),o.priority=c;try{return await this.reconfig(t,n)}catch(e){throw await s("Second reconfig did not succeed, giving up"),await s(`Attempted command: rs.reconfig(${JSON.stringify(t,null," ")}, ${JSON.stringify(n)})`),e}}async status(){return this._emitReplicaSetApiCall("status",{}),this._database._runAdminCommand({replSetGetStatus:1})}async isMaster(){return this._emitReplicaSetApiCall("isMaster",{}),this._database.getSiblingDB("admin").isMaster()}async hello(){return this._emitReplicaSetApiCall("hello",{}),this._database.getSiblingDB("admin").hello()}async printSecondaryReplicationInfo(){return this._emitReplicaSetApiCall("printSecondaryReplicationInfo",{}),this._database.printSecondaryReplicationInfo()}printSlaveReplicationInfo(){throw new i.MongoshDeprecatedError("printSlaveReplicationInfo has been deprecated. Use printSecondaryReplicationInfo instead")}async printReplicationInfo(){return this._emitReplicaSetApiCall("printReplicationInfo",{}),this._database.printReplicationInfo()}async add(e,t){(0,l.assertArgsDefinedType)([e,t],[["string","object"],[void 0,"boolean"]],"ReplicaSet.add"),this._emitReplicaSetApiCall("add",{hostport:e,arb:t});const n=await this._getConfig();n.version++;const r=Math.max(...n.members.map(e=>e._id));let s;if("string"==typeof e)s={_id:r+1,host:e},t&&(s.arbiterOnly=!0);else{if(!0===t)throw new i.MongoshInvalidInputError("Expected first parameter to be a host-and-port string of arbiter, but got "+JSON.stringify(e),i.CommonErrors.InvalidArgument);s=e,null!==s._id&&void 0!==s._id||(s._id=r+1)}return n.members.push(s),this._database._runAdminCommand({replSetReconfig:n})}async addArb(e){return this._emitReplicaSetApiCall("addArb",{hostname:e}),this.add(e,!0)}async remove(e){(0,l.assertArgsDefinedType)([e],["string"],"ReplicaSet.remove"),this._emitReplicaSetApiCall("remove",{hostname:e});const t=await this._getConfig();t.version++;for(let n=0;n<t.members.length;n++)if(t.members[n].host===e)return t.members.splice(n,1),this._database._runAdminCommand({replSetReconfig:t});throw new i.MongoshInvalidInputError(`Couldn't find ${e} in ${JSON.stringify(t.members)}. Is ${e} a member of this replset?`,i.CommonErrors.InvalidArgument)}async freeze(e){return(0,l.assertArgsDefinedType)([e],["number"],"ReplicaSet.freeze"),this._emitReplicaSetApiCall("freeze",{secs:e}),this._database._runAdminCommand({replSetFreeze:e})}async stepDown(e,t){(0,l.assertArgsDefinedType)([e,t],[[void 0,"number"],[void 0,"number"]],"ReplicaSet.stepDown"),this._emitReplicaSetApiCall("stepDown",{stepdownSecs:e,catchUpSecs:t});const n={replSetStepDown:void 0===e?60:e};return void 0!==t&&(n.secondaryCatchUpPeriodSecs=t),this._database._runAdminCommand(n)}async syncFrom(e){return(0,l.assertArgsDefinedType)([e],["string"],"ReplicaSet.syncFrom"),this._emitReplicaSetApiCall("syncFrom",{host:e}),this._database._runAdminCommand({replSetSyncFrom:e})}async secondaryOk(){await this._mongo.setSecondaryOk()}[a.asPrintable](){return`ReplicaSet class connected to ${(0,s.redactURICredentials)(this._database._mongo._uri)} via db ${this._database._name}`}_emitReplicaSetApiCall(e,t={}){this._database._mongo._instanceState.emitApiCallWithArgs({method:e,class:"ReplicaSet",arguments:t})}};r([o.returnsPromise],u.prototype,"initiate",null),r([o.returnsPromise,(0,o.apiVersions)([1])],u.prototype,"config",null),r([o.returnsPromise,(0,o.apiVersions)([1])],u.prototype,"conf",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"reconfig",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"reconfigForPSASet",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"status",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"isMaster",null),r([o.returnsPromise,(0,o.apiVersions)([1])],u.prototype,"hello",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"printSecondaryReplicationInfo",null),r([o.deprecated,(0,o.apiVersions)([])],u.prototype,"printSlaveReplicationInfo",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"printReplicationInfo",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"add",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"addArb",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"remove",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"freeze",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"stepDown",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"syncFrom",null),r([o.deprecated,o.returnsPromise],u.prototype,"secondaryOk",null),u=r([o.shellApiClassDefault],u),t.default=u},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(9),o=n(5),a=i(n(210)),l=n(40),u=n(13),c=n(23),h=n(7),d=n(473),f=n(56),p=n(30),m=n(474),g=i(n(55)),y=Symbol.for("@@mongosh.instanceState"),v=Symbol.for("@@mongosh.loadCallNestingLevel");let b=class extends s.ShellApiClass{constructor(e){super(),this._instanceState=e,this.defaults=Object.freeze(new m.ShellUserConfig)}async set(e,t){var n,r;(0,u.assertArgsDefinedType)([e],["string"],"config.set");const{evaluationListener:i}=this._instanceState,s=(await this._allKeys()).includes(e);if(s){const r=await(null===(n=i.validateConfig)||void 0===n?void 0:n.call(i,e,t));if(r)return`Cannot set option "${e}": ${r}`}return"success"!==(s&&await(null===(r=i.setConfig)||void 0===r?void 0:r.call(i,e,t)))?`Option "${e}" is not available in this environment`:`Setting "${e}" has been changed`}async get(e){var t,n;(0,u.assertArgsDefinedType)([e],["string"],"config.get");const{evaluationListener:r}=this._instanceState;return null!==(n=await(null===(t=r.getConfig)||void 0===t?void 0:t.call(r,e)))&&void 0!==n?n:this.defaults[e]}async reset(e){var t;(0,u.assertArgsDefinedType)([e],["string"],"config.reset");const{evaluationListener:n}=this._instanceState;return"success"!==await(null===(t=n.resetConfig)||void 0===t?void 0:t.call(n,e))?`Option "${e}" cannot be changed in this environment`:`Setting "${e}" has been reset to its default value`}async _allKeys(){var e,t;const{evaluationListener:n}=this._instanceState;return null!==(t=await(null===(e=n.listConfigOptions)||void 0===e?void 0:e.call(n)))&&void 0!==t?t:Object.keys(this.defaults)}async[o.asPrintable](){return new Map(await Promise.all((await this._allKeys()).map(async e=>[e,await this.get(e)])))}};r([s.returnsPromise],b.prototype,"set",null),r([s.returnsPromise],b.prototype,"get",null),r([s.returnsPromise],b.prototype,"reset",null),b=r([s.shellApiClassDefault],b);let w=class extends s.ShellApiClass{constructor(e){super(),this[y]=e,this[v]=0,this.DBQuery=new d.DBQuery(e),this.config=new b(e)}get _instanceState(){return this[y]}get loadCallNestingLevel(){return this[v]}set loadCallNestingLevel(e){this[v]=e}use(e){return this._instanceState.currentDb._mongo.use(e)}async show(e,t){return await this._instanceState.currentDb._mongo.show(e,t)}async exit(e){var t,n;throw(0,u.assertArgsDefinedType)([e],[[void 0,"number"]],"exit"),(0,u.assertCLI)(this._instanceState.initialServiceProvider.platform,"the exit/quit commands"),await this._instanceState.close(!0),await(null===(n=(t=this._instanceState.evaluationListener).onExit)||void 0===n?void 0:n.call(t,e)),new h.MongoshInternalError(".onExit listener returned")}async quit(e){return await this.exit(e)}async Mongo(e,t,n){(0,u.assertCLI)(this._instanceState.initialServiceProvider.platform,"new Mongo connections");const r=new a.default(this._instanceState,e,t,n);return await r.connect(),this._instanceState.mongos.push(r),r}async connect(e,t,n){(0,u.assertArgsDefinedType)([e,t,n],["string",[void 0,"string"],[void 0,"string"]],"connect"),(0,u.assertCLI)(this._instanceState.initialServiceProvider.platform,"new Mongo connections");const r=new a.default(this._instanceState,e);await r.connect(t,n),this._instanceState.mongos.push(r);const i=r._serviceProvider.initialDb||c.DEFAULT_DB;return r.getDB(i)}async it(){return this._instanceState.currentCursor?await this._instanceState.currentCursor._it():new l.CursorIterationResult}version(){return n(475).version}async load(e){if((0,u.assertArgsDefinedType)([e],["string"],"load"),!this._instanceState.evaluationListener.onLoad)throw new h.MongoshUnimplementedError("load is not currently implemented for this platform",h.CommonErrors.NotImplemented);this._instanceState.messageBus.emit("mongosh:api-load-file",{nested:this.loadCallNestingLevel>0,filename:e});const{resolvedFilename:t,evaluate:n}=await this._instanceState.evaluationListener.onLoad(e),r=this._instanceState.context,i=r.__filename;r.__filename=t,r.__dirname=(0,p.dirname)(t),this.loadCallNestingLevel++;try{await n()}finally{this.loadCallNestingLevel--,i?(r.__filename=i,r.__dirname=(0,p.dirname)(i)):(delete r.__filename,delete r.__dirname)}return!0}async enableTelemetry(){var e,t;if("success"===await(null===(t=(e=this._instanceState.evaluationListener).setConfig)||void 0===t?void 0:t.call(e,"enableTelemetry",!0)))return g.default.__("cli-repl.cli-repl.enabledTelemetry")}async disableTelemetry(){var e,t;if("success"===await(null===(t=(e=this._instanceState.evaluationListener).setConfig)||void 0===t?void 0:t.call(e,"enableTelemetry",!1)))return g.default.__("cli-repl.cli-repl.disabledTelemetry")}async passwordPrompt(){const{evaluationListener:e}=this._instanceState;if(!e.onPrompt)throw new h.MongoshUnimplementedError("passwordPrompt() is not available in this shell",h.CommonErrors.NotImplemented);return await e.onPrompt("Enter password","password")}async sleep(e){return await(0,f.promisify)(setTimeout)(e)}async print(...e){var t;const{evaluationListener:n}=this._instanceState,r=await Promise.all(e.map(e=>(0,s.toShellResult)(e)));await(null===(t=n.onPrint)||void 0===t?void 0:t.call(n,r))}async printjson(...e){return this.print(...e)}async cls(){var e;const{evaluationListener:t}=this._instanceState;await(null===(e=t.onClearCommand)||void 0===e?void 0:e.call(t))}isInteractive(){return this._instanceState.isInteractive}};r([s.directShellCommand,(0,s.shellCommandCompleter)((async function(e,t){var n;if(!(t.length>2))return await e.getDatabaseCompletions(null!==(n=t[1])&&void 0!==n?n:"")}))],w.prototype,"use",null),r([s.directShellCommand,s.returnsPromise,(0,s.shellCommandCompleter)((async function(e,t){if(t.length>2)return;return"d"===t[1]?["databases"]:["databases","dbs","collections","tables","profile","users","roles","log","logs","startupWarnings","freeMonitoring","automationNotices"].filter(e=>{var n;return e.startsWith(null!==(n=t[1])&&void 0!==n?n:"")})}))],w.prototype,"show",null),r([s.directShellCommand,s.returnsPromise,(0,s.platforms)([c.ReplPlatform.CLI])],w.prototype,"exit",null),r([s.directShellCommand,s.returnsPromise,(0,s.platforms)([c.ReplPlatform.CLI])],w.prototype,"quit",null),r([s.returnsPromise,(0,s.returnType)("Mongo"),(0,s.platforms)([c.ReplPlatform.CLI])],w.prototype,"Mongo",null),r([s.returnsPromise,(0,s.returnType)("Database"),(0,s.platforms)([c.ReplPlatform.CLI])],w.prototype,"connect",null),r([s.directShellCommand,s.returnsPromise],w.prototype,"it",null),r([s.returnsPromise],w.prototype,"load",null),r([s.returnsPromise,(0,s.platforms)([c.ReplPlatform.CLI])],w.prototype,"enableTelemetry",null),r([s.returnsPromise,(0,s.platforms)([c.ReplPlatform.CLI])],w.prototype,"disableTelemetry",null),r([s.returnsPromise,(0,s.platforms)([c.ReplPlatform.CLI])],w.prototype,"passwordPrompt",null),r([s.returnsPromise],w.prototype,"sleep",null),r([s.returnsPromise],w.prototype,"print",null),r([s.returnsPromise],w.prototype,"printjson",null),r([s.directShellCommand,s.returnsPromise],w.prototype,"cls",null),w=r([s.shellApiClassDefault],w),t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateConnectionInfoFromCliArgs=t.mapCliToDriver=void 0;const r=n(467),i=n(469);Object.defineProperty(t,"mapCliToDriver",{enumerable:!0,get:function(){return i.mapCliToDriver}}),t.generateConnectionInfoFromCliArgs=function(e){const t=(0,r.generateUri)(e);return(0,i.mapCliToDriver)(e,{connectionString:t,driverOptions:{}})}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.generateUri=void 0;const i=n(7),s=r(n(55)),o=n(120),a="cli-repl.uri-generator.no-host-port";function l(e,t){if(e.host||e.port)throw new i.MongoshInvalidInputError(s.default.__(a),i.CommonErrors.InvalidArgument);if(e.gssapiServiceName&&(null==t?void 0:t.searchParams.has("authMechanismProperties"))){const n=new o.CommaAndColonSeparatedRecord(t.searchParams.get("authMechanismProperties")).get("SERVICE_NAME");if(void 0!==n&&e.gssapiServiceName!==n)throw new i.MongoshInvalidInputError(s.default.__("cli-repl.uri-generator.diverging-service-name"),i.CommonErrors.InvalidArgument)}if(null==t?void 0:t.searchParams.has("gssapiServiceName"))throw new i.MongoshInvalidInputError(s.default.__("cli-repl.uri-generator.gssapi-service-name-unsupported"),i.CommonErrors.InvalidArgument)}function u(e){const t=e.match(/[^a-zA-Z0-9.:\[\]_-]/);if(t)throw new i.MongoshInvalidInputError(s.default.__("cli-repl.uri-generator.invalid-host")+": "+t[0],i.CommonErrors.InvalidArgument)}function c(e,t){const n=e.split(",").map(e=>e.trim()).filter(e=>!!e),r=[];return n.forEach(e=>{const[n,o]=e.split(":");if(t&&void 0!==o&&o!==t)throw new i.MongoshInvalidInputError(s.default.__("cli-repl.uri-generator.host-list-port-mismatch"),i.CommonErrors.InvalidArgument);r.push(`${n}${o||t?":"+(o||t):""}`)}),r}function h(e){return e.host?(u(e.host),e.host.includes(":")?e.host.split(":")[0]:e.host):"127.0.0.1"}function d(e){if(e.host&&e.host.includes(":")){u(e.host);const t=e.host.split(":")[1];if(!e.port||e.port===t)return t;throw new i.MongoshInvalidInputError(s.default.__(a),i.CommonErrors.InvalidArgument)}return e.port?e.port:"27017"}function f(e){const t=(e=e.clone()).searchParams;return t.has("replicaSet")||t.has("directConnection")||t.has("loadBalanced")||1!==e.hosts.length||t.set("directConnection","true"),e}t.generateUri=function(e){if(e.nodb)return"";const t=function(e){var t,n,r;const s=e.connectionSpecifier,a=(null!==(t=e.host)&&void 0!==t?t:"").match(/^(?<replSetName>[^/]+)\/(?<hosts>([A-Za-z0-9._-]+(:\d+)?,?)+)$/);if(a){const{replSetName:t,hosts:n}=a.groups,r=new o.ConnectionString("mongodb://replacemeHost/"+encodeURIComponent(s||""));return r.hosts=c(n,e.port),r.searchParams.set("replicaSet",t),f(r)}const u=(null!==(n=e.host)&&void 0!==n?n:"").match(/^(?<hosts>([A-Za-z0-9._-]+(:\d+)?,?)+)$/);if(u&&(null===(r=e.host)||void 0===r?void 0:r.includes(","))){const{hosts:t}=u.groups,n=new o.ConnectionString("mongodb://replacemeHost/"+encodeURIComponent(s||""));return n.hosts=c(t,e.port),f(n)}if(!s)return new o.ConnectionString(`mongodb://${h(e)}:${d(e)}/?directConnection=true`);if(s.startsWith("mongodb+srv://")){const t=new o.ConnectionString(s);return l(e,t),t}if(s.startsWith("mongodb://")){const t=new o.ConnectionString(s);return l(e,t),f(t)}let p=/^([A-Za-z0-9][A-Za-z0-9._-]+):?(\d+)?(?:\/(\S*))?$/gi.exec(s);if(null===p){if(/[/\\. "$]/.test(s))throw new i.MongoshInvalidInputError("Invalid URI: "+s,i.CommonErrors.InvalidArgument);p=[s,s]}let m=null==p?void 0:p[1];const g=null==p?void 0:p[2];let y=null==p?void 0:p[3];!g&&!y&&m.indexOf(".")<0&&(y=m,m=void 0);(m||g)&&l(e);return f(new o.ConnectionString(`mongodb://${m||h(e)}:${g||d(e)}/${encodeURIComponent(y||"")}`))}(e);if(t.hosts.every(e=>["localhost","127.0.0.1"].includes(e.split(":")[0]))){const e=t.searchParams;e.has("serverSelectionTimeoutMS")||e.set("serverSelectionTimeoutMS","2000")}return t.toString()}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.redactConnectionString=t.redactValidConnectionString=void 0;const o=s(n(120));t.redactValidConnectionString=function(e,t){var n,r;const i=e.clone(),s=null!==(n=null==t?void 0:t.replacementString)&&void 0!==n?n:"_credentials_",a=null===(r=null==t?void 0:t.redactUsernames)||void 0===r||r;if((i.username||i.password)&&a?(i.username=s,i.password=""):i.password&&(i.password=s),i.searchParams.has("authMechanismProperties")){const e=new o.CommaAndColonSeparatedRecord(i.searchParams.get("authMechanismProperties"));e.get("AWS_SESSION_TOKEN")&&(e.set("AWS_SESSION_TOKEN",s),i.searchParams.set("authMechanismProperties",e.toString()))}return i.searchParams.has("tlsCertificateKeyFilePassword")&&i.searchParams.set("tlsCertificateKeyFilePassword",s),i.searchParams.has("proxyUsername")&&a&&i.searchParams.set("proxyUsername",s),i.searchParams.has("proxyPassword")&&i.searchParams.set("proxyPassword",s),i},t.redactConnectionString=function(e,t){var n,r;const i=null!==(n=null==t?void 0:t.replacementString)&&void 0!==n?n:"<credentials>",s=null===(r=null==t?void 0:t.redactUsernames)||void 0===r||r;let a;try{a=new o.default(e)}catch(e){}if(a)return t={...t,replacementString:"___credentials___"},a.redact(t).toString().replace(/___credentials___/g,i);const l=[s?/(?<=\/\/)(.*)(?=@)/g:/(?<=\/\/[^@]+:)(.*)(?=@)/g,/(?<=AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,/(?<=tlsCertificateKeyFilePassword=)([^&]+)/gi,s?/(?<=proxyUsername=)([^&]+)/gi:null,/(?<=proxyPassword=)([^&]+)/gi];for(const t of l)null!==t&&(e=e.replace(t,i));return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapCliToDriver=void 0;const r=n(120);function i(e,t,n){return{...e,driverOptions:{...e.driverOptions,[t]:n}}}function s(e,t,n){var r;const s=e.driverOptions.serverApi,o="string"==typeof s?{version:s}:null!==(r={...s})&&void 0!==r?r:{};return o[t]=n,i(e,"serverApi",o)}function o(e,t,n){var r;const s=null!==(r=e.driverOptions.autoEncryption)&&void 0!==r?r:{};return s[t]=n,i(e,"autoEncryption",s)}function a(e,t,n){var r,i;const s=null!==(i=null===(r=e.driverOptions.autoEncryption)||void 0===r?void 0:r.extraOptions)&&void 0!==i?i:{};return s[t]=n,o(e,"extraOptions",s)}function l(e,t,n){var r,i;const{kmsProviders:s}=null!==(r=e.driverOptions.autoEncryption)&&void 0!==r?r:{},a=null!==(i=null==s?void 0:s.aws)&&void 0!==i?i:{};return a[t]=n,o(e,"kmsProviders",{...s,aws:a})}function u(e,t,n){const i=new r.ConnectionString(e.connectionString,{looseValidation:!0}),s=i.typedSearchParams();return""===n||void 0===n?s.delete(t):s.set(t,n),{...e,connectionString:i.toString()}}function c(e,t,n){const i=new r.ConnectionString(e.connectionString,{looseValidation:!0});return i[t]=n,{...e,connectionString:i.toString()}}function h(e,t,n){const i=new r.ConnectionString(e.connectionString,{looseValidation:!0}),s=new r.CommaAndColonSeparatedRecord(i.typedSearchParams().get("authMechanismProperties"));return""===n||void 0===n?s.delete(t):s.set(t,n),u(e,"authMechanismProperties",s)}const d={apiDeprecationErrors:(e,t)=>s(e,"deprecationErrors",t),apiStrict:(e,t)=>s(e,"strict",t),apiVersion:(e,t)=>s(e,"version",t),awsAccessKeyId:(e,t)=>l(e,"accessKeyId",t),awsSecretAccessKey:(e,t)=>l(e,"secretAccessKey",t),awsSessionToken:(e,t)=>l(e,"sessionToken",t),awsIamSessionToken:(e,t)=>h(e,"AWS_SESSION_TOKEN",t),csfleLibraryPath:(e,t)=>a(e,"cryptSharedLibPath",t),cryptSharedLibPath:(e,t)=>a(e,"cryptSharedLibPath",t),gssapiServiceName:(e,t)=>h(e,"SERVICE_NAME",t),sspiRealmOverride:(e,t)=>h(e,"SERVICE_REALM",t),sspiHostnameCanonicalization:(e,t)=>h(e,"CANONICALIZE_HOST_NAME",function(e){if(""===e)return;if("true"===e||"false"===e)return"true"===e;return e}(t)),authenticationDatabase:(e,t)=>u(e,"authSource",t),authenticationMechanism:(e,t)=>u(e,"authMechanism",t),keyVaultNamespace:(e,t)=>o(e,"keyVaultNamespace",t),password:(e,t)=>c(e,"password",encodeURIComponent(t)),quiet:(e,t)=>t?i(e,"loggerLevel","error"):e,retryWrites:(e,t)=>u(e,"retryWrites",t),tls:(e,t)=>u(e,"tls",t),tlsAllowInvalidCertificates:(e,t)=>u(e,"tlsAllowInvalidCertificates",t),tlsAllowInvalidHostnames:(e,t)=>u(e,"tlsAllowInvalidHostnames",t),tlsCAFile:(e,t)=>u(e,"tlsCAFile",t),tlsCRLFile:(e,t)=>u(e,"sslCRL",t),tlsCertificateKeyFile:(e,t)=>u(e,"tlsCertificateKeyFile",t),tlsCertificateKeyFilePassword:(e,t)=>u(e,"tlsCertificateKeyFilePassword",t),tlsUseSystemCA:(e,t)=>i(e,"useSystemCA",t),username:(e,t)=>c(e,"username",encodeURIComponent(t)),verbose:(e,t)=>t?i(e,"loggerLevel","debug"):e};function f(e,t,n){var r,i;return null!==(i=null===(r=d[t])||void 0===r?void 0:r.call(d,e,n))&&void 0!==i?i:e}function p(e,t){for(const n of Object.keys(e)){const r=e[n];r&&(t=f(t,n,r))}return t}t.mapCliToDriver=p,t.default=p},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(9),o=n(23),a=n(5),l=i(n(119)),u=n(7),c=n(13);let h=class extends s.ShellApiWithMongoClass{constructor(e,t,n){super(),this._session=n,this._options=t,this._mongo=e,this._databases={},this.id=n.id}[a.asPrintable](){return this._session.id}getDatabase(e){if((0,c.assertArgsDefinedType)([e],["string"],"Session.getDatabase"),!(0,c.isValidDatabaseName)(e))throw new u.MongoshInvalidInputError("Invalid database name: "+e,u.CommonErrors.InvalidArgument);return e in this._databases||(this._databases[e]=new l.default(this._mongo,e,this)),this._databases[e]}advanceOperationTime(e){this._session.advanceOperationTime(e)}advanceClusterTime(e){this._session.advanceClusterTime(e)}async endSession(){return await this._session.endSession()}hasEnded(){return this._session.hasEnded}getClusterTime(){return this._session.clusterTime}getOperationTime(){return this._session.operationTime}getOptions(){return this._options}startTransaction(e={}){return this._session.startTransaction(e)}async commitTransaction(){return await this._session.commitTransaction()}async abortTransaction(){return await this._session.abortTransaction()}async withTransaction(e,t={}){return(0,c.assertArgsDefinedType)([e,t],["function",[void 0,"object"]]),await this._session.withTransaction(async()=>await e(),t)}};r([s.returnsPromise],h.prototype,"endSession",null),r([s.returnsPromise],h.prototype,"commitTransaction",null),r([s.returnsPromise],h.prototype,"abortTransaction",null),r([s.returnsPromise],h.prototype,"withTransaction",null),h=r([s.shellApiClassDefault,(0,s.classPlatforms)([o.ReplPlatform.CLI])],h),t.default=h},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.KeyVault=t.ClientEncryption=void 0;const i=n(9),s=n(23),o=n(13),a=n(5),l=n(32),u=n(7),c=e=>!Array.isArray(e)&&"object"==typeof e&&("masterKey"in e||"keyAltNames"in e||"keyMaterial"in e);let h=class extends i.ShellApiWithMongoClass{constructor(e){super(),this._mongo=e;const t=e._serviceProvider.fle;if(!t)throw new u.MongoshRuntimeError("FLE API is not available");const n={...this._mongo._fleOptions};delete n.schemaMap,delete n.encryptedFieldsMap,this._libmongocrypt=new t.ClientEncryption(e._serviceProvider.getRawClient(),n)}[a.asPrintable](){return"ClientEncryption class for "+(0,l.redactURICredentials)(this._mongo._uri)}async encrypt(e,t,n){let r;return r="object"==typeof n?{keyId:e,...n}:{keyId:e,algorithm:n},(0,o.assertArgsDefinedType)([e,t,r],[!0,!0,!0],"ClientEncryption.encrypt"),await this._libmongocrypt.encrypt(t,r)}async decrypt(e){return(0,o.assertArgsDefinedType)([e],[!0],"ClientEncryption.decrypt"),await this._libmongocrypt.decrypt(e)}};r([i.returnsPromise],h.prototype,"encrypt",null),r([i.returnsPromise],h.prototype,"decrypt",null),h=r([i.shellApiClassDefault,(0,i.classPlatforms)([s.ReplPlatform.CLI])],h),t.ClientEncryption=h;let d=class extends i.ShellApiWithMongoClass{constructor(e){var t,n,r;super(),this._mongo=e._mongo,this._clientEncryption=e;const i=null===(n=null===(t=this._mongo)||void 0===t?void 0:t._fleOptions)||void 0===n?void 0:n.keyVaultNamespace;if(!i)throw new u.MongoshInvalidInputError("FLE options must be passed to the Mongo object");const s=null===(r=i.match(/^(?<db>[^.]+)\.(?<coll>.+)$/))||void 0===r?void 0:r.groups;if(!s)throw new u.MongoshInvalidInputError(`Invalid keyVaultNamespace '${i}'`);const{db:o,coll:a}=s;this._keyColl=this._mongo.getDB(o).getCollection(a)}async _init(){var e;if(!(null===(e=this._mongo._fleOptions)||void 0===e?void 0:e.bypassQueryAnalysis)){try{if((await this._keyColl.getIndexKeys()).some(e=>e.keyAltNames))return}catch(e){}try{await this._keyColl.updateMany({keyAltNames:{$size:0}},{$unset:{keyAltNames:""},$currentDate:{updateDate:!0}}),await this._keyColl.createIndex({keyAltNames:1},{unique:!0,partialFilterExpression:{keyAltNames:{$exists:!0}}})}catch(e){await this._instanceState.printWarning(`Creating 'keyAltNames' index on '${this._keyColl.getFullName()}' failed: ${e.message}`)}}}[a.asPrintable](){return"KeyVault class for "+(0,l.redactURICredentials)(this._mongo._uri)}async createKey(e,t,n){let r,i,s,a;if(c(t)?(r=null==t?void 0:t.masterKey,i=null==t?void 0:t.keyAltNames,s=null==t?void 0:t.keyMaterial):(e=>!Array.isArray(e)&&"object"==typeof e&&!c(e))(t)&&(r=t),n&&(i=n),(0,o.assertArgsDefinedType)([e],[!0],"KeyVault.createKey"),"string"==typeof t){if("local"!==e||""!==t)throw new u.MongoshInvalidInputError('KeyVault.createKey does not support providing masterKey as string anymore. For AWS please use createKey("aws", { region: ..., key: ... })',u.CommonErrors.Deprecated);r=void 0}else if(Array.isArray(t)){if("local"!==e)throw new u.MongoshInvalidInputError("KeyVault.createKey requires masterKey to be given as second argument if KMS is not local",u.CommonErrors.InvalidArgument);if(i)throw new u.MongoshInvalidInputError("KeyVault.createKey was supplied with an array for the masterKey and keyAltNames - either specify keyAltNames as second argument or set undefined for masterKey",u.CommonErrors.InvalidArgument);i=t,r=void 0}return r&&(a={...null!=a?a:{},masterKey:r}),i&&(a={...null!=a?a:{},keyAltNames:i}),s&&(a={...null!=a?a:{},keyMaterial:s}),await this._clientEncryption._libmongocrypt.createDataKey(e,a)}async getKey(e){return(0,o.assertArgsDefinedType)([e],[!0],"KeyVault.getKey"),this._keyColl.find({_id:e})}async getKeyByAltName(e){return(0,o.assertArgsDefinedType)([e],["string"],"KeyVault.getKeyByAltName"),this._keyColl.find({keyAltNames:e})}async getKeys(){return this._keyColl.find({})}async deleteKey(e){return(0,o.assertArgsDefinedType)([e],[!0],"KeyVault.deleteKey"),this._keyColl.deleteOne({_id:e})}async addKeyAlternateName(e,t){return(0,o.assertArgsDefinedType)([e,t],[!0,"string"],"KeyVault.addKeyAlternateName"),this._keyColl.findAndModify({query:{_id:e},update:{$addToSet:{keyAltNames:t},$currentDate:{updateDate:!0}}})}async removeKeyAlternateName(e,t){(0,o.assertArgsDefinedType)([e,t],[!0,"string"],"KeyVault.removeKeyAlternateName");const n=await this._keyColl.findAndModify({query:{_id:e},update:{$pull:{keyAltNames:t},$currentDate:{updateDate:!0}}});return null!==n&&void 0!==n.keyAltNames&&1===n.keyAltNames.length&&n.keyAltNames[0]===t?this._keyColl.findAndModify({query:{_id:e,keyAltNames:{$size:0}},update:{$unset:{keyAltNames:""},$currentDate:{updateDate:!0}}}):n}async rewrapManyDataKey(e,t){return this._clientEncryption._libmongocrypt.rewrapManyDataKey(e,t)}async createDataKey(...e){return await this.createKey(...e)}async removeKeyAltName(...e){return await this.removeKeyAlternateName(...e)}async addKeyAltName(...e){return await this.addKeyAlternateName(...e)}};r([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"createKey",null),r([(0,i.returnType)("Cursor"),(0,i.apiVersions)([1]),i.returnsPromise],d.prototype,"getKey",null),r([(0,i.returnType)("Cursor"),(0,i.apiVersions)([1]),i.returnsPromise],d.prototype,"getKeyByAltName",null),r([(0,i.returnType)("Cursor"),(0,i.apiVersions)([1]),i.returnsPromise],d.prototype,"getKeys",null),r([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"deleteKey",null),r([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"addKeyAlternateName",null),r([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"removeKeyAlternateName",null),r([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"rewrapManyDataKey",null),r([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"createDataKey",null),r([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"removeKeyAltName",null),r([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"addKeyAltName",null),d=r([i.shellApiClassDefault,(0,i.classPlatforms)([s.ReplPlatform.CLI])],d),t.KeyVault=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAnyLogEntry=void 0,t.parseAnyLogEntry=function(e){var t;try{const n=JSON.parse(e);return{id:n.id,timestamp:null===(t=n.t)||void 0===t?void 0:t.$date,severity:n.s,component:n.c,context:n.ctx,message:n.msg,attr:n.attr}}catch(t){return function(e){const t=e.trim().match(/^(?<timestamp>\S*) *(?<severity>\S*) *(?<component>\S*) *\[(?<context>[^\]]+)\]\s*(?<message>.*)$/);if(!t)throw new Error("Could not parse line "+JSON.stringify(e));return t.groups}(e)}}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.DBQuery=void 0;const i=n(9);let s=class extends i.ShellApiClass{constructor(e){super(),this._instanceState=e}get shellBatchSize(){return this._instanceState.displayBatchSizeFromDBQuery}set shellBatchSize(e){this._instanceState.printDeprecationWarning('DBQuery.shellBatchSize is deprecated, please use config.set("displayBatchSize") instead'),this._instanceState.displayBatchSizeFromDBQuery=e}};s=r([i.shellApiClassDefault,i.classDeprecated],s),t.DBQuery=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CliUserConfigValidator=t.CliUserConfig=t.SnippetShellUserConfigValidator=t.SnippetShellUserConfig=t.ShellUserConfigValidator=t.ShellUserConfig=void 0;class r{constructor(){this.displayBatchSize=20,this.maxTimeMS=null,this.enableTelemetry=!1,this.editor=null}}t.ShellUserConfig=r;class i{static async validate(e,t){switch(e){case"displayBatchSize":return"number"!=typeof t||t<=0?e+" must be a positive integer":null;case"maxTimeMS":return null!==t&&("number"!=typeof t||t<=0)?e+" must be null or a positive integer":null;case"enableTelemetry":return"boolean"!=typeof t?e+" must be a boolean":null;case"editor":return"string"!=typeof t&&null!==t?e+" must be a string or null":null;default:return e+" is not a known config option"}}}t.ShellUserConfigValidator=i;class s extends r{constructor(){super(...arguments),this.snippetIndexSourceURLs="https://compass.mongodb.com/mongosh/snippets-index.bson.br",this.snippetRegistryURL="https://registry.npmjs.org",this.snippetAutoload=!0}}t.SnippetShellUserConfig=s;class o extends i{static async validate(e,t){switch(e){case"snippetIndexSourceURLs":return"string"!=typeof t||t.split(";").some(e=>e&&!a(e))?e+" must be a ;-separated list of valid URLs":null;case"snippetRegistryURL":return"string"==typeof t&&a(t)?null:e+" must be a valid URL";case"snippetAutoload":return"boolean"!=typeof t?e+" must be a boolean":null;default:return super.validate(e,t)}}}t.SnippetShellUserConfigValidator=o;t.CliUserConfig=class extends s{constructor(){super(...arguments),this.userId="",this.telemetryAnonymousId="",this.disableGreetingMessage=!1,this.forceDisableTelemetry=!1,this.inspectCompact=3,this.inspectDepth=6,this.historyLength=1e3,this.showStackTraces=!1,this.redactHistory="remove"}};function a(e){if("function"==typeof URL)try{return new URL(e),!0}catch(e){return!1}return!0}t.CliUserConfigValidator=class extends o{static async validate(e,t){switch(e){case"userId":case"telemetryAnonymousId":case"disableGreetingMessage":return null;case"inspectCompact":return"boolean"!=typeof t&&("number"!=typeof t||t<0)?e+" must be a boolean or a positive integer":null;case"inspectDepth":case"historyLength":return"number"!=typeof t||t<0?e+" must be a positive integer":null;case"forceDisableTelemetry":case"showStackTraces":return"boolean"!=typeof t?e+" must be a boolean":null;case"redactHistory":return"keep"!==t&&"remove"!==t&&"remove-redact"!==t?e+" must be one of 'keep', 'remove', or 'remove-redact'":null;default:return super.validate(e,t)}}}},function(e){e.exports=JSON.parse('{"name":"@mongosh/shell-api","version":"1.5.2","description":"MongoDB Shell API Classes Package","main":"lib/index.js","types":"lib/index.d.ts","config":{"unsafe-perm":true},"repository":{"type":"git","url":"git://github.com/mongodb-js/mongosh.git"},"scripts":{"compile-ts":"tsc -p tsconfig.json","pretest":"npm run compile-ts","lint":"eslint --report-unused-disable-directives \\"./{src,test}/**/*.{js,ts,tsx}\\"","check":"npm run lint && depcheck --skip-missing=true","report-missing-help":"ts-node bin/report-missing-help.ts","report-supported-api":"ts-node bin/report-supported-api.ts","test":"cross-env TS_NODE_PROJECT=../../config/tsconfig.test.json mocha -r \\"../../scripts/import-expansions.js\\" --timeout 60000 -r ts-node/register \\"./src/**/*.spec.ts\\"","test-ci":"node ../../scripts/run-if-package-requested.js npm test","test-apistrict-ci":"cross-env MONGOSH_TEST_FORCE_API_STRICT=1 npm run test-ci","prepublish":"npm run compile-ts"},"license":"Apache-2.0","publishConfig":{"access":"public"},"engines":{"node":">=14.15.1"},"precommit":["build"],"dependencies":{"@mongosh/arg-parser":"1.5.2","@mongosh/errors":"1.5.2","@mongosh/history":"1.5.2","@mongosh/i18n":"1.5.2","@mongosh/service-provider-core":"1.5.2","mongodb-redact":"^0.2.2"},"devDependencies":{"@mongosh/types":"1.5.2"},"gitHead":"b5c5a3c233495a6e70b449edc61cb8bf17c12ccc"}')},function(e,t,n){const r=n(52);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},function(e,t,n){const r=n(52);e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},function(e,t,n){const r=n(12);e.exports=(e,t,n,i)=>{"string"==typeof n&&(i=n,n=void 0);try{return new r(e,n).inc(t,i).version}catch(e){return null}}},function(e,t,n){const r=n(52),i=n(123);e.exports=(e,t)=>{if(i(e,t))return null;{const n=r(e),i=r(t),s=n.prerelease.length||i.prerelease.length,o=s?"pre":"",a=s?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==i[e])return o+e;return a}}},function(e,t,n){const r=n(12);e.exports=(e,t)=>new r(e,t).major},function(e,t,n){const r=n(12);e.exports=(e,t)=>new r(e,t).minor},function(e,t,n){const r=n(12);e.exports=(e,t)=>new r(e,t).patch},function(e,t,n){const r=n(52);e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},function(e,t,n){const r=n(19);e.exports=(e,t,n)=>r(t,e,n)},function(e,t,n){const r=n(19);e.exports=(e,t)=>r(e,t,!0)},function(e,t,n){const r=n(124);e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t))},function(e,t,n){const r=n(124);e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t))},function(e,t,n){const r=n(12),i=n(52),{re:s,t:o}=n(51);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=s[o.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),s[o.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;s[o.COERCERTL].lastIndex=-1}else n=e.match(s[o.COERCE]);return null===n?null:i(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)}},function(e,t,n){"use strict";const r=n(490),i=Symbol("max"),s=Symbol("length"),o=Symbol("lengthCalculator"),a=Symbol("allowStale"),l=Symbol("maxAge"),u=Symbol("dispose"),c=Symbol("noDisposeOnSet"),h=Symbol("lruList"),d=Symbol("cache"),f=Symbol("updateAgeOnGet"),p=()=>1;const m=(e,t,n)=>{const r=e[d].get(t);if(r){const t=r.value;if(g(e,t)){if(v(e,r),!e[a])return}else n&&(e[f]&&(r.value.now=Date.now()),e[h].unshiftNode(r));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[l])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[l]&&n>e[l]},y=e=>{if(e[s]>e[i])for(let t=e[h].tail;e[s]>e[i]&&null!==t;){const n=t.prev;v(e,t),t=n}},v=(e,t)=>{if(t){const n=t.value;e[u]&&e[u](n.key,n.value),e[s]-=n.length,e[d].delete(n.key),e[h].removeNode(t)}};class b{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const w=(e,t,n,r)=>{let i=n.value;g(e,i)&&(v(e,n),e[a]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[i]=e.max||1/0;const t=e.length||p;if(this[o]="function"!=typeof t?p:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[u]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[f]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,y(this)}get max(){return this[i]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[l]=e,y(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=p),e!==this[o]&&(this[o]=e,this[s]=0,this[h].forEach(e=>{e.length=this[o](e.value,e.key),this[s]+=e.length})),y(this)}get lengthCalculator(){return this[o]}get length(){return this[s]}get itemCount(){return this[h].length}rforEach(e,t){t=t||this;for(let n=this[h].tail;null!==n;){const r=n.prev;w(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[h].head;null!==n;){const r=n.next;w(this,e,n,t),n=r}}keys(){return this[h].toArray().map(e=>e.key)}values(){return this[h].toArray().map(e=>e.value)}reset(){this[u]&&this[h]&&this[h].length&&this[h].forEach(e=>this[u](e.key,e.value)),this[d]=new Map,this[h]=new r,this[s]=0}dump(){return this[h].map(e=>!g(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[h]}set(e,t,n){if((n=n||this[l])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,a=this[o](t,e);if(this[d].has(e)){if(a>this[i])return v(this,this[d].get(e)),!1;const o=this[d].get(e).value;return this[u]&&(this[c]||this[u](e,o.value)),o.now=r,o.maxAge=n,o.value=t,this[s]+=a-o.length,o.length=a,this.get(e),y(this),!0}const f=new b(e,t,a,r,n);return f.length>this[i]?(this[u]&&this[u](e,t),!1):(this[s]+=f.length,this[h].unshift(f),this[d].set(e,this[h].head),y(this),!0)}has(e){if(!this[d].has(e))return!1;const t=this[d].get(e).value;return!g(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[h].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[d].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[d].forEach((e,t)=>m(this,t,!1))}}},function(e,t,n){"use strict";function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)t.push(arguments[n]);return t}function i(e,t,n){var r=t===e.head?new a(n,null,t,e):new a(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function s(e,t){e.tail=new a(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function o(e,t){e.head=new a(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function a(e,t,n,r){if(!(this instanceof a))return new a(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=r,r.Node=a,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},r.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)s(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},r.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},r.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},r.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},r.prototype.map=function(e,t){t=t||this;for(var n=new r,i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r,i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n},r.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,s=this.head;null!==s&&i<e;i++)s=s.next;for(;null!==s&&i<t;i++,s=s.next)n.push(s.value);return n},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,s=this.tail;null!==s&&i>t;i--)s=s.prev;for(;null!==s&&i>e;i--,s=s.prev)n.push(s.value);return n},r.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,s=this.head;null!==s&&r<e;r++)s=s.next;var o=[];for(r=0;s&&r<t;r++)o.push(s.value),s=this.removeNode(s);null===s&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(r=0;r<n.length;r++)s=i(this,s,n[r]);return o},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{n(491)(r)}catch(e){}},function(e,t,n){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},function(e,t,n){const r=n(20);e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},function(e,t,n){const r=n(12),i=n(20);e.exports=(e,t,n)=>{let s=null,o=null,a=null;try{a=new i(t,n)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(s&&-1!==o.compare(e)||(s=e,o=new r(s,n)))}),s}},function(e,t,n){const r=n(12),i=n(20);e.exports=(e,t,n)=>{let s=null,o=null,a=null;try{a=new i(t,n)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(s&&1!==o.compare(e)||(s=e,o=new r(s,n)))}),s}},function(e,t,n){const r=n(12),i=n(20),s=n(74);e.exports=(e,t)=>{e=new i(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const i=e.set[t];let o=null;i.forEach(e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!s(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}),!o||n&&!s(n,o)||(n=o)}return n&&e.test(n)?n:null}},function(e,t,n){const r=n(20);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},function(e,t,n){const r=n(128);e.exports=(e,t,n)=>r(e,t,">",n)},function(e,t,n){const r=n(128);e.exports=(e,t,n)=>r(e,t,"<",n)},function(e,t,n){const r=n(20);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t))},function(e,t,n){const r=n(76),i=n(19);e.exports=(e,t,n)=>{const s=[];let o=null,a=null;const l=e.sort((e,t)=>i(e,t,n));for(const e of l){r(e,t,n)?(a=e,o||(o=e)):(a&&s.push([o,a]),a=null,o=null)}o&&s.push([o,null]);const u=[];for(const[e,t]of s)e===t?u.push(e):t||e!==l[0]?t?e===l[0]?u.push("<="+t):u.push(`${e} - ${t}`):u.push(">="+e):u.push("*");const c=u.join(" || "),h="string"==typeof t.raw?t.raw:String(t);return c.length<h.length?c:t}},function(e,t,n){const r=n(20),i=n(75),{ANY:s}=i,o=n(76),a=n(19),l=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===s){if(1===t.length&&t[0].semver===s)return!0;e=n.includePrerelease?[new i(">=0.0.0-0")]:[new i(">=0.0.0")]}if(1===t.length&&t[0].semver===s){if(n.includePrerelease)return!0;t=[new i(">=0.0.0")]}const r=new Set;let l,h,d,f,p,m,g;for(const t of e)">"===t.operator||">="===t.operator?l=u(l,t,n):"<"===t.operator||"<="===t.operator?h=c(h,t,n):r.add(t.semver);if(r.size>1)return null;if(l&&h){if(d=a(l.semver,h.semver,n),d>0)return null;if(0===d&&(">="!==l.operator||"<="!==h.operator))return null}for(const e of r){if(l&&!o(e,String(l),n))return null;if(h&&!o(e,String(h),n))return null;for(const r of t)if(!o(e,String(r),n))return!1;return!0}let y=!(!h||n.includePrerelease||!h.semver.prerelease.length)&&h.semver,v=!(!l||n.includePrerelease||!l.semver.prerelease.length)&&l.semver;y&&1===y.prerelease.length&&"<"===h.operator&&0===y.prerelease[0]&&(y=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,l)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),">"===e.operator||">="===e.operator){if(f=u(l,e,n),f===e&&f!==l)return!1}else if(">="===l.operator&&!o(l.semver,String(e),n))return!1;if(h)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if(p=c(h,e,n),p===e&&p!==h)return!1}else if("<="===h.operator&&!o(h.semver,String(e),n))return!1;if(!e.operator&&(h||l)&&0!==d)return!1}return!(l&&m&&!h&&0!==d)&&(!(h&&g&&!l&&0!==d)&&(!v&&!y))},u=(e,t,n)=>{if(!e)return t;const r=a(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},c=(e,t,n)=>{if(!e)return t;const r=a(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(const r of e.set){for(const e of t.set){const t=l(r,e,n);if(i=i||null!==t,t)continue e}if(i)return!1}return!0}},function(e,t,n){e.exports=n(129),e.exports.QueryAutoCompleter=n(129),e.exports.StageAutoCompleter=n(503),e.exports.ValidationAutoCompleter=n(504),e.exports.ACCUMULATORS=n(215),e.exports.BSON_TYPES=n(77),e.exports.EXPRESSION_OPERATORS=n(214),e.exports.CONVERSION_OPERATORS=n(213),e.exports.QUERY_OPERATORS=n(130),e.exports.STAGE_OPERATORS=n(505),e.exports.JSON_SCHEMA=n(216),e.exports.BSON_TYPE_ALIASES=n(217);const{ATLAS:r,ADL:i,ON_PREM:s,ENVS:o}=n(218);e.exports.ATLAS=r,e.exports.ADL=i,e.exports.ON_PREM=s,e.exports.ENVS=o},function(e,t,n){const r=n(121),i=n(213),s=n(214),o=n(215),a=n(77),l=n(129),u=n(131),c=s.concat(i.concat(a));e.exports=class{accumulators(){if(this.stageOperator){if("$project"===this.stageOperator)return o.filter(e=>e.projectVersion&&r.gte(this.version,e.projectVersion));if("$group"===this.stageOperator)return o}return[]}constructor(e,t,n,r){this.version=e,this.textCompleter=t,this.fields=n,this.variableFields=this.generateVariableFields(n),this.stageOperator=r,this.queryAutoCompleter=new l(e,t,n)}update(e,t){this.fields=e,this.variableFields=this.generateVariableFields(e),this.queryAutoCompleter.fields=e,this.stageOperator=t}generateVariableFields(e){return e.map(e=>({name:"$"+e.name.replace(/"/g,""),value:"$"+e.value.replace(/"/g,""),meta:e.meta,version:e.version,score:1}))}getCompletions(e,t,n,r,i){if(""===r)return i(null,[]);const s=t.getTokenAt(n.row,n.column);if("string"===s.type)return"$"===r?i(null,this.variableFields):this.textCompleter.getCompletions(e,t,n,r,i);if(s.type.includes("comment"))return i(null,[]);if(!this.stageOperator||"$match"!==this.stageOperator){const e=c.concat(this.accumulators()).concat(this.fields);return i(null,u(this.version,e,r))}this.queryAutoCompleter.getCompletions(e,t,n,r,i)}}},function(e,t,n){const r=n(130),i=n(77),s=n(216),o=n(217),a=n(131),l=r.concat(i);e.exports=class{constructor(e,t,n){this.version=e,this.textCompleter=t,this.fields=n}update(e){this.fields=e}getCompletions(e,t,n,r,i){if(""===r)return i(null,[]);if("string"===t.getTokenAt(n.row,n.column).type){const e=o.concat(this.fields);return i(null,a(this.version,e,r))}const u=l.concat(this.fields,s);return i(null,a(this.version,u,r))}}},function(e,t,n){const{ATLAS:r,ADL:i,ON_PREM:s}=n(218),o=[{name:"$addFields",value:"$addFields",label:"$addFields",score:1,env:[r,i,s],meta:"stage",version:"3.4.0",apiVersions:[1],description:"Adds new field(s) to a document with a computed value, or reassigns an existing field(s) with a computed value.",comment:"/**\n * newField: The new field name.\n * expression: The new field expression.\n */\n",snippet:"{\n ${1:newField}: ${2:expression}, ${3:...}\n}"},{name:"$bucket",value:"$bucket",label:"$bucket",score:1,env:[r,i,s],meta:"stage",version:"3.4.0",apiVersions:[1],description:"Categorizes incoming documents into groups, called buckets, based on specified boundaries.",comment:"/**\n * groupBy: The expression to group by.\n * boundaries: An array of the lower boundaries for each bucket.\n * default: The bucket name for documents that do not fall within the specified boundaries\n * output: {\n * outputN: Optional. The output object may contain a single or numerous field names used to accumulate values per bucket.\n * }\n */\n",snippet:"{\n groupBy: ${1:expression},\n boundaries: [ ${2:lowerbound}, ${3:...} ],\n default: ${4:literal},\n output: {\n ${5:outputN}: { ${6:accumulator} }, ${7:...}\n }\n}"},{name:"$bucketAuto",value:"$bucketAuto",label:"$bucketAuto",score:1,env:[r,i,s],meta:"stage",version:"3.4.0",apiVersions:[1],description:"Automatically categorizes documents into a specified number of buckets, attempting even distribution if possible.",comment:"/**\n * groupBy: The expression to group by.\n * buckets: The desired number of buckets\n * output: {\n * outputN: Optional. The output object may contain a single or numerous field names used to accumulate values per bucket.\n * }\n * granularity: Optional number series\n */\n",snippet:"{\n groupBy: ${1:expression},\n buckets: ${2:number},\n output: {\n ${3:outputN}: ${4:accumulator}, ${5:...}\n },\n granularity: '${6:string}'\n}"},{name:"$collStats",value:"$collStats",label:"$collStats",score:1,env:[r,i,s],meta:"stage",version:"3.4.0",apiVersions:[],description:"Returns statistics regarding a collection or view.",comment:"/**\n * histograms: Optional latency histograms.\n * storageStats: Optional storage stats.\n*/\n",snippet:"{\n latencyStats: {\n histograms: ${1:boolean}\n },\n storageStats: {${2:}},\n}"},{name:"$count",value:"$count",label:"$count",score:1,env:[r,i,s],meta:"stage",version:"2.2.0",apiVersions:[1],description:"Returns a count of the number of documents at this stage of the aggregation pipeline.",comment:"/**\n * Provide the field name for the count.\n */\n",snippet:"'${1:string}'"},{name:"$densify",value:"$densify",label:"$densify",score:1,env:[r,i,s],meta:"stage",version:"5.1.0",apiVersions:[1],description:"Creates new documents to eliminate the gaps in the time or numeric domain at the required granularity level.",comment:"/**\n * field: The required field to densify.\n * partitionByFields: The set of fields that acts as a compound key to define each partition.\n * range: {\n * step: The amount to increment the field value in each document.\n * unit: If specified field must evaluate to a date for every document in the collection, otherwise must evaluate to a numeric.\n * bounds: A string or array of numeric/date bounds, corresponding to the type of the field.\n * }\n */\n",snippet:"{\n field: ${1:string},\n partitionByFields: [${2:string}, ${3:string}, ...],\n range: {\n step: ${4:number},\n unit: ${5:string},\n bounds: [${6:lowerbound}, ${7:upperbound}, ...]\n }\n}"},{name:"$documents",value:"$documents",label:"$documents",score:1,env:[r],meta:"stage",version:"4.4.9",apiVersions:[1],description:"Returns literal results for a full-text search.",comment:"/**\n * expression: Any valid expression.\n */\n",snippet:"{\n ${1:expression}\n}"},{name:"$facet",value:"$facet",label:"$facet",score:1,env:[r,i,s],meta:"stage",version:"3.4.0",apiVersions:[1],description:"Allows for multiple parellel aggregations to be specified.",comment:"/**\n * outputFieldN: The first output field.\n * stageN: The first aggregation stage.\n */\n",snippet:"{\n ${1:outputFieldN}: [ ${2:stageN}, ${3:...} ]\n}"},{name:"$fill",value:"$fill",label:"$fill",score:1,env:[r,i,s],meta:"stage",version:"5.3.0",apiVersions:[1],description:"Populates null and missing field values within documents.",comment:'/**\n * sortBy: Syntax is the same as $sort, required if "method" is used in at least one output spec otherwise optional\n * partitionBy: Optional, default is a single partition. Specification is the same as _id in $group (same as partitionBy in window functions).\n * partitionByFields: Optional, set of fields that acts as a compound key to define each partition.\n * output - Required, object for each field to fill in. For a single field, can be a single object.\n * output.<field> - A field to be filled with value, if missing or null in the current document.\n */\n',snippet:"{\n sortBy: ${1:sortSpec},\n partitionBy: ${2:expression},\n partitionByFields: [${3:string}, ${4:string}, ...],\n output: {\n field1: {value: ${5:expression}},\n field2: {method: ${6:string}},\n ...\n }\n}"},{name:"$geoNear",value:"$geoNear",label:"$geoNear",score:1,env:[r,i,s],meta:"stage",version:"2.4.0",apiVersions:[1],description:"Returns documents based on proximity to a geospatial point.",comment:"/**\n * near: The point to search near.\n * distanceField: The calculated distance.\n * maxDistance: The maximum distance, in meters, documents can be before being excluded from results.\n * query: Limits results that match the query\n * includeLocs: Optional. Labels and includes the point used to match the document.\n * num: Optional. The maximum number of documents to return.\n * spherical: Defaults to false. Specifies whether to use spherical geometry.\n}",snippet:"{\n near: { type: 'Point', coordinates: [ ${1:number}, ${2:number} ] },\n distanceField: '${3:string}',\n maxDistance: ${4:number},\n query: {${5}},\n includeLocs: '${6}',\n num: ${7:number},\n spherical: ${8:boolean}\n}"},{name:"$graphLookup",value:"$graphLookup",label:"$graphLookup",score:1,env:[r,i,s],meta:"stage",version:"3.4.0",apiVersions:[1],description:"Performs a recursive search on a collection.",comment:"/**\n * from: The target collection.\n * startWith: Expression to start.\n * connectFromField: Field to connect.\n * connectToField: Field to connect to.\n * as: Name of the array field.\n * maxDepth: Optional max recursion depth.\n * depthField: Optional Name of the depth field.\n * restrictSearchWithMatch: Optional query.\n */\n",snippet:"{\n from: '${1:string}',\n startWith: ${2:expression},\n connectFromField: '${3:string}',\n connectToField: '${4:string}',\n as: '${5:string}',\n maxDepth: ${6:number},\n depthField: '${7:string}',\n restrictSearchWithMatch: {${8}}\n}"},{name:"$group",value:"$group",label:"$group",score:1,env:[r,i,s],meta:"stage",version:"2.2.0",apiVersions:[1],description:"Groups documents by a specified expression.",comment:"/**\n * _id: The id of the group.\n * fieldN: The first field name.\n */\n",snippet:"{\n _id: ${1:expression},\n ${2:fieldN}: {\n ${3:accumulatorN}: ${4:expressionN}\n }\n}"},{name:"$indexStats",value:"$indexStats",label:"$indexStats",score:1,env:[r,i,s],meta:"stage",version:"3.2.0",apiVersions:[],description:"Returns statistics regarding the use of each index for the collection.",comment:"/**\n * No parameters.\n */\n",snippet:"{}"},{name:"$limit",value:"$limit",label:"$limit",score:1,env:[r,i,s],meta:"stage",version:"2.2.0",apiVersions:[1],description:"Limits the number of documents that flow into subsequent stages.",comment:"/**\n * Provide the number of documents to limit.\n */\n",snippet:"${1:number}"},{name:"$lookup",value:"$lookup",label:"$lookup",score:1,env:[r,i,s],meta:"stage",version:"3.2.0",apiVersions:[1],description:"Performs a join between two collections.",comment:"/**\n * from: The target collection.\n * localField: The local join field.\n * foreignField: The target join field.\n * as: The name for the results.\n * pipeline: The pipeline to run on the joined collection.\n * let: Optional variables to use in the pipeline field stages.\n */\n",snippet:"{\n from: '${1:string}',\n localField: '${2:string}',\n foreignField: '${3:string}',\n as: '${4:string}'\n}"},{name:"$match",value:"$match",label:"$match",score:1,env:[r,i,s],meta:"stage",version:"2.2.0",apiVersions:[1],description:"Filters the document stream to allow only matching documents to pass through to subsequent stages.",comment:"/**\n * query: The query in MQL.\n */\n",snippet:"{\n ${1:query}\n}"},{name:"$merge",value:"$merge",label:"$merge",score:1,env:[r,i,s],meta:"stage",version:"4.1.11",apiVersions:[1],description:"Merges the resulting documents into a collection, optionally overriding existing documents.",comment:"/**\n * into: The target collection.\n * on: Fields to identify.\n * let: Defined variables.\n * whenMatched: Action for matching docs.\n * whenNotMatched: Action for non-matching docs.\n */\n",snippet:"{\n into: '${1:string}',\n on: '${2:string}',\n let: '${3:specification(s)}',\n whenMatched: '${4:string}',\n whenNotMatched: '${5:string}'\n}"},{name:"$out",value:"$out",label:"$out",score:1,env:[r,s],meta:"stage",version:"2.2.0",apiVersions:[1],description:"Writes the result of a pipeline to a new or existing collection.",comment:"/**\n * Provide the name of the output collection.\n */\n",snippet:"'${1:string}'"},{name:"$out",value:"$out",label:"$out",score:1,env:[i],meta:"stage",version:"4.0.0",apiVersions:[1],description:"Writes the result of a pipeline to an Atlas cluster or S3 bucket.",comment:"/**\n * s3Url: A S3 URL to save the data.\n * atlas: Parameters to save to Atlas.\n */\n",snippet:"{\n s3: '${1:s3url}'\n atlas: {\n db: '${2:db}',\n coll: '${3:coll}',\n projectId: '${4:projectId}',\n clusterName: '${5:clusterName}'\n }\n}"},{name:"$project",value:"$project",label:"$project",score:1,env:[r,i,s],meta:"stage",version:"2.2.0",apiVersions:[1],description:"Adds new field(s) to a document with a computed value, or reassigns an existing field(s) with a computed value. Unlike $addFields, $project can also remove fields.",comment:"/**\n * specifications: The fields to\n * include or exclude.\n */\n",snippet:"{\n ${1:specification(s)}\n}"},{name:"$redact",value:"$redact",label:"$redact",score:1,env:[r,i,s],meta:"stage",version:"2.6.0",apiVersions:[1],description:"Restricts the content for each document based on information stored in the documents themselves",comment:"/**\n * expression: Any valid expression that\n * evaluates to $$DESCEND, $$PRUNE, or $$KEEP.\n */\n",snippet:"{\n ${1:expression}\n}"},{name:"$replaceWith",value:"$replaceWith",label:"$replaceWith",score:1,env:[r,i,s],meta:"stage",version:"4.2.0",apiVersions:[1],description:"Replaces a document with the specified embedded document.",comment:"/**\n * replacementDocument: A document or string.\n */\n",snippet:"{\n newWith: ${1:replacementDocument}\n}"},{name:"$replaceRoot",value:"$replaceRoot",label:"$replaceRoot",score:1,env:[r,i,s],meta:"stage",version:"3.4.0",apiVersions:[1],description:"Replaces a document with the specified embedded document.",comment:"/**\n * replacementDocument: A document or string.\n */\n",snippet:"{\n newRoot: ${1:replacementDocument}\n}"},{name:"$sample",value:"$sample",label:"$sample",score:1,env:[r,i,s],meta:"stage",version:"3.2.0",apiVersions:[1],description:"Randomly selects the specified number of documents from its input.",comment:"/**\n * size: The number of documents to sample.\n */\n",snippet:"{\n size: ${1:number}\n}"},{name:"$search",value:"$search",label:"$search",score:1,env:[r],meta:"stage",version:"4.1.11",apiVersions:[],description:"Performs a full-text search on the specified field(s).",comment:"/** \n * index: The name of the Search index.\n * text: Analyzed search, with required fields of query and path, the analyzed field(s) to search.\n * term: Un-analyzed search.\n * compound: Combines ops.\n * span: Find in text field regions.\n * exists: Test for presence of a field.\n * near: Find near number or date.\n * range: Find in numeric or date range.\n */\n",snippet:"{\n index: '${1:string}',\n text: {\n query: '${2:string}',\n path: '${3:string}'\n }\n}"},{name:"$searchMeta",value:"$searchMeta",label:"$searchMeta",score:1,env:[r],meta:"stage",version:"4.4.9",apiVersions:[],description:"Performs a full-text search on the specified field(s) and gets back only the generated search meta data from a query.",comment:"/**\n * index: The name of the Search index.\n * count: The count of the results.\n * facet: {\n * operator: Analyzed search, with required fields of query and path, can either be replaced with the name of a valid operator.\n * facets: {\n * stringFacet: Narrows search results based on unique string values, with required fields of type and path.\n * numberFacet: Narrows search results by breaking them up into separate ranges of numbers, with required fields of type, path, and boundaries.\n * dateFacet: Narrows search results by breaking them up into separate ranges of dates, with required fields of type, path, and boundaries.\n * }\n * }\n */\n",snippet:"{\n index: ${1:string},\n facet: {\n operator: {\n text: {\n query: ${2:string},\n path: ${3:string}\n }\n },\n facets: {\n ${4:stringFacet}: {\n type: ${5:string},\n path: ${6:string},\n numBuckets: ${7:integer}\n },\n numberFacet: {\n type: 'number',\n path: ${8:string},\n boundaries: [${9:lowerbound}, ${10:upperbound}, ...],\n default: ${11:string}\n }\n }\n }\n}"},{name:"$set",value:"$set",label:"$set",score:1,env:[r,i,s],meta:"stage",version:"4.2.0",apiVersions:[1],description:"Adds new fields to documents. $set outputs documents that contain all existing fields from the input documents and newly added fields.",comment:"/**\n * field: The field name\n * expression: The expression.\n */\n",snippet:"{\n ${1:field}: ${2:expression}\n}"},{name:"$setWindowFields",value:"$setWindowFields",label:"$setWindowFields",score:1,env:[r,i,s],meta:"stage",version:"5.0.0",description:"Capable of partitioning incoming data, and can apply one or more functions to defined windows within each partition.",comment:"/**\n * partitionBy: partitioning of data.\n * sortBy: fields to sort by.\n * output: {\n * path: {\n * function: The window function to compute over the given window.\n * window: {\n * documents: A number of documents before and after the current document.\n * range: A range of possible values around the value in the current document's sortBy field.\n * unit: Specifies the units for the window bounds.\n * }\n * }\n * }\n */\n",snippet:"{\n partitionBy: ${1:expression},\n sortBy: ${2:sortSpec},\n output: {\n ${3:path}: {\n ${4:function}: ${5:functionArgs},\n window: {\n documents: [${6:lowerbound}, ${7:upperbound}],\n range: [${8:lowerbound}, ${9:upperbound}],\n unit: ${10:string}\n }\n },\n ${11:path2}: ...\n }\n}"},{name:"$skip",value:"$skip",label:"$skip",score:1,env:[r,i,s],meta:"stage",version:"2.2.0",apiVersions:[1],description:"Skips a specified number of documents before advancing to the next stage.",comment:"/**\n * Provide the number of documents to skip.\n */\n",snippet:"${1:number}"},{name:"$sort",value:"$sort",label:"$sort",score:1,env:[r,i,s],meta:"stage",version:"2.2.0",apiVersions:[1],description:"Reorders the document stream by a specified sort key and direction.",comment:"/**\n * Provide any number of field/order pairs.\n */\n",snippet:"{\n ${1:field1}: ${2:sortOrder}\n}"},{name:"$sortByCount",value:"$sortByCount",label:"$sortByCount",score:1,env:[r,i,s],meta:"stage",version:"3.4.0",apiVersions:[1],description:"Groups incoming documents based on the value of a specified expression, then computes the count of documents in each distinct group.",comment:"/**\n * expression: Grouping expression or string.\n */\n",snippet:"{\n ${1:expression}\n}"},{name:"$unionWith",value:"$unionWith",label:"$unionWith",score:1,env:[r,i,s],meta:"stage",version:"4.4.0",apiVersions:[1],description:"Perform a union with a pipeline on another collection.",comment:"/**\n * coll: The collection name.\n * pipeline: The pipeline on the other collection.\n */\n",snippet:"{\n coll: '${1:coll}',\n pipeline: [${2:pipeline}]\n}"},{name:"$unset",value:"$unset",label:"$unset",score:1,env:[r,i,s],meta:"stage",version:"4.2.0",apiVersions:[1],description:"Excludes fields from the result document.",comment:"/**\n * Provide the field name to exclude.\n * To exclude multiple fields, pass the field names in an array.\n */\n",snippet:"'${1:string}'"},{name:"$unwind",value:"$unwind",label:"$unwind",score:1,env:[r,i,s],meta:"stage",version:"2.2.0",apiVersions:[1],description:"Outputs a new document for each element in a specified array. ",comment:"/**\n * path: Path to the array field.\n * includeArrayIndex: Optional name for index.\n * preserveNullAndEmptyArrays: Optional\n * toggle to unwind null and empty values.\n */\n",snippet:"{\n path: ${1:path},\n includeArrayIndex: '${2:string}',\n preserveNullAndEmptyArrays: ${3:boolean}\n}"}],a=o.map(e=>e.name);e.exports=o,e.exports.STAGE_OPERATOR_NAMES=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShellEvaluator=void 0;const r=n(507);Object.defineProperty(t,"ShellEvaluator",{enumerable:!0,get:function(){return r.ShellEvaluator}}),t.default=r.ShellEvaluator},function(module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ShellEvaluator=void 0;const shell_api_1=__webpack_require__(44),async_rewriter2_1=__importDefault(__webpack_require__(508)),history_1=__webpack_require__(32);class ShellEvaluator{constructor(e,t=shell_api_1.toShellResult){this.hasAppliedAsyncWriterRuntimeSupport=!0,this.instanceState=e,this.resultHandler=t,this.asyncWriter=new async_rewriter2_1.default,this.hasAppliedAsyncWriterRuntimeSupport=!1}async innerEval(originalEval,input,context,filename){var _a,_b,_c,_d,_e;const{shellApi:shellApi}=this.instanceState,trimmedInput=input.trim(),argv=trimmedInput.replace(/;$/,"").split(/\s+/g),cmd=argv.shift();if((null===(_a=shellApi[cmd])||void 0===_a?void 0:_a.isDirectShellCommand)&&(null===(_b=shellApi[cmd])||void 0===_b?void 0:_b.acceptsRawInput)&&!(null!==(_c=argv[0])&&void 0!==_c?_c:"").startsWith("(")){const e=trimmedInput.replace(/^\S+\s*/,"");return shellApi[cmd](e)}if((null===(_d=shellApi[cmd])||void 0===_d?void 0:_d.isDirectShellCommand)&&!(null!==(_e=argv[0])&&void 0!==_e?_e:"").startsWith("("))return shellApi[cmd](...argv);let rewrittenInput=this.asyncWriter.process(input);const hiddenCommands=RegExp(history_1.HIDDEN_COMMANDS,"g");if(hiddenCommands.test(input)||hiddenCommands.test(rewrittenInput)||this.instanceState.messageBus.emit("mongosh:evaluate-input",{input:(0,history_1.redactSensitiveData)(trimmedInput)}),!this.hasAppliedAsyncWriterRuntimeSupport){this.hasAppliedAsyncWriterRuntimeSupport=!0;const supportCode=this.asyncWriter.runtimeSupportCode();eval(supportCode),rewrittenInput=supportCode+";\n"+rewrittenInput}try{return await originalEval(rewrittenInput,context,filename)}catch(e){throw this.instanceState.transformError(e)}}async customEval(e,t,n,r){const i=await this.innerEval(e,t,n,r);return await this.resultHandler(i)}}exports.ShellEvaluator=ShellEvaluator},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(509));t.default=i.default},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=s(n(31)),l=o(n(673)),u=o(n(674)),c=o(n(675)),h=o(n(676)),d=n(677);t.default=class{step(e,t,n=[],r={}){return(n=>e?a.transformFromAstSync(e,t,n):a.transformSync(t,n))({plugins:n,code:!1,ast:!0,cloneInputAst:!1,configFile:!1,babelrc:!1,browserslistConfigFile:!1,compact:t.length>1e4,sourceType:"script",...r})}process(e){var t,r,i,s;try{let o=null===(t=this.step(void 0,e,[n(678).default,n(679).default,n(682).default]))||void 0===t?void 0:t.ast;return o=null===(r=this.step(o,e,[u.default]))||void 0===r?void 0:r.ast,o=null===(i=this.step(o,e,[c.default]))||void 0===i?void 0:i.ast,null===(s=this.step(o,e,[[h.default,{customErrorBuilder:a.types.identifier("MongoshAsyncWriterError")}]],{code:!0,ast:!1}))||void 0===s?void 0:s.code}catch(e){const{message:t}=e;throw delete e.message,e.message=t.replace("unknown: ",""),e}}unprocessedRuntimeSupportCode(){return this.process(`\n class MongoshAsyncWriterError extends Error {\n constructor(message, codeIdentifier) {\n const code = (${JSON.stringify(d.AsyncRewriterErrors)})[codeIdentifier];\n super(\`[\${code}] \${message}\`);\n this.code = code;\n }\n }`)}runtimeSupportCode(){return l.default}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,n(222).default)("React.Component");t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!e&&/^[a-z]/.test(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[];for(let n=0;n<e.children.length;n++){let s=e.children[n];(0,r.isJSXText)(s)?(0,i.default)(s,t):((0,r.isJSXExpressionContainer)(s)&&(s=s.expression),(0,r.isJSXEmptyExpression)(s)||t.push(s))}return t};var r=n(10),i=n(513)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=e.value.split(/\r\n|\n|\r/);let i=0;for(let e=0;e<n.length;e++)n[e].match(/[^ \t]/)&&(i=e);let s="";for(let e=0;e<n.length;e++){const t=n[e],r=0===e,o=e===n.length-1,a=e===i;let l=t.replace(/\t/g," ");r||(l=l.replace(/^[ ]+/,"")),o||(l=l.replace(/[ ]+$/,"")),l&&(a||(l+=" "),s+=l)}s&&t.push((0,r.stringLiteral)(s))};var r=n(15)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=this,t=r.BUILDER_KEYS[e],n=arguments.length;if(n>t.length)throw new Error(`${e}: Too many arguments passed. Received ${n} but can receive no more than ${t.length}`);const s={type:e};for(let i=0;i<t.length;++i){const o=t[i],a=r.NODE_FIELDS[e][o];let l;i<n&&(l=arguments[i]),void 0===l&&(l=Array.isArray(a.default)?[]:a.default),s[o]=l}for(const e in s)(0,i.default)(s,e,s[e]);return s};var r=n(18),i=n(135)},function(e,t,n){"use strict";let r=null;function i(e){if(null!==r&&(r.property,1)){const e=r;return r=i.prototype=null,e}return r=i.prototype=null==e?Object.create(null):e,new i}i(),e.exports=function(e){return i(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIdentifierChar=h,t.isIdentifierName=function(e){let t=!0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(55296==(64512&r)&&n+1<e.length){const t=e.charCodeAt(++n);56320==(64512&t)&&(r=65536+((1023&r)<<10)+(1023&t))}if(t){if(t=!1,!c(r))return!1}else if(!h(r))return!1}return!t},t.isIdentifierStart=c;let r="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",i="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const s=new RegExp("["+r+"]"),o=new RegExp("["+r+i+"]");r=i=null;const a=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,482,44,11,6,17,0,322,29,19,43,1269,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4152,8,221,3,5761,15,7472,3104,541,1507,4938],l=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239];function u(e,t){let n=65536;for(let r=0,i=t.length;r<i;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function c(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&s.test(String.fromCharCode(e)):u(e,a)))}function h(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&o.test(String.fromCharCode(e)):u(e,a)||u(e,l))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isKeyword=function(e){return s.has(e)},t.isReservedWord=l,t.isStrictBindOnlyReservedWord=c,t.isStrictBindReservedWord=function(e,t){return u(e,t)||c(e)},t.isStrictReservedWord=u;const r=["implements","interface","let","package","private","protected","public","static","yield"],i=["eval","arguments"],s=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),o=new Set(r),a=new Set(i);function l(e,t){return t&&"await"===e||"enum"===e}function u(e,t){return l(e,t)||o.has(e)}function c(e){return a.has(e)}},function(e,t,n){"use strict";var r=n(34);const i=(0,r.defineAliasedType)("Flow"),s=(e,t="TypeParameterDeclaration")=>{i(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends","mixins","implements","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)(t),extends:(0,r.validateOptional)((0,r.arrayOfType)("InterfaceExtends")),mixins:(0,r.validateOptional)((0,r.arrayOfType)("InterfaceExtends")),implements:(0,r.validateOptional)((0,r.arrayOfType)("ClassImplements")),body:(0,r.validateType)("ObjectTypeAnnotation")}})};i("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,r.validateType)("FlowType")}}),i("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,r.validate)((0,r.assertValueType)("boolean"))}}),i("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TypeParameterInstantiation")}}),s("DeclareClass"),i("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),predicate:(0,r.validateOptionalType)("DeclaredPredicate")}}),s("DeclareInterface"),i("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)(["Identifier","StringLiteral"]),body:(0,r.validateType)("BlockStatement"),kind:(0,r.validateOptional)((0,r.assertOneOf)("CommonJS","ES"))}}),i("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,r.validateType)("TypeAnnotation")}}),i("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TypeParameterDeclaration"),right:(0,r.validateType)("FlowType")}}),i("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,r.validateOptionalType)("FlowType"),impltype:(0,r.validateOptionalType)("FlowType")}}),i("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier")}}),i("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:(0,r.validateOptionalType)("Flow"),specifiers:(0,r.validateOptional)((0,r.arrayOfType)(["ExportSpecifier","ExportNamespaceSpecifier"])),source:(0,r.validateOptionalType)("StringLiteral"),default:(0,r.validateOptional)((0,r.assertValueType)("boolean"))}}),i("DeclareExportAllDeclaration",{visitor:["source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:(0,r.validateType)("StringLiteral"),exportKind:(0,r.validateOptional)((0,r.assertOneOf)("type","value"))}}),i("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,r.validateType)("Flow")}}),i("ExistsTypeAnnotation",{aliases:["FlowType"]}),i("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,r.validateOptionalType)("TypeParameterDeclaration"),params:(0,r.validate)((0,r.arrayOfType)("FunctionTypeParam")),rest:(0,r.validateOptionalType)("FunctionTypeParam"),this:(0,r.validateOptionalType)("FunctionTypeParam"),returnType:(0,r.validateType)("FlowType")}}),i("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,r.validateOptionalType)("Identifier"),typeAnnotation:(0,r.validateType)("FlowType"),optional:(0,r.validateOptional)((0,r.assertValueType)("boolean"))}}),i("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,r.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,r.validateOptionalType)("TypeParameterInstantiation")}}),i("InferredPredicate",{aliases:["FlowPredicate"]}),i("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,r.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,r.validateOptionalType)("TypeParameterInstantiation")}}),s("InterfaceDeclaration"),i("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,r.validateOptional)((0,r.arrayOfType)("InterfaceExtends")),body:(0,r.validateType)("ObjectTypeAnnotation")}}),i("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,r.validate)((0,r.arrayOfType)("FlowType"))}}),i("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,r.validateType)("FlowType")}}),i("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,r.validate)((0,r.assertValueType)("number"))}}),i("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,r.validate)((0,r.arrayOfType)(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:(0,r.validateOptional)((0,r.arrayOfType)("ObjectTypeIndexer")),callProperties:(0,r.validateOptional)((0,r.arrayOfType)("ObjectTypeCallProperty")),internalSlots:(0,r.validateOptional)((0,r.arrayOfType)("ObjectTypeInternalSlot")),exact:{validate:(0,r.assertValueType)("boolean"),default:!1},inexact:(0,r.validateOptional)((0,r.assertValueType)("boolean"))}}),i("ObjectTypeInternalSlot",{visitor:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,r.validateType)("Identifier"),value:(0,r.validateType)("FlowType"),optional:(0,r.validate)((0,r.assertValueType)("boolean")),static:(0,r.validate)((0,r.assertValueType)("boolean")),method:(0,r.validate)((0,r.assertValueType)("boolean"))}}),i("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,r.validateType)("FlowType"),static:(0,r.validate)((0,r.assertValueType)("boolean"))}}),i("ObjectTypeIndexer",{visitor:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,r.validateOptionalType)("Identifier"),key:(0,r.validateType)("FlowType"),value:(0,r.validateType)("FlowType"),static:(0,r.validate)((0,r.assertValueType)("boolean")),variance:(0,r.validateOptionalType)("Variance")}}),i("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,r.validateType)(["Identifier","StringLiteral"]),value:(0,r.validateType)("FlowType"),kind:(0,r.validate)((0,r.assertOneOf)("init","get","set")),static:(0,r.validate)((0,r.assertValueType)("boolean")),proto:(0,r.validate)((0,r.assertValueType)("boolean")),optional:(0,r.validate)((0,r.assertValueType)("boolean")),variance:(0,r.validateOptionalType)("Variance"),method:(0,r.validate)((0,r.assertValueType)("boolean"))}}),i("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,r.validateType)("FlowType")}}),i("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,r.validateOptionalType)("FlowType"),impltype:(0,r.validateType)("FlowType")}}),i("QualifiedTypeIdentifier",{visitor:["id","qualification"],fields:{id:(0,r.validateType)("Identifier"),qualification:(0,r.validateType)(["Identifier","QualifiedTypeIdentifier"])}}),i("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,r.validate)((0,r.assertValueType)("string"))}}),i("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,r.validate)((0,r.arrayOfType)("FlowType"))}}),i("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,r.validateType)("FlowType")}}),i("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TypeParameterDeclaration"),right:(0,r.validateType)("FlowType")}}),i("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("FlowType")}}),i("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,r.validateType)("Expression"),typeAnnotation:(0,r.validateType)("TypeAnnotation")}}),i("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,r.validate)((0,r.assertValueType)("string")),bound:(0,r.validateOptionalType)("TypeAnnotation"),default:(0,r.validateOptionalType)("FlowType"),variance:(0,r.validateOptionalType)("Variance")}}),i("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,r.validate)((0,r.arrayOfType)("TypeParameter"))}}),i("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,r.validate)((0,r.arrayOfType)("FlowType"))}}),i("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,r.validate)((0,r.arrayOfType)("FlowType"))}}),i("Variance",{builder:["kind"],fields:{kind:(0,r.validate)((0,r.assertOneOf)("minus","plus"))}}),i("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,r.validateType)("Identifier"),body:(0,r.validateType)(["EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody"])}}),i("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,r.validate)((0,r.assertValueType)("boolean")),members:(0,r.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,r.validate)((0,r.assertValueType)("boolean"))}}),i("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,r.validate)((0,r.assertValueType)("boolean")),members:(0,r.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,r.validate)((0,r.assertValueType)("boolean"))}}),i("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,r.validate)((0,r.assertValueType)("boolean")),members:(0,r.validateArrayOfType)(["EnumStringMember","EnumDefaultedMember"]),hasUnknownMembers:(0,r.validate)((0,r.assertValueType)("boolean"))}}),i("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,r.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,r.validate)((0,r.assertValueType)("boolean"))}}),i("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,r.validateType)("Identifier"),init:(0,r.validateType)("BooleanLiteral")}}),i("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,r.validateType)("Identifier"),init:(0,r.validateType)("NumericLiteral")}}),i("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,r.validateType)("Identifier"),init:(0,r.validateType)("StringLiteral")}}),i("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,r.validateType)("Identifier")}}),i("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,r.validateType)("FlowType"),indexType:(0,r.validateType)("FlowType")}}),i("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,r.validateType)("FlowType"),indexType:(0,r.validateType)("FlowType"),optional:(0,r.validate)((0,r.assertValueType)("boolean"))}})},function(e,t,n){"use strict";var r=n(34);const i=(0,r.defineAliasedType)("JSX");i("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,r.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),i("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),i("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:{openingElement:{validate:(0,r.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,r.assertNodeType)("JSXClosingElement")},children:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))},selfClosing:{validate:(0,r.assertValueType)("boolean"),optional:!0}}}),i("JSXEmptyExpression",{}),i("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,r.assertNodeType)("Expression","JSXEmptyExpression")}}}),i("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,r.assertNodeType)("Expression")}}}),i("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,r.assertValueType)("string")}}}),i("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,r.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,r.assertNodeType)("JSXIdentifier")}}}),i("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,r.assertNodeType)("JSXIdentifier")},name:{validate:(0,r.assertNodeType)("JSXIdentifier")}}}),i("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("JSXAttribute","JSXSpreadAttribute")))},typeParameters:{validate:(0,r.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),i("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,r.assertNodeType)("Expression")}}}),i("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,r.assertValueType)("string")}}}),i("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,r.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,r.assertNodeType)("JSXClosingFragment")},children:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}}),i("JSXOpeningFragment",{aliases:["Immutable"]}),i("JSXClosingFragment",{aliases:["Immutable"]})},function(e,t,n){"use strict";var r=n(34),i=n(226);const s=(0,r.defineAliasedType)("Miscellaneous");s("Noop",{visitor:[]}),s("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:(0,r.assertNodeType)("Identifier")},expectedNode:{validate:(0,r.assertOneOf)(...i.PLACEHOLDERS)}}}),s("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,r.assertValueType)("string")}}})},function(e,t,n){"use strict";(function(e){var t=n(34);(0,t.default)("ArgumentPlaceholder",{}),(0,t.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:e.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,t.assertNodeType)("Expression")},callee:{validate:(0,t.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}}),(0,t.default)("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,t.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,t.assertNodeType)("StringLiteral")}}}),(0,t.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,t.assertNodeType)("Expression")}}}),(0,t.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,t.assertNodeType)("BlockStatement")},async:{validate:(0,t.assertValueType)("boolean"),default:!1}}}),(0,t.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,t.assertNodeType)("Identifier")}}}),(0,t.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,t.chain)((0,t.assertValueType)("array"),(0,t.assertEach)((0,t.assertNodeType)("ObjectProperty","SpreadElement")))}}}),(0,t.default)("TupleExpression",{fields:{elements:{validate:(0,t.chain)((0,t.assertValueType)("array"),(0,t.assertEach)((0,t.assertNodeType)("Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,t.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,t.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,t.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,t.assertNodeType)("Program")}},aliases:["Expression"]}),(0,t.default)("TopicReference",{aliases:["Expression"]}),(0,t.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,t.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,t.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,t.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,t.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]})}).call(this,n(3))},function(e,t,n){"use strict";var r=n(34),i=n(224),s=n(62);const o=(0,r.defineAliasedType)("TypeScript"),a=(0,r.assertValueType)("boolean"),l={returnType:{validate:(0,r.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,r.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}};o("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,r.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,r.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,r.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,r.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("Decorator"))),optional:!0}}}),o("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},i.functionDeclarationCommon,l)}),o("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},i.classMethodOrDeclareMethodCommon,l)}),o("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,r.validateType)("TSEntityName"),right:(0,r.validateType)("Identifier")}});const u={typeParameters:(0,r.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,r.validateArrayOfType)(["Identifier","RestElement"]),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation")},c={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:u};o("TSCallSignatureDeclaration",c),o("TSConstructSignatureDeclaration",c);const h={key:(0,r.validateType)("Expression"),computed:(0,r.validate)(a),optional:(0,r.validateOptional)(a)};o("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation","initializer"],fields:Object.assign({},h,{readonly:(0,r.validateOptional)(a),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation"),initializer:(0,r.validateOptionalType)("Expression"),kind:{validate:(0,r.assertOneOf)("get","set")}})}),o("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},u,h,{kind:{validate:(0,r.assertOneOf)("method","get","set")}})}),o("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,r.validateOptional)(a),static:(0,r.validateOptional)(a),parameters:(0,r.validateArrayOfType)("Identifier"),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation")}});const d=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const e of d)o(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});o("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const f={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};o("TSFunctionType",Object.assign({},f,{fields:u})),o("TSConstructorType",Object.assign({},f,{fields:Object.assign({},u,{abstract:(0,r.validateOptional)(a)})})),o("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,r.validateType)("TSEntityName"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation")}}),o("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,r.validateType)(["Identifier","TSThisType"]),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation"),asserts:(0,r.validateOptional)(a)}}),o("TSTypeQuery",{aliases:["TSType"],visitor:["exprName"],fields:{exprName:(0,r.validateType)(["TSEntityName","TSImportType"])}}),o("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,r.validateArrayOfType)("TSTypeElement")}}),o("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,r.validateType)("TSType")}}),o("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,r.validateArrayOfType)(["TSType","TSNamedTupleMember"])}}),o("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("TSType")}}),o("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("TSType")}}),o("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,r.validateType)("Identifier"),optional:{validate:a,default:!1},elementType:(0,r.validateType)("TSType")}});const p={aliases:["TSType"],visitor:["types"],fields:{types:(0,r.validateArrayOfType)("TSType")}};o("TSUnionType",p),o("TSIntersectionType",p),o("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,r.validateType)("TSType"),extendsType:(0,r.validateType)("TSType"),trueType:(0,r.validateType)("TSType"),falseType:(0,r.validateType)("TSType")}}),o("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,r.validateType)("TSTypeParameter")}}),o("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("TSType")}}),o("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0,r.validate)((0,r.assertValueType)("string")),typeAnnotation:(0,r.validateType)("TSType")}}),o("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,r.validateType)("TSType"),indexType:(0,r.validateType)("TSType")}}),o("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","typeAnnotation","nameType"],fields:{readonly:(0,r.validateOptional)(a),typeParameter:(0,r.validateType)("TSTypeParameter"),optional:(0,r.validateOptional)(a),typeAnnotation:(0,r.validateOptionalType)("TSType"),nameType:(0,r.validateOptionalType)("TSType")}}),o("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){const e=(0,r.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0,r.assertOneOf)("-"),n=(0,r.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral");function i(r,i,o){(0,s.default)("UnaryExpression",o)?(t(o,"operator",o.operator),e(o,"argument",o.argument)):n(r,i,o)}return i.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","UnaryExpression"],i}()}}}),o("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,r.validateType)("TSEntityName"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation")}}),o("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,r.validateOptional)(a),id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,r.validateOptional)((0,r.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,r.validateType)("TSInterfaceBody")}}),o("TSInterfaceBody",{visitor:["body"],fields:{body:(0,r.validateArrayOfType)("TSTypeElement")}}),o("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,r.validateOptional)(a),id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,r.validateType)("TSType")}}),o("TSAsExpression",{aliases:["Expression"],visitor:["expression","typeAnnotation"],fields:{expression:(0,r.validateType)("Expression"),typeAnnotation:(0,r.validateType)("TSType")}}),o("TSTypeAssertion",{aliases:["Expression"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,r.validateType)("TSType"),expression:(0,r.validateType)("Expression")}}),o("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,r.validateOptional)(a),const:(0,r.validateOptional)(a),id:(0,r.validateType)("Identifier"),members:(0,r.validateArrayOfType)("TSEnumMember"),initializer:(0,r.validateOptionalType)("Expression")}}),o("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,r.validateType)(["Identifier","StringLiteral"]),initializer:(0,r.validateOptionalType)("Expression")}}),o("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:(0,r.validateOptional)(a),global:(0,r.validateOptional)(a),id:(0,r.validateType)(["Identifier","StringLiteral"]),body:(0,r.validateType)(["TSModuleBlock","TSModuleDeclaration"])}}),o("TSModuleBlock",{aliases:["Scopable","Block","BlockParent"],visitor:["body"],fields:{body:(0,r.validateArrayOfType)("Statement")}}),o("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:(0,r.validateType)("StringLiteral"),qualifier:(0,r.validateOptionalType)("TSEntityName"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation")}}),o("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:(0,r.validate)(a),id:(0,r.validateType)("Identifier"),moduleReference:(0,r.validateType)(["TSEntityName","TSExternalModuleReference"]),importKind:{validate:(0,r.assertOneOf)("type","value"),optional:!0}}}),o("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,r.validateType)("StringLiteral")}}),o("TSNonNullExpression",{aliases:["Expression"],visitor:["expression"],fields:{expression:(0,r.validateType)("Expression")}}),o("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,r.validateType)("Expression")}}),o("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,r.validateType)("Identifier")}}),o("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,r.assertNodeType)("TSType")}}}),o("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("TSType")))}}}),o("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("TSTypeParameter")))}}}),o("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,r.assertValueType)("string")},constraint:{validate:(0,r.assertNodeType)("TSType"),optional:!0},default:{validate:(0,r.assertNodeType)("TSType"),optional:!0}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!(0,r.default)(e)){var t;const n=null!=(t=null==e?void 0:e.type)?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${n}"`)}};var r=n(227)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertAccessor=function(e,t){i("Accessor",e,t)},t.assertAnyTypeAnnotation=function(e,t){i("AnyTypeAnnotation",e,t)},t.assertArgumentPlaceholder=function(e,t){i("ArgumentPlaceholder",e,t)},t.assertArrayExpression=function(e,t){i("ArrayExpression",e,t)},t.assertArrayPattern=function(e,t){i("ArrayPattern",e,t)},t.assertArrayTypeAnnotation=function(e,t){i("ArrayTypeAnnotation",e,t)},t.assertArrowFunctionExpression=function(e,t){i("ArrowFunctionExpression",e,t)},t.assertAssignmentExpression=function(e,t){i("AssignmentExpression",e,t)},t.assertAssignmentPattern=function(e,t){i("AssignmentPattern",e,t)},t.assertAwaitExpression=function(e,t){i("AwaitExpression",e,t)},t.assertBigIntLiteral=function(e,t){i("BigIntLiteral",e,t)},t.assertBinary=function(e,t){i("Binary",e,t)},t.assertBinaryExpression=function(e,t){i("BinaryExpression",e,t)},t.assertBindExpression=function(e,t){i("BindExpression",e,t)},t.assertBlock=function(e,t){i("Block",e,t)},t.assertBlockParent=function(e,t){i("BlockParent",e,t)},t.assertBlockStatement=function(e,t){i("BlockStatement",e,t)},t.assertBooleanLiteral=function(e,t){i("BooleanLiteral",e,t)},t.assertBooleanLiteralTypeAnnotation=function(e,t){i("BooleanLiteralTypeAnnotation",e,t)},t.assertBooleanTypeAnnotation=function(e,t){i("BooleanTypeAnnotation",e,t)},t.assertBreakStatement=function(e,t){i("BreakStatement",e,t)},t.assertCallExpression=function(e,t){i("CallExpression",e,t)},t.assertCatchClause=function(e,t){i("CatchClause",e,t)},t.assertClass=function(e,t){i("Class",e,t)},t.assertClassAccessorProperty=function(e,t){i("ClassAccessorProperty",e,t)},t.assertClassBody=function(e,t){i("ClassBody",e,t)},t.assertClassDeclaration=function(e,t){i("ClassDeclaration",e,t)},t.assertClassExpression=function(e,t){i("ClassExpression",e,t)},t.assertClassImplements=function(e,t){i("ClassImplements",e,t)},t.assertClassMethod=function(e,t){i("ClassMethod",e,t)},t.assertClassPrivateMethod=function(e,t){i("ClassPrivateMethod",e,t)},t.assertClassPrivateProperty=function(e,t){i("ClassPrivateProperty",e,t)},t.assertClassProperty=function(e,t){i("ClassProperty",e,t)},t.assertCompletionStatement=function(e,t){i("CompletionStatement",e,t)},t.assertConditional=function(e,t){i("Conditional",e,t)},t.assertConditionalExpression=function(e,t){i("ConditionalExpression",e,t)},t.assertContinueStatement=function(e,t){i("ContinueStatement",e,t)},t.assertDebuggerStatement=function(e,t){i("DebuggerStatement",e,t)},t.assertDecimalLiteral=function(e,t){i("DecimalLiteral",e,t)},t.assertDeclaration=function(e,t){i("Declaration",e,t)},t.assertDeclareClass=function(e,t){i("DeclareClass",e,t)},t.assertDeclareExportAllDeclaration=function(e,t){i("DeclareExportAllDeclaration",e,t)},t.assertDeclareExportDeclaration=function(e,t){i("DeclareExportDeclaration",e,t)},t.assertDeclareFunction=function(e,t){i("DeclareFunction",e,t)},t.assertDeclareInterface=function(e,t){i("DeclareInterface",e,t)},t.assertDeclareModule=function(e,t){i("DeclareModule",e,t)},t.assertDeclareModuleExports=function(e,t){i("DeclareModuleExports",e,t)},t.assertDeclareOpaqueType=function(e,t){i("DeclareOpaqueType",e,t)},t.assertDeclareTypeAlias=function(e,t){i("DeclareTypeAlias",e,t)},t.assertDeclareVariable=function(e,t){i("DeclareVariable",e,t)},t.assertDeclaredPredicate=function(e,t){i("DeclaredPredicate",e,t)},t.assertDecorator=function(e,t){i("Decorator",e,t)},t.assertDirective=function(e,t){i("Directive",e,t)},t.assertDirectiveLiteral=function(e,t){i("DirectiveLiteral",e,t)},t.assertDoExpression=function(e,t){i("DoExpression",e,t)},t.assertDoWhileStatement=function(e,t){i("DoWhileStatement",e,t)},t.assertEmptyStatement=function(e,t){i("EmptyStatement",e,t)},t.assertEmptyTypeAnnotation=function(e,t){i("EmptyTypeAnnotation",e,t)},t.assertEnumBody=function(e,t){i("EnumBody",e,t)},t.assertEnumBooleanBody=function(e,t){i("EnumBooleanBody",e,t)},t.assertEnumBooleanMember=function(e,t){i("EnumBooleanMember",e,t)},t.assertEnumDeclaration=function(e,t){i("EnumDeclaration",e,t)},t.assertEnumDefaultedMember=function(e,t){i("EnumDefaultedMember",e,t)},t.assertEnumMember=function(e,t){i("EnumMember",e,t)},t.assertEnumNumberBody=function(e,t){i("EnumNumberBody",e,t)},t.assertEnumNumberMember=function(e,t){i("EnumNumberMember",e,t)},t.assertEnumStringBody=function(e,t){i("EnumStringBody",e,t)},t.assertEnumStringMember=function(e,t){i("EnumStringMember",e,t)},t.assertEnumSymbolBody=function(e,t){i("EnumSymbolBody",e,t)},t.assertExistsTypeAnnotation=function(e,t){i("ExistsTypeAnnotation",e,t)},t.assertExportAllDeclaration=function(e,t){i("ExportAllDeclaration",e,t)},t.assertExportDeclaration=function(e,t){i("ExportDeclaration",e,t)},t.assertExportDefaultDeclaration=function(e,t){i("ExportDefaultDeclaration",e,t)},t.assertExportDefaultSpecifier=function(e,t){i("ExportDefaultSpecifier",e,t)},t.assertExportNamedDeclaration=function(e,t){i("ExportNamedDeclaration",e,t)},t.assertExportNamespaceSpecifier=function(e,t){i("ExportNamespaceSpecifier",e,t)},t.assertExportSpecifier=function(e,t){i("ExportSpecifier",e,t)},t.assertExpression=function(e,t){i("Expression",e,t)},t.assertExpressionStatement=function(e,t){i("ExpressionStatement",e,t)},t.assertExpressionWrapper=function(e,t){i("ExpressionWrapper",e,t)},t.assertFile=function(e,t){i("File",e,t)},t.assertFlow=function(e,t){i("Flow",e,t)},t.assertFlowBaseAnnotation=function(e,t){i("FlowBaseAnnotation",e,t)},t.assertFlowDeclaration=function(e,t){i("FlowDeclaration",e,t)},t.assertFlowPredicate=function(e,t){i("FlowPredicate",e,t)},t.assertFlowType=function(e,t){i("FlowType",e,t)},t.assertFor=function(e,t){i("For",e,t)},t.assertForInStatement=function(e,t){i("ForInStatement",e,t)},t.assertForOfStatement=function(e,t){i("ForOfStatement",e,t)},t.assertForStatement=function(e,t){i("ForStatement",e,t)},t.assertForXStatement=function(e,t){i("ForXStatement",e,t)},t.assertFunction=function(e,t){i("Function",e,t)},t.assertFunctionDeclaration=function(e,t){i("FunctionDeclaration",e,t)},t.assertFunctionExpression=function(e,t){i("FunctionExpression",e,t)},t.assertFunctionParent=function(e,t){i("FunctionParent",e,t)},t.assertFunctionTypeAnnotation=function(e,t){i("FunctionTypeAnnotation",e,t)},t.assertFunctionTypeParam=function(e,t){i("FunctionTypeParam",e,t)},t.assertGenericTypeAnnotation=function(e,t){i("GenericTypeAnnotation",e,t)},t.assertIdentifier=function(e,t){i("Identifier",e,t)},t.assertIfStatement=function(e,t){i("IfStatement",e,t)},t.assertImmutable=function(e,t){i("Immutable",e,t)},t.assertImport=function(e,t){i("Import",e,t)},t.assertImportAttribute=function(e,t){i("ImportAttribute",e,t)},t.assertImportDeclaration=function(e,t){i("ImportDeclaration",e,t)},t.assertImportDefaultSpecifier=function(e,t){i("ImportDefaultSpecifier",e,t)},t.assertImportNamespaceSpecifier=function(e,t){i("ImportNamespaceSpecifier",e,t)},t.assertImportSpecifier=function(e,t){i("ImportSpecifier",e,t)},t.assertIndexedAccessType=function(e,t){i("IndexedAccessType",e,t)},t.assertInferredPredicate=function(e,t){i("InferredPredicate",e,t)},t.assertInterfaceDeclaration=function(e,t){i("InterfaceDeclaration",e,t)},t.assertInterfaceExtends=function(e,t){i("InterfaceExtends",e,t)},t.assertInterfaceTypeAnnotation=function(e,t){i("InterfaceTypeAnnotation",e,t)},t.assertInterpreterDirective=function(e,t){i("InterpreterDirective",e,t)},t.assertIntersectionTypeAnnotation=function(e,t){i("IntersectionTypeAnnotation",e,t)},t.assertJSX=function(e,t){i("JSX",e,t)},t.assertJSXAttribute=function(e,t){i("JSXAttribute",e,t)},t.assertJSXClosingElement=function(e,t){i("JSXClosingElement",e,t)},t.assertJSXClosingFragment=function(e,t){i("JSXClosingFragment",e,t)},t.assertJSXElement=function(e,t){i("JSXElement",e,t)},t.assertJSXEmptyExpression=function(e,t){i("JSXEmptyExpression",e,t)},t.assertJSXExpressionContainer=function(e,t){i("JSXExpressionContainer",e,t)},t.assertJSXFragment=function(e,t){i("JSXFragment",e,t)},t.assertJSXIdentifier=function(e,t){i("JSXIdentifier",e,t)},t.assertJSXMemberExpression=function(e,t){i("JSXMemberExpression",e,t)},t.assertJSXNamespacedName=function(e,t){i("JSXNamespacedName",e,t)},t.assertJSXOpeningElement=function(e,t){i("JSXOpeningElement",e,t)},t.assertJSXOpeningFragment=function(e,t){i("JSXOpeningFragment",e,t)},t.assertJSXSpreadAttribute=function(e,t){i("JSXSpreadAttribute",e,t)},t.assertJSXSpreadChild=function(e,t){i("JSXSpreadChild",e,t)},t.assertJSXText=function(e,t){i("JSXText",e,t)},t.assertLVal=function(e,t){i("LVal",e,t)},t.assertLabeledStatement=function(e,t){i("LabeledStatement",e,t)},t.assertLiteral=function(e,t){i("Literal",e,t)},t.assertLogicalExpression=function(e,t){i("LogicalExpression",e,t)},t.assertLoop=function(e,t){i("Loop",e,t)},t.assertMemberExpression=function(e,t){i("MemberExpression",e,t)},t.assertMetaProperty=function(e,t){i("MetaProperty",e,t)},t.assertMethod=function(e,t){i("Method",e,t)},t.assertMiscellaneous=function(e,t){i("Miscellaneous",e,t)},t.assertMixedTypeAnnotation=function(e,t){i("MixedTypeAnnotation",e,t)},t.assertModuleDeclaration=function(e,t){i("ModuleDeclaration",e,t)},t.assertModuleExpression=function(e,t){i("ModuleExpression",e,t)},t.assertModuleSpecifier=function(e,t){i("ModuleSpecifier",e,t)},t.assertNewExpression=function(e,t){i("NewExpression",e,t)},t.assertNoop=function(e,t){i("Noop",e,t)},t.assertNullLiteral=function(e,t){i("NullLiteral",e,t)},t.assertNullLiteralTypeAnnotation=function(e,t){i("NullLiteralTypeAnnotation",e,t)},t.assertNullableTypeAnnotation=function(e,t){i("NullableTypeAnnotation",e,t)},t.assertNumberLiteral=function(e,t){console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),i("NumberLiteral",e,t)},t.assertNumberLiteralTypeAnnotation=function(e,t){i("NumberLiteralTypeAnnotation",e,t)},t.assertNumberTypeAnnotation=function(e,t){i("NumberTypeAnnotation",e,t)},t.assertNumericLiteral=function(e,t){i("NumericLiteral",e,t)},t.assertObjectExpression=function(e,t){i("ObjectExpression",e,t)},t.assertObjectMember=function(e,t){i("ObjectMember",e,t)},t.assertObjectMethod=function(e,t){i("ObjectMethod",e,t)},t.assertObjectPattern=function(e,t){i("ObjectPattern",e,t)},t.assertObjectProperty=function(e,t){i("ObjectProperty",e,t)},t.assertObjectTypeAnnotation=function(e,t){i("ObjectTypeAnnotation",e,t)},t.assertObjectTypeCallProperty=function(e,t){i("ObjectTypeCallProperty",e,t)},t.assertObjectTypeIndexer=function(e,t){i("ObjectTypeIndexer",e,t)},t.assertObjectTypeInternalSlot=function(e,t){i("ObjectTypeInternalSlot",e,t)},t.assertObjectTypeProperty=function(e,t){i("ObjectTypeProperty",e,t)},t.assertObjectTypeSpreadProperty=function(e,t){i("ObjectTypeSpreadProperty",e,t)},t.assertOpaqueType=function(e,t){i("OpaqueType",e,t)},t.assertOptionalCallExpression=function(e,t){i("OptionalCallExpression",e,t)},t.assertOptionalIndexedAccessType=function(e,t){i("OptionalIndexedAccessType",e,t)},t.assertOptionalMemberExpression=function(e,t){i("OptionalMemberExpression",e,t)},t.assertParenthesizedExpression=function(e,t){i("ParenthesizedExpression",e,t)},t.assertPattern=function(e,t){i("Pattern",e,t)},t.assertPatternLike=function(e,t){i("PatternLike",e,t)},t.assertPipelineBareFunction=function(e,t){i("PipelineBareFunction",e,t)},t.assertPipelinePrimaryTopicReference=function(e,t){i("PipelinePrimaryTopicReference",e,t)},t.assertPipelineTopicExpression=function(e,t){i("PipelineTopicExpression",e,t)},t.assertPlaceholder=function(e,t){i("Placeholder",e,t)},t.assertPrivate=function(e,t){i("Private",e,t)},t.assertPrivateName=function(e,t){i("PrivateName",e,t)},t.assertProgram=function(e,t){i("Program",e,t)},t.assertProperty=function(e,t){i("Property",e,t)},t.assertPureish=function(e,t){i("Pureish",e,t)},t.assertQualifiedTypeIdentifier=function(e,t){i("QualifiedTypeIdentifier",e,t)},t.assertRecordExpression=function(e,t){i("RecordExpression",e,t)},t.assertRegExpLiteral=function(e,t){i("RegExpLiteral",e,t)},t.assertRegexLiteral=function(e,t){console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),i("RegexLiteral",e,t)},t.assertRestElement=function(e,t){i("RestElement",e,t)},t.assertRestProperty=function(e,t){console.trace("The node type RestProperty has been renamed to RestElement"),i("RestProperty",e,t)},t.assertReturnStatement=function(e,t){i("ReturnStatement",e,t)},t.assertScopable=function(e,t){i("Scopable",e,t)},t.assertSequenceExpression=function(e,t){i("SequenceExpression",e,t)},t.assertSpreadElement=function(e,t){i("SpreadElement",e,t)},t.assertSpreadProperty=function(e,t){console.trace("The node type SpreadProperty has been renamed to SpreadElement"),i("SpreadProperty",e,t)},t.assertStandardized=function(e,t){i("Standardized",e,t)},t.assertStatement=function(e,t){i("Statement",e,t)},t.assertStaticBlock=function(e,t){i("StaticBlock",e,t)},t.assertStringLiteral=function(e,t){i("StringLiteral",e,t)},t.assertStringLiteralTypeAnnotation=function(e,t){i("StringLiteralTypeAnnotation",e,t)},t.assertStringTypeAnnotation=function(e,t){i("StringTypeAnnotation",e,t)},t.assertSuper=function(e,t){i("Super",e,t)},t.assertSwitchCase=function(e,t){i("SwitchCase",e,t)},t.assertSwitchStatement=function(e,t){i("SwitchStatement",e,t)},t.assertSymbolTypeAnnotation=function(e,t){i("SymbolTypeAnnotation",e,t)},t.assertTSAnyKeyword=function(e,t){i("TSAnyKeyword",e,t)},t.assertTSArrayType=function(e,t){i("TSArrayType",e,t)},t.assertTSAsExpression=function(e,t){i("TSAsExpression",e,t)},t.assertTSBaseType=function(e,t){i("TSBaseType",e,t)},t.assertTSBigIntKeyword=function(e,t){i("TSBigIntKeyword",e,t)},t.assertTSBooleanKeyword=function(e,t){i("TSBooleanKeyword",e,t)},t.assertTSCallSignatureDeclaration=function(e,t){i("TSCallSignatureDeclaration",e,t)},t.assertTSConditionalType=function(e,t){i("TSConditionalType",e,t)},t.assertTSConstructSignatureDeclaration=function(e,t){i("TSConstructSignatureDeclaration",e,t)},t.assertTSConstructorType=function(e,t){i("TSConstructorType",e,t)},t.assertTSDeclareFunction=function(e,t){i("TSDeclareFunction",e,t)},t.assertTSDeclareMethod=function(e,t){i("TSDeclareMethod",e,t)},t.assertTSEntityName=function(e,t){i("TSEntityName",e,t)},t.assertTSEnumDeclaration=function(e,t){i("TSEnumDeclaration",e,t)},t.assertTSEnumMember=function(e,t){i("TSEnumMember",e,t)},t.assertTSExportAssignment=function(e,t){i("TSExportAssignment",e,t)},t.assertTSExpressionWithTypeArguments=function(e,t){i("TSExpressionWithTypeArguments",e,t)},t.assertTSExternalModuleReference=function(e,t){i("TSExternalModuleReference",e,t)},t.assertTSFunctionType=function(e,t){i("TSFunctionType",e,t)},t.assertTSImportEqualsDeclaration=function(e,t){i("TSImportEqualsDeclaration",e,t)},t.assertTSImportType=function(e,t){i("TSImportType",e,t)},t.assertTSIndexSignature=function(e,t){i("TSIndexSignature",e,t)},t.assertTSIndexedAccessType=function(e,t){i("TSIndexedAccessType",e,t)},t.assertTSInferType=function(e,t){i("TSInferType",e,t)},t.assertTSInterfaceBody=function(e,t){i("TSInterfaceBody",e,t)},t.assertTSInterfaceDeclaration=function(e,t){i("TSInterfaceDeclaration",e,t)},t.assertTSIntersectionType=function(e,t){i("TSIntersectionType",e,t)},t.assertTSIntrinsicKeyword=function(e,t){i("TSIntrinsicKeyword",e,t)},t.assertTSLiteralType=function(e,t){i("TSLiteralType",e,t)},t.assertTSMappedType=function(e,t){i("TSMappedType",e,t)},t.assertTSMethodSignature=function(e,t){i("TSMethodSignature",e,t)},t.assertTSModuleBlock=function(e,t){i("TSModuleBlock",e,t)},t.assertTSModuleDeclaration=function(e,t){i("TSModuleDeclaration",e,t)},t.assertTSNamedTupleMember=function(e,t){i("TSNamedTupleMember",e,t)},t.assertTSNamespaceExportDeclaration=function(e,t){i("TSNamespaceExportDeclaration",e,t)},t.assertTSNeverKeyword=function(e,t){i("TSNeverKeyword",e,t)},t.assertTSNonNullExpression=function(e,t){i("TSNonNullExpression",e,t)},t.assertTSNullKeyword=function(e,t){i("TSNullKeyword",e,t)},t.assertTSNumberKeyword=function(e,t){i("TSNumberKeyword",e,t)},t.assertTSObjectKeyword=function(e,t){i("TSObjectKeyword",e,t)},t.assertTSOptionalType=function(e,t){i("TSOptionalType",e,t)},t.assertTSParameterProperty=function(e,t){i("TSParameterProperty",e,t)},t.assertTSParenthesizedType=function(e,t){i("TSParenthesizedType",e,t)},t.assertTSPropertySignature=function(e,t){i("TSPropertySignature",e,t)},t.assertTSQualifiedName=function(e,t){i("TSQualifiedName",e,t)},t.assertTSRestType=function(e,t){i("TSRestType",e,t)},t.assertTSStringKeyword=function(e,t){i("TSStringKeyword",e,t)},t.assertTSSymbolKeyword=function(e,t){i("TSSymbolKeyword",e,t)},t.assertTSThisType=function(e,t){i("TSThisType",e,t)},t.assertTSTupleType=function(e,t){i("TSTupleType",e,t)},t.assertTSType=function(e,t){i("TSType",e,t)},t.assertTSTypeAliasDeclaration=function(e,t){i("TSTypeAliasDeclaration",e,t)},t.assertTSTypeAnnotation=function(e,t){i("TSTypeAnnotation",e,t)},t.assertTSTypeAssertion=function(e,t){i("TSTypeAssertion",e,t)},t.assertTSTypeElement=function(e,t){i("TSTypeElement",e,t)},t.assertTSTypeLiteral=function(e,t){i("TSTypeLiteral",e,t)},t.assertTSTypeOperator=function(e,t){i("TSTypeOperator",e,t)},t.assertTSTypeParameter=function(e,t){i("TSTypeParameter",e,t)},t.assertTSTypeParameterDeclaration=function(e,t){i("TSTypeParameterDeclaration",e,t)},t.assertTSTypeParameterInstantiation=function(e,t){i("TSTypeParameterInstantiation",e,t)},t.assertTSTypePredicate=function(e,t){i("TSTypePredicate",e,t)},t.assertTSTypeQuery=function(e,t){i("TSTypeQuery",e,t)},t.assertTSTypeReference=function(e,t){i("TSTypeReference",e,t)},t.assertTSUndefinedKeyword=function(e,t){i("TSUndefinedKeyword",e,t)},t.assertTSUnionType=function(e,t){i("TSUnionType",e,t)},t.assertTSUnknownKeyword=function(e,t){i("TSUnknownKeyword",e,t)},t.assertTSVoidKeyword=function(e,t){i("TSVoidKeyword",e,t)},t.assertTaggedTemplateExpression=function(e,t){i("TaggedTemplateExpression",e,t)},t.assertTemplateElement=function(e,t){i("TemplateElement",e,t)},t.assertTemplateLiteral=function(e,t){i("TemplateLiteral",e,t)},t.assertTerminatorless=function(e,t){i("Terminatorless",e,t)},t.assertThisExpression=function(e,t){i("ThisExpression",e,t)},t.assertThisTypeAnnotation=function(e,t){i("ThisTypeAnnotation",e,t)},t.assertThrowStatement=function(e,t){i("ThrowStatement",e,t)},t.assertTopicReference=function(e,t){i("TopicReference",e,t)},t.assertTryStatement=function(e,t){i("TryStatement",e,t)},t.assertTupleExpression=function(e,t){i("TupleExpression",e,t)},t.assertTupleTypeAnnotation=function(e,t){i("TupleTypeAnnotation",e,t)},t.assertTypeAlias=function(e,t){i("TypeAlias",e,t)},t.assertTypeAnnotation=function(e,t){i("TypeAnnotation",e,t)},t.assertTypeCastExpression=function(e,t){i("TypeCastExpression",e,t)},t.assertTypeParameter=function(e,t){i("TypeParameter",e,t)},t.assertTypeParameterDeclaration=function(e,t){i("TypeParameterDeclaration",e,t)},t.assertTypeParameterInstantiation=function(e,t){i("TypeParameterInstantiation",e,t)},t.assertTypeScript=function(e,t){i("TypeScript",e,t)},t.assertTypeofTypeAnnotation=function(e,t){i("TypeofTypeAnnotation",e,t)},t.assertUnaryExpression=function(e,t){i("UnaryExpression",e,t)},t.assertUnaryLike=function(e,t){i("UnaryLike",e,t)},t.assertUnionTypeAnnotation=function(e,t){i("UnionTypeAnnotation",e,t)},t.assertUpdateExpression=function(e,t){i("UpdateExpression",e,t)},t.assertUserWhitespacable=function(e,t){i("UserWhitespacable",e,t)},t.assertV8IntrinsicIdentifier=function(e,t){i("V8IntrinsicIdentifier",e,t)},t.assertVariableDeclaration=function(e,t){i("VariableDeclaration",e,t)},t.assertVariableDeclarator=function(e,t){i("VariableDeclarator",e,t)},t.assertVariance=function(e,t){i("Variance",e,t)},t.assertVoidTypeAnnotation=function(e,t){i("VoidTypeAnnotation",e,t)},t.assertWhile=function(e,t){i("While",e,t)},t.assertWhileStatement=function(e,t){i("WhileStatement",e,t)},t.assertWithStatement=function(e,t){i("WithStatement",e,t)},t.assertYieldExpression=function(e,t){i("YieldExpression",e,t)};var r=n(62);function i(e,t,n){if(!(0,r.default)(e,t,n))throw new Error(`Expected type "${e}" with option ${JSON.stringify(n)}, but instead got "${t.type}".`)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(15),i=function(e){switch(e){case"string":return(0,r.stringTypeAnnotation)();case"number":return(0,r.numberTypeAnnotation)();case"undefined":return(0,r.voidTypeAnnotation)();case"boolean":return(0,r.booleanTypeAnnotation)();case"function":return(0,r.genericTypeAnnotation)((0,r.identifier)("Function"));case"object":return(0,r.genericTypeAnnotation)((0,r.identifier)("Object"));case"symbol":return(0,r.genericTypeAnnotation)((0,r.identifier)("Symbol"));case"bigint":return(0,r.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+e)};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,i.default)(e);return 1===t.length?t[0]:(0,r.unionTypeAnnotation)(t)};var r=n(15),i=n(228)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.map(e=>e.typeAnnotation),n=(0,i.default)(t);return 1===n.length?n[0]:(0,r.tsUnionType)(n)};var r=n(15),i=n(528)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t={},n={},i=new Set,s=[];for(let t=0;t<e.length;t++){const o=e[t];if(o&&!(s.indexOf(o)>=0)){if((0,r.isTSAnyKeyword)(o))return[o];(0,r.isTSBaseType)(o)?n[o.type]=o:(0,r.isTSUnionType)(o)?i.has(o.types)||(e.push(...o.types),i.add(o.types)):s.push(o)}}for(const e of Object.keys(n))s.push(n[e]);for(const e of Object.keys(t))s.push(t[e]);return s};var r=n(10)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AnyTypeAnnotation",{enumerable:!0,get:function(){return r.anyTypeAnnotation}}),Object.defineProperty(t,"ArgumentPlaceholder",{enumerable:!0,get:function(){return r.argumentPlaceholder}}),Object.defineProperty(t,"ArrayExpression",{enumerable:!0,get:function(){return r.arrayExpression}}),Object.defineProperty(t,"ArrayPattern",{enumerable:!0,get:function(){return r.arrayPattern}}),Object.defineProperty(t,"ArrayTypeAnnotation",{enumerable:!0,get:function(){return r.arrayTypeAnnotation}}),Object.defineProperty(t,"ArrowFunctionExpression",{enumerable:!0,get:function(){return r.arrowFunctionExpression}}),Object.defineProperty(t,"AssignmentExpression",{enumerable:!0,get:function(){return r.assignmentExpression}}),Object.defineProperty(t,"AssignmentPattern",{enumerable:!0,get:function(){return r.assignmentPattern}}),Object.defineProperty(t,"AwaitExpression",{enumerable:!0,get:function(){return r.awaitExpression}}),Object.defineProperty(t,"BigIntLiteral",{enumerable:!0,get:function(){return r.bigIntLiteral}}),Object.defineProperty(t,"BinaryExpression",{enumerable:!0,get:function(){return r.binaryExpression}}),Object.defineProperty(t,"BindExpression",{enumerable:!0,get:function(){return r.bindExpression}}),Object.defineProperty(t,"BlockStatement",{enumerable:!0,get:function(){return r.blockStatement}}),Object.defineProperty(t,"BooleanLiteral",{enumerable:!0,get:function(){return r.booleanLiteral}}),Object.defineProperty(t,"BooleanLiteralTypeAnnotation",{enumerable:!0,get:function(){return r.booleanLiteralTypeAnnotation}}),Object.defineProperty(t,"BooleanTypeAnnotation",{enumerable:!0,get:function(){return r.booleanTypeAnnotation}}),Object.defineProperty(t,"BreakStatement",{enumerable:!0,get:function(){return r.breakStatement}}),Object.defineProperty(t,"CallExpression",{enumerable:!0,get:function(){return r.callExpression}}),Object.defineProperty(t,"CatchClause",{enumerable:!0,get:function(){return r.catchClause}}),Object.defineProperty(t,"ClassAccessorProperty",{enumerable:!0,get:function(){return r.classAccessorProperty}}),Object.defineProperty(t,"ClassBody",{enumerable:!0,get:function(){return r.classBody}}),Object.defineProperty(t,"ClassDeclaration",{enumerable:!0,get:function(){return r.classDeclaration}}),Object.defineProperty(t,"ClassExpression",{enumerable:!0,get:function(){return r.classExpression}}),Object.defineProperty(t,"ClassImplements",{enumerable:!0,get:function(){return r.classImplements}}),Object.defineProperty(t,"ClassMethod",{enumerable:!0,get:function(){return r.classMethod}}),Object.defineProperty(t,"ClassPrivateMethod",{enumerable:!0,get:function(){return r.classPrivateMethod}}),Object.defineProperty(t,"ClassPrivateProperty",{enumerable:!0,get:function(){return r.classPrivateProperty}}),Object.defineProperty(t,"ClassProperty",{enumerable:!0,get:function(){return r.classProperty}}),Object.defineProperty(t,"ConditionalExpression",{enumerable:!0,get:function(){return r.conditionalExpression}}),Object.defineProperty(t,"ContinueStatement",{enumerable:!0,get:function(){return r.continueStatement}}),Object.defineProperty(t,"DebuggerStatement",{enumerable:!0,get:function(){return r.debuggerStatement}}),Object.defineProperty(t,"DecimalLiteral",{enumerable:!0,get:function(){return r.decimalLiteral}}),Object.defineProperty(t,"DeclareClass",{enumerable:!0,get:function(){return r.declareClass}}),Object.defineProperty(t,"DeclareExportAllDeclaration",{enumerable:!0,get:function(){return r.declareExportAllDeclaration}}),Object.defineProperty(t,"DeclareExportDeclaration",{enumerable:!0,get:function(){return r.declareExportDeclaration}}),Object.defineProperty(t,"DeclareFunction",{enumerable:!0,get:function(){return r.declareFunction}}),Object.defineProperty(t,"DeclareInterface",{enumerable:!0,get:function(){return r.declareInterface}}),Object.defineProperty(t,"DeclareModule",{enumerable:!0,get:function(){return r.declareModule}}),Object.defineProperty(t,"DeclareModuleExports",{enumerable:!0,get:function(){return r.declareModuleExports}}),Object.defineProperty(t,"DeclareOpaqueType",{enumerable:!0,get:function(){return r.declareOpaqueType}}),Object.defineProperty(t,"DeclareTypeAlias",{enumerable:!0,get:function(){return r.declareTypeAlias}}),Object.defineProperty(t,"DeclareVariable",{enumerable:!0,get:function(){return r.declareVariable}}),Object.defineProperty(t,"DeclaredPredicate",{enumerable:!0,get:function(){return r.declaredPredicate}}),Object.defineProperty(t,"Decorator",{enumerable:!0,get:function(){return r.decorator}}),Object.defineProperty(t,"Directive",{enumerable:!0,get:function(){return r.directive}}),Object.defineProperty(t,"DirectiveLiteral",{enumerable:!0,get:function(){return r.directiveLiteral}}),Object.defineProperty(t,"DoExpression",{enumerable:!0,get:function(){return r.doExpression}}),Object.defineProperty(t,"DoWhileStatement",{enumerable:!0,get:function(){return r.doWhileStatement}}),Object.defineProperty(t,"EmptyStatement",{enumerable:!0,get:function(){return r.emptyStatement}}),Object.defineProperty(t,"EmptyTypeAnnotation",{enumerable:!0,get:function(){return r.emptyTypeAnnotation}}),Object.defineProperty(t,"EnumBooleanBody",{enumerable:!0,get:function(){return r.enumBooleanBody}}),Object.defineProperty(t,"EnumBooleanMember",{enumerable:!0,get:function(){return r.enumBooleanMember}}),Object.defineProperty(t,"EnumDeclaration",{enumerable:!0,get:function(){return r.enumDeclaration}}),Object.defineProperty(t,"EnumDefaultedMember",{enumerable:!0,get:function(){return r.enumDefaultedMember}}),Object.defineProperty(t,"EnumNumberBody",{enumerable:!0,get:function(){return r.enumNumberBody}}),Object.defineProperty(t,"EnumNumberMember",{enumerable:!0,get:function(){return r.enumNumberMember}}),Object.defineProperty(t,"EnumStringBody",{enumerable:!0,get:function(){return r.enumStringBody}}),Object.defineProperty(t,"EnumStringMember",{enumerable:!0,get:function(){return r.enumStringMember}}),Object.defineProperty(t,"EnumSymbolBody",{enumerable:!0,get:function(){return r.enumSymbolBody}}),Object.defineProperty(t,"ExistsTypeAnnotation",{enumerable:!0,get:function(){return r.existsTypeAnnotation}}),Object.defineProperty(t,"ExportAllDeclaration",{enumerable:!0,get:function(){return r.exportAllDeclaration}}),Object.defineProperty(t,"ExportDefaultDeclaration",{enumerable:!0,get:function(){return r.exportDefaultDeclaration}}),Object.defineProperty(t,"ExportDefaultSpecifier",{enumerable:!0,get:function(){return r.exportDefaultSpecifier}}),Object.defineProperty(t,"ExportNamedDeclaration",{enumerable:!0,get:function(){return r.exportNamedDeclaration}}),Object.defineProperty(t,"ExportNamespaceSpecifier",{enumerable:!0,get:function(){return r.exportNamespaceSpecifier}}),Object.defineProperty(t,"ExportSpecifier",{enumerable:!0,get:function(){return r.exportSpecifier}}),Object.defineProperty(t,"ExpressionStatement",{enumerable:!0,get:function(){return r.expressionStatement}}),Object.defineProperty(t,"File",{enumerable:!0,get:function(){return r.file}}),Object.defineProperty(t,"ForInStatement",{enumerable:!0,get:function(){return r.forInStatement}}),Object.defineProperty(t,"ForOfStatement",{enumerable:!0,get:function(){return r.forOfStatement}}),Object.defineProperty(t,"ForStatement",{enumerable:!0,get:function(){return r.forStatement}}),Object.defineProperty(t,"FunctionDeclaration",{enumerable:!0,get:function(){return r.functionDeclaration}}),Object.defineProperty(t,"FunctionExpression",{enumerable:!0,get:function(){return r.functionExpression}}),Object.defineProperty(t,"FunctionTypeAnnotation",{enumerable:!0,get:function(){return r.functionTypeAnnotation}}),Object.defineProperty(t,"FunctionTypeParam",{enumerable:!0,get:function(){return r.functionTypeParam}}),Object.defineProperty(t,"GenericTypeAnnotation",{enumerable:!0,get:function(){return r.genericTypeAnnotation}}),Object.defineProperty(t,"Identifier",{enumerable:!0,get:function(){return r.identifier}}),Object.defineProperty(t,"IfStatement",{enumerable:!0,get:function(){return r.ifStatement}}),Object.defineProperty(t,"Import",{enumerable:!0,get:function(){return r.import}}),Object.defineProperty(t,"ImportAttribute",{enumerable:!0,get:function(){return r.importAttribute}}),Object.defineProperty(t,"ImportDeclaration",{enumerable:!0,get:function(){return r.importDeclaration}}),Object.defineProperty(t,"ImportDefaultSpecifier",{enumerable:!0,get:function(){return r.importDefaultSpecifier}}),Object.defineProperty(t,"ImportNamespaceSpecifier",{enumerable:!0,get:function(){return r.importNamespaceSpecifier}}),Object.defineProperty(t,"ImportSpecifier",{enumerable:!0,get:function(){return r.importSpecifier}}),Object.defineProperty(t,"IndexedAccessType",{enumerable:!0,get:function(){return r.indexedAccessType}}),Object.defineProperty(t,"InferredPredicate",{enumerable:!0,get:function(){return r.inferredPredicate}}),Object.defineProperty(t,"InterfaceDeclaration",{enumerable:!0,get:function(){return r.interfaceDeclaration}}),Object.defineProperty(t,"InterfaceExtends",{enumerable:!0,get:function(){return r.interfaceExtends}}),Object.defineProperty(t,"InterfaceTypeAnnotation",{enumerable:!0,get:function(){return r.interfaceTypeAnnotation}}),Object.defineProperty(t,"InterpreterDirective",{enumerable:!0,get:function(){return r.interpreterDirective}}),Object.defineProperty(t,"IntersectionTypeAnnotation",{enumerable:!0,get:function(){return r.intersectionTypeAnnotation}}),Object.defineProperty(t,"JSXAttribute",{enumerable:!0,get:function(){return r.jsxAttribute}}),Object.defineProperty(t,"JSXClosingElement",{enumerable:!0,get:function(){return r.jsxClosingElement}}),Object.defineProperty(t,"JSXClosingFragment",{enumerable:!0,get:function(){return r.jsxClosingFragment}}),Object.defineProperty(t,"JSXElement",{enumerable:!0,get:function(){return r.jsxElement}}),Object.defineProperty(t,"JSXEmptyExpression",{enumerable:!0,get:function(){return r.jsxEmptyExpression}}),Object.defineProperty(t,"JSXExpressionContainer",{enumerable:!0,get:function(){return r.jsxExpressionContainer}}),Object.defineProperty(t,"JSXFragment",{enumerable:!0,get:function(){return r.jsxFragment}}),Object.defineProperty(t,"JSXIdentifier",{enumerable:!0,get:function(){return r.jsxIdentifier}}),Object.defineProperty(t,"JSXMemberExpression",{enumerable:!0,get:function(){return r.jsxMemberExpression}}),Object.defineProperty(t,"JSXNamespacedName",{enumerable:!0,get:function(){return r.jsxNamespacedName}}),Object.defineProperty(t,"JSXOpeningElement",{enumerable:!0,get:function(){return r.jsxOpeningElement}}),Object.defineProperty(t,"JSXOpeningFragment",{enumerable:!0,get:function(){return r.jsxOpeningFragment}}),Object.defineProperty(t,"JSXSpreadAttribute",{enumerable:!0,get:function(){return r.jsxSpreadAttribute}}),Object.defineProperty(t,"JSXSpreadChild",{enumerable:!0,get:function(){return r.jsxSpreadChild}}),Object.defineProperty(t,"JSXText",{enumerable:!0,get:function(){return r.jsxText}}),Object.defineProperty(t,"LabeledStatement",{enumerable:!0,get:function(){return r.labeledStatement}}),Object.defineProperty(t,"LogicalExpression",{enumerable:!0,get:function(){return r.logicalExpression}}),Object.defineProperty(t,"MemberExpression",{enumerable:!0,get:function(){return r.memberExpression}}),Object.defineProperty(t,"MetaProperty",{enumerable:!0,get:function(){return r.metaProperty}}),Object.defineProperty(t,"MixedTypeAnnotation",{enumerable:!0,get:function(){return r.mixedTypeAnnotation}}),Object.defineProperty(t,"ModuleExpression",{enumerable:!0,get:function(){return r.moduleExpression}}),Object.defineProperty(t,"NewExpression",{enumerable:!0,get:function(){return r.newExpression}}),Object.defineProperty(t,"Noop",{enumerable:!0,get:function(){return r.noop}}),Object.defineProperty(t,"NullLiteral",{enumerable:!0,get:function(){return r.nullLiteral}}),Object.defineProperty(t,"NullLiteralTypeAnnotation",{enumerable:!0,get:function(){return r.nullLiteralTypeAnnotation}}),Object.defineProperty(t,"NullableTypeAnnotation",{enumerable:!0,get:function(){return r.nullableTypeAnnotation}}),Object.defineProperty(t,"NumberLiteral",{enumerable:!0,get:function(){return r.numberLiteral}}),Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return r.numberLiteralTypeAnnotation}}),Object.defineProperty(t,"NumberTypeAnnotation",{enumerable:!0,get:function(){return r.numberTypeAnnotation}}),Object.defineProperty(t,"NumericLiteral",{enumerable:!0,get:function(){return r.numericLiteral}}),Object.defineProperty(t,"ObjectExpression",{enumerable:!0,get:function(){return r.objectExpression}}),Object.defineProperty(t,"ObjectMethod",{enumerable:!0,get:function(){return r.objectMethod}}),Object.defineProperty(t,"ObjectPattern",{enumerable:!0,get:function(){return r.objectPattern}}),Object.defineProperty(t,"ObjectProperty",{enumerable:!0,get:function(){return r.objectProperty}}),Object.defineProperty(t,"ObjectTypeAnnotation",{enumerable:!0,get:function(){return r.objectTypeAnnotation}}),Object.defineProperty(t,"ObjectTypeCallProperty",{enumerable:!0,get:function(){return r.objectTypeCallProperty}}),Object.defineProperty(t,"ObjectTypeIndexer",{enumerable:!0,get:function(){return r.objectTypeIndexer}}),Object.defineProperty(t,"ObjectTypeInternalSlot",{enumerable:!0,get:function(){return r.objectTypeInternalSlot}}),Object.defineProperty(t,"ObjectTypeProperty",{enumerable:!0,get:function(){return r.objectTypeProperty}}),Object.defineProperty(t,"ObjectTypeSpreadProperty",{enumerable:!0,get:function(){return r.objectTypeSpreadProperty}}),Object.defineProperty(t,"OpaqueType",{enumerable:!0,get:function(){return r.opaqueType}}),Object.defineProperty(t,"OptionalCallExpression",{enumerable:!0,get:function(){return r.optionalCallExpression}}),Object.defineProperty(t,"OptionalIndexedAccessType",{enumerable:!0,get:function(){return r.optionalIndexedAccessType}}),Object.defineProperty(t,"OptionalMemberExpression",{enumerable:!0,get:function(){return r.optionalMemberExpression}}),Object.defineProperty(t,"ParenthesizedExpression",{enumerable:!0,get:function(){return r.parenthesizedExpression}}),Object.defineProperty(t,"PipelineBareFunction",{enumerable:!0,get:function(){return r.pipelineBareFunction}}),Object.defineProperty(t,"PipelinePrimaryTopicReference",{enumerable:!0,get:function(){return r.pipelinePrimaryTopicReference}}),Object.defineProperty(t,"PipelineTopicExpression",{enumerable:!0,get:function(){return r.pipelineTopicExpression}}),Object.defineProperty(t,"Placeholder",{enumerable:!0,get:function(){return r.placeholder}}),Object.defineProperty(t,"PrivateName",{enumerable:!0,get:function(){return r.privateName}}),Object.defineProperty(t,"Program",{enumerable:!0,get:function(){return r.program}}),Object.defineProperty(t,"QualifiedTypeIdentifier",{enumerable:!0,get:function(){return r.qualifiedTypeIdentifier}}),Object.defineProperty(t,"RecordExpression",{enumerable:!0,get:function(){return r.recordExpression}}),Object.defineProperty(t,"RegExpLiteral",{enumerable:!0,get:function(){return r.regExpLiteral}}),Object.defineProperty(t,"RegexLiteral",{enumerable:!0,get:function(){return r.regexLiteral}}),Object.defineProperty(t,"RestElement",{enumerable:!0,get:function(){return r.restElement}}),Object.defineProperty(t,"RestProperty",{enumerable:!0,get:function(){return r.restProperty}}),Object.defineProperty(t,"ReturnStatement",{enumerable:!0,get:function(){return r.returnStatement}}),Object.defineProperty(t,"SequenceExpression",{enumerable:!0,get:function(){return r.sequenceExpression}}),Object.defineProperty(t,"SpreadElement",{enumerable:!0,get:function(){return r.spreadElement}}),Object.defineProperty(t,"SpreadProperty",{enumerable:!0,get:function(){return r.spreadProperty}}),Object.defineProperty(t,"StaticBlock",{enumerable:!0,get:function(){return r.staticBlock}}),Object.defineProperty(t,"StringLiteral",{enumerable:!0,get:function(){return r.stringLiteral}}),Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return r.stringLiteralTypeAnnotation}}),Object.defineProperty(t,"StringTypeAnnotation",{enumerable:!0,get:function(){return r.stringTypeAnnotation}}),Object.defineProperty(t,"Super",{enumerable:!0,get:function(){return r.super}}),Object.defineProperty(t,"SwitchCase",{enumerable:!0,get:function(){return r.switchCase}}),Object.defineProperty(t,"SwitchStatement",{enumerable:!0,get:function(){return r.switchStatement}}),Object.defineProperty(t,"SymbolTypeAnnotation",{enumerable:!0,get:function(){return r.symbolTypeAnnotation}}),Object.defineProperty(t,"TSAnyKeyword",{enumerable:!0,get:function(){return r.tsAnyKeyword}}),Object.defineProperty(t,"TSArrayType",{enumerable:!0,get:function(){return r.tsArrayType}}),Object.defineProperty(t,"TSAsExpression",{enumerable:!0,get:function(){return r.tsAsExpression}}),Object.defineProperty(t,"TSBigIntKeyword",{enumerable:!0,get:function(){return r.tsBigIntKeyword}}),Object.defineProperty(t,"TSBooleanKeyword",{enumerable:!0,get:function(){return r.tsBooleanKeyword}}),Object.defineProperty(t,"TSCallSignatureDeclaration",{enumerable:!0,get:function(){return r.tsCallSignatureDeclaration}}),Object.defineProperty(t,"TSConditionalType",{enumerable:!0,get:function(){return r.tsConditionalType}}),Object.defineProperty(t,"TSConstructSignatureDeclaration",{enumerable:!0,get:function(){return r.tsConstructSignatureDeclaration}}),Object.defineProperty(t,"TSConstructorType",{enumerable:!0,get:function(){return r.tsConstructorType}}),Object.defineProperty(t,"TSDeclareFunction",{enumerable:!0,get:function(){return r.tsDeclareFunction}}),Object.defineProperty(t,"TSDeclareMethod",{enumerable:!0,get:function(){return r.tsDeclareMethod}}),Object.defineProperty(t,"TSEnumDeclaration",{enumerable:!0,get:function(){return r.tsEnumDeclaration}}),Object.defineProperty(t,"TSEnumMember",{enumerable:!0,get:function(){return r.tsEnumMember}}),Object.defineProperty(t,"TSExportAssignment",{enumerable:!0,get:function(){return r.tsExportAssignment}}),Object.defineProperty(t,"TSExpressionWithTypeArguments",{enumerable:!0,get:function(){return r.tsExpressionWithTypeArguments}}),Object.defineProperty(t,"TSExternalModuleReference",{enumerable:!0,get:function(){return r.tsExternalModuleReference}}),Object.defineProperty(t,"TSFunctionType",{enumerable:!0,get:function(){return r.tsFunctionType}}),Object.defineProperty(t,"TSImportEqualsDeclaration",{enumerable:!0,get:function(){return r.tsImportEqualsDeclaration}}),Object.defineProperty(t,"TSImportType",{enumerable:!0,get:function(){return r.tsImportType}}),Object.defineProperty(t,"TSIndexSignature",{enumerable:!0,get:function(){return r.tsIndexSignature}}),Object.defineProperty(t,"TSIndexedAccessType",{enumerable:!0,get:function(){return r.tsIndexedAccessType}}),Object.defineProperty(t,"TSInferType",{enumerable:!0,get:function(){return r.tsInferType}}),Object.defineProperty(t,"TSInterfaceBody",{enumerable:!0,get:function(){return r.tsInterfaceBody}}),Object.defineProperty(t,"TSInterfaceDeclaration",{enumerable:!0,get:function(){return r.tsInterfaceDeclaration}}),Object.defineProperty(t,"TSIntersectionType",{enumerable:!0,get:function(){return r.tsIntersectionType}}),Object.defineProperty(t,"TSIntrinsicKeyword",{enumerable:!0,get:function(){return r.tsIntrinsicKeyword}}),Object.defineProperty(t,"TSLiteralType",{enumerable:!0,get:function(){return r.tsLiteralType}}),Object.defineProperty(t,"TSMappedType",{enumerable:!0,get:function(){return r.tsMappedType}}),Object.defineProperty(t,"TSMethodSignature",{enumerable:!0,get:function(){return r.tsMethodSignature}}),Object.defineProperty(t,"TSModuleBlock",{enumerable:!0,get:function(){return r.tsModuleBlock}}),Object.defineProperty(t,"TSModuleDeclaration",{enumerable:!0,get:function(){return r.tsModuleDeclaration}}),Object.defineProperty(t,"TSNamedTupleMember",{enumerable:!0,get:function(){return r.tsNamedTupleMember}}),Object.defineProperty(t,"TSNamespaceExportDeclaration",{enumerable:!0,get:function(){return r.tsNamespaceExportDeclaration}}),Object.defineProperty(t,"TSNeverKeyword",{enumerable:!0,get:function(){return r.tsNeverKeyword}}),Object.defineProperty(t,"TSNonNullExpression",{enumerable:!0,get:function(){return r.tsNonNullExpression}}),Object.defineProperty(t,"TSNullKeyword",{enumerable:!0,get:function(){return r.tsNullKeyword}}),Object.defineProperty(t,"TSNumberKeyword",{enumerable:!0,get:function(){return r.tsNumberKeyword}}),Object.defineProperty(t,"TSObjectKeyword",{enumerable:!0,get:function(){return r.tsObjectKeyword}}),Object.defineProperty(t,"TSOptionalType",{enumerable:!0,get:function(){return r.tsOptionalType}}),Object.defineProperty(t,"TSParameterProperty",{enumerable:!0,get:function(){return r.tsParameterProperty}}),Object.defineProperty(t,"TSParenthesizedType",{enumerable:!0,get:function(){return r.tsParenthesizedType}}),Object.defineProperty(t,"TSPropertySignature",{enumerable:!0,get:function(){return r.tsPropertySignature}}),Object.defineProperty(t,"TSQualifiedName",{enumerable:!0,get:function(){return r.tsQualifiedName}}),Object.defineProperty(t,"TSRestType",{enumerable:!0,get:function(){return r.tsRestType}}),Object.defineProperty(t,"TSStringKeyword",{enumerable:!0,get:function(){return r.tsStringKeyword}}),Object.defineProperty(t,"TSSymbolKeyword",{enumerable:!0,get:function(){return r.tsSymbolKeyword}}),Object.defineProperty(t,"TSThisType",{enumerable:!0,get:function(){return r.tsThisType}}),Object.defineProperty(t,"TSTupleType",{enumerable:!0,get:function(){return r.tsTupleType}}),Object.defineProperty(t,"TSTypeAliasDeclaration",{enumerable:!0,get:function(){return r.tsTypeAliasDeclaration}}),Object.defineProperty(t,"TSTypeAnnotation",{enumerable:!0,get:function(){return r.tsTypeAnnotation}}),Object.defineProperty(t,"TSTypeAssertion",{enumerable:!0,get:function(){return r.tsTypeAssertion}}),Object.defineProperty(t,"TSTypeLiteral",{enumerable:!0,get:function(){return r.tsTypeLiteral}}),Object.defineProperty(t,"TSTypeOperator",{enumerable:!0,get:function(){return r.tsTypeOperator}}),Object.defineProperty(t,"TSTypeParameter",{enumerable:!0,get:function(){return r.tsTypeParameter}}),Object.defineProperty(t,"TSTypeParameterDeclaration",{enumerable:!0,get:function(){return r.tsTypeParameterDeclaration}}),Object.defineProperty(t,"TSTypeParameterInstantiation",{enumerable:!0,get:function(){return r.tsTypeParameterInstantiation}}),Object.defineProperty(t,"TSTypePredicate",{enumerable:!0,get:function(){return r.tsTypePredicate}}),Object.defineProperty(t,"TSTypeQuery",{enumerable:!0,get:function(){return r.tsTypeQuery}}),Object.defineProperty(t,"TSTypeReference",{enumerable:!0,get:function(){return r.tsTypeReference}}),Object.defineProperty(t,"TSUndefinedKeyword",{enumerable:!0,get:function(){return r.tsUndefinedKeyword}}),Object.defineProperty(t,"TSUnionType",{enumerable:!0,get:function(){return r.tsUnionType}}),Object.defineProperty(t,"TSUnknownKeyword",{enumerable:!0,get:function(){return r.tsUnknownKeyword}}),Object.defineProperty(t,"TSVoidKeyword",{enumerable:!0,get:function(){return r.tsVoidKeyword}}),Object.defineProperty(t,"TaggedTemplateExpression",{enumerable:!0,get:function(){return r.taggedTemplateExpression}}),Object.defineProperty(t,"TemplateElement",{enumerable:!0,get:function(){return r.templateElement}}),Object.defineProperty(t,"TemplateLiteral",{enumerable:!0,get:function(){return r.templateLiteral}}),Object.defineProperty(t,"ThisExpression",{enumerable:!0,get:function(){return r.thisExpression}}),Object.defineProperty(t,"ThisTypeAnnotation",{enumerable:!0,get:function(){return r.thisTypeAnnotation}}),Object.defineProperty(t,"ThrowStatement",{enumerable:!0,get:function(){return r.throwStatement}}),Object.defineProperty(t,"TopicReference",{enumerable:!0,get:function(){return r.topicReference}}),Object.defineProperty(t,"TryStatement",{enumerable:!0,get:function(){return r.tryStatement}}),Object.defineProperty(t,"TupleExpression",{enumerable:!0,get:function(){return r.tupleExpression}}),Object.defineProperty(t,"TupleTypeAnnotation",{enumerable:!0,get:function(){return r.tupleTypeAnnotation}}),Object.defineProperty(t,"TypeAlias",{enumerable:!0,get:function(){return r.typeAlias}}),Object.defineProperty(t,"TypeAnnotation",{enumerable:!0,get:function(){return r.typeAnnotation}}),Object.defineProperty(t,"TypeCastExpression",{enumerable:!0,get:function(){return r.typeCastExpression}}),Object.defineProperty(t,"TypeParameter",{enumerable:!0,get:function(){return r.typeParameter}}),Object.defineProperty(t,"TypeParameterDeclaration",{enumerable:!0,get:function(){return r.typeParameterDeclaration}}),Object.defineProperty(t,"TypeParameterInstantiation",{enumerable:!0,get:function(){return r.typeParameterInstantiation}}),Object.defineProperty(t,"TypeofTypeAnnotation",{enumerable:!0,get:function(){return r.typeofTypeAnnotation}}),Object.defineProperty(t,"UnaryExpression",{enumerable:!0,get:function(){return r.unaryExpression}}),Object.defineProperty(t,"UnionTypeAnnotation",{enumerable:!0,get:function(){return r.unionTypeAnnotation}}),Object.defineProperty(t,"UpdateExpression",{enumerable:!0,get:function(){return r.updateExpression}}),Object.defineProperty(t,"V8IntrinsicIdentifier",{enumerable:!0,get:function(){return r.v8IntrinsicIdentifier}}),Object.defineProperty(t,"VariableDeclaration",{enumerable:!0,get:function(){return r.variableDeclaration}}),Object.defineProperty(t,"VariableDeclarator",{enumerable:!0,get:function(){return r.variableDeclarator}}),Object.defineProperty(t,"Variance",{enumerable:!0,get:function(){return r.variance}}),Object.defineProperty(t,"VoidTypeAnnotation",{enumerable:!0,get:function(){return r.voidTypeAnnotation}}),Object.defineProperty(t,"WhileStatement",{enumerable:!0,get:function(){return r.whileStatement}}),Object.defineProperty(t,"WithStatement",{enumerable:!0,get:function(){return r.withStatement}}),Object.defineProperty(t,"YieldExpression",{enumerable:!0,get:function(){return r.yieldExpression}});var r=n(15)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!1)};var r=n(42)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)};var r=n(42)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!0,!0)};var r=n(42)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!1,!0)};var r=n(42)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){return(0,r.default)(e,t,[{type:i?"CommentLine":"CommentBlock",value:n}])};var r=n(229)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return r.COMMENT_KEYS.forEach(t=>{e[t]=null}),e};var r=n(41)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WHILE_TYPES=t.USERWHITESPACABLE_TYPES=t.UNARYLIKE_TYPES=t.TYPESCRIPT_TYPES=t.TSTYPE_TYPES=t.TSTYPEELEMENT_TYPES=t.TSENTITYNAME_TYPES=t.TSBASETYPE_TYPES=t.TERMINATORLESS_TYPES=t.STATEMENT_TYPES=t.STANDARDIZED_TYPES=t.SCOPABLE_TYPES=t.PUREISH_TYPES=t.PROPERTY_TYPES=t.PRIVATE_TYPES=t.PATTERN_TYPES=t.PATTERNLIKE_TYPES=t.OBJECTMEMBER_TYPES=t.MODULESPECIFIER_TYPES=t.MODULEDECLARATION_TYPES=t.MISCELLANEOUS_TYPES=t.METHOD_TYPES=t.LVAL_TYPES=t.LOOP_TYPES=t.LITERAL_TYPES=t.JSX_TYPES=t.IMMUTABLE_TYPES=t.FUNCTION_TYPES=t.FUNCTIONPARENT_TYPES=t.FOR_TYPES=t.FORXSTATEMENT_TYPES=t.FLOW_TYPES=t.FLOWTYPE_TYPES=t.FLOWPREDICATE_TYPES=t.FLOWDECLARATION_TYPES=t.FLOWBASEANNOTATION_TYPES=t.EXPRESSION_TYPES=t.EXPRESSIONWRAPPER_TYPES=t.EXPORTDECLARATION_TYPES=t.ENUMMEMBER_TYPES=t.ENUMBODY_TYPES=t.DECLARATION_TYPES=t.CONDITIONAL_TYPES=t.COMPLETIONSTATEMENT_TYPES=t.CLASS_TYPES=t.BLOCK_TYPES=t.BLOCKPARENT_TYPES=t.BINARY_TYPES=t.ACCESSOR_TYPES=void 0;var r=n(18);const i=r.FLIPPED_ALIAS_KEYS.Standardized;t.STANDARDIZED_TYPES=i;const s=r.FLIPPED_ALIAS_KEYS.Expression;t.EXPRESSION_TYPES=s;const o=r.FLIPPED_ALIAS_KEYS.Binary;t.BINARY_TYPES=o;const a=r.FLIPPED_ALIAS_KEYS.Scopable;t.SCOPABLE_TYPES=a;const l=r.FLIPPED_ALIAS_KEYS.BlockParent;t.BLOCKPARENT_TYPES=l;const u=r.FLIPPED_ALIAS_KEYS.Block;t.BLOCK_TYPES=u;const c=r.FLIPPED_ALIAS_KEYS.Statement;t.STATEMENT_TYPES=c;const h=r.FLIPPED_ALIAS_KEYS.Terminatorless;t.TERMINATORLESS_TYPES=h;const d=r.FLIPPED_ALIAS_KEYS.CompletionStatement;t.COMPLETIONSTATEMENT_TYPES=d;const f=r.FLIPPED_ALIAS_KEYS.Conditional;t.CONDITIONAL_TYPES=f;const p=r.FLIPPED_ALIAS_KEYS.Loop;t.LOOP_TYPES=p;const m=r.FLIPPED_ALIAS_KEYS.While;t.WHILE_TYPES=m;const g=r.FLIPPED_ALIAS_KEYS.ExpressionWrapper;t.EXPRESSIONWRAPPER_TYPES=g;const y=r.FLIPPED_ALIAS_KEYS.For;t.FOR_TYPES=y;const v=r.FLIPPED_ALIAS_KEYS.ForXStatement;t.FORXSTATEMENT_TYPES=v;const b=r.FLIPPED_ALIAS_KEYS.Function;t.FUNCTION_TYPES=b;const w=r.FLIPPED_ALIAS_KEYS.FunctionParent;t.FUNCTIONPARENT_TYPES=w;const _=r.FLIPPED_ALIAS_KEYS.Pureish;t.PUREISH_TYPES=_;const S=r.FLIPPED_ALIAS_KEYS.Declaration;t.DECLARATION_TYPES=S;const x=r.FLIPPED_ALIAS_KEYS.PatternLike;t.PATTERNLIKE_TYPES=x;const E=r.FLIPPED_ALIAS_KEYS.LVal;t.LVAL_TYPES=E;const A=r.FLIPPED_ALIAS_KEYS.TSEntityName;t.TSENTITYNAME_TYPES=A;const T=r.FLIPPED_ALIAS_KEYS.Literal;t.LITERAL_TYPES=T;const M=r.FLIPPED_ALIAS_KEYS.Immutable;t.IMMUTABLE_TYPES=M;const C=r.FLIPPED_ALIAS_KEYS.UserWhitespacable;t.USERWHITESPACABLE_TYPES=C;const P=r.FLIPPED_ALIAS_KEYS.Method;t.METHOD_TYPES=P;const k=r.FLIPPED_ALIAS_KEYS.ObjectMember;t.OBJECTMEMBER_TYPES=k;const O=r.FLIPPED_ALIAS_KEYS.Property;t.PROPERTY_TYPES=O;const I=r.FLIPPED_ALIAS_KEYS.UnaryLike;t.UNARYLIKE_TYPES=I;const R=r.FLIPPED_ALIAS_KEYS.Pattern;t.PATTERN_TYPES=R;const N=r.FLIPPED_ALIAS_KEYS.Class;t.CLASS_TYPES=N;const D=r.FLIPPED_ALIAS_KEYS.ModuleDeclaration;t.MODULEDECLARATION_TYPES=D;const F=r.FLIPPED_ALIAS_KEYS.ExportDeclaration;t.EXPORTDECLARATION_TYPES=F;const L=r.FLIPPED_ALIAS_KEYS.ModuleSpecifier;t.MODULESPECIFIER_TYPES=L;const B=r.FLIPPED_ALIAS_KEYS.Accessor;t.ACCESSOR_TYPES=B;const j=r.FLIPPED_ALIAS_KEYS.Private;t.PRIVATE_TYPES=j;const $=r.FLIPPED_ALIAS_KEYS.Flow;t.FLOW_TYPES=$;const U=r.FLIPPED_ALIAS_KEYS.FlowType;t.FLOWTYPE_TYPES=U;const V=r.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation;t.FLOWBASEANNOTATION_TYPES=V;const W=r.FLIPPED_ALIAS_KEYS.FlowDeclaration;t.FLOWDECLARATION_TYPES=W;const z=r.FLIPPED_ALIAS_KEYS.FlowPredicate;t.FLOWPREDICATE_TYPES=z;const K=r.FLIPPED_ALIAS_KEYS.EnumBody;t.ENUMBODY_TYPES=K;const H=r.FLIPPED_ALIAS_KEYS.EnumMember;t.ENUMMEMBER_TYPES=H;const q=r.FLIPPED_ALIAS_KEYS.JSX;t.JSX_TYPES=q;const G=r.FLIPPED_ALIAS_KEYS.Miscellaneous;t.MISCELLANEOUS_TYPES=G;const Y=r.FLIPPED_ALIAS_KEYS.TypeScript;t.TYPESCRIPT_TYPES=Y;const J=r.FLIPPED_ALIAS_KEYS.TSTypeElement;t.TSTYPEELEMENT_TYPES=J;const X=r.FLIPPED_ALIAS_KEYS.TSType;t.TSTYPE_TYPES=X;const Z=r.FLIPPED_ALIAS_KEYS.TSBaseType;t.TSBASETYPE_TYPES=Z},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t="body"){return e[t]=(0,r.default)(e[t],e)};var r=n(234)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"eval"!==(e=(0,r.default)(e))&&"arguments"!==e||(e="_"+e);return e};var r=n(235)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=e.key||e.property){!e.computed&&(0,r.isIdentifier)(t)&&(t=(0,i.stringLiteral)(t.name));return t};var r=n(10),i=n(15)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(10),i=function(e){(0,r.isExpressionStatement)(e)&&(e=e.expression);if((0,r.isExpression)(e))return e;(0,r.isClass)(e)?e.type="ClassExpression":(0,r.isFunction)(e)&&(e.type="FunctionExpression");if(!(0,r.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(10),i=n(42),s=n(236);function o(e,t=e.key){let n;return"method"===e.kind?o.increment()+"":(n=(0,r.isIdentifier)(t)?t.name:(0,r.isStringLiteral)(t)?JSON.stringify(t.value):JSON.stringify((0,s.default)((0,i.default)(t))),e.computed&&(n=`[${n}]`),e.static&&(n="static:"+n),n)}o.uid=0,o.increment=function(){return o.uid>=Number.MAX_SAFE_INTEGER?o.uid=0:o.uid++}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e||!e.length)return;const n=[],i=(0,r.default)(e,t,n);if(!i)return;for(const e of n)t.push(e);return i};var r=n(543)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n,a){const l=[];let u=!0;for(const c of t)if((0,i.isEmptyStatement)(c)||(u=!1),(0,i.isExpression)(c))l.push(c);else if((0,i.isExpressionStatement)(c))l.push(c.expression);else if((0,i.isVariableDeclaration)(c)){if("var"!==c.kind)return;for(const e of c.declarations){const t=(0,r.default)(e);for(const e of Object.keys(t))a.push({kind:c.kind,id:(0,o.default)(t[e])});e.init&&l.push((0,s.assignmentExpression)("=",e.id,e.init))}u=!0}else if((0,i.isIfStatement)(c)){const t=c.consequent?e([c.consequent],n,a):n.buildUndefinedNode(),r=c.alternate?e([c.alternate],n,a):n.buildUndefinedNode();if(!t||!r)return;l.push((0,s.conditionalExpression)(c.test,t,r))}else if((0,i.isBlockStatement)(c)){const t=e(c.body,n,a);if(!t)return;l.push(t)}else{if(!(0,i.isEmptyStatement)(c))return;0===t.indexOf(c)&&(u=!0)}u&&l.push(n.buildUndefinedNode());return 1===l.length?l[0]:(0,s.sequenceExpression)(l)};var r=n(78),i=n(10),s=n(15),o=n(42)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(10),i=n(15),s=function(e,t){if((0,r.isStatement)(e))return e;let n,s=!1;if((0,r.isClass)(e))s=!0,n="ClassDeclaration";else if((0,r.isFunction)(e))s=!0,n="FunctionDeclaration";else if((0,r.isAssignmentExpression)(e))return(0,i.expressionStatement)(e);s&&!e.id&&(n=!1);if(!n){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=n,e};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(63),i=n(15),s=function e(t){if(void 0===t)return(0,i.identifier)("undefined");if(!0===t||!1===t)return(0,i.booleanLiteral)(t);if(null===t)return(0,i.nullLiteral)();if("string"==typeof t)return(0,i.stringLiteral)(t);if("number"==typeof t){let e;if(Number.isFinite(t))e=(0,i.numericLiteral)(Math.abs(t));else{let n;n=Number.isNaN(t)?(0,i.numericLiteral)(0):(0,i.numericLiteral)(1),e=(0,i.binaryExpression)("/",n,(0,i.numericLiteral)(0))}return(t<0||Object.is(t,-0))&&(e=(0,i.unaryExpression)("-",e)),e}if(function(e){return"[object RegExp]"===o(e)}(t)){const e=t.source,n=t.toString().match(/\/([a-z]+|)$/)[1];return(0,i.regExpLiteral)(e,n)}if(Array.isArray(t))return(0,i.arrayExpression)(t.map(e));if(function(e){if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(t)){const n=[];for(const s of Object.keys(t)){let o;o=(0,r.default)(s)?(0,i.identifier)(s):(0,i.stringLiteral)(s),n.push((0,i.objectProperty)(o,e(t[s])))}return(0,i.objectExpression)(n)}throw new Error("don't know how to turn this value into a node")};t.default=s;const o=Function.call.bind(Object.prototype.toString)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n=!1){return e.object=(0,r.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!n,e};var r=n(15)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e||!t)return e;for(const n of r.INHERIT_KEYS.optional)null==e[n]&&(e[n]=t[n]);for(const n of Object.keys(t))"_"===n[0]&&"__clone"!==n&&(e[n]=t[n]);for(const n of r.INHERIT_KEYS.force)e[n]=t[n];return(0,i.default)(e,t),e};var r=n(41),i=n(232)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return e.object=(0,r.memberExpression)(t,e.object),e};var r=n(15)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(78),i=function(e,t){return(0,r.default)(e,t,!0)};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){"function"==typeof t&&(t={enter:t});const{enter:i,exit:s}=t;!function e(t,n,i,s,o){const a=r.VISITOR_KEYS[t.type];if(!a)return;n&&n(t,o,s);for(const r of a){const a=t[r];if(Array.isArray(a))for(let l=0;l<a.length;l++){const u=a[l];u&&(o.push({node:t,key:r,index:l}),e(u,n,i,s,o),o.pop())}else a&&(o.push({node:t,key:r}),e(a,n,i,s,o),o.pop())}i&&i(t,o,s)}(e,i,s,n,[])};var r=n(18)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(n&&"Identifier"===e.type&&"ObjectProperty"===t.type&&"ObjectExpression"===n.type)return!1;const i=r.default.keys[t.type];if(i)for(let n=0;n<i.length;n++){const r=i[n],s=t[r];if(Array.isArray(s)){if(s.indexOf(e)>=0)return!0}else if(s===e)return!0}return!1};var r=n(78)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isFunctionDeclaration)(e)||(0,r.isClassDeclaration)(e)||(0,i.default)(e)};var r=n(10),i=n(239)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,r.default)(e.type,"Immutable"))return!0;if((0,i.isIdentifier)(e))return"undefined"===e.name;return!1};var r=n(134),i=n(10)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){if("object"!=typeof t||"object"!=typeof n||null==t||null==n)return t===n;if(t.type!==n.type)return!1;const i=Object.keys(r.NODE_FIELDS[t.type]||t.type),s=r.VISITOR_KEYS[t.type];for(const r of i){if(typeof t[r]!=typeof n[r])return!1;if(null!=t[r]||null!=n[r]){if(null==t[r]||null==n[r])return!1;if(Array.isArray(t[r])){if(!Array.isArray(n[r]))return!1;if(t[r].length!==n[r].length)return!1;for(let i=0;i<t[r].length;i++)if(!e(t[r][i],n[r][i]))return!1}else if("object"!=typeof t[r]||null!=s&&s.includes(r)){if(!e(t[r],n[r]))return!1}else for(const e of Object.keys(t[r]))if(t[r][e]!==n[r][e])return!1}}return!0};var r=n(18)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e&&!!t.computed;case"ObjectProperty":return t.key===e?!!t.computed:!n||"ObjectPattern"!==n.type;case"ClassProperty":case"ClassAccessorProperty":return t.key!==e||!!t.computed;case"ClassPrivateProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;case"LabeledStatement":case"CatchClause":case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return(null==n||!n.source)&&t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportAttribute":case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key!==e||!!t.computed}return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.isBlockStatement)(e)&&((0,r.isFunction)(t)||(0,r.isCatchClause)(t)))return!1;if((0,r.isPattern)(e)&&((0,r.isFunction)(t)||(0,r.isCatchClause)(t)))return!0;return(0,r.isScopable)(e)};var r=n(10)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isImportDefaultSpecifier)(e)||(0,r.isIdentifier)(e.imported||e.exported,{name:"default"})};var r=n(10)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)&&!i.has(e)};var r=n(63);const i=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isVariableDeclaration)(e,{kind:"var"})&&!e[i.BLOCK_SCOPED_SYMBOL]};var r=n(10),i=n(41)},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(35),i=n(1);const{VISITOR_KEYS:s}=i;t.default=class{constructor(e,t,n,r){this.queue=null,this.priorityQueue=null,this.parentPath=r,this.scope=e,this.state=n,this.opts=t}shouldVisit(e){const t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;const n=s[e.type];if(null==n||!n.length)return!1;for(const t of n)if(e[t])return!0;return!1}create(e,t,n,i){return r.default.get({parentPath:this.parentPath,parent:e,container:t,key:n,listKey:i})}maybeQueue(e,t){this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,t,n){if(0===e.length)return!1;const r=[];for(let i=0;i<e.length;i++){const s=e[i];s&&this.shouldVisit(s)&&r.push(this.create(t,e,i,n))}return this.visitQueue(r)}visitSingle(e,t){return!!this.shouldVisit(e[t])&&this.visitQueue([this.create(e,e,t)])}visitQueue(e){this.queue=e,this.priorityQueue=[];const t=new WeakSet;let n=!1;for(const r of e){if(r.resync(),0!==r.contexts.length&&r.contexts[r.contexts.length-1]===this||r.pushContext(this),null===r.key)continue;const{node:i}=r;if(!t.has(i)){if(i&&t.add(i),r.visit()){n=!0;break}if(this.priorityQueue.length&&(n=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,n))break}}for(const t of e)t.popContext();return this.queue=null,n}visit(e,t){const n=e[t];return!!n&&(Array.isArray(n)?this.visitMultiple(n,e,t):this.visitSingle(e,t))}}},function(e,t,n){e.exports=function(e){function t(e){let n,i,s,o=null;function a(...e){if(!a.enabled)return;const r=a,i=Number(new Date),s=i-(n||i);r.diff=s,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,i)=>{if("%%"===n)return"%";o++;const s=t.formatters[i];if("function"==typeof s){const t=e[o];n=s.call(r,t),e.splice(o,1),o--}return n}),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==t.namespaces&&(i=t.namespaces,s=t.enabled(e)),s),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(563),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},function(e,t){var n=1e3,r=6e4,i=60*r,s=24*i;function o(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,t){t=t||{};var a=typeof e;if("string"===a&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var o=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return 6048e5*o;case"days":case"day":case"d":return o*s;case"hours":case"hour":case"hrs":case"hr":case"h":return o*i;case"minutes":case"minute":case"mins":case"min":case"m":return o*r;case"seconds":case"second":case"secs":case"sec":case"s":return o*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}(e);if("number"===a&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=s)return o(e,t,s,"day");if(t>=i)return o(e,t,i,"hour");if(t>=r)return o(e,t,r,"minute");if(t>=n)return o(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=s)return Math.round(e/s)+"d";if(t>=i)return Math.round(e/i)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n(242);var r=n(243),i=n(1);const{VISITOR_KEYS:s,assignmentExpression:o,identifier:a,toExpression:l,variableDeclaration:u,variableDeclarator:c}=i,h={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||function(e){if(!e.isMethod()||!e.node.computed)return void e.skip();const t=s[e.type];for(const n of t)"key"!==n&&e.skipKey(n)}(e)},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;const n=e.getOuterBindingIdentifiers();for(const e in n)e===t.oldName&&(n[e].name=t.newName)}};t.default=class{constructor(e,t,n){this.newName=n,this.oldName=t,this.binding=e}maybeConvertFromExportDeclaration(e){const t=e.parentPath;t.isExportDeclaration()&&(t.isExportDefaultDeclaration()&&!t.get("declaration").node.id||(0,r.default)(t))}maybeConvertFromClassFunctionDeclaration(e){}maybeConvertFromClassFunctionExpression(e){}rename(e){const{binding:t,oldName:n,newName:r}=this,{scope:i,path:s}=t,o=s.find(e=>e.isDeclaration()||e.isFunctionExpression()||e.isClassExpression());if(o){o.getOuterBindingIdentifiers()[n]===t.identifier&&this.maybeConvertFromExportDeclaration(o)}const a=e||i.block;"SwitchStatement"===(null==a?void 0:a.type)?a.cases.forEach(e=>{i.traverse(e,h,this)}):i.traverse(a,h,this),e||(i.removeOwnBinding(n),i.bindings[r]=t,this.binding.identifier.name=r),o&&(this.maybeConvertFromClassFunctionDeclaration(o),this.maybeConvertFromClassFunctionExpression(o))}}},function(e,t,n){"use strict";e.exports=n(566)},function(e){e.exports=JSON.parse('{"builtin":{"Array":false,"ArrayBuffer":false,"Atomics":false,"BigInt":false,"BigInt64Array":false,"BigUint64Array":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"globalThis":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es5":{"Array":false,"Boolean":false,"constructor":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"propertyIsEnumerable":false,"RangeError":false,"ReferenceError":false,"RegExp":false,"String":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false},"es2015":{"Array":false,"ArrayBuffer":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es2017":{"Array":false,"ArrayBuffer":false,"Atomics":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"browser":{"AbortController":false,"AbortSignal":false,"addEventListener":false,"alert":false,"AnalyserNode":false,"Animation":false,"AnimationEffectReadOnly":false,"AnimationEffectTiming":false,"AnimationEffectTimingReadOnly":false,"AnimationEvent":false,"AnimationPlaybackEvent":false,"AnimationTimeline":false,"applicationCache":false,"ApplicationCache":false,"ApplicationCacheErrorEvent":false,"atob":false,"Attr":false,"Audio":false,"AudioBuffer":false,"AudioBufferSourceNode":false,"AudioContext":false,"AudioDestinationNode":false,"AudioListener":false,"AudioNode":false,"AudioParam":false,"AudioProcessingEvent":false,"AudioScheduledSourceNode":false,"AudioWorkletGlobalScope ":false,"AudioWorkletNode":false,"AudioWorkletProcessor":false,"BarProp":false,"BaseAudioContext":false,"BatteryManager":false,"BeforeUnloadEvent":false,"BiquadFilterNode":false,"Blob":false,"BlobEvent":false,"blur":false,"BroadcastChannel":false,"btoa":false,"BudgetService":false,"ByteLengthQueuingStrategy":false,"Cache":false,"caches":false,"CacheStorage":false,"cancelAnimationFrame":false,"cancelIdleCallback":false,"CanvasCaptureMediaStreamTrack":false,"CanvasGradient":false,"CanvasPattern":false,"CanvasRenderingContext2D":false,"ChannelMergerNode":false,"ChannelSplitterNode":false,"CharacterData":false,"clearInterval":false,"clearTimeout":false,"clientInformation":false,"ClipboardEvent":false,"close":false,"closed":false,"CloseEvent":false,"Comment":false,"CompositionEvent":false,"confirm":false,"console":false,"ConstantSourceNode":false,"ConvolverNode":false,"CountQueuingStrategy":false,"createImageBitmap":false,"Credential":false,"CredentialsContainer":false,"crypto":false,"Crypto":false,"CryptoKey":false,"CSS":false,"CSSConditionRule":false,"CSSFontFaceRule":false,"CSSGroupingRule":false,"CSSImportRule":false,"CSSKeyframeRule":false,"CSSKeyframesRule":false,"CSSMediaRule":false,"CSSNamespaceRule":false,"CSSPageRule":false,"CSSRule":false,"CSSRuleList":false,"CSSStyleDeclaration":false,"CSSStyleRule":false,"CSSStyleSheet":false,"CSSSupportsRule":false,"CustomElementRegistry":false,"customElements":false,"CustomEvent":false,"DataTransfer":false,"DataTransferItem":false,"DataTransferItemList":false,"defaultstatus":false,"defaultStatus":false,"DelayNode":false,"DeviceMotionEvent":false,"DeviceOrientationEvent":false,"devicePixelRatio":false,"dispatchEvent":false,"document":false,"Document":false,"DocumentFragment":false,"DocumentType":false,"DOMError":false,"DOMException":false,"DOMImplementation":false,"DOMMatrix":false,"DOMMatrixReadOnly":false,"DOMParser":false,"DOMPoint":false,"DOMPointReadOnly":false,"DOMQuad":false,"DOMRect":false,"DOMRectReadOnly":false,"DOMStringList":false,"DOMStringMap":false,"DOMTokenList":false,"DragEvent":false,"DynamicsCompressorNode":false,"Element":false,"ErrorEvent":false,"event":false,"Event":false,"EventSource":false,"EventTarget":false,"external":false,"fetch":false,"File":false,"FileList":false,"FileReader":false,"find":false,"focus":false,"FocusEvent":false,"FontFace":false,"FontFaceSetLoadEvent":false,"FormData":false,"frameElement":false,"frames":false,"GainNode":false,"Gamepad":false,"GamepadButton":false,"GamepadEvent":false,"getComputedStyle":false,"getSelection":false,"HashChangeEvent":false,"Headers":false,"history":false,"History":false,"HTMLAllCollection":false,"HTMLAnchorElement":false,"HTMLAreaElement":false,"HTMLAudioElement":false,"HTMLBaseElement":false,"HTMLBodyElement":false,"HTMLBRElement":false,"HTMLButtonElement":false,"HTMLCanvasElement":false,"HTMLCollection":false,"HTMLContentElement":false,"HTMLDataElement":false,"HTMLDataListElement":false,"HTMLDetailsElement":false,"HTMLDialogElement":false,"HTMLDirectoryElement":false,"HTMLDivElement":false,"HTMLDListElement":false,"HTMLDocument":false,"HTMLElement":false,"HTMLEmbedElement":false,"HTMLFieldSetElement":false,"HTMLFontElement":false,"HTMLFormControlsCollection":false,"HTMLFormElement":false,"HTMLFrameElement":false,"HTMLFrameSetElement":false,"HTMLHeadElement":false,"HTMLHeadingElement":false,"HTMLHRElement":false,"HTMLHtmlElement":false,"HTMLIFrameElement":false,"HTMLImageElement":false,"HTMLInputElement":false,"HTMLLabelElement":false,"HTMLLegendElement":false,"HTMLLIElement":false,"HTMLLinkElement":false,"HTMLMapElement":false,"HTMLMarqueeElement":false,"HTMLMediaElement":false,"HTMLMenuElement":false,"HTMLMetaElement":false,"HTMLMeterElement":false,"HTMLModElement":false,"HTMLObjectElement":false,"HTMLOListElement":false,"HTMLOptGroupElement":false,"HTMLOptionElement":false,"HTMLOptionsCollection":false,"HTMLOutputElement":false,"HTMLParagraphElement":false,"HTMLParamElement":false,"HTMLPictureElement":false,"HTMLPreElement":false,"HTMLProgressElement":false,"HTMLQuoteElement":false,"HTMLScriptElement":false,"HTMLSelectElement":false,"HTMLShadowElement":false,"HTMLSlotElement":false,"HTMLSourceElement":false,"HTMLSpanElement":false,"HTMLStyleElement":false,"HTMLTableCaptionElement":false,"HTMLTableCellElement":false,"HTMLTableColElement":false,"HTMLTableElement":false,"HTMLTableRowElement":false,"HTMLTableSectionElement":false,"HTMLTemplateElement":false,"HTMLTextAreaElement":false,"HTMLTimeElement":false,"HTMLTitleElement":false,"HTMLTrackElement":false,"HTMLUListElement":false,"HTMLUnknownElement":false,"HTMLVideoElement":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"IdleDeadline":false,"IIRFilterNode":false,"Image":false,"ImageBitmap":false,"ImageBitmapRenderingContext":false,"ImageCapture":false,"ImageData":false,"indexedDB":false,"innerHeight":false,"innerWidth":false,"InputEvent":false,"IntersectionObserver":false,"IntersectionObserverEntry":false,"Intl":false,"isSecureContext":false,"KeyboardEvent":false,"KeyframeEffect":false,"KeyframeEffectReadOnly":false,"length":false,"localStorage":false,"location":true,"Location":false,"locationbar":false,"matchMedia":false,"MediaDeviceInfo":false,"MediaDevices":false,"MediaElementAudioSourceNode":false,"MediaEncryptedEvent":false,"MediaError":false,"MediaKeyMessageEvent":false,"MediaKeySession":false,"MediaKeyStatusMap":false,"MediaKeySystemAccess":false,"MediaList":false,"MediaQueryList":false,"MediaQueryListEvent":false,"MediaRecorder":false,"MediaSettingsRange":false,"MediaSource":false,"MediaStream":false,"MediaStreamAudioDestinationNode":false,"MediaStreamAudioSourceNode":false,"MediaStreamEvent":false,"MediaStreamTrack":false,"MediaStreamTrackEvent":false,"menubar":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"MIDIAccess":false,"MIDIConnectionEvent":false,"MIDIInput":false,"MIDIInputMap":false,"MIDIMessageEvent":false,"MIDIOutput":false,"MIDIOutputMap":false,"MIDIPort":false,"MimeType":false,"MimeTypeArray":false,"MouseEvent":false,"moveBy":false,"moveTo":false,"MutationEvent":false,"MutationObserver":false,"MutationRecord":false,"name":false,"NamedNodeMap":false,"NavigationPreloadManager":false,"navigator":false,"Navigator":false,"NetworkInformation":false,"Node":false,"NodeFilter":false,"NodeIterator":false,"NodeList":false,"Notification":false,"OfflineAudioCompletionEvent":false,"OfflineAudioContext":false,"offscreenBuffering":false,"OffscreenCanvas":true,"onabort":true,"onafterprint":true,"onanimationend":true,"onanimationiteration":true,"onanimationstart":true,"onappinstalled":true,"onauxclick":true,"onbeforeinstallprompt":true,"onbeforeprint":true,"onbeforeunload":true,"onblur":true,"oncancel":true,"oncanplay":true,"oncanplaythrough":true,"onchange":true,"onclick":true,"onclose":true,"oncontextmenu":true,"oncuechange":true,"ondblclick":true,"ondevicemotion":true,"ondeviceorientation":true,"ondeviceorientationabsolute":true,"ondrag":true,"ondragend":true,"ondragenter":true,"ondragleave":true,"ondragover":true,"ondragstart":true,"ondrop":true,"ondurationchange":true,"onemptied":true,"onended":true,"onerror":true,"onfocus":true,"ongotpointercapture":true,"onhashchange":true,"oninput":true,"oninvalid":true,"onkeydown":true,"onkeypress":true,"onkeyup":true,"onlanguagechange":true,"onload":true,"onloadeddata":true,"onloadedmetadata":true,"onloadstart":true,"onlostpointercapture":true,"onmessage":true,"onmessageerror":true,"onmousedown":true,"onmouseenter":true,"onmouseleave":true,"onmousemove":true,"onmouseout":true,"onmouseover":true,"onmouseup":true,"onmousewheel":true,"onoffline":true,"ononline":true,"onpagehide":true,"onpageshow":true,"onpause":true,"onplay":true,"onplaying":true,"onpointercancel":true,"onpointerdown":true,"onpointerenter":true,"onpointerleave":true,"onpointermove":true,"onpointerout":true,"onpointerover":true,"onpointerup":true,"onpopstate":true,"onprogress":true,"onratechange":true,"onrejectionhandled":true,"onreset":true,"onresize":true,"onscroll":true,"onsearch":true,"onseeked":true,"onseeking":true,"onselect":true,"onstalled":true,"onstorage":true,"onsubmit":true,"onsuspend":true,"ontimeupdate":true,"ontoggle":true,"ontransitionend":true,"onunhandledrejection":true,"onunload":true,"onvolumechange":true,"onwaiting":true,"onwheel":true,"open":false,"openDatabase":false,"opener":false,"Option":false,"origin":false,"OscillatorNode":false,"outerHeight":false,"outerWidth":false,"PageTransitionEvent":false,"pageXOffset":false,"pageYOffset":false,"PannerNode":false,"parent":false,"Path2D":false,"PaymentAddress":false,"PaymentRequest":false,"PaymentRequestUpdateEvent":false,"PaymentResponse":false,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceLongTaskTiming":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceNavigationTiming":false,"PerformanceObserver":false,"PerformanceObserverEntryList":false,"PerformancePaintTiming":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"PeriodicWave":false,"Permissions":false,"PermissionStatus":false,"personalbar":false,"PhotoCapabilities":false,"Plugin":false,"PluginArray":false,"PointerEvent":false,"PopStateEvent":false,"postMessage":false,"Presentation":false,"PresentationAvailability":false,"PresentationConnection":false,"PresentationConnectionAvailableEvent":false,"PresentationConnectionCloseEvent":false,"PresentationConnectionList":false,"PresentationReceiver":false,"PresentationRequest":false,"print":false,"ProcessingInstruction":false,"ProgressEvent":false,"PromiseRejectionEvent":false,"prompt":false,"PushManager":false,"PushSubscription":false,"PushSubscriptionOptions":false,"queueMicrotask":false,"RadioNodeList":false,"Range":false,"ReadableStream":false,"registerProcessor":false,"RemotePlayback":false,"removeEventListener":false,"Request":false,"requestAnimationFrame":false,"requestIdleCallback":false,"resizeBy":false,"ResizeObserver":false,"ResizeObserverEntry":false,"resizeTo":false,"Response":false,"RTCCertificate":false,"RTCDataChannel":false,"RTCDataChannelEvent":false,"RTCDtlsTransport":false,"RTCIceCandidate":false,"RTCIceGatherer":false,"RTCIceTransport":false,"RTCPeerConnection":false,"RTCPeerConnectionIceEvent":false,"RTCRtpContributingSource":false,"RTCRtpReceiver":false,"RTCRtpSender":false,"RTCSctpTransport":false,"RTCSessionDescription":false,"RTCStatsReport":false,"RTCTrackEvent":false,"screen":false,"Screen":false,"screenLeft":false,"ScreenOrientation":false,"screenTop":false,"screenX":false,"screenY":false,"ScriptProcessorNode":false,"scroll":false,"scrollbars":false,"scrollBy":false,"scrollTo":false,"scrollX":false,"scrollY":false,"SecurityPolicyViolationEvent":false,"Selection":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerRegistration":false,"sessionStorage":false,"setInterval":false,"setTimeout":false,"ShadowRoot":false,"SharedWorker":false,"SourceBuffer":false,"SourceBufferList":false,"speechSynthesis":false,"SpeechSynthesisEvent":false,"SpeechSynthesisUtterance":false,"StaticRange":false,"status":false,"statusbar":false,"StereoPannerNode":false,"stop":false,"Storage":false,"StorageEvent":false,"StorageManager":false,"styleMedia":false,"StyleSheet":false,"StyleSheetList":false,"SubtleCrypto":false,"SVGAElement":false,"SVGAngle":false,"SVGAnimatedAngle":false,"SVGAnimatedBoolean":false,"SVGAnimatedEnumeration":false,"SVGAnimatedInteger":false,"SVGAnimatedLength":false,"SVGAnimatedLengthList":false,"SVGAnimatedNumber":false,"SVGAnimatedNumberList":false,"SVGAnimatedPreserveAspectRatio":false,"SVGAnimatedRect":false,"SVGAnimatedString":false,"SVGAnimatedTransformList":false,"SVGAnimateElement":false,"SVGAnimateMotionElement":false,"SVGAnimateTransformElement":false,"SVGAnimationElement":false,"SVGCircleElement":false,"SVGClipPathElement":false,"SVGComponentTransferFunctionElement":false,"SVGDefsElement":false,"SVGDescElement":false,"SVGDiscardElement":false,"SVGElement":false,"SVGEllipseElement":false,"SVGFEBlendElement":false,"SVGFEColorMatrixElement":false,"SVGFEComponentTransferElement":false,"SVGFECompositeElement":false,"SVGFEConvolveMatrixElement":false,"SVGFEDiffuseLightingElement":false,"SVGFEDisplacementMapElement":false,"SVGFEDistantLightElement":false,"SVGFEDropShadowElement":false,"SVGFEFloodElement":false,"SVGFEFuncAElement":false,"SVGFEFuncBElement":false,"SVGFEFuncGElement":false,"SVGFEFuncRElement":false,"SVGFEGaussianBlurElement":false,"SVGFEImageElement":false,"SVGFEMergeElement":false,"SVGFEMergeNodeElement":false,"SVGFEMorphologyElement":false,"SVGFEOffsetElement":false,"SVGFEPointLightElement":false,"SVGFESpecularLightingElement":false,"SVGFESpotLightElement":false,"SVGFETileElement":false,"SVGFETurbulenceElement":false,"SVGFilterElement":false,"SVGForeignObjectElement":false,"SVGGElement":false,"SVGGeometryElement":false,"SVGGradientElement":false,"SVGGraphicsElement":false,"SVGImageElement":false,"SVGLength":false,"SVGLengthList":false,"SVGLinearGradientElement":false,"SVGLineElement":false,"SVGMarkerElement":false,"SVGMaskElement":false,"SVGMatrix":false,"SVGMetadataElement":false,"SVGMPathElement":false,"SVGNumber":false,"SVGNumberList":false,"SVGPathElement":false,"SVGPatternElement":false,"SVGPoint":false,"SVGPointList":false,"SVGPolygonElement":false,"SVGPolylineElement":false,"SVGPreserveAspectRatio":false,"SVGRadialGradientElement":false,"SVGRect":false,"SVGRectElement":false,"SVGScriptElement":false,"SVGSetElement":false,"SVGStopElement":false,"SVGStringList":false,"SVGStyleElement":false,"SVGSVGElement":false,"SVGSwitchElement":false,"SVGSymbolElement":false,"SVGTextContentElement":false,"SVGTextElement":false,"SVGTextPathElement":false,"SVGTextPositioningElement":false,"SVGTitleElement":false,"SVGTransform":false,"SVGTransformList":false,"SVGTSpanElement":false,"SVGUnitTypes":false,"SVGUseElement":false,"SVGViewElement":false,"TaskAttributionTiming":false,"Text":false,"TextDecoder":false,"TextEncoder":false,"TextEvent":false,"TextMetrics":false,"TextTrack":false,"TextTrackCue":false,"TextTrackCueList":false,"TextTrackList":false,"TimeRanges":false,"toolbar":false,"top":false,"Touch":false,"TouchEvent":false,"TouchList":false,"TrackEvent":false,"TransitionEvent":false,"TreeWalker":false,"UIEvent":false,"URL":false,"URLSearchParams":false,"ValidityState":false,"visualViewport":false,"VisualViewport":false,"VTTCue":false,"WaveShaperNode":false,"WebAssembly":false,"WebGL2RenderingContext":false,"WebGLActiveInfo":false,"WebGLBuffer":false,"WebGLContextEvent":false,"WebGLFramebuffer":false,"WebGLProgram":false,"WebGLQuery":false,"WebGLRenderbuffer":false,"WebGLRenderingContext":false,"WebGLSampler":false,"WebGLShader":false,"WebGLShaderPrecisionFormat":false,"WebGLSync":false,"WebGLTexture":false,"WebGLTransformFeedback":false,"WebGLUniformLocation":false,"WebGLVertexArrayObject":false,"WebSocket":false,"WheelEvent":false,"window":false,"Window":false,"Worker":false,"WritableStream":false,"XMLDocument":false,"XMLHttpRequest":false,"XMLHttpRequestEventTarget":false,"XMLHttpRequestUpload":false,"XMLSerializer":false,"XPathEvaluator":false,"XPathExpression":false,"XPathResult":false,"XSLTProcessor":false},"worker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"clearInterval":false,"clearTimeout":false,"close":true,"console":false,"fetch":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":true,"indexedDB":false,"location":false,"MessageChannel":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onlanguagechange":true,"onmessage":true,"onoffline":true,"ononline":true,"onrejectionhandled":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"removeEventListener":false,"Request":false,"Response":false,"self":true,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"node":{"__dirname":false,"__filename":false,"Buffer":false,"clearImmediate":false,"clearInterval":false,"clearTimeout":false,"console":false,"exports":true,"global":false,"Intl":false,"module":false,"process":false,"queueMicrotask":false,"require":false,"setImmediate":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false},"commonjs":{"exports":true,"global":false,"module":false,"require":false},"amd":{"define":false,"require":false},"mocha":{"after":false,"afterEach":false,"before":false,"beforeEach":false,"context":false,"describe":false,"it":false,"mocha":false,"run":false,"setup":false,"specify":false,"suite":false,"suiteSetup":false,"suiteTeardown":false,"teardown":false,"test":false,"xcontext":false,"xdescribe":false,"xit":false,"xspecify":false},"jasmine":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fail":false,"fdescribe":false,"fit":false,"it":false,"jasmine":false,"pending":false,"runs":false,"spyOn":false,"spyOnProperty":false,"waits":false,"waitsFor":false,"xdescribe":false,"xit":false},"jest":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fdescribe":false,"fit":false,"it":false,"jest":false,"pit":false,"require":false,"test":false,"xdescribe":false,"xit":false,"xtest":false},"qunit":{"asyncTest":false,"deepEqual":false,"equal":false,"expect":false,"module":false,"notDeepEqual":false,"notEqual":false,"notOk":false,"notPropEqual":false,"notStrictEqual":false,"ok":false,"propEqual":false,"QUnit":false,"raises":false,"start":false,"stop":false,"strictEqual":false,"test":false,"throws":false},"phantomjs":{"console":true,"exports":true,"phantom":true,"require":true,"WebPage":true},"couch":{"emit":false,"exports":false,"getRow":false,"log":false,"module":false,"provides":false,"require":false,"respond":false,"send":false,"start":false,"sum":false},"rhino":{"defineClass":false,"deserialize":false,"gc":false,"help":false,"importClass":false,"importPackage":false,"java":false,"load":false,"loadClass":false,"Packages":false,"print":false,"quit":false,"readFile":false,"readUrl":false,"runCommand":false,"seal":false,"serialize":false,"spawn":false,"sync":false,"toint32":false,"version":false},"nashorn":{"__DIR__":false,"__FILE__":false,"__LINE__":false,"com":false,"edu":false,"exit":false,"java":false,"Java":false,"javafx":false,"JavaImporter":false,"javax":false,"JSAdapter":false,"load":false,"loadWithNewGlobal":false,"org":false,"Packages":false,"print":false,"quit":false},"wsh":{"ActiveXObject":true,"Enumerator":true,"GetObject":true,"ScriptEngine":true,"ScriptEngineBuildVersion":true,"ScriptEngineMajorVersion":true,"ScriptEngineMinorVersion":true,"VBArray":true,"WScript":true,"WSH":true,"XDomainRequest":true},"jquery":{"$":false,"jQuery":false},"yui":{"YAHOO":false,"YAHOO_config":false,"YUI":false,"YUI_config":false},"shelljs":{"cat":false,"cd":false,"chmod":false,"config":false,"cp":false,"dirs":false,"echo":false,"env":false,"error":false,"exec":false,"exit":false,"find":false,"grep":false,"ln":false,"ls":false,"mkdir":false,"mv":false,"popd":false,"pushd":false,"pwd":false,"rm":false,"sed":false,"set":false,"target":false,"tempdir":false,"test":false,"touch":false,"which":false},"prototypejs":{"$":false,"$$":false,"$A":false,"$break":false,"$continue":false,"$F":false,"$H":false,"$R":false,"$w":false,"Abstract":false,"Ajax":false,"Autocompleter":false,"Builder":false,"Class":false,"Control":false,"Draggable":false,"Draggables":false,"Droppables":false,"Effect":false,"Element":false,"Enumerable":false,"Event":false,"Field":false,"Form":false,"Hash":false,"Insertion":false,"ObjectRange":false,"PeriodicalExecuter":false,"Position":false,"Prototype":false,"Scriptaculous":false,"Selector":false,"Sortable":false,"SortableObserver":false,"Sound":false,"Template":false,"Toggle":false,"Try":false},"meteor":{"_":false,"$":false,"Accounts":false,"AccountsClient":false,"AccountsCommon":false,"AccountsServer":false,"App":false,"Assets":false,"Blaze":false,"check":false,"Cordova":false,"DDP":false,"DDPRateLimiter":false,"DDPServer":false,"Deps":false,"EJSON":false,"Email":false,"HTTP":false,"Log":false,"Match":false,"Meteor":false,"Mongo":false,"MongoInternals":false,"Npm":false,"Package":false,"Plugin":false,"process":false,"Random":false,"ReactiveDict":false,"ReactiveVar":false,"Router":false,"ServiceConfiguration":false,"Session":false,"share":false,"Spacebars":false,"Template":false,"Tinytest":false,"Tracker":false,"UI":false,"Utils":false,"WebApp":false,"WebAppInternals":false},"mongo":{"_isWindows":false,"_rand":false,"BulkWriteResult":false,"cat":false,"cd":false,"connect":false,"db":false,"getHostName":false,"getMemInfo":false,"hostname":false,"ISODate":false,"listFiles":false,"load":false,"ls":false,"md5sumFile":false,"mkdir":false,"Mongo":false,"NumberInt":false,"NumberLong":false,"ObjectId":false,"PlanCache":false,"print":false,"printjson":false,"pwd":false,"quit":false,"removeFile":false,"rs":false,"sh":false,"UUID":false,"version":false,"WriteResult":false},"applescript":{"$":false,"Application":false,"Automation":false,"console":false,"delay":false,"Library":false,"ObjC":false,"ObjectSpecifier":false,"Path":false,"Progress":false,"Ref":false},"serviceworker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"CacheStorage":false,"clearInterval":false,"clearTimeout":false,"Client":false,"clients":false,"Clients":false,"close":true,"console":false,"ExtendableEvent":false,"ExtendableMessageEvent":false,"fetch":false,"FetchEvent":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":false,"indexedDB":false,"location":false,"MessageChannel":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onfetch":true,"oninstall":true,"onlanguagechange":true,"onmessage":true,"onmessageerror":true,"onnotificationclick":true,"onnotificationclose":true,"onoffline":true,"ononline":true,"onpush":true,"onpushsubscriptionchange":true,"onrejectionhandled":true,"onsync":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"registration":false,"removeEventListener":false,"Request":false,"Response":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerGlobalScope":false,"ServiceWorkerMessageEvent":false,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"skipWaiting":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"WindowClient":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"atomtest":{"advanceClock":false,"fakeClearInterval":false,"fakeClearTimeout":false,"fakeSetInterval":false,"fakeSetTimeout":false,"resetTimeouts":false,"waitsForPromise":false},"embertest":{"andThen":false,"click":false,"currentPath":false,"currentRouteName":false,"currentURL":false,"fillIn":false,"find":false,"findAll":false,"findWithAssert":false,"keyEvent":false,"pauseTest":false,"resumeTest":false,"triggerEvent":false,"visit":false,"wait":false},"protractor":{"$":false,"$$":false,"browser":false,"by":false,"By":false,"DartObject":false,"element":false,"protractor":false},"shared-node-browser":{"clearInterval":false,"clearTimeout":false,"console":false,"setInterval":false,"setTimeout":false,"URL":false,"URLSearchParams":false},"webextensions":{"browser":false,"chrome":false,"opr":false},"greasemonkey":{"cloneInto":false,"createObjectIn":false,"exportFunction":false,"GM":false,"GM_addStyle":false,"GM_deleteValue":false,"GM_getResourceText":false,"GM_getResourceURL":false,"GM_getValue":false,"GM_info":false,"GM_listValues":false,"GM_log":false,"GM_openInTab":false,"GM_registerMenuCommand":false,"GM_setClipboard":false,"GM_setValue":false,"GM_xmlhttpRequest":false,"unsafeWindow":false},"devtools":{"$":false,"$_":false,"$$":false,"$0":false,"$1":false,"$2":false,"$3":false,"$4":false,"$x":false,"chrome":false,"clear":false,"copy":false,"debug":false,"dir":false,"dirxml":false,"getEventListeners":false,"inspect":false,"keys":false,"monitor":false,"monitorEvents":false,"profile":false,"profileEnd":false,"queryObjects":false,"table":false,"undebug":false,"unmonitor":false,"unmonitorEvents":false,"values":false}}')},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(244);t.default=class{constructor(e,t){this._cachedMap=void 0,this._code=void 0,this._opts=void 0,this._rawMappings=void 0,this._lastGenLine=void 0,this._lastSourceLine=void 0,this._lastSourceColumn=void 0,this._cachedMap=null,this._code=t,this._opts=e,this._rawMappings=[]}get(){if(!this._cachedMap){const e=this._cachedMap=new r.SourceMapGenerator({sourceRoot:this._opts.sourceRoot}),t=this._code;"string"==typeof t?e.setSourceContent(this._opts.sourceFileName.replace(/\\/g,"/"),t):"object"==typeof t&&Object.keys(t).forEach(n=>{e.setSourceContent(n.replace(/\\/g,"/"),t[n])}),this._rawMappings.forEach(t=>e.addMapping(t),e)}return this._cachedMap.toJSON()}getRawMappings(){return this._rawMappings.slice()}mark(e,t,n,r,i,s,o){this._lastGenLine!==e&&null===n||(o||this._lastGenLine!==e||this._lastSourceLine!==n||this._lastSourceColumn!==r)&&(this._cachedMap=null,this._lastGenLine=e,this._lastSourceLine=n,this._lastSourceColumn=r,this._rawMappings.push({name:i||void 0,generated:{line:e,column:t},source:null==n?void 0:(s||this._opts.sourceFileName).replace(/\\/g,"/"),original:null==n?void 0:{line:n,column:r}}))}}},function(e,t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},function(e,t,n){var r=n(65);function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){var t,n,i,s,o,a;t=this._last,n=e,i=t.generatedLine,s=n.generatedLine,o=t.generatedColumn,a=n.generatedColumn,s>i||s==i&&a>=o||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=i},function(e,t,n){var r=n(65),i=n(571),s=n(247).ArraySet,o=n(246),a=n(572).quickSort;function l(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new h(t):new u(t)}function u(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=r.getArg(t,"version"),i=r.getArg(t,"sources"),o=r.getArg(t,"names",[]),a=r.getArg(t,"sourceRoot",null),l=r.getArg(t,"sourcesContent",null),u=r.getArg(t,"mappings"),c=r.getArg(t,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);i=i.map(String).map(r.normalize).map((function(e){return a&&r.isAbsolute(a)&&r.isAbsolute(e)?r.relative(a,e):e})),this._names=s.fromArray(o.map(String),!0),this._sources=s.fromArray(i,!0),this.sourceRoot=a,this.sourcesContent=l,this._mappings=u,this.file=c}function c(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function h(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=r.getArg(t,"version"),i=r.getArg(t,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new s,this._names=new s;var o={line:-1,column:0};this._sections=i.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=r.getArg(e,"offset"),n=r.getArg(t,"line"),i=r.getArg(t,"column");if(n<o.line||n===o.line&&i<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=t,{generatedOffset:{generatedLine:n+1,generatedColumn:i+1},consumer:new l(r.getArg(e,"map"))}}))}l.fromSourceMap=function(e){return u.fromSourceMap(e)},l.prototype._version=3,l.prototype.__generatedMappings=null,Object.defineProperty(l.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),l.prototype.__originalMappings=null,Object.defineProperty(l.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),l.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},l.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},l.GENERATED_ORDER=1,l.ORIGINAL_ORDER=2,l.GREATEST_LOWER_BOUND=1,l.LEAST_UPPER_BOUND=2,l.prototype.eachMapping=function(e,t,n){var i,s=t||null;switch(n||l.GENERATED_ORDER){case l.GENERATED_ORDER:i=this._generatedMappings;break;case l.ORIGINAL_ORDER:i=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var o=this.sourceRoot;i.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=o&&(t=r.join(o,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,s)},l.prototype.allGeneratedPositionsFor=function(e){var t=r.getArg(e,"line"),n={source:r.getArg(e,"source"),originalLine:t,originalColumn:r.getArg(e,"column",0)};if(null!=this.sourceRoot&&(n.source=r.relative(this.sourceRoot,n.source)),!this._sources.has(n.source))return[];n.source=this._sources.indexOf(n.source);var s=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,i.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(void 0===e.column)for(var l=a.originalLine;a&&a.originalLine===l;)s.push({line:r.getArg(a,"generatedLine",null),column:r.getArg(a,"generatedColumn",null),lastColumn:r.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var u=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==u;)s.push({line:r.getArg(a,"generatedLine",null),column:r.getArg(a,"generatedColumn",null),lastColumn:r.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return s},t.SourceMapConsumer=l,u.prototype=Object.create(l.prototype),u.prototype.consumer=l,u.fromSourceMap=function(e){var t=Object.create(u.prototype),n=t._names=s.fromArray(e._names.toArray(),!0),i=t._sources=s.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var o=e._mappings.toArray().slice(),l=t.__generatedMappings=[],h=t.__originalMappings=[],d=0,f=o.length;d<f;d++){var p=o[d],m=new c;m.generatedLine=p.generatedLine,m.generatedColumn=p.generatedColumn,p.source&&(m.source=i.indexOf(p.source),m.originalLine=p.originalLine,m.originalColumn=p.originalColumn,p.name&&(m.name=n.indexOf(p.name)),h.push(m)),l.push(m)}return a(t.__originalMappings,r.compareByOriginalPositions),t},u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){return this._sources.toArray().map((function(e){return null!=this.sourceRoot?r.join(this.sourceRoot,e):e}),this)}}),u.prototype._parseMappings=function(e,t){for(var n,i,s,l,u,h=1,d=0,f=0,p=0,m=0,g=0,y=e.length,v=0,b={},w={},_=[],S=[];v<y;)if(";"===e.charAt(v))h++,v++,d=0;else if(","===e.charAt(v))v++;else{for((n=new c).generatedLine=h,l=v;l<y&&!this._charIsMappingSeparator(e,l);l++);if(s=b[i=e.slice(v,l)])v+=i.length;else{for(s=[];v<l;)o.decode(e,v,w),u=w.value,v=w.rest,s.push(u);if(2===s.length)throw new Error("Found a source, but no line and column");if(3===s.length)throw new Error("Found a source and line, but no column");b[i]=s}n.generatedColumn=d+s[0],d=n.generatedColumn,s.length>1&&(n.source=m+s[1],m+=s[1],n.originalLine=f+s[2],f=n.originalLine,n.originalLine+=1,n.originalColumn=p+s[3],p=n.originalColumn,s.length>4&&(n.name=g+s[4],g+=s[4])),S.push(n),"number"==typeof n.originalLine&&_.push(n)}a(S,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,a(_,r.compareByOriginalPositions),this.__originalMappings=_},u.prototype._findMapping=function(e,t,n,r,s,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return i.search(e,t,s,o)},u.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},u.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",r.compareByGeneratedPositionsDeflated,r.getArg(e,"bias",l.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===t.generatedLine){var s=r.getArg(i,"source",null);null!==s&&(s=this._sources.at(s),null!=this.sourceRoot&&(s=r.join(this.sourceRoot,s)));var o=r.getArg(i,"name",null);return null!==o&&(o=this._names.at(o)),{source:s,line:r.getArg(i,"originalLine",null),column:r.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},u.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=r.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=r.urlParse(this.sourceRoot))){var i=e.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!n.path||"/"==n.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(e){var t=r.getArg(e,"source");if(null!=this.sourceRoot&&(t=r.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var n={source:t=this._sources.indexOf(t),originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(e,"bias",l.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=u,h.prototype=Object.create(l.prototype),h.prototype.constructor=l,h.prototype._version=3,Object.defineProperty(h.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),h.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=i.search(t,this._sections,(function(e,t){var n=e.generatedLine-t.generatedOffset.generatedLine;return n||e.generatedColumn-t.generatedOffset.generatedColumn})),s=this._sections[n];return s?s.consumer.originalPositionFor({line:t.generatedLine-(s.generatedOffset.generatedLine-1),column:t.generatedColumn-(s.generatedOffset.generatedLine===t.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},h.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},h.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},h.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer.sources.indexOf(r.getArg(e,"source"))){var i=n.consumer.generatedPositionFor(e);if(i)return{line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},h.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,o=0;o<s.length;o++){var l=s[o],u=i.consumer._sources.at(l.source);null!==i.consumer.sourceRoot&&(u=r.join(i.consumer.sourceRoot,u)),this._sources.add(u),u=this._sources.indexOf(u);var c=i.consumer._names.at(l.name);this._names.add(c),c=this._names.indexOf(c);var h={source:u,generatedLine:l.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(i.generatedOffset.generatedLine===l.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:c};this.__generatedMappings.push(h),"number"==typeof h.originalLine&&this.__originalMappings.push(h)}a(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),a(this.__originalMappings,r.compareByOriginalPositions)},t.IndexedSourceMapConsumer=h},function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,r,i){if(0===n.length)return-1;var s=function e(n,r,i,s,o,a){var l=Math.floor((r-n)/2)+n,u=o(i,s[l],!0);return 0===u?l:u>0?r-l>1?e(l,r,i,s,o,a):a==t.LEAST_UPPER_BOUND?r<s.length?r:-1:l:l-n>1?e(n,l,i,s,o,a):a==t.LEAST_UPPER_BOUND?l:n<0?-1:n}(-1,n.length,e,n,r,i||t.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===r(n[s],n[s-1],!0);)--s;return s}},function(e,t){function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t,i,s){if(i<s){var o=i-1;n(e,(c=i,h=s,Math.round(c+Math.random()*(h-c))),s);for(var a=e[s],l=i;l<s;l++)t(e[l],a)<=0&&n(e,o+=1,l);n(e,o+1,l);var u=o+1;r(e,t,i,u-1),r(e,t,u+1,s)}var c,h}t.quickSort=function(e,t){r(e,t,0,e.length-1)}},function(e,t,n){var r=n(245).SourceMapGenerator,i=n(65),s=/(\r?\n)/,o="$$$isSourceNode$$$";function a(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==i?null:i,this[o]=!0,null!=r&&this.add(r)}a.fromStringWithSourceMap=function(e,t,n){var r=new a,o=e.split(s),l=0,u=function(){return e()+(e()||"");function e(){return l<o.length?o[l++]:void 0}},c=1,h=0,d=null;return t.eachMapping((function(e){if(null!==d){if(!(c<e.generatedLine)){var t=(n=o[l]).substr(0,e.generatedColumn-h);return o[l]=n.substr(e.generatedColumn-h),h=e.generatedColumn,f(d,t),void(d=e)}f(d,u()),c++,h=0}for(;c<e.generatedLine;)r.add(u()),c++;if(h<e.generatedColumn){var n=o[l];r.add(n.substr(0,e.generatedColumn)),o[l]=n.substr(e.generatedColumn),h=e.generatedColumn}d=e}),this),l<o.length&&(d&&f(d,u()),r.add(o.splice(l).join(""))),t.sources.forEach((function(e){var s=t.sourceContentFor(e);null!=s&&(null!=n&&(e=i.join(n,e)),r.setSourceContent(e,s))})),r;function f(e,t){if(null===e||void 0===e.source)r.add(t);else{var s=n?i.join(n,e.source):e.source;r.add(new a(e.originalLine,e.originalColumn,s,t,e.name))}}},a.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},a.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},a.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)(t=this.children[n])[o]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},a.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[o]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},a.prototype.setSourceContent=function(e,t){this.sourceContents[i.toSetString(e)]=t},a.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][o]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,n=r.length;t<n;t++)e(i.fromSetString(r[t]),this.sourceContents[r[t]])},a.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},a.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new r(e),i=!1,s=null,o=null,a=null,l=null;return this.walk((function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?(s===r.source&&o===r.line&&a===r.column&&l===r.name||n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),s=r.source,o=r.line,a=r.column,l=r.name,i=!0):i&&(n.addMapping({generated:{line:t.line,column:t.column}}),s=null,i=!1);for(var u=0,c=e.length;u<c;u++)10===e.charCodeAt(u)?(t.line++,t.column=0,u+1===c?(s=null,i=!1):i&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})):t.column++})),this.walkSourceContents((function(e,t){n.setSourceContent(e,t)})),{code:t.code,map:n}},t.SourceNode=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(575),i=n(248),s=n(1),o=n(578);const{isProgram:a,isFile:l,isEmptyStatement:u}=s,c=/e/i,h=/\.0+$/,d=/^0[box]/,f=/^\s*[@#]__PURE__\s*$/,{needsParens:p,needsWhitespaceAfter:m,needsWhitespaceBefore:g}=i;class y{constructor(e,t){this.inForStatementInitCounter=0,this._printStack=[],this._indent=0,this._insideAux=!1,this._parenPushNewlineState=null,this._noLineTerminator=!1,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new WeakSet,this._endsWithInteger=!1,this._endsWithWord=!1,this.format=e,this._buf=new r.default(t)}generate(e){return this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){this.format.compact||this.format.concise||this._indent++}dedent(){this.format.compact||this.format.concise||this._indent--}semicolon(e=!1){this._maybeAddAuxComment(),this._append(";",!e)}rightBrace(){this.format.minified&&this._buf.removeLastSemicolon(),this.token("}")}space(e=!1){if(!this.format.compact)if(e)this._space();else if(this._buf.hasContent()){const e=this.getLastChar();32!==e&&10!==e&&this._space()}}word(e){(this._endsWithWord||this.endsWith(47)&&47===e.charCodeAt(0))&&this._space(),this._maybeAddAuxComment(),this._append(e),this._endsWithWord=!0}number(e){this.word(e),this._endsWithInteger=Number.isInteger(+e)&&!d.test(e)&&!c.test(e)&&!h.test(e)&&46!==e.charCodeAt(e.length-1)}token(e){const t=this.getLastChar(),n=e.charCodeAt(0);("--"===e&&33===t||43===n&&43===t||45===n&&45===t||46===n&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._append(e)}newline(e=1){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space();const t=this.endsWithCharAndNewline();if(10!==t&&(123!==t&&58!==t||e--,!(e<=0)))for(let t=0;t<e;t++)this._newline()}endsWith(e){return this.getLastChar()===e}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,t){this._catchUp("start",e),this._buf.exactSource(e,t)}source(e,t){this._catchUp(e,t),this._buf.source(e,t)}withSource(e,t,n){this._catchUp(e,t),this._buf.withSource(e,t,n)}_space(){this._append(" ",!0)}_newline(){this._append("\n",!0)}_append(e,t=!1){this._maybeAddParen(e),this._maybeIndent(e),t?this._buf.queue(e):this._buf.append(e),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(e){this._indent&&this.endsWith(10)&&10!==e.charCodeAt(0)&&this._buf.queue(this._getIndent())}_maybeAddParen(e){const t=this._parenPushNewlineState;if(!t)return;let n;for(n=0;n<e.length&&" "===e[n];n++)continue;if(n===e.length)return;const r=e[n];if("\n"!==r){if("/"!==r||n+1===e.length)return void(this._parenPushNewlineState=null);const t=e[n+1];if("*"===t){if(f.test(e.slice(n+2,e.length-2)))return}else if("/"!==t)return void(this._parenPushNewlineState=null)}this.token("("),this.indent(),t.printed=!0}_catchUp(e,t){if(!this.format.retainLines)return;const n=t?t[e]:null;if(null!=(null==n?void 0:n.line)){const e=n.line-this._buf.getCurrentLine();for(let t=0;t<e;t++)this._newline()}}_getIndent(){return this.format.indent.style.repeat(this._indent)}startTerminatorless(e=!1){return e?(this._noLineTerminator=!0,null):this._parenPushNewlineState={printed:!1}}endTerminatorless(e){this._noLineTerminator=!1,null!=e&&e.printed&&(this.dedent(),this.newline(),this.token(")"))}print(e,t){if(!e)return;const n=this.format.concise;e._compact&&(this.format.concise=!0);const r=this[e.type];if(!r)throw new ReferenceError(`unknown node of type ${JSON.stringify(e.type)} with constructor ${JSON.stringify(null==e?void 0:e.constructor.name)}`);this._printStack.push(e);const i=this._insideAux;this._insideAux=!e.loc,this._maybeAddAuxComment(this._insideAux&&!i);let s=p(e,t,this._printStack);this.format.retainFunctionParens&&"FunctionExpression"===e.type&&e.extra&&e.extra.parenthesized&&(s=!0),s&&this.token("("),this._printLeadingComments(e);const o=a(e)||l(e)?null:e.loc;this.withSource("start",o,()=>{r.call(this,e,t)}),this._printTrailingComments(e),s&&this.token(")"),this._printStack.pop(),this.format.concise=n,this._insideAux=i}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e})}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e})}getPossibleRaw(e){const t=e.extra;if(t&&null!=t.raw&&null!=t.rawValue&&e.value===t.rawValue)return t.raw}printJoin(e,t,n={}){if(null==e||!e.length)return;n.indent&&this.indent();const r={addNewlines:n.addNewlines};for(let i=0;i<e.length;i++){const s=e[i];s&&(n.statement&&this._printNewline(!0,s,t,r),this.print(s,t),n.iterator&&n.iterator(s,i),n.separator&&i<e.length-1&&n.separator.call(this),n.statement&&this._printNewline(!1,s,t,r))}n.indent&&this.dedent()}printAndIndentOnComments(e,t){const n=e.leadingComments&&e.leadingComments.length>0;n&&this.indent(),this.print(e,t),n&&this.dedent()}printBlock(e){const t=e.body;u(t)||this.space(),this.print(t,e)}_printTrailingComments(e){this._printComments(this._getComments(!1,e))}_printLeadingComments(e){this._printComments(this._getComments(!0,e),!0)}printInnerComments(e,t=!0){var n;null!=(n=e.innerComments)&&n.length&&(t&&this.indent(),this._printComments(e.innerComments),t&&this.dedent())}printSequence(e,t,n={}){return n.statement=!0,this.printJoin(e,t,n)}printList(e,t,n={}){return null==n.separator&&(n.separator=b),this.printJoin(e,t,n)}_printNewline(e,t,n,r){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space();let i=0;if(this._buf.hasContent()){e||i++,r.addNewlines&&(i+=r.addNewlines(e,t)||0);(e?g:m)(t,n)&&i++}this.newline(Math.min(2,i))}_getComments(e,t){return t&&(e?t.leadingComments:t.trailingComments)||[]}_printComment(e,t){if(!this.format.shouldPrintComment(e.value))return;if(e.ignore)return;if(this._printedComments.has(e))return;this._printedComments.add(e);const n="CommentBlock"===e.type,r=n&&!t&&!this._noLineTerminator;r&&this._buf.hasContent()&&this.newline(1);const i=this.getLastChar();91!==i&&123!==i&&this.space();let s=n||this._noLineTerminator?`/*${e.value}*/`:`//${e.value}\n`;if(n&&this.format.indent.adjustMultilineComment){var o;const t=null==(o=e.loc)?void 0:o.start.column;if(t){const e=new RegExp("\\n\\s{1,"+t+"}","g");s=s.replace(e,"\n")}const n=Math.max(this._getIndent().length,this.format.retainLines?0:this._buf.getCurrentColumn());s=s.replace(/\n(?!$)/g,"\n"+" ".repeat(n))}this.endsWith(47)&&this._space(),this.withSource("start",e.loc,()=>{this._append(s)}),r&&this.newline(1)}_printComments(e,t){if(null!=e&&e.length)if(t&&1===e.length&&f.test(e[0].value))this._printComment(e[0],this._buf.hasContent()&&!this.endsWith(10));else for(const t of e)this._printComment(t)}printAssertions(e){var t;null!=(t=e.assertions)&&t.length&&(this.space(),this.word("assert"),this.space(),this.token("{"),this.space(),this.printList(e.assertions,e),this.space(),this.token("}"))}}Object.assign(y.prototype,o),y.prototype.Noop=function(){};var v=y;function b(){this.token(","),this.space()}t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const r=/^[ \t]+$/;t.default=class{constructor(e){this._map=null,this._buf="",this._last=0,this._queue=[],this._position={line:1,column:0},this._sourcePosition={identifierName:null,line:null,column:null,filename:null},this._disallowedPop=null,this._map=e}get(){this._flush();const e=this._map,t={code:this._buf.trimRight(),map:null,rawMappings:null==e?void 0:e.getRawMappings()};return e&&Object.defineProperty(t,"map",{configurable:!0,enumerable:!0,get(){return this.map=e.get()},set(e){Object.defineProperty(this,"map",{value:e,writable:!0})}}),t}append(e){this._flush();const{line:t,column:n,filename:r,identifierName:i,force:s}=this._sourcePosition;this._append(e,t,n,i,r,s)}queue(e){if("\n"===e)for(;this._queue.length>0&&r.test(this._queue[0][0]);)this._queue.shift();const{line:t,column:n,filename:i,identifierName:s,force:o}=this._sourcePosition;this._queue.unshift([e,t,n,s,i,o])}_flush(){let e;for(;e=this._queue.pop();)this._append(...e)}_append(e,t,n,r,i,s){this._buf+=e,this._last=e.charCodeAt(e.length-1);let o=e.indexOf("\n"),a=0;for(0!==o&&this._mark(t,n,r,i,s);-1!==o;)this._position.line++,this._position.column=0,a=o+1,a<e.length&&this._mark(++t,0,r,i,s),o=e.indexOf("\n",a);this._position.column+=e.length-a}_mark(e,t,n,r,i){var s;null==(s=this._map)||s.mark(this._position.line,this._position.column,e,t,n,r,i)}removeTrailingNewline(){this._queue.length>0&&"\n"===this._queue[0][0]&&this._queue.shift()}removeLastSemicolon(){this._queue.length>0&&";"===this._queue[0][0]&&this._queue.shift()}getLastChar(){let e;if(this._queue.length>0){e=this._queue[0][0].charCodeAt(0)}else e=this._last;return e}endsWithCharAndNewline(){const e=this._queue;if(e.length>0){if(10!==e[0][0].charCodeAt(0))return;if(e.length>1){return e[1][0].charCodeAt(0)}return this._last}}hasContent(){return this._queue.length>0||!!this._last}exactSource(e,t){this.source("start",e,!0),t(),this.source("end",e),this._disallowPop("start",e)}source(e,t,n){e&&!t||this._normalizePosition(e,t,this._sourcePosition,n)}withSource(e,t,n){if(!this._map)return n();const r=this._sourcePosition.line,i=this._sourcePosition.column,s=this._sourcePosition.filename,o=this._sourcePosition.identifierName;this.source(e,t),n(),this._sourcePosition.force&&this._sourcePosition.line===r&&this._sourcePosition.column===i&&this._sourcePosition.filename===s||this._disallowedPop&&this._disallowedPop.line===r&&this._disallowedPop.column===i&&this._disallowedPop.filename===s||(this._sourcePosition.line=r,this._sourcePosition.column=i,this._sourcePosition.filename=s,this._sourcePosition.identifierName=o,this._sourcePosition.force=!1,this._disallowedPop=null)}_disallowPop(e,t){e&&!t||(this._disallowedPop=this._normalizePosition(e,t))}_normalizePosition(e,t,n,r){const i=t?t[e]:null;void 0===n&&(n={identifierName:null,line:null,column:null,filename:null,force:!1});const s=n.line,o=n.column,a=n.filename;return n.identifierName="start"===e&&(null==t?void 0:t.identifierName)||null,n.line=null==i?void 0:i.line,n.column=null==i?void 0:i.column,n.filename=null==t?void 0:t.filename,(r||n.line!==s||n.column!==o||n.filename!==a)&&(n.force=r),n}getCurrentColumn(){const e=this._queue.reduce((e,t)=>t[0]+e,""),t=e.lastIndexOf("\n");return-1===t?this._position.column+e.length:e.length-1-t}getCurrentLine(){const e=this._queue.reduce((e,t)=>t[0]+e,"");let t=0;for(let n=0;n<e.length;n++)"\n"===e[n]&&t++;return this._position.line+t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodes=t.list=void 0;var r=n(1);const{FLIPPED_ALIAS_KEYS:i,isArrayExpression:s,isAssignmentExpression:o,isBinary:a,isBlockStatement:l,isCallExpression:u,isFunction:c,isIdentifier:h,isLiteral:d,isMemberExpression:f,isObjectExpression:p,isOptionalCallExpression:m,isOptionalMemberExpression:g,isStringLiteral:y}=r;function v(e,t={}){return f(e)||g(e)?(v(e.object,t),e.computed&&v(e.property,t)):a(e)||o(e)?(v(e.left,t),v(e.right,t)):u(e)||m(e)?(t.hasCall=!0,v(e.callee,t)):c(e)?t.hasFunction=!0:h(e)&&(t.hasHelper=t.hasHelper||b(e.callee)),t}function b(e){return f(e)?b(e.object)||b(e.property):h(e)?"require"===e.name||"_"===e.name[0]:u(e)?b(e.callee):!(!a(e)&&!o(e))&&(h(e.left)&&b(e.left)||b(e.right))}function w(e){return d(e)||p(e)||s(e)||h(e)||f(e)}const _={AssignmentExpression(e){const t=v(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return{before:t.hasFunction,after:!0}},SwitchCase:(e,t)=>({before:!!e.consequent.length||t.cases[0]===e,after:!e.consequent.length&&t.cases[t.cases.length-1]===e}),LogicalExpression(e){if(c(e.left)||c(e.right))return{after:!0}},Literal(e){if(y(e)&&"use strict"===e.value)return{after:!0}},CallExpression(e){if(c(e.callee)||b(e))return{before:!0,after:!0}},OptionalCallExpression(e){if(c(e.callee))return{before:!0,after:!0}},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){const n=e.declarations[t];let r=b(n.id)&&!w(n.init);if(!r){const e=v(n.init);r=b(n.init)&&e.hasCall||e.hasFunction}if(r)return{before:!0,after:!0}}},IfStatement(e){if(l(e.consequent))return{before:!0,after:!0}}};t.nodes=_,_.ObjectProperty=_.ObjectTypeProperty=_.ObjectMethod=function(e,t){if(t.properties[0]===e)return{before:!0}},_.ObjectTypeCallProperty=function(e,t){var n;if(t.callProperties[0]===e&&(null==(n=t.properties)||!n.length))return{before:!0}},_.ObjectTypeIndexer=function(e,t){var n,r;if(!(t.indexers[0]!==e||null!=(n=t.properties)&&n.length||null!=(r=t.callProperties)&&r.length))return{before:!0}},_.ObjectTypeInternalSlot=function(e,t){var n,r,i;if(!(t.internalSlots[0]!==e||null!=(n=t.properties)&&n.length||null!=(r=t.callProperties)&&r.length||null!=(i=t.indexers)&&i.length))return{before:!0}};const S={VariableDeclaration:e=>e.declarations.map(e=>e.init),ArrayExpression:e=>e.elements,ObjectExpression:e=>e.properties};t.list=S,[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach((function([e,t]){"boolean"==typeof t&&(t={after:t,before:t}),[e].concat(i[e]||[]).forEach((function(e){_[e]=function(){return t}}))}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowFunctionExpression=function(e,t){return m(t)||te(e,t)},t.AssignmentExpression=function(e,t){return!!P(e.left)||te(e,t)},t.Binary=function(e,t){if("**"===e.operator&&u(t,{operator:"**"}))return t.left===e;if(Z(e,t))return!0;if(Q(e,t)||H(t)||a(t))return!0;if(l(t)){const n=t.operator,r=X[n],i=e.operator,s=X[i];if(r===s&&t.right===e&&!A(t)||r>s)return!0}},t.BinaryExpression=function(e,t){return"in"===e.operator&&(G(t)||v(t))},t.ClassExpression=function(e,t,n){return ne(n,{expressionStatement:!0,exportDefault:!0})},t.ConditionalExpression=te,t.DoExpression=function(e,t,n){return!e.async&&ne(n,{expressionStatement:!0})},t.FunctionExpression=function(e,t,n){return ne(n,{expressionStatement:!0,exportDefault:!0})},t.FunctionTypeAnnotation=function(e,t,n){return q(t)||E(t)||i(t)||K(t)&&s(n[n.length-3])},t.Identifier=function(e,t,n){if("let"===e.name){const r=T(t,{object:e,computed:!0})||O(t,{object:e,computed:!0,optional:!1});return ne(n,{expressionStatement:r,forHead:r,forInHead:r,forOfHead:!0})}return"async"===e.name&&w(t)&&e===t.left},t.LogicalExpression=function(e,t){switch(e.operator){case"||":return!!A(t)&&("??"===t.operator||"&&"===t.operator);case"&&":return A(t,{operator:"??"});case"??":return A(t)&&"??"!==t.operator}},t.NullableTypeAnnotation=function(e,t){return i(t)},t.ObjectExpression=function(e,t,n){return ne(n,{expressionStatement:!0,arrowBody:!0})},t.OptionalIndexedAccessType=function(e,t){return x(t,{objectType:e})},t.OptionalCallExpression=t.OptionalMemberExpression=function(e,t){return c(t,{callee:e})||T(t,{object:e})},t.SequenceExpression=function(e,t){if(_(t)||z(t)||I(t)||S(t)&&t.test===e||Y(t)&&t.test===e||b(t)&&t.right===e||N(t)&&t.discriminant===e||y(t)&&t.expression===e)return!1;return!0},t.TSAsExpression=function(){return!0},t.TSInferType=function(e,t){return D(t)||j(t)},t.TSTypeAssertion=function(){return!0},t.TSIntersectionType=t.TSUnionType=function(e,t){return D(t)||j(t)||L(t)||V(t)||$(t)},t.UnaryLike=ee,t.IntersectionTypeAnnotation=t.UnionTypeAnnotation=function(e,t){return i(t)||C(t)||E(t)||q(t)},t.UpdateExpression=function(e,t){return Q(e,t)||Z(e,t)},t.AwaitExpression=t.YieldExpression=function(e,t){return l(t)||H(t)||Q(e,t)||a(t)&&J(e)||p(t)&&e===t.test||Z(e,t)};var r=n(1);const{isArrayTypeAnnotation:i,isArrowFunctionExpression:s,isAssignmentExpression:o,isAwaitExpression:a,isBinary:l,isBinaryExpression:u,isCallExpression:c,isClassDeclaration:h,isClassExpression:d,isConditional:f,isConditionalExpression:p,isExportDeclaration:m,isExportDefaultDeclaration:g,isExpressionStatement:y,isFor:v,isForInStatement:b,isForOfStatement:w,isForStatement:_,isIfStatement:S,isIndexedAccessType:x,isIntersectionTypeAnnotation:E,isLogicalExpression:A,isMemberExpression:T,isNewExpression:M,isNullableTypeAnnotation:C,isObjectPattern:P,isOptionalCallExpression:k,isOptionalMemberExpression:O,isReturnStatement:I,isSequenceExpression:R,isSwitchStatement:N,isTSArrayType:D,isTSAsExpression:F,isTSIntersectionType:L,isTSNonNullExpression:B,isTSOptionalType:j,isTSRestType:$,isTSTypeAssertion:U,isTSUnionType:V,isTaggedTemplateExpression:W,isThrowStatement:z,isTypeAnnotation:K,isUnaryLike:H,isUnionTypeAnnotation:q,isVariableDeclarator:G,isWhileStatement:Y,isYieldExpression:J}=r,X={"||":0,"??":0,"&&":1,"|":2,"^":3,"&":4,"==":5,"===":5,"!=":5,"!==":5,"<":6,">":6,"<=":6,">=":6,in:6,instanceof:6,">>":7,"<<":7,">>>":7,"+":8,"-":8,"*":9,"/":9,"%":9,"**":10},Z=(e,t)=>(h(t)||d(t))&&t.superClass===e,Q=(e,t)=>(T(t)||O(t))&&t.object===e||(c(t)||k(t)||M(t))&&t.callee===e||W(t)&&t.tag===e||B(t);function ee(e,t){return Q(e,t)||u(t,{operator:"**",left:e})||Z(e,t)}function te(e,t){return!!(H(t)||l(t)||p(t,{test:e})||a(t)||U(t)||F(t))||ee(e,t)}function ne(e,{expressionStatement:t=!1,arrowBody:n=!1,exportDefault:r=!1,forHead:i=!1,forInHead:a=!1,forOfHead:u=!1}){let c=e.length-1,h=e[c];c--;let d=e[c];for(;c>=0;){if(t&&y(d,{expression:h})||r&&g(d,{declaration:h})||n&&s(d,{body:h})||i&&_(d,{init:h})||a&&b(d,{left:h})||u&&w(d,{left:h}))return!0;if(!(Q(h,d)&&!M(d)||R(d)&&d.expressions[0]===h||f(d,{test:h})||l(d,{left:h})||o(d,{left:h})))return!1;h=d,c--,d=e[c]}return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(579);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var i=n(580);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var s=n(581);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var o=n(582);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=n(583);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var l=n(249);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var u=n(250);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=n(585);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var h=n(586);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var d=n(587);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var f=n(588);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaggedTemplateExpression=function(e){this.print(e.tag,e),this.print(e.typeParameters,e),this.print(e.quasi,e)},t.TemplateElement=function(e,t){const n=t.quasis[0]===e,r=t.quasis[t.quasis.length-1]===e,i=(n?"`":"}")+e.value.raw+(r?"`":"${");this.token(i)},t.TemplateLiteral=function(e){const t=e.quasis;for(let n=0;n<t.length;n++)this.print(t[n],e),n+1<t.length&&this.print(e.expressions[n],e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalExpression=t.BinaryExpression=t.AssignmentExpression=function(e,t){const n=this.inForStatementInitCounter&&"in"===e.operator&&!i.needsParens(e,t);n&&this.token("(");this.print(e.left,e),this.space(),"in"===e.operator||"instanceof"===e.operator?this.word(e.operator):this.token(e.operator);this.space(),this.print(e.right,e),n&&this.token(")")},t.AssignmentPattern=function(e){this.print(e.left,e),e.left.optional&&this.token("?");this.print(e.left.typeAnnotation,e),this.space(),this.token("="),this.space(),this.print(e.right,e)},t.AwaitExpression=void 0,t.BindExpression=function(e){this.print(e.object,e),this.token("::"),this.print(e.callee,e)},t.CallExpression=function(e){this.print(e.callee,e),this.print(e.typeArguments,e),this.print(e.typeParameters,e),this.token("("),this.printList(e.arguments,e),this.token(")")},t.ConditionalExpression=function(e){this.print(e.test,e),this.space(),this.token("?"),this.space(),this.print(e.consequent,e),this.space(),this.token(":"),this.space(),this.print(e.alternate,e)},t.Decorator=function(e){this.token("@"),this.print(e.expression,e),this.newline()},t.DoExpression=function(e){e.async&&(this.word("async"),this.space());this.word("do"),this.space(),this.print(e.body,e)},t.EmptyStatement=function(){this.semicolon(!0)},t.ExpressionStatement=function(e){this.print(e.expression,e),this.semicolon()},t.Import=function(){this.word("import")},t.MemberExpression=function(e){if(this.print(e.object,e),!e.computed&&a(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;o(e.property)&&"number"==typeof e.property.value&&(t=!0);t?(this.token("["),this.print(e.property,e),this.token("]")):(this.token("."),this.print(e.property,e))},t.MetaProperty=function(e){this.print(e.meta,e),this.token("."),this.print(e.property,e)},t.ModuleExpression=function(e){this.word("module"),this.space(),this.token("{"),0===e.body.body.length?this.token("}"):(this.newline(),this.printSequence(e.body.body,e,{indent:!0}),this.rightBrace())},t.NewExpression=function(e,t){if(this.word("new"),this.space(),this.print(e.callee,e),this.format.minified&&0===e.arguments.length&&!e.optional&&!s(t,{callee:e})&&!a(t)&&!l(t))return;this.print(e.typeArguments,e),this.print(e.typeParameters,e),e.optional&&this.token("?.");this.token("("),this.printList(e.arguments,e),this.token(")")},t.OptionalCallExpression=function(e){this.print(e.callee,e),this.print(e.typeArguments,e),this.print(e.typeParameters,e),e.optional&&this.token("?.");this.token("("),this.printList(e.arguments,e),this.token(")")},t.OptionalMemberExpression=function(e){if(this.print(e.object,e),!e.computed&&a(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;o(e.property)&&"number"==typeof e.property.value&&(t=!0);e.optional&&this.token("?.");t?(this.token("["),this.print(e.property,e),this.token("]")):(e.optional||this.token("."),this.print(e.property,e))},t.ParenthesizedExpression=function(e){this.token("("),this.print(e.expression,e),this.token(")")},t.PrivateName=function(e){this.token("#"),this.print(e.id,e)},t.SequenceExpression=function(e){this.printList(e.expressions,e)},t.Super=function(){this.word("super")},t.ThisExpression=function(){this.word("this")},t.UnaryExpression=function(e){"void"===e.operator||"delete"===e.operator||"typeof"===e.operator||"throw"===e.operator?(this.word(e.operator),this.space()):this.token(e.operator);this.print(e.argument,e)},t.UpdateExpression=function(e){e.prefix?(this.token(e.operator),this.print(e.argument,e)):(this.startTerminatorless(!0),this.print(e.argument,e),this.endTerminatorless(),this.token(e.operator))},t.V8IntrinsicIdentifier=function(e){this.token("%"),this.word(e.name)},t.YieldExpression=void 0;var r=n(1),i=n(248);const{isCallExpression:s,isLiteral:o,isMemberExpression:a,isNewExpression:l}=r;function u(e){return function(t){if(this.word(e),t.delegate&&this.token("*"),t.argument){this.space();const e=this.startTerminatorless();this.print(t.argument,t),this.endTerminatorless(e)}}}const c=u("yield");t.YieldExpression=c;const h=u("await");t.AwaitExpression=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreakStatement=void 0,t.CatchClause=function(e){this.word("catch"),this.space(),e.param&&(this.token("("),this.print(e.param,e),this.print(e.param.typeAnnotation,e),this.token(")"),this.space());this.print(e.body,e)},t.ContinueStatement=void 0,t.DebuggerStatement=function(){this.word("debugger"),this.semicolon()},t.DoWhileStatement=function(e){this.word("do"),this.space(),this.print(e.body,e),this.space(),this.word("while"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.semicolon()},t.ForOfStatement=t.ForInStatement=void 0,t.ForStatement=function(e){this.word("for"),this.space(),this.token("("),this.inForStatementInitCounter++,this.print(e.init,e),this.inForStatementInitCounter--,this.token(";"),e.test&&(this.space(),this.print(e.test,e));this.token(";"),e.update&&(this.space(),this.print(e.update,e));this.token(")"),this.printBlock(e)},t.IfStatement=function(e){this.word("if"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.space();const t=e.alternate&&o(function e(t){return a(t.body)?e(t.body):t}(e.consequent));t&&(this.token("{"),this.newline(),this.indent());this.printAndIndentOnComments(e.consequent,e),t&&(this.dedent(),this.newline(),this.token("}"));e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate,e))},t.LabeledStatement=function(e){this.print(e.label,e),this.token(":"),this.space(),this.print(e.body,e)},t.ReturnStatement=void 0,t.SwitchCase=function(e){e.test?(this.word("case"),this.space(),this.print(e.test,e),this.token(":")):(this.word("default"),this.token(":"));e.consequent.length&&(this.newline(),this.printSequence(e.consequent,e,{indent:!0}))},t.SwitchStatement=function(e){this.word("switch"),this.space(),this.token("("),this.print(e.discriminant,e),this.token(")"),this.space(),this.token("{"),this.printSequence(e.cases,e,{indent:!0,addNewlines(t,n){if(!t&&e.cases[e.cases.length-1]===n)return-1}}),this.token("}")},t.ThrowStatement=void 0,t.TryStatement=function(e){this.word("try"),this.space(),this.print(e.block,e),this.space(),e.handlers?this.print(e.handlers[0],e):this.print(e.handler,e);e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer,e))},t.VariableDeclaration=function(e,t){e.declare&&(this.word("declare"),this.space());this.word(e.kind),this.space();let n,r=!1;if(!i(t))for(const t of e.declarations)t.init&&(r=!0);r&&(n="const"===e.kind?y:g);if(this.printList(e.declarations,e,{separator:n}),i(t))if(s(t)){if(t.init===e)return}else if(t.left===e)return;this.semicolon()},t.VariableDeclarator=function(e){this.print(e.id,e),e.definite&&this.token("!");this.print(e.id.typeAnnotation,e),e.init&&(this.space(),this.token("="),this.space(),this.print(e.init,e))},t.WhileStatement=function(e){this.word("while"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.printBlock(e)},t.WithStatement=function(e){this.word("with"),this.space(),this.token("("),this.print(e.object,e),this.token(")"),this.printBlock(e)};var r=n(1);const{isFor:i,isForStatement:s,isIfStatement:o,isStatement:a}=r;const l=function(e){return function(t){this.word("for"),this.space(),"of"===e&&t.await&&(this.word("await"),this.space()),this.token("("),this.print(t.left,t),this.space(),this.word(e),this.space(),this.print(t.right,t),this.token(")"),this.printBlock(t)}},u=l("in");t.ForInStatement=u;const c=l("of");function h(e,t="label"){return function(n){this.word(e);const r=n[t];if(r){this.space();const e="label"==t,i=this.startTerminatorless(e);this.print(r,n),this.endTerminatorless(i)}this.semicolon()}}t.ForOfStatement=c;const d=h("continue");t.ContinueStatement=d;const f=h("return","argument");t.ReturnStatement=f;const p=h("break");t.BreakStatement=p;const m=h("throw","argument");function g(){if(this.token(","),this.newline(),this.endsWith(10))for(let e=0;e<4;e++)this.space(!0)}function y(){if(this.token(","),this.newline(),this.endsWith(10))for(let e=0;e<6;e++)this.space(!0)}t.ThrowStatement=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClassAccessorProperty=function(e){this.printJoin(e.decorators,e),this.source("end",e.key.loc),this.tsPrintClassMemberModifiers(e,!0),this.word("accessor"),this.printInnerComments(e),this.space(),e.computed?(this.token("["),this.print(e.key,e),this.token("]")):(this._variance(e),this.print(e.key,e));e.optional&&this.token("?");e.definite&&this.token("!");this.print(e.typeAnnotation,e),e.value&&(this.space(),this.token("="),this.space(),this.print(e.value,e));this.semicolon()},t.ClassBody=function(e){this.token("{"),this.printInnerComments(e),0===e.body.length?this.token("}"):(this.newline(),this.indent(),this.printSequence(e.body,e),this.dedent(),this.endsWith(10)||this.newline(),this.rightBrace())},t.ClassExpression=t.ClassDeclaration=function(e,t){this.format.decoratorsBeforeExport&&(i(t)||s(t))||this.printJoin(e.decorators,e);e.declare&&(this.word("declare"),this.space());e.abstract&&(this.word("abstract"),this.space());this.word("class"),this.printInnerComments(e),e.id&&(this.space(),this.print(e.id,e));this.print(e.typeParameters,e),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass,e),this.print(e.superTypeParameters,e));e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e));this.space(),this.print(e.body,e)},t.ClassMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body,e)},t.ClassPrivateMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body,e)},t.ClassPrivateProperty=function(e){this.printJoin(e.decorators,e),e.static&&(this.word("static"),this.space());this.print(e.key,e),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.token("="),this.space(),this.print(e.value,e));this.semicolon()},t.ClassProperty=function(e){this.printJoin(e.decorators,e),this.source("end",e.key.loc),this.tsPrintClassMemberModifiers(e,!0),e.computed?(this.token("["),this.print(e.key,e),this.token("]")):(this._variance(e),this.print(e.key,e));e.optional&&this.token("?");e.definite&&this.token("!");this.print(e.typeAnnotation,e),e.value&&(this.space(),this.token("="),this.space(),this.print(e.value,e));this.semicolon()},t.StaticBlock=function(e){this.word("static"),this.space(),this.token("{"),0===e.body.length?this.token("}"):(this.newline(),this.printSequence(e.body,e,{indent:!0}),this.rightBrace())},t._classMethodHead=function(e){this.printJoin(e.decorators,e),this.source("end",e.key.loc),this.tsPrintClassMemberModifiers(e,!1),this._methodHead(e)};var r=n(1);const{isExportDefaultDeclaration:i,isExportNamedDeclaration:s}=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowFunctionExpression=function(e){e.async&&(this.word("async"),this.space());const t=e.params[0];this.format.retainLines||this.format.auxiliaryCommentBefore||this.format.auxiliaryCommentAfter||1!==e.params.length||!i(t)||function(e,t){var n,r;return!!(e.typeParameters||e.returnType||e.predicate||t.typeAnnotation||t.optional||null!=(n=t.leadingComments)&&n.length||null!=(r=t.trailingComments)&&r.length)}(e,t)?this._params(e):this.print(t,e);this._predicate(e),this.space(),this.token("=>"),this.space(),this.print(e.body,e)},t.FunctionDeclaration=t.FunctionExpression=function(e){this._functionHead(e),this.space(),this.print(e.body,e)},t._functionHead=function(e){e.async&&(this.word("async"),this.space());this.word("function"),e.generator&&this.token("*");this.printInnerComments(e),this.space(),e.id&&this.print(e.id,e);this._params(e),this._predicate(e)},t._methodHead=function(e){const t=e.kind,n=e.key;"get"!==t&&"set"!==t||(this.word(t),this.space());e.async&&(this._catchUp("start",n.loc),this.word("async"),this.space());"method"!==t&&"init"!==t||e.generator&&this.token("*");e.computed?(this.token("["),this.print(n,e),this.token("]")):this.print(n,e);e.optional&&this.token("?");this._params(e)},t._param=function(e,t){this.printJoin(e.decorators,e),this.print(e,t),e.optional&&this.token("?");this.print(e.typeAnnotation,e)},t._parameters=function(e,t){for(let n=0;n<e.length;n++)this._param(e[n],t),n<e.length-1&&(this.token(","),this.space())},t._params=function(e){this.print(e.typeParameters,e),this.token("("),this._parameters(e.params,e),this.token(")"),this.print(e.returnType,e)},t._predicate=function(e){e.predicate&&(e.returnType||this.token(":"),this.space(),this.print(e.predicate,e))};var r=n(1);const{isIdentifier:i}=r},function(e,t,n){"use strict";(function(t){const n={},r=n.hasOwnProperty,i=(e,t)=>{for(const n in e)r.call(e,n)&&t(n,e[n])},s=n.toString,o=Array.isArray,a=t.isBuffer,l={'"':'\\"',"'":"\\'","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},u=/["'\\\b\f\n\r\t]/,c=/[0-9]/,h=/[ !#-&\(-\[\]-_a-~]/,d=(e,t)=>{const n=()=>{w=b,++t.indentLevel,b=t.indent.repeat(t.indentLevel)},r={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},f=t&&t.json;var p,m;f&&(r.quotes="double",r.wrap=!0),p=r,"single"!=(t=(m=t)?(i(m,(e,t)=>{p[e]=t}),p):p).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");const g="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",y=t.compact,v=t.lowercaseHex;let b=t.indent.repeat(t.indentLevel),w="";const _=t.__inline1__,S=t.__inline2__,x=y?"":"\n";let E,A=!0;const T="binary"==t.numbers,M="octal"==t.numbers,C="decimal"==t.numbers,P="hexadecimal"==t.numbers;if(f&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!(e=>"string"==typeof e||"[object String]"==s.call(e))(e)){if((e=>"[object Map]"==s.call(e))(e))return 0==e.size?"new Map()":(y||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+d(Array.from(e),t)+")");if((e=>"[object Set]"==s.call(e))(e))return 0==e.size?"new Set()":"new Set("+d(Array.from(e),t)+")";if(a(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+d(Array.from(e),t)+")";if(o(e))return E=[],t.wrap=!0,_&&(t.__inline1__=!1,t.__inline2__=!0),S||n(),((e,t)=>{const n=e.length;let r=-1;for(;++r<n;)t(e[r])})(e,e=>{A=!1,S&&(t.__inline2__=!1),E.push((y||S?"":b)+d(e,t))}),A?"[]":S?"["+E.join(", ")+"]":"["+x+E.join(","+x)+x+(y?"":w)+"]";if(!(e=>"number"==typeof e||"[object Number]"==s.call(e))(e))return(e=>"[object Object]"==s.call(e))(e)?(E=[],t.wrap=!0,n(),i(e,(e,n)=>{A=!1,E.push((y?"":b)+d(e,t)+":"+(y?"":" ")+d(n,t))}),A?"{}":"{"+x+E.join(","+x)+x+(y?"":w)+"}"):f?JSON.stringify(e)||"null":String(e);if(f)return JSON.stringify(e);if(C)return String(e);if(P){let t=e.toString(16);return v||(t=t.toUpperCase()),"0x"+t}if(T)return"0b"+e.toString(2);if(M)return"0o"+e.toString(8)}const k=e;let O=-1;const I=k.length;for(E="";++O<I;){const e=k.charAt(O);if(t.es6){const e=k.charCodeAt(O);if(e>=55296&&e<=56319&&I>O+1){const t=k.charCodeAt(O+1);if(t>=56320&&t<=57343){let n=(1024*(e-55296)+t-56320+65536).toString(16);v||(n=n.toUpperCase()),E+="\\u{"+n+"}",++O;continue}}}if(!t.escapeEverything){if(h.test(e)){E+=e;continue}if('"'==e){E+=g==e?'\\"':e;continue}if("`"==e){E+=g==e?"\\`":e;continue}if("'"==e){E+=g==e?"\\'":e;continue}}if("\0"==e&&!f&&!c.test(k.charAt(O+1))){E+="\\0";continue}if(u.test(e)){E+=l[e];continue}const n=e.charCodeAt(0);if(t.minimal&&8232!=n&&8233!=n){E+=e;continue}let r=n.toString(16);v||(r=r.toUpperCase());const i=r.length>2||f,s="\\"+(i?"u":"x")+("0000"+r).slice(i?-4:-2);E+=s}return t.wrap&&(E=g+E+g),"`"==g&&(E=E.replace(/\$\{/g,"\\${")),t.isScriptContext?E.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,f?"\\u003C!--":"\\x3C!--"):E};d.version="2.5.2",e.exports=d}).call(this,n(4).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnyTypeAnnotation=function(){this.word("any")},t.ArrayTypeAnnotation=function(e){this.print(e.elementType,e),this.token("["),this.token("]")},t.BooleanLiteralTypeAnnotation=function(e){this.word(e.value?"true":"false")},t.BooleanTypeAnnotation=function(){this.word("boolean")},t.DeclareClass=function(e,t){o(t)||(this.word("declare"),this.space());this.word("class"),this.space(),this._interfaceish(e)},t.DeclareExportAllDeclaration=function(){this.word("declare"),this.space(),i.ExportAllDeclaration.apply(this,arguments)},t.DeclareExportDeclaration=function(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space());h.apply(this,arguments)},t.DeclareFunction=function(e,t){o(t)||(this.word("declare"),this.space());this.word("function"),this.space(),this.print(e.id,e),this.print(e.id.typeAnnotation.typeAnnotation,e),e.predicate&&(this.space(),this.print(e.predicate,e));this.semicolon()},t.DeclareInterface=function(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e)},t.DeclareModule=function(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id,e),this.space(),this.print(e.body,e)},t.DeclareModuleExports=function(e){this.word("declare"),this.space(),this.word("module"),this.token("."),this.word("exports"),this.print(e.typeAnnotation,e)},t.DeclareOpaqueType=function(e,t){o(t)||(this.word("declare"),this.space());this.OpaqueType(e)},t.DeclareTypeAlias=function(e){this.word("declare"),this.space(),this.TypeAlias(e)},t.DeclareVariable=function(e,t){o(t)||(this.word("declare"),this.space());this.word("var"),this.space(),this.print(e.id,e),this.print(e.id.typeAnnotation,e),this.semicolon()},t.DeclaredPredicate=function(e){this.token("%"),this.word("checks"),this.token("("),this.print(e.value,e),this.token(")")},t.EmptyTypeAnnotation=function(){this.word("empty")},t.EnumBooleanBody=function(e){const{explicitType:t}=e;l(this,"boolean",t),u(this,e)},t.EnumBooleanMember=function(e){c(this,e)},t.EnumDeclaration=function(e){const{id:t,body:n}=e;this.word("enum"),this.space(),this.print(t,e),this.print(n,e)},t.EnumDefaultedMember=function(e){const{id:t}=e;this.print(t,e),this.token(",")},t.EnumNumberBody=function(e){const{explicitType:t}=e;l(this,"number",t),u(this,e)},t.EnumNumberMember=function(e){c(this,e)},t.EnumStringBody=function(e){const{explicitType:t}=e;l(this,"string",t),u(this,e)},t.EnumStringMember=function(e){c(this,e)},t.EnumSymbolBody=function(e){l(this,"symbol",!0),u(this,e)},t.ExistsTypeAnnotation=function(){this.token("*")},t.FunctionTypeAnnotation=function(e,t){this.print(e.typeParameters,e),this.token("("),e.this&&(this.word("this"),this.token(":"),this.space(),this.print(e.this.typeAnnotation,e),(e.params.length||e.rest)&&(this.token(","),this.space()));this.printList(e.params,e),e.rest&&(e.params.length&&(this.token(","),this.space()),this.token("..."),this.print(e.rest,e));this.token(")"),t&&("ObjectTypeCallProperty"===t.type||"DeclareFunction"===t.type||"ObjectTypeProperty"===t.type&&t.method)?this.token(":"):(this.space(),this.token("=>"));this.space(),this.print(e.returnType,e)},t.FunctionTypeParam=function(e){this.print(e.name,e),e.optional&&this.token("?");e.name&&(this.token(":"),this.space());this.print(e.typeAnnotation,e)},t.IndexedAccessType=function(e){this.print(e.objectType,e),this.token("["),this.print(e.indexType,e),this.token("]")},t.InferredPredicate=function(){this.token("%"),this.word("checks")},t.InterfaceDeclaration=function(e){this.word("interface"),this.space(),this._interfaceish(e)},t.GenericTypeAnnotation=t.ClassImplements=t.InterfaceExtends=function(e){this.print(e.id,e),this.print(e.typeParameters,e)},t.InterfaceTypeAnnotation=function(e){this.word("interface"),e.extends&&e.extends.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends,e));this.space(),this.print(e.body,e)},t.IntersectionTypeAnnotation=function(e){this.printJoin(e.types,e,{separator:d})},t.MixedTypeAnnotation=function(){this.word("mixed")},t.NullLiteralTypeAnnotation=function(){this.word("null")},t.NullableTypeAnnotation=function(e){this.token("?"),this.print(e.typeAnnotation,e)},Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return s.NumericLiteral}}),t.NumberTypeAnnotation=function(){this.word("number")},t.ObjectTypeAnnotation=function(e){e.exact?this.token("{|"):this.token("{");const t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.space(),this.printJoin(t,e,{addNewlines(e){if(e&&!t[0])return 1},indent:!0,statement:!0,iterator:()=>{(1!==t.length||e.inexact)&&(this.token(","),this.space())}}),this.space());e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent());e.exact?this.token("|}"):this.token("}")},t.ObjectTypeCallProperty=function(e){e.static&&(this.word("static"),this.space());this.print(e.value,e)},t.ObjectTypeIndexer=function(e){e.static&&(this.word("static"),this.space());this._variance(e),this.token("["),e.id&&(this.print(e.id,e),this.token(":"),this.space());this.print(e.key,e),this.token("]"),this.token(":"),this.space(),this.print(e.value,e)},t.ObjectTypeInternalSlot=function(e){e.static&&(this.word("static"),this.space());this.token("["),this.token("["),this.print(e.id,e),this.token("]"),this.token("]"),e.optional&&this.token("?");e.method||(this.token(":"),this.space());this.print(e.value,e)},t.ObjectTypeProperty=function(e){e.proto&&(this.word("proto"),this.space());e.static&&(this.word("static"),this.space());"get"!==e.kind&&"set"!==e.kind||(this.word(e.kind),this.space());this._variance(e),this.print(e.key,e),e.optional&&this.token("?");e.method||(this.token(":"),this.space());this.print(e.value,e)},t.ObjectTypeSpreadProperty=function(e){this.token("..."),this.print(e.argument,e)},t.OpaqueType=function(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),e.supertype&&(this.token(":"),this.space(),this.print(e.supertype,e));e.impltype&&(this.space(),this.token("="),this.space(),this.print(e.impltype,e));this.semicolon()},t.OptionalIndexedAccessType=function(e){this.print(e.objectType,e),e.optional&&this.token("?.");this.token("["),this.print(e.indexType,e),this.token("]")},t.QualifiedTypeIdentifier=function(e){this.print(e.qualification,e),this.token("."),this.print(e.id,e)},Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return s.StringLiteral}}),t.StringTypeAnnotation=function(){this.word("string")},t.SymbolTypeAnnotation=function(){this.word("symbol")},t.ThisTypeAnnotation=function(){this.word("this")},t.TupleTypeAnnotation=function(e){this.token("["),this.printList(e.types,e),this.token("]")},t.TypeAlias=function(e){this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),this.space(),this.token("="),this.space(),this.print(e.right,e),this.semicolon()},t.TypeAnnotation=function(e){this.token(":"),this.space(),e.optional&&this.token("?");this.print(e.typeAnnotation,e)},t.TypeCastExpression=function(e){this.token("("),this.print(e.expression,e),this.print(e.typeAnnotation,e),this.token(")")},t.TypeParameter=function(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound,e);e.default&&(this.space(),this.token("="),this.space(),this.print(e.default,e))},t.TypeParameterDeclaration=t.TypeParameterInstantiation=function(e){this.token("<"),this.printList(e.params,e,{}),this.token(">")},t.TypeofTypeAnnotation=function(e){this.word("typeof"),this.space(),this.print(e.argument,e)},t.UnionTypeAnnotation=function(e){this.printJoin(e.types,e,{separator:f})},t.Variance=function(e){"plus"===e.kind?this.token("+"):this.token("-")},t.VoidTypeAnnotation=function(){this.word("void")},t._interfaceish=function(e){var t;this.print(e.id,e),this.print(e.typeParameters,e),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends,e));e.mixins&&e.mixins.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins,e));e.implements&&e.implements.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e));this.space(),this.print(e.body,e)},t._variance=function(e){e.variance&&("plus"===e.variance.kind?this.token("+"):"minus"===e.variance.kind&&this.token("-"))};var r=n(1),i=n(249),s=n(250);const{isDeclareExportDeclaration:o,isStatement:a}=r;function l(e,t,n){n&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function u(e,t){const{members:n}=t;e.token("{"),e.indent(),e.newline();for(const r of n)e.print(r,t),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function c(e,t){const{id:n,init:r}=t;e.print(n,t),e.space(),e.token("="),e.space(),e.print(r,t),e.token(",")}function h(e){if(e.declaration){const t=e.declaration;this.print(t,e),a(t)||this.semicolon()}else this.token("{"),e.specifiers.length&&(this.space(),this.printList(e.specifiers,e),this.space()),this.token("}"),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source,e)),this.semicolon()}function d(){this.space(),this.token("&"),this.space()}function f(){this.space(),this.token("|"),this.space()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatement=function(e){var t;this.token("{"),this.printInnerComments(e);const n=null==(t=e.directives)?void 0:t.length;e.body.length||n?(this.newline(),this.printSequence(e.directives,e,{indent:!0}),n&&this.newline(),this.printSequence(e.body,e,{indent:!0}),this.removeTrailingNewline(),this.source("end",e.loc),this.endsWith(10)||this.newline(),this.rightBrace()):(this.source("end",e.loc),this.token("}"))},t.Directive=function(e){this.print(e.value,e),this.semicolon()},t.DirectiveLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&null!=t)return void this.token(t);const{value:n}=e;if(i.test(n)){if(r.test(n))throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");this.token(`'${n}'`)}else this.token(`"${n}"`)},t.File=function(e){e.program&&this.print(e.program.interpreter,e);this.print(e.program,e)},t.InterpreterDirective=function(e){this.token(`#!${e.value}\n`)},t.Placeholder=function(e){this.token("%%"),this.print(e.name),this.token("%%"),"Statement"===e.expectedNode&&this.semicolon()},t.Program=function(e){this.printInnerComments(e,!1),this.printSequence(e.directives,e),e.directives&&e.directives.length&&this.newline();this.printSequence(e.body,e)};const r=/(?:^|[^\\])(?:\\\\)*'/,i=/(?:^|[^\\])(?:\\\\)*"/},function(e,t,n){"use strict";function r(){this.space()}Object.defineProperty(t,"__esModule",{value:!0}),t.JSXAttribute=function(e){this.print(e.name,e),e.value&&(this.token("="),this.print(e.value,e))},t.JSXClosingElement=function(e){this.token("</"),this.print(e.name,e),this.token(">")},t.JSXClosingFragment=function(){this.token("</"),this.token(">")},t.JSXElement=function(e){const t=e.openingElement;if(this.print(t,e),t.selfClosing)return;this.indent();for(const t of e.children)this.print(t,e);this.dedent(),this.print(e.closingElement,e)},t.JSXEmptyExpression=function(e){this.printInnerComments(e)},t.JSXExpressionContainer=function(e){this.token("{"),this.print(e.expression,e),this.token("}")},t.JSXFragment=function(e){this.print(e.openingFragment,e),this.indent();for(const t of e.children)this.print(t,e);this.dedent(),this.print(e.closingFragment,e)},t.JSXIdentifier=function(e){this.word(e.name)},t.JSXMemberExpression=function(e){this.print(e.object,e),this.token("."),this.print(e.property,e)},t.JSXNamespacedName=function(e){this.print(e.namespace,e),this.token(":"),this.print(e.name,e)},t.JSXOpeningElement=function(e){this.token("<"),this.print(e.name,e),this.print(e.typeParameters,e),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,e,{separator:r}));e.selfClosing?(this.space(),this.token("/>")):this.token(">")},t.JSXOpeningFragment=function(){this.token("<"),this.token(">")},t.JSXSpreadAttribute=function(e){this.token("{"),this.token("..."),this.print(e.argument,e),this.token("}")},t.JSXSpreadChild=function(e){this.token("{"),this.token("..."),this.print(e.expression,e),this.token("}")},t.JSXText=function(e){const t=this.getPossibleRaw(e);null!=t?this.token(t):this.token(e.value)}},function(e,t,n){"use strict";function r(e,t){!0!==t&&e.token(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.TSAnyKeyword=function(){this.word("any")},t.TSArrayType=function(e){this.print(e.elementType,e),this.token("[]")},t.TSAsExpression=function(e){const{expression:t,typeAnnotation:n}=e;this.print(t,e),this.space(),this.word("as"),this.space(),this.print(n,e)},t.TSBigIntKeyword=function(){this.word("bigint")},t.TSBooleanKeyword=function(){this.word("boolean")},t.TSCallSignatureDeclaration=function(e){this.tsPrintSignatureDeclarationBase(e),this.token(";")},t.TSConditionalType=function(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.token("?"),this.space(),this.print(e.trueType),this.space(),this.token(":"),this.space(),this.print(e.falseType)},t.TSConstructSignatureDeclaration=function(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),this.token(";")},t.TSConstructorType=function(e){e.abstract&&(this.word("abstract"),this.space());this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)},t.TSDeclareFunction=function(e){e.declare&&(this.word("declare"),this.space());this._functionHead(e),this.token(";")},t.TSDeclareMethod=function(e){this._classMethodHead(e),this.token(";")},t.TSEnumDeclaration=function(e){const{declare:t,const:n,id:r,members:i}=e;t&&(this.word("declare"),this.space());n&&(this.word("const"),this.space());this.word("enum"),this.space(),this.print(r,e),this.space(),this.tsPrintBraced(i,e)},t.TSEnumMember=function(e){const{id:t,initializer:n}=e;this.print(t,e),n&&(this.space(),this.token("="),this.space(),this.print(n,e));this.token(",")},t.TSExportAssignment=function(e){this.word("export"),this.space(),this.token("="),this.space(),this.print(e.expression,e),this.token(";")},t.TSExpressionWithTypeArguments=function(e){this.print(e.expression,e),this.print(e.typeParameters,e)},t.TSExternalModuleReference=function(e){this.token("require("),this.print(e.expression,e),this.token(")")},t.TSFunctionType=function(e){this.tsPrintFunctionOrConstructorType(e)},t.TSImportEqualsDeclaration=function(e){const{isExport:t,id:n,moduleReference:r}=e;t&&(this.word("export"),this.space());this.word("import"),this.space(),this.print(n,e),this.space(),this.token("="),this.space(),this.print(r,e),this.token(";")},t.TSImportType=function(e){const{argument:t,qualifier:n,typeParameters:r}=e;this.word("import"),this.token("("),this.print(t,e),this.token(")"),n&&(this.token("."),this.print(n,e));r&&this.print(r,e)},t.TSIndexSignature=function(e){const{readonly:t,static:n}=e;n&&(this.word("static"),this.space());t&&(this.word("readonly"),this.space());this.token("["),this._parameters(e.parameters,e),this.token("]"),this.print(e.typeAnnotation,e),this.token(";")},t.TSIndexedAccessType=function(e){this.print(e.objectType,e),this.token("["),this.print(e.indexType,e),this.token("]")},t.TSInferType=function(e){this.token("infer"),this.space(),this.print(e.typeParameter)},t.TSInterfaceBody=function(e){this.tsPrintTypeLiteralOrInterfaceBody(e.body,e)},t.TSInterfaceDeclaration=function(e){const{declare:t,id:n,typeParameters:r,extends:i,body:s}=e;t&&(this.word("declare"),this.space());this.word("interface"),this.space(),this.print(n,e),this.print(r,e),null!=i&&i.length&&(this.space(),this.word("extends"),this.space(),this.printList(i,e));this.space(),this.print(s,e)},t.TSIntersectionType=function(e){this.tsPrintUnionOrIntersectionType(e,"&")},t.TSIntrinsicKeyword=function(){this.word("intrinsic")},t.TSLiteralType=function(e){this.print(e.literal,e)},t.TSMappedType=function(e){const{nameType:t,optional:n,readonly:i,typeParameter:s}=e;this.token("{"),this.space(),i&&(r(this,i),this.word("readonly"),this.space());this.token("["),this.word(s.name),this.space(),this.word("in"),this.space(),this.print(s.constraint,s),t&&(this.space(),this.word("as"),this.space(),this.print(t,e));this.token("]"),n&&(r(this,n),this.token("?"));this.token(":"),this.space(),this.print(e.typeAnnotation,e),this.space(),this.token("}")},t.TSMethodSignature=function(e){const{kind:t}=e;"set"!==t&&"get"!==t||(this.word(t),this.space());this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),this.token(";")},t.TSModuleBlock=function(e){this.tsPrintBraced(e.body,e)},t.TSModuleDeclaration=function(e){const{declare:t,id:n}=e;t&&(this.word("declare"),this.space());e.global||(this.word("Identifier"===n.type?"namespace":"module"),this.space());if(this.print(n,e),!e.body)return void this.token(";");let r=e.body;for(;"TSModuleDeclaration"===r.type;)this.token("."),this.print(r.id,r),r=r.body;this.space(),this.print(r,e)},t.TSNamedTupleMember=function(e){this.print(e.label,e),e.optional&&this.token("?");this.token(":"),this.space(),this.print(e.elementType,e)},t.TSNamespaceExportDeclaration=function(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id,e)},t.TSNeverKeyword=function(){this.word("never")},t.TSNonNullExpression=function(e){this.print(e.expression,e),this.token("!")},t.TSNullKeyword=function(){this.word("null")},t.TSNumberKeyword=function(){this.word("number")},t.TSObjectKeyword=function(){this.word("object")},t.TSOptionalType=function(e){this.print(e.typeAnnotation,e),this.token("?")},t.TSParameterProperty=function(e){e.accessibility&&(this.word(e.accessibility),this.space());e.readonly&&(this.word("readonly"),this.space());this._param(e.parameter)},t.TSParenthesizedType=function(e){this.token("("),this.print(e.typeAnnotation,e),this.token(")")},t.TSPropertySignature=function(e){const{readonly:t,initializer:n}=e;t&&(this.word("readonly"),this.space());this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation,e),n&&(this.space(),this.token("="),this.space(),this.print(n,e));this.token(";")},t.TSQualifiedName=function(e){this.print(e.left,e),this.token("."),this.print(e.right,e)},t.TSRestType=function(e){this.token("..."),this.print(e.typeAnnotation,e)},t.TSStringKeyword=function(){this.word("string")},t.TSSymbolKeyword=function(){this.word("symbol")},t.TSThisType=function(){this.word("this")},t.TSTupleType=function(e){this.token("["),this.printList(e.elementTypes,e),this.token("]")},t.TSTypeAliasDeclaration=function(e){const{declare:t,id:n,typeParameters:r,typeAnnotation:i}=e;t&&(this.word("declare"),this.space());this.word("type"),this.space(),this.print(n,e),this.print(r,e),this.space(),this.token("="),this.space(),this.print(i,e),this.token(";")},t.TSTypeAnnotation=function(e){this.token(":"),this.space(),e.optional&&this.token("?");this.print(e.typeAnnotation,e)},t.TSTypeAssertion=function(e){const{typeAnnotation:t,expression:n}=e;this.token("<"),this.print(t,e),this.token(">"),this.space(),this.print(n,e)},t.TSTypeLiteral=function(e){this.tsPrintTypeLiteralOrInterfaceBody(e.members,e)},t.TSTypeOperator=function(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation,e)},t.TSTypeParameter=function(e){this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint,e));e.default&&(this.space(),this.token("="),this.space(),this.print(e.default,e))},t.TSTypeParameterDeclaration=t.TSTypeParameterInstantiation=function(e,t){this.token("<"),this.printList(e.params,e,{}),"ArrowFunctionExpression"===t.type&&1===e.params.length&&this.token(",");this.token(">")},t.TSTypePredicate=function(e){e.asserts&&(this.word("asserts"),this.space());this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))},t.TSTypeQuery=function(e){this.word("typeof"),this.space(),this.print(e.exprName)},t.TSTypeReference=function(e){this.print(e.typeName,e),this.print(e.typeParameters,e)},t.TSUndefinedKeyword=function(){this.word("undefined")},t.TSUnionType=function(e){this.tsPrintUnionOrIntersectionType(e,"|")},t.TSUnknownKeyword=function(){this.word("unknown")},t.TSVoidKeyword=function(){this.word("void")},t.tsPrintBraced=function(e,t){if(this.token("{"),e.length){this.indent(),this.newline();for(const n of e)this.print(n,t),this.newline();this.dedent(),this.rightBrace()}else this.token("}")},t.tsPrintClassMemberModifiers=function(e,t){t&&e.declare&&(this.word("declare"),this.space());e.accessibility&&(this.word(e.accessibility),this.space());e.static&&(this.word("static"),this.space());e.override&&(this.word("override"),this.space());e.abstract&&(this.word("abstract"),this.space());t&&e.readonly&&(this.word("readonly"),this.space())},t.tsPrintFunctionOrConstructorType=function(e){const{typeParameters:t}=e,n=e.parameters;this.print(t,e),this.token("("),this._parameters(n,e),this.token(")"),this.space(),this.token("=>"),this.space();const r=e.typeAnnotation;this.print(r.typeAnnotation,e)},t.tsPrintPropertyOrMethodName=function(e){e.computed&&this.token("[");this.print(e.key,e),e.computed&&this.token("]");e.optional&&this.token("?")},t.tsPrintSignatureDeclarationBase=function(e){const{typeParameters:t}=e,n=e.parameters;this.print(t,e),this.token("("),this._parameters(n,e),this.token(")");const r=e.typeAnnotation;this.print(r,e)},t.tsPrintTypeLiteralOrInterfaceBody=function(e,t){this.tsPrintBraced(e,t)},t.tsPrintUnionOrIntersectionType=function(e,t){this.printJoin(e.types,e,{separator(){this.space(),this.token(t),this.space()}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.find=function(e){let t=this;do{if(e(t))return t}while(t=t.parentPath);return null},t.findParent=function(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null},t.getAncestry=function(){let e=this;const t=[];do{t.push(e)}while(e=e.parentPath);return t},t.getDeepestCommonAncestorFrom=function(e,t){if(!e.length)return this;if(1===e.length)return e[0];let n,r,i=1/0;const s=e.map(e=>{const t=[];do{t.unshift(e)}while((e=e.parentPath)&&e!==this);return t.length<i&&(i=t.length),t}),o=s[0];e:for(let e=0;e<i;e++){const t=o[e];for(const n of s)if(n[e]!==t)break e;n=e,r=t}if(r)return t?t(r,n,s):r;throw new Error("Couldn't find intersection")},t.getEarliestCommonAncestorFrom=function(e){return this.getDeepestCommonAncestorFrom(e,(function(e,t,n){let r;const s=i[e.type];for(const e of n){const n=e[t+1];if(!r){r=n;continue}if(n.listKey&&r.listKey===n.listKey&&n.key<r.key){r=n;continue}s.indexOf(r.parentKey)>s.indexOf(n.parentKey)&&(r=n)}return r}))},t.getFunctionParent=function(){return this.findParent(e=>e.isFunction())},t.getStatementParent=function(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e},t.inType=function(...e){let t=this;for(;t;){for(const n of e)if(t.node.type===n)return!0;t=t.parentPath}return!1},t.isAncestor=function(e){return e.isDescendant(this)},t.isDescendant=function(e){return!!this.findParent(t=>t===e)};var r=n(1);n(35);const{VISITOR_KEYS:i}=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getTypeAnnotation=function(){const e=this.node;if(!e){if("init"===this.key&&this.parentPath.isVariableDeclarator()){const e=this.parentPath.parentPath,t=e.parentPath;return"left"===e.key&&t.isForInStatement()?v():"left"===e.key&&t.isForOfStatement()?s():b()}return}if(e.typeAnnotation)return e.typeAnnotation;if(w.has(e))return;w.add(e);try{var t;let n=r[e.type];if(n)return n.call(this,e);if(n=r[this.parentPath.type],null!=(t=n)&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{w.delete(e)}},t.baseTypeStrictlyMatches=function(e){const t=this.getTypeAnnotation(),n=e.getTypeAnnotation();if(!o(t)&&u(t))return n.type===t.type;return!1},t.couldBeBaseType=function(e){const t=this.getTypeAnnotation();if(o(t))return!0;if(g(t)){for(const n of t.types)if(o(n)||_(e,n,!0))return!0;return!1}return _(e,t,!0)},t.getTypeAnnotation=function(){if(this.typeAnnotation)return this.typeAnnotation;let e=this._getTypeAnnotation()||s();m(e)&&(e=e.typeAnnotation);return this.typeAnnotation=e},t.isBaseType=function(e,t){return _(e,this.getTypeAnnotation(),t)},t.isGenericType=function(e){const t=this.getTypeAnnotation();return c(t)&&h(t.id,{name:e})};var r=n(591),i=n(1);const{anyTypeAnnotation:s,isAnyTypeAnnotation:o,isBooleanTypeAnnotation:a,isEmptyTypeAnnotation:l,isFlowBaseAnnotation:u,isGenericTypeAnnotation:c,isIdentifier:h,isMixedTypeAnnotation:d,isNumberTypeAnnotation:f,isStringTypeAnnotation:p,isTypeAnnotation:m,isUnionTypeAnnotation:g,isVoidTypeAnnotation:y,stringTypeAnnotation:v,voidTypeAnnotation:b}=i;const w=new WeakSet;function _(e,t,n){if("string"===e)return p(t);if("number"===e)return f(t);if("boolean"===e)return a(t);if("any"===e)return o(t);if("mixed"===e)return d(t);if("empty"===e)return l(t);if("void"===e)return y(t);if(n)return!1;throw new Error("Unknown base type "+e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayExpression=M,t.AssignmentExpression=function(){return this.get("right").getTypeAnnotation()},t.BinaryExpression=function(e){const t=e.operator;if(a.indexOf(t)>=0)return _();if(s.indexOf(t)>=0)return d();if("+"===t){const e=this.get("right"),t=this.get("left");return t.isBaseType("number")&&e.isBaseType("number")?_():t.isBaseType("string")||e.isBaseType("string")?S():E([S(),_()])}},t.BooleanLiteral=function(){return d()},t.CallExpression=function(){const{callee:e}=this.node;if(k(e))return h(S());if(P(e)||O(e))return h(c());if(I(e))return h(x([S(),c()]));return R(this.get("callee"))},t.ConditionalExpression=function(){const e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];if(b(e[0])&&m)return m(e);if(p)return p(e);return g(e)},t.ClassDeclaration=t.ClassExpression=t.FunctionDeclaration=t.ArrowFunctionExpression=t.FunctionExpression=function(){return y(v("Function"))},Object.defineProperty(t,"Identifier",{enumerable:!0,get:function(){return i.default}}),t.LogicalExpression=function(){const e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];if(b(e[0])&&m)return m(e);if(p)return p(e);return g(e)},t.NewExpression=function(e){if(this.get("callee").isIdentifier())return y(e.callee)},t.NullLiteral=function(){return w()},t.NumericLiteral=function(){return _()},t.ObjectExpression=function(){return y(v("Object"))},t.ParenthesizedExpression=function(){return this.get("expression").getTypeAnnotation()},t.RegExpLiteral=function(){return y(v("RegExp"))},t.RestElement=C,t.SequenceExpression=function(){return this.get("expressions").pop().getTypeAnnotation()},t.StringLiteral=function(){return S()},t.TaggedTemplateExpression=function(){return R(this.get("tag"))},t.TemplateLiteral=function(){return S()},t.TypeCastExpression=T,t.UnaryExpression=function(e){const t=e.operator;if("void"===t)return A();if(l.indexOf(t)>=0)return _();if(u.indexOf(t)>=0)return S();if(o.indexOf(t)>=0)return d()},t.UpdateExpression=function(e){const t=e.operator;if("++"===t||"--"===t)return _()},t.VariableDeclarator=function(){var e;if(!this.get("id").isIdentifier())return;const t=this.get("init");let n=t.getTypeAnnotation();"AnyTypeAnnotation"===(null==(e=n)?void 0:e.type)&&t.isCallExpression()&&t.get("callee").isIdentifier({name:"Array"})&&!t.scope.hasBinding("Array",!0)&&(n=M());return n};var r=n(1),i=n(592);const{BOOLEAN_BINARY_OPERATORS:s,BOOLEAN_UNARY_OPERATORS:o,NUMBER_BINARY_OPERATORS:a,NUMBER_UNARY_OPERATORS:l,STRING_UNARY_OPERATORS:u,anyTypeAnnotation:c,arrayTypeAnnotation:h,booleanTypeAnnotation:d,buildMatchMemberExpression:f,createFlowUnionType:p,createTSUnionType:m,createUnionTypeAnnotation:g,genericTypeAnnotation:y,identifier:v,isTSTypeAnnotation:b,nullLiteralTypeAnnotation:w,numberTypeAnnotation:_,stringTypeAnnotation:S,tupleTypeAnnotation:x,unionTypeAnnotation:E,voidTypeAnnotation:A}=r;function T(e){return e.typeAnnotation}function M(){return y(v("Array"))}function C(){return M()}T.validParent=!0,C.validParent=!0;const P=f("Array.from"),k=f("Object.keys"),O=f("Object.values"),I=f("Object.entries");function R(e){if((e=e.resolve()).isFunction()){if(e.is("async"))return e.is("generator")?y(v("AsyncIterator")):y(v("Promise"));if(e.node.returnType)return e.node.returnType}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!this.isReferenced())return;const t=this.scope.getBinding(e.name);if(t)return t.identifier.typeAnnotation?t.identifier.typeAnnotation:function(e,t,n){const r=[],i=[];let a=d(e,t,i);const c=function e(t,n,r){const i=function(e,t,n){let r;for(;r=t.parentPath;){if(r.isIfStatement()||r.isConditionalExpression()){if("test"===t.key)return;return r}if(r.isFunction()&&r.parentPath.scope.getBinding(n)!==e)return;t=r}}(t,n,r);if(!i)return;const a=[i.get("test")],c=[];for(let e=0;e<a.length;e++){const t=a[e];if(t.isLogicalExpression())"&&"===t.node.operator&&(a.push(t.get("left")),a.push(t.get("right")));else if(t.isBinaryExpression()){const e=f(r,t);e&&c.push(e)}}if(c.length)return u(c[0])&&o?{typeAnnotation:o(c),ifStatement:i}:s?{typeAnnotation:s(c),ifStatement:i}:{typeAnnotation:l(c),ifStatement:i};return e(i,r)}(e,t,n);if(c){const t=d(e,c.ifStatement);a=a.filter(e=>t.indexOf(e)<0),r.push(c.typeAnnotation)}if(a.length){a.push(...i);for(const e of a)r.push(e.getTypeAnnotation())}if(!r.length)return;if(u(r[0])&&o)return o(r);if(s)return s(r);return l(r)}(t,this,e.name);if("undefined"===e.name)return h();if("NaN"===e.name||"Infinity"===e.name)return c();e.name};var r=n(1);const{BOOLEAN_NUMBER_BINARY_OPERATORS:i,createFlowUnionType:s,createTSUnionType:o,createTypeAnnotationBasedOnTypeof:a,createUnionTypeAnnotation:l,isTSTypeAnnotation:u,numberTypeAnnotation:c,voidTypeAnnotation:h}=r;function d(e,t,n){const r=e.constantViolations.slice();return r.unshift(e.path),r.filter(e=>{const r=(e=e.resolve())._guessExecutionStatusRelativeTo(t);return n&&"unknown"===r&&n.push(e),"before"===r})}function f(e,t){const n=t.node.operator,r=t.get("right").resolve(),s=t.get("left").resolve();let o,l,u;if(s.isIdentifier({name:e})?o=r:r.isIdentifier({name:e})&&(o=s),o)return"==="===n?o.getTypeAnnotation():i.indexOf(n)>=0?c():void 0;if("==="!==n&&"=="!==n)return;if(s.isUnaryExpression({operator:"typeof"})?(l=s,u=r):r.isUnaryExpression({operator:"typeof"})&&(l=r,u=s),!l)return;if(!l.get("argument").isIdentifier({name:e}))return;if(u=u.resolve(),!u.isLiteral())return;const h=u.node.value;return"string"==typeof h?a(h):void 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._replaceWith=function(e){var t;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?C(this.parent,this.key,[e]):C(this.parent,this.key,e);this.debug("Replace with "+(null==e?void 0:e.type)),null==(t=o.path.get(this.parent))||t.set(e,this).delete(this.node),this.node=this.container[this.key]=e},t.replaceExpressionWithStatements=function(e){this.resync();const t=M(e,this.scope);if(t)return this.replaceWith(t)[0].get("expressions");const n=this.getFunctionParent(),r=null==n?void 0:n.is("async"),s=null==n?void 0:n.is("generator"),o=h([],p(e));this.replaceWith(m(o,[]));const a=this.get("callee");(0,u.default)(a.get("body"),e=>{this.scope.push({id:e})},"var");const l=this.get("callee").getCompletionRecords();for(const e of l){if(!e.isExpressionStatement())continue;const t=e.findParent(e=>e.isLoop());if(t){let n=t.getData("expressionReplacementReturnUid");n?n=v(n.name):(n=a.scope.generateDeclaredUidIdentifier("ret"),a.get("body").pushContainer("body",T(g(n))),t.setData("expressionReplacementReturnUid",n)),e.get("expression").replaceWith(d("=",g(n),e.node.expression))}else e.replaceWith(T(e.node.expression))}a.arrowFunctionToExpression();const y=a,b=r&&i.default.hasType(this.get("callee.body").node,"AwaitExpression",c),w=s&&i.default.hasType(this.get("callee.body").node,"YieldExpression",c);b&&(y.set("async",!0),w||this.replaceWith(f(this.node)));w&&(y.set("generator",!0),this.replaceWith(P(this.node,!0)));return y.get("body.body")},t.replaceInline=function(e){if(this.resync(),Array.isArray(e)){if(Array.isArray(this.container)){e=this._verifyNodeList(e);const t=this._containerInsertAfter(e);return this.remove(),t}return this.replaceWithMultiple(e)}return this.replaceWith(e)},t.replaceWith=function(e){if(this.resync(),this.removed)throw new Error("You can't replace this node, we've already removed it");e instanceof s.default&&(e=e.node);if(!e)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===e)return[this];if(this.isProgram()&&!x(e))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(e))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if("string"==typeof e)throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let t="";this.isNodeType("Statement")&&S(e)&&(this.canHaveVariableDeclarationOrExpression()||this.canSwapBetweenExpressionAndStatement(e)||this.parentPath.isExportDefaultDeclaration()||(e=y(e),t="expression"));if(this.isNodeType("Expression")&&E(e)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(e))return this.replaceExpressionWithStatements([e]);const n=this.node;n&&(_(e,n),A(n));return this._replaceWith(e),this.type=e.type,this.setScope(),this.requeue(),[t?this.get(t):this]},t.replaceWithMultiple=function(e){var t;this.resync(),e=this._verifyNodeList(e),b(e[0],this.node),w(e[e.length-1],this.node),null==(t=o.path.get(this.parent))||t.delete(this.node),this.node=this.container[this.key]=null;const n=this.insertAfter(e);this.node?this.requeue():this.remove();return n},t.replaceWithSourceString=function(e){this.resync();try{e=`(${e})`,e=(0,a.parse)(e)}catch(t){const n=t.loc;throw n&&(t.message+=" - make sure this is an expression.\n"+(0,r.codeFrameColumns)(e,{start:{line:n.line,column:n.column+1}}),t.code="BABEL_REPLACE_SOURCE_ERROR"),t}return e=e.program.body[0].expression,i.default.removeProperties(e),this.replaceWith(e)};var r=n(79),i=n(25),s=n(35),o=n(53),a=n(80),l=n(1),u=n(604);const{FUNCTION_TYPES:c,arrowFunctionExpression:h,assignmentExpression:d,awaitExpression:f,blockStatement:p,callExpression:m,cloneNode:g,expressionStatement:y,identifier:v,inheritLeadingComments:b,inheritTrailingComments:w,inheritsComments:_,isExpression:S,isProgram:x,isStatement:E,removeComments:A,returnStatement:T,toSequenceExpression:M,validate:C,yieldExpression:P}=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){if(""!==e&&c(t)){const n=h(t);return function(e,t){let n="";for(const{type:r,value:i}of u(t)){const t=e[r];n+=t?i.split(a).map(e=>t(e)).join("\n"):i}return n}(function(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}(n),e)}return e},t.getChalk=h,t.shouldHighlight=c;var r=n(595),i=n(64),s=n(596);const o=new Set(["as","async","from","get","of","set"]);const a=/\r\n|[\n\r\u2028\u2029]/,l=/^[()[\]{}]$/;let u;{const e=/^[a-z][\w-]*$/i,t=function(t,n,r){if("name"===t.type){if((0,i.isKeyword)(t.value)||(0,i.isStrictReservedWord)(t.value,!0)||o.has(t.value))return"keyword";if(e.test(t.value)&&("<"===r[n-1]||"</"==r.substr(n-2,2)))return"jsxIdentifier";if(t.value[0]!==t.value[0].toLowerCase())return"capitalized"}return"punctuator"===t.type&&l.test(t.value)?"bracket":"invalid"!==t.type||"@"!==t.value&&"#"!==t.value?t.type:"punctuator"};u=function*(e){let n;for(;n=r.default.exec(e);){const i=r.matchToToken(n);yield{type:t(i,n.index,e),value:i.value}}}}function c(e){return!!s.supportsColor||e.forceColor}function h(e){return e.forceColor?new s.constructor({enabled:!0,level:1}):s}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},function(e,t,n){"use strict";(function(t){const r=n(597),i=n(598),s=n(602).stdout,o=n(603),a="win32"===t.platform&&!(t.env.TERM||"").toLowerCase().startsWith("xterm"),l=["ansi","ansi","ansi256","ansi16m"],u=new Set(["gray"]),c=Object.create(null);function h(e,t){t=t||{};const n=s?s.level:0;e.level=void 0===t.level?n:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function d(e){if(!this||!(this instanceof d)||this.template){const t={};return h(t,e),t.template=function(){const e=[].slice.call(arguments);return g.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,d.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=d,t.template}h(this,e)}a&&(i.blue.open="");for(const e of Object.keys(i))i[e].closeRe=new RegExp(r(i[e].close),"g"),c[e]={get(){const t=i[e];return p.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};c.visible={get(){return p.call(this,this._styles||[],!0,"visible")}},i.color.closeRe=new RegExp(r(i.color.close),"g");for(const e of Object.keys(i.color.ansi))u.has(e)||(c[e]={get(){const t=this.level;return function(){const n=i.color[l[t]][e].apply(null,arguments),r={open:n,close:i.color.close,closeRe:i.color.closeRe};return p.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}});i.bgColor.closeRe=new RegExp(r(i.bgColor.close),"g");for(const e of Object.keys(i.bgColor.ansi)){if(u.has(e))continue;c["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const n=i.bgColor[l[t]][e].apply(null,arguments),r={open:n,close:i.bgColor.close,closeRe:i.bgColor.closeRe};return p.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}}}const f=Object.defineProperties(()=>{},c);function p(e,t,n){const r=function(){return m.apply(r,arguments)};r._styles=e,r._empty=t;const i=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>i.level,set(e){i.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>i.enabled,set(e){i.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=f,r}function m(){const e=arguments,t=e.length;let n=String(arguments[0]);if(0===t)return"";if(t>1)for(let r=1;r<t;r++)n+=" "+e[r];if(!this.enabled||this.level<=0||!n)return this._empty?"":n;const r=i.dim.open;a&&this.hasGrey&&(i.dim.open="");for(const e of this._styles.slice().reverse())n=e.open+n.replace(e.closeRe,e.open)+e.close,n=n.replace(/\r?\n/g,`${e.close}$&${e.open}`);return i.dim.open=r,n}function g(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const n=[].slice.call(arguments,2),r=[t.raw[0]];for(let e=1;e<t.length;e++)r.push(String(n[e-1]).replace(/[{}\\]/g,"\\$&")),r.push(String(t.raw[e]));return o(e,r.join(""))}Object.defineProperties(d.prototype,c),e.exports=d(),e.exports.supportsColor=s,e.exports.default=e.exports}).call(this,n(3))},function(e,t,n){"use strict";var r=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(r,"\\$&")}},function(e,t,n){"use strict";(function(e){const t=n(599),r=(e,n)=>function(){const r=e.apply(t,arguments);return`[${r+n}m`},i=(e,n)=>function(){const r=e.apply(t,arguments);return`[${38+n};5;${r}m`},s=(e,n)=>function(){const r=e.apply(t,arguments);return`[${38+n};2;${r[0]};${r[1]};${r[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,n={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};n.color.grey=n.color.gray;for(const t of Object.keys(n)){const r=n[t];for(const t of Object.keys(r)){const i=r[t];n[t]={open:`[${i[0]}m`,close:`[${i[1]}m`},r[t]=n[t],e.set(i[0],i[1])}Object.defineProperty(n,t,{value:r,enumerable:!1}),Object.defineProperty(n,"codes",{value:e,enumerable:!1})}const o=e=>e,a=(e,t,n)=>[e,t,n];n.color.close="",n.bgColor.close="",n.color.ansi={ansi:r(o,0)},n.color.ansi256={ansi256:i(o,0)},n.color.ansi16m={rgb:s(a,0)},n.bgColor.ansi={ansi:r(o,10)},n.bgColor.ansi256={ansi256:i(o,10)},n.bgColor.ansi16m={rgb:s(a,10)};for(let e of Object.keys(t)){if("object"!=typeof t[e])continue;const o=t[e];"ansi16"===e&&(e="ansi"),"ansi16"in o&&(n.color.ansi[e]=r(o.ansi16,0),n.bgColor.ansi[e]=r(o.ansi16,10)),"ansi256"in o&&(n.color.ansi256[e]=i(o.ansi256,0),n.bgColor.ansi256[e]=i(o.ansi256,10)),"rgb"in o&&(n.color.ansi16m[e]=s(o.rgb,0),n.bgColor.ansi16m[e]=s(o.rgb,10))}return n}})}).call(this,n(14)(e))},function(e,t,n){var r=n(251),i=n(601),s={};Object.keys(r).forEach((function(e){s[e]={},Object.defineProperty(s[e],"channels",{value:r[e].channels}),Object.defineProperty(s[e],"labels",{value:r[e].labels});var t=i(e);Object.keys(t).forEach((function(n){var r=t[n];s[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i<r;i++)n[i]=Math.round(n[i]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),s[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=s},function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,n){var r=n(251);function i(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,i=0;i<n;i++)e[t[i]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var i=n.pop(),s=Object.keys(r[i]),o=s.length,a=0;a<o;a++){var l=s[a],u=t[l];-1===u.distance&&(u.distance=t[i].distance+1,u.parent=i,n.unshift(l))}return t}function s(e,t){return function(n){return t(e(n))}}function o(e,t){for(var n=[t[e].parent,e],i=r[t[e].parent][e],o=t[e].parent;t[o].parent;)n.unshift(t[o].parent),i=s(r[t[o].parent][o],i),o=t[o].parent;return i.conversion=n,i}e.exports=function(e){for(var t=i(e),n={},r=Object.keys(t),s=r.length,a=0;a<s;a++){var l=r[a];null!==t[l].parent&&(n[l]=o(l,t))}return n}},function(e,t,n){"use strict";e.exports={stdout:!1,stderr:!1}},function(e,t,n){"use strict";const r=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,i=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,s=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,o=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function l(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):a.get(e)||e}function u(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let i;for(const t of r)if(isNaN(t)){if(!(i=t.match(s)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);n.push(i[2].replace(o,(e,t,n)=>t?l(t):n))}else n.push(Number(t));return n}function c(e){i.lastIndex=0;const t=[];let n;for(;null!==(n=i.exec(e));){const e=n[1];if(n[2]){const r=u(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function h(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const e of Object.keys(n))if(Array.isArray(n[e])){if(!(e in r))throw new Error("Unknown Chalk style: "+e);r=n[e].length>0?r[e].apply(r,n[e]):r[e]}return r}e.exports=(e,t)=>{const n=[],i=[];let s=[];if(t.replace(r,(t,r,o,a,u,d)=>{if(r)s.push(l(r));else if(a){const t=s.join("");s=[],i.push(0===n.length?t:h(e,n)(t)),n.push({inverse:o,styles:c(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");i.push(h(e,n)(s.join(""))),s=[],n.pop()}else s.push(d)}),i.push(s.join("")),n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(e)}return i.join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n="var"){e.traverse(a,{kind:n,emit:t})};var r=n(1);const{assignmentExpression:i,expressionStatement:s,identifier:o}=r,a={Scope(e,t){"let"===t.kind&&e.skip()},FunctionParent(e){e.skip()},VariableDeclaration(e,t){if(t.kind&&e.node.kind!==t.kind)return;const n=[],r=e.get("declarations");let a;for(const e of r){a=e.node.id,e.node.init&&n.push(s(i("=",e.node.id,e.node.init)));for(const n of Object.keys(e.getBindingIdentifiers()))t.emit(o(n),n,null!==e.node.init)}e.parentPath.isFor({left:e.node})?e.replaceWith(a):e.replaceWithMultiple(n)}}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.evaluate=function(){const e={confident:!0,deoptPath:null,seen:new Map};let t=s(this,e);e.confident||(t=void 0);return{confident:e.confident,deopt:e.deoptPath,value:t}},t.evaluateTruthy=function(){const e=this.evaluate();if(e.confident)return!!e.value};const n=["String","Number","Math"],r=["random"];function i(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}function s(t,a){const{node:l}=t,{seen:u}=a;if(u.has(l)){const e=u.get(l);return e.resolved?e.value:void i(t,a)}{const c={resolved:!1};u.set(l,c);const h=function(t,a){if(!a.confident)return;if(t.isSequenceExpression()){const e=t.get("expressions");return s(e[e.length-1],a)}if(t.isStringLiteral()||t.isNumericLiteral()||t.isBooleanLiteral())return t.node.value;if(t.isNullLiteral())return null;if(t.isTemplateLiteral())return o(t,t.node.quasis,a);if(t.isTaggedTemplateExpression()&&t.get("tag").isMemberExpression()){const e=t.get("tag.object"),{node:{name:n}}=e,r=t.get("tag.property");if(e.isIdentifier()&&"String"===n&&!t.scope.getBinding(n)&&r.isIdentifier()&&"raw"===r.node.name)return o(t,t.node.quasi.quasis,a,!0)}if(t.isConditionalExpression()){const e=s(t.get("test"),a);if(!a.confident)return;return s(e?t.get("consequent"):t.get("alternate"),a)}if(t.isExpressionWrapper())return s(t.get("expression"),a);if(t.isMemberExpression()&&!t.parentPath.isCallExpression({callee:t.node})){const e=t.get("property"),n=t.get("object");if(n.isLiteral()&&e.isIdentifier()){const t=n.node.value,r=typeof t;if("number"===r||"string"===r)return t[e.node.name]}}if(t.isReferencedIdentifier()){const e=t.scope.getBinding(t.node.name);if(e&&e.constantViolations.length>0)return i(e.path,a);if(e&&t.node.start<e.path.node.end)return i(e.path,a);if(null!=e&&e.hasValue)return e.value;{if("undefined"===t.node.name)return e?i(e.path,a):void 0;if("Infinity"===t.node.name)return e?i(e.path,a):1/0;if("NaN"===t.node.name)return e?i(e.path,a):NaN;const n=t.resolve();return n===t?i(t,a):s(n,a)}}if(t.isUnaryExpression({prefix:!0})){if("void"===t.node.operator)return;const e=t.get("argument");if("typeof"===t.node.operator&&(e.isFunction()||e.isClass()))return"function";const n=s(e,a);if(!a.confident)return;switch(t.node.operator){case"!":return!n;case"+":return+n;case"-":return-n;case"~":return~n;case"typeof":return typeof n}}if(t.isArrayExpression()){const e=[],n=t.get("elements");for(const t of n){const n=t.evaluate();if(!n.confident)return i(n.deopt,a);e.push(n.value)}return e}if(t.isObjectExpression()){const e={},n=t.get("properties");for(const t of n){if(t.isObjectMethod()||t.isSpreadElement())return i(t,a);let n=t.get("key");if(t.node.computed){if(n=n.evaluate(),!n.confident)return i(n.deopt,a);n=n.value}else n=n.isIdentifier()?n.node.name:n.node.value;let r=t.get("value").evaluate();if(!r.confident)return i(r.deopt,a);r=r.value,e[n]=r}return e}if(t.isLogicalExpression()){const e=a.confident,n=s(t.get("left"),a),r=a.confident;a.confident=e;const i=s(t.get("right"),a),o=a.confident;switch(t.node.operator){case"||":if(a.confident=r&&(!!n||o),!a.confident)return;return n||i;case"&&":if(a.confident=r&&(!n||o),!a.confident)return;return n&&i}}if(t.isBinaryExpression()){const e=s(t.get("left"),a);if(!a.confident)return;const n=s(t.get("right"),a);if(!a.confident)return;switch(t.node.operator){case"-":return e-n;case"+":return e+n;case"/":return e/n;case"*":return e*n;case"%":return e%n;case"**":return Math.pow(e,n);case"<":return e<n;case">":return e>n;case"<=":return e<=n;case">=":return e>=n;case"==":return e==n;case"!=":return e!=n;case"===":return e===n;case"!==":return e!==n;case"|":return e|n;case"&":return e&n;case"^":return e^n;case"<<":return e<<n;case">>":return e>>n;case">>>":return e>>>n}}if(t.isCallExpression()){const i=t.get("callee");let o,l;if(i.isIdentifier()&&!t.scope.getBinding(i.node.name)&&n.indexOf(i.node.name)>=0&&(l=e[i.node.name]),i.isMemberExpression()){const t=i.get("object"),s=i.get("property");if(t.isIdentifier()&&s.isIdentifier()&&n.indexOf(t.node.name)>=0&&r.indexOf(s.node.name)<0&&(o=e[t.node.name],l=o[s.node.name]),t.isLiteral()&&s.isIdentifier()){const e=typeof t.node.value;"string"!==e&&"number"!==e||(o=t.node.value,l=o[s.node.name])}}if(l){const e=t.get("arguments").map(e=>s(e,a));if(!a.confident)return;return l.apply(o,e)}}i(t,a)}(t,a);return a.confident&&(c.resolved=!0,c.value=h),h}}function o(e,t,n,r=!1){let i="",o=0;const a=e.get("expressions");for(const e of t){if(!n.confident)break;i+=r?e.value.raw:e.value.cooked;const t=a[o++];t&&(i+=String(s(t,n)))}if(n.confident)return i}}).call(this,n(8))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrowFunctionToExpression=function({allowInsertArrow:e=!0,specCompliant:t=!1,noNewArrows:n=!t}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");const{thisBinding:r,fnPath:i}=R(this,n,e);if(i.ensureBlock(),i.node.type="FunctionExpression",!n){const e=r?null:i.scope.generateUidIdentifier("arrowCheckId");e&&i.parentPath.scope.push({id:e,init:S([])}),i.get("body").unshiftContainer("body",f(h(this.hub.addHelper("newArrowCheck"),[P(),p(e?e.name:r)]))),i.replaceWith(h(b((0,s.default)(this,!0)||i.node,p("bind")),[e?p(e.name):P()]))}},t.arrowFunctionToShadowed=function(){if(!this.isArrowFunctionExpression())return;this.arrowFunctionToExpression()},t.ensureBlock=function(){const e=this.get("body"),t=e.node;if(Array.isArray(e))throw new Error("Can't convert array path to a block statement");if(!t)throw new Error("Can't convert node without a body");if(e.isBlockStatement())return t;const n=[];let r,i,s="body";e.isStatement()?(i="body",r=0,n.push(e.node)):(s+=".body.0",this.isFunction()?(r="argument",n.push(E(e.node))):(r="expression",n.push(f(e.node))));this.node.body=c(n);const o=this.get(s);return e.setup(o,i?o.node[i]:o.node,i,r),this.node},t.toComputedKey=function(){let e;if(this.isMemberExpression())e=this.node.property;else{if(!this.isProperty()&&!this.isMethod())throw new ReferenceError("todo");e=this.node.key}this.node.computed||m(e)&&(e=M(e.name));return e},t.unwrapFunctionEnvironment=function(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");R(this)};var r=n(1),i=n(252),s=n(607),o=n(220);const{arrowFunctionExpression:a,assignmentExpression:l,binaryExpression:u,blockStatement:c,callExpression:h,conditionalExpression:d,expressionStatement:f,identifier:p,isIdentifier:m,jsxIdentifier:g,logicalExpression:y,LOGICAL_OPERATORS:v,memberExpression:b,metaProperty:w,numericLiteral:_,objectExpression:S,restElement:x,returnStatement:E,sequenceExpression:A,spreadElement:T,stringLiteral:M,super:C,thisExpression:P,toExpression:k,unaryExpression:O}=r;const I=(0,o.merge)([{CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}},i.default]);function R(e,t=!0,n=!0){let r,i=e.findParent(e=>e.isArrowFunctionExpression()?(null!=r||(r=e),!1):e.isFunction()||e.isProgram()||e.isClassProperty({static:!1})||e.isClassPrivateProperty({static:!1}));const s=i.isClassMethod({kind:"constructor"});if(i.isClassProperty()||i.isClassPrivateProperty())if(r)i=r;else{if(!n)throw e.buildCodeFrameError("Unable to transform arrow inside class property");e.replaceWith(h(a([],k(e.node)),[])),i=e.get("callee"),e=i.get("body")}const{thisPaths:o,argumentsPaths:c,newTargetPaths:f,superProps:m,superCalls:S}=function(e){const t=[],n=[],r=[],i=[],s=[];return e.traverse(L,{thisPaths:t,argumentsPaths:n,newTargetPaths:r,superProps:i,superCalls:s}),{thisPaths:t,argumentsPaths:n,newTargetPaths:r,superProps:i,superCalls:s}}(e);if(s&&S.length>0){if(!n)throw S[0].buildCodeFrameError("Unable to handle nested super() usage in arrow");const e=[];i.traverse(I,{allSuperCalls:e});const t=function(e){return F(e,"supercall",()=>{const t=e.scope.generateUidIdentifier("args");return a([x(t)],h(C(),[T(p(t.name))]))})}(i);e.forEach(e=>{const n=p(t);n.loc=e.node.callee.loc,e.get("callee").replaceWith(n)})}if(c.length>0){const e=F(i,"arguments",()=>{const e=()=>p("arguments");return i.scope.path.isProgram()?d(u("===",O("typeof",e()),M("undefined")),i.scope.buildUndefinedNode(),e()):e()});c.forEach(t=>{const n=p(e);n.loc=t.node.loc,t.replaceWith(n)})}if(f.length>0){const e=F(i,"newtarget",()=>w(p("new"),p("target")));f.forEach(t=>{const n=p(e);n.loc=t.node.loc,t.replaceWith(n)})}if(m.length>0){if(!n)throw m[0].buildCodeFrameError("Unable to handle nested super.prop usage");m.reduce((e,t)=>e.concat(function(e){if(e.parentPath.isAssignmentExpression()&&"="!==e.parentPath.node.operator){const n=e.parentPath,r=n.node.operator.slice(0,-1),i=n.node.right,s=function(e){return v.includes(e)}(r);if(e.node.computed){const o=e.scope.generateDeclaredUidIdentifier("tmp"),a=e.node.object,u=e.node.property;n.get("left").replaceWith(b(a,l("=",o,u),!0)),n.get("right").replaceWith(t(s?"=":r,b(a,p(o.name),!0),i))}else{const o=e.node.object,a=e.node.property;n.get("left").replaceWith(b(o,a)),n.get("right").replaceWith(t(s?"=":r,b(o,p(a.name)),i))}return s?n.replaceWith(y(r,n.node.left,n.node.right)):n.node.operator="=",[n.get("left"),n.get("right").get("left")]}if(e.parentPath.isUpdateExpression()){const t=e.parentPath,n=e.scope.generateDeclaredUidIdentifier("tmp"),r=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,i=[l("=",n,b(e.node.object,r?l("=",r,e.node.property):e.node.property,e.node.computed)),l("=",b(e.node.object,r?p(r.name):e.node.property,e.node.computed),u(e.parentPath.node.operator[0],p(n.name),_(1)))];e.parentPath.node.prefix||i.push(p(n.name)),t.replaceWith(A(i));const s=t.get("expressions.0.right"),o=t.get("expressions.1.left");return[s,o]}return[e];function t(e,t,n){return"="===e?l("=",t,n):u(e,t,n)}}(t)),[]).forEach(e=>{const t=e.node.computed?"":e.get("property").node.name,n=e.parentPath.isAssignmentExpression({left:e.node}),r=e.parentPath.isCallExpression({callee:e.node}),s=function(e,t,n){return F(e,`superprop_${t?"set":"get"}:${n||""}`,()=>{const r=[];let i;if(n)i=b(C(),p(n));else{const t=e.scope.generateUidIdentifier("prop");r.unshift(t),i=b(C(),p(t.name),!0)}if(t){const t=e.scope.generateUidIdentifier("value");r.push(t),i=l("=",i,p(t.name))}return a(r,i)})}(i,n,t),u=[];if(e.node.computed&&u.push(e.get("property").node),n){const t=e.parentPath.node.right;u.push(t)}const c=h(p(s),u);r?(e.parentPath.unshiftContainer("arguments",P()),e.replaceWith(b(c,p("call"))),o.push(e.parentPath.get("arguments.0"))):n?e.parentPath.replaceWith(c):e.replaceWith(c)})}let E;return(o.length>0||!t)&&(E=function(e,t){return F(e,"this",n=>{if(!t||!N(e))return P();e.traverse(D,{supers:new WeakSet,thisBinding:n})})}(i,s),(t||s&&N(i))&&(o.forEach(e=>{const t=e.isJSX()?g(E):p(E);t.loc=e.node.loc,e.replaceWith(t)}),t||(E=null))),{thisBinding:E,fnPath:e}}function N(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}const D=(0,o.merge)([{CallExpression(e,{supers:t,thisBinding:n}){e.get("callee").isSuper()&&(t.has(e.node)||(t.add(e.node),e.replaceWithMultiple([e.node,l("=",p(n),p("this"))])))}},i.default]);function F(e,t,n){const r="binding:"+t;let i=e.getData(r);if(!i){const s=e.scope.generateUidIdentifier(t);i=s.name,e.setData(r,i),e.scope.push({id:s,init:n(i)})}return i}const L=(0,o.merge)([{ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){"this"===e.node.name&&(e.parentPath.isJSXMemberExpression({object:e.node})||e.parentPath.isJSXOpeningElement({name:e.node}))&&t.push(e)},CallExpression(e,{superCalls:t}){e.get("callee").isSuper()&&t.push(e)},MemberExpression(e,{superProps:t}){e.get("object").isSuper()&&t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let n=e.scope;do{if(n.hasOwnBinding("arguments"))return void n.rename("arguments");if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break}while(n=n.parent);t.push(e)},MetaProperty(e,{newTargetPaths:t}){e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&t.push(e)}},i.default])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({node:e,parent:t,scope:n,id:i},s=!1,x=!1){if(e.id)return;if(!m(t)&&!p(t,{kind:"method"})||t.computed&&!d(t.key)){if(v(t)){if(i=t.id,h(i)&&!s){const t=n.parent.getBinding(i.name);if(t&&t.constant&&n.getBinding(i.name)===t)return e.id=a(i),void(e.id[o]=!0)}}else if(u(t,{operator:"="}))i=t.left;else if(!i)return}else i=t.key;let E;i&&d(i)?E=function(e){if(f(e))return"null";if(g(e))return`_${e.pattern}_${e.flags}`;if(y(e))return e.quasis.map(e=>e.value.raw).join("");if(void 0!==e.value)return e.value+"";return""}(i):i&&h(i)&&(E=i.name);if(void 0===E)return;if(!x&&c(e)&&/[\uD800-\uDFFF]/.test(E))return;E=b(E),(i=l(E))[o]=!0;return function(e,t,n,i){if(e.selfReference){if(!i.hasBinding(n.name)||i.hasGlobal(n.name)){if(!c(t))return;let e=w;t.generator&&(e=_);const s=e({FUNCTION:t,FUNCTION_ID:n,FUNCTION_KEY:i.generateUidIdentifier(n.name)}).expression,o=s.callee.body.body[0].params;for(let e=0,n=(0,r.default)(t);e<n;e++)o.push(i.generateUidIdentifier("x"));return s}i.rename(n.name)}t.id=n,i.getProgramParent().references[n.name]=!0}(function(e,t,n){const r={selfAssignment:!1,selfReference:!1,outerDeclar:n.getBindingIdentifier(t),references:[],name:t},i=n.getOwnBinding(t);i?"param"===i.kind&&(r.selfReference=!0):(r.outerDeclar||n.hasGlobal(t))&&n.traverse(e,S,r);return r}(e,E,n),e,i,n)||e};var r=n(608),i=n(43),s=n(1);const{NOT_LOCAL_BINDING:o,cloneNode:a,identifier:l,isAssignmentExpression:u,isFunction:c,isIdentifier:h,isLiteral:d,isNullLiteral:f,isObjectMethod:p,isObjectProperty:m,isRegExpLiteral:g,isTemplateLiteral:y,isVariableDeclarator:v,toBindingIdentifierName:b}=s,w=(0,i.default)("\n (function (FUNCTION_KEY) {\n function FUNCTION_ID() {\n return FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n }\n\n return FUNCTION_ID;\n })(FUNCTION)\n"),_=(0,i.default)("\n (function (FUNCTION_KEY) {\n function* FUNCTION_ID() {\n return yield* FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n };\n\n return FUNCTION_ID;\n })(FUNCTION)\n"),S={"ReferencedIdentifier|BindingIdentifier"(e,t){if(e.node.name!==t.name)return;e.scope.getBindingIdentifier(t.name)===t.outerDeclar&&(t.selfReference=!0,e.stop())}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.params;for(let e=0;e<t.length;e++){const n=t[e];if(i(n)||s(n))return e}return t.length};var r=n(1);const{isAssignmentPattern:i,isRestElement:s}=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=void 0;var r=n(1);const{assertExpressionStatement:i}=r;function s(e){return{code:e=>"/* @babel/template */;\n"+e,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}const o=s(e=>e.length>1?e:e[0]);t.smart=o;const a=s(e=>e);t.statements=a;const l=s(e=>{if(0===e.length)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]});t.statement=l;const u={code:e=>`(\n${e}\n)`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(0===u.unwrap(e).start)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{const[t]=e.body;return i(t),t.expression}};t.expression=u;t.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){const l=new WeakMap,u=new WeakMap,c=n||(0,r.validate)(null);return Object.assign((n,...o)=>{if("string"==typeof n){if(o.length>1)throw new Error("Unexpected extra params.");return a((0,i.default)(t,n,(0,r.merge)(c,(0,r.validate)(o[0]))))}if(Array.isArray(n)){let e=l.get(n);return e||(e=(0,s.default)(t,n,c),l.set(n,e)),a(e(o))}if("object"==typeof n&&n){if(o.length>0)throw new Error("Unexpected extra params.");return e(t,(0,r.merge)(c,(0,r.validate)(n)))}throw new Error("Unexpected template param "+typeof n)},{ast:(e,...n)=>{if("string"==typeof e){if(n.length>1)throw new Error("Unexpected extra params.");return(0,i.default)(t,e,(0,r.merge)((0,r.merge)(c,(0,r.validate)(n[0])),o))()}if(Array.isArray(e)){let i=u.get(e);return i||(i=(0,s.default)(t,e,(0,r.merge)(c,o)),u.set(e,i)),i(n)()}throw new Error("Unexpected template param "+typeof e)}})};var r=n(139),i=n(611),s=n(612);const o=(0,r.validate)({placeholderPattern:!1});function a(e){let t="";try{throw new Error}catch(e){e.stack&&(t=e.stack.split("\n").slice(3).join("\n"))}return n=>{try{return e(n)}catch(e){throw e.stack+="\n =============\n"+t,e}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){let o;return t=e.code(t),a=>{const l=(0,r.normalizeReplacements)(a);return o||(o=(0,i.default)(e,t,n)),e.unwrap((0,s.default)(o,l))}};var r=n(139),i=n(253),s=n(254)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){const{metadata:a,names:l}=function(e,t,n){let r,s,a,l="";do{l+="$";const u=o(t,l);r=u.names,s=new Set(r),a=(0,i.default)(e,e.code(u.code),{parser:n.parser,placeholderWhitelist:new Set(u.names.concat(n.placeholderWhitelist?Array.from(n.placeholderWhitelist):[])),placeholderPattern:n.placeholderPattern,preserveComments:n.preserveComments,syntacticPlaceholders:n.syntacticPlaceholders})}while(a.placeholders.some(e=>e.isDuplicate&&s.has(e.name)));return{metadata:a,names:r}}(e,t,n);return t=>{const n={};return t.forEach((e,t)=>{n[l[t]]=e}),t=>{const i=(0,r.normalizeReplacements)(t);return i&&Object.keys(i).forEach(e=>{if(Object.prototype.hasOwnProperty.call(n,e))throw new Error("Unexpected replacement overlap.")}),e.unwrap((0,s.default)(a,i?Object.assign(i,n):n))}}};var r=n(139),i=n(253),s=n(254);function o(e,t){const n=[];let r=e[0];for(let i=1;i<e.length;i++){const s=`${t}${i-1}`;n.push(s),r+=s+e[i]}return{names:n,code:r}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._guessExecutionStatusRelativeTo=function(e){const t={this:m(this),target:m(e)};if(t.target.node!==t.this.node)return this._guessExecutionStatusRelativeToDifferentFunctions(t.target);const n={target:e.getAncestry(),this:this.getAncestry()};if(n.target.indexOf(this)>=0)return"after";if(n.this.indexOf(e)>=0)return"before";let r;const i={target:0,this:0};for(;!r&&i.this<n.this.length;){const e=n.this[i.this];i.target=n.target.indexOf(e),i.target>=0?r=e:i.this++}if(!r)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(y(n.this,i.this-1)||y(n.target,i.target-1))return"unknown";const o={this:n.this[i.this-1],target:n.target[i.target-1]};if(o.target.listKey&&o.this.listKey&&o.target.container===o.this.container)return o.target.key>o.this.key?"before":"after";const a=s[r.type],l={this:a.indexOf(o.this.parentKey),target:a.indexOf(o.target.parentKey)};return l.target>l.this?"before":"after"},t._guessExecutionStatusRelativeToDifferentFunctions=function(e){if(!e.isFunctionDeclaration()||e.parentPath.isExportDeclaration())return"unknown";const t=e.scope.getBinding(e.node.id.name);if(!t.references)return"before";const n=t.referencePaths;let r;for(const t of n){if(!!t.find(t=>t.node===e.node))continue;if("callee"!==t.key||!t.parentPath.isCallExpression())return"unknown";if(v.has(t.node))continue;v.add(t.node);const n=this._guessExecutionStatusRelativeTo(t);if(v.delete(t.node),r&&r!==n)return"unknown";r=n}return r},t._resolve=function(e,t){if(t&&t.indexOf(this)>=0)return;if((t=t||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){const n=this.scope.getBinding(this.node.name);if(!n)return;if(!n.constant)return;if("module"===n.kind)return;if(n.path!==this){const r=n.path.resolve(e,t);if(this.find(e=>e.node===r.node))return;return r}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){const n=this.toComputedKey();if(!u(n))return;const r=n.value,i=this.get("object").resolve(e,t);if(i.isObjectExpression()){const n=i.get("properties");for(const i of n){if(!i.isProperty())continue;const n=i.get("key");let s=i.isnt("computed")&&n.isIdentifier({name:r});if(s=s||n.isLiteral({value:r}),s)return i.get("value").resolve(e,t)}}else if(i.isArrayExpression()&&!isNaN(+r)){const n=i.get("elements")[r];if(n)return n.resolve(e,t)}}}},t.canHaveVariableDeclarationOrExpression=function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},t.canSwapBetweenExpressionAndStatement=function(e){if("body"!==this.key||!this.parentPath.isArrowFunctionExpression())return!1;if(this.isExpression())return o(e);if(this.isBlockStatement())return a(e);return!1},t.equals=function(e,t){return this.node[e]===t},t.getSource=function(){const e=this.node;if(e.end){const t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""},t.has=f,t.is=void 0,t.isCompletionRecord=function(e){let t=this,n=!0;do{const r=t.container;if(t.isFunction()&&!n)return!!e;if(n=!1,Array.isArray(r)&&t.key!==r.length-1)return!1}while((t=t.parentPath)&&!t.isProgram());return!0},t.isConstantExpression=function(){if(this.isIdentifier()){const e=this.scope.getBinding(this.node.name);return!!e&&e.constant}if(this.isLiteral())return!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every(e=>e.isConstantExpression()));if(this.isUnaryExpression())return"void"===this.node.operator&&this.get("argument").isConstantExpression();if(this.isBinaryExpression())return this.get("left").isConstantExpression()&&this.get("right").isConstantExpression();return!1},t.isInStrictMode=function(){const e=this.isProgram()?this:this.parentPath;return!!e.find(e=>{if(e.isProgram({sourceType:"module"}))return!0;if(e.isClass())return!0;if(!e.isProgram()&&!e.isFunction())return!1;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement())return!1;const t=e.isFunction()?e.node.body:e.node;for(const e of t.directives)if("use strict"===e.value.value)return!0})},t.isNodeType=function(e){return h(this.type,e)},t.isStatementOrBlock=function(){return!this.parentPath.isLabeledStatement()&&!o(this.container)&&i.includes(this.key)},t.isStatic=function(){return this.scope.isStatic(this.node)},t.isnt=function(e){return!this.has(e)},t.matchesPattern=function(e,t){return d(this.node,e,t)},t.referencesImport=function(e,t){if(!this.isReferencedIdentifier()){if((this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?c(this.node.property,{value:t}):this.node.property.name===t)){const t=this.get("object");return t.isReferencedIdentifier()&&t.referencesImport(e,"*")}return!1}const n=this.scope.getBinding(this.node.name);if(!n||"module"!==n.kind)return!1;const r=n.path,i=r.parentPath;if(!i.isImportDeclaration())return!1;if(i.node.source.value!==e)return!1;if(!t)return!0;if(r.isImportDefaultSpecifier()&&"default"===t)return!0;if(r.isImportNamespaceSpecifier()&&"*"===t)return!0;if(r.isImportSpecifier()&&l(r.node.imported,{name:t}))return!0;return!1},t.resolve=function(e,t){return this._resolve(e,t)||this},t.willIMaybeExecuteBefore=function(e){return"after"!==this._guessExecutionStatusRelativeTo(e)};var r=n(1);const{STATEMENT_OR_BLOCK_KEYS:i,VISITOR_KEYS:s,isBlockStatement:o,isExpression:a,isIdentifier:l,isLiteral:u,isStringLiteral:c,isType:h,matchesPattern:d}=r;function f(e){const t=this.node&&this.node[e];return t&&Array.isArray(t)?!!t.length:!!t}const p=f;function m(e){return(e.scope.getFunctionParent()||e.scope.getProgramParent()).path}function g(e,t){switch(e){case"LogicalExpression":return"right"===t;case"ConditionalExpression":case"IfStatement":return"consequent"===t||"alternate"===t;case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return"body"===t;case"ForStatement":return"body"===t||"update"===t;case"SwitchStatement":return"cases"===t;case"TryStatement":return"handler"===t;case"AssignmentPattern":return"right"===t;case"OptionalMemberExpression":return"property"===t;case"OptionalCallExpression":return"arguments"===t;default:return!1}}function y(e,t){for(let n=0;n<t;n++){const t=e[n];if(g(t.parent.type,t.parentKey))return!0}return!1}t.is=p;const v=new WeakSet},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._call=function(e){if(!e)return!1;for(const t of e){if(!t)continue;const e=this.node;if(!e)return!0;const n=t.call(this.state,this,this.state);if(n&&"object"==typeof n&&"function"==typeof n.then)throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(n)throw new Error("Unexpected return value from visitor method "+t);if(this.node!==e)return!0;if(this._traverseFlags>0)return!0}return!1},t._getQueueContexts=function(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,e);)t=e.contexts;return t},t._resyncKey=function(){if(!this.container)return;if(this.node===this.container[this.key])return;if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node)return this.setKey(e)}else for(const e of Object.keys(this.container))if(this.container[e]===this.node)return this.setKey(e);this.key=null},t._resyncList=function(){if(!this.parent||!this.inList)return;const e=this.parent[this.listKey];if(this.container===e)return;this.container=e||null},t._resyncParent=function(){this.parentPath&&(this.parent=this.parentPath.node)},t._resyncRemoved=function(){null!=this.key&&this.container&&this.container[this.key]===this.node||this._markRemoved()},t.call=function(e){const t=this.opts;if(this.debug(e),this.node&&this._call(t[e]))return!0;if(this.node)return this._call(t[this.node.type]&&t[this.node.type][e]);return!1},t.isBlacklisted=t.isDenylisted=function(){var e;const t=null!=(e=this.opts.denylist)?e:this.opts.blacklist;return t&&t.indexOf(this.node.type)>-1},t.popContext=function(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)},t.pushContext=function(e){this.contexts.push(e),this.setContext(e)},t.requeue=function(e=this){if(e.removed)return;const t=this.contexts;for(const n of t)n.maybeQueue(e)},t.resync=function(){if(this.removed)return;this._resyncParent(),this._resyncList(),this._resyncKey()},t.setContext=function(e){null!=this.skipKeys&&(this.skipKeys={});this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts);return this.setScope(),this},t.setKey=function(e){var t;this.key=e,this.node=this.container[this.key],this.type=null==(t=this.node)?void 0:t.type},t.setScope=function(){if(this.opts&&this.opts.noScope)return;let e,t=this.parentPath;"key"===this.key&&t.isMethod()&&(t=t.parentPath);for(;t&&!e;){if(t.opts&&t.opts.noScope)return;e=t.scope,t=t.parentPath}this.scope=this.getScope(e),this.scope&&this.scope.init()},t.setup=function(e,t,n,r){this.listKey=n,this.container=t,this.parentPath=e||this.parentPath,this.setKey(r)},t.skip=function(){this.shouldSkip=!0},t.skipKey=function(e){null==this.skipKeys&&(this.skipKeys={});this.skipKeys[e]=!0},t.stop=function(){this._traverseFlags|=i.SHOULD_SKIP|i.SHOULD_STOP},t.visit=function(){if(!this.node)return!1;if(this.isDenylisted())return!1;if(this.opts.shouldSkip&&this.opts.shouldSkip(this))return!1;const e=this.context;if(this.shouldSkip||this.call("enter"))return this.debug("Skip..."),this.shouldStop;return s(this,e),this.debug("Recursing into..."),this.shouldStop=(0,r.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),s(this,e),this.call("exit"),this.shouldStop};var r=n(240),i=n(35);function s(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._assertUnremoved=function(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")},t._callRemovalHooks=function(){for(const e of r.hooks)if(e(this,this.parentPath))return!0},t._markRemoved=function(){this._traverseFlags|=s.SHOULD_SKIP|s.REMOVED,this.parent&&i.path.get(this.parent).delete(this.node);this.node=null},t._remove=function(){Array.isArray(this.container)?(this.container.splice(this.key,1),this.updateSiblingKeys(this.key,-1)):this._replaceWith(null)},t._removeFromScope=function(){const e=this.getBindingIdentifiers();Object.keys(e).forEach(e=>this.scope.removeBinding(e))},t.remove=function(){var e;this._assertUnremoved(),this.resync(),null!=(e=this.opts)&&e.noScope||this._removeFromScope();if(this._callRemovalHooks())return void this._markRemoved();this.shareCommentsWithSiblings(),this._remove(),this._markRemoved()};var r=n(616),i=n(53),s=n(35)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hooks=void 0;t.hooks=[function(e,t){if("test"===e.key&&(t.isWhile()||t.isSwitchCase())||"declaration"===e.key&&t.isExportDeclaration()||"body"===e.key&&t.isLabeledStatement()||"declarations"===e.listKey&&t.isVariableDeclaration()&&1===t.node.declarations.length||"expression"===e.key&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&1===t.node.expressions.length)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return"left"===e.key?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&("consequent"===e.key||"alternate"===e.key)||"body"===e.key&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",body:[]}),!0}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._containerInsert=function(e,t){this.updateSiblingKeys(e,t.length);const n=[];this.container.splice(e,0,...t);for(let r=0;r<t.length;r++){const t=e+r,i=this.getSibling(t);n.push(i),this.context&&this.context.queue&&i.pushContext(this.context)}const r=this._getQueueContexts();for(const e of n){e.setScope(),e.debug("Inserted.");for(const t of r)t.maybeQueue(e,!0)}return n},t._containerInsertAfter=function(e){return this._containerInsert(this.key+1,e)},t._containerInsertBefore=function(e){return this._containerInsert(this.key,e)},t._verifyNodeList=function(e){if(!e)return[];Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){const n=e[t];let r;if(n?"object"!=typeof n?r="contains a non-object node":n.type?n instanceof s.default&&(r="has a NodePath when it expected a raw object"):r="without a type":r="has falsy node",r){const e=Array.isArray(n)?"array":typeof n;throw new Error(`Node list ${r} with the index of ${t} and type of ${e}`)}}return e},t.hoist=function(e=this.scope){return new i.default(this,e).run()},t.insertAfter=function(e){if(this._assertUnremoved(),this.isSequenceExpression())return _(this.get("expressions")).insertAfter(e);const t=this._verifyNodeList(e),{parentPath:n}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||n.isExportNamedDeclaration()||n.isExportDefaultDeclaration()&&this.isDeclaration())return n.insertAfter(t.map(e=>g(e)?f(e):e));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!n.isJSXElement()||n.isForStatement()&&"init"===this.key){if(this.node){const e=this.node;let{scope:r}=this;if(r.path.isPattern())return l(e),this.replaceWith(h(a([],e),[])),this.get("callee.body").insertAfter(t),[this];if(function e(t){return v(t.parent)&&(_(t.parent.expressions)!==t.node||e(t.parentPath))}(this))t.unshift(e);else if(m(e)&&b(e.callee))t.unshift(e),t.push(w());else if(function(e,t){if(!p(e)||!y(e.left))return!1;const n=t.getBlockParent();return n.hasOwnBinding(e.left.name)&&n.getOwnBinding(e.left.name).constantViolations.length<=1}(e,r))t.unshift(e),t.push(d(e.left));else if(r.isPure(e,!0))t.push(e);else{n.isMethod({computed:!0,key:e})&&(r=r.parent);const i=r.generateDeclaredUidIdentifier();t.unshift(f(u("=",d(i),e))),t.push(f(d(i)))}}return this.replaceExpressionWithStatements(t)}if(Array.isArray(this.container))return this._containerInsertAfter(t);if(this.isStatementOrBlock()){const e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression);return this.replaceWith(c(n?[e]:[])),this.pushContainer("body",t)}throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},t.insertBefore=function(e){this._assertUnremoved();const t=this._verifyNodeList(e),{parentPath:n}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||n.isExportNamedDeclaration()||n.isExportDefaultDeclaration()&&this.isDeclaration())return n.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||n.isForStatement()&&"init"===this.key)return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return this._containerInsertBefore(t);if(this.isStatementOrBlock()){const e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression);return this.replaceWith(c(n?[e]:[])),this.unshiftContainer("body",t)}throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},t.pushContainer=function(e,t){this._assertUnremoved();const n=this._verifyNodeList(t),r=this.node[e];return s.default.get({parentPath:this,parent:this.node,container:r,listKey:e,key:r.length}).setContext(this.context).replaceWithMultiple(n)},t.unshiftContainer=function(e,t){this._assertUnremoved(),t=this._verifyNodeList(t);return s.default.get({parentPath:this,parent:this.node,container:this.node[e],listKey:e,key:0}).setContext(this.context)._containerInsertBefore(t)},t.updateSiblingKeys=function(e,t){if(!this.parent)return;const n=r.path.get(this.parent);for(const[,r]of n)r.key>=e&&(r.key+=t)};var r=n(53),i=n(618),s=n(35),o=n(1);const{arrowFunctionExpression:a,assertExpression:l,assignmentExpression:u,blockStatement:c,callExpression:h,cloneNode:d,expressionStatement:f,isAssignmentExpression:p,isCallExpression:m,isExpression:g,isIdentifier:y,isSequenceExpression:v,isSuper:b,thisExpression:w}=o;const _=e=>e[e.length-1]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(1),i=r;const{react:s}=r,{cloneNode:o,jsxExpressionContainer:a,variableDeclaration:l,variableDeclarator:u}=i,c={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&s.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if("this"===e.node.name){let n=e.scope;do{if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break}while(n=n.parent);n&&t.breakOnScopePaths.push(n.path)}const n=e.scope.getBinding(e.node.name);if(n){for(const r of n.constantViolations)if(r.scope!==n.path.scope)return t.mutableBinding=!0,void e.stop();n===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=n)}}};t.default=class{constructor(e,t){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=t,this.path=e,this.attachAfter=!1}isCompatibleScope(e){for(const t of Object.keys(this.bindings)){const n=this.bindings[t];if(!e.bindingIdentifierEquals(t,n.identifier))return!1}return!0}getCompatibleScopes(){let e=this.path.scope;do{if(!this.isCompatibleScope(e))break;if(this.scopes.push(e),this.breakOnScopePaths.indexOf(e.path)>=0)break}while(e=e.parent)}getAttachmentPath(){let e=this._getAttachmentPath();if(!e)return;let t=e.scope;if(t.path===e&&(t=e.scope.parent),t.path.isProgram()||t.path.isFunction())for(const n of Object.keys(this.bindings)){if(!t.hasOwnBinding(n))continue;const r=this.bindings[n];if("param"===r.kind||"params"===r.path.parentKey)continue;if(this.getAttachmentParentForPath(r.path).key>=e.key){this.attachAfter=!0,e=r.path;for(const t of r.constantViolations)this.getAttachmentParentForPath(t).key>e.key&&(e=t)}}return e}_getAttachmentPath(){const e=this.scopes.pop();if(e)if(e.path.isFunction()){if(!this.hasOwnParamBindings(e))return this.getNextScopeAttachmentParent();{if(this.scope===e)return;const t=e.path.get("body").get("body");for(let e=0;e<t.length;e++)if(!t[e].node._blockHoist)return t[e]}}else if(e.path.isProgram())return this.getNextScopeAttachmentParent()}getNextScopeAttachmentParent(){const e=this.scopes.pop();if(e)return this.getAttachmentParentForPath(e.path)}getAttachmentParentForPath(e){do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())return e}while(e=e.parentPath)}hasOwnParamBindings(e){for(const t of Object.keys(this.bindings)){if(!e.hasOwnBinding(t))continue;const n=this.bindings[t];if("param"===n.kind&&n.constant)return!0}return!1}run(){if(this.path.traverse(c,this),this.mutableBinding)return;this.getCompatibleScopes();const e=this.getAttachmentPath();if(!e)return;if(e.getFunctionParent()===this.path.getFunctionParent())return;let t=e.scope.generateUidIdentifier("ref");const n=u(t,this.path.node),r=this.attachAfter?"insertAfter":"insertBefore",[i]=e[r]([e.isVariableDeclarator()?n:l("var",[n])]),s=this.path.parentPath;return s.isJSXElement()&&this.path.container===s.node.children&&(t=a(t)),this.path.replaceWith(o(t)),e.isVariableDeclarator()?i.get("init"):i.get("declarations.0.init")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getKey=function(e,t){const n=this.node,i=n[e];return Array.isArray(i)?i.map((s,o)=>r.default.get({listKey:e,parentPath:this,parent:n,container:i,key:o}).setContext(t)):r.default.get({parentPath:this,parent:n,container:n,key:e}).setContext(t)},t._getPattern=function(e,t){let n=this;for(const r of e)n="."===r?n.parentPath:Array.isArray(n)?n[r]:n.get(r,t);return n},t.get=function(e,t=!0){!0===t&&(t=this.context);const n=e.split(".");return 1===n.length?this._getKey(e,t):this._getPattern(n,t)},t.getAllNextSiblings=function(){let e=this.key,t=this.getSibling(++e);const n=[];for(;t.node;)n.push(t),t=this.getSibling(++e);return n},t.getAllPrevSiblings=function(){let e=this.key,t=this.getSibling(--e);const n=[];for(;t.node;)n.push(t),t=this.getSibling(--e);return n},t.getBindingIdentifierPaths=function(e=!1,t=!1){const n=[this],r=Object.create(null);for(;n.length;){const i=n.shift();if(!i)continue;if(!i.node)continue;const o=s.keys[i.node.type];if(i.isIdentifier())if(e){(r[i.node.name]=r[i.node.name]||[]).push(i)}else r[i.node.name]=i;else if(i.isExportDeclaration()){const e=i.get("declaration");a(e)&&n.push(e)}else{if(t){if(i.isFunctionDeclaration()){n.push(i.get("id"));continue}if(i.isFunctionExpression())continue}if(o)for(let e=0;e<o.length;e++){const t=o[e],r=i.get(t);Array.isArray(r)?n.push(...r):r.node&&n.push(r)}}}return r},t.getBindingIdentifiers=function(e){return s(this.node,e)},t.getCompletionRecords=function(){return p(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1}).map(e=>e.path)},t.getNextSibling=function(){return this.getSibling(this.key+1)},t.getOpposite=function(){if("left"===this.key)return this.getSibling("right");if("right"===this.key)return this.getSibling("left");return null},t.getOuterBindingIdentifierPaths=function(e){return this.getBindingIdentifierPaths(e,!0)},t.getOuterBindingIdentifiers=function(e){return o(this.node,e)},t.getPrevSibling=function(){return this.getSibling(this.key-1)},t.getSibling=function(e){return r.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)};var r=n(35),i=n(1);const{getBindingIdentifiers:s,getOuterBindingIdentifiers:o,isDeclaration:a,numericLiteral:l,unaryExpression:u}=i;function c(e,t,n){return e&&t.push(...p(e,n)),t}function h(e){e.forEach(e=>{e.type=1})}function d(e,t){e.forEach(e=>{e.path.isBreakStatement({label:null})&&(t?e.path.replaceWith(u("void",l(0))):e.path.remove())})}function f(e,t){const n=[];if(t.canHaveBreak){let r=[];for(let i=0;i<e.length;i++){const s=e[i],o=Object.assign({},t,{inCaseClause:!1});s.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?o.shouldPopulateBreak=!0:o.shouldPopulateBreak=!1;const a=p(s,o);if(a.length>0&&a.every(e=>1===e.type)){r.length>0&&a.every(e=>e.path.isBreakStatement({label:null}))?(h(r),n.push(...r),r.some(e=>e.path.isDeclaration())&&(n.push(...a),d(a,!0)),d(a,!1)):(n.push(...a),t.shouldPopulateBreak||d(a,!0));break}if(i===e.length-1)n.push(...a);else{r=[];for(let e=0;e<a.length;e++){const t=a[e];1===t.type&&n.push(t),0===t.type&&r.push(t)}}}}else if(e.length)for(let r=e.length-1;r>=0;r--){const i=p(e[r],t);if(i.length>1||1===i.length&&!i[0].path.isVariableDeclaration()){n.push(...i);break}}return n}function p(e,t){let n=[];if(e.isIfStatement())n=c(e.get("consequent"),n,t),n=c(e.get("alternate"),n,t);else{if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return c(e.get("body"),n,t);if(e.isProgram()||e.isBlockStatement())return f(e.get("body"),t);if(e.isFunction())return p(e.get("body"),t);if(e.isTryStatement())n=c(e.get("block"),n,t),n=c(e.get("handler"),n,t);else{if(e.isCatchClause())return c(e.get("body"),n,t);if(e.isSwitchStatement())return function(e,t,n){let r=[];for(let i=0;i<e.length;i++){const s=p(e[i],n),o=[],a=[];for(const e of s)0===e.type&&o.push(e),1===e.type&&a.push(e);o.length&&(r=o),t.push(...a)}return t.push(...r),t}(e.get("cases"),n,t);if(e.isSwitchCase())return f(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0});e.isBreakStatement()?n.push(function(e){return{type:1,path:e}}(e)):n.push(function(e){return{type:0,path:e}}(e))}}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addComment=function(e,t,n){i(this.node,e,t,n)},t.addComments=function(e,t){s(this.node,e,t)},t.shareCommentsWithSiblings=function(){if("string"==typeof this.key)return;const e=this.node;if(!e)return;const t=e.trailingComments,n=e.leadingComments;if(!t&&!n)return;const r=this.getSibling(this.key-1),i=this.getSibling(this.key+1),s=Boolean(r.node),o=Boolean(i.node);s&&!o?r.addComments("trailing",t):o&&!s&&i.addComments("leading",n)};var r=n(1);const{addComment:i,addComments:s}=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,t,n=TypeError){return new n(t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(43),i=n(623);const s=Object.assign({__proto__:null},i.default);var o=s;t.default=o;const a=e=>t=>({minVersion:e,ast:()=>r.default.program.ast(t)});s.AwaitValue=a("7.0.0-beta.0")`
70
+ */(function(){var s="Expected a function",o="__lodash_placeholder__",a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",u="[object Array]",c="[object Boolean]",h="[object Date]",d="[object Error]",f="[object Function]",p="[object GeneratorFunction]",m="[object Map]",g="[object Number]",y="[object Object]",v="[object RegExp]",b="[object Set]",w="[object String]",_="[object Symbol]",S="[object WeakMap]",x="[object ArrayBuffer]",E="[object DataView]",A="[object Float32Array]",T="[object Float64Array]",M="[object Int8Array]",C="[object Int16Array]",P="[object Int32Array]",k="[object Uint8Array]",O="[object Uint16Array]",I="[object Uint32Array]",R=/\b__p \+= '';/g,N=/\b(__p \+=) '' \+/g,D=/(__e\(.*?\)|\b__t\)) \+\n'';/g,F=/&(?:amp|lt|gt|quot|#39);/g,L=/[&<>"']/g,B=RegExp(F.source),j=RegExp(L.source),$=/<%-([\s\S]+?)%>/g,U=/<%([\s\S]+?)%>/g,V=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,z=/^\w*$/,K=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,H=/[\\^$.*+?()[\]{}|]/g,q=RegExp(H.source),G=/^\s+/,Y=/\s/,J=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,X=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/[()=,{}\[\]\/\s]/,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,se=/^0b[01]+$/i,oe=/^\[object .+?Constructor\]$/,ae=/^0o[0-7]+$/i,le=/^(?:0|[1-9]\d*)$/,ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,he=/['\n\r\u2028\u2029\\]/g,de="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pe="[\\ud800-\\udfff]",me="["+fe+"]",ge="["+de+"]",ye="\\d+",ve="[\\u2700-\\u27bf]",be="[a-z\\xdf-\\xf6\\xf8-\\xff]",we="[^\\ud800-\\udfff"+fe+ye+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_e="\\ud83c[\\udffb-\\udfff]",Se="[^\\ud800-\\udfff]",xe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ee="[\\ud800-\\udbff][\\udc00-\\udfff]",Ae="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Te="(?:"+be+"|"+we+")",Me="(?:"+Ae+"|"+we+")",Ce="(?:"+ge+"|"+_e+")"+"?",Pe="[\\ufe0e\\ufe0f]?"+Ce+("(?:\\u200d(?:"+[Se,xe,Ee].join("|")+")[\\ufe0e\\ufe0f]?"+Ce+")*"),ke="(?:"+[ve,xe,Ee].join("|")+")"+Pe,Oe="(?:"+[Se+ge+"?",ge,xe,Ee,pe].join("|")+")",Ie=RegExp("['’]","g"),Re=RegExp(ge,"g"),Ne=RegExp(_e+"(?="+_e+")|"+Oe+Pe,"g"),De=RegExp([Ae+"?"+be+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[me,Ae,"$"].join("|")+")",Me+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[me,Ae+Te,"$"].join("|")+")",Ae+"?"+Te+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Ae+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ye,ke].join("|"),"g"),Fe=RegExp("[\\u200d\\ud800-\\udfff"+de+"\\ufe0e\\ufe0f]"),Le=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Be=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],je=-1,$e={};$e[A]=$e[T]=$e[M]=$e[C]=$e[P]=$e[k]=$e["[object Uint8ClampedArray]"]=$e[O]=$e[I]=!0,$e[l]=$e[u]=$e[x]=$e[c]=$e[E]=$e[h]=$e[d]=$e[f]=$e[m]=$e[g]=$e[y]=$e[v]=$e[b]=$e[w]=$e[S]=!1;var Ue={};Ue[l]=Ue[u]=Ue[x]=Ue[E]=Ue[c]=Ue[h]=Ue[A]=Ue[T]=Ue[M]=Ue[C]=Ue[P]=Ue[m]=Ue[g]=Ue[y]=Ue[v]=Ue[b]=Ue[w]=Ue[_]=Ue[k]=Ue["[object Uint8ClampedArray]"]=Ue[O]=Ue[I]=!0,Ue[d]=Ue[f]=Ue[S]=!1;var Ve={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},We=parseFloat,ze=parseInt,Ke="object"==typeof e&&e&&e.Object===Object&&e,He="object"==typeof self&&self&&self.Object===Object&&self,qe=Ke||He||Function("return this")(),Ge=t&&!t.nodeType&&t,Ye=Ge&&"object"==typeof r&&r&&!r.nodeType&&r,Je=Ye&&Ye.exports===Ge,Xe=Je&&Ke.process,Ze=function(){try{var e=Ye&&Ye.require&&Ye.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(e){}}(),Qe=Ze&&Ze.isArrayBuffer,et=Ze&&Ze.isDate,tt=Ze&&Ze.isMap,nt=Ze&&Ze.isRegExp,rt=Ze&&Ze.isSet,it=Ze&&Ze.isTypedArray;function st(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ot(e,t,n,r){for(var i=-1,s=null==e?0:e.length;++i<s;){var o=e[i];t(r,o,n(o),e)}return r}function at(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ut(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function ct(e,t){for(var n=-1,r=null==e?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}function ht(e,t){return!!(null==e?0:e.length)&&_t(e,t,0)>-1}function dt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function ft(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function pt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function mt(e,t,n,r){var i=-1,s=null==e?0:e.length;for(r&&s&&(n=e[++i]);++i<s;)n=t(n,e[i],i,e);return n}function gt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function yt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var vt=At("length");function bt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function wt(e,t,n,r){for(var i=e.length,s=n+(r?1:-1);r?s--:++s<i;)if(t(e[s],s,e))return s;return-1}function _t(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):wt(e,xt,n)}function St(e,t,n,r){for(var i=n-1,s=e.length;++i<s;)if(r(e[i],t))return i;return-1}function xt(e){return e!=e}function Et(e,t){var n=null==e?0:e.length;return n?Ct(e,t)/n:NaN}function At(e){return function(t){return null==t?void 0:t[e]}}function Tt(e){return function(t){return null==e?void 0:e[t]}}function Mt(e,t,n,r,i){return i(e,(function(e,i,s){n=r?(r=!1,e):t(n,e,i,s)})),n}function Ct(e,t){for(var n,r=-1,i=e.length;++r<i;){var s=t(e[r]);void 0!==s&&(n=void 0===n?s:n+s)}return n}function Pt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function kt(e){return e?e.slice(0,Gt(e)+1).replace(G,""):e}function Ot(e){return function(t){return e(t)}}function It(e,t){return ft(t,(function(t){return e[t]}))}function Rt(e,t){return e.has(t)}function Nt(e,t){for(var n=-1,r=e.length;++n<r&&_t(t,e[n],0)>-1;);return n}function Dt(e,t){for(var n=e.length;n--&&_t(t,e[n],0)>-1;);return n}function Ft(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Lt=Tt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Bt=Tt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function jt(e){return"\\"+Ve[e]}function $t(e){return Fe.test(e)}function Ut(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Vt(e,t){return function(n){return e(t(n))}}function Wt(e,t){for(var n=-1,r=e.length,i=0,s=[];++n<r;){var a=e[n];a!==t&&a!==o||(e[n]=o,s[i++]=n)}return s}function zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Kt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Ht(e){return $t(e)?function(e){var t=Ne.lastIndex=0;for(;Ne.test(e);)++t;return t}(e):vt(e)}function qt(e){return $t(e)?function(e){return e.match(Ne)||[]}(e):function(e){return e.split("")}(e)}function Gt(e){for(var t=e.length;t--&&Y.test(e.charAt(t)););return t}var Yt=Tt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Jt=function e(t){var n,r=(t=null==t?qe:Jt.defaults(qe.Object(),t,Jt.pick(qe,Be))).Array,i=t.Date,Y=t.Error,de=t.Function,fe=t.Math,pe=t.Object,me=t.RegExp,ge=t.String,ye=t.TypeError,ve=r.prototype,be=de.prototype,we=pe.prototype,_e=t["__core-js_shared__"],Se=be.toString,xe=we.hasOwnProperty,Ee=0,Ae=(n=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Te=we.toString,Me=Se.call(pe),Ce=qe._,Pe=me("^"+Se.call(xe).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ke=Je?t.Buffer:void 0,Oe=t.Symbol,Ne=t.Uint8Array,Fe=ke?ke.allocUnsafe:void 0,Ve=Vt(pe.getPrototypeOf,pe),Ke=pe.create,He=we.propertyIsEnumerable,Ge=ve.splice,Ye=Oe?Oe.isConcatSpreadable:void 0,Xe=Oe?Oe.iterator:void 0,Ze=Oe?Oe.toStringTag:void 0,vt=function(){try{var e=es(pe,"defineProperty");return e({},"",{}),e}catch(e){}}(),Tt=t.clearTimeout!==qe.clearTimeout&&t.clearTimeout,Xt=i&&i.now!==qe.Date.now&&i.now,Zt=t.setTimeout!==qe.setTimeout&&t.setTimeout,Qt=fe.ceil,en=fe.floor,tn=pe.getOwnPropertySymbols,nn=ke?ke.isBuffer:void 0,rn=t.isFinite,sn=ve.join,on=Vt(pe.keys,pe),an=fe.max,ln=fe.min,un=i.now,cn=t.parseInt,hn=fe.random,dn=ve.reverse,fn=es(t,"DataView"),pn=es(t,"Map"),mn=es(t,"Promise"),gn=es(t,"Set"),yn=es(t,"WeakMap"),vn=es(pe,"create"),bn=yn&&new yn,wn={},_n=Ms(fn),Sn=Ms(pn),xn=Ms(mn),En=Ms(gn),An=Ms(yn),Tn=Oe?Oe.prototype:void 0,Mn=Tn?Tn.valueOf:void 0,Cn=Tn?Tn.toString:void 0;function Pn(e){if(Ko(e)&&!No(e)&&!(e instanceof Rn)){if(e instanceof In)return e;if(xe.call(e,"__wrapped__"))return Cs(e)}return new In(e)}var kn=function(){function e(){}return function(t){if(!zo(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function On(){}function In(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Rn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Dn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Fn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ln(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Fn;++t<n;)this.add(e[t])}function Bn(e){var t=this.__data__=new Dn(e);this.size=t.size}function jn(e,t){var n=No(e),r=!n&&Ro(e),i=!n&&!r&&Bo(e),s=!n&&!r&&!i&&Qo(e),o=n||r||i||s,a=o?Pt(e.length,ge):[],l=a.length;for(var u in e)!t&&!xe.call(e,u)||o&&("length"==u||i&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||as(u,l))||a.push(u);return a}function $n(e){var t=e.length;return t?e[Lr(0,t-1)]:void 0}function Un(e,t){return Es(vi(e),Jn(t,0,e.length))}function Vn(e){return Es(vi(e))}function Wn(e,t,n){(void 0!==n&&!ko(e[t],n)||void 0===n&&!(t in e))&&Gn(e,t,n)}function zn(e,t,n){var r=e[t];xe.call(e,t)&&ko(r,n)&&(void 0!==n||t in e)||Gn(e,t,n)}function Kn(e,t){for(var n=e.length;n--;)if(ko(e[n][0],t))return n;return-1}function Hn(e,t,n,r){return tr(e,(function(e,i,s){t(r,e,n(e),s)})),r}function qn(e,t){return e&&bi(t,_a(t),e)}function Gn(e,t,n){"__proto__"==t&&vt?vt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Yn(e,t){for(var n=-1,i=t.length,s=r(i),o=null==e;++n<i;)s[n]=o?void 0:ga(e,t[n]);return s}function Jn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Xn(e,t,n,r,i,s){var o,a=1&t,u=2&t,d=4&t;if(n&&(o=i?n(e,r,i,s):n(e)),void 0!==o)return o;if(!zo(e))return e;var S=No(e);if(S){if(o=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&xe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!a)return vi(e,o)}else{var R=rs(e),N=R==f||R==p;if(Bo(e))return di(e,a);if(R==y||R==l||N&&!i){if(o=u||N?{}:ss(e),!a)return u?function(e,t){return bi(e,ns(e),t)}(e,function(e,t){return e&&bi(t,Sa(t),e)}(o,e)):function(e,t){return bi(e,ts(e),t)}(e,qn(o,e))}else{if(!Ue[R])return i?e:{};o=function(e,t,n){var r=e.constructor;switch(t){case x:return fi(e);case c:case h:return new r(+e);case E:return function(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case A:case T:case M:case C:case P:case k:case"[object Uint8ClampedArray]":case O:case I:return pi(e,n);case m:return new r;case g:case w:return new r(e);case v:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case b:return new r;case _:return i=e,Mn?pe(Mn.call(i)):{}}var i}(e,R,a)}}s||(s=new Bn);var D=s.get(e);if(D)return D;s.set(e,o),Jo(e)?e.forEach((function(r){o.add(Xn(r,t,n,r,e,s))})):Ho(e)&&e.forEach((function(r,i){o.set(i,Xn(r,t,n,i,e,s))}));var F=S?void 0:(d?u?qi:Hi:u?Sa:_a)(e);return at(F||e,(function(r,i){F&&(r=e[i=r]),zn(o,i,Xn(r,t,n,i,e,s))})),o}function Zn(e,t,n){var r=n.length;if(null==e)return!r;for(e=pe(e);r--;){var i=n[r],s=t[i],o=e[i];if(void 0===o&&!(i in e)||!s(o))return!1}return!0}function Qn(e,t,n){if("function"!=typeof e)throw new ye(s);return ws((function(){e.apply(void 0,n)}),t)}function er(e,t,n,r){var i=-1,s=ht,o=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=ft(t,Ot(n))),r?(s=dt,o=!1):t.length>=200&&(s=Rt,o=!1,t=new Ln(t));e:for(;++i<a;){var c=e[i],h=null==n?c:n(c);if(c=r||0!==c?c:0,o&&h==h){for(var d=u;d--;)if(t[d]===h)continue e;l.push(c)}else s(t,h,r)||l.push(c)}return l}Pn.templateSettings={escape:$,evaluate:U,interpolate:V,variable:"",imports:{_:Pn}},Pn.prototype=On.prototype,Pn.prototype.constructor=Pn,In.prototype=kn(On.prototype),In.prototype.constructor=In,Rn.prototype=kn(On.prototype),Rn.prototype.constructor=Rn,Nn.prototype.clear=function(){this.__data__=vn?vn(null):{},this.size=0},Nn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Nn.prototype.get=function(e){var t=this.__data__;if(vn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return xe.call(t,e)?t[e]:void 0},Nn.prototype.has=function(e){var t=this.__data__;return vn?void 0!==t[e]:xe.call(t,e)},Nn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=vn&&void 0===t?"__lodash_hash_undefined__":t,this},Dn.prototype.clear=function(){this.__data__=[],this.size=0},Dn.prototype.delete=function(e){var t=this.__data__,n=Kn(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,!0)},Dn.prototype.get=function(e){var t=this.__data__,n=Kn(t,e);return n<0?void 0:t[n][1]},Dn.prototype.has=function(e){return Kn(this.__data__,e)>-1},Dn.prototype.set=function(e,t){var n=this.__data__,r=Kn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Fn.prototype.clear=function(){this.size=0,this.__data__={hash:new Nn,map:new(pn||Dn),string:new Nn}},Fn.prototype.delete=function(e){var t=Zi(this,e).delete(e);return this.size-=t?1:0,t},Fn.prototype.get=function(e){return Zi(this,e).get(e)},Fn.prototype.has=function(e){return Zi(this,e).has(e)},Fn.prototype.set=function(e,t){var n=Zi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ln.prototype.add=Ln.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Ln.prototype.has=function(e){return this.__data__.has(e)},Bn.prototype.clear=function(){this.__data__=new Dn,this.size=0},Bn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Bn.prototype.get=function(e){return this.__data__.get(e)},Bn.prototype.has=function(e){return this.__data__.has(e)},Bn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Dn){var r=n.__data__;if(!pn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Fn(r)}return n.set(e,t),this.size=n.size,this};var tr=Si(ur),nr=Si(cr,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function ir(e,t,n){for(var r=-1,i=e.length;++r<i;){var s=e[r],o=t(s);if(null!=o&&(void 0===a?o==o&&!Zo(o):n(o,a)))var a=o,l=s}return l}function sr(e,t){var n=[];return tr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function or(e,t,n,r,i){var s=-1,o=e.length;for(n||(n=os),i||(i=[]);++s<o;){var a=e[s];t>0&&n(a)?t>1?or(a,t-1,n,r,i):pt(i,a):r||(i[i.length]=a)}return i}var ar=xi(),lr=xi(!0);function ur(e,t){return e&&ar(e,t,_a)}function cr(e,t){return e&&lr(e,t,_a)}function hr(e,t){return ct(t,(function(t){return Uo(e[t])}))}function dr(e,t){for(var n=0,r=(t=li(t,e)).length;null!=e&&n<r;)e=e[Ts(t[n++])];return n&&n==r?e:void 0}function fr(e,t,n){var r=t(e);return No(e)?r:pt(r,n(e))}function pr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ze&&Ze in pe(e)?function(e){var t=xe.call(e,Ze),n=e[Ze];try{e[Ze]=void 0;var r=!0}catch(e){}var i=Te.call(e);r&&(t?e[Ze]=n:delete e[Ze]);return i}(e):function(e){return Te.call(e)}(e)}function mr(e,t){return e>t}function gr(e,t){return null!=e&&xe.call(e,t)}function yr(e,t){return null!=e&&t in pe(e)}function vr(e,t,n){for(var i=n?dt:ht,s=e[0].length,o=e.length,a=o,l=r(o),u=1/0,c=[];a--;){var h=e[a];a&&t&&(h=ft(h,Ot(t))),u=ln(h.length,u),l[a]=!n&&(t||s>=120&&h.length>=120)?new Ln(a&&h):void 0}h=e[0];var d=-1,f=l[0];e:for(;++d<s&&c.length<u;){var p=h[d],m=t?t(p):p;if(p=n||0!==p?p:0,!(f?Rt(f,m):i(c,m,n))){for(a=o;--a;){var g=l[a];if(!(g?Rt(g,m):i(e[a],m,n)))continue e}f&&f.push(m),c.push(p)}}return c}function br(e,t,n){var r=null==(e=gs(e,t=li(t,e)))?e:e[Ts(js(t))];return null==r?void 0:st(r,e,n)}function wr(e){return Ko(e)&&pr(e)==l}function _r(e,t,n,r,i){return e===t||(null==e||null==t||!Ko(e)&&!Ko(t)?e!=e&&t!=t:function(e,t,n,r,i,s){var o=No(e),a=No(t),f=o?u:rs(e),p=a?u:rs(t),S=(f=f==l?y:f)==y,A=(p=p==l?y:p)==y,T=f==p;if(T&&Bo(e)){if(!Bo(t))return!1;o=!0,S=!1}if(T&&!S)return s||(s=new Bn),o||Qo(e)?zi(e,t,n,r,i,s):function(e,t,n,r,i,s,o){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!s(new Ne(e),new Ne(t)));case c:case h:case g:return ko(+e,+t);case d:return e.name==t.name&&e.message==t.message;case v:case w:return e==t+"";case m:var a=Ut;case b:var l=1&r;if(a||(a=zt),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=2,o.set(e,t);var f=zi(a(e),a(t),r,i,s,o);return o.delete(e),f;case _:if(Mn)return Mn.call(e)==Mn.call(t)}return!1}(e,t,f,n,r,i,s);if(!(1&n)){var M=S&&xe.call(e,"__wrapped__"),C=A&&xe.call(t,"__wrapped__");if(M||C){var P=M?e.value():e,k=C?t.value():t;return s||(s=new Bn),i(P,k,n,r,s)}}if(!T)return!1;return s||(s=new Bn),function(e,t,n,r,i,s){var o=1&n,a=Hi(e),l=a.length,u=Hi(t).length;if(l!=u&&!o)return!1;var c=l;for(;c--;){var h=a[c];if(!(o?h in t:xe.call(t,h)))return!1}var d=s.get(e),f=s.get(t);if(d&&f)return d==t&&f==e;var p=!0;s.set(e,t),s.set(t,e);var m=o;for(;++c<l;){h=a[c];var g=e[h],y=t[h];if(r)var v=o?r(y,g,h,t,e,s):r(g,y,h,e,t,s);if(!(void 0===v?g===y||i(g,y,n,r,s):v)){p=!1;break}m||(m="constructor"==h)}if(p&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(p=!1)}return s.delete(e),s.delete(t),p}(e,t,n,r,i,s)}(e,t,n,r,_r,i))}function Sr(e,t,n,r){var i=n.length,s=i,o=!r;if(null==e)return!s;for(e=pe(e);i--;){var a=n[i];if(o&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<s;){var l=(a=n[i])[0],u=e[l],c=a[1];if(o&&a[2]){if(void 0===u&&!(l in e))return!1}else{var h=new Bn;if(r)var d=r(u,c,l,e,t,h);if(!(void 0===d?_r(c,u,3,r,h):d))return!1}}return!0}function xr(e){return!(!zo(e)||(t=e,Ae&&Ae in t))&&(Uo(e)?Pe:oe).test(Ms(e));var t}function Er(e){return"function"==typeof e?e:null==e?qa:"object"==typeof e?No(e)?kr(e[0],e[1]):Pr(e):nl(e)}function Ar(e){if(!ds(e))return on(e);var t=[];for(var n in pe(e))xe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Tr(e){if(!zo(e))return function(e){var t=[];if(null!=e)for(var n in pe(e))t.push(n);return t}(e);var t=ds(e),n=[];for(var r in e)("constructor"!=r||!t&&xe.call(e,r))&&n.push(r);return n}function Mr(e,t){return e<t}function Cr(e,t){var n=-1,i=Fo(e)?r(e.length):[];return tr(e,(function(e,r,s){i[++n]=t(e,r,s)})),i}function Pr(e){var t=Qi(e);return 1==t.length&&t[0][2]?ps(t[0][0],t[0][1]):function(n){return n===e||Sr(n,e,t)}}function kr(e,t){return us(e)&&fs(t)?ps(Ts(e),t):function(n){var r=ga(n,e);return void 0===r&&r===t?ya(n,e):_r(t,r,3)}}function Or(e,t,n,r,i){e!==t&&ar(t,(function(s,o){if(i||(i=new Bn),zo(s))!function(e,t,n,r,i,s,o){var a=vs(e,n),l=vs(t,n),u=o.get(l);if(u)return void Wn(e,n,u);var c=s?s(a,l,n+"",e,t,o):void 0,h=void 0===c;if(h){var d=No(l),f=!d&&Bo(l),p=!d&&!f&&Qo(l);c=l,d||f||p?No(a)?c=a:Lo(a)?c=vi(a):f?(h=!1,c=di(l,!0)):p?(h=!1,c=pi(l,!0)):c=[]:Go(l)||Ro(l)?(c=a,Ro(a)?c=aa(a):zo(a)&&!Uo(a)||(c=ss(l))):h=!1}h&&(o.set(l,c),i(c,l,r,s,o),o.delete(l));Wn(e,n,c)}(e,t,o,n,Or,r,i);else{var a=r?r(vs(e,o),s,o+"",e,t,i):void 0;void 0===a&&(a=s),Wn(e,o,a)}}),Sa)}function Ir(e,t){var n=e.length;if(n)return as(t+=t<0?n:0,n)?e[t]:void 0}function Rr(e,t,n){t=t.length?ft(t,(function(e){return No(e)?function(t){return dr(t,1===e.length?e[0]:e)}:e})):[qa];var r=-1;return t=ft(t,Ot(Xi())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Cr(e,(function(e,n,i){return{criteria:ft(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,s=t.criteria,o=i.length,a=n.length;for(;++r<o;){var l=mi(i[r],s[r]);if(l){if(r>=a)return l;var u=n[r];return l*("desc"==u?-1:1)}}return e.index-t.index}(e,t,n)}))}function Nr(e,t,n){for(var r=-1,i=t.length,s={};++r<i;){var o=t[r],a=dr(e,o);n(a,o)&&Vr(s,li(o,e),a)}return s}function Dr(e,t,n,r){var i=r?St:_t,s=-1,o=t.length,a=e;for(e===t&&(t=vi(t)),n&&(a=ft(e,Ot(n)));++s<o;)for(var l=0,u=t[s],c=n?n(u):u;(l=i(a,c,l,r))>-1;)a!==e&&Ge.call(a,l,1),Ge.call(e,l,1);return e}function Fr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==s){var s=i;as(i)?Ge.call(e,i,1):ei(e,i)}}return e}function Lr(e,t){return e+en(hn()*(t-e+1))}function Br(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=en(t/2))&&(e+=e)}while(t);return n}function jr(e,t){return _s(ms(e,t,qa),e+"")}function $r(e){return $n(ka(e))}function Ur(e,t){var n=ka(e);return Es(n,Jn(t,0,n.length))}function Vr(e,t,n,r){if(!zo(e))return e;for(var i=-1,s=(t=li(t,e)).length,o=s-1,a=e;null!=a&&++i<s;){var l=Ts(t[i]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=o){var c=a[l];void 0===(u=r?r(c,l,a):void 0)&&(u=zo(c)?c:as(t[i+1])?[]:{})}zn(a,l,u),a=a[l]}return e}var Wr=bn?function(e,t){return bn.set(e,t),e}:qa,zr=vt?function(e,t){return vt(e,"toString",{configurable:!0,enumerable:!1,value:za(t),writable:!0})}:qa;function Kr(e){return Es(ka(e))}function Hr(e,t,n){var i=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(n=n>s?s:n)<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var o=r(s);++i<s;)o[i]=e[i+t];return o}function qr(e,t){var n;return tr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Gr(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var s=r+i>>>1,o=e[s];null!==o&&!Zo(o)&&(n?o<=t:o<t)?r=s+1:i=s}return i}return Yr(e,t,qa,n)}function Yr(e,t,n,r){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var o=(t=n(t))!=t,a=null===t,l=Zo(t),u=void 0===t;i<s;){var c=en((i+s)/2),h=n(e[c]),d=void 0!==h,f=null===h,p=h==h,m=Zo(h);if(o)var g=r||p;else g=u?p&&(r||d):a?p&&d&&(r||!f):l?p&&d&&!f&&(r||!m):!f&&!m&&(r?h<=t:h<t);g?i=c+1:s=c}return ln(s,4294967294)}function Jr(e,t){for(var n=-1,r=e.length,i=0,s=[];++n<r;){var o=e[n],a=t?t(o):o;if(!n||!ko(a,l)){var l=a;s[i++]=0===o?0:o}}return s}function Xr(e){return"number"==typeof e?e:Zo(e)?NaN:+e}function Zr(e){if("string"==typeof e)return e;if(No(e))return ft(e,Zr)+"";if(Zo(e))return Cn?Cn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Qr(e,t,n){var r=-1,i=ht,s=e.length,o=!0,a=[],l=a;if(n)o=!1,i=dt;else if(s>=200){var u=t?null:Bi(e);if(u)return zt(u);o=!1,i=Rt,l=new Ln}else l=t?[]:a;e:for(;++r<s;){var c=e[r],h=t?t(c):c;if(c=n||0!==c?c:0,o&&h==h){for(var d=l.length;d--;)if(l[d]===h)continue e;t&&l.push(h),a.push(c)}else i(l,h,n)||(l!==a&&l.push(h),a.push(c))}return a}function ei(e,t){return null==(e=gs(e,t=li(t,e)))||delete e[Ts(js(t))]}function ti(e,t,n,r){return Vr(e,t,n(dr(e,t)),r)}function ni(e,t,n,r){for(var i=e.length,s=r?i:-1;(r?s--:++s<i)&&t(e[s],s,e););return n?Hr(e,r?0:s,r?s+1:i):Hr(e,r?s+1:0,r?i:s)}function ri(e,t){var n=e;return n instanceof Rn&&(n=n.value()),mt(t,(function(e,t){return t.func.apply(t.thisArg,pt([e],t.args))}),n)}function ii(e,t,n){var i=e.length;if(i<2)return i?Qr(e[0]):[];for(var s=-1,o=r(i);++s<i;)for(var a=e[s],l=-1;++l<i;)l!=s&&(o[s]=er(o[s]||a,e[l],t,n));return Qr(or(o,1),t,n)}function si(e,t,n){for(var r=-1,i=e.length,s=t.length,o={};++r<i;){var a=r<s?t[r]:void 0;n(o,e[r],a)}return o}function oi(e){return Lo(e)?e:[]}function ai(e){return"function"==typeof e?e:qa}function li(e,t){return No(e)?e:us(e,t)?[e]:As(la(e))}var ui=jr;function ci(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Hr(e,t,n)}var hi=Tt||function(e){return qe.clearTimeout(e)};function di(e,t){if(t)return e.slice();var n=e.length,r=Fe?Fe(n):new e.constructor(n);return e.copy(r),r}function fi(e){var t=new e.constructor(e.byteLength);return new Ne(t).set(new Ne(e)),t}function pi(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function mi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,s=Zo(e),o=void 0!==t,a=null===t,l=t==t,u=Zo(t);if(!a&&!u&&!s&&e>t||s&&o&&l&&!a&&!u||r&&o&&l||!n&&l||!i)return 1;if(!r&&!s&&!u&&e<t||u&&n&&i&&!r&&!s||a&&n&&i||!o&&i||!l)return-1}return 0}function gi(e,t,n,i){for(var s=-1,o=e.length,a=n.length,l=-1,u=t.length,c=an(o-a,0),h=r(u+c),d=!i;++l<u;)h[l]=t[l];for(;++s<a;)(d||s<o)&&(h[n[s]]=e[s]);for(;c--;)h[l++]=e[s++];return h}function yi(e,t,n,i){for(var s=-1,o=e.length,a=-1,l=n.length,u=-1,c=t.length,h=an(o-l,0),d=r(h+c),f=!i;++s<h;)d[s]=e[s];for(var p=s;++u<c;)d[p+u]=t[u];for(;++a<l;)(f||s<o)&&(d[p+n[a]]=e[s++]);return d}function vi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function bi(e,t,n,r){var i=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var a=t[s],l=r?r(n[a],e[a],a,n,e):void 0;void 0===l&&(l=e[a]),i?Gn(n,a,l):zn(n,a,l)}return n}function wi(e,t){return function(n,r){var i=No(n)?ot:Hn,s=t?t():{};return i(n,e,Xi(r,2),s)}}function _i(e){return jr((function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(i--,s):void 0,o&&ls(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),t=pe(t);++r<i;){var a=n[r];a&&e(t,a,r,s)}return t}))}function Si(e,t){return function(n,r){if(null==n)return n;if(!Fo(n))return e(n,r);for(var i=n.length,s=t?i:-1,o=pe(n);(t?s--:++s<i)&&!1!==r(o[s],s,o););return n}}function xi(e){return function(t,n,r){for(var i=-1,s=pe(t),o=r(t),a=o.length;a--;){var l=o[e?a:++i];if(!1===n(s[l],l,s))break}return t}}function Ei(e){return function(t){var n=$t(t=la(t))?qt(t):void 0,r=n?n[0]:t.charAt(0),i=n?ci(n,1).join(""):t.slice(1);return r[e]()+i}}function Ai(e){return function(t){return mt(Ua(Ra(t).replace(Ie,"")),e,"")}}function Ti(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=kn(e.prototype),r=e.apply(n,t);return zo(r)?r:n}}function Mi(e){return function(t,n,r){var i=pe(t);if(!Fo(t)){var s=Xi(n,3);t=_a(t),n=function(e){return s(i[e],e,i)}}var o=e(t,n,r);return o>-1?i[s?t[o]:o]:void 0}}function Ci(e){return Ki((function(t){var n=t.length,r=n,i=In.prototype.thru;for(e&&t.reverse();r--;){var o=t[r];if("function"!=typeof o)throw new ye(s);if(i&&!a&&"wrapper"==Yi(o))var a=new In([],!0)}for(r=a?r:n;++r<n;){var l=Yi(o=t[r]),u="wrapper"==l?Gi(o):void 0;a=u&&cs(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?a[Yi(u[0])].apply(a,u[3]):1==o.length&&cs(o)?a[l]():a.thru(o)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&No(r))return a.plant(r).value();for(var i=0,s=n?t[i].apply(this,e):r;++i<n;)s=t[i].call(this,s);return s}}))}function Pi(e,t,n,i,s,o,a,l,u,c){var h=128&t,d=1&t,f=2&t,p=24&t,m=512&t,g=f?void 0:Ti(e);return function y(){for(var v=arguments.length,b=r(v),w=v;w--;)b[w]=arguments[w];if(p)var _=Ji(y),S=Ft(b,_);if(i&&(b=gi(b,i,s,p)),o&&(b=yi(b,o,a,p)),v-=S,p&&v<c){var x=Wt(b,_);return Fi(e,t,Pi,y.placeholder,n,b,x,l,u,c-v)}var E=d?n:this,A=f?E[e]:e;return v=b.length,l?b=ys(b,l):m&&v>1&&b.reverse(),h&&u<v&&(b.length=u),this&&this!==qe&&this instanceof y&&(A=g||Ti(A)),A.apply(E,b)}}function ki(e,t){return function(n,r){return function(e,t,n,r){return ur(e,(function(e,i,s){t(r,n(e),i,s)})),r}(n,e,t(r),{})}}function Oi(e,t){return function(n,r){var i;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Zr(n),r=Zr(r)):(n=Xr(n),r=Xr(r)),i=e(n,r)}return i}}function Ii(e){return Ki((function(t){return t=ft(t,Ot(Xi())),jr((function(n){var r=this;return e(t,(function(e){return st(e,r,n)}))}))}))}function Ri(e,t){var n=(t=void 0===t?" ":Zr(t)).length;if(n<2)return n?Br(t,e):t;var r=Br(t,Qt(e/Ht(t)));return $t(t)?ci(qt(r),0,e).join(""):r.slice(0,e)}function Ni(e){return function(t,n,i){return i&&"number"!=typeof i&&ls(t,n,i)&&(n=i=void 0),t=ra(t),void 0===n?(n=t,t=0):n=ra(n),function(e,t,n,i){for(var s=-1,o=an(Qt((t-e)/(n||1)),0),a=r(o);o--;)a[i?o:++s]=e,e+=n;return a}(t,n,i=void 0===i?t<n?1:-1:ra(i),e)}}function Di(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=oa(t),n=oa(n)),e(t,n)}}function Fi(e,t,n,r,i,s,o,a,l,u){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);var h=[e,t,i,c?s:void 0,c?o:void 0,c?void 0:s,c?void 0:o,a,l,u],d=n.apply(void 0,h);return cs(e)&&bs(d,h),d.placeholder=r,Ss(d,e,t)}function Li(e){var t=fe[e];return function(e,n){if(e=oa(e),(n=null==n?0:ln(ia(n),292))&&rn(e)){var r=(la(e)+"e").split("e");return+((r=(la(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Bi=gn&&1/zt(new gn([,-0]))[1]==1/0?function(e){return new gn(e)}:Za;function ji(e){return function(t){var n=rs(t);return n==m?Ut(t):n==b?Kt(t):function(e,t){return ft(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function $i(e,t,n,i,a,l,u,c){var h=2&t;if(!h&&"function"!=typeof e)throw new ye(s);var d=i?i.length:0;if(d||(t&=-97,i=a=void 0),u=void 0===u?u:an(ia(u),0),c=void 0===c?c:ia(c),d-=a?a.length:0,64&t){var f=i,p=a;i=a=void 0}var m=h?void 0:Gi(e),g=[e,t,n,i,a,f,p,l,u,c];if(m&&function(e,t){var n=e[1],r=t[1],i=n|r,s=i<131,a=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!s&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?gi(u,l,t[4]):l,e[4]=u?Wt(e[3],o):t[4]}(l=t[5])&&(u=e[5],e[5]=u?yi(u,l,t[6]):l,e[6]=u?Wt(e[5],o):t[6]);(l=t[7])&&(e[7]=l);128&r&&(e[8]=null==e[8]?t[8]:ln(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(g,m),e=g[0],t=g[1],n=g[2],i=g[3],a=g[4],!(c=g[9]=void 0===g[9]?h?0:e.length:an(g[9]-d,0))&&24&t&&(t&=-25),t&&1!=t)y=8==t||16==t?function(e,t,n){var i=Ti(e);return function s(){for(var o=arguments.length,a=r(o),l=o,u=Ji(s);l--;)a[l]=arguments[l];var c=o<3&&a[0]!==u&&a[o-1]!==u?[]:Wt(a,u);if((o-=c.length)<n)return Fi(e,t,Pi,s.placeholder,void 0,a,c,void 0,void 0,n-o);var h=this&&this!==qe&&this instanceof s?i:e;return st(h,this,a)}}(e,t,c):32!=t&&33!=t||a.length?Pi.apply(void 0,g):function(e,t,n,i){var s=1&t,o=Ti(e);return function t(){for(var a=-1,l=arguments.length,u=-1,c=i.length,h=r(c+l),d=this&&this!==qe&&this instanceof t?o:e;++u<c;)h[u]=i[u];for(;l--;)h[u++]=arguments[++a];return st(d,s?n:this,h)}}(e,t,n,i);else var y=function(e,t,n){var r=1&t,i=Ti(e);return function t(){var s=this&&this!==qe&&this instanceof t?i:e;return s.apply(r?n:this,arguments)}}(e,t,n);return Ss((m?Wr:bs)(y,g),e,t)}function Ui(e,t,n,r){return void 0===e||ko(e,we[n])&&!xe.call(r,n)?t:e}function Vi(e,t,n,r,i,s){return zo(e)&&zo(t)&&(s.set(t,e),Or(e,t,void 0,Vi,s),s.delete(t)),e}function Wi(e){return Go(e)?void 0:e}function zi(e,t,n,r,i,s){var o=1&n,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var u=s.get(e),c=s.get(t);if(u&&c)return u==t&&c==e;var h=-1,d=!0,f=2&n?new Ln:void 0;for(s.set(e,t),s.set(t,e);++h<a;){var p=e[h],m=t[h];if(r)var g=o?r(m,p,h,t,e,s):r(p,m,h,e,t,s);if(void 0!==g){if(g)continue;d=!1;break}if(f){if(!yt(t,(function(e,t){if(!Rt(f,t)&&(p===e||i(p,e,n,r,s)))return f.push(t)}))){d=!1;break}}else if(p!==m&&!i(p,m,n,r,s)){d=!1;break}}return s.delete(e),s.delete(t),d}function Ki(e){return _s(ms(e,void 0,Ns),e+"")}function Hi(e){return fr(e,_a,ts)}function qi(e){return fr(e,Sa,ns)}var Gi=bn?function(e){return bn.get(e)}:Za;function Yi(e){for(var t=e.name+"",n=wn[t],r=xe.call(wn,t)?n.length:0;r--;){var i=n[r],s=i.func;if(null==s||s==e)return i.name}return t}function Ji(e){return(xe.call(Pn,"placeholder")?Pn:e).placeholder}function Xi(){var e=Pn.iteratee||Ga;return e=e===Ga?Er:e,arguments.length?e(arguments[0],arguments[1]):e}function Zi(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Qi(e){for(var t=_a(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,fs(i)]}return t}function es(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return xr(n)?n:void 0}var ts=tn?function(e){return null==e?[]:(e=pe(e),ct(tn(e),(function(t){return He.call(e,t)})))}:sl,ns=tn?function(e){for(var t=[];e;)pt(t,ts(e)),e=Ve(e);return t}:sl,rs=pr;function is(e,t,n){for(var r=-1,i=(t=li(t,e)).length,s=!1;++r<i;){var o=Ts(t[r]);if(!(s=null!=e&&n(e,o)))break;e=e[o]}return s||++r!=i?s:!!(i=null==e?0:e.length)&&Wo(i)&&as(o,i)&&(No(e)||Ro(e))}function ss(e){return"function"!=typeof e.constructor||ds(e)?{}:kn(Ve(e))}function os(e){return No(e)||Ro(e)||!!(Ye&&e&&e[Ye])}function as(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&le.test(e))&&e>-1&&e%1==0&&e<t}function ls(e,t,n){if(!zo(n))return!1;var r=typeof t;return!!("number"==r?Fo(n)&&as(t,n.length):"string"==r&&t in n)&&ko(n[t],e)}function us(e,t){if(No(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Zo(e))||(z.test(e)||!W.test(e)||null!=t&&e in pe(t))}function cs(e){var t=Yi(e),n=Pn[t];if("function"!=typeof n||!(t in Rn.prototype))return!1;if(e===n)return!0;var r=Gi(n);return!!r&&e===r[0]}(fn&&rs(new fn(new ArrayBuffer(1)))!=E||pn&&rs(new pn)!=m||mn&&"[object Promise]"!=rs(mn.resolve())||gn&&rs(new gn)!=b||yn&&rs(new yn)!=S)&&(rs=function(e){var t=pr(e),n=t==y?e.constructor:void 0,r=n?Ms(n):"";if(r)switch(r){case _n:return E;case Sn:return m;case xn:return"[object Promise]";case En:return b;case An:return S}return t});var hs=_e?Uo:ol;function ds(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||we)}function fs(e){return e==e&&!zo(e)}function ps(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in pe(n)))}}function ms(e,t,n){return t=an(void 0===t?e.length-1:t,0),function(){for(var i=arguments,s=-1,o=an(i.length-t,0),a=r(o);++s<o;)a[s]=i[t+s];s=-1;for(var l=r(t+1);++s<t;)l[s]=i[s];return l[t]=n(a),st(e,this,l)}}function gs(e,t){return t.length<2?e:dr(e,Hr(t,0,-1))}function ys(e,t){for(var n=e.length,r=ln(t.length,n),i=vi(e);r--;){var s=t[r];e[r]=as(s,n)?i[s]:void 0}return e}function vs(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var bs=xs(Wr),ws=Zt||function(e,t){return qe.setTimeout(e,t)},_s=xs(zr);function Ss(e,t,n){var r=t+"";return _s(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(J,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return at(a,(function(n){var r="_."+n[0];t&n[1]&&!ht(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(X);return t?t[1].split(Z):[]}(r),n)))}function xs(e){var t=0,n=0;return function(){var r=un(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Es(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var s=Lr(n,i),o=e[s];e[s]=e[n],e[n]=o}return e.length=t,e}var As=function(e){var t=Eo(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(K,(function(e,n,r,i){t.push(r?i.replace(te,"$1"):n||e)})),t}));function Ts(e){if("string"==typeof e||Zo(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ms(e){if(null!=e){try{return Se.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Cs(e){if(e instanceof Rn)return e.clone();var t=new In(e.__wrapped__,e.__chain__);return t.__actions__=vi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ps=jr((function(e,t){return Lo(e)?er(e,or(t,1,Lo,!0)):[]})),ks=jr((function(e,t){var n=js(t);return Lo(n)&&(n=void 0),Lo(e)?er(e,or(t,1,Lo,!0),Xi(n,2)):[]})),Os=jr((function(e,t){var n=js(t);return Lo(n)&&(n=void 0),Lo(e)?er(e,or(t,1,Lo,!0),void 0,n):[]}));function Is(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ia(n);return i<0&&(i=an(r+i,0)),wt(e,Xi(t,3),i)}function Rs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=ia(n),i=n<0?an(r+i,0):ln(i,r-1)),wt(e,Xi(t,3),i,!0)}function Ns(e){return(null==e?0:e.length)?or(e,1):[]}function Ds(e){return e&&e.length?e[0]:void 0}var Fs=jr((function(e){var t=ft(e,oi);return t.length&&t[0]===e[0]?vr(t):[]})),Ls=jr((function(e){var t=js(e),n=ft(e,oi);return t===js(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?vr(n,Xi(t,2)):[]})),Bs=jr((function(e){var t=js(e),n=ft(e,oi);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?vr(n,void 0,t):[]}));function js(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var $s=jr(Us);function Us(e,t){return e&&e.length&&t&&t.length?Dr(e,t):e}var Vs=Ki((function(e,t){var n=null==e?0:e.length,r=Yn(e,t);return Fr(e,ft(t,(function(e){return as(e,n)?+e:e})).sort(mi)),r}));function Ws(e){return null==e?e:dn.call(e)}var zs=jr((function(e){return Qr(or(e,1,Lo,!0))})),Ks=jr((function(e){var t=js(e);return Lo(t)&&(t=void 0),Qr(or(e,1,Lo,!0),Xi(t,2))})),Hs=jr((function(e){var t=js(e);return t="function"==typeof t?t:void 0,Qr(or(e,1,Lo,!0),void 0,t)}));function qs(e){if(!e||!e.length)return[];var t=0;return e=ct(e,(function(e){if(Lo(e))return t=an(e.length,t),!0})),Pt(t,(function(t){return ft(e,At(t))}))}function Gs(e,t){if(!e||!e.length)return[];var n=qs(e);return null==t?n:ft(n,(function(e){return st(t,void 0,e)}))}var Ys=jr((function(e,t){return Lo(e)?er(e,t):[]})),Js=jr((function(e){return ii(ct(e,Lo))})),Xs=jr((function(e){var t=js(e);return Lo(t)&&(t=void 0),ii(ct(e,Lo),Xi(t,2))})),Zs=jr((function(e){var t=js(e);return t="function"==typeof t?t:void 0,ii(ct(e,Lo),void 0,t)})),Qs=jr(qs);var eo=jr((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Gs(e,n)}));function to(e){var t=Pn(e);return t.__chain__=!0,t}function no(e,t){return t(e)}var ro=Ki((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Yn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Rn&&as(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:no,args:[i],thisArg:void 0}),new In(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var io=wi((function(e,t,n){xe.call(e,n)?++e[n]:Gn(e,n,1)}));var so=Mi(Is),oo=Mi(Rs);function ao(e,t){return(No(e)?at:tr)(e,Xi(t,3))}function lo(e,t){return(No(e)?lt:nr)(e,Xi(t,3))}var uo=wi((function(e,t,n){xe.call(e,n)?e[n].push(t):Gn(e,n,[t])}));var co=jr((function(e,t,n){var i=-1,s="function"==typeof t,o=Fo(e)?r(e.length):[];return tr(e,(function(e){o[++i]=s?st(t,e,n):br(e,t,n)})),o})),ho=wi((function(e,t,n){Gn(e,n,t)}));function fo(e,t){return(No(e)?ft:Cr)(e,Xi(t,3))}var po=wi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var mo=jr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ls(e,t[0],t[1])?t=[]:n>2&&ls(t[0],t[1],t[2])&&(t=[t[0]]),Rr(e,or(t,1),[])})),go=Xt||function(){return qe.Date.now()};function yo(e,t,n){return t=n?void 0:t,$i(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function vo(e,t){var n;if("function"!=typeof t)throw new ye(s);return e=ia(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var bo=jr((function(e,t,n){var r=1;if(n.length){var i=Wt(n,Ji(bo));r|=32}return $i(e,r,t,n,i)})),wo=jr((function(e,t,n){var r=3;if(n.length){var i=Wt(n,Ji(wo));r|=32}return $i(t,r,e,n,i)}));function _o(e,t,n){var r,i,o,a,l,u,c=0,h=!1,d=!1,f=!0;if("function"!=typeof e)throw new ye(s);function p(t){var n=r,s=i;return r=i=void 0,c=t,a=e.apply(s,n)}function m(e){return c=e,l=ws(y,t),h?p(e):a}function g(e){var n=e-u;return void 0===u||n>=t||n<0||d&&e-c>=o}function y(){var e=go();if(g(e))return v(e);l=ws(y,function(e){var n=t-(e-u);return d?ln(n,o-(e-c)):n}(e))}function v(e){return l=void 0,f&&r?p(e):(r=i=void 0,a)}function b(){var e=go(),n=g(e);if(r=arguments,i=this,u=e,n){if(void 0===l)return m(u);if(d)return hi(l),l=ws(y,t),p(u)}return void 0===l&&(l=ws(y,t)),a}return t=oa(t)||0,zo(n)&&(h=!!n.leading,o=(d="maxWait"in n)?an(oa(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),b.cancel=function(){void 0!==l&&hi(l),c=0,r=u=i=l=void 0},b.flush=function(){return void 0===l?a:v(go())},b}var So=jr((function(e,t){return Qn(e,1,t)})),xo=jr((function(e,t,n){return Qn(e,oa(t)||0,n)}));function Eo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ye(s);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(Eo.Cache||Fn),n}function Ao(e){if("function"!=typeof e)throw new ye(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Eo.Cache=Fn;var To=ui((function(e,t){var n=(t=1==t.length&&No(t[0])?ft(t[0],Ot(Xi())):ft(or(t,1),Ot(Xi()))).length;return jr((function(r){for(var i=-1,s=ln(r.length,n);++i<s;)r[i]=t[i].call(this,r[i]);return st(e,this,r)}))})),Mo=jr((function(e,t){return $i(e,32,void 0,t,Wt(t,Ji(Mo)))})),Co=jr((function(e,t){return $i(e,64,void 0,t,Wt(t,Ji(Co)))})),Po=Ki((function(e,t){return $i(e,256,void 0,void 0,void 0,t)}));function ko(e,t){return e===t||e!=e&&t!=t}var Oo=Di(mr),Io=Di((function(e,t){return e>=t})),Ro=wr(function(){return arguments}())?wr:function(e){return Ko(e)&&xe.call(e,"callee")&&!He.call(e,"callee")},No=r.isArray,Do=Qe?Ot(Qe):function(e){return Ko(e)&&pr(e)==x};function Fo(e){return null!=e&&Wo(e.length)&&!Uo(e)}function Lo(e){return Ko(e)&&Fo(e)}var Bo=nn||ol,jo=et?Ot(et):function(e){return Ko(e)&&pr(e)==h};function $o(e){if(!Ko(e))return!1;var t=pr(e);return t==d||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Go(e)}function Uo(e){if(!zo(e))return!1;var t=pr(e);return t==f||t==p||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Vo(e){return"number"==typeof e&&e==ia(e)}function Wo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function zo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ko(e){return null!=e&&"object"==typeof e}var Ho=tt?Ot(tt):function(e){return Ko(e)&&rs(e)==m};function qo(e){return"number"==typeof e||Ko(e)&&pr(e)==g}function Go(e){if(!Ko(e)||pr(e)!=y)return!1;var t=Ve(e);if(null===t)return!0;var n=xe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Se.call(n)==Me}var Yo=nt?Ot(nt):function(e){return Ko(e)&&pr(e)==v};var Jo=rt?Ot(rt):function(e){return Ko(e)&&rs(e)==b};function Xo(e){return"string"==typeof e||!No(e)&&Ko(e)&&pr(e)==w}function Zo(e){return"symbol"==typeof e||Ko(e)&&pr(e)==_}var Qo=it?Ot(it):function(e){return Ko(e)&&Wo(e.length)&&!!$e[pr(e)]};var ea=Di(Mr),ta=Di((function(e,t){return e<=t}));function na(e){if(!e)return[];if(Fo(e))return Xo(e)?qt(e):vi(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=rs(e);return(t==m?Ut:t==b?zt:ka)(e)}function ra(e){return e?(e=oa(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ia(e){var t=ra(e),n=t%1;return t==t?n?t-n:t:0}function sa(e){return e?Jn(ia(e),0,4294967295):0}function oa(e){if("number"==typeof e)return e;if(Zo(e))return NaN;if(zo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=zo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=kt(e);var n=se.test(e);return n||ae.test(e)?ze(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function aa(e){return bi(e,Sa(e))}function la(e){return null==e?"":Zr(e)}var ua=_i((function(e,t){if(ds(t)||Fo(t))bi(t,_a(t),e);else for(var n in t)xe.call(t,n)&&zn(e,n,t[n])})),ca=_i((function(e,t){bi(t,Sa(t),e)})),ha=_i((function(e,t,n,r){bi(t,Sa(t),e,r)})),da=_i((function(e,t,n,r){bi(t,_a(t),e,r)})),fa=Ki(Yn);var pa=jr((function(e,t){e=pe(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&ls(t[0],t[1],i)&&(r=1);++n<r;)for(var s=t[n],o=Sa(s),a=-1,l=o.length;++a<l;){var u=o[a],c=e[u];(void 0===c||ko(c,we[u])&&!xe.call(e,u))&&(e[u]=s[u])}return e})),ma=jr((function(e){return e.push(void 0,Vi),st(Ea,void 0,e)}));function ga(e,t,n){var r=null==e?void 0:dr(e,t);return void 0===r?n:r}function ya(e,t){return null!=e&&is(e,t,yr)}var va=ki((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Te.call(t)),e[t]=n}),za(qa)),ba=ki((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Te.call(t)),xe.call(e,t)?e[t].push(n):e[t]=[n]}),Xi),wa=jr(br);function _a(e){return Fo(e)?jn(e):Ar(e)}function Sa(e){return Fo(e)?jn(e,!0):Tr(e)}var xa=_i((function(e,t,n){Or(e,t,n)})),Ea=_i((function(e,t,n,r){Or(e,t,n,r)})),Aa=Ki((function(e,t){var n={};if(null==e)return n;var r=!1;t=ft(t,(function(t){return t=li(t,e),r||(r=t.length>1),t})),bi(e,qi(e),n),r&&(n=Xn(n,7,Wi));for(var i=t.length;i--;)ei(n,t[i]);return n}));var Ta=Ki((function(e,t){return null==e?{}:function(e,t){return Nr(e,t,(function(t,n){return ya(e,n)}))}(e,t)}));function Ma(e,t){if(null==e)return{};var n=ft(qi(e),(function(e){return[e]}));return t=Xi(t),Nr(e,n,(function(e,n){return t(e,n[0])}))}var Ca=ji(_a),Pa=ji(Sa);function ka(e){return null==e?[]:It(e,_a(e))}var Oa=Ai((function(e,t,n){return t=t.toLowerCase(),e+(n?Ia(t):t)}));function Ia(e){return $a(la(e).toLowerCase())}function Ra(e){return(e=la(e))&&e.replace(ue,Lt).replace(Re,"")}var Na=Ai((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Da=Ai((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Fa=Ei("toLowerCase");var La=Ai((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ba=Ai((function(e,t,n){return e+(n?" ":"")+$a(t)}));var ja=Ai((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),$a=Ei("toUpperCase");function Ua(e,t,n){return e=la(e),void 0===(t=n?void 0:t)?function(e){return Le.test(e)}(e)?function(e){return e.match(De)||[]}(e):function(e){return e.match(Q)||[]}(e):e.match(t)||[]}var Va=jr((function(e,t){try{return st(e,void 0,t)}catch(e){return $o(e)?e:new Y(e)}})),Wa=Ki((function(e,t){return at(t,(function(t){t=Ts(t),Gn(e,t,bo(e[t],e))})),e}));function za(e){return function(){return e}}var Ka=Ci(),Ha=Ci(!0);function qa(e){return e}function Ga(e){return Er("function"==typeof e?e:Xn(e,1))}var Ya=jr((function(e,t){return function(n){return br(n,e,t)}})),Ja=jr((function(e,t){return function(n){return br(e,n,t)}}));function Xa(e,t,n){var r=_a(t),i=hr(t,r);null!=n||zo(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=hr(t,_a(t)));var s=!(zo(n)&&"chain"in n&&!n.chain),o=Uo(e);return at(i,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(s||t){var n=e(this.__wrapped__),i=n.__actions__=vi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,pt([this.value()],arguments))})})),e}function Za(){}var Qa=Ii(ft),el=Ii(ut),tl=Ii(yt);function nl(e){return us(e)?At(Ts(e)):function(e){return function(t){return dr(t,e)}}(e)}var rl=Ni(),il=Ni(!0);function sl(){return[]}function ol(){return!1}var al=Oi((function(e,t){return e+t}),0),ll=Li("ceil"),ul=Oi((function(e,t){return e/t}),1),cl=Li("floor");var hl,dl=Oi((function(e,t){return e*t}),1),fl=Li("round"),pl=Oi((function(e,t){return e-t}),0);return Pn.after=function(e,t){if("function"!=typeof t)throw new ye(s);return e=ia(e),function(){if(--e<1)return t.apply(this,arguments)}},Pn.ary=yo,Pn.assign=ua,Pn.assignIn=ca,Pn.assignInWith=ha,Pn.assignWith=da,Pn.at=fa,Pn.before=vo,Pn.bind=bo,Pn.bindAll=Wa,Pn.bindKey=wo,Pn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return No(e)?e:[e]},Pn.chain=to,Pn.chunk=function(e,t,n){t=(n?ls(e,t,n):void 0===t)?1:an(ia(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var s=0,o=0,a=r(Qt(i/t));s<i;)a[o++]=Hr(e,s,s+=t);return a},Pn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var s=e[t];s&&(i[r++]=s)}return i},Pn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return pt(No(n)?vi(n):[n],or(t,1))},Pn.cond=function(e){var t=null==e?0:e.length,n=Xi();return e=t?ft(e,(function(e){if("function"!=typeof e[1])throw new ye(s);return[n(e[0]),e[1]]})):[],jr((function(n){for(var r=-1;++r<t;){var i=e[r];if(st(i[0],this,n))return st(i[1],this,n)}}))},Pn.conforms=function(e){return function(e){var t=_a(e);return function(n){return Zn(n,e,t)}}(Xn(e,1))},Pn.constant=za,Pn.countBy=io,Pn.create=function(e,t){var n=kn(e);return null==t?n:qn(n,t)},Pn.curry=function e(t,n,r){var i=$i(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},Pn.curryRight=function e(t,n,r){var i=$i(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},Pn.debounce=_o,Pn.defaults=pa,Pn.defaultsDeep=ma,Pn.defer=So,Pn.delay=xo,Pn.difference=Ps,Pn.differenceBy=ks,Pn.differenceWith=Os,Pn.drop=function(e,t,n){var r=null==e?0:e.length;return r?Hr(e,(t=n||void 0===t?1:ia(t))<0?0:t,r):[]},Pn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Hr(e,0,(t=r-(t=n||void 0===t?1:ia(t)))<0?0:t):[]},Pn.dropRightWhile=function(e,t){return e&&e.length?ni(e,Xi(t,3),!0,!0):[]},Pn.dropWhile=function(e,t){return e&&e.length?ni(e,Xi(t,3),!0):[]},Pn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&ls(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ia(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:ia(r))<0&&(r+=i),r=n>r?0:sa(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Pn.filter=function(e,t){return(No(e)?ct:sr)(e,Xi(t,3))},Pn.flatMap=function(e,t){return or(fo(e,t),1)},Pn.flatMapDeep=function(e,t){return or(fo(e,t),1/0)},Pn.flatMapDepth=function(e,t,n){return n=void 0===n?1:ia(n),or(fo(e,t),n)},Pn.flatten=Ns,Pn.flattenDeep=function(e){return(null==e?0:e.length)?or(e,1/0):[]},Pn.flattenDepth=function(e,t){return(null==e?0:e.length)?or(e,t=void 0===t?1:ia(t)):[]},Pn.flip=function(e){return $i(e,512)},Pn.flow=Ka,Pn.flowRight=Ha,Pn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Pn.functions=function(e){return null==e?[]:hr(e,_a(e))},Pn.functionsIn=function(e){return null==e?[]:hr(e,Sa(e))},Pn.groupBy=uo,Pn.initial=function(e){return(null==e?0:e.length)?Hr(e,0,-1):[]},Pn.intersection=Fs,Pn.intersectionBy=Ls,Pn.intersectionWith=Bs,Pn.invert=va,Pn.invertBy=ba,Pn.invokeMap=co,Pn.iteratee=Ga,Pn.keyBy=ho,Pn.keys=_a,Pn.keysIn=Sa,Pn.map=fo,Pn.mapKeys=function(e,t){var n={};return t=Xi(t,3),ur(e,(function(e,r,i){Gn(n,t(e,r,i),e)})),n},Pn.mapValues=function(e,t){var n={};return t=Xi(t,3),ur(e,(function(e,r,i){Gn(n,r,t(e,r,i))})),n},Pn.matches=function(e){return Pr(Xn(e,1))},Pn.matchesProperty=function(e,t){return kr(e,Xn(t,1))},Pn.memoize=Eo,Pn.merge=xa,Pn.mergeWith=Ea,Pn.method=Ya,Pn.methodOf=Ja,Pn.mixin=Xa,Pn.negate=Ao,Pn.nthArg=function(e){return e=ia(e),jr((function(t){return Ir(t,e)}))},Pn.omit=Aa,Pn.omitBy=function(e,t){return Ma(e,Ao(Xi(t)))},Pn.once=function(e){return vo(2,e)},Pn.orderBy=function(e,t,n,r){return null==e?[]:(No(t)||(t=null==t?[]:[t]),No(n=r?void 0:n)||(n=null==n?[]:[n]),Rr(e,t,n))},Pn.over=Qa,Pn.overArgs=To,Pn.overEvery=el,Pn.overSome=tl,Pn.partial=Mo,Pn.partialRight=Co,Pn.partition=po,Pn.pick=Ta,Pn.pickBy=Ma,Pn.property=nl,Pn.propertyOf=function(e){return function(t){return null==e?void 0:dr(e,t)}},Pn.pull=$s,Pn.pullAll=Us,Pn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Dr(e,t,Xi(n,2)):e},Pn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Dr(e,t,void 0,n):e},Pn.pullAt=Vs,Pn.range=rl,Pn.rangeRight=il,Pn.rearg=Po,Pn.reject=function(e,t){return(No(e)?ct:sr)(e,Ao(Xi(t,3)))},Pn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],s=e.length;for(t=Xi(t,3);++r<s;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return Fr(e,i),n},Pn.rest=function(e,t){if("function"!=typeof e)throw new ye(s);return jr(e,t=void 0===t?t:ia(t))},Pn.reverse=Ws,Pn.sampleSize=function(e,t,n){return t=(n?ls(e,t,n):void 0===t)?1:ia(t),(No(e)?Un:Ur)(e,t)},Pn.set=function(e,t,n){return null==e?e:Vr(e,t,n)},Pn.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Vr(e,t,n,r)},Pn.shuffle=function(e){return(No(e)?Vn:Kr)(e)},Pn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ls(e,t,n)?(t=0,n=r):(t=null==t?0:ia(t),n=void 0===n?r:ia(n)),Hr(e,t,n)):[]},Pn.sortBy=mo,Pn.sortedUniq=function(e){return e&&e.length?Jr(e):[]},Pn.sortedUniqBy=function(e,t){return e&&e.length?Jr(e,Xi(t,2)):[]},Pn.split=function(e,t,n){return n&&"number"!=typeof n&&ls(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=la(e))&&("string"==typeof t||null!=t&&!Yo(t))&&!(t=Zr(t))&&$t(e)?ci(qt(e),0,n):e.split(t,n):[]},Pn.spread=function(e,t){if("function"!=typeof e)throw new ye(s);return t=null==t?0:an(ia(t),0),jr((function(n){var r=n[t],i=ci(n,0,t);return r&&pt(i,r),st(e,this,i)}))},Pn.tail=function(e){var t=null==e?0:e.length;return t?Hr(e,1,t):[]},Pn.take=function(e,t,n){return e&&e.length?Hr(e,0,(t=n||void 0===t?1:ia(t))<0?0:t):[]},Pn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Hr(e,(t=r-(t=n||void 0===t?1:ia(t)))<0?0:t,r):[]},Pn.takeRightWhile=function(e,t){return e&&e.length?ni(e,Xi(t,3),!1,!0):[]},Pn.takeWhile=function(e,t){return e&&e.length?ni(e,Xi(t,3)):[]},Pn.tap=function(e,t){return t(e),e},Pn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ye(s);return zo(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),_o(e,t,{leading:r,maxWait:t,trailing:i})},Pn.thru=no,Pn.toArray=na,Pn.toPairs=Ca,Pn.toPairsIn=Pa,Pn.toPath=function(e){return No(e)?ft(e,Ts):Zo(e)?[e]:vi(As(la(e)))},Pn.toPlainObject=aa,Pn.transform=function(e,t,n){var r=No(e),i=r||Bo(e)||Qo(e);if(t=Xi(t,4),null==n){var s=e&&e.constructor;n=i?r?new s:[]:zo(e)&&Uo(s)?kn(Ve(e)):{}}return(i?at:ur)(e,(function(e,r,i){return t(n,e,r,i)})),n},Pn.unary=function(e){return yo(e,1)},Pn.union=zs,Pn.unionBy=Ks,Pn.unionWith=Hs,Pn.uniq=function(e){return e&&e.length?Qr(e):[]},Pn.uniqBy=function(e,t){return e&&e.length?Qr(e,Xi(t,2)):[]},Pn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Qr(e,void 0,t):[]},Pn.unset=function(e,t){return null==e||ei(e,t)},Pn.unzip=qs,Pn.unzipWith=Gs,Pn.update=function(e,t,n){return null==e?e:ti(e,t,ai(n))},Pn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ti(e,t,ai(n),r)},Pn.values=ka,Pn.valuesIn=function(e){return null==e?[]:It(e,Sa(e))},Pn.without=Ys,Pn.words=Ua,Pn.wrap=function(e,t){return Mo(ai(t),e)},Pn.xor=Js,Pn.xorBy=Xs,Pn.xorWith=Zs,Pn.zip=Qs,Pn.zipObject=function(e,t){return si(e||[],t||[],zn)},Pn.zipObjectDeep=function(e,t){return si(e||[],t||[],Vr)},Pn.zipWith=eo,Pn.entries=Ca,Pn.entriesIn=Pa,Pn.extend=ca,Pn.extendWith=ha,Xa(Pn,Pn),Pn.add=al,Pn.attempt=Va,Pn.camelCase=Oa,Pn.capitalize=Ia,Pn.ceil=ll,Pn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=oa(n))==n?n:0),void 0!==t&&(t=(t=oa(t))==t?t:0),Jn(oa(e),t,n)},Pn.clone=function(e){return Xn(e,4)},Pn.cloneDeep=function(e){return Xn(e,5)},Pn.cloneDeepWith=function(e,t){return Xn(e,5,t="function"==typeof t?t:void 0)},Pn.cloneWith=function(e,t){return Xn(e,4,t="function"==typeof t?t:void 0)},Pn.conformsTo=function(e,t){return null==t||Zn(e,t,_a(t))},Pn.deburr=Ra,Pn.defaultTo=function(e,t){return null==e||e!=e?t:e},Pn.divide=ul,Pn.endsWith=function(e,t,n){e=la(e),t=Zr(t);var r=e.length,i=n=void 0===n?r:Jn(ia(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Pn.eq=ko,Pn.escape=function(e){return(e=la(e))&&j.test(e)?e.replace(L,Bt):e},Pn.escapeRegExp=function(e){return(e=la(e))&&q.test(e)?e.replace(H,"\\$&"):e},Pn.every=function(e,t,n){var r=No(e)?ut:rr;return n&&ls(e,t,n)&&(t=void 0),r(e,Xi(t,3))},Pn.find=so,Pn.findIndex=Is,Pn.findKey=function(e,t){return bt(e,Xi(t,3),ur)},Pn.findLast=oo,Pn.findLastIndex=Rs,Pn.findLastKey=function(e,t){return bt(e,Xi(t,3),cr)},Pn.floor=cl,Pn.forEach=ao,Pn.forEachRight=lo,Pn.forIn=function(e,t){return null==e?e:ar(e,Xi(t,3),Sa)},Pn.forInRight=function(e,t){return null==e?e:lr(e,Xi(t,3),Sa)},Pn.forOwn=function(e,t){return e&&ur(e,Xi(t,3))},Pn.forOwnRight=function(e,t){return e&&cr(e,Xi(t,3))},Pn.get=ga,Pn.gt=Oo,Pn.gte=Io,Pn.has=function(e,t){return null!=e&&is(e,t,gr)},Pn.hasIn=ya,Pn.head=Ds,Pn.identity=qa,Pn.includes=function(e,t,n,r){e=Fo(e)?e:ka(e),n=n&&!r?ia(n):0;var i=e.length;return n<0&&(n=an(i+n,0)),Xo(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&_t(e,t,n)>-1},Pn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ia(n);return i<0&&(i=an(r+i,0)),_t(e,t,i)},Pn.inRange=function(e,t,n){return t=ra(t),void 0===n?(n=t,t=0):n=ra(n),function(e,t,n){return e>=ln(t,n)&&e<an(t,n)}(e=oa(e),t,n)},Pn.invoke=wa,Pn.isArguments=Ro,Pn.isArray=No,Pn.isArrayBuffer=Do,Pn.isArrayLike=Fo,Pn.isArrayLikeObject=Lo,Pn.isBoolean=function(e){return!0===e||!1===e||Ko(e)&&pr(e)==c},Pn.isBuffer=Bo,Pn.isDate=jo,Pn.isElement=function(e){return Ko(e)&&1===e.nodeType&&!Go(e)},Pn.isEmpty=function(e){if(null==e)return!0;if(Fo(e)&&(No(e)||"string"==typeof e||"function"==typeof e.splice||Bo(e)||Qo(e)||Ro(e)))return!e.length;var t=rs(e);if(t==m||t==b)return!e.size;if(ds(e))return!Ar(e).length;for(var n in e)if(xe.call(e,n))return!1;return!0},Pn.isEqual=function(e,t){return _r(e,t)},Pn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?_r(e,t,void 0,n):!!r},Pn.isError=$o,Pn.isFinite=function(e){return"number"==typeof e&&rn(e)},Pn.isFunction=Uo,Pn.isInteger=Vo,Pn.isLength=Wo,Pn.isMap=Ho,Pn.isMatch=function(e,t){return e===t||Sr(e,t,Qi(t))},Pn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,Sr(e,t,Qi(t),n)},Pn.isNaN=function(e){return qo(e)&&e!=+e},Pn.isNative=function(e){if(hs(e))throw new Y("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return xr(e)},Pn.isNil=function(e){return null==e},Pn.isNull=function(e){return null===e},Pn.isNumber=qo,Pn.isObject=zo,Pn.isObjectLike=Ko,Pn.isPlainObject=Go,Pn.isRegExp=Yo,Pn.isSafeInteger=function(e){return Vo(e)&&e>=-9007199254740991&&e<=9007199254740991},Pn.isSet=Jo,Pn.isString=Xo,Pn.isSymbol=Zo,Pn.isTypedArray=Qo,Pn.isUndefined=function(e){return void 0===e},Pn.isWeakMap=function(e){return Ko(e)&&rs(e)==S},Pn.isWeakSet=function(e){return Ko(e)&&"[object WeakSet]"==pr(e)},Pn.join=function(e,t){return null==e?"":sn.call(e,t)},Pn.kebabCase=Na,Pn.last=js,Pn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=ia(n))<0?an(r+i,0):ln(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):wt(e,xt,i,!0)},Pn.lowerCase=Da,Pn.lowerFirst=Fa,Pn.lt=ea,Pn.lte=ta,Pn.max=function(e){return e&&e.length?ir(e,qa,mr):void 0},Pn.maxBy=function(e,t){return e&&e.length?ir(e,Xi(t,2),mr):void 0},Pn.mean=function(e){return Et(e,qa)},Pn.meanBy=function(e,t){return Et(e,Xi(t,2))},Pn.min=function(e){return e&&e.length?ir(e,qa,Mr):void 0},Pn.minBy=function(e,t){return e&&e.length?ir(e,Xi(t,2),Mr):void 0},Pn.stubArray=sl,Pn.stubFalse=ol,Pn.stubObject=function(){return{}},Pn.stubString=function(){return""},Pn.stubTrue=function(){return!0},Pn.multiply=dl,Pn.nth=function(e,t){return e&&e.length?Ir(e,ia(t)):void 0},Pn.noConflict=function(){return qe._===this&&(qe._=Ce),this},Pn.noop=Za,Pn.now=go,Pn.pad=function(e,t,n){e=la(e);var r=(t=ia(t))?Ht(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ri(en(i),n)+e+Ri(Qt(i),n)},Pn.padEnd=function(e,t,n){e=la(e);var r=(t=ia(t))?Ht(e):0;return t&&r<t?e+Ri(t-r,n):e},Pn.padStart=function(e,t,n){e=la(e);var r=(t=ia(t))?Ht(e):0;return t&&r<t?Ri(t-r,n)+e:e},Pn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),cn(la(e).replace(G,""),t||0)},Pn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&ls(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=ra(e),void 0===t?(t=e,e=0):t=ra(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=hn();return ln(e+i*(t-e+We("1e-"+((i+"").length-1))),t)}return Lr(e,t)},Pn.reduce=function(e,t,n){var r=No(e)?mt:Mt,i=arguments.length<3;return r(e,Xi(t,4),n,i,tr)},Pn.reduceRight=function(e,t,n){var r=No(e)?gt:Mt,i=arguments.length<3;return r(e,Xi(t,4),n,i,nr)},Pn.repeat=function(e,t,n){return t=(n?ls(e,t,n):void 0===t)?1:ia(t),Br(la(e),t)},Pn.replace=function(){var e=arguments,t=la(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Pn.result=function(e,t,n){var r=-1,i=(t=li(t,e)).length;for(i||(i=1,e=void 0);++r<i;){var s=null==e?void 0:e[Ts(t[r])];void 0===s&&(r=i,s=n),e=Uo(s)?s.call(e):s}return e},Pn.round=fl,Pn.runInContext=e,Pn.sample=function(e){return(No(e)?$n:$r)(e)},Pn.size=function(e){if(null==e)return 0;if(Fo(e))return Xo(e)?Ht(e):e.length;var t=rs(e);return t==m||t==b?e.size:Ar(e).length},Pn.snakeCase=La,Pn.some=function(e,t,n){var r=No(e)?yt:qr;return n&&ls(e,t,n)&&(t=void 0),r(e,Xi(t,3))},Pn.sortedIndex=function(e,t){return Gr(e,t)},Pn.sortedIndexBy=function(e,t,n){return Yr(e,t,Xi(n,2))},Pn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Gr(e,t);if(r<n&&ko(e[r],t))return r}return-1},Pn.sortedLastIndex=function(e,t){return Gr(e,t,!0)},Pn.sortedLastIndexBy=function(e,t,n){return Yr(e,t,Xi(n,2),!0)},Pn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Gr(e,t,!0)-1;if(ko(e[n],t))return n}return-1},Pn.startCase=Ba,Pn.startsWith=function(e,t,n){return e=la(e),n=null==n?0:Jn(ia(n),0,e.length),t=Zr(t),e.slice(n,n+t.length)==t},Pn.subtract=pl,Pn.sum=function(e){return e&&e.length?Ct(e,qa):0},Pn.sumBy=function(e,t){return e&&e.length?Ct(e,Xi(t,2)):0},Pn.template=function(e,t,n){var r=Pn.templateSettings;n&&ls(e,t,n)&&(t=void 0),e=la(e),t=ha({},t,r,Ui);var i,s,o=ha({},t.imports,r.imports,Ui),a=_a(o),l=It(o,a),u=0,c=t.interpolate||ce,h="__p += '",d=me((t.escape||ce).source+"|"+c.source+"|"+(c===V?ne:ce).source+"|"+(t.evaluate||ce).source+"|$","g"),f="//# sourceURL="+(xe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++je+"]")+"\n";e.replace(d,(function(t,n,r,o,a,l){return r||(r=o),h+=e.slice(u,l).replace(he,jt),n&&(i=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),h+="';\n";var p=xe.call(t,"variable")&&t.variable;if(p){if(ee.test(p))throw new Y("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(R,""):h).replace(N,"$1").replace(D,"$1;"),h="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=Va((function(){return de(a,f+"return "+h).apply(void 0,l)}));if(m.source=h,$o(m))throw m;return m},Pn.times=function(e,t){if((e=ia(e))<1||e>9007199254740991)return[];var n=4294967295,r=ln(e,4294967295);e-=4294967295;for(var i=Pt(r,t=Xi(t));++n<e;)t(n);return i},Pn.toFinite=ra,Pn.toInteger=ia,Pn.toLength=sa,Pn.toLower=function(e){return la(e).toLowerCase()},Pn.toNumber=oa,Pn.toSafeInteger=function(e){return e?Jn(ia(e),-9007199254740991,9007199254740991):0===e?e:0},Pn.toString=la,Pn.toUpper=function(e){return la(e).toUpperCase()},Pn.trim=function(e,t,n){if((e=la(e))&&(n||void 0===t))return kt(e);if(!e||!(t=Zr(t)))return e;var r=qt(e),i=qt(t);return ci(r,Nt(r,i),Dt(r,i)+1).join("")},Pn.trimEnd=function(e,t,n){if((e=la(e))&&(n||void 0===t))return e.slice(0,Gt(e)+1);if(!e||!(t=Zr(t)))return e;var r=qt(e);return ci(r,0,Dt(r,qt(t))+1).join("")},Pn.trimStart=function(e,t,n){if((e=la(e))&&(n||void 0===t))return e.replace(G,"");if(!e||!(t=Zr(t)))return e;var r=qt(e);return ci(r,Nt(r,qt(t))).join("")},Pn.truncate=function(e,t){var n=30,r="...";if(zo(t)){var i="separator"in t?t.separator:i;n="length"in t?ia(t.length):n,r="omission"in t?Zr(t.omission):r}var s=(e=la(e)).length;if($t(e)){var o=qt(e);s=o.length}if(n>=s)return e;var a=n-Ht(r);if(a<1)return r;var l=o?ci(o,0,a).join(""):e.slice(0,a);if(void 0===i)return l+r;if(o&&(a+=l.length-a),Yo(i)){if(e.slice(a).search(i)){var u,c=l;for(i.global||(i=me(i.source,la(re.exec(i))+"g")),i.lastIndex=0;u=i.exec(c);)var h=u.index;l=l.slice(0,void 0===h?a:h)}}else if(e.indexOf(Zr(i),a)!=a){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+r},Pn.unescape=function(e){return(e=la(e))&&B.test(e)?e.replace(F,Yt):e},Pn.uniqueId=function(e){var t=++Ee;return la(e)+t},Pn.upperCase=ja,Pn.upperFirst=$a,Pn.each=ao,Pn.eachRight=lo,Pn.first=Ds,Xa(Pn,(hl={},ur(Pn,(function(e,t){xe.call(Pn.prototype,t)||(hl[t]=e)})),hl),{chain:!1}),Pn.VERSION="4.17.21",at(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Pn[e].placeholder=Pn})),at(["drop","take"],(function(e,t){Rn.prototype[e]=function(n){n=void 0===n?1:an(ia(n),0);var r=this.__filtered__&&!t?new Rn(this):this.clone();return r.__filtered__?r.__takeCount__=ln(n,r.__takeCount__):r.__views__.push({size:ln(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Rn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),at(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Rn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Xi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),at(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Rn.prototype[e]=function(){return this[n](1).value()[0]}})),at(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Rn.prototype[e]=function(){return this.__filtered__?new Rn(this):this[n](1)}})),Rn.prototype.compact=function(){return this.filter(qa)},Rn.prototype.find=function(e){return this.filter(e).head()},Rn.prototype.findLast=function(e){return this.reverse().find(e)},Rn.prototype.invokeMap=jr((function(e,t){return"function"==typeof e?new Rn(this):this.map((function(n){return br(n,e,t)}))})),Rn.prototype.reject=function(e){return this.filter(Ao(Xi(e)))},Rn.prototype.slice=function(e,t){e=ia(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Rn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=ia(t))<0?n.dropRight(-t):n.take(t-e)),n)},Rn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Rn.prototype.toArray=function(){return this.take(4294967295)},ur(Rn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Pn[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);i&&(Pn.prototype[t]=function(){var t=this.__wrapped__,o=r?[1]:arguments,a=t instanceof Rn,l=o[0],u=a||No(t),c=function(e){var t=i.apply(Pn,pt([e],o));return r&&h?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(a=u=!1);var h=this.__chain__,d=!!this.__actions__.length,f=s&&!h,p=a&&!d;if(!s&&u){t=p?t:new Rn(this);var m=e.apply(t,o);return m.__actions__.push({func:no,args:[c],thisArg:void 0}),new In(m,h)}return f&&p?e.apply(this,o):(m=this.thru(c),f?r?m.value()[0]:m.value():m)})})),at(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ve[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Pn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(No(i)?i:[],e)}return this[n]((function(n){return t.apply(No(n)?n:[],e)}))}})),ur(Rn.prototype,(function(e,t){var n=Pn[t];if(n){var r=n.name+"";xe.call(wn,r)||(wn[r]=[]),wn[r].push({name:t,func:n})}})),wn[Pi(void 0,2).name]=[{name:"wrapper",func:void 0}],Rn.prototype.clone=function(){var e=new Rn(this.__wrapped__);return e.__actions__=vi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=vi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=vi(this.__views__),e},Rn.prototype.reverse=function(){if(this.__filtered__){var e=new Rn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Rn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=No(e),r=t<0,i=n?e.length:0,s=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var s=n[r],o=s.size;switch(s.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=ln(t,e+o);break;case"takeRight":e=an(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=s.start,a=s.end,l=a-o,u=r?a:o-1,c=this.__iteratees__,h=c.length,d=0,f=ln(l,this.__takeCount__);if(!n||!r&&i==l&&f==l)return ri(e,this.__actions__);var p=[];e:for(;l--&&d<f;){for(var m=-1,g=e[u+=t];++m<h;){var y=c[m],v=y.iteratee,b=y.type,w=v(g);if(2==b)g=w;else if(!w){if(1==b)continue e;break e}}p[d++]=g}return p},Pn.prototype.at=ro,Pn.prototype.chain=function(){return to(this)},Pn.prototype.commit=function(){return new In(this.value(),this.__chain__)},Pn.prototype.next=function(){void 0===this.__values__&&(this.__values__=na(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Pn.prototype.plant=function(e){for(var t,n=this;n instanceof On;){var r=Cs(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Pn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Rn){var t=e;return this.__actions__.length&&(t=new Rn(this)),(t=t.reverse()).__actions__.push({func:no,args:[Ws],thisArg:void 0}),new In(t,this.__chain__)}return this.thru(Ws)},Pn.prototype.toJSON=Pn.prototype.valueOf=Pn.prototype.value=function(){return ri(this.__wrapped__,this.__actions__)},Pn.prototype.first=Pn.prototype.head,Xe&&(Pn.prototype[Xe]=function(){return this}),Pn}();qe._=Jt,void 0===(i=function(){return Jt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(8),n(14)(e))},function(e,t){e.exports=[[/-----BEGIN CERTIFICATE-----.*-----END CERTIFICATE-----/gm,"<certificate>"],[/-----BEGIN RSA PRIVATE KEY-----.*-----END RSA PRIVATE KEY-----/gm,"<private key>"],[/(file:\/\/)?\S+\/Contents\/Resources\/app\//gm,"$1/<path>/"],[/(file:\/\/)?([a-zA-Z]:)?\\\S+\\resources\\app\\/gm,"$1\\<path>\\"],[/(file:\/\/)?([a-zA-Z]:)?\/\S+\/resources\/app\//gm,"$1/<path>/"],[/\/(Users?)\/[^/]*\//gm,"/$1/<user>/"],[/\/(usr|home|user|users|u01|var\/users|export\/home)\/[^/]*\//gm,"/$1/<user>/"],[/\\(Users|Documents and Settings|Profiles)\\[^/\\]*\\/gm,"\\$1\\<user>\\"],[/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/gim,"<email>"],[/((1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])/gm,"<ip address>"],[/(http(s)?:\/\/)(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}(\.[a-z]{2,6})?\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)/gim,"<url>"],[/(mongodb:\/\/)(www\.)?[-a-zA-Z0-9@:%._\+~#=,]{2,256}(\.[a-z]{2,6})?\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)/gim,"<mongodb uri>"],[/#schema\/\w+\.\w+/,"#schema/<namespace>"]]},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.InterruptFlag=t.MongoshInterruptedError=void 0;const i=n(7),s=Symbol.for("@@mongosh.uncatchable");class o extends i.MongoshBaseError{constructor(){super("MongoshInterruptedError","execution was interrupted"),this[r]=!0}}t.MongoshInterruptedError=o,r=s;t.InterruptFlag=class{constructor(){this.interrupted=!1,this.onInterruptListeners=[]}isSet(){return this.interrupted}checkpoint(){if(this.interrupted)throw new o}asPromise(){if(this.interrupted)return{destroy:()=>{},promise:Promise.reject(new o)};let e;const t=new Promise((t,n)=>{e=()=>{const e=this.onInterruptListeners.indexOf(n);-1!==e&&this.onInterruptListeners.splice(e,1),n(null)},this.onInterruptListeners.push(n)});return{destroy:e,promise:t}}set(){this.interrupted=!0;const e=new o;for(const t of[...this.onInterruptListeners])t(e)}reset(){this.interrupted=!1}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransformMongoErrorPlugin=t.rephraseMongoError=void 0;const r=[{code:13435,replacement:"not primary and secondaryOk=false - consider using db.getMongo().setReadPref() or readPreference in the connection string"}];function i(e){if(!function(e){var t,n,r;return/^Mongo([A-Z].*)?Error$/.test(null!==(r=null===(n=null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)||void 0===n?void 0:n.name)&&void 0!==r?r:"")}(e))return e;const t=e,n=t.message,i=r.find(e=>e.matchMessage?"string"==typeof e.matchMessage?n.includes(e.matchMessage):e.matchMessage.test(n):void 0!==e.code&&t.code===e.code);return i&&(t.message="function"==typeof i.replacement?i.replacement(n):i.replacement),t}t.rephraseMongoError=i;t.TransformMongoErrorPlugin=class{transformError(e){return i(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7),i=n(39);t.default=class{constructor(){this._mongo=new s;return new Proxy(this,{get:(e,t)=>{if("_mongo"===t)return this._mongo;throw new r.MongoshInvalidInputError("No connected database",i.ShellApiErrors.NotConnected)}})}};class s{constructor(){return new Proxy(this,{get:()=>{throw new r.MongoshInvalidInputError("No connected database",i.ShellApiErrors.NotConnected)}})}}},function(e,t,n){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(5),s=r(n(94)),o=n(23),a=n(7),l=n(13),u=n(153);function c(e){const t=`shell-api.classes.${e}.help`,n={help:t+".description",example:t+".example",docs:t+".link",attr:[]};return new s.default(n)}t.default=function(t,n){void 0===t&&(t=o.bson);const r={};["Binary","Code","DBRef","Decimal128","Double","Int32","Long","MaxKey","MinKey","ObjectId","Timestamp","Map","BSONSymbol","BSONRegExp"].forEach(e=>{if(!(e in t))throw new a.MongoshInternalError(e+" does not exist in provided BSON package.");const n=t[e].prototype;n.serverVersions=i.ALL_SERVER_VERSIONS,n.platforms=i.ALL_PLATFORMS,n.topologies=i.ALL_TOPOLOGIES;const s=c(e);r[e]=s,n.help=()=>s,Object.setPrototypeOf(n.help,s)}),t.BSONSymbol.prototype.serverVersions=[i.ServerVersions.earliest,"1.6.0"],t.BSONSymbol.prototype.deprecated=!0;const s={DBRef:Object.assign((function(e,n,r,i){return(0,l.assertArgsDefinedType)([e,n,r],["string",!0,[void 0,"string"],[void 0,"object"]],"DBRef"),new t.DBRef(e,n,r,i)}),{...t.DBRef,prototype:t.DBRef.prototype}),Map:t.Map,bsonsize:function(e){return(0,l.assertArgsDefinedType)([e],["object"],"bsonsize"),t.calculateObjectSize(e)},MaxKey:Object.assign((function(){return new t.MaxKey}),{...t.MaxKey,toBSON:()=>new t.MaxKey,prototype:t.MaxKey.prototype}),MinKey:Object.assign((function(){return new t.MinKey}),{...t.MinKey,toBSON:()=>new t.MinKey,prototype:t.MinKey.prototype}),ObjectId:Object.assign((function(e){return(0,l.assertArgsDefinedType)([e],[[void 0,"string","number","object"]],"ObjectId"),new t.ObjectId(e)}),{...t.ObjectId,prototype:t.ObjectId.prototype}),Timestamp:Object.assign((function(e,n){return(0,l.assertArgsDefinedType)([e,n],[["number","object",void 0],[void 0,"number"]],"Timestamp"),"object"==typeof e&&null!==e&&"t"in e&&"i"in e?new t.Timestamp(new t.Long(e.i,e.t)):void 0!==n||"number"==typeof e?new t.Timestamp(new t.Long(null!=n?n:0,e)):new t.Timestamp(e)}),{...t.Timestamp,prototype:t.Timestamp.prototype}),Code:Object.assign((function(e="",n){return(0,l.assertArgsDefinedType)([e,n],[[void 0,"string","function"],[void 0,"object"]],"Code"),new t.Code(e,n)}),{...t.Code,prototype:t.Code.prototype}),NumberDecimal:Object.assign((function(e="0"){return(0,l.assertArgsDefinedType)([e],[["string","number","bson:Long","bson:Int32","bson:Decimal128"]],"NumberDecimal"),"number"==typeof e&&n("NumberDecimal: specifying a number as argument is deprecated and may lead to loss of precision, pass a string instead"),t.Decimal128.fromString(""+e)}),{prototype:t.Decimal128.prototype}),NumberInt:Object.assign((function(e="0"){return null!=e||(e="0"),(0,l.assertArgsDefinedType)([e],[["string","number","bson:Long","bson:Int32"]],"NumberInt"),new t.Int32(parseInt(""+e,10))}),{prototype:t.Int32.prototype}),NumberLong:Object.assign((function(e="0"){return null!=e||(e="0"),(0,l.assertArgsDefinedType)([e],[["string","number","bson:Long","bson:Int32"]],"NumberLong"),"number"==typeof e?(n("NumberLong: specifying a number as argument is deprecated and may lead to loss of precision, pass a string instead"),t.Long.fromNumber(e)):t.Long.fromString(""+e)}),{prototype:t.Long.prototype}),ISODate:function(e){e||(e=(new Date).toISOString());const t=e.match(/^(?<Y>\d{4})-?(?<M>\d{2})-?(?<D>\d{2})([T ](?<h>\d{2})(:?(?<m>\d{2})(:?((?<s>\d{2})(\.(?<ms>\d+))?))?)?(?<tz>Z|([+-])(\d{2}):?(\d{2})?)?)?$/);if(null!==t&&void 0!==t.groups){const{Y:e,M:n,D:r,h:i,m:s,s:o,ms:a,tz:l}=t.groups,u=new Date(`${e}-${n}-${r}T${i||"00"}:${s||"00"}:${o||"00"}.${a||"000"}${l||"Z"}`);if(u.getTime()>=-621672192e5&&u.getTime()<=0xe677d21fdbff)return u}throw new a.MongoshInvalidInputError(JSON.stringify(e)+" is not a valid ISODate",a.CommonErrors.InvalidArgument)},BinData:Object.assign((function(n,r){(0,l.assertArgsDefinedType)([n,r],["number","string"],"BinData");const i=e.from(r,"base64");return new t.Binary(i,n)}),{prototype:t.Binary.prototype}),HexData:Object.assign((function(n,r){(0,l.assertArgsDefinedType)([n,r],["number","string"],"HexData");const i=e.from(r,"hex");return new t.Binary(i,n)}),{prototype:t.Binary.prototype}),UUID:Object.assign((function(n){if(void 0===n){const e=(0,u.randomBytes)(16);e[6]=15&e[6]|64,e[8]=63&e[8]|128,n=e.toString("hex")}(0,l.assertArgsDefinedType)([n],["string"],"UUID");const r=e.from(n.replace(/-/g,""),"hex");return new t.Binary(r,t.Binary.SUBTYPE_UUID)}),{prototype:t.Binary.prototype}),MD5:Object.assign((function(n){(0,l.assertArgsDefinedType)([n],["string"],"MD5");const r=e.from(n,"hex");return new t.Binary(r,t.Binary.SUBTYPE_MD5)}),{prototype:t.Binary.prototype}),Decimal128:t.Decimal128,BSONSymbol:t.BSONSymbol,Int32:t.Int32,Long:t.Long,Binary:t.Binary,Double:t.Double,EJSON:t.EJSON,BSONRegExp:t.BSONRegExp};for(const e of Object.keys(s)){const t=r[e]||c(e);s[e].help=()=>t,Object.setPrototypeOf(s[e].help,t)}return s}}).call(this,n(4).Buffer)},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o};Object.defineProperty(t,"__esModule",{value:!0});const i=n(9),s=n(13),o=n(5),a=n(40),l=n(32);let u=class extends i.ShellApiWithMongoClass{constructor(e){super(),this._database=e}get _mongo(){return this._database._mongo}[o.asPrintable](){return`Shard class connected to ${(0,l.redactURICredentials)(this._database._mongo._uri)} via db ${this._database._name}`}_emitShardApiCall(e,t={}){this._database._mongo._instanceState.emitApiCallWithArgs({method:e,class:"Shard",arguments:t})}async enableSharding(e,t){(0,s.assertArgsDefinedType)([e,t],["string",[void 0,"string"]],"Shard.enableSharding"),this._emitShardApiCall("enableSharding",{database:e,primaryShard:t});const n={enableSharding:e};void 0!==t&&(n.primaryShard=t);try{return await this._database._runAdminCommand(n)}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=e.message+". Are you connected to mongos?"),e}}async commitReshardCollection(e){return(0,s.assertArgsDefinedType)([e],["string"],"Shard.commitReshardCollection"),this._emitShardApiCall("commitReshardCollection",{namespace:e}),await this._database._runAdminCommand({commitReshardCollection:e})}async abortReshardCollection(e){return(0,s.assertArgsDefinedType)([e],["string"],"Shard.abortReshardCollection"),this._emitShardApiCall("abortReshardCollection",{namespace:e}),await this._database._runAdminCommand({abortReshardCollection:e})}async shardCollection(e,t,n,r){return await this._runShardCollection("shardCollection",e,t,n,r)}async reshardCollection(e,t,n,r){return await this._runShardCollection("reshardCollection",e,t,n,r)}async _runShardCollection(e,t,n,r,i){(0,s.assertArgsDefinedType)([t,n,r,i],["string","object",[void 0,"boolean","object"],[void 0,"object"]],"Shard."+e),this._emitShardApiCall(e,{namespace:t,key:n,unique:r,options:i}),"object"==typeof r&&null!==r&&(i=r,r=void 0);const o={[e]:t,key:n};void 0!==r&&(o.unique=r);try{return await this._database._runAdminCommand({...o,...i})}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=e.message+". Are you connected to mongos?"),e}}async status(e=!1,t){const n=await(0,s.getPrintableShardStatus)(null!=t?t:await(0,s.getConfigDB)(this._database),e);return new a.CommandResult("StatsResult",n)}async addShard(e){return(0,s.assertArgsDefinedType)([e],["string"],"Shard.addShard"),await(0,s.getConfigDB)(this._database),this._emitShardApiCall("addShard",{url:e}),this._database._runAdminCommand({addShard:e})}async addShardToZone(e,t){return(0,s.assertArgsDefinedType)([e,t],["string","string"],"Shard.addShardToZone"),this._emitShardApiCall("addShardToZone",{shard:e,zone:t}),await(0,s.getConfigDB)(this._database),this._database._runAdminCommand({addShardToZone:e,zone:t})}async addShardTag(e,t){(0,s.assertArgsDefinedType)([e,t],["string","string"],"Shard.addShardTag"),this._emitShardApiCall("addShardTag",{shard:e,tag:t});try{return await this.addShardToZone(e,t)}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=e.message+". This method aliases to addShardToZone which exists only for server versions > 3.4."),e}}async updateZoneKeyRange(e,t,n,r){return(0,s.assertArgsDefinedType)([e,t,n,r],["string","object","object",!0],"Shard.updateZoneKeyRange"),this._emitShardApiCall("updateZoneKeyRange",{namespace:e,min:t,max:n,zone:r}),await(0,s.getConfigDB)(this._database),await this._database._runAdminCommand({updateZoneKeyRange:e,min:t,max:n,zone:r})}async addTagRange(e,t,n,r){(0,s.assertArgsDefinedType)([e,t,n,r],["string","object","object",!0],"Shard.addTagRange"),this._emitShardApiCall("addTagRange",{namespace:e,min:t,max:n,zone:r});try{return await this.updateZoneKeyRange(e,t,n,r)}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=e.message+". This method aliases to updateZoneKeyRange which exists only for server versions > 3.4."),e}}async removeRangeFromZone(e,t,n){return(0,s.assertArgsDefinedType)([e,t,n],["string","object","object"],"Shard.removeRangeFromZone"),this._emitShardApiCall("removeRangeFromZone",{ns:e,min:t,max:n}),this.updateZoneKeyRange(e,t,n,null)}async removeTagRange(e,t,n){(0,s.assertArgsDefinedType)([e,t,n],["string","object","object"],"Shard.removeTagRange"),this._emitShardApiCall("removeTagRange",{ns:e,min:t,max:n});try{return await this.updateZoneKeyRange(e,t,n,null)}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=e.message+". This method aliases to updateZoneKeyRange which exists only for server versions > 3.4."),e}}async removeShardFromZone(e,t){return(0,s.assertArgsDefinedType)([e,t],["string","string"],"Shard.removeShardFromZone"),this._emitShardApiCall("removeShardFromZone",{shard:e,zone:t}),await(0,s.getConfigDB)(this._database),await this._database._runAdminCommand({removeShardFromZone:e,zone:t})}async removeShardTag(e,t){(0,s.assertArgsDefinedType)([e,t],["string","string"],"Shard.removeShardTag"),this._emitShardApiCall("removeTagRange",{shard:e,tag:t});try{return await this.removeShardFromZone(e,t)}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=e.message+". This method aliases to removeShardFromZone which exists only for server versions > 3.4."),e}}async enableAutoSplit(){this._emitShardApiCall("enableAutoSplit",{});const e=await(0,s.getConfigDB)(this._database);return await e.getCollection("settings").updateOne({_id:"autosplit"},{$set:{enabled:!0}},{upsert:!0,writeConcern:{w:"majority",wtimeout:3e4}})}async disableAutoSplit(){this._emitShardApiCall("disableAutoSplit",{});const e=await(0,s.getConfigDB)(this._database);return await e.getCollection("settings").updateOne({_id:"autosplit"},{$set:{enabled:!1}},{upsert:!0,writeConcern:{w:"majority",wtimeout:3e4}})}async splitAt(e,t){return(0,s.assertArgsDefinedType)([e,t],["string","object"],"Shard.splitAt"),this._emitShardApiCall("splitAt",{ns:e,query:t}),this._database._runAdminCommand({split:e,middle:t})}async splitFind(e,t){return(0,s.assertArgsDefinedType)([e,t],["string","object"],"Shard.splitFind"),this._emitShardApiCall("splitFind",{ns:e,query:t}),this._database._runAdminCommand({split:e,find:t})}async moveChunk(e,t,n){return(0,s.assertArgsDefinedType)([e,t,n],["string","object","string"],"Shard.moveChunk"),this._emitShardApiCall("moveChunk",{ns:e,query:t,destination:n}),this._database._runAdminCommand({moveChunk:e,find:t,to:n})}async balancerCollectionStatus(e){return(0,s.assertArgsDefinedType)([e],["string"],"Shard.balancerCollectionStatus"),this._emitShardApiCall("balancerCollectionStatus",{ns:e}),this._database._runAdminCommand({balancerCollectionStatus:e})}async enableBalancing(e){(0,s.assertArgsDefinedType)([e],["string"],"Shard.enableBalancing"),this._emitShardApiCall("enableBalancing",{ns:e});const t=await(0,s.getConfigDB)(this._database);return await t.getCollection("collections").updateOne({_id:e},{$set:{noBalance:!1}},{writeConcern:{w:"majority",wtimeout:6e4}})}async disableBalancing(e){(0,s.assertArgsDefinedType)([e],["string"],"Shard.disableBalancing"),this._emitShardApiCall("disableBalancing",{ns:e});const t=await(0,s.getConfigDB)(this._database);return await t.getCollection("collections").updateOne({_id:e},{$set:{noBalance:!0}},{writeConcern:{w:"majority",wtimeout:6e4}})}async getBalancerState(){this._emitShardApiCall("getBalancerState",{});const e=await(0,s.getConfigDB)(this._database),t=await e.getCollection("settings").findOne({_id:"balancer"});return null==t||!t.stopped}async isBalancerRunning(){return this._emitShardApiCall("isBalancerRunning",{}),await(0,s.getConfigDB)(this._database),this._database._runAdminCommand({balancerStatus:1})}async startBalancer(e=6e4){return(0,s.assertArgsDefinedType)([e],["number"],"Shard.startBalancer"),this._emitShardApiCall("startBalancer",{timeout:e}),this._database._runAdminCommand({balancerStart:1,maxTimeMS:e})}async stopBalancer(e=6e4){return(0,s.assertArgsDefinedType)([e],["number"],"Shard.stopBalancer"),this._emitShardApiCall("stopBalancer",{timeout:e}),this._database._runAdminCommand({balancerStop:1,maxTimeMS:e})}async setBalancerState(e){return(0,s.assertArgsDefinedType)([e],["boolean"],"Shard.setBalancerState"),this._emitShardApiCall("setBalancerState",{state:e}),e?this.startBalancer():this.stopBalancer()}};r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"enableSharding",null),r([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["5.0.0",o.ServerVersions.latest])],u.prototype,"commitReshardCollection",null),r([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["5.0.0",o.ServerVersions.latest])],u.prototype,"abortReshardCollection",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"shardCollection",null),r([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["5.0.0",o.ServerVersions.latest])],u.prototype,"reshardCollection",null),r([i.returnsPromise,(0,i.apiVersions)([1])],u.prototype,"status",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"addShard",null),r([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],u.prototype,"addShardToZone",null),r([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],u.prototype,"addShardTag",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"updateZoneKeyRange",null),r([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],u.prototype,"addTagRange",null),r([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],u.prototype,"removeRangeFromZone",null),r([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],u.prototype,"removeTagRange",null),r([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],u.prototype,"removeShardFromZone",null),r([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],u.prototype,"removeShardTag",null),r([i.returnsPromise,(0,i.apiVersions)([1]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],u.prototype,"enableAutoSplit",null),r([i.returnsPromise,(0,i.apiVersions)([1]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],u.prototype,"disableAutoSplit",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"splitAt",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"splitFind",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"moveChunk",null),r([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["4.4.0",o.ServerVersions.latest])],u.prototype,"balancerCollectionStatus",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"enableBalancing",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"disableBalancing",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"getBalancerState",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"isBalancerRunning",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"startBalancer",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"stopBalancer",null),r([i.returnsPromise,(0,i.apiVersions)([])],u.prototype,"setBalancerState",null),u=r([i.shellApiClassDefault],u),t.default=u},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o};Object.defineProperty(t,"__esModule",{value:!0});const i=n(7),s=n(32),o=n(9),a=n(5),l=n(13);let u=class extends o.ShellApiWithMongoClass{constructor(e){super(),this._database=e}get _mongo(){return this._database._mongo}async initiate(e={}){return this._emitReplicaSetApiCall("initiate",{config:e}),this._database._runAdminCommand({replSetInitiate:e})}async _getConfig(){try{const e=await this._database._runAdminCommand({replSetGetConfig:1});if(void 0===e.config)throw new i.MongoshRuntimeError("Documented returned from command replSetGetConfig does not contain 'config'",i.CommonErrors.CommandFailed);return e.config}catch(e){if("CommandNotFound"===(null==e?void 0:e.codeName)||"APIStrictError"===(null==e?void 0:e.codeName)){const e=await this._database.getSiblingDB("local").getCollection("system.replset").findOne();if(null===e)throw new i.MongoshRuntimeError("No documents in local.system.replset",i.CommonErrors.CommandFailed);return e}throw e}}async config(){return this._emitReplicaSetApiCall("config",{}),this._getConfig()}async conf(){return this._emitReplicaSetApiCall("conf",{}),this._getConfig()}async reconfig(e,t={}){(0,l.assertArgsDefinedType)([e,t],["object",[void 0,"object"]],"ReplicaSet.reconfig"),this._emitReplicaSetApiCall("reconfig",{config:e,options:t});const n=async()=>{var n;const r=await this._getConfig();e.version=r.version?r.version+1:1,null!==(n=e.protocolVersion)&&void 0!==n||(e.protocolVersion=r.protocolVersion);const i={replSetReconfig:e,...t};return await this._database._runAdminCommand(i)};let r=["success",{}],i=1e3;for(let e=0;e<12;e++)try{"error"===r[0]&&(await this._instanceState.shellApi.sleep(i),i*=1.3,i>2500&&await this._instanceState.shellApi.print("Reconfig did not succeed yet, starting new attempt...")),r=["success",await n()];break}catch(e){r=["error",e]}if("error"===r[0])throw r[1];return r[1]}async reconfigForPSASet(e,t,n={}){var r;(0,l.assertArgsDefinedType)([e,t,n],["number","object",[void 0,"object"]],"ReplicaSet.reconfigForPSASet"),this._emitReplicaSetApiCall("reconfigForPSASet",{newMemberIndex:e,config:t,options:n});const s=e=>this._instanceState.shellApi.print(e),o=null===(r=t.members)||void 0===r?void 0:r[e];if(!o)throw new i.MongoshInvalidInputError(`Node at index ${e} does not exist in the new config`,i.CommonErrors.InvalidArgument);if(1!==o.votes)throw new i.MongoshInvalidInputError(`Node at index ${e} must have { votes: 1 } in the new config (actual: { votes: ${o.votes} })`,i.CommonErrors.InvalidArgument);const a=await this._getConfig(),u=a.members.find(e=>e._id===o._id);if(u){if(u.votes)throw new i.MongoshInvalidInputError(`Node at index ${e} must have { votes: 0 } in the old config (actual: { votes: ${u.votes} })`,i.CommonErrors.InvalidArgument)}else a.members.find(e=>e.host===o.host)&&await s(`Warning: Node at index ${e} has { host: "${o.host}" }, which is also present in the old config, but with a different _id field.`);const c=o.priority;await s(`Running first reconfig to give member at index ${e} { votes: 1, priority: 0 }`),o.votes=1,o.priority=0;const h=await this.reconfig(t,n);if(0===c)return await s("No second reconfig necessary because .priority = 0"),h;await s(`Running second reconfig to give member at index ${e} { priority: ${c} }`),o.priority=c;try{return await this.reconfig(t,n)}catch(e){throw await s("Second reconfig did not succeed, giving up"),await s(`Attempted command: rs.reconfig(${JSON.stringify(t,null," ")}, ${JSON.stringify(n)})`),e}}async status(){return this._emitReplicaSetApiCall("status",{}),this._database._runAdminCommand({replSetGetStatus:1})}async isMaster(){return this._emitReplicaSetApiCall("isMaster",{}),this._database.getSiblingDB("admin").isMaster()}async hello(){return this._emitReplicaSetApiCall("hello",{}),this._database.getSiblingDB("admin").hello()}async printSecondaryReplicationInfo(){return this._emitReplicaSetApiCall("printSecondaryReplicationInfo",{}),this._database.printSecondaryReplicationInfo()}printSlaveReplicationInfo(){throw new i.MongoshDeprecatedError("printSlaveReplicationInfo has been deprecated. Use printSecondaryReplicationInfo instead")}async printReplicationInfo(){return this._emitReplicaSetApiCall("printReplicationInfo",{}),this._database.printReplicationInfo()}async add(e,t){(0,l.assertArgsDefinedType)([e,t],[["string","object"],[void 0,"boolean"]],"ReplicaSet.add"),this._emitReplicaSetApiCall("add",{hostport:e,arb:t});const n=await this._getConfig();n.version++;const r=Math.max(...n.members.map(e=>e._id));let s;if("string"==typeof e)s={_id:r+1,host:e},t&&(s.arbiterOnly=!0);else{if(!0===t)throw new i.MongoshInvalidInputError("Expected first parameter to be a host-and-port string of arbiter, but got "+JSON.stringify(e),i.CommonErrors.InvalidArgument);s=e,null!==s._id&&void 0!==s._id||(s._id=r+1)}return n.members.push(s),this._database._runAdminCommand({replSetReconfig:n})}async addArb(e){return this._emitReplicaSetApiCall("addArb",{hostname:e}),this.add(e,!0)}async remove(e){(0,l.assertArgsDefinedType)([e],["string"],"ReplicaSet.remove"),this._emitReplicaSetApiCall("remove",{hostname:e});const t=await this._getConfig();t.version++;for(let n=0;n<t.members.length;n++)if(t.members[n].host===e)return t.members.splice(n,1),this._database._runAdminCommand({replSetReconfig:t});throw new i.MongoshInvalidInputError(`Couldn't find ${e} in ${JSON.stringify(t.members)}. Is ${e} a member of this replset?`,i.CommonErrors.InvalidArgument)}async freeze(e){return(0,l.assertArgsDefinedType)([e],["number"],"ReplicaSet.freeze"),this._emitReplicaSetApiCall("freeze",{secs:e}),this._database._runAdminCommand({replSetFreeze:e})}async stepDown(e,t){(0,l.assertArgsDefinedType)([e,t],[[void 0,"number"],[void 0,"number"]],"ReplicaSet.stepDown"),this._emitReplicaSetApiCall("stepDown",{stepdownSecs:e,catchUpSecs:t});const n={replSetStepDown:void 0===e?60:e};return void 0!==t&&(n.secondaryCatchUpPeriodSecs=t),this._database._runAdminCommand(n)}async syncFrom(e){return(0,l.assertArgsDefinedType)([e],["string"],"ReplicaSet.syncFrom"),this._emitReplicaSetApiCall("syncFrom",{host:e}),this._database._runAdminCommand({replSetSyncFrom:e})}async secondaryOk(){await this._mongo.setSecondaryOk()}[a.asPrintable](){return`ReplicaSet class connected to ${(0,s.redactURICredentials)(this._database._mongo._uri)} via db ${this._database._name}`}_emitReplicaSetApiCall(e,t={}){this._database._mongo._instanceState.emitApiCallWithArgs({method:e,class:"ReplicaSet",arguments:t})}};r([o.returnsPromise],u.prototype,"initiate",null),r([o.returnsPromise,(0,o.apiVersions)([1])],u.prototype,"config",null),r([o.returnsPromise,(0,o.apiVersions)([1])],u.prototype,"conf",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"reconfig",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"reconfigForPSASet",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"status",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"isMaster",null),r([o.returnsPromise,(0,o.apiVersions)([1])],u.prototype,"hello",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"printSecondaryReplicationInfo",null),r([o.deprecated,(0,o.apiVersions)([])],u.prototype,"printSlaveReplicationInfo",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"printReplicationInfo",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"add",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"addArb",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"remove",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"freeze",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"stepDown",null),r([o.returnsPromise,(0,o.apiVersions)([])],u.prototype,"syncFrom",null),r([o.deprecated,o.returnsPromise],u.prototype,"secondaryOk",null),u=r([o.shellApiClassDefault],u),t.default=u},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(9),o=n(5),a=i(n(210)),l=n(40),u=n(13),c=n(23),h=n(7),d=n(473),f=n(56),p=n(30),m=n(474),g=i(n(55)),y=Symbol.for("@@mongosh.instanceState"),v=Symbol.for("@@mongosh.loadCallNestingLevel");let b=class extends s.ShellApiClass{constructor(e){super(),this._instanceState=e,this.defaults=Object.freeze(new m.ShellUserConfig)}async set(e,t){var n,r;(0,u.assertArgsDefinedType)([e],["string"],"config.set");const{evaluationListener:i}=this._instanceState,s=(await this._allKeys()).includes(e);if(s){const r=await(null===(n=i.validateConfig)||void 0===n?void 0:n.call(i,e,t));if(r)return`Cannot set option "${e}": ${r}`}return"success"!==(s&&await(null===(r=i.setConfig)||void 0===r?void 0:r.call(i,e,t)))?`Option "${e}" is not available in this environment`:`Setting "${e}" has been changed`}async get(e){var t,n;(0,u.assertArgsDefinedType)([e],["string"],"config.get");const{evaluationListener:r}=this._instanceState;return null!==(n=await(null===(t=r.getConfig)||void 0===t?void 0:t.call(r,e)))&&void 0!==n?n:this.defaults[e]}async reset(e){var t;(0,u.assertArgsDefinedType)([e],["string"],"config.reset");const{evaluationListener:n}=this._instanceState;return"success"!==await(null===(t=n.resetConfig)||void 0===t?void 0:t.call(n,e))?`Option "${e}" cannot be changed in this environment`:`Setting "${e}" has been reset to its default value`}async _allKeys(){var e,t;const{evaluationListener:n}=this._instanceState;return null!==(t=await(null===(e=n.listConfigOptions)||void 0===e?void 0:e.call(n)))&&void 0!==t?t:Object.keys(this.defaults)}async[o.asPrintable](){return new Map(await Promise.all((await this._allKeys()).map(async e=>[e,await this.get(e)])))}};r([s.returnsPromise],b.prototype,"set",null),r([s.returnsPromise],b.prototype,"get",null),r([s.returnsPromise],b.prototype,"reset",null),b=r([s.shellApiClassDefault],b);let w=class extends s.ShellApiClass{constructor(e){super(),this[y]=e,this[v]=0,this.DBQuery=new d.DBQuery(e),this.config=new b(e)}get _instanceState(){return this[y]}get loadCallNestingLevel(){return this[v]}set loadCallNestingLevel(e){this[v]=e}use(e){return this._instanceState.currentDb._mongo.use(e)}async show(e,t){return await this._instanceState.currentDb._mongo.show(e,t)}async exit(e){var t,n;throw(0,u.assertArgsDefinedType)([e],[[void 0,"number"]],"exit"),(0,u.assertCLI)(this._instanceState.initialServiceProvider.platform,"the exit/quit commands"),await this._instanceState.close(!0),await(null===(n=(t=this._instanceState.evaluationListener).onExit)||void 0===n?void 0:n.call(t,e)),new h.MongoshInternalError(".onExit listener returned")}async quit(e){return await this.exit(e)}async Mongo(e,t,n){(0,u.assertCLI)(this._instanceState.initialServiceProvider.platform,"new Mongo connections");const r=new a.default(this._instanceState,e,t,n);return await r.connect(),this._instanceState.mongos.push(r),r}async connect(e,t,n){(0,u.assertArgsDefinedType)([e,t,n],["string",[void 0,"string"],[void 0,"string"]],"connect"),(0,u.assertCLI)(this._instanceState.initialServiceProvider.platform,"new Mongo connections");const r=new a.default(this._instanceState,e);await r.connect(t,n),this._instanceState.mongos.push(r);const i=r._serviceProvider.initialDb||c.DEFAULT_DB;return r.getDB(i)}async it(){return this._instanceState.currentCursor?await this._instanceState.currentCursor._it():new l.CursorIterationResult}version(){return n(475).version}async load(e){if((0,u.assertArgsDefinedType)([e],["string"],"load"),!this._instanceState.evaluationListener.onLoad)throw new h.MongoshUnimplementedError("load is not currently implemented for this platform",h.CommonErrors.NotImplemented);this._instanceState.messageBus.emit("mongosh:api-load-file",{nested:this.loadCallNestingLevel>0,filename:e});const{resolvedFilename:t,evaluate:n}=await this._instanceState.evaluationListener.onLoad(e),r=this._instanceState.context,i=r.__filename;r.__filename=t,r.__dirname=(0,p.dirname)(t),this.loadCallNestingLevel++;try{await n()}finally{this.loadCallNestingLevel--,i?(r.__filename=i,r.__dirname=(0,p.dirname)(i)):(delete r.__filename,delete r.__dirname)}return!0}async enableTelemetry(){var e,t;if("success"===await(null===(t=(e=this._instanceState.evaluationListener).setConfig)||void 0===t?void 0:t.call(e,"enableTelemetry",!0)))return g.default.__("cli-repl.cli-repl.enabledTelemetry")}async disableTelemetry(){var e,t;if("success"===await(null===(t=(e=this._instanceState.evaluationListener).setConfig)||void 0===t?void 0:t.call(e,"enableTelemetry",!1)))return g.default.__("cli-repl.cli-repl.disabledTelemetry")}async passwordPrompt(){const{evaluationListener:e}=this._instanceState;if(!e.onPrompt)throw new h.MongoshUnimplementedError("passwordPrompt() is not available in this shell",h.CommonErrors.NotImplemented);return await e.onPrompt("Enter password","password")}async sleep(e){return await(0,f.promisify)(setTimeout)(e)}async print(...e){var t;const{evaluationListener:n}=this._instanceState,r=await Promise.all(e.map(e=>(0,s.toShellResult)(e)));await(null===(t=n.onPrint)||void 0===t?void 0:t.call(n,r))}async printjson(...e){return this.print(...e)}async cls(){var e;const{evaluationListener:t}=this._instanceState;await(null===(e=t.onClearCommand)||void 0===e?void 0:e.call(t))}isInteractive(){return this._instanceState.isInteractive}};r([s.directShellCommand,(0,s.shellCommandCompleter)((async function(e,t){var n;if(!(t.length>2))return await e.getDatabaseCompletions(null!==(n=t[1])&&void 0!==n?n:"")}))],w.prototype,"use",null),r([s.directShellCommand,s.returnsPromise,(0,s.shellCommandCompleter)((async function(e,t){if(t.length>2)return;return"d"===t[1]?["databases"]:["databases","dbs","collections","tables","profile","users","roles","log","logs","startupWarnings","freeMonitoring","automationNotices"].filter(e=>{var n;return e.startsWith(null!==(n=t[1])&&void 0!==n?n:"")})}))],w.prototype,"show",null),r([s.directShellCommand,s.returnsPromise,(0,s.platforms)([c.ReplPlatform.CLI])],w.prototype,"exit",null),r([s.directShellCommand,s.returnsPromise,(0,s.platforms)([c.ReplPlatform.CLI])],w.prototype,"quit",null),r([s.returnsPromise,(0,s.returnType)("Mongo"),(0,s.platforms)([c.ReplPlatform.CLI])],w.prototype,"Mongo",null),r([s.returnsPromise,(0,s.returnType)("Database"),(0,s.platforms)([c.ReplPlatform.CLI])],w.prototype,"connect",null),r([s.directShellCommand,s.returnsPromise],w.prototype,"it",null),r([s.returnsPromise],w.prototype,"load",null),r([s.returnsPromise,(0,s.platforms)([c.ReplPlatform.CLI])],w.prototype,"enableTelemetry",null),r([s.returnsPromise,(0,s.platforms)([c.ReplPlatform.CLI])],w.prototype,"disableTelemetry",null),r([s.returnsPromise,(0,s.platforms)([c.ReplPlatform.CLI])],w.prototype,"passwordPrompt",null),r([s.returnsPromise],w.prototype,"sleep",null),r([s.returnsPromise],w.prototype,"print",null),r([s.returnsPromise],w.prototype,"printjson",null),r([s.directShellCommand,s.returnsPromise],w.prototype,"cls",null),w=r([s.shellApiClassDefault],w),t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateConnectionInfoFromCliArgs=t.mapCliToDriver=void 0;const r=n(467),i=n(469);Object.defineProperty(t,"mapCliToDriver",{enumerable:!0,get:function(){return i.mapCliToDriver}}),t.generateConnectionInfoFromCliArgs=function(e){const t=(0,r.generateUri)(e);return(0,i.mapCliToDriver)(e,{connectionString:t,driverOptions:{}})}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.generateUri=void 0;const i=n(7),s=r(n(55)),o=n(120),a="cli-repl.uri-generator.no-host-port";function l(e,t){if(e.host||e.port)throw new i.MongoshInvalidInputError(s.default.__(a),i.CommonErrors.InvalidArgument);if(e.gssapiServiceName&&(null==t?void 0:t.searchParams.has("authMechanismProperties"))){const n=new o.CommaAndColonSeparatedRecord(t.searchParams.get("authMechanismProperties")).get("SERVICE_NAME");if(void 0!==n&&e.gssapiServiceName!==n)throw new i.MongoshInvalidInputError(s.default.__("cli-repl.uri-generator.diverging-service-name"),i.CommonErrors.InvalidArgument)}if(null==t?void 0:t.searchParams.has("gssapiServiceName"))throw new i.MongoshInvalidInputError(s.default.__("cli-repl.uri-generator.gssapi-service-name-unsupported"),i.CommonErrors.InvalidArgument)}function u(e){const t=e.match(/[^a-zA-Z0-9.:\[\]_-]/);if(t)throw new i.MongoshInvalidInputError(s.default.__("cli-repl.uri-generator.invalid-host")+": "+t[0],i.CommonErrors.InvalidArgument)}function c(e,t){const n=e.split(",").map(e=>e.trim()).filter(e=>!!e),r=[];return n.forEach(e=>{const[n,o]=e.split(":");if(t&&void 0!==o&&o!==t)throw new i.MongoshInvalidInputError(s.default.__("cli-repl.uri-generator.host-list-port-mismatch"),i.CommonErrors.InvalidArgument);r.push(`${n}${o||t?":"+(o||t):""}`)}),r}function h(e){return e.host?(u(e.host),e.host.includes(":")?e.host.split(":")[0]:e.host):"127.0.0.1"}function d(e){if(e.host&&e.host.includes(":")){u(e.host);const t=e.host.split(":")[1];if(!e.port||e.port===t)return t;throw new i.MongoshInvalidInputError(s.default.__(a),i.CommonErrors.InvalidArgument)}return e.port?e.port:"27017"}function f(e){const t=(e=e.clone()).searchParams;return t.has("replicaSet")||t.has("directConnection")||t.has("loadBalanced")||1!==e.hosts.length||t.set("directConnection","true"),e}t.generateUri=function(e){if(e.nodb)return"";const t=function(e){var t,n,r;const s=e.connectionSpecifier,a=(null!==(t=e.host)&&void 0!==t?t:"").match(/^(?<replSetName>[^/]+)\/(?<hosts>([A-Za-z0-9._-]+(:\d+)?,?)+)$/);if(a){const{replSetName:t,hosts:n}=a.groups,r=new o.ConnectionString("mongodb://replacemeHost/"+encodeURIComponent(s||""));return r.hosts=c(n,e.port),r.searchParams.set("replicaSet",t),f(r)}const u=(null!==(n=e.host)&&void 0!==n?n:"").match(/^(?<hosts>([A-Za-z0-9._-]+(:\d+)?,?)+)$/);if(u&&(null===(r=e.host)||void 0===r?void 0:r.includes(","))){const{hosts:t}=u.groups,n=new o.ConnectionString("mongodb://replacemeHost/"+encodeURIComponent(s||""));return n.hosts=c(t,e.port),f(n)}if(!s)return new o.ConnectionString(`mongodb://${h(e)}:${d(e)}/?directConnection=true`);if(s.startsWith("mongodb+srv://")){const t=new o.ConnectionString(s);return l(e,t),t}if(s.startsWith("mongodb://")){const t=new o.ConnectionString(s);return l(e,t),f(t)}let p=/^([A-Za-z0-9][A-Za-z0-9._-]+):?(\d+)?(?:\/(\S*))?$/gi.exec(s);if(null===p){if(/[/\\. "$]/.test(s))throw new i.MongoshInvalidInputError("Invalid URI: "+s,i.CommonErrors.InvalidArgument);p=[s,s]}let m=null==p?void 0:p[1];const g=null==p?void 0:p[2];let y=null==p?void 0:p[3];!g&&!y&&m.indexOf(".")<0&&(y=m,m=void 0);(m||g)&&l(e);return f(new o.ConnectionString(`mongodb://${m||h(e)}:${g||d(e)}/${encodeURIComponent(y||"")}`))}(e);if(t.hosts.every(e=>["localhost","127.0.0.1"].includes(e.split(":")[0]))){const e=t.searchParams;e.has("serverSelectionTimeoutMS")||e.set("serverSelectionTimeoutMS","2000")}return t.toString()}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.redactConnectionString=t.redactValidConnectionString=void 0;const o=s(n(120));t.redactValidConnectionString=function(e,t){var n,r;const i=e.clone(),s=null!==(n=null==t?void 0:t.replacementString)&&void 0!==n?n:"_credentials_",a=null===(r=null==t?void 0:t.redactUsernames)||void 0===r||r;if((i.username||i.password)&&a?(i.username=s,i.password=""):i.password&&(i.password=s),i.searchParams.has("authMechanismProperties")){const e=new o.CommaAndColonSeparatedRecord(i.searchParams.get("authMechanismProperties"));e.get("AWS_SESSION_TOKEN")&&(e.set("AWS_SESSION_TOKEN",s),i.searchParams.set("authMechanismProperties",e.toString()))}return i.searchParams.has("tlsCertificateKeyFilePassword")&&i.searchParams.set("tlsCertificateKeyFilePassword",s),i.searchParams.has("proxyUsername")&&a&&i.searchParams.set("proxyUsername",s),i.searchParams.has("proxyPassword")&&i.searchParams.set("proxyPassword",s),i},t.redactConnectionString=function(e,t){var n,r;const i=null!==(n=null==t?void 0:t.replacementString)&&void 0!==n?n:"<credentials>",s=null===(r=null==t?void 0:t.redactUsernames)||void 0===r||r;let a;try{a=new o.default(e)}catch(e){}if(a)return t={...t,replacementString:"___credentials___"},a.redact(t).toString().replace(/___credentials___/g,i);const l=[s?/(?<=\/\/)(.*)(?=@)/g:/(?<=\/\/[^@]+:)(.*)(?=@)/g,/(?<=AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,/(?<=tlsCertificateKeyFilePassword=)([^&]+)/gi,s?/(?<=proxyUsername=)([^&]+)/gi:null,/(?<=proxyPassword=)([^&]+)/gi];for(const t of l)null!==t&&(e=e.replace(t,i));return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapCliToDriver=void 0;const r=n(120);function i(e,t,n){return{...e,driverOptions:{...e.driverOptions,[t]:n}}}function s(e,t,n){var r;const s=e.driverOptions.serverApi,o="string"==typeof s?{version:s}:null!==(r={...s})&&void 0!==r?r:{};return o[t]=n,i(e,"serverApi",o)}function o(e,t,n){var r;const s=null!==(r=e.driverOptions.autoEncryption)&&void 0!==r?r:{};return s[t]=n,i(e,"autoEncryption",s)}function a(e,t,n){var r,i;const s=null!==(i=null===(r=e.driverOptions.autoEncryption)||void 0===r?void 0:r.extraOptions)&&void 0!==i?i:{};return s[t]=n,o(e,"extraOptions",s)}function l(e,t,n){var r,i;const{kmsProviders:s}=null!==(r=e.driverOptions.autoEncryption)&&void 0!==r?r:{},a=null!==(i=null==s?void 0:s.aws)&&void 0!==i?i:{};return a[t]=n,o(e,"kmsProviders",{...s,aws:a})}function u(e,t,n){const i=new r.ConnectionString(e.connectionString,{looseValidation:!0}),s=i.typedSearchParams();return""===n||void 0===n?s.delete(t):s.set(t,n),{...e,connectionString:i.toString()}}function c(e,t,n){const i=new r.ConnectionString(e.connectionString,{looseValidation:!0});return i[t]=n,{...e,connectionString:i.toString()}}function h(e,t,n){const i=new r.ConnectionString(e.connectionString,{looseValidation:!0}),s=new r.CommaAndColonSeparatedRecord(i.typedSearchParams().get("authMechanismProperties"));return""===n||void 0===n?s.delete(t):s.set(t,n),u(e,"authMechanismProperties",s)}const d={apiDeprecationErrors:(e,t)=>s(e,"deprecationErrors",t),apiStrict:(e,t)=>s(e,"strict",t),apiVersion:(e,t)=>s(e,"version",t),awsAccessKeyId:(e,t)=>l(e,"accessKeyId",t),awsSecretAccessKey:(e,t)=>l(e,"secretAccessKey",t),awsSessionToken:(e,t)=>l(e,"sessionToken",t),awsIamSessionToken:(e,t)=>h(e,"AWS_SESSION_TOKEN",t),csfleLibraryPath:(e,t)=>a(e,"cryptSharedLibPath",t),cryptSharedLibPath:(e,t)=>a(e,"cryptSharedLibPath",t),gssapiServiceName:(e,t)=>h(e,"SERVICE_NAME",t),sspiRealmOverride:(e,t)=>h(e,"SERVICE_REALM",t),sspiHostnameCanonicalization:(e,t)=>h(e,"CANONICALIZE_HOST_NAME",function(e){if(""===e)return;if("true"===e||"false"===e)return"true"===e;return e}(t)),authenticationDatabase:(e,t)=>u(e,"authSource",t),authenticationMechanism:(e,t)=>u(e,"authMechanism",t),keyVaultNamespace:(e,t)=>o(e,"keyVaultNamespace",t),password:(e,t)=>c(e,"password",encodeURIComponent(t)),quiet:(e,t)=>t?i(e,"loggerLevel","error"):e,retryWrites:(e,t)=>u(e,"retryWrites",t),tls:(e,t)=>u(e,"tls",t),tlsAllowInvalidCertificates:(e,t)=>u(e,"tlsAllowInvalidCertificates",t),tlsAllowInvalidHostnames:(e,t)=>u(e,"tlsAllowInvalidHostnames",t),tlsCAFile:(e,t)=>u(e,"tlsCAFile",t),tlsCRLFile:(e,t)=>u(e,"sslCRL",t),tlsCertificateKeyFile:(e,t)=>u(e,"tlsCertificateKeyFile",t),tlsCertificateKeyFilePassword:(e,t)=>u(e,"tlsCertificateKeyFilePassword",t),tlsUseSystemCA:(e,t)=>i(e,"useSystemCA",t),username:(e,t)=>c(e,"username",encodeURIComponent(t)),verbose:(e,t)=>t?i(e,"loggerLevel","debug"):e};function f(e,t,n){var r,i;return null!==(i=null===(r=d[t])||void 0===r?void 0:r.call(d,e,n))&&void 0!==i?i:e}function p(e,t){for(const n of Object.keys(e)){const r=e[n];r&&(t=f(t,n,r))}return t}t.mapCliToDriver=p,t.default=p},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(9),o=n(23),a=n(5),l=i(n(119)),u=n(7),c=n(13);let h=class extends s.ShellApiWithMongoClass{constructor(e,t,n){super(),this._session=n,this._options=t,this._mongo=e,this._databases={},this.id=n.id}[a.asPrintable](){return this._session.id}getDatabase(e){if((0,c.assertArgsDefinedType)([e],["string"],"Session.getDatabase"),!(0,c.isValidDatabaseName)(e))throw new u.MongoshInvalidInputError("Invalid database name: "+e,u.CommonErrors.InvalidArgument);return e in this._databases||(this._databases[e]=new l.default(this._mongo,e,this)),this._databases[e]}advanceOperationTime(e){this._session.advanceOperationTime(e)}advanceClusterTime(e){this._session.advanceClusterTime(e)}async endSession(){return await this._session.endSession()}hasEnded(){return this._session.hasEnded}getClusterTime(){return this._session.clusterTime}getOperationTime(){return this._session.operationTime}getOptions(){return this._options}startTransaction(e={}){return this._session.startTransaction(e)}async commitTransaction(){return await this._session.commitTransaction()}async abortTransaction(){return await this._session.abortTransaction()}async withTransaction(e,t={}){return(0,c.assertArgsDefinedType)([e,t],["function",[void 0,"object"]]),await this._session.withTransaction(async()=>await e(),t)}};r([s.returnsPromise],h.prototype,"endSession",null),r([s.returnsPromise],h.prototype,"commitTransaction",null),r([s.returnsPromise],h.prototype,"abortTransaction",null),r([s.returnsPromise],h.prototype,"withTransaction",null),h=r([s.shellApiClassDefault,(0,s.classPlatforms)([o.ReplPlatform.CLI])],h),t.default=h},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.KeyVault=t.ClientEncryption=void 0;const i=n(9),s=n(23),o=n(13),a=n(5),l=n(32),u=n(7),c=e=>!Array.isArray(e)&&"object"==typeof e&&("masterKey"in e||"keyAltNames"in e||"keyMaterial"in e);let h=class extends i.ShellApiWithMongoClass{constructor(e){super(),this._mongo=e;const t=e._serviceProvider.fle;if(!t)throw new u.MongoshRuntimeError("FLE API is not available");const n={...this._mongo._fleOptions};delete n.schemaMap,delete n.encryptedFieldsMap,this._libmongocrypt=new t.ClientEncryption(e._serviceProvider.getRawClient(),n)}[a.asPrintable](){return"ClientEncryption class for "+(0,l.redactURICredentials)(this._mongo._uri)}async encrypt(e,t,n){let r;return r="object"==typeof n?{keyId:e,...n}:{keyId:e,algorithm:n},(0,o.assertArgsDefinedType)([e,t,r],[!0,!0,!0],"ClientEncryption.encrypt"),await this._libmongocrypt.encrypt(t,r)}async decrypt(e){return(0,o.assertArgsDefinedType)([e],[!0],"ClientEncryption.decrypt"),await this._libmongocrypt.decrypt(e)}};r([i.returnsPromise],h.prototype,"encrypt",null),r([i.returnsPromise],h.prototype,"decrypt",null),h=r([i.shellApiClassDefault,(0,i.classPlatforms)([s.ReplPlatform.CLI])],h),t.ClientEncryption=h;let d=class extends i.ShellApiWithMongoClass{constructor(e){var t,n,r;super(),this._mongo=e._mongo,this._clientEncryption=e;const i=null===(n=null===(t=this._mongo)||void 0===t?void 0:t._fleOptions)||void 0===n?void 0:n.keyVaultNamespace;if(!i)throw new u.MongoshInvalidInputError("FLE options must be passed to the Mongo object");const s=null===(r=i.match(/^(?<db>[^.]+)\.(?<coll>.+)$/))||void 0===r?void 0:r.groups;if(!s)throw new u.MongoshInvalidInputError(`Invalid keyVaultNamespace '${i}'`);const{db:o,coll:a}=s;this._keyColl=this._mongo.getDB(o).getCollection(a)}async _init(){var e;if(!(null===(e=this._mongo._fleOptions)||void 0===e?void 0:e.bypassQueryAnalysis)){try{if((await this._keyColl.getIndexKeys()).some(e=>e.keyAltNames))return}catch(e){}try{await this._keyColl.updateMany({keyAltNames:{$size:0}},{$unset:{keyAltNames:""},$currentDate:{updateDate:!0}}),await this._keyColl.createIndex({keyAltNames:1},{unique:!0,partialFilterExpression:{keyAltNames:{$exists:!0}}})}catch(e){await this._instanceState.printWarning(`Creating 'keyAltNames' index on '${this._keyColl.getFullName()}' failed: ${e.message}`)}}}[a.asPrintable](){return"KeyVault class for "+(0,l.redactURICredentials)(this._mongo._uri)}async createKey(e,t,n){let r,i,s,a;if(c(t)?(r=null==t?void 0:t.masterKey,i=null==t?void 0:t.keyAltNames,s=null==t?void 0:t.keyMaterial):(e=>!Array.isArray(e)&&"object"==typeof e&&!c(e))(t)&&(r=t),n&&(i=n),(0,o.assertArgsDefinedType)([e],[!0],"KeyVault.createKey"),"string"==typeof t){if("local"!==e||""!==t)throw new u.MongoshInvalidInputError('KeyVault.createKey does not support providing masterKey as string anymore. For AWS please use createKey("aws", { region: ..., key: ... })',u.CommonErrors.Deprecated);r=void 0}else if(Array.isArray(t)){if("local"!==e)throw new u.MongoshInvalidInputError("KeyVault.createKey requires masterKey to be given as second argument if KMS is not local",u.CommonErrors.InvalidArgument);if(i)throw new u.MongoshInvalidInputError("KeyVault.createKey was supplied with an array for the masterKey and keyAltNames - either specify keyAltNames as second argument or set undefined for masterKey",u.CommonErrors.InvalidArgument);i=t,r=void 0}return r&&(a={...null!=a?a:{},masterKey:r}),i&&(a={...null!=a?a:{},keyAltNames:i}),s&&(a={...null!=a?a:{},keyMaterial:s}),await this._clientEncryption._libmongocrypt.createDataKey(e,a)}async getKey(e){return(0,o.assertArgsDefinedType)([e],[!0],"KeyVault.getKey"),this._keyColl.find({_id:e})}async getKeyByAltName(e){return(0,o.assertArgsDefinedType)([e],["string"],"KeyVault.getKeyByAltName"),this._keyColl.find({keyAltNames:e})}async getKeys(){return this._keyColl.find({})}async deleteKey(e){return(0,o.assertArgsDefinedType)([e],[!0],"KeyVault.deleteKey"),this._keyColl.deleteOne({_id:e})}async addKeyAlternateName(e,t){return(0,o.assertArgsDefinedType)([e,t],[!0,"string"],"KeyVault.addKeyAlternateName"),this._keyColl.findAndModify({query:{_id:e},update:{$addToSet:{keyAltNames:t},$currentDate:{updateDate:!0}}})}async removeKeyAlternateName(e,t){(0,o.assertArgsDefinedType)([e,t],[!0,"string"],"KeyVault.removeKeyAlternateName");const n=await this._keyColl.findAndModify({query:{_id:e},update:{$pull:{keyAltNames:t},$currentDate:{updateDate:!0}}});return null!==n&&void 0!==n.keyAltNames&&1===n.keyAltNames.length&&n.keyAltNames[0]===t?this._keyColl.findAndModify({query:{_id:e,keyAltNames:{$size:0}},update:{$unset:{keyAltNames:""},$currentDate:{updateDate:!0}}}):n}async rewrapManyDataKey(e,t){return this._clientEncryption._libmongocrypt.rewrapManyDataKey(e,t)}async createDataKey(...e){return await this.createKey(...e)}async removeKeyAltName(...e){return await this.removeKeyAlternateName(...e)}async addKeyAltName(...e){return await this.addKeyAlternateName(...e)}};r([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"createKey",null),r([(0,i.returnType)("Cursor"),(0,i.apiVersions)([1]),i.returnsPromise],d.prototype,"getKey",null),r([(0,i.returnType)("Cursor"),(0,i.apiVersions)([1]),i.returnsPromise],d.prototype,"getKeyByAltName",null),r([(0,i.returnType)("Cursor"),(0,i.apiVersions)([1]),i.returnsPromise],d.prototype,"getKeys",null),r([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"deleteKey",null),r([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"addKeyAlternateName",null),r([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"removeKeyAlternateName",null),r([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"rewrapManyDataKey",null),r([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"createDataKey",null),r([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"removeKeyAltName",null),r([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"addKeyAltName",null),d=r([i.shellApiClassDefault,(0,i.classPlatforms)([s.ReplPlatform.CLI])],d),t.KeyVault=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAnyLogEntry=void 0,t.parseAnyLogEntry=function(e){var t;try{const n=JSON.parse(e);return{id:n.id,timestamp:null===(t=n.t)||void 0===t?void 0:t.$date,severity:n.s,component:n.c,context:n.ctx,message:n.msg,attr:n.attr}}catch(t){return function(e){const t=e.trim().match(/^(?<timestamp>\S*) *(?<severity>\S*) *(?<component>\S*) *\[(?<context>[^\]]+)\]\s*(?<message>.*)$/);if(!t)throw new Error("Could not parse line "+JSON.stringify(e));return t.groups}(e)}}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.DBQuery=void 0;const i=n(9);let s=class extends i.ShellApiClass{constructor(e){super(),this._instanceState=e}get shellBatchSize(){return this._instanceState.displayBatchSizeFromDBQuery}set shellBatchSize(e){this._instanceState.printDeprecationWarning('DBQuery.shellBatchSize is deprecated, please use config.set("displayBatchSize") instead'),this._instanceState.displayBatchSizeFromDBQuery=e}};s=r([i.shellApiClassDefault,i.classDeprecated],s),t.DBQuery=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CliUserConfigValidator=t.CliUserConfig=t.SnippetShellUserConfigValidator=t.SnippetShellUserConfig=t.ShellUserConfigValidator=t.ShellUserConfig=void 0;class r{constructor(){this.displayBatchSize=20,this.maxTimeMS=null,this.enableTelemetry=!1,this.editor=null}}t.ShellUserConfig=r;class i{static async validate(e,t){switch(e){case"displayBatchSize":return"number"!=typeof t||t<=0?e+" must be a positive integer":null;case"maxTimeMS":return null!==t&&("number"!=typeof t||t<=0)?e+" must be null or a positive integer":null;case"enableTelemetry":return"boolean"!=typeof t?e+" must be a boolean":null;case"editor":return"string"!=typeof t&&null!==t?e+" must be a string or null":null;default:return e+" is not a known config option"}}}t.ShellUserConfigValidator=i;class s extends r{constructor(){super(...arguments),this.snippetIndexSourceURLs="https://compass.mongodb.com/mongosh/snippets-index.bson.br",this.snippetRegistryURL="https://registry.npmjs.org",this.snippetAutoload=!0}}t.SnippetShellUserConfig=s;class o extends i{static async validate(e,t){switch(e){case"snippetIndexSourceURLs":return"string"!=typeof t||t.split(";").some(e=>e&&!a(e))?e+" must be a ;-separated list of valid URLs":null;case"snippetRegistryURL":return"string"==typeof t&&a(t)?null:e+" must be a valid URL";case"snippetAutoload":return"boolean"!=typeof t?e+" must be a boolean":null;default:return super.validate(e,t)}}}t.SnippetShellUserConfigValidator=o;t.CliUserConfig=class extends s{constructor(){super(...arguments),this.userId="",this.telemetryAnonymousId="",this.disableGreetingMessage=!1,this.forceDisableTelemetry=!1,this.inspectCompact=3,this.inspectDepth=6,this.historyLength=1e3,this.showStackTraces=!1,this.redactHistory="remove"}};function a(e){if("function"==typeof URL)try{return new URL(e),!0}catch(e){return!1}return!0}t.CliUserConfigValidator=class extends o{static async validate(e,t){switch(e){case"userId":case"telemetryAnonymousId":case"disableGreetingMessage":return null;case"inspectCompact":return"boolean"!=typeof t&&("number"!=typeof t||t<0)?e+" must be a boolean or a positive integer":null;case"inspectDepth":case"historyLength":return"number"!=typeof t||t<0?e+" must be a positive integer":null;case"forceDisableTelemetry":case"showStackTraces":return"boolean"!=typeof t?e+" must be a boolean":null;case"redactHistory":return"keep"!==t&&"remove"!==t&&"remove-redact"!==t?e+" must be one of 'keep', 'remove', or 'remove-redact'":null;default:return super.validate(e,t)}}}},function(e){e.exports=JSON.parse('{"name":"@mongosh/shell-api","version":"1.5.3","description":"MongoDB Shell API Classes Package","main":"lib/index.js","types":"lib/index.d.ts","config":{"unsafe-perm":true},"repository":{"type":"git","url":"git://github.com/mongodb-js/mongosh.git"},"scripts":{"compile-ts":"tsc -p tsconfig.json","pretest":"npm run compile-ts","lint":"eslint --report-unused-disable-directives \\"./{src,test}/**/*.{js,ts,tsx}\\"","check":"npm run lint && depcheck --skip-missing=true","report-missing-help":"ts-node bin/report-missing-help.ts","report-supported-api":"ts-node bin/report-supported-api.ts","test":"cross-env TS_NODE_PROJECT=../../config/tsconfig.test.json mocha -r \\"../../scripts/import-expansions.js\\" --timeout 60000 -r ts-node/register \\"./src/**/*.spec.ts\\"","test-ci":"node ../../scripts/run-if-package-requested.js npm test","test-apistrict-ci":"cross-env MONGOSH_TEST_FORCE_API_STRICT=1 npm run test-ci","prepublish":"npm run compile-ts"},"license":"Apache-2.0","publishConfig":{"access":"public"},"engines":{"node":">=14.15.1"},"precommit":["build"],"dependencies":{"@mongosh/arg-parser":"1.5.3","@mongosh/errors":"1.5.3","@mongosh/history":"1.5.3","@mongosh/i18n":"1.5.3","@mongosh/service-provider-core":"1.5.3","mongodb-redact":"^0.2.2"},"devDependencies":{"@mongosh/types":"1.5.3"},"gitHead":"05d8d14911521a51c4796041e60c54e1cb197558"}')},function(e,t,n){const r=n(52);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},function(e,t,n){const r=n(52);e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},function(e,t,n){const r=n(12);e.exports=(e,t,n,i)=>{"string"==typeof n&&(i=n,n=void 0);try{return new r(e,n).inc(t,i).version}catch(e){return null}}},function(e,t,n){const r=n(52),i=n(123);e.exports=(e,t)=>{if(i(e,t))return null;{const n=r(e),i=r(t),s=n.prerelease.length||i.prerelease.length,o=s?"pre":"",a=s?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==i[e])return o+e;return a}}},function(e,t,n){const r=n(12);e.exports=(e,t)=>new r(e,t).major},function(e,t,n){const r=n(12);e.exports=(e,t)=>new r(e,t).minor},function(e,t,n){const r=n(12);e.exports=(e,t)=>new r(e,t).patch},function(e,t,n){const r=n(52);e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},function(e,t,n){const r=n(19);e.exports=(e,t,n)=>r(t,e,n)},function(e,t,n){const r=n(19);e.exports=(e,t)=>r(e,t,!0)},function(e,t,n){const r=n(124);e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t))},function(e,t,n){const r=n(124);e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t))},function(e,t,n){const r=n(12),i=n(52),{re:s,t:o}=n(51);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=s[o.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),s[o.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;s[o.COERCERTL].lastIndex=-1}else n=e.match(s[o.COERCE]);return null===n?null:i(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)}},function(e,t,n){"use strict";const r=n(490),i=Symbol("max"),s=Symbol("length"),o=Symbol("lengthCalculator"),a=Symbol("allowStale"),l=Symbol("maxAge"),u=Symbol("dispose"),c=Symbol("noDisposeOnSet"),h=Symbol("lruList"),d=Symbol("cache"),f=Symbol("updateAgeOnGet"),p=()=>1;const m=(e,t,n)=>{const r=e[d].get(t);if(r){const t=r.value;if(g(e,t)){if(v(e,r),!e[a])return}else n&&(e[f]&&(r.value.now=Date.now()),e[h].unshiftNode(r));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[l])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[l]&&n>e[l]},y=e=>{if(e[s]>e[i])for(let t=e[h].tail;e[s]>e[i]&&null!==t;){const n=t.prev;v(e,t),t=n}},v=(e,t)=>{if(t){const n=t.value;e[u]&&e[u](n.key,n.value),e[s]-=n.length,e[d].delete(n.key),e[h].removeNode(t)}};class b{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const w=(e,t,n,r)=>{let i=n.value;g(e,i)&&(v(e,n),e[a]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[i]=e.max||1/0;const t=e.length||p;if(this[o]="function"!=typeof t?p:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[u]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[f]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,y(this)}get max(){return this[i]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[l]=e,y(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=p),e!==this[o]&&(this[o]=e,this[s]=0,this[h].forEach(e=>{e.length=this[o](e.value,e.key),this[s]+=e.length})),y(this)}get lengthCalculator(){return this[o]}get length(){return this[s]}get itemCount(){return this[h].length}rforEach(e,t){t=t||this;for(let n=this[h].tail;null!==n;){const r=n.prev;w(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[h].head;null!==n;){const r=n.next;w(this,e,n,t),n=r}}keys(){return this[h].toArray().map(e=>e.key)}values(){return this[h].toArray().map(e=>e.value)}reset(){this[u]&&this[h]&&this[h].length&&this[h].forEach(e=>this[u](e.key,e.value)),this[d]=new Map,this[h]=new r,this[s]=0}dump(){return this[h].map(e=>!g(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[h]}set(e,t,n){if((n=n||this[l])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,a=this[o](t,e);if(this[d].has(e)){if(a>this[i])return v(this,this[d].get(e)),!1;const o=this[d].get(e).value;return this[u]&&(this[c]||this[u](e,o.value)),o.now=r,o.maxAge=n,o.value=t,this[s]+=a-o.length,o.length=a,this.get(e),y(this),!0}const f=new b(e,t,a,r,n);return f.length>this[i]?(this[u]&&this[u](e,t),!1):(this[s]+=f.length,this[h].unshift(f),this[d].set(e,this[h].head),y(this),!0)}has(e){if(!this[d].has(e))return!1;const t=this[d].get(e).value;return!g(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[h].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[d].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[d].forEach((e,t)=>m(this,t,!1))}}},function(e,t,n){"use strict";function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)t.push(arguments[n]);return t}function i(e,t,n){var r=t===e.head?new a(n,null,t,e):new a(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function s(e,t){e.tail=new a(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function o(e,t){e.head=new a(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function a(e,t,n,r){if(!(this instanceof a))return new a(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=r,r.Node=a,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},r.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)s(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},r.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},r.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},r.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},r.prototype.map=function(e,t){t=t||this;for(var n=new r,i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r,i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n},r.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,s=this.head;null!==s&&i<e;i++)s=s.next;for(;null!==s&&i<t;i++,s=s.next)n.push(s.value);return n},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,s=this.tail;null!==s&&i>t;i--)s=s.prev;for(;null!==s&&i>e;i--,s=s.prev)n.push(s.value);return n},r.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,s=this.head;null!==s&&r<e;r++)s=s.next;var o=[];for(r=0;s&&r<t;r++)o.push(s.value),s=this.removeNode(s);null===s&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(r=0;r<n.length;r++)s=i(this,s,n[r]);return o},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{n(491)(r)}catch(e){}},function(e,t,n){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},function(e,t,n){const r=n(20);e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},function(e,t,n){const r=n(12),i=n(20);e.exports=(e,t,n)=>{let s=null,o=null,a=null;try{a=new i(t,n)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(s&&-1!==o.compare(e)||(s=e,o=new r(s,n)))}),s}},function(e,t,n){const r=n(12),i=n(20);e.exports=(e,t,n)=>{let s=null,o=null,a=null;try{a=new i(t,n)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(s&&1!==o.compare(e)||(s=e,o=new r(s,n)))}),s}},function(e,t,n){const r=n(12),i=n(20),s=n(74);e.exports=(e,t)=>{e=new i(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const i=e.set[t];let o=null;i.forEach(e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!s(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}),!o||n&&!s(n,o)||(n=o)}return n&&e.test(n)?n:null}},function(e,t,n){const r=n(20);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},function(e,t,n){const r=n(128);e.exports=(e,t,n)=>r(e,t,">",n)},function(e,t,n){const r=n(128);e.exports=(e,t,n)=>r(e,t,"<",n)},function(e,t,n){const r=n(20);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t))},function(e,t,n){const r=n(76),i=n(19);e.exports=(e,t,n)=>{const s=[];let o=null,a=null;const l=e.sort((e,t)=>i(e,t,n));for(const e of l){r(e,t,n)?(a=e,o||(o=e)):(a&&s.push([o,a]),a=null,o=null)}o&&s.push([o,null]);const u=[];for(const[e,t]of s)e===t?u.push(e):t||e!==l[0]?t?e===l[0]?u.push("<="+t):u.push(`${e} - ${t}`):u.push(">="+e):u.push("*");const c=u.join(" || "),h="string"==typeof t.raw?t.raw:String(t);return c.length<h.length?c:t}},function(e,t,n){const r=n(20),i=n(75),{ANY:s}=i,o=n(76),a=n(19),l=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===s){if(1===t.length&&t[0].semver===s)return!0;e=n.includePrerelease?[new i(">=0.0.0-0")]:[new i(">=0.0.0")]}if(1===t.length&&t[0].semver===s){if(n.includePrerelease)return!0;t=[new i(">=0.0.0")]}const r=new Set;let l,h,d,f,p,m,g;for(const t of e)">"===t.operator||">="===t.operator?l=u(l,t,n):"<"===t.operator||"<="===t.operator?h=c(h,t,n):r.add(t.semver);if(r.size>1)return null;if(l&&h){if(d=a(l.semver,h.semver,n),d>0)return null;if(0===d&&(">="!==l.operator||"<="!==h.operator))return null}for(const e of r){if(l&&!o(e,String(l),n))return null;if(h&&!o(e,String(h),n))return null;for(const r of t)if(!o(e,String(r),n))return!1;return!0}let y=!(!h||n.includePrerelease||!h.semver.prerelease.length)&&h.semver,v=!(!l||n.includePrerelease||!l.semver.prerelease.length)&&l.semver;y&&1===y.prerelease.length&&"<"===h.operator&&0===y.prerelease[0]&&(y=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,l)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),">"===e.operator||">="===e.operator){if(f=u(l,e,n),f===e&&f!==l)return!1}else if(">="===l.operator&&!o(l.semver,String(e),n))return!1;if(h)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if(p=c(h,e,n),p===e&&p!==h)return!1}else if("<="===h.operator&&!o(h.semver,String(e),n))return!1;if(!e.operator&&(h||l)&&0!==d)return!1}return!(l&&m&&!h&&0!==d)&&(!(h&&g&&!l&&0!==d)&&(!v&&!y))},u=(e,t,n)=>{if(!e)return t;const r=a(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},c=(e,t,n)=>{if(!e)return t;const r=a(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(const r of e.set){for(const e of t.set){const t=l(r,e,n);if(i=i||null!==t,t)continue e}if(i)return!1}return!0}},function(e,t,n){e.exports=n(129),e.exports.QueryAutoCompleter=n(129),e.exports.StageAutoCompleter=n(503),e.exports.ValidationAutoCompleter=n(504),e.exports.ACCUMULATORS=n(215),e.exports.BSON_TYPES=n(77),e.exports.EXPRESSION_OPERATORS=n(214),e.exports.CONVERSION_OPERATORS=n(213),e.exports.QUERY_OPERATORS=n(130),e.exports.STAGE_OPERATORS=n(505),e.exports.JSON_SCHEMA=n(216),e.exports.BSON_TYPE_ALIASES=n(217);const{ATLAS:r,ADL:i,ON_PREM:s,ENVS:o}=n(218);e.exports.ATLAS=r,e.exports.ADL=i,e.exports.ON_PREM=s,e.exports.ENVS=o},function(e,t,n){const r=n(121),i=n(213),s=n(214),o=n(215),a=n(77),l=n(129),u=n(131),c=s.concat(i.concat(a));e.exports=class{accumulators(){if(this.stageOperator){if("$project"===this.stageOperator)return o.filter(e=>e.projectVersion&&r.gte(this.version,e.projectVersion));if("$group"===this.stageOperator)return o}return[]}constructor(e,t,n,r){this.version=e,this.textCompleter=t,this.fields=n,this.variableFields=this.generateVariableFields(n),this.stageOperator=r,this.queryAutoCompleter=new l(e,t,n)}update(e,t){this.fields=e,this.variableFields=this.generateVariableFields(e),this.queryAutoCompleter.fields=e,this.stageOperator=t}generateVariableFields(e){return e.map(e=>({name:"$"+e.name.replace(/"/g,""),value:"$"+e.value.replace(/"/g,""),meta:e.meta,version:e.version,score:1}))}getCompletions(e,t,n,r,i){if(""===r)return i(null,[]);const s=t.getTokenAt(n.row,n.column);if("string"===s.type)return"$"===r?i(null,this.variableFields):this.textCompleter.getCompletions(e,t,n,r,i);if(s.type.includes("comment"))return i(null,[]);if(!this.stageOperator||"$match"!==this.stageOperator){const e=c.concat(this.accumulators()).concat(this.fields);return i(null,u(this.version,e,r))}this.queryAutoCompleter.getCompletions(e,t,n,r,i)}}},function(e,t,n){const r=n(130),i=n(77),s=n(216),o=n(217),a=n(131),l=r.concat(i);e.exports=class{constructor(e,t,n){this.version=e,this.textCompleter=t,this.fields=n}update(e){this.fields=e}getCompletions(e,t,n,r,i){if(""===r)return i(null,[]);if("string"===t.getTokenAt(n.row,n.column).type){const e=o.concat(this.fields);return i(null,a(this.version,e,r))}const u=l.concat(this.fields,s);return i(null,a(this.version,u,r))}}},function(e,t,n){const{ATLAS:r,ADL:i,ON_PREM:s}=n(218),o=[{name:"$addFields",value:"$addFields",label:"$addFields",score:1,env:[r,i,s],meta:"stage",version:"3.4.0",apiVersions:[1],description:"Adds new field(s) to a document with a computed value, or reassigns an existing field(s) with a computed value.",comment:"/**\n * newField: The new field name.\n * expression: The new field expression.\n */\n",snippet:"{\n ${1:newField}: ${2:expression}, ${3:...}\n}"},{name:"$bucket",value:"$bucket",label:"$bucket",score:1,env:[r,i,s],meta:"stage",version:"3.4.0",apiVersions:[1],description:"Categorizes incoming documents into groups, called buckets, based on specified boundaries.",comment:"/**\n * groupBy: The expression to group by.\n * boundaries: An array of the lower boundaries for each bucket.\n * default: The bucket name for documents that do not fall within the specified boundaries\n * output: {\n * outputN: Optional. The output object may contain a single or numerous field names used to accumulate values per bucket.\n * }\n */\n",snippet:"{\n groupBy: ${1:expression},\n boundaries: [ ${2:lowerbound}, ${3:...} ],\n default: ${4:literal},\n output: {\n ${5:outputN}: { ${6:accumulator} }, ${7:...}\n }\n}"},{name:"$bucketAuto",value:"$bucketAuto",label:"$bucketAuto",score:1,env:[r,i,s],meta:"stage",version:"3.4.0",apiVersions:[1],description:"Automatically categorizes documents into a specified number of buckets, attempting even distribution if possible.",comment:"/**\n * groupBy: The expression to group by.\n * buckets: The desired number of buckets\n * output: {\n * outputN: Optional. The output object may contain a single or numerous field names used to accumulate values per bucket.\n * }\n * granularity: Optional number series\n */\n",snippet:"{\n groupBy: ${1:expression},\n buckets: ${2:number},\n output: {\n ${3:outputN}: ${4:accumulator}, ${5:...}\n },\n granularity: '${6:string}'\n}"},{name:"$collStats",value:"$collStats",label:"$collStats",score:1,env:[r,i,s],meta:"stage",version:"3.4.0",apiVersions:[],description:"Returns statistics regarding a collection or view.",comment:"/**\n * histograms: Optional latency histograms.\n * storageStats: Optional storage stats.\n*/\n",snippet:"{\n latencyStats: {\n histograms: ${1:boolean}\n },\n storageStats: {${2:}},\n}"},{name:"$count",value:"$count",label:"$count",score:1,env:[r,i,s],meta:"stage",version:"2.2.0",apiVersions:[1],description:"Returns a count of the number of documents at this stage of the aggregation pipeline.",comment:"/**\n * Provide the field name for the count.\n */\n",snippet:"'${1:string}'"},{name:"$densify",value:"$densify",label:"$densify",score:1,env:[r,i,s],meta:"stage",version:"5.1.0",apiVersions:[1],description:"Creates new documents to eliminate the gaps in the time or numeric domain at the required granularity level.",comment:"/**\n * field: The required field to densify.\n * partitionByFields: The set of fields that acts as a compound key to define each partition.\n * range: {\n * step: The amount to increment the field value in each document.\n * unit: If specified field must evaluate to a date for every document in the collection, otherwise must evaluate to a numeric.\n * bounds: A string or array of numeric/date bounds, corresponding to the type of the field.\n * }\n */\n",snippet:"{\n field: ${1:string},\n partitionByFields: [${2:string}, ${3:string}, ...],\n range: {\n step: ${4:number},\n unit: ${5:string},\n bounds: [${6:lowerbound}, ${7:upperbound}, ...]\n }\n}"},{name:"$documents",value:"$documents",label:"$documents",score:1,env:[r],meta:"stage",version:"4.4.9",apiVersions:[1],description:"Returns literal results for a full-text search.",comment:"/**\n * expression: Any valid expression.\n */\n",snippet:"{\n ${1:expression}\n}"},{name:"$facet",value:"$facet",label:"$facet",score:1,env:[r,i,s],meta:"stage",version:"3.4.0",apiVersions:[1],description:"Allows for multiple parellel aggregations to be specified.",comment:"/**\n * outputFieldN: The first output field.\n * stageN: The first aggregation stage.\n */\n",snippet:"{\n ${1:outputFieldN}: [ ${2:stageN}, ${3:...} ]\n}"},{name:"$fill",value:"$fill",label:"$fill",score:1,env:[r,i,s],meta:"stage",version:"5.3.0",apiVersions:[1],description:"Populates null and missing field values within documents.",comment:'/**\n * sortBy: Syntax is the same as $sort, required if "method" is used in at least one output spec otherwise optional\n * partitionBy: Optional, default is a single partition. Specification is the same as _id in $group (same as partitionBy in window functions).\n * partitionByFields: Optional, set of fields that acts as a compound key to define each partition.\n * output - Required, object for each field to fill in. For a single field, can be a single object.\n * output.<field> - A field to be filled with value, if missing or null in the current document.\n */\n',snippet:"{\n sortBy: ${1:sortSpec},\n partitionBy: ${2:expression},\n partitionByFields: [${3:string}, ${4:string}, ...],\n output: {\n field1: {value: ${5:expression}},\n field2: {method: ${6:string}},\n ...\n }\n}"},{name:"$geoNear",value:"$geoNear",label:"$geoNear",score:1,env:[r,i,s],meta:"stage",version:"2.4.0",apiVersions:[1],description:"Returns documents based on proximity to a geospatial point.",comment:"/**\n * near: The point to search near.\n * distanceField: The calculated distance.\n * maxDistance: The maximum distance, in meters, documents can be before being excluded from results.\n * query: Limits results that match the query\n * includeLocs: Optional. Labels and includes the point used to match the document.\n * num: Optional. The maximum number of documents to return.\n * spherical: Defaults to false. Specifies whether to use spherical geometry.\n}",snippet:"{\n near: { type: 'Point', coordinates: [ ${1:number}, ${2:number} ] },\n distanceField: '${3:string}',\n maxDistance: ${4:number},\n query: {${5}},\n includeLocs: '${6}',\n num: ${7:number},\n spherical: ${8:boolean}\n}"},{name:"$graphLookup",value:"$graphLookup",label:"$graphLookup",score:1,env:[r,i,s],meta:"stage",version:"3.4.0",apiVersions:[1],description:"Performs a recursive search on a collection.",comment:"/**\n * from: The target collection.\n * startWith: Expression to start.\n * connectFromField: Field to connect.\n * connectToField: Field to connect to.\n * as: Name of the array field.\n * maxDepth: Optional max recursion depth.\n * depthField: Optional Name of the depth field.\n * restrictSearchWithMatch: Optional query.\n */\n",snippet:"{\n from: '${1:string}',\n startWith: ${2:expression},\n connectFromField: '${3:string}',\n connectToField: '${4:string}',\n as: '${5:string}',\n maxDepth: ${6:number},\n depthField: '${7:string}',\n restrictSearchWithMatch: {${8}}\n}"},{name:"$group",value:"$group",label:"$group",score:1,env:[r,i,s],meta:"stage",version:"2.2.0",apiVersions:[1],description:"Groups documents by a specified expression.",comment:"/**\n * _id: The id of the group.\n * fieldN: The first field name.\n */\n",snippet:"{\n _id: ${1:expression},\n ${2:fieldN}: {\n ${3:accumulatorN}: ${4:expressionN}\n }\n}"},{name:"$indexStats",value:"$indexStats",label:"$indexStats",score:1,env:[r,i,s],meta:"stage",version:"3.2.0",apiVersions:[],description:"Returns statistics regarding the use of each index for the collection.",comment:"/**\n * No parameters.\n */\n",snippet:"{}"},{name:"$limit",value:"$limit",label:"$limit",score:1,env:[r,i,s],meta:"stage",version:"2.2.0",apiVersions:[1],description:"Limits the number of documents that flow into subsequent stages.",comment:"/**\n * Provide the number of documents to limit.\n */\n",snippet:"${1:number}"},{name:"$lookup",value:"$lookup",label:"$lookup",score:1,env:[r,i,s],meta:"stage",version:"3.2.0",apiVersions:[1],description:"Performs a join between two collections.",comment:"/**\n * from: The target collection.\n * localField: The local join field.\n * foreignField: The target join field.\n * as: The name for the results.\n * pipeline: The pipeline to run on the joined collection.\n * let: Optional variables to use in the pipeline field stages.\n */\n",snippet:"{\n from: '${1:string}',\n localField: '${2:string}',\n foreignField: '${3:string}',\n as: '${4:string}'\n}"},{name:"$match",value:"$match",label:"$match",score:1,env:[r,i,s],meta:"stage",version:"2.2.0",apiVersions:[1],description:"Filters the document stream to allow only matching documents to pass through to subsequent stages.",comment:"/**\n * query: The query in MQL.\n */\n",snippet:"{\n ${1:query}\n}"},{name:"$merge",value:"$merge",label:"$merge",score:1,env:[r,i,s],meta:"stage",version:"4.1.11",apiVersions:[1],description:"Merges the resulting documents into a collection, optionally overriding existing documents.",comment:"/**\n * into: The target collection.\n * on: Fields to identify.\n * let: Defined variables.\n * whenMatched: Action for matching docs.\n * whenNotMatched: Action for non-matching docs.\n */\n",snippet:"{\n into: '${1:string}',\n on: '${2:string}',\n let: '${3:specification(s)}',\n whenMatched: '${4:string}',\n whenNotMatched: '${5:string}'\n}"},{name:"$out",value:"$out",label:"$out",score:1,env:[r,s],meta:"stage",version:"2.2.0",apiVersions:[1],description:"Writes the result of a pipeline to a new or existing collection.",comment:"/**\n * Provide the name of the output collection.\n */\n",snippet:"'${1:string}'"},{name:"$out",value:"$out",label:"$out",score:1,env:[i],meta:"stage",version:"4.0.0",apiVersions:[1],description:"Writes the result of a pipeline to an Atlas cluster or S3 bucket.",comment:"/**\n * s3Url: A S3 URL to save the data.\n * atlas: Parameters to save to Atlas.\n */\n",snippet:"{\n s3: '${1:s3url}'\n atlas: {\n db: '${2:db}',\n coll: '${3:coll}',\n projectId: '${4:projectId}',\n clusterName: '${5:clusterName}'\n }\n}"},{name:"$project",value:"$project",label:"$project",score:1,env:[r,i,s],meta:"stage",version:"2.2.0",apiVersions:[1],description:"Adds new field(s) to a document with a computed value, or reassigns an existing field(s) with a computed value. Unlike $addFields, $project can also remove fields.",comment:"/**\n * specifications: The fields to\n * include or exclude.\n */\n",snippet:"{\n ${1:specification(s)}\n}"},{name:"$redact",value:"$redact",label:"$redact",score:1,env:[r,i,s],meta:"stage",version:"2.6.0",apiVersions:[1],description:"Restricts the content for each document based on information stored in the documents themselves",comment:"/**\n * expression: Any valid expression that\n * evaluates to $$DESCEND, $$PRUNE, or $$KEEP.\n */\n",snippet:"{\n ${1:expression}\n}"},{name:"$replaceWith",value:"$replaceWith",label:"$replaceWith",score:1,env:[r,i,s],meta:"stage",version:"4.2.0",apiVersions:[1],description:"Replaces a document with the specified embedded document.",comment:"/**\n * replacementDocument: A document or string.\n */\n",snippet:"{\n newWith: ${1:replacementDocument}\n}"},{name:"$replaceRoot",value:"$replaceRoot",label:"$replaceRoot",score:1,env:[r,i,s],meta:"stage",version:"3.4.0",apiVersions:[1],description:"Replaces a document with the specified embedded document.",comment:"/**\n * replacementDocument: A document or string.\n */\n",snippet:"{\n newRoot: ${1:replacementDocument}\n}"},{name:"$sample",value:"$sample",label:"$sample",score:1,env:[r,i,s],meta:"stage",version:"3.2.0",apiVersions:[1],description:"Randomly selects the specified number of documents from its input.",comment:"/**\n * size: The number of documents to sample.\n */\n",snippet:"{\n size: ${1:number}\n}"},{name:"$search",value:"$search",label:"$search",score:1,env:[r],meta:"stage",version:"4.1.11",apiVersions:[],description:"Performs a full-text search on the specified field(s).",comment:"/** \n * index: The name of the Search index.\n * text: Analyzed search, with required fields of query and path, the analyzed field(s) to search.\n * term: Un-analyzed search.\n * compound: Combines ops.\n * span: Find in text field regions.\n * exists: Test for presence of a field.\n * near: Find near number or date.\n * range: Find in numeric or date range.\n */\n",snippet:"{\n index: '${1:string}',\n text: {\n query: '${2:string}',\n path: '${3:string}'\n }\n}"},{name:"$searchMeta",value:"$searchMeta",label:"$searchMeta",score:1,env:[r],meta:"stage",version:"4.4.9",apiVersions:[],description:"Performs a full-text search on the specified field(s) and gets back only the generated search meta data from a query.",comment:"/**\n * index: The name of the Search index.\n * count: The count of the results.\n * facet: {\n * operator: Analyzed search, with required fields of query and path, can either be replaced with the name of a valid operator.\n * facets: {\n * stringFacet: Narrows search results based on unique string values, with required fields of type and path.\n * numberFacet: Narrows search results by breaking them up into separate ranges of numbers, with required fields of type, path, and boundaries.\n * dateFacet: Narrows search results by breaking them up into separate ranges of dates, with required fields of type, path, and boundaries.\n * }\n * }\n */\n",snippet:"{\n index: ${1:string},\n facet: {\n operator: {\n text: {\n query: ${2:string},\n path: ${3:string}\n }\n },\n facets: {\n ${4:stringFacet}: {\n type: ${5:string},\n path: ${6:string},\n numBuckets: ${7:integer}\n },\n numberFacet: {\n type: 'number',\n path: ${8:string},\n boundaries: [${9:lowerbound}, ${10:upperbound}, ...],\n default: ${11:string}\n }\n }\n }\n}"},{name:"$set",value:"$set",label:"$set",score:1,env:[r,i,s],meta:"stage",version:"4.2.0",apiVersions:[1],description:"Adds new fields to documents. $set outputs documents that contain all existing fields from the input documents and newly added fields.",comment:"/**\n * field: The field name\n * expression: The expression.\n */\n",snippet:"{\n ${1:field}: ${2:expression}\n}"},{name:"$setWindowFields",value:"$setWindowFields",label:"$setWindowFields",score:1,env:[r,i,s],meta:"stage",version:"5.0.0",description:"Capable of partitioning incoming data, and can apply one or more functions to defined windows within each partition.",comment:"/**\n * partitionBy: partitioning of data.\n * sortBy: fields to sort by.\n * output: {\n * path: {\n * function: The window function to compute over the given window.\n * window: {\n * documents: A number of documents before and after the current document.\n * range: A range of possible values around the value in the current document's sortBy field.\n * unit: Specifies the units for the window bounds.\n * }\n * }\n * }\n */\n",snippet:"{\n partitionBy: ${1:expression},\n sortBy: ${2:sortSpec},\n output: {\n ${3:path}: {\n ${4:function}: ${5:functionArgs},\n window: {\n documents: [${6:lowerbound}, ${7:upperbound}],\n range: [${8:lowerbound}, ${9:upperbound}],\n unit: ${10:string}\n }\n },\n ${11:path2}: ...\n }\n}"},{name:"$skip",value:"$skip",label:"$skip",score:1,env:[r,i,s],meta:"stage",version:"2.2.0",apiVersions:[1],description:"Skips a specified number of documents before advancing to the next stage.",comment:"/**\n * Provide the number of documents to skip.\n */\n",snippet:"${1:number}"},{name:"$sort",value:"$sort",label:"$sort",score:1,env:[r,i,s],meta:"stage",version:"2.2.0",apiVersions:[1],description:"Reorders the document stream by a specified sort key and direction.",comment:"/**\n * Provide any number of field/order pairs.\n */\n",snippet:"{\n ${1:field1}: ${2:sortOrder}\n}"},{name:"$sortByCount",value:"$sortByCount",label:"$sortByCount",score:1,env:[r,i,s],meta:"stage",version:"3.4.0",apiVersions:[1],description:"Groups incoming documents based on the value of a specified expression, then computes the count of documents in each distinct group.",comment:"/**\n * expression: Grouping expression or string.\n */\n",snippet:"{\n ${1:expression}\n}"},{name:"$unionWith",value:"$unionWith",label:"$unionWith",score:1,env:[r,i,s],meta:"stage",version:"4.4.0",apiVersions:[1],description:"Perform a union with a pipeline on another collection.",comment:"/**\n * coll: The collection name.\n * pipeline: The pipeline on the other collection.\n */\n",snippet:"{\n coll: '${1:coll}',\n pipeline: [${2:pipeline}]\n}"},{name:"$unset",value:"$unset",label:"$unset",score:1,env:[r,i,s],meta:"stage",version:"4.2.0",apiVersions:[1],description:"Excludes fields from the result document.",comment:"/**\n * Provide the field name to exclude.\n * To exclude multiple fields, pass the field names in an array.\n */\n",snippet:"'${1:string}'"},{name:"$unwind",value:"$unwind",label:"$unwind",score:1,env:[r,i,s],meta:"stage",version:"2.2.0",apiVersions:[1],description:"Outputs a new document for each element in a specified array. ",comment:"/**\n * path: Path to the array field.\n * includeArrayIndex: Optional name for index.\n * preserveNullAndEmptyArrays: Optional\n * toggle to unwind null and empty values.\n */\n",snippet:"{\n path: ${1:path},\n includeArrayIndex: '${2:string}',\n preserveNullAndEmptyArrays: ${3:boolean}\n}"}],a=o.map(e=>e.name);e.exports=o,e.exports.STAGE_OPERATOR_NAMES=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShellEvaluator=void 0;const r=n(507);Object.defineProperty(t,"ShellEvaluator",{enumerable:!0,get:function(){return r.ShellEvaluator}}),t.default=r.ShellEvaluator},function(module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ShellEvaluator=void 0;const shell_api_1=__webpack_require__(44),async_rewriter2_1=__importDefault(__webpack_require__(508)),history_1=__webpack_require__(32);class ShellEvaluator{constructor(e,t=shell_api_1.toShellResult){this.hasAppliedAsyncWriterRuntimeSupport=!0,this.instanceState=e,this.resultHandler=t,this.asyncWriter=new async_rewriter2_1.default,this.hasAppliedAsyncWriterRuntimeSupport=!1}async innerEval(originalEval,input,context,filename){var _a,_b,_c,_d,_e;const{shellApi:shellApi}=this.instanceState,trimmedInput=input.trim(),argv=trimmedInput.replace(/;$/,"").split(/\s+/g),cmd=argv.shift();if((null===(_a=shellApi[cmd])||void 0===_a?void 0:_a.isDirectShellCommand)&&(null===(_b=shellApi[cmd])||void 0===_b?void 0:_b.acceptsRawInput)&&!(null!==(_c=argv[0])&&void 0!==_c?_c:"").startsWith("(")){const e=trimmedInput.replace(/^\S+\s*/,"");return shellApi[cmd](e)}if((null===(_d=shellApi[cmd])||void 0===_d?void 0:_d.isDirectShellCommand)&&!(null!==(_e=argv[0])&&void 0!==_e?_e:"").startsWith("("))return shellApi[cmd](...argv);let rewrittenInput=this.asyncWriter.process(input);const hiddenCommands=RegExp(history_1.HIDDEN_COMMANDS,"g");if(hiddenCommands.test(input)||hiddenCommands.test(rewrittenInput)||this.instanceState.messageBus.emit("mongosh:evaluate-input",{input:(0,history_1.redactSensitiveData)(trimmedInput)}),!this.hasAppliedAsyncWriterRuntimeSupport){this.hasAppliedAsyncWriterRuntimeSupport=!0;const supportCode=this.asyncWriter.runtimeSupportCode();eval(supportCode),rewrittenInput=supportCode+";\n"+rewrittenInput}try{return await originalEval(rewrittenInput,context,filename)}catch(e){throw this.instanceState.transformError(e)}}async customEval(e,t,n,r){const i=await this.innerEval(e,t,n,r);return await this.resultHandler(i)}}exports.ShellEvaluator=ShellEvaluator},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(509));t.default=i.default},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=s(n(31)),l=o(n(673)),u=o(n(674)),c=o(n(675)),h=o(n(676)),d=n(677);t.default=class{step(e,t,n=[],r={}){return(n=>e?a.transformFromAstSync(e,t,n):a.transformSync(t,n))({plugins:n,code:!1,ast:!0,cloneInputAst:!1,configFile:!1,babelrc:!1,browserslistConfigFile:!1,compact:t.length>1e4,sourceType:"script",...r})}process(e){var t,r,i,s;try{let o=null===(t=this.step(void 0,e,[n(678).default,n(679).default,n(682).default]))||void 0===t?void 0:t.ast;return o=null===(r=this.step(o,e,[u.default]))||void 0===r?void 0:r.ast,o=null===(i=this.step(o,e,[c.default]))||void 0===i?void 0:i.ast,null===(s=this.step(o,e,[[h.default,{customErrorBuilder:a.types.identifier("MongoshAsyncWriterError")}]],{code:!0,ast:!1}))||void 0===s?void 0:s.code}catch(e){const{message:t}=e;throw delete e.message,e.message=t.replace("unknown: ",""),e}}unprocessedRuntimeSupportCode(){return this.process(`\n class MongoshAsyncWriterError extends Error {\n constructor(message, codeIdentifier) {\n const code = (${JSON.stringify(d.AsyncRewriterErrors)})[codeIdentifier];\n super(\`[\${code}] \${message}\`);\n this.code = code;\n }\n }`)}runtimeSupportCode(){return l.default}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,n(222).default)("React.Component");t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!e&&/^[a-z]/.test(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[];for(let n=0;n<e.children.length;n++){let s=e.children[n];(0,r.isJSXText)(s)?(0,i.default)(s,t):((0,r.isJSXExpressionContainer)(s)&&(s=s.expression),(0,r.isJSXEmptyExpression)(s)||t.push(s))}return t};var r=n(10),i=n(513)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=e.value.split(/\r\n|\n|\r/);let i=0;for(let e=0;e<n.length;e++)n[e].match(/[^ \t]/)&&(i=e);let s="";for(let e=0;e<n.length;e++){const t=n[e],r=0===e,o=e===n.length-1,a=e===i;let l=t.replace(/\t/g," ");r||(l=l.replace(/^[ ]+/,"")),o||(l=l.replace(/[ ]+$/,"")),l&&(a||(l+=" "),s+=l)}s&&t.push((0,r.stringLiteral)(s))};var r=n(15)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=this,t=r.BUILDER_KEYS[e],n=arguments.length;if(n>t.length)throw new Error(`${e}: Too many arguments passed. Received ${n} but can receive no more than ${t.length}`);const s={type:e};for(let i=0;i<t.length;++i){const o=t[i],a=r.NODE_FIELDS[e][o];let l;i<n&&(l=arguments[i]),void 0===l&&(l=Array.isArray(a.default)?[]:a.default),s[o]=l}for(const e in s)(0,i.default)(s,e,s[e]);return s};var r=n(18),i=n(135)},function(e,t,n){"use strict";let r=null;function i(e){if(null!==r&&(r.property,1)){const e=r;return r=i.prototype=null,e}return r=i.prototype=null==e?Object.create(null):e,new i}i(),e.exports=function(e){return i(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIdentifierChar=h,t.isIdentifierName=function(e){let t=!0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(55296==(64512&r)&&n+1<e.length){const t=e.charCodeAt(++n);56320==(64512&t)&&(r=65536+((1023&r)<<10)+(1023&t))}if(t){if(t=!1,!c(r))return!1}else if(!h(r))return!1}return!t},t.isIdentifierStart=c;let r="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",i="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const s=new RegExp("["+r+"]"),o=new RegExp("["+r+i+"]");r=i=null;const a=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,482,44,11,6,17,0,322,29,19,43,1269,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4152,8,221,3,5761,15,7472,3104,541,1507,4938],l=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239];function u(e,t){let n=65536;for(let r=0,i=t.length;r<i;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function c(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&s.test(String.fromCharCode(e)):u(e,a)))}function h(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&o.test(String.fromCharCode(e)):u(e,a)||u(e,l))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isKeyword=function(e){return s.has(e)},t.isReservedWord=l,t.isStrictBindOnlyReservedWord=c,t.isStrictBindReservedWord=function(e,t){return u(e,t)||c(e)},t.isStrictReservedWord=u;const r=["implements","interface","let","package","private","protected","public","static","yield"],i=["eval","arguments"],s=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),o=new Set(r),a=new Set(i);function l(e,t){return t&&"await"===e||"enum"===e}function u(e,t){return l(e,t)||o.has(e)}function c(e){return a.has(e)}},function(e,t,n){"use strict";var r=n(34);const i=(0,r.defineAliasedType)("Flow"),s=(e,t="TypeParameterDeclaration")=>{i(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends","mixins","implements","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)(t),extends:(0,r.validateOptional)((0,r.arrayOfType)("InterfaceExtends")),mixins:(0,r.validateOptional)((0,r.arrayOfType)("InterfaceExtends")),implements:(0,r.validateOptional)((0,r.arrayOfType)("ClassImplements")),body:(0,r.validateType)("ObjectTypeAnnotation")}})};i("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,r.validateType)("FlowType")}}),i("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,r.validate)((0,r.assertValueType)("boolean"))}}),i("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TypeParameterInstantiation")}}),s("DeclareClass"),i("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),predicate:(0,r.validateOptionalType)("DeclaredPredicate")}}),s("DeclareInterface"),i("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)(["Identifier","StringLiteral"]),body:(0,r.validateType)("BlockStatement"),kind:(0,r.validateOptional)((0,r.assertOneOf)("CommonJS","ES"))}}),i("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,r.validateType)("TypeAnnotation")}}),i("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TypeParameterDeclaration"),right:(0,r.validateType)("FlowType")}}),i("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,r.validateOptionalType)("FlowType"),impltype:(0,r.validateOptionalType)("FlowType")}}),i("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier")}}),i("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:(0,r.validateOptionalType)("Flow"),specifiers:(0,r.validateOptional)((0,r.arrayOfType)(["ExportSpecifier","ExportNamespaceSpecifier"])),source:(0,r.validateOptionalType)("StringLiteral"),default:(0,r.validateOptional)((0,r.assertValueType)("boolean"))}}),i("DeclareExportAllDeclaration",{visitor:["source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:(0,r.validateType)("StringLiteral"),exportKind:(0,r.validateOptional)((0,r.assertOneOf)("type","value"))}}),i("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,r.validateType)("Flow")}}),i("ExistsTypeAnnotation",{aliases:["FlowType"]}),i("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,r.validateOptionalType)("TypeParameterDeclaration"),params:(0,r.validate)((0,r.arrayOfType)("FunctionTypeParam")),rest:(0,r.validateOptionalType)("FunctionTypeParam"),this:(0,r.validateOptionalType)("FunctionTypeParam"),returnType:(0,r.validateType)("FlowType")}}),i("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,r.validateOptionalType)("Identifier"),typeAnnotation:(0,r.validateType)("FlowType"),optional:(0,r.validateOptional)((0,r.assertValueType)("boolean"))}}),i("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,r.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,r.validateOptionalType)("TypeParameterInstantiation")}}),i("InferredPredicate",{aliases:["FlowPredicate"]}),i("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,r.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,r.validateOptionalType)("TypeParameterInstantiation")}}),s("InterfaceDeclaration"),i("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,r.validateOptional)((0,r.arrayOfType)("InterfaceExtends")),body:(0,r.validateType)("ObjectTypeAnnotation")}}),i("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,r.validate)((0,r.arrayOfType)("FlowType"))}}),i("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,r.validateType)("FlowType")}}),i("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,r.validate)((0,r.assertValueType)("number"))}}),i("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,r.validate)((0,r.arrayOfType)(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:(0,r.validateOptional)((0,r.arrayOfType)("ObjectTypeIndexer")),callProperties:(0,r.validateOptional)((0,r.arrayOfType)("ObjectTypeCallProperty")),internalSlots:(0,r.validateOptional)((0,r.arrayOfType)("ObjectTypeInternalSlot")),exact:{validate:(0,r.assertValueType)("boolean"),default:!1},inexact:(0,r.validateOptional)((0,r.assertValueType)("boolean"))}}),i("ObjectTypeInternalSlot",{visitor:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,r.validateType)("Identifier"),value:(0,r.validateType)("FlowType"),optional:(0,r.validate)((0,r.assertValueType)("boolean")),static:(0,r.validate)((0,r.assertValueType)("boolean")),method:(0,r.validate)((0,r.assertValueType)("boolean"))}}),i("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,r.validateType)("FlowType"),static:(0,r.validate)((0,r.assertValueType)("boolean"))}}),i("ObjectTypeIndexer",{visitor:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,r.validateOptionalType)("Identifier"),key:(0,r.validateType)("FlowType"),value:(0,r.validateType)("FlowType"),static:(0,r.validate)((0,r.assertValueType)("boolean")),variance:(0,r.validateOptionalType)("Variance")}}),i("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,r.validateType)(["Identifier","StringLiteral"]),value:(0,r.validateType)("FlowType"),kind:(0,r.validate)((0,r.assertOneOf)("init","get","set")),static:(0,r.validate)((0,r.assertValueType)("boolean")),proto:(0,r.validate)((0,r.assertValueType)("boolean")),optional:(0,r.validate)((0,r.assertValueType)("boolean")),variance:(0,r.validateOptionalType)("Variance"),method:(0,r.validate)((0,r.assertValueType)("boolean"))}}),i("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,r.validateType)("FlowType")}}),i("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,r.validateOptionalType)("FlowType"),impltype:(0,r.validateType)("FlowType")}}),i("QualifiedTypeIdentifier",{visitor:["id","qualification"],fields:{id:(0,r.validateType)("Identifier"),qualification:(0,r.validateType)(["Identifier","QualifiedTypeIdentifier"])}}),i("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,r.validate)((0,r.assertValueType)("string"))}}),i("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,r.validate)((0,r.arrayOfType)("FlowType"))}}),i("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,r.validateType)("FlowType")}}),i("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TypeParameterDeclaration"),right:(0,r.validateType)("FlowType")}}),i("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("FlowType")}}),i("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,r.validateType)("Expression"),typeAnnotation:(0,r.validateType)("TypeAnnotation")}}),i("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,r.validate)((0,r.assertValueType)("string")),bound:(0,r.validateOptionalType)("TypeAnnotation"),default:(0,r.validateOptionalType)("FlowType"),variance:(0,r.validateOptionalType)("Variance")}}),i("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,r.validate)((0,r.arrayOfType)("TypeParameter"))}}),i("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,r.validate)((0,r.arrayOfType)("FlowType"))}}),i("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,r.validate)((0,r.arrayOfType)("FlowType"))}}),i("Variance",{builder:["kind"],fields:{kind:(0,r.validate)((0,r.assertOneOf)("minus","plus"))}}),i("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),i("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,r.validateType)("Identifier"),body:(0,r.validateType)(["EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody"])}}),i("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,r.validate)((0,r.assertValueType)("boolean")),members:(0,r.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,r.validate)((0,r.assertValueType)("boolean"))}}),i("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,r.validate)((0,r.assertValueType)("boolean")),members:(0,r.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,r.validate)((0,r.assertValueType)("boolean"))}}),i("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,r.validate)((0,r.assertValueType)("boolean")),members:(0,r.validateArrayOfType)(["EnumStringMember","EnumDefaultedMember"]),hasUnknownMembers:(0,r.validate)((0,r.assertValueType)("boolean"))}}),i("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,r.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,r.validate)((0,r.assertValueType)("boolean"))}}),i("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,r.validateType)("Identifier"),init:(0,r.validateType)("BooleanLiteral")}}),i("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,r.validateType)("Identifier"),init:(0,r.validateType)("NumericLiteral")}}),i("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,r.validateType)("Identifier"),init:(0,r.validateType)("StringLiteral")}}),i("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,r.validateType)("Identifier")}}),i("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,r.validateType)("FlowType"),indexType:(0,r.validateType)("FlowType")}}),i("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,r.validateType)("FlowType"),indexType:(0,r.validateType)("FlowType"),optional:(0,r.validate)((0,r.assertValueType)("boolean"))}})},function(e,t,n){"use strict";var r=n(34);const i=(0,r.defineAliasedType)("JSX");i("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,r.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),i("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),i("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:{openingElement:{validate:(0,r.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,r.assertNodeType)("JSXClosingElement")},children:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))},selfClosing:{validate:(0,r.assertValueType)("boolean"),optional:!0}}}),i("JSXEmptyExpression",{}),i("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,r.assertNodeType)("Expression","JSXEmptyExpression")}}}),i("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,r.assertNodeType)("Expression")}}}),i("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,r.assertValueType)("string")}}}),i("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,r.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,r.assertNodeType)("JSXIdentifier")}}}),i("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,r.assertNodeType)("JSXIdentifier")},name:{validate:(0,r.assertNodeType)("JSXIdentifier")}}}),i("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("JSXAttribute","JSXSpreadAttribute")))},typeParameters:{validate:(0,r.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),i("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,r.assertNodeType)("Expression")}}}),i("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,r.assertValueType)("string")}}}),i("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,r.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,r.assertNodeType)("JSXClosingFragment")},children:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}}),i("JSXOpeningFragment",{aliases:["Immutable"]}),i("JSXClosingFragment",{aliases:["Immutable"]})},function(e,t,n){"use strict";var r=n(34),i=n(226);const s=(0,r.defineAliasedType)("Miscellaneous");s("Noop",{visitor:[]}),s("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:(0,r.assertNodeType)("Identifier")},expectedNode:{validate:(0,r.assertOneOf)(...i.PLACEHOLDERS)}}}),s("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,r.assertValueType)("string")}}})},function(e,t,n){"use strict";(function(e){var t=n(34);(0,t.default)("ArgumentPlaceholder",{}),(0,t.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:e.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,t.assertNodeType)("Expression")},callee:{validate:(0,t.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}}),(0,t.default)("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,t.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,t.assertNodeType)("StringLiteral")}}}),(0,t.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,t.assertNodeType)("Expression")}}}),(0,t.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,t.assertNodeType)("BlockStatement")},async:{validate:(0,t.assertValueType)("boolean"),default:!1}}}),(0,t.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,t.assertNodeType)("Identifier")}}}),(0,t.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,t.chain)((0,t.assertValueType)("array"),(0,t.assertEach)((0,t.assertNodeType)("ObjectProperty","SpreadElement")))}}}),(0,t.default)("TupleExpression",{fields:{elements:{validate:(0,t.chain)((0,t.assertValueType)("array"),(0,t.assertEach)((0,t.assertNodeType)("Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,t.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,t.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,t.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,t.assertNodeType)("Program")}},aliases:["Expression"]}),(0,t.default)("TopicReference",{aliases:["Expression"]}),(0,t.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,t.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,t.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,t.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,t.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]})}).call(this,n(3))},function(e,t,n){"use strict";var r=n(34),i=n(224),s=n(62);const o=(0,r.defineAliasedType)("TypeScript"),a=(0,r.assertValueType)("boolean"),l={returnType:{validate:(0,r.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,r.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}};o("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,r.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,r.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,r.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,r.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("Decorator"))),optional:!0}}}),o("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},i.functionDeclarationCommon,l)}),o("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},i.classMethodOrDeclareMethodCommon,l)}),o("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,r.validateType)("TSEntityName"),right:(0,r.validateType)("Identifier")}});const u={typeParameters:(0,r.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,r.validateArrayOfType)(["Identifier","RestElement"]),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation")},c={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:u};o("TSCallSignatureDeclaration",c),o("TSConstructSignatureDeclaration",c);const h={key:(0,r.validateType)("Expression"),computed:(0,r.validate)(a),optional:(0,r.validateOptional)(a)};o("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation","initializer"],fields:Object.assign({},h,{readonly:(0,r.validateOptional)(a),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation"),initializer:(0,r.validateOptionalType)("Expression"),kind:{validate:(0,r.assertOneOf)("get","set")}})}),o("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},u,h,{kind:{validate:(0,r.assertOneOf)("method","get","set")}})}),o("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,r.validateOptional)(a),static:(0,r.validateOptional)(a),parameters:(0,r.validateArrayOfType)("Identifier"),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation")}});const d=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const e of d)o(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});o("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const f={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};o("TSFunctionType",Object.assign({},f,{fields:u})),o("TSConstructorType",Object.assign({},f,{fields:Object.assign({},u,{abstract:(0,r.validateOptional)(a)})})),o("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,r.validateType)("TSEntityName"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation")}}),o("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,r.validateType)(["Identifier","TSThisType"]),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation"),asserts:(0,r.validateOptional)(a)}}),o("TSTypeQuery",{aliases:["TSType"],visitor:["exprName"],fields:{exprName:(0,r.validateType)(["TSEntityName","TSImportType"])}}),o("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,r.validateArrayOfType)("TSTypeElement")}}),o("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,r.validateType)("TSType")}}),o("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,r.validateArrayOfType)(["TSType","TSNamedTupleMember"])}}),o("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("TSType")}}),o("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("TSType")}}),o("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,r.validateType)("Identifier"),optional:{validate:a,default:!1},elementType:(0,r.validateType)("TSType")}});const p={aliases:["TSType"],visitor:["types"],fields:{types:(0,r.validateArrayOfType)("TSType")}};o("TSUnionType",p),o("TSIntersectionType",p),o("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,r.validateType)("TSType"),extendsType:(0,r.validateType)("TSType"),trueType:(0,r.validateType)("TSType"),falseType:(0,r.validateType)("TSType")}}),o("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,r.validateType)("TSTypeParameter")}}),o("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("TSType")}}),o("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0,r.validate)((0,r.assertValueType)("string")),typeAnnotation:(0,r.validateType)("TSType")}}),o("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,r.validateType)("TSType"),indexType:(0,r.validateType)("TSType")}}),o("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","typeAnnotation","nameType"],fields:{readonly:(0,r.validateOptional)(a),typeParameter:(0,r.validateType)("TSTypeParameter"),optional:(0,r.validateOptional)(a),typeAnnotation:(0,r.validateOptionalType)("TSType"),nameType:(0,r.validateOptionalType)("TSType")}}),o("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){const e=(0,r.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0,r.assertOneOf)("-"),n=(0,r.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral");function i(r,i,o){(0,s.default)("UnaryExpression",o)?(t(o,"operator",o.operator),e(o,"argument",o.argument)):n(r,i,o)}return i.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","UnaryExpression"],i}()}}}),o("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,r.validateType)("TSEntityName"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation")}}),o("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,r.validateOptional)(a),id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,r.validateOptional)((0,r.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,r.validateType)("TSInterfaceBody")}}),o("TSInterfaceBody",{visitor:["body"],fields:{body:(0,r.validateArrayOfType)("TSTypeElement")}}),o("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,r.validateOptional)(a),id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,r.validateType)("TSType")}}),o("TSAsExpression",{aliases:["Expression"],visitor:["expression","typeAnnotation"],fields:{expression:(0,r.validateType)("Expression"),typeAnnotation:(0,r.validateType)("TSType")}}),o("TSTypeAssertion",{aliases:["Expression"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,r.validateType)("TSType"),expression:(0,r.validateType)("Expression")}}),o("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,r.validateOptional)(a),const:(0,r.validateOptional)(a),id:(0,r.validateType)("Identifier"),members:(0,r.validateArrayOfType)("TSEnumMember"),initializer:(0,r.validateOptionalType)("Expression")}}),o("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,r.validateType)(["Identifier","StringLiteral"]),initializer:(0,r.validateOptionalType)("Expression")}}),o("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:(0,r.validateOptional)(a),global:(0,r.validateOptional)(a),id:(0,r.validateType)(["Identifier","StringLiteral"]),body:(0,r.validateType)(["TSModuleBlock","TSModuleDeclaration"])}}),o("TSModuleBlock",{aliases:["Scopable","Block","BlockParent"],visitor:["body"],fields:{body:(0,r.validateArrayOfType)("Statement")}}),o("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:(0,r.validateType)("StringLiteral"),qualifier:(0,r.validateOptionalType)("TSEntityName"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation")}}),o("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:(0,r.validate)(a),id:(0,r.validateType)("Identifier"),moduleReference:(0,r.validateType)(["TSEntityName","TSExternalModuleReference"]),importKind:{validate:(0,r.assertOneOf)("type","value"),optional:!0}}}),o("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,r.validateType)("StringLiteral")}}),o("TSNonNullExpression",{aliases:["Expression"],visitor:["expression"],fields:{expression:(0,r.validateType)("Expression")}}),o("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,r.validateType)("Expression")}}),o("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,r.validateType)("Identifier")}}),o("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,r.assertNodeType)("TSType")}}}),o("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("TSType")))}}}),o("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("TSTypeParameter")))}}}),o("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,r.assertValueType)("string")},constraint:{validate:(0,r.assertNodeType)("TSType"),optional:!0},default:{validate:(0,r.assertNodeType)("TSType"),optional:!0}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!(0,r.default)(e)){var t;const n=null!=(t=null==e?void 0:e.type)?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${n}"`)}};var r=n(227)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertAccessor=function(e,t){i("Accessor",e,t)},t.assertAnyTypeAnnotation=function(e,t){i("AnyTypeAnnotation",e,t)},t.assertArgumentPlaceholder=function(e,t){i("ArgumentPlaceholder",e,t)},t.assertArrayExpression=function(e,t){i("ArrayExpression",e,t)},t.assertArrayPattern=function(e,t){i("ArrayPattern",e,t)},t.assertArrayTypeAnnotation=function(e,t){i("ArrayTypeAnnotation",e,t)},t.assertArrowFunctionExpression=function(e,t){i("ArrowFunctionExpression",e,t)},t.assertAssignmentExpression=function(e,t){i("AssignmentExpression",e,t)},t.assertAssignmentPattern=function(e,t){i("AssignmentPattern",e,t)},t.assertAwaitExpression=function(e,t){i("AwaitExpression",e,t)},t.assertBigIntLiteral=function(e,t){i("BigIntLiteral",e,t)},t.assertBinary=function(e,t){i("Binary",e,t)},t.assertBinaryExpression=function(e,t){i("BinaryExpression",e,t)},t.assertBindExpression=function(e,t){i("BindExpression",e,t)},t.assertBlock=function(e,t){i("Block",e,t)},t.assertBlockParent=function(e,t){i("BlockParent",e,t)},t.assertBlockStatement=function(e,t){i("BlockStatement",e,t)},t.assertBooleanLiteral=function(e,t){i("BooleanLiteral",e,t)},t.assertBooleanLiteralTypeAnnotation=function(e,t){i("BooleanLiteralTypeAnnotation",e,t)},t.assertBooleanTypeAnnotation=function(e,t){i("BooleanTypeAnnotation",e,t)},t.assertBreakStatement=function(e,t){i("BreakStatement",e,t)},t.assertCallExpression=function(e,t){i("CallExpression",e,t)},t.assertCatchClause=function(e,t){i("CatchClause",e,t)},t.assertClass=function(e,t){i("Class",e,t)},t.assertClassAccessorProperty=function(e,t){i("ClassAccessorProperty",e,t)},t.assertClassBody=function(e,t){i("ClassBody",e,t)},t.assertClassDeclaration=function(e,t){i("ClassDeclaration",e,t)},t.assertClassExpression=function(e,t){i("ClassExpression",e,t)},t.assertClassImplements=function(e,t){i("ClassImplements",e,t)},t.assertClassMethod=function(e,t){i("ClassMethod",e,t)},t.assertClassPrivateMethod=function(e,t){i("ClassPrivateMethod",e,t)},t.assertClassPrivateProperty=function(e,t){i("ClassPrivateProperty",e,t)},t.assertClassProperty=function(e,t){i("ClassProperty",e,t)},t.assertCompletionStatement=function(e,t){i("CompletionStatement",e,t)},t.assertConditional=function(e,t){i("Conditional",e,t)},t.assertConditionalExpression=function(e,t){i("ConditionalExpression",e,t)},t.assertContinueStatement=function(e,t){i("ContinueStatement",e,t)},t.assertDebuggerStatement=function(e,t){i("DebuggerStatement",e,t)},t.assertDecimalLiteral=function(e,t){i("DecimalLiteral",e,t)},t.assertDeclaration=function(e,t){i("Declaration",e,t)},t.assertDeclareClass=function(e,t){i("DeclareClass",e,t)},t.assertDeclareExportAllDeclaration=function(e,t){i("DeclareExportAllDeclaration",e,t)},t.assertDeclareExportDeclaration=function(e,t){i("DeclareExportDeclaration",e,t)},t.assertDeclareFunction=function(e,t){i("DeclareFunction",e,t)},t.assertDeclareInterface=function(e,t){i("DeclareInterface",e,t)},t.assertDeclareModule=function(e,t){i("DeclareModule",e,t)},t.assertDeclareModuleExports=function(e,t){i("DeclareModuleExports",e,t)},t.assertDeclareOpaqueType=function(e,t){i("DeclareOpaqueType",e,t)},t.assertDeclareTypeAlias=function(e,t){i("DeclareTypeAlias",e,t)},t.assertDeclareVariable=function(e,t){i("DeclareVariable",e,t)},t.assertDeclaredPredicate=function(e,t){i("DeclaredPredicate",e,t)},t.assertDecorator=function(e,t){i("Decorator",e,t)},t.assertDirective=function(e,t){i("Directive",e,t)},t.assertDirectiveLiteral=function(e,t){i("DirectiveLiteral",e,t)},t.assertDoExpression=function(e,t){i("DoExpression",e,t)},t.assertDoWhileStatement=function(e,t){i("DoWhileStatement",e,t)},t.assertEmptyStatement=function(e,t){i("EmptyStatement",e,t)},t.assertEmptyTypeAnnotation=function(e,t){i("EmptyTypeAnnotation",e,t)},t.assertEnumBody=function(e,t){i("EnumBody",e,t)},t.assertEnumBooleanBody=function(e,t){i("EnumBooleanBody",e,t)},t.assertEnumBooleanMember=function(e,t){i("EnumBooleanMember",e,t)},t.assertEnumDeclaration=function(e,t){i("EnumDeclaration",e,t)},t.assertEnumDefaultedMember=function(e,t){i("EnumDefaultedMember",e,t)},t.assertEnumMember=function(e,t){i("EnumMember",e,t)},t.assertEnumNumberBody=function(e,t){i("EnumNumberBody",e,t)},t.assertEnumNumberMember=function(e,t){i("EnumNumberMember",e,t)},t.assertEnumStringBody=function(e,t){i("EnumStringBody",e,t)},t.assertEnumStringMember=function(e,t){i("EnumStringMember",e,t)},t.assertEnumSymbolBody=function(e,t){i("EnumSymbolBody",e,t)},t.assertExistsTypeAnnotation=function(e,t){i("ExistsTypeAnnotation",e,t)},t.assertExportAllDeclaration=function(e,t){i("ExportAllDeclaration",e,t)},t.assertExportDeclaration=function(e,t){i("ExportDeclaration",e,t)},t.assertExportDefaultDeclaration=function(e,t){i("ExportDefaultDeclaration",e,t)},t.assertExportDefaultSpecifier=function(e,t){i("ExportDefaultSpecifier",e,t)},t.assertExportNamedDeclaration=function(e,t){i("ExportNamedDeclaration",e,t)},t.assertExportNamespaceSpecifier=function(e,t){i("ExportNamespaceSpecifier",e,t)},t.assertExportSpecifier=function(e,t){i("ExportSpecifier",e,t)},t.assertExpression=function(e,t){i("Expression",e,t)},t.assertExpressionStatement=function(e,t){i("ExpressionStatement",e,t)},t.assertExpressionWrapper=function(e,t){i("ExpressionWrapper",e,t)},t.assertFile=function(e,t){i("File",e,t)},t.assertFlow=function(e,t){i("Flow",e,t)},t.assertFlowBaseAnnotation=function(e,t){i("FlowBaseAnnotation",e,t)},t.assertFlowDeclaration=function(e,t){i("FlowDeclaration",e,t)},t.assertFlowPredicate=function(e,t){i("FlowPredicate",e,t)},t.assertFlowType=function(e,t){i("FlowType",e,t)},t.assertFor=function(e,t){i("For",e,t)},t.assertForInStatement=function(e,t){i("ForInStatement",e,t)},t.assertForOfStatement=function(e,t){i("ForOfStatement",e,t)},t.assertForStatement=function(e,t){i("ForStatement",e,t)},t.assertForXStatement=function(e,t){i("ForXStatement",e,t)},t.assertFunction=function(e,t){i("Function",e,t)},t.assertFunctionDeclaration=function(e,t){i("FunctionDeclaration",e,t)},t.assertFunctionExpression=function(e,t){i("FunctionExpression",e,t)},t.assertFunctionParent=function(e,t){i("FunctionParent",e,t)},t.assertFunctionTypeAnnotation=function(e,t){i("FunctionTypeAnnotation",e,t)},t.assertFunctionTypeParam=function(e,t){i("FunctionTypeParam",e,t)},t.assertGenericTypeAnnotation=function(e,t){i("GenericTypeAnnotation",e,t)},t.assertIdentifier=function(e,t){i("Identifier",e,t)},t.assertIfStatement=function(e,t){i("IfStatement",e,t)},t.assertImmutable=function(e,t){i("Immutable",e,t)},t.assertImport=function(e,t){i("Import",e,t)},t.assertImportAttribute=function(e,t){i("ImportAttribute",e,t)},t.assertImportDeclaration=function(e,t){i("ImportDeclaration",e,t)},t.assertImportDefaultSpecifier=function(e,t){i("ImportDefaultSpecifier",e,t)},t.assertImportNamespaceSpecifier=function(e,t){i("ImportNamespaceSpecifier",e,t)},t.assertImportSpecifier=function(e,t){i("ImportSpecifier",e,t)},t.assertIndexedAccessType=function(e,t){i("IndexedAccessType",e,t)},t.assertInferredPredicate=function(e,t){i("InferredPredicate",e,t)},t.assertInterfaceDeclaration=function(e,t){i("InterfaceDeclaration",e,t)},t.assertInterfaceExtends=function(e,t){i("InterfaceExtends",e,t)},t.assertInterfaceTypeAnnotation=function(e,t){i("InterfaceTypeAnnotation",e,t)},t.assertInterpreterDirective=function(e,t){i("InterpreterDirective",e,t)},t.assertIntersectionTypeAnnotation=function(e,t){i("IntersectionTypeAnnotation",e,t)},t.assertJSX=function(e,t){i("JSX",e,t)},t.assertJSXAttribute=function(e,t){i("JSXAttribute",e,t)},t.assertJSXClosingElement=function(e,t){i("JSXClosingElement",e,t)},t.assertJSXClosingFragment=function(e,t){i("JSXClosingFragment",e,t)},t.assertJSXElement=function(e,t){i("JSXElement",e,t)},t.assertJSXEmptyExpression=function(e,t){i("JSXEmptyExpression",e,t)},t.assertJSXExpressionContainer=function(e,t){i("JSXExpressionContainer",e,t)},t.assertJSXFragment=function(e,t){i("JSXFragment",e,t)},t.assertJSXIdentifier=function(e,t){i("JSXIdentifier",e,t)},t.assertJSXMemberExpression=function(e,t){i("JSXMemberExpression",e,t)},t.assertJSXNamespacedName=function(e,t){i("JSXNamespacedName",e,t)},t.assertJSXOpeningElement=function(e,t){i("JSXOpeningElement",e,t)},t.assertJSXOpeningFragment=function(e,t){i("JSXOpeningFragment",e,t)},t.assertJSXSpreadAttribute=function(e,t){i("JSXSpreadAttribute",e,t)},t.assertJSXSpreadChild=function(e,t){i("JSXSpreadChild",e,t)},t.assertJSXText=function(e,t){i("JSXText",e,t)},t.assertLVal=function(e,t){i("LVal",e,t)},t.assertLabeledStatement=function(e,t){i("LabeledStatement",e,t)},t.assertLiteral=function(e,t){i("Literal",e,t)},t.assertLogicalExpression=function(e,t){i("LogicalExpression",e,t)},t.assertLoop=function(e,t){i("Loop",e,t)},t.assertMemberExpression=function(e,t){i("MemberExpression",e,t)},t.assertMetaProperty=function(e,t){i("MetaProperty",e,t)},t.assertMethod=function(e,t){i("Method",e,t)},t.assertMiscellaneous=function(e,t){i("Miscellaneous",e,t)},t.assertMixedTypeAnnotation=function(e,t){i("MixedTypeAnnotation",e,t)},t.assertModuleDeclaration=function(e,t){i("ModuleDeclaration",e,t)},t.assertModuleExpression=function(e,t){i("ModuleExpression",e,t)},t.assertModuleSpecifier=function(e,t){i("ModuleSpecifier",e,t)},t.assertNewExpression=function(e,t){i("NewExpression",e,t)},t.assertNoop=function(e,t){i("Noop",e,t)},t.assertNullLiteral=function(e,t){i("NullLiteral",e,t)},t.assertNullLiteralTypeAnnotation=function(e,t){i("NullLiteralTypeAnnotation",e,t)},t.assertNullableTypeAnnotation=function(e,t){i("NullableTypeAnnotation",e,t)},t.assertNumberLiteral=function(e,t){console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),i("NumberLiteral",e,t)},t.assertNumberLiteralTypeAnnotation=function(e,t){i("NumberLiteralTypeAnnotation",e,t)},t.assertNumberTypeAnnotation=function(e,t){i("NumberTypeAnnotation",e,t)},t.assertNumericLiteral=function(e,t){i("NumericLiteral",e,t)},t.assertObjectExpression=function(e,t){i("ObjectExpression",e,t)},t.assertObjectMember=function(e,t){i("ObjectMember",e,t)},t.assertObjectMethod=function(e,t){i("ObjectMethod",e,t)},t.assertObjectPattern=function(e,t){i("ObjectPattern",e,t)},t.assertObjectProperty=function(e,t){i("ObjectProperty",e,t)},t.assertObjectTypeAnnotation=function(e,t){i("ObjectTypeAnnotation",e,t)},t.assertObjectTypeCallProperty=function(e,t){i("ObjectTypeCallProperty",e,t)},t.assertObjectTypeIndexer=function(e,t){i("ObjectTypeIndexer",e,t)},t.assertObjectTypeInternalSlot=function(e,t){i("ObjectTypeInternalSlot",e,t)},t.assertObjectTypeProperty=function(e,t){i("ObjectTypeProperty",e,t)},t.assertObjectTypeSpreadProperty=function(e,t){i("ObjectTypeSpreadProperty",e,t)},t.assertOpaqueType=function(e,t){i("OpaqueType",e,t)},t.assertOptionalCallExpression=function(e,t){i("OptionalCallExpression",e,t)},t.assertOptionalIndexedAccessType=function(e,t){i("OptionalIndexedAccessType",e,t)},t.assertOptionalMemberExpression=function(e,t){i("OptionalMemberExpression",e,t)},t.assertParenthesizedExpression=function(e,t){i("ParenthesizedExpression",e,t)},t.assertPattern=function(e,t){i("Pattern",e,t)},t.assertPatternLike=function(e,t){i("PatternLike",e,t)},t.assertPipelineBareFunction=function(e,t){i("PipelineBareFunction",e,t)},t.assertPipelinePrimaryTopicReference=function(e,t){i("PipelinePrimaryTopicReference",e,t)},t.assertPipelineTopicExpression=function(e,t){i("PipelineTopicExpression",e,t)},t.assertPlaceholder=function(e,t){i("Placeholder",e,t)},t.assertPrivate=function(e,t){i("Private",e,t)},t.assertPrivateName=function(e,t){i("PrivateName",e,t)},t.assertProgram=function(e,t){i("Program",e,t)},t.assertProperty=function(e,t){i("Property",e,t)},t.assertPureish=function(e,t){i("Pureish",e,t)},t.assertQualifiedTypeIdentifier=function(e,t){i("QualifiedTypeIdentifier",e,t)},t.assertRecordExpression=function(e,t){i("RecordExpression",e,t)},t.assertRegExpLiteral=function(e,t){i("RegExpLiteral",e,t)},t.assertRegexLiteral=function(e,t){console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),i("RegexLiteral",e,t)},t.assertRestElement=function(e,t){i("RestElement",e,t)},t.assertRestProperty=function(e,t){console.trace("The node type RestProperty has been renamed to RestElement"),i("RestProperty",e,t)},t.assertReturnStatement=function(e,t){i("ReturnStatement",e,t)},t.assertScopable=function(e,t){i("Scopable",e,t)},t.assertSequenceExpression=function(e,t){i("SequenceExpression",e,t)},t.assertSpreadElement=function(e,t){i("SpreadElement",e,t)},t.assertSpreadProperty=function(e,t){console.trace("The node type SpreadProperty has been renamed to SpreadElement"),i("SpreadProperty",e,t)},t.assertStandardized=function(e,t){i("Standardized",e,t)},t.assertStatement=function(e,t){i("Statement",e,t)},t.assertStaticBlock=function(e,t){i("StaticBlock",e,t)},t.assertStringLiteral=function(e,t){i("StringLiteral",e,t)},t.assertStringLiteralTypeAnnotation=function(e,t){i("StringLiteralTypeAnnotation",e,t)},t.assertStringTypeAnnotation=function(e,t){i("StringTypeAnnotation",e,t)},t.assertSuper=function(e,t){i("Super",e,t)},t.assertSwitchCase=function(e,t){i("SwitchCase",e,t)},t.assertSwitchStatement=function(e,t){i("SwitchStatement",e,t)},t.assertSymbolTypeAnnotation=function(e,t){i("SymbolTypeAnnotation",e,t)},t.assertTSAnyKeyword=function(e,t){i("TSAnyKeyword",e,t)},t.assertTSArrayType=function(e,t){i("TSArrayType",e,t)},t.assertTSAsExpression=function(e,t){i("TSAsExpression",e,t)},t.assertTSBaseType=function(e,t){i("TSBaseType",e,t)},t.assertTSBigIntKeyword=function(e,t){i("TSBigIntKeyword",e,t)},t.assertTSBooleanKeyword=function(e,t){i("TSBooleanKeyword",e,t)},t.assertTSCallSignatureDeclaration=function(e,t){i("TSCallSignatureDeclaration",e,t)},t.assertTSConditionalType=function(e,t){i("TSConditionalType",e,t)},t.assertTSConstructSignatureDeclaration=function(e,t){i("TSConstructSignatureDeclaration",e,t)},t.assertTSConstructorType=function(e,t){i("TSConstructorType",e,t)},t.assertTSDeclareFunction=function(e,t){i("TSDeclareFunction",e,t)},t.assertTSDeclareMethod=function(e,t){i("TSDeclareMethod",e,t)},t.assertTSEntityName=function(e,t){i("TSEntityName",e,t)},t.assertTSEnumDeclaration=function(e,t){i("TSEnumDeclaration",e,t)},t.assertTSEnumMember=function(e,t){i("TSEnumMember",e,t)},t.assertTSExportAssignment=function(e,t){i("TSExportAssignment",e,t)},t.assertTSExpressionWithTypeArguments=function(e,t){i("TSExpressionWithTypeArguments",e,t)},t.assertTSExternalModuleReference=function(e,t){i("TSExternalModuleReference",e,t)},t.assertTSFunctionType=function(e,t){i("TSFunctionType",e,t)},t.assertTSImportEqualsDeclaration=function(e,t){i("TSImportEqualsDeclaration",e,t)},t.assertTSImportType=function(e,t){i("TSImportType",e,t)},t.assertTSIndexSignature=function(e,t){i("TSIndexSignature",e,t)},t.assertTSIndexedAccessType=function(e,t){i("TSIndexedAccessType",e,t)},t.assertTSInferType=function(e,t){i("TSInferType",e,t)},t.assertTSInterfaceBody=function(e,t){i("TSInterfaceBody",e,t)},t.assertTSInterfaceDeclaration=function(e,t){i("TSInterfaceDeclaration",e,t)},t.assertTSIntersectionType=function(e,t){i("TSIntersectionType",e,t)},t.assertTSIntrinsicKeyword=function(e,t){i("TSIntrinsicKeyword",e,t)},t.assertTSLiteralType=function(e,t){i("TSLiteralType",e,t)},t.assertTSMappedType=function(e,t){i("TSMappedType",e,t)},t.assertTSMethodSignature=function(e,t){i("TSMethodSignature",e,t)},t.assertTSModuleBlock=function(e,t){i("TSModuleBlock",e,t)},t.assertTSModuleDeclaration=function(e,t){i("TSModuleDeclaration",e,t)},t.assertTSNamedTupleMember=function(e,t){i("TSNamedTupleMember",e,t)},t.assertTSNamespaceExportDeclaration=function(e,t){i("TSNamespaceExportDeclaration",e,t)},t.assertTSNeverKeyword=function(e,t){i("TSNeverKeyword",e,t)},t.assertTSNonNullExpression=function(e,t){i("TSNonNullExpression",e,t)},t.assertTSNullKeyword=function(e,t){i("TSNullKeyword",e,t)},t.assertTSNumberKeyword=function(e,t){i("TSNumberKeyword",e,t)},t.assertTSObjectKeyword=function(e,t){i("TSObjectKeyword",e,t)},t.assertTSOptionalType=function(e,t){i("TSOptionalType",e,t)},t.assertTSParameterProperty=function(e,t){i("TSParameterProperty",e,t)},t.assertTSParenthesizedType=function(e,t){i("TSParenthesizedType",e,t)},t.assertTSPropertySignature=function(e,t){i("TSPropertySignature",e,t)},t.assertTSQualifiedName=function(e,t){i("TSQualifiedName",e,t)},t.assertTSRestType=function(e,t){i("TSRestType",e,t)},t.assertTSStringKeyword=function(e,t){i("TSStringKeyword",e,t)},t.assertTSSymbolKeyword=function(e,t){i("TSSymbolKeyword",e,t)},t.assertTSThisType=function(e,t){i("TSThisType",e,t)},t.assertTSTupleType=function(e,t){i("TSTupleType",e,t)},t.assertTSType=function(e,t){i("TSType",e,t)},t.assertTSTypeAliasDeclaration=function(e,t){i("TSTypeAliasDeclaration",e,t)},t.assertTSTypeAnnotation=function(e,t){i("TSTypeAnnotation",e,t)},t.assertTSTypeAssertion=function(e,t){i("TSTypeAssertion",e,t)},t.assertTSTypeElement=function(e,t){i("TSTypeElement",e,t)},t.assertTSTypeLiteral=function(e,t){i("TSTypeLiteral",e,t)},t.assertTSTypeOperator=function(e,t){i("TSTypeOperator",e,t)},t.assertTSTypeParameter=function(e,t){i("TSTypeParameter",e,t)},t.assertTSTypeParameterDeclaration=function(e,t){i("TSTypeParameterDeclaration",e,t)},t.assertTSTypeParameterInstantiation=function(e,t){i("TSTypeParameterInstantiation",e,t)},t.assertTSTypePredicate=function(e,t){i("TSTypePredicate",e,t)},t.assertTSTypeQuery=function(e,t){i("TSTypeQuery",e,t)},t.assertTSTypeReference=function(e,t){i("TSTypeReference",e,t)},t.assertTSUndefinedKeyword=function(e,t){i("TSUndefinedKeyword",e,t)},t.assertTSUnionType=function(e,t){i("TSUnionType",e,t)},t.assertTSUnknownKeyword=function(e,t){i("TSUnknownKeyword",e,t)},t.assertTSVoidKeyword=function(e,t){i("TSVoidKeyword",e,t)},t.assertTaggedTemplateExpression=function(e,t){i("TaggedTemplateExpression",e,t)},t.assertTemplateElement=function(e,t){i("TemplateElement",e,t)},t.assertTemplateLiteral=function(e,t){i("TemplateLiteral",e,t)},t.assertTerminatorless=function(e,t){i("Terminatorless",e,t)},t.assertThisExpression=function(e,t){i("ThisExpression",e,t)},t.assertThisTypeAnnotation=function(e,t){i("ThisTypeAnnotation",e,t)},t.assertThrowStatement=function(e,t){i("ThrowStatement",e,t)},t.assertTopicReference=function(e,t){i("TopicReference",e,t)},t.assertTryStatement=function(e,t){i("TryStatement",e,t)},t.assertTupleExpression=function(e,t){i("TupleExpression",e,t)},t.assertTupleTypeAnnotation=function(e,t){i("TupleTypeAnnotation",e,t)},t.assertTypeAlias=function(e,t){i("TypeAlias",e,t)},t.assertTypeAnnotation=function(e,t){i("TypeAnnotation",e,t)},t.assertTypeCastExpression=function(e,t){i("TypeCastExpression",e,t)},t.assertTypeParameter=function(e,t){i("TypeParameter",e,t)},t.assertTypeParameterDeclaration=function(e,t){i("TypeParameterDeclaration",e,t)},t.assertTypeParameterInstantiation=function(e,t){i("TypeParameterInstantiation",e,t)},t.assertTypeScript=function(e,t){i("TypeScript",e,t)},t.assertTypeofTypeAnnotation=function(e,t){i("TypeofTypeAnnotation",e,t)},t.assertUnaryExpression=function(e,t){i("UnaryExpression",e,t)},t.assertUnaryLike=function(e,t){i("UnaryLike",e,t)},t.assertUnionTypeAnnotation=function(e,t){i("UnionTypeAnnotation",e,t)},t.assertUpdateExpression=function(e,t){i("UpdateExpression",e,t)},t.assertUserWhitespacable=function(e,t){i("UserWhitespacable",e,t)},t.assertV8IntrinsicIdentifier=function(e,t){i("V8IntrinsicIdentifier",e,t)},t.assertVariableDeclaration=function(e,t){i("VariableDeclaration",e,t)},t.assertVariableDeclarator=function(e,t){i("VariableDeclarator",e,t)},t.assertVariance=function(e,t){i("Variance",e,t)},t.assertVoidTypeAnnotation=function(e,t){i("VoidTypeAnnotation",e,t)},t.assertWhile=function(e,t){i("While",e,t)},t.assertWhileStatement=function(e,t){i("WhileStatement",e,t)},t.assertWithStatement=function(e,t){i("WithStatement",e,t)},t.assertYieldExpression=function(e,t){i("YieldExpression",e,t)};var r=n(62);function i(e,t,n){if(!(0,r.default)(e,t,n))throw new Error(`Expected type "${e}" with option ${JSON.stringify(n)}, but instead got "${t.type}".`)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(15),i=function(e){switch(e){case"string":return(0,r.stringTypeAnnotation)();case"number":return(0,r.numberTypeAnnotation)();case"undefined":return(0,r.voidTypeAnnotation)();case"boolean":return(0,r.booleanTypeAnnotation)();case"function":return(0,r.genericTypeAnnotation)((0,r.identifier)("Function"));case"object":return(0,r.genericTypeAnnotation)((0,r.identifier)("Object"));case"symbol":return(0,r.genericTypeAnnotation)((0,r.identifier)("Symbol"));case"bigint":return(0,r.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+e)};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,i.default)(e);return 1===t.length?t[0]:(0,r.unionTypeAnnotation)(t)};var r=n(15),i=n(228)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.map(e=>e.typeAnnotation),n=(0,i.default)(t);return 1===n.length?n[0]:(0,r.tsUnionType)(n)};var r=n(15),i=n(528)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t={},n={},i=new Set,s=[];for(let t=0;t<e.length;t++){const o=e[t];if(o&&!(s.indexOf(o)>=0)){if((0,r.isTSAnyKeyword)(o))return[o];(0,r.isTSBaseType)(o)?n[o.type]=o:(0,r.isTSUnionType)(o)?i.has(o.types)||(e.push(...o.types),i.add(o.types)):s.push(o)}}for(const e of Object.keys(n))s.push(n[e]);for(const e of Object.keys(t))s.push(t[e]);return s};var r=n(10)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AnyTypeAnnotation",{enumerable:!0,get:function(){return r.anyTypeAnnotation}}),Object.defineProperty(t,"ArgumentPlaceholder",{enumerable:!0,get:function(){return r.argumentPlaceholder}}),Object.defineProperty(t,"ArrayExpression",{enumerable:!0,get:function(){return r.arrayExpression}}),Object.defineProperty(t,"ArrayPattern",{enumerable:!0,get:function(){return r.arrayPattern}}),Object.defineProperty(t,"ArrayTypeAnnotation",{enumerable:!0,get:function(){return r.arrayTypeAnnotation}}),Object.defineProperty(t,"ArrowFunctionExpression",{enumerable:!0,get:function(){return r.arrowFunctionExpression}}),Object.defineProperty(t,"AssignmentExpression",{enumerable:!0,get:function(){return r.assignmentExpression}}),Object.defineProperty(t,"AssignmentPattern",{enumerable:!0,get:function(){return r.assignmentPattern}}),Object.defineProperty(t,"AwaitExpression",{enumerable:!0,get:function(){return r.awaitExpression}}),Object.defineProperty(t,"BigIntLiteral",{enumerable:!0,get:function(){return r.bigIntLiteral}}),Object.defineProperty(t,"BinaryExpression",{enumerable:!0,get:function(){return r.binaryExpression}}),Object.defineProperty(t,"BindExpression",{enumerable:!0,get:function(){return r.bindExpression}}),Object.defineProperty(t,"BlockStatement",{enumerable:!0,get:function(){return r.blockStatement}}),Object.defineProperty(t,"BooleanLiteral",{enumerable:!0,get:function(){return r.booleanLiteral}}),Object.defineProperty(t,"BooleanLiteralTypeAnnotation",{enumerable:!0,get:function(){return r.booleanLiteralTypeAnnotation}}),Object.defineProperty(t,"BooleanTypeAnnotation",{enumerable:!0,get:function(){return r.booleanTypeAnnotation}}),Object.defineProperty(t,"BreakStatement",{enumerable:!0,get:function(){return r.breakStatement}}),Object.defineProperty(t,"CallExpression",{enumerable:!0,get:function(){return r.callExpression}}),Object.defineProperty(t,"CatchClause",{enumerable:!0,get:function(){return r.catchClause}}),Object.defineProperty(t,"ClassAccessorProperty",{enumerable:!0,get:function(){return r.classAccessorProperty}}),Object.defineProperty(t,"ClassBody",{enumerable:!0,get:function(){return r.classBody}}),Object.defineProperty(t,"ClassDeclaration",{enumerable:!0,get:function(){return r.classDeclaration}}),Object.defineProperty(t,"ClassExpression",{enumerable:!0,get:function(){return r.classExpression}}),Object.defineProperty(t,"ClassImplements",{enumerable:!0,get:function(){return r.classImplements}}),Object.defineProperty(t,"ClassMethod",{enumerable:!0,get:function(){return r.classMethod}}),Object.defineProperty(t,"ClassPrivateMethod",{enumerable:!0,get:function(){return r.classPrivateMethod}}),Object.defineProperty(t,"ClassPrivateProperty",{enumerable:!0,get:function(){return r.classPrivateProperty}}),Object.defineProperty(t,"ClassProperty",{enumerable:!0,get:function(){return r.classProperty}}),Object.defineProperty(t,"ConditionalExpression",{enumerable:!0,get:function(){return r.conditionalExpression}}),Object.defineProperty(t,"ContinueStatement",{enumerable:!0,get:function(){return r.continueStatement}}),Object.defineProperty(t,"DebuggerStatement",{enumerable:!0,get:function(){return r.debuggerStatement}}),Object.defineProperty(t,"DecimalLiteral",{enumerable:!0,get:function(){return r.decimalLiteral}}),Object.defineProperty(t,"DeclareClass",{enumerable:!0,get:function(){return r.declareClass}}),Object.defineProperty(t,"DeclareExportAllDeclaration",{enumerable:!0,get:function(){return r.declareExportAllDeclaration}}),Object.defineProperty(t,"DeclareExportDeclaration",{enumerable:!0,get:function(){return r.declareExportDeclaration}}),Object.defineProperty(t,"DeclareFunction",{enumerable:!0,get:function(){return r.declareFunction}}),Object.defineProperty(t,"DeclareInterface",{enumerable:!0,get:function(){return r.declareInterface}}),Object.defineProperty(t,"DeclareModule",{enumerable:!0,get:function(){return r.declareModule}}),Object.defineProperty(t,"DeclareModuleExports",{enumerable:!0,get:function(){return r.declareModuleExports}}),Object.defineProperty(t,"DeclareOpaqueType",{enumerable:!0,get:function(){return r.declareOpaqueType}}),Object.defineProperty(t,"DeclareTypeAlias",{enumerable:!0,get:function(){return r.declareTypeAlias}}),Object.defineProperty(t,"DeclareVariable",{enumerable:!0,get:function(){return r.declareVariable}}),Object.defineProperty(t,"DeclaredPredicate",{enumerable:!0,get:function(){return r.declaredPredicate}}),Object.defineProperty(t,"Decorator",{enumerable:!0,get:function(){return r.decorator}}),Object.defineProperty(t,"Directive",{enumerable:!0,get:function(){return r.directive}}),Object.defineProperty(t,"DirectiveLiteral",{enumerable:!0,get:function(){return r.directiveLiteral}}),Object.defineProperty(t,"DoExpression",{enumerable:!0,get:function(){return r.doExpression}}),Object.defineProperty(t,"DoWhileStatement",{enumerable:!0,get:function(){return r.doWhileStatement}}),Object.defineProperty(t,"EmptyStatement",{enumerable:!0,get:function(){return r.emptyStatement}}),Object.defineProperty(t,"EmptyTypeAnnotation",{enumerable:!0,get:function(){return r.emptyTypeAnnotation}}),Object.defineProperty(t,"EnumBooleanBody",{enumerable:!0,get:function(){return r.enumBooleanBody}}),Object.defineProperty(t,"EnumBooleanMember",{enumerable:!0,get:function(){return r.enumBooleanMember}}),Object.defineProperty(t,"EnumDeclaration",{enumerable:!0,get:function(){return r.enumDeclaration}}),Object.defineProperty(t,"EnumDefaultedMember",{enumerable:!0,get:function(){return r.enumDefaultedMember}}),Object.defineProperty(t,"EnumNumberBody",{enumerable:!0,get:function(){return r.enumNumberBody}}),Object.defineProperty(t,"EnumNumberMember",{enumerable:!0,get:function(){return r.enumNumberMember}}),Object.defineProperty(t,"EnumStringBody",{enumerable:!0,get:function(){return r.enumStringBody}}),Object.defineProperty(t,"EnumStringMember",{enumerable:!0,get:function(){return r.enumStringMember}}),Object.defineProperty(t,"EnumSymbolBody",{enumerable:!0,get:function(){return r.enumSymbolBody}}),Object.defineProperty(t,"ExistsTypeAnnotation",{enumerable:!0,get:function(){return r.existsTypeAnnotation}}),Object.defineProperty(t,"ExportAllDeclaration",{enumerable:!0,get:function(){return r.exportAllDeclaration}}),Object.defineProperty(t,"ExportDefaultDeclaration",{enumerable:!0,get:function(){return r.exportDefaultDeclaration}}),Object.defineProperty(t,"ExportDefaultSpecifier",{enumerable:!0,get:function(){return r.exportDefaultSpecifier}}),Object.defineProperty(t,"ExportNamedDeclaration",{enumerable:!0,get:function(){return r.exportNamedDeclaration}}),Object.defineProperty(t,"ExportNamespaceSpecifier",{enumerable:!0,get:function(){return r.exportNamespaceSpecifier}}),Object.defineProperty(t,"ExportSpecifier",{enumerable:!0,get:function(){return r.exportSpecifier}}),Object.defineProperty(t,"ExpressionStatement",{enumerable:!0,get:function(){return r.expressionStatement}}),Object.defineProperty(t,"File",{enumerable:!0,get:function(){return r.file}}),Object.defineProperty(t,"ForInStatement",{enumerable:!0,get:function(){return r.forInStatement}}),Object.defineProperty(t,"ForOfStatement",{enumerable:!0,get:function(){return r.forOfStatement}}),Object.defineProperty(t,"ForStatement",{enumerable:!0,get:function(){return r.forStatement}}),Object.defineProperty(t,"FunctionDeclaration",{enumerable:!0,get:function(){return r.functionDeclaration}}),Object.defineProperty(t,"FunctionExpression",{enumerable:!0,get:function(){return r.functionExpression}}),Object.defineProperty(t,"FunctionTypeAnnotation",{enumerable:!0,get:function(){return r.functionTypeAnnotation}}),Object.defineProperty(t,"FunctionTypeParam",{enumerable:!0,get:function(){return r.functionTypeParam}}),Object.defineProperty(t,"GenericTypeAnnotation",{enumerable:!0,get:function(){return r.genericTypeAnnotation}}),Object.defineProperty(t,"Identifier",{enumerable:!0,get:function(){return r.identifier}}),Object.defineProperty(t,"IfStatement",{enumerable:!0,get:function(){return r.ifStatement}}),Object.defineProperty(t,"Import",{enumerable:!0,get:function(){return r.import}}),Object.defineProperty(t,"ImportAttribute",{enumerable:!0,get:function(){return r.importAttribute}}),Object.defineProperty(t,"ImportDeclaration",{enumerable:!0,get:function(){return r.importDeclaration}}),Object.defineProperty(t,"ImportDefaultSpecifier",{enumerable:!0,get:function(){return r.importDefaultSpecifier}}),Object.defineProperty(t,"ImportNamespaceSpecifier",{enumerable:!0,get:function(){return r.importNamespaceSpecifier}}),Object.defineProperty(t,"ImportSpecifier",{enumerable:!0,get:function(){return r.importSpecifier}}),Object.defineProperty(t,"IndexedAccessType",{enumerable:!0,get:function(){return r.indexedAccessType}}),Object.defineProperty(t,"InferredPredicate",{enumerable:!0,get:function(){return r.inferredPredicate}}),Object.defineProperty(t,"InterfaceDeclaration",{enumerable:!0,get:function(){return r.interfaceDeclaration}}),Object.defineProperty(t,"InterfaceExtends",{enumerable:!0,get:function(){return r.interfaceExtends}}),Object.defineProperty(t,"InterfaceTypeAnnotation",{enumerable:!0,get:function(){return r.interfaceTypeAnnotation}}),Object.defineProperty(t,"InterpreterDirective",{enumerable:!0,get:function(){return r.interpreterDirective}}),Object.defineProperty(t,"IntersectionTypeAnnotation",{enumerable:!0,get:function(){return r.intersectionTypeAnnotation}}),Object.defineProperty(t,"JSXAttribute",{enumerable:!0,get:function(){return r.jsxAttribute}}),Object.defineProperty(t,"JSXClosingElement",{enumerable:!0,get:function(){return r.jsxClosingElement}}),Object.defineProperty(t,"JSXClosingFragment",{enumerable:!0,get:function(){return r.jsxClosingFragment}}),Object.defineProperty(t,"JSXElement",{enumerable:!0,get:function(){return r.jsxElement}}),Object.defineProperty(t,"JSXEmptyExpression",{enumerable:!0,get:function(){return r.jsxEmptyExpression}}),Object.defineProperty(t,"JSXExpressionContainer",{enumerable:!0,get:function(){return r.jsxExpressionContainer}}),Object.defineProperty(t,"JSXFragment",{enumerable:!0,get:function(){return r.jsxFragment}}),Object.defineProperty(t,"JSXIdentifier",{enumerable:!0,get:function(){return r.jsxIdentifier}}),Object.defineProperty(t,"JSXMemberExpression",{enumerable:!0,get:function(){return r.jsxMemberExpression}}),Object.defineProperty(t,"JSXNamespacedName",{enumerable:!0,get:function(){return r.jsxNamespacedName}}),Object.defineProperty(t,"JSXOpeningElement",{enumerable:!0,get:function(){return r.jsxOpeningElement}}),Object.defineProperty(t,"JSXOpeningFragment",{enumerable:!0,get:function(){return r.jsxOpeningFragment}}),Object.defineProperty(t,"JSXSpreadAttribute",{enumerable:!0,get:function(){return r.jsxSpreadAttribute}}),Object.defineProperty(t,"JSXSpreadChild",{enumerable:!0,get:function(){return r.jsxSpreadChild}}),Object.defineProperty(t,"JSXText",{enumerable:!0,get:function(){return r.jsxText}}),Object.defineProperty(t,"LabeledStatement",{enumerable:!0,get:function(){return r.labeledStatement}}),Object.defineProperty(t,"LogicalExpression",{enumerable:!0,get:function(){return r.logicalExpression}}),Object.defineProperty(t,"MemberExpression",{enumerable:!0,get:function(){return r.memberExpression}}),Object.defineProperty(t,"MetaProperty",{enumerable:!0,get:function(){return r.metaProperty}}),Object.defineProperty(t,"MixedTypeAnnotation",{enumerable:!0,get:function(){return r.mixedTypeAnnotation}}),Object.defineProperty(t,"ModuleExpression",{enumerable:!0,get:function(){return r.moduleExpression}}),Object.defineProperty(t,"NewExpression",{enumerable:!0,get:function(){return r.newExpression}}),Object.defineProperty(t,"Noop",{enumerable:!0,get:function(){return r.noop}}),Object.defineProperty(t,"NullLiteral",{enumerable:!0,get:function(){return r.nullLiteral}}),Object.defineProperty(t,"NullLiteralTypeAnnotation",{enumerable:!0,get:function(){return r.nullLiteralTypeAnnotation}}),Object.defineProperty(t,"NullableTypeAnnotation",{enumerable:!0,get:function(){return r.nullableTypeAnnotation}}),Object.defineProperty(t,"NumberLiteral",{enumerable:!0,get:function(){return r.numberLiteral}}),Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return r.numberLiteralTypeAnnotation}}),Object.defineProperty(t,"NumberTypeAnnotation",{enumerable:!0,get:function(){return r.numberTypeAnnotation}}),Object.defineProperty(t,"NumericLiteral",{enumerable:!0,get:function(){return r.numericLiteral}}),Object.defineProperty(t,"ObjectExpression",{enumerable:!0,get:function(){return r.objectExpression}}),Object.defineProperty(t,"ObjectMethod",{enumerable:!0,get:function(){return r.objectMethod}}),Object.defineProperty(t,"ObjectPattern",{enumerable:!0,get:function(){return r.objectPattern}}),Object.defineProperty(t,"ObjectProperty",{enumerable:!0,get:function(){return r.objectProperty}}),Object.defineProperty(t,"ObjectTypeAnnotation",{enumerable:!0,get:function(){return r.objectTypeAnnotation}}),Object.defineProperty(t,"ObjectTypeCallProperty",{enumerable:!0,get:function(){return r.objectTypeCallProperty}}),Object.defineProperty(t,"ObjectTypeIndexer",{enumerable:!0,get:function(){return r.objectTypeIndexer}}),Object.defineProperty(t,"ObjectTypeInternalSlot",{enumerable:!0,get:function(){return r.objectTypeInternalSlot}}),Object.defineProperty(t,"ObjectTypeProperty",{enumerable:!0,get:function(){return r.objectTypeProperty}}),Object.defineProperty(t,"ObjectTypeSpreadProperty",{enumerable:!0,get:function(){return r.objectTypeSpreadProperty}}),Object.defineProperty(t,"OpaqueType",{enumerable:!0,get:function(){return r.opaqueType}}),Object.defineProperty(t,"OptionalCallExpression",{enumerable:!0,get:function(){return r.optionalCallExpression}}),Object.defineProperty(t,"OptionalIndexedAccessType",{enumerable:!0,get:function(){return r.optionalIndexedAccessType}}),Object.defineProperty(t,"OptionalMemberExpression",{enumerable:!0,get:function(){return r.optionalMemberExpression}}),Object.defineProperty(t,"ParenthesizedExpression",{enumerable:!0,get:function(){return r.parenthesizedExpression}}),Object.defineProperty(t,"PipelineBareFunction",{enumerable:!0,get:function(){return r.pipelineBareFunction}}),Object.defineProperty(t,"PipelinePrimaryTopicReference",{enumerable:!0,get:function(){return r.pipelinePrimaryTopicReference}}),Object.defineProperty(t,"PipelineTopicExpression",{enumerable:!0,get:function(){return r.pipelineTopicExpression}}),Object.defineProperty(t,"Placeholder",{enumerable:!0,get:function(){return r.placeholder}}),Object.defineProperty(t,"PrivateName",{enumerable:!0,get:function(){return r.privateName}}),Object.defineProperty(t,"Program",{enumerable:!0,get:function(){return r.program}}),Object.defineProperty(t,"QualifiedTypeIdentifier",{enumerable:!0,get:function(){return r.qualifiedTypeIdentifier}}),Object.defineProperty(t,"RecordExpression",{enumerable:!0,get:function(){return r.recordExpression}}),Object.defineProperty(t,"RegExpLiteral",{enumerable:!0,get:function(){return r.regExpLiteral}}),Object.defineProperty(t,"RegexLiteral",{enumerable:!0,get:function(){return r.regexLiteral}}),Object.defineProperty(t,"RestElement",{enumerable:!0,get:function(){return r.restElement}}),Object.defineProperty(t,"RestProperty",{enumerable:!0,get:function(){return r.restProperty}}),Object.defineProperty(t,"ReturnStatement",{enumerable:!0,get:function(){return r.returnStatement}}),Object.defineProperty(t,"SequenceExpression",{enumerable:!0,get:function(){return r.sequenceExpression}}),Object.defineProperty(t,"SpreadElement",{enumerable:!0,get:function(){return r.spreadElement}}),Object.defineProperty(t,"SpreadProperty",{enumerable:!0,get:function(){return r.spreadProperty}}),Object.defineProperty(t,"StaticBlock",{enumerable:!0,get:function(){return r.staticBlock}}),Object.defineProperty(t,"StringLiteral",{enumerable:!0,get:function(){return r.stringLiteral}}),Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return r.stringLiteralTypeAnnotation}}),Object.defineProperty(t,"StringTypeAnnotation",{enumerable:!0,get:function(){return r.stringTypeAnnotation}}),Object.defineProperty(t,"Super",{enumerable:!0,get:function(){return r.super}}),Object.defineProperty(t,"SwitchCase",{enumerable:!0,get:function(){return r.switchCase}}),Object.defineProperty(t,"SwitchStatement",{enumerable:!0,get:function(){return r.switchStatement}}),Object.defineProperty(t,"SymbolTypeAnnotation",{enumerable:!0,get:function(){return r.symbolTypeAnnotation}}),Object.defineProperty(t,"TSAnyKeyword",{enumerable:!0,get:function(){return r.tsAnyKeyword}}),Object.defineProperty(t,"TSArrayType",{enumerable:!0,get:function(){return r.tsArrayType}}),Object.defineProperty(t,"TSAsExpression",{enumerable:!0,get:function(){return r.tsAsExpression}}),Object.defineProperty(t,"TSBigIntKeyword",{enumerable:!0,get:function(){return r.tsBigIntKeyword}}),Object.defineProperty(t,"TSBooleanKeyword",{enumerable:!0,get:function(){return r.tsBooleanKeyword}}),Object.defineProperty(t,"TSCallSignatureDeclaration",{enumerable:!0,get:function(){return r.tsCallSignatureDeclaration}}),Object.defineProperty(t,"TSConditionalType",{enumerable:!0,get:function(){return r.tsConditionalType}}),Object.defineProperty(t,"TSConstructSignatureDeclaration",{enumerable:!0,get:function(){return r.tsConstructSignatureDeclaration}}),Object.defineProperty(t,"TSConstructorType",{enumerable:!0,get:function(){return r.tsConstructorType}}),Object.defineProperty(t,"TSDeclareFunction",{enumerable:!0,get:function(){return r.tsDeclareFunction}}),Object.defineProperty(t,"TSDeclareMethod",{enumerable:!0,get:function(){return r.tsDeclareMethod}}),Object.defineProperty(t,"TSEnumDeclaration",{enumerable:!0,get:function(){return r.tsEnumDeclaration}}),Object.defineProperty(t,"TSEnumMember",{enumerable:!0,get:function(){return r.tsEnumMember}}),Object.defineProperty(t,"TSExportAssignment",{enumerable:!0,get:function(){return r.tsExportAssignment}}),Object.defineProperty(t,"TSExpressionWithTypeArguments",{enumerable:!0,get:function(){return r.tsExpressionWithTypeArguments}}),Object.defineProperty(t,"TSExternalModuleReference",{enumerable:!0,get:function(){return r.tsExternalModuleReference}}),Object.defineProperty(t,"TSFunctionType",{enumerable:!0,get:function(){return r.tsFunctionType}}),Object.defineProperty(t,"TSImportEqualsDeclaration",{enumerable:!0,get:function(){return r.tsImportEqualsDeclaration}}),Object.defineProperty(t,"TSImportType",{enumerable:!0,get:function(){return r.tsImportType}}),Object.defineProperty(t,"TSIndexSignature",{enumerable:!0,get:function(){return r.tsIndexSignature}}),Object.defineProperty(t,"TSIndexedAccessType",{enumerable:!0,get:function(){return r.tsIndexedAccessType}}),Object.defineProperty(t,"TSInferType",{enumerable:!0,get:function(){return r.tsInferType}}),Object.defineProperty(t,"TSInterfaceBody",{enumerable:!0,get:function(){return r.tsInterfaceBody}}),Object.defineProperty(t,"TSInterfaceDeclaration",{enumerable:!0,get:function(){return r.tsInterfaceDeclaration}}),Object.defineProperty(t,"TSIntersectionType",{enumerable:!0,get:function(){return r.tsIntersectionType}}),Object.defineProperty(t,"TSIntrinsicKeyword",{enumerable:!0,get:function(){return r.tsIntrinsicKeyword}}),Object.defineProperty(t,"TSLiteralType",{enumerable:!0,get:function(){return r.tsLiteralType}}),Object.defineProperty(t,"TSMappedType",{enumerable:!0,get:function(){return r.tsMappedType}}),Object.defineProperty(t,"TSMethodSignature",{enumerable:!0,get:function(){return r.tsMethodSignature}}),Object.defineProperty(t,"TSModuleBlock",{enumerable:!0,get:function(){return r.tsModuleBlock}}),Object.defineProperty(t,"TSModuleDeclaration",{enumerable:!0,get:function(){return r.tsModuleDeclaration}}),Object.defineProperty(t,"TSNamedTupleMember",{enumerable:!0,get:function(){return r.tsNamedTupleMember}}),Object.defineProperty(t,"TSNamespaceExportDeclaration",{enumerable:!0,get:function(){return r.tsNamespaceExportDeclaration}}),Object.defineProperty(t,"TSNeverKeyword",{enumerable:!0,get:function(){return r.tsNeverKeyword}}),Object.defineProperty(t,"TSNonNullExpression",{enumerable:!0,get:function(){return r.tsNonNullExpression}}),Object.defineProperty(t,"TSNullKeyword",{enumerable:!0,get:function(){return r.tsNullKeyword}}),Object.defineProperty(t,"TSNumberKeyword",{enumerable:!0,get:function(){return r.tsNumberKeyword}}),Object.defineProperty(t,"TSObjectKeyword",{enumerable:!0,get:function(){return r.tsObjectKeyword}}),Object.defineProperty(t,"TSOptionalType",{enumerable:!0,get:function(){return r.tsOptionalType}}),Object.defineProperty(t,"TSParameterProperty",{enumerable:!0,get:function(){return r.tsParameterProperty}}),Object.defineProperty(t,"TSParenthesizedType",{enumerable:!0,get:function(){return r.tsParenthesizedType}}),Object.defineProperty(t,"TSPropertySignature",{enumerable:!0,get:function(){return r.tsPropertySignature}}),Object.defineProperty(t,"TSQualifiedName",{enumerable:!0,get:function(){return r.tsQualifiedName}}),Object.defineProperty(t,"TSRestType",{enumerable:!0,get:function(){return r.tsRestType}}),Object.defineProperty(t,"TSStringKeyword",{enumerable:!0,get:function(){return r.tsStringKeyword}}),Object.defineProperty(t,"TSSymbolKeyword",{enumerable:!0,get:function(){return r.tsSymbolKeyword}}),Object.defineProperty(t,"TSThisType",{enumerable:!0,get:function(){return r.tsThisType}}),Object.defineProperty(t,"TSTupleType",{enumerable:!0,get:function(){return r.tsTupleType}}),Object.defineProperty(t,"TSTypeAliasDeclaration",{enumerable:!0,get:function(){return r.tsTypeAliasDeclaration}}),Object.defineProperty(t,"TSTypeAnnotation",{enumerable:!0,get:function(){return r.tsTypeAnnotation}}),Object.defineProperty(t,"TSTypeAssertion",{enumerable:!0,get:function(){return r.tsTypeAssertion}}),Object.defineProperty(t,"TSTypeLiteral",{enumerable:!0,get:function(){return r.tsTypeLiteral}}),Object.defineProperty(t,"TSTypeOperator",{enumerable:!0,get:function(){return r.tsTypeOperator}}),Object.defineProperty(t,"TSTypeParameter",{enumerable:!0,get:function(){return r.tsTypeParameter}}),Object.defineProperty(t,"TSTypeParameterDeclaration",{enumerable:!0,get:function(){return r.tsTypeParameterDeclaration}}),Object.defineProperty(t,"TSTypeParameterInstantiation",{enumerable:!0,get:function(){return r.tsTypeParameterInstantiation}}),Object.defineProperty(t,"TSTypePredicate",{enumerable:!0,get:function(){return r.tsTypePredicate}}),Object.defineProperty(t,"TSTypeQuery",{enumerable:!0,get:function(){return r.tsTypeQuery}}),Object.defineProperty(t,"TSTypeReference",{enumerable:!0,get:function(){return r.tsTypeReference}}),Object.defineProperty(t,"TSUndefinedKeyword",{enumerable:!0,get:function(){return r.tsUndefinedKeyword}}),Object.defineProperty(t,"TSUnionType",{enumerable:!0,get:function(){return r.tsUnionType}}),Object.defineProperty(t,"TSUnknownKeyword",{enumerable:!0,get:function(){return r.tsUnknownKeyword}}),Object.defineProperty(t,"TSVoidKeyword",{enumerable:!0,get:function(){return r.tsVoidKeyword}}),Object.defineProperty(t,"TaggedTemplateExpression",{enumerable:!0,get:function(){return r.taggedTemplateExpression}}),Object.defineProperty(t,"TemplateElement",{enumerable:!0,get:function(){return r.templateElement}}),Object.defineProperty(t,"TemplateLiteral",{enumerable:!0,get:function(){return r.templateLiteral}}),Object.defineProperty(t,"ThisExpression",{enumerable:!0,get:function(){return r.thisExpression}}),Object.defineProperty(t,"ThisTypeAnnotation",{enumerable:!0,get:function(){return r.thisTypeAnnotation}}),Object.defineProperty(t,"ThrowStatement",{enumerable:!0,get:function(){return r.throwStatement}}),Object.defineProperty(t,"TopicReference",{enumerable:!0,get:function(){return r.topicReference}}),Object.defineProperty(t,"TryStatement",{enumerable:!0,get:function(){return r.tryStatement}}),Object.defineProperty(t,"TupleExpression",{enumerable:!0,get:function(){return r.tupleExpression}}),Object.defineProperty(t,"TupleTypeAnnotation",{enumerable:!0,get:function(){return r.tupleTypeAnnotation}}),Object.defineProperty(t,"TypeAlias",{enumerable:!0,get:function(){return r.typeAlias}}),Object.defineProperty(t,"TypeAnnotation",{enumerable:!0,get:function(){return r.typeAnnotation}}),Object.defineProperty(t,"TypeCastExpression",{enumerable:!0,get:function(){return r.typeCastExpression}}),Object.defineProperty(t,"TypeParameter",{enumerable:!0,get:function(){return r.typeParameter}}),Object.defineProperty(t,"TypeParameterDeclaration",{enumerable:!0,get:function(){return r.typeParameterDeclaration}}),Object.defineProperty(t,"TypeParameterInstantiation",{enumerable:!0,get:function(){return r.typeParameterInstantiation}}),Object.defineProperty(t,"TypeofTypeAnnotation",{enumerable:!0,get:function(){return r.typeofTypeAnnotation}}),Object.defineProperty(t,"UnaryExpression",{enumerable:!0,get:function(){return r.unaryExpression}}),Object.defineProperty(t,"UnionTypeAnnotation",{enumerable:!0,get:function(){return r.unionTypeAnnotation}}),Object.defineProperty(t,"UpdateExpression",{enumerable:!0,get:function(){return r.updateExpression}}),Object.defineProperty(t,"V8IntrinsicIdentifier",{enumerable:!0,get:function(){return r.v8IntrinsicIdentifier}}),Object.defineProperty(t,"VariableDeclaration",{enumerable:!0,get:function(){return r.variableDeclaration}}),Object.defineProperty(t,"VariableDeclarator",{enumerable:!0,get:function(){return r.variableDeclarator}}),Object.defineProperty(t,"Variance",{enumerable:!0,get:function(){return r.variance}}),Object.defineProperty(t,"VoidTypeAnnotation",{enumerable:!0,get:function(){return r.voidTypeAnnotation}}),Object.defineProperty(t,"WhileStatement",{enumerable:!0,get:function(){return r.whileStatement}}),Object.defineProperty(t,"WithStatement",{enumerable:!0,get:function(){return r.withStatement}}),Object.defineProperty(t,"YieldExpression",{enumerable:!0,get:function(){return r.yieldExpression}});var r=n(15)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!1)};var r=n(42)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)};var r=n(42)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!0,!0)};var r=n(42)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!1,!0)};var r=n(42)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){return(0,r.default)(e,t,[{type:i?"CommentLine":"CommentBlock",value:n}])};var r=n(229)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return r.COMMENT_KEYS.forEach(t=>{e[t]=null}),e};var r=n(41)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WHILE_TYPES=t.USERWHITESPACABLE_TYPES=t.UNARYLIKE_TYPES=t.TYPESCRIPT_TYPES=t.TSTYPE_TYPES=t.TSTYPEELEMENT_TYPES=t.TSENTITYNAME_TYPES=t.TSBASETYPE_TYPES=t.TERMINATORLESS_TYPES=t.STATEMENT_TYPES=t.STANDARDIZED_TYPES=t.SCOPABLE_TYPES=t.PUREISH_TYPES=t.PROPERTY_TYPES=t.PRIVATE_TYPES=t.PATTERN_TYPES=t.PATTERNLIKE_TYPES=t.OBJECTMEMBER_TYPES=t.MODULESPECIFIER_TYPES=t.MODULEDECLARATION_TYPES=t.MISCELLANEOUS_TYPES=t.METHOD_TYPES=t.LVAL_TYPES=t.LOOP_TYPES=t.LITERAL_TYPES=t.JSX_TYPES=t.IMMUTABLE_TYPES=t.FUNCTION_TYPES=t.FUNCTIONPARENT_TYPES=t.FOR_TYPES=t.FORXSTATEMENT_TYPES=t.FLOW_TYPES=t.FLOWTYPE_TYPES=t.FLOWPREDICATE_TYPES=t.FLOWDECLARATION_TYPES=t.FLOWBASEANNOTATION_TYPES=t.EXPRESSION_TYPES=t.EXPRESSIONWRAPPER_TYPES=t.EXPORTDECLARATION_TYPES=t.ENUMMEMBER_TYPES=t.ENUMBODY_TYPES=t.DECLARATION_TYPES=t.CONDITIONAL_TYPES=t.COMPLETIONSTATEMENT_TYPES=t.CLASS_TYPES=t.BLOCK_TYPES=t.BLOCKPARENT_TYPES=t.BINARY_TYPES=t.ACCESSOR_TYPES=void 0;var r=n(18);const i=r.FLIPPED_ALIAS_KEYS.Standardized;t.STANDARDIZED_TYPES=i;const s=r.FLIPPED_ALIAS_KEYS.Expression;t.EXPRESSION_TYPES=s;const o=r.FLIPPED_ALIAS_KEYS.Binary;t.BINARY_TYPES=o;const a=r.FLIPPED_ALIAS_KEYS.Scopable;t.SCOPABLE_TYPES=a;const l=r.FLIPPED_ALIAS_KEYS.BlockParent;t.BLOCKPARENT_TYPES=l;const u=r.FLIPPED_ALIAS_KEYS.Block;t.BLOCK_TYPES=u;const c=r.FLIPPED_ALIAS_KEYS.Statement;t.STATEMENT_TYPES=c;const h=r.FLIPPED_ALIAS_KEYS.Terminatorless;t.TERMINATORLESS_TYPES=h;const d=r.FLIPPED_ALIAS_KEYS.CompletionStatement;t.COMPLETIONSTATEMENT_TYPES=d;const f=r.FLIPPED_ALIAS_KEYS.Conditional;t.CONDITIONAL_TYPES=f;const p=r.FLIPPED_ALIAS_KEYS.Loop;t.LOOP_TYPES=p;const m=r.FLIPPED_ALIAS_KEYS.While;t.WHILE_TYPES=m;const g=r.FLIPPED_ALIAS_KEYS.ExpressionWrapper;t.EXPRESSIONWRAPPER_TYPES=g;const y=r.FLIPPED_ALIAS_KEYS.For;t.FOR_TYPES=y;const v=r.FLIPPED_ALIAS_KEYS.ForXStatement;t.FORXSTATEMENT_TYPES=v;const b=r.FLIPPED_ALIAS_KEYS.Function;t.FUNCTION_TYPES=b;const w=r.FLIPPED_ALIAS_KEYS.FunctionParent;t.FUNCTIONPARENT_TYPES=w;const _=r.FLIPPED_ALIAS_KEYS.Pureish;t.PUREISH_TYPES=_;const S=r.FLIPPED_ALIAS_KEYS.Declaration;t.DECLARATION_TYPES=S;const x=r.FLIPPED_ALIAS_KEYS.PatternLike;t.PATTERNLIKE_TYPES=x;const E=r.FLIPPED_ALIAS_KEYS.LVal;t.LVAL_TYPES=E;const A=r.FLIPPED_ALIAS_KEYS.TSEntityName;t.TSENTITYNAME_TYPES=A;const T=r.FLIPPED_ALIAS_KEYS.Literal;t.LITERAL_TYPES=T;const M=r.FLIPPED_ALIAS_KEYS.Immutable;t.IMMUTABLE_TYPES=M;const C=r.FLIPPED_ALIAS_KEYS.UserWhitespacable;t.USERWHITESPACABLE_TYPES=C;const P=r.FLIPPED_ALIAS_KEYS.Method;t.METHOD_TYPES=P;const k=r.FLIPPED_ALIAS_KEYS.ObjectMember;t.OBJECTMEMBER_TYPES=k;const O=r.FLIPPED_ALIAS_KEYS.Property;t.PROPERTY_TYPES=O;const I=r.FLIPPED_ALIAS_KEYS.UnaryLike;t.UNARYLIKE_TYPES=I;const R=r.FLIPPED_ALIAS_KEYS.Pattern;t.PATTERN_TYPES=R;const N=r.FLIPPED_ALIAS_KEYS.Class;t.CLASS_TYPES=N;const D=r.FLIPPED_ALIAS_KEYS.ModuleDeclaration;t.MODULEDECLARATION_TYPES=D;const F=r.FLIPPED_ALIAS_KEYS.ExportDeclaration;t.EXPORTDECLARATION_TYPES=F;const L=r.FLIPPED_ALIAS_KEYS.ModuleSpecifier;t.MODULESPECIFIER_TYPES=L;const B=r.FLIPPED_ALIAS_KEYS.Accessor;t.ACCESSOR_TYPES=B;const j=r.FLIPPED_ALIAS_KEYS.Private;t.PRIVATE_TYPES=j;const $=r.FLIPPED_ALIAS_KEYS.Flow;t.FLOW_TYPES=$;const U=r.FLIPPED_ALIAS_KEYS.FlowType;t.FLOWTYPE_TYPES=U;const V=r.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation;t.FLOWBASEANNOTATION_TYPES=V;const W=r.FLIPPED_ALIAS_KEYS.FlowDeclaration;t.FLOWDECLARATION_TYPES=W;const z=r.FLIPPED_ALIAS_KEYS.FlowPredicate;t.FLOWPREDICATE_TYPES=z;const K=r.FLIPPED_ALIAS_KEYS.EnumBody;t.ENUMBODY_TYPES=K;const H=r.FLIPPED_ALIAS_KEYS.EnumMember;t.ENUMMEMBER_TYPES=H;const q=r.FLIPPED_ALIAS_KEYS.JSX;t.JSX_TYPES=q;const G=r.FLIPPED_ALIAS_KEYS.Miscellaneous;t.MISCELLANEOUS_TYPES=G;const Y=r.FLIPPED_ALIAS_KEYS.TypeScript;t.TYPESCRIPT_TYPES=Y;const J=r.FLIPPED_ALIAS_KEYS.TSTypeElement;t.TSTYPEELEMENT_TYPES=J;const X=r.FLIPPED_ALIAS_KEYS.TSType;t.TSTYPE_TYPES=X;const Z=r.FLIPPED_ALIAS_KEYS.TSBaseType;t.TSBASETYPE_TYPES=Z},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t="body"){return e[t]=(0,r.default)(e[t],e)};var r=n(234)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"eval"!==(e=(0,r.default)(e))&&"arguments"!==e||(e="_"+e);return e};var r=n(235)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=e.key||e.property){!e.computed&&(0,r.isIdentifier)(t)&&(t=(0,i.stringLiteral)(t.name));return t};var r=n(10),i=n(15)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(10),i=function(e){(0,r.isExpressionStatement)(e)&&(e=e.expression);if((0,r.isExpression)(e))return e;(0,r.isClass)(e)?e.type="ClassExpression":(0,r.isFunction)(e)&&(e.type="FunctionExpression");if(!(0,r.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(10),i=n(42),s=n(236);function o(e,t=e.key){let n;return"method"===e.kind?o.increment()+"":(n=(0,r.isIdentifier)(t)?t.name:(0,r.isStringLiteral)(t)?JSON.stringify(t.value):JSON.stringify((0,s.default)((0,i.default)(t))),e.computed&&(n=`[${n}]`),e.static&&(n="static:"+n),n)}o.uid=0,o.increment=function(){return o.uid>=Number.MAX_SAFE_INTEGER?o.uid=0:o.uid++}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e||!e.length)return;const n=[],i=(0,r.default)(e,t,n);if(!i)return;for(const e of n)t.push(e);return i};var r=n(543)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n,a){const l=[];let u=!0;for(const c of t)if((0,i.isEmptyStatement)(c)||(u=!1),(0,i.isExpression)(c))l.push(c);else if((0,i.isExpressionStatement)(c))l.push(c.expression);else if((0,i.isVariableDeclaration)(c)){if("var"!==c.kind)return;for(const e of c.declarations){const t=(0,r.default)(e);for(const e of Object.keys(t))a.push({kind:c.kind,id:(0,o.default)(t[e])});e.init&&l.push((0,s.assignmentExpression)("=",e.id,e.init))}u=!0}else if((0,i.isIfStatement)(c)){const t=c.consequent?e([c.consequent],n,a):n.buildUndefinedNode(),r=c.alternate?e([c.alternate],n,a):n.buildUndefinedNode();if(!t||!r)return;l.push((0,s.conditionalExpression)(c.test,t,r))}else if((0,i.isBlockStatement)(c)){const t=e(c.body,n,a);if(!t)return;l.push(t)}else{if(!(0,i.isEmptyStatement)(c))return;0===t.indexOf(c)&&(u=!0)}u&&l.push(n.buildUndefinedNode());return 1===l.length?l[0]:(0,s.sequenceExpression)(l)};var r=n(78),i=n(10),s=n(15),o=n(42)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(10),i=n(15),s=function(e,t){if((0,r.isStatement)(e))return e;let n,s=!1;if((0,r.isClass)(e))s=!0,n="ClassDeclaration";else if((0,r.isFunction)(e))s=!0,n="FunctionDeclaration";else if((0,r.isAssignmentExpression)(e))return(0,i.expressionStatement)(e);s&&!e.id&&(n=!1);if(!n){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=n,e};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(63),i=n(15),s=function e(t){if(void 0===t)return(0,i.identifier)("undefined");if(!0===t||!1===t)return(0,i.booleanLiteral)(t);if(null===t)return(0,i.nullLiteral)();if("string"==typeof t)return(0,i.stringLiteral)(t);if("number"==typeof t){let e;if(Number.isFinite(t))e=(0,i.numericLiteral)(Math.abs(t));else{let n;n=Number.isNaN(t)?(0,i.numericLiteral)(0):(0,i.numericLiteral)(1),e=(0,i.binaryExpression)("/",n,(0,i.numericLiteral)(0))}return(t<0||Object.is(t,-0))&&(e=(0,i.unaryExpression)("-",e)),e}if(function(e){return"[object RegExp]"===o(e)}(t)){const e=t.source,n=t.toString().match(/\/([a-z]+|)$/)[1];return(0,i.regExpLiteral)(e,n)}if(Array.isArray(t))return(0,i.arrayExpression)(t.map(e));if(function(e){if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(t)){const n=[];for(const s of Object.keys(t)){let o;o=(0,r.default)(s)?(0,i.identifier)(s):(0,i.stringLiteral)(s),n.push((0,i.objectProperty)(o,e(t[s])))}return(0,i.objectExpression)(n)}throw new Error("don't know how to turn this value into a node")};t.default=s;const o=Function.call.bind(Object.prototype.toString)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n=!1){return e.object=(0,r.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!n,e};var r=n(15)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e||!t)return e;for(const n of r.INHERIT_KEYS.optional)null==e[n]&&(e[n]=t[n]);for(const n of Object.keys(t))"_"===n[0]&&"__clone"!==n&&(e[n]=t[n]);for(const n of r.INHERIT_KEYS.force)e[n]=t[n];return(0,i.default)(e,t),e};var r=n(41),i=n(232)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return e.object=(0,r.memberExpression)(t,e.object),e};var r=n(15)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(78),i=function(e,t){return(0,r.default)(e,t,!0)};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){"function"==typeof t&&(t={enter:t});const{enter:i,exit:s}=t;!function e(t,n,i,s,o){const a=r.VISITOR_KEYS[t.type];if(!a)return;n&&n(t,o,s);for(const r of a){const a=t[r];if(Array.isArray(a))for(let l=0;l<a.length;l++){const u=a[l];u&&(o.push({node:t,key:r,index:l}),e(u,n,i,s,o),o.pop())}else a&&(o.push({node:t,key:r}),e(a,n,i,s,o),o.pop())}i&&i(t,o,s)}(e,i,s,n,[])};var r=n(18)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(n&&"Identifier"===e.type&&"ObjectProperty"===t.type&&"ObjectExpression"===n.type)return!1;const i=r.default.keys[t.type];if(i)for(let n=0;n<i.length;n++){const r=i[n],s=t[r];if(Array.isArray(s)){if(s.indexOf(e)>=0)return!0}else if(s===e)return!0}return!1};var r=n(78)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isFunctionDeclaration)(e)||(0,r.isClassDeclaration)(e)||(0,i.default)(e)};var r=n(10),i=n(239)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,r.default)(e.type,"Immutable"))return!0;if((0,i.isIdentifier)(e))return"undefined"===e.name;return!1};var r=n(134),i=n(10)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){if("object"!=typeof t||"object"!=typeof n||null==t||null==n)return t===n;if(t.type!==n.type)return!1;const i=Object.keys(r.NODE_FIELDS[t.type]||t.type),s=r.VISITOR_KEYS[t.type];for(const r of i){if(typeof t[r]!=typeof n[r])return!1;if(null!=t[r]||null!=n[r]){if(null==t[r]||null==n[r])return!1;if(Array.isArray(t[r])){if(!Array.isArray(n[r]))return!1;if(t[r].length!==n[r].length)return!1;for(let i=0;i<t[r].length;i++)if(!e(t[r][i],n[r][i]))return!1}else if("object"!=typeof t[r]||null!=s&&s.includes(r)){if(!e(t[r],n[r]))return!1}else for(const e of Object.keys(t[r]))if(t[r][e]!==n[r][e])return!1}}return!0};var r=n(18)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e&&!!t.computed;case"ObjectProperty":return t.key===e?!!t.computed:!n||"ObjectPattern"!==n.type;case"ClassProperty":case"ClassAccessorProperty":return t.key!==e||!!t.computed;case"ClassPrivateProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;case"LabeledStatement":case"CatchClause":case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return(null==n||!n.source)&&t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportAttribute":case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key!==e||!!t.computed}return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.isBlockStatement)(e)&&((0,r.isFunction)(t)||(0,r.isCatchClause)(t)))return!1;if((0,r.isPattern)(e)&&((0,r.isFunction)(t)||(0,r.isCatchClause)(t)))return!0;return(0,r.isScopable)(e)};var r=n(10)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isImportDefaultSpecifier)(e)||(0,r.isIdentifier)(e.imported||e.exported,{name:"default"})};var r=n(10)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)&&!i.has(e)};var r=n(63);const i=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isVariableDeclaration)(e,{kind:"var"})&&!e[i.BLOCK_SCOPED_SYMBOL]};var r=n(10),i=n(41)},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(35),i=n(1);const{VISITOR_KEYS:s}=i;t.default=class{constructor(e,t,n,r){this.queue=null,this.priorityQueue=null,this.parentPath=r,this.scope=e,this.state=n,this.opts=t}shouldVisit(e){const t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;const n=s[e.type];if(null==n||!n.length)return!1;for(const t of n)if(e[t])return!0;return!1}create(e,t,n,i){return r.default.get({parentPath:this.parentPath,parent:e,container:t,key:n,listKey:i})}maybeQueue(e,t){this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,t,n){if(0===e.length)return!1;const r=[];for(let i=0;i<e.length;i++){const s=e[i];s&&this.shouldVisit(s)&&r.push(this.create(t,e,i,n))}return this.visitQueue(r)}visitSingle(e,t){return!!this.shouldVisit(e[t])&&this.visitQueue([this.create(e,e,t)])}visitQueue(e){this.queue=e,this.priorityQueue=[];const t=new WeakSet;let n=!1;for(const r of e){if(r.resync(),0!==r.contexts.length&&r.contexts[r.contexts.length-1]===this||r.pushContext(this),null===r.key)continue;const{node:i}=r;if(!t.has(i)){if(i&&t.add(i),r.visit()){n=!0;break}if(this.priorityQueue.length&&(n=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,n))break}}for(const t of e)t.popContext();return this.queue=null,n}visit(e,t){const n=e[t];return!!n&&(Array.isArray(n)?this.visitMultiple(n,e,t):this.visitSingle(e,t))}}},function(e,t,n){e.exports=function(e){function t(e){let n,i,s,o=null;function a(...e){if(!a.enabled)return;const r=a,i=Number(new Date),s=i-(n||i);r.diff=s,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,i)=>{if("%%"===n)return"%";o++;const s=t.formatters[i];if("function"==typeof s){const t=e[o];n=s.call(r,t),e.splice(o,1),o--}return n}),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==t.namespaces&&(i=t.namespaces,s=t.enabled(e)),s),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(563),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},function(e,t){var n=1e3,r=6e4,i=60*r,s=24*i;function o(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,t){t=t||{};var a=typeof e;if("string"===a&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var o=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return 6048e5*o;case"days":case"day":case"d":return o*s;case"hours":case"hour":case"hrs":case"hr":case"h":return o*i;case"minutes":case"minute":case"mins":case"min":case"m":return o*r;case"seconds":case"second":case"secs":case"sec":case"s":return o*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}(e);if("number"===a&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=s)return o(e,t,s,"day");if(t>=i)return o(e,t,i,"hour");if(t>=r)return o(e,t,r,"minute");if(t>=n)return o(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=s)return Math.round(e/s)+"d";if(t>=i)return Math.round(e/i)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n(242);var r=n(243),i=n(1);const{VISITOR_KEYS:s,assignmentExpression:o,identifier:a,toExpression:l,variableDeclaration:u,variableDeclarator:c}=i,h={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||function(e){if(!e.isMethod()||!e.node.computed)return void e.skip();const t=s[e.type];for(const n of t)"key"!==n&&e.skipKey(n)}(e)},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;const n=e.getOuterBindingIdentifiers();for(const e in n)e===t.oldName&&(n[e].name=t.newName)}};t.default=class{constructor(e,t,n){this.newName=n,this.oldName=t,this.binding=e}maybeConvertFromExportDeclaration(e){const t=e.parentPath;t.isExportDeclaration()&&(t.isExportDefaultDeclaration()&&!t.get("declaration").node.id||(0,r.default)(t))}maybeConvertFromClassFunctionDeclaration(e){}maybeConvertFromClassFunctionExpression(e){}rename(e){const{binding:t,oldName:n,newName:r}=this,{scope:i,path:s}=t,o=s.find(e=>e.isDeclaration()||e.isFunctionExpression()||e.isClassExpression());if(o){o.getOuterBindingIdentifiers()[n]===t.identifier&&this.maybeConvertFromExportDeclaration(o)}const a=e||i.block;"SwitchStatement"===(null==a?void 0:a.type)?a.cases.forEach(e=>{i.traverse(e,h,this)}):i.traverse(a,h,this),e||(i.removeOwnBinding(n),i.bindings[r]=t,this.binding.identifier.name=r),o&&(this.maybeConvertFromClassFunctionDeclaration(o),this.maybeConvertFromClassFunctionExpression(o))}}},function(e,t,n){"use strict";e.exports=n(566)},function(e){e.exports=JSON.parse('{"builtin":{"Array":false,"ArrayBuffer":false,"Atomics":false,"BigInt":false,"BigInt64Array":false,"BigUint64Array":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"globalThis":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es5":{"Array":false,"Boolean":false,"constructor":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"propertyIsEnumerable":false,"RangeError":false,"ReferenceError":false,"RegExp":false,"String":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false},"es2015":{"Array":false,"ArrayBuffer":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es2017":{"Array":false,"ArrayBuffer":false,"Atomics":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"browser":{"AbortController":false,"AbortSignal":false,"addEventListener":false,"alert":false,"AnalyserNode":false,"Animation":false,"AnimationEffectReadOnly":false,"AnimationEffectTiming":false,"AnimationEffectTimingReadOnly":false,"AnimationEvent":false,"AnimationPlaybackEvent":false,"AnimationTimeline":false,"applicationCache":false,"ApplicationCache":false,"ApplicationCacheErrorEvent":false,"atob":false,"Attr":false,"Audio":false,"AudioBuffer":false,"AudioBufferSourceNode":false,"AudioContext":false,"AudioDestinationNode":false,"AudioListener":false,"AudioNode":false,"AudioParam":false,"AudioProcessingEvent":false,"AudioScheduledSourceNode":false,"AudioWorkletGlobalScope ":false,"AudioWorkletNode":false,"AudioWorkletProcessor":false,"BarProp":false,"BaseAudioContext":false,"BatteryManager":false,"BeforeUnloadEvent":false,"BiquadFilterNode":false,"Blob":false,"BlobEvent":false,"blur":false,"BroadcastChannel":false,"btoa":false,"BudgetService":false,"ByteLengthQueuingStrategy":false,"Cache":false,"caches":false,"CacheStorage":false,"cancelAnimationFrame":false,"cancelIdleCallback":false,"CanvasCaptureMediaStreamTrack":false,"CanvasGradient":false,"CanvasPattern":false,"CanvasRenderingContext2D":false,"ChannelMergerNode":false,"ChannelSplitterNode":false,"CharacterData":false,"clearInterval":false,"clearTimeout":false,"clientInformation":false,"ClipboardEvent":false,"close":false,"closed":false,"CloseEvent":false,"Comment":false,"CompositionEvent":false,"confirm":false,"console":false,"ConstantSourceNode":false,"ConvolverNode":false,"CountQueuingStrategy":false,"createImageBitmap":false,"Credential":false,"CredentialsContainer":false,"crypto":false,"Crypto":false,"CryptoKey":false,"CSS":false,"CSSConditionRule":false,"CSSFontFaceRule":false,"CSSGroupingRule":false,"CSSImportRule":false,"CSSKeyframeRule":false,"CSSKeyframesRule":false,"CSSMediaRule":false,"CSSNamespaceRule":false,"CSSPageRule":false,"CSSRule":false,"CSSRuleList":false,"CSSStyleDeclaration":false,"CSSStyleRule":false,"CSSStyleSheet":false,"CSSSupportsRule":false,"CustomElementRegistry":false,"customElements":false,"CustomEvent":false,"DataTransfer":false,"DataTransferItem":false,"DataTransferItemList":false,"defaultstatus":false,"defaultStatus":false,"DelayNode":false,"DeviceMotionEvent":false,"DeviceOrientationEvent":false,"devicePixelRatio":false,"dispatchEvent":false,"document":false,"Document":false,"DocumentFragment":false,"DocumentType":false,"DOMError":false,"DOMException":false,"DOMImplementation":false,"DOMMatrix":false,"DOMMatrixReadOnly":false,"DOMParser":false,"DOMPoint":false,"DOMPointReadOnly":false,"DOMQuad":false,"DOMRect":false,"DOMRectReadOnly":false,"DOMStringList":false,"DOMStringMap":false,"DOMTokenList":false,"DragEvent":false,"DynamicsCompressorNode":false,"Element":false,"ErrorEvent":false,"event":false,"Event":false,"EventSource":false,"EventTarget":false,"external":false,"fetch":false,"File":false,"FileList":false,"FileReader":false,"find":false,"focus":false,"FocusEvent":false,"FontFace":false,"FontFaceSetLoadEvent":false,"FormData":false,"frameElement":false,"frames":false,"GainNode":false,"Gamepad":false,"GamepadButton":false,"GamepadEvent":false,"getComputedStyle":false,"getSelection":false,"HashChangeEvent":false,"Headers":false,"history":false,"History":false,"HTMLAllCollection":false,"HTMLAnchorElement":false,"HTMLAreaElement":false,"HTMLAudioElement":false,"HTMLBaseElement":false,"HTMLBodyElement":false,"HTMLBRElement":false,"HTMLButtonElement":false,"HTMLCanvasElement":false,"HTMLCollection":false,"HTMLContentElement":false,"HTMLDataElement":false,"HTMLDataListElement":false,"HTMLDetailsElement":false,"HTMLDialogElement":false,"HTMLDirectoryElement":false,"HTMLDivElement":false,"HTMLDListElement":false,"HTMLDocument":false,"HTMLElement":false,"HTMLEmbedElement":false,"HTMLFieldSetElement":false,"HTMLFontElement":false,"HTMLFormControlsCollection":false,"HTMLFormElement":false,"HTMLFrameElement":false,"HTMLFrameSetElement":false,"HTMLHeadElement":false,"HTMLHeadingElement":false,"HTMLHRElement":false,"HTMLHtmlElement":false,"HTMLIFrameElement":false,"HTMLImageElement":false,"HTMLInputElement":false,"HTMLLabelElement":false,"HTMLLegendElement":false,"HTMLLIElement":false,"HTMLLinkElement":false,"HTMLMapElement":false,"HTMLMarqueeElement":false,"HTMLMediaElement":false,"HTMLMenuElement":false,"HTMLMetaElement":false,"HTMLMeterElement":false,"HTMLModElement":false,"HTMLObjectElement":false,"HTMLOListElement":false,"HTMLOptGroupElement":false,"HTMLOptionElement":false,"HTMLOptionsCollection":false,"HTMLOutputElement":false,"HTMLParagraphElement":false,"HTMLParamElement":false,"HTMLPictureElement":false,"HTMLPreElement":false,"HTMLProgressElement":false,"HTMLQuoteElement":false,"HTMLScriptElement":false,"HTMLSelectElement":false,"HTMLShadowElement":false,"HTMLSlotElement":false,"HTMLSourceElement":false,"HTMLSpanElement":false,"HTMLStyleElement":false,"HTMLTableCaptionElement":false,"HTMLTableCellElement":false,"HTMLTableColElement":false,"HTMLTableElement":false,"HTMLTableRowElement":false,"HTMLTableSectionElement":false,"HTMLTemplateElement":false,"HTMLTextAreaElement":false,"HTMLTimeElement":false,"HTMLTitleElement":false,"HTMLTrackElement":false,"HTMLUListElement":false,"HTMLUnknownElement":false,"HTMLVideoElement":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"IdleDeadline":false,"IIRFilterNode":false,"Image":false,"ImageBitmap":false,"ImageBitmapRenderingContext":false,"ImageCapture":false,"ImageData":false,"indexedDB":false,"innerHeight":false,"innerWidth":false,"InputEvent":false,"IntersectionObserver":false,"IntersectionObserverEntry":false,"Intl":false,"isSecureContext":false,"KeyboardEvent":false,"KeyframeEffect":false,"KeyframeEffectReadOnly":false,"length":false,"localStorage":false,"location":true,"Location":false,"locationbar":false,"matchMedia":false,"MediaDeviceInfo":false,"MediaDevices":false,"MediaElementAudioSourceNode":false,"MediaEncryptedEvent":false,"MediaError":false,"MediaKeyMessageEvent":false,"MediaKeySession":false,"MediaKeyStatusMap":false,"MediaKeySystemAccess":false,"MediaList":false,"MediaQueryList":false,"MediaQueryListEvent":false,"MediaRecorder":false,"MediaSettingsRange":false,"MediaSource":false,"MediaStream":false,"MediaStreamAudioDestinationNode":false,"MediaStreamAudioSourceNode":false,"MediaStreamEvent":false,"MediaStreamTrack":false,"MediaStreamTrackEvent":false,"menubar":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"MIDIAccess":false,"MIDIConnectionEvent":false,"MIDIInput":false,"MIDIInputMap":false,"MIDIMessageEvent":false,"MIDIOutput":false,"MIDIOutputMap":false,"MIDIPort":false,"MimeType":false,"MimeTypeArray":false,"MouseEvent":false,"moveBy":false,"moveTo":false,"MutationEvent":false,"MutationObserver":false,"MutationRecord":false,"name":false,"NamedNodeMap":false,"NavigationPreloadManager":false,"navigator":false,"Navigator":false,"NetworkInformation":false,"Node":false,"NodeFilter":false,"NodeIterator":false,"NodeList":false,"Notification":false,"OfflineAudioCompletionEvent":false,"OfflineAudioContext":false,"offscreenBuffering":false,"OffscreenCanvas":true,"onabort":true,"onafterprint":true,"onanimationend":true,"onanimationiteration":true,"onanimationstart":true,"onappinstalled":true,"onauxclick":true,"onbeforeinstallprompt":true,"onbeforeprint":true,"onbeforeunload":true,"onblur":true,"oncancel":true,"oncanplay":true,"oncanplaythrough":true,"onchange":true,"onclick":true,"onclose":true,"oncontextmenu":true,"oncuechange":true,"ondblclick":true,"ondevicemotion":true,"ondeviceorientation":true,"ondeviceorientationabsolute":true,"ondrag":true,"ondragend":true,"ondragenter":true,"ondragleave":true,"ondragover":true,"ondragstart":true,"ondrop":true,"ondurationchange":true,"onemptied":true,"onended":true,"onerror":true,"onfocus":true,"ongotpointercapture":true,"onhashchange":true,"oninput":true,"oninvalid":true,"onkeydown":true,"onkeypress":true,"onkeyup":true,"onlanguagechange":true,"onload":true,"onloadeddata":true,"onloadedmetadata":true,"onloadstart":true,"onlostpointercapture":true,"onmessage":true,"onmessageerror":true,"onmousedown":true,"onmouseenter":true,"onmouseleave":true,"onmousemove":true,"onmouseout":true,"onmouseover":true,"onmouseup":true,"onmousewheel":true,"onoffline":true,"ononline":true,"onpagehide":true,"onpageshow":true,"onpause":true,"onplay":true,"onplaying":true,"onpointercancel":true,"onpointerdown":true,"onpointerenter":true,"onpointerleave":true,"onpointermove":true,"onpointerout":true,"onpointerover":true,"onpointerup":true,"onpopstate":true,"onprogress":true,"onratechange":true,"onrejectionhandled":true,"onreset":true,"onresize":true,"onscroll":true,"onsearch":true,"onseeked":true,"onseeking":true,"onselect":true,"onstalled":true,"onstorage":true,"onsubmit":true,"onsuspend":true,"ontimeupdate":true,"ontoggle":true,"ontransitionend":true,"onunhandledrejection":true,"onunload":true,"onvolumechange":true,"onwaiting":true,"onwheel":true,"open":false,"openDatabase":false,"opener":false,"Option":false,"origin":false,"OscillatorNode":false,"outerHeight":false,"outerWidth":false,"PageTransitionEvent":false,"pageXOffset":false,"pageYOffset":false,"PannerNode":false,"parent":false,"Path2D":false,"PaymentAddress":false,"PaymentRequest":false,"PaymentRequestUpdateEvent":false,"PaymentResponse":false,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceLongTaskTiming":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceNavigationTiming":false,"PerformanceObserver":false,"PerformanceObserverEntryList":false,"PerformancePaintTiming":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"PeriodicWave":false,"Permissions":false,"PermissionStatus":false,"personalbar":false,"PhotoCapabilities":false,"Plugin":false,"PluginArray":false,"PointerEvent":false,"PopStateEvent":false,"postMessage":false,"Presentation":false,"PresentationAvailability":false,"PresentationConnection":false,"PresentationConnectionAvailableEvent":false,"PresentationConnectionCloseEvent":false,"PresentationConnectionList":false,"PresentationReceiver":false,"PresentationRequest":false,"print":false,"ProcessingInstruction":false,"ProgressEvent":false,"PromiseRejectionEvent":false,"prompt":false,"PushManager":false,"PushSubscription":false,"PushSubscriptionOptions":false,"queueMicrotask":false,"RadioNodeList":false,"Range":false,"ReadableStream":false,"registerProcessor":false,"RemotePlayback":false,"removeEventListener":false,"Request":false,"requestAnimationFrame":false,"requestIdleCallback":false,"resizeBy":false,"ResizeObserver":false,"ResizeObserverEntry":false,"resizeTo":false,"Response":false,"RTCCertificate":false,"RTCDataChannel":false,"RTCDataChannelEvent":false,"RTCDtlsTransport":false,"RTCIceCandidate":false,"RTCIceGatherer":false,"RTCIceTransport":false,"RTCPeerConnection":false,"RTCPeerConnectionIceEvent":false,"RTCRtpContributingSource":false,"RTCRtpReceiver":false,"RTCRtpSender":false,"RTCSctpTransport":false,"RTCSessionDescription":false,"RTCStatsReport":false,"RTCTrackEvent":false,"screen":false,"Screen":false,"screenLeft":false,"ScreenOrientation":false,"screenTop":false,"screenX":false,"screenY":false,"ScriptProcessorNode":false,"scroll":false,"scrollbars":false,"scrollBy":false,"scrollTo":false,"scrollX":false,"scrollY":false,"SecurityPolicyViolationEvent":false,"Selection":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerRegistration":false,"sessionStorage":false,"setInterval":false,"setTimeout":false,"ShadowRoot":false,"SharedWorker":false,"SourceBuffer":false,"SourceBufferList":false,"speechSynthesis":false,"SpeechSynthesisEvent":false,"SpeechSynthesisUtterance":false,"StaticRange":false,"status":false,"statusbar":false,"StereoPannerNode":false,"stop":false,"Storage":false,"StorageEvent":false,"StorageManager":false,"styleMedia":false,"StyleSheet":false,"StyleSheetList":false,"SubtleCrypto":false,"SVGAElement":false,"SVGAngle":false,"SVGAnimatedAngle":false,"SVGAnimatedBoolean":false,"SVGAnimatedEnumeration":false,"SVGAnimatedInteger":false,"SVGAnimatedLength":false,"SVGAnimatedLengthList":false,"SVGAnimatedNumber":false,"SVGAnimatedNumberList":false,"SVGAnimatedPreserveAspectRatio":false,"SVGAnimatedRect":false,"SVGAnimatedString":false,"SVGAnimatedTransformList":false,"SVGAnimateElement":false,"SVGAnimateMotionElement":false,"SVGAnimateTransformElement":false,"SVGAnimationElement":false,"SVGCircleElement":false,"SVGClipPathElement":false,"SVGComponentTransferFunctionElement":false,"SVGDefsElement":false,"SVGDescElement":false,"SVGDiscardElement":false,"SVGElement":false,"SVGEllipseElement":false,"SVGFEBlendElement":false,"SVGFEColorMatrixElement":false,"SVGFEComponentTransferElement":false,"SVGFECompositeElement":false,"SVGFEConvolveMatrixElement":false,"SVGFEDiffuseLightingElement":false,"SVGFEDisplacementMapElement":false,"SVGFEDistantLightElement":false,"SVGFEDropShadowElement":false,"SVGFEFloodElement":false,"SVGFEFuncAElement":false,"SVGFEFuncBElement":false,"SVGFEFuncGElement":false,"SVGFEFuncRElement":false,"SVGFEGaussianBlurElement":false,"SVGFEImageElement":false,"SVGFEMergeElement":false,"SVGFEMergeNodeElement":false,"SVGFEMorphologyElement":false,"SVGFEOffsetElement":false,"SVGFEPointLightElement":false,"SVGFESpecularLightingElement":false,"SVGFESpotLightElement":false,"SVGFETileElement":false,"SVGFETurbulenceElement":false,"SVGFilterElement":false,"SVGForeignObjectElement":false,"SVGGElement":false,"SVGGeometryElement":false,"SVGGradientElement":false,"SVGGraphicsElement":false,"SVGImageElement":false,"SVGLength":false,"SVGLengthList":false,"SVGLinearGradientElement":false,"SVGLineElement":false,"SVGMarkerElement":false,"SVGMaskElement":false,"SVGMatrix":false,"SVGMetadataElement":false,"SVGMPathElement":false,"SVGNumber":false,"SVGNumberList":false,"SVGPathElement":false,"SVGPatternElement":false,"SVGPoint":false,"SVGPointList":false,"SVGPolygonElement":false,"SVGPolylineElement":false,"SVGPreserveAspectRatio":false,"SVGRadialGradientElement":false,"SVGRect":false,"SVGRectElement":false,"SVGScriptElement":false,"SVGSetElement":false,"SVGStopElement":false,"SVGStringList":false,"SVGStyleElement":false,"SVGSVGElement":false,"SVGSwitchElement":false,"SVGSymbolElement":false,"SVGTextContentElement":false,"SVGTextElement":false,"SVGTextPathElement":false,"SVGTextPositioningElement":false,"SVGTitleElement":false,"SVGTransform":false,"SVGTransformList":false,"SVGTSpanElement":false,"SVGUnitTypes":false,"SVGUseElement":false,"SVGViewElement":false,"TaskAttributionTiming":false,"Text":false,"TextDecoder":false,"TextEncoder":false,"TextEvent":false,"TextMetrics":false,"TextTrack":false,"TextTrackCue":false,"TextTrackCueList":false,"TextTrackList":false,"TimeRanges":false,"toolbar":false,"top":false,"Touch":false,"TouchEvent":false,"TouchList":false,"TrackEvent":false,"TransitionEvent":false,"TreeWalker":false,"UIEvent":false,"URL":false,"URLSearchParams":false,"ValidityState":false,"visualViewport":false,"VisualViewport":false,"VTTCue":false,"WaveShaperNode":false,"WebAssembly":false,"WebGL2RenderingContext":false,"WebGLActiveInfo":false,"WebGLBuffer":false,"WebGLContextEvent":false,"WebGLFramebuffer":false,"WebGLProgram":false,"WebGLQuery":false,"WebGLRenderbuffer":false,"WebGLRenderingContext":false,"WebGLSampler":false,"WebGLShader":false,"WebGLShaderPrecisionFormat":false,"WebGLSync":false,"WebGLTexture":false,"WebGLTransformFeedback":false,"WebGLUniformLocation":false,"WebGLVertexArrayObject":false,"WebSocket":false,"WheelEvent":false,"window":false,"Window":false,"Worker":false,"WritableStream":false,"XMLDocument":false,"XMLHttpRequest":false,"XMLHttpRequestEventTarget":false,"XMLHttpRequestUpload":false,"XMLSerializer":false,"XPathEvaluator":false,"XPathExpression":false,"XPathResult":false,"XSLTProcessor":false},"worker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"clearInterval":false,"clearTimeout":false,"close":true,"console":false,"fetch":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":true,"indexedDB":false,"location":false,"MessageChannel":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onlanguagechange":true,"onmessage":true,"onoffline":true,"ononline":true,"onrejectionhandled":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"removeEventListener":false,"Request":false,"Response":false,"self":true,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"node":{"__dirname":false,"__filename":false,"Buffer":false,"clearImmediate":false,"clearInterval":false,"clearTimeout":false,"console":false,"exports":true,"global":false,"Intl":false,"module":false,"process":false,"queueMicrotask":false,"require":false,"setImmediate":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false},"commonjs":{"exports":true,"global":false,"module":false,"require":false},"amd":{"define":false,"require":false},"mocha":{"after":false,"afterEach":false,"before":false,"beforeEach":false,"context":false,"describe":false,"it":false,"mocha":false,"run":false,"setup":false,"specify":false,"suite":false,"suiteSetup":false,"suiteTeardown":false,"teardown":false,"test":false,"xcontext":false,"xdescribe":false,"xit":false,"xspecify":false},"jasmine":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fail":false,"fdescribe":false,"fit":false,"it":false,"jasmine":false,"pending":false,"runs":false,"spyOn":false,"spyOnProperty":false,"waits":false,"waitsFor":false,"xdescribe":false,"xit":false},"jest":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fdescribe":false,"fit":false,"it":false,"jest":false,"pit":false,"require":false,"test":false,"xdescribe":false,"xit":false,"xtest":false},"qunit":{"asyncTest":false,"deepEqual":false,"equal":false,"expect":false,"module":false,"notDeepEqual":false,"notEqual":false,"notOk":false,"notPropEqual":false,"notStrictEqual":false,"ok":false,"propEqual":false,"QUnit":false,"raises":false,"start":false,"stop":false,"strictEqual":false,"test":false,"throws":false},"phantomjs":{"console":true,"exports":true,"phantom":true,"require":true,"WebPage":true},"couch":{"emit":false,"exports":false,"getRow":false,"log":false,"module":false,"provides":false,"require":false,"respond":false,"send":false,"start":false,"sum":false},"rhino":{"defineClass":false,"deserialize":false,"gc":false,"help":false,"importClass":false,"importPackage":false,"java":false,"load":false,"loadClass":false,"Packages":false,"print":false,"quit":false,"readFile":false,"readUrl":false,"runCommand":false,"seal":false,"serialize":false,"spawn":false,"sync":false,"toint32":false,"version":false},"nashorn":{"__DIR__":false,"__FILE__":false,"__LINE__":false,"com":false,"edu":false,"exit":false,"java":false,"Java":false,"javafx":false,"JavaImporter":false,"javax":false,"JSAdapter":false,"load":false,"loadWithNewGlobal":false,"org":false,"Packages":false,"print":false,"quit":false},"wsh":{"ActiveXObject":true,"Enumerator":true,"GetObject":true,"ScriptEngine":true,"ScriptEngineBuildVersion":true,"ScriptEngineMajorVersion":true,"ScriptEngineMinorVersion":true,"VBArray":true,"WScript":true,"WSH":true,"XDomainRequest":true},"jquery":{"$":false,"jQuery":false},"yui":{"YAHOO":false,"YAHOO_config":false,"YUI":false,"YUI_config":false},"shelljs":{"cat":false,"cd":false,"chmod":false,"config":false,"cp":false,"dirs":false,"echo":false,"env":false,"error":false,"exec":false,"exit":false,"find":false,"grep":false,"ln":false,"ls":false,"mkdir":false,"mv":false,"popd":false,"pushd":false,"pwd":false,"rm":false,"sed":false,"set":false,"target":false,"tempdir":false,"test":false,"touch":false,"which":false},"prototypejs":{"$":false,"$$":false,"$A":false,"$break":false,"$continue":false,"$F":false,"$H":false,"$R":false,"$w":false,"Abstract":false,"Ajax":false,"Autocompleter":false,"Builder":false,"Class":false,"Control":false,"Draggable":false,"Draggables":false,"Droppables":false,"Effect":false,"Element":false,"Enumerable":false,"Event":false,"Field":false,"Form":false,"Hash":false,"Insertion":false,"ObjectRange":false,"PeriodicalExecuter":false,"Position":false,"Prototype":false,"Scriptaculous":false,"Selector":false,"Sortable":false,"SortableObserver":false,"Sound":false,"Template":false,"Toggle":false,"Try":false},"meteor":{"_":false,"$":false,"Accounts":false,"AccountsClient":false,"AccountsCommon":false,"AccountsServer":false,"App":false,"Assets":false,"Blaze":false,"check":false,"Cordova":false,"DDP":false,"DDPRateLimiter":false,"DDPServer":false,"Deps":false,"EJSON":false,"Email":false,"HTTP":false,"Log":false,"Match":false,"Meteor":false,"Mongo":false,"MongoInternals":false,"Npm":false,"Package":false,"Plugin":false,"process":false,"Random":false,"ReactiveDict":false,"ReactiveVar":false,"Router":false,"ServiceConfiguration":false,"Session":false,"share":false,"Spacebars":false,"Template":false,"Tinytest":false,"Tracker":false,"UI":false,"Utils":false,"WebApp":false,"WebAppInternals":false},"mongo":{"_isWindows":false,"_rand":false,"BulkWriteResult":false,"cat":false,"cd":false,"connect":false,"db":false,"getHostName":false,"getMemInfo":false,"hostname":false,"ISODate":false,"listFiles":false,"load":false,"ls":false,"md5sumFile":false,"mkdir":false,"Mongo":false,"NumberInt":false,"NumberLong":false,"ObjectId":false,"PlanCache":false,"print":false,"printjson":false,"pwd":false,"quit":false,"removeFile":false,"rs":false,"sh":false,"UUID":false,"version":false,"WriteResult":false},"applescript":{"$":false,"Application":false,"Automation":false,"console":false,"delay":false,"Library":false,"ObjC":false,"ObjectSpecifier":false,"Path":false,"Progress":false,"Ref":false},"serviceworker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"CacheStorage":false,"clearInterval":false,"clearTimeout":false,"Client":false,"clients":false,"Clients":false,"close":true,"console":false,"ExtendableEvent":false,"ExtendableMessageEvent":false,"fetch":false,"FetchEvent":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":false,"indexedDB":false,"location":false,"MessageChannel":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onfetch":true,"oninstall":true,"onlanguagechange":true,"onmessage":true,"onmessageerror":true,"onnotificationclick":true,"onnotificationclose":true,"onoffline":true,"ononline":true,"onpush":true,"onpushsubscriptionchange":true,"onrejectionhandled":true,"onsync":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"registration":false,"removeEventListener":false,"Request":false,"Response":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerGlobalScope":false,"ServiceWorkerMessageEvent":false,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"skipWaiting":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"WindowClient":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"atomtest":{"advanceClock":false,"fakeClearInterval":false,"fakeClearTimeout":false,"fakeSetInterval":false,"fakeSetTimeout":false,"resetTimeouts":false,"waitsForPromise":false},"embertest":{"andThen":false,"click":false,"currentPath":false,"currentRouteName":false,"currentURL":false,"fillIn":false,"find":false,"findAll":false,"findWithAssert":false,"keyEvent":false,"pauseTest":false,"resumeTest":false,"triggerEvent":false,"visit":false,"wait":false},"protractor":{"$":false,"$$":false,"browser":false,"by":false,"By":false,"DartObject":false,"element":false,"protractor":false},"shared-node-browser":{"clearInterval":false,"clearTimeout":false,"console":false,"setInterval":false,"setTimeout":false,"URL":false,"URLSearchParams":false},"webextensions":{"browser":false,"chrome":false,"opr":false},"greasemonkey":{"cloneInto":false,"createObjectIn":false,"exportFunction":false,"GM":false,"GM_addStyle":false,"GM_deleteValue":false,"GM_getResourceText":false,"GM_getResourceURL":false,"GM_getValue":false,"GM_info":false,"GM_listValues":false,"GM_log":false,"GM_openInTab":false,"GM_registerMenuCommand":false,"GM_setClipboard":false,"GM_setValue":false,"GM_xmlhttpRequest":false,"unsafeWindow":false},"devtools":{"$":false,"$_":false,"$$":false,"$0":false,"$1":false,"$2":false,"$3":false,"$4":false,"$x":false,"chrome":false,"clear":false,"copy":false,"debug":false,"dir":false,"dirxml":false,"getEventListeners":false,"inspect":false,"keys":false,"monitor":false,"monitorEvents":false,"profile":false,"profileEnd":false,"queryObjects":false,"table":false,"undebug":false,"unmonitor":false,"unmonitorEvents":false,"values":false}}')},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(244);t.default=class{constructor(e,t){this._cachedMap=void 0,this._code=void 0,this._opts=void 0,this._rawMappings=void 0,this._lastGenLine=void 0,this._lastSourceLine=void 0,this._lastSourceColumn=void 0,this._cachedMap=null,this._code=t,this._opts=e,this._rawMappings=[]}get(){if(!this._cachedMap){const e=this._cachedMap=new r.SourceMapGenerator({sourceRoot:this._opts.sourceRoot}),t=this._code;"string"==typeof t?e.setSourceContent(this._opts.sourceFileName.replace(/\\/g,"/"),t):"object"==typeof t&&Object.keys(t).forEach(n=>{e.setSourceContent(n.replace(/\\/g,"/"),t[n])}),this._rawMappings.forEach(t=>e.addMapping(t),e)}return this._cachedMap.toJSON()}getRawMappings(){return this._rawMappings.slice()}mark(e,t,n,r,i,s,o){this._lastGenLine!==e&&null===n||(o||this._lastGenLine!==e||this._lastSourceLine!==n||this._lastSourceColumn!==r)&&(this._cachedMap=null,this._lastGenLine=e,this._lastSourceLine=n,this._lastSourceColumn=r,this._rawMappings.push({name:i||void 0,generated:{line:e,column:t},source:null==n?void 0:(s||this._opts.sourceFileName).replace(/\\/g,"/"),original:null==n?void 0:{line:n,column:r}}))}}},function(e,t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},function(e,t,n){var r=n(65);function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){var t,n,i,s,o,a;t=this._last,n=e,i=t.generatedLine,s=n.generatedLine,o=t.generatedColumn,a=n.generatedColumn,s>i||s==i&&a>=o||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=i},function(e,t,n){var r=n(65),i=n(571),s=n(247).ArraySet,o=n(246),a=n(572).quickSort;function l(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new h(t):new u(t)}function u(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=r.getArg(t,"version"),i=r.getArg(t,"sources"),o=r.getArg(t,"names",[]),a=r.getArg(t,"sourceRoot",null),l=r.getArg(t,"sourcesContent",null),u=r.getArg(t,"mappings"),c=r.getArg(t,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);i=i.map(String).map(r.normalize).map((function(e){return a&&r.isAbsolute(a)&&r.isAbsolute(e)?r.relative(a,e):e})),this._names=s.fromArray(o.map(String),!0),this._sources=s.fromArray(i,!0),this.sourceRoot=a,this.sourcesContent=l,this._mappings=u,this.file=c}function c(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function h(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=r.getArg(t,"version"),i=r.getArg(t,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new s,this._names=new s;var o={line:-1,column:0};this._sections=i.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=r.getArg(e,"offset"),n=r.getArg(t,"line"),i=r.getArg(t,"column");if(n<o.line||n===o.line&&i<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=t,{generatedOffset:{generatedLine:n+1,generatedColumn:i+1},consumer:new l(r.getArg(e,"map"))}}))}l.fromSourceMap=function(e){return u.fromSourceMap(e)},l.prototype._version=3,l.prototype.__generatedMappings=null,Object.defineProperty(l.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),l.prototype.__originalMappings=null,Object.defineProperty(l.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),l.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},l.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},l.GENERATED_ORDER=1,l.ORIGINAL_ORDER=2,l.GREATEST_LOWER_BOUND=1,l.LEAST_UPPER_BOUND=2,l.prototype.eachMapping=function(e,t,n){var i,s=t||null;switch(n||l.GENERATED_ORDER){case l.GENERATED_ORDER:i=this._generatedMappings;break;case l.ORIGINAL_ORDER:i=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var o=this.sourceRoot;i.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=o&&(t=r.join(o,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,s)},l.prototype.allGeneratedPositionsFor=function(e){var t=r.getArg(e,"line"),n={source:r.getArg(e,"source"),originalLine:t,originalColumn:r.getArg(e,"column",0)};if(null!=this.sourceRoot&&(n.source=r.relative(this.sourceRoot,n.source)),!this._sources.has(n.source))return[];n.source=this._sources.indexOf(n.source);var s=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,i.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(void 0===e.column)for(var l=a.originalLine;a&&a.originalLine===l;)s.push({line:r.getArg(a,"generatedLine",null),column:r.getArg(a,"generatedColumn",null),lastColumn:r.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var u=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==u;)s.push({line:r.getArg(a,"generatedLine",null),column:r.getArg(a,"generatedColumn",null),lastColumn:r.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return s},t.SourceMapConsumer=l,u.prototype=Object.create(l.prototype),u.prototype.consumer=l,u.fromSourceMap=function(e){var t=Object.create(u.prototype),n=t._names=s.fromArray(e._names.toArray(),!0),i=t._sources=s.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var o=e._mappings.toArray().slice(),l=t.__generatedMappings=[],h=t.__originalMappings=[],d=0,f=o.length;d<f;d++){var p=o[d],m=new c;m.generatedLine=p.generatedLine,m.generatedColumn=p.generatedColumn,p.source&&(m.source=i.indexOf(p.source),m.originalLine=p.originalLine,m.originalColumn=p.originalColumn,p.name&&(m.name=n.indexOf(p.name)),h.push(m)),l.push(m)}return a(t.__originalMappings,r.compareByOriginalPositions),t},u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){return this._sources.toArray().map((function(e){return null!=this.sourceRoot?r.join(this.sourceRoot,e):e}),this)}}),u.prototype._parseMappings=function(e,t){for(var n,i,s,l,u,h=1,d=0,f=0,p=0,m=0,g=0,y=e.length,v=0,b={},w={},_=[],S=[];v<y;)if(";"===e.charAt(v))h++,v++,d=0;else if(","===e.charAt(v))v++;else{for((n=new c).generatedLine=h,l=v;l<y&&!this._charIsMappingSeparator(e,l);l++);if(s=b[i=e.slice(v,l)])v+=i.length;else{for(s=[];v<l;)o.decode(e,v,w),u=w.value,v=w.rest,s.push(u);if(2===s.length)throw new Error("Found a source, but no line and column");if(3===s.length)throw new Error("Found a source and line, but no column");b[i]=s}n.generatedColumn=d+s[0],d=n.generatedColumn,s.length>1&&(n.source=m+s[1],m+=s[1],n.originalLine=f+s[2],f=n.originalLine,n.originalLine+=1,n.originalColumn=p+s[3],p=n.originalColumn,s.length>4&&(n.name=g+s[4],g+=s[4])),S.push(n),"number"==typeof n.originalLine&&_.push(n)}a(S,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,a(_,r.compareByOriginalPositions),this.__originalMappings=_},u.prototype._findMapping=function(e,t,n,r,s,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return i.search(e,t,s,o)},u.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},u.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",r.compareByGeneratedPositionsDeflated,r.getArg(e,"bias",l.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===t.generatedLine){var s=r.getArg(i,"source",null);null!==s&&(s=this._sources.at(s),null!=this.sourceRoot&&(s=r.join(this.sourceRoot,s)));var o=r.getArg(i,"name",null);return null!==o&&(o=this._names.at(o)),{source:s,line:r.getArg(i,"originalLine",null),column:r.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},u.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=r.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=r.urlParse(this.sourceRoot))){var i=e.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!n.path||"/"==n.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(e){var t=r.getArg(e,"source");if(null!=this.sourceRoot&&(t=r.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var n={source:t=this._sources.indexOf(t),originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(e,"bias",l.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=u,h.prototype=Object.create(l.prototype),h.prototype.constructor=l,h.prototype._version=3,Object.defineProperty(h.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),h.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=i.search(t,this._sections,(function(e,t){var n=e.generatedLine-t.generatedOffset.generatedLine;return n||e.generatedColumn-t.generatedOffset.generatedColumn})),s=this._sections[n];return s?s.consumer.originalPositionFor({line:t.generatedLine-(s.generatedOffset.generatedLine-1),column:t.generatedColumn-(s.generatedOffset.generatedLine===t.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},h.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},h.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},h.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer.sources.indexOf(r.getArg(e,"source"))){var i=n.consumer.generatedPositionFor(e);if(i)return{line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},h.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,o=0;o<s.length;o++){var l=s[o],u=i.consumer._sources.at(l.source);null!==i.consumer.sourceRoot&&(u=r.join(i.consumer.sourceRoot,u)),this._sources.add(u),u=this._sources.indexOf(u);var c=i.consumer._names.at(l.name);this._names.add(c),c=this._names.indexOf(c);var h={source:u,generatedLine:l.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(i.generatedOffset.generatedLine===l.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:c};this.__generatedMappings.push(h),"number"==typeof h.originalLine&&this.__originalMappings.push(h)}a(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),a(this.__originalMappings,r.compareByOriginalPositions)},t.IndexedSourceMapConsumer=h},function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,r,i){if(0===n.length)return-1;var s=function e(n,r,i,s,o,a){var l=Math.floor((r-n)/2)+n,u=o(i,s[l],!0);return 0===u?l:u>0?r-l>1?e(l,r,i,s,o,a):a==t.LEAST_UPPER_BOUND?r<s.length?r:-1:l:l-n>1?e(n,l,i,s,o,a):a==t.LEAST_UPPER_BOUND?l:n<0?-1:n}(-1,n.length,e,n,r,i||t.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===r(n[s],n[s-1],!0);)--s;return s}},function(e,t){function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t,i,s){if(i<s){var o=i-1;n(e,(c=i,h=s,Math.round(c+Math.random()*(h-c))),s);for(var a=e[s],l=i;l<s;l++)t(e[l],a)<=0&&n(e,o+=1,l);n(e,o+1,l);var u=o+1;r(e,t,i,u-1),r(e,t,u+1,s)}var c,h}t.quickSort=function(e,t){r(e,t,0,e.length-1)}},function(e,t,n){var r=n(245).SourceMapGenerator,i=n(65),s=/(\r?\n)/,o="$$$isSourceNode$$$";function a(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==i?null:i,this[o]=!0,null!=r&&this.add(r)}a.fromStringWithSourceMap=function(e,t,n){var r=new a,o=e.split(s),l=0,u=function(){return e()+(e()||"");function e(){return l<o.length?o[l++]:void 0}},c=1,h=0,d=null;return t.eachMapping((function(e){if(null!==d){if(!(c<e.generatedLine)){var t=(n=o[l]).substr(0,e.generatedColumn-h);return o[l]=n.substr(e.generatedColumn-h),h=e.generatedColumn,f(d,t),void(d=e)}f(d,u()),c++,h=0}for(;c<e.generatedLine;)r.add(u()),c++;if(h<e.generatedColumn){var n=o[l];r.add(n.substr(0,e.generatedColumn)),o[l]=n.substr(e.generatedColumn),h=e.generatedColumn}d=e}),this),l<o.length&&(d&&f(d,u()),r.add(o.splice(l).join(""))),t.sources.forEach((function(e){var s=t.sourceContentFor(e);null!=s&&(null!=n&&(e=i.join(n,e)),r.setSourceContent(e,s))})),r;function f(e,t){if(null===e||void 0===e.source)r.add(t);else{var s=n?i.join(n,e.source):e.source;r.add(new a(e.originalLine,e.originalColumn,s,t,e.name))}}},a.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},a.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},a.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)(t=this.children[n])[o]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},a.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[o]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},a.prototype.setSourceContent=function(e,t){this.sourceContents[i.toSetString(e)]=t},a.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][o]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,n=r.length;t<n;t++)e(i.fromSetString(r[t]),this.sourceContents[r[t]])},a.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},a.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new r(e),i=!1,s=null,o=null,a=null,l=null;return this.walk((function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?(s===r.source&&o===r.line&&a===r.column&&l===r.name||n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),s=r.source,o=r.line,a=r.column,l=r.name,i=!0):i&&(n.addMapping({generated:{line:t.line,column:t.column}}),s=null,i=!1);for(var u=0,c=e.length;u<c;u++)10===e.charCodeAt(u)?(t.line++,t.column=0,u+1===c?(s=null,i=!1):i&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})):t.column++})),this.walkSourceContents((function(e,t){n.setSourceContent(e,t)})),{code:t.code,map:n}},t.SourceNode=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(575),i=n(248),s=n(1),o=n(578);const{isProgram:a,isFile:l,isEmptyStatement:u}=s,c=/e/i,h=/\.0+$/,d=/^0[box]/,f=/^\s*[@#]__PURE__\s*$/,{needsParens:p,needsWhitespaceAfter:m,needsWhitespaceBefore:g}=i;class y{constructor(e,t){this.inForStatementInitCounter=0,this._printStack=[],this._indent=0,this._insideAux=!1,this._parenPushNewlineState=null,this._noLineTerminator=!1,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new WeakSet,this._endsWithInteger=!1,this._endsWithWord=!1,this.format=e,this._buf=new r.default(t)}generate(e){return this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){this.format.compact||this.format.concise||this._indent++}dedent(){this.format.compact||this.format.concise||this._indent--}semicolon(e=!1){this._maybeAddAuxComment(),this._append(";",!e)}rightBrace(){this.format.minified&&this._buf.removeLastSemicolon(),this.token("}")}space(e=!1){if(!this.format.compact)if(e)this._space();else if(this._buf.hasContent()){const e=this.getLastChar();32!==e&&10!==e&&this._space()}}word(e){(this._endsWithWord||this.endsWith(47)&&47===e.charCodeAt(0))&&this._space(),this._maybeAddAuxComment(),this._append(e),this._endsWithWord=!0}number(e){this.word(e),this._endsWithInteger=Number.isInteger(+e)&&!d.test(e)&&!c.test(e)&&!h.test(e)&&46!==e.charCodeAt(e.length-1)}token(e){const t=this.getLastChar(),n=e.charCodeAt(0);("--"===e&&33===t||43===n&&43===t||45===n&&45===t||46===n&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._append(e)}newline(e=1){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space();const t=this.endsWithCharAndNewline();if(10!==t&&(123!==t&&58!==t||e--,!(e<=0)))for(let t=0;t<e;t++)this._newline()}endsWith(e){return this.getLastChar()===e}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,t){this._catchUp("start",e),this._buf.exactSource(e,t)}source(e,t){this._catchUp(e,t),this._buf.source(e,t)}withSource(e,t,n){this._catchUp(e,t),this._buf.withSource(e,t,n)}_space(){this._append(" ",!0)}_newline(){this._append("\n",!0)}_append(e,t=!1){this._maybeAddParen(e),this._maybeIndent(e),t?this._buf.queue(e):this._buf.append(e),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(e){this._indent&&this.endsWith(10)&&10!==e.charCodeAt(0)&&this._buf.queue(this._getIndent())}_maybeAddParen(e){const t=this._parenPushNewlineState;if(!t)return;let n;for(n=0;n<e.length&&" "===e[n];n++)continue;if(n===e.length)return;const r=e[n];if("\n"!==r){if("/"!==r||n+1===e.length)return void(this._parenPushNewlineState=null);const t=e[n+1];if("*"===t){if(f.test(e.slice(n+2,e.length-2)))return}else if("/"!==t)return void(this._parenPushNewlineState=null)}this.token("("),this.indent(),t.printed=!0}_catchUp(e,t){if(!this.format.retainLines)return;const n=t?t[e]:null;if(null!=(null==n?void 0:n.line)){const e=n.line-this._buf.getCurrentLine();for(let t=0;t<e;t++)this._newline()}}_getIndent(){return this.format.indent.style.repeat(this._indent)}startTerminatorless(e=!1){return e?(this._noLineTerminator=!0,null):this._parenPushNewlineState={printed:!1}}endTerminatorless(e){this._noLineTerminator=!1,null!=e&&e.printed&&(this.dedent(),this.newline(),this.token(")"))}print(e,t){if(!e)return;const n=this.format.concise;e._compact&&(this.format.concise=!0);const r=this[e.type];if(!r)throw new ReferenceError(`unknown node of type ${JSON.stringify(e.type)} with constructor ${JSON.stringify(null==e?void 0:e.constructor.name)}`);this._printStack.push(e);const i=this._insideAux;this._insideAux=!e.loc,this._maybeAddAuxComment(this._insideAux&&!i);let s=p(e,t,this._printStack);this.format.retainFunctionParens&&"FunctionExpression"===e.type&&e.extra&&e.extra.parenthesized&&(s=!0),s&&this.token("("),this._printLeadingComments(e);const o=a(e)||l(e)?null:e.loc;this.withSource("start",o,()=>{r.call(this,e,t)}),this._printTrailingComments(e),s&&this.token(")"),this._printStack.pop(),this.format.concise=n,this._insideAux=i}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e})}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e})}getPossibleRaw(e){const t=e.extra;if(t&&null!=t.raw&&null!=t.rawValue&&e.value===t.rawValue)return t.raw}printJoin(e,t,n={}){if(null==e||!e.length)return;n.indent&&this.indent();const r={addNewlines:n.addNewlines};for(let i=0;i<e.length;i++){const s=e[i];s&&(n.statement&&this._printNewline(!0,s,t,r),this.print(s,t),n.iterator&&n.iterator(s,i),n.separator&&i<e.length-1&&n.separator.call(this),n.statement&&this._printNewline(!1,s,t,r))}n.indent&&this.dedent()}printAndIndentOnComments(e,t){const n=e.leadingComments&&e.leadingComments.length>0;n&&this.indent(),this.print(e,t),n&&this.dedent()}printBlock(e){const t=e.body;u(t)||this.space(),this.print(t,e)}_printTrailingComments(e){this._printComments(this._getComments(!1,e))}_printLeadingComments(e){this._printComments(this._getComments(!0,e),!0)}printInnerComments(e,t=!0){var n;null!=(n=e.innerComments)&&n.length&&(t&&this.indent(),this._printComments(e.innerComments),t&&this.dedent())}printSequence(e,t,n={}){return n.statement=!0,this.printJoin(e,t,n)}printList(e,t,n={}){return null==n.separator&&(n.separator=b),this.printJoin(e,t,n)}_printNewline(e,t,n,r){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space();let i=0;if(this._buf.hasContent()){e||i++,r.addNewlines&&(i+=r.addNewlines(e,t)||0);(e?g:m)(t,n)&&i++}this.newline(Math.min(2,i))}_getComments(e,t){return t&&(e?t.leadingComments:t.trailingComments)||[]}_printComment(e,t){if(!this.format.shouldPrintComment(e.value))return;if(e.ignore)return;if(this._printedComments.has(e))return;this._printedComments.add(e);const n="CommentBlock"===e.type,r=n&&!t&&!this._noLineTerminator;r&&this._buf.hasContent()&&this.newline(1);const i=this.getLastChar();91!==i&&123!==i&&this.space();let s=n||this._noLineTerminator?`/*${e.value}*/`:`//${e.value}\n`;if(n&&this.format.indent.adjustMultilineComment){var o;const t=null==(o=e.loc)?void 0:o.start.column;if(t){const e=new RegExp("\\n\\s{1,"+t+"}","g");s=s.replace(e,"\n")}const n=Math.max(this._getIndent().length,this.format.retainLines?0:this._buf.getCurrentColumn());s=s.replace(/\n(?!$)/g,"\n"+" ".repeat(n))}this.endsWith(47)&&this._space(),this.withSource("start",e.loc,()=>{this._append(s)}),r&&this.newline(1)}_printComments(e,t){if(null!=e&&e.length)if(t&&1===e.length&&f.test(e[0].value))this._printComment(e[0],this._buf.hasContent()&&!this.endsWith(10));else for(const t of e)this._printComment(t)}printAssertions(e){var t;null!=(t=e.assertions)&&t.length&&(this.space(),this.word("assert"),this.space(),this.token("{"),this.space(),this.printList(e.assertions,e),this.space(),this.token("}"))}}Object.assign(y.prototype,o),y.prototype.Noop=function(){};var v=y;function b(){this.token(","),this.space()}t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const r=/^[ \t]+$/;t.default=class{constructor(e){this._map=null,this._buf="",this._last=0,this._queue=[],this._position={line:1,column:0},this._sourcePosition={identifierName:null,line:null,column:null,filename:null},this._disallowedPop=null,this._map=e}get(){this._flush();const e=this._map,t={code:this._buf.trimRight(),map:null,rawMappings:null==e?void 0:e.getRawMappings()};return e&&Object.defineProperty(t,"map",{configurable:!0,enumerable:!0,get(){return this.map=e.get()},set(e){Object.defineProperty(this,"map",{value:e,writable:!0})}}),t}append(e){this._flush();const{line:t,column:n,filename:r,identifierName:i,force:s}=this._sourcePosition;this._append(e,t,n,i,r,s)}queue(e){if("\n"===e)for(;this._queue.length>0&&r.test(this._queue[0][0]);)this._queue.shift();const{line:t,column:n,filename:i,identifierName:s,force:o}=this._sourcePosition;this._queue.unshift([e,t,n,s,i,o])}_flush(){let e;for(;e=this._queue.pop();)this._append(...e)}_append(e,t,n,r,i,s){this._buf+=e,this._last=e.charCodeAt(e.length-1);let o=e.indexOf("\n"),a=0;for(0!==o&&this._mark(t,n,r,i,s);-1!==o;)this._position.line++,this._position.column=0,a=o+1,a<e.length&&this._mark(++t,0,r,i,s),o=e.indexOf("\n",a);this._position.column+=e.length-a}_mark(e,t,n,r,i){var s;null==(s=this._map)||s.mark(this._position.line,this._position.column,e,t,n,r,i)}removeTrailingNewline(){this._queue.length>0&&"\n"===this._queue[0][0]&&this._queue.shift()}removeLastSemicolon(){this._queue.length>0&&";"===this._queue[0][0]&&this._queue.shift()}getLastChar(){let e;if(this._queue.length>0){e=this._queue[0][0].charCodeAt(0)}else e=this._last;return e}endsWithCharAndNewline(){const e=this._queue;if(e.length>0){if(10!==e[0][0].charCodeAt(0))return;if(e.length>1){return e[1][0].charCodeAt(0)}return this._last}}hasContent(){return this._queue.length>0||!!this._last}exactSource(e,t){this.source("start",e,!0),t(),this.source("end",e),this._disallowPop("start",e)}source(e,t,n){e&&!t||this._normalizePosition(e,t,this._sourcePosition,n)}withSource(e,t,n){if(!this._map)return n();const r=this._sourcePosition.line,i=this._sourcePosition.column,s=this._sourcePosition.filename,o=this._sourcePosition.identifierName;this.source(e,t),n(),this._sourcePosition.force&&this._sourcePosition.line===r&&this._sourcePosition.column===i&&this._sourcePosition.filename===s||this._disallowedPop&&this._disallowedPop.line===r&&this._disallowedPop.column===i&&this._disallowedPop.filename===s||(this._sourcePosition.line=r,this._sourcePosition.column=i,this._sourcePosition.filename=s,this._sourcePosition.identifierName=o,this._sourcePosition.force=!1,this._disallowedPop=null)}_disallowPop(e,t){e&&!t||(this._disallowedPop=this._normalizePosition(e,t))}_normalizePosition(e,t,n,r){const i=t?t[e]:null;void 0===n&&(n={identifierName:null,line:null,column:null,filename:null,force:!1});const s=n.line,o=n.column,a=n.filename;return n.identifierName="start"===e&&(null==t?void 0:t.identifierName)||null,n.line=null==i?void 0:i.line,n.column=null==i?void 0:i.column,n.filename=null==t?void 0:t.filename,(r||n.line!==s||n.column!==o||n.filename!==a)&&(n.force=r),n}getCurrentColumn(){const e=this._queue.reduce((e,t)=>t[0]+e,""),t=e.lastIndexOf("\n");return-1===t?this._position.column+e.length:e.length-1-t}getCurrentLine(){const e=this._queue.reduce((e,t)=>t[0]+e,"");let t=0;for(let n=0;n<e.length;n++)"\n"===e[n]&&t++;return this._position.line+t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodes=t.list=void 0;var r=n(1);const{FLIPPED_ALIAS_KEYS:i,isArrayExpression:s,isAssignmentExpression:o,isBinary:a,isBlockStatement:l,isCallExpression:u,isFunction:c,isIdentifier:h,isLiteral:d,isMemberExpression:f,isObjectExpression:p,isOptionalCallExpression:m,isOptionalMemberExpression:g,isStringLiteral:y}=r;function v(e,t={}){return f(e)||g(e)?(v(e.object,t),e.computed&&v(e.property,t)):a(e)||o(e)?(v(e.left,t),v(e.right,t)):u(e)||m(e)?(t.hasCall=!0,v(e.callee,t)):c(e)?t.hasFunction=!0:h(e)&&(t.hasHelper=t.hasHelper||b(e.callee)),t}function b(e){return f(e)?b(e.object)||b(e.property):h(e)?"require"===e.name||"_"===e.name[0]:u(e)?b(e.callee):!(!a(e)&&!o(e))&&(h(e.left)&&b(e.left)||b(e.right))}function w(e){return d(e)||p(e)||s(e)||h(e)||f(e)}const _={AssignmentExpression(e){const t=v(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return{before:t.hasFunction,after:!0}},SwitchCase:(e,t)=>({before:!!e.consequent.length||t.cases[0]===e,after:!e.consequent.length&&t.cases[t.cases.length-1]===e}),LogicalExpression(e){if(c(e.left)||c(e.right))return{after:!0}},Literal(e){if(y(e)&&"use strict"===e.value)return{after:!0}},CallExpression(e){if(c(e.callee)||b(e))return{before:!0,after:!0}},OptionalCallExpression(e){if(c(e.callee))return{before:!0,after:!0}},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){const n=e.declarations[t];let r=b(n.id)&&!w(n.init);if(!r){const e=v(n.init);r=b(n.init)&&e.hasCall||e.hasFunction}if(r)return{before:!0,after:!0}}},IfStatement(e){if(l(e.consequent))return{before:!0,after:!0}}};t.nodes=_,_.ObjectProperty=_.ObjectTypeProperty=_.ObjectMethod=function(e,t){if(t.properties[0]===e)return{before:!0}},_.ObjectTypeCallProperty=function(e,t){var n;if(t.callProperties[0]===e&&(null==(n=t.properties)||!n.length))return{before:!0}},_.ObjectTypeIndexer=function(e,t){var n,r;if(!(t.indexers[0]!==e||null!=(n=t.properties)&&n.length||null!=(r=t.callProperties)&&r.length))return{before:!0}},_.ObjectTypeInternalSlot=function(e,t){var n,r,i;if(!(t.internalSlots[0]!==e||null!=(n=t.properties)&&n.length||null!=(r=t.callProperties)&&r.length||null!=(i=t.indexers)&&i.length))return{before:!0}};const S={VariableDeclaration:e=>e.declarations.map(e=>e.init),ArrayExpression:e=>e.elements,ObjectExpression:e=>e.properties};t.list=S,[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach((function([e,t]){"boolean"==typeof t&&(t={after:t,before:t}),[e].concat(i[e]||[]).forEach((function(e){_[e]=function(){return t}}))}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowFunctionExpression=function(e,t){return m(t)||te(e,t)},t.AssignmentExpression=function(e,t){return!!P(e.left)||te(e,t)},t.Binary=function(e,t){if("**"===e.operator&&u(t,{operator:"**"}))return t.left===e;if(Z(e,t))return!0;if(Q(e,t)||H(t)||a(t))return!0;if(l(t)){const n=t.operator,r=X[n],i=e.operator,s=X[i];if(r===s&&t.right===e&&!A(t)||r>s)return!0}},t.BinaryExpression=function(e,t){return"in"===e.operator&&(G(t)||v(t))},t.ClassExpression=function(e,t,n){return ne(n,{expressionStatement:!0,exportDefault:!0})},t.ConditionalExpression=te,t.DoExpression=function(e,t,n){return!e.async&&ne(n,{expressionStatement:!0})},t.FunctionExpression=function(e,t,n){return ne(n,{expressionStatement:!0,exportDefault:!0})},t.FunctionTypeAnnotation=function(e,t,n){return q(t)||E(t)||i(t)||K(t)&&s(n[n.length-3])},t.Identifier=function(e,t,n){if("let"===e.name){const r=T(t,{object:e,computed:!0})||O(t,{object:e,computed:!0,optional:!1});return ne(n,{expressionStatement:r,forHead:r,forInHead:r,forOfHead:!0})}return"async"===e.name&&w(t)&&e===t.left},t.LogicalExpression=function(e,t){switch(e.operator){case"||":return!!A(t)&&("??"===t.operator||"&&"===t.operator);case"&&":return A(t,{operator:"??"});case"??":return A(t)&&"??"!==t.operator}},t.NullableTypeAnnotation=function(e,t){return i(t)},t.ObjectExpression=function(e,t,n){return ne(n,{expressionStatement:!0,arrowBody:!0})},t.OptionalIndexedAccessType=function(e,t){return x(t,{objectType:e})},t.OptionalCallExpression=t.OptionalMemberExpression=function(e,t){return c(t,{callee:e})||T(t,{object:e})},t.SequenceExpression=function(e,t){if(_(t)||z(t)||I(t)||S(t)&&t.test===e||Y(t)&&t.test===e||b(t)&&t.right===e||N(t)&&t.discriminant===e||y(t)&&t.expression===e)return!1;return!0},t.TSAsExpression=function(){return!0},t.TSInferType=function(e,t){return D(t)||j(t)},t.TSTypeAssertion=function(){return!0},t.TSIntersectionType=t.TSUnionType=function(e,t){return D(t)||j(t)||L(t)||V(t)||$(t)},t.UnaryLike=ee,t.IntersectionTypeAnnotation=t.UnionTypeAnnotation=function(e,t){return i(t)||C(t)||E(t)||q(t)},t.UpdateExpression=function(e,t){return Q(e,t)||Z(e,t)},t.AwaitExpression=t.YieldExpression=function(e,t){return l(t)||H(t)||Q(e,t)||a(t)&&J(e)||p(t)&&e===t.test||Z(e,t)};var r=n(1);const{isArrayTypeAnnotation:i,isArrowFunctionExpression:s,isAssignmentExpression:o,isAwaitExpression:a,isBinary:l,isBinaryExpression:u,isCallExpression:c,isClassDeclaration:h,isClassExpression:d,isConditional:f,isConditionalExpression:p,isExportDeclaration:m,isExportDefaultDeclaration:g,isExpressionStatement:y,isFor:v,isForInStatement:b,isForOfStatement:w,isForStatement:_,isIfStatement:S,isIndexedAccessType:x,isIntersectionTypeAnnotation:E,isLogicalExpression:A,isMemberExpression:T,isNewExpression:M,isNullableTypeAnnotation:C,isObjectPattern:P,isOptionalCallExpression:k,isOptionalMemberExpression:O,isReturnStatement:I,isSequenceExpression:R,isSwitchStatement:N,isTSArrayType:D,isTSAsExpression:F,isTSIntersectionType:L,isTSNonNullExpression:B,isTSOptionalType:j,isTSRestType:$,isTSTypeAssertion:U,isTSUnionType:V,isTaggedTemplateExpression:W,isThrowStatement:z,isTypeAnnotation:K,isUnaryLike:H,isUnionTypeAnnotation:q,isVariableDeclarator:G,isWhileStatement:Y,isYieldExpression:J}=r,X={"||":0,"??":0,"&&":1,"|":2,"^":3,"&":4,"==":5,"===":5,"!=":5,"!==":5,"<":6,">":6,"<=":6,">=":6,in:6,instanceof:6,">>":7,"<<":7,">>>":7,"+":8,"-":8,"*":9,"/":9,"%":9,"**":10},Z=(e,t)=>(h(t)||d(t))&&t.superClass===e,Q=(e,t)=>(T(t)||O(t))&&t.object===e||(c(t)||k(t)||M(t))&&t.callee===e||W(t)&&t.tag===e||B(t);function ee(e,t){return Q(e,t)||u(t,{operator:"**",left:e})||Z(e,t)}function te(e,t){return!!(H(t)||l(t)||p(t,{test:e})||a(t)||U(t)||F(t))||ee(e,t)}function ne(e,{expressionStatement:t=!1,arrowBody:n=!1,exportDefault:r=!1,forHead:i=!1,forInHead:a=!1,forOfHead:u=!1}){let c=e.length-1,h=e[c];c--;let d=e[c];for(;c>=0;){if(t&&y(d,{expression:h})||r&&g(d,{declaration:h})||n&&s(d,{body:h})||i&&_(d,{init:h})||a&&b(d,{left:h})||u&&w(d,{left:h}))return!0;if(!(Q(h,d)&&!M(d)||R(d)&&d.expressions[0]===h||f(d,{test:h})||l(d,{left:h})||o(d,{left:h})))return!1;h=d,c--,d=e[c]}return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(579);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var i=n(580);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var s=n(581);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var o=n(582);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=n(583);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var l=n(249);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var u=n(250);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=n(585);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var h=n(586);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var d=n(587);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var f=n(588);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaggedTemplateExpression=function(e){this.print(e.tag,e),this.print(e.typeParameters,e),this.print(e.quasi,e)},t.TemplateElement=function(e,t){const n=t.quasis[0]===e,r=t.quasis[t.quasis.length-1]===e,i=(n?"`":"}")+e.value.raw+(r?"`":"${");this.token(i)},t.TemplateLiteral=function(e){const t=e.quasis;for(let n=0;n<t.length;n++)this.print(t[n],e),n+1<t.length&&this.print(e.expressions[n],e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalExpression=t.BinaryExpression=t.AssignmentExpression=function(e,t){const n=this.inForStatementInitCounter&&"in"===e.operator&&!i.needsParens(e,t);n&&this.token("(");this.print(e.left,e),this.space(),"in"===e.operator||"instanceof"===e.operator?this.word(e.operator):this.token(e.operator);this.space(),this.print(e.right,e),n&&this.token(")")},t.AssignmentPattern=function(e){this.print(e.left,e),e.left.optional&&this.token("?");this.print(e.left.typeAnnotation,e),this.space(),this.token("="),this.space(),this.print(e.right,e)},t.AwaitExpression=void 0,t.BindExpression=function(e){this.print(e.object,e),this.token("::"),this.print(e.callee,e)},t.CallExpression=function(e){this.print(e.callee,e),this.print(e.typeArguments,e),this.print(e.typeParameters,e),this.token("("),this.printList(e.arguments,e),this.token(")")},t.ConditionalExpression=function(e){this.print(e.test,e),this.space(),this.token("?"),this.space(),this.print(e.consequent,e),this.space(),this.token(":"),this.space(),this.print(e.alternate,e)},t.Decorator=function(e){this.token("@"),this.print(e.expression,e),this.newline()},t.DoExpression=function(e){e.async&&(this.word("async"),this.space());this.word("do"),this.space(),this.print(e.body,e)},t.EmptyStatement=function(){this.semicolon(!0)},t.ExpressionStatement=function(e){this.print(e.expression,e),this.semicolon()},t.Import=function(){this.word("import")},t.MemberExpression=function(e){if(this.print(e.object,e),!e.computed&&a(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;o(e.property)&&"number"==typeof e.property.value&&(t=!0);t?(this.token("["),this.print(e.property,e),this.token("]")):(this.token("."),this.print(e.property,e))},t.MetaProperty=function(e){this.print(e.meta,e),this.token("."),this.print(e.property,e)},t.ModuleExpression=function(e){this.word("module"),this.space(),this.token("{"),0===e.body.body.length?this.token("}"):(this.newline(),this.printSequence(e.body.body,e,{indent:!0}),this.rightBrace())},t.NewExpression=function(e,t){if(this.word("new"),this.space(),this.print(e.callee,e),this.format.minified&&0===e.arguments.length&&!e.optional&&!s(t,{callee:e})&&!a(t)&&!l(t))return;this.print(e.typeArguments,e),this.print(e.typeParameters,e),e.optional&&this.token("?.");this.token("("),this.printList(e.arguments,e),this.token(")")},t.OptionalCallExpression=function(e){this.print(e.callee,e),this.print(e.typeArguments,e),this.print(e.typeParameters,e),e.optional&&this.token("?.");this.token("("),this.printList(e.arguments,e),this.token(")")},t.OptionalMemberExpression=function(e){if(this.print(e.object,e),!e.computed&&a(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;o(e.property)&&"number"==typeof e.property.value&&(t=!0);e.optional&&this.token("?.");t?(this.token("["),this.print(e.property,e),this.token("]")):(e.optional||this.token("."),this.print(e.property,e))},t.ParenthesizedExpression=function(e){this.token("("),this.print(e.expression,e),this.token(")")},t.PrivateName=function(e){this.token("#"),this.print(e.id,e)},t.SequenceExpression=function(e){this.printList(e.expressions,e)},t.Super=function(){this.word("super")},t.ThisExpression=function(){this.word("this")},t.UnaryExpression=function(e){"void"===e.operator||"delete"===e.operator||"typeof"===e.operator||"throw"===e.operator?(this.word(e.operator),this.space()):this.token(e.operator);this.print(e.argument,e)},t.UpdateExpression=function(e){e.prefix?(this.token(e.operator),this.print(e.argument,e)):(this.startTerminatorless(!0),this.print(e.argument,e),this.endTerminatorless(),this.token(e.operator))},t.V8IntrinsicIdentifier=function(e){this.token("%"),this.word(e.name)},t.YieldExpression=void 0;var r=n(1),i=n(248);const{isCallExpression:s,isLiteral:o,isMemberExpression:a,isNewExpression:l}=r;function u(e){return function(t){if(this.word(e),t.delegate&&this.token("*"),t.argument){this.space();const e=this.startTerminatorless();this.print(t.argument,t),this.endTerminatorless(e)}}}const c=u("yield");t.YieldExpression=c;const h=u("await");t.AwaitExpression=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreakStatement=void 0,t.CatchClause=function(e){this.word("catch"),this.space(),e.param&&(this.token("("),this.print(e.param,e),this.print(e.param.typeAnnotation,e),this.token(")"),this.space());this.print(e.body,e)},t.ContinueStatement=void 0,t.DebuggerStatement=function(){this.word("debugger"),this.semicolon()},t.DoWhileStatement=function(e){this.word("do"),this.space(),this.print(e.body,e),this.space(),this.word("while"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.semicolon()},t.ForOfStatement=t.ForInStatement=void 0,t.ForStatement=function(e){this.word("for"),this.space(),this.token("("),this.inForStatementInitCounter++,this.print(e.init,e),this.inForStatementInitCounter--,this.token(";"),e.test&&(this.space(),this.print(e.test,e));this.token(";"),e.update&&(this.space(),this.print(e.update,e));this.token(")"),this.printBlock(e)},t.IfStatement=function(e){this.word("if"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.space();const t=e.alternate&&o(function e(t){return a(t.body)?e(t.body):t}(e.consequent));t&&(this.token("{"),this.newline(),this.indent());this.printAndIndentOnComments(e.consequent,e),t&&(this.dedent(),this.newline(),this.token("}"));e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate,e))},t.LabeledStatement=function(e){this.print(e.label,e),this.token(":"),this.space(),this.print(e.body,e)},t.ReturnStatement=void 0,t.SwitchCase=function(e){e.test?(this.word("case"),this.space(),this.print(e.test,e),this.token(":")):(this.word("default"),this.token(":"));e.consequent.length&&(this.newline(),this.printSequence(e.consequent,e,{indent:!0}))},t.SwitchStatement=function(e){this.word("switch"),this.space(),this.token("("),this.print(e.discriminant,e),this.token(")"),this.space(),this.token("{"),this.printSequence(e.cases,e,{indent:!0,addNewlines(t,n){if(!t&&e.cases[e.cases.length-1]===n)return-1}}),this.token("}")},t.ThrowStatement=void 0,t.TryStatement=function(e){this.word("try"),this.space(),this.print(e.block,e),this.space(),e.handlers?this.print(e.handlers[0],e):this.print(e.handler,e);e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer,e))},t.VariableDeclaration=function(e,t){e.declare&&(this.word("declare"),this.space());this.word(e.kind),this.space();let n,r=!1;if(!i(t))for(const t of e.declarations)t.init&&(r=!0);r&&(n="const"===e.kind?y:g);if(this.printList(e.declarations,e,{separator:n}),i(t))if(s(t)){if(t.init===e)return}else if(t.left===e)return;this.semicolon()},t.VariableDeclarator=function(e){this.print(e.id,e),e.definite&&this.token("!");this.print(e.id.typeAnnotation,e),e.init&&(this.space(),this.token("="),this.space(),this.print(e.init,e))},t.WhileStatement=function(e){this.word("while"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.printBlock(e)},t.WithStatement=function(e){this.word("with"),this.space(),this.token("("),this.print(e.object,e),this.token(")"),this.printBlock(e)};var r=n(1);const{isFor:i,isForStatement:s,isIfStatement:o,isStatement:a}=r;const l=function(e){return function(t){this.word("for"),this.space(),"of"===e&&t.await&&(this.word("await"),this.space()),this.token("("),this.print(t.left,t),this.space(),this.word(e),this.space(),this.print(t.right,t),this.token(")"),this.printBlock(t)}},u=l("in");t.ForInStatement=u;const c=l("of");function h(e,t="label"){return function(n){this.word(e);const r=n[t];if(r){this.space();const e="label"==t,i=this.startTerminatorless(e);this.print(r,n),this.endTerminatorless(i)}this.semicolon()}}t.ForOfStatement=c;const d=h("continue");t.ContinueStatement=d;const f=h("return","argument");t.ReturnStatement=f;const p=h("break");t.BreakStatement=p;const m=h("throw","argument");function g(){if(this.token(","),this.newline(),this.endsWith(10))for(let e=0;e<4;e++)this.space(!0)}function y(){if(this.token(","),this.newline(),this.endsWith(10))for(let e=0;e<6;e++)this.space(!0)}t.ThrowStatement=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClassAccessorProperty=function(e){this.printJoin(e.decorators,e),this.source("end",e.key.loc),this.tsPrintClassMemberModifiers(e,!0),this.word("accessor"),this.printInnerComments(e),this.space(),e.computed?(this.token("["),this.print(e.key,e),this.token("]")):(this._variance(e),this.print(e.key,e));e.optional&&this.token("?");e.definite&&this.token("!");this.print(e.typeAnnotation,e),e.value&&(this.space(),this.token("="),this.space(),this.print(e.value,e));this.semicolon()},t.ClassBody=function(e){this.token("{"),this.printInnerComments(e),0===e.body.length?this.token("}"):(this.newline(),this.indent(),this.printSequence(e.body,e),this.dedent(),this.endsWith(10)||this.newline(),this.rightBrace())},t.ClassExpression=t.ClassDeclaration=function(e,t){this.format.decoratorsBeforeExport&&(i(t)||s(t))||this.printJoin(e.decorators,e);e.declare&&(this.word("declare"),this.space());e.abstract&&(this.word("abstract"),this.space());this.word("class"),this.printInnerComments(e),e.id&&(this.space(),this.print(e.id,e));this.print(e.typeParameters,e),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass,e),this.print(e.superTypeParameters,e));e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e));this.space(),this.print(e.body,e)},t.ClassMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body,e)},t.ClassPrivateMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body,e)},t.ClassPrivateProperty=function(e){this.printJoin(e.decorators,e),e.static&&(this.word("static"),this.space());this.print(e.key,e),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.token("="),this.space(),this.print(e.value,e));this.semicolon()},t.ClassProperty=function(e){this.printJoin(e.decorators,e),this.source("end",e.key.loc),this.tsPrintClassMemberModifiers(e,!0),e.computed?(this.token("["),this.print(e.key,e),this.token("]")):(this._variance(e),this.print(e.key,e));e.optional&&this.token("?");e.definite&&this.token("!");this.print(e.typeAnnotation,e),e.value&&(this.space(),this.token("="),this.space(),this.print(e.value,e));this.semicolon()},t.StaticBlock=function(e){this.word("static"),this.space(),this.token("{"),0===e.body.length?this.token("}"):(this.newline(),this.printSequence(e.body,e,{indent:!0}),this.rightBrace())},t._classMethodHead=function(e){this.printJoin(e.decorators,e),this.source("end",e.key.loc),this.tsPrintClassMemberModifiers(e,!1),this._methodHead(e)};var r=n(1);const{isExportDefaultDeclaration:i,isExportNamedDeclaration:s}=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowFunctionExpression=function(e){e.async&&(this.word("async"),this.space());const t=e.params[0];this.format.retainLines||this.format.auxiliaryCommentBefore||this.format.auxiliaryCommentAfter||1!==e.params.length||!i(t)||function(e,t){var n,r;return!!(e.typeParameters||e.returnType||e.predicate||t.typeAnnotation||t.optional||null!=(n=t.leadingComments)&&n.length||null!=(r=t.trailingComments)&&r.length)}(e,t)?this._params(e):this.print(t,e);this._predicate(e),this.space(),this.token("=>"),this.space(),this.print(e.body,e)},t.FunctionDeclaration=t.FunctionExpression=function(e){this._functionHead(e),this.space(),this.print(e.body,e)},t._functionHead=function(e){e.async&&(this.word("async"),this.space());this.word("function"),e.generator&&this.token("*");this.printInnerComments(e),this.space(),e.id&&this.print(e.id,e);this._params(e),this._predicate(e)},t._methodHead=function(e){const t=e.kind,n=e.key;"get"!==t&&"set"!==t||(this.word(t),this.space());e.async&&(this._catchUp("start",n.loc),this.word("async"),this.space());"method"!==t&&"init"!==t||e.generator&&this.token("*");e.computed?(this.token("["),this.print(n,e),this.token("]")):this.print(n,e);e.optional&&this.token("?");this._params(e)},t._param=function(e,t){this.printJoin(e.decorators,e),this.print(e,t),e.optional&&this.token("?");this.print(e.typeAnnotation,e)},t._parameters=function(e,t){for(let n=0;n<e.length;n++)this._param(e[n],t),n<e.length-1&&(this.token(","),this.space())},t._params=function(e){this.print(e.typeParameters,e),this.token("("),this._parameters(e.params,e),this.token(")"),this.print(e.returnType,e)},t._predicate=function(e){e.predicate&&(e.returnType||this.token(":"),this.space(),this.print(e.predicate,e))};var r=n(1);const{isIdentifier:i}=r},function(e,t,n){"use strict";(function(t){const n={},r=n.hasOwnProperty,i=(e,t)=>{for(const n in e)r.call(e,n)&&t(n,e[n])},s=n.toString,o=Array.isArray,a=t.isBuffer,l={'"':'\\"',"'":"\\'","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},u=/["'\\\b\f\n\r\t]/,c=/[0-9]/,h=/[ !#-&\(-\[\]-_a-~]/,d=(e,t)=>{const n=()=>{w=b,++t.indentLevel,b=t.indent.repeat(t.indentLevel)},r={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},f=t&&t.json;var p,m;f&&(r.quotes="double",r.wrap=!0),p=r,"single"!=(t=(m=t)?(i(m,(e,t)=>{p[e]=t}),p):p).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");const g="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",y=t.compact,v=t.lowercaseHex;let b=t.indent.repeat(t.indentLevel),w="";const _=t.__inline1__,S=t.__inline2__,x=y?"":"\n";let E,A=!0;const T="binary"==t.numbers,M="octal"==t.numbers,C="decimal"==t.numbers,P="hexadecimal"==t.numbers;if(f&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!(e=>"string"==typeof e||"[object String]"==s.call(e))(e)){if((e=>"[object Map]"==s.call(e))(e))return 0==e.size?"new Map()":(y||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+d(Array.from(e),t)+")");if((e=>"[object Set]"==s.call(e))(e))return 0==e.size?"new Set()":"new Set("+d(Array.from(e),t)+")";if(a(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+d(Array.from(e),t)+")";if(o(e))return E=[],t.wrap=!0,_&&(t.__inline1__=!1,t.__inline2__=!0),S||n(),((e,t)=>{const n=e.length;let r=-1;for(;++r<n;)t(e[r])})(e,e=>{A=!1,S&&(t.__inline2__=!1),E.push((y||S?"":b)+d(e,t))}),A?"[]":S?"["+E.join(", ")+"]":"["+x+E.join(","+x)+x+(y?"":w)+"]";if(!(e=>"number"==typeof e||"[object Number]"==s.call(e))(e))return(e=>"[object Object]"==s.call(e))(e)?(E=[],t.wrap=!0,n(),i(e,(e,n)=>{A=!1,E.push((y?"":b)+d(e,t)+":"+(y?"":" ")+d(n,t))}),A?"{}":"{"+x+E.join(","+x)+x+(y?"":w)+"}"):f?JSON.stringify(e)||"null":String(e);if(f)return JSON.stringify(e);if(C)return String(e);if(P){let t=e.toString(16);return v||(t=t.toUpperCase()),"0x"+t}if(T)return"0b"+e.toString(2);if(M)return"0o"+e.toString(8)}const k=e;let O=-1;const I=k.length;for(E="";++O<I;){const e=k.charAt(O);if(t.es6){const e=k.charCodeAt(O);if(e>=55296&&e<=56319&&I>O+1){const t=k.charCodeAt(O+1);if(t>=56320&&t<=57343){let n=(1024*(e-55296)+t-56320+65536).toString(16);v||(n=n.toUpperCase()),E+="\\u{"+n+"}",++O;continue}}}if(!t.escapeEverything){if(h.test(e)){E+=e;continue}if('"'==e){E+=g==e?'\\"':e;continue}if("`"==e){E+=g==e?"\\`":e;continue}if("'"==e){E+=g==e?"\\'":e;continue}}if("\0"==e&&!f&&!c.test(k.charAt(O+1))){E+="\\0";continue}if(u.test(e)){E+=l[e];continue}const n=e.charCodeAt(0);if(t.minimal&&8232!=n&&8233!=n){E+=e;continue}let r=n.toString(16);v||(r=r.toUpperCase());const i=r.length>2||f,s="\\"+(i?"u":"x")+("0000"+r).slice(i?-4:-2);E+=s}return t.wrap&&(E=g+E+g),"`"==g&&(E=E.replace(/\$\{/g,"\\${")),t.isScriptContext?E.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,f?"\\u003C!--":"\\x3C!--"):E};d.version="2.5.2",e.exports=d}).call(this,n(4).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnyTypeAnnotation=function(){this.word("any")},t.ArrayTypeAnnotation=function(e){this.print(e.elementType,e),this.token("["),this.token("]")},t.BooleanLiteralTypeAnnotation=function(e){this.word(e.value?"true":"false")},t.BooleanTypeAnnotation=function(){this.word("boolean")},t.DeclareClass=function(e,t){o(t)||(this.word("declare"),this.space());this.word("class"),this.space(),this._interfaceish(e)},t.DeclareExportAllDeclaration=function(){this.word("declare"),this.space(),i.ExportAllDeclaration.apply(this,arguments)},t.DeclareExportDeclaration=function(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space());h.apply(this,arguments)},t.DeclareFunction=function(e,t){o(t)||(this.word("declare"),this.space());this.word("function"),this.space(),this.print(e.id,e),this.print(e.id.typeAnnotation.typeAnnotation,e),e.predicate&&(this.space(),this.print(e.predicate,e));this.semicolon()},t.DeclareInterface=function(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e)},t.DeclareModule=function(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id,e),this.space(),this.print(e.body,e)},t.DeclareModuleExports=function(e){this.word("declare"),this.space(),this.word("module"),this.token("."),this.word("exports"),this.print(e.typeAnnotation,e)},t.DeclareOpaqueType=function(e,t){o(t)||(this.word("declare"),this.space());this.OpaqueType(e)},t.DeclareTypeAlias=function(e){this.word("declare"),this.space(),this.TypeAlias(e)},t.DeclareVariable=function(e,t){o(t)||(this.word("declare"),this.space());this.word("var"),this.space(),this.print(e.id,e),this.print(e.id.typeAnnotation,e),this.semicolon()},t.DeclaredPredicate=function(e){this.token("%"),this.word("checks"),this.token("("),this.print(e.value,e),this.token(")")},t.EmptyTypeAnnotation=function(){this.word("empty")},t.EnumBooleanBody=function(e){const{explicitType:t}=e;l(this,"boolean",t),u(this,e)},t.EnumBooleanMember=function(e){c(this,e)},t.EnumDeclaration=function(e){const{id:t,body:n}=e;this.word("enum"),this.space(),this.print(t,e),this.print(n,e)},t.EnumDefaultedMember=function(e){const{id:t}=e;this.print(t,e),this.token(",")},t.EnumNumberBody=function(e){const{explicitType:t}=e;l(this,"number",t),u(this,e)},t.EnumNumberMember=function(e){c(this,e)},t.EnumStringBody=function(e){const{explicitType:t}=e;l(this,"string",t),u(this,e)},t.EnumStringMember=function(e){c(this,e)},t.EnumSymbolBody=function(e){l(this,"symbol",!0),u(this,e)},t.ExistsTypeAnnotation=function(){this.token("*")},t.FunctionTypeAnnotation=function(e,t){this.print(e.typeParameters,e),this.token("("),e.this&&(this.word("this"),this.token(":"),this.space(),this.print(e.this.typeAnnotation,e),(e.params.length||e.rest)&&(this.token(","),this.space()));this.printList(e.params,e),e.rest&&(e.params.length&&(this.token(","),this.space()),this.token("..."),this.print(e.rest,e));this.token(")"),t&&("ObjectTypeCallProperty"===t.type||"DeclareFunction"===t.type||"ObjectTypeProperty"===t.type&&t.method)?this.token(":"):(this.space(),this.token("=>"));this.space(),this.print(e.returnType,e)},t.FunctionTypeParam=function(e){this.print(e.name,e),e.optional&&this.token("?");e.name&&(this.token(":"),this.space());this.print(e.typeAnnotation,e)},t.IndexedAccessType=function(e){this.print(e.objectType,e),this.token("["),this.print(e.indexType,e),this.token("]")},t.InferredPredicate=function(){this.token("%"),this.word("checks")},t.InterfaceDeclaration=function(e){this.word("interface"),this.space(),this._interfaceish(e)},t.GenericTypeAnnotation=t.ClassImplements=t.InterfaceExtends=function(e){this.print(e.id,e),this.print(e.typeParameters,e)},t.InterfaceTypeAnnotation=function(e){this.word("interface"),e.extends&&e.extends.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends,e));this.space(),this.print(e.body,e)},t.IntersectionTypeAnnotation=function(e){this.printJoin(e.types,e,{separator:d})},t.MixedTypeAnnotation=function(){this.word("mixed")},t.NullLiteralTypeAnnotation=function(){this.word("null")},t.NullableTypeAnnotation=function(e){this.token("?"),this.print(e.typeAnnotation,e)},Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return s.NumericLiteral}}),t.NumberTypeAnnotation=function(){this.word("number")},t.ObjectTypeAnnotation=function(e){e.exact?this.token("{|"):this.token("{");const t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.space(),this.printJoin(t,e,{addNewlines(e){if(e&&!t[0])return 1},indent:!0,statement:!0,iterator:()=>{(1!==t.length||e.inexact)&&(this.token(","),this.space())}}),this.space());e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent());e.exact?this.token("|}"):this.token("}")},t.ObjectTypeCallProperty=function(e){e.static&&(this.word("static"),this.space());this.print(e.value,e)},t.ObjectTypeIndexer=function(e){e.static&&(this.word("static"),this.space());this._variance(e),this.token("["),e.id&&(this.print(e.id,e),this.token(":"),this.space());this.print(e.key,e),this.token("]"),this.token(":"),this.space(),this.print(e.value,e)},t.ObjectTypeInternalSlot=function(e){e.static&&(this.word("static"),this.space());this.token("["),this.token("["),this.print(e.id,e),this.token("]"),this.token("]"),e.optional&&this.token("?");e.method||(this.token(":"),this.space());this.print(e.value,e)},t.ObjectTypeProperty=function(e){e.proto&&(this.word("proto"),this.space());e.static&&(this.word("static"),this.space());"get"!==e.kind&&"set"!==e.kind||(this.word(e.kind),this.space());this._variance(e),this.print(e.key,e),e.optional&&this.token("?");e.method||(this.token(":"),this.space());this.print(e.value,e)},t.ObjectTypeSpreadProperty=function(e){this.token("..."),this.print(e.argument,e)},t.OpaqueType=function(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),e.supertype&&(this.token(":"),this.space(),this.print(e.supertype,e));e.impltype&&(this.space(),this.token("="),this.space(),this.print(e.impltype,e));this.semicolon()},t.OptionalIndexedAccessType=function(e){this.print(e.objectType,e),e.optional&&this.token("?.");this.token("["),this.print(e.indexType,e),this.token("]")},t.QualifiedTypeIdentifier=function(e){this.print(e.qualification,e),this.token("."),this.print(e.id,e)},Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return s.StringLiteral}}),t.StringTypeAnnotation=function(){this.word("string")},t.SymbolTypeAnnotation=function(){this.word("symbol")},t.ThisTypeAnnotation=function(){this.word("this")},t.TupleTypeAnnotation=function(e){this.token("["),this.printList(e.types,e),this.token("]")},t.TypeAlias=function(e){this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),this.space(),this.token("="),this.space(),this.print(e.right,e),this.semicolon()},t.TypeAnnotation=function(e){this.token(":"),this.space(),e.optional&&this.token("?");this.print(e.typeAnnotation,e)},t.TypeCastExpression=function(e){this.token("("),this.print(e.expression,e),this.print(e.typeAnnotation,e),this.token(")")},t.TypeParameter=function(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound,e);e.default&&(this.space(),this.token("="),this.space(),this.print(e.default,e))},t.TypeParameterDeclaration=t.TypeParameterInstantiation=function(e){this.token("<"),this.printList(e.params,e,{}),this.token(">")},t.TypeofTypeAnnotation=function(e){this.word("typeof"),this.space(),this.print(e.argument,e)},t.UnionTypeAnnotation=function(e){this.printJoin(e.types,e,{separator:f})},t.Variance=function(e){"plus"===e.kind?this.token("+"):this.token("-")},t.VoidTypeAnnotation=function(){this.word("void")},t._interfaceish=function(e){var t;this.print(e.id,e),this.print(e.typeParameters,e),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends,e));e.mixins&&e.mixins.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins,e));e.implements&&e.implements.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e));this.space(),this.print(e.body,e)},t._variance=function(e){e.variance&&("plus"===e.variance.kind?this.token("+"):"minus"===e.variance.kind&&this.token("-"))};var r=n(1),i=n(249),s=n(250);const{isDeclareExportDeclaration:o,isStatement:a}=r;function l(e,t,n){n&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function u(e,t){const{members:n}=t;e.token("{"),e.indent(),e.newline();for(const r of n)e.print(r,t),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function c(e,t){const{id:n,init:r}=t;e.print(n,t),e.space(),e.token("="),e.space(),e.print(r,t),e.token(",")}function h(e){if(e.declaration){const t=e.declaration;this.print(t,e),a(t)||this.semicolon()}else this.token("{"),e.specifiers.length&&(this.space(),this.printList(e.specifiers,e),this.space()),this.token("}"),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source,e)),this.semicolon()}function d(){this.space(),this.token("&"),this.space()}function f(){this.space(),this.token("|"),this.space()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatement=function(e){var t;this.token("{"),this.printInnerComments(e);const n=null==(t=e.directives)?void 0:t.length;e.body.length||n?(this.newline(),this.printSequence(e.directives,e,{indent:!0}),n&&this.newline(),this.printSequence(e.body,e,{indent:!0}),this.removeTrailingNewline(),this.source("end",e.loc),this.endsWith(10)||this.newline(),this.rightBrace()):(this.source("end",e.loc),this.token("}"))},t.Directive=function(e){this.print(e.value,e),this.semicolon()},t.DirectiveLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&null!=t)return void this.token(t);const{value:n}=e;if(i.test(n)){if(r.test(n))throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");this.token(`'${n}'`)}else this.token(`"${n}"`)},t.File=function(e){e.program&&this.print(e.program.interpreter,e);this.print(e.program,e)},t.InterpreterDirective=function(e){this.token(`#!${e.value}\n`)},t.Placeholder=function(e){this.token("%%"),this.print(e.name),this.token("%%"),"Statement"===e.expectedNode&&this.semicolon()},t.Program=function(e){this.printInnerComments(e,!1),this.printSequence(e.directives,e),e.directives&&e.directives.length&&this.newline();this.printSequence(e.body,e)};const r=/(?:^|[^\\])(?:\\\\)*'/,i=/(?:^|[^\\])(?:\\\\)*"/},function(e,t,n){"use strict";function r(){this.space()}Object.defineProperty(t,"__esModule",{value:!0}),t.JSXAttribute=function(e){this.print(e.name,e),e.value&&(this.token("="),this.print(e.value,e))},t.JSXClosingElement=function(e){this.token("</"),this.print(e.name,e),this.token(">")},t.JSXClosingFragment=function(){this.token("</"),this.token(">")},t.JSXElement=function(e){const t=e.openingElement;if(this.print(t,e),t.selfClosing)return;this.indent();for(const t of e.children)this.print(t,e);this.dedent(),this.print(e.closingElement,e)},t.JSXEmptyExpression=function(e){this.printInnerComments(e)},t.JSXExpressionContainer=function(e){this.token("{"),this.print(e.expression,e),this.token("}")},t.JSXFragment=function(e){this.print(e.openingFragment,e),this.indent();for(const t of e.children)this.print(t,e);this.dedent(),this.print(e.closingFragment,e)},t.JSXIdentifier=function(e){this.word(e.name)},t.JSXMemberExpression=function(e){this.print(e.object,e),this.token("."),this.print(e.property,e)},t.JSXNamespacedName=function(e){this.print(e.namespace,e),this.token(":"),this.print(e.name,e)},t.JSXOpeningElement=function(e){this.token("<"),this.print(e.name,e),this.print(e.typeParameters,e),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,e,{separator:r}));e.selfClosing?(this.space(),this.token("/>")):this.token(">")},t.JSXOpeningFragment=function(){this.token("<"),this.token(">")},t.JSXSpreadAttribute=function(e){this.token("{"),this.token("..."),this.print(e.argument,e),this.token("}")},t.JSXSpreadChild=function(e){this.token("{"),this.token("..."),this.print(e.expression,e),this.token("}")},t.JSXText=function(e){const t=this.getPossibleRaw(e);null!=t?this.token(t):this.token(e.value)}},function(e,t,n){"use strict";function r(e,t){!0!==t&&e.token(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.TSAnyKeyword=function(){this.word("any")},t.TSArrayType=function(e){this.print(e.elementType,e),this.token("[]")},t.TSAsExpression=function(e){const{expression:t,typeAnnotation:n}=e;this.print(t,e),this.space(),this.word("as"),this.space(),this.print(n,e)},t.TSBigIntKeyword=function(){this.word("bigint")},t.TSBooleanKeyword=function(){this.word("boolean")},t.TSCallSignatureDeclaration=function(e){this.tsPrintSignatureDeclarationBase(e),this.token(";")},t.TSConditionalType=function(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.token("?"),this.space(),this.print(e.trueType),this.space(),this.token(":"),this.space(),this.print(e.falseType)},t.TSConstructSignatureDeclaration=function(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),this.token(";")},t.TSConstructorType=function(e){e.abstract&&(this.word("abstract"),this.space());this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)},t.TSDeclareFunction=function(e){e.declare&&(this.word("declare"),this.space());this._functionHead(e),this.token(";")},t.TSDeclareMethod=function(e){this._classMethodHead(e),this.token(";")},t.TSEnumDeclaration=function(e){const{declare:t,const:n,id:r,members:i}=e;t&&(this.word("declare"),this.space());n&&(this.word("const"),this.space());this.word("enum"),this.space(),this.print(r,e),this.space(),this.tsPrintBraced(i,e)},t.TSEnumMember=function(e){const{id:t,initializer:n}=e;this.print(t,e),n&&(this.space(),this.token("="),this.space(),this.print(n,e));this.token(",")},t.TSExportAssignment=function(e){this.word("export"),this.space(),this.token("="),this.space(),this.print(e.expression,e),this.token(";")},t.TSExpressionWithTypeArguments=function(e){this.print(e.expression,e),this.print(e.typeParameters,e)},t.TSExternalModuleReference=function(e){this.token("require("),this.print(e.expression,e),this.token(")")},t.TSFunctionType=function(e){this.tsPrintFunctionOrConstructorType(e)},t.TSImportEqualsDeclaration=function(e){const{isExport:t,id:n,moduleReference:r}=e;t&&(this.word("export"),this.space());this.word("import"),this.space(),this.print(n,e),this.space(),this.token("="),this.space(),this.print(r,e),this.token(";")},t.TSImportType=function(e){const{argument:t,qualifier:n,typeParameters:r}=e;this.word("import"),this.token("("),this.print(t,e),this.token(")"),n&&(this.token("."),this.print(n,e));r&&this.print(r,e)},t.TSIndexSignature=function(e){const{readonly:t,static:n}=e;n&&(this.word("static"),this.space());t&&(this.word("readonly"),this.space());this.token("["),this._parameters(e.parameters,e),this.token("]"),this.print(e.typeAnnotation,e),this.token(";")},t.TSIndexedAccessType=function(e){this.print(e.objectType,e),this.token("["),this.print(e.indexType,e),this.token("]")},t.TSInferType=function(e){this.token("infer"),this.space(),this.print(e.typeParameter)},t.TSInterfaceBody=function(e){this.tsPrintTypeLiteralOrInterfaceBody(e.body,e)},t.TSInterfaceDeclaration=function(e){const{declare:t,id:n,typeParameters:r,extends:i,body:s}=e;t&&(this.word("declare"),this.space());this.word("interface"),this.space(),this.print(n,e),this.print(r,e),null!=i&&i.length&&(this.space(),this.word("extends"),this.space(),this.printList(i,e));this.space(),this.print(s,e)},t.TSIntersectionType=function(e){this.tsPrintUnionOrIntersectionType(e,"&")},t.TSIntrinsicKeyword=function(){this.word("intrinsic")},t.TSLiteralType=function(e){this.print(e.literal,e)},t.TSMappedType=function(e){const{nameType:t,optional:n,readonly:i,typeParameter:s}=e;this.token("{"),this.space(),i&&(r(this,i),this.word("readonly"),this.space());this.token("["),this.word(s.name),this.space(),this.word("in"),this.space(),this.print(s.constraint,s),t&&(this.space(),this.word("as"),this.space(),this.print(t,e));this.token("]"),n&&(r(this,n),this.token("?"));this.token(":"),this.space(),this.print(e.typeAnnotation,e),this.space(),this.token("}")},t.TSMethodSignature=function(e){const{kind:t}=e;"set"!==t&&"get"!==t||(this.word(t),this.space());this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),this.token(";")},t.TSModuleBlock=function(e){this.tsPrintBraced(e.body,e)},t.TSModuleDeclaration=function(e){const{declare:t,id:n}=e;t&&(this.word("declare"),this.space());e.global||(this.word("Identifier"===n.type?"namespace":"module"),this.space());if(this.print(n,e),!e.body)return void this.token(";");let r=e.body;for(;"TSModuleDeclaration"===r.type;)this.token("."),this.print(r.id,r),r=r.body;this.space(),this.print(r,e)},t.TSNamedTupleMember=function(e){this.print(e.label,e),e.optional&&this.token("?");this.token(":"),this.space(),this.print(e.elementType,e)},t.TSNamespaceExportDeclaration=function(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id,e)},t.TSNeverKeyword=function(){this.word("never")},t.TSNonNullExpression=function(e){this.print(e.expression,e),this.token("!")},t.TSNullKeyword=function(){this.word("null")},t.TSNumberKeyword=function(){this.word("number")},t.TSObjectKeyword=function(){this.word("object")},t.TSOptionalType=function(e){this.print(e.typeAnnotation,e),this.token("?")},t.TSParameterProperty=function(e){e.accessibility&&(this.word(e.accessibility),this.space());e.readonly&&(this.word("readonly"),this.space());this._param(e.parameter)},t.TSParenthesizedType=function(e){this.token("("),this.print(e.typeAnnotation,e),this.token(")")},t.TSPropertySignature=function(e){const{readonly:t,initializer:n}=e;t&&(this.word("readonly"),this.space());this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation,e),n&&(this.space(),this.token("="),this.space(),this.print(n,e));this.token(";")},t.TSQualifiedName=function(e){this.print(e.left,e),this.token("."),this.print(e.right,e)},t.TSRestType=function(e){this.token("..."),this.print(e.typeAnnotation,e)},t.TSStringKeyword=function(){this.word("string")},t.TSSymbolKeyword=function(){this.word("symbol")},t.TSThisType=function(){this.word("this")},t.TSTupleType=function(e){this.token("["),this.printList(e.elementTypes,e),this.token("]")},t.TSTypeAliasDeclaration=function(e){const{declare:t,id:n,typeParameters:r,typeAnnotation:i}=e;t&&(this.word("declare"),this.space());this.word("type"),this.space(),this.print(n,e),this.print(r,e),this.space(),this.token("="),this.space(),this.print(i,e),this.token(";")},t.TSTypeAnnotation=function(e){this.token(":"),this.space(),e.optional&&this.token("?");this.print(e.typeAnnotation,e)},t.TSTypeAssertion=function(e){const{typeAnnotation:t,expression:n}=e;this.token("<"),this.print(t,e),this.token(">"),this.space(),this.print(n,e)},t.TSTypeLiteral=function(e){this.tsPrintTypeLiteralOrInterfaceBody(e.members,e)},t.TSTypeOperator=function(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation,e)},t.TSTypeParameter=function(e){this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint,e));e.default&&(this.space(),this.token("="),this.space(),this.print(e.default,e))},t.TSTypeParameterDeclaration=t.TSTypeParameterInstantiation=function(e,t){this.token("<"),this.printList(e.params,e,{}),"ArrowFunctionExpression"===t.type&&1===e.params.length&&this.token(",");this.token(">")},t.TSTypePredicate=function(e){e.asserts&&(this.word("asserts"),this.space());this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))},t.TSTypeQuery=function(e){this.word("typeof"),this.space(),this.print(e.exprName)},t.TSTypeReference=function(e){this.print(e.typeName,e),this.print(e.typeParameters,e)},t.TSUndefinedKeyword=function(){this.word("undefined")},t.TSUnionType=function(e){this.tsPrintUnionOrIntersectionType(e,"|")},t.TSUnknownKeyword=function(){this.word("unknown")},t.TSVoidKeyword=function(){this.word("void")},t.tsPrintBraced=function(e,t){if(this.token("{"),e.length){this.indent(),this.newline();for(const n of e)this.print(n,t),this.newline();this.dedent(),this.rightBrace()}else this.token("}")},t.tsPrintClassMemberModifiers=function(e,t){t&&e.declare&&(this.word("declare"),this.space());e.accessibility&&(this.word(e.accessibility),this.space());e.static&&(this.word("static"),this.space());e.override&&(this.word("override"),this.space());e.abstract&&(this.word("abstract"),this.space());t&&e.readonly&&(this.word("readonly"),this.space())},t.tsPrintFunctionOrConstructorType=function(e){const{typeParameters:t}=e,n=e.parameters;this.print(t,e),this.token("("),this._parameters(n,e),this.token(")"),this.space(),this.token("=>"),this.space();const r=e.typeAnnotation;this.print(r.typeAnnotation,e)},t.tsPrintPropertyOrMethodName=function(e){e.computed&&this.token("[");this.print(e.key,e),e.computed&&this.token("]");e.optional&&this.token("?")},t.tsPrintSignatureDeclarationBase=function(e){const{typeParameters:t}=e,n=e.parameters;this.print(t,e),this.token("("),this._parameters(n,e),this.token(")");const r=e.typeAnnotation;this.print(r,e)},t.tsPrintTypeLiteralOrInterfaceBody=function(e,t){this.tsPrintBraced(e,t)},t.tsPrintUnionOrIntersectionType=function(e,t){this.printJoin(e.types,e,{separator(){this.space(),this.token(t),this.space()}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.find=function(e){let t=this;do{if(e(t))return t}while(t=t.parentPath);return null},t.findParent=function(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null},t.getAncestry=function(){let e=this;const t=[];do{t.push(e)}while(e=e.parentPath);return t},t.getDeepestCommonAncestorFrom=function(e,t){if(!e.length)return this;if(1===e.length)return e[0];let n,r,i=1/0;const s=e.map(e=>{const t=[];do{t.unshift(e)}while((e=e.parentPath)&&e!==this);return t.length<i&&(i=t.length),t}),o=s[0];e:for(let e=0;e<i;e++){const t=o[e];for(const n of s)if(n[e]!==t)break e;n=e,r=t}if(r)return t?t(r,n,s):r;throw new Error("Couldn't find intersection")},t.getEarliestCommonAncestorFrom=function(e){return this.getDeepestCommonAncestorFrom(e,(function(e,t,n){let r;const s=i[e.type];for(const e of n){const n=e[t+1];if(!r){r=n;continue}if(n.listKey&&r.listKey===n.listKey&&n.key<r.key){r=n;continue}s.indexOf(r.parentKey)>s.indexOf(n.parentKey)&&(r=n)}return r}))},t.getFunctionParent=function(){return this.findParent(e=>e.isFunction())},t.getStatementParent=function(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e},t.inType=function(...e){let t=this;for(;t;){for(const n of e)if(t.node.type===n)return!0;t=t.parentPath}return!1},t.isAncestor=function(e){return e.isDescendant(this)},t.isDescendant=function(e){return!!this.findParent(t=>t===e)};var r=n(1);n(35);const{VISITOR_KEYS:i}=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getTypeAnnotation=function(){const e=this.node;if(!e){if("init"===this.key&&this.parentPath.isVariableDeclarator()){const e=this.parentPath.parentPath,t=e.parentPath;return"left"===e.key&&t.isForInStatement()?v():"left"===e.key&&t.isForOfStatement()?s():b()}return}if(e.typeAnnotation)return e.typeAnnotation;if(w.has(e))return;w.add(e);try{var t;let n=r[e.type];if(n)return n.call(this,e);if(n=r[this.parentPath.type],null!=(t=n)&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{w.delete(e)}},t.baseTypeStrictlyMatches=function(e){const t=this.getTypeAnnotation(),n=e.getTypeAnnotation();if(!o(t)&&u(t))return n.type===t.type;return!1},t.couldBeBaseType=function(e){const t=this.getTypeAnnotation();if(o(t))return!0;if(g(t)){for(const n of t.types)if(o(n)||_(e,n,!0))return!0;return!1}return _(e,t,!0)},t.getTypeAnnotation=function(){if(this.typeAnnotation)return this.typeAnnotation;let e=this._getTypeAnnotation()||s();m(e)&&(e=e.typeAnnotation);return this.typeAnnotation=e},t.isBaseType=function(e,t){return _(e,this.getTypeAnnotation(),t)},t.isGenericType=function(e){const t=this.getTypeAnnotation();return c(t)&&h(t.id,{name:e})};var r=n(591),i=n(1);const{anyTypeAnnotation:s,isAnyTypeAnnotation:o,isBooleanTypeAnnotation:a,isEmptyTypeAnnotation:l,isFlowBaseAnnotation:u,isGenericTypeAnnotation:c,isIdentifier:h,isMixedTypeAnnotation:d,isNumberTypeAnnotation:f,isStringTypeAnnotation:p,isTypeAnnotation:m,isUnionTypeAnnotation:g,isVoidTypeAnnotation:y,stringTypeAnnotation:v,voidTypeAnnotation:b}=i;const w=new WeakSet;function _(e,t,n){if("string"===e)return p(t);if("number"===e)return f(t);if("boolean"===e)return a(t);if("any"===e)return o(t);if("mixed"===e)return d(t);if("empty"===e)return l(t);if("void"===e)return y(t);if(n)return!1;throw new Error("Unknown base type "+e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayExpression=M,t.AssignmentExpression=function(){return this.get("right").getTypeAnnotation()},t.BinaryExpression=function(e){const t=e.operator;if(a.indexOf(t)>=0)return _();if(s.indexOf(t)>=0)return d();if("+"===t){const e=this.get("right"),t=this.get("left");return t.isBaseType("number")&&e.isBaseType("number")?_():t.isBaseType("string")||e.isBaseType("string")?S():E([S(),_()])}},t.BooleanLiteral=function(){return d()},t.CallExpression=function(){const{callee:e}=this.node;if(k(e))return h(S());if(P(e)||O(e))return h(c());if(I(e))return h(x([S(),c()]));return R(this.get("callee"))},t.ConditionalExpression=function(){const e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];if(b(e[0])&&m)return m(e);if(p)return p(e);return g(e)},t.ClassDeclaration=t.ClassExpression=t.FunctionDeclaration=t.ArrowFunctionExpression=t.FunctionExpression=function(){return y(v("Function"))},Object.defineProperty(t,"Identifier",{enumerable:!0,get:function(){return i.default}}),t.LogicalExpression=function(){const e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];if(b(e[0])&&m)return m(e);if(p)return p(e);return g(e)},t.NewExpression=function(e){if(this.get("callee").isIdentifier())return y(e.callee)},t.NullLiteral=function(){return w()},t.NumericLiteral=function(){return _()},t.ObjectExpression=function(){return y(v("Object"))},t.ParenthesizedExpression=function(){return this.get("expression").getTypeAnnotation()},t.RegExpLiteral=function(){return y(v("RegExp"))},t.RestElement=C,t.SequenceExpression=function(){return this.get("expressions").pop().getTypeAnnotation()},t.StringLiteral=function(){return S()},t.TaggedTemplateExpression=function(){return R(this.get("tag"))},t.TemplateLiteral=function(){return S()},t.TypeCastExpression=T,t.UnaryExpression=function(e){const t=e.operator;if("void"===t)return A();if(l.indexOf(t)>=0)return _();if(u.indexOf(t)>=0)return S();if(o.indexOf(t)>=0)return d()},t.UpdateExpression=function(e){const t=e.operator;if("++"===t||"--"===t)return _()},t.VariableDeclarator=function(){var e;if(!this.get("id").isIdentifier())return;const t=this.get("init");let n=t.getTypeAnnotation();"AnyTypeAnnotation"===(null==(e=n)?void 0:e.type)&&t.isCallExpression()&&t.get("callee").isIdentifier({name:"Array"})&&!t.scope.hasBinding("Array",!0)&&(n=M());return n};var r=n(1),i=n(592);const{BOOLEAN_BINARY_OPERATORS:s,BOOLEAN_UNARY_OPERATORS:o,NUMBER_BINARY_OPERATORS:a,NUMBER_UNARY_OPERATORS:l,STRING_UNARY_OPERATORS:u,anyTypeAnnotation:c,arrayTypeAnnotation:h,booleanTypeAnnotation:d,buildMatchMemberExpression:f,createFlowUnionType:p,createTSUnionType:m,createUnionTypeAnnotation:g,genericTypeAnnotation:y,identifier:v,isTSTypeAnnotation:b,nullLiteralTypeAnnotation:w,numberTypeAnnotation:_,stringTypeAnnotation:S,tupleTypeAnnotation:x,unionTypeAnnotation:E,voidTypeAnnotation:A}=r;function T(e){return e.typeAnnotation}function M(){return y(v("Array"))}function C(){return M()}T.validParent=!0,C.validParent=!0;const P=f("Array.from"),k=f("Object.keys"),O=f("Object.values"),I=f("Object.entries");function R(e){if((e=e.resolve()).isFunction()){if(e.is("async"))return e.is("generator")?y(v("AsyncIterator")):y(v("Promise"));if(e.node.returnType)return e.node.returnType}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!this.isReferenced())return;const t=this.scope.getBinding(e.name);if(t)return t.identifier.typeAnnotation?t.identifier.typeAnnotation:function(e,t,n){const r=[],i=[];let a=d(e,t,i);const c=function e(t,n,r){const i=function(e,t,n){let r;for(;r=t.parentPath;){if(r.isIfStatement()||r.isConditionalExpression()){if("test"===t.key)return;return r}if(r.isFunction()&&r.parentPath.scope.getBinding(n)!==e)return;t=r}}(t,n,r);if(!i)return;const a=[i.get("test")],c=[];for(let e=0;e<a.length;e++){const t=a[e];if(t.isLogicalExpression())"&&"===t.node.operator&&(a.push(t.get("left")),a.push(t.get("right")));else if(t.isBinaryExpression()){const e=f(r,t);e&&c.push(e)}}if(c.length)return u(c[0])&&o?{typeAnnotation:o(c),ifStatement:i}:s?{typeAnnotation:s(c),ifStatement:i}:{typeAnnotation:l(c),ifStatement:i};return e(i,r)}(e,t,n);if(c){const t=d(e,c.ifStatement);a=a.filter(e=>t.indexOf(e)<0),r.push(c.typeAnnotation)}if(a.length){a.push(...i);for(const e of a)r.push(e.getTypeAnnotation())}if(!r.length)return;if(u(r[0])&&o)return o(r);if(s)return s(r);return l(r)}(t,this,e.name);if("undefined"===e.name)return h();if("NaN"===e.name||"Infinity"===e.name)return c();e.name};var r=n(1);const{BOOLEAN_NUMBER_BINARY_OPERATORS:i,createFlowUnionType:s,createTSUnionType:o,createTypeAnnotationBasedOnTypeof:a,createUnionTypeAnnotation:l,isTSTypeAnnotation:u,numberTypeAnnotation:c,voidTypeAnnotation:h}=r;function d(e,t,n){const r=e.constantViolations.slice();return r.unshift(e.path),r.filter(e=>{const r=(e=e.resolve())._guessExecutionStatusRelativeTo(t);return n&&"unknown"===r&&n.push(e),"before"===r})}function f(e,t){const n=t.node.operator,r=t.get("right").resolve(),s=t.get("left").resolve();let o,l,u;if(s.isIdentifier({name:e})?o=r:r.isIdentifier({name:e})&&(o=s),o)return"==="===n?o.getTypeAnnotation():i.indexOf(n)>=0?c():void 0;if("==="!==n&&"=="!==n)return;if(s.isUnaryExpression({operator:"typeof"})?(l=s,u=r):r.isUnaryExpression({operator:"typeof"})&&(l=r,u=s),!l)return;if(!l.get("argument").isIdentifier({name:e}))return;if(u=u.resolve(),!u.isLiteral())return;const h=u.node.value;return"string"==typeof h?a(h):void 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._replaceWith=function(e){var t;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?C(this.parent,this.key,[e]):C(this.parent,this.key,e);this.debug("Replace with "+(null==e?void 0:e.type)),null==(t=o.path.get(this.parent))||t.set(e,this).delete(this.node),this.node=this.container[this.key]=e},t.replaceExpressionWithStatements=function(e){this.resync();const t=M(e,this.scope);if(t)return this.replaceWith(t)[0].get("expressions");const n=this.getFunctionParent(),r=null==n?void 0:n.is("async"),s=null==n?void 0:n.is("generator"),o=h([],p(e));this.replaceWith(m(o,[]));const a=this.get("callee");(0,u.default)(a.get("body"),e=>{this.scope.push({id:e})},"var");const l=this.get("callee").getCompletionRecords();for(const e of l){if(!e.isExpressionStatement())continue;const t=e.findParent(e=>e.isLoop());if(t){let n=t.getData("expressionReplacementReturnUid");n?n=v(n.name):(n=a.scope.generateDeclaredUidIdentifier("ret"),a.get("body").pushContainer("body",T(g(n))),t.setData("expressionReplacementReturnUid",n)),e.get("expression").replaceWith(d("=",g(n),e.node.expression))}else e.replaceWith(T(e.node.expression))}a.arrowFunctionToExpression();const y=a,b=r&&i.default.hasType(this.get("callee.body").node,"AwaitExpression",c),w=s&&i.default.hasType(this.get("callee.body").node,"YieldExpression",c);b&&(y.set("async",!0),w||this.replaceWith(f(this.node)));w&&(y.set("generator",!0),this.replaceWith(P(this.node,!0)));return y.get("body.body")},t.replaceInline=function(e){if(this.resync(),Array.isArray(e)){if(Array.isArray(this.container)){e=this._verifyNodeList(e);const t=this._containerInsertAfter(e);return this.remove(),t}return this.replaceWithMultiple(e)}return this.replaceWith(e)},t.replaceWith=function(e){if(this.resync(),this.removed)throw new Error("You can't replace this node, we've already removed it");e instanceof s.default&&(e=e.node);if(!e)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===e)return[this];if(this.isProgram()&&!x(e))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(e))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if("string"==typeof e)throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let t="";this.isNodeType("Statement")&&S(e)&&(this.canHaveVariableDeclarationOrExpression()||this.canSwapBetweenExpressionAndStatement(e)||this.parentPath.isExportDefaultDeclaration()||(e=y(e),t="expression"));if(this.isNodeType("Expression")&&E(e)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(e))return this.replaceExpressionWithStatements([e]);const n=this.node;n&&(_(e,n),A(n));return this._replaceWith(e),this.type=e.type,this.setScope(),this.requeue(),[t?this.get(t):this]},t.replaceWithMultiple=function(e){var t;this.resync(),e=this._verifyNodeList(e),b(e[0],this.node),w(e[e.length-1],this.node),null==(t=o.path.get(this.parent))||t.delete(this.node),this.node=this.container[this.key]=null;const n=this.insertAfter(e);this.node?this.requeue():this.remove();return n},t.replaceWithSourceString=function(e){this.resync();try{e=`(${e})`,e=(0,a.parse)(e)}catch(t){const n=t.loc;throw n&&(t.message+=" - make sure this is an expression.\n"+(0,r.codeFrameColumns)(e,{start:{line:n.line,column:n.column+1}}),t.code="BABEL_REPLACE_SOURCE_ERROR"),t}return e=e.program.body[0].expression,i.default.removeProperties(e),this.replaceWith(e)};var r=n(79),i=n(25),s=n(35),o=n(53),a=n(80),l=n(1),u=n(604);const{FUNCTION_TYPES:c,arrowFunctionExpression:h,assignmentExpression:d,awaitExpression:f,blockStatement:p,callExpression:m,cloneNode:g,expressionStatement:y,identifier:v,inheritLeadingComments:b,inheritTrailingComments:w,inheritsComments:_,isExpression:S,isProgram:x,isStatement:E,removeComments:A,returnStatement:T,toSequenceExpression:M,validate:C,yieldExpression:P}=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){if(""!==e&&c(t)){const n=h(t);return function(e,t){let n="";for(const{type:r,value:i}of u(t)){const t=e[r];n+=t?i.split(a).map(e=>t(e)).join("\n"):i}return n}(function(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}(n),e)}return e},t.getChalk=h,t.shouldHighlight=c;var r=n(595),i=n(64),s=n(596);const o=new Set(["as","async","from","get","of","set"]);const a=/\r\n|[\n\r\u2028\u2029]/,l=/^[()[\]{}]$/;let u;{const e=/^[a-z][\w-]*$/i,t=function(t,n,r){if("name"===t.type){if((0,i.isKeyword)(t.value)||(0,i.isStrictReservedWord)(t.value,!0)||o.has(t.value))return"keyword";if(e.test(t.value)&&("<"===r[n-1]||"</"==r.substr(n-2,2)))return"jsxIdentifier";if(t.value[0]!==t.value[0].toLowerCase())return"capitalized"}return"punctuator"===t.type&&l.test(t.value)?"bracket":"invalid"!==t.type||"@"!==t.value&&"#"!==t.value?t.type:"punctuator"};u=function*(e){let n;for(;n=r.default.exec(e);){const i=r.matchToToken(n);yield{type:t(i,n.index,e),value:i.value}}}}function c(e){return!!s.supportsColor||e.forceColor}function h(e){return e.forceColor?new s.constructor({enabled:!0,level:1}):s}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},function(e,t,n){"use strict";(function(t){const r=n(597),i=n(598),s=n(602).stdout,o=n(603),a="win32"===t.platform&&!(t.env.TERM||"").toLowerCase().startsWith("xterm"),l=["ansi","ansi","ansi256","ansi16m"],u=new Set(["gray"]),c=Object.create(null);function h(e,t){t=t||{};const n=s?s.level:0;e.level=void 0===t.level?n:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function d(e){if(!this||!(this instanceof d)||this.template){const t={};return h(t,e),t.template=function(){const e=[].slice.call(arguments);return g.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,d.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=d,t.template}h(this,e)}a&&(i.blue.open="");for(const e of Object.keys(i))i[e].closeRe=new RegExp(r(i[e].close),"g"),c[e]={get(){const t=i[e];return p.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};c.visible={get(){return p.call(this,this._styles||[],!0,"visible")}},i.color.closeRe=new RegExp(r(i.color.close),"g");for(const e of Object.keys(i.color.ansi))u.has(e)||(c[e]={get(){const t=this.level;return function(){const n=i.color[l[t]][e].apply(null,arguments),r={open:n,close:i.color.close,closeRe:i.color.closeRe};return p.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}});i.bgColor.closeRe=new RegExp(r(i.bgColor.close),"g");for(const e of Object.keys(i.bgColor.ansi)){if(u.has(e))continue;c["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const n=i.bgColor[l[t]][e].apply(null,arguments),r={open:n,close:i.bgColor.close,closeRe:i.bgColor.closeRe};return p.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}}}const f=Object.defineProperties(()=>{},c);function p(e,t,n){const r=function(){return m.apply(r,arguments)};r._styles=e,r._empty=t;const i=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>i.level,set(e){i.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>i.enabled,set(e){i.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=f,r}function m(){const e=arguments,t=e.length;let n=String(arguments[0]);if(0===t)return"";if(t>1)for(let r=1;r<t;r++)n+=" "+e[r];if(!this.enabled||this.level<=0||!n)return this._empty?"":n;const r=i.dim.open;a&&this.hasGrey&&(i.dim.open="");for(const e of this._styles.slice().reverse())n=e.open+n.replace(e.closeRe,e.open)+e.close,n=n.replace(/\r?\n/g,`${e.close}$&${e.open}`);return i.dim.open=r,n}function g(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const n=[].slice.call(arguments,2),r=[t.raw[0]];for(let e=1;e<t.length;e++)r.push(String(n[e-1]).replace(/[{}\\]/g,"\\$&")),r.push(String(t.raw[e]));return o(e,r.join(""))}Object.defineProperties(d.prototype,c),e.exports=d(),e.exports.supportsColor=s,e.exports.default=e.exports}).call(this,n(3))},function(e,t,n){"use strict";var r=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(r,"\\$&")}},function(e,t,n){"use strict";(function(e){const t=n(599),r=(e,n)=>function(){const r=e.apply(t,arguments);return`[${r+n}m`},i=(e,n)=>function(){const r=e.apply(t,arguments);return`[${38+n};5;${r}m`},s=(e,n)=>function(){const r=e.apply(t,arguments);return`[${38+n};2;${r[0]};${r[1]};${r[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,n={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};n.color.grey=n.color.gray;for(const t of Object.keys(n)){const r=n[t];for(const t of Object.keys(r)){const i=r[t];n[t]={open:`[${i[0]}m`,close:`[${i[1]}m`},r[t]=n[t],e.set(i[0],i[1])}Object.defineProperty(n,t,{value:r,enumerable:!1}),Object.defineProperty(n,"codes",{value:e,enumerable:!1})}const o=e=>e,a=(e,t,n)=>[e,t,n];n.color.close="",n.bgColor.close="",n.color.ansi={ansi:r(o,0)},n.color.ansi256={ansi256:i(o,0)},n.color.ansi16m={rgb:s(a,0)},n.bgColor.ansi={ansi:r(o,10)},n.bgColor.ansi256={ansi256:i(o,10)},n.bgColor.ansi16m={rgb:s(a,10)};for(let e of Object.keys(t)){if("object"!=typeof t[e])continue;const o=t[e];"ansi16"===e&&(e="ansi"),"ansi16"in o&&(n.color.ansi[e]=r(o.ansi16,0),n.bgColor.ansi[e]=r(o.ansi16,10)),"ansi256"in o&&(n.color.ansi256[e]=i(o.ansi256,0),n.bgColor.ansi256[e]=i(o.ansi256,10)),"rgb"in o&&(n.color.ansi16m[e]=s(o.rgb,0),n.bgColor.ansi16m[e]=s(o.rgb,10))}return n}})}).call(this,n(14)(e))},function(e,t,n){var r=n(251),i=n(601),s={};Object.keys(r).forEach((function(e){s[e]={},Object.defineProperty(s[e],"channels",{value:r[e].channels}),Object.defineProperty(s[e],"labels",{value:r[e].labels});var t=i(e);Object.keys(t).forEach((function(n){var r=t[n];s[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i<r;i++)n[i]=Math.round(n[i]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),s[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=s},function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,n){var r=n(251);function i(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,i=0;i<n;i++)e[t[i]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var i=n.pop(),s=Object.keys(r[i]),o=s.length,a=0;a<o;a++){var l=s[a],u=t[l];-1===u.distance&&(u.distance=t[i].distance+1,u.parent=i,n.unshift(l))}return t}function s(e,t){return function(n){return t(e(n))}}function o(e,t){for(var n=[t[e].parent,e],i=r[t[e].parent][e],o=t[e].parent;t[o].parent;)n.unshift(t[o].parent),i=s(r[t[o].parent][o],i),o=t[o].parent;return i.conversion=n,i}e.exports=function(e){for(var t=i(e),n={},r=Object.keys(t),s=r.length,a=0;a<s;a++){var l=r[a];null!==t[l].parent&&(n[l]=o(l,t))}return n}},function(e,t,n){"use strict";e.exports={stdout:!1,stderr:!1}},function(e,t,n){"use strict";const r=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,i=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,s=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,o=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function l(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):a.get(e)||e}function u(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let i;for(const t of r)if(isNaN(t)){if(!(i=t.match(s)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);n.push(i[2].replace(o,(e,t,n)=>t?l(t):n))}else n.push(Number(t));return n}function c(e){i.lastIndex=0;const t=[];let n;for(;null!==(n=i.exec(e));){const e=n[1];if(n[2]){const r=u(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function h(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const e of Object.keys(n))if(Array.isArray(n[e])){if(!(e in r))throw new Error("Unknown Chalk style: "+e);r=n[e].length>0?r[e].apply(r,n[e]):r[e]}return r}e.exports=(e,t)=>{const n=[],i=[];let s=[];if(t.replace(r,(t,r,o,a,u,d)=>{if(r)s.push(l(r));else if(a){const t=s.join("");s=[],i.push(0===n.length?t:h(e,n)(t)),n.push({inverse:o,styles:c(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");i.push(h(e,n)(s.join(""))),s=[],n.pop()}else s.push(d)}),i.push(s.join("")),n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(e)}return i.join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n="var"){e.traverse(a,{kind:n,emit:t})};var r=n(1);const{assignmentExpression:i,expressionStatement:s,identifier:o}=r,a={Scope(e,t){"let"===t.kind&&e.skip()},FunctionParent(e){e.skip()},VariableDeclaration(e,t){if(t.kind&&e.node.kind!==t.kind)return;const n=[],r=e.get("declarations");let a;for(const e of r){a=e.node.id,e.node.init&&n.push(s(i("=",e.node.id,e.node.init)));for(const n of Object.keys(e.getBindingIdentifiers()))t.emit(o(n),n,null!==e.node.init)}e.parentPath.isFor({left:e.node})?e.replaceWith(a):e.replaceWithMultiple(n)}}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.evaluate=function(){const e={confident:!0,deoptPath:null,seen:new Map};let t=s(this,e);e.confident||(t=void 0);return{confident:e.confident,deopt:e.deoptPath,value:t}},t.evaluateTruthy=function(){const e=this.evaluate();if(e.confident)return!!e.value};const n=["String","Number","Math"],r=["random"];function i(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}function s(t,a){const{node:l}=t,{seen:u}=a;if(u.has(l)){const e=u.get(l);return e.resolved?e.value:void i(t,a)}{const c={resolved:!1};u.set(l,c);const h=function(t,a){if(!a.confident)return;if(t.isSequenceExpression()){const e=t.get("expressions");return s(e[e.length-1],a)}if(t.isStringLiteral()||t.isNumericLiteral()||t.isBooleanLiteral())return t.node.value;if(t.isNullLiteral())return null;if(t.isTemplateLiteral())return o(t,t.node.quasis,a);if(t.isTaggedTemplateExpression()&&t.get("tag").isMemberExpression()){const e=t.get("tag.object"),{node:{name:n}}=e,r=t.get("tag.property");if(e.isIdentifier()&&"String"===n&&!t.scope.getBinding(n)&&r.isIdentifier()&&"raw"===r.node.name)return o(t,t.node.quasi.quasis,a,!0)}if(t.isConditionalExpression()){const e=s(t.get("test"),a);if(!a.confident)return;return s(e?t.get("consequent"):t.get("alternate"),a)}if(t.isExpressionWrapper())return s(t.get("expression"),a);if(t.isMemberExpression()&&!t.parentPath.isCallExpression({callee:t.node})){const e=t.get("property"),n=t.get("object");if(n.isLiteral()&&e.isIdentifier()){const t=n.node.value,r=typeof t;if("number"===r||"string"===r)return t[e.node.name]}}if(t.isReferencedIdentifier()){const e=t.scope.getBinding(t.node.name);if(e&&e.constantViolations.length>0)return i(e.path,a);if(e&&t.node.start<e.path.node.end)return i(e.path,a);if(null!=e&&e.hasValue)return e.value;{if("undefined"===t.node.name)return e?i(e.path,a):void 0;if("Infinity"===t.node.name)return e?i(e.path,a):1/0;if("NaN"===t.node.name)return e?i(e.path,a):NaN;const n=t.resolve();return n===t?i(t,a):s(n,a)}}if(t.isUnaryExpression({prefix:!0})){if("void"===t.node.operator)return;const e=t.get("argument");if("typeof"===t.node.operator&&(e.isFunction()||e.isClass()))return"function";const n=s(e,a);if(!a.confident)return;switch(t.node.operator){case"!":return!n;case"+":return+n;case"-":return-n;case"~":return~n;case"typeof":return typeof n}}if(t.isArrayExpression()){const e=[],n=t.get("elements");for(const t of n){const n=t.evaluate();if(!n.confident)return i(n.deopt,a);e.push(n.value)}return e}if(t.isObjectExpression()){const e={},n=t.get("properties");for(const t of n){if(t.isObjectMethod()||t.isSpreadElement())return i(t,a);let n=t.get("key");if(t.node.computed){if(n=n.evaluate(),!n.confident)return i(n.deopt,a);n=n.value}else n=n.isIdentifier()?n.node.name:n.node.value;let r=t.get("value").evaluate();if(!r.confident)return i(r.deopt,a);r=r.value,e[n]=r}return e}if(t.isLogicalExpression()){const e=a.confident,n=s(t.get("left"),a),r=a.confident;a.confident=e;const i=s(t.get("right"),a),o=a.confident;switch(t.node.operator){case"||":if(a.confident=r&&(!!n||o),!a.confident)return;return n||i;case"&&":if(a.confident=r&&(!n||o),!a.confident)return;return n&&i}}if(t.isBinaryExpression()){const e=s(t.get("left"),a);if(!a.confident)return;const n=s(t.get("right"),a);if(!a.confident)return;switch(t.node.operator){case"-":return e-n;case"+":return e+n;case"/":return e/n;case"*":return e*n;case"%":return e%n;case"**":return Math.pow(e,n);case"<":return e<n;case">":return e>n;case"<=":return e<=n;case">=":return e>=n;case"==":return e==n;case"!=":return e!=n;case"===":return e===n;case"!==":return e!==n;case"|":return e|n;case"&":return e&n;case"^":return e^n;case"<<":return e<<n;case">>":return e>>n;case">>>":return e>>>n}}if(t.isCallExpression()){const i=t.get("callee");let o,l;if(i.isIdentifier()&&!t.scope.getBinding(i.node.name)&&n.indexOf(i.node.name)>=0&&(l=e[i.node.name]),i.isMemberExpression()){const t=i.get("object"),s=i.get("property");if(t.isIdentifier()&&s.isIdentifier()&&n.indexOf(t.node.name)>=0&&r.indexOf(s.node.name)<0&&(o=e[t.node.name],l=o[s.node.name]),t.isLiteral()&&s.isIdentifier()){const e=typeof t.node.value;"string"!==e&&"number"!==e||(o=t.node.value,l=o[s.node.name])}}if(l){const e=t.get("arguments").map(e=>s(e,a));if(!a.confident)return;return l.apply(o,e)}}i(t,a)}(t,a);return a.confident&&(c.resolved=!0,c.value=h),h}}function o(e,t,n,r=!1){let i="",o=0;const a=e.get("expressions");for(const e of t){if(!n.confident)break;i+=r?e.value.raw:e.value.cooked;const t=a[o++];t&&(i+=String(s(t,n)))}if(n.confident)return i}}).call(this,n(8))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrowFunctionToExpression=function({allowInsertArrow:e=!0,specCompliant:t=!1,noNewArrows:n=!t}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");const{thisBinding:r,fnPath:i}=R(this,n,e);if(i.ensureBlock(),i.node.type="FunctionExpression",!n){const e=r?null:i.scope.generateUidIdentifier("arrowCheckId");e&&i.parentPath.scope.push({id:e,init:S([])}),i.get("body").unshiftContainer("body",f(h(this.hub.addHelper("newArrowCheck"),[P(),p(e?e.name:r)]))),i.replaceWith(h(b((0,s.default)(this,!0)||i.node,p("bind")),[e?p(e.name):P()]))}},t.arrowFunctionToShadowed=function(){if(!this.isArrowFunctionExpression())return;this.arrowFunctionToExpression()},t.ensureBlock=function(){const e=this.get("body"),t=e.node;if(Array.isArray(e))throw new Error("Can't convert array path to a block statement");if(!t)throw new Error("Can't convert node without a body");if(e.isBlockStatement())return t;const n=[];let r,i,s="body";e.isStatement()?(i="body",r=0,n.push(e.node)):(s+=".body.0",this.isFunction()?(r="argument",n.push(E(e.node))):(r="expression",n.push(f(e.node))));this.node.body=c(n);const o=this.get(s);return e.setup(o,i?o.node[i]:o.node,i,r),this.node},t.toComputedKey=function(){let e;if(this.isMemberExpression())e=this.node.property;else{if(!this.isProperty()&&!this.isMethod())throw new ReferenceError("todo");e=this.node.key}this.node.computed||m(e)&&(e=M(e.name));return e},t.unwrapFunctionEnvironment=function(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");R(this)};var r=n(1),i=n(252),s=n(607),o=n(220);const{arrowFunctionExpression:a,assignmentExpression:l,binaryExpression:u,blockStatement:c,callExpression:h,conditionalExpression:d,expressionStatement:f,identifier:p,isIdentifier:m,jsxIdentifier:g,logicalExpression:y,LOGICAL_OPERATORS:v,memberExpression:b,metaProperty:w,numericLiteral:_,objectExpression:S,restElement:x,returnStatement:E,sequenceExpression:A,spreadElement:T,stringLiteral:M,super:C,thisExpression:P,toExpression:k,unaryExpression:O}=r;const I=(0,o.merge)([{CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}},i.default]);function R(e,t=!0,n=!0){let r,i=e.findParent(e=>e.isArrowFunctionExpression()?(null!=r||(r=e),!1):e.isFunction()||e.isProgram()||e.isClassProperty({static:!1})||e.isClassPrivateProperty({static:!1}));const s=i.isClassMethod({kind:"constructor"});if(i.isClassProperty()||i.isClassPrivateProperty())if(r)i=r;else{if(!n)throw e.buildCodeFrameError("Unable to transform arrow inside class property");e.replaceWith(h(a([],k(e.node)),[])),i=e.get("callee"),e=i.get("body")}const{thisPaths:o,argumentsPaths:c,newTargetPaths:f,superProps:m,superCalls:S}=function(e){const t=[],n=[],r=[],i=[],s=[];return e.traverse(L,{thisPaths:t,argumentsPaths:n,newTargetPaths:r,superProps:i,superCalls:s}),{thisPaths:t,argumentsPaths:n,newTargetPaths:r,superProps:i,superCalls:s}}(e);if(s&&S.length>0){if(!n)throw S[0].buildCodeFrameError("Unable to handle nested super() usage in arrow");const e=[];i.traverse(I,{allSuperCalls:e});const t=function(e){return F(e,"supercall",()=>{const t=e.scope.generateUidIdentifier("args");return a([x(t)],h(C(),[T(p(t.name))]))})}(i);e.forEach(e=>{const n=p(t);n.loc=e.node.callee.loc,e.get("callee").replaceWith(n)})}if(c.length>0){const e=F(i,"arguments",()=>{const e=()=>p("arguments");return i.scope.path.isProgram()?d(u("===",O("typeof",e()),M("undefined")),i.scope.buildUndefinedNode(),e()):e()});c.forEach(t=>{const n=p(e);n.loc=t.node.loc,t.replaceWith(n)})}if(f.length>0){const e=F(i,"newtarget",()=>w(p("new"),p("target")));f.forEach(t=>{const n=p(e);n.loc=t.node.loc,t.replaceWith(n)})}if(m.length>0){if(!n)throw m[0].buildCodeFrameError("Unable to handle nested super.prop usage");m.reduce((e,t)=>e.concat(function(e){if(e.parentPath.isAssignmentExpression()&&"="!==e.parentPath.node.operator){const n=e.parentPath,r=n.node.operator.slice(0,-1),i=n.node.right,s=function(e){return v.includes(e)}(r);if(e.node.computed){const o=e.scope.generateDeclaredUidIdentifier("tmp"),a=e.node.object,u=e.node.property;n.get("left").replaceWith(b(a,l("=",o,u),!0)),n.get("right").replaceWith(t(s?"=":r,b(a,p(o.name),!0),i))}else{const o=e.node.object,a=e.node.property;n.get("left").replaceWith(b(o,a)),n.get("right").replaceWith(t(s?"=":r,b(o,p(a.name)),i))}return s?n.replaceWith(y(r,n.node.left,n.node.right)):n.node.operator="=",[n.get("left"),n.get("right").get("left")]}if(e.parentPath.isUpdateExpression()){const t=e.parentPath,n=e.scope.generateDeclaredUidIdentifier("tmp"),r=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,i=[l("=",n,b(e.node.object,r?l("=",r,e.node.property):e.node.property,e.node.computed)),l("=",b(e.node.object,r?p(r.name):e.node.property,e.node.computed),u(e.parentPath.node.operator[0],p(n.name),_(1)))];e.parentPath.node.prefix||i.push(p(n.name)),t.replaceWith(A(i));const s=t.get("expressions.0.right"),o=t.get("expressions.1.left");return[s,o]}return[e];function t(e,t,n){return"="===e?l("=",t,n):u(e,t,n)}}(t)),[]).forEach(e=>{const t=e.node.computed?"":e.get("property").node.name,n=e.parentPath.isAssignmentExpression({left:e.node}),r=e.parentPath.isCallExpression({callee:e.node}),s=function(e,t,n){return F(e,`superprop_${t?"set":"get"}:${n||""}`,()=>{const r=[];let i;if(n)i=b(C(),p(n));else{const t=e.scope.generateUidIdentifier("prop");r.unshift(t),i=b(C(),p(t.name),!0)}if(t){const t=e.scope.generateUidIdentifier("value");r.push(t),i=l("=",i,p(t.name))}return a(r,i)})}(i,n,t),u=[];if(e.node.computed&&u.push(e.get("property").node),n){const t=e.parentPath.node.right;u.push(t)}const c=h(p(s),u);r?(e.parentPath.unshiftContainer("arguments",P()),e.replaceWith(b(c,p("call"))),o.push(e.parentPath.get("arguments.0"))):n?e.parentPath.replaceWith(c):e.replaceWith(c)})}let E;return(o.length>0||!t)&&(E=function(e,t){return F(e,"this",n=>{if(!t||!N(e))return P();e.traverse(D,{supers:new WeakSet,thisBinding:n})})}(i,s),(t||s&&N(i))&&(o.forEach(e=>{const t=e.isJSX()?g(E):p(E);t.loc=e.node.loc,e.replaceWith(t)}),t||(E=null))),{thisBinding:E,fnPath:e}}function N(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}const D=(0,o.merge)([{CallExpression(e,{supers:t,thisBinding:n}){e.get("callee").isSuper()&&(t.has(e.node)||(t.add(e.node),e.replaceWithMultiple([e.node,l("=",p(n),p("this"))])))}},i.default]);function F(e,t,n){const r="binding:"+t;let i=e.getData(r);if(!i){const s=e.scope.generateUidIdentifier(t);i=s.name,e.setData(r,i),e.scope.push({id:s,init:n(i)})}return i}const L=(0,o.merge)([{ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){"this"===e.node.name&&(e.parentPath.isJSXMemberExpression({object:e.node})||e.parentPath.isJSXOpeningElement({name:e.node}))&&t.push(e)},CallExpression(e,{superCalls:t}){e.get("callee").isSuper()&&t.push(e)},MemberExpression(e,{superProps:t}){e.get("object").isSuper()&&t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let n=e.scope;do{if(n.hasOwnBinding("arguments"))return void n.rename("arguments");if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break}while(n=n.parent);t.push(e)},MetaProperty(e,{newTargetPaths:t}){e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&t.push(e)}},i.default])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({node:e,parent:t,scope:n,id:i},s=!1,x=!1){if(e.id)return;if(!m(t)&&!p(t,{kind:"method"})||t.computed&&!d(t.key)){if(v(t)){if(i=t.id,h(i)&&!s){const t=n.parent.getBinding(i.name);if(t&&t.constant&&n.getBinding(i.name)===t)return e.id=a(i),void(e.id[o]=!0)}}else if(u(t,{operator:"="}))i=t.left;else if(!i)return}else i=t.key;let E;i&&d(i)?E=function(e){if(f(e))return"null";if(g(e))return`_${e.pattern}_${e.flags}`;if(y(e))return e.quasis.map(e=>e.value.raw).join("");if(void 0!==e.value)return e.value+"";return""}(i):i&&h(i)&&(E=i.name);if(void 0===E)return;if(!x&&c(e)&&/[\uD800-\uDFFF]/.test(E))return;E=b(E),(i=l(E))[o]=!0;return function(e,t,n,i){if(e.selfReference){if(!i.hasBinding(n.name)||i.hasGlobal(n.name)){if(!c(t))return;let e=w;t.generator&&(e=_);const s=e({FUNCTION:t,FUNCTION_ID:n,FUNCTION_KEY:i.generateUidIdentifier(n.name)}).expression,o=s.callee.body.body[0].params;for(let e=0,n=(0,r.default)(t);e<n;e++)o.push(i.generateUidIdentifier("x"));return s}i.rename(n.name)}t.id=n,i.getProgramParent().references[n.name]=!0}(function(e,t,n){const r={selfAssignment:!1,selfReference:!1,outerDeclar:n.getBindingIdentifier(t),references:[],name:t},i=n.getOwnBinding(t);i?"param"===i.kind&&(r.selfReference=!0):(r.outerDeclar||n.hasGlobal(t))&&n.traverse(e,S,r);return r}(e,E,n),e,i,n)||e};var r=n(608),i=n(43),s=n(1);const{NOT_LOCAL_BINDING:o,cloneNode:a,identifier:l,isAssignmentExpression:u,isFunction:c,isIdentifier:h,isLiteral:d,isNullLiteral:f,isObjectMethod:p,isObjectProperty:m,isRegExpLiteral:g,isTemplateLiteral:y,isVariableDeclarator:v,toBindingIdentifierName:b}=s,w=(0,i.default)("\n (function (FUNCTION_KEY) {\n function FUNCTION_ID() {\n return FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n }\n\n return FUNCTION_ID;\n })(FUNCTION)\n"),_=(0,i.default)("\n (function (FUNCTION_KEY) {\n function* FUNCTION_ID() {\n return yield* FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n };\n\n return FUNCTION_ID;\n })(FUNCTION)\n"),S={"ReferencedIdentifier|BindingIdentifier"(e,t){if(e.node.name!==t.name)return;e.scope.getBindingIdentifier(t.name)===t.outerDeclar&&(t.selfReference=!0,e.stop())}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.params;for(let e=0;e<t.length;e++){const n=t[e];if(i(n)||s(n))return e}return t.length};var r=n(1);const{isAssignmentPattern:i,isRestElement:s}=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=void 0;var r=n(1);const{assertExpressionStatement:i}=r;function s(e){return{code:e=>"/* @babel/template */;\n"+e,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}const o=s(e=>e.length>1?e:e[0]);t.smart=o;const a=s(e=>e);t.statements=a;const l=s(e=>{if(0===e.length)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]});t.statement=l;const u={code:e=>`(\n${e}\n)`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(0===u.unwrap(e).start)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{const[t]=e.body;return i(t),t.expression}};t.expression=u;t.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){const l=new WeakMap,u=new WeakMap,c=n||(0,r.validate)(null);return Object.assign((n,...o)=>{if("string"==typeof n){if(o.length>1)throw new Error("Unexpected extra params.");return a((0,i.default)(t,n,(0,r.merge)(c,(0,r.validate)(o[0]))))}if(Array.isArray(n)){let e=l.get(n);return e||(e=(0,s.default)(t,n,c),l.set(n,e)),a(e(o))}if("object"==typeof n&&n){if(o.length>0)throw new Error("Unexpected extra params.");return e(t,(0,r.merge)(c,(0,r.validate)(n)))}throw new Error("Unexpected template param "+typeof n)},{ast:(e,...n)=>{if("string"==typeof e){if(n.length>1)throw new Error("Unexpected extra params.");return(0,i.default)(t,e,(0,r.merge)((0,r.merge)(c,(0,r.validate)(n[0])),o))()}if(Array.isArray(e)){let i=u.get(e);return i||(i=(0,s.default)(t,e,(0,r.merge)(c,o)),u.set(e,i)),i(n)()}throw new Error("Unexpected template param "+typeof e)}})};var r=n(139),i=n(611),s=n(612);const o=(0,r.validate)({placeholderPattern:!1});function a(e){let t="";try{throw new Error}catch(e){e.stack&&(t=e.stack.split("\n").slice(3).join("\n"))}return n=>{try{return e(n)}catch(e){throw e.stack+="\n =============\n"+t,e}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){let o;return t=e.code(t),a=>{const l=(0,r.normalizeReplacements)(a);return o||(o=(0,i.default)(e,t,n)),e.unwrap((0,s.default)(o,l))}};var r=n(139),i=n(253),s=n(254)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){const{metadata:a,names:l}=function(e,t,n){let r,s,a,l="";do{l+="$";const u=o(t,l);r=u.names,s=new Set(r),a=(0,i.default)(e,e.code(u.code),{parser:n.parser,placeholderWhitelist:new Set(u.names.concat(n.placeholderWhitelist?Array.from(n.placeholderWhitelist):[])),placeholderPattern:n.placeholderPattern,preserveComments:n.preserveComments,syntacticPlaceholders:n.syntacticPlaceholders})}while(a.placeholders.some(e=>e.isDuplicate&&s.has(e.name)));return{metadata:a,names:r}}(e,t,n);return t=>{const n={};return t.forEach((e,t)=>{n[l[t]]=e}),t=>{const i=(0,r.normalizeReplacements)(t);return i&&Object.keys(i).forEach(e=>{if(Object.prototype.hasOwnProperty.call(n,e))throw new Error("Unexpected replacement overlap.")}),e.unwrap((0,s.default)(a,i?Object.assign(i,n):n))}}};var r=n(139),i=n(253),s=n(254);function o(e,t){const n=[];let r=e[0];for(let i=1;i<e.length;i++){const s=`${t}${i-1}`;n.push(s),r+=s+e[i]}return{names:n,code:r}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._guessExecutionStatusRelativeTo=function(e){const t={this:m(this),target:m(e)};if(t.target.node!==t.this.node)return this._guessExecutionStatusRelativeToDifferentFunctions(t.target);const n={target:e.getAncestry(),this:this.getAncestry()};if(n.target.indexOf(this)>=0)return"after";if(n.this.indexOf(e)>=0)return"before";let r;const i={target:0,this:0};for(;!r&&i.this<n.this.length;){const e=n.this[i.this];i.target=n.target.indexOf(e),i.target>=0?r=e:i.this++}if(!r)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(y(n.this,i.this-1)||y(n.target,i.target-1))return"unknown";const o={this:n.this[i.this-1],target:n.target[i.target-1]};if(o.target.listKey&&o.this.listKey&&o.target.container===o.this.container)return o.target.key>o.this.key?"before":"after";const a=s[r.type],l={this:a.indexOf(o.this.parentKey),target:a.indexOf(o.target.parentKey)};return l.target>l.this?"before":"after"},t._guessExecutionStatusRelativeToDifferentFunctions=function(e){if(!e.isFunctionDeclaration()||e.parentPath.isExportDeclaration())return"unknown";const t=e.scope.getBinding(e.node.id.name);if(!t.references)return"before";const n=t.referencePaths;let r;for(const t of n){if(!!t.find(t=>t.node===e.node))continue;if("callee"!==t.key||!t.parentPath.isCallExpression())return"unknown";if(v.has(t.node))continue;v.add(t.node);const n=this._guessExecutionStatusRelativeTo(t);if(v.delete(t.node),r&&r!==n)return"unknown";r=n}return r},t._resolve=function(e,t){if(t&&t.indexOf(this)>=0)return;if((t=t||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){const n=this.scope.getBinding(this.node.name);if(!n)return;if(!n.constant)return;if("module"===n.kind)return;if(n.path!==this){const r=n.path.resolve(e,t);if(this.find(e=>e.node===r.node))return;return r}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){const n=this.toComputedKey();if(!u(n))return;const r=n.value,i=this.get("object").resolve(e,t);if(i.isObjectExpression()){const n=i.get("properties");for(const i of n){if(!i.isProperty())continue;const n=i.get("key");let s=i.isnt("computed")&&n.isIdentifier({name:r});if(s=s||n.isLiteral({value:r}),s)return i.get("value").resolve(e,t)}}else if(i.isArrayExpression()&&!isNaN(+r)){const n=i.get("elements")[r];if(n)return n.resolve(e,t)}}}},t.canHaveVariableDeclarationOrExpression=function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},t.canSwapBetweenExpressionAndStatement=function(e){if("body"!==this.key||!this.parentPath.isArrowFunctionExpression())return!1;if(this.isExpression())return o(e);if(this.isBlockStatement())return a(e);return!1},t.equals=function(e,t){return this.node[e]===t},t.getSource=function(){const e=this.node;if(e.end){const t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""},t.has=f,t.is=void 0,t.isCompletionRecord=function(e){let t=this,n=!0;do{const r=t.container;if(t.isFunction()&&!n)return!!e;if(n=!1,Array.isArray(r)&&t.key!==r.length-1)return!1}while((t=t.parentPath)&&!t.isProgram());return!0},t.isConstantExpression=function(){if(this.isIdentifier()){const e=this.scope.getBinding(this.node.name);return!!e&&e.constant}if(this.isLiteral())return!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every(e=>e.isConstantExpression()));if(this.isUnaryExpression())return"void"===this.node.operator&&this.get("argument").isConstantExpression();if(this.isBinaryExpression())return this.get("left").isConstantExpression()&&this.get("right").isConstantExpression();return!1},t.isInStrictMode=function(){const e=this.isProgram()?this:this.parentPath;return!!e.find(e=>{if(e.isProgram({sourceType:"module"}))return!0;if(e.isClass())return!0;if(!e.isProgram()&&!e.isFunction())return!1;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement())return!1;const t=e.isFunction()?e.node.body:e.node;for(const e of t.directives)if("use strict"===e.value.value)return!0})},t.isNodeType=function(e){return h(this.type,e)},t.isStatementOrBlock=function(){return!this.parentPath.isLabeledStatement()&&!o(this.container)&&i.includes(this.key)},t.isStatic=function(){return this.scope.isStatic(this.node)},t.isnt=function(e){return!this.has(e)},t.matchesPattern=function(e,t){return d(this.node,e,t)},t.referencesImport=function(e,t){if(!this.isReferencedIdentifier()){if((this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?c(this.node.property,{value:t}):this.node.property.name===t)){const t=this.get("object");return t.isReferencedIdentifier()&&t.referencesImport(e,"*")}return!1}const n=this.scope.getBinding(this.node.name);if(!n||"module"!==n.kind)return!1;const r=n.path,i=r.parentPath;if(!i.isImportDeclaration())return!1;if(i.node.source.value!==e)return!1;if(!t)return!0;if(r.isImportDefaultSpecifier()&&"default"===t)return!0;if(r.isImportNamespaceSpecifier()&&"*"===t)return!0;if(r.isImportSpecifier()&&l(r.node.imported,{name:t}))return!0;return!1},t.resolve=function(e,t){return this._resolve(e,t)||this},t.willIMaybeExecuteBefore=function(e){return"after"!==this._guessExecutionStatusRelativeTo(e)};var r=n(1);const{STATEMENT_OR_BLOCK_KEYS:i,VISITOR_KEYS:s,isBlockStatement:o,isExpression:a,isIdentifier:l,isLiteral:u,isStringLiteral:c,isType:h,matchesPattern:d}=r;function f(e){const t=this.node&&this.node[e];return t&&Array.isArray(t)?!!t.length:!!t}const p=f;function m(e){return(e.scope.getFunctionParent()||e.scope.getProgramParent()).path}function g(e,t){switch(e){case"LogicalExpression":return"right"===t;case"ConditionalExpression":case"IfStatement":return"consequent"===t||"alternate"===t;case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return"body"===t;case"ForStatement":return"body"===t||"update"===t;case"SwitchStatement":return"cases"===t;case"TryStatement":return"handler"===t;case"AssignmentPattern":return"right"===t;case"OptionalMemberExpression":return"property"===t;case"OptionalCallExpression":return"arguments"===t;default:return!1}}function y(e,t){for(let n=0;n<t;n++){const t=e[n];if(g(t.parent.type,t.parentKey))return!0}return!1}t.is=p;const v=new WeakSet},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._call=function(e){if(!e)return!1;for(const t of e){if(!t)continue;const e=this.node;if(!e)return!0;const n=t.call(this.state,this,this.state);if(n&&"object"==typeof n&&"function"==typeof n.then)throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(n)throw new Error("Unexpected return value from visitor method "+t);if(this.node!==e)return!0;if(this._traverseFlags>0)return!0}return!1},t._getQueueContexts=function(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,e);)t=e.contexts;return t},t._resyncKey=function(){if(!this.container)return;if(this.node===this.container[this.key])return;if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node)return this.setKey(e)}else for(const e of Object.keys(this.container))if(this.container[e]===this.node)return this.setKey(e);this.key=null},t._resyncList=function(){if(!this.parent||!this.inList)return;const e=this.parent[this.listKey];if(this.container===e)return;this.container=e||null},t._resyncParent=function(){this.parentPath&&(this.parent=this.parentPath.node)},t._resyncRemoved=function(){null!=this.key&&this.container&&this.container[this.key]===this.node||this._markRemoved()},t.call=function(e){const t=this.opts;if(this.debug(e),this.node&&this._call(t[e]))return!0;if(this.node)return this._call(t[this.node.type]&&t[this.node.type][e]);return!1},t.isBlacklisted=t.isDenylisted=function(){var e;const t=null!=(e=this.opts.denylist)?e:this.opts.blacklist;return t&&t.indexOf(this.node.type)>-1},t.popContext=function(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)},t.pushContext=function(e){this.contexts.push(e),this.setContext(e)},t.requeue=function(e=this){if(e.removed)return;const t=this.contexts;for(const n of t)n.maybeQueue(e)},t.resync=function(){if(this.removed)return;this._resyncParent(),this._resyncList(),this._resyncKey()},t.setContext=function(e){null!=this.skipKeys&&(this.skipKeys={});this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts);return this.setScope(),this},t.setKey=function(e){var t;this.key=e,this.node=this.container[this.key],this.type=null==(t=this.node)?void 0:t.type},t.setScope=function(){if(this.opts&&this.opts.noScope)return;let e,t=this.parentPath;"key"===this.key&&t.isMethod()&&(t=t.parentPath);for(;t&&!e;){if(t.opts&&t.opts.noScope)return;e=t.scope,t=t.parentPath}this.scope=this.getScope(e),this.scope&&this.scope.init()},t.setup=function(e,t,n,r){this.listKey=n,this.container=t,this.parentPath=e||this.parentPath,this.setKey(r)},t.skip=function(){this.shouldSkip=!0},t.skipKey=function(e){null==this.skipKeys&&(this.skipKeys={});this.skipKeys[e]=!0},t.stop=function(){this._traverseFlags|=i.SHOULD_SKIP|i.SHOULD_STOP},t.visit=function(){if(!this.node)return!1;if(this.isDenylisted())return!1;if(this.opts.shouldSkip&&this.opts.shouldSkip(this))return!1;const e=this.context;if(this.shouldSkip||this.call("enter"))return this.debug("Skip..."),this.shouldStop;return s(this,e),this.debug("Recursing into..."),this.shouldStop=(0,r.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),s(this,e),this.call("exit"),this.shouldStop};var r=n(240),i=n(35);function s(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._assertUnremoved=function(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")},t._callRemovalHooks=function(){for(const e of r.hooks)if(e(this,this.parentPath))return!0},t._markRemoved=function(){this._traverseFlags|=s.SHOULD_SKIP|s.REMOVED,this.parent&&i.path.get(this.parent).delete(this.node);this.node=null},t._remove=function(){Array.isArray(this.container)?(this.container.splice(this.key,1),this.updateSiblingKeys(this.key,-1)):this._replaceWith(null)},t._removeFromScope=function(){const e=this.getBindingIdentifiers();Object.keys(e).forEach(e=>this.scope.removeBinding(e))},t.remove=function(){var e;this._assertUnremoved(),this.resync(),null!=(e=this.opts)&&e.noScope||this._removeFromScope();if(this._callRemovalHooks())return void this._markRemoved();this.shareCommentsWithSiblings(),this._remove(),this._markRemoved()};var r=n(616),i=n(53),s=n(35)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hooks=void 0;t.hooks=[function(e,t){if("test"===e.key&&(t.isWhile()||t.isSwitchCase())||"declaration"===e.key&&t.isExportDeclaration()||"body"===e.key&&t.isLabeledStatement()||"declarations"===e.listKey&&t.isVariableDeclaration()&&1===t.node.declarations.length||"expression"===e.key&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&1===t.node.expressions.length)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return"left"===e.key?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&("consequent"===e.key||"alternate"===e.key)||"body"===e.key&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",body:[]}),!0}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._containerInsert=function(e,t){this.updateSiblingKeys(e,t.length);const n=[];this.container.splice(e,0,...t);for(let r=0;r<t.length;r++){const t=e+r,i=this.getSibling(t);n.push(i),this.context&&this.context.queue&&i.pushContext(this.context)}const r=this._getQueueContexts();for(const e of n){e.setScope(),e.debug("Inserted.");for(const t of r)t.maybeQueue(e,!0)}return n},t._containerInsertAfter=function(e){return this._containerInsert(this.key+1,e)},t._containerInsertBefore=function(e){return this._containerInsert(this.key,e)},t._verifyNodeList=function(e){if(!e)return[];Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){const n=e[t];let r;if(n?"object"!=typeof n?r="contains a non-object node":n.type?n instanceof s.default&&(r="has a NodePath when it expected a raw object"):r="without a type":r="has falsy node",r){const e=Array.isArray(n)?"array":typeof n;throw new Error(`Node list ${r} with the index of ${t} and type of ${e}`)}}return e},t.hoist=function(e=this.scope){return new i.default(this,e).run()},t.insertAfter=function(e){if(this._assertUnremoved(),this.isSequenceExpression())return _(this.get("expressions")).insertAfter(e);const t=this._verifyNodeList(e),{parentPath:n}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||n.isExportNamedDeclaration()||n.isExportDefaultDeclaration()&&this.isDeclaration())return n.insertAfter(t.map(e=>g(e)?f(e):e));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!n.isJSXElement()||n.isForStatement()&&"init"===this.key){if(this.node){const e=this.node;let{scope:r}=this;if(r.path.isPattern())return l(e),this.replaceWith(h(a([],e),[])),this.get("callee.body").insertAfter(t),[this];if(function e(t){return v(t.parent)&&(_(t.parent.expressions)!==t.node||e(t.parentPath))}(this))t.unshift(e);else if(m(e)&&b(e.callee))t.unshift(e),t.push(w());else if(function(e,t){if(!p(e)||!y(e.left))return!1;const n=t.getBlockParent();return n.hasOwnBinding(e.left.name)&&n.getOwnBinding(e.left.name).constantViolations.length<=1}(e,r))t.unshift(e),t.push(d(e.left));else if(r.isPure(e,!0))t.push(e);else{n.isMethod({computed:!0,key:e})&&(r=r.parent);const i=r.generateDeclaredUidIdentifier();t.unshift(f(u("=",d(i),e))),t.push(f(d(i)))}}return this.replaceExpressionWithStatements(t)}if(Array.isArray(this.container))return this._containerInsertAfter(t);if(this.isStatementOrBlock()){const e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression);return this.replaceWith(c(n?[e]:[])),this.pushContainer("body",t)}throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},t.insertBefore=function(e){this._assertUnremoved();const t=this._verifyNodeList(e),{parentPath:n}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||n.isExportNamedDeclaration()||n.isExportDefaultDeclaration()&&this.isDeclaration())return n.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||n.isForStatement()&&"init"===this.key)return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return this._containerInsertBefore(t);if(this.isStatementOrBlock()){const e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression);return this.replaceWith(c(n?[e]:[])),this.unshiftContainer("body",t)}throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},t.pushContainer=function(e,t){this._assertUnremoved();const n=this._verifyNodeList(t),r=this.node[e];return s.default.get({parentPath:this,parent:this.node,container:r,listKey:e,key:r.length}).setContext(this.context).replaceWithMultiple(n)},t.unshiftContainer=function(e,t){this._assertUnremoved(),t=this._verifyNodeList(t);return s.default.get({parentPath:this,parent:this.node,container:this.node[e],listKey:e,key:0}).setContext(this.context)._containerInsertBefore(t)},t.updateSiblingKeys=function(e,t){if(!this.parent)return;const n=r.path.get(this.parent);for(const[,r]of n)r.key>=e&&(r.key+=t)};var r=n(53),i=n(618),s=n(35),o=n(1);const{arrowFunctionExpression:a,assertExpression:l,assignmentExpression:u,blockStatement:c,callExpression:h,cloneNode:d,expressionStatement:f,isAssignmentExpression:p,isCallExpression:m,isExpression:g,isIdentifier:y,isSequenceExpression:v,isSuper:b,thisExpression:w}=o;const _=e=>e[e.length-1]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(1),i=r;const{react:s}=r,{cloneNode:o,jsxExpressionContainer:a,variableDeclaration:l,variableDeclarator:u}=i,c={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&s.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if("this"===e.node.name){let n=e.scope;do{if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break}while(n=n.parent);n&&t.breakOnScopePaths.push(n.path)}const n=e.scope.getBinding(e.node.name);if(n){for(const r of n.constantViolations)if(r.scope!==n.path.scope)return t.mutableBinding=!0,void e.stop();n===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=n)}}};t.default=class{constructor(e,t){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=t,this.path=e,this.attachAfter=!1}isCompatibleScope(e){for(const t of Object.keys(this.bindings)){const n=this.bindings[t];if(!e.bindingIdentifierEquals(t,n.identifier))return!1}return!0}getCompatibleScopes(){let e=this.path.scope;do{if(!this.isCompatibleScope(e))break;if(this.scopes.push(e),this.breakOnScopePaths.indexOf(e.path)>=0)break}while(e=e.parent)}getAttachmentPath(){let e=this._getAttachmentPath();if(!e)return;let t=e.scope;if(t.path===e&&(t=e.scope.parent),t.path.isProgram()||t.path.isFunction())for(const n of Object.keys(this.bindings)){if(!t.hasOwnBinding(n))continue;const r=this.bindings[n];if("param"===r.kind||"params"===r.path.parentKey)continue;if(this.getAttachmentParentForPath(r.path).key>=e.key){this.attachAfter=!0,e=r.path;for(const t of r.constantViolations)this.getAttachmentParentForPath(t).key>e.key&&(e=t)}}return e}_getAttachmentPath(){const e=this.scopes.pop();if(e)if(e.path.isFunction()){if(!this.hasOwnParamBindings(e))return this.getNextScopeAttachmentParent();{if(this.scope===e)return;const t=e.path.get("body").get("body");for(let e=0;e<t.length;e++)if(!t[e].node._blockHoist)return t[e]}}else if(e.path.isProgram())return this.getNextScopeAttachmentParent()}getNextScopeAttachmentParent(){const e=this.scopes.pop();if(e)return this.getAttachmentParentForPath(e.path)}getAttachmentParentForPath(e){do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())return e}while(e=e.parentPath)}hasOwnParamBindings(e){for(const t of Object.keys(this.bindings)){if(!e.hasOwnBinding(t))continue;const n=this.bindings[t];if("param"===n.kind&&n.constant)return!0}return!1}run(){if(this.path.traverse(c,this),this.mutableBinding)return;this.getCompatibleScopes();const e=this.getAttachmentPath();if(!e)return;if(e.getFunctionParent()===this.path.getFunctionParent())return;let t=e.scope.generateUidIdentifier("ref");const n=u(t,this.path.node),r=this.attachAfter?"insertAfter":"insertBefore",[i]=e[r]([e.isVariableDeclarator()?n:l("var",[n])]),s=this.path.parentPath;return s.isJSXElement()&&this.path.container===s.node.children&&(t=a(t)),this.path.replaceWith(o(t)),e.isVariableDeclarator()?i.get("init"):i.get("declarations.0.init")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getKey=function(e,t){const n=this.node,i=n[e];return Array.isArray(i)?i.map((s,o)=>r.default.get({listKey:e,parentPath:this,parent:n,container:i,key:o}).setContext(t)):r.default.get({parentPath:this,parent:n,container:n,key:e}).setContext(t)},t._getPattern=function(e,t){let n=this;for(const r of e)n="."===r?n.parentPath:Array.isArray(n)?n[r]:n.get(r,t);return n},t.get=function(e,t=!0){!0===t&&(t=this.context);const n=e.split(".");return 1===n.length?this._getKey(e,t):this._getPattern(n,t)},t.getAllNextSiblings=function(){let e=this.key,t=this.getSibling(++e);const n=[];for(;t.node;)n.push(t),t=this.getSibling(++e);return n},t.getAllPrevSiblings=function(){let e=this.key,t=this.getSibling(--e);const n=[];for(;t.node;)n.push(t),t=this.getSibling(--e);return n},t.getBindingIdentifierPaths=function(e=!1,t=!1){const n=[this],r=Object.create(null);for(;n.length;){const i=n.shift();if(!i)continue;if(!i.node)continue;const o=s.keys[i.node.type];if(i.isIdentifier())if(e){(r[i.node.name]=r[i.node.name]||[]).push(i)}else r[i.node.name]=i;else if(i.isExportDeclaration()){const e=i.get("declaration");a(e)&&n.push(e)}else{if(t){if(i.isFunctionDeclaration()){n.push(i.get("id"));continue}if(i.isFunctionExpression())continue}if(o)for(let e=0;e<o.length;e++){const t=o[e],r=i.get(t);Array.isArray(r)?n.push(...r):r.node&&n.push(r)}}}return r},t.getBindingIdentifiers=function(e){return s(this.node,e)},t.getCompletionRecords=function(){return p(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1}).map(e=>e.path)},t.getNextSibling=function(){return this.getSibling(this.key+1)},t.getOpposite=function(){if("left"===this.key)return this.getSibling("right");if("right"===this.key)return this.getSibling("left");return null},t.getOuterBindingIdentifierPaths=function(e){return this.getBindingIdentifierPaths(e,!0)},t.getOuterBindingIdentifiers=function(e){return o(this.node,e)},t.getPrevSibling=function(){return this.getSibling(this.key-1)},t.getSibling=function(e){return r.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)};var r=n(35),i=n(1);const{getBindingIdentifiers:s,getOuterBindingIdentifiers:o,isDeclaration:a,numericLiteral:l,unaryExpression:u}=i;function c(e,t,n){return e&&t.push(...p(e,n)),t}function h(e){e.forEach(e=>{e.type=1})}function d(e,t){e.forEach(e=>{e.path.isBreakStatement({label:null})&&(t?e.path.replaceWith(u("void",l(0))):e.path.remove())})}function f(e,t){const n=[];if(t.canHaveBreak){let r=[];for(let i=0;i<e.length;i++){const s=e[i],o=Object.assign({},t,{inCaseClause:!1});s.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?o.shouldPopulateBreak=!0:o.shouldPopulateBreak=!1;const a=p(s,o);if(a.length>0&&a.every(e=>1===e.type)){r.length>0&&a.every(e=>e.path.isBreakStatement({label:null}))?(h(r),n.push(...r),r.some(e=>e.path.isDeclaration())&&(n.push(...a),d(a,!0)),d(a,!1)):(n.push(...a),t.shouldPopulateBreak||d(a,!0));break}if(i===e.length-1)n.push(...a);else{r=[];for(let e=0;e<a.length;e++){const t=a[e];1===t.type&&n.push(t),0===t.type&&r.push(t)}}}}else if(e.length)for(let r=e.length-1;r>=0;r--){const i=p(e[r],t);if(i.length>1||1===i.length&&!i[0].path.isVariableDeclaration()){n.push(...i);break}}return n}function p(e,t){let n=[];if(e.isIfStatement())n=c(e.get("consequent"),n,t),n=c(e.get("alternate"),n,t);else{if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return c(e.get("body"),n,t);if(e.isProgram()||e.isBlockStatement())return f(e.get("body"),t);if(e.isFunction())return p(e.get("body"),t);if(e.isTryStatement())n=c(e.get("block"),n,t),n=c(e.get("handler"),n,t);else{if(e.isCatchClause())return c(e.get("body"),n,t);if(e.isSwitchStatement())return function(e,t,n){let r=[];for(let i=0;i<e.length;i++){const s=p(e[i],n),o=[],a=[];for(const e of s)0===e.type&&o.push(e),1===e.type&&a.push(e);o.length&&(r=o),t.push(...a)}return t.push(...r),t}(e.get("cases"),n,t);if(e.isSwitchCase())return f(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0});e.isBreakStatement()?n.push(function(e){return{type:1,path:e}}(e)):n.push(function(e){return{type:0,path:e}}(e))}}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addComment=function(e,t,n){i(this.node,e,t,n)},t.addComments=function(e,t){s(this.node,e,t)},t.shareCommentsWithSiblings=function(){if("string"==typeof this.key)return;const e=this.node;if(!e)return;const t=e.trailingComments,n=e.leadingComments;if(!t&&!n)return;const r=this.getSibling(this.key-1),i=this.getSibling(this.key+1),s=Boolean(r.node),o=Boolean(i.node);s&&!o?r.addComments("trailing",t):o&&!s&&i.addComments("leading",n)};var r=n(1);const{addComment:i,addComments:s}=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,t,n=TypeError){return new n(t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(43),i=n(623);const s=Object.assign({__proto__:null},i.default);var o=s;t.default=o;const a=e=>t=>({minVersion:e,ast:()=>r.default.program.ast(t)});s.AwaitValue=a("7.0.0-beta.0")`
71
71
  export default function _AwaitValue(value) {
72
72
  this.wrapped = value;
73
73
  }