Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: third_party/flot/jquery.min.js

Issue 1235773002: Add jquery and flot to catapult/third_party. (Closed) Base URL: git@github.com:catapult-project/catapult.git@master
Patch Set: Rebased Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/flot/jquery.flot.time.min.js ('k') | third_party/jquery/README.chromium » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 (function(window,undefined){var rootjQuery,readyList,document=window.document,lo cation=window.location,navigator=window.navigator,_jQuery=window.jQuery,_$=windo w.$,core_push=Array.prototype.push,core_slice=Array.prototype.slice,core_indexOf =Array.prototype.indexOf,core_toString=Object.prototype.toString,core_hasOwn=Obj ect.prototype.hasOwnProperty,core_trim=String.prototype.trim,jQuery=function(sel ector,context){return new jQuery.fn.init(selector,context,rootjQuery)},core_pnum =/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,core_rnotwhite=/\S/,core_rspace= /\s+/,rtrim=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,rquickExpr=/^(?:[^#<]*(<[\w\W]+ >)[^>]*$|#([\w\-]*)$)/,rsingleTag=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,rvalidchars=/^[\] ,:{}\s]*$/,rvalidbraces=/(?:^|:|,)(?:\s*\[)+/g,rvalidescape=/\\(?:["\\\/bfnrt]|u [\da-fA-F]{4})/g,rvalidtokens=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(? :[eE][\-+]?\d+|)/g,rmsPrefix=/^-ms-/,rdashAlpha=/-([\da-z])/gi,fcamelCase=functi on(all,letter){return(letter+"").toUpperCase()},DOMContentLoaded=function(){if(d ocument.addEventListener){document.removeEventListener("DOMContentLoaded",DOMCon tentLoaded,false);jQuery.ready()}else if(document.readyState==="complete"){docum ent.detachEvent("onreadystatechange",DOMContentLoaded);jQuery.ready()}},class2ty pe={};jQuery.fn=jQuery.prototype={constructor:jQuery,init:function(selector,cont ext,rootjQuery){var match,elem,ret,doc;if(!selector){return this}if(selector.nod eType){this.context=this[0]=selector;this.length=1;return this}if(typeof selecto r==="string"){if(selector.charAt(0)==="<"&&selector.charAt(selector.length-1)=== ">"&&selector.length>=3){match=[null,selector,null]}else{match=rquickExpr.exec(s elector)}if(match&&(match[1]||!context)){if(match[1]){context=context instanceof jQuery?context[0]:context;doc=context&&context.nodeType?context.ownerDocument|| context:document;selector=jQuery.parseHTML(match[1],doc,true);if(rsingleTag.test (match[1])&&jQuery.isPlainObject(context)){this.attr.call(selector,context,true) }return jQuery.merge(this,selector)}else{elem=document.getElementById(match[2]); if(elem&&elem.parentNode){if(elem.id!==match[2]){return rootjQuery.find(selector )}this.length=1;this[0]=elem}this.context=document;this.selector=selector;return this}}else if(!context||context.jquery){return(context||rootjQuery).find(select or)}else{return this.constructor(context).find(selector)}}else if(jQuery.isFunct ion(selector)){return rootjQuery.ready(selector)}if(selector.selector!==undefine d){this.selector=selector.selector;this.context=selector.context}return jQuery.m akeArray(selector,this)},selector:"",jquery:"1.8.3",length:0,size:function(){ret urn this.length},toArray:function(){return core_slice.call(this)},get:function(n um){return num==null?this.toArray():num<0?this[this.length+num]:this[num]},pushS tack:function(elems,name,selector){var ret=jQuery.merge(this.constructor(),elems );ret.prevObject=this;ret.context=this.context;if(name==="find"){ret.selector=th is.selector+(this.selector?" ":"")+selector}else if(name){ret.selector=this.sele ctor+"."+name+"("+selector+")"}return ret},each:function(callback,args){return j Query.each(this,callback,args)},ready:function(fn){jQuery.ready.promise().done(f n);return this},eq:function(i){i=+i;return i===-1?this.slice(i):this.slice(i,i+1 )},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice :function(){return this.pushStack(core_slice.apply(this,arguments),"slice",core_ slice.call(arguments).join(","))},map:function(callback){return this.pushStack(j Query.map(this,function(elem,i){return callback.call(elem,i,elem)}))},end:functi on(){return this.prevObject||this.constructor(null)},push:core_push,sort:[].sort ,splice:[].splice};jQuery.fn.init.prototype=jQuery.fn;jQuery.extend=jQuery.fn.ex tend=function(){var options,name,src,copy,copyIsArray,clone,target=arguments[0]| |{},i=1,length=arguments.length,deep=false;if(typeof target==="boolean"){deep=ta rget;target=arguments[1]||{};i=2}if(typeof target!=="object"&&!jQuery.isFunction (target)){target={}}if(length===i){target=this;--i}for(;i<length;i++){if((option s=arguments[i])!=null){for(name in options){src=target[name];copy=options[name]; if(target===copy){continue}if(deep&&copy&&(jQuery.isPlainObject(copy)||(copyIsAr ray=jQuery.isArray(copy)))){if(copyIsArray){copyIsArray=false;clone=src&&jQuery. isArray(src)?src:[]}else{clone=src&&jQuery.isPlainObject(src)?src:{}}target[name ]=jQuery.extend(deep,clone,copy)}else if(copy!==undefined){target[name]=copy}}}} return target};jQuery.extend({noConflict:function(deep){if(window.$===jQuery){wi ndow.$=_$}if(deep&&window.jQuery===jQuery){window.jQuery=_jQuery}return jQuery}, isReady:false,readyWait:1,holdReady:function(hold){if(hold){jQuery.readyWait++}e lse{jQuery.ready(true)}},ready:function(wait){if(wait===true?--jQuery.readyWait: jQuery.isReady){return}if(!document.body){return setTimeout(jQuery.ready,1)}jQue ry.isReady=true;if(wait!==true&&--jQuery.readyWait>0){return}readyList.resolveWi th(document,[jQuery]);if(jQuery.fn.trigger){jQuery(document).trigger("ready").of f("ready")}},isFunction:function(obj){return jQuery.type(obj)==="function"},isAr ray:Array.isArray||function(obj){return jQuery.type(obj)==="array"},isWindow:fun ction(obj){return obj!=null&&obj==obj.window},isNumeric:function(obj){return!isN aN(parseFloat(obj))&&isFinite(obj)},type:function(obj){return obj==null?String(o bj):class2type[core_toString.call(obj)]||"object"},isPlainObject:function(obj){i f(!obj||jQuery.type(obj)!=="object"||obj.nodeType||jQuery.isWindow(obj)){return false}try{if(obj.constructor&&!core_hasOwn.call(obj,"constructor")&&!core_hasOwn .call(obj.constructor.prototype,"isPrototypeOf")){return false}}catch(e){return false}var key;for(key in obj){}return key===undefined||core_hasOwn.call(obj,key) },isEmptyObject:function(obj){var name;for(name in obj){return false}return true },error:function(msg){throw new Error(msg)},parseHTML:function(data,context,scri pts){var parsed;if(!data||typeof data!=="string"){return null}if(typeof context= =="boolean"){scripts=context;context=0}context=context||document;if(parsed=rsing leTag.exec(data)){return[context.createElement(parsed[1])]}parsed=jQuery.buildFr agment([data],context,scripts?null:[]);return jQuery.merge([],(parsed.cacheable? jQuery.clone(parsed.fragment):parsed.fragment).childNodes)},parseJSON:function(d ata){if(!data||typeof data!=="string"){return null}data=jQuery.trim(data);if(win dow.JSON&&window.JSON.parse){return window.JSON.parse(data)}if(rvalidchars.test( data.replace(rvalidescape,"@").replace(rvalidtokens,"]").replace(rvalidbraces,"" ))){return new Function("return "+data)()}jQuery.error("Invalid JSON: "+data)},p arseXML:function(data){var xml,tmp;if(!data||typeof data!=="string"){return null }try{if(window.DOMParser){tmp=new DOMParser;xml=tmp.parseFromString(data,"text/x ml")}else{xml=new ActiveXObject("Microsoft.XMLDOM");xml.async="false";xml.loadXM L(data)}}catch(e){xml=undefined}if(!xml||!xml.documentElement||xml.getElementsBy TagName("parsererror").length){jQuery.error("Invalid XML: "+data)}return xml},no op:function(){},globalEval:function(data){if(data&&core_rnotwhite.test(data)){(w indow.execScript||function(data){window["eval"].call(window,data)})(data)}},came lCase:function(string){return string.replace(rmsPrefix,"ms-").replace(rdashAlpha ,fcamelCase)},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.t oLowerCase()===name.toLowerCase()},each:function(obj,callback,args){var name,i=0 ,length=obj.length,isObj=length===undefined||jQuery.isFunction(obj);if(args){if( isObj){for(name in obj){if(callback.apply(obj[name],args)===false){break}}}else{ for(;i<length;){if(callback.apply(obj[i++],args)===false){break}}}}else{if(isObj ){for(name in obj){if(callback.call(obj[name],name,obj[name])===false){break}}}e lse{for(;i<length;){if(callback.call(obj[i],i,obj[i++])===false){break}}}}return obj},trim:core_trim&&!core_trim.call(" ")?function(text){return text==null?"": core_trim.call(text)}:function(text){return text==null?"":(text+"").replace(rtri m,"")},makeArray:function(arr,results){var type,ret=results||[];if(arr!=null){ty pe=jQuery.type(arr);if(arr.length==null||type==="string"||type==="function"||typ e==="regexp"||jQuery.isWindow(arr)){core_push.call(ret,arr)}else{jQuery.merge(re t,arr)}}return ret},inArray:function(elem,arr,i){var len;if(arr){if(core_indexOf ){return core_indexOf.call(arr,elem,i)}len=arr.length;i=i?i<0?Math.max(0,len+i): i:0;for(;i<len;i++){if(i in arr&&arr[i]===elem){return i}}}return-1},merge:funct ion(first,second){var l=second.length,i=first.length,j=0;if(typeof l==="number") {for(;j<l;j++){first[i++]=second[j]}}else{while(second[j]!==undefined){first[i++ ]=second[j++]}}first.length=i;return first},grep:function(elems,callback,inv){va r retVal,ret=[],i=0,length=elems.length;inv=!!inv;for(;i<length;i++){retVal=!!ca llback(elems[i],i);if(inv!==retVal){ret.push(elems[i])}}return ret},map:function (elems,callback,arg){var value,key,ret=[],i=0,length=elems.length,isArray=elems instanceof jQuery||length!==undefined&&typeof length==="number"&&(length>0&&elem s[0]&&elems[length-1]||length===0||jQuery.isArray(elems));if(isArray){for(;i<len gth;i++){value=callback(elems[i],i,arg);if(value!=null){ret[ret.length]=value}}} else{for(key in elems){value=callback(elems[key],key,arg);if(value!=null){ret[re t.length]=value}}}return ret.concat.apply([],ret)},guid:1,proxy:function(fn,cont ext){var tmp,args,proxy;if(typeof context==="string"){tmp=fn[context];context=fn ;fn=tmp}if(!jQuery.isFunction(fn)){return undefined}args=core_slice.call(argumen ts,2);proxy=function(){return fn.apply(context,args.concat(core_slice.call(argum ents)))};proxy.guid=fn.guid=fn.guid||jQuery.guid++;return proxy},access:function (elems,fn,key,value,chainable,emptyGet,pass){var exec,bulk=key==null,i=0,length= elems.length;if(key&&typeof key==="object"){for(i in key){jQuery.access(elems,fn ,i,key[i],1,emptyGet,value)}chainable=1}else if(value!==undefined){exec=pass===u ndefined&&jQuery.isFunction(value);if(bulk){if(exec){exec=fn;fn=function(elem,ke y,value){return exec.call(jQuery(elem),value)}}else{fn.call(elems,value);fn=null }}if(fn){for(;i<length;i++){fn(elems[i],key,exec?value.call(elems[i],i,fn(elems[ i],key)):value,pass)}}chainable=1}return chainable?elems:bulk?fn.call(elems):len gth?fn(elems[0],key):emptyGet},now:function(){return(new Date).getTime()}});jQue ry.ready.promise=function(obj){if(!readyList){readyList=jQuery.Deferred();if(doc ument.readyState==="complete"){setTimeout(jQuery.ready,1)}else if(document.addEv entListener){document.addEventListener("DOMContentLoaded",DOMContentLoaded,false );window.addEventListener("load",jQuery.ready,false)}else{document.attachEvent(" onreadystatechange",DOMContentLoaded);window.attachEvent("onload",jQuery.ready); var top=false;try{top=window.frameElement==null&&document.documentElement}catch( e){}if(top&&top.doScroll){(function doScrollCheck(){if(!jQuery.isReady){try{top. doScroll("left")}catch(e){return setTimeout(doScrollCheck,50)}jQuery.ready()}})( )}}}return readyList.promise(obj)};jQuery.each("Boolean Number String Function A rray Date RegExp Object".split(" "),function(i,name){class2type["[object "+name+ "]"]=name.toLowerCase()});rootjQuery=jQuery(document);var optionsCache={};functi on createOptions(options){var object=optionsCache[options]={};jQuery.each(option s.split(core_rspace),function(_,flag){object[flag]=true});return object}jQuery.C allbacks=function(options){options=typeof options==="string"?optionsCache[option s]||createOptions(options):jQuery.extend({},options);var memory,fired,firing,fir ingStart,firingLength,firingIndex,list=[],stack=!options.once&&[],fire=function( data){memory=options.memory&&data;fired=true;firingIndex=firingStart||0;firingSt art=0;firingLength=list.length;firing=true;for(;list&&firingIndex<firingLength;f iringIndex++){if(list[firingIndex].apply(data[0],data[1])===false&&options.stopO nFalse){memory=false;break}}firing=false;if(list){if(stack){if(stack.length){fir e(stack.shift())}}else if(memory){list=[]}else{self.disable()}}},self={add:funct ion(){if(list){var start=list.length;(function add(args){jQuery.each(args,functi on(_,arg){var type=jQuery.type(arg);if(type==="function"){if(!options.unique||!s elf.has(arg)){list.push(arg)}}else if(arg&&arg.length&&type!=="string"){add(arg) }})})(arguments);if(firing){firingLength=list.length}else if(memory){firingStart =start;fire(memory)}}return this},remove:function(){if(list){jQuery.each(argumen ts,function(_,arg){var index;while((index=jQuery.inArray(arg,list,index))>-1){li st.splice(index,1);if(firing){if(index<=firingLength){firingLength--}if(index<=f iringIndex){firingIndex--}}}})}return this},has:function(fn){return jQuery.inArr ay(fn,list)>-1},empty:function(){list=[];return this},disable:function(){list=st ack=memory=undefined;return this},disabled:function(){return!list},lock:function (){stack=undefined;if(!memory){self.disable()}return this},locked:function(){ret urn!stack},fireWith:function(context,args){args=args||[];args=[context,args.slic e?args.slice():args];if(list&&(!fired||stack)){if(firing){stack.push(args)}else{ fire(args)}}return this},fire:function(){self.fireWith(this,arguments);return th is},fired:function(){return!!fired}};return self};jQuery.extend({Deferred:functi on(func){var tuples=[["resolve","done",jQuery.Callbacks("once memory"),"resolved "],["reject","fail",jQuery.Callbacks("once memory"),"rejected"],["notify","progr ess",jQuery.Callbacks("memory")]],state="pending",promise={state:function(){retu rn state},always:function(){deferred.done(arguments).fail(arguments);return this },then:function(){var fns=arguments;return jQuery.Deferred(function(newDefer){jQ uery.each(tuples,function(i,tuple){var action=tuple[0],fn=fns[i];deferred[tuple[ 1]](jQuery.isFunction(fn)?function(){var returned=fn.apply(this,arguments);if(re turned&&jQuery.isFunction(returned.promise)){returned.promise().done(newDefer.re solve).fail(newDefer.reject).progress(newDefer.notify)}else{newDefer[action+"Wit h"](this===deferred?newDefer:this,[returned])}}:newDefer[action])});fns=null}).p romise()},promise:function(obj){return obj!=null?jQuery.extend(obj,promise):prom ise}},deferred={};promise.pipe=promise.then;jQuery.each(tuples,function(i,tuple) {var list=tuple[2],stateString=tuple[3];promise[tuple[1]]=list.add;if(stateStrin g){list.add(function(){state=stateString},tuples[i^1][2].disable,tuples[2][2].lo ck)}deferred[tuple[0]]=list.fire;deferred[tuple[0]+"With"]=list.fireWith});promi se.promise(deferred);if(func){func.call(deferred,deferred)}return deferred},when :function(subordinate){var i=0,resolveValues=core_slice.call(arguments),length=r esolveValues.length,remaining=length!==1||subordinate&&jQuery.isFunction(subordi nate.promise)?length:0,deferred=remaining===1?subordinate:jQuery.Deferred(),upda teFunc=function(i,contexts,values){return function(value){contexts[i]=this;value s[i]=arguments.length>1?core_slice.call(arguments):value;if(values===progressVal ues){deferred.notifyWith(contexts,values)}else if(!--remaining){deferred.resolve With(contexts,values)}}},progressValues,progressContexts,resolveContexts;if(leng th>1){progressValues=new Array(length);progressContexts=new Array(length);resolv eContexts=new Array(length);for(;i<length;i++){if(resolveValues[i]&&jQuery.isFun ction(resolveValues[i].promise)){resolveValues[i].promise().done(updateFunc(i,re solveContexts,resolveValues)).fail(deferred.reject).progress(updateFunc(i,progre ssContexts,progressValues))}else{--remaining}}}if(!remaining){deferred.resolveWi th(resolveContexts,resolveValues)}return deferred.promise()}});jQuery.support=fu nction(){var support,all,a,select,opt,input,fragment,eventName,i,isSupported,cli ckFn,div=document.createElement("div");div.setAttribute("className","t");div.inn erHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";all= div.getElementsByTagName("*");a=div.getElementsByTagName("a")[0];if(!all||!a||!a ll.length){return{}}select=document.createElement("select");opt=select.appendChi ld(document.createElement("option"));input=div.getElementsByTagName("input")[0]; a.style.cssText="top:1px;float:left;opacity:.5";support={leadingWhitespace:div.f irstChild.nodeType===3,tbody:!div.getElementsByTagName("tbody").length,htmlSeria lize:!!div.getElementsByTagName("link").length,style:/top/.test(a.getAttribute(" style")),hrefNormalized:a.getAttribute("href")==="/a",opacity:/^0.5/.test(a.styl e.opacity),cssFloat:!!a.style.cssFloat,checkOn:input.value==="on",optSelected:op t.selected,getSetAttribute:div.className!=="t",enctype:!!document.createElement( "form").enctype,html5Clone:document.createElement("nav").cloneNode(true).outerHT ML!=="<:nav></:nav>",boxModel:document.compatMode==="CSS1Compat",submitBubbles:t rue,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true ,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true,bo xSizingReliable:true,pixelPosition:false};input.checked=true;support.noCloneChec ked=input.cloneNode(true).checked;select.disabled=true;support.optDisabled=!opt. disabled;try{delete div.test}catch(e){support.deleteExpando=false}if(!div.addEve ntListener&&div.attachEvent&&div.fireEvent){div.attachEvent("onclick",clickFn=fu nction(){support.noCloneEvent=false});div.cloneNode(true).fireEvent("onclick");d iv.detachEvent("onclick",clickFn)}input=document.createElement("input");input.va lue="t";input.setAttribute("type","radio");support.radioValue=input.value==="t"; input.setAttribute("checked","checked");input.setAttribute("name","t");div.appen dChild(input);fragment=document.createDocumentFragment();fragment.appendChild(di v.lastChild);support.checkClone=fragment.cloneNode(true).cloneNode(true).lastChi ld.checked;support.appendChecked=input.checked;fragment.removeChild(input);fragm ent.appendChild(div);if(div.attachEvent){for(i in{submit:true,change:true,focusi n:true}){eventName="on"+i;isSupported=eventName in div;if(!isSupported){div.setA ttribute(eventName,"return;");isSupported=typeof div[eventName]==="function"}sup port[i+"Bubbles"]=isSupported}}jQuery(function(){var container,div,tds,marginDiv ,divReset="padding:0;margin:0;border:0;display:block;overflow:hidden;",body=docu ment.getElementsByTagName("body")[0];if(!body){return}container=document.createE lement("div");container.style.cssText="visibility:hidden;border:0;width:0;height :0;position:static;top:0;margin-top:1px";body.insertBefore(container,body.firstC hild);div=document.createElement("div");container.appendChild(div);div.innerHTML ="<table><tr><td></td><td>t</td></tr></table>";tds=div.getElementsByTagName("td" );tds[0].style.cssText="padding:0;margin:0;border:0;display:none";isSupported=td s[0].offsetHeight===0;tds[0].style.display="";tds[1].style.display="none";suppor t.reliableHiddenOffsets=isSupported&&tds[0].offsetHeight===0;div.innerHTML="";di v.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-si zing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;pos ition:absolute;top:1%;";support.boxSizing=div.offsetWidth===4;support.doesNotInc ludeMarginInBodyOffset=body.offsetTop!==1;if(window.getComputedStyle){support.pi xelPosition=(window.getComputedStyle(div,null)||{}).top!=="1%";support.boxSizing Reliable=(window.getComputedStyle(div,null)||{width:"4px"}).width==="4px";margin Div=document.createElement("div");marginDiv.style.cssText=div.style.cssText=divR eset;marginDiv.style.marginRight=marginDiv.style.width="0";div.style.width="1px" ;div.appendChild(marginDiv);support.reliableMarginRight=!parseFloat((window.getC omputedStyle(marginDiv,null)||{}).marginRight)}if(typeof div.style.zoom!=="undef ined"){div.innerHTML="";div.style.cssText=divReset+"width:1px;padding:1px;displa y:inline;zoom:1";support.inlineBlockNeedsLayout=div.offsetWidth===3;div.style.di splay="block";div.style.overflow="visible";div.innerHTML="<div></div>";div.first Child.style.width="5px";support.shrinkWrapBlocks=div.offsetWidth!==3;container.s tyle.zoom=1}body.removeChild(container);container=div=tds=marginDiv=null});fragm ent.removeChild(div);all=a=select=opt=input=fragment=div=null;return support}(); var rbrace=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,rmultiDash=/([A-Z])/g;jQuery.extend({c ache:{},deletedIds:[],uuid:0,expando:"jQuery"+(jQuery.fn.jquery+Math.random()).r eplace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553 540000",applet:true},hasData:function(elem){elem=elem.nodeType?jQuery.cache[elem [jQuery.expando]]:elem[jQuery.expando];return!!elem&&!isEmptyDataObject(elem)},d ata:function(elem,name,data,pvt){if(!jQuery.acceptData(elem)){return}var thisCac he,ret,internalKey=jQuery.expando,getByName=typeof name==="string",isNode=elem.n odeType,cache=isNode?jQuery.cache:elem,id=isNode?elem[internalKey]:elem[internal Key]&&internalKey;if((!id||!cache[id]||!pvt&&!cache[id].data)&&getByName&&data== =undefined){return}if(!id){if(isNode){elem[internalKey]=id=jQuery.deletedIds.pop ()||jQuery.guid++}else{id=internalKey}}if(!cache[id]){cache[id]={};if(!isNode){c ache[id].toJSON=jQuery.noop}}if(typeof name==="object"||typeof name==="function" ){if(pvt){cache[id]=jQuery.extend(cache[id],name)}else{cache[id].data=jQuery.ext end(cache[id].data,name)}}thisCache=cache[id];if(!pvt){if(!thisCache.data){thisC ache.data={}}thisCache=thisCache.data}if(data!==undefined){thisCache[jQuery.came lCase(name)]=data}if(getByName){ret=thisCache[name];if(ret==null){ret=thisCache[ jQuery.camelCase(name)]}}else{ret=thisCache}return ret},removeData:function(elem ,name,pvt){if(!jQuery.acceptData(elem)){return}var thisCache,i,l,isNode=elem.nod eType,cache=isNode?jQuery.cache:elem,id=isNode?elem[jQuery.expando]:jQuery.expan do;if(!cache[id]){return}if(name){thisCache=pvt?cache[id]:cache[id].data;if(this Cache){if(!jQuery.isArray(name)){if(name in thisCache){name=[name]}else{name=jQu ery.camelCase(name);if(name in thisCache){name=[name]}else{name=name.split(" ")} }}for(i=0,l=name.length;i<l;i++){delete thisCache[name[i]]}if(!(pvt?isEmptyDataO bject:jQuery.isEmptyObject)(thisCache)){return}}}if(!pvt){delete cache[id].data; if(!isEmptyDataObject(cache[id])){return}}if(isNode){jQuery.cleanData([elem],tru e)}else if(jQuery.support.deleteExpando||cache!=cache.window){delete cache[id]}e lse{cache[id]=null}},_data:function(elem,name,data){return jQuery.data(elem,name ,data,true)},acceptData:function(elem){var noData=elem.nodeName&&jQuery.noData[e lem.nodeName.toLowerCase()];return!noData||noData!==true&&elem.getAttribute("cla ssid")===noData}});jQuery.fn.extend({data:function(key,value){var parts,part,att r,name,l,elem=this[0],i=0,data=null;if(key===undefined){if(this.length){data=jQu ery.data(elem);if(elem.nodeType===1&&!jQuery._data(elem,"parsedAttrs")){attr=ele m.attributes;for(l=attr.length;i<l;i++){name=attr[i].name;if(!name.indexOf("data -")){name=jQuery.camelCase(name.substring(5));dataAttr(elem,name,data[name])}}jQ uery._data(elem,"parsedAttrs",true)}}return data}if(typeof key==="object"){retur n this.each(function(){jQuery.data(this,key)})}parts=key.split(".",2);parts[1]=p arts[1]?"."+parts[1]:"";part=parts[1]+"!";return jQuery.access(this,function(val ue){if(value===undefined){data=this.triggerHandler("getData"+part,[parts[0]]);if (data===undefined&&elem){data=jQuery.data(elem,key);data=dataAttr(elem,key,data) }return data===undefined&&parts[1]?this.data(parts[0]):data}parts[1]=value;this. each(function(){var self=jQuery(this);self.triggerHandler("setData"+part,parts); jQuery.data(this,key,value);self.triggerHandler("changeData"+part,parts)})},null ,value,arguments.length>1,null,false)},removeData:function(key){return this.each (function(){jQuery.removeData(this,key)})}});function dataAttr(elem,key,data){if (data===undefined&&elem.nodeType===1){var name="data-"+key.replace(rmultiDash,"- $1").toLowerCase();data=elem.getAttribute(name);if(typeof data==="string"){try{d ata=data==="true"?true:data==="false"?false:data==="null"?null:+data+""===data?+ data:rbrace.test(data)?jQuery.parseJSON(data):data}catch(e){}jQuery.data(elem,ke y,data)}else{data=undefined}}return data}function isEmptyDataObject(obj){var nam e;for(name in obj){if(name==="data"&&jQuery.isEmptyObject(obj[name])){continue}i f(name!=="toJSON"){return false}}return true}jQuery.extend({queue:function(elem, type,data){var queue;if(elem){type=(type||"fx")+"queue";queue=jQuery._data(elem, type);if(data){if(!queue||jQuery.isArray(data)){queue=jQuery._data(elem,type,jQu ery.makeArray(data))}else{queue.push(data)}}return queue||[]}},dequeue:function( elem,type){type=type||"fx";var queue=jQuery.queue(elem,type),startLength=queue.l ength,fn=queue.shift(),hooks=jQuery._queueHooks(elem,type),next=function(){jQuer y.dequeue(elem,type)};if(fn==="inprogress"){fn=queue.shift();startLength--}if(fn ){if(type==="fx"){queue.unshift("inprogress")}delete hooks.stop;fn.call(elem,nex t,hooks)}if(!startLength&&hooks){hooks.empty.fire()}},_queueHooks:function(elem, type){var key=type+"queueHooks";return jQuery._data(elem,key)||jQuery._data(elem ,key,{empty:jQuery.Callbacks("once memory").add(function(){jQuery.removeData(ele m,type+"queue",true);jQuery.removeData(elem,key,true)})})}});jQuery.fn.extend({q ueue:function(type,data){var setter=2;if(typeof type!=="string"){data=type;type= "fx";setter--}if(arguments.length<setter){return jQuery.queue(this[0],type)}retu rn data===undefined?this:this.each(function(){var queue=jQuery.queue(this,type,d ata);jQuery._queueHooks(this,type);if(type==="fx"&&queue[0]!=="inprogress"){jQue ry.dequeue(this,type)}})},dequeue:function(type){return this.each(function(){jQu ery.dequeue(this,type)})},delay:function(time,type){time=jQuery.fx?jQuery.fx.spe eds[time]||time:time;type=type||"fx";return this.queue(type,function(next,hooks) {var timeout=setTimeout(next,time);hooks.stop=function(){clearTimeout(timeout)}} )},clearQueue:function(type){return this.queue(type||"fx",[])},promise:function( type,obj){var tmp,count=1,defer=jQuery.Deferred(),elements=this,i=this.length,re solve=function(){if(!--count){defer.resolveWith(elements,[elements])}};if(typeof type!=="string"){obj=type;type=undefined}type=type||"fx";while(i--){tmp=jQuery. _data(elements[i],type+"queueHooks");if(tmp&&tmp.empty){count++;tmp.empty.add(re solve)}}resolve();return defer.promise(obj)}});var nodeHook,boolHook,fixSpecifie d,rclass=/[\t\r\n]/g,rreturn=/\r/g,rtype=/^(?:button|input)$/i,rfocusable=/^(?:b utton|input|object|select|textarea)$/i,rclickable=/^a(?:rea|)$/i,rboolean=/^(?:a utofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|ope n|readonly|required|scoped|selected)$/i,getSetAttribute=jQuery.support.getSetAtt ribute;jQuery.fn.extend({attr:function(name,value){return jQuery.access(this,jQu ery.attr,name,value,arguments.length>1)},removeAttr:function(name){return this.e ach(function(){jQuery.removeAttr(this,name)})},prop:function(name,value){return jQuery.access(this,jQuery.prop,name,value,arguments.length>1)},removeProp:functi on(name){name=jQuery.propFix[name]||name;return this.each(function(){try{this[na me]=undefined;delete this[name]}catch(e){}})},addClass:function(value){var class Names,i,l,elem,setClass,c,cl;if(jQuery.isFunction(value)){return this.each(funct ion(j){jQuery(this).addClass(value.call(this,j,this.className))})}if(value&&type of value==="string"){classNames=value.split(core_rspace);for(i=0,l=this.length;i <l;i++){elem=this[i];if(elem.nodeType===1){if(!elem.className&&classNames.length ===1){elem.className=value}else{setClass=" "+elem.className+" ";for(c=0,cl=class Names.length;c<cl;c++){if(setClass.indexOf(" "+classNames[c]+" ")<0){setClass+=c lassNames[c]+" "}}elem.className=jQuery.trim(setClass)}}}}return this},removeCla ss:function(value){var removes,className,elem,c,cl,i,l;if(jQuery.isFunction(valu e)){return this.each(function(j){jQuery(this).removeClass(value.call(this,j,this .className))})}if(value&&typeof value==="string"||value===undefined){removes=(va lue||"").split(core_rspace);for(i=0,l=this.length;i<l;i++){elem=this[i];if(elem. nodeType===1&&elem.className){className=(" "+elem.className+" ").replace(rclass, " ");for(c=0,cl=removes.length;c<cl;c++){while(className.indexOf(" "+removes[c]+ " ")>=0){className=className.replace(" "+removes[c]+" "," ")}}elem.className=val ue?jQuery.trim(className):""}}}return this},toggleClass:function(value,stateVal) {var type=typeof value,isBool=typeof stateVal==="boolean";if(jQuery.isFunction(v alue)){return this.each(function(i){jQuery(this).toggleClass(value.call(this,i,t his.className,stateVal),stateVal)})}return this.each(function(){if(type==="strin g"){var className,i=0,self=jQuery(this),state=stateVal,classNames=value.split(co re_rspace);while(className=classNames[i++]){state=isBool?state:!self.hasClass(cl assName);self[state?"addClass":"removeClass"](className)}}else if(type==="undefi ned"||type==="boolean"){if(this.className){jQuery._data(this,"__className__",thi s.className)}this.className=this.className||value===false?"":jQuery._data(this," __className__")||""}})},hasClass:function(selector){var className=" "+selector+" ",i=0,l=this.length;for(;i<l;i++){if(this[i].nodeType===1&&(" "+this[i].classNa me+" ").replace(rclass," ").indexOf(className)>=0){return true}}return false},va l:function(value){var hooks,ret,isFunction,elem=this[0];if(!arguments.length){if (elem){hooks=jQuery.valHooks[elem.type]||jQuery.valHooks[elem.nodeName.toLowerCa se()];if(hooks&&"get"in hooks&&(ret=hooks.get(elem,"value"))!==undefined){return ret}ret=elem.value;return typeof ret==="string"?ret.replace(rreturn,""):ret==nu ll?"":ret}return}isFunction=jQuery.isFunction(value);return this.each(function(i ){var val,self=jQuery(this);if(this.nodeType!==1){return}if(isFunction){val=valu e.call(this,i,self.val())}else{val=value}if(val==null){val=""}else if(typeof val ==="number"){val+=""}else if(jQuery.isArray(val)){val=jQuery.map(val,function(va lue){return value==null?"":value+""})}hooks=jQuery.valHooks[this.type]||jQuery.v alHooks[this.nodeName.toLowerCase()];if(!hooks||!("set"in hooks)||hooks.set(this ,val,"value")===undefined){this.value=val}})}});jQuery.extend({valHooks:{option: {get:function(elem){var val=elem.attributes.value;return!val||val.specified?elem .value:elem.text}},select:{get:function(elem){var value,option,options=elem.opti ons,index=elem.selectedIndex,one=elem.type==="select-one"||index<0,values=one?nu ll:[],max=one?index+1:options.length,i=index<0?max:one?index:0;for(;i<max;i++){o ption=options[i];if((option.selected||i===index)&&(jQuery.support.optDisabled?!o ption.disabled:option.getAttribute("disabled")===null)&&(!option.parentNode.disa bled||!jQuery.nodeName(option.parentNode,"optgroup"))){value=jQuery(option).val( );if(one){return value}values.push(value)}}return values},set:function(elem,valu e){var values=jQuery.makeArray(value);jQuery(elem).find("option").each(function( ){this.selected=jQuery.inArray(jQuery(this).val(),values)>=0});if(!values.length ){elem.selectedIndex=-1}return values}}},attrFn:{},attr:function(elem,name,value ,pass){var ret,hooks,notxml,nType=elem.nodeType;if(!elem||nType===3||nType===8|| nType===2){return}if(pass&&jQuery.isFunction(jQuery.fn[name])){return jQuery(ele m)[name](value)}if(typeof elem.getAttribute==="undefined"){return jQuery.prop(el em,name,value)}notxml=nType!==1||!jQuery.isXMLDoc(elem);if(notxml){name=name.toL owerCase();hooks=jQuery.attrHooks[name]||(rboolean.test(name)?boolHook:nodeHook) }if(value!==undefined){if(value===null){jQuery.removeAttr(elem,name);return}else if(hooks&&"set"in hooks&&notxml&&(ret=hooks.set(elem,value,name))!==undefined){ return ret}else{elem.setAttribute(name,value+"");return value}}else if(hooks&&"g et"in hooks&&notxml&&(ret=hooks.get(elem,name))!==null){return ret}else{ret=elem .getAttribute(name);return ret===null?undefined:ret}},removeAttr:function(elem,v alue){var propName,attrNames,name,isBool,i=0;if(value&&elem.nodeType===1){attrNa mes=value.split(core_rspace);for(;i<attrNames.length;i++){name=attrNames[i];if(n ame){propName=jQuery.propFix[name]||name;isBool=rboolean.test(name);if(!isBool){ jQuery.attr(elem,name,"")}elem.removeAttribute(getSetAttribute?name:propName);if (isBool&&propName in elem){elem[propName]=false}}}}},attrHooks:{type:{set:functi on(elem,value){if(rtype.test(elem.nodeName)&&elem.parentNode){jQuery.error("type property can't be changed")
2 }else if(!jQuery.support.radioValue&&value==="radio"&&jQuery.nodeName(elem,"inpu t")){var val=elem.value;elem.setAttribute("type",value);if(val){elem.value=val}r eturn value}}},value:{get:function(elem,name){if(nodeHook&&jQuery.nodeName(elem, "button")){return nodeHook.get(elem,name)}return name in elem?elem.value:null},s et:function(elem,value,name){if(nodeHook&&jQuery.nodeName(elem,"button")){return nodeHook.set(elem,value,name)}elem.value=value}}},propFix:{tabindex:"tabIndex", readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",ce llspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"col Span",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable "},prop:function(elem,name,value){var ret,hooks,notxml,nType=elem.nodeType;if(!e lem||nType===3||nType===8||nType===2){return}notxml=nType!==1||!jQuery.isXMLDoc( elem);if(notxml){name=jQuery.propFix[name]||name;hooks=jQuery.propHooks[name]}if (value!==undefined){if(hooks&&"set"in hooks&&(ret=hooks.set(elem,value,name))!== undefined){return ret}else{return elem[name]=value}}else{if(hooks&&"get"in hooks &&(ret=hooks.get(elem,name))!==null){return ret}else{return elem[name]}}},propHo oks:{tabIndex:{get:function(elem){var attributeNode=elem.getAttributeNode("tabin dex");return attributeNode&&attributeNode.specified?parseInt(attributeNode.value ,10):rfocusable.test(elem.nodeName)||rclickable.test(elem.nodeName)&&elem.href?0 :undefined}}}});boolHook={get:function(elem,name){var attrNode,property=jQuery.p rop(elem,name);return property===true||typeof property!=="boolean"&&(attrNode=el em.getAttributeNode(name))&&attrNode.nodeValue!==false?name.toLowerCase():undefi ned},set:function(elem,value,name){var propName;if(value===false){jQuery.removeA ttr(elem,name)}else{propName=jQuery.propFix[name]||name;if(propName in elem){ele m[propName]=true}elem.setAttribute(name,name.toLowerCase())}return name}};if(!ge tSetAttribute){fixSpecified={name:true,id:true,coords:true};nodeHook=jQuery.valH ooks.button={get:function(elem,name){var ret;ret=elem.getAttributeNode(name);ret urn ret&&(fixSpecified[name]?ret.value!=="":ret.specified)?ret.value:undefined}, set:function(elem,value,name){var ret=elem.getAttributeNode(name);if(!ret){ret=d ocument.createAttribute(name);elem.setAttributeNode(ret)}return ret.value=value+ ""}};jQuery.each(["width","height"],function(i,name){jQuery.attrHooks[name]=jQue ry.extend(jQuery.attrHooks[name],{set:function(elem,value){if(value===""){elem.s etAttribute(name,"auto");return value}}})});jQuery.attrHooks.contenteditable={ge t:nodeHook.get,set:function(elem,value,name){if(value===""){value="false"}nodeHo ok.set(elem,value,name)}}}if(!jQuery.support.hrefNormalized){jQuery.each(["href" ,"src","width","height"],function(i,name){jQuery.attrHooks[name]=jQuery.extend(j Query.attrHooks[name],{get:function(elem){var ret=elem.getAttribute(name,2);retu rn ret===null?undefined:ret}})})}if(!jQuery.support.style){jQuery.attrHooks.styl e={get:function(elem){return elem.style.cssText.toLowerCase()||undefined},set:fu nction(elem,value){return elem.style.cssText=value+""}}}if(!jQuery.support.optSe lected){jQuery.propHooks.selected=jQuery.extend(jQuery.propHooks.selected,{get:f unction(elem){var parent=elem.parentNode;if(parent){parent.selectedIndex;if(pare nt.parentNode){parent.parentNode.selectedIndex}}return null}})}if(!jQuery.suppor t.enctype){jQuery.propFix.enctype="encoding"}if(!jQuery.support.checkOn){jQuery. each(["radio","checkbox"],function(){jQuery.valHooks[this]={get:function(elem){r eturn elem.getAttribute("value")===null?"on":elem.value}}})}jQuery.each(["radio" ,"checkbox"],function(){jQuery.valHooks[this]=jQuery.extend(jQuery.valHooks[this ],{set:function(elem,value){if(jQuery.isArray(value)){return elem.checked=jQuery .inArray(jQuery(elem).val(),value)>=0}}})});var rformElems=/^(?:textarea|input|s elect)$/i,rtypenamespace=/^([^\.]*|)(?:\.(.+)|)$/,rhoverHack=/(?:^|\s)hover(\.\S +|)\b/,rkeyEvent=/^key/,rmouseEvent=/^(?:mouse|contextmenu)|click/,rfocusMorph=/ ^(?:focusinfocus|focusoutblur)$/,hoverHack=function(events){return jQuery.event. special.hover?events:events.replace(rhoverHack,"mouseenter$1 mouseleave$1")};jQu ery.event={add:function(elem,types,handler,data,selector){var elemData,eventHand le,events,t,tns,type,namespaces,handleObj,handleObjIn,handlers,special;if(elem.n odeType===3||elem.nodeType===8||!types||!handler||!(elemData=jQuery._data(elem)) ){return}if(handler.handler){handleObjIn=handler;handler=handleObjIn.handler;sel ector=handleObjIn.selector}if(!handler.guid){handler.guid=jQuery.guid++}events=e lemData.events;if(!events){elemData.events=events={}}eventHandle=elemData.handle ;if(!eventHandle){elemData.handle=eventHandle=function(e){return typeof jQuery!= ="undefined"&&(!e||jQuery.event.triggered!==e.type)?jQuery.event.dispatch.apply( eventHandle.elem,arguments):undefined};eventHandle.elem=elem}types=jQuery.trim(h overHack(types)).split(" ");for(t=0;t<types.length;t++){tns=rtypenamespace.exec( types[t])||[];type=tns[1];namespaces=(tns[2]||"").split(".").sort();special=jQue ry.event.special[type]||{};type=(selector?special.delegateType:special.bindType) ||type;special=jQuery.event.special[type]||{};handleObj=jQuery.extend({type:type ,origType:tns[1],data:data,handler:handler,guid:handler.guid,selector:selector,n eedsContext:selector&&jQuery.expr.match.needsContext.test(selector),namespace:na mespaces.join(".")},handleObjIn);handlers=events[type];if(!handlers){handlers=ev ents[type]=[];handlers.delegateCount=0;if(!special.setup||special.setup.call(ele m,data,namespaces,eventHandle)===false){if(elem.addEventListener){elem.addEventL istener(type,eventHandle,false)}else if(elem.attachEvent){elem.attachEvent("on"+ type,eventHandle)}}}if(special.add){special.add.call(elem,handleObj);if(!handleO bj.handler.guid){handleObj.handler.guid=handler.guid}}if(selector){handlers.spli ce(handlers.delegateCount++,0,handleObj)}else{handlers.push(handleObj)}jQuery.ev ent.global[type]=true}elem=null},global:{},remove:function(elem,types,handler,se lector,mappedTypes){var t,tns,type,origType,namespaces,origCount,j,events,specia l,eventType,handleObj,elemData=jQuery.hasData(elem)&&jQuery._data(elem);if(!elem Data||!(events=elemData.events)){return}types=jQuery.trim(hoverHack(types||"")). split(" ");for(t=0;t<types.length;t++){tns=rtypenamespace.exec(types[t])||[];typ e=origType=tns[1];namespaces=tns[2];if(!type){for(type in events){jQuery.event.r emove(elem,type+types[t],handler,selector,true)}continue}special=jQuery.event.sp ecial[type]||{};type=(selector?special.delegateType:special.bindType)||type;even tType=events[type]||[];origCount=eventType.length;namespaces=namespaces?new RegE xp("(^|\\.)"+namespaces.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null; for(j=0;j<eventType.length;j++){handleObj=eventType[j];if((mappedTypes||origType ===handleObj.origType)&&(!handler||handler.guid===handleObj.guid)&&(!namespaces| |namespaces.test(handleObj.namespace))&&(!selector||selector===handleObj.selecto r||selector==="**"&&handleObj.selector)){eventType.splice(j--,1);if(handleObj.se lector){eventType.delegateCount--}if(special.remove){special.remove.call(elem,ha ndleObj)}}}if(eventType.length===0&&origCount!==eventType.length){if(!special.te ardown||special.teardown.call(elem,namespaces,elemData.handle)===false){jQuery.r emoveEvent(elem,type,elemData.handle)}delete events[type]}}if(jQuery.isEmptyObje ct(events)){delete elemData.handle;jQuery.removeData(elem,"events",true)}},custo mEvent:{getData:true,setData:true,changeData:true},trigger:function(event,data,e lem,onlyHandlers){if(elem&&(elem.nodeType===3||elem.nodeType===8)){return}var ca che,exclusive,i,cur,old,ontype,special,handle,eventPath,bubbleType,type=event.ty pe||event,namespaces=[];if(rfocusMorph.test(type+jQuery.event.triggered)){return }if(type.indexOf("!")>=0){type=type.slice(0,-1);exclusive=true}if(type.indexOf(" .")>=0){namespaces=type.split(".");type=namespaces.shift();namespaces.sort()}if( (!elem||jQuery.event.customEvent[type])&&!jQuery.event.global[type]){return}even t=typeof event==="object"?event[jQuery.expando]?event:new jQuery.Event(type,even t):new jQuery.Event(type);event.type=type;event.isTrigger=true;event.exclusive=e xclusive;event.namespace=namespaces.join(".");event.namespace_re=event.namespace ?new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;ontype=ty pe.indexOf(":")<0?"on"+type:"";if(!elem){cache=jQuery.cache;for(i in cache){if(c ache[i].events&&cache[i].events[type]){jQuery.event.trigger(event,data,cache[i]. handle.elem,true)}}return}event.result=undefined;if(!event.target){event.target= elem}data=data!=null?jQuery.makeArray(data):[];data.unshift(event);special=jQuer y.event.special[type]||{};if(special.trigger&&special.trigger.apply(elem,data)== =false){return}eventPath=[[elem,special.bindType||type]];if(!onlyHandlers&&!spec ial.noBubble&&!jQuery.isWindow(elem)){bubbleType=special.delegateType||type;cur= rfocusMorph.test(bubbleType+type)?elem:elem.parentNode;for(old=elem;cur;cur=cur. parentNode){eventPath.push([cur,bubbleType]);old=cur}if(old===(elem.ownerDocumen t||document)){eventPath.push([old.defaultView||old.parentWindow||window,bubbleTy pe])}}for(i=0;i<eventPath.length&&!event.isPropagationStopped();i++){cur=eventPa th[i][0];event.type=eventPath[i][1];handle=(jQuery._data(cur,"events")||{})[even t.type]&&jQuery._data(cur,"handle");if(handle){handle.apply(cur,data)}handle=ont ype&&cur[ontype];if(handle&&jQuery.acceptData(cur)&&handle.apply&&handle.apply(c ur,data)===false){event.preventDefault()}}event.type=type;if(!onlyHandlers&&!eve nt.isDefaultPrevented()){if((!special._default||special._default.apply(elem.owne rDocument,data)===false)&&!(type==="click"&&jQuery.nodeName(elem,"a"))&&jQuery.a cceptData(elem)){if(ontype&&elem[type]&&(type!=="focus"&&type!=="blur"||event.ta rget.offsetWidth!==0)&&!jQuery.isWindow(elem)){old=elem[ontype];if(old){elem[ont ype]=null}jQuery.event.triggered=type;elem[type]();jQuery.event.triggered=undefi ned;if(old){elem[ontype]=old}}}}return event.result},dispatch:function(event){ev ent=jQuery.event.fix(event||window.event);var i,j,cur,ret,selMatch,matched,match es,handleObj,sel,related,handlers=(jQuery._data(this,"events")||{})[event.type]| |[],delegateCount=handlers.delegateCount,args=core_slice.call(arguments),run_all =!event.exclusive&&!event.namespace,special=jQuery.event.special[event.type]||{} ,handlerQueue=[];args[0]=event;event.delegateTarget=this;if(special.preDispatch& &special.preDispatch.call(this,event)===false){return}if(delegateCount&&!(event. button&&event.type==="click")){for(cur=event.target;cur!=this;cur=cur.parentNode ||this){if(cur.disabled!==true||event.type!=="click"){selMatch={};matches=[];for (i=0;i<delegateCount;i++){handleObj=handlers[i];sel=handleObj.selector;if(selMat ch[sel]===undefined){selMatch[sel]=handleObj.needsContext?jQuery(sel,this).index (cur)>=0:jQuery.find(sel,this,null,[cur]).length}if(selMatch[sel]){matches.push( handleObj)}}if(matches.length){handlerQueue.push({elem:cur,matches:matches})}}}} if(handlers.length>delegateCount){handlerQueue.push({elem:this,matches:handlers. slice(delegateCount)})}for(i=0;i<handlerQueue.length&&!event.isPropagationStoppe d();i++){matched=handlerQueue[i];event.currentTarget=matched.elem;for(j=0;j<matc hed.matches.length&&!event.isImmediatePropagationStopped();j++){handleObj=matche d.matches[j];if(run_all||!event.namespace&&!handleObj.namespace||event.namespace _re&&event.namespace_re.test(handleObj.namespace)){event.data=handleObj.data;eve nt.handleObj=handleObj;ret=((jQuery.event.special[handleObj.origType]||{}).handl e||handleObj.handler).apply(matched.elem,args);if(ret!==undefined){event.result= ret;if(ret===false){event.preventDefault();event.stopPropagation()}}}}}if(specia l.postDispatch){special.postDispatch.call(this,event)}return event.result},props :"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey c urrentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view whi ch".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" " ),filter:function(event,original){if(event.which==null){event.which=original.cha rCode!=null?original.charCode:original.keyCode}return event}},mouseHooks:{props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(event,original){var eventDoc,doc,b ody,button=original.button,fromElement=original.fromElement;if(event.pageX==null &&original.clientX!=null){eventDoc=event.target.ownerDocument||document;doc=even tDoc.documentElement;body=eventDoc.body;event.pageX=original.clientX+(doc&&doc.s crollLeft||body&&body.scrollLeft||0)-(doc&&doc.clientLeft||body&&body.clientLeft ||0);event.pageY=original.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)- (doc&&doc.clientTop||body&&body.clientTop||0)}if(!event.relatedTarget&&fromEleme nt){event.relatedTarget=fromElement===event.target?original.toElement:fromElemen t}if(!event.which&&button!==undefined){event.which=button&1?1:button&2?3:button& 4?2:0}return event}},fix:function(event){if(event[jQuery.expando]){return event} var i,prop,originalEvent=event,fixHook=jQuery.event.fixHooks[event.type]||{},cop y=fixHook.props?this.props.concat(fixHook.props):this.props;event=jQuery.Event(o riginalEvent);for(i=copy.length;i;){prop=copy[--i];event[prop]=originalEvent[pro p]}if(!event.target){event.target=originalEvent.srcElement||document}if(event.ta rget.nodeType===3){event.target=event.target.parentNode}event.metaKey=!!event.me taKey;return fixHook.filter?fixHook.filter(event,originalEvent):event},special:{ load:{noBubble:true},focus:{delegateType:"focusin"},blur:{delegateType:"focusout "},beforeunload:{setup:function(data,namespaces,eventHandle){if(jQuery.isWindow( this)){this.onbeforeunload=eventHandle}},teardown:function(namespaces,eventHandl e){if(this.onbeforeunload===eventHandle){this.onbeforeunload=null}}}},simulate:f unction(type,elem,event,bubble){var e=jQuery.extend(new jQuery.Event,event,{type :type,isSimulated:true,originalEvent:{}});if(bubble){jQuery.event.trigger(e,null ,elem)}else{jQuery.event.dispatch.call(elem,e)}if(e.isDefaultPrevented()){event. preventDefault()}}};jQuery.event.handle=jQuery.event.dispatch;jQuery.removeEvent =document.removeEventListener?function(elem,type,handle){if(elem.removeEventList ener){elem.removeEventListener(type,handle,false)}}:function(elem,type,handle){v ar name="on"+type;if(elem.detachEvent){if(typeof elem[name]==="undefined"){elem[ name]=null}elem.detachEvent(name,handle)}};jQuery.Event=function(src,props){if(! (this instanceof jQuery.Event)){return new jQuery.Event(src,props)}if(src&&src.t ype){this.originalEvent=src;this.type=src.type;this.isDefaultPrevented=src.defau ltPrevented||src.returnValue===false||src.getPreventDefault&&src.getPreventDefau lt()?returnTrue:returnFalse}else{this.type=src}if(props){jQuery.extend(this,prop s)}this.timeStamp=src&&src.timeStamp||jQuery.now();this[jQuery.expando]=true};fu nction returnFalse(){return false}function returnTrue(){return true}jQuery.Event .prototype={preventDefault:function(){this.isDefaultPrevented=returnTrue;var e=t his.originalEvent;if(!e){return}if(e.preventDefault){e.preventDefault()}else{e.r eturnValue=false}},stopPropagation:function(){this.isPropagationStopped=returnTr ue;var e=this.originalEvent;if(!e){return}if(e.stopPropagation){e.stopPropagatio n()}e.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePro pagationStopped=returnTrue;this.stopPropagation()},isDefaultPrevented:returnFals e,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse};jQ uery.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(orig,fix){jQue ry.event.special[orig]={delegateType:fix,bindType:fix,handle:function(event){var ret,target=this,related=event.relatedTarget,handleObj=event.handleObj,selector= handleObj.selector;if(!related||related!==target&&!jQuery.contains(target,relate d)){event.type=handleObj.origType;ret=handleObj.handler.apply(this,arguments);ev ent.type=fix}return ret}}});if(!jQuery.support.submitBubbles){jQuery.event.speci al.submit={setup:function(){if(jQuery.nodeName(this,"form")){return false}jQuery .event.add(this,"click._submit keypress._submit",function(e){var elem=e.target,f orm=jQuery.nodeName(elem,"input")||jQuery.nodeName(elem,"button")?elem.form:unde fined;if(form&&!jQuery._data(form,"_submit_attached")){jQuery.event.add(form,"su bmit._submit",function(event){event._submit_bubble=true});jQuery._data(form,"_su bmit_attached",true)}})},postDispatch:function(event){if(event._submit_bubble){d elete event._submit_bubble;if(this.parentNode&&!event.isTrigger){jQuery.event.si mulate("submit",this.parentNode,event,true)}}},teardown:function(){if(jQuery.nod eName(this,"form")){return false}jQuery.event.remove(this,"._submit")}}}if(!jQue ry.support.changeBubbles){jQuery.event.special.change={setup:function(){if(rform Elems.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){jQuer y.event.add(this,"propertychange._change",function(event){if(event.originalEvent .propertyName==="checked"){this._just_changed=true}});jQuery.event.add(this,"cli ck._change",function(event){if(this._just_changed&&!event.isTrigger){this._just_ changed=false}jQuery.event.simulate("change",this,event,true)})}return false}jQu ery.event.add(this,"beforeactivate._change",function(e){var elem=e.target;if(rfo rmElems.test(elem.nodeName)&&!jQuery._data(elem,"_change_attached")){jQuery.even t.add(elem,"change._change",function(event){if(this.parentNode&&!event.isSimulat ed&&!event.isTrigger){jQuery.event.simulate("change",this.parentNode,event,true) }});jQuery._data(elem,"_change_attached",true)}})},handle:function(event){var el em=event.target;if(this!==elem||event.isSimulated||event.isTrigger||elem.type!== "radio"&&elem.type!=="checkbox"){return event.handleObj.handler.apply(this,argum ents)}},teardown:function(){jQuery.event.remove(this,"._change");return!rformEle ms.test(this.nodeName)}}}if(!jQuery.support.focusinBubbles){jQuery.each({focus:" focusin",blur:"focusout"},function(orig,fix){var attaches=0,handler=function(eve nt){jQuery.event.simulate(fix,event.target,jQuery.event.fix(event),true)};jQuery .event.special[fix]={setup:function(){if(attaches++===0){document.addEventListen er(orig,handler,true)}},teardown:function(){if(--attaches===0){document.removeEv entListener(orig,handler,true)}}}})}jQuery.fn.extend({on:function(types,selector ,data,fn,one){var origFn,type;if(typeof types==="object"){if(typeof selector!==" string"){data=data||selector;selector=undefined}for(type in types){this.on(type, selector,data,types[type],one)}return this}if(data==null&&fn==null){fn=selector; data=selector=undefined}else if(fn==null){if(typeof selector==="string"){fn=data ;data=undefined}else{fn=data;data=selector;selector=undefined}}if(fn===false){fn =returnFalse}else if(!fn){return this}if(one===1){origFn=fn;fn=function(event){j Query().off(event);return origFn.apply(this,arguments)};fn.guid=origFn.guid||(or igFn.guid=jQuery.guid++)}return this.each(function(){jQuery.event.add(this,types ,fn,data,selector)})},one:function(types,selector,data,fn){return this.on(types, selector,data,fn,1)},off:function(types,selector,fn){var handleObj,type;if(types &&types.preventDefault&&types.handleObj){handleObj=types.handleObj;jQuery(types. delegateTarget).off(handleObj.namespace?handleObj.origType+"."+handleObj.namespa ce:handleObj.origType,handleObj.selector,handleObj.handler);return this}if(typeo f types==="object"){for(type in types){this.off(type,selector,types[type])}retur n this}if(selector===false||typeof selector==="function"){fn=selector;selector=u ndefined}if(fn===false){fn=returnFalse}return this.each(function(){jQuery.event. remove(this,types,fn,selector)})},bind:function(types,data,fn){return this.on(ty pes,null,data,fn)},unbind:function(types,fn){return this.off(types,null,fn)},liv e:function(types,data,fn){jQuery(this.context).on(types,this.selector,data,fn);r eturn this},die:function(types,fn){jQuery(this.context).off(types,this.selector| |"**",fn);return this},delegate:function(selector,types,data,fn){return this.on( types,selector,data,fn)},undelegate:function(selector,types,fn){return arguments .length===1?this.off(selector,"**"):this.off(types,selector||"**",fn)},trigger:f unction(type,data){return this.each(function(){jQuery.event.trigger(type,data,th is)})},triggerHandler:function(type,data){if(this[0]){return jQuery.event.trigge r(type,data,this[0],true)}},toggle:function(fn){var args=arguments,guid=fn.guid| |jQuery.guid++,i=0,toggler=function(event){var lastToggle=(jQuery._data(this,"la stToggle"+fn.guid)||0)%i;jQuery._data(this,"lastToggle"+fn.guid,lastToggle+1);ev ent.preventDefault();return args[lastToggle].apply(this,arguments)||false};toggl er.guid=guid;while(i<args.length){args[i++].guid=guid}return this.click(toggler) },hover:function(fnOver,fnOut){return this.mouseenter(fnOver).mouseleave(fnOut|| fnOver)}});jQuery.each(("blur focus focusin focusout load resize scroll unload c lick dblclick "+"mousedown mouseup mousemove mouseover mouseout mouseenter mouse leave "+"change select submit keydown keypress keyup error contextmenu").split(" "),function(i,name){jQuery.fn[name]=function(data,fn){if(fn==null){fn=data;data =null}return arguments.length>0?this.on(name,null,data,fn):this.trigger(name)};i f(rkeyEvent.test(name)){jQuery.event.fixHooks[name]=jQuery.event.keyHooks}if(rmo useEvent.test(name)){jQuery.event.fixHooks[name]=jQuery.event.mouseHooks}});(fun ction(window,undefined){var cachedruns,assertGetIdNotName,Expr,getText,isXML,con tains,compile,sortOrder,hasDuplicate,outermostContext,baseHasDuplicate=true,stru ndefined="undefined",expando=("sizcache"+Math.random()).replace(".",""),Token=St ring,document=window.document,docElem=document.documentElement,dirruns=0,done=0, pop=[].pop,push=[].push,slice=[].slice,indexOf=[].indexOf||function(elem){var i= 0,len=this.length;for(;i<len;i++){if(this[i]===elem){return i}}return-1},markFun ction=function(fn,value){fn[expando]=value==null||value;return fn},createCache=f unction(){var cache={},keys=[];return markFunction(function(key,value){if(keys.p ush(key)>Expr.cacheLength){delete cache[keys.shift()]}return cache[key+" "]=valu e},cache)},classCache=createCache(),tokenCache=createCache(),compilerCache=creat eCache(),whitespace="[\\x20\\t\\r\\n\\f]",characterEncoding="(?:\\\\.|[-\\w]|[^\ \x00-\\xa0])+",identifier=characterEncoding.replace("w","w#"),operators="([*^$|! ~]?=)",attributes="\\["+whitespace+"*("+characterEncoding+")"+whitespace+"*(?:"+ operators+whitespace+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+identifier+")|)|)"+ whitespace+"*\\]",pseudos=":("+characterEncoding+")(?:\\((?:(['\"])((?:\\\\.|[^\ \\\])*?)\\2|([^()[\\]]*|(?:(?:"+attributes+")|[^:]|\\\\.)*|.*))\\)|)",pos=":(eve n|odd|eq|gt|lt|nth|first|last)(?:\\("+whitespace+"*((?:-\\d)?\\d*)"+whitespace+" *\\)|)(?=[^-]|$)",rtrim=new RegExp("^"+whitespace+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ whitespace+"+$","g"),rcomma=new RegExp("^"+whitespace+"*,"+whitespace+"*"),rcomb inators=new RegExp("^"+whitespace+"*([\\x20\\t\\r\\n\\f>+~])"+whitespace+"*"),rp seudo=new RegExp(pseudos),rquickExpr=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,rnot=/ ^:not/,rsibling=/[\x20\t\r\n\f]*[+~]/,rendsWithNot=/:not\($/,rheader=/h\d/i,rinp uts=/input|select|textarea|button/i,rbackslash=/\\(?!\\)/g,matchExpr={ID:new Reg Exp("^#("+characterEncoding+")"),CLASS:new RegExp("^\\.("+characterEncoding+")") ,NAME:new RegExp("^\\[name=['\"]?("+characterEncoding+")['\"]?\\]"),TAG:new RegE xp("^("+characterEncoding.replace("w","w*")+")"),ATTR:new RegExp("^"+attributes) ,PSEUDO:new RegExp("^"+pseudos),POS:new RegExp(pos,"i"),CHILD:new RegExp("^:(onl y|nth|first|last)-child(?:\\("+whitespace+"*(even|odd|(([+-]|)(\\d*)n|)"+whitesp ace+"*(?:([+-]|)"+whitespace+"*(\\d+)|))"+whitespace+"*\\)|)","i"),needsContext: new RegExp("^"+whitespace+"*[>+~]|"+pos,"i")},assert=function(fn){var div=docume nt.createElement("div");try{return fn(div)}catch(e){return false}finally{div=nul l}},assertTagNameNoComments=assert(function(div){div.appendChild(document.create Comment(""));return!div.getElementsByTagName("*").length}),assertHrefNotNormaliz ed=assert(function(div){div.innerHTML="<a href='#'></a>";return div.firstChild&& typeof div.firstChild.getAttribute!==strundefined&&div.firstChild.getAttribute(" href")==="#"}),assertAttributes=assert(function(div){div.innerHTML="<select></se lect>";var type=typeof div.lastChild.getAttribute("multiple");return type!=="boo lean"&&type!=="string"}),assertUsableClassName=assert(function(div){div.innerHTM L="<div class='hidden e'></div><div class='hidden'></div>";if(!div.getElementsBy ClassName||!div.getElementsByClassName("e").length){return false}div.lastChild.c lassName="e";return div.getElementsByClassName("e").length===2}),assertUsableNam e=assert(function(div){div.id=expando+0;div.innerHTML="<a name='"+expando+"'></a ><div name='"+expando+"'></div>";docElem.insertBefore(div,docElem.firstChild);va r pass=document.getElementsByName&&document.getElementsByName(expando).length=== 2+document.getElementsByName(expando+0).length;assertGetIdNotName=!document.getE lementById(expando);docElem.removeChild(div);return pass});try{slice.call(docEle m.childNodes,0)[0].nodeType}catch(e){slice=function(i){var elem,results=[];for(; elem=this[i];i++){results.push(elem)}return results}}function Sizzle(selector,co ntext,results,seed){results=results||[];context=context||document;var match,elem ,xml,m,nodeType=context.nodeType;if(!selector||typeof selector!=="string"){retur n results}if(nodeType!==1&&nodeType!==9){return[]}xml=isXML(context);if(!xml&&!s eed){if(match=rquickExpr.exec(selector)){if(m=match[1]){if(nodeType===9){elem=co ntext.getElementById(m);if(elem&&elem.parentNode){if(elem.id===m){results.push(e lem);return results}}else{return results}}else{if(context.ownerDocument&&(elem=c ontext.ownerDocument.getElementById(m))&&contains(context,elem)&&elem.id===m){re sults.push(elem);return results}}}else if(match[2]){push.apply(results,slice.cal l(context.getElementsByTagName(selector),0));return results}else if((m=match[3]) &&assertUsableClassName&&context.getElementsByClassName){push.apply(results,slic e.call(context.getElementsByClassName(m),0));return results}}}return select(sele ctor.replace(rtrim,"$1"),context,results,seed,xml)}Sizzle.matches=function(expr, elements){return Sizzle(expr,null,null,elements)};Sizzle.matchesSelector=functio n(elem,expr){return Sizzle(expr,null,null,[elem]).length>0};function createInput Pseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return n ame==="input"&&elem.type===type}}function createButtonPseudo(type){return functi on(elem){var name=elem.nodeName.toLowerCase();return(name==="input"||name==="but ton")&&elem.type===type}}function createPositionalPseudo(fn){return markFunction (function(argument){argument=+argument;return markFunction(function(seed,matches ){var j,matchIndexes=fn([],seed.length,argument),i=matchIndexes.length;while(i-- ){if(seed[j=matchIndexes[i]]){seed[j]=!(matches[j]=seed[j])}}})})}getText=Sizzle .getText=function(elem){var node,ret="",i=0,nodeType=elem.nodeType;if(nodeType){ if(nodeType===1||nodeType===9||nodeType===11){if(typeof elem.textContent==="stri ng"){return elem.textContent}else{for(elem=elem.firstChild;elem;elem=elem.nextSi bling){ret+=getText(elem)}}}else if(nodeType===3||nodeType===4){return elem.node Value}}else{for(;node=elem[i];i++){ret+=getText(node)}}return ret};isXML=Sizzle. isXML=function(elem){var documentElement=elem&&(elem.ownerDocument||elem).docume ntElement;return documentElement?documentElement.nodeName!=="HTML":false};contai ns=Sizzle.contains=docElem.contains?function(a,b){var adown=a.nodeType===9?a.doc umentElement:a,bup=b&&b.parentNode;return a===bup||!!(bup&&bup.nodeType===1&&ado wn.contains&&adown.contains(bup))}:docElem.compareDocumentPosition?function(a,b) {return b&&!!(a.compareDocumentPosition(b)&16)}:function(a,b){while(b=b.parentNo de){if(b===a){return true}}return false};Sizzle.attr=function(elem,name){var val ,xml=isXML(elem);if(!xml){name=name.toLowerCase()}if(val=Expr.attrHandle[name]){ return val(elem)}if(xml||assertAttributes){return elem.getAttribute(name)}val=el em.getAttributeNode(name);return val?typeof elem[name]==="boolean"?elem[name]?na me:null:val.specified?val.value:null:null};Expr=Sizzle.selectors={cacheLength:50 ,createPseudo:markFunction,match:matchExpr,attrHandle:assertHrefNotNormalized?{} :{href:function(elem){return elem.getAttribute("href",2)},type:function(elem){re turn elem.getAttribute("type")}},find:{ID:assertGetIdNotName?function(id,context ,xml){if(typeof context.getElementById!==strundefined&&!xml){var m=context.getEl ementById(id);return m&&m.parentNode?[m]:[]}}:function(id,context,xml){if(typeof context.getElementById!==strundefined&&!xml){var m=context.getElementById(id);r eturn m?m.id===id||typeof m.getAttributeNode!==strundefined&&m.getAttributeNode( "id").value===id?[m]:undefined:[]}},TAG:assertTagNameNoComments?function(tag,con text){if(typeof context.getElementsByTagName!==strundefined){return context.getE lementsByTagName(tag)}}:function(tag,context){var results=context.getElementsByT agName(tag);if(tag==="*"){var elem,tmp=[],i=0;for(;elem=results[i];i++){if(elem. nodeType===1){tmp.push(elem)}}return tmp}return results},NAME:assertUsableName&& function(tag,context){if(typeof context.getElementsByName!==strundefined){return context.getElementsByName(name)}},CLASS:assertUsableClassName&&function(classNa me,context,xml){if(typeof context.getElementsByClassName!==strundefined&&!xml){r eturn context.getElementsByClassName(className)}}},relative:{">":{dir:"parentNod e",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~" :{dir:"previousSibling"}},preFilter:{ATTR:function(match){match[1]=match[1].repl ace(rbackslash,"");match[3]=(match[4]||match[5]||"").replace(rbackslash,"");if(m atch[2]==="~="){match[3]=" "+match[3]+" "}return match.slice(0,4)},CHILD:functio n(match){match[1]=match[1].toLowerCase();if(match[1]==="nth"){if(!match[2]){Sizz le.error(match[0])}match[3]=+(match[3]?match[4]+(match[5]||1):2*(match[2]==="eve n"||match[2]==="odd"));match[4]=+(match[6]+match[7]||match[2]==="odd")}else if(m atch[2]){Sizzle.error(match[0])}return match},PSEUDO:function(match){var unquote d,excess;if(matchExpr["CHILD"].test(match[0])){return null}if(match[3]){match[2] =match[3]}else if(unquoted=match[4]){if(rpseudo.test(unquoted)&&(excess=tokenize (unquoted,true))&&(excess=unquoted.indexOf(")",unquoted.length-excess)-unquoted. length)){unquoted=unquoted.slice(0,excess);match[0]=match[0].slice(0,excess)}mat ch[2]=unquoted}return match.slice(0,3)}},filter:{ID:assertGetIdNotName?function( id){id=id.replace(rbackslash,"");return function(elem){return elem.getAttribute( "id")===id}}:function(id){id=id.replace(rbackslash,"");return function(elem){var node=typeof elem.getAttributeNode!==strundefined&&elem.getAttributeNode("id");r eturn node&&node.value===id}},TAG:function(nodeName){if(nodeName==="*"){return f unction(){return true}}nodeName=nodeName.replace(rbackslash,"").toLowerCase();re turn function(elem){return elem.nodeName&&elem.nodeName.toLowerCase()===nodeName }},CLASS:function(className){var pattern=classCache[expando][className+" "];retu rn pattern||(pattern=new RegExp("(^|"+whitespace+")"+className+"("+whitespace+"| $)"))&&classCache(className,function(elem){return pattern.test(elem.className||t ypeof elem.getAttribute!==strundefined&&elem.getAttribute("class")||"")})},ATTR: function(name,operator,check){return function(elem,context){var result=Sizzle.at tr(elem,name);if(result==null){return operator==="!="}if(!operator){return true} result+="";return operator==="="?result===check:operator==="!="?result!==check:o perator==="^="?check&&result.indexOf(check)===0:operator==="*="?check&&result.in dexOf(check)>-1:operator==="$="?check&&result.substr(result.length-check.length) ===check:operator==="~="?(" "+result+" ").indexOf(check)>-1:operator==="|="?resu lt===check||result.substr(0,check.length+1)===check+"-":false}},CHILD:function(t ype,argument,first,last){if(type==="nth"){return function(elem){var node,diff,pa rent=elem.parentNode;if(first===1&&last===0){return true}if(parent){diff=0;for(n ode=parent.firstChild;node;node=node.nextSibling){if(node.nodeType===1){diff++;
3 if(elem===node){break}}}}diff-=last;return diff===first||diff%first===0&&diff/fi rst>=0}}return function(elem){var node=elem;switch(type){case"only":case"first": while(node=node.previousSibling){if(node.nodeType===1){return false}}if(type===" first"){return true}node=elem;case"last":while(node=node.nextSibling){if(node.no deType===1){return false}}return true}}},PSEUDO:function(pseudo,argument){var ar gs,fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]||Sizzle.error( "unsupported pseudo: "+pseudo);if(fn[expando]){return fn(argument)}if(fn.length> 1){args=[pseudo,pseudo,"",argument];return Expr.setFilters.hasOwnProperty(pseudo .toLowerCase())?markFunction(function(seed,matches){var idx,matched=fn(seed,argu ment),i=matched.length;while(i--){idx=indexOf.call(seed,matched[i]);seed[idx]=!( matches[idx]=matched[i])}}):function(elem){return fn(elem,0,args)}}return fn}},p seudos:{not:markFunction(function(selector){var input=[],results=[],matcher=comp ile(selector.replace(rtrim,"$1"));return matcher[expando]?markFunction(function( seed,matches,context,xml){var elem,unmatched=matcher(seed,null,xml,[]),i=seed.le ngth;while(i--){if(elem=unmatched[i]){seed[i]=!(matches[i]=elem)}}}):function(el em,context,xml){input[0]=elem;matcher(input,null,xml,results);return!results.pop ()}}),has:markFunction(function(selector){return function(elem){return Sizzle(se lector,elem).length>0}}),contains:markFunction(function(text){return function(el em){return(elem.textContent||elem.innerText||getText(elem)).indexOf(text)>-1}}), enabled:function(elem){return elem.disabled===false},disabled:function(elem){ret urn elem.disabled===true},checked:function(elem){var nodeName=elem.nodeName.toLo werCase();return nodeName==="input"&&!!elem.checked||nodeName==="option"&&!!elem .selected},selected:function(elem){if(elem.parentNode){elem.parentNode.selectedI ndex}return elem.selected===true},parent:function(elem){return!Expr.pseudos["emp ty"](elem)},empty:function(elem){var nodeType;elem=elem.firstChild;while(elem){i f(elem.nodeName>"@"||(nodeType=elem.nodeType)===3||nodeType===4){return false}el em=elem.nextSibling}return true},header:function(elem){return rheader.test(elem. nodeName)},text:function(elem){var type,attr;return elem.nodeName.toLowerCase()= =="input"&&(type=elem.type)==="text"&&((attr=elem.getAttribute("type"))==null||a ttr.toLowerCase()===type)},radio:createInputPseudo("radio"),checkbox:createInput Pseudo("checkbox"),file:createInputPseudo("file"),password:createInputPseudo("pa ssword"),image:createInputPseudo("image"),submit:createButtonPseudo("submit"),re set:createButtonPseudo("reset"),button:function(elem){var name=elem.nodeName.toL owerCase();return name==="input"&&elem.type==="button"||name==="button"},input:f unction(elem){return rinputs.test(elem.nodeName)},focus:function(elem){var doc=e lem.ownerDocument;return elem===doc.activeElement&&(!doc.hasFocus||doc.hasFocus( ))&&!!(elem.type||elem.href||~elem.tabIndex)},active:function(elem){return elem= ==elem.ownerDocument.activeElement},first:createPositionalPseudo(function(){retu rn[0]}),last:createPositionalPseudo(function(matchIndexes,length){return[length- 1]}),eq:createPositionalPseudo(function(matchIndexes,length,argument){return[arg ument<0?argument+length:argument]}),even:createPositionalPseudo(function(matchIn dexes,length){for(var i=0;i<length;i+=2){matchIndexes.push(i)}return matchIndexe s}),odd:createPositionalPseudo(function(matchIndexes,length){for(var i=1;i<lengt h;i+=2){matchIndexes.push(i)}return matchIndexes}),lt:createPositionalPseudo(fun ction(matchIndexes,length,argument){for(var i=argument<0?argument+length:argumen t;--i>=0;){matchIndexes.push(i)}return matchIndexes}),gt:createPositionalPseudo( function(matchIndexes,length,argument){for(var i=argument<0?argument+length:argu ment;++i<length;){matchIndexes.push(i)}return matchIndexes})}};function siblingC heck(a,b,ret){if(a===b){return ret}var cur=a.nextSibling;while(cur){if(cur===b){ return-1}cur=cur.nextSibling}return 1}sortOrder=docElem.compareDocumentPosition? function(a,b){if(a===b){hasDuplicate=true;return 0}return(!a.compareDocumentPosi tion||!b.compareDocumentPosition?a.compareDocumentPosition:a.compareDocumentPosi tion(b)&4)?-1:1}:function(a,b){if(a===b){hasDuplicate=true;return 0}else if(a.so urceIndex&&b.sourceIndex){return a.sourceIndex-b.sourceIndex}var al,bl,ap=[],bp= [],aup=a.parentNode,bup=b.parentNode,cur=aup;if(aup===bup){return siblingCheck(a ,b)}else if(!aup){return-1}else if(!bup){return 1}while(cur){ap.unshift(cur);cur =cur.parentNode}cur=bup;while(cur){bp.unshift(cur);cur=cur.parentNode}al=ap.leng th;bl=bp.length;for(var i=0;i<al&&i<bl;i++){if(ap[i]!==bp[i]){return siblingChec k(ap[i],bp[i])}}return i===al?siblingCheck(a,bp[i],-1):siblingCheck(ap[i],b,1)}; [0,0].sort(sortOrder);baseHasDuplicate=!hasDuplicate;Sizzle.uniqueSort=function( results){var elem,duplicates=[],i=1,j=0;hasDuplicate=baseHasDuplicate;results.so rt(sortOrder);if(hasDuplicate){for(;elem=results[i];i++){if(elem===results[i-1]) {j=duplicates.push(i)}}while(j--){results.splice(duplicates[j],1)}}return result s};Sizzle.error=function(msg){throw new Error("Syntax error, unrecognized expres sion: "+msg)};function tokenize(selector,parseOnly){var matched,match,tokens,typ e,soFar,groups,preFilters,cached=tokenCache[expando][selector+" "];if(cached){re turn parseOnly?0:cached.slice(0)}soFar=selector;groups=[];preFilters=Expr.preFil ter;while(soFar){if(!matched||(match=rcomma.exec(soFar))){if(match){soFar=soFar. slice(match[0].length)||soFar}groups.push(tokens=[])}matched=false;if(match=rcom binators.exec(soFar)){tokens.push(matched=new Token(match.shift()));soFar=soFar. slice(matched.length);matched.type=match[0].replace(rtrim," ")}for(type in Expr. filter){if((match=matchExpr[type].exec(soFar))&&(!preFilters[type]||(match=preFi lters[type](match)))){tokens.push(matched=new Token(match.shift()));soFar=soFar. slice(matched.length);matched.type=type;matched.matches=match}}if(!matched){brea k}}return parseOnly?soFar.length:soFar?Sizzle.error(selector):tokenCache(selecto r,groups).slice(0)}function addCombinator(matcher,combinator,base){var dir=combi nator.dir,checkNonElements=base&&combinator.dir==="parentNode",doneName=done++;r eturn combinator.first?function(elem,context,xml){while(elem=elem[dir]){if(check NonElements||elem.nodeType===1){return matcher(elem,context,xml)}}}:function(ele m,context,xml){if(!xml){var cache,dirkey=dirruns+" "+doneName+" ",cachedkey=dirk ey+cachedruns;while(elem=elem[dir]){if(checkNonElements||elem.nodeType===1){if(( cache=elem[expando])===cachedkey){return elem.sizset}else if(typeof cache==="str ing"&&cache.indexOf(dirkey)===0){if(elem.sizset){return elem}}else{elem[expando] =cachedkey;if(matcher(elem,context,xml)){elem.sizset=true;return elem}elem.sizse t=false}}}}else{while(elem=elem[dir]){if(checkNonElements||elem.nodeType===1){if (matcher(elem,context,xml)){return elem}}}}}}function elementMatcher(matchers){r eturn matchers.length>1?function(elem,context,xml){var i=matchers.length;while(i --){if(!matchers[i](elem,context,xml)){return false}}return true}:matchers[0]}fu nction condense(unmatched,map,filter,context,xml){var elem,newUnmatched=[],i=0,l en=unmatched.length,mapped=map!=null;for(;i<len;i++){if(elem=unmatched[i]){if(!f ilter||filter(elem,context,xml)){newUnmatched.push(elem);if(mapped){map.push(i)} }}}return newUnmatched}function setMatcher(preFilter,selector,matcher,postFilter ,postFinder,postSelector){if(postFilter&&!postFilter[expando]){postFilter=setMat cher(postFilter)}if(postFinder&&!postFinder[expando]){postFinder=setMatcher(post Finder,postSelector)}return markFunction(function(seed,results,context,xml){var temp,i,elem,preMap=[],postMap=[],preexisting=results.length,elems=seed||multiple Contexts(selector||"*",context.nodeType?[context]:context,[]),matcherIn=preFilte r&&(seed||!selector)?condense(elems,preMap,preFilter,context,xml):elems,matcherO ut=matcher?postFinder||(seed?preFilter:preexisting||postFilter)?[]:results:match erIn;if(matcher){matcher(matcherIn,matcherOut,context,xml)}if(postFilter){temp=c ondense(matcherOut,postMap);postFilter(temp,[],context,xml);i=temp.length;while( i--){if(elem=temp[i]){matcherOut[postMap[i]]=!(matcherIn[postMap[i]]=elem)}}}if( seed){if(postFinder||preFilter){if(postFinder){temp=[];i=matcherOut.length;while (i--){if(elem=matcherOut[i]){temp.push(matcherIn[i]=elem)}}postFinder(null,match erOut=[],temp,xml)}i=matcherOut.length;while(i--){if((elem=matcherOut[i])&&(temp =postFinder?indexOf.call(seed,elem):preMap[i])>-1){seed[temp]=!(results[temp]=el em)}}}}else{matcherOut=condense(matcherOut===results?matcherOut.splice(preexisti ng,matcherOut.length):matcherOut);if(postFinder){postFinder(null,results,matcher Out,xml)}else{push.apply(results,matcherOut)}}})}function matcherFromTokens(toke ns){var checkContext,matcher,j,len=tokens.length,leadingRelative=Expr.relative[t okens[0].type],implicitRelative=leadingRelative||Expr.relative[" "],i=leadingRel ative?1:0,matchContext=addCombinator(function(elem){return elem===checkContext}, implicitRelative,true),matchAnyContext=addCombinator(function(elem){return index Of.call(checkContext,elem)>-1},implicitRelative,true),matchers=[function(elem,co ntext,xml){return!leadingRelative&&(xml||context!==outermostContext)||((checkCon text=context).nodeType?matchContext(elem,context,xml):matchAnyContext(elem,conte xt,xml))}];for(;i<len;i++){if(matcher=Expr.relative[tokens[i].type]){matchers=[a ddCombinator(elementMatcher(matchers),matcher)]}else{matcher=Expr.filter[tokens[ i].type].apply(null,tokens[i].matches);if(matcher[expando]){j=++i;for(;j<len;j++ ){if(Expr.relative[tokens[j].type]){break}}return setMatcher(i>1&&elementMatcher (matchers),i>1&&tokens.slice(0,i-1).join("").replace(rtrim,"$1"),matcher,i<j&&ma tcherFromTokens(tokens.slice(i,j)),j<len&&matcherFromTokens(tokens=tokens.slice( j)),j<len&&tokens.join(""))}matchers.push(matcher)}}return elementMatcher(matche rs)}function matcherFromGroupMatchers(elementMatchers,setMatchers){var bySet=set Matchers.length>0,byElement=elementMatchers.length>0,superMatcher=function(seed, context,xml,results,expandContext){var elem,j,matcher,setMatched=[],matchedCount =0,i="0",unmatched=seed&&[],outermost=expandContext!=null,contextBackup=outermos tContext,elems=seed||byElement&&Expr.find["TAG"]("*",expandContext&&context.pare ntNode||context),dirrunsUnique=dirruns+=contextBackup==null?1:Math.E;if(outermos t){outermostContext=context!==document&&context;cachedruns=superMatcher.el}for(; (elem=elems[i])!=null;i++){if(byElement&&elem){for(j=0;matcher=elementMatchers[j ];j++){if(matcher(elem,context,xml)){results.push(elem);break}}if(outermost){dir runs=dirrunsUnique;cachedruns=++superMatcher.el}}if(bySet){if(elem=!matcher&&ele m){matchedCount--}if(seed){unmatched.push(elem)}}}matchedCount+=i;if(bySet&&i!== matchedCount){for(j=0;matcher=setMatchers[j];j++){matcher(unmatched,setMatched,c ontext,xml)}if(seed){if(matchedCount>0){while(i--){if(!(unmatched[i]||setMatched [i])){setMatched[i]=pop.call(results)}}}setMatched=condense(setMatched)}push.app ly(results,setMatched);if(outermost&&!seed&&setMatched.length>0&&matchedCount+se tMatchers.length>1){Sizzle.uniqueSort(results)}}if(outermost){dirruns=dirrunsUni que;outermostContext=contextBackup}return unmatched};superMatcher.el=0;return by Set?markFunction(superMatcher):superMatcher}compile=Sizzle.compile=function(sele ctor,group){var i,setMatchers=[],elementMatchers=[],cached=compilerCache[expando ][selector+" "];if(!cached){if(!group){group=tokenize(selector)}i=group.length;w hile(i--){cached=matcherFromTokens(group[i]);if(cached[expando]){setMatchers.pus h(cached)}else{elementMatchers.push(cached)}}cached=compilerCache(selector,match erFromGroupMatchers(elementMatchers,setMatchers))}return cached};function multip leContexts(selector,contexts,results){var i=0,len=contexts.length;for(;i<len;i++ ){Sizzle(selector,contexts[i],results)}return results}function select(selector,c ontext,results,seed,xml){var i,tokens,token,type,find,match=tokenize(selector),j =match.length;if(!seed){if(match.length===1){tokens=match[0]=match[0].slice(0);i f(tokens.length>2&&(token=tokens[0]).type==="ID"&&context.nodeType===9&&!xml&&Ex pr.relative[tokens[1].type]){context=Expr.find["ID"](token.matches[0].replace(rb ackslash,""),context,xml)[0];if(!context){return results}selector=selector.slice (tokens.shift().length)}for(i=matchExpr["POS"].test(selector)?-1:tokens.length-1 ;i>=0;i--){token=tokens[i];if(Expr.relative[type=token.type]){break}if(find=Expr .find[type]){if(seed=find(token.matches[0].replace(rbackslash,""),rsibling.test( tokens[0].type)&&context.parentNode||context,xml)){tokens.splice(i,1);selector=s eed.length&&tokens.join("");if(!selector){push.apply(results,slice.call(seed,0)) ;return results}break}}}}}compile(selector,match)(seed,context,xml,results,rsibl ing.test(selector));return results}if(document.querySelectorAll){(function(){var disconnectedMatch,oldSelect=select,rescape=/'|\\/g,rattributeQuotes=/\=[\x20\t\ r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,rbuggyQSA=[":focus"],rbuggyMatches=[":activ e"],matches=docElem.matchesSelector||docElem.mozMatchesSelector||docElem.webkitM atchesSelector||docElem.oMatchesSelector||docElem.msMatchesSelector;assert(funct ion(div){div.innerHTML="<select><option selected=''></option></select>";if(!div. querySelectorAll("[selected]").length){rbuggyQSA.push("\\["+whitespace+"*(?:chec ked|disabled|ismap|multiple|readonly|selected|value)")}if(!div.querySelectorAll( ":checked").length){rbuggyQSA.push(":checked")}});assert(function(div){div.inner HTML="<p test=''></p>";if(div.querySelectorAll("[test^='']").length){rbuggyQSA.p ush("[*^$]="+whitespace+"*(?:\"\"|'')")}div.innerHTML="<input type='hidden'/>";i f(!div.querySelectorAll(":enabled").length){rbuggyQSA.push(":enabled",":disabled ")}});rbuggyQSA=new RegExp(rbuggyQSA.join("|"));select=function(selector,context ,results,seed,xml){if(!seed&&!xml&&!rbuggyQSA.test(selector)){var groups,i,old=t rue,nid=expando,newContext=context,newSelector=context.nodeType===9&&selector;if (context.nodeType===1&&context.nodeName.toLowerCase()!=="object"){groups=tokeniz e(selector);if(old=context.getAttribute("id")){nid=old.replace(rescape,"\\$&")}e lse{context.setAttribute("id",nid)}nid="[id='"+nid+"'] ";i=groups.length;while(i --){groups[i]=nid+groups[i].join("")}newContext=rsibling.test(selector)&&context .parentNode||context;newSelector=groups.join(",")}if(newSelector){try{push.apply (results,slice.call(newContext.querySelectorAll(newSelector),0));return results} catch(qsaError){}finally{if(!old){context.removeAttribute("id")}}}}return oldSel ect(selector,context,results,seed,xml)};if(matches){assert(function(div){disconn ectedMatch=matches.call(div,"div");try{matches.call(div,"[test!='']:sizzle");rbu ggyMatches.push("!=",pseudos)}catch(e){}});rbuggyMatches=new RegExp(rbuggyMatche s.join("|"));Sizzle.matchesSelector=function(elem,expr){expr=expr.replace(rattri buteQuotes,"='$1']");if(!isXML(elem)&&!rbuggyMatches.test(expr)&&!rbuggyQSA.test (expr)){try{var ret=matches.call(elem,expr);if(ret||disconnectedMatch||elem.docu ment&&elem.document.nodeType!==11){return ret}}catch(e){}}return Sizzle(expr,nul l,null,[elem]).length>0}}})()}Expr.pseudos["nth"]=Expr.pseudos["eq"];function se tFilters(){}Expr.filters=setFilters.prototype=Expr.pseudos;Expr.setFilters=new s etFilters;Sizzle.attr=jQuery.attr;jQuery.find=Sizzle;jQuery.expr=Sizzle.selector s;jQuery.expr[":"]=jQuery.expr.pseudos;jQuery.unique=Sizzle.uniqueSort;jQuery.te xt=Sizzle.getText;jQuery.isXMLDoc=Sizzle.isXML;jQuery.contains=Sizzle.contains}) (window);var runtil=/Until$/,rparentsprev=/^(?:parents|prev(?:Until|All))/,isSim ple=/^.[^:#\[\.,]*$/,rneedsContext=jQuery.expr.match.needsContext,guaranteedUniq ue={children:true,contents:true,next:true,prev:true};jQuery.fn.extend({find:func tion(selector){var i,l,length,n,r,ret,self=this;if(typeof selector!=="string"){r eturn jQuery(selector).filter(function(){for(i=0,l=self.length;i<l;i++){if(jQuer y.contains(self[i],this)){return true}}})}ret=this.pushStack("","find",selector) ;for(i=0,l=this.length;i<l;i++){length=ret.length;jQuery.find(selector,this[i],r et);if(i>0){for(n=length;n<ret.length;n++){for(r=0;r<length;r++){if(ret[r]===ret [n]){ret.splice(n--,1);break}}}}}return ret},has:function(target){var i,targets= jQuery(target,this),len=targets.length;return this.filter(function(){for(i=0;i<l en;i++){if(jQuery.contains(this,targets[i])){return true}}})},not:function(selec tor){return this.pushStack(winnow(this,selector,false),"not",selector)},filter:f unction(selector){return this.pushStack(winnow(this,selector,true),"filter",sele ctor)},is:function(selector){return!!selector&&(typeof selector==="string"?rneed sContext.test(selector)?jQuery(selector,this.context).index(this[0])>=0:jQuery.f ilter(selector,this).length>0:this.filter(selector).length>0)},closest:function( selectors,context){var cur,i=0,l=this.length,ret=[],pos=rneedsContext.test(selec tors)||typeof selectors!=="string"?jQuery(selectors,context||this.context):0;for (;i<l;i++){cur=this[i];while(cur&&cur.ownerDocument&&cur!==context&&cur.nodeType !==11){if(pos?pos.index(cur)>-1:jQuery.find.matchesSelector(cur,selectors)){ret. push(cur);break}cur=cur.parentNode}}ret=ret.length>1?jQuery.unique(ret):ret;retu rn this.pushStack(ret,"closest",selectors)},index:function(elem){if(!elem){retur n this[0]&&this[0].parentNode?this.prevAll().length:-1}if(typeof elem==="string" ){return jQuery.inArray(this[0],jQuery(elem))}return jQuery.inArray(elem.jquery? elem[0]:elem,this)},add:function(selector,context){var set=typeof selector==="st ring"?jQuery(selector,context):jQuery.makeArray(selector&&selector.nodeType?[sel ector]:selector),all=jQuery.merge(this.get(),set);return this.pushStack(isDiscon nected(set[0])||isDisconnected(all[0])?all:jQuery.unique(all))},addBack:function (selector){return this.add(selector==null?this.prevObject:this.prevObject.filter (selector))}});jQuery.fn.andSelf=jQuery.fn.addBack;function isDisconnected(node) {return!node||!node.parentNode||node.parentNode.nodeType===11}function sibling(c ur,dir){do{cur=cur[dir]}while(cur&&cur.nodeType!==1);return cur}jQuery.each({par ent:function(elem){var parent=elem.parentNode;return parent&&parent.nodeType!==1 1?parent:null},parents:function(elem){return jQuery.dir(elem,"parentNode")},pare ntsUntil:function(elem,i,until){return jQuery.dir(elem,"parentNode",until)},next :function(elem){return sibling(elem,"nextSibling")},prev:function(elem){return s ibling(elem,"previousSibling")},nextAll:function(elem){return jQuery.dir(elem,"n extSibling")},prevAll:function(elem){return jQuery.dir(elem,"previousSibling")}, nextUntil:function(elem,i,until){return jQuery.dir(elem,"nextSibling",until)},pr evUntil:function(elem,i,until){return jQuery.dir(elem,"previousSibling",until)}, siblings:function(elem){return jQuery.sibling((elem.parentNode||{}).firstChild,e lem)},children:function(elem){return jQuery.sibling(elem.firstChild)},contents:f unction(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.c ontentWindow.document:jQuery.merge([],elem.childNodes)}},function(name,fn){jQuer y.fn[name]=function(until,selector){var ret=jQuery.map(this,fn,until);if(!runtil .test(name)){selector=until}if(selector&&typeof selector==="string"){ret=jQuery. filter(selector,ret)}ret=this.length>1&&!guaranteedUnique[name]?jQuery.unique(re t):ret;if(this.length>1&&rparentsprev.test(name)){ret=ret.reverse()}return this. pushStack(ret,name,core_slice.call(arguments).join(","))}});jQuery.extend({filte r:function(expr,elems,not){if(not){expr=":not("+expr+")"}return elems.length===1 ?jQuery.find.matchesSelector(elems[0],expr)?[elems[0]]:[]:jQuery.find.matches(ex pr,elems)},dir:function(elem,dir,until){var matched=[],cur=elem[dir];while(cur&& cur.nodeType!==9&&(until===undefined||cur.nodeType!==1||!jQuery(cur).is(until))) {if(cur.nodeType===1){matched.push(cur)}cur=cur[dir]}return matched},sibling:fun ction(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType===1&&n!==elem){r.pu sh(n)}}return r}});function winnow(elements,qualifier,keep){qualifier=qualifier| |0;if(jQuery.isFunction(qualifier)){return jQuery.grep(elements,function(elem,i) {var retVal=!!qualifier.call(elem,i,elem);return retVal===keep})}else if(qualifi er.nodeType){return jQuery.grep(elements,function(elem,i){return elem===qualifie r===keep})}else if(typeof qualifier==="string"){var filtered=jQuery.grep(element s,function(elem){return elem.nodeType===1});if(isSimple.test(qualifier)){return jQuery.filter(qualifier,filtered,!keep)}else{qualifier=jQuery.filter(qualifier,f iltered)}}return jQuery.grep(elements,function(elem,i){return jQuery.inArray(ele m,qualifier)>=0===keep})}function createSafeFragment(document){var list=nodeName s.split("|"),safeFrag=document.createDocumentFragment();if(safeFrag.createElemen t){while(list.length){safeFrag.createElement(list.pop())}}return safeFrag}var no deNames="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|fi gure|footer|"+"header|hgroup|mark|meter|nav|output|progress|section|summary|time |video",rinlinejQuery=/ jQuery\d+="(?:null|\d+)"/g,rleadingWhitespace=/^\s+/,rxh tmlTag=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi ,rtagName=/<([\w:]+)/,rtbody=/<tbody/i,rhtml=/<|&#?\w+;/,rnoInnerhtml=/<(?:scrip t|style|link)/i,rnocache=/<(?:script|object|embed|option|style)/i,rnoshimcache=n ew RegExp("<(?:"+nodeNames+")[\\s/>]","i"),rcheckableType=/^(?:checkbox|radio)$/ ,rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,rscriptType=/\/(java|ecma)script/i ,rcleanScript=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,wrapMap={option:[1,"<se lect multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],th ead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"< table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgr oup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},safeF ragment=createSafeFragment(document),fragmentDiv=safeFragment.appendChild(docume nt.createElement("div"));wrapMap.optgroup=wrapMap.option;wrapMap.tbody=wrapMap.t foot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;wrapMap.th=wrapMap.td;if(!jQ uery.support.htmlSerialize){wrapMap._default=[1,"X<div>","</div>"]}jQuery.fn.ext end({text:function(value){return jQuery.access(this,function(value){return value ===undefined?jQuery.text(this):this.empty().append((this[0]&&this[0].ownerDocume nt||document).createTextNode(value))},null,value,arguments.length)},wrapAll:func tion(html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this) .wrapAll(html.call(this,i))})}if(this[0]){var wrap=jQuery(html,this[0].ownerDocu ment).eq(0).clone(true);if(this[0].parentNode){wrap.insertBefore(this[0])}wrap.m ap(function(){var elem=this;while(elem.firstChild&&elem.firstChild.nodeType===1) {elem=elem.firstChild}return elem}).append(this)}return this},wrapInner:function (html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wra pInner(html.call(this,i))})}return this.each(function(){var self=jQuery(this),co ntents=self.contents();if(contents.length){contents.wrapAll(html)}else{self.appe nd(html)}})},wrap:function(html){var isFunction=jQuery.isFunction(html);return t his.each(function(i){jQuery(this).wrapAll(isFunction?html.call(this,i):html)})}, unwrap:function(){return this.parent().each(function(){if(!jQuery.nodeName(this, "body")){jQuery(this).replaceWith(this.childNodes)}}).end()},append:function(){r eturn this.domManip(arguments,true,function(elem){if(this.nodeType===1||this.nod eType===11){this.appendChild(elem)}})},prepend:function(){return this.domManip(a rguments,true,function(elem){if(this.nodeType===1||this.nodeType===11){this.inse rtBefore(elem,this.firstChild)}})},before:function(){if(!isDisconnected(this[0]) ){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefo re(elem,this)})}if(arguments.length){var set=jQuery.clean(arguments);return this .pushStack(jQuery.merge(set,this),"before",this.selector)}},after:function(){if( !isDisconnected(this[0])){return this.domManip(arguments,false,function(elem){th is.parentNode.insertBefore(elem,this.nextSibling)})}if(arguments.length){var set =jQuery.clean(arguments);return this.pushStack(jQuery.merge(this,set),"after",th is.selector)}},remove:function(selector,keepData){var elem,i=0;for(;(elem=this[i ])!=null;i++){if(!selector||jQuery.filter(selector,[elem]).length){if(!keepData& &elem.nodeType===1){jQuery.cleanData(elem.getElementsByTagName("*"));jQuery.clea nData([elem])}if(elem.parentNode){elem.parentNode.removeChild(elem)}}}return thi s},empty:function(){var elem,i=0;for(;(elem=this[i])!=null;i++){if(elem.nodeType ===1){jQuery.cleanData(elem.getElementsByTagName("*"))}while(elem.firstChild){el em.removeChild(elem.firstChild)}}return this},clone:function(dataAndEvents,deepD ataAndEvents){dataAndEvents=dataAndEvents==null?false:dataAndEvents;deepDataAndE vents=deepDataAndEvents==null?dataAndEvents:deepDataAndEvents;return this.map(fu nction(){return jQuery.clone(this,dataAndEvents,deepDataAndEvents)})},html:funct ion(value){return jQuery.access(this,function(value){var elem=this[0]||{},i=0,l= this.length;if(value===undefined){return elem.nodeType===1?elem.innerHTML.replac e(rinlinejQuery,""):undefined}if(typeof value==="string"&&!rnoInnerhtml.test(val ue)&&(jQuery.support.htmlSerialize||!rnoshimcache.test(value))&&(jQuery.support. leadingWhitespace||!rleadingWhitespace.test(value))&&!wrapMap[(rtagName.exec(val ue)||["",""])[1].toLowerCase()]){value=value.replace(rxhtmlTag,"<$1></$2>");try{ for(;i<l;i++){elem=this[i]||{};if(elem.nodeType===1){jQuery.cleanData(elem.getEl ementsByTagName("*"));elem.innerHTML=value}}elem=0}catch(e){}}if(elem){this.empt y().append(value)}},null,value,arguments.length)},replaceWith:function(value){if (!isDisconnected(this[0])){if(jQuery.isFunction(value)){return this.each(functio n(i){var self=jQuery(this),old=self.html();self.replaceWith(value.call(this,i,ol d))})}if(typeof value!=="string"){value=jQuery(value).detach()}return this.each( function(){var next=this.nextSibling,parent=this.parentNode;jQuery(this).remove( );if(next){jQuery(next).before(value)}else{jQuery(parent).append(value)}})}retur n this.length?this.pushStack(jQuery(jQuery.isFunction(value)?value():value),"rep laceWith",value):this},detach:function(selector){return this.remove(selector,tru e)},domManip:function(args,table,callback){args=[].concat.apply([],args);var res ults,first,fragment,iNoClone,i=0,value=args[0],scripts=[],l=this.length;if(!jQue ry.support.checkClone&&l>1&&typeof value==="string"&&rchecked.test(value)){retur n this.each(function(){jQuery(this).domManip(args,table,callback)})}if(jQuery.is Function(value)){return this.each(function(i){var self=jQuery(this);args[0]=valu e.call(this,i,table?self.html():undefined);self.domManip(args,table,callback)})} if(this[0]){results=jQuery.buildFragment(args,this,scripts);fragment=results.fra gment;first=fragment.firstChild;if(fragment.childNodes.length===1){fragment=firs t}if(first){table=table&&jQuery.nodeName(first,"tr");for(iNoClone=results.cachea ble||l-1;i<l;i++){callback.call(table&&jQuery.nodeName(this[i],"table")?findOrAp pend(this[i],"tbody"):this[i],i===iNoClone?fragment:jQuery.clone(fragment,true,t rue))}}fragment=first=null;if(scripts.length){jQuery.each(scripts,function(i,ele m){if(elem.src){if(jQuery.ajax){jQuery.ajax({url:elem.src,type:"GET",dataType:"s cript",async:false,global:false,"throws":true})}else{jQuery.error("no ajax")}}el se{jQuery.globalEval((elem.text||elem.textContent||elem.innerHTML||"").replace(r cleanScript,""))}if(elem.parentNode){elem.parentNode.removeChild(elem)}})}}retur n this}});function findOrAppend(elem,tag){return elem.getElementsByTagName(tag)[ 0]||elem.appendChild(elem.ownerDocument.createElement(tag))}function cloneCopyEv ent(src,dest){if(dest.nodeType!==1||!jQuery.hasData(src)){return}var type,i,l,ol dData=jQuery._data(src),curData=jQuery._data(dest,oldData),events=oldData.events ;if(events){delete curData.handle;curData.events={};for(type in events){for(i=0, l=events[type].length;i<l;i++){jQuery.event.add(dest,type,events[type][i])}}}if( curData.data){curData.data=jQuery.extend({},curData.data)}}function cloneFixAttr ibutes(src,dest){var nodeName;if(dest.nodeType!==1){return}if(dest.clearAttribut es){dest.clearAttributes()}if(dest.mergeAttributes){dest.mergeAttributes(src)}no deName=dest.nodeName.toLowerCase();if(nodeName==="object"){if(dest.parentNode){d est.outerHTML=src.outerHTML}if(jQuery.support.html5Clone&&(src.innerHTML&&!jQuer y.trim(dest.innerHTML))){dest.innerHTML=src.innerHTML}}else if(nodeName==="input "&&rcheckableType.test(src.type)){dest.defaultChecked=dest.checked=src.checked;i f(dest.value!==src.value){dest.value=src.value}}else if(nodeName==="option"){des t.selected=src.defaultSelected}else if(nodeName==="input"||nodeName==="textarea" ){dest.defaultValue=src.defaultValue}else if(nodeName==="script"&&dest.text!==sr c.text){dest.text=src.text}dest.removeAttribute(jQuery.expando)}jQuery.buildFrag ment=function(args,context,scripts){var fragment,cacheable,cachehit,first=args[0 ];context=context||document;context=!context.nodeType&&context[0]||context;conte xt=context.ownerDocument||context;if(args.length===1&&typeof first==="string"&&f irst.length<512&&context===document&&first.charAt(0)==="<"&&!rnocache.test(first )&&(jQuery.support.checkClone||!rchecked.test(first))&&(jQuery.support.html5Clon e||!rnoshimcache.test(first))){cacheable=true;fragment=jQuery.fragments[first];c achehit=fragment!==undefined}if(!fragment){fragment=context.createDocumentFragme nt();jQuery.clean(args,context,fragment,scripts);if(cacheable){jQuery.fragments[ first]=cachehit&&fragment}}return{fragment:fragment,cacheable:cacheable}};jQuery .fragments={};jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"b efore",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQu ery.fn[name]=function(selector){var elems,i=0,ret=[],insert=jQuery(selector),l=i nsert.length,parent=this.length===1&&this[0].parentNode;if((parent==null||parent &&parent.nodeType===11&&parent.childNodes.length===1)&&l===1){insert[original](t his[0]);return this}else{for(;i<l;i++){elems=(i>0?this.clone(true):this).get();j Query(insert[i])[original](elems);ret=ret.concat(elems)}return this.pushStack(re t,name,insert.selector)}}});function getAll(elem){if(typeof elem.getElementsByTa gName!=="undefined"){return elem.getElementsByTagName("*")}else if(typeof elem.q uerySelectorAll!=="undefined"){return elem.querySelectorAll("*")}else{return[]}} function fixDefaultChecked(elem){if(rcheckableType.test(elem.type)){elem.default Checked=elem.checked}}jQuery.extend({clone:function(elem,dataAndEvents,deepDataA ndEvents){var srcElements,destElements,i,clone;if(jQuery.support.html5Clone||jQu ery.isXMLDoc(elem)||!rnoshimcache.test("<"+elem.nodeName+">")){clone=elem.cloneN ode(true)}else{fragmentDiv.innerHTML=elem.outerHTML;fragmentDiv.removeChild(clon e=fragmentDiv.firstChild)}if((!jQuery.support.noCloneEvent||!jQuery.support.noCl oneChecked)&&(elem.nodeType===1||elem.nodeType===11)&&!jQuery.isXMLDoc(elem)){cl oneFixAttributes(elem,clone);srcElements=getAll(elem);destElements=getAll(clone) ;for(i=0;srcElements[i];++i){if(destElements[i]){cloneFixAttributes(srcElements[ i],destElements[i])}}}if(dataAndEvents){cloneCopyEvent(elem,clone);if(deepDataAn dEvents){srcElements=getAll(elem);destElements=getAll(clone);for(i=0;srcElements [i];++i){cloneCopyEvent(srcElements[i],destElements[i])}}}srcElements=destElemen ts=null;return clone},clean:function(elems,context,fragment,scripts){var i,j,ele m,tag,wrap,depth,div,hasBody,tbody,len,handleScript,jsTags,safe=context===docume nt&&safeFragment,ret=[];if(!context||typeof context.createDocumentFragment==="un defined"){context=document}for(i=0;(elem=elems[i])!=null;i++){if(typeof elem===" number"){elem+=""}if(!elem){continue}if(typeof elem==="string"){if(!rhtml.test(e lem)){elem=context.createTextNode(elem)}else{safe=safe||createSafeFragment(conte xt);div=context.createElement("div");safe.appendChild(div);elem=elem.replace(rxh tmlTag,"<$1></$2>");tag=(rtagName.exec(elem)||["",""])[1].toLowerCase();wrap=wra pMap[tag]||wrapMap._default;depth=wrap[0];div.innerHTML=wrap[1]+elem+wrap[2];whi le(depth--){div=div.lastChild
4 }if(!jQuery.support.tbody){hasBody=rtbody.test(elem);tbody=tag==="table"&&!hasBo dy?div.firstChild&&div.firstChild.childNodes:wrap[1]==="<table>"&&!hasBody?div.c hildNodes:[];for(j=tbody.length-1;j>=0;--j){if(jQuery.nodeName(tbody[j],"tbody") &&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j])}}}if(!j Query.support.leadingWhitespace&&rleadingWhitespace.test(elem)){div.insertBefore (context.createTextNode(rleadingWhitespace.exec(elem)[0]),div.firstChild)}elem=d iv.childNodes;div.parentNode.removeChild(div)}}if(elem.nodeType){ret.push(elem)} else{jQuery.merge(ret,elem)}}if(div){elem=div=safe=null}if(!jQuery.support.appen dChecked){for(i=0;(elem=ret[i])!=null;i++){if(jQuery.nodeName(elem,"input")){fix DefaultChecked(elem)}else if(typeof elem.getElementsByTagName!=="undefined"){jQu ery.grep(elem.getElementsByTagName("input"),fixDefaultChecked)}}}if(fragment){ha ndleScript=function(elem){if(!elem.type||rscriptType.test(elem.type)){return scr ipts?scripts.push(elem.parentNode?elem.parentNode.removeChild(elem):elem):fragme nt.appendChild(elem)}};for(i=0;(elem=ret[i])!=null;i++){if(!(jQuery.nodeName(ele m,"script")&&handleScript(elem))){fragment.appendChild(elem);if(typeof elem.getE lementsByTagName!=="undefined"){jsTags=jQuery.grep(jQuery.merge([],elem.getEleme ntsByTagName("script")),handleScript);ret.splice.apply(ret,[i+1,0].concat(jsTags ));i+=jsTags.length}}}}return ret},cleanData:function(elems,acceptData){var data ,id,elem,type,i=0,internalKey=jQuery.expando,cache=jQuery.cache,deleteExpando=jQ uery.support.deleteExpando,special=jQuery.event.special;for(;(elem=elems[i])!=nu ll;i++){if(acceptData||jQuery.acceptData(elem)){id=elem[internalKey];data=id&&ca che[id];if(data){if(data.events){for(type in data.events){if(special[type]){jQue ry.event.remove(elem,type)}else{jQuery.removeEvent(elem,type,data.handle)}}}if(c ache[id]){delete cache[id];if(deleteExpando){delete elem[internalKey]}else if(el em.removeAttribute){elem.removeAttribute(internalKey)}else{elem[internalKey]=nul l}jQuery.deletedIds.push(id)}}}}}});(function(){var matched,browser;jQuery.uaMat ch=function(ua){ua=ua.toLowerCase();var match=/(chrome)[ \/]([\w.]+)/.exec(ua)|| /(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)| |/(msie) ([\w.]+)/.exec(ua)||ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\ w.]+)|)/.exec(ua)||[];return{browser:match[1]||"",version:match[2]||"0"}};matche d=jQuery.uaMatch(navigator.userAgent);browser={};if(matched.browser){browser[mat ched.browser]=true;browser.version=matched.version}if(browser.chrome){browser.we bkit=true}else if(browser.webkit){browser.safari=true}jQuery.browser=browser;jQu ery.sub=function(){function jQuerySub(selector,context){return new jQuerySub.fn. init(selector,context)}jQuery.extend(true,jQuerySub,this);jQuerySub.superclass=t his;jQuerySub.fn=jQuerySub.prototype=this();jQuerySub.fn.constructor=jQuerySub;j QuerySub.sub=this.sub;jQuerySub.fn.init=function init(selector,context){if(conte xt&&context instanceof jQuery&&!(context instanceof jQuerySub)){context=jQuerySu b(context)}return jQuery.fn.init.call(this,selector,context,rootjQuerySub)};jQue rySub.fn.init.prototype=jQuerySub.fn;var rootjQuerySub=jQuerySub(document);retur n jQuerySub}})();var curCSS,iframe,iframeDoc,ralpha=/alpha\([^)]*\)/i,ropacity=/ opacity=([^)]*)/,rposition=/^(top|right|bottom|left)$/,rdisplayswap=/^(none|tabl e(?!-c[ea]).+)/,rmargin=/^margin/,rnumsplit=new RegExp("^("+core_pnum+")(.*)$"," i"),rnumnonpx=new RegExp("^("+core_pnum+")(?!px)[a-z%]+$","i"),rrelNum=new RegEx p("^([-+])=("+core_pnum+")","i"),elemdisplay={BODY:"block"},cssShow={position:"a bsolute",visibility:"hidden",display:"block"},cssNormalTransform={letterSpacing: 0,fontWeight:400},cssExpand=["Top","Right","Bottom","Left"],cssPrefixes=["Webkit ","O","Moz","ms"],eventsToggle=jQuery.fn.toggle;function vendorPropName(style,na me){if(name in style){return name}var capName=name.charAt(0).toUpperCase()+name. slice(1),origName=name,i=cssPrefixes.length;while(i--){name=cssPrefixes[i]+capNa me;if(name in style){return name}}return origName}function isHidden(elem,el){ele m=el||elem;return jQuery.css(elem,"display")==="none"||!jQuery.contains(elem.own erDocument,elem)}function showHide(elements,show){var elem,display,values=[],ind ex=0,length=elements.length;for(;index<length;index++){elem=elements[index];if(! elem.style){continue}values[index]=jQuery._data(elem,"olddisplay");if(show){if(! values[index]&&elem.style.display==="none"){elem.style.display=""}if(elem.style. display===""&&isHidden(elem)){values[index]=jQuery._data(elem,"olddisplay",css_d efaultDisplay(elem.nodeName))}}else{display=curCSS(elem,"display");if(!values[in dex]&&display!=="none"){jQuery._data(elem,"olddisplay",display)}}}for(index=0;in dex<length;index++){elem=elements[index];if(!elem.style){continue}if(!show||elem .style.display==="none"||elem.style.display===""){elem.style.display=show?values [index]||"":"none"}}return elements}jQuery.fn.extend({css:function(name,value){r eturn jQuery.access(this,function(elem,name,value){return value!==undefined?jQue ry.style(elem,name,value):jQuery.css(elem,name)},name,value,arguments.length>1)} ,show:function(){return showHide(this,true)},hide:function(){return showHide(thi s)},toggle:function(state,fn2){var bool=typeof state==="boolean";if(jQuery.isFun ction(state)&&jQuery.isFunction(fn2)){return eventsToggle.apply(this,arguments)} return this.each(function(){if(bool?state:isHidden(this)){jQuery(this).show()}el se{jQuery(this).hide()}})}});jQuery.extend({cssHooks:{opacity:{get:function(elem ,computed){if(computed){var ret=curCSS(elem,"opacity");return ret===""?"1":ret}} }},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orph ans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":jQuery.support.css Float?"cssFloat":"styleFloat"},style:function(elem,name,value,extra){if(!elem||e lem.nodeType===3||elem.nodeType===8||!elem.style){return}var ret,type,hooks,orig Name=jQuery.camelCase(name),style=elem.style;name=jQuery.cssProps[origName]||(jQ uery.cssProps[origName]=vendorPropName(style,origName));hooks=jQuery.cssHooks[na me]||jQuery.cssHooks[origName];if(value!==undefined){type=typeof value;if(type== ="string"&&(ret=rrelNum.exec(value))){value=(ret[1]+1)*ret[2]+parseFloat(jQuery. css(elem,name));type="number"}if(value==null||type==="number"&&isNaN(value)){ret urn}if(type==="number"&&!jQuery.cssNumber[origName]){value+="px"}if(!hooks||!("s et"in hooks)||(value=hooks.set(elem,value,extra))!==undefined){try{style[name]=v alue}catch(e){}}}else{if(hooks&&"get"in hooks&&(ret=hooks.get(elem,false,extra)) !==undefined){return ret}return style[name]}},css:function(elem,name,numeric,ext ra){var val,num,hooks,origName=jQuery.camelCase(name);name=jQuery.cssProps[origN ame]||(jQuery.cssProps[origName]=vendorPropName(elem.style,origName));hooks=jQue ry.cssHooks[name]||jQuery.cssHooks[origName];if(hooks&&"get"in hooks){val=hooks. get(elem,true,extra)}if(val===undefined){val=curCSS(elem,name)}if(val==="normal" &&name in cssNormalTransform){val=cssNormalTransform[name]}if(numeric||extra!==u ndefined){num=parseFloat(val);return numeric||jQuery.isNumeric(num)?num||0:val}r eturn val},swap:function(elem,options,callback){var ret,name,old={};for(name in options){old[name]=elem.style[name];elem.style[name]=options[name]}ret=callback. call(elem);for(name in options){elem.style[name]=old[name]}return ret}});if(wind ow.getComputedStyle){curCSS=function(elem,name){var ret,width,minWidth,maxWidth, computed=window.getComputedStyle(elem,null),style=elem.style;if(computed){ret=co mputed.getPropertyValue(name)||computed[name];if(ret===""&&!jQuery.contains(elem .ownerDocument,elem)){ret=jQuery.style(elem,name)}if(rnumnonpx.test(ret)&&rmargi n.test(name)){width=style.width;minWidth=style.minWidth;maxWidth=style.maxWidth; style.minWidth=style.maxWidth=style.width=ret;ret=computed.width;style.width=wid th;style.minWidth=minWidth;style.maxWidth=maxWidth}}return ret}}else if(document .documentElement.currentStyle){curCSS=function(elem,name){var left,rsLeft,ret=el em.currentStyle&&elem.currentStyle[name],style=elem.style;if(ret==null&&style&&s tyle[name]){ret=style[name]}if(rnumnonpx.test(ret)&&!rposition.test(name)){left= style.left;rsLeft=elem.runtimeStyle&&elem.runtimeStyle.left;if(rsLeft){elem.runt imeStyle.left=elem.currentStyle.left}style.left=name==="fontSize"?"1em":ret;ret= style.pixelLeft+"px";style.left=left;if(rsLeft){elem.runtimeStyle.left=rsLeft}}r eturn ret===""?"auto":ret}}function setPositiveNumber(elem,value,subtract){var m atches=rnumsplit.exec(value);return matches?Math.max(0,matches[1]-(subtract||0)) +(matches[2]||"px"):value}function augmentWidthOrHeight(elem,name,extra,isBorder Box){var i=extra===(isBorderBox?"border":"content")?4:name==="width"?1:0,val=0;f or(;i<4;i+=2){if(extra==="margin"){val+=jQuery.css(elem,extra+cssExpand[i],true) }if(isBorderBox){if(extra==="content"){val-=parseFloat(curCSS(elem,"padding"+css Expand[i]))||0}if(extra!=="margin"){val-=parseFloat(curCSS(elem,"border"+cssExpa nd[i]+"Width"))||0}}else{val+=parseFloat(curCSS(elem,"padding"+cssExpand[i]))||0 ;if(extra!=="padding"){val+=parseFloat(curCSS(elem,"border"+cssExpand[i]+"Width" ))||0}}}return val}function getWidthOrHeight(elem,name,extra){var val=name==="wi dth"?elem.offsetWidth:elem.offsetHeight,valueIsBorderBox=true,isBorderBox=jQuery .support.boxSizing&&jQuery.css(elem,"boxSizing")==="border-box";if(val<=0||val== null){val=curCSS(elem,name);if(val<0||val==null){val=elem.style[name]}if(rnumnon px.test(val)){return val}valueIsBorderBox=isBorderBox&&(jQuery.support.boxSizing Reliable||val===elem.style[name]);val=parseFloat(val)||0}return val+augmentWidth OrHeight(elem,name,extra||(isBorderBox?"border":"content"),valueIsBorderBox)+"px "}function css_defaultDisplay(nodeName){if(elemdisplay[nodeName]){return elemdis play[nodeName]}var elem=jQuery("<"+nodeName+">").appendTo(document.body),display =elem.css("display");elem.remove();if(display==="none"||display===""){iframe=doc ument.body.appendChild(iframe||jQuery.extend(document.createElement("iframe"),{f rameBorder:0,width:0,height:0}));if(!iframeDoc||!iframe.createElement){iframeDoc =(iframe.contentWindow||iframe.contentDocument).document;iframeDoc.write("<!doct ype html><html><body>");iframeDoc.close()}elem=iframeDoc.body.appendChild(iframe Doc.createElement(nodeName));display=curCSS(elem,"display");document.body.remove Child(iframe)}elemdisplay[nodeName]=display;return display}jQuery.each(["height" ,"width"],function(i,name){jQuery.cssHooks[name]={get:function(elem,computed,ext ra){if(computed){if(elem.offsetWidth===0&&rdisplayswap.test(curCSS(elem,"display "))){return jQuery.swap(elem,cssShow,function(){return getWidthOrHeight(elem,nam e,extra)})}else{return getWidthOrHeight(elem,name,extra)}}},set:function(elem,va lue,extra){return setPositiveNumber(elem,value,extra?augmentWidthOrHeight(elem,n ame,extra,jQuery.support.boxSizing&&jQuery.css(elem,"boxSizing")==="border-box") :0)}}});if(!jQuery.support.opacity){jQuery.cssHooks.opacity={get:function(elem,c omputed){return ropacity.test((computed&&elem.currentStyle?elem.currentStyle.fil ter:elem.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":computed?"1":""},set:fu nction(elem,value){var style=elem.style,currentStyle=elem.currentStyle,opacity=j Query.isNumeric(value)?"alpha(opacity="+value*100+")":"",filter=currentStyle&&cu rrentStyle.filter||style.filter||"";style.zoom=1;if(value>=1&&jQuery.trim(filter .replace(ralpha,""))===""&&style.removeAttribute){style.removeAttribute("filter" );if(currentStyle&&!currentStyle.filter){return}}style.filter=ralpha.test(filter )?filter.replace(ralpha,opacity):filter+" "+opacity}}}jQuery(function(){if(!jQue ry.support.reliableMarginRight){jQuery.cssHooks.marginRight={get:function(elem,c omputed){return jQuery.swap(elem,{display:"inline-block"},function(){if(computed ){return curCSS(elem,"marginRight")}})}}}if(!jQuery.support.pixelPosition&&jQuer y.fn.position){jQuery.each(["top","left"],function(i,prop){jQuery.cssHooks[prop] ={get:function(elem,computed){if(computed){var ret=curCSS(elem,prop);return rnum nonpx.test(ret)?jQuery(elem).position()[prop]+"px":ret}}}})}});if(jQuery.expr&&j Query.expr.filters){jQuery.expr.filters.hidden=function(elem){return elem.offset Width===0&&elem.offsetHeight===0||!jQuery.support.reliableHiddenOffsets&&(elem.s tyle&&elem.style.display||curCSS(elem,"display"))==="none"};jQuery.expr.filters. visible=function(elem){return!jQuery.expr.filters.hidden(elem)}}jQuery.each({mar gin:"",padding:"",border:"Width"},function(prefix,suffix){jQuery.cssHooks[prefix +suffix]={expand:function(value){var i,parts=typeof value==="string"?value.split (" "):[value],expanded={};for(i=0;i<4;i++){expanded[prefix+cssExpand[i]+suffix]= parts[i]||parts[i-2]||parts[0]}return expanded}};if(!rmargin.test(prefix)){jQuer y.cssHooks[prefix+suffix].set=setPositiveNumber}});var r20=/%20/g,rbracket=/\[\] $/,rCRLF=/\r?\n/g,rinput=/^(?:color|date|datetime|datetime-local|email|hidden|mo nth|number|password|range|search|tel|text|time|url|week)$/i,rselectTextarea=/^(? :select|textarea)/i;jQuery.fn.extend({serialize:function(){return jQuery.param(t his.serializeArray())},serializeArray:function(){return this.map(function(){retu rn this.elements?jQuery.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||rselectTextarea.test(this.nodeName)|| rinput.test(this.type))}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:jQuery.isArray(val)?jQuery.map(val,function(val,i){return{name:e lem.name,value:val.replace(rCRLF,"\r\n")}}):{name:elem.name,value:val.replace(rC RLF,"\r\n")}}).get()}});jQuery.param=function(a,traditional){var prefix,s=[],add =function(key,value){value=jQuery.isFunction(value)?value():value==null?"":value ;s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value)};if(tradition al===undefined){traditional=jQuery.ajaxSettings&&jQuery.ajaxSettings.traditional }if(jQuery.isArray(a)||a.jquery&&!jQuery.isPlainObject(a)){jQuery.each(a,functio n(){add(this.name,this.value)})}else{for(prefix in a){buildParams(prefix,a[prefi x],traditional,add)}}return s.join("&").replace(r20,"+")};function buildParams(p refix,obj,traditional,add){var name;if(jQuery.isArray(obj)){jQuery.each(obj,func tion(i,v){if(traditional||rbracket.test(prefix)){add(prefix,v)}else{buildParams( prefix+"["+(typeof v==="object"?i:"")+"]",v,traditional,add)}})}else if(!traditi onal&&jQuery.type(obj)==="object"){for(name in obj){buildParams(prefix+"["+name+ "]",obj[name],traditional,add)}}else{add(prefix,obj)}}var ajaxLocParts,ajaxLocat ion,rhash=/#.*$/,rheaders=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,rlocalProtocol=/^(?:ab out|app|app\-storage|.+\-extension|file|res|widget):$/,rnoContent=/^(?:GET|HEAD) $/,rprotocol=/^\/\//,rquery=/\?/,rscript=/<script\b[^<]*(?:(?!<\/script>)<[^<]*) *<\/script>/gi,rts=/([?&])_=[^&]*/,rurl=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\ d+)|)|)/,_load=jQuery.fn.load,prefilters={},transports={},allTypes=["*/"]+["*"]; try{ajaxLocation=location.href}catch(e){ajaxLocation=document.createElement("a") ;ajaxLocation.href="";ajaxLocation=ajaxLocation.href}ajaxLocParts=rurl.exec(ajax Location.toLowerCase())||[];function addToPrefiltersOrTransports(structure){retu rn function(dataTypeExpression,func){if(typeof dataTypeExpression!=="string"){fu nc=dataTypeExpression;dataTypeExpression="*"}var dataType,list,placeBefore,dataT ypes=dataTypeExpression.toLowerCase().split(core_rspace),i=0,length=dataTypes.le ngth;if(jQuery.isFunction(func)){for(;i<length;i++){dataType=dataTypes[i];placeB efore=/^\+/.test(dataType);if(placeBefore){dataType=dataType.substr(1)||"*"}list =structure[dataType]=structure[dataType]||[];list[placeBefore?"unshift":"push"]( func)}}}}function inspectPrefiltersOrTransports(structure,options,originalOption s,jqXHR,dataType,inspected){dataType=dataType||options.dataTypes[0];inspected=in spected||{};inspected[dataType]=true;var selection,list=structure[dataType],i=0, length=list?list.length:0,executeOnly=structure===prefilters;for(;i<length&&(exe cuteOnly||!selection);i++){selection=list[i](options,originalOptions,jqXHR);if(t ypeof selection==="string"){if(!executeOnly||inspected[selection]){selection=und efined}else{options.dataTypes.unshift(selection);selection=inspectPrefiltersOrTr ansports(structure,options,originalOptions,jqXHR,selection,inspected)}}}if((exec uteOnly||!selection)&&!inspected["*"]){selection=inspectPrefiltersOrTransports(s tructure,options,originalOptions,jqXHR,"*",inspected)}return selection}function ajaxExtend(target,src){var key,deep,flatOptions=jQuery.ajaxSettings.flatOptions| |{};for(key in src){if(src[key]!==undefined){(flatOptions[key]?target:deep||(dee p={}))[key]=src[key]}}if(deep){jQuery.extend(true,target,deep)}}jQuery.fn.load=f unction(url,params,callback){if(typeof url!=="string"&&_load){return _load.apply (this,arguments)}if(!this.length){return this}var selector,type,response,self=th is,off=url.indexOf(" ");if(off>=0){selector=url.slice(off,url.length);url=url.sl ice(0,off)}if(jQuery.isFunction(params)){callback=params;params=undefined}else i f(params&&typeof params==="object"){type="POST"}jQuery.ajax({url:url,type:type,d ataType:"html",data:params,complete:function(jqXHR,status){if(callback){self.eac h(callback,response||[jqXHR.responseText,status,jqXHR])}}}).done(function(respon seText){response=arguments;self.html(selector?jQuery("<div>").append(responseTex t.replace(rscript,"")).find(selector):responseText)});return this};jQuery.each(" ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),funct ion(i,o){jQuery.fn[o]=function(f){return this.on(o,f)}});jQuery.each(["get","pos t"],function(i,method){jQuery[method]=function(url,data,callback,type){if(jQuery .isFunction(data)){type=type||callback;callback=data;data=undefined}return jQuer y.ajax({type:method,url:url,data:data,success:callback,dataType:type})}});jQuery .extend({getScript:function(url,callback){return jQuery.get(url,undefined,callba ck,"script")},getJSON:function(url,data,callback){return jQuery.get(url,data,cal lback,"json")},ajaxSetup:function(target,settings){if(settings){ajaxExtend(targe t,jQuery.ajaxSettings)}else{settings=target;target=jQuery.ajaxSettings}ajaxExten d(target,settings);return target},ajaxSettings:{url:ajaxLocation,isLocal:rlocalP rotocol.test(ajaxLocParts[1]),global:true,type:"GET",contentType:"application/x- www-form-urlencoded; charset=UTF-8",processData:true,async:true,accepts:{xml:"ap plication/xml, text/xml",html:"text/html",text:"text/plain",json:"application/js on, text/javascript","*":allTypes},contents:{xml:/xml/,html:/html/,json:/json/}, responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":wind ow.String,"text html":true,"text json":jQuery.parseJSON,"text xml":jQuery.parseX ML},flatOptions:{context:true,url:true}},ajaxPrefilter:addToPrefiltersOrTranspor ts(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),ajax:functi on(url,options){if(typeof url==="object"){options=url;url=undefined}options=opti ons||{};var ifModifiedKey,responseHeadersString,responseHeaders,transport,timeou tTimer,parts,fireGlobals,i,s=jQuery.ajaxSetup({},options),callbackContext=s.cont ext||s,globalEventContext=callbackContext!==s&&(callbackContext.nodeType||callba ckContext instanceof jQuery)?jQuery(callbackContext):jQuery.event,deferred=jQuer y.Deferred(),completeDeferred=jQuery.Callbacks("once memory"),statusCode=s.statu sCode||{},requestHeaders={},requestHeadersNames={},state=0,strAbort="canceled",j qXHR={readyState:0,setRequestHeader:function(name,value){if(!state){var lname=na me.toLowerCase();name=requestHeadersNames[lname]=requestHeadersNames[lname]||nam e;requestHeaders[name]=value}return this},getAllResponseHeaders:function(){retur n state===2?responseHeadersString:null},getResponseHeader:function(key){var matc h;if(state===2){if(!responseHeaders){responseHeaders={};while(match=rheaders.exe c(responseHeadersString)){responseHeaders[match[1].toLowerCase()]=match[2]}}matc h=responseHeaders[key.toLowerCase()]}return match===undefined?null:match},overri deMimeType:function(type){if(!state){s.mimeType=type}return this},abort:function (statusText){statusText=statusText||strAbort;if(transport){transport.abort(statu sText)}done(0,statusText);return this}};function done(status,nativeStatusText,re sponses,headers){var isSuccess,success,error,response,modified,statusText=native StatusText;if(state===2){return}state=2;if(timeoutTimer){clearTimeout(timeoutTim er)}transport=undefined;responseHeadersString=headers||"";jqXHR.readyState=statu s>0?4:0;if(responses){response=ajaxHandleResponses(s,jqXHR,responses)}if(status> =200&&status<300||status===304){if(s.ifModified){modified=jqXHR.getResponseHeade r("Last-Modified");if(modified){jQuery.lastModified[ifModifiedKey]=modified}modi fied=jqXHR.getResponseHeader("Etag");if(modified){jQuery.etag[ifModifiedKey]=mod ified}}if(status===304){statusText="notmodified";isSuccess=true}else{isSuccess=a jaxConvert(s,response);statusText=isSuccess.state;success=isSuccess.data;error=i sSuccess.error;isSuccess=!error}}else{error=statusText;if(!statusText||status){s tatusText="error";if(status<0){status=0}}}jqXHR.status=status;jqXHR.statusText=( nativeStatusText||statusText)+"";if(isSuccess){deferred.resolveWith(callbackCont ext,[success,statusText,jqXHR])}else{deferred.rejectWith(callbackContext,[jqXHR, statusText,error])}jqXHR.statusCode(statusCode);statusCode=undefined;if(fireGlob als){globalEventContext.trigger("ajax"+(isSuccess?"Success":"Error"),[jqXHR,s,is Success?success:error])}completeDeferred.fireWith(callbackContext,[jqXHR,statusT ext]);if(fireGlobals){globalEventContext.trigger("ajaxComplete",[jqXHR,s]);if(!- -jQuery.active){jQuery.event.trigger("ajaxStop")}}}deferred.promise(jqXHR);jqXHR .success=jqXHR.done;jqXHR.error=jqXHR.fail;jqXHR.complete=completeDeferred.add;j qXHR.statusCode=function(map){if(map){var tmp;if(state<2){for(tmp in map){status Code[tmp]=[statusCode[tmp],map[tmp]]}}else{tmp=map[jqXHR.status];jqXHR.always(tm p)}}return this};s.url=((url||s.url)+"").replace(rhash,"").replace(rprotocol,aja xLocParts[1]+"//");s.dataTypes=jQuery.trim(s.dataType||"*").toLowerCase().split( core_rspace);if(s.crossDomain==null){parts=rurl.exec(s.url.toLowerCase());s.cros sDomain=!!(parts&&(parts[1]!==ajaxLocParts[1]||parts[2]!==ajaxLocParts[2]||(part s[3]||(parts[1]==="http:"?80:443))!=(ajaxLocParts[3]||(ajaxLocParts[1]==="http:" ?80:443))))}if(s.data&&s.processData&&typeof s.data!=="string"){s.data=jQuery.pa ram(s.data,s.traditional)}inspectPrefiltersOrTransports(prefilters,s,options,jqX HR);if(state===2){return jqXHR}fireGlobals=s.global;s.type=s.type.toUpperCase(); s.hasContent=!rnoContent.test(s.type);if(fireGlobals&&jQuery.active++===0){jQuer y.event.trigger("ajaxStart")}if(!s.hasContent){if(s.data){s.url+=(rquery.test(s. url)?"&":"?")+s.data;delete s.data}ifModifiedKey=s.url;if(s.cache===false){var t s=jQuery.now(),ret=s.url.replace(rts,"$1_="+ts);s.url=ret+(ret===s.url?(rquery.t est(s.url)?"&":"?")+"_="+ts:"")}}if(s.data&&s.hasContent&&s.contentType!==false| |options.contentType){jqXHR.setRequestHeader("Content-Type",s.contentType)}if(s. ifModified){ifModifiedKey=ifModifiedKey||s.url;if(jQuery.lastModified[ifModified Key]){jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[ifModifiedK ey])}if(jQuery.etag[ifModifiedKey]){jqXHR.setRequestHeader("If-None-Match",jQuer y.etag[ifModifiedKey])}}jqXHR.setRequestHeader("Accept",s.dataTypes[0]&&s.accept s[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+(s.dataTypes[0]!=="*"?", "+allTypes+ "; q=0.01":""):s.accepts["*"]);for(i in s.headers){jqXHR.setRequestHeader(i,s.he aders[i])}if(s.beforeSend&&(s.beforeSend.call(callbackContext,jqXHR,s)===false|| state===2)){return jqXHR.abort()}strAbort="abort";for(i in{success:1,error:1,com plete:1}){jqXHR[i](s[i])}transport=inspectPrefiltersOrTransports(transports,s,op tions,jqXHR);if(!transport){done(-1,"No Transport")}else{jqXHR.readyState=1;if(f ireGlobals){globalEventContext.trigger("ajaxSend",[jqXHR,s])}if(s.async&&s.timeo ut>0){timeoutTimer=setTimeout(function(){jqXHR.abort("timeout")},s.timeout)}try{ state=1;transport.send(requestHeaders,done)}catch(e){if(state<2){done(-1,e)}else {throw e}}}return jqXHR},active:0,lastModified:{},etag:{}});function ajaxHandleR esponses(s,jqXHR,responses){var ct,type,finalDataType,firstDataType,contents=s.c ontents,dataTypes=s.dataTypes,responseFields=s.responseFields;for(type in respon seFields){if(type in responses){jqXHR[responseFields[type]]=responses[type]}}whi le(dataTypes[0]==="*"){dataTypes.shift();if(ct===undefined){ct=s.mimeType||jqXHR .getResponseHeader("content-type")}}if(ct){for(type in contents){if(contents[typ e]&&contents[type].test(ct)){dataTypes.unshift(type);break}}}if(dataTypes[0]in r esponses){finalDataType=dataTypes[0]}else{for(type in responses){if(!dataTypes[0 ]||s.converters[type+" "+dataTypes[0]]){finalDataType=type;break}if(!firstDataTy pe){firstDataType=type}}finalDataType=finalDataType||firstDataType}if(finalDataT ype){if(finalDataType!==dataTypes[0]){dataTypes.unshift(finalDataType)}return re sponses[finalDataType]}}function ajaxConvert(s,response){var conv,conv2,current, tmp,dataTypes=s.dataTypes.slice(),prev=dataTypes[0],converters={},i=0;if(s.dataF ilter){response=s.dataFilter(response,s.dataType)}if(dataTypes[1]){for(conv in s .converters){converters[conv.toLowerCase()]=s.converters[conv]}}for(;current=dat aTypes[++i];){if(current!=="*"){if(prev!=="*"&&prev!==current){conv=converters[p rev+" "+current]||converters["* "+current];if(!conv){for(conv2 in converters){tm p=conv2.split(" ");if(tmp[1]===current){conv=converters[prev+" "+tmp[0]]||conver ters["* "+tmp[0]];if(conv){if(conv===true){conv=converters[conv2]}else if(conver ters[conv2]!==true){current=tmp[0];dataTypes.splice(i--,0,current)}break}}}}if(c onv!==true){if(conv&&s["throws"]){response=conv(response)}else{try{response=conv (response)}catch(e){return{state:"parsererror",error:conv?e:"No conversion from "+prev+" to "+current}}}}}prev=current}}return{state:"success",data:response}}va r oldCallbacks=[],rquestion=/\?/,rjsonp=/(=)\?(?=&|$)|\?\?/,nonce=jQuery.now();j Query.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var callback=oldCallb acks.pop()||jQuery.expando+"_"+nonce++;this[callback]=true;return callback}});jQ uery.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){var callbackN ame,overwritten,responseContainer,data=s.data,url=s.url,hasCallback=s.jsonp!==fa lse,replaceInUrl=hasCallback&&rjsonp.test(url),replaceInData=hasCallback&&!repla ceInUrl&&typeof data==="string"&&!(s.contentType||"").indexOf("application/x-www -form-urlencoded")&&rjsonp.test(data);if(s.dataTypes[0]==="jsonp"||replaceInUrl| |replaceInData){callbackName=s.jsonpCallback=jQuery.isFunction(s.jsonpCallback)? s.jsonpCallback():s.jsonpCallback;overwritten=window[callbackName];if(replaceInU rl){s.url=url.replace(rjsonp,"$1"+callbackName)}else if(replaceInData){s.data=da ta.replace(rjsonp,"$1"+callbackName)}else if(hasCallback){s.url+=(rquestion.test (url)?"&":"?")+s.jsonp+"="+callbackName}s.converters["script json"]=function(){i f(!responseContainer){jQuery.error(callbackName+" was not called")}return respon seContainer[0]};s.dataTypes[0]="json";window[callbackName]=function(){responseCo ntainer=arguments};jqXHR.always(function(){window[callbackName]=overwritten;if(s [callbackName]){s.jsonpCallback=originalSettings.jsonpCallback;oldCallbacks.push (callbackName)}if(responseContainer&&jQuery.isFunction(overwritten)){overwritten (responseContainer[0])}responseContainer=overwritten=undefined});return"script"} });jQuery.ajaxSetup({accepts:{script:"text/javascript, application/javascript, a pplication/ecmascript, application/x-ecmascript"},contents:{script:/javascript|e cmascript/},converters:{"text script":function(text){jQuery.globalEval(text);ret urn text}}});jQuery.ajaxPrefilter("script",function(s){if(s.cache===undefined){s .cache=false}if(s.crossDomain){s.type="GET";s.global=false}});jQuery.ajaxTranspo rt("script",function(s){if(s.crossDomain){var script,head=document.head||documen t.getElementsByTagName("head")[0]||document.documentElement;return{send:function (_,callback){script=document.createElement("script");script.async="async";if(s.s criptCharset){script.charset=s.scriptCharset}script.src=s.url;script.onload=scri pt.onreadystatechange=function(_,isAbort){if(isAbort||!script.readyState||/loade d|complete/.test(script.readyState)){script.onload=script.onreadystatechange=nul l;if(head&&script.parentNode){head.removeChild(script)}script=undefined;if(!isAb ort){callback(200,"success")}}};head.insertBefore(script,head.firstChild)},abort :function(){if(script){script.onload(0,1)}}}}});var xhrCallbacks,xhrOnUnloadAbor t=window.ActiveXObject?function(){for(var key in xhrCallbacks){xhrCallbacks[key] (0,1)}}:false,xhrId=0;function createStandardXHR(){try{return new window.XMLHttp Request}catch(e){}}function createActiveXHR(){try{return new window.ActiveXObjec t("Microsoft.XMLHTTP")}catch(e){}}jQuery.ajaxSettings.xhr=window.ActiveXObject?f unction(){return!this.isLocal&&createStandardXHR()||createActiveXHR()}:createSta ndardXHR;(function(xhr){jQuery.extend(jQuery.support,{ajax:!!xhr,cors:!!xhr&&"wi thCredentials"in xhr})})(jQuery.ajaxSettings.xhr());if(jQuery.support.ajax){jQue ry.ajaxTransport(function(s){if(!s.crossDomain||jQuery.support.cors){var callbac k;return{send:function(headers,complete){var handle,i,xhr=s.xhr();if(s.username) {xhr.open(s.type,s.url,s.async,s.username,s.password)}else{xhr.open(s.type,s.url ,s.async)}if(s.xhrFields){for(i in s.xhrFields){xhr[i]=s.xhrFields[i]}}if(s.mime Type&&xhr.overrideMimeType){xhr.overrideMimeType(s.mimeType)}if(!s.crossDomain&& !headers["X-Requested-With"]){headers["X-Requested-With"]="XMLHttpRequest"}try{f or(i in headers){xhr.setRequestHeader(i,headers[i])}}catch(_){}xhr.send(s.hasCon tent&&s.data||null);callback=function(_,isAbort){var status,statusText,responseH eaders,responses,xml;try{if(callback&&(isAbort||xhr.readyState===4)){callback=un defined;if(handle){xhr.onreadystatechange=jQuery.noop;if(xhrOnUnloadAbort){delet e xhrCallbacks[handle]}}if(isAbort){if(xhr.readyState!==4){xhr.abort()}}else{sta tus=xhr.status;responseHeaders=xhr.getAllResponseHeaders();responses={};xml=xhr. responseXML;if(xml&&xml.documentElement){responses.xml=xml}try{responses.text=xh r.responseText}catch(e){}try{statusText=xhr.statusText}catch(e){statusText=""}if (!status&&s.isLocal&&!s.crossDomain){status=responses.text?200:404}else if(statu s===1223){status=204}}}}catch(firefoxAccessException){if(!isAbort){complete(-1,f irefoxAccessException)}}if(responses){complete(status,statusText,responses,respo nseHeaders)}};if(!s.async){callback()}else if(xhr.readyState===4){setTimeout(cal lback,0)}else{handle=++xhrId;if(xhrOnUnloadAbort){if(!xhrCallbacks){xhrCallbacks ={};jQuery(window).unload(xhrOnUnloadAbort)}xhrCallbacks[handle]=callback}xhr.on readystatechange=callback}},abort:function(){if(callback){callback(0,1)}}}}})}va r fxNow,timerId,rfxtypes=/^(?:toggle|show|hide)$/,rfxnum=new RegExp("^(?:([-+])= |)("+core_pnum+")([a-z%]*)$","i"),rrun=/queueHooks$/,animationPrefilters=[defaul tPrefilter],tweeners={"*":[function(prop,value){var end,unit,tween=this.createTw een(prop,value),parts=rfxnum.exec(value),target=tween.cur(),start=+target||0,sca le=1,maxIterations=20;if(parts){end=+parts[2];unit=parts[3]||(jQuery.cssNumber[p rop]?"":"px");if(unit!=="px"&&start){start=jQuery.css(tween.elem,prop,true)||end ||1;do{scale=scale||".5";start=start/scale;jQuery.style(tween.elem,prop,start+un it)}while(scale!==(scale=tween.cur()/target)&&scale!==1&&--maxIterations)}tween. unit=unit;tween.start=start;tween.end=parts[1]?start+(parts[1]+1)*end:end}return tween}]};function createFxNow(){setTimeout(function(){fxNow=undefined},0);retur n fxNow=jQuery.now()}function createTweens(animation,props){jQuery.each(props,fu nction(prop,value){var collection=(tweeners[prop]||[]).concat(tweeners["*"]),ind ex=0,length=collection.length;for(;index<length;index++){if(collection[index].ca ll(animation,prop,value)){return}}})}function Animation(elem,properties,options) {var result,index=0,tweenerIndex=0,length=animationPrefilters.length,deferred=jQ uery.Deferred().always(function(){delete tick.elem}),tick=function(){var current Time=fxNow||createFxNow(),remaining=Math.max(0,animation.startTime+animation.dur ation-currentTime),temp=remaining/animation.duration||0,percent=1-temp,index=0,l ength=animation.tweens.length;
5 for(;index<length;index++){animation.tweens[index].run(percent)}deferred.notifyW ith(elem,[animation,percent,remaining]);if(percent<1&&length){return remaining}e lse{deferred.resolveWith(elem,[animation]);return false}},animation=deferred.pro mise({elem:elem,props:jQuery.extend({},properties),opts:jQuery.extend(true,{spec ialEasing:{}},options),originalProperties:properties,originalOptions:options,sta rtTime:fxNow||createFxNow(),duration:options.duration,tweens:[],createTween:func tion(prop,end,easing){var tween=jQuery.Tween(elem,animation.opts,prop,end,animat ion.opts.specialEasing[prop]||animation.opts.easing);animation.tweens.push(tween );return tween},stop:function(gotoEnd){var index=0,length=gotoEnd?animation.twee ns.length:0;for(;index<length;index++){animation.tweens[index].run(1)}if(gotoEnd ){deferred.resolveWith(elem,[animation,gotoEnd])}else{deferred.rejectWith(elem,[ animation,gotoEnd])}return this}}),props=animation.props;propFilter(props,animat ion.opts.specialEasing);for(;index<length;index++){result=animationPrefilters[in dex].call(animation,elem,props,animation.opts);if(result){return result}}createT weens(animation,props);if(jQuery.isFunction(animation.opts.start)){animation.opt s.start.call(elem,animation)}jQuery.fx.timer(jQuery.extend(tick,{anim:animation, queue:animation.opts.queue,elem:elem}));return animation.progress(animation.opts .progress).done(animation.opts.done,animation.opts.complete).fail(animation.opts .fail).always(animation.opts.always)}function propFilter(props,specialEasing){va r index,name,easing,value,hooks;for(index in props){name=jQuery.camelCase(index) ;easing=specialEasing[name];value=props[index];if(jQuery.isArray(value)){easing= value[1];value=props[index]=value[0]}if(index!==name){props[name]=value;delete p rops[index]}hooks=jQuery.cssHooks[name];if(hooks&&"expand"in hooks){value=hooks. expand(value);delete props[name];for(index in value){if(!(index in props)){props [index]=value[index];specialEasing[index]=easing}}}else{specialEasing[name]=easi ng}}}jQuery.Animation=jQuery.extend(Animation,{tweener:function(props,callback){ if(jQuery.isFunction(props)){callback=props;props=["*"]}else{props=props.split(" ")}var prop,index=0,length=props.length;for(;index<length;index++){prop=props[i ndex];tweeners[prop]=tweeners[prop]||[];tweeners[prop].unshift(callback)}},prefi lter:function(callback,prepend){if(prepend){animationPrefilters.unshift(callback )}else{animationPrefilters.push(callback)}}});function defaultPrefilter(elem,pro ps,opts){var index,prop,value,length,dataShow,toggle,tween,hooks,oldfire,anim=th is,style=elem.style,orig={},handled=[],hidden=elem.nodeType&&isHidden(elem);if(! opts.queue){hooks=jQuery._queueHooks(elem,"fx");if(hooks.unqueued==null){hooks.u nqueued=0;oldfire=hooks.empty.fire;hooks.empty.fire=function(){if(!hooks.unqueue d){oldfire()}}}hooks.unqueued++;anim.always(function(){anim.always(function(){ho oks.unqueued--;if(!jQuery.queue(elem,"fx").length){hooks.empty.fire()}})})}if(el em.nodeType===1&&("height"in props||"width"in props)){opts.overflow=[style.overf low,style.overflowX,style.overflowY];if(jQuery.css(elem,"display")==="inline"&&j Query.css(elem,"float")==="none"){if(!jQuery.support.inlineBlockNeedsLayout||css _defaultDisplay(elem.nodeName)==="inline"){style.display="inline-block"}else{sty le.zoom=1}}}if(opts.overflow){style.overflow="hidden";if(!jQuery.support.shrinkW rapBlocks){anim.done(function(){style.overflow=opts.overflow[0];style.overflowX= opts.overflow[1];style.overflowY=opts.overflow[2]})}}for(index in props){value=p rops[index];if(rfxtypes.exec(value)){delete props[index];toggle=toggle||value=== "toggle";if(value===(hidden?"hide":"show")){continue}handled.push(index)}}length =handled.length;if(length){dataShow=jQuery._data(elem,"fxshow")||jQuery._data(el em,"fxshow",{});if("hidden"in dataShow){hidden=dataShow.hidden}if(toggle){dataSh ow.hidden=!hidden}if(hidden){jQuery(elem).show()}else{anim.done(function(){jQuer y(elem).hide()})}anim.done(function(){var prop;jQuery.removeData(elem,"fxshow",t rue);for(prop in orig){jQuery.style(elem,prop,orig[prop])}});for(index=0;index<l ength;index++){prop=handled[index];tween=anim.createTween(prop,hidden?dataShow[p rop]:0);orig[prop]=dataShow[prop]||jQuery.style(elem,prop);if(!(prop in dataShow )){dataShow[prop]=tween.start;if(hidden){tween.end=tween.start;tween.start=prop= =="width"||prop==="height"?1:0}}}}}function Tween(elem,options,prop,end,easing){ return new Tween.prototype.init(elem,options,prop,end,easing)}jQuery.Tween=Tween ;Tween.prototype={constructor:Tween,init:function(elem,options,prop,end,easing,u nit){this.elem=elem;this.prop=prop;this.easing=easing||"swing";this.options=opti ons;this.start=this.now=this.cur();this.end=end;this.unit=unit||(jQuery.cssNumbe r[prop]?"":"px")},cur:function(){var hooks=Tween.propHooks[this.prop];return hoo ks&&hooks.get?hooks.get(this):Tween.propHooks._default.get(this)},run:function(p ercent){var eased,hooks=Tween.propHooks[this.prop];if(this.options.duration){thi s.pos=eased=jQuery.easing[this.easing](percent,this.options.duration*percent,0,1 ,this.options.duration)}else{this.pos=eased=percent}this.now=(this.end-this.star t)*eased+this.start;if(this.options.step){this.options.step.call(this.elem,this. now,this)}if(hooks&&hooks.set){hooks.set(this)}else{Tween.propHooks._default.set (this)}return this}};Tween.prototype.init.prototype=Tween.prototype;Tween.propHo oks={_default:{get:function(tween){var result;if(tween.elem[tween.prop]!=null&&( !tween.elem.style||tween.elem.style[tween.prop]==null)){return tween.elem[tween. prop]}result=jQuery.css(tween.elem,tween.prop,false,"");return!result||result=== "auto"?0:result},set:function(tween){if(jQuery.fx.step[tween.prop]){jQuery.fx.st ep[tween.prop](tween)}else if(tween.elem.style&&(tween.elem.style[jQuery.cssProp s[tween.prop]]!=null||jQuery.cssHooks[tween.prop])){jQuery.style(tween.elem,twee n.prop,tween.now+tween.unit)}else{tween.elem[tween.prop]=tween.now}}}};Tween.pro pHooks.scrollTop=Tween.propHooks.scrollLeft={set:function(tween){if(tween.elem.n odeType&&tween.elem.parentNode){tween.elem[tween.prop]=tween.now}}};jQuery.each( ["toggle","show","hide"],function(i,name){var cssFn=jQuery.fn[name];jQuery.fn[na me]=function(speed,easing,callback){return speed==null||typeof speed==="boolean" ||!i&&jQuery.isFunction(speed)&&jQuery.isFunction(easing)?cssFn.apply(this,argum ents):this.animate(genFx(name,true),speed,easing,callback)}});jQuery.fn.extend({ fadeTo:function(speed,to,easing,callback){return this.filter(isHidden).css("opac ity",0).show().end().animate({opacity:to},speed,easing,callback)},animate:functi on(prop,speed,easing,callback){var empty=jQuery.isEmptyObject(prop),optall=jQuer y.speed(speed,easing,callback),doAnimation=function(){var anim=Animation(this,jQ uery.extend({},prop),optall);if(empty){anim.stop(true)}};return empty||optall.qu eue===false?this.each(doAnimation):this.queue(optall.queue,doAnimation)},stop:fu nction(type,clearQueue,gotoEnd){var stopQueue=function(hooks){var stop=hooks.sto p;delete hooks.stop;stop(gotoEnd)};if(typeof type!=="string"){gotoEnd=clearQueue ;clearQueue=type;type=undefined}if(clearQueue&&type!==false){this.queue(type||"f x",[])}return this.each(function(){var dequeue=true,index=type!=null&&type+"queu eHooks",timers=jQuery.timers,data=jQuery._data(this);if(index){if(data[index]&&d ata[index].stop){stopQueue(data[index])}}else{for(index in data){if(data[index]& &data[index].stop&&rrun.test(index)){stopQueue(data[index])}}}for(index=timers.l ength;index--;){if(timers[index].elem===this&&(type==null||timers[index].queue== =type)){timers[index].anim.stop(gotoEnd);dequeue=false;timers.splice(index,1)}}i f(dequeue||!gotoEnd){jQuery.dequeue(this,type)}})}});function genFx(type,include Width){var which,attrs={height:type},i=0;includeWidth=includeWidth?1:0;for(;i<4; i+=2-includeWidth){which=cssExpand[i];attrs["margin"+which]=attrs["padding"+whic h]=type}if(includeWidth){attrs.opacity=attrs.width=type}return attrs}jQuery.each ({slideDown:genFx("show"),slideUp:genFx("hide"),slideToggle:genFx("toggle"),fade In:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},func tion(name,props){jQuery.fn[name]=function(speed,easing,callback){return this.ani mate(props,speed,easing,callback)}});jQuery.speed=function(speed,easing,fn){var opt=speed&&typeof speed==="object"?jQuery.extend({},speed):{complete:fn||!fn&&ea sing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&& !jQuery.isFunction(easing)&&easing};opt.duration=jQuery.fx.off?0:typeof opt.dura tion==="number"?opt.duration:opt.duration in jQuery.fx.speeds?jQuery.fx.speeds[o pt.duration]:jQuery.fx.speeds._default;if(opt.queue==null||opt.queue===true){opt .queue="fx"}opt.old=opt.complete;opt.complete=function(){if(jQuery.isFunction(op t.old)){opt.old.call(this)}if(opt.queue){jQuery.dequeue(this,opt.queue)}};return opt};jQuery.easing={linear:function(p){return p},swing:function(p){return.5-Mat h.cos(p*Math.PI)/2}};jQuery.timers=[];jQuery.fx=Tween.prototype.init;jQuery.fx.t ick=function(){var timer,timers=jQuery.timers,i=0;fxNow=jQuery.now();for(;i<time rs.length;i++){timer=timers[i];if(!timer()&&timers[i]===timer){timers.splice(i-- ,1)}}if(!timers.length){jQuery.fx.stop()}fxNow=undefined};jQuery.fx.timer=functi on(timer){if(timer()&&jQuery.timers.push(timer)&&!timerId){timerId=setInterval(j Query.fx.tick,jQuery.fx.interval)}};jQuery.fx.interval=13;jQuery.fx.stop=functio n(){clearInterval(timerId);timerId=null};jQuery.fx.speeds={slow:600,fast:200,_de fault:400};jQuery.fx.step={};if(jQuery.expr&&jQuery.expr.filters){jQuery.expr.fi lters.animated=function(elem){return jQuery.grep(jQuery.timers,function(fn){retu rn elem===fn.elem}).length}}var rroot=/^(?:body|html)$/i;jQuery.fn.offset=functi on(options){if(arguments.length){return options===undefined?this:this.each(funct ion(i){jQuery.offset.setOffset(this,options,i)})}var docElem,body,win,clientTop, clientLeft,scrollTop,scrollLeft,box={top:0,left:0},elem=this[0],doc=elem&&elem.o wnerDocument;if(!doc){return}if((body=doc.body)===elem){return jQuery.offset.bod yOffset(elem)}docElem=doc.documentElement;if(!jQuery.contains(docElem,elem)){ret urn box}if(typeof elem.getBoundingClientRect!=="undefined"){box=elem.getBounding ClientRect()}win=getWindow(doc);clientTop=docElem.clientTop||body.clientTop||0;c lientLeft=docElem.clientLeft||body.clientLeft||0;scrollTop=win.pageYOffset||docE lem.scrollTop;scrollLeft=win.pageXOffset||docElem.scrollLeft;return{top:box.top+ scrollTop-clientTop,left:box.left+scrollLeft-clientLeft}};jQuery.offset={bodyOff set:function(body){var top=body.offsetTop,left=body.offsetLeft;if(jQuery.support .doesNotIncludeMarginInBodyOffset){top+=parseFloat(jQuery.css(body,"marginTop")) ||0;left+=parseFloat(jQuery.css(body,"marginLeft"))||0}return{top:top,left:left} },setOffset:function(elem,options,i){var position=jQuery.css(elem,"position");if (position==="static"){elem.style.position="relative"}var curElem=jQuery(elem),cu rOffset=curElem.offset(),curCSSTop=jQuery.css(elem,"top"),curCSSLeft=jQuery.css( elem,"left"),calculatePosition=(position==="absolute"||position==="fixed")&&jQue ry.inArray("auto",[curCSSTop,curCSSLeft])>-1,props={},curPosition={},curTop,curL eft;if(calculatePosition){curPosition=curElem.position();curTop=curPosition.top; curLeft=curPosition.left}else{curTop=parseFloat(curCSSTop)||0;curLeft=parseFloat (curCSSLeft)||0}if(jQuery.isFunction(options)){options=options.call(elem,i,curOf fset)}if(options.top!=null){props.top=options.top-curOffset.top+curTop}if(option s.left!=null){props.left=options.left-curOffset.left+curLeft}if("using"in option s){options.using.call(elem,props)}else{curElem.css(props)}}};jQuery.fn.extend({p osition:function(){if(!this[0]){return}var elem=this[0],offsetParent=this.offset Parent(),offset=this.offset(),parentOffset=rroot.test(offsetParent[0].nodeName)? {top:0,left:0}:offsetParent.offset();offset.top-=parseFloat(jQuery.css(elem,"mar ginTop"))||0;offset.left-=parseFloat(jQuery.css(elem,"marginLeft"))||0;parentOff set.top+=parseFloat(jQuery.css(offsetParent[0],"borderTopWidth"))||0;parentOffse t.left+=parseFloat(jQuery.css(offsetParent[0],"borderLeftWidth"))||0;return{top: offset.top-parentOffset.top,left:offset.left-parentOffset.left}},offsetParent:fu nction(){return this.map(function(){var offsetParent=this.offsetParent||document .body;while(offsetParent&&(!rroot.test(offsetParent.nodeName)&&jQuery.css(offset Parent,"position")==="static")){offsetParent=offsetParent.offsetParent}return of fsetParent||document.body})}});jQuery.each({scrollLeft:"pageXOffset",scrollTop:" pageYOffset"},function(method,prop){var top=/Y/.test(prop);jQuery.fn[method]=fun ction(val){return jQuery.access(this,function(elem,method,val){var win=getWindow (elem);if(val===undefined){return win?prop in win?win[prop]:win.document.documen tElement[method]:elem[method]}if(win){win.scrollTo(!top?val:jQuery(win).scrollLe ft(),top?val:jQuery(win).scrollTop())}else{elem[method]=val}},method,val,argumen ts.length,null)}});function getWindow(elem){return jQuery.isWindow(elem)?elem:el em.nodeType===9?elem.defaultView||elem.parentWindow:false}jQuery.each({Height:"h eight",Width:"width"},function(name,type){jQuery.each({padding:"inner"+name,cont ent:type,"":"outer"+name},function(defaultExtra,funcName){jQuery.fn[funcName]=fu nction(margin,value){var chainable=arguments.length&&(defaultExtra||typeof margi n!=="boolean"),extra=defaultExtra||(margin===true||value===true?"margin":"border ");return jQuery.access(this,function(elem,type,value){var doc;if(jQuery.isWindo w(elem)){return elem.document.documentElement["client"+name]}if(elem.nodeType=== 9){doc=elem.documentElement;return Math.max(elem.body["scroll"+name],doc["scroll "+name],elem.body["offset"+name],doc["offset"+name],doc["client"+name])}return v alue===undefined?jQuery.css(elem,type,value,extra):jQuery.style(elem,type,value, extra)},type,chainable?margin:undefined,chainable,null)}})});window.jQuery=windo w.$=jQuery;if(typeof define==="function"&&define.amd&&define.amd.jQuery){define( "jquery",[],function(){return jQuery})}})(window);
OLDNEW
« no previous file with comments | « third_party/flot/jquery.flot.time.min.js ('k') | third_party/jquery/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698