sweetalert2.all.min.js 48 KB

1
  1. !function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):n.Sweetalert2=e()}(this,function(){"use strict";var n={title:"",titleText:"",text:"",html:"",type:null,customClass:"",target:"body",animation:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,showConfirmButton:!0,showCancelButton:!1,preConfirm:null,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:"#3085d6",confirmButtonClass:null,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:"#aaa",cancelButtonClass:null,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusCancel:!1,showCloseButton:!1,closeButtonAriaLabel:"Close this dialog",showLoaderOnConfirm:!1,imageUrl:null,imageWidth:null,imageHeight:null,imageAlt:"",imageClass:null,timer:null,width:500,padding:20,background:"#fff",input:null,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputClass:null,inputAttributes:{},inputValidator:null,grow:!1,position:"center",progressSteps:[],currentProgressStep:null,progressStepsDistance:"40px",onBeforeOpen:null,onOpen:null,onClose:null,useRejections:!0},e=function(n){var e={};for(var t in n)e[n[t]]="swal2-"+n[t];return e},t=e(["container","shown","iosfix","modal","overlay","fade","show","hide","noanimation","close","title","content","buttonswrapper","confirm","cancel","icon","image","input","file","range","select","radio","checkbox","textarea","inputerror","validationerror","progresssteps","activeprogressstep","progresscircle","progressline","loading","styled","top","top-left","top-right","center","center-left","center-right","bottom","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen"]),o=e(["success","warning","info","question","error"]),a=function(n,e){(n=String(n).replace(/[^0-9a-f]/gi,"")).length<6&&(n=n[0]+n[0]+n[1]+n[1]+n[2]+n[2]),e=e||0;for(var t="#",o=0;o<3;o++){var a=parseInt(n.substr(2*o,2),16);t+=("00"+(a=Math.round(Math.min(Math.max(0,a+a*e),255)).toString(16))).substr(a.length)}return t},r=function(n){console.warn("SweetAlert2: "+n)},i=function(n){console.error("SweetAlert2: "+n)},s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},l=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},c=l({},n),d=[];"undefined"==typeof Promise&&i("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/limonte/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)");var u=function(n){("string"==typeof n.target&&!document.querySelector(n.target)||"string"!=typeof n.target&&!n.target.appendChild)&&(r('Target parameter is not valid, defaulting to "body"'),n.target="body");var e=void 0,a=h(),l="string"==typeof n.target?document.querySelector(n.target):n.target;e=a&&l&&a.parentNode!==l.parentNode?g(n):a||g(n);for(var c in n)m.isValidParameter(c)||r('Unknown parameter "'+c+'"');e.style.width="number"==typeof n.width?n.width+"px":n.width,e.style.padding=n.padding+"px",e.style.background=n.background;for(var d=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),u=0;u<d.length;u++)d[u].style.background=n.background;var p=x(),w=v(),f=C(),b=L(),k=E(),B=P(),q=T();if(n.titleText?w.innerText=n.titleText:w.innerHTML=n.title.split("\n").join("<br />"),n.text||n.html){if("object"===s(n.html))if(f.innerHTML="",0 in n.html)for(var z=0;z in n.html;z++)f.appendChild(n.html[z].cloneNode(!0));else f.appendChild(n.html.cloneNode(!0));else n.html?f.innerHTML=n.html:n.text&&(f.textContent=n.text);M(f)}else H(f);if(n.position in t&&O(p,t[n.position]),n.grow&&"string"==typeof n.grow){var V="grow-"+n.grow;V in t&&O(p,t[V])}n.showCloseButton?(q.setAttribute("aria-label",n.closeButtonAriaLabel),M(q)):H(q),e.className=t.modal,n.customClass&&O(e,n.customClass);var N=A(),I=parseInt(null===n.currentProgressStep?m.getQueueStep():n.currentProgressStep,10);n.progressSteps.length?(M(N),R(N),I>=n.progressSteps.length&&r("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.progressSteps.forEach(function(e,o){var a=document.createElement("li");if(O(a,t.progresscircle),a.innerHTML=e,o===I&&O(a,t.activeprogressstep),N.appendChild(a),o!==n.progressSteps.length-1){var r=document.createElement("li");O(r,t.progressline),r.style.width=n.progressStepsDistance,N.appendChild(r)}})):H(N);for(var W=y(),D=0;D<W.length;D++)H(W[D]);if(n.type){var K=!1;for(var X in o)if(n.type===X){K=!0;break}if(!K)return i("Unknown alert type: "+n.type),!1;var $=e.querySelector("."+t.icon+"."+o[n.type]);if(M($),n.animation)switch(n.type){case"success":O($,"swal2-animate-success-icon"),O($.querySelector(".swal2-success-line-tip"),"swal2-animate-success-line-tip"),O($.querySelector(".swal2-success-line-long"),"swal2-animate-success-line-long");break;case"error":O($,"swal2-animate-error-icon"),O($.querySelector(".swal2-x-mark"),"swal2-animate-x-mark")}}var Z=S();n.imageUrl?(Z.setAttribute("src",n.imageUrl),Z.setAttribute("alt",n.imageAlt),M(Z),n.imageWidth?Z.setAttribute("width",n.imageWidth):Z.removeAttribute("width"),n.imageHeight?Z.setAttribute("height",n.imageHeight):Z.removeAttribute("height"),Z.className=t.image,n.imageClass&&O(Z,n.imageClass)):H(Z),n.showCancelButton?B.style.display="inline-block":H(B),n.showConfirmButton?U(k,"display"):H(k),n.showConfirmButton||n.showCancelButton?M(b):H(b),k.innerHTML=n.confirmButtonText,B.innerHTML=n.cancelButtonText,k.setAttribute("aria-label",n.confirmButtonAriaLabel),B.setAttribute("aria-label",n.cancelButtonAriaLabel),n.buttonsStyling&&(k.style.backgroundColor=n.confirmButtonColor,B.style.backgroundColor=n.cancelButtonColor),k.className=t.confirm,O(k,n.confirmButtonClass),B.className=t.cancel,O(B,n.cancelButtonClass),n.buttonsStyling?(O(k,t.styled),O(B,t.styled)):(j(k,t.styled),j(B,t.styled),k.style.backgroundColor=k.style.borderLeftColor=k.style.borderRightColor="",B.style.backgroundColor=B.style.borderLeftColor=B.style.borderRightColor=""),!0===n.animation?j(e,t.noanimation):O(e,t.noanimation),n.showLoaderOnConfirm&&!n.preConfirm&&r("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://limonte.github.io/sweetalert2/#ajax-request")},p=function(){null===f.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(f.previousBodyPadding=document.body.style.paddingRight,document.body.style.paddingRight=K()+"px")},w=function(){if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&!z(document.body,t.iosfix)){var n=document.body.scrollTop;document.body.style.top=-1*n+"px",O(document.body,t.iosfix)}},m=function n(){for(var e=arguments.length,o=Array(e),r=0;r<e;r++)o[r]=arguments[r];if(void 0===o[0])return i("SweetAlert2 expects at least 1 attribute!"),!1;var d=l({},c);switch(s(o[0])){case"string":d.title=o[0],d.html=o[1],d.type=o[2];break;case"object":l(d,o[0]),d.extraParams=o[0].extraParams,"email"===d.input&&null===d.inputValidator&&(d.inputValidator=function(n){return new Promise(function(e,t){/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/.test(n)?e():t("Invalid email address")})}),"url"===d.input&&null===d.inputValidator&&(d.inputValidator=function(n){return new Promise(function(e,t){/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)$/.test(n)?e():t("Invalid URL")})});break;default:return i('Unexpected type of argument! Expected "string" or "object", got '+s(o[0])),!1}u(d);var m=x(),g=h();return new Promise(function(e,o){d.timer&&(g.timeout=setTimeout(function(){n.closeModal(d.onClose),d.useRejections?o("timer"):e({dismiss:"timer"})},d.timer));var r=function(n){if(!(n=n||d.input))return null;switch(n){case"select":case"textarea":case"file":return N(g,t[n]);case"checkbox":return g.querySelector("."+t.checkbox+" input");case"radio":return g.querySelector("."+t.radio+" input:checked")||g.querySelector("."+t.radio+" input:first-child");case"range":return g.querySelector("."+t.range+" input");default:return N(g,t.input)}};d.input&&setTimeout(function(){var n=r();n&&V(n)},0);for(var l=function(t){d.showLoaderOnConfirm&&n.showLoading(),d.preConfirm?d.preConfirm(t,d.extraParams).then(function(o){n.closeModal(d.onClose),e(o||t)},function(e){n.hideLoading(),e&&n.showValidationError(e)}):(n.closeModal(d.onClose),e(d.useRejections?t:{value:t}))},c=function(t){var i=t||window.event,s=i.target||i.srcElement,c=E(),u=P(),p=c&&(c===s||c.contains(s)),w=u&&(u===s||u.contains(s));switch(i.type){case"mouseover":case"mouseup":d.buttonsStyling&&(p?c.style.backgroundColor=a(d.confirmButtonColor,-.1):w&&(u.style.backgroundColor=a(d.cancelButtonColor,-.1)));break;case"mouseout":d.buttonsStyling&&(p?c.style.backgroundColor=d.confirmButtonColor:w&&(u.style.backgroundColor=d.cancelButtonColor));break;case"mousedown":d.buttonsStyling&&(p?c.style.backgroundColor=a(d.confirmButtonColor,-.2):w&&(u.style.backgroundColor=a(d.cancelButtonColor,-.2)));break;case"click":if(p&&n.isVisible())if(n.disableButtons(),d.input){var m=function(){var n=r();if(!n)return null;switch(d.input){case"checkbox":return n.checked?1:0;case"radio":return n.checked?n.value:null;case"file":return n.files.length?n.files[0]:null;default:return d.inputAutoTrim?n.value.trim():n.value}}();d.inputValidator?(n.disableInput(),d.inputValidator(m,d.extraParams).then(function(){n.enableButtons(),n.enableInput(),l(m)},function(e){n.enableButtons(),n.enableInput(),e&&n.showValidationError(e)})):l(m)}else l(!0);else w&&n.isVisible()&&(n.disableButtons(),n.closeModal(d.onClose),d.useRejections?o("cancel"):e({dismiss:"cancel"}))}},b=g.querySelectorAll("button"),y=0;y<b.length;y++)b[y].onclick=c,b[y].onmouseover=c,b[y].onmouseout=c,b[y].onmousedown=c;T().onclick=function(){n.closeModal(d.onClose),d.useRejections?o("close"):e({dismiss:"close"})},m.onclick=function(t){t.target===m&&d.allowOutsideClick&&(n.closeModal(d.onClose),d.useRejections?o("overlay"):e({dismiss:"overlay"}))};var k=L(),R=E(),U=P();d.reverseButtons?R.parentNode.insertBefore(U,R):R.parentNode.insertBefore(R,U);var D=function(n,e){for(var t=q(d.focusCancel),o=0;o<t.length;o++){(n+=e)===t.length?n=0:-1===n&&(n=t.length-1);var a=t[n];if(I(a))return a.focus()}},K=function(t){var a=t||window.event;if("Enter"===a.key){if(a.target===r()){if("textarea"===a.target.tagName.toLowerCase())return;n.clickConfirm(),a.preventDefault()}}else if("Tab"===a.key){for(var i=a.target||a.srcElement,s=q(d.focusCancel),l=-1,c=0;c<s.length;c++)if(i===s[c]){l=c;break}a.shiftKey?D(l,-1):D(l,1),a.stopPropagation(),a.preventDefault()}else-1!==["ArrowLeft","ArrowRight","ArrowUp","Arrowdown"].indexOf(a.key)?document.activeElement===R&&I(U)?U.focus():document.activeElement===U&&I(R)&&R.focus():"Escape"!==a.key&&"Esc"!==a.key||!0!==d.allowEscapeKey||(n.closeModal(d.onClose),d.useRejections?o("esc"):e({dismiss:"esc"}))};window.onkeydown&&window.onkeydown.toString()===K.toString()||(f.previousWindowKeyDown=window.onkeydown,window.onkeydown=K),d.buttonsStyling&&(R.style.borderLeftColor=d.confirmButtonColor,R.style.borderRightColor=d.confirmButtonColor),n.hideLoading=n.disableLoading=function(){d.showConfirmButton||(H(R),d.showCancelButton||H(L())),j(k,t.loading),j(g,t.loading),g.removeAttribute("aria-busy"),R.disabled=!1,U.disabled=!1},n.getTitle=function(){return v()},n.getContent=function(){return C()},n.getInput=function(){return r()},n.getImage=function(){return S()},n.getButtonsWrapper=function(){return L()},n.getConfirmButton=function(){return E()},n.getCancelButton=function(){return P()},n.enableButtons=function(){R.disabled=!1,U.disabled=!1},n.disableButtons=function(){R.disabled=!0,U.disabled=!0},n.enableConfirmButton=function(){R.disabled=!1},n.disableConfirmButton=function(){R.disabled=!0},n.enableInput=function(){var n=r();if(!n)return!1;if("radio"===n.type)for(var e=n.parentNode.parentNode.querySelectorAll("input"),t=0;t<e.length;t++)e[t].disabled=!1;else n.disabled=!1},n.disableInput=function(){var n=r();if(!n)return!1;if(n&&"radio"===n.type)for(var e=n.parentNode.parentNode.querySelectorAll("input"),t=0;t<e.length;t++)e[t].disabled=!0;else n.disabled=!0},n.showValidationError=function(n){var e=B();e.innerHTML=n,M(e);var o=r();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedBy",t.validationerror),V(o),O(o,t.inputerror))},n.resetValidationError=function(){var n=B();H(n);var e=r();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedBy"),j(e,t.inputerror))},n.getProgressSteps=function(){return d.progressSteps},n.setProgressSteps=function(n){d.progressSteps=n,u(d)},n.showProgressSteps=function(){M(A())},n.hideProgressSteps=function(){H(A())},n.enableButtons(),n.hideLoading(),n.resetValidationError();for(var X=["input","file","range","select","radio","checkbox","textarea"],$=void 0,Z=0;Z<X.length;Z++){var Q=t[X[Z]],Y=N(g,Q);if($=r(X[Z])){for(var _ in $.attributes)if($.attributes.hasOwnProperty(_)){var J=$.attributes[_].name;"type"!==J&&"value"!==J&&$.removeAttribute(J)}for(var F in d.inputAttributes)$.setAttribute(F,d.inputAttributes[F])}Y.className=Q,d.inputClass&&O(Y,d.inputClass),H(Y)}var G=void 0;switch(d.input){case"text":case"email":case"password":case"number":case"tel":case"url":($=N(g,t.input)).value=d.inputValue,$.placeholder=d.inputPlaceholder,$.type=d.input,M($);break;case"file":($=N(g,t.file)).placeholder=d.inputPlaceholder,$.type=d.input,M($);break;case"range":var nn=N(g,t.range),en=nn.querySelector("input"),tn=nn.querySelector("output");en.value=d.inputValue,en.type=d.input,tn.value=d.inputValue,M(nn);break;case"select":var on=N(g,t.select);if(on.innerHTML="",d.inputPlaceholder){var an=document.createElement("option");an.innerHTML=d.inputPlaceholder,an.value="",an.disabled=!0,an.selected=!0,on.appendChild(an)}G=function(n){for(var e in n){var t=document.createElement("option");t.value=e,t.innerHTML=n[e],d.inputValue.toString()===e&&(t.selected=!0),on.appendChild(t)}M(on),on.focus()};break;case"radio":var rn=N(g,t.radio);rn.innerHTML="",G=function(n){for(var e in n){var o=document.createElement("input"),a=document.createElement("label"),r=document.createElement("span");o.type="radio",o.name=t.radio,o.value=e,d.inputValue.toString()===e&&(o.checked=!0),r.innerHTML=n[e],a.appendChild(o),a.appendChild(r),a.for=o.id,rn.appendChild(a)}M(rn);var i=rn.querySelectorAll("input");i.length&&i[0].focus()};break;case"checkbox":var sn=N(g,t.checkbox),ln=r("checkbox");ln.type="checkbox",ln.value=1,ln.id=t.checkbox,ln.checked=Boolean(d.inputValue);var cn=sn.getElementsByTagName("span");cn.length&&sn.removeChild(cn[0]),(cn=document.createElement("span")).innerHTML=d.inputPlaceholder,sn.appendChild(cn),M(sn);break;case"textarea":var dn=N(g,t.textarea);dn.value=d.inputValue,dn.placeholder=d.inputPlaceholder,M(dn);break;case null:break;default:i('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'+d.input+'"')}"select"!==d.input&&"radio"!==d.input||(d.inputOptions instanceof Promise?(n.showLoading(),d.inputOptions.then(function(e){n.hideLoading(),G(e)})):"object"===s(d.inputOptions)?G(d.inputOptions):i("Unexpected type of inputOptions! Expected object or Promise, got "+s(d.inputOptions))),function(n,e,o){var a=x(),r=h();null!==e&&"function"==typeof e&&e(r),n?(O(r,t.show),O(a,t.fade),j(r,t.hide)):j(r,t.fade),M(r),a.style.overflowY="hidden",W&&!z(r,t.noanimation)?r.addEventListener(W,function n(){r.removeEventListener(W,n),a.style.overflowY="auto"}):a.style.overflowY="auto",O(document.documentElement,t.shown),O(document.body,t.shown),O(a,t.shown),p(),w(),f.previousActiveElement=document.activeElement,null!==o&&"function"==typeof o&&setTimeout(function(){o(r)})}(d.animation,d.onBeforeOpen,d.onOpen),d.allowEnterKey?d.focusCancel&&I(U)?U.focus():d.focusConfirm&&I(R)?R.focus():D(-1,1):document.activeElement&&document.activeElement.blur(),x().scrollTop=0})};m.isVisible=function(){return!!h()},m.queue=function(n){d=n;var e=function(){d=[],document.body.removeAttribute("data-swal2-queue-step")},t=[];return new Promise(function(n,o){!function a(r,i){r<d.length?(document.body.setAttribute("data-swal2-queue-step",r),m(d[r]).then(function(n){t.push(n),a(r+1,i)},function(n){e(),o(n)})):(e(),n(t))}(0)})},m.getQueueStep=function(){return document.body.getAttribute("data-swal2-queue-step")},m.insertQueueStep=function(n,e){return e&&e<d.length?d.splice(e,0,n):d.push(n)},m.deleteQueueStep=function(n){void 0!==d[n]&&d.splice(n,1)},m.close=m.closeModal=function(n){var e=x(),o=h();if(o){j(o,t.show),O(o,t.hide),clearTimeout(o.timeout),D();var a=function(){e.parentNode&&e.parentNode.removeChild(e),j(document.documentElement,t.shown),j(document.body,t.shown),null!==f.previousBodyPadding&&(document.body.style.paddingRight=f.previousBodyPadding,f.previousBodyPadding=null),function(){if(z(document.body,t.iosfix)){var n=parseInt(document.body.style.top,10);j(document.body,t.iosfix),document.body.style.top="",document.body.scrollTop=-1*n}}()};W&&!z(o,t.noanimation)?o.addEventListener(W,function n(){o.removeEventListener(W,n),z(o,t.hide)&&a()}):a(),null!==n&&"function"==typeof n&&setTimeout(function(){n(o)})}},m.clickConfirm=function(){return E().click()},m.clickCancel=function(){return P().click()},m.showLoading=m.enableLoading=function(){var n=h();n||m(""),n=h();var e=L(),o=E(),a=P();M(e),M(o,"inline-block"),O(e,t.loading),O(n,t.loading),o.disabled=!0,a.disabled=!0,n.setAttribute("aria-busy",!0),n.focus()},m.isValidParameter=function(e){return n.hasOwnProperty(e)||"extraParams"===e},m.setDefaults=function(n){if(!n||"object"!==(void 0===n?"undefined":s(n)))return i("the argument for setDefaults() is required and has to be a object");for(var e in n)m.isValidParameter(e)||(r('Unknown parameter "'+e+'"'),delete n[e]);l(c,n)},m.resetDefaults=function(){c=l({},n)},m.noop=function(){},m.version="6.11.5",m.default=m;var f={previousWindowKeyDown:null,previousActiveElement:null,previousBodyPadding:null},g=function(n){var e=x();e&&e.parentNode.removeChild(e);{if("undefined"!=typeof document){var o=document.createElement("div");o.className=t.container,o.innerHTML=b;("string"==typeof n.target?document.querySelector(n.target):n.target).appendChild(o);var a=h(),r=N(a,t.input),s=N(a,t.file),l=a.querySelector("."+t.range+" input"),c=a.querySelector("."+t.range+" output"),d=N(a,t.select),u=a.querySelector("."+t.checkbox+" input"),p=N(a,t.textarea);return r.oninput=function(){m.resetValidationError()},s.onchange=function(){m.resetValidationError()},l.oninput=function(){m.resetValidationError(),c.value=l.value},l.onchange=function(){m.resetValidationError(),l.previousSibling.value=l.value},d.onchange=function(){m.resetValidationError()},u.onchange=function(){m.resetValidationError()},p.oninput=function(){m.resetValidationError()},a}i("SweetAlert2 requires document to initialize")}},b=('\n <div role="dialog" aria-modal="true" aria-labelledby="'+t.title+'" aria-describedby="'+t.content+'" class="'+t.modal+'" tabindex="-1">\n <ul class="'+t.progresssteps+'"></ul>\n <div class="'+t.icon+" "+o.error+'">\n <span class="swal2-x-mark"><span class="swal2-x-mark-line-left"></span><span class="swal2-x-mark-line-right"></span></span>\n </div>\n <div class="'+t.icon+" "+o.question+'">?</div>\n <div class="'+t.icon+" "+o.warning+'">!</div>\n <div class="'+t.icon+" "+o.info+'">i</div>\n <div class="'+t.icon+" "+o.success+'">\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n </div>\n <img class="'+t.image+'" />\n <h2 class="'+t.title+'" id="'+t.title+'"></h2>\n <div id="'+t.content+'" class="'+t.content+'"></div>\n <input class="'+t.input+'" />\n <input type="file" class="'+t.file+'" />\n <div class="'+t.range+'">\n <output></output>\n <input type="range" />\n </div>\n <select class="'+t.select+'"></select>\n <div class="'+t.radio+'"></div>\n <label for="'+t.checkbox+'" class="'+t.checkbox+'">\n <input type="checkbox" />\n </label>\n <textarea class="'+t.textarea+'"></textarea>\n <div class="'+t.validationerror+'" id="'+t.validationerror+'"></div>\n <div class="'+t.buttonswrapper+'">\n <button type="button" class="'+t.confirm+'">OK</button>\n <button type="button" class="'+t.cancel+'">Cancel</button>\n </div>\n <button type="button" class="'+t.close+'">×</button>\n </div>\n').replace(/(^|\n)\s*/g,""),x=function(){return document.body.querySelector("."+t.container)},h=function(){return x()?x().querySelector("."+t.modal):null},y=function(){return h().querySelectorAll("."+t.icon)},k=function(n){return x()?x().querySelector("."+n):null},v=function(){return k(t.title)},C=function(){return k(t.content)},S=function(){return k(t.image)},A=function(){return k(t.progresssteps)},B=function(){return k(t.validationerror)},E=function(){return k(t.confirm)},P=function(){return k(t.cancel)},L=function(){return k(t.buttonswrapper)},T=function(){return k(t.close)},q=function(){var n=Array.from(h().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(function(n,e){return n=parseInt(n.getAttribute("tabindex")),e=parseInt(e.getAttribute("tabindex")),n>e?1:n<e?-1:0}),e=Array.prototype.slice.call(h().querySelectorAll('button, input:not([type=hidden]), textarea, select, a, [tabindex="0"]'));return function(n){var e=[];for(var t in n)-1===e.indexOf(n[t])&&e.push(n[t]);return e}(n.concat(e))},z=function(n,e){return!!n.classList&&n.classList.contains(e)},V=function(n){if(n.focus(),"file"!==n.type){var e=n.value;n.value="",n.value=e}},O=function(n,e){if(n&&e){e.split(/\s+/).filter(Boolean).forEach(function(e){n.classList.add(e)})}},j=function(n,e){if(n&&e){e.split(/\s+/).filter(Boolean).forEach(function(e){n.classList.remove(e)})}},N=function(n,e){for(var t=0;t<n.childNodes.length;t++)if(z(n.childNodes[t],e))return n.childNodes[t]},M=function(n,e){e||(e="block"),n.style.opacity="",n.style.display=e},H=function(n){n.style.opacity="",n.style.display="none"},R=function(n){for(;n.firstChild;)n.removeChild(n.firstChild)},I=function(n){return n.offsetWidth||n.offsetHeight||n.getClientRects().length},U=function(n,e){n.style.removeProperty?n.style.removeProperty(e):n.style.removeAttribute(e)},W=function(){var n=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var t in e)if(e.hasOwnProperty(t)&&void 0!==n.style[t])return e[t];return!1}(),D=function(){if(window.onkeydown=f.previousWindowKeyDown,f.previousActiveElement&&f.previousActiveElement.focus){var n=window.scrollX,e=window.scrollY;f.previousActiveElement.focus(),n&&e&&window.scrollTo(n,e)}},K=function(){if("ontouchstart"in window||navigator.msMaxTouchPoints)return 0;var n=document.createElement("div");n.style.width="50px",n.style.height="50px",n.style.overflow="scroll",document.body.appendChild(n);var e=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),e};return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.type="text/css",e.appendChild(t),t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n))}("body.swal2-shown {\n overflow-y: hidden; }\n\nbody.swal2-iosfix {\n position: fixed;\n left: 0;\n right: 0; }\n\n.swal2-container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n padding: 10px;\n background-color: transparent;\n z-index: 1060; }\n .swal2-container.swal2-top {\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start; }\n .swal2-container.swal2-top-left {\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start; }\n .swal2-container.swal2-top-right {\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end; }\n .swal2-container.swal2-center {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center; }\n .swal2-container.swal2-center-left {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start; }\n .swal2-container.swal2-center-right {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end; }\n .swal2-container.swal2-bottom {\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end; }\n .swal2-container.swal2-bottom-left {\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start; }\n .swal2-container.swal2-bottom-right {\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end; }\n .swal2-container.swal2-grow-fullscreen > .swal2-modal {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n -ms-flex-item-align: stretch;\n align-self: stretch;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center; }\n .swal2-container.swal2-grow-row > .swal2-modal {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n -ms-flex-line-pack: center;\n align-content: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center; }\n .swal2-container.swal2-grow-column {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column; }\n .swal2-container.swal2-grow-column.swal2-top, .swal2-container.swal2-grow-column.swal2-center, .swal2-container.swal2-grow-column.swal2-bottom {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center; }\n .swal2-container.swal2-grow-column.swal2-top-left, .swal2-container.swal2-grow-column.swal2-center-left, .swal2-container.swal2-grow-column.swal2-bottom-left {\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start; }\n .swal2-container.swal2-grow-column.swal2-top-right, .swal2-container.swal2-grow-column.swal2-center-right, .swal2-container.swal2-grow-column.swal2-bottom-right {\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end; }\n .swal2-container.swal2-grow-column > .swal2-modal {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n -ms-flex-line-pack: center;\n align-content: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center; }\n .swal2-container:not(.swal2-top):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-left):not(.swal2-bottom-right) > .swal2-modal {\n margin: auto; }\n @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .swal2-container .swal2-modal {\n margin: 0 !important; } }\n .swal2-container.swal2-fade {\n -webkit-transition: background-color .1s;\n transition: background-color .1s; }\n .swal2-container.swal2-shown {\n background-color: rgba(0, 0, 0, 0.4); }\n\n.swal2-modal {\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n background-color: #fff;\n font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;\n border-radius: 5px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n text-align: center;\n overflow-x: hidden;\n overflow-y: auto;\n display: none;\n position: relative;\n max-width: 100%; }\n .swal2-modal:focus {\n outline: none; }\n .swal2-modal.swal2-loading {\n overflow-y: hidden; }\n .swal2-modal .swal2-title {\n color: #595959;\n font-size: 30px;\n text-align: center;\n font-weight: 600;\n text-transform: none;\n position: relative;\n margin: 0 0 .4em;\n padding: 0;\n display: block;\n word-wrap: break-word; }\n .swal2-modal .swal2-buttonswrapper {\n margin-top: 15px; }\n .swal2-modal .swal2-buttonswrapper:not(.swal2-loading) .swal2-styled[disabled] {\n opacity: .4;\n cursor: no-drop; }\n .swal2-modal .swal2-buttonswrapper.swal2-loading .swal2-styled.swal2-confirm {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n border: 4px solid transparent;\n border-color: transparent;\n width: 40px;\n height: 40px;\n padding: 0;\n margin: 7.5px;\n vertical-align: top;\n background-color: transparent !important;\n color: transparent;\n cursor: default;\n border-radius: 100%;\n -webkit-animation: rotate-loading 1.5s linear 0s infinite normal;\n animation: rotate-loading 1.5s linear 0s infinite normal;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n .swal2-modal .swal2-buttonswrapper.swal2-loading .swal2-styled.swal2-cancel {\n margin-left: 30px;\n margin-right: 30px; }\n .swal2-modal .swal2-buttonswrapper.swal2-loading :not(.swal2-styled).swal2-confirm::after {\n display: inline-block;\n content: '';\n margin-left: 5px;\n vertical-align: -1px;\n height: 15px;\n width: 15px;\n border: 3px solid #999999;\n -webkit-box-shadow: 1px 1px 1px #fff;\n box-shadow: 1px 1px 1px #fff;\n border-right-color: transparent;\n border-radius: 50%;\n -webkit-animation: rotate-loading 1.5s linear 0s infinite normal;\n animation: rotate-loading 1.5s linear 0s infinite normal; }\n .swal2-modal .swal2-styled {\n border: 0;\n border-radius: 3px;\n -webkit-box-shadow: none;\n box-shadow: none;\n color: #fff;\n cursor: pointer;\n font-size: 17px;\n font-weight: 500;\n margin: 15px 5px 0;\n padding: 10px 32px; }\n .swal2-modal .swal2-styled:focus {\n outline: none;\n -webkit-box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(50, 100, 150, 0.4);\n box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(50, 100, 150, 0.4); }\n .swal2-modal .swal2-image {\n margin: 20px auto;\n max-width: 100%; }\n .swal2-modal .swal2-close {\n background: transparent;\n border: 0;\n margin: 0;\n padding: 0;\n width: 38px;\n height: 40px;\n font-size: 36px;\n line-height: 40px;\n font-family: serif;\n position: absolute;\n top: 5px;\n right: 8px;\n cursor: pointer;\n color: #cccccc;\n -webkit-transition: color .1s ease;\n transition: color .1s ease; }\n .swal2-modal .swal2-close:hover {\n color: #d55; }\n .swal2-modal > .swal2-input,\n .swal2-modal > .swal2-file,\n .swal2-modal > .swal2-textarea,\n .swal2-modal > .swal2-select,\n .swal2-modal > .swal2-radio,\n .swal2-modal > .swal2-checkbox {\n display: none; }\n .swal2-modal .swal2-content {\n font-size: 18px;\n text-align: center;\n font-weight: 300;\n position: relative;\n float: none;\n margin: 0;\n padding: 0;\n line-height: normal;\n color: #545454;\n word-wrap: break-word; }\n .swal2-modal .swal2-input,\n .swal2-modal .swal2-file,\n .swal2-modal .swal2-textarea,\n .swal2-modal .swal2-select,\n .swal2-modal .swal2-radio,\n .swal2-modal .swal2-checkbox {\n margin: 20px auto; }\n .swal2-modal .swal2-input,\n .swal2-modal .swal2-file,\n .swal2-modal .swal2-textarea {\n width: 100%;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n font-size: 18px;\n border-radius: 3px;\n border: 1px solid #d9d9d9;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06);\n -webkit-transition: border-color .3s, -webkit-box-shadow .3s;\n transition: border-color .3s, -webkit-box-shadow .3s;\n transition: border-color .3s, box-shadow .3s;\n transition: border-color .3s, box-shadow .3s, -webkit-box-shadow .3s; }\n .swal2-modal .swal2-input.swal2-inputerror,\n .swal2-modal .swal2-file.swal2-inputerror,\n .swal2-modal .swal2-textarea.swal2-inputerror {\n border-color: #f27474 !important;\n -webkit-box-shadow: 0 0 2px #f27474 !important;\n box-shadow: 0 0 2px #f27474 !important; }\n .swal2-modal .swal2-input:focus,\n .swal2-modal .swal2-file:focus,\n .swal2-modal .swal2-textarea:focus {\n outline: none;\n border: 1px solid #b4dbed;\n -webkit-box-shadow: 0 0 3px #c4e6f5;\n box-shadow: 0 0 3px #c4e6f5; }\n .swal2-modal .swal2-input::-webkit-input-placeholder,\n .swal2-modal .swal2-file::-webkit-input-placeholder,\n .swal2-modal .swal2-textarea::-webkit-input-placeholder {\n color: #cccccc; }\n .swal2-modal .swal2-input:-ms-input-placeholder,\n .swal2-modal .swal2-file:-ms-input-placeholder,\n .swal2-modal .swal2-textarea:-ms-input-placeholder {\n color: #cccccc; }\n .swal2-modal .swal2-input::-ms-input-placeholder,\n .swal2-modal .swal2-file::-ms-input-placeholder,\n .swal2-modal .swal2-textarea::-ms-input-placeholder {\n color: #cccccc; }\n .swal2-modal .swal2-input::placeholder,\n .swal2-modal .swal2-file::placeholder,\n .swal2-modal .swal2-textarea::placeholder {\n color: #cccccc; }\n .swal2-modal .swal2-range input {\n float: left;\n width: 80%; }\n .swal2-modal .swal2-range output {\n float: right;\n width: 20%;\n font-size: 20px;\n font-weight: 600;\n text-align: center; }\n .swal2-modal .swal2-range input,\n .swal2-modal .swal2-range output {\n height: 43px;\n line-height: 43px;\n vertical-align: middle;\n margin: 20px auto;\n padding: 0; }\n .swal2-modal .swal2-input {\n height: 43px;\n padding: 0 12px; }\n .swal2-modal .swal2-input[type='number'] {\n max-width: 150px; }\n .swal2-modal .swal2-file {\n font-size: 20px; }\n .swal2-modal .swal2-textarea {\n height: 108px;\n padding: 12px; }\n .swal2-modal .swal2-select {\n color: #545454;\n font-size: inherit;\n padding: 5px 10px;\n min-width: 40%;\n max-width: 100%; }\n .swal2-modal .swal2-radio {\n border: 0; }\n .swal2-modal .swal2-radio label:not(:first-child) {\n margin-left: 20px; }\n .swal2-modal .swal2-radio input,\n .swal2-modal .swal2-radio span {\n vertical-align: middle; }\n .swal2-modal .swal2-radio input {\n margin: 0 3px 0 0; }\n .swal2-modal .swal2-checkbox {\n color: #545454; }\n .swal2-modal .swal2-checkbox input,\n .swal2-modal .swal2-checkbox span {\n vertical-align: middle; }\n .swal2-modal .swal2-validationerror {\n background-color: #f0f0f0;\n margin: 0 -20px;\n overflow: hidden;\n padding: 10px;\n color: gray;\n font-size: 16px;\n font-weight: 300;\n display: none; }\n .swal2-modal .swal2-validationerror::before {\n content: '!';\n display: inline-block;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n background-color: #ea7d7d;\n color: #fff;\n line-height: 24px;\n text-align: center;\n margin-right: 10px; }\n\n@supports (-ms-accelerator: true) {\n .swal2-range input {\n width: 100% !important; }\n .swal2-range output {\n display: none; } }\n\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .swal2-range input {\n width: 100% !important; }\n .swal2-range output {\n display: none; } }\n\n.swal2-icon {\n width: 80px;\n height: 80px;\n border: 4px solid transparent;\n border-radius: 50%;\n margin: 20px auto 30px;\n padding: 0;\n position: relative;\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n cursor: default;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n .swal2-icon.swal2-error {\n border-color: #f27474; }\n .swal2-icon.swal2-error .swal2-x-mark {\n position: relative;\n display: block; }\n .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {\n position: absolute;\n height: 5px;\n width: 47px;\n background-color: #f27474;\n display: block;\n top: 37px;\n border-radius: 2px; }\n .swal2-icon.swal2-error [class^='swal2-x-mark-line'][class$='left'] {\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n left: 17px; }\n .swal2-icon.swal2-error [class^='swal2-x-mark-line'][class$='right'] {\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg);\n right: 16px; }\n .swal2-icon.swal2-warning {\n font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;\n color: #f8bb86;\n border-color: #facea8;\n font-size: 60px;\n line-height: 80px;\n text-align: center; }\n .swal2-icon.swal2-info {\n font-family: 'Open Sans', sans-serif;\n color: #3fc3ee;\n border-color: #9de0f6;\n font-size: 60px;\n line-height: 80px;\n text-align: center; }\n .swal2-icon.swal2-question {\n font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;\n color: #87adbd;\n border-color: #c9dae1;\n font-size: 60px;\n line-height: 80px;\n text-align: center; }\n .swal2-icon.swal2-success {\n border-color: #a5dc86; }\n .swal2-icon.swal2-success [class^='swal2-success-circular-line'] {\n border-radius: 50%;\n position: absolute;\n width: 60px;\n height: 120px;\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg); }\n .swal2-icon.swal2-success [class^='swal2-success-circular-line'][class$='left'] {\n border-radius: 120px 0 0 120px;\n top: -7px;\n left: -33px;\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg);\n -webkit-transform-origin: 60px 60px;\n transform-origin: 60px 60px; }\n .swal2-icon.swal2-success [class^='swal2-success-circular-line'][class$='right'] {\n border-radius: 0 120px 120px 0;\n top: -11px;\n left: 30px;\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg);\n -webkit-transform-origin: 0 60px;\n transform-origin: 0 60px; }\n .swal2-icon.swal2-success .swal2-success-ring {\n width: 80px;\n height: 80px;\n border: 4px solid rgba(165, 220, 134, 0.2);\n border-radius: 50%;\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n position: absolute;\n left: -4px;\n top: -4px;\n z-index: 2; }\n .swal2-icon.swal2-success .swal2-success-fix {\n width: 7px;\n height: 90px;\n position: absolute;\n left: 28px;\n top: 8px;\n z-index: 1;\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg); }\n .swal2-icon.swal2-success [class^='swal2-success-line'] {\n height: 5px;\n background-color: #a5dc86;\n display: block;\n border-radius: 2px;\n position: absolute;\n z-index: 2; }\n .swal2-icon.swal2-success [class^='swal2-success-line'][class$='tip'] {\n width: 25px;\n left: 14px;\n top: 46px;\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg); }\n .swal2-icon.swal2-success [class^='swal2-success-line'][class$='long'] {\n width: 47px;\n right: 8px;\n top: 38px;\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg); }\n\n.swal2-progresssteps {\n font-weight: 600;\n margin: 0 0 20px;\n padding: 0; }\n .swal2-progresssteps li {\n display: inline-block;\n position: relative; }\n .swal2-progresssteps .swal2-progresscircle {\n background: #3085d6;\n border-radius: 2em;\n color: #fff;\n height: 2em;\n line-height: 2em;\n text-align: center;\n width: 2em;\n z-index: 20; }\n .swal2-progresssteps .swal2-progresscircle:first-child {\n margin-left: 0; }\n .swal2-progresssteps .swal2-progresscircle:last-child {\n margin-right: 0; }\n .swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep {\n background: #3085d6; }\n .swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep ~ .swal2-progresscircle {\n background: #add8e6; }\n .swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep ~ .swal2-progressline {\n background: #add8e6; }\n .swal2-progresssteps .swal2-progressline {\n background: #3085d6;\n height: .4em;\n margin: 0 -1px;\n z-index: 10; }\n\n[class^='swal2'] {\n -webkit-tap-highlight-color: transparent; }\n\n@-webkit-keyframes showSweetAlert {\n 0% {\n -webkit-transform: scale(0.7);\n transform: scale(0.7); }\n 45% {\n -webkit-transform: scale(1.05);\n transform: scale(1.05); }\n 80% {\n -webkit-transform: scale(0.95);\n transform: scale(0.95); }\n 100% {\n -webkit-transform: scale(1);\n transform: scale(1); } }\n\n@keyframes showSweetAlert {\n 0% {\n -webkit-transform: scale(0.7);\n transform: scale(0.7); }\n 45% {\n -webkit-transform: scale(1.05);\n transform: scale(1.05); }\n 80% {\n -webkit-transform: scale(0.95);\n transform: scale(0.95); }\n 100% {\n -webkit-transform: scale(1);\n transform: scale(1); } }\n\n@-webkit-keyframes hideSweetAlert {\n 0% {\n -webkit-transform: scale(1);\n transform: scale(1);\n opacity: 1; }\n 100% {\n -webkit-transform: scale(0.5);\n transform: scale(0.5);\n opacity: 0; } }\n\n@keyframes hideSweetAlert {\n 0% {\n -webkit-transform: scale(1);\n transform: scale(1);\n opacity: 1; }\n 100% {\n -webkit-transform: scale(0.5);\n transform: scale(0.5);\n opacity: 0; } }\n\n.swal2-show {\n -webkit-animation: showSweetAlert .3s;\n animation: showSweetAlert .3s; }\n .swal2-show.swal2-noanimation {\n -webkit-animation: none;\n animation: none; }\n\n.swal2-hide {\n -webkit-animation: hideSweetAlert .15s forwards;\n animation: hideSweetAlert .15s forwards; }\n .swal2-hide.swal2-noanimation {\n -webkit-animation: none;\n animation: none; }\n\n@-webkit-keyframes animate-success-tip {\n 0% {\n width: 0;\n left: 1px;\n top: 19px; }\n 54% {\n width: 0;\n left: 1px;\n top: 19px; }\n 70% {\n width: 50px;\n left: -8px;\n top: 37px; }\n 84% {\n width: 17px;\n left: 21px;\n top: 48px; }\n 100% {\n width: 25px;\n left: 14px;\n top: 45px; } }\n\n@keyframes animate-success-tip {\n 0% {\n width: 0;\n left: 1px;\n top: 19px; }\n 54% {\n width: 0;\n left: 1px;\n top: 19px; }\n 70% {\n width: 50px;\n left: -8px;\n top: 37px; }\n 84% {\n width: 17px;\n left: 21px;\n top: 48px; }\n 100% {\n width: 25px;\n left: 14px;\n top: 45px; } }\n\n@-webkit-keyframes animate-success-long {\n 0% {\n width: 0;\n right: 46px;\n top: 54px; }\n 65% {\n width: 0;\n right: 46px;\n top: 54px; }\n 84% {\n width: 55px;\n right: 0;\n top: 35px; }\n 100% {\n width: 47px;\n right: 8px;\n top: 38px; } }\n\n@keyframes animate-success-long {\n 0% {\n width: 0;\n right: 46px;\n top: 54px; }\n 65% {\n width: 0;\n right: 46px;\n top: 54px; }\n 84% {\n width: 55px;\n right: 0;\n top: 35px; }\n 100% {\n width: 47px;\n right: 8px;\n top: 38px; } }\n\n@-webkit-keyframes rotatePlaceholder {\n 0% {\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg); }\n 5% {\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg); }\n 12% {\n -webkit-transform: rotate(-405deg);\n transform: rotate(-405deg); }\n 100% {\n -webkit-transform: rotate(-405deg);\n transform: rotate(-405deg); } }\n\n@keyframes rotatePlaceholder {\n 0% {\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg); }\n 5% {\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg); }\n 12% {\n -webkit-transform: rotate(-405deg);\n transform: rotate(-405deg); }\n 100% {\n -webkit-transform: rotate(-405deg);\n transform: rotate(-405deg); } }\n\n.swal2-animate-success-line-tip {\n -webkit-animation: animate-success-tip .75s;\n animation: animate-success-tip .75s; }\n\n.swal2-animate-success-line-long {\n -webkit-animation: animate-success-long .75s;\n animation: animate-success-long .75s; }\n\n.swal2-success.swal2-animate-success-icon .swal2-success-circular-line-right {\n -webkit-animation: rotatePlaceholder 4.25s ease-in;\n animation: rotatePlaceholder 4.25s ease-in; }\n\n@-webkit-keyframes animate-error-icon {\n 0% {\n -webkit-transform: rotateX(100deg);\n transform: rotateX(100deg);\n opacity: 0; }\n 100% {\n -webkit-transform: rotateX(0deg);\n transform: rotateX(0deg);\n opacity: 1; } }\n\n@keyframes animate-error-icon {\n 0% {\n -webkit-transform: rotateX(100deg);\n transform: rotateX(100deg);\n opacity: 0; }\n 100% {\n -webkit-transform: rotateX(0deg);\n transform: rotateX(0deg);\n opacity: 1; } }\n\n.swal2-animate-error-icon {\n -webkit-animation: animate-error-icon .5s;\n animation: animate-error-icon .5s; }\n\n@-webkit-keyframes animate-x-mark {\n 0% {\n -webkit-transform: scale(0.4);\n transform: scale(0.4);\n margin-top: 26px;\n opacity: 0; }\n 50% {\n -webkit-transform: scale(0.4);\n transform: scale(0.4);\n margin-top: 26px;\n opacity: 0; }\n 80% {\n -webkit-transform: scale(1.15);\n transform: scale(1.15);\n margin-top: -6px; }\n 100% {\n -webkit-transform: scale(1);\n transform: scale(1);\n margin-top: 0;\n opacity: 1; } }\n\n@keyframes animate-x-mark {\n 0% {\n -webkit-transform: scale(0.4);\n transform: scale(0.4);\n margin-top: 26px;\n opacity: 0; }\n 50% {\n -webkit-transform: scale(0.4);\n transform: scale(0.4);\n margin-top: 26px;\n opacity: 0; }\n 80% {\n -webkit-transform: scale(1.15);\n transform: scale(1.15);\n margin-top: -6px; }\n 100% {\n -webkit-transform: scale(1);\n transform: scale(1);\n margin-top: 0;\n opacity: 1; } }\n\n.swal2-animate-x-mark {\n -webkit-animation: animate-x-mark .5s;\n animation: animate-x-mark .5s; }\n\n@-webkit-keyframes rotate-loading {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg); }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n\n@keyframes rotate-loading {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg); }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n"),m}),window.Sweetalert2&&(window.sweetAlert=window.swal=window.Sweetalert2);