!function(r){"function"==typeofdefine&&define.amd?define(["jquery"],r):"object"==typeofmodule&&module.exports?module.exports=function(e,t){returnvoid0===t&&(t="undefined"!=typeofwindow?require("jquery"):require("jquery")(e)),r(t),t}:r(jQuery)}(function(q){"use strict";varp=/\r?\n/g,w={};w.fileapi=void0!==q('<input type="file">').get(0).files,w.formdata=void0!==window.FormData;var_=!!q.fn.prop;functioni(e){vart=e.data;e.isDefaultPrevented()||(e.preventDefault(),q(e.target).closest("form").ajaxSubmit(t))}functiono(e){vart=e.target,r=q(t);if(!r.is("[type=submit],[type=image]")){vara=r.closest("[type=submit]");if(0===a.length)return;t=a[0]}varn=t.form;if("image"===(n.clk=t).type)if(void0!==e.offsetX)n.clk_x=e.offsetX,n.clk_y=e.offsetY;elseif("function"==typeofq.fn.offset){vari=r.offset();n.clk_x=e.pageX-i.left,n.clk_y=e.pageY-i.top}elsen.clk_x=e.pageX-t.offsetLeft,n.clk_y=e.pageY-t.offsetTop;setTimeout(function(){n.clk=n.clk_x=n.clk_y=null},100)}functionN(){if(q.fn.ajaxSubmit.debug){vare="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(e):window.opera&&window.opera.postError&&window.opera.postError(e)}}q.fn.attr2=function(){if(!_)returnthis.attr.apply(this,arguments);vare=this.prop.apply(this,arguments);returne&&e.jquery||"string"==typeofe?e:this.attr.apply(this,arguments)},q.fn.ajaxSubmit=function(M,e,t,r){if(!this.length)returnN("ajaxSubmit: skipping submit process - no element selected"),this;varO,a,n,X=this;"function"==typeofM?M={success:M}:"string"==typeofM||!1===M&&0<arguments.length?(M={url:M,data:e,dataType:t},"function"==typeofr&&(M.success=r)):void0===M&&(M={}),O=M.method||M.type||this.attr2("method"),n=(n=(n="string"==typeof(a=M.url||this.attr2("action"))?q.trim(a):"")||window.location.href||"")&&(n.match(/^([^#]+)/)||[])[1],M=q.extend(!0,{url:n,success:q.ajaxSettings.success,type:O||q.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},M);vari={};if(this.trigger("form-pre-serialize",[this,M,i]),i.veto)returnN("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(M.beforeSerialize&&!1===M.beforeSerialize(this,M))returnN("ajaxSubmit: submit aborted via beforeSerialize callback"),this;varo=M.traditional;void0===o&&(o=q.ajaxSettings.traditional);vars,C=[],u=this.formToArray(M.semantic,C,M.filtering);if(M.data){varc=q.isFunction(M.data)?M.data(u):M.data;M.extraData=c,s=q.param(c,o)}if(M.beforeSubmit&&!1===M.beforeSubmit(u,this,M))returnN("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[u,this,M,i]),i.veto)returnN("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;varl=q.param(u,o);s&&(l=l?l+"&"+s:s),"GET"===M.type.toUpperCase()?(M.url+=(0<=M.url.indexOf("?")?"&":"?")+l,M.data=null):M.data=l;varf=[];if(M.resetForm&&f.push(function(){X.resetForm()}),M.clearForm&&f.push(function(){X.clearForm(M.includeHidden)}),!M.dataType&&M.target){vard=M.success||function(){};f.push(function(e,t,r){vara=arguments,n=M.replaceTarget?"replaceWith":"html";q(M.target)[n](e).each(function(){d.apply(this,a)})})}elseM.success&&(q.isArray(M.success)?q.merge(f,M.success):f.push(M.success));if(M.success=function(e,t,r){for(vara=M.context||this,n=0,i=f.length;n<i;n++)f[n].apply(a,[e,t,r||X,X])},M.error){varp=M.error;M.error=function(e,t,r){vara=M.context||this;p.apply(a,[e,t,r,X])}}if(M.complete){varm=M.complete;M.complete=function(e,t){varr=M.context||this;m.apply(r,[e,t,X])}}varh=0<q("input[type=file]:enabled",this).filter(function(){return""!==q(this).val()}).length,v="multipart/form-data",g=X.attr("enctype")===v||X.attr("encoding")===v,x=w.fileapi&&w.formdata;N("fileAPI :"+x);vary,b=(h||g)&&!x;!1!==M.iframe&&(M.iframe||b)?M.closeKeepAlive?q.get(M.closeKeepAlive,function(){y=j(u)}):y=j(u):y=(h||g)&&x?function(e){for(varr=newFormData,t=0;t<e.length;t++)r.append(e[t].name,e[t].value);if(M.extraData){vara=function(e){vart,r,a=q.param(e,M.traditional).split("&"),n=a.length,i=[];for(t=0;t<n;t++)a[t]=