").append(b.parsehtml(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responsetext,t,e])}),this},b.each(["ajaxstart","ajaxstop","ajaxcomplete","ajaxerror","ajaxsuccess","ajaxsend"],function(e,t){b.fn[t]=function(e){return this.on(t,e)}}),b.each(["get","post"],function(e,n){b[n]=function(e,r,i,o){return b.isfunction(r)&&(o=o||i,i=r,r=t),b.ajax({url:e,type:n,datatype:o,data:r,success:i})}}),b.extend({active:0,lastmodified:{},etag:{},ajaxsettings:{url:yn,type:"get",islocal:nn.test(mn[1]),global:!0,processdata:!0,async:!0,contenttype:"application/x-www-form-urlencoded; charset=utf-8",accepts:{"*":dn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responsefields:{xml:"responsexml",text:"responsetext"},converters:{"* text":e.string,"text html":!0,"text json":b.parsejson,"text xml":b.parsexml},flatoptions:{url:!0,context:!0}},ajaxsetup:function(e,t){return t?mn(mn(e,b.ajaxsettings),t):mn(b.ajaxsettings,e)},ajaxprefilter:hn(an),ajaxtransport:hn(jn),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,a,s,u,l,c,p=b.ajaxsetup({},n),f=p.context||p,d=p.context&&(f.nodetype||f.jquery)?b(f):b.event,h=b.deferred(),g=b.callbacks("once memory"),m=p.statuscode||{},y={},v={},x=0,t="canceled",n={readystate:0,getresponseheader:function(e){var t;if(2===x){if(!c){c={};while(t=tn.exec(a))c[t[1].tolowercase()]=t[2]}t=c[e.tolowercase()]}return null==t?null:t},getallresponseheaders:function(){return 2===x?a:null},setrequestheader:function(e,t){var n=e.tolowercase();return x||(e=v[n]=v[n]||e,y[e]=t),this},overridemimetype:function(e){return x||(p.mimetype=e),this},statuscode:function(e){var t;if(e)if(2>x)for(t in e)m[t]=[m[t],e[t]];else n.always(e[n.status]);return this},abort:function(e){var t=e||t;return l&&l.abort(t),k(0,t),this}};if(h.promise(n).complete=g.add,n.success=n.done,n.error=n.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.datatypes=b.trim(p.datatype||"*").tolowercase().match(w)||[""],null==p.crossdomain&&(r=en.exec(p.url.tolowercase()),p.crossdomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?80:443))==(mn[3]||("http:"===mn[1]?80:443)))),p.data&&p.processdata&&"string"!=typeof p.data&&(p.data=b.param(p.data,p.traditional)),qn(an,p,n,n),2===x)return n;u=p.global,u&&0===b.active++&&b.event.trigger("ajaxstart"),p.type=p.type.touppercase(),p.hascontent=!cn.test(p.type),o=p.url,p.hascontent||(p.data&&(o=p.url+=(bn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(bn.test(o)?"&":"?")+"_="+vn++)),p.ifmodified&&(b.lastmodified[o]&&n.setrequestheader("if-modified-since",b.lastmodified[o]),b.etag[o]&&n.setrequestheader("if-none-match",b.etag[o])),(p.data&&p.hascontent&&p.contenttype!==!1||n.contenttype)&&n.setrequestheader("content-type",p.contenttype),n.setrequestheader("accept",p.datatypes[0]&&p.accepts[p.datatypes[0]]?p.accepts[p.datatypes[0]]+("*"!==p.datatypes[0]?", "+dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers)n.setrequestheader(i,p.headers[i]);if(p.beforesend&&(p.beforesend.call(f,n,p)===!1||2===x))return n.abort();t="abort";for(i in{success:1,error:1,complete:1})n[i](p[i]);if(l=qn(jn,p,n,n)){n.readystate=1,u&&d.trigger("ajaxsend",[n,p]),p.async&&p.timeout>0&&(s=settimeout(function(){n.abort("timeout")},p.timeout));try{x=1,l.send(y,k)}catch(c){if(!(2>x))throw c;k(-1,c)}}else k(-1,"no transport");function k(e,n,r,i){var c,y,v,w,t,c=n;2!==x&&(x=2,s&&cleartimeout(s),l=t,a=i||"",n.readystate=e>0?4:0,r&&(w=_n(p,n,r)),e>=200&&300>e||304===e?(p.ifmodified&&(t=n.getresponseheader("last-modified"),t&&(b.lastmodified[o]=t),t=n.getresponseheader("etag"),t&&(b.etag[o]=t)),204===e?(c=!0,c="nocontent"):304===e?(c=!0,c="notmodified"):(c=fn(p,w),c=c.state,y=c.data,v=c.error,c=!v)):(v=c,(e||!c)&&(c="error",0>e&&(e=0))),n.status=e,n.statustext=(n||c)+"",c?h.resolvewith(f,[y,c,n]):h.rejectwith(f,[n,c,v]),n.statuscode(m),m=t,u&&d.trigger(c?"ajaxsuccess":"ajaxerror",[n,p,c?y:v]),g.firewith(f,[n,c]),u&&(d.trigger("ajaxcomplete",[n,p]),--b.active||b.event.trigger("ajaxstop")))}return n},getscript:function(e,n){return b.get(e,t,n,"script")},getjson:function(e,t,n){return b.get(e,t,n,"json")}});function _n(e,n,r){var i,o,a,s,u=e.contents,l=e.datatypes,c=e.responsefields;for(s in c)s in r&&(n[c[s]]=r[s]);while("*"===l[0])l.shift(),o===t&&(o=e.mimetype||n.getresponseheader("content-type"));if(o)for(s in u)if(u[s]&&u[s].test(o)){l.unshift(s);break}if(l[0]in r)a=l[0];else{for(s in r){if(!l[0]||e.converters[s+" "+l[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==l[0]&&l.unshift(a),r[a]):t}function fn(e,t){var n,r,i,o,a={},s=0,u=e.datatypes.slice(),l=u[0];if(e.datafilter&&(t=e.datafilter(t,e.datatype)),u[1])for(i in e.converters)a[i.tolowercase()]=e.converters[i];for(;r=u[++s];)if("*"!==r){if("*"!==l&&l!==r){if(i=a[l+" "+r]||a["* "+r],!i)for(n in a)if(o=n.split(" "),o[1]===r&&(i=a[l+" "+o[0]]||a["* "+o[0]])){i===!0?i=a[n]:a[n]!==!0&&(r=o[0],u.splice(s--,0,r));break}if(i!==!0)if(i&&e["throws"])t=i(t);else try{t=i(t)}catch(c){return{state:"parsererror",error:i?c:"no conversion from "+l+" to "+r}}}l=r}return{state:"success",data:t}}b.ajaxsetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return b.globaleval(e),e}}}),b.ajaxprefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossdomain&&(e.type="get",e.global=!1)}),b.ajaxtransport("script",function(e){if(e.crossdomain){var n,r=o.head||b("head")[0]||o.documentelement;return{send:function(t,i){n=o.createelement("script"),n.async=!0,e.scriptcharset&&(n.charset=e.scriptcharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readystate||/loaded|complete/.test(n.readystate))&&(n.onload=n.onreadystatechange=null,n.parentnode&&n.parentnode.removechild(n),n=null,t||i(200,"success"))},r.insertbefore(n,r.firstchild)},abort:function(){n&&n.onload(t,!0)}}}});var on=[],bn=/(=)\?(?=&|$)|\?\?/;b.ajaxsetup({jsonp:"callback",jsonpcallback:function(){var e=on.pop()||b.expando+"_"+vn++;return this[e]=!0,e}}),b.ajaxprefilter("json jsonp",function(n,r,i){var o,a,s,u=n.jsonp!==!1&&(bn.test(n.url)?"url":"string"==typeof n.data&&!(n.contenttype||"").indexof("application/x-www-form-urlencoded")&&bn.test(n.data)&&"data");return u||"jsonp"===n.datatypes[0]?(o=n.jsonpcallback=b.isfunction(n.jsonpcallback)?n.jsonpcallback():n.jsonpcallback,u?n[u]=n[u].replace(bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||b.error(o+" was not called"),s[0]},n.datatypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpcallback=r.jsonpcallback,on.push(o)),s&&b.isfunction(a)&&a(s[0]),s=a=t}),"script"):t});var pn,rn,wn=0,$n=e.activexobject&&function(){var e;for(e in pn)pn[e](t,!0)};function in(){try{return new e.xmlhttprequest}catch(t){}}function zn(){try{return new e.activexobject("microsoft.xmlhttp")}catch(t){}}b.ajaxsettings.xhr=e.activexobject?function(){return!this.islocal&&in()||zn()}:in,rn=b.ajaxsettings.xhr(),b.support.cors=!!rn&&"withcredentials"in rn,rn=b.support.ajax=!!rn,rn&&b.ajaxtransport(function(n){if(!n.crossdomain||b.support.cors){var r;return{send:function(i,o){var a,s,u=n.xhr();if(n.username?u.open(n.type,n.url,n.async,n.username,n.password):u.open(n.type,n.url,n.async),n.xhrfields)for(s in n.xhrfields)u[s]=n.xhrfields[s];n.mimetype&&u.overridemimetype&&u.overridemimetype(n.mimetype),n.crossdomain||i["x-requested-with"]||(i["x-requested-with"]="xmlhttprequest");try{for(s in i)u.setrequestheader(s,i[s])}catch(l){}u.send(n.hascontent&&n.data||null),r=function(e,i){var s,l,c,p;try{if(r&&(i||4===u.readystate))if(r=t,a&&(u.onreadystatechange=b.noop,$n&&delete pn[a]),i)4!==u.readystate&&u.abort();else{p={},s=u.status,l=u.getallresponseheaders(),"string"==typeof u.responsetext&&(p.text=u.responsetext);try{c=u.statustext}catch(f){c=""}s||!n.islocal||n.crossdomain?1223===s&&(s=204):s=p.text?200:404}}catch(d){i||o(-1,d)}p&&o(s,c,p,l)},n.async?4===u.readystate?settimeout(r):(a=++wn,$n&&(pn||(pn={},b(e).unload($n)),pn[a]=r),u.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var xn,un,vn=/^(?:toggle|show|hide)$/,yn=regexp("^(?:([+-])=|)("+x+")([a-z%]*)$","i"),jn=/queuehooks$/,gn=[nr],qn={"*":[function(e,t){var n,r,i=this.createtween(e,t),o=yn.exec(t),a=i.cur(),s=+a||0,u=1,l=20;if(o){if(n=+o[2],r=o[3]||(b.cssnumber[e]?"":"px"),"px"!==r&&s){s=b.css(i.elem,e,!0)||n||1;do u=u||".5",s/=u,b.style(i.elem,e,s+r);while(u!==(u=i.cur()/a)&&1!==u&&--l)}i.unit=r,i.start=s,i.end=o[1]?s+(o[1]+1)*n:n}return i}]};function kn(){return settimeout(function(){xn=t}),xn=b.now()}function zn(e,t){b.each(t,function(t,n){var r=(qn[t]||[]).concat(qn["*"]),i=0,o=r.length;for(;o>i;i++)if(r[i].call(e,t,n))return})}function er(e,t,n){var r,i,o=0,a=gn.length,s=b.deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;var t=xn||kn(),n=math.max(0,l.starttime+l.duration-t),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;for(;u>a;a++)l.tweens[a].run(o);return s.notifywith(e,[l,o,n]),1>o&&u?n:(s.resolvewith(e,[l]),!1)},l=s.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialeasing:{}},n),originalproperties:t,originaloptions:n,starttime:xn||kn(),duration:n.duration,tweens:[],createtween:function(t,n){var r=b.tween(e,l.opts,t,n,l.opts.specialeasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)l.tweens[n].run(1);return t?s.resolvewith(e,[l,t]):s.rejectwith(e,[l,t]),this}}),c=l.props;for(tr(c,l.opts.specialeasing);a>o;o++)if(r=gn[o].call(l,e,c,l.opts))return r;return zn(l,c),b.isfunction(l.opts.start)&&l.opts.start.call(e,l),b.fx.timer(b.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function tr(e,t){var n,r,i,o,a;for(i in e)if(r=b.camelcase(i),o=t[r],n=e[i],b.isarray(n)&&(o=n[1],n=e[i]=n[0]),i!==r&&(e[r]=n,delete e[i]),a=b.csshooks[r],a&&"expand"in a){n=a.expand(n),delete e[r];for(i in n)i in e||(e[i]=n[i],t[i]=o)}else t[r]=o}b.animation=b.extend(er,{tweener:function(e,t){b.isfunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],qn[n]=qn[n]||[],qn[n].unshift(t)},prefilter:function(e,t){t?gn.unshift(e):gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,u,l,c,p,f=this,d=e.style,h={},g=[],m=e.nodetype&&nn(e);n.queue||(c=b._queuehooks(e,"fx"),null==c.unqueued&&(c.unqueued=0,p=c.empty.fire,c.empty.fire=function(){c.unqueued||p()}),c.unqueued++,f.always(function(){f.always(function(){c.unqueued--,b.queue(e,"fx").length||c.empty.fire()})})),1===e.nodetype&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowx,d.overflowy],"inline"===b.css(e,"display")&&"none"===b.css(e,"float")&&(b.support.inlineblockneedslayout&&"inline"!==un(e.nodename)?d.zoom=1:d.display="inline-block")),n.overflow&&(d.overflow="hidden",b.support.shrinkwrapblocks||f.always(function(){d.overflow=n.overflow[0],d.overflowx=n.overflow[1],d.overflowy=n.overflow[2]}));for(i in t)if(a=t[i],vn.exec(a)){if(delete t[i],u=u||"toggle"===a,a===(m?"hide":"show"))continue;g.push(i)}if(o=g.length){s=b._data(e,"fxshow")||b._data(e,"fxshow",{}),"hidden"in s&&(m=s.hidden),u&&(s.hidden=!m),m?b(e).show():f.done(function(){b(e).hide()}),f.done(function(){var t;b._removedata(e,"fxshow");for(t in h)b.style(e,t,h[t])});for(i=0;o>i;i++)r=g[i],l=f.createtween(r,m?s[r]:0),h[r]=s[r]||b.style(e,r),r in s||(s[r]=l.start,m&&(l.end=l.start,l.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}b.tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(b.cssnumber[n]?"":"px")},cur:function(){var e=rr.prophooks[this.prop];return e&&e.get?e.get(this):rr.prophooks._default.get(this)},run:function(e){var t,n=rr.prophooks[this.prop];return this.pos=t=this.options.duration?b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rr.prophooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.prophooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=b.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[b.cssprops[e.prop]]||b.csshooks[e.prop])?b.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.prophooks.scrolltop=rr.prophooks.scrollleft={set:function(e){e.elem.nodetype&&e.elem.parentnode&&(e.elem[e.prop]=e.now)}},b.each(["toggle","show","hide"],function(e,t){var n=b.fn[t];b.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),b.fn.extend({fadeto:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=b.isemptyobject(e),o=b.speed(t,n,r),a=function(){var t=er(this,b.extend({},e),o);a.finish=function(){t.stop(!0)},(i||b._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queuehooks",o=b.timers,a=b._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&jn.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&b.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=b._data(this),r=n[e+"queue"],i=n[e+"queuehooks"],o=b.timers,a=r?r.length:0;for(n.finish=!0,b.queue(this,e,[]),i&&i.cur&&i.cur.finish&&i.cur.finish.call(this),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=zt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}b.each({slidedown:ir("show"),slideup:ir("hide"),slidetoggle:ir("toggle"),fadein:{opacity:"show"},fadeout:{opacity:"hide"},fadetoggle:{opacity:"toggle"}},function(e,t){b.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),b.speed=function(e,t,n){var r=e&&"object"==typeof e?b.extend({},e):{complete:n||!n&&t||b.isfunction(e)&&e,duration:e,easing:n&&t||t&&!b.isfunction(t)&&t};return r.duration=b.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in b.fx.speeds?b.fx.speeds[r.duration]:b.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){b.isfunction(r.old)&&r.old.call(this),r.queue&&b.dequeue(this,r.queue)},r},b.easing={linear:function(e){return e},swing:function(e){return.5-math.cos(e*math.pi)/2}},b.timers=[],b.fx=rr.prototype.init,b.fx.tick=function(){var e,n=b.timers,r=0;for(xn=b.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||b.fx.stop(),xn=t},b.fx.timer=function(e){e()&&b.timers.push(e)&&b.fx.start()},b.fx.interval=13,b.fx.start=function(){un||(un=setinterval(b.fx.tick,b.fx.interval))},b.fx.stop=function(){clearinterval(un),un=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fx.step={},b.expr&&b.expr.filters&&(b.expr.filters.animated=function(e){return b.grep(b.timers,function(t){return e===t.elem}).length}),b.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){b.offset.setoffset(this,e,t)});var n,r,o={top:0,left:0},a=this[0],s=a&&a.ownerdocument;if(s)return n=s.documentelement,b.contains(n,a)?(typeof a.getboundingclientrect!==i&&(o=a.getboundingclientrect()),r=or(s),{top:o.top+(r.pageyoffset||n.scrolltop)-(n.clienttop||0),left:o.left+(r.pagexoffset||n.scrollleft)-(n.clientleft||0)}):o},b.offset={setoffset:function(e,t,n){var r=b.css(e,"position");"static"===r&&(e.style.position="relative");var i=b(e),o=i.offset(),a=b.css(e,"top"),s=b.css(e,"left"),u=("absolute"===r||"fixed"===r)&&b.inarray("auto",[a,s])>-1,l={},c={},p,f;u?(c=i.position(),p=c.top,f=c.left):(p=parsefloat(a)||0,f=parsefloat(s)||0),b.isfunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(l.top=t.top-o.top+p),null!=t.left&&(l.left=t.left-o.left+f),"using"in t?t.using.call(e,l):i.css(l)}},b.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===b.css(r,"position")?t=r.getboundingclientrect():(e=this.offsetparent(),t=this.offset(),b.nodename(e[0],"html")||(n=e.offset()),n.top+=b.css(e[0],"bordertopwidth",!0),n.left+=b.css(e[0],"borderleftwidth",!0)),{top:t.top-n.top-b.css(r,"margintop",!0),left:t.left-n.left-b.css(r,"marginleft",!0)}}},offsetparent:function(){return this.map(function(){var e=this.offsetparent||o.documentelement;while(e&&!b.nodename(e,"html")&&"static"===b.css(e,"position"))e=e.offsetparent;return e||o.documentelement})}}),b.each({scrollleft:"pagexoffset",scrolltop:"pageyoffset"},function(e,n){var r=/y/.test(n);b.fn[e]=function(i){return b.access(this,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentelement[i]:e[i]:(a?a.scrollto(r?b(a).scrollleft():o,r?o:b(a).scrolltop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return b.iswindow(e)?e:9===e.nodetype?e.defaultview||e.parentwindow:!1}b.each({height:"height",width:"width"},function(e,n){b.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){b.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return b.access(this,function(n,r,i){var o;return b.iswindow(n)?n.document.documentelement["client"+e]:9===n.nodetype?(o=n.documentelement,math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?b.css(n,r,s):b.style(n,r,i,s)},n,a?i:t,a,null)}})}),e.jquery=e.$=b,"function"==typeof define&&define.amd&&define.amd.jquery&&define("jquery",[],function(){return b})})(window);
/*! jquery ui - v1.9.1 - 2012-10-25
* http://jqueryui.com
* includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js
* copyright 2012 jquery foundation and other contributors; licensed mit */
(function(e,t){function i(t,n){var r,i,o,u=t.nodename.tolowercase();return"area"===u?(r=t.parentnode,i=r.name,!t.href||!i||r.nodename.tolowercase()!=="map"?!1:(o=e("img[usemap=#"+i+"]")[0],!!o&&s(o))):(/input|select|textarea|button|object/.test(u)?!t.disabled:"a"===u?t.href||n:n)&&s(t)}function s(t){return e.expr.filters.visible(t)&&!e(t).parents().andself().filter(function(){return e.css(this,"visibility")==="hidden"}).length}var n=0,r=/^ui-id-\d+$/;e.ui=e.ui||{};if(e.ui.version)return;e.extend(e.ui,{version:"1.9.1",keycode:{backspace:8,comma:188,delete:46,down:40,end:35,enter:13,escape:27,home:36,left:37,numpad_add:107,numpad_decimal:110,numpad_divide:111,numpad_enter:108,numpad_multiply:106,numpad_subtract:109,page_down:34,page_up:33,period:190,right:39,space:32,tab:9,up:38}}),e.fn.extend({_focus:e.fn.focus,focus:function(t,n){return typeof t=="number"?this.each(function(){var r=this;settimeout(function(){e(r).focus(),n&&n.call(r)},t)}):this._focus.apply(this,arguments)},scrollparent:function(){var t;return e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?t=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0):t=this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zindex:function(n){if(n!==t)return this.css("zindex",n);if(this.length){var r=e(this[0]),i,s;while(r.length&&r[0]!==document){i=r.css("position");if(i==="absolute"||i==="relative"||i==="fixed"){s=parseint(r.css("zindex"),10);if(!isnan(s)&&s!==0)return s}r=r.parent()}}return 0},uniqueid:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})},removeuniqueid:function(){return this.each(function(){r.test(this.id)&&e(this).removeattr("id")})}}),e("
").outerwidth(1).jquery||e.each(["width","height"],function(n,r){function u(t,n,r,s){return e.each(i,function(){n-=parsefloat(e.css(t,"padding"+this))||0,r&&(n-=parsefloat(e.css(t,"border"+this+"width"))||0),s&&(n-=parsefloat(e.css(t,"margin"+this))||0)}),n}var i=r==="width"?["left","right"]:["top","bottom"],s=r.tolowercase(),o={innerwidth:e.fn.innerwidth,innerheight:e.fn.innerheight,outerwidth:e.fn.outerwidth,outerheight:e.fn.outerheight};e.fn["inner"+r]=function(n){return n===t?o["inner"+r].call(this):this.each(function(){e(this).css(s,u(this,n)+"px")})},e.fn["outer"+r]=function(t,n){return typeof t!="number"?o["outer"+r].call(this,t):this.each(function(){e(this).css(s,u(this,t,!0,n)+"px")})}}),e.extend(e.expr[":"],{data:e.expr.createpseudo?e.expr.createpseudo(function(t){return function(n){return!!e.data(n,t)}}):function(t,n,r){return!!e.data(t,r[3])},focusable:function(t){return i(t,!isnan(e.attr(t,"tabindex")))},tabbable:function(t){var n=e.attr(t,"tabindex"),r=isnan(n);return(r||n>=0)&&i(t,!r)}}),e(function(){var t=document.body,n=t.appendchild(n=document.createelement("div"));n.offsetheight,e.extend(n.style,{minheight:"100px",height:"auto",padding:0,borderwidth:0}),e.support.minheight=n.offsetheight===100,e.support.selectstart="onselectstart"in n,t.removechild(n).style.display="none"}),function(){var t=/msie ([\w.]+)/.exec(navigator.useragent.tolowercase())||[];e.ui.ie=t.length?!0:!1,e.ui.ie6=parsefloat(t[1],10)===6}(),e.fn.extend({disableselection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableselection",function(e){e.preventdefault()})},enableselection:function(){return this.unbind(".ui-disableselection")}}),e.extend(e.ui,{plugin:{add:function(t,n,r){var i,s=e.ui[t].prototype;for(i in r)s.plugins[i]=s.plugins[i]||[],s.plugins[i].push([n,r[i]])},call:function(e,t,n){var r,i=e.plugins[t];if(!i||!e.element[0].parentnode||e.element[0].parentnode.nodetype===11)return;for(r=0;r0?!0:(t[r]=1,i=t[r]>0,t[r]=0,i)},isoveraxis:function(e,t,n){return e>t&&e",options:{disabled:!1,create:null},_createwidget:function(t,r){r=e(r||this.defaultelement||this)[0],this.element=e(r),this.uuid=n++,this.eventnamespace="."+this.widgetname+this.uuid,this.options=e.widget.extend({},this.options,this._getcreateoptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),r!==this&&(e.data(r,this.widgetname,this),e.data(r,this.widgetfullname,this),this._on(this.element,{remove:function(e){e.target===r&&this.destroy()}}),this.document=e(r.style?r.ownerdocument:r.document||r),this.window=e(this.document[0].defaultview||this.document[0].parentwindow)),this._create(),this._trigger("create",null,this._getcreateeventdata()),this._init()},_getcreateoptions:e.noop,_getcreateeventdata:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventnamespace).removedata(this.widgetname).removedata(this.widgetfullname).removedata(e.camelcase(this.widgetfullname)),this.widget().unbind(this.eventnamespace).removeattr("aria-disabled").removeclass(this.widgetfullname+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventnamespace),this.hoverable.removeclass("ui-state-hover"),this.focusable.removeclass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(n,r){var i=n,s,o,u;if(arguments.length===0)return e.widget.extend({},this.options);if(typeof n=="string"){i={},s=n.split("."),n=s.shift();if(s.length){o=i[n]=e.widget.extend({},this.options[n]);for(u=0;u=9||!!t.button?this._mousestarted?(this._mousedrag(t),t.preventdefault()):(this._mousedistancemet(t)&&this._mousedelaymet(t)&&(this._mousestarted=this._mousestart(this._mousedownevent,t)!==!1,this._mousestarted?this._mousedrag(t):this._mouseup(t)),!this._mousestarted):this._mouseup(t)},_mouseup:function(t){return e(document).unbind("mousemove."+this.widgetname,this._mousemovedelegate).unbind("mouseup."+this.widgetname,this._mouseupdelegate),this._mousestarted&&(this._mousestarted=!1,t.target===this._mousedownevent.target&&e.data(t.target,this.widgetname+".preventclickevent",!0),this._mousestop(t)),!1},_mousedistancemet:function(e){return math.max(math.abs(this._mousedownevent.pagex-e.pagex),math.abs(this._mousedownevent.pagey-e.pagey))>=this.options.distance},_mousedelaymet:function(e){return this.mousedelaymet},_mousestart:function(e){},_mousedrag:function(e){},_mousestop:function(e){},_mousecapture:function(e){return!0}})}(jquery),function(e,t){e.widget("ui.draggable",e.ui.mouse,{version:"1.9.1",widgeteventprefix:"drag",options:{addclasses:!0,appendto:"parent",axis:!1,connecttosortable:!1,containment:!1,cursor:"auto",cursorat:!1,grid:!1,handle:!1,helper:"original",iframefix:!1,opacity:!1,refreshpositions:!1,revert:!1,revertduration:500,scope:"default",scroll:!0,scrollsensitivity:20,scrollspeed:20,snap:!1,snapmode:"both",snaptolerance:20,stack:!1,zindex:!1},_create:function(){this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position"))&&(this.element[0].style.position="relative"),this.options.addclasses&&this.element.addclass("ui-draggable"),this.options.disabled&&this.element.addclass("ui-draggable-disabled"),this._mouseinit()},_destroy:function(){this.element.removeclass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mousedestroy()},_mousecapture:function(t){var n=this.options;return this.helper||n.disabled||e(t.target).is(".ui-resizable-handle")?!1:(this.handle=this._gethandle(t),this.handle?(e(n.iframefix===!0?"iframe":n.iframefix).each(function(){e('').css({width:this.offsetwidth+"px",height:this.offsetheight+"px",position:"absolute",opacity:"0.001",zindex:1e3}).css(e(this).offset()).appendto("body")}),!0):!1)},_mousestart:function(t){var n=this.options;return this.helper=this._createhelper(t),this.helper.addclass("ui-draggable-dragging"),this._cachehelperproportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cachemargins(),this.cssposition=this.helper.css("position"),this.scrollparent=this.helper.scrollparent(),this.offset=this.positionabs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pagex-this.offset.left,top:t.pagey-this.offset.top},parent:this._getparentoffset(),relative:this._getrelativeoffset()}),this.originalposition=this.position=this._generateposition(t),this.originalpagex=t.pagex,this.originalpagey=t.pagey,n.cursorat&&this._adjustoffsetfromhelper(n.cursorat),n.containment&&this._setcontainment(),this._trigger("start",t)===!1?(this._clear(),!1):(this._cachehelperproportions(),e.ui.ddmanager&&!n.dropbehaviour&&e.ui.ddmanager.prepareoffsets(this,t),this._mousedrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragstart(this,t),!0)},_mousedrag:function(t,n){this.position=this._generateposition(t),this.positionabs=this._convertpositionto("absolute");if(!n){var r=this._uihash();if(this._trigger("drag",t,r)===!1)return this._mouseup({}),!1;this.position=r.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";return e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mousestop:function(t){var n=!1;e.ui.ddmanager&&!this.options.dropbehaviour&&(n=e.ui.ddmanager.drop(this,t)),this.dropped&&(n=this.dropped,this.dropped=!1);var r=this.element[0],i=!1;while(r&&(r=r.parentnode))r==document&&(i=!0);if(!i&&this.options.helper==="original")return!1;if(this.options.revert=="invalid"&&!n||this.options.revert=="valid"&&n||this.options.revert===!0||e.isfunction(this.options.revert)&&this.options.revert.call(this.element,n)){var s=this;e(this.helper).animate(this.originalposition,parseint(this.options.revertduration,10),function(){s._trigger("stop",t)!==!1&&s._clear()})}else this._trigger("stop",t)!==!1&&this._clear();return!1},_mouseup:function(t){return e("div.ui-draggable-iframefix").each(function(){this.parentnode.removechild(this)}),e.ui.ddmanager&&e.ui.ddmanager.dragstop(this,t),e.ui.mouse.prototype._mouseup.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseup({}):this._clear(),this},_gethandle:function(t){var n=!this.options.handle||!e(this.options.handle,this.element).length?!0:!1;return e(this.options.handle,this.element).find("*").andself().each(function(){this==t.target&&(n=!0)}),n},_createhelper:function(t){var n=this.options,r=e.isfunction(n.helper)?e(n.helper.apply(this.element[0],[t])):n.helper=="clone"?this.element.clone().removeattr("id"):this.element;return r.parents("body").length||r.appendto(n.appendto=="parent"?this.element[0].parentnode:n.appendto),r[0]!=this.element[0]&&!/(fixed|absolute)/.test(r.css("position"))&&r.css("position","absolute"),r},_adjustoffsetfromhelper:function(t){typeof t=="string"&&(t=t.split(" ")),e.isarray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperproportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperproportions.height-t.bottom+this.margins.top)},_getparentoffset:function(){this.offsetparent=this.helper.offsetparent();var t=this.offsetparent.offset();this.cssposition=="absolute"&&this.scrollparent[0]!=document&&e.contains(this.scrollparent[0],this.offsetparent[0])&&(t.left+=this.scrollparent.scrollleft(),t.top+=this.scrollparent.scrolltop());if(this.offsetparent[0]==document.body||this.offsetparent[0].tagname&&this.offsetparent[0].tagname.tolowercase()=="html"&&e.ui.ie)t={top:0,left:0};return{top:t.top+(parseint(this.offsetparent.css("bordertopwidth"),10)||0),left:t.left+(parseint(this.offsetparent.css("borderleftwidth"),10)||0)}},_getrelativeoffset:function(){if(this.cssposition=="relative"){var e=this.element.position();return{top:e.top-(parseint(this.helper.css("top"),10)||0)+this.scrollparent.scrolltop(),left:e.left-(parseint(this.helper.css("left"),10)||0)+this.scrollparent.scrollleft()}}return{top:0,left:0}},_cachemargins:function(){this.margins={left:parseint(this.element.css("marginleft"),10)||0,top:parseint(this.element.css("margintop"),10)||0,right:parseint(this.element.css("marginright"),10)||0,bottom:parseint(this.element.css("marginbottom"),10)||0}},_cachehelperproportions:function(){this.helperproportions={width:this.helper.outerwidth(),height:this.helper.outerheight()}},_setcontainment:function(){var t=this.options;t.containment=="parent"&&(t.containment=this.helper[0].parentnode);if(t.containment=="document"||t.containment=="window")this.containment=[t.containment=="document"?0:e(window).scrollleft()-this.offset.relative.left-this.offset.parent.left,t.containment=="document"?0:e(window).scrolltop()-this.offset.relative.top-this.offset.parent.top,(t.containment=="document"?0:e(window).scrollleft())+e(t.containment=="document"?document:window).width()-this.helperproportions.width-this.margins.left,(t.containment=="document"?0:e(window).scrolltop())+(e(t.containment=="document"?document:window).height()||document.body.parentnode.scrollheight)-this.helperproportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(t.containment)&&t.containment.constructor!=array){var n=e(t.containment),r=n[0];if(!r)return;var i=n.offset(),s=e(r).css("overflow")!="hidden";this.containment=[(parseint(e(r).css("borderleftwidth"),10)||0)+(parseint(e(r).css("paddingleft"),10)||0),(parseint(e(r).css("bordertopwidth"),10)||0)+(parseint(e(r).css("paddingtop"),10)||0),(s?math.max(r.scrollwidth,r.offsetwidth):r.offsetwidth)-(parseint(e(r).css("borderleftwidth"),10)||0)-(parseint(e(r).css("paddingright"),10)||0)-this.helperproportions.width-this.margins.left-this.margins.right,(s?math.max(r.scrollheight,r.offsetheight):r.offsetheight)-(parseint(e(r).css("bordertopwidth"),10)||0)-(parseint(e(r).css("paddingbottom"),10)||0)-this.helperproportions.height-this.margins.top-this.margins.bottom],this.relative_container=n}else t.containment.constructor==array&&(this.containment=t.containment)},_convertpositionto:function(t,n){n||(n=this.position);var r=t=="absolute"?1:-1,i=this.options,s=this.cssposition!="absolute"||this.scrollparent[0]!=document&&!!e.contains(this.scrollparent[0],this.offsetparent[0])?this.scrollparent:this.offsetparent,o=/(html|body)/i.test(s[0].tagname);return{top:n.top+this.offset.relative.top*r+this.offset.parent.top*r-(this.cssposition=="fixed"?-this.scrollparent.scrolltop():o?0:s.scrolltop())*r,left:n.left+this.offset.relative.left*r+this.offset.parent.left*r-(this.cssposition=="fixed"?-this.scrollparent.scrollleft():o?0:s.scrollleft())*r}},_generateposition:function(t){var n=this.options,r=this.cssposition!="absolute"||this.scrollparent[0]!=document&&!!e.contains(this.scrollparent[0],this.offsetparent[0])?this.scrollparent:this.offsetparent,i=/(html|body)/i.test(r[0].tagname),s=t.pagex,o=t.pagey;if(this.originalposition){var u;if(this.containment){if(this.relative_container){var a=this.relative_container.offset();u=[this.containment[0]+a.left,this.containment[1]+a.top,this.containment[2]+a.left,this.containment[3]+a.top]}else u=this.containment;t.pagex-this.offset.click.leftu[2]&&(s=u[2]+this.offset.click.left),t.pagey-this.offset.click.top>u[3]&&(o=u[3]+this.offset.click.top)}if(n.grid){var f=n.grid[1]?this.originalpagey+math.round((o-this.originalpagey)/n.grid[1])*n.grid[1]:this.originalpagey;o=u?f-this.offset.click.topu[3]?f-this.offset.click.topu[2]?l-this.offset.click.left=0;l--){var c=r.snapelements[l].left,h=c+r.snapelements[l].width,p=r.snapelements[l].top,d=p+r.snapelements[l].height;if(!(c-s=l&&o<=c||u>=l&&u<=c||oc)&&(i>=a&&i<=f||s>=a&&s<=f||if);default:return!1}},e.ui.ddmanager={current:null,droppables:{"default":[]},prepareoffsets:function(t,n){var r=e.ui.ddmanager.droppables[t.options.scope]||[],i=n?n.type:null,s=(t.currentitem||t.element).find(":data(droppable)").andself();e:for(var o=0;o ').css({position:this.element.css("position"),width:this.element.outerwidth(),height:this.element.outerheight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("resizable",this.element.data("resizable")),this.elementiswrapper=!0,this.element.css({marginleft:this.originalelement.css("marginleft"),margintop:this.originalelement.css("margintop"),marginright:this.originalelement.css("marginright"),marginbottom:this.originalelement.css("marginbottom")}),this.originalelement.css({marginleft:0,margintop:0,marginright:0,marginbottom:0}),this.originalresizestyle=this.originalelement.css("resize"),this.originalelement.css("resize","none"),this._proportionallyresizeelements.push(this.originalelement.css({position:"static",zoom:1,display:"block"})),this.originalelement.css({margin:this.originalelement.css("margin")}),this._proportionallyresize()),this.handles=n.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se");if(this.handles.constructor==string){this.handles=="all"&&(this.handles="n,e,s,w,se,sw,ne,nw");var r=this.handles.split(",");this.handles={};for(var i=0;i