Path : /var/www/html/jewelry-pos/public/admin-asset/js/notifications/sweetalert2/ |
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
Current File : /var/www/html/jewelry-pos/public/admin-asset/js/notifications/sweetalert2/sweetalert2.bundle.js |
!function(t){var e,n=t.Promise,o=n&&"resolve"in n&&"reject"in n&&"all"in n&&"race"in n&&(new n(function(t){e=t}),"function"==typeof e);"undefined"!=typeof exports&&exports?(exports.Promise=o?n:P,exports.Polyfill=P):"function"==typeof define&&define.amd?define(function(){return o?n:P}):o||(t.Promise=P);function i(){}var r="pending",a="sealed",c="fulfilled",s="rejected";function u(t){return"[object Array]"===Object.prototype.toString.call(t)}var l,d="undefined"!=typeof setImmediate?setImmediate:setTimeout,p=[];function f(){for(var t=0;t<p.length;t++)p[t][0](p[t][1]);l=!(p=[])}function m(t,e){p.push([t,e]),l||(l=!0,d(f,0))}function h(t,e){function n(t){w(e,t)}try{t(function(t){y(e,t)},n)}catch(t){n(t)}}function g(t){var e=t.owner,n=e.state_,o=e.data_,i=t[n],r=t.then;if("function"==typeof i){n=c;try{o=i(o)}catch(t){w(r,t)}}v(r,o)||(n===c&&y(r,o),n===s&&w(r,o))}function v(e,n){var o;try{if(e===n)throw new TypeError("A promises callback cannot return that same promise.");if(n&&("function"==typeof n||"object"==typeof n)){var t=n.then;if("function"==typeof t)return t.call(n,function(t){o||(o=!0,(n!==t?y:b)(e,t))},function(t){o||(o=!0,w(e,t))}),1}}catch(t){return o||w(e,t),1}}function y(t,e){t!==e&&v(t,e)||b(t,e)}function b(t,e){t.state_===r&&(t.state_=a,t.data_=e,m(k,t))}function w(t,e){t.state_===r&&(t.state_=a,t.data_=e,m(x,t))}function C(t){var e=t.then_;t.then_=void 0;for(var n=0;n<e.length;n++)g(e[n])}function k(t){t.state_=c,C(t)}function x(t){t.state_=s,C(t)}function P(t){if("function"!=typeof t)throw new TypeError("Promise constructor takes a function argument");if(this instanceof P==!1)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.then_=[],h(t,this)}P.prototype={constructor:P,state_:r,then_:null,data_:void 0,then:function(t,e){var n={owner:this,then:new this.constructor(i),fulfilled:t,rejected:e};return this.state_===c||this.state_===s?m(g,n):this.then_.push(n),n.then},catch:function(t){return this.then(null,t)}},P.all=function(c){if(!u(c))throw new TypeError("You must pass an array to Promise.all().");return new this(function(n,t){var o=[],i=0;function e(e){return i++,function(t){o[e]=t,--i||n(o)}}for(var r,a=0;a<c.length;a++)(r=c[a])&&"function"==typeof r.then?r.then(e(a),t):o[a]=r;i||n(o)})},P.race=function(i){if(!u(i))throw new TypeError("You must pass an array to Promise.race().");return new this(function(t,e){for(var n,o=0;o<i.length;o++)(n=i[o])&&"function"==typeof n.then?n.then(t,e):t(n)})},P.resolve=function(e){return e&&"object"==typeof e&&e.constructor===this?e:new this(function(t){t(e)})},P.reject=function(n){return new this(function(t,e){e(n)})}}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Sweetalert2=e()}(this,function(){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function c(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(){return(s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function i(t,e,n){return(i=d()?Reflect.construct:function(t,e,n){var o=[null];o.push.apply(o,e);var i=new(Function.bind.apply(t,o));return n&&l(i,n.prototype),i}).apply(null,arguments)}function p(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t,e,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var o=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(o){var i=Object.getOwnPropertyDescriptor(o,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function m(e){return Object.keys(e).map(function(t){return e[t]})}function h(t){return Array.prototype.slice.call(t)}function v(t){console.error("".concat(D," ").concat(t))}function g(t,e){var n;n='"'.concat(t,'" is deprecated and will be removed in the next major release. Please use "').concat(e,'" instead.'),-1===U.indexOf(n)&&(U.push(n),N(n))}function y(t){return t&&Promise.resolve(t)===t}function b(t){return t instanceof Element||"object"===r(e=t)&&e.jquery;var e}function t(t){var e={};for(var n in t)e[t[n]]="swal2-"+t[n];return e}function w(t){var e=Y();return e?e.querySelector(t):null}function e(t){return w(".".concat(t))}function n(){var t=Z();return h(t.querySelectorAll(".".concat(W.icon)))}function C(){var t=n().filter(function(t){return ht(t)});return t.length?t[0]:null}function k(){return e(W.title)}function x(){return e(W.content)}function P(){return e(W.image)}function A(){return e(W["progress-steps"])}function E(){return e(W["validation-message"])}function S(){return w(".".concat(W.actions," .").concat(W.confirm))}function B(){return w(".".concat(W.actions," .").concat(W.cancel))}function O(){return e(W.actions)}function T(){return e(W.header)}function L(){return e(W.footer)}function j(){return e(W["timer-progress-bar"])}function I(){return e(W.close)}function q(){var t=h(Z().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(function(t,e){return t=parseInt(t.getAttribute("tabindex")),(e=parseInt(e.getAttribute("tabindex")))<t?1:t<e?-1:0}),e=h(Z().querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n')).filter(function(t){return"-1"!==t.getAttribute("tabindex")});return function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(t.concat(e)).filter(function(t){return ht(t)})}function M(){return!Q()&&!document.body.classList.contains(W["no-backdrop"])}function V(){return Z().hasAttribute("data-loading")}function _(e,t){var n;e.textContent="",t&&(n=(new DOMParser).parseFromString(t,"text/html"),h(n.querySelector("head").childNodes).forEach(function(t){e.appendChild(t)}),h(n.querySelector("body").childNodes).forEach(function(t){e.appendChild(t)}))}function R(t,e){if(e){for(var n=e.split(/\s+/),o=0;o<n.length;o++)if(!t.classList.contains(n[o]))return;return 1}}function H(t,e,n){var o,i;if(i=e,h((o=t).classList).forEach(function(t){-1===m(W).indexOf(t)&&-1===m(K).indexOf(t)&&-1===m(i.showClass).indexOf(t)&&o.classList.remove(t)}),e.customClass&&e.customClass[n]){if("string"!=typeof e.customClass[n]&&!e.customClass[n].forEach)return N("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(r(e.customClass[n]),'"'));pt(t,e.customClass[n])}}var D="SweetAlert2:",N=function(t){console.warn("".concat(D," ").concat(t))},U=[],F=function(t){return"function"==typeof t?t():t},z=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),W=t(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","toast-column","show","hide","close","title","header","content","html-container","actions","confirm","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),K=t(["success","warning","info","question","error"]),Y=function(){return document.body.querySelector(".".concat(W.container))},Z=function(){return e(W.popup)},Q=function(){return document.body.classList.contains(W["toast-shown"])},$={previousBodyPadding:null};function J(t,e){if(!e)return null;switch(e){case"select":case"textarea":case"file":return mt(t,W[e]);case"checkbox":return t.querySelector(".".concat(W.checkbox," input"));case"radio":return t.querySelector(".".concat(W.radio," input:checked"))||t.querySelector(".".concat(W.radio," input:first-child"));case"range":return t.querySelector(".".concat(W.range," input"));default:return mt(t,W.input)}}function X(t){var e;t.focus(),"file"!==t.type&&(e=t.value,t.value="",t.value=e)}function G(t,e,n){t&&e&&("string"==typeof e&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(function(e){t.forEach?t.forEach(function(t){n?t.classList.add(e):t.classList.remove(e)}):n?t.classList.add(e):t.classList.remove(e)}))}function tt(t,e,n){n||0===parseInt(n)?t.style[e]="number"==typeof n?"".concat(n,"px"):n:t.style.removeProperty(e)}function et(t,e){var n=1<arguments.length&&void 0!==e?e:"flex";t.style.opacity="",t.style.display=n}function nt(t){t.style.opacity="",t.style.display="none"}function ot(t,e,n){e?et(t,n):nt(t)}function it(t){return!!(t.scrollHeight>t.clientHeight)}function rt(t){var e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),o=parseFloat(e.getPropertyValue("transition-duration")||"0");return 0<n||0<o}function at(t,e){var n=1<arguments.length&&void 0!==e&&e,o=j();ht(o)&&(n&&(o.style.transition="none",o.style.width="100%"),setTimeout(function(){o.style.transition="width ".concat(t/1e3,"s linear"),o.style.width="0%"},10))}function ct(){return"undefined"==typeof window||"undefined"==typeof document}function st(t){on.isVisible()&&dt!==t.target.value&&on.resetValidationMessage(),dt=t.target.value}function ut(t,e){t instanceof HTMLElement?e.appendChild(t):"object"===r(t)?yt(t,e):t&&_(e,t)}function lt(t,e){var n=O(),o=S(),i=B();e.showConfirmButton||e.showCancelButton||nt(n),H(n,e,"actions"),Ct(o,"confirm",e),Ct(i,"cancel",e),e.buttonsStyling?function(t,e,n){pt([t,e],W.styled),n.confirmButtonColor&&(t.style.backgroundColor=n.confirmButtonColor);n.cancelButtonColor&&(e.style.backgroundColor=n.cancelButtonColor);{var o;V()||(o=window.getComputedStyle(t).getPropertyValue("background-color"),t.style.borderLeftColor=o,t.style.borderRightColor=o)}}(o,i,e):(ft([o,i],W.styled),o.style.backgroundColor=o.style.borderLeftColor=o.style.borderRightColor="",i.style.backgroundColor=i.style.borderLeftColor=i.style.borderRightColor=""),e.reverseButtons&&o.parentNode.insertBefore(i,o)}var dt,pt=function(t,e){G(t,e,!0)},ft=function(t,e){G(t,e,!1)},mt=function(t,e){for(var n=0;n<t.childNodes.length;n++)if(R(t.childNodes[n],e))return t.childNodes[n]},ht=function(t){return!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))},gt='\n <div aria-labelledby="'.concat(W.title,'" aria-describedby="').concat(W.content,'" class="').concat(W.popup,'" tabindex="-1">\n <div class="').concat(W.header,'">\n <ul class="').concat(W["progress-steps"],'"></ul>\n <div class="').concat(W.icon," ").concat(K.error,'"></div>\n <div class="').concat(W.icon," ").concat(K.question,'"></div>\n <div class="').concat(W.icon," ").concat(K.warning,'"></div>\n <div class="').concat(W.icon," ").concat(K.info,'"></div>\n <div class="').concat(W.icon," ").concat(K.success,'"></div>\n <img class="').concat(W.image,'" />\n <h2 class="').concat(W.title,'" id="').concat(W.title,'"></h2>\n <button type="button" class="').concat(W.close,'"></button>\n </div>\n <div class="').concat(W.content,'">\n <div id="').concat(W.content,'" class="').concat(W["html-container"],'"></div>\n <input class="').concat(W.input,'" />\n <input type="file" class="').concat(W.file,'" />\n <div class="').concat(W.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat(W.select,'"></select>\n <div class="').concat(W.radio,'"></div>\n <label for="').concat(W.checkbox,'" class="').concat(W.checkbox,'">\n <input type="checkbox" />\n <span class="').concat(W.label,'"></span>\n </label>\n <textarea class="').concat(W.textarea,'"></textarea>\n <div class="').concat(W["validation-message"],'" id="').concat(W["validation-message"],'"></div>\n </div>\n <div class="').concat(W.actions,'">\n <button type="button" class="').concat(W.confirm,'">OK</button>\n <button type="button" class="').concat(W.cancel,'">Cancel</button>\n </div>\n <div class="').concat(W.footer,'"></div>\n <div class="').concat(W["timer-progress-bar-container"],'">\n <div class="').concat(W["timer-progress-bar"],'"></div>\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),vt=function(t){var e,n,o,i,r,a,c,s,u,l,d,p,f,m,h,g=!!(e=Y())&&(e.parentNode.removeChild(e),ft([document.documentElement,document.body],[W["no-backdrop"],W["toast-shown"],W["has-column"]]),!0);ct()?v("SweetAlert2 requires document to initialize"):((n=document.createElement("div")).className=W.container,g&&pt(n,W["no-transition"]),_(n,gt),(o="string"==typeof(i=t.target)?document.querySelector(i):i).appendChild(n),r=t,(a=Z()).setAttribute("role",r.toast?"alert":"dialog"),a.setAttribute("aria-live",r.toast?"polite":"assertive"),r.toast||a.setAttribute("aria-modal","true"),c=o,"rtl"===window.getComputedStyle(c).direction&&pt(Y(),W.rtl),s=x(),u=mt(s,W.input),l=mt(s,W.file),d=s.querySelector(".".concat(W.range," input")),p=s.querySelector(".".concat(W.range," output")),f=mt(s,W.select),m=s.querySelector(".".concat(W.checkbox," input")),h=mt(s,W.textarea),u.oninput=st,l.onchange=st,f.onchange=st,m.onchange=st,h.oninput=st,d.oninput=function(t){st(t),p.value=d.value},d.onchange=function(t){st(t),d.nextSibling.value=d.value})},yt=function(t,e){t.jquery?bt(e,t):_(e,t.toString())},bt=function(t,e){if(t.textContent="",0 in e)for(var n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},wt=function(){if(ct())return!1;var t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&void 0!==t.style[n])return e[n];return!1}();function Ct(t,e,n){var o;ot(t,n["show".concat((o=e).charAt(0).toUpperCase()+o.slice(1),"Button")],"inline-block"),_(t,n["".concat(e,"ButtonText")]),t.setAttribute("aria-label",n["".concat(e,"ButtonAriaLabel")]),t.className=W[e],H(t,n,"".concat(e,"Button")),pt(t,n["".concat(e,"ButtonClass")])}function kt(t,e){var n,o,i,r,a,c,s,u,l=Y();l&&(n=l,"string"==typeof(o=e.backdrop)?n.style.background=o:o||pt([document.documentElement,document.body],W["no-backdrop"]),!e.backdrop&&e.allowOutsideClick&&N('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),i=l,(r=e.position)in W?pt(i,W[r]):(N('The "position" parameter is not valid, defaulting to "center"'),pt(i,W.center)),a=l,!(c=e.grow)||"string"!=typeof c||(s="grow-".concat(c))in W&&pt(a,W[s]),H(l,e,"container"),(u=document.body.getAttribute("data-swal2-queue-step"))&&(l.setAttribute("data-queue-step",u),document.body.removeAttribute("data-swal2-queue-step")))}function xt(t,e){t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)}var Pt={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},At=["input","file","range","select","radio","checkbox","textarea"],Et=function(t){if(!Tt[t.input])return v('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"'));var e=Ot(t.input),n=Tt[t.input](e,t);et(n),setTimeout(function(){X(n)})},St=function(t,e){var n=J(x(),t);if(n)for(var o in!function(t){for(var e=0;e<t.attributes.length;e++){var n=t.attributes[e].name;-1===["type","value","style"].indexOf(n)&&t.removeAttribute(n)}}(n),e)"range"===t&&"placeholder"===o||n.setAttribute(o,e[o])},Bt=function(t){var e=Ot(t.input);t.customClass&&pt(e,t.customClass.input)},Ot=function(t){var e=W[t]?W[t]:W.input;return mt(x(),e)},Tt={};Tt.text=Tt.email=Tt.password=Tt.number=Tt.tel=Tt.url=function(t,e){return"string"==typeof e.inputValue||"number"==typeof e.inputValue?t.value=e.inputValue:y(e.inputValue)||N('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(r(e.inputValue),'"')),xt(t,e),t.type=e.input,t},Tt.file=function(t,e){return xt(t,e),t},Tt.range=function(t,e){var n=t.querySelector("input"),o=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,o.value=e.inputValue,t},Tt.select=function(t,e){var n;return t.textContent="",e.inputPlaceholder&&(n=document.createElement("option"),_(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)),t},Tt.radio=function(t){return t.textContent="",t},Tt.checkbox=function(t,e){var n=J(x(),"checkbox");n.value=1,n.id=W.checkbox,n.checked=Boolean(e.inputValue);var o=t.querySelector("span");return _(o,e.inputPlaceholder),t},Tt.textarea=function(e,t){var n,o;return e.value=t.inputValue,xt(e,t),"MutationObserver"in window&&(n=parseInt(window.getComputedStyle(Z()).width),o=parseInt(window.getComputedStyle(Z()).paddingLeft)+parseInt(window.getComputedStyle(Z()).paddingRight),new MutationObserver(function(){var t=e.offsetWidth+o;Z().style.width=n<t?"".concat(t,"px"):null}).observe(e,{attributes:!0,attributeFilter:["style"]})),e};function Lt(t,e){var n,o,i,r,a,c=x().querySelector("#".concat(W.content));e.html?(ut(e.html,c),et(c,"block")):e.text?(c.textContent=e.text,et(c,"block")):nt(c),n=t,o=e,i=x(),r=Pt.innerParams.get(n),a=!r||o.input!==r.input,At.forEach(function(t){var e=W[t],n=mt(i,e);St(t,o.inputAttributes),n.className=e,a&&nt(n)}),o.input&&(a&&Et(o),Bt(o)),H(x(),e,"content")}function jt(){return Y()&&Y().getAttribute("data-queue-step")}function It(t,s){var u=A();if(!s.progressSteps||0===s.progressSteps.length)return nt(u);et(u),u.textContent="";var l=parseInt(void 0===s.currentProgressStep?jt():s.currentProgressStep);l>=s.progressSteps.length&&N("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),s.progressSteps.forEach(function(t,e){var n,o,i,r,a,c=(n=t,o=document.createElement("li"),pt(o,W["progress-step"]),_(o,n),o);u.appendChild(c),e===l&&pt(c,W["active-progress-step"]),e!==s.progressSteps.length-1&&(r=t,a=document.createElement("li"),pt(a,W["progress-step-line"]),r.progressStepsDistance&&(a.style.width=r.progressStepsDistance),i=a,u.appendChild(i))})}function qt(t,e){var n,o,i,r,a,c,s,u,l=T();H(l,e,"header"),It(0,e),n=t,o=e,(r=Pt.innerParams.get(n))&&o.icon===r.icon&&C()?H(C(),o,"icon"):(_t(),o.icon&&(-1!==Object.keys(K).indexOf(o.icon)?(i=w(".".concat(W.icon,".").concat(K[o.icon])),et(i),Ht(i,o),Rt(),H(i,o,"icon"),pt(i,o.showClass.icon)):v('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(o.icon,'"')))),function(t){var e=P();if(!t.imageUrl)return nt(e);et(e),e.setAttribute("src",t.imageUrl),e.setAttribute("alt",t.imageAlt),tt(e,"width",t.imageWidth),tt(e,"height",t.imageHeight),e.className=W.image,H(e,t,"image")}(e),a=e,c=k(),ot(c,a.title||a.titleText),a.title&&ut(a.title,c),a.titleText&&(c.innerText=a.titleText),H(c,a,"title"),s=e,u=I(),_(u,s.closeButtonHtml),H(u,s,"closeButton"),ot(u,s.showCloseButton),u.setAttribute("aria-label",s.closeButtonAriaLabel)}function Mt(t,e){var n,o,i,r;n=e,o=Z(),tt(o,"width",n.width),tt(o,"padding",n.padding),n.background&&(o.style.background=n.background),Ut(o,n),kt(0,e),qt(t,e),Lt(t,e),lt(0,e),i=e,r=L(),ot(r,i.footer),i.footer&&ut(i.footer,r),H(r,i,"footer"),"function"==typeof e.onRender&&e.onRender(Z())}function Vt(){return S()&&S().click()}var _t=function(){for(var t=n(),e=0;e<t.length;e++)nt(t[e])},Rt=function(){for(var t=Z(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),o=0;o<n.length;o++)n[o].style.backgroundColor=e},Ht=function(t,e){t.textContent="",e.iconHtml?_(t,Dt(e.iconHtml)):"success"===e.icon?_(t,'\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 '):"error"===e.icon?_(t,'\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n '):_(t,Dt({question:"?",warning:"!",info:"i"}[e.icon]))},Dt=function(t){return'<div class="'.concat(W["icon-content"],'">').concat(t,"</div>")},Nt=[],Ut=function(t,e){t.className="".concat(W.popup," ").concat(ht(t)?e.showClass.popup:""),e.toast?(pt([document.documentElement,document.body],W["toast-shown"]),pt(t,W.toast)):pt(t,W.modal),H(t,e,"popup"),"string"==typeof e.customClass&&pt(t,e.customClass),e.icon&&pt(t,W["icon-".concat(e.icon)])};function Ft(){var t=Z();t||on.fire(),t=Z();var e=O(),n=S();et(e),et(n,"inline-block"),pt([t,e],W.loading),n.disabled=!0,t.setAttribute("data-loading",!0),t.setAttribute("aria-busy",!0),t.focus()}function zt(){return new Promise(function(t){var e=window.scrollX,n=window.scrollY;Qt.restoreFocusTimeout=setTimeout(function(){Qt.previousActiveElement&&Qt.previousActiveElement.focus?(Qt.previousActiveElement.focus(),Qt.previousActiveElement=null):document.body&&document.body.focus(),t()},100),void 0!==e&&void 0!==n&&window.scrollTo(e,n)})}function Wt(){if(Qt.timeout)return function(){var t=j(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";var n=parseInt(window.getComputedStyle(t).width),o=parseInt(e/n*100);t.style.removeProperty("transition"),t.style.width="".concat(o,"%")}(),Qt.timeout.stop()}function Kt(){if(Qt.timeout){var t=Qt.timeout.start();return at(t),t}}function Yt(t){return Object.prototype.hasOwnProperty.call($t,t)}function Zt(t){return Xt[t]}var Qt={},$t={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconHtml:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:void 0,target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showCancelButton:!1,preConfirm:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusCancel:!1,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",showLoaderOnConfirm:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,onRender:void 0,onClose:void 0,onAfterClose:void 0,onDestroy:void 0,scrollbarPadding:!0},Jt=["title","titleText","text","html","icon","hideClass","customClass","allowOutsideClick","allowEscapeKey","showConfirmButton","showCancelButton","confirmButtonText","confirmButtonAriaLabel","confirmButtonColor","cancelButtonText","cancelButtonAriaLabel","cancelButtonColor","buttonsStyling","reverseButtons","imageUrl","imageWidth","imageHeight","imageAlt","progressSteps","currentProgressStep"],Xt={animation:'showClass" and "hideClass'},Gt=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusCancel","heightAuto","keydownListenerCapture"],te=Object.freeze({isValidParameter:Yt,isUpdatableParameter:function(t){return-1!==Jt.indexOf(t)},isDeprecatedParameter:Zt,argsToParams:function(o){var i={};return"object"!==r(o[0])||b(o[0])?["title","html","icon"].forEach(function(t,e){var n=o[e];"string"==typeof n||b(n)?i[t]=n:void 0!==n&&v("Unexpected type of ".concat(t,'! Expected "string" or "Element", got ').concat(r(n)))}):s(i,o[0]),i},isVisible:function(){return ht(Z())},clickConfirm:Vt,clickCancel:function(){return B()&&B().click()},getContainer:Y,getPopup:Z,getTitle:k,getContent:x,getHtmlContainer:function(){return e(W["html-container"])},getImage:P,getIcon:C,getIcons:n,getCloseButton:I,getActions:O,getConfirmButton:S,getCancelButton:B,getHeader:T,getFooter:L,getTimerProgressBar:j,getFocusableElements:q,getValidationMessage:E,isLoading:V,fire:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return i(this,e)},mixin:function(r){return function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(i,t);var n,o,e=(n=i,o=d(),function(){var t,e=u(n);return p(this,o?(t=u(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))});function i(){return a(this,i),e.apply(this,arguments)}return c(i,[{key:"_main",value:function(t){return f(u(i.prototype),"_main",this).call(this,s({},r,t))}}]),i}(this)},queue:function(t){var r=this;Nt=t;function a(t,e){Nt=[],t(e)}var c=[];return new Promise(function(i){!function e(n,o){n<Nt.length?(document.body.setAttribute("data-swal2-queue-step",n),r.fire(Nt[n]).then(function(t){void 0!==t.value?(c.push(t.value),e(n+1,o)):a(i,{dismiss:t.dismiss})})):a(i,{value:c})}(0)})},getQueueStep:jt,insertQueueStep:function(t,e){return e&&e<Nt.length?Nt.splice(e,0,t):Nt.push(t)},deleteQueueStep:function(t){void 0!==Nt[t]&&Nt.splice(t,1)},showLoading:Ft,enableLoading:Ft,getTimerLeft:function(){return Qt.timeout&&Qt.timeout.getTimerLeft()},stopTimer:Wt,resumeTimer:Kt,toggleTimer:function(){var t=Qt.timeout;return t&&(t.running?Wt:Kt)()},increaseTimer:function(t){if(Qt.timeout){var e=Qt.timeout.increase(t);return at(e,!0),e}},isTimerRunning:function(){return Qt.timeout&&Qt.timeout.isRunning()}});function ee(){var t,e=Pt.innerParams.get(this);e&&(t=Pt.domCache.get(this),e.showConfirmButton||(nt(t.confirmButton),e.showCancelButton||nt(t.actions)),ft([t.popup,t.actions],W.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.cancelButton.disabled=!1)}function ne(){null===$.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&($.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat($.previousBodyPadding+function(){var t=document.createElement("div");t.className=W["scrollbar-measure"],document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e}(),"px"))}function oe(){return!!window.MSInputMethodContext&&!!document.documentMode}function ie(){var t=Y(),e=Z();t.style.removeProperty("align-items"),e.offsetTop<0&&(t.style.alignItems="flex-start")}var re=function(){var e,t=Y();t.ontouchstart=function(t){e=ae(t.target)},t.ontouchmove=function(t){e&&(t.preventDefault(),t.stopPropagation())}},ae=function(t){var e=Y();return t===e||!(it(e)||"INPUT"===t.tagName||it(x())&&x().contains(t))},ce={swalPromiseResolve:new WeakMap};function se(t,e,n,o){var i;n?de(t,o):(zt().then(function(){return de(t,o)}),Qt.keydownTarget.removeEventListener("keydown",Qt.keydownHandler,{capture:Qt.keydownListenerCapture}),Qt.keydownHandlerAdded=!1),e.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&e.parentNode.removeChild(e),M()&&(null!==$.previousBodyPadding&&(document.body.style.paddingRight="".concat($.previousBodyPadding,"px"),$.previousBodyPadding=null),R(document.body,W.iosfix)&&(i=parseInt(document.body.style.top,10),ft(document.body,W.iosfix),document.body.style.top="",document.body.scrollTop=-1*i),"undefined"!=typeof window&&oe()&&window.removeEventListener("resize",ie),h(document.body.children).forEach(function(t){t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})),ft([document.documentElement,document.body],[W.shown,W["height-auto"],W["no-backdrop"],W["toast-shown"],W["toast-column"]])}function ue(t){var e,n,o,i=Z();i&&(e=Pt.innerParams.get(this))&&!R(i,e.hideClass.popup)&&(n=ce.swalPromiseResolve.get(this),ft(i,e.showClass.popup),pt(i,e.hideClass.popup),o=Y(),ft(o,e.showClass.backdrop),pt(o,e.hideClass.backdrop),function(t,e,n){var o=Y(),i=wt&&rt(e),r=n.onClose,a=n.onAfterClose;if(r!==null&&typeof r==="function"){r(e)}if(i){le(t,e,o,a)}else{se(t,o,Q(),a)}}(this,i,e),n(t||{}))}var le=function(t,e,n,o){Qt.swalCloseEventFinishedCallback=se.bind(null,t,n,Q(),o),e.addEventListener(wt,function(t){t.target===e&&(Qt.swalCloseEventFinishedCallback(),delete Qt.swalCloseEventFinishedCallback)})},de=function(t,e){setTimeout(function(){"function"==typeof e&&e(),t._destroy()})};function pe(t,e,n){var o=Pt.domCache.get(t);e.forEach(function(t){o[t].disabled=n})}function fe(t,e){if(!t)return!1;if("radio"===t.type)for(var n=t.parentNode.parentNode.querySelectorAll("input"),o=0;o<n.length;o++)n[o].disabled=e;else t.disabled=e}var me=function(){function n(t,e){a(this,n),this.callback=t,this.remaining=e,this.running=!1,this.start()}return c(n,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}},{key:"increase",value:function(t){var e=this.running;return e&&this.stop(),this.remaining+=t,e&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),n}(),he={email:function(t,e){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address")},url:function(t,e){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")}};function ge(t){var e,n;(e=t).inputValidator||Object.keys(he).forEach(function(t){e.input===t&&(e.inputValidator=he[t])}),t.showLoaderOnConfirm&&!t.preConfirm&&N("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),t.animation=F(t.animation),(n=t).target&&("string"!=typeof n.target||document.querySelector(n.target))&&("string"==typeof n.target||n.target.appendChild)||(N('Target parameter is not valid, defaulting to "body"'),n.target="body"),"string"==typeof t.title&&(t.title=t.title.split("\n").join("<br />")),vt(t)}function ve(t){var e=Y(),n=Z();"function"==typeof t.onBeforeOpen&&t.onBeforeOpen(n),Be(e,n,t),Ee(e,n),M()&&Se(e,t.scrollbarPadding),Q()||Qt.previousActiveElement||(Qt.previousActiveElement=document.activeElement),"function"==typeof t.onOpen&&setTimeout(function(){return t.onOpen(n)}),ft(e,W["no-transition"])}function ye(t){var e,n=Z();t.target===n&&(e=Y(),n.removeEventListener(wt,ye),e.style.overflowY="auto")}function be(t,e){"select"===e.input||"radio"===e.input?je(t,e):-1!==["text","email","number","tel","textarea"].indexOf(e.input)&&y(e.inputValue)&&Ie(t,e)}function we(t,e){t.disableButtons(),e.input?Ve(t,e):_e(t,e,!0)}function Ce(t,e){t.disableButtons(),e(z.cancel)}function ke(t,e){t.closePopup({value:e})}function xe(e,t,n,o){t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1),n.toast||(t.keydownHandler=function(t){return De(e,t,o)},t.keydownTarget=n.keydownListenerCapture?window:Z(),t.keydownListenerCapture=n.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)}function Pe(t,e,n){var o=q(),i=0;if(i<o.length)return(e+=n)===o.length?e=0:-1===e&&(e=o.length-1),o[e].focus();Z().focus()}function Ae(t,e,n){Pt.innerParams.get(t).toast?We(t,e,n):(Ye(e),Ze(e),Qe(t,e,n))}var Ee=function(t,e){wt&&rt(e)?(t.style.overflowY="hidden",e.addEventListener(wt,ye)):t.style.overflowY="auto"},Se=function(t,e){var n;(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints)&&!R(document.body,W.iosfix)&&(n=document.body.scrollTop,document.body.style.top="".concat(-1*n,"px"),pt(document.body,W.iosfix),re()),"undefined"!=typeof window&&oe()&&(ie(),window.addEventListener("resize",ie)),h(document.body.children).forEach(function(t){t===Y()||function(t,e){if("function"==typeof t.contains)return t.contains(e)}(t,Y())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}),e&&ne(),setTimeout(function(){t.scrollTop=0})},Be=function(t,e,n){pt(t,n.showClass.backdrop),et(e),pt(e,n.showClass.popup),pt([document.documentElement,document.body],W.shown),n.heightAuto&&n.backdrop&&!n.toast&&pt([document.documentElement,document.body],W["height-auto"])},Oe=function(t){return t.checked?1:0},Te=function(t){return t.checked?t.value:null},Le=function(t){return t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null},je=function(e,n){function o(t){return qe[n.input](i,Me(t),n)}var i=x();y(n.inputOptions)?(Ft(),n.inputOptions.then(function(t){e.hideLoading(),o(t)})):"object"===r(n.inputOptions)?o(n.inputOptions):v("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(r(n.inputOptions)))},Ie=function(e,n){var o=e.getInput();nt(o),n.inputValue.then(function(t){o.value="number"===n.input?parseFloat(t)||0:"".concat(t),et(o),o.focus(),e.hideLoading()}).catch(function(t){v("Error in inputValue promise: ".concat(t)),o.value="",et(o),o.focus(),e.hideLoading()})},qe={select:function(t,e,i){var r=mt(t,W.select);e.forEach(function(t){var e=t[0],n=t[1],o=document.createElement("option");o.value=e,_(o,n),i.inputValue.toString()===e.toString()&&(o.selected=!0),r.appendChild(o)}),r.focus()},radio:function(t,e,a){var c=mt(t,W.radio);e.forEach(function(t){var e=t[0],n=t[1],o=document.createElement("input"),i=document.createElement("label");o.type="radio",o.name=W.radio,o.value=e,a.inputValue.toString()===e.toString()&&(o.checked=!0);var r=document.createElement("span");_(r,n),r.className=W.label,i.appendChild(o),i.appendChild(r),c.appendChild(i)});var n=c.querySelectorAll("input");n.length&&n[0].focus()}},Me=function(e){var n=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(function(t,e){n.push([e,t])}):Object.keys(e).forEach(function(t){n.push([t,e[t]])}),n},Ve=function(e,n){var o=function(t,e){var n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return Oe(n);case"radio":return Te(n);case"file":return Le(n);default:return e.inputAutoTrim?n.value.trim():n.value}}(e,n);n.inputValidator?(e.disableInput(),Promise.resolve().then(function(){return n.inputValidator(o,n.validationMessage)}).then(function(t){e.enableButtons(),e.enableInput(),t?e.showValidationMessage(t):_e(e,n,o)})):e.getInput().checkValidity()?_e(e,n,o):(e.enableButtons(),e.showValidationMessage(n.validationMessage))},_e=function(e,t,n){t.showLoaderOnConfirm&&Ft(),t.preConfirm?(e.resetValidationMessage(),Promise.resolve().then(function(){return t.preConfirm(n,t.validationMessage)}).then(function(t){ht(E())||!1===t?e.hideLoading():ke(e,void 0===t?n:t)})):ke(e,n)},Re=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Left","Right","Up","Down"],He=["Escape","Esc"],De=function(t,e,n){var o=Pt.innerParams.get(t);o.stopKeydownPropagation&&e.stopPropagation(),"Enter"===e.key?Ne(t,e,o):"Tab"===e.key?Ue(e,o):-1!==Re.indexOf(e.key)?Fe():-1!==He.indexOf(e.key)&&ze(e,o,n)},Ne=function(t,e,n){if(!e.isComposing&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(-1!==["textarea","file"].indexOf(n.input))return;Vt(),e.preventDefault()}},Ue=function(t){for(var e=t.target,n=q(),o=-1,i=0;i<n.length;i++)if(e===n[i]){o=i;break}t.shiftKey?Pe(0,o,-1):Pe(0,o,1),t.stopPropagation(),t.preventDefault()},Fe=function(){var t=S(),e=B();document.activeElement===t&&ht(e)?e.focus():document.activeElement===e&&ht(t)&&t.focus()},ze=function(t,e,n){F(e.allowEscapeKey)&&(t.preventDefault(),n(z.esc))},We=function(e,t,n){t.popup.onclick=function(){var t=Pt.innerParams.get(e);t.showConfirmButton||t.showCancelButton||t.showCloseButton||t.input||n(z.close)}},Ke=!1,Ye=function(e){e.popup.onmousedown=function(){e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(Ke=!0)}}},Ze=function(e){e.container.onmousedown=function(){e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,t.target!==e.popup&&!e.popup.contains(t.target)||(Ke=!0)}}},Qe=function(n,o,i){o.container.onclick=function(t){var e=Pt.innerParams.get(n);Ke?Ke=!1:t.target===o.container&&F(e.allowOutsideClick)&&i(z.backdrop)}};var $e=function(t,e,n){var o=j();nt(o),e.timer&&(t.timeout=new me(function(){n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(et(o),setTimeout(function(){t.timeout.running&&at(e.timer)})))},Je=function(t,e){if(!e.toast)return F(e.allowEnterKey)?e.focusCancel&&ht(t.cancelButton)?t.cancelButton.focus():e.focusConfirm&&ht(t.confirmButton)?t.confirmButton.focus():void Pe(0,-1,1):Xe()},Xe=function(){document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};var Ge,tn=function(t){for(var e in t)t[e]=new WeakMap},en=Object.freeze({hideLoading:ee,disableLoading:ee,getInput:function(t){var e=Pt.innerParams.get(t||this),n=Pt.domCache.get(t||this);return n?J(n.content,e.input):null},close:ue,closePopup:ue,closeModal:ue,closeToast:ue,enableButtons:function(){pe(this,["confirmButton","cancelButton"],!1)},disableButtons:function(){pe(this,["confirmButton","cancelButton"],!0)},enableInput:function(){return fe(this.getInput(),!1)},disableInput:function(){return fe(this.getInput(),!0)},showValidationMessage:function(t){var e=Pt.domCache.get(this);_(e.validationMessage,t);var n=window.getComputedStyle(e.popup);e.validationMessage.style.marginLeft="-".concat(n.getPropertyValue("padding-left")),e.validationMessage.style.marginRight="-".concat(n.getPropertyValue("padding-right")),et(e.validationMessage);var o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedBy",W["validation-message"]),X(o),pt(o,W.inputerror))},resetValidationMessage:function(){var t=Pt.domCache.get(this);t.validationMessage&&nt(t.validationMessage);var e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedBy"),ft(e,W.inputerror))},getProgressSteps:function(){return Pt.domCache.get(this).progressSteps},_main:function(t){!function(t){for(var e in t)Yt(i=e)||N('Unknown parameter "'.concat(i,'"')),t.toast&&(o=e,-1!==Gt.indexOf(o)&&N('The parameter "'.concat(o,'" is incompatible with toasts'))),Zt(n=e)&&g(n,Zt(n));var n,o,i}(t),Qt.currentInstance&&Qt.currentInstance._destroy(),Qt.currentInstance=this;var e=function(t){var e=s({},$t.showClass,t.showClass),n=s({},$t.hideClass,t.hideClass),o=s({},$t,t);if(o.showClass=e,o.hideClass=n,t.animation===false){o.showClass={popup:"swal2-noanimation",backdrop:"swal2-noanimation"};o.hideClass={}}return o}(t);ge(e),Object.freeze(e),Qt.timeout&&(Qt.timeout.stop(),delete Qt.timeout),clearTimeout(Qt.restoreFocusTimeout);var n=function(t){var e={popup:Z(),container:Y(),content:x(),actions:O(),confirmButton:S(),cancelButton:B(),closeButton:I(),validationMessage:E(),progressSteps:A()};return Pt.domCache.set(t,e),e}(this);return Mt(this,e),Pt.innerParams.set(this,e),function(n,o,i){return new Promise(function(t){var e=function t(e){n.closePopup({dismiss:e})};ce.swalPromiseResolve.set(n,t);o.confirmButton.onclick=function(){return we(n,i)};o.cancelButton.onclick=function(){return Ce(n,e)};o.closeButton.onclick=function(){return e(z.close)};Ae(n,o,e);xe(n,Qt,i,e);if(i.toast&&(i.input||i.footer||i.showCloseButton)){pt(document.body,W["toast-column"])}else{ft(document.body,W["toast-column"])}be(n,i);ve(i);$e(Qt,i,e);Je(o,i);setTimeout(function(){o.container.scrollTop=0})})}(this,n,e)},update:function(e){var t=Z(),n=Pt.innerParams.get(this);if(!t||R(t,n.hideClass.popup))return N("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");var o={};Object.keys(e).forEach(function(t){on.isUpdatableParameter(t)?o[t]=e[t]:N('Invalid parameter to update: "'.concat(t,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js'))});var i=s({},n,o);Mt(this,i),Pt.innerParams.set(this,i),Object.defineProperties(this,{params:{value:s({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){var t=Pt.domCache.get(this),e=Pt.innerParams.get(this);e&&(t.popup&&Qt.swalCloseEventFinishedCallback&&(Qt.swalCloseEventFinishedCallback(),delete Qt.swalCloseEventFinishedCallback),Qt.deferDisposalTimer&&(clearTimeout(Qt.deferDisposalTimer),delete Qt.deferDisposalTimer),"function"==typeof e.onDestroy&&e.onDestroy(),delete this.params,delete Qt.keydownHandler,delete Qt.keydownTarget,tn(Pt),tn(ce))}}),nn=function(){function r(){if(a(this,r),"undefined"!=typeof window){"undefined"==typeof Promise&&v("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),Ge=this;for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:o,writable:!1,enumerable:!0,configurable:!0}});var i=this._main(this.params);Pt.promise.set(this,i)}}return c(r,[{key:"then",value:function(t){return Pt.promise.get(this).then(t)}},{key:"finally",value:function(t){return Pt.promise.get(this).finally(t)}}]),r}();s(nn.prototype,en),s(nn,te),Object.keys(en).forEach(function(t){nn[t]=function(){if(Ge)return Ge[t].apply(Ge,arguments)}}),nn.DismissReason=z,nn.version="9.10.13";var on=nn;return on.default=on}),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2);