class t{constructor(){this.clear()}t(t){return this.i+t&this.h.length-1}at(t){return this.h[this.t((t%this.o+this.o)%this.o)]}u(t,s){if(this.h[t]=s,++this.o