!function(r){"function"==typeof define&&define.amd?define(["jquery"],r):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),r(t),t}:r(jQuery)}(function(O){"use strict";var d=/\r?\n/g,v={};v.fileapi=void 0!==O('').get(0).files,v.formdata=void 0!==window.FormData;var X=!!O.fn.prop;function o(e){var t=e.data;e.isDefaultPrevented()||(e.preventDefault(),O(e.target).closest("form").ajaxSubmit(t))}function i(e){var t=e.target,r=O(t);if(!r.is("[type=submit],[type=image]")){var a=r.closest("[type=submit]");if(0===a.length)return;t=a[0]}var n=t.form;"image"===(n.clk=t).type&&(void 0!==e.offsetX?(n.clk_x=e.offsetX,n.clk_y=e.offsetY):"function"==typeof O.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)}function C(){var e;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)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},O.fn.ajaxSubmit=function(F,e,t,r){if(!this.length)return C("ajaxSubmit: skipping submit process - no element selected"),this;var L,E=this;"function"==typeof F?F={success:F}:"string"==typeof F||!1===F&&0',h)).css({position:"absolute",top:"-1000px",left:"-1000px"}),c=u[0],l={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(e){var t="timeout"===e?"timeout":"aborted";C("aborting upload... "+t),this.aborted=1;try{c.contentWindow.document.execCommand&&c.contentWindow.document.execCommand("Stop")}catch(e){}u.attr("src",i.iframeSrc),l.error=t,i.error&&i.error.call(i.context,l,t,e),s&&O.event.trigger("ajaxError",[l,i,t]),i.complete&&i.complete.call(i.context,l,t)}},(s=i.global)&&0==O.active++&&O.event.trigger("ajaxStart"),s&&O.event.trigger("ajaxSend",[l,i]),i.beforeSend&&!1===i.beforeSend.call(i.context,l,i))return i.global&&O.active--,m.reject(),m;if(l.aborted)return m.reject(),m;(e=p.clk)&&(a=e.name)&&!e.disabled&&(i.extraData=i.extraData||{},i.extraData[a]=e.value,"image"===e.type&&(i.extraData[a+".x"]=p.clk_x,i.extraData[a+".y"]=p.clk_y));var g=1,x=2;function y(t){var r=null;try{t.contentWindow&&(r=t.contentWindow.document)}catch(e){C("cannot get iframe.contentWindow document: "+e)}if(r)return r;try{r=t.contentDocument||t.document}catch(e){C("cannot get iframe.contentDocument: "+e),r=t.document}return r}var e=O("meta[name=csrf-token]").attr("content"),a=O("meta[name=csrf-param]").attr("content");function n(){var e=E.attr2("target"),t=E.attr2("action"),r=E.attr("enctype")||E.attr("encoding")||"multipart/form-data";p.setAttribute("target",o),L&&!/post/i.test(L)||p.setAttribute("method","POST"),t!==i.url&&p.setAttribute("action",i.url),i.skipEncodingOverride||L&&!/post/i.test(L)||E.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),i.timeout&&(d=setTimeout(function(){f=!0,S(g)},i.timeout));var a=[];try{if(i.extraData)for(var n in i.extraData)i.extraData.hasOwnProperty(n)&&(O.isPlainObject(i.extraData[n])&&i.extraData[n].hasOwnProperty("name")&&i.extraData[n].hasOwnProperty("value")?a.push(O('',h).val(i.extraData[n].value).appendTo(p)[0]):a.push(O('',h).val(i.extraData[n]).appendTo(p)[0]));i.iframeTarget||u.appendTo(v),c.attachEvent?c.attachEvent("onload",S):c.addEventListener("load",S,!1),setTimeout(function e(){try{var t=y(c).readyState;C("state = "+t),t&&"uninitialized"===t.toLowerCase()&&setTimeout(e,50)}catch(e){C("Server abort: ",e," (",e.name,")"),S(x),d&&clearTimeout(d),d=void 0}},15);try{p.submit()}catch(e){document.createElement("form").submit.apply(p)}}finally{p.setAttribute("action",t),p.setAttribute("enctype",r),e?p.setAttribute("target",e):E.removeAttr("target"),O(a).remove()}}a&&e&&(i.extraData=i.extraData||{},i.extraData[a]=e),i.forceSync?n():setTimeout(n,10);var b,T,j,w=50;function S(e){if(!l.aborted&&!j){if((T=y(c))||(C("cannot access response document"),e=x),e===g&&l)return l.abort("timeout"),void m.reject(l,"timeout");if(e===x&&l)return l.abort("server abort"),void m.reject(l,"error","server abort");if(T&&T.location.href!==i.iframeSrc||f){c.detachEvent?c.detachEvent("onload",S):c.removeEventListener("load",S,!1);var t,r="success";try{if(f)throw"timeout";var a="xml"===i.dataType||T.XMLDocument||O.isXMLDoc(T);if(C("isXml="+a),!a&&window.opera&&(null===T.body||!T.body.innerHTML)&&--w)return C("requeing onLoad callback, DOM not available"),void setTimeout(S,250);var n=T.body||T.documentElement;l.responseText=n?n.innerHTML:null,l.responseXML=T.XMLDocument||T,a&&(i.dataType="xml"),l.getResponseHeader=function(e){return{"content-type":i.dataType}[e.toLowerCase()]},n&&(l.status=Number(n.getAttribute("status"))||l.status,l.statusText=n.getAttribute("statusText")||l.statusText);var o=(i.dataType||"").toLowerCase(),a=/(json|script|text)/.test(o);a||i.textarea?(n=T.getElementsByTagName("textarea")[0])?(l.responseText=n.value,l.status=Number(n.getAttribute("status"))||l.status,l.statusText=n.getAttribute("statusText")||l.statusText):a&&(n=T.getElementsByTagName("pre")[0],a=T.getElementsByTagName("body")[0],n?l.responseText=n.textContent||n.innerText:a&&(l.responseText=a.textContent||a.innerText)):"xml"===o&&!l.responseXML&&l.responseText&&(l.responseXML=k(l.responseText));try{b=A(l,o,i)}catch(e){r="parsererror",l.error=t=e||r}}catch(e){C("error caught: ",e),r="error",l.error=t=e||r}l.aborted&&(C("upload aborted"),r=null),"success"===(r=l.status?200<=l.status&&l.status<300||304===l.status?"success":"error":r)?(i.success&&i.success.call(i.context,b,"success",l),m.resolve(l.responseText,"success",l),s&&O.event.trigger("ajaxSuccess",[l,i])):r&&(void 0===t&&(t=l.statusText),i.error&&i.error.call(i.context,l,r,t),m.reject(l,"error",t),s&&O.event.trigger("ajaxError",[l,i,t])),s&&O.event.trigger("ajaxComplete",[l,i]),s&&!--O.active&&O.event.trigger("ajaxStop"),i.complete&&i.complete.call(i.context,l,r),j=!0,i.timeout&&clearTimeout(d),setTimeout(function(){i.iframeTarget?u.attr("src",i.iframeSrc):u.remove(),l.responseXML=null},100)}}}var k=O.parseXML||function(e,t){return window.ActiveXObject?((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!==t.documentElement.nodeName?t:null},D=O.parseJSON||function(e){return window.eval("("+e+")")},A=function(e,t,r){var a=e.getResponseHeader("content-type")||"",n=("xml"===t||!t)&&0<=a.indexOf("xml"),e=n?e.responseXML:e.responseText;return n&&"parsererror"===e.documentElement.nodeName&&O.error&&O.error("parsererror"),"string"==typeof(e=r&&r.dataFilter?r.dataFilter(e,t):e)&&(("json"===t||!t)&&0<=a.indexOf("json")?e=D(e):("script"===t||!t)&&0<=a.indexOf("javascript")&&O.globalEval(e)),e};return m}},O.fn.ajaxForm=function(e,t,r,a){if(("string"==typeof e||!1===e&&0