function IvsDraw(){function a(a,b){this.data=a,this.timeStamp=b,this.next=null}function b(){function a(){this.first=null,this.size=0}return a.prototype={enqueue:function(a){if(null===this.first)this.first=a;else{for(var b=this.first;null!==b.next;)b=b.next;b.next=a}this.size+=1},dequeue:function(){var a=null;return null!==this.first&&(a=this.first,this.first=this.first.next,this.size-=1),a},clear:function(){this.size=0,this.first=null}},new a}function c(a,b){var c=b.first;if(c)if(a>c.timeStamp){for(;c&&a>c.timeStamp;)c=b.dequeue(),2===c.data.type&&f&&f(c.data);c&&f&&f(c.data)}else a