/*! For license information please see 425.05cfcdc9.js.LICENSE.txt */
(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[425],{96402:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});n(63534),n(40590),n(64216),n(36611),n(18665),n(87787),n(94009),n(15852),n(5086),n(29979),n(14602);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function i(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}const u=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},(e=[{key:"get",value:function(t){var e=document.querySelector('meta[name="'+t+'"]');return e?e.content:null}}])&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},45061:(t,e,n)=>{function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function i(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}if(n(63534),n(40590),n(64216),n(36611),n(41128),n(58476),n(18665),n(59581),n(95843),n(87787),n(94009),n(15852),n(5086),n(29979),n(58379),n(14602),!u)var u=n(44463);var a=null,c=!1,f=function(){"use strict";function t(){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!c)throw new Error("Constructor is private. Use getInstance() instead");this.eventQueue={}}return e=t,n=[{key:"addEventHandler",value:function(e,n,r){null==r&&(r=t.PRIORITY_LOWEST),this._initializeQueue(e),this.eventQueue[e][r].push(n)}},{key:"getEventsByPriority",value:function(t,e){return void 0!==this.eventQueue[t]?this.eventQueue[t][e]:[]}},{key:"getAllEventListeners",value:function(t){return void 0===this.eventQueue[t]?[]:u.flat(this.eventQueue[t],1/0)}},{key:"dispatchEvent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===this.eventQueue[t])return!1;var n=this;return this.getAllEventListeners(t).forEach((function(t){try{t.call(n,e)}catch(t){console.error(t)}})),!0}},{key:"_initializeQueue",value:function(t){void 0===this.eventQueue[t]&&(this.eventQueue[t]=Array.apply(null,Array(5)).map((function(){return[]})))}}],r=[{key:"getInstance",value:function(){return a||(c=!0,a=new t,c=!1),a}}],n&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}();f.PRIORITY_LOWEST=4,f.PRIORITY_LOW=3,f.PRIORITY_MEDIUM=2,f.PRIORITY_HIGH=1,f.PRIORITY_HIGHEST=0,f.STATUS_SUCCESS="success",f.STATUS_ERROR="error",f.EVENT_LOAD_NAME="load",f.EVENT_AUTO_SAVE_NAME="autoSaveEvent",t.exports=f},49990:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>Ot});n(63534),n(40590),n(64216),n(36611),n(18636),n(58476),n(15195),n(18665),n(59581),n(87787),n(94009),n(15852),n(5086),n(29979),n(70863),n(58379),n(14602),n(10121);var r=n(79758);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function u(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}function a(t,e,n){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,n)}function c(t,e){return t.get(l(t,e))}function f(t,e,n){return t.set(l(t,e),n),n}function l(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var s=new WeakMap,y=new WeakMap,p=new WeakMap,h=new WeakMap,v=new WeakMap,b=new WeakMap,m=new WeakMap,d=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,s,void 0),a(this,y,void 0),a(this,p,void 0),a(this,h,void 0),a(this,v,[]),a(this,b,[]),a(this,m,void 0),f(s,this,e),this.reset()},(e=[{key:"formElement",get:function(){return c(s,this)}},{key:"isBeingSubmitted",get:function(){return c(y,this)},set:function(t){f(y,this,t)}},{key:"wereValidationsExecuted",get:function(){return c(p,this)},set:function(t){f(p,this,t)}},{key:"wereActionsExecuted",get:function(){return c(h,this)},set:function(t){f(h,this,t)}},{key:"actionsBeforeSubmit",get:function(){return c(v,this)}},{key:"addValidationBeforeSubmit",value:function(t){c(b,this).push(new r.A(t))}},{key:"validationsBeforeSubmit",get:function(){return c(b,this)}},{key:"addActionBeforeSubmit",value:function(t,e){c(v,this).push(new r.A(t,e))}},{key:"customSubmitHandler",get:function(){return c(m,this)},set:function(t){return f(m,this,t)}},{key:"removeValidations",value:function(){f(b,this,[])}},{key:"reset",value:function(){f(y,this,!1),f(p,this,!1),f(h,this,!1)}}])&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();const w=d;function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,E(r.key),r)}}function E(t){var e=function(t,e){if("object"!=g(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==g(e)?e:e+""}var k=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},n=[{key:"debug",value:function(t){j._&&console.log("SubmitManager - "+t)}},{key:"error",value:function(t){console.error("SubmitManagerError:",t)}}],(e=null)&&S(t.prototype,e),n&&S(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),j={_:!1};const O=k;n(27727),n(49576),n(80115),n(17),n(4895),n(10557),n(14913),n(35231),n(79389),n(64189),n(98741),n(31586),n(96982),n(97755),n(41412),n(4632),n(69193),n(34606),n(87136),n(6048),n(18772);function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function _(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,T(r.key),r)}}function T(t){var e=function(t,e){if("object"!=P(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==P(e)?e:e+""}var x=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},(e=[{key:"_isAsyncTask",value:function(t){return null!=t&&"function"==typeof t.then}},{key:"_clickSubmitButtonWhenEventListenerFinishes",value:function(t,e){setTimeout((function(){e.isBeingSubmitted=!1,t.submitter.click()}))}}])&&_(t.prototype,e),n&&_(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();const A=x;function L(t){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L(t)}function I(){I=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof m?e:m,u=Object.create(i.prototype),a=new A(r||[]);return o(u,"_invoke",{value:P(t,n,a)}),u}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var y="suspendedStart",p="suspendedYield",h="executing",v="completed",b={};function m(){}function d(){}function w(){}var g={};f(g,u,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(R([])));E&&E!==n&&r.call(E,u)&&(g=E);var k=w.prototype=m.prototype=Object.create(g);function j(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(o,i,u,a){var c=s(t[o],t,i);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==L(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,u,a)}),(function(t){n("throw",t,u,a)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return n("throw",t,u,a)}))}a(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function P(e,n,r){var o=y;return function(i,u){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===i)throw u;return{value:t,done:!0}}for(r.method=i,r.arg=u;;){var a=r.delegate;if(a){var c=_(a,r);if(c){if(c===b)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===y)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var f=s(e,n,r);if("normal"===f.type){if(o=r.done?v:p,f.arg===b)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(o=v,r.method="throw",r.arg=f.arg)}}}function _(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,_(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var i=s(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,b;var u=i.arg;return u?u.done?(n[e.resultName]=u.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(L(e)+" is not iterable")}return d.prototype=w,o(k,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:d,configurable:!0}),d.displayName=f(w,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,f(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},j(O.prototype),f(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var u=new O(l(t,n,r,o),i);return e.isGeneratorFunction(n)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},j(k),f(k,c,"Generator"),f(k,u,(function(){return this})),f(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(x),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return a.type="throw",a.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],a=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var c=r.call(u,"catchLoc"),f=r.call(u,"finallyLoc");if(c&&f){if(this.prev<u.catchLoc)return o(u.catchLoc,!0);if(this.prev<u.finallyLoc)return o(u.finallyLoc)}else if(c){if(this.prev<u.catchLoc)return o(u.catchLoc,!0)}else{if(!f)throw Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return o(u.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=t,u.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(u)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}function R(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=C(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(a)throw i}}}}function B(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)}function N(t){return function(t){if(Array.isArray(t))return W(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||C(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,e){if(t){if("string"==typeof t)return W(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(t,e):void 0}}function W(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function M(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,V(r.key),r)}}function V(t){var e=function(t,e){if("object"!=L(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==L(e)?e:e+""}function F(t,e,n){return e=D(e),function(t,e){if(e&&("object"===L(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,H()?Reflect.construct(e,n||[],D(t).constructor):e.apply(t,n))}function H(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(H=function(){return!!t})()}function D(t){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},D(t)}function Y(t,e){return Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Y(t,e)}function G(t,e){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.add(t)}function Q(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var U=new WeakSet,z=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return G(t=F(this,e,[].concat(r)),U),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Y(t,e)}(e,t),n=e,(r=[{key:"execute",value:function(t,e){var n=this;if(e.wereActionsExecuted)return!0;var r=e.actionsBeforeSubmit.filter((function(t){return null!==t.priority})),o=e.actionsBeforeSubmit.filter((function(t){return null===t.priority})).map((function(e){return e.callback(t)})).filter((function(t){return n._isAsyncTask(t)}));return o.length>0||r.length>0?(O.debug("Async actions found"),Q(U,this,q).call(this,o,r,t,e),t.preventDefault(),!1):(e.wereActionsExecuted=!0,!0)}}])&&M(n.prototype,r),o&&M(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(A);function q(t,e,n,r){var o=this;Promise.all([].concat(N(t),[Q(U,this,$).call(this,e,n)])).then((function(){r.wereActionsExecuted=!0,o._clickSubmitButtonWhenEventListenerFinishes(n,r)})).catch((function(t){O.error(t),r.isBeingSubmitted=!1}))}function $(t,e){return J.apply(this,arguments)}function J(){var t;return t=I().mark((function t(e,n){var r,o,i;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.sort((function(t,e){return t.priority>e.priority?-1:1})),r=R(e),t.prev=2,r.s();case 4:if((o=r.n()).done){t.next=10;break}return i=o.value,t.next=8,i.callback(n);case 8:t.next=4;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(2),r.e(t.t0);case 15:return t.prev=15,r.f(),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[2,12,15,18]])})),J=function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){B(i,r,o,u,a,"next",t)}function a(t){B(i,r,o,u,a,"throw",t)}u(void 0)}))},J.apply(this,arguments)}const K=z;n(23604);function X(t){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},X(t)}function Z(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,tt(r.key),r)}}function tt(t){var e=function(t,e){if("object"!=X(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=X(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==X(e)?e:e+""}function et(t,e,n){return e=rt(e),function(t,e){if(e&&("object"===X(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,nt()?Reflect.construct(e,n||[],rt(t).constructor):e.apply(t,n))}function nt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(nt=function(){return!!t})()}function rt(t){return rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rt(t)}function ot(t,e){return ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ot(t,e)}function it(t,e){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.add(t)}function ut(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var at=new WeakSet,ct=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return it(t=et(this,e,[].concat(r)),at),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ot(t,e)}(e,t),n=e,(r=[{key:"execute",value:function(t,e){if(e.wereValidationsExecuted)return!0;O.debug("Executing validation callbacks...");var n=e.validationsBeforeSubmit.map((function(e){return e.callback(t)}));return!(!ut(at,this,ft).call(this,n,t,e)||!ut(at,this,lt).call(this,n,t,e)||(e.wereValidationsExecuted=!0,0))}}])&&Z(n.prototype,r),o&&Z(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(A);function ft(t,e,n){var r=this;return!!t.filter((function(t){return!r._isAsyncTask(t)})).every((function(t){return t}))||(O.debug("Validation failed"),O.debug("Submit end"),e.preventDefault(),n.isBeingSubmitted=!1,!1)}function lt(t,e,n){var r=this,o=t.filter((function(t){return r._isAsyncTask(t)}));return 0===o.length||(O.debug("Async validations found"),ut(at,this,st).call(this,o,e,n),e.preventDefault(),!1)}function st(t,e,n){var r=this;Promise.all(t).then((function(t){return t.every((function(t){return t}))})).then((function(t){if(!t)return O.debug("Async validations failed"),O.debug("Submit end"),void(n.isBeingSubmitted=!1);n.wereValidationsExecuted=!0,r._clickSubmitButtonWhenEventListenerFinishes(e,n)})).catch((function(t){O.error(t),n.isBeingSubmitted=!1}))}const yt=ct;function pt(t){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pt(t)}function ht(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,vt(r.key),r)}}function vt(t){var e=function(t,e){if("object"!=pt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=pt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==pt(e)?e:e+""}function bt(t,e){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.add(t)}function mt(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var dt=n(45061),wt=null,gt=!1,St=new WeakSet,Et=function(){function t(){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),bt(this,St),!gt)throw new Error("Constructor is private. Use getInstance() instead");this._submittableForms=mt(St,this,jt).call(this),this._actionsExecutor=new K,this._validationsExecutor=new yt}return e=t,n=[{key:"init",value:function(){var t=this;this._submittableForms.forEach((function(e){return e.formElement.addEventListener("submit",(function(n){return e.isBeingSubmitted?(O.debug("Submit skipped - Form is already being submitted"),n.preventDefault(),!1):(O.debug("Submit start"),e.isBeingSubmitted=!0,!(!t._validationsExecutor.execute(n,e)||!t._actionsExecutor.execute(n,e)||(e.customSubmitHandler?(O.debug("Default browser submit prevented, custom submit handler found."),e.customSubmitHandler(n),e.reset(),n.preventDefault(),1):(O.debug("Submitting..."),O.debug("Submit end"),0))))}))}))}},{key:"addValidationBeforeSubmit",value:function(t,e){var n;null===(n=mt(St,this,kt).call(this,e))||void 0===n||n.addValidationBeforeSubmit(t)}},{key:"addActionBeforeSubmit",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;null===(n=mt(St,this,kt).call(this,e))||void 0===n||n.addActionBeforeSubmit(t,r)}},{key:"removeValidationsBeforeSubmit",value:function(t){var e;null===(e=mt(St,this,kt).call(this,t))||void 0===e||e.removeValidations()}},{key:"setCustomFormSubmitHandler",value:function(t,e){var n=mt(St,this,kt).call(this,t);n&&(n.customSubmitHandler=e)}}],r=[{key:"getInstance",value:function(){return wt||(gt=!0,wt=new t,gt=!1),wt}}],n&&ht(e.prototype,n),r&&ht(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}();function kt(t){return this._submittableForms.find((function(e){return e.formElement===t}))}function jt(){var t=document.querySelectorAll("form");return Array.from(t).map((function(t){return new w(t)}))}dt.getInstance().addEventHandler(dt.EVENT_LOAD_NAME,(function(){Et.getInstance().init()}),dt.PRIORITY_LOW);const Ot=Et},79758:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});n(63534),n(40590),n(64216),n(36611),n(18665),n(87787),n(94009),n(15852),n(5086),n(29979),n(10121),n(14602);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function i(t,e,n){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,n)}function u(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function c(t,e){return t.get(l(t,e))}function f(t,e,n){return t.set(l(t,e),n),n}function l(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var s=new WeakMap,y=new WeakMap,p=function(){return t=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i(this,s,void 0),i(this,y,void 0),f(s,this,e),f(y,this,n)},(e=[{key:"callback",get:function(){return c(s,this)}},{key:"priority",get:function(){return c(y,this)}}])&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();u(p,"PRIORITY_LOW",3),u(p,"PRIORITY_MEDIUM",5),u(p,"PRIORITY_HIGH",7);const h=p},44463:(t,e,n)=>{function r(){}n(80115),n(41128),n(19693),n(4895),n(533),n(14913),n(95843),n(5086),r.contains=function(t,e){return e.indexOf(t)>-1},r.flat=function(t,e){return"function"==typeof t.flat?t.flat(e):(void 0===e&&(e=1),e>0?t.reduce((function(t,n){return t.concat(Array.isArray(n)?r.flat(n,e-1):n)}),[]):t.slice())},t.exports=r}}]);
