/*
 jQuery Form Plugin
 version: 4.2.2
 Requires jQuery v1.7.2 or later
 Project repository: https://github.com/jquery-form/form

 Copyright 2017 Kevin Morris
 Copyright 2006 M. Alsup

 Dual licensed under the LGPL-2.1+ or MIT licenses
 https://github.com/jquery-form/form#license

 This library is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public
 License as published by the Free Software Foundation; either
 version 2.1 of the License, or (at your option) any later version.
 This library is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 Lesser General Public License for more details.
*/
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(b,q,k){b instanceof String&&(b=String(b));for(var l=b.length,w=0;w<l;w++){var M=b[w];if(q.call(k,M,w,b))return{i:w,v:M}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,q,k){if(b==Array.prototype||b==Object.prototype)return b;b[q]=k.value;return b};$jscomp.getGlobal=function(b){b=["object"==typeof globalThis&&globalThis,b,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var q=0;q<b.length;++q){var k=b[q];if(k&&k.Math==Math)return k}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(b,q){var k=$jscomp.propertyToPolyfillSymbol[q];if(null==k)return b[q];k=b[k];return void 0!==k?k:b[q]};
$jscomp.polyfill=function(b,q,k,l){q&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(b,q,k,l):$jscomp.polyfillUnisolated(b,q,k,l))};$jscomp.polyfillUnisolated=function(b,q,k,l){k=$jscomp.global;b=b.split(".");for(l=0;l<b.length-1;l++){var w=b[l];if(!(w in k))return;k=k[w]}b=b[b.length-1];l=k[b];q=q(l);q!=l&&null!=q&&$jscomp.defineProperty(k,b,{configurable:!0,writable:!0,value:q})};
$jscomp.polyfillIsolated=function(b,q,k,l){var w=b.split(".");b=1===w.length;l=w[0];l=!b&&l in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var M=0;M<w.length-1;M++){var X=w[M];if(!(X in l))return;l=l[X]}w=w[w.length-1];k=$jscomp.IS_SYMBOL_NATIVE&&"es6"===k?l[w]:null;q=q(k);null!=q&&(b?$jscomp.defineProperty($jscomp.polyfills,w,{configurable:!0,writable:!0,value:q}):q!==k&&(void 0===$jscomp.propertyToPolyfillSymbol[w]&&(k=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[w]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(w):$jscomp.POLYFILL_PREFIX+k+"$"+w),$jscomp.defineProperty(l,$jscomp.propertyToPolyfillSymbol[w],{configurable:!0,writable:!0,value:q})))};$jscomp.polyfill("Array.prototype.find",function(b){return b?b:function(q,k){return $jscomp.findInternal(this,q,k).v}},"es6","es3");
(function(b){"function"===typeof define&&define.amd?define(["jquery"],b):"object"===typeof module&&module.exports?module.exports=function(q,k){"undefined"===typeof k&&(k="undefined"!==typeof window?require("jquery"):require("jquery")(q));b(k);return k}:b(jQuery)})(function(b){function q(a){var d=a.data;a.isDefaultPrevented()||(a.preventDefault(),b(a.target).closest("form").ajaxSubmit(d))}function k(a){var d=a.target,g=b(d);if(!g.is("[type=submit],[type=image]")){d=g.closest("[type=submit]");if(0===
d.length)return;d=d[0]}var e=d.form;e.clk=d;"image"===d.type&&("undefined"!==typeof a.offsetX?(e.clk_x=a.offsetX,e.clk_y=a.offsetY):"function"===typeof b.fn.offset?(g=g.offset(),e.clk_x=a.pageX-g.left,e.clk_y=a.pageY-g.top):(e.clk_x=a.pageX-d.offsetLeft,e.clk_y=a.pageY-d.offsetTop));setTimeout(function(){e.clk=e.clk_x=e.clk_y=null},100)}function l(){if(b.fn.ajaxSubmit.debug){var a="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(a):window.opera&&
window.opera.postError&&window.opera.postError(a)}}var w=/\r?\n/g;var M=void 0!==b('<input type="file">').get(0).files;var X="undefined"!==typeof window.FormData;var ca=!!b.fn.prop;b.fn.attr2=function(){if(!ca)return this.attr.apply(this,arguments);var a=this.prop.apply(this,arguments);return a&&a.jquery||"string"===typeof a?a:this.attr.apply(this,arguments)};b.fn.ajaxSubmit=function(a,d,g,e){function p(r){r=b.param(r,a.traditional).split("&");var D=r.length,v=[],z;for(z=0;z<D;z++){r[z]=r[z].replace(/\+/g,
" ");var t=r[z].split("=");v.push([decodeURIComponent(t[0]),decodeURIComponent(t[1])])}return v}function x(r){for(var D=new FormData,v=0;v<r.length;v++)D.append(r[v].name,r[v].value);if(a.extraData)for(r=p(a.extraData),v=0;v<r.length;v++)r[v]&&D.append(r[v][0],r[v][1]);a.data=null;v=b.extend(!0,{},b.ajaxSettings,a,{contentType:!1,processData:!1,cache:!1,type:N||"POST"});a.uploadProgress&&(v.xhr=function(){var t=b.ajaxSettings.xhr();t.upload&&t.upload.addEventListener("progress",function(y){var I=
0,U=y.loaded||y.position,Q=y.total;y.lengthComputable&&(I=Math.ceil(U/Q*100));a.uploadProgress(y,U,Q,I)},!1);return t});v.data=null;var z=v.beforeSend;v.beforeSend=function(t,y){y.data=a.formData?a.formData:D;z&&z.call(this,t,y)};return b.ajax(v)}function A(r){function D(h){var m=null;try{h.contentWindow&&(m=h.contentWindow.document)}catch(E){l("cannot get iframe.contentWindow document: "+E)}if(m)return m;try{m=h.contentDocument?h.contentDocument:h.document}catch(E){l("cannot get iframe.contentDocument: "+
E),m=h.document}return m}function v(){function h(){try{var O=D(J).readyState;l("state = "+O);O&&"uninitialized"===O.toLowerCase()&&setTimeout(h,50)}catch(R){l("Server abort: ",R," (",R.name,")"),z(2),Q&&clearTimeout(Q),Q=void 0}}var m=u.attr2("target"),E=u.attr2("action"),G=u.attr("enctype")||u.attr("encoding")||"multipart/form-data";t.setAttribute("target",Y);N&&!/post/i.test(N)||t.setAttribute("method","POST");E!==c.url&&t.setAttribute("action",c.url);c.skipEncodingOverride||N&&!/post/i.test(N)||
u.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});c.timeout&&(Q=setTimeout(function(){U=!0;z(1)},c.timeout));var K=[];try{if(c.extraData)for(var H in c.extraData)c.extraData.hasOwnProperty(H)&&(b.isPlainObject(c.extraData[H])&&c.extraData[H].hasOwnProperty("name")&&c.extraData[H].hasOwnProperty("value")?K.push(b('<input type="hidden" name="'+c.extraData[H].name+'">',Z).val(c.extraData[H].value).appendTo(t)[0]):K.push(b('<input type="hidden" name="'+H+'">',Z).val(c.extraData[H]).appendTo(t)[0]));
c.iframeTarget||P.appendTo(fa);J.attachEvent?J.attachEvent("onload",z):J.addEventListener("load",z,!1);setTimeout(h,15);try{t.submit()}catch(O){document.createElement("form").submit.apply(t)}}finally{t.setAttribute("action",E),t.setAttribute("enctype",G),m?t.setAttribute("target",m):u.removeAttr("target"),b(K).remove()}}function z(h){if(!f.aborted&&!da)if(B=D(J),B||(l("cannot access response document"),h=2),1===h&&f)f.abort("timeout"),L.reject(f,"timeout");else if(2===h&&f)f.abort("server abort"),
L.reject(f,"error","server abort");else if(B&&B.location.href!==c.iframeSrc||U){J.detachEvent?J.detachEvent("onload",z):J.removeEventListener("load",z,!1);h="success";var m;try{if(U)throw"timeout";var E="xml"===c.dataType||B.XMLDocument||b.isXMLDoc(B);l("isXml="+E);if(!E&&window.opera&&(null===B.body||!B.body.innerHTML)&&--ha){l("requeing onLoad callback, DOM not available");setTimeout(z,250);return}var G=B.body?B.body:B.documentElement;f.responseText=G?G.innerHTML:null;f.responseXML=B.XMLDocument?
B.XMLDocument:B;E&&(c.dataType="xml");f.getResponseHeader=function(V){return{"content-type":c.dataType}[V.toLowerCase()]};G&&(f.status=Number(G.getAttribute("status"))||f.status,f.statusText=G.getAttribute("statusText")||f.statusText);var K=(c.dataType||"").toLowerCase(),H=/(json|script|text)/.test(K);if(H||c.textarea){var O=B.getElementsByTagName("textarea")[0];if(O)f.responseText=O.value,f.status=Number(O.getAttribute("status"))||f.status,f.statusText=O.getAttribute("statusText")||f.statusText;
else if(H){var R=B.getElementsByTagName("pre")[0],aa=B.getElementsByTagName("body")[0];R?f.responseText=R.textContent?R.textContent:R.innerText:aa&&(f.responseText=aa.textContent?aa.textContent:aa.innerText)}}else"xml"===K&&!f.responseXML&&f.responseText&&(f.responseXML=ia(f.responseText));try{ea=ja(f,K,c)}catch(V){h="parsererror",f.error=m=V||h}}catch(V){l("error caught: ",V),h="error",f.error=m=V||h}f.aborted&&(l("upload aborted"),h=null);f.status&&(h=200<=f.status&&300>f.status||304===f.status?
"success":"error");"success"===h?(c.success&&c.success.call(c.context,ea,"success",f),L.resolve(f.responseText,"success",f),I&&b.event.trigger("ajaxSuccess",[f,c])):h&&("undefined"===typeof m&&(m=f.statusText),c.error&&c.error.call(c.context,f,h,m),L.reject(f,"error",m),I&&b.event.trigger("ajaxError",[f,c,m]));I&&b.event.trigger("ajaxComplete",[f,c]);I&&!--b.active&&b.event.trigger("ajaxStop");c.complete&&c.complete.call(c.context,f,h);da=!0;c.timeout&&clearTimeout(Q);setTimeout(function(){c.iframeTarget?
P.attr("src",c.iframeSrc):P.remove();f.responseXML=null},100)}}var t=u[0],y,I,U,Q,L=b.Deferred();L.abort=function(h){f.abort(h)};if(r)for(y=0;y<W.length;y++)r=b(W[y]),ca?r.prop("disabled",!1):r.removeAttr("disabled");var c=b.extend(!0,{},b.ajaxSettings,a);c.context=c.context||c;var Y="jqFormIO"+(new Date).getTime();var Z=t.ownerDocument,fa=u.closest("body");if(c.iframeTarget){var P=b(c.iframeTarget,Z);(y=P.attr2("name"))?Y=y:P.attr2("name",Y)}else P=b('<iframe name="'+Y+'" src="'+c.iframeSrc+'" />',
Z),P.css({position:"absolute",top:"-1000px",left:"-1000px"});var J=P[0];var f={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(h){var m="timeout"===h?"timeout":"aborted";l("aborting upload... "+m);this.aborted=1;try{J.contentWindow.document.execCommand&&J.contentWindow.document.execCommand("Stop")}catch(E){}P.attr("src",c.iframeSrc);f.error=m;c.error&&c.error.call(c.context,
f,m,h);I&&b.event.trigger("ajaxError",[f,c,m]);c.complete&&c.complete.call(c.context,f,m)}};(I=c.global)&&0===b.active++&&b.event.trigger("ajaxStart");I&&b.event.trigger("ajaxSend",[f,c]);if(c.beforeSend&&!1===c.beforeSend.call(c.context,f,c))return c.global&&b.active--,L.reject(),L;if(f.aborted)return L.reject(),L;(r=t.clk)&&(y=r.name)&&!r.disabled&&(c.extraData=c.extraData||{},c.extraData[y]=r.value,"image"===r.type&&(c.extraData[y+".x"]=t.clk_x,c.extraData[y+".y"]=t.clk_y));r=b("meta[name=csrf-token]").attr("content");
(y=b("meta[name=csrf-param]").attr("content"))&&r&&(c.extraData=c.extraData||{},c.extraData[y]=r);c.forceSync?v():setTimeout(v,10);var ea,B,ha=50,da,ia=b.parseXML||function(h,m){window.ActiveXObject?(m=new ActiveXObject("Microsoft.XMLDOM"),m.async="false",m.loadXML(h)):m=(new DOMParser).parseFromString(h,"text/xml");return m&&m.documentElement&&"parsererror"!==m.documentElement.nodeName?m:null},ka=b.parseJSON||function(h){return window.eval("("+h+")")},ja=function(h,m,E){var G=h.getResponseHeader("content-type")||
"",K=("xml"===m||!m)&&0<=G.indexOf("xml");h=K?h.responseXML:h.responseText;K&&"parsererror"===h.documentElement.nodeName&&b.error&&b.error("parsererror");E&&E.dataFilter&&(h=E.dataFilter(h,m));"string"===typeof h&&(("json"===m||!m)&&0<=G.indexOf("json")?h=ka(h):("script"===m||!m)&&0<=G.indexOf("javascript")&&b.globalEval(h));return h};return L}if(!this.length)return l("ajaxSubmit: skipping submit process - no element selected"),this;var u=this;"function"===typeof a?a={success:a}:"string"===typeof a||
!1===a&&0<arguments.length?(a={url:a,data:d,dataType:g},"function"===typeof e&&(a.success=e)):"undefined"===typeof a&&(a={});var N=a.method||a.type||this.attr2("method");var n=a.url||this.attr2("action");(n=(n="string"===typeof n?b.trim(n):"")||window.location.href||"")&&(n=(n.match(/^([^#]+)/)||[])[1]);a=b.extend(!0,{url:n,success:b.ajaxSettings.success,type:N||b.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},a);n={};this.trigger("form-pre-serialize",
[this,a,n]);if(n.veto)return l("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(a.beforeSerialize&&!1===a.beforeSerialize(this,a))return l("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var C=a.traditional;"undefined"===typeof C&&(C=b.ajaxSettings.traditional);var W=[],S=this.formToArray(a.semantic,W,a.filtering);if(a.data){var F=b.isFunction(a.data)?a.data(S):a.data;a.extraData=F;F=b.param(F,C)}if(a.beforeSubmit&&!1===a.beforeSubmit(S,this,a))return l("ajaxSubmit: submit aborted via beforeSubmit callback"),
this;this.trigger("form-submit-validate",[S,this,a,n]);if(n.veto)return l("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;n=b.param(S,C);F&&(n=n?n+"&"+F:F);"GET"===a.type.toUpperCase()?(a.url+=(0<=a.url.indexOf("?")?"&":"?")+n,a.data=null):a.data=n;var T=[];a.resetForm&&T.push(function(){u.resetForm()});a.clearForm&&T.push(function(){u.clearForm(a.includeHidden)});if(!a.dataType&&a.target){var la=a.success||function(){};T.push(function(r,D,v){var z=arguments,t=a.replaceTarget?"replaceWith":
"html";b(a.target)[t](r).each(function(){la.apply(this,z)})})}else a.success&&(b.isArray(a.success)?b.merge(T,a.success):T.push(a.success));a.success=function(r,D,v){for(var z=a.context||this,t=0,y=T.length;t<y;t++)T[t].apply(z,[r,D,v||u,u])};if(a.error){var ma=a.error;a.error=function(r,D,v){ma.apply(a.context||this,[r,D,v,u])}}if(a.complete){var na=a.complete;a.complete=function(r,D){na.apply(a.context||this,[r,D,u])}}F=0<b("input[type=file]:enabled",this).filter(function(){return""!==b(this).val()}).length;
n="multipart/form-data"===u.attr("enctype")||"multipart/form-data"===u.attr("encoding");C=M&&X;l("fileAPI :"+C);var ba;!1!==a.iframe&&(a.iframe||(F||n)&&!C)?a.closeKeepAlive?b.get(a.closeKeepAlive,function(){ba=A(S)}):ba=A(S):ba=(F||n)&&C?x(S):b.ajax(a);u.removeData("jqxhr").data("jqxhr",ba);for(F=0;F<W.length;F++)W[F]=null;this.trigger("form-submit-notify",[this,a]);return this};b.fn.ajaxForm=function(a,d,g,e){if("string"===typeof a||!1===a&&0<arguments.length)a={url:a,data:d,dataType:g},"function"===
typeof e&&(a.success=e);a=a||{};a.delegation=a.delegation&&b.isFunction(b.fn.on);if(!a.delegation&&0===this.length){var p=this.selector,x=this.context;if(!b.isReady&&p)return l("DOM not ready, queuing ajaxForm"),b(function(){b(p,x).ajaxForm(a)}),this;l("terminating; zero elements found by selector"+(b.isReady?"":" (DOM not ready)"));return this}return a.delegation?(b(document).off("submit.form-plugin",this.selector,q).off("click.form-plugin",this.selector,k).on("submit.form-plugin",this.selector,
a,q).on("click.form-plugin",this.selector,a,k),this):this.ajaxFormUnbind().on("submit.form-plugin",a,q).on("click.form-plugin",a,k)};b.fn.ajaxFormUnbind=function(){return this.off("submit.form-plugin click.form-plugin")};b.fn.formToArray=function(a,d,g){var e=[];if(0===this.length)return e;var p=this[0],x=this.attr("id"),A=a||"undefined"===typeof p.elements?p.getElementsByTagName("*"):p.elements;A&&(A=b.makeArray(A));x&&(a||/(Edge|Trident)\//.test(navigator.userAgent))&&(x=b(':input[form="'+x+'"]').get(),
x.length&&(A=(A||[]).concat(x)));if(!A||!A.length)return e;b.isFunction(g)&&(A=b.map(A,g));var u,N;x=0;for(N=A.length;x<N;x++){var n=A[x];if((g=n.name)&&!n.disabled)if(a&&p.clk&&"image"===n.type)p.clk===n&&(e.push({name:g,value:b(n).val(),type:n.type}),e.push({name:g+".x",value:p.clk_x},{name:g+".y",value:p.clk_y}));else if((u=b.fieldValue(n,!0))&&u.constructor===Array){d&&d.push(n);var C=0;for(n=u.length;C<n;C++)e.push({name:g,value:u[C]})}else if(M&&"file"===n.type)if(d&&d.push(n),u=n.files,u.length)for(C=
0;C<u.length;C++)e.push({name:g,value:u[C],type:n.type});else e.push({name:g,value:"",type:n.type});else null!==u&&"undefined"!==typeof u&&(d&&d.push(n),e.push({name:g,value:u,type:n.type,required:n.required}))}!a&&p.clk&&(a=b(p.clk),d=a[0],(g=d.name)&&!d.disabled&&"image"===d.type&&(e.push({name:g,value:a.val()}),e.push({name:g+".x",value:p.clk_x},{name:g+".y",value:p.clk_y})));return e};b.fn.formSerialize=function(a){return b.param(this.formToArray(a))};b.fn.fieldSerialize=function(a){var d=[];
this.each(function(){var g=this.name;if(g){var e=b.fieldValue(this,a);if(e&&e.constructor===Array)for(var p=0,x=e.length;p<x;p++)d.push({name:g,value:e[p]});else null!==e&&"undefined"!==typeof e&&d.push({name:this.name,value:e})}});return b.param(d)};b.fn.fieldValue=function(a){for(var d=[],g=0,e=this.length;g<e;g++){var p=b.fieldValue(this[g],a);null===p||"undefined"===typeof p||p.constructor===Array&&!p.length||(p.constructor===Array?b.merge(d,p):d.push(p))}return d};b.fieldValue=function(a,d){var g=
a.name,e=a.type,p=a.tagName.toLowerCase();"undefined"===typeof d&&(d=!0);if(d&&(!g||a.disabled||"reset"===e||"button"===e||("checkbox"===e||"radio"===e)&&!a.checked||("submit"===e||"image"===e)&&a.form&&a.form.clk!==a||"select"===p&&-1===a.selectedIndex))return null;if("select"===p){p=a.selectedIndex;if(0>p)return null;d=[];a=a.options;g=(e="select-one"===e)?p+1:a.length;for(p=e?p:0;p<g;p++){var x=a[p];if(x.selected&&!x.disabled){var A=x.value;A||(A=x.attributes&&x.attributes.value&&!x.attributes.value.specified?
x.text:x.value);if(e)return A;d.push(A)}}return d}return b(a).val().replace(w,"\r\n")};b.fn.clearForm=function(a){return this.each(function(){b("input,select,textarea",this).clearFields(a)})};b.fn.clearFields=b.fn.clearInputs=function(a){var d=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var g=this.type,e=this.tagName.toLowerCase();d.test(g)||"textarea"===e?this.value="":"checkbox"===g||"radio"===g?this.checked=!1:"select"===
e?this.selectedIndex=-1:"file"===g?/MSIE/.test(navigator.userAgent)?b(this).replaceWith(b(this).clone(!0)):b(this).val(""):a&&(!0===a&&/hidden/.test(g)||"string"===typeof a&&b(this).is(a))&&(this.value="")})};b.fn.resetForm=function(){return this.each(function(){var a=b(this),d=this.tagName.toLowerCase();switch(d){case "input":this.checked=this.defaultChecked;case "textarea":return this.value=this.defaultValue,!0;case "option":case "optgroup":var g=a.parents("select");g.length&&g[0].multiple?"option"===
d?this.selected=this.defaultSelected:a.find("option").resetForm():g.resetForm();return!0;case "select":return a.find("option").each(function(e){if((this.selected=this.defaultSelected)&&!a[0].multiple)return a[0].selectedIndex=e,!1}),!0;case "label":return d=b(a.attr("for")),g=a.find("input,select,textarea"),d[0]&&g.unshift(d[0]),g.resetForm(),!0;case "form":return("function"===typeof this.reset||"object"===typeof this.reset&&!this.reset.nodeType)&&this.reset(),!0;default:return a.find("form,input,label,select,textarea").resetForm(),
!0}})};b.fn.enable=function(a){"undefined"===typeof a&&(a=!0);return this.each(function(){this.disabled=!a})};b.fn.selected=function(a){"undefined"===typeof a&&(a=!0);return this.each(function(){var d=this.type;"checkbox"===d||"radio"===d?this.checked=a:"option"===this.tagName.toLowerCase()&&(d=b(this).parent("select"),a&&d[0]&&"select-one"===d[0].type&&d.find("option").selected(!1),this.selected=a)})};b.fn.ajaxSubmit.debug=!1});
