museaikit
Version:
A powerful music-focused AI toolkit
2 lines • 176 kB
JavaScript
/*! For license information please see gansynth.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@tensorflow/tfjs")):"function"==typeof define&&define.amd?define(["tf"],t):"object"==typeof exports?exports.gansynth=t(require("@tensorflow/tfjs")):e.gansynth=t(e.tf)}(self,(e=>(()=>{var t={283:(e,t,r)=>{"use strict";var n=r(9008);function a(){this.argTypes=[],this.shimArgs=[],this.arrayArgs=[],this.arrayBlockIndices=[],this.scalarArgs=[],this.offsetArgs=[],this.offsetArgIndex=[],this.indexArgs=[],this.shapeArgs=[],this.funcName="",this.pre=null,this.body=null,this.post=null,this.debug=!1}e.exports=function(e){var t=new a;t.pre=e.pre,t.body=e.body,t.post=e.post;var r=e.args.slice(0);t.argTypes=r;for(var i=0;i<r.length;++i){var o=r[i];if("array"===o||"object"==typeof o&&o.blockIndices){if(t.argTypes[i]="array",t.arrayArgs.push(i),t.arrayBlockIndices.push(o.blockIndices?o.blockIndices:0),t.shimArgs.push("array"+i),i<t.pre.args.length&&t.pre.args[i].count>0)throw new Error("cwise: pre() block may not reference array args");if(i<t.post.args.length&&t.post.args[i].count>0)throw new Error("cwise: post() block may not reference array args")}else if("scalar"===o)t.scalarArgs.push(i),t.shimArgs.push("scalar"+i);else if("index"===o){if(t.indexArgs.push(i),i<t.pre.args.length&&t.pre.args[i].count>0)throw new Error("cwise: pre() block may not reference array index");if(i<t.body.args.length&&t.body.args[i].lvalue)throw new Error("cwise: body() block may not write to array index");if(i<t.post.args.length&&t.post.args[i].count>0)throw new Error("cwise: post() block may not reference array index")}else if("shape"===o){if(t.shapeArgs.push(i),i<t.pre.args.length&&t.pre.args[i].lvalue)throw new Error("cwise: pre() block may not write to array shape");if(i<t.body.args.length&&t.body.args[i].lvalue)throw new Error("cwise: body() block may not write to array shape");if(i<t.post.args.length&&t.post.args[i].lvalue)throw new Error("cwise: post() block may not write to array shape")}else{if("object"!=typeof o||!o.offset)throw new Error("cwise: Unknown argument type "+r[i]);t.argTypes[i]="offset",t.offsetArgs.push({array:o.array,offset:o.offset}),t.offsetArgIndex.push(i)}}if(t.arrayArgs.length<=0)throw new Error("cwise: No array arguments specified");if(t.pre.args.length>r.length)throw new Error("cwise: Too many arguments in pre() block");if(t.body.args.length>r.length)throw new Error("cwise: Too many arguments in body() block");if(t.post.args.length>r.length)throw new Error("cwise: Too many arguments in post() block");return t.debug=!!e.printCode||!!e.debug,t.funcName=e.funcName||"cwise",t.blockSize=e.blockSize||64,n(t)}},738:(e,t,r)=>{"use strict";r.d(t,{_t:()=>s,dP:()=>a,ez:()=>i});r(6364),r(9220),r(1515),r(1209);var n=r(5862);r(8171);(0,n.RD)(16e3);function a(e,t){if(e.length!==t.length)return console.error(`Buffer length ${e.length} != window length ${t.length}.`),null;const r=new Float32Array(e.length);for(let n=0;n<e.length;n++)r[n]=t[n]*e[n];return r}function i(e,t){if(e.length>t)throw new Error("Data is longer than length.");const r=Math.floor((t-e.length)/2);return o(e,[r,t-e.length-r])}function o(e,t){let r,n;"object"==typeof t?[r,n]=t:r=n=t;const a=new Float32Array(e.length+r+n);return a.set(e,r),a}function s(e){const t=new Float32Array(e);for(let r=0;r<e;r++)t[r]=.5*(1-Math.cos(2*Math.PI*r/(e-1)));return t}},953:(e,t,r)=>{"use strict";var n=r(7723),a=r(1515),i=r(6807),o=r(5687);e.exports=function(e,t,r){var s,u,c=t.shape,l=c.length,f=1,h=new Array(l),p=0;for(s=l-1;s>=0;--s)if(h[s]=f,f*=c[s],p=Math.max(p,o.scratchMemory(c[s])),t.shape[s]!==r.shape[s])throw new Error("Shape mismatch, real and imaginary arrays must have same size");var d,y=4*f+p;d="array"===t.dtype||"float64"===t.dtype||"custom"===t.dtype?i.mallocDouble(y):i.mallocFloat(y);var g,m,v,b,w=a(d,c.slice(0),h,0),_=a(d,c.slice(0),h.slice(0),f),E=a(d,c.slice(0),h.slice(0),2*f),A=a(d,c.slice(0),h.slice(0),3*f),x=4*f;for(n.assign(w,t),n.assign(_,r),s=l-1;s>=0&&(o(e,f/c[s],c[s],d,w.offset,_.offset,x),0!==s);--s){for(m=1,v=E.stride,b=A.stride,u=s-1;u<l;++u)b[u]=v[u]=m,m*=c[u];for(u=s-2;u>=0;--u)b[u]=v[u]=m,m*=c[u];n.assign(E,w),n.assign(A,_),g=w,w=E,E=g,g=_,_=A,A=g}n.assign(t,w),n.assign(r,_),i.free(d)}},955:(e,t,r)=>{"use strict";r.r(t),r.d(t,{userAgent:()=>n});const n=""},1115:e=>{"use strict";e.exports=function(e,t,r){return 0===e.length?e:t?(r||e.sort(t),function(e,t){for(var r=1,n=e.length,a=e[0],i=e[0],o=1;o<n;++o)if(i=a,t(a=e[o],i)){if(o===r){r++;continue}e[r++]=a}return e.length=r,e}(e,t)):(r||e.sort(),function(e){for(var t=1,r=e.length,n=e[0],a=e[0],i=1;i<r;++i,a=n)if(a=n,(n=e[i])!==a){if(i===t){t++;continue}e[t++]=n}return e.length=t,e}(e))}},1209:(e,t,r)=>{"use strict";var n=r(953),a=r(2433),i=r(7723),o=r(8277)({args:["array","array","scalar","scalar","scalar"],body:function(e,t,r,n,a){var i=t*r;i<n&&(i=n),i>a&&(i=a)}});e.exports=function(e,t,r,s){void 0===r&&(r=-1/0),void 0===s&&(s=1/0);var u=t.shape,c=e.shape;if(t.shape.length!==e.shape.length)throw new Error("ndarray-resample: input and output arrays should have the same dimensions");var l,f=u.map((function(){return 0}));if(1===e.size)return(l=i.sum(t)/t.size)<r&&(l=r),l>s&&(l=s),void e.set.apply(e,f.concat(l));if(1===t.size)return(l=t.get.apply(t,f))<r&&(l=r),l>s&&(l=s),void i.assigns(e,l);for(var h=u.length,p=new Array(h),d=!1,y=0;y<h;y++)p[y]=Math.min(c[y],u[y]),c[y]>u[y]&&(d=!0);var g=a.malloc(u),m=a.malloc(u);i.assign(g,t),i.assigns(m,0),n(1,g,m);var v=g.lo,b=g.hi,w=a.malloc(c),_=a.malloc(c);d&&(i.assigns(w,0),i.assigns(_,0));var E=new Array(h),A=new Array(h),x=new Array(h),S=new Array(h);for(y=0;y<1<<h;++y){for(var k=0;k<h;++k)if(y&1<<k){if(E[k]=p[k]-(p[k]+1>>>1),0===E[k])continue;A[k]=c[k]-E[k],x[k]=u[k]-E[k],S[k]=1&p[k]?0:1}else E[k]=p[k]+1>>>1,A[k]=0,x[k]=0,S[k]=0;i.assign(b.apply(v.apply(w,A),E),b.apply(v.apply(g,x),E)),i.assign(v.apply(b.apply(v.apply(_,A),E),S),v.apply(b.apply(v.apply(m,x),E),S)),i.assigns(b.apply(b.apply(v.apply(_,A),E),S),0)}n(-1,w,_),o(e,w,e.size/t.size,r,s),a.free(g),a.free(m),a.free(w),a.free(_)}},1515:(e,t,r)=>{var n=r(2639),a=r(7634),i="undefined"!=typeof Float64Array;function o(e,t){return e[0]-t[0]}function s(){var e,t=this.stride,r=new Array(t.length);for(e=0;e<r.length;++e)r[e]=[Math.abs(t[e]),e];r.sort(o);var n=new Array(r.length);for(e=0;e<n.length;++e)n[e]=r[e][1];return n}function u(e,t){var r=["View",t,"d",e].join("");t<0&&(r="View_Nil"+e);var a="generic"===e;if(-1===t){var i="function "+r+"(a){this.data=a;};var proto="+r+".prototype;proto.dtype='"+e+"';proto.index=function(){return -1};proto.size=0;proto.dimension=-1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function(){return new "+r+"(this.data);};proto.get=proto.set=function(){};proto.pick=function(){return null};return function construct_"+r+"(a){return new "+r+"(a);}";return new Function(i)()}if(0===t){i="function "+r+"(a,d) {this.data = a;this.offset = d};var proto="+r+".prototype;proto.dtype='"+e+"';proto.index=function(){return this.offset};proto.dimension=0;proto.size=1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function "+r+"_copy() {return new "+r+"(this.data,this.offset)};proto.pick=function "+r+"_pick(){return TrivialArray(this.data);};proto.valueOf=proto.get=function "+r+"_get(){return "+(a?"this.data.get(this.offset)":"this.data[this.offset]")+"};proto.set=function "+r+"_set(v){return "+(a?"this.data.set(this.offset,v)":"this.data[this.offset]=v")+"};return function construct_"+r+"(a,b,c,d){return new "+r+"(a,d)}";return new Function("TrivialArray",i)(c[e][0])}i=["'use strict'"];var o=n(t),u=o.map((function(e){return"i"+e})),l="this.offset+"+o.map((function(e){return"this.stride["+e+"]*i"+e})).join("+"),f=o.map((function(e){return"b"+e})).join(","),h=o.map((function(e){return"c"+e})).join(",");i.push("function "+r+"(a,"+f+","+h+",d){this.data=a","this.shape=["+f+"]","this.stride=["+h+"]","this.offset=d|0}","var proto="+r+".prototype","proto.dtype='"+e+"'","proto.dimension="+t),i.push("Object.defineProperty(proto,'size',{get:function "+r+"_size(){return "+o.map((function(e){return"this.shape["+e+"]"})).join("*"),"}})"),1===t?i.push("proto.order=[0]"):(i.push("Object.defineProperty(proto,'order',{get:"),t<4?(i.push("function "+r+"_order(){"),2===t?i.push("return (Math.abs(this.stride[0])>Math.abs(this.stride[1]))?[1,0]:[0,1]}})"):3===t&&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 "+r+"_set("+u.join(",")+",v){"),a?i.push("return this.data.set("+l+",v)}"):i.push("return this.data["+l+"]=v}"),i.push("proto.get=function "+r+"_get("+u.join(",")+"){"),a?i.push("return this.data.get("+l+")}"):i.push("return this.data["+l+"]}"),i.push("proto.index=function "+r+"_index(",u.join(),"){return "+l+"}"),i.push("proto.hi=function "+r+"_hi("+u.join(",")+"){return new "+r+"(this.data,"+o.map((function(e){return["(typeof i",e,"!=='number'||i",e,"<0)?this.shape[",e,"]:i",e,"|0"].join("")})).join(",")+","+o.map((function(e){return"this.stride["+e+"]"})).join(",")+",this.offset)}");var p=o.map((function(e){return"a"+e+"=this.shape["+e+"]"})),d=o.map((function(e){return"c"+e+"=this.stride["+e+"]"}));i.push("proto.lo=function "+r+"_lo("+u.join(",")+"){var b=this.offset,d=0,"+p.join(",")+","+d.join(","));for(var y=0;y<t;++y)i.push("if(typeof i"+y+"==='number'&&i"+y+">=0){d=i"+y+"|0;b+=c"+y+"*d;a"+y+"-=d}");i.push("return new "+r+"(this.data,"+o.map((function(e){return"a"+e})).join(",")+","+o.map((function(e){return"c"+e})).join(",")+",b)}"),i.push("proto.step=function "+r+"_step("+u.join(",")+"){var "+o.map((function(e){return"a"+e+"=this.shape["+e+"]"})).join(",")+","+o.map((function(e){return"b"+e+"=this.stride["+e+"]"})).join(",")+",c=this.offset,d=0,ceil=Math.ceil");for(y=0;y<t;++y)i.push("if(typeof i"+y+"==='number'){d=i"+y+"|0;if(d<0){c+=b"+y+"*(a"+y+"-1);a"+y+"=ceil(-a"+y+"/d)}else{a"+y+"=ceil(a"+y+"/d)}b"+y+"*=d}");i.push("return new "+r+"(this.data,"+o.map((function(e){return"a"+e})).join(",")+","+o.map((function(e){return"b"+e})).join(",")+",c)}");var g=new Array(t),m=new Array(t);for(y=0;y<t;++y)g[y]="a[i"+y+"]",m[y]="b[i"+y+"]";i.push("proto.transpose=function "+r+"_transpose("+u+"){"+u.map((function(e,t){return e+"=("+e+"===undefined?"+t+":"+e+"|0)"})).join(";"),"var a=this.shape,b=this.stride;return new "+r+"(this.data,"+g.join(",")+","+m.join(",")+",this.offset)}"),i.push("proto.pick=function "+r+"_pick("+u+"){var a=[],b=[],c=this.offset");for(y=0;y<t;++y)i.push("if(typeof i"+y+"==='number'&&i"+y+">=0){c=(c+this.stride["+y+"]*i"+y+")|0}else{a.push(this.shape["+y+"]);b.push(this.stride["+y+"])}");return i.push("var ctor=CTOR_LIST[a.length+1];return ctor(this.data,a,b,c)}"),i.push("return function construct_"+r+"(data,shape,stride,offset){return new "+r+"(data,"+o.map((function(e){return"shape["+e+"]"})).join(",")+","+o.map((function(e){return"stride["+e+"]"})).join(",")+",offset)}"),new Function("CTOR_LIST","ORDER",i.join("\n"))(c[e],s)}var c={float32:[],float64:[],int8:[],int16:[],int32:[],uint8:[],uint16:[],uint32:[],array:[],uint8_clamped:[],bigint64:[],biguint64:[],buffer:[],generic:[]};e.exports=function(e,t,r,n){if(void 0===e)return(0,c.array[0])([]);"number"==typeof e&&(e=[e]),void 0===t&&(t=[e.length]);var o=t.length;if(void 0===r){r=new Array(o);for(var s=o-1,l=1;s>=0;--s)r[s]=l,l*=t[s]}if(void 0===n){n=0;for(s=0;s<o;++s)r[s]<0&&(n-=(t[s]-1)*r[s])}for(var f=function(e){if(a(e))return"buffer";if(i)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";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(e)?"array":"generic"}(e),h=c[f];h.length<=o+1;)h.push(u(f,h.length-1));return(0,h[o+1])(e,t,r,n)}},2433:(e,t,r)=>{"use strict";var n=r(1515),a=r(7723),i=r(6807);t.clone=function(e){var t=e.dtype;"generic"!==t&&"array"!==t||(t="double");var r=i.malloc(e.size,t),o=n(r,e.shape);return a.assign(o,e),o},t.malloc=function(e,t){t||(t="double");for(var r=1,a=new Array(e.length),o=e.length-1;o>=0;--o)a[o]=r,r*=e[o];return n(i.malloc(r,t),e,a,0)},t.free=function(e){"generic"!==e.dtype&&"array"!==e.dtype&&i.free(e.data)},t.zeros=function(e,t){t||(t="double");for(var r=1,a=new Array(e.length),o=e.length-1;o>=0;--o)a[o]=r,r*=e[o];var s=i.malloc(r,t);for(o=0;o<r;++o)s[o]=0;return n(s,e,a,0)},t.ones=function(e,t){t||(t="double");for(var r=1,a=new Array(e.length),o=e.length-1;o>=0;--o)a[o]=r,r*=e[o];var s=i.malloc(r,t);for(o=0;o<r;++o)s[o]=1;return n(s,e,a,0)},t.eye=function(e,t){var r,a;t||(t="double");var o=1,s=new Array(e.length);for(r=e.length-1;r>=0;--r)s[r]=o,o*=e[r];var u=i.malloc(o,t);for(r=0;r<o;++r)u[r]=0;var c=1/0,l=0;for(r=e.length-1;r>=0;r--)l+=s[r],c=Math.min(c,e[r]);for(r=0,a=0;r<c;r++,a+=l)u[a]=1;return n(u,e,s,0)}},2639:e=>{"use strict";e.exports=function(e){for(var t=new Array(e),r=0;r<e;++r)t[r]=r;return t}},3179:e=>{"use strict";function t(e,r,n){var a=0|e[n];if(a<=0)return[];var i,o=new Array(a);if(n===e.length-1)for(i=0;i<a;++i)o[i]=r;else for(i=0;i<a;++i)o[i]=t(e,r,n+1);return o}e.exports=function(e,r){switch(void 0===r&&(r=0),typeof e){case"number":if(e>0)return function(e,t){var r,n;for(r=new Array(e),n=0;n<e;++n)r[n]=t;return r}(0|e,r);break;case"object":if("number"==typeof e.length)return t(e,r,0)}return[]}},3918:(e,t,r)=>{"use strict";r.r(t),r.d(t,{now:()=>a,timing:()=>i});const n=global.process.hrtime(),a=()=>{const e=global.process.hrtime(n);return e[0]+e[1]/1e9},i={navigationStart:Date.now()}},4370:(e,t,r)=>{"use strict";var n=r(7659),a=r(1115),i=0;function o(e,t,r){this.name=e,this.lvalue=t,this.rvalue=r,this.count=0}function s(e,t,r,n){this.body=e,this.args=t,this.thisVars=r,this.localVars=n}e.exports=function(e){for(var t=["(",e,")()"].join(""),r=n.parse(t,{range:!0}),u="_inline_"+i+++"_",c=function(e){for(var t=e.body[0].expression.callee.params,r=new Array(t.length),n=0;n<t.length;++n)r[n]=t[n].name;return r}(r),l=new Array(c.length),f=0;f<c.length;++f)l[f]=new o([u,"arg",f,"_"].join(""),!1,!1);for(var h=new Array(t.length),p=(f=0,t.length);f<p;++f)h[f]=t.charAt(f);var d,y=[],g=[];function m(e,t){for(var r=e.range[0],n=e.range[1],a=r+1;a<n;++a)h[a]="";h[r]=t}return function e(t,r){if(t.parent=r,"MemberExpression"===t.type)t.computed?(e(t.object,t),e(t.property,t)):"ThisExpression"===t.object.type?m(t,(v=t.property.name,b="this_"+v.replace(/\_/g,"__"),g.push(b),b)):e(t.object,t);else{if("ThisExpression"===t.type)throw new Error("cwise-parser: Computed this is not allowed");if("Identifier"===t.type){var n=t.name,a=c.indexOf(n);if(a>=0){var i=l[a],o=function(e){return"AssignmentExpression"===e.parent.type&&e.parent.left===e?"="===e.parent.operator?1:3:"UpdateExpression"===e.parent.type?3:2}(t);1&o&&(i.lvalue=!0),2&o&&(i.rvalue=!0),++i.count,m(t,i.name)}else(function(e){if("eval"===e)throw new Error("cwise-parser: eval() not allowed");return"undefined"!=typeof window?e in window:"undefined"!=typeof global?e in global:"undefined"!=typeof self&&e in self})(n)||m(t,function(e){var t=u+e.replace(/\_/g,"__");return y.push(t),t}(n))}else if("Literal"===t.type)"string"==typeof t.value&&m(t,"'"+t.value.replace(/\_/g,"\\_").replace(/\'/g,"'")+"'");else{if("WithStatement"===t.type)throw new Error("cwise-parser: with() statements not allowed");for(var s=Object.keys(t),f=0,h=s.length;f<h;++f)if("parent"!==s[f]){var p=t[s[f]];if(p)if(p instanceof Array)for(var d=0;d<p.length;++d)p[d]&&"string"==typeof p[d].type&&e(p[d],t);else"string"==typeof p.type&&e(p,t)}}}var v,b}(r.body[0].expression.callee.body,void 0),a(y),a(g),new s((d=r.body[0].expression.callee.body,h.slice(d.range[0],d.range[1]).join("")),l,g,y)}},4649:(e,t)=>{"use strict";function r(e){var t=32;return(e&=-e)&&t--,65535&e&&(t-=16),16711935&e&&(t-=8),252645135&e&&(t-=4),858993459&e&&(t-=2),1431655765&e&&(t-=1),t}t.INT_BITS=32,t.INT_MAX=2147483647,t.INT_MIN=-1<<31,t.sign=function(e){return(e>0)-(e<0)},t.abs=function(e){var t=e>>31;return(e^t)-t},t.min=function(e,t){return t^(e^t)&-(e<t)},t.max=function(e,t){return e^(e^t)&-(e<t)},t.isPow2=function(e){return!(e&e-1||!e)},t.log2=function(e){var t,r;return t=(e>65535)<<4,t|=r=((e>>>=t)>255)<<3,t|=r=((e>>>=r)>15)<<2,(t|=r=((e>>>=r)>3)<<1)|(e>>>=r)>>1},t.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0},t.popCount=function(e){return 16843009*((e=(858993459&(e-=e>>>1&1431655765))+(e>>>2&858993459))+(e>>>4)&252645135)>>>24},t.countTrailingZeros=r,t.nextPow2=function(e){return e+=0===e,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1},t.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)-(e>>>1)},t.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,27030>>>(e&=15)&1};var n=new Array(256);!function(e){for(var t=0;t<256;++t){var r=t,n=t,a=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=1&r,--a;e[t]=n<<a&255}}(n),t.reverse=function(e){return n[255&e]<<24|n[e>>>8&255]<<16|n[e>>>16&255]<<8|n[e>>>24&255]},t.interleave2=function(e,t){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))<<1},t.deinterleave2=function(e,t){return(e=65535&((e=16711935&((e=252645135&((e=858993459&((e=e>>>t&1431655765)|e>>>1))|e>>>2))|e>>>4))|e>>>16))<<16>>16},t.interleave3=function(e,t,r){return e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2),(e|=(t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2))<<1)|(r=1227133513&((r=3272356035&((r=251719695&((r=4278190335&((r&=1023)|r<<16))|r<<8))|r<<4))|r<<2))<<2},t.deinterleave3=function(e,t){return(e=1023&((e=4278190335&((e=251719695&((e=3272356035&((e=e>>>t&1227133513)|e>>>2))|e>>>4))|e>>>8))|e>>>16))<<22>>22},t.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>r(e)+1}},5285:(e,t,r)=>{"use strict";var n=r(1115);function a(e,t,r){var n,a,i=e.length,o=t.arrayArgs.length,s=t.indexArgs.length>0,u=[],c=[],l=0,f=0;for(n=0;n<i;++n)c.push(["i",n,"=0"].join(""));for(a=0;a<o;++a)for(n=0;n<i;++n)f=l,l=e[n],0===n?c.push(["d",a,"s",n,"=t",a,"p",l].join("")):c.push(["d",a,"s",n,"=(t",a,"p",l,"-s",f,"*t",a,"p",f,")"].join(""));for(c.length>0&&u.push("var "+c.join(",")),n=i-1;n>=0;--n)l=e[n],u.push(["for(i",n,"=0;i",n,"<s",l,";++i",n,"){"].join(""));for(u.push(r),n=0;n<i;++n){for(f=l,l=e[n],a=0;a<o;++a)u.push(["p",a,"+=d",a,"s",n].join(""));s&&(n>0&&u.push(["index[",f,"]-=s",f].join("")),u.push(["++index[",l,"]"].join(""))),u.push("}")}return u.join("\n")}function i(e,t,r){for(var n=e.body,a=[],i=[],o=0;o<e.args.length;++o){var s=e.args[o];if(!(s.count<=0)){var u=new RegExp(s.name,"g"),c="",l=t.arrayArgs.indexOf(o);switch(t.argTypes[o]){case"offset":var f=t.offsetArgIndex.indexOf(o);l=t.offsetArgs[f].array,c="+q"+f;case"array":c="p"+l+c;var h="l"+o,p="a"+l;if(0===t.arrayBlockIndices[l])1===s.count?"generic"===r[l]?s.lvalue?(a.push(["var ",h,"=",p,".get(",c,")"].join("")),n=n.replace(u,h),i.push([p,".set(",c,",",h,")"].join(""))):n=n.replace(u,[p,".get(",c,")"].join("")):n=n.replace(u,[p,"[",c,"]"].join("")):"generic"===r[l]?(a.push(["var ",h,"=",p,".get(",c,")"].join("")),n=n.replace(u,h),s.lvalue&&i.push([p,".set(",c,",",h,")"].join(""))):(a.push(["var ",h,"=",p,"[",c,"]"].join("")),n=n.replace(u,h),s.lvalue&&i.push([p,"[",c,"]=",h].join("")));else{for(var d=[s.name],y=[c],g=0;g<Math.abs(t.arrayBlockIndices[l]);g++)d.push("\\s*\\[([^\\]]+)\\]"),y.push("$"+(g+1)+"*t"+l+"b"+g);if(u=new RegExp(d.join(""),"g"),c=y.join("+"),"generic"===r[l])throw new Error("cwise: Generic arrays not supported in combination with blocks!");n=n.replace(u,[p,"[",c,"]"].join(""))}break;case"scalar":n=n.replace(u,"Y"+t.scalarArgs.indexOf(o));break;case"index":n=n.replace(u,"index");break;case"shape":n=n.replace(u,"shape")}}}return[a.join("\n"),n,i.join("\n")].join("\n").trim()}function o(e){for(var t=new Array(e.length),r=!0,n=0;n<e.length;++n){var a=e[n],i=a.match(/\d+/);i=i?i[0]:"",0===a.charAt(0)?t[n]="u"+a.charAt(1)+i:t[n]=a.charAt(0)+i,n>0&&(r=r&&t[n]===t[n-1])}return r?t[0]:t.join("")}e.exports=function(e,t){for(var r=t[1].length-Math.abs(e.arrayBlockIndices[0])|0,s=new Array(e.arrayArgs.length),u=new Array(e.arrayArgs.length),c=0;c<e.arrayArgs.length;++c)u[c]=t[2*c],s[c]=t[2*c+1];var l=[],f=[],h=[],p=[],d=[];for(c=0;c<e.arrayArgs.length;++c){e.arrayBlockIndices[c]<0?(h.push(0),p.push(r),l.push(r),f.push(r+e.arrayBlockIndices[c])):(h.push(e.arrayBlockIndices[c]),p.push(e.arrayBlockIndices[c]+r),l.push(0),f.push(e.arrayBlockIndices[c]));for(var y=[],g=0;g<s[c].length;g++)h[c]<=s[c][g]&&s[c][g]<p[c]&&y.push(s[c][g]-h[c]);d.push(y)}var m=["SS"],v=["'use strict'"],b=[];for(g=0;g<r;++g)b.push(["s",g,"=SS[",g,"]"].join(""));for(c=0;c<e.arrayArgs.length;++c){m.push("a"+c),m.push("t"+c),m.push("p"+c);for(g=0;g<r;++g)b.push(["t",c,"p",g,"=t",c,"[",h[c]+g,"]"].join(""));for(g=0;g<Math.abs(e.arrayBlockIndices[c]);++g)b.push(["t",c,"b",g,"=t",c,"[",l[c]+g,"]"].join(""))}for(c=0;c<e.scalarArgs.length;++c)m.push("Y"+c);if(e.shapeArgs.length>0&&b.push("shape=SS.slice(0)"),e.indexArgs.length>0){var w=new Array(r);for(c=0;c<r;++c)w[c]="0";b.push(["index=[",w.join(","),"]"].join(""))}for(c=0;c<e.offsetArgs.length;++c){var _=e.offsetArgs[c],E=[];for(g=0;g<_.offset.length;++g)0!==_.offset[g]&&(1===_.offset[g]?E.push(["t",_.array,"p",g].join("")):E.push([_.offset[g],"*t",_.array,"p",g].join("")));0===E.length?b.push("q"+c+"=0"):b.push(["q",c,"=",E.join("+")].join(""))}var A=n([].concat(e.pre.thisVars).concat(e.body.thisVars).concat(e.post.thisVars));for((b=b.concat(A)).length>0&&v.push("var "+b.join(",")),c=0;c<e.arrayArgs.length;++c)v.push("p"+c+"|=0");e.pre.body.length>3&&v.push(i(e.pre,e,u));var x=i(e.body,e,u),S=function(e){for(var t=0,r=e[0].length;t<r;){for(var n=1;n<e.length;++n)if(e[n][t]!==e[0][t])return t;++t}return t}(d);S<r?v.push(function(e,t,r,n){for(var i=t.length,o=r.arrayArgs.length,s=r.blockSize,u=r.indexArgs.length>0,c=[],l=0;l<o;++l)c.push(["var offset",l,"=p",l].join(""));for(l=e;l<i;++l)c.push(["for(var j"+l+"=SS[",t[l],"]|0;j",l,">0;){"].join("")),c.push(["if(j",l,"<",s,"){"].join("")),c.push(["s",t[l],"=j",l].join("")),c.push(["j",l,"=0"].join("")),c.push(["}else{s",t[l],"=",s].join("")),c.push(["j",l,"-=",s,"}"].join("")),u&&c.push(["index[",t[l],"]=j",l].join(""));for(l=0;l<o;++l){for(var f=["offset"+l],h=e;h<i;++h)f.push(["j",h,"*t",l,"p",t[h]].join(""));c.push(["p",l,"=(",f.join("+"),")"].join(""))}for(c.push(a(t,r,n)),l=e;l<i;++l)c.push("}");return c.join("\n")}(S,d[0],e,x)):v.push(a(d[0],e,x)),e.post.body.length>3&&v.push(i(e.post,e,u)),e.debug&&console.log("-----Generated cwise routine for ",t,":\n"+v.join("\n")+"\n----------");var k=[e.funcName||"unnamed","_cwise_loop_",s[0].join("s"),"m",S,o(u)].join("");return new Function(["function ",k,"(",m.join(","),"){",v.join("\n"),"} return ",k].join(""))()}},5440:(e,t)=>{"use strict";var r=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r)return r;throw new Error("unable to locate global object")}();e.exports=t=r.fetch,r.fetch&&(t.default=r.fetch.bind(r)),t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response},5687:(e,t,r)=>{var n=r(4649);function a(e,t,r,a,i,o){var s,u,c,l,f,h,p,d,y,g,m,v,b,w,_,E,A,x,S,k,I,C,L,j;for(e|=0,t|=0,i|=0,o|=0,s=r|=0,u=n.log2(s),x=0;x<t;++x){for(p=s>>1,f=0,c=0;c<s-1;c++){for(c<f&&(b=a[i+c],a[i+c]=a[i+f],a[i+f]=b,b=a[o+c],a[o+c]=a[o+f],a[o+f]=b),h=p;h<=f;)f-=h,h>>=1;f+=h}for(m=-1,v=0,g=1,d=0;d<u;d++){for(y=g,g<<=1,E=1,A=0,f=0;f<y;f++){for(c=f;c<s;c+=g)S=a[i+(l=c+y)],k=a[o+l],I=a[i+c],C=a[o+c],w=(L=E*(S+k))-k*(E+A),_=L+(j=S*(A-E)),a[i+l]=I-w,a[o+l]=C-_,a[i+c]+=w,a[o+c]+=_;j=E*(v-m),E=(L=m*(E+A))-A*(m+v),A=L+j}v=Math.sqrt((1-m)/2),e<0&&(v=-v),m=Math.sqrt((1+m)/2)}if(e<0){var U=1/s;for(c=0;c<s;c++)a[i+c]*=U,a[o+c]*=U}i+=r,o+=r}}e.exports=function(e,t,r,i,o,s,u){e|=0,t|=0,r|=0,o|=0,s|=0,n.isPow2(r)?a(e,t,r,i,o,s):function(e,t,r,i,o,s,u){e|=0,t|=0,r|=0,o|=0,s|=0,u|=0;var c,l,f,h,p,d,y,g,m,v=n.nextPow2(2*r+1),b=u,w=b+r,_=w+r,E=_+v,A=E+v,x=A+v,S=-e*Math.PI/r;for(m=0;m<r;++m)l=S*(m*m%(2*r)),h=Math.cos(l),p=Math.sin(l),i[A+(v-m)]=i[A+m]=i[b+m]=h,i[x+(v-m)]=i[x+m]=i[w+m]=p;for(m=r;m<=v-r;++m)i[A+m]=0;for(m=r;m<=v-r;++m)i[x+m]=0;a(1,1,v,i,A,x),S=e<0?1/r:1;for(c=0;c<t;++c){for(m=0;m<r;++m)l=i[o+m],f=i[s+m],d=(h=i[b+m])*(l+f),y=l*((p=-i[w+m])-h),g=f*(h+p),i[_+m]=d-g,i[E+m]=d+y;for(m=r;m<v;++m)i[_+m]=0;for(m=r;m<v;++m)i[E+m]=0;for(a(1,1,v,i,_,E),m=0;m<v;++m)l=i[_+m],f=i[E+m],d=(h=i[A+m])*(l+f),y=l*((p=i[x+m])-h),g=f*(h+p),i[_+m]=d-g,i[E+m]=d+y;for(a(-1,1,v,i,_,E),m=0;m<r;++m)l=i[_+m],f=i[E+m],d=(h=i[b+m])*(l+f),y=l*((p=-i[w+m])-h),g=f*(h+p),i[o+m]=S*(d-g),i[s+m]=S*(d+y);o+=r,s+=r}}(e,t,r,i,o,s,u)},e.exports.scratchMemory=function(e){return n.isPow2(e)?0:2*e+4*n.nextPow2(2*e+1)}},5862:(e,t,r)=>{"use strict";r.d(t,{hd:()=>u,RD:()=>o,FO:()=>c});const n=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("cannot find the global object")}(),a=(n.fetch.bind(n),n.performance,n.navigator,!!n.webkitOfflineAudioContext),i=void 0!==n.WorkerGlobalScope;function o(e){if(e=a?44100:e,i)throw new Error("Cannot use offline audio context in a web worker.");const t=n.webkitOfflineAudioContext;return a?new t(1,e,e):new n.OfflineAudioContext(1,e,e)}const s="undefined"!=typeof global&&void 0!==global.process,u=s?r(5440):window.fetch.bind(window),c=s?r(3918):window.performance;s?r(955):window.navigator},6364:t=>{"use strict";t.exports=e},6807:(e,t,r)=>{"use strict";var n=r(4649),a=r(3179),i=r(8891).hp;global.__TYPEDARRAY_POOL||(global.__TYPEDARRAY_POOL={UINT8:a([32,0]),UINT16:a([32,0]),UINT32:a([32,0]),BIGUINT64:a([32,0]),INT8:a([32,0]),INT16:a([32,0]),INT32:a([32,0]),BIGINT64:a([32,0]),FLOAT:a([32,0]),DOUBLE:a([32,0]),DATA:a([32,0]),UINT8C:a([32,0]),BUFFER:a([32,0])});var o="undefined"!=typeof Uint8ClampedArray,s="undefined"!=typeof BigUint64Array,u="undefined"!=typeof BigInt64Array,c=global.__TYPEDARRAY_POOL;c.UINT8C||(c.UINT8C=a([32,0])),c.BIGUINT64||(c.BIGUINT64=a([32,0])),c.BIGINT64||(c.BIGINT64=a([32,0])),c.BUFFER||(c.BUFFER=a([32,0]));var l=c.DATA,f=c.BUFFER;function h(e){if(e){var t=e.length||e.byteLength,r=n.log2(t);l[r].push(e)}}function p(e){e=n.nextPow2(e);var t=n.log2(e),r=l[t];return r.length>0?r.pop():new ArrayBuffer(e)}function d(e){return new Uint8Array(p(e),0,e)}function y(e){return new Uint16Array(p(2*e),0,e)}function g(e){return new Uint32Array(p(4*e),0,e)}function m(e){return new Int8Array(p(e),0,e)}function v(e){return new Int16Array(p(2*e),0,e)}function b(e){return new Int32Array(p(4*e),0,e)}function w(e){return new Float32Array(p(4*e),0,e)}function _(e){return new Float64Array(p(8*e),0,e)}function E(e){return o?new Uint8ClampedArray(p(e),0,e):d(e)}function A(e){return s?new BigUint64Array(p(8*e),0,e):null}function x(e){return u?new BigInt64Array(p(8*e),0,e):null}function S(e){return new DataView(p(e),0,e)}function k(e){e=n.nextPow2(e);var t=n.log2(e),r=f[t];return r.length>0?r.pop():new i(e)}t.free=function(e){if(i.isBuffer(e))f[n.log2(e.length)].push(e);else{if("[object ArrayBuffer]"!==Object.prototype.toString.call(e)&&(e=e.buffer),!e)return;var t=e.length||e.byteLength,r=0|n.log2(t);l[r].push(e)}},t.freeUint8=t.freeUint16=t.freeUint32=t.freeBigUint64=t.freeInt8=t.freeInt16=t.freeInt32=t.freeBigInt64=t.freeFloat32=t.freeFloat=t.freeFloat64=t.freeDouble=t.freeUint8Clamped=t.freeDataView=function(e){h(e.buffer)},t.freeArrayBuffer=h,t.freeBuffer=function(e){f[n.log2(e.length)].push(e)},t.malloc=function(e,t){if(void 0===t||"arraybuffer"===t)return p(e);switch(t){case"uint8":return d(e);case"uint16":return y(e);case"uint32":return g(e);case"int8":return m(e);case"int16":return v(e);case"int32":return b(e);case"float":case"float32":return w(e);case"double":case"float64":return _(e);case"uint8_clamped":return E(e);case"bigint64":return x(e);case"biguint64":return A(e);case"buffer":return k(e);case"data":case"dataview":return S(e);default:return null}return null},t.mallocArrayBuffer=p,t.mallocUint8=d,t.mallocUint16=y,t.mallocUint32=g,t.mallocInt8=m,t.mallocInt16=v,t.mallocInt32=b,t.mallocFloat32=t.mallocFloat=w,t.mallocFloat64=t.mallocDouble=_,t.mallocUint8Clamped=E,t.mallocBigUint64=A,t.mallocBigInt64=x,t.mallocDataView=S,t.mallocBuffer=k,t.clearCache=function(){for(var e=0;e<32;++e)c.UINT8[e].length=0,c.UINT16[e].length=0,c.UINT32[e].length=0,c.INT8[e].length=0,c.INT16[e].length=0,c.INT32[e].length=0,c.FLOAT[e].length=0,c.DOUBLE[e].length=0,c.BIGUINT64[e].length=0,c.BIGINT64[e].length=0,c.UINT8C[e].length=0,l[e].length=0,f[e].length=0}},7322:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,i=s(e),o=i[0],u=i[1],c=new a(function(e,t,r){return 3*(t+r)/4-r}(0,o,u)),l=0,f=u>0?o-4:o;for(r=0;r<f;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===u&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t);1===u&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,a=n%3,i=[],o=16383,s=0,c=n-a;s<c;s+=o)i.push(u(e,s,s+o>c?c:s+o));1===a?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===a&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],n=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)r[o]=i[o],n[i.charCodeAt(o)]=o;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function u(e,t,n){for(var a,i,o=[],s=t;s<n;s+=3)a=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(i=a)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},7634:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},7659:function(e,t){var r,n,a;!function(){"use strict";n=[t],r=function(e){var t,r,n,a,i,o,s,u,c,l,f,h,p,d,y,g,m,v;function b(e,t){if(!e)throw new Error("ASSERT: "+t)}function w(e){return e>=48&&e<=57}function _(e){return"0123456789abcdefABCDEF".indexOf(e)>=0}function E(e){return"01234567".indexOf(e)>=0}function A(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 x(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&&s.NonAsciiIdentifierStart.test(String.fromCharCode(e))}function k(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&s.NonAsciiIdentifierPart.test(String.fromCharCode(e))}function I(e){switch(e){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function C(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 L(e){return"eval"===e||"arguments"===e}function j(e){if(l&&C(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 U(e,t,r,n,a){var i;b("number"==typeof r,"Comment must have valid position"),m.lastCommentStart>=r||(m.lastCommentStart=r,i={type:e,value:t},v.range&&(i.range=[r,n]),v.loc&&(i.loc=a),v.comments.push(i),v.attachComment&&(v.leadingComments.push(i),v.trailingComments.push(i)))}function B(e){var t,r,n,a;for(t=f-e,r={start:{line:h,column:f-p-e}};f<d;)if(n=c.charCodeAt(f),++f,x(n))return v.comments&&(a=c.slice(t+e,f-1),r.end={line:h,column:f-p-1},U("Line",a,t,f-1,r)),13===n&&10===c.charCodeAt(f)&&++f,++h,void(p=f);v.comments&&(a=c.slice(t+e,f),r.end={line:h,column:f-p},U("Line",a,t,f,r))}function N(){var e,t,r,n;for(v.comments&&(e=f-2,t={start:{line:h,column:f-p-2}});f<d;)if(x(r=c.charCodeAt(f)))13===r&&10===c.charCodeAt(f+1)&&++f,++h,++f,p=f,f>=d&&ie({},o.UnexpectedToken,"ILLEGAL");else if(42===r){if(47===c.charCodeAt(f+1))return++f,++f,void(v.comments&&(n=c.slice(e+2,f-2),t.end={line:h,column:f-p},U("Block",n,e,f,t)));++f}else++f;ie({},o.UnexpectedToken,"ILLEGAL")}function T(){var e,t;for(t=0===f;f<d;)if(A(e=c.charCodeAt(f)))++f;else if(x(e))++f,13===e&&10===c.charCodeAt(f)&&++f,++h,p=f,t=!0;else if(47===e)if(47===(e=c.charCodeAt(f+1)))++f,++f,B(2),t=!0;else{if(42!==e)break;++f,++f,N()}else if(t&&45===e){if(45!==c.charCodeAt(f+1)||62!==c.charCodeAt(f+2))break;f+=3,B(3)}else{if(60!==e)break;if("!--"!==c.slice(f+1,f+4))break;++f,++f,++f,++f,B(4)}}function O(e){var t,r,n,a=0;for(r="u"===e?4:2,t=0;t<r;++t){if(!(f<d&&_(c[f])))return"";n=c[f++],a=16*a+"0123456789abcdef".indexOf(n.toLowerCase())}return String.fromCharCode(a)}function M(){var e,t;for(e=c.charCodeAt(f++),t=String.fromCharCode(e),92===e&&(117!==c.charCodeAt(f)&&ie({},o.UnexpectedToken,"ILLEGAL"),++f,(e=O("u"))&&"\\"!==e&&S(e.charCodeAt(0))||ie({},o.UnexpectedToken,"ILLEGAL"),t=e);f<d&&k(e=c.charCodeAt(f));)++f,t+=String.fromCharCode(e),92===e&&(t=t.substr(0,t.length-1),117!==c.charCodeAt(f)&&ie({},o.UnexpectedToken,"ILLEGAL"),++f,(e=O("u"))&&"\\"!==e&&k(e.charCodeAt(0))||ie({},o.UnexpectedToken,"ILLEGAL"),t+=e);return t}function V(){var e,t;for(e=f++;f<d;){if(92===(t=c.charCodeAt(f)))return f=e,M();if(!k(t))break;++f}return c.slice(e,f)}function P(){var e,r;return e=f,{type:1===(r=92===c.charCodeAt(f)?M():V()).length?t.Identifier:j(r)?t.Keyword:"null"===r?t.NullLiteral:"true"===r||"false"===r?t.BooleanLiteral:t.Identifier,value:r,lineNumber:h,lineStart:p,start:e,end:f}}function R(){var e,r,n,a,i=f,s=c.charCodeAt(f),u=c[f];switch(s){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++f,v.tokenize&&(40===s?v.openParenToken=v.tokens.length:123===s&&(v.openCurlyToken=v.tokens.length)),{type:t.Punctuator,value:String.fromCharCode(s),lineNumber:h,lineStart:p,start:i,end:f};default:if(61===(e=c.charCodeAt(f+1)))switch(s){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return f+=2,{type:t.Punctuator,value:String.fromCharCode(s)+String.fromCharCode(e),lineNumber:h,lineStart:p,start:i,end:f};case 33:case 61:return f+=2,61===c.charCodeAt(f)&&++f,{type:t.Punctuator,value:c.slice(i,f),lineNumber:h,lineStart:p,start:i,end:f}}}return">>>="===(a=c.substr(f,4))?(f+=4,{type:t.Punctuator,value:a,lineNumber:h,lineStart:p,start:i,end:f}):">>>"===(n=a.substr(0,3))||"<<="===n||">>="===n?(f+=3,{type:t.Punctuator,value:n,lineNumber:h,lineStart:p,start:i,end:f}):u===(r=n.substr(0,2))[1]&&"+-<>&|".indexOf(u)>=0||"=>"===r?(f+=2,{type:t.Punctuator,value:r,lineNumber:h,lineStart:p,start:i,end:f}):"<>=!+-*%&|^/".indexOf(u)>=0?(++f,{type:t.Punctuator,value:u,lineNumber:h,lineStart:p,start:i,end:f}):void ie({},o.UnexpectedToken,"ILLEGAL")}function F(e){for(var r="";f<d&&_(c[f]);)r+=c[f++];return 0===r.length&&ie({},o.UnexpectedToken,"ILLEGAL"),S(c.charCodeAt(f))&&ie({},o.UnexpectedToken,"ILLEGAL"),{type:t.NumericLiteral,value:parseInt("0x"+r,16),lineNumber:h,lineStart:p,start:e,end:f}}function D(e){for(var r="0"+c[f++];f<d&&E(c[f]);)r+=c[f++];return(S(c.charCodeAt(f))||w(c.charCodeAt(f)))&&ie({},o.UnexpectedToken,"ILLEGAL"),{type:t.NumericLiteral,value:parseInt(r,8),octal:!0,lineNumber:h,lineStart:p,start:e,end:f}}function z(){var e,t;for(e=f+1;e<d;++e){if("8"===(t=c[e])||"9"===t)return!1;if(!E(t))return!0}return!0}function q(){var e,r,n;if(b(w((n=c[f]).charCodeAt(0))||"."===n,"Numeric literal must start with a decimal digit or a decimal point"),r=f,e="","."!==n){if(e=c[f++],n=c[f],"0"===e){if("x"===n||"X"===n)return++f,F(r);if(E(n)&&z())return D(r)}for(;w(c.charCodeAt(f));)e+=c[f++];n=c[f]}if("."===n){for(e+=c[f++];w(c.charCodeAt(f));)e+=c[f++];n=c[f]}if("e"===n||"E"===n)if(e+=c[f++],"+"!==(n=c[f])&&"-"!==n||(e+=c[f++]),w(c.charCodeAt(f)))for(;w(c.charCodeAt(f));)e+=c[f++];else ie({},o.UnexpectedToken,"ILLEGAL");return S(c.charCodeAt(f))&&ie({},o.UnexpectedToken,"ILLEGAL"),{type:t.NumericLiteral,value:parseFloat(e),lineNumber:h,lineStart:p,start:r,end:f}}function $(){var e,r,n,a,i,s,u,l,y="",g=!1;for(u=h,l=p,b("'"===(e=c[f])||'"'===e,"String literal must starts with a quote"),r=f,++f;f<d;){if((n=c[f++])===e){e="";break}if("\\"===n)if((n=c[f++])&&x(n.charCodeAt(0)))++h,"\r"===n&&"\n"===c[f]&&++f,p=f;else switch(n){case"u":case"x":s=f,(i=O(n))?y+=i:(f=s,y+=n);break;case"n":y+="\n";break;case"r":y+="\r";break;case"t":y+="\t";break;case"b":y+="\b";break;case"f":y+="\f";break;case"v":y+="\v";break;default:E(n)?(0!==(a="01234567".indexOf(n))&&(g=!0),f<d&&E(c[f])&&(g=!0,a=8*a+"01234567".indexOf(c[f++]),"0123".indexOf(n)>=0&&f<d&&E(c[f])&&(a=8*a+"01234567".indexOf(c[f++]))),y+=String.fromCharCode(a)):y+=n}else{if(x(n.charCodeAt(0)))break;y+=n}}return""!==e&&ie({},o.UnexpectedToken,"ILLEGAL"),{type:t.StringLiteral,value:y,octal:g,startLineNumber:u,startLineStart:l,lineNumber:h,lineStart:p,start:r,end:f}}function W(e,t){var r;try{r=new RegExp(e,t)}catch(e){ie({},o.InvalidRegExp)}return r}function G(){var e,t,r,n;for(b("/"===(e=c[f]),"Regular expression literal must start with a slash"),t=c[f++],r=!1,n=!1;f<d;)if(t+=e=c[f++],"\\"===e)x((e=c[f++]).charCodeAt(0))&&ie({},o.UnterminatedRegExp),t+=e;else if(x(e.charCodeAt(0)))ie({},o.UnterminatedRegExp);else if(r)"]"===e&&(r=!1);else{if("/"===e){n=!0;break}"["===e&&(r=!0)}return n||ie({},o.UnterminatedRegExp),{value:t.substr(1,t.length-2),literal:t}}function H(){var e,t,r,n;for(t="",r="";f<d&&k((e=c[f]).charCodeAt(0));)if(++f,"\\"===e&&f<d)if("u"===(e=c[f])){if(n=++f,e=O("u"))for(r+=e,t+="\\u";n<f;++n)t+=c[n];else f=n,r+="u",t+="\\u";oe({},o.UnexpectedToken,"ILLEGAL")}else t+="\\",oe({},o.UnexpectedToken,"ILLEGAL");else r+=e,t+=e;return{value:r,literal:t}}function K(){var e,r,n,a;return g=null,T(),e=f,r=G(),n=H(),a=W(r.value,n.value),v.tokenize?{type:t.RegularExpression,value:a,lineNumber:h,lineStart:p,start:e,end:f}:{literal:r.literal+n.literal,value:a,start:e,end:f}}function Y(){var e,t,r,n;return T(),e=f,t={start:{line:h,column:f-p}},r=K(),t.end={line:h,column:f-p},v.tokenize||(v.tokens.length>0&&(n=v.tokens[v.tokens.length-1]).range[0]===e&&"Punctuator"===n.type&&("/"!==n.value&&"/="!==n.value||v.tokens.pop()),v.tokens.push({type:"RegularExpression",value:r.literal,range:[e,f],loc:t})),r}function X(e){return e.type===t.Identifier||e.type===t.Keyword||e.type===t.BooleanLiteral||e.type===t.NullLiteral}function Z(){var e,t;if(!(e=v.tokens[v.tokens.length-1]))return Y();if("Punctuator"===e.type){if("]"===e.value)return R();if(")"===e.value)return!(t=v.tokens[v.openParenToken-1])||"Keyword"!==t.type||"if"!==t.value&&"while"!==t.value&&"for"!==t.value&&"with"!==t.value?R():Y();if("}"===e.value){if(v.tokens[v.openCurlyToken-3]&&"Keyword"===v.tokens[v.openCurlyToken-3].type){if(!(t=v.tokens[v.openCurlyToken-4]))return R()}else{if(!v.tokens[v.openCurlyToken-4]||"Keyword"!==v.tokens[v.openCurlyToken-4].type)return R();if(!(t=v.tokens[v.openCurlyToken-5]))return Y()}return n.indexOf(t.value)>=0?R():Y()}return Y()}return"Keyword"===e.type&&"this"!==e.value?Y():R()}function J(){var e;return T(),f>=d?{type:t.EOF,lineNumber:h,lineStart:p,start:f,end:f}:S(e=c.charCodeAt(f))?P():40===e||41===e||59===e?R():39===e||34===e?$():46===e?w(c.charCodeAt(f+1))?q():R():w(e)?q():v.tokenize&&47===e?Z():R()}function Q(){var e,n,a;return T(),e={start:{line:h,column:f-p}},n=J(),e.end={line:h,column:f-p},n.type!==t.EOF&&(a=c.slice(n.start,n.end),v.tokens.push({type:r[n.type],value:a,range:[n.start,n.end],loc:e})),n}function ee(){var e;return f=(e=g).end,h=e.lineNumber,p=e.lineStart,g=void 0!==v.tokens?Q():J(),f=e.end,h=e.lineNumber,p=e.lineStart,e}function te(){var e,t,r;e=f,t=h,r=p,g=void 0!==v.tokens?Q():J(),f=e,h=t,p=r}function re(e,t){this.line=e,this.column=t}function ne(e,t,r,n){this.start=new re(e,t),this.end=new re(r,n)}function ae(){var e,t,r,n;return e=f,t=h,r=p,T(),n=h!==t,f=e,h=t,p=r,n}function ie(e,t){var r,n=Array.prototype.slice.call(arguments,2),a=t.replace(/%(\d)/g,(function(e,t){return b(t<n.length,"Message reference must be in range"),n[t]}));throw"number"==typeof e.lineNumber?((r=new Error("Line "+e.lineNumber+": "+a)).index=e.start,r.lineNumber=e.lineNumber,r.column=e.start-p+1):((r=new Error("Line "+h+": "+a)).index=f,r.lineNumber=h,r.column=f-p+1),r.description=a,r}function oe(){try{ie.apply(null,arguments)}catch(e){if(!v.errors)throw e;v.errors.push(e)}}function se(e){if(e.type===t.EOF&&ie(e,o.UnexpectedEOS),e.type===t.NumericLiteral&&ie(e,o.UnexpectedNumber),e.type===t.StringLiteral&&ie(e,o.UnexpectedString),e.type===t.Identifier&&ie(e,o.UnexpectedIdentifier),e.type===t.Keyword){if(I(e.value))ie(e,o.UnexpectedReserved);else if(l&&C(e.value))return void oe(e,o.StrictReservedWord);ie(e,o.UnexpectedToken,e.value)}ie(e,o.UnexpectedToken,e.value)}function ue(e){var r=ee();r.type===t.Punctuator&&r.value===e||se(r)}function ce(e){var r=ee();r.type===t.Keyword&&r.value===e||se(r)}function le(e){return g.type===t.Punctuator&&g.value===e}function fe(e){return g.type===t.Keyword&&g.value===e}function he(){var e;return g.type===t.Punctuator&&("="===(e=g.value)||"*="===e||"/="===e||"%="===e||"+="===e||"-="===e||"<<="===e||">>="===e||">>>="===e||"&="===e||"^="===e||"|="===e)}function pe(){var e,r=f,n=h,a=p,i=g;if(59===c.charCodeAt(f)||le(";"))ee();else{if(e=h,T(),h!==e)return f=r,h=n,p=a,void(g=i);g.type===t.EOF||le("}")||se(g)}}function de(e){return e.type===a.Identifier||e.type===a.MemberExpression}function ye(){var e,t=[];for(e=g,ue("[");!le("]");)le(",")?(ee(),t.push(null)):(t.push(Te()),le("]")||ue(","));return ee(),y.markEnd(y.createArrayExpression(t),e)}function ge(e,t){var r,n,a;return r=l,a=g,n=st(),t&&l&&L(e[0].name)&&oe(t,o.StrictParamName),l=r,y.markEnd(y.createFunctionExpression(null,e,[],n),a)}function me(){var e,r;return r=g,(e=ee()).type===t.StringLiteral||e.type===t.NumericLiteral?(l&&e.octal&&oe(e,o.StrictOctalLiteral),y.markEnd(y.createLiteral(e),r)):y.markEnd(y.createIdentifier(e.value),r)}function ve(){var e,r,n,a,i,s;return s=g,(e=g).type===t.Identifier?(n=me(),"get"!==e.value||le(":")?"set"!==e.value||le(":")?(ue(":"),a=Te(),y.markEnd(y.createProperty("init",n,a),s)):(r=me(),ue("("),(e=g).type!==t.Identifier?(ue(")"),oe(e,o.UnexpectedToken,e.value),a=ge([])):(i=[Pe()],ue(")"),a=ge(i,e)),y.markEnd(y.createProperty("set",r,a),s)):(r=me(),ue("("),ue(")"),a=ge([]),y.markEnd(y.createProperty("get",r,a),s))):e.type!==t.EOF&&e.type!==t.Punctuator?(r=me(),ue(":"),a=Te(),y.markEnd(y.createProperty("init",r,a),s)):void se(e)}function be(){var e,t,r,n,s,u=[],c={},f=String;for(s=g,ue("{");!le("}");)t=(e=ve()).key.type===a.Identifier?e.key.name:f(e.key.value),n="init"===e.kind?i.Data:"get"===e.kind?i.Get:i.Set,r="$"+t,Object.prototype.hasOwnProperty.call(c,r)?(c[r]===i.Data?l&&n===i.Data?oe({},o.StrictDuplicateProperty):n!==i.Data&&oe({},o.AccessorDataProperty):n===i.Data?oe({},o.AccessorDataProperty):c[r]&n&&oe({},o.AccessorGetSet),c[r]|=n):c[r]=n,u.push(e),le("}")||ue(",");return ue("}"),y.markEnd(y.createObjectExpression(u),s)}function we(){var e;return ue("("),e=Oe(),ue(")"),e}function _e(){var e,r,n,a;if(le("("))return we();if(le("["))return ye();if(le("{"))return be();if(e=g.type,a=g,e===t.Identifier)n=y.createIdentifier(ee().value);else if(e===t.StringLiteral||e===t.NumericLiteral)l&&g.octal&&oe(g,o.StrictOctalLiteral),n=y.createLiteral(ee());else if(e===t.Keyword){if(fe("function"))return lt();fe("this")?(ee(),n=y.createThisExpression()):se(ee())}else e===t.BooleanLiteral?((r=ee()).value="true"===r.value,n=y.createLiteral(r)):e===t.NullLiteral?((r=ee()).value=null,n=y.createLiteral(r)):le("/")||le("/=")?(n=void 0!==v.tokens?y.createLiteral(Y()):y.createLiteral(K()),te()):se(ee());return y.markEnd(n,a)}function Ee(){var e=[];if(ue("("),!le(")"))for(;f<d&&(e.push(Te()),!le(")"));)ue(",");return ue(")"),e}function Ae(){var e,t;return t=g,X(e=ee())||se(e),y.markEnd(y.createIdentifier(e.value),t)}function xe(){return ue("."),Ae()}function Se(){var e;return ue("["),e=Oe(),ue("]"),e}function ke(){var e,t,r;return r=g,ce("new"),e=Ce(),t=le("(")?Ee():[],y.markEnd(y.createNewExpression(e,t),r)}function Ie(){var e,t,r,n,a=m.allowIn;for(n=g,m.allowIn=!0,e=fe("new")?ke():_e();;){if(le("."))r=xe(),e=y.createMemberExpression(".",e,r);else if(le("("))t=Ee(),e=y.createCallExpression(e,t);else{if(!le("["))break;r=Se(),e=y.createMemberExpression("[",e,r)}y.markEnd(e,n)}return m.allowIn=a,e}function Ce(){var e,t,r;for(b(m.allowIn,"callee of new expression always allow in keyword."),r=g,e=fe("new")?ke():_e();le(".")||le("[");)le("[")?(t=Se(),e=y.createMemberExpression("[",e,t)):(t=xe(),e=y.createMemberExpression(".",e,t)),y.markEnd(e,r);return e}function Le(){var e,r,n=g;return e=Ie(),g.type===t.Punctuator&&(!le("++")&&!le("--")||ae()||(l&&e.type===a.Identifier&&L(e.name)&&oe({},o.StrictLHSPostfix),de(e)||oe({},o.InvalidLHSInAssignment),r=ee(),e=y.markEnd(y.createPostfixExpression(r.value,e),n))),e}function je(){var e,r,n;return g.type!==t.Punctuator&&g.type!==t.Keyword?r=Le():le("++")||le("--")?(n=g,e=ee(),r=je(),l&&r.type===a.Identifier&&L(r.name)&&oe({},o.StrictLHSPrefix),de(r)||oe({},o.InvalidLHSInAssignment),r=y.createUnaryExpression(e.value,r),r=y.markEnd(r,n)):le("+")||le("-")||le("~")||le("!")?(n=g,e=ee(),r=je(),r=y.createUnaryExpression(e.value,r),r=y.markEnd(r,n)):fe("delete")||fe("void")||fe("typeof")?(n=g,e=ee(),r=je(),r=y.createUnaryExpression(e.value,r),r=y.markEnd(r,n),l&&"delete"===r.operator&&r.argument.type===a.Identifier&&oe({},o.StrictDelete)):r=Le(),r}function Ue(e,r){var n=0;if(e.type!==t.Punctuator&&e.type!==t.Keyword)return 0;switch(e.value){case"||":n=1;break;case"&&":n=2;break;case"|":n=3;break;case"^":n=4;break;case"&":n=5;break;case"==":case"!=":case"===":case"!==":n=6;break;case"<":case">":case"<=":case">=":case"instanceof":n=7;break;case"in":n=r?7:0;break;case"<<":case">>":case">>>":n=8;break;case"+":case"-":n=9;break;case"*":case"/":case"%":n=11}return n}function Be(){var e,t,r,n,a,i,o,s,u,c;if(e=g,u=je(),0===(a=Ue(n=g,m.allowIn)))return u;for(n.prec=a,ee(),t=[e,g],i=[u,n,o=je()];(a=Ue(g,m.allowIn))>0;){for(;i.length>2&&a<=i[i.length-2].prec;)o=i.pop(),s=i.pop().value,u=i.pop(),r=y.createBinaryExpression(s,u,o),t.pop(),e=t[t.length-1],y.markEnd(r,e),i.push(r);(n=ee()).prec=a,i.push(n),t.push(g),r=je(),i.push(r)}for(r=i[c=i.length-1],t.pop();c>1;)r=y.createBinaryExpression(i[c-1].value,i[c-2],r),c-=2,e=t.pop(),y.markEnd(r,e);return r}function Ne(){var e,t,r,n,a;return a=g,e=Be(),le("?")&&(ee(),t=m.allowIn,m.allowIn=!0,r=Te(),m.allowIn=t,ue(":"),n=Te(),e=y.createConditionalExpression(e,r,n),y.markEnd(e,a)),e}function Te(){var e,t,r,n,i;return e=g,i=g,n=t=Ne(),he()&&(de(t)||oe({},o.InvalidLHSInAssignment),l&&t.type===a.Identifier&&L(t.name)&&oe(e,o.StrictLHSAssignment),e=ee(),r=Te(),n=y.markEnd(y.createAssignmentExpression(e.value,t,r),i)),n}function Oe(){var e,t=g;if(e=Te(),le(",")){for(e=y.createSequenceExpression([e]);f<d&&le(",");)ee(),e.expressions.push(Te());y.markEnd(e,t)}return e}function Me(){for(var e,t=[];f<d&&!le("}")&&void 0!==(e=ft());)t.push(e);return t}function Ve(){var e,t;return t=g,ue("{"),e=Me(),ue("}"),y.markEnd(y.createBlockStatement(e),t)}function Pe(){var e,r;return r=g,(e=ee()).type!==t.Identifier&&se(e),y.markEnd(y.createIdentifier(e.value),r)}function Re(e){var t,r,n=null;return r=g,t=Pe(),l&&L(t.name)&&oe({},o.StrictVarName),"const"===e?(ue("="),n=Te()):le("=")&&(ee(),n=Te()),y.markEnd(y.createVariableDeclarator(t,n),r)}function Fe(e){var t=[];do{if(t.push(Re(e)),!le(","))break;ee()}while(f<d);return t}function De(){var e;return ce("var"),e=Fe(),pe(),y.createVariableDeclaration(e,"var")}function ze(e){var t,r;return r=g,ce(e),t=Fe(e),pe(),y.markEnd(y.createVariableDeclaration(t,e),r)}function qe(){return ue(";"),y.createEmptyStatement()}function $e(){var e=Oe();return pe(),y.createExpressionStatement(e)}function We(){var e,t,r;return ce("if"),ue("("),e=Oe(),ue(")"),t=ot(),fe("else")?(ee(),r=ot()):r=null,y.createIfStatement(e,t,r)}function Ge(){var e,t,r;return ce("do"),r=m.inIteration,m.inIteration=!0,e=ot(),m.inIteration=r,ce("while"),ue("("),t=Oe(),ue(")"),le(";")&&ee(),y.createDoWhileStatement(e,t)}function He(){var e,t,r;return ce("while"),ue("("),e=Oe(),ue(")"),r=m.inIteration,m.inIteration=!0,t=ot(),m.inIteration=r,y.createWhileStatement(e,t)}function Ke(){var e,t,r;return r=g,e=ee(),t=Fe(),y.markEnd(y.createVariableDeclaration(t,e.value),r)}function Ye(){var e,t,r,n,a,i,s,u=m.allowIn;return