File: /home/h340499/public_html/wp-content/plugins/learnpress/assets/dist/js/admin/edit-question.min.js
(()=>{var e={2603:(e,t,o)=>{"use strict";o.d(t,{W:()=>a});var n=o(7736),i=o.n(n);o(4316);const s={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},a=(e,t="success",o)=>{let n=s;o&&(n={...n,...o}),new(i())({...n,text:e,className:`${lpData.toast.classPrefix} ${t}`}).showToast()}},4223:(e,t,o)=>{"use strict";o.d(t,{eventHandlers:()=>c,lpOnElementReady:()=>s,lpSetLoadingEl:()=>r,lpShowHideEl:()=>a,toggleCollapse:()=>l});const n="lp-hidden",i="loading",s=(e,t)=>{const o=document.querySelector(e);if(o)return void t(o);const n=new MutationObserver((o,n)=>{const i=document.querySelector(e);i&&(n.disconnect(),t(i))});n.observe(document.documentElement,{childList:!0,subtree:!0})},a=(e,t=0)=>{e&&(t?e.classList.remove(n):e.classList.add(n))},r=(e,t)=>{e&&(t?e.classList.add(i):e.classList.remove(i))},l=(e,t,o="",n=[],i)=>{if(o||(o=".lp-trigger-toggle"),n&&n.length>0)for(const e of n)if(t.closest(e))return;const s=t.closest(o);if(!s)return;const a=s.closest(".lp-section-toggle");a&&(a.classList.toggle("lp-collapse"),"function"==typeof i&&i(a))},c=(e,t)=>{document.addEventListener(e,o=>{const n=o.target;let i={e:o,target:n};t.forEach(t=>{i={...i,...t},t.conditionBeforeCallBack&&!0!==t.conditionBeforeCallBack(i)||"keydown"===e&&t.checkIsEventEnter&&"Enter"!==o.key||n.closest(t.selector)&&(t.class?t.class[t.callBack](i):t.callBack(i))})})}},9455:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(1601),i=o.n(n),s=o(6314),a=o.n(s)()(i());a.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 r=a},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o}).join("")},t.i=function(e,o,n,i,s){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var r=0;r<this.length;r++){var l=this[r][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);n&&a[d[0]]||(void 0!==s&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=s),o&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=o):d[2]=o),i&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=i):d[4]="".concat(i)),t.push(d))}},t}},1601:e=>{"use strict";e.exports=function(e){return e[1]}},246:(e,t,o)=>{"use strict";function n(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function i(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?n(Object(o),!0).forEach(function(t){a(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function a(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},r.apply(this,arguments)}function l(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}o.d(t,{Ay:()=>it});var c=l(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=l(/Edge/i),u=l(/firefox/i),p=l(/safari/i)&&!l(/chrome/i)&&!l(/android/i),h=l(/iP(ad|od|hone)/i),m=l(/chrome/i)&&l(/android/i),w={capture:!1,passive:!1};function f(e,t,o){e.addEventListener(t,o,!c&&w)}function g(e,t,o){e.removeEventListener(t,o,!c&&w)}function b(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function v(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function y(e,t,o,n){if(e){o=o||document;do{if(null!=t&&(">"===t[0]?e.parentNode===o&&b(e,t):b(e,t))||n&&e===o)return e;if(e===o)break}while(e=v(e))}return null}var k,x=/\s+/g;function C(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(x," ").replace(" "+t+" "," ");e.className=(n+(o?" "+t:"")).replace(x," ")}}function E(e,t,o){var n=e&&e.style;if(n){if(void 0===o)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(o=e.currentStyle),void 0===t?o:o[t];t in n||-1!==t.indexOf("webkit")||(t="-webkit-"+t),n[t]=o+("string"==typeof o?"":"px")}}function A(e,t){var o="";if("string"==typeof e)o=e;else do{var n=E(e,"transform");n&&"none"!==n&&(o=n+" "+o)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(o)}function S(e,t,o){if(e){var n=e.getElementsByTagName(t),i=0,s=n.length;if(o)for(;i<s;i++)o(n[i],i);return n}return[]}function T(){return document.scrollingElement||document.documentElement}function B(e,t,o,n,i){if(e.getBoundingClientRect||e===window){var s,a,r,l,d,u,p;if(e!==window&&e.parentNode&&e!==T()?(a=(s=e.getBoundingClientRect()).top,r=s.left,l=s.bottom,d=s.right,u=s.height,p=s.width):(a=0,r=0,l=window.innerHeight,d=window.innerWidth,u=window.innerHeight,p=window.innerWidth),(t||o)&&e!==window&&(i=i||e.parentNode,!c))do{if(i&&i.getBoundingClientRect&&("none"!==E(i,"transform")||o&&"static"!==E(i,"position"))){var h=i.getBoundingClientRect();a-=h.top+parseInt(E(i,"border-top-width")),r-=h.left+parseInt(E(i,"border-left-width")),l=a+s.height,d=r+s.width;break}}while(i=i.parentNode);if(n&&e!==window){var m=A(i||e),w=m&&m.a,f=m&&m.d;m&&(l=(a/=f)+(u/=f),d=(r/=w)+(p/=w))}return{top:a,left:r,bottom:l,right:d,width:p,height:u}}}function $(e,t,o){for(var n=L(e,!0),i=B(e)[t];n;){var s=B(n)[o];if(!("top"===o||"left"===o?i>=s:i<=s))return n;if(n===T())break;n=L(n,!1)}return!1}function _(e,t,o,n){for(var i=0,s=0,a=e.children;s<a.length;){if("none"!==a[s].style.display&&a[s]!==qe.ghost&&(n||a[s]!==qe.dragged)&&y(a[s],o.draggable,e,!1)){if(i===t)return a[s];i++}s++}return null}function D(e,t){for(var o=e.lastElementChild;o&&(o===qe.ghost||"none"===E(o,"display")||t&&!b(o,t));)o=o.previousElementSibling;return o||null}function I(e,t){var o=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===qe.clone||t&&!b(e,t)||o++;return o}function O(e){var t=0,o=0,n=T();if(e)do{var i=A(e),s=i.a,a=i.d;t+=e.scrollLeft*s,o+=e.scrollTop*a}while(e!==n&&(e=e.parentNode));return[t,o]}function L(e,t){if(!e||!e.getBoundingClientRect)return T();var o=e,n=!1;do{if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var i=E(o);if(o.clientWidth<o.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||o.clientHeight<o.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!o.getBoundingClientRect||o===document.body)return T();if(n||t)return o;n=!0}}}while(o=o.parentNode);return T()}function P(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function M(e,t){return function(){if(!k){var o=arguments;1===o.length?e.call(this,o[0]):e.apply(this,o),k=setTimeout(function(){k=void 0},t)}}}function q(e,t,o){e.scrollLeft+=t,e.scrollTop+=o}function N(e){var t=window.Polymer,o=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):o?o(e).clone(!0)[0]:e.cloneNode(!0)}function F(e,t,o){var n={};return Array.from(e.children).forEach(function(i){var s,a,r,l;if(y(i,t.draggable,e,!1)&&!i.animated&&i!==o){var c=B(i);n.left=Math.min(null!==(s=n.left)&&void 0!==s?s:1/0,c.left),n.top=Math.min(null!==(a=n.top)&&void 0!==a?a:1/0,c.top),n.right=Math.max(null!==(r=n.right)&&void 0!==r?r:-1/0,c.right),n.bottom=Math.max(null!==(l=n.bottom)&&void 0!==l?l:-1/0,c.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var j="Sortable"+(new Date).getTime();var H=[],Q={initializeByDefault:!0},z={mount:function(e){for(var t in Q)Q.hasOwnProperty(t)&&!(t in e)&&(e[t]=Q[t]);H.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),H.push(e)},pluginEvent:function(e,t,o){var n=this;this.eventCanceled=!1,o.cancel=function(){n.eventCanceled=!0};var s=e+"Global";H.forEach(function(n){t[n.pluginName]&&(t[n.pluginName][s]&&t[n.pluginName][s](i({sortable:t},o)),t.options[n.pluginName]&&t[n.pluginName][e]&&t[n.pluginName][e](i({sortable:t},o)))})},initializePlugins:function(e,t,o,n){for(var i in H.forEach(function(n){var i=n.pluginName;if(e.options[i]||n.initializeByDefault){var s=new n(e,t,e.options);s.sortable=e,s.options=e.options,e[i]=s,r(o,s.defaults)}}),e.options)if(e.options.hasOwnProperty(i)){var s=this.modifyOption(e,i,e.options[i]);void 0!==s&&(e.options[i]=s)}},getEventProperties:function(e,t){var o={};return H.forEach(function(n){"function"==typeof n.eventProperties&&r(o,n.eventProperties.call(t[n.pluginName],e))}),o},modifyOption:function(e,t,o){var n;return H.forEach(function(i){e[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[t]&&(n=i.optionListeners[t].call(e[i.pluginName],o))}),n}};var R=["evt"],W=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=o.evt,s=function(e,t){if(null==e)return{};var o,n,i=function(e,t){if(null==e)return{};var o,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)o=s[n],t.indexOf(o)>=0||(i[o]=e[o]);return i}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)o=s[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(o,R);z.pluginEvent.bind(qe)(e,t,i({dragEl:Y,parentEl:V,ghostEl:U,rootEl:J,nextEl:Z,lastDownEl:G,cloneEl:K,cloneHidden:ee,dragStarted:he,putSortable:ae,activeSortable:qe.active,originalEvent:n,oldIndex:te,oldDraggableIndex:ne,newIndex:oe,newDraggableIndex:ie,hideGhostForTarget:Oe,unhideGhostForTarget:Le,cloneNowHidden:function(){ee=!0},cloneNowShown:function(){ee=!1},dispatchSortableEvent:function(e){X({sortable:t,name:e,originalEvent:n})}},s))};function X(e){!function(e){var t=e.sortable,o=e.rootEl,n=e.name,s=e.targetEl,a=e.cloneEl,r=e.toEl,l=e.fromEl,u=e.oldIndex,p=e.newIndex,h=e.oldDraggableIndex,m=e.newDraggableIndex,w=e.originalEvent,f=e.putSortable,g=e.extraEventProperties;if(t=t||o&&o[j]){var b,v=t.options,y="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||c||d?(b=document.createEvent("Event")).initEvent(n,!0,!0):b=new CustomEvent(n,{bubbles:!0,cancelable:!0}),b.to=r||o,b.from=l||o,b.item=s||o,b.clone=a,b.oldIndex=u,b.newIndex=p,b.oldDraggableIndex=h,b.newDraggableIndex=m,b.originalEvent=w,b.pullMode=f?f.lastPutMode:void 0;var k=i(i({},g),z.getEventProperties(n,t));for(var x in k)b[x]=k[x];o&&o.dispatchEvent(b),v[y]&&v[y].call(t,b)}}(i({putSortable:ae,cloneEl:K,targetEl:Y,rootEl:J,oldIndex:te,oldDraggableIndex:ne,newIndex:oe,newDraggableIndex:ie},e))}var Y,V,U,J,Z,G,K,ee,te,oe,ne,ie,se,ae,re,le,ce,de,ue,pe,he,me,we,fe,ge,be=!1,ve=!1,ye=[],ke=!1,xe=!1,Ce=[],Ee=!1,Ae=[],Se="undefined"!=typeof document,Te=h,Be=d||c?"cssFloat":"float",$e=Se&&!m&&!h&&"draggable"in document.createElement("div"),_e=function(){if(Se){if(c)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),De=function(e,t){var o=E(e),n=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),i=_(e,0,t),s=_(e,1,t),a=i&&E(i),r=s&&E(s),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+B(i).width,c=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+B(s).width;if("flex"===o.display)return"column"===o.flexDirection||"column-reverse"===o.flexDirection?"vertical":"horizontal";if("grid"===o.display)return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&"none"!==a.float){var d="left"===a.float?"left":"right";return!s||"both"!==r.clear&&r.clear!==d?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=n&&"none"===o[Be]||s&&"none"===o[Be]&&l+c>n)?"vertical":"horizontal"},Ie=function(e){function t(e,o){return function(n,i,s,a){var r=n.options.group.name&&i.options.group.name&&n.options.group.name===i.options.group.name;if(null==e&&(o||r))return!0;if(null==e||!1===e)return!1;if(o&&"clone"===e)return e;if("function"==typeof e)return t(e(n,i,s,a),o)(n,i,s,a);var l=(o?n:i).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var o={},n=e.group;n&&"object"==s(n)||(n={name:n}),o.name=n.name,o.checkPull=t(n.pull,!0),o.checkPut=t(n.put),o.revertClone=n.revertClone,e.group=o},Oe=function(){!_e&&U&&E(U,"display","none")},Le=function(){!_e&&U&&E(U,"display","")};Se&&!m&&document.addEventListener("click",function(e){if(ve)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ve=!1,!1},!0);var Pe=function(e){if(Y){e=e.touches?e.touches[0]:e;var t=(i=e.clientX,s=e.clientY,ye.some(function(e){var t=e[j].options.emptyInsertThreshold;if(t&&!D(e)){var o=B(e),n=i>=o.left-t&&i<=o.right+t,r=s>=o.top-t&&s<=o.bottom+t;return n&&r?a=e:void 0}}),a);if(t){var o={};for(var n in e)e.hasOwnProperty(n)&&(o[n]=e[n]);o.target=o.rootEl=t,o.preventDefault=void 0,o.stopPropagation=void 0,t[j]._onDragOver(o)}}var i,s,a},Me=function(e){Y&&Y.parentNode[j]._isOutsideThisEl(e.target)};function qe(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=r({},t),e[j]=this;var o,n,s={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return De(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==qe.supportPointer&&"PointerEvent"in window&&(!p||h),emptyInsertThreshold:5};for(var a in z.initializePlugins(this,e,s),s)!(a in t)&&(t[a]=s[a]);for(var l in Ie(t),this)"_"===l.charAt(0)&&"function"==typeof this[l]&&(this[l]=this[l].bind(this));this.nativeDraggable=!t.forceFallback&&$e,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?f(e,"pointerdown",this._onTapStart):(f(e,"mousedown",this._onTapStart),f(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(f(e,"dragover",this),f(e,"dragenter",this)),ye.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),r(this,(n=[],{captureAnimationState:function(){n=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(e){if("none"!==E(e,"display")&&e!==qe.ghost){n.push({target:e,rect:B(e)});var t=i({},n[n.length-1].rect);if(e.thisAnimationDuration){var o=A(e,!0);o&&(t.top-=o.f,t.left-=o.e)}e.fromRect=t}})},addAnimationState:function(e){n.push(e)},removeAnimationState:function(e){n.splice(function(e,t){for(var o in e)if(e.hasOwnProperty(o))for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[o][n])return Number(o);return-1}(n,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(o),void("function"==typeof e&&e());var i=!1,s=0;n.forEach(function(e){var o=0,n=e.target,a=n.fromRect,r=B(n),l=n.prevFromRect,c=n.prevToRect,d=e.rect,u=A(n,!0);u&&(r.top-=u.f,r.left-=u.e),n.toRect=r,n.thisAnimationDuration&&P(l,r)&&!P(a,r)&&(d.top-r.top)/(d.left-r.left)===(a.top-r.top)/(a.left-r.left)&&(o=function(e,t,o,n){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-o.top,2)+Math.pow(t.left-o.left,2))*n.animation}(d,l,c,t.options)),P(r,a)||(n.prevFromRect=a,n.prevToRect=r,o||(o=t.options.animation),t.animate(n,d,r,o)),o&&(i=!0,s=Math.max(s,o),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},o),n.thisAnimationDuration=o)}),clearTimeout(o),i?o=setTimeout(function(){"function"==typeof e&&e()},s):"function"==typeof e&&e(),n=[]},animate:function(e,t,o,n){if(n){E(e,"transition",""),E(e,"transform","");var i=A(this.el),s=i&&i.a,a=i&&i.d,r=(t.left-o.left)/(s||1),l=(t.top-o.top)/(a||1);e.animatingX=!!r,e.animatingY=!!l,E(e,"transform","translate3d("+r+"px,"+l+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),E(e,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),E(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout(function(){E(e,"transition",""),E(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1},n)}}}))}function Ne(e,t,o,n,i,s,a,r){var l,u,p=e[j],h=p.options.onMove;return!window.CustomEvent||c||d?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=o,l.draggedRect=n,l.related=i||t,l.relatedRect=s||B(t),l.willInsertAfter=r,l.originalEvent=a,e.dispatchEvent(l),h&&(u=h.call(p,l,a)),u}function Fe(e){e.draggable=!1}function je(){Ee=!1}function He(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,o=t.length,n=0;o--;)n+=t.charCodeAt(o);return n.toString(36)}function Qe(e){return setTimeout(e,0)}function ze(e){return clearTimeout(e)}qe.prototype={constructor:qe,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(me=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Y):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,o=this.el,n=this.options,i=n.preventOnFilter,s=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,r=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||r,c=n.filter;if(function(e){Ae.length=0;for(var t=e.getElementsByTagName("input"),o=t.length;o--;){var n=t[o];n.checked&&Ae.push(n)}}(o),!Y&&!(/mousedown|pointerdown/.test(s)&&0!==e.button||n.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!p||!r||"SELECT"!==r.tagName.toUpperCase())&&!((r=y(r,n.draggable,o,!1))&&r.animated||G===r)){if(te=I(r),ne=I(r,n.draggable),"function"==typeof c){if(c.call(this,e,r,this))return X({sortable:t,rootEl:l,name:"filter",targetEl:r,toEl:o,fromEl:o}),W("filter",t,{evt:e}),void(i&&e.preventDefault())}else if(c&&(c=c.split(",").some(function(n){if(n=y(l,n.trim(),o,!1))return X({sortable:t,rootEl:n,name:"filter",targetEl:r,fromEl:o,toEl:o}),W("filter",t,{evt:e}),!0})))return void(i&&e.preventDefault());n.handle&&!y(l,n.handle,o,!1)||this._prepareDragStart(e,a,r)}}},_prepareDragStart:function(e,t,o){var n,i=this,s=i.el,a=i.options,r=s.ownerDocument;if(o&&!Y&&o.parentNode===s){var l=B(o);if(J=s,V=(Y=o).parentNode,Z=Y.nextSibling,G=o,se=a.group,qe.dragged=Y,re={target:Y,clientX:(t||e).clientX,clientY:(t||e).clientY},ue=re.clientX-l.left,pe=re.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Y.style["will-change"]="all",n=function(){W("delayEnded",i,{evt:e}),qe.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!u&&i.nativeDraggable&&(Y.draggable=!0),i._triggerDragStart(e,t),X({sortable:i,name:"choose",originalEvent:e}),C(Y,a.chosenClass,!0))},a.ignore.split(",").forEach(function(e){S(Y,e.trim(),Fe)}),f(r,"dragover",Pe),f(r,"mousemove",Pe),f(r,"touchmove",Pe),a.supportPointer?(f(r,"pointerup",i._onDrop),!this.nativeDraggable&&f(r,"pointercancel",i._onDrop)):(f(r,"mouseup",i._onDrop),f(r,"touchend",i._onDrop),f(r,"touchcancel",i._onDrop)),u&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Y.draggable=!0),W("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(d||c))n();else{if(qe.eventCanceled)return void this._onDrop();a.supportPointer?(f(r,"pointerup",i._disableDelayedDrag),f(r,"pointercancel",i._disableDelayedDrag)):(f(r,"mouseup",i._disableDelayedDrag),f(r,"touchend",i._disableDelayedDrag),f(r,"touchcancel",i._disableDelayedDrag)),f(r,"mousemove",i._delayedDragTouchMoveHandler),f(r,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&f(r,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(n,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Y&&Fe(Y),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;g(e,"mouseup",this._disableDelayedDrag),g(e,"touchend",this._disableDelayedDrag),g(e,"touchcancel",this._disableDelayedDrag),g(e,"pointerup",this._disableDelayedDrag),g(e,"pointercancel",this._disableDelayedDrag),g(e,"mousemove",this._delayedDragTouchMoveHandler),g(e,"touchmove",this._delayedDragTouchMoveHandler),g(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?f(document,"pointermove",this._onTouchMove):f(document,t?"touchmove":"mousemove",this._onTouchMove):(f(Y,"dragend",this),f(J,"dragstart",this._onDragStart));try{document.selection?Qe(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(be=!1,J&&Y){W("dragStarted",this,{evt:t}),this.nativeDraggable&&f(document,"dragover",Me);var o=this.options;!e&&C(Y,o.dragClass,!1),C(Y,o.ghostClass,!0),qe.active=this,e&&this._appendGhost(),X({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(le){this._lastX=le.clientX,this._lastY=le.clientY,Oe();for(var e=document.elementFromPoint(le.clientX,le.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(le.clientX,le.clientY))!==t;)t=e;if(Y.parentNode[j]._isOutsideThisEl(e),t)do{if(t[j]&&t[j]._onDragOver({clientX:le.clientX,clientY:le.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=v(t));Le()}},_onTouchMove:function(e){if(re){var t=this.options,o=t.fallbackTolerance,n=t.fallbackOffset,i=e.touches?e.touches[0]:e,s=U&&A(U,!0),a=U&&s&&s.a,r=U&&s&&s.d,l=Te&&ge&&O(ge),c=(i.clientX-re.clientX+n.x)/(a||1)+(l?l[0]-Ce[0]:0)/(a||1),d=(i.clientY-re.clientY+n.y)/(r||1)+(l?l[1]-Ce[1]:0)/(r||1);if(!qe.active&&!be){if(o&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<o)return;this._onDragStart(e,!0)}if(U){s?(s.e+=c-(ce||0),s.f+=d-(de||0)):s={a:1,b:0,c:0,d:1,e:c,f:d};var u="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");E(U,"webkitTransform",u),E(U,"mozTransform",u),E(U,"msTransform",u),E(U,"transform",u),ce=c,de=d,le=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!U){var e=this.options.fallbackOnBody?document.body:J,t=B(Y,!0,Te,!0,e),o=this.options;if(Te){for(ge=e;"static"===E(ge,"position")&&"none"===E(ge,"transform")&&ge!==document;)ge=ge.parentNode;ge!==document.body&&ge!==document.documentElement?(ge===document&&(ge=T()),t.top+=ge.scrollTop,t.left+=ge.scrollLeft):ge=T(),Ce=O(ge)}C(U=Y.cloneNode(!0),o.ghostClass,!1),C(U,o.fallbackClass,!0),C(U,o.dragClass,!0),E(U,"transition",""),E(U,"transform",""),E(U,"box-sizing","border-box"),E(U,"margin",0),E(U,"top",t.top),E(U,"left",t.left),E(U,"width",t.width),E(U,"height",t.height),E(U,"opacity","0.8"),E(U,"position",Te?"absolute":"fixed"),E(U,"zIndex","100000"),E(U,"pointerEvents","none"),qe.ghost=U,e.appendChild(U),E(U,"transform-origin",ue/parseInt(U.style.width)*100+"% "+pe/parseInt(U.style.height)*100+"%")}},_onDragStart:function(e,t){var o=this,n=e.dataTransfer,i=o.options;W("dragStart",this,{evt:e}),qe.eventCanceled?this._onDrop():(W("setupClone",this),qe.eventCanceled||((K=N(Y)).removeAttribute("id"),K.draggable=!1,K.style["will-change"]="",this._hideClone(),C(K,this.options.chosenClass,!1),qe.clone=K),o.cloneId=Qe(function(){W("clone",o),qe.eventCanceled||(o.options.removeCloneOnHide||J.insertBefore(K,Y),o._hideClone(),X({sortable:o,name:"clone"}))}),!t&&C(Y,i.dragClass,!0),t?(ve=!0,o._loopId=setInterval(o._emulateDragOver,50)):(g(document,"mouseup",o._onDrop),g(document,"touchend",o._onDrop),g(document,"touchcancel",o._onDrop),n&&(n.effectAllowed="move",i.setData&&i.setData.call(o,n,Y)),f(document,"drop",o),E(Y,"transform","translateZ(0)")),be=!0,o._dragStartId=Qe(o._dragStarted.bind(o,t,e)),f(document,"selectstart",o),he=!0,window.getSelection().removeAllRanges(),p&&E(document.body,"user-select","none"))},_onDragOver:function(e){var t,o,n,s,a=this.el,r=e.target,l=this.options,c=l.group,d=qe.active,u=se===c,p=l.sort,h=ae||d,m=this,w=!1;if(!Ee){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),r=y(r,l.draggable,a,!0),H("dragOver"),qe.eventCanceled)return w;if(Y.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||m._ignoreWhileAnimating===r)return z(!1);if(ve=!1,d&&!l.disabled&&(u?p||(n=V!==J):ae===this||(this.lastPutMode=se.checkPull(this,d,Y,e))&&c.checkPut(this,d,Y,e))){if(s="vertical"===this._getDirection(e,r),t=B(Y),H("dragOverValid"),qe.eventCanceled)return w;if(n)return V=J,Q(),this._hideClone(),H("revert"),qe.eventCanceled||(Z?J.insertBefore(Y,Z):J.appendChild(Y)),z(!0);var f=D(a,l.draggable);if(!f||function(e,t,o){var n=B(D(o.el,o.options.draggable)),i=F(o.el,o.options,U);return t?e.clientX>i.right+10||e.clientY>n.bottom&&e.clientX>n.left:e.clientY>i.bottom+10||e.clientX>n.right&&e.clientY>n.top}(e,s,this)&&!f.animated){if(f===Y)return z(!1);if(f&&a===e.target&&(r=f),r&&(o=B(r)),!1!==Ne(J,a,Y,t,r,o,e,!!r))return Q(),f&&f.nextSibling?a.insertBefore(Y,f.nextSibling):a.appendChild(Y),V=a,R(),z(!0)}else if(f&&function(e,t,o){var n=B(_(o.el,0,o.options,!0)),i=F(o.el,o.options,U);return t?e.clientX<i.left-10||e.clientY<n.top&&e.clientX<n.right:e.clientY<i.top-10||e.clientY<n.bottom&&e.clientX<n.left}(e,s,this)){var g=_(a,0,l,!0);if(g===Y)return z(!1);if(o=B(r=g),!1!==Ne(J,a,Y,t,r,o,e,!1))return Q(),a.insertBefore(Y,g),V=a,R(),z(!0)}else if(r.parentNode===a){o=B(r);var b,v,k,x=Y.parentNode!==a,A=!function(e,t,o){var n=o?e.left:e.top,i=o?e.right:e.bottom,s=o?e.width:e.height,a=o?t.left:t.top,r=o?t.right:t.bottom,l=o?t.width:t.height;return n===a||i===r||n+s/2===a+l/2}(Y.animated&&Y.toRect||t,r.animated&&r.toRect||o,s),S=s?"top":"left",T=$(r,"top","top")||$(Y,"top","top"),O=T?T.scrollTop:void 0;if(me!==r&&(v=o[S],ke=!1,xe=!A&&l.invertSwap||x),b=function(e,t,o,n,i,s,a,r){var l=n?e.clientY:e.clientX,c=n?o.height:o.width,d=n?o.top:o.left,u=n?o.bottom:o.right,p=!1;if(!a)if(r&&fe<c*i){if(!ke&&(1===we?l>d+c*s/2:l<u-c*s/2)&&(ke=!0),ke)p=!0;else if(1===we?l<d+fe:l>u-fe)return-we}else if(l>d+c*(1-i)/2&&l<u-c*(1-i)/2)return function(e){return I(Y)<I(e)?1:-1}(t);return(p=p||a)&&(l<d+c*s/2||l>u-c*s/2)?l>d+c/2?1:-1:0}(e,r,o,s,A?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,xe,me===r),0!==b){var L=I(Y);do{L-=b,k=V.children[L]}while(k&&("none"===E(k,"display")||k===U))}if(0===b||k===r)return z(!1);me=r,we=b;var P=r.nextElementSibling,M=!1,N=Ne(J,a,Y,t,r,o,e,M=1===b);if(!1!==N)return 1!==N&&-1!==N||(M=1===N),Ee=!0,setTimeout(je,30),Q(),M&&!P?a.appendChild(Y):r.parentNode.insertBefore(Y,M?P:r),T&&q(T,0,O-T.scrollTop),V=Y.parentNode,void 0===v||xe||(fe=Math.abs(v-B(r)[S])),R(),z(!0)}if(a.contains(Y))return z(!1)}return!1}function H(l,c){W(l,m,i({evt:e,isOwner:u,axis:s?"vertical":"horizontal",revert:n,dragRect:t,targetRect:o,canSort:p,fromSortable:h,target:r,completed:z,onMove:function(o,n){return Ne(J,a,Y,t,o,B(o),e,n)},changed:R},c))}function Q(){H("dragOverAnimationCapture"),m.captureAnimationState(),m!==h&&h.captureAnimationState()}function z(t){return H("dragOverCompleted",{insertion:t}),t&&(u?d._hideClone():d._showClone(m),m!==h&&(C(Y,ae?ae.options.ghostClass:d.options.ghostClass,!1),C(Y,l.ghostClass,!0)),ae!==m&&m!==qe.active?ae=m:m===qe.active&&ae&&(ae=null),h===m&&(m._ignoreWhileAnimating=r),m.animateAll(function(){H("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(r===Y&&!Y.animated||r===a&&!r.animated)&&(me=null),l.dragoverBubble||e.rootEl||r===document||(Y.parentNode[j]._isOutsideThisEl(e.target),!t&&Pe(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),w=!0}function R(){oe=I(Y),ie=I(Y,l.draggable),X({sortable:m,name:"change",toEl:a,newIndex:oe,newDraggableIndex:ie,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){g(document,"mousemove",this._onTouchMove),g(document,"touchmove",this._onTouchMove),g(document,"pointermove",this._onTouchMove),g(document,"dragover",Pe),g(document,"mousemove",Pe),g(document,"touchmove",Pe)},_offUpEvents:function(){var e=this.el.ownerDocument;g(e,"mouseup",this._onDrop),g(e,"touchend",this._onDrop),g(e,"pointerup",this._onDrop),g(e,"pointercancel",this._onDrop),g(e,"touchcancel",this._onDrop),g(document,"selectstart",this)},_onDrop:function(e){var t=this.el,o=this.options;oe=I(Y),ie=I(Y,o.draggable),W("drop",this,{evt:e}),V=Y&&Y.parentNode,oe=I(Y),ie=I(Y,o.draggable),qe.eventCanceled||(be=!1,xe=!1,ke=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ze(this.cloneId),ze(this._dragStartId),this.nativeDraggable&&(g(document,"drop",this),g(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),p&&E(document.body,"user-select",""),E(Y,"transform",""),e&&(he&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),U&&U.parentNode&&U.parentNode.removeChild(U),(J===V||ae&&"clone"!==ae.lastPutMode)&&K&&K.parentNode&&K.parentNode.removeChild(K),Y&&(this.nativeDraggable&&g(Y,"dragend",this),Fe(Y),Y.style["will-change"]="",he&&!be&&C(Y,ae?ae.options.ghostClass:this.options.ghostClass,!1),C(Y,this.options.chosenClass,!1),X({sortable:this,name:"unchoose",toEl:V,newIndex:null,newDraggableIndex:null,originalEvent:e}),J!==V?(oe>=0&&(X({rootEl:V,name:"add",toEl:V,fromEl:J,originalEvent:e}),X({sortable:this,name:"remove",toEl:V,originalEvent:e}),X({rootEl:V,name:"sort",toEl:V,fromEl:J,originalEvent:e}),X({sortable:this,name:"sort",toEl:V,originalEvent:e})),ae&&ae.save()):oe!==te&&oe>=0&&(X({sortable:this,name:"update",toEl:V,originalEvent:e}),X({sortable:this,name:"sort",toEl:V,originalEvent:e})),qe.active&&(null!=oe&&-1!==oe||(oe=te,ie=ne),X({sortable:this,name:"end",toEl:V,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){W("nulling",this),J=Y=V=U=Z=K=G=ee=re=le=he=oe=ie=te=ne=me=we=ae=se=qe.dragged=qe.ghost=qe.clone=qe.active=null,Ae.forEach(function(e){e.checked=!0}),Ae.length=ce=de=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Y&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],o=this.el.children,n=0,i=o.length,s=this.options;n<i;n++)y(e=o[n],s.draggable,this.el,!1)&&t.push(e.getAttribute(s.dataIdAttr)||He(e));return t},sort:function(e,t){var o={},n=this.el;this.toArray().forEach(function(e,t){var i=n.children[t];y(i,this.options.draggable,n,!1)&&(o[e]=i)},this),t&&this.captureAnimationState(),e.forEach(function(e){o[e]&&(n.removeChild(o[e]),n.appendChild(o[e]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return y(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var o=this.options;if(void 0===t)return o[e];var n=z.modifyOption(this,e,t);o[e]=void 0!==n?n:t,"group"===e&&Ie(o)},destroy:function(){W("destroy",this);var e=this.el;e[j]=null,g(e,"mousedown",this._onTapStart),g(e,"touchstart",this._onTapStart),g(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(g(e,"dragover",this),g(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),ye.splice(ye.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!ee){if(W("hideClone",this),qe.eventCanceled)return;E(K,"display","none"),this.options.removeCloneOnHide&&K.parentNode&&K.parentNode.removeChild(K),ee=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(ee){if(W("showClone",this),qe.eventCanceled)return;Y.parentNode!=J||this.options.group.revertClone?Z?J.insertBefore(K,Z):J.appendChild(K):J.insertBefore(K,Y),this.options.group.revertClone&&this.animate(Y,K),E(K,"display",""),ee=!1}}else this._hideClone()}},Se&&f(document,"touchmove",function(e){(qe.active||be)&&e.cancelable&&e.preventDefault()}),qe.utils={on:f,off:g,css:E,find:S,is:function(e,t){return!!y(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e},throttle:M,closest:y,toggleClass:C,clone:N,index:I,nextTick:Qe,cancelNextTick:ze,detectDirection:De,getChild:_,expando:j},qe.get=function(e){return e[j]},qe.mount=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];t[0].constructor===Array&&(t=t[0]),t.forEach(function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(qe.utils=i(i({},qe.utils),e.utils)),z.mount(e)})},qe.create=function(e,t){return new qe(e,t)},qe.version="1.15.6";var Re,We,Xe,Ye,Ve,Ue,Je=[],Ze=!1;function Ge(){Je.forEach(function(e){clearInterval(e.pid)}),Je=[]}function Ke(){clearInterval(Ue)}var et=M(function(e,t,o,n){if(t.scroll){var i,s=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,r=t.scrollSensitivity,l=t.scrollSpeed,c=T(),d=!1;We!==o&&(We=o,Ge(),Re=t.scroll,i=t.scrollFn,!0===Re&&(Re=L(o,!0)));var u=0,p=Re;do{var h=p,m=B(h),w=m.top,f=m.bottom,g=m.left,b=m.right,v=m.width,y=m.height,k=void 0,x=void 0,C=h.scrollWidth,A=h.scrollHeight,S=E(h),$=h.scrollLeft,_=h.scrollTop;h===c?(k=v<C&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),x=y<A&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(k=v<C&&("auto"===S.overflowX||"scroll"===S.overflowX),x=y<A&&("auto"===S.overflowY||"scroll"===S.overflowY));var D=k&&(Math.abs(b-s)<=r&&$+v<C)-(Math.abs(g-s)<=r&&!!$),I=x&&(Math.abs(f-a)<=r&&_+y<A)-(Math.abs(w-a)<=r&&!!_);if(!Je[u])for(var O=0;O<=u;O++)Je[O]||(Je[O]={});Je[u].vx==D&&Je[u].vy==I&&Je[u].el===h||(Je[u].el=h,Je[u].vx=D,Je[u].vy=I,clearInterval(Je[u].pid),0==D&&0==I||(d=!0,Je[u].pid=setInterval(function(){n&&0===this.layer&&qe.active._onTouchMove(Ve);var t=Je[this.layer].vy?Je[this.layer].vy*l:0,o=Je[this.layer].vx?Je[this.layer].vx*l:0;"function"==typeof i&&"continue"!==i.call(qe.dragged.parentNode[j],o,t,e,Ve,Je[this.layer].el)||q(Je[this.layer].el,o,t)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==c&&(p=L(p,!1)));Ze=d}},30),tt=function(e){var t=e.originalEvent,o=e.putSortable,n=e.dragEl,i=e.activeSortable,s=e.dispatchSortableEvent,a=e.hideGhostForTarget,r=e.unhideGhostForTarget;if(t){var l=o||i;a();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(c.clientX,c.clientY);r(),l&&!l.el.contains(d)&&(s("spill"),this.onSpill({dragEl:n,putSortable:o}))}};function ot(){}function nt(){}ot.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,o=e.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var n=_(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(t,n):this.sortable.el.appendChild(t),this.sortable.animateAll(),o&&o.animateAll()},drop:tt},r(ot,{pluginName:"revertOnSpill"}),nt.prototype={onSpill:function(e){var t=e.dragEl,o=e.putSortable||this.sortable;o.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),o.animateAll()},drop:tt},r(nt,{pluginName:"removeOnSpill"}),qe.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?f(document,"dragover",this._handleAutoScroll):this.options.supportPointer?f(document,"pointermove",this._handleFallbackAutoScroll):t.touches?f(document,"touchmove",this._handleFallbackAutoScroll):f(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?g(document,"dragover",this._handleAutoScroll):(g(document,"pointermove",this._handleFallbackAutoScroll),g(document,"touchmove",this._handleFallbackAutoScroll),g(document,"mousemove",this._handleFallbackAutoScroll)),Ke(),Ge(),clearTimeout(k),k=void 0},nulling:function(){Ve=We=Re=Ze=Ue=Xe=Ye=null,Je.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var o=this,n=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,s=document.elementFromPoint(n,i);if(Ve=e,t||this.options.forceAutoScrollFallback||d||c||p){et(e,this.options,s,t);var a=L(s,!0);!Ze||Ue&&n===Xe&&i===Ye||(Ue&&Ke(),Ue=setInterval(function(){var s=L(document.elementFromPoint(n,i),!0);s!==a&&(a=s,Ge()),et(e,o.options,s,t)},10),Xe=n,Ye=i)}else{if(!this.options.bubbleScroll||L(s,!0)===T())return void Ge();et(e,this.options,L(s,!1),!1)}}},r(e,{pluginName:"scroll",initializeByDefault:!0})}),qe.mount(nt,ot);const it=qe},4316:(e,t,o)=>{"use strict";var n=o(5072),i=o.n(n),s=o(7825),a=o.n(s),r=o(7659),l=o.n(r),c=o(5056),d=o.n(c),u=o(540),p=o.n(u),h=o(1113),m=o.n(h),w=o(9455),f={};f.styleTagTransform=m(),f.setAttributes=d(),f.insert=l().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),i()(w.A,f),w.A&&w.A.locals&&w.A.locals},5072:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n<t.length;n++)if(t[n].identifier===e){o=n;break}return o}function n(e,n){for(var s={},a=[],r=0;r<e.length;r++){var l=e[r],c=n.base?l[0]+n.base:l[0],d=s[c]||0,u="".concat(c," ").concat(d);s[c]=d+1;var p=o(u),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(h);else{var m=i(h,n);n.byIndex=r,t.splice(r,0,{identifier:u,updater:m,references:1})}a.push(u)}return a}function i(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,i){var s=n(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<s.length;a++){var r=o(s[a]);t[r].references--}for(var l=n(e,i),c=0;c<s.length;c++){var d=o(s[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}s=l}}},7659:e=>{"use strict";var t={};e.exports=function(e,o){var n=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(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.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 n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var i=void 0!==o.layer;i&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,i&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var s=o.sourceMap;s&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleTagTransform(n,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:function(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 n={},i=e=>new Promise(t=>{if(!e)return t();const o=window.scrollX,i=window.scrollY;n.restoreFocusTimeout=setTimeout(()=>{n.previousActiveElement instanceof HTMLElement?(n.previousActiveElement.focus(),n.previousActiveElement=null):document.body&&document.body.focus(),t()},100),window.scrollTo(o,i)}),s="swal2-",a=["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]=s+t,e),{}),r=["success","warning","info","question","error"].reduce((e,t)=>(e[t]=s+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=[],h=(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))},m=e=>"function"==typeof e?e():e,w=e=>e&&"function"==typeof e.toPromise,f=e=>w(e)?e.toPromise():Promise.resolve(e),g=e=>e&&Promise.resolve(e)===e,b=()=>document.body.querySelector(`.${a.container}`),v=e=>{const t=b();return t?t.querySelector(e):null},y=e=>v(`.${e}`),k=()=>y(a.popup),x=()=>y(a.icon),C=()=>y(a.title),E=()=>y(a["html-container"]),A=()=>y(a.image),S=()=>y(a["progress-steps"]),T=()=>y(a["validation-message"]),B=()=>v(`.${a.actions} .${a.confirm}`),$=()=>v(`.${a.actions} .${a.cancel}`),_=()=>v(`.${a.actions} .${a.deny}`),D=()=>v(`.${a.loader}`),I=()=>y(a.actions),O=()=>y(a.footer),L=()=>y(a["timer-progress-bar"]),P=()=>y(a.close),M=()=>{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"),n=parseInt(t.getAttribute("tabindex")||"0");return o>n?1:o<n?-1:0}),n=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'),i=Array.from(n).filter(e=>"-1"!==e.getAttribute("tabindex"));return[...new Set(o.concat(i))].filter(e=>ee(e))},q=()=>j(document.body,a.shown)&&!j(document.body,a["toast-shown"])&&!j(document.body,a["no-backdrop"]),N=()=>{const e=k();return!!e&&j(e,a.toast)},F=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html"),n=o.querySelector("head");n&&Array.from(n.childNodes).forEach(t=>{e.appendChild(t)});const i=o.querySelector("body");i&&Array.from(i.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},H=(e,t,o)=>{if(((e,t)=>{Array.from(e.classList).forEach(o=>{Object.values(a).includes(o)||Object.values(r).includes(o)||Object.values(t.showClass||{}).includes(o)||e.classList.remove(o)})})(e,t),!t.customClass)return;const n=t.customClass[o];n&&("string"==typeof n||n.forEach?W(e,n):d(`Invalid type of customClass.${o}! Expected string or iterable object, got "${typeof n}"`))},Q=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${a.popup} > .${a[t]}`);case"checkbox":return e.querySelector(`.${a.popup} > .${a.checkbox} input`);case"radio":return e.querySelector(`.${a.popup} > .${a.radio} input:checked`)||e.querySelector(`.${a.popup} > .${a.radio} input:first-child`);case"range":return e.querySelector(`.${a.popup} > .${a.range} input`);default:return e.querySelector(`.${a.popup} > .${a.input}`)}},z=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},R=(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)}))},W=(e,t)=>{R(e,t,!0)},X=(e,t)=>{R(e,t,!1)},Y=(e,t)=>{const o=Array.from(e.children);for(let e=0;e<o.length;e++){const n=o[e];if(n instanceof HTMLElement&&j(n,t))return n}},V=(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)},J=e=>{e&&(e.style.display="none")},Z=(e,t="block")=>{e&&new MutationObserver(()=>{K(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},G=(e,t,o,n)=>{const i=e.querySelector(t);i&&i.style.setProperty(o,n)},K=(e,t,o="flex")=>{t?U(e,o):J(e)},ee=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),te=e=>!!(e.scrollHeight>e.clientHeight),oe=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},ne=(e,t=!1)=>{const o=L();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))},ie=`\n <div aria-labelledby="${a.title}" aria-describedby="${a["html-container"]}" class="${a.popup}" tabindex="-1">\n <button type="button" class="${a.close}"></button>\n <ul class="${a["progress-steps"]}"></ul>\n <div class="${a.icon}"></div>\n <img class="${a.image}" />\n <h2 class="${a.title}" id="${a.title}"></h2>\n <div class="${a["html-container"]}" id="${a["html-container"]}"></div>\n <input class="${a.input}" id="${a.input}" />\n <input type="file" class="${a.file}" />\n <div class="${a.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${a.select}" id="${a.select}"></select>\n <div class="${a.radio}"></div>\n <label class="${a.checkbox}">\n <input type="checkbox" id="${a.checkbox}" />\n <span class="${a.label}"></span>\n </label>\n <textarea class="${a.textarea}" id="${a.textarea}"></textarea>\n <div class="${a["validation-message"]}" id="${a["validation-message"]}"></div>\n <div class="${a.actions}">\n <div class="${a.loader}"></div>\n <button type="button" class="${a.confirm}"></button>\n <button type="button" class="${a.deny}"></button>\n <button type="button" class="${a.cancel}"></button>\n </div>\n <div class="${a.footer}"></div>\n <div class="${a["timer-progress-bar-container"]}">\n <div class="${a["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),se=()=>{n.currentInstance.resetValidationMessage()},ae=e=>{const t=(()=>{const e=b();return!!e&&(e.remove(),X([document.documentElement,document.body],[a["no-backdrop"],a["toast-shown"],a["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=a.container,t&&W(o,a["no-transition"]),F(o,ie),o.dataset.swal2Theme=e.theme;const n="string"==typeof(i=e.target)?document.querySelector(i):i;var i;n.appendChild(o),e.topLayer&&(o.setAttribute("popover",""),o.showPopover()),(e=>{const t=k();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&&W(b(),a.rtl)})(n),(()=>{const e=k(),t=Y(e,a.input),o=Y(e,a.file),n=e.querySelector(`.${a.range} input`),i=e.querySelector(`.${a.range} output`),s=Y(e,a.select),r=e.querySelector(`.${a.checkbox} input`),l=Y(e,a.textarea);t.oninput=se,o.onchange=se,s.onchange=se,r.onchange=se,l.oninput=se,n.oninput=()=>{se(),i.value=n.value},n.onchange=()=>{se(),i.value=n.value}})()},re=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?le(e,t):e&&F(t,e)},le=(e,t)=>{e.jquery?ce(t,e):F(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=I(),n=D();o&&n&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?U(o):J(o),H(o,t,"actions"),function(e,t,o){const n=B(),i=_(),s=$();n&&i&&s&&(pe(n,"confirm",o),pe(i,"deny",o),pe(s,"cancel",o),function(e,t,o,n){n.buttonsStyling?(W([e,t,o],a.styled),n.confirmButtonColor&&e.style.setProperty("--swal2-confirm-button-background-color",n.confirmButtonColor),n.denyButtonColor&&t.style.setProperty("--swal2-deny-button-background-color",n.denyButtonColor),n.cancelButtonColor&&o.style.setProperty("--swal2-cancel-button-background-color",n.cancelButtonColor),ue(e),ue(t),ue(o)):X([e,t,o],a.styled)}(n,i,s,o),o.reverseButtons&&(o.toast?(e.insertBefore(s,n),e.insertBefore(i,n)):(e.insertBefore(s,t),e.insertBefore(i,t),e.insertBefore(n,t))))}(o,n,t),F(n,t.loaderHtml||""),H(n,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 n=c(t);K(e,o[`show${n}Button`],"inline-block"),F(e,o[`${t}ButtonText`]||""),e.setAttribute("aria-label",o[`${t}ButtonAriaLabel`]||""),e.className=a[t],H(e,o,`${t}Button`)}const he=(e,t)=>{const o=b();o&&(function(e,t){"string"==typeof t?e.style.background=t:t||W([document.documentElement,document.body],a["no-backdrop"])}(o,t.backdrop),function(e,t){t&&(t in a?W(e,a[t]):(d('The "position" parameter is not valid, defaulting to "center"'),W(e,a.center)))}(o,t.position),function(e,t){t&&W(e,a[`grow-${t}`])}(o,t.grow),H(o,t,"container"))};var me={innerParams:new WeakMap,domCache:new WeakMap};const we=["input","file","range","select","radio","checkbox","textarea"],fe=e=>{if(!e.input)return;if(!Ce[e.input])return void u(`Unexpected type of input! Expected ${Object.keys(Ce).join(" | ")}, got "${e.input}"`);const t=ke(e.input);if(!t)return;const o=Ce[e.input](t,e);U(t),e.inputAutoFocus&&setTimeout(()=>{z(o)})},ge=(e,t)=>{const o=k();if(!o)return;const n=Q(o,e);if(n){(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)}})(n);for(const e in t)n.setAttribute(e,t[e])}},be=e=>{if(!e.input)return;const t=ke(e.input);t&&H(t,e,"input")},ve=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},ye=(e,t,o)=>{if(o.inputLabel){const n=document.createElement("label"),i=a["input-label"];n.setAttribute("for",e.id),n.className=i,"object"==typeof o.customClass&&W(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},ke=e=>{const t=k();if(t)return Y(t,a[e]||a.input)},xe=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:g(t)||d(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Ce={};Ce.text=Ce.email=Ce.password=Ce.number=Ce.tel=Ce.url=Ce.search=Ce.date=Ce["datetime-local"]=Ce.time=Ce.week=Ce.month=(e,t)=>(xe(e,t.inputValue),ye(e,e,t),ve(e,t),e.type=t.input,e),Ce.file=(e,t)=>(ye(e,e,t),ve(e,t),e),Ce.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return xe(o,t.inputValue),o.type=t.input,xe(n,t.inputValue),ye(o,e,t),e},Ce.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");F(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return ye(e,e,t),e},Ce.radio=e=>(e.textContent="",e),Ce.checkbox=(e,t)=>{const o=Q(k(),"checkbox");o.value="1",o.checked=Boolean(t.inputValue);const n=e.querySelector("span");return F(n,t.inputPlaceholder||t.inputLabel),o},Ce.textarea=(e,t)=>{xe(e,t.inputValue),ve(e,t),ye(e,e,t);return setTimeout(()=>{if("MutationObserver"in window){const o=parseInt(window.getComputedStyle(k()).width);new MutationObserver(()=>{if(!document.body.contains(e))return;const n=e.offsetWidth+(i=e,parseInt(window.getComputedStyle(i).marginLeft)+parseInt(window.getComputedStyle(i).marginRight));var i;n>o?k().style.width=`${n}px`:V(k(),"width",t.width)}).observe(e,{attributes:!0,attributeFilter:["style"]})}}),e};const Ee=(e,t)=>{const o=E();o&&(Z(o),H(o,t,"htmlContainer"),t.html?(re(t.html,o),U(o,"block")):t.text?(o.textContent=t.text,U(o,"block")):J(o),((e,t)=>{const o=k();if(!o)return;const n=me.innerParams.get(e),i=!n||t.input!==n.input;we.forEach(e=>{const n=Y(o,a[e]);n&&(ge(e,t.inputAttributes),n.className=a[e],i&&J(n))}),t.input&&(i&&fe(t),be(t))})(e,t))},Ae=(e,t)=>{for(const[o,n]of Object.entries(r))t.icon!==o&&X(e,n);W(e,t.icon&&r[t.icon]),Be(e,t),Se(),H(e,t,"icon")},Se=()=>{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,n="";t.iconHtml?n=$e(t.iconHtml):"success"===t.icon?(n=(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?n='\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&&(n=$e({question:"?",warning:"!",info:"i"}[t.icon])),o.trim()!==n.trim()&&F(e,n)},Be=(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"])G(e,o,"background-color",t.iconColor);G(e,".swal2-success-ring","border-color",t.iconColor)}},$e=e=>`<div class="${a["icon-content"]}">${e}</div>`;let _e=!1,De=0,Ie=0,Oe=0,Le=0;const Pe=e=>{const t=k();if(e.target===t||x().contains(e.target)){_e=!0;const o=Ne(e);De=o.clientX,Ie=o.clientY,Oe=parseInt(t.style.insetInlineStart)||0,Le=parseInt(t.style.insetBlockStart)||0,W(t,"swal2-dragging")}},Me=e=>{const t=k();if(_e){let{clientX:o,clientY:n}=Ne(e);t.style.insetInlineStart=`${Oe+(o-De)}px`,t.style.insetBlockStart=`${Le+(n-Ie)}px`}},qe=()=>{const e=k();_e=!1,X(e,"swal2-dragging")},Ne=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}},Fe=(e,t)=>{const o=b(),n=k();if(o&&n){if(t.toast){V(o,"width",t.width),n.style.width="100%";const e=D();e&&n.insertBefore(e,x())}else V(n,"width",t.width);V(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),J(T()),je(n,t),t.draggable&&!t.toast?(W(n,a.draggable),(e=>{e.addEventListener("mousedown",Pe),document.body.addEventListener("mousemove",Me),e.addEventListener("mouseup",qe),e.addEventListener("touchstart",Pe),document.body.addEventListener("touchmove",Me),e.addEventListener("touchend",qe)})(n)):(X(n,a.draggable),(e=>{e.removeEventListener("mousedown",Pe),document.body.removeEventListener("mousemove",Me),e.removeEventListener("mouseup",qe),e.removeEventListener("touchstart",Pe),document.body.removeEventListener("touchmove",Me),e.removeEventListener("touchend",qe)})(n))}},je=(e,t)=>{const o=t.showClass||{};e.className=`${a.popup} ${ee(e)?o.popup:""}`,t.toast?(W([document.documentElement,document.body],a["toast-shown"]),W(e,a.toast)):W(e,a.modal),H(e,t,"popup"),"string"==typeof t.customClass&&W(e,t.customClass),t.icon&&W(e,a[`icon-${t.icon}`])},He=e=>{const t=document.createElement("li");return W(t,a["progress-step"]),F(t,e),t},Qe=e=>{const t=document.createElement("li");return W(t,a["progress-step-line"]),e.progressStepsDistance&&V(t,"width",e.progressStepsDistance),t},ze=(e,t)=>{Fe(0,t),he(0,t),((e,t)=>{const o=S();if(!o)return;const{progressSteps:n,currentProgressStep:i}=t;n&&0!==n.length&&void 0!==i?(U(o),o.textContent="",i>=n.length&&d("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.forEach((e,s)=>{const r=He(e);if(o.appendChild(r),s===i&&W(r,a["active-progress-step"]),s!==n.length-1){const e=Qe(t);o.appendChild(e)}})):J(o)})(0,t),((e,t)=>{const o=me.innerParams.get(e),n=x();if(n){if(o&&t.icon===o.icon)return Te(n,t),void Ae(n,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(r).indexOf(t.icon))return u(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void J(n);U(n),Te(n,t),Ae(n,t),W(n,t.showClass&&t.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",Se)}else J(n)}})(e,t),((e,t)=>{const o=A();o&&(t.imageUrl?(U(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt||""),V(o,"width",t.imageWidth),V(o,"height",t.imageHeight),o.className=a.image,H(o,t,"image")):J(o))})(0,t),((e,t)=>{const o=C();o&&(Z(o),K(o,Boolean(t.title||t.titleText),"block"),t.title&&re(t.title,o),t.titleText&&(o.innerText=t.titleText),H(o,t,"title"))})(0,t),((e,t)=>{const o=P();o&&(F(o,t.closeButtonHtml||""),H(o,t,"closeButton"),K(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel||""))})(0,t),Ee(e,t),de(0,t),((e,t)=>{const o=O();o&&(Z(o),K(o,Boolean(t.footer),"block"),t.footer&&re(t.footer,o),H(o,t,"footer"))})(0,t);const o=k();"function"==typeof t.didRender&&o&&t.didRender(o),n.eventEmitter.emit("didRender",o)},Re=()=>{var e;return null===(e=B())||void 0===e?void 0:e.click()},We=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Xe=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Ye=(e,t)=>{var o;const n=M();if(n.length)return-2===(e+=t)&&(e=n.length-1),e===n.length?e=0:-1===e&&(e=n.length-1),void n[e].focus();null===(o=k())||void 0===o||o.focus()},Ve=["ArrowRight","ArrowDown"],Ue=["ArrowLeft","ArrowUp"],Je=(e,t,o)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Ze(t,e):"Tab"===t.key?Ge(t):[...Ve,...Ue].includes(t.key)?Ke(t.key):"Escape"===t.key&&et(t,e,o)))},Ze=(e,t)=>{if(!m(t.allowEnterKey))return;const o=Q(k(),t.input);if(e.target&&o&&e.target instanceof HTMLElement&&e.target.outerHTML===o.outerHTML){if(["textarea","file"].includes(t.input))return;Re(),e.preventDefault()}},Ge=e=>{const t=e.target,o=M();let n=-1;for(let e=0;e<o.length;e++)if(t===o[e]){n=e;break}e.shiftKey?Ye(n,-1):Ye(n,1),e.stopPropagation(),e.preventDefault()},Ke=e=>{const t=I(),o=B(),n=_(),i=$();if(!(t&&o&&n&&i))return;const s=[o,n,i];if(document.activeElement instanceof HTMLElement&&!s.includes(document.activeElement))return;const a=Ve.includes(e)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;if(r){for(let e=0;e<t.children.length;e++){if(r=r[a],!r)return;if(r instanceof HTMLButtonElement&&ee(r))break}r instanceof HTMLButtonElement&&r.focus()}},et=(e,t,o)=>{e.preventDefault(),m(t.allowEscapeKey)&&o(We.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")})},nt="undefined"!=typeof window&&!!window.GestureEvent,it=()=>{const e=b();if(!e)return;let t;e.ontouchstart=e=>{t=st(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},st=e=>{const t=e.target,o=b(),n=E();return!(!o||!n||at(e)||rt(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,n)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||te(n)&&n.contains(t)))},at=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,rt=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=a["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,s){N()?bt(e,s):(i(o).then(()=>bt(e,s)),Xe(n)),nt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),q()&&(null!==lt&&(document.body.style.paddingRight=`${lt}px`,lt=null),(()=>{if(j(document.body,a.iosfix)){const e=parseInt(document.body.style.top,10);X(document.body,a.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),ot()),X([document.documentElement,document.body],[a.shown,a["height-auto"],a["no-backdrop"],a["toast-shown"]])}function ut(e){e=wt(e);const t=tt.swalPromiseResolve.get(this),o=pt(this);this.isAwaitingPromise?e.isDismissed||(mt(this),t(e)):o&&t(e)}const pt=e=>{const t=k();if(!t)return!1;const o=me.innerParams.get(e);if(!o||j(t,o.hideClass.popup))return!1;X(t,o.showClass.popup),W(t,o.hideClass.popup);const n=b();return X(n,o.showClass.backdrop),W(n,o.hideClass.backdrop),ft(e,t,o),!0};function ht(e){const t=tt.swalPromiseReject.get(this);mt(this),t&&t(e)}const mt=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,me.innerParams.get(e)||e._destroy())},wt=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),ft=(e,t,o)=>{var i;const s=b(),a=oe(t);"function"==typeof o.willClose&&o.willClose(t),null===(i=n.eventEmitter)||void 0===i||i.emit("willClose",t),a?gt(e,t,s,o.returnFocus,o.didClose):dt(e,s,o.returnFocus,o.didClose)},gt=(e,t,o,i,s)=>{n.swalCloseEventFinishedCallback=dt.bind(null,e,o,i,s);const a=function(e){var o;e.target===t&&(null===(o=n.swalCloseEventFinishedCallback)||void 0===o||o.call(n),delete n.swalCloseEventFinishedCallback,t.removeEventListener("animationend",a),t.removeEventListener("transitionend",a))};t.addEventListener("animationend",a),t.addEventListener("transitionend",a)},bt=(e,t)=>{setTimeout(()=>{var o;"function"==typeof t&&t.bind(e.params)(),null===(o=n.eventEmitter)||void 0===o||o.emit("didClose"),e._destroy&&e._destroy()})},vt=e=>{let t=k();if(t||new Ko,t=k(),!t)return;const o=D();N()?J(x()):yt(t,e),U(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},yt=(e,t)=>{const o=I(),n=D();o&&n&&(!t&&ee(B())&&(t=B()),U(o),t&&(J(t),n.setAttribute("data-button-to-replace",t.className),o.insertBefore(n,t)),W([e,o],a.loading))},kt=e=>e.checked?1:0,xt=e=>e.checked?e.value:null,Ct=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,Et=(e,t)=>{const o=k();if(!o)return;const n=e=>{"select"===t.input?function(e,t,o){const n=Y(e,a.select);if(!n)return;const i=(e,t,n)=>{const i=document.createElement("option");i.value=n,F(i,t),i.selected=Tt(n,o.inputValue),e.appendChild(i)};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,n.appendChild(e),o.forEach(t=>i(e,t[1],t[0]))}else i(n,o,t)}),n.focus()}(o,St(e),t):"radio"===t.input&&function(e,t,o){const n=Y(e,a.radio);if(!n)return;t.forEach(e=>{const t=e[0],i=e[1],s=document.createElement("input"),r=document.createElement("label");s.type="radio",s.name=a.radio,s.value=t,Tt(t,o.inputValue)&&(s.checked=!0);const l=document.createElement("span");F(l,i),l.className=a.label,r.appendChild(s),r.appendChild(l),n.appendChild(r)});const i=n.querySelectorAll("input");i.length&&i[0].focus()}(o,St(e),t)};w(t.inputOptions)||g(t.inputOptions)?(vt(B()),f(t.inputOptions).then(t=>{e.hideLoading(),n(t)})):"object"==typeof t.inputOptions?n(t.inputOptions):u("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},At=(e,t)=>{const o=e.getInput();o&&(J(o),f(t.inputValue).then(n=>{o.value="number"===t.input?`${parseFloat(n)||0}`:`${n}`,U(o),o.focus(),e.hideLoading()}).catch(t=>{u(`Error in inputValue promise: ${t}`),o.value="",U(o),o.focus(),e.hideLoading()}))};const St=e=>{const t=[];return e instanceof Map?e.forEach((e,o)=>{let n=e;"object"==typeof n&&(n=St(n)),t.push([o,n])}):Object.keys(e).forEach(o=>{let n=e[o];"object"==typeof n&&(n=St(n)),t.push([o,n])}),t},Tt=(e,t)=>!!t&&t.toString()===e.toString(),Bt=(e,t)=>{const o=me.innerParams.get(e);if(!o.input)return void u(`The "input" parameter is needed to be set when using returnInputValueOn${c(t)}`);const n=e.getInput(),i=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return kt(o);case"radio":return xt(o);case"file":return Ct(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,o);o.inputValidator?$t(e,i,t):n&&!n.checkValidity()?(e.enableButtons(),e.showValidationMessage(o.validationMessage||n.validationMessage)):"deny"===t?_t(e,i):Ot(e,i)},$t=(e,t,o)=>{const n=me.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>f(n.inputValidator(t,n.validationMessage))).then(n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===o?_t(e,t):Ot(e,t)})},_t=(e,t)=>{const o=me.innerParams.get(e||void 0);o.showLoaderOnDeny&&vt(_()),o.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>f(o.preDeny(t,o.validationMessage))).then(o=>{!1===o?(e.hideLoading(),mt(e)):e.close({isDenied:!0,value:void 0===o?t:o})}).catch(t=>It(e||void 0,t))):e.close({isDenied:!0,value:t})},Dt=(e,t)=>{e.close({isConfirmed:!0,value:t})},It=(e,t)=>{e.rejectPromise(t)},Ot=(e,t)=>{const o=me.innerParams.get(e||void 0);o.showLoaderOnConfirm&&vt(),o.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>f(o.preConfirm(t,o.validationMessage))).then(o=>{ee(T())||!1===o?(e.hideLoading(),mt(e)):Dt(e,void 0===o?t:o)}).catch(t=>It(e||void 0,t))):Dt(e,t)};function Lt(){const e=me.innerParams.get(this);if(!e)return;const t=me.domCache.get(this);J(t.loader),N()?e.icon&&U(x()):Pt(t),X([t.popup,t.actions],a.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Pt=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?U(t[0],"inline-block"):!ee(B())&&!ee(_())&&!ee($())&&J(e.actions)};function Mt(){const e=me.innerParams.get(this),t=me.domCache.get(this);return t?Q(t.popup,e.input):null}function qt(e,t,o){const n=me.domCache.get(e);t.forEach(e=>{n[e].disabled=o})}function Nt(e,t){const o=k();if(o&&e)if("radio"===e.type){const e=o.querySelectorAll(`[name="${a.radio}"]`);for(let o=0;o<e.length;o++)e[o].disabled=t}else e.disabled=t}function Ft(){qt(this,["confirmButton","denyButton","cancelButton"],!1)}function jt(){qt(this,["confirmButton","denyButton","cancelButton"],!0)}function Ht(){Nt(this.getInput(),!1)}function Qt(){Nt(this.getInput(),!0)}function zt(e){const t=me.domCache.get(this),o=me.innerParams.get(this);F(t.validationMessage,e),t.validationMessage.className=a["validation-message"],o.customClass&&o.customClass.validationMessage&&W(t.validationMessage,o.customClass.validationMessage),U(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid","true"),n.setAttribute("aria-describedby",a["validation-message"]),z(n),W(n,a.inputerror))}function Rt(){const e=me.domCache.get(this);e.validationMessage&&J(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),X(t,a.inputerror))}const Wt={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},Xt=["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},Vt=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Ut=e=>Object.prototype.hasOwnProperty.call(Wt,e),Jt=e=>-1!==Xt.indexOf(e),Zt=e=>Yt[e],Gt=e=>{Ut(e)||d(`Unknown parameter "${e}"`)},Kt=e=>{Vt.includes(e)&&d(`The parameter "${e}" is incompatible with toasts`)},eo=e=>{const t=Zt(e);t&&h(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)Gt(t),e.toast&&Kt(t),eo(t)};function oo(e){const t=b(),o=k(),n=me.innerParams.get(this);if(!o||j(o,n.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 i=no(e),s=Object.assign({},n,i);to(s),t.dataset.swal2Theme=s.theme,ze(this,s),me.innerParams.set(this,s),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const no=e=>{const t={};return Object.keys(e).forEach(o=>{Jt(o)?t[o]=e[o]:d(`Invalid parameter to update: ${o}`)}),t};function io(){const e=me.domCache.get(this),t=me.innerParams.get(this);t?(e.popup&&n.swalCloseEventFinishedCallback&&(n.swalCloseEventFinishedCallback(),delete n.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),n.eventEmitter.emit("didDestroy"),so(this)):ao(this)}const so=e=>{ao(e),delete e.params,delete n.keydownHandler,delete n.keydownTarget,delete n.currentInstance},ao=e=>{e.isAwaitingPromise?(ro(me,e),e.isAwaitingPromise=!0):(ro(tt,e),ro(me,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)},ro=(e,t)=>{for(const o in e)e[o].delete(t)};var lo=Object.freeze({__proto__:null,_destroy:io,close:ut,closeModal:ut,closePopup:ut,closeToast:ut,disableButtons:jt,disableInput:Qt,disableLoading:Lt,enableButtons:Ft,enableInput:Ht,getInput:Mt,handleAwaitingPromise:mt,hideLoading:Lt,rejectPromise:ht,resetValidationMessage:Rt,showValidationMessage:zt,update:oo});const co=(e,t,o)=>{t.popup.onclick=()=>{e&&(uo(e)||e.timer||e.input)||o(We.close)}},uo=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let po=!1;const ho=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(po=!0)}}},mo=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)}}},wo=(e,t,o)=>{t.container.onclick=n=>{po?po=!1:n.target===t.container&&m(e.allowOutsideClick)&&o(We.backdrop)}},fo=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const go=()=>{if(n.timeout)return(()=>{const e=L();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}%`})(),n.timeout.stop()},bo=()=>{if(n.timeout){const e=n.timeout.start();return ne(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(e);if(o)return void yo[e].fire({template:o})}};n.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=(...n)=>{this.removeListener(e,o),t.apply(this,n)};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),n=o.indexOf(t);n>-1&&o.splice(n,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}};var xo=Object.freeze({__proto__:null,argsToParams:e=>{const t={};return"object"!=typeof e[0]||fo(e[0])?["title","html","icon"].forEach((o,n)=>{const i=e[n];"string"==typeof i||fo(i)?t[o]=i:void 0!==i&&u(`Unexpected type of ${o}! Expected "string" or "Element", got ${typeof i}`)}):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=$())||void 0===e?void 0:e.click()},clickConfirm:Re,clickDeny:()=>{var e;return null===(e=_())||void 0===e?void 0:e.click()},enableLoading:vt,fire:function(...e){return new this(...e)},getActions:I,getCancelButton:$,getCloseButton:P,getConfirmButton:B,getContainer:b,getDenyButton:_,getFocusableElements:M,getFooter:O,getHtmlContainer:E,getIcon:x,getIconContent:()=>y(a["icon-content"]),getImage:A,getInputLabel:()=>y(a["input-label"]),getLoader:D,getPopup:k,getProgressSteps:S,getTimerLeft:()=>n.timeout&&n.timeout.getTimerLeft(),getTimerProgressBar:L,getTitle:C,getValidationMessage:T,increaseTimer:e=>{if(n.timeout){const t=n.timeout.increase(e);return ne(t,!0),t}},isDeprecatedParameter:Zt,isLoading:()=>{const e=k();return!!e&&e.hasAttribute("data-loading")},isTimerRunning:()=>!(!n.timeout||!n.timeout.isRunning()),isUpdatableParameter:Jt,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)=>{e?t?n.eventEmitter.removeListener(e,t):n.eventEmitter.removeAllListeners(e):n.eventEmitter.reset()},on:(e,t)=>{n.eventEmitter.on(e,t)},once:(e,t)=>{n.eventEmitter.once(e,t)},resumeTimer:bo,showLoading:vt,stopTimer:go,toggleTimer:()=>{const e=n.timeout;return e&&(e.running?go():bo())}});class Co{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 Eo=["swal-title","swal-html","swal-footer"],Ao=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(e=>{Oo(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");o&&n&&(t[o]="boolean"==typeof Wt[o]?"false"!==n:"object"==typeof Wt[o]?JSON.parse(n):n)}),t},So=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(e=>{const o=e.getAttribute("name"),n=e.getAttribute("value");o&&n&&(t[o]=new Function(`return ${n}`)())}),t},To=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(e=>{Oo(e,["type","color","aria-label"]);const o=e.getAttribute("type");o&&["confirm","cancel","deny"].includes(o)&&(t[`${o}ButtonText`]=e.innerHTML,t[`show${c(o)}Button`]=!0,e.hasAttribute("color")&&(t[`${o}ButtonColor`]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t[`${o}ButtonAriaLabel`]=e.getAttribute("aria-label")))}),t},Bo=e=>{const t={},o=e.querySelector("swal-image");return o&&(Oo(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},$o=e=>{const t={},o=e.querySelector("swal-icon");return o&&(Oo(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},_o=e=>{const t={},o=e.querySelector("swal-input");o&&(Oo(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 n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach(e=>{Oo(e,["value"]);const o=e.getAttribute("value");if(!o)return;const n=e.innerHTML;t.inputOptions[o]=n})),t},Do=(e,t)=>{const o={};for(const n in t){const i=t[n],s=e.querySelector(i);s&&(Oo(s,[]),o[i.replace(/^swal-/,"")]=s.innerHTML.trim())}return o},Io=e=>{const t=Eo.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}>`)})},Oo=(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."])})},Lo=e=>{const t=b(),o=k();"function"==typeof e.willOpen&&e.willOpen(o),n.eventEmitter.emit("willOpen",o);const i=window.getComputedStyle(document.body).overflowY;No(t,o,e),setTimeout(()=>{Mo(t,o)},10),q()&&(qo(t,e.scrollbarPadding,i),(()=>{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"))})})()),N()||n.previousActiveElement||(n.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout(()=>e.didOpen(o)),n.eventEmitter.emit("didOpen",o)},Po=e=>{const t=k();if(e.target!==t)return;const o=b();t.removeEventListener("animationend",Po),t.removeEventListener("transitionend",Po),o.style.overflowY="auto",X(o,a["no-transition"])},Mo=(e,t)=>{oe(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",Po),t.addEventListener("transitionend",Po)):e.style.overflowY="auto"},qo=(e,t,o)=>{(()=>{if(nt&&!j(document.body,a.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",W(document.body,a.iosfix),it()}})(),t&&"hidden"!==o&&ct(o),setTimeout(()=>{e.scrollTop=0})},No=(e,t,o)=>{W(e,o.showClass.backdrop),o.animation?(t.style.setProperty("opacity","0","important"),U(t,"grid"),setTimeout(()=>{W(t,o.showClass.popup),t.style.removeProperty("opacity")},10)):U(t,"grid"),W([document.documentElement,document.body],a.shown),o.heightAuto&&o.backdrop&&!o.toast&&W([document.documentElement,document.body],a["height-auto"])};var Fo=(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 Ho(e){(function(e){e.inputValidator||("email"===e.input&&(e.inputValidator=Fo),"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 />")),ae(e)}let Qo;var zo=new WeakMap;class Ro{constructor(...t){if(o(this,zo,void 0),"undefined"==typeof window)return;Qo=this;const n=Object.freeze(this.constructor.argsToParams(t));var i,s,a;this.params=n,this.isAwaitingPromise=!1,i=zo,s=this,a=this._main(Qo.params),i.set(e(i,s),a)}_main(e,t={}){if(to(Object.assign({},t,e)),n.currentInstance){const e=tt.swalPromiseResolve.get(n.currentInstance),{isAwaitingPromise:t}=n.currentInstance;n.currentInstance._destroy(),t||e({isDismissed:!0}),q()&&ot()}n.currentInstance=Qo;const o=Xo(e,t);Ho(o),Object.freeze(o),n.timeout&&(n.timeout.stop(),delete n.timeout),clearTimeout(n.restoreFocusTimeout);const i=Yo(Qo);return ze(Qo,o),me.innerParams.set(Qo,o),Wo(Qo,i,o)}then(e){return t(zo,this).then(e)}finally(e){return t(zo,this).finally(e)}}const Wo=(e,t,o)=>new Promise((i,s)=>{const a=t=>{e.close({isDismissed:!0,dismiss:t,isConfirmed:!1,isDenied:!1})};tt.swalPromiseResolve.set(e,i),tt.swalPromiseReject.set(e,s),t.confirmButton.onclick=()=>{(e=>{const t=me.innerParams.get(e);e.disableButtons(),t.input?Bt(e,"confirm"):Ot(e,!0)})(e)},t.denyButton.onclick=()=>{(e=>{const t=me.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Bt(e,"deny"):_t(e,!1)})(e)},t.cancelButton.onclick=()=>{((e,t)=>{e.disableButtons(),t(We.cancel)})(e,a)},t.closeButton.onclick=()=>{a(We.close)},((e,t,o)=>{e.toast?co(e,t,o):(ho(t),mo(t),wo(e,t,o))})(o,t,a),((e,t,o)=>{Xe(e),t.toast||(e.keydownHandler=e=>Je(t,e,o),e.keydownTarget=t.keydownListenerCapture?window:k(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)})(n,o,a),((e,t)=>{"select"===t.input||"radio"===t.input?Et(e,t):["text","email","number","tel","textarea"].some(e=>e===t.input)&&(w(t.inputValue)||g(t.inputValue))&&(vt(B()),At(e,t))})(e,o),Lo(o),Vo(n,o,a),Uo(t,o),setTimeout(()=>{t.container.scrollTop=0})}),Xo=(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 Io(o),Object.assign(Ao(o),So(o),To(o),Bo(o),$o(o),_o(o),Do(o,Eo))})(e),n=Object.assign({},Wt,t,o,e);return n.showClass=Object.assign({},Wt.showClass,n.showClass),n.hideClass=Object.assign({},Wt.hideClass,n.hideClass),!1===n.animation&&(n.showClass={backdrop:"swal2-noanimation"},n.hideClass={}),n},Yo=e=>{const t={popup:k(),container:b(),actions:I(),confirmButton:B(),denyButton:_(),cancelButton:$(),loader:D(),closeButton:P(),validationMessage:T(),progressSteps:S()};return me.domCache.set(e,t),t},Vo=(e,t,o)=>{const n=L();J(n),t.timer&&(e.timeout=new Co(()=>{o("timer"),delete e.timeout},t.timer),t.timerProgressBar&&(U(n),H(n,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&ne(t.timer)})))},Uo=(e,t)=>{if(!t.toast)return m(t.allowEnterKey)?void(Jo(e)||Zo(e,t)||Ye(-1,1)):(h("allowEnterKey"),void Go())},Jo=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)),Go=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};Ro.prototype.disableButtons=jt,Ro.prototype.enableButtons=Ft,Ro.prototype.getInput=Mt,Ro.prototype.disableInput=Qt,Ro.prototype.enableInput=Ht,Ro.prototype.hideLoading=Lt,Ro.prototype.disableLoading=Lt,Ro.prototype.showValidationMessage=zt,Ro.prototype.resetValidationMessage=Rt,Ro.prototype.close=ut,Ro.prototype.closePopup=ut,Ro.prototype.closeModal=ut,Ro.prototype.closeToast=ut,Ro.prototype.rejectPromise=ht,Ro.prototype.update=oo,Ro.prototype._destroy=io,Object.assign(Ro,xo),Object.keys(lo).forEach(e=>{Ro[e]=function(...t){return Qo&&Qo[e]?Qo[e](...t):null}}),Ro.DismissReason=We,Ro.version="11.26.3";const Ko=Ro;return Ko.default=Ko,Ko}(),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:function(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 n(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 n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?e.appendChild(n):e.insertAdjacentElement("afterbegin",n)}if(!0===this.options.close){var i=document.createElement("button");i.type="button",i.setAttribute("aria-label","Close"),i.className="toast-close",i.innerHTML="✖",i.addEventListener("click",function(e){e.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}.bind(this));var s=window.innerWidth>0?window.innerWidth:screen.width;("left"==this.options.position||!0===this.options.positionLeft)&&s>360?e.insertAdjacentElement("afterbegin",i):e.appendChild(i)}if(this.options.stopOnFocus&&this.options.duration>0){var a=this;e.addEventListener("mouseover",function(t){window.clearTimeout(e.timeOutValue)}),e.addEventListener("mouseleave",function(){e.timeOutValue=window.setTimeout(function(){a.removeElement(e)},a.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 r=o("x",this.options),l=o("y",this.options),c="left"==this.options.position?r:"-"+r,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},i={top:15,bottom:15},s=document.getElementsByClassName("toastify"),a=0;a<s.length;a++){e=!0===n(s[a],"toastify-top")?"toastify-top":"toastify-bottom";var r=s[a].offsetHeight;e=e.substr(9,e.length-1),(window.innerWidth>0?window.innerWidth:screen.width)<=360?(s[a].style[e]=i[e]+"px",i[e]+=r+15):!0===n(s[a],"toastify-left")?(s[a].style[e]=t[e]+"px",t[e]+=r+15):(s[a].style[e]=o[e]+"px",o[e]+=r+15)}return this},t.lib.init.prototype=t.lib,t},e.exports?e.exports=t():this.Toastify=t()}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var s=t[n]={id:n,exports:{}};return e[n].call(s.exports,s,s.exports,o),s.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 n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.nc=void 0,(()=>{"use strict";var e=o(4223),t=o(2603),n=o(8465),i=o.n(n),s=o(246);const a="edit-question";let r,l,c,d;class u{static selectors={elEditQuestionWrap:".lp-edit-question-wrap",elQuestionEditMain:".lp-question-edit-main",elQuestionToggleAll:".lp-question-toggle-all",elEditListQuestions:".lp-edit-list-questions",elQuestionToggle:".lp-question-toggle",elBtnShowPopupItemsToSelect:".lp-btn-show-popup-items-to-select",elPopupItemsToSelectClone:".lp-popup-items-to-select.clone",elBtnAddQuestion:".lp-btn-add-question",elBtnRemoveQuestion:".lp-btn-remove-question",elBtnUpdateQuestionTitle:".lp-btn-update-question-title",elBtnUpdateQuestionDes:".lp-btn-update-question-des",elBtnUpdateQuestionHint:".lp-btn-update-question-hint",elBtnUpdateQuestionExplain:".lp-btn-update-question-explanation",elQuestionTitleNewInput:".lp-question-title-new-input",elQuestionTitleInput:".lp-question-title-input",elQuestionTypeLabel:".lp-question-type-label",elQuestionTypeNew:".lp-question-type-new",elAddNewQuestion:"add-new-question",elQuestionClone:".lp-question-item.clone",elAnswersConfig:".lp-answers-config",elBtnAddAnswer:".lp-btn-add-question-answer",elQuestionAnswerItemAddNew:".lp-question-answer-item-add-new",elQuestionAnswerTitleNewInput:".lp-question-answer-title-new-input",elQuestionAnswerTitleInput:".lp-question-answer-title-input",elBtnDeleteAnswer:".lp-btn-delete-question-answer",elQuestionByType:".lp-question-by-type",elInputAnswerSetTrue:".lp-input-answer-set-true",elQuestionAnswerItem:".lp-question-answer-item",elBtnUpdateQuestionAnswer:".lp-btn-update-question-answer",elBtnFibInsertBlank:".lp-btn-fib-insert-blank",elBtnFibDeleteAllBlanks:".lp-btn-fib-delete-all-blanks",elBtnFibSaveContent:".lp-btn-fib-save-content",elBtnFibClearAllContent:".lp-btn-fib-clear-all-content",elFibOptionTitleInput:".lp-question-fib-option-title-input",elFibBlankOptions:".lp-question-fib-blank-options",elFibBlankOptionItem:".lp-question-fib-blank-option-item",elFibBlankOptionItemClone:".lp-question-fib-blank-option-item.clone",elFibBlankOptionIndex:".lp-question-fib-option-index",elBtnFibOptionDelete:".lp-btn-fib-option-delete",elFibOptionMatchCaseWrap:".lp-question-fib-option-match-case-wrap",elFibOptionMatchCaseInput:".lp-question-fib-option-match-case-input",elQuestionFibOptionDetail:".lp-question-fib-option-detail",elFibOptionComparisonInput:".lp-question-fib-option-comparison-input",elAutoSaveFib:".lp-auto-save-fib",LPTarget:".lp-target",elCollapse:"lp-collapse",elSectionToggle:".lp-section-toggle",elTriggerToggle:".lp-trigger-toggle",elAutoSaveQuestion:".lp-auto-save-question",elAutoSaveAnswer:".lp-auto-save-question-answer",elQuestionFibInput:"lp-question-fib-input",elBtnQuestionCreateType:".lp-btn-question-create-type"};constructor(){}init(){this.events(),this.initTinyMCE().then()}events(){u._loadedEvents||(u._loadedEvents=!0,document.querySelectorAll(`${u.selectors.elQuestionEditMain}`).forEach(e=>{this.sortAbleQuestionAnswer(e)}),e.eventHandlers("click",[{selector:u.selectors.elBtnQuestionCreateType,callBack:this.createQuestionType.name,class:this},{selector:u.selectors.elBtnAddAnswer,callBack:this.addQuestionAnswer.name,class:this},{selector:u.selectors.elBtnDeleteAnswer,callBack:this.deleteQuestionAnswer.name,class:this},{selector:u.selectors.elBtnFibInsertBlank,callBack:this.fibInsertBlank.name,class:this},{selector:u.selectors.elBtnFibDeleteAllBlanks,callBack:this.fibDeleteAllBlanks.name,class:this},{selector:u.selectors.elBtnFibSaveContent,callBack:this.fibSaveContent.name,class:this},{selector:u.selectors.elBtnFibClearAllContent,callBack:this.fibClearContent.name,class:this},{selector:u.selectors.elBtnFibOptionDelete,callBack:this.fibDeleteBlank.name,class:this},{selector:u.selectors.elFibOptionMatchCaseInput,callBack:this.fibShowHideMatchCaseOption.name,class:this},{selector:u.selectors.elFibOptionComparisonInput,callBack:e=>{const{e:t,target:o}=e;o.closest(`${u.selectors.elQuestionEditMain}`).querySelector(`${u.selectors.elBtnFibSaveContent}`).click()}}]),document.addEventListener("click",t=>{const o=t.target;e.toggleCollapse(t,o,u.selectors.elTriggerToggle)}),e.eventHandlers("keyup",[{selector:u.selectors.elQuestionAnswerTitleNewInput,callBack:this.checkCanAddAnswer.name,class:this},{selector:u.selectors.elFibOptionTitleInput,callBack:this.fibOptionTitleInputChange.name,class:this},{selector:u.selectors.elAutoSaveQuestion,callBack:this.autoUpdateQuestion.name,class:this}]),e.eventHandlers("keydown",[{selector:u.selectors.elQuestionAnswerTitleNewInput,callBack:this.addQuestionAnswer.name,class:this,checkIsEventEnter:!0}]),e.eventHandlers("change",[{selector:u.selectors.elAutoSaveAnswer,callBack:this.autoUpdateAnswer.name,class:this}]),this.eventEditorTinymce())}async initTinyMCE(){document.querySelectorAll(".lp-editor-tinymce").forEach(e=>{const t=e.id;this.reInitTinymce(t)})}reInitTinymce(e){window.tinymce.execCommand("mceRemoveEditor",!0,e),window.tinymce.execCommand("mceAddEditor",!0,e)}eventEditorTinymce(){window.tinymce.on("AddEditor",t=>{const o=t.editor.id,n=window.tinymce.get(o);if(!n)return;if("content"===o)return;const i=document.querySelector(`#wp-${o}-wrap`);i&&(i.classList.add("tmce-active"),i.classList.remove("html-active"));const s=document.getElementById(o);s.closest(`${u.selectors.elQuestionEditMain}`).dataset.questionId,n.settings.force_p_newlines=!1,n.settings.forced_root_block="",n.settings.force_br_newlines=!0,n.settings.relative_urls=!1,n.settings.remove_script_host=!1,n.settings.convert_urls=!0,n.settings.document_base_url=lpData.site_url,n.on("change keyup",e=>{s.value=n.getContent(),this.autoUpdateQuestion({e,target:s})}),n.on("blur",e=>{}),n.on("focusin",e=>{}),n.on("init",()=>{n.dom.addStyle(`\n\t\t\t\tbody {\n\t\t\t\t\tline-height: 2.2 !important;\n\t\t\t\t}\n\t\t\t\t.${u.selectors.elQuestionFibInput} {\n\t\t\t\t\tborder: 1px dashed rebeccapurple;\n\t\t\t\t\tpadding: 5px;\n\t\t\t\t}\n\t\t\t`)}),n.on("setcontent",e=>{const t=this.randomString(),o=n.dom.select(`.${u.selectors.elQuestionFibInput}[data-id="${t}"]`);o[0]&&o[0].focus(),n.dom.bind(o[0],"input",e=>{})}),n.on("selectionchange",t=>{if(r=n.selection,r.getNode().classList.contains(`${u.selectors.elQuestionFibInput}`)){const t=r.getNode().dataset.id,i=r.getNode().textContent.trim();if(0===i.length){const o=n.id.replace(`${u.selectors.elQuestionFibInput}-`,""),i=document.querySelector(`${u.selectors.elQuestionEditMain}[data-question-id="${o}"]`).querySelector(`${u.selectors.elFibBlankOptions}`).querySelector(`${u.selectors.elFibBlankOptionItem}[data-id="${t}"]`);i&&e.lpShowHideEl(i,0)}else{const e=document.getElementById(o).closest(`${u.selectors.elAnswersConfig}`).querySelector(`${u.selectors.elFibBlankOptionItem}[data-id="${t}"]`);if(e){const t=e.querySelector(`${u.selectors.elFibOptionTitleInput}`);t&&(t.value=i)}}}}),n.on("Undo",t=>{n.getContent();const o=n.selection.getNode();if(o.classList.contains(`${u.selectors.elQuestionFibInput}`)){const t=o.dataset.id,n=document.querySelector(`${u.selectors.elFibBlankOptionItem}[data-id="${t}"]`);n&&e.lpShowHideEl(n,1)}}),n.on("Redo",e=>{})})}autoUpdateQuestion(e){let{e:o,target:n,key:i,value:s}=e;const r=n.closest(`${u.selectors.elAutoSaveQuestion}`);if(!r)return;const l=r.closest(`${u.selectors.elQuestionEditMain}`).dataset.questionId;clearTimeout(d),d=setTimeout(()=>{const e={success:e=>{const{message:o,status:n}=e;if("success"!==n)throw`Error: ${o}`;t.W(o,n)},error:e=>{t.W(e,"error")},completed:()=>{}},o={action:"update_question",question_id:l,args:{id_url:a}};if(void 0===i){if(i=r.dataset.keyAutoSave,!i){if(!r.classList.contains("lp-editor-tinymce"))return;const e=r.id;if(i=e.replace(/lp-/g,"").replace(`-${l}`,"").replace(/-/g,"_"),!i)return}s=r.value}o[i]=s,window.lpAJAXG.fetchAJAX(o,e)},700)}createQuestionType(e){const{e:o,target:n}=e,i=n.closest(`${u.selectors.elBtnQuestionCreateType}`);if(!i)return;const s=i.closest(`${u.selectors.elQuestionEditMain}`);if(!s)return;const r=s.dataset.questionId,l=s.querySelector(`${u.selectors.elQuestionTypeNew}`);if(!l)return;const c=l.value.trim();if(!c){const e=l.dataset.messEmptyType;return void t.W(e,"error")}const d={success:e=>{const{message:o,status:n,data:i}=e;if("success"!==n)throw`Error: ${o}`;{const{html_option_answers:e}=i;s.querySelector(`${u.selectors.elAnswersConfig}`).outerHTML=e,this.initTinyMCE(),this.sortAbleQuestionAnswer(s),t.W(o,n)}},error:e=>{t.W(e,"error")},completed:()=>{}},p={action:"update_question",question_id:r,question_type:c,args:{id_url:a}};window.lpAJAXG.fetchAJAX(p,d)}addQuestionAnswer(o){const{e:n,target:i}=o,s=i.closest(`${u.selectors.elQuestionAnswerItemAddNew}`);if(!s)return;n.preventDefault();const r=s.querySelector(`${u.selectors.elQuestionAnswerTitleNewInput}`);if(!r.value.trim()){const e=r.dataset.messEmptyTitle;return void t.W(e,"error")}const l=i.closest(`${u.selectors.elQuestionEditMain}`),c=l.querySelector(`${u.selectors.elQuestionAnswerItem}.clone`),d=c.cloneNode(!0),p=d.querySelector(`${u.selectors.elQuestionAnswerTitleInput}`);d.classList.remove("clone"),e.lpShowHideEl(d,1),e.lpSetLoadingEl(d,1),c.insertAdjacentElement("beforebegin",d);const h=r.value.trim();p.value=h,r.value="";const m={success:o=>{const{message:n,status:i,data:s}=o;if("success"!==i)throw`Error: ${n}`;{const{question_answer:t}=s;d.dataset.answerId=t.question_answer_id,e.lpSetLoadingEl(d,0);const o=this.getDataAnswersConfig(l);o.push(t),this.setDataAnswersConfig(l,o)}t.W(n,i)},error:e=>{d.remove(),t.W(e,"error")},completed:()=>{this.checkCanAddAnswer(null,r)}},w={action:"add_question_answer",question_id:l.dataset.questionId,answer_title:h,args:{id_url:a}};window.lpAJAXG.fetchAJAX(w,m)}checkCanAddAnswer(e){const{e:t,target:o}=e,n=o.closest(u.selectors.elQuestionAnswerTitleNewInput);if(!n)return;const i=n.closest(`${u.selectors.elQuestionAnswerItemAddNew}`);if(!i)return;const s=i.querySelector(`${u.selectors.elBtnAddAnswer}`);s&&(n.value.trim()?s.classList.add("active"):s.classList.remove("active"))}autoUpdateAnswer(o){const{e:n,target:i}=o,s=i.closest(`${u.selectors.elAutoSaveAnswer}`);if(!s)return;const r=s.closest(`${u.selectors.elQuestionAnswerItem}`);clearTimeout(l),l=setTimeout(()=>{const o=s.closest(`${u.selectors.elQuestionEditMain}`),n=o.dataset.questionId,i=this.getDataAnswersConfig(o),l=o.querySelector(`${u.selectors.elAnswersConfig}`),c=structuredClone(i),d=l.querySelectorAll(`${u.selectors.elQuestionAnswerItem}:not(.clone)`),p={};d.forEach((e,t)=>{p[e.dataset.answerId]=t+1}),i.map((e,t)=>{const n=o.querySelector(`${u.selectors.elQuestionAnswerItem}[data-answer-id="${e.question_answer_id}"]`),i=n.querySelector(`${u.selectors.elInputAnswerSetTrue}`),s=n.querySelector(`${u.selectors.elQuestionAnswerTitleInput}`);return s&&(e.title=s.value.trim()),i&&(i.checked?e.is_true="yes":e.is_true=""),p[e.question_answer_id]&&(e.order=p[e.question_answer_id]),e}),e.lpSetLoadingEl(r,1);const h={success:e=>{const{message:o,status:n}=e;if("success"!==n)throw`Error: ${o}`;t.W(o,n)},error:e=>{c.forEach(e=>{const t=o.querySelector(`${u.selectors.elQuestionAnswerItem}[data-answer-id="${e.question_answer_id}"]`).querySelector(`${u.selectors.elInputAnswerSetTrue}`);return"yes"===e.is_true&&(t.checked=!0),e}),t.W(e,"error")},completed:()=>{e.lpSetLoadingEl(r,0)}},m={action:"update_question_answers_config",question_id:n,answers:i,args:{id_url:a}};window.lpAJAXG.fetchAJAX(m,h)},700)}sortAbleQuestionAnswer(e){let t,o=0;e.querySelectorAll(`${u.selectors.elAnswersConfig}`).forEach(e=>{new s.Ay(e,{handle:".drag",animation:150,onEnd:e=>{const n=e.item;o&&(clearTimeout(t),t=setTimeout(()=>{const e=n.querySelector(`${u.selectors.elAutoSaveAnswer}`);this.autoUpdateAnswer({e:null,target:e})},1e3))},onMove:e=>{clearTimeout(t)},onUpdate:e=>{o=1}})})}deleteQuestionAnswer(o){const{e:n,target:s}=o,r=s.closest(`${u.selectors.elBtnDeleteAnswer}`);if(!r)return;const l=r.closest(`${u.selectors.elQuestionAnswerItem}`);if(!l)return;const c=r.closest(`${u.selectors.elQuestionEditMain}`),d=c.dataset.questionId,p=l.dataset.answerId;d&&p&&i().fire({title:r.dataset.title||"Are you sure?",text:r.dataset.content||"Do you want to delete this answer?",icon:"warning",showCloseButton:!0,showCancelButton:!0,cancelButtonText:lpData.i18n.cancel,confirmButtonText:lpData.i18n.yes,reverseButtons:!0}).then(o=>{if(o.isConfirmed){e.lpSetLoadingEl(l,1);const o={success:e=>{const{message:o,status:n}=e;if(t.W(o,n),"success"===n){const e=parseInt(l.dataset.answerId);l.remove();const t=this.getDataAnswersConfig(c);if(t){const o=t.filter(t=>parseInt(t.question_answer_id)!==e);this.setDataAnswersConfig(c,o)}}},error:e=>{t.W(e,"error")},completed:()=>{e.lpSetLoadingEl(l,0)}},n={action:"delete_question_answer",question_id:d,question_answer_id:p,args:{id_url:a}};window.lpAJAXG.fetchAJAX(n,o)}})}getDataAnswersConfig(e){const t=e.querySelector(`${u.selectors.elAnswersConfig}`);if(!t)return null;let o=t.dataset.answers||"[]";try{o=JSON.parse(o)}catch(e){o=[]}return o.meta_data||(o.meta_data={}),o}setDataAnswersConfig(e,t){const o=e.querySelector(`${u.selectors.elAnswersConfig}`);o&&(t&&"object"==typeof t||(t={}),o.dataset.answers=JSON.stringify(t))}fibInsertBlank=o=>{const{e:n,target:i}=o,s=i.closest(u.selectors.elBtnFibInsertBlank);if(!s)return;const a=s.dataset.defaultText,l=s.closest(u.selectors.elQuestionEditMain),c=l.dataset.questionId,d=s.dataset.messInserted,p=s.dataset.messRequireSelectText,h=`${u.selectors.elQuestionFibInput}-${c}`,m=this.randomString();let w;if(!r)return void t.W(p,"error");{const e=r.getNode();if(!e)return void t.W("Event insert blank has error, please try again","error");if(!e.closest(`body[data-id="${h}"]`))return void t.W(p,"error");if(e.classList.contains(`${u.selectors.elQuestionFibInput}`))return void t.W(d,"error");w=r.getContent(),0===w.length&&(w=a);const o=`<span class="${u.selectors.elQuestionFibInput}" data-id="${m}">${w}</span>`;r.setContent(o)}const f=this.getDataAnswersConfig(l);f.meta_data=f.meta_data||{},0===Object.keys(f.meta_data).length&&(f.meta_data={}),f.meta_data[m]={id:m,match_case:0,comparison:"equal",fill:w,index:1,open:!1},this.setDataAnswersConfig(l,f);const g=l.querySelector(`${u.selectors.elFibBlankOptions}`),b=l.querySelector(`${u.selectors.elFibBlankOptionItemClone}`),v=b.cloneNode(!0),y=g.querySelectorAll(`${u.selectors.elFibBlankOptionItem}:not(.clone)`).length,k=v.querySelector(`${u.selectors.elFibBlankOptionIndex}`),x=v.querySelector(`${u.selectors.elFibOptionTitleInput}`),C=v.querySelector(`${u.selectors.elFibOptionMatchCaseInput}`),E=v.querySelectorAll(`${u.selectors.elFibOptionComparisonInput}`);v.dataset.id=m,x.name=`${u.selectors.elFibOptionTitleInput}-${m}`,x.value=this.decodeHtml(w),k.textContent=y+1+".",C.name=`${u.selectors.elFibOptionMatchCaseInput}-${m}`.replace(/\./g,""),E.forEach(e=>{e.name=`${u.selectors.elFibOptionComparisonInput}-${m}`.replace(/\./g,""),"equal"===e.value&&(e.checked=!0)}),b.insertAdjacentElement("beforebegin",v),v.classList.remove("clone"),e.lpShowHideEl(v,1);const A=l.querySelector(`${u.selectors.elBtnFibSaveContent}`);e.lpSetLoadingEl(s,1),this.fibSaveContent({e:null,target:A,callBackCompleted:()=>{e.lpSetLoadingEl(s,0)}})};fibDeleteAllBlanks(t){const{e:o,target:n}=t,s=n.closest(`${u.selectors.elBtnFibDeleteAllBlanks}`);if(!s)return;const a=s.closest(`${u.selectors.elQuestionEditMain}`);if(!a)return;const r=a.dataset.questionId,l=this.getDataAnswersConfig(a);i().fire({title:s.dataset.title,text:s.dataset.content,icon:"warning",showCloseButton:!0,showCancelButton:!0,cancelButtonText:lpData.i18n.cancel,confirmButtonText:lpData.i18n.yes,reverseButtons:!0}).then(t=>{if(t.isConfirmed){const t=window.tinymce.get(`${u.selectors.elQuestionFibInput}-${r}`);t.dom.select(`.${u.selectors.elQuestionFibInput}`).forEach(e=>{t.dom.remove(e,!0)}),l.meta_data={},this.setDataAnswersConfig(a,l),a.querySelector(`${u.selectors.elFibBlankOptions}`).querySelectorAll(`${u.selectors.elFibBlankOptionItem}:not(.clone)`).forEach(e=>{e.remove()});const o=a.querySelector(`${u.selectors.elBtnFibSaveContent}`);e.lpSetLoadingEl(s,1),this.fibSaveContent({e:null,target:o,callBackCompleted:()=>{e.lpSetLoadingEl(s,0)}})}})}fibClearContent(t){const{e:o,target:n}=t,s=n.closest(`${u.selectors.elBtnFibClearAllContent}`);if(!s)return;const a=s.closest(`${u.selectors.elQuestionEditMain}`);if(!a)return;const r=a.dataset.questionId,l=this.getDataAnswersConfig(a);i().fire({title:s.dataset.title,text:s.dataset.content,icon:"warning",showCloseButton:!0,showCancelButton:!0,cancelButtonText:lpData.i18n.cancel,confirmButtonText:lpData.i18n.yes,reverseButtons:!0}).then(t=>{if(t.isConfirmed){window.tinymce.get(`lp-question-fib-input-${r}`).setContent(""),l.meta_data={},this.setDataAnswersConfig(a,l),a.querySelector(`${u.selectors.elFibBlankOptions}`).querySelectorAll(`${u.selectors.elFibBlankOptionItem}:not(.clone)`).forEach(e=>{e.remove()});const t=a.querySelector(`${u.selectors.elBtnFibSaveContent}`);e.lpSetLoadingEl(s,1),this.fibSaveContent({e:null,target:t,callBackCompleted:()=>{e.lpSetLoadingEl(s,0)}})}})}fibDeleteBlank(t){const{e:o,target:n}=t,s=n.closest(`${u.selectors.elBtnFibOptionDelete}`);if(!s)return;const a=s.closest(`${u.selectors.elQuestionEditMain}`);if(!a)return;const r=a.dataset.questionId,l=(a.querySelector(`${u.selectors.elAnswersConfig}`),this.getDataAnswersConfig(a)),c=s.closest(`${u.selectors.elFibBlankOptionItem}`),d=c.dataset.id;i().fire({title:s.dataset.title,text:s.dataset.content,icon:"warning",showCloseButton:!0,showCancelButton:!0,cancelButtonText:lpData.i18n.cancel,confirmButtonText:lpData.i18n.yes,reverseButtons:!0}).then(t=>{if(t.isConfirmed){const t=window.tinymce.get(`${u.selectors.elQuestionFibInput}-${r}`),o=t.dom.select(`.${u.selectors.elQuestionFibInput}[data-id="${d}"]`);o[0]&&t.dom.remove(o[0],!0),c.remove(),l.meta_data=l.meta_data||{},l.meta_data[d]&&delete l.meta_data[d],this.setDataAnswersConfig(a,l);const n=a.querySelector(`${u.selectors.elBtnFibSaveContent}`);e.lpSetLoadingEl(c,1),this.fibSaveContent({e:null,target:n,callBackCompleted:()=>{e.lpSetLoadingEl(c,0)}})}})}fibOptionTitleInputChange(e){const{e:t,target:o}=e,n=o.closest(`${u.selectors.elFibOptionTitleInput}`);if(!n)return;const i=n.closest(`${u.selectors.elFibBlankOptionItem}`);if(!i)return;const s=n.closest(`${u.selectors.elQuestionEditMain}`);if(!s)return;const a=n.value.trim(),r=i.dataset.id,l=s.dataset.questionId,d=window.tinymce.get(`lp-question-fib-input-${l}`).dom.select(`.lp-question-fib-input[data-id="${r}"]`);d[0]&&(d[0].textContent=a),clearTimeout(c),c=setTimeout(()=>{const e=s.querySelector(`${u.selectors.elBtnFibSaveContent}`);this.fibSaveContent({e:null,target:e})},700)}fibSaveContent(o){const{e:n,target:i,callBackCompleted:s=null}=o,r=i.closest(`${u.selectors.elBtnFibSaveContent}`);if(!r)return;const l=r.closest(`${u.selectors.elQuestionEditMain}`),c=l.dataset.questionId,d=this.getDataAnswersConfig(l);if(!d)return;const p=window.tinymce.get(`${u.selectors.elQuestionFibInput}-${c}`);d.title=p.getContent();const h=l.querySelectorAll(`${u.selectors.elFibBlankOptionItem}:not(.clone)`);h&&h.forEach(e=>{const t=e.dataset.id,o=e.querySelector(`${u.selectors.elFibOptionMatchCaseInput}`),n=e.querySelector(`${u.selectors.elFibOptionComparisonInput}:checked`);d.meta_data[t].match_case=o.checked?1:0,d.meta_data[t].comparison=n.value}),s||e.lpSetLoadingEl(r,1);const m={success:e=>{const{message:o,status:n}=e;if("success"!==n)throw`Error: ${o}`;this.setDataAnswersConfig(l,d),t.W(o,n)},error:e=>{t.W(e,"error")},completed:()=>{s&&"function"==typeof s?s():e.lpSetLoadingEl(r,0)}},w={action:"update_question_answers_config",question_id:c,answers:d,args:{id_url:a}};window.lpAJAXG.fetchAJAX(w,m)}fibShowHideMatchCaseOption(t){const{e:o,target:n}=t,i=n.closest(`${u.selectors.elFibOptionMatchCaseInput}`);if(!i)return;const s=i.closest(`${u.selectors.elQuestionFibOptionDetail}`),a=s.querySelector(`${u.selectors.elFibOptionMatchCaseWrap}`);s&&a&&(i.checked?e.lpShowHideEl(a,1):e.lpShowHideEl(a,0),i.closest(`${u.selectors.elQuestionEditMain}`).querySelector(`${u.selectors.elBtnFibSaveContent}`).click())}randomString(e=10){let t="";for(let o=0;o<e;o++)t+="abcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(36*Math.random()));return t}decodeHtml(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value}}const p=new u;e.lpOnElementReady(u.selectors.elEditQuestionWrap,e=>{const t=u.selectors.elQuestionEditMain.replace(".","");e.classList.contains(t)&&p.init()})})()})();