/*!@license * Infragistics.Web.ClientUI infragistics.ext_collections.js 19.1.20191.172 * * Copyright (c) 2011-2019 Infragistics Inc. * * http://www.infragistics.com/ * * Depends: * jquery-1.4.4.js * jquery.ui.core.js * jquery.ui.widget.js * infragistics.util.js * infragistics.ext_core.js */ (function(factory){if(typeof define==="function"&&define.amd){define(["./infragistics.util","./infragistics.ext_core"],factory)}else{factory(igRoot)}})(function($){$.ig=$.ig||{};var $$t={};$.ig.globalDefs=$.ig.globalDefs||{};$.ig.globalDefs.$$4=$$t;$$0=$.ig.globalDefs.$$0;$$1=$.ig.globalDefs.$$1;$$6=$.ig.globalDefs.$$6;$.ig.$currDefinitions=$$t;$.ig.util.bulkDefine(["EqualityComparer$1:m","DefaultEqualityComparer$1:n","IArrayList:r","IArray:s","IDictionary$2:t","INotifyCollectionChanged:ac","NotifyCollectionChangedEventHandler:ad"]);var $a=$.ig.intDivide,$b=$.ig.util.cast,$c=$.ig.util.defType,$d=$.ig.util.defEnum,$e=$.ig.util.getBoxIfEnum,$f=$.ig.util.getDefaultValue,$g=$.ig.util.getEnumValue,$h=$.ig.util.getValue,$i=$.ig.util.intSToU,$j=$.ig.util.nullableEquals,$k=$.ig.util.nullableIsNull,$l=$.ig.util.nullableNotEquals,$m=$.ig.util.toNullable,$n=$.ig.util.toString$1,$o=$.ig.util.u32BitwiseAnd,$p=$.ig.util.u32BitwiseOr,$q=$.ig.util.u32BitwiseXor,$r=$.ig.util.u32LS,$s=$.ig.util.unwrapNullable,$t=$.ig.util.wrapNullable,$u=String.fromCharCode,$v=$.ig.util.castObjTo$t,$w=$.ig.util.compareSimple,$x=$.ig.util.compare,$y=$.ig.util.replace,$z=$.ig.util.stringFormat,$0=$.ig.util.stringFormat1,$1=$.ig.util.stringFormat2,$2=$.ig.util.stringCompare1,$3=$.ig.util.stringCompare2,$4=$.ig.util.stringCompare3;$d("NotifyCollectionChangedAction:af",false,false,{Add:0,Remove:1,Replace:2,Reset:4});$c("Buffer:a","Object",{init:function(){$.ig.$op.init.call(this)},b:function(a){try{}catch(b){}if(a==null){throw new $$6.e(0,"array")}var c=a.length;if(c<0){throw new $$6.d(1,"Object must be an array of primitives.")}return c},a:function(a,b){if(b<0||b>=$$t.$a.b(a)){throw new $$6.f(2,"index","Value must be non-negative and less than the size of the collection.")}return $h(a[b])},d:function(a,b,c){if(b<0||b>=$$t.$a.b(a)){throw new $$6.f(2,"index","Value must be non-negative and less than the size of the collection.")}a[b]=c},c:function(a,b,c,d,e){if(a==null){throw new $$6.e(0,"src")}if(c==null){throw new $$6.e(0,"dst")}if(b<0){throw new $$6.f(2,"srcOffset","Non-negative number required.")}if(d<0){throw new $$6.f(2,"dstOffset","Non-negative number required.")}if(e<0){throw new $$6.f(2,"count","Non-negative number required.")}if(b>$$t.$a.b(a)-e||d>$$t.$a.b(c)-e){throw new $$6.d(1,"Offset and length were out of bounds for the array or count is greater than "+"the number of elements from index to the end of the source collection.")}for(var f=0;f0){switch(a){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments);break}return}$$0.$w.init.call(this);this.f=b;this.c=new $$t.x($.ig.$op.$type,0);this.b=new $$t.x($.ig.$op.$type,0)},init1:function(a,b,c,d){$$0.$w.init.call(this);this.f=b;this.c=new $$t.x($.ig.$op.$type,0);if(this.f==1||this.f==2){this.c.add(c);this.i=d}if(this.f!=1){this.b=function(){var $ret=new $$t.x($.ig.$op.$type,0);$ret.add1(c);return $ret}()}else{this.b=new $$t.x($.ig.$op.$type,0)}this.h=d},init2:function(a,b,c,d,e){$$0.$w.init.call(this);this.f=b;this.h=e;this.i=e;this.b=function(){var $ret=new $$t.x($.ig.$op.$type,0);$ret.add1(c);return $ret}();this.c=function(){var $ret=new $$t.x($.ig.$op.$type,0);$ret.add1(d);return $ret}()},f:0,action:function(){return this.f},b:null,newItems:function(){return this.b},h:0,newStartingIndex:function(){return this.h},c:null,oldItems:function(){return this.c},i:0,oldStartingIndex:function(){return this.i},$type:new $.ig.Type("NotifyCollectionChangedEventArgs",$$0.$w.$type)},true);$c("NameValueCollection:ag","Object",{a:null,init:function(){$.ig.$op.init.call(this);this.a=new $$t.h(String,String,0)},item:function(a,b){if(arguments.length===2){if(this.a.containsKey(a)){this.a.item(a,b)}else{this.a.add(a,b)}return b}else{if(this.a.containsKey(a)){return this.a.item(a)}else{return null}}},$type:new $.ig.Type("NameValueCollection",$.ig.$ot)},true);$c("KeyValuePair$2:u","ValueType",{$tKey:null,$tValue:null,init:function($tKey,$tValue,a){this.$tKey=$tKey;this.$tValue=$tValue;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tKey,this.$tValue)}if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$0.$bh.init.call(this)},a:null,c:null,init1:function($tKey,$tValue,a,b,c){this.$tKey=$tKey;this.$tValue=$tValue;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tKey,this.$tValue)}$$0.$bh.init.call(this);this.a=b;this.c=c},key:function(){return this.a},value:function(){return this.c},$type:new $.ig.Type("KeyValuePair$2",$$0.$bh.$type)},true);$c("IDictionary$2:t","Object",{$type:new $.ig.Type("IDictionary$2",null,[$$0.$bv.$type.specialize($$t.$u.$type.specialize(0,1)),$$0.$bw.$type.specialize($$t.$u.$type.specialize(0,1)),$$0.$bt.$type])},true);$c("Dictionary$2:h","Object",{$tKey:null,$tValue:null,j:null,k:0,e:false,d:false,c:false,a:null,b:null,init:function($tKey,$tValue,a){this.$tKey=$tKey;this.$tValue=$tValue;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tKey,this.$tValue)}if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments);break;case 3:this.init3.apply(this,arguments);break;case 4:this.init4.apply(this,arguments);break}return}$$t.$h.init4.call(this,this.$tKey,this.$tValue,4,0,null)},init1:function($tKey,$tValue,a,b){this.$tKey=$tKey;this.$tValue=$tValue;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tKey,this.$tValue)}$$t.$h.init4.call(this,this.$tKey,this.$tValue,4,b,null)},init2:function($tKey,$tValue,a,b){this.$tKey=$tKey;this.$tValue=$tValue;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tKey,this.$tValue)}$$t.$h.init4.call(this,this.$tKey,this.$tValue,4,0,b)},init3:function($tKey,$tValue,a,b){this.$tKey=$tKey;this.$tValue=$tValue;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tKey,this.$tValue)}$$t.$h.init1.call(this,this.$tKey,this.$tValue,1,b.count());var d=b.getEnumerator();while(d.moveNext()){var c=d.current();this.item(c.key(),c.value())}},init4:function($tKey,$tValue,a,b,c){this.$tKey=$tKey;this.$tValue=$tValue;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tKey,this.$tValue)}$.ig.$op.init.call(this);this.a={};this.b={};this.j=c||$$t.$m.defaultEqualityComparerValue(this.$tKey);this.e=c==null&&($tKey===$.ig.String.prototype.$type||$tKey===String);this.d=$tKey===$.ig.Object.prototype.$type||$tKey.InstanceConstructor&&!$tKey.InstanceConstructor.prototype.getHashCode;this.c=c==null&&(this.e||this.d||$tKey.InstanceConstructor&&$tKey.InstanceConstructor.prototype.getHashCode==$.ig.Object.prototype.getHashCode)},count:function(){return this.k},item:function(key_,a){if(arguments.length===2){this.o(key_,a,false);return a}else{var result_=this.tryGetValueFast(key_);if(result_!==undefined){return result_}return $f(this.$tValue)}},length:function(){return this.k},containsKey:function(a){if(this.c){var b=this.n(a);return this.a.hasOwnProperty(b)}else{var c=this.l(a);var d=this.b[c];if(d){if(d.$isHashSetBucket){var g=d;for(var f=0;f0){switch(a){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments);break;case 3:this.init3.apply(this,arguments);break}return}$$t.$q.init2.call(this,this.$t,2,null)},init1:function($t,a,b){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$$t.$q.init3.call(this,this.$t,3,b,null)},init2:function($t,a,b){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$.ig.$op.init.call(this);this.__values={};this.k=b||$$t.$m.defaultEqualityComparerValue(this.$t);this.c=b==null&&($t===$.ig.String.prototype.$type||$t===String);this.b=$t===$.ig.Object.prototype.$type||$t.InstanceConstructor&&!$t.InstanceConstructor.prototype.getHashCode;this.__stringPlaceholder={}},init3:function($t,a,b,c){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$$t.$q.init2.call(this,this.$t,2,c);var e=b.getEnumerator();while(e.moveNext()){var d=e.current();this.add(d)}},isReadOnly:function(){return false},comparer:function(){return this.k},count:function(){return this.n},add:function(item_){if(this.c){if(this.__values[item_]){return false}this.__values[item_]=this.__stringPlaceholder;this.n++;return true}if(this.b){$.ig.util.ensureUniqueId(item_)}var a=this.k.getHashCodeC(item_);var current_=this.__values[a];if(current_){if(current_.$isHashSetBucket){var c=current_.getEnumerator();while(c.moveNext()){var b=c.current();if(this.k.equalsC(b,item_)){return false}}current_.push(item_)}else{if(this.k.equalsC(current_,item_)){return false}var bucket_=[current_,item_];bucket_.$isHashSetBucket=true;this.__values[a]=bucket_}}else{this.__values[a]=item_}this.n++;return true},clear:function(){this.n=0;this.__values={}},contains:function(item_){if(this.c){return!!this.__values[item_]}if(this.b){$.ig.util.ensureUniqueId(item_)}var a=this.k.getHashCodeC(item_);var current_=this.__values[a];if(current_!==undefined){if(current_.$isHashSetBucket){var c=current_.getEnumerator();while(c.moveNext()){var b=c.current();if(this.k.equalsC(b,item_)){return true}}}else{if(this.k.equalsC(current_,item_)){return true}}}return false},copyTo1:function(a){throw new $$6.q(0)},copyTo:function(a,b){throw new $$6.q(0)},copyTo2:function(a,b,c){throw new $$6.q(0)},createSetComparer:function($t){throw new $$6.q(0)},exceptWith:function(a){throw new $$6.q(0)},getEnumerator:function(){if(this.c){return $.ig.util.getArrayOfProperties(this.__values).getEnumerator()}var result_=new Array(0);var a=$.ig.util.getArrayOfValues(this.__values);for(var b=0;b0){var c=a.getEnumerator();while(c.moveNext()){var b=c.current();if(this.contains(b)){return true}}}return false},remove:function(item_){if(this.c){if(this.__values[item_]){return false}delete this.__values[item_];this.n--;return true}if(this.b){$.ig.util.ensureUniqueId(item_)}var hashCode_=this.k.getHashCodeC(item_);var current_=this.__values[hashCode_];if(current_){if(current_.$isHashSetBucket){var a=current_.getEnumerator();while(a.moveNext()){var currentItem_=a.current();if(this.k.equalsC(currentItem_,item_)){current_.removeItem(currentItem_);if(current_.length==1){this.__values[hashCode_]=current_[0]}this.n--;return true}}}else{if(this.k.equalsC(current_,item_)){delete this.__values[hashCode_];this.n--;return true}}}return false},setEquals:function(a){throw new $$6.q(0)},symmetricExceptWith:function(a){throw new $$6.q(0)},trimExcess:function(){},unionWith:function(a){var c=a.getEnumerator();while(c.moveNext()){var b=c.current();this.add(b)}},$type:new $.ig.Type("HashSet$1",$.ig.$ot,[$$0.$bv.$type.specialize(0),$$0.$bw.$type.specialize(0),$$0.$bt.$type])},true);$c("IArrayList:r","Object",{$type:new $.ig.Type("IArrayList",null)},true);$c("IArray:s","Object",{$type:new $.ig.Type("IArray",null)},true);$c("LinkedList$1:v","Object",{$t:null,init:function($t){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$.ig.$op.init.call(this)},a:null,c:function(){return this.a},b:null,d:function(){return this.b},e:function(a){if(this.a==null){this.a=new $$t.w(this.$t,1,a);this.b=this.a}else{var b=this.a;this.a=new $$t.w(this.$t,1,a);this.a.a=b;b.b=this.a}},f:function(a){if(this.b==null){this.a=new $$t.w(this.$t,1,a);this.b=this.a}else{var b=this.b;this.b=new $$t.w(this.$t,1,a);this.b.b=b;b.a=this.b}},i:function(){this.h(this.c())},g:function(){this.a=null;this.b=null},h:function(a){if(this.a==a){this.a=a.a;if(a.a!=null){a.a.b=null}}if(this.b==a){this.b=a.b;if(a.b!=null){a.b.a=null}}if(a.b!=null){a.b.a=a.a}if(a.a!=null){a.a.b=a.b}a.a=null;a.b=null},$type:new $.ig.Type("LinkedList$1",$.ig.$ot)},true);$c("LinkedListNode$1:w","Object",{$t:null,_c:null,b:null,a:null,init:function($t,a){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$.ig.$op.init.call(this)},init1:function($t,a,b){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$.ig.$op.init.call(this);this._c=b},$type:new $.ig.Type("LinkedListNode$1",$.ig.$ot)},true);$c("List$1:x","Object",{$t:null,__inner:null,c:false,init:function($t,a){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments);break}return}this.m={};$.ig.$op.init.call(this);this.__inner=[];this.c=this.$t.InstanceConstructor&&this.$t.InstanceConstructor.prototype.equals===$.ig.Object.prototype.equals},init1:function($t,a,b){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$$t.$x.init.call(this,this.$t,0);if(this.d(0,b,true)){return}var d=b.getEnumerator();while(d.moveNext()){var c=d.current();this.add(c)}},init2:function($t,a,b){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$$t.$x.init.call(this,this.$t,0)},x:function(a,b){this.__inner[a]=b},r:function(a,b){this.__inner.splice(a,0,b)},n:function(a){this.__inner.push(a)},u:function(a){if(a==0){this.__inner.shift();return}this.__inner.splice(a,1)},p:function(){this.__inner=[]},item:function(a,b){if(arguments.length===2){this.x(a,b);return b}else{return this.__inner[a]}},indexOf:function(a){if(this.c){return this.__inner.indexOf(a)}for(var b=0;b=0;b--){if($.ig.$op.equalsStatic($e(this.$t,a),$e(this.$t,this.__inner[b]))){return b}}return-1},insert:function(a,b){this.r(a,b)},removeAt:function(a){this.u(a)},count:function(){return this.__inner.length},isReadOnly:function(){return false},add:function(a){this.n(a)},clear:function(){this.p()},contains:function(a){return this.indexOf(a)>=0},copyTo:function(a,b){for(var c=0;c=0},indexOf1:function(a){return this.indexOf($v(this.$t,a))},insert1:function(a,b){this.r(a,$v(this.$t,b))},remove1:function(a){var b=this.indexOf1(a);if(b<0){return}this.u(b)},sort:function(){var a=null;if(this.$t==Number){a=function(b,c){var d=b;var e=c;if(d=0},reset:function(){this.b=this.a.length},dispose:function(){throw new $$6.q(0)},$type:new $.ig.Type("ReverseArrayEnumerator$1",$.ig.$ot,[$$0.$bx.$type.specialize(0)])},true);$c("ObservableCollection$1:f","List$1",{$t:null,init:function($t,a){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments);break}return}$$t.$x.init.call(this,this.$t,0)},init1:function($t,a,b){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$$t.$x.init1.call(this,this.$t,1,b)},init2:function($t,a,b){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$$t.$x.init2.call(this,this.$t,2,b)},x:function(a,b){var c=this.__inner[a];$$t.$x.x.call(this,a,b);if(this.propertyChanged!=null){this.ad(new $$0.b7("Item[]"))}if(this.collectionChanged!=null){var d=new $$t.ae(2,2,$e(this.$t,b),$e(this.$t,c),a);this.ac(d)}},p:function(){$$t.$x.p.call(this);if(this.propertyChanged!=null){this.ad(new $$0.b7("Count"));this.ad(new $$0.b7("Item[]"))}if(this.collectionChanged!=null){var a=new $$t.ae(0,4);this.ac(a)}},r:function(a,b){$$t.$x.r.call(this,a,b);if(this.propertyChanged!=null){this.ad(new $$0.b7("Count"));this.ad(new $$0.b7("Item[]"))}if(this.collectionChanged!=null){var c=new $$t.ae(1,0,$e(this.$t,b),a);this.ac(c)}},n:function(a){$$t.$x.n.call(this,a);if(this.propertyChanged!=null){this.ad(new $$0.b7("Count"));this.ad(new $$0.b7("Item[]"))}if(this.collectionChanged!=null){var b=new $$t.ae(1,0,$e(this.$t,a),this.count()-1);this.ac(b)}},u:function(a){var b=this.__inner[a];$$t.$x.u.call(this,a);if(this.propertyChanged!=null){this.ad(new $$0.b7("Count"));this.ad(new $$0.b7("Item[]"))}if(this.collectionChanged!=null){var c=new $$t.ae(1,1,$e(this.$t,b),a);this.ac(c)}},collectionChanged:null,propertyChanged:null,ad:function(a){if(this.propertyChanged!=null){this.propertyChanged(this,a)}},ac:function(a){if(this.collectionChanged!=null){this.collectionChanged(this,a)}},$type:new $.ig.Type("ObservableCollection$1",$$t.$x.$type.specialize(0),[$$t.$ac.$type,$$0.$b6.$type])},true);$c("ObjectCollection:d","ObservableCollection$1",{init:function(a){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments);break}return}$$t.$f.init.call(this,$.ig.$op.$type,0)},init1:function(a,b){$$t.$f.init1.call(this,$.ig.$op.$type,1,b)},init2:function(a,b){$$t.$f.init2.call(this,$.ig.$op.$type,2,b)},$type:new $.ig.Type("ObjectCollection",$$t.$f.$type.specialize($.ig.$op.$type))},true);$c("Collection$1:e","List$1",{$t:null,init:function($t){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$$t.$x.init.call(this,this.$t,0)},ac:function(){return this},$type:new $.ig.Type("Collection$1",$$t.$x.$type.specialize(0))},true);$c("ReadOnlyCollection$1:g","Object",{$t:null,init:function($t,a){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}this.c={};$.ig.$op.init.call(this)},init1:function($t,a,b){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}this.c={};$.ig.$op.init.call(this);this.a=b},a:null,item:function(a,b){if(arguments.length===2){this.a.item(a,b);return b}else{return this.a.item(a)}},indexOf:function(a){return this.a.indexOf(a)},insert:function(a,b){},removeAt:function(a){},count:function(){return this.a.count()},isReadOnly:function(){return true},add:function(a){},clear:function(){},contains:function(a){return this.a.contains(a)},copyTo:function(a,b){this.a.copyTo(a,b)},remove:function(a){return false},getEnumerator:function(){return this.a.getEnumerator()},isFixedSize:function(){return true},add1:function(a){return-1},contains1:function(a){return this.a.contains($v(this.$t,a))},indexOf1:function(a){return this.a.indexOf($v(this.$t,a)); },insert1:function(a,b){},remove1:function(a){},copyTo1:function(a,b){this.a.copyTo(a,b)},b:function(){return this.a},isSynchronized:function(){return true},c:null,syncRoot:function(){return this.c},$type:new $.ig.Type("ReadOnlyCollection$1",$.ig.$ot,[$$0.$bz.$type.specialize(0),$$0.$bm.$type])},true);$c("Dictionary___ToEnumerableValues__IteratorClass$2:l","Object",{$tKey:null,$tValue:null,g:0,e:null,a:null,h:0,b:null,i:0,f:null,c:null,j:0,__4__this:null,init:function($tKey,$tValue,a){this.$tKey=$tKey;this.$tValue=$tValue;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tKey,this.$tValue)}$.ig.$op.init.call(this);this.g=a},moveNext:function(){while(this.g>=0){switch(this.g){case 0:this.g=-1;if(this.__4__this.c){this.a=$.ig.util.getArrayOfProperties(this.__4__this.a);this.h=0;this.g=1;break}this.b=$.ig.util.getArrayOfProperties(this.__4__this.b);this.i=0;this.g=3;break;case 1:this.g=-1;if(this.h=0){switch(this.c){case 0:this.c=-1;if(this.__4__this.e=0){switch(this.g){case 0:this.g=-1;if(this.__4__this.c){this.a=$.ig.util.getArrayOfProperties(this.__4__this.a);this.h=0;this.g=1;break}this.b=$.ig.util.getArrayOfProperties(this.__4__this.b);this.i=0;this.g=3;break;case 1:this.g=-1;if(this.h=0){switch(this.g){case 0:this.g=-1;if(this.__4__this.c){this.a=$.ig.util.getArrayOfProperties(this.__4__this.a);this.h=0;this.g=1;break}this.b=$.ig.util.getArrayOfProperties(this.__4__this.b);this.i=0;this.g=3;break;case 1:this.g=-1;if(this.h