>>=b=_>>>24,p-=b,0===(b=_>>>16&255))S[s++]=65535&_;else{if(!(16&b)){if(0==(64&b)){_=m[(65535&_)+(f&(1<>>=b,p-=b),p<15&&(f+=x[i++]<>>=b=_>>>24,p-=b,!(16&(b=_>>>16&255))){if(0==(64&b)){_=w[(65535&_)+(f&(1<u){t.msg="invalid distance too far back",r.mode=30;break t}if(f>>>=b,p-=b,v>(b=s-o)){if((b=v-b)>c&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(A=0,T=d,0===l){if(A+=h-b,b2;)S[s++]=T[A++],S[s++]=T[A++],S[s++]=T[A++],E-=3;E&&(S[s++]=T[A++],E>1&&(S[s++]=T[A++]))}else{A=s-v;do{S[s++]=S[A++],S[s++]=S[A++],S[s++]=S[A++],E-=3}while(E>2);E&&(S[s++]=S[A++],E>1&&(S[s++]=S[A++]))}break}}break}}while(i>3,f&=(1<<(p-=E<<3))-1,t.next_in=i,t.next_out=s,t.avail_in=i=1&&0===P[S];S--);if(C>S&&(C=S),0===S)return h[c++]=20971520,h[c++]=20971520,d.bits=1,0;for(x=1;x0&&(0===t||1!==S))return-1;for(B[1]=0,A=1;A<15;A++)B[A+1]=B[A]+P[A];for(T=0;T852||2===t&&I>592)return 1;for(;;){_=A-k,l[T]y?(b=L[U+l[T]],E=O[F+l[T]]):(b=96,E=0),f=1<>k)+(p-=f)]=_<<24|b<<16|E|0}while(0!==p);for(f=1<>=1;if(0!==f?(N&=f-1,N+=f):N=0,T++,0==--P[A]){if(A===S)break;A=e[r+l[T]]}if(A>C&&(N&w)!==m){for(0===k&&(k=C),g+=x,R=1<<(D=A-k);D+k852||2===t&&I>592)return 1;h[m=N&w]=C<<24|D<<16|g-c|0}}return 0!==N&&(h[g+N]=A-k<<24|64<<16|0),d.bits=C,0}},function(t,e,r){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(t,e){},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e,r){"use strict";const i=r(7),n=function(t,e){const r={};if(!(t.child&&!i.isEmptyObject(t.child)||t.attrsMap&&!i.isEmptyObject(t.attrsMap)))return i.isExist(t.val)?t.val:"";i.isExist(t.val)&&("string"!=typeof t.val||""!==t.val&&t.val!==e.cdataPositionChar)&&("strict"===e.arrayMode?r[e.textNodeName]=[t.val]:r[e.textNodeName]=t.val),i.merge(r,t.attrsMap,e.arrayMode);const s=Object.keys(t.child);for(let i=0;i1)for(var a in r[o]=[],t.child[o])r[o].push(n(t.child[o][a],e));else if(!0===e.arrayMode){const i=n(t.child[o][0],e);r[o]="object"==typeof i?[i]:i}else"strict"===e.arrayMode?r[o]=[n(t.child[o][0],e)]:r[o]=n(t.child[o][0],e)}return r};e.convertToJson=n},function(t,e,r){"use strict";t.exports=function(t,e,r){this.tagname=t,this.parent=e,this.child={},this.attrsMap={},this.val=r,this.addChild=function(t){Array.isArray(this.child[t.tagname])?this.child[t.tagname].push(t):this.child[t.tagname]=[t]}}},function(t,e,r){"use strict";const i=r(7),n={allowBooleanAttributes:!1},s=["allowBooleanAttributes"];function o(t,e){for(var r=e;e5&&"xml"===i)return d("InvalidXml","XML declaration allowed only at the start of the document.",p(t,e));if("?"==t[e]&&">"==t[e+1]){e++;break}}return e}function a(t,e){if(t.length>e+5&&"-"===t[e+1]&&"-"===t[e+2]){for(e+=3;e"===t[e+2]){e+=2;break}}else if(t.length>e+8&&"D"===t[e+1]&&"O"===t[e+2]&&"C"===t[e+3]&&"T"===t[e+4]&&"Y"===t[e+5]&&"P"===t[e+6]&&"E"===t[e+7]){let r=1;for(e+=8;e"===t[e]&&(r--,0===r))break}else if(t.length>e+9&&"["===t[e+1]&&"C"===t[e+2]&&"D"===t[e+3]&&"A"===t[e+4]&&"T"===t[e+5]&&"A"===t[e+6]&&"["===t[e+7])for(e+=8;e"===t[e+2]){e+=2;break}return e}e.validate=function(t,e){e=i.buildOptions(e,n,s);const r=[];let h=!1,f=!1;"\ufeff"===t[0]&&(t=t.substr(1));for(let n=0;n"!==t[n]&&" "!==t[n]&&"\t"!==t[n]&&"\n"!==t[n]&&"\r"!==t[n];n++)o+=t[n];if(o=o.trim(),"/"===o[o.length-1]&&(o=o.substring(0,o.length-1),n--),m=o,!i.isName(m)){let e;return e=0===o.trim().length?"There is an unnecessary space between tag name and backward slash ' ..'.":"Tag '"+o+"' is an invalid name.",d("InvalidTag",e,p(t,n))}const w=u(t,n);if(!1===w)return d("InvalidAttr","Attributes for '"+o+"' have open quote.",p(t,n));let g=w.value;if(n=w.index,"/"===g[g.length-1]){g=g.substring(0,g.length-1);const r=c(g,e);if(!0!==r)return d(r.err.code,r.err.msg,p(t,n-g.length+r.err.line));h=!0}else if(s){if(!w.tagClosed)return d("InvalidTag","Closing tag '"+o+"' doesn't have proper closing.",p(t,n));if(g.trim().length>0)return d("InvalidTag","Closing tag '"+o+"' can't have attributes or invalid starting.",p(t,n));{const e=r.pop();if(o!==e)return d("InvalidTag","Closing tag '"+e+"' is expected inplace of '"+o+"'.",p(t,n));0==r.length&&(f=!0)}}else{const i=c(g,e);if(!0!==i)return d(i.err.code,i.err.msg,p(t,n-g.length+i.err.line));if(!0===f)return d("InvalidXml","Multiple possible root nodes found.",p(t,n));r.push(o),h=!0}for(n++;n0)||d("InvalidXml","Invalid '"+JSON.stringify(r,null,4).replace(/\r?\n/g,"")+"' found.",1):d("InvalidXml","Start tag expected.",1)};function u(t,e){let r="",i="",n=!1;for(;e"===t[e]&&""===i){n=!0;break}r+=t[e]}return""===i&&{value:r,index:e,tagClosed:n}}const h=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function c(t,e){const r=i.getAllMatches(t,h),n={};for(let i=0;i1){for(var u in n+='"'+a+'" : [ ',t.child[a])n+=o(t.child[a][u],e)+" , ";n=n.substr(0,n.length-1)+" ] "}else n+='"'+a+'" : '+o(t.child[a][0],e)+" ,"}return i.merge(n,t.attrsMap),i.isEmptyObject(n)?i.isExist(t.val)?t.val:"":(i.isExist(t.val)&&("string"!=typeof t.val||""!==t.val&&t.val!==e.cdataPositionChar)&&(n+='"'+e.textNodeName+'" : '+(!0!==(h=t.val)&&!1!==h&&isNaN(h)?'"'+h+'"':h)),","===n[n.length-1]&&(n=n.substr(0,n.length-2)),n+"}");var h};e.convertToJsonString=function(t,e){return(e=n(e,s.defaultOptions,s.props)).indentBy=e.indentBy||"",o(t,e,0)}},function(t,e,r){"use strict";const i=r(7).buildOptions,n={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataTagName:!1,cdataPositionChar:"\\c",format:!1,indentBy:" ",supressEmptyNode:!1,tagValueProcessor:function(t){return t},attrValueProcessor:function(t){return t}},s=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor"];function o(t){this.options=i(t,n,s),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=p),this.options.cdataTagName?this.isCDATA=m:this.isCDATA=function(){return!1},this.replaceCDATAstr=a,this.replaceCDATAarr=u,this.options.format?(this.indentate=f,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=d,this.buildObjNode=c):(this.buildTextNode=l,this.buildObjNode=h),this.buildTextValNode=l,this.buildObjectNode=h}function a(t,e){return t=this.options.tagValueProcessor(""+t),""===this.options.cdataPositionChar||""===t?t+"");return t+this.newLine}function h(t,e,r,i){return r&&!t.includes("<")?this.indentate(i)+"<"+e+r+">"+t+""+e+this.tagEndChar:this.indentate(i)+"<"+e+r+this.tagEndChar+t+this.indentate(i)+""+e+this.tagEndChar}function c(t,e,r,i){return""!==t?this.buildObjectNode(t,e,r,i):this.indentate(i)+"<"+e+r+"/"+this.tagEndChar}function l(t,e,r,i){return this.indentate(i)+"<"+e+r+">"+this.options.tagValueProcessor(t)+""+e+this.tagEndChar}function d(t,e,r,i){return""!==t?this.buildTextValNode(t,e,r,i):this.indentate(i)+"<"+e+r+"/"+this.tagEndChar}function f(t){return this.options.indentBy.repeat(t)}function p(t){return!!t.startsWith(this.options.attributeNamePrefix)&&t.substr(this.attrPrefixLen)}function m(t){return t===this.options.cdataTagName}o.prototype.parse=function(t){return this.j2x(t,0).val},o.prototype.j2x=function(t,e){let r="",i="";const n=Object.keys(t),s=n.length;for(let o=0;o1114111||n(c)!=c)throw RangeError("Invalid code point: "+c);c<=65535?o.push(c):(e=55296+((c-=65536)>>10),r=c%1024+56320,o.push(e,r)),(a+1==u||o.length>s)&&(h+=i.apply(null,o),o.length=0)}return h},r?r(String,"fromCodePoint",{value:s,configurable:!0,writable:!0}):String.fromCodePoint=s)},function(t,e,r){"use strict";var i=r(164),n=r(183);function s(t){return function(){throw new Error("Function "+t+" is deprecated and cannot be used.")}}t.exports.Type=r(2),t.exports.Schema=r(16),t.exports.FAILSAFE_SCHEMA=r(46),t.exports.JSON_SCHEMA=r(85),t.exports.CORE_SCHEMA=r(84),t.exports.DEFAULT_SAFE_SCHEMA=r(24),t.exports.DEFAULT_FULL_SCHEMA=r(34),t.exports.load=i.load,t.exports.loadAll=i.loadAll,t.exports.safeLoad=i.safeLoad,t.exports.safeLoadAll=i.safeLoadAll,t.exports.dump=n.dump,t.exports.safeDump=n.safeDump,t.exports.YAMLException=r(23),t.exports.MINIMAL_SCHEMA=r(46),t.exports.SAFE_SCHEMA=r(24),t.exports.DEFAULT_SCHEMA=r(34),t.exports.scan=s("scan"),t.exports.parse=s("parse"),t.exports.compose=s("compose"),t.exports.addConstructor=s("addConstructor")},function(t,e,r){"use strict";var i=r(15),n=r(23),s=r(165),o=r(24),a=r(34),u=Object.prototype.hasOwnProperty,h=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,c=/[\x85\u2028\u2029]/,l=/[,\[\]\{\}]/,d=/^(?:!|!!|![a-z\-]+!)$/i,f=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function p(t){return Object.prototype.toString.call(t)}function m(t){return 10===t||13===t}function w(t){return 9===t||32===t}function g(t){return 9===t||32===t||10===t||13===t}function y(t){return 44===t||91===t||93===t||123===t||125===t}function _(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function b(t){return 48===t?"\0":97===t?"":98===t?"\b":116===t||9===t?"\t":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"
":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function E(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}for(var v=new Array(256),A=new Array(256),T=0;T<256;T++)v[T]=b(T)?1:0,A[T]=b(T);function x(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||a,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function S(t,e){return new n(e,new s(t.filename,t.input,t.position,t.line,t.position-t.lineStart))}function C(t,e){throw S(t,e)}function D(t,e){t.onWarning&&t.onWarning.call(null,S(t,e))}var k={YAML:function(t,e,r){var i,n,s;null!==t.version&&C(t,"duplication of %YAML directive"),1!==r.length&&C(t,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&C(t,"ill-formed argument of the YAML directive"),n=parseInt(i[1],10),s=parseInt(i[2],10),1!==n&&C(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=s<2,1!==s&&2!==s&&D(t,"unsupported YAML version of the document")},TAG:function(t,e,r){var i,n;2!==r.length&&C(t,"TAG directive accepts exactly two arguments"),i=r[0],n=r[1],d.test(i)||C(t,"ill-formed tag handle (first argument) of the TAG directive"),u.call(t.tagMap,i)&&C(t,'there is a previously declared suffix for "'+i+'" tag handle'),f.test(n)||C(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=n}};function R(t,e,r,i){var n,s,o,a;if(e1&&(t.result+=i.repeat("\n",e-1))}function L(t,e){var r,i,n=t.tag,s=t.anchor,o=[],a=!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=o),i=t.input.charCodeAt(t.position);0!==i&&45===i&&g(t.input.charCodeAt(t.position+1));)if(a=!0,t.position++,F(t,!0,-1)&&t.lineIndent<=e)o.push(null),i=t.input.charCodeAt(t.position);else if(r=t.line,W(t,e,3,!1,!0),o.push(t.result),F(t,!0,-1),i=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==i)C(t,"bad indentation of a sequence entry");else if(t.lineIndente?b=1:t.lineIndent===e?b=0:t.lineIndente?b=1:t.lineIndent===e?b=0:t.lineIndente)&&(W(t,e,4,!0,n)&&(m?f=t.result:p=t.result),m||(N(t,c,l,d,f,p,s,o),d=f=p=null),F(t,!0,-1),a=t.input.charCodeAt(t.position)),t.lineIndent>e&&0!==a)C(t,"bad indentation of a mapping entry");else if(t.lineIndent=0))break;0===s?C(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?C(t,"repeat of an indentation width identifier"):(l=e+s-1,c=!0)}if(w(o)){do{o=t.input.charCodeAt(++t.position)}while(w(o));if(35===o)do{o=t.input.charCodeAt(++t.position)}while(!m(o)&&0!==o)}for(;0!==o;){for(O(t),t.lineIndent=0,o=t.input.charCodeAt(t.position);(!c||t.lineIndentl&&(l=t.lineIndent),m(o))d++;else{if(t.lineIndent0){for(n=o,s=0;n>0;n--)(o=_(a=t.input.charCodeAt(++t.position)))>=0?s=(s<<4)+o:C(t,"expected hexadecimal character");t.result+=E(s),t.position++}else C(t,"unknown escape sequence");r=i=t.position}else m(a)?(R(t,r,i,!0),B(t,F(t,!1,e)),r=i=t.position):t.position===t.lineStart&&P(t)?C(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}C(t,"unexpected end of the stream within a double quoted scalar")}(t,f)?x=!0:!function(t){var e,r,i;if(42!==(i=t.input.charCodeAt(t.position)))return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!g(i)&&!y(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&C(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),t.anchorMap.hasOwnProperty(r)||C(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],F(t,!0,-1),!0}(t)?function(t,e,r){var i,n,s,o,a,u,h,c,l=t.kind,d=t.result;if(g(c=t.input.charCodeAt(t.position))||y(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c)return!1;if((63===c||45===c)&&(g(i=t.input.charCodeAt(t.position+1))||r&&y(i)))return!1;for(t.kind="scalar",t.result="",n=s=t.position,o=!1;0!==c;){if(58===c){if(g(i=t.input.charCodeAt(t.position+1))||r&&y(i))break}else if(35===c){if(g(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&P(t)||r&&y(c))break;if(m(c)){if(a=t.line,u=t.lineStart,h=t.lineIndent,F(t,!1,-1),t.lineIndent>=e){o=!0,c=t.input.charCodeAt(t.position);continue}t.position=s,t.line=a,t.lineStart=u,t.lineIndent=h;break}}o&&(R(t,n,s,!1),B(t,t.line-a),n=s=t.position,o=!1),w(c)||(s=t.position+1),c=t.input.charCodeAt(++t.position)}return R(t,n,s,!1),!!t.result||(t.kind=l,t.result=d,!1)}(t,f,1===r)&&(x=!0,null===t.tag&&(t.tag="?")):(x=!0,null===t.tag&&null===t.anchor||C(t,"alias node should not have any properties")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===b&&(x=h&&L(t,p))),null!==t.tag&&"!"!==t.tag)if("?"===t.tag){for(c=0,l=t.implicitTypes.length;c tag; it should be "'+d.kind+'", not "'+t.kind+'"'),d.resolve(t.result)?(t.result=d.construct(t.result),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):C(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")):C(t,"unknown tag !<"+t.tag+">");return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||x}function j(t){var e,r,i,n,s=t.position,o=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap={},t.anchorMap={};0!==(n=t.input.charCodeAt(t.position))&&(F(t,!0,-1),n=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==n));){for(o=!0,n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!g(n);)n=t.input.charCodeAt(++t.position);for(i=[],(r=t.input.slice(e,t.position)).length<1&&C(t,"directive name must not be less than one character in length");0!==n;){for(;w(n);)n=t.input.charCodeAt(++t.position);if(35===n){do{n=t.input.charCodeAt(++t.position)}while(0!==n&&!m(n));break}if(m(n))break;for(e=t.position;0!==n&&!g(n);)n=t.input.charCodeAt(++t.position);i.push(t.input.slice(e,t.position))}0!==n&&O(t),u.call(k,r)?k[r](t,r,i):D(t,'unknown document directive "'+r+'"')}F(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,F(t,!0,-1)):o&&C(t,"directives end mark is expected"),W(t,t.lineIndent-1,4,!1,!0),F(t,!0,-1),t.checkLineBreaks&&c.test(t.input.slice(s,t.position))&&D(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&P(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,F(t,!0,-1)):t.position0&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(n-1));)if(n-=1,this.position-n>e/2-1){r=" ... ",n+=5;break}for(s="",o=this.position;oe/2-1){s=" ... ",o-=5;break}return a=this.buffer.slice(n,o),i.repeat(" ",t)+r+a+s+"\n"+i.repeat(" ",t+this.position-n+r.length)+"^"},n.prototype.toString=function(t){var e,r="";return this.name&&(r+='in "'+this.name+'" '),r+="at line "+(this.line+1)+", column "+(this.column+1),t||(e=this.getSnippet())&&(r+=":\n"+e),r},t.exports=n},function(t,e,r){"use strict";var i=r(2);t.exports=new i("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}})},function(t,e,r){"use strict";var i=r(2);t.exports=new i("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}})},function(t,e,r){"use strict";var i=r(2);t.exports=new i("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}})},function(t,e,r){"use strict";var i=r(2);t.exports=new i("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)},construct:function(){return null},predicate:function(t){return null===t},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},function(t,e,r){"use strict";var i=r(2);t.exports=new i("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)},construct:function(t){return"true"===t||"True"===t||"TRUE"===t},predicate:function(t){return"[object Boolean]"===Object.prototype.toString.call(t)},represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"})},function(t,e,r){"use strict";var i=r(15),n=r(2);function s(t){return 48<=t&&t<=55}function o(t){return 48<=t&&t<=57}t.exports=new n("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,r,i=t.length,n=0,a=!1;if(!i)return!1;if("-"!==(e=t[n])&&"+"!==e||(e=t[++n]),"0"===e){if(n+1===i)return!0;if("b"===(e=t[++n])){for(n++;n=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0"+t.toString(8):"-0"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},function(t,e,r){"use strict";var i=r(15),n=r(2),s=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var o=/^[-+]?[0-9]+e/;t.exports=new n("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(t){return null!==t&&!(!s.test(t)||"_"===t[t.length-1])},construct:function(t){var e,r,i,n;return r="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,n=[],"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:e.indexOf(":")>=0?(e.split(":").forEach((function(t){n.unshift(parseFloat(t,10))})),e=0,i=1,n.forEach((function(t){e+=t*i,i*=60})),r*e):r*parseFloat(e,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||i.isNegativeZero(t))},represent:function(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(i.isNegativeZero(t))return"-0.0";return r=t.toString(10),o.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"})},function(t,e,r){"use strict";var i=r(2),n=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),s=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");t.exports=new i("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(t){return null!==t&&(null!==n.exec(t)||null!==s.exec(t))},construct:function(t){var e,r,i,o,a,u,h,c,l=0,d=null;if(null===(e=n.exec(t))&&(e=s.exec(t)),null===e)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,o=+e[3],!e[4])return new Date(Date.UTC(r,i,o));if(a=+e[4],u=+e[5],h=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(d=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(d=-d)),c=new Date(Date.UTC(r,i,o,a,u,h,l)),d&&c.setTime(c.getTime()-d),c},instanceOf:Date,represent:function(t){return t.toISOString()}})},function(t,e,r){"use strict";var i=r(2);t.exports=new i("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(t){return"<<"===t||null===t}})},function(t,e,r){"use strict";var i;try{i=r(3).Buffer}catch(t){}var n=r(2),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";t.exports=new n("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,r,i=0,n=t.length,o=s;for(r=0;r64)){if(e<0)return!1;i+=6}return i%8==0},construct:function(t){var e,r,n=t.replace(/[\r\n=]/g,""),o=n.length,a=s,u=0,h=[];for(e=0;e>16&255),h.push(u>>8&255),h.push(255&u)),u=u<<6|a.indexOf(n.charAt(e));return 0===(r=o%4*6)?(h.push(u>>16&255),h.push(u>>8&255),h.push(255&u)):18===r?(h.push(u>>10&255),h.push(u>>2&255)):12===r&&h.push(u>>4&255),i?i.from?i.from(h):new i(h):h},predicate:function(t){return i&&i.isBuffer(t)},represent:function(t){var e,r,i="",n=0,o=t.length,a=s;for(e=0;e>18&63],i+=a[n>>12&63],i+=a[n>>6&63],i+=a[63&n]),n=(n<<8)+t[e];return 0===(r=o%3)?(i+=a[n>>18&63],i+=a[n>>12&63],i+=a[n>>6&63],i+=a[63&n]):2===r?(i+=a[n>>10&63],i+=a[n>>4&63],i+=a[n<<2&63],i+=a[64]):1===r&&(i+=a[n>>2&63],i+=a[n<<4&63],i+=a[64],i+=a[64]),i}})},function(t,e,r){"use strict";var i=r(2),n=Object.prototype.hasOwnProperty,s=Object.prototype.toString;t.exports=new i("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,r,i,o,a,u=[],h=t;for(e=0,r=h.length;e3)return!1;if("/"!==e[e.length-i.length-1])return!1}return!0},construct:function(t){var e=t,r=/\/([gim]*)$/.exec(t),i="";return"/"===e[0]&&(r&&(i=r[1]),e=e.slice(1,e.length-i.length-1)),new RegExp(e,i)},predicate:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},represent:function(t){var e="/"+t.source+"/";return t.global&&(e+="g"),t.multiline&&(e+="m"),t.ignoreCase&&(e+="i"),e}})},function(t,e,r){"use strict";var i;try{i=r(182)}catch(t){"undefined"!=typeof window&&(i=window.esprima)}var n=r(2);t.exports=new n("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(t){if(null===t)return!1;try{var e="("+t+")",r=i.parse(e,{range:!0});return"Program"===r.type&&1===r.body.length&&"ExpressionStatement"===r.body[0].type&&("ArrowFunctionExpression"===r.body[0].expression.type||"FunctionExpression"===r.body[0].expression.type)}catch(t){return!1}},construct:function(t){var e,r="("+t+")",n=i.parse(r,{range:!0}),s=[];if("Program"!==n.type||1!==n.body.length||"ExpressionStatement"!==n.body[0].type||"ArrowFunctionExpression"!==n.body[0].expression.type&&"FunctionExpression"!==n.body[0].expression.type)throw new Error("Failed to resolve function");return n.body[0].expression.params.forEach((function(t){s.push(t.name)})),e=n.body[0].expression.body.range,"BlockStatement"===n.body[0].expression.body.type?new Function(s,r.slice(e[0]+1,e[1]-1)):new Function(s,"return "+r.slice(e[0],e[1]))},predicate:function(t){return"[object Function]"===Object.prototype.toString.call(t)},represent:function(t){return t.toString()}})},function(t,e,r){var i;i=function(){return function(t){var e={};function r(i){if(e[i])return e[i].exports;var n=e[i]={exports:{},id:i,loaded:!1};return t[i].call(n.exports,n,n.exports,r),n.loaded=!0,n.exports}return r.m=t,r.c=e,r.p="",r(0)}([function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(3),s=r(8),o=r(15);function a(t,e,r){var o=null,a=function(t,e){r&&r(t,e),o&&o.visit(t,e)},u="function"==typeof r?a:null,h=!1;if(e){h="boolean"==typeof e.comment&&e.comment;var c="boolean"==typeof e.attachComment&&e.attachComment;(h||c)&&((o=new i.CommentHandler).attach=c,e.comment=!0,u=a)}var l,d=!1;e&&"string"==typeof e.sourceType&&(d="module"===e.sourceType),l=e&&"boolean"==typeof e.jsx&&e.jsx?new n.JSXParser(t,e,u):new s.Parser(t,e,u);var f=d?l.parseModule():l.parseScript();return h&&o&&(f.comments=o.comments),l.config.tokens&&(f.tokens=l.tokens),l.config.tolerant&&(f.errors=l.errorHandler.errors),f}e.parse=a,e.parseModule=function(t,e,r){var i=e||{};return i.sourceType="module",a(t,i,r)},e.parseScript=function(t,e,r){var i=e||{};return i.sourceType="script",a(t,i,r)},e.tokenize=function(t,e,r){var i,n=new o.Tokenizer(t,e);i=[];try{for(;;){var s=n.getNextToken();if(!s)break;r&&(s=r(s)),i.push(s)}}catch(t){n.errorHandler.tolerate(t)}return n.errorHandler.tolerant&&(i.errors=n.errors()),i};var u=r(2);e.Syntax=u.Syntax,e.version="4.0.1"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(2),n=function(){function t(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return t.prototype.insertInnerComments=function(t,e){if(t.type===i.Syntax.BlockStatement&&0===t.body.length){for(var r=[],n=this.leading.length-1;n>=0;--n){var s=this.leading[n];e.end.offset>=s.start&&(r.unshift(s.comment),this.leading.splice(n,1),this.trailing.splice(n,1))}r.length&&(t.innerComments=r)}},t.prototype.findTrailingComments=function(t){var e=[];if(this.trailing.length>0){for(var r=this.trailing.length-1;r>=0;--r){var i=this.trailing[r];i.start>=t.end.offset&&e.unshift(i.comment)}return this.trailing.length=0,e}var n=this.stack[this.stack.length-1];if(n&&n.node.trailingComments){var s=n.node.trailingComments[0];s&&s.range[0]>=t.end.offset&&(e=n.node.trailingComments,delete n.node.trailingComments)}return e},t.prototype.findLeadingComments=function(t){for(var e,r=[];this.stack.length>0&&((s=this.stack[this.stack.length-1])&&s.start>=t.start.offset);)e=s.node,this.stack.pop();if(e){for(var i=(e.leadingComments?e.leadingComments.length:0)-1;i>=0;--i){var n=e.leadingComments[i];n.range[1]<=t.start.offset&&(r.unshift(n),e.leadingComments.splice(i,1))}return e.leadingComments&&0===e.leadingComments.length&&delete e.leadingComments,r}for(i=this.leading.length-1;i>=0;--i){var s;(s=this.leading[i]).start<=t.start.offset&&(r.unshift(s.comment),this.leading.splice(i,1))}return r},t.prototype.visitNode=function(t,e){if(!(t.type===i.Syntax.Program&&t.body.length>0)){this.insertInnerComments(t,e);var r=this.findTrailingComments(e),n=this.findLeadingComments(e);n.length>0&&(t.leadingComments=n),r.length>0&&(t.trailingComments=r),this.stack.push({node:t,start:e.start.offset})}},t.prototype.visitComment=function(t,e){var r="L"===t.type[0]?"Line":"Block",i={type:r,value:t.value};if(t.range&&(i.range=t.range),t.loc&&(i.loc=t.loc),this.comments.push(i),this.attach){var n={comment:{type:r,value:t.value,range:[e.start.offset,e.end.offset]},start:e.start.offset};t.loc&&(n.comment.loc=t.loc),t.type=r,this.leading.push(n),this.trailing.push(n)}},t.prototype.visit=function(t,e){"LineComment"===t.type||"BlockComment"===t.type?this.visitComment(t,e):this.attach&&this.visitNode(t,e)},t}();e.CommentHandler=n},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(t,e,r){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var s=r(4),o=r(5),a=r(6),u=r(7),h=r(8),c=r(13),l=r(14);function d(t){var e;switch(t.type){case a.JSXSyntax.JSXIdentifier:e=t.name;break;case a.JSXSyntax.JSXNamespacedName:var r=t;e=d(r.namespace)+":"+d(r.name);break;case a.JSXSyntax.JSXMemberExpression:var i=t;e=d(i.object)+"."+d(i.property)}return e}c.TokenName[100]="JSXIdentifier",c.TokenName[101]="JSXText";var f=function(t){function e(e,r,i){return t.call(this,e,r,i)||this}return n(e,t),e.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():t.prototype.parsePrimaryExpression.call(this)},e.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},e.prototype.finishJSX=function(){this.nextToken()},e.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},e.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},e.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},e.prototype.scanXHTMLEntity=function(t){for(var e="&",r=!0,i=!1,n=!1,o=!1;!this.scanner.eof()&&r&&!i;){var a=this.scanner.source[this.scanner.index];if(a===t)break;if(i=";"===a,e+=a,++this.scanner.index,!i)switch(e.length){case 2:n="#"===a;break;case 3:n&&(r=(o="x"===a)||s.Character.isDecimalDigit(a.charCodeAt(0)),n=n&&!o);break;default:r=(r=r&&!(n&&!s.Character.isDecimalDigit(a.charCodeAt(0))))&&!(o&&!s.Character.isHexDigit(a.charCodeAt(0)))}}if(r&&i&&e.length>2){var u=e.substr(1,e.length-2);n&&u.length>1?e=String.fromCharCode(parseInt(u.substr(1),10)):o&&u.length>2?e=String.fromCharCode(parseInt("0"+u.substr(1),16)):n||o||!l.XHTMLEntities[u]||(e=l.XHTMLEntities[u])}return e},e.prototype.lexJSX=function(){var t=this.scanner.source.charCodeAt(this.scanner.index);if(60===t||62===t||47===t||58===t||61===t||123===t||125===t)return{type:7,value:a=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===t||39===t){for(var e=this.scanner.index,r=this.scanner.source[this.scanner.index++],i="";!this.scanner.eof()&&(u=this.scanner.source[this.scanner.index++])!==r;)i+="&"===u?this.scanXHTMLEntity(r):u;return{type:8,value:i,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index}}if(46===t){var n=this.scanner.source.charCodeAt(this.scanner.index+1),o=this.scanner.source.charCodeAt(this.scanner.index+2),a=46===n&&46===o?"...":".";return e=this.scanner.index,this.scanner.index+=a.length,{type:7,value:a,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index}}if(96===t)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(s.Character.isIdentifierStart(t)&&92!==t){for(e=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var u=this.scanner.source.charCodeAt(this.scanner.index);if(s.Character.isIdentifierPart(u)&&92!==u)++this.scanner.index;else{if(45!==u)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(e,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index}}return this.scanner.lex()},e.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var t=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(t)),t},e.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var t=this.scanner.index,e="";!this.scanner.eof();){var r=this.scanner.source[this.scanner.index];if("{"===r||"<"===r)break;++this.scanner.index,e+=r,s.Character.isLineTerminator(r.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===r&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var i={type:101,value:e,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index};return e.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(i)),i},e.prototype.peekJSXToken=function(){var t=this.scanner.saveState();this.scanner.scanComments();var e=this.lexJSX();return this.scanner.restoreState(t),e},e.prototype.expectJSX=function(t){var e=this.nextJSXToken();7===e.type&&e.value===t||this.throwUnexpectedToken(e)},e.prototype.matchJSX=function(t){var e=this.peekJSXToken();return 7===e.type&&e.value===t},e.prototype.parseJSXIdentifier=function(){var t=this.createJSXNode(),e=this.nextJSXToken();return 100!==e.type&&this.throwUnexpectedToken(e),this.finalize(t,new o.JSXIdentifier(e.value))},e.prototype.parseJSXElementName=function(){var t=this.createJSXNode(),e=this.parseJSXIdentifier();if(this.matchJSX(":")){var r=e;this.expectJSX(":");var i=this.parseJSXIdentifier();e=this.finalize(t,new o.JSXNamespacedName(r,i))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var n=e;this.expectJSX(".");var s=this.parseJSXIdentifier();e=this.finalize(t,new o.JSXMemberExpression(n,s))}return e},e.prototype.parseJSXAttributeName=function(){var t,e=this.createJSXNode(),r=this.parseJSXIdentifier();if(this.matchJSX(":")){var i=r;this.expectJSX(":");var n=this.parseJSXIdentifier();t=this.finalize(e,new o.JSXNamespacedName(i,n))}else t=r;return t},e.prototype.parseJSXStringLiteralAttribute=function(){var t=this.createJSXNode(),e=this.nextJSXToken();8!==e.type&&this.throwUnexpectedToken(e);var r=this.getTokenRaw(e);return this.finalize(t,new u.Literal(e.value,r))},e.prototype.parseJSXExpressionAttribute=function(){var t=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var e=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(t,new o.JSXExpressionContainer(e))},e.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},e.prototype.parseJSXNameValueAttribute=function(){var t=this.createJSXNode(),e=this.parseJSXAttributeName(),r=null;return this.matchJSX("=")&&(this.expectJSX("="),r=this.parseJSXAttributeValue()),this.finalize(t,new o.JSXAttribute(e,r))},e.prototype.parseJSXSpreadAttribute=function(){var t=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var e=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(t,new o.JSXSpreadAttribute(e))},e.prototype.parseJSXAttributes=function(){for(var t=[];!this.matchJSX("/")&&!this.matchJSX(">");){var e=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();t.push(e)}return t},e.prototype.parseJSXOpeningElement=function(){var t=this.createJSXNode();this.expectJSX("<");var e=this.parseJSXElementName(),r=this.parseJSXAttributes(),i=this.matchJSX("/");return i&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(t,new o.JSXOpeningElement(e,i,r))},e.prototype.parseJSXBoundaryElement=function(){var t=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var e=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(t,new o.JSXClosingElement(e))}var r=this.parseJSXElementName(),i=this.parseJSXAttributes(),n=this.matchJSX("/");return n&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(t,new o.JSXOpeningElement(r,n,i))},e.prototype.parseJSXEmptyExpression=function(){var t=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(t,new o.JSXEmptyExpression)},e.prototype.parseJSXExpressionContainer=function(){var t,e=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(t=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),t=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(e,new o.JSXExpressionContainer(t))},e.prototype.parseJSXChildren=function(){for(var t=[];!this.scanner.eof();){var e=this.createJSXChildNode(),r=this.nextJSXText();if(r.start0))break;s=this.finalize(t.node,new o.JSXElement(t.opening,t.children,t.closing)),(t=e[e.length-1]).children.push(s),e.pop()}}return t},e.prototype.parseJSXElement=function(){var t=this.createJSXNode(),e=this.parseJSXOpeningElement(),r=[],i=null;if(!e.selfClosing){var n=this.parseComplexJSXElement({node:t,opening:e,closing:i,children:r});r=n.children,i=n.closing}return this.finalize(t,new o.JSXElement(e,r,i))},e.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var t=this.parseJSXElement();return this.finishJSX(),t},e.prototype.isStartOfExpression=function(){return t.prototype.isStartOfExpression.call(this)||this.match("<")},e}(h.Parser);e.JSXParser=f},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};e.Character={fromCodePoint:function(t){return t<65536?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10))+String.fromCharCode(56320+(t-65536&1023))},isWhiteSpace:function(t){return 32===t||9===t||11===t||12===t||160===t||t>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(t)>=0},isLineTerminator:function(t){return 10===t||13===t||8232===t||8233===t},isIdentifierStart:function(t){return 36===t||95===t||t>=65&&t<=90||t>=97&&t<=122||92===t||t>=128&&r.NonAsciiIdentifierStart.test(e.Character.fromCodePoint(t))},isIdentifierPart:function(t){return 36===t||95===t||t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||92===t||t>=128&&r.NonAsciiIdentifierPart.test(e.Character.fromCodePoint(t))},isDecimalDigit:function(t){return t>=48&&t<=57},isHexDigit:function(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102},isOctalDigit:function(t){return t>=48&&t<=55}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(6),n=function(t){this.type=i.JSXSyntax.JSXClosingElement,this.name=t};e.JSXClosingElement=n;var s=function(t,e,r){this.type=i.JSXSyntax.JSXElement,this.openingElement=t,this.children=e,this.closingElement=r};e.JSXElement=s;var o=function(){this.type=i.JSXSyntax.JSXEmptyExpression};e.JSXEmptyExpression=o;var a=function(t){this.type=i.JSXSyntax.JSXExpressionContainer,this.expression=t};e.JSXExpressionContainer=a;var u=function(t){this.type=i.JSXSyntax.JSXIdentifier,this.name=t};e.JSXIdentifier=u;var h=function(t,e){this.type=i.JSXSyntax.JSXMemberExpression,this.object=t,this.property=e};e.JSXMemberExpression=h;var c=function(t,e){this.type=i.JSXSyntax.JSXAttribute,this.name=t,this.value=e};e.JSXAttribute=c;var l=function(t,e){this.type=i.JSXSyntax.JSXNamespacedName,this.namespace=t,this.name=e};e.JSXNamespacedName=l;var d=function(t,e,r){this.type=i.JSXSyntax.JSXOpeningElement,this.name=t,this.selfClosing=e,this.attributes=r};e.JSXOpeningElement=d;var f=function(t){this.type=i.JSXSyntax.JSXSpreadAttribute,this.argument=t};e.JSXSpreadAttribute=f;var p=function(t,e){this.type=i.JSXSyntax.JSXText,this.value=t,this.raw=e};e.JSXText=p},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(2),n=function(t){this.type=i.Syntax.ArrayExpression,this.elements=t};e.ArrayExpression=n;var s=function(t){this.type=i.Syntax.ArrayPattern,this.elements=t};e.ArrayPattern=s;var o=function(t,e,r){this.type=i.Syntax.ArrowFunctionExpression,this.id=null,this.params=t,this.body=e,this.generator=!1,this.expression=r,this.async=!1};e.ArrowFunctionExpression=o;var a=function(t,e,r){this.type=i.Syntax.AssignmentExpression,this.operator=t,this.left=e,this.right=r};e.AssignmentExpression=a;var u=function(t,e){this.type=i.Syntax.AssignmentPattern,this.left=t,this.right=e};e.AssignmentPattern=u;var h=function(t,e,r){this.type=i.Syntax.ArrowFunctionExpression,this.id=null,this.params=t,this.body=e,this.generator=!1,this.expression=r,this.async=!0};e.AsyncArrowFunctionExpression=h;var c=function(t,e,r){this.type=i.Syntax.FunctionDeclaration,this.id=t,this.params=e,this.body=r,this.generator=!1,this.expression=!1,this.async=!0};e.AsyncFunctionDeclaration=c;var l=function(t,e,r){this.type=i.Syntax.FunctionExpression,this.id=t,this.params=e,this.body=r,this.generator=!1,this.expression=!1,this.async=!0};e.AsyncFunctionExpression=l;var d=function(t){this.type=i.Syntax.AwaitExpression,this.argument=t};e.AwaitExpression=d;var f=function(t,e,r){var n="||"===t||"&&"===t;this.type=n?i.Syntax.LogicalExpression:i.Syntax.BinaryExpression,this.operator=t,this.left=e,this.right=r};e.BinaryExpression=f;var p=function(t){this.type=i.Syntax.BlockStatement,this.body=t};e.BlockStatement=p;var m=function(t){this.type=i.Syntax.BreakStatement,this.label=t};e.BreakStatement=m;var w=function(t,e){this.type=i.Syntax.CallExpression,this.callee=t,this.arguments=e};e.CallExpression=w;var g=function(t,e){this.type=i.Syntax.CatchClause,this.param=t,this.body=e};e.CatchClause=g;var y=function(t){this.type=i.Syntax.ClassBody,this.body=t};e.ClassBody=y;var _=function(t,e,r){this.type=i.Syntax.ClassDeclaration,this.id=t,this.superClass=e,this.body=r};e.ClassDeclaration=_;var b=function(t,e,r){this.type=i.Syntax.ClassExpression,this.id=t,this.superClass=e,this.body=r};e.ClassExpression=b;var E=function(t,e){this.type=i.Syntax.MemberExpression,this.computed=!0,this.object=t,this.property=e};e.ComputedMemberExpression=E;var v=function(t,e,r){this.type=i.Syntax.ConditionalExpression,this.test=t,this.consequent=e,this.alternate=r};e.ConditionalExpression=v;var A=function(t){this.type=i.Syntax.ContinueStatement,this.label=t};e.ContinueStatement=A;var T=function(){this.type=i.Syntax.DebuggerStatement};e.DebuggerStatement=T;var x=function(t,e){this.type=i.Syntax.ExpressionStatement,this.expression=t,this.directive=e};e.Directive=x;var S=function(t,e){this.type=i.Syntax.DoWhileStatement,this.body=t,this.test=e};e.DoWhileStatement=S;var C=function(){this.type=i.Syntax.EmptyStatement};e.EmptyStatement=C;var D=function(t){this.type=i.Syntax.ExportAllDeclaration,this.source=t};e.ExportAllDeclaration=D;var k=function(t){this.type=i.Syntax.ExportDefaultDeclaration,this.declaration=t};e.ExportDefaultDeclaration=k;var R=function(t,e,r){this.type=i.Syntax.ExportNamedDeclaration,this.declaration=t,this.specifiers=e,this.source=r};e.ExportNamedDeclaration=R;var I=function(t,e){this.type=i.Syntax.ExportSpecifier,this.exported=e,this.local=t};e.ExportSpecifier=I;var N=function(t){this.type=i.Syntax.ExpressionStatement,this.expression=t};e.ExpressionStatement=N;var O=function(t,e,r){this.type=i.Syntax.ForInStatement,this.left=t,this.right=e,this.body=r,this.each=!1};e.ForInStatement=O;var F=function(t,e,r){this.type=i.Syntax.ForOfStatement,this.left=t,this.right=e,this.body=r};e.ForOfStatement=F;var P=function(t,e,r,n){this.type=i.Syntax.ForStatement,this.init=t,this.test=e,this.update=r,this.body=n};e.ForStatement=P;var B=function(t,e,r,n){this.type=i.Syntax.FunctionDeclaration,this.id=t,this.params=e,this.body=r,this.generator=n,this.expression=!1,this.async=!1};e.FunctionDeclaration=B;var L=function(t,e,r,n){this.type=i.Syntax.FunctionExpression,this.id=t,this.params=e,this.body=r,this.generator=n,this.expression=!1,this.async=!1};e.FunctionExpression=L;var U=function(t){this.type=i.Syntax.Identifier,this.name=t};e.Identifier=U;var M=function(t,e,r){this.type=i.Syntax.IfStatement,this.test=t,this.consequent=e,this.alternate=r};e.IfStatement=M;var W=function(t,e){this.type=i.Syntax.ImportDeclaration,this.specifiers=t,this.source=e};e.ImportDeclaration=W;var j=function(t){this.type=i.Syntax.ImportDefaultSpecifier,this.local=t};e.ImportDefaultSpecifier=j;var H=function(t){this.type=i.Syntax.ImportNamespaceSpecifier,this.local=t};e.ImportNamespaceSpecifier=H;var z=function(t,e){this.type=i.Syntax.ImportSpecifier,this.local=t,this.imported=e};e.ImportSpecifier=z;var G=function(t,e){this.type=i.Syntax.LabeledStatement,this.label=t,this.body=e};e.LabeledStatement=G;var q=function(t,e){this.type=i.Syntax.Literal,this.value=t,this.raw=e};e.Literal=q;var X=function(t,e){this.type=i.Syntax.MetaProperty,this.meta=t,this.property=e};e.MetaProperty=X;var Y=function(t,e,r,n,s){this.type=i.Syntax.MethodDefinition,this.key=t,this.computed=e,this.value=r,this.kind=n,this.static=s};e.MethodDefinition=Y;var V=function(t){this.type=i.Syntax.Program,this.body=t,this.sourceType="module"};e.Module=V;var K=function(t,e){this.type=i.Syntax.NewExpression,this.callee=t,this.arguments=e};e.NewExpression=K;var J=function(t){this.type=i.Syntax.ObjectExpression,this.properties=t};e.ObjectExpression=J;var Z=function(t){this.type=i.Syntax.ObjectPattern,this.properties=t};e.ObjectPattern=Z;var Q=function(t,e,r,n,s,o){this.type=i.Syntax.Property,this.key=e,this.computed=r,this.value=n,this.kind=t,this.method=s,this.shorthand=o};e.Property=Q;var $=function(t,e,r,n){this.type=i.Syntax.Literal,this.value=t,this.raw=e,this.regex={pattern:r,flags:n}};e.RegexLiteral=$;var tt=function(t){this.type=i.Syntax.RestElement,this.argument=t};e.RestElement=tt;var et=function(t){this.type=i.Syntax.ReturnStatement,this.argument=t};e.ReturnStatement=et;var rt=function(t){this.type=i.Syntax.Program,this.body=t,this.sourceType="script"};e.Script=rt;var it=function(t){this.type=i.Syntax.SequenceExpression,this.expressions=t};e.SequenceExpression=it;var nt=function(t){this.type=i.Syntax.SpreadElement,this.argument=t};e.SpreadElement=nt;var st=function(t,e){this.type=i.Syntax.MemberExpression,this.computed=!1,this.object=t,this.property=e};e.StaticMemberExpression=st;var ot=function(){this.type=i.Syntax.Super};e.Super=ot;var at=function(t,e){this.type=i.Syntax.SwitchCase,this.test=t,this.consequent=e};e.SwitchCase=at;var ut=function(t,e){this.type=i.Syntax.SwitchStatement,this.discriminant=t,this.cases=e};e.SwitchStatement=ut;var ht=function(t,e){this.type=i.Syntax.TaggedTemplateExpression,this.tag=t,this.quasi=e};e.TaggedTemplateExpression=ht;var ct=function(t,e){this.type=i.Syntax.TemplateElement,this.value=t,this.tail=e};e.TemplateElement=ct;var lt=function(t,e){this.type=i.Syntax.TemplateLiteral,this.quasis=t,this.expressions=e};e.TemplateLiteral=lt;var dt=function(){this.type=i.Syntax.ThisExpression};e.ThisExpression=dt;var ft=function(t){this.type=i.Syntax.ThrowStatement,this.argument=t};e.ThrowStatement=ft;var pt=function(t,e,r){this.type=i.Syntax.TryStatement,this.block=t,this.handler=e,this.finalizer=r};e.TryStatement=pt;var mt=function(t,e){this.type=i.Syntax.UnaryExpression,this.operator=t,this.argument=e,this.prefix=!0};e.UnaryExpression=mt;var wt=function(t,e,r){this.type=i.Syntax.UpdateExpression,this.operator=t,this.argument=e,this.prefix=r};e.UpdateExpression=wt;var gt=function(t,e){this.type=i.Syntax.VariableDeclaration,this.declarations=t,this.kind=e};e.VariableDeclaration=gt;var yt=function(t,e){this.type=i.Syntax.VariableDeclarator,this.id=t,this.init=e};e.VariableDeclarator=yt;var _t=function(t,e){this.type=i.Syntax.WhileStatement,this.test=t,this.body=e};e.WhileStatement=_t;var bt=function(t,e){this.type=i.Syntax.WithStatement,this.object=t,this.body=e};e.WithStatement=bt;var Et=function(t,e){this.type=i.Syntax.YieldExpression,this.argument=t,this.delegate=e};e.YieldExpression=Et},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(9),n=r(10),s=r(11),o=r(7),a=r(12),u=r(2),h=r(13),c=function(){function t(t,e,r){void 0===e&&(e={}),this.config={range:"boolean"==typeof e.range&&e.range,loc:"boolean"==typeof e.loc&&e.loc,source:null,tokens:"boolean"==typeof e.tokens&&e.tokens,comment:"boolean"==typeof e.comment&&e.comment,tolerant:"boolean"==typeof e.tolerant&&e.tolerant},this.config.loc&&e.source&&null!==e.source&&(this.config.source=String(e.source)),this.delegate=r,this.errorHandler=new n.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new a.Scanner(t,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return t.prototype.throwError=function(t){for(var e=[],r=1;r0&&this.delegate)for(var e=0;e>="===t||">>>="===t||"&="===t||"^="===t||"|="===t},t.prototype.isolateCoverGrammar=function(t){var e=this.context.isBindingElement,r=this.context.isAssignmentTarget,i=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var n=t.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=e,this.context.isAssignmentTarget=r,this.context.firstCoverInitializedNameError=i,n},t.prototype.inheritCoverGrammar=function(t){var e=this.context.isBindingElement,r=this.context.isAssignmentTarget,i=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var n=t.call(this);return this.context.isBindingElement=this.context.isBindingElement&&e,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&r,this.context.firstCoverInitializedNameError=i||this.context.firstCoverInitializedNameError,n},t.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},t.prototype.parsePrimaryExpression=function(){var t,e,r,i=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),t=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(i,new o.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,s.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,e=this.nextToken(),r=this.getTokenRaw(e),t=this.finalize(i,new o.Literal(e.value,r));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,e=this.nextToken(),r=this.getTokenRaw(e),t=this.finalize(i,new o.Literal("true"===e.value,r));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,e=this.nextToken(),r=this.getTokenRaw(e),t=this.finalize(i,new o.Literal(null,r));break;case 10:t=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,t=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":t=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":t=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,e=this.nextRegexToken(),r=this.getTokenRaw(e),t=this.finalize(i,new o.RegexLiteral(e.regex,r,e.pattern,e.flags));break;default:t=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?t=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?t=this.finalize(i,new o.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?t=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),t=this.finalize(i,new o.ThisExpression)):t=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:t=this.throwUnexpectedToken(this.nextToken())}return t},t.prototype.parseSpreadElement=function(){var t=this.createNode();this.expect("...");var e=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(t,new o.SpreadElement(e))},t.prototype.parseArrayInitializer=function(){var t=this.createNode(),e=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),e.push(null);else if(this.match("...")){var r=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),e.push(r)}else e.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(t,new o.ArrayExpression(e))},t.prototype.parsePropertyMethod=function(t){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var e=this.context.strict,r=this.context.allowStrictDirective;this.context.allowStrictDirective=t.simple;var i=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&t.firstRestricted&&this.tolerateUnexpectedToken(t.firstRestricted,t.message),this.context.strict&&t.stricted&&this.tolerateUnexpectedToken(t.stricted,t.message),this.context.strict=e,this.context.allowStrictDirective=r,i},t.prototype.parsePropertyMethodFunction=function(){var t=this.createNode(),e=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters(),i=this.parsePropertyMethod(r);return this.context.allowYield=e,this.finalize(t,new o.FunctionExpression(null,r.params,i,!1))},t.prototype.parsePropertyMethodAsyncFunction=function(){var t=this.createNode(),e=this.context.allowYield,r=this.context.await;this.context.allowYield=!1,this.context.await=!0;var i=this.parseFormalParameters(),n=this.parsePropertyMethod(i);return this.context.allowYield=e,this.context.await=r,this.finalize(t,new o.AsyncFunctionExpression(null,i.params,n))},t.prototype.parseObjectPropertyKey=function(){var t,e=this.createNode(),r=this.nextToken();switch(r.type){case 8:case 6:this.context.strict&&r.octal&&this.tolerateUnexpectedToken(r,s.Messages.StrictOctalLiteral);var i=this.getTokenRaw(r);t=this.finalize(e,new o.Literal(r.value,i));break;case 3:case 1:case 5:case 4:t=this.finalize(e,new o.Identifier(r.value));break;case 7:"["===r.value?(t=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):t=this.throwUnexpectedToken(r);break;default:t=this.throwUnexpectedToken(r)}return t},t.prototype.isPropertyKey=function(t,e){return t.type===u.Syntax.Identifier&&t.name===e||t.type===u.Syntax.Literal&&t.value===e},t.prototype.parseObjectProperty=function(t){var e,r=this.createNode(),i=this.lookahead,n=null,a=null,u=!1,h=!1,c=!1,l=!1;if(3===i.type){var d=i.value;this.nextToken(),u=this.match("["),n=(l=!(this.hasLineTerminator||"async"!==d||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(r,new o.Identifier(d))}else this.match("*")?this.nextToken():(u=this.match("["),n=this.parseObjectPropertyKey());var f=this.qualifiedPropertyName(this.lookahead);if(3===i.type&&!l&&"get"===i.value&&f)e="get",u=this.match("["),n=this.parseObjectPropertyKey(),this.context.allowYield=!1,a=this.parseGetterMethod();else if(3===i.type&&!l&&"set"===i.value&&f)e="set",u=this.match("["),n=this.parseObjectPropertyKey(),a=this.parseSetterMethod();else if(7===i.type&&"*"===i.value&&f)e="init",u=this.match("["),n=this.parseObjectPropertyKey(),a=this.parseGeneratorMethod(),h=!0;else if(n||this.throwUnexpectedToken(this.lookahead),e="init",this.match(":")&&!l)!u&&this.isPropertyKey(n,"__proto__")&&(t.value&&this.tolerateError(s.Messages.DuplicateProtoProperty),t.value=!0),this.nextToken(),a=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))a=l?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),h=!0;else if(3===i.type)if(d=this.finalize(r,new o.Identifier(i.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),c=!0;var p=this.isolateCoverGrammar(this.parseAssignmentExpression);a=this.finalize(r,new o.AssignmentPattern(d,p))}else c=!0,a=d;else this.throwUnexpectedToken(this.nextToken());return this.finalize(r,new o.Property(e,n,u,a,h,c))},t.prototype.parseObjectInitializer=function(){var t=this.createNode();this.expect("{");for(var e=[],r={value:!1};!this.match("}");)e.push(this.parseObjectProperty(r)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(t,new o.ObjectExpression(e))},t.prototype.parseTemplateHead=function(){i.assert(this.lookahead.head,"Template literal must start with a template head");var t=this.createNode(),e=this.nextToken(),r=e.value,n=e.cooked;return this.finalize(t,new o.TemplateElement({raw:r,cooked:n},e.tail))},t.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var t=this.createNode(),e=this.nextToken(),r=e.value,i=e.cooked;return this.finalize(t,new o.TemplateElement({raw:r,cooked:i},e.tail))},t.prototype.parseTemplateLiteral=function(){var t=this.createNode(),e=[],r=[],i=this.parseTemplateHead();for(r.push(i);!i.tail;)e.push(this.parseExpression()),i=this.parseTemplateElement(),r.push(i);return this.finalize(t,new o.TemplateLiteral(r,e))},t.prototype.reinterpretExpressionAsPattern=function(t){switch(t.type){case u.Syntax.Identifier:case u.Syntax.MemberExpression:case u.Syntax.RestElement:case u.Syntax.AssignmentPattern:break;case u.Syntax.SpreadElement:t.type=u.Syntax.RestElement,this.reinterpretExpressionAsPattern(t.argument);break;case u.Syntax.ArrayExpression:t.type=u.Syntax.ArrayPattern;for(var e=0;e")||this.expect("=>"),t={type:"ArrowParameterPlaceHolder",params:[],async:!1};else{var e=this.lookahead,r=[];if(this.match("..."))t=this.parseRestElement(r),this.expect(")"),this.match("=>")||this.expect("=>"),t={type:"ArrowParameterPlaceHolder",params:[t],async:!1};else{var i=!1;if(this.context.isBindingElement=!0,t=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var n=[];for(this.context.isAssignmentTarget=!1,n.push(t);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var s=0;s")||this.expect("=>"),this.context.isBindingElement=!1,s=0;s")&&(t.type===u.Syntax.Identifier&&"yield"===t.name&&(i=!0,t={type:"ArrowParameterPlaceHolder",params:[t],async:!1}),!i)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),t.type===u.Syntax.SequenceExpression)for(s=0;s")){for(var u=0;u0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var n=[t,this.lookahead],s=e,a=this.isolateCoverGrammar(this.parseExponentiationExpression),u=[s,r.value,a],h=[i];!((i=this.binaryPrecedence(this.lookahead))<=0);){for(;u.length>2&&i<=h[h.length-1];){a=u.pop();var c=u.pop();h.pop(),s=u.pop(),n.pop();var l=this.startNode(n[n.length-1]);u.push(this.finalize(l,new o.BinaryExpression(c,s,a)))}u.push(this.nextToken().value),h.push(i),n.push(this.lookahead),u.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var d=u.length-1;e=u[d];for(var f=n.pop();d>1;){var p=n.pop(),m=f&&f.lineStart;l=this.startNode(p,m),c=u[d-1],e=this.finalize(l,new o.BinaryExpression(c,u[d-2],e)),d-=2,f=p}}return e},t.prototype.parseConditionalExpression=function(){var t=this.lookahead,e=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var r=this.context.allowIn;this.context.allowIn=!0;var i=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=r,this.expect(":");var n=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new o.ConditionalExpression(e,i,n)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return e},t.prototype.checkPatternParam=function(t,e){switch(e.type){case u.Syntax.Identifier:this.validateParam(t,e,e.name);break;case u.Syntax.RestElement:this.checkPatternParam(t,e.argument);break;case u.Syntax.AssignmentPattern:this.checkPatternParam(t,e.left);break;case u.Syntax.ArrayPattern:for(var r=0;r")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var n=t.async,a=this.reinterpretAsCoverFormalsList(t);if(a){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var h=this.context.strict,c=this.context.allowStrictDirective;this.context.allowStrictDirective=a.simple;var l=this.context.allowYield,d=this.context.await;this.context.allowYield=!0,this.context.await=n;var f=this.startNode(e);this.expect("=>");var p=void 0;if(this.match("{")){var m=this.context.allowIn;this.context.allowIn=!0,p=this.parseFunctionSourceElements(),this.context.allowIn=m}else p=this.isolateCoverGrammar(this.parseAssignmentExpression);var w=p.type!==u.Syntax.BlockStatement;this.context.strict&&a.firstRestricted&&this.throwUnexpectedToken(a.firstRestricted,a.message),this.context.strict&&a.stricted&&this.tolerateUnexpectedToken(a.stricted,a.message),t=n?this.finalize(f,new o.AsyncArrowFunctionExpression(a.params,p,w)):this.finalize(f,new o.ArrowFunctionExpression(a.params,p,w)),this.context.strict=h,this.context.allowStrictDirective=c,this.context.allowYield=l,this.context.await=d}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(s.Messages.InvalidLHSInAssignment),this.context.strict&&t.type===u.Syntax.Identifier){var g=t;this.scanner.isRestrictedWord(g.name)&&this.tolerateUnexpectedToken(r,s.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(g.name)&&this.tolerateUnexpectedToken(r,s.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(t):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var y=(r=this.nextToken()).value,_=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new o.AssignmentExpression(y,t,_)),this.context.firstCoverInitializedNameError=null}}return t},t.prototype.parseExpression=function(){var t=this.lookahead,e=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var r=[];for(r.push(e);2!==this.lookahead.type&&this.match(",");)this.nextToken(),r.push(this.isolateCoverGrammar(this.parseAssignmentExpression));e=this.finalize(this.startNode(t),new o.SequenceExpression(r))}return e},t.prototype.parseStatementListItem=function(){var t;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,s.Messages.IllegalExportDeclaration),t=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,s.Messages.IllegalImportDeclaration),t=this.parseImportDeclaration();break;case"const":t=this.parseLexicalDeclaration({inFor:!1});break;case"function":t=this.parseFunctionDeclaration();break;case"class":t=this.parseClassDeclaration();break;case"let":t=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:t=this.parseStatement()}else t=this.parseStatement();return t},t.prototype.parseBlock=function(){var t=this.createNode();this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseStatementListItem());return this.expect("}"),this.finalize(t,new o.BlockStatement(e))},t.prototype.parseLexicalBinding=function(t,e){var r=this.createNode(),i=this.parsePattern([],t);this.context.strict&&i.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(i.name)&&this.tolerateError(s.Messages.StrictVarName);var n=null;return"const"===t?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),n=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(s.Messages.DeclarationMissingInitializer,"const")):(!e.inFor&&i.type!==u.Syntax.Identifier||this.match("="))&&(this.expect("="),n=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(r,new o.VariableDeclarator(i,n))},t.prototype.parseBindingList=function(t,e){for(var r=[this.parseLexicalBinding(t,e)];this.match(",");)this.nextToken(),r.push(this.parseLexicalBinding(t,e));return r},t.prototype.isLexicalDeclaration=function(){var t=this.scanner.saveState();this.scanner.scanComments();var e=this.scanner.lex();return this.scanner.restoreState(t),3===e.type||7===e.type&&"["===e.value||7===e.type&&"{"===e.value||4===e.type&&"let"===e.value||4===e.type&&"yield"===e.value},t.prototype.parseLexicalDeclaration=function(t){var e=this.createNode(),r=this.nextToken().value;i.assert("let"===r||"const"===r,"Lexical declaration must be either let or const");var n=this.parseBindingList(r,t);return this.consumeSemicolon(),this.finalize(e,new o.VariableDeclaration(n,r))},t.prototype.parseBindingRestElement=function(t,e){var r=this.createNode();this.expect("...");var i=this.parsePattern(t,e);return this.finalize(r,new o.RestElement(i))},t.prototype.parseArrayPattern=function(t,e){var r=this.createNode();this.expect("[");for(var i=[];!this.match("]");)if(this.match(","))this.nextToken(),i.push(null);else{if(this.match("...")){i.push(this.parseBindingRestElement(t,e));break}i.push(this.parsePatternWithDefault(t,e)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(r,new o.ArrayPattern(i))},t.prototype.parsePropertyPattern=function(t,e){var r,i,n=this.createNode(),s=!1,a=!1;if(3===this.lookahead.type){var u=this.lookahead;r=this.parseVariableIdentifier();var h=this.finalize(n,new o.Identifier(u.value));if(this.match("=")){t.push(u),a=!0,this.nextToken();var c=this.parseAssignmentExpression();i=this.finalize(this.startNode(u),new o.AssignmentPattern(h,c))}else this.match(":")?(this.expect(":"),i=this.parsePatternWithDefault(t,e)):(t.push(u),a=!0,i=h)}else s=this.match("["),r=this.parseObjectPropertyKey(),this.expect(":"),i=this.parsePatternWithDefault(t,e);return this.finalize(n,new o.Property("init",r,s,i,!1,a))},t.prototype.parseObjectPattern=function(t,e){var r=this.createNode(),i=[];for(this.expect("{");!this.match("}");)i.push(this.parsePropertyPattern(t,e)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(r,new o.ObjectPattern(i))},t.prototype.parsePattern=function(t,e){var r;return this.match("[")?r=this.parseArrayPattern(t,e):this.match("{")?r=this.parseObjectPattern(t,e):(!this.matchKeyword("let")||"const"!==e&&"let"!==e||this.tolerateUnexpectedToken(this.lookahead,s.Messages.LetInLexicalBinding),t.push(this.lookahead),r=this.parseVariableIdentifier(e)),r},t.prototype.parsePatternWithDefault=function(t,e){var r=this.lookahead,i=this.parsePattern(t,e);if(this.match("=")){this.nextToken();var n=this.context.allowYield;this.context.allowYield=!0;var s=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=n,i=this.finalize(this.startNode(r),new o.AssignmentPattern(i,s))}return i},t.prototype.parseVariableIdentifier=function(t){var e=this.createNode(),r=this.nextToken();return 4===r.type&&"yield"===r.value?this.context.strict?this.tolerateUnexpectedToken(r,s.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(r):3!==r.type?this.context.strict&&4===r.type&&this.scanner.isStrictModeReservedWord(r.value)?this.tolerateUnexpectedToken(r,s.Messages.StrictReservedWord):(this.context.strict||"let"!==r.value||"var"!==t)&&this.throwUnexpectedToken(r):(this.context.isModule||this.context.await)&&3===r.type&&"await"===r.value&&this.tolerateUnexpectedToken(r),this.finalize(e,new o.Identifier(r.value))},t.prototype.parseVariableDeclaration=function(t){var e=this.createNode(),r=this.parsePattern([],"var");this.context.strict&&r.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(r.name)&&this.tolerateError(s.Messages.StrictVarName);var i=null;return this.match("=")?(this.nextToken(),i=this.isolateCoverGrammar(this.parseAssignmentExpression)):r.type===u.Syntax.Identifier||t.inFor||this.expect("="),this.finalize(e,new o.VariableDeclarator(r,i))},t.prototype.parseVariableDeclarationList=function(t){var e={inFor:t.inFor},r=[];for(r.push(this.parseVariableDeclaration(e));this.match(",");)this.nextToken(),r.push(this.parseVariableDeclaration(e));return r},t.prototype.parseVariableStatement=function(){var t=this.createNode();this.expectKeyword("var");var e=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(t,new o.VariableDeclaration(e,"var"))},t.prototype.parseEmptyStatement=function(){var t=this.createNode();return this.expect(";"),this.finalize(t,new o.EmptyStatement)},t.prototype.parseExpressionStatement=function(){var t=this.createNode(),e=this.parseExpression();return this.consumeSemicolon(),this.finalize(t,new o.ExpressionStatement(e))},t.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(s.Messages.StrictFunction),this.parseStatement()},t.prototype.parseIfStatement=function(){var t,e=this.createNode(),r=null;this.expectKeyword("if"),this.expect("(");var i=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(")"),t=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),r=this.parseIfClause())),this.finalize(e,new o.IfStatement(i,t,r))},t.prototype.parseDoWhileStatement=function(){var t=this.createNode();this.expectKeyword("do");var e=this.context.inIteration;this.context.inIteration=!0;var r=this.parseStatement();this.context.inIteration=e,this.expectKeyword("while"),this.expect("(");var i=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(t,new o.DoWhileStatement(r,i))},t.prototype.parseWhileStatement=function(){var t,e=this.createNode();this.expectKeyword("while"),this.expect("(");var r=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(")");var i=this.context.inIteration;this.context.inIteration=!0,t=this.parseStatement(),this.context.inIteration=i}return this.finalize(e,new o.WhileStatement(r,t))},t.prototype.parseForStatement=function(){var t,e,r,i=null,n=null,a=null,h=!0,c=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){i=this.createNode(),this.nextToken();var l=this.context.allowIn;this.context.allowIn=!1;var d=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=l,1===d.length&&this.matchKeyword("in")){var f=d[0];f.init&&(f.id.type===u.Syntax.ArrayPattern||f.id.type===u.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(s.Messages.ForInOfLoopInitializer,"for-in"),i=this.finalize(i,new o.VariableDeclaration(d,"var")),this.nextToken(),t=i,e=this.parseExpression(),i=null}else 1===d.length&&null===d[0].init&&this.matchContextualKeyword("of")?(i=this.finalize(i,new o.VariableDeclaration(d,"var")),this.nextToken(),t=i,e=this.parseAssignmentExpression(),i=null,h=!1):(i=this.finalize(i,new o.VariableDeclaration(d,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){i=this.createNode();var p=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(l=this.context.allowIn,this.context.allowIn=!1,d=this.parseBindingList(p,{inFor:!0}),this.context.allowIn=l,1===d.length&&null===d[0].init&&this.matchKeyword("in")?(i=this.finalize(i,new o.VariableDeclaration(d,p)),this.nextToken(),t=i,e=this.parseExpression(),i=null):1===d.length&&null===d[0].init&&this.matchContextualKeyword("of")?(i=this.finalize(i,new o.VariableDeclaration(d,p)),this.nextToken(),t=i,e=this.parseAssignmentExpression(),i=null,h=!1):(this.consumeSemicolon(),i=this.finalize(i,new o.VariableDeclaration(d,p)))):(i=this.finalize(i,new o.Identifier(p)),this.nextToken(),t=i,e=this.parseExpression(),i=null)}else{var m=this.lookahead;if(l=this.context.allowIn,this.context.allowIn=!1,i=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=l,this.matchKeyword("in"))this.context.isAssignmentTarget&&i.type!==u.Syntax.AssignmentExpression||this.tolerateError(s.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(i),t=i,e=this.parseExpression(),i=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&i.type!==u.Syntax.AssignmentExpression||this.tolerateError(s.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(i),t=i,e=this.parseAssignmentExpression(),i=null,h=!1;else{if(this.match(",")){for(var w=[i];this.match(",");)this.nextToken(),w.push(this.isolateCoverGrammar(this.parseAssignmentExpression));i=this.finalize(this.startNode(m),new o.SequenceExpression(w))}this.expect(";")}}if(void 0===t&&(this.match(";")||(n=this.parseExpression()),this.expect(";"),this.match(")")||(a=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),r=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(")");var g=this.context.inIteration;this.context.inIteration=!0,r=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=g}return void 0===t?this.finalize(c,new o.ForStatement(i,n,a,r)):h?this.finalize(c,new o.ForInStatement(t,e,r)):this.finalize(c,new o.ForOfStatement(t,e,r))},t.prototype.parseContinueStatement=function(){var t=this.createNode();this.expectKeyword("continue");var e=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var r=this.parseVariableIdentifier();e=r;var i="$"+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)||this.throwError(s.Messages.UnknownLabel,r.name)}return this.consumeSemicolon(),null!==e||this.context.inIteration||this.throwError(s.Messages.IllegalContinue),this.finalize(t,new o.ContinueStatement(e))},t.prototype.parseBreakStatement=function(){var t=this.createNode();this.expectKeyword("break");var e=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var r=this.parseVariableIdentifier(),i="$"+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)||this.throwError(s.Messages.UnknownLabel,r.name),e=r}return this.consumeSemicolon(),null!==e||this.context.inIteration||this.context.inSwitch||this.throwError(s.Messages.IllegalBreak),this.finalize(t,new o.BreakStatement(e))},t.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(s.Messages.IllegalReturn);var t=this.createNode();this.expectKeyword("return");var e=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(t,new o.ReturnStatement(e))},t.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(s.Messages.StrictModeWith);var t,e=this.createNode();this.expectKeyword("with"),this.expect("(");var r=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(")"),t=this.parseStatement()),this.finalize(e,new o.WithStatement(r,t))},t.prototype.parseSwitchCase=function(){var t,e=this.createNode();this.matchKeyword("default")?(this.nextToken(),t=null):(this.expectKeyword("case"),t=this.parseExpression()),this.expect(":");for(var r=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)r.push(this.parseStatementListItem());return this.finalize(e,new o.SwitchCase(t,r))},t.prototype.parseSwitchStatement=function(){var t=this.createNode();this.expectKeyword("switch"),this.expect("(");var e=this.parseExpression();this.expect(")");var r=this.context.inSwitch;this.context.inSwitch=!0;var i=[],n=!1;for(this.expect("{");!this.match("}");){var a=this.parseSwitchCase();null===a.test&&(n&&this.throwError(s.Messages.MultipleDefaultsInSwitch),n=!0),i.push(a)}return this.expect("}"),this.context.inSwitch=r,this.finalize(t,new o.SwitchStatement(e,i))},t.prototype.parseLabelledStatement=function(){var t,e=this.createNode(),r=this.parseExpression();if(r.type===u.Syntax.Identifier&&this.match(":")){this.nextToken();var i=r,n="$"+i.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,n)&&this.throwError(s.Messages.Redeclaration,"Label",i.name),this.context.labelSet[n]=!0;var a=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),a=this.parseClassDeclaration();else if(this.matchKeyword("function")){var h=this.lookahead,c=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(h,s.Messages.StrictFunction):c.generator&&this.tolerateUnexpectedToken(h,s.Messages.GeneratorInLegacyContext),a=c}else a=this.parseStatement();delete this.context.labelSet[n],t=new o.LabeledStatement(i,a)}else this.consumeSemicolon(),t=new o.ExpressionStatement(r);return this.finalize(e,t)},t.prototype.parseThrowStatement=function(){var t=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(s.Messages.NewlineAfterThrow);var e=this.parseExpression();return this.consumeSemicolon(),this.finalize(t,new o.ThrowStatement(e))},t.prototype.parseCatchClause=function(){var t=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var e=[],r=this.parsePattern(e),i={},n=0;n0&&this.tolerateError(s.Messages.BadGetterArity);var i=this.parsePropertyMethod(r);return this.context.allowYield=e,this.finalize(t,new o.FunctionExpression(null,r.params,i,!1))},t.prototype.parseSetterMethod=function(){var t=this.createNode(),e=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters();1!==r.params.length?this.tolerateError(s.Messages.BadSetterArity):r.params[0]instanceof o.RestElement&&this.tolerateError(s.Messages.BadSetterRestParameter);var i=this.parsePropertyMethod(r);return this.context.allowYield=e,this.finalize(t,new o.FunctionExpression(null,r.params,i,!1))},t.prototype.parseGeneratorMethod=function(){var t=this.createNode(),e=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters();this.context.allowYield=!1;var i=this.parsePropertyMethod(r);return this.context.allowYield=e,this.finalize(t,new o.FunctionExpression(null,r.params,i,!0))},t.prototype.isStartOfExpression=function(){var t=!0,e=this.lookahead.value;switch(this.lookahead.type){case 7:t="["===e||"("===e||"{"===e||"+"===e||"-"===e||"!"===e||"~"===e||"++"===e||"--"===e||"/"===e||"/="===e;break;case 4:t="class"===e||"delete"===e||"function"===e||"let"===e||"new"===e||"super"===e||"this"===e||"typeof"===e||"void"===e||"yield"===e}return t},t.prototype.parseYieldExpression=function(){var t=this.createNode();this.expectKeyword("yield");var e=null,r=!1;if(!this.hasLineTerminator){var i=this.context.allowYield;this.context.allowYield=!1,(r=this.match("*"))?(this.nextToken(),e=this.parseAssignmentExpression()):this.isStartOfExpression()&&(e=this.parseAssignmentExpression()),this.context.allowYield=i}return this.finalize(t,new o.YieldExpression(e,r))},t.prototype.parseClassElement=function(t){var e=this.lookahead,r=this.createNode(),i="",n=null,a=null,u=!1,h=!1,c=!1,l=!1;if(this.match("*"))this.nextToken();else if(u=this.match("["),"static"===(n=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(e=this.lookahead,c=!0,u=this.match("["),this.match("*")?this.nextToken():n=this.parseObjectPropertyKey()),3===e.type&&!this.hasLineTerminator&&"async"===e.value){var d=this.lookahead.value;":"!==d&&"("!==d&&"*"!==d&&(l=!0,e=this.lookahead,n=this.parseObjectPropertyKey(),3===e.type&&"constructor"===e.value&&this.tolerateUnexpectedToken(e,s.Messages.ConstructorIsAsync))}var f=this.qualifiedPropertyName(this.lookahead);return 3===e.type?"get"===e.value&&f?(i="get",u=this.match("["),n=this.parseObjectPropertyKey(),this.context.allowYield=!1,a=this.parseGetterMethod()):"set"===e.value&&f&&(i="set",u=this.match("["),n=this.parseObjectPropertyKey(),a=this.parseSetterMethod()):7===e.type&&"*"===e.value&&f&&(i="init",u=this.match("["),n=this.parseObjectPropertyKey(),a=this.parseGeneratorMethod(),h=!0),!i&&n&&this.match("(")&&(i="init",a=l?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),h=!0),i||this.throwUnexpectedToken(this.lookahead),"init"===i&&(i="method"),u||(c&&this.isPropertyKey(n,"prototype")&&this.throwUnexpectedToken(e,s.Messages.StaticPrototype),!c&&this.isPropertyKey(n,"constructor")&&(("method"!==i||!h||a&&a.generator)&&this.throwUnexpectedToken(e,s.Messages.ConstructorSpecialMethod),t.value?this.throwUnexpectedToken(e,s.Messages.DuplicateConstructor):t.value=!0,i="constructor")),this.finalize(r,new o.MethodDefinition(n,u,a,i,c))},t.prototype.parseClassElementList=function(){var t=[],e={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():t.push(this.parseClassElement(e));return this.expect("}"),t},t.prototype.parseClassBody=function(){var t=this.createNode(),e=this.parseClassElementList();return this.finalize(t,new o.ClassBody(e))},t.prototype.parseClassDeclaration=function(t){var e=this.createNode(),r=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var i=t&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),n=null;this.matchKeyword("extends")&&(this.nextToken(),n=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var s=this.parseClassBody();return this.context.strict=r,this.finalize(e,new o.ClassDeclaration(i,n,s))},t.prototype.parseClassExpression=function(){var t=this.createNode(),e=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var r=3===this.lookahead.type?this.parseVariableIdentifier():null,i=null;this.matchKeyword("extends")&&(this.nextToken(),i=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var n=this.parseClassBody();return this.context.strict=e,this.finalize(t,new o.ClassExpression(r,i,n))},t.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var t=this.createNode(),e=this.parseDirectivePrologues();2!==this.lookahead.type;)e.push(this.parseStatementListItem());return this.finalize(t,new o.Module(e))},t.prototype.parseScript=function(){for(var t=this.createNode(),e=this.parseDirectivePrologues();2!==this.lookahead.type;)e.push(this.parseStatementListItem());return this.finalize(t,new o.Script(e))},t.prototype.parseModuleSpecifier=function(){var t=this.createNode();8!==this.lookahead.type&&this.throwError(s.Messages.InvalidModuleSpecifier);var e=this.nextToken(),r=this.getTokenRaw(e);return this.finalize(t,new o.Literal(e.value,r))},t.prototype.parseImportSpecifier=function(){var t,e,r=this.createNode();return 3===this.lookahead.type?(e=t=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),e=this.parseVariableIdentifier())):(e=t=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),e=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(r,new o.ImportSpecifier(e,t))},t.prototype.parseNamedImports=function(){this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),t},t.prototype.parseImportDefaultSpecifier=function(){var t=this.createNode(),e=this.parseIdentifierName();return this.finalize(t,new o.ImportDefaultSpecifier(e))},t.prototype.parseImportNamespaceSpecifier=function(){var t=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(s.Messages.NoAsAfterImportNamespace),this.nextToken();var e=this.parseIdentifierName();return this.finalize(t,new o.ImportNamespaceSpecifier(e))},t.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(s.Messages.IllegalImportDeclaration);var t,e=this.createNode();this.expectKeyword("import");var r=[];if(8===this.lookahead.type)t=this.parseModuleSpecifier();else{if(this.match("{")?r=r.concat(this.parseNamedImports()):this.match("*")?r.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(r.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?r.push(this.parseImportNamespaceSpecifier()):this.match("{")?r=r.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var i=this.lookahead.value?s.Messages.UnexpectedToken:s.Messages.MissingFromClause;this.throwError(i,this.lookahead.value)}this.nextToken(),t=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(e,new o.ImportDeclaration(r,t))},t.prototype.parseExportSpecifier=function(){var t=this.createNode(),e=this.parseIdentifierName(),r=e;return this.matchContextualKeyword("as")&&(this.nextToken(),r=this.parseIdentifierName()),this.finalize(t,new o.ExportSpecifier(e,r))},t.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(s.Messages.IllegalExportDeclaration);var t,e=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var r=this.parseFunctionDeclaration(!0);t=this.finalize(e,new o.ExportDefaultDeclaration(r))}else this.matchKeyword("class")?(r=this.parseClassDeclaration(!0),t=this.finalize(e,new o.ExportDefaultDeclaration(r))):this.matchContextualKeyword("async")?(r=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),t=this.finalize(e,new o.ExportDefaultDeclaration(r))):(this.matchContextualKeyword("from")&&this.throwError(s.Messages.UnexpectedToken,this.lookahead.value),r=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),t=this.finalize(e,new o.ExportDefaultDeclaration(r)));else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var i=this.lookahead.value?s.Messages.UnexpectedToken:s.Messages.MissingFromClause;this.throwError(i,this.lookahead.value)}this.nextToken();var n=this.parseModuleSpecifier();this.consumeSemicolon(),t=this.finalize(e,new o.ExportAllDeclaration(n))}else if(4===this.lookahead.type){switch(r=void 0,this.lookahead.value){case"let":case"const":r=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":r=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}t=this.finalize(e,new o.ExportNamedDeclaration(r,[],null))}else if(this.matchAsyncFunction())r=this.parseFunctionDeclaration(),t=this.finalize(e,new o.ExportNamedDeclaration(r,[],null));else{var a=[],u=null,h=!1;for(this.expect("{");!this.match("}");)h=h||this.matchKeyword("default"),a.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),u=this.parseModuleSpecifier(),this.consumeSemicolon()):h?(i=this.lookahead.value?s.Messages.UnexpectedToken:s.Messages.MissingFromClause,this.throwError(i,this.lookahead.value)):this.consumeSemicolon(),t=this.finalize(e,new o.ExportNamedDeclaration(null,a,u))}return t},t}();e.Parser=c},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assert=function(t,e){if(!t)throw new Error("ASSERT: "+e)}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.errors=[],this.tolerant=!1}return t.prototype.recordError=function(t){this.errors.push(t)},t.prototype.tolerate=function(t){if(!this.tolerant)throw t;this.recordError(t)},t.prototype.constructError=function(t,e){var r=new Error(t);try{throw r}catch(t){Object.create&&Object.defineProperty&&(r=Object.create(t),Object.defineProperty(r,"column",{value:e}))}return r},t.prototype.createError=function(t,e,r,i){var n="Line "+e+": "+i,s=this.constructError(n,r);return s.index=t,s.lineNumber=e,s.description=i,s},t.prototype.throwError=function(t,e,r,i){throw this.createError(t,e,r,i)},t.prototype.tolerateError=function(t,e,r,i){var n=this.createError(t,e,r,i);if(!this.tolerant)throw n;this.recordError(n)},t}();e.ErrorHandler=r},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(9),n=r(4),s=r(11);function o(t){return"0123456789abcdef".indexOf(t.toLowerCase())}function a(t){return"01234567".indexOf(t)}var u=function(){function t(t,e){this.source=t,this.errorHandler=e,this.trackComment=!1,this.isModule=!1,this.length=t.length,this.index=0,this.lineNumber=t.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return t.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},t.prototype.restoreState=function(t){this.index=t.index,this.lineNumber=t.lineNumber,this.lineStart=t.lineStart},t.prototype.eof=function(){return this.index>=this.length},t.prototype.throwUnexpectedToken=function(t){return void 0===t&&(t=s.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,t)},t.prototype.tolerateUnexpectedToken=function(t){void 0===t&&(t=s.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,t)},t.prototype.skipSingleLineComment=function(t){var e,r,i=[];for(this.trackComment&&(i=[],e=this.index-t,r={start:{line:this.lineNumber,column:this.index-this.lineStart-t},end:{}});!this.eof();){var s=this.source.charCodeAt(this.index);if(++this.index,n.Character.isLineTerminator(s)){if(this.trackComment){r.end={line:this.lineNumber,column:this.index-this.lineStart-1};var o={multiLine:!1,slice:[e+t,this.index-1],range:[e,this.index-1],loc:r};i.push(o)}return 13===s&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,i}}return this.trackComment&&(r.end={line:this.lineNumber,column:this.index-this.lineStart},o={multiLine:!1,slice:[e+t,this.index],range:[e,this.index],loc:r},i.push(o)),i},t.prototype.skipMultiLineComment=function(){var t,e,r=[];for(this.trackComment&&(r=[],t=this.index-2,e={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var i=this.source.charCodeAt(this.index);if(n.Character.isLineTerminator(i))13===i&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===i){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){e.end={line:this.lineNumber,column:this.index-this.lineStart};var s={multiLine:!0,slice:[t+2,this.index-2],range:[t,this.index],loc:e};r.push(s)}return r}++this.index}else++this.index}return this.trackComment&&(e.end={line:this.lineNumber,column:this.index-this.lineStart},s={multiLine:!0,slice:[t+2,this.index],range:[t,this.index],loc:e},r.push(s)),this.tolerateUnexpectedToken(),r},t.prototype.scanComments=function(){var t;this.trackComment&&(t=[]);for(var e=0===this.index;!this.eof();){var r=this.source.charCodeAt(this.index);if(n.Character.isWhiteSpace(r))++this.index;else if(n.Character.isLineTerminator(r))++this.index,13===r&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,e=!0;else if(47===r)if(47===(r=this.source.charCodeAt(this.index+1))){this.index+=2;var i=this.skipSingleLineComment(2);this.trackComment&&(t=t.concat(i)),e=!0}else{if(42!==r)break;this.index+=2,i=this.skipMultiLineComment(),this.trackComment&&(t=t.concat(i))}else if(e&&45===r){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,i=this.skipSingleLineComment(3),this.trackComment&&(t=t.concat(i))}else{if(60!==r||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,i=this.skipSingleLineComment(4),this.trackComment&&(t=t.concat(i))}}return t},t.prototype.isFutureReservedWord=function(t){switch(t){case"enum":case"export":case"import":case"super":return!0;default:return!1}},t.prototype.isStrictModeReservedWord=function(t){switch(t){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},t.prototype.isRestrictedWord=function(t){return"eval"===t||"arguments"===t},t.prototype.isKeyword=function(t){switch(t.length){case 2:return"if"===t||"in"===t||"do"===t;case 3:return"var"===t||"for"===t||"new"===t||"try"===t||"let"===t;case 4:return"this"===t||"else"===t||"case"===t||"void"===t||"with"===t||"enum"===t;case 5:return"while"===t||"break"===t||"catch"===t||"throw"===t||"const"===t||"yield"===t||"class"===t||"super"===t;case 6:return"return"===t||"typeof"===t||"delete"===t||"switch"===t||"export"===t||"import"===t;case 7:return"default"===t||"finally"===t||"extends"===t;case 8:return"function"===t||"continue"===t||"debugger"===t;case 10:return"instanceof"===t;default:return!1}},t.prototype.codePointAt=function(t){var e=this.source.charCodeAt(t);if(e>=55296&&e<=56319){var r=this.source.charCodeAt(t+1);r>=56320&&r<=57343&&(e=1024*(e-55296)+r-56320+65536)}return e},t.prototype.scanHexEscape=function(t){for(var e="u"===t?4:2,r=0,i=0;i1114111||"}"!==t)&&this.throwUnexpectedToken(),n.Character.fromCodePoint(e)},t.prototype.getIdentifier=function(){for(var t=this.index++;!this.eof();){var e=this.source.charCodeAt(this.index);if(92===e)return this.index=t,this.getComplexIdentifier();if(e>=55296&&e<57343)return this.index=t,this.getComplexIdentifier();if(!n.Character.isIdentifierPart(e))break;++this.index}return this.source.slice(t,this.index)},t.prototype.getComplexIdentifier=function(){var t,e=this.codePointAt(this.index),r=n.Character.fromCodePoint(e);for(this.index+=r.length,92===e&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,t=this.scanUnicodeCodePointEscape()):null!==(t=this.scanHexEscape("u"))&&"\\"!==t&&n.Character.isIdentifierStart(t.charCodeAt(0))||this.throwUnexpectedToken(),r=t);!this.eof()&&(e=this.codePointAt(this.index),n.Character.isIdentifierPart(e));)r+=t=n.Character.fromCodePoint(e),this.index+=t.length,92===e&&(r=r.substr(0,r.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,t=this.scanUnicodeCodePointEscape()):null!==(t=this.scanHexEscape("u"))&&"\\"!==t&&n.Character.isIdentifierPart(t.charCodeAt(0))||this.throwUnexpectedToken(),r+=t);return r},t.prototype.octalToDecimal=function(t){var e="0"!==t,r=a(t);return!this.eof()&&n.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(e=!0,r=8*r+a(this.source[this.index++]),"0123".indexOf(t)>=0&&!this.eof()&&n.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(r=8*r+a(this.source[this.index++]))),{code:r,octal:e}},t.prototype.scanIdentifier=function(){var t,e=this.index,r=92===this.source.charCodeAt(e)?this.getComplexIdentifier():this.getIdentifier();if(3!=(t=1===r.length?3:this.isKeyword(r)?4:"null"===r?5:"true"===r||"false"===r?1:3)&&e+r.length!==this.index){var i=this.index;this.index=e,this.tolerateUnexpectedToken(s.Messages.InvalidEscapedReservedWord),this.index=i}return{type:t,value:r,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},t.prototype.scanPunctuator=function(){var t=this.index,e=this.source[this.index];switch(e){case"(":case"{":"{"===e&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,e="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(e=this.source.substr(this.index,4))?this.index+=4:"==="===(e=e.substr(0,3))||"!=="===e||">>>"===e||"<<="===e||">>="===e||"**="===e?this.index+=3:"&&"===(e=e.substr(0,2))||"||"===e||"=="===e||"!="===e||"+="===e||"-="===e||"*="===e||"/="===e||"++"===e||"--"===e||"<<"===e||">>"===e||"&="===e||"|="===e||"^="===e||"%="===e||"<="===e||">="===e||"=>"===e||"**"===e?this.index+=2:(e=this.source[this.index],"<>=!+-*%&|^/".indexOf(e)>=0&&++this.index)}return this.index===t&&this.throwUnexpectedToken(),{type:7,value:e,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanHexLiteral=function(t){for(var e="";!this.eof()&&n.Character.isHexDigit(this.source.charCodeAt(this.index));)e+=this.source[this.index++];return 0===e.length&&this.throwUnexpectedToken(),n.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+e,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanBinaryLiteral=function(t){for(var e,r="";!this.eof()&&("0"===(e=this.source[this.index])||"1"===e);)r+=this.source[this.index++];return 0===r.length&&this.throwUnexpectedToken(),this.eof()||(e=this.source.charCodeAt(this.index),(n.Character.isIdentifierStart(e)||n.Character.isDecimalDigit(e))&&this.throwUnexpectedToken()),{type:6,value:parseInt(r,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanOctalLiteral=function(t,e){var r="",i=!1;for(n.Character.isOctalDigit(t.charCodeAt(0))?(i=!0,r="0"+this.source[this.index++]):++this.index;!this.eof()&&n.Character.isOctalDigit(this.source.charCodeAt(this.index));)r+=this.source[this.index++];return i||0!==r.length||this.throwUnexpectedToken(),(n.Character.isIdentifierStart(this.source.charCodeAt(this.index))||n.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(r,8),octal:i,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},t.prototype.isImplicitOctalLiteral=function(){for(var t=this.index+1;t=0&&(r=r.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,(function(t,e,r){var n=parseInt(e||r,16);return n>1114111&&i.throwUnexpectedToken(s.Messages.InvalidRegExp),n<=65535?String.fromCharCode(n):""})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,""));try{RegExp(r)}catch(t){this.throwUnexpectedToken(s.Messages.InvalidRegExp)}try{return new RegExp(t,e)}catch(t){return null}},t.prototype.scanRegExpBody=function(){var t=this.source[this.index];i.assert("/"===t,"Regular expression literal must start with a slash");for(var e=this.source[this.index++],r=!1,o=!1;!this.eof();)if(e+=t=this.source[this.index++],"\\"===t)t=this.source[this.index++],n.Character.isLineTerminator(t.charCodeAt(0))&&this.throwUnexpectedToken(s.Messages.UnterminatedRegExp),e+=t;else if(n.Character.isLineTerminator(t.charCodeAt(0)))this.throwUnexpectedToken(s.Messages.UnterminatedRegExp);else if(r)"]"===t&&(r=!1);else{if("/"===t){o=!0;break}"["===t&&(r=!0)}return o||this.throwUnexpectedToken(s.Messages.UnterminatedRegExp),e.substr(1,e.length-2)},t.prototype.scanRegExpFlags=function(){for(var t="";!this.eof();){var e=this.source[this.index];if(!n.Character.isIdentifierPart(e.charCodeAt(0)))break;if(++this.index,"\\"!==e||this.eof())t+=e;else if("u"===(e=this.source[this.index])){++this.index;var r=this.index,i=this.scanHexEscape("u");if(null!==i)for(t+=i;r=55296&&t<57343&&n.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},t}();e.Scanner=u},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenName={},e.TokenName[1]="Boolean",e.TokenName[2]="",e.TokenName[3]="Identifier",e.TokenName[4]="Keyword",e.TokenName[5]="Null",e.TokenName[6]="Numeric",e.TokenName[7]="Punctuator",e.TokenName[8]="String",e.TokenName[9]="RegularExpression",e.TokenName[10]="Template"},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(10),n=r(12),s=r(13),o=function(){function t(){this.values=[],this.curly=this.paren=-1}return t.prototype.beforeFunctionExpression=function(t){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(t)>=0},t.prototype.isRegexStart=function(){var t=this.values[this.values.length-1],e=null!==t;switch(t){case"this":case"]":e=!1;break;case")":var r=this.values[this.paren-1];e="if"===r||"while"===r||"for"===r||"with"===r;break;case"}":if(e=!1,"function"===this.values[this.curly-3])e=!!(i=this.values[this.curly-4])&&!this.beforeFunctionExpression(i);else if("function"===this.values[this.curly-4]){var i;e=!(i=this.values[this.curly-5])||!this.beforeFunctionExpression(i)}}return e},t.prototype.push=function(t){7===t.type||4===t.type?("{"===t.value?this.curly=this.values.length:"("===t.value&&(this.paren=this.values.length),this.values.push(t.value)):this.values.push(null)},t}(),a=function(){function t(t,e){this.errorHandler=new i.ErrorHandler,this.errorHandler.tolerant=!!e&&"boolean"==typeof e.tolerant&&e.tolerant,this.scanner=new n.Scanner(t,this.errorHandler),this.scanner.trackComment=!!e&&"boolean"==typeof e.comment&&e.comment,this.trackRange=!!e&&"boolean"==typeof e.range&&e.range,this.trackLoc=!!e&&"boolean"==typeof e.loc&&e.loc,this.buffer=[],this.reader=new o}return t.prototype.errors=function(){return this.errorHandler.errors},t.prototype.getNextToken=function(){if(0===this.buffer.length){var t=this.scanner.scanComments();if(this.scanner.trackComment)for(var e=0;ei&&" "!==t[l+1],l=s);else if(!w(o))return 5;d=d&&g(o)}h=h||c&&s-l-1>i&&" "!==t[l+1]}return u||h?r>9&&y(t)?5:h?4:3:d&&!n(t)?1:2}function b(t,e,r,i){t.dump=function(){if(0===e.length)return"''";if(!t.noCompatMode&&-1!==c.indexOf(e))return"'"+e+"'";var s=t.indent*Math.max(1,r),o=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=i||t.flowLevel>-1&&r>=t.flowLevel;switch(_(e,a,t.indent,o,(function(e){return function(t,e){var r,i;for(r=0,i=t.implicitTypes.length;r"+E(e,t.indent)+v(f(function(t,e){var r,i,n=/(\n+)([^\n]*)/g,s=(a=t.indexOf("\n"),a=-1!==a?a:t.length,n.lastIndex=a,A(t.slice(0,a),e)),o="\n"===t[0]||" "===t[0];var a;for(;i=n.exec(t);){var u=i[1],h=i[2];r=" "===h[0],s+=u+(o||r||""===h?"":"\n")+A(h,e),o=r}return s}(e,o),s));case 5:return'"'+function(t){for(var e,r,i,n="",s=0;s=55296&&e<=56319&&(r=t.charCodeAt(s+1))>=56320&&r<=57343?(n+=l(1024*(e-55296)+r-56320+65536),s++):(i=h[e],n+=!i&&w(e)?t[s]:i||l(e));return n}(e)+'"';default:throw new n("impossible error: invalid scalar style")}}()}function E(t,e){var r=y(t)?String(e):"",i="\n"===t[t.length-1];return r+(i&&("\n"===t[t.length-2]||"\n"===t)?"+":i?"":"-")+"\n"}function v(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function A(t,e){if(""===t||" "===t[0])return t;for(var r,i,n=/ [^ ]/g,s=0,o=0,a=0,u="";r=n.exec(t);)(a=r.index)-s>e&&(i=o>s?o:a,u+="\n"+t.slice(s,i),s=i+1),o=a;return u+="\n",t.length-s>e&&o>s?u+=t.slice(s,o)+"\n"+t.slice(o+1):u+=t.slice(s),u.slice(1)}function T(t,e,r){var i,s,o,h,c,l;for(o=0,h=(s=r?t.explicitTypes:t.implicitTypes).length;o tag resolver accepts not "'+l+'" style');i=c.represent[l](e,l)}t.dump=i}return!0}return!1}function x(t,e,r,i,s,o){t.tag=null,t.dump=r,T(t,r,!1)||T(t,r,!0);var u=a.call(t.dump);i&&(i=t.flowLevel<0||t.flowLevel>e);var h,c,l="[object Object]"===u||"[object Array]"===u;if(l&&(c=-1!==(h=t.duplicates.indexOf(r))),(null!==t.tag&&"?"!==t.tag||c||2!==t.indent&&e>0)&&(s=!1),c&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(l&&c&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),"[object Object]"===u)i&&0!==Object.keys(t.dump).length?(!function(t,e,r,i){var s,o,a,u,h,c,l="",d=t.tag,f=Object.keys(r);if(!0===t.sortKeys)f.sort();else if("function"==typeof t.sortKeys)f.sort(t.sortKeys);else if(t.sortKeys)throw new n("sortKeys must be a boolean or a function");for(s=0,o=f.length;s1024)&&(t.dump&&10===t.dump.charCodeAt(0)?c+="?":c+="? "),c+=t.dump,h&&(c+=p(t,e)),x(t,e+1,u,!0,h)&&(t.dump&&10===t.dump.charCodeAt(0)?c+=":":c+=": ",l+=c+=t.dump));t.tag=d,t.dump=l||"{}"}(t,e,t.dump,s),c&&(t.dump="&ref_"+h+t.dump)):(!function(t,e,r){var i,n,s,o,a,u="",h=t.tag,c=Object.keys(r);for(i=0,n=c.length;i1024&&(a+="? "),a+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),x(t,e,o,!1,!1)&&(u+=a+=t.dump));t.tag=h,t.dump="{"+u+"}"}(t,e,t.dump),c&&(t.dump="&ref_"+h+" "+t.dump));else if("[object Array]"===u){var d=t.noArrayIndent&&e>0?e-1:e;i&&0!==t.dump.length?(!function(t,e,r,i){var n,s,o="",a=t.tag;for(n=0,s=r.length;n "+t.dump)}return!0}function S(t,e){var r,i,n=[],s=[];for(function t(e,r,i){var n,s,o;if(null!==e&&"object"==typeof e)if(-1!==(s=r.indexOf(e)))-1===i.indexOf(s)&&i.push(s);else if(r.push(e),Array.isArray(e))for(s=0,o=e.length;so.computeSchemaDifferences(t,r).length>0?e+1:e,0)}(e,r))return Promise.reject(new Error(s.errors.json2csv.notSameSchema));return Promise.resolve(e)}(e);{let t=o.unique(o.flatten(e));return Promise.resolve(t)}}function c(e){return t.sortHeader?e.sort():e}function l(e){return t.trimHeaderFields&&(e.headerFields=e.headerFields.map(t=>t.split(".").map(t=>t.trim()).join("."))),e}function d(e){return t.prependHeader&&(e.headerFields=e.headerFields.map((function(t){return y(t)}))),e}function f(e){return e.header=e.headerFields.join(t.delimiter.field),e}function p(e){return t.keys&&!t.unwindArrays?Promise.resolve(t.keys).then(c):function(t){return Promise.resolve(n.deepKeysFromList(t,u))}(e).then(h).then(c)}function m(e){if(t.unwindArrays){const r=e.records.length;return e.headerFields.forEach(t=>{e.records=o.unwind(e.records,t)}),p(e.records).then(i=>(e.headerFields=i,r!==e.records.length?m(e):(t.keys&&(e.headerFields=t.keys),e)))}return e}function w(e){return e.records=e.records.map(r=>{let n=function(e,r){let n=[];return r.forEach(r=>{let s=i.evaluatePath(e,r);!o.isUndefined(t.emptyFieldValue)&&o.isEmptyField(s)?s=t.emptyFieldValue:t.expandArrayObjects&&Array.isArray(s)&&(s=function(e){let r=o.removeEmptyFields(e);if(!e.length||!r.length)return t.emptyFieldValue||"";if(1===r.length)return r[0];return e}(s)),n.push(s)}),n}(r,e.headerFields).map(e=>e=y(e=function(e){return Array.isArray(e)||o.isObject(e)&&!o.isDate(e)?JSON.stringify(e):o.isUndefined(e)?"undefined":o.isNull(e)?"null":t.useLocaleFormat?e.toLocaleString():e.toString()}(e=g(e))));return n.join(t.delimiter.field)}).join(t.delimiter.eol),e}function g(e){return t.trimFieldValues?Array.isArray(e)?e.map(g):o.isString(e)?e.trim():e:e}function y(i){const n=t.delimiter.wrap;return i.includes(t.delimiter.wrap)&&(i=i.replace(e,n+n)),(i.includes(t.delimiter.field)||i.includes(t.delimiter.wrap)||i.match(r))&&(i=n+i+n),i}function _(e){let r=e.header,i=e.records,n=(t.excelBOM?s.values.excelBOM:"")+(t.prependHeader?r+t.delimiter.eol:"")+i;return e.callback(null,n)}return{convert:function(t,e){o.isObject(t)&&!t.length&&(t=[t]),p(t).then(r=>({headerFields:r,callback:e,records:t})).then(m).then(w).then(d).then(l).then(f).then(_).catch(e)},validationFn:o.isObject,validationMessages:s.errors.json2csv}}}},function(t,e,r){"use strict";const i=r(186);function n(t,e){return e=a(e),i.isObject(t)?function t(e,r,n){let a=Object.keys(r).map(a=>{let u=o(e,a);return h=r[a],i.isObject(h)&&!i.isNull(h)&&!Array.isArray(h)&&Object.keys(h).length?t(u,r[a],n):n.expandArrayObjects&&function(t){return Array.isArray(t)}(r[a])?function(t,e,r){let n=s(t);return t.length?t.length&&0===i.flatten(n).length?[e]:(n=n.map(t=>{return r=t,Array.isArray(r)&&!r.length?[e]:t.map(t=>o(e,t));var r}),i.unique(i.flatten(n))):r.ignoreEmptyArraysWhenExpanding?[]:[e]}(r[a],a,n):u;var h});return i.flatten(a)}("",t,e):[]}function s(t,e){return e=a(e),t.map(t=>i.isObject(t)?n(t,e):[])}function o(t,e){return t?t+"."+e:e}function a(t){return{expandArrayObjects:!1,ignoreEmptyArraysWhenExpanding:!1,...t||{}}}t.exports={deepKeys:n,deepKeysFromList:s}},function(t,e,r){"use strict";t.exports={isString:function(t){return"string"==typeof t},isNull:function(t){return null===t},isError:function(t){return"[object Error]"===Object.prototype.toString.call(t)},isDate:function(t){return t instanceof Date},isFunction:function(t){return"function"==typeof t},isUndefined:function(t){return void 0===t},isObject:function(t){return"object"==typeof t},unique:function(t){return[...new Set(t)]},flatten:function(t){return[].concat(...t)}}},function(t,e,r){"use strict";let i=r(47),n=r(48),s=r(49);t.exports={Csv2Json:function(t){const e=new RegExp(t.delimiter.wrap+t.delimiter.wrap,"g"),r=new RegExp("^"+n.values.excelBOM);function o(e){return e=d(e),t.trimHeaderFields?e.split(".").map(t=>t.trim()).join("."):e}function a(e){let r={lines:e},i=r.lines[0];return r.headerFields=i.map((t,e)=>({value:o(t),index:e})),t.keys&&(r.headerFields=r.headerFields.filter(e=>t.keys.includes(e.value))),r}function u(e){return Promise.resolve(function(e){let r,i,n,o,a=[],u=[],h=e.length-1,c=t.delimiter.eol.length,l={insideWrapDelimiter:!1,parsingValue:!0,justParsedDoubleQuote:!1,startIndex:0},d=0;for(;d{s=s.map(r=>r=l(r=function(r){return r.replace(e,t.delimiter.wrap)}(r=d(r))));let o=function(t,e){return t.reduce((t,r)=>{let n=c(e,r);return i.setPath(t,r.value,n)},{})}(r.headerFields,s);return n.concat(o)},[]),r}return{convert:function(e,i){var n;(n=e,t.excelBOM?Promise.resolve(n.replace(r,"")):Promise.resolve(n)).then(u).then(a).then(h).then(f).then(t=>i(null,t.json)).catch(i)},validationFn:s.isString,validationMessages:n.errors.csv2json}}}},function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});const i=r(86);e.Bundle=class{constructor(t){this.sections={},this.responses={};const e=o(i.decode(t));if(6!==e.length)throw new Error("Wrong toplevel structure");const[r,c,l,d,f,p]=e;if("🌐📦"!==h(r))throw new Error("Wrong magic");this.version=h(c).replace(/\0+$/,""),this.primaryURL=a(l);const m=o(i.decode(u(d))),w=o(f);if(m.length!==2*w.length)throw new Error("Number of elements in section-lengths and in sections don't match");for(let t=0;t1?"s":""}class f extends i.Transform{constructor(t){const e=Object.assign({max_depth:10},t,{readableObjectMode:!1,writableObjectMode:!1}),r=e.max_depth;delete e.max_depth,super(e),this.depth=1,this.max_depth=r,this.all=new u,this.parser=new s(e),this.parser.on("value",this._on_value.bind(this)),this.parser.on("start",this._on_start.bind(this)),this.parser.on("start-string",this._on_start_string.bind(this)),this.parser.on("stop",this._on_stop.bind(this)),this.parser.on("more-bytes",this._on_more.bind(this)),this.parser.on("error",this._on_error.bind(this)),this.parser.on("data",this._on_data.bind(this)),this.parser.bs.on("read",this._on_read.bind(this))}_transform(t,e,r){this.parser.write(t,e,r)}_flush(t){return this.parser._flush(t)}static comment(t,e,r){if(null==t)throw new Error("input required");let i="string"==typeof t?"hex":void 0,n=10;switch(typeof e){case"function":r=e;break;case"string":i=e;break;case"number":n=e;break;case"object":const t=e.encoding,s=e.max_depth;i=null!=t?t:i,n=null!=s?s:n;break;case"undefined":break;default:throw new Error("Unknown option type")}const s=new u,o=new f({max_depth:n});let a=null;return"function"==typeof r?(o.on("end",()=>{r(null,s.toString("utf8"))}),o.on("error",r)):a=new Promise((t,e)=>(o.on("end",()=>{t(s.toString("utf8"))}),o.on("error",e))),o.pipe(s),o.end(t,i),a}_on_error(t){return this.push("ERROR: ")&&this.push(t.toString())&&this.push("\n")}_on_read(t){this.all.write(t);const e=t.toString("hex");this.push(new Array(this.depth+1).join(" ")),this.push(e);let r=2*(this.max_depth-this.depth);return r-=e.length,r<1&&(r=1),this.push(new Array(r+1).join(" ")),this.push("-- ")}_on_more(t,e,r,i){this.depth++;let n="";switch(t){case h.POS_INT:n="Positive number,";break;case h.NEG_INT:n="Negative number,";break;case h.ARRAY:n="Array, length";break;case h.MAP:n="Map, count";break;case h.BYTE_STRING:n="Bytes, length";break;case h.UTF8_STRING:n="String, length";break;case h.SIMPLE_FLOAT:n=1===e?"Simple value,":"Float,"}return this.push(n+" next "+e+" byte"+d(e)+"\n")}_on_start_string(t,e,r,i){this.depth++;let n="";switch(t){case h.BYTE_STRING:n="Bytes, length: "+e;break;case h.UTF8_STRING:n="String, length: "+e.toString()}return this.push(n+"\n")}_on_start(t,e,r,i){if(this.depth++,e!==l.BREAK)switch(r){case h.ARRAY:this.push(`[${i}], `);break;case h.MAP:i%2?this.push(`{Val:${Math.floor(i/2)}}, `):this.push(`{Key:${Math.floor(i/2)}}, `)}switch(t){case h.TAG:this.push("Tag #"+e);break;case h.ARRAY:e===l.STREAM?this.push("Array (streaming)"):this.push(`Array, ${e} item${d(e)}`);break;case h.MAP:e===l.STREAM?this.push("Map (streaming)"):this.push(`Map, ${e} pair${d(e)}`);break;case h.BYTE_STRING:this.push("Bytes (streaming)");break;case h.UTF8_STRING:this.push("String (streaming)")}return this.push("\n")}_on_stop(t){return this.depth--}_on_value(t,r,i,s){if(t!==l.BREAK)switch(r){case h.ARRAY:this.push(`[${i}], `);break;case h.MAP:i%2?this.push(`{Val:${Math.floor(i/2)}}, `):this.push(`{Key:${Math.floor(i/2)}}, `)}switch(t===l.BREAK?this.push("BREAK\n"):t===l.NULL?this.push("null\n"):t===l.UNDEFINED?this.push("undefined\n"):"string"==typeof t?(this.depth--,t.length>0&&(this.push(JSON.stringify(t)),this.push("\n"))):e.isBuffer(t)?(this.depth--,t.length>0&&(this.push(t.toString("hex")),this.push("\n"))):t instanceof a?(this.push(t.toString()),this.push("\n")):(this.push(n.inspect(t)),this.push("\n")),s){case c.ONE:case c.TWO:case c.FOUR:case c.EIGHT:this.depth--}}_on_data(){return this.push("0x"),this.push(this.all.read().toString("hex")),this.push("\n")}}t.exports=f}).call(this,r(3).Buffer)},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},function(t,e,r){"use strict";const i=r(4),n=r(27),s=i.Transform;t.exports=class extends s{constructor(t){super(t),this._writableState.objectMode=!1,this._readableState.objectMode=!0,this.bs=new n,this.__restart()}_transform(t,e,r){for(this.bs.write(t);this.bs.length>=this.__needed;){let t;const e=null===this.__needed?void 0:this.bs.read(this.__needed);try{t=this.__parser.next(e)}catch(t){return r(t)}this.__needed&&(this.__fresh=!1),t.done?(this.push(t.value),this.__restart()):this.__needed=t.value||0}return r()}*_parse(){throw new Error("Must be implemented in subclass")}__restart(){this.__needed=null,this.__parser=this._parse(),this.__fresh=!0}_flush(t){t(this.__fresh?null:new Error("unexpected end of input"))}}},function(t,e,r){(function(t,i){var n;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(s){e&&e.nodeType,t&&t.nodeType;var o="object"==typeof i&&i;o.global!==o&&o.window!==o&&o.self;var a,u=2147483647,h=/^xn--/,c=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,p=String.fromCharCode;function m(t){throw new RangeError(d[t])}function w(t,e){for(var r=t.length,i=[];r--;)i[r]=e(t[r]);return i}function g(t,e){var r=t.split("@"),i="";return r.length>1&&(i=r[0]+"@",t=r[1]),i+w((t=t.replace(l,".")).split("."),e).join(".")}function y(t){for(var e,r,i=[],n=0,s=t.length;n=55296&&e<=56319&&n65535&&(e+=p((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=p(t)})).join("")}function b(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function E(t,e,r){var i=0;for(t=r?f(t/700):t>>1,t+=f(t/e);t>455;i+=36)t=f(t/35);return f(i+36*t/(t+38))}function v(t){var e,r,i,n,s,o,a,h,c,l,d,p=[],w=t.length,g=0,y=128,b=72;for((r=t.lastIndexOf("-"))<0&&(r=0),i=0;i=128&&m("not-basic"),p.push(t.charCodeAt(i));for(n=r>0?r+1:0;n=w&&m("invalid-input"),((h=(d=t.charCodeAt(n++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:36)>=36||h>f((u-g)/o))&&m("overflow"),g+=h*o,!(h<(c=a<=b?1:a>=b+26?26:a-b));a+=36)o>f(u/(l=36-c))&&m("overflow"),o*=l;b=E(g-s,e=p.length+1,0==s),f(g/e)>u-y&&m("overflow"),y+=f(g/e),g%=e,p.splice(g++,0,y)}return _(p)}function A(t){var e,r,i,n,s,o,a,h,c,l,d,w,g,_,v,A=[];for(w=(t=y(t)).length,e=128,r=0,s=72,o=0;o=e&&df((u-r)/(g=i+1))&&m("overflow"),r+=(a-e)*g,e=a,o=0;ou&&m("overflow"),d==e){for(h=r,c=36;!(h<(l=c<=s?1:c>=s+26?26:c-s));c+=36)v=h-l,_=36-l,A.push(p(b(l+v%_,0))),h=f(v/_);A.push(p(b(h,0))),s=E(r,g,i==n),r=0,++i}++r,++e}return A.join("")}a={version:"1.4.1",ucs2:{decode:y,encode:_},decode:v,encode:A,toASCII:function(t){return g(t,(function(t){return c.test(t)?"xn--"+A(t):t}))},toUnicode:function(t){return g(t,(function(t){return h.test(t)?v(t.slice(4).toLowerCase()):t}))}},void 0===(n=function(){return a}.call(e,r,e,t))||(t.exports=n)}()}).call(this,r(194)(t),r(6))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,e,r){"use strict";e.decode=e.parse=r(197),e.encode=e.stringify=r(198)},function(t,e,r){"use strict";function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,r,s){e=e||"&",r=r||"=";var o={};if("string"!=typeof t||0===t.length)return o;var a=/\+/g;t=t.split(e);var u=1e3;s&&"number"==typeof s.maxKeys&&(u=s.maxKeys);var h=t.length;u>0&&h>u&&(h=u);for(var c=0;c=0?(l=m.substr(0,w),d=m.substr(w+1)):(l=m,d=""),f=decodeURIComponent(l),p=decodeURIComponent(d),i(o,f)?n(o[f])?o[f].push(p):o[f]=[o[f],p]:o[f]=p}return o};var n=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,r){"use strict";var i=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,r,a){return e=e||"&",r=r||"=",null===t&&(t=void 0),"object"==typeof t?s(o(t),(function(o){var a=encodeURIComponent(i(o))+r;return n(t[o])?s(t[o],(function(t){return a+encodeURIComponent(i(t))})).join(e):a+encodeURIComponent(i(t[o]))})).join(e):a?encodeURIComponent(i(a))+r+encodeURIComponent(i(t)):""};var n=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function s(t,e){if(t.map)return t.map(e);for(var r=[],i=0;ithis.stream_errors?(e&&this._on_error(e),t()):t(e))}static diagnose(t,e,r){if(null==t)throw new Error("input required");let i={},n="hex";switch(typeof e){case"function":r=e,n=o.guessEncoding(t);break;case"object":i=o.extend({},e),n=null!=i.encoding?i.encoding:o.guessEncoding(t),delete i.encoding;break;default:n=null!=e?e:"hex"}const s=new h,a=new d(i);let u=null;return"function"==typeof r?(a.on("end",()=>r(null,s.toString("utf8"))),a.on("error",r)):u=new Promise((t,e)=>(a.on("end",()=>t(s.toString("utf8"))),a.on("error",e))),a.pipe(s),a.end(t,n),u}_on_error(t){return this.stream_errors?this.push(t.toString()):this.emit("error",t)}_on_more(t,e,r,i){if(t===c.SIMPLE_FLOAT)return this.float_bytes={2:1,4:2,8:3}[e]}_fore(t,e){switch(t){case c.BYTE_STRING:case c.UTF8_STRING:case c.ARRAY:if(e>0)return this.push(", ");break;case c.MAP:if(e>0)return e%2?this.push(": "):this.push(", ")}}_on_value(t,r,i){if(t!==l.BREAK)return this._fore(r,i),this.push((()=>{switch(!1){case t!==l.NULL:return"null";case t!==l.UNDEFINED:return"undefined";case"string"!=typeof t:return JSON.stringify(t);case!(this.float_bytes>0):const r=this.float_bytes;return this.float_bytes=-1,n.inspect(t)+"_"+r;case!e.isBuffer(t):return"h'"+t.toString("hex")+"'";case!(t instanceof u):return t.toString();default:return n.inspect(t)}})())}_on_start(t,e,r,i){switch(this._fore(r,i),t){case c.TAG:this.push(e+"(");break;case c.ARRAY:this.push("[");break;case c.MAP:this.push("{");break;case c.BYTE_STRING:case c.UTF8_STRING:this.push("(")}if(e===l.STREAM)return this.push("_ ")}_on_stop(t){switch(t){case c.TAG:return this.push(")");case c.ARRAY:return this.push("]");case c.MAP:return this.push("}");case c.BYTE_STRING:case c.UTF8_STRING:return this.push(")")}}_on_data(){return this.push(this.separator)}}t.exports=d}).call(this,r(3).Buffer)},function(t,e,r){"use strict";(function(e){const i=r(87),n=r(35),s=r(12).MT;class o extends Map{constructor(t){super(t)}static _encode(t){return i.encodeCanonical(t).toString("base64")}static _decode(t){return n.decodeFirstSync(t,"base64")}get(t){return super.get(o._encode(t))}set(t,e){return super.set(o._encode(t),e)}delete(t){return super.delete(o._encode(t))}has(t){return super.has(o._encode(t))}*keys(){for(const t of super.keys())yield o._decode(t)}*entries(){for(const t of super.entries())yield[o._decode(t[0]),t[1]]}[Symbol.iterator](){return this.entries()}forEach(t,e){if("function"!=typeof t)throw new TypeError("Must be function");for(const e of super.entries())t.call(this,e[1],o._decode(e[0]),this)}encodeCBOR(t){if(!t._pushInt(this.size,s.MAP))return!1;if(t.canonical){const r=Array.from(super.entries()).map(t=>[e.from(t[0],"base64"),t[1]]);r.sort((t,e)=>t[0].compare(e[0]));for(const e of r)if(!t.push(e[0])||!t.pushAny(e[1]))return!1}else for(const r of super.entries())if(!t.push(e.from(r[0],"base64"))||!t.pushAny(r[1]))return!1;return!0}}t.exports=o}).call(this,r(3).Buffer)},function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});const i=r(86),n=r(51);e.BundleBuilder=class{constructor(t){this.primaryURL=t,this.sectionLengths=[],this.sections=[],this.responses=[],this.index=new Map,this.currentResponsesOffset=0,o(t)}createBundle(){if(!this.index.has(this.primaryURL))throw new Error(`Exchange for primary URL (${this.primaryURL}) does not exist`);this.addSection("index",this.fixupIndex()),this.addSection("responses",this.responses);const t=this.sectionLengths.reduce((t,e)=>t+e.length,16384),e=a(this.createTopLevel(),t),r=new DataView(e.buffer,e.byteOffset+e.length-8);return r.setUint32(0,Math.floor(e.length/4294967296)),r.setUint32(4,4294967295&e.length),e}addExchange(t,e,r,i){o(t),"string"==typeof i&&(i=h(i)),this.addIndexEntry(t,this.addResponse(new s(e,r),i))}setManifestURL(t){o(t),this.addSection("manifest",t)}addSection(t,e){if(this.sectionLengths.some(e=>e.name===t))throw new Error("Duplicated section: "+t);let r;r="responses"===t?this.currentResponsesOffset+u(this.responses.length):u(e),this.sectionLengths.push({name:t,length:r}),this.sections.push(e)}addResponse(t,e){if(e.length>0&&!t.has("content-type"))throw new Error("Non-empty exchange must have Content-Type header");const r=[new Uint8Array(a(t)),e];return this.responses.push(r),r.reduce((t,e)=>t+u(e.length)+e.length,1)}addIndexEntry(t,e){this.index.set(t,[new Uint8Array(0),this.currentResponsesOffset,e]),this.currentResponsesOffset+=e}fixupIndex(){const t=u(this.responses.length);for(const e of this.index.values())e[1]+=t;return this.index}createTopLevel(){const t=[];for(const e of this.sectionLengths)t.push(e.name,e.length);return[h("🌐📦"),h("b1\0\0"),this.primaryURL,new Uint8Array(a(t)),this.sections,new Uint8Array(8)]}};class s extends Map{constructor(t,e){if(super(),t<100||t>999)throw new Error("Invalid status code");this.set(":status",t.toString());for(const t of Object.keys(e))this.set(t.toLowerCase(),e[t])}encodeCBOR(t){const e=new Map;for(const[t,r]of this.entries())e.set(h(t),h(r));return t.pushAny(e)}}function o(t){const e=new n.URL(t);if("http:"!==e.protocol&&"https:"!==e.protocol)throw new Error("Exchange URL's protocol must be http(s): "+t);if(""!==e.username||""!==e.password)throw new Error("Exchange URL must not have credentials: "+t);if(""!==e.hash)throw new Error("Exchange URL must not have a hash: "+t)}function a(t,e=1048576){const r=i.encodeOne(t,{canonical:!0,highWaterMark:e});if(r.length>=e)throw new Error("CBOR encode error: insufficient buffer size");return r}function u(t,e=1048576){const r=i.encodeOne(t,{highWaterMark:e}).byteLength;if(r>=e)throw new Error("CBOR encode error: insufficient buffer size");return r}function h(e){return t.from(e,"utf-8")}}).call(this,r(3).Buffer)},,function(t,e,r){"use strict";r.r(e),r.d(e,"SWReplay",(function(){return wt}));var i=r(4),n=r(106),s=r.n(n),o=r(0),a=r(36),u=r(5),h=r(60),c=r.n(h);function l(t={}){let e,r;const i=t&&t.response&&t.response.extraOpts;if(i&&(e=i.adaptive_max_resolution||i.maxRes,r=i.adaptive_max_bandwidth||i.maxBand,e&&r))return{maxRes:e,maxBand:r};let n;return n=t&&t.response&&!t.response.isLive?{maxRes:921600,maxBand:2e6}:{maxRes:412800,maxBand:1e6},t&&t.save&&(t.save.maxRes=n.maxRes,t.save.maxBand=n.maxBand),n}function d(t,e){const r=/#EXT-X-STREAM-INF:(?:.*[,])?BANDWIDTH=([\d]+)/,i=/RESOLUTION=([\d]+)x([\d]+)/,{maxRes:n,maxBand:s}=l(e);let o=[],a=0,u=null,h=0,c=0,d=t.trimEnd().split("\n");for(const t of d){const e=t.match(r);if(!e){a+=1;continue}o.push(a);const l=Number(e[1]),d=t.match(i),f=d?Number(d[1])*Number(d[2]):0;f&&n?f<=n&&f>c&&(c=f,h=l,u=a):l<=s&&l>h&&(c=f,h=l,u=a),a+=1}o.reverse();for(const t of o)t!==u&&d.splice(t,2);return d.join("\n")}const f={ignoreAttributes:!1,ignoreNameSpace:!1,format:!1,supressEmptyNode:!0};function p(t,e,r){try{return function(t,e,r){const i=f,n=c.a.parse(t,i),{maxRes:s,maxBand:o}=l(e);let a=null,u=0,h=0,d=null;d=Array.isArray(n.MPD.Period.AdaptationSet)?n.MPD.Period.AdaptationSet:[n.MPD.Period.AdaptationSet];for(const t of d){a=null,u=0,h=0;let e=null;e=Array.isArray(t.Representation)?t.Representation:[t.Representation];for(const t of e){const e=Number(t["@_width"]||"0")*Number(t["@_height"]||"0"),r=Number(t["@_bandwidth"]||"0");e&&s?e<=s&&e>u&&(u=e,h=r,a=t):r<=o&&r>h&&(u=e,h=r,a=t)}a&&Array.isArray(r)&&r.push(a["@_id"]),a&&(t.Representation=[a])}return"\n"+new c.a.j2xParser(i).parse(n).trim()}(t,e,r)}catch(e){return console.log(e),t}}var m=r(110),w=r.n(m);const g=[{contains:["youtube.com","youtube-nocookie.com"],rxRules:[[/ytplayer.load\(\);/,y('ytplayer.config.args.dash = "0"; ytplayer.config.args.dashmpd = ""; {0}')],[/yt\.setConfig.*PLAYER_CONFIG.*args":\s*{/,y('{0} "dash": "0", dashmpd: "", ')],[/(?:"player":|ytplayer\.config).*"args":\s*{/,y('{0}"dash":"0","dashmpd":"",')]]},{contains:["vimeo.com/video"],rxRules:[[/\"dash\"[:]/,y('"__dash":')],[/\"hls\"[:]/,y('"__hls":')]]},{contains:["facebook.com/"],rxRules:[[/"dash_manifest":"?.*?dash_prefetched_representation_ids"?:(?:null|(?:.+?\]))/,function(t){let e,r=null;try{r=w()(t.match(/dash_manifest":"(.*?)","dash/)[1]),r=r.replace(/\\\//g,"/")}catch(e){return console.warn(e),t}e=t.endsWith("null")?null:[];const i=p(r,null,e)+"\n";if(null!=e&&!e.length)return t;const n={dash_manifest:i,dash_prefetched_representation_ids:e};return JSON.stringify(n).replace(/