/* zepto v1.2.0 - zepto event ajax form ie - zeptojs.com/license */ !function(t,e){"function"==typeof define&&define.amd?define(function(){return e(t)}):e(t)}(this,function(t){var e=function(){function $(t){return null==t?string(t):s[c.call(t)]||"object"}function f(t){return"function"==$(t)}function k(t){return null!=t&&t==t.window}function m(t){return null!=t&&t.nodetype==t.document_node}function r(t){return"object"==$(t)}function z(t){return r(t)&&!k(t)&&object.getprototypeof(t)==object.prototype}function z(t){var e=!!t&&"length"in t&&t.length,n=r.type(t);return"function"!=n&&!k(t)&&("array"==n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function q(t){return a.call(t,function(t){return null!=t})}function h(t){return t.length>0?r.fn.concat.apply([],t):t}function i(t){return t.replace(/::/g,"/").replace(/([a-z]+)([a-z][a-z])/g,"$1_$2").replace(/([a-z\d])([a-z])/g,"$1_$2").replace(/_/g,"-").tolowercase()}function v(t){return t in l?l[t]:l[t]=new regexp("(^|\\s)"+t+"(\\s|$)")}function _(t,e){return"number"!=typeof e||h[i(t)]?e:e+"px"}function b(t){var e,n;return c[t]||(e=f.createelement(t),f.body.appendchild(e),n=getcomputedstyle(e,"").getpropertyvalue("display"),e.parentnode.removechild(e),"none"==n&&(n="block"),c[t]=n),c[t]}function u(t){return"children"in t?u.call(t.children):r.map(t.childnodes,function(t){return 1==t.nodetype?t:void 0})}function x(t,e){var n,r=t?t.length:0;for(n=0;r>n;n++)this[n]=t[n];this.length=r,this.selector=e||""}function j(t,r,i){for(n in r)i&&(z(r[n])||l(r[n]))?(z(r[n])&&!z(t[n])&&(t[n]={}),l(r[n])&&!l(t[n])&&(t[n]=[]),j(t[n],r[n],i)):r[n]!==e&&(t[n]=r[n])}function w(t,e){return null==e?r(t):r(t).filter(e)}function y(t,e,n,r){return f(e)?e.call(t,n,r):e}function g(t,e,n){null==n?t.removeattribute(e):t.setattribute(e,n)}function k(t,n){var r=t.classname||"",i=r&&r.baseval!==e;return n===e?i?r.baseval:r:void(i?r.baseval=n:t.classname=n)}function q(t){try{return t?"true"==t||("false"==t?!1:"null"==t?null:+t+""==t?+t:/^[\[\{]/.test(t)?r.parsejson(t):t):t}catch(e){return t}}function tt(t,e){e(t);for(var n=0,r=t.childnodes.length;r>n;n++)tt(t.childnodes[n],e)}var e,n,r,i,o,p,o=[],s=o.concat,a=o.filter,u=o.slice,f=t.document,c={},l={},h={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},p=/^\s*<(\w+|!)[^>]*>/,d=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,m=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,g=/^(?:body|html)$/i,v=/([a-z])/g,y=["val","css","html","text","data","width","height","offset"],x=["after","prepend","before","append"],b=f.createelement("table"),e=f.createelement("tr"),j={tr:f.createelement("tbody"),tbody:b,thead:b,tfoot:b,td:e,th:e,"*":f.createelement("div")},w=/complete|loaded|interactive/,t=/^[\w-]*$/,s={},c=s.tostring,n={},a=f.createelement("div"),d={tabindex:"tabindex",readonly:"readonly","for":"htmlfor","class":"classname",maxlength:"maxlength",cellspacing:"cellspacing",cellpadding:"cellpadding",rowspan:"rowspan",colspan:"colspan",usemap:"usemap",frameborder:"frameborder",contenteditable:"contenteditable"},l=array.isarray||function(t){return t instanceof array};return n.matches=function(t,e){if(!e||!t||1!==t.nodetype)return!1;var n=t.matches||t.webkitmatchesselector||t.mozmatchesselector||t.omatchesselector||t.matchesselector;if(n)return n.call(t,e);var r,i=t.parentnode,o=!i;return o&&(i=a).appendchild(t),r=~n.qsa(i,e).indexof(t),o&&a.removechild(t),r},o=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.touppercase():""})},p=function(t){return a.call(t,function(e,n){return t.indexof(e)==n})},n.fragment=function(t,n,i){var o,s,a;return d.test(t)&&(o=r(f.createelement(regexp.$1))),o||(t.replace&&(t=t.replace(m,"<$1>")),n===e&&(n=p.test(t)&®exp.$1),n in j||(n="*"),a=j[n],a.innerhtml=""+t,o=r.each(u.call(a.childnodes),function(){a.removechild(this)})),z(i)&&(s=r(o),r.each(i,function(t,e){y.indexof(t)>-1?s[t](e):s.attr(t,e)})),o},n.z=function(t,e){return new x(t,e)},n.isz=function(t){return t instanceof n.z},n.init=function(t,n){var i;if(!t)return n.z();if("string"==typeof t)if(t=t.trim(),"<"==t[0]&&p.test(t))i=n.fragment(t,regexp.$1,n),t=null;else{if(n!==e)return r(n).find(t);i=n.qsa(f,t)}else{if(f(t))return r(f).ready(t);if(n.isz(t))return t;if(l(t))i=q(t);else if(r(t))i=[t],t=null;else if(p.test(t))i=n.fragment(t.trim(),regexp.$1,n),t=null;else{if(n!==e)return r(n).find(t);i=n.qsa(f,t)}}return n.z(i,t)},r=function(t,e){return n.init(t,e)},r.extend=function(t){var e,n=u.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.foreach(function(n){j(t,n,e)}),t},n.qsa=function(t,e){var n,r="#"==e[0],i=!r&&"."==e[0],o=r||i?e.slice(1):e,s=t.test(o);return t.getelementbyid&&s&&r?(n=t.getelementbyid(o))?[n]:[]:1!==t.nodetype&&9!==t.nodetype&&11!==t.nodetype?[]:u.call(s&&!r&&t.getelementsbyclassname?i?t.getelementsbyclassname(o):t.getelementsbytagname(e):t.queryselectorall(e))},r.contains=f.documentelement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentnode);)if(e===t)return!0;return!1},r.type=$,r.isfunction=f,r.iswindow=k,r.isarray=l,r.isplainobject=z,r.isemptyobject=function(t){var e;for(e in t)return!1;return!0},r.isnumeric=function(t){var e=number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isnan(e)&&isfinite(e)||!1},r.inarray=function(t,e,n){return o.indexof.call(e,t,n)},r.camelcase=o,r.trim=function(t){return null==t?"":string.prototype.trim.call(t)},r.uuid=0,r.support={},r.expr={},r.noop=function(){},r.map=function(t,e){var n,i,o,r=[];if(z(t))for(i=0;i=0?t:t+this.length]},toarray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentnode&&this.parentnode.removechild(this)})},each:function(t){return o.every.call(this,function(e,n){return t.call(e,n,e)!==!1}),this},filter:function(t){return f(t)?this.not(this.not(t)):r(a.call(this,function(e){return n.matches(e,t)}))},add:function(t,e){return r(p(this.concat(r(t,e))))},is:function(t){return this.length>0&&n.matches(this[0],t)},not:function(t){var n=[];if(f(t)&&t.call!==e)this.each(function(e){t.call(this,e)||n.push(this)});else{var i="string"==typeof t?this.filter(t):z(t)&&f(t.item)?u.call(t):r(t);this.foreach(function(t){i.indexof(t)<0&&n.push(t)})}return r(n)},has:function(t){return this.filter(function(){return r(t)?r.contains(this,t):r(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!r(t)?t:r(t)},last:function(){var t=this[this.length-1];return t&&!r(t)?t:r(t)},find:function(t){var e,n=this;return e=t?"object"==typeof t?r(t).filter(function(){var t=this;return o.some.call(n,function(e){return r.contains(e,t)})}):1==this.length?r(n.qsa(this[0],t)):this.map(function(){return n.qsa(this,t)}):r()},closest:function(t,e){var n=[],i="object"==typeof t&&r(t);return this.each(function(r,o){for(;o&&!(i?i.indexof(o)>=0:n.matches(o,t));)o=o!==e&&!m(o)&&o.parentnode;o&&n.indexof(o)<0&&n.push(o)}),r(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=r.map(n,function(t){return(t=t.parentnode)&&!m(t)&&e.indexof(t)<0?(e.push(t),t):void 0});return w(e,t)},parent:function(t){return w(p(this.pluck("parentnode")),t)},children:function(t){return w(this.map(function(){return u(this)}),t)},contents:function(){return this.map(function(){return this.contentdocument||u.call(this.childnodes)})},siblings:function(t){return w(this.map(function(t,e){return a.call(u(e.parentnode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerhtml=""})},pluck:function(t){return r.map(this,function(e){return e[t]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getcomputedstyle(this,"").getpropertyvalue("display")&&(this.style.display=b(this.nodename))})},replacewith:function(t){return this.before(t).remove()},wrap:function(t){var e=f(t);if(this[0]&&!e)var n=r(t).get(0),i=n.parentnode||this.length>1;return this.each(function(o){r(this).wrapall(e?t.call(this,o):i?n.clonenode(!0):n)})},wrapall:function(t){if(this[0]){r(this[0]).before(t=r(t));for(var e;(e=t.children()).length;)t=e.first();r(t).append(this)}return this},wrapinner:function(t){var e=f(t);return this.each(function(n){var i=r(this),o=i.contents(),s=e?t.call(this,n):t;o.length?o.wrapall(s):i.append(s)})},unwrap:function(){return this.parent().each(function(){r(this).replacewith(r(this).children())}),this},clone:function(){return this.map(function(){return this.clonenode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var n=r(this);(t===e?"none"==n.css("display"):t)?n.show():n.hide()})},prev:function(t){return r(this.pluck("previouselementsibling")).filter(t||"*")},next:function(t){return r(this.pluck("nextelementsibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(e){var n=this.innerhtml;r(this).empty().append(y(this,t,e,n))}):0 in this?this[0].innerhtml:null},text:function(t){return 0 in arguments?this.each(function(e){var n=y(this,t,e,this.textcontent);this.textcontent=null==n?"":""+n}):0 in this?this.pluck("textcontent").join(""):null},attr:function(t,r){var i;return"string"!=typeof t||1 in arguments?this.each(function(e){if(1===this.nodetype)if(r(t))for(n in t)g(this,n,t[n]);else g(this,t,y(this,r,e,this.getattribute(t)))}):0 in this&&1==this[0].nodetype&&null!=(i=this[0].getattribute(t))?i:e},removeattr:function(t){return this.each(function(){1===this.nodetype&&t.split(" ").foreach(function(t){g(this,t)},this)})},prop:function(t,e){return t=d[t]||t,1 in arguments?this.each(function(n){this[t]=y(this,e,n,this[t])}):this[0]&&this[0][t]},removeprop:function(t){return t=d[t]||t,this.each(function(){delete this[t]})},data:function(t,n){var r="data-"+t.replace(v,"-$1").tolowercase(),i=1 in arguments?this.attr(r,n):this.attr(r);return null!==i?q(i):e},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each(function(e){this.value=y(this,t,e,this.value)})):this[0]&&(this[0].multiple?r(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each(function(t){var n=r(this),i=y(this,e,t,n.offset()),o=n.offsetparent().offset(),s={top:i.top-o.top,left:i.left-o.left};"static"==n.css("position")&&(s.position="relative"),n.css(s)});if(!this.length)return null;if(f.documentelement!==this[0]&&!r.contains(f.documentelement,this[0]))return{top:0,left:0};var n=this[0].getboundingclientrect();return{left:n.left+t.pagexoffset,top:n.top+t.pageyoffset,width:math.round(n.width),height:math.round(n.height)}},css:function(t,e){if(arguments.length<2){var i=this[0];if("string"==typeof t){if(!i)return;return i.style[o(t)]||getcomputedstyle(i,"").getpropertyvalue(t)}if(l(t)){if(!i)return;var o={},s=getcomputedstyle(i,"");return r.each(t,function(t,e){o[e]=i.style[o(e)]||s.getpropertyvalue(e)}),o}}var a="";if("string"==$(t))e||0===e?a=i(t)+":"+_(t,e):this.each(function(){this.style.removeproperty(i(t))});else for(n in t)t[n]||0===t[n]?a+=i(n)+":"+_(n,t[n])+";":this.each(function(){this.style.removeproperty(i(n))});return this.each(function(){this.style.csstext+=";"+a})},index:function(t){return t?this.indexof(r(t)[0]):this.parent().children().indexof(this[0])},hasclass:function(t){return t?o.some.call(this,function(t){return this.test(k(t))},v(t)):!1},addclass:function(t){return t?this.each(function(e){if("classname"in this){i=[];var n=k(this),o=y(this,t,e,n);o.split(/\s+/g).foreach(function(t){r(this).hasclass(t)||i.push(t)},this),i.length&&k(this,n+(n?" ":"")+i.join(" "))}}):this},removeclass:function(t){return this.each(function(n){if("classname"in this){if(t===e)return k(this,"");i=k(this),y(this,t,n,i).split(/\s+/g).foreach(function(t){i=i.replace(v(t)," ")}),k(this,i.trim())}})},toggleclass:function(t,n){return t?this.each(function(i){var o=r(this),s=y(this,t,i,k(this));s.split(/\s+/g).foreach(function(t){(n===e?!o.hasclass(t):n)?o.addclass(t):o.removeclass(t)})}):this},scrolltop:function(t){if(this.length){var n="scrolltop"in this[0];return t===e?n?this[0].scrolltop:this[0].pageyoffset:this.each(n?function(){this.scrolltop=t}:function(){this.scrollto(this.scrollx,t)})}},scrollleft:function(t){if(this.length){var n="scrollleft"in this[0];return t===e?n?this[0].scrollleft:this[0].pagexoffset:this.each(n?function(){this.scrollleft=t}:function(){this.scrollto(t,this.scrolly)})}},position:function(){if(this.length){var t=this[0],e=this.offsetparent(),n=this.offset(),i=g.test(e[0].nodename)?{top:0,left:0}:e.offset();return n.top-=parsefloat(r(t).css("margin-top"))||0,n.left-=parsefloat(r(t).css("margin-left"))||0,i.top+=parsefloat(r(e[0]).css("border-top-width"))||0,i.left+=parsefloat(r(e[0]).css("border-left-width"))||0,{top:n.top-i.top,left:n.left-i.left}}},offsetparent:function(){return this.map(function(){for(var t=this.offsetparent||f.body;t&&!g.test(t.nodename)&&"static"==r(t).css("position");)t=t.offsetparent;return t})}},r.fn.detach=r.fn.remove,["width","height"].foreach(function(t){var n=t.replace(/./,function(t){return t[0].touppercase()});r.fn[t]=function(i){var o,s=this[0];return i===e?k(s)?s["inner"+n]:m(s)?s.documentelement["scroll"+n]:(o=this.offset())&&o[t]:this.each(function(e){s=r(this),s.css(t,y(this,i,e,s[t]()))})}}),x.foreach(function(n,i){var o=i%2;r.fn[n]=function(){var n,a,s=r.map(arguments,function(t){var i=[];return n=$(t),"array"==n?(t.foreach(function(t){return t.nodetype!==e?i.push(t):r.zepto.isz(t)?i=i.concat(t.get()):void(i=i.concat(n.fragment(t)))}),i):"object"==n||null==t?t:n.fragment(t)}),u=this.length>1;return s.length<1?this:this.each(function(e,n){a=o?n:n.parentnode,n=0==i?n.nextsibling:1==i?n.firstchild:2==i?n:null;var c=r.contains(f.documentelement,a);s.foreach(function(e){if(u)e=e.clonenode(!0);else if(!a)return r(e).remove();a.insertbefore(e,n),c&&tt(e,function(e){if(!(null==e.nodename||"script"!==e.nodename.touppercase()||e.type&&"text/javascript"!==e.type||e.src)){var n=e.ownerdocument?e.ownerdocument.defaultview:t;n.eval.call(n,e.innerhtml)}})})})},r.fn[o?n+"to":"insert"+(i?"before":"after")]=function(t){return r(t)[n](this),this}}),n.z.prototype=x.prototype=r.fn,n.uniq=p,n.deserializevalue=q,r.zepto=n,r}();return t.zepto=e,void 0===t.$&&(t.$=e),function(e){function h(t){return t._zid||(t._zid=n++)}function p(t,e,n,r){if(e=d(e),e.ns)var i=m(e.ns);return(a[h(t)]||[]).filter(function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||i.test(t.ns))&&(!n||h(t.fn)===h(n))&&(!r||t.sel==r)})}function d(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function m(t){return new regexp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function g(t,e){return t.del&&!f&&t.e in c||!!e}function v(t){return l[t]||f&&c[t]||t}function y(t,n,i,o,s,u,f){var c=h(t),p=a[c]||(a[c]=[]);n.split(/\s/).foreach(function(n){if("ready"==n)return e(document).ready(i);var a=d(n);a.fn=i,a.sel=s,a.e in l&&(i=function(t){var n=t.relatedtarget;return!n||n!==this&&!e.contains(this,n)?a.fn.apply(this,arguments):void 0}),a.del=u;var c=u||i;a.proxy=function(e){if(e=t(e),!e.isimmediatepropagationstopped()){e.data=o;var n=c.apply(t,e._args==r?[e]:[e].concat(e._args));return n===!1&&(e.preventdefault(),e.stoppropagation()),n}},a.i=p.length,p.push(a),"addeventlistener"in t&&t.addeventlistener(v(a.e),a.proxy,g(a,f))})}function x(t,e,n,r,i){var o=h(t);(e||"").split(/\s/).foreach(function(e){p(t,e,n,r).foreach(function(e){delete a[o][e.i],"removeeventlistener"in t&&t.removeeventlistener(v(e.e),e.proxy,g(e,i))})})}function t(t,n){return(n||!t.isdefaultprevented)&&(n||(n=t),e.each(w,function(e,r){var i=n[e];t[e]=function(){return this[r]=b,i&&i.apply(n,arguments)},t[r]=e}),t.timestamp||(t.timestamp=date.now()),(n.defaultprevented!==r?n.defaultprevented:"returnvalue"in n?n.returnvalue===!1:n.getpreventdefault&&n.getpreventdefault())&&(t.isdefaultprevented=b)),t}function s(t){var e,n={originalevent:t};for(e in t)j.test(e)||t[e]===r||(n[e]=t[e]);return t(n,t)}var r,n=1,i=array.prototype.slice,o=e.isfunction,s=function(t){return"string"==typeof t},a={},u={},f="onfocusin"in t,c={focus:"focusin",blur:"focusout"},l={mouseenter:"mouseover",mouseleave:"mouseout"};u.click=u.mousedown=u.mouseup=u.mousemove="mouseevents",e.event={add:y,remove:x},e.proxy=function(t,n){var r=2 in arguments&&i.call(arguments,2);if(o(t)){var a=function(){return t.apply(n,r?r.concat(i.call(arguments)):arguments)};return a._zid=h(t),a}if(s(n))return r?(r.unshift(t[n],t),e.proxy.apply(null,r)):e.proxy(t[n],t);throw new typeerror("expected function")},e.fn.bind=function(t,e,n){return this.on(t,e,n)},e.fn.unbind=function(t,e){return this.off(t,e)},e.fn.one=function(t,e,n,r){return this.on(t,e,n,r,1)};var b=function(){return!0},e=function(){return!1},j=/^([a-z]|returnvalue$|layer[xy]$|webkitmovement[xy]$)/,w={preventdefault:"isdefaultprevented",stopimmediatepropagation:"isimmediatepropagationstopped",stoppropagation:"ispropagationstopped"};e.fn.delegate=function(t,e,n){return this.on(e,t,n)},e.fn.undelegate=function(t,e,n){return this.off(e,t,n)},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,n,a,u,f){var c,l,h=this;return t&&!s(t)?(e.each(t,function(t,e){h.on(t,n,a,e,f)}),h):(s(n)||o(u)||u===!1||(u=a,a=n,n=r),(u===r||a===!1)&&(u=a,a=r),u===!1&&(u=e),h.each(function(r,o){f&&(c=function(t){return x(o,t.type,u),u.apply(this,arguments)}),n&&(l=function(t){var r,s=e(t.target).closest(n,o).get(0);return s&&s!==o?(r=e.extend(s(t),{currenttarget:s,livefired:o}),(c||u).apply(s,[r].concat(i.call(arguments,1)))):void 0}),y(o,t,u,a,n,l||c)}))},e.fn.off=function(t,n,i){var a=this;return t&&!s(t)?(e.each(t,function(t,e){a.off(t,n,e)}),a):(s(n)||o(i)||i===!1||(i=n,n=r),i===!1&&(i=e),a.each(function(){x(this,t,i,n)}))},e.fn.trigger=function(t,n){return t=s(t)||e.isplainobject(t)?e.event(t):t(t),t._args=n,this.each(function(){t.type in c&&"function"==typeof this[t.type]?this[t.type]():"dispatchevent"in this?this.dispatchevent(t):e(this).triggerhandler(t,n)})},e.fn.triggerhandler=function(t,n){var r,i;return this.each(function(o,a){r=s(s(t)?e.event(t):t),r._args=n,r.target=a,e.each(p(a,t.type||t),function(t,e){return i=e.proxy(r),r.isimmediatepropagationstopped()?!1:void 0})}),i},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").foreach(function(t){e.fn[t]=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}}),e.event=function(t,e){s(t)||(e=t,t=e.type);var n=document.createevent(u[t]||"events"),r=!0;if(e)for(var i in e)"bubbles"==i?r=!!e[i]:n[i]=e[i];return n.initevent(t,r,!0),t(n)}}(e),function(e){function p(t,n,r){var i=e.event(n);return e(t).trigger(i,r),!i.isdefaultprevented()}function d(t,e,n,i){return t.global?p(e||r,n,i):void 0}function m(t){t.global&&0===e.active++&&d(t,null,"ajaxstart")}function g(t){t.global&&!--e.active&&d(t,null,"ajaxstop")}function v(t,e){var n=e.context;return e.beforesend.call(n,t,e)===!1||d(e,n,"ajaxbeforesend",[t,e])===!1?!1:void d(e,n,"ajaxsend",[t,e])}function y(t,e,n,r){var i=n.context,o="success";n.success.call(i,t,o,e),r&&r.resolvewith(i,[t,o,e]),d(n,i,"ajaxsuccess",[e,n,t]),b(o,e,n)}function x(t,e,n,r,i){var o=r.context;r.error.call(o,n,e,t),i&&i.rejectwith(o,[n,e,t]),d(r,o,"ajaxerror",[n,r,t||e]),b(e,n,r)}function b(t,e,n){var r=n.context;n.complete.call(r,e,t),d(n,r,"ajaxcomplete",[e,n]),g(n)}function e(t,e,n){if(n.datafilter==j)return t;var r=n.context;return n.datafilter.call(r,t,e)}function j(){}function w(t){return t&&(t=t.split(";",2)[0]),t&&(t==c?"html":t==f?"json":a.test(t)?"script":u.test(t)&&"xml")||"text"}function t(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function s(t){t.processdata&&t.data&&"string"!=e.type(t.data)&&(t.data=e.param(t.data,t.traditional)),!t.data||t.type&&"get"!=t.type.touppercase()&&"jsonp"!=t.datatype||(t.url=t(t.url,t.data),t.data=void 0)}function c(t,n,r,i){return e.isfunction(n)&&(i=r,r=n,n=void 0),e.isfunction(r)||(i=r,r=void 0),{url:t,data:n,success:r,datatype:i}}function o(t,n,r,i){var o,s=e.isarray(n),a=e.isplainobject(n);e.each(n,function(n,u){o=e.type(u),i&&(n=r?i:i+"["+(a||"object"==o||"array"==o?n:"")+"]"),!i&&s?t.add(u.name,u.value):"array"==o||!r&&"object"==o?o(t,u,r,n):t.add(n,u)})}var i,o,n=+new date,r=t.document,s=/)<[^<]*)*<\/script>/gi,a=/^(?:text|application)\/javascript/i,u=/^(?:text|application)\/xml/i,f="application/json",c="text/html",l=/^\s*$/,h=r.createelement("a");h.href=t.location.href,e.active=0,e.ajaxjsonp=function(i,o){if(!("type"in i))return e.ajax(i);var c,p,s=i.jsonpcallback,a=(e.isfunction(s)?s():s)||"zepto"+n++,u=r.createelement("script"),f=t[a],l=function(t){e(u).triggerhandler("error",t||"abort")},h={abort:l};return o&&o.promise(h),e(u).on("load error",function(n,r){cleartimeout(p),e(u).off().remove(),"error"!=n.type&&c?y(c[0],h,i,o):x(null,r||"error",h,i,o),t[a]=f,c&&e.isfunction(f)&&f(c[0]),f=c=void 0}),v(h,i)===!1?(l("abort"),h):(t[a]=function(){c=arguments},u.src=i.url.replace(/\?(.+)=\?/,"?$1="+a),r.head.appendchild(u),i.timeout>0&&(p=settimeout(function(){l("timeout")},i.timeout)),h)},e.ajaxsettings={type:"get",beforesend:j,success:j,error:j,complete:j,context:null,global:!0,xhr:function(){return new t.xmlhttprequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:f,xml:"application/xml, text/xml",html:c,text:"text/plain"},crossdomain:!1,timeout:0,processdata:!0,cache:!0,datafilter:j},e.ajax=function(n){var u,f,s=e.extend({},n||{}),a=e.deferred&&e.deferred();for(i in e.ajaxsettings)void 0===s[i]&&(s[i]=e.ajaxsettings[i]);m(s),s.crossdomain||(u=r.createelement("a"),u.href=s.url,u.href=u.href,s.crossdomain=h.protocol+"//"+h.host!=u.protocol+"//"+u.host),s.url||(s.url=t.location.tostring()),(f=s.url.indexof("#"))>-1&&(s.url=s.url.slice(0,f)),s(s);var c=s.datatype,p=/\?.+=\?/.test(s.url);if(p&&(c="jsonp"),s.cache!==!1&&(n&&n.cache===!0||"script"!=c&&"jsonp"!=c)||(s.url=t(s.url,"_="+date.now())),"jsonp"==c)return p||(s.url=t(s.url,s.jsonp?s.jsonp+"=?":s.jsonp===!1?"":"callback=?")),e.ajaxjsonp(s,a);var p,d=s.accepts[c],g={},b=function(t,e){g[t.tolowercase()]=[t,e]},c=/^([\w-]+:)\/\//.test(s.url)?regexp.$1:t.location.protocol,n=s.xhr(),o=n.setrequestheader;if(a&&a.promise(n),s.crossdomain||b("x-requested-with","xmlhttprequest"),b("accept",d||"*/*"),(d=s.mimetype||d)&&(d.indexof(",")>-1&&(d=d.split(",",2)[0]),n.overridemimetype&&n.overridemimetype(d)),(s.contenttype||s.contenttype!==!1&&s.data&&"get"!=s.type.touppercase())&&b("content-type",s.contenttype||"application/x-www-form-urlencoded"),s.headers)for(o in s.headers)b(o,s.headers[o]);if(n.setrequestheader=b,n.onreadystatechange=function(){if(4==n.readystate){n.onreadystatechange=j,cleartimeout(p);var t,n=!1;if(n.status>=200&&n.status<300||304==n.status||0==n.status&&"file:"==c){if(c=c||w(s.mimetype||n.getresponseheader("content-type")),"arraybuffer"==n.responsetype||"blob"==n.responsetype)t=n.response;else{t=n.responsetext;try{t=e(t,c,s),"script"==c?(1,eval)(t):"xml"==c?t=n.responsexml:"json"==c&&(t=l.test(t)?null:e.parsejson(t))}catch(r){n=r}if(n)return x(n,"parsererror",n,s,a)}y(t,n,s,a)}else x(n.statustext||null,n.status?"error":"abort",n,s,a)}},v(n,s)===!1)return n.abort(),x(null,"abort",n,s,a),n;var a="async"in s?s.async:!0;if(n.open(s.type,s.url,a,s.username,s.password),s.xhrfields)for(o in s.xhrfields)n[o]=s.xhrfields[o];for(o in g)o.apply(n,g[o]);return s.timeout>0&&(p=settimeout(function(){n.onreadystatechange=j,n.abort(),x(null,"timeout",n,s,a)},s.timeout)),n.send(s.data?s.data:null),n},e.get=function(){return e.ajax(c.apply(null,arguments))},e.post=function(){var t=c.apply(null,arguments);return t.type="post",e.ajax(t)},e.getjson=function(){var t=c.apply(null,arguments);return t.datatype="json",e.ajax(t)},e.fn.load=function(t,n,r){if(!this.length)return this;var a,i=this,o=t.split(/\s/),u=c(t,n,r),f=u.success;return o.length>1&&(u.url=o[0],a=o[1]),u.success=function(t){i.html(a?e("
").html(t.replace(s,"")).find(a):t),f&&f.apply(i,arguments)},e.ajax(u),this};var n=encodeuricomponent;e.param=function(t,n){var r=[];return r.add=function(t,n){e.isfunction(n)&&(n=n()),null==n&&(n=""),this.push(n(t)+"="+n(n))},o(r,t,n),r.join("&").replace(/%20/g,"+")}}(e),function(t){t.fn.serializearray=function(){var e,n,r=[],i=function(t){return t.foreach?t.foreach(i):void r.push({name:e,value:t})};return this[0]&&t.each(this[0].elements,function(r,o){n=o.type,e=o.name,e&&"fieldset"!=o.nodename.tolowercase()&&!o.disabled&&"submit"!=n&&"reset"!=n&&"button"!=n&&"file"!=n&&("radio"!=n&&"checkbox"!=n||o.checked)&&i(t(o).val())}),r},t.fn.serialize=function(){var t=[];return this.serializearray().foreach(function(e){t.push(encodeuricomponent(e.name)+"="+encodeuricomponent(e.value))}),t.join("&")},t.fn.submit=function(e){if(0 in arguments)this.bind("submit",e);else if(this.length){var n=t.event("submit");this.eq(0).trigger(n),n.isdefaultprevented()||this.get(0).submit()}return this}}(e),function(){try{getcomputedstyle(void 0)}catch(e){var n=getcomputedstyle;t.getcomputedstyle=function(t,e){try{return n(t,e)}catch(r){return null}}}}(),e});