!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(e.capRandom=e.capRandom||{})}(this,function(e){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}function t(e,r){return r={exports:{}},e(r,r.exports),r.exports}function n(e){return ke(e)}function a(e){return ke(e.transpose(1,0))}function i(e){e=null==e?{N:1,z:0}:e;var r=Math.PI,t=2*r,n=r/180,a=e.z?+e.z:e.deg?Math.cos(+e.deg*n):e.rad?Math.cos(+e.rad):0,i=e.N?+e.N:1;return re(Array.from({length:i},function(e){var r=Math.random()*(1-a)+a,n=Math.sqrt(1-r*r),i=Math.random()*t,o=n*Math.cos(i),s=n*Math.sin(i);return[o,s,r]})).transpose(1,0)}function o(e){return e.data?e:re(e)}function s(e){for(var r=f(o(e)),t=f(l(c(0,0,1),r)),n=Math.acos(l(x([0,0,1],[1,3]),r).get(0,0)),a=u(t,n),s=arguments.length,p=Array(s>1?s-1:0),h=1;h0&&H(t,n)}return e}function h(e){for(var r=j(e.shape),t=0;t0&&K(r.pick(null,t),n,a)}return r}function d(){return Y(x([1,2,3,4],[2,2]))}function y(){var e=Y(j([2,2])),r=x([100,200,300,400],[2,2]),t=j([2,2]);return z(t,e,r),t}var m="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},g=t(function(e){function r(e){for(var r=new Array(e),t=0;tMath.abs(this.stride[1]))?[1,0]:[0,1]}})"):3===r&&i.push("var s0=Math.abs(this.stride[0]),s1=Math.abs(this.stride[1]),s2=Math.abs(this.stride[2]);if(s0>s1){if(s1>s2){return [2,1,0];}else if(s0>s2){return [1,2,0];}else{return [1,0,2];}}else if(s0>s2){return [2,0,1];}else if(s2>s1){return [0,1,2];}else{return [0,2,1];}}})")):i.push("ORDER})")),i.push("proto.set=function "+t+"_set("+c.join(",")+",v){"),a?i.push("return this.data.set("+p+",v)}"):i.push("return this.data["+p+"]=v}"),i.push("proto.get=function "+t+"_get("+c.join(",")+"){"),a?i.push("return this.data.get("+p+")}"):i.push("return this.data["+p+"]}"),i.push("proto.index=function "+t+"_index(",c.join(),"){return "+p+"}"),i.push("proto.hi=function "+t+"_hi("+c.join(",")+"){return new "+t+"(this.data,"+u.map(function(e){return["(typeof i",e,"!=='number'||i",e,"<0)?this.shape[",e,"]:i",e,"|0"].join("")}).join(",")+","+u.map(function(e){return"this.stride["+e+"]"}).join(",")+",this.offset)}");var d=u.map(function(e){return"a"+e+"=this.shape["+e+"]"}),y=u.map(function(e){return"c"+e+"=this.stride["+e+"]"});i.push("proto.lo=function "+t+"_lo("+c.join(",")+"){var b=this.offset,d=0,"+d.join(",")+","+y.join(","));for(var m=0;m=0){d=i"+m+"|0;b+=c"+m+"*d;a"+m+"-=d}");i.push("return new "+t+"(this.data,"+u.map(function(e){return"a"+e}).join(",")+","+u.map(function(e){return"c"+e}).join(",")+",b)}"),i.push("proto.step=function "+t+"_step("+c.join(",")+"){var "+u.map(function(e){return"a"+e+"=this.shape["+e+"]"}).join(",")+","+u.map(function(e){return"b"+e+"=this.stride["+e+"]"}).join(",")+",c=this.offset,d=0,ceil=Math.ceil");for(var m=0;m=0){c=(c+this.stride["+m+"]*i"+m+")|0}else{a.push(this.shape["+m+"]);b.push(this.stride["+m+"])}");i.push("var ctor=CTOR_LIST[a.length+1];return ctor(this.data,a,b,c)}"),i.push("return function construct_"+t+"(data,shape,stride,offset){return new "+t+"(data,"+u.map(function(e){return"shape["+e+"]"}).join(",")+","+u.map(function(e){return"stride["+e+"]"}).join(",")+",offset)}");var o=new Function("CTOR_LIST","ORDER",i.join("\n"));return o(l[e],n)}function i(e){if(u(e))return"buffer";if(c)switch(Object.prototype.toString.call(e)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object Uint8ClampedArray]":return"uint8_clamped"}return Array.isArray(e)?"array":"generic"}function o(e,r,t,n){if(void 0===e){var o=l.array[0];return o([])}"number"==typeof e&&(e=[e]),void 0===r&&(r=[e.length]);var s=r.length;if(void 0===t){t=new Array(s);for(var u=s-1,c=1;u>=0;--u)t[u]=c,c*=r[u]}if(void 0===n){n=0;for(var u=0;u0,u=[],c=[],l=0,p=0;for(n=0;n=0;--n)l=e[n],u.push(["for(i",n,"=0;i",n,"0&&u.push(["index[",p,"]-=s",p].join("")),u.push(["++index[",l,"]"].join(""))),u.push("}")}return u.join("\n")}function n(e,r,n,a){for(var i=r.length,o=n.arrayArgs.length,s=n.blockSize,u=n.indexArgs.length>0,c=[],l=0;l0;){"].join("")),c.push(["if(j",l,"<",s,"){"].join("")),c.push(["s",r[l],"=j",l].join("")),c.push(["j",l,"=0"].join("")),c.push(["}else{s",r[l],"=",s].join("")),c.push(["j",l,"-=",s,"}"].join("")),u&&c.push(["index[",r[l],"]=j",l].join(""));for(var l=0;l0&&(t=t&&r[n]===r[n-1])}return t?r[0]:r.join("")}function s(e,r){for(var s=r[1].length-Math.abs(e.arrayBlockIndices[0])|0,c=new Array(e.arrayArgs.length),l=new Array(e.arrayArgs.length),p=0;p0&&w.push("shape=SS.slice(0)"),e.indexArgs.length>0){for(var k=new Array(s),p=0;p3&&_.push(i(e.pre,e,l));var A=i(e.body,e,l),j=a(m);j3&&_.push(i(e.post,e,l)),e.debug&&console.log("-----Generated cwise routine for ",r,":\n"+_.join("\n")+"\n----------");var I=[e.funcName||"unnamed","_cwise_loop_",c[0].join("s"),"m",j,o(l)].join(""),C=new Function(["function ",I,"(",b.join(","),"){",_.join("\n"),"} return ",I].join(""));return C()}var u=r(V);e.exports=s}),N=r(L),O=Object.freeze({default:N}),P=t(function(e){function t(e){var r=["'use strict'","var CACHED={}"],t=[],a=e.funcName+"_cwise_thunk";r.push(["return function ",a,"(",e.shimArgs.join(","),"){"].join(""));for(var i=[],o=[],s=[["array",e.arrayArgs[0],".shape.slice(",Math.max(0,e.arrayBlockIndices[0]),e.arrayBlockIndices[0]<0?","+e.arrayBlockIndices[0]+")":")"].join("")],u=[],c=[],l=0;l0&&(u.push("array"+e.arrayArgs[0]+".shape.length===array"+p+".shape.length+"+(Math.abs(e.arrayBlockIndices[0])-Math.abs(e.arrayBlockIndices[l]))),c.push("array"+e.arrayArgs[0]+".shape[shapeIndex+"+Math.max(0,e.arrayBlockIndices[0])+"]===array"+p+".shape[shapeIndex+"+Math.max(0,e.arrayBlockIndices[l])+"]"))}e.arrayArgs.length>1&&(r.push("if (!("+u.join(" && ")+")) throw new Error('cwise: Arrays do not all have the same dimensionality!')"),r.push("for(var shapeIndex=array"+e.arrayArgs[0]+".shape.length-"+Math.abs(e.arrayBlockIndices[0])+"; shapeIndex-->0;) {"),r.push("if (!("+c.join(" && ")+")) throw new Error('cwise: Arrays do not all have the same shape!')"),r.push("}"));for(var l=0;l0)throw new Error("cwise: pre() block may not reference array args");if(i0)throw new Error("cwise: post() block may not reference array args")}else if("scalar"===o)r.scalarArgs.push(i),r.shimArgs.push("scalar"+i);else if("index"===o){if(r.indexArgs.push(i),i0)throw new Error("cwise: pre() block may not reference array index");if(i0)throw new Error("cwise: post() block may not reference array index")}else if("shape"===o){if(r.shapeArgs.push(i),in.length)throw new Error("cwise: Too many arguments in pre() block");if(r.body.args.length>n.length)throw new Error("cwise: Too many arguments in body() block");if(r.post.args.length>n.length)throw new Error("cwise: Too many arguments in post() block");return r.debug=!!e.printCode||!!e.debug,r.funcName=e.funcName||"cwise",r.blockSize=e.blockSize||64,a(r)}var a=r(U);e.exports=n}),R=r(M),D=Object.freeze({default:R}),q=t(function(e,t){function n(e){if(!e)return s;for(var r=0;r>",rrshift:">>>"};!function(){for(var e in u){var r=u[e];t[e]=i({args:["array","array","array"],body:{args:["a","b","c"],body:"a=b"+r+"c"},funcName:e}),t[e+"eq"]=i({args:["array","array"],body:{args:["a","b"],body:"a"+r+"=b"},rvalue:!0,funcName:e+"eq"}),t[e+"s"]=i({args:["array","array","scalar"],body:{args:["a","b","s"],body:"a=b"+r+"s"},funcName:e+"s"}),t[e+"seq"]=i({args:["array","scalar"],body:{args:["a","s"],body:"a"+r+"=s"},rvalue:!0,funcName:e+"seq"})}}();var c={not:"!",bnot:"~",neg:"-",recip:"1.0/"};!function(){for(var e in c){var r=c[e];t[e]=i({args:["array","array"],body:{args:["a","b"],body:"a="+r+"b"},funcName:e}),t[e+"eq"]=i({args:["array"],body:{args:["a"],body:"a="+r+"a"},rvalue:!0,count:2,funcName:e+"eq"})}}();var l={and:"&&",or:"||",eq:"===",neq:"!==",lt:"<",gt:">",leq:"<=",geq:">="};!function(){for(var e in l){var r=l[e];t[e]=i({args:["array","array","array"],body:{args:["a","b","c"],body:"a=b"+r+"c"},funcName:e}),t[e+"s"]=i({args:["array","array","scalar"],body:{args:["a","b","s"],body:"a=b"+r+"s"},funcName:e+"s"}),t[e+"eq"]=i({args:["array","array"],body:{args:["a","b"],body:"a=a"+r+"b"},rvalue:!0,count:2,funcName:e+"eq"}),t[e+"seq"]=i({args:["array","scalar"],body:{args:["a","s"],body:"a=a"+r+"s"},rvalue:!0,count:2,funcName:e+"seq"})}}();var p=["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan"];!function(){for(var e=0;ethis_s){this_s=-a}else if(a>this_s){this_s=a}",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norminf"}),t.norm1=o({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:3}],body:"this_s+=a<0?-a:a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norm1"}),t.sup=o({args:["array"],pre:{body:"this_h=-Infinity",args:[],thisVars:["this_h"],localVars:[]},body:{body:"if(_inline_1_arg0_>this_h)this_h=_inline_1_arg0_",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_h"],localVars:[]},post:{body:"return this_h",args:[],thisVars:["this_h"],localVars:[]}}),t.inf=o({args:["array"],pre:{body:"this_h=Infinity",args:[],thisVars:["this_h"],localVars:[]},body:{body:"if(_inline_1_arg0_this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_i","this_v"],localVars:["_inline_1_k"]},post:{body:"{return this_i}",args:[],thisVars:["this_i"],localVars:[]}}),t.random=i({args:["array"],pre:{args:[],body:"this_f=Math.random",thisVars:["this_f"]},body:{args:["a"],body:"a=this_f()",thisVars:["this_f"]},funcName:"random"}),t.assign=i({args:["array","array"],body:{args:["a","b"],body:"a=b"},funcName:"assign"}),t.assigns=i({args:["array","scalar"],body:{args:["a","b"],body:"a=b"},funcName:"assigns"}),t.equals=o({args:["array","array"],pre:s,body:{args:[{name:"x",lvalue:!1,rvalue:!0,count:1},{name:"y",lvalue:!1,rvalue:!0,count:1}],body:"if(x!==y){return false}",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:"return true"},funcName:"equals"})});r(q);var z=q.add,W=q.addeq,G=q.mulseq,K=q.divs,H=q.divseq,$=q.assigns,Y=q.random,X=q.norm2,J=t(function(e){e.exports=r(D)({args:["array","scalar","index"],pre:{body:"{}",args:[],thisVars:[],localVars:[]},body:{body:"{\nvar _inline_1_v=_inline_1_arg1_,_inline_1_i\nfor(_inline_1_i=0;_inline_1_i<_inline_1_arg2_.length-1;++_inline_1_i) {\n_inline_1_v=_inline_1_v[_inline_1_arg2_[_inline_1_i]]\n}\n_inline_1_arg0_=_inline_1_v[_inline_1_arg2_[_inline_1_arg2_.length-1]]\n}",args:[{name:"_inline_1_arg0_",lvalue:!0,rvalue:!1,count:1},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:1},{name:"_inline_1_arg2_",lvalue:!1,rvalue:!0,count:4}],thisVars:[],localVars:["_inline_1_i","_inline_1_v"]},post:{body:"{}",args:[],thisVars:[],localVars:[]},funcName:"convert",blockSize:64})}),Q=r(J),Z=Object.freeze({default:Q}),ee=t(function(e){var t=r(E),n=r(Z);e.exports=function(e,r){for(var a=[],i=e,o=1;Array.isArray(i);)a.push(i.length),o*=i.length,i=i[0];return 0===a.length?t():(r||(r=t(new Float64Array(o),a)),n(r,e),r)}}),re=r(ee),te=t(function(e){function r(e,r){return"native"===r[1]?[e,"d0=",e,".length,",e,"d1=",e,"[0].length,"].join(""):[e,"d0=",e,".shape[0],",e,"d1=",e,".shape[1],",e,"s0=",e,".stride[0],",e,"s1=",e,".stride[1],",e,"o=",e,".offset,",e,"d=",e,".data,"].join("")}function t(e,r,t,n,a,i){var o=[];return"native"===t[1]?e[0]&&(n?o.push("var ",r,"p=",r,"[",n,"];"):o.push("var ",r,"p=",r,"[0];")):n&&a?i?o.push("var ",r,"t0=",r,"s",e[0],",",r,"t1=",r,"s",e[1],"-",r,"s",e[0],"*",i,",",r,"p=",r,"o+",n,"*",r,"s0+",a,"*",r,"s1;"):o.push("var ",r,"t0=",r,"s",e[0],",",r,"p=",r,"o+",n,"*",r,"s0+",a,"*",r,"s1;"):n?o.push("var ",r,"t0=",r,"s",e[0],",",r,"p=",r,"o+",n,"*",r,"s0;"):a?o.push("var ",r,"t0=",r,"s",e[0],",",r,"p=",r,"o+",a,"*",r,"s1;"):o.push("var ",r,"t0=",r,"s",e[0],",",r,"t1=",r,"s",e[1],"-",r,"s",e[0],"*",r,"d",e[0],",",r,"p=",r,"o;"),o}function n(e,r,t,n,a){var i=[];return"native"===t[1]?e[0]&&1===n&&i.push(r,"p=",r,"[",a,"+1]"):i.push(r,"p+=",r,"t",n,";"),i}function a(e,r,t,n,a,i){var o=[];return"native"===t[1]?e[0]?o.push(r,"p[",a,"]=",i,";"):o.push(r,"[",n,"][",a,"]=",i,";"):"generic"===t[1]?o.push(r,"d.set(",r,"p,",i,");"):o.push(r,"d[",r,"p]=",i,";"),o}function i(e,r,t,n,a){var i=[];return"native"===t[1]?e[0]?i.push(r,"p[",a,"]"):i.push(r,"[",n,"][",a,"]"):"generic"===t[1]?i.push(r,"d.get(",r,"p)"):i.push(r,"d[",r,"p]"),i.join("")}function o(e,r,o,s,u){var c=[],l="r"===e[0]?[1,0]:[0,1],p=[1,0],f=[0,1],h=["i","j"];return c.push.apply(c,t(l,"o",e)),l[1]?(c.push("for(j=0;j0;){","var w",m,"=",l,";","if(i",m,"<",l,"){","w",m,"=i",m,";","i",m,"=0;","}else{","i",m,"-=",l,";","}");p.push.apply(p,t(h,"o",e,"i0","i1","w1")), p.push("for(i=0;i0)return t(0|e,n);break;case"object":if("number"==typeof e.length)return r(e,n,0)}return[]}e.exports=n}),le=r(ce),pe=Object.freeze({default:le}),fe=t(function(e,r){!function(e,t){"function"==typeof define&&define.amd?define(["exports"],t):t("undefined"!=typeof r?r:e.esprima={})}(this,function(e){function r(e,r){if(!e)throw new Error("ASSERT: "+r)}function t(e){return e>=48&&e<=57}function n(e){return"0123456789abcdefABCDEF".indexOf(e)>=0}function a(e){return"01234567".indexOf(e)>=0}function i(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0}function o(e){return 10===e||13===e||8232===e||8233===e}function s(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&ir.NonAsciiIdentifierStart.test(String.fromCharCode(e))}function u(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&ir.NonAsciiIdentifierPart.test(String.fromCharCode(e))}function c(e){switch(e){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function l(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function p(e){return"eval"===e||"arguments"===e}function f(e){if(ur&&l(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function h(e,t,n,a,i){var o;r("number"==typeof n,"Comment must have valid position"),yr.lastCommentStart>=n||(yr.lastCommentStart=n,o={type:e,value:t},mr.range&&(o.range=[n,a]),mr.loc&&(o.loc=i),mr.comments.push(o),mr.attachComment&&(mr.leadingComments.push(o),mr.trailingComments.push(o)))}function d(e){var r,t,n,a;for(r=cr-e,t={start:{line:lr,column:cr-pr-e}};cr=fr&&D({},ar.UnexpectedToken,"ILLEGAL");else if(42===t){if(47===sr.charCodeAt(cr+1))return++cr,++cr,void(mr.comments&&(n=sr.slice(e+2,cr-2),r.end={line:lr,column:cr-pr},h("Block",n,e,cr,r)));++cr}else++cr;D({},ar.UnexpectedToken,"ILLEGAL")}function m(){var e,r;for(r=0===cr;cr>>="===n?(cr+=4,{type:Ze.Punctuator,value:n,lineNumber:lr,lineStart:pr,start:a,end:cr}):(t=n.substr(0,3),">>>"===t||"<<="===t||">>="===t?(cr+=3,{type:Ze.Punctuator,value:t,lineNumber:lr,lineStart:pr,start:a,end:cr}):(r=t.substr(0,2),o===r[1]&&"+-<>&|".indexOf(o)>=0||"=>"===r?(cr+=2,{type:Ze.Punctuator,value:r,lineNumber:lr,lineStart:pr,start:a,end:cr}):"<>=!+-*%&|^/".indexOf(o)>=0?(++cr,{type:Ze.Punctuator,value:o,lineNumber:lr,lineStart:pr,start:a,end:cr}):void D({},ar.UnexpectedToken,"ILLEGAL")))}function k(e){for(var r="";cr=0&&cr0&&(n=mr.tokens[mr.tokens.length-1],n.range[0]===e&&"Punctuator"===n.type&&("/"!==n.value&&"/="!==n.value||mr.tokens.pop())),mr.tokens.push({type:"RegularExpression",value:t.literal,range:[e,cr],loc:r})),t}function N(e){return e.type===Ze.Identifier||e.type===Ze.Keyword||e.type===Ze.BooleanLiteral||e.type===Ze.NullLiteral}function O(){var e,r;if(e=mr.tokens[mr.tokens.length-1],!e)return L();if("Punctuator"===e.type){if("]"===e.value)return w();if(")"===e.value)return r=mr.tokens[mr.openParenToken-1],!r||"Keyword"!==r.type||"if"!==r.value&&"while"!==r.value&&"for"!==r.value&&"with"!==r.value?w():L();if("}"===e.value){if(mr.tokens[mr.openCurlyToken-3]&&"Keyword"===mr.tokens[mr.openCurlyToken-3].type){if(r=mr.tokens[mr.openCurlyToken-4],!r)return w()}else{if(!mr.tokens[mr.openCurlyToken-4]||"Keyword"!==mr.tokens[mr.openCurlyToken-4].type)return w();if(r=mr.tokens[mr.openCurlyToken-5],!r)return L()}return rr.indexOf(r.value)>=0?w():L()}return L()}return"Keyword"===e.type&&"this"!==e.value?L():w()}function P(){var e;return m(),cr>=fr?{type:Ze.EOF,lineNumber:lr,lineStart:pr,start:cr,end:cr}:(e=sr.charCodeAt(cr),s(e)?_():40===e||41===e||59===e?w():39===e||34===e?A():46===e?t(sr.charCodeAt(cr+1))?E():w():t(e)?E():mr.tokenize&&47===e?O():w())}function T(){var e,r,t;return m(),e={start:{line:lr,column:cr-pr}},r=P(),e.end={line:lr,column:cr-pr},r.type!==Ze.EOF&&(t=sr.slice(r.start,r.end),mr.tokens.push({type:er[r.type],value:t,range:[r.start,r.end],loc:e})),r}function U(){var e;return e=dr,cr=e.end,lr=e.lineNumber,pr=e.lineStart,dr="undefined"!=typeof mr.tokens?T():P(),cr=e.end,lr=e.lineNumber,pr=e.lineStart,e}function F(){var e,r,t;e=cr,r=lr,t=pr,dr="undefined"!=typeof mr.tokens?T():P(),cr=e,lr=r,pr=t}function B(e,r){this.line=e,this.column=r}function M(e,r,t,n){this.start=new B(e,r),this.end=new B(t,n)}function R(){var e,r,t,n;return e=cr,r=lr,t=pr,m(),n=lr!==r,cr=e,lr=r,pr=t,n}function D(e,t){var n,a=Array.prototype.slice.call(arguments,2),i=t.replace(/%(\d)/g,function(e,t){return r(t>="===e||">>>="===e||"&="===e||"^="===e||"|="===e)}function Y(){var e,r=cr,t=lr,n=pr,a=dr;return 59===sr.charCodeAt(cr)||K(";")?void U():(e=lr,m(),lr!==e?(cr=r,lr=t,pr=n,void(dr=a)):void(dr.type===Ze.EOF||K("}")||z(dr)))}function X(e){return e.type===tr.Identifier||e.type===tr.MemberExpression}function J(){var e,r=[];for(e=dr,W("[");!K("]");)K(",")?(U(),r.push(null)):(r.push(me()),K("]")||W(","));return U(),hr.markEnd(hr.createArrayExpression(r),e)}function Q(e,r){var t,n,a;return t=ur,a=dr,n=ze(),r&&ur&&p(e[0].name)&&q(r,ar.StrictParamName),ur=t,hr.markEnd(hr.createFunctionExpression(null,e,[],n),a)}function Z(){var e,r;return r=dr,e=U(),e.type===Ze.StringLiteral||e.type===Ze.NumericLiteral?(ur&&e.octal&&q(e,ar.StrictOctalLiteral),hr.markEnd(hr.createLiteral(e),r)):hr.markEnd(hr.createIdentifier(e.value),r)}function ee(){var e,r,t,n,a,i;return e=dr,i=dr,e.type===Ze.Identifier?(t=Z(),"get"!==e.value||K(":")?"set"!==e.value||K(":")?(W(":"),n=me(),hr.markEnd(hr.createProperty("init",t,n),i)):(r=Z(),W("("),e=dr,e.type!==Ze.Identifier?(W(")"),q(e,ar.UnexpectedToken,e.value),n=Q([])):(a=[_e()],W(")"),n=Q(a,e)),hr.markEnd(hr.createProperty("set",r,n),i)):(r=Z(),W("("),W(")"),n=Q([]),hr.markEnd(hr.createProperty("get",r,n),i))):e.type!==Ze.EOF&&e.type!==Ze.Punctuator?(r=Z(),W(":"),n=me(),hr.markEnd(hr.createProperty("init",r,n),i)):void z(e)}function re(){var e,r,t,n,a,i=[],o={},s=String;for(a=dr,W("{");!K("}");)e=ee(),r=e.key.type===tr.Identifier?e.key.name:s(e.key.value),n="init"===e.kind?nr.Data:"get"===e.kind?nr.Get:nr.Set,t="$"+r,Object.prototype.hasOwnProperty.call(o,t)?(o[t]===nr.Data?ur&&n===nr.Data?q({},ar.StrictDuplicateProperty):n!==nr.Data&&q({},ar.AccessorDataProperty):n===nr.Data?q({},ar.AccessorDataProperty):o[t]&n&&q({},ar.AccessorGetSet),o[t]|=n):o[t]=n,i.push(e),K("}")||W(",");return W("}"),hr.markEnd(hr.createObjectExpression(i),a)}function te(){var e;return W("("),e=ge(),W(")"),e}function ne(){var e,r,t,n;if(K("("))return te();if(K("["))return J();if(K("{"))return re();if(e=dr.type,n=dr,e===Ze.Identifier)t=hr.createIdentifier(U().value);else if(e===Ze.StringLiteral||e===Ze.NumericLiteral)ur&&dr.octal&&q(dr,ar.StrictOctalLiteral),t=hr.createLiteral(U());else if(e===Ze.Keyword){if(H("function"))return Ke();H("this")?(U(),t=hr.createThisExpression()):z(U())}else e===Ze.BooleanLiteral?(r=U(),r.value="true"===r.value,t=hr.createLiteral(r)):e===Ze.NullLiteral?(r=U(),r.value=null,t=hr.createLiteral(r)):K("/")||K("/=")?(t="undefined"!=typeof mr.tokens?hr.createLiteral(L()):hr.createLiteral(V()),F()):z(U());return hr.markEnd(t,n)}function ae(){var e=[];if(W("("),!K(")"))for(;cr":case"<=":case">=":case"instanceof":t=7;break;case"in":t=r?7:0;break;case"<<":case">>":case">>>":t=8;break;case"+":case"-":t=9;break;case"*":case"/":case"%":t=11}return t}function de(){var e,r,t,n,a,i,o,s,u,c;if(e=dr,u=fe(),n=dr,a=he(n,yr.allowIn),0===a)return u;for(n.prec=a,U(),r=[e,dr],o=fe(),i=[u,n,o];(a=he(dr,yr.allowIn))>0;){for(;i.length>2&&a<=i[i.length-2].prec;)o=i.pop(),s=i.pop().value,u=i.pop(),t=hr.createBinaryExpression(s,u,o),r.pop(),e=r[r.length-1],hr.markEnd(t,e),i.push(t);n=U(),n.prec=a,i.push(n),r.push(dr),t=fe(),i.push(t)}for(c=i.length-1,t=i[c],r.pop();c>1;)t=hr.createBinaryExpression(i[c-1].value,i[c-2],t),c-=2,e=r.pop(),hr.markEnd(t,e);return t}function ye(){var e,r,t,n,a;return a=dr,e=de(),K("?")&&(U(),r=yr.allowIn,yr.allowIn=!0,t=me(),yr.allowIn=r,W(":"),n=me(),e=hr.createConditionalExpression(e,t,n),hr.markEnd(e,a)),e}function me(){var e,r,t,n,a;return e=dr,a=dr,n=r=ye(),$()&&(X(r)||q({},ar.InvalidLHSInAssignment),ur&&r.type===tr.Identifier&&p(r.name)&&q(e,ar.StrictLHSAssignment),e=U(),t=me(),n=hr.markEnd(hr.createAssignmentExpression(e.value,r,t),a)),n}function ge(){var e,r=dr;if(e=me(),K(",")){for(e=hr.createSequenceExpression([e]);cr0?1:0,pr=0,fr=sr.length,dr=null,yr={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},mr={},r=r||{},r.tokens=!0,mr.tokens=[],mr.tokenize=!0,mr.openParenToken=-1,mr.openCurlyToken=-1,mr.range="boolean"==typeof r.range&&r.range,mr.loc="boolean"==typeof r.loc&&r.loc,"boolean"==typeof r.comment&&r.comment&&(mr.comments=[]),"boolean"==typeof r.tolerant&&r.tolerant&&(mr.errors=[]);try{if(F(),dr.type===Ze.EOF)return mr.tokens;for(n=U();dr.type!==Ze.EOF;)try{n=U()}catch(e){if(n=dr,mr.errors){mr.errors.push(e);break}throw e}Xe(),a=mr.tokens,"undefined"!=typeof mr.comments&&(a.comments=mr.comments),"undefined"!=typeof mr.errors&&(a.errors=mr.errors)}catch(e){throw e}finally{mr={}}return a}function Qe(e,r){var t,n;n=String,"string"==typeof e||e instanceof String||(e=n(e)),hr=or,sr=e,cr=0,lr=sr.length>0?1:0,pr=0,fr=sr.length,dr=null,yr={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},mr={},"undefined"!=typeof r&&(mr.range="boolean"==typeof r.range&&r.range,mr.loc="boolean"==typeof r.loc&&r.loc,mr.attachComment="boolean"==typeof r.attachComment&&r.attachComment,mr.loc&&null!==r.source&&void 0!==r.source&&(mr.source=n(r.source)),"boolean"==typeof r.tokens&&r.tokens&&(mr.tokens=[]),"boolean"==typeof r.comment&&r.comment&&(mr.comments=[]),"boolean"==typeof r.tolerant&&r.tolerant&&(mr.errors=[]),mr.attachComment&&(mr.range=!0,mr.comments=[],mr.bottomRightStack=[],mr.trailingComments=[],mr.leadingComments=[]));try{t=Ye(),"undefined"!=typeof mr.comments&&(t.comments=mr.comments),"undefined"!=typeof mr.tokens&&(Xe(),t.tokens=mr.tokens),"undefined"!=typeof mr.errors&&(t.errors=mr.errors)}catch(e){throw e}finally{mr={}}return t}var Ze,er,rr,tr,nr,ar,ir,or,sr,ur,cr,lr,pr,fr,hr,dr,yr,mr;Ze={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9},er={},er[Ze.BooleanLiteral]="Boolean",er[Ze.EOF]="",er[Ze.Identifier]="Identifier",er[Ze.Keyword]="Keyword",er[Ze.NullLiteral]="Null",er[Ze.NumericLiteral]="Numeric",er[Ze.Punctuator]="Punctuator",er[Ze.StringLiteral]="String",er[Ze.RegularExpression]="RegularExpression",rr=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],tr={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase", ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},nr={Data:1,Get:2,Set:4},ar={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",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",StrictReservedWord:"Use of future reserved word in strict mode"},ir={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")},or={name:"SyntaxTree",processComment:function(e){var r,t;if(!(e.type===tr.Program&&e.body.length>0)){for(mr.trailingComments.length>0?mr.trailingComments[0].range[0]>=e.range[1]?(t=mr.trailingComments,mr.trailingComments=[]):mr.trailingComments.length=0:mr.bottomRightStack.length>0&&mr.bottomRightStack[mr.bottomRightStack.length-1].trailingComments&&mr.bottomRightStack[mr.bottomRightStack.length-1].trailingComments[0].range[0]>=e.range[1]&&(t=mr.bottomRightStack[mr.bottomRightStack.length-1].trailingComments,delete mr.bottomRightStack[mr.bottomRightStack.length-1].trailingComments);mr.bottomRightStack.length>0&&mr.bottomRightStack[mr.bottomRightStack.length-1].range[0]>=e.range[0];)r=mr.bottomRightStack.pop();r?r.leadingComments&&r.leadingComments[r.leadingComments.length-1].range[1]<=e.range[0]&&(e.leadingComments=r.leadingComments,delete r.leadingComments):mr.leadingComments.length>0&&mr.leadingComments[mr.leadingComments.length-1].range[1]<=e.range[0]&&(e.leadingComments=mr.leadingComments,mr.leadingComments=[]),t&&(e.trailingComments=t),mr.bottomRightStack.push(e)}},markEnd:function(e,r){return mr.range&&(e.range=[r.start,cr]),mr.loc&&(e.loc=new M(void 0===r.startLineNumber?r.lineNumber:r.startLineNumber,r.start-(void 0===r.startLineStart?r.lineStart:r.startLineStart),lr,cr-pr),this.postProcess(e)),mr.attachComment&&this.processComment(e),e},postProcess:function(e){return mr.source&&(e.loc.source=mr.source),e},createArrayExpression:function(e){return{type:tr.ArrayExpression,elements:e}},createAssignmentExpression:function(e,r,t){return{type:tr.AssignmentExpression,operator:e,left:r,right:t}},createBinaryExpression:function(e,r,t){var n="||"===e||"&&"===e?tr.LogicalExpression:tr.BinaryExpression;return{type:n,operator:e,left:r,right:t}},createBlockStatement:function(e){return{type:tr.BlockStatement,body:e}},createBreakStatement:function(e){return{type:tr.BreakStatement,label:e}},createCallExpression:function(e,r){return{type:tr.CallExpression,callee:e,arguments:r}},createCatchClause:function(e,r){return{type:tr.CatchClause,param:e,body:r}},createConditionalExpression:function(e,r,t){return{type:tr.ConditionalExpression,test:e,consequent:r,alternate:t}},createContinueStatement:function(e){return{type:tr.ContinueStatement,label:e}},createDebuggerStatement:function(){return{type:tr.DebuggerStatement}},createDoWhileStatement:function(e,r){return{type:tr.DoWhileStatement,body:e,test:r}},createEmptyStatement:function(){return{type:tr.EmptyStatement}},createExpressionStatement:function(e){return{type:tr.ExpressionStatement,expression:e}},createForStatement:function(e,r,t,n){return{type:tr.ForStatement,init:e,test:r,update:t,body:n}},createForInStatement:function(e,r,t){return{type:tr.ForInStatement,left:e,right:r,body:t,each:!1}},createFunctionDeclaration:function(e,r,t,n){return{type:tr.FunctionDeclaration,id:e,params:r,defaults:t,body:n,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(e,r,t,n){return{type:tr.FunctionExpression,id:e,params:r,defaults:t,body:n,rest:null,generator:!1,expression:!1}},createIdentifier:function(e){return{type:tr.Identifier,name:e}},createIfStatement:function(e,r,t){return{type:tr.IfStatement,test:e,consequent:r,alternate:t}},createLabeledStatement:function(e,r){return{type:tr.LabeledStatement,label:e,body:r}},createLiteral:function(e){return{type:tr.Literal,value:e.value,raw:sr.slice(e.start,e.end)}},createMemberExpression:function(e,r,t){return{type:tr.MemberExpression,computed:"["===e,object:r,property:t}},createNewExpression:function(e,r){return{type:tr.NewExpression,callee:e,arguments:r}},createObjectExpression:function(e){return{type:tr.ObjectExpression,properties:e}},createPostfixExpression:function(e,r){return{type:tr.UpdateExpression,operator:e,argument:r,prefix:!1}},createProgram:function(e){return{type:tr.Program,body:e}},createProperty:function(e,r,t){return{type:tr.Property,key:r,value:t,kind:e}},createReturnStatement:function(e){return{type:tr.ReturnStatement,argument:e}},createSequenceExpression:function(e){return{type:tr.SequenceExpression,expressions:e}},createSwitchCase:function(e,r){return{type:tr.SwitchCase,test:e,consequent:r}},createSwitchStatement:function(e,r){return{type:tr.SwitchStatement,discriminant:e,cases:r}},createThisExpression:function(){return{type:tr.ThisExpression}},createThrowStatement:function(e){return{type:tr.ThrowStatement,argument:e}},createTryStatement:function(e,r,t,n){return{type:tr.TryStatement,block:e,guardedHandlers:r,handlers:t,finalizer:n}},createUnaryExpression:function(e,r){return"++"===e||"--"===e?{type:tr.UpdateExpression,operator:e,argument:r,prefix:!0}:{type:tr.UnaryExpression,operator:e,argument:r,prefix:!0}},createVariableDeclaration:function(e,r){return{type:tr.VariableDeclaration,declarations:e,kind:r}},createVariableDeclarator:function(e,r){return{type:tr.VariableDeclarator,id:e,init:r}},createWhileStatement:function(e,r){return{type:tr.WhileStatement,test:e,body:r}},createWithStatement:function(e,r){return{type:tr.WithStatement,object:e,body:r}}},e.version="1.2.5",e.tokenize=Je,e.parse=Qe,e.Syntax=function(){var e,r={};"function"==typeof Object.create&&(r=Object.create(null));for(e in tr)tr.hasOwnProperty(e)&&(r[e]=tr[e]);return"function"==typeof Object.freeze&&Object.freeze(r),r}()})}),he=r(fe),de=Object.freeze({default:he}),ye=t(function(e){function t(e,r,t){this.name=e,this.lvalue=r,this.rvalue=t,this.count=0}function n(e,r,t,n){this.body=e,this.args=r,this.thisVars=t,this.localVars=n}function a(e){if("eval"===e)throw new Error("cwise-parser: eval() not allowed");return"undefined"!=typeof window?e in window:"undefined"!=typeof m?e in m:"undefined"!=typeof self&&e in self}function i(e){for(var r=e.body[0].expression.callee.params,t=new Array(r.length),n=0;n=0){var u=v[s],c=h(t);c&x&&(u.lvalue=!0),c&E&&(u.rvalue=!0),++u.count,l(t,u.name)}else a(i)||l(t,r(i))}else if("Literal"===t.type)"string"==typeof t.value&&l(t,p(t.value));else{if("WithStatement"===t.type)throw new Error("cwise-parser: with() statements not allowed");for(var f=Object.keys(t),d=0,y=f.length;d