Error.stackTraceLimit=1/0;var$global,$module,$NaN=NaN;if("undefined"!=typeofwindow?$global=window:"undefined"!=typeofself?$global=self:"undefined"!=typeofglobal?($global=global).require=require:$global=this,void0===$global||void0===$global.Array)thrownewError("no global object found");if("undefined"!=typeofmodule&&($module=module),!$global.fs&&$global.require)try{varfs=$global.require("fs");"object"==typeoffs&&null!==fs&&0!==Object.keys(fs).length&&($global.fs=fs)}catch(e){}if(!$global.fs){varoutputBuf="",decoder=newTextDecoder("utf-8");$global.fs={constants:{O_WRONLY:-1,O_RDWR:-1,O_CREAT:-1,O_TRUNC:-1,O_APPEND:-1,O_EXCL:-1},writeSync:function(e,n){varr=(outputBuf+=decoder.decode(n)).lastIndexOf("\n");return-1!=r&&(console.log(outputBuf.substr(0,r)),outputBuf=outputBuf.substr(r+1)),n.length},write:function(e,n,r,t,i,a){0===r&&t===n.length&&null===i?a(null,this.writeSync(e,n)):a(enosys())}}}var$throwRuntimeError,$linknames={},$packages={},$idCounter=0,$keys=function(e){returne?Object.keys(e):[]},$flushConsole=function(){},$throwNilPointerError=function(){$throwRuntimeError("invalid memory address or nil pointer dereference")},$call=function(e,n,r){returne.apply(n,r)},$makeFunc=function(e){returnfunction(){return$externalize(e(this,new($sliceType($jsObjectPtr))($global.Array.prototype.slice.call(arguments,[]))),$emptyInterface)}},$unused=function(e){},$print=console.log;if(void0!==$global.process&&$global.require)try{varutil=$global.require("util");$print=function(){$global.process.stderr.write(util.format.apply(this,arguments))}}catch(e){}var$println=console.log,$initAllLinknames=function(){for(vare=$keys($packages),n=0;n<e.length;n++){varr=$packages[e[n]].$initLinknames;"function"==typeofr&&r()}},$mapArray=function(e,n){for(varr=newe.constructor(e.length),t=0;t<e.length;t++)r[t]=n(e[t]);returnr},$methodVal=function(e,n){varr=e.$methodVals||{};e.$methodVals=r;vart=r[n];returnvoid0!==t?t:(t=e[n].bind(e),r[n]=t,t)},$methodExpr=function(e,n){varr=e.prototype[n];returnvoid0===r.$expr&&(r.$expr=function(){$stackDepthOffset--;try{returne.wrapped&&(arguments[0]=newe(arguments[0])),Function.call.apply(r,arguments)}finally{$stackDepthOffset++}}),r.$expr},$ifaceMethodExprs={},$ifaceMethodExpr=function(e){varn=$ifaceMethodExprs["$"+e];returnvoid0===n&&(n=$ifaceMethodExprs["$"+e]=function(){$stackDepthOffset--;try{returnFunction.call.apply(arguments[0][e],arguments)}finally{$stackDepthOffset++}}),n},$subslice=function(e,n,r,t){if(void0===r&&(r=e.$length),void0===t&&(t=e.$capacity),(n<0||r<n||t<r||r>e.$capacity||t>e.$capacity)&&$throwRuntimeError("slice bounds out of range"),e===e.constructor.nil)returne;vari=newe.constructor(e.$array);returni.$offset=e.$offset+n,i.$length=r-n,i.$capacity=t-n,i},$substring=function(e,n,r){return(n<0||r<n||r>e.length)&&$throwRuntimeError("slice bounds out of range"),e.substring(n,r)},$sliceToNativeArray=function(e){returne.$array.constructor!==Array?e.$array.subarray(e.$offset,e.$offset+e.$length):e.$array.slice(e.$offset,e.$offset+e.$length)},$sliceToGoArray=function(e,n){varr=n.elem;returnvoid0!==r&&e.$length<r.len&&$throwRuntimeError("cannot convert slice with length "+e.$length+" to pointer to array with length "+r.len),e==e.constructor.nil?n.nil:e.$array.constructor!==Array?e.$array.subarray(e.$offset,e.$offset+r.len):0==e.$offset&&e.$length==e.$capacity&&e.$length==r.len?e.$array:0==r.len?newr([]):void$throwRuntimeError("gopherjs: non-numeric slice to underlying array conversion is not supported for subslices")},$convertSliceType=function(e,n){returne==e.constructor.nil?n.nil:$subslice(newn(e.$array),e.$offset,e.$offset+e.$length)},$decodeRune=function(e,n){varr=e.charCodeAt(n);if(r<128)return[r,1];if(r!=r||r<192)return[65533,1];vart=e.charCodeAt(n+1);if(t!=t||t<128||192<=t)return[65533,1];if(r<224)return(a=(31&r)<<6|63&t)<=127?[65533,1]:[a,2];vari=e.charCodeAt(n+2);if(i!=i||i<128||192<=i)return[65533,1];if(r<240)return(a=(15&r)<<12|(63&t)<<6|63&i)<=2047?[65533,1]:55296<=a&&a<=57343?[65533,1]:[a,3];vara,o=e.charCodeAt(n+3);returno!=o||o
$packages["runtime"]=(function(){var$pkg={},$init,A,C,D,L,AF,AT,AX,AY,AZ,BA,BB,BD,H,I,N,O,AM,E,F,J,K,M,P,Q,R,AE,AG,AS,AU,AV,AW;A=$packages["github.com/gopherjs/gopherjs/js"];C=$pkg._type=$newType(0,$kindStruct,"runtime._type",true,"runtime",false,function(str_){this.$val=this;if(arguments.length===0){this.str="";return;}this.str=str_;});D=$pkg.TypeAssertionError=$newType(0,$kindStruct,"runtime.TypeAssertionError",true,"runtime",true,function(_interface_,concrete_,asserted_,missingMethod_){this.$val=this;if(arguments.length===0){this._interface=AZ.nil;this.concrete=AZ.nil;this.asserted=AZ.nil;this.missingMethod="";return;}this._interface=_interface_;this.concrete=concrete_;this.asserted=asserted_;this.missingMethod=missingMethod_;});L=$pkg.basicFrame=$newType(0,$kindStruct,"runtime.basicFrame",true,"runtime",false,function(FuncName_,File_,Line_,Col_){this.$val=this;if(arguments.length===0){this.FuncName="";this.File="";this.Line=0;this.Col=0;return;}this.FuncName=FuncName_;this.File=File_;this.Line=Line_;this.Col=Col_;});AF=$pkg.Func=$newType(0,$kindStruct,"runtime.Func",true,"runtime",true,function(name_,file_,line_,opaque_){this.$val=this;if(arguments.length===0){this.name="";this.file="";this.line=0;this.opaque=newBA.ptr();return;}this.name=name_;this.file=file_;this.line=line_;this.opaque=opaque_;});AT=$pkg.errorString=$newType(8,$kindString,"runtime.errorString",true,"runtime",false,null);AX=$ptrType(AF);AY=$sliceType(AX);AZ=$ptrType(C);BA=$structType("",[]);BB=$sliceType(L);BD=$ptrType(D);C.ptr.prototype.string=function(){vara;a=this;returna.str;};C.prototype.string=function(){returnthis.$val.string();};C.ptr.prototype.pkgpath=function(){vara;a=this;return"";};C.prototype.pkgpath=function(){returnthis.$val.pkgpath();};D.ptr.prototype.RuntimeError=function(){};D.prototype.RuntimeError=function(){returnthis.$val.RuntimeError();};D.ptr.prototype.Error=function(){vara,b,c,d,e;a=this;b="interface";if(!(a._interface===AZ.nil)){b=a._interface.string();}c=a.asserted.string();if(a.concrete===AZ.nil){return"interface conversion: "+b+" is nil, not "+c;}d=a.concrete.string();if(a.missingMethod===""){e="interface conversion: "+b+" is "+d+", not "+c;if(d===c){if(!(a.concrete.pkgpath()===a.asserted.pkgpath())){e=e+(" (types from different packages)");}else{e=e+(" (types from different scopes)");}}returne;}return"interface conversion: "+d+" is not "+c+": missing method "+a.missingMethod;};D.prototype.Error=function(){returnthis.$val.Error();};E=function(){vara,b;a=$packages[$externalize("github.com/gopherjs/gopherjs/js",$String)];$jsObjectPtr=a.Object.ptr;$jsErrorPtr=a.Error.ptr;$throwRuntimeError=AU;AM=$internalize($goVersion,$String);b=$ifaceNil;b=newD.ptr(AZ.nil,AZ.nil,AZ.nil,"");$unused(b);};F=function(){vara,b,c;a=$global.process;if(a===undefined){return"/";}b=a.env.GOPHERJS_GOROOT;if(!(b===undefined)&&!($internalize(b,$String)==="")){return$internalize(b,$String);}else{c=a.env.GOROOT;if(!(c===undefined)&&!($internalize(c,$String)==="")){return$internalize(c,$String);}}return"/usr/local/go";};$pkg.GOROOT=F;J=function(a,b,c,d){vara,b,c,d,e,f,g,h,i,j,k,l;e=b+":"+K(c)+":"+K(d);f=(g=H[$String.keyFor(e)],g!==undefined?[g.v,true]:[0,false]);h=f[0];i=f[1];if(i){returnh;}j=newAF.ptr(a,b,c,newBA.ptr());k=((I.$length>>>0));I=$append(I,j);l=e;(H||$throwRuntimeError("assignment to entry in nil map"))[$String.keyFor(l)]={k:l,v:k};returnk;};K=function(a){vara;return$internalize(new($global.String)(a),$String);};M=function(a,b){vara,b,c;a=(a+1>>0)+1>>0;c=new($global.Error)().stack.split($externalize("\n",$String)).slice(a,a+b>>0);returnP(c);};P=function(a){vara,b,c,d,e,f,g,h,i,j;b=newBB([]);c=$parseInt(a.length);d=0;while(true){if(!(d<c)){break;}e=$clone(Q(a[d]),L);if((f=N[$String.keyFor(e.FuncName)],f!==undefined?f.v:false)){d=d+(1)>>0;continue;}g=(h=O[$String.keyFor(e.FuncName)],h!==undefined?[h.v,true]:["",false]);i=g[0];j=g[1];if(j){e.FuncName=i;}b=$append(b,e);if(e.FuncName==="runtime.goexit"){break;}d=d+(1)>>0;}returnb;};Q=function(a){vara,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q;if(($parseInt(a.indexOf($externaliz
$packages["internal/abi"]=(function(){var$pkg={},$init,A,D;A=$packages["internal/goarch"];D=function(){$throwRuntimeError("native function not implemented: internal/abi.FuncPCABI0");};$pkg.FuncPCABI0=D;$init=function(){$pkg.$init=function(){};var$f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case0:$r=A.$init();$s=1;case1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){breaks;}}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return$f;};$pkg.$init=$init;return$pkg;})();
$packages["internal/itoa"]=(function(){var$pkg={},$init,C,D,A,B;C=$arrayType($Uint8,20);D=$sliceType($Uint8);A=function(a){vara;if(a<0){return"-"+B(((-a>>>0)));}returnB(((a>>>0)));};$pkg.Itoa=A;B=function(a){vara,b,c,d,e;if(a===0){return"0";}b=C.zero();c=19;while(true){if(!(a>=10)){break;}e=(d=a/10,(d===d&&d!==1/0&&d!==-1/0)?d>>>0:$throwRuntimeError("integer divide by zero"));((c<0||c>=b.length)?($throwRuntimeError("index out of range"),undefined):b[c]=((((48+a>>>0)-(e*10>>>0)>>>0)<<24>>>24)));c=c-(1)>>0;a=e;}((c<0||c>=b.length)?($throwRuntimeError("index out of range"),undefined):b[c]=(((48+a>>>0)<<24>>>24)));return($bytesToString($subslice(newD(b),c)));};$pkg.Uitoa=B;$init=function(){$pkg.$init=function(){};var$f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case0:}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return$f;};$pkg.$init=$init;return$pkg;})();
$packages["math/bits"]=(function(){var$pkg={},$init,F,G,H,K,L,AI,AJ,AL,AQ;H=function(e){vare;if(true){returnK(((e>>>0)));}returnL((new$Uint64(0,e)));};$pkg.TrailingZeros=H;K=function(e){vare,f;if(e===0){return32;}return(((f=($imul((((e&(-e>>>0))>>>0)),125613361)>>>0)>>>27>>>0,((f<0||f>=F.length)?($throwRuntimeError("index out of range"),undefined):F[f]))>>0));};$pkg.TrailingZeros32=K;L=function(e){vare,f,g;if((e.$high===0&&e.$low===0)){return64;}return(((f=$shiftRightUint64($mul64(((g=new$Uint64(-e.$high,-e.$low),new$Uint64(e.$high&g.$high,(e.$low&g.$low)>>>0))),new$Uint64(66559345,3033172745)),58),(($flatten64(f)<0||$flatten64(f)>=G.length)?($throwRuntimeError("index out of range"),undefined):G[$flatten64(f)]))>>0));};$pkg.TrailingZeros64=L;AI=function(e){vare,f,g,h;f=0;if(e>=65536){e=(g=(16),g<32?(e>>>g):0)>>>0;f=16;}if(e>=256){e=(h=(8),h<32?(e>>>h):0)>>>0;f=f+(8)>>0;}f=f+(("\x00\x01\x02\x02\x03\x03\x03\x03\x04\x04\x04\x04\x04\x04\x04\x04\x05\x05\x05\x05\x05\x05\x05\x05\x05\x05\x05\x05\x05\x05\x05\x05\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b".charCodeAt(e)>>0))>>0;returnf;};$pkg.Len32=AI;AJ=function(e){vare,f;f=0;if((e.$high>1||(e.$high===1&&e.$low>=0))){e=$shiftRightUint64(e,(32));f=32;}if((e.$high>0||(e.$high===0&&e.$low>=65536))){e=$shiftRightUint64(e,(16));f=f+(16)>>0;}if((e.$high>0||(e.$high===0&&e.$low>=256))){e=$shiftRightUint64(e,(8));f=f+(8)>>0;}f=f+(("\x00\x01\x02\x02\x03\x03\x03\x03\x04\x04\x04\x04\x04\x04\x04\x04\x05\x05\x05\x05\x05\x05\x05\x05\x05\x05\x05\x05\x05\x05\x05\x05\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b".charCodeAt($flatten64(e))>>0))>>0;returnf;};$pkg.Len64=AJ;AL=function(e,f,g){vare,f,g,h,i,j,k,l,m;h=new$Uint64(0,0);i=new$Uint64(0,0);h=(j=new$Uint64(e.$high+f.$high,e.$low+f.$low),new$Uint64(j.$high+g.$high,j.$low+g.$low));i=$shiftRightUint64(((k=new$Uint64(e.$high&f.$high,(e.$low&f.$low)>>>0),l=(m=new$Uint64(e.$high|f.$high,(e.$low|f.$low)>>>0),new$Uint64(m.$high&~h.$high,(m.$low&~h.$low)>>>0)),new$Uint64(k.$high|l.$high,(k.$low|l.$low)>>>0))),63);return[h,i];};$pkg.Add64=AL;AQ=function(e,f){vare,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v;g=new$Uint64(0,0);h=new$Uint64(0,0);i=new$Uint64(e.$high&0,(e.$low&4294967295)>>>0);j=$shiftRightUint64(e,32);k=new$Uint64(f.$high&0,(f.$low&4294967295)>>>0);l=$shiftRightUint64(f,32);m=$mul64(i,k);p=(n=$mul64(j,k),o=$shiftRightUint64(m,32),new$Uint64(n.$high+o.$high,n.$low+o.$low));q=new$Uint64(p.$high&0,(p.$low&4294967295)>>>0);r=$shiftRightUint64(p,32);q=(s=$mul64(i,l),new$Uint64(q.$high+s.$high,q.$low+s.$low));g=(t=(u=$mul64(j,l),new$Uint64(u.$high+r.$high,u.$low+r.$low)),v=$shiftRightUint64(q,32),new$Uint64(t.$high+v.$high,t.$low+v.$low));h=$mul64(e,f);return[g,h];};$pkg.Mul64=AQ;$init=function(){$pkg.$init=function(){};var$f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case0
$packages["unicode/utf8"]=(function(){var$pkg={},$init,B,A,C,F,G,J,K,N,O,R,S;B=$pkg.acceptRange=$newType(0,$kindStruct,"utf8.acceptRange",true,"unicode/utf8",false,function(lo_,hi_){this.$val=this;if(arguments.length===0){this.lo=0;this.hi=0;return;}this.lo=lo_;this.hi=hi_;});F=function(a){vara,aa,ab,ac,ad,ae,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;b=0;c=0;d=a.$length;if(d<1){e=65533;f=0;b=e;c=f;return[b,c];}g=(0>=a.$length?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+0]);h=((g<0||g>=A.length)?($throwRuntimeError("index out of range"),undefined):A[g]);if(h>=240){i=(((h>>0))<<31>>0)>>31>>0;j=(((((0>=a.$length?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+0])>>0))&~i)>>0)|(65533&i);k=1;b=j;c=k;return[b,c];}l=((((h&7)>>>0)>>0));n=$clone((m=h>>>4<<24>>>24,((m<0||m>=C.length)?($throwRuntimeError("index out of range"),undefined):C[m])),B);if(d<l){o=65533;p=1;b=o;c=p;return[b,c];}q=(1>=a.$length?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+1]);if(q<n.lo||n.hi<q){r=65533;s=1;b=r;c=s;return[b,c];}if(l<=2){t=(((((g&31)>>>0)>>0))<<6>>0)|((((q&63)>>>0)>>0));u=2;b=t;c=u;return[b,c];}v=(2>=a.$length?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+2]);if(v<128||191<v){w=65533;x=1;b=w;c=x;return[b,c];}if(l<=3){y=((((((g&15)>>>0)>>0))<<12>>0)|(((((q&63)>>>0)>>0))<<6>>0))|((((v&63)>>>0)>>0));z=3;b=y;c=z;return[b,c];}aa=(3>=a.$length?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+3]);if(aa<128||191<aa){ab=65533;ac=1;b=ab;c=ac;return[b,c];}ad=(((((((g&7)>>>0)>>0))<<18>>0)|(((((q&63)>>>0)>>0))<<12>>0))|(((((v&63)>>>0)>>0))<<6>>0))|((((aa&63)>>>0)>>0));ae=4;b=ad;c=ae;return[b,c];};$pkg.DecodeRune=F;G=function(a){vara,aa,ab,ac,ad,ae,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;b=0;c=0;d=a.length;if(d<1){e=65533;f=0;b=e;c=f;return[b,c];}g=a.charCodeAt(0);h=((g<0||g>=A.length)?($throwRuntimeError("index out of range"),undefined):A[g]);if(h>=240){i=(((h>>0))<<31>>0)>>31>>0;j=((((a.charCodeAt(0)>>0))&~i)>>0)|(65533&i);k=1;b=j;c=k;return[b,c];}l=((((h&7)>>>0)>>0));n=$clone((m=h>>>4<<24>>>24,((m<0||m>=C.length)?($throwRuntimeError("index out of range"),undefined):C[m])),B);if(d<l){o=65533;p=1;b=o;c=p;return[b,c];}q=a.charCodeAt(1);if(q<n.lo||n.hi<q){r=65533;s=1;b=r;c=s;return[b,c];}if(l<=2){t=(((((g&31)>>>0)>>0))<<6>>0)|((((q&63)>>>0)>>0));u=2;b=t;c=u;return[b,c];}v=a.charCodeAt(2);if(v<128||191<v){w=65533;x=1;b=w;c=x;return[b,c];}if(l<=3){y=((((((g&15)>>>0)>>0))<<12>>0)|(((((q&63)>>>0)>>0))<<6>>0))|((((v&63)>>>0)>>0));z=3;b=y;c=z;return[b,c];}aa=a.charCodeAt(3);if(aa<128||191<aa){ab=65533;ac=1;b=ab;c=ac;return[b,c];}ad=(((((((g&7)>>>0)>>0))<<18>>0)|(((((q&63)>>>0)>>0))<<12>>0))|(((((v&63)>>>0)>>0))<<6>>0))|((((aa&63)>>>0)>>0));ae=4;b=ad;c=ae;return[b,c];};$pkg.DecodeRuneInString=G;J=function(a){vara;if(a<0){return-1;}elseif(a<=127){return1;}elseif(a<=2047){return2;}elseif(55296<=a&&a<=57343){return-1;}elseif(a<=65535){return3;}elseif(a<=1114111){return4;}return-1;};$pkg.RuneLen=J;K=function(a,b){vara,b,c;c=((b>>>0));if(c<=127){(0>=a.$length?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+0]=((b<<24>>>24)));return1;}elseif(c<=2047){$unused((1>=a.$length?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+1]));(0>=a.$length?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+0]=((192|(((b>>6>>0)<<24>>>24)))>>>0));(1>=a.$length?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+1]=((128|((((b<<24>>>24))&63)>>>0))>>>0));return2;}elseif((c>1114111)||(55296<=c&&c<=57343)){b=65533;$unused((2>=a.$length?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+2]));(0>=a.$length?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+0]=((224|(((b>>12>>0)<<24>>>24)))>>>0));(1>=a.$length?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+1]=((128|(((((b>>6>>0)<<24>>>24))&63)>>>0))>>>0));(2>=a.$length?($throwRuntimeError("index out of range"),undefined):a.$array[a.
$packages["sync/atomic"]=(function(){var$pkg={},$init,A,B,AL,M,P,S,X,AA,AD,AF,AJ;A=$packages["github.com/gopherjs/gopherjs/js"];B=$pkg.Value=$newType(0,$kindStruct,"atomic.Value",true,"sync/atomic",true,function(v_){this.$val=this;if(arguments.length===0){this.v=$ifaceNil;return;}this.v=v_;});AL=$ptrType(B);M=function(ad,ae,af){varad,ae,af;if(ad.$get()===ae){ad.$set(af);returntrue;}returnfalse;};$pkg.CompareAndSwapInt32=M;P=function(ad,ae,af){varad,ae,af,ag;if((ag=ad.$get(),(ag.$high===ae.$high&&ag.$low===ae.$low))){ad.$set(af);returntrue;}returnfalse;};$pkg.CompareAndSwapUint64=P;S=function(ad,ae){varad,ae,af;af=ad.$get()+ae>>0;ad.$set(af);returnaf;};$pkg.AddInt32=S;X=function(ad){varad;returnad.$get();};$pkg.LoadInt32=X;AA=function(ad){varad;returnad.$get();};$pkg.LoadUint64=AA;AD=function(ad,ae){varad,ae;ad.$set(ae);};$pkg.StoreInt32=AD;AF=function(ad,ae){varad,ae;ad.$set(ae);};$pkg.StoreUint32=AF;B.ptr.prototype.Load=function(){varad,ae;ad=$ifaceNil;ae=this;ad=ae.v;returnad;};B.prototype.Load=function(){returnthis.$val.Load();};B.ptr.prototype.Store=function(ad){varad,ae;ae=this;ae.checkNew("store",ad);ae.v=ad;};B.prototype.Store=function(ad){returnthis.$val.Store(ad);};B.ptr.prototype.Swap=function(ad){varad,ae,af,ag,ah;ae=$ifaceNil;af=this;af.checkNew("swap",ad);ag=af.v;ah=ad;ae=ag;af.v=ah;ae=ae;returnae;};B.prototype.Swap=function(ad){returnthis.$val.Swap(ad);};B.ptr.prototype.CompareAndSwap=function(ad,ae){varad,ae,af,ag;af=false;ag=this;ag.checkNew("compare and swap",ae);if(!($interfaceIsEqual(ag.v,$ifaceNil)&&$interfaceIsEqual(ad,$ifaceNil))&&!AJ(ad,ae)){$panic(new$String("sync/atomic: compare and swap of inconsistently typed values into Value"));}if(!($interfaceIsEqual(ag.v,ad))){af=false;returnaf;}ag.v=ae;af=true;returnaf;};B.prototype.CompareAndSwap=function(ad,ae){returnthis.$val.CompareAndSwap(ad,ae);};B.ptr.prototype.checkNew=function(ad,ae){varad,ae,af;af=this;if($interfaceIsEqual(ae,$ifaceNil)){$panic(new$String("sync/atomic: "+ad+" of nil value into Value"));}if(!($interfaceIsEqual(af.v,$ifaceNil))&&!AJ(ae,af.v)){$panic(new$String("sync/atomic: "+ad+" of inconsistently typed value into Value"));}};B.prototype.checkNew=function(ad,ae){returnthis.$val.checkNew(ad,ae);};AJ=function(ad,ae){varad,ae;returnad.constructor===ae.constructor;};AL.methods=[{prop:"Load",name:"Load",pkg:"",typ:$funcType([],[$emptyInterface],false)},{prop:"Store",name:"Store",pkg:"",typ:$funcType([$emptyInterface],[],false)},{prop:"Swap",name:"Swap",pkg:"",typ:$funcType([$emptyInterface],[$emptyInterface],false)},{prop:"CompareAndSwap",name:"CompareAndSwap",pkg:"",typ:$funcType([$emptyInterface,$emptyInterface],[$Bool],false)},{prop:"checkNew",name:"checkNew",pkg:"sync/atomic",typ:$funcType([$String,$emptyInterface],[],false)}];B.init("sync/atomic",[{prop:"v",name:"v",embedded:false,exported:false,typ:$emptyInterface,tag:""}]);$init=function(){$pkg.$init=function(){};var$f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case0:$r=A.$init();$s=1;case1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){breaks;}}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return$f;};$pkg.$init=$init;return$pkg;})();
$packages["sort"]=(function(){var$pkg={},$init,A,V,AZ,BA,AN,AO,B,C,D,E,G,H,M,Q,U,AJ,AK,AL,AM,AP;A=$packages["internal/reflectlite"];V=$pkg.lessSwap=$newType(0,$kindStruct,"sort.lessSwap",true,"sort",false,function(Less_,Swap_){this.$val=this;if(arguments.length===0){this.Less=$throwNilPointerError;this.Swap=$throwNilPointerError;return;}this.Less=Less_;this.Swap=Swap_;});AZ=$funcType([$Int,$Int],[$Bool],false);BA=$funcType([$Int,$Int],[],false);B=function(a,b,c){var{a,b,c,d,e,f,g,$s,$r,$c}=$restore(this,{a,b,c});$s=$s||0;s:while(true){switch($s){case0:d=b+1>>0;case1:if(!(d<c)){$s=2;continue;}e=d;case3:if(!(e>b)){f=false;$s=5;continues;}g=a.Less(e,e-1>>0);$s=6;case6:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){breaks;}f=g;case5:if(!(f)){$s=4;continue;}$r=a.Swap(e,e-1>>0);$s=7;case7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){breaks;}e=e-(1)>>0;$s=3;continue;case4:d=d+(1)>>0;$s=1;continue;case2:$s=-1;return;}return;}var$f={$blk:B,$c:true,$r,a,b,c,d,e,f,g,$s};return$f;};C=function(a,b,c,d){var{a,b,c,d,e,f,g,h,i,$s,$r,$c}=$restore(this,{a,b,c,d});$s=$s||0;s:while(true){switch($s){case0:e=b;case1:f=($imul(2,e))+1>>0;if(f>=c){$s=2;continue;}if(!((f+1>>0)<c)){g=false;$s=5;continues;}h=a.Less(d+f>>0,(d+f>>0)+1>>0);$s=6;case6:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){breaks;}g=h;case5:if(g){$s=3;continue;}$s=4;continue;case3:f=f+(1)>>0;case4:i=a.Less(d+e>>0,d+f>>0);$s=9;case9:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){breaks;}if(!i){$s=7;continue;}$s=8;continue;case7:$s=-1;return;case8:$r=a.Swap(d+e>>0,d+f>>0);$s=10;case10:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){breaks;}e=f;$s=1;continue;case2:$s=-1;return;}return;}var$f={$blk:C,$c:true,$r,a,b,c,d,e,f,g,h,i,$s};return$f;};D=function(a,b,c){var{a,b,c,d,e,f,g,h,i,$s,$r,$c}=$restore(this,{a,b,c});$s=$s||0;s:while(true){switch($s){case0:d=b;e=0;f=c-b>>0;h=(g=((f-1>>0))/2,(g===g&&g!==1/0&&g!==-1/0)?g>>0:$throwRuntimeError("integer divide by zero"));case1:if(!(h>=0)){$s=2;continue;}$r=C($clone(a,V),h,f,d);$s=3;case3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){breaks;}h=h-(1)>>0;$s=1;continue;case2:i=f-1>>0;case4:if(!(i>=0)){$s=5;continue;}$r=a.Swap(d,d+i>>0);$s=6;case6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){breaks;}$r=C($clone(a,V),e,i,d);$s=7;case7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){breaks;}i=i-(1)>>0;$s=4;continue;case5:$s=-1;return;}return;}var$f={$blk:D,$c:true,$r,a,b,c,d,e,f,g,h,i,$s};return$f;};E=function(a,b,c,d){var{a,b,c,d,e,f,g,$s,$r,$c}=$restore(this,{a,b,c,d});$s=$s||0;s:while(true){switch($s){case0:e=a.Less(b,c);$s=3;case3:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){breaks;}if(e){$s=1;continue;}$s=2;continue;case1:$r=a.Swap(b,c);$s=4;case4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){breaks;}case2:f=a.Less(d,b);$s=7;case7:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){breaks;}if(f){$s=5;continue;}$s=6;continue;case5:$r=a.Swap(d,b);$s=8;case8:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){breaks;}g=a.Less(b,c);$s=11;case11:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){breaks;}if(g){$s=9;continue;}$s=10;continue;case9:$r=a.Swap(b,c);$s=12;case12:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){breaks;}case10:case6:$s=-1;return;}return;}var$f={$blk:E,$c:true,$r,a,b,c,d,e,f,g,$s};return$f;};G=function(a,b,c){var{a,aa,ab,ac,ad,ae,af,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r,$c}=$restore(this,{a,b,c});$s=$s||0;s:while(true){switch($s){case0:d=0;e=0;f=((((((b+c>>0)>>>0))>>>1>>>0)>>0));if((c-b>>0)>40){$s=1;continue;}$s=2;continue;case1:h=(g=((c-b>>0))/8,(g===g&&g!==1/0&&g!==-1/0)?g>>0:$throwRuntimeError("integer divide by zero"));$r=E($clone(a,V),b,b+h>>0,b+($imul(2,h))>>0);$s=3;case3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){breaks;}$r=E($clone(a,V),f,f-h>>0,f+h>>0);$s=4;case4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){breaks;}$r=E($clone(a,V),c-1>>0,(c-1>>0)-h>>0,(c-1>>0)-($imul(2,h))>>0);
$packages["internal/fmtsort"]=(function(){var$pkg={},$init,A,B,C,I,J,D,E,F,G,H;A=$packages["reflect"];B=$packages["sort"];C=$pkg.SortedMap=$newType(0,$kindStruct,"fmtsort.SortedMap",true,"internal/fmtsort",true,function(Key_,Value_){this.$val=this;if(arguments.length===0){this.Key=J.nil;this.Value=J.nil;return;}this.Key=Key_;this.Value=Value_;});I=$ptrType(C);J=$sliceType(A.Value);C.ptr.prototype.Len=function(){vara;a=this;returna.Key.$length;};C.prototype.Len=function(){returnthis.$val.Len();};C.ptr.prototype.Less=function(a,b){var{a,b,c,d,e,f,g,$s,$r,$c}=$restore(this,{a,b});$s=$s||0;s:while(true){switch($s){case0:c=this;f=E($clone((d=c.Key,((a<0||a>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+a])),A.Value),$clone((e=c.Key,((b<0||b>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+b])),A.Value));$s=1;case1:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){breaks;}g=f<0;$s=2;case2:returng;}return;}var$f={$blk:C.ptr.prototype.Less,$c:true,$r,a,b,c,d,e,f,g,$s};return$f;};C.prototype.Less=function(a,b){returnthis.$val.Less(a,b);};C.ptr.prototype.Swap=function(a,b){vara,b,c,d,e,f,g,h,i,j,k,l,m,n,o;c=this;d=(e=c.Key,((b<0||b>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+b]));f=(g=c.Key,((a<0||a>=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+a]));(h=c.Key,((a<0||a>=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+a]=d));(i=c.Key,((b<0||b>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+b]=f));j=(k=c.Value,((b<0||b>=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+b]));l=(m=c.Value,((a<0||a>=m.$length)?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+a]));(n=c.Value,((a<0||a>=n.$length)?($throwRuntimeError("index out of range"),undefined):n.$array[n.$offset+a]=j));(o=c.Value,((b<0||b>=o.$length)?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+b]=l));};C.prototype.Swap=function(a,b){returnthis.$val.Swap(a,b);};D=function(a){var{a,b,c,d,e,f,g,h,i,j,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case0:b=$clone(a,A.Value).Type().Kind();$s=3;case3:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){breaks;}if(!((b===21))){$s=1;continue;}$s=2;continue;case1:$s=-1;returnI.nil;case2:c=$clone(a,A.Value).Len();d=$makeSlice(J,0,c);e=$makeSlice(J,0,c);f=$clone(a,A.Value).MapRange();case4:g=f.Next();$s=6;case6:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){breaks;}if(!(g)){$s=5;continue;}h=f.Key();$s=7;case7:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){breaks;}d=$append(d,h);i=f.Value();$s=8;case8:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){breaks;}e=$append(e,i);$s=4;continue;case5:j=newC.ptr(d,e);$r=B.Stable(j);$s=9;case9:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){breaks;}$s=-1;returnj;}return;}var$f={$blk:D,$c:true,$r,a,b,c,d,e,f,g,h,i,j,$s};return$f;};$pkg.Sort=D;E=function(a,b){var{a,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,b,ba,bb,bc,bd,be,bf,bg,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bt,bu,bv,bw,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r,$c}=$restore(this,{a,b});$s=$s||0;s:while(true){switch($s){case0:c=$clone(a,A.Value).Type();d=$clone(b,A.Value).Type();e=c;f=d;if(!($interfaceIsEqual(e,f))){$s=-1;return-1;}g=$clone(a,A.Value).Kind();if((g===(2))||(g===(3))||(g===(4))||(g===(5))||(g===(6))){$s=2;continue;}if((g===(7))||(g===(8))||(g===(9))||(g===(10))||(g===(11))||(g===(12))){$s=3;continue;}if(g===(24)){$s=4;continue;}if((g===(13))||(g===(14))){$s=5;continue;}if((g===(15))||(g===(16))){$s=6;continue;}if(g===(1)){$s=7;continue;}if((g===(22))||(g===(26))){$s=8;continue;}if(g===(18)){$s=9;continue;}if(g===(25)){$s=10;continue;}if(g===(17)){$s=11;continue;}if(g===(20)){$s=12;continue;}$s=13;continue;case2:h=$clone(a,A.Value).Int();i=$clone(b,A.Value).Int();j=h;k=i;if((j.$high<k.$high||(j.$high===k.$high
$packages["internal/oserror"]=(function(){var$pkg={},$init,A;A=$packages["errors"];$init=function(){$pkg.$init=function(){};var$f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case0:$r=A.$init();$s=1;case1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){breaks;}$pkg.ErrInvalid=A.New("invalid argument");$pkg.ErrPermission=A.New("permission denied");$pkg.ErrExist=A.New("file already exists");$pkg.ErrNotExist=A.New("file does not exist");$pkg.ErrClosed=A.New("file already closed");}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return$f;};$pkg.$init=$init;return$pkg;})();
$packages["syscall/js"]=(function(){var$pkg={},$init,A,B,F,H,I,R,U,V,W,X,Y,Z,AA,AB,AC,K,L,M,C,D,E,G,J,N,O,P,Q,S,T;A=$packages["github.com/gopherjs/gopherjs/js"];B=$pkg.Type=$newType(4,$kindInt,"js.Type",true,"syscall/js",true,null);F=$pkg.Func=$newType(0,$kindStruct,"js.Func",true,"syscall/js",true,function(Value_){this.$val=this;if(arguments.length===0){this.Value=newI.ptr(null,false,V.zero());return;}this.Value=Value_;});H=$pkg.Error=$newType(0,$kindStruct,"js.Error",true,"syscall/js",true,function(Value_){this.$val=this;if(arguments.length===0){this.Value=newI.ptr(null,false,V.zero());return;}this.Value=Value_;});I=$pkg.Value=$newType(0,$kindStruct,"js.Value",true,"syscall/js",true,function(v_,inited_,_$2_){this.$val=this;if(arguments.length===0){this.v=null;this.inited=false;this._$2=V.zero();return;}this.v=v_;this.inited=inited_;this._$2=_$2_;});R=$pkg.ValueError=$newType(0,$kindStruct,"js.ValueError",true,"syscall/js",true,function(Method_,Type_){this.$val=this;if(arguments.length===0){this.Method="";this.Type=0;return;}this.Method=Method_;this.Type=Type_;});U=$funcType([],[],false);V=$arrayType(U,0);W=$sliceType(I);X=$mapType($String,$emptyInterface);Y=$sliceType($emptyInterface);Z=$ptrType(A.Error);AA=$sliceType($Uint8);AB=$ptrType(A.Object);AC=$ptrType(R);B.prototype.String=function(){vara,b;a=this.$val;b=a;if(b===(0)){return"undefined";}elseif(b===(1)){return"null";}elseif(b===(2)){return"boolean";}elseif(b===(3)){return"number";}elseif(b===(4)){return"string";}elseif(b===(5)){return"symbol";}elseif(b===(6)){return"object";}elseif(b===(7)){return"function";}else{$panic(new$String("bad type"));}};$ptrType(B).prototype.String=function(){returnnewB(this.$get()).String();};B.prototype.isObject=function(){vara;a=this.$val;return(a===6)||(a===7);};$ptrType(B).prototype.isObject=function(){returnnewB(this.$get()).isObject();};C=function(){returnJ($global);};$pkg.Global=C;D=function(){returnJ(null);};$pkg.Null=D;E=function(){returnJ(undefined);};$pkg.Undefined=E;F.ptr.prototype.Release=function(){vara;a=this;$exportedFunctions=($parseInt($exportedFunctions)>>0)-1>>0;I.copy(a.Value,D());};F.prototype.Release=function(){returnthis.$val.Release();};G=function(a){vara;$exportedFunctions=($parseInt($exportedFunctions)>>0)+1>>0;returnnewF.ptr($clone(J(A.MakeFunc((function$b(b,c){var{b,c,d,e,f,g,h,i,j,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case0:d=$makeSlice(W,c.$length);e=c;f=0;while(true){if(!(f<e.$length)){break;}g=f;h=((f<0||f>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);I.copy(((g<0||g>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+g]),J(h));f++;}i=a($clone(J(b),I),d);$s=1;case1:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){breaks;}j=i;$s=2;case2:returnj;}return;}var$f={$blk:$b,$c:true,$r,b,c,d,e,f,g,h,i,j,$s};return$f;}))),I));};$pkg.FuncOf=G;H.ptr.prototype.Error=function(){vara;a=this;return"JavaScript error: "+$clone($clone(a.Value,I).Get("message"),I).String();};H.prototype.Error=function(){returnthis.$val.Error();};J=function(a){vara;if(a===undefined){returnnewI.ptr(null,false,V.zero());}returnnewI.ptr(a,true,V.zero());};N=function(){if(!($global===null)){K=$global.eval($externalize("(function(x) { return x; })",$String));L=$global.eval($externalize("(function(x, y) { return x instanceof y; })",$String));M=$global.eval($externalize("(function(x) {\n if (typeof(x) === \"undefined\") {\n return 0; // TypeUndefined\n }\n if (x === null) {\n return 1; // TypeNull\n }\n if (typeof(x) === \"boolean\") {\n return 2; // TypeBoolean\n }\n if (typeof(x) === \"number\") {\n return 3; // TypeNumber\n }\n if (typeof(x) === \"string\") {\n return 4; // TypeString\n }\n if (typeof(x) === \"symbol\") {\n return 5; // TypeSymbol\n }\n if (typeof(x) === \"function\") {\n return 7; // TypeFunction\n }\n return 6; // TypeObject\n})",$String));}};O=function(a){vara,b,c,d,e,f,g;b=a;if($assertType(b,I,true)[1]){c=$clone(b.$val,I);returnc;}elseif($
$packages["syscall"]=(function(){var$pkg={},$init,E,B,C,A,D,F,V,Y,AW,BH,BI,BJ,CB,CQ,FK,FC,FF,FH,FJ,FL,FM,FR,FS,FT,FU,L,M,N,O,Q,CG,CH,CI,CJ,CK,CL,CM,CN,CO,CP,CR,CS,EI,g,K,P,BN,BP,BR,BS,BT,BU,BX,BY,BZ,CA,CT,CV,CW,CY,DA,DB,DF,DH,DM,DO,DP,DT,DU,DV,DW,DX,DY,DZ,EC,ED,EE,EV,EY,FA;E=$packages["errors"];B=$packages["internal/itoa"];C=$packages["internal/oserror"];A=$packages["runtime"];D=$packages["sync"];F=$packages["syscall/js"];V=$pkg.Errno=$newType(4,$kindUintptr,"syscall.Errno",true,"syscall",true,null);Y=$pkg.Stat_t=$newType(0,$kindStruct,"syscall.Stat_t",true,"syscall",true,function(Dev_,Ino_,Mode_,Nlink_,Uid_,Gid_,Rdev_,Size_,Blksize_,Blocks_,Atime_,AtimeNsec_,Mtime_,MtimeNsec_,Ctime_,CtimeNsec_){this.$val=this;if(arguments.length===0){this.Dev=new$Int64(0,0);this.Ino=new$Uint64(0,0);this.Mode=0;this.Nlink=0;this.Uid=0;this.Gid=0;this.Rdev=new$Int64(0,0);this.Size=new$Int64(0,0);this.Blksize=0;this.Blocks=0;this.Atime=new$Int64(0,0);this.AtimeNsec=new$Int64(0,0);this.Mtime=new$Int64(0,0);this.MtimeNsec=new$Int64(0,0);this.Ctime=new$Int64(0,0);this.CtimeNsec=new$Int64(0,0);return;}this.Dev=Dev_;this.Ino=Ino_;this.Mode=Mode_;this.Nlink=Nlink_;this.Uid=Uid_;this.Gid=Gid_;this.Rdev=Rdev_;this.Size=Size_;this.Blksize=Blksize_;this.Blocks=Blocks_;this.Atime=Atime_;this.AtimeNsec=AtimeNsec_;this.Mtime=Mtime_;this.MtimeNsec=MtimeNsec_;this.Ctime=Ctime_;this.CtimeNsec=CtimeNsec_;});AW=$pkg.Iovec=$newType(0,$kindStruct,"syscall.Iovec",true,"syscall",true,function(){this.$val=this;if(arguments.length===0){return;}});BH=$pkg.Sockaddr=$newType(8,$kindInterface,"syscall.Sockaddr",true,"syscall",true,null);BI=$pkg.SockaddrInet4=$newType(0,$kindStruct,"syscall.SockaddrInet4",true,"syscall",true,function(Port_,Addr_){this.$val=this;if(arguments.length===0){this.Port=0;this.Addr=FR.zero();return;}this.Port=Port_;this.Addr=Addr_;});BJ=$pkg.SockaddrInet6=$newType(0,$kindStruct,"syscall.SockaddrInet6",true,"syscall",true,function(Port_,ZoneId_,Addr_){this.$val=this;if(arguments.length===0){this.Port=0;this.ZoneId=0;this.Addr=FS.zero();return;}this.Port=Port_;this.ZoneId=ZoneId_;this.Addr=Addr_;});CB=$pkg.RawConn=$newType(8,$kindInterface,"syscall.RawConn",true,"syscall",true,null);CQ=$pkg.jsFile=$newType(0,$kindStruct,"syscall.jsFile",true,"syscall",false,function(path_,entries_,dirIdx_,pos_,seeked_){this.$val=this;if(arguments.length===0){this.path="";this.entries=FC.nil;this.dirIdx=0;this.pos=new$Int64(0,0);this.seeked=false;return;}this.path=path_;this.entries=entries_;this.dirIdx=dirIdx_;this.pos=pos_;this.seeked=seeked_;});FK=$newType(0,$kindStruct,"syscall.callResult",true,"syscall",false,function(val_,err_){this.$val=this;if(arguments.length===0){this.val=newF.Value.ptr(null,false,FM.zero());this.err=$ifaceNil;return;}this.val=val_;this.err=err_;});FC=$sliceType($String);FF=$sliceType($emptyInterface);FH=$ptrType($error);FJ=$ptrType(CQ);FL=$funcType([],[],false);FM=$arrayType(FL,0);FR=$arrayType($Uint8,4);FS=$arrayType($Uint8,16);FT=$funcType([$Uintptr],[],false);FU=$funcType([$Uintptr],[$Bool],false);K=function(h,i){varh,i;$panic(new$String("not implemented"));};P=function(h){varh,i;i=h;if(i===(0)){return$ifaceNil;}elseif(i===(11)){returnM;}elseif(i===(22)){returnN;}elseif(i===(2)){returnO;}returnnewV(h);};V.prototype.Error=function(){varh,i;h=this.$val;if(0<=((h>>0))&&((h>>0))<2054){i=((h<0||h>=L.length)?($throwRuntimeError("index out of range"),undefined):L[h]);if(!(i==="")){returni;}}return"errno "+B.Itoa(((h>>0)));};$ptrType(V).prototype.Error=function(){returnnewV(this.$get()).Error();};V.prototype.Is=function(h){varh,i,j;i=this.$val;j=h;if($interfaceIsEqual(j,(C.ErrPermission))){return(i===13)||(i===1);}elseif($interfaceIsEqual(j,(C.ErrExist))){return(i===17)||(i===39);}elseif($interfaceIsEqual(j,(C.ErrNotExist))){returni===2;}returnfalse;};$ptrType(V).prototype.Is=function(h){returnnewV(this.$get()).Is(h);};V.prototype.Temporary=function(){varh;h=this.$val;return(h===4)||(h===24)||newV(h).Timeout();};$ptrType(V).prototype.Temporary=function(){returnnewV(this.$get()).Temporary();};V.proto
$packages["github.com/gopherjs/gopherjs/nosync"]=(function(){var$pkg={},$init,B,J,K;B=$pkg.Once=$newType(0,$kindStruct,"nosync.Once",true,"github.com/gopherjs/gopherjs/nosync",true,function(doing_,done_){this.$val=this;if(arguments.length===0){this.doing=false;this.done=false;return;}this.doing=doing_;this.done=done_;});J=$funcType([],[],false);K=$ptrType(B);B.ptr.prototype.Do=function(a){var{a,b,$s,$deferred,$r,$c}=$restore(this,{a});$s=$s||0;var$err=null;try{s:while(true){switch($s){case0:$deferred=[];$curGoroutine.deferStack.push($deferred);b=[b];b[0]=this;if(b[0].done){$s=1;continue;}$s=2;continue;case1:$s=3;case3:return;case2:if(b[0].doing){$panic(new$String("nosync: Do called within f"));}b[0].doing=true;$deferred.push([(function(b){returnfunction(){b[0].doing=false;b[0].done=true;};})(b),[]]);$r=a();$s=4;case4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){breaks;}$s=-1;return;}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){var$f={$blk:B.ptr.prototype.Do,$c:true,$r,a,b,$s,$deferred};return$f;}}};B.prototype.Do=function(a){returnthis.$val.Do(a);};K.methods=[{prop:"Do",name:"Do",pkg:"",typ:$funcType([J],[],false)}];B.init("github.com/gopherjs/gopherjs/nosync",[{prop:"doing",name:"doing",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"done",name:"done",embedded:false,exported:false,typ:$Bool,tag:""}]);$init=function(){$pkg.$init=function(){};var$f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case0:}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return$f;};$pkg.$init=$init;return$pkg;})();
$packages["time"]=(function(){var$pkg={},$init,A,F,E,B,C,D,W,X,Y,AG,AH,AQ,AR,AS,AV,CW,EF,EG,EH,EJ,EK,EL,EO,ER,ES,ET,EW,FA,L,Z,ED,AA,EE,AB,AL,BC,BG,CF,CI,CJ,CK,CL,CP,CV,DL,EB,j,k,AC,AD,AE,AF,AI,AJ,AK,AT,AU,AW,AX,AY,BB,BD,BE,BF,BI,BJ,BM,BN,BO,BP,CG,CH,CM,CN,CO,CQ,CR,CS,CT,CU,CX,CY,CZ,DA,DB,DC,DD,DF,DG,DH,DI,DJ,DK,DM,DQ,DR,DS;A=$packages["errors"];F=$packages["github.com/gopherjs/gopherjs/js"];E=$packages["github.com/gopherjs/gopherjs/nosync"];B=$packages["runtime"];C=$packages["syscall"];D=$packages["syscall/js"];W=$pkg.Location=$newType(0,$kindStruct,"time.Location",true,"time",true,function(name_,zone_,tx_,extend_,cacheStart_,cacheEnd_,cacheZone_){this.$val=this;if(arguments.length===0){this.name="";this.zone=EF.nil;this.tx=EG.nil;this.extend="";this.cacheStart=new$Int64(0,0);this.cacheEnd=new$Int64(0,0);this.cacheZone=EH.nil;return;}this.name=name_;this.zone=zone_;this.tx=tx_;this.extend=extend_;this.cacheStart=cacheStart_;this.cacheEnd=cacheEnd_;this.cacheZone=cacheZone_;});X=$pkg.zone=$newType(0,$kindStruct,"time.zone",true,"time",false,function(name_,offset_,isDST_){this.$val=this;if(arguments.length===0){this.name="";this.offset=0;this.isDST=false;return;}this.name=name_;this.offset=offset_;this.isDST=isDST_;});Y=$pkg.zoneTrans=$newType(0,$kindStruct,"time.zoneTrans",true,"time",false,function(when_,index_,isstd_,isutc_){this.$val=this;if(arguments.length===0){this.when=new$Int64(0,0);this.index=0;this.isstd=false;this.isutc=false;return;}this.when=when_;this.index=index_;this.isstd=isstd_;this.isutc=isutc_;});AG=$pkg.ruleKind=$newType(4,$kindInt,"time.ruleKind",true,"time",false,null);AH=$pkg.rule=$newType(0,$kindStruct,"time.rule",true,"time",false,function(kind_,day_,week_,mon_,time_){this.$val=this;if(arguments.length===0){this.kind=0;this.day=0;this.week=0;this.mon=0;this.time=0;return;}this.kind=kind_;this.day=day_;this.week=week_;this.mon=mon_;this.time=time_;});AQ=$pkg.Time=$newType(0,$kindStruct,"time.Time",true,"time",true,function(wall_,ext_,loc_){this.$val=this;if(arguments.length===0){this.wall=new$Uint64(0,0);this.ext=new$Int64(0,0);this.loc=EL.nil;return;}this.wall=wall_;this.ext=ext_;this.loc=loc_;});AR=$pkg.Month=$newType(4,$kindInt,"time.Month",true,"time",true,null);AS=$pkg.Weekday=$newType(4,$kindInt,"time.Weekday",true,"time",true,null);AV=$pkg.Duration=$newType(8,$kindInt64,"time.Duration",true,"time",true,null);CW=$pkg.ParseError=$newType(0,$kindStruct,"time.ParseError",true,"time",true,function(Layout_,Value_,LayoutElem_,ValueElem_,Message_){this.$val=this;if(arguments.length===0){this.Layout="";this.Value="";this.LayoutElem="";this.ValueElem="";this.Message="";return;}this.Layout=Layout_;this.Value=Value_;this.LayoutElem=LayoutElem_;this.ValueElem=ValueElem_;this.Message=Message_;});EF=$sliceType(X);EG=$sliceType(Y);EH=$ptrType(X);EJ=$sliceType($String);EK=$sliceType($Uint8);EL=$ptrType(W);EO=$arrayType($Uint8,32);ER=$arrayType($Uint8,20);ES=$arrayType($Uint8,9);ET=$arrayType($Uint8,64);EW=$ptrType(AQ);FA=$ptrType(CW);W.ptr.prototype.get=function(){var{l,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case0:l=this;if(l===EL.nil){$s=-1;returnZ;}if(l===AA){$s=1;continue;}$s=2;continue;case1:$r=AB.Do(DQ);$s=3;case3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){breaks;}case2:$s=-1;returnl;}return;}var$f={$blk:W.ptr.prototype.get,$c:true,$r,l,$s};return$f;};W.prototype.get=function(){returnthis.$val.get();};W.ptr.prototype.String=function(){var{l,m,n,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case0:l=this;m=l.get();$s=1;case1:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){breaks;}n=m.name;$s=2;case2:returnn;}return;}var$f={$blk:W.ptr.prototype.String,$c:true,$r,l,m,n,$s};return$f;};W.prototype.String=function(){returnthis.$val.String();};AC=function(l,m){varl,m,n,o;n=newW.ptr(l,newEF([newX.ptr(l,m,false)]),newEG([newY.ptr(new$Int64(-2147483648,0),0,false,false)]),"",new$Int64(-2147483648,0),new$Int64(2147483647,4294967295),EH.nil);n.cacheZone=(o=n.zone,(0>=o.$length?($throwRuntimeError("index out of range"),unde
$packages["path"]=(function(){var$pkg={},$init,A,B,C;A=$packages["errors"];B=$packages["internal/bytealg"];C=$packages["unicode/utf8"];$init=function(){$pkg.$init=function(){};var$f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case0:$r=A.$init();$s=1;case1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){breaks;}$r=B.$init();$s=2;case2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){breaks;}$r=C.$init();$s=3;case3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){breaks;}$pkg.ErrBadPattern=A.New("syntax error in pattern");}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return$f;};$pkg.$init=$init;return$pkg;})();
$packages["io/fs"]=(function(){var$pkg={},$init,A,E,C,B,D,F,G,AF,AM,AN,AO,AQ,AS,AT,AU,AH,AI,AJ,AK,AL;A=$packages["errors"];E=$packages["internal/oserror"];C=$packages["io"];B=$packages["path"];D=$packages["sort"];F=$packages["time"];G=$packages["unicode/utf8"];AF=$pkg.DirEntry=$newType(8,$kindInterface,"fs.DirEntry",true,"io/fs",true,null);AM=$pkg.FileInfo=$newType(8,$kindInterface,"fs.FileInfo",true,"io/fs",true,null);AN=$pkg.FileMode=$newType(4,$kindUint32,"fs.FileMode",true,"io/fs",true,null);AO=$pkg.PathError=$newType(0,$kindStruct,"fs.PathError",true,"io/fs",true,function(Op_,Path_,Err_){this.$val=this;if(arguments.length===0){this.Op="";this.Path="";this.Err=$ifaceNil;return;}this.Op=Op_;this.Path=Path_;this.Err=Err_;});AQ=$ptrType(AO);AS=$sliceType($Uint8);AT=$arrayType($Uint8,32);AU=$interfaceType([{prop:"Timeout",name:"Timeout",pkg:"",typ:$funcType([],[$Bool],false)}]);AH=function(){returnE.ErrInvalid;};AI=function(){returnE.ErrPermission;};AJ=function(){returnE.ErrExist;};AK=function(){returnE.ErrNotExist;};AL=function(){returnE.ErrClosed;};AN.prototype.String=function(){vara,b,c,d,e,f,g,h,i,j,k,l,m,n,o;a=this.$val;b=AT.zero();c=0;d="dalTLDpSugct?";e=0;while(true){if(!(e<d.length)){break;}f=$decodeRune(d,e);g=e;h=f[0];if(!((((a&(((i=(((31-g>>0)>>>0)),i<32?(1<<i):0)>>>0)))>>>0)===0))){((c<0||c>=b.length)?($throwRuntimeError("index out of range"),undefined):b[c]=((h<<24>>>24)));c=c+(1)>>0;}e+=f[1];}if(c===0){((c<0||c>=b.length)?($throwRuntimeError("index out of range"),undefined):b[c]=45);c=c+(1)>>0;}j="rwxrwxrwx";k=0;while(true){if(!(k<j.length)){break;}l=$decodeRune(j,k);m=k;n=l[0];if(!((((a&(((o=(((8-m>>0)>>>0)),o<32?(1<<o):0)>>>0)))>>>0)===0))){((c<0||c>=b.length)?($throwRuntimeError("index out of range"),undefined):b[c]=((n<<24>>>24)));}else{((c<0||c>=b.length)?($throwRuntimeError("index out of range"),undefined):b[c]=45);}c=c+(1)>>0;k+=l[1];}return($bytesToString($subslice(newAS(b),0,c)));};$ptrType(AN).prototype.String=function(){returnnewAN(this.$get()).String();};AN.prototype.IsDir=function(){vara;a=this.$val;return!((((a&2147483648)>>>0)===0));};$ptrType(AN).prototype.IsDir=function(){returnnewAN(this.$get()).IsDir();};AN.prototype.IsRegular=function(){vara;a=this.$val;return((a&2401763328)>>>0)===0;};$ptrType(AN).prototype.IsRegular=function(){returnnewAN(this.$get()).IsRegular();};AN.prototype.Perm=function(){vara;a=this.$val;return(a&511)>>>0;};$ptrType(AN).prototype.Perm=function(){returnnewAN(this.$get()).Perm();};AN.prototype.Type=function(){vara;a=this.$val;return(a&2401763328)>>>0;};$ptrType(AN).prototype.Type=function(){returnnewAN(this.$get()).Type();};AO.ptr.prototype.Error=function(){var{a,b,c,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case0:a=this;b=a.Err.Error();$s=1;case1:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){breaks;}c=a.Op+" "+a.Path+": "+b;$s=2;case2:returnc;}return;}var$f={$blk:AO.ptr.prototype.Error,$c:true,$r,a,b,c,$s};return$f;};AO.prototype.Error=function(){returnthis.$val.Error();};AO.ptr.prototype.Unwrap=function(){vara;a=this;returna.Err;};AO.prototype.Unwrap=function(){returnthis.$val.Unwrap();};AO.ptr.prototype.Timeout=function(){var{a,b,c,d,e,f,g,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case0:a=this;b=$assertType(a.Err,AU,true);c=b[0];d=b[1];if(!(d)){e=false;$s=1;continues;}f=c.Timeout();$s=2;case2:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){breaks;}e=f;case1:g=e;$s=3;case3:returng;}return;}var$f={$blk:AO.ptr.prototype.Timeout,$c:true,$r,a,b,c,d,e,f,g,$s};return$f;};AO.prototype.Timeout=function(){returnthis.$val.Timeout();};AN.methods=[{prop:"String",name:"String",pkg:"",typ:$funcType([],[$String],false)},{prop:"IsDir",name:"IsDir",pkg:"",typ:$funcType([],[$Bool],false)},{prop:"IsRegular",name:"IsRegular",pkg:"",typ:$funcType([],[$Bool],false)},{prop:"Perm",name:"Perm",pkg:"",typ:$funcType([],[AN],false)},{prop:"Type",name:"Type",pkg:"",typ:$funcType([],[AN],false)}];AQ.methods=[{prop:"Error",name:"Error",pkg:"",typ:$funcType([],[$String],false)},{prop:"Unwrap",name:
$packages["fmt"]=(function(){var$pkg={},$init,A,I,B,C,D,E,F,G,H,V,W,X,AK,AL,AM,AN,AO,AP,BG,BH,BK,BL,BM,BN,BO,BP,BS,BT,CO,CP,CQ,CS,Y,AC,AE,AF,AQ,Z,AA,AG,AR,AX,BB;A=$packages["errors"];I=$packages["internal/fmtsort"];B=$packages["io"];C=$packages["math"];D=$packages["os"];E=$packages["reflect"];F=$packages["strconv"];G=$packages["sync"];H=$packages["unicode/utf8"];V=$pkg.scanError=$newType(0,$kindStruct,"fmt.scanError",true,"fmt",false,function(err_){this.$val=this;if(arguments.length===0){this.err=$ifaceNil;return;}this.err=err_;});W=$pkg.ss=$newType(0,$kindStruct,"fmt.ss",true,"fmt",false,function(rs_,buf_,count_,atEOF_,ssave_){this.$val=this;if(arguments.length===0){this.rs=$ifaceNil;this.buf=AO.nil;this.count=0;this.atEOF=false;this.ssave=newX.ptr(false,false,false,0,0,0);return;}this.rs=rs_;this.buf=buf_;this.count=count_;this.atEOF=atEOF_;this.ssave=ssave_;});X=$pkg.ssave=$newType(0,$kindStruct,"fmt.ssave",true,"fmt",false,function(validSave_,nlIsEnd_,nlIsSpace_,argLimit_,limit_,maxWid_){this.$val=this;if(arguments.length===0){this.validSave=false;this.nlIsEnd=false;this.nlIsSpace=false;this.argLimit=0;this.limit=0;this.maxWid=0;return;}this.validSave=validSave_;this.nlIsEnd=nlIsEnd_;this.nlIsSpace=nlIsSpace_;this.argLimit=argLimit_;this.limit=limit_;this.maxWid=maxWid_;});AK=$pkg.State=$newType(8,$kindInterface,"fmt.State",true,"fmt",true,null);AL=$pkg.Formatter=$newType(8,$kindInterface,"fmt.Formatter",true,"fmt",true,null);AM=$pkg.Stringer=$newType(8,$kindInterface,"fmt.Stringer",true,"fmt",true,null);AN=$pkg.GoStringer=$newType(8,$kindInterface,"fmt.GoStringer",true,"fmt",true,null);AO=$pkg.buffer=$newType(12,$kindSlice,"fmt.buffer",true,"fmt",false,null);AP=$pkg.pp=$newType(0,$kindStruct,"fmt.pp",true,"fmt",false,function(buf_,arg_,value_,fmt_,reordered_,goodArgNum_,panicking_,erroring_,wrapErrs_,wrappedErr_){this.$val=this;if(arguments.length===0){this.buf=AO.nil;this.arg=$ifaceNil;this.value=newE.Value.ptr(BN.nil,0,0);this.fmt=newBH.ptr(BO.nil,newBG.ptr(false,false,false,false,false,false,false,false,false),0,0,BP.zero());this.reordered=false;this.goodArgNum=false;this.panicking=false;this.erroring=false;this.wrapErrs=false;this.wrappedErr=$ifaceNil;return;}this.buf=buf_;this.arg=arg_;this.value=value_;this.fmt=fmt_;this.reordered=reordered_;this.goodArgNum=goodArgNum_;this.panicking=panicking_;this.erroring=erroring_;this.wrapErrs=wrapErrs_;this.wrappedErr=wrappedErr_;});BG=$pkg.fmtFlags=$newType(0,$kindStruct,"fmt.fmtFlags",true,"fmt",false,function(widPresent_,precPresent_,minus_,plus_,sharp_,space_,zero_,plusV_,sharpV_){this.$val=this;if(arguments.length===0){this.widPresent=false;this.precPresent=false;this.minus=false;this.plus=false;this.sharp=false;this.space=false;this.zero=false;this.plusV=false;this.sharpV=false;return;}this.widPresent=widPresent_;this.precPresent=precPresent_;this.minus=minus_;this.plus=plus_;this.sharp=sharp_;this.space=space_;this.zero=zero_;this.plusV=plusV_;this.sharpV=sharpV_;});BH=$pkg.fmt=$newType(0,$kindStruct,"fmt.fmt",true,"fmt",false,function(buf_,fmtFlags_,wid_,prec_,intbuf_){this.$val=this;if(arguments.length===0){this.buf=BO.nil;this.fmtFlags=newBG.ptr(false,false,false,false,false,false,false,false,false);this.wid=0;this.prec=0;this.intbuf=BP.zero();return;}this.buf=buf_;this.fmtFlags=fmtFlags_;this.wid=wid_;this.prec=prec_;this.intbuf=intbuf_;});BK=$arrayType($Uint16,2);BL=$sliceType(BK);BM=$sliceType($emptyInterface);BN=$ptrType(E.rtype);BO=$ptrType(AO);BP=$arrayType($Uint8,68);BS=$sliceType($Uint8);BT=$ptrType(W);CO=$ptrType(AP);CP=$arrayType($Uint8,6);CQ=$funcType([$Int32],[$Bool],false);CS=$ptrType(BH);W.ptr.prototype.Read=function(a){vara,b,c,d,e,f;b=0;c=$ifaceNil;d=this;e=0;f=A.New("ScanState's Read should not be called. Use ReadRune");b=e;c=f;return[b,c];};W.prototype.Read=function(a){returnthis.$val.Read(a);};W.ptr.prototype.ReadRune=function(){var{a,b,c,d,e,f,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case0:a=0;b=0;c=$ifaceNil;d=this;if(d.atEOF||d.count>=d.ssave.argLimit){c=B.EOF;$s=-1;return[a,b,c];}f=d.rs.ReadRune();$s=1;case
$packages["github.com/kvartborg/vector"]=(function(){var$pkg={},$init,A,B,C,D,E,R,S,T,U,M,P,Q;A=$packages["errors"];B=$packages["fmt"];C=$packages["math"];D=$pkg.Vector=$newType(12,$kindSlice,"vector.Vector",true,"github.com/kvartborg/vector",true,null);E=$pkg.Axis=$newType(4,$kindInt,"vector.Axis",true,"github.com/kvartborg/vector",true,null);R=$sliceType($Float64);S=$sliceType($emptyInterface);T=$sliceType(D);U=$sliceType(E);D.prototype.Clone=function(){vara,b;a=this;b=$makeSlice(D,a.$length);$copySlice(b,a);returnb;};$ptrType(D).prototype.Clone=function(){returnthis.$get().Clone();};D.prototype.Add=function(a){vara,b,c,d,e,f;b=this;c=b.$length;d=a;e=0;while(true){if(!(e<d.$length)){break;}f=e;if(((f<0||f>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+f]).$length>c){P($convertSliceType(b,R),1,$convertSliceType(b,R),$convertSliceType($subslice(((f<0||f>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+f]),0,c),R));}else{P($convertSliceType(b,R),1,$convertSliceType(b,R),$convertSliceType(((f<0||f>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+f]),R));}e++;}returnb;};$ptrType(D).prototype.Add=function(a){returnthis.$get().Add(a);};D.prototype.Sub=function(a){vara,b,c,d,e,f;b=this;c=b.$length;d=a;e=0;while(true){if(!(e<d.$length)){break;}f=e;if(((f<0||f>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+f]).$length>c){P($convertSliceType(b,R),-1,$convertSliceType($subslice(((f<0||f>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+f]),0,c),R),$convertSliceType(b,R));}else{P($convertSliceType(b,R),-1,$convertSliceType(((f<0||f>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+f]),R),$convertSliceType(b,R));}e++;}returnb;};$ptrType(D).prototype.Sub=function(a){returnthis.$get().Sub(a);};D.prototype.Scale=function(a){vara,b;b=this;Q($convertSliceType(b,R),a,$convertSliceType(b,R));returnb;};$ptrType(D).prototype.Scale=function(a){returnthis.$get().Scale(a);};D.prototype.Equal=function(a){vara,b,c,d,e;b=this;if(!((b.$length===a.$length))){returnfalse;}c=b;d=0;while(true){if(!(d<c.$length)){break;}e=d;if(C.Abs(((e<0||e>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+e])-((e<0||e>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+e]))>1e-08){returnfalse;}d++;}returntrue;};$ptrType(D).prototype.Equal=function(a){returnthis.$get().Equal(a);};D.prototype.Magnitude=function(){vara,b,c,d,e;a=this;b=0;c=a;d=0;while(true){if(!(d<c.$length)){break;}e=((d<0||d>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+d]);b=b+(e*e);d++;}returnC.Sqrt(b);};$ptrType(D).prototype.Magnitude=function(){returnthis.$get().Magnitude();};D.prototype.Unit=function(){vara,b,c,d,e;a=this;b=a.Magnitude();if(b<1e-08){returna;}c=a;d=0;while(true){if(!(d<c.$length)){break;}e=d;((e<0||e>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+e]=((e<0||e>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+e])/b);d++;}returna;};$ptrType(D).prototype.Unit=function(){returnthis.$get().Unit();};M=function(a,b){vara,b,c,d,e,f,g,h,i,j,k;c=0;d=a.$length;e=b.$length;f=c;g=d;h=e;if(g>h){b=$appendSlice(b,$convertSliceType($makeSlice(D,(g-h>>0)),R));}if(g<h){a=$appendSlice(a,$convertSliceType($makeSlice(D,(h-g>>0)),R));}i=a;j=0;while(true){if(!(j<i.$length)){break;}k=j;f=f+(((k<0||k>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+k])*((k<0||k>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+k]));j++;}returnf;};$pkg.Dot=M;D.prototype.Dot=function(a){vara,b;b=this;returnM(b,a);};$ptrType(D).prototype.Dot=function(a){returnthis.$get().Dot(a);};D.prototype.Cross=function(a){vara,b;b=this;if(!((b.$length===3))||!((a.$length===3))){return[D.nil,$pkg.ErrNot3Dimensional];}return[newD([(1>=b.$length?($throwRuntimeErro
$packages["github.com/solarlune/resolv"]=(function(){var$pkg={},$init,B,A,C,D,F,G,I,K,N,P,Q,S,U,W,X,Y,Z,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,E,H,J,L,M,O,R,T,V;B=$packages["github.com/kvartborg/vector"];A=$packages["math"];C=$packages["sort"];D=$pkg.Space=$newType(0,$kindStruct,"resolv.Space",true,"github.com/solarlune/resolv",true,function(Cells_,CellWidth_,CellHeight_){this.$val=this;if(arguments.length===0){this.Cells=Y.nil;this.CellWidth=0;this.CellHeight=0;return;}this.Cells=Cells_;this.CellWidth=CellWidth_;this.CellHeight=CellHeight_;});F=$pkg.Shape=$newType(8,$kindInterface,"resolv.Shape",true,"github.com/solarlune/resolv",true,null);G=$pkg.Line=$newType(0,$kindStruct,"resolv.Line",true,"github.com/solarlune/resolv",true,function(Start_,End_){this.$val=this;if(arguments.length===0){this.Start=B.Vector.nil;this.End=B.Vector.nil;return;}this.Start=Start_;this.End=End_;});I=$pkg.ConvexPolygon=$newType(0,$kindStruct,"resolv.ConvexPolygon",true,"github.com/solarlune/resolv",true,function(Points_,X_,Y_,Closed_){this.$val=this;if(arguments.length===0){this.Points=AC.nil;this.X=0;this.Y=0;this.Closed=false;return;}this.Points=Points_;this.X=X_;this.Y=Y_;this.Closed=Closed_;});K=$pkg.ContactSet=$newType(0,$kindStruct,"resolv.ContactSet",true,"github.com/solarlune/resolv",true,function(Points_,MTV_,Center_){this.$val=this;if(arguments.length===0){this.Points=AC.nil;this.MTV=B.Vector.nil;this.Center=B.Vector.nil;return;}this.Points=Points_;this.MTV=MTV_;this.Center=Center_;});N=$pkg.Circle=$newType(0,$kindStruct,"resolv.Circle",true,"github.com/solarlune/resolv",true,function(X_,Y_,Radius_){this.$val=this;if(arguments.length===0){this.X=0;this.Y=0;this.Radius=0;return;}this.X=X_;this.Y=Y_;this.Radius=Radius_;});P=$pkg.Projection=$newType(0,$kindStruct,"resolv.Projection",true,"github.com/solarlune/resolv",true,function(Min_,Max_){this.$val=this;if(arguments.length===0){this.Min=0;this.Max=0;return;}this.Min=Min_;this.Max=Max_;});Q=$pkg.Object=$newType(0,$kindStruct,"resolv.Object",true,"github.com/solarlune/resolv",true,function(Shape_,Space_,X_,Y_,W_,H_,TouchingCells_,Data_,ignoreList_,tags_){this.$val=this;if(arguments.length===0){this.Shape=$ifaceNil;this.Space=Z.nil;this.X=0;this.Y=0;this.W=0;this.H=0;this.TouchingCells=X.nil;this.Data=$ifaceNil;this.ignoreList=false;this.tags=AJ.nil;return;}this.Shape=Shape_;this.Space=Space_;this.X=X_;this.Y=Y_;this.W=W_;this.H=H_;this.TouchingCells=TouchingCells_;this.Data=Data_;this.ignoreList=ignoreList_;this.tags=tags_;});S=$pkg.Collision=$newType(0,$kindStruct,"resolv.Collision",true,"github.com/solarlune/resolv",true,function(checkingObject_,dx_,dy_,Objects_,Cells_){this.$val=this;if(arguments.length===0){this.checkingObject=AA.nil;this.dx=0;this.dy=0;this.Objects=AB.nil;this.Cells=X.nil;return;}this.checkingObject=checkingObject_;this.dx=dx_;this.dy=dy_;this.Objects=Objects_;this.Cells=Cells_;});U=$pkg.Cell=$newType(0,$kindStruct,"resolv.Cell",true,"github.com/solarlune/resolv",true,function(X_,Y_,Objects_){this.$val=this;if(arguments.length===0){this.X=0;this.Y=0;this.Objects=AB.nil;return;}this.X=X_;this.Y=Y_;this.Objects=Objects_;});W=$ptrType(U);X=$sliceType(W);Y=$sliceType(X);Z=$ptrType(D);AA=$ptrType(Q);AB=$sliceType(AA);AC=$sliceType(B.Vector);AD=$sliceType($Float64);AE=$ptrType(G);AF=$sliceType(AE);AG=$ptrType(N);AH=$ptrType(I);AI=$ptrType(K);AJ=$sliceType($String);AK=$ptrType(S);AL=$mapType(AA,$Bool);E=function(a,b,c,d){vara,b,c,d,e,f,g;e=newD.ptr(Y.nil,c,d);e.Resize((f=a/c,(f===f&&f!==1/0&&f!==-1/0)?f>>0:$throwRuntimeError("integer divide by zero")),(g=b/d,(g===g&&g!==1/0&&g!==-1/0)?g>>0:$throwRuntimeError("integer divide by zero")));returne;};$pkg.NewSpace=E;D.ptr.prototype.Add=function(a){var{a,b,c,d,e,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case0:b=this;c=a;d=0;case1:if(!(d<c.$length)){$s=2;continue;}e=((d<0||d>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+d]);e.Space=b;$r=e.Update();$s=3;case3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){breaks;}d++;$s=1;continue;case2:$s=-1;return;}r
$packages["jsexport"]=(function(){var$pkg={},$init,A,B,C,Q,R,S,T,U,V,W,X,Y,Z,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,AQ,AR,AS,D,E,F,G,H,I,J,K,L,M,N,O,P;A=$packages["github.com/gopherjs/gopherjs/js"];B=$packages["github.com/solarlune/resolv"];C=$packages["jsexport/battle"];Q=$ptrType(C.Vec2D);R=$sliceType(Q);S=$ptrType(C.Polygon2D);T=$ptrType(C.PlayerDownsync);U=$sliceType(T);V=$ptrType(C.MeleeBullet);W=$sliceType(V);X=$ptrType(A.Object);Y=$sliceType(X);Z=$sliceType($String);AA=$funcType([$Float64,$Float64],[X],false);AB=$funcType([Q,R],[X],false);AC=$funcType([S],[X],false);AD=$funcType([$Int32,$Int32,$Int32,$Int32,$Int32,$Int32,$Int32,$Int32,$Int32,$Int32,$Int32,$Int32,$Int32,$Bool,$Float64],[X],false);AE=$funcType([$Int32,U,W],[X],false);AF=$funcType([$Int,$Int,$Int,$Int],[X],false);AG=$funcType([$Float64,$Float64,$Float64,$Float64,$Float64,$Float64,$Float64,$Float64,$Float64,$Float64,$emptyInterface,$String],[X],false);AH=$funcType([S,$Float64,$Float64,$emptyInterface,$String],[X],false);AI=$ptrType(C.RoomDownsyncFrame);AJ=$funcType([AI],[Y],false);AK=$ptrType(B.Space);AL=$funcType([AK],[Y],false);AM=$sliceType($Uint64);AN=$ptrType(B.Object);AO=$mapType($Int32,AN);AP=$funcType([AM,AM,AI,AK,AO,$Int32,$Int32,$Int32,$Int32,$Int32,$Float64,$Float64,$Float64,$Float64,$Float64,$Float64],[X],false);AQ=$funcType([$Float64,$Float64,$Float64,$Float64,$Float64,$Float64,$Float64,$Float64,$Float64,$Float64],[$Float64,$Float64],false);AR=$funcType([AN,$Float64,$Float64],[X],false);AS=$mapType($String,$emptyInterface);D=function(a,b,c,d){vara,b,c,d;returnA.MakeWrapper(B.NewSpace(a,b,c,d));};$pkg.NewCollisionSpaceJs=D;E=function(a,b){var{a,b,c,d,$s,$r,$c}=$restore(this,{a,b});$s=$s||0;s:while(true){switch($s){case0:c=A.MakeFullWrapper(newC.Vec2D.ptr(a,b));$s=1;case1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){breaks;}d=c;$s=2;case2:returnd;}return;}var$f={$blk:E,$c:true,$r,a,b,c,d,$s};return$f;};$pkg.NewVec2DJs=E;F=function(a,b){var{a,b,c,d,$s,$r,$c}=$restore(this,{a,b});$s=$s||0;s:while(true){switch($s){case0:c=A.MakeFullWrapper(newC.Polygon2D.ptr(a,b));$s=1;case1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){breaks;}d=c;$s=2;case2:returnd;}return;}var$f={$blk:F,$c:true,$r,a,b,c,d,$s};return$f;};$pkg.NewPolygon2DJs=F;G=function(a){vara;returnA.MakeWrapper(newC.Barrier.ptr(a));};$pkg.NewBarrierJs=G;H=function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){vara,b,c,d,e,f,g,h,i,j,k,l,m,n,o;returnA.MakeWrapper(newC.PlayerDownsync.ptr(a,b,c,d,e,f,g,h,i,k,o,false,0,0,0,l,m,j,n,"","",""));};$pkg.NewPlayerDownsyncJs=H;I=function(a,b,c){var{a,b,c,d,e,$s,$r,$c}=$restore(this,{a,b,c});$s=$s||0;s:while(true){switch($s){case0:d=A.MakeFullWrapper(newC.RoomDownsyncFrame.ptr(a,b,new$Int64(0,0),c,new$Uint64(0,0),false,false));$s=1;case1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){breaks;}e=d;$s=2;case2:returne;}return;}var$f={$blk:I,$c:true,$r,a,b,c,d,e,$s};return$f;};$pkg.NewRoomDownsyncFrameJs=I;J=function(a){var{a,b,c,d,e,f,g,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case0:b=a.Objects();c=$makeSlice(Y,0,b.$length);d=b;e=0;case1:if(!(e<d.$length)){$s=2;continue;}f=((e<0||e>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);g=A.MakeFullWrapper(f);$s=3;case3:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){breaks;}c=$append(c,g);e++;$s=1;continue;case2:$s=-1;returnc;}return;}var$f={$blk:J,$c:true,$r,a,b,c,d,e,f,g,$s};return$f;};$pkg.GetCollisionSpaceObjsJs=J;K=function(a){var{a,b,c,d,e,f,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case0:b=$makeSlice(Y,0,a.PlayersArr.$length);c=a.PlayersArr;d=0;case1:if(!(d<c.$length)){$s=2;continue;}e=((d<0||d>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+d]);f=A.MakeFullWrapper(e);$s=3;case3:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){breaks;}b=$append(b,f);d++;$s=1;continue;case2:$s=-1;returnb;}return;}var$f={$blk:K,$c:true,$r,a,b,c,d,e,f,$s};return$f;};$pkg.GetPlayersArrJs=K;L=function(a,b,c,d,e,f,g,h,i,j,k,l){var{