|
1
|
|
-(()=>{var e={9455(e,t,o){"use strict";o.d(t,{A:()=>i});var s=o(1601),n=o.n(s),a=o(6314),r=o.n(a)()(n());r.push([e.id,"/*!\n * Toastify js 1.12.0\n * https://github.com/apvarun/toastify-js\n * @license MIT licensed\n *\n * Copyright (C) 2018 Varun A P\n */\n\n.toastify {\n padding: 12px 20px;\n color: #ffffff;\n display: inline-block;\n box-shadow: 0 3px 6px -1px rgba(0, 0, 0, 0.12), 0 10px 36px -4px rgba(77, 96, 232, 0.3);\n background: -webkit-linear-gradient(315deg, #73a5ff, #5477f5);\n background: linear-gradient(135deg, #73a5ff, #5477f5);\n position: fixed;\n opacity: 0;\n transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);\n border-radius: 2px;\n cursor: pointer;\n text-decoration: none;\n max-width: calc(50% - 20px);\n z-index: 2147483647;\n}\n\n.toastify.on {\n opacity: 1;\n}\n\n.toast-close {\n background: transparent;\n border: 0;\n color: white;\n cursor: pointer;\n font-family: inherit;\n font-size: 1em;\n opacity: 0.4;\n padding: 0 5px;\n}\n\n.toastify-right {\n right: 15px;\n}\n\n.toastify-left {\n left: 15px;\n}\n\n.toastify-top {\n top: -150px;\n}\n\n.toastify-bottom {\n bottom: -150px;\n}\n\n.toastify-rounded {\n border-radius: 25px;\n}\n\n.toastify-avatar {\n width: 1.5em;\n height: 1.5em;\n margin: -7px 5px;\n border-radius: 2px;\n}\n\n.toastify-center {\n margin-left: auto;\n margin-right: auto;\n left: 0;\n right: 0;\n max-width: fit-content;\n max-width: -moz-fit-content;\n}\n\n@media only screen and (max-width: 360px) {\n .toastify-right, .toastify-left {\n margin-left: auto;\n margin-right: auto;\n left: 0;\n right: 0;\n max-width: fit-content;\n }\n}\n",""]);const i=r},6314(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var o="",s=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),s&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),s&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o}).join("")},t.i=function(e,o,s,n,a){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(s)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(r[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);s&&r[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),o&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=o):d[2]=o),n&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=n):d[4]="".concat(n)),t.push(d))}},t}},1601(e){"use strict";e.exports=function(e){return e[1]}},5072(e){"use strict";var t=[];function o(e){for(var o=-1,s=0;s<t.length;s++)if(t[s].identifier===e){o=s;break}return o}function s(e,s){for(var a={},r=[],i=0;i<e.length;i++){var l=e[i],c=s.base?l[0]+s.base:l[0],d=a[c]||0,u="".concat(c," ").concat(d);a[c]=d+1;var p=o(u),m={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(m);else{var w=n(m,s);s.byIndex=i,t.splice(i,0,{identifier:u,updater:w,references:1})}r.push(u)}return r}function n(e,t){var o=t.domAPI(t);return o.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;o.update(e=t)}else o.remove()}}e.exports=function(e,n){var a=s(e=e||[],n=n||{});return function(e){e=e||[];for(var r=0;r<a.length;r++){var i=o(a[r]);t[i].references--}for(var l=s(e,n),c=0;c<a.length;c++){var d=o(a[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}a=l}}},7659(e){"use strict";var t={};e.exports=function(e,o){var s=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(o)}},540(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056(e,t,o){"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},7825(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var s="";o.supports&&(s+="@supports (".concat(o.supports,") {")),o.media&&(s+="@media ".concat(o.media," {"));var n=void 0!==o.layer;n&&(s+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),s+=o.css,n&&(s+="}"),o.media&&(s+="}"),o.supports&&(s+="}");var a=o.sourceMap;a&&"undefined"!=typeof btoa&&(s+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(s,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},8465(e){e.exports=function(){"use strict";function e(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}function t(t,o){return t.get(e(t,o))}function o(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}const s={},n=e=>new Promise(t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;s.restoreFocusTimeout=setTimeout(()=>{s.previousActiveElement instanceof HTMLElement?(s.previousActiveElement.focus(),s.previousActiveElement=null):document.body&&document.body.focus(),t()},100),window.scrollTo(o,n)}),a="swal2-",r=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","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","draggable","dragging"].reduce((e,t)=>(e[t]=a+t,e),{}),i=["success","warning","info","question","error"].reduce((e,t)=>(e[t]=a+t,e),{}),l="SweetAlert2:",c=e=>e.charAt(0).toUpperCase()+e.slice(1),d=e=>{console.warn(`${l} ${"object"==typeof e?e.join(" "):e}`)},u=e=>{console.error(`${l} ${e}`)},p=[],m=(e,t=null)=>{var o;o=`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`,p.includes(o)||(p.push(o),d(o))},w=e=>"function"==typeof e?e():e,h=e=>e&&"function"==typeof e.toPromise,g=e=>h(e)?e.toPromise():Promise.resolve(e),f=e=>e&&Promise.resolve(e)===e,b=()=>document.body.querySelector(`.${r.container}`),v=e=>{const t=b();return t?t.querySelector(e):null},y=e=>v(`.${e}`),k=()=>y(r.popup),C=()=>y(r.icon),x=()=>y(r.title),S=()=>y(r["html-container"]),A=()=>y(r.image),B=()=>y(r["progress-steps"]),T=()=>y(r["validation-message"]),L=()=>v(`.${r.actions} .${r.confirm}`),E=()=>v(`.${r.actions} .${r.cancel}`),I=()=>v(`.${r.actions} .${r.deny}`),P=()=>v(`.${r.loader}`),$=()=>y(r.actions),M=()=>y(r.footer),q=()=>y(r["timer-progress-bar"]),O=()=>y(r.close),_=()=>{const e=k();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),o=Array.from(t).sort((e,t)=>{const o=parseInt(e.getAttribute("tabindex")||"0"),s=parseInt(t.getAttribute("tabindex")||"0");return o>s?1:o<s?-1:0}),s=e.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'),n=Array.from(s).filter(e=>"-1"!==e.getAttribute("tabindex"));return[...new Set(o.concat(n))].filter(e=>ee(e))},H=()=>j(document.body,r.shown)&&!j(document.body,r["toast-shown"])&&!j(document.body,r["no-backdrop"]),D=()=>{const e=k();return!!e&&j(e,r.toast)},N=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html"),s=o.querySelector("head");s&&Array.from(s.childNodes).forEach(t=>{e.appendChild(t)});const n=o.querySelector("body");n&&Array.from(n.childNodes).forEach(t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)})}},j=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t<o.length;t++)if(!e.classList.contains(o[t]))return!1;return!0},F=(e,t,o)=>{if(((e,t)=>{Array.from(e.classList).forEach(o=>{Object.values(r).includes(o)||Object.values(i).includes(o)||Object.values(t.showClass||{}).includes(o)||e.classList.remove(o)})})(e,t),!t.customClass)return;const s=t.customClass[o];s&&("string"==typeof s||s.forEach?R(e,s):d(`Invalid type of customClass.${o}! Expected string or iterable object, got "${typeof s}"`))},z=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${r.popup} > .${r[t]}`);case"checkbox":return e.querySelector(`.${r.popup} > .${r.checkbox} input`);case"radio":return e.querySelector(`.${r.popup} > .${r.radio} input:checked`)||e.querySelector(`.${r.popup} > .${r.radio} input:first-child`);case"range":return e.querySelector(`.${r.popup} > .${r.range} input`);default:return e.querySelector(`.${r.popup} > .${r.input}`)}},V=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},X=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(t=>{Array.isArray(e)?e.forEach(e=>{o?e.classList.add(t):e.classList.remove(t)}):o?e.classList.add(t):e.classList.remove(t)}))},R=(e,t)=>{X(e,t,!0)},J=(e,t)=>{X(e,t,!1)},Y=(e,t)=>{const o=Array.from(e.children);for(let e=0;e<o.length;e++){const s=o[e];if(s instanceof HTMLElement&&j(s,t))return s}},G=(e,t,o)=>{o===`${parseInt(`${o}`)}`&&(o=parseInt(o)),o||0===parseInt(`${o}`)?e.style.setProperty(t,"number"==typeof o?`${o}px`:o):e.style.removeProperty(t)},U=(e,t="flex")=>{e&&(e.style.display=t)},W=e=>{e&&(e.style.display="none")},Z=(e,t="block")=>{e&&new MutationObserver(()=>{Q(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},K=(e,t,o,s)=>{const n=e.querySelector(t);n&&n.style.setProperty(o,s)},Q=(e,t,o="flex")=>{t?U(e,o):W(e)},ee=e=>Boolean(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),te=e=>Boolean(e.scrollHeight>e.clientHeight),oe=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),s=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||s>0},se=(e,t=!1)=>{const o=q();o&&ee(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout(()=>{o.style.transition=`width ${e/1e3}s linear`,o.style.width="0%"},10))},ne=`\n <div aria-labelledby="${r.title}" aria-describedby="${r["html-container"]}" class="${r.popup}" tabindex="-1">\n <button type="button" class="${r.close}"></button>\n <ul class="${r["progress-steps"]}"></ul>\n <div class="${r.icon}"></div>\n <img class="${r.image}" />\n <h2 class="${r.title}" id="${r.title}"></h2>\n <div class="${r["html-container"]}" id="${r["html-container"]}"></div>\n <input class="${r.input}" id="${r.input}" />\n <input type="file" class="${r.file}" />\n <div class="${r.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${r.select}" id="${r.select}"></select>\n <div class="${r.radio}"></div>\n <label class="${r.checkbox}">\n <input type="checkbox" id="${r.checkbox}" />\n <span class="${r.label}"></span>\n </label>\n <textarea class="${r.textarea}" id="${r.textarea}"></textarea>\n <div class="${r["validation-message"]}" id="${r["validation-message"]}"></div>\n <div class="${r.actions}">\n <div class="${r.loader}"></div>\n <button type="button" class="${r.confirm}"></button>\n <button type="button" class="${r.deny}"></button>\n <button type="button" class="${r.cancel}"></button>\n </div>\n <div class="${r.footer}"></div>\n <div class="${r["timer-progress-bar-container"]}">\n <div class="${r["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),ae=()=>{s.currentInstance&&s.currentInstance.resetValidationMessage()},re=e=>{const t=(()=>{const e=b();return!!e&&(e.remove(),J([document.documentElement,document.body],[r["no-backdrop"],r["toast-shown"],r["has-column"]]),!0)})();if("undefined"==typeof window||"undefined"==typeof document)return void u("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=r.container,t&&R(o,r["no-transition"]),N(o,ne),o.dataset.swal2Theme=e.theme;const n=(e=>{if("string"==typeof e){const t=document.querySelector(e);if(!t)throw new Error(`Target element "${e}" not found`);return t}return e})(e.target||"body");n.appendChild(o),e.topLayer&&(o.setAttribute("popover",""),o.showPopover()),(e=>{const t=k();t&&(t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true"))})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&(R(b(),r.rtl),s.isRTL=!0)})(n),(()=>{const e=k();if(!e)return;const t=Y(e,r.input),o=Y(e,r.file),s=e.querySelector(`.${r.range} input`),n=e.querySelector(`.${r.range} output`),a=Y(e,r.select),i=e.querySelector(`.${r.checkbox} input`),l=Y(e,r.textarea);t&&(t.oninput=ae),o&&(o.onchange=ae),a&&(a.onchange=ae),i&&(i.onchange=ae),l&&(l.oninput=ae),s&&n&&(s.oninput=()=>{ae(),n.value=s.value},s.onchange=()=>{ae(),n.value=s.value})})()},ie=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?le(e,t):e&&N(t,e)},le=(e,t)=>{"jquery"in e?ce(t,e):N(t,e.toString())},ce=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},de=(e,t)=>{const o=$(),s=P();o&&s&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?U(o):W(o),F(o,t,"actions"),function(e,t,o){const s=L(),n=I(),a=E();s&&n&&a&&(pe(s,"confirm",o),pe(n,"deny",o),pe(a,"cancel",o),function(e,t,o,s){s.buttonsStyling?(R([e,t,o],r.styled),s.confirmButtonColor&&e.style.setProperty("--swal2-confirm-button-background-color",s.confirmButtonColor),s.denyButtonColor&&t.style.setProperty("--swal2-deny-button-background-color",s.denyButtonColor),s.cancelButtonColor&&o.style.setProperty("--swal2-cancel-button-background-color",s.cancelButtonColor),ue(e),ue(t),ue(o)):J([e,t,o],r.styled)}(s,n,a,o),o.reverseButtons&&(o.toast?(e.insertBefore(a,s),e.insertBefore(n,s)):(e.insertBefore(a,t),e.insertBefore(n,t),e.insertBefore(s,t))))}(o,s,t),N(s,t.loaderHtml||""),F(s,t,"loader"))};function ue(e){const t=window.getComputedStyle(e);if(t.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const o=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-focus-box-shadow",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${o}`))}function pe(e,t,o){const s=c(t);Q(e,o[`show${s}Button`],"inline-block"),N(e,o[`${t}ButtonText`]||""),e.setAttribute("aria-label",o[`${t}ButtonAriaLabel`]||""),e.className=r[t],F(e,o,`${t}Button`)}const me=(e,t)=>{const o=b();o&&(function(e,t){"string"==typeof t?e.style.background=t:t||R([document.documentElement,document.body],r["no-backdrop"])}(o,t.backdrop),function(e,t){t&&(t in r?R(e,r[t]):(d('The "position" parameter is not valid, defaulting to "center"'),R(e,r.center)))}(o,t.position),function(e,t){t&&R(e,r[`grow-${t}`])}(o,t.grow),F(o,t,"container"))};var we={innerParams:new WeakMap,domCache:new WeakMap};const he=["input","file","range","select","radio","checkbox","textarea"],ge=e=>{if(!e.input)return;if(!xe[e.input])return void u(`Unexpected type of input! Expected ${Object.keys(xe).join(" | ")}, got "${e.input}"`);const t=ke(e.input);if(!t)return;const o=xe[e.input](t,e);U(t),e.inputAutoFocus&&setTimeout(()=>{V(o)})},fe=(e,t)=>{const o=k();if(!o)return;const s=z(o,e);if(s){(e=>{for(let t=0;t<e.attributes.length;t++){const o=e.attributes[t].name;["id","type","value","style"].includes(o)||e.removeAttribute(o)}})(s);for(const e in t)s.setAttribute(e,t[e])}},be=e=>{if(!e.input)return;const t=ke(e.input);t&&F(t,e,"input")},ve=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},ye=(e,t,o)=>{if(o.inputLabel){const s=document.createElement("label"),n=r["input-label"];s.setAttribute("for",e.id),s.className=n,"object"==typeof o.customClass&&R(s,o.customClass.inputLabel),s.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",s)}},ke=e=>{const t=k();if(t)return Y(t,r[e]||r.input)},Ce=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:f(t)||d(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},xe={};xe.text=xe.email=xe.password=xe.number=xe.tel=xe.url=xe.search=xe.date=xe["datetime-local"]=xe.time=xe.week=xe.month=(e,t)=>{const o=e;return Ce(o,t.inputValue),ye(o,o,t),ve(o,t),o.type=t.input,o},xe.file=(e,t)=>{const o=e;return ye(o,o,t),ve(o,t),o},xe.range=(e,t)=>{const o=e,s=o.querySelector("input"),n=o.querySelector("output");return s&&(Ce(s,t.inputValue),s.type=t.input,ye(s,e,t)),n&&Ce(n,t.inputValue),e},xe.select=(e,t)=>{const o=e;if(o.textContent="",t.inputPlaceholder){const e=document.createElement("option");N(e,t.inputPlaceholder),e.value="",e.disabled=!0,e.selected=!0,o.appendChild(e)}return ye(o,o,t),o},xe.radio=e=>(e.textContent="",e),xe.checkbox=(e,t)=>{const o=k();if(!o)throw new Error("Popup not found");const s=z(o,"checkbox");if(!s)throw new Error("Checkbox input not found");s.value="1",s.checked=Boolean(t.inputValue);const n=e.querySelector("span");if(n){const e=t.inputPlaceholder||t.inputLabel;e&&N(n,e)}return s},xe.textarea=(e,t)=>{const o=e;Ce(o,t.inputValue),ve(o,t),ye(o,o,t);return setTimeout(()=>{if("MutationObserver"in window){const e=k();if(!e)return;const s=parseInt(window.getComputedStyle(e).width);new MutationObserver(()=>{if(!document.body.contains(o))return;const e=o.offsetWidth+(a=o,parseInt(window.getComputedStyle(a).marginLeft)+parseInt(window.getComputedStyle(a).marginRight)),n=k();var a;n&&(e>s?n.style.width=`${e}px`:G(n,"width",t.width))}).observe(o,{attributes:!0,attributeFilter:["style"]})}}),o};const Se=(e,t)=>{const o=S();o&&(Z(o),F(o,t,"htmlContainer"),t.html?(ie(t.html,o),U(o,"block")):t.text?(o.textContent=t.text,U(o,"block")):W(o),((e,t)=>{const o=k();if(!o)return;const s=we.innerParams.get(e),n=!s||t.input!==s.input;he.forEach(e=>{const s=Y(o,r[e]);s&&(fe(e,t.inputAttributes),s.className=r[e],n&&W(s))}),t.input&&(n&&ge(t),be(t))})(e,t))},Ae=(e,t)=>{for(const[o,s]of Object.entries(i))t.icon!==o&&J(e,s);R(e,t.icon&&i[t.icon]),Le(e,t),Be(),F(e,t,"icon")},Be=()=>{const e=k();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e<o.length;e++)o[e].style.backgroundColor=t},Te=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let o=e.innerHTML,s="";t.iconHtml?s=Ee(t.iconHtml):"success"===t.icon?(s=(e=>`\n ${e.animation?'<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>\n ${e.animation?'<div class="swal2-success-fix"></div>':""}\n ${e.animation?'<div class="swal2-success-circular-line-right"></div>':""}\n`)(t),o=o.replace(/ style=".*?"/g,"")):"error"===t.icon?s='\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.icon&&(s=Ee({question:"?",warning:"!",info:"i"}[t.icon])),o.trim()!==s.trim()&&N(e,s)},Le=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])K(e,o,"background-color",t.iconColor);K(e,".swal2-success-ring","border-color",t.iconColor)}},Ee=e=>`<div class="${r["icon-content"]}">${e}</div>`;let Ie=!1,Pe=0,$e=0,Me=0,qe=0;const Oe=e=>{const t=k();if(!t)return;const o=C();if(e.target===t||o&&o.contains(e.target)){Ie=!0;const o=De(e);Pe=o.clientX,$e=o.clientY,Me=parseInt(t.style.insetInlineStart)||0,qe=parseInt(t.style.insetBlockStart)||0,R(t,"swal2-dragging")}},_e=e=>{const t=k();if(t&&Ie){let{clientX:o,clientY:n}=De(e);const a=o-Pe;t.style.insetInlineStart=`${Me+(s.isRTL?-a:a)}px`,t.style.insetBlockStart=`${qe+(n-$e)}px`}},He=()=>{const e=k();Ie=!1,J(e,"swal2-dragging")},De=e=>{let t=0,o=0;return e.type.startsWith("mouse")?(t=e.clientX,o=e.clientY):e.type.startsWith("touch")&&(t=e.touches[0].clientX,o=e.touches[0].clientY),{clientX:t,clientY:o}},Ne=(e,t)=>{const o=b(),s=k();if(o&&s){if(t.toast){G(o,"width",t.width),s.style.width="100%";const e=P();e&&s.insertBefore(e,C())}else G(s,"width",t.width);G(s,"padding",t.padding),t.color&&(s.style.color=t.color),t.background&&(s.style.background=t.background),W(T()),je(s,t),t.draggable&&!t.toast?(R(s,r.draggable),(e=>{e.addEventListener("mousedown",Oe),document.body.addEventListener("mousemove",_e),e.addEventListener("mouseup",He),e.addEventListener("touchstart",Oe),document.body.addEventListener("touchmove",_e),e.addEventListener("touchend",He)})(s)):(J(s,r.draggable),(e=>{e.removeEventListener("mousedown",Oe),document.body.removeEventListener("mousemove",_e),e.removeEventListener("mouseup",He),e.removeEventListener("touchstart",Oe),document.body.removeEventListener("touchmove",_e),e.removeEventListener("touchend",He)})(s))}},je=(e,t)=>{const o=t.showClass||{};e.className=`${r.popup} ${ee(e)?o.popup:""}`,t.toast?(R([document.documentElement,document.body],r["toast-shown"]),R(e,r.toast)):R(e,r.modal),F(e,t,"popup"),"string"==typeof t.customClass&&R(e,t.customClass),t.icon&&R(e,r[`icon-${t.icon}`])},Fe=e=>{const t=document.createElement("li");return R(t,r["progress-step"]),N(t,e),t},ze=e=>{const t=document.createElement("li");return R(t,r["progress-step-line"]),e.progressStepsDistance&&G(t,"width",e.progressStepsDistance),t},Ve=(e,t)=>{var o;Ne(0,t),me(0,t),((e,t)=>{const o=B();if(!o)return;const{progressSteps:s,currentProgressStep:n}=t;s&&0!==s.length&&void 0!==n?(U(o),o.textContent="",n>=s.length&&d("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),s.forEach((e,a)=>{const i=Fe(e);if(o.appendChild(i),a===n&&R(i,r["active-progress-step"]),a!==s.length-1){const e=ze(t);o.appendChild(e)}})):W(o)})(0,t),((e,t)=>{const o=we.innerParams.get(e),s=C();if(s){if(o&&t.icon===o.icon)return Te(s,t),void Ae(s,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(i).indexOf(t.icon))return u(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void W(s);U(s),Te(s,t),Ae(s,t),R(s,t.showClass&&t.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",Be)}else W(s)}})(e,t),((e,t)=>{const o=A();o&&(t.imageUrl?(U(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt||""),G(o,"width",t.imageWidth),G(o,"height",t.imageHeight),o.className=r.image,F(o,t,"image")):W(o))})(0,t),((e,t)=>{const o=x();o&&(Z(o),Q(o,Boolean(t.title||t.titleText),"block"),t.title&&ie(t.title,o),t.titleText&&(o.innerText=t.titleText),F(o,t,"title"))})(0,t),((e,t)=>{const o=O();o&&(N(o,t.closeButtonHtml||""),F(o,t,"closeButton"),Q(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel||""))})(0,t),Se(e,t),de(0,t),((e,t)=>{const o=M();o&&(Z(o),Q(o,Boolean(t.footer),"block"),t.footer&&ie(t.footer,o),F(o,t,"footer"))})(0,t);const n=k();"function"==typeof t.didRender&&n&&t.didRender(n),null===(o=s.eventEmitter)||void 0===o||o.emit("didRender",n)},Xe=()=>{var e;return null===(e=L())||void 0===e?void 0:e.click()},Re=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Je=e=>{if(e.keydownTarget&&e.keydownHandlerAdded&&e.keydownHandler){const t=e.keydownHandler;e.keydownTarget.removeEventListener("keydown",t,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1}},Ye=(e,t)=>{var o;const s=_();if(s.length)return-2===(e+=t)&&(e=s.length-1),e===s.length?e=0:-1===e&&(e=s.length-1),void s[e].focus();null===(o=k())||void 0===o||o.focus()},Ge=["ArrowRight","ArrowDown"],Ue=["ArrowLeft","ArrowUp"],We=(e,t,o)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Ze(t,e):"Tab"===t.key?Ke(t):[...Ge,...Ue].includes(t.key)?Qe(t.key):"Escape"===t.key&&et(t,e,o)))},Ze=(e,t)=>{if(!w(t.allowEnterKey))return;const o=k();if(!o||!t.input)return;const s=z(o,t.input);if(e.target&&s&&e.target instanceof HTMLElement&&e.target.outerHTML===s.outerHTML){if(["textarea","file"].includes(t.input))return;Xe(),e.preventDefault()}},Ke=e=>{const t=e.target,o=_();let s=-1;for(let e=0;e<o.length;e++)if(t===o[e]){s=e;break}e.shiftKey?Ye(s,-1):Ye(s,1),e.stopPropagation(),e.preventDefault()},Qe=e=>{const t=$(),o=L(),s=I(),n=E();if(!(t&&o&&s&&n))return;const a=[o,s,n];if(document.activeElement instanceof HTMLElement&&!a.includes(document.activeElement))return;const r=Ge.includes(e)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;if(i){for(let e=0;e<t.children.length;e++){if(i=i[r],!i)return;if(i instanceof HTMLButtonElement&&ee(i))break}i instanceof HTMLButtonElement&&i.focus()}},et=(e,t,o)=>{e.preventDefault(),w(t.allowEscapeKey)&&o(Re.esc)};var tt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const ot=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},st="undefined"!=typeof window&&Boolean(window.GestureEvent),nt=()=>{const e=b();if(!e)return;let t;e.ontouchstart=e=>{t=at(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},at=e=>{const t=e.target,o=b(),s=S();return!(!o||!s||rt(e)||it(e)||t!==o&&(te(o)||!(t instanceof HTMLElement)||((e,t)=>{let o=e;for(;o&&o!==t;){if(te(o))return!0;o=o.parentElement}return!1})(t,s)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||te(s)&&s.contains(t)))},rt=e=>Boolean(e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType),it=e=>e.touches&&e.touches.length>1;let lt=null;const ct=e=>{null===lt&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(lt=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${lt+(()=>{const e=document.createElement("div");e.className=r["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})()}px`)};function dt(e,t,o,a){D()?bt(e,a):(n(o).then(()=>bt(e,a)),Je(s)),st?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),H()&&(null!==lt&&(document.body.style.paddingRight=`${lt}px`,lt=null),(()=>{if(j(document.body,r.iosfix)){const e=parseInt(document.body.style.top,10);J(document.body,r.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),ot()),J([document.documentElement,document.body],[r.shown,r["height-auto"],r["no-backdrop"],r["toast-shown"]])}function ut(e){e=ht(e);const t=tt.swalPromiseResolve.get(this),o=pt(this);this.isAwaitingPromise?e.isDismissed||(wt(this),t(e)):o&&t(e)}const pt=e=>{const t=k();if(!t)return!1;const o=we.innerParams.get(e);if(!o||j(t,o.hideClass.popup))return!1;J(t,o.showClass.popup),R(t,o.hideClass.popup);const s=b();return J(s,o.showClass.backdrop),R(s,o.hideClass.backdrop),gt(e,t,o),!0};function mt(e){const t=tt.swalPromiseReject.get(this);wt(this),t&&t(e)}const wt=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,we.innerParams.get(e)||e._destroy())},ht=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),gt=(e,t,o)=>{var n;const a=b(),r=oe(t);"function"==typeof o.willClose&&o.willClose(t),null===(n=s.eventEmitter)||void 0===n||n.emit("willClose",t),r&&a?ft(e,t,a,Boolean(o.returnFocus),o.didClose):a&&dt(e,a,Boolean(o.returnFocus),o.didClose)},ft=(e,t,o,n,a)=>{s.swalCloseEventFinishedCallback=dt.bind(null,e,o,n,a);const r=function(e){var o;e.target===t&&(null===(o=s.swalCloseEventFinishedCallback)||void 0===o||o.call(s),delete s.swalCloseEventFinishedCallback,t.removeEventListener("animationend",r),t.removeEventListener("transitionend",r))};t.addEventListener("animationend",r),t.addEventListener("transitionend",r)},bt=(e,t)=>{setTimeout(()=>{var o;"function"==typeof t&&t.bind(e.params)(),null===(o=s.eventEmitter)||void 0===o||o.emit("didClose"),e._destroy&&e._destroy()})},vt=e=>{let t=k();if(t||new Qo,t=k(),!t)return;const o=P();D()?W(C()):yt(t,e),U(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},yt=(e,t)=>{const o=$(),s=P();o&&s&&(!t&&ee(L())&&(t=L()),U(o),t&&(W(t),s.setAttribute("data-button-to-replace",t.className),o.insertBefore(s,t)),R([e,o],r.loading))},kt=e=>e.checked?1:0,Ct=e=>e.checked?e.value:null,xt=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,St=(e,t)=>{const o=k();if(!o)return;const s=e=>{"select"===t.input?function(e,t,o){const s=Y(e,r.select);if(!s)return;const n=(e,t,s)=>{const n=document.createElement("option");n.value=s,N(n,t),n.selected=Tt(s,o.inputValue),e.appendChild(n)};t.forEach(e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,s.appendChild(e),o.forEach(t=>n(e,t[1],t[0]))}else n(s,o,t)}),s.focus()}(o,Bt(e),t):"radio"===t.input&&function(e,t,o){const s=Y(e,r.radio);if(!s)return;t.forEach(e=>{const t=e[0],n=e[1],a=document.createElement("input"),i=document.createElement("label");a.type="radio",a.name=r.radio,a.value=t,Tt(t,o.inputValue)&&(a.checked=!0);const l=document.createElement("span");N(l,n),l.className=r.label,i.appendChild(a),i.appendChild(l),s.appendChild(i)});const n=s.querySelectorAll("input");n.length&&n[0].focus()}(o,Bt(e),t)};h(t.inputOptions)||f(t.inputOptions)?(vt(L()),g(t.inputOptions).then(t=>{e.hideLoading(),s(t)})):"object"==typeof t.inputOptions?s(t.inputOptions):u("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},At=(e,t)=>{const o=e.getInput();o&&(W(o),g(t.inputValue).then(s=>{o.value="number"===t.input?`${parseFloat(s)||0}`:`${s}`,U(o),o.focus(),e.hideLoading()}).catch(t=>{u(`Error in inputValue promise: ${t}`),o.value="",U(o),o.focus(),e.hideLoading()}))};const Bt=e=>{const t=[];return e instanceof Map?e.forEach((e,o)=>{let s=e;"object"==typeof s&&(s=Bt(s)),t.push([o,s])}):Object.keys(e).forEach(o=>{let s=e[o];"object"==typeof s&&(s=Bt(s)),t.push([o,s])}),t},Tt=(e,t)=>Boolean(t)&&null!=t&&t.toString()===e.toString(),Lt=(e,t)=>{const o=we.innerParams.get(e);if(!o.input)return void u(`The "input" parameter is needed to be set when using returnInputValueOn${c(t)}`);const s=e.getInput(),n=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return kt(o);case"radio":return Ct(o);case"file":return xt(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,o);o.inputValidator?Et(e,n,t):s&&!s.checkValidity()?(e.enableButtons(),e.showValidationMessage(o.validationMessage||s.validationMessage)):"deny"===t?It(e,n):Mt(e,n)},Et=(e,t,o)=>{const s=we.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>g(s.inputValidator(t,s.validationMessage))).then(s=>{e.enableButtons(),e.enableInput(),s?e.showValidationMessage(s):"deny"===o?It(e,t):Mt(e,t)})},It=(e,t)=>{const o=we.innerParams.get(e);o.showLoaderOnDeny&&vt(I()),o.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>g(o.preDeny(t,o.validationMessage))).then(o=>{!1===o?(e.hideLoading(),wt(e)):e.close({isDenied:!0,value:void 0===o?t:o})}).catch(t=>$t(e,t))):e.close({isDenied:!0,value:t})},Pt=(e,t)=>{e.close({isConfirmed:!0,value:t})},$t=(e,t)=>{e.rejectPromise(t)},Mt=(e,t)=>{const o=we.innerParams.get(e);o.showLoaderOnConfirm&&vt(),o.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>g(o.preConfirm(t,o.validationMessage))).then(o=>{ee(T())||!1===o?(e.hideLoading(),wt(e)):Pt(e,void 0===o?t:o)}).catch(t=>$t(e,t))):Pt(e,t)};function qt(){const e=we.innerParams.get(this);if(!e)return;const t=we.domCache.get(this);W(t.loader),D()?e.icon&&U(C()):Ot(t),J([t.popup,t.actions],r.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Ot=e=>{const t=e.loader.getAttribute("data-button-to-replace"),o=t?e.popup.getElementsByClassName(t):[];o.length?U(o[0],"inline-block"):!ee(L())&&!ee(I())&&!ee(E())&&W(e.actions)};function _t(){const e=we.innerParams.get(this),t=we.domCache.get(this);return t?z(t.popup,e.input):null}function Ht(e,t,o){const s=we.domCache.get(e);t.forEach(e=>{s[e].disabled=o})}function Dt(e,t){const o=k();if(o&&e)if("radio"===e.type){const e=o.querySelectorAll(`[name="${r.radio}"]`);for(let o=0;o<e.length;o++)e[o].disabled=t}else e.disabled=t}function Nt(){Ht(this,["confirmButton","denyButton","cancelButton"],!1)}function jt(){Ht(this,["confirmButton","denyButton","cancelButton"],!0)}function Ft(){Dt(this.getInput(),!1)}function zt(){Dt(this.getInput(),!0)}function Vt(e){const t=we.domCache.get(this),o=we.innerParams.get(this);N(t.validationMessage,e),t.validationMessage.className=r["validation-message"],o.customClass&&o.customClass.validationMessage&&R(t.validationMessage,o.customClass.validationMessage),U(t.validationMessage);const s=this.getInput();s&&(s.setAttribute("aria-invalid","true"),s.setAttribute("aria-describedby",r["validation-message"]),V(s),R(s,r.inputerror))}function Xt(){const e=we.domCache.get(this);e.validationMessage&&W(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),J(t,r.inputerror))}const Rt={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",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:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!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:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},Jt=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],Yt={allowEnterKey:void 0},Gt=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Ut=e=>Object.prototype.hasOwnProperty.call(Rt,e),Wt=e=>-1!==Jt.indexOf(e),Zt=e=>Yt[e],Kt=e=>{Ut(e)||d(`Unknown parameter "${e}"`)},Qt=e=>{Gt.includes(e)&&d(`The parameter "${e}" is incompatible with toasts`)},eo=e=>{const t=Zt(e);t&&m(e,t)},to=e=>{!1===e.backdrop&&e.allowOutsideClick&&d('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(e.theme)&&d(`Invalid theme "${e.theme}"`);for(const t in e)Kt(t),e.toast&&Qt(t),eo(t)};function oo(e){const t=b(),o=k(),s=we.innerParams.get(this);if(!o||j(o,s.hideClass.popup))return void d("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.");const n=so(e),a=Object.assign({},s,n);to(a),t&&(t.dataset.swal2Theme=a.theme),Ve(this,a),we.innerParams.set(this,a),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const so=e=>{const t={};return Object.keys(e).forEach(o=>{if(Wt(o)){const s=e;t[o]=s[o]}else d(`Invalid parameter to update: ${o}`)}),t};function no(){var e;const t=we.domCache.get(this),o=we.innerParams.get(this);o?(t.popup&&s.swalCloseEventFinishedCallback&&(s.swalCloseEventFinishedCallback(),delete s.swalCloseEventFinishedCallback),"function"==typeof o.didDestroy&&o.didDestroy(),null===(e=s.eventEmitter)||void 0===e||e.emit("didDestroy"),ao(this)):ro(this)}const ao=e=>{ro(e),delete e.params,delete s.keydownHandler,delete s.keydownTarget,delete s.currentInstance},ro=e=>{e.isAwaitingPromise?(io(we,e),e.isAwaitingPromise=!0):(io(tt,e),io(we,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},io=(e,t)=>{for(const o in e)e[o].delete(t)};var lo=Object.freeze({__proto__:null,_destroy:no,close:ut,closeModal:ut,closePopup:ut,closeToast:ut,disableButtons:jt,disableInput:zt,disableLoading:qt,enableButtons:Nt,enableInput:Ft,getInput:_t,handleAwaitingPromise:wt,hideLoading:qt,rejectPromise:mt,resetValidationMessage:Xt,showValidationMessage:Vt,update:oo});const co=(e,t,o)=>{t.popup.onclick=()=>{e&&(uo(e)||e.timer||e.input)||o(Re.close)}},uo=e=>Boolean(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let po=!1;const mo=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(po=!0)}}},wo=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(po=!0)}}},ho=(e,t,o)=>{t.container.onclick=s=>{po?po=!1:s.target===t.container&&w(e.allowOutsideClick)&&o(Re.backdrop)}},go=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const fo=()=>{if(s.timeout)return(()=>{const e=q();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width=`${o}%`})(),s.timeout.stop()},bo=()=>{if(s.timeout){const e=s.timeout.start();return se(e),e}};let vo=!1;const yo={};const ko=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in yo){const o=t.getAttribute&&t.getAttribute(e);if(o)return void yo[e].fire({template:o})}};s.eventEmitter=new class{constructor(){this.events={}}_getHandlersByEventName(e){return void 0===this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const o=this._getHandlersByEventName(e);o.includes(t)||o.push(t)}once(e,t){const o=(...s)=>{this.removeListener(e,o),t.apply(this,s)};this.on(e,o)}emit(e,...t){this._getHandlersByEventName(e).forEach(e=>{try{e.apply(this,t)}catch(e){console.error(e)}})}removeListener(e,t){const o=this._getHandlersByEventName(e),s=o.indexOf(t);s>-1&&o.splice(s,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}};var Co=Object.freeze({__proto__:null,argsToParams:e=>{const t={};return"object"!=typeof e[0]||go(e[0])?["title","html","icon"].forEach((o,s)=>{const n=e[s];"string"==typeof n||go(n)?t[o]=n:void 0!==n&&u(`Unexpected type of ${o}! Expected "string" or "Element", got ${typeof n}`)}):Object.assign(t,e[0]),t},bindClickHandler:function(e="data-swal-template"){yo[e]=this,vo||(document.body.addEventListener("click",ko),vo=!0)},clickCancel:()=>{var e;return null===(e=E())||void 0===e?void 0:e.click()},clickConfirm:Xe,clickDeny:()=>{var e;return null===(e=I())||void 0===e?void 0:e.click()},enableLoading:vt,fire:function(...e){return new this(...e)},getActions:$,getCancelButton:E,getCloseButton:O,getConfirmButton:L,getContainer:b,getDenyButton:I,getFocusableElements:_,getFooter:M,getHtmlContainer:S,getIcon:C,getIconContent:()=>y(r["icon-content"]),getImage:A,getInputLabel:()=>y(r["input-label"]),getLoader:P,getPopup:k,getProgressSteps:B,getTimerLeft:()=>s.timeout&&s.timeout.getTimerLeft(),getTimerProgressBar:q,getTitle:x,getValidationMessage:T,increaseTimer:e=>{if(s.timeout){const t=s.timeout.increase(e);return se(t,!0),t}},isDeprecatedParameter:Zt,isLoading:()=>{const e=k();return!!e&&e.hasAttribute("data-loading")},isTimerRunning:()=>Boolean(s.timeout&&s.timeout.isRunning()),isUpdatableParameter:Wt,isValidParameter:Ut,isVisible:()=>ee(k()),mixin:function(e){return class extends(this){_main(t,o){return super._main(t,Object.assign({},e,o))}}},off:(e,t)=>{s.eventEmitter&&(e?t?s.eventEmitter.removeListener(e,t):s.eventEmitter.removeAllListeners(e):s.eventEmitter.reset())},on:(e,t)=>{s.eventEmitter&&s.eventEmitter.on(e,t)},once:(e,t)=>{s.eventEmitter&&s.eventEmitter.once(e,t)},resumeTimer:bo,showLoading:vt,stopTimer:fo,toggleTimer:()=>{const e=s.timeout;return e&&(e.running?fo():bo())}});class xo{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const So=["swal-title","swal-html","swal-footer"],Ao=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(e=>{Mo(e,["name","value"]);const o=e.getAttribute("name"),s=e.getAttribute("value");o&&s&&(t[o]=o in Rt&&"boolean"==typeof Rt[o]?"false"!==s:o in Rt&&"object"==typeof Rt[o]?JSON.parse(s):s)}),t},Bo=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(e=>{const o=e.getAttribute("name"),s=e.getAttribute("value");o&&s&&(t[o]=new Function(`return ${s}`)())}),t},To=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(e=>{Mo(e,["type","color","aria-label"]);const o=e.getAttribute("type");if(o&&["confirm","cancel","deny"].includes(o)){if(t[`${o}ButtonText`]=e.innerHTML,t[`show${c(o)}Button`]=!0,e.hasAttribute("color")){const s=e.getAttribute("color");null!==s&&(t[`${o}ButtonColor`]=s)}if(e.hasAttribute("aria-label")){const s=e.getAttribute("aria-label");null!==s&&(t[`${o}ButtonAriaLabel`]=s)}}}),t},Lo=e=>{const t={},o=e.querySelector("swal-image");return o&&(Mo(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")||void 0),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")||void 0),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")||void 0),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt")||void 0)),t},Eo=e=>{const t={},o=e.querySelector("swal-icon");return o&&(Mo(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},Io=e=>{const t={},o=e.querySelector("swal-input");o&&(Mo(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const s=Array.from(e.querySelectorAll("swal-input-option"));return s.length&&(t.inputOptions={},s.forEach(e=>{Mo(e,["value"]);const o=e.getAttribute("value");if(!o)return;const s=e.innerHTML;t.inputOptions[o]=s})),t},Po=(e,t)=>{const o={};for(const s in t){const n=t[s],a=e.querySelector(n);a&&(Mo(a,[]),o[n.replace(/^swal-/,"")]=a.innerHTML.trim())}return o},$o=e=>{const t=So.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(e=>{const o=e.tagName.toLowerCase();t.includes(o)||d(`Unrecognized element <${o}>`)})},Mo=(e,t)=>{Array.from(e.attributes).forEach(o=>{-1===t.indexOf(o.name)&&d([`Unrecognized attribute "${o.name}" on <${e.tagName.toLowerCase()}>.`,t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."])})},qo=e=>{var t,o;const n=b(),a=k();if(!n||!a)return;"function"==typeof e.willOpen&&e.willOpen(a),null===(t=s.eventEmitter)||void 0===t||t.emit("willOpen",a);const r=window.getComputedStyle(document.body).overflowY;if(Do(n,a,e),setTimeout(()=>{_o(n,a)},10),H()&&(Ho(n,void 0!==e.scrollbarPadding&&e.scrollbarPadding,r),(()=>{const e=b();Array.from(document.body.children).forEach(t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})})()),D()||s.previousActiveElement||(s.previousActiveElement=document.activeElement),"function"==typeof e.didOpen){const t=e.didOpen;setTimeout(()=>t(a))}null===(o=s.eventEmitter)||void 0===o||o.emit("didOpen",a)},Oo=e=>{const t=k();if(!t||e.target!==t)return;const o=b();o&&(t.removeEventListener("animationend",Oo),t.removeEventListener("transitionend",Oo),o.style.overflowY="auto",J(o,r["no-transition"]))},_o=(e,t)=>{oe(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",Oo),t.addEventListener("transitionend",Oo)):e.style.overflowY="auto"},Ho=(e,t,o)=>{(()=>{if(st&&!j(document.body,r.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",R(document.body,r.iosfix),nt()}})(),t&&"hidden"!==o&&ct(o),setTimeout(()=>{e.scrollTop=0})},Do=(e,t,o)=>{var s;null!==(s=o.showClass)&&void 0!==s&&s.backdrop&&R(e,o.showClass.backdrop),o.animation?(t.style.setProperty("opacity","0","important"),U(t,"grid"),setTimeout(()=>{var e;null!==(e=o.showClass)&&void 0!==e&&e.popup&&R(t,o.showClass.popup),t.style.removeProperty("opacity")},10)):U(t,"grid"),R([document.documentElement,document.body],r.shown),o.heightAuto&&o.backdrop&&!o.toast&&R([document.documentElement,document.body],r["height-auto"])};var No=(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),jo=(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL");function Fo(e){(function(e){e.inputValidator||("email"===e.input&&(e.inputValidator=No),"url"===e.input&&(e.inputValidator=jo))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&d("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"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(d('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),re(e)}let zo;var Vo=new WeakMap;class Xo{constructor(...t){if(o(this,Vo,Promise.resolve({isConfirmed:!1,isDenied:!1,isDismissed:!0})),"undefined"==typeof window)return;zo=this;const s=Object.freeze(this.constructor.argsToParams(t));var n,a,r;this.params=s,this.isAwaitingPromise=!1,n=Vo,a=this,r=this._main(zo.params),n.set(e(n,a),r)}_main(e,t={}){if(to(Object.assign({},t,e)),s.currentInstance){const e=tt.swalPromiseResolve.get(s.currentInstance),{isAwaitingPromise:t}=s.currentInstance;s.currentInstance._destroy(),t||e({isDismissed:!0}),H()&&ot()}s.currentInstance=zo;const o=Jo(e,t);Fo(o),Object.freeze(o),s.timeout&&(s.timeout.stop(),delete s.timeout),clearTimeout(s.restoreFocusTimeout);const n=Yo(zo);return Ve(zo,o),we.innerParams.set(zo,o),Ro(zo,n,o)}then(e){return t(Vo,this).then(e)}finally(e){return t(Vo,this).finally(e)}}const Ro=(e,t,o)=>new Promise((n,a)=>{const r=t=>{e.close({isDismissed:!0,dismiss:t,isConfirmed:!1,isDenied:!1})};tt.swalPromiseResolve.set(e,n),tt.swalPromiseReject.set(e,a),t.confirmButton.onclick=()=>{(e=>{const t=we.innerParams.get(e);e.disableButtons(),t.input?Lt(e,"confirm"):Mt(e,!0)})(e)},t.denyButton.onclick=()=>{(e=>{const t=we.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Lt(e,"deny"):It(e,!1)})(e)},t.cancelButton.onclick=()=>{((e,t)=>{e.disableButtons(),t(Re.cancel)})(e,r)},t.closeButton.onclick=()=>{r(Re.close)},((e,t,o)=>{e.toast?co(e,t,o):(mo(t),wo(t),ho(e,t,o))})(o,t,r),((e,t,o)=>{if(Je(e),!t.toast){const s=e=>We(t,e,o);e.keydownHandler=s;const n=t.keydownListenerCapture?window:k();if(n){e.keydownTarget=n,e.keydownListenerCapture=t.keydownListenerCapture;const o=s;e.keydownTarget.addEventListener("keydown",o,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0}}})(s,o,r),((e,t)=>{"select"===t.input||"radio"===t.input?St(e,t):["text","email","number","tel","textarea"].some(e=>e===t.input)&&(h(t.inputValue)||f(t.inputValue))&&(vt(L()),At(e,t))})(e,o),qo(o),Go(s,o,r),Uo(t,o),setTimeout(()=>{t.container.scrollTop=0})}),Jo=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return $o(o),Object.assign(Ao(o),Bo(o),To(o),Lo(o),Eo(o),Io(o),Po(o,So))})(e),s=Object.assign({},Rt,t,o,e);return s.showClass=Object.assign({},Rt.showClass,s.showClass),s.hideClass=Object.assign({},Rt.hideClass,s.hideClass),!1===s.animation&&(s.showClass={backdrop:"swal2-noanimation"},s.hideClass={}),s},Yo=e=>{const t={popup:k(),container:b(),actions:$(),confirmButton:L(),denyButton:I(),cancelButton:E(),loader:P(),closeButton:O(),validationMessage:T(),progressSteps:B()};return we.domCache.set(e,t),t},Go=(e,t,o)=>{const s=q();W(s),t.timer&&(e.timeout=new xo(()=>{o("timer"),delete e.timeout},t.timer),t.timerProgressBar&&s&&(U(s),F(s,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&se(t.timer)})))},Uo=(e,t)=>{if(!t.toast)return w(t.allowEnterKey)?void(Wo(e)||Zo(e,t)||Ye(-1,1)):(m("allowEnterKey"),void Ko())},Wo=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const e of t)if(e instanceof HTMLElement&&ee(e))return e.focus(),!0;return!1},Zo=(e,t)=>t.focusDeny&&ee(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&ee(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!ee(e.confirmButton)||(e.confirmButton.focus(),0)),Ko=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};Xo.prototype.disableButtons=jt,Xo.prototype.enableButtons=Nt,Xo.prototype.getInput=_t,Xo.prototype.disableInput=zt,Xo.prototype.enableInput=Ft,Xo.prototype.hideLoading=qt,Xo.prototype.disableLoading=qt,Xo.prototype.showValidationMessage=Vt,Xo.prototype.resetValidationMessage=Xt,Xo.prototype.close=ut,Xo.prototype.closePopup=ut,Xo.prototype.closeModal=ut,Xo.prototype.closeToast=ut,Xo.prototype.rejectPromise=mt,Xo.prototype.update=oo,Xo.prototype._destroy=no,Object.assign(Xo,Co),Object.keys(lo).forEach(e=>{Xo[e]=function(...t){if(zo&&zo[e])return zo[e](...t)}}),Xo.DismissReason=Re,Xo.version="11.26.17";const Qo=Xo;return Qo.default=Qo,Qo}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}')},7736(e){var t;t=function(e){var t=function(e){return new t.lib.init(e)};function o(e,t){return t.offset[e]?isNaN(t.offset[e])?t.offset[e]:t.offset[e]+"px":"0px"}function s(e,t){return!(!e||"string"!=typeof t||!(e.className&&e.className.trim().split(/\s+/gi).indexOf(t)>-1))}return t.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}},t.lib=t.prototype={toastify:"1.12.0",constructor:t,init:function(e){return e||(e={}),this.options={},this.toastElement=null,this.options.text=e.text||t.defaults.text,this.options.node=e.node||t.defaults.node,this.options.duration=0===e.duration?0:e.duration||t.defaults.duration,this.options.selector=e.selector||t.defaults.selector,this.options.callback=e.callback||t.defaults.callback,this.options.destination=e.destination||t.defaults.destination,this.options.newWindow=e.newWindow||t.defaults.newWindow,this.options.close=e.close||t.defaults.close,this.options.gravity="bottom"===e.gravity?"toastify-bottom":t.defaults.gravity,this.options.positionLeft=e.positionLeft||t.defaults.positionLeft,this.options.position=e.position||t.defaults.position,this.options.backgroundColor=e.backgroundColor||t.defaults.backgroundColor,this.options.avatar=e.avatar||t.defaults.avatar,this.options.className=e.className||t.defaults.className,this.options.stopOnFocus=void 0===e.stopOnFocus?t.defaults.stopOnFocus:e.stopOnFocus,this.options.onClick=e.onClick||t.defaults.onClick,this.options.offset=e.offset||t.defaults.offset,this.options.escapeMarkup=void 0!==e.escapeMarkup?e.escapeMarkup:t.defaults.escapeMarkup,this.options.ariaLive=e.ariaLive||t.defaults.ariaLive,this.options.style=e.style||t.defaults.style,e.backgroundColor&&(this.options.style.background=e.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var e=document.createElement("div");for(var t in e.className="toastify on "+this.options.className,this.options.position?e.className+=" toastify-"+this.options.position:!0===this.options.positionLeft?(e.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):e.className+=" toastify-right",e.className+=" "+this.options.gravity,this.options.backgroundColor&&console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.'),this.options.style)e.style[t]=this.options.style[t];if(this.options.ariaLive&&e.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)e.appendChild(this.options.node);else if(this.options.escapeMarkup?e.innerText=this.options.text:e.innerHTML=this.options.text,""!==this.options.avatar){var s=document.createElement("img");s.src=this.options.avatar,s.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?e.appendChild(s):e.insertAdjacentElement("afterbegin",s)}if(!0===this.options.close){var n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",function(e){e.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}.bind(this));var a=window.innerWidth>0?window.innerWidth:screen.width;("left"==this.options.position||!0===this.options.positionLeft)&&a>360?e.insertAdjacentElement("afterbegin",n):e.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0){var r=this;e.addEventListener("mouseover",function(t){window.clearTimeout(e.timeOutValue)}),e.addEventListener("mouseleave",function(){e.timeOutValue=window.setTimeout(function(){r.removeElement(e)},r.options.duration)})}if(void 0!==this.options.destination&&e.addEventListener("click",function(e){e.stopPropagation(),!0===this.options.newWindow?window.open(this.options.destination,"_blank"):window.location=this.options.destination}.bind(this)),"function"==typeof this.options.onClick&&void 0===this.options.destination&&e.addEventListener("click",function(e){e.stopPropagation(),this.options.onClick()}.bind(this)),"object"==typeof this.options.offset){var i=o("x",this.options),l=o("y",this.options),c="left"==this.options.position?i:"-"+i,d="toastify-top"==this.options.gravity?l:"-"+l;e.style.transform="translate("+c+","+d+")"}return e},showToast:function(){var e;if(this.toastElement=this.buildToast(),!(e="string"==typeof this.options.selector?document.getElementById(this.options.selector):this.options.selector instanceof HTMLElement||"undefined"!=typeof ShadowRoot&&this.options.selector instanceof ShadowRoot?this.options.selector:document.body))throw"Root element is not defined";var o=t.defaults.oldestFirst?e.firstChild:e.lastChild;return e.insertBefore(this.toastElement,o),t.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(function(){this.removeElement(this.toastElement)}.bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(e){e.className=e.className.replace(" on",""),window.setTimeout(function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),e.parentNode&&e.parentNode.removeChild(e),this.options.callback.call(e),t.reposition()}.bind(this),400)}},t.reposition=function(){for(var e,t={top:15,bottom:15},o={top:15,bottom:15},n={top:15,bottom:15},a=document.getElementsByClassName("toastify"),r=0;r<a.length;r++){e=!0===s(a[r],"toastify-top")?"toastify-top":"toastify-bottom";var i=a[r].offsetHeight;e=e.substr(9,e.length-1),(window.innerWidth>0?window.innerWidth:screen.width)<=360?(a[r].style[e]=n[e]+"px",n[e]+=i+15):!0===s(a[r],"toastify-left")?(a[r].style[e]=t[e]+"px",t[e]+=i+15):(a[r].style[e]=o[e]+"px",o[e]+=i+15)}return this},t.lib.init.prototype=t.lib,t},e.exports?e.exports=t():this.Toastify=t()}},t={};function o(s){var n=t[s];if(void 0!==n)return n.exports;var a=t[s]={id:s,exports:{}};return e[s].call(a.exports,a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.nc=void 0,(()=>{"use strict";const e=jQuery;let t=null;const s={elLPOverlay:null,elMainContent:null,elTitle:null,elBtnYes:null,elBtnNo:null,elFooter:null,elCalledModal:null,callBackYes:null,instance:null,init(){return!!this.instance||(this.elLPOverlay=e(".lp-overlay"),!!this.elLPOverlay.length&&(t=this.elLPOverlay,this.elMainContent=t.find(".main-content"),this.elTitle=t.find(".modal-title"),this.elBtnYes=t.find(".btn-yes"),this.elBtnNo=t.find(".btn-no"),this.elFooter=t.find(".lp-modal-footer"),e(document).on("click",".close, .btn-no",function(){t.hide()}),e(document).on("click",".btn-yes",function(e){e.preventDefault(),e.stopPropagation(),"function"==typeof s.callBackYes&&s.callBackYes(e)}),this.instance=this,!0))},setElCalledModal(e){this.elCalledModal=e},setContentModal(e,t){this.elMainContent.html(e),"function"==typeof t&&t()},setTitleModal(e){this.elTitle.html(e)}},n=s,a=function(e,t,o){wp.apiFetch({path:e,method:"POST",data:t}).then(e=>{"function"==typeof o.success&&o.success(e)}).catch(e=>{"function"==typeof o.error&&o.error(e)}).then(()=>{"function"==typeof o.completed&&o.completed()})},r=jQuery,i=r("#lp-tool-upgrade-db"),l=()=>{let e=0;const t=i.find(".wrapper-terms-upgrade"),o=i.find(".wrapper-lp-status-upgrade"),s=i.find(".wrapper-lp-upgrade-message");let l=null;const c=r("input[name=message-when-upgrading]").val();if(t.length){n.setContentModal(t.html());const e=n.elLPOverlay.find(".terms-upgrade"),s=e.find("input[name=lp-agree-term]"),r=e.find(".error");l=function(){return r.hide(),r.removeClass("learn-press-message"),s.is(":checked")?(a("/lp/v1/database/agree_terms",{agree_terms:1},{}),n.elFooter.find(".learn-press-notice").remove(),n.setContentModal(o.html()),!0):(r.show(),r.addClass("learn-press-message"),n.elMainContent.animate({scrollTop:r.offset().top}),!1)}}else n.setContentModal(o.html()),l=function(){return!0};n.setTitleModal(i.find("h2").html()),n.elBtnYes.text("Upgrade"),n.elBtnYes.show(),n.elBtnNo.text("Cancel"),n.callBackYes=function(t){if(!l())return;"Upgrade"===t.target.innerText&&n.elFooter.prepend('<span class="learn-press-notice">'+c+"</span>"),e=1,n.elBtnYes.hide(),n.elBtnNo.hide();const o="/lp/v1/database/upgrade",d=n.elLPOverlay.find(".lp-group-step"),u=i.find(".lp-item-step"),p=[];r.each(u,function(e,t){const o=r(t);if(!o.hasClass("completed")){const e=o.find("input").val();p.push(e)}});const m={steps:p,step:p[0]};let w=null;const h=(e,t)=>{w=d.find("input[value="+e+"]").closest(".lp-item-step"),w.addClass("running"),100===t&&w.removeClass("running").addClass("completed"),w.find(".progress-bar").css("width",t+"%"),w.find(".percent").text(t+"%")};h(p[0],.1);const g={success:t=>{h(m.step,t.percent),m.step!==t.name&&h(t.name,.1),(e=>{if(w=d.find("input[value="+e+"]").closest(".lp-item-step"),!w.length)return;const t=w.offset().top-n.elMainContent.offset().top+n.elMainContent.scrollTop();n.elMainContent.stop().animate({scrollTop:t},600)})(m.step),"success"===t.status?(m.step=t.name,m.data=t.data,setTimeout(()=>{a(o,m,g)},800)):"finished"===t.status?(e=0,w.removeClass("running").addClass("completed"),setTimeout(()=>{n.setContentModal(s.html())},1e3),n.elFooter.find(".learn-press-notice").remove(),n.elBtnNo.text("Close"),n.elBtnNo.show(),n.elBtnNo.on("click",()=>{window.location.reload()})):(e=0,n.elFooter.find(".learn-press-notice").remove(),w.removeClass("running").addClass("error"),n.setContentModal(s.html(),function(){n.elBtnYes.text("Retry").show(),n.callBackYes=()=>{window.location.href=lpGlobalSettings.siteurl+"/wp-admin/admin.php?page=learn-press-tools&tab=database&action=upgrade-db"},n.elBtnNo.show(),t.message||(t.message="Upgrade not success! Please clear cache, restart sever then retry or contact to LP to help"),n.elMainContent.find(".learn-press-message").addClass("error").html(t.message)}))},error:t=>{e=0,n.setContentModal(s.html(),function(){n.elBtnYes.text("Retry").show(),n.callBackYes=()=>{window.location.location="wp-admin/admin.php?page=learn-press-tools&tab=database&action=upgrade-db"},n.elBtnNo.show(),t.message||(t.message="Upgrade not success! Something wrong. Please clear cache, restart sever then retry or contact to LP to help"),n.elMainContent.find(".learn-press-message").addClass("error").html(t.message)})},completed:()=>{}};a(o,m,g)},window.onbeforeunload=function(){if(e)return"LP is upgrading Database. Are you want to reload page?"},window.onclose=function(){if(e)return"LP is upgrading Database. Are you want to close page?"}},c="lp-hidden",d="loading",u=(e,t=0)=>{e&&(t?e.classList.remove(c):e.classList.add(c))},p=(e,t)=>{e&&(t?e.classList.add(d):e.classList.remove(d))},m=e=>{const t={},o=new FormData(e);for(const e of o.entries()){const s=e[0],n=o.getAll(s);t.hasOwnProperty(s)||(t[s]=n.join(","))}return t},w=(e,t)=>{const o=m(e);return(e=>{const t=[],o=e.elements;for(let e=0;e<o.length;e++){const s=o[e].name;s&&!t.includes(s)&&t.push(s)}return t})(e).forEach(e=>{o.hasOwnProperty(e)?""===o[e][0]&&(delete o[e],delete t[e]):delete t[e]}),t={...t,...o}},h=(e,t)=>{document.addEventListener(e,o=>{const s=o.target;let n={e:o,target:s};t.forEach(t=>{n={...n,...t},t.conditionBeforeCallBack&&!0!==t.conditionBeforeCallBack(n)||"keydown"===e&&t.checkIsEventEnter&&"Enter"!==o.key||s.closest(t.selector)&&(t.class?t.class[t.callBack](n):t.callBack(n))})})},g=(e,t=500)=>{let o;return s=>{clearTimeout(o),o=setTimeout(()=>e(s),t)}};window.lpToggleEnableInit=0,window.lpFullScreenViewInit=0;var f=o(7736),b=o.n(f),v=o(5072),y=o.n(v),k=o(7825),C=o.n(k),x=o(7659),S=o.n(x),A=o(5056),B=o.n(A),T=o(540),L=o.n(T),E=o(1113),I=o.n(E),P=o(9455),$={};$.styleTagTransform=I(),$.setAttributes=B(),$.insert=S().bind(null,"head"),$.domAPI=C(),$.insertStyleElement=L(),y()(P.A,$),P.A&&P.A.locals&&P.A.locals;const M={text:"",gravity:lpData.toast.gravity,position:lpData.toast.position,className:`${lpData.toast.classPrefix}`,close:1==lpData.toast.close,stopOnFocus:1==lpData.toast.stopOnFocus,duration:lpData.toast.duration},q=(e,t="success",o)=>{let s=M;o&&(s={...s,...o}),new(b())({...s,text:e,className:`${lpData.toast.classPrefix} ${t}`}).showToast()};var O=o(8465),_=o.n(O);let H,D,N=[];class j{constructor(){this.init()}static selectors={elBtnShowPopupItemsToSelect:".lp-btn-show-popup-items-to-select",elBtnAddItemsSelected:".lp-btn-add-items-selected",elBtnCountItemsSelected:".lp-btn-count-items-selected",elHeaderCountItemSelected:".header-count-items-selected",elSelectItem:".lp-select-item",elListItems:".list-items",elPopupItemsToSelect:".lp-popup-items-to-select",elSearchTitleItem:".lp-search-title-item",elBtnBackListItems:".lp-btn-back-to-select-items",elListItemsWrap:".list-items-wrap",elListItemsSelected:".list-items-selected",elItemSelectedClone:".li-item-selected.clone",elItemSelected:".li-item-selected",LPTarget:".lp-target"};init(){this.events()}events=()=>{j._loadedEvents||(j._loadedEvents=!0,h("click",[{selector:j.selectors.elBtnShowPopupItemsToSelect,callBack:this.showPopupItemsToSelect.name,class:this},{selector:j.selectors.elSelectItem,callBack:this.selectItemsFromList.name,class:this},{selector:j.selectors.elBtnCountItemsSelected,callBack:this.showItemsSelected.name,class:this},{selector:j.selectors.elBtnBackListItems,callBack:this.backToSelectItems.name,class:this},{selector:j.selectors.elItemSelected,callBack:this.removeItemSelected.name,class:this},{selector:".tabs .tab",callBack:this.chooseTabItemsType.name,class:this}]),h("keyup",[{selector:j.selectors.elSearchTitleItem,callBack:this.searchTitleItemToSelect.name,class:this}]))};showPopupItemsToSelect=e=>{const{e:t,target:o=!1,callBack:s}=e;if(!o.closest(`${j.selectors.elBtnShowPopupItemsToSelect}`))return;N=[];const n=o.dataset.template||"",a=document.querySelector(n);_().fire({html:a.innerHTML,showConfirmButton:!1,showCloseButton:!0,width:"max(350px, 65vw)",customClass:{popup:"lp-select-items-popup",htmlContainer:"lp-select-items-html-container",container:"lp-select-items-container"},willOpen:()=>{H=_().getPopup();const e=H.querySelector(`${j.selectors.LPTarget}`);setTimeout(()=>{if(e.closest(".lp-load-ajax-element:not(.loaded)")&&e){const t=window.lpAJAXG.getDataSetCurrent(e);t.args.paged=1,t.args.item_selecting=N||[],window.lpAJAXG.setDataSetCurrent(e,t),window.lpAJAXG.fetchAJAX(t,{success:t=>{const{data:o}=t;H.querySelector(".lp-skeleton-animation").remove(),e.innerHTML=o.content||"",this.watchItemsSelectedDataChange()}})}},1)}}).then(e=>{e.isDismissed})};chooseTabItemsType=e=>{const{e:t,target:o,callBack:s}=e,n=o.closest(".tab");if(!n)return;t.preventDefault();const a=n.closest(".tabs");if(!a)return;const r=a.closest(`${j.selectors.elPopupItemsToSelect}`),i=r.querySelector(`${j.selectors.elSearchTitleItem}`),l=n.dataset.type;a.querySelectorAll(".tab").forEach(e=>{e.classList.contains("active")&&e.classList.remove("active")}),n.classList.add("active"),i.value="";const c=r.querySelector(`${j.selectors.LPTarget}`),d=window.lpAJAXG.getDataSetCurrent(c);d.args.item_type=l,d.args.paged=1,d.args.item_selecting=N||[],window.lpAJAXG.setDataSetCurrent(c,d),window.lpAJAXG.showHideLoading(c,1),window.lpAJAXG.fetchAJAX(d,{success:e=>{const{data:t}=e;c.innerHTML=t.content||""},error:e=>{q(e,"error")},completed:()=>{window.lpAJAXG.showHideLoading(c,0),this.watchItemsSelectedDataChange()}})};selectItemsFromList=e=>{const{e:t,target:o}=e,s=o.closest(`${j.selectors.elSelectItem}`);if(!s)return;const n=s.querySelector('input[type="checkbox"]');if("INPUT"!==o.tagName)return void n.click();if(!s.closest(`${j.selectors.elListItems}`))return;const a={...n.dataset};if(n.checked)N.some(e=>e.id===a.id)||N.push(a);else{const e=N.findIndex(e=>e.id===a.id);-1!==e&&N.splice(e,1)}this.watchItemsSelectedDataChange()};searchTitleItemToSelect=e=>{const{e:t,target:o}=e,s=o.closest(j.selectors.elSearchTitleItem);if(!s)return;const n=H.querySelector(`${j.selectors.LPTarget}`);clearTimeout(D),D=setTimeout(()=>{const e=window.lpAJAXG.getDataSetCurrent(n);e.args.search_title=s.value.trim(),e.args.item_selecting=N,e.args.paged=1,window.lpAJAXG.setDataSetCurrent(n,e),window.lpAJAXG.showHideLoading(n,1),window.lpAJAXG.fetchAJAX(e,{success:e=>{const{data:t}=e;n.innerHTML=t.content||""},error:e=>{q(e,"error")},completed:()=>{window.lpAJAXG.showHideLoading(n,0)}})},800)};showItemsSelected=e=>{const{e:t,target:o}=e,s=o.closest(`${j.selectors.elBtnCountItemsSelected}`);if(!s)return;const n=H.querySelector(`${j.selectors.elBtnBackListItems}`),a=H.querySelector(".tabs"),r=H.querySelector(`${j.selectors.elListItemsWrap}`),i=H.querySelector(`${j.selectors.elHeaderCountItemSelected}`),l=H.querySelector(`${j.selectors.elListItemsSelected}`),c=l.querySelector(`${j.selectors.elItemSelectedClone}`);i.innerHTML=s.innerHTML,u(r,0),u(s,0),u(a,0),u(n,1),u(i,1),u(l,1),l.querySelectorAll(`${j.selectors.elItemSelected}:not(.clone)`).forEach(e=>{e.remove()}),N.forEach(e=>{const t=c.cloneNode(!0);t.classList.remove("clone"),Object.entries(e).forEach(([e,o])=>{t.dataset[e]=o}),t.querySelector(".title-display").innerHTML=e.title,u(t,1),c.insertAdjacentElement("beforebegin",t)})};backToSelectItems=e=>{const{e:t,target:o}=e,s=o.closest(`${j.selectors.elBtnBackListItems}`);if(!s)return;const n=H.querySelector(`${j.selectors.elBtnCountItemsSelected}`),a=H.querySelector(".tabs"),r=H.querySelector(`${j.selectors.elListItemsWrap}`),i=H.querySelector(`${j.selectors.elHeaderCountItemSelected}`),l=H.querySelector(`${j.selectors.elListItemsSelected}`);u(n,1),u(r,1),u(a,1),u(s,0),u(i,0),u(l,0)};removeItemSelected=e=>{const{e:t,target:o}=e,s=o.closest(`${j.selectors.elItemSelected}`);if(!s)return;const n=s.dataset,a=N.findIndex(e=>e.id===n.id);-1!==a&&N.splice(a,1),s.remove(),this.watchItemsSelectedDataChange()};watchItemsSelectedDataChange=()=>{const e=H.querySelector(`${j.selectors.elBtnAddItemsSelected}`),t=H.querySelector(`${j.selectors.elBtnCountItemsSelected}`),o=t.querySelector("span"),s=H.querySelector(`${j.selectors.elHeaderCountItemSelected}`),n=H.querySelector(`${j.selectors.LPTarget}`);0!==N.length?(t.disabled=!1,e.disabled=!1,e.classList.add("active"),o.textContent=`(${N.length})`,s.innerHTML=t.innerHTML):(t.disabled=!0,e.disabled=!0,e.classList.remove("active"),o.textContent="",s.textContent=""),H.querySelector(`${j.selectors.elListItems}`).querySelectorAll('input[type="checkbox"]').forEach(e=>{const t=e.dataset,o=N.some(e=>e.id===t.id);e.checked=o});const a=window.lpAJAXG.getDataSetCurrent(n);a.args.item_selecting=N,window.lpAJAXG.setDataSetCurrent(n,a)};addItemsSelectedToSection=e=>{const{e:t,target:o,callBackHandle:s}=e;H&&(_().close(),"function"==typeof s&&(s(N),N=[]))}}const F=new j;class z{static selectors={elPopupTemplate:"#lp-tmpl-select-courses-to-reset-progress",elFilterField:".lp-filter-field",elFormFilter:".lp-form-filter-reset-course-progress",elPopupItemsToSelect:".lp-popup-select-courses-to-reset-progress",elBtnResetAll:".lp-btn-reset-all-courses-progress"};constructor(){this.btnChooseCourses=null,this.elFormFilter=null,this.elPopupItemsToSelect=null,this.elBtnResetAll=null,this.elBtnAddItemsSelected=null,this.debouncedSearchUsers=g(e=>{this.fetchCourses(e)},800)}init(){this.events()}events(){z._loadedEvents||(z._loadedEvents=this,h("click",[{selector:j.selectors.elBtnShowPopupItemsToSelect,class:this,callBack:this.handleShowPopupItemsToSelect.name},{selector:j.selectors.elBtnAddItemsSelected,class:F,callBack:F.addItemsSelectedToSection.name,callBackHandle:this.addItemsSelectedToSection.bind(this),conditionBeforeCallBack:e=>!!e.target.closest(z.selectors.elPopupItemsToSelect)},{selector:z.selectors.elBtnResetAll,class:this,callBack:this.resetAllCoursesProgress.name}]),h("keyup",[{selector:z.selectors.elFilterField,class:this,callBack:this.filterCourses.name}]))}handleShowPopupItemsToSelect(e){const{e:t,target:o}=e;this.btnChooseCourses=o.closest(".lp-btn-choose-courses-to-reset-progress"),this.btnChooseCourses&&(this.elPopupItemsToSelect=_().getPopup().querySelector(z.selectors.elPopupItemsToSelect),this.elPopupItemsToSelect&&(this.elBtnAddItemsSelected=this.elPopupItemsToSelect.querySelector(j.selectors.elBtnAddItemsSelected),this.elBtnAddItemsSelected&&(this.elBtnResetAll=this.elPopupItemsToSelect.querySelector(z.selectors.elBtnResetAll))))}addItemsSelectedToSection(e){if(!this.btnChooseCourses)return;const t=this.elBtnAddItemsSelected.dataset.messageConfirm;if(!t||!1===confirm(t))return;this.btnChooseCourses.textContent=this.btnChooseCourses.dataset.messageResetting,p(this.btnChooseCourses,1);const o=e.map(e=>parseInt(e.id,10)).filter(e=>!isNaN(e)&&e>0),s=this.elFormFilter?.querySelector(".lp-search-user"),n=s?.value||"";window.lpAJAXG.fetchAJAX({id_url:"course-reset-progress-tool",action:"reset_progress_courses",user_item_ids:o,search_user:n},{success:e=>{const{status:t,message:o}=e;q(o,t)},error:e=>{q(e.message,"error")},completed:()=>{this.btnChooseCourses.textContent=this.btnChooseCourses.dataset.messageChoose,p(this.btnChooseCourses,0)}})}resetAllCoursesProgress(e){const{e:t,target:o}=e,s=o.closest(z.selectors.elPopupItemsToSelect);if(!s)return;const n=s.querySelector(z.selectors.elFormFilter);if(!n)return;const a=this.elBtnResetAll.dataset.messageConfirm;if(!a||!1===confirm(a))return;p(this.btnChooseCourses,1),_().close();const r=m(n);window.lpAJAXG.fetchAJAX({id_url:"course-reset-progress-tool",action:"reset_progress_courses",reset_all:1,...r},{success:e=>{const{status:t,message:o}=e;q(o,t)},error:e=>{q(e.message,"error")},completed:()=>{this.btnChooseCourses.textContent=this.btnChooseCourses.dataset.messageChoose,p(this.btnChooseCourses,0)}})}fetchCourses(e){this.elFormFilter=e;const t=e.closest(z.selectors.elPopupItemsToSelect).querySelector(".lp-target");let o=window.lpAJAXG.getDataSetCurrent(t);o.args=w(e,o.args),o.args.paged=1,window.lpAJAXG.setDataSetCurrent(t,o),window.lpAJAXG.showHideLoading(t,1),window.lpAJAXG.fetchAJAX(o,{success:e=>{const{data:o}=e;t.innerHTML=o.content||""},error:e=>{q(e,"error")},completed:()=>{window.lpAJAXG.showHideLoading(t,0)}})}filterCourses(e){const{target:t}=e,o=t.closest(z.selectors.elFilterField);if(!o)return;const s=o.closest(z.selectors.elFormFilter);s&&this.debouncedSearchUsers(s)}}const V=new j({openButtonSelector:".lp-btn-choose-item-to-reset-progress"});class X{static selectors={elPopupTemplate:"#lp-tmpl-select-items-to-reset-progress",elFilterField:".lp-filter-field",elFormFilter:".lp-form-filter-reset-item-progress",elPopupItemsToSelect:".lp-popup-select-items-to-reset-progress",elBtnResetAll:".lp-btn-reset-all-items-progress"};constructor(){this.btnChooseItems=null,this.elFormFilter=null,this.elPopupItemsToSelect=null,this.elBtnResetAll=null,this.elBtnAddItemsSelected=null,this.debouncedSearchItems=g(e=>{this.fetchItems(e)},800)}init(){this.events()}events(){X._loadedEvents||(X._loadedEvents=this,h("click",[{selector:j.selectors.elBtnShowPopupItemsToSelect,class:this,callBack:this.handleShowPopupItemsToSelect.name},{selector:j.selectors.elBtnAddItemsSelected,class:V,callBack:V.addItemsSelectedToSection.name,callBackHandle:this.addItemsSelectedToSection.bind(this),conditionBeforeCallBack:e=>!!e.target.closest(X.selectors.elPopupItemsToSelect)},{selector:X.selectors.elBtnResetAll,class:this,callBack:this.resetAllItemsProgress.name}]),h("keyup",[{selector:X.selectors.elFilterField,class:this,callBack:this.filterItems.name}]),h("change",[{selector:X.selectors.elFilterField,class:this,callBack:this.filterItems.name}]))}handleShowPopupItemsToSelect(e){const{e:t,target:o}=e;this.btnChooseItems=o.closest(".lp-btn-choose-item-to-reset-progress"),this.btnChooseItems&&(this.elPopupItemsToSelect=_().getPopup().querySelector(X.selectors.elPopupItemsToSelect),this.elBtnAddItemsSelected=this.elPopupItemsToSelect.querySelector(j.selectors.elBtnAddItemsSelected),this.elBtnResetAll=this.elPopupItemsToSelect.querySelector(X.selectors.elBtnResetAll))}addItemsSelectedToSection(e){if(!this.btnChooseItems)return;const t=this.elBtnAddItemsSelected.dataset.messageConfirm;if(!t||!1===confirm(t))return;this.btnChooseItems.textContent=this.btnChooseItems.dataset.messageResetting,p(this.btnChooseItems,1);const o=e.map(e=>parseInt(e.id,10)).filter(e=>!isNaN(e)&&e>0);window.lpAJAXG.fetchAJAX({id_url:"item-reset-progress-tool",action:"reset_progress_items_course",user_item_ids:o},{success:e=>{const{status:t,message:o}=e;q(o,t)},error:e=>{q(e.message,"error")},completed:()=>{this.btnChooseItems.textContent=this.btnChooseItems.dataset.messageChoose,p(this.btnChooseItems,0)}})}resetAllItemsProgress(e){const{e:t,target:o}=e,s=o.closest(X.selectors.elPopupItemsToSelect);if(!s)return;const n=s.querySelector(X.selectors.elFormFilter);if(!n)return;const a=this.elBtnResetAll.dataset.messageConfirm;if(!a||!1===confirm(a))return;p(this.btnChooseItems,1),_().close();const r=m(n);window.lpAJAXG.fetchAJAX({id_url:"item-reset-progress-tool",action:"reset_progress_items_course",reset_all:1,...r},{success:e=>{const{status:t,message:o}=e;q(o,t)},error:e=>{q(e.message,"error")},completed:()=>{this.btnChooseItems.textContent=this.btnChooseItems.dataset.messageChoose,p(this.btnChooseItems,0)}})}fetchItems(e){this.elFormFilter=e;const t=e.closest(X.selectors.elPopupItemsToSelect).querySelector(".lp-target");let o=window.lpAJAXG.getDataSetCurrent(t);o.args=w(e,o.args),o.args.paged=1,window.lpAJAXG.setDataSetCurrent(t,o),window.lpAJAXG.showHideLoading(t,1),window.lpAJAXG.fetchAJAX(o,{success:e=>{const{data:o}=e;t.innerHTML=o.content||""},error:e=>{q(e,"error")},completed:()=>{window.lpAJAXG.showHideLoading(t,0)}})}filterItems(e){const{target:t}=e,o=t.closest(X.selectors.elFilterField);if(!o)return;const s=o.closest(X.selectors.elFormFilter);s&&this.debouncedSearchItems(s)}}class R{static selectors={wrapper:".lp-install-sample",form:".lp-form-handle-sample-data",elBtnHandleSampleData:".lp-btn-install-sample-handle",elTriggerToggle:".lp-install-sample__toggle-options",elMessage:".lp-install-sample-message"};constructor(){this.wrapper=null}init(){this.wrapper=document.querySelector(R.selectors.wrapper),this.wrapper&&(this.preventFormSubmit(),this.events())}preventFormSubmit(){const e=this.wrapper.querySelector(R.selectors.form);e&&e.addEventListener("submit",e=>{e.preventDefault()})}events(){R._loadedEvents||(R._loadedEvents=this,h("click",[{selector:R.selectors.elBtnHandleSampleData,class:this,callBack:this.handleAction.name},{selector:R.selectors.elTriggerToggle,callBack:e=>{const{e:t,target:o}=e,s=this.wrapper.querySelector(R.selectors.form);if(s){s.classList.toggle("lp-hidden");const e=o.dataset.showText,t=o.dataset.hideText;o.textContent=s.classList.contains("lp-hidden")?e:t}}}]))}handleAction(e){const{e:t,target:o}=e,s=o.closest(R.selectors.elBtnHandleSampleData);t.preventDefault();const n=this.wrapper.querySelector(R.selectors.elMessage),a=s.dataset.message;if(!a||!confirm(a))return;n.innerHTML="",p(s,!0);const r=s.closest(R.selectors.wrapper).querySelector(R.selectors.form);let i=m(r);i.action=s.dataset.action,i.id_url="handle-sample-data";const l={success:e=>{const{status:t,message:o,data:s}=e;if("success"!==t)throw new Error(o);this.wrapper.querySelector(R.selectors.elMessage).innerHTML=s.html},error:e=>{q(e,"error")},completed:()=>{p(s,!1),setTimeout(()=>{n.innerHTML=""},3e3)}};window.lpAJAXG.fetchAJAX(i,l)}}!function(e){const t=e(document),o=function(t){t.preventDefault();const o=e(this);o.hasClass("disabled")||(o.addClass("disabled").html(o.data("cleaning-text")),e.ajax({url:o.attr("href"),data:{},success(e){o.removeClass("disabled").html(o.data("text"))},error(){o.removeClass("disabled").html(o.data("text"))}}))},s=function(){e.ajax({url:"admin.php?page=lp-toggle-hard-cache-option",data:{v:this.checked?"yes":"no"},success(e){},error(){}})};e(function(){(()=>{if(!i.length)return;if(!n.init())return;const e=r(".wrapper-lp-status-upgrade"),t=window.location.search,o=new URLSearchParams(t).get("action");"upgrade-db"===o&&(n.elLPOverlay.show(),n.setTitleModal(i.find("h2").html()),n.setContentModal(r(".wrapper-lp-loading").html())),a("/lp/v1/database/get_steps",{},{success:t=>{const{steps_completed:s,steps_default:a}=t;if(void 0===s||void 0===a)return console.log("invalid steps_completed and steps_default"),!1;let i="";for(const t in a){const c=a[t],d=c.steps;i='<div class="lp-group-step">',i+="<h3>"+c.label+"</h3>";for(const e in d){const t=d[e];let o="";void 0!==s[e]&&(o="completed"),i+='<div class="lp-item-step '+o+'">',i+='<div class="lp-item-step-left"><input type="hidden" name="lp_steps_upgrade_db[]" value="'+t.name+'" /></div>',i+='<div class="lp-item-step-right">',i+='<label for=""><strong></strong>'+t.label+"</label>",i+='<div class="description">'+t.description+"</div>",i+='<div class="percent"></div>',i+='<span class="progress-bar"></span>',i+="</div>",i+="</div>"}i+="</div>",e.append(i);const u=r(".lp-btn-upgrade-db");"upgrade-db"===o&&l(),u.on("click",function(){n.elLPOverlay.show(),l()})}},error:e=>{},completed:()=>{}})})(),(()=>{const e=document.querySelector("#lp-tool-create-indexes-tables");e&&e.querySelector(".lp-btn-create-indexes").addEventListener("click",t=>{t.preventDefault();const o=e.querySelector(".wrapper-lp-loading");if(!n.init())return;n.elLPOverlay.show(),n.setContentModal(o.innerHTML),n.setTitleModal(e.querySelector("h2").textContent),n.elBtnYes[0].style.display="inline-block",n.elBtnYes[0].textContent="Run",n.elBtnNo[0].textContent="Close";const s={success:e=>{const{status:t,message:o,data:{tables:s,table:r}}=e,i=document.querySelector(".example-lp-group-step");n.setContentModal(i.innerHTML);const l=n.elLPOverlay[0].querySelector(".lp-group-step "),c=(e,t)=>{const o=l.querySelector("input[value="+e+"]").closest(".lp-item-step");o.classList.add("running"),100===t&&(o.classList.remove("running"),o.classList.add("completed")),o.querySelector(".progress-bar").style.width=t};for(const e in s){const t=n.elLPOverlay[0].querySelector(".lp-item-step").cloneNode(!0),o=t.querySelector("input");t.querySelector("label").textContent=`Table: ${e}`,o.value=e,l.append(t)}n.callBackYes=()=>{const e="/lp/v1/admin/tools/create-indexs",t={tables:s,table:r};n.elBtnNo[0].style.display="none",n.elBtnYes[0].style.display="none",c(r,.1);const o={success:s=>{const{status:r,message:i,data:{table:d,percent:u}}=s;c(t.table,u),void 0!==d&&(t.table!==d&&(c(d,.1),(e=>{const t=l.querySelector("input[value="+e+"]").closest(".lp-item-step").offsetTop-n.elMainContent[0].offsetTop+n.elMainContent[0].scrollTop;n.elMainContent.stop().animate({scrollTop:t},600)})(d)),t.table=d),"success"===r?setTimeout(()=>{a(e,t,o)},2e3):"finished"===r?(console.log("finished"),n.elBtnNo[0].style.display="inline-block",n.elBtnNo[0].textContent="Finish"):console.log(i)},error:e=>{console.log(e)},completed:()=>{}};a(e,t,o)}},error:e=>{},completed:()=>{}};a("/lp/v1/admin/tools/list-tables-indexs",{},s)})})(),(()=>{const e=document.querySelector("#lp-tool-re-upgrade-db");if(!e)return;let t="lp/v1/database/check-db-valid-re-upgrade";a(t,{},{success(o){const{data:{can_re_upgrade:s}}=o;if(!s)return;e.style.display="block";const n=e.querySelector(".lp-btn-re-upgrade-db"),r=e.querySelector(".learn-press-message");n.addEventListener("click",()=>{confirm("Are you want to Re Upgrade!")&&(t="lp/v1/database/del-tb-lp-upgrade-db",a(t,{},{success(e){const{status:t,message:o,data:{url:s}}=e;"success"===t&&void 0!==s&&(window.location.href=s)},error(e){r.classList.add("error"),r.textContent=e.message,r.style.display="block"}}))})},error(e){}})})(),(()=>{const e=document.querySelector("#lp-tool-clean-database");e&&e.querySelector(".lp-btn-clean-db").addEventListener("click",function(t){t.preventDefault();const o=document.querySelector("#tools-select__id"),s=o.querySelectorAll("ul li input"),r=Array.prototype.slice.call(s).some(e=>e.checked),i=e.querySelector(".tools-prepare__message");if(0==r)return i.style.display="block",void(i.textContent="You must choose at least one table to take this action");i.style.display="none";const l=e.querySelector(".wrapper-lp-loading");if(!n.init())return;n.elLPOverlay.show(),n.setContentModal(l.innerHTML),n.setTitleModal(e.querySelector("h2").textContent),n.elBtnYes[0].style.display="inline-block",n.elBtnYes[0].textContent="Run",n.elBtnNo[0].textContent="Close";const c=new Array;o.querySelectorAll("ul li input:checked").forEach(e=>{c.push(e.value)});const d=c[0],u=l.querySelector(".progressbar__item").getAttribute("data-total"),p=document.querySelector(".lp-modal-body .main-content").querySelector(".lp-tool__message");if(u<=0)return n.elBtnYes[0].style.display="none",p.textContent="There is no data that need to be repaired in the chosen tables",void(p.style.display="block");n.callBackYes=()=>{if(0==confirm("The modified data is impossible to be restored. Please backup your website before doing this."))return;const e=document.querySelector(".lp-modal-body .main-content"),t=e.querySelector(".lp-tool__message");t.textContent="This action is in processing. Don't close this page",t.style.display="block";const o="/lp/v1/admin/tools/clean-tables",s={tables:d,itemtotal:u};n.elBtnNo[0].style.display="none",n.elBtnYes[0].style.display="none";const r={success:t=>{const{status:i,message:l,data:{processed:c,percent:d}}=t,p=e.querySelector(".progressbar__item"),m=p.querySelector(".progressbar__rows"),w=p.querySelector(".progressbar__percent"),h=p.querySelector(".progressbar__value");if(console.log(i),"success"===i)setTimeout(()=>{a(o,s,r)},2e3),m.textContent=c+" / "+u,w.textContent="( "+d+"% )",h.style.width=d+"%";else if("finished"===i){m.textContent=u+" / "+u,w.textContent="( 100% )";const e=document.querySelector(".lp-modal-body .main-content").querySelector(".lp-tool__message");e.textContent="Process has been completed. Press click the finish button to close this popup",e.style.color="white",e.style.background="green",h.style.width="100%",n.elBtnNo[0].style.display="inline-block",n.elBtnNo[0].textContent="Finish",n.elBtnNo[0].addEventListener("click",function(){location.reload()})}else console.log(l)},error:e=>{console.log(e)},completed:()=>{}};a(o,s,r)}})})(),(new z).init(),(new X).init(),(new R).init(),t.on("click","#learn-press-clear-cache",o).on("click",'input[name="enable_hard_cache"]',s)})}(jQuery)})()})(); |