!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(O){"use strict";vard=/\r?\n/g,v={};v.fileapi=void0!==O('<input type="file">').get(0).files,v.formdata=void0!==window.FormData;varX=!!O.fn.prop;functiono(e){vart=e.data;e.isDefaultPrevented()||(e.preventDefault(),O(e.target).closest("form").ajaxSubmit(t))}functioni(e){vart=e.target,r=O(t);if(!r.is("[type=submit],[type=image]")){vara=r.closest("[type=submit]");if(0===a.length)return;t=a[0]}varn=t.form;"image"===(n.clk=t).type&&(void0!==e.offsetX?(n.clk_x=e.offsetX,n.clk_y=e.offsetY):"function"==typeofO.fn.offset?(r=r.offset(),n.clk_x=e.pageX-r.left,n.clk_y=e.pageY-r.top):(n.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)}functionC(){vare;O.fn.ajaxSubmit.debug&&(e="[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))}O.fn.attr2=function(){if(!X)returnthis.attr.apply(this,arguments);vare=this.prop.apply(this,arguments);returne&&e.jquery||"string"==typeofe?e:this.attr.apply(this,arguments)},O.fn.ajaxSubmit=function(F,e,t,r){if(!this.length)returnC("ajaxSubmit: skipping submit process - no element selected"),this;varL,E=this;"function"==typeofF?F={success:F}:"string"==typeofF||!1===F&&0<arguments.length?(F={url:F,data:e,dataType:t},"function"==typeofr&&(F.success=r)):void0===F&&(F={}),L=F.method||F.type||this.attr2("method"),r=(r=(r="string"==typeof(t=F.url||this.attr2("action"))?O.trim(t):"")||window.location.href||"")&&(r.match(/^([^#]+)/)||[])[1],F=O.extend(!0,{url:r,success:O.ajaxSettings.success,type:L||O.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},F);t={};if(this.trigger("form-pre-serialize",[this,F,t]),t.veto)returnC("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(F.beforeSerialize&&!1===F.beforeSerialize(this,F))returnC("ajaxSubmit: submit aborted via beforeSerialize callback"),this;r=F.traditional;void0===r&&(r=O.ajaxSettings.traditional);varM=[],a=this.formToArray(F.semantic,M,F.filtering);if(F.data&&(n=O.isFunction(F.data)?F.data(a):F.data,F.extraData=n,c=O.param(n,r)),F.beforeSubmit&&!1===F.beforeSubmit(a,this,F))returnC("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[a,this,F,t]),t.veto)returnC("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;varn=O.param(a,r);c&&(n=n?n+"&"+c:c),"GET"===F.type.toUpperCase()?(F.url+=(0<=F.url.indexOf("?")?"&":"?")+n,F.data=null):F.data=n;varo,i,s,u=[];F.resetForm&&u.push(function(){E.resetForm()}),F.clearForm&&u.push(function(){E.clearForm(F.includeHidden)}),!F.dataType&&F.target?(o=F.success||function(){},u.push(function(e,t,r){vara=arguments,n=F.replaceTarget?"replaceWith":"html";O(F.target)[n](e).each(function(){o.apply(this,a)})})):F.success&&(O.isArray(F.success)?O.merge(u,F.success):u.push(F.success)),F.success=function(e,t,r){for(vara=F.context||this,n=0,o=u.length;n<o;n++)u[n].apply(a,[e,t,r||E,E])},F.error&&(i=F.error,F.error=function(e,t,r){vara=F.context||this;i.apply(a,[e,t,r,E])}),F.complete&&(s=F.complete,F.complete=function(e,t){varr=F.context||this;s.apply(r,[e,t,E])});vart=0<O("input[type=file]:enabled",this).filter(function(){return""!==O(this).val()}).length,r="multipart/form-data",c=E.attr("enctype")===r||E.attr("encoding")===r,n=v.fileapi&&v.formdata;C("fileAPI :"+n);varl,r=(t||c)&&!n;!1!==F.iframe&&(F.iframe||r)?F.closeKeepAlive?O.get(F.closeKeepAlive,function(){l=d(a)}):l=d(a):l=(t||c)&&n?function(e){for(varr=newFormData,t=0;t<e.length;t++)r.append(e[t].name,e[t].value);if(F.extraData){vara=function(e){vart,r,a=O.param(e,F.traditional).split("&"),n=a.length,o=[];for(t=0;t<n;t++)a[t]=a[t].replace(/\+/g," "),r=a[t].split("="),o.push(